diff --git a/resources/migrations/20250312151923-create-game.up.sql b/resources/migrations/20250312151923-create-game.up.sql index ff042c1..3e3105c 100644 --- a/resources/migrations/20250312151923-create-game.up.sql +++ b/resources/migrations/20250312151923-create-game.up.sql @@ -1,5 +1,10 @@ CREATE TABLE IF NOT EXISTS game ( code text PRIMARY KEY, current_player integer, - player_count integer NOT NULL + player_count integer NOT NULL, + scoring_option text NOT NULL, + winner integer, + is_last_round boolean, + FOREIGN KEY (winner) REFERENCES player(id), + FOREIGN KEY (current_player) REFERENCES player(id) );