-- Add migration script here
CREATE TABLE users (
    user_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
    user_name varchar(255) NOT NULL,
    password_salt char(64) NOT NULL,
    password_hash char(64) NOT NULL
);

CREATE TABLE sessions (
    session_id char(64) NOT NULL,
    user_id int NOT NULL,
    expires int NOT NULL,

    PRIMARY KEY (session_id),
    FOREIGN KEY (user_id) REFERENCES users
);
