-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21206 (class 2606 OID 6929432)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_ADRESSE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_ADRESSE_LIVRAISON_fkey" FOREIGN KEY ("ID_ADRESSE_LIVRAISON") REFERENCES "Default"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 21207 (class 2606 OID 6929437)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_ADRESSE_fkey" FOREIGN KEY ("ID_ADRESSE") REFERENCES "Default"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 21208 (class 2606 OID 6929442)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_AVOIR_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_AVOIR_CLIENT_fkey" FOREIGN KEY ("ID_AVOIR_CLIENT") REFERENCES "Default"."AVOIR_CLIENT"("ID");


--
-- TOC entry 21209 (class 2606 OID 6929447)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_CATEGORIE_COMPTABLE_fkey" FOREIGN KEY ("ID_CATEGORIE_COMPTABLE") REFERENCES "Default"."CATEGORIE_COMPTABLE"("ID");


--
-- TOC entry 21210 (class 2606 OID 6929452)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_CLIENT_DEPARTEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_CLIENT_DEPARTEMENT_fkey" FOREIGN KEY ("ID_CLIENT_DEPARTEMENT") REFERENCES "Default"."CLIENT_DEPARTEMENT"("ID");


--
-- TOC entry 21211 (class 2606 OID 6929457)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "Default"."CLIENT"("ID");


--
-- TOC entry 21212 (class 2606 OID 6929462)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_COMMERCIAL_fkey" FOREIGN KEY ("ID_COMMERCIAL") REFERENCES "Default"."COMMERCIAL"("ID_COMMERCIAL");


--
-- TOC entry 21213 (class 2606 OID 6929467)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_COMPTE_PCE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_COMPTE_PCE_SERVICE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_SERVICE") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21214 (class 2606 OID 6929472)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_COMPTE_PCE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_COMPTE_PCE_VENTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_VENTE") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21215 (class 2606 OID 6929477)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_CONTACT_fkey" FOREIGN KEY ("ID_CONTACT") REFERENCES "Default"."CONTACT"("ID");


--
-- TOC entry 21216 (class 2606 OID 6929482)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_DEVIS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_DEVIS_fkey" FOREIGN KEY ("ID_DEVIS") REFERENCES "Default"."DEVIS"("ID_DEVIS");


--
-- TOC entry 21217 (class 2606 OID 6929487)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_FACTURATION_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_FACTURATION_COMMANDE_CLIENT_fkey" FOREIGN KEY ("ID_FACTURATION_COMMANDE_CLIENT") REFERENCES "Default"."FACTURATION_COMMANDE_CLIENT"("ID");


--
-- TOC entry 21218 (class 2606 OID 6929492)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_MODELE_fkey" FOREIGN KEY ("ID_MODELE") REFERENCES "Default"."MODELE"("ID");


--
-- TOC entry 21219 (class 2606 OID 6929497)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_MODE_REGLEMENT_fkey" FOREIGN KEY ("ID_MODE_REGLEMENT") REFERENCES "Default"."MODE_REGLEMENT"("ID_MODE_REGLEMENT");


--
-- TOC entry 21220 (class 2606 OID 6929502)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_MOIS_CCIP_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_MOIS_CCIP_fkey" FOREIGN KEY ("ID_MOIS_CCIP") REFERENCES "Default"."MOIS"("ID");


--
-- TOC entry 21221 (class 2606 OID 6929507)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "Default"."MOUVEMENT"("ID");


--
-- TOC entry 21222 (class 2606 OID 6929512)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_REFERENCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_REFERENCE_CLIENT_fkey" FOREIGN KEY ("ID_REFERENCE_CLIENT") REFERENCES "Default"."REFERENCE_CLIENT"("ID");


--
-- TOC entry 21223 (class 2606 OID 6929517)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_SDD_MESSAGE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_SDD_MESSAGE_fkey" FOREIGN KEY ("ID_SDD_MESSAGE") REFERENCES "Default"."SEPA_DIRECT_DEBIT_MESSAGE"("ID");


--
-- TOC entry 21224 (class 2606 OID 6929522)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_TARIF_fkey" FOREIGN KEY ("ID_TARIF") REFERENCES "Default"."TARIF"("ID");


--
-- TOC entry 21225 (class 2606 OID 6929527)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_TAXE_FRAIS_DOCUMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_TAXE_FRAIS_DOCUMENT_fkey" FOREIGN KEY ("ID_TAXE_FRAIS_DOCUMENT") REFERENCES "Default"."TAXE"("ID_TAXE");


--
-- TOC entry 21226 (class 2606 OID 6929532)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_TAXE_PORT_fkey" FOREIGN KEY ("ID_TAXE_PORT") REFERENCES "Default"."TAXE"("ID_TAXE");


--
-- TOC entry 21227 (class 2606 OID 6929537)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "Default"."TAXE"("ID_TAXE");


--
-- TOC entry 21228 (class 2606 OID 6929542)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21229 (class 2606 OID 6929547)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21251 (class 2606 OID 6929552)
-- Name: SALARIE SALARIE_ID_CUMULS_CONGES_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_CUMULS_CONGES_fkey" FOREIGN KEY ("ID_CUMULS_CONGES") REFERENCES "Default"."CUMULS_CONGES"("ID");


--
-- TOC entry 21252 (class 2606 OID 6929557)
-- Name: SALARIE SALARIE_ID_CUMULS_PAYE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_CUMULS_PAYE_fkey" FOREIGN KEY ("ID_CUMULS_PAYE") REFERENCES "Default"."CUMULS_PAYE"("ID");


--
-- TOC entry 21253 (class 2606 OID 6929562)
-- Name: SALARIE SALARIE_ID_ETAT_CIVIL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_ETAT_CIVIL_fkey" FOREIGN KEY ("ID_ETAT_CIVIL") REFERENCES "Default"."ETAT_CIVIL"("ID");


--
-- TOC entry 21254 (class 2606 OID 6929567)
-- Name: SALARIE SALARIE_ID_FICHE_PAYE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_FICHE_PAYE_fkey" FOREIGN KEY ("ID_FICHE_PAYE") REFERENCES "Default"."FICHE_PAYE"("ID");


--
-- TOC entry 21255 (class 2606 OID 6929572)
-- Name: SALARIE SALARIE_ID_INFOS_SALARIE_PAYE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_INFOS_SALARIE_PAYE_fkey" FOREIGN KEY ("ID_INFOS_SALARIE_PAYE") REFERENCES "Default"."INFOS_SALARIE_PAYE"("ID");


--
-- TOC entry 21256 (class 2606 OID 6929577)
-- Name: SALARIE SALARIE_ID_PAS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_PAS_fkey" FOREIGN KEY ("ID_PAS") REFERENCES "Default"."PAS"("ID");


--
-- TOC entry 21257 (class 2606 OID 6929582)
-- Name: SALARIE SALARIE_ID_REGLEMENT_PAYE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_REGLEMENT_PAYE_fkey" FOREIGN KEY ("ID_REGLEMENT_PAYE") REFERENCES "Default"."REGLEMENT_PAYE"("ID");


--
-- TOC entry 21258 (class 2606 OID 6929587)
-- Name: SALARIE SALARIE_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_TITRE_PERSONNEL_fkey" FOREIGN KEY ("ID_TITRE_PERSONNEL") REFERENCES "Default"."TITRE_PERSONNEL"("ID");


--
-- TOC entry 21259 (class 2606 OID 6929592)
-- Name: SALARIE SALARIE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21260 (class 2606 OID 6929597)
-- Name: SALARIE SALARIE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21261 (class 2606 OID 6929602)
-- Name: SALARIE SALARIE_ID_USER_COMMON_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_USER_COMMON_fkey" FOREIGN KEY ("ID_USER_COMMON") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21262 (class 2606 OID 6929607)
-- Name: SALARIE SALARIE_ID_VARIABLE_SALARIE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_VARIABLE_SALARIE_fkey" FOREIGN KEY ("ID_VARIABLE_SALARIE") REFERENCES "Default"."VARIABLE_SALARIE"("ID");


--
-- TOC entry 21263 (class 2606 OID 6929612)
-- Name: SEPA_MANDATE SEPA_MANDATE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SEPA_MANDATE"
    ADD CONSTRAINT "SEPA_MANDATE_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "Default"."CLIENT"("ID");


--
-- TOC entry 21264 (class 2606 OID 6929617)
-- Name: SITUATION_FAMILIALE SITUATION_FAMILIALE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SITUATION_FAMILIALE"
    ADD CONSTRAINT "SITUATION_FAMILIALE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21265 (class 2606 OID 6929622)
-- Name: SITUATION_FAMILIALE SITUATION_FAMILIALE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SITUATION_FAMILIALE"
    ADD CONSTRAINT "SITUATION_FAMILIALE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21266 (class 2606 OID 6929627)
-- Name: STOCK STOCK_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."STOCK"
    ADD CONSTRAINT "STOCK_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "Default"."ARTICLE"("ID");


--
-- TOC entry 21267 (class 2606 OID 6929632)
-- Name: STOCK STOCK_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."STOCK"
    ADD CONSTRAINT "STOCK_ID_DEPOT_STOCK_fkey" FOREIGN KEY ("ID_DEPOT_STOCK") REFERENCES "Default"."DEPOT_STOCK"("ID");


--
-- TOC entry 21268 (class 2606 OID 6929637)
-- Name: STOCK STOCK_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."STOCK"
    ADD CONSTRAINT "STOCK_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21269 (class 2606 OID 6929642)
-- Name: STOCK STOCK_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."STOCK"
    ADD CONSTRAINT "STOCK_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21272 (class 2606 OID 6929647)
-- Name: TARIF_ARTICLE_CLIENT TARIF_ARTICLE_CLIENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TARIF_ARTICLE_CLIENT"
    ADD CONSTRAINT "TARIF_ARTICLE_CLIENT_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "Default"."ARTICLE"("ID");


--
-- TOC entry 21273 (class 2606 OID 6929652)
-- Name: TARIF_ARTICLE_CLIENT TARIF_ARTICLE_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TARIF_ARTICLE_CLIENT"
    ADD CONSTRAINT "TARIF_ARTICLE_CLIENT_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "Default"."CLIENT"("ID");


--
-- TOC entry 21274 (class 2606 OID 6929657)
-- Name: TARIF_FAMILLE_ARTICLE_CLIENT TARIF_FAMILLE_ARTICLE_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TARIF_FAMILLE_ARTICLE_CLIENT"
    ADD CONSTRAINT "TARIF_FAMILLE_ARTICLE_CLIENT_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "Default"."CLIENT"("ID");


--
-- TOC entry 21275 (class 2606 OID 6929662)
-- Name: TARIF_FAMILLE_ARTICLE_CLIENT TARIF_FAMILLE_ARTICLE_CLIENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TARIF_FAMILLE_ARTICLE_CLIENT"
    ADD CONSTRAINT "TARIF_FAMILLE_ARTICLE_CLIENT_ID_FAMILLE_ARTICLE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE") REFERENCES "Default"."FAMILLE_ARTICLE"("ID");


--
-- TOC entry 21270 (class 2606 OID 6929667)
-- Name: TARIF TARIF_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TARIF"
    ADD CONSTRAINT "TARIF_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21271 (class 2606 OID 6929672)
-- Name: TARIF TARIF_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TARIF"
    ADD CONSTRAINT "TARIF_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "Default"."TAXE"("ID_TAXE");


--
-- TOC entry 21276 (class 2606 OID 6929677)
-- Name: TARIF_QUANTITE TARIF_QUANTITE_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TARIF_QUANTITE"
    ADD CONSTRAINT "TARIF_QUANTITE_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "Default"."ARTICLE"("ID");


--
-- TOC entry 21286 (class 2606 OID 6929682)
-- Name: TAXE_CATEGORIE_COMPTABLE TAXE_CATEGORIE_COMPTABLE_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE_CATEGORIE_COMPTABLE"
    ADD CONSTRAINT "TAXE_CATEGORIE_COMPTABLE_ID_CATEGORIE_COMPTABLE_fkey" FOREIGN KEY ("ID_CATEGORIE_COMPTABLE") REFERENCES "Default"."CATEGORIE_COMPTABLE"("ID");


--
-- TOC entry 21287 (class 2606 OID 6929687)
-- Name: TAXE_CATEGORIE_COMPTABLE TAXE_CATEGORIE_COMPTABLE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE_CATEGORIE_COMPTABLE"
    ADD CONSTRAINT "TAXE_CATEGORIE_COMPTABLE_ID_COMPTE_PCE_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACHAT") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21288 (class 2606 OID 6929692)
-- Name: TAXE_CATEGORIE_COMPTABLE TAXE_CATEGORIE_COMPTABLE_ID_COMPTE_PCE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE_CATEGORIE_COMPTABLE"
    ADD CONSTRAINT "TAXE_CATEGORIE_COMPTABLE_ID_COMPTE_PCE_VENTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_VENTE") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21289 (class 2606 OID 6929697)
-- Name: TAXE_CATEGORIE_COMPTABLE TAXE_CATEGORIE_COMPTABLE_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE_CATEGORIE_COMPTABLE"
    ADD CONSTRAINT "TAXE_CATEGORIE_COMPTABLE_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "Default"."TAXE"("ID_TAXE");


--
-- TOC entry 21290 (class 2606 OID 6929702)
-- Name: TAXE_COMPLEMENTAIRE TAXE_COMPLEMENTAIRE_ID_COMPTE_PCE_PRODUITS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE_COMPLEMENTAIRE"
    ADD CONSTRAINT "TAXE_COMPLEMENTAIRE_ID_COMPTE_PCE_PRODUITS_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PRODUITS") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21291 (class 2606 OID 6929707)
-- Name: TAXE_COMPLEMENTAIRE TAXE_COMPLEMENTAIRE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE_COMPLEMENTAIRE"
    ADD CONSTRAINT "TAXE_COMPLEMENTAIRE_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21277 (class 2606 OID 6929712)
-- Name: TAXE TAXE_ID_COMPTE_PCE_COLLECTE_INTRA_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE"
    ADD CONSTRAINT "TAXE_ID_COMPTE_PCE_COLLECTE_INTRA_fkey" FOREIGN KEY ("ID_COMPTE_PCE_COLLECTE_INTRA") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21278 (class 2606 OID 6929717)
-- Name: TAXE TAXE_ID_COMPTE_PCE_COLLECTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE"
    ADD CONSTRAINT "TAXE_ID_COMPTE_PCE_COLLECTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_COLLECTE") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21279 (class 2606 OID 6929722)
-- Name: TAXE TAXE_ID_COMPTE_PCE_DED_INTRA_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE"
    ADD CONSTRAINT "TAXE_ID_COMPTE_PCE_DED_INTRA_fkey" FOREIGN KEY ("ID_COMPTE_PCE_DED_INTRA") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21280 (class 2606 OID 6929727)
-- Name: TAXE TAXE_ID_COMPTE_PCE_DED_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE"
    ADD CONSTRAINT "TAXE_ID_COMPTE_PCE_DED_fkey" FOREIGN KEY ("ID_COMPTE_PCE_DED") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21281 (class 2606 OID 6929732)
-- Name: TAXE TAXE_ID_COMPTE_PCE_VENTE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE"
    ADD CONSTRAINT "TAXE_ID_COMPTE_PCE_VENTE_SERVICE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_VENTE_SERVICE") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21282 (class 2606 OID 6929737)
-- Name: TAXE TAXE_ID_COMPTE_PCE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE"
    ADD CONSTRAINT "TAXE_ID_COMPTE_PCE_VENTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_VENTE") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21283 (class 2606 OID 6929742)
-- Name: TAXE TAXE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE"
    ADD CONSTRAINT "TAXE_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21284 (class 2606 OID 6929747)
-- Name: TAXE TAXE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE"
    ADD CONSTRAINT "TAXE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21285 (class 2606 OID 6929752)
-- Name: TAXE TAXE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE"
    ADD CONSTRAINT "TAXE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 23101 (class 2606 OID 6941313)
-- Name: TAXE_INTERFEL TAXE_INTERFEL_ID_COMPTE_PCE_PRODUITS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE_INTERFEL"
    ADD CONSTRAINT "TAXE_INTERFEL_ID_COMPTE_PCE_PRODUITS_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PRODUITS") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 23102 (class 2606 OID 6941318)
-- Name: TAXE_INTERFEL TAXE_INTERFEL_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TAXE_INTERFEL"
    ADD CONSTRAINT "TAXE_INTERFEL_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21292 (class 2606 OID 6929757)
-- Name: TICKET_CAISSE TICKET_CAISSE_ID_CAISSE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TICKET_CAISSE"
    ADD CONSTRAINT "TICKET_CAISSE_ID_CAISSE_fkey" FOREIGN KEY ("ID_CAISSE") REFERENCES "Default"."CAISSE"("ID");


--
-- TOC entry 21293 (class 2606 OID 6929762)
-- Name: TICKET_CAISSE TICKET_CAISSE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TICKET_CAISSE"
    ADD CONSTRAINT "TICKET_CAISSE_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "Default"."CLIENT"("ID");


--
-- TOC entry 21294 (class 2606 OID 6929767)
-- Name: TICKET_CAISSE TICKET_CAISSE_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TICKET_CAISSE"
    ADD CONSTRAINT "TICKET_CAISSE_ID_COMMERCIAL_fkey" FOREIGN KEY ("ID_COMMERCIAL") REFERENCES "Default"."COMMERCIAL"("ID_COMMERCIAL");


--
-- TOC entry 21295 (class 2606 OID 6929772)
-- Name: TICKET_CAISSE TICKET_CAISSE_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TICKET_CAISSE"
    ADD CONSTRAINT "TICKET_CAISSE_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "Default"."MOUVEMENT"("ID");


--
-- TOC entry 21296 (class 2606 OID 6929777)
-- Name: TITRE_PERSONNEL TITRE_PERSONNEL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TITRE_PERSONNEL"
    ADD CONSTRAINT "TITRE_PERSONNEL_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21297 (class 2606 OID 6929782)
-- Name: TITRE_PERSONNEL TITRE_PERSONNEL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TITRE_PERSONNEL"
    ADD CONSTRAINT "TITRE_PERSONNEL_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21298 (class 2606 OID 6929787)
-- Name: TRANSFERT_STOCK TRANSFERT_STOCK_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TRANSFERT_STOCK"
    ADD CONSTRAINT "TRANSFERT_STOCK_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "Default"."ARTICLE"("ID");


--
-- TOC entry 21299 (class 2606 OID 6929792)
-- Name: TRANSFERT_STOCK TRANSFERT_STOCK_ID_DEPOT_STOCK_DEST_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TRANSFERT_STOCK"
    ADD CONSTRAINT "TRANSFERT_STOCK_ID_DEPOT_STOCK_DEST_fkey" FOREIGN KEY ("ID_DEPOT_STOCK_DEST") REFERENCES "Default"."DEPOT_STOCK"("ID");


--
-- TOC entry 21300 (class 2606 OID 6929797)
-- Name: TRANSFERT_STOCK TRANSFERT_STOCK_ID_DEPOT_STOCK_SOURCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TRANSFERT_STOCK"
    ADD CONSTRAINT "TRANSFERT_STOCK_ID_DEPOT_STOCK_SOURCE_fkey" FOREIGN KEY ("ID_DEPOT_STOCK_SOURCE") REFERENCES "Default"."DEPOT_STOCK"("ID");


--
-- TOC entry 21301 (class 2606 OID 6929802)
-- Name: TR_BON_DE_LIVRAISON TR_BON_DE_LIVRAISON_ID_BON_DE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_BON_DE_LIVRAISON"
    ADD CONSTRAINT "TR_BON_DE_LIVRAISON_ID_BON_DE_LIVRAISON_fkey" FOREIGN KEY ("ID_BON_DE_LIVRAISON") REFERENCES "Default"."BON_DE_LIVRAISON"("ID");


--
-- TOC entry 21302 (class 2606 OID 6929807)
-- Name: TR_BON_DE_LIVRAISON TR_BON_DE_LIVRAISON_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_BON_DE_LIVRAISON"
    ADD CONSTRAINT "TR_BON_DE_LIVRAISON_ID_SAISIE_VENTE_FACTURE_fkey" FOREIGN KEY ("ID_SAISIE_VENTE_FACTURE") REFERENCES "Default"."SAISIE_VENTE_FACTURE"("ID");


--
-- TOC entry 21303 (class 2606 OID 6929812)
-- Name: TR_BON_RECEPTION TR_BON_RECEPTION_ID_BON_RECEPTION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_BON_RECEPTION"
    ADD CONSTRAINT "TR_BON_RECEPTION_ID_BON_RECEPTION_fkey" FOREIGN KEY ("ID_BON_RECEPTION") REFERENCES "Default"."BON_RECEPTION"("ID");


