feat: basic register and login
This commit is contained in:
parent
98be8dd574
commit
327f0cd5b9
39 changed files with 990 additions and 66 deletions
15
migrations/all.sql
Normal file
15
migrations/all.sql
Normal 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
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue