13 lines
320 B
MySQL
13 lines
320 B
MySQL
|
-- Add migration script here
|
||
|
CREATE TABLE IF NOT EXISTS users (
|
||
|
id INTEGER PRIMARY KEY NOT NULL,
|
||
|
username TEXT NOT NULL,
|
||
|
token TEXT NOT NULL
|
||
|
);
|
||
|
|
||
|
CREATE TABLE IF NOT EXISTS session_tokens (
|
||
|
token TEXT NOT NULL,
|
||
|
user INTEGER,
|
||
|
FOREIGN KEY(user) REFERENCES user(id)
|
||
|
);
|