start working on auth

This commit is contained in:
2023-04-03 16:11:26 +02:00
parent 3dbfadb00e
commit d50f3d9746
12 changed files with 485 additions and 106 deletions

View File

@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS "user" (
"id" integer NOT NULL PRIMARY KEY AUTOINCREMENT,
"name" text NOT NULL UNIQUE,
"pw" text,
"pw" text NOT NULL DEFAULT "",
"is_cox" boolean NOT NULL DEFAULT FALSE,
"is_admin" boolean NOT NULL DEFAULT FALSE,
"is_guest" boolean NOT NULL DEFAULT TRUE