12 lines
315 B
SQL
12 lines
315 B
SQL
CREATE TABLE IF NOT EXISTS content (
|
|
vanity TEXT PRIMARY KEY,
|
|
type TEXT NOT NULL,
|
|
data TEXT NOT NULL,
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS users (
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
username TEXT UNIQUE NOT NULL,
|
|
password_hash TEXT NOT NULL
|
|
); |