--
-- TOC entry 21304 (class 2606 OID 6929817)
-- Name: TR_BON_RECEPTION TR_BON_RECEPTION_ID_FACTURE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_BON_RECEPTION"
    ADD CONSTRAINT "TR_BON_RECEPTION_ID_FACTURE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FACTURE_FOURNISSEUR") REFERENCES "Default"."FACTURE_FOURNISSEUR"("ID");


--
-- TOC entry 21305 (class 2606 OID 6929822)
-- Name: TR_BON_RECEPTION TR_BON_RECEPTION_ID_SAISIE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_BON_RECEPTION"
    ADD CONSTRAINT "TR_BON_RECEPTION_ID_SAISIE_ACHAT_fkey" FOREIGN KEY ("ID_SAISIE_ACHAT") REFERENCES "Default"."SAISIE_ACHAT"("ID");


--
-- TOC entry 21310 (class 2606 OID 6929827)
-- Name: TR_COMMANDE_CLIENT TR_COMMANDE_CLIENT_ID_BON_DE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_COMMANDE_CLIENT"
    ADD CONSTRAINT "TR_COMMANDE_CLIENT_ID_BON_DE_LIVRAISON_fkey" FOREIGN KEY ("ID_BON_DE_LIVRAISON") REFERENCES "Default"."BON_DE_LIVRAISON"("ID");


--
-- TOC entry 21311 (class 2606 OID 6929832)
-- Name: TR_COMMANDE_CLIENT TR_COMMANDE_CLIENT_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_COMMANDE_CLIENT"
    ADD CONSTRAINT "TR_COMMANDE_CLIENT_ID_COMMANDE_CLIENT_fkey" FOREIGN KEY ("ID_COMMANDE_CLIENT") REFERENCES "Default"."COMMANDE_CLIENT"("ID");


--
-- TOC entry 21312 (class 2606 OID 6929837)
-- Name: TR_COMMANDE_CLIENT TR_COMMANDE_CLIENT_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_COMMANDE_CLIENT"
    ADD CONSTRAINT "TR_COMMANDE_CLIENT_ID_COMMANDE_fkey" FOREIGN KEY ("ID_COMMANDE") REFERENCES "Default"."COMMANDE"("ID");


--
-- TOC entry 21313 (class 2606 OID 6929842)
-- Name: TR_COMMANDE_CLIENT TR_COMMANDE_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_COMMANDE_CLIENT"
    ADD CONSTRAINT "TR_COMMANDE_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey" FOREIGN KEY ("ID_SAISIE_VENTE_FACTURE") REFERENCES "Default"."SAISIE_VENTE_FACTURE"("ID");


--
-- TOC entry 21306 (class 2606 OID 6929847)
-- Name: TR_COMMANDE TR_COMMANDE_ID_BON_RECEPTION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_COMMANDE"
    ADD CONSTRAINT "TR_COMMANDE_ID_BON_RECEPTION_fkey" FOREIGN KEY ("ID_BON_RECEPTION") REFERENCES "Default"."BON_RECEPTION"("ID");


--
-- TOC entry 21307 (class 2606 OID 6929852)
-- Name: TR_COMMANDE TR_COMMANDE_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_COMMANDE"
    ADD CONSTRAINT "TR_COMMANDE_ID_COMMANDE_fkey" FOREIGN KEY ("ID_COMMANDE") REFERENCES "Default"."COMMANDE"("ID");


--
-- TOC entry 21308 (class 2606 OID 6929857)
-- Name: TR_COMMANDE TR_COMMANDE_ID_FACTURE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_COMMANDE"
    ADD CONSTRAINT "TR_COMMANDE_ID_FACTURE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FACTURE_FOURNISSEUR") REFERENCES "Default"."FACTURE_FOURNISSEUR"("ID");


--
-- TOC entry 21309 (class 2606 OID 6929862)
-- Name: TR_COMMANDE TR_COMMANDE_ID_SAISIE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_COMMANDE"
    ADD CONSTRAINT "TR_COMMANDE_ID_SAISIE_ACHAT_fkey" FOREIGN KEY ("ID_SAISIE_ACHAT") REFERENCES "Default"."SAISIE_ACHAT"("ID");


--
-- TOC entry 21314 (class 2606 OID 6929867)
-- Name: TR_DEVIS TR_DEVIS_ID_BON_DE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_DEVIS"
    ADD CONSTRAINT "TR_DEVIS_ID_BON_DE_LIVRAISON_fkey" FOREIGN KEY ("ID_BON_DE_LIVRAISON") REFERENCES "Default"."BON_DE_LIVRAISON"("ID");


--
-- TOC entry 21315 (class 2606 OID 6929872)
-- Name: TR_DEVIS TR_DEVIS_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_DEVIS"
    ADD CONSTRAINT "TR_DEVIS_ID_COMMANDE_CLIENT_fkey" FOREIGN KEY ("ID_COMMANDE_CLIENT") REFERENCES "Default"."COMMANDE_CLIENT"("ID");


--
-- TOC entry 21316 (class 2606 OID 6929877)
-- Name: TR_DEVIS TR_DEVIS_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_DEVIS"
    ADD CONSTRAINT "TR_DEVIS_ID_COMMANDE_fkey" FOREIGN KEY ("ID_COMMANDE") REFERENCES "Default"."COMMANDE"("ID");


--
-- TOC entry 21317 (class 2606 OID 6929882)
-- Name: TR_DEVIS TR_DEVIS_ID_DEVIS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_DEVIS"
    ADD CONSTRAINT "TR_DEVIS_ID_DEVIS_fkey" FOREIGN KEY ("ID_DEVIS") REFERENCES "Default"."DEVIS"("ID_DEVIS");


--
-- TOC entry 21318 (class 2606 OID 6929887)
-- Name: TR_DEVIS TR_DEVIS_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_DEVIS"
    ADD CONSTRAINT "TR_DEVIS_ID_SAISIE_VENTE_FACTURE_fkey" FOREIGN KEY ("ID_SAISIE_VENTE_FACTURE") REFERENCES "Default"."SAISIE_VENTE_FACTURE"("ID");


--
-- TOC entry 21319 (class 2606 OID 6929892)
-- Name: TR_SAISIE_ACHAT TR_SAISIE_ACHAT_ID_AVOIR_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_SAISIE_ACHAT"
    ADD CONSTRAINT "TR_SAISIE_ACHAT_ID_AVOIR_FOURNISSEUR_fkey" FOREIGN KEY ("ID_AVOIR_FOURNISSEUR") REFERENCES "Default"."AVOIR_FOURNISSEUR"("ID");


--
-- TOC entry 21320 (class 2606 OID 6929897)
-- Name: TR_SAISIE_ACHAT TR_SAISIE_ACHAT_ID_SAISIE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_SAISIE_ACHAT"
    ADD CONSTRAINT "TR_SAISIE_ACHAT_ID_SAISIE_ACHAT_fkey" FOREIGN KEY ("ID_SAISIE_ACHAT") REFERENCES "Default"."SAISIE_ACHAT"("ID");


--
-- TOC entry 21321 (class 2606 OID 6929902)
-- Name: TR_SAISIE_VENTE_FACTURE TR_SAISIE_VENTE_FACTURE_ID_AVOIR_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "TR_SAISIE_VENTE_FACTURE_ID_AVOIR_CLIENT_fkey" FOREIGN KEY ("ID_AVOIR_CLIENT") REFERENCES "Default"."AVOIR_CLIENT"("ID");


--
-- TOC entry 21322 (class 2606 OID 6929907)
-- Name: TR_SAISIE_VENTE_FACTURE TR_SAISIE_VENTE_FACTURE_ID_BON_DE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "TR_SAISIE_VENTE_FACTURE_ID_BON_DE_LIVRAISON_fkey" FOREIGN KEY ("ID_BON_DE_LIVRAISON") REFERENCES "Default"."BON_DE_LIVRAISON"("ID");


--
-- TOC entry 21323 (class 2606 OID 6929912)
-- Name: TR_SAISIE_VENTE_FACTURE TR_SAISIE_VENTE_FACTURE_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "TR_SAISIE_VENTE_FACTURE_ID_COMMANDE_fkey" FOREIGN KEY ("ID_COMMANDE") REFERENCES "Default"."COMMANDE"("ID");


--
-- TOC entry 21324 (class 2606 OID 6929917)
-- Name: TR_SAISIE_VENTE_FACTURE TR_SAISIE_VENTE_FACTURE_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TR_SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "TR_SAISIE_VENTE_FACTURE_ID_SAISIE_VENTE_FACTURE_fkey" FOREIGN KEY ("ID_SAISIE_VENTE_FACTURE") REFERENCES "Default"."SAISIE_VENTE_FACTURE"("ID");


--
-- TOC entry 21325 (class 2606 OID 6929922)
-- Name: TYPE_LETTRE_RELANCE TYPE_LETTRE_RELANCE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TYPE_LETTRE_RELANCE"
    ADD CONSTRAINT "TYPE_LETTRE_RELANCE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21326 (class 2606 OID 6929927)
-- Name: TYPE_LETTRE_RELANCE TYPE_LETTRE_RELANCE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TYPE_LETTRE_RELANCE"
    ADD CONSTRAINT "TYPE_LETTRE_RELANCE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21327 (class 2606 OID 6929932)
-- Name: TYPE_REGLEMENT TYPE_REGLEMENT_ID_COMPTE_PCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TYPE_REGLEMENT"
    ADD CONSTRAINT "TYPE_REGLEMENT_ID_COMPTE_PCE_CLIENT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_CLIENT") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21328 (class 2606 OID 6929937)
-- Name: TYPE_REGLEMENT TYPE_REGLEMENT_ID_COMPTE_PCE_FOURN_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TYPE_REGLEMENT"
    ADD CONSTRAINT "TYPE_REGLEMENT_ID_COMPTE_PCE_FOURN_fkey" FOREIGN KEY ("ID_COMPTE_PCE_FOURN") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21329 (class 2606 OID 6929942)
-- Name: TYPE_REGLEMENT TYPE_REGLEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TYPE_REGLEMENT"
    ADD CONSTRAINT "TYPE_REGLEMENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21330 (class 2606 OID 6929947)
-- Name: TYPE_REGLEMENT TYPE_REGLEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."TYPE_REGLEMENT"
    ADD CONSTRAINT "TYPE_REGLEMENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21331 (class 2606 OID 6929952)
-- Name: VARIABLE_SALARIE VARIABLE_SALARIE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."VARIABLE_SALARIE"
    ADD CONSTRAINT "VARIABLE_SALARIE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21332 (class 2606 OID 6929957)
-- Name: VARIABLE_SALARIE VARIABLE_SALARIE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."VARIABLE_SALARIE"
    ADD CONSTRAINT "VARIABLE_SALARIE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21333 (class 2606 OID 6929962)
-- Name: ACOMPTE ACOMPTE_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ACOMPTE"
    ADD CONSTRAINT "ACOMPTE_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21334 (class 2606 OID 6929967)
-- Name: ACOMPTE ACOMPTE_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ACOMPTE"
    ADD CONSTRAINT "ACOMPTE_ID_SALARIE_fkey" FOREIGN KEY ("ID_SALARIE") REFERENCES "OpenConcerto42"."SALARIE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21335 (class 2606 OID 6929972)
-- Name: ACOMPTE ACOMPTE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ACOMPTE"
    ADD CONSTRAINT "ACOMPTE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21336 (class 2606 OID 6929977)
-- Name: ACOMPTE ACOMPTE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ACOMPTE"
    ADD CONSTRAINT "ACOMPTE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21337 (class 2606 OID 6929982)
-- Name: ADRESSE ADRESSE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ADRESSE"
    ADD CONSTRAINT "ADRESSE_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21338 (class 2606 OID 6929987)
-- Name: ADRESSE ADRESSE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ADRESSE"
    ADD CONSTRAINT "ADRESSE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21339 (class 2606 OID 6929992)
-- Name: ADRESSE ADRESSE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ADRESSE"
    ADD CONSTRAINT "ADRESSE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21340 (class 2606 OID 6929997)
-- Name: AGENCE AGENCE_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AGENCE"
    ADD CONSTRAINT "AGENCE_ID_ADRESSE_fkey" FOREIGN KEY ("ID_ADRESSE") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 21341 (class 2606 OID 6930002)
-- Name: AGENCE AGENCE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AGENCE"
    ADD CONSTRAINT "AGENCE_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID");


--
-- TOC entry 21342 (class 2606 OID 6930007)
-- Name: ARRET_CHOMAGE_INTEMPERIE ARRET_CHOMAGE_INTEMPERIE_ID_CODE_AMENAGEMENT_PARTIEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARRET_CHOMAGE_INTEMPERIE"
    ADD CONSTRAINT "ARRET_CHOMAGE_INTEMPERIE_ID_CODE_AMENAGEMENT_PARTIEL_fkey" FOREIGN KEY ("ID_CODE_AMENAGEMENT_PARTIEL") REFERENCES "Common"."CODE_AMENAGEMENT_PARTIEL"("ID");


--
-- TOC entry 21343 (class 2606 OID 6930012)
-- Name: ARRET_CHOMAGE_INTEMPERIE ARRET_CHOMAGE_INTEMPERIE_ID_CODE_SUSPENSION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARRET_CHOMAGE_INTEMPERIE"
    ADD CONSTRAINT "ARRET_CHOMAGE_INTEMPERIE_ID_CODE_SUSPENSION_fkey" FOREIGN KEY ("ID_CODE_SUSPENSION") REFERENCES "Common"."CODE_SUSPENSION"("ID");


--
-- TOC entry 21344 (class 2606 OID 6930017)
-- Name: ARRET_CHOMAGE_INTEMPERIE ARRET_CHOMAGE_INTEMPERIE_ID_INFOS_SALARIE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARRET_CHOMAGE_INTEMPERIE"
    ADD CONSTRAINT "ARRET_CHOMAGE_INTEMPERIE_ID_INFOS_SALARIE_PAYE_fkey" FOREIGN KEY ("ID_INFOS_SALARIE_PAYE") REFERENCES "OpenConcerto42"."INFOS_SALARIE_PAYE"("ID");


--
-- TOC entry 21345 (class 2606 OID 6930022)
-- Name: ARRET_TRAVAIL ARRET_TRAVAIL_ID_MOTIF_ARRET_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARRET_TRAVAIL"
    ADD CONSTRAINT "ARRET_TRAVAIL_ID_MOTIF_ARRET_TRAVAIL_fkey" FOREIGN KEY ("ID_MOTIF_ARRET_TRAVAIL") REFERENCES "Common"."MOTIF_ARRET_TRAVAIL"("ID");


--
-- TOC entry 21346 (class 2606 OID 6930027)
-- Name: ARRET_TRAVAIL ARRET_TRAVAIL_ID_MOTIF_REPRISE_ARRET_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARRET_TRAVAIL"
    ADD CONSTRAINT "ARRET_TRAVAIL_ID_MOTIF_REPRISE_ARRET_TRAVAIL_fkey" FOREIGN KEY ("ID_MOTIF_REPRISE_ARRET_TRAVAIL") REFERENCES "Common"."MOTIF_REPRISE_ARRET_TRAVAIL"("ID");


--
-- TOC entry 21347 (class 2606 OID 6930032)
-- Name: ARRET_TRAVAIL ARRET_TRAVAIL_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARRET_TRAVAIL"
    ADD CONSTRAINT "ARRET_TRAVAIL_ID_SALARIE_fkey" FOREIGN KEY ("ID_SALARIE") REFERENCES "OpenConcerto42"."SALARIE"("ID");


--
-- TOC entry 21373 (class 2606 OID 6930037)
-- Name: ARTICLE_CATEGORIE_COMPTABLE ARTICLE_CATEGORIE_COMPTABLE_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_CATEGORIE_COMPTABLE"
    ADD CONSTRAINT "ARTICLE_CATEGORIE_COMPTABLE_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21374 (class 2606 OID 6930042)
-- Name: ARTICLE_CATEGORIE_COMPTABLE ARTICLE_CATEGORIE_COMPTABLE_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_CATEGORIE_COMPTABLE"
    ADD CONSTRAINT "ARTICLE_CATEGORIE_COMPTABLE_ID_CATEGORIE_COMPTABLE_fkey" FOREIGN KEY ("ID_CATEGORIE_COMPTABLE") REFERENCES "OpenConcerto42"."CATEGORIE_COMPTABLE"("ID");


--
-- TOC entry 21375 (class 2606 OID 6930047)
-- Name: ARTICLE_CATEGORIE_COMPTABLE ARTICLE_CATEGORIE_COMPTABLE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_CATEGORIE_COMPTABLE"
    ADD CONSTRAINT "ARTICLE_CATEGORIE_COMPTABLE_ID_COMPTE_PCE_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACHAT") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21376 (class 2606 OID 6930052)
-- Name: ARTICLE_CATEGORIE_COMPTABLE ARTICLE_CATEGORIE_COMPTABLE_ID_COMPTE_PCE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_CATEGORIE_COMPTABLE"
    ADD CONSTRAINT "ARTICLE_CATEGORIE_COMPTABLE_ID_COMPTE_PCE_VENTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_VENTE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21377 (class 2606 OID 6930057)
-- Name: ARTICLE_CATEGORIE_COMPTABLE ARTICLE_CATEGORIE_COMPTABLE_ID_TAXE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_CATEGORIE_COMPTABLE"
    ADD CONSTRAINT "ARTICLE_CATEGORIE_COMPTABLE_ID_TAXE_ACHAT_fkey" FOREIGN KEY ("ID_TAXE_ACHAT") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21378 (class 2606 OID 6930062)
-- Name: ARTICLE_CATEGORIE_COMPTABLE ARTICLE_CATEGORIE_COMPTABLE_ID_TAXE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_CATEGORIE_COMPTABLE"
    ADD CONSTRAINT "ARTICLE_CATEGORIE_COMPTABLE_ID_TAXE_VENTE_fkey" FOREIGN KEY ("ID_TAXE_VENTE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21379 (class 2606 OID 6930067)
-- Name: ARTICLE_CODE_CLIENT ARTICLE_CODE_CLIENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_CODE_CLIENT"
    ADD CONSTRAINT "ARTICLE_CODE_CLIENT_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21380 (class 2606 OID 6930072)
-- Name: ARTICLE_CODE_CLIENT ARTICLE_CODE_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_CODE_CLIENT"
    ADD CONSTRAINT "ARTICLE_CODE_CLIENT_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID");


--
-- TOC entry 21381 (class 2606 OID 6930077)
-- Name: ARTICLE_DESIGNATION ARTICLE_DESIGNATION_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_DESIGNATION"
    ADD CONSTRAINT "ARTICLE_DESIGNATION_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21382 (class 2606 OID 6930082)
-- Name: ARTICLE_DESIGNATION ARTICLE_DESIGNATION_ID_LANGUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_DESIGNATION"
    ADD CONSTRAINT "ARTICLE_DESIGNATION_ID_LANGUE_fkey" FOREIGN KEY ("ID_LANGUE") REFERENCES "OpenConcerto42"."LANGUE"("ID");


--
-- TOC entry 21383 (class 2606 OID 6930087)
-- Name: ARTICLE_ELEMENT ARTICLE_ELEMENT_ID_ARTICLE_PARENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_ELEMENT"
    ADD CONSTRAINT "ARTICLE_ELEMENT_ID_ARTICLE_PARENT_fkey" FOREIGN KEY ("ID_ARTICLE_PARENT") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21384 (class 2606 OID 6930092)
-- Name: ARTICLE_ELEMENT ARTICLE_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_ELEMENT"
    ADD CONSTRAINT "ARTICLE_ELEMENT_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21385 (class 2606 OID 6930097)
-- Name: ARTICLE_ELEMENT ARTICLE_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_ELEMENT"
    ADD CONSTRAINT "ARTICLE_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "OpenConcerto42"."UNITE_VENTE"("ID");


--
-- TOC entry 21386 (class 2606 OID 6930102)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21387 (class 2606 OID 6930107)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_ID_COMPTE_PCE_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACHAT") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21388 (class 2606 OID 6930112)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21389 (class 2606 OID 6930117)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_DEVISE_HA_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_ID_DEVISE_HA_fkey" FOREIGN KEY ("ID_DEVISE_HA") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21390 (class 2606 OID 6930122)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21391 (class 2606 OID 6930127)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_FAMILLE_ARTICLE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_ID_FAMILLE_ARTICLE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE_FOURNISSEUR") REFERENCES "OpenConcerto42"."FAMILLE_ARTICLE_FOURNISSEUR"("ID");


--
-- TOC entry 21392 (class 2606 OID 6930132)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_ID_FAMILLE_ARTICLE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE") REFERENCES "OpenConcerto42"."FAMILLE_ARTICLE"("ID");


--
-- TOC entry 21393 (class 2606 OID 6930137)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto42"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 21394 (class 2606 OID 6930142)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "OpenConcerto42"."METRIQUE"("ID");


