/* initial sql database (dxv4 2.1) */

CREATE TABLE admins (
    adminId    TEXT    UNIQUE
                       NOT NULL,
    adminName  TEXT    NOT NULL,
    adminClass TEXT    NOT NULL,
    adminPrems INTEGER DEFAULT (666) 
);

CREATE TABLE changes (
    classId TEXT,
    forDay  TEXT,
    content TEXT
);

CREATE TABLE classes (
    classid       TEXT UNIQUE
                       NOT NULL,
    userclassname TEXT NOT NULL
);

CREATE TABLE rings (
    classId  TEXT,
    fromDate TEXT,
    content  TEXT
);

CREATE TABLE schedules (
    classId   TEXT,
    fromDate  TEXT,
    dayOfWeek INTEGER,
    content   TEXT
);
