-- +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;