-- Name: ARTICLE ARTICLE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20475 (class 2606 OID 6925852)
-- Name: ARTICLE ARTICLE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20476 (class 2606 OID 6925857)
-- Name: ARTICLE ARTICLE_ID_COUT_REVIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20477 (class 2606 OID 6925862)
-- Name: ARTICLE ARTICLE_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20478 (class 2606 OID 6925867)
-- Name: ARTICLE ARTICLE_ID_DEVISE_HA_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20479 (class 2606 OID 6925872)
-- Name: ARTICLE ARTICLE_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20480 (class 2606 OID 6925877)
-- Name: ARTICLE ARTICLE_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20481 (class 2606 OID 6925882)
-- Name: ARTICLE ARTICLE_ID_FABRICANT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20482 (class 2606 OID 6925887)
-- Name: ARTICLE ARTICLE_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20483 (class 2606 OID 6925892)
-- Name: ARTICLE ARTICLE_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20484 (class 2606 OID 6925897)
-- Name: ARTICLE ARTICLE_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20485 (class 2606 OID 6925902)
-- Name: ARTICLE ARTICLE_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20486 (class 2606 OID 6925907)
-- Name: ARTICLE ARTICLE_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20487 (class 2606 OID 6925912)
-- Name: ARTICLE ARTICLE_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ARTICLE"
    ADD CONSTRAINT "ARTICLE_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "Default"."MODE_VENTE_ARTICLE"("ID");


--
-- TOC entry 20488 (class 2606 OID 6925917)
-- Name: ARTICLE ARTICLE_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20489 (class 2606 OID 6925922)
-- Name: ARTICLE ARTICLE_ID_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20490 (class 2606 OID 6925927)
-- Name: ARTICLE ARTICLE_ID_TAXE_COMPLEMENTAIRE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20491 (class 2606 OID 6941326)
-- Name: ARTICLE ARTICLE_ID_TAXE_INTERFEL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20492 (class 2606 OID 6925932)
-- Name: ARTICLE ARTICLE_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20493 (class 2606 OID 6925937)
-- Name: ARTICLE ARTICLE_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20494 (class 2606 OID 6925942)
-- Name: ARTICLE ARTICLE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20495 (class 2606 OID 6925947)
-- Name: ARTICLE ARTICLE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20530 (class 2606 OID 6925952)
-- Name: ARTICLE_TARIF_FOURNISSEUR ARTICLE_TARIF_FOURNISSEUR_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20531 (class 2606 OID 6925957)
-- Name: ARTICLE_TARIF_FOURNISSEUR ARTICLE_TARIF_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20526 (class 2606 OID 6925962)
-- Name: ARTICLE_TARIF ARTICLE_TARIF_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20527 (class 2606 OID 6925967)
-- Name: ARTICLE_TARIF ARTICLE_TARIF_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20528 (class 2606 OID 6925972)
-- Name: ARTICLE_TARIF ARTICLE_TARIF_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20529 (class 2606 OID 6925977)
-- Name: ARTICLE_TARIF ARTICLE_TARIF_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20532 (class 2606 OID 6925982)
-- Name: ARTICLE_TARIF_PROMOTION ARTICLE_TARIF_PROMOTION_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20533 (class 2606 OID 6925987)
-- Name: ARTICLE_TARIF_PROMOTION ARTICLE_TARIF_PROMOTION_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20534 (class 2606 OID 6925992)
-- Name: ARTICLE_TARIF_PROMOTION ARTICLE_TARIF_PROMOTION_ID_TARIF_PROMOTION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20535 (class 2606 OID 6925997)
-- Name: ARTICLE_TARIF_PROMOTION ARTICLE_TARIF_PROMOTION_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20536 (class 2606 OID 6926002)
-- Name: ASSOCIATION_ANALYTIQUE ASSOCIATION_ANALYTIQUE_ID_ECRITURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20537 (class 2606 OID 6926007)
-- Name: ASSOCIATION_ANALYTIQUE ASSOCIATION_ANALYTIQUE_ID_POSTE_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20538 (class 2606 OID 6926012)
-- Name: ASSOCIATION_ANALYTIQUE ASSOCIATION_ANALYTIQUE_ID_SAISIE_KM_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20539 (class 2606 OID 6926017)
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE ASSOCIATION_COMPTE_ANALYTIQUE_ID_AXE_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ASSOCIATION_COMPTE_ANALYTIQUE"
    ADD CONSTRAINT "ASSOCIATION_COMPTE_ANALYTIQUE_ID_AXE_ANALYTIQUE_fkey" FOREIGN KEY ("ID_AXE_ANALYTIQUE") REFERENCES "Default"."AXE_ANALYTIQUE"("ID");


--
-- TOC entry 20540 (class 2606 OID 6926022)
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE ASSOCIATION_COMPTE_ANALYTIQUE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20541 (class 2606 OID 6926027)
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE ASSOCIATION_COMPTE_ANALYTIQUE_ID_REPARTITION_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ASSOCIATION_COMPTE_ANALYTIQUE"
    ADD CONSTRAINT "ASSOCIATION_COMPTE_ANALYTIQUE_ID_REPARTITION_ANALYTIQUE_fkey" FOREIGN KEY ("ID_REPARTITION_ANALYTIQUE") REFERENCES "Default"."REPARTITION_ANALYTIQUE"("ID");


--
-- TOC entry 20542 (class 2606 OID 6926032)
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE ASSOCIATION_COMPTE_ANALYTIQUE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20543 (class 2606 OID 6926037)
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE ASSOCIATION_COMPTE_ANALYTIQUE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20544 (class 2606 OID 6926042)
-- Name: ATTACHMENT ATTACHMENT_ID_PARENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20562 (class 2606 OID 6926047)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20563 (class 2606 OID 6926052)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20564 (class 2606 OID 6926057)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20565 (class 2606 OID 6926062)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_AVOIR_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20566 (class 2606 OID 6926067)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20567 (class 2606 OID 6926072)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20568 (class 2606 OID 6926077)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20569 (class 2606 OID 6926082)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20570 (class 2606 OID 6926087)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20571 (class 2606 OID 6926092)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20572 (class 2606 OID 6926097)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20573 (class 2606 OID 6926102)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20574 (class 2606 OID 6926107)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "Default"."MODE_VENTE_ARTICLE"("ID");


--
-- TOC entry 20575 (class 2606 OID 6926112)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20576 (class 2606 OID 6926117)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."AVOIR_CLIENT_ELEMENT"
    ADD CONSTRAINT "AVOIR_CLIENT_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "Default"."STYLE"("ID_STYLE");


--
-- TOC entry 20577 (class 2606 OID 6926122)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20578 (class 2606 OID 6926127)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20579 (class 2606 OID 6926132)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20580 (class 2606 OID 6926137)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20545 (class 2606 OID 6926142)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_ADRESSE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20546 (class 2606 OID 6926147)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20547 (class 2606 OID 6926152)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20548 (class 2606 OID 6926157)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_CLIENT_DEPARTEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20549 (class 2606 OID 6926162)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20550 (class 2606 OID 6926167)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20551 (class 2606 OID 6926172)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_COMPTE_PCE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20552 (class 2606 OID 6926177)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20553 (class 2606 OID 6926182)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20554 (class 2606 OID 6926187)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20555 (class 2606 OID 6926192)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20556 (class 2606 OID 6926197)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20557 (class 2606 OID 6926202)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20558 (class 2606 OID 6926207)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20559 (class 2606 OID 6926212)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20560 (class 2606 OID 6926217)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20561 (class 2606 OID 6926222)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20581 (class 2606 OID 6926227)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20582 (class 2606 OID 6926232)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."AVOIR_FOURNISSEUR"
    ADD CONSTRAINT "AVOIR_FOURNISSEUR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "Default"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 20583 (class 2606 OID 6926237)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20584 (class 2606 OID 6926242)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20585 (class 2606 OID 6926247)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20586 (class 2606 OID 6926252)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20587 (class 2606 OID 6926257)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20588 (class 2606 OID 6926262)
-- Name: AXE_ANALYTIQUE AXE_ANALYTIQUE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20589 (class 2606 OID 6926267)
-- Name: AXE_ANALYTIQUE AXE_ANALYTIQUE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20590 (class 2606 OID 6926272)
-- Name: AYANT_DROIT AYANT_DROIT_ID_AYANT_DROIT_TYPE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20591 (class 2606 OID 6926277)
-- Name: AYANT_DROIT AYANT_DROIT_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20592 (class 2606 OID 6941570)
-- Name: BANQUE BANQUE_ID_COMPTE_PCE_CB_ATTENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20593 (class 2606 OID 6941594)
-- Name: BANQUE BANQUE_ID_COMPTE_PCE_FRAIS_CB_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20594 (class 2606 OID 6926282)
-- Name: BANQUE BANQUE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20595 (class 2606 OID 6941575)
-- Name: BANQUE BANQUE_ID_JOURNAL_CB_ATTENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20596 (class 2606 OID 6926287)
-- Name: BANQUE BANQUE_ID_JOURNAL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20613 (class 2606 OID 6926292)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20614 (class 2606 OID 6926297)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20615 (class 2606 OID 6926302)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20616 (class 2606 OID 6926307)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_BON_DE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20617 (class 2606 OID 6926312)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_COMMANDE_CLIENT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20618 (class 2606 OID 6926317)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20619 (class 2606 OID 6926322)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20620 (class 2606 OID 6926327)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_DEVIS_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20621 (class 2606 OID 6926332)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20622 (class 2606 OID 6926337)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20623 (class 2606 OID 6926342)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20624 (class 2606 OID 6941155)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20625 (class 2606 OID 6926352)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20626 (class 2606 OID 6926357)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "Default"."MODE_VENTE_ARTICLE"("ID");


--
-- TOC entry 20627 (class 2606 OID 6926362)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20628 (class 2606 OID 6926367)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_SAISIE_VENTE_FACTURE_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_SAISIE_VENTE_FACTURE_ELEMENT_fkey" FOREIGN KEY ("ID_SAISIE_VENTE_FACTURE_ELEMENT") REFERENCES "Default"."SAISIE_VENTE_FACTURE_ELEMENT"("ID");


--
-- TOC entry 20629 (class 2606 OID 6926372)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."BON_DE_LIVRAISON_ELEMENT"
    ADD CONSTRAINT "BON_DE_LIVRAISON_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "Default"."STYLE"("ID_STYLE");


--
-- TOC entry 20630 (class 2606 OID 6926377)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20631 (class 2606 OID 6926382)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20632 (class 2606 OID 6926387)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20633 (class 2606 OID 6926392)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20597 (class 2606 OID 6926397)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_ADRESSE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20598 (class 2606 OID 6926402)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20599 (class 2606 OID 6926407)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20600 (class 2606 OID 6926412)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_CLIENT_DEPARTEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20601 (class 2606 OID 6926417)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20602 (class 2606 OID 6926422)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20603 (class 2606 OID 6926427)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20604 (class 2606 OID 6926432)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20605 (class 2606 OID 6926437)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_LOT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20606 (class 2606 OID 6926442)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20607 (class 2606 OID 6926447)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20608 (class 2606 OID 6926452)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20609 (class 2606 OID 6926457)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_TAXE_FRAIS_DOCUMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20610 (class 2606 OID 6926462)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20611 (class 2606 OID 6926467)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20612 (class 2606 OID 6926472)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20641 (class 2606 OID 6926477)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20642 (class 2606 OID 6926482)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20643 (class 2606 OID 6926487)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20644 (class 2606 OID 6926492)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_BON_RECEPTION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20645 (class 2606 OID 6926497)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_CODE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20646 (class 2606 OID 6926502)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_COMMANDE_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20647 (class 2606 OID 6926507)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20648 (class 2606 OID 6926512)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20649 (class 2606 OID 6926517)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20650 (class 2606 OID 6926522)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20651 (class 2606 OID 6926527)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20652 (class 2606 OID 6926532)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_LOT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20653 (class 2606 OID 6926537)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20654 (class 2606 OID 6926542)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20655 (class 2606 OID 6926547)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20656 (class 2606 OID 6926552)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "Default"."MODE_VENTE_ARTICLE"("ID");


--
-- TOC entry 20657 (class 2606 OID 6926557)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."BON_RECEPTION_ELEMENT"
    ADD CONSTRAINT "BON_RECEPTION_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "Default"."STYLE"("ID_STYLE");


--
-- TOC entry 20658 (class 2606 OID 6926562)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20659 (class 2606 OID 6926567)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20660 (class 2606 OID 6926572)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20661 (class 2606 OID 6926577)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20634 (class 2606 OID 6926582)
-- Name: BON_RECEPTION BON_RECEPTION_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20635 (class 2606 OID 6926587)
-- Name: BON_RECEPTION BON_RECEPTION_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20636 (class 2606 OID 6926592)
-- Name: BON_RECEPTION BON_RECEPTION_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."BON_RECEPTION"
    ADD CONSTRAINT "BON_RECEPTION_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "Default"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 20637 (class 2606 OID 6926597)