--
-- TOC entry 21395 (class 2606 OID 6930147)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "OpenConcerto42"."METRIQUE"("ID");


--
-- TOC entry 21396 (class 2606 OID 6930152)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "OpenConcerto42"."METRIQUE"("ID");


--
-- TOC entry 21397 (class 2606 OID 6930157)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "OpenConcerto42"."MODE_VENTE_ARTICLE"("ID");


--
-- TOC entry 21398 (class 2606 OID 6930162)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_ID_PAYS_fkey" FOREIGN KEY ("ID_PAYS") REFERENCES "OpenConcerto42"."PAYS"("ID");


--
-- TOC entry 21399 (class 2606 OID 6930167)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21400 (class 2606 OID 6930172)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "OpenConcerto42"."UNITE_VENTE"("ID");


--
-- TOC entry 21401 (class 2606 OID 6930177)
-- Name: ARTICLE_FOURNISSEUR_SECONDAIRE ARTICLE_FOURNISSEUR_SECONDAIRE_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR_SECONDAIRE"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_SECONDAIRE_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21402 (class 2606 OID 6930182)
-- Name: ARTICLE_FOURNISSEUR_SECONDAIRE ARTICLE_FOURNISSEUR_SECONDAIRE_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_FOURNISSEUR_SECONDAIRE"
    ADD CONSTRAINT "ARTICLE_FOURNISSEUR_SECONDAIRE_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto42"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 21348 (class 2606 OID 6930187)
-- Name: ARTICLE ARTICLE_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_ARTICLE_DECLINAISON_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 21349 (class 2606 OID 6930192)
-- Name: ARTICLE ARTICLE_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_ARTICLE_DECLINAISON_TAILLE_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_TAILLE") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_TAILLE"("ID");


--
-- TOC entry 21350 (class 2606 OID 6930197)
-- Name: ARTICLE ARTICLE_ID_ARTICLE_VIRTUEL_PERE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_ARTICLE_VIRTUEL_PERE_fkey" FOREIGN KEY ("ID_ARTICLE_VIRTUEL_PERE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21351 (class 2606 OID 6930202)
-- Name: ARTICLE ARTICLE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_COMPTE_PCE_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACHAT") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21352 (class 2606 OID 6930207)
-- Name: ARTICLE ARTICLE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21353 (class 2606 OID 6930212)
-- Name: ARTICLE ARTICLE_ID_COUT_REVIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_COUT_REVIENT_fkey" FOREIGN KEY ("ID_COUT_REVIENT") REFERENCES "OpenConcerto42"."COUT_REVIENT"("ID");


--
-- TOC entry 21354 (class 2606 OID 6930217)
-- Name: ARTICLE ARTICLE_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_DEPOT_STOCK_fkey" FOREIGN KEY ("ID_DEPOT_STOCK") REFERENCES "OpenConcerto42"."DEPOT_STOCK"("ID");


--
-- TOC entry 21355 (class 2606 OID 6930222)
-- Name: ARTICLE ARTICLE_ID_DEVISE_HA_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_DEVISE_HA_fkey" FOREIGN KEY ("ID_DEVISE_HA") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21356 (class 2606 OID 6930227)
-- Name: ARTICLE ARTICLE_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21357 (class 2606 OID 6930232)
-- Name: ARTICLE ARTICLE_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_ECO_CONTRIBUTION_fkey" FOREIGN KEY ("ID_ECO_CONTRIBUTION") REFERENCES "Common"."ECO_CONTRIBUTION"("ID");


--
-- TOC entry 21358 (class 2606 OID 6930237)
-- Name: ARTICLE ARTICLE_ID_FABRICANT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_FABRICANT_fkey" FOREIGN KEY ("ID_FABRICANT") REFERENCES "OpenConcerto42"."FABRICANT"("ID");


--
-- TOC entry 21359 (class 2606 OID 6930242)
-- Name: ARTICLE ARTICLE_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_FAMILLE_ARTICLE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE") REFERENCES "OpenConcerto42"."FAMILLE_ARTICLE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21360 (class 2606 OID 6930247)
-- Name: ARTICLE ARTICLE_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto42"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 21361 (class 2606 OID 6930252)
-- Name: ARTICLE ARTICLE_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21362 (class 2606 OID 6930257)
-- Name: ARTICLE ARTICLE_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21363 (class 2606 OID 6930262)
-- Name: ARTICLE ARTICLE_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21364 (class 2606 OID 6930267)
-- Name: ARTICLE ARTICLE_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "OpenConcerto42"."MODE_VENTE_ARTICLE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21365 (class 2606 OID 6930272)
-- Name: ARTICLE ARTICLE_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_PAYS_fkey" FOREIGN KEY ("ID_PAYS") REFERENCES "OpenConcerto42"."PAYS"("ID");


--
-- TOC entry 21366 (class 2606 OID 6930277)
-- Name: ARTICLE ARTICLE_ID_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_STOCK_fkey" FOREIGN KEY ("ID_STOCK") REFERENCES "OpenConcerto42"."STOCK"("ID") ON DELETE CASCADE;


--
-- TOC entry 21367 (class 2606 OID 6930282)
-- Name: ARTICLE ARTICLE_ID_TAXE_COMPLEMENTAIRE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_TAXE_COMPLEMENTAIRE_fkey" FOREIGN KEY ("ID_TAXE_COMPLEMENTAIRE") REFERENCES "OpenConcerto42"."TAXE_COMPLEMENTAIRE"("ID");


--
-- TOC entry 21368 (class 2606 OID 6940863)
-- Name: ARTICLE ARTICLE_ID_TAXE_INTERFEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_TAXE_INTERFEL_fkey" FOREIGN KEY ("ID_TAXE_INTERFEL") REFERENCES "OpenConcerto42"."TAXE_INTERFEL"("ID");


--
-- TOC entry 21369 (class 2606 OID 6930287)
-- Name: ARTICLE ARTICLE_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE") ON DELETE CASCADE;


--
-- TOC entry 21370 (class 2606 OID 6930292)
-- Name: ARTICLE ARTICLE_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "OpenConcerto42"."UNITE_VENTE"("ID");


--
-- TOC entry 21371 (class 2606 OID 6930297)
-- Name: ARTICLE ARTICLE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21372 (class 2606 OID 6930302)
-- Name: ARTICLE ARTICLE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21407 (class 2606 OID 6930307)
-- Name: ARTICLE_TARIF_FOURNISSEUR ARTICLE_TARIF_FOURNISSEUR_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_TARIF_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_TARIF_FOURNISSEUR_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21408 (class 2606 OID 6930312)
-- Name: ARTICLE_TARIF_FOURNISSEUR ARTICLE_TARIF_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_TARIF_FOURNISSEUR"
    ADD CONSTRAINT "ARTICLE_TARIF_FOURNISSEUR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto42"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 21403 (class 2606 OID 6930317)
-- Name: ARTICLE_TARIF ARTICLE_TARIF_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_TARIF"
    ADD CONSTRAINT "ARTICLE_TARIF_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21404 (class 2606 OID 6930322)
-- Name: ARTICLE_TARIF ARTICLE_TARIF_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_TARIF"
    ADD CONSTRAINT "ARTICLE_TARIF_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21405 (class 2606 OID 6930327)
-- Name: ARTICLE_TARIF ARTICLE_TARIF_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_TARIF"
    ADD CONSTRAINT "ARTICLE_TARIF_ID_TARIF_fkey" FOREIGN KEY ("ID_TARIF") REFERENCES "OpenConcerto42"."TARIF"("ID");


--
-- TOC entry 21406 (class 2606 OID 6930332)
-- Name: ARTICLE_TARIF ARTICLE_TARIF_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_TARIF"
    ADD CONSTRAINT "ARTICLE_TARIF_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21409 (class 2606 OID 6930337)
-- Name: ARTICLE_TARIF_PROMOTION ARTICLE_TARIF_PROMOTION_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_TARIF_PROMOTION"
    ADD CONSTRAINT "ARTICLE_TARIF_PROMOTION_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21410 (class 2606 OID 6930342)
-- Name: ARTICLE_TARIF_PROMOTION ARTICLE_TARIF_PROMOTION_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_TARIF_PROMOTION"
    ADD CONSTRAINT "ARTICLE_TARIF_PROMOTION_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21411 (class 2606 OID 6930347)
-- Name: ARTICLE_TARIF_PROMOTION ARTICLE_TARIF_PROMOTION_ID_TARIF_PROMOTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_TARIF_PROMOTION"
    ADD CONSTRAINT "ARTICLE_TARIF_PROMOTION_ID_TARIF_PROMOTION_fkey" FOREIGN KEY ("ID_TARIF_PROMOTION") REFERENCES "OpenConcerto42"."TARIF_PROMOTION"("ID");


--
-- TOC entry 21412 (class 2606 OID 6930352)
-- Name: ARTICLE_TARIF_PROMOTION ARTICLE_TARIF_PROMOTION_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ARTICLE_TARIF_PROMOTION"
    ADD CONSTRAINT "ARTICLE_TARIF_PROMOTION_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21413 (class 2606 OID 6930357)
-- Name: ASSOCIATION_ANALYTIQUE ASSOCIATION_ANALYTIQUE_ID_ECRITURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ASSOCIATION_ANALYTIQUE"
    ADD CONSTRAINT "ASSOCIATION_ANALYTIQUE_ID_ECRITURE_fkey" FOREIGN KEY ("ID_ECRITURE") REFERENCES "OpenConcerto42"."ECRITURE"("ID");


--
-- TOC entry 21414 (class 2606 OID 6930362)
-- Name: ASSOCIATION_ANALYTIQUE ASSOCIATION_ANALYTIQUE_ID_POSTE_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ASSOCIATION_ANALYTIQUE"
    ADD CONSTRAINT "ASSOCIATION_ANALYTIQUE_ID_POSTE_ANALYTIQUE_fkey" FOREIGN KEY ("ID_POSTE_ANALYTIQUE") REFERENCES "OpenConcerto42"."POSTE_ANALYTIQUE"("ID");


--
-- TOC entry 21415 (class 2606 OID 6930367)
-- Name: ASSOCIATION_ANALYTIQUE ASSOCIATION_ANALYTIQUE_ID_SAISIE_KM_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ASSOCIATION_ANALYTIQUE"
    ADD CONSTRAINT "ASSOCIATION_ANALYTIQUE_ID_SAISIE_KM_ELEMENT_fkey" FOREIGN KEY ("ID_SAISIE_KM_ELEMENT") REFERENCES "OpenConcerto42"."SAISIE_KM_ELEMENT"("ID");


--
-- TOC entry 21416 (class 2606 OID 6930372)
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE ASSOCIATION_COMPTE_ANALYTIQUE_ID_AXE_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ASSOCIATION_COMPTE_ANALYTIQUE"
    ADD CONSTRAINT "ASSOCIATION_COMPTE_ANALYTIQUE_ID_AXE_ANALYTIQUE_fkey" FOREIGN KEY ("ID_AXE_ANALYTIQUE") REFERENCES "OpenConcerto42"."AXE_ANALYTIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21417 (class 2606 OID 6930377)
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE ASSOCIATION_COMPTE_ANALYTIQUE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ASSOCIATION_COMPTE_ANALYTIQUE"
    ADD CONSTRAINT "ASSOCIATION_COMPTE_ANALYTIQUE_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21418 (class 2606 OID 6930382)
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE ASSOCIATION_COMPTE_ANALYTIQUE_ID_REPARTITION_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ASSOCIATION_COMPTE_ANALYTIQUE"
    ADD CONSTRAINT "ASSOCIATION_COMPTE_ANALYTIQUE_ID_REPARTITION_ANALYTIQUE_fkey" FOREIGN KEY ("ID_REPARTITION_ANALYTIQUE") REFERENCES "OpenConcerto42"."REPARTITION_ANALYTIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21419 (class 2606 OID 6930387)
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE ASSOCIATION_COMPTE_ANALYTIQUE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ASSOCIATION_COMPTE_ANALYTIQUE"
    ADD CONSTRAINT "ASSOCIATION_COMPTE_ANALYTIQUE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21420 (class 2606 OID 6930392)
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE ASSOCIATION_COMPTE_ANALYTIQUE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ASSOCIATION_COMPTE_ANALYTIQUE"
    ADD CONSTRAINT "ASSOCIATION_COMPTE_ANALYTIQUE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21421 (class 2606 OID 6930397)
-- Name: ATTACHMENT ATTACHMENT_ID_PARENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ATTACHMENT"
    ADD CONSTRAINT "ATTACHMENT_ID_PARENT_fkey" FOREIGN KEY ("ID_PARENT") REFERENCES "OpenConcerto42"."ATTACHMENT"("ID");


--
-- TOC entry 21439 (class 2606 OID 6930402)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 21440 (class 2606 OID 6930407)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_TAILLE") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_TAILLE"("ID");


--
-- TOC entry 21441 (class 2606 OID 6930412)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21442 (class 2606 OID 6930417)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_AVOIR_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_AVOIR_CLIENT_fkey" FOREIGN KEY ("ID_AVOIR_CLIENT") REFERENCES "OpenConcerto42"."AVOIR_CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21443 (class 2606 OID 6930422)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_CONTACT_fkey" FOREIGN KEY ("ID_CONTACT") REFERENCES "OpenConcerto42"."CONTACT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21444 (class 2606 OID 6930427)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_DEPOT_STOCK_fkey" FOREIGN KEY ("ID_DEPOT_STOCK") REFERENCES "OpenConcerto42"."DEPOT_STOCK"("ID");


--
-- TOC entry 21445 (class 2606 OID 6930432)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21446 (class 2606 OID 6930437)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_ECO_CONTRIBUTION_fkey" FOREIGN KEY ("ID_ECO_CONTRIBUTION") REFERENCES "Common"."ECO_CONTRIBUTION"("ID");


--
-- TOC entry 21447 (class 2606 OID 6930442)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_FAMILLE_ARTICLE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE") REFERENCES "OpenConcerto42"."FAMILLE_ARTICLE"("ID");


--
-- TOC entry 21448 (class 2606 OID 6930447)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21449 (class 2606 OID 6930452)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21450 (class 2606 OID 6930457)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21451 (class 2606 OID 6930462)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "OpenConcerto42"."MODE_VENTE_ARTICLE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21452 (class 2606 OID 6930467)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_PAYS_fkey" FOREIGN KEY ("ID_PAYS") REFERENCES "OpenConcerto42"."PAYS"("ID");


--
-- TOC entry 21453 (class 2606 OID 6930472)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "OpenConcerto42"."STYLE"("ID_STYLE") ON DELETE CASCADE;


--
-- TOC entry 21454 (class 2606 OID 6930477)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE") ON DELETE CASCADE;


--
-- TOC entry 21455 (class 2606 OID 6930482)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "OpenConcerto42"."UNITE_VENTE"("ID");


--
-- TOC entry 21456 (class 2606 OID 6930487)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21457 (class 2606 OID 6930492)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21422 (class 2606 OID 6930497)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_ADRESSE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_ADRESSE_LIVRAISON_fkey" FOREIGN KEY ("ID_ADRESSE_LIVRAISON") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 21423 (class 2606 OID 6930502)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_ADRESSE_fkey" FOREIGN KEY ("ID_ADRESSE") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE") ON DELETE CASCADE;


--
-- TOC entry 21424 (class 2606 OID 6930507)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_CATEGORIE_COMPTABLE_fkey" FOREIGN KEY ("ID_CATEGORIE_COMPTABLE") REFERENCES "OpenConcerto42"."CATEGORIE_COMPTABLE"("ID");


--
-- TOC entry 21425 (class 2606 OID 6930512)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_CLIENT_DEPARTEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_CLIENT_DEPARTEMENT_fkey" FOREIGN KEY ("ID_CLIENT_DEPARTEMENT") REFERENCES "OpenConcerto42"."CLIENT_DEPARTEMENT"("ID");


--
-- TOC entry 21426 (class 2606 OID 6930517)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21427 (class 2606 OID 6930522)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_COMMERCIAL_fkey" FOREIGN KEY ("ID_COMMERCIAL") REFERENCES "OpenConcerto42"."COMMERCIAL"("ID_COMMERCIAL") ON DELETE CASCADE;


--
-- TOC entry 21428 (class 2606 OID 6930527)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_COMPTE_PCE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_COMPTE_PCE_SERVICE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_SERVICE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21429 (class 2606 OID 6930532)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_CONTACT_fkey" FOREIGN KEY ("ID_CONTACT") REFERENCES "OpenConcerto42"."CONTACT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21430 (class 2606 OID 6930537)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_MODELE_fkey" FOREIGN KEY ("ID_MODELE") REFERENCES "OpenConcerto42"."MODELE"("ID");


--
-- TOC entry 21431 (class 2606 OID 6930542)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_MODE_REGLEMENT_fkey" FOREIGN KEY ("ID_MODE_REGLEMENT") REFERENCES "OpenConcerto42"."MODE_REGLEMENT"("ID_MODE_REGLEMENT") ON DELETE CASCADE;


--
-- TOC entry 21432 (class 2606 OID 6930547)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21433 (class 2606 OID 6930552)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey" FOREIGN KEY ("ID_SAISIE_VENTE_FACTURE") REFERENCES "OpenConcerto42"."SAISIE_VENTE_FACTURE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21434 (class 2606 OID 6930557)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_TARIF_fkey" FOREIGN KEY ("ID_TARIF") REFERENCES "OpenConcerto42"."TARIF"("ID");


--
-- TOC entry 21435 (class 2606 OID 6930562)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_TAXE_PORT_fkey" FOREIGN KEY ("ID_TAXE_PORT") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21436 (class 2606 OID 6930567)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE") ON DELETE CASCADE;


--
-- TOC entry 21437 (class 2606 OID 6930572)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21438 (class 2606 OID 6930577)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_CLIENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21458 (class 2606 OID 6930582)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_FOURNISSEUR"
    ADD CONSTRAINT "AVOIR_FOURNISSEUR_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21459 (class 2606 OID 6930587)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_FOURNISSEUR"
    ADD CONSTRAINT "AVOIR_FOURNISSEUR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto42"."FOURNISSEUR"("ID_FOURNISSEUR") ON DELETE CASCADE;


--
-- TOC entry 21460 (class 2606 OID 6930592)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_FOURNISSEUR"
    ADD CONSTRAINT "AVOIR_FOURNISSEUR_ID_MODE_REGLEMENT_fkey" FOREIGN KEY ("ID_MODE_REGLEMENT") REFERENCES "OpenConcerto42"."MODE_REGLEMENT"("ID_MODE_REGLEMENT") ON DELETE CASCADE;


--
-- TOC entry 21461 (class 2606 OID 6930597)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_FOURNISSEUR"
    ADD CONSTRAINT "AVOIR_FOURNISSEUR_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21462 (class 2606 OID 6930602)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_FOURNISSEUR"
    ADD CONSTRAINT "AVOIR_FOURNISSEUR_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE") ON DELETE CASCADE;


--
-- TOC entry 21463 (class 2606 OID 6930607)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_FOURNISSEUR"
    ADD CONSTRAINT "AVOIR_FOURNISSEUR_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21464 (class 2606 OID 6930612)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AVOIR_FOURNISSEUR"
    ADD CONSTRAINT "AVOIR_FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21465 (class 2606 OID 6930617)
-- Name: AXE_ANALYTIQUE AXE_ANALYTIQUE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AXE_ANALYTIQUE"
    ADD CONSTRAINT "AXE_ANALYTIQUE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21466 (class 2606 OID 6930622)
-- Name: AXE_ANALYTIQUE AXE_ANALYTIQUE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AXE_ANALYTIQUE"
    ADD CONSTRAINT "AXE_ANALYTIQUE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21467 (class 2606 OID 6930627)
-- Name: AYANT_DROIT AYANT_DROIT_ID_AYANT_DROIT_TYPE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AYANT_DROIT"
    ADD CONSTRAINT "AYANT_DROIT_ID_AYANT_DROIT_TYPE_fkey" FOREIGN KEY ("ID_AYANT_DROIT_TYPE") REFERENCES "Common"."AYANT_DROIT_TYPE"("ID");


--
-- TOC entry 21468 (class 2606 OID 6930632)
-- Name: AYANT_DROIT AYANT_DROIT_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."AYANT_DROIT"
    ADD CONSTRAINT "AYANT_DROIT_ID_SALARIE_fkey" FOREIGN KEY ("ID_SALARIE") REFERENCES "OpenConcerto42"."SALARIE"("ID");


--
-- TOC entry 21469 (class 2606 OID 6941107)
-- Name: BANQUE BANQUE_ID_COMPTE_PCE_CB_ATTENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BANQUE"
    ADD CONSTRAINT "BANQUE_ID_COMPTE_PCE_CB_ATTENTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_CB_ATTENTE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21470 (class 2606 OID 6941131)
