-- Name: CONTRAT_PREVOYANCE_AYANT_DROIT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."CONTRAT_PREVOYANCE_AYANT_DROIT_ID_seq" OWNED BY "OpenConcerto42"."CONTRAT_PREVOYANCE_AYANT_DROIT"."ID";


--
-- TOC entry 848 (class 1259 OID 6914201)
-- Name: CONTRAT_PREVOYANCE_CONTRAT_SALARIE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."CONTRAT_PREVOYANCE_CONTRAT_SALARIE" (
    "ID" integer NOT NULL,
    "ID_INFOS_SALARIE_PAYE" integer DEFAULT 1,
    "ID_CONTRAT_PREVOYANCE" integer DEFAULT 1,
    "CODE_OPTION" character varying(256) DEFAULT ''::character varying NOT NULL,
    "CODE_POPULATION" character varying(256) DEFAULT ''::character varying NOT NULL,
    "NB_ENFANT_CHARGE" integer,
    "NB_ADULTE_AYANT_DROIT" integer,
    "NB_AYANT_DROIT" integer,
    "NB_AYANT_DROIT_AUTRE" integer,
    "NB_ENFANT_AYANT_DROIT" integer,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto42"."CONTRAT_PREVOYANCE_CONTRAT_SALARIE" OWNER TO openconcerto;

--
-- TOC entry 849 (class 1259 OID 6914213)
-- Name: CONTRAT_PREVOYANCE_CONTRAT_SALARIE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."CONTRAT_PREVOYANCE_CONTRAT_SALARIE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."CONTRAT_PREVOYANCE_CONTRAT_SALARIE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24845 (class 0 OID 0)
-- Dependencies: 849
-- Name: CONTRAT_PREVOYANCE_CONTRAT_SALARIE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."CONTRAT_PREVOYANCE_CONTRAT_SALARIE_ID_seq" OWNED BY "OpenConcerto42"."CONTRAT_PREVOYANCE_CONTRAT_SALARIE"."ID";


--
-- TOC entry 850 (class 1259 OID 6914215)
-- Name: CONTRAT_PREVOYANCE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."CONTRAT_PREVOYANCE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."CONTRAT_PREVOYANCE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24846 (class 0 OID 0)
-- Dependencies: 850
-- Name: CONTRAT_PREVOYANCE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."CONTRAT_PREVOYANCE_ID_seq" OWNED BY "OpenConcerto42"."CONTRAT_PREVOYANCE"."ID";


--
-- TOC entry 851 (class 1259 OID 6914217)
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."CONTRAT_PREVOYANCE_RUBRIQUE" (
    "ID" integer NOT NULL,
    "ID_RUBRIQUE_COTISATION" integer DEFAULT 1,
    "ID_CONTRAT_PREVOYANCE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto42"."CONTRAT_PREVOYANCE_RUBRIQUE" OWNER TO openconcerto;

--
-- TOC entry 852 (class 1259 OID 6914224)
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."CONTRAT_PREVOYANCE_RUBRIQUE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."CONTRAT_PREVOYANCE_RUBRIQUE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24847 (class 0 OID 0)
-- Dependencies: 852
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."CONTRAT_PREVOYANCE_RUBRIQUE_ID_seq" OWNED BY "OpenConcerto42"."CONTRAT_PREVOYANCE_RUBRIQUE"."ID";


--
-- TOC entry 853 (class 1259 OID 6914226)
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE_NET; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."CONTRAT_PREVOYANCE_RUBRIQUE_NET" (
    "ID" integer NOT NULL,
    "ID_RUBRIQUE_NET" integer DEFAULT 1,
    "ID_CONTRAT_PREVOYANCE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto42"."CONTRAT_PREVOYANCE_RUBRIQUE_NET" OWNER TO openconcerto;

--
-- TOC entry 854 (class 1259 OID 6914233)
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE_NET_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."CONTRAT_PREVOYANCE_RUBRIQUE_NET_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."CONTRAT_PREVOYANCE_RUBRIQUE_NET_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24848 (class 0 OID 0)
-- Dependencies: 854
-- Name: CONTRAT_PREVOYANCE_RUBRIQUE_NET_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."CONTRAT_PREVOYANCE_RUBRIQUE_NET_ID_seq" OWNED BY "OpenConcerto42"."CONTRAT_PREVOYANCE_RUBRIQUE_NET"."ID";


--
-- TOC entry 855 (class 1259 OID 6914235)
-- Name: CONTRAT_SALARIE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."CONTRAT_SALARIE" (
    "ID_CODE_STATUT_CATEGORIEL" integer DEFAULT 1,
    "ID_CODE_DROIT_CONTRAT" integer DEFAULT 1,
    "ID_CODE_STATUT_PROF" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_CODE_CARACT_ACTIVITE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "CREATION_DATE" timestamp without time zone,
    "ID_CODE_CONTRAT_TRAVAIL" integer DEFAULT 1,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "NATURE" character varying(2048) DEFAULT ''::text,
    "ORDRE" numeric(16,8),
    "ID_CODE_EMPLOI" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "MODIFICATION_DATE" timestamp without time zone,
    "CODE_IRC_UGRR" character varying(18) DEFAULT ''::character varying NOT NULL,
    "NUMERO_RATTACHEMENT_UGRR" character varying(64) DEFAULT ''::character varying NOT NULL,
    "CODE_IRC_UGRC" character varying(18) DEFAULT ''::character varying NOT NULL,
    "NUMERO_RATTACHEMENT_UGRC" character varying(64) DEFAULT ''::character varying NOT NULL,
    "CODE_IRC_RETRAITE" character varying(18) DEFAULT ''::character varying NOT NULL,
    "NUMERO_RATTACHEMENT_RETRAITE" character varying(64) DEFAULT ''::character varying NOT NULL,
    "ID_CODE_STATUT_CAT_CONV" integer DEFAULT 1,
    "NUMERO" character varying(128) DEFAULT '00000'::character varying NOT NULL,
    "CODE_REGIME_RETRAITE_DSN" character varying(128) DEFAULT '00000'::character varying NOT NULL,
    "DATE_PREV_FIN" timestamp without time zone,
    "ID_CONTRAT_MODALITE_TEMPS" integer DEFAULT 1,
    "ID_CONTRAT_REGIME_MALADIE" integer DEFAULT 1,
    "ID_CONTRAT_REGIME_VIEILLESSE" integer DEFAULT 1,
    "ID_CONTRAT_MOTIF_RECOURS" integer DEFAULT 1,
    "ID_CONTRAT_DETACHE_EXPATRIE" integer DEFAULT 1,
    "ID_CONTRAT_DISPOSITIF_POLITIQUE" integer DEFAULT 1,
    "DATE_DEBUT" timestamp without time zone,
    "DATE_MODIFICATION" timestamp without time zone,
    "COMPLEMENT_PCS" character varying(54) DEFAULT ''::character varying NOT NULL,
    "ID_CODE_AMENAGEMENT_PARTIEL" integer DEFAULT 1,
    "DATE_DEBUT_SUSPENSION" date,
    "DATE_FIN_SUSPENSION" date,
    "ID_CODE_SUSPENSION" integer DEFAULT 1,
    "ID_DIPLOME_PREPARE" integer DEFAULT 1,
    "SPECTACLE_OBJET" character varying(54) DEFAULT ''::character varying NOT NULL,
    "SPECTACLE_JOUR_CONTRAT" numeric(16,2),
    "ID_CODE_CAISSE_CONGES_PAYES" integer DEFAULT 1,
    "TAUX_FRAIS_PROFESSIONNELS" numeric(16,4)
);


ALTER TABLE "OpenConcerto42"."CONTRAT_SALARIE" OWNER TO openconcerto;

--
-- TOC entry 856 (class 1259 OID 6914272)
-- Name: CONTRAT_SALARIE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."CONTRAT_SALARIE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."CONTRAT_SALARIE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24849 (class 0 OID 0)
-- Dependencies: 856
-- Name: CONTRAT_SALARIE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."CONTRAT_SALARIE_ID_seq" OWNED BY "OpenConcerto42"."CONTRAT_SALARIE"."ID";


--
-- TOC entry 857 (class 1259 OID 6914274)
-- Name: COURRIER_CLIENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."COURRIER_CLIENT" (
    "CREATION_DATE" timestamp without time zone,
    "NOM" character varying(256) DEFAULT ''::character varying,
    "NUMERO" character varying(2048) DEFAULT ''::text,
    "ID_CLIENT" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "ARCHIVE" integer DEFAULT 0,
    "ID_ADRESSE" integer DEFAULT 1,
    "ORDRE" numeric(16,8) DEFAULT 0,
    "DATE" date,
    "INFOS" character varying(2048) DEFAULT ''::text,
    "ID_MODELE_COURRIER_CLIENT" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_CONTACT" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."COURRIER_CLIENT" OWNER TO openconcerto;

--
-- TOC entry 858 (class 1259 OID 6914290)
-- Name: COURRIER_CLIENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."COURRIER_CLIENT_ID_seq"
    START WITH 2
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."COURRIER_CLIENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24850 (class 0 OID 0)
-- Dependencies: 858
-- Name: COURRIER_CLIENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."COURRIER_CLIENT_ID_seq" OWNED BY "OpenConcerto42"."COURRIER_CLIENT"."ID";


--
-- TOC entry 859 (class 1259 OID 6914292)
-- Name: COUT_REVIENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."COUT_REVIENT" (
    "ID" integer NOT NULL,
    "CODE" character varying(48) DEFAULT ''::character varying NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "POURCENT" numeric(16,6) DEFAULT 0 NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."COUT_REVIENT" OWNER TO openconcerto;

--
-- TOC entry 860 (class 1259 OID 6914299)
-- Name: COUT_REVIENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."COUT_REVIENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."COUT_REVIENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24851 (class 0 OID 0)
-- Dependencies: 860
-- Name: COUT_REVIENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."COUT_REVIENT_ID_seq" OWNED BY "OpenConcerto42"."COUT_REVIENT"."ID";


--
-- TOC entry 861 (class 1259 OID 6914301)
-- Name: CUMULS_CONGES; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."CUMULS_CONGES" (
    "CREATION_DATE" timestamp without time zone,
    "ORDRE" numeric(16,8),
    "RESTANT" real DEFAULT 0,
    "MODIFICATION_DATE" timestamp without time zone,
    "ARCHIVE" integer DEFAULT 0,
    "ACQUIS" real DEFAULT 0,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID" integer NOT NULL
);


ALTER TABLE "OpenConcerto42"."CUMULS_CONGES" OWNER TO openconcerto;

--
-- TOC entry 862 (class 1259 OID 6914309)
-- Name: CUMULS_CONGES_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."CUMULS_CONGES_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."CUMULS_CONGES_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24852 (class 0 OID 0)
-- Dependencies: 862
-- Name: CUMULS_CONGES_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."CUMULS_CONGES_ID_seq" OWNED BY "OpenConcerto42"."CUMULS_CONGES"."ID";


--
-- TOC entry 863 (class 1259 OID 6914311)
-- Name: CUMULS_PAYE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."CUMULS_PAYE" (
    "NET_IMP_C" numeric(16,2) DEFAULT 0,
    "ID" integer NOT NULL,
    "MODIFICATION_DATE" timestamp without time zone,
    "COT_PAT_C" numeric(16,2) DEFAULT 0,
    "COT_SAL_C" numeric(16,2) DEFAULT 0,
    "ORDRE" numeric(16,8),
    "ARCHIVE" integer DEFAULT 0,
    "SAL_BRUT_C" numeric(16,2) DEFAULT 0,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "NET_A_PAYER_C" numeric(16,2) DEFAULT 0,
    "CREATION_DATE" timestamp without time zone,
    "CSG_C" numeric(16,2) DEFAULT 0,
    "HEURE_TRAV_C" numeric(16,2) DEFAULT 0 NOT NULL,
    "TAXE_CM_SAL_C" numeric(16,2) DEFAULT 0 NOT NULL,
    "TAXE_CM_PAT_C" numeric(16,2) DEFAULT 0 NOT NULL,
    "SAL_BRUT_COTISABLE_C" numeric(16,2) DEFAULT 0 NOT NULL,
    "SAL_BRUT_TAXABLE_C" numeric(16,2) DEFAULT 0 NOT NULL,
    "SAL_BASE_BRUT_C" numeric(16,2) DEFAULT 0 NOT NULL,
    "ALLEGEMENT_COTISATION_C" numeric(16,2) DEFAULT 0 NOT NULL,
    "CICE_C" numeric(16,2) DEFAULT 0 NOT NULL,
    "AVANTAGE_NATURE_C" numeric(16,2) DEFAULT 0 NOT NULL,
    "NET_SOCIAL_C" numeric(16,2) DEFAULT 0 NOT NULL,
    "HEURE_SUP_EXO_NET_C" numeric(16,2) DEFAULT 0 NOT NULL,
    "TOTAL_PAS_C" numeric(16,2) DEFAULT 0 NOT NULL,
    "NET_AVANT_PAS_C" numeric(16,2) DEFAULT 0 NOT NULL
);


ALTER TABLE "OpenConcerto42"."CUMULS_PAYE" OWNER TO openconcerto;

--
-- TOC entry 864 (class 1259 OID 6914332)
-- Name: CUMULS_PAYE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."CUMULS_PAYE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."CUMULS_PAYE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24853 (class 0 OID 0)
-- Dependencies: 864
-- Name: CUMULS_PAYE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."CUMULS_PAYE_ID_seq" OWNED BY "OpenConcerto42"."CUMULS_PAYE"."ID";


--
-- TOC entry 865 (class 1259 OID 6914334)
-- Name: DECLARATION_DSN; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."DECLARATION_DSN" (
    "ID" integer NOT NULL,
    "ID_DSN_NATURE" integer DEFAULT 1,
    "DATE" timestamp without time zone,
    "DATE_ENVOI" timestamp without time zone,
    "TEST" boolean DEFAULT false NOT NULL,
    "ENVOYE" boolean DEFAULT false NOT NULL,
    "COMMENTAIRE" character varying(1024) DEFAULT ''::character varying NOT NULL,
    "DSN_FILE" character varying(75000) DEFAULT ''::character varying NOT NULL,
    "NUMERO" integer DEFAULT 1 NOT NULL,
    "ANNEE" integer DEFAULT 2016 NOT NULL,
    "ID_MOIS" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric,
    "ID_ARRET_TRAVAIL" integer DEFAULT 1,
    "ID_REPRISE_TRAVAIL" integer DEFAULT 1,
    "ID_MOIS_REGUL" integer DEFAULT 1,
    "ANNULE_REMPLACE" boolean DEFAULT false NOT NULL,
    "ID_FIN_CONTRAT" integer DEFAULT 1,
    "NUMERO_REFERENCE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_DECLARATION_DSN_ANNULATION" integer DEFAULT 1,
    "EFFECTIF_CVAE" integer,
    "CODE_INSEE_CVAE" character varying(32) DEFAULT ''::character varying NOT NULL,
    "PERIODE_CVAE_DEBUT" date,
    "PERIODE_CVAE_FIN" date
);


ALTER TABLE "OpenConcerto42"."DECLARATION_DSN" OWNER TO openconcerto;

--
-- TOC entry 866 (class 1259 OID 6914358)
-- Name: DECLARATION_DSN_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."DECLARATION_DSN_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."DECLARATION_DSN_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24854 (class 0 OID 0)
-- Dependencies: 866
-- Name: DECLARATION_DSN_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."DECLARATION_DSN_ID_seq" OWNED BY "OpenConcerto42"."DECLARATION_DSN"."ID";


--
-- TOC entry 867 (class 1259 OID 6914360)
-- Name: DEMANDE_ACHAT_ELEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT" (
    "ID" integer NOT NULL,
    "CODE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "QTE" integer DEFAULT 1 NOT NULL,
    "QTE_UNITAIRE" numeric(16,6) DEFAULT 1 NOT NULL,
    "REPERE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "REFERENCE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_FABRICANT" integer DEFAULT 1,
    "DATE" date,
    "ID_ETAT_DEMANDE_ACHAT_ELEMENT" integer DEFAULT 1,
    "ID_UNITE_VENTE" integer DEFAULT 1,
    "ID_ARTICLE" integer DEFAULT 1,
    "ID_FAMILLE_ARTICLE" integer DEFAULT 1,
    "ID_FOURNISSEUR" integer DEFAULT 1,
    "EN_STOCK" boolean DEFAULT false NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8),
    "REPERE_SOURCE" character varying(128) DEFAULT ''::character varying NOT NULL,
    "CODE_SOURCE" character varying(128) DEFAULT ''::character varying NOT NULL,
    "NOM_SOURCE" character varying(128) DEFAULT ''::character varying NOT NULL,
    "NUMERO_SE" character varying(128) DEFAULT ''::character varying NOT NULL,
    "DESCRIPTIF_SE" character varying(512) DEFAULT ''::character varying NOT NULL,
    "REVISION" character varying(48) DEFAULT ''::character varying NOT NULL,
    "P_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "T_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_COMMANDE" integer DEFAULT 1,
    "ID_BON_RECEPTION" integer DEFAULT 1,
    "QTE_RECUE" integer DEFAULT 0 NOT NULL,
    "REPRISE" boolean DEFAULT false NOT NULL,
    "IMPORT" boolean DEFAULT false NOT NULL
);


ALTER TABLE "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 868 (class 1259 OID 6914393)
-- Name: DEMANDE_ACHAT_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24855 (class 0 OID 0)
-- Dependencies: 868
-- Name: DEMANDE_ACHAT_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT_ID_seq" OWNED BY "OpenConcerto42"."DEMANDE_ACHAT_ELEMENT"."ID";


--
-- TOC entry 869 (class 1259 OID 6914395)
-- Name: DEMANDE_PRIX; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."DEMANDE_PRIX" (
    "ID" integer NOT NULL,
    "NUMERO" character varying(256) DEFAULT ''::character varying NOT NULL,
    "OBJET" character varying(1024) DEFAULT ''::character varying NOT NULL,
    "ID_FOURNISSEUR" integer DEFAULT 1,
    "DATE" date,
    "DATE_BUTOIRE" date,
    "T_HT" bigint DEFAULT 0,
    "T_TVA" bigint DEFAULT 0,
    "T_TTC" bigint DEFAULT 0,
    "ID_COMMERCIAL" integer DEFAULT 1,
    "ID_ETAT_DEMANDE_PRIX" integer DEFAULT 1,
    "INFOS" character varying(1024) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."DEMANDE_PRIX" OWNER TO openconcerto;

--
-- TOC entry 870 (class 1259 OID 6914411)
-- Name: DEMANDE_PRIX_ELEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."DEMANDE_PRIX_ELEMENT" (
    "ID" integer NOT NULL,
    "NOM" character varying(512) DEFAULT ''::character varying NOT NULL,
    "ID_DEMANDE_PRIX" integer DEFAULT 1,
    "ID_TAXE" integer DEFAULT 2,
    "QTE" integer DEFAULT 0 NOT NULL,
    "VALEUR_METRIQUE_3" real DEFAULT 0,
    "PRIX_METRIQUE_VT_3" bigint DEFAULT 0,
    "PA_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_HA_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_HA_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "T_PA_TTC" numeric(16,2) DEFAULT 0 NOT NULL,
    "VALEUR_METRIQUE_1" real DEFAULT 0,
    "T_PA_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "T_POIDS" real DEFAULT 0,
    "VALEUR_METRIQUE_2" real DEFAULT 0,
    "PRIX_METRIQUE_HA_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_VT_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_VT_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "T_PV_TTC" numeric(16,2) DEFAULT 0 NOT NULL,
    "ID_METRIQUE_1" integer DEFAULT 1,
    "ID_MODE_VENTE_ARTICLE" integer DEFAULT 5,
    "ID_METRIQUE_3" integer DEFAULT 1,
    "ID_STYLE" integer DEFAULT 1,
    "ID_METRIQUE_2" integer DEFAULT 1,
    "QTE_ACHAT" integer DEFAULT 1 NOT NULL,
    "ID_DEVISE" integer DEFAULT 1,
    "ID_FAMILLE_ARTICLE" integer DEFAULT 1,
    "CODE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "SERVICE" boolean DEFAULT false,
    "T_PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "POIDS" real DEFAULT 0,
    "PA_DEVISE" numeric(16,6) DEFAULT 0 NOT NULL,
    "PA_DEVISE_T" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_ARTICLE" integer DEFAULT 1,
    "QTE_UNITAIRE" numeric(16,6) DEFAULT 1 NOT NULL,
    "ID_UNITE_VENTE" integer DEFAULT 1,
    "DESCRIPTIF" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "NIVEAU" integer DEFAULT 1 NOT NULL,
    "ID_ECO_CONTRIBUTION" integer DEFAULT 1,
    "ECO_CONTRIBUTION" numeric(16,2) DEFAULT 0 NOT NULL,
    "T_ECO_CONTRIBUTION" numeric(16,2) DEFAULT 0 NOT NULL,
    "ID_DEMANDE_ACHAT_ELEMENT" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8),
    "ID_DEPOT_STOCK" integer DEFAULT 1,
    "LONGUEUR" numeric(16,8),
    "LARGEUR" numeric(16,8),
    "HAUTEUR" numeric(16,8),
    "POIDS_COLIS_NET" numeric(16,8) DEFAULT 0,
    "T_POIDS_COLIS_NET" numeric(16,8) DEFAULT 0,
    "NB_COLIS" integer DEFAULT 0,
    "TARE" numeric(16,8),
    "T_POIDS_BRUT" numeric(16,8) DEFAULT 0,
    "ID_ARTICLE_DECLINAISON_TAILLE" integer DEFAULT 1,
    "ID_ARTICLE_DECLINAISON_COULEUR" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."DEMANDE_PRIX_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 871 (class 1259 OID 6914467)
-- Name: DEMANDE_PRIX_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."DEMANDE_PRIX_ELEMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."DEMANDE_PRIX_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24856 (class 0 OID 0)
-- Dependencies: 871
-- Name: DEMANDE_PRIX_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."DEMANDE_PRIX_ELEMENT_ID_seq" OWNED BY "OpenConcerto42"."DEMANDE_PRIX_ELEMENT"."ID";


--
-- TOC entry 872 (class 1259 OID 6914469)
-- Name: DEMANDE_PRIX_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."DEMANDE_PRIX_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."DEMANDE_PRIX_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24857 (class 0 OID 0)
-- Dependencies: 872
-- Name: DEMANDE_PRIX_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."DEMANDE_PRIX_ID_seq" OWNED BY "OpenConcerto42"."DEMANDE_PRIX"."ID";


--
-- TOC entry 873 (class 1259 OID 6914471)
-- Name: DEPARTEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."DEPARTEMENT" (
    "ID" integer NOT NULL,
    "MODIFICATION_DATE" timestamp without time zone,
    "NOM" character varying(100) DEFAULT ''::character varying,
    "NUMERO" character varying(10) DEFAULT ''::character varying,
    "CREATION_DATE" timestamp without time zone,
    "CHEF_LIEU" character varying(100) DEFAULT ''::character varying,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "REGION_ADMIN" character varying(100) DEFAULT ''::character varying,
    "ORDRE" numeric(16,8),
    "ARCHIVE" integer DEFAULT 0,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."DEPARTEMENT" OWNER TO openconcerto;

--
-- TOC entry 874 (class 1259 OID 6914481)
-- Name: DEPARTEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."DEPARTEMENT_ID_seq"
    START WITH 102
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."DEPARTEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24858 (class 0 OID 0)
-- Dependencies: 874
-- Name: DEPARTEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."DEPARTEMENT_ID_seq" OWNED BY "OpenConcerto42"."DEPARTEMENT"."ID";


--
-- TOC entry 875 (class 1259 OID 6914483)
-- Name: DEPOT_CHEQUE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."DEPOT_CHEQUE" (
    "ID" integer NOT NULL,
    "NOM" character varying(512) DEFAULT ''::character varying NOT NULL,
    "MONTANT" bigint DEFAULT 0 NOT NULL,
    "DATE" date,
    "ID_BANQUE" integer DEFAULT 1,
    "ID_ECRITURE" integer DEFAULT 1,
    "ID_MOUVEMENT" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."DEPOT_CHEQUE" OWNER TO openconcerto;

--
-- TOC entry 876 (class 1259 OID 6914495)
-- Name: DEPOT_CHEQUE_ELEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."DEPOT_CHEQUE_ELEMENT" (
    "ID" integer NOT NULL,
    "NUMERO" character varying(128) DEFAULT ''::character varying NOT NULL,
    "BANQUE" character varying(128) DEFAULT ''::character varying NOT NULL,
    "PIECE" character varying(512) DEFAULT ''::character varying NOT NULL,
    "MONTANT" bigint DEFAULT 0 NOT NULL,
    "DATE" date,
    "ID_CHEQUE_A_ENCAISSER" integer DEFAULT 1,
    "ID_ECRITURE" integer DEFAULT 1,
    "ID_CLIENT" integer DEFAULT 1,
    "ID_DEPOT_CHEQUE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8),
    "TIERS" character varying(256) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE "OpenConcerto42"."DEPOT_CHEQUE_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 877 (class 1259 OID 6914511)
-- Name: DEPOT_CHEQUE_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."DEPOT_CHEQUE_ELEMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."DEPOT_CHEQUE_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24859 (class 0 OID 0)
-- Dependencies: 877
-- Name: DEPOT_CHEQUE_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."DEPOT_CHEQUE_ELEMENT_ID_seq" OWNED BY "OpenConcerto42"."DEPOT_CHEQUE_ELEMENT"."ID";


--
-- TOC entry 878 (class 1259 OID 6914513)
-- Name: DEPOT_CHEQUE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."DEPOT_CHEQUE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."DEPOT_CHEQUE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24860 (class 0 OID 0)
-- Dependencies: 878
-- Name: DEPOT_CHEQUE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."DEPOT_CHEQUE_ID_seq" OWNED BY "OpenConcerto42"."DEPOT_CHEQUE"."ID";


--
-- TOC entry 879 (class 1259 OID 6914515)
-- Name: DEPOT_STOCK; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."DEPOT_STOCK" (
    "ID" integer NOT NULL,
    "CODE" character varying(25) DEFAULT ''::character varying NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "UI_LOCK" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_USER_UI_LOCK" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."DEPOT_STOCK" OWNER TO openconcerto;

--
-- TOC entry 880 (class 1259 OID 6914526)
-- Name: DEPOT_STOCK_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."DEPOT_STOCK_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."DEPOT_STOCK_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24861 (class 0 OID 0)
-- Dependencies: 880
-- Name: DEPOT_STOCK_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."DEPOT_STOCK_ID_seq" OWNED BY "OpenConcerto42"."DEPOT_STOCK"."ID";


--
-- TOC entry 881 (class 1259 OID 6914528)
-- Name: DEVIS; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."DEVIS" (
    "REMISE_HT" bigint DEFAULT 0,
    "CREATION_DATE" timestamp without time zone,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_DEVIS" integer NOT NULL,
    "ID_CLIENT" integer DEFAULT 1,
    "T_TTC" bigint DEFAULT 0,
    "T_HT" bigint DEFAULT 0,
    "ARCHIVE" integer DEFAULT 0,
    "DATE" date,
    "DATE_ENVOI" timestamp without time zone,
    "ID_ETAT_DEVIS" integer DEFAULT 1,
    "INFOS" character varying(2048) DEFAULT ''::text,
    "T_SERVICE" bigint DEFAULT 0,
    "PORT_HT" bigint DEFAULT 0,
    "ID_COMMERCIAL" integer DEFAULT 1,
    "NUMERO" character varying(2048) DEFAULT ''::text,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ORDRE" numeric(16,8),
    "T_TVA" bigint DEFAULT 0,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "OBJET" character varying(100) DEFAULT ''::character varying,
    "T_POIDS" real DEFAULT 0,
    "ID_ADRESSE" integer DEFAULT 1 NOT NULL,
    "DATE_VALIDITE" date,
    "T_DEVISE" bigint DEFAULT 0,
    "ID_TARIF" integer DEFAULT 1,
    "ID_MODELE" integer DEFAULT 1,
    "ID_ADRESSE_LIVRAISON" integer DEFAULT 1,
    "POURCENT_REMISE" numeric(12,8),
    "MONTANT_REMISE" numeric(16,8),
    "ID_CONTACT" integer DEFAULT 1,
    "ID_CLIENT_DEPARTEMENT" integer DEFAULT 1,
    "T_HA" bigint DEFAULT 0 NOT NULL,
    "DUNNING_DATE" date,
    "T_ECO_CONTRIBUTION" bigint DEFAULT 0,
    "ID_TAXE_PORT" integer DEFAULT 1,
    "T_ACOMPTE" bigint DEFAULT 0 NOT NULL,
    "FRAIS_DOCUMENT_HT" bigint DEFAULT 0 NOT NULL,
    "ID_TAXE_FRAIS_DOCUMENT" integer DEFAULT 1,
    "ID_CATEGORIE_COMPTABLE" integer DEFAULT 1,
    "DATE_LIVRAISON" date,
    "TRANSFORMATION" character varying(200) DEFAULT ''::character varying NOT NULL,
    "MONTANT_INTERFEL_HT" bigint DEFAULT 0 NOT NULL
);


ALTER TABLE "OpenConcerto42"."DEVIS" OWNER TO openconcerto;

--
-- TOC entry 882 (class 1259 OID 6914565)
-- Name: DEVISE_HISTORIQUE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."DEVISE_HISTORIQUE" (
    "ID" integer NOT NULL,
    "DATE" timestamp without time zone,
    "SRC" character varying(8) DEFAULT ''::character varying NOT NULL,
    "DST" character varying(8) DEFAULT ''::character varying NOT NULL,
    "TAUX" numeric(12,6) DEFAULT 1 NOT NULL,
    "TAUX_COMMERCIAL" numeric(12,6) DEFAULT 1 NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto42"."DEVISE_HISTORIQUE" OWNER TO openconcerto;

--
-- TOC entry 883 (class 1259 OID 6914574)
-- Name: DEVISE_HISTORIQUE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."DEVISE_HISTORIQUE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."DEVISE_HISTORIQUE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24862 (class 0 OID 0)
-- Dependencies: 883
-- Name: DEVISE_HISTORIQUE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."DEVISE_HISTORIQUE_ID_seq" OWNED BY "OpenConcerto42"."DEVISE_HISTORIQUE"."ID";


--
-- TOC entry 884 (class 1259 OID 6914576)
-- Name: DEVIS_ELEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."DEVIS_ELEMENT" (
    "VALEUR_METRIQUE_3" real DEFAULT 0,
    "ID_TAXE" integer DEFAULT 1,
    "ID_METRIQUE_3" integer DEFAULT 1,
    "T_PA_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "ARCHIVE" integer DEFAULT 0,
    "PRIX_METRIQUE_HA_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_MODE_VENTE_ARTICLE" integer DEFAULT 1,
    "PRIX_METRIQUE_HA_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "NOM" character varying(2048) DEFAULT ''::text,
    "CODE" character varying(45) DEFAULT ''::text,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "ID_DEVIS" integer DEFAULT 1,
    "POIDS" real DEFAULT 0,
    "T_PV_TTC" numeric(16,2) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_HA_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "VALEUR_METRIQUE_1" real DEFAULT 0,
    "ID_METRIQUE_2" integer DEFAULT 1,
    "VALEUR_METRIQUE_2" real DEFAULT 0,
    "PRIX_METRIQUE_VT_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_VT_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_DEVIS_ELEMENT" integer NOT NULL,
    "T_PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_STYLE" integer DEFAULT 1,
    "PRIX_METRIQUE_VT_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "T_POIDS" real DEFAULT 0,
    "ORDRE" numeric(16,8),
    "SERVICE" boolean DEFAULT false,
    "ID_METRIQUE_1" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "QTE" integer DEFAULT 1,
    "PA_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "QTE_ACHAT" integer DEFAULT 1,
    "CODE_DOUANIER" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_PAYS" integer DEFAULT 1,
    "ID_DEVISE" integer DEFAULT 1,
    "PV_U_DEVISE" numeric(16,6) DEFAULT 0 NOT NULL,
    "POURCENT_REMISE" numeric(12,8) DEFAULT 0,
    "PV_T_DEVISE" numeric(16,6) DEFAULT 0 NOT NULL,
    "TAUX_DEVISE" numeric(16,8) DEFAULT 1,
    "DESCRIPTIF" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "MARGE_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "QTE_UNITAIRE" numeric(16,6) DEFAULT 1,
    "ID_UNITE_VENTE" integer DEFAULT 2,
    "ID_ARTICLE" integer DEFAULT 1,
    "POIDS_COLIS_NET" numeric(16,8) DEFAULT 0,
    "T_POIDS_COLIS_NET" numeric(16,8) DEFAULT 0,
    "NB_COLIS" integer DEFAULT 0,
    "MONTANT_REMISE" numeric(16,8),
    "ID_FAMILLE_ARTICLE" integer DEFAULT 1,
    "NIVEAU" integer DEFAULT 1 NOT NULL,
    "ID_ECO_CONTRIBUTION" integer DEFAULT 1,
    "ECO_CONTRIBUTION" numeric(16,2) DEFAULT 0,
    "T_ECO_CONTRIBUTION" numeric(16,2) DEFAULT 0,
    "ID_DEPOT_STOCK" integer DEFAULT 1,
    "LIVRE_FORCED" boolean DEFAULT false NOT NULL,
    "LIVRE" boolean DEFAULT false NOT NULL,
    "QTE_LIVREE" numeric(16,6) DEFAULT 0,
    "LONGUEUR" numeric(16,8),
    "LARGEUR" numeric(16,8),
    "HAUTEUR" numeric(16,8),
    "TARE" numeric(16,8),
    "T_POIDS_BRUT" numeric(16,8) DEFAULT 0,
    "ID_ARTICLE_DECLINAISON_TAILLE" integer DEFAULT 1,
    "ID_ARTICLE_DECLINAISON_COULEUR" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."DEVIS_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 885 (class 1259 OID 6914640)
-- Name: DEVIS_ELEMENT_ID_DEVIS_ELEMENT_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."DEVIS_ELEMENT_ID_DEVIS_ELEMENT_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."DEVIS_ELEMENT_ID_DEVIS_ELEMENT_seq" OWNER TO openconcerto;

--
-- TOC entry 24863 (class 0 OID 0)
-- Dependencies: 885
-- Name: DEVIS_ELEMENT_ID_DEVIS_ELEMENT_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."DEVIS_ELEMENT_ID_DEVIS_ELEMENT_seq" OWNED BY "OpenConcerto42"."DEVIS_ELEMENT"."ID_DEVIS_ELEMENT";


--
-- TOC entry 886 (class 1259 OID 6914642)
-- Name: DEVIS_ID_DEVIS_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."DEVIS_ID_DEVIS_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."DEVIS_ID_DEVIS_seq" OWNER TO openconcerto;

--
-- TOC entry 24864 (class 0 OID 0)
-- Dependencies: 886
-- Name: DEVIS_ID_DEVIS_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."DEVIS_ID_DEVIS_seq" OWNED BY "OpenConcerto42"."DEVIS"."ID_DEVIS";


--
-- TOC entry 887 (class 1259 OID 6914644)
-- Name: ECHANTILLON_ELEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."ECHANTILLON_ELEMENT" (
    "ID_TAXE" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "ORDRE" numeric(16,8) DEFAULT 0,
    "NOM" character varying(128) DEFAULT ''::character varying NOT NULL,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "T_PV_TTC" bigint DEFAULT 0,
    "PV_HT" bigint DEFAULT 0,
    "QTE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "ID_SAISIE_VENTE_FACTURE" integer DEFAULT 1,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "T_PV_HT" bigint DEFAULT 0
);


ALTER TABLE "OpenConcerto42"."ECHANTILLON_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 888 (class 1259 OID 6914658)
-- Name: ECHANTILLON_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."ECHANTILLON_ELEMENT_ID_seq"
    START WITH 2
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."ECHANTILLON_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24865 (class 0 OID 0)
-- Dependencies: 888
-- Name: ECHANTILLON_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."ECHANTILLON_ELEMENT_ID_seq" OWNED BY "OpenConcerto42"."ECHANTILLON_ELEMENT"."ID";


--
-- TOC entry 889 (class 1259 OID 6914660)
-- Name: ECHEANCE_CLIENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."ECHEANCE_CLIENT" (
    "REGLE" boolean DEFAULT false,
    "DATE" date,
    "NOMBRE_RELANCE" integer DEFAULT 0,
    "ID_CLIENT" integer DEFAULT 1,
    "INFOS" character varying(2048) DEFAULT ''::text,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ORDRE" numeric(16,8),
    "MODIFICATION_DATE" timestamp without time zone,
    "CREATION_DATE" timestamp without time zone,
    "REG_COMPTA" boolean DEFAULT false,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_MOUVEMENT" integer DEFAULT 1,
    "RETOUR_NATEXIS" boolean DEFAULT false,
    "MONTANT" bigint DEFAULT 0,
    "ARCHIVE" integer DEFAULT 0,
    "DATE_LAST_RELANCE" date,
    "ID" integer NOT NULL,
    "ID_SAISIE_VENTE_FACTURE" integer DEFAULT 1,
    "TIERS" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_COMPTE_PCE_TIERS" integer DEFAULT 1,
    "ID_SEPA_MANDATE" integer,
    "ID_SDD_MESSAGE" integer,
    "SDD_EndToEndId" character varying(35) DEFAULT ''::character varying NOT NULL,
    "FICHIER_CREE" boolean DEFAULT false NOT NULL,
    "REJETER" boolean DEFAULT false NOT NULL,
    "ETS" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_BANQUE" integer DEFAULT 1,
    "RG" boolean DEFAULT false NOT NULL
);


ALTER TABLE "OpenConcerto42"."ECHEANCE_CLIENT" OWNER TO openconcerto;

--
-- TOC entry 890 (class 1259 OID 6914686)
-- Name: ECHEANCE_CLIENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."ECHEANCE_CLIENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."ECHEANCE_CLIENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24866 (class 0 OID 0)
-- Dependencies: 890
-- Name: ECHEANCE_CLIENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."ECHEANCE_CLIENT_ID_seq" OWNED BY "OpenConcerto42"."ECHEANCE_CLIENT"."ID";


--
-- TOC entry 891 (class 1259 OID 6914688)
-- Name: ECHEANCE_FOURNISSEUR; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."ECHEANCE_FOURNISSEUR" (
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_FOURNISSEUR" integer DEFAULT 1,
    "MONTANT" bigint DEFAULT 0,
    "REGLE" boolean DEFAULT false,
    "ID" integer NOT NULL,
    "CREATION_DATE" timestamp without time zone,
    "ORDRE" numeric(16,8),
    "ARCHIVE" integer DEFAULT 0,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "DATE" date,
    "ID_MOUVEMENT" integer DEFAULT 1,
    "REG_COMPTA" boolean DEFAULT false,
    "ID_FACTURE_FOURNISSEUR" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."ECHEANCE_FOURNISSEUR" OWNER TO openconcerto;

--
-- TOC entry 892 (class 1259 OID 6914700)
-- Name: ECHEANCE_FOURNISSEUR_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."ECHEANCE_FOURNISSEUR_ID_seq"
    START WITH 2
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."ECHEANCE_FOURNISSEUR_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24867 (class 0 OID 0)
-- Dependencies: 892
-- Name: ECHEANCE_FOURNISSEUR_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."ECHEANCE_FOURNISSEUR_ID_seq" OWNED BY "OpenConcerto42"."ECHEANCE_FOURNISSEUR"."ID";


--
-- TOC entry 893 (class 1259 OID 6914702)
-- Name: ECRITURE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."ECRITURE" (
    "DATE_POINTEE" date,
    "ID" integer NOT NULL,
    "DATE" date,
    "DEBIT" bigint DEFAULT 0,
    "MODIFICATION_DATE" timestamp without time zone,
    "CREDIT" bigint DEFAULT 0,
    "DATE_VALIDE" date,
    "JOURNAL_CODE" character varying(2048) DEFAULT ''::text,
    "ORDRE" numeric(16,8),
    "ID_JOURNAL" integer DEFAULT 1,
    "IDUSER_CREATE" integer DEFAULT 1,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "DATE_LETTRAGE" date,
    "ID_MOUVEMENT" integer DEFAULT 1,
    "LETTRAGE" character varying(256) DEFAULT ''::character varying,
    "COMPTE_NOM" character varying(2048) DEFAULT ''::text,
    "JOURNAL_NOM" character varying(2048) DEFAULT ''::text,
    "IDUSER_VALIDE" integer DEFAULT 1,
    "VALIDE" boolean DEFAULT false,
    "CREATION_DATE" timestamp without time zone,
    "POINTEE" character varying(45) DEFAULT ''::character varying,
    "COMPTE_NUMERO" character varying(2048) DEFAULT ''::text,
    "NOM" character varying(2048) DEFAULT ''::text,
    "IDUSER_DELETE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_COMPTE_PCE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "DATE_EXPORT" date,
    "CODE_CLIENT" character varying(256) DEFAULT ''::character varying NOT NULL,
    "NOM_PIECE" character varying(1024) DEFAULT ''::character varying NOT NULL,
    "CLOTURE" boolean DEFAULT false NOT NULL,
    "RAN" boolean DEFAULT false NOT NULL,
    "DATE_ECHEANCE" date,
    "LETTRAGE_PARTIEL" character varying(256) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE "OpenConcerto42"."ECRITURE" OWNER TO openconcerto;

--
-- TOC entry 894 (class 1259 OID 6914732)
-- Name: ECRITURE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."ECRITURE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."ECRITURE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24868 (class 0 OID 0)
-- Dependencies: 894
-- Name: ECRITURE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."ECRITURE_ID_seq" OWNED BY "OpenConcerto42"."ECRITURE"."ID";


--
-- TOC entry 895 (class 1259 OID 6914734)
-- Name: EMPLOYEUR_MULTIPLE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."EMPLOYEUR_MULTIPLE" (
    "CREATION_DATE" timestamp without time zone,
    "ARCHIVE" integer DEFAULT 0,
    "ORDRE" numeric(16,8),
    "MODIFICATION_DATE" timestamp without time zone,
    "ID" integer NOT NULL,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "NOM" character varying(45) DEFAULT ''::character varying,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."EMPLOYEUR_MULTIPLE" OWNER TO openconcerto;

--
-- TOC entry 896 (class 1259 OID 6914741)
-- Name: EMPLOYEUR_MULTIPLE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."EMPLOYEUR_MULTIPLE_ID_seq"
    START WITH 5
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."EMPLOYEUR_MULTIPLE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24869 (class 0 OID 0)
-- Dependencies: 896
-- Name: EMPLOYEUR_MULTIPLE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."EMPLOYEUR_MULTIPLE_ID_seq" OWNED BY "OpenConcerto42"."EMPLOYEUR_MULTIPLE"."ID";


--
-- TOC entry 897 (class 1259 OID 6914743)
-- Name: ENCAISSER_MONTANT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."ENCAISSER_MONTANT" (
    "ID_MOUVEMENT" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "ARCHIVE" integer DEFAULT 0,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID" integer NOT NULL,
    "NOM" character varying(200),
    "ORDRE" numeric(16,8),
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "MONTANT" bigint DEFAULT 0,
    "ID_MODE_REGLEMENT" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_CLIENT" integer DEFAULT 1,
    "DATE" date,
    "ID_ECHEANCE_CLIENT" integer DEFAULT 1,
    "ID_TICKET_CAISSE" integer DEFAULT 1,
    "ACOMPTE" boolean DEFAULT false NOT NULL,
    "ID_DEVIS" integer DEFAULT 1,
    "TIERS" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_COMPTE_PCE_TIERS" integer DEFAULT 1,
    "ID_COMMANDE_CLIENT" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."ENCAISSER_MONTANT" OWNER TO openconcerto;

--
-- TOC entry 898 (class 1259 OID 6914760)
-- Name: ENCAISSER_MONTANT_ELEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."ENCAISSER_MONTANT_ELEMENT" (
    "ORDRE" numeric(16,8) DEFAULT 0,
    "MONTANT_REGLE" bigint DEFAULT 0,
    "DATE" date,
    "ID" integer NOT NULL,
    "ID_ECHEANCE_CLIENT" integer DEFAULT 1,
    "ID_ENCAISSER_MONTANT" integer DEFAULT 1,
    "ID_MOUVEMENT_ECHEANCE" integer DEFAULT 1,
    "MONTANT_A_REGLER" bigint DEFAULT 0,
    "ARCHIVE" integer DEFAULT 0
);


ALTER TABLE "OpenConcerto42"."ENCAISSER_MONTANT_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 899 (class 1259 OID 6914770)
-- Name: ENCAISSER_MONTANT_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."ENCAISSER_MONTANT_ELEMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."ENCAISSER_MONTANT_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24870 (class 0 OID 0)
-- Dependencies: 899
-- Name: ENCAISSER_MONTANT_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."ENCAISSER_MONTANT_ELEMENT_ID_seq" OWNED BY "OpenConcerto42"."ENCAISSER_MONTANT_ELEMENT"."ID";


--
-- TOC entry 900 (class 1259 OID 6914772)
-- Name: ENCAISSER_MONTANT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."ENCAISSER_MONTANT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."ENCAISSER_MONTANT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24871 (class 0 OID 0)
-- Dependencies: 900
-- Name: ENCAISSER_MONTANT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."ENCAISSER_MONTANT_ID_seq" OWNED BY "OpenConcerto42"."ENCAISSER_MONTANT"."ID";


--
-- TOC entry 901 (class 1259 OID 6914774)
-- Name: ETAT_CIVIL; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."ETAT_CIVIL" (
    "ARCHIVE" integer DEFAULT 0,
    "NB_PERS_A_CHARGE" integer DEFAULT 0,
    "MODIFICATION_DATE" timestamp without time zone,
    "CREATION_DATE" timestamp without time zone,
    "NB_ENFANTS" integer DEFAULT 0,
    "TELEPHONE" character varying(45) DEFAULT ''::character varying,
    "DATE_NAISSANCE" date,
    "ID_ADRESSE" integer DEFAULT 1,
    "COMMUNE_NAISSANCE" character varying(45) DEFAULT ''::character varying,
    "ID_SITUATION_FAMILIALE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_PAYS_NAISSANCE" integer DEFAULT 1,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ORDRE" numeric(16,8),
    "PORTABLE" character varying(45) DEFAULT ''::character varying,
    "MAIL" character varying(45) DEFAULT ''::character varying,
    "ID_DEPARTEMENT_NAISSANCE" integer DEFAULT 1,
    "NUMERO_SS" character varying(45) DEFAULT ''::character varying,
    "ID" integer NOT NULL,
    "NATIONNALITE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "CNPS" character varying(256) DEFAULT ''::character varying NOT NULL,
    "TYPE_PIECE_IDENTITE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "NUMERO_PIECE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "NOM_PERE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "NOM_MERE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "CONJOINT_NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "CONJOINT_DATE_NAISSANCE" date,
    "CONJOINT_LIEU_NAISSANCE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "CONJOINT_PROFESSION" character varying(256) DEFAULT ''::character varying NOT NULL,
    "DATE_DEBUT_PIECE" date,
    "DATE_FIN_PIECE" date,
    "NTT" character varying(50) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE "OpenConcerto42"."ETAT_CIVIL" OWNER TO openconcerto;

--
-- TOC entry 902 (class 1259 OID 6914804)
-- Name: ETAT_CIVIL_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."ETAT_CIVIL_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."ETAT_CIVIL_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24872 (class 0 OID 0)
-- Dependencies: 902
-- Name: ETAT_CIVIL_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."ETAT_CIVIL_ID_seq" OWNED BY "OpenConcerto42"."ETAT_CIVIL"."ID";


--
-- TOC entry 903 (class 1259 OID 6914806)
-- Name: ETAT_DEMANDE_ACHAT_ELEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."ETAT_DEMANDE_ACHAT_ELEMENT" (
    "ID" integer NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "COLOR" integer,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."ETAT_DEMANDE_ACHAT_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 904 (class 1259 OID 6914811)
-- Name: ETAT_DEMANDE_ACHAT_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."ETAT_DEMANDE_ACHAT_ELEMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."ETAT_DEMANDE_ACHAT_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24873 (class 0 OID 0)
-- Dependencies: 904
-- Name: ETAT_DEMANDE_ACHAT_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."ETAT_DEMANDE_ACHAT_ELEMENT_ID_seq" OWNED BY "OpenConcerto42"."ETAT_DEMANDE_ACHAT_ELEMENT"."ID";


--
-- TOC entry 905 (class 1259 OID 6914813)
-- Name: ETAT_DEMANDE_PRIX; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."ETAT_DEMANDE_PRIX" (
    "ID" integer NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."ETAT_DEMANDE_PRIX" OWNER TO openconcerto;

--
-- TOC entry 906 (class 1259 OID 6914818)
-- Name: ETAT_DEMANDE_PRIX_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."ETAT_DEMANDE_PRIX_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."ETAT_DEMANDE_PRIX_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24874 (class 0 OID 0)
-- Dependencies: 906
-- Name: ETAT_DEMANDE_PRIX_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."ETAT_DEMANDE_PRIX_ID_seq" OWNED BY "OpenConcerto42"."ETAT_DEMANDE_PRIX"."ID";


--
-- TOC entry 907 (class 1259 OID 6914820)
-- Name: ETAT_DEVIS; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."ETAT_DEVIS" (
    "CREATION_DATE" timestamp without time zone,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT 0,
    "ARCHIVE" integer DEFAULT 0,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "NOM" character varying(45) DEFAULT ''::character varying
);


ALTER TABLE "OpenConcerto42"."ETAT_DEVIS" OWNER TO openconcerto;

--
-- TOC entry 908 (class 1259 OID 6914828)
-- Name: ETAT_DEVIS_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."ETAT_DEVIS_ID_seq"
    START WITH 5
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."ETAT_DEVIS_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24875 (class 0 OID 0)
-- Dependencies: 908
-- Name: ETAT_DEVIS_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."ETAT_DEVIS_ID_seq" OWNED BY "OpenConcerto42"."ETAT_DEVIS"."ID";


--
-- TOC entry 909 (class 1259 OID 6914830)
-- Name: ETAT_RAPPORT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."ETAT_RAPPORT" (
    "MODIFICATION_DATE" timestamp without time zone,
    "ARCHIVE" integer DEFAULT 0,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "NOM" character varying(2048),
    "ORDRE" numeric(16,8) DEFAULT 0,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "CREATION_DATE" timestamp without time zone
);


ALTER TABLE "OpenConcerto42"."ETAT_RAPPORT" OWNER TO openconcerto;

--
-- TOC entry 910 (class 1259 OID 6914840)
-- Name: ETAT_RAPPORT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."ETAT_RAPPORT_ID_seq"
    START WITH 3
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."ETAT_RAPPORT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24876 (class 0 OID 0)
-- Dependencies: 910
-- Name: ETAT_RAPPORT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."ETAT_RAPPORT_ID_seq" OWNED BY "OpenConcerto42"."ETAT_RAPPORT"."ID";


--
-- TOC entry 911 (class 1259 OID 6914842)
-- Name: ETAT_STOCK; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."ETAT_STOCK" (
    "ID" integer NOT NULL,
    "DATE" date,
    "MONTANT_HA" numeric(16,8) DEFAULT 0,
    "MONTANT_VT" numeric(16,8) DEFAULT 0,
    "INVENTAIRE" boolean DEFAULT false NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8),
    "ID_DEPOT_STOCK" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."ETAT_STOCK" OWNER TO openconcerto;

--
-- TOC entry 912 (class 1259 OID 6914850)
-- Name: ETAT_STOCK_ELEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."ETAT_STOCK_ELEMENT" (
    "ID" integer NOT NULL,
    "ID_ARTICLE" integer DEFAULT 1,
    "ID_ETAT_STOCK" integer DEFAULT 1,
    "PA" numeric(16,8) DEFAULT 0,
    "PV" numeric(16,8) DEFAULT 0,
    "T_PA" numeric(16,8) DEFAULT 0,
    "T_PV" numeric(16,8) DEFAULT 0,
    "QTE" numeric(16,8) DEFAULT 0,
    "ECART" numeric(16,8) DEFAULT 0,
    "CODE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "NOM" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."ETAT_STOCK_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 913 (class 1259 OID 6914867)
-- Name: ETAT_STOCK_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."ETAT_STOCK_ELEMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."ETAT_STOCK_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24877 (class 0 OID 0)
-- Dependencies: 913
-- Name: ETAT_STOCK_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."ETAT_STOCK_ELEMENT_ID_seq" OWNED BY "OpenConcerto42"."ETAT_STOCK_ELEMENT"."ID";


--
-- TOC entry 914 (class 1259 OID 6914869)
-- Name: ETAT_STOCK_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."ETAT_STOCK_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."ETAT_STOCK_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24878 (class 0 OID 0)
-- Dependencies: 914
-- Name: ETAT_STOCK_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."ETAT_STOCK_ID_seq" OWNED BY "OpenConcerto42"."ETAT_STOCK"."ID";


--
-- TOC entry 915 (class 1259 OID 6914871)
-- Name: FABRICANT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."FABRICANT" (
    "ID" integer NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."FABRICANT" OWNER TO openconcerto;

--
-- TOC entry 916 (class 1259 OID 6914876)
-- Name: FABRICANT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."FABRICANT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."FABRICANT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24879 (class 0 OID 0)
-- Dependencies: 916
-- Name: FABRICANT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."FABRICANT_ID_seq" OWNED BY "OpenConcerto42"."FABRICANT"."ID";


--
-- TOC entry 917 (class 1259 OID 6914878)
-- Name: FACTURATION_COMMANDE_CLIENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."FACTURATION_COMMANDE_CLIENT" (
    "ID" integer NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "TYPE_FACTURE" integer DEFAULT 1 NOT NULL,
    "CHOICE" boolean DEFAULT false NOT NULL,
    "ID_TYPE_REGLEMENT" integer DEFAULT 1,
    "ID_COMMANDE_CLIENT" integer DEFAULT 1,
    "ID_SAISIE_VENTE_FACTURE" integer DEFAULT 1,
    "ID_MODELE" integer DEFAULT 1,
    "AJOURS" integer DEFAULT 0 NOT NULL,
    "MONTANT" numeric(16,8) DEFAULT 0 NOT NULL,
    "POURCENT" numeric(16,8) DEFAULT 0 NOT NULL,
    "COMPTANT" boolean DEFAULT false NOT NULL,
    "DATE_PREVISIONNELLE" date,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8),
    "FIN_MOIS" boolean DEFAULT false NOT NULL,
    "LENJOUR" integer DEFAULT 0 NOT NULL
);


ALTER TABLE "OpenConcerto42"."FACTURATION_COMMANDE_CLIENT" OWNER TO openconcerto;

--
-- TOC entry 918 (class 1259 OID 6914895)
-- Name: FACTURATION_COMMANDE_CLIENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."FACTURATION_COMMANDE_CLIENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."FACTURATION_COMMANDE_CLIENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24880 (class 0 OID 0)
-- Dependencies: 918
-- Name: FACTURATION_COMMANDE_CLIENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."FACTURATION_COMMANDE_CLIENT_ID_seq" OWNED BY "OpenConcerto42"."FACTURATION_COMMANDE_CLIENT"."ID";


--
-- TOC entry 919 (class 1259 OID 6914897)
-- Name: FACTURE_FOURNISSEUR; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."FACTURE_FOURNISSEUR" (
    "ID" integer NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "NUMERO" character varying(45) DEFAULT ''::character varying NOT NULL,
    "INFOS" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "DATE" date,
    "ID_FOURNISSEUR" integer DEFAULT 1,
    "ID_AVOIR_FOURNISSEUR" integer DEFAULT 1,
    "ID_COMPTE_PCE" integer DEFAULT 1,
    "ID_COMMERCIAL" integer DEFAULT 1,
    "ID_MODE_REGLEMENT" integer DEFAULT 1,
    "ID_MOUVEMENT" integer DEFAULT 1,
    "ID_DEVISE" integer DEFAULT 1,
    "T_HT" bigint DEFAULT 0,
    "T_TVA" bigint DEFAULT 0,
    "T_TTC" bigint DEFAULT 0,
    "T_SERVICE" bigint DEFAULT 0,
    "T_DEVISE" bigint DEFAULT 0,
    "T_POIDS" real DEFAULT 0,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric,
    "TAUX_APPLIQUE" numeric(12,6) DEFAULT 1,
    "T_ECO_CONTRIBUTION" bigint DEFAULT 0,
    "ID_TAXE_PORT" integer DEFAULT 1,
    "PORT_HT" bigint DEFAULT 0 NOT NULL,
    "REMISE_HT" bigint DEFAULT 0 NOT NULL,
    "ATTACHMENTS" integer DEFAULT 0 NOT NULL,
    "NET_A_PAYER" bigint DEFAULT 0 NOT NULL,
    "AVOIR_TTC" bigint DEFAULT 0 NOT NULL,
    "DATE_REGLEMENT" date,
    "ID_AVOIR_FOURNISSEUR_2" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."FACTURE_FOURNISSEUR" OWNER TO openconcerto;

--
-- TOC entry 920 (class 1259 OID 6914930)
-- Name: FACTURE_FOURNISSEUR_ELEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT" (
    "ID" integer NOT NULL,
    "PRIX_METRIQUE_HA_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_HA_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_HA_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_VT_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_VT_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_VT_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "T_PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "T_PA_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "PA_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "T_PV_TTC" numeric(16,6) DEFAULT 0 NOT NULL,
    "T_PA_TTC" numeric(16,6) DEFAULT 0 NOT NULL,
    "QTE_UNITAIRE" numeric(16,6) DEFAULT 0 NOT NULL,
    "PA_DEVISE_T" numeric(16,6) DEFAULT 0 NOT NULL,
    "PA_DEVISE" numeric(16,6) DEFAULT 0 NOT NULL,
    "QTE" integer DEFAULT 1 NOT NULL,
    "QTE_ACHAT" integer DEFAULT 1 NOT NULL,
    "VALEUR_METRIQUE_1" real DEFAULT 0,
    "VALEUR_METRIQUE_2" real DEFAULT 0,
    "VALEUR_METRIQUE_3" real DEFAULT 0,
    "T_POIDS" real DEFAULT 0,
    "POIDS" real DEFAULT 0,
    "SERVICE" boolean DEFAULT false,
    "CODE" character varying(45) DEFAULT ''::character varying NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "DATE" date,
    "ID_STYLE" integer DEFAULT 1,
    "ID_METRIQUE_3" integer DEFAULT 1,
    "ID_METRIQUE_2" integer DEFAULT 1,
    "ID_METRIQUE_1" integer DEFAULT 1,
    "ID_FACTURE_FOURNISSEUR" integer DEFAULT 1,
    "ID_TAXE" integer DEFAULT 1,
    "ID_MODE_VENTE_ARTICLE" integer DEFAULT 5,
    "ID_UNITE_VENTE" integer DEFAULT 1,
    "ID_ARTICLE" integer DEFAULT 1,
    "ID_DEVISE" integer DEFAULT 1,
    "ID_CODE_FOURNISSEUR" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric,
    "NIVEAU" integer DEFAULT 1 NOT NULL,
    "DESCRIPTIF" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "ID_ECO_CONTRIBUTION" integer DEFAULT 1,
    "ECO_CONTRIBUTION" numeric(16,2) DEFAULT 0,
    "T_ECO_CONTRIBUTION" numeric(16,2) DEFAULT 0,
    "ID_DEMANDE_ACHAT_ELEMENT" integer DEFAULT 1,
    "ID_FAMILLE_ARTICLE" integer DEFAULT 1,
    "ID_DEPOT_STOCK" integer DEFAULT 1,
    "LONGUEUR" numeric(16,8),
    "LARGEUR" numeric(16,8),
    "HAUTEUR" numeric(16,8),
    "POIDS_COLIS_NET" numeric(16,8) DEFAULT 0,
    "T_POIDS_COLIS_NET" numeric(16,8) DEFAULT 0,
    "NB_COLIS" integer DEFAULT 0,
    "TARE" numeric(16,8),
    "T_POIDS_BRUT" numeric(16,8) DEFAULT 0,
    "ID_ARTICLE_DECLINAISON_TAILLE" integer DEFAULT 1,
    "ID_ARTICLE_DECLINAISON_COULEUR" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 921 (class 1259 OID 6914988)
-- Name: FACTURE_FOURNISSEUR_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24881 (class 0 OID 0)
-- Dependencies: 921
-- Name: FACTURE_FOURNISSEUR_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT_ID_seq" OWNED BY "OpenConcerto42"."FACTURE_FOURNISSEUR_ELEMENT"."ID";


--
-- TOC entry 922 (class 1259 OID 6914990)
-- Name: FACTURE_FOURNISSEUR_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."FACTURE_FOURNISSEUR_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."FACTURE_FOURNISSEUR_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24882 (class 0 OID 0)
-- Dependencies: 922
-- Name: FACTURE_FOURNISSEUR_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."FACTURE_FOURNISSEUR_ID_seq" OWNED BY "OpenConcerto42"."FACTURE_FOURNISSEUR"."ID";


--
-- TOC entry 923 (class 1259 OID 6914992)
-- Name: FAMILLE_ARTICLE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."FAMILLE_ARTICLE" (
    "ID" integer NOT NULL,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "MODIFICATION_DATE" timestamp without time zone,
    "ARCHIVE" integer DEFAULT 0,
    "ID_FAMILLE_ARTICLE_PERE" integer DEFAULT 1,
    "CODE" character varying(45) DEFAULT ''::character varying,
    "CREATION_DATE" timestamp without time zone,
    "ORDRE" numeric(16,8),
    "ID_COMPTE_PCE" integer DEFAULT 1,
    "ID_COMPTE_PCE_ACHAT" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."FAMILLE_ARTICLE" OWNER TO openconcerto;

--
-- TOC entry 924 (class 1259 OID 6915003)
-- Name: FAMILLE_ARTICLE_FOURNISSEUR; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."FAMILLE_ARTICLE_FOURNISSEUR" (
    "ID" integer NOT NULL,
    "CODE" character varying(45) DEFAULT ''::character varying NOT NULL,
    "NOM" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "ID_FAMILLE_ARTICLE_FOURNISSEUR_PERE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto42"."FAMILLE_ARTICLE_FOURNISSEUR" OWNER TO openconcerto;

--
-- TOC entry 925 (class 1259 OID 6915014)
-- Name: FAMILLE_ARTICLE_FOURNISSEUR_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."FAMILLE_ARTICLE_FOURNISSEUR_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."FAMILLE_ARTICLE_FOURNISSEUR_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24883 (class 0 OID 0)
-- Dependencies: 925
-- Name: FAMILLE_ARTICLE_FOURNISSEUR_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."FAMILLE_ARTICLE_FOURNISSEUR_ID_seq" OWNED BY "OpenConcerto42"."FAMILLE_ARTICLE_FOURNISSEUR"."ID";


--
-- TOC entry 926 (class 1259 OID 6915016)
-- Name: FAMILLE_ARTICLE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."FAMILLE_ARTICLE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."FAMILLE_ARTICLE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24884 (class 0 OID 0)
-- Dependencies: 926
-- Name: FAMILLE_ARTICLE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."FAMILLE_ARTICLE_ID_seq" OWNED BY "OpenConcerto42"."FAMILLE_ARTICLE"."ID";


--
-- TOC entry 927 (class 1259 OID 6915018)
-- Name: FICHE_PAYE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."FICHE_PAYE" (
    "ACOMPTE" numeric(16,2) DEFAULT 0,
    "NET_IMP" numeric(16,2) DEFAULT 0,
    "CONGES_ACQUIS" real DEFAULT 0,
    "NATURE_EMPLOI" character varying(150) DEFAULT ''::character varying,
    "ID_CUMULS_PAYE" integer DEFAULT 1,
    "ID_IDCC" integer DEFAULT 1,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "DU" date,
    "ORDRE" numeric(16,8),
    "ID_REGLEMENT_PAYE" integer DEFAULT 1,
    "ID_VARIABLE_SALARIE" integer DEFAULT 1,
    "ID_CUMULS_CONGES" integer DEFAULT 1,
    "COT_PAT" numeric(16,2) DEFAULT 0,
    "ANNEE" integer DEFAULT 0,
    "AU" date,
    "CREATION_DATE" timestamp without time zone,
    "NET_A_PAYER" numeric(16,2) DEFAULT 0,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "SAL_BRUT" numeric(16,2) DEFAULT 0,
    "VALIDE" boolean DEFAULT false,
    "CSG" numeric(16,2) DEFAULT 0,
    "COT_SAL" numeric(16,2) DEFAULT 0,
    "ID_MOIS" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "ID_SALARIE" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "ID_PROFIL_PAYE" integer DEFAULT 1,
    "ID_INFOS_SALARIE_PAYE" integer DEFAULT 1,
    "SAL_BASE_BRUT" numeric(16,2) DEFAULT 0 NOT NULL,
    "TAXE_CM_SAL" numeric(16,2) DEFAULT 0 NOT NULL,
    "TAXE_CM_PAT" numeric(16,2) DEFAULT 0 NOT NULL,
    "SAL_BRUT_COTISABLE" numeric(16,2) DEFAULT 0 NOT NULL,
    "SAL_BRUT_TAXABLE" numeric(16,2) DEFAULT 0 NOT NULL,
    "ALLEGEMENT_COTISATION" numeric(16,2) DEFAULT 0 NOT NULL,
    "CICE" numeric(16,2) DEFAULT 0 NOT NULL,
    "AVANTAGE_NATURE" numeric(16,2) DEFAULT 0 NOT NULL,
    "HEURE_TRAV" numeric(16,2) DEFAULT 0 NOT NULL,
    "DETAILS_CONGES" character varying(512) DEFAULT ''::character varying NOT NULL,
    "REDUCTION_GVT" numeric(16,2) DEFAULT 0 NOT NULL,
    "ID_PAS" integer DEFAULT 1,
    "TOTAL_PAS" numeric(16,2) DEFAULT 0 NOT NULL,
    "NET_AVANT_PAS" numeric(16,2) DEFAULT 0 NOT NULL,
    "CSG_REDUITE" numeric(16,2) DEFAULT 0 NOT NULL,
    "SAL_BRUT_CSG" numeric(16,2) DEFAULT 0 NOT NULL,
    "SAL_BRUT_CSG_REDUITE" numeric(16,2) DEFAULT 0 NOT NULL,
    "PERTE_TPT" numeric(16,2) DEFAULT 0 NOT NULL,
    "NET_SOCIAL" numeric(16,2) DEFAULT 0 NOT NULL,
    "HEURE_SUP_EXO_NET" numeric(16,2) DEFAULT 0 NOT NULL,
    "HEURE_SUP_EXO_BRUT" numeric(16,2) DEFAULT 0 NOT NULL,
    "HEURE_SUP_EXO_COEFF" numeric(16,8) DEFAULT 0 NOT NULL
);


ALTER TABLE "OpenConcerto42"."FICHE_PAYE" OWNER TO openconcerto;

--
-- TOC entry 928 (class 1259 OID 6915065)
-- Name: FICHE_PAYE_ELEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."FICHE_PAYE_ELEMENT" (
    "IN_PERIODE" boolean DEFAULT true,
    "ID_FICHE_PAYE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "MODIFICATION_DATE" timestamp without time zone,
    "VALIDE" boolean DEFAULT false,
    "ID" integer NOT NULL,
    "TAUX_PAT" numeric(16,6) DEFAULT 0,
    "IMPRESSION" boolean DEFAULT true,
    "MONTANT_SAL_AJ" numeric(16,2) DEFAULT 0,
    "CREATION_DATE" timestamp without time zone,
    "SOURCE" character varying(45) DEFAULT ''::character varying,
    "NOM" character varying(512) DEFAULT ''::character varying NOT NULL,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "TAUX_SAL" numeric(16,6) DEFAULT 0,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "MONTANT_SAL_DED" numeric(16,2) DEFAULT 0,
    "ORDRE" numeric(16,8),
    "NB_BASE" numeric(16,6) DEFAULT 0,
    "IDSOURCE" integer DEFAULT 1,
    "POSITION" integer DEFAULT 0,
    "MONTANT_PAT" numeric(16,2) DEFAULT 0,
    "ID_STYLE" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."FICHE_PAYE_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 929 (class 1259 OID 6915089)
-- Name: FICHE_PAYE_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."FICHE_PAYE_ELEMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."FICHE_PAYE_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24885 (class 0 OID 0)
-- Dependencies: 929
-- Name: FICHE_PAYE_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."FICHE_PAYE_ELEMENT_ID_seq" OWNED BY "OpenConcerto42"."FICHE_PAYE_ELEMENT"."ID";


--
-- TOC entry 930 (class 1259 OID 6915091)
-- Name: FICHE_PAYE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."FICHE_PAYE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."FICHE_PAYE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24886 (class 0 OID 0)
-- Dependencies: 930
-- Name: FICHE_PAYE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."FICHE_PAYE_ID_seq" OWNED BY "OpenConcerto42"."FICHE_PAYE"."ID";


--
-- TOC entry 931 (class 1259 OID 6915093)
-- Name: FIN_CONTRAT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."FIN_CONTRAT" (
    "ID" integer NOT NULL,
    "ID_FICHE_PAYE" integer DEFAULT 1,
    "ID_MOTIF_FIN_CONTRAT" integer DEFAULT 1,
    "DATE_FIN" timestamp without time zone,
    "DATE_NOTIFICATION" timestamp without time zone,
    "DATE_SIGNATURE_CONVENTION" timestamp without time zone,
    "DATE_ENGAGEMENT_PROCEDURE" timestamp without time zone,
    "DERNIER_JOUR_TRAV_PAYE" timestamp without time zone,
    "TRANSACTION_EN_COURS" boolean DEFAULT false NOT NULL,
    "PORTABILITE_PREVOYANCE" boolean DEFAULT false NOT NULL,
    "NB_DIF_RESTANT" integer,
    "NB_MOIS_CSP" integer,
    "SALAIRE_NET_HORAIRE" numeric(16,8),
    "INDEMNITE_VERSE" numeric(16,8),
    "ID_TYPE_PREAVIS" integer DEFAULT 1,
    "DATE_DEBUT_PREAVIS" timestamp without time zone,
    "DATE_FIN_PREAVIS" timestamp without time zone,
    "INFOS" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto42"."FIN_CONTRAT" OWNER TO openconcerto;

--
-- TOC entry 932 (class 1259 OID 6915107)
-- Name: FIN_CONTRAT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."FIN_CONTRAT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."FIN_CONTRAT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24887 (class 0 OID 0)
-- Dependencies: 932
-- Name: FIN_CONTRAT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."FIN_CONTRAT_ID_seq" OWNED BY "OpenConcerto42"."FIN_CONTRAT"."ID";


--
-- TOC entry 933 (class 1259 OID 6915109)
-- Name: FOURNISSEUR; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."FOURNISSEUR" (
    "CREATION_DATE" timestamp without time zone,
    "CODE" character varying(2048) DEFAULT ''::text,
    "UE" boolean DEFAULT false,
    "TYPE" character varying(2048) DEFAULT ''::text,
    "TEL" character varying(2048) DEFAULT ''::text,
    "ID_ADRESSE" integer DEFAULT 1,
    "ID_ADRESSE_E" integer DEFAULT 1,
    "ID_MODE_REGLEMENT" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "ARCHIVE" integer DEFAULT 0,
    "FAX" character varying(2048) DEFAULT ''::text,
    "ID_FOURNISSEUR" integer NOT NULL,
    "ORDRE" numeric(16,8),
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_COMPTE_PCE" integer DEFAULT 1,
    "NOM" character varying(2048) DEFAULT ''::text,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_LANGUE" integer DEFAULT 1,
    "ID_DEVISE" integer DEFAULT 1,
    "RESPONSABLE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "TEL_P" character varying(256) DEFAULT ''::character varying NOT NULL,
    "MAIL" character varying(256) DEFAULT ''::character varying NOT NULL,
    "INFOS" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "ID_COMPTE_PCE_CHARGE" integer DEFAULT 1,
    "ATTACHMENTS" integer DEFAULT 0 NOT NULL,
    "NUMERO_TVA" character varying(128) DEFAULT ''::character varying NOT NULL,
    "SIRET" character varying(128) DEFAULT ''::character varying NOT NULL,
    "IBAN" character varying(128) DEFAULT ''::character varying NOT NULL,
    "BIC" character varying(128) DEFAULT ''::character varying NOT NULL,
    "ID_CATEGORIE_COMPTABLE" integer DEFAULT 1,
    "CONDITIONS_PORT" character varying(128) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE "OpenConcerto42"."FOURNISSEUR" OWNER TO openconcerto;

--
-- TOC entry 934 (class 1259 OID 6915142)
-- Name: FOURNISSEUR_ID_FOURNISSEUR_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."FOURNISSEUR_ID_FOURNISSEUR_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."FOURNISSEUR_ID_FOURNISSEUR_seq" OWNER TO openconcerto;

--
-- TOC entry 24888 (class 0 OID 0)
-- Dependencies: 934
-- Name: FOURNISSEUR_ID_FOURNISSEUR_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."FOURNISSEUR_ID_FOURNISSEUR_seq" OWNED BY "OpenConcerto42"."FOURNISSEUR"."ID_FOURNISSEUR";


--
-- TOC entry 935 (class 1259 OID 6915144)
-- Name: FRAIS_DOCUMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."FRAIS_DOCUMENT" (
    "ID" integer NOT NULL,
    "CODE" character varying(48) DEFAULT ''::character varying NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "MONTANT_HT" bigint DEFAULT 0 NOT NULL,
    "ID_TAXE" integer DEFAULT 1,
    "MONTANT_TTC" bigint DEFAULT 0 NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."FRAIS_DOCUMENT" OWNER TO openconcerto;

--
-- TOC entry 936 (class 1259 OID 6915153)
-- Name: FRAIS_DOCUMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."FRAIS_DOCUMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."FRAIS_DOCUMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24889 (class 0 OID 0)
-- Dependencies: 936
-- Name: FRAIS_DOCUMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."FRAIS_DOCUMENT_ID_seq" OWNED BY "OpenConcerto42"."FRAIS_DOCUMENT"."ID";


--
-- TOC entry 937 (class 1259 OID 6915155)
-- Name: FWK_MODULE_DEP; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."FWK_MODULE_DEP" (
    "ID_MODULE" integer NOT NULL,
    "ID_MODULE_NEEDED" integer NOT NULL
);


ALTER TABLE "OpenConcerto42"."FWK_MODULE_DEP" OWNER TO openconcerto;

--
-- TOC entry 938 (class 1259 OID 6915158)
-- Name: FWK_MODULE_METADATA; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."FWK_MODULE_METADATA" (
    "ID" integer NOT NULL,
    "MODULE_NAME" character varying(128) DEFAULT ''::character varying NOT NULL,
    "TABLE" character varying(128),
    "FIELD" character varying(128),
    "KEY" boolean,
    "MODULE_VERSION" bigint NOT NULL
);


ALTER TABLE "OpenConcerto42"."FWK_MODULE_METADATA" OWNER TO openconcerto;

--
-- TOC entry 939 (class 1259 OID 6915162)
-- Name: FWK_MODULE_METADATA_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."FWK_MODULE_METADATA_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."FWK_MODULE_METADATA_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24890 (class 0 OID 0)
-- Dependencies: 939
-- Name: FWK_MODULE_METADATA_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."FWK_MODULE_METADATA_ID_seq" OWNED BY "OpenConcerto42"."FWK_MODULE_METADATA"."ID";


--
-- TOC entry 940 (class 1259 OID 6915164)
-- Name: FWK_SCHEMA_METADATA; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."FWK_SCHEMA_METADATA" (
    "VALUE" character varying(250) DEFAULT ''::character varying,
    "NAME" character varying(100) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE "OpenConcerto42"."FWK_SCHEMA_METADATA" OWNER TO openconcerto;

--
-- TOC entry 941 (class 1259 OID 6915169)
-- Name: FWK_UNDEFINED_IDS; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."FWK_UNDEFINED_IDS" (
    "UNDEFINED_ID" integer DEFAULT 0,
    "TABLENAME" character varying(250) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE "OpenConcerto42"."FWK_UNDEFINED_IDS" OWNER TO openconcerto;

--
-- TOC entry 942 (class 1259 OID 6915174)
-- Name: INFOS_SALARIE_PAYE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."INFOS_SALARIE_PAYE" (
    "DUREE_MOIS" real DEFAULT 0,
    "ORDRE" numeric(16,8),
    "ID_CLASSEMENT_CONVENTIONNEL" integer DEFAULT 1,
    "DATE_SORTIE" date,
    "SALAIRE_MOIS" real DEFAULT 0,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_CONTRAT_SALARIE" integer DEFAULT 1,
    "TAUX_AT" real DEFAULT 0,
    "DATE_ARRIVE" date,
    "DUREE_HEBDO" real DEFAULT 0,
    "ARCHIVE" integer DEFAULT 0,
    "CREATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "CONGES_PAYES" real DEFAULT 0,
    "ID_IDCC" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "CODE_AT" character varying(18) DEFAULT ''::character varying NOT NULL,
    "CODE_SECTION_AT" character varying(18) DEFAULT ''::character varying NOT NULL,
    "ID_COEFF_PRIME" integer DEFAULT 1,
    "ID_SALARIE" integer DEFAULT 1,
    "DUREE_FORFAIT" real
);


ALTER TABLE "OpenConcerto42"."INFOS_SALARIE_PAYE" OWNER TO openconcerto;

--
-- TOC entry 943 (class 1259 OID 6915192)
-- Name: INFOS_SALARIE_PAYE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."INFOS_SALARIE_PAYE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."INFOS_SALARIE_PAYE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24891 (class 0 OID 0)
-- Dependencies: 943
-- Name: INFOS_SALARIE_PAYE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."INFOS_SALARIE_PAYE_ID_seq" OWNED BY "OpenConcerto42"."INFOS_SALARIE_PAYE"."ID";


--
-- TOC entry 944 (class 1259 OID 6915194)
-- Name: JOURNAL; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."JOURNAL" (
    "CREATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "CODE" character varying(2048) DEFAULT ''::text,
    "ORDRE" numeric(16,8),
    "TYPE_BANQUE" boolean DEFAULT false,
    "ID" integer NOT NULL,
    "MODIFICATION_DATE" timestamp without time zone,
    "PAR_DEFAUT" boolean DEFAULT false,
    "NOM" character varying(2048) DEFAULT ''::text,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."JOURNAL" OWNER TO openconcerto;

--
-- TOC entry 945 (class 1259 OID 6915207)
-- Name: JOURNAL_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."JOURNAL_ID_seq"
    START WITH 7
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."JOURNAL_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24892 (class 0 OID 0)
-- Dependencies: 945
-- Name: JOURNAL_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."JOURNAL_ID_seq" OWNED BY "OpenConcerto42"."JOURNAL"."ID";


--
-- TOC entry 946 (class 1259 OID 6915209)
-- Name: LANGUE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."LANGUE" (
    "ID" integer NOT NULL,
    "CODE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "CHEMIN" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto42"."LANGUE" OWNER TO openconcerto;

--
-- TOC entry 947 (class 1259 OID 6915220)
-- Name: LANGUE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."LANGUE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."LANGUE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24893 (class 0 OID 0)
-- Dependencies: 947
-- Name: LANGUE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."LANGUE_ID_seq" OWNED BY "OpenConcerto42"."LANGUE"."ID";


--
-- TOC entry 948 (class 1259 OID 6915222)
-- Name: LOT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."LOT" (
    "ID" integer NOT NULL,
    "ID_STOCK" integer DEFAULT 1,
    "QUANTITE" numeric(16,6) DEFAULT 1 NOT NULL,
    "NUMERO_LOT" character varying(256) DEFAULT ''::character varying NOT NULL,
    "NUMERO_SERIE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "DLC" date,
    "DLUO" date,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."LOT" OWNER TO openconcerto;

--
-- TOC entry 949 (class 1259 OID 6915233)
-- Name: LOT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."LOT_ID_seq"
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."LOT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24894 (class 0 OID 0)
-- Dependencies: 949
-- Name: LOT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."LOT_ID_seq" OWNED BY "OpenConcerto42"."LOT"."ID";


--
-- TOC entry 950 (class 1259 OID 6915235)
-- Name: LOT_LIVRAISON; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."LOT_LIVRAISON" (
    "ID" integer NOT NULL,
    "DATE_LIVRAISON" timestamp without time zone,
    "CLIENT" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ARTICLE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_ARTICLE" integer DEFAULT 1,
    "ID_DEPOT_STOCK" integer DEFAULT 1,
    "QUANTITE" numeric(16,6) DEFAULT 1 NOT NULL,
    "NUMERO_LOT" character varying(256) DEFAULT ''::character varying NOT NULL,
    "NUMERO_SERIE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "DLC" date,
    "DLUO" date,
    "ID_BON_DE_LIVRAISON_ELEMENT" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8),
    "ID_LOT" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."LOT_LIVRAISON" OWNER TO openconcerto;

--
-- TOC entry 951 (class 1259 OID 6915251)
-- Name: LOT_LIVRAISON_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."LOT_LIVRAISON_ID_seq"
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."LOT_LIVRAISON_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24895 (class 0 OID 0)
-- Dependencies: 951
-- Name: LOT_LIVRAISON_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."LOT_LIVRAISON_ID_seq" OWNED BY "OpenConcerto42"."LOT_LIVRAISON"."ID";


--
-- TOC entry 952 (class 1259 OID 6915253)
-- Name: LOT_RECEPTION; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."LOT_RECEPTION" (
    "ID" integer NOT NULL,
    "DATE_RECEPTION" timestamp without time zone,
    "FOURNISSEUR" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ARTICLE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_ARTICLE" integer DEFAULT 1,
    "ID_DEPOT_STOCK" integer DEFAULT 1,
    "QUANTITE" numeric(16,6) DEFAULT 1 NOT NULL,
    "NUMERO_LOT" character varying(256) DEFAULT ''::character varying NOT NULL,
    "NUMERO_SERIE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "DLC" date,
    "DLUO" date,
    "ID_BON_RECEPTION_ELEMENT" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8),
    "ID_LOT" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."LOT_RECEPTION" OWNER TO openconcerto;

--
-- TOC entry 953 (class 1259 OID 6915269)
-- Name: LOT_RECEPTION_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."LOT_RECEPTION_ID_seq"
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."LOT_RECEPTION_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24896 (class 0 OID 0)
-- Dependencies: 953
-- Name: LOT_RECEPTION_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."LOT_RECEPTION_ID_seq" OWNED BY "OpenConcerto42"."LOT_RECEPTION"."ID";


--
-- TOC entry 954 (class 1259 OID 6915271)
-- Name: METRIQUE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."METRIQUE" (
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "ORDRE" numeric(16,8),
    "UNITE" character varying(45) DEFAULT ''::character varying,
    "CREATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "ID" integer NOT NULL,
    "NOM" character varying(45) DEFAULT ''::character varying
);


ALTER TABLE "OpenConcerto42"."METRIQUE" OWNER TO openconcerto;

--
-- TOC entry 955 (class 1259 OID 6915279)
-- Name: METRIQUE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."METRIQUE_ID_seq"
    START WITH 4
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."METRIQUE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24897 (class 0 OID 0)
-- Dependencies: 955
-- Name: METRIQUE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."METRIQUE_ID_seq" OWNED BY "OpenConcerto42"."METRIQUE"."ID";


--
-- TOC entry 956 (class 1259 OID 6915281)
-- Name: MODELE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."MODELE" (
    "ID" integer NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_TYPE_MODELE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto42"."MODELE" OWNER TO openconcerto;

--
-- TOC entry 957 (class 1259 OID 6915288)
-- Name: MODELE_COURRIER_CLIENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."MODELE_COURRIER_CLIENT" (
    "MODIFICATION_DATE" timestamp without time zone,
    "ARCHIVE" integer DEFAULT 0,
    "CREATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "CODE" character varying(10) DEFAULT ''::character varying,
    "LOCATION" character varying(2048) DEFAULT ''::text,
    "NOM" character varying(45) DEFAULT ''::character varying,
    "CONTENU" character varying(2048) DEFAULT ''::text,
    "ORDRE" numeric(16,8) DEFAULT 0,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "TEMPLATE_NAME" character varying(256) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE "OpenConcerto42"."MODELE_COURRIER_CLIENT" OWNER TO openconcerto;

--
-- TOC entry 958 (class 1259 OID 6915302)
-- Name: MODELE_COURRIER_CLIENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."MODELE_COURRIER_CLIENT_ID_seq"
    START WITH 10
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."MODELE_COURRIER_CLIENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24898 (class 0 OID 0)
-- Dependencies: 958
-- Name: MODELE_COURRIER_CLIENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."MODELE_COURRIER_CLIENT_ID_seq" OWNED BY "OpenConcerto42"."MODELE_COURRIER_CLIENT"."ID";


--
-- TOC entry 959 (class 1259 OID 6915304)
-- Name: MODELE_EMAIL; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."MODELE_EMAIL" (
    "ID" integer NOT NULL,
    "NOM" character varying(80) DEFAULT ''::character varying NOT NULL,
    "TITRE" character varying(80) DEFAULT ''::character varying NOT NULL,
    "TEXTE" character varying(4096) DEFAULT ''::character varying NOT NULL,
    "FORMAT_DATE" character varying(20) DEFAULT ''::character varying NOT NULL,
    "PAR_DEFAUT" boolean DEFAULT false NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8),
    "TABLE_NAME" character varying(256) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE "OpenConcerto42"."MODELE_EMAIL" OWNER TO openconcerto;

--
-- TOC entry 960 (class 1259 OID 6915317)
-- Name: MODELE_EMAIL_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."MODELE_EMAIL_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."MODELE_EMAIL_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24899 (class 0 OID 0)
-- Dependencies: 960
-- Name: MODELE_EMAIL_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."MODELE_EMAIL_ID_seq" OWNED BY "OpenConcerto42"."MODELE_EMAIL"."ID";


--
-- TOC entry 961 (class 1259 OID 6915319)
-- Name: MODELE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."MODELE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."MODELE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24900 (class 0 OID 0)
-- Dependencies: 961
-- Name: MODELE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."MODELE_ID_seq" OWNED BY "OpenConcerto42"."MODELE"."ID";


--
-- TOC entry 962 (class 1259 OID 6915321)
-- Name: MODE_REGLEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."MODE_REGLEMENT" (
    "DATE_FACTURE" boolean DEFAULT false,
    "ID_TYPE_REGLEMENT" integer DEFAULT 1,
    "DATE" date,
    "COMPTANT" boolean DEFAULT false,
    "ID_MODE_REGLEMENT" integer NOT NULL,
    "LENJOUR" integer DEFAULT 0,
    "CREATION_DATE" timestamp without time zone,
    "NUMERO" character varying(2048) DEFAULT ''::text,
    "NOM" character varying(2048) DEFAULT ''::text,
    "ETS" character varying(2048) DEFAULT ''::text,
    "ARCHIVE" integer DEFAULT 0,
    "CODE" character varying(2048) DEFAULT ''::text,
    "AJOURS" integer DEFAULT 0,
    "DATE_VIREMENT" date,
    "ORDRE" numeric(16,8),
    "DATE_DEPOT" date,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "FIN_MOIS" boolean DEFAULT false,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_BANQUE" integer DEFAULT 1,
    "ID_SEPA_MANDATE" integer,
    "RG" boolean DEFAULT false NOT NULL
);


ALTER TABLE "OpenConcerto42"."MODE_REGLEMENT" OWNER TO openconcerto;

--
-- TOC entry 963 (class 1259 OID 6915342)
-- Name: MODE_REGLEMENT_ID_MODE_REGLEMENT_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."MODE_REGLEMENT_ID_MODE_REGLEMENT_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."MODE_REGLEMENT_ID_MODE_REGLEMENT_seq" OWNER TO openconcerto;

--
-- TOC entry 24901 (class 0 OID 0)
-- Dependencies: 963
-- Name: MODE_REGLEMENT_ID_MODE_REGLEMENT_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."MODE_REGLEMENT_ID_MODE_REGLEMENT_seq" OWNED BY "OpenConcerto42"."MODE_REGLEMENT"."ID_MODE_REGLEMENT";


--
-- TOC entry 964 (class 1259 OID 6915344)
-- Name: MODE_REGLEMENT_PAYE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."MODE_REGLEMENT_PAYE" (
    "NOM" character varying(45) DEFAULT ''::character varying,
    "ID" integer NOT NULL
);


ALTER TABLE "OpenConcerto42"."MODE_REGLEMENT_PAYE" OWNER TO openconcerto;

--
-- TOC entry 965 (class 1259 OID 6915348)
-- Name: MODE_REGLEMENT_PAYE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."MODE_REGLEMENT_PAYE_ID_seq"
    START WITH 4
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."MODE_REGLEMENT_PAYE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24902 (class 0 OID 0)
-- Dependencies: 965
-- Name: MODE_REGLEMENT_PAYE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."MODE_REGLEMENT_PAYE_ID_seq" OWNED BY "OpenConcerto42"."MODE_REGLEMENT_PAYE"."ID";


--
-- TOC entry 966 (class 1259 OID 6915350)
-- Name: MODE_VENTE_ARTICLE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."MODE_VENTE_ARTICLE" (
    "CODE" character varying(45) DEFAULT ''::character varying,
    "ID_METRIQUE_1" integer DEFAULT 1,
    "PRIX_METRIQUE_VT_2" bigint DEFAULT 0,
    "ID" integer NOT NULL,
    "PRIX_METRIQUE_VT_1" bigint DEFAULT 0,
    "NOM" character varying(45) DEFAULT ''::character varying,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "CREATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "PRIX_METRIQUE_HA_3" bigint DEFAULT 0,
    "ID_METRIQUE_3" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "PRIX_METRIQUE_HA_2" bigint DEFAULT 0,
    "PRIX_METRIQUE_VT_3" bigint DEFAULT 0,
    "ID_METRIQUE_2" integer DEFAULT 1,
    "ORDRE" numeric(16,8) DEFAULT 0.00000000,
    "PRIX_METRIQUE_HA_1" bigint DEFAULT 0
);


ALTER TABLE "OpenConcerto42"."MODE_VENTE_ARTICLE" OWNER TO openconcerto;

--
-- TOC entry 967 (class 1259 OID 6915368)
-- Name: MODE_VENTE_ARTICLE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."MODE_VENTE_ARTICLE_ID_seq"
    START WITH 7
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."MODE_VENTE_ARTICLE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24903 (class 0 OID 0)
-- Dependencies: 967
-- Name: MODE_VENTE_ARTICLE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."MODE_VENTE_ARTICLE_ID_seq" OWNED BY "OpenConcerto42"."MODE_VENTE_ARTICLE"."ID";


--
-- TOC entry 968 (class 1259 OID 6915370)
-- Name: MOIS; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."MOIS" (
    "ARCHIVE" integer DEFAULT 0,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ORDRE" numeric(16,8),
    "NOM" character varying(45) DEFAULT ''::character varying,
    "CREATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID" integer NOT NULL
);


ALTER TABLE "OpenConcerto42"."MOIS" OWNER TO openconcerto;

--
-- TOC entry 969 (class 1259 OID 6915377)
-- Name: MOIS_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."MOIS_ID_seq"
    START WITH 14
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."MOIS_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24904 (class 0 OID 0)
-- Dependencies: 969
-- Name: MOIS_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."MOIS_ID_seq" OWNED BY "OpenConcerto42"."MOIS"."ID";


--
-- TOC entry 970 (class 1259 OID 6915379)
-- Name: MOUVEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."MOUVEMENT" (
    "ID_MOUVEMENT_PERE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_PIECE" integer DEFAULT 1,
    "ORDRE" numeric(16,8),
    "ID" integer NOT NULL,
    "IDSOURCE" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "CREATION_DATE" timestamp without time zone,
    "NUMERO" integer DEFAULT 0,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "SOURCE" character varying(2048) DEFAULT ''::text,
    "ATTACHMENTS" integer DEFAULT 0 NOT NULL
);


ALTER TABLE "OpenConcerto42"."MOUVEMENT" OWNER TO openconcerto;

--
-- TOC entry 971 (class 1259 OID 6915394)
-- Name: MOUVEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."MOUVEMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."MOUVEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24905 (class 0 OID 0)
-- Dependencies: 971
-- Name: MOUVEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."MOUVEMENT_ID_seq" OWNED BY "OpenConcerto42"."MOUVEMENT"."ID";


--
-- TOC entry 972 (class 1259 OID 6915396)
-- Name: MOUVEMENT_STOCK; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."MOUVEMENT_STOCK" (
    "QTE" real DEFAULT 0,
    "ORDRE" numeric(16,8),
    "NOM" character varying(512) DEFAULT ''::character varying NOT NULL,
    "NUMERO" character varying(150) DEFAULT ''::character varying,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "IDSOURCE" integer DEFAULT 1,
    "SOURCE" character varying(45) DEFAULT ''::character varying,
    "CREATION_DATE" timestamp without time zone,
    "ARCHIVE" integer DEFAULT 0,
    "ID_ARTICLE" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "DATE" date,
    "REEL" boolean DEFAULT true NOT NULL,
    "CLOTURE" boolean DEFAULT false NOT NULL,
    "OUVERTURE" boolean DEFAULT false NOT NULL,
    "ID_ETAT_STOCK" integer DEFAULT 1,
    "ID_STOCK" integer DEFAULT 1,
    "SOURCE_ELEMENTID" integer DEFAULT 1 NOT NULL
);


ALTER TABLE "OpenConcerto42"."MOUVEMENT_STOCK" OWNER TO openconcerto;

--
-- TOC entry 973 (class 1259 OID 6915417)
-- Name: MOUVEMENT_STOCK_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."MOUVEMENT_STOCK_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."MOUVEMENT_STOCK_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24906 (class 0 OID 0)
-- Dependencies: 973
-- Name: MOUVEMENT_STOCK_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."MOUVEMENT_STOCK_ID_seq" OWNED BY "OpenConcerto42"."MOUVEMENT_STOCK"."ID";


--
-- TOC entry 974 (class 1259 OID 6915419)
-- Name: NATURE_COMPTE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."NATURE_COMPTE" (
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ORDRE" numeric(16,8),
    "ARCHIVE" integer DEFAULT 0,
    "ID" integer NOT NULL,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "NOM" character varying(2048) DEFAULT ''::text,
    "CREATION_DATE" timestamp without time zone
);


ALTER TABLE "OpenConcerto42"."NATURE_COMPTE" OWNER TO openconcerto;

--
-- TOC entry 975 (class 1259 OID 6915429)
-- Name: NATURE_COMPTE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."NATURE_COMPTE_ID_seq"
    START WITH 13
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."NATURE_COMPTE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24907 (class 0 OID 0)
-- Dependencies: 975
-- Name: NATURE_COMPTE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."NATURE_COMPTE_ID_seq" OWNED BY "OpenConcerto42"."NATURE_COMPTE"."ID";


--
-- TOC entry 976 (class 1259 OID 6915431)
-- Name: NUMEROTATION_AUTO; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."NUMEROTATION_AUTO" (
    "FACT_START" integer DEFAULT 1,
    "AFFAIRE_FORMAT" character varying(45) DEFAULT ''::character varying,
    "RELANCE_START" integer DEFAULT 0,
    "SALARIE_START" integer DEFAULT 1,
    "FACT_FORMAT" character varying(45) DEFAULT ''::character varying,
    "DEVIS_FORMAT" character varying(45) DEFAULT ''::character varying,
    "MODIFICATION_DATE" timestamp without time zone,
    "AFFAIRE_START" integer DEFAULT 0,
    "CODE_LETTRAGE" character varying(128) DEFAULT 'AAA'::character varying,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "SALARIE_FORMAT" character varying(45) DEFAULT ''::character varying,
    "BON_L_START" integer DEFAULT 1,
    "AVOIR_START" integer DEFAULT 0,
    "ORDRE" numeric(16,8),
    "RELANCE_FORMAT" character varying(45) DEFAULT ''::character varying,
    "ID" integer NOT NULL,
    "CREATION_DATE" timestamp without time zone,
    "PROPOSITION_FORMAT" character varying(45) DEFAULT ''::character varying,
    "COMMANDE_CLIENT_START" integer DEFAULT 0,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "AVOIR_FORMAT" character varying(45) DEFAULT ''::character varying,
    "PROPOSITION_START" integer DEFAULT 0,
    "BON_R_START" integer DEFAULT 0,
    "BON_R_FORMAT" character varying(45) DEFAULT ''::character varying,
    "COMMANDE_CLIENT_FORMAT" character varying(45) DEFAULT ''::character varying,
    "COMMANDE_FORMAT" character varying(45) DEFAULT ''::character varying,
    "COMMANDE_START" integer DEFAULT 0,
    "ARCHIVE" integer DEFAULT 0,
    "BON_L_FORMAT" character varying(45) DEFAULT ''::character varying,
    "COURRIER_START" integer DEFAULT 1,
    "COURRIER_FORMAT" character varying(45) DEFAULT ''::character varying,
    "DEVIS_START" integer DEFAULT 1,
    "AVOIR_F_START" integer DEFAULT 0,
    "AVOIR_F_FORMAT" character varying(48) DEFAULT ''::character varying NOT NULL,
    "CLIENT_START" integer DEFAULT 0,
    "CLIENT_FORMAT" character varying(48) DEFAULT ''::character varying NOT NULL,
    "NOM" character varying(256) DEFAULT 'Standard'::character varying,
    "DMD_PRIX_FORMAT" character varying(128) DEFAULT ''::character varying NOT NULL,
    "DMD_PRIX_START" integer DEFAULT 1 NOT NULL,
    "CODE_LETTRAGE_PARTIEL" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ARTICLE_FORMAT" character varying(128) DEFAULT ''::character varying NOT NULL,
    "ARTICLE_START" integer DEFAULT 1 NOT NULL
);


ALTER TABLE "OpenConcerto42"."NUMEROTATION_AUTO" OWNER TO openconcerto;

--
-- TOC entry 977 (class 1259 OID 6915475)
-- Name: NUMEROTATION_AUTO_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."NUMEROTATION_AUTO_ID_seq"
    START WITH 3
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."NUMEROTATION_AUTO_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24908 (class 0 OID 0)
-- Dependencies: 977
-- Name: NUMEROTATION_AUTO_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."NUMEROTATION_AUTO_ID_seq" OWNED BY "OpenConcerto42"."NUMEROTATION_AUTO"."ID";


--
-- TOC entry 978 (class 1259 OID 6915477)
-- Name: OBJECTIF_COMMERCIAL; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."OBJECTIF_COMMERCIAL" (
    "ID" integer NOT NULL,
    "MOIS" character varying(32) DEFAULT ''::character varying NOT NULL,
    "ANNEE" integer,
    "MARGE_HT" bigint DEFAULT 0,
    "POURCENT_MARGE" numeric(16,8),
    "CHIFFRE_AFFAIRE" bigint DEFAULT 0,
    "ID_COMMERCIAL" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto42"."OBJECTIF_COMMERCIAL" OWNER TO openconcerto;

--
-- TOC entry 979 (class 1259 OID 6915486)
-- Name: OBJECTIF_COMMERCIAL_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."OBJECTIF_COMMERCIAL_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."OBJECTIF_COMMERCIAL_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24909 (class 0 OID 0)
-- Dependencies: 979
-- Name: OBJECTIF_COMMERCIAL_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."OBJECTIF_COMMERCIAL_ID_seq" OWNED BY "OpenConcerto42"."OBJECTIF_COMMERCIAL"."ID";


--
-- TOC entry 980 (class 1259 OID 6915488)
-- Name: PAS; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."PAS" (
    "ID" integer NOT NULL,
    "ID_TYPE_TAUX_PAS" integer DEFAULT 1,
    "CODE_PAS" character varying(256) DEFAULT ''::character varying NOT NULL,
    "TAUX_PAS" numeric(16,2) DEFAULT 0 NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."PAS" OWNER TO openconcerto;

--
-- TOC entry 981 (class 1259 OID 6915495)
-- Name: PAS_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."PAS_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."PAS_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24910 (class 0 OID 0)
-- Dependencies: 981
-- Name: PAS_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."PAS_ID_seq" OWNED BY "OpenConcerto42"."PAS"."ID";


--
-- TOC entry 982 (class 1259 OID 6915497)
-- Name: PAYS; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."PAYS" (
    "CODE" character varying(15) DEFAULT ''::character varying,
    "ORDRE" numeric(16,8),
    "ARCHIVE" integer DEFAULT 0,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "NOM" character varying(50) DEFAULT ''::character varying,
    "ID" integer NOT NULL,
    "ID_TARIF" integer DEFAULT 1,
    "ID_LANGUE" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."PAYS" OWNER TO openconcerto;

--
-- TOC entry 983 (class 1259 OID 6915507)
-- Name: PAYS_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."PAYS_ID_seq"
    START WITH 194
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."PAYS_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24911 (class 0 OID 0)
-- Dependencies: 983
-- Name: PAYS_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."PAYS_ID_seq" OWNED BY "OpenConcerto42"."PAYS"."ID";


--
-- TOC entry 984 (class 1259 OID 6915509)
-- Name: PIECE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."PIECE" (
    "ORDRE" numeric(16,8),
    "CREATION_DATE" timestamp without time zone,
    "NOM" character varying(2048) DEFAULT ''::text,
    "ARCHIVE" integer DEFAULT 0,
    "ID" integer NOT NULL,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone
);


ALTER TABLE "OpenConcerto42"."PIECE" OWNER TO openconcerto;

--
-- TOC entry 985 (class 1259 OID 6915519)
-- Name: PIECE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."PIECE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."PIECE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24912 (class 0 OID 0)
-- Dependencies: 985
-- Name: PIECE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."PIECE_ID_seq" OWNED BY "OpenConcerto42"."PIECE"."ID";


--
-- TOC entry 986 (class 1259 OID 6915521)
-- Name: POSTE_ANALYTIQUE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."POSTE_ANALYTIQUE" (
    "ARCHIVE" integer DEFAULT 0,
    "ID" integer NOT NULL,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "NOM" character varying(2048) DEFAULT ''::text,
    "CREATION_DATE" timestamp without time zone,
    "ORDRE" numeric(16,8),
    "ID_AXE_ANALYTIQUE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "DEFAULT" boolean DEFAULT false NOT NULL,
    "OBSOLETE" boolean DEFAULT false NOT NULL
);


ALTER TABLE "OpenConcerto42"."POSTE_ANALYTIQUE" OWNER TO openconcerto;

--
-- TOC entry 987 (class 1259 OID 6915534)
-- Name: POSTE_ANALYTIQUE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."POSTE_ANALYTIQUE_ID_seq"
    START WITH 2
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."POSTE_ANALYTIQUE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24913 (class 0 OID 0)
-- Dependencies: 987
-- Name: POSTE_ANALYTIQUE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."POSTE_ANALYTIQUE_ID_seq" OWNED BY "OpenConcerto42"."POSTE_ANALYTIQUE"."ID";


--
-- TOC entry 988 (class 1259 OID 6915536)
-- Name: PREFERENCES; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."PREFERENCES" (
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "VALUE" character varying(2048),
    "MODIFICATION_DATE" timestamp without time zone,
    "CREATION_DATE" timestamp without time zone,
    "ID" integer NOT NULL,
    "ARCHIVE" integer DEFAULT 0,
    "ORDRE" numeric(16,8) DEFAULT 0,
    "NAME" character varying(2048)
);


ALTER TABLE "OpenConcerto42"."PREFERENCES" OWNER TO openconcerto;

--
-- TOC entry 989 (class 1259 OID 6915546)
-- Name: PREFERENCES_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."PREFERENCES_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."PREFERENCES_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24914 (class 0 OID 0)
-- Dependencies: 989
-- Name: PREFERENCES_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."PREFERENCES_ID_seq" OWNED BY "OpenConcerto42"."PREFERENCES"."ID";


--
-- TOC entry 990 (class 1259 OID 6915548)
-- Name: PREFS_COMPTE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."PREFS_COMPTE" (
    "ID_COMPTE_PCE_TVA_ACHAT" integer DEFAULT 1,
    "ID_COMPTE_PCE_TVA_IMMO" integer DEFAULT 1,
    "ID_COMPTE_PCE_ACHAT" integer DEFAULT 1,
    "ID_COMPTE_PCE_RESULTAT_PERTE" integer DEFAULT 1,
    "ID_COMPTE_PCE_VENTE_SERVICE" integer DEFAULT 1,
    "ID_COMPTE_PCE_BILAN_F" integer DEFAULT 1,
    "ID_COMPTE_PCE_BILAN_O" integer DEFAULT 1,
    "ID_COMPTE_PCE_VENTE_PRODUIT" integer DEFAULT 1,
    "ID_COMPTE_PCE_CLIENT" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "ID_COMPTE_PCE_ACHAT_INTRA" integer DEFAULT 1,
    "ID_COMPTE_PCE_TVA_INTRA" integer DEFAULT 1,
    "ID_COMPTE_PCE_ACOMPTE_REGL" integer DEFAULT 1,
    "ID_JOURNAL_FACTOR" integer DEFAULT 1,
    "ID_COMPTE_PCE_RESULTAT" integer DEFAULT 1,
    "ID_COMPTE_PCE_ACOMPTE" integer DEFAULT 1,
    "ID_COMPTE_PCE_FACTOR" integer DEFAULT 1,
    "ID_COMPTE_PCE_FOURNISSEUR" integer DEFAULT 1,
    "ID_COMPTE_PCE_PAYE" integer DEFAULT 1,
    "ID_COMPTE_PCE_TVA_VENTE" integer DEFAULT 1,
    "ID_COMPTE_PCE_PORT_SOUMIS" integer DEFAULT 1,
    "ID_COMPTE_PCE_PORT_NON_SOUMIS" integer DEFAULT 1,
    "ID_COMPTE_PCE_AVANCE_CLIENT" integer DEFAULT 1,
    "ID_COMPTE_PCE_VALEUR_ENCAISSEMENT" integer DEFAULT 1,
    "ID_JOURNAL_AN" integer DEFAULT 1,
    "CREATE_NUL_SOLDE_ECR" boolean DEFAULT true NOT NULL,
    "AUTO_LETTRAGE" boolean DEFAULT false NOT NULL,
    "ID_JOURNAL_VALEUR_ENCAISSEMENT" integer DEFAULT 1,
    "ID_JOURNAL_CB_ATTENTE" integer DEFAULT 1,
    "ID_COMPTE_PCE_CB_ATTENTE" integer DEFAULT 1,
    "ID_COMPTE_PCE_PORT_SOUMIS_ACHAT" integer DEFAULT 1,
    "ID_COMPTE_PCE_PORT_NON_SOUMIS_ACHAT" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."PREFS_COMPTE" OWNER TO openconcerto;

--
-- TOC entry 991 (class 1259 OID 6915582)
-- Name: PREFS_COMPTE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."PREFS_COMPTE_ID_seq"
    START WITH 3
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."PREFS_COMPTE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24915 (class 0 OID 0)
-- Dependencies: 991
-- Name: PREFS_COMPTE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."PREFS_COMPTE_ID_seq" OWNED BY "OpenConcerto42"."PREFS_COMPTE"."ID";


--
-- TOC entry 992 (class 1259 OID 6915584)
-- Name: PREF_NODE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."PREF_NODE" (
    "ID" integer NOT NULL,
    "ID_PARENT" integer,
    "NAME" character varying(80) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE "OpenConcerto42"."PREF_NODE" OWNER TO openconcerto;

--
-- TOC entry 993 (class 1259 OID 6915588)
-- Name: PREF_NODE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."PREF_NODE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."PREF_NODE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24916 (class 0 OID 0)
-- Dependencies: 993
-- Name: PREF_NODE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."PREF_NODE_ID_seq" OWNED BY "OpenConcerto42"."PREF_NODE"."ID";


--
-- TOC entry 994 (class 1259 OID 6915590)
-- Name: PREF_VALUE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."PREF_VALUE" (
    "ID_NODE" integer NOT NULL,
    "NAME" character varying(80) DEFAULT ''::character varying NOT NULL,
    "VALUE" character varying(8192) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE "OpenConcerto42"."PREF_VALUE" OWNER TO openconcerto;

--
-- TOC entry 1475 (class 1259 OID 6941071)
-- Name: RAPPROCHEMENT_BANCAIRE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."RAPPROCHEMENT_BANCAIRE" (
    "ID" integer NOT NULL,
    "ID_RELEVE_BANCAIRE_ELEMENT" integer,
    "ID_ECRITURE" integer DEFAULT 1,
    "DATE" timestamp without time zone,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."RAPPROCHEMENT_BANCAIRE" OWNER TO openconcerto;

--
-- TOC entry 1474 (class 1259 OID 6941069)
-- Name: RAPPROCHEMENT_BANCAIRE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."RAPPROCHEMENT_BANCAIRE_ID_seq"
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."RAPPROCHEMENT_BANCAIRE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24917 (class 0 OID 0)
-- Dependencies: 1474
-- Name: RAPPROCHEMENT_BANCAIRE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."RAPPROCHEMENT_BANCAIRE_ID_seq" OWNED BY "OpenConcerto42"."RAPPROCHEMENT_BANCAIRE"."ID";


--
-- TOC entry 995 (class 1259 OID 6915598)
-- Name: REFERENCE_CLIENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."REFERENCE_CLIENT" (
    "ARCHIVE" integer DEFAULT 0,
    "ORDRE" numeric(16,8) DEFAULT 0,
    "NOM" character varying(2048) DEFAULT ''::text,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "ID" integer NOT NULL,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."REFERENCE_CLIENT" OWNER TO openconcerto;

--
-- TOC entry 996 (class 1259 OID 6915609)
-- Name: REFERENCE_CLIENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."REFERENCE_CLIENT_ID_seq"
    START WITH 2
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."REFERENCE_CLIENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24918 (class 0 OID 0)
-- Dependencies: 996
-- Name: REFERENCE_CLIENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."REFERENCE_CLIENT_ID_seq" OWNED BY "OpenConcerto42"."REFERENCE_CLIENT"."ID";


--
-- TOC entry 997 (class 1259 OID 6915611)
-- Name: REGIME_BASE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."REGIME_BASE" (
    "NOM" character varying(128) DEFAULT ''::character varying NOT NULL,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ORDRE" numeric(16,8),
    "ARCHIVE" integer DEFAULT 0,
    "ID_CODE_REGIME_MALADIE" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_CODE_REGIME_VIEL_P" integer DEFAULT 1,
    "ID_CODE_REGIME_AT" integer DEFAULT 1,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "CODE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_CODE_REGIME_VIEL_S" integer DEFAULT 1,
    "ID_CODE_REGIME_BASE" integer DEFAULT 1,
    "ID" integer NOT NULL
);


ALTER TABLE "OpenConcerto42"."REGIME_BASE" OWNER TO openconcerto;

--
-- TOC entry 998 (class 1259 OID 6915624)
-- Name: REGIME_BASE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."REGIME_BASE_ID_seq"
    START WITH 2
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."REGIME_BASE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24919 (class 0 OID 0)
-- Dependencies: 998
-- Name: REGIME_BASE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."REGIME_BASE_ID_seq" OWNED BY "OpenConcerto42"."REGIME_BASE"."ID";


--
-- TOC entry 999 (class 1259 OID 6915626)
-- Name: REGLEMENT_PAYE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."REGLEMENT_PAYE" (
    "ID" integer NOT NULL,
    "LE" integer DEFAULT 1,
    "ID_COMPTE_PCE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "ORDRE" numeric(16,8),
    "MODIFICATION_DATE" timestamp without time zone,
    "CREATION_DATE" timestamp without time zone,
    "NOM_BANQUE" character varying(45) DEFAULT ''::character varying,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_MODE_REGLEMENT_PAYE" integer DEFAULT 1,
    "RIB" character varying(45) DEFAULT ''::character varying,
    "IBAN" character varying(128) DEFAULT ''::character varying NOT NULL,
    "BIC" character varying(40) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE "OpenConcerto42"."REGLEMENT_PAYE" OWNER TO openconcerto;

--
-- TOC entry 1000 (class 1259 OID 6915639)
-- Name: REGLEMENT_PAYE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."REGLEMENT_PAYE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."REGLEMENT_PAYE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24920 (class 0 OID 0)
-- Dependencies: 1000
-- Name: REGLEMENT_PAYE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."REGLEMENT_PAYE_ID_seq" OWNED BY "OpenConcerto42"."REGLEMENT_PAYE"."ID";


--
-- TOC entry 1001 (class 1259 OID 6915641)
-- Name: REGLER_MONTANT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."REGLER_MONTANT" (
    "ID_ECHEANCE_FOURNISSEUR" integer DEFAULT 1,
    "MONTANT" bigint DEFAULT 0,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "ORDRE" numeric(16,8),
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "DATE" date,
    "ID" integer NOT NULL,
    "ID_MODE_REGLEMENT" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "CREATION_DATE" timestamp without time zone,
    "ID_FOURNISSEUR" integer DEFAULT 1,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_MOUVEMENT" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."REGLER_MONTANT" OWNER TO openconcerto;

--
-- TOC entry 1002 (class 1259 OID 6915652)
-- Name: REGLER_MONTANT_ELEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."REGLER_MONTANT_ELEMENT" (
    "ID" integer NOT NULL,
    "ID_ECHEANCE_FOURNISSEUR" integer DEFAULT 1,
    "ID_REGLER_MONTANT" integer DEFAULT 1,
    "ID_MOUVEMENT_ECHEANCE" integer DEFAULT 1,
    "DATE" date,
    "MONTANT_REGLE" bigint DEFAULT 0,
    "MONTANT_A_REGLER" bigint DEFAULT 0,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto42"."REGLER_MONTANT_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 1003 (class 1259 OID 6915662)
-- Name: REGLER_MONTANT_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."REGLER_MONTANT_ELEMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."REGLER_MONTANT_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24921 (class 0 OID 0)
-- Dependencies: 1003
-- Name: REGLER_MONTANT_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."REGLER_MONTANT_ELEMENT_ID_seq" OWNED BY "OpenConcerto42"."REGLER_MONTANT_ELEMENT"."ID";


--
-- TOC entry 1004 (class 1259 OID 6915664)
-- Name: REGLER_MONTANT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."REGLER_MONTANT_ID_seq"
    START WITH 2
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."REGLER_MONTANT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24922 (class 0 OID 0)
-- Dependencies: 1004
-- Name: REGLER_MONTANT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."REGLER_MONTANT_ID_seq" OWNED BY "OpenConcerto42"."REGLER_MONTANT"."ID";


--
-- TOC entry 1005 (class 1259 OID 6915666)
-- Name: RELANCE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."RELANCE" (
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "NUMERO" character varying(45) DEFAULT ''::character varying,
    "ID_CLIENT" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "INFOS" character varying(2048) DEFAULT ''::text,
    "ID_SAISIE_VENTE_FACTURE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "ID_TYPE_LETTRE_RELANCE" integer DEFAULT 1,
    "DATE" date,
    "MONTANT" bigint DEFAULT 0,
    "ID" integer NOT NULL,
    "ORDRE" numeric(16,8),
    "ID_ECHEANCE_CLIENT" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."RELANCE" OWNER TO openconcerto;

--
-- TOC entry 1006 (class 1259 OID 6915682)
-- Name: RELANCE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."RELANCE_ID_seq"
    START WITH 2
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."RELANCE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24923 (class 0 OID 0)
-- Dependencies: 1006
-- Name: RELANCE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."RELANCE_ID_seq" OWNED BY "OpenConcerto42"."RELANCE"."ID";


--
-- TOC entry 1471 (class 1259 OID 6941020)
-- Name: RELEVE_BANCAIRE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."RELEVE_BANCAIRE" (
    "ID" integer NOT NULL,
    "ID_BANQUE" integer DEFAULT 1,
    "LABEL" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ANNEE" integer DEFAULT 0 NOT NULL,
    "MOIS" integer DEFAULT 1 NOT NULL,
    "DEBIT" numeric(16,8) DEFAULT 0 NOT NULL,
    "CREDIT" numeric(16,8) DEFAULT 0 NOT NULL,
    "SOLDE_FIN_DE_MOIS" numeric(16,8),
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."RELEVE_BANCAIRE" OWNER TO openconcerto;

--
-- TOC entry 1473 (class 1259 OID 6941043)
-- Name: RELEVE_BANCAIRE_ELEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."RELEVE_BANCAIRE_ELEMENT" (
    "ID" integer NOT NULL,
    "ID_RELEVE_BANCAIRE" integer,
    "UUID" character varying(60) DEFAULT ''::character varying NOT NULL,
    "HASH" character varying(128) DEFAULT ''::character varying NOT NULL,
    "TYPE" character varying(20) DEFAULT ''::character varying NOT NULL,
    "NAME" character varying(128) DEFAULT ''::character varying NOT NULL,
    "DESCRIPTION" character varying(256) DEFAULT ''::character varying NOT NULL,
    "COMMENT" character varying(256) DEFAULT ''::character varying NOT NULL,
    "MONTANT" numeric(16,8) DEFAULT 0 NOT NULL,
    "DATE" timestamp without time zone,
    "DATE_VALEUR" timestamp without time zone,
    "POINTE" boolean DEFAULT false NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."RELEVE_BANCAIRE_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 1472 (class 1259 OID 6941041)
-- Name: RELEVE_BANCAIRE_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."RELEVE_BANCAIRE_ELEMENT_ID_seq"
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."RELEVE_BANCAIRE_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24924 (class 0 OID 0)
-- Dependencies: 1472
-- Name: RELEVE_BANCAIRE_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."RELEVE_BANCAIRE_ELEMENT_ID_seq" OWNED BY "OpenConcerto42"."RELEVE_BANCAIRE_ELEMENT"."ID";


--
-- TOC entry 1470 (class 1259 OID 6941018)
-- Name: RELEVE_BANCAIRE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."RELEVE_BANCAIRE_ID_seq"
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."RELEVE_BANCAIRE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24925 (class 0 OID 0)
-- Dependencies: 1470
-- Name: RELEVE_BANCAIRE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."RELEVE_BANCAIRE_ID_seq" OWNED BY "OpenConcerto42"."RELEVE_BANCAIRE"."ID";


--
-- TOC entry 1007 (class 1259 OID 6915684)
-- Name: REPARTITION_ANALYTIQUE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."REPARTITION_ANALYTIQUE" (
    "NOM" character varying(2048) DEFAULT ''::text,
    "MODIFICATION_DATE" timestamp without time zone,
    "CREATION_DATE" timestamp without time zone,
    "ARCHIVE" integer DEFAULT 0,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."REPARTITION_ANALYTIQUE" OWNER TO openconcerto;

--
-- TOC entry 1008 (class 1259 OID 6915694)
-- Name: REPARTITION_ANALYTIQUE_ELEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."REPARTITION_ANALYTIQUE_ELEMENT" (
    "MODIFICATION_DATE" timestamp without time zone,
    "TAUX" real DEFAULT 0,
    "ARCHIVE" integer DEFAULT 0,
    "ID" integer NOT NULL,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ORDRE" numeric(16,8),
    "ID_POSTE_ANALYTIQUE" integer DEFAULT 1,
    "ID_REPARTITION_ANALYTIQUE" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."REPARTITION_ANALYTIQUE_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 1009 (class 1259 OID 6915703)
-- Name: REPARTITION_ANALYTIQUE_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."REPARTITION_ANALYTIQUE_ELEMENT_ID_seq"
    START WITH 2
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."REPARTITION_ANALYTIQUE_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24926 (class 0 OID 0)
-- Dependencies: 1009
-- Name: REPARTITION_ANALYTIQUE_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."REPARTITION_ANALYTIQUE_ELEMENT_ID_seq" OWNED BY "OpenConcerto42"."REPARTITION_ANALYTIQUE_ELEMENT"."ID";


--
-- TOC entry 1010 (class 1259 OID 6915705)
-- Name: REPARTITION_ANALYTIQUE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."REPARTITION_ANALYTIQUE_ID_seq"
    START WITH 2
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."REPARTITION_ANALYTIQUE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24927 (class 0 OID 0)
-- Dependencies: 1010
-- Name: REPARTITION_ANALYTIQUE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."REPARTITION_ANALYTIQUE_ID_seq" OWNED BY "OpenConcerto42"."REPARTITION_ANALYTIQUE"."ID";


--
-- TOC entry 1011 (class 1259 OID 6915707)
-- Name: REPRISE_TRAVAIL; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."REPRISE_TRAVAIL" (
    "ID" integer NOT NULL,
    "ID_SALARIE" integer DEFAULT 1,
    "DATE_DERNIER_JOUR_TRAV" timestamp without time zone,
    "DATE_FIN_PREV" timestamp without time zone,
    "SUBROGATION" boolean DEFAULT false NOT NULL,
    "DATE_DEBUT_SUBROGATION" timestamp without time zone,
    "DATE_FIN_SUBROGATION" timestamp without time zone,
    "ID_MOTIF_ARRET_TRAVAIL" integer DEFAULT 1,
    "ID_MOTIF_REPRISE_ARRET_TRAVAIL" integer DEFAULT 1,
    "DATE_REPRISE" timestamp without time zone,
    "DATE_ACCIDENT" timestamp without time zone,
    "DATE" timestamp without time zone,
    "COMMENTAIRES" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto42"."REPRISE_TRAVAIL" OWNER TO openconcerto;

--
-- TOC entry 1012 (class 1259 OID 6915720)
-- Name: REPRISE_TRAVAIL_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."REPRISE_TRAVAIL_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."REPRISE_TRAVAIL_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24928 (class 0 OID 0)
-- Dependencies: 1012
-- Name: REPRISE_TRAVAIL_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."REPRISE_TRAVAIL_ID_seq" OWNED BY "OpenConcerto42"."REPRISE_TRAVAIL"."ID";


--
-- TOC entry 1013 (class 1259 OID 6915722)
-- Name: SAISIE_ACHAT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."SAISIE_ACHAT" (
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_FOURNISSEUR" integer DEFAULT 1,
    "MONTANT_TTC" bigint DEFAULT 0,
    "SOURCE" character varying(45) DEFAULT ''::character varying,
    "ORDRE" numeric(16,8),
    "NOM" character varying(2048) DEFAULT ''::text,
    "ID_AVOIR_FOURNISSEUR" integer DEFAULT 1,
    "ID_MOUVEMENT" integer DEFAULT 1,
    "ID_TAXE" integer DEFAULT 1,
    "ID_MODE_REGLEMENT" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "ID_COMPTE_PCE" integer DEFAULT 1,
    "IMMO" boolean DEFAULT false,
    "MONTANT_HT" bigint DEFAULT 0,
    "NUMERO_COMMANDE" character varying(2048) DEFAULT ''::text,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "DATE" date,
    "MONTANT_TVA" bigint DEFAULT 0,
    "NUMERO_FACTURE" character varying(2048) DEFAULT ''::text,
    "IDSOURCE" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "INFOS" character varying(2048) DEFAULT ''::text,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID" integer NOT NULL
);


ALTER TABLE "OpenConcerto42"."SAISIE_ACHAT" OWNER TO openconcerto;

--
-- TOC entry 1014 (class 1259 OID 6915747)
-- Name: SAISIE_ACHAT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."SAISIE_ACHAT_ID_seq"
    START WITH 2
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."SAISIE_ACHAT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24929 (class 0 OID 0)
-- Dependencies: 1014
-- Name: SAISIE_ACHAT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."SAISIE_ACHAT_ID_seq" OWNED BY "OpenConcerto42"."SAISIE_ACHAT"."ID";


--
-- TOC entry 1015 (class 1259 OID 6915749)
-- Name: SAISIE_KM; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."SAISIE_KM" (
    "CREATION_DATE" timestamp without time zone,
    "ORDRE" numeric(16,8),
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "ID_MOUVEMENT" integer DEFAULT 1,
    "DATE" date,
    "ARCHIVE" integer DEFAULT 0,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_JOURNAL" integer DEFAULT 1,
    "NOM" character varying(2048) DEFAULT ''::text
);


ALTER TABLE "OpenConcerto42"."SAISIE_KM" OWNER TO openconcerto;

--
-- TOC entry 1016 (class 1259 OID 6915761)
-- Name: SAISIE_KM_ELEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."SAISIE_KM_ELEMENT" (
    "ID" integer NOT NULL,
    "CREDIT" bigint DEFAULT 0,
    "ORDRE" numeric(16,8),
    "NOM_ECRITURE" character varying(2048) DEFAULT ''::text,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "NUMERO" character varying(100) DEFAULT ''::character varying,
    "ID_ECRITURE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "NOM" character varying(2048) DEFAULT ''::text,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_SAISIE_KM" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "DEBIT" bigint DEFAULT 0,
    "NOM_PIECE" character varying(1024) DEFAULT ''::character varying NOT NULL,
    "ANALYTIQUE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "JOUR" integer DEFAULT 1 NOT NULL
);


ALTER TABLE "OpenConcerto42"."SAISIE_KM_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 1017 (class 1259 OID 6915780)
-- Name: SAISIE_KM_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."SAISIE_KM_ELEMENT_ID_seq"
    START WITH 2
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."SAISIE_KM_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24930 (class 0 OID 0)
-- Dependencies: 1017
-- Name: SAISIE_KM_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."SAISIE_KM_ELEMENT_ID_seq" OWNED BY "OpenConcerto42"."SAISIE_KM_ELEMENT"."ID";


--
-- TOC entry 1018 (class 1259 OID 6915782)
-- Name: SAISIE_KM_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."SAISIE_KM_ID_seq"
    START WITH 2
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."SAISIE_KM_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24931 (class 0 OID 0)
-- Dependencies: 1018
-- Name: SAISIE_KM_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."SAISIE_KM_ID_seq" OWNED BY "OpenConcerto42"."SAISIE_KM"."ID";


--
-- TOC entry 1019 (class 1259 OID 6915784)
-- Name: SAISIE_VENTE_COMPTOIR; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."SAISIE_VENTE_COMPTOIR" (
    "CREATION_DATE" timestamp without time zone,
    "ECHEANCE" integer DEFAULT 0,
    "ARCHIVE" integer DEFAULT 0,
    "DATE" date,
    "ID" integer NOT NULL,
    "ID_CLIENT" integer DEFAULT 0,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_TAXE" integer DEFAULT 1,
    "ORDRE" numeric(16,8),
    "ID_MOUVEMENT" integer DEFAULT 1,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_AVOIR_CLIENT" integer DEFAULT 1,
    "INFOS" character varying(2048) DEFAULT ''::text,
    "MONTANT_TTC" bigint DEFAULT 0,
    "MONTANT_HT" bigint DEFAULT 0,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_FOURNISSEUR" integer DEFAULT 1,
    "ID_MODE_REGLEMENT" integer DEFAULT 1,
    "MONTANT_SERVICE" bigint DEFAULT 0,
    "NOM" character varying(2048) DEFAULT ''::text,
    "ID_ARTICLE" integer DEFAULT 1,
    "ID_COMPTE_PCE_PRODUIT" integer DEFAULT 1,
    "ID_COMPTE_PCE_SERVICE" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."SAISIE_VENTE_COMPTOIR" OWNER TO openconcerto;

--
-- TOC entry 1020 (class 1259 OID 6915808)
-- Name: SAISIE_VENTE_COMPTOIR_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."SAISIE_VENTE_COMPTOIR_ID_seq"
    START WITH 2
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."SAISIE_VENTE_COMPTOIR_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24932 (class 0 OID 0)
-- Dependencies: 1020
-- Name: SAISIE_VENTE_COMPTOIR_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."SAISIE_VENTE_COMPTOIR_ID_seq" OWNED BY "OpenConcerto42"."SAISIE_VENTE_COMPTOIR"."ID";


--
-- TOC entry 1021 (class 1259 OID 6915810)
-- Name: SAISIE_VENTE_FACTURE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."SAISIE_VENTE_FACTURE" (
    "PREVISIONNELLE" boolean DEFAULT false,
    "ID_COMPTE_PCE_SERVICE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "POURCENT_ACOMPTE" real DEFAULT 0,
    "ID_COMMERCIAL" integer DEFAULT 1,
    "DATE_REGLEMENT" timestamp without time zone,
    "ID_ADRESSE" integer DEFAULT 1,
    "T_AVOIR_TTC" bigint DEFAULT 0,
    "PORT_HT" bigint DEFAULT 0,
    "COMPLEMENT" boolean DEFAULT false,
    "T_TTC" bigint DEFAULT 0,
    "ENVOYE_EN_AFFACTURAGE" boolean DEFAULT false,
    "T_TVA" bigint DEFAULT 0,
    "DATE_ENVOI_AFFACTURAGE" date,
    "T_POIDS" real DEFAULT 0,
    "DATE_ENVOI" timestamp without time zone,
    "ACOMPTE" boolean DEFAULT false,
    "ID_AVOIR_CLIENT" integer DEFAULT 1,
    "ID_DEVIS" integer DEFAULT 1,
    "INFOS" character varying(2048) DEFAULT ''::text,
    "RETOUR_NATEXIS" boolean DEFAULT false,
    "TYPE_INTERVENTION" character varying(2048) DEFAULT ''::text,
    "ID" integer NOT NULL,
    "REMISE_HT" bigint DEFAULT 0,
    "ID_MOUVEMENT" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "NUMERO" character varying(45) DEFAULT ''::character varying,
    "ARCHIVE" integer DEFAULT 0,
    "T_SERVICE" bigint DEFAULT 0,
    "ID_COMPTE_PCE_VENTE" integer DEFAULT 1,
    "ORDRE" numeric(16,8),
    "ID_MOIS_CCIP" integer DEFAULT 1,
    "ID_CONTACT" integer DEFAULT 1,
    "DATE" date,
    "ID_CLIENT" integer DEFAULT 1,
    "AFFACTURAGE" boolean DEFAULT false,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_MODE_REGLEMENT" integer DEFAULT 1,
    "NOM" character varying(250) DEFAULT ''::character varying,
    "T_HA" bigint DEFAULT 0,
    "REF_CLIENT" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_TAXE" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "COMPTE_SERVICE_AUTO" boolean DEFAULT false,
    "ID_REFERENCE_CLIENT" integer DEFAULT 1,
    "T_HT" bigint DEFAULT 0,
    "CONTROLE_TECHNIQUE" boolean DEFAULT false,
    "T_DEVISE" bigint DEFAULT 0,
    "ID_TARIF" integer DEFAULT 1,
    "ID_MODELE" integer DEFAULT 1,
    "ID_TAXE_PORT" integer DEFAULT 1,
    "POURCENT_FACTURABLE" numeric(16,8),
    "MONTANT_FACTURABLE" numeric(16,8),
    "SOLDE" boolean DEFAULT false,
    "PARTIAL" boolean DEFAULT false,
    "ID_ADRESSE_LIVRAISON" integer DEFAULT 1,
    "POURCENT_REMISE" numeric(12,8),
    "MONTANT_REMISE" numeric(16,8),
    "ID_CLIENT_DEPARTEMENT" integer DEFAULT 1,
    "CREATE_VIRTUAL_STOCK" boolean DEFAULT true NOT NULL,
    "SOUMIS_TIMBRE_FISCAL" boolean DEFAULT false,
    "TAUX_TIMBRE_FISCAL" numeric(16,4) DEFAULT 1,
    "TOTAL_TIMBRE_FISCAL" bigint DEFAULT 0,
    "NET_A_PAYER" bigint DEFAULT 0,
    "T_ECO_CONTRIBUTION" bigint DEFAULT 0,
    "T_ACOMPTE" bigint DEFAULT 0 NOT NULL,
    "ATTACHMENTS" integer DEFAULT 0 NOT NULL,
    "ID_SDD_MESSAGE" integer,
    "SDD_EndToEndId" character varying(35) DEFAULT ''::character varying NOT NULL,
    "FRAIS_DOCUMENT_HT" bigint DEFAULT 0 NOT NULL,
    "ID_TAXE_FRAIS_DOCUMENT" integer DEFAULT 1,
    "ID_CATEGORIE_COMPTABLE" integer DEFAULT 1,
    "ID_FACTURATION_COMMANDE_CLIENT" integer DEFAULT 1,
    "POURCENT_RG" numeric(6,2) DEFAULT 0,
    "MONTANT_INTERFEL_HT" bigint DEFAULT 0 NOT NULL
);


ALTER TABLE "OpenConcerto42"."SAISIE_VENTE_FACTURE" OWNER TO openconcerto;

--
-- TOC entry 1022 (class 1259 OID 6915877)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."SAISIE_VENTE_FACTURE_ELEMENT" (
    "T_PA_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "Q18" boolean DEFAULT false,
    "OBJET_INSPECTE" character varying(2048) DEFAULT ''::text,
    "INDICE_0" bigint DEFAULT 0,
    "LOCAL_OBJET_INSPECTE" character varying(2048) DEFAULT ''::text,
    "CREATION_DATE" timestamp without time zone,
    "SOUS_ACTIVITE" character varying(45) DEFAULT ''::character varying,
    "ID_METRIQUE_3" integer DEFAULT 1,
    "CODE_MISSION" character varying(45) DEFAULT ''::character varying,
    "TARIF_Q18_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "POURCENT_CCIP" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_CONTACT" integer DEFAULT 1,
    "VALEUR_METRIQUE_1" real DEFAULT 0,
    "VALEUR_METRIQUE_2" real DEFAULT 0,
    "ID_TAXE" integer DEFAULT 1,
    "PA_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "QTE_LIVREE" integer DEFAULT 0,
    "POURCENT_SERVICE" character varying(2048) DEFAULT ''::text,
    "POIDS" real DEFAULT 0,
    "LIVREE" boolean DEFAULT false,
    "SITUATION_ADMIN" character varying(2048) DEFAULT ''::text,
    "T_PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID" integer NOT NULL,
    "PRIX_METRIQUE_VT_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_HA_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "POURCENT_ACOMPTE" numeric(6,2) DEFAULT 100 NOT NULL,
    "T_PV_TTC" numeric(16,2) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_VT_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_METRIQUE_1" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "REFERENTIEL_INSPECTION" character varying(2048) DEFAULT ''::text,
    "MODIFICATION_DATE" timestamp without time zone,
    "MONTANT_INITIAL" numeric(16,6) DEFAULT 0 NOT NULL,
    "MONTANT_REVISABLE" boolean DEFAULT false,
    "PRIX_METRIQUE_HA_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_METRIQUE_2" integer DEFAULT 1,
    "INDICE_N" bigint DEFAULT 0,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_STYLE" integer DEFAULT 1,
    "REPARTITION_POURCENT" numeric(6,2) DEFAULT 0 NOT NULL,
    "DATE_FIN" timestamp without time zone,
    "PRIX_METRIQUE_VT_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "DATE" date,
    "VALEUR_METRIQUE_3" real DEFAULT 0,
    "QTE" integer DEFAULT 0,
    "SERVICE" boolean DEFAULT false,
    "POURCENT_REMISE" numeric(12,8) DEFAULT 0,
    "ID_MODE_VENTE_ARTICLE" integer DEFAULT 1,
    "ORDRE" numeric(16,8),
    "ACTIVITE" character varying(45) DEFAULT ''::character varying,
    "T_POIDS" real DEFAULT 0,
    "NOM" character varying(2048) DEFAULT ''::text,
    "INFOS_OBJET_INSPECTE" character varying(2048) DEFAULT ''::text,
    "PRIX_METRIQUE_HA_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "CODE" character varying(45) DEFAULT ''::character varying,
    "NOM_MISSION" character varying(256) DEFAULT ''::character varying,
    "ACOMPTE" boolean DEFAULT false,
    "ID_SAISIE_VENTE_FACTURE" integer DEFAULT 1,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_TICKET_CAISSE" integer DEFAULT 1,
    "QTE_ACHAT" integer DEFAULT 1,
    "CODE_DOUANIER" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_PAYS" integer DEFAULT 1,
    "ID_DEVISE" integer DEFAULT 1,
    "PV_U_DEVISE" numeric(16,6) DEFAULT 0 NOT NULL,
    "PV_T_DEVISE" numeric(16,6) DEFAULT 0 NOT NULL,
    "TAUX_DEVISE" numeric(16,8) DEFAULT 1,
    "DESCRIPTIF" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "MARGE_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "QTE_UNITAIRE" numeric(16,6) DEFAULT 1,
    "ID_UNITE_VENTE" integer DEFAULT 2,
    "ID_ARTICLE" integer DEFAULT 1,
    "POIDS_COLIS_NET" numeric(16,8) DEFAULT 0,
    "T_POIDS_COLIS_NET" numeric(16,8) DEFAULT 0,
    "NB_COLIS" integer DEFAULT 0,
    "MONTANT_FACTURABLE" numeric(16,8),
    "POURCENT_FACTURABLE" numeric(16,8),
    "MONTANT_REMISE" numeric(16,8),
    "ID_FAMILLE_ARTICLE" integer DEFAULT 1,
    "NIVEAU" integer DEFAULT 1 NOT NULL,
    "ID_ECO_CONTRIBUTION" integer DEFAULT 1,
    "ECO_CONTRIBUTION" numeric(16,2) DEFAULT 0,
    "T_ECO_CONTRIBUTION" numeric(16,2) DEFAULT 0,
    "ID_COMMANDE_CLIENT_ELEMENT" integer DEFAULT 1,
    "ID_DEPOT_STOCK" integer DEFAULT 1,
    "LONGUEUR" numeric(16,8),
    "LARGEUR" numeric(16,8),
    "HAUTEUR" numeric(16,8),
    "TARE" numeric(16,8),
    "T_POIDS_BRUT" numeric(16,8) DEFAULT 0,
    "ID_ARTICLE_DECLINAISON_TAILLE" integer DEFAULT 1,
    "ID_ARTICLE_DECLINAISON_COULEUR" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."SAISIE_VENTE_FACTURE_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 1023 (class 1259 OID 6915963)
-- Name: SAISIE_VENTE_FACTURE_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."SAISIE_VENTE_FACTURE_ELEMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."SAISIE_VENTE_FACTURE_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24933 (class 0 OID 0)
-- Dependencies: 1023
-- Name: SAISIE_VENTE_FACTURE_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."SAISIE_VENTE_FACTURE_ELEMENT_ID_seq" OWNED BY "OpenConcerto42"."SAISIE_VENTE_FACTURE_ELEMENT"."ID";


--
-- TOC entry 1024 (class 1259 OID 6915965)
-- Name: SAISIE_VENTE_FACTURE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."SAISIE_VENTE_FACTURE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."SAISIE_VENTE_FACTURE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24934 (class 0 OID 0)
-- Dependencies: 1024
-- Name: SAISIE_VENTE_FACTURE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."SAISIE_VENTE_FACTURE_ID_seq" OWNED BY "OpenConcerto42"."SAISIE_VENTE_FACTURE"."ID";


--
-- TOC entry 1025 (class 1259 OID 6915967)
-- Name: SALARIE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."SALARIE" (
    "ID_CUMULS_PAYE" integer DEFAULT 1,
    "PRENOM" character varying(45) DEFAULT ''::character varying,
    "ID_FICHE_PAYE" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "CREATION_DATE" timestamp without time zone,
    "ORDRE" numeric(16,8),
    "ID_INFOS_SALARIE_PAYE" integer DEFAULT 1,
    "ID_REGLEMENT_PAYE" integer DEFAULT 1,
    "ID_CUMULS_CONGES" integer DEFAULT 1,
    "DERNIER_MOIS" integer DEFAULT 0,
    "ID_VARIABLE_SALARIE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "NOM" character varying(45) DEFAULT ''::character varying,
    "DERNIERE_ANNEE" integer DEFAULT 0,
    "NOM_JEUNE_FILLE" character varying(45) DEFAULT ''::character varying,
    "ID_TITRE_PERSONNEL" integer DEFAULT 1,
    "CODE" character varying(45) DEFAULT ''::character varying,
    "ID_ETAT_CIVIL" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ATTACHMENTS" integer DEFAULT 0 NOT NULL,
    "ID_PAS" integer DEFAULT 1,
    "ID_USER_COMMON" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."SALARIE" OWNER TO openconcerto;

--
-- TOC entry 1026 (class 1259 OID 6915990)
-- Name: SALARIE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."SALARIE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."SALARIE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24935 (class 0 OID 0)
-- Dependencies: 1026
-- Name: SALARIE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."SALARIE_ID_seq" OWNED BY "OpenConcerto42"."SALARIE"."ID";


--
-- TOC entry 1027 (class 1259 OID 6915992)
-- Name: SEPA_DIRECT_DEBIT_MESSAGE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."SEPA_DIRECT_DEBIT_MESSAGE" (
    "ID" integer NOT NULL,
    "MessageIdentification" character varying(35) DEFAULT ''::character varying NOT NULL,
    "CreationDateTime" timestamp without time zone NOT NULL,
    "NumberOfTransactions" integer DEFAULT 0 NOT NULL,
    "ControlSum" numeric(16,6) DEFAULT 0 NOT NULL,
    "XML" text NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."SEPA_DIRECT_DEBIT_MESSAGE" OWNER TO openconcerto;

--
-- TOC entry 1028 (class 1259 OID 6916002)
-- Name: SEPA_DIRECT_DEBIT_MESSAGE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."SEPA_DIRECT_DEBIT_MESSAGE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."SEPA_DIRECT_DEBIT_MESSAGE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24936 (class 0 OID 0)
-- Dependencies: 1028
-- Name: SEPA_DIRECT_DEBIT_MESSAGE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."SEPA_DIRECT_DEBIT_MESSAGE_ID_seq" OWNED BY "OpenConcerto42"."SEPA_DIRECT_DEBIT_MESSAGE"."ID";


--
-- TOC entry 1029 (class 1259 OID 6916004)
-- Name: SEPA_MANDATE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."SEPA_MANDATE" (
    "ID" integer NOT NULL,
    "ID_CLIENT" integer DEFAULT 1,
    "MandateIdentification" character varying(35) DEFAULT ''::character varying NOT NULL,
    "DateOfSignature" date,
    "SequenceType" character varying(8) DEFAULT ''::character varying NOT NULL,
    "ACTIVE" boolean DEFAULT true NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."SEPA_MANDATE" OWNER TO openconcerto;

--
-- TOC entry 1030 (class 1259 OID 6916012)
-- Name: SEPA_MANDATE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."SEPA_MANDATE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."SEPA_MANDATE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24937 (class 0 OID 0)
-- Dependencies: 1030
-- Name: SEPA_MANDATE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."SEPA_MANDATE_ID_seq" OWNED BY "OpenConcerto42"."SEPA_MANDATE"."ID";


--
-- TOC entry 1031 (class 1259 OID 6916014)
-- Name: SITUATION_FAMILIALE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."SITUATION_FAMILIALE" (
    "CODE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ORDRE" numeric(16,8),
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID" integer NOT NULL,
    "CREATION_DATE" timestamp without time zone,
    "NOM" character varying(45) DEFAULT ''::character varying,
    "ARCHIVE" integer DEFAULT 0
);


ALTER TABLE "OpenConcerto42"."SITUATION_FAMILIALE" OWNER TO openconcerto;

--
-- TOC entry 1032 (class 1259 OID 6916022)
-- Name: SITUATION_FAMILIALE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."SITUATION_FAMILIALE_ID_seq"
    START WITH 7
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."SITUATION_FAMILIALE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24938 (class 0 OID 0)
-- Dependencies: 1032
-- Name: SITUATION_FAMILIALE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."SITUATION_FAMILIALE_ID_seq" OWNED BY "OpenConcerto42"."SITUATION_FAMILIALE"."ID";


--
-- TOC entry 1033 (class 1259 OID 6916024)
-- Name: STOCK; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."STOCK" (
    "QTE_REEL" real DEFAULT 0,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ORDRE" numeric(16,8),
    "ID" integer NOT NULL,
    "ARCHIVE" integer DEFAULT 0,
    "QTE_TH" real DEFAULT 0,
    "MODIFICATION_DATE" timestamp without time zone,
    "QTE_RECEPT_ATTENTE" real DEFAULT 0,
    "QTE_LIV_ATTENTE" real DEFAULT 0,
    "ID_DEPOT_STOCK" integer DEFAULT 1,
    "ID_ARTICLE" integer DEFAULT 1,
    "QTE_MIN" real DEFAULT 0
);


ALTER TABLE "OpenConcerto42"."STOCK" OWNER TO openconcerto;

--
-- TOC entry 1034 (class 1259 OID 6916037)
-- Name: STOCK_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."STOCK_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."STOCK_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24939 (class 0 OID 0)
-- Dependencies: 1034
-- Name: STOCK_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."STOCK_ID_seq" OWNED BY "OpenConcerto42"."STOCK"."ID";


--
-- TOC entry 1035 (class 1259 OID 6916039)
-- Name: STYLE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."STYLE" (
    "ID_STYLE" integer NOT NULL,
    "ARCHIVE" integer DEFAULT 0,
    "NOM" character varying(2048) DEFAULT ''::text,
    "CODE" character varying(2048) DEFAULT ''::text
);


ALTER TABLE "OpenConcerto42"."STYLE" OWNER TO openconcerto;

--
-- TOC entry 1036 (class 1259 OID 6916048)
-- Name: STYLE_ID_STYLE_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."STYLE_ID_STYLE_seq"
    START WITH 5
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."STYLE_ID_STYLE_seq" OWNER TO openconcerto;

--
-- TOC entry 24940 (class 0 OID 0)
-- Dependencies: 1036
-- Name: STYLE_ID_STYLE_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."STYLE_ID_STYLE_seq" OWNED BY "OpenConcerto42"."STYLE"."ID_STYLE";


--
-- TOC entry 1037 (class 1259 OID 6916050)
-- Name: TARIF; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TARIF" (
    "ID" integer NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_DEVISE" integer DEFAULT 1,
    "ID_TAXE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto42"."TARIF" OWNER TO openconcerto;

--
-- TOC entry 1038 (class 1259 OID 6916058)
-- Name: TARIF_ARTICLE_CLIENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TARIF_ARTICLE_CLIENT" (
    "ID" integer NOT NULL,
    "ID_ARTICLE" integer DEFAULT 1,
    "ID_CLIENT" integer DEFAULT 1,
    "QUANTITE" numeric(16,3) DEFAULT 1 NOT NULL,
    "POURCENT_REMISE" numeric(16,3),
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."TARIF_ARTICLE_CLIENT" OWNER TO openconcerto;

--
-- TOC entry 1039 (class 1259 OID 6916065)
-- Name: TARIF_ARTICLE_CLIENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TARIF_ARTICLE_CLIENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TARIF_ARTICLE_CLIENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24941 (class 0 OID 0)
-- Dependencies: 1039
-- Name: TARIF_ARTICLE_CLIENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TARIF_ARTICLE_CLIENT_ID_seq" OWNED BY "OpenConcerto42"."TARIF_ARTICLE_CLIENT"."ID";


--
-- TOC entry 1040 (class 1259 OID 6916067)
-- Name: TARIF_FAMILLE_ARTICLE_CLIENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TARIF_FAMILLE_ARTICLE_CLIENT" (
    "ID" integer NOT NULL,
    "ID_FAMILLE_ARTICLE" integer DEFAULT 1,
    "ID_CLIENT" integer DEFAULT 1,
    "QUANTITE" numeric(16,3) DEFAULT 1 NOT NULL,
    "POURCENT_REMISE" numeric(16,3),
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."TARIF_FAMILLE_ARTICLE_CLIENT" OWNER TO openconcerto;

--
-- TOC entry 1041 (class 1259 OID 6916074)
-- Name: TARIF_FAMILLE_ARTICLE_CLIENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TARIF_FAMILLE_ARTICLE_CLIENT_ID_seq"
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TARIF_FAMILLE_ARTICLE_CLIENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24942 (class 0 OID 0)
-- Dependencies: 1041
-- Name: TARIF_FAMILLE_ARTICLE_CLIENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TARIF_FAMILLE_ARTICLE_CLIENT_ID_seq" OWNED BY "OpenConcerto42"."TARIF_FAMILLE_ARTICLE_CLIENT"."ID";


--
-- TOC entry 1042 (class 1259 OID 6916076)
-- Name: TARIF_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TARIF_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TARIF_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24943 (class 0 OID 0)
-- Dependencies: 1042
-- Name: TARIF_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TARIF_ID_seq" OWNED BY "OpenConcerto42"."TARIF"."ID";


--
-- TOC entry 1043 (class 1259 OID 6916078)
-- Name: TARIF_PROMOTION; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TARIF_PROMOTION" (
    "ID" integer NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "START" date,
    "END" date,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."TARIF_PROMOTION" OWNER TO openconcerto;

--
-- TOC entry 1044 (class 1259 OID 6916083)
-- Name: TARIF_PROMOTION_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TARIF_PROMOTION_ID_seq"
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TARIF_PROMOTION_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24944 (class 0 OID 0)
-- Dependencies: 1044
-- Name: TARIF_PROMOTION_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TARIF_PROMOTION_ID_seq" OWNED BY "OpenConcerto42"."TARIF_PROMOTION"."ID";


--
-- TOC entry 1045 (class 1259 OID 6916085)
-- Name: TARIF_QUANTITE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TARIF_QUANTITE" (
    "ID" integer NOT NULL,
    "ID_ARTICLE" integer DEFAULT 1,
    "QUANTITE" numeric(16,3) DEFAULT 1 NOT NULL,
    "POURCENT_REMISE" numeric(16,3),
    "PRIX_METRIQUE_VT_1" numeric(16,6),
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto42"."TARIF_QUANTITE" OWNER TO openconcerto;

--
-- TOC entry 1046 (class 1259 OID 6916092)
-- Name: TARIF_QUANTITE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TARIF_QUANTITE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TARIF_QUANTITE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24945 (class 0 OID 0)
-- Dependencies: 1046
-- Name: TARIF_QUANTITE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TARIF_QUANTITE_ID_seq" OWNED BY "OpenConcerto42"."TARIF_QUANTITE"."ID";


--
-- TOC entry 1047 (class 1259 OID 6916094)
-- Name: TAXE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TAXE" (
    "CODE" character varying(2048) DEFAULT ''::text,
    "ARCHIVE" integer DEFAULT 0,
    "ID_TAXE" integer NOT NULL,
    "CREATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ORDRE" numeric(16,8),
    "ID_COMPTE_PCE" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "TAUX" real DEFAULT 0,
    "NOM" character varying(2048) DEFAULT ''::text,
    "ID_COMPTE_PCE_COLLECTE" integer DEFAULT 1,
    "ID_COMPTE_PCE_DED" integer DEFAULT 1,
    "DEFAULT" boolean DEFAULT false,
    "ID_COMPTE_PCE_VENTE" integer DEFAULT 1,
    "ID_COMPTE_PCE_VENTE_SERVICE" integer DEFAULT 1,
    "ID_COMPTE_PCE_COLLECTE_INTRA" integer DEFAULT 1,
    "ID_COMPTE_PCE_DED_INTRA" integer DEFAULT 1,
    "DEFAULT_ACHAT" boolean DEFAULT false NOT NULL
);


ALTER TABLE "OpenConcerto42"."TAXE" OWNER TO openconcerto;

--
-- TOC entry 1048 (class 1259 OID 6916115)
-- Name: TAXE_CATEGORIE_COMPTABLE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TAXE_CATEGORIE_COMPTABLE" (
    "ID" integer NOT NULL,
    "ID_CATEGORIE_COMPTABLE" integer DEFAULT 1,
    "ID_TAXE" integer DEFAULT 1,
    "ID_COMPTE_PCE_VENTE" integer DEFAULT 1,
    "ID_COMPTE_PCE_ACHAT" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."TAXE_CATEGORIE_COMPTABLE" OWNER TO openconcerto;

--
-- TOC entry 1049 (class 1259 OID 6916123)
-- Name: TAXE_CATEGORIE_COMPTABLE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TAXE_CATEGORIE_COMPTABLE_ID_seq"
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TAXE_CATEGORIE_COMPTABLE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24946 (class 0 OID 0)
-- Dependencies: 1049
-- Name: TAXE_CATEGORIE_COMPTABLE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TAXE_CATEGORIE_COMPTABLE_ID_seq" OWNED BY "OpenConcerto42"."TAXE_CATEGORIE_COMPTABLE"."ID";


--
-- TOC entry 1050 (class 1259 OID 6916125)
-- Name: TAXE_COMPLEMENTAIRE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TAXE_COMPLEMENTAIRE" (
    "ID" integer NOT NULL,
    "ID_COMPTE_PCE_PRODUITS" integer DEFAULT 1,
    "ID_COMPTE_PCE" integer DEFAULT 1,
    "POURCENT" numeric(16,6) DEFAULT 0 NOT NULL,
    "CODE" character varying(25) DEFAULT ''::character varying NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto42"."TAXE_COMPLEMENTAIRE" OWNER TO openconcerto;

--
-- TOC entry 1051 (class 1259 OID 6916135)
-- Name: TAXE_COMPLEMENTAIRE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TAXE_COMPLEMENTAIRE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TAXE_COMPLEMENTAIRE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24947 (class 0 OID 0)
-- Dependencies: 1051
-- Name: TAXE_COMPLEMENTAIRE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TAXE_COMPLEMENTAIRE_ID_seq" OWNED BY "OpenConcerto42"."TAXE_COMPLEMENTAIRE"."ID";


--
-- TOC entry 1052 (class 1259 OID 6916137)
-- Name: TAXE_ID_TAXE_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TAXE_ID_TAXE_seq"
    START WITH 6
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TAXE_ID_TAXE_seq" OWNER TO openconcerto;

--
-- TOC entry 24948 (class 0 OID 0)
-- Dependencies: 1052
-- Name: TAXE_ID_TAXE_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TAXE_ID_TAXE_seq" OWNED BY "OpenConcerto42"."TAXE"."ID_TAXE";


--
-- TOC entry 1469 (class 1259 OID 6940837)
-- Name: TAXE_INTERFEL; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TAXE_INTERFEL" (
    "ID" integer NOT NULL,
    "NOM" character varying(128) DEFAULT ''::character varying NOT NULL,
    "TAUX" numeric(16,6) DEFAULT 1 NOT NULL,
    "ID_COMPTE_PCE_PRODUITS" integer DEFAULT 1,
    "ID_COMPTE_PCE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."TAXE_INTERFEL" OWNER TO openconcerto;

--
-- TOC entry 1468 (class 1259 OID 6940835)
-- Name: TAXE_INTERFEL_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TAXE_INTERFEL_ID_seq"
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TAXE_INTERFEL_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24949 (class 0 OID 0)
-- Dependencies: 1468
-- Name: TAXE_INTERFEL_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TAXE_INTERFEL_ID_seq" OWNED BY "OpenConcerto42"."TAXE_INTERFEL"."ID";


--
-- TOC entry 1053 (class 1259 OID 6916139)
-- Name: TICKET_CAISSE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TICKET_CAISSE" (
    "DATE" timestamp without time zone,
    "ID_COMMERCIAL" integer DEFAULT 1,
    "ID_CLIENT" integer DEFAULT 1,
    "NUMERO" character varying(2048) DEFAULT ''::text,
    "TOTAL_TVA" bigint DEFAULT 0,
    "ORDRE" numeric(16,8) DEFAULT 0,
    "TOTAL_HT" bigint DEFAULT 0,
    "TOTAL_TTC" bigint DEFAULT 0,
    "NOM" character varying(2048) DEFAULT ''::text,
    "ID_CAISSE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "ID" integer NOT NULL,
    "ID_MOUVEMENT" integer DEFAULT 1,
    "FILE_HASH" character varying(128) DEFAULT NULL::character varying,
    "FILE_HASH_PREVIOUS" character varying(128) DEFAULT NULL::character varying
);


ALTER TABLE "OpenConcerto42"."TICKET_CAISSE" OWNER TO openconcerto;

--
-- TOC entry 1054 (class 1259 OID 6916158)
-- Name: TICKET_CAISSE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TICKET_CAISSE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TICKET_CAISSE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24950 (class 0 OID 0)
-- Dependencies: 1054
-- Name: TICKET_CAISSE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TICKET_CAISSE_ID_seq" OWNED BY "OpenConcerto42"."TICKET_CAISSE"."ID";


--
-- TOC entry 1055 (class 1259 OID 6916160)
-- Name: TITRE_PERSONNEL; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TITRE_PERSONNEL" (
    "CREATION_DATE" timestamp without time zone,
    "ID" integer NOT NULL,
    "SEXE_M" boolean DEFAULT true,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "CODE" character varying(8) DEFAULT ''::character varying,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ORDRE" numeric(16,8),
    "NOM" character varying(45) DEFAULT ''::character varying,
    "MODIFICATION_DATE" timestamp without time zone,
    "ARCHIVE" integer DEFAULT 0,
    "OBSOLETE" boolean DEFAULT false NOT NULL
);


ALTER TABLE "OpenConcerto42"."TITRE_PERSONNEL" OWNER TO openconcerto;

--
-- TOC entry 1056 (class 1259 OID 6916170)
-- Name: TITRE_PERSONNEL_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TITRE_PERSONNEL_ID_seq"
    START WITH 5
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TITRE_PERSONNEL_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24951 (class 0 OID 0)
-- Dependencies: 1056
-- Name: TITRE_PERSONNEL_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TITRE_PERSONNEL_ID_seq" OWNED BY "OpenConcerto42"."TITRE_PERSONNEL"."ID";


--
-- TOC entry 1057 (class 1259 OID 6916172)
-- Name: TRANSFERT_STOCK; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TRANSFERT_STOCK" (
    "ID" integer NOT NULL,
    "DATE" timestamp without time zone,
    "ID_ARTICLE" integer DEFAULT 1,
    "ID_DEPOT_STOCK_SOURCE" integer DEFAULT 1,
    "ID_DEPOT_STOCK_DEST" integer DEFAULT 1,
    "QUANTITE" numeric(16,6) DEFAULT 1 NOT NULL,
    "NUMEROS_SERIE" character varying(50000) DEFAULT ''::character varying NOT NULL,
    "NUMEROS_LOT" character varying(50000) DEFAULT ''::character varying NOT NULL,
    "CONTEXTE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto42"."TRANSFERT_STOCK" OWNER TO openconcerto;

--
-- TOC entry 1058 (class 1259 OID 6916186)
-- Name: TRANSFERT_STOCK_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TRANSFERT_STOCK_ID_seq"
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TRANSFERT_STOCK_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24952 (class 0 OID 0)
-- Dependencies: 1058
-- Name: TRANSFERT_STOCK_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TRANSFERT_STOCK_ID_seq" OWNED BY "OpenConcerto42"."TRANSFERT_STOCK"."ID";


--
-- TOC entry 1059 (class 1259 OID 6916188)
-- Name: TR_BON_DE_LIVRAISON; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TR_BON_DE_LIVRAISON" (
    "ID" integer NOT NULL,
    "ID_BON_DE_LIVRAISON" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric,
    "ID_SAISIE_VENTE_FACTURE" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."TR_BON_DE_LIVRAISON" OWNER TO openconcerto;

--
-- TOC entry 1060 (class 1259 OID 6916195)
-- Name: TR_BON_DE_LIVRAISON_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TR_BON_DE_LIVRAISON_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TR_BON_DE_LIVRAISON_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24953 (class 0 OID 0)
-- Dependencies: 1060
-- Name: TR_BON_DE_LIVRAISON_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TR_BON_DE_LIVRAISON_ID_seq" OWNED BY "OpenConcerto42"."TR_BON_DE_LIVRAISON"."ID";


--
-- TOC entry 1061 (class 1259 OID 6916197)
-- Name: TR_BON_RECEPTION; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TR_BON_RECEPTION" (
    "ID" integer NOT NULL,
    "ID_BON_RECEPTION" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric,
    "ID_SAISIE_ACHAT" integer DEFAULT 1,
    "ID_FACTURE_FOURNISSEUR" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."TR_BON_RECEPTION" OWNER TO openconcerto;

--
-- TOC entry 1062 (class 1259 OID 6916205)
-- Name: TR_BON_RECEPTION_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TR_BON_RECEPTION_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TR_BON_RECEPTION_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24954 (class 0 OID 0)
-- Dependencies: 1062
-- Name: TR_BON_RECEPTION_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TR_BON_RECEPTION_ID_seq" OWNED BY "OpenConcerto42"."TR_BON_RECEPTION"."ID";


--
-- TOC entry 1063 (class 1259 OID 6916207)
-- Name: TR_COMMANDE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TR_COMMANDE" (
    "ID" integer NOT NULL,
    "ID_COMMANDE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric,
    "ID_SAISIE_ACHAT" integer DEFAULT 1,
    "ID_BON_RECEPTION" integer DEFAULT 1,
    "ID_FACTURE_FOURNISSEUR" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."TR_COMMANDE" OWNER TO openconcerto;

--
-- TOC entry 1064 (class 1259 OID 6916216)
-- Name: TR_COMMANDE_CLIENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TR_COMMANDE_CLIENT" (
    "ID" integer NOT NULL,
    "ID_COMMANDE_CLIENT" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric,
    "ID_SAISIE_VENTE_FACTURE" integer DEFAULT 1,
    "ID_BON_DE_LIVRAISON" integer DEFAULT 1,
    "ID_COMMANDE" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."TR_COMMANDE_CLIENT" OWNER TO openconcerto;

--
-- TOC entry 1065 (class 1259 OID 6916225)
-- Name: TR_COMMANDE_CLIENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TR_COMMANDE_CLIENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TR_COMMANDE_CLIENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24955 (class 0 OID 0)
-- Dependencies: 1065
-- Name: TR_COMMANDE_CLIENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TR_COMMANDE_CLIENT_ID_seq" OWNED BY "OpenConcerto42"."TR_COMMANDE_CLIENT"."ID";


--
-- TOC entry 1066 (class 1259 OID 6916227)
-- Name: TR_COMMANDE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TR_COMMANDE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TR_COMMANDE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24956 (class 0 OID 0)
-- Dependencies: 1066
-- Name: TR_COMMANDE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TR_COMMANDE_ID_seq" OWNED BY "OpenConcerto42"."TR_COMMANDE"."ID";


--
-- TOC entry 1067 (class 1259 OID 6916229)
-- Name: TR_DEVIS; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TR_DEVIS" (
    "ID" integer NOT NULL,
    "ID_DEVIS" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric,
    "ID_SAISIE_VENTE_FACTURE" integer DEFAULT 1,
    "ID_COMMANDE_CLIENT" integer DEFAULT 1,
    "ID_COMMANDE" integer DEFAULT 1,
    "ID_BON_DE_LIVRAISON" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."TR_DEVIS" OWNER TO openconcerto;

--
-- TOC entry 1068 (class 1259 OID 6916239)
-- Name: TR_DEVIS_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TR_DEVIS_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TR_DEVIS_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24957 (class 0 OID 0)
-- Dependencies: 1068
-- Name: TR_DEVIS_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TR_DEVIS_ID_seq" OWNED BY "OpenConcerto42"."TR_DEVIS"."ID";


--
-- TOC entry 1069 (class 1259 OID 6916241)
-- Name: TR_SAISIE_ACHAT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TR_SAISIE_ACHAT" (
    "ID" integer NOT NULL,
    "ID_SAISIE_ACHAT" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric,
    "ID_AVOIR_FOURNISSEUR" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."TR_SAISIE_ACHAT" OWNER TO openconcerto;

--
-- TOC entry 1070 (class 1259 OID 6916248)
-- Name: TR_SAISIE_ACHAT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TR_SAISIE_ACHAT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TR_SAISIE_ACHAT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24958 (class 0 OID 0)
-- Dependencies: 1070
-- Name: TR_SAISIE_ACHAT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TR_SAISIE_ACHAT_ID_seq" OWNED BY "OpenConcerto42"."TR_SAISIE_ACHAT"."ID";


--
-- TOC entry 1071 (class 1259 OID 6916250)
-- Name: TR_SAISIE_VENTE_FACTURE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TR_SAISIE_VENTE_FACTURE" (
    "ID" integer NOT NULL,
    "ID_SAISIE_VENTE_FACTURE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric,
    "ID_BON_DE_LIVRAISON" integer DEFAULT 1,
    "ID_AVOIR_CLIENT" integer DEFAULT 1,
    "ID_COMMANDE" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto42"."TR_SAISIE_VENTE_FACTURE" OWNER TO openconcerto;

--
-- TOC entry 1072 (class 1259 OID 6916259)
-- Name: TR_SAISIE_VENTE_FACTURE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TR_SAISIE_VENTE_FACTURE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TR_SAISIE_VENTE_FACTURE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24959 (class 0 OID 0)
-- Dependencies: 1072
-- Name: TR_SAISIE_VENTE_FACTURE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TR_SAISIE_VENTE_FACTURE_ID_seq" OWNED BY "OpenConcerto42"."TR_SAISIE_VENTE_FACTURE"."ID";


--
-- TOC entry 1073 (class 1259 OID 6916261)
-- Name: TYPE_COMPTE_PCG; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TYPE_COMPTE_PCG" (
    "NOM" character varying(2048) DEFAULT ''::text,
    "ID" integer NOT NULL,
    "RACINE" boolean DEFAULT false
);


ALTER TABLE "OpenConcerto42"."TYPE_COMPTE_PCG" OWNER TO openconcerto;

--
-- TOC entry 1074 (class 1259 OID 6916269)
-- Name: TYPE_COMPTE_PCG_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TYPE_COMPTE_PCG_ID_seq"
    START WITH 8
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TYPE_COMPTE_PCG_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24960 (class 0 OID 0)
-- Dependencies: 1074
-- Name: TYPE_COMPTE_PCG_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TYPE_COMPTE_PCG_ID_seq" OWNED BY "OpenConcerto42"."TYPE_COMPTE_PCG"."ID";


--
-- TOC entry 1075 (class 1259 OID 6916271)
-- Name: TYPE_LETTRE_RELANCE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TYPE_LETTRE_RELANCE" (
    "ID" integer NOT NULL,
    "ORDRE" numeric(16,8),
    "NOM" character varying(45) DEFAULT ''::character varying,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "MODELE" character varying(2048) DEFAULT ''::text,
    "MODIFICATION_DATE" timestamp without time zone,
    "CREATION_DATE" timestamp without time zone
);


ALTER TABLE "OpenConcerto42"."TYPE_LETTRE_RELANCE" OWNER TO openconcerto;

--
-- TOC entry 1076 (class 1259 OID 6916282)
-- Name: TYPE_LETTRE_RELANCE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TYPE_LETTRE_RELANCE_ID_seq"
    START WITH 3
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TYPE_LETTRE_RELANCE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24961 (class 0 OID 0)
-- Dependencies: 1076
-- Name: TYPE_LETTRE_RELANCE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TYPE_LETTRE_RELANCE_ID_seq" OWNED BY "OpenConcerto42"."TYPE_LETTRE_RELANCE"."ID";


--
-- TOC entry 1077 (class 1259 OID 6916284)
-- Name: TYPE_REGLEMENT; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."TYPE_REGLEMENT" (
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_COMPTE_PCE_FOURN" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "ECHEANCE" boolean DEFAULT false,
    "ID" integer NOT NULL,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_COMPTE_PCE_CLIENT" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "NOM" character varying(2048) DEFAULT ''::text,
    "ORDRE" numeric(16,8),
    "ARCHIVE" integer DEFAULT 0,
    "COMPTANT" boolean DEFAULT false,
    "SEPA" boolean DEFAULT false NOT NULL
);


ALTER TABLE "OpenConcerto42"."TYPE_REGLEMENT" OWNER TO openconcerto;

--
-- TOC entry 1078 (class 1259 OID 6916299)
-- Name: TYPE_REGLEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."TYPE_REGLEMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."TYPE_REGLEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24962 (class 0 OID 0)
-- Dependencies: 1078
-- Name: TYPE_REGLEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."TYPE_REGLEMENT_ID_seq" OWNED BY "OpenConcerto42"."TYPE_REGLEMENT"."ID";


--
-- TOC entry 1079 (class 1259 OID 6916301)
-- Name: UNITE_VENTE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."UNITE_VENTE" (
    "ID" integer NOT NULL,
    "CODE" character varying(32) DEFAULT ''::character varying NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "A_LA_PIECE" boolean DEFAULT false,
    "INFOS" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto42"."UNITE_VENTE" OWNER TO openconcerto;

--
-- TOC entry 1080 (class 1259 OID 6916313)
-- Name: UNITE_VENTE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."UNITE_VENTE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."UNITE_VENTE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24963 (class 0 OID 0)
-- Dependencies: 1080
-- Name: UNITE_VENTE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."UNITE_VENTE_ID_seq" OWNED BY "OpenConcerto42"."UNITE_VENTE"."ID";


--
-- TOC entry 1081 (class 1259 OID 6916315)
-- Name: VARIABLE_SALARIE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."VARIABLE_SALARIE" (
    "HEURE_TRAV" real DEFAULT 0,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "CONGES_PRIS" real DEFAULT 0,
    "ID" integer NOT NULL,
    "MODIFICATION_DATE" timestamp without time zone,
    "HEURE_150" real DEFAULT 0,
    "ORDRE" numeric(16,8),
    "ARCHIVE" integer DEFAULT 0,
    "CREATION_DATE" timestamp without time zone,
    "HEURE_200" real DEFAULT 0,
    "HEURE_110" real DEFAULT 0,
    "HEURE_ABS" real DEFAULT 0,
    "HEURE_125" real DEFAULT 0,
    "HEURE_110_DEFAULT_VAL" real DEFAULT 0,
    "CONGES_PRIS_DEFAULT_VAL" real DEFAULT 0,
    "HEURE_150_DEFAULT_VAL" real DEFAULT 0,
    "HEURE_ABS_DEFAULT_VAL" real DEFAULT 0,
    "HEURE_125_DEFAULT_VAL" real DEFAULT 0,
    "HEURE_200_DEFAULT_VAL" real DEFAULT 0,
    "IJSS_BRUT" real DEFAULT 0,
    "IJSS_BRUT_DEFAULT_VAL" real DEFAULT 0,
    "IJSS_NET" real DEFAULT 0,
    "IJSS_NET_DEFAULT_VAL" real DEFAULT 0,
    "FRAIS_PRO" real DEFAULT 0,
    "FRAIS_PRO_DEFAULT_VAL" real DEFAULT 0,
    "RBT_TRANSPORT" real DEFAULT 0,
    "RBT_TRANSPORT_DEFAULT_VAL" real DEFAULT 0,
    "RBT_TRANSPORT_CUMUL_VAL" real DEFAULT 0,
    "HEURE_110_CUMUL_VAL" real DEFAULT 0,
    "HEURE_125_CUMUL_VAL" real DEFAULT 0,
    "FRAIS_PRO_CUMUL_VAL" real DEFAULT 0,
    "IJSS_NET_CUMUL_VAL" real DEFAULT 0,
    "HEURE_ABS_CUMUL_VAL" real DEFAULT 0,
    "HEURE_200_CUMUL_VAL" real DEFAULT 0,
    "HEURE_150_CUMUL_VAL" real DEFAULT 0,
    "CONGES_PRIS_CUMUL_VAL" real DEFAULT 0,
    "IJSS_BRUT_CUMUL_VAL" real DEFAULT 0,
    "HEURE_TRAV_CUMUL_VAL" real DEFAULT 0,
    "HEURE_CHOM" real DEFAULT 0,
    "HEURE_CHOM_DEFAULT_VAL" real DEFAULT 0,
    "HEURE_CHOM_CUMUL_VAL" real DEFAULT 0,
    "TAUX_CHOM" real DEFAULT 0,
    "TAUX_CHOM_DEFAULT_VAL" real DEFAULT 0,
    "TAUX_CHOM_CUMUL_VAL" real DEFAULT 0,
    "HEURE_INDEM" real DEFAULT 0,
    "HEURE_INDEM_DEFAULT_VAL" real DEFAULT 0,
    "HEURE_INDEM_CUMUL_VAL" real DEFAULT 0,
    "ECRETEMENT_CSG" real DEFAULT 0,
    "ECRETEMENT_CSG_DEFAULT_VAL" real DEFAULT 0,
    "ECRETEMENT_CSG_CUMUL_VAL" real DEFAULT 0,
    "IJSS_BRUT_SECU_PAS" real DEFAULT 0,
    "IJSS_BRUT_SECU_PAS_DEFAULT_VAL" real DEFAULT 0,
    "IJSS_BRUT_SECU_PAS_CUMUL_VAL" real DEFAULT 0
);


ALTER TABLE "OpenConcerto42"."VARIABLE_SALARIE" OWNER TO openconcerto;

--
-- TOC entry 1082 (class 1259 OID 6916368)
-- Name: VARIABLE_SALARIE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."VARIABLE_SALARIE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."VARIABLE_SALARIE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24964 (class 0 OID 0)
-- Dependencies: 1082
-- Name: VARIABLE_SALARIE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."VARIABLE_SALARIE_ID_seq" OWNED BY "OpenConcerto42"."VARIABLE_SALARIE"."ID";


--
-- TOC entry 1083 (class 1259 OID 6916370)
-- Name: VILLE; Type: TABLE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE TABLE "OpenConcerto42"."VILLE" (
    "ID" integer NOT NULL,
    "X_LAMBERT" bigint DEFAULT 0,
    "Y_LAMBERT" bigint DEFAULT 0,
    "POPULATION" bigint DEFAULT 0,
    "NOM" character varying(512) DEFAULT ''::character varying NOT NULL,
    "CODE_POSTAL" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto42"."VILLE" OWNER TO openconcerto;

--
-- TOC entry 1084 (class 1259 OID 6916383)
-- Name: VILLE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto42; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto42"."VILLE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto42"."VILLE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24965 (class 0 OID 0)
-- Dependencies: 1084
-- Name: VILLE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto42; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto42"."VILLE_ID_seq" OWNED BY "OpenConcerto42"."VILLE"."ID";


--
-- TOC entry 1085 (class 1259 OID 6916385)
-- Name: ACOMPTE; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ACOMPTE" (
    "ID_SALARIE" integer DEFAULT 1,
    "ID_MOUVEMENT" integer DEFAULT 1,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "MONTANT" real DEFAULT 0,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "ID" integer NOT NULL,
    "CREATION_DATE" timestamp without time zone,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto48"."ACOMPTE" OWNER TO openconcerto;

--
-- TOC entry 1086 (class 1259 OID 6916394)
-- Name: ACOMPTE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ACOMPTE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ACOMPTE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24966 (class 0 OID 0)
-- Dependencies: 1086
-- Name: ACOMPTE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ACOMPTE_ID_seq" OWNED BY "OpenConcerto48"."ACOMPTE"."ID";


--
-- TOC entry 1087 (class 1259 OID 6916396)
-- Name: ADRESSE; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ADRESSE" (
    "RUE" character varying(2048) DEFAULT ''::text,
    "CEDEX" integer,
    "DEST" character varying(2048) DEFAULT ''::text,
    "ID_ADRESSE" integer NOT NULL,
    "ORDRE" numeric(16,8),
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "PAYS" character varying(100) DEFAULT ''::character varying,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_CLIENT" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "HAS_CEDEX" boolean DEFAULT false,
    "VILLE" character varying(2048) DEFAULT ''::text,
    "CODE_POSTAL" character varying(256) DEFAULT ''::character varying,
    "PROVINCE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "LIBELLE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "TYPE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "EMAIL_CONTACT" character varying(256) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE "OpenConcerto48"."ADRESSE" OWNER TO openconcerto;

--
-- TOC entry 1088 (class 1259 OID 6916416)
-- Name: ADRESSE_ID_ADRESSE_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ADRESSE_ID_ADRESSE_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ADRESSE_ID_ADRESSE_seq" OWNER TO openconcerto;

--
-- TOC entry 24967 (class 0 OID 0)
-- Dependencies: 1088
-- Name: ADRESSE_ID_ADRESSE_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ADRESSE_ID_ADRESSE_seq" OWNED BY "OpenConcerto48"."ADRESSE"."ID_ADRESSE";


--
-- TOC entry 1089 (class 1259 OID 6916418)
-- Name: AGENCE; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."AGENCE" (
    "ID" integer NOT NULL,
    "DESIGNATION" character varying(256) DEFAULT ''::character varying NOT NULL,
    "TEL_1" character varying(256) DEFAULT ''::character varying NOT NULL,
    "EMAIL" character varying(256) DEFAULT ''::character varying NOT NULL,
    "FAX" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_CLIENT" integer DEFAULT 1,
    "ID_ADRESSE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto48"."AGENCE" OWNER TO openconcerto;

--
-- TOC entry 1090 (class 1259 OID 6916431)
-- Name: AGENCE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."AGENCE_ID_seq"
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."AGENCE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24968 (class 0 OID 0)
-- Dependencies: 1090
-- Name: AGENCE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."AGENCE_ID_seq" OWNED BY "OpenConcerto48"."AGENCE"."ID";


--
-- TOC entry 1091 (class 1259 OID 6916433)
-- Name: ARRET_CHOMAGE_INTEMPERIE; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ARRET_CHOMAGE_INTEMPERIE" (
    "ID" integer NOT NULL,
    "ID_INFOS_SALARIE_PAYE" integer DEFAULT 1,
    "ID_CODE_AMENAGEMENT_PARTIEL" integer DEFAULT 1,
    "ID_CODE_SUSPENSION" integer DEFAULT 1,
    "DATE_DEBUT_SUSPENSION" date,
    "DATE_FIN_SUSPENSION" date,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto48"."ARRET_CHOMAGE_INTEMPERIE" OWNER TO openconcerto;

--
-- TOC entry 1092 (class 1259 OID 6916440)
-- Name: ARRET_CHOMAGE_INTEMPERIE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ARRET_CHOMAGE_INTEMPERIE_ID_seq"
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ARRET_CHOMAGE_INTEMPERIE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24969 (class 0 OID 0)
-- Dependencies: 1092
-- Name: ARRET_CHOMAGE_INTEMPERIE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ARRET_CHOMAGE_INTEMPERIE_ID_seq" OWNED BY "OpenConcerto48"."ARRET_CHOMAGE_INTEMPERIE"."ID";


--
-- TOC entry 1093 (class 1259 OID 6916442)
-- Name: ARRET_TRAVAIL; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ARRET_TRAVAIL" (
    "ID" integer NOT NULL,
    "ID_SALARIE" integer DEFAULT 1,
    "DATE_DERNIER_JOUR_TRAV" timestamp without time zone,
    "DATE_FIN_PREV" timestamp without time zone,
    "SUBROGATION" boolean DEFAULT false NOT NULL,
    "DATE_DEBUT_SUBROGATION" timestamp without time zone,
    "DATE_FIN_SUBROGATION" timestamp without time zone,
    "ID_MOTIF_ARRET_TRAVAIL" integer DEFAULT 1,
    "ID_MOTIF_REPRISE_ARRET_TRAVAIL" integer DEFAULT 1,
    "DATE_REPRISE" timestamp without time zone,
    "DATE_ACCIDENT" timestamp without time zone,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric,
    "DATE" timestamp without time zone,
    "COMMENTAIRES" character varying(2048) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE "OpenConcerto48"."ARRET_TRAVAIL" OWNER TO openconcerto;

--
-- TOC entry 1094 (class 1259 OID 6916455)
-- Name: ARRET_TRAVAIL_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ARRET_TRAVAIL_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ARRET_TRAVAIL_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24970 (class 0 OID 0)
-- Dependencies: 1094
-- Name: ARRET_TRAVAIL_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ARRET_TRAVAIL_ID_seq" OWNED BY "OpenConcerto48"."ARRET_TRAVAIL"."ID";


--
-- TOC entry 1095 (class 1259 OID 6916457)
-- Name: ARTICLE; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ARTICLE" (
    "ID_METRIQUE_3" integer DEFAULT 1,
    "ID_FAMILLE_ARTICLE" integer DEFAULT 1,
    "ID_TAXE" integer DEFAULT 1,
    "VALEUR_METRIQUE_3" real DEFAULT 0,
    "ID_METRIQUE_1" integer DEFAULT 1,
    "ID_METRIQUE_2" integer DEFAULT 1,
    "CREATION_AUTO" boolean DEFAULT false,
    "ID" integer NOT NULL,
    "ORDRE" numeric(16,8),
    "PV_TTC" numeric(16,2) DEFAULT 0 NOT NULL,
    "ID_STOCK" integer DEFAULT 1,
    "VALEUR_METRIQUE_2" real DEFAULT 0,
    "VALEUR_METRIQUE_1" real DEFAULT 0,
    "CREATION_DATE" timestamp without time zone,
    "PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "PA_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_VT_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "ARCHIVE" integer DEFAULT 0,
    "CODE" character varying(45) DEFAULT ''::text,
    "PRIX_METRIQUE_VT_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_VT_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "SERVICE" boolean DEFAULT false,
    "PRIX_METRIQUE_HA_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "NOM" character varying(2048) DEFAULT ''::text,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "PRIX_METRIQUE_HA_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "MODIFICATION_DATE" timestamp without time zone,
    "PRIX_METRIQUE_HA_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "OBSOLETE" boolean DEFAULT false,
    "POIDS" real DEFAULT 0,
    "ID_MODE_VENTE_ARTICLE" integer DEFAULT 1,
    "INFOS" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "QTE_ACHAT" integer DEFAULT 1,
    "DESCRIPTIF" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "CODE_BARRE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "GESTION_STOCK" boolean DEFAULT true,
    "CODE_DOUANIER" character varying(256) DEFAULT ''::character varying NOT NULL,
    "QTE_MIN" integer DEFAULT 1,
    "ID_DEVISE" integer DEFAULT 1,
    "ID_FOURNISSEUR" integer DEFAULT 1,
    "PV_U_DEVISE" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_DEVISE_HA" integer DEFAULT 1,
    "PA_DEVISE" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_PAYS" integer DEFAULT 1,
    "ID_UNITE_VENTE" integer DEFAULT 2,
    "ID_COMPTE_PCE" integer DEFAULT 1,
    "ID_COMPTE_PCE_ACHAT" integer DEFAULT 1,
    "SKU" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_ECO_CONTRIBUTION" integer DEFAULT 1,
    "ID_TAXE_COMPLEMENTAIRE" integer DEFAULT 1,
    "ATTACHMENTS" integer DEFAULT 0 NOT NULL,
    "ID_FABRICANT" integer DEFAULT 1,
    "TARE" numeric(16,8) DEFAULT 0,
    "IFCO" integer DEFAULT 0 NOT NULL,
    "MASQUE_CAISSE" boolean DEFAULT false NOT NULL,
    "ADDITIONAL_TICKET_COPY" boolean DEFAULT false NOT NULL,
    "MATIERE" character varying(128) DEFAULT ''::character varying NOT NULL,
    "QTE_UNITAIRE" numeric(16,6) DEFAULT 1 NOT NULL,
    "ID_COUT_REVIENT" integer DEFAULT 1,
    "MARGE_WITH_COUT_REVIENT" boolean DEFAULT false NOT NULL,
    "AUTO_PRIX_ACHAT_NOMENCLATURE" boolean DEFAULT false NOT NULL,
    "ID_DEPOT_STOCK" integer DEFAULT 1,
    "DLC" date,
    "LONGUEUR" numeric(16,8),
    "LARGEUR" numeric(16,8),
    "HAUTEUR" numeric(16,8),
    "AUTO_PRIX_MIN_VENTE_NOMENCLATURE" boolean DEFAULT false NOT NULL,
    "DERNIER_DATE_ACHAT" date,
    "OPTION" boolean DEFAULT false NOT NULL,
    "VIRTUEL" boolean DEFAULT false NOT NULL,
    "ID_ARTICLE_VIRTUEL_PERE" integer DEFAULT 1,
    "ID_ARTICLE_DECLINAISON_TAILLE" integer DEFAULT 1,
    "ID_ARTICLE_DECLINAISON_COULEUR" integer DEFAULT 1,
    "NUMERO_LOT_REQUIS" boolean DEFAULT false NOT NULL,
    "NUMERO_SERIE_REQUIS" boolean DEFAULT false NOT NULL,
    "DLC_REQUIS" boolean DEFAULT false NOT NULL,
    "DLUO_REQUIS" boolean DEFAULT false NOT NULL,
    "ID_TAXE_INTERFEL" integer
);


ALTER TABLE "OpenConcerto48"."ARTICLE" OWNER TO openconcerto;

--
-- TOC entry 1096 (class 1259 OID 6916532)
-- Name: ARTICLE_CATEGORIE_COMPTABLE; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ARTICLE_CATEGORIE_COMPTABLE" (
    "ID" integer NOT NULL,
    "ID_CATEGORIE_COMPTABLE" integer DEFAULT 1,
    "ID_ARTICLE" integer DEFAULT 1,
    "ID_TAXE_ACHAT" integer DEFAULT 1,
    "ID_TAXE_VENTE" integer DEFAULT 1,
    "ID_COMPTE_PCE_VENTE" integer DEFAULT 1,
    "ID_COMPTE_PCE_ACHAT" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto48"."ARTICLE_CATEGORIE_COMPTABLE" OWNER TO openconcerto;

--
-- TOC entry 1097 (class 1259 OID 6916542)
-- Name: ARTICLE_CATEGORIE_COMPTABLE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ARTICLE_CATEGORIE_COMPTABLE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ARTICLE_CATEGORIE_COMPTABLE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24971 (class 0 OID 0)
-- Dependencies: 1097
-- Name: ARTICLE_CATEGORIE_COMPTABLE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ARTICLE_CATEGORIE_COMPTABLE_ID_seq" OWNED BY "OpenConcerto48"."ARTICLE_CATEGORIE_COMPTABLE"."ID";


--
-- TOC entry 1098 (class 1259 OID 6916544)
-- Name: ARTICLE_CODE_CLIENT; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ARTICLE_CODE_CLIENT" (
    "ID" integer NOT NULL,
    "NOM" character varying(512) DEFAULT ''::character varying NOT NULL,
    "CODE" character varying(512) DEFAULT ''::character varying NOT NULL,
    "ID_CLIENT" integer DEFAULT 1,
    "ID_ARTICLE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto48"."ARTICLE_CODE_CLIENT" OWNER TO openconcerto;

--
-- TOC entry 1099 (class 1259 OID 6916555)
-- Name: ARTICLE_CODE_CLIENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ARTICLE_CODE_CLIENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ARTICLE_CODE_CLIENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24972 (class 0 OID 0)
-- Dependencies: 1099
-- Name: ARTICLE_CODE_CLIENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ARTICLE_CODE_CLIENT_ID_seq" OWNED BY "OpenConcerto48"."ARTICLE_CODE_CLIENT"."ID";


--
-- TOC entry 1100 (class 1259 OID 6916557)
-- Name: ARTICLE_DECLINAISON_COULEUR; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ARTICLE_DECLINAISON_COULEUR" (
    "ID" integer NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto48"."ARTICLE_DECLINAISON_COULEUR" OWNER TO openconcerto;

--
-- TOC entry 1101 (class 1259 OID 6916562)
-- Name: ARTICLE_DECLINAISON_COULEUR_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ARTICLE_DECLINAISON_COULEUR_ID_seq"
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ARTICLE_DECLINAISON_COULEUR_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24973 (class 0 OID 0)
-- Dependencies: 1101
-- Name: ARTICLE_DECLINAISON_COULEUR_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ARTICLE_DECLINAISON_COULEUR_ID_seq" OWNED BY "OpenConcerto48"."ARTICLE_DECLINAISON_COULEUR"."ID";


--
-- TOC entry 1102 (class 1259 OID 6916564)
-- Name: ARTICLE_DECLINAISON_TAILLE; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ARTICLE_DECLINAISON_TAILLE" (
    "ID" integer NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto48"."ARTICLE_DECLINAISON_TAILLE" OWNER TO openconcerto;

--
-- TOC entry 1103 (class 1259 OID 6916569)
-- Name: ARTICLE_DECLINAISON_TAILLE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ARTICLE_DECLINAISON_TAILLE_ID_seq"
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ARTICLE_DECLINAISON_TAILLE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24974 (class 0 OID 0)
-- Dependencies: 1103
-- Name: ARTICLE_DECLINAISON_TAILLE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ARTICLE_DECLINAISON_TAILLE_ID_seq" OWNED BY "OpenConcerto48"."ARTICLE_DECLINAISON_TAILLE"."ID";


--
-- TOC entry 1104 (class 1259 OID 6916571)
-- Name: ARTICLE_DESIGNATION; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ARTICLE_DESIGNATION" (
    "ID" integer NOT NULL,
    "ID_ARTICLE" integer DEFAULT 1,
    "ID_LANGUE" integer DEFAULT 1,
    "NOM" character varying(1024) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto48"."ARTICLE_DESIGNATION" OWNER TO openconcerto;

--
-- TOC entry 1105 (class 1259 OID 6916582)
-- Name: ARTICLE_DESIGNATION_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ARTICLE_DESIGNATION_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ARTICLE_DESIGNATION_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24975 (class 0 OID 0)
-- Dependencies: 1105
-- Name: ARTICLE_DESIGNATION_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ARTICLE_DESIGNATION_ID_seq" OWNED BY "OpenConcerto48"."ARTICLE_DESIGNATION"."ID";


--
-- TOC entry 1106 (class 1259 OID 6916584)
-- Name: ARTICLE_ELEMENT; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ARTICLE_ELEMENT" (
    "ID" integer NOT NULL,
    "ID_ARTICLE" integer DEFAULT 1,
    "ID_ARTICLE_PARENT" integer DEFAULT 1,
    "QTE" integer DEFAULT 1 NOT NULL,
    "QTE_UNITAIRE" numeric(16,6) DEFAULT 1 NOT NULL,
    "ID_UNITE_VENTE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto48"."ARTICLE_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 1107 (class 1259 OID 6916594)
-- Name: ARTICLE_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ARTICLE_ELEMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ARTICLE_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24976 (class 0 OID 0)
-- Dependencies: 1107
-- Name: ARTICLE_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ARTICLE_ELEMENT_ID_seq" OWNED BY "OpenConcerto48"."ARTICLE_ELEMENT"."ID";


--
-- TOC entry 1108 (class 1259 OID 6916596)
-- Name: ARTICLE_FOURNISSEUR; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ARTICLE_FOURNISSEUR" (
    "ID" integer NOT NULL,
    "CODE" character varying(45) DEFAULT ''::character varying NOT NULL,
    "CODE_BARRE" character varying(45) DEFAULT ''::character varying NOT NULL,
    "CODE_DOUANIER" character varying(45) DEFAULT ''::character varying NOT NULL,
    "NOM" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "DESCRIPTIF" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "INFOS" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "PRIX_METRIQUE_HA_1" numeric(16,6) DEFAULT 0,
    "PRIX_METRIQUE_HA_2" numeric(16,8) DEFAULT 0,
    "PRIX_METRIQUE_HA_3" numeric(16,8) DEFAULT 0,
    "PRIX_METRIQUE_VT_1" numeric(16,8) DEFAULT 0,
    "PRIX_METRIQUE_VT_2" numeric(16,8) DEFAULT 0,
    "PRIX_METRIQUE_VT_3" numeric(16,8) DEFAULT 0,
    "ID_METRIQUE_1" integer DEFAULT 1,
    "ID_METRIQUE_2" integer DEFAULT 1,
    "ID_METRIQUE_3" integer DEFAULT 1,
    "PA_DEVISE" numeric(16,8) DEFAULT 0,
    "PV_U_DEVISE" numeric(16,8) DEFAULT 0,
    "PA_HT" numeric(16,8) DEFAULT 0,
    "PV_HT" numeric(16,8) DEFAULT 0,
    "PV_TTC" numeric(16,2) DEFAULT 0,
    "ID_TAXE" integer DEFAULT 1,
    "ID_FAMILLE_ARTICLE_FOURNISSEUR" integer DEFAULT 1,
    "ID_MODE_VENTE_ARTICLE" integer DEFAULT 1,
    "ID_FOURNISSEUR" integer DEFAULT 1,
    "ID_PAYS" integer DEFAULT 1,
    "ID_DEVISE" integer DEFAULT 1,
    "ID_DEVISE_HA" integer DEFAULT 1,
    "ID_UNITE_VENTE" integer DEFAULT 1,
    "ID_COMPTE_PCE" integer DEFAULT 1,
    "ID_COMPTE_PCE_ACHAT" integer DEFAULT 1,
    "ID_ARTICLE" integer DEFAULT 1,
    "POIDS" real DEFAULT 0,
    "VALEUR_METRIQUE_1" real DEFAULT 0,
    "VALEUR_METRIQUE_2" real DEFAULT 0,
    "VALEUR_METRIQUE_3" real DEFAULT 0,
    "SERVICE" boolean DEFAULT false NOT NULL,
    "OBSOLETE" boolean DEFAULT false NOT NULL,
    "GESTION_STOCK" boolean DEFAULT false NOT NULL,
    "QTE_ACHAT" integer DEFAULT 1 NOT NULL,
    "QTE_MIN" integer DEFAULT 1 NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric,
    "ID_FAMILLE_ARTICLE" integer DEFAULT 1,
    "QTE_UNITAIRE" numeric(16,6) DEFAULT 1 NOT NULL
);


ALTER TABLE "OpenConcerto48"."ARTICLE_FOURNISSEUR" OWNER TO openconcerto;

--
-- TOC entry 1109 (class 1259 OID 6916646)
-- Name: ARTICLE_FOURNISSEUR_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ARTICLE_FOURNISSEUR_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ARTICLE_FOURNISSEUR_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24977 (class 0 OID 0)
-- Dependencies: 1109
-- Name: ARTICLE_FOURNISSEUR_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ARTICLE_FOURNISSEUR_ID_seq" OWNED BY "OpenConcerto48"."ARTICLE_FOURNISSEUR"."ID";


--
-- TOC entry 1110 (class 1259 OID 6916648)
-- Name: ARTICLE_FOURNISSEUR_SECONDAIRE; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ARTICLE_FOURNISSEUR_SECONDAIRE" (
    "ID" integer NOT NULL,
    "ID_ARTICLE" integer DEFAULT 1,
    "ID_FOURNISSEUR" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto48"."ARTICLE_FOURNISSEUR_SECONDAIRE" OWNER TO openconcerto;

--
-- TOC entry 1111 (class 1259 OID 6916654)
-- Name: ARTICLE_FOURNISSEUR_SECONDAIRE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ARTICLE_FOURNISSEUR_SECONDAIRE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ARTICLE_FOURNISSEUR_SECONDAIRE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24978 (class 0 OID 0)
-- Dependencies: 1111
-- Name: ARTICLE_FOURNISSEUR_SECONDAIRE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ARTICLE_FOURNISSEUR_SECONDAIRE_ID_seq" OWNED BY "OpenConcerto48"."ARTICLE_FOURNISSEUR_SECONDAIRE"."ID";


--
-- TOC entry 1112 (class 1259 OID 6916656)
-- Name: ARTICLE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ARTICLE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ARTICLE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24979 (class 0 OID 0)
-- Dependencies: 1112
-- Name: ARTICLE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ARTICLE_ID_seq" OWNED BY "OpenConcerto48"."ARTICLE"."ID";


--
-- TOC entry 1113 (class 1259 OID 6916658)
-- Name: ARTICLE_TARIF; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ARTICLE_TARIF" (
    "ID" integer NOT NULL,
    "ID_DEVISE" integer DEFAULT 1,
    "ID_TAXE" integer DEFAULT 1,
    "ID_TARIF" integer DEFAULT 1,
    "ID_ARTICLE" integer DEFAULT 1,
    "PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "PV_TTC" numeric(16,2) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_VT_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_VT_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_VT_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric,
    "POURCENT_REMISE" numeric(16,6) DEFAULT 0 NOT NULL,
    "QTE" integer DEFAULT 1 NOT NULL
);


ALTER TABLE "OpenConcerto48"."ARTICLE_TARIF" OWNER TO openconcerto;

--
-- TOC entry 1114 (class 1259 OID 6916674)
-- Name: ARTICLE_TARIF_FOURNISSEUR; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ARTICLE_TARIF_FOURNISSEUR" (
    "ID" integer NOT NULL,
    "ID_ARTICLE" integer DEFAULT 1,
    "ID_FOURNISSEUR" integer DEFAULT 1,
    "REF_FOURNISSEUR" character varying(500) DEFAULT ''::character varying NOT NULL,
    "TYPE_REAPPRO" character varying(256) DEFAULT ''::character varying NOT NULL,
    "CONDITIONS" character varying(1024) DEFAULT ''::character varying NOT NULL,
    "ACHETEUR" character varying(256) DEFAULT ''::character varying NOT NULL,
    "CODE_PAYS_ORIGINE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "PRIX_ACHAT_DEVISE_F" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_ACHAT" numeric(16,6) DEFAULT 0 NOT NULL,
    "QTE" integer DEFAULT 1 NOT NULL,
    "DATE_PRIX" timestamp without time zone,
    "DELAI_REAPPRO" integer DEFAULT 0 NOT NULL,
    "DELAI_TRANSPORT" integer DEFAULT 0 NOT NULL,
    "PRIORITE" integer DEFAULT 0 NOT NULL,
    "COEF_PRIX_MINI" numeric(16,2) DEFAULT 0 NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto48"."ARTICLE_TARIF_FOURNISSEUR" OWNER TO openconcerto;

--
-- TOC entry 1115 (class 1259 OID 6916695)
-- Name: ARTICLE_TARIF_FOURNISSEUR_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ARTICLE_TARIF_FOURNISSEUR_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ARTICLE_TARIF_FOURNISSEUR_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24980 (class 0 OID 0)
-- Dependencies: 1115
-- Name: ARTICLE_TARIF_FOURNISSEUR_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ARTICLE_TARIF_FOURNISSEUR_ID_seq" OWNED BY "OpenConcerto48"."ARTICLE_TARIF_FOURNISSEUR"."ID";


--
-- TOC entry 1116 (class 1259 OID 6916697)
-- Name: ARTICLE_TARIF_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ARTICLE_TARIF_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ARTICLE_TARIF_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24981 (class 0 OID 0)
-- Dependencies: 1116
-- Name: ARTICLE_TARIF_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ARTICLE_TARIF_ID_seq" OWNED BY "OpenConcerto48"."ARTICLE_TARIF"."ID";


--
-- TOC entry 1117 (class 1259 OID 6916699)
-- Name: ARTICLE_TARIF_PROMOTION; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ARTICLE_TARIF_PROMOTION" (
    "ID" integer NOT NULL,
    "ID_DEVISE" integer DEFAULT 1,
    "ID_TAXE" integer DEFAULT 1,
    "ID_TARIF_PROMOTION" integer DEFAULT 1,
    "ID_ARTICLE" integer DEFAULT 1,
    "QTE" integer DEFAULT 1 NOT NULL,
    "PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "PV_TTC" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_VT_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_VT_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_VT_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8)
);


ALTER TABLE "OpenConcerto48"."ARTICLE_TARIF_PROMOTION" OWNER TO openconcerto;

--
-- TOC entry 1118 (class 1259 OID 6916713)
-- Name: ARTICLE_TARIF_PROMOTION_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ARTICLE_TARIF_PROMOTION_ID_seq"
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ARTICLE_TARIF_PROMOTION_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24982 (class 0 OID 0)
-- Dependencies: 1118
-- Name: ARTICLE_TARIF_PROMOTION_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ARTICLE_TARIF_PROMOTION_ID_seq" OWNED BY "OpenConcerto48"."ARTICLE_TARIF_PROMOTION"."ID";


--
-- TOC entry 1119 (class 1259 OID 6916715)
-- Name: ASSOCIATION_ANALYTIQUE; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ASSOCIATION_ANALYTIQUE" (
    "ID" integer NOT NULL,
    "ID_ECRITURE" integer DEFAULT 1,
    "ID_SAISIE_KM_ELEMENT" integer DEFAULT 1,
    "ID_POSTE_ANALYTIQUE" integer DEFAULT 1,
    "POURCENT" numeric(16,8) DEFAULT 100,
    "MONTANT" bigint DEFAULT 0,
    "GESTION_AUTO" boolean DEFAULT false NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto48"."ASSOCIATION_ANALYTIQUE" OWNER TO openconcerto;

--
-- TOC entry 1120 (class 1259 OID 6916726)
-- Name: ASSOCIATION_ANALYTIQUE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ASSOCIATION_ANALYTIQUE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ASSOCIATION_ANALYTIQUE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24983 (class 0 OID 0)
-- Dependencies: 1120
-- Name: ASSOCIATION_ANALYTIQUE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ASSOCIATION_ANALYTIQUE_ID_seq" OWNED BY "OpenConcerto48"."ASSOCIATION_ANALYTIQUE"."ID";


--
-- TOC entry 1121 (class 1259 OID 6916728)
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ASSOCIATION_COMPTE_ANALYTIQUE" (
    "ORDRE" numeric(16,8),
    "ID_AXE_ANALYTIQUE" integer DEFAULT 1,
    "ID_COMPTE_PCE" integer DEFAULT 1,
    "ID_REPARTITION_ANALYTIQUE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID" integer NOT NULL,
    "ARCHIVE" integer DEFAULT 0,
    "CREATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto48"."ASSOCIATION_COMPTE_ANALYTIQUE" OWNER TO openconcerto;

--
-- TOC entry 1122 (class 1259 OID 6916737)
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ASSOCIATION_COMPTE_ANALYTIQUE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ASSOCIATION_COMPTE_ANALYTIQUE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24984 (class 0 OID 0)
-- Dependencies: 1122
-- Name: ASSOCIATION_COMPTE_ANALYTIQUE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ASSOCIATION_COMPTE_ANALYTIQUE_ID_seq" OWNED BY "OpenConcerto48"."ASSOCIATION_COMPTE_ANALYTIQUE"."ID";


--
-- TOC entry 1123 (class 1259 OID 6916739)
-- Name: ATTACHMENT; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."ATTACHMENT" (
    "ID" integer NOT NULL,
    "SOURCE_TABLE" character varying(128) DEFAULT ''::character varying NOT NULL,
    "SOURCE_ID" integer DEFAULT 0 NOT NULL,
    "NAME" character varying(256) DEFAULT ''::character varying NOT NULL,
    "MIMETYPE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "FILENAME" character varying(256) DEFAULT ''::character varying NOT NULL,
    "FILESIZE" bigint DEFAULT 0 NOT NULL,
    "STORAGE_PATH" character varying(256) DEFAULT ''::character varying NOT NULL,
    "STORAGE_FILENAME" character varying(256) DEFAULT ''::character varying NOT NULL,
    "DIRECTORY" character varying(256) DEFAULT ''::character varying NOT NULL,
    "THUMBNAIL" character varying(256) DEFAULT ''::character varying NOT NULL,
    "THUMBNAIL_WIDTH" integer DEFAULT 32 NOT NULL,
    "THUMBNAIL_HEIGHT" integer DEFAULT 32 NOT NULL,
    "TAG" character varying(128) DEFAULT ''::character varying NOT NULL,
    "VERSION" integer DEFAULT 0 NOT NULL,
    "HASH" character varying(32) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric,
    "ID_PARENT" integer DEFAULT 1,
    "ENCRYPTED" boolean DEFAULT false NOT NULL
);


ALTER TABLE "OpenConcerto48"."ATTACHMENT" OWNER TO openconcerto;

--
-- TOC entry 1124 (class 1259 OID 6916764)
-- Name: ATTACHMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."ATTACHMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."ATTACHMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24985 (class 0 OID 0)
-- Dependencies: 1124
-- Name: ATTACHMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."ATTACHMENT_ID_seq" OWNED BY "OpenConcerto48"."ATTACHMENT"."ID";


--
-- TOC entry 1125 (class 1259 OID 6916766)
-- Name: AVOIR_CLIENT; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."AVOIR_CLIENT" (
    "MONTANT_TTC" bigint DEFAULT 0,
    "ENVOYE_EN_AFFACTURAGE" boolean DEFAULT false,
    "ID_COMPTE_PCE_SERVICE" integer DEFAULT 1,
    "ID_CONTACT" integer DEFAULT 1,
    "MONTANT_RESTANT" bigint DEFAULT 0,
    "AFFACTURAGE" boolean DEFAULT false,
    "MODIFICATION_DATE" timestamp without time zone,
    "MONTANT_TVA" bigint DEFAULT 0,
    "MONTANT_HT" bigint DEFAULT 0,
    "REMISE_HT" bigint DEFAULT 0,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "SOLDE" boolean DEFAULT false,
    "ID_COMMERCIAL" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "ID" integer NOT NULL,
    "DATE_ENVOI_AFFACTURAGE" date,
    "MONTANT_SOLDE" bigint DEFAULT 0,
    "MOTIF" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ORDRE" numeric(16,8),
    "ID_MODE_REGLEMENT" integer DEFAULT 1,
    "ID_TAXE" integer DEFAULT 1,
    "A_DEDUIRE" boolean DEFAULT false,
    "PORT_HT" bigint DEFAULT 0,
    "ID_SAISIE_VENTE_FACTURE" integer DEFAULT 1,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "MONTANT_SERVICE" bigint DEFAULT 0,
    "ID_CLIENT" integer DEFAULT 1,
    "DATE" date,
    "NUMERO" character varying(45) DEFAULT ''::character varying,
    "AFFACTURE" boolean DEFAULT false,
    "COMPTE_SERVICE_AUTO" boolean DEFAULT false,
    "ID_MOUVEMENT" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "ID_ADRESSE" integer DEFAULT 1,
    "NOM" character varying(100) DEFAULT ''::character varying,
    "T_DEVISE" bigint DEFAULT 0,
    "T_POIDS" real DEFAULT 0,
    "ID_TARIF" integer DEFAULT 1,
    "ID_MODELE" integer DEFAULT 1,
    "INFOS" character varying(1024) DEFAULT ''::character varying NOT NULL,
    "ID_ADRESSE_LIVRAISON" integer DEFAULT 1,
    "POURCENT_REMISE" numeric(12,8),
    "MONTANT_REMISE" numeric(16,8),
    "ID_CLIENT_DEPARTEMENT" integer DEFAULT 1,
    "T_ECO_CONTRIBUTION" bigint DEFAULT 0,
    "ID_CATEGORIE_COMPTABLE" integer DEFAULT 1,
    "ID_TAXE_PORT" integer DEFAULT 1,
    "MONTANT_INTERFEL_HT" bigint DEFAULT 0 NOT NULL
);


ALTER TABLE "OpenConcerto48"."AVOIR_CLIENT" OWNER TO openconcerto;

--
-- TOC entry 1126 (class 1259 OID 6916811)
-- Name: AVOIR_CLIENT_ELEMENT; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."AVOIR_CLIENT_ELEMENT" (
    "CODE" character varying(45) DEFAULT ''::character varying,
    "MODIFICATION_DATE" timestamp without time zone,
    "PRIX_METRIQUE_HA_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "POURCENT_SERVICE" character varying(2048) DEFAULT ''::text,
    "CODE_MISSION" character varying(45) DEFAULT ''::character varying,
    "SOUS_ACTIVITE" character varying(45) DEFAULT ''::character varying,
    "NOM" character varying(2048) DEFAULT ''::text,
    "ID_METRIQUE_1" integer DEFAULT 1,
    "DATE_FIN" timestamp without time zone,
    "Q18" boolean DEFAULT false,
    "ID_STYLE" integer DEFAULT 1,
    "INFOS_OBJET_INSPECTE" character varying(2048) DEFAULT ''::text,
    "REFERENTIEL_INSPECTION" character varying(2048) DEFAULT ''::text,
    "OBJET_INSPECTE" character varying(2048) DEFAULT ''::text,
    "PRIX_METRIQUE_VT_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "DATE" timestamp without time zone,
    "PRIX_METRIQUE_HA_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "SERVICE" boolean DEFAULT false,
    "MONTANT_REVISABLE" boolean DEFAULT false,
    "PRIX_METRIQUE_VT_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_MODE_VENTE_ARTICLE" integer DEFAULT 1,
    "ID_AVOIR_CLIENT" integer DEFAULT 1,
    "VALEUR_METRIQUE_2" real DEFAULT 0,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "SITUATION_ADMIN" character varying(2048) DEFAULT ''::text,
    "PRIX_METRIQUE_HA_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "POURCENT_ACOMPTE" numeric(6,2) DEFAULT 100 NOT NULL,
    "MONTANT_INITIAL" numeric(16,6) DEFAULT 0 NOT NULL,
    "PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "INDICE_0" bigint DEFAULT 0,
    "ACTIVITE" character varying(45) DEFAULT ''::character varying,
    "ID_METRIQUE_3" integer DEFAULT 1,
    "ID_CONTACT" integer DEFAULT 1,
    "QTE" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "ID_TAXE" integer DEFAULT 1,
    "ID_METRIQUE_2" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0,
    "VALEUR_METRIQUE_1" real DEFAULT 0,
    "CREATION_DATE" timestamp without time zone,
    "POURCENT_REMISE" numeric(12,8) DEFAULT 0,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "LOCAL_OBJET_INSPECTE" character varying(2048) DEFAULT ''::text,
    "ORDRE" numeric(16,8) DEFAULT 0,
    "NOM_MISSION" character varying(256) DEFAULT ''::character varying,
    "T_PA_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "TARIF_Q18_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "POIDS" real DEFAULT 0,
    "INDICE_N" bigint DEFAULT 0,
    "PRIX_METRIQUE_VT_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "T_PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "ACOMPTE" boolean DEFAULT false,
    "PA_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "T_POIDS" real DEFAULT 0,
    "T_PV_TTC" numeric(16,2) DEFAULT 0 NOT NULL,
    "VALEUR_METRIQUE_3" real DEFAULT 0,
    "QTE_ACHAT" integer DEFAULT 1,
    "CODE_DOUANIER" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_PAYS" integer DEFAULT 1,
    "ID_DEVISE" integer DEFAULT 1,
    "PV_U_DEVISE" numeric(16,6) DEFAULT 0 NOT NULL,
    "PV_T_DEVISE" numeric(16,6) DEFAULT 0 NOT NULL,
    "TAUX_DEVISE" numeric(16,8) DEFAULT 1,
    "DESCRIPTIF" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "MARGE_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "QTE_UNITAIRE" numeric(16,6) DEFAULT 1,
    "ID_UNITE_VENTE" integer DEFAULT 2,
    "ID_ARTICLE" integer DEFAULT 1,
    "POIDS_COLIS_NET" numeric(16,8) DEFAULT 0,
    "T_POIDS_COLIS_NET" numeric(16,8) DEFAULT 0,
    "NB_COLIS" integer DEFAULT 0,
    "MONTANT_REMISE" numeric(16,8),
    "ID_FAMILLE_ARTICLE" integer DEFAULT 1,
    "NIVEAU" integer DEFAULT 1 NOT NULL,
    "RETOUR_STOCK" boolean DEFAULT false NOT NULL,
    "ID_ECO_CONTRIBUTION" integer DEFAULT 1,
    "ECO_CONTRIBUTION" numeric(16,2) DEFAULT 0,
    "T_ECO_CONTRIBUTION" numeric(16,2) DEFAULT 0,
    "ID_DEPOT_STOCK" integer DEFAULT 1,
    "LONGUEUR" numeric(16,8),
    "LARGEUR" numeric(16,8),
    "HAUTEUR" numeric(16,8),
    "TARE" numeric(16,8),
    "T_POIDS_BRUT" numeric(16,8) DEFAULT 0,
    "ID_ARTICLE_DECLINAISON_TAILLE" integer DEFAULT 1,
    "ID_ARTICLE_DECLINAISON_COULEUR" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto48"."AVOIR_CLIENT_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 1127 (class 1259 OID 6916893)
-- Name: AVOIR_CLIENT_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."AVOIR_CLIENT_ELEMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."AVOIR_CLIENT_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24986 (class 0 OID 0)
-- Dependencies: 1127
-- Name: AVOIR_CLIENT_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."AVOIR_CLIENT_ELEMENT_ID_seq" OWNED BY "OpenConcerto48"."AVOIR_CLIENT_ELEMENT"."ID";


--
-- TOC entry 1128 (class 1259 OID 6916895)
-- Name: AVOIR_CLIENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."AVOIR_CLIENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."AVOIR_CLIENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24987 (class 0 OID 0)
-- Dependencies: 1128
-- Name: AVOIR_CLIENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."AVOIR_CLIENT_ID_seq" OWNED BY "OpenConcerto48"."AVOIR_CLIENT"."ID";


--
-- TOC entry 1129 (class 1259 OID 6916897)
-- Name: AVOIR_FOURNISSEUR; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."AVOIR_FOURNISSEUR" (
    "ARCHIVE" integer DEFAULT 0,
    "MODIFICATION_DATE" timestamp without time zone,
    "IMMO" boolean DEFAULT false,
    "ORDRE" numeric(16,8) DEFAULT 0,
    "A_DEDUIRE" boolean DEFAULT false,
    "NOM" character varying(2048) DEFAULT ''::text,
    "CREATION_DATE" timestamp without time zone,
    "ID_MODE_REGLEMENT" integer DEFAULT 1,
    "ID_MOUVEMENT" integer DEFAULT 1,
    "NUMERO" character varying(2048) DEFAULT ''::text,
    "ID_FOURNISSEUR" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "ID_TAXE" integer DEFAULT 1,
    "ID_COMPTE_PCE" integer DEFAULT 1,
    "MONTANT_TTC" bigint DEFAULT 0,
    "MONTANT_TVA" bigint DEFAULT 0,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "SOLDE" boolean DEFAULT false,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "DATE" date,
    "MONTANT_HT" bigint DEFAULT 0,
    "INFOS" character varying(1024) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE "OpenConcerto48"."AVOIR_FOURNISSEUR" OWNER TO openconcerto;

--
-- TOC entry 1130 (class 1259 OID 6916921)
-- Name: AVOIR_FOURNISSEUR_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."AVOIR_FOURNISSEUR_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."AVOIR_FOURNISSEUR_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24988 (class 0 OID 0)
-- Dependencies: 1130
-- Name: AVOIR_FOURNISSEUR_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."AVOIR_FOURNISSEUR_ID_seq" OWNED BY "OpenConcerto48"."AVOIR_FOURNISSEUR"."ID";


--
-- TOC entry 1131 (class 1259 OID 6916923)
-- Name: AXE_ANALYTIQUE; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."AXE_ANALYTIQUE" (
    "NOM" character varying(2048) DEFAULT ''::text,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "ARCHIVE" integer DEFAULT 0,
    "CREATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ORDRE" numeric(16,8),
    "MODIFICATION_DATE" timestamp without time zone,
    "TYPE" character varying(256) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE "OpenConcerto48"."AXE_ANALYTIQUE" OWNER TO openconcerto;

--
-- TOC entry 1132 (class 1259 OID 6916934)
-- Name: AXE_ANALYTIQUE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."AXE_ANALYTIQUE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."AXE_ANALYTIQUE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24989 (class 0 OID 0)
-- Dependencies: 1132
-- Name: AXE_ANALYTIQUE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."AXE_ANALYTIQUE_ID_seq" OWNED BY "OpenConcerto48"."AXE_ANALYTIQUE"."ID";


--
-- TOC entry 1133 (class 1259 OID 6916936)
-- Name: AYANT_DROIT; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."AYANT_DROIT" (
    "ID" integer NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_SALARIE" integer DEFAULT 1,
    "ID_AYANT_DROIT_TYPE" integer DEFAULT 1,
    "REGIME_ALSACE" boolean DEFAULT false NOT NULL,
    "NIR" character varying(256) DEFAULT ''::character varying NOT NULL,
    "PRENOMS" character varying(256) DEFAULT ''::character varying NOT NULL,
    "CODE_ORGANISME_AFFILIATION" character varying(256) DEFAULT ''::character varying NOT NULL,
    "CODE_OPTION" character varying(256) DEFAULT ''::character varying NOT NULL,
    "NIR_OUVRANT_DROIT" character varying(256) DEFAULT ''::character varying NOT NULL,
    "DATE_DEBUT_RATTACHEMENT" timestamp without time zone,
    "DATE_FIN_RATTACHEMENT" timestamp without time zone,
    "DATE_NAISSANCE" timestamp without time zone,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto48"."AYANT_DROIT" OWNER TO openconcerto;

--
-- TOC entry 1134 (class 1259 OID 6916953)
-- Name: AYANT_DROIT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."AYANT_DROIT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."AYANT_DROIT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24990 (class 0 OID 0)
-- Dependencies: 1134
-- Name: AYANT_DROIT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."AYANT_DROIT_ID_seq" OWNED BY "OpenConcerto48"."AYANT_DROIT"."ID";


--
-- TOC entry 1135 (class 1259 OID 6916955)
-- Name: BANQUE; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."BANQUE" (
    "ID" integer NOT NULL,
    "ID_JOURNAL" integer DEFAULT 1,
    "INFOS" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "NUMERO_RUE" character varying(45) DEFAULT ''::character varying NOT NULL,
    "RUE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "IBAN" character varying(256) DEFAULT ''::character varying NOT NULL,
    "BIC" character varying(256) DEFAULT ''::character varying NOT NULL,
    "VOIE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "VILLE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "NOM" character varying(256) DEFAULT ''::character varying NOT NULL,
    "DOMICILIATION" character varying(256) DEFAULT ''::character varying NOT NULL,
    "CODE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "AFFACTURAGE" boolean DEFAULT false NOT NULL,
    "ID_COMPTE_PCE" integer DEFAULT 1,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric,
    "ID_COMPTE_PCE_CB_ATTENTE" integer DEFAULT 1,
    "ID_JOURNAL_CB_ATTENTE" integer DEFAULT 1,
    "ID_COMPTE_PCE_FRAIS_CB" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto48"."BANQUE" OWNER TO openconcerto;

--
-- TOC entry 1136 (class 1259 OID 6916976)
-- Name: BANQUE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."BANQUE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."BANQUE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24991 (class 0 OID 0)
-- Dependencies: 1136
-- Name: BANQUE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."BANQUE_ID_seq" OWNED BY "OpenConcerto48"."BANQUE"."ID";


--
-- TOC entry 1137 (class 1259 OID 6916978)
-- Name: BON_DE_LIVRAISON; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."BON_DE_LIVRAISON" (
    "ARCHIVE" integer DEFAULT 0,
    "ID_COMMANDE_CLIENT" integer DEFAULT 1,
    "NUMERO" character varying(45) DEFAULT ''::character varying,
    "TOTAL_POIDS" real DEFAULT 0,
    "ID_CLIENT" integer DEFAULT 1,
    "TOTAL_HT" bigint DEFAULT 0,
    "ORDRE" numeric(16,8),
    "CREATION_DATE" timestamp without time zone,
    "ID" integer NOT NULL,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "NOM" character varying(45) DEFAULT ''::character varying,
    "INFOS" character varying(2048) DEFAULT ''::text,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "MODIFICATION_DATE" timestamp without time zone,
    "DATE" date,
    "ID_SAISIE_VENTE_FACTURE" integer DEFAULT 1,
    "TOTAL_TTC" bigint DEFAULT 0,
    "TOTAL_TVA" bigint DEFAULT 0,
    "SOURCE" character varying(512) DEFAULT ''::character varying NOT NULL,
    "IDSOURCE" integer DEFAULT 1,
    "T_DEVISE" bigint DEFAULT 0,
    "T_POIDS" real DEFAULT 0,
    "ID_TARIF" integer DEFAULT 1,
    "ID_MODELE" integer DEFAULT 1,
    "DATE_LIVRAISON" date,
    "ID_ADRESSE" integer DEFAULT 1,
    "ID_ADRESSE_LIVRAISON" integer DEFAULT 1,
    "POURCENT_REMISE" numeric(12,8),
    "MONTANT_REMISE" numeric(16,8),
    "ID_CONTACT" integer DEFAULT 1,
    "ID_CLIENT_DEPARTEMENT" integer DEFAULT 1,
    "TOTAL_DEVISE" bigint DEFAULT 0 NOT NULL,
    "TOTAL_SERVICE" bigint DEFAULT 0 NOT NULL,
    "ID_TAXE_PORT" integer DEFAULT 1,
    "PORT_HT" bigint DEFAULT 0 NOT NULL,
    "REMISE_HT" bigint DEFAULT 0 NOT NULL,
    "CREATE_VIRTUAL_STOCK" boolean DEFAULT true NOT NULL,
    "T_ECO_CONTRIBUTION" bigint DEFAULT 0,
    "FRAIS_DOCUMENT_HT" bigint DEFAULT 0 NOT NULL,
    "ID_TAXE_FRAIS_DOCUMENT" integer DEFAULT 1,
    "ID_COMMERCIAL" integer DEFAULT 1,
    "ID_CATEGORIE_COMPTABLE" integer DEFAULT 1,
    "VERROU_FACTURATION" boolean DEFAULT false NOT NULL,
    "ID_LOT" integer DEFAULT 1,
    "T_ACOMPTE" bigint DEFAULT 0 NOT NULL,
    "MONTANT_INTERFEL_HT" bigint DEFAULT 0 NOT NULL
);


ALTER TABLE "OpenConcerto48"."BON_DE_LIVRAISON" OWNER TO openconcerto;

--
-- TOC entry 1138 (class 1259 OID 6917021)
-- Name: BON_DE_LIVRAISON_ELEMENT; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."BON_DE_LIVRAISON_ELEMENT" (
    "T_POIDS_LIVREE" real DEFAULT 0,
    "T_PA_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_HA_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "MODIFICATION_DATE" timestamp without time zone,
    "ORDRE" numeric(16,8),
    "PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "ID_METRIQUE_2" integer DEFAULT 1,
    "PRIX_METRIQUE_VT_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_STYLE" integer DEFAULT 1,
    "PRIX_METRIQUE_VT_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "T_PV_TTC" numeric(16,2) DEFAULT 0 NOT NULL,
    "ID_METRIQUE_3" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "VALEUR_METRIQUE_2" real DEFAULT 0,
    "ID_TAXE" integer DEFAULT 1,
    "T_POIDS" real DEFAULT 0,
    "T_PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "VALEUR_METRIQUE_3" real DEFAULT 0,
    "POIDS" real DEFAULT 0,
    "ID_METRIQUE_1" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "PRIX_METRIQUE_HA_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_BON_DE_LIVRAISON" integer DEFAULT 1,
    "QTE_LIVREE" integer DEFAULT 0,
    "QTE" integer DEFAULT 0,
    "ARCHIVE" integer DEFAULT 0,
    "CODE" character varying(45) DEFAULT ''::character varying,
    "ID_MODE_VENTE_ARTICLE" integer DEFAULT 1,
    "NOM" character varying(2048) DEFAULT ''::text,
    "SERVICE" boolean DEFAULT false,
    "PA_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_SAISIE_VENTE_FACTURE_ELEMENT" integer DEFAULT 1,
    "PRIX_METRIQUE_VT_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "VALEUR_METRIQUE_1" real DEFAULT 0,
    "QTE_A_LIVRER" integer DEFAULT 0,
    "PRIX_METRIQUE_HA_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "QTE_ACHAT" integer DEFAULT 1,
    "CODE_DOUANIER" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ID_PAYS" integer DEFAULT 1,
    "ID_DEVISE" integer DEFAULT 1,
    "PV_U_DEVISE" numeric(16,6) DEFAULT 0 NOT NULL,
    "POURCENT_REMISE" numeric(12,8) DEFAULT 0,
    "PV_T_DEVISE" numeric(16,6) DEFAULT 0 NOT NULL,
    "TAUX_DEVISE" numeric(16,8) DEFAULT 1,
    "DESCRIPTIF" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "MARGE_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "QTE_UNITAIRE" numeric(16,6) DEFAULT 1,
    "ID_UNITE_VENTE" integer DEFAULT 2,
    "ID_ARTICLE" integer DEFAULT 1,
    "POIDS_COLIS_NET" numeric(16,8) DEFAULT 0,
    "T_POIDS_COLIS_NET" numeric(16,8) DEFAULT 0,
    "NB_COLIS" integer DEFAULT 0,
    "MONTANT_REMISE" numeric(16,8),
    "ID_FAMILLE_ARTICLE" integer DEFAULT 1,
    "NIVEAU" integer DEFAULT 1 NOT NULL,
    "ID_ECO_CONTRIBUTION" integer DEFAULT 1,
    "ECO_CONTRIBUTION" numeric(16,2) DEFAULT 0,
    "T_ECO_CONTRIBUTION" numeric(16,2) DEFAULT 0,
    "ID_COMMANDE_CLIENT_ELEMENT" integer DEFAULT 1,
    "ID_DEPOT_STOCK" integer DEFAULT 1,
    "ID_DEVIS_ELEMENT" integer DEFAULT 1,
    "LONGUEUR" numeric(16,8),
    "LARGEUR" numeric(16,8),
    "HAUTEUR" numeric(16,8),
    "TARE" numeric(16,8),
    "T_POIDS_BRUT" numeric(16,8) DEFAULT 0,
    "ID_ARTICLE_DECLINAISON_TAILLE" integer DEFAULT 1,
    "ID_ARTICLE_DECLINAISON_COULEUR" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto48"."BON_DE_LIVRAISON_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 1139 (class 1259 OID 6917088)
-- Name: BON_DE_LIVRAISON_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."BON_DE_LIVRAISON_ELEMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."BON_DE_LIVRAISON_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24992 (class 0 OID 0)
-- Dependencies: 1139
-- Name: BON_DE_LIVRAISON_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."BON_DE_LIVRAISON_ELEMENT_ID_seq" OWNED BY "OpenConcerto48"."BON_DE_LIVRAISON_ELEMENT"."ID";


--
-- TOC entry 1140 (class 1259 OID 6917090)
-- Name: BON_DE_LIVRAISON_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."BON_DE_LIVRAISON_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."BON_DE_LIVRAISON_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24993 (class 0 OID 0)
-- Dependencies: 1140
-- Name: BON_DE_LIVRAISON_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."BON_DE_LIVRAISON_ID_seq" OWNED BY "OpenConcerto48"."BON_DE_LIVRAISON"."ID";


--
-- TOC entry 1141 (class 1259 OID 6917092)
-- Name: BON_RECEPTION; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."BON_RECEPTION" (
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_FOURNISSEUR" integer DEFAULT 1,
    "ID" integer NOT NULL,
    "CREATION_DATE" timestamp without time zone,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "NOM" character varying(45) DEFAULT ''::character varying,
    "TOTAL_TTC" bigint DEFAULT 0,
    "DATE" date,
    "TOTAL_POIDS" real DEFAULT 0,
    "INFOS" character varying(2048) DEFAULT ''::text,
    "TOTAL_HT" bigint DEFAULT 0,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "NUMERO" character varying(45) DEFAULT ''::character varying,
    "ORDRE" numeric(16,8),
    "ARCHIVE" integer DEFAULT 0,
    "ID_COMMANDE" integer DEFAULT 1,
    "TOTAL_TVA" bigint DEFAULT 0,
    "ID_DEVISE" integer DEFAULT 1,
    "T_DEVISE" bigint DEFAULT 0,
    "CREATE_VIRTUAL_STOCK" boolean DEFAULT true NOT NULL,
    "T_ECO_CONTRIBUTION" bigint DEFAULT 0,
    "ID_TAXE_PORT" integer DEFAULT 1,
    "PORT_HT" bigint DEFAULT 0 NOT NULL,
    "REMISE_HT" bigint DEFAULT 0 NOT NULL,
    "ID_MODELE" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto48"."BON_RECEPTION" OWNER TO openconcerto;

--
-- TOC entry 1142 (class 1259 OID 6917118)
-- Name: BON_RECEPTION_ELEMENT; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."BON_RECEPTION_ELEMENT" (
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "PRIX_METRIQUE_VT_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "NOM" character varying(2048) DEFAULT ''::character varying,
    "ID_TAXE" integer DEFAULT 1,
    "T_PV_TTC" numeric(16,2) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_VT_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "QTE" integer DEFAULT 0,
    "MODIFICATION_DATE" timestamp without time zone,
    "T_PA_TTC" numeric(16,2) DEFAULT 0 NOT NULL,
    "VALEUR_METRIQUE_3" real DEFAULT 0,
    "VALEUR_METRIQUE_1" real DEFAULT 0,
    "ORDRE" numeric(16,8),
    "T_PV_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_STYLE" integer DEFAULT 1,
    "ID_BON_RECEPTION" integer DEFAULT 1,
    "CODE" character varying(45) DEFAULT ''::character varying,
    "T_POIDS" real DEFAULT 0,
    "CREATION_DATE" timestamp without time zone,
    "ID_METRIQUE_2" integer DEFAULT 1,
    "ID_METRIQUE_1" integer DEFAULT 1,
    "POIDS" real DEFAULT 0,
    "PA_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "ARCHIVE" integer DEFAULT 0,
    "ID_METRIQUE_3" integer DEFAULT 1,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "PRIX_METRIQUE_VT_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_HA_1" numeric(16,6) DEFAULT 0 NOT NULL,
    "PRIX_METRIQUE_HA_2" numeric(16,6) DEFAULT 0 NOT NULL,
    "VALEUR_METRIQUE_2" real DEFAULT 0,
    "SERVICE" boolean DEFAULT false,
    "PRIX_METRIQUE_HA_3" numeric(16,6) DEFAULT 0 NOT NULL,
    "T_PA_HT" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID" integer NOT NULL,
    "ID_MODE_VENTE_ARTICLE" integer DEFAULT 1,
    "QTE_ACHAT" integer DEFAULT 1,
    "PA_DEVISE" numeric(16,6) DEFAULT 0 NOT NULL,
    "ID_DEVISE" integer DEFAULT 1,
    "PA_DEVISE_T" numeric(16,6) DEFAULT 0 NOT NULL,
    "QTE_UNITAIRE" numeric(16,6) DEFAULT 1,
    "ID_UNITE_VENTE" integer DEFAULT 2,
    "ID_ARTICLE" integer DEFAULT 1,
    "ID_CODE_FOURNISSEUR" integer DEFAULT 1,
    "DESCRIPTIF" character varying(2048) DEFAULT ''::character varying NOT NULL,
    "NIVEAU" integer DEFAULT 1 NOT NULL,
    "ID_ECO_CONTRIBUTION" integer DEFAULT 1,
    "ECO_CONTRIBUTION" numeric(16,2) DEFAULT 0,
    "T_ECO_CONTRIBUTION" numeric(16,2) DEFAULT 0,
    "ID_COMMANDE_ELEMENT" integer DEFAULT 1,
    "ID_DEMANDE_ACHAT_ELEMENT" integer DEFAULT 1,
    "ID_FAMILLE_ARTICLE" integer DEFAULT 1,
    "QTE_ORIGINE" integer,
    "ID_DEPOT_STOCK" integer DEFAULT 1,
    "LONGUEUR" numeric(16,8),
    "LARGEUR" numeric(16,8),
    "HAUTEUR" numeric(16,8),
    "POIDS_COLIS_NET" numeric(16,8) DEFAULT 0,
    "T_POIDS_COLIS_NET" numeric(16,8) DEFAULT 0,
    "NB_COLIS" integer DEFAULT 0,
    "TARE" numeric(16,8),
    "T_POIDS_BRUT" numeric(16,8) DEFAULT 0,
    "ID_ARTICLE_DECLINAISON_TAILLE" integer DEFAULT 1,
    "ID_ARTICLE_DECLINAISON_COULEUR" integer DEFAULT 1,
    "ID_LOT" integer DEFAULT 1
);


ALTER TABLE "OpenConcerto48"."BON_RECEPTION_ELEMENT" OWNER TO openconcerto;

--
-- TOC entry 1143 (class 1259 OID 6917179)
-- Name: BON_RECEPTION_ELEMENT_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."BON_RECEPTION_ELEMENT_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."BON_RECEPTION_ELEMENT_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24994 (class 0 OID 0)
-- Dependencies: 1143
-- Name: BON_RECEPTION_ELEMENT_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."BON_RECEPTION_ELEMENT_ID_seq" OWNED BY "OpenConcerto48"."BON_RECEPTION_ELEMENT"."ID";


--
-- TOC entry 1144 (class 1259 OID 6917181)
-- Name: BON_RECEPTION_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."BON_RECEPTION_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."BON_RECEPTION_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24995 (class 0 OID 0)
-- Dependencies: 1144
-- Name: BON_RECEPTION_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."BON_RECEPTION_ID_seq" OWNED BY "OpenConcerto48"."BON_RECEPTION"."ID";


--
-- TOC entry 1145 (class 1259 OID 6917183)
-- Name: CAISSE; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."CAISSE" (
    "ARCHIVE" integer DEFAULT 0,
    "NUMERO" character varying(2048) DEFAULT ''::text,
    "ID" integer NOT NULL,
    "NOM" character varying(2048) DEFAULT ''::text,
    "ORDRE" numeric(16,8) DEFAULT 0,
    "ID_DERNIERE_CLOTURE" integer
);


ALTER TABLE "OpenConcerto48"."CAISSE" OWNER TO openconcerto;

--
-- TOC entry 1146 (class 1259 OID 6917193)
-- Name: CAISSE_CLOTURE; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."CAISSE_CLOTURE" (
    "ID" integer NOT NULL,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_ENTREE_JOURNAL" integer,
    "PERIODE" character varying(32) DEFAULT ''::character varying NOT NULL,
    "DEBUT" date NOT NULL,
    "FIN" date NOT NULL,
    "TOTAL_TTC" numeric(16,6) DEFAULT 0 NOT NULL,
    "PREMIER_TICKET" character varying(64) DEFAULT NULL::character varying,
    "PREMIER_TICKET_HASH" character varying(128) DEFAULT NULL::character varying,
    "DERNIER_TICKET" character varying(64) DEFAULT NULL::character varying,
    "DERNIER_TICKET_HASH" character varying(128) DEFAULT NULL::character varying,
    "ARCHIVE" integer DEFAULT 0 NOT NULL
);


ALTER TABLE "OpenConcerto48"."CAISSE_CLOTURE" OWNER TO openconcerto;

--
-- TOC entry 1147 (class 1259 OID 6917205)
-- Name: CAISSE_CLOTURE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."CAISSE_CLOTURE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."CAISSE_CLOTURE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24996 (class 0 OID 0)
-- Dependencies: 1147
-- Name: CAISSE_CLOTURE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."CAISSE_CLOTURE_ID_seq" OWNED BY "OpenConcerto48"."CAISSE_CLOTURE"."ID";


--
-- TOC entry 1148 (class 1259 OID 6917207)
-- Name: CAISSE_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."CAISSE_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."CAISSE_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24997 (class 0 OID 0)
-- Dependencies: 1148
-- Name: CAISSE_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."CAISSE_ID_seq" OWNED BY "OpenConcerto48"."CAISSE"."ID";


--
-- TOC entry 1149 (class 1259 OID 6917209)
-- Name: CAISSE_JOURNAL; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."CAISSE_JOURNAL" (
    "ID" integer NOT NULL,
    "ID_USER_COMMON_CREATE" integer DEFAULT 1,
    "ID_USER_COMMON_MODIFY" integer DEFAULT 1,
    "CREATION_DATE" timestamp without time zone,
    "MODIFICATION_DATE" timestamp without time zone,
    "ID_CAISSE" integer DEFAULT 1,
    "DATE" timestamp without time zone,
    "ID_USER" integer DEFAULT 1,
    "EVT" character varying(128) DEFAULT ''::character varying NOT NULL,
    "CREATOR" character varying(128) DEFAULT ''::character varying NOT NULL,
    "CREATOR_VERSION" character varying(128) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "HOST_NAME" character varying(128),
    "HOST_USER" character varying(128)
);


ALTER TABLE "OpenConcerto48"."CAISSE_JOURNAL" OWNER TO openconcerto;

--
-- TOC entry 1150 (class 1259 OID 6917223)
-- Name: CAISSE_JOURNAL_ID_seq; Type: SEQUENCE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE SEQUENCE "OpenConcerto48"."CAISSE_JOURNAL_ID_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "OpenConcerto48"."CAISSE_JOURNAL_ID_seq" OWNER TO openconcerto;

--
-- TOC entry 24998 (class 0 OID 0)
-- Dependencies: 1150
-- Name: CAISSE_JOURNAL_ID_seq; Type: SEQUENCE OWNED BY; Schema: OpenConcerto48; Owner: openconcerto
--

ALTER SEQUENCE "OpenConcerto48"."CAISSE_JOURNAL_ID_seq" OWNED BY "OpenConcerto48"."CAISSE_JOURNAL"."ID";


--
-- TOC entry 1151 (class 1259 OID 6917225)
-- Name: CALENDAR_ITEM; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."CALENDAR_ITEM" (
    "ID" integer NOT NULL,
    "START" timestamp without time zone,
    "END" timestamp without time zone,
    "DURATION_S" bigint DEFAULT 0 NOT NULL,
    "SUMMARY" character varying(1024) DEFAULT ''::character varying NOT NULL,
    "DESCRIPTION" character varying(8192) DEFAULT ''::character varying NOT NULL,
    "FLAGS" character varying(1024) DEFAULT ''::character varying NOT NULL,
    "STATUS" character varying(128) DEFAULT ''::character varying NOT NULL,
    "ID_CALENDAR_ITEM_GROUP" integer DEFAULT 1,
    "SOURCE_ID" bigint,
    "SOURCE_TABLE" character varying(256) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric,
    "UID" character varying(1024) DEFAULT ''::character varying NOT NULL,
    "LOCATION" character varying(4096) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE "OpenConcerto48"."CALENDAR_ITEM" OWNER TO openconcerto;

--
-- TOC entry 1152 (class 1259 OID 6917242)
-- Name: CALENDAR_ITEM_GROUP; Type: TABLE; Schema: OpenConcerto48; Owner: openconcerto
--

CREATE TABLE "OpenConcerto48"."CALENDAR_ITEM_GROUP" (
    "ID" integer NOT NULL,
    "NAME" character varying(1024) DEFAULT ''::character varying NOT NULL,
    "DESCRIPTION" character varying(8192) DEFAULT ''::character varying NOT NULL,
    "ARCHIVE" integer DEFAULT 0 NOT NULL,
    "ORDRE" numeric(16,8) DEFAULT NULL::numeric
);


ALTER TABLE "OpenConcerto48"."CALENDAR_ITEM_GROUP" OWNER TO openconcerto;

--
-- TOC entry 1153 (class 1259 OID 6917252)
