This commit is contained in:
2026-09-10 02:39:55 +07:00
parent 79bd3e2cf8
commit 9986d593d3
5 changed files with 196 additions and 8 deletions
@@ -0,0 +1,11 @@
-- +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;