-- Name: BANQUE BANQUE_ID_COMPTE_PCE_FRAIS_CB_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BANQUE"
    ADD CONSTRAINT "BANQUE_ID_COMPTE_PCE_FRAIS_CB_fkey" FOREIGN KEY ("ID_COMPTE_PCE_FRAIS_CB") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21471 (class 2606 OID 6930637)
-- Name: BANQUE BANQUE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BANQUE"
    ADD CONSTRAINT "BANQUE_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21472 (class 2606 OID 6941112)
-- Name: BANQUE BANQUE_ID_JOURNAL_CB_ATTENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BANQUE"
    ADD CONSTRAINT "BANQUE_ID_JOURNAL_CB_ATTENTE_fkey" FOREIGN KEY ("ID_JOURNAL_CB_ATTENTE") REFERENCES "OpenConcerto42"."JOURNAL"("ID");


--
-- TOC entry 21473 (class 2606 OID 6930642)
-- Name: BANQUE BANQUE_ID_JOURNAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BANQUE"
    ADD CONSTRAINT "BANQUE_ID_JOURNAL_fkey" FOREIGN KEY ("ID_JOURNAL") REFERENCES "OpenConcerto42"."JOURNAL"("ID");


--
-- TOC entry 21490 (class 2606 OID 6930647)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 21491 (class 2606 OID 6930652)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_TAILLE") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_TAILLE"("ID");


--
-- TOC entry 21492 (class 2606 OID 6930657)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21493 (class 2606 OID 6930662)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_BON_DE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_BON_DE_LIVRAISON_fkey" FOREIGN KEY ("ID_BON_DE_LIVRAISON") REFERENCES "OpenConcerto42"."BON_DE_LIVRAISON"("ID") ON DELETE CASCADE;


--
-- TOC entry 21494 (class 2606 OID 6930667)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_COMMANDE_CLIENT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_COMMANDE_CLIENT_ELEMENT_fkey" FOREIGN KEY ("ID_COMMANDE_CLIENT_ELEMENT") REFERENCES "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"("ID");


--
-- TOC entry 21495 (class 2606 OID 6930672)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_DEPOT_STOCK_fkey" FOREIGN KEY ("ID_DEPOT_STOCK") REFERENCES "OpenConcerto42"."DEPOT_STOCK"("ID");


--
-- TOC entry 21496 (class 2606 OID 6930677)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21497 (class 2606 OID 6930682)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_DEVIS_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_DEVIS_ELEMENT_fkey" FOREIGN KEY ("ID_DEVIS_ELEMENT") REFERENCES "OpenConcerto42"."DEVIS_ELEMENT"("ID_DEVIS_ELEMENT");


--
-- TOC entry 21498 (class 2606 OID 6930687)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_ECO_CONTRIBUTION_fkey" FOREIGN KEY ("ID_ECO_CONTRIBUTION") REFERENCES "Common"."ECO_CONTRIBUTION"("ID");


--
-- TOC entry 21499 (class 2606 OID 6930692)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_FAMILLE_ARTICLE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE") REFERENCES "OpenConcerto42"."FAMILLE_ARTICLE"("ID");


--
-- TOC entry 21500 (class 2606 OID 6930697)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21501 (class 2606 OID 6940692)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21502 (class 2606 OID 6930707)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21503 (class 2606 OID 6930712)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "OpenConcerto42"."MODE_VENTE_ARTICLE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21504 (class 2606 OID 6930717)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_PAYS_fkey" FOREIGN KEY ("ID_PAYS") REFERENCES "OpenConcerto42"."PAYS"("ID");


--
-- TOC entry 21505 (class 2606 OID 6930722)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_SAISIE_VENTE_FACTURE_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_SAISIE_VENTE_FACTURE_ELEMENT_fkey" FOREIGN KEY ("ID_SAISIE_VENTE_FACTURE_ELEMENT") REFERENCES "OpenConcerto42"."SAISIE_VENTE_FACTURE_ELEMENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21506 (class 2606 OID 6930727)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "OpenConcerto42"."STYLE"("ID_STYLE") ON DELETE CASCADE;


--
-- TOC entry 21507 (class 2606 OID 6930732)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE") ON DELETE CASCADE;


--
-- TOC entry 21508 (class 2606 OID 6930737)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "OpenConcerto42"."UNITE_VENTE"("ID");


--
-- TOC entry 21509 (class 2606 OID 6930742)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21510 (class 2606 OID 6930747)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21474 (class 2606 OID 6930752)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_ADRESSE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ID_ADRESSE_LIVRAISON_fkey" FOREIGN KEY ("ID_ADRESSE_LIVRAISON") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 21475 (class 2606 OID 6930757)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ID_ADRESSE_fkey" FOREIGN KEY ("ID_ADRESSE") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 21476 (class 2606 OID 6930762)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ID_CATEGORIE_COMPTABLE_fkey" FOREIGN KEY ("ID_CATEGORIE_COMPTABLE") REFERENCES "OpenConcerto42"."CATEGORIE_COMPTABLE"("ID");


--
-- TOC entry 21477 (class 2606 OID 6930767)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_CLIENT_DEPARTEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ID_CLIENT_DEPARTEMENT_fkey" FOREIGN KEY ("ID_CLIENT_DEPARTEMENT") REFERENCES "OpenConcerto42"."CLIENT_DEPARTEMENT"("ID");


--
-- TOC entry 21478 (class 2606 OID 6930772)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21479 (class 2606 OID 6930777)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ID_COMMANDE_CLIENT_fkey" FOREIGN KEY ("ID_COMMANDE_CLIENT") REFERENCES "OpenConcerto42"."COMMANDE_CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21480 (class 2606 OID 6930782)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ID_COMMERCIAL_fkey" FOREIGN KEY ("ID_COMMERCIAL") REFERENCES "OpenConcerto42"."COMMERCIAL"("ID_COMMERCIAL");


--
-- TOC entry 21481 (class 2606 OID 6930787)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ID_CONTACT_fkey" FOREIGN KEY ("ID_CONTACT") REFERENCES "OpenConcerto42"."CONTACT"("ID");


--
-- TOC entry 21482 (class 2606 OID 6930792)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_LOT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ID_LOT_fkey" FOREIGN KEY ("ID_LOT") REFERENCES "OpenConcerto42"."LOT"("ID");


--
-- TOC entry 21483 (class 2606 OID 6930797)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ID_MODELE_fkey" FOREIGN KEY ("ID_MODELE") REFERENCES "OpenConcerto42"."MODELE"("ID");


--
-- TOC entry 21484 (class 2606 OID 6930802)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ID_SAISIE_VENTE_FACTURE_fkey" FOREIGN KEY ("ID_SAISIE_VENTE_FACTURE") REFERENCES "OpenConcerto42"."SAISIE_VENTE_FACTURE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21485 (class 2606 OID 6930807)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ID_TARIF_fkey" FOREIGN KEY ("ID_TARIF") REFERENCES "OpenConcerto42"."TARIF"("ID");


--
-- TOC entry 21486 (class 2606 OID 6930812)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_TAXE_FRAIS_DOCUMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ID_TAXE_FRAIS_DOCUMENT_fkey" FOREIGN KEY ("ID_TAXE_FRAIS_DOCUMENT") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21487 (class 2606 OID 6930817)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ID_TAXE_PORT_fkey" FOREIGN KEY ("ID_TAXE_PORT") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21488 (class 2606 OID 6930822)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21489 (class 2606 OID 6930827)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_DE_LIVRAISON"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21518 (class 2606 OID 6930832)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 21519 (class 2606 OID 6930837)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_TAILLE") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_TAILLE"("ID");


--
-- TOC entry 21520 (class 2606 OID 6930842)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21521 (class 2606 OID 6930847)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_BON_RECEPTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_BON_RECEPTION_fkey" FOREIGN KEY ("ID_BON_RECEPTION") REFERENCES "OpenConcerto42"."BON_RECEPTION"("ID") ON DELETE CASCADE;


--
-- TOC entry 21522 (class 2606 OID 6930852)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_CODE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_CODE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_CODE_FOURNISSEUR") REFERENCES "OpenConcerto42"."CODE_FOURNISSEUR"("ID");


--
-- TOC entry 21523 (class 2606 OID 6930857)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_COMMANDE_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_COMMANDE_ELEMENT_fkey" FOREIGN KEY ("ID_COMMANDE_ELEMENT") REFERENCES "OpenConcerto42"."COMMANDE_ELEMENT"("ID");


--
-- TOC entry 21524 (class 2606 OID 6930862)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey" FOREIGN KEY ("ID_DEMANDE_ACHAT_ELEMENT") REFERENCES "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT"("ID");


--
-- TOC entry 21525 (class 2606 OID 6930867)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_DEPOT_STOCK_fkey" FOREIGN KEY ("ID_DEPOT_STOCK") REFERENCES "OpenConcerto42"."DEPOT_STOCK"("ID");


--
-- TOC entry 21526 (class 2606 OID 6930872)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21527 (class 2606 OID 6930877)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_ECO_CONTRIBUTION_fkey" FOREIGN KEY ("ID_ECO_CONTRIBUTION") REFERENCES "Common"."ECO_CONTRIBUTION"("ID");


--
-- TOC entry 21528 (class 2606 OID 6930882)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_FAMILLE_ARTICLE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE") REFERENCES "OpenConcerto42"."FAMILLE_ARTICLE"("ID");


--
-- TOC entry 21529 (class 2606 OID 6930887)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_LOT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_LOT_fkey" FOREIGN KEY ("ID_LOT") REFERENCES "OpenConcerto42"."LOT"("ID");


--
-- TOC entry 21530 (class 2606 OID 6930892)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21531 (class 2606 OID 6930897)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21532 (class 2606 OID 6930902)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21533 (class 2606 OID 6930907)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "OpenConcerto42"."MODE_VENTE_ARTICLE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21534 (class 2606 OID 6930912)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "OpenConcerto42"."STYLE"("ID_STYLE") ON DELETE CASCADE;


--
-- TOC entry 21535 (class 2606 OID 6930917)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE") ON DELETE CASCADE;


--
-- TOC entry 21536 (class 2606 OID 6930922)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "OpenConcerto42"."UNITE_VENTE"("ID");


--
-- TOC entry 21537 (class 2606 OID 6930927)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21538 (class 2606 OID 6930932)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21511 (class 2606 OID 6930937)
-- Name: BON_RECEPTION BON_RECEPTION_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION"
    ADD CONSTRAINT "BON_RECEPTION_ID_COMMANDE_fkey" FOREIGN KEY ("ID_COMMANDE") REFERENCES "OpenConcerto42"."COMMANDE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21512 (class 2606 OID 6930942)
-- Name: BON_RECEPTION BON_RECEPTION_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION"
    ADD CONSTRAINT "BON_RECEPTION_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21513 (class 2606 OID 6930947)
-- Name: BON_RECEPTION BON_RECEPTION_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION"
    ADD CONSTRAINT "BON_RECEPTION_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto42"."FOURNISSEUR"("ID_FOURNISSEUR") ON DELETE CASCADE;


--
-- TOC entry 21514 (class 2606 OID 6930952)
-- Name: BON_RECEPTION BON_RECEPTION_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION"
    ADD CONSTRAINT "BON_RECEPTION_ID_MODELE_fkey" FOREIGN KEY ("ID_MODELE") REFERENCES "OpenConcerto42"."MODELE"("ID");


--
-- TOC entry 21515 (class 2606 OID 6930957)
-- Name: BON_RECEPTION BON_RECEPTION_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION"
    ADD CONSTRAINT "BON_RECEPTION_ID_TAXE_PORT_fkey" FOREIGN KEY ("ID_TAXE_PORT") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21516 (class 2606 OID 6930962)
-- Name: BON_RECEPTION BON_RECEPTION_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION"
    ADD CONSTRAINT "BON_RECEPTION_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21517 (class 2606 OID 6930967)
-- Name: BON_RECEPTION BON_RECEPTION_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."BON_RECEPTION"
    ADD CONSTRAINT "BON_RECEPTION_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21540 (class 2606 OID 6930972)
-- Name: CAISSE_CLOTURE CAISSE_CLOTURE_ID_ENTREE_JOURNAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CAISSE_CLOTURE"
    ADD CONSTRAINT "CAISSE_CLOTURE_ID_ENTREE_JOURNAL_fkey" FOREIGN KEY ("ID_ENTREE_JOURNAL") REFERENCES "OpenConcerto42"."CAISSE_JOURNAL"("ID");


--
-- TOC entry 21541 (class 2606 OID 6930977)
-- Name: CAISSE_CLOTURE CAISSE_CLOTURE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CAISSE_CLOTURE"
    ADD CONSTRAINT "CAISSE_CLOTURE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21542 (class 2606 OID 6930982)
-- Name: CAISSE_CLOTURE CAISSE_CLOTURE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CAISSE_CLOTURE"
    ADD CONSTRAINT "CAISSE_CLOTURE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21539 (class 2606 OID 6930987)
-- Name: CAISSE CAISSE_ID_DERNIERE_CLOTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CAISSE"
    ADD CONSTRAINT "CAISSE_ID_DERNIERE_CLOTURE_fkey" FOREIGN KEY ("ID_DERNIERE_CLOTURE") REFERENCES "OpenConcerto42"."CAISSE_CLOTURE"("ID");


--
-- TOC entry 21543 (class 2606 OID 6930992)
-- Name: CAISSE_JOURNAL CAISSE_JOURNAL_ID_CAISSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CAISSE_JOURNAL"
    ADD CONSTRAINT "CAISSE_JOURNAL_ID_CAISSE_fkey" FOREIGN KEY ("ID_CAISSE") REFERENCES "OpenConcerto42"."CAISSE"("ID");


--
-- TOC entry 21544 (class 2606 OID 6930997)
-- Name: CAISSE_JOURNAL CAISSE_JOURNAL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CAISSE_JOURNAL"
    ADD CONSTRAINT "CAISSE_JOURNAL_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21545 (class 2606 OID 6931002)
-- Name: CAISSE_JOURNAL CAISSE_JOURNAL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CAISSE_JOURNAL"
    ADD CONSTRAINT "CAISSE_JOURNAL_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21546 (class 2606 OID 6931007)
-- Name: CAISSE_JOURNAL CAISSE_JOURNAL_ID_USER_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CAISSE_JOURNAL"
    ADD CONSTRAINT "CAISSE_JOURNAL_ID_USER_fkey" FOREIGN KEY ("ID_USER") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21547 (class 2606 OID 6931012)
-- Name: CALENDAR_ITEM CALENDAR_ITEM_ID_CALENDAR_ITEM_GROUP_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CALENDAR_ITEM"
    ADD CONSTRAINT "CALENDAR_ITEM_ID_CALENDAR_ITEM_GROUP_fkey" FOREIGN KEY ("ID_CALENDAR_ITEM_GROUP") REFERENCES "OpenConcerto42"."CALENDAR_ITEM_GROUP"("ID");


--
-- TOC entry 21548 (class 2606 OID 6931017)
-- Name: CATEGORIE_COMPTABLE CATEGORIE_COMPTABLE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CATEGORIE_COMPTABLE"
    ADD CONSTRAINT "CATEGORIE_COMPTABLE_ID_COMPTE_PCE_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACHAT") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21549 (class 2606 OID 6931022)
-- Name: CATEGORIE_COMPTABLE CATEGORIE_COMPTABLE_ID_COMPTE_PCE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CATEGORIE_COMPTABLE"
    ADD CONSTRAINT "CATEGORIE_COMPTABLE_ID_COMPTE_PCE_VENTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_VENTE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21550 (class 2606 OID 6931027)
-- Name: CATEGORIE_COMPTABLE CATEGORIE_COMPTABLE_ID_TAXE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CATEGORIE_COMPTABLE"
    ADD CONSTRAINT "CATEGORIE_COMPTABLE_ID_TAXE_ACHAT_fkey" FOREIGN KEY ("ID_TAXE_ACHAT") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21551 (class 2606 OID 6931032)
-- Name: CATEGORIE_COMPTABLE CATEGORIE_COMPTABLE_ID_TAXE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CATEGORIE_COMPTABLE"
    ADD CONSTRAINT "CATEGORIE_COMPTABLE_ID_TAXE_VENTE_fkey" FOREIGN KEY ("ID_TAXE_VENTE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21552 (class 2606 OID 6931037)
-- Name: CHEQUE_AVOIR_CLIENT CHEQUE_AVOIR_CLIENT_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHEQUE_AVOIR_CLIENT"
    ADD CONSTRAINT "CHEQUE_AVOIR_CLIENT_ID_BANQUE_fkey" FOREIGN KEY ("ID_BANQUE") REFERENCES "OpenConcerto42"."BANQUE"("ID");


--
-- TOC entry 21553 (class 2606 OID 6931042)
-- Name: CHEQUE_AVOIR_CLIENT CHEQUE_AVOIR_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHEQUE_AVOIR_CLIENT"
    ADD CONSTRAINT "CHEQUE_AVOIR_CLIENT_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21554 (class 2606 OID 6931047)
-- Name: CHEQUE_AVOIR_CLIENT CHEQUE_AVOIR_CLIENT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHEQUE_AVOIR_CLIENT"
    ADD CONSTRAINT "CHEQUE_AVOIR_CLIENT_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21555 (class 2606 OID 6931052)
-- Name: CHEQUE_AVOIR_CLIENT CHEQUE_AVOIR_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHEQUE_AVOIR_CLIENT"
    ADD CONSTRAINT "CHEQUE_AVOIR_CLIENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21556 (class 2606 OID 6931057)
-- Name: CHEQUE_AVOIR_CLIENT CHEQUE_AVOIR_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHEQUE_AVOIR_CLIENT"
    ADD CONSTRAINT "CHEQUE_AVOIR_CLIENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21557 (class 2606 OID 6931062)
-- Name: CHEQUE_A_ENCAISSER CHEQUE_A_ENCAISSER_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHEQUE_A_ENCAISSER"
    ADD CONSTRAINT "CHEQUE_A_ENCAISSER_ID_BANQUE_fkey" FOREIGN KEY ("ID_BANQUE") REFERENCES "OpenConcerto42"."BANQUE"("ID");


--
-- TOC entry 21558 (class 2606 OID 6931067)
-- Name: CHEQUE_A_ENCAISSER CHEQUE_A_ENCAISSER_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHEQUE_A_ENCAISSER"
    ADD CONSTRAINT "CHEQUE_A_ENCAISSER_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21559 (class 2606 OID 6931072)
-- Name: CHEQUE_A_ENCAISSER CHEQUE_A_ENCAISSER_ID_COMPTE_PCE_TIERS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHEQUE_A_ENCAISSER"
    ADD CONSTRAINT "CHEQUE_A_ENCAISSER_ID_COMPTE_PCE_TIERS_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TIERS") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21560 (class 2606 OID 6931077)
-- Name: CHEQUE_A_ENCAISSER CHEQUE_A_ENCAISSER_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHEQUE_A_ENCAISSER"
    ADD CONSTRAINT "CHEQUE_A_ENCAISSER_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21561 (class 2606 OID 6931082)
-- Name: CHEQUE_A_ENCAISSER CHEQUE_A_ENCAISSER_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHEQUE_A_ENCAISSER"
    ADD CONSTRAINT "CHEQUE_A_ENCAISSER_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21562 (class 2606 OID 6931087)
-- Name: CHEQUE_A_ENCAISSER CHEQUE_A_ENCAISSER_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHEQUE_A_ENCAISSER"
    ADD CONSTRAINT "CHEQUE_A_ENCAISSER_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21563 (class 2606 OID 6931092)
-- Name: CHEQUE_FOURNISSEUR CHEQUE_FOURNISSEUR_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHEQUE_FOURNISSEUR"
    ADD CONSTRAINT "CHEQUE_FOURNISSEUR_ID_BANQUE_fkey" FOREIGN KEY ("ID_BANQUE") REFERENCES "OpenConcerto42"."BANQUE"("ID");


--
-- TOC entry 21564 (class 2606 OID 6931097)
-- Name: CHEQUE_FOURNISSEUR CHEQUE_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHEQUE_FOURNISSEUR"
    ADD CONSTRAINT "CHEQUE_FOURNISSEUR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto42"."FOURNISSEUR"("ID_FOURNISSEUR") ON DELETE CASCADE;


--
-- TOC entry 21565 (class 2606 OID 6931102)
-- Name: CHEQUE_FOURNISSEUR CHEQUE_FOURNISSEUR_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHEQUE_FOURNISSEUR"
    ADD CONSTRAINT "CHEQUE_FOURNISSEUR_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21566 (class 2606 OID 6931107)