-- Name: BON_RECEPTION BON_RECEPTION_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20638 (class 2606 OID 6926602)
-- Name: BON_RECEPTION BON_RECEPTION_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20639 (class 2606 OID 6926607)
-- Name: BON_RECEPTION BON_RECEPTION_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20640 (class 2606 OID 6926612)
-- Name: BON_RECEPTION BON_RECEPTION_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20663 (class 2606 OID 6926617)
-- Name: CAISSE_CLOTURE CAISSE_CLOTURE_ID_ENTREE_JOURNAL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20664 (class 2606 OID 6926622)
-- Name: CAISSE_CLOTURE CAISSE_CLOTURE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20665 (class 2606 OID 6926627)
-- Name: CAISSE_CLOTURE CAISSE_CLOTURE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20662 (class 2606 OID 6926632)
-- Name: CAISSE CAISSE_ID_DERNIERE_CLOTURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20666 (class 2606 OID 6926637)
-- Name: CAISSE_JOURNAL CAISSE_JOURNAL_ID_CAISSE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20667 (class 2606 OID 6926642)
-- Name: CAISSE_JOURNAL CAISSE_JOURNAL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20668 (class 2606 OID 6926647)
-- Name: CAISSE_JOURNAL CAISSE_JOURNAL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20669 (class 2606 OID 6926652)
-- Name: CAISSE_JOURNAL CAISSE_JOURNAL_ID_USER_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20670 (class 2606 OID 6926657)
-- Name: CALENDAR_ITEM CALENDAR_ITEM_ID_CALENDAR_ITEM_GROUP_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20671 (class 2606 OID 6926662)
-- Name: CATEGORIE_COMPTABLE CATEGORIE_COMPTABLE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20672 (class 2606 OID 6926667)
-- Name: CATEGORIE_COMPTABLE CATEGORIE_COMPTABLE_ID_COMPTE_PCE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20673 (class 2606 OID 6926672)
-- Name: CATEGORIE_COMPTABLE CATEGORIE_COMPTABLE_ID_TAXE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20674 (class 2606 OID 6926677)
-- Name: CATEGORIE_COMPTABLE CATEGORIE_COMPTABLE_ID_TAXE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20675 (class 2606 OID 6926682)
-- Name: CHEQUE_AVOIR_CLIENT CHEQUE_AVOIR_CLIENT_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20676 (class 2606 OID 6926687)
-- Name: CHEQUE_AVOIR_CLIENT CHEQUE_AVOIR_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20677 (class 2606 OID 6926692)
-- Name: CHEQUE_AVOIR_CLIENT CHEQUE_AVOIR_CLIENT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20678 (class 2606 OID 6926697)
-- Name: CHEQUE_AVOIR_CLIENT CHEQUE_AVOIR_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20679 (class 2606 OID 6926702)
-- Name: CHEQUE_AVOIR_CLIENT CHEQUE_AVOIR_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20680 (class 2606 OID 6926707)
-- Name: CHEQUE_A_ENCAISSER CHEQUE_A_ENCAISSER_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20681 (class 2606 OID 6926712)
-- Name: CHEQUE_A_ENCAISSER CHEQUE_A_ENCAISSER_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20682 (class 2606 OID 6926717)
-- Name: CHEQUE_A_ENCAISSER CHEQUE_A_ENCAISSER_ID_COMPTE_PCE_TIERS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20683 (class 2606 OID 6926722)
-- Name: CHEQUE_A_ENCAISSER CHEQUE_A_ENCAISSER_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20684 (class 2606 OID 6926727)
-- Name: CHEQUE_A_ENCAISSER CHEQUE_A_ENCAISSER_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20685 (class 2606 OID 6926732)
-- Name: CHEQUE_A_ENCAISSER CHEQUE_A_ENCAISSER_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20686 (class 2606 OID 6926737)
-- Name: CHEQUE_FOURNISSEUR CHEQUE_FOURNISSEUR_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20687 (class 2606 OID 6926742)
-- Name: CHEQUE_FOURNISSEUR CHEQUE_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CHEQUE_FOURNISSEUR"
    ADD CONSTRAINT "CHEQUE_FOURNISSEUR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "Default"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 20688 (class 2606 OID 6926747)
-- Name: CHEQUE_FOURNISSEUR CHEQUE_FOURNISSEUR_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20689 (class 2606 OID 6926752)
-- Name: CHEQUE_FOURNISSEUR CHEQUE_FOURNISSEUR_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20690 (class 2606 OID 6926757)
-- Name: CHEQUE_FOURNISSEUR CHEQUE_FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20691 (class 2606 OID 6926762)
-- Name: CHIFFRAGE_COMMANDE_CLIENT CHIFFRAGE_COMMANDE_CLIENT_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20692 (class 2606 OID 6926767)
-- Name: CHIFFRAGE_COMMANDE_CLIENT CHIFFRAGE_COMMANDE_CLIENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20693 (class 2606 OID 6926772)
-- Name: CHIFFRAGE_COMMANDE_CLIENT CHIFFRAGE_COMMANDE_CLIENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20694 (class 2606 OID 6926777)
-- Name: CLASSEMENT_CONVENTIONNEL CLASSEMENT_CONVENTIONNEL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20695 (class 2606 OID 6926782)
-- Name: CLASSEMENT_CONVENTIONNEL CLASSEMENT_CONVENTIONNEL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20696 (class 2606 OID 6926787)
-- Name: CLASSE_COMPTE CLASSE_COMPTE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20697 (class 2606 OID 6926792)
-- Name: CLASSE_COMPTE CLASSE_COMPTE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20715 (class 2606 OID 6926797)
-- Name: CLIENT_DEPARTEMENT CLIENT_DEPARTEMENT_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20716 (class 2606 OID 6926802)
-- Name: CLIENT_DEPARTEMENT CLIENT_DEPARTEMENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20698 (class 2606 OID 6926807)
-- Name: CLIENT CLIENT_ID_ADRESSE_F_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_ADRESSE_F_fkey" FOREIGN KEY ("ID_ADRESSE_F") REFERENCES "Default"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 20699 (class 2606 OID 6926812)
-- Name: CLIENT CLIENT_ID_ADRESSE_L_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CLIENT"
    ADD CONSTRAINT "CLIENT_ID_ADRESSE_L_fkey" FOREIGN KEY ("ID_ADRESSE_L") REFERENCES "Default"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 20700 (class 2606 OID 6926817)
-- Name: CLIENT CLIENT_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20701 (class 2606 OID 6926822)
-- Name: CLIENT CLIENT_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20702 (class 2606 OID 6926827)
-- Name: CLIENT CLIENT_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20703 (class 2606 OID 6926832)
-- Name: CLIENT CLIENT_ID_COMPTE_PCE_PRODUIT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20704 (class 2606 OID 6926837)
-- Name: CLIENT CLIENT_ID_COMPTE_PCE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20705 (class 2606 OID 6926842)
-- Name: CLIENT CLIENT_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20706 (class 2606 OID 6926847)
-- Name: CLIENT CLIENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20707 (class 2606 OID 6926852)
-- Name: CLIENT CLIENT_ID_FRAIS_DOCUMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20708 (class 2606 OID 6926857)
-- Name: CLIENT CLIENT_ID_LANGUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20709 (class 2606 OID 6926862)
-- Name: CLIENT CLIENT_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20710 (class 2606 OID 6926867)
-- Name: CLIENT CLIENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20711 (class 2606 OID 6926872)
-- Name: CLIENT CLIENT_ID_SEPA_MANDATE_DEFAULT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20712 (class 2606 OID 6926877)
-- Name: CLIENT CLIENT_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20713 (class 2606 OID 6926882)
-- Name: CLIENT CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20714 (class 2606 OID 6926887)
-- Name: CLIENT CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20717 (class 2606 OID 6926892)
-- Name: CODE_CARACT_ACTIVITE CODE_CARACT_ACTIVITE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20718 (class 2606 OID 6926897)
-- Name: CODE_CARACT_ACTIVITE CODE_CARACT_ACTIVITE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20719 (class 2606 OID 6926902)
-- Name: CODE_CONTRAT_TRAVAIL CODE_CONTRAT_TRAVAIL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20720 (class 2606 OID 6926907)
-- Name: CODE_CONTRAT_TRAVAIL CODE_CONTRAT_TRAVAIL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20721 (class 2606 OID 6926912)
-- Name: CODE_DROIT_CONTRAT CODE_DROIT_CONTRAT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20722 (class 2606 OID 6926917)
-- Name: CODE_DROIT_CONTRAT CODE_DROIT_CONTRAT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20723 (class 2606 OID 6926922)
-- Name: CODE_EMPLOI CODE_EMPLOI_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20724 (class 2606 OID 6926927)
-- Name: CODE_EMPLOI CODE_EMPLOI_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20725 (class 2606 OID 6926932)
-- Name: CODE_FOURNISSEUR CODE_FOURNISSEUR_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20726 (class 2606 OID 6926937)
-- Name: CODE_FOURNISSEUR CODE_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20727 (class 2606 OID 6926942)
-- Name: CODE_PENIBILITE_CONTRAT_SALARIE CODE_PENIBILITE_CONTRAT_SALARIE_ID_CODE_PENIBILITE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20728 (class 2606 OID 6926947)
-- Name: CODE_PENIBILITE_CONTRAT_SALARIE CODE_PENIBILITE_CONTRAT_SALARIE_ID_INFOS_SALARIE_PAYE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20729 (class 2606 OID 6926952)
-- Name: CODE_REGIME CODE_REGIME_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20730 (class 2606 OID 6926957)
-- Name: CODE_REGIME CODE_REGIME_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20731 (class 2606 OID 6926962)
-- Name: CODE_STATUT_CATEGORIEL CODE_STATUT_CATEGORIEL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20732 (class 2606 OID 6926967)
-- Name: CODE_STATUT_CATEGORIEL CODE_STATUT_CATEGORIEL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20733 (class 2606 OID 6926972)
-- Name: CODE_STATUT_PROF CODE_STATUT_PROF_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20734 (class 2606 OID 6926977)
-- Name: CODE_STATUT_PROF CODE_STATUT_PROF_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20758 (class 2606 OID 6926982)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20759 (class 2606 OID 6926987)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20760 (class 2606 OID 6926992)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20761 (class 2606 OID 6926997)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20762 (class 2606 OID 6927002)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20763 (class 2606 OID 6927007)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20764 (class 2606 OID 6927012)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20765 (class 2606 OID 6927017)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20766 (class 2606 OID 6927022)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20767 (class 2606 OID 6927027)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20768 (class 2606 OID 6927032)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20769 (class 2606 OID 6927037)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "Default"."MODE_VENTE_ARTICLE"("ID");


--
-- TOC entry 20770 (class 2606 OID 6927042)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_PAYS_fkey" FOREIGN KEY ("ID_PAYS") REFERENCES "Default"."PAYS"("ID");


--
-- TOC entry 20771 (class 2606 OID 6927047)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "Default"."STYLE"("ID_STYLE");


--
-- TOC entry 20772 (class 2606 OID 6927052)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20773 (class 2606 OID 6927057)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_CLIENT_ELEMENT"
    ADD CONSTRAINT "COMMANDE_CLIENT_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "Default"."UNITE_VENTE"("ID");


--
-- TOC entry 20774 (class 2606 OID 6927062)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20775 (class 2606 OID 6927067)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20744 (class 2606 OID 6927072)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_ADRESSE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20745 (class 2606 OID 6927077)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20746 (class 2606 OID 6927082)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20747 (class 2606 OID 6927087)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_CLIENT_DEPARTEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20748 (class 2606 OID 6927092)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20749 (class 2606 OID 6927097)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20750 (class 2606 OID 6927102)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20751 (class 2606 OID 6927107)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_DEVIS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20752 (class 2606 OID 6927112)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20753 (class 2606 OID 6927117)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20754 (class 2606 OID 6927122)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_TAXE_FRAIS_DOCUMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20755 (class 2606 OID 6927127)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20756 (class 2606 OID 6927132)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20757 (class 2606 OID 6927137)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20776 (class 2606 OID 6927142)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "Default"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 20777 (class 2606 OID 6927147)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_TAILLE") REFERENCES "Default"."ARTICLE_DECLINAISON_TAILLE"("ID");


--
-- TOC entry 20778 (class 2606 OID 6927152)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20779 (class 2606 OID 6927157)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_CODE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_CODE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_CODE_FOURNISSEUR") REFERENCES "Default"."CODE_FOURNISSEUR"("ID");


--
-- TOC entry 20780 (class 2606 OID 6927162)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20781 (class 2606 OID 6927167)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey" FOREIGN KEY ("ID_DEMANDE_ACHAT_ELEMENT") REFERENCES "Default"."DEMANDE_ACHAT_ELEMENT"("ID");


--
-- TOC entry 20782 (class 2606 OID 6927172)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20783 (class 2606 OID 6927177)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20784 (class 2606 OID 6927182)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_ECO_CONTRIBUTION_fkey" FOREIGN KEY ("ID_ECO_CONTRIBUTION") REFERENCES "Common"."ECO_CONTRIBUTION"("ID");


--
-- TOC entry 20785 (class 2606 OID 6927187)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20786 (class 2606 OID 6927192)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20787 (class 2606 OID 6927197)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20788 (class 2606 OID 6927202)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20789 (class 2606 OID 6927207)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "Default"."MODE_VENTE_ARTICLE"("ID");


--
-- TOC entry 20790 (class 2606 OID 6927212)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "Default"."STYLE"("ID_STYLE");


--
-- TOC entry 20791 (class 2606 OID 6927217)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20792 (class 2606 OID 6927222)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE_ELEMENT"
    ADD CONSTRAINT "COMMANDE_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "Default"."UNITE_VENTE"("ID");


