add league foreign key

This commit is contained in:
Nick Griffey 2024-01-27 21:51:42 -06:00
parent 8c475d36e5
commit 4355180c43
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ create table if not exists "teamseasons" (
"teamIDretro" TEXT,
PRIMARY KEY("year","team"),
foreign key("year") references "seasons"("year"),
foreign key("league") references "leagues"("ID"),
foreign key("team") references "teams"("ID")
);