scoring options, keys in game schema

This commit is contained in:
Luciano Laratelli 2025-04-05 17:44:40 +02:00
parent 839ebb1131
commit 3a8bab7939

View file

@ -1,5 +1,10 @@
CREATE TABLE IF NOT EXISTS game ( CREATE TABLE IF NOT EXISTS game (
code text PRIMARY KEY, code text PRIMARY KEY,
current_player integer, 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)
); );