--
-- TOC entry 20793 (class 2606 OID 6927227)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20794 (class 2606 OID 6927232)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20735 (class 2606 OID 6927237)
-- Name: COMMANDE COMMANDE_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20736 (class 2606 OID 6927242)
-- Name: COMMANDE COMMANDE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20737 (class 2606 OID 6927247)
-- Name: COMMANDE COMMANDE_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20738 (class 2606 OID 6927252)
-- Name: COMMANDE COMMANDE_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20739 (class 2606 OID 6927257)
-- Name: COMMANDE COMMANDE_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMMANDE"
    ADD CONSTRAINT "COMMANDE_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "Default"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 20740 (class 2606 OID 6927262)
-- Name: COMMANDE COMMANDE_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20741 (class 2606 OID 6927267)
-- Name: COMMANDE COMMANDE_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20742 (class 2606 OID 6927272)
-- Name: COMMANDE COMMANDE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20743 (class 2606 OID 6927277)
-- Name: COMMANDE COMMANDE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20795 (class 2606 OID 6927282)
-- Name: COMMERCIAL COMMERCIAL_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20796 (class 2606 OID 6927287)
-- Name: COMMERCIAL COMMERCIAL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20797 (class 2606 OID 6927292)
-- Name: COMMERCIAL COMMERCIAL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20798 (class 2606 OID 6927297)
-- Name: COMMERCIAL COMMERCIAL_ID_USER_COMMON_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20799 (class 2606 OID 6927302)
-- Name: COMPTE_CLIENT_TRANSACTION COMPTE_CLIENT_TRANSACTION_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20800 (class 2606 OID 6927307)
-- Name: COMPTE_CLIENT_TRANSACTION COMPTE_CLIENT_TRANSACTION_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20801 (class 2606 OID 6927312)
-- Name: COMPTE_CLIENT_TRANSACTION COMPTE_CLIENT_TRANSACTION_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20802 (class 2606 OID 6927317)
-- Name: COMPTE_PCE COMPTE_PCE_ID_NATURE_COMPTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMPTE_PCE"
    ADD CONSTRAINT "COMPTE_PCE_ID_NATURE_COMPTE_fkey" FOREIGN KEY ("ID_NATURE_COMPTE") REFERENCES "Default"."NATURE_COMPTE"("ID");


--
-- TOC entry 20803 (class 2606 OID 6927322)
-- Name: COMPTE_PCE COMPTE_PCE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20804 (class 2606 OID 6927327)
-- Name: COMPTE_PCE COMPTE_PCE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20805 (class 2606 OID 6927332)
-- Name: COMPTE_PCG COMPTE_PCG_ID_NATURE_COMPTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMPTE_PCG"
    ADD CONSTRAINT "COMPTE_PCG_ID_NATURE_COMPTE_fkey" FOREIGN KEY ("ID_NATURE_COMPTE") REFERENCES "Default"."NATURE_COMPTE"("ID");


--
-- TOC entry 20806 (class 2606 OID 6927337)
-- Name: COMPTE_PCG COMPTE_PCG_ID_TYPE_COMPTE_PCG_AB_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMPTE_PCG"
    ADD CONSTRAINT "COMPTE_PCG_ID_TYPE_COMPTE_PCG_AB_fkey" FOREIGN KEY ("ID_TYPE_COMPTE_PCG_AB") REFERENCES "Default"."TYPE_COMPTE_PCG"("ID");


--
-- TOC entry 20807 (class 2606 OID 6927342)
-- Name: COMPTE_PCG COMPTE_PCG_ID_TYPE_COMPTE_PCG_BASE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMPTE_PCG"
    ADD CONSTRAINT "COMPTE_PCG_ID_TYPE_COMPTE_PCG_BASE_fkey" FOREIGN KEY ("ID_TYPE_COMPTE_PCG_BASE") REFERENCES "Default"."TYPE_COMPTE_PCG"("ID");


--
-- TOC entry 20808 (class 2606 OID 6927347)
-- Name: COMPTE_PCG COMPTE_PCG_ID_TYPE_COMPTE_PCG_DEV_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COMPTE_PCG"
    ADD CONSTRAINT "COMPTE_PCG_ID_TYPE_COMPTE_PCG_DEV_fkey" FOREIGN KEY ("ID_TYPE_COMPTE_PCG_DEV") REFERENCES "Default"."TYPE_COMPTE_PCG"("ID");


--
-- TOC entry 20809 (class 2606 OID 6927352)
-- Name: COMPTE_PCG COMPTE_PCG_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20810 (class 2606 OID 6927357)
-- Name: COMPTE_PCG COMPTE_PCG_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20815 (class 2606 OID 6927362)
-- Name: CONTACT_ADMINISTRATIF CONTACT_ADMINISTRATIF_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20816 (class 2606 OID 6927367)
-- Name: CONTACT_FOURNISSEUR CONTACT_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTACT_FOURNISSEUR"
    ADD CONSTRAINT "CONTACT_FOURNISSEUR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "Default"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 20817 (class 2606 OID 6927372)
-- Name: CONTACT_FOURNISSEUR CONTACT_FOURNISSEUR_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20811 (class 2606 OID 6927377)
-- Name: CONTACT CONTACT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20812 (class 2606 OID 6927382)
-- Name: CONTACT CONTACT_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20813 (class 2606 OID 6927387)
-- Name: CONTACT CONTACT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20814 (class 2606 OID 6927392)
-- Name: CONTACT CONTACT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20818 (class 2606 OID 6927397)
-- Name: CONTACT_SALARIE CONTACT_SALARIE_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTACT_SALARIE"
    ADD CONSTRAINT "CONTACT_SALARIE_ID_SALARIE_fkey" FOREIGN KEY ("ID_SALARIE") REFERENCES "Default"."SALARIE"("ID");


--
-- TOC entry 20819 (class 2606 OID 6927402)
-- Name: CONTACT_SALARIE CONTACT_SALARIE_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20820 (class 2606 OID 6927407)
-- Name: CONTRAT_PREVOYANCE_AYANT_DROIT CONTRAT_PREVOYANCE_AYANT_DROIT_ID_AYANT_DROIT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTRAT_PREVOYANCE_AYANT_DROIT"
    ADD CONSTRAINT "CONTRAT_PREVOYANCE_AYANT_DROIT_ID_AYANT_DROIT_fkey" FOREIGN KEY ("ID_AYANT_DROIT") REFERENCES "Default"."AYANT_DROIT"("ID");


--
-- TOC entry 20821 (class 2606 OID 6927412)
-- Name: CONTRAT_PREVOYANCE_AYANT_DROIT CONTRAT_PREVOYANCE_AYANT_DROIT_ID_CONTRAT_PREVOYANCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTRAT_PREVOYANCE_AYANT_DROIT"
    ADD CONSTRAINT "CONTRAT_PREVOYANCE_AYANT_DROIT_ID_CONTRAT_PREVOYANCE_fkey" FOREIGN KEY ("ID_CONTRAT_PREVOYANCE") REFERENCES "Default"."CONTRAT_PREVOYANCE"("ID");


--
-- TOC entry 20822 (class 2606 OID 6927417)
-- Name: CONTRAT_PREVOYANCE_CONTRAT_SALARIE CONTRAT_PREVOYANCE_CONTRAT_SALARIE_ID_CONTRAT_PREVOYANCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTRAT_PREVOYANCE_CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_PREVOYANCE_CONTRAT_SALARIE_ID_CONTRAT_PREVOYANCE_fkey" FOREIGN KEY ("ID_CONTRAT_PREVOYANCE") REFERENCES "Default"."CONTRAT_PREVOYANCE"("ID");


--
-- TOC entry 20823 (class 2606 OID 6927422)
-- Name: CONTRAT_PREVOYANCE_CONTRAT_SALARIE CONTRAT_PREVOYANCE_CONTRAT_SALARIE_ID_INFOS_SALARIE_PAYE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20824 (class 2606 OID 6927427)
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE CONTRAT_PREVOYANCE_RUBRIQUE_ID_CONTRAT_PREVOYANCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTRAT_PREVOYANCE_RUBRIQUE"
    ADD CONSTRAINT "CONTRAT_PREVOYANCE_RUBRIQUE_ID_CONTRAT_PREVOYANCE_fkey" FOREIGN KEY ("ID_CONTRAT_PREVOYANCE") REFERENCES "Default"."CONTRAT_PREVOYANCE"("ID");


--
-- TOC entry 20825 (class 2606 OID 6927432)
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE CONTRAT_PREVOYANCE_RUBRIQUE_ID_RUBRIQUE_COTISATION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTRAT_PREVOYANCE_RUBRIQUE"
    ADD CONSTRAINT "CONTRAT_PREVOYANCE_RUBRIQUE_ID_RUBRIQUE_COTISATION_fkey" FOREIGN KEY ("ID_RUBRIQUE_COTISATION") REFERENCES "Common"."RUBRIQUE_COTISATION"("ID");


--
-- TOC entry 20826 (class 2606 OID 6927437)
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE_NET CONTRAT_PREVOYANCE_RUBRIQUE_NET_ID_CONTRAT_PREVOYANCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTRAT_PREVOYANCE_RUBRIQUE_NET"
    ADD CONSTRAINT "CONTRAT_PREVOYANCE_RUBRIQUE_NET_ID_CONTRAT_PREVOYANCE_fkey" FOREIGN KEY ("ID_CONTRAT_PREVOYANCE") REFERENCES "Default"."CONTRAT_PREVOYANCE"("ID");


--
-- TOC entry 20827 (class 2606 OID 6927442)
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE_NET CONTRAT_PREVOYANCE_RUBRIQUE_NET_ID_RUBRIQUE_NET_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20828 (class 2606 OID 6927447)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_AMENAGEMENT_PARTIEL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20829 (class 2606 OID 6927452)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_CAISSE_CONGES_PAYES_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20830 (class 2606 OID 6927457)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_CARACT_ACTIVITE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_CARACT_ACTIVITE_fkey" FOREIGN KEY ("ID_CODE_CARACT_ACTIVITE") REFERENCES "Default"."CODE_CARACT_ACTIVITE"("ID");


--
-- TOC entry 20831 (class 2606 OID 6927462)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_CONTRAT_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_CONTRAT_TRAVAIL_fkey" FOREIGN KEY ("ID_CODE_CONTRAT_TRAVAIL") REFERENCES "Default"."CODE_CONTRAT_TRAVAIL"("ID");


--
-- TOC entry 20832 (class 2606 OID 6927467)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_DROIT_CONTRAT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_DROIT_CONTRAT_fkey" FOREIGN KEY ("ID_CODE_DROIT_CONTRAT") REFERENCES "Default"."CODE_DROIT_CONTRAT"("ID");


--
-- TOC entry 20833 (class 2606 OID 6927472)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_EMPLOI_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_EMPLOI_fkey" FOREIGN KEY ("ID_CODE_EMPLOI") REFERENCES "Default"."CODE_EMPLOI"("ID");


--
-- TOC entry 20834 (class 2606 OID 6927477)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_STATUT_CATEGORIEL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_STATUT_CATEGORIEL_fkey" FOREIGN KEY ("ID_CODE_STATUT_CATEGORIEL") REFERENCES "Default"."CODE_STATUT_CATEGORIEL"("ID");


--
-- TOC entry 20835 (class 2606 OID 6927482)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_STATUT_CAT_CONV_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_STATUT_CAT_CONV_fkey" FOREIGN KEY ("ID_CODE_STATUT_CAT_CONV") REFERENCES "Default"."CODE_STATUT_CAT_CONV"("ID");


--
-- TOC entry 20836 (class 2606 OID 6927487)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_STATUT_PROF_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_STATUT_PROF_fkey" FOREIGN KEY ("ID_CODE_STATUT_PROF") REFERENCES "Default"."CODE_STATUT_PROF"("ID");


--
-- TOC entry 20837 (class 2606 OID 6927492)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_SUSPENSION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_CODE_SUSPENSION_fkey" FOREIGN KEY ("ID_CODE_SUSPENSION") REFERENCES "Common"."CODE_SUSPENSION"("ID");


--
-- TOC entry 20838 (class 2606 OID 6927497)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CONTRAT_DETACHE_EXPATRIE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20839 (class 2606 OID 6927502)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CONTRAT_DISPOSITIF_POLITIQUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20840 (class 2606 OID 6927507)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CONTRAT_MODALITE_TEMPS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20841 (class 2606 OID 6927512)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CONTRAT_MOTIF_RECOURS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20842 (class 2606 OID 6927517)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CONTRAT_REGIME_MALADIE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20843 (class 2606 OID 6927522)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CONTRAT_REGIME_VIEILLESSE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 20844 (class 2606 OID 6927527)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_DIPLOME_PREPARE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."CONTRAT_SALARIE"
    ADD CONSTRAINT "CONTRAT_SALARIE_ID_DIPLOME_PREPARE_fkey" FOREIGN KEY ("ID_DIPLOME_PREPARE") REFERENCES "Common"."DIPLOME_PREPARE"("ID");


--
-- TOC entry 20845 (class 2606 OID 6927532)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20846 (class 2606 OID 6927537)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20847 (class 2606 OID 6927542)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20848 (class 2606 OID 6927547)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20849 (class 2606 OID 6941283)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20850 (class 2606 OID 6927552)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_MODELE_COURRIER_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."COURRIER_CLIENT"
    ADD CONSTRAINT "COURRIER_CLIENT_ID_MODELE_COURRIER_CLIENT_fkey" FOREIGN KEY ("ID_MODELE_COURRIER_CLIENT") REFERENCES "Default"."MODELE_COURRIER_CLIENT"("ID");


