Files
prod/migrations/20261004100000_create_game_screen_plans.sql
T
2026-10-04 13:24:30 +07:00

11 lines
330 B
SQL

-- +goose Up
CREATE TABLE IF NOT EXISTS game_screen_plans (
game_id INTEGER PRIMARY KEY REFERENCES games(id) ON DELETE CASCADE,
steps JSONB NOT NULL DEFAULT '[]'::jsonb,
current_step INTEGER NOT NULL DEFAULT 0,
updated_at TIMESTAMP NOT NULL DEFAULT NOW()
);
-- +goose Down
DROP TABLE IF EXISTS game_screen_plans;