Skip to content

Commit

Permalink
chore: add foreign key constraint to link_id of slot_professor
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaspalma committed Sep 20, 2024
1 parent 9a5ac39 commit 69276fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions postgres/sql/00_schema_postgres.sql
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,10 @@ ALTER TABLE ONLY "public"."slot_professor"
ALTER TABLE ONLY "public"."slot_professor"
ADD CONSTRAINT "slot_professor_slot_id_ddc4b9c2_fk_slot_id" FOREIGN KEY ("slot_id") REFERENCES "public"."slot"("id") DEFERRABLE INITIALLY DEFERRED;

ALTER TABLE ONLY "public"."slot_professor"
ADD CONSTRAINT "slot_professor_professor_link_id" FOREIGN KEY ("link_id") REFERENCES "public"."professor_link"("id") DEFERRABLE INITIALLY DEFERRED;



-- Completed on 2024-08-13 22:21:25 UTC

Expand Down

0 comments on commit 69276fe

Please sign in to comment.