--
-- TOC entry 20851 (class 2606 OID 6927557)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20852 (class 2606 OID 6927562)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20853 (class 2606 OID 6927567)
-- Name: CUMULS_CONGES CUMULS_CONGES_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20854 (class 2606 OID 6927572)
-- Name: CUMULS_CONGES CUMULS_CONGES_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20855 (class 2606 OID 6927577)
-- Name: CUMULS_PAYE CUMULS_PAYE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20856 (class 2606 OID 6927582)
-- Name: CUMULS_PAYE CUMULS_PAYE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20857 (class 2606 OID 6927587)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_ARRET_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DECLARATION_DSN"
    ADD CONSTRAINT "DECLARATION_DSN_ID_ARRET_TRAVAIL_fkey" FOREIGN KEY ("ID_ARRET_TRAVAIL") REFERENCES "Default"."ARRET_TRAVAIL"("ID");


--
-- TOC entry 20858 (class 2606 OID 6927592)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_DECLARATION_DSN_ANNULATION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DECLARATION_DSN"
    ADD CONSTRAINT "DECLARATION_DSN_ID_DECLARATION_DSN_ANNULATION_fkey" FOREIGN KEY ("ID_DECLARATION_DSN_ANNULATION") REFERENCES "Default"."DECLARATION_DSN"("ID");


--
-- TOC entry 20859 (class 2606 OID 6927597)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_DSN_NATURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DECLARATION_DSN"
    ADD CONSTRAINT "DECLARATION_DSN_ID_DSN_NATURE_fkey" FOREIGN KEY ("ID_DSN_NATURE") REFERENCES "Common"."DSN_NATURE"("ID");


--
-- TOC entry 20860 (class 2606 OID 6927602)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_FIN_CONTRAT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DECLARATION_DSN"
    ADD CONSTRAINT "DECLARATION_DSN_ID_FIN_CONTRAT_fkey" FOREIGN KEY ("ID_FIN_CONTRAT") REFERENCES "Default"."FIN_CONTRAT"("ID");


--
-- TOC entry 20861 (class 2606 OID 6927607)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_MOIS_REGUL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DECLARATION_DSN"
    ADD CONSTRAINT "DECLARATION_DSN_ID_MOIS_REGUL_fkey" FOREIGN KEY ("ID_MOIS_REGUL") REFERENCES "Default"."MOIS"("ID");


--
-- TOC entry 20862 (class 2606 OID 6927612)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_MOIS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DECLARATION_DSN"
    ADD CONSTRAINT "DECLARATION_DSN_ID_MOIS_fkey" FOREIGN KEY ("ID_MOIS") REFERENCES "Default"."MOIS"("ID");


--
-- TOC entry 20863 (class 2606 OID 6927617)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_REPRISE_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DECLARATION_DSN"
    ADD CONSTRAINT "DECLARATION_DSN_ID_REPRISE_TRAVAIL_fkey" FOREIGN KEY ("ID_REPRISE_TRAVAIL") REFERENCES "Default"."REPRISE_TRAVAIL"("ID");


--
-- TOC entry 20864 (class 2606 OID 6927622)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20865 (class 2606 OID 6927627)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_BON_RECEPTION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20866 (class 2606 OID 6927632)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20867 (class 2606 OID 6927637)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_ETAT_DEMANDE_ACHAT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_ACHAT_ELEMENT"
    ADD CONSTRAINT "DEMANDE_ACHAT_ELEMENT_ID_ETAT_DEMANDE_ACHAT_ELEMENT_fkey" FOREIGN KEY ("ID_ETAT_DEMANDE_ACHAT_ELEMENT") REFERENCES "Default"."ETAT_DEMANDE_ACHAT_ELEMENT"("ID");


--
-- TOC entry 20868 (class 2606 OID 6927642)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_FABRICANT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_ACHAT_ELEMENT"
    ADD CONSTRAINT "DEMANDE_ACHAT_ELEMENT_ID_FABRICANT_fkey" FOREIGN KEY ("ID_FABRICANT") REFERENCES "Default"."FABRICANT"("ID");


--
-- TOC entry 20869 (class 2606 OID 6927647)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20870 (class 2606 OID 6927652)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_ACHAT_ELEMENT"
    ADD CONSTRAINT "DEMANDE_ACHAT_ELEMENT_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "Default"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 20871 (class 2606 OID 6927657)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_ACHAT_ELEMENT"
    ADD CONSTRAINT "DEMANDE_ACHAT_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "Default"."UNITE_VENTE"("ID");


--
-- TOC entry 20875 (class 2606 OID 6927662)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "Default"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 20876 (class 2606 OID 6927667)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_TAILLE") REFERENCES "Default"."ARTICLE_DECLINAISON_TAILLE"("ID");


--
-- TOC entry 20877 (class 2606 OID 6927672)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20878 (class 2606 OID 6927677)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey" FOREIGN KEY ("ID_DEMANDE_ACHAT_ELEMENT") REFERENCES "Default"."DEMANDE_ACHAT_ELEMENT"("ID");


--
-- TOC entry 20879 (class 2606 OID 6927682)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_DEMANDE_PRIX_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_DEMANDE_PRIX_fkey" FOREIGN KEY ("ID_DEMANDE_PRIX") REFERENCES "Default"."DEMANDE_PRIX"("ID");


--
-- TOC entry 20880 (class 2606 OID 6927687)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20881 (class 2606 OID 6927692)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20882 (class 2606 OID 6927697)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_ECO_CONTRIBUTION_fkey" FOREIGN KEY ("ID_ECO_CONTRIBUTION") REFERENCES "Common"."ECO_CONTRIBUTION"("ID");


--
-- TOC entry 20883 (class 2606 OID 6927702)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20884 (class 2606 OID 6927707)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20885 (class 2606 OID 6927712)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20886 (class 2606 OID 6927717)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20887 (class 2606 OID 6927722)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "Default"."MODE_VENTE_ARTICLE"("ID");


--
-- TOC entry 20888 (class 2606 OID 6927727)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "Default"."STYLE"("ID_STYLE");


--
-- TOC entry 20889 (class 2606 OID 6927732)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20890 (class 2606 OID 6927737)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_PRIX_ELEMENT"
    ADD CONSTRAINT "DEMANDE_PRIX_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "Default"."UNITE_VENTE"("ID");


--
-- TOC entry 20872 (class 2606 OID 6927742)
-- Name: DEMANDE_PRIX DEMANDE_PRIX_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20873 (class 2606 OID 6927747)
-- Name: DEMANDE_PRIX DEMANDE_PRIX_ID_ETAT_DEMANDE_PRIX_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_PRIX"
    ADD CONSTRAINT "DEMANDE_PRIX_ID_ETAT_DEMANDE_PRIX_fkey" FOREIGN KEY ("ID_ETAT_DEMANDE_PRIX") REFERENCES "Default"."ETAT_DEMANDE_PRIX"("ID");


--
-- TOC entry 20874 (class 2606 OID 6927752)
-- Name: DEMANDE_PRIX DEMANDE_PRIX_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEMANDE_PRIX"
    ADD CONSTRAINT "DEMANDE_PRIX_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "Default"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 20891 (class 2606 OID 6927757)
-- Name: DEPARTEMENT DEPARTEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20892 (class 2606 OID 6927762)
-- Name: DEPARTEMENT DEPARTEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20896 (class 2606 OID 6927767)
-- Name: DEPOT_CHEQUE_ELEMENT DEPOT_CHEQUE_ELEMENT_ID_CHEQUE_A_ENCAISSER_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEPOT_CHEQUE_ELEMENT"
    ADD CONSTRAINT "DEPOT_CHEQUE_ELEMENT_ID_CHEQUE_A_ENCAISSER_fkey" FOREIGN KEY ("ID_CHEQUE_A_ENCAISSER") REFERENCES "Default"."CHEQUE_A_ENCAISSER"("ID");


--
-- TOC entry 20897 (class 2606 OID 6927772)
-- Name: DEPOT_CHEQUE_ELEMENT DEPOT_CHEQUE_ELEMENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20898 (class 2606 OID 6927777)
-- Name: DEPOT_CHEQUE_ELEMENT DEPOT_CHEQUE_ELEMENT_ID_DEPOT_CHEQUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEPOT_CHEQUE_ELEMENT"
    ADD CONSTRAINT "DEPOT_CHEQUE_ELEMENT_ID_DEPOT_CHEQUE_fkey" FOREIGN KEY ("ID_DEPOT_CHEQUE") REFERENCES "Default"."DEPOT_CHEQUE"("ID");


--
-- TOC entry 20899 (class 2606 OID 6927782)
-- Name: DEPOT_CHEQUE_ELEMENT DEPOT_CHEQUE_ELEMENT_ID_ECRITURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEPOT_CHEQUE_ELEMENT"
    ADD CONSTRAINT "DEPOT_CHEQUE_ELEMENT_ID_ECRITURE_fkey" FOREIGN KEY ("ID_ECRITURE") REFERENCES "Default"."ECRITURE"("ID");


--
-- TOC entry 20893 (class 2606 OID 6927787)
-- Name: DEPOT_CHEQUE DEPOT_CHEQUE_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEPOT_CHEQUE"
    ADD CONSTRAINT "DEPOT_CHEQUE_ID_BANQUE_fkey" FOREIGN KEY ("ID_BANQUE") REFERENCES "Default"."BANQUE"("ID");


--
-- TOC entry 20894 (class 2606 OID 6927792)
-- Name: DEPOT_CHEQUE DEPOT_CHEQUE_ID_ECRITURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEPOT_CHEQUE"
    ADD CONSTRAINT "DEPOT_CHEQUE_ID_ECRITURE_fkey" FOREIGN KEY ("ID_ECRITURE") REFERENCES "Default"."ECRITURE"("ID");


--
-- TOC entry 20895 (class 2606 OID 6927797)
-- Name: DEPOT_CHEQUE DEPOT_CHEQUE_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20900 (class 2606 OID 6927802)
-- Name: DEPOT_STOCK DEPOT_STOCK_ID_USER_UI_LOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEPOT_STOCK"
    ADD CONSTRAINT "DEPOT_STOCK_ID_USER_UI_LOCK_fkey" FOREIGN KEY ("ID_USER_UI_LOCK") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 20915 (class 2606 OID 6927807)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "Default"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 20916 (class 2606 OID 6927812)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_TAILLE") REFERENCES "Default"."ARTICLE_DECLINAISON_TAILLE"("ID");


--
-- TOC entry 20917 (class 2606 OID 6927817)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20918 (class 2606 OID 6927822)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20919 (class 2606 OID 6927827)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20920 (class 2606 OID 6927832)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_DEVIS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20921 (class 2606 OID 6927837)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_ECO_CONTRIBUTION_fkey" FOREIGN KEY ("ID_ECO_CONTRIBUTION") REFERENCES "Common"."ECO_CONTRIBUTION"("ID");


--
-- TOC entry 20922 (class 2606 OID 6927842)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20923 (class 2606 OID 6927847)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20924 (class 2606 OID 6927852)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20925 (class 2606 OID 6927857)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 20926 (class 2606 OID 6927862)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "Default"."MODE_VENTE_ARTICLE"("ID");


--
-- TOC entry 20927 (class 2606 OID 6927867)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_PAYS_fkey" FOREIGN KEY ("ID_PAYS") REFERENCES "Default"."PAYS"("ID");


--
-- TOC entry 20928 (class 2606 OID 6927872)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "Default"."STYLE"("ID_STYLE");


--
-- TOC entry 20929 (class 2606 OID 6927877)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20930 (class 2606 OID 6927882)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEVIS_ELEMENT"
    ADD CONSTRAINT "DEVIS_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "Default"."UNITE_VENTE"("ID");


--
-- TOC entry 20931 (class 2606 OID 6927887)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20932 (class 2606 OID 6927892)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20901 (class 2606 OID 6927897)
-- Name: DEVIS DEVIS_ID_ADRESSE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20902 (class 2606 OID 6927902)
-- Name: DEVIS DEVIS_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20903 (class 2606 OID 6927907)
-- Name: DEVIS DEVIS_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20904 (class 2606 OID 6927912)
-- Name: DEVIS DEVIS_ID_CLIENT_DEPARTEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20905 (class 2606 OID 6927917)
-- Name: DEVIS DEVIS_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20906 (class 2606 OID 6927922)
-- Name: DEVIS DEVIS_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20907 (class 2606 OID 6927927)
-- Name: DEVIS DEVIS_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20908 (class 2606 OID 6927932)
-- Name: DEVIS DEVIS_ID_ETAT_DEVIS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_ETAT_DEVIS_fkey" FOREIGN KEY ("ID_ETAT_DEVIS") REFERENCES "Default"."ETAT_DEVIS"("ID");


