-- +goose Up CREATE TABLE IF NOT EXISTS screen_sessions ( id BIGSERIAL PRIMARY KEY, access_token_hash TEXT NOT NULL UNIQUE, game_id INTEGER REFERENCES games (id) ON DELETE SET NULL, created_at TIMESTAMP NOT NULL DEFAULT NOW(), updated_at TIMESTAMP NOT NULL DEFAULT NOW() ); -- +goose Down DROP TABLE IF EXISTS screen_sessions;