parent
a8f5e9d548
commit
98b16a9008
@ -0,0 +1,7 @@ |
||||
CREATE TABLE "Role" ( |
||||
"id" INTEGER NOT NULL UNIQUE, |
||||
"name" TEXT NOT NULL, |
||||
"color" INTEGER NOT NULL DEFAULT 16777215, |
||||
"flags" INTEGER NOT NULL DEFAULT 0, |
||||
PRIMARY KEY("id" AUTOINCREMENT) |
||||
); |
@ -0,0 +1,11 @@ |
||||
CREATE TABLE "User" ( |
||||
"id" INTEGER NOT NULL UNIQUE, |
||||
"email" TEXT NOT NULL UNIQUE, |
||||
"pw_hash" TEXT NOT NULL UNIQUE, |
||||
"name" TEXT NOT NULL DEFAULT 'Unknown', |
||||
"bio_text" TEXT, |
||||
"balance" REAL NOT NULL DEFAULT 0, |
||||
"avatar_url" TEXT NOT NULL DEFAULT '/avatars/default.png', |
||||
"reputation" INTEGER NOT NULL DEFAULT 100, |
||||
PRIMARY KEY("id" AUTOINCREMENT) |
||||
); |
Loading…
Reference in new issue