--
-- TOC entry 20909 (class 2606 OID 6927937)
-- Name: DEVIS DEVIS_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20910 (class 2606 OID 6927942)
-- Name: DEVIS DEVIS_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20911 (class 2606 OID 6927947)
-- Name: DEVIS DEVIS_ID_TAXE_FRAIS_DOCUMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20912 (class 2606 OID 6927952)
-- Name: DEVIS DEVIS_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20913 (class 2606 OID 6927957)
-- Name: DEVIS DEVIS_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20914 (class 2606 OID 6927962)
-- Name: DEVIS DEVIS_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20933 (class 2606 OID 6927967)
-- Name: ECHANTILLON_ELEMENT ECHANTILLON_ELEMENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20934 (class 2606 OID 6927972)
-- Name: ECHANTILLON_ELEMENT ECHANTILLON_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20935 (class 2606 OID 6927977)
-- Name: ECHANTILLON_ELEMENT ECHANTILLON_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20936 (class 2606 OID 6927982)
-- Name: ECHANTILLON_ELEMENT ECHANTILLON_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20937 (class 2606 OID 6927987)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_BANQUE_fkey" FOREIGN KEY ("ID_BANQUE") REFERENCES "Default"."BANQUE"("ID");


--
-- TOC entry 20938 (class 2606 OID 6927992)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20939 (class 2606 OID 6927997)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_COMPTE_PCE_TIERS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_COMPTE_PCE_TIERS_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TIERS") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 20940 (class 2606 OID 6928002)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20941 (class 2606 OID 6928007)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20942 (class 2606 OID 6928012)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_SDD_MESSAGE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20943 (class 2606 OID 6928017)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_SEPA_MANDATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_SEPA_MANDATE_fkey" FOREIGN KEY ("ID_SEPA_MANDATE") REFERENCES "Default"."SEPA_MANDATE"("ID");


--
-- TOC entry 20944 (class 2606 OID 6928022)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20945 (class 2606 OID 6928027)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20946 (class 2606 OID 6928032)
-- Name: ECHEANCE_FOURNISSEUR ECHEANCE_FOURNISSEUR_ID_FACTURE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20947 (class 2606 OID 6928037)
-- Name: ECHEANCE_FOURNISSEUR ECHEANCE_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ECHEANCE_FOURNISSEUR"
    ADD CONSTRAINT "ECHEANCE_FOURNISSEUR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "Default"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 20948 (class 2606 OID 6928042)
-- Name: ECHEANCE_FOURNISSEUR ECHEANCE_FOURNISSEUR_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20949 (class 2606 OID 6928047)
-- Name: ECHEANCE_FOURNISSEUR ECHEANCE_FOURNISSEUR_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20950 (class 2606 OID 6928052)
-- Name: ECHEANCE_FOURNISSEUR ECHEANCE_FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20951 (class 2606 OID 6928057)
-- Name: ECRITURE ECRITURE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20952 (class 2606 OID 6928062)
-- Name: ECRITURE ECRITURE_ID_JOURNAL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ECRITURE"
    ADD CONSTRAINT "ECRITURE_ID_JOURNAL_fkey" FOREIGN KEY ("ID_JOURNAL") REFERENCES "Default"."JOURNAL"("ID");


--
-- TOC entry 20953 (class 2606 OID 6928067)
-- Name: ECRITURE ECRITURE_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20954 (class 2606 OID 6928072)
-- Name: ECRITURE ECRITURE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20955 (class 2606 OID 6928077)
-- Name: ECRITURE ECRITURE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20956 (class 2606 OID 6928082)
-- Name: EMPLOYEUR_MULTIPLE EMPLOYEUR_MULTIPLE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20957 (class 2606 OID 6928087)
-- Name: EMPLOYEUR_MULTIPLE EMPLOYEUR_MULTIPLE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20968 (class 2606 OID 6928092)
-- Name: ENCAISSER_MONTANT_ELEMENT ENCAISSER_MONTANT_ELEMENT_ID_ECHEANCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ENCAISSER_MONTANT_ELEMENT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ELEMENT_ID_ECHEANCE_CLIENT_fkey" FOREIGN KEY ("ID_ECHEANCE_CLIENT") REFERENCES "Default"."ECHEANCE_CLIENT"("ID");


--
-- TOC entry 20969 (class 2606 OID 6928097)
-- Name: ENCAISSER_MONTANT_ELEMENT ENCAISSER_MONTANT_ELEMENT_ID_ENCAISSER_MONTANT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ENCAISSER_MONTANT_ELEMENT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ELEMENT_ID_ENCAISSER_MONTANT_fkey" FOREIGN KEY ("ID_ENCAISSER_MONTANT") REFERENCES "Default"."ENCAISSER_MONTANT"("ID");


--
-- TOC entry 20970 (class 2606 OID 6928102)
-- Name: ENCAISSER_MONTANT_ELEMENT ENCAISSER_MONTANT_ELEMENT_ID_MOUVEMENT_ECHEANCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ENCAISSER_MONTANT_ELEMENT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ELEMENT_ID_MOUVEMENT_ECHEANCE_fkey" FOREIGN KEY ("ID_MOUVEMENT_ECHEANCE") REFERENCES "Default"."MOUVEMENT"("ID");


--
-- TOC entry 20958 (class 2606 OID 6928107)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20959 (class 2606 OID 6928112)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_COMMANDE_CLIENT_fkey" FOREIGN KEY ("ID_COMMANDE_CLIENT") REFERENCES "Default"."DEVIS"("ID_DEVIS");


--
-- TOC entry 20960 (class 2606 OID 6928117)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_COMPTE_PCE_TIERS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_COMPTE_PCE_TIERS_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TIERS") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 20961 (class 2606 OID 6928122)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_DEVIS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20962 (class 2606 OID 6928127)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_ECHEANCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_ECHEANCE_CLIENT_fkey" FOREIGN KEY ("ID_ECHEANCE_CLIENT") REFERENCES "Default"."ECHEANCE_CLIENT"("ID");


--
-- TOC entry 20963 (class 2606 OID 6928132)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20964 (class 2606 OID 6928137)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20965 (class 2606 OID 6928142)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_TICKET_CAISSE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_TICKET_CAISSE_fkey" FOREIGN KEY ("ID_TICKET_CAISSE") REFERENCES "Default"."TICKET_CAISSE"("ID");


--
-- TOC entry 20966 (class 2606 OID 6928147)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20967 (class 2606 OID 6928152)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20971 (class 2606 OID 6928157)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20972 (class 2606 OID 6928162)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_DEPARTEMENT_NAISSANCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ETAT_CIVIL"
    ADD CONSTRAINT "ETAT_CIVIL_ID_DEPARTEMENT_NAISSANCE_fkey" FOREIGN KEY ("ID_DEPARTEMENT_NAISSANCE") REFERENCES "Default"."DEPARTEMENT"("ID");


--
-- TOC entry 20973 (class 2606 OID 6928167)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_PAYS_NAISSANCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ETAT_CIVIL"
    ADD CONSTRAINT "ETAT_CIVIL_ID_PAYS_NAISSANCE_fkey" FOREIGN KEY ("ID_PAYS_NAISSANCE") REFERENCES "Default"."PAYS"("ID");


--
-- TOC entry 20974 (class 2606 OID 6928172)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_SITUATION_FAMILIALE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ETAT_CIVIL"
    ADD CONSTRAINT "ETAT_CIVIL_ID_SITUATION_FAMILIALE_fkey" FOREIGN KEY ("ID_SITUATION_FAMILIALE") REFERENCES "Default"."SITUATION_FAMILIALE"("ID");


--
-- TOC entry 20975 (class 2606 OID 6928177)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20976 (class 2606 OID 6928182)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20977 (class 2606 OID 6928187)
-- Name: ETAT_DEVIS ETAT_DEVIS_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20978 (class 2606 OID 6928192)
-- Name: ETAT_DEVIS ETAT_DEVIS_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20979 (class 2606 OID 6928197)
-- Name: ETAT_RAPPORT ETAT_RAPPORT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20980 (class 2606 OID 6928202)
-- Name: ETAT_RAPPORT ETAT_RAPPORT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20982 (class 2606 OID 6928207)
-- Name: ETAT_STOCK_ELEMENT ETAT_STOCK_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20983 (class 2606 OID 6928212)
-- Name: ETAT_STOCK_ELEMENT ETAT_STOCK_ELEMENT_ID_ETAT_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."ETAT_STOCK_ELEMENT"
    ADD CONSTRAINT "ETAT_STOCK_ELEMENT_ID_ETAT_STOCK_fkey" FOREIGN KEY ("ID_ETAT_STOCK") REFERENCES "Default"."ETAT_STOCK"("ID");


--
-- TOC entry 20981 (class 2606 OID 6928217)
-- Name: ETAT_STOCK ETAT_STOCK_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20984 (class 2606 OID 6928222)
-- Name: FACTURATION_COMMANDE_CLIENT FACTURATION_COMMANDE_CLIENT_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20985 (class 2606 OID 6928227)
-- Name: FACTURATION_COMMANDE_CLIENT FACTURATION_COMMANDE_CLIENT_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20986 (class 2606 OID 6928232)
-- Name: FACTURATION_COMMANDE_CLIENT FACTURATION_COMMANDE_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20987 (class 2606 OID 6928237)
-- Name: FACTURATION_COMMANDE_CLIENT FACTURATION_COMMANDE_CLIENT_ID_TYPE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FACTURATION_COMMANDE_CLIENT"
    ADD CONSTRAINT "FACTURATION_COMMANDE_CLIENT_ID_TYPE_REGLEMENT_fkey" FOREIGN KEY ("ID_TYPE_REGLEMENT") REFERENCES "Default"."TYPE_REGLEMENT"("ID");


--
-- TOC entry 20997 (class 2606 OID 6928242)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "Default"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 20998 (class 2606 OID 6928247)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_TAILLE") REFERENCES "Default"."ARTICLE_DECLINAISON_TAILLE"("ID");


--
-- TOC entry 20999 (class 2606 OID 6928252)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21000 (class 2606 OID 6928257)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_CODE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_CODE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_CODE_FOURNISSEUR") REFERENCES "Default"."CODE_FOURNISSEUR"("ID");


--
-- TOC entry 21001 (class 2606 OID 6928262)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey" FOREIGN KEY ("ID_DEMANDE_ACHAT_ELEMENT") REFERENCES "Default"."DEMANDE_ACHAT_ELEMENT"("ID");


--
-- TOC entry 21002 (class 2606 OID 6928267)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21003 (class 2606 OID 6928272)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21004 (class 2606 OID 6928277)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_ECO_CONTRIBUTION_fkey" FOREIGN KEY ("ID_ECO_CONTRIBUTION") REFERENCES "Common"."ECO_CONTRIBUTION"("ID");


--
-- TOC entry 21005 (class 2606 OID 6928282)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_FACTURE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21006 (class 2606 OID 6928287)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21007 (class 2606 OID 6928292)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 21008 (class 2606 OID 6928297)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 21009 (class 2606 OID 6928302)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 21010 (class 2606 OID 6928307)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "Default"."MODE_VENTE_ARTICLE"("ID");


--
-- TOC entry 21011 (class 2606 OID 6928312)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "Default"."STYLE"("ID_STYLE");


--
-- TOC entry 21012 (class 2606 OID 6928317)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21013 (class 2606 OID 6928322)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "Default"."UNITE_VENTE"("ID");


--
-- TOC entry 20988 (class 2606 OID 6928327)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_AVOIR_FOURNISSEUR_2_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_AVOIR_FOURNISSEUR_2_fkey" FOREIGN KEY ("ID_AVOIR_FOURNISSEUR_2") REFERENCES "Default"."AVOIR_FOURNISSEUR"("ID");


--
-- TOC entry 20989 (class 2606 OID 6928332)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_AVOIR_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20990 (class 2606 OID 6928337)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20991 (class 2606 OID 6928342)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20992 (class 2606 OID 6928347)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20993 (class 2606 OID 6928352)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "Default"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 20994 (class 2606 OID 6928357)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20995 (class 2606 OID 6928362)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 20996 (class 2606 OID 6928367)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21019 (class 2606 OID 6928372)
-- Name: FAMILLE_ARTICLE_FOURNISSEUR FAMILLE_ARTICLE_FOURNISSEUR_ID_FAMILLE_ARTICLE_FOURNISSEUR_PERE; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FAMILLE_ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "FAMILLE_ARTICLE_FOURNISSEUR_ID_FAMILLE_ARTICLE_FOURNISSEUR_PERE" FOREIGN KEY ("ID_FAMILLE_ARTICLE_FOURNISSEUR_PERE") REFERENCES "Default"."FAMILLE_ARTICLE_FOURNISSEUR"("ID");


--
-- TOC entry 21014 (class 2606 OID 6928377)
-- Name: FAMILLE_ARTICLE FAMILLE_ARTICLE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21015 (class 2606 OID 6928382)
-- Name: FAMILLE_ARTICLE FAMILLE_ARTICLE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21016 (class 2606 OID 6928387)
-- Name: FAMILLE_ARTICLE FAMILLE_ARTICLE_ID_FAMILLE_ARTICLE_PERE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FAMILLE_ARTICLE"
    ADD CONSTRAINT "FAMILLE_ARTICLE_ID_FAMILLE_ARTICLE_PERE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE_PERE") REFERENCES "Default"."FAMILLE_ARTICLE"("ID");


--
-- TOC entry 21017 (class 2606 OID 6928392)
-- Name: FAMILLE_ARTICLE FAMILLE_ARTICLE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21018 (class 2606 OID 6928397)
-- Name: FAMILLE_ARTICLE FAMILLE_ARTICLE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21032 (class 2606 OID 6928402)
-- Name: FICHE_PAYE_ELEMENT FICHE_PAYE_ELEMENT_ID_FICHE_PAYE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21033 (class 2606 OID 6928407)
-- Name: FICHE_PAYE_ELEMENT FICHE_PAYE_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FICHE_PAYE_ELEMENT"
    ADD CONSTRAINT "FICHE_PAYE_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "Default"."STYLE"("ID_STYLE");


