40 lines
626 B
SQL
40 lines
626 B
SQL
CREATE TABLE "events" (
|
|
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
"name" TEXT,
|
|
"start" TEXT,
|
|
"stop" TEXT,
|
|
"organiser" TEXT,
|
|
"location" TEXT,
|
|
"description" TEXT
|
|
);
|
|
|
|
CREATE TABLE "projects" (
|
|
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
"name" TEXT,
|
|
"description" TEXT,
|
|
"owner" TEXT,
|
|
"owneruname" TEXT,
|
|
"owneremail" TEXT,
|
|
"active" BOOLEAN
|
|
);
|
|
|
|
CREATE TABLE "projectmembers" (
|
|
"projectid" INTEGER,
|
|
"membername" TEXT,
|
|
"memberuname" TEXT,
|
|
"role" TEXT
|
|
)
|
|
|
|
CREATE TABLE "users" (
|
|
"uname" TEXT,
|
|
"groups" INT DEFAULT 0
|
|
);
|
|
|
|
CREATE TABLE "motd" (
|
|
"title" TEXT,
|
|
"content" TEXT
|
|
);
|
|
|
|
INSERT INTO users (uname, groups)
|
|
VALUES ("min_test_bruker", 1);
|