-- Name: CHEQUE_FOURNISSEUR CHEQUE_FOURNISSEUR_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHEQUE_FOURNISSEUR"
    ADD CONSTRAINT "CHEQUE_FOURNISSEUR_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21567 (class 2606 OID 6931112)
-- Name: CHEQUE_FOURNISSEUR CHEQUE_FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHEQUE_FOURNISSEUR"
    ADD CONSTRAINT "CHEQUE_FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21568 (class 2606 OID 6931117)
-- Name: CHIFFRAGE_COMMANDE_CLIENT CHIFFRAGE_COMMANDE_CLIENT_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHIFFRAGE_COMMANDE_CLIENT"
    ADD CONSTRAINT "CHIFFRAGE_COMMANDE_CLIENT_ID_COMMANDE_CLIENT_fkey" FOREIGN KEY ("ID_COMMANDE_CLIENT") REFERENCES "OpenConcerto42"."COMMANDE_CLIENT"("ID");


--
-- TOC entry 21569 (class 2606 OID 6931122)
-- Name: CHIFFRAGE_COMMANDE_CLIENT CHIFFRAGE_COMMANDE_CLIENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHIFFRAGE_COMMANDE_CLIENT"
    ADD CONSTRAINT "CHIFFRAGE_COMMANDE_CLIENT_ID_FAMILLE_ARTICLE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE") REFERENCES "OpenConcerto42"."FAMILLE_ARTICLE"("ID");


--
-- TOC entry 21570 (class 2606 OID 6931127)
-- Name: CHIFFRAGE_COMMANDE_CLIENT CHIFFRAGE_COMMANDE_CLIENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CHIFFRAGE_COMMANDE_CLIENT"
    ADD CONSTRAINT "CHIFFRAGE_COMMANDE_CLIENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "OpenConcerto42"."UNITE_VENTE"("ID");


--
-- TOC entry 21571 (class 2606 OID 6931132)
-- Name: CLASSEMENT_CONVENTIONNEL CLASSEMENT_CONVENTIONNEL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLASSEMENT_CONVENTIONNEL"
    ADD CONSTRAINT "CLASSEMENT_CONVENTIONNEL_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21572 (class 2606 OID 6931137)
-- Name: CLASSEMENT_CONVENTIONNEL CLASSEMENT_CONVENTIONNEL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLASSEMENT_CONVENTIONNEL"
    ADD CONSTRAINT "CLASSEMENT_CONVENTIONNEL_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21573 (class 2606 OID 6931142)
-- Name: CLASSE_COMPTE CLASSE_COMPTE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLASSE_COMPTE"
    ADD CONSTRAINT "CLASSE_COMPTE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21574 (class 2606 OID 6931147)
-- Name: CLASSE_COMPTE CLASSE_COMPTE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLASSE_COMPTE"
    ADD CONSTRAINT "CLASSE_COMPTE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21592 (class 2606 OID 6931152)
-- Name: CLIENT_DEPARTEMENT CLIENT_DEPARTEMENT_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT_DEPARTEMENT"
    ADD CONSTRAINT "CLIENT_DEPARTEMENT_ID_ADRESSE_fkey" FOREIGN KEY ("ID_ADRESSE") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 21593 (class 2606 OID 6931157)
-- Name: CLIENT_DEPARTEMENT CLIENT_DEPARTEMENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT_DEPARTEMENT"
    ADD CONSTRAINT "CLIENT_DEPARTEMENT_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID");


--
-- TOC entry 21575 (class 2606 OID 6931162)
-- Name: CLIENT CLIENT_ID_ADRESSE_F_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_ADRESSE_F_fkey" FOREIGN KEY ("ID_ADRESSE_F") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE") ON DELETE CASCADE;


--
-- TOC entry 21576 (class 2606 OID 6931167)
-- Name: CLIENT CLIENT_ID_ADRESSE_L_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_ADRESSE_L_fkey" FOREIGN KEY ("ID_ADRESSE_L") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE") ON DELETE CASCADE;


--
-- TOC entry 21577 (class 2606 OID 6931172)
-- Name: CLIENT CLIENT_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_ADRESSE_fkey" FOREIGN KEY ("ID_ADRESSE") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE") ON DELETE CASCADE;


--
-- TOC entry 21578 (class 2606 OID 6931177)
-- Name: CLIENT CLIENT_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_CATEGORIE_COMPTABLE_fkey" FOREIGN KEY ("ID_CATEGORIE_COMPTABLE") REFERENCES "OpenConcerto42"."CATEGORIE_COMPTABLE"("ID");


--
-- TOC entry 21579 (class 2606 OID 6931182)
-- Name: CLIENT CLIENT_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_COMMERCIAL_fkey" FOREIGN KEY ("ID_COMMERCIAL") REFERENCES "OpenConcerto42"."COMMERCIAL"("ID_COMMERCIAL");


--
-- TOC entry 21580 (class 2606 OID 6931187)
-- Name: CLIENT CLIENT_ID_COMPTE_PCE_PRODUIT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_COMPTE_PCE_PRODUIT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PRODUIT") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21581 (class 2606 OID 6931192)
-- Name: CLIENT CLIENT_ID_COMPTE_PCE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_COMPTE_PCE_SERVICE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_SERVICE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21582 (class 2606 OID 6931197)
-- Name: CLIENT CLIENT_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21583 (class 2606 OID 6931202)
-- Name: CLIENT CLIENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21584 (class 2606 OID 6931207)
-- Name: CLIENT CLIENT_ID_FRAIS_DOCUMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_FRAIS_DOCUMENT_fkey" FOREIGN KEY ("ID_FRAIS_DOCUMENT") REFERENCES "OpenConcerto42"."FRAIS_DOCUMENT"("ID");


--
-- TOC entry 21585 (class 2606 OID 6931212)
-- Name: CLIENT CLIENT_ID_LANGUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_LANGUE_fkey" FOREIGN KEY ("ID_LANGUE") REFERENCES "OpenConcerto42"."LANGUE"("ID");


--
-- TOC entry 21586 (class 2606 OID 6931217)
-- Name: CLIENT CLIENT_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_MODE_REGLEMENT_fkey" FOREIGN KEY ("ID_MODE_REGLEMENT") REFERENCES "OpenConcerto42"."MODE_REGLEMENT"("ID_MODE_REGLEMENT") ON DELETE CASCADE;


--
-- TOC entry 21587 (class 2606 OID 6931222)
-- Name: CLIENT CLIENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_PAYS_fkey" FOREIGN KEY ("ID_PAYS") REFERENCES "OpenConcerto42"."PAYS"("ID");


--
-- TOC entry 21588 (class 2606 OID 6931227)
-- Name: CLIENT CLIENT_ID_SEPA_MANDATE_DEFAULT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_SEPA_MANDATE_DEFAULT_fkey" FOREIGN KEY ("ID_SEPA_MANDATE_DEFAULT") REFERENCES "OpenConcerto42"."SEPA_MANDATE"("ID");


--
-- TOC entry 21589 (class 2606 OID 6931232)
-- Name: CLIENT CLIENT_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_TARIF_fkey" FOREIGN KEY ("ID_TARIF") REFERENCES "OpenConcerto42"."TARIF"("ID");


--
-- TOC entry 21590 (class 2606 OID 6931237)
-- Name: CLIENT CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21591 (class 2606 OID 6931242)
-- Name: CLIENT CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21594 (class 2606 OID 6931247)
-- Name: CODE_CARACT_ACTIVITE CODE_CARACT_ACTIVITE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_CARACT_ACTIVITE"
    ADD CONSTRAINT "CODE_CARACT_ACTIVITE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21595 (class 2606 OID 6931252)
-- Name: CODE_CARACT_ACTIVITE CODE_CARACT_ACTIVITE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_CARACT_ACTIVITE"
    ADD CONSTRAINT "CODE_CARACT_ACTIVITE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21596 (class 2606 OID 6931257)
-- Name: CODE_CONTRAT_TRAVAIL CODE_CONTRAT_TRAVAIL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_CONTRAT_TRAVAIL"
    ADD CONSTRAINT "CODE_CONTRAT_TRAVAIL_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21597 (class 2606 OID 6931262)
-- Name: CODE_CONTRAT_TRAVAIL CODE_CONTRAT_TRAVAIL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_CONTRAT_TRAVAIL"
    ADD CONSTRAINT "CODE_CONTRAT_TRAVAIL_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21598 (class 2606 OID 6931267)
-- Name: CODE_DROIT_CONTRAT CODE_DROIT_CONTRAT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_DROIT_CONTRAT"
    ADD CONSTRAINT "CODE_DROIT_CONTRAT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21599 (class 2606 OID 6931272)
-- Name: CODE_DROIT_CONTRAT CODE_DROIT_CONTRAT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_DROIT_CONTRAT"
    ADD CONSTRAINT "CODE_DROIT_CONTRAT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21600 (class 2606 OID 6931277)
-- Name: CODE_EMPLOI CODE_EMPLOI_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_EMPLOI"
    ADD CONSTRAINT "CODE_EMPLOI_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21601 (class 2606 OID 6931282)
-- Name: CODE_EMPLOI CODE_EMPLOI_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_EMPLOI"
    ADD CONSTRAINT "CODE_EMPLOI_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21602 (class 2606 OID 6931287)
-- Name: CODE_FOURNISSEUR CODE_FOURNISSEUR_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_FOURNISSEUR"
    ADD CONSTRAINT "CODE_FOURNISSEUR_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21603 (class 2606 OID 6931292)
-- Name: CODE_FOURNISSEUR CODE_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_FOURNISSEUR"
    ADD CONSTRAINT "CODE_FOURNISSEUR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto42"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 21604 (class 2606 OID 6931297)
-- Name: CODE_PENIBILITE_CONTRAT_SALARIE CODE_PENIBILITE_CONTRAT_SALARIE_ID_CODE_PENIBILITE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_PENIBILITE_CONTRAT_SALARIE"
    ADD CONSTRAINT "CODE_PENIBILITE_CONTRAT_SALARIE_ID_CODE_PENIBILITE_fkey" FOREIGN KEY ("ID_CODE_PENIBILITE") REFERENCES "Common"."CODE_PENIBILITE"("ID");


--
-- TOC entry 21605 (class 2606 OID 6931302)
-- Name: CODE_PENIBILITE_CONTRAT_SALARIE CODE_PENIBILITE_CONTRAT_SALARIE_ID_INFOS_SALARIE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_PENIBILITE_CONTRAT_SALARIE"
    ADD CONSTRAINT "CODE_PENIBILITE_CONTRAT_SALARIE_ID_INFOS_SALARIE_PAYE_fkey" FOREIGN KEY ("ID_INFOS_SALARIE_PAYE") REFERENCES "OpenConcerto42"."INFOS_SALARIE_PAYE"("ID");


--
-- TOC entry 21606 (class 2606 OID 6931307)
-- Name: CODE_REGIME CODE_REGIME_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_REGIME"
    ADD CONSTRAINT "CODE_REGIME_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21607 (class 2606 OID 6931312)
-- Name: CODE_REGIME CODE_REGIME_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_REGIME"
    ADD CONSTRAINT "CODE_REGIME_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21608 (class 2606 OID 6931317)
-- Name: CODE_STATUT_CATEGORIEL CODE_STATUT_CATEGORIEL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_STATUT_CATEGORIEL"
    ADD CONSTRAINT "CODE_STATUT_CATEGORIEL_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21609 (class 2606 OID 6931322)
-- Name: CODE_STATUT_CATEGORIEL CODE_STATUT_CATEGORIEL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_STATUT_CATEGORIEL"
    ADD CONSTRAINT "CODE_STATUT_CATEGORIEL_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21610 (class 2606 OID 6931327)
-- Name: CODE_STATUT_PROF CODE_STATUT_PROF_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_STATUT_PROF"
    ADD CONSTRAINT "CODE_STATUT_PROF_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21611 (class 2606 OID 6931332)
-- Name: CODE_STATUT_PROF CODE_STATUT_PROF_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CODE_STATUT_PROF"
    ADD CONSTRAINT "CODE_STATUT_PROF_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21635 (class 2606 OID 6931337)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 21636 (class 2606 OID 6931342)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_TAILLE") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_TAILLE"("ID");


--
-- TOC entry 21637 (class 2606 OID 6931347)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21638 (class 2606 OID 6931352)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_COMMANDE_CLIENT_fkey" FOREIGN KEY ("ID_COMMANDE_CLIENT") REFERENCES "OpenConcerto42"."COMMANDE_CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21639 (class 2606 OID 6931357)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_DEPOT_STOCK_fkey" FOREIGN KEY ("ID_DEPOT_STOCK") REFERENCES "OpenConcerto42"."DEPOT_STOCK"("ID");


--
-- TOC entry 21640 (class 2606 OID 6931362)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21641 (class 2606 OID 6931367)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_ECO_CONTRIBUTION_fkey" FOREIGN KEY ("ID_ECO_CONTRIBUTION") REFERENCES "Common"."ECO_CONTRIBUTION"("ID");


--
-- TOC entry 21642 (class 2606 OID 6931372)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_FAMILLE_ARTICLE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE") REFERENCES "OpenConcerto42"."FAMILLE_ARTICLE"("ID");


--
-- TOC entry 21643 (class 2606 OID 6931377)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21644 (class 2606 OID 6931382)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21645 (class 2606 OID 6931387)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21646 (class 2606 OID 6931392)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "OpenConcerto42"."MODE_VENTE_ARTICLE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21647 (class 2606 OID 6931397)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_PAYS_fkey" FOREIGN KEY ("ID_PAYS") REFERENCES "OpenConcerto42"."PAYS"("ID");


--
-- TOC entry 21648 (class 2606 OID 6931402)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "OpenConcerto42"."STYLE"("ID_STYLE") ON DELETE CASCADE;


--
-- TOC entry 21649 (class 2606 OID 6931407)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE") ON DELETE CASCADE;


--
-- TOC entry 21650 (class 2606 OID 6931412)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "OpenConcerto42"."UNITE_VENTE"("ID");


--
-- TOC entry 21651 (class 2606 OID 6931417)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21652 (class 2606 OID 6931422)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21621 (class 2606 OID 6931427)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_ADRESSE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ID_ADRESSE_LIVRAISON_fkey" FOREIGN KEY ("ID_ADRESSE_LIVRAISON") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 21622 (class 2606 OID 6931432)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ID_ADRESSE_fkey" FOREIGN KEY ("ID_ADRESSE") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 21623 (class 2606 OID 6931437)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ID_CATEGORIE_COMPTABLE_fkey" FOREIGN KEY ("ID_CATEGORIE_COMPTABLE") REFERENCES "OpenConcerto42"."CATEGORIE_COMPTABLE"("ID");


--
-- TOC entry 21624 (class 2606 OID 6931442)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_CLIENT_DEPARTEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ID_CLIENT_DEPARTEMENT_fkey" FOREIGN KEY ("ID_CLIENT_DEPARTEMENT") REFERENCES "OpenConcerto42"."CLIENT_DEPARTEMENT"("ID");


--
-- TOC entry 21625 (class 2606 OID 6931447)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21626 (class 2606 OID 6931452)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ID_COMMERCIAL_fkey" FOREIGN KEY ("ID_COMMERCIAL") REFERENCES "OpenConcerto42"."COMMERCIAL"("ID_COMMERCIAL") ON DELETE CASCADE;


--
-- TOC entry 21627 (class 2606 OID 6931457)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ID_CONTACT_fkey" FOREIGN KEY ("ID_CONTACT") REFERENCES "OpenConcerto42"."CONTACT"("ID");


--
-- TOC entry 21628 (class 2606 OID 6931462)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_DEVIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ID_DEVIS_fkey" FOREIGN KEY ("ID_DEVIS") REFERENCES "OpenConcerto42"."DEVIS"("ID_DEVIS") ON DELETE CASCADE;


--
-- TOC entry 21629 (class 2606 OID 6931467)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ID_MODELE_fkey" FOREIGN KEY ("ID_MODELE") REFERENCES "OpenConcerto42"."MODELE"("ID");


--
-- TOC entry 21630 (class 2606 OID 6931472)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ID_TARIF_fkey" FOREIGN KEY ("ID_TARIF") REFERENCES "OpenConcerto42"."TARIF"("ID");


--
-- TOC entry 21631 (class 2606 OID 6931477)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_TAXE_FRAIS_DOCUMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ID_TAXE_FRAIS_DOCUMENT_fkey" FOREIGN KEY ("ID_TAXE_FRAIS_DOCUMENT") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21632 (class 2606 OID 6931482)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ID_TAXE_PORT_fkey" FOREIGN KEY ("ID_TAXE_PORT") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21633 (class 2606 OID 6931487)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21634 (class 2606 OID 6931492)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_CLIENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21653 (class 2606 OID 6931497)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 21654 (class 2606 OID 6931502)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_TAILLE") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_TAILLE"("ID");


--
-- TOC entry 21655 (class 2606 OID 6931507)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21656 (class 2606 OID 6931512)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_CODE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_CODE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_CODE_FOURNISSEUR") REFERENCES "OpenConcerto42"."CODE_FOURNISSEUR"("ID");


--
-- TOC entry 21657 (class 2606 OID 6931517)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_COMMANDE_fkey" FOREIGN KEY ("ID_COMMANDE") REFERENCES "OpenConcerto42"."COMMANDE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21658 (class 2606 OID 6931522)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey" FOREIGN KEY ("ID_DEMANDE_ACHAT_ELEMENT") REFERENCES "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT"("ID");


--
-- TOC entry 21659 (class 2606 OID 6931527)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_DEPOT_STOCK_fkey" FOREIGN KEY ("ID_DEPOT_STOCK") REFERENCES "OpenConcerto42"."DEPOT_STOCK"("ID");


--
-- TOC entry 21660 (class 2606 OID 6931532)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21661 (class 2606 OID 6931537)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_ECO_CONTRIBUTION_fkey" FOREIGN KEY ("ID_ECO_CONTRIBUTION") REFERENCES "Common"."ECO_CONTRIBUTION"("ID");


--
-- TOC entry 21662 (class 2606 OID 6931542)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_FAMILLE_ARTICLE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE") REFERENCES "OpenConcerto42"."FAMILLE_ARTICLE"("ID");


--
-- TOC entry 21663 (class 2606 OID 6931547)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21664 (class 2606 OID 6931552)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21665 (class 2606 OID 6931557)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21666 (class 2606 OID 6931562)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "OpenConcerto42"."MODE_VENTE_ARTICLE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21667 (class 2606 OID 6931567)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "OpenConcerto42"."STYLE"("ID_STYLE") ON DELETE CASCADE;


--
-- TOC entry 21668 (class 2606 OID 6931572)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE") ON DELETE CASCADE;


--
-- TOC entry 21669 (class 2606 OID 6931577)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "OpenConcerto42"."UNITE_VENTE"("ID");


--
-- TOC entry 21670 (class 2606 OID 6931582)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21671 (class 2606 OID 6931587)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21612 (class 2606 OID 6931592)
-- Name: COMMANDE COMMANDE_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE"
    ADD CONSTRAINT "COMMANDE_ID_ADRESSE_fkey" FOREIGN KEY ("ID_ADRESSE") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 21613 (class 2606 OID 6931597)
-- Name: COMMANDE COMMANDE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE"
    ADD CONSTRAINT "COMMANDE_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID");


--
-- TOC entry 21614 (class 2606 OID 6931602)
-- Name: COMMANDE COMMANDE_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE"
    ADD CONSTRAINT "COMMANDE_ID_COMMERCIAL_fkey" FOREIGN KEY ("ID_COMMERCIAL") REFERENCES "OpenConcerto42"."COMMERCIAL"("ID_COMMERCIAL") ON DELETE CASCADE;


--
-- TOC entry 21615 (class 2606 OID 6931607)
-- Name: COMMANDE COMMANDE_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE"
    ADD CONSTRAINT "COMMANDE_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21616 (class 2606 OID 6931612)
-- Name: COMMANDE COMMANDE_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE"
    ADD CONSTRAINT "COMMANDE_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto42"."FOURNISSEUR"("ID_FOURNISSEUR") ON DELETE CASCADE;


--
-- TOC entry 21617 (class 2606 OID 6931617)
-- Name: COMMANDE COMMANDE_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE"
    ADD CONSTRAINT "COMMANDE_ID_MODELE_fkey" FOREIGN KEY ("ID_MODELE") REFERENCES "OpenConcerto42"."MODELE"("ID");


--
-- TOC entry 21618 (class 2606 OID 6931622)
-- Name: COMMANDE COMMANDE_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE"
    ADD CONSTRAINT "COMMANDE_ID_TAXE_PORT_fkey" FOREIGN KEY ("ID_TAXE_PORT") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21619 (class 2606 OID 6931627)
-- Name: COMMANDE COMMANDE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE"
    ADD CONSTRAINT "COMMANDE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21620 (class 2606 OID 6931632)