--
-- TOC entry 21034 (class 2606 OID 6928412)
-- Name: FICHE_PAYE_ELEMENT FICHE_PAYE_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 21035 (class 2606 OID 6928417)
-- Name: FICHE_PAYE_ELEMENT FICHE_PAYE_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."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 21020 (class 2606 OID 6928422)
-- Name: FICHE_PAYE FICHE_PAYE_ID_CUMULS_CONGES_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21021 (class 2606 OID 6928427)
-- Name: FICHE_PAYE FICHE_PAYE_ID_CUMULS_PAYE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21022 (class 2606 OID 6928432)
-- Name: FICHE_PAYE FICHE_PAYE_ID_IDCC_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_IDCC_fkey" FOREIGN KEY ("ID_IDCC") REFERENCES "Common"."IDCC"("ID");


--
-- TOC entry 21023 (class 2606 OID 6928437)
-- Name: FICHE_PAYE FICHE_PAYE_ID_INFOS_SALARIE_PAYE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21024 (class 2606 OID 6928442)
-- Name: FICHE_PAYE FICHE_PAYE_ID_MOIS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_MOIS_fkey" FOREIGN KEY ("ID_MOIS") REFERENCES "Default"."MOIS"("ID");


--
-- TOC entry 21025 (class 2606 OID 6928447)
-- Name: FICHE_PAYE FICHE_PAYE_ID_PAS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21026 (class 2606 OID 6928452)
-- Name: FICHE_PAYE FICHE_PAYE_ID_PROFIL_PAYE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_PROFIL_PAYE_fkey" FOREIGN KEY ("ID_PROFIL_PAYE") REFERENCES "Common"."PROFIL_PAYE"("ID");


--
-- TOC entry 21027 (class 2606 OID 6928457)
-- Name: FICHE_PAYE FICHE_PAYE_ID_REGLEMENT_PAYE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21028 (class 2606 OID 6928462)
-- Name: FICHE_PAYE FICHE_PAYE_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21029 (class 2606 OID 6928467)
-- Name: FICHE_PAYE FICHE_PAYE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21030 (class 2606 OID 6928472)
-- Name: FICHE_PAYE FICHE_PAYE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21031 (class 2606 OID 6928477)
-- Name: FICHE_PAYE FICHE_PAYE_ID_VARIABLE_SALARIE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21036 (class 2606 OID 6928482)
-- Name: FIN_CONTRAT FIN_CONTRAT_ID_FICHE_PAYE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21037 (class 2606 OID 6928487)
-- Name: FIN_CONTRAT FIN_CONTRAT_ID_MOTIF_FIN_CONTRAT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FIN_CONTRAT"
    ADD CONSTRAINT "FIN_CONTRAT_ID_MOTIF_FIN_CONTRAT_fkey" FOREIGN KEY ("ID_MOTIF_FIN_CONTRAT") REFERENCES "Common"."MOTIF_FIN_CONTRAT"("ID");


--
-- TOC entry 21038 (class 2606 OID 6928492)
-- Name: FIN_CONTRAT FIN_CONTRAT_ID_TYPE_PREAVIS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FIN_CONTRAT"
    ADD CONSTRAINT "FIN_CONTRAT_ID_TYPE_PREAVIS_fkey" FOREIGN KEY ("ID_TYPE_PREAVIS") REFERENCES "Common"."TYPE_PREAVIS"("ID");


--
-- TOC entry 21039 (class 2606 OID 6928497)
-- Name: FOURNISSEUR FOURNISSEUR_ID_ADRESSE_E_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FOURNISSEUR"
    ADD CONSTRAINT "FOURNISSEUR_ID_ADRESSE_E_fkey" FOREIGN KEY ("ID_ADRESSE_E") REFERENCES "Default"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 21040 (class 2606 OID 6928502)
-- Name: FOURNISSEUR FOURNISSEUR_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21041 (class 2606 OID 6928507)
-- Name: FOURNISSEUR FOURNISSEUR_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21042 (class 2606 OID 6928512)
-- Name: FOURNISSEUR FOURNISSEUR_ID_COMPTE_PCE_CHARGE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FOURNISSEUR"
    ADD CONSTRAINT "FOURNISSEUR_ID_COMPTE_PCE_CHARGE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_CHARGE") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21043 (class 2606 OID 6928517)
-- Name: FOURNISSEUR FOURNISSEUR_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21044 (class 2606 OID 6928522)
-- Name: FOURNISSEUR FOURNISSEUR_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21045 (class 2606 OID 6928527)
-- Name: FOURNISSEUR FOURNISSEUR_ID_LANGUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FOURNISSEUR"
    ADD CONSTRAINT "FOURNISSEUR_ID_LANGUE_fkey" FOREIGN KEY ("ID_LANGUE") REFERENCES "Default"."LANGUE"("ID");


--
-- TOC entry 21046 (class 2606 OID 6928532)
-- Name: FOURNISSEUR FOURNISSEUR_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21047 (class 2606 OID 6928537)
-- Name: FOURNISSEUR FOURNISSEUR_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21048 (class 2606 OID 6928542)
-- Name: FOURNISSEUR FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21049 (class 2606 OID 6928547)
-- Name: FRAIS_DOCUMENT FRAIS_DOCUMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21050 (class 2606 OID 6928552)
-- Name: FWK_MODULE_DEP FWK_MODULE_DEP_ID_MODULE_NEEDED_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FWK_MODULE_DEP"
    ADD CONSTRAINT "FWK_MODULE_DEP_ID_MODULE_NEEDED_fkey" FOREIGN KEY ("ID_MODULE_NEEDED") REFERENCES "Default"."FWK_MODULE_METADATA"("ID") ON UPDATE CASCADE ON DELETE RESTRICT;


--
-- TOC entry 21051 (class 2606 OID 6928557)
-- Name: FWK_MODULE_DEP FWK_MODULE_DEP_ID_MODULE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."FWK_MODULE_DEP"
    ADD CONSTRAINT "FWK_MODULE_DEP_ID_MODULE_fkey" FOREIGN KEY ("ID_MODULE") REFERENCES "Default"."FWK_MODULE_METADATA"("ID") ON UPDATE CASCADE ON DELETE CASCADE;


--
-- TOC entry 21052 (class 2606 OID 6928562)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_CLASSEMENT_CONVENTIONNEL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."INFOS_SALARIE_PAYE"
    ADD CONSTRAINT "INFOS_SALARIE_PAYE_ID_CLASSEMENT_CONVENTIONNEL_fkey" FOREIGN KEY ("ID_CLASSEMENT_CONVENTIONNEL") REFERENCES "Default"."CLASSEMENT_CONVENTIONNEL"("ID");


--
-- TOC entry 21053 (class 2606 OID 6928567)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_COEFF_PRIME_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."INFOS_SALARIE_PAYE"
    ADD CONSTRAINT "INFOS_SALARIE_PAYE_ID_COEFF_PRIME_fkey" FOREIGN KEY ("ID_COEFF_PRIME") REFERENCES "Default"."COEFF_PRIME"("ID");


--
-- TOC entry 21054 (class 2606 OID 6928572)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_CONTRAT_SALARIE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."INFOS_SALARIE_PAYE"
    ADD CONSTRAINT "INFOS_SALARIE_PAYE_ID_CONTRAT_SALARIE_fkey" FOREIGN KEY ("ID_CONTRAT_SALARIE") REFERENCES "Default"."CONTRAT_SALARIE"("ID");


--
-- TOC entry 21055 (class 2606 OID 6928577)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_IDCC_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."INFOS_SALARIE_PAYE"
    ADD CONSTRAINT "INFOS_SALARIE_PAYE_ID_IDCC_fkey" FOREIGN KEY ("ID_IDCC") REFERENCES "Common"."IDCC"("ID");


--
-- TOC entry 21056 (class 2606 OID 6928582)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21057 (class 2606 OID 6928587)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21058 (class 2606 OID 6928592)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21059 (class 2606 OID 6928597)
-- Name: JOURNAL JOURNAL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21060 (class 2606 OID 6928602)
-- Name: JOURNAL JOURNAL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21061 (class 2606 OID 6928607)
-- Name: LOT LOT_ID_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."LOT"
    ADD CONSTRAINT "LOT_ID_STOCK_fkey" FOREIGN KEY ("ID_STOCK") REFERENCES "Default"."STOCK"("ID");


--
-- TOC entry 21062 (class 2606 OID 6928612)
-- Name: LOT_LIVRAISON LOT_LIVRAISON_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21063 (class 2606 OID 6928617)
-- Name: LOT_LIVRAISON LOT_LIVRAISON_ID_BON_DE_LIVRAISON_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."LOT_LIVRAISON"
    ADD CONSTRAINT "LOT_LIVRAISON_ID_BON_DE_LIVRAISON_ELEMENT_fkey" FOREIGN KEY ("ID_BON_DE_LIVRAISON_ELEMENT") REFERENCES "Default"."BON_DE_LIVRAISON_ELEMENT"("ID");


--
-- TOC entry 21064 (class 2606 OID 6928622)
-- Name: LOT_LIVRAISON LOT_LIVRAISON_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21065 (class 2606 OID 6928627)
-- Name: LOT_LIVRAISON LOT_LIVRAISON_ID_LOT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."LOT_LIVRAISON"
    ADD CONSTRAINT "LOT_LIVRAISON_ID_LOT_fkey" FOREIGN KEY ("ID_LOT") REFERENCES "Default"."LOT"("ID");


--
-- TOC entry 21066 (class 2606 OID 6928632)
-- Name: LOT_RECEPTION LOT_RECEPTION_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21067 (class 2606 OID 6928637)
-- Name: LOT_RECEPTION LOT_RECEPTION_ID_BON_RECEPTION_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."LOT_RECEPTION"
    ADD CONSTRAINT "LOT_RECEPTION_ID_BON_RECEPTION_ELEMENT_fkey" FOREIGN KEY ("ID_BON_RECEPTION_ELEMENT") REFERENCES "Default"."BON_RECEPTION_ELEMENT"("ID");


--
-- TOC entry 21068 (class 2606 OID 6928642)
-- Name: LOT_RECEPTION LOT_RECEPTION_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21069 (class 2606 OID 6928647)
-- Name: LOT_RECEPTION LOT_RECEPTION_ID_LOT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."LOT_RECEPTION"
    ADD CONSTRAINT "LOT_RECEPTION_ID_LOT_fkey" FOREIGN KEY ("ID_LOT") REFERENCES "Default"."LOT"("ID");


--
-- TOC entry 21070 (class 2606 OID 6928652)
-- Name: METRIQUE METRIQUE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21071 (class 2606 OID 6928657)
-- Name: METRIQUE METRIQUE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21073 (class 2606 OID 6928662)
-- Name: MODELE_COURRIER_CLIENT MODELE_COURRIER_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21074 (class 2606 OID 6928667)
-- Name: MODELE_COURRIER_CLIENT MODELE_COURRIER_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21072 (class 2606 OID 6928672)
-- Name: MODELE MODELE_ID_TYPE_MODELE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."MODELE"
    ADD CONSTRAINT "MODELE_ID_TYPE_MODELE_fkey" FOREIGN KEY ("ID_TYPE_MODELE") REFERENCES "Common"."TYPE_MODELE"("ID");


--
-- TOC entry 21075 (class 2606 OID 6928677)
-- Name: MODE_REGLEMENT MODE_REGLEMENT_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."MODE_REGLEMENT"
    ADD CONSTRAINT "MODE_REGLEMENT_ID_BANQUE_fkey" FOREIGN KEY ("ID_BANQUE") REFERENCES "Default"."BANQUE"("ID");


--
-- TOC entry 21076 (class 2606 OID 6928682)
-- Name: MODE_REGLEMENT MODE_REGLEMENT_ID_SEPA_MANDATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."MODE_REGLEMENT"
    ADD CONSTRAINT "MODE_REGLEMENT_ID_SEPA_MANDATE_fkey" FOREIGN KEY ("ID_SEPA_MANDATE") REFERENCES "Default"."SEPA_MANDATE"("ID");


--
-- TOC entry 21077 (class 2606 OID 6928687)
-- Name: MODE_REGLEMENT MODE_REGLEMENT_ID_TYPE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."MODE_REGLEMENT"
    ADD CONSTRAINT "MODE_REGLEMENT_ID_TYPE_REGLEMENT_fkey" FOREIGN KEY ("ID_TYPE_REGLEMENT") REFERENCES "Default"."TYPE_REGLEMENT"("ID");


--
-- TOC entry 21078 (class 2606 OID 6928692)
-- Name: MODE_REGLEMENT MODE_REGLEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21079 (class 2606 OID 6928697)
-- Name: MODE_REGLEMENT MODE_REGLEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21080 (class 2606 OID 6928702)
-- Name: MODE_VENTE_ARTICLE MODE_VENTE_ARTICLE_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."MODE_VENTE_ARTICLE"
    ADD CONSTRAINT "MODE_VENTE_ARTICLE_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 21081 (class 2606 OID 6928707)
-- Name: MODE_VENTE_ARTICLE MODE_VENTE_ARTICLE_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."MODE_VENTE_ARTICLE"
    ADD CONSTRAINT "MODE_VENTE_ARTICLE_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 21082 (class 2606 OID 6928712)
