From: Steinar H. Gunderson Date: Mon, 14 Feb 2005 14:46:00 +0000 (+0000) Subject: Add a new table to the SQL for tournament participation. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=70e82d5f7f2b8cdd9b0d07744eae3c43999653fb;hp=3e2a27f6171268d6bb2db20c868528e0d4d03ce0 Add a new table to the SQL for tournament participation. --- diff --git a/sql/ccbs.sql b/sql/ccbs.sql index b7d342a..c248214 100644 --- a/sql/ccbs.sql +++ b/sql/ccbs.sql @@ -69,6 +69,14 @@ CREATE TABLE tournaments ( UNIQUE ( season, tournamentname ) ); +CREATE TABLE tournamentparticipation ( + tournament INTEGER NOT NULL REFERENCES tournaments, + player INTEGER NOT NULL REFERENCES players, + paid BOOLEAN NOT NULL, + + PRIMARY KEY ( tournament, player ) +); + CREATE TABLE tournamentrankings ( tournament INTEGER NOT NULL REFERENCES tournaments, ranking INTEGER NOT NULL,