-- Name: COMMANDE COMMANDE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMANDE"
    ADD CONSTRAINT "COMMANDE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21672 (class 2606 OID 6931637)
-- Name: COMMERCIAL COMMERCIAL_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMERCIAL"
    ADD CONSTRAINT "COMMERCIAL_ID_TITRE_PERSONNEL_fkey" FOREIGN KEY ("ID_TITRE_PERSONNEL") REFERENCES "OpenConcerto42"."TITRE_PERSONNEL"("ID") ON DELETE CASCADE;


--
-- TOC entry 21673 (class 2606 OID 6931642)
-- Name: COMMERCIAL COMMERCIAL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMERCIAL"
    ADD CONSTRAINT "COMMERCIAL_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21674 (class 2606 OID 6931647)
-- Name: COMMERCIAL COMMERCIAL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMERCIAL"
    ADD CONSTRAINT "COMMERCIAL_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21675 (class 2606 OID 6931652)
-- Name: COMMERCIAL COMMERCIAL_ID_USER_COMMON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMMERCIAL"
    ADD CONSTRAINT "COMMERCIAL_ID_USER_COMMON_fkey" FOREIGN KEY ("ID_USER_COMMON") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21676 (class 2606 OID 6931657)
-- Name: COMPTE_CLIENT_TRANSACTION COMPTE_CLIENT_TRANSACTION_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMPTE_CLIENT_TRANSACTION"
    ADD CONSTRAINT "COMPTE_CLIENT_TRANSACTION_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID");


--
-- TOC entry 21677 (class 2606 OID 6931662)
-- Name: COMPTE_CLIENT_TRANSACTION COMPTE_CLIENT_TRANSACTION_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMPTE_CLIENT_TRANSACTION"
    ADD CONSTRAINT "COMPTE_CLIENT_TRANSACTION_ID_MODE_REGLEMENT_fkey" FOREIGN KEY ("ID_MODE_REGLEMENT") REFERENCES "OpenConcerto42"."MODE_REGLEMENT"("ID_MODE_REGLEMENT");


--
-- TOC entry 21678 (class 2606 OID 6931667)
-- Name: COMPTE_CLIENT_TRANSACTION COMPTE_CLIENT_TRANSACTION_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMPTE_CLIENT_TRANSACTION"
    ADD CONSTRAINT "COMPTE_CLIENT_TRANSACTION_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID");


--
-- TOC entry 21679 (class 2606 OID 6931672)
-- Name: COMPTE_PCE COMPTE_PCE_ID_NATURE_COMPTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMPTE_PCE"
    ADD CONSTRAINT "COMPTE_PCE_ID_NATURE_COMPTE_fkey" FOREIGN KEY ("ID_NATURE_COMPTE") REFERENCES "OpenConcerto42"."NATURE_COMPTE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21680 (class 2606 OID 6931677)
-- Name: COMPTE_PCE COMPTE_PCE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMPTE_PCE"
    ADD CONSTRAINT "COMPTE_PCE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21681 (class 2606 OID 6931682)
-- Name: COMPTE_PCE COMPTE_PCE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMPTE_PCE"
    ADD CONSTRAINT "COMPTE_PCE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21682 (class 2606 OID 6931687)
-- Name: COMPTE_PCG COMPTE_PCG_ID_NATURE_COMPTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMPTE_PCG"
    ADD CONSTRAINT "COMPTE_PCG_ID_NATURE_COMPTE_fkey" FOREIGN KEY ("ID_NATURE_COMPTE") REFERENCES "OpenConcerto42"."NATURE_COMPTE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21683 (class 2606 OID 6931692)
-- Name: COMPTE_PCG COMPTE_PCG_ID_TYPE_COMPTE_PCG_AB_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMPTE_PCG"
    ADD CONSTRAINT "COMPTE_PCG_ID_TYPE_COMPTE_PCG_AB_fkey" FOREIGN KEY ("ID_TYPE_COMPTE_PCG_AB") REFERENCES "OpenConcerto42"."TYPE_COMPTE_PCG"("ID") ON DELETE CASCADE;


--
-- TOC entry 21684 (class 2606 OID 6931697)
-- Name: COMPTE_PCG COMPTE_PCG_ID_TYPE_COMPTE_PCG_BASE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMPTE_PCG"
    ADD CONSTRAINT "COMPTE_PCG_ID_TYPE_COMPTE_PCG_BASE_fkey" FOREIGN KEY ("ID_TYPE_COMPTE_PCG_BASE") REFERENCES "OpenConcerto42"."TYPE_COMPTE_PCG"("ID") ON DELETE CASCADE;


--
-- TOC entry 21685 (class 2606 OID 6931702)
-- Name: COMPTE_PCG COMPTE_PCG_ID_TYPE_COMPTE_PCG_DEV_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMPTE_PCG"
    ADD CONSTRAINT "COMPTE_PCG_ID_TYPE_COMPTE_PCG_DEV_fkey" FOREIGN KEY ("ID_TYPE_COMPTE_PCG_DEV") REFERENCES "OpenConcerto42"."TYPE_COMPTE_PCG"("ID") ON DELETE CASCADE;


--
-- TOC entry 21686 (class 2606 OID 6931707)
-- Name: COMPTE_PCG COMPTE_PCG_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMPTE_PCG"
    ADD CONSTRAINT "COMPTE_PCG_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21687 (class 2606 OID 6931712)
-- Name: COMPTE_PCG COMPTE_PCG_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COMPTE_PCG"
    ADD CONSTRAINT "COMPTE_PCG_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21692 (class 2606 OID 6931717)
-- Name: CONTACT_ADMINISTRATIF CONTACT_ADMINISTRATIF_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTACT_ADMINISTRATIF"
    ADD CONSTRAINT "CONTACT_ADMINISTRATIF_ID_TITRE_PERSONNEL_fkey" FOREIGN KEY ("ID_TITRE_PERSONNEL") REFERENCES "OpenConcerto42"."TITRE_PERSONNEL"("ID");


--
-- TOC entry 21693 (class 2606 OID 6931722)
-- Name: CONTACT_FOURNISSEUR CONTACT_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTACT_FOURNISSEUR"
    ADD CONSTRAINT "CONTACT_FOURNISSEUR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto42"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 21694 (class 2606 OID 6931727)
-- Name: CONTACT_FOURNISSEUR CONTACT_FOURNISSEUR_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTACT_FOURNISSEUR"
    ADD CONSTRAINT "CONTACT_FOURNISSEUR_ID_TITRE_PERSONNEL_fkey" FOREIGN KEY ("ID_TITRE_PERSONNEL") REFERENCES "OpenConcerto42"."TITRE_PERSONNEL"("ID");


--
-- TOC entry 21688 (class 2606 OID 6931732)
-- Name: CONTACT CONTACT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTACT"
    ADD CONSTRAINT "CONTACT_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21689 (class 2606 OID 6931737)
-- Name: CONTACT CONTACT_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTACT"
    ADD CONSTRAINT "CONTACT_ID_TITRE_PERSONNEL_fkey" FOREIGN KEY ("ID_TITRE_PERSONNEL") REFERENCES "OpenConcerto42"."TITRE_PERSONNEL"("ID") ON DELETE CASCADE;


--
-- TOC entry 21690 (class 2606 OID 6931742)
-- Name: CONTACT CONTACT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTACT"
    ADD CONSTRAINT "CONTACT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21691 (class 2606 OID 6931747)
-- Name: CONTACT CONTACT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTACT"
    ADD CONSTRAINT "CONTACT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21695 (class 2606 OID 6931752)
-- Name: CONTACT_SALARIE CONTACT_SALARIE_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTACT_SALARIE"
    ADD CONSTRAINT "CONTACT_SALARIE_ID_SALARIE_fkey" FOREIGN KEY ("ID_SALARIE") REFERENCES "OpenConcerto42"."SALARIE"("ID");


--
-- TOC entry 21696 (class 2606 OID 6931757)
-- Name: CONTACT_SALARIE CONTACT_SALARIE_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTACT_SALARIE"
    ADD CONSTRAINT "CONTACT_SALARIE_ID_TITRE_PERSONNEL_fkey" FOREIGN KEY ("ID_TITRE_PERSONNEL") REFERENCES "OpenConcerto42"."TITRE_PERSONNEL"("ID");


--
-- TOC entry 21697 (class 2606 OID 6931762)
-- Name: CONTRAT_PREVOYANCE_AYANT_DROIT CONTRAT_PREVOYANCE_AYANT_DROIT_ID_AYANT_DROIT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_PREVOYANCE_AYANT_DROIT"
    ADD CONSTRAINT "CONTRAT_PREVOYANCE_AYANT_DROIT_ID_AYANT_DROIT_fkey" FOREIGN KEY ("ID_AYANT_DROIT") REFERENCES "OpenConcerto42"."AYANT_DROIT"("ID");


--
-- TOC entry 21698 (class 2606 OID 6931767)
-- Name: CONTRAT_PREVOYANCE_AYANT_DROIT CONTRAT_PREVOYANCE_AYANT_DROIT_ID_CONTRAT_PREVOYANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_PREVOYANCE_AYANT_DROIT"
    ADD CONSTRAINT "CONTRAT_PREVOYANCE_AYANT_DROIT_ID_CONTRAT_PREVOYANCE_fkey" FOREIGN KEY ("ID_CONTRAT_PREVOYANCE") REFERENCES "OpenConcerto42"."CONTRAT_PREVOYANCE"("ID");


--
-- TOC entry 21699 (class 2606 OID 6931772)
-- Name: CONTRAT_PREVOYANCE_CONTRAT_SALARIE CONTRAT_PREVOYANCE_CONTRAT_SALARIE_ID_CONTRAT_PREVOYANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_PREVOYANCE_CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_PREVOYANCE_CONTRAT_SALARIE_ID_CONTRAT_PREVOYANCE_fkey" FOREIGN KEY ("ID_CONTRAT_PREVOYANCE") REFERENCES "OpenConcerto42"."CONTRAT_PREVOYANCE"("ID");


--
-- TOC entry 21700 (class 2606 OID 6931777)
-- Name: CONTRAT_PREVOYANCE_CONTRAT_SALARIE CONTRAT_PREVOYANCE_CONTRAT_SALARIE_ID_INFOS_SALARIE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_PREVOYANCE_CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_PREVOYANCE_CONTRAT_SALARIE_ID_INFOS_SALARIE_PAYE_fkey" FOREIGN KEY ("ID_INFOS_SALARIE_PAYE") REFERENCES "OpenConcerto42"."INFOS_SALARIE_PAYE"("ID");


--
-- TOC entry 21701 (class 2606 OID 6931782)
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE CONTRAT_PREVOYANCE_RUBRIQUE_ID_CONTRAT_PREVOYANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_PREVOYANCE_RUBRIQUE"
    ADD CONSTRAINT "CONTRAT_PREVOYANCE_RUBRIQUE_ID_CONTRAT_PREVOYANCE_fkey" FOREIGN KEY ("ID_CONTRAT_PREVOYANCE") REFERENCES "OpenConcerto42"."CONTRAT_PREVOYANCE"("ID");


--
-- TOC entry 21702 (class 2606 OID 6931787)
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE CONTRAT_PREVOYANCE_RUBRIQUE_ID_RUBRIQUE_COTISATION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_PREVOYANCE_RUBRIQUE"
    ADD CONSTRAINT "CONTRAT_PREVOYANCE_RUBRIQUE_ID_RUBRIQUE_COTISATION_fkey" FOREIGN KEY ("ID_RUBRIQUE_COTISATION") REFERENCES "Common"."RUBRIQUE_COTISATION"("ID");


--
-- TOC entry 21703 (class 2606 OID 6931792)
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE_NET CONTRAT_PREVOYANCE_RUBRIQUE_NET_ID_CONTRAT_PREVOYANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_PREVOYANCE_RUBRIQUE_NET"
    ADD CONSTRAINT "CONTRAT_PREVOYANCE_RUBRIQUE_NET_ID_CONTRAT_PREVOYANCE_fkey" FOREIGN KEY ("ID_CONTRAT_PREVOYANCE") REFERENCES "OpenConcerto42"."CONTRAT_PREVOYANCE"("ID");


--
-- TOC entry 21704 (class 2606 OID 6931797)
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE_NET CONTRAT_PREVOYANCE_RUBRIQUE_NET_ID_RUBRIQUE_NET_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_PREVOYANCE_RUBRIQUE_NET"
    ADD CONSTRAINT "CONTRAT_PREVOYANCE_RUBRIQUE_NET_ID_RUBRIQUE_NET_fkey" FOREIGN KEY ("ID_RUBRIQUE_NET") REFERENCES "Common"."RUBRIQUE_NET"("ID");


--
-- TOC entry 21705 (class 2606 OID 6931802)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_AMENAGEMENT_PARTIEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_AMENAGEMENT_PARTIEL_fkey" FOREIGN KEY ("ID_CODE_AMENAGEMENT_PARTIEL") REFERENCES "Common"."CODE_AMENAGEMENT_PARTIEL"("ID");


--
-- TOC entry 21706 (class 2606 OID 6931807)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_CAISSE_CONGES_PAYES_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_CAISSE_CONGES_PAYES_fkey" FOREIGN KEY ("ID_CODE_CAISSE_CONGES_PAYES") REFERENCES "Common"."CODE_CAISSE_CONGES_PAYES"("ID");


--
-- TOC entry 21707 (class 2606 OID 6931812)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_CARACT_ACTIVITE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_CARACT_ACTIVITE_fkey" FOREIGN KEY ("ID_CODE_CARACT_ACTIVITE") REFERENCES "OpenConcerto42"."CODE_CARACT_ACTIVITE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21708 (class 2606 OID 6931817)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_CONTRAT_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_CONTRAT_TRAVAIL_fkey" FOREIGN KEY ("ID_CODE_CONTRAT_TRAVAIL") REFERENCES "OpenConcerto42"."CODE_CONTRAT_TRAVAIL"("ID") ON DELETE CASCADE;


--
-- TOC entry 21709 (class 2606 OID 6931822)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_DROIT_CONTRAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_DROIT_CONTRAT_fkey" FOREIGN KEY ("ID_CODE_DROIT_CONTRAT") REFERENCES "OpenConcerto42"."CODE_DROIT_CONTRAT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21710 (class 2606 OID 6931827)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_EMPLOI_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_EMPLOI_fkey" FOREIGN KEY ("ID_CODE_EMPLOI") REFERENCES "OpenConcerto42"."CODE_EMPLOI"("ID") ON DELETE CASCADE;


--
-- TOC entry 21711 (class 2606 OID 6931832)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_STATUT_CATEGORIEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_STATUT_CATEGORIEL_fkey" FOREIGN KEY ("ID_CODE_STATUT_CATEGORIEL") REFERENCES "OpenConcerto42"."CODE_STATUT_CATEGORIEL"("ID") ON DELETE CASCADE;


--
-- TOC entry 21712 (class 2606 OID 6931837)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_STATUT_CAT_CONV_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_STATUT_CAT_CONV_fkey" FOREIGN KEY ("ID_CODE_STATUT_CAT_CONV") REFERENCES "OpenConcerto42"."CODE_STATUT_CAT_CONV"("ID");


--
-- TOC entry 21713 (class 2606 OID 6931842)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_STATUT_PROF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_STATUT_PROF_fkey" FOREIGN KEY ("ID_CODE_STATUT_PROF") REFERENCES "OpenConcerto42"."CODE_STATUT_PROF"("ID") ON DELETE CASCADE;


--
-- TOC entry 21714 (class 2606 OID 6931847)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_SUSPENSION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_SUSPENSION_fkey" FOREIGN KEY ("ID_CODE_SUSPENSION") REFERENCES "Common"."CODE_SUSPENSION"("ID");


--
-- TOC entry 21715 (class 2606 OID 6931852)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CONTRAT_DETACHE_EXPATRIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CONTRAT_DETACHE_EXPATRIE_fkey" FOREIGN KEY ("ID_CONTRAT_DETACHE_EXPATRIE") REFERENCES "Common"."CONTRAT_DETACHE_EXPATRIE"("ID");


--
-- TOC entry 21716 (class 2606 OID 6931857)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CONTRAT_DISPOSITIF_POLITIQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CONTRAT_DISPOSITIF_POLITIQUE_fkey" FOREIGN KEY ("ID_CONTRAT_DISPOSITIF_POLITIQUE") REFERENCES "Common"."CONTRAT_DISPOSITIF_POLITIQUE"("ID");


--
-- TOC entry 21717 (class 2606 OID 6931862)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CONTRAT_MODALITE_TEMPS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CONTRAT_MODALITE_TEMPS_fkey" FOREIGN KEY ("ID_CONTRAT_MODALITE_TEMPS") REFERENCES "Common"."CONTRAT_MODALITE_TEMPS"("ID");


--
-- TOC entry 21718 (class 2606 OID 6931867)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CONTRAT_MOTIF_RECOURS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CONTRAT_MOTIF_RECOURS_fkey" FOREIGN KEY ("ID_CONTRAT_MOTIF_RECOURS") REFERENCES "Common"."CONTRAT_MOTIF_RECOURS"("ID");


--
-- TOC entry 21719 (class 2606 OID 6931872)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CONTRAT_REGIME_MALADIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CONTRAT_REGIME_MALADIE_fkey" FOREIGN KEY ("ID_CONTRAT_REGIME_MALADIE") REFERENCES "Common"."CONTRAT_REGIME_MALADIE"("ID");


--
-- TOC entry 21720 (class 2606 OID 6931877)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CONTRAT_REGIME_VIEILLESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CONTRAT_REGIME_VIEILLESSE_fkey" FOREIGN KEY ("ID_CONTRAT_REGIME_VIEILLESSE") REFERENCES "Common"."CONTRAT_REGIME_VIEILLESSE"("ID");


--
-- TOC entry 21721 (class 2606 OID 6931882)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_DIPLOME_PREPARE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_DIPLOME_PREPARE_fkey" FOREIGN KEY ("ID_DIPLOME_PREPARE") REFERENCES "Common"."DIPLOME_PREPARE"("ID");


--
-- TOC entry 21722 (class 2606 OID 6931887)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21723 (class 2606 OID 6931892)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21724 (class 2606 OID 6931897)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COURRIER_CLIENT"
    ADD CONSTRAINT "COURRIER_CLIENT_ID_ADRESSE_fkey" FOREIGN KEY ("ID_ADRESSE") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE") ON DELETE CASCADE;


--
-- TOC entry 21725 (class 2606 OID 6931902)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COURRIER_CLIENT"
    ADD CONSTRAINT "COURRIER_CLIENT_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21726 (class 2606 OID 6940820)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COURRIER_CLIENT"
    ADD CONSTRAINT "COURRIER_CLIENT_ID_CONTACT_fkey" FOREIGN KEY ("ID_CONTACT") REFERENCES "OpenConcerto42"."CONTACT"("ID");


--
-- TOC entry 21727 (class 2606 OID 6931907)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_MODELE_COURRIER_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COURRIER_CLIENT"
    ADD CONSTRAINT "COURRIER_CLIENT_ID_MODELE_COURRIER_CLIENT_fkey" FOREIGN KEY ("ID_MODELE_COURRIER_CLIENT") REFERENCES "OpenConcerto42"."MODELE_COURRIER_CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21728 (class 2606 OID 6931912)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COURRIER_CLIENT"
    ADD CONSTRAINT "COURRIER_CLIENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21729 (class 2606 OID 6931917)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."COURRIER_CLIENT"
    ADD CONSTRAINT "COURRIER_CLIENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21730 (class 2606 OID 6931922)
-- Name: CUMULS_CONGES CUMULS_CONGES_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CUMULS_CONGES"
    ADD CONSTRAINT "CUMULS_CONGES_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21731 (class 2606 OID 6931927)
-- Name: CUMULS_CONGES CUMULS_CONGES_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CUMULS_CONGES"
    ADD CONSTRAINT "CUMULS_CONGES_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21732 (class 2606 OID 6931932)
-- Name: CUMULS_PAYE CUMULS_PAYE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CUMULS_PAYE"
    ADD CONSTRAINT "CUMULS_PAYE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21733 (class 2606 OID 6931937)
-- Name: CUMULS_PAYE CUMULS_PAYE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."CUMULS_PAYE"
    ADD CONSTRAINT "CUMULS_PAYE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21734 (class 2606 OID 6931942)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_ARRET_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DECLARATION_DSN"
    ADD CONSTRAINT "DECLARATION_DSN_ID_ARRET_TRAVAIL_fkey" FOREIGN KEY ("ID_ARRET_TRAVAIL") REFERENCES "OpenConcerto42"."ARRET_TRAVAIL"("ID");


--
-- TOC entry 21735 (class 2606 OID 6931947)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_DECLARATION_DSN_ANNULATION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DECLARATION_DSN"
    ADD CONSTRAINT "DECLARATION_DSN_ID_DECLARATION_DSN_ANNULATION_fkey" FOREIGN KEY ("ID_DECLARATION_DSN_ANNULATION") REFERENCES "OpenConcerto42"."DECLARATION_DSN"("ID");


--
-- TOC entry 21736 (class 2606 OID 6931952)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_DSN_NATURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DECLARATION_DSN"
    ADD CONSTRAINT "DECLARATION_DSN_ID_DSN_NATURE_fkey" FOREIGN KEY ("ID_DSN_NATURE") REFERENCES "Common"."DSN_NATURE"("ID");


--
-- TOC entry 21737 (class 2606 OID 6931957)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_FIN_CONTRAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DECLARATION_DSN"
    ADD CONSTRAINT "DECLARATION_DSN_ID_FIN_CONTRAT_fkey" FOREIGN KEY ("ID_FIN_CONTRAT") REFERENCES "OpenConcerto42"."FIN_CONTRAT"("ID");


--
-- TOC entry 21738 (class 2606 OID 6931962)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_MOIS_REGUL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DECLARATION_DSN"
    ADD CONSTRAINT "DECLARATION_DSN_ID_MOIS_REGUL_fkey" FOREIGN KEY ("ID_MOIS_REGUL") REFERENCES "OpenConcerto42"."MOIS"("ID");


--
-- TOC entry 21739 (class 2606 OID 6931967)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_MOIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DECLARATION_DSN"
    ADD CONSTRAINT "DECLARATION_DSN_ID_MOIS_fkey" FOREIGN KEY ("ID_MOIS") REFERENCES "OpenConcerto42"."MOIS"("ID");


--
-- TOC entry 21740 (class 2606 OID 6931972)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_REPRISE_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DECLARATION_DSN"
    ADD CONSTRAINT "DECLARATION_DSN_ID_REPRISE_TRAVAIL_fkey" FOREIGN KEY ("ID_REPRISE_TRAVAIL") REFERENCES "OpenConcerto42"."REPRISE_TRAVAIL"("ID");


--
-- TOC entry 21741 (class 2606 OID 6931977)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT"
    ADD CONSTRAINT "DEMANDE_ACHAT_ELEMENT_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21742 (class 2606 OID 6931982)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_BON_RECEPTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT"
    ADD CONSTRAINT "DEMANDE_ACHAT_ELEMENT_ID_BON_RECEPTION_fkey" FOREIGN KEY ("ID_BON_RECEPTION") REFERENCES "OpenConcerto42"."BON_RECEPTION"("ID");


--
-- TOC entry 21743 (class 2606 OID 6931987)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT"
    ADD CONSTRAINT "DEMANDE_ACHAT_ELEMENT_ID_COMMANDE_fkey" FOREIGN KEY ("ID_COMMANDE") REFERENCES "OpenConcerto42"."COMMANDE"("ID");


--
-- TOC entry 21744 (class 2606 OID 6931992)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_ETAT_DEMANDE_ACHAT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT"
    ADD CONSTRAINT "DEMANDE_ACHAT_ELEMENT_ID_ETAT_DEMANDE_ACHAT_ELEMENT_fkey" FOREIGN KEY ("ID_ETAT_DEMANDE_ACHAT_ELEMENT") REFERENCES "OpenConcerto42"."ETAT_DEMANDE_ACHAT_ELEMENT"("ID");


--
-- TOC entry 21745 (class 2606 OID 6931997)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_FABRICANT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT"
    ADD CONSTRAINT "DEMANDE_ACHAT_ELEMENT_ID_FABRICANT_fkey" FOREIGN KEY ("ID_FABRICANT") REFERENCES "OpenConcerto42"."FABRICANT"("ID");


--
-- TOC entry 21746 (class 2606 OID 6932002)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT"
    ADD CONSTRAINT "DEMANDE_ACHAT_ELEMENT_ID_FAMILLE_ARTICLE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE") REFERENCES "OpenConcerto42"."FAMILLE_ARTICLE"("ID");


--
-- TOC entry 21747 (class 2606 OID 6932007)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT"
    ADD CONSTRAINT "DEMANDE_ACHAT_ELEMENT_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto42"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 21748 (class 2606 OID 6932012)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT"
    ADD CONSTRAINT "DEMANDE_ACHAT_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "OpenConcerto42"."UNITE_VENTE"("ID");


--
-- TOC entry 21752 (class 2606 OID 6932017)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 21753 (class 2606 OID 6932022)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_TAILLE") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_TAILLE"("ID");


--
-- TOC entry 21754 (class 2606 OID 6932027)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21755 (class 2606 OID 6932032)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey" FOREIGN KEY ("ID_DEMANDE_ACHAT_ELEMENT") REFERENCES "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT"("ID");


--
-- TOC entry 21756 (class 2606 OID 6932037)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_DEMANDE_PRIX_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_DEMANDE_PRIX_fkey" FOREIGN KEY ("ID_DEMANDE_PRIX") REFERENCES "OpenConcerto42"."DEMANDE_PRIX"("ID");


--
-- TOC entry 21757 (class 2606 OID 6932042)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_DEPOT_STOCK_fkey" FOREIGN KEY ("ID_DEPOT_STOCK") REFERENCES "OpenConcerto42"."DEPOT_STOCK"("ID");


--
-- TOC entry 21758 (class 2606 OID 6932047)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21759 (class 2606 OID 6932052)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_ECO_CONTRIBUTION_fkey" FOREIGN KEY ("ID_ECO_CONTRIBUTION") REFERENCES "Common"."ECO_CONTRIBUTION"("ID");


--
-- TOC entry 21760 (class 2606 OID 6932057)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_FAMILLE_ARTICLE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE") REFERENCES "OpenConcerto42"."FAMILLE_ARTICLE"("ID");


--
-- TOC entry 21761 (class 2606 OID 6932062)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "OpenConcerto42"."METRIQUE"("ID");


--
-- TOC entry 21762 (class 2606 OID 6932067)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "OpenConcerto42"."METRIQUE"("ID");


--
-- TOC entry 21763 (class 2606 OID 6932072)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "OpenConcerto42"."METRIQUE"("ID");


--
-- TOC entry 21764 (class 2606 OID 6932077)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "OpenConcerto42"."MODE_VENTE_ARTICLE"("ID");


--
-- TOC entry 21765 (class 2606 OID 6932082)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "OpenConcerto42"."STYLE"("ID_STYLE");


--
-- TOC entry 21766 (class 2606 OID 6932087)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21767 (class 2606 OID 6932092)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "OpenConcerto42"."UNITE_VENTE"("ID");


--
-- TOC entry 21749 (class 2606 OID 6932097)
-- Name: DEMANDE_PRIX DEMANDE_PRIX_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX"
    ADD CONSTRAINT "DEMANDE_PRIX_ID_COMMERCIAL_fkey" FOREIGN KEY ("ID_COMMERCIAL") REFERENCES "OpenConcerto42"."COMMERCIAL"("ID_COMMERCIAL");


--
-- TOC entry 21750 (class 2606 OID 6932102)
-- Name: DEMANDE_PRIX DEMANDE_PRIX_ID_ETAT_DEMANDE_PRIX_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX"
    ADD CONSTRAINT "DEMANDE_PRIX_ID_ETAT_DEMANDE_PRIX_fkey" FOREIGN KEY ("ID_ETAT_DEMANDE_PRIX") REFERENCES "OpenConcerto42"."ETAT_DEMANDE_PRIX"("ID");


--
-- TOC entry 21751 (class 2606 OID 6932107)
-- Name: DEMANDE_PRIX DEMANDE_PRIX_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEMANDE_PRIX"
    ADD CONSTRAINT "DEMANDE_PRIX_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto42"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 21768 (class 2606 OID 6932112)
-- Name: DEPARTEMENT DEPARTEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEPARTEMENT"
    ADD CONSTRAINT "DEPARTEMENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21769 (class 2606 OID 6932117)
-- Name: DEPARTEMENT DEPARTEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEPARTEMENT"
    ADD CONSTRAINT "DEPARTEMENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21773 (class 2606 OID 6932122)
-- Name: DEPOT_CHEQUE_ELEMENT DEPOT_CHEQUE_ELEMENT_ID_CHEQUE_A_ENCAISSER_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEPOT_CHEQUE_ELEMENT"
    ADD CONSTRAINT "DEPOT_CHEQUE_ELEMENT_ID_CHEQUE_A_ENCAISSER_fkey" FOREIGN KEY ("ID_CHEQUE_A_ENCAISSER") REFERENCES "OpenConcerto42"."CHEQUE_A_ENCAISSER"("ID");


--
-- TOC entry 21774 (class 2606 OID 6932127)
-- Name: DEPOT_CHEQUE_ELEMENT DEPOT_CHEQUE_ELEMENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEPOT_CHEQUE_ELEMENT"
    ADD CONSTRAINT "DEPOT_CHEQUE_ELEMENT_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID");


--
-- TOC entry 21775 (class 2606 OID 6932132)
-- Name: DEPOT_CHEQUE_ELEMENT DEPOT_CHEQUE_ELEMENT_ID_DEPOT_CHEQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEPOT_CHEQUE_ELEMENT"
    ADD CONSTRAINT "DEPOT_CHEQUE_ELEMENT_ID_DEPOT_CHEQUE_fkey" FOREIGN KEY ("ID_DEPOT_CHEQUE") REFERENCES "OpenConcerto42"."DEPOT_CHEQUE"("ID");


--
-- TOC entry 21776 (class 2606 OID 6932137)
-- Name: DEPOT_CHEQUE_ELEMENT DEPOT_CHEQUE_ELEMENT_ID_ECRITURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEPOT_CHEQUE_ELEMENT"
    ADD CONSTRAINT "DEPOT_CHEQUE_ELEMENT_ID_ECRITURE_fkey" FOREIGN KEY ("ID_ECRITURE") REFERENCES "OpenConcerto42"."ECRITURE"("ID");


--
-- TOC entry 21770 (class 2606 OID 6932142)
-- Name: DEPOT_CHEQUE DEPOT_CHEQUE_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEPOT_CHEQUE"
    ADD CONSTRAINT "DEPOT_CHEQUE_ID_BANQUE_fkey" FOREIGN KEY ("ID_BANQUE") REFERENCES "OpenConcerto42"."BANQUE"("ID");


--
-- TOC entry 21771 (class 2606 OID 6932147)
-- Name: DEPOT_CHEQUE DEPOT_CHEQUE_ID_ECRITURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEPOT_CHEQUE"
    ADD CONSTRAINT "DEPOT_CHEQUE_ID_ECRITURE_fkey" FOREIGN KEY ("ID_ECRITURE") REFERENCES "OpenConcerto42"."ECRITURE"("ID");


--
-- TOC entry 21772 (class 2606 OID 6932152)
-- Name: DEPOT_CHEQUE DEPOT_CHEQUE_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEPOT_CHEQUE"
    ADD CONSTRAINT "DEPOT_CHEQUE_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID");


--
-- TOC entry 21777 (class 2606 OID 6932157)
-- Name: DEPOT_STOCK DEPOT_STOCK_ID_USER_UI_LOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEPOT_STOCK"
    ADD CONSTRAINT "DEPOT_STOCK_ID_USER_UI_LOCK_fkey" FOREIGN KEY ("ID_USER_UI_LOCK") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21792 (class 2606 OID 6932162)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 21793 (class 2606 OID 6932167)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_TAILLE") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_TAILLE"("ID");


--
-- TOC entry 21794 (class 2606 OID 6932172)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21795 (class 2606 OID 6932177)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_DEPOT_STOCK_fkey" FOREIGN KEY ("ID_DEPOT_STOCK") REFERENCES "OpenConcerto42"."DEPOT_STOCK"("ID");


--
-- TOC entry 21796 (class 2606 OID 6932182)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21797 (class 2606 OID 6932187)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_DEVIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_DEVIS_fkey" FOREIGN KEY ("ID_DEVIS") REFERENCES "OpenConcerto42"."DEVIS"("ID_DEVIS") ON DELETE CASCADE;


--
-- TOC entry 21798 (class 2606 OID 6932192)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_ECO_CONTRIBUTION_fkey" FOREIGN KEY ("ID_ECO_CONTRIBUTION") REFERENCES "Common"."ECO_CONTRIBUTION"("ID");


--
-- TOC entry 21799 (class 2606 OID 6932197)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_FAMILLE_ARTICLE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE") REFERENCES "OpenConcerto42"."FAMILLE_ARTICLE"("ID");


--
-- TOC entry 21800 (class 2606 OID 6932202)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21801 (class 2606 OID 6932207)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21802 (class 2606 OID 6932212)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "OpenConcerto42"."METRIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21803 (class 2606 OID 6932217)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "OpenConcerto42"."MODE_VENTE_ARTICLE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21804 (class 2606 OID 6932222)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_PAYS_fkey" FOREIGN KEY ("ID_PAYS") REFERENCES "OpenConcerto42"."PAYS"("ID");


--
-- TOC entry 21805 (class 2606 OID 6932227)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "OpenConcerto42"."STYLE"("ID_STYLE") ON DELETE CASCADE;


--
-- TOC entry 21806 (class 2606 OID 6932232)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE") ON DELETE CASCADE;


--
-- TOC entry 21807 (class 2606 OID 6932237)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "OpenConcerto42"."UNITE_VENTE"("ID");


--
-- TOC entry 21808 (class 2606 OID 6932242)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21809 (class 2606 OID 6932247)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21778 (class 2606 OID 6932252)
-- Name: DEVIS DEVIS_ID_ADRESSE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_ADRESSE_LIVRAISON_fkey" FOREIGN KEY ("ID_ADRESSE_LIVRAISON") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 21779 (class 2606 OID 6932257)
-- Name: DEVIS DEVIS_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_ADRESSE_fkey" FOREIGN KEY ("ID_ADRESSE") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 21780 (class 2606 OID 6932262)
-- Name: DEVIS DEVIS_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_CATEGORIE_COMPTABLE_fkey" FOREIGN KEY ("ID_CATEGORIE_COMPTABLE") REFERENCES "OpenConcerto42"."CATEGORIE_COMPTABLE"("ID");


--
-- TOC entry 21781 (class 2606 OID 6932267)
-- Name: DEVIS DEVIS_ID_CLIENT_DEPARTEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_CLIENT_DEPARTEMENT_fkey" FOREIGN KEY ("ID_CLIENT_DEPARTEMENT") REFERENCES "OpenConcerto42"."CLIENT_DEPARTEMENT"("ID");


--
-- TOC entry 21782 (class 2606 OID 6932272)
-- Name: DEVIS DEVIS_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21783 (class 2606 OID 6932277)
-- Name: DEVIS DEVIS_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_COMMERCIAL_fkey" FOREIGN KEY ("ID_COMMERCIAL") REFERENCES "OpenConcerto42"."COMMERCIAL"("ID_COMMERCIAL") ON DELETE CASCADE;


--
-- TOC entry 21784 (class 2606 OID 6932282)
-- Name: DEVIS DEVIS_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_CONTACT_fkey" FOREIGN KEY ("ID_CONTACT") REFERENCES "OpenConcerto42"."CONTACT"("ID");


--
-- TOC entry 21785 (class 2606 OID 6932287)
-- Name: DEVIS DEVIS_ID_ETAT_DEVIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_ETAT_DEVIS_fkey" FOREIGN KEY ("ID_ETAT_DEVIS") REFERENCES "OpenConcerto42"."ETAT_DEVIS"("ID") ON DELETE CASCADE;


--
-- TOC entry 21786 (class 2606 OID 6932292)
-- Name: DEVIS DEVIS_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_MODELE_fkey" FOREIGN KEY ("ID_MODELE") REFERENCES "OpenConcerto42"."MODELE"("ID");


--
-- TOC entry 21787 (class 2606 OID 6932297)
-- Name: DEVIS DEVIS_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_TARIF_fkey" FOREIGN KEY ("ID_TARIF") REFERENCES "OpenConcerto42"."TARIF"("ID");


--
-- TOC entry 21788 (class 2606 OID 6932302)
-- Name: DEVIS DEVIS_ID_TAXE_FRAIS_DOCUMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_TAXE_FRAIS_DOCUMENT_fkey" FOREIGN KEY ("ID_TAXE_FRAIS_DOCUMENT") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21789 (class 2606 OID 6932307)
-- Name: DEVIS DEVIS_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_TAXE_PORT_fkey" FOREIGN KEY ("ID_TAXE_PORT") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21790 (class 2606 OID 6932312)
-- Name: DEVIS DEVIS_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21791 (class 2606 OID 6932317)
-- Name: DEVIS DEVIS_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21810 (class 2606 OID 6932322)
-- Name: ECHANTILLON_ELEMENT ECHANTILLON_ELEMENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHANTILLON_ELEMENT"
    ADD CONSTRAINT "ECHANTILLON_ELEMENT_ID_SAISIE_VENTE_FACTURE_fkey" FOREIGN KEY ("ID_SAISIE_VENTE_FACTURE") REFERENCES "OpenConcerto42"."SAISIE_VENTE_FACTURE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21811 (class 2606 OID 6932327)
-- Name: ECHANTILLON_ELEMENT ECHANTILLON_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHANTILLON_ELEMENT"
    ADD CONSTRAINT "ECHANTILLON_ELEMENT_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE") ON DELETE CASCADE;


--
-- TOC entry 21812 (class 2606 OID 6932332)
-- Name: ECHANTILLON_ELEMENT ECHANTILLON_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHANTILLON_ELEMENT"
    ADD CONSTRAINT "ECHANTILLON_ELEMENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21813 (class 2606 OID 6932337)
-- Name: ECHANTILLON_ELEMENT ECHANTILLON_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHANTILLON_ELEMENT"
    ADD CONSTRAINT "ECHANTILLON_ELEMENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21814 (class 2606 OID 6932342)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_BANQUE_fkey" FOREIGN KEY ("ID_BANQUE") REFERENCES "OpenConcerto42"."BANQUE"("ID");


--
-- TOC entry 21815 (class 2606 OID 6932347)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21816 (class 2606 OID 6932352)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_COMPTE_PCE_TIERS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_COMPTE_PCE_TIERS_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TIERS") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21817 (class 2606 OID 6932357)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21818 (class 2606 OID 6932362)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey" FOREIGN KEY ("ID_SAISIE_VENTE_FACTURE") REFERENCES "OpenConcerto42"."SAISIE_VENTE_FACTURE"("ID");


--
-- TOC entry 21819 (class 2606 OID 6932367)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_SDD_MESSAGE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_SDD_MESSAGE_fkey" FOREIGN KEY ("ID_SDD_MESSAGE") REFERENCES "OpenConcerto42"."SEPA_DIRECT_DEBIT_MESSAGE"("ID");


--
-- TOC entry 21820 (class 2606 OID 6932372)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_SEPA_MANDATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_SEPA_MANDATE_fkey" FOREIGN KEY ("ID_SEPA_MANDATE") REFERENCES "OpenConcerto42"."SEPA_MANDATE"("ID");


--
-- TOC entry 21821 (class 2606 OID 6932377)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21822 (class 2606 OID 6932382)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21823 (class 2606 OID 6932387)
-- Name: ECHEANCE_FOURNISSEUR ECHEANCE_FOURNISSEUR_ID_FACTURE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHEANCE_FOURNISSEUR"
    ADD CONSTRAINT "ECHEANCE_FOURNISSEUR_ID_FACTURE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FACTURE_FOURNISSEUR") REFERENCES "OpenConcerto42"."FACTURE_FOURNISSEUR"("ID");


--
-- TOC entry 21824 (class 2606 OID 6932392)
-- Name: ECHEANCE_FOURNISSEUR ECHEANCE_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHEANCE_FOURNISSEUR"
    ADD CONSTRAINT "ECHEANCE_FOURNISSEUR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto42"."FOURNISSEUR"("ID_FOURNISSEUR") ON DELETE CASCADE;


--
-- TOC entry 21825 (class 2606 OID 6932397)
-- Name: ECHEANCE_FOURNISSEUR ECHEANCE_FOURNISSEUR_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHEANCE_FOURNISSEUR"
    ADD CONSTRAINT "ECHEANCE_FOURNISSEUR_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21826 (class 2606 OID 6932402)
-- Name: ECHEANCE_FOURNISSEUR ECHEANCE_FOURNISSEUR_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHEANCE_FOURNISSEUR"
    ADD CONSTRAINT "ECHEANCE_FOURNISSEUR_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21827 (class 2606 OID 6932407)
-- Name: ECHEANCE_FOURNISSEUR ECHEANCE_FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECHEANCE_FOURNISSEUR"
    ADD CONSTRAINT "ECHEANCE_FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21828 (class 2606 OID 6932412)
-- Name: ECRITURE ECRITURE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECRITURE"
    ADD CONSTRAINT "ECRITURE_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21829 (class 2606 OID 6932417)
-- Name: ECRITURE ECRITURE_ID_JOURNAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECRITURE"
    ADD CONSTRAINT "ECRITURE_ID_JOURNAL_fkey" FOREIGN KEY ("ID_JOURNAL") REFERENCES "OpenConcerto42"."JOURNAL"("ID") ON DELETE CASCADE;


--
-- TOC entry 21830 (class 2606 OID 6932422)
-- Name: ECRITURE ECRITURE_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECRITURE"
    ADD CONSTRAINT "ECRITURE_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21831 (class 2606 OID 6932427)
-- Name: ECRITURE ECRITURE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECRITURE"
    ADD CONSTRAINT "ECRITURE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21832 (class 2606 OID 6932432)
-- Name: ECRITURE ECRITURE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ECRITURE"
    ADD CONSTRAINT "ECRITURE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21833 (class 2606 OID 6932437)
-- Name: EMPLOYEUR_MULTIPLE EMPLOYEUR_MULTIPLE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."EMPLOYEUR_MULTIPLE"
    ADD CONSTRAINT "EMPLOYEUR_MULTIPLE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21834 (class 2606 OID 6932442)
-- Name: EMPLOYEUR_MULTIPLE EMPLOYEUR_MULTIPLE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."EMPLOYEUR_MULTIPLE"
    ADD CONSTRAINT "EMPLOYEUR_MULTIPLE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21845 (class 2606 OID 6932447)
-- Name: ENCAISSER_MONTANT_ELEMENT ENCAISSER_MONTANT_ELEMENT_ID_ECHEANCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ENCAISSER_MONTANT_ELEMENT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ELEMENT_ID_ECHEANCE_CLIENT_fkey" FOREIGN KEY ("ID_ECHEANCE_CLIENT") REFERENCES "OpenConcerto42"."ECHEANCE_CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21846 (class 2606 OID 6932452)
-- Name: ENCAISSER_MONTANT_ELEMENT ENCAISSER_MONTANT_ELEMENT_ID_ENCAISSER_MONTANT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ENCAISSER_MONTANT_ELEMENT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ELEMENT_ID_ENCAISSER_MONTANT_fkey" FOREIGN KEY ("ID_ENCAISSER_MONTANT") REFERENCES "OpenConcerto42"."ENCAISSER_MONTANT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21847 (class 2606 OID 6932457)
-- Name: ENCAISSER_MONTANT_ELEMENT ENCAISSER_MONTANT_ELEMENT_ID_MOUVEMENT_ECHEANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ENCAISSER_MONTANT_ELEMENT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ELEMENT_ID_MOUVEMENT_ECHEANCE_fkey" FOREIGN KEY ("ID_MOUVEMENT_ECHEANCE") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21835 (class 2606 OID 6932462)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto42"."CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21836 (class 2606 OID 6932467)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_COMMANDE_CLIENT_fkey" FOREIGN KEY ("ID_COMMANDE_CLIENT") REFERENCES "OpenConcerto42"."DEVIS"("ID_DEVIS");


--
-- TOC entry 21837 (class 2606 OID 6932472)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_COMPTE_PCE_TIERS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_COMPTE_PCE_TIERS_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TIERS") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21838 (class 2606 OID 6932477)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_DEVIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_DEVIS_fkey" FOREIGN KEY ("ID_DEVIS") REFERENCES "OpenConcerto42"."DEVIS"("ID_DEVIS");


--
-- TOC entry 21839 (class 2606 OID 6932482)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_ECHEANCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_ECHEANCE_CLIENT_fkey" FOREIGN KEY ("ID_ECHEANCE_CLIENT") REFERENCES "OpenConcerto42"."ECHEANCE_CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21840 (class 2606 OID 6932487)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_MODE_REGLEMENT_fkey" FOREIGN KEY ("ID_MODE_REGLEMENT") REFERENCES "OpenConcerto42"."MODE_REGLEMENT"("ID_MODE_REGLEMENT") ON DELETE CASCADE;


--
-- TOC entry 21841 (class 2606 OID 6932492)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21842 (class 2606 OID 6932497)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_TICKET_CAISSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_TICKET_CAISSE_fkey" FOREIGN KEY ("ID_TICKET_CAISSE") REFERENCES "OpenConcerto42"."TICKET_CAISSE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21843 (class 2606 OID 6932502)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21844 (class 2606 OID 6932507)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21848 (class 2606 OID 6932512)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ETAT_CIVIL"
    ADD CONSTRAINT "ETAT_CIVIL_ID_ADRESSE_fkey" FOREIGN KEY ("ID_ADRESSE") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE") ON DELETE CASCADE;


--
-- TOC entry 21849 (class 2606 OID 6932517)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_DEPARTEMENT_NAISSANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ETAT_CIVIL"
    ADD CONSTRAINT "ETAT_CIVIL_ID_DEPARTEMENT_NAISSANCE_fkey" FOREIGN KEY ("ID_DEPARTEMENT_NAISSANCE") REFERENCES "OpenConcerto42"."DEPARTEMENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21850 (class 2606 OID 6932522)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_PAYS_NAISSANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ETAT_CIVIL"
    ADD CONSTRAINT "ETAT_CIVIL_ID_PAYS_NAISSANCE_fkey" FOREIGN KEY ("ID_PAYS_NAISSANCE") REFERENCES "OpenConcerto42"."PAYS"("ID") ON DELETE CASCADE;


--
-- TOC entry 21851 (class 2606 OID 6932527)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_SITUATION_FAMILIALE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ETAT_CIVIL"
    ADD CONSTRAINT "ETAT_CIVIL_ID_SITUATION_FAMILIALE_fkey" FOREIGN KEY ("ID_SITUATION_FAMILIALE") REFERENCES "OpenConcerto42"."SITUATION_FAMILIALE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21852 (class 2606 OID 6932532)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ETAT_CIVIL"
    ADD CONSTRAINT "ETAT_CIVIL_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21853 (class 2606 OID 6932537)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ETAT_CIVIL"
    ADD CONSTRAINT "ETAT_CIVIL_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21854 (class 2606 OID 6932542)
-- Name: ETAT_DEVIS ETAT_DEVIS_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ETAT_DEVIS"
    ADD CONSTRAINT "ETAT_DEVIS_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21855 (class 2606 OID 6932547)
-- Name: ETAT_DEVIS ETAT_DEVIS_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ETAT_DEVIS"
    ADD CONSTRAINT "ETAT_DEVIS_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21856 (class 2606 OID 6932552)
-- Name: ETAT_RAPPORT ETAT_RAPPORT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ETAT_RAPPORT"
    ADD CONSTRAINT "ETAT_RAPPORT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21857 (class 2606 OID 6932557)
-- Name: ETAT_RAPPORT ETAT_RAPPORT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ETAT_RAPPORT"
    ADD CONSTRAINT "ETAT_RAPPORT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21859 (class 2606 OID 6932562)
-- Name: ETAT_STOCK_ELEMENT ETAT_STOCK_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ETAT_STOCK_ELEMENT"
    ADD CONSTRAINT "ETAT_STOCK_ELEMENT_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21860 (class 2606 OID 6932567)
-- Name: ETAT_STOCK_ELEMENT ETAT_STOCK_ELEMENT_ID_ETAT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ETAT_STOCK_ELEMENT"
    ADD CONSTRAINT "ETAT_STOCK_ELEMENT_ID_ETAT_STOCK_fkey" FOREIGN KEY ("ID_ETAT_STOCK") REFERENCES "OpenConcerto42"."ETAT_STOCK"("ID");


--
-- TOC entry 21858 (class 2606 OID 6932572)
-- Name: ETAT_STOCK ETAT_STOCK_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."ETAT_STOCK"
    ADD CONSTRAINT "ETAT_STOCK_ID_DEPOT_STOCK_fkey" FOREIGN KEY ("ID_DEPOT_STOCK") REFERENCES "OpenConcerto42"."DEPOT_STOCK"("ID");


--
-- TOC entry 21861 (class 2606 OID 6932577)
-- Name: FACTURATION_COMMANDE_CLIENT FACTURATION_COMMANDE_CLIENT_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURATION_COMMANDE_CLIENT"
    ADD CONSTRAINT "FACTURATION_COMMANDE_CLIENT_ID_COMMANDE_CLIENT_fkey" FOREIGN KEY ("ID_COMMANDE_CLIENT") REFERENCES "OpenConcerto42"."COMMANDE_CLIENT"("ID");


--
-- TOC entry 21862 (class 2606 OID 6932582)
-- Name: FACTURATION_COMMANDE_CLIENT FACTURATION_COMMANDE_CLIENT_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURATION_COMMANDE_CLIENT"
    ADD CONSTRAINT "FACTURATION_COMMANDE_CLIENT_ID_MODELE_fkey" FOREIGN KEY ("ID_MODELE") REFERENCES "OpenConcerto42"."MODELE"("ID");


--
-- TOC entry 21863 (class 2606 OID 6932587)
-- Name: FACTURATION_COMMANDE_CLIENT FACTURATION_COMMANDE_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURATION_COMMANDE_CLIENT"
    ADD CONSTRAINT "FACTURATION_COMMANDE_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey" FOREIGN KEY ("ID_SAISIE_VENTE_FACTURE") REFERENCES "OpenConcerto42"."SAISIE_VENTE_FACTURE"("ID");


--
-- TOC entry 21864 (class 2606 OID 6932592)
-- Name: FACTURATION_COMMANDE_CLIENT FACTURATION_COMMANDE_CLIENT_ID_TYPE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURATION_COMMANDE_CLIENT"
    ADD CONSTRAINT "FACTURATION_COMMANDE_CLIENT_ID_TYPE_REGLEMENT_fkey" FOREIGN KEY ("ID_TYPE_REGLEMENT") REFERENCES "OpenConcerto42"."TYPE_REGLEMENT"("ID");


--
-- TOC entry 21874 (class 2606 OID 6932597)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 21875 (class 2606 OID 6932602)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_TAILLE") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_TAILLE"("ID");


--
-- TOC entry 21876 (class 2606 OID 6932607)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID");


--
-- TOC entry 21877 (class 2606 OID 6932612)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_CODE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_CODE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_CODE_FOURNISSEUR") REFERENCES "OpenConcerto42"."CODE_FOURNISSEUR"("ID");


--
-- TOC entry 21878 (class 2606 OID 6932617)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey" FOREIGN KEY ("ID_DEMANDE_ACHAT_ELEMENT") REFERENCES "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT"("ID");


--
-- TOC entry 21879 (class 2606 OID 6932622)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_DEPOT_STOCK_fkey" FOREIGN KEY ("ID_DEPOT_STOCK") REFERENCES "OpenConcerto42"."DEPOT_STOCK"("ID");


--
-- TOC entry 21880 (class 2606 OID 6932627)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21881 (class 2606 OID 6932632)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_ECO_CONTRIBUTION_fkey" FOREIGN KEY ("ID_ECO_CONTRIBUTION") REFERENCES "Common"."ECO_CONTRIBUTION"("ID");


--
-- TOC entry 21882 (class 2606 OID 6932637)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_FACTURE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_FACTURE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FACTURE_FOURNISSEUR") REFERENCES "OpenConcerto42"."FACTURE_FOURNISSEUR"("ID");


--
-- TOC entry 21883 (class 2606 OID 6932642)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_FAMILLE_ARTICLE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE") REFERENCES "OpenConcerto42"."FAMILLE_ARTICLE"("ID");


--
-- TOC entry 21884 (class 2606 OID 6932647)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "OpenConcerto42"."METRIQUE"("ID");


--
-- TOC entry 21885 (class 2606 OID 6932652)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "OpenConcerto42"."METRIQUE"("ID");


--
-- TOC entry 21886 (class 2606 OID 6932657)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "OpenConcerto42"."METRIQUE"("ID");


--
-- TOC entry 21887 (class 2606 OID 6932662)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "OpenConcerto42"."MODE_VENTE_ARTICLE"("ID");


--
-- TOC entry 21888 (class 2606 OID 6932667)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "OpenConcerto42"."STYLE"("ID_STYLE");


--
-- TOC entry 21889 (class 2606 OID 6932672)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21890 (class 2606 OID 6932677)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "OpenConcerto42"."UNITE_VENTE"("ID");


--
-- TOC entry 21865 (class 2606 OID 6932682)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_AVOIR_FOURNISSEUR_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_AVOIR_FOURNISSEUR_2_fkey" FOREIGN KEY ("ID_AVOIR_FOURNISSEUR_2") REFERENCES "OpenConcerto42"."AVOIR_FOURNISSEUR"("ID");


--
-- TOC entry 21866 (class 2606 OID 6932687)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_AVOIR_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_AVOIR_FOURNISSEUR_fkey" FOREIGN KEY ("ID_AVOIR_FOURNISSEUR") REFERENCES "OpenConcerto42"."AVOIR_FOURNISSEUR"("ID");


--
-- TOC entry 21867 (class 2606 OID 6932692)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_COMMERCIAL_fkey" FOREIGN KEY ("ID_COMMERCIAL") REFERENCES "OpenConcerto42"."COMMERCIAL"("ID_COMMERCIAL");


--
-- TOC entry 21868 (class 2606 OID 6932697)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21869 (class 2606 OID 6932702)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 21870 (class 2606 OID 6932707)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto42"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 21871 (class 2606 OID 6932712)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_MODE_REGLEMENT_fkey" FOREIGN KEY ("ID_MODE_REGLEMENT") REFERENCES "OpenConcerto42"."MODE_REGLEMENT"("ID_MODE_REGLEMENT");


--
-- TOC entry 21872 (class 2606 OID 6932717)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID");


--
-- TOC entry 21873 (class 2606 OID 6932722)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_TAXE_PORT_fkey" FOREIGN KEY ("ID_TAXE_PORT") REFERENCES "OpenConcerto42"."TAXE"("ID_TAXE");


--
-- TOC entry 21896 (class 2606 OID 6932727)
-- Name: FAMILLE_ARTICLE_FOURNISSEUR FAMILLE_ARTICLE_FOURNISSEUR_ID_FAMILLE_ARTICLE_FOURNISSEUR_PERE; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FAMILLE_ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "FAMILLE_ARTICLE_FOURNISSEUR_ID_FAMILLE_ARTICLE_FOURNISSEUR_PERE" FOREIGN KEY ("ID_FAMILLE_ARTICLE_FOURNISSEUR_PERE") REFERENCES "OpenConcerto42"."FAMILLE_ARTICLE_FOURNISSEUR"("ID");


--
-- TOC entry 21891 (class 2606 OID 6932732)
-- Name: FAMILLE_ARTICLE FAMILLE_ARTICLE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FAMILLE_ARTICLE"
    ADD CONSTRAINT "FAMILLE_ARTICLE_ID_COMPTE_PCE_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACHAT") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21892 (class 2606 OID 6932737)
-- Name: FAMILLE_ARTICLE FAMILLE_ARTICLE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FAMILLE_ARTICLE"
    ADD CONSTRAINT "FAMILLE_ARTICLE_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21893 (class 2606 OID 6932742)
-- Name: FAMILLE_ARTICLE FAMILLE_ARTICLE_ID_FAMILLE_ARTICLE_PERE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FAMILLE_ARTICLE"
    ADD CONSTRAINT "FAMILLE_ARTICLE_ID_FAMILLE_ARTICLE_PERE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE_PERE") REFERENCES "OpenConcerto42"."FAMILLE_ARTICLE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21894 (class 2606 OID 6932747)
-- Name: FAMILLE_ARTICLE FAMILLE_ARTICLE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FAMILLE_ARTICLE"
    ADD CONSTRAINT "FAMILLE_ARTICLE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21895 (class 2606 OID 6932752)
-- Name: FAMILLE_ARTICLE FAMILLE_ARTICLE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FAMILLE_ARTICLE"
    ADD CONSTRAINT "FAMILLE_ARTICLE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21909 (class 2606 OID 6932757)
-- Name: FICHE_PAYE_ELEMENT FICHE_PAYE_ELEMENT_ID_FICHE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FICHE_PAYE_ELEMENT"
    ADD CONSTRAINT "FICHE_PAYE_ELEMENT_ID_FICHE_PAYE_fkey" FOREIGN KEY ("ID_FICHE_PAYE") REFERENCES "OpenConcerto42"."FICHE_PAYE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21910 (class 2606 OID 6932762)
-- Name: FICHE_PAYE_ELEMENT FICHE_PAYE_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FICHE_PAYE_ELEMENT"
    ADD CONSTRAINT "FICHE_PAYE_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "OpenConcerto42"."STYLE"("ID_STYLE");


--
-- TOC entry 21911 (class 2606 OID 6932767)
-- Name: FICHE_PAYE_ELEMENT FICHE_PAYE_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FICHE_PAYE_ELEMENT"
    ADD CONSTRAINT "FICHE_PAYE_ELEMENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21912 (class 2606 OID 6932772)
-- Name: FICHE_PAYE_ELEMENT FICHE_PAYE_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FICHE_PAYE_ELEMENT"
    ADD CONSTRAINT "FICHE_PAYE_ELEMENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21897 (class 2606 OID 6932777)
-- Name: FICHE_PAYE FICHE_PAYE_ID_CUMULS_CONGES_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_CUMULS_CONGES_fkey" FOREIGN KEY ("ID_CUMULS_CONGES") REFERENCES "OpenConcerto42"."CUMULS_CONGES"("ID") ON DELETE CASCADE;


--
-- TOC entry 21898 (class 2606 OID 6932782)
-- Name: FICHE_PAYE FICHE_PAYE_ID_CUMULS_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_CUMULS_PAYE_fkey" FOREIGN KEY ("ID_CUMULS_PAYE") REFERENCES "OpenConcerto42"."CUMULS_PAYE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21899 (class 2606 OID 6932787)
-- Name: FICHE_PAYE FICHE_PAYE_ID_IDCC_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_IDCC_fkey" FOREIGN KEY ("ID_IDCC") REFERENCES "Common"."IDCC"("ID") ON DELETE CASCADE;


--
-- TOC entry 21900 (class 2606 OID 6932792)
-- Name: FICHE_PAYE FICHE_PAYE_ID_INFOS_SALARIE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_INFOS_SALARIE_PAYE_fkey" FOREIGN KEY ("ID_INFOS_SALARIE_PAYE") REFERENCES "OpenConcerto42"."INFOS_SALARIE_PAYE"("ID");


--
-- TOC entry 21901 (class 2606 OID 6932797)
-- Name: FICHE_PAYE FICHE_PAYE_ID_MOIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_MOIS_fkey" FOREIGN KEY ("ID_MOIS") REFERENCES "OpenConcerto42"."MOIS"("ID") ON DELETE CASCADE;


--
-- TOC entry 21902 (class 2606 OID 6932802)
-- Name: FICHE_PAYE FICHE_PAYE_ID_PAS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_PAS_fkey" FOREIGN KEY ("ID_PAS") REFERENCES "OpenConcerto42"."PAS"("ID");


--
-- TOC entry 21903 (class 2606 OID 6932807)
-- Name: FICHE_PAYE FICHE_PAYE_ID_PROFIL_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_PROFIL_PAYE_fkey" FOREIGN KEY ("ID_PROFIL_PAYE") REFERENCES "Common"."PROFIL_PAYE"("ID");


--
-- TOC entry 21904 (class 2606 OID 6932812)
-- Name: FICHE_PAYE FICHE_PAYE_ID_REGLEMENT_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_REGLEMENT_PAYE_fkey" FOREIGN KEY ("ID_REGLEMENT_PAYE") REFERENCES "OpenConcerto42"."REGLEMENT_PAYE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21905 (class 2606 OID 6932817)
-- Name: FICHE_PAYE FICHE_PAYE_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_SALARIE_fkey" FOREIGN KEY ("ID_SALARIE") REFERENCES "OpenConcerto42"."SALARIE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21906 (class 2606 OID 6932822)
-- Name: FICHE_PAYE FICHE_PAYE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21907 (class 2606 OID 6932827)
-- Name: FICHE_PAYE FICHE_PAYE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21908 (class 2606 OID 6932832)
-- Name: FICHE_PAYE FICHE_PAYE_ID_VARIABLE_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_VARIABLE_SALARIE_fkey" FOREIGN KEY ("ID_VARIABLE_SALARIE") REFERENCES "OpenConcerto42"."VARIABLE_SALARIE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21913 (class 2606 OID 6932837)
-- Name: FIN_CONTRAT FIN_CONTRAT_ID_FICHE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FIN_CONTRAT"
    ADD CONSTRAINT "FIN_CONTRAT_ID_FICHE_PAYE_fkey" FOREIGN KEY ("ID_FICHE_PAYE") REFERENCES "OpenConcerto42"."FICHE_PAYE"("ID");


--
-- TOC entry 21914 (class 2606 OID 6932842)
