Added a user system with no proper user validation but working authorisation.

This commit is contained in:
2022-03-29 19:32:21 +02:00
parent ee500203e2
commit af0dcee159
42 changed files with 28429 additions and 185 deletions

View File

@@ -0,0 +1,4 @@
-- This file should undo anything in `up.sql`
drop table user;
drop table pwd;

View File

@@ -0,0 +1,11 @@
CREATE TABLE user (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
username TEXT UNIQUE NOT NULL,
email TEXT UNIQUE NOT NULL,
role TEXT NOT NULL
);
CREATE TABLE pwd (
id INTEGER NOT NULL PRIMARY KEY,
password TEXT NOT NULL
);