2016-08-18 22:49:58 +02:00
|
|
|
CREATE TABLE "events" (
|
2017-10-07 22:18:06 +02:00
|
|
|
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
|
2016-08-18 22:49:58 +02:00
|
|
|
"name" TEXT,
|
|
|
|
"start" TEXT,
|
|
|
|
"stop" TEXT,
|
|
|
|
"organiser" TEXT,
|
2016-08-29 20:14:23 +02:00
|
|
|
"location" TEXT,
|
|
|
|
"description" TEXT
|
2016-08-18 22:49:58 +02:00
|
|
|
);
|
2017-10-22 17:57:55 +02:00
|
|
|
|
|
|
|
CREATE TABLE "projects" (
|
|
|
|
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
|
|
"name" TEXT,
|
2018-02-24 21:09:15 +01:00
|
|
|
"description" TEXT,
|
2017-10-22 17:57:55 +02:00
|
|
|
"active" BOOLEAN
|
2017-11-11 17:00:08 +01:00
|
|
|
);
|
|
|
|
|
2018-02-24 21:09:15 +01:00
|
|
|
CREATE TABLE "projectmembers" (
|
|
|
|
"projectid" INTEGER,
|
2018-02-26 16:24:50 +01:00
|
|
|
"name" TEXT,
|
|
|
|
"uname" TEXT,
|
|
|
|
"mail" TEXT,
|
|
|
|
"role" TEXT,
|
|
|
|
"lead" BOOLEAN DEFAULT 0,
|
|
|
|
"owner" BOOLEAN DEFAULT 0
|
|
|
|
);
|
2018-02-24 21:09:15 +01:00
|
|
|
|
2017-11-11 17:00:08 +01:00
|
|
|
CREATE TABLE "users" (
|
|
|
|
"uname" TEXT,
|
|
|
|
"groups" INT DEFAULT 0
|
2018-02-10 18:00:32 +01:00
|
|
|
);
|
|
|
|
|
2018-02-24 19:20:34 +01:00
|
|
|
CREATE TABLE "motd" (
|
2018-08-06 23:26:29 +02:00
|
|
|
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
|
2018-02-24 19:20:34 +01:00
|
|
|
"title" TEXT,
|
|
|
|
"content" TEXT
|
|
|
|
);
|
2018-08-06 23:26:29 +02:00
|
|
|
INSERT INTO motd (title, content)
|
|
|
|
VALUES ("MOTD ./dev.sh", "du kan endre motd i admin panelet");
|
2018-02-24 19:20:34 +01:00
|
|
|
|
2021-09-04 14:56:48 +02:00
|
|
|
CREATE TABLE "door" (
|
|
|
|
"time" INTEGER PRIMARY KEY,
|
|
|
|
"open" BOOLEAN
|
2018-08-24 12:28:06 +02:00
|
|
|
);
|
2021-09-04 14:56:48 +02:00
|
|
|
INSERT INTO door (time, open)
|
|
|
|
VALUES (0, FALSE);
|
2018-08-24 12:28:06 +02:00
|
|
|
|
|
|
|
|
2018-02-10 18:00:32 +01:00
|
|
|
INSERT INTO users (uname, groups)
|
|
|
|
VALUES ("min_test_bruker", 1);
|