-- Name: MODE_VENTE_ARTICLE MODE_VENTE_ARTICLE_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."MODE_VENTE_ARTICLE"
    ADD CONSTRAINT "MODE_VENTE_ARTICLE_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 21083 (class 2606 OID 6928717)
-- Name: MODE_VENTE_ARTICLE MODE_VENTE_ARTICLE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21084 (class 2606 OID 6928722)
-- Name: MODE_VENTE_ARTICLE MODE_VENTE_ARTICLE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21085 (class 2606 OID 6928727)
-- Name: MOIS MOIS_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21086 (class 2606 OID 6928732)
-- Name: MOIS MOIS_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21087 (class 2606 OID 6928737)
-- Name: MOUVEMENT MOUVEMENT_ID_MOUVEMENT_PERE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."MOUVEMENT"
    ADD CONSTRAINT "MOUVEMENT_ID_MOUVEMENT_PERE_fkey" FOREIGN KEY ("ID_MOUVEMENT_PERE") REFERENCES "Default"."MOUVEMENT"("ID");


--
-- TOC entry 21088 (class 2606 OID 6928742)
-- Name: MOUVEMENT MOUVEMENT_ID_PIECE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."MOUVEMENT"
    ADD CONSTRAINT "MOUVEMENT_ID_PIECE_fkey" FOREIGN KEY ("ID_PIECE") REFERENCES "Default"."PIECE"("ID");


--
-- TOC entry 21089 (class 2606 OID 6928747)
-- Name: MOUVEMENT MOUVEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21090 (class 2606 OID 6928752)
-- Name: MOUVEMENT MOUVEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21091 (class 2606 OID 6928757)
-- Name: MOUVEMENT_STOCK MOUVEMENT_STOCK_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21092 (class 2606 OID 6928762)
-- Name: MOUVEMENT_STOCK MOUVEMENT_STOCK_ID_ETAT_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."MOUVEMENT_STOCK"
    ADD CONSTRAINT "MOUVEMENT_STOCK_ID_ETAT_STOCK_fkey" FOREIGN KEY ("ID_ETAT_STOCK") REFERENCES "Default"."ETAT_STOCK"("ID");


--
-- TOC entry 21093 (class 2606 OID 6928767)
-- Name: MOUVEMENT_STOCK MOUVEMENT_STOCK_ID_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."MOUVEMENT_STOCK"
    ADD CONSTRAINT "MOUVEMENT_STOCK_ID_STOCK_fkey" FOREIGN KEY ("ID_STOCK") REFERENCES "Default"."STOCK"("ID");


--
-- TOC entry 21094 (class 2606 OID 6928772)
-- Name: MOUVEMENT_STOCK MOUVEMENT_STOCK_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21095 (class 2606 OID 6928777)
-- Name: MOUVEMENT_STOCK MOUVEMENT_STOCK_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21096 (class 2606 OID 6928782)
-- Name: NATURE_COMPTE NATURE_COMPTE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21097 (class 2606 OID 6928787)
-- Name: NATURE_COMPTE NATURE_COMPTE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21098 (class 2606 OID 6928792)
-- Name: NUMEROTATION_AUTO NUMEROTATION_AUTO_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21099 (class 2606 OID 6928797)
-- Name: NUMEROTATION_AUTO NUMEROTATION_AUTO_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21100 (class 2606 OID 6928802)
-- Name: OBJECTIF_COMMERCIAL OBJECTIF_COMMERCIAL_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21101 (class 2606 OID 6928807)
-- Name: PAS PAS_ID_TYPE_TAUX_PAS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PAS"
    ADD CONSTRAINT "PAS_ID_TYPE_TAUX_PAS_fkey" FOREIGN KEY ("ID_TYPE_TAUX_PAS") REFERENCES "Common"."TYPE_TAUX_PAS"("ID");


--
-- TOC entry 21102 (class 2606 OID 6928812)
-- Name: PAYS PAYS_ID_LANGUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PAYS"
    ADD CONSTRAINT "PAYS_ID_LANGUE_fkey" FOREIGN KEY ("ID_LANGUE") REFERENCES "Default"."LANGUE"("ID");


--
-- TOC entry 21103 (class 2606 OID 6928817)
-- Name: PAYS PAYS_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21104 (class 2606 OID 6928822)
-- Name: PAYS PAYS_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21105 (class 2606 OID 6928827)
-- Name: PAYS PAYS_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21106 (class 2606 OID 6928832)
-- Name: PIECE PIECE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21107 (class 2606 OID 6928837)
-- Name: PIECE PIECE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21108 (class 2606 OID 6928842)
-- Name: POSTE_ANALYTIQUE POSTE_ANALYTIQUE_ID_AXE_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."POSTE_ANALYTIQUE"
    ADD CONSTRAINT "POSTE_ANALYTIQUE_ID_AXE_ANALYTIQUE_fkey" FOREIGN KEY ("ID_AXE_ANALYTIQUE") REFERENCES "Default"."AXE_ANALYTIQUE"("ID");


--
-- TOC entry 21109 (class 2606 OID 6928847)
-- Name: POSTE_ANALYTIQUE POSTE_ANALYTIQUE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21110 (class 2606 OID 6928852)
-- Name: POSTE_ANALYTIQUE POSTE_ANALYTIQUE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21111 (class 2606 OID 6928857)
-- Name: PREFERENCES PREFERENCES_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21112 (class 2606 OID 6928862)
-- Name: PREFERENCES PREFERENCES_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21113 (class 2606 OID 6928867)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_ACHAT_INTRA_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_ACHAT_INTRA_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACHAT_INTRA") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21114 (class 2606 OID 6928872)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21115 (class 2606 OID 6928877)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_ACOMPTE_REGL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_ACOMPTE_REGL_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACOMPTE_REGL") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21116 (class 2606 OID 6928882)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_ACOMPTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_ACOMPTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACOMPTE") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21117 (class 2606 OID 6928887)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_AVANCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_AVANCE_CLIENT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_AVANCE_CLIENT") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21118 (class 2606 OID 6928892)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_BILAN_F_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_BILAN_F_fkey" FOREIGN KEY ("ID_COMPTE_PCE_BILAN_F") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21119 (class 2606 OID 6928897)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_BILAN_O_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_BILAN_O_fkey" FOREIGN KEY ("ID_COMPTE_PCE_BILAN_O") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21120 (class 2606 OID 6928902)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_CB_ATTENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_CB_ATTENTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_CB_ATTENTE") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21121 (class 2606 OID 6928907)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21122 (class 2606 OID 6928912)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_FACTOR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_FACTOR_fkey" FOREIGN KEY ("ID_COMPTE_PCE_FACTOR") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21123 (class 2606 OID 6928917)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_COMPTE_PCE_FOURNISSEUR") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21124 (class 2606 OID 6928922)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_PAYE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_PAYE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PAYE") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21125 (class 2606 OID 6928927)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_PORT_NON_SOUMIS_ACHAT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_PORT_NON_SOUMIS_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PORT_NON_SOUMIS_ACHAT") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21126 (class 2606 OID 6928932)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_PORT_NON_SOUMIS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_PORT_NON_SOUMIS_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PORT_NON_SOUMIS") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21127 (class 2606 OID 6928937)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_PORT_SOUMIS_ACHAT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_PORT_SOUMIS_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PORT_SOUMIS_ACHAT") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21128 (class 2606 OID 6928942)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_PORT_SOUMIS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_PORT_SOUMIS_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PORT_SOUMIS") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21129 (class 2606 OID 6928947)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_RESULTAT_PERTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_RESULTAT_PERTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_RESULTAT_PERTE") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21130 (class 2606 OID 6928952)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_RESULTAT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_RESULTAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_RESULTAT") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21131 (class 2606 OID 6928957)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_TVA_ACHAT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_TVA_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TVA_ACHAT") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21132 (class 2606 OID 6928962)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_TVA_IMMO_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_TVA_IMMO_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TVA_IMMO") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21133 (class 2606 OID 6928967)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_TVA_INTRA_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_TVA_INTRA_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TVA_INTRA") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21134 (class 2606 OID 6928972)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_TVA_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_TVA_VENTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TVA_VENTE") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21135 (class 2606 OID 6928977)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_VALEUR_ENCAISSEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_VALEUR_ENCAISSEMENT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_VALEUR_ENCAISSEMENT") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21136 (class 2606 OID 6928982)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_VENTE_PRODUIT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_VENTE_PRODUIT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_VENTE_PRODUIT") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21137 (class 2606 OID 6928987)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_VENTE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21138 (class 2606 OID 6928992)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_JOURNAL_AN_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_JOURNAL_AN_fkey" FOREIGN KEY ("ID_JOURNAL_AN") REFERENCES "Default"."JOURNAL"("ID");


--
-- TOC entry 21139 (class 2606 OID 6928997)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_JOURNAL_CB_ATTENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_JOURNAL_CB_ATTENTE_fkey" FOREIGN KEY ("ID_JOURNAL_CB_ATTENTE") REFERENCES "Default"."JOURNAL"("ID");


--
-- TOC entry 21140 (class 2606 OID 6929002)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_JOURNAL_FACTOR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_JOURNAL_FACTOR_fkey" FOREIGN KEY ("ID_JOURNAL_FACTOR") REFERENCES "Default"."JOURNAL"("ID");


--
-- TOC entry 21141 (class 2606 OID 6929007)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_JOURNAL_VALEUR_ENCAISSEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_JOURNAL_VALEUR_ENCAISSEMENT_fkey" FOREIGN KEY ("ID_JOURNAL_VALEUR_ENCAISSEMENT") REFERENCES "Default"."JOURNAL"("ID");


--
-- TOC entry 23105 (class 2606 OID 6941549)
-- Name: RAPPROCHEMENT_BANCAIRE RAPPROCHEMENT_BANCAIRE_ID_ECRITURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."RAPPROCHEMENT_BANCAIRE"
    ADD CONSTRAINT "RAPPROCHEMENT_BANCAIRE_ID_ECRITURE_fkey" FOREIGN KEY ("ID_ECRITURE") REFERENCES "Default"."ECRITURE"("ID");


--
-- TOC entry 23106 (class 2606 OID 6941544)
-- Name: RAPPROCHEMENT_BANCAIRE RAPPROCHEMENT_BANCAIRE_ID_RELEVE_BANCAIRE_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."RAPPROCHEMENT_BANCAIRE"
    ADD CONSTRAINT "RAPPROCHEMENT_BANCAIRE_ID_RELEVE_BANCAIRE_ELEMENT_fkey" FOREIGN KEY ("ID_RELEVE_BANCAIRE_ELEMENT") REFERENCES "Default"."RELEVE_BANCAIRE_ELEMENT"("ID");


--
-- TOC entry 21142 (class 2606 OID 6929012)
-- Name: REFERENCE_CLIENT REFERENCE_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21143 (class 2606 OID 6929017)
-- Name: REFERENCE_CLIENT REFERENCE_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21144 (class 2606 OID 6929022)
-- Name: REGIME_BASE REGIME_BASE_ID_CODE_REGIME_AT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_CODE_REGIME_AT_fkey" FOREIGN KEY ("ID_CODE_REGIME_AT") REFERENCES "Default"."CODE_REGIME"("ID");


--
-- TOC entry 21145 (class 2606 OID 6929027)
-- Name: REGIME_BASE REGIME_BASE_ID_CODE_REGIME_BASE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_CODE_REGIME_BASE_fkey" FOREIGN KEY ("ID_CODE_REGIME_BASE") REFERENCES "Default"."CODE_REGIME"("ID");


--
-- TOC entry 21146 (class 2606 OID 6929032)
-- Name: REGIME_BASE REGIME_BASE_ID_CODE_REGIME_MALADIE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_CODE_REGIME_MALADIE_fkey" FOREIGN KEY ("ID_CODE_REGIME_MALADIE") REFERENCES "Default"."CODE_REGIME"("ID");


--
-- TOC entry 21147 (class 2606 OID 6929037)
-- Name: REGIME_BASE REGIME_BASE_ID_CODE_REGIME_VIEL_P_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_CODE_REGIME_VIEL_P_fkey" FOREIGN KEY ("ID_CODE_REGIME_VIEL_P") REFERENCES "Default"."CODE_REGIME"("ID");


--
-- TOC entry 21148 (class 2606 OID 6929042)
-- Name: REGIME_BASE REGIME_BASE_ID_CODE_REGIME_VIEL_S_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_CODE_REGIME_VIEL_S_fkey" FOREIGN KEY ("ID_CODE_REGIME_VIEL_S") REFERENCES "Default"."CODE_REGIME"("ID");


--
-- TOC entry 21149 (class 2606 OID 6929047)
-- Name: REGIME_BASE REGIME_BASE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21150 (class 2606 OID 6929052)
-- Name: REGIME_BASE REGIME_BASE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21151 (class 2606 OID 6929057)
-- Name: REGLEMENT_PAYE REGLEMENT_PAYE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21152 (class 2606 OID 6929062)
-- Name: REGLEMENT_PAYE REGLEMENT_PAYE_ID_MODE_REGLEMENT_PAYE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."REGLEMENT_PAYE"
    ADD CONSTRAINT "REGLEMENT_PAYE_ID_MODE_REGLEMENT_PAYE_fkey" FOREIGN KEY ("ID_MODE_REGLEMENT_PAYE") REFERENCES "Default"."MODE_REGLEMENT_PAYE"("ID");


