minauthator/migrations/all.sql

16 lines
501 B
MySQL
Raw Normal View History

2024-10-20 22:05:20 +00:00
DROP TABLE IF EXISTS users;
CREATE TABLE users (
id TEXT PRIMARY KEY,
2024-11-02 16:37:57 +00:00
handle TEXT NOT NULL UNIQUE,
2024-10-20 22:05:20 +00:00
full_name TEXT,
2024-11-02 16:37:57 +00:00
email TEXT UNIQUE,
2024-10-20 22:05:20 +00:00
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
);