]> git.sesse.net Git - ccbs/blobdiff - sql/ccbs.sql
Add a new table to the SQL for tournament participation.
[ccbs] / sql / ccbs.sql
index b7d342a91551b4bcd9d5185031b39c7906327352..c2482143a9b2e2f10c53e3793faecf2f792018de 100644 (file)
@@ -69,6 +69,14 @@ CREATE TABLE tournaments (
        UNIQUE ( season, tournamentname )
 );
 
        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,
 CREATE TABLE tournamentrankings (
        tournament INTEGER NOT NULL REFERENCES tournaments,
        ranking INTEGER NOT NULL,