nettsiden/dist/pvv.sql

27 lines
445 B
MySQL
Raw Normal View History

CREATE TABLE "events" (
2017-10-07 22:18:06 +02:00
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
"name" TEXT,
"start" TEXT,
"stop" TEXT,
"organiser" TEXT,
2016-08-29 20:14:23 +02:00
"location" TEXT,
"description" TEXT
);
CREATE TABLE "projects" (
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
"name" TEXT,
"owner" TEXT,
"owneruname" TEXT,
"description" TEXT,
"active" BOOLEAN
2017-11-11 17:00:08 +01:00
);
CREATE TABLE "users" (
"uname" TEXT,
"groups" INT DEFAULT 0
);
INSERT INTO users (uname, groups)
VALUES ("min_test_bruker", 1);