-
Notifications
You must be signed in to change notification settings - Fork 1
/
07_fk_constraints.sql
22 lines (15 loc) · 1.07 KB
/
07_fk_constraints.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--
-- Name: secu_edit_acces_immeubles secu_edit_acces_immeubles_fk_regie_id_fkey; Type: FK CONSTRAINT; Schema: securite; Owner: <user>
--
ALTER TABLE ONLY securite.secu_edit_acces_immeubles
ADD CONSTRAINT secu_edit_acces_immeubles_fk_regie_id_fkey FOREIGN KEY (fk_regie_id) REFERENCES securite.secu_edit_regies(id) ON UPDATE CASCADE ON DELETE RESTRICT;
--
-- Name: secu_edit_points_acces secu_edit_points_acces_fk_categorie_id_fkey; Type: FK CONSTRAINT; Schema: securite; Owner: <user>
--
ALTER TABLE ONLY securite.secu_edit_points_acces
ADD CONSTRAINT secu_edit_points_acces_fk_categorie_id_fkey FOREIGN KEY (fk_categorie_id) REFERENCES securite.secu_tbl_liste_points_acces(id) ON UPDATE CASCADE ON DELETE RESTRICT;
--
-- Name: secu_edit_signalisation secu_edit_signalisation_fk_categorie_id_fkey; Type: FK CONSTRAINT; Schema: securite; Owner: <user>
--
ALTER TABLE ONLY securite.secu_edit_signalisation
ADD CONSTRAINT secu_edit_signalisation_fk_categorie_id_fkey FOREIGN KEY (fk_type_id) REFERENCES securite.secu_tbl_liste_signalisation(id) ON UPDATE CASCADE ON DELETE RESTRICT;