WIP
This commit is contained in:
parent
b956bdbf05
commit
f6b38ae977
9 changed files with 219 additions and 12 deletions
|
|
@ -1,18 +1,19 @@
|
|||
DROP TABLE IF EXISTS users;
|
||||
CREATE TABLE users (
|
||||
id TEXT PRIMARY KEY,
|
||||
handle TEXT NOT NULL UNIQUE,
|
||||
full_name TEXT,
|
||||
email TEXT UNIQUE,
|
||||
website TEXT,
|
||||
picture BLOB,
|
||||
roles TEXT NOT NULL, -- json array of user roles
|
||||
id TEXT PRIMARY KEY,
|
||||
handle TEXT NOT NULL UNIQUE,
|
||||
full_name TEXT,
|
||||
email TEXT UNIQUE,
|
||||
website TEXT,
|
||||
picture BLOB,
|
||||
roles TEXT NOT NULL, -- json array of user roles
|
||||
|
||||
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
|
||||
status TEXT CHECK(status IN ('Active','Disabled')) NOT NULL DEFAULT 'Disabled',
|
||||
password_hash TEXT,
|
||||
activation_token TEXT,
|
||||
reset_password_token TEXT,
|
||||
last_login_at DATETIME,
|
||||
created_at DATETIME NOT NULL
|
||||
);
|
||||
|
||||
DROP TABLE IF EXISTS authorizations;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue