-- Name: FIN_CONTRAT FIN_CONTRAT_ID_MOTIF_FIN_CONTRAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 21915 (class 2606 OID 6932847)
-- Name: FIN_CONTRAT FIN_CONTRAT_ID_TYPE_PREAVIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FIN_CONTRAT"
    ADD CONSTRAINT "FIN_CONTRAT_ID_TYPE_PREAVIS_fkey" FOREIGN KEY ("ID_TYPE_PREAVIS") REFERENCES "Common"."TYPE_PREAVIS"("ID");


--
-- TOC entry 21916 (class 2606 OID 6932852)
-- Name: FOURNISSEUR FOURNISSEUR_ID_ADRESSE_E_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FOURNISSEUR"
    ADD CONSTRAINT "FOURNISSEUR_ID_ADRESSE_E_fkey" FOREIGN KEY ("ID_ADRESSE_E") REFERENCES "OpenConcerto42"."ADRESSE"("ID_ADRESSE") ON DELETE CASCADE;


--
-- TOC entry 21917 (class 2606 OID 6932857)
-- Name: FOURNISSEUR FOURNISSEUR_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21918 (class 2606 OID 6932862)
-- Name: FOURNISSEUR FOURNISSEUR_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21919 (class 2606 OID 6932867)
-- Name: FOURNISSEUR FOURNISSEUR_ID_COMPTE_PCE_CHARGE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FOURNISSEUR"
    ADD CONSTRAINT "FOURNISSEUR_ID_COMPTE_PCE_CHARGE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_CHARGE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21920 (class 2606 OID 6932872)
-- Name: FOURNISSEUR FOURNISSEUR_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21921 (class 2606 OID 6932877)
-- Name: FOURNISSEUR FOURNISSEUR_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21922 (class 2606 OID 6932882)
-- Name: FOURNISSEUR FOURNISSEUR_ID_LANGUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21923 (class 2606 OID 6932887)
-- Name: FOURNISSEUR FOURNISSEUR_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21924 (class 2606 OID 6932892)
-- Name: FOURNISSEUR FOURNISSEUR_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21925 (class 2606 OID 6932897)
-- Name: FOURNISSEUR FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21926 (class 2606 OID 6932902)
-- Name: FRAIS_DOCUMENT FRAIS_DOCUMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21927 (class 2606 OID 6932907)
-- Name: FWK_MODULE_DEP FWK_MODULE_DEP_ID_MODULE_NEEDED_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FWK_MODULE_DEP"
    ADD CONSTRAINT "FWK_MODULE_DEP_ID_MODULE_NEEDED_fkey" FOREIGN KEY ("ID_MODULE_NEEDED") REFERENCES "OpenConcerto42"."FWK_MODULE_METADATA"("ID") ON UPDATE CASCADE ON DELETE RESTRICT;


--
-- TOC entry 21928 (class 2606 OID 6932912)
-- Name: FWK_MODULE_DEP FWK_MODULE_DEP_ID_MODULE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."FWK_MODULE_DEP"
    ADD CONSTRAINT "FWK_MODULE_DEP_ID_MODULE_fkey" FOREIGN KEY ("ID_MODULE") REFERENCES "OpenConcerto42"."FWK_MODULE_METADATA"("ID") ON UPDATE CASCADE ON DELETE CASCADE;


--
-- TOC entry 21929 (class 2606 OID 6932917)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_CLASSEMENT_CONVENTIONNEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."INFOS_SALARIE_PAYE"
    ADD CONSTRAINT "INFOS_SALARIE_PAYE_ID_CLASSEMENT_CONVENTIONNEL_fkey" FOREIGN KEY ("ID_CLASSEMENT_CONVENTIONNEL") REFERENCES "OpenConcerto42"."CLASSEMENT_CONVENTIONNEL"("ID") ON DELETE CASCADE;


--
-- TOC entry 21930 (class 2606 OID 6932922)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_COEFF_PRIME_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."INFOS_SALARIE_PAYE"
    ADD CONSTRAINT "INFOS_SALARIE_PAYE_ID_COEFF_PRIME_fkey" FOREIGN KEY ("ID_COEFF_PRIME") REFERENCES "OpenConcerto42"."COEFF_PRIME"("ID");


--
-- TOC entry 21931 (class 2606 OID 6932927)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_CONTRAT_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."INFOS_SALARIE_PAYE"
    ADD CONSTRAINT "INFOS_SALARIE_PAYE_ID_CONTRAT_SALARIE_fkey" FOREIGN KEY ("ID_CONTRAT_SALARIE") REFERENCES "OpenConcerto42"."CONTRAT_SALARIE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21932 (class 2606 OID 6932932)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_IDCC_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."INFOS_SALARIE_PAYE"
    ADD CONSTRAINT "INFOS_SALARIE_PAYE_ID_IDCC_fkey" FOREIGN KEY ("ID_IDCC") REFERENCES "Common"."IDCC"("ID") ON DELETE CASCADE;


--
-- TOC entry 21933 (class 2606 OID 6932937)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21934 (class 2606 OID 6932942)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 21935 (class 2606 OID 6932947)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 21936 (class 2606 OID 6932952)
-- Name: JOURNAL JOURNAL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21937 (class 2606 OID 6932957)
-- Name: JOURNAL JOURNAL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21938 (class 2606 OID 6932962)
-- Name: LOT LOT_ID_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."LOT"
    ADD CONSTRAINT "LOT_ID_STOCK_fkey" FOREIGN KEY ("ID_STOCK") REFERENCES "OpenConcerto42"."STOCK"("ID");


--
-- TOC entry 21939 (class 2606 OID 6932967)
-- Name: LOT_LIVRAISON LOT_LIVRAISON_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21940 (class 2606 OID 6932972)
-- Name: LOT_LIVRAISON LOT_LIVRAISON_ID_BON_DE_LIVRAISON_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."LOT_LIVRAISON"
    ADD CONSTRAINT "LOT_LIVRAISON_ID_BON_DE_LIVRAISON_ELEMENT_fkey" FOREIGN KEY ("ID_BON_DE_LIVRAISON_ELEMENT") REFERENCES "OpenConcerto42"."BON_DE_LIVRAISON_ELEMENT"("ID");


--
-- TOC entry 21941 (class 2606 OID 6932977)
-- Name: LOT_LIVRAISON LOT_LIVRAISON_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21942 (class 2606 OID 6932982)
-- Name: LOT_LIVRAISON LOT_LIVRAISON_ID_LOT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21943 (class 2606 OID 6932987)
-- Name: LOT_RECEPTION LOT_RECEPTION_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21944 (class 2606 OID 6932992)
-- Name: LOT_RECEPTION LOT_RECEPTION_ID_BON_RECEPTION_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."LOT_RECEPTION"
    ADD CONSTRAINT "LOT_RECEPTION_ID_BON_RECEPTION_ELEMENT_fkey" FOREIGN KEY ("ID_BON_RECEPTION_ELEMENT") REFERENCES "OpenConcerto42"."BON_RECEPTION_ELEMENT"("ID");


--
-- TOC entry 21945 (class 2606 OID 6932997)
-- Name: LOT_RECEPTION LOT_RECEPTION_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21946 (class 2606 OID 6933002)
-- Name: LOT_RECEPTION LOT_RECEPTION_ID_LOT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21947 (class 2606 OID 6933007)
-- Name: METRIQUE METRIQUE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21948 (class 2606 OID 6933012)
-- Name: METRIQUE METRIQUE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21950 (class 2606 OID 6933017)
-- Name: MODELE_COURRIER_CLIENT MODELE_COURRIER_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 21951 (class 2606 OID 6933022)
-- Name: MODELE_COURRIER_CLIENT MODELE_COURRIER_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 21949 (class 2606 OID 6933027)
-- Name: MODELE MODELE_ID_TYPE_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."MODELE"
    ADD CONSTRAINT "MODELE_ID_TYPE_MODELE_fkey" FOREIGN KEY ("ID_TYPE_MODELE") REFERENCES "Common"."TYPE_MODELE"("ID");


--
-- TOC entry 21952 (class 2606 OID 6933032)
-- Name: MODE_REGLEMENT MODE_REGLEMENT_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21953 (class 2606 OID 6933037)
-- Name: MODE_REGLEMENT MODE_REGLEMENT_ID_SEPA_MANDATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."MODE_REGLEMENT"
    ADD CONSTRAINT "MODE_REGLEMENT_ID_SEPA_MANDATE_fkey" FOREIGN KEY ("ID_SEPA_MANDATE") REFERENCES "OpenConcerto42"."SEPA_MANDATE"("ID");


--
-- TOC entry 21954 (class 2606 OID 6933042)
-- Name: MODE_REGLEMENT MODE_REGLEMENT_ID_TYPE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."MODE_REGLEMENT"
    ADD CONSTRAINT "MODE_REGLEMENT_ID_TYPE_REGLEMENT_fkey" FOREIGN KEY ("ID_TYPE_REGLEMENT") REFERENCES "OpenConcerto42"."TYPE_REGLEMENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21955 (class 2606 OID 6933047)
-- Name: MODE_REGLEMENT MODE_REGLEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21956 (class 2606 OID 6933052)
-- Name: MODE_REGLEMENT MODE_REGLEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21957 (class 2606 OID 6933057)
-- Name: MODE_VENTE_ARTICLE MODE_VENTE_ARTICLE_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21958 (class 2606 OID 6933062)
-- Name: MODE_VENTE_ARTICLE MODE_VENTE_ARTICLE_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21959 (class 2606 OID 6933067)
-- Name: MODE_VENTE_ARTICLE MODE_VENTE_ARTICLE_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21960 (class 2606 OID 6933072)
-- Name: MODE_VENTE_ARTICLE MODE_VENTE_ARTICLE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 21961 (class 2606 OID 6933077)
-- Name: MODE_VENTE_ARTICLE MODE_VENTE_ARTICLE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 21962 (class 2606 OID 6933082)
-- Name: MOIS MOIS_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21963 (class 2606 OID 6933087)
-- Name: MOIS MOIS_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21964 (class 2606 OID 6933092)
-- Name: MOUVEMENT MOUVEMENT_ID_MOUVEMENT_PERE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."MOUVEMENT"
    ADD CONSTRAINT "MOUVEMENT_ID_MOUVEMENT_PERE_fkey" FOREIGN KEY ("ID_MOUVEMENT_PERE") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 21965 (class 2606 OID 6933097)
-- Name: MOUVEMENT MOUVEMENT_ID_PIECE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."MOUVEMENT"
    ADD CONSTRAINT "MOUVEMENT_ID_PIECE_fkey" FOREIGN KEY ("ID_PIECE") REFERENCES "OpenConcerto42"."PIECE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21966 (class 2606 OID 6933102)
-- Name: MOUVEMENT MOUVEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21967 (class 2606 OID 6933107)
-- Name: MOUVEMENT MOUVEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21968 (class 2606 OID 6933112)
-- Name: MOUVEMENT_STOCK MOUVEMENT_STOCK_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."MOUVEMENT_STOCK"
    ADD CONSTRAINT "MOUVEMENT_STOCK_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21969 (class 2606 OID 6933117)
-- Name: MOUVEMENT_STOCK MOUVEMENT_STOCK_ID_ETAT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."MOUVEMENT_STOCK"
    ADD CONSTRAINT "MOUVEMENT_STOCK_ID_ETAT_STOCK_fkey" FOREIGN KEY ("ID_ETAT_STOCK") REFERENCES "OpenConcerto42"."ETAT_STOCK"("ID");


--
-- TOC entry 21970 (class 2606 OID 6933122)
-- Name: MOUVEMENT_STOCK MOUVEMENT_STOCK_ID_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."MOUVEMENT_STOCK"
    ADD CONSTRAINT "MOUVEMENT_STOCK_ID_STOCK_fkey" FOREIGN KEY ("ID_STOCK") REFERENCES "OpenConcerto42"."STOCK"("ID");


--
-- TOC entry 21971 (class 2606 OID 6933127)
-- Name: MOUVEMENT_STOCK MOUVEMENT_STOCK_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21972 (class 2606 OID 6933132)
-- Name: MOUVEMENT_STOCK MOUVEMENT_STOCK_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21973 (class 2606 OID 6933137)
-- Name: NATURE_COMPTE NATURE_COMPTE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21974 (class 2606 OID 6933142)
-- Name: NATURE_COMPTE NATURE_COMPTE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21975 (class 2606 OID 6933147)
-- Name: NUMEROTATION_AUTO NUMEROTATION_AUTO_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21976 (class 2606 OID 6933152)
-- Name: NUMEROTATION_AUTO NUMEROTATION_AUTO_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21977 (class 2606 OID 6933157)
-- Name: OBJECTIF_COMMERCIAL OBJECTIF_COMMERCIAL_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21978 (class 2606 OID 6933162)
-- Name: PAS PAS_ID_TYPE_TAUX_PAS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PAS"
    ADD CONSTRAINT "PAS_ID_TYPE_TAUX_PAS_fkey" FOREIGN KEY ("ID_TYPE_TAUX_PAS") REFERENCES "Common"."TYPE_TAUX_PAS"("ID");


--
-- TOC entry 21979 (class 2606 OID 6933167)
-- Name: PAYS PAYS_ID_LANGUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21980 (class 2606 OID 6933172)
-- Name: PAYS PAYS_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21981 (class 2606 OID 6933177)
-- Name: PAYS PAYS_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21982 (class 2606 OID 6933182)
-- Name: PAYS PAYS_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21983 (class 2606 OID 6933187)
-- Name: PIECE PIECE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21984 (class 2606 OID 6933192)
-- Name: PIECE PIECE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21985 (class 2606 OID 6933197)
-- Name: POSTE_ANALYTIQUE POSTE_ANALYTIQUE_ID_AXE_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21986 (class 2606 OID 6933202)
-- Name: POSTE_ANALYTIQUE POSTE_ANALYTIQUE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21987 (class 2606 OID 6933207)
-- Name: POSTE_ANALYTIQUE POSTE_ANALYTIQUE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21988 (class 2606 OID 6933212)
-- Name: PREFERENCES PREFERENCES_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21989 (class 2606 OID 6933217)
-- Name: PREFERENCES PREFERENCES_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21990 (class 2606 OID 6933222)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_ACHAT_INTRA_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_ACHAT_INTRA_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACHAT_INTRA") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21991 (class 2606 OID 6933227)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACHAT") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21992 (class 2606 OID 6933232)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_ACOMPTE_REGL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_ACOMPTE_REGL_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACOMPTE_REGL") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21993 (class 2606 OID 6933237)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_ACOMPTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_ACOMPTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACOMPTE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21994 (class 2606 OID 6933242)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_AVANCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_AVANCE_CLIENT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_AVANCE_CLIENT") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 21995 (class 2606 OID 6933247)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_BILAN_F_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_BILAN_F_fkey" FOREIGN KEY ("ID_COMPTE_PCE_BILAN_F") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21996 (class 2606 OID 6933252)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_BILAN_O_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_BILAN_O_fkey" FOREIGN KEY ("ID_COMPTE_PCE_BILAN_O") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21997 (class 2606 OID 6933257)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_CB_ATTENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 21998 (class 2606 OID 6933262)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_CLIENT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_CLIENT") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 21999 (class 2606 OID 6933267)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_FACTOR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_FACTOR_fkey" FOREIGN KEY ("ID_COMPTE_PCE_FACTOR") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22000 (class 2606 OID 6933272)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_COMPTE_PCE_FOURNISSEUR") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22001 (class 2606 OID 6933277)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_PAYE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PAYE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22002 (class 2606 OID 6933282)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_PORT_NON_SOUMIS_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_PORT_NON_SOUMIS_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PORT_NON_SOUMIS_ACHAT") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 22003 (class 2606 OID 6933287)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_PORT_NON_SOUMIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_PORT_NON_SOUMIS_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PORT_NON_SOUMIS") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 22004 (class 2606 OID 6933292)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_PORT_SOUMIS_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_PORT_SOUMIS_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PORT_SOUMIS_ACHAT") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 22005 (class 2606 OID 6933297)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_PORT_SOUMIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_PORT_SOUMIS_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PORT_SOUMIS") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 22006 (class 2606 OID 6933302)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_RESULTAT_PERTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_RESULTAT_PERTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_RESULTAT_PERTE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22007 (class 2606 OID 6933307)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_RESULTAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_RESULTAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_RESULTAT") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22008 (class 2606 OID 6933312)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_TVA_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_TVA_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TVA_ACHAT") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22009 (class 2606 OID 6933317)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_TVA_IMMO_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_TVA_IMMO_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TVA_IMMO") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22010 (class 2606 OID 6933322)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_TVA_INTRA_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_TVA_INTRA_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TVA_INTRA") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22011 (class 2606 OID 6933327)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_TVA_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_TVA_VENTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TVA_VENTE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22012 (class 2606 OID 6933332)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_VALEUR_ENCAISSEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_VALEUR_ENCAISSEMENT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_VALEUR_ENCAISSEMENT") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID");


--
-- TOC entry 22013 (class 2606 OID 6933337)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_VENTE_PRODUIT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_VENTE_PRODUIT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_VENTE_PRODUIT") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22014 (class 2606 OID 6933342)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_VENTE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_VENTE_SERVICE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_VENTE_SERVICE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22015 (class 2606 OID 6933347)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_JOURNAL_AN_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_JOURNAL_AN_fkey" FOREIGN KEY ("ID_JOURNAL_AN") REFERENCES "OpenConcerto42"."JOURNAL"("ID");


--
-- TOC entry 22016 (class 2606 OID 6933352)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_JOURNAL_CB_ATTENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22017 (class 2606 OID 6933357)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_JOURNAL_FACTOR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_JOURNAL_FACTOR_fkey" FOREIGN KEY ("ID_JOURNAL_FACTOR") REFERENCES "OpenConcerto42"."JOURNAL"("ID") ON DELETE CASCADE;


--
-- TOC entry 22018 (class 2606 OID 6933362)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_JOURNAL_VALEUR_ENCAISSEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_JOURNAL_VALEUR_ENCAISSEMENT_fkey" FOREIGN KEY ("ID_JOURNAL_VALEUR_ENCAISSEMENT") REFERENCES "OpenConcerto42"."JOURNAL"("ID");


--
-- TOC entry 22019 (class 2606 OID 6933367)
-- Name: PREF_NODE PREF_NODE_ID_PARENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22020 (class 2606 OID 6933372)
-- Name: PREF_VALUE PREF_VALUE_ID_NODE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."PREF_VALUE"
    ADD CONSTRAINT "PREF_VALUE_ID_NODE_fkey" FOREIGN KEY ("ID_NODE") REFERENCES "OpenConcerto42"."PREF_NODE"("ID");


--
-- TOC entry 23099 (class 2606 OID 6941086)
-- Name: RAPPROCHEMENT_BANCAIRE RAPPROCHEMENT_BANCAIRE_ID_ECRITURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 23100 (class 2606 OID 6941081)
-- Name: RAPPROCHEMENT_BANCAIRE RAPPROCHEMENT_BANCAIRE_ID_RELEVE_BANCAIRE_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."RAPPROCHEMENT_BANCAIRE"
    ADD CONSTRAINT "RAPPROCHEMENT_BANCAIRE_ID_RELEVE_BANCAIRE_ELEMENT_fkey" FOREIGN KEY ("ID_RELEVE_BANCAIRE_ELEMENT") REFERENCES "OpenConcerto42"."RELEVE_BANCAIRE_ELEMENT"("ID");


--
-- TOC entry 22021 (class 2606 OID 6933377)
-- Name: REFERENCE_CLIENT REFERENCE_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22022 (class 2606 OID 6933382)
-- Name: REFERENCE_CLIENT REFERENCE_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22023 (class 2606 OID 6933387)
-- Name: REGIME_BASE REGIME_BASE_ID_CODE_REGIME_AT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_CODE_REGIME_AT_fkey" FOREIGN KEY ("ID_CODE_REGIME_AT") REFERENCES "OpenConcerto42"."CODE_REGIME"("ID") ON DELETE CASCADE;


--
-- TOC entry 22024 (class 2606 OID 6933392)
-- Name: REGIME_BASE REGIME_BASE_ID_CODE_REGIME_BASE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_CODE_REGIME_BASE_fkey" FOREIGN KEY ("ID_CODE_REGIME_BASE") REFERENCES "OpenConcerto42"."CODE_REGIME"("ID") ON DELETE CASCADE;


--
-- TOC entry 22025 (class 2606 OID 6933397)
-- Name: REGIME_BASE REGIME_BASE_ID_CODE_REGIME_MALADIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_CODE_REGIME_MALADIE_fkey" FOREIGN KEY ("ID_CODE_REGIME_MALADIE") REFERENCES "OpenConcerto42"."CODE_REGIME"("ID") ON DELETE CASCADE;


--
-- TOC entry 22026 (class 2606 OID 6933402)
-- Name: REGIME_BASE REGIME_BASE_ID_CODE_REGIME_VIEL_P_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_CODE_REGIME_VIEL_P_fkey" FOREIGN KEY ("ID_CODE_REGIME_VIEL_P") REFERENCES "OpenConcerto42"."CODE_REGIME"("ID") ON DELETE CASCADE;


--
-- TOC entry 22027 (class 2606 OID 6933407)
-- Name: REGIME_BASE REGIME_BASE_ID_CODE_REGIME_VIEL_S_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_CODE_REGIME_VIEL_S_fkey" FOREIGN KEY ("ID_CODE_REGIME_VIEL_S") REFERENCES "OpenConcerto42"."CODE_REGIME"("ID") ON DELETE CASCADE;


--
-- TOC entry 22028 (class 2606 OID 6933412)
-- Name: REGIME_BASE REGIME_BASE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22029 (class 2606 OID 6933417)
-- Name: REGIME_BASE REGIME_BASE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22030 (class 2606 OID 6933422)
-- Name: REGLEMENT_PAYE REGLEMENT_PAYE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22031 (class 2606 OID 6933427)
-- Name: REGLEMENT_PAYE REGLEMENT_PAYE_ID_MODE_REGLEMENT_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."REGLEMENT_PAYE"
    ADD CONSTRAINT "REGLEMENT_PAYE_ID_MODE_REGLEMENT_PAYE_fkey" FOREIGN KEY ("ID_MODE_REGLEMENT_PAYE") REFERENCES "OpenConcerto42"."MODE_REGLEMENT_PAYE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22032 (class 2606 OID 6933432)
-- Name: REGLEMENT_PAYE REGLEMENT_PAYE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22033 (class 2606 OID 6933437)
-- Name: REGLEMENT_PAYE REGLEMENT_PAYE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22040 (class 2606 OID 6933442)
-- Name: REGLER_MONTANT_ELEMENT REGLER_MONTANT_ELEMENT_ID_ECHEANCE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."REGLER_MONTANT_ELEMENT"
    ADD CONSTRAINT "REGLER_MONTANT_ELEMENT_ID_ECHEANCE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_ECHEANCE_FOURNISSEUR") REFERENCES "OpenConcerto42"."ECHEANCE_FOURNISSEUR"("ID");


--
-- TOC entry 22041 (class 2606 OID 6933447)
-- Name: REGLER_MONTANT_ELEMENT REGLER_MONTANT_ELEMENT_ID_MOUVEMENT_ECHEANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."REGLER_MONTANT_ELEMENT"
    ADD CONSTRAINT "REGLER_MONTANT_ELEMENT_ID_MOUVEMENT_ECHEANCE_fkey" FOREIGN KEY ("ID_MOUVEMENT_ECHEANCE") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID");


--
-- TOC entry 22042 (class 2606 OID 6933452)
-- Name: REGLER_MONTANT_ELEMENT REGLER_MONTANT_ELEMENT_ID_REGLER_MONTANT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."REGLER_MONTANT_ELEMENT"
    ADD CONSTRAINT "REGLER_MONTANT_ELEMENT_ID_REGLER_MONTANT_fkey" FOREIGN KEY ("ID_REGLER_MONTANT") REFERENCES "OpenConcerto42"."REGLER_MONTANT"("ID");


--
-- TOC entry 22034 (class 2606 OID 6933457)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_ECHEANCE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."REGLER_MONTANT"
    ADD CONSTRAINT "REGLER_MONTANT_ID_ECHEANCE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_ECHEANCE_FOURNISSEUR") REFERENCES "OpenConcerto42"."ECHEANCE_FOURNISSEUR"("ID") ON DELETE CASCADE;


--
-- TOC entry 22035 (class 2606 OID 6933462)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22036 (class 2606 OID 6933467)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22037 (class 2606 OID 6941147)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."REGLER_MONTANT"
    ADD CONSTRAINT "REGLER_MONTANT_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto42"."MOUVEMENT"("ID");


--
-- TOC entry 22038 (class 2606 OID 6933472)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22039 (class 2606 OID 6933477)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22043 (class 2606 OID 6933482)
-- Name: RELANCE RELANCE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22044 (class 2606 OID 6933487)
-- Name: RELANCE RELANCE_ID_ECHEANCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."RELANCE"
    ADD CONSTRAINT "RELANCE_ID_ECHEANCE_CLIENT_fkey" FOREIGN KEY ("ID_ECHEANCE_CLIENT") REFERENCES "OpenConcerto42"."ECHEANCE_CLIENT"("ID");


--
-- TOC entry 22045 (class 2606 OID 6933492)
-- Name: RELANCE RELANCE_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22046 (class 2606 OID 6933497)
-- Name: RELANCE RELANCE_ID_TYPE_LETTRE_RELANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."RELANCE"
    ADD CONSTRAINT "RELANCE_ID_TYPE_LETTRE_RELANCE_fkey" FOREIGN KEY ("ID_TYPE_LETTRE_RELANCE") REFERENCES "OpenConcerto42"."TYPE_LETTRE_RELANCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22047 (class 2606 OID 6933502)
-- Name: RELANCE RELANCE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22048 (class 2606 OID 6933507)
-- Name: RELANCE RELANCE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 23098 (class 2606 OID 6941063)
-- Name: RELEVE_BANCAIRE_ELEMENT RELEVE_BANCAIRE_ELEMENT_ID_RELEVE_BANCAIRE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."RELEVE_BANCAIRE_ELEMENT"
    ADD CONSTRAINT "RELEVE_BANCAIRE_ELEMENT_ID_RELEVE_BANCAIRE_fkey" FOREIGN KEY ("ID_RELEVE_BANCAIRE") REFERENCES "OpenConcerto42"."RELEVE_BANCAIRE"("ID");


--
-- TOC entry 23097 (class 2606 OID 6941035)
-- Name: RELEVE_BANCAIRE RELEVE_BANCAIRE_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22051 (class 2606 OID 6933512)
-- Name: REPARTITION_ANALYTIQUE_ELEMENT REPARTITION_ANALYTIQUE_ELEMENT_ID_POSTE_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."REPARTITION_ANALYTIQUE_ELEMENT"
    ADD CONSTRAINT "REPARTITION_ANALYTIQUE_ELEMENT_ID_POSTE_ANALYTIQUE_fkey" FOREIGN KEY ("ID_POSTE_ANALYTIQUE") REFERENCES "OpenConcerto42"."POSTE_ANALYTIQUE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22052 (class 2606 OID 6933517)
-- Name: REPARTITION_ANALYTIQUE_ELEMENT REPARTITION_ANALYTIQUE_ELEMENT_ID_REPARTITION_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22053 (class 2606 OID 6933522)
-- Name: REPARTITION_ANALYTIQUE_ELEMENT REPARTITION_ANALYTIQUE_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 22054 (class 2606 OID 6933527)
-- Name: REPARTITION_ANALYTIQUE_ELEMENT REPARTITION_ANALYTIQUE_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 22049 (class 2606 OID 6933532)
-- Name: REPARTITION_ANALYTIQUE REPARTITION_ANALYTIQUE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22050 (class 2606 OID 6933537)
-- Name: REPARTITION_ANALYTIQUE REPARTITION_ANALYTIQUE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22055 (class 2606 OID 6933542)
-- Name: REPRISE_TRAVAIL REPRISE_TRAVAIL_ID_MOTIF_ARRET_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 22056 (class 2606 OID 6933547)
-- Name: REPRISE_TRAVAIL REPRISE_TRAVAIL_ID_MOTIF_REPRISE_ARRET_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 22057 (class 2606 OID 6933552)
-- Name: REPRISE_TRAVAIL REPRISE_TRAVAIL_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22058 (class 2606 OID 6933557)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_AVOIR_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SAISIE_ACHAT"
    ADD CONSTRAINT "SAISIE_ACHAT_ID_AVOIR_FOURNISSEUR_fkey" FOREIGN KEY ("ID_AVOIR_FOURNISSEUR") REFERENCES "OpenConcerto42"."AVOIR_FOURNISSEUR"("ID") ON DELETE CASCADE;


--
-- TOC entry 22059 (class 2606 OID 6933562)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22060 (class 2606 OID 6933567)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22061 (class 2606 OID 6933572)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22062 (class 2606 OID 6933577)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22063 (class 2606 OID 6933582)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22064 (class 2606 OID 6933587)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22065 (class 2606 OID 6933592)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22070 (class 2606 OID 6933597)
-- Name: SAISIE_KM_ELEMENT SAISIE_KM_ELEMENT_ID_ECRITURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SAISIE_KM_ELEMENT"
    ADD CONSTRAINT "SAISIE_KM_ELEMENT_ID_ECRITURE_fkey" FOREIGN KEY ("ID_ECRITURE") REFERENCES "OpenConcerto42"."ECRITURE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22071 (class 2606 OID 6933602)
-- Name: SAISIE_KM_ELEMENT SAISIE_KM_ELEMENT_ID_SAISIE_KM_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SAISIE_KM_ELEMENT"
    ADD CONSTRAINT "SAISIE_KM_ELEMENT_ID_SAISIE_KM_fkey" FOREIGN KEY ("ID_SAISIE_KM") REFERENCES "OpenConcerto42"."SAISIE_KM"("ID") ON DELETE CASCADE;


--
-- TOC entry 22072 (class 2606 OID 6933607)
-- Name: SAISIE_KM_ELEMENT SAISIE_KM_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 22073 (class 2606 OID 6933612)
-- Name: SAISIE_KM_ELEMENT SAISIE_KM_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 22066 (class 2606 OID 6933617)
-- Name: SAISIE_KM SAISIE_KM_ID_JOURNAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SAISIE_KM"
    ADD CONSTRAINT "SAISIE_KM_ID_JOURNAL_fkey" FOREIGN KEY ("ID_JOURNAL") REFERENCES "OpenConcerto42"."JOURNAL"("ID") ON DELETE CASCADE;


--
-- TOC entry 22067 (class 2606 OID 6933622)
-- Name: SAISIE_KM SAISIE_KM_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22068 (class 2606 OID 6933627)
-- Name: SAISIE_KM SAISIE_KM_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22069 (class 2606 OID 6933632)
-- Name: SAISIE_KM SAISIE_KM_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22074 (class 2606 OID 6933637)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SAISIE_VENTE_COMPTOIR"
    ADD CONSTRAINT "SAISIE_VENTE_COMPTOIR_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto42"."ARTICLE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22075 (class 2606 OID 6933642)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_AVOIR_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22076 (class 2606 OID 6933647)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22077 (class 2606 OID 6933652)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_COMPTE_PCE_PRODUIT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22078 (class 2606 OID 6933657)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_COMPTE_PCE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22079 (class 2606 OID 6933662)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22080 (class 2606 OID 6933667)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22081 (class 2606 OID 6933672)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22082 (class 2606 OID 6933677)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22083 (class 2606 OID 6933682)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 22084 (class 2606 OID 6933687)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 22109 (class 2606 OID 6933692)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FA#4473c5996dbaffbc4349e7d4fe1db8cb#N_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FA#4473c5996dbaffbc4349e7d4fe1db8cb#N_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "OpenConcerto42"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 22110 (class 2606 OID 6933697)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22111 (class 2606 OID 6933702)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22112 (class 2606 OID 6933707)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_COMMANDE_CLIENT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22113 (class 2606 OID 6933712)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22114 (class 2606 OID 6933717)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22115 (class 2606 OID 6933722)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22116 (class 2606 OID 6933727)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 22117 (class 2606 OID 6933732)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22118 (class 2606 OID 6933737)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22119 (class 2606 OID 6933742)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22120 (class 2606 OID 6933747)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22121 (class 2606 OID 6933752)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22122 (class 2606 OID 6933757)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22123 (class 2606 OID 6933762)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22124 (class 2606 OID 6933767)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22125 (class 2606 OID 6933772)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22126 (class 2606 OID 6933777)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_TICKET_CAISSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_TICKET_CAISSE_fkey" FOREIGN KEY ("ID_TICKET_CAISSE") REFERENCES "OpenConcerto42"."TICKET_CAISSE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22127 (class 2606 OID 6933782)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22128 (class 2606 OID 6933787)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."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 22129 (class 2606 OID 6933792)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22085 (class 2606 OID 6933797)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_ADRESSE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22086 (class 2606 OID 6933802)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22087 (class 2606 OID 6933807)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_AVOIR_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22088 (class 2606 OID 6933812)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22089 (class 2606 OID 6933817)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_CLIENT_DEPARTEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22090 (class 2606 OID 6933822)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22091 (class 2606 OID 6933827)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22092 (class 2606 OID 6933832)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_COMPTE_PCE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22093 (class 2606 OID 6933837)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_COMPTE_PCE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_COMPTE_PCE_VENTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_VENTE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22094 (class 2606 OID 6933842)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22095 (class 2606 OID 6933847)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_DEVIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_DEVIS_fkey" FOREIGN KEY ("ID_DEVIS") REFERENCES "OpenConcerto42"."DEVIS"("ID_DEVIS") ON DELETE CASCADE;


--
-- TOC entry 22096 (class 2606 OID 6933852)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_FACTURATION_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22097 (class 2606 OID 6933857)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22098 (class 2606 OID 6933862)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22099 (class 2606 OID 6933867)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_MOIS_CCIP_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_MOIS_CCIP_fkey" FOREIGN KEY ("ID_MOIS_CCIP") REFERENCES "OpenConcerto42"."MOIS"("ID") ON DELETE CASCADE;


--
-- TOC entry 22100 (class 2606 OID 6933872)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22101 (class 2606 OID 6933877)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_REFERENCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SAISIE_VENTE_FACTURE"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ID_REFERENCE_CLIENT_fkey" FOREIGN KEY ("ID_REFERENCE_CLIENT") REFERENCES "OpenConcerto42"."REFERENCE_CLIENT"("ID") ON DELETE CASCADE;


--
-- TOC entry 22102 (class 2606 OID 6933882)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_SDD_MESSAGE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22103 (class 2606 OID 6933887)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22104 (class 2606 OID 6933892)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_TAXE_FRAIS_DOCUMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22105 (class 2606 OID 6933897)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22106 (class 2606 OID 6933902)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22107 (class 2606 OID 6933907)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22108 (class 2606 OID 6933912)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22130 (class 2606 OID 6933917)
-- Name: SALARIE SALARIE_ID_CUMULS_CONGES_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_CUMULS_CONGES_fkey" FOREIGN KEY ("ID_CUMULS_CONGES") REFERENCES "OpenConcerto42"."CUMULS_CONGES"("ID") ON DELETE CASCADE;


--
-- TOC entry 22131 (class 2606 OID 6933922)
-- Name: SALARIE SALARIE_ID_CUMULS_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_CUMULS_PAYE_fkey" FOREIGN KEY ("ID_CUMULS_PAYE") REFERENCES "OpenConcerto42"."CUMULS_PAYE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22132 (class 2606 OID 6933927)
-- Name: SALARIE SALARIE_ID_ETAT_CIVIL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_ETAT_CIVIL_fkey" FOREIGN KEY ("ID_ETAT_CIVIL") REFERENCES "OpenConcerto42"."ETAT_CIVIL"("ID") ON DELETE CASCADE;


--
-- TOC entry 22133 (class 2606 OID 6933932)
-- Name: SALARIE SALARIE_ID_FICHE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_FICHE_PAYE_fkey" FOREIGN KEY ("ID_FICHE_PAYE") REFERENCES "OpenConcerto42"."FICHE_PAYE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22134 (class 2606 OID 6933937)
-- Name: SALARIE SALARIE_ID_INFOS_SALARIE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_INFOS_SALARIE_PAYE_fkey" FOREIGN KEY ("ID_INFOS_SALARIE_PAYE") REFERENCES "OpenConcerto42"."INFOS_SALARIE_PAYE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22135 (class 2606 OID 6933942)
-- Name: SALARIE SALARIE_ID_PAS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22136 (class 2606 OID 6933947)
-- Name: SALARIE SALARIE_ID_REGLEMENT_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_REGLEMENT_PAYE_fkey" FOREIGN KEY ("ID_REGLEMENT_PAYE") REFERENCES "OpenConcerto42"."REGLEMENT_PAYE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22137 (class 2606 OID 6933952)
-- Name: SALARIE SALARIE_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_TITRE_PERSONNEL_fkey" FOREIGN KEY ("ID_TITRE_PERSONNEL") REFERENCES "OpenConcerto42"."TITRE_PERSONNEL"("ID") ON DELETE CASCADE;


--
-- TOC entry 22138 (class 2606 OID 6933957)
-- Name: SALARIE SALARIE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22139 (class 2606 OID 6933962)
-- Name: SALARIE SALARIE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22140 (class 2606 OID 6933967)
-- Name: SALARIE SALARIE_ID_USER_COMMON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22141 (class 2606 OID 6933972)
-- Name: SALARIE SALARIE_ID_VARIABLE_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."SALARIE"
    ADD CONSTRAINT "SALARIE_ID_VARIABLE_SALARIE_fkey" FOREIGN KEY ("ID_VARIABLE_SALARIE") REFERENCES "OpenConcerto42"."VARIABLE_SALARIE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22142 (class 2606 OID 6933977)
-- Name: SEPA_MANDATE SEPA_MANDATE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22143 (class 2606 OID 6933982)
-- Name: SITUATION_FAMILIALE SITUATION_FAMILIALE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22144 (class 2606 OID 6933987)
-- Name: SITUATION_FAMILIALE SITUATION_FAMILIALE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22145 (class 2606 OID 6933992)
-- Name: STOCK STOCK_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22146 (class 2606 OID 6933997)
-- Name: STOCK STOCK_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22147 (class 2606 OID 6934002)
-- Name: STOCK STOCK_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22148 (class 2606 OID 6934007)
-- Name: STOCK STOCK_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22151 (class 2606 OID 6934012)
-- Name: TARIF_ARTICLE_CLIENT TARIF_ARTICLE_CLIENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22152 (class 2606 OID 6934017)
-- Name: TARIF_ARTICLE_CLIENT TARIF_ARTICLE_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22153 (class 2606 OID 6934022)
-- Name: TARIF_FAMILLE_ARTICLE_CLIENT TARIF_FAMILLE_ARTICLE_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22154 (class 2606 OID 6934027)
-- Name: TARIF_FAMILLE_ARTICLE_CLIENT TARIF_FAMILLE_ARTICLE_CLIENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22149 (class 2606 OID 6934032)
-- Name: TARIF TARIF_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22150 (class 2606 OID 6934037)
-- Name: TARIF TARIF_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22155 (class 2606 OID 6934042)
-- Name: TARIF_QUANTITE TARIF_QUANTITE_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22165 (class 2606 OID 6934047)
-- Name: TAXE_CATEGORIE_COMPTABLE TAXE_CATEGORIE_COMPTABLE_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22166 (class 2606 OID 6934052)
-- Name: TAXE_CATEGORIE_COMPTABLE TAXE_CATEGORIE_COMPTABLE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22167 (class 2606 OID 6934057)
-- Name: TAXE_CATEGORIE_COMPTABLE TAXE_CATEGORIE_COMPTABLE_ID_COMPTE_PCE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22168 (class 2606 OID 6934062)
-- Name: TAXE_CATEGORIE_COMPTABLE TAXE_CATEGORIE_COMPTABLE_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22169 (class 2606 OID 6934067)
-- Name: TAXE_COMPLEMENTAIRE TAXE_COMPLEMENTAIRE_ID_COMPTE_PCE_PRODUITS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22170 (class 2606 OID 6934072)
-- Name: TAXE_COMPLEMENTAIRE TAXE_COMPLEMENTAIRE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22156 (class 2606 OID 6934077)
-- Name: TAXE TAXE_ID_COMPTE_PCE_COLLECTE_INTRA_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22157 (class 2606 OID 6934082)
-- Name: TAXE TAXE_ID_COMPTE_PCE_COLLECTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."TAXE"
    ADD CONSTRAINT "TAXE_ID_COMPTE_PCE_COLLECTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_COLLECTE") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22158 (class 2606 OID 6934087)
-- Name: TAXE TAXE_ID_COMPTE_PCE_DED_INTRA_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22159 (class 2606 OID 6934092)
-- Name: TAXE TAXE_ID_COMPTE_PCE_DED_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."TAXE"
    ADD CONSTRAINT "TAXE_ID_COMPTE_PCE_DED_fkey" FOREIGN KEY ("ID_COMPTE_PCE_DED") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22160 (class 2606 OID 6934097)
-- Name: TAXE TAXE_ID_COMPTE_PCE_VENTE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22161 (class 2606 OID 6934102)
-- Name: TAXE TAXE_ID_COMPTE_PCE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22162 (class 2606 OID 6934107)
-- Name: TAXE TAXE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22163 (class 2606 OID 6934112)
-- Name: TAXE TAXE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22164 (class 2606 OID 6934117)
-- Name: TAXE TAXE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 23095 (class 2606 OID 6940850)
-- Name: TAXE_INTERFEL TAXE_INTERFEL_ID_COMPTE_PCE_PRODUITS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 23096 (class 2606 OID 6940855)
-- Name: TAXE_INTERFEL TAXE_INTERFEL_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22171 (class 2606 OID 6934122)
-- Name: TICKET_CAISSE TICKET_CAISSE_ID_CAISSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."TICKET_CAISSE"
    ADD CONSTRAINT "TICKET_CAISSE_ID_CAISSE_fkey" FOREIGN KEY ("ID_CAISSE") REFERENCES "OpenConcerto42"."CAISSE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22172 (class 2606 OID 6934127)
-- Name: TICKET_CAISSE TICKET_CAISSE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22173 (class 2606 OID 6934132)
-- Name: TICKET_CAISSE TICKET_CAISSE_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22174 (class 2606 OID 6934137)
-- Name: TICKET_CAISSE TICKET_CAISSE_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22175 (class 2606 OID 6934142)
-- Name: TITRE_PERSONNEL TITRE_PERSONNEL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22176 (class 2606 OID 6934147)
-- Name: TITRE_PERSONNEL TITRE_PERSONNEL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22177 (class 2606 OID 6934152)
-- Name: TRANSFERT_STOCK TRANSFERT_STOCK_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22178 (class 2606 OID 6934157)
-- Name: TRANSFERT_STOCK TRANSFERT_STOCK_ID_DEPOT_STOCK_DEST_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22179 (class 2606 OID 6934162)
-- Name: TRANSFERT_STOCK TRANSFERT_STOCK_ID_DEPOT_STOCK_SOURCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22180 (class 2606 OID 6934167)
-- Name: TR_BON_DE_LIVRAISON TR_BON_DE_LIVRAISON_ID_BON_DE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22181 (class 2606 OID 6934172)
-- Name: TR_BON_DE_LIVRAISON TR_BON_DE_LIVRAISON_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22182 (class 2606 OID 6934177)
-- Name: TR_BON_RECEPTION TR_BON_RECEPTION_ID_BON_RECEPTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22183 (class 2606 OID 6934182)
-- Name: TR_BON_RECEPTION TR_BON_RECEPTION_ID_FACTURE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22184 (class 2606 OID 6934187)
-- Name: TR_BON_RECEPTION TR_BON_RECEPTION_ID_SAISIE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22189 (class 2606 OID 6934192)
-- Name: TR_COMMANDE_CLIENT TR_COMMANDE_CLIENT_ID_BON_DE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22190 (class 2606 OID 6934197)
-- Name: TR_COMMANDE_CLIENT TR_COMMANDE_CLIENT_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22191 (class 2606 OID 6934202)
-- Name: TR_COMMANDE_CLIENT TR_COMMANDE_CLIENT_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22192 (class 2606 OID 6934207)
-- Name: TR_COMMANDE_CLIENT TR_COMMANDE_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22185 (class 2606 OID 6934212)
-- Name: TR_COMMANDE TR_COMMANDE_ID_BON_RECEPTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22186 (class 2606 OID 6934217)
-- Name: TR_COMMANDE TR_COMMANDE_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22187 (class 2606 OID 6934222)
-- Name: TR_COMMANDE TR_COMMANDE_ID_FACTURE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22188 (class 2606 OID 6934227)
-- Name: TR_COMMANDE TR_COMMANDE_ID_SAISIE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22193 (class 2606 OID 6934232)
-- Name: TR_DEVIS TR_DEVIS_ID_BON_DE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22194 (class 2606 OID 6934237)
-- Name: TR_DEVIS TR_DEVIS_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22195 (class 2606 OID 6934242)
-- Name: TR_DEVIS TR_DEVIS_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22196 (class 2606 OID 6934247)
-- Name: TR_DEVIS TR_DEVIS_ID_DEVIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22197 (class 2606 OID 6934252)
-- Name: TR_DEVIS TR_DEVIS_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22198 (class 2606 OID 6934257)
-- Name: TR_SAISIE_ACHAT TR_SAISIE_ACHAT_ID_AVOIR_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22199 (class 2606 OID 6934262)
-- Name: TR_SAISIE_ACHAT TR_SAISIE_ACHAT_ID_SAISIE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22200 (class 2606 OID 6934267)
-- Name: TR_SAISIE_VENTE_FACTURE TR_SAISIE_VENTE_FACTURE_ID_AVOIR_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22201 (class 2606 OID 6934272)
-- Name: TR_SAISIE_VENTE_FACTURE TR_SAISIE_VENTE_FACTURE_ID_BON_DE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22202 (class 2606 OID 6934277)
-- Name: TR_SAISIE_VENTE_FACTURE TR_SAISIE_VENTE_FACTURE_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22203 (class 2606 OID 6934282)
-- Name: TR_SAISIE_VENTE_FACTURE TR_SAISIE_VENTE_FACTURE_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22204 (class 2606 OID 6934287)
-- Name: TYPE_LETTRE_RELANCE TYPE_LETTRE_RELANCE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22205 (class 2606 OID 6934292)
-- Name: TYPE_LETTRE_RELANCE TYPE_LETTRE_RELANCE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22206 (class 2606 OID 6934297)
-- Name: TYPE_REGLEMENT TYPE_REGLEMENT_ID_COMPTE_PCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."TYPE_REGLEMENT"
    ADD CONSTRAINT "TYPE_REGLEMENT_ID_COMPTE_PCE_CLIENT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_CLIENT") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22207 (class 2606 OID 6934302)
-- Name: TYPE_REGLEMENT TYPE_REGLEMENT_ID_COMPTE_PCE_FOURN_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto42"."TYPE_REGLEMENT"
    ADD CONSTRAINT "TYPE_REGLEMENT_ID_COMPTE_PCE_FOURN_fkey" FOREIGN KEY ("ID_COMPTE_PCE_FOURN") REFERENCES "OpenConcerto42"."COMPTE_PCE"("ID") ON DELETE CASCADE;


--
-- TOC entry 22208 (class 2606 OID 6934307)
-- Name: TYPE_REGLEMENT TYPE_REGLEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22209 (class 2606 OID 6934312)
-- Name: TYPE_REGLEMENT TYPE_REGLEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22210 (class 2606 OID 6934317)
-- Name: VARIABLE_SALARIE VARIABLE_SALARIE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22211 (class 2606 OID 6934322)
-- Name: VARIABLE_SALARIE VARIABLE_SALARIE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto42; Owner: openconcerto
--

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


--
-- TOC entry 22212 (class 2606 OID 6934327)
-- Name: ACOMPTE ACOMPTE_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ACOMPTE"
    ADD CONSTRAINT "ACOMPTE_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto48"."MOUVEMENT"("ID");


--
-- TOC entry 22213 (class 2606 OID 6934332)
-- Name: ACOMPTE ACOMPTE_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ACOMPTE"
    ADD CONSTRAINT "ACOMPTE_ID_SALARIE_fkey" FOREIGN KEY ("ID_SALARIE") REFERENCES "OpenConcerto48"."SALARIE"("ID");


--
-- TOC entry 22214 (class 2606 OID 6934337)
-- Name: ACOMPTE ACOMPTE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22215 (class 2606 OID 6934342)
-- Name: ACOMPTE ACOMPTE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22216 (class 2606 OID 6934347)
-- Name: ADRESSE ADRESSE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ADRESSE"
    ADD CONSTRAINT "ADRESSE_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto48"."CLIENT"("ID");


--
-- TOC entry 22217 (class 2606 OID 6934352)
-- Name: ADRESSE ADRESSE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22218 (class 2606 OID 6934357)
-- Name: ADRESSE ADRESSE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22219 (class 2606 OID 6934362)
-- Name: AGENCE AGENCE_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22220 (class 2606 OID 6934367)
-- Name: AGENCE AGENCE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22221 (class 2606 OID 6934372)
-- Name: ARRET_CHOMAGE_INTEMPERIE ARRET_CHOMAGE_INTEMPERIE_ID_CODE_AMENAGEMENT_PARTIEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22222 (class 2606 OID 6934377)
-- Name: ARRET_CHOMAGE_INTEMPERIE ARRET_CHOMAGE_INTEMPERIE_ID_CODE_SUSPENSION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22223 (class 2606 OID 6934382)
-- Name: ARRET_CHOMAGE_INTEMPERIE ARRET_CHOMAGE_INTEMPERIE_ID_INFOS_SALARIE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22224 (class 2606 OID 6934387)
-- Name: ARRET_TRAVAIL ARRET_TRAVAIL_ID_MOTIF_ARRET_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22225 (class 2606 OID 6934392)
-- Name: ARRET_TRAVAIL ARRET_TRAVAIL_ID_MOTIF_REPRISE_ARRET_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22226 (class 2606 OID 6934397)
-- Name: ARRET_TRAVAIL ARRET_TRAVAIL_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22252 (class 2606 OID 6934402)
-- Name: ARTICLE_CATEGORIE_COMPTABLE ARTICLE_CATEGORIE_COMPTABLE_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22253 (class 2606 OID 6934407)
-- Name: ARTICLE_CATEGORIE_COMPTABLE ARTICLE_CATEGORIE_COMPTABLE_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22254 (class 2606 OID 6934412)
-- Name: ARTICLE_CATEGORIE_COMPTABLE ARTICLE_CATEGORIE_COMPTABLE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22255 (class 2606 OID 6934417)
-- Name: ARTICLE_CATEGORIE_COMPTABLE ARTICLE_CATEGORIE_COMPTABLE_ID_COMPTE_PCE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22256 (class 2606 OID 6934422)
-- Name: ARTICLE_CATEGORIE_COMPTABLE ARTICLE_CATEGORIE_COMPTABLE_ID_TAXE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22257 (class 2606 OID 6934427)
-- Name: ARTICLE_CATEGORIE_COMPTABLE ARTICLE_CATEGORIE_COMPTABLE_ID_TAXE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22258 (class 2606 OID 6934432)
-- Name: ARTICLE_CODE_CLIENT ARTICLE_CODE_CLIENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22259 (class 2606 OID 6934437)
-- Name: ARTICLE_CODE_CLIENT ARTICLE_CODE_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22260 (class 2606 OID 6934442)
-- Name: ARTICLE_DESIGNATION ARTICLE_DESIGNATION_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22261 (class 2606 OID 6934447)
-- Name: ARTICLE_DESIGNATION ARTICLE_DESIGNATION_ID_LANGUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22262 (class 2606 OID 6934452)
-- Name: ARTICLE_ELEMENT ARTICLE_ELEMENT_ID_ARTICLE_PARENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22263 (class 2606 OID 6934457)
-- Name: ARTICLE_ELEMENT ARTICLE_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22264 (class 2606 OID 6934462)
-- Name: ARTICLE_ELEMENT ARTICLE_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22265 (class 2606 OID 6934467)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22266 (class 2606 OID 6934472)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22267 (class 2606 OID 6934477)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22268 (class 2606 OID 6934482)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_DEVISE_HA_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22269 (class 2606 OID 6934487)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22270 (class 2606 OID 6934492)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_FAMILLE_ARTICLE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22271 (class 2606 OID 6934497)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22272 (class 2606 OID 6934502)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22273 (class 2606 OID 6934507)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22274 (class 2606 OID 6934512)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22275 (class 2606 OID 6934517)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22276 (class 2606 OID 6934522)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22277 (class 2606 OID 6934527)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22278 (class 2606 OID 6934532)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22279 (class 2606 OID 6934537)
-- Name: ARTICLE_FOURNISSEUR ARTICLE_FOURNISSEUR_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22280 (class 2606 OID 6934542)
-- Name: ARTICLE_FOURNISSEUR_SECONDAIRE ARTICLE_FOURNISSEUR_SECONDAIRE_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22281 (class 2606 OID 6934547)
-- Name: ARTICLE_FOURNISSEUR_SECONDAIRE ARTICLE_FOURNISSEUR_SECONDAIRE_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22227 (class 2606 OID 6934552)
-- Name: ARTICLE ARTICLE_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22228 (class 2606 OID 6934557)
-- Name: ARTICLE ARTICLE_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22229 (class 2606 OID 6934562)
-- Name: ARTICLE ARTICLE_ID_ARTICLE_VIRTUEL_PERE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22230 (class 2606 OID 6934567)
-- Name: ARTICLE ARTICLE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22231 (class 2606 OID 6934572)
-- Name: ARTICLE ARTICLE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22232 (class 2606 OID 6934577)
-- Name: ARTICLE ARTICLE_ID_COUT_REVIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22233 (class 2606 OID 6934582)
-- Name: ARTICLE ARTICLE_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22234 (class 2606 OID 6934587)
-- Name: ARTICLE ARTICLE_ID_DEVISE_HA_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22235 (class 2606 OID 6934592)
-- Name: ARTICLE ARTICLE_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22236 (class 2606 OID 6934597)
-- Name: ARTICLE ARTICLE_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22237 (class 2606 OID 6934602)
-- Name: ARTICLE ARTICLE_ID_FABRICANT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22238 (class 2606 OID 6934607)
-- Name: ARTICLE ARTICLE_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22239 (class 2606 OID 6934612)
-- Name: ARTICLE ARTICLE_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22240 (class 2606 OID 6934617)
-- Name: ARTICLE ARTICLE_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22241 (class 2606 OID 6934622)
-- Name: ARTICLE ARTICLE_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22242 (class 2606 OID 6934627)
-- Name: ARTICLE ARTICLE_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22243 (class 2606 OID 6934632)
-- Name: ARTICLE ARTICLE_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22244 (class 2606 OID 6934637)
-- Name: ARTICLE ARTICLE_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22245 (class 2606 OID 6934642)
-- Name: ARTICLE ARTICLE_ID_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22246 (class 2606 OID 6934647)
-- Name: ARTICLE ARTICLE_ID_TAXE_COMPLEMENTAIRE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22247 (class 2606 OID 6940400)
-- Name: ARTICLE ARTICLE_ID_TAXE_INTERFEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22248 (class 2606 OID 6934652)
-- Name: ARTICLE ARTICLE_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22249 (class 2606 OID 6934657)
-- Name: ARTICLE ARTICLE_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22250 (class 2606 OID 6934662)
-- Name: ARTICLE ARTICLE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22251 (class 2606 OID 6934667)
-- Name: ARTICLE ARTICLE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22286 (class 2606 OID 6934672)
-- Name: ARTICLE_TARIF_FOURNISSEUR ARTICLE_TARIF_FOURNISSEUR_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22287 (class 2606 OID 6934677)
-- Name: ARTICLE_TARIF_FOURNISSEUR ARTICLE_TARIF_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22282 (class 2606 OID 6934682)
-- Name: ARTICLE_TARIF ARTICLE_TARIF_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22283 (class 2606 OID 6934687)
-- Name: ARTICLE_TARIF ARTICLE_TARIF_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22284 (class 2606 OID 6934692)
-- Name: ARTICLE_TARIF ARTICLE_TARIF_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22285 (class 2606 OID 6934697)
-- Name: ARTICLE_TARIF ARTICLE_TARIF_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22288 (class 2606 OID 6934702)
-- Name: ARTICLE_TARIF_PROMOTION ARTICLE_TARIF_PROMOTION_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22289 (class 2606 OID 6934707)
-- Name: ARTICLE_TARIF_PROMOTION ARTICLE_TARIF_PROMOTION_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22290 (class 2606 OID 6934712)
-- Name: ARTICLE_TARIF_PROMOTION ARTICLE_TARIF_PROMOTION_ID_TARIF_PROMOTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22291 (class 2606 OID 6934717)
-- Name: ARTICLE_TARIF_PROMOTION ARTICLE_TARIF_PROMOTION_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22292 (class 2606 OID 6934722)
-- Name: ASSOCIATION_ANALYTIQUE ASSOCIATION_ANALYTIQUE_ID_ECRITURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22293 (class 2606 OID 6934727)
-- Name: ASSOCIATION_ANALYTIQUE ASSOCIATION_ANALYTIQUE_ID_POSTE_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22294 (class 2606 OID 6934732)
-- Name: ASSOCIATION_ANALYTIQUE ASSOCIATION_ANALYTIQUE_ID_SAISIE_KM_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22295 (class 2606 OID 6934737)
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE ASSOCIATION_COMPTE_ANALYTIQUE_ID_AXE_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22296 (class 2606 OID 6934742)
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE ASSOCIATION_COMPTE_ANALYTIQUE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22297 (class 2606 OID 6934747)
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE ASSOCIATION_COMPTE_ANALYTIQUE_ID_REPARTITION_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22298 (class 2606 OID 6934752)
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE ASSOCIATION_COMPTE_ANALYTIQUE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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

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

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


--
-- TOC entry 22318 (class 2606 OID 6934767)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22319 (class 2606 OID 6934772)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22320 (class 2606 OID 6934777)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22321 (class 2606 OID 6934782)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_AVOIR_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22322 (class 2606 OID 6934787)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22323 (class 2606 OID 6934792)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22324 (class 2606 OID 6934797)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22325 (class 2606 OID 6934802)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22326 (class 2606 OID 6934807)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22327 (class 2606 OID 6934812)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22328 (class 2606 OID 6934817)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22329 (class 2606 OID 6934822)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22330 (class 2606 OID 6934827)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22331 (class 2606 OID 6934832)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22332 (class 2606 OID 6934837)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22333 (class 2606 OID 6934842)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22334 (class 2606 OID 6934847)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22335 (class 2606 OID 6934852)
-- Name: AVOIR_CLIENT_ELEMENT AVOIR_CLIENT_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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

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

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


--
-- TOC entry 22302 (class 2606 OID 6934867)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22303 (class 2606 OID 6934872)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22304 (class 2606 OID 6934877)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_CLIENT_DEPARTEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22305 (class 2606 OID 6934882)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22306 (class 2606 OID 6934887)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22307 (class 2606 OID 6934892)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_COMPTE_PCE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22308 (class 2606 OID 6934897)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22309 (class 2606 OID 6934902)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22310 (class 2606 OID 6934907)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22311 (class 2606 OID 6934912)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22312 (class 2606 OID 6934917)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22313 (class 2606 OID 6934922)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22314 (class 2606 OID 6934927)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22315 (class 2606 OID 6934932)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22316 (class 2606 OID 6934937)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22317 (class 2606 OID 6934942)
-- Name: AVOIR_CLIENT AVOIR_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22337 (class 2606 OID 6934947)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22338 (class 2606 OID 6934952)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22339 (class 2606 OID 6934957)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22340 (class 2606 OID 6934962)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22341 (class 2606 OID 6934967)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22342 (class 2606 OID 6934972)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22343 (class 2606 OID 6934977)
-- Name: AVOIR_FOURNISSEUR AVOIR_FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22344 (class 2606 OID 6934982)
-- Name: AXE_ANALYTIQUE AXE_ANALYTIQUE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22345 (class 2606 OID 6934987)
-- Name: AXE_ANALYTIQUE AXE_ANALYTIQUE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22346 (class 2606 OID 6934992)
-- Name: AYANT_DROIT AYANT_DROIT_ID_AYANT_DROIT_TYPE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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

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


--
-- TOC entry 22348 (class 2606 OID 6940644)
-- Name: BANQUE BANQUE_ID_COMPTE_PCE_CB_ATTENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22349 (class 2606 OID 6940668)
-- Name: BANQUE BANQUE_ID_COMPTE_PCE_FRAIS_CB_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22350 (class 2606 OID 6935002)
-- Name: BANQUE BANQUE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22351 (class 2606 OID 6940649)
-- Name: BANQUE BANQUE_ID_JOURNAL_CB_ATTENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22352 (class 2606 OID 6935007)
-- Name: BANQUE BANQUE_ID_JOURNAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22369 (class 2606 OID 6935012)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22370 (class 2606 OID 6935017)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22371 (class 2606 OID 6935022)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22372 (class 2606 OID 6935027)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_BON_DE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22373 (class 2606 OID 6935032)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_COMMANDE_CLIENT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22374 (class 2606 OID 6935037)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22375 (class 2606 OID 6935042)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22376 (class 2606 OID 6935047)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_DEVIS_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22377 (class 2606 OID 6935052)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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

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


--
-- TOC entry 22379 (class 2606 OID 6935062)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22380 (class 2606 OID 6940229)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22381 (class 2606 OID 6935072)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22382 (class 2606 OID 6935077)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22383 (class 2606 OID 6935082)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22384 (class 2606 OID 6935087)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_SAISIE_VENTE_FACTURE_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22385 (class 2606 OID 6935092)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22386 (class 2606 OID 6935097)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22387 (class 2606 OID 6935102)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22388 (class 2606 OID 6935107)
-- Name: BON_DE_LIVRAISON_ELEMENT BON_DE_LIVRAISON_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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

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

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


--
-- TOC entry 22354 (class 2606 OID 6935122)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22355 (class 2606 OID 6935127)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22356 (class 2606 OID 6935132)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_CLIENT_DEPARTEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22357 (class 2606 OID 6935137)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22358 (class 2606 OID 6935142)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22359 (class 2606 OID 6935147)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22360 (class 2606 OID 6935152)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22361 (class 2606 OID 6935157)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_LOT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22362 (class 2606 OID 6935162)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22363 (class 2606 OID 6935167)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22364 (class 2606 OID 6935172)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22365 (class 2606 OID 6935177)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_TAXE_FRAIS_DOCUMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22366 (class 2606 OID 6935182)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22367 (class 2606 OID 6935187)
-- Name: BON_DE_LIVRAISON BON_DE_LIVRAISON_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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

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

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


--
-- TOC entry 22398 (class 2606 OID 6935202)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22399 (class 2606 OID 6935207)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22400 (class 2606 OID 6935212)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_BON_RECEPTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22401 (class 2606 OID 6935217)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_CODE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22402 (class 2606 OID 6935222)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_COMMANDE_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22403 (class 2606 OID 6935227)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22404 (class 2606 OID 6935232)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22405 (class 2606 OID 6935237)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22406 (class 2606 OID 6935242)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22407 (class 2606 OID 6935247)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22408 (class 2606 OID 6935252)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_LOT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22409 (class 2606 OID 6935257)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22410 (class 2606 OID 6935262)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22411 (class 2606 OID 6935267)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22412 (class 2606 OID 6935272)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22413 (class 2606 OID 6935277)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22414 (class 2606 OID 6935282)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22415 (class 2606 OID 6935287)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22416 (class 2606 OID 6935292)
-- Name: BON_RECEPTION_ELEMENT BON_RECEPTION_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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

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

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


--
-- TOC entry 22391 (class 2606 OID 6935307)
-- Name: BON_RECEPTION BON_RECEPTION_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22392 (class 2606 OID 6935312)
-- Name: BON_RECEPTION BON_RECEPTION_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22393 (class 2606 OID 6935317)
-- Name: BON_RECEPTION BON_RECEPTION_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22394 (class 2606 OID 6935322)
-- Name: BON_RECEPTION BON_RECEPTION_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22395 (class 2606 OID 6935327)
-- Name: BON_RECEPTION BON_RECEPTION_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22396 (class 2606 OID 6935332)
-- Name: BON_RECEPTION BON_RECEPTION_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22419 (class 2606 OID 6935337)
-- Name: CAISSE_CLOTURE CAISSE_CLOTURE_ID_ENTREE_JOURNAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22420 (class 2606 OID 6935342)
-- Name: CAISSE_CLOTURE CAISSE_CLOTURE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22421 (class 2606 OID 6935347)
-- Name: CAISSE_CLOTURE CAISSE_CLOTURE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22418 (class 2606 OID 6935352)
-- Name: CAISSE CAISSE_ID_DERNIERE_CLOTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22422 (class 2606 OID 6935357)
-- Name: CAISSE_JOURNAL CAISSE_JOURNAL_ID_CAISSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22423 (class 2606 OID 6935362)
-- Name: CAISSE_JOURNAL CAISSE_JOURNAL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22424 (class 2606 OID 6935367)
-- Name: CAISSE_JOURNAL CAISSE_JOURNAL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22425 (class 2606 OID 6935372)
-- Name: CAISSE_JOURNAL CAISSE_JOURNAL_ID_USER_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22426 (class 2606 OID 6935377)
-- Name: CALENDAR_ITEM CALENDAR_ITEM_ID_CALENDAR_ITEM_GROUP_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22427 (class 2606 OID 6935382)
-- Name: CATEGORIE_COMPTABLE CATEGORIE_COMPTABLE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22428 (class 2606 OID 6935387)
-- Name: CATEGORIE_COMPTABLE CATEGORIE_COMPTABLE_ID_COMPTE_PCE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22429 (class 2606 OID 6935392)
-- Name: CATEGORIE_COMPTABLE CATEGORIE_COMPTABLE_ID_TAXE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22430 (class 2606 OID 6935397)
-- Name: CATEGORIE_COMPTABLE CATEGORIE_COMPTABLE_ID_TAXE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22431 (class 2606 OID 6935402)
-- Name: CHEQUE_AVOIR_CLIENT CHEQUE_AVOIR_CLIENT_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22432 (class 2606 OID 6935407)
-- Name: CHEQUE_AVOIR_CLIENT CHEQUE_AVOIR_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22433 (class 2606 OID 6935412)
-- Name: CHEQUE_AVOIR_CLIENT CHEQUE_AVOIR_CLIENT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22434 (class 2606 OID 6935417)
-- Name: CHEQUE_AVOIR_CLIENT CHEQUE_AVOIR_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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

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

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


--
-- TOC entry 22437 (class 2606 OID 6935432)
-- Name: CHEQUE_A_ENCAISSER CHEQUE_A_ENCAISSER_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22438 (class 2606 OID 6935437)
-- Name: CHEQUE_A_ENCAISSER CHEQUE_A_ENCAISSER_ID_COMPTE_PCE_TIERS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22439 (class 2606 OID 6935442)
-- Name: CHEQUE_A_ENCAISSER CHEQUE_A_ENCAISSER_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22440 (class 2606 OID 6935447)
-- Name: CHEQUE_A_ENCAISSER CHEQUE_A_ENCAISSER_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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

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

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


--
-- TOC entry 22443 (class 2606 OID 6935462)
-- Name: CHEQUE_FOURNISSEUR CHEQUE_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22444 (class 2606 OID 6935467)
-- Name: CHEQUE_FOURNISSEUR CHEQUE_FOURNISSEUR_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22445 (class 2606 OID 6935472)
-- Name: CHEQUE_FOURNISSEUR CHEQUE_FOURNISSEUR_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22446 (class 2606 OID 6935477)
-- Name: CHEQUE_FOURNISSEUR CHEQUE_FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22447 (class 2606 OID 6935482)
-- Name: CHIFFRAGE_COMMANDE_CLIENT CHIFFRAGE_COMMANDE_CLIENT_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22448 (class 2606 OID 6935487)
-- Name: CHIFFRAGE_COMMANDE_CLIENT CHIFFRAGE_COMMANDE_CLIENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22449 (class 2606 OID 6935492)
-- Name: CHIFFRAGE_COMMANDE_CLIENT CHIFFRAGE_COMMANDE_CLIENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22450 (class 2606 OID 6935497)
-- Name: CLASSEMENT_CONVENTIONNEL CLASSEMENT_CONVENTIONNEL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22451 (class 2606 OID 6935502)
-- Name: CLASSEMENT_CONVENTIONNEL CLASSEMENT_CONVENTIONNEL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22452 (class 2606 OID 6935507)
-- Name: CLASSE_COMPTE CLASSE_COMPTE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22453 (class 2606 OID 6935512)
-- Name: CLASSE_COMPTE CLASSE_COMPTE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22471 (class 2606 OID 6935517)
-- Name: CLIENT_DEPARTEMENT CLIENT_DEPARTEMENT_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22472 (class 2606 OID 6935522)
-- Name: CLIENT_DEPARTEMENT CLIENT_DEPARTEMENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22454 (class 2606 OID 6935527)
-- Name: CLIENT CLIENT_ID_ADRESSE_F_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22455 (class 2606 OID 6935532)
-- Name: CLIENT CLIENT_ID_ADRESSE_L_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22456 (class 2606 OID 6935537)
-- Name: CLIENT CLIENT_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22457 (class 2606 OID 6935542)
-- Name: CLIENT CLIENT_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22458 (class 2606 OID 6935547)
-- Name: CLIENT CLIENT_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22459 (class 2606 OID 6935552)
-- Name: CLIENT CLIENT_ID_COMPTE_PCE_PRODUIT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22460 (class 2606 OID 6935557)
-- Name: CLIENT CLIENT_ID_COMPTE_PCE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22461 (class 2606 OID 6935562)
-- Name: CLIENT CLIENT_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22462 (class 2606 OID 6935567)
-- Name: CLIENT CLIENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22463 (class 2606 OID 6935572)
-- Name: CLIENT CLIENT_ID_FRAIS_DOCUMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22464 (class 2606 OID 6935577)
-- Name: CLIENT CLIENT_ID_LANGUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22465 (class 2606 OID 6935582)
-- Name: CLIENT CLIENT_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22466 (class 2606 OID 6935587)
-- Name: CLIENT CLIENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22467 (class 2606 OID 6935592)
-- Name: CLIENT CLIENT_ID_SEPA_MANDATE_DEFAULT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22468 (class 2606 OID 6935597)
-- Name: CLIENT CLIENT_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22469 (class 2606 OID 6935602)
-- Name: CLIENT CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22470 (class 2606 OID 6935607)
-- Name: CLIENT CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22473 (class 2606 OID 6935612)
-- Name: CODE_CARACT_ACTIVITE CODE_CARACT_ACTIVITE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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

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

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

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

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

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

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


--
-- TOC entry 22480 (class 2606 OID 6935647)
-- Name: CODE_EMPLOI CODE_EMPLOI_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22481 (class 2606 OID 6935652)
-- Name: CODE_FOURNISSEUR CODE_FOURNISSEUR_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22482 (class 2606 OID 6935657)
-- Name: CODE_FOURNISSEUR CODE_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22483 (class 2606 OID 6935662)
-- Name: CODE_PENIBILITE_CONTRAT_SALARIE CODE_PENIBILITE_CONTRAT_SALARIE_ID_CODE_PENIBILITE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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

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


--
-- TOC entry 22485 (class 2606 OID 6935672)
-- Name: CODE_REGIME CODE_REGIME_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22486 (class 2606 OID 6935677)
-- Name: CODE_REGIME CODE_REGIME_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22487 (class 2606 OID 6935682)
-- Name: CODE_STATUT_CATEGORIEL CODE_STATUT_CATEGORIEL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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

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

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

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

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


--
-- TOC entry 22515 (class 2606 OID 6935707)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22516 (class 2606 OID 6935712)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22517 (class 2606 OID 6935717)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22518 (class 2606 OID 6935722)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22519 (class 2606 OID 6935727)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22520 (class 2606 OID 6935732)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22521 (class 2606 OID 6935737)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22522 (class 2606 OID 6935742)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22523 (class 2606 OID 6935747)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22524 (class 2606 OID 6935752)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22525 (class 2606 OID 6935757)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22526 (class 2606 OID 6935762)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22527 (class 2606 OID 6935767)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22528 (class 2606 OID 6935772)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22529 (class 2606 OID 6935777)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22530 (class 2606 OID 6935782)
-- Name: COMMANDE_CLIENT_ELEMENT COMMANDE_CLIENT_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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

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

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


--
-- TOC entry 22501 (class 2606 OID 6935797)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22502 (class 2606 OID 6935802)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22503 (class 2606 OID 6935807)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_CLIENT_DEPARTEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22504 (class 2606 OID 6935812)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22505 (class 2606 OID 6935817)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22506 (class 2606 OID 6935822)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22507 (class 2606 OID 6935827)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_DEVIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22508 (class 2606 OID 6935832)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22509 (class 2606 OID 6935837)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22510 (class 2606 OID 6935842)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_TAXE_FRAIS_DOCUMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22511 (class 2606 OID 6935847)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22512 (class 2606 OID 6935852)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22513 (class 2606 OID 6935857)
-- Name: COMMANDE_CLIENT COMMANDE_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22532 (class 2606 OID 6935862)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22533 (class 2606 OID 6935867)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22534 (class 2606 OID 6935872)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22535 (class 2606 OID 6935877)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_CODE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22536 (class 2606 OID 6935882)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22537 (class 2606 OID 6935887)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22538 (class 2606 OID 6935892)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22539 (class 2606 OID 6935897)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22540 (class 2606 OID 6935902)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22541 (class 2606 OID 6935907)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22542 (class 2606 OID 6935912)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22543 (class 2606 OID 6935917)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22544 (class 2606 OID 6935922)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22545 (class 2606 OID 6935927)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22546 (class 2606 OID 6935932)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22547 (class 2606 OID 6935937)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22548 (class 2606 OID 6935942)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22549 (class 2606 OID 6935947)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22550 (class 2606 OID 6935952)
-- Name: COMMANDE_ELEMENT COMMANDE_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22491 (class 2606 OID 6935957)
-- Name: COMMANDE COMMANDE_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22492 (class 2606 OID 6935962)
-- Name: COMMANDE COMMANDE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22493 (class 2606 OID 6935967)
-- Name: COMMANDE COMMANDE_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22494 (class 2606 OID 6935972)
-- Name: COMMANDE COMMANDE_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22495 (class 2606 OID 6935977)
-- Name: COMMANDE COMMANDE_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22496 (class 2606 OID 6935982)
-- Name: COMMANDE COMMANDE_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22497 (class 2606 OID 6935987)
-- Name: COMMANDE COMMANDE_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22498 (class 2606 OID 6935992)
-- Name: COMMANDE COMMANDE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22499 (class 2606 OID 6935997)
-- Name: COMMANDE COMMANDE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22551 (class 2606 OID 6936002)
-- Name: COMMERCIAL COMMERCIAL_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22552 (class 2606 OID 6936007)
-- Name: COMMERCIAL COMMERCIAL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22553 (class 2606 OID 6936012)
-- Name: COMMERCIAL COMMERCIAL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22554 (class 2606 OID 6936017)
-- Name: COMMERCIAL COMMERCIAL_ID_USER_COMMON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22555 (class 2606 OID 6936022)
-- Name: COMPTE_CLIENT_TRANSACTION COMPTE_CLIENT_TRANSACTION_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22556 (class 2606 OID 6936027)
-- Name: COMPTE_CLIENT_TRANSACTION COMPTE_CLIENT_TRANSACTION_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22557 (class 2606 OID 6936032)
-- Name: COMPTE_CLIENT_TRANSACTION COMPTE_CLIENT_TRANSACTION_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22558 (class 2606 OID 6936037)
-- Name: COMPTE_PCE COMPTE_PCE_ID_NATURE_COMPTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22559 (class 2606 OID 6936042)
-- Name: COMPTE_PCE COMPTE_PCE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22560 (class 2606 OID 6936047)
-- Name: COMPTE_PCE COMPTE_PCE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22561 (class 2606 OID 6936052)
-- Name: COMPTE_PCG COMPTE_PCG_ID_NATURE_COMPTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22562 (class 2606 OID 6936057)
-- Name: COMPTE_PCG COMPTE_PCG_ID_TYPE_COMPTE_PCG_AB_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22563 (class 2606 OID 6936062)
-- Name: COMPTE_PCG COMPTE_PCG_ID_TYPE_COMPTE_PCG_BASE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22564 (class 2606 OID 6936067)
-- Name: COMPTE_PCG COMPTE_PCG_ID_TYPE_COMPTE_PCG_DEV_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22565 (class 2606 OID 6936072)
-- Name: COMPTE_PCG COMPTE_PCG_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22566 (class 2606 OID 6936077)
-- Name: COMPTE_PCG COMPTE_PCG_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22571 (class 2606 OID 6936082)
-- Name: CONTACT_ADMINISTRATIF CONTACT_ADMINISTRATIF_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22572 (class 2606 OID 6936087)
-- Name: CONTACT_FOURNISSEUR CONTACT_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22573 (class 2606 OID 6936092)
-- Name: CONTACT_FOURNISSEUR CONTACT_FOURNISSEUR_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22567 (class 2606 OID 6936097)
-- Name: CONTACT CONTACT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22568 (class 2606 OID 6936102)
-- Name: CONTACT CONTACT_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22569 (class 2606 OID 6936107)
-- Name: CONTACT CONTACT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22570 (class 2606 OID 6936112)
-- Name: CONTACT CONTACT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22574 (class 2606 OID 6936117)
-- Name: CONTACT_SALARIE CONTACT_SALARIE_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22575 (class 2606 OID 6936122)
-- Name: CONTACT_SALARIE CONTACT_SALARIE_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22576 (class 2606 OID 6936127)
-- Name: CONTRAT_PREVOYANCE_AYANT_DROIT CONTRAT_PREVOYANCE_AYANT_DROIT_ID_AYANT_DROIT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22577 (class 2606 OID 6936132)
-- Name: CONTRAT_PREVOYANCE_AYANT_DROIT CONTRAT_PREVOYANCE_AYANT_DROIT_ID_CONTRAT_PREVOYANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22578 (class 2606 OID 6936137)
-- Name: CONTRAT_PREVOYANCE_CONTRAT_SALARIE CONTRAT_PREVOYANCE_CONTRAT_SALARIE_ID_CONTRAT_PREVOYANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22579 (class 2606 OID 6936142)
-- Name: CONTRAT_PREVOYANCE_CONTRAT_SALARIE CONTRAT_PREVOYANCE_CONTRAT_SALARIE_ID_INFOS_SALARIE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22580 (class 2606 OID 6936147)
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE CONTRAT_PREVOYANCE_RUBRIQUE_ID_CONTRAT_PREVOYANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22581 (class 2606 OID 6936152)
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE CONTRAT_PREVOYANCE_RUBRIQUE_ID_RUBRIQUE_COTISATION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22582 (class 2606 OID 6936157)
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE_NET CONTRAT_PREVOYANCE_RUBRIQUE_NET_ID_CONTRAT_PREVOYANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22583 (class 2606 OID 6936162)
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE_NET CONTRAT_PREVOYANCE_RUBRIQUE_NET_ID_RUBRIQUE_NET_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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

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

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

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


--
-- TOC entry 22587 (class 2606 OID 6936182)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_CONTRAT_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22588 (class 2606 OID 6936187)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_DROIT_CONTRAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22589 (class 2606 OID 6936192)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_EMPLOI_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22590 (class 2606 OID 6936197)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_STATUT_CATEGORIEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22591 (class 2606 OID 6936202)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_STATUT_CAT_CONV_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22592 (class 2606 OID 6936207)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_STATUT_PROF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22593 (class 2606 OID 6936212)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CODE_SUSPENSION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22594 (class 2606 OID 6936217)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_CONTRAT_DETACHE_EXPATRIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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

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

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

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

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

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

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


--
-- TOC entry 22601 (class 2606 OID 6936252)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22602 (class 2606 OID 6936257)
-- Name: CONTRAT_SALARIE CONTRAT_SALARIE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22603 (class 2606 OID 6936262)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22604 (class 2606 OID 6936267)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22605 (class 2606 OID 6940357)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22606 (class 2606 OID 6936272)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_MODELE_COURRIER_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22607 (class 2606 OID 6936277)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22608 (class 2606 OID 6936282)
-- Name: COURRIER_CLIENT COURRIER_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22609 (class 2606 OID 6936287)
-- Name: CUMULS_CONGES CUMULS_CONGES_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22610 (class 2606 OID 6936292)
-- Name: CUMULS_CONGES CUMULS_CONGES_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22611 (class 2606 OID 6936297)
-- Name: CUMULS_PAYE CUMULS_PAYE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22612 (class 2606 OID 6936302)
-- Name: CUMULS_PAYE CUMULS_PAYE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22613 (class 2606 OID 6936307)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_ARRET_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22614 (class 2606 OID 6936312)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_DECLARATION_DSN_ANNULATION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22615 (class 2606 OID 6936317)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_DSN_NATURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22616 (class 2606 OID 6936322)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_FIN_CONTRAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22617 (class 2606 OID 6936327)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_MOIS_REGUL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22618 (class 2606 OID 6936332)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_MOIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22619 (class 2606 OID 6936337)
-- Name: DECLARATION_DSN DECLARATION_DSN_ID_REPRISE_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22620 (class 2606 OID 6936342)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22621 (class 2606 OID 6936347)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_BON_RECEPTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22622 (class 2606 OID 6936352)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22623 (class 2606 OID 6936357)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_ETAT_DEMANDE_ACHAT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22624 (class 2606 OID 6936362)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_FABRICANT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22625 (class 2606 OID 6936367)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22626 (class 2606 OID 6936372)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22627 (class 2606 OID 6936377)
-- Name: DEMANDE_ACHAT_ELEMENT DEMANDE_ACHAT_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22631 (class 2606 OID 6936382)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22632 (class 2606 OID 6936387)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22633 (class 2606 OID 6936392)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22634 (class 2606 OID 6936397)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22635 (class 2606 OID 6936402)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_DEMANDE_PRIX_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22636 (class 2606 OID 6936407)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22637 (class 2606 OID 6936412)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22638 (class 2606 OID 6936417)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22639 (class 2606 OID 6936422)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22640 (class 2606 OID 6936427)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22641 (class 2606 OID 6936432)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22642 (class 2606 OID 6936437)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22643 (class 2606 OID 6936442)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22644 (class 2606 OID 6936447)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22645 (class 2606 OID 6936452)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22646 (class 2606 OID 6936457)
-- Name: DEMANDE_PRIX_ELEMENT DEMANDE_PRIX_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22628 (class 2606 OID 6936462)
-- Name: DEMANDE_PRIX DEMANDE_PRIX_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22629 (class 2606 OID 6936467)
-- Name: DEMANDE_PRIX DEMANDE_PRIX_ID_ETAT_DEMANDE_PRIX_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22630 (class 2606 OID 6936472)
-- Name: DEMANDE_PRIX DEMANDE_PRIX_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22647 (class 2606 OID 6936477)
-- Name: DEPARTEMENT DEPARTEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22648 (class 2606 OID 6936482)
-- Name: DEPARTEMENT DEPARTEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22652 (class 2606 OID 6936487)
-- Name: DEPOT_CHEQUE_ELEMENT DEPOT_CHEQUE_ELEMENT_ID_CHEQUE_A_ENCAISSER_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22653 (class 2606 OID 6936492)
-- Name: DEPOT_CHEQUE_ELEMENT DEPOT_CHEQUE_ELEMENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22654 (class 2606 OID 6936497)
-- Name: DEPOT_CHEQUE_ELEMENT DEPOT_CHEQUE_ELEMENT_ID_DEPOT_CHEQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22655 (class 2606 OID 6936502)
-- Name: DEPOT_CHEQUE_ELEMENT DEPOT_CHEQUE_ELEMENT_ID_ECRITURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22649 (class 2606 OID 6936507)
-- Name: DEPOT_CHEQUE DEPOT_CHEQUE_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22650 (class 2606 OID 6936512)
-- Name: DEPOT_CHEQUE DEPOT_CHEQUE_ID_ECRITURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22651 (class 2606 OID 6936517)
-- Name: DEPOT_CHEQUE DEPOT_CHEQUE_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22656 (class 2606 OID 6936522)
-- Name: DEPOT_STOCK DEPOT_STOCK_ID_USER_UI_LOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22671 (class 2606 OID 6936527)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22672 (class 2606 OID 6936532)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22673 (class 2606 OID 6936537)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22674 (class 2606 OID 6936542)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22675 (class 2606 OID 6936547)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22676 (class 2606 OID 6936552)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_DEVIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22677 (class 2606 OID 6936557)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22678 (class 2606 OID 6936562)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22679 (class 2606 OID 6936567)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22680 (class 2606 OID 6936572)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22681 (class 2606 OID 6936577)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22682 (class 2606 OID 6936582)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22683 (class 2606 OID 6936587)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22684 (class 2606 OID 6936592)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22685 (class 2606 OID 6936597)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22686 (class 2606 OID 6936602)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22687 (class 2606 OID 6936607)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22688 (class 2606 OID 6936612)
-- Name: DEVIS_ELEMENT DEVIS_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22657 (class 2606 OID 6936617)
-- Name: DEVIS DEVIS_ID_ADRESSE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22658 (class 2606 OID 6936622)
-- Name: DEVIS DEVIS_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22659 (class 2606 OID 6936627)
-- Name: DEVIS DEVIS_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22660 (class 2606 OID 6936632)
-- Name: DEVIS DEVIS_ID_CLIENT_DEPARTEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22661 (class 2606 OID 6936637)
-- Name: DEVIS DEVIS_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto48"."CLIENT"("ID");


--
-- TOC entry 22662 (class 2606 OID 6936642)
-- Name: DEVIS DEVIS_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_COMMERCIAL_fkey" FOREIGN KEY ("ID_COMMERCIAL") REFERENCES "OpenConcerto48"."COMMERCIAL"("ID_COMMERCIAL");


--
-- TOC entry 22663 (class 2606 OID 6936647)
-- Name: DEVIS DEVIS_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_CONTACT_fkey" FOREIGN KEY ("ID_CONTACT") REFERENCES "OpenConcerto48"."CONTACT"("ID");


--
-- TOC entry 22664 (class 2606 OID 6936652)
-- Name: DEVIS DEVIS_ID_ETAT_DEVIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_ETAT_DEVIS_fkey" FOREIGN KEY ("ID_ETAT_DEVIS") REFERENCES "OpenConcerto48"."ETAT_DEVIS"("ID");


--
-- TOC entry 22665 (class 2606 OID 6936657)
-- Name: DEVIS DEVIS_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_MODELE_fkey" FOREIGN KEY ("ID_MODELE") REFERENCES "OpenConcerto48"."MODELE"("ID");


--
-- TOC entry 22666 (class 2606 OID 6936662)
-- Name: DEVIS DEVIS_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_TARIF_fkey" FOREIGN KEY ("ID_TARIF") REFERENCES "OpenConcerto48"."TARIF"("ID");


--
-- TOC entry 22667 (class 2606 OID 6936667)
-- Name: DEVIS DEVIS_ID_TAXE_FRAIS_DOCUMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_TAXE_FRAIS_DOCUMENT_fkey" FOREIGN KEY ("ID_TAXE_FRAIS_DOCUMENT") REFERENCES "OpenConcerto48"."TAXE"("ID_TAXE");


--
-- TOC entry 22668 (class 2606 OID 6936672)
-- Name: DEVIS DEVIS_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_TAXE_PORT_fkey" FOREIGN KEY ("ID_TAXE_PORT") REFERENCES "OpenConcerto48"."TAXE"("ID_TAXE");


--
-- TOC entry 22669 (class 2606 OID 6936677)
-- Name: DEVIS DEVIS_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22670 (class 2606 OID 6936682)
-- Name: DEVIS DEVIS_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."DEVIS"
    ADD CONSTRAINT "DEVIS_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22689 (class 2606 OID 6936687)
-- Name: ECHANTILLON_ELEMENT ECHANTILLON_ELEMENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHANTILLON_ELEMENT"
    ADD CONSTRAINT "ECHANTILLON_ELEMENT_ID_SAISIE_VENTE_FACTURE_fkey" FOREIGN KEY ("ID_SAISIE_VENTE_FACTURE") REFERENCES "OpenConcerto48"."SAISIE_VENTE_FACTURE"("ID");


--
-- TOC entry 22690 (class 2606 OID 6936692)
-- Name: ECHANTILLON_ELEMENT ECHANTILLON_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHANTILLON_ELEMENT"
    ADD CONSTRAINT "ECHANTILLON_ELEMENT_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto48"."TAXE"("ID_TAXE");


--
-- TOC entry 22691 (class 2606 OID 6936697)
-- Name: ECHANTILLON_ELEMENT ECHANTILLON_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHANTILLON_ELEMENT"
    ADD CONSTRAINT "ECHANTILLON_ELEMENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22692 (class 2606 OID 6936702)
-- Name: ECHANTILLON_ELEMENT ECHANTILLON_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHANTILLON_ELEMENT"
    ADD CONSTRAINT "ECHANTILLON_ELEMENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22693 (class 2606 OID 6936707)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_BANQUE_fkey" FOREIGN KEY ("ID_BANQUE") REFERENCES "OpenConcerto48"."BANQUE"("ID");


--
-- TOC entry 22694 (class 2606 OID 6936712)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto48"."CLIENT"("ID");


--
-- TOC entry 22695 (class 2606 OID 6936717)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_COMPTE_PCE_TIERS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_COMPTE_PCE_TIERS_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TIERS") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22696 (class 2606 OID 6936722)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto48"."MOUVEMENT"("ID");


--
-- TOC entry 22697 (class 2606 OID 6936727)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey" FOREIGN KEY ("ID_SAISIE_VENTE_FACTURE") REFERENCES "OpenConcerto48"."SAISIE_VENTE_FACTURE"("ID");


--
-- TOC entry 22698 (class 2606 OID 6936732)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_SDD_MESSAGE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_SDD_MESSAGE_fkey" FOREIGN KEY ("ID_SDD_MESSAGE") REFERENCES "OpenConcerto48"."SEPA_DIRECT_DEBIT_MESSAGE"("ID");


--
-- TOC entry 22699 (class 2606 OID 6936737)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_SEPA_MANDATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_SEPA_MANDATE_fkey" FOREIGN KEY ("ID_SEPA_MANDATE") REFERENCES "OpenConcerto48"."SEPA_MANDATE"("ID");


--
-- TOC entry 22700 (class 2606 OID 6936742)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22701 (class 2606 OID 6936747)
-- Name: ECHEANCE_CLIENT ECHEANCE_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHEANCE_CLIENT"
    ADD CONSTRAINT "ECHEANCE_CLIENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22702 (class 2606 OID 6936752)
-- Name: ECHEANCE_FOURNISSEUR ECHEANCE_FOURNISSEUR_ID_FACTURE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHEANCE_FOURNISSEUR"
    ADD CONSTRAINT "ECHEANCE_FOURNISSEUR_ID_FACTURE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FACTURE_FOURNISSEUR") REFERENCES "OpenConcerto48"."FACTURE_FOURNISSEUR"("ID");


--
-- TOC entry 22703 (class 2606 OID 6936757)
-- Name: ECHEANCE_FOURNISSEUR ECHEANCE_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHEANCE_FOURNISSEUR"
    ADD CONSTRAINT "ECHEANCE_FOURNISSEUR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto48"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 22704 (class 2606 OID 6936762)
-- Name: ECHEANCE_FOURNISSEUR ECHEANCE_FOURNISSEUR_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHEANCE_FOURNISSEUR"
    ADD CONSTRAINT "ECHEANCE_FOURNISSEUR_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto48"."MOUVEMENT"("ID");


--
-- TOC entry 22705 (class 2606 OID 6936767)
-- Name: ECHEANCE_FOURNISSEUR ECHEANCE_FOURNISSEUR_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHEANCE_FOURNISSEUR"
    ADD CONSTRAINT "ECHEANCE_FOURNISSEUR_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22706 (class 2606 OID 6936772)
-- Name: ECHEANCE_FOURNISSEUR ECHEANCE_FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECHEANCE_FOURNISSEUR"
    ADD CONSTRAINT "ECHEANCE_FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22707 (class 2606 OID 6936777)
-- Name: ECRITURE ECRITURE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECRITURE"
    ADD CONSTRAINT "ECRITURE_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22708 (class 2606 OID 6936782)
-- Name: ECRITURE ECRITURE_ID_JOURNAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECRITURE"
    ADD CONSTRAINT "ECRITURE_ID_JOURNAL_fkey" FOREIGN KEY ("ID_JOURNAL") REFERENCES "OpenConcerto48"."JOURNAL"("ID");


--
-- TOC entry 22709 (class 2606 OID 6936787)
-- Name: ECRITURE ECRITURE_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECRITURE"
    ADD CONSTRAINT "ECRITURE_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto48"."MOUVEMENT"("ID");


--
-- TOC entry 22710 (class 2606 OID 6936792)
-- Name: ECRITURE ECRITURE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECRITURE"
    ADD CONSTRAINT "ECRITURE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22711 (class 2606 OID 6936797)
-- Name: ECRITURE ECRITURE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ECRITURE"
    ADD CONSTRAINT "ECRITURE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22712 (class 2606 OID 6936802)
-- Name: EMPLOYEUR_MULTIPLE EMPLOYEUR_MULTIPLE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."EMPLOYEUR_MULTIPLE"
    ADD CONSTRAINT "EMPLOYEUR_MULTIPLE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22713 (class 2606 OID 6936807)
-- Name: EMPLOYEUR_MULTIPLE EMPLOYEUR_MULTIPLE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."EMPLOYEUR_MULTIPLE"
    ADD CONSTRAINT "EMPLOYEUR_MULTIPLE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22724 (class 2606 OID 6936812)
-- Name: ENCAISSER_MONTANT_ELEMENT ENCAISSER_MONTANT_ELEMENT_ID_ECHEANCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ENCAISSER_MONTANT_ELEMENT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ELEMENT_ID_ECHEANCE_CLIENT_fkey" FOREIGN KEY ("ID_ECHEANCE_CLIENT") REFERENCES "OpenConcerto48"."ECHEANCE_CLIENT"("ID");


--
-- TOC entry 22725 (class 2606 OID 6936817)
-- Name: ENCAISSER_MONTANT_ELEMENT ENCAISSER_MONTANT_ELEMENT_ID_ENCAISSER_MONTANT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ENCAISSER_MONTANT_ELEMENT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ELEMENT_ID_ENCAISSER_MONTANT_fkey" FOREIGN KEY ("ID_ENCAISSER_MONTANT") REFERENCES "OpenConcerto48"."ENCAISSER_MONTANT"("ID");


--
-- TOC entry 22726 (class 2606 OID 6936822)
-- Name: ENCAISSER_MONTANT_ELEMENT ENCAISSER_MONTANT_ELEMENT_ID_MOUVEMENT_ECHEANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ENCAISSER_MONTANT_ELEMENT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ELEMENT_ID_MOUVEMENT_ECHEANCE_fkey" FOREIGN KEY ("ID_MOUVEMENT_ECHEANCE") REFERENCES "OpenConcerto48"."MOUVEMENT"("ID");


--
-- TOC entry 22714 (class 2606 OID 6936827)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto48"."CLIENT"("ID");


--
-- TOC entry 22715 (class 2606 OID 6936832)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_COMMANDE_CLIENT_fkey" FOREIGN KEY ("ID_COMMANDE_CLIENT") REFERENCES "OpenConcerto48"."DEVIS"("ID_DEVIS");


--
-- TOC entry 22716 (class 2606 OID 6936837)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_COMPTE_PCE_TIERS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_COMPTE_PCE_TIERS_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TIERS") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22717 (class 2606 OID 6936842)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_DEVIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_DEVIS_fkey" FOREIGN KEY ("ID_DEVIS") REFERENCES "OpenConcerto48"."DEVIS"("ID_DEVIS");


--
-- TOC entry 22718 (class 2606 OID 6936847)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_ECHEANCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_ECHEANCE_CLIENT_fkey" FOREIGN KEY ("ID_ECHEANCE_CLIENT") REFERENCES "OpenConcerto48"."ECHEANCE_CLIENT"("ID");


--
-- TOC entry 22719 (class 2606 OID 6936852)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_MODE_REGLEMENT_fkey" FOREIGN KEY ("ID_MODE_REGLEMENT") REFERENCES "OpenConcerto48"."MODE_REGLEMENT"("ID_MODE_REGLEMENT");


--
-- TOC entry 22720 (class 2606 OID 6936857)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto48"."MOUVEMENT"("ID");


--
-- TOC entry 22721 (class 2606 OID 6936862)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_TICKET_CAISSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_TICKET_CAISSE_fkey" FOREIGN KEY ("ID_TICKET_CAISSE") REFERENCES "OpenConcerto48"."TICKET_CAISSE"("ID");


--
-- TOC entry 22722 (class 2606 OID 6936867)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22723 (class 2606 OID 6936872)
-- Name: ENCAISSER_MONTANT ENCAISSER_MONTANT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ENCAISSER_MONTANT"
    ADD CONSTRAINT "ENCAISSER_MONTANT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22727 (class 2606 OID 6936877)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ETAT_CIVIL"
    ADD CONSTRAINT "ETAT_CIVIL_ID_ADRESSE_fkey" FOREIGN KEY ("ID_ADRESSE") REFERENCES "OpenConcerto48"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 22728 (class 2606 OID 6936882)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_DEPARTEMENT_NAISSANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ETAT_CIVIL"
    ADD CONSTRAINT "ETAT_CIVIL_ID_DEPARTEMENT_NAISSANCE_fkey" FOREIGN KEY ("ID_DEPARTEMENT_NAISSANCE") REFERENCES "OpenConcerto48"."DEPARTEMENT"("ID");


--
-- TOC entry 22729 (class 2606 OID 6936887)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_PAYS_NAISSANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ETAT_CIVIL"
    ADD CONSTRAINT "ETAT_CIVIL_ID_PAYS_NAISSANCE_fkey" FOREIGN KEY ("ID_PAYS_NAISSANCE") REFERENCES "OpenConcerto48"."PAYS"("ID");


--
-- TOC entry 22730 (class 2606 OID 6936892)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_SITUATION_FAMILIALE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ETAT_CIVIL"
    ADD CONSTRAINT "ETAT_CIVIL_ID_SITUATION_FAMILIALE_fkey" FOREIGN KEY ("ID_SITUATION_FAMILIALE") REFERENCES "OpenConcerto48"."SITUATION_FAMILIALE"("ID");


--
-- TOC entry 22731 (class 2606 OID 6936897)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ETAT_CIVIL"
    ADD CONSTRAINT "ETAT_CIVIL_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22732 (class 2606 OID 6936902)
-- Name: ETAT_CIVIL ETAT_CIVIL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ETAT_CIVIL"
    ADD CONSTRAINT "ETAT_CIVIL_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22733 (class 2606 OID 6936907)
-- Name: ETAT_DEVIS ETAT_DEVIS_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ETAT_DEVIS"
    ADD CONSTRAINT "ETAT_DEVIS_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22734 (class 2606 OID 6936912)
-- Name: ETAT_DEVIS ETAT_DEVIS_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ETAT_DEVIS"
    ADD CONSTRAINT "ETAT_DEVIS_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22735 (class 2606 OID 6936917)
-- Name: ETAT_RAPPORT ETAT_RAPPORT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ETAT_RAPPORT"
    ADD CONSTRAINT "ETAT_RAPPORT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22736 (class 2606 OID 6936922)
-- Name: ETAT_RAPPORT ETAT_RAPPORT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ETAT_RAPPORT"
    ADD CONSTRAINT "ETAT_RAPPORT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22738 (class 2606 OID 6936927)
-- Name: ETAT_STOCK_ELEMENT ETAT_STOCK_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ETAT_STOCK_ELEMENT"
    ADD CONSTRAINT "ETAT_STOCK_ELEMENT_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto48"."ARTICLE"("ID");


--
-- TOC entry 22739 (class 2606 OID 6936932)
-- Name: ETAT_STOCK_ELEMENT ETAT_STOCK_ELEMENT_ID_ETAT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ETAT_STOCK_ELEMENT"
    ADD CONSTRAINT "ETAT_STOCK_ELEMENT_ID_ETAT_STOCK_fkey" FOREIGN KEY ("ID_ETAT_STOCK") REFERENCES "OpenConcerto48"."ETAT_STOCK"("ID");


--
-- TOC entry 22737 (class 2606 OID 6936937)
-- Name: ETAT_STOCK ETAT_STOCK_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."ETAT_STOCK"
    ADD CONSTRAINT "ETAT_STOCK_ID_DEPOT_STOCK_fkey" FOREIGN KEY ("ID_DEPOT_STOCK") REFERENCES "OpenConcerto48"."DEPOT_STOCK"("ID");


--
-- TOC entry 22740 (class 2606 OID 6936942)
-- Name: FACTURATION_COMMANDE_CLIENT FACTURATION_COMMANDE_CLIENT_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURATION_COMMANDE_CLIENT"
    ADD CONSTRAINT "FACTURATION_COMMANDE_CLIENT_ID_COMMANDE_CLIENT_fkey" FOREIGN KEY ("ID_COMMANDE_CLIENT") REFERENCES "OpenConcerto48"."COMMANDE_CLIENT"("ID");


--
-- TOC entry 22741 (class 2606 OID 6936947)
-- Name: FACTURATION_COMMANDE_CLIENT FACTURATION_COMMANDE_CLIENT_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURATION_COMMANDE_CLIENT"
    ADD CONSTRAINT "FACTURATION_COMMANDE_CLIENT_ID_MODELE_fkey" FOREIGN KEY ("ID_MODELE") REFERENCES "OpenConcerto48"."MODELE"("ID");


--
-- TOC entry 22742 (class 2606 OID 6936952)
-- Name: FACTURATION_COMMANDE_CLIENT FACTURATION_COMMANDE_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURATION_COMMANDE_CLIENT"
    ADD CONSTRAINT "FACTURATION_COMMANDE_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey" FOREIGN KEY ("ID_SAISIE_VENTE_FACTURE") REFERENCES "OpenConcerto48"."SAISIE_VENTE_FACTURE"("ID");


--
-- TOC entry 22743 (class 2606 OID 6936957)
-- Name: FACTURATION_COMMANDE_CLIENT FACTURATION_COMMANDE_CLIENT_ID_TYPE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURATION_COMMANDE_CLIENT"
    ADD CONSTRAINT "FACTURATION_COMMANDE_CLIENT_ID_TYPE_REGLEMENT_fkey" FOREIGN KEY ("ID_TYPE_REGLEMENT") REFERENCES "OpenConcerto48"."TYPE_REGLEMENT"("ID");


--
-- TOC entry 22753 (class 2606 OID 6936962)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_DECLINAISON_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "OpenConcerto48"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 22754 (class 2606 OID 6936967)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_TAILLE") REFERENCES "OpenConcerto48"."ARTICLE_DECLINAISON_TAILLE"("ID");


--
-- TOC entry 22755 (class 2606 OID 6936972)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto48"."ARTICLE"("ID");


--
-- TOC entry 22756 (class 2606 OID 6936977)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_CODE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_CODE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_CODE_FOURNISSEUR") REFERENCES "OpenConcerto48"."CODE_FOURNISSEUR"("ID");


--
-- TOC entry 22757 (class 2606 OID 6936982)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_DEMANDE_ACHAT_ELEMENT_fkey" FOREIGN KEY ("ID_DEMANDE_ACHAT_ELEMENT") REFERENCES "OpenConcerto48"."DEMANDE_ACHAT_ELEMENT"("ID");


--
-- TOC entry 22758 (class 2606 OID 6936987)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_DEPOT_STOCK_fkey" FOREIGN KEY ("ID_DEPOT_STOCK") REFERENCES "OpenConcerto48"."DEPOT_STOCK"("ID");


--
-- TOC entry 22759 (class 2606 OID 6936992)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 22760 (class 2606 OID 6936997)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_ECO_CONTRIBUTION_fkey" FOREIGN KEY ("ID_ECO_CONTRIBUTION") REFERENCES "Common"."ECO_CONTRIBUTION"("ID");


--
-- TOC entry 22761 (class 2606 OID 6937002)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_FACTURE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_FACTURE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FACTURE_FOURNISSEUR") REFERENCES "OpenConcerto48"."FACTURE_FOURNISSEUR"("ID");


--
-- TOC entry 22762 (class 2606 OID 6937007)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_FAMILLE_ARTICLE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE") REFERENCES "OpenConcerto48"."FAMILLE_ARTICLE"("ID");


--
-- TOC entry 22763 (class 2606 OID 6937012)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "OpenConcerto48"."METRIQUE"("ID");


--
-- TOC entry 22764 (class 2606 OID 6937017)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "OpenConcerto48"."METRIQUE"("ID");


--
-- TOC entry 22765 (class 2606 OID 6937022)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "OpenConcerto48"."METRIQUE"("ID");


--
-- TOC entry 22766 (class 2606 OID 6937027)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "OpenConcerto48"."MODE_VENTE_ARTICLE"("ID");


--
-- TOC entry 22767 (class 2606 OID 6937032)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "OpenConcerto48"."STYLE"("ID_STYLE");


--
-- TOC entry 22768 (class 2606 OID 6937037)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto48"."TAXE"("ID_TAXE");


--
-- TOC entry 22769 (class 2606 OID 6937042)
-- Name: FACTURE_FOURNISSEUR_ELEMENT FACTURE_FOURNISSEUR_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR_ELEMENT"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "OpenConcerto48"."UNITE_VENTE"("ID");


--
-- TOC entry 22744 (class 2606 OID 6937047)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_AVOIR_FOURNISSEUR_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_AVOIR_FOURNISSEUR_2_fkey" FOREIGN KEY ("ID_AVOIR_FOURNISSEUR_2") REFERENCES "OpenConcerto48"."AVOIR_FOURNISSEUR"("ID");


--
-- TOC entry 22745 (class 2606 OID 6937052)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_AVOIR_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_AVOIR_FOURNISSEUR_fkey" FOREIGN KEY ("ID_AVOIR_FOURNISSEUR") REFERENCES "OpenConcerto48"."AVOIR_FOURNISSEUR"("ID");


--
-- TOC entry 22746 (class 2606 OID 6937057)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_COMMERCIAL_fkey" FOREIGN KEY ("ID_COMMERCIAL") REFERENCES "OpenConcerto48"."COMMERCIAL"("ID_COMMERCIAL");


--
-- TOC entry 22747 (class 2606 OID 6937062)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22748 (class 2606 OID 6937067)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 22749 (class 2606 OID 6937072)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto48"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 22750 (class 2606 OID 6937077)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_MODE_REGLEMENT_fkey" FOREIGN KEY ("ID_MODE_REGLEMENT") REFERENCES "OpenConcerto48"."MODE_REGLEMENT"("ID_MODE_REGLEMENT");


--
-- TOC entry 22751 (class 2606 OID 6937082)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto48"."MOUVEMENT"("ID");


--
-- TOC entry 22752 (class 2606 OID 6937087)
-- Name: FACTURE_FOURNISSEUR FACTURE_FOURNISSEUR_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FACTURE_FOURNISSEUR"
    ADD CONSTRAINT "FACTURE_FOURNISSEUR_ID_TAXE_PORT_fkey" FOREIGN KEY ("ID_TAXE_PORT") REFERENCES "OpenConcerto48"."TAXE"("ID_TAXE");


--
-- TOC entry 22775 (class 2606 OID 6937092)
-- Name: FAMILLE_ARTICLE_FOURNISSEUR FAMILLE_ARTICLE_FOURNISSEUR_ID_FAMILLE_ARTICLE_FOURNISSEUR_PERE; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FAMILLE_ARTICLE_FOURNISSEUR"
    ADD CONSTRAINT "FAMILLE_ARTICLE_FOURNISSEUR_ID_FAMILLE_ARTICLE_FOURNISSEUR_PERE" FOREIGN KEY ("ID_FAMILLE_ARTICLE_FOURNISSEUR_PERE") REFERENCES "OpenConcerto48"."FAMILLE_ARTICLE_FOURNISSEUR"("ID");


--
-- TOC entry 22770 (class 2606 OID 6937097)
-- Name: FAMILLE_ARTICLE FAMILLE_ARTICLE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FAMILLE_ARTICLE"
    ADD CONSTRAINT "FAMILLE_ARTICLE_ID_COMPTE_PCE_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACHAT") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22771 (class 2606 OID 6937102)
-- Name: FAMILLE_ARTICLE FAMILLE_ARTICLE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FAMILLE_ARTICLE"
    ADD CONSTRAINT "FAMILLE_ARTICLE_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22772 (class 2606 OID 6937107)
-- Name: FAMILLE_ARTICLE FAMILLE_ARTICLE_ID_FAMILLE_ARTICLE_PERE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FAMILLE_ARTICLE"
    ADD CONSTRAINT "FAMILLE_ARTICLE_ID_FAMILLE_ARTICLE_PERE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE_PERE") REFERENCES "OpenConcerto48"."FAMILLE_ARTICLE"("ID");


--
-- TOC entry 22773 (class 2606 OID 6937112)
-- Name: FAMILLE_ARTICLE FAMILLE_ARTICLE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FAMILLE_ARTICLE"
    ADD CONSTRAINT "FAMILLE_ARTICLE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22774 (class 2606 OID 6937117)
-- Name: FAMILLE_ARTICLE FAMILLE_ARTICLE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FAMILLE_ARTICLE"
    ADD CONSTRAINT "FAMILLE_ARTICLE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22788 (class 2606 OID 6937122)
-- Name: FICHE_PAYE_ELEMENT FICHE_PAYE_ELEMENT_ID_FICHE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FICHE_PAYE_ELEMENT"
    ADD CONSTRAINT "FICHE_PAYE_ELEMENT_ID_FICHE_PAYE_fkey" FOREIGN KEY ("ID_FICHE_PAYE") REFERENCES "OpenConcerto48"."FICHE_PAYE"("ID");


--
-- TOC entry 22789 (class 2606 OID 6937127)
-- Name: FICHE_PAYE_ELEMENT FICHE_PAYE_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FICHE_PAYE_ELEMENT"
    ADD CONSTRAINT "FICHE_PAYE_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "OpenConcerto48"."STYLE"("ID_STYLE");


--
-- TOC entry 22790 (class 2606 OID 6937132)
-- Name: FICHE_PAYE_ELEMENT FICHE_PAYE_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22791 (class 2606 OID 6937137)
-- Name: FICHE_PAYE_ELEMENT FICHE_PAYE_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22776 (class 2606 OID 6937142)
-- Name: FICHE_PAYE FICHE_PAYE_ID_CUMULS_CONGES_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_CUMULS_CONGES_fkey" FOREIGN KEY ("ID_CUMULS_CONGES") REFERENCES "OpenConcerto48"."CUMULS_CONGES"("ID");


--
-- TOC entry 22777 (class 2606 OID 6937147)
-- Name: FICHE_PAYE FICHE_PAYE_ID_CUMULS_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_CUMULS_PAYE_fkey" FOREIGN KEY ("ID_CUMULS_PAYE") REFERENCES "OpenConcerto48"."CUMULS_PAYE"("ID");


--
-- TOC entry 22778 (class 2606 OID 6937152)
-- Name: FICHE_PAYE FICHE_PAYE_ID_IDCC_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_IDCC_fkey" FOREIGN KEY ("ID_IDCC") REFERENCES "Common"."IDCC"("ID");


--
-- TOC entry 22779 (class 2606 OID 6937157)
-- Name: FICHE_PAYE FICHE_PAYE_ID_INFOS_SALARIE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_INFOS_SALARIE_PAYE_fkey" FOREIGN KEY ("ID_INFOS_SALARIE_PAYE") REFERENCES "OpenConcerto48"."INFOS_SALARIE_PAYE"("ID");


