From 3a8bab793913b90793d47ab7f651f9171865cd68 Mon Sep 17 00:00:00 2001 From: Luciano Laratelli Date: Sat, 5 Apr 2025 17:44:40 +0200 Subject: [PATCH] scoring options, keys in game schema --- resources/migrations/20250312151923-create-game.up.sql | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) );