Team linking

This commit is contained in:
Felix Albrigtsen 2022-03-29 20:08:31 +02:00
parent b1d55783f4
commit 12199d5f12
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ CREATE TABLE players (
name TEXT NOT NULL, name TEXT NOT NULL,
teamId INTEGER NOT NULL, teamId INTEGER NOT NULL,
FOREIGN KEY (teamId) REFERENCES teams (id) FOREIGN KEY (teamId) REFERENCES teams (id) ON DELETE CASCADE
); );
-- Example data (Two tournaments, 4 teams, single elimination) -- Example data (Two tournaments, 4 teams, single elimination)