CREATE TABLE IF NOT EXISTS game ( code text PRIMARY KEY COLLATE NOCASE, game_set text COLLATE NOCASE, current_player integer, 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) );