scoring options, keys in game schema
This commit is contained in:
parent
839ebb1131
commit
3a8bab7939
1 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue