Skip to content

Commit

Permalink
Update backend/selab_script.sql
Browse files Browse the repository at this point in the history
Co-authored-by: Xander Bil <[email protected]>
  • Loading branch information
DRIESASTER and xerbalind authored Mar 4, 2024
1 parent efaaf3d commit e2ca98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/selab_script.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit e2ca98a

Please sign in to comment.