--
-- TOC entry 22780 (class 2606 OID 6937162)
-- Name: FICHE_PAYE FICHE_PAYE_ID_MOIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_MOIS_fkey" FOREIGN KEY ("ID_MOIS") REFERENCES "OpenConcerto48"."MOIS"("ID");


--
-- TOC entry 22781 (class 2606 OID 6937167)
-- Name: FICHE_PAYE FICHE_PAYE_ID_PAS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_PAS_fkey" FOREIGN KEY ("ID_PAS") REFERENCES "OpenConcerto48"."PAS"("ID");


--
-- TOC entry 22782 (class 2606 OID 6937172)
-- Name: FICHE_PAYE FICHE_PAYE_ID_PROFIL_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_PROFIL_PAYE_fkey" FOREIGN KEY ("ID_PROFIL_PAYE") REFERENCES "Common"."PROFIL_PAYE"("ID");


--
-- TOC entry 22783 (class 2606 OID 6937177)
-- Name: FICHE_PAYE FICHE_PAYE_ID_REGLEMENT_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_REGLEMENT_PAYE_fkey" FOREIGN KEY ("ID_REGLEMENT_PAYE") REFERENCES "OpenConcerto48"."REGLEMENT_PAYE"("ID");


--
-- TOC entry 22784 (class 2606 OID 6937182)
-- Name: FICHE_PAYE FICHE_PAYE_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_SALARIE_fkey" FOREIGN KEY ("ID_SALARIE") REFERENCES "OpenConcerto48"."SALARIE"("ID");


--
-- TOC entry 22785 (class 2606 OID 6937187)
-- Name: FICHE_PAYE FICHE_PAYE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22786 (class 2606 OID 6937192)
-- Name: FICHE_PAYE FICHE_PAYE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22787 (class 2606 OID 6937197)
-- Name: FICHE_PAYE FICHE_PAYE_ID_VARIABLE_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FICHE_PAYE"
    ADD CONSTRAINT "FICHE_PAYE_ID_VARIABLE_SALARIE_fkey" FOREIGN KEY ("ID_VARIABLE_SALARIE") REFERENCES "OpenConcerto48"."VARIABLE_SALARIE"("ID");


--
-- TOC entry 22792 (class 2606 OID 6937202)
-- Name: FIN_CONTRAT FIN_CONTRAT_ID_FICHE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FIN_CONTRAT"
    ADD CONSTRAINT "FIN_CONTRAT_ID_FICHE_PAYE_fkey" FOREIGN KEY ("ID_FICHE_PAYE") REFERENCES "OpenConcerto48"."FICHE_PAYE"("ID");


--
-- TOC entry 22793 (class 2606 OID 6937207)
-- Name: FIN_CONTRAT FIN_CONTRAT_ID_MOTIF_FIN_CONTRAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22794 (class 2606 OID 6937212)
-- Name: FIN_CONTRAT FIN_CONTRAT_ID_TYPE_PREAVIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FIN_CONTRAT"
    ADD CONSTRAINT "FIN_CONTRAT_ID_TYPE_PREAVIS_fkey" FOREIGN KEY ("ID_TYPE_PREAVIS") REFERENCES "Common"."TYPE_PREAVIS"("ID");


--
-- TOC entry 22795 (class 2606 OID 6937217)
-- Name: FOURNISSEUR FOURNISSEUR_ID_ADRESSE_E_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FOURNISSEUR"
    ADD CONSTRAINT "FOURNISSEUR_ID_ADRESSE_E_fkey" FOREIGN KEY ("ID_ADRESSE_E") REFERENCES "OpenConcerto48"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 22796 (class 2606 OID 6937222)
-- Name: FOURNISSEUR FOURNISSEUR_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FOURNISSEUR"
    ADD CONSTRAINT "FOURNISSEUR_ID_ADRESSE_fkey" FOREIGN KEY ("ID_ADRESSE") REFERENCES "OpenConcerto48"."ADRESSE"("ID_ADRESSE");


--
-- TOC entry 22797 (class 2606 OID 6937227)
-- Name: FOURNISSEUR FOURNISSEUR_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FOURNISSEUR"
    ADD CONSTRAINT "FOURNISSEUR_ID_CATEGORIE_COMPTABLE_fkey" FOREIGN KEY ("ID_CATEGORIE_COMPTABLE") REFERENCES "OpenConcerto48"."CATEGORIE_COMPTABLE"("ID");


--
-- TOC entry 22798 (class 2606 OID 6937232)
-- Name: FOURNISSEUR FOURNISSEUR_ID_COMPTE_PCE_CHARGE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FOURNISSEUR"
    ADD CONSTRAINT "FOURNISSEUR_ID_COMPTE_PCE_CHARGE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_CHARGE") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22799 (class 2606 OID 6937237)
-- Name: FOURNISSEUR FOURNISSEUR_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FOURNISSEUR"
    ADD CONSTRAINT "FOURNISSEUR_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22800 (class 2606 OID 6937242)
-- Name: FOURNISSEUR FOURNISSEUR_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FOURNISSEUR"
    ADD CONSTRAINT "FOURNISSEUR_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 22801 (class 2606 OID 6937247)
-- Name: FOURNISSEUR FOURNISSEUR_ID_LANGUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FOURNISSEUR"
    ADD CONSTRAINT "FOURNISSEUR_ID_LANGUE_fkey" FOREIGN KEY ("ID_LANGUE") REFERENCES "OpenConcerto48"."LANGUE"("ID");


--
-- TOC entry 22802 (class 2606 OID 6937252)
-- Name: FOURNISSEUR FOURNISSEUR_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FOURNISSEUR"
    ADD CONSTRAINT "FOURNISSEUR_ID_MODE_REGLEMENT_fkey" FOREIGN KEY ("ID_MODE_REGLEMENT") REFERENCES "OpenConcerto48"."MODE_REGLEMENT"("ID_MODE_REGLEMENT");


--
-- TOC entry 22803 (class 2606 OID 6937257)
-- Name: FOURNISSEUR FOURNISSEUR_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FOURNISSEUR"
    ADD CONSTRAINT "FOURNISSEUR_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22804 (class 2606 OID 6937262)
-- Name: FOURNISSEUR FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FOURNISSEUR"
    ADD CONSTRAINT "FOURNISSEUR_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22805 (class 2606 OID 6937267)
-- Name: FRAIS_DOCUMENT FRAIS_DOCUMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FRAIS_DOCUMENT"
    ADD CONSTRAINT "FRAIS_DOCUMENT_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto48"."TAXE"("ID_TAXE");


--
-- TOC entry 22806 (class 2606 OID 6937272)
-- Name: FWK_MODULE_DEP FWK_MODULE_DEP_ID_MODULE_NEEDED_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FWK_MODULE_DEP"
    ADD CONSTRAINT "FWK_MODULE_DEP_ID_MODULE_NEEDED_fkey" FOREIGN KEY ("ID_MODULE_NEEDED") REFERENCES "OpenConcerto48"."FWK_MODULE_METADATA"("ID") ON UPDATE CASCADE ON DELETE RESTRICT;


--
-- TOC entry 22807 (class 2606 OID 6937277)
-- Name: FWK_MODULE_DEP FWK_MODULE_DEP_ID_MODULE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."FWK_MODULE_DEP"
    ADD CONSTRAINT "FWK_MODULE_DEP_ID_MODULE_fkey" FOREIGN KEY ("ID_MODULE") REFERENCES "OpenConcerto48"."FWK_MODULE_METADATA"("ID") ON UPDATE CASCADE ON DELETE CASCADE;


--
-- TOC entry 22808 (class 2606 OID 6937282)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_CLASSEMENT_CONVENTIONNEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."INFOS_SALARIE_PAYE"
    ADD CONSTRAINT "INFOS_SALARIE_PAYE_ID_CLASSEMENT_CONVENTIONNEL_fkey" FOREIGN KEY ("ID_CLASSEMENT_CONVENTIONNEL") REFERENCES "OpenConcerto48"."CLASSEMENT_CONVENTIONNEL"("ID");


--
-- TOC entry 22809 (class 2606 OID 6937287)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_COEFF_PRIME_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."INFOS_SALARIE_PAYE"
    ADD CONSTRAINT "INFOS_SALARIE_PAYE_ID_COEFF_PRIME_fkey" FOREIGN KEY ("ID_COEFF_PRIME") REFERENCES "OpenConcerto48"."COEFF_PRIME"("ID");


--
-- TOC entry 22810 (class 2606 OID 6937292)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_CONTRAT_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."INFOS_SALARIE_PAYE"
    ADD CONSTRAINT "INFOS_SALARIE_PAYE_ID_CONTRAT_SALARIE_fkey" FOREIGN KEY ("ID_CONTRAT_SALARIE") REFERENCES "OpenConcerto48"."CONTRAT_SALARIE"("ID");


--
-- TOC entry 22811 (class 2606 OID 6937297)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_IDCC_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."INFOS_SALARIE_PAYE"
    ADD CONSTRAINT "INFOS_SALARIE_PAYE_ID_IDCC_fkey" FOREIGN KEY ("ID_IDCC") REFERENCES "Common"."IDCC"("ID");


--
-- TOC entry 22812 (class 2606 OID 6937302)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."INFOS_SALARIE_PAYE"
    ADD CONSTRAINT "INFOS_SALARIE_PAYE_ID_SALARIE_fkey" FOREIGN KEY ("ID_SALARIE") REFERENCES "OpenConcerto48"."SALARIE"("ID");


--
-- TOC entry 22813 (class 2606 OID 6937307)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22814 (class 2606 OID 6937312)
-- Name: INFOS_SALARIE_PAYE INFOS_SALARIE_PAYE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22815 (class 2606 OID 6937317)
-- Name: JOURNAL JOURNAL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."JOURNAL"
    ADD CONSTRAINT "JOURNAL_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22816 (class 2606 OID 6937322)
-- Name: JOURNAL JOURNAL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."JOURNAL"
    ADD CONSTRAINT "JOURNAL_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22817 (class 2606 OID 6937327)
-- Name: LOT LOT_ID_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."LOT"
    ADD CONSTRAINT "LOT_ID_STOCK_fkey" FOREIGN KEY ("ID_STOCK") REFERENCES "OpenConcerto48"."STOCK"("ID");


--
-- TOC entry 22818 (class 2606 OID 6937332)
-- Name: LOT_LIVRAISON LOT_LIVRAISON_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."LOT_LIVRAISON"
    ADD CONSTRAINT "LOT_LIVRAISON_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto48"."ARTICLE"("ID");


--
-- TOC entry 22819 (class 2606 OID 6937337)
-- Name: LOT_LIVRAISON LOT_LIVRAISON_ID_BON_DE_LIVRAISON_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."LOT_LIVRAISON"
    ADD CONSTRAINT "LOT_LIVRAISON_ID_BON_DE_LIVRAISON_ELEMENT_fkey" FOREIGN KEY ("ID_BON_DE_LIVRAISON_ELEMENT") REFERENCES "OpenConcerto48"."BON_DE_LIVRAISON_ELEMENT"("ID");


--
-- TOC entry 22820 (class 2606 OID 6937342)
-- Name: LOT_LIVRAISON LOT_LIVRAISON_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."LOT_LIVRAISON"
    ADD CONSTRAINT "LOT_LIVRAISON_ID_DEPOT_STOCK_fkey" FOREIGN KEY ("ID_DEPOT_STOCK") REFERENCES "OpenConcerto48"."DEPOT_STOCK"("ID");


--
-- TOC entry 22821 (class 2606 OID 6937347)
-- Name: LOT_LIVRAISON LOT_LIVRAISON_ID_LOT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."LOT_LIVRAISON"
    ADD CONSTRAINT "LOT_LIVRAISON_ID_LOT_fkey" FOREIGN KEY ("ID_LOT") REFERENCES "OpenConcerto48"."LOT"("ID");


--
-- TOC entry 22822 (class 2606 OID 6937352)
-- Name: LOT_RECEPTION LOT_RECEPTION_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."LOT_RECEPTION"
    ADD CONSTRAINT "LOT_RECEPTION_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto48"."ARTICLE"("ID");


--
-- TOC entry 22823 (class 2606 OID 6937357)
-- Name: LOT_RECEPTION LOT_RECEPTION_ID_BON_RECEPTION_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."LOT_RECEPTION"
    ADD CONSTRAINT "LOT_RECEPTION_ID_BON_RECEPTION_ELEMENT_fkey" FOREIGN KEY ("ID_BON_RECEPTION_ELEMENT") REFERENCES "OpenConcerto48"."BON_RECEPTION_ELEMENT"("ID");


--
-- TOC entry 22824 (class 2606 OID 6937362)
-- Name: LOT_RECEPTION LOT_RECEPTION_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."LOT_RECEPTION"
    ADD CONSTRAINT "LOT_RECEPTION_ID_DEPOT_STOCK_fkey" FOREIGN KEY ("ID_DEPOT_STOCK") REFERENCES "OpenConcerto48"."DEPOT_STOCK"("ID");


--
-- TOC entry 22825 (class 2606 OID 6937367)
-- Name: LOT_RECEPTION LOT_RECEPTION_ID_LOT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."LOT_RECEPTION"
    ADD CONSTRAINT "LOT_RECEPTION_ID_LOT_fkey" FOREIGN KEY ("ID_LOT") REFERENCES "OpenConcerto48"."LOT"("ID");


--
-- TOC entry 22826 (class 2606 OID 6937372)
-- Name: METRIQUE METRIQUE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."METRIQUE"
    ADD CONSTRAINT "METRIQUE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22827 (class 2606 OID 6937377)
-- Name: METRIQUE METRIQUE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."METRIQUE"
    ADD CONSTRAINT "METRIQUE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22829 (class 2606 OID 6937382)
-- Name: MODELE_COURRIER_CLIENT MODELE_COURRIER_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22830 (class 2606 OID 6937387)
-- Name: MODELE_COURRIER_CLIENT MODELE_COURRIER_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22828 (class 2606 OID 6937392)
-- Name: MODELE MODELE_ID_TYPE_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MODELE"
    ADD CONSTRAINT "MODELE_ID_TYPE_MODELE_fkey" FOREIGN KEY ("ID_TYPE_MODELE") REFERENCES "Common"."TYPE_MODELE"("ID");


--
-- TOC entry 22831 (class 2606 OID 6937397)
-- Name: MODE_REGLEMENT MODE_REGLEMENT_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MODE_REGLEMENT"
    ADD CONSTRAINT "MODE_REGLEMENT_ID_BANQUE_fkey" FOREIGN KEY ("ID_BANQUE") REFERENCES "OpenConcerto48"."BANQUE"("ID");


--
-- TOC entry 22832 (class 2606 OID 6937402)
-- Name: MODE_REGLEMENT MODE_REGLEMENT_ID_SEPA_MANDATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MODE_REGLEMENT"
    ADD CONSTRAINT "MODE_REGLEMENT_ID_SEPA_MANDATE_fkey" FOREIGN KEY ("ID_SEPA_MANDATE") REFERENCES "OpenConcerto48"."SEPA_MANDATE"("ID");


--
-- TOC entry 22833 (class 2606 OID 6937407)
-- Name: MODE_REGLEMENT MODE_REGLEMENT_ID_TYPE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MODE_REGLEMENT"
    ADD CONSTRAINT "MODE_REGLEMENT_ID_TYPE_REGLEMENT_fkey" FOREIGN KEY ("ID_TYPE_REGLEMENT") REFERENCES "OpenConcerto48"."TYPE_REGLEMENT"("ID");


--
-- TOC entry 22834 (class 2606 OID 6937412)
-- Name: MODE_REGLEMENT MODE_REGLEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MODE_REGLEMENT"
    ADD CONSTRAINT "MODE_REGLEMENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22835 (class 2606 OID 6937417)
-- Name: MODE_REGLEMENT MODE_REGLEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MODE_REGLEMENT"
    ADD CONSTRAINT "MODE_REGLEMENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22836 (class 2606 OID 6937422)
-- Name: MODE_VENTE_ARTICLE MODE_VENTE_ARTICLE_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MODE_VENTE_ARTICLE"
    ADD CONSTRAINT "MODE_VENTE_ARTICLE_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "OpenConcerto48"."METRIQUE"("ID");


--
-- TOC entry 22837 (class 2606 OID 6937427)
-- Name: MODE_VENTE_ARTICLE MODE_VENTE_ARTICLE_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MODE_VENTE_ARTICLE"
    ADD CONSTRAINT "MODE_VENTE_ARTICLE_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "OpenConcerto48"."METRIQUE"("ID");


--
-- TOC entry 22838 (class 2606 OID 6937432)
-- Name: MODE_VENTE_ARTICLE MODE_VENTE_ARTICLE_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MODE_VENTE_ARTICLE"
    ADD CONSTRAINT "MODE_VENTE_ARTICLE_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "OpenConcerto48"."METRIQUE"("ID");


--
-- TOC entry 22839 (class 2606 OID 6937437)
-- Name: MODE_VENTE_ARTICLE MODE_VENTE_ARTICLE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22840 (class 2606 OID 6937442)
-- Name: MODE_VENTE_ARTICLE MODE_VENTE_ARTICLE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22841 (class 2606 OID 6937447)
-- Name: MOIS MOIS_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MOIS"
    ADD CONSTRAINT "MOIS_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22842 (class 2606 OID 6937452)
-- Name: MOIS MOIS_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MOIS"
    ADD CONSTRAINT "MOIS_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22843 (class 2606 OID 6937457)
-- Name: MOUVEMENT MOUVEMENT_ID_MOUVEMENT_PERE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MOUVEMENT"
    ADD CONSTRAINT "MOUVEMENT_ID_MOUVEMENT_PERE_fkey" FOREIGN KEY ("ID_MOUVEMENT_PERE") REFERENCES "OpenConcerto48"."MOUVEMENT"("ID");


--
-- TOC entry 22844 (class 2606 OID 6937462)
-- Name: MOUVEMENT MOUVEMENT_ID_PIECE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MOUVEMENT"
    ADD CONSTRAINT "MOUVEMENT_ID_PIECE_fkey" FOREIGN KEY ("ID_PIECE") REFERENCES "OpenConcerto48"."PIECE"("ID");


--
-- TOC entry 22845 (class 2606 OID 6937467)
-- Name: MOUVEMENT MOUVEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MOUVEMENT"
    ADD CONSTRAINT "MOUVEMENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22846 (class 2606 OID 6937472)
-- Name: MOUVEMENT MOUVEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MOUVEMENT"
    ADD CONSTRAINT "MOUVEMENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22847 (class 2606 OID 6937477)
-- Name: MOUVEMENT_STOCK MOUVEMENT_STOCK_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MOUVEMENT_STOCK"
    ADD CONSTRAINT "MOUVEMENT_STOCK_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto48"."ARTICLE"("ID");


--
-- TOC entry 22848 (class 2606 OID 6937482)
-- Name: MOUVEMENT_STOCK MOUVEMENT_STOCK_ID_ETAT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MOUVEMENT_STOCK"
    ADD CONSTRAINT "MOUVEMENT_STOCK_ID_ETAT_STOCK_fkey" FOREIGN KEY ("ID_ETAT_STOCK") REFERENCES "OpenConcerto48"."ETAT_STOCK"("ID");


--
-- TOC entry 22849 (class 2606 OID 6937487)
-- Name: MOUVEMENT_STOCK MOUVEMENT_STOCK_ID_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MOUVEMENT_STOCK"
    ADD CONSTRAINT "MOUVEMENT_STOCK_ID_STOCK_fkey" FOREIGN KEY ("ID_STOCK") REFERENCES "OpenConcerto48"."STOCK"("ID");


--
-- TOC entry 22850 (class 2606 OID 6937492)
-- Name: MOUVEMENT_STOCK MOUVEMENT_STOCK_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MOUVEMENT_STOCK"
    ADD CONSTRAINT "MOUVEMENT_STOCK_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22851 (class 2606 OID 6937497)
-- Name: MOUVEMENT_STOCK MOUVEMENT_STOCK_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."MOUVEMENT_STOCK"
    ADD CONSTRAINT "MOUVEMENT_STOCK_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22852 (class 2606 OID 6937502)
-- Name: NATURE_COMPTE NATURE_COMPTE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."NATURE_COMPTE"
    ADD CONSTRAINT "NATURE_COMPTE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22853 (class 2606 OID 6937507)
-- Name: NATURE_COMPTE NATURE_COMPTE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."NATURE_COMPTE"
    ADD CONSTRAINT "NATURE_COMPTE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22854 (class 2606 OID 6937512)
-- Name: NUMEROTATION_AUTO NUMEROTATION_AUTO_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."NUMEROTATION_AUTO"
    ADD CONSTRAINT "NUMEROTATION_AUTO_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22855 (class 2606 OID 6937517)
-- Name: NUMEROTATION_AUTO NUMEROTATION_AUTO_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."NUMEROTATION_AUTO"
    ADD CONSTRAINT "NUMEROTATION_AUTO_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22856 (class 2606 OID 6937522)
-- Name: OBJECTIF_COMMERCIAL OBJECTIF_COMMERCIAL_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."OBJECTIF_COMMERCIAL"
    ADD CONSTRAINT "OBJECTIF_COMMERCIAL_ID_COMMERCIAL_fkey" FOREIGN KEY ("ID_COMMERCIAL") REFERENCES "OpenConcerto48"."COMMERCIAL"("ID_COMMERCIAL");


--
-- TOC entry 22857 (class 2606 OID 6937527)
-- Name: PAS PAS_ID_TYPE_TAUX_PAS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PAS"
    ADD CONSTRAINT "PAS_ID_TYPE_TAUX_PAS_fkey" FOREIGN KEY ("ID_TYPE_TAUX_PAS") REFERENCES "Common"."TYPE_TAUX_PAS"("ID");


--
-- TOC entry 22858 (class 2606 OID 6937532)
-- Name: PAYS PAYS_ID_LANGUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PAYS"
    ADD CONSTRAINT "PAYS_ID_LANGUE_fkey" FOREIGN KEY ("ID_LANGUE") REFERENCES "OpenConcerto48"."LANGUE"("ID");


--
-- TOC entry 22859 (class 2606 OID 6937537)
-- Name: PAYS PAYS_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PAYS"
    ADD CONSTRAINT "PAYS_ID_TARIF_fkey" FOREIGN KEY ("ID_TARIF") REFERENCES "OpenConcerto48"."TARIF"("ID");


--
-- TOC entry 22860 (class 2606 OID 6937542)
-- Name: PAYS PAYS_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PAYS"
    ADD CONSTRAINT "PAYS_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22861 (class 2606 OID 6937547)
-- Name: PAYS PAYS_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PAYS"
    ADD CONSTRAINT "PAYS_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22862 (class 2606 OID 6937552)
