9 lines
276 B
SQL
9 lines
276 B
SQL
CREATE TABLE IF NOT EXISTS aliases (
|
|
alias_email TEXT PRIMARY KEY,
|
|
username TEXT NOT NULL,
|
|
enabled INTEGER NOT NULL DEFAULT 1,
|
|
updated_at INTEGER NOT NULL DEFAULT (strftime('%s','now'))
|
|
);
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_aliases_username ON aliases(username);
|