diff --git a/backend/selab_script.sql b/backend/selab_script.sql index 871ffe1c..a25c604e 100644 --- a/backend/selab_script.sql +++ b/backend/selab_script.sql @@ -78,7 +78,7 @@ CREATE TABLE submission ( team_id BIGINT NOT NULL, project_id BIGINT NOT NULL, status_id BIGINT NOT NULL DEFAULT 1, -- Default to 'InProgress' - FOREIGN KEY (team_id) REFERENCES team(team_id) ON DELETE CASCADE, + FOREIGN KEY (team_id) REFERENCES team(id) ON DELETE CASCADE, FOREIGN KEY (project_id) REFERENCES project(id) ON DELETE CASCADE, FOREIGN KEY (status_id) REFERENCES status(id) ON DELETE RESTRICT );