-- Name: PIECE PIECE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PIECE"
    ADD CONSTRAINT "PIECE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22863 (class 2606 OID 6937557)
-- Name: PIECE PIECE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PIECE"
    ADD CONSTRAINT "PIECE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22864 (class 2606 OID 6937562)
-- Name: POSTE_ANALYTIQUE POSTE_ANALYTIQUE_ID_AXE_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."POSTE_ANALYTIQUE"
    ADD CONSTRAINT "POSTE_ANALYTIQUE_ID_AXE_ANALYTIQUE_fkey" FOREIGN KEY ("ID_AXE_ANALYTIQUE") REFERENCES "OpenConcerto48"."AXE_ANALYTIQUE"("ID");


--
-- TOC entry 22865 (class 2606 OID 6937567)
-- Name: POSTE_ANALYTIQUE POSTE_ANALYTIQUE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."POSTE_ANALYTIQUE"
    ADD CONSTRAINT "POSTE_ANALYTIQUE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22866 (class 2606 OID 6937572)
-- Name: POSTE_ANALYTIQUE POSTE_ANALYTIQUE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."POSTE_ANALYTIQUE"
    ADD CONSTRAINT "POSTE_ANALYTIQUE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22867 (class 2606 OID 6937577)
-- Name: PREFERENCES PREFERENCES_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFERENCES"
    ADD CONSTRAINT "PREFERENCES_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22868 (class 2606 OID 6937582)
-- Name: PREFERENCES PREFERENCES_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFERENCES"
    ADD CONSTRAINT "PREFERENCES_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22869 (class 2606 OID 6937587)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_ACHAT_INTRA_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_ACHAT_INTRA_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACHAT_INTRA") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22870 (class 2606 OID 6937592)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACHAT") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22871 (class 2606 OID 6937597)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_ACOMPTE_REGL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_ACOMPTE_REGL_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACOMPTE_REGL") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22872 (class 2606 OID 6937602)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_ACOMPTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_ACOMPTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_ACOMPTE") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22873 (class 2606 OID 6937607)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_AVANCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_AVANCE_CLIENT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_AVANCE_CLIENT") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22874 (class 2606 OID 6937612)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_BILAN_F_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_BILAN_F_fkey" FOREIGN KEY ("ID_COMPTE_PCE_BILAN_F") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22875 (class 2606 OID 6937617)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_BILAN_O_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_BILAN_O_fkey" FOREIGN KEY ("ID_COMPTE_PCE_BILAN_O") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22876 (class 2606 OID 6937622)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_CB_ATTENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_CB_ATTENTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_CB_ATTENTE") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22877 (class 2606 OID 6937627)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_CLIENT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_CLIENT") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22878 (class 2606 OID 6937632)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_FACTOR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_FACTOR_fkey" FOREIGN KEY ("ID_COMPTE_PCE_FACTOR") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22879 (class 2606 OID 6937637)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_COMPTE_PCE_FOURNISSEUR") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22880 (class 2606 OID 6937642)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_PAYE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PAYE") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22881 (class 2606 OID 6937647)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_PORT_NON_SOUMIS_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_PORT_NON_SOUMIS_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PORT_NON_SOUMIS_ACHAT") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22882 (class 2606 OID 6937652)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_PORT_NON_SOUMIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_PORT_NON_SOUMIS_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PORT_NON_SOUMIS") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22883 (class 2606 OID 6937657)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_PORT_SOUMIS_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_PORT_SOUMIS_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PORT_SOUMIS_ACHAT") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22884 (class 2606 OID 6937662)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_PORT_SOUMIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_PORT_SOUMIS_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PORT_SOUMIS") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22885 (class 2606 OID 6937667)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_RESULTAT_PERTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_RESULTAT_PERTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_RESULTAT_PERTE") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22886 (class 2606 OID 6937672)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_RESULTAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_RESULTAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_RESULTAT") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22887 (class 2606 OID 6937677)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_TVA_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_TVA_ACHAT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TVA_ACHAT") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22888 (class 2606 OID 6937682)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_TVA_IMMO_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_TVA_IMMO_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TVA_IMMO") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22889 (class 2606 OID 6937687)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_TVA_INTRA_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_TVA_INTRA_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TVA_INTRA") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22890 (class 2606 OID 6937692)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_TVA_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_TVA_VENTE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_TVA_VENTE") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22891 (class 2606 OID 6937697)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_VALEUR_ENCAISSEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_VALEUR_ENCAISSEMENT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_VALEUR_ENCAISSEMENT") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22892 (class 2606 OID 6937702)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_VENTE_PRODUIT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_VENTE_PRODUIT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_VENTE_PRODUIT") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22893 (class 2606 OID 6937707)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_COMPTE_PCE_VENTE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_COMPTE_PCE_VENTE_SERVICE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_VENTE_SERVICE") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22894 (class 2606 OID 6937712)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_JOURNAL_AN_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_JOURNAL_AN_fkey" FOREIGN KEY ("ID_JOURNAL_AN") REFERENCES "OpenConcerto48"."JOURNAL"("ID");


--
-- TOC entry 22895 (class 2606 OID 6937717)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_JOURNAL_CB_ATTENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_JOURNAL_CB_ATTENTE_fkey" FOREIGN KEY ("ID_JOURNAL_CB_ATTENTE") REFERENCES "OpenConcerto48"."JOURNAL"("ID");


--
-- TOC entry 22896 (class 2606 OID 6937722)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_JOURNAL_FACTOR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_JOURNAL_FACTOR_fkey" FOREIGN KEY ("ID_JOURNAL_FACTOR") REFERENCES "OpenConcerto48"."JOURNAL"("ID");


--
-- TOC entry 22897 (class 2606 OID 6937727)
-- Name: PREFS_COMPTE PREFS_COMPTE_ID_JOURNAL_VALEUR_ENCAISSEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."PREFS_COMPTE"
    ADD CONSTRAINT "PREFS_COMPTE_ID_JOURNAL_VALEUR_ENCAISSEMENT_fkey" FOREIGN KEY ("ID_JOURNAL_VALEUR_ENCAISSEMENT") REFERENCES "OpenConcerto48"."JOURNAL"("ID");


--
-- TOC entry 23093 (class 2606 OID 6940623)
-- Name: RAPPROCHEMENT_BANCAIRE RAPPROCHEMENT_BANCAIRE_ID_ECRITURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."RAPPROCHEMENT_BANCAIRE"
    ADD CONSTRAINT "RAPPROCHEMENT_BANCAIRE_ID_ECRITURE_fkey" FOREIGN KEY ("ID_ECRITURE") REFERENCES "OpenConcerto48"."ECRITURE"("ID");


--
-- TOC entry 23094 (class 2606 OID 6940618)
-- Name: RAPPROCHEMENT_BANCAIRE RAPPROCHEMENT_BANCAIRE_ID_RELEVE_BANCAIRE_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."RAPPROCHEMENT_BANCAIRE"
    ADD CONSTRAINT "RAPPROCHEMENT_BANCAIRE_ID_RELEVE_BANCAIRE_ELEMENT_fkey" FOREIGN KEY ("ID_RELEVE_BANCAIRE_ELEMENT") REFERENCES "OpenConcerto48"."RELEVE_BANCAIRE_ELEMENT"("ID");


--
-- TOC entry 22898 (class 2606 OID 6937732)
-- Name: REFERENCE_CLIENT REFERENCE_CLIENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REFERENCE_CLIENT"
    ADD CONSTRAINT "REFERENCE_CLIENT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22899 (class 2606 OID 6937737)
-- Name: REFERENCE_CLIENT REFERENCE_CLIENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REFERENCE_CLIENT"
    ADD CONSTRAINT "REFERENCE_CLIENT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22900 (class 2606 OID 6937742)
-- Name: REGIME_BASE REGIME_BASE_ID_CODE_REGIME_AT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_CODE_REGIME_AT_fkey" FOREIGN KEY ("ID_CODE_REGIME_AT") REFERENCES "OpenConcerto48"."CODE_REGIME"("ID");


--
-- TOC entry 22901 (class 2606 OID 6937747)
-- Name: REGIME_BASE REGIME_BASE_ID_CODE_REGIME_BASE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_CODE_REGIME_BASE_fkey" FOREIGN KEY ("ID_CODE_REGIME_BASE") REFERENCES "OpenConcerto48"."CODE_REGIME"("ID");


--
-- TOC entry 22902 (class 2606 OID 6937752)
-- Name: REGIME_BASE REGIME_BASE_ID_CODE_REGIME_MALADIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_CODE_REGIME_MALADIE_fkey" FOREIGN KEY ("ID_CODE_REGIME_MALADIE") REFERENCES "OpenConcerto48"."CODE_REGIME"("ID");


--
-- TOC entry 22903 (class 2606 OID 6937757)
-- Name: REGIME_BASE REGIME_BASE_ID_CODE_REGIME_VIEL_P_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_CODE_REGIME_VIEL_P_fkey" FOREIGN KEY ("ID_CODE_REGIME_VIEL_P") REFERENCES "OpenConcerto48"."CODE_REGIME"("ID");


--
-- TOC entry 22904 (class 2606 OID 6937762)
-- Name: REGIME_BASE REGIME_BASE_ID_CODE_REGIME_VIEL_S_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_CODE_REGIME_VIEL_S_fkey" FOREIGN KEY ("ID_CODE_REGIME_VIEL_S") REFERENCES "OpenConcerto48"."CODE_REGIME"("ID");


--
-- TOC entry 22905 (class 2606 OID 6937767)
-- Name: REGIME_BASE REGIME_BASE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22906 (class 2606 OID 6937772)
-- Name: REGIME_BASE REGIME_BASE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGIME_BASE"
    ADD CONSTRAINT "REGIME_BASE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22907 (class 2606 OID 6937777)
-- Name: REGLEMENT_PAYE REGLEMENT_PAYE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGLEMENT_PAYE"
    ADD CONSTRAINT "REGLEMENT_PAYE_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22908 (class 2606 OID 6937782)
-- Name: REGLEMENT_PAYE REGLEMENT_PAYE_ID_MODE_REGLEMENT_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGLEMENT_PAYE"
    ADD CONSTRAINT "REGLEMENT_PAYE_ID_MODE_REGLEMENT_PAYE_fkey" FOREIGN KEY ("ID_MODE_REGLEMENT_PAYE") REFERENCES "OpenConcerto48"."MODE_REGLEMENT_PAYE"("ID");


--
-- TOC entry 22909 (class 2606 OID 6937787)
-- Name: REGLEMENT_PAYE REGLEMENT_PAYE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGLEMENT_PAYE"
    ADD CONSTRAINT "REGLEMENT_PAYE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22910 (class 2606 OID 6937792)
-- Name: REGLEMENT_PAYE REGLEMENT_PAYE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGLEMENT_PAYE"
    ADD CONSTRAINT "REGLEMENT_PAYE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22917 (class 2606 OID 6937797)
-- Name: REGLER_MONTANT_ELEMENT REGLER_MONTANT_ELEMENT_ID_ECHEANCE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGLER_MONTANT_ELEMENT"
    ADD CONSTRAINT "REGLER_MONTANT_ELEMENT_ID_ECHEANCE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_ECHEANCE_FOURNISSEUR") REFERENCES "OpenConcerto48"."ECHEANCE_FOURNISSEUR"("ID");


--
-- TOC entry 22918 (class 2606 OID 6937802)
-- Name: REGLER_MONTANT_ELEMENT REGLER_MONTANT_ELEMENT_ID_MOUVEMENT_ECHEANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGLER_MONTANT_ELEMENT"
    ADD CONSTRAINT "REGLER_MONTANT_ELEMENT_ID_MOUVEMENT_ECHEANCE_fkey" FOREIGN KEY ("ID_MOUVEMENT_ECHEANCE") REFERENCES "OpenConcerto48"."MOUVEMENT"("ID");


--
-- TOC entry 22919 (class 2606 OID 6937807)
-- Name: REGLER_MONTANT_ELEMENT REGLER_MONTANT_ELEMENT_ID_REGLER_MONTANT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGLER_MONTANT_ELEMENT"
    ADD CONSTRAINT "REGLER_MONTANT_ELEMENT_ID_REGLER_MONTANT_fkey" FOREIGN KEY ("ID_REGLER_MONTANT") REFERENCES "OpenConcerto48"."REGLER_MONTANT"("ID");


--
-- TOC entry 22911 (class 2606 OID 6937812)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_ECHEANCE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGLER_MONTANT"
    ADD CONSTRAINT "REGLER_MONTANT_ID_ECHEANCE_FOURNISSEUR_fkey" FOREIGN KEY ("ID_ECHEANCE_FOURNISSEUR") REFERENCES "OpenConcerto48"."ECHEANCE_FOURNISSEUR"("ID");


--
-- TOC entry 22912 (class 2606 OID 6937817)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGLER_MONTANT"
    ADD CONSTRAINT "REGLER_MONTANT_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto48"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 22913 (class 2606 OID 6937822)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGLER_MONTANT"
    ADD CONSTRAINT "REGLER_MONTANT_ID_MODE_REGLEMENT_fkey" FOREIGN KEY ("ID_MODE_REGLEMENT") REFERENCES "OpenConcerto48"."MODE_REGLEMENT"("ID_MODE_REGLEMENT");


--
-- TOC entry 22914 (class 2606 OID 6940684)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGLER_MONTANT"
    ADD CONSTRAINT "REGLER_MONTANT_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto48"."MOUVEMENT"("ID");


--
-- TOC entry 22915 (class 2606 OID 6937827)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGLER_MONTANT"
    ADD CONSTRAINT "REGLER_MONTANT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22916 (class 2606 OID 6937832)
-- Name: REGLER_MONTANT REGLER_MONTANT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REGLER_MONTANT"
    ADD CONSTRAINT "REGLER_MONTANT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22920 (class 2606 OID 6937837)
-- Name: RELANCE RELANCE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."RELANCE"
    ADD CONSTRAINT "RELANCE_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto48"."CLIENT"("ID");


--
-- TOC entry 22921 (class 2606 OID 6937842)
-- Name: RELANCE RELANCE_ID_ECHEANCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."RELANCE"
    ADD CONSTRAINT "RELANCE_ID_ECHEANCE_CLIENT_fkey" FOREIGN KEY ("ID_ECHEANCE_CLIENT") REFERENCES "OpenConcerto48"."ECHEANCE_CLIENT"("ID");


--
-- TOC entry 22922 (class 2606 OID 6937847)
-- Name: RELANCE RELANCE_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."RELANCE"
    ADD CONSTRAINT "RELANCE_ID_SAISIE_VENTE_FACTURE_fkey" FOREIGN KEY ("ID_SAISIE_VENTE_FACTURE") REFERENCES "OpenConcerto48"."SAISIE_VENTE_FACTURE"("ID");


--
-- TOC entry 22923 (class 2606 OID 6937852)
-- Name: RELANCE RELANCE_ID_TYPE_LETTRE_RELANCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."RELANCE"
    ADD CONSTRAINT "RELANCE_ID_TYPE_LETTRE_RELANCE_fkey" FOREIGN KEY ("ID_TYPE_LETTRE_RELANCE") REFERENCES "OpenConcerto48"."TYPE_LETTRE_RELANCE"("ID");


--
-- TOC entry 22924 (class 2606 OID 6937857)
-- Name: RELANCE RELANCE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."RELANCE"
    ADD CONSTRAINT "RELANCE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22925 (class 2606 OID 6937862)
-- Name: RELANCE RELANCE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."RELANCE"
    ADD CONSTRAINT "RELANCE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 23092 (class 2606 OID 6940600)
-- Name: RELEVE_BANCAIRE_ELEMENT RELEVE_BANCAIRE_ELEMENT_ID_RELEVE_BANCAIRE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."RELEVE_BANCAIRE_ELEMENT"
    ADD CONSTRAINT "RELEVE_BANCAIRE_ELEMENT_ID_RELEVE_BANCAIRE_fkey" FOREIGN KEY ("ID_RELEVE_BANCAIRE") REFERENCES "OpenConcerto48"."RELEVE_BANCAIRE"("ID");


--
-- TOC entry 23091 (class 2606 OID 6940572)
-- Name: RELEVE_BANCAIRE RELEVE_BANCAIRE_ID_BANQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."RELEVE_BANCAIRE"
    ADD CONSTRAINT "RELEVE_BANCAIRE_ID_BANQUE_fkey" FOREIGN KEY ("ID_BANQUE") REFERENCES "OpenConcerto48"."BANQUE"("ID");


--
-- TOC entry 22928 (class 2606 OID 6937867)
-- Name: REPARTITION_ANALYTIQUE_ELEMENT REPARTITION_ANALYTIQUE_ELEMENT_ID_POSTE_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REPARTITION_ANALYTIQUE_ELEMENT"
    ADD CONSTRAINT "REPARTITION_ANALYTIQUE_ELEMENT_ID_POSTE_ANALYTIQUE_fkey" FOREIGN KEY ("ID_POSTE_ANALYTIQUE") REFERENCES "OpenConcerto48"."POSTE_ANALYTIQUE"("ID");


--
-- TOC entry 22929 (class 2606 OID 6937872)
-- Name: REPARTITION_ANALYTIQUE_ELEMENT REPARTITION_ANALYTIQUE_ELEMENT_ID_REPARTITION_ANALYTIQUE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REPARTITION_ANALYTIQUE_ELEMENT"
    ADD CONSTRAINT "REPARTITION_ANALYTIQUE_ELEMENT_ID_REPARTITION_ANALYTIQUE_fkey" FOREIGN KEY ("ID_REPARTITION_ANALYTIQUE") REFERENCES "OpenConcerto48"."REPARTITION_ANALYTIQUE"("ID");


--
-- TOC entry 22930 (class 2606 OID 6937877)
-- Name: REPARTITION_ANALYTIQUE_ELEMENT REPARTITION_ANALYTIQUE_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22931 (class 2606 OID 6937882)
-- Name: REPARTITION_ANALYTIQUE_ELEMENT REPARTITION_ANALYTIQUE_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22926 (class 2606 OID 6937887)
-- Name: REPARTITION_ANALYTIQUE REPARTITION_ANALYTIQUE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REPARTITION_ANALYTIQUE"
    ADD CONSTRAINT "REPARTITION_ANALYTIQUE_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22927 (class 2606 OID 6937892)
-- Name: REPARTITION_ANALYTIQUE REPARTITION_ANALYTIQUE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REPARTITION_ANALYTIQUE"
    ADD CONSTRAINT "REPARTITION_ANALYTIQUE_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22932 (class 2606 OID 6937897)
-- Name: REPRISE_TRAVAIL REPRISE_TRAVAIL_ID_MOTIF_ARRET_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22933 (class 2606 OID 6937902)
-- Name: REPRISE_TRAVAIL REPRISE_TRAVAIL_ID_MOTIF_REPRISE_ARRET_TRAVAIL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22934 (class 2606 OID 6937907)
-- Name: REPRISE_TRAVAIL REPRISE_TRAVAIL_ID_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."REPRISE_TRAVAIL"
    ADD CONSTRAINT "REPRISE_TRAVAIL_ID_SALARIE_fkey" FOREIGN KEY ("ID_SALARIE") REFERENCES "OpenConcerto48"."SALARIE"("ID");


--
-- TOC entry 22935 (class 2606 OID 6937912)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_AVOIR_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_ACHAT"
    ADD CONSTRAINT "SAISIE_ACHAT_ID_AVOIR_FOURNISSEUR_fkey" FOREIGN KEY ("ID_AVOIR_FOURNISSEUR") REFERENCES "OpenConcerto48"."AVOIR_FOURNISSEUR"("ID");


--
-- TOC entry 22936 (class 2606 OID 6937917)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_ACHAT"
    ADD CONSTRAINT "SAISIE_ACHAT_ID_COMPTE_PCE_fkey" FOREIGN KEY ("ID_COMPTE_PCE") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22937 (class 2606 OID 6937922)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_ACHAT"
    ADD CONSTRAINT "SAISIE_ACHAT_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto48"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 22938 (class 2606 OID 6937927)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_ACHAT"
    ADD CONSTRAINT "SAISIE_ACHAT_ID_MODE_REGLEMENT_fkey" FOREIGN KEY ("ID_MODE_REGLEMENT") REFERENCES "OpenConcerto48"."MODE_REGLEMENT"("ID_MODE_REGLEMENT");


--
-- TOC entry 22939 (class 2606 OID 6937932)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_ACHAT"
    ADD CONSTRAINT "SAISIE_ACHAT_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto48"."MOUVEMENT"("ID");


--
-- TOC entry 22940 (class 2606 OID 6937937)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_ACHAT"
    ADD CONSTRAINT "SAISIE_ACHAT_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto48"."TAXE"("ID_TAXE");


--
-- TOC entry 22941 (class 2606 OID 6937942)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_ACHAT"
    ADD CONSTRAINT "SAISIE_ACHAT_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22942 (class 2606 OID 6937947)
-- Name: SAISIE_ACHAT SAISIE_ACHAT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_ACHAT"
    ADD CONSTRAINT "SAISIE_ACHAT_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22947 (class 2606 OID 6937952)
-- Name: SAISIE_KM_ELEMENT SAISIE_KM_ELEMENT_ID_ECRITURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_KM_ELEMENT"
    ADD CONSTRAINT "SAISIE_KM_ELEMENT_ID_ECRITURE_fkey" FOREIGN KEY ("ID_ECRITURE") REFERENCES "OpenConcerto48"."ECRITURE"("ID");


--
-- TOC entry 22948 (class 2606 OID 6937957)
-- Name: SAISIE_KM_ELEMENT SAISIE_KM_ELEMENT_ID_SAISIE_KM_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_KM_ELEMENT"
    ADD CONSTRAINT "SAISIE_KM_ELEMENT_ID_SAISIE_KM_fkey" FOREIGN KEY ("ID_SAISIE_KM") REFERENCES "OpenConcerto48"."SAISIE_KM"("ID");


--
-- TOC entry 22949 (class 2606 OID 6937962)
-- Name: SAISIE_KM_ELEMENT SAISIE_KM_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22950 (class 2606 OID 6937967)
-- Name: SAISIE_KM_ELEMENT SAISIE_KM_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22943 (class 2606 OID 6937972)
-- Name: SAISIE_KM SAISIE_KM_ID_JOURNAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_KM"
    ADD CONSTRAINT "SAISIE_KM_ID_JOURNAL_fkey" FOREIGN KEY ("ID_JOURNAL") REFERENCES "OpenConcerto48"."JOURNAL"("ID");


