16 lines
487 B
MySQL
16 lines
487 B
MySQL
|
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
|
||
|
);
|