CREATE TABLE IF NOT EXISTS sessions (
    token BLOB PRIMARY KEY,
    username TEXT NOT NULL,
    identity_key BLOB NOT NULL,
    created_at INTEGER NOT NULL,
    expires_at INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_sessions_expires ON sessions(expires_at);