--
-- TOC entry 21153 (class 2606 OID 6929067)
-- Name: REGLEMENT_PAYE REGLEMENT_PAYE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21154 (class 2606 OID 6929072)
-- Name: REGLEMENT_PAYE REGLEMENT_PAYE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21161 (class 2606 OID 6929077)
-- Name: REGLER_MONTANT_ELEMENT REGLER_MONTANT_ELEMENT_ID_ECHEANCE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."REGLER_MONTANT_ELEMENT"
    ADD CONSTRAINT "REGLER_MONTANT_ELEMENT_ID_ECHEANCE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_ECHEANCE_FOURNISSEUR") REFERENCES "Default"."ECHEANCE_FOURNISSEUR"("ID");


--
-- TOC entry 21162 (class 2606 OID 6929082)
-- Name: REGLER_MONTANT_ELEMENT REGLER_MONTANT_ELEMENT_ID_MOUVEMENT_ECHEANCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."REGLER_MONTANT_ELEMENT"
    ADD CONSTRAINT "REGLER_MONTANT_ELEMENT_ID_MOUVEMENT_ECHEANCE_fkey" FOREIGN KEY ("ID_MOUVEMENT_ECHEANCE") REFERENCES "Default"."MOUVEMENT"("ID");


--
-- TOC entry 21163 (class 2606 OID 6929087)
-- Name: REGLER_MONTANT_ELEMENT REGLER_MONTANT_ELEMENT_ID_REGLER_MONTANT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."REGLER_MONTANT_ELEMENT"
    ADD CONSTRAINT "REGLER_MONTANT_ELEMENT_ID_REGLER_MONTANT_fkey" FOREIGN KEY ("ID_REGLER_MONTANT") REFERENCES "Default"."REGLER_MONTANT"("ID");


--
-- TOC entry 21155 (class 2606 OID 6929092)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_ECHEANCE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."REGLER_MONTANT"
    ADD CONSTRAINT "REGLER_MONTANT_ID_ECHEANCE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_ECHEANCE_FOURNISSEUR") REFERENCES "Default"."ECHEANCE_FOURNISSEUR"("ID");


--
-- TOC entry 21156 (class 2606 OID 6929097)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."REGLER_MONTANT"
    ADD CONSTRAINT "REGLER_MONTANT_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "Default"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 21157 (class 2606 OID 6929102)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21158 (class 2606 OID 6941610)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21159 (class 2606 OID 6929107)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21160 (class 2606 OID 6929112)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21164 (class 2606 OID 6929117)
-- Name: RELANCE RELANCE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21165 (class 2606 OID 6929122)
-- Name: RELANCE RELANCE_ID_ECHEANCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."RELANCE"
    ADD CONSTRAINT "RELANCE_ID_ECHEANCE_CLIENT_fkey" FOREIGN KEY ("ID_ECHEANCE_CLIENT") REFERENCES "Default"."ECHEANCE_CLIENT"("ID");


--
-- TOC entry 21166 (class 2606 OID 6929127)
-- Name: RELANCE RELANCE_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21167 (class 2606 OID 6929132)
-- Name: RELANCE RELANCE_ID_TYPE_LETTRE_RELANCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."RELANCE"
    ADD CONSTRAINT "RELANCE_ID_TYPE_LETTRE_RELANCE_fkey" FOREIGN KEY ("ID_TYPE_LETTRE_RELANCE") REFERENCES "Default"."TYPE_LETTRE_RELANCE"("ID");


--
-- TOC entry 21168 (class 2606 OID 6929137)
-- Name: RELANCE RELANCE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21169 (class 2606 OID 6929142)
-- Name: RELANCE RELANCE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 23104 (class 2606 OID 6941526)
-- Name: RELEVE_BANCAIRE_ELEMENT RELEVE_BANCAIRE_ELEMENT_ID_RELEVE_BANCAIRE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."RELEVE_BANCAIRE_ELEMENT"
    ADD CONSTRAINT "RELEVE_BANCAIRE_ELEMENT_ID_RELEVE_BANCAIRE_fkey" FOREIGN KEY ("ID_RELEVE_BANCAIRE") REFERENCES "Default"."RELEVE_BANCAIRE"("ID");


--
-- TOC entry 23103 (class 2606 OID 6941498)
-- Name: RELEVE_BANCAIRE RELEVE_BANCAIRE_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."RELEVE_BANCAIRE"
    ADD CONSTRAINT "RELEVE_BANCAIRE_ID_BANQUE_fkey" FOREIGN KEY ("ID_BANQUE") REFERENCES "Default"."BANQUE"("ID");


--
-- TOC entry 21172 (class 2606 OID 6929147)
-- Name: REPARTITION_ANALYTIQUE_ELEMENT REPARTITION_ANALYTIQUE_ELEMENT_ID_POSTE_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."REPARTITION_ANALYTIQUE_ELEMENT"
    ADD CONSTRAINT "REPARTITION_ANALYTIQUE_ELEMENT_ID_POSTE_ANALYTIQUE_fkey" FOREIGN KEY ("ID_POSTE_ANALYTIQUE") REFERENCES "Default"."POSTE_ANALYTIQUE"("ID");


--
-- TOC entry 21173 (class 2606 OID 6929152)
-- Name: REPARTITION_ANALYTIQUE_ELEMENT REPARTITION_ANALYTIQUE_ELEMENT_ID_REPARTITION_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."REPARTITION_ANALYTIQUE_ELEMENT"
    ADD CONSTRAINT "REPARTITION_ANALYTIQUE_ELEMENT_ID_REPARTITION_ANALYTIQUE_fkey" FOREIGN KEY ("ID_REPARTITION_ANALYTIQUE") REFERENCES "Default"."REPARTITION_ANALYTIQUE"("ID");


--
-- TOC entry 21174 (class 2606 OID 6929157)
-- Name: REPARTITION_ANALYTIQUE_ELEMENT REPARTITION_ANALYTIQUE_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21175 (class 2606 OID 6929162)
-- Name: REPARTITION_ANALYTIQUE_ELEMENT REPARTITION_ANALYTIQUE_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21170 (class 2606 OID 6929167)
-- Name: REPARTITION_ANALYTIQUE REPARTITION_ANALYTIQUE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21171 (class 2606 OID 6929172)
-- Name: REPARTITION_ANALYTIQUE REPARTITION_ANALYTIQUE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21176 (class 2606 OID 6929177)
-- Name: REPRISE_TRAVAIL REPRISE_TRAVAIL_ID_MOTIF_ARRET_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."REPRISE_TRAVAIL"
    ADD CONSTRAINT "REPRISE_TRAVAIL_ID_MOTIF_ARRET_TRAVAIL_fkey" FOREIGN KEY ("ID_MOTIF_ARRET_TRAVAIL") REFERENCES "Common"."MOTIF_ARRET_TRAVAIL"("ID");


--
-- TOC entry 21177 (class 2606 OID 6929182)
-- Name: REPRISE_TRAVAIL REPRISE_TRAVAIL_ID_MOTIF_REPRISE_ARRET_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."REPRISE_TRAVAIL"
    ADD CONSTRAINT "REPRISE_TRAVAIL_ID_MOTIF_REPRISE_ARRET_TRAVAIL_fkey" FOREIGN KEY ("ID_MOTIF_REPRISE_ARRET_TRAVAIL") REFERENCES "Common"."MOTIF_REPRISE_ARRET_TRAVAIL"("ID");


--
-- TOC entry 21178 (class 2606 OID 6929187)
-- Name: REPRISE_TRAVAIL REPRISE_TRAVAIL_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."REPRISE_TRAVAIL"
    ADD CONSTRAINT "REPRISE_TRAVAIL_ID_SALARIE_fkey" FOREIGN KEY ("ID_SALARIE") REFERENCES "Default"."SALARIE"("ID");


--
-- TOC entry 21179 (class 2606 OID 6929192)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_AVOIR_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21180 (class 2606 OID 6929197)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21181 (class 2606 OID 6929202)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_ACHAT"
    ADD CONSTRAINT "SAISIE_ACHAT_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "Default"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 21182 (class 2606 OID 6929207)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21183 (class 2606 OID 6929212)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21184 (class 2606 OID 6929217)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21185 (class 2606 OID 6929222)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21186 (class 2606 OID 6929227)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21191 (class 2606 OID 6929232)
-- Name: SAISIE_KM_ELEMENT SAISIE_KM_ELEMENT_ID_ECRITURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_KM_ELEMENT"
    ADD CONSTRAINT "SAISIE_KM_ELEMENT_ID_ECRITURE_fkey" FOREIGN KEY ("ID_ECRITURE") REFERENCES "Default"."ECRITURE"("ID");


--
-- TOC entry 21192 (class 2606 OID 6929237)
-- Name: SAISIE_KM_ELEMENT SAISIE_KM_ELEMENT_ID_SAISIE_KM_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_KM_ELEMENT"
    ADD CONSTRAINT "SAISIE_KM_ELEMENT_ID_SAISIE_KM_fkey" FOREIGN KEY ("ID_SAISIE_KM") REFERENCES "Default"."SAISIE_KM"("ID");


--
-- TOC entry 21193 (class 2606 OID 6929242)
-- Name: SAISIE_KM_ELEMENT SAISIE_KM_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21194 (class 2606 OID 6929247)
-- Name: SAISIE_KM_ELEMENT SAISIE_KM_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21187 (class 2606 OID 6929252)
-- Name: SAISIE_KM SAISIE_KM_ID_JOURNAL_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_KM"
    ADD CONSTRAINT "SAISIE_KM_ID_JOURNAL_fkey" FOREIGN KEY ("ID_JOURNAL") REFERENCES "Default"."JOURNAL"("ID");


--
-- TOC entry 21188 (class 2606 OID 6929257)
-- Name: SAISIE_KM SAISIE_KM_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21189 (class 2606 OID 6929262)
-- Name: SAISIE_KM SAISIE_KM_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21190 (class 2606 OID 6929267)
-- Name: SAISIE_KM SAISIE_KM_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21195 (class 2606 OID 6929272)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21196 (class 2606 OID 6929277)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_AVOIR_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21197 (class 2606 OID 6929282)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21198 (class 2606 OID 6929287)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_COMPTE_PCE_PRODUIT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_COMPTOIR"
    ADD CONSTRAINT "SAISIE_VENTE_COMPTOIR_ID_COMPTE_PCE_PRODUIT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PRODUIT") REFERENCES "Default"."COMPTE_PCE"("ID");


--
-- TOC entry 21199 (class 2606 OID 6929292)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_COMPTE_PCE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21200 (class 2606 OID 6929297)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_COMPTOIR"
    ADD CONSTRAINT "SAISIE_VENTE_COMPTOIR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "Default"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 21201 (class 2606 OID 6929302)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21202 (class 2606 OID 6929307)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21203 (class 2606 OID 6929312)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21204 (class 2606 OID 6929317)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21205 (class 2606 OID 6929322)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21230 (class 2606 OID 6929327)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FA#4473c5996dbaffbc4349e7d4fe1db8cb#N_COULEUR_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FA#4473c5996dbaffbc4349e7d4fe1db8cb#N_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "Default"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 21231 (class 2606 OID 6929332)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_TAILLE") REFERENCES "Default"."ARTICLE_DECLINAISON_TAILLE"("ID");


--
-- TOC entry 21232 (class 2606 OID 6929337)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21233 (class 2606 OID 6929342)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_COMMANDE_CLIENT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_COMMANDE_CLIENT_ELEMENT_fkey" FOREIGN KEY ("ID_COMMANDE_CLIENT_ELEMENT") REFERENCES "Default"."COMMANDE_CLIENT_ELEMENT"("ID");


--
-- TOC entry 21234 (class 2606 OID 6929347)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21235 (class 2606 OID 6929352)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21236 (class 2606 OID 6929357)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21237 (class 2606 OID 6929362)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_ECO_CONTRIBUTION_fkey" FOREIGN KEY ("ID_ECO_CONTRIBUTION") REFERENCES "Common"."ECO_CONTRIBUTION"("ID");


--
-- TOC entry 21238 (class 2606 OID 6929367)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21239 (class 2606 OID 6929372)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 21240 (class 2606 OID 6929377)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 21241 (class 2606 OID 6929382)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "Default"."METRIQUE"("ID");


--
-- TOC entry 21242 (class 2606 OID 6929387)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "Default"."MODE_VENTE_ARTICLE"("ID");


--
-- TOC entry 21243 (class 2606 OID 6929392)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_PAYS_fkey" FOREIGN KEY ("ID_PAYS") REFERENCES "Default"."PAYS"("ID");


--
-- TOC entry 21244 (class 2606 OID 6929397)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21245 (class 2606 OID 6929402)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "Default"."STYLE"("ID_STYLE");


--
-- TOC entry 21246 (class 2606 OID 6929407)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

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


--
-- TOC entry 21247 (class 2606 OID 6929412)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_TICKET_CAISSE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_TICKET_CAISSE_fkey" FOREIGN KEY ("ID_TICKET_CAISSE") REFERENCES "Default"."TICKET_CAISSE"("ID");


--
-- TOC entry 21248 (class 2606 OID 6929417)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: Default; Owner: openconcerto
--

ALTER TABLE ONLY "Default"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "Default"."UNITE_VENTE"("ID");


--
-- TOC entry 21249 (class 2606 OID 6929422)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_USER_COMMON_CREATE_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_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 21250 (class 2606 OID 6929427)
