feat: basic register and login

This commit is contained in:
Matthieu Bessat 2024-10-21 00:05:20 +02:00
parent 98be8dd574
commit 327f0cd5b9
39 changed files with 990 additions and 66 deletions

15
migrations/all.sql Normal file
View file

@ -0,0 +1,15 @@
DROP TABLE IF EXISTS users;
CREATE TABLE users (
id TEXT PRIMARY KEY,
handle TEXT NOT NULL,
full_name TEXT,
email TEXT,
website TEXT,
picture BLOB,
status TEXT CHECK(status IN ('Active','Disabled')) NOT NULL DEFAULT 'Disabled',
password_hash TEXT,
activation_token TEXT,
last_login_at DATETIME,
created_at DATETIME NOT NULL
);