--
-- TOC entry 22944 (class 2606 OID 6937977)
-- Name: SAISIE_KM SAISIE_KM_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_KM"
    ADD CONSTRAINT "SAISIE_KM_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto48"."MOUVEMENT"("ID");


--
-- TOC entry 22945 (class 2606 OID 6937982)
-- Name: SAISIE_KM SAISIE_KM_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_KM"
    ADD CONSTRAINT "SAISIE_KM_ID_USER_COMMON_CREATE_fkey" FOREIGN KEY ("ID_USER_COMMON_CREATE") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22946 (class 2606 OID 6937987)
-- Name: SAISIE_KM SAISIE_KM_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_KM"
    ADD CONSTRAINT "SAISIE_KM_ID_USER_COMMON_MODIFY_fkey" FOREIGN KEY ("ID_USER_COMMON_MODIFY") REFERENCES "Common"."USER_COMMON"("ID");


--
-- TOC entry 22951 (class 2606 OID 6937992)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_COMPTOIR"
    ADD CONSTRAINT "SAISIE_VENTE_COMPTOIR_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto48"."ARTICLE"("ID");


--
-- TOC entry 22952 (class 2606 OID 6937997)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_AVOIR_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_COMPTOIR"
    ADD CONSTRAINT "SAISIE_VENTE_COMPTOIR_ID_AVOIR_CLIENT_fkey" FOREIGN KEY ("ID_AVOIR_CLIENT") REFERENCES "OpenConcerto48"."AVOIR_CLIENT"("ID");


--
-- TOC entry 22953 (class 2606 OID 6938002)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_COMPTOIR"
    ADD CONSTRAINT "SAISIE_VENTE_COMPTOIR_ID_CLIENT_fkey" FOREIGN KEY ("ID_CLIENT") REFERENCES "OpenConcerto48"."CLIENT"("ID");


--
-- TOC entry 22954 (class 2606 OID 6938007)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_COMPTE_PCE_PRODUIT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_COMPTOIR"
    ADD CONSTRAINT "SAISIE_VENTE_COMPTOIR_ID_COMPTE_PCE_PRODUIT_fkey" FOREIGN KEY ("ID_COMPTE_PCE_PRODUIT") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22955 (class 2606 OID 6938012)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_COMPTE_PCE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_COMPTOIR"
    ADD CONSTRAINT "SAISIE_VENTE_COMPTOIR_ID_COMPTE_PCE_SERVICE_fkey" FOREIGN KEY ("ID_COMPTE_PCE_SERVICE") REFERENCES "OpenConcerto48"."COMPTE_PCE"("ID");


--
-- TOC entry 22956 (class 2606 OID 6938017)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_COMPTOIR"
    ADD CONSTRAINT "SAISIE_VENTE_COMPTOIR_ID_FOURNISSEUR_fkey" FOREIGN KEY ("ID_FOURNISSEUR") REFERENCES "OpenConcerto48"."FOURNISSEUR"("ID_FOURNISSEUR");


--
-- TOC entry 22957 (class 2606 OID 6938022)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_COMPTOIR"
    ADD CONSTRAINT "SAISIE_VENTE_COMPTOIR_ID_MODE_REGLEMENT_fkey" FOREIGN KEY ("ID_MODE_REGLEMENT") REFERENCES "OpenConcerto48"."MODE_REGLEMENT"("ID_MODE_REGLEMENT");


--
-- TOC entry 22958 (class 2606 OID 6938027)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_COMPTOIR"
    ADD CONSTRAINT "SAISIE_VENTE_COMPTOIR_ID_MOUVEMENT_fkey" FOREIGN KEY ("ID_MOUVEMENT") REFERENCES "OpenConcerto48"."MOUVEMENT"("ID");


--
-- TOC entry 22959 (class 2606 OID 6938032)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_COMPTOIR"
    ADD CONSTRAINT "SAISIE_VENTE_COMPTOIR_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto48"."TAXE"("ID_TAXE");


--
-- TOC entry 22960 (class 2606 OID 6938037)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22961 (class 2606 OID 6938042)
-- Name: SAISIE_VENTE_COMPTOIR SAISIE_VENTE_COMPTOIR_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22986 (class 2606 OID 6938047)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FA#4473c5996dbaffbc4349e7d4fe1db8cb#N_COULEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FA#4473c5996dbaffbc4349e7d4fe1db8cb#N_COULEUR_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_COULEUR") REFERENCES "OpenConcerto48"."ARTICLE_DECLINAISON_COULEUR"("ID");


--
-- TOC entry 22987 (class 2606 OID 6938052)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_ARTICLE_DECLINAISON_TAILLE_fkey" FOREIGN KEY ("ID_ARTICLE_DECLINAISON_TAILLE") REFERENCES "OpenConcerto48"."ARTICLE_DECLINAISON_TAILLE"("ID");


--
-- TOC entry 22988 (class 2606 OID 6938057)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_ARTICLE_fkey" FOREIGN KEY ("ID_ARTICLE") REFERENCES "OpenConcerto48"."ARTICLE"("ID");


--
-- TOC entry 22989 (class 2606 OID 6938062)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_COMMANDE_CLIENT_ELEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_COMMANDE_CLIENT_ELEMENT_fkey" FOREIGN KEY ("ID_COMMANDE_CLIENT_ELEMENT") REFERENCES "OpenConcerto48"."COMMANDE_CLIENT_ELEMENT"("ID");


--
-- TOC entry 22990 (class 2606 OID 6938067)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_CONTACT_fkey" FOREIGN KEY ("ID_CONTACT") REFERENCES "OpenConcerto48"."CONTACT"("ID");


--
-- TOC entry 22991 (class 2606 OID 6938072)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_DEPOT_STOCK_fkey" FOREIGN KEY ("ID_DEPOT_STOCK") REFERENCES "OpenConcerto48"."DEPOT_STOCK"("ID");


--
-- TOC entry 22992 (class 2606 OID 6938077)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_DEVISE_fkey" FOREIGN KEY ("ID_DEVISE") REFERENCES "Common"."DEVISE"("ID");


--
-- TOC entry 22993 (class 2606 OID 6938082)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_ECO_CONTRIBUTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 22994 (class 2606 OID 6938087)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_FAMILLE_ARTICLE_fkey" FOREIGN KEY ("ID_FAMILLE_ARTICLE") REFERENCES "OpenConcerto48"."FAMILLE_ARTICLE"("ID");


--
-- TOC entry 22995 (class 2606 OID 6938092)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_METRIQUE_1_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_METRIQUE_1_fkey" FOREIGN KEY ("ID_METRIQUE_1") REFERENCES "OpenConcerto48"."METRIQUE"("ID");


--
-- TOC entry 22996 (class 2606 OID 6938097)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_METRIQUE_2_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_METRIQUE_2_fkey" FOREIGN KEY ("ID_METRIQUE_2") REFERENCES "OpenConcerto48"."METRIQUE"("ID");


--
-- TOC entry 22997 (class 2606 OID 6938102)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_METRIQUE_3_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_METRIQUE_3_fkey" FOREIGN KEY ("ID_METRIQUE_3") REFERENCES "OpenConcerto48"."METRIQUE"("ID");


--
-- TOC entry 22998 (class 2606 OID 6938107)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_MODE_VENTE_ARTICLE_fkey" FOREIGN KEY ("ID_MODE_VENTE_ARTICLE") REFERENCES "OpenConcerto48"."MODE_VENTE_ARTICLE"("ID");


--
-- TOC entry 22999 (class 2606 OID 6938112)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_PAYS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_PAYS_fkey" FOREIGN KEY ("ID_PAYS") REFERENCES "OpenConcerto48"."PAYS"("ID");


--
-- TOC entry 23000 (class 2606 OID 6938117)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_SAISIE_VENTE_FACTURE_fkey" FOREIGN KEY ("ID_SAISIE_VENTE_FACTURE") REFERENCES "OpenConcerto48"."SAISIE_VENTE_FACTURE"("ID");


--
-- TOC entry 23001 (class 2606 OID 6938122)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_STYLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_STYLE_fkey" FOREIGN KEY ("ID_STYLE") REFERENCES "OpenConcerto48"."STYLE"("ID_STYLE");


--
-- TOC entry 23002 (class 2606 OID 6938127)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_TAXE_fkey" FOREIGN KEY ("ID_TAXE") REFERENCES "OpenConcerto48"."TAXE"("ID_TAXE");


--
-- TOC entry 23003 (class 2606 OID 6938132)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_TICKET_CAISSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_TICKET_CAISSE_fkey" FOREIGN KEY ("ID_TICKET_CAISSE") REFERENCES "OpenConcerto48"."TICKET_CAISSE"("ID");


--
-- TOC entry 23004 (class 2606 OID 6938137)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_UNITE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."SAISIE_VENTE_FACTURE_ELEMENT"
    ADD CONSTRAINT "SAISIE_VENTE_FACTURE_ELEMENT_ID_UNITE_VENTE_fkey" FOREIGN KEY ("ID_UNITE_VENTE") REFERENCES "OpenConcerto48"."UNITE_VENTE"("ID");


--
-- TOC entry 23005 (class 2606 OID 6938142)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER TABLE ONLY "OpenConcerto48"."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 23006 (class 2606 OID 6938147)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT SAISIE_VENTE_FACTURE_ELEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22962 (class 2606 OID 6938152)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_ADRESSE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22963 (class 2606 OID 6938157)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_ADRESSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22964 (class 2606 OID 6938162)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_AVOIR_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22965 (class 2606 OID 6938167)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22966 (class 2606 OID 6938172)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_CLIENT_DEPARTEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22967 (class 2606 OID 6938177)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22968 (class 2606 OID 6938182)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22969 (class 2606 OID 6938187)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_COMPTE_PCE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22970 (class 2606 OID 6938192)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_COMPTE_PCE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22971 (class 2606 OID 6938197)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_CONTACT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22972 (class 2606 OID 6938202)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_DEVIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22973 (class 2606 OID 6938207)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_FACTURATION_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22974 (class 2606 OID 6938212)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_MODELE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22975 (class 2606 OID 6938217)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_MODE_REGLEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22976 (class 2606 OID 6938222)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_MOIS_CCIP_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22977 (class 2606 OID 6938227)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22978 (class 2606 OID 6938232)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_REFERENCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22979 (class 2606 OID 6938237)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_SDD_MESSAGE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22980 (class 2606 OID 6938242)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_TARIF_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22981 (class 2606 OID 6938247)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_TAXE_FRAIS_DOCUMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22982 (class 2606 OID 6938252)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_TAXE_PORT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22983 (class 2606 OID 6938257)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22984 (class 2606 OID 6938262)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 22985 (class 2606 OID 6938267)
-- Name: SAISIE_VENTE_FACTURE SAISIE_VENTE_FACTURE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23007 (class 2606 OID 6938272)
-- Name: SALARIE SALARIE_ID_CUMULS_CONGES_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23008 (class 2606 OID 6938277)
-- Name: SALARIE SALARIE_ID_CUMULS_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23009 (class 2606 OID 6938282)
-- Name: SALARIE SALARIE_ID_ETAT_CIVIL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23010 (class 2606 OID 6938287)
-- Name: SALARIE SALARIE_ID_FICHE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23011 (class 2606 OID 6938292)
-- Name: SALARIE SALARIE_ID_INFOS_SALARIE_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23012 (class 2606 OID 6938297)
-- Name: SALARIE SALARIE_ID_PAS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23013 (class 2606 OID 6938302)
-- Name: SALARIE SALARIE_ID_REGLEMENT_PAYE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23014 (class 2606 OID 6938307)
-- Name: SALARIE SALARIE_ID_TITRE_PERSONNEL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23015 (class 2606 OID 6938312)
-- Name: SALARIE SALARIE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23016 (class 2606 OID 6938317)
-- Name: SALARIE SALARIE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23017 (class 2606 OID 6938322)
-- Name: SALARIE SALARIE_ID_USER_COMMON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23018 (class 2606 OID 6938327)
-- Name: SALARIE SALARIE_ID_VARIABLE_SALARIE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23019 (class 2606 OID 6938332)
-- Name: SEPA_MANDATE SEPA_MANDATE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23020 (class 2606 OID 6938337)
-- Name: SITUATION_FAMILIALE SITUATION_FAMILIALE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23021 (class 2606 OID 6938342)
-- Name: SITUATION_FAMILIALE SITUATION_FAMILIALE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23022 (class 2606 OID 6938347)
-- Name: STOCK STOCK_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23023 (class 2606 OID 6938352)
-- Name: STOCK STOCK_ID_DEPOT_STOCK_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23024 (class 2606 OID 6938357)
-- Name: STOCK STOCK_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23025 (class 2606 OID 6938362)
-- Name: STOCK STOCK_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23028 (class 2606 OID 6938367)
-- Name: TARIF_ARTICLE_CLIENT TARIF_ARTICLE_CLIENT_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23029 (class 2606 OID 6938372)
-- Name: TARIF_ARTICLE_CLIENT TARIF_ARTICLE_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23030 (class 2606 OID 6938377)
-- Name: TARIF_FAMILLE_ARTICLE_CLIENT TARIF_FAMILLE_ARTICLE_CLIENT_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23031 (class 2606 OID 6938382)
-- Name: TARIF_FAMILLE_ARTICLE_CLIENT TARIF_FAMILLE_ARTICLE_CLIENT_ID_FAMILLE_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23026 (class 2606 OID 6938387)
-- Name: TARIF TARIF_ID_DEVISE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23027 (class 2606 OID 6938392)
-- Name: TARIF TARIF_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23032 (class 2606 OID 6938397)
-- Name: TARIF_QUANTITE TARIF_QUANTITE_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23042 (class 2606 OID 6938402)
-- Name: TAXE_CATEGORIE_COMPTABLE TAXE_CATEGORIE_COMPTABLE_ID_CATEGORIE_COMPTABLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23043 (class 2606 OID 6938407)
-- Name: TAXE_CATEGORIE_COMPTABLE TAXE_CATEGORIE_COMPTABLE_ID_COMPTE_PCE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23044 (class 2606 OID 6938412)
-- Name: TAXE_CATEGORIE_COMPTABLE TAXE_CATEGORIE_COMPTABLE_ID_COMPTE_PCE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23045 (class 2606 OID 6938417)
-- Name: TAXE_CATEGORIE_COMPTABLE TAXE_CATEGORIE_COMPTABLE_ID_TAXE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23046 (class 2606 OID 6938422)
-- Name: TAXE_COMPLEMENTAIRE TAXE_COMPLEMENTAIRE_ID_COMPTE_PCE_PRODUITS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23047 (class 2606 OID 6938427)
-- Name: TAXE_COMPLEMENTAIRE TAXE_COMPLEMENTAIRE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23033 (class 2606 OID 6938432)
-- Name: TAXE TAXE_ID_COMPTE_PCE_COLLECTE_INTRA_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23034 (class 2606 OID 6938437)
-- Name: TAXE TAXE_ID_COMPTE_PCE_COLLECTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23035 (class 2606 OID 6938442)
-- Name: TAXE TAXE_ID_COMPTE_PCE_DED_INTRA_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23036 (class 2606 OID 6938447)
-- Name: TAXE TAXE_ID_COMPTE_PCE_DED_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23037 (class 2606 OID 6938452)
-- Name: TAXE TAXE_ID_COMPTE_PCE_VENTE_SERVICE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23038 (class 2606 OID 6938457)
-- Name: TAXE TAXE_ID_COMPTE_PCE_VENTE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23039 (class 2606 OID 6938462)
-- Name: TAXE TAXE_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23040 (class 2606 OID 6938467)
-- Name: TAXE TAXE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23041 (class 2606 OID 6938472)
-- Name: TAXE TAXE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23089 (class 2606 OID 6940387)
-- Name: TAXE_INTERFEL TAXE_INTERFEL_ID_COMPTE_PCE_PRODUITS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23090 (class 2606 OID 6940392)
-- Name: TAXE_INTERFEL TAXE_INTERFEL_ID_COMPTE_PCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23048 (class 2606 OID 6938477)
-- Name: TICKET_CAISSE TICKET_CAISSE_ID_CAISSE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23049 (class 2606 OID 6938482)
-- Name: TICKET_CAISSE TICKET_CAISSE_ID_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23050 (class 2606 OID 6938487)
-- Name: TICKET_CAISSE TICKET_CAISSE_ID_COMMERCIAL_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23051 (class 2606 OID 6938492)
-- Name: TICKET_CAISSE TICKET_CAISSE_ID_MOUVEMENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23052 (class 2606 OID 6938497)
-- Name: TITRE_PERSONNEL TITRE_PERSONNEL_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23053 (class 2606 OID 6938502)
-- Name: TITRE_PERSONNEL TITRE_PERSONNEL_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23054 (class 2606 OID 6938507)
-- Name: TRANSFERT_STOCK TRANSFERT_STOCK_ID_ARTICLE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23055 (class 2606 OID 6938512)
-- Name: TRANSFERT_STOCK TRANSFERT_STOCK_ID_DEPOT_STOCK_DEST_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23056 (class 2606 OID 6938517)
-- Name: TRANSFERT_STOCK TRANSFERT_STOCK_ID_DEPOT_STOCK_SOURCE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23057 (class 2606 OID 6938522)
-- Name: TR_BON_DE_LIVRAISON TR_BON_DE_LIVRAISON_ID_BON_DE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23058 (class 2606 OID 6938527)
-- Name: TR_BON_DE_LIVRAISON TR_BON_DE_LIVRAISON_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23059 (class 2606 OID 6938532)
-- Name: TR_BON_RECEPTION TR_BON_RECEPTION_ID_BON_RECEPTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23060 (class 2606 OID 6938537)
-- Name: TR_BON_RECEPTION TR_BON_RECEPTION_ID_FACTURE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23061 (class 2606 OID 6938542)
-- Name: TR_BON_RECEPTION TR_BON_RECEPTION_ID_SAISIE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23066 (class 2606 OID 6938547)
-- Name: TR_COMMANDE_CLIENT TR_COMMANDE_CLIENT_ID_BON_DE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23067 (class 2606 OID 6938552)
-- Name: TR_COMMANDE_CLIENT TR_COMMANDE_CLIENT_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23068 (class 2606 OID 6938557)
-- Name: TR_COMMANDE_CLIENT TR_COMMANDE_CLIENT_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23069 (class 2606 OID 6938562)
-- Name: TR_COMMANDE_CLIENT TR_COMMANDE_CLIENT_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23062 (class 2606 OID 6938567)
-- Name: TR_COMMANDE TR_COMMANDE_ID_BON_RECEPTION_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23063 (class 2606 OID 6938572)
-- Name: TR_COMMANDE TR_COMMANDE_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23064 (class 2606 OID 6938577)
-- Name: TR_COMMANDE TR_COMMANDE_ID_FACTURE_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23065 (class 2606 OID 6938582)
-- Name: TR_COMMANDE TR_COMMANDE_ID_SAISIE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23070 (class 2606 OID 6938587)
-- Name: TR_DEVIS TR_DEVIS_ID_BON_DE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23071 (class 2606 OID 6938592)
-- Name: TR_DEVIS TR_DEVIS_ID_COMMANDE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23072 (class 2606 OID 6938597)
-- Name: TR_DEVIS TR_DEVIS_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23073 (class 2606 OID 6938602)
-- Name: TR_DEVIS TR_DEVIS_ID_DEVIS_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23074 (class 2606 OID 6938607)
-- Name: TR_DEVIS TR_DEVIS_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23075 (class 2606 OID 6938612)
-- Name: TR_SAISIE_ACHAT TR_SAISIE_ACHAT_ID_AVOIR_FOURNISSEUR_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23076 (class 2606 OID 6938617)
-- Name: TR_SAISIE_ACHAT TR_SAISIE_ACHAT_ID_SAISIE_ACHAT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23077 (class 2606 OID 6938622)
-- Name: TR_SAISIE_VENTE_FACTURE TR_SAISIE_VENTE_FACTURE_ID_AVOIR_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23078 (class 2606 OID 6938627)
-- Name: TR_SAISIE_VENTE_FACTURE TR_SAISIE_VENTE_FACTURE_ID_BON_DE_LIVRAISON_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23079 (class 2606 OID 6938632)
-- Name: TR_SAISIE_VENTE_FACTURE TR_SAISIE_VENTE_FACTURE_ID_COMMANDE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23080 (class 2606 OID 6938637)
-- Name: TR_SAISIE_VENTE_FACTURE TR_SAISIE_VENTE_FACTURE_ID_SAISIE_VENTE_FACTURE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23081 (class 2606 OID 6938642)
-- Name: TYPE_LETTRE_RELANCE TYPE_LETTRE_RELANCE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23082 (class 2606 OID 6938647)
-- Name: TYPE_LETTRE_RELANCE TYPE_LETTRE_RELANCE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23083 (class 2606 OID 6938652)
-- Name: TYPE_REGLEMENT TYPE_REGLEMENT_ID_COMPTE_PCE_CLIENT_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23084 (class 2606 OID 6938657)
-- Name: TYPE_REGLEMENT TYPE_REGLEMENT_ID_COMPTE_PCE_FOURN_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23085 (class 2606 OID 6938662)
-- Name: TYPE_REGLEMENT TYPE_REGLEMENT_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23086 (class 2606 OID 6938667)
-- Name: TYPE_REGLEMENT TYPE_REGLEMENT_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23087 (class 2606 OID 6938672)
-- Name: VARIABLE_SALARIE VARIABLE_SALARIE_ID_USER_COMMON_CREATE_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 23088 (class 2606 OID 6938677)
-- Name: VARIABLE_SALARIE VARIABLE_SALARIE_ID_USER_COMMON_MODIFY_fkey; Type: FK CONSTRAINT; Schema: OpenConcerto48; Owner: openconcerto
--

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


--
-- TOC entry 24518 (class 0 OID 0)
-- Dependencies: 10
-- Name: SCHEMA "Common"; Type: ACL; Schema: -; Owner: openconcerto
--

GRANT ALL ON SCHEMA "Common" TO PUBLIC;


--
-- TOC entry 24520 (class 0 OID 0)
-- Dependencies: 11
-- Name: SCHEMA "Default"; Type: ACL; Schema: -; Owner: openconcerto
--

GRANT ALL ON SCHEMA "Default" TO postgres;
GRANT ALL ON SCHEMA "Default" TO PUBLIC;


--
-- TOC entry 24521 (class 0 OID 0)
-- Dependencies: 6
-- Name: SCHEMA public; Type: ACL; Schema: -; Owner: postgres
--

REVOKE USAGE ON SCHEMA public FROM PUBLIC;
GRANT ALL ON SCHEMA public TO PUBLIC;


-- Completed on 2024-01-29 14:45:38

--
--

