12 lines
326 B
MySQL
12 lines
326 B
MySQL
|
CREATE TABLE IF NOT EXISTS users (
|
||
|
id INTEGER PRIMARY KEY,
|
||
|
email TEXT NOT NULL UNIQUE,
|
||
|
pass_hash BLOB NOT NULL
|
||
|
);
|
||
|
CREATE INDEX IF NOT EXISTS idx_email ON users (email);
|
||
|
|
||
|
CREATE TABLE IF NOT EXISTS apps (
|
||
|
id INTEGER PRIMARY KEY,
|
||
|
name TEXT NOT NULL UNIQUE,
|
||
|
secret TEXT NOT NULL UNIQUE
|
||
|
);
|