2025-03-12 19:54:45 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS game (
|
2025-04-09 15:20:23 +00:00
|
|
|
code text PRIMARY KEY COLLATE NOCASE,
|
2025-04-10 19:48:36 +00:00
|
|
|
game_set text COLLATE NOCASE,
|
2025-03-12 22:29:52 +00:00
|
|
|
current_player integer,
|
2025-04-05 15:44:40 +00:00
|
|
|
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)
|
2025-03-12 19:54:45 +00:00
|
|
|
);
|