forked from Hanabi/hanabi-league
change database schema: include winrate
This commit is contained in:
parent
e6d24d7b7b
commit
eb833db3ce
1 changed files with 1 additions and 0 deletions
|
@ -381,6 +381,7 @@ CREATE TABLE endgames (
|
||||||
rank SMALLINT, /* 0 for clue actions */
|
rank SMALLINT, /* 0 for clue actions */
|
||||||
enumerator BIGINT NOT NULL CHECK (enumerator >= 0),
|
enumerator BIGINT NOT NULL CHECK (enumerator >= 0),
|
||||||
denominator BIGINT NOT NULL CHECK (denominator > 0),
|
denominator BIGINT NOT NULL CHECK (denominator > 0),
|
||||||
|
chance REAL GENERATED ALWAYS AS (CAST(enumerator AS REAL) / denominator) STORED,
|
||||||
PRIMARY KEY (game_id, turn, action_type, suit_index, rank)
|
PRIMARY KEY (game_id, turn, action_type, suit_index, rank)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue