Added user auth

This commit is contained in:
2023-11-17 09:07:30 -05:00
parent 16543a5709
commit e2bd270d7c
25 changed files with 1268 additions and 450 deletions

View File

@@ -0,0 +1,11 @@
CREATE TABLE IF NOT EXISTS users (
email TEXT PRIMARY KEY NOT NULL,
hash TEXT NOT NULL,
role TEXT NOT NULL,
first_name TEXT NOT NULL,
last_name TEXT NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
updated_at TIMESTAMP NOT NULL DEFAULT NOW(),
profile_picture TEXT,
verified BOOLEAN NOT NULL DEFAULT FALSE
);