CREATE TABLE `doc_archive_support` (
  `ID_DOC_ARCHIVE_SUPPORT` varchar(32) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `PID_SUPPORT_ET` varchar(32) NOT NULL DEFAULT '',
  `DOC_SUPPORT_FICHIER_CONTENU` longblob DEFAULT NULL,
  `DOC_SUPPORT_FICHIER_NOM` varchar(200) NOT NULL DEFAULT '',
  `DOC_SUPPORT_FICHIER_TAILLE` double NOT NULL DEFAULT 0,
  `DOC_SUPPORT_FICHIER_TYPE` varchar(50) NOT NULL DEFAULT '',
  `DOC_SUPPORT_FICHIER_DATE` datetime DEFAULT NULL,
  `PID_SUPPORT_DET` varchar(32) NOT NULL DEFAULT '',
  `DOC_SUPPORT_N_ENVOI_DET` double NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_DOC_ARCHIVE_SUPPORT`),
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `PID_SUPPORT_ET` (`PID_SUPPORT_ET`) USING BTREE,
  KEY `DOC_SUPPORT_FICHIER_DATE` (`DOC_SUPPORT_FICHIER_DATE`) USING BTREE,
  KEY `DOC_SUPPORT_FICHIER_NOM` (`DOC_SUPPORT_FICHIER_NOM`) USING BTREE,
  KEY `PID_SUPPORT_DET` (`PID_SUPPORT_DET`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `document`
--

CREATE TABLE `document` (
  `ARMOIRE` varchar(50) NOT NULL DEFAULT '',
  `DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `ID_DOCUMENT` varchar(32) NOT NULL DEFAULT '',
  `NOM_CLIENT` varchar(50) NOT NULL DEFAULT '',
  `NOM_ENCAPSULE_FICHIER_CONTENU` longblob DEFAULT NULL,
  `NOM_ENCAPSULE_FICHIER_DATE` datetime DEFAULT NULL,
  `NOM_ENCAPSULE_FICHIER_NOM` varchar(100) NOT NULL DEFAULT '',
  `NOM_ENCAPSULE_FICHIER_TAILLE` double NOT NULL DEFAULT 0,
  `NOM_ENCAPSULE_FICHIER_TYPE` varchar(20) NOT NULL DEFAULT '',
  `PID_AIDE_GED` varchar(32) NOT NULL DEFAULT '',
  `SOUS_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_DOCUMENT`),
  KEY `ARMOIRE` (`ARMOIRE`) USING BTREE,
  KEY `DOSSIER` (`DOSSIER`) USING BTREE,
  KEY `NOM_CLIENT` (`NOM_CLIENT`) USING BTREE,
  KEY `NOM_ENCAPSULE_FICHIER_DATE` (`NOM_ENCAPSULE_FICHIER_DATE`) USING BTREE,
  KEY `NOM_ENCAPSULE_FICHIER_NOM` (`NOM_ENCAPSULE_FICHIER_NOM`) USING BTREE,
  KEY `PID_AIDE_GED` (`PID_AIDE_GED`) USING BTREE,
  KEY `SOUS_DOSSIER` (`SOUS_DOSSIER`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `document_archive`
--

CREATE TABLE `document_archive` (
  `CODE_CLIENT` varchar(40) NOT NULL DEFAULT '',
  `IDENT_DOC_ORIGINE` varchar(60) NOT NULL DEFAULT '',
  `ID_DOCUMENT_ARCHIVE` varchar(32) NOT NULL DEFAULT '',
  `IMMATRICULATION` varchar(15) NOT NULL DEFAULT '',
  `NOM_FICHIER_CONTENU` longblob DEFAULT NULL,
  `NOM_FICHIER_DATE` datetime DEFAULT NULL,
  `NOM_FICHIER_NOM` varchar(100) NOT NULL DEFAULT '',
  `NOM_FICHIER_TAILLE` double NOT NULL DEFAULT 0,
  `NOM_FICHIER_TYPE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TIERS` varchar(50) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_ECRITURE` double NOT NULL DEFAULT 0,
  `PID_NOTE_FRAIS` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `IDENT_MODELE` varchar(60) NOT NULL DEFAULT '',
  `PHOTO` varchar(32) NOT NULL DEFAULT '',
  `PID_MAIL` varchar(32) NOT NULL DEFAULT '',
  `NOM_FICHIER` varchar(40) NOT NULL DEFAULT '',
  `VALIDATION_1` varchar(40) NOT NULL DEFAULT '',
  `VALIDATION_2` varchar(40) NOT NULL DEFAULT '',
  `DATE_VALIDATION_1` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_VALIDATION_2` date DEFAULT NULL,
  `PID_USER1` varchar(32) NOT NULL DEFAULT '',
  `PID_USER2` varchar(32) NOT NULL DEFAULT '',
  `NOTE1` blob DEFAULT NULL,
  `NOTE2` blob DEFAULT NULL,
  `NOTE_INIT` blob DEFAULT NULL,
  `MONTANT` decimal(20,2) NOT NULL DEFAULT 0.00,
  `LIBELLE_ECRITURE` varchar(150) NOT NULL DEFAULT '',
  `PID_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `LITIGE` char(1) NOT NULL DEFAULT '',
  `ENVOIE_SIGNATURE` char(1) NOT NULL DEFAULT '',
  `PID_CLIENT_DOUTEUX_ET` varchar(32) NOT NULL DEFAULT '',
  `ALERTE_GED` char(1) NOT NULL DEFAULT '',
  `FROM_FICHE_TIERS` char(1) NOT NULL DEFAULT '',
  `IDENT_CONTREPARTIE` varchar(32) NOT NULL DEFAULT '',
  `LIEN_DOCUMENT_ARCHIVE` varchar(40) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NOM_REP` varchar(50) NOT NULL DEFAULT '',
  `N_PIECE` varchar(20) NOT NULL DEFAULT '',
  `N_PIECE_INTERNE` varchar(20) NOT NULL DEFAULT '',
  `PID_IMMO_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_MATERIEL_MOBILE` varchar(32) NOT NULL DEFAULT '',
  `TEMP_EXTRACT_FILE` char(1) NOT NULL DEFAULT '',
  `PID_AIDE_CONFIGURATION_ENTREPRISE` varchar(32) NOT NULL DEFAULT '',
  `PID_ABONNEMENT_ACHAT_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_ABONNEMENT_VENTE_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_ACTION_INTERNE` varchar(32) NOT NULL DEFAULT '',
  `PID_COMPTABILITE_MODELE_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_COMPTABILIT_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_CREDIT_BAIL_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_ACHAT_AVOIR_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_ACHAT_BC_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_ACHAT_BL_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_ACHAT_FACT_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_VENTE_AVOIR_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_VENTE_BC_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_VENTE_BL_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_VENTE_DEVIS_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_VENTE_FACT_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_LOC_FI_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_ORDRE_REPARATION` varchar(32) NOT NULL DEFAULT '',
  `PID_PRET_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_SPANCO` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS_INFOS_SALARIES` varchar(32) NOT NULL DEFAULT '',
  `PID_SALARIE_PRET_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS_INFO_SALARIE_SAISIE` varchar(32) NOT NULL DEFAULT '',
  `PID_GESTION_CONTRAT_ET` varchar(32) NOT NULL DEFAULT '',
  `VALIDATION_1_CU` varchar(10) NOT NULL DEFAULT '',
  `VALIDATION_2_CU` varchar(10) NOT NULL DEFAULT '',
  `NC` char(1) NOT NULL DEFAULT '',
  `PID_DOCUMENT_ARCHIVE` varchar(32) NOT NULL DEFAULT '',
  `SELECT` char(1) NOT NULL DEFAULT '',
  `SELECT_USER` varchar(10) NOT NULL DEFAULT '',
  `PID_COMPTABILIT_ARCHIVE_ET` varchar(32) NOT NULL DEFAULT '',
  `DATE_ENVOI_VALIDATION` date DEFAULT NULL,
  `CARTE_GRISE` char(1) NOT NULL DEFAULT '',
  `PID_MATERIEL_ENTRETIEN` varchar(32) NOT NULL DEFAULT '',
  `SEL_DOC_N_LIGNE` decimal(12,0) NOT NULL DEFAULT 0,
  `IDENT_BATIMENT` varchar(32) NOT NULL DEFAULT '',
  `IDENT_VISITE_PERIODIQUE_BATIMENT` varchar(32) NOT NULL DEFAULT '',
  `IDENT_ACTION_BATIMENT` varchar(32) NOT NULL DEFAULT '',
  `N_BATIMENT` varchar(10) NOT NULL DEFAULT '',
  `N_VISITE_PERIODIQUE_BATIMENT` varchar(10) NOT NULL DEFAULT '',
  `N_ACTION_BATIMENT` varchar(10) NOT NULL DEFAULT '',
  `N_IMPORT` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_DOCUMENT_ARCHIVE`),
  KEY `CODE_CLIENT` (`CODE_CLIENT`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `PID_MAIL` (`PID_MAIL`) USING BTREE,
  KEY `IDENT_DOC_ORIGINE` (`IDENT_DOC_ORIGINE`) USING BTREE,
  KEY `PID_USER1` (`PID_USER1`) USING BTREE,
  KEY `PID_USER2` (`PID_USER2`) USING BTREE,
  KEY `VALIDATION_1` (`VALIDATION_1`) USING BTREE,
  KEY `VALIDATION_2` (`VALIDATION_2`) USING BTREE,
  KEY `PID_MATERIEL_ET` (`PID_MATERIEL_ET`) USING BTREE,
  KEY `IDENT_CONTREPARTIE` (`IDENT_CONTREPARTIE`) USING BTREE,
  KEY `LIEN_DOCUMENT_ARCHIVE` (`LIEN_DOCUMENT_ARCHIVE`) USING BTREE,
  KEY `PID_IMMO_ET` (`PID_IMMO_ET`) USING BTREE,
  KEY `PID_MATERIEL_MOBILE` (`PID_MATERIEL_MOBILE`) USING BTREE,
  KEY `TEMP_EXTRACT_FILE` (`TEMP_EXTRACT_FILE`) USING BTREE,
  KEY `PID_AIDE_CONFIGURATION_ENTREPRISE` (`PID_AIDE_CONFIGURATION_ENTREPRISE`) USING BTREE,
  KEY `PID_ABONNEMENT_ACHAT_ET` (`PID_ABONNEMENT_ACHAT_ET`) USING BTREE,
  KEY `PID_ABONNEMENT_VENTE_ET` (`PID_ABONNEMENT_VENTE_ET`) USING BTREE,
  KEY `PID_ACTION_INTERNE` (`PID_ACTION_INTERNE`) USING BTREE,
  KEY `PID_COMPTABILITE_MODELE_ET` (`PID_COMPTABILITE_MODELE_ET`) USING BTREE,
  KEY `PID_COMPTABILIT_ET` (`PID_COMPTABILIT_ET`) USING BTREE,
  KEY `PID_CREDIT_BAIL_ET` (`PID_CREDIT_BAIL_ET`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_ACHAT_AVOIR_ET` (`PID_GES_CO_DOCUMENT_ACHAT_AVOIR_ET`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_ACHAT_BC_ET` (`PID_GES_CO_DOCUMENT_ACHAT_BC_ET`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_ACHAT_BL_ET` (`PID_GES_CO_DOCUMENT_ACHAT_BL_ET`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_ACHAT_FACT_ET` (`PID_GES_CO_DOCUMENT_ACHAT_FACT_ET`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_AVOIR_ET` (`PID_GES_CO_DOCUMENT_VENTE_AVOIR_ET`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_BC_ET` (`PID_GES_CO_DOCUMENT_VENTE_BC_ET`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_BL_ET` (`PID_GES_CO_DOCUMENT_VENTE_BL_ET`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_DEVIS_ET` (`PID_GES_CO_DOCUMENT_VENTE_DEVIS_ET`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_FACT_ET` (`PID_GES_CO_DOCUMENT_VENTE_FACT_ET`) USING BTREE,
  KEY `PID_LOC_FI_ET` (`PID_LOC_FI_ET`) USING BTREE,
  KEY `PID_ORDRE_REPARATION` (`PID_ORDRE_REPARATION`) USING BTREE,
  KEY `PID_PRET_ET` (`PID_PRET_ET`) USING BTREE,
  KEY `PID_TIERS_INFOS_SALARIES` (`PID_TIERS_INFOS_SALARIES`) USING BTREE,
  KEY `PID_SALARIE_PRET_ET` (`PID_SALARIE_PRET_ET`) USING BTREE,
  KEY `PID_CLIENT_DOUTEUX_ET` (`PID_CLIENT_DOUTEUX_ET`) USING BTREE,
  KEY `PID_NOTE_FRAIS` (`PID_NOTE_FRAIS`) USING BTREE,
  KEY `PID_SPANCO` (`PID_SPANCO`) USING BTREE,
  KEY `PID_TIERS_INFO_SALARIE_SAISIE` (`PID_TIERS_INFO_SALARIE_SAISIE`) USING BTREE,
  KEY `PID_GESTION_CONTRAT_ET` (`PID_GESTION_CONTRAT_ET`) USING BTREE,
  KEY `PID_DOCUMENT_ARCHIVE` (`PID_DOCUMENT_ARCHIVE`) USING BTREE,
  KEY `N_ECRITURE` (`N_ECRITURE`) USING BTREE,
  KEY `IDENT_MODELE` (`IDENT_MODELE`) USING BTREE,
  KEY `PID_COMPTABILIT_ARCHIVE_ET` (`PID_COMPTABILIT_ARCHIVE_ET`) USING BTREE,
  KEY `PID_MATERIEL_ENTRETIEN` (`PID_MATERIEL_ENTRETIEN`) USING BTREE,
  KEY `IDENT_BATIMENT` (`IDENT_BATIMENT`) USING BTREE,
  KEY `IDENT_VISITE_PERIODIQUE_BATIMENT` (`IDENT_VISITE_PERIODIQUE_BATIMENT`) USING BTREE,
  KEY `IDENT_ACTION_BATIMENT` (`IDENT_ACTION_BATIMENT`) USING BTREE,
  KEY `N_PIECE_INTERNE` (`N_PIECE_INTERNE`) USING BTREE,
  KEY `NOM_FICHIER_NOM` (`NOM_FICHIER_NOM`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`eglobalpro`@`%`*/ /*!50003 TRIGGER SVT_Nom BEFORE INSERT ON document_archive
FOR EACH ROW
SET NEW.LIEN_DOCUMENT_ARCHIVE=CONCAT(NEW.ID_DOCUMENT_ARCHIVE, CONCAT('.',substring_index(NEW.NOM_FICHIER_NOM,'.',-1) )),NEW.TEMP_EXTRACT_FILE='X' */;;
DELIMITER ;
DELIMITER ;;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`eglobalpro`@`%`*/ /*!50003 TRIGGER SVT_affect_n_doc_ecriture BEFORE INSERT ON document_archive
FOR EACH ROW
SET NEW.SEL_DOC_N_LIGNE=IFNULL((SELECT MAX(d.SEL_DOC_N_LIGNE) FROM document_archive d WHERE d.IDENT_DOC_ORIGINE = NEW.IDENT_DOC_ORIGINE),0)+1 */;;
DELIMITER ;

--
-- Table structure for table `document_archive_compta`
--

CREATE TABLE `document_archive_compta` (
  `HT` double NOT NULL DEFAULT 0,
  `ID_DOCUMENT_ARCHIVE_COMPTA` varchar(32) NOT NULL DEFAULT '',
  `NOM_COMPTE_GENERAL` varchar(100) NOT NULL DEFAULT '',
  `NOM_COMPTE_TVA` varchar(100) NOT NULL DEFAULT '',
  `N_COMPTE_GENERAL` varchar(8) NOT NULL DEFAULT '',
  `N_COMPTE_TIERS` varchar(50) NOT NULL DEFAULT '',
  `N_COMPTE_TVA` varchar(8) NOT NULL DEFAULT '',
  `PID_DOCUMENT_ARCHIVE` varchar(32) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TAUX_TVA` double NOT NULL DEFAULT 0,
  `TTC` double NOT NULL DEFAULT 0,
  `TVA` double NOT NULL DEFAULT 0,
  `VALIDER` char(1) NOT NULL DEFAULT '',
  `NUMERO` varchar(15) NOT NULL DEFAULT '',
  `N_DOSSIER` varchar(10) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `DATE` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `N_PIECE` varchar(10) NOT NULL DEFAULT '',
  `IDENTIFICATION_TIERS` varchar(32) NOT NULL DEFAULT '',
  `NOM_FICHIER_CONTENU` longblob DEFAULT NULL,
  `NOM_FICHIER_NOM` varchar(100) NOT NULL DEFAULT '',
  `NOM_FICHIER_TAILLE` double NOT NULL DEFAULT 0,
  `NOM_FICHIER_TYPE` varchar(50) NOT NULL DEFAULT '',
  `NOM_FICHIER_DATE` datetime DEFAULT NULL,
  PRIMARY KEY (`ID_DOCUMENT_ARCHIVE_COMPTA`),
  KEY `N_COMPTE_GENERAL` (`N_COMPTE_GENERAL`) USING BTREE,
  KEY `N_COMPTE_TIERS` (`N_COMPTE_TIERS`) USING BTREE,
  KEY `N_COMPTE_TVA` (`N_COMPTE_TVA`) USING BTREE,
  KEY `PID_DOCUMENT_ARCHIVE` (`PID_DOCUMENT_ARCHIVE`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `TAUX_TVA` (`TAUX_TVA`) USING BTREE,
  KEY `VALIDER` (`VALIDER`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `IDENTIFICATION_TIERS` (`IDENTIFICATION_TIERS`) USING BTREE,
  KEY `NOM_FICHIER_NOM` (`NOM_FICHIER_NOM`) USING BTREE,
  KEY `NOM_FICHIER_DATE` (`NOM_FICHIER_DATE`) USING BTREE,
  KEY `NUMERO` (`NUMERO`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `document_archive_materiel_mobile`
--

CREATE TABLE `document_archive_materiel_mobile` (
  `ID_DOCUMENT_ARCHIVE_MATERIEL_MOBILE` varchar(32) NOT NULL DEFAULT '',
  `PID_MATERIEL_MOBILE` varchar(32) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `NOM_FICHIER_CONTENU` longblob DEFAULT NULL,
  `NOM_FICHIER_NOM` varchar(100) NOT NULL DEFAULT '',
  `NOM_FICHIER_TAILLE` double NOT NULL DEFAULT 0,
  `NOM_FICHIER_TYPE` varchar(50) NOT NULL DEFAULT '',
  `NOM_FICHIER_DATE` datetime DEFAULT NULL,
  PRIMARY KEY (`ID_DOCUMENT_ARCHIVE_MATERIEL_MOBILE`),
  KEY `PID_MATERIEL_MOBILE` (`PID_MATERIEL_MOBILE`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `NOM_FICHIER_NOM` (`NOM_FICHIER_NOM`) USING BTREE,
  KEY `NOM_FICHIER_DATE` (`NOM_FICHIER_DATE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `document_archive_note`
--

CREATE TABLE `document_archive_note` (
  `ID_DOCUMENT_ARCHIVE_NOTE` varchar(32) NOT NULL DEFAULT '',
  `PID_NOTE_USER` varchar(32) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `N_DOSSIER` varchar(2) NOT NULL DEFAULT '',
  `NOM_FICHIER_CONTENU` longblob DEFAULT NULL,
  `NOM_FICHIER_NOM` varchar(100) NOT NULL DEFAULT '',
  `NOM_FICHIER_TAILLE` double NOT NULL DEFAULT 0,
  `NOM_FICHIER_TYPE` varchar(50) NOT NULL DEFAULT '',
  `NOM_FICHIER_DATE` datetime DEFAULT NULL,
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_DOCUMENT_ARCHIVE_NOTE`),
  KEY `PID_NOTE_USER` (`PID_NOTE_USER`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `NOM_FICHIER_NOM` (`NOM_FICHIER_NOM`) USING BTREE,
  KEY `NOM_FICHIER_DATE` (`NOM_FICHIER_DATE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `document_import_fichiers`
--

CREATE TABLE `document_import_fichiers` (
  `CODE_USER` varchar(10) NOT NULL DEFAULT '',
  `DATE_DEBUT` date DEFAULT NULL,
  `DATE_FIN` date DEFAULT NULL,
  `ID_DOCUMENT_IMPORT_FICHIERS` varchar(32) NOT NULL DEFAULT '',
  `N_DEBUT` varchar(15) NOT NULL DEFAULT '',
  `N_FIN` varchar(15) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TRAITE` char(1) NOT NULL DEFAULT '',
  `TYPE_IMPORT` varchar(50) NOT NULL DEFAULT '',
  `DATE_MAJ_BASE` date DEFAULT NULL,
  `NUMERO` double NOT NULL DEFAULT 0,
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_DOCUMENT_IMPORT_FICHIERS`),
  KEY `CODE_USER` (`CODE_USER`) USING BTREE,
  KEY `DATE_DEBUT` (`DATE_DEBUT`) USING BTREE,
  KEY `DATE_FIN` (`DATE_FIN`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `TRAITE` (`TRAITE`) USING BTREE,
  KEY `TYPE_IMPORT` (`TYPE_IMPORT`) USING BTREE,
  KEY `NUMERO` (`NUMERO`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `document_signature`
--

CREATE TABLE `document_signature` (
  `CODE_CLIENT` varchar(20) NOT NULL DEFAULT '',
  `DEST_1_ADR` varchar(50) NOT NULL DEFAULT '',
  `DEST_1_CIVILITE` varchar(5) NOT NULL DEFAULT '',
  `DEST_1_CP` varchar(10) NOT NULL DEFAULT '',
  `DEST_1_KEY` varchar(15) NOT NULL DEFAULT '',
  `DEST_1_MAIL` varchar(50) NOT NULL DEFAULT '',
  `DEST_1_NOM` varchar(25) NOT NULL DEFAULT '',
  `DEST_1_PRENOM` varchar(25) NOT NULL DEFAULT '',
  `DEST_1_VILLE` varchar(10) NOT NULL DEFAULT '',
  `DOCINFO1` varchar(50) NOT NULL DEFAULT '',
  `DOCINFO3` varchar(50) NOT NULL DEFAULT '',
  `DOCINFO4` varchar(50) NOT NULL DEFAULT '',
  `DOCINFO5` date DEFAULT NULL,
  `DOCINFO6` varchar(50) NOT NULL DEFAULT '',
  `DOCUUID_NUMERIA` varchar(50) NOT NULL DEFAULT '',
  `DOC_BASE_64_CLEAN` longblob DEFAULT NULL,
  `DOC_FICHIER_CONTENU` longblob DEFAULT NULL,
  `DOC_FICHIER_DATE` datetime DEFAULT NULL,
  `DOC_FICHIER_NOM` varchar(100) NOT NULL DEFAULT '',
  `DOC_FICHIER_TAILLE` double NOT NULL DEFAULT 0,
  `DOC_FICHIER_TYPE` varchar(50) NOT NULL DEFAULT '',
  `ERORCODE` varchar(15) NOT NULL DEFAULT '',
  `ID_DOCUMENT_SIGNATURE` varchar(32) NOT NULL DEFAULT '',
  `LOT_ENVOIE` char(1) NOT NULL DEFAULT '',
  `NOM` varchar(150) NOT NULL DEFAULT '',
  `NOM_TIERS` varchar(50) NOT NULL DEFAULT '',
  `PID_DOCUMENT_ARCHIVE` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `STATUS` varchar(10) NOT NULL DEFAULT '',
  `STATUSDATE` date DEFAULT NULL,
  `STATUSINFO` varchar(500) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS_INFOS_SALARIES` varchar(32) NOT NULL DEFAULT '',
  `ENVOIE_GROUPE_TIERS` char(1) NOT NULL DEFAULT '',
  `DOCINFO2` date DEFAULT NULL,
  `IDENT_EMPRUNT` varchar(32) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `DATE_ACTION_CIBLE` date DEFAULT NULL,
  `CP_OU_CG` varchar(3) NOT NULL DEFAULT '',
  `N_DOSSIER` decimal(12,0) NOT NULL DEFAULT 0,
  `SIGN_NB` decimal(12,0) NOT NULL DEFAULT 0,
  `NOM_MODL` varchar(50) NOT NULL DEFAULT '',
  `TEMPALTE_MAIL` blob DEFAULT NULL,
  PRIMARY KEY (`ID_DOCUMENT_SIGNATURE`),
  KEY `DOC_FICHIER_DATE` (`DOC_FICHIER_DATE`) USING BTREE,
  KEY `DOC_FICHIER_NOM` (`DOC_FICHIER_NOM`) USING BTREE,
  KEY `LOT_ENVOIE` (`LOT_ENVOIE`) USING BTREE,
  KEY `PID_DOCUMENT_ARCHIVE` (`PID_DOCUMENT_ARCHIVE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `PID_TIERS_INFOS_SALARIES` (`PID_TIERS_INFOS_SALARIES`) USING BTREE,
  KEY `IDENT_EMPRUNT` (`IDENT_EMPRUNT`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `document_signature_param_email`
--

CREATE TABLE `document_signature_param_email` (
  `ID_DOCUMENT_SIGNATURE_PARAM_EMAIL` varchar(32) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `NOM_MODL` varchar(50) NOT NULL DEFAULT '',
  `TEMPLATE_MAIL` blob DEFAULT NULL,
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_DOSSIER` decimal(12,0) NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_DOCUMENT_SIGNATURE_PARAM_EMAIL`),
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `document_signature_transit`
--

CREATE TABLE `document_signature_transit` (
  `DOC_FICHIER_CONTENU` longblob DEFAULT NULL,
  `DOC_FICHIER_DATE` datetime DEFAULT NULL,
  `DOC_FICHIER_NOM` varchar(100) NOT NULL DEFAULT '',
  `DOC_FICHIER_TAILLE` double NOT NULL DEFAULT 0,
  `DOC_FICHIER_TYPE` varchar(50) NOT NULL DEFAULT '',
  `ID_DOCUMENT_SIGNATURE_TRANSIT` varchar(32) NOT NULL DEFAULT '',
  `NOM` varchar(25) NOT NULL DEFAULT '',
  `PID_DOCUMENT_SIGNATURE` varchar(32) NOT NULL DEFAULT '',
  `PID_MODELE_DOCUMENT_OFFICE` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS_INFOS_SALARIES` varchar(32) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `ENVOIE_SIGN` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_DOCUMENT_SIGNATURE_TRANSIT`),
  KEY `DOC_FICHIER_DATE` (`DOC_FICHIER_DATE`) USING BTREE,
  KEY `DOC_FICHIER_NOM` (`DOC_FICHIER_NOM`) USING BTREE,
  KEY `PID_DOCUMENT_SIGNATURE` (`PID_DOCUMENT_SIGNATURE`) USING BTREE,
  KEY `PID_MODELE_DOCUMENT_OFFICE` (`PID_MODELE_DOCUMENT_OFFICE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `PID_TIERS_INFOS_SALARIES` (`PID_TIERS_INFOS_SALARIES`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `donnees_salaries`
--

CREATE TABLE `donnees_salaries` (
  `ANNEE_ANCIENNETE` double NOT NULL DEFAULT 0,
  `APTITUDE` varchar(10) NOT NULL DEFAULT '',
  `ARRET_TRAVAIL` varchar(10) NOT NULL DEFAULT '',
  `AR_ELECTRONIQUER` date DEFAULT NULL,
  `CERTIFICAT` varchar(10) NOT NULL DEFAULT '',
  `CERTIFICAT_FINAL` varchar(10) NOT NULL DEFAULT '',
  `CHARGES_SOCIALES_INCLUSES` double NOT NULL DEFAULT 0,
  `COMPENSATION_NBE_JOURS` double NOT NULL DEFAULT 0,
  `COMPENSATION_PAR_JOUR` double NOT NULL DEFAULT 0,
  `CONTESTATION_2_MOIS` varchar(10) NOT NULL DEFAULT '',
  `DATE_AT` date DEFAULT NULL,
  `DATE_DEBUT` date DEFAULT NULL,
  `DATE_DECLARATION_AT` date DEFAULT NULL,
  `DATE_ENTREE` date DEFAULT NULL,
  `DATE_FIN` date DEFAULT NULL,
  `DATE_VISITE_MEDICALE` date DEFAULT NULL,
  `DECLARATION_CPAM` date DEFAULT NULL,
  `FEUILLE_AT_MALADIE_PRO` date DEFAULT NULL,
  `ID_DONNEES_SALARIES` varchar(32) NOT NULL DEFAULT '',
  `INFO` varchar(20) NOT NULL DEFAULT '',
  `JOURS_CALENDAIRE` varchar(10) NOT NULL DEFAULT '',
  `MAINTIEN_SALAIRE_AU` date DEFAULT NULL,
  `MAINTIEN_SALAIRE_AU1` date DEFAULT NULL,
  `MAINTIEN_SALAIRE_AU2` date DEFAULT NULL,
  `MAINTIEN_SALAIRE_DU` date DEFAULT NULL,
  `MAINTIEN_SALAIRE_DU1` date DEFAULT NULL,
  `MAINTIEN_SALAIRE_DU2` date DEFAULT NULL,
  `MAINTIEN_SALAIRE_N_JOURS` varchar(10) NOT NULL DEFAULT '',
  `MAINTIEN_SALAIRE_N_JOURS1` double NOT NULL DEFAULT 0,
  `MAINTIEN_SALAIRE_N_JOURS2` double NOT NULL DEFAULT 0,
  `MEMO` blob DEFAULT NULL,
  `MOIS_COMPENSATION` varchar(10) NOT NULL DEFAULT '',
  `MONTANT_COMPENSATION` double NOT NULL DEFAULT 0,
  `MONTANT_COMPENSATION_NET` double NOT NULL DEFAULT 0,
  `NBRE_JOURS_COMPENSATION` double NOT NULL DEFAULT 0,
  `NOM` varchar(50) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NOTIFICATION_PRISE_EN_CHARGE_CPAM` date DEFAULT NULL,
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_JOURS_CARENCE` double NOT NULL DEFAULT 0,
  `N_JOURS_CARENCE_AU` date DEFAULT NULL,
  `N_JOURS_CARENCE_DU` date DEFAULT NULL,
  `PID_ACTION_INTERNE` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS_INFOS_SALARIES` varchar(32) NOT NULL DEFAULT '',
  `REMBOURSEMENT_SECU_JOUR` double NOT NULL DEFAULT 0,
  `RESULTAT_PRISE_EN_CHARGE_CPAM` varchar(50) NOT NULL DEFAULT '',
  `RETOUR_POSTE` date DEFAULT NULL,
  `SALAIRE_A_MAINTENIR` double NOT NULL DEFAULT 0,
  `SALAIRE_A_MAINTENIR_JOURS` double NOT NULL DEFAULT 0,
  `SALAIRE_A_MAINTENIR_PERIODE` double NOT NULL DEFAULT 0,
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TITRE` varchar(200) NOT NULL DEFAULT '',
  `TITRE2` varchar(200) NOT NULL DEFAULT '',
  `VISITE_MEDICALE_REPRISE` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_DONNEES_SALARIES`),
  KEY `APTITUDE` (`APTITUDE`) USING BTREE,
  KEY `ARRET_TRAVAIL` (`ARRET_TRAVAIL`) USING BTREE,
  KEY `AR_ELECTRONIQUER` (`AR_ELECTRONIQUER`) USING BTREE,
  KEY `CERTIFICAT` (`CERTIFICAT`) USING BTREE,
  KEY `CERTIFICAT_FINAL` (`CERTIFICAT_FINAL`) USING BTREE,
  KEY `CONTESTATION_2_MOIS` (`CONTESTATION_2_MOIS`) USING BTREE,
  KEY `DATE_AT` (`DATE_AT`) USING BTREE,
  KEY `DATE_DEBUT` (`DATE_DEBUT`) USING BTREE,
  KEY `DATE_DECLARATION_AT` (`DATE_DECLARATION_AT`) USING BTREE,
  KEY `DATE_ENTREE` (`DATE_ENTREE`) USING BTREE,
  KEY `DATE_FIN` (`DATE_FIN`) USING BTREE,
  KEY `DATE_VISITE_MEDICALE` (`DATE_VISITE_MEDICALE`) USING BTREE,
  KEY `DECLARATION_CPAM` (`DECLARATION_CPAM`) USING BTREE,
  KEY `FEUILLE_AT_MALADIE_PRO` (`FEUILLE_AT_MALADIE_PRO`) USING BTREE,
  KEY `INFO` (`INFO`) USING BTREE,
  KEY `NOM` (`NOM`) USING BTREE,
  KEY `PID_ACTION_INTERNE` (`PID_ACTION_INTERNE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `PID_TIERS_INFOS_SALARIES` (`PID_TIERS_INFOS_SALARIES`) USING BTREE,
  KEY `RETOUR_POSTE` (`RETOUR_POSTE`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `VISITE_MEDICALE_REPRISE` (`VISITE_MEDICALE_REPRISE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `donnees_salaries_maintien_salaire`
--

CREATE TABLE `donnees_salaries_maintien_salaire` (
  `COMPENSATION_BRUTE` double NOT NULL DEFAULT 0,
  `COMPENSATION_JOUR` double NOT NULL DEFAULT 0,
  `COMPENSATION_NET` double NOT NULL DEFAULT 0,
  `DEBUT` date DEFAULT NULL,
  `FIN` date DEFAULT NULL,
  `ID_DONNEES_SALARIES_MAINTIEN_SALAIRE` varchar(32) NOT NULL DEFAULT '',
  `N_JOURS` double NOT NULL DEFAULT 0,
  `PID_DONNEES_SALARIES` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `CATEGORIE_ACTION` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_DONNEES_SALARIES_MAINTIEN_SALAIRE`),
  KEY `DEBUT` (`DEBUT`) USING BTREE,
  KEY `FIN` (`FIN`) USING BTREE,
  KEY `PID_DONNEES_SALARIES` (`PID_DONNEES_SALARIES`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `doublon`
--

CREATE TABLE `doublon` (
  `ID_DOUBLON` varchar(32) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `RS` varchar(100) NOT NULL DEFAULT '',
  `VILLE` varchar(10) NOT NULL DEFAULT '',
  `CODE_CLIENT` varchar(40) NOT NULL DEFAULT '',
  `TVA_INTRA` varchar(30) NOT NULL DEFAULT '',
  `IDENT_TIERS` varchar(32) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `DOSSIER` varchar(200) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT1` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT2` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT3` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT4` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT5` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_FRS1` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_FRS2` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_FRS3` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_FRS4` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_FRS5` varchar(20) NOT NULL DEFAULT '',
  `FAIR` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_DOUBLON`),
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `CODE_CLIENT` (`CODE_CLIENT`) USING BTREE,
  KEY `TVA_INTRA` (`TVA_INTRA`) USING BTREE,
  KEY `IDENT_TIERS` (`IDENT_TIERS`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `droit_usage`
--

CREATE TABLE `droit_usage` (
  `ID_DROIT_USAGE` varchar(32) NOT NULL DEFAULT '',
  `NB_ANALYSE` double NOT NULL DEFAULT 0,
  `NB_COMPTA` double NOT NULL DEFAULT 0,
  `NB_COMPTA_ANALYTIQUE` double NOT NULL DEFAULT 0,
  `NB_CRM` double NOT NULL DEFAULT 0,
  `NB_GED` double NOT NULL DEFAULT 0,
  `NB_GES_CO` double NOT NULL DEFAULT 0,
  `NB_IMPORT` double NOT NULL DEFAULT 0,
  `NB_MARKETING` double NOT NULL DEFAULT 0,
  `NB_PARC` double NOT NULL DEFAULT 0,
  `NB_RGT` double NOT NULL DEFAULT 0,
  `NB_RH` double NOT NULL DEFAULT 0,
  `NB_SIGNATURE_ELEC` double NOT NULL DEFAULT 0,
  `NB_TRESO` double NOT NULL DEFAULT 0,
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `PID_AIDE_CONFIGURATION_ENTREPRISE` varchar(32) NOT NULL DEFAULT '',
  `PT_DOSS` double NOT NULL DEFAULT 0,
  `PU_ANALYSE` double NOT NULL DEFAULT 0,
  `PU_COMPTA` double NOT NULL DEFAULT 0,
  `PU_COMPTA_ANALYTIQUE` double NOT NULL DEFAULT 0,
  `PU_CRM` double NOT NULL DEFAULT 0,
  `PU_GED` double NOT NULL DEFAULT 0,
  `PU_GES_CO` double NOT NULL DEFAULT 0,
  `PU_IMPORT` double NOT NULL DEFAULT 0,
  `PU_MARKETING` double NOT NULL DEFAULT 0,
  `PU_PARC` double NOT NULL DEFAULT 0,
  `PU_RGT` double NOT NULL DEFAULT 0,
  `PU_RH` double NOT NULL DEFAULT 0,
  `PU_SIGNATURE_ELEC` double NOT NULL DEFAULT 0,
  `PU_TRESO` double NOT NULL DEFAULT 0,
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_DROIT_USAGE`),
  KEY `PID_AIDE_CONFIGURATION_ENTREPRISE` (`PID_AIDE_CONFIGURATION_ENTREPRISE`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `echantillon`
--

CREATE TABLE `echantillon` (
  `ADRESSE_1` varchar(38) NOT NULL DEFAULT '',
  `ADRESSE_2` varchar(38) NOT NULL DEFAULT '',
  `ADRESSE_SPECIFIQUE` char(1) NOT NULL DEFAULT '',
  `CIVILITE` varchar(12) NOT NULL DEFAULT '',
  `CODE_POSTAL` varchar(10) NOT NULL DEFAULT '',
  `COMMENTAIRE` blob DEFAULT NULL,
  `DATE_DEMANDE` date DEFAULT NULL,
  `DATE_LIVRAISON` date DEFAULT NULL,
  `EMETTEUR` varchar(25) NOT NULL DEFAULT '',
  `ID_ECHANTILLON` varchar(32) NOT NULL DEFAULT '',
  `NOM` varchar(36) NOT NULL DEFAULT '',
  `NUM_ECHANTILLON` varchar(18) NOT NULL DEFAULT '',
  `PAYS` varchar(43) NOT NULL DEFAULT '',
  `PHOTO` char(1) NOT NULL DEFAULT '',
  `PID_CONTACT` varchar(32) NOT NULL DEFAULT '',
  `PID_IDENTIFICATION` varchar(32) NOT NULL DEFAULT '',
  `PRENOM` varchar(36) NOT NULL DEFAULT '',
  `RAISON` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `VALORISATION` double NOT NULL DEFAULT 0,
  `VILLE` varchar(35) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_ECHANTILLON`),
  KEY `NUM_ECHANTILLON` (`NUM_ECHANTILLON`) USING BTREE,
  KEY `PID_IDENTIFICATION` (`PID_IDENTIFICATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `emailing`
--

CREATE TABLE `emailing` (
  `COPIE_BCC` varchar(200) NOT NULL DEFAULT '',
  `COPIE_CC` varchar(200) NOT NULL DEFAULT '',
  `DATE` date DEFAULT NULL,
  `ID_EMAILING` varchar(32) NOT NULL DEFAULT '',
  `MESSAGE_HTML` varchar(100) NOT NULL DEFAULT '',
  `MESSAGE_TXT` varchar(100) NOT NULL DEFAULT '',
  `NO_EMAILING` varchar(9) NOT NULL DEFAULT '',
  `PIECES_JOINTES` varchar(200) NOT NULL DEFAULT '',
  `SUJET` varchar(100) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TITRE` varchar(80) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_EMAILING`),
  KEY `NO_EMAILING` (`NO_EMAILING`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `failed_jobs`
--

CREATE TABLE `failed_jobs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `uuid` varchar(255) NOT NULL,
  `connection` text NOT NULL,
  `queue` text NOT NULL,
  `payload` longtext NOT NULL,
  `exception` longtext NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Table structure for table `financement`
--

CREATE TABLE `financement` (
  `ID_FINANCEMENT` varchar(32) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `MENSUALITE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DATE` date DEFAULT NULL,
  `INTITULE` varchar(100) NOT NULL DEFAULT '',
  `TYPE_FINANCEMENT` varchar(20) NOT NULL DEFAULT '',
  `IDENT_ORIGINE` varchar(32) NOT NULL DEFAULT '',
  `MONTANT_FI` decimal(12,2) NOT NULL DEFAULT 0.00,
  `FINANCEUR` varchar(40) NOT NULL DEFAULT '',
  `IDENT_ORIGINE_ET` varchar(32) NOT NULL DEFAULT '',
  `DEBUT` date DEFAULT NULL,
  `FIN` date DEFAULT NULL,
  `SORTIE` date DEFAULT NULL,
  `TERME` varchar(10) NOT NULL DEFAULT '',
  `INTERET` double NOT NULL DEFAULT 0,
  `ASSURANCES` double NOT NULL DEFAULT 0,
  `MULTIPLE` double NOT NULL DEFAULT 0,
  `DEBUT_PERIODE` date DEFAULT NULL,
  `FIN_PERIODE` date DEFAULT NULL,
  `FINANCEUR_FINANCEUR` varchar(1000) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(100) NOT NULL DEFAULT '',
  `N_DOSSIER_N_DOSSIER` varchar(200) NOT NULL DEFAULT '',
  `TYPE_TYPE_FINANCEMENT` varchar(100) NOT NULL DEFAULT '',
  `PERIODICITE` varchar(20) NOT NULL DEFAULT '',
  `VR` double NOT NULL DEFAULT 0,
  `CAPITAL` decimal(12,2) NOT NULL DEFAULT 0.00,
  `NOM_TRESO` varchar(10) NOT NULL DEFAULT '',
  `NUMERO` varchar(10) NOT NULL DEFAULT '',
  `SORTIE_GLOBALE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_FINANCEMENT`),
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `INTITULE` (`INTITULE`) USING BTREE,
  KEY `IDENT_ORIGINE` (`IDENT_ORIGINE`) USING BTREE,
  KEY `IDENT_ORIGINE_ET` (`IDENT_ORIGINE_ET`) USING BTREE,
  KEY `FIN` (`FIN`) USING BTREE,
  KEY `SORTIE` (`SORTIE`) USING BTREE,
  KEY `TERME` (`TERME`) USING BTREE,
  KEY `DEBUT_PERIODE` (`DEBUT_PERIODE`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `PERIODICITE` (`PERIODICITE`) USING BTREE,
  KEY `FINANCEUR` (`FINANCEUR`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_achat_archive_avoir_det`
--

CREATE TABLE `ges_co_document_achat_archive_avoir_det` (
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `CODE_ATELIER` varchar(10) NOT NULL DEFAULT '',
  `CONTREMARQUE` varchar(100) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_ACHAT_AVOIR_DET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `INFO_CPTA_KO_GLOBAL` double NOT NULL DEFAULT 0,
  `LIGNE_VERIFIE` char(1) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_AVOIR` varchar(10) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_BL` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_ACHAT` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(20) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_ACHAT_AVOIR_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,3) NOT NULL DEFAULT 0.000,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,3) NOT NULL DEFAULT 0.000,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `QUANTITE_STOCK` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(100) NOT NULL DEFAULT '',
  `STOCK` char(1) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TOTAL_ANA` decimal(12,0) NOT NULL DEFAULT 0,
  `TVA` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_ACHAT_AVOIR_DET`),
  KEY `CODE_ATELIER` (`CODE_ATELIER`) USING BTREE,
  KEY `CONTREMARQUE` (`CONTREMARQUE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `IDENT_BC_FRS_DET` (`IDENT_BC_FRS_DET`) USING BTREE,
  KEY `IDENT_BC_FRS_ET` (`IDENT_BC_FRS_ET`) USING BTREE,
  KEY `IDENT_BL_FRS_DET` (`IDENT_BL_FRS_DET`) USING BTREE,
  KEY `IDENT_BL_FRS_ET` (`IDENT_BL_FRS_ET`) USING BTREE,
  KEY `IDENT_FACT_FRS_DET` (`IDENT_FACT_FRS_DET`) USING BTREE,
  KEY `IDENT_FACT_FRS_ET` (`IDENT_FACT_FRS_ET`) USING BTREE,
  KEY `IDENT_MATERIEL_ET` (`IDENT_MATERIEL_ET`) USING BTREE,
  KEY `INFO_CPTA_KO_GLOBAL` (`INFO_CPTA_KO_GLOBAL`) USING BTREE,
  KEY `LIGNE_VERIFIE` (`LIGNE_VERIFIE`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_AVOIR` (`N_AVOIR`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_GENERAL_ACHAT` (`N_CPTE_GENERAL_ACHAT`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_FACT` (`N_FACT`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_ACHAT_AVOIR_ET` (`PID_GES_CO_DOCUMENT_ACHAT_AVOIR_ET`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `QUANTITE_STOCK` (`QUANTITE_STOCK`) USING BTREE,
  KEY `REFERENCE` (`REFERENCE`) USING BTREE,
  KEY `STOCK` (`STOCK`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_achat_archive_avoir_et`
--

CREATE TABLE `ges_co_document_achat_archive_avoir_et` (
  `ADR1_LIV` varchar(50) NOT NULL DEFAULT '',
  `ADR2_LIV` varchar(50) NOT NULL DEFAULT '',
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CONTREMARQUES` varchar(100) NOT NULL DEFAULT '',
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `CP` varchar(5) NOT NULL DEFAULT '',
  `CP_LIV` varchar(15) NOT NULL DEFAULT '',
  `DATE` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DATE_RECEPTION` date DEFAULT NULL,
  `DEPOT` varchar(20) NOT NULL DEFAULT '',
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `ELEMENTS_ARTICLE_CPTA_OK` char(1) NOT NULL DEFAULT '',
  `ELEMENTS_CODE_ATELIER_CPTA_OK` char(1) NOT NULL DEFAULT '',
  `ESCOMPTE` double NOT NULL DEFAULT 0,
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `FOURNISSEUR_LIV` varchar(50) NOT NULL DEFAULT '',
  `IDENTIFICATION_FACT_HA_REGROUP` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_ECRITURE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_ACHAT_AVOIR_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `IMPRESSION_AVOIR` char(1) NOT NULL DEFAULT '',
  `KM` double NOT NULL DEFAULT 0,
  `LIGNES_VERIFIEES` char(1) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DEPOT` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NOM_TAXE_PAIEMENT_CONTREPARTIE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TRESO` varchar(40) NOT NULL DEFAULT '',
  `NOM_TRESO_CONTREPARIE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT_CONTREPARTIE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_TVA` varchar(20) NOT NULL DEFAULT '',
  `N_AVOIR` varchar(11) NOT NULL DEFAULT '',
  `N_BC` varchar(20) NOT NULL DEFAULT '',
  `N_BL` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_BILAN_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_CPTE_TIERS_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_ECRITURE` varchar(15) NOT NULL DEFAULT '',
  `N_FACT` varchar(20) NOT NULL DEFAULT '',
  `N_FACT_REGROUPEMENT` varchar(20) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `N_PIECE_FOURNISSEUR` varchar(20) NOT NULL DEFAULT '',
  `N_TRESO` double NOT NULL DEFAULT 0,
  `N_TRESO_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TYPE_RGT` double NOT NULL DEFAULT 0,
  `N_TYPE_RGT_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TYPE_TVA` double NOT NULL DEFAULT 0,
  `PHASE` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRENOME` varchar(40) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `REF` varchar(20) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(30) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL_LIV` varchar(15) NOT NULL DEFAULT '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `VILLE_LIV` varchar(50) NOT NULL DEFAULT '',
  `COMPTAGE_LIGNE` decimal(12,0) NOT NULL DEFAULT 0,
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_ACHAT_AVOIR_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_ECHEANCE` (`DATE_ECHEANCE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `DATE_RECEPTION` (`DATE_RECEPTION`) USING BTREE,
  KEY `DEPOT` (`DEPOT`) USING BTREE,
  KEY `FOURNISSEUR_LIV` (`FOURNISSEUR_LIV`) USING BTREE,
  KEY `IDENTIFICATION_FACT_HA_REGROUP` (`IDENTIFICATION_FACT_HA_REGROUP`) USING BTREE,
  KEY `IDENT_BC_FRS_ET` (`IDENT_BC_FRS_ET`) USING BTREE,
  KEY `IDENT_BL_FRS_ET` (`IDENT_BL_FRS_ET`) USING BTREE,
  KEY `IDENT_FACT_FRS_ET` (`IDENT_FACT_FRS_ET`) USING BTREE,
  KEY `IMPRESSION_AVOIR` (`IMPRESSION_AVOIR`) USING BTREE,
  KEY `LIGNES_VERIFIEES` (`LIGNES_VERIFIEES`) USING BTREE,
  KEY `NOM_DEPOT` (`NOM_DEPOT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_AVOIR` (`N_AVOIR`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `N_CPTE_BILAN_CONTREPARTIE` (`N_CPTE_BILAN_CONTREPARTIE`) USING BTREE,
  KEY `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` (`N_CPTE_GENERAL_ACHAT_CONTREPARTIE`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_FACT` (`N_FACT`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `N_TRESO` (`N_TRESO`) USING BTREE,
  KEY `N_TYPE_TVA` (`N_TYPE_TVA`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `SUPPRESSION_DEFINITIVE` (`SUPPRESSION_DEFINITIVE`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_achat_archive_bc_det`
--

CREATE TABLE `ges_co_document_achat_archive_bc_det` (
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `CODE_ATELIER` varchar(10) NOT NULL DEFAULT '',
  `CODE_PC` varchar(150) NOT NULL DEFAULT '',
  `CONTREMARQUE` varchar(100) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DEPOT` varchar(20) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `DEVISE` double NOT NULL DEFAULT 0,
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(10) NOT NULL DEFAULT '',
  `IDENT_OR` varchar(32) NOT NULL DEFAULT '',
  `IDENT_OR_DET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_ACHAT_BC_DET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `LIVRAISON_OK` char(1) NOT NULL DEFAULT '',
  `MAJ_Q_ARTICLE` char(1) NOT NULL DEFAULT '',
  `MAJ_Q_STOCK` char(1) NOT NULL DEFAULT '',
  `MODELE` varchar(50) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_BC_REGROUP` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_ACHAT` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_DEPOT` double NOT NULL DEFAULT 0,
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_LIGNE` double NOT NULL DEFAULT 0,
  `PID_GES_CO_DOCUMENT_ACHAT_BC_ET` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,3) NOT NULL DEFAULT 0.000,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,3) NOT NULL DEFAULT 0.000,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(100) NOT NULL DEFAULT '',
  `STOCK_SUIVI` char(1) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TOTAL_ANA` decimal(12,0) NOT NULL DEFAULT 0,
  `TVA` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_ACHAT_BC_DET`),
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `DEPOT` (`DEPOT`) USING BTREE,
  KEY `DEVISE` (`DEVISE`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_CPTE_GENERAL_ACHAT` (`N_CPTE_GENERAL_ACHAT`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_LIGNE` (`N_LIGNE`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_ACHAT_BC_ET` (`PID_GES_CO_DOCUMENT_ACHAT_BC_ET`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_achat_archive_bc_et`
--

CREATE TABLE `ges_co_document_achat_archive_bc_et` (
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `AFFRETEMENT` char(1) NOT NULL DEFAULT '',
  `AFFRETEMENT_ADRESSE_CHARGEMENT` varchar(200) NOT NULL DEFAULT '',
  `AFFRETEMENT_ADRESSE_DECHARGEMENT` varchar(200) NOT NULL DEFAULT '',
  `AFFRETEMENT_CODE_TIERS_CHARGEMENT` varchar(32) NOT NULL DEFAULT '',
  `AFFRETEMENT_CODE_TIERS_DECHARGEMENT` varchar(32) NOT NULL DEFAULT '',
  `AFFRETEMENT_DATE_CHARGEMENT` date DEFAULT NULL,
  `AFFRETEMENT_DATE_DECHARGEMENT` date DEFAULT NULL,
  `AFFRETEMENT_HEURE_CHARGEMENT` time NOT NULL DEFAULT '00:00:00',
  `AFFRETEMENT_HEURE_DECHARGEMENT` time NOT NULL DEFAULT '00:00:00',
  `AFFRETEMENT_IDENT_TIERS_CHARGEMENT` varchar(32) NOT NULL DEFAULT '',
  `AFFRETEMENT_IDENT_TIERS_DECHARGEMENT` varchar(32) NOT NULL DEFAULT '',
  `AFFRETEMENT_NOM_TIERS_CHARGEMENT` varchar(100) NOT NULL DEFAULT '',
  `AFFRETEMENT_NOM_TIERS_DECHARGEMENT` varchar(100) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `CODE_PC` varchar(150) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CONTREMARQUES` varchar(100) NOT NULL DEFAULT '',
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `CP` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DATE_LIVRAISON_PREVUE` date DEFAULT NULL,
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `ESCOMPTE` double NOT NULL DEFAULT 0,
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_OR` varchar(32) NOT NULL DEFAULT '',
  `IDENT_OR_DET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_ACHAT_BC_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `IMPRESSION_BC` char(1) NOT NULL DEFAULT '',
  `KM` double NOT NULL DEFAULT 0,
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(11) NOT NULL DEFAULT '',
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `PHASE` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRENOM` varchar(40) NOT NULL DEFAULT '',
  `PREPA_COMMANDE` char(1) NOT NULL DEFAULT '',
  `PREPA_COMPTA` char(1) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `REF` varchar(20) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(30) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL` varchar(15) NOT NULL DEFAULT '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_ACHAT_BC_ET`),
  KEY `AFFRETEMENT` (`AFFRETEMENT`) USING BTREE,
  KEY `AFFRETEMENT_ADRESSE_CHARGEMENT` (`AFFRETEMENT_ADRESSE_CHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_ADRESSE_DECHARGEMENT` (`AFFRETEMENT_ADRESSE_DECHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_CODE_TIERS_CHARGEMENT` (`AFFRETEMENT_CODE_TIERS_CHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_CODE_TIERS_DECHARGEMENT` (`AFFRETEMENT_CODE_TIERS_DECHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_DATE_CHARGEMENT` (`AFFRETEMENT_DATE_CHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_DATE_DECHARGEMENT` (`AFFRETEMENT_DATE_DECHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_HEURE_CHARGEMENT` (`AFFRETEMENT_HEURE_CHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_HEURE_DECHARGEMENT` (`AFFRETEMENT_HEURE_DECHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_IDENT_TIERS_CHARGEMENT` (`AFFRETEMENT_IDENT_TIERS_CHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_IDENT_TIERS_DECHARGEMENT` (`AFFRETEMENT_IDENT_TIERS_DECHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_NOM_TIERS_CHARGEMENT` (`AFFRETEMENT_NOM_TIERS_CHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_NOM_TIERS_DECHARGEMENT` (`AFFRETEMENT_NOM_TIERS_DECHARGEMENT`) USING BTREE,
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `CP` (`CP`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_ECHEANCE` (`DATE_ECHEANCE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `DATE_LIVRAISON_PREVUE` (`DATE_LIVRAISON_PREVUE`) USING BTREE,
  KEY `IMPRESSION_BC` (`IMPRESSION_BC`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `PREPA_COMPTA` (`PREPA_COMPTA`) USING BTREE,
  KEY `RAISON_SOCIALE` (`RAISON_SOCIALE`) USING BTREE,
  KEY `SUIVI_PAR` (`SUIVI_PAR`) USING BTREE,
  KEY `SUPPRESSION_DEFINITIVE` (`SUPPRESSION_DEFINITIVE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_achat_archive_bl_det`
--

CREATE TABLE `ges_co_document_achat_archive_bl_det` (
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `CODE_ATELIER` varchar(10) NOT NULL DEFAULT '',
  `COMPTEUR_INHIB_FA_DET` double NOT NULL DEFAULT 0,
  `CONTREMARQUE` varchar(20) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DATE_RECEPTION` date DEFAULT NULL,
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `FACTURE_PARTIELLE` char(1) NOT NULL DEFAULT '',
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_ACHAT_BL_DET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `LIGNE_CLOTURE` char(1) NOT NULL DEFAULT '',
  `LIGNE_VERIFIE` char(1) NOT NULL DEFAULT '',
  `MANQUANT` char(1) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(20) NOT NULL DEFAULT '',
  `N_BL` varchar(20) NOT NULL DEFAULT '',
  `N_BL_REGROUP` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_ACHAT` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(10) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_ACHAT_BL_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,3) NOT NULL DEFAULT 0.000,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,3) NOT NULL DEFAULT 0.000,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `QUANTITE_MANQUANTE` double NOT NULL DEFAULT 0,
  `QUANTITE_PREPA` double NOT NULL DEFAULT 0,
  `QUANTITE_RECUE` double NOT NULL DEFAULT 0,
  `RECU` char(1) NOT NULL DEFAULT '',
  `RECUS_TARD` char(1) NOT NULL DEFAULT '',
  `REFERENCE` varchar(30) NOT NULL DEFAULT '',
  `SPLITED_ROW` varchar(10) NOT NULL DEFAULT '',
  `STOCK` char(1) NOT NULL DEFAULT '',
  `STOCK_EXISTE` char(1) NOT NULL DEFAULT '',
  `STOCK_METHODE` varchar(20) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TOTAL_ANA` double NOT NULL DEFAULT 0,
  `TVA` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_ACHAT_BL_DET`),
  KEY `COMPTEUR_INHIB_FA_DET` (`COMPTEUR_INHIB_FA_DET`) USING BTREE,
  KEY `CONTREMARQUE` (`CONTREMARQUE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `IDENT_BC_FRS_DET` (`IDENT_BC_FRS_DET`) USING BTREE,
  KEY `IDENT_BC_FRS_ET` (`IDENT_BC_FRS_ET`) USING BTREE,
  KEY `IDENT_MATERIEL_ET` (`IDENT_MATERIEL_ET`) USING BTREE,
  KEY `MANQUANT` (`MANQUANT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_GENERAL_ACHAT` (`N_CPTE_GENERAL_ACHAT`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_ACHAT_BL_ET` (`PID_GES_CO_DOCUMENT_ACHAT_BL_ET`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `REFERENCE` (`REFERENCE`) USING BTREE,
  KEY `STOCK` (`STOCK`) USING BTREE,
  KEY `STOCK_EXISTE` (`STOCK_EXISTE`) USING BTREE,
  KEY `STOCK_METHODE` (`STOCK_METHODE`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_achat_archive_bl_et`
--

CREATE TABLE `ges_co_document_achat_archive_bl_et` (
  `ADR1_LIV` varchar(50) NOT NULL DEFAULT '',
  `ADR2_LIV` varchar(50) NOT NULL DEFAULT '',
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `CLOTURE_AUTO` char(1) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CONTREMARQUES` varchar(100) NOT NULL DEFAULT '',
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `CP` varchar(5) NOT NULL DEFAULT '',
  `CP_LIV` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_FACTURE_ACHAT_REGROUPEMENT` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DATE_RECEPTION` date DEFAULT NULL,
  `DEPOT` varchar(20) NOT NULL DEFAULT '',
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `ESCOMPTE` double NOT NULL DEFAULT 0,
  `FACTURE_PARTIELLE` char(1) NOT NULL DEFAULT '',
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `FOURNISSEUR_LIV` varchar(50) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_ACHAT_BL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `IMPRESSION_BL` char(1) NOT NULL DEFAULT '',
  `KM` double NOT NULL DEFAULT 0,
  `LIGNES_VERIFIEES` char(1) NOT NULL DEFAULT '',
  `LIVRAISON_PARTIELLE` char(1) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DEPOT` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(20) NOT NULL DEFAULT '',
  `N_BL` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_CPTRE_GENERAL_ACHAT` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT_REGROUPEMENT` varchar(11) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `PHASE` varchar(10) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRENOM` varchar(40) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `REF` varchar(20) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(30) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL_LIV` varchar(15) NOT NULL DEFAULT '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `VILLE_LIV` varchar(50) NOT NULL DEFAULT '',
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_ACHAT_BL_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `CLOTURE_AUTO` (`CLOTURE_AUTO`) USING BTREE,
  KEY `CP_LIV` (`CP_LIV`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `DEPOT` (`DEPOT`) USING BTREE,
  KEY `ESCOMPTE` (`ESCOMPTE`) USING BTREE,
  KEY `FOURNISSEUR_LIV` (`FOURNISSEUR_LIV`) USING BTREE,
  KEY `IDENT_BC_FRS_ET` (`IDENT_BC_FRS_ET`) USING BTREE,
  KEY `IDENT_MATERIEL_ET` (`IDENT_MATERIEL_ET`) USING BTREE,
  KEY `IMPRESSION_BL` (`IMPRESSION_BL`) USING BTREE,
  KEY `LIGNES_VERIFIEES` (`LIGNES_VERIFIEES`) USING BTREE,
  KEY `NOM_DEPOT` (`NOM_DEPOT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `N_CPTRE_GENERAL_ACHAT` (`N_CPTRE_GENERAL_ACHAT`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_FACT_REGROUPEMENT` (`N_FACT_REGROUPEMENT`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `SUPPRESSION_DEFINITIVE` (`SUPPRESSION_DEFINITIVE`) USING BTREE,
  KEY `TEL_LIV` (`TEL_LIV`) USING BTREE,
  KEY `VILLE_LIV` (`VILLE_LIV`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_achat_archive_fact_det`
--

CREATE TABLE `ges_co_document_achat_archive_fact_det` (
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `CODE_ATELIER` varchar(10) NOT NULL DEFAULT '',
  `CONTREMARQUE` varchar(100) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `DEVISE` double NOT NULL DEFAULT 0,
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AVOIR_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_ACHAT_FACT_DET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `INFO_CPTA_KO_GLOBAL` double NOT NULL DEFAULT 0,
  `LIGNE_VERIFIE` char(1) NOT NULL DEFAULT '',
  `MAJ_Q_ARTICLE` char(1) NOT NULL DEFAULT '',
  `MAJ_Q_STOCK` char(1) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_BL` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_ACHAT` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_DEPOT` double NOT NULL DEFAULT 0,
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(20) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_ACHAT_FACT_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,3) NOT NULL DEFAULT 0.000,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,3) NOT NULL DEFAULT 0.000,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `QUANTITE_STOCK` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(100) NOT NULL DEFAULT '',
  `STOCK` char(1) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TOTAL_ANA` decimal(12,0) NOT NULL DEFAULT 0,
  `TVA` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `TYPE_ENTRETIEN` varchar(50) NOT NULL DEFAULT '',
  `TYPE_ENTRETIEN_NUMERO` double NOT NULL DEFAULT 0,
  `TYPE_MATERIEL` varchar(20) NOT NULL DEFAULT '',
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  `ANP1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `ANP2` decimal(12,2) NOT NULL DEFAULT 0.00,
  `ANP3` decimal(12,2) NOT NULL DEFAULT 0.00,
  `ANP4` decimal(12,2) NOT NULL DEFAULT 0.00,
  `ANP5` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PASSAGE_ENTRETIEN_OK` char(1) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_ACHAT_FACT_DET`),
  KEY `CONTREMARQUE` (`CONTREMARQUE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `IDENT_AVOIR_FRS_DET` (`IDENT_AVOIR_FRS_DET`) USING BTREE,
  KEY `IDENT_BC_FRS_DET` (`IDENT_BC_FRS_DET`) USING BTREE,
  KEY `IDENT_BC_FRS_ET` (`IDENT_BC_FRS_ET`) USING BTREE,
  KEY `IDENT_BL_FRS_DET` (`IDENT_BL_FRS_DET`) USING BTREE,
  KEY `IDENT_BL_FRS_ET` (`IDENT_BL_FRS_ET`) USING BTREE,
  KEY `IDENT_MATERIEL_ET` (`IDENT_MATERIEL_ET`) USING BTREE,
  KEY `INFO_CPTA_KO_GLOBAL` (`INFO_CPTA_KO_GLOBAL`) USING BTREE,
  KEY `LIGNE_VERIFIE` (`LIGNE_VERIFIE`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_GENERAL_ACHAT` (`N_CPTE_GENERAL_ACHAT`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_ACHAT_FACT_ET` (`PID_GES_CO_DOCUMENT_ACHAT_FACT_ET`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `QUANTITE_STOCK` (`QUANTITE_STOCK`) USING BTREE,
  KEY `REFERENCE` (`REFERENCE`) USING BTREE,
  KEY `STOCK` (`STOCK`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `TYPE_ENTRETIEN_NUMERO` (`TYPE_ENTRETIEN_NUMERO`) USING BTREE,
  KEY `TYPE_MATERIEL` (`TYPE_MATERIEL`) USING BTREE,
  KEY `ANS_MAN` (`ANS_MAN`) USING BTREE,
  KEY `PASSAGE_ENTRETIEN_OK` (`PASSAGE_ENTRETIEN_OK`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_achat_archive_fact_et`
--

CREATE TABLE `ges_co_document_achat_archive_fact_et` (
  `ADR1_LIV` varchar(50) NOT NULL DEFAULT '',
  `ADR2_LIV` varchar(50) NOT NULL DEFAULT '',
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CONTREMARQUES` varchar(100) NOT NULL DEFAULT '',
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `CP` varchar(5) NOT NULL DEFAULT '',
  `CP_LIV` varchar(15) NOT NULL DEFAULT '',
  `DATE` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DATE_RECEPTION` date DEFAULT NULL,
  `DEPOT` varchar(20) NOT NULL DEFAULT '',
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `ELEMENTS_ARTICLE_CPTA_OK` char(1) NOT NULL DEFAULT '',
  `ELEMENTS_CODE_ATELIER_CPTA_OK` char(1) NOT NULL DEFAULT '',
  `ESCOMPTE` double NOT NULL DEFAULT 0,
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `FOURNISSEUR_LIV` varchar(50) NOT NULL DEFAULT '',
  `IDENTIFICATION_FACT_HA_REGROUP` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_ECRITURE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ENTRETIEN_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_ACHAT_FACT_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `IMPRESSION_FACT` char(1) NOT NULL DEFAULT '',
  `KM` double NOT NULL DEFAULT 0,
  `LIGNES_VERIFIEES` char(1) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DEPOT` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NOM_TAXE_PAIEMENT_CONTREPARTIE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TRESO` varchar(20) NOT NULL DEFAULT '',
  `NOM_TRESO_CONTREPARTIE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT_CONTREPARTIE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_TVA` varchar(20) NOT NULL DEFAULT '',
  `N_BC` varchar(20) NOT NULL DEFAULT '',
  `N_BL` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_BILAN_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_CPTE_TIERS_CONTREPARTIE` varchar(30) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_ECRITURE` varchar(15) NOT NULL DEFAULT '',
  `N_FACT` varchar(11) NOT NULL DEFAULT '',
  `N_FAC_REGROUPEMENT` varchar(20) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `N_PIECE_FOURNISSEUR` varchar(20) NOT NULL DEFAULT '',
  `N_TRESO` double NOT NULL DEFAULT 0,
  `N_TRESO_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_TYPE_RGT` double NOT NULL DEFAULT 0,
  `N_TYPE_RGT_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TYPE_TVA` double NOT NULL DEFAULT 0,
  `PHASE` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRENOM` varchar(40) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `REF` varchar(20) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(30) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL_LIV` varchar(15) NOT NULL DEFAULT '',
  `TRANSFERT_COMPTA` char(1) NOT NULL DEFAULT '',
  `TX_CHANGE_12` double NOT NULL DEFAULT 0,
  `TX_CHANGE_21` double NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `VILLE_LIV` varchar(50) NOT NULL DEFAULT '',
  `ENTRETIEN_FACT` char(1) NOT NULL DEFAULT '',
  `COMPTAGE_LIGNE` decimal(12,0) NOT NULL DEFAULT 0,
  `TYPE_MATERIEL` varchar(30) NOT NULL DEFAULT '',
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_ACHAT_FACT_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_ECHEANCE` (`DATE_ECHEANCE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `DATE_RECEPTION` (`DATE_RECEPTION`) USING BTREE,
  KEY `DEPOT` (`DEPOT`) USING BTREE,
  KEY `DEVISE_1` (`DEVISE_1`) USING BTREE,
  KEY `FOURNISSEUR_LIV` (`FOURNISSEUR_LIV`) USING BTREE,
  KEY `IDENTIFICATION_FACT_HA_REGROUP` (`IDENTIFICATION_FACT_HA_REGROUP`) USING BTREE,
  KEY `IDENT_BC_FRS_ET` (`IDENT_BC_FRS_ET`) USING BTREE,
  KEY `IDENT_BL_FRS_ET` (`IDENT_BL_FRS_ET`) USING BTREE,
  KEY `IDENT_FACT_FRS_ET` (`IDENT_FACT_FRS_ET`) USING BTREE,
  KEY `IDENT_MATERIEL_ET` (`IDENT_MATERIEL_ET`) USING BTREE,
  KEY `IMPRESSION_FACT` (`IMPRESSION_FACT`) USING BTREE,
  KEY `LIGNES_VERIFIEES` (`LIGNES_VERIFIEES`) USING BTREE,
  KEY `NOM_DEPOT` (`NOM_DEPOT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `NOM_TYPE_TVA` (`NOM_TYPE_TVA`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `N_CPTE_BILAN_CONTREPARTIE` (`N_CPTE_BILAN_CONTREPARTIE`) USING BTREE,
  KEY `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` (`N_CPTE_GENERAL_ACHAT_CONTREPARTIE`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_FACT` (`N_FACT`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `N_TRESO` (`N_TRESO`) USING BTREE,
  KEY `N_TYPE_RGT` (`N_TYPE_RGT`) USING BTREE,
  KEY `N_TYPE_TVA` (`N_TYPE_TVA`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `SUPPRESSION_DEFINITIVE` (`SUPPRESSION_DEFINITIVE`) USING BTREE,
  KEY `ENTRETIEN_FACT` (`ENTRETIEN_FACT`) USING BTREE,
  KEY `TYPE_MATERIEL` (`TYPE_MATERIEL`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_achat_avoir_det`
--

CREATE TABLE `ges_co_document_achat_avoir_det` (
  `CONTREMARQUE` varchar(100) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_ACHAT_AVOIR_DET` varchar(32) NOT NULL DEFAULT '',
  `LIGNE_VERIFIE` char(1) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_AVOIR` varchar(10) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_BL` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_ACHAT` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(20) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_ACHAT_AVOIR_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,3) NOT NULL DEFAULT 0.000,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `QUANTITE_STOCK` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(100) NOT NULL DEFAULT '',
  `STOCK` char(1) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TVA` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `CODE_ATELIER` varchar(10) NOT NULL DEFAULT '',
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,3) NOT NULL DEFAULT 0.000,
  `TOTAL_ANA` decimal(12,0) NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `INFO_CPTA_KO_GLOBAL` double NOT NULL DEFAULT 0,
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_ACHAT_AVOIR_DET`),
  KEY `CONTREMARQUE` (`CONTREMARQUE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `IDENT_BC_FRS_DET` (`IDENT_BC_FRS_DET`) USING BTREE,
  KEY `IDENT_BC_FRS_ET` (`IDENT_BC_FRS_ET`) USING BTREE,
  KEY `IDENT_BL_FRS_DET` (`IDENT_BL_FRS_DET`) USING BTREE,
  KEY `IDENT_BL_FRS_ET` (`IDENT_BL_FRS_ET`) USING BTREE,
  KEY `IDENT_FACT_FRS_DET` (`IDENT_FACT_FRS_DET`) USING BTREE,
  KEY `IDENT_FACT_FRS_ET` (`IDENT_FACT_FRS_ET`) USING BTREE,
  KEY `LIGNE_VERIFIE` (`LIGNE_VERIFIE`) USING BTREE,
  KEY `N_AVOIR` (`N_AVOIR`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_GENERAL_ACHAT` (`N_CPTE_GENERAL_ACHAT`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_FACT` (`N_FACT`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_ACHAT_AVOIR_ET` (`PID_GES_CO_DOCUMENT_ACHAT_AVOIR_ET`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `QUANTITE_STOCK` (`QUANTITE_STOCK`) USING BTREE,
  KEY `REFERENCE` (`REFERENCE`) USING BTREE,
  KEY `STOCK` (`STOCK`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `CODE_ATELIER` (`CODE_ATELIER`) USING BTREE,
  KEY `IDENT_MATERIEL_ET` (`IDENT_MATERIEL_ET`) USING BTREE,
  KEY `INFO_CPTA_KO_GLOBAL` (`INFO_CPTA_KO_GLOBAL`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_achat_avoir_et`
--

CREATE TABLE `ges_co_document_achat_avoir_et` (
  `ADR1_LIV` varchar(50) NOT NULL DEFAULT '',
  `ADR2_LIV` varchar(50) NOT NULL DEFAULT '',
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CONTREMARQUES` varchar(100) NOT NULL DEFAULT '',
  `CP` varchar(5) NOT NULL DEFAULT '',
  `CP_LIV` varchar(15) NOT NULL DEFAULT '',
  `DATE` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DATE_RECEPTION` date DEFAULT NULL,
  `DEPOT` varchar(20) NOT NULL DEFAULT '',
  `ESCOMPTE` double NOT NULL DEFAULT 0,
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `FOURNISSEUR_LIV` varchar(50) NOT NULL DEFAULT '',
  `IDENTIFICATION_FACT_HA_REGROUP` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_ACHAT_AVOIR_ET` varchar(32) NOT NULL DEFAULT '',
  `LIGNES_VERIFIEES` char(1) NOT NULL DEFAULT '',
  `NOM_DEPOT` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_AVOIR` varchar(11) NOT NULL DEFAULT '',
  `N_BC` varchar(20) NOT NULL DEFAULT '',
  `N_BL` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(20) NOT NULL DEFAULT '',
  `N_TRESO` double NOT NULL DEFAULT 0,
  `PHASE` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL_LIV` varchar(15) NOT NULL DEFAULT '',
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `VILLE_LIV` varchar(50) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `N_PIECE_FOURNISSEUR` varchar(20) NOT NULL DEFAULT '',
  `IMPRESSION_AVOIR` char(1) NOT NULL DEFAULT '',
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `IDENT_ECRITURE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `KM` double NOT NULL DEFAULT 0,
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_TAXE_PAIEMENT_CONTREPARTIE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TRESO` varchar(40) NOT NULL DEFAULT '',
  `NOM_TRESO_CONTREPARIE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT_CONTREPARTIE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_TVA` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_BILAN_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_TIERS_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_ECRITURE` varchar(15) NOT NULL DEFAULT '',
  `N_FACT_REGROUPEMENT` varchar(20) NOT NULL DEFAULT '',
  `N_TRESO_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TYPE_RGT` double NOT NULL DEFAULT 0,
  `N_TYPE_RGT_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TYPE_TVA` double NOT NULL DEFAULT 0,
  `PRENOME` varchar(40) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `REF` varchar(20) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(30) NOT NULL DEFAULT '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `ELEMENTS_ARTICLE_CPTA_OK` char(1) NOT NULL DEFAULT '',
  `ELEMENTS_CODE_ATELIER_CPTA_OK` char(1) NOT NULL DEFAULT '',
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `COMPTAGE_LIGNE` decimal(12,0) NOT NULL DEFAULT 0,
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_ACHAT_AVOIR_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_ECHEANCE` (`DATE_ECHEANCE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `DATE_RECEPTION` (`DATE_RECEPTION`) USING BTREE,
  KEY `DEPOT` (`DEPOT`) USING BTREE,
  KEY `FOURNISSEUR_LIV` (`FOURNISSEUR_LIV`) USING BTREE,
  KEY `IDENTIFICATION_FACT_HA_REGROUP` (`IDENTIFICATION_FACT_HA_REGROUP`) USING BTREE,
  KEY `IDENT_BC_FRS_ET` (`IDENT_BC_FRS_ET`) USING BTREE,
  KEY `IDENT_BL_FRS_ET` (`IDENT_BL_FRS_ET`) USING BTREE,
  KEY `IDENT_FACT_FRS_ET` (`IDENT_FACT_FRS_ET`) USING BTREE,
  KEY `LIGNES_VERIFIEES` (`LIGNES_VERIFIEES`) USING BTREE,
  KEY `NOM_DEPOT` (`NOM_DEPOT`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_FACT` (`N_FACT`) USING BTREE,
  KEY `N_TRESO` (`N_TRESO`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `SUPPRESSION_DEFINITIVE` (`SUPPRESSION_DEFINITIVE`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `IMPRESSION_AVOIR` (`IMPRESSION_AVOIR`) USING BTREE,
  KEY `N_AVOIR` (`N_AVOIR`) USING BTREE,
  KEY `N_CPTE_BILAN_CONTREPARTIE` (`N_CPTE_BILAN_CONTREPARTIE`) USING BTREE,
  KEY `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` (`N_CPTE_GENERAL_ACHAT_CONTREPARTIE`) USING BTREE,
  KEY `N_TYPE_TVA` (`N_TYPE_TVA`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_achat_bc_det`
--

CREATE TABLE `ges_co_document_achat_bc_det` (
  `CODE_PC` varchar(150) NOT NULL DEFAULT '',
  `CONTREMARQUE` varchar(100) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_ACHAT_BC_DET` varchar(32) NOT NULL DEFAULT '',
  `LIVRAISON_OK` char(1) NOT NULL DEFAULT '',
  `MODELE` varchar(50) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_ACHAT` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `PID_GES_CO_DOCUMENT_ACHAT_BC_ET` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,3) NOT NULL DEFAULT 0.000,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(100) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TVA` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `CODE_ATELIER` varchar(10) NOT NULL DEFAULT '',
  `IDENT_OR` varchar(32) NOT NULL DEFAULT '',
  `IDENT_OR_DET` varchar(32) NOT NULL DEFAULT '',
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `DEPOT` varchar(20) NOT NULL DEFAULT '',
  `DEVISE` double NOT NULL DEFAULT 0,
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(10) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `MAJ_Q_ARTICLE` char(1) NOT NULL DEFAULT '',
  `MAJ_Q_STOCK` char(1) NOT NULL DEFAULT '',
  `N_DEPOT` double NOT NULL DEFAULT 0,
  `N_LIGNE` double NOT NULL DEFAULT 0,
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,3) NOT NULL DEFAULT 0.000,
  `STOCK_SUIVI` char(1) NOT NULL DEFAULT '',
  `TOTAL_ANA` decimal(12,0) NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_BC_REGROUP` varchar(15) NOT NULL DEFAULT '',
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_ACHAT_BC_DET`),
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `N_CPTE_GENERAL_ACHAT` (`N_CPTE_GENERAL_ACHAT`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_ACHAT_BC_ET` (`PID_GES_CO_DOCUMENT_ACHAT_BC_ET`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `DEPOT` (`DEPOT`) USING BTREE,
  KEY `DEVISE` (`DEVISE`) USING BTREE,
  KEY `N_LIGNE` (`N_LIGNE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_achat_bc_et`
--

CREATE TABLE `ges_co_document_achat_bc_et` (
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `CODE_PC` varchar(150) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CONTREMARQUES` varchar(100) NOT NULL DEFAULT '',
  `DATE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `ESCOMPTE` double NOT NULL DEFAULT 0,
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_ACHAT_BC_ET` varchar(32) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(11) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `PHASE` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL` varchar(15) NOT NULL DEFAULT '',
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `IDENT_OR` varchar(32) NOT NULL DEFAULT '',
  `IDENT_OR_DET` varchar(32) NOT NULL DEFAULT '',
  `IMPRESSION_BC` char(1) NOT NULL DEFAULT '',
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_LIVRAISON_PREVUE` date DEFAULT NULL,
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `KM` double NOT NULL DEFAULT 0,
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `PRENOM` varchar(40) NOT NULL DEFAULT '',
  `PREPA_COMMANDE` char(1) NOT NULL DEFAULT '',
  `PREPA_COMPTA` char(1) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `REF` varchar(20) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(30) NOT NULL DEFAULT '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `CP` double NOT NULL DEFAULT 0,
  `AFFRETEMENT_NOM_TIERS_CHARGEMENT` varchar(100) NOT NULL DEFAULT '',
  `AFFRETEMENT_NOM_TIERS_DECHARGEMENT` varchar(100) NOT NULL DEFAULT '',
  `AFFRETEMENT_IDENT_TIERS_CHARGEMENT` varchar(32) NOT NULL DEFAULT '',
  `AFFRETEMENT_IDENT_TIERS_DECHARGEMENT` varchar(32) NOT NULL DEFAULT '',
  `AFFRETEMENT_ADRESSE_CHARGEMENT` varchar(200) NOT NULL DEFAULT '',
  `AFFRETEMENT_ADRESSE_DECHARGEMENT` varchar(200) NOT NULL DEFAULT '',
  `AFFRETEMENT_DATE_DECHARGEMENT` date DEFAULT NULL,
  `AFFRETEMENT_HEURE_CHARGEMENT` time NOT NULL DEFAULT '00:00:00',
  `AFFRETEMENT` char(1) NOT NULL DEFAULT '',
  `AFFRETEMENT_DATE_CHARGEMENT` date DEFAULT NULL,
  `AFFRETEMENT_HEURE_DECHARGEMENT` time NOT NULL DEFAULT '00:00:00',
  `AFFRETEMENT_CODE_TIERS_CHARGEMENT` varchar(32) NOT NULL DEFAULT '',
  `AFFRETEMENT_CODE_TIERS_DECHARGEMENT` varchar(32) NOT NULL DEFAULT '',
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_ACHAT_BC_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `SUPPRESSION_DEFINITIVE` (`SUPPRESSION_DEFINITIVE`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `IMPRESSION_BC` (`IMPRESSION_BC`) USING BTREE,
  KEY `DATE_ECHEANCE` (`DATE_ECHEANCE`) USING BTREE,
  KEY `DATE_LIVRAISON_PREVUE` (`DATE_LIVRAISON_PREVUE`) USING BTREE,
  KEY `PREPA_COMPTA` (`PREPA_COMPTA`) USING BTREE,
  KEY `RAISON_SOCIALE` (`RAISON_SOCIALE`) USING BTREE,
  KEY `SUIVI_PAR` (`SUIVI_PAR`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `CP` (`CP`) USING BTREE,
  KEY `AFFRETEMENT_NOM_TIERS_CHARGEMENT` (`AFFRETEMENT_NOM_TIERS_CHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_NOM_TIERS_DECHARGEMENT` (`AFFRETEMENT_NOM_TIERS_DECHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_IDENT_TIERS_CHARGEMENT` (`AFFRETEMENT_IDENT_TIERS_CHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_IDENT_TIERS_DECHARGEMENT` (`AFFRETEMENT_IDENT_TIERS_DECHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_ADRESSE_CHARGEMENT` (`AFFRETEMENT_ADRESSE_CHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_ADRESSE_DECHARGEMENT` (`AFFRETEMENT_ADRESSE_DECHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_DATE_DECHARGEMENT` (`AFFRETEMENT_DATE_DECHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_HEURE_CHARGEMENT` (`AFFRETEMENT_HEURE_CHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT` (`AFFRETEMENT`) USING BTREE,
  KEY `AFFRETEMENT_DATE_CHARGEMENT` (`AFFRETEMENT_DATE_CHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_HEURE_DECHARGEMENT` (`AFFRETEMENT_HEURE_DECHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_CODE_TIERS_CHARGEMENT` (`AFFRETEMENT_CODE_TIERS_CHARGEMENT`) USING BTREE,
  KEY `AFFRETEMENT_CODE_TIERS_DECHARGEMENT` (`AFFRETEMENT_CODE_TIERS_DECHARGEMENT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `VERIFICATION` (`VERIFICATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_achat_bl_det`
--

CREATE TABLE `ges_co_document_achat_bl_det` (
  `CONTREMARQUE` varchar(20) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DATE_RECEPTION` date DEFAULT NULL,
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `FACTURE_PARTIELLE` char(1) NOT NULL DEFAULT '',
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_ACHAT_BL_DET` varchar(32) NOT NULL DEFAULT '',
  `LIGNE_VERIFIE` char(1) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(20) NOT NULL DEFAULT '',
  `N_BL` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_ACHAT` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `PID_GES_CO_DOCUMENT_ACHAT_BL_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,3) NOT NULL DEFAULT 0.000,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `QUANTITE_PREPA` double NOT NULL DEFAULT 0,
  `QUANTITE_RECUE` double NOT NULL DEFAULT 0,
  `RECU` char(1) NOT NULL DEFAULT '',
  `REFERENCE` varchar(30) NOT NULL DEFAULT '',
  `STOCK` char(1) NOT NULL DEFAULT '',
  `STOCK_EXISTE` char(1) NOT NULL DEFAULT '',
  `STOCK_METHODE` varchar(20) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TVA` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `CODE_ATELIER` varchar(10) NOT NULL DEFAULT '',
  `LIGNE_CLOTURE` char(1) NOT NULL DEFAULT '',
  `MANQUANT` char(1) NOT NULL DEFAULT '',
  `QUANTITE_MANQUANTE` double NOT NULL DEFAULT 0,
  `RECUS_TARD` char(1) NOT NULL DEFAULT '',
  `COMPTEUR_INHIB_FA_DET` double NOT NULL DEFAULT 0,
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,3) NOT NULL DEFAULT 0.000,
  `TOTAL_ANA` double NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(10) NOT NULL DEFAULT '',
  `IDENT_FACT_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `N_BL_REGROUP` varchar(15) NOT NULL DEFAULT '',
  `SPLITED_ROW` varchar(10) NOT NULL DEFAULT '',
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_ACHAT_BL_DET`),
  KEY `CONTREMARQUE` (`CONTREMARQUE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `IDENT_BC_FRS_DET` (`IDENT_BC_FRS_DET`) USING BTREE,
  KEY `IDENT_BC_FRS_ET` (`IDENT_BC_FRS_ET`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_GENERAL_ACHAT` (`N_CPTE_GENERAL_ACHAT`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_ACHAT_BL_ET` (`PID_GES_CO_DOCUMENT_ACHAT_BL_ET`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `REFERENCE` (`REFERENCE`) USING BTREE,
  KEY `STOCK` (`STOCK`) USING BTREE,
  KEY `STOCK_EXISTE` (`STOCK_EXISTE`) USING BTREE,
  KEY `STOCK_METHODE` (`STOCK_METHODE`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `MANQUANT` (`MANQUANT`) USING BTREE,
  KEY `COMPTEUR_INHIB_FA_DET` (`COMPTEUR_INHIB_FA_DET`) USING BTREE,
  KEY `IDENT_MATERIEL_ET` (`IDENT_MATERIEL_ET`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_achat_bl_et`
--

CREATE TABLE `ges_co_document_achat_bl_et` (
  `ADR1_LIV` varchar(50) NOT NULL DEFAULT '',
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CONTREMARQUES` varchar(100) NOT NULL DEFAULT '',
  `CP` varchar(5) NOT NULL DEFAULT '',
  `CP_LIV` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DATE_FACTURE_ACHAT_REGROUPEMENT` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DEPOT` varchar(20) NOT NULL DEFAULT '',
  `ESCOMPTE` double NOT NULL DEFAULT 0,
  `FACTURE_PARTIELLE` char(1) NOT NULL DEFAULT '',
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `FOURNISSEUR_LIV` varchar(50) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_ACHAT_BL_ET` varchar(32) NOT NULL DEFAULT '',
  `LIGNES_VERIFIEES` char(1) NOT NULL DEFAULT '',
  `LIVRAISON_PARTIELLE` char(1) NOT NULL DEFAULT '',
  `NOM_DEPOT` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(20) NOT NULL DEFAULT '',
  `N_BL` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_CPTRE_GENERAL_ACHAT` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT_REGROUPEMENT` varchar(11) NOT NULL DEFAULT '',
  `PHASE` varchar(10) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL_LIV` varchar(15) NOT NULL DEFAULT '',
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `VILLE_LIV` varchar(50) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `CLOTURE_AUTO` char(1) NOT NULL DEFAULT '',
  `IMPRESSION_BL` char(1) NOT NULL DEFAULT '',
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `ADR2_LIV` varchar(50) NOT NULL DEFAULT '',
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_RECEPTION` date DEFAULT NULL,
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `IDENT_FACT_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `KM` double NOT NULL DEFAULT 0,
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `PRENOM` varchar(40) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `REF` varchar(20) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(30) NOT NULL DEFAULT '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_ACHAT_BL_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `CP_LIV` (`CP_LIV`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `DEPOT` (`DEPOT`) USING BTREE,
  KEY `ESCOMPTE` (`ESCOMPTE`) USING BTREE,
  KEY `FOURNISSEUR_LIV` (`FOURNISSEUR_LIV`) USING BTREE,
  KEY `IDENT_BC_FRS_ET` (`IDENT_BC_FRS_ET`) USING BTREE,
  KEY `LIGNES_VERIFIEES` (`LIGNES_VERIFIEES`) USING BTREE,
  KEY `NOM_DEPOT` (`NOM_DEPOT`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTRE_GENERAL_ACHAT` (`N_CPTRE_GENERAL_ACHAT`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `SUPPRESSION_DEFINITIVE` (`SUPPRESSION_DEFINITIVE`) USING BTREE,
  KEY `TEL_LIV` (`TEL_LIV`) USING BTREE,
  KEY `VILLE_LIV` (`VILLE_LIV`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `CLOTURE_AUTO` (`CLOTURE_AUTO`) USING BTREE,
  KEY `IMPRESSION_BL` (`IMPRESSION_BL`) USING BTREE,
  KEY `N_FACT_REGROUPEMENT` (`N_FACT_REGROUPEMENT`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `IDENT_MATERIEL_ET` (`IDENT_MATERIEL_ET`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_achat_fact_det`
--

CREATE TABLE `ges_co_document_achat_fact_det` (
  `CONTREMARQUE` varchar(100) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AVOIR_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_ACHAT_FACT_DET` varchar(32) NOT NULL DEFAULT '',
  `LIGNE_VERIFIE` char(1) NOT NULL DEFAULT '',
  `MAJ_Q_ARTICLE` char(1) NOT NULL DEFAULT '',
  `MAJ_Q_STOCK` char(1) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_BL` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_ACHAT` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_DEPOT` double NOT NULL DEFAULT 0,
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(20) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_ACHAT_FACT_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,3) NOT NULL DEFAULT 0.000,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `QUANTITE_STOCK` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(100) NOT NULL DEFAULT '',
  `STOCK` char(1) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TVA` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `TYPE_ENTRETIEN` varchar(50) NOT NULL DEFAULT '',
  `TYPE_ENTRETIEN_NUMERO` double NOT NULL DEFAULT 0,
  `TYPE_MATERIEL` varchar(20) NOT NULL DEFAULT '',
  `CODE_ATELIER` varchar(10) NOT NULL DEFAULT '',
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `DEVISE` double NOT NULL DEFAULT 0,
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,3) NOT NULL DEFAULT 0.000,
  `TOTAL_ANA` decimal(12,0) NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `INFO_CPTA_KO_GLOBAL` double NOT NULL DEFAULT 0,
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  `ANP1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `ANP2` decimal(12,2) NOT NULL DEFAULT 0.00,
  `ANP3` decimal(12,2) NOT NULL DEFAULT 0.00,
  `ANP4` decimal(12,2) NOT NULL DEFAULT 0.00,
  `ANP5` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PASSAGE_ENTRETIEN_OK` char(1) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_ACHAT_FACT_DET`),
  KEY `CONTREMARQUE` (`CONTREMARQUE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `IDENT_AVOIR_FRS_DET` (`IDENT_AVOIR_FRS_DET`) USING BTREE,
  KEY `IDENT_BC_FRS_DET` (`IDENT_BC_FRS_DET`) USING BTREE,
  KEY `IDENT_BC_FRS_ET` (`IDENT_BC_FRS_ET`) USING BTREE,
  KEY `IDENT_BL_FRS_DET` (`IDENT_BL_FRS_DET`) USING BTREE,
  KEY `IDENT_BL_FRS_ET` (`IDENT_BL_FRS_ET`) USING BTREE,
  KEY `LIGNE_VERIFIE` (`LIGNE_VERIFIE`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_GENERAL_ACHAT` (`N_CPTE_GENERAL_ACHAT`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_ACHAT_FACT_ET` (`PID_GES_CO_DOCUMENT_ACHAT_FACT_ET`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `QUANTITE_STOCK` (`QUANTITE_STOCK`) USING BTREE,
  KEY `REFERENCE` (`REFERENCE`) USING BTREE,
  KEY `STOCK` (`STOCK`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `TYPE_ENTRETIEN_NUMERO` (`TYPE_ENTRETIEN_NUMERO`) USING BTREE,
  KEY `TYPE_MATERIEL` (`TYPE_MATERIEL`) USING BTREE,
  KEY `IDENT_MATERIEL_ET` (`IDENT_MATERIEL_ET`) USING BTREE,
  KEY `INFO_CPTA_KO_GLOBAL` (`INFO_CPTA_KO_GLOBAL`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `ANS_MAN` (`ANS_MAN`) USING BTREE,
  KEY `PASSAGE_ENTRETIEN_OK` (`PASSAGE_ENTRETIEN_OK`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_achat_fact_et`
--

CREATE TABLE `ges_co_document_achat_fact_et` (
  `ADR1_LIV` varchar(50) NOT NULL DEFAULT '',
  `ADR2_LIV` varchar(50) NOT NULL DEFAULT '',
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CONTREMARQUES` varchar(100) NOT NULL DEFAULT '',
  `CP` varchar(5) NOT NULL DEFAULT '',
  `CP_LIV` varchar(15) NOT NULL DEFAULT '',
  `DATE` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DATE_RECEPTION` date DEFAULT NULL,
  `DEPOT` varchar(20) NOT NULL DEFAULT '',
  `ESCOMPTE` double NOT NULL DEFAULT 0,
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `FOURNISSEUR_LIV` varchar(50) NOT NULL DEFAULT '',
  `IDENTIFICATION_FACT_HA_REGROUP` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_ACHAT_FACT_ET` varchar(32) NOT NULL DEFAULT '',
  `KM` double NOT NULL DEFAULT 0,
  `LIGNES_VERIFIEES` char(1) NOT NULL DEFAULT '',
  `NOM_DEPOT` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(20) NOT NULL DEFAULT '',
  `N_BL` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(11) NOT NULL DEFAULT '',
  `N_TRESO` double NOT NULL DEFAULT 0,
  `PHASE` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL_LIV` varchar(15) NOT NULL DEFAULT '',
  `TRANSFERT_COMPTA` char(1) NOT NULL DEFAULT '',
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `VILLE_LIV` varchar(50) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `N_PIECE_FOURNISSEUR` varchar(20) NOT NULL DEFAULT '',
  `IMPRESSION_FACT` char(1) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ENTRETIEN_DET` varchar(32) NOT NULL DEFAULT '',
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `IDENT_ECRITURE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_TAXE_PAIEMENT_CONTREPARTIE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TRESO` varchar(20) NOT NULL DEFAULT '',
  `NOM_TRESO_CONTREPARTIE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT_CONTREPARTIE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_TVA` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_BILAN_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_TIERS_CONTREPARTIE` varchar(30) NOT NULL DEFAULT '',
  `N_ECRITURE` varchar(15) NOT NULL DEFAULT '',
  `N_FAC_REGROUPEMENT` varchar(20) NOT NULL DEFAULT '',
  `N_TRESO_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_TYPE_RGT` double NOT NULL DEFAULT 0,
  `N_TYPE_RGT_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TYPE_TVA` double NOT NULL DEFAULT 0,
  `PRENOM` varchar(40) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `REF` varchar(20) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(30) NOT NULL DEFAULT '',
  `TX_CHANGE_12` double NOT NULL DEFAULT 0,
  `TX_CHANGE_21` double NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `ELEMENTS_ARTICLE_CPTA_OK` char(1) NOT NULL DEFAULT '',
  `ELEMENTS_CODE_ATELIER_CPTA_OK` char(1) NOT NULL DEFAULT '',
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `ENTRETIEN_FACT` char(1) NOT NULL DEFAULT '',
  `COMPTAGE_LIGNE` decimal(12,0) NOT NULL DEFAULT 0,
  `TYPE_MATERIEL` varchar(30) NOT NULL DEFAULT '',
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_ACHAT_FACT_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_ECHEANCE` (`DATE_ECHEANCE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `DATE_RECEPTION` (`DATE_RECEPTION`) USING BTREE,
  KEY `DEPOT` (`DEPOT`) USING BTREE,
  KEY `FOURNISSEUR_LIV` (`FOURNISSEUR_LIV`) USING BTREE,
  KEY `IDENTIFICATION_FACT_HA_REGROUP` (`IDENTIFICATION_FACT_HA_REGROUP`) USING BTREE,
  KEY `IDENT_BC_FRS_ET` (`IDENT_BC_FRS_ET`) USING BTREE,
  KEY `IDENT_BL_FRS_ET` (`IDENT_BL_FRS_ET`) USING BTREE,
  KEY `LIGNES_VERIFIEES` (`LIGNES_VERIFIEES`) USING BTREE,
  KEY `NOM_DEPOT` (`NOM_DEPOT`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_TRESO` (`N_TRESO`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `SUPPRESSION_DEFINITIVE` (`SUPPRESSION_DEFINITIVE`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `IMPRESSION_FACT` (`IMPRESSION_FACT`) USING BTREE,
  KEY `N_FACT` (`N_FACT`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `DEVISE_1` (`DEVISE_1`) USING BTREE,
  KEY `IDENT_FACT_FRS_ET` (`IDENT_FACT_FRS_ET`) USING BTREE,
  KEY `NOM_TYPE_TVA` (`NOM_TYPE_TVA`) USING BTREE,
  KEY `N_CPTE_BILAN_CONTREPARTIE` (`N_CPTE_BILAN_CONTREPARTIE`) USING BTREE,
  KEY `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` (`N_CPTE_GENERAL_ACHAT_CONTREPARTIE`) USING BTREE,
  KEY `N_TYPE_RGT` (`N_TYPE_RGT`) USING BTREE,
  KEY `N_TYPE_TVA` (`N_TYPE_TVA`) USING BTREE,
  KEY `IDENT_MATERIEL_ET` (`IDENT_MATERIEL_ET`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `ENTRETIEN_FACT` (`ENTRETIEN_FACT`) USING BTREE,
  KEY `TYPE_MATERIEL` (`TYPE_MATERIEL`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_archive_avoir_det`
--

CREATE TABLE `ges_co_document_vente_archive_avoir_det` (
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `CODE_ATELIER` varchar(10) NOT NULL DEFAULT '',
  `CONTREMARQUE` varchar(100) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `DEVISE` double NOT NULL DEFAULT 0,
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AVOIR_CLI_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AVOIR_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_CLI_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_CLI_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DEVIS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DEVIS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_CLI_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_TIERS` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_AVOIR_DET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `INFO_CPTA_KO_GLOBAL` double NOT NULL DEFAULT 0,
  `NOM_DEPOT` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_AVOIR` varchar(10) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_BL` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_VENTE` varchar(10) NOT NULL DEFAULT '',
  `N_DEPOT` double NOT NULL DEFAULT 0,
  `N_DEVIS` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(10) NOT NULL DEFAULT '',
  `N_LIGNE` double NOT NULL DEFAULT 0,
  `PID_GES_CO_DOCUMENT_VENTE_ARCHIVE_AVOIR_ET` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(100) NOT NULL DEFAULT '',
  `STOCK_SUIVI` char(1) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TOTAL_ANA` double NOT NULL DEFAULT 0,
  `TVA` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_AVOIR_DET`),
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `DEVISE` (`DEVISE`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `IDENT_AVOIR_FRS_DET` (`IDENT_AVOIR_FRS_DET`) USING BTREE,
  KEY `IDENT_BC_CLI_DET` (`IDENT_BC_CLI_DET`) USING BTREE,
  KEY `IDENT_BC_CLI_ET` (`IDENT_BC_CLI_ET`) USING BTREE,
  KEY `IDENT_BC_FRS_DET` (`IDENT_BC_FRS_DET`) USING BTREE,
  KEY `IDENT_BL_CLI_DET` (`IDENT_BL_CLI_DET`) USING BTREE,
  KEY `IDENT_BL_CLI_ET` (`IDENT_BL_CLI_ET`) USING BTREE,
  KEY `IDENT_BL_FRS_DET` (`IDENT_BL_FRS_DET`) USING BTREE,
  KEY `IDENT_DEVIS_DET` (`IDENT_DEVIS_DET`) USING BTREE,
  KEY `IDENT_DEVIS_ET` (`IDENT_DEVIS_ET`) USING BTREE,
  KEY `IDENT_FACT_CLI_DET` (`IDENT_FACT_CLI_DET`) USING BTREE,
  KEY `IDENT_FACT_CLI_ET` (`IDENT_FACT_CLI_ET`) USING BTREE,
  KEY `IDENT_FACT_FRS_DET` (`IDENT_FACT_FRS_DET`) USING BTREE,
  KEY `IDENT_TIERS` (`IDENT_TIERS`) USING BTREE,
  KEY `NOM_DEPOT` (`NOM_DEPOT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_CPTE_GENERAL_VENTE` (`N_CPTE_GENERAL_VENTE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_FACT` (`N_FACT`) USING BTREE,
  KEY `N_LIGNE` (`N_LIGNE`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_ARCHIVE_AVOIR_ET` (`PID_GES_CO_DOCUMENT_VENTE_ARCHIVE_AVOIR_ET`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_archive_avoir_et`
--

CREATE TABLE `ges_co_document_vente_archive_avoir_et` (
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `CP` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `ELEMENTS_ARTICLE_CPTA_OK` char(1) NOT NULL DEFAULT '',
  `ELEMENTS_CODE_ATELIER_CPTA_OK` char(1) NOT NULL DEFAULT '',
  `GROUPE` char(1) NOT NULL DEFAULT '',
  `GROUPE_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `GROUPE_N_DOSSIER` double NOT NULL DEFAULT 0,
  `IDENT_BC_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DEVIS_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_ECRITURE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_TIERS_CONTREPARTIE` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_AVOIR_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `IMPRESSION_AVOIR` char(1) NOT NULL DEFAULT '',
  `KM` double NOT NULL DEFAULT 0,
  `MAIL` varchar(100) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NOM_TAXE_PAIEMENT_CONTREPARTIE` varchar(40) NOT NULL DEFAULT '',
  `NOM_TRESO_CONTREPARTIE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `NOM_TYPE_TVA` varchar(20) NOT NULL DEFAULT '',
  `N_AVOIR` varchar(10) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_BL` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_BILAN_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_CPTE_TIERS_CONTREPARTIE` varchar(50) NOT NULL DEFAULT '',
  `N_DEVIS` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_ECRITURE` varchar(15) NOT NULL DEFAULT '',
  `N_EXERCICE_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(11) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `N_LIGNE_TIC_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TAXE_PAIEMENT_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TRESO_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TYPE_RGT` double NOT NULL DEFAULT 0,
  `N_TYPE_RGT_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TYPE_TVA` double NOT NULL DEFAULT 0,
  `PHASE` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRENOM` varchar(20) NOT NULL DEFAULT '',
  `PROFORMA` char(1) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `REF` varchar(20) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(50) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL` varchar(15) NOT NULL DEFAULT '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `COMPTAGE_LIGNE` decimal(12,0) NOT NULL DEFAULT 0,
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_AVOIR_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `CP` (`CP`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_ECHEANCE` (`DATE_ECHEANCE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `GROUPE` (`GROUPE`) USING BTREE,
  KEY `GROUPE_N_DOSSIER` (`GROUPE_N_DOSSIER`) USING BTREE,
  KEY `IDENT_BC_CLI_ET` (`IDENT_BC_CLI_ET`) USING BTREE,
  KEY `IDENT_BL_CLI_ET` (`IDENT_BL_CLI_ET`) USING BTREE,
  KEY `IDENT_DEVIS_CLI_ET` (`IDENT_DEVIS_CLI_ET`) USING BTREE,
  KEY `IDENT_FACT_CLI_ET` (`IDENT_FACT_CLI_ET`) USING BTREE,
  KEY `IDENT_TIERS_CONTREPARTIE` (`IDENT_TIERS_CONTREPARTIE`) USING BTREE,
  KEY `IMPRESSION_AVOIR` (`IMPRESSION_AVOIR`) USING BTREE,
  KEY `MAIL` (`MAIL`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_AVOIR` (`N_AVOIR`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `N_CPTE_BILAN_CONTREPARTIE` (`N_CPTE_BILAN_CONTREPARTIE`) USING BTREE,
  KEY `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` (`N_CPTE_GENERAL_ACHAT_CONTREPARTIE`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `N_CPTE_TIERS_CONTREPARTIE` (`N_CPTE_TIERS_CONTREPARTIE`) USING BTREE,
  KEY `N_DEVIS` (`N_DEVIS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_EXERCICE_CONTREPARTIE` (`N_EXERCICE_CONTREPARTIE`) USING BTREE,
  KEY `N_FACT` (`N_FACT`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `N_LIGNE_TIC_CONTREPARTIE` (`N_LIGNE_TIC_CONTREPARTIE`) USING BTREE,
  KEY `N_TRESO_CONTREPARTIE` (`N_TRESO_CONTREPARTIE`) USING BTREE,
  KEY `N_TYPE_TVA` (`N_TYPE_TVA`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `PROFORMA` (`PROFORMA`) USING BTREE,
  KEY `RAISON_SOCIALE` (`RAISON_SOCIALE`) USING BTREE,
  KEY `SUPPRESSION_DEFINITIVE` (`SUPPRESSION_DEFINITIVE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_archive_bc_det`
--

CREATE TABLE `ges_co_document_vente_archive_bc_det` (
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `CONTREMARQUE` varchar(100) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `DEVISE` double NOT NULL DEFAULT 0,
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DEVIS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DEVIS_CLIENT_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_BC_DET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `LIVRAISON_OK` char(1) NOT NULL DEFAULT '',
  `NOM_DEPOT` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_BC_REGROUP` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_VENTE` varchar(10) NOT NULL DEFAULT '',
  `N_DEPOT` double NOT NULL DEFAULT 0,
  `N_DEVIS` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_LIGNE` double NOT NULL DEFAULT 0,
  `PID_GES_CO_DOCUMENT_VENTE_ARCHIVE_BC_ET` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(100) NOT NULL DEFAULT '',
  `STOCK_SUIVI` char(1) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TOTAL_ANA` decimal(12,0) NOT NULL DEFAULT 0,
  `TVA` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_BC_DET`),
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `DEVISE` (`DEVISE`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `IDENT_DEVIS_DET` (`IDENT_DEVIS_DET`) USING BTREE,
  KEY `IDENT_DEVIS_CLIENT_ET` (`IDENT_DEVIS_CLIENT_ET`) USING BTREE,
  KEY `NOM_DEPOT` (`NOM_DEPOT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_CPTE_GENERAL_VENTE` (`N_CPTE_GENERAL_VENTE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_LIGNE` (`N_LIGNE`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_ARCHIVE_BC_ET` (`PID_GES_CO_DOCUMENT_VENTE_ARCHIVE_BC_ET`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_archive_bc_et`
--

CREATE TABLE `ges_co_document_vente_archive_bc_et` (
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `CP` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` varchar(10) NOT NULL DEFAULT '',
  `IDENT_DEVIS_CLIENT_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_BC_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `IMPRESSION_BC` char(1) NOT NULL DEFAULT '',
  `KM` varchar(10) NOT NULL DEFAULT '',
  `MAIL` varchar(100) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(11) NOT NULL DEFAULT '',
  `N_BL` varchar(11) NOT NULL DEFAULT '',
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_DEVIS` varchar(11) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(11) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `PHASE` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRENOM` varchar(40) NOT NULL DEFAULT '',
  `PREPA_COMMANDE` char(1) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `REF` varchar(20) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(30) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL` varchar(15) NOT NULL DEFAULT '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_BC_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `CP` (`CP`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_DEVIS_CLIENT_ET` (`IDENT_DEVIS_CLIENT_ET`) USING BTREE,
  KEY `IMPRESSION_BC` (`IMPRESSION_BC`) USING BTREE,
  KEY `MAIL` (`MAIL`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_FACT` (`N_FACT`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `RAISON_SOCIALE` (`RAISON_SOCIALE`) USING BTREE,
  KEY `SUIVI_PAR` (`SUIVI_PAR`) USING BTREE,
  KEY `SUPPRESSION_DEFINITIVE` (`SUPPRESSION_DEFINITIVE`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_archive_bl_det`
--

CREATE TABLE `ges_co_document_vente_archive_bl_det` (
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `CONTREMARQUE` varchar(100) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `DEVISE` double NOT NULL DEFAULT 0,
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_CLI_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_BL_DET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `NOM_DEPOT` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_BL` varchar(10) NOT NULL DEFAULT '',
  `N_BL_REGROUP` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_VENTE` varchar(10) NOT NULL DEFAULT '',
  `N_DEPOT` double NOT NULL DEFAULT 0,
  `N_DEVIS` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(10) NOT NULL DEFAULT '',
  `N_LIGNE` double NOT NULL DEFAULT 0,
  `PID_GES_CO_DOCUMENT_VENTE_ARCHIVE_BL_ET` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(100) NOT NULL DEFAULT '',
  `STOCK_SUIVI` char(1) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TOTAL_ANA` double NOT NULL DEFAULT 0,
  `TVA` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_BL_DET`),
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `DEVISE` (`DEVISE`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `IDENT_BC_CLI_DET` (`IDENT_BC_CLI_DET`) USING BTREE,
  KEY `IDENT_BC_CLI_ET` (`IDENT_BC_CLI_ET`) USING BTREE,
  KEY `NOM_DEPOT` (`NOM_DEPOT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_CPTE_GENERAL_VENTE` (`N_CPTE_GENERAL_VENTE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_LIGNE` (`N_LIGNE`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_ARCHIVE_BL_ET` (`PID_GES_CO_DOCUMENT_VENTE_ARCHIVE_BL_ET`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_archive_bl_et`
--

CREATE TABLE `ges_co_document_vente_archive_bl_et` (
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CORPS_MESSAGE_VALIDATION` varchar(10) NOT NULL DEFAULT '',
  `CP` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `IDENT_BC_CLIENT_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DEVIS_CLIENT_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_CLIENT_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_BL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `IMPRESSION_BL` char(1) NOT NULL DEFAULT '',
  `KM` double NOT NULL DEFAULT 0,
  `MAIL` varchar(100) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(11) NOT NULL DEFAULT '',
  `N_BL` varchar(11) NOT NULL DEFAULT '',
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_DEVIS` varchar(11) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(10) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `PHASE` varchar(10) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRENOM` varchar(20) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `REF` varchar(20) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(40) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL` varchar(15) NOT NULL DEFAULT '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_BL_ET`),
  KEY `CP` (`CP`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_BC_CLIENT_ET` (`IDENT_BC_CLIENT_ET`) USING BTREE,
  KEY `IDENT_DEVIS_CLIENT_ET` (`IDENT_DEVIS_CLIENT_ET`) USING BTREE,
  KEY `IDENT_FACT_CLIENT_ET` (`IDENT_FACT_CLIENT_ET`) USING BTREE,
  KEY `IMPRESSION_BL` (`IMPRESSION_BL`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `N_DEVIS` (`N_DEVIS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `SUPPRESSION_DEFINITIVE` (`SUPPRESSION_DEFINITIVE`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_archive_devis_det`
--

CREATE TABLE `ges_co_document_vente_archive_devis_det` (
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `DEVISE` double NOT NULL DEFAULT 0,
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_DEVIS_DET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_VENTE` varchar(10) NOT NULL DEFAULT '',
  `N_DEVIS` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_LIGNE` double NOT NULL DEFAULT 0,
  `PID_GES_CO_DOCUMENT_VENTE_ARCHIVE_DEVIS_ET` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_TTC` decimal(12,2) NOT NULL DEFAULT 0.00,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(100) NOT NULL DEFAULT '',
  `STOCK` char(1) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TVA` double NOT NULL DEFAULT 0,
  `TX_REMISE` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_DEVIS_DET`),
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_CPTE_GENERAL_VENTE` (`N_CPTE_GENERAL_VENTE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_ARCHIVE_DEVIS_ET` (`PID_GES_CO_DOCUMENT_VENTE_ARCHIVE_DEVIS_ET`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_archive_devis_et`
--

CREATE TABLE `ges_co_document_vente_archive_devis_et` (
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `CP` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_DEVIS_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `IMPRESSION_DEVIS` char(1) NOT NULL DEFAULT '',
  `KM` double NOT NULL DEFAULT 0,
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_DEVIS` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `PHASE` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRENOM` varchar(20) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `REF` varchar(20) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(30) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL` varchar(15) NOT NULL DEFAULT '',
  `TIERS_DATE_HEURE` varchar(100) NOT NULL DEFAULT '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_DEVIS_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `CP` (`CP`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_ECHEANCE` (`DATE_ECHEANCE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IMPRESSION_DEVIS` (`IMPRESSION_DEVIS`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `N_DEVIS` (`N_DEVIS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `RAISON_SOCIALE` (`RAISON_SOCIALE`) USING BTREE,
  KEY `SUIVI_PAR` (`SUIVI_PAR`) USING BTREE,
  KEY `SUPPRESSION_DEFINITIVE` (`SUPPRESSION_DEFINITIVE`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_archive_fact_det`
--

CREATE TABLE `ges_co_document_vente_archive_fact_det` (
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `CODE_ATELIER` varchar(15) NOT NULL DEFAULT '',
  `CONTREMARQUE` varchar(100) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `DEVISE` double NOT NULL DEFAULT 0,
  `FAMILLE` varchar(20) NOT NULL DEFAULT '',
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AVOIR_CLI_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AVOIR_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_CLI_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_CLI_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DEVIS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DEVIS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_FACT_DET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `INFO_CPTA_KO_GLOBAL` double NOT NULL DEFAULT 0,
  `NOM_DEPOT` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_BL` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_VENTE` varchar(10) NOT NULL DEFAULT '',
  `N_DEPOT` double NOT NULL DEFAULT 0,
  `N_DEVIS` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(10) NOT NULL DEFAULT '',
  `N_LIGNE` double NOT NULL DEFAULT 0,
  `PID_GES_CO_DOCUMENT_VENTE_ARCHIVE_FACT_ET` varchar(32) NOT NULL DEFAULT '',
  `POIDS_UNITAIRE_GRAMME` double NOT NULL DEFAULT 0,
  `PRIX_KILO_HT` double NOT NULL DEFAULT 0,
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `QUANTITE_KILO` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(100) NOT NULL DEFAULT '',
  `SUIVI_STOCK` char(1) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TOTAL_ANA` double NOT NULL DEFAULT 0,
  `TVA` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_FACT_DET`),
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `DEVISE` (`DEVISE`) USING BTREE,
  KEY `FAMILLE` (`FAMILLE`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `IDENT_AVOIR_FRS_DET` (`IDENT_AVOIR_FRS_DET`) USING BTREE,
  KEY `IDENT_BC_CLI_DET` (`IDENT_BC_CLI_DET`) USING BTREE,
  KEY `IDENT_BC_CLI_ET` (`IDENT_BC_CLI_ET`) USING BTREE,
  KEY `IDENT_BC_FRS_DET` (`IDENT_BC_FRS_DET`) USING BTREE,
  KEY `IDENT_BL_CLI_DET` (`IDENT_BL_CLI_DET`) USING BTREE,
  KEY `IDENT_BL_CLI_ET` (`IDENT_BL_CLI_ET`) USING BTREE,
  KEY `IDENT_BL_FRS_DET` (`IDENT_BL_FRS_DET`) USING BTREE,
  KEY `IDENT_DEVIS_DET` (`IDENT_DEVIS_DET`) USING BTREE,
  KEY `IDENT_DEVIS_ET` (`IDENT_DEVIS_ET`) USING BTREE,
  KEY `IDENT_FACT_FRS_DET` (`IDENT_FACT_FRS_DET`) USING BTREE,
  KEY `INFO_CPTA_KO_GLOBAL` (`INFO_CPTA_KO_GLOBAL`) USING BTREE,
  KEY `NOM_DEPOT` (`NOM_DEPOT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_CPTE_GENERAL_VENTE` (`N_CPTE_GENERAL_VENTE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_FACT` (`N_FACT`) USING BTREE,
  KEY `N_LIGNE` (`N_LIGNE`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_ARCHIVE_FACT_ET` (`PID_GES_CO_DOCUMENT_VENTE_ARCHIVE_FACT_ET`) USING BTREE,
  KEY `ANS_MAN` (`ANS_MAN`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_archive_fact_et`
--

CREATE TABLE `ges_co_document_vente_archive_fact_et` (
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `CP` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DELAIS_TYPE_RGT` varchar(50) NOT NULL DEFAULT '',
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` varchar(10) NOT NULL DEFAULT '',
  `ELEMENTS_ARTICLE_CPTA_OK` char(1) NOT NULL DEFAULT '',
  `ELEMENTS_CODE_ATELIER_CPTA_OK` char(1) NOT NULL DEFAULT '',
  `GROUPE` char(1) NOT NULL DEFAULT '',
  `GROUPE_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `GROUPE_N_DOSSIER` double NOT NULL DEFAULT 0,
  `IDENT_BC_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DEVIS_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_ECRITURE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_TIERS_CONTREPARTIE` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_FACT_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `IMPRESSION_FACT` char(1) NOT NULL DEFAULT '',
  `INDEXATION_GO` double NOT NULL DEFAULT 0,
  `INDICE_TAXE_CARBURANT_COUT` double NOT NULL DEFAULT 0,
  `INDICE_TAXE_CARBURANT_MOIS` double NOT NULL DEFAULT 0,
  `INDICE_TAXE_CARBURANT_REF` double NOT NULL DEFAULT 0,
  `INDICE_TAXE_CARBURANT_TOTAL` double NOT NULL DEFAULT 0,
  `KM` double NOT NULL DEFAULT 0,
  `LIBELLE_ECRITURE` char(1) NOT NULL DEFAULT '',
  `MAIL` varchar(100) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NOM_TAXE_PAIEMENT_CONTREPARTIE` varchar(40) NOT NULL DEFAULT '',
  `NOM_TRESO` varchar(20) NOT NULL DEFAULT '',
  `NOM_TRESO_CONTREPARTIE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `NOM_TYPE_TVA` varchar(20) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_BL` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_BILAN_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_CPTE_TIERS_CONTREPARTIE` varchar(50) NOT NULL DEFAULT '',
  `N_DEVIS` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_ECRITURE` varchar(15) NOT NULL DEFAULT '',
  `N_EXERCICE_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(11) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `N_LIGNE_TIC_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TAXE_PAIEMENT_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TRESO` double NOT NULL DEFAULT 0,
  `N_TRESO_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TYPE_RGT` double NOT NULL DEFAULT 0,
  `N_TYPE_RGT_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TYPE_TVA` double NOT NULL DEFAULT 0,
  `PHASE` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRENOM` varchar(20) NOT NULL DEFAULT '',
  `PROFORMA` char(1) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `REF` varchar(20) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(50) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL` varchar(15) NOT NULL DEFAULT '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `COMPTAGE_LIGNE` decimal(12,0) NOT NULL DEFAULT 0,
  `DATE_DEBUT_COMMANDE` date DEFAULT NULL,
  `DATE_FIN_COMMANDE` date DEFAULT NULL,
  `ECRITURE_CAUTION` char(1) NOT NULL DEFAULT '',
  `NOM_TARIF` varchar(32) NOT NULL DEFAULT '',
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_ARCHIVE_FACT_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `CP` (`CP`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_ECHEANCE` (`DATE_ECHEANCE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `GROUPE` (`GROUPE`) USING BTREE,
  KEY `GROUPE_N_DOSSIER` (`GROUPE_N_DOSSIER`) USING BTREE,
  KEY `IDENT_BC_CLI_ET` (`IDENT_BC_CLI_ET`) USING BTREE,
  KEY `IDENT_BL_CLI_ET` (`IDENT_BL_CLI_ET`) USING BTREE,
  KEY `IDENT_DEVIS_CLI_ET` (`IDENT_DEVIS_CLI_ET`) USING BTREE,
  KEY `IDENT_TIERS_CONTREPARTIE` (`IDENT_TIERS_CONTREPARTIE`) USING BTREE,
  KEY `IMPRESSION_FACT` (`IMPRESSION_FACT`) USING BTREE,
  KEY `MAIL` (`MAIL`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `N_CPTE_BILAN_CONTREPARTIE` (`N_CPTE_BILAN_CONTREPARTIE`) USING BTREE,
  KEY `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` (`N_CPTE_GENERAL_ACHAT_CONTREPARTIE`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `N_CPTE_TIERS_CONTREPARTIE` (`N_CPTE_TIERS_CONTREPARTIE`) USING BTREE,
  KEY `N_DEVIS` (`N_DEVIS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_EXERCICE_CONTREPARTIE` (`N_EXERCICE_CONTREPARTIE`) USING BTREE,
  KEY `N_FACT` (`N_FACT`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `N_LIGNE_TIC_CONTREPARTIE` (`N_LIGNE_TIC_CONTREPARTIE`) USING BTREE,
  KEY `N_TRESO` (`N_TRESO`) USING BTREE,
  KEY `N_TRESO_CONTREPARTIE` (`N_TRESO_CONTREPARTIE`) USING BTREE,
  KEY `N_TYPE_TVA` (`N_TYPE_TVA`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `PROFORMA` (`PROFORMA`) USING BTREE,
  KEY `RAISON_SOCIALE` (`RAISON_SOCIALE`) USING BTREE,
  KEY `DATE_DEBUT_COMMANDE` (`DATE_DEBUT_COMMANDE`) USING BTREE,
  KEY `DATE_FIN_COMMANDE` (`DATE_FIN_COMMANDE`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_avoir_det`
--

CREATE TABLE `ges_co_document_vente_avoir_det` (
  `CONTREMARQUE` varchar(100) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AVOIR_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_CLI_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_CLI_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_CLI_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_TIERS` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_AVOIR_DET` varchar(32) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_AVOIR` varchar(10) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_BL` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_VENTE` varchar(10) NOT NULL DEFAULT '',
  `N_DEPOT` double NOT NULL DEFAULT 0,
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(10) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_VENTE_AVOIR_ET` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(100) NOT NULL DEFAULT '',
  `STOCK_SUIVI` char(1) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TVA` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `CODE_ATELIER` varchar(10) NOT NULL DEFAULT '',
  `DEVISE` double NOT NULL DEFAULT 0,
  `IDENT_AVOIR_CLI_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DEVIS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DEVIS_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `NOM_DEPOT` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_DEVIS` varchar(10) NOT NULL DEFAULT '',
  `N_LIGNE` double NOT NULL DEFAULT 0,
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `TOTAL_ANA` double NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `INFO_CPTA_KO_GLOBAL` double NOT NULL DEFAULT 0,
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_AVOIR_DET`),
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `IDENT_AVOIR_FRS_DET` (`IDENT_AVOIR_FRS_DET`) USING BTREE,
  KEY `IDENT_BC_CLI_DET` (`IDENT_BC_CLI_DET`) USING BTREE,
  KEY `IDENT_BC_CLI_ET` (`IDENT_BC_CLI_ET`) USING BTREE,
  KEY `IDENT_BC_FRS_DET` (`IDENT_BC_FRS_DET`) USING BTREE,
  KEY `IDENT_BL_CLI_DET` (`IDENT_BL_CLI_DET`) USING BTREE,
  KEY `IDENT_BL_CLI_ET` (`IDENT_BL_CLI_ET`) USING BTREE,
  KEY `IDENT_BL_FRS_DET` (`IDENT_BL_FRS_DET`) USING BTREE,
  KEY `IDENT_FACT_CLI_DET` (`IDENT_FACT_CLI_DET`) USING BTREE,
  KEY `IDENT_FACT_CLI_ET` (`IDENT_FACT_CLI_ET`) USING BTREE,
  KEY `IDENT_FACT_FRS_DET` (`IDENT_FACT_FRS_DET`) USING BTREE,
  KEY `IDENT_TIERS` (`IDENT_TIERS`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_CPTE_GENERAL_VENTE` (`N_CPTE_GENERAL_VENTE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_AVOIR_ET` (`PID_GES_CO_DOCUMENT_VENTE_AVOIR_ET`) USING BTREE,
  KEY `DEVISE` (`DEVISE`) USING BTREE,
  KEY `IDENT_DEVIS_DET` (`IDENT_DEVIS_DET`) USING BTREE,
  KEY `IDENT_DEVIS_ET` (`IDENT_DEVIS_ET`) USING BTREE,
  KEY `NOM_DEPOT` (`NOM_DEPOT`) USING BTREE,
  KEY `N_LIGNE` (`N_LIGNE`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_FACT` (`N_FACT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_avoir_et`
--

CREATE TABLE `ges_co_document_vente_avoir_et` (
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CP` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `IDENT_BC_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_AVOIR_ET` varchar(32) NOT NULL DEFAULT '',
  `MAIL` varchar(100) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_AVOIR` varchar(10) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_BL` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(11) NOT NULL DEFAULT '',
  `PHASE` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRENOM` varchar(20) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(50) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL` varchar(15) NOT NULL DEFAULT '',
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `GROUPE` char(1) NOT NULL DEFAULT '',
  `GROUPE_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `GROUPE_N_DOSSIER` double NOT NULL DEFAULT 0,
  `IDENT_DEVIS_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_ECRITURE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_TIERS_CONTREPARTIE` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `KM` double NOT NULL DEFAULT 0,
  `NOM_TAXE_PAIEMENT_CONTREPARTIE` varchar(40) NOT NULL DEFAULT '',
  `NOM_TRESO_CONTREPARTIE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `NOM_TYPE_TVA` varchar(20) NOT NULL DEFAULT '',
  `N_CPTE_BILAN_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_TIERS_CONTREPARTIE` varchar(50) NOT NULL DEFAULT '',
  `N_DEVIS` varchar(10) NOT NULL DEFAULT '',
  `N_ECRITURE` varchar(15) NOT NULL DEFAULT '',
  `N_EXERCICE_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_LIGNE_TIC_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TAXE_PAIEMENT_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TRESO_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TYPE_RGT` double NOT NULL DEFAULT 0,
  `N_TYPE_RGT_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TYPE_TVA` double NOT NULL DEFAULT 0,
  `PROFORMA` char(1) NOT NULL DEFAULT '',
  `REF` varchar(20) NOT NULL DEFAULT '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `ELEMENTS_ARTICLE_CPTA_OK` char(1) NOT NULL DEFAULT '',
  `ELEMENTS_CODE_ATELIER_CPTA_OK` char(1) NOT NULL DEFAULT '',
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `IMPRESSION_AVOIR` char(1) NOT NULL DEFAULT '',
  `COMPTAGE_LIGNE` decimal(12,0) NOT NULL DEFAULT 0,
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_AVOIR_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `CP` (`CP`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_ECHEANCE` (`DATE_ECHEANCE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_BC_CLI_ET` (`IDENT_BC_CLI_ET`) USING BTREE,
  KEY `IDENT_BL_CLI_ET` (`IDENT_BL_CLI_ET`) USING BTREE,
  KEY `IDENT_FACT_CLI_ET` (`IDENT_FACT_CLI_ET`) USING BTREE,
  KEY `MAIL` (`MAIL`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `RAISON_SOCIALE` (`RAISON_SOCIALE`) USING BTREE,
  KEY `SUPPRESSION_DEFINITIVE` (`SUPPRESSION_DEFINITIVE`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `N_FACT` (`N_FACT`) USING BTREE,
  KEY `GROUPE` (`GROUPE`) USING BTREE,
  KEY `GROUPE_N_DOSSIER` (`GROUPE_N_DOSSIER`) USING BTREE,
  KEY `IDENT_DEVIS_CLI_ET` (`IDENT_DEVIS_CLI_ET`) USING BTREE,
  KEY `IDENT_TIERS_CONTREPARTIE` (`IDENT_TIERS_CONTREPARTIE`) USING BTREE,
  KEY `N_CPTE_BILAN_CONTREPARTIE` (`N_CPTE_BILAN_CONTREPARTIE`) USING BTREE,
  KEY `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` (`N_CPTE_GENERAL_ACHAT_CONTREPARTIE`) USING BTREE,
  KEY `N_CPTE_TIERS_CONTREPARTIE` (`N_CPTE_TIERS_CONTREPARTIE`) USING BTREE,
  KEY `N_DEVIS` (`N_DEVIS`) USING BTREE,
  KEY `N_EXERCICE_CONTREPARTIE` (`N_EXERCICE_CONTREPARTIE`) USING BTREE,
  KEY `N_LIGNE_TIC_CONTREPARTIE` (`N_LIGNE_TIC_CONTREPARTIE`) USING BTREE,
  KEY `N_TRESO_CONTREPARTIE` (`N_TRESO_CONTREPARTIE`) USING BTREE,
  KEY `N_TYPE_TVA` (`N_TYPE_TVA`) USING BTREE,
  KEY `PROFORMA` (`PROFORMA`) USING BTREE,
  KEY `N_AVOIR` (`N_AVOIR`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `IMPRESSION_AVOIR` (`IMPRESSION_AVOIR`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_bc_det`
--

CREATE TABLE `ges_co_document_vente_bc_det` (
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_BC_DET` varchar(32) NOT NULL DEFAULT '',
  `LIVRAISON_OK` char(1) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_VENTE` varchar(10) NOT NULL DEFAULT '',
  `N_DEPOT` double NOT NULL DEFAULT 0,
  `N_DEVIS` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_LIGNE` double NOT NULL DEFAULT 0,
  `PID_GES_CO_DOCUMENT_VENTE_BC_ET` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(100) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TVA` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `CONTREMARQUE` varchar(100) NOT NULL DEFAULT '',
  `DEVISE` double NOT NULL DEFAULT 0,
  `IDENT_DEVIS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `NOM_DEPOT` varchar(20) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `STOCK_SUIVI` char(1) NOT NULL DEFAULT '',
  `TOTAL_ANA` decimal(12,0) NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_BC_REGROUP` varchar(15) NOT NULL DEFAULT '',
  `IDENT_DEVIS_CLIENT_ET` varchar(32) NOT NULL DEFAULT '',
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_BC_DET`),
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_CPTE_GENERAL_VENTE` (`N_CPTE_GENERAL_VENTE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_BC_ET` (`PID_GES_CO_DOCUMENT_VENTE_BC_ET`) USING BTREE,
  KEY `DEVISE` (`DEVISE`) USING BTREE,
  KEY `IDENT_DEVIS_DET` (`IDENT_DEVIS_DET`) USING BTREE,
  KEY `NOM_DEPOT` (`NOM_DEPOT`) USING BTREE,
  KEY `N_LIGNE` (`N_LIGNE`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `IDENT_DEVIS_CLIENT_ET` (`IDENT_DEVIS_CLIENT_ET`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_bc_et`
--

CREATE TABLE `ges_co_document_vente_bc_et` (
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CP` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_BC_ET` varchar(32) NOT NULL DEFAULT '',
  `MAIL` varchar(100) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(11) NOT NULL DEFAULT '',
  `N_BL` varchar(11) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_DEVIS` varchar(11) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(11) NOT NULL DEFAULT '',
  `PHASE` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRENOM` varchar(40) NOT NULL DEFAULT '',
  `PREPA_COMMANDE` char(1) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(30) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL` varchar(15) NOT NULL DEFAULT '',
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `IMPRESSION_BC` char(1) NOT NULL DEFAULT '',
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` varchar(10) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `KM` varchar(10) NOT NULL DEFAULT '',
  `REF` varchar(20) NOT NULL DEFAULT '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `IDENT_DEVIS_CLIENT_ET` varchar(32) NOT NULL DEFAULT '',
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_BC_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `CP` (`CP`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `MAIL` (`MAIL`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `RAISON_SOCIALE` (`RAISON_SOCIALE`) USING BTREE,
  KEY `SUIVI_PAR` (`SUIVI_PAR`) USING BTREE,
  KEY `SUPPRESSION_DEFINITIVE` (`SUPPRESSION_DEFINITIVE`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `IMPRESSION_BC` (`IMPRESSION_BC`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_FACT` (`N_FACT`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `IDENT_DEVIS_CLIENT_ET` (`IDENT_DEVIS_CLIENT_ET`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_bl_det`
--

CREATE TABLE `ges_co_document_vente_bl_det` (
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_CLI_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_BL_DET` varchar(32) NOT NULL DEFAULT '',
  `NOM_DEPOT` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_BL` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_VENTE` varchar(10) NOT NULL DEFAULT '',
  `N_DEPOT` double NOT NULL DEFAULT 0,
  `N_DEVIS` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_LIGNE` double NOT NULL DEFAULT 0,
  `PID_GES_CO_DOCUMENT_VENTE_BL_ET` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(100) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TVA` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `CONTREMARQUE` varchar(100) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `DEVISE` double NOT NULL DEFAULT 0,
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `N_FACT` varchar(10) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `STOCK_SUIVI` char(1) NOT NULL DEFAULT '',
  `TOTAL_ANA` double NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_BL_REGROUP` varchar(15) NOT NULL DEFAULT '',
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_BL_DET`),
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `IDENT_BC_CLI_DET` (`IDENT_BC_CLI_DET`) USING BTREE,
  KEY `IDENT_BC_CLI_ET` (`IDENT_BC_CLI_ET`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_CPTE_GENERAL_VENTE` (`N_CPTE_GENERAL_VENTE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_BL_ET` (`PID_GES_CO_DOCUMENT_VENTE_BL_ET`) USING BTREE,
  KEY `DEVISE` (`DEVISE`) USING BTREE,
  KEY `NOM_DEPOT` (`NOM_DEPOT`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_LIGNE` (`N_LIGNE`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_bl_et`
--

CREATE TABLE `ges_co_document_vente_bl_et` (
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CP` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `IDENT_BC_CLIENT_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DEVIS_CLIENT_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_CLIENT_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_BL_ET` varchar(32) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(11) NOT NULL DEFAULT '',
  `N_BL` varchar(11) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_DEVIS` varchar(11) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `PHASE` varchar(10) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRENOM` varchar(20) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(40) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL` varchar(15) NOT NULL DEFAULT '',
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `IMPRESSION_BL` char(1) NOT NULL DEFAULT '',
  `CORPS_MESSAGE_VALIDATION` varchar(10) NOT NULL DEFAULT '',
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `KM` double NOT NULL DEFAULT 0,
  `MAIL` varchar(100) NOT NULL DEFAULT '',
  `N_FACT` varchar(10) NOT NULL DEFAULT '',
  `REF` varchar(20) NOT NULL DEFAULT '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_BL_ET`),
  KEY `CP` (`CP`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_BC_CLIENT_ET` (`IDENT_BC_CLIENT_ET`) USING BTREE,
  KEY `IDENT_DEVIS_CLIENT_ET` (`IDENT_DEVIS_CLIENT_ET`) USING BTREE,
  KEY `IDENT_FACT_CLIENT_ET` (`IDENT_FACT_CLIENT_ET`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `SUPPRESSION_DEFINITIVE` (`SUPPRESSION_DEFINITIVE`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `IMPRESSION_BL` (`IMPRESSION_BL`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_DEVIS` (`N_DEVIS`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_devis_det`
--

CREATE TABLE `ges_co_document_vente_devis_det` (
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_DEVIS_DET` varchar(32) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_VENTE` varchar(10) NOT NULL DEFAULT '',
  `N_DEVIS` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_LIGNE` double NOT NULL DEFAULT 0,
  `PID_GES_CO_DOCUMENT_VENTE_DEVIS_ET` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_TTC` decimal(12,2) NOT NULL DEFAULT 0.00,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(100) NOT NULL DEFAULT '',
  `STOCK` char(1) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TVA` double NOT NULL DEFAULT 0,
  `TX_REMISE` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `DEVISE` double NOT NULL DEFAULT 0,
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_DEVIS_DET`),
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_CPTE_GENERAL_VENTE` (`N_CPTE_GENERAL_VENTE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_DEVIS_ET` (`PID_GES_CO_DOCUMENT_VENTE_DEVIS_ET`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_devis_et`
--

CREATE TABLE `ges_co_document_vente_devis_et` (
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CP` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_DEVIS_ET` varchar(32) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_DEVIS` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `PHASE` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRENOM` varchar(20) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(30) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL` varchar(15) NOT NULL DEFAULT '',
  `TIERS_DATE_HEURE` varchar(100) NOT NULL DEFAULT '',
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `IMPRESSION_DEVIS` char(1) NOT NULL DEFAULT '',
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `KM` double NOT NULL DEFAULT 0,
  `REF` varchar(20) NOT NULL DEFAULT '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_DEVIS_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `CP` (`CP`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `RAISON_SOCIALE` (`RAISON_SOCIALE`) USING BTREE,
  KEY `SUIVI_PAR` (`SUIVI_PAR`) USING BTREE,
  KEY `SUPPRESSION_DEFINITIVE` (`SUPPRESSION_DEFINITIVE`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `IMPRESSION_DEVIS` (`IMPRESSION_DEVIS`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `DATE_ECHEANCE` (`DATE_ECHEANCE`) USING BTREE,
  KEY `N_DEVIS` (`N_DEVIS`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_fact_det`
--

CREATE TABLE `ges_co_document_vente_fact_det` (
  `CONTREMARQUE` varchar(100) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_CLI_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_CLI_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DEVIS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DEVIS_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_FACT_DET` varchar(32) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_BL` varchar(10) NOT NULL DEFAULT '',
  `N_DEPOT` double NOT NULL DEFAULT 0,
  `N_DEVIS` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(10) NOT NULL DEFAULT '',
  `N_LIGNE` double NOT NULL DEFAULT 0,
  `PID_GES_CO_DOCUMENT_VENTE_FACT_ET` varchar(32) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(100) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TVA` double NOT NULL DEFAULT 0,
  `TX_TVA` double NOT NULL DEFAULT 0,
  `IDENT_AVOIR_CLI_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AVOIR_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_FACT_FRS_DET` varchar(32) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_VENTE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_TVA_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `DEVISE` double NOT NULL DEFAULT 0,
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `INFO_CPTA_KO_GLOBAL` double NOT NULL DEFAULT 0,
  `NOM_DEPOT` varchar(20) NOT NULL DEFAULT '',
  `PRIX_TOTAL_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRIX_UNITAIRE_HT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `TOTAL_ANA` double NOT NULL DEFAULT 0,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `CODE_ATELIER` varchar(15) NOT NULL DEFAULT '',
  `SUIVI_STOCK` char(1) NOT NULL DEFAULT '',
  `FAMILLE` varchar(20) NOT NULL DEFAULT '',
  `PRIX_KILO_HT` double NOT NULL DEFAULT 0,
  `QUANTITE_KILO` double NOT NULL DEFAULT 0,
  `POIDS_UNITAIRE_GRAMME` double NOT NULL DEFAULT 0,
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_FACT_DET`),
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `IDENT_BC_CLI_DET` (`IDENT_BC_CLI_DET`) USING BTREE,
  KEY `IDENT_BC_CLI_ET` (`IDENT_BC_CLI_ET`) USING BTREE,
  KEY `IDENT_BL_CLI_DET` (`IDENT_BL_CLI_DET`) USING BTREE,
  KEY `IDENT_BL_CLI_ET` (`IDENT_BL_CLI_ET`) USING BTREE,
  KEY `IDENT_DEVIS_DET` (`IDENT_DEVIS_DET`) USING BTREE,
  KEY `IDENT_DEVIS_ET` (`IDENT_DEVIS_ET`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_FACT` (`N_FACT`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_FACT_ET` (`PID_GES_CO_DOCUMENT_VENTE_FACT_ET`) USING BTREE,
  KEY `IDENT_AVOIR_FRS_DET` (`IDENT_AVOIR_FRS_DET`) USING BTREE,
  KEY `IDENT_BC_FRS_DET` (`IDENT_BC_FRS_DET`) USING BTREE,
  KEY `IDENT_BL_FRS_DET` (`IDENT_BL_FRS_DET`) USING BTREE,
  KEY `IDENT_FACT_FRS_DET` (`IDENT_FACT_FRS_DET`) USING BTREE,
  KEY `N_LIGNE` (`N_LIGNE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `N_CPTE_GENERAL_TVA` (`N_CPTE_GENERAL_TVA`) USING BTREE,
  KEY `N_CPTE_GENERAL_VENTE` (`N_CPTE_GENERAL_VENTE`) USING BTREE,
  KEY `DEVISE` (`DEVISE`) USING BTREE,
  KEY `INFO_CPTA_KO_GLOBAL` (`INFO_CPTA_KO_GLOBAL`) USING BTREE,
  KEY `NOM_DEPOT` (`NOM_DEPOT`) USING BTREE,
  KEY `FAMILLE` (`FAMILLE`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `ANS_MAN` (`ANS_MAN`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_document_vente_fact_et`
--

CREATE TABLE `ges_co_document_vente_fact_et` (
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `CP` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `IDENT_BC_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BL_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DEVIS_CLI_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_DOCUMENT_VENTE_FACT_ET` varchar(32) NOT NULL DEFAULT '',
  `MAIL` varchar(100) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_BC` varchar(10) NOT NULL DEFAULT '',
  `N_BL` varchar(20) NOT NULL DEFAULT '',
  `N_DEVIS` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_FACT` varchar(11) NOT NULL DEFAULT '',
  `N_TRESO` double NOT NULL DEFAULT 0,
  `PHASE` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRENOM` varchar(20) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(50) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TEL` varchar(15) NOT NULL DEFAULT '',
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `PROFORMA` char(1) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `GROUPE` char(1) NOT NULL DEFAULT '',
  `GROUPE_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `GROUPE_N_DOSSIER` double NOT NULL DEFAULT 0,
  `IDENT_TIERS_CONTREPARTIE` varchar(32) NOT NULL DEFAULT '',
  `IMPRESSION_FACT` char(1) NOT NULL DEFAULT '',
  `NOM_TAXE_PAIEMENT_CONTREPARTIE` varchar(40) NOT NULL DEFAULT '',
  `NOM_TRESO` varchar(20) NOT NULL DEFAULT '',
  `NOM_TRESO_CONTREPARTIE` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT` varchar(20) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_BILAN_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_TIERS_CONTREPARTIE` varchar(50) NOT NULL DEFAULT '',
  `N_EXERCICE_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_LIGNE_TIC_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TAXE_PAIEMENT_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TRESO_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `N_TYPE_RGT` double NOT NULL DEFAULT 0,
  `N_TYPE_RGT_CONTREPARTIE` double NOT NULL DEFAULT 0,
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` varchar(10) NOT NULL DEFAULT '',
  `ELEMENTS_ARTICLE_CPTA_OK` char(1) NOT NULL DEFAULT '',
  `IDENT_ECRITURE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `INDICE_TAXE_CARBURANT_COUT` double NOT NULL DEFAULT 0,
  `INDICE_TAXE_CARBURANT_MOIS` double NOT NULL DEFAULT 0,
  `INDICE_TAXE_CARBURANT_REF` double NOT NULL DEFAULT 0,
  `INDICE_TAXE_CARBURANT_TOTAL` double NOT NULL DEFAULT 0,
  `KM` double NOT NULL DEFAULT 0,
  `NOM_TYPE_TVA` varchar(20) NOT NULL DEFAULT '',
  `N_ECRITURE` varchar(15) NOT NULL DEFAULT '',
  `N_TYPE_TVA` double NOT NULL DEFAULT 0,
  `REF` varchar(20) NOT NULL DEFAULT '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `ELEMENTS_CODE_ATELIER_CPTA_OK` char(1) NOT NULL DEFAULT '',
  `INDEXATION_GO` double NOT NULL DEFAULT 0,
  `LIBELLE_ECRITURE` char(1) NOT NULL DEFAULT '',
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `DELAIS_TYPE_RGT` varchar(50) NOT NULL DEFAULT '',
  `COMPTAGE_LIGNE` decimal(12,0) NOT NULL DEFAULT 0,
  `DATE_DEBUT_COMMANDE` date DEFAULT NULL,
  `DATE_FIN_COMMANDE` date DEFAULT NULL,
  `ECRITURE_CAUTION` char(1) NOT NULL DEFAULT '',
  `NOM_TARIF` varchar(32) NOT NULL DEFAULT '',
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  `VERIFICATION` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_DOCUMENT_VENTE_FACT_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `IDENT_BC_CLI_ET` (`IDENT_BC_CLI_ET`) USING BTREE,
  KEY `IDENT_BL_CLI_ET` (`IDENT_BL_CLI_ET`) USING BTREE,
  KEY `IDENT_DEVIS_CLI_ET` (`IDENT_DEVIS_CLI_ET`) USING BTREE,
  KEY `MAIL` (`MAIL`) USING BTREE,
  KEY `N_BC` (`N_BC`) USING BTREE,
  KEY `N_BL` (`N_BL`) USING BTREE,
  KEY `N_DEVIS` (`N_DEVIS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_TRESO` (`N_TRESO`) USING BTREE,
  KEY `PHASE` (`PHASE`) USING BTREE,
  KEY `RAISON_SOCIALE` (`RAISON_SOCIALE`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `DATE_ECHEANCE` (`DATE_ECHEANCE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `PROFORMA` (`PROFORMA`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `GROUPE` (`GROUPE`) USING BTREE,
  KEY `GROUPE_N_DOSSIER` (`GROUPE_N_DOSSIER`) USING BTREE,
  KEY `IDENT_TIERS_CONTREPARTIE` (`IDENT_TIERS_CONTREPARTIE`) USING BTREE,
  KEY `IMPRESSION_FACT` (`IMPRESSION_FACT`) USING BTREE,
  KEY `N_CPTE_BILAN_CONTREPARTIE` (`N_CPTE_BILAN_CONTREPARTIE`) USING BTREE,
  KEY `N_CPTE_GENERAL_ACHAT_CONTREPARTIE` (`N_CPTE_GENERAL_ACHAT_CONTREPARTIE`) USING BTREE,
  KEY `N_CPTE_TIERS_CONTREPARTIE` (`N_CPTE_TIERS_CONTREPARTIE`) USING BTREE,
  KEY `N_EXERCICE_CONTREPARTIE` (`N_EXERCICE_CONTREPARTIE`) USING BTREE,
  KEY `N_LIGNE_TIC_CONTREPARTIE` (`N_LIGNE_TIC_CONTREPARTIE`) USING BTREE,
  KEY `N_TRESO_CONTREPARTIE` (`N_TRESO_CONTREPARTIE`) USING BTREE,
  KEY `CP` (`CP`) USING BTREE,
  KEY `N_FACT` (`N_FACT`) USING BTREE,
  KEY `N_TYPE_TVA` (`N_TYPE_TVA`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `DATE_DEBUT_COMMANDE` (`DATE_DEBUT_COMMANDE`) USING BTREE,
  KEY `DATE_FIN_COMMANDE` (`DATE_FIN_COMMANDE`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ges_co_prepa_cde_fournisseurs`
--

CREATE TABLE `ges_co_prepa_cde_fournisseurs` (
  `A_COMMANDER` char(1) NOT NULL DEFAULT '',
  `CONTREMARQUE` varchar(50) NOT NULL DEFAULT '',
  `COULEUR` varchar(20) NOT NULL DEFAULT '',
  `DATE` date DEFAULT NULL,
  `DATE_LIVRAISON` date DEFAULT NULL,
  `DESCRIPTIF` varchar(200) NOT NULL DEFAULT '',
  `FAIT` char(1) NOT NULL DEFAULT '',
  `FOURNISSEUR` varchar(50) NOT NULL DEFAULT '',
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_BC_CLIENT_ET` varchar(32) NOT NULL DEFAULT '',
  `ID_GES_CO_PREPA_CDE_FOURNISSEURS` varchar(32) NOT NULL DEFAULT '',
  `ITEM_DD` varchar(10) NOT NULL DEFAULT '',
  `ITEM_ID` double NOT NULL DEFAULT 0,
  `MOIS_INSTALLATION` date DEFAULT NULL,
  `MOIS_PREPA_COMMANDE` date DEFAULT NULL,
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(100) NOT NULL DEFAULT '',
  `NOM_FOURNISSEUR_PREPA_COMMANDE` varchar(20) NOT NULL DEFAULT '',
  `NUMERO_SUIVI_COMMANDE` varchar(20) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `PID_SUIVI_COMMANDE` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRIX_ACHAT_TOTAL` double NOT NULL DEFAULT 0,
  `PRIX_ACHAT_UNITAIRE` double NOT NULL DEFAULT 0,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `QUANTITE_COMMANDE` double NOT NULL DEFAULT 0,
  `REF` varchar(100) NOT NULL DEFAULT '',
  `SOUSTOTAL` double NOT NULL DEFAULT 0,
  `STOCK` char(1) NOT NULL DEFAULT '',
  `STOCK_EXISTE` char(1) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_LIEN_CONTEXTE_MAITRE` varchar(32) NOT NULL DEFAULT '',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TOTAL_BON_DE_COMMANDE` double NOT NULL DEFAULT 0,
  `FAMILLE` varchar(20) NOT NULL DEFAULT '',
  `H` double NOT NULL DEFAULT 0,
  `IDENT_BC_CLIENT_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_CLIENT` varchar(32) NOT NULL DEFAULT '',
  `L` double NOT NULL DEFAULT 0,
  `MODELE` varchar(20) NOT NULL DEFAULT '',
  `P` double NOT NULL DEFAULT 0,
  `Q_STOCK_MINI` double NOT NULL DEFAULT 0,
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `IDENT_OR` varchar(32) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GES_CO_PREPA_CDE_FOURNISSEURS`),
  KEY `FOURNISSEUR` (`FOURNISSEUR`) USING BTREE,
  KEY `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `NUMERO_SUIVI_COMMANDE` (`NUMERO_SUIVI_COMMANDE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_SUIVI_COMMANDE` (`PID_SUIVI_COMMANDE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `QUANTITE_COMMANDE` (`QUANTITE_COMMANDE`) USING BTREE,
  KEY `STOCK` (`STOCK`) USING BTREE,
  KEY `STOCK_EXISTE` (`STOCK_EXISTE`) USING BTREE,
  KEY `SYS_LIEN_CONTEXTE_MAITRE` (`SYS_LIEN_CONTEXTE_MAITRE`) USING BTREE,
  KEY `FAMILLE` (`FAMILLE`) USING BTREE,
  KEY `IDENT_BC_CLIENT_DET` (`IDENT_BC_CLIENT_DET`) USING BTREE,
  KEY `IDENT_CLIENT` (`IDENT_CLIENT`) USING BTREE,
  KEY `IDENT_BC_CLIENT_ET` (`IDENT_BC_CLIENT_ET`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `gestion_contrat_det`
--

CREATE TABLE `gestion_contrat_det` (
  `ID_GESTION_CONTRAT_DET` varchar(32) NOT NULL DEFAULT '',
  `PID_GESTION_CONTRAT_ET` varchar(32) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `IDENT_BATIMENT` varchar(32) NOT NULL DEFAULT '',
  `NOM_BATIMENT` varchar(100) NOT NULL DEFAULT '',
  `N_BATIMENT` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_GESTION_CONTRAT_DET`),
  KEY `PID_GESTION_CONTRAT_ET` (`PID_GESTION_CONTRAT_ET`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `IDENT_BATIMENT` (`IDENT_BATIMENT`) USING BTREE,
  KEY `NOM_BATIMENT` (`NOM_BATIMENT`) USING BTREE,
  KEY `N_BATIMENT` (`N_BATIMENT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `gestion_contrat_et`
--

CREATE TABLE `gestion_contrat_et` (
  `ID_GESTION_CONTRAT_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_DOCUMENT_ARCHIVE` varchar(32) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `DATE_DEBUT` date DEFAULT NULL,
  `DATE_FIN` date DEFAULT NULL,
  `DATE_PREAVIS` date DEFAULT NULL,
  `DATE_PREVENANCE` date DEFAULT NULL,
  `MONTANT_TTC` decimal(12,2) NOT NULL DEFAULT 0.00,
  `IDENT_TIERS` varchar(32) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(40) NOT NULL DEFAULT '',
  `N_CONTRAT` varchar(10) NOT NULL DEFAULT '',
  `NOM_CONTRAT` varchar(100) NOT NULL DEFAULT '',
  `MEMO` blob DEFAULT NULL,
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `N_PIECE` varchar(15) NOT NULL DEFAULT '',
  `MONTANT_HT_MOIS` decimal(12,2) NOT NULL DEFAULT 0.00,
  `MONTANT_HT_ANNEE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DUREE` double NOT NULL DEFAULT 0,
  `PID_BATIMENT_ET` varchar(32) NOT NULL DEFAULT '',
  `DELAIS_PREVENANCE` decimal(12,0) NOT NULL DEFAULT 0,
  `RECONDUCTION_TACITE` double NOT NULL DEFAULT 0,
  `DATE_ALERTE` date DEFAULT NULL,
  PRIMARY KEY (`ID_GESTION_CONTRAT_ET`),
  KEY `PID_DOCUMENT_ARCHIVE` (`PID_DOCUMENT_ARCHIVE`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `IDENT_TIERS` (`IDENT_TIERS`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `N_CONTRAT` (`N_CONTRAT`) USING BTREE,
  KEY `PID_BATIMENT_ET` (`PID_BATIMENT_ET`) USING BTREE,
  KEY `DATE_ALERTE` (`DATE_ALERTE`) USING BTREE,
  KEY `DATE_PREVENANCE` (`DATE_PREVENANCE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `immo_det`
--

CREATE TABLE `immo_det` (
  `AJUSTEMENT` char(1) NOT NULL DEFAULT '',
  `ANNEE` double NOT NULL DEFAULT 0,
  `DATEHEURE` varchar(60) NOT NULL DEFAULT '',
  `DATE_DEBUT_PERIO` date DEFAULT NULL,
  `DATE_FIN_PERIO` date DEFAULT NULL,
  `DATE_SORTIE` date DEFAULT NULL,
  `IDENTIFICATION_ECRITURE_COMPTABLE` varchar(32) NOT NULL DEFAULT '',
  `ID_IMMO_DET` varchar(32) NOT NULL DEFAULT '',
  `INTITULE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NUMERO` double NOT NULL DEFAULT 0,
  `NUMERO1` double NOT NULL DEFAULT 0,
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_ECRITURE` varchar(20) NOT NULL DEFAULT '',
  `N_EXERCICE` double NOT NULL DEFAULT 0,
  `PERIODICITE` varchar(20) NOT NULL DEFAULT '',
  `PID_IMMO_ET` varchar(32) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TYPE_IMMO` varchar(50) NOT NULL DEFAULT '',
  `VERROU` char(1) NOT NULL DEFAULT '',
  `ANNEE_BASCULE_LINEAIRE` decimal(12,0) NOT NULL DEFAULT 0,
  `AR_DERO` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_DERO` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_DERO_1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_DERO_CUMUL` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_DERO_FIN` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_ECO` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_ECO_1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_ECO_CUMUL` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_ECO_FIN` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_ECO_STD` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_GLOBAL_CUMUL` decimal(12,2) NOT NULL DEFAULT 0.00,
  `BA` decimal(12,2) NOT NULL DEFAULT 0.00,
  `COEFF_DEGRESSIF` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DATE_ACQUISITION` date DEFAULT NULL,
  `DATE_ACQUISITION_DEGRESSIF` date DEFAULT NULL,
  `DATE_ACQUISITION_FIN_EX` date DEFAULT NULL,
  `DUREE_FISCALE` decimal(12,0) NOT NULL DEFAULT 0,
  `DUREE_UTILISATION` decimal(12,0) NOT NULL DEFAULT 0,
  `NUMERO_IMMO` varchar(10) NOT NULL DEFAULT '',
  `N_LIGNE_A_DERO` decimal(12,0) NOT NULL DEFAULT 0,
  `N_LIGNE_A_ECO` decimal(12,0) NOT NULL DEFAULT 0,
  `N_MOIS_EX1` decimal(12,0) NOT NULL DEFAULT 0,
  `TAUX_DEGRESSIF` decimal(12,6) NOT NULL DEFAULT 0.000000,
  `TAUX_LINEAIRE` decimal(12,6) NOT NULL DEFAULT 0.000000,
  `VB` decimal(12,2) NOT NULL DEFAULT 0.00,
  `VNC_DEBUT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `VNC_FIN` decimal(12,2) NOT NULL DEFAULT 0.00,
  `VNC_FIN_DEGRESSIF` decimal(12,2) NOT NULL DEFAULT 0.00,
  `N_IMPORT` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_IMMO_DET`),
  KEY `AJUSTEMENT` (`AJUSTEMENT`) USING BTREE,
  KEY `ANNEE` (`ANNEE`) USING BTREE,
  KEY `DATEHEURE` (`DATEHEURE`) USING BTREE,
  KEY `DATE_DEBUT_PERIO` (`DATE_DEBUT_PERIO`) USING BTREE,
  KEY `DATE_FIN_PERIO` (`DATE_FIN_PERIO`) USING BTREE,
  KEY `IDENTIFICATION_ECRITURE_COMPTABLE` (`IDENTIFICATION_ECRITURE_COMPTABLE`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `NUMERO` (`NUMERO`) USING BTREE,
  KEY `NUMERO1` (`NUMERO1`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_ECRITURE` (`N_ECRITURE`) USING BTREE,
  KEY `N_EXERCICE` (`N_EXERCICE`) USING BTREE,
  KEY `PERIODICITE` (`PERIODICITE`) USING BTREE,
  KEY `PID_IMMO_ET` (`PID_IMMO_ET`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `VERROU` (`VERROU`) USING BTREE,
  KEY `N_IMPORT` (`N_IMPORT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `immo_et`
--

CREATE TABLE `immo_et` (
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `ANS1` double NOT NULL DEFAULT 0,
  `ANS10` double NOT NULL DEFAULT 0,
  `ANS11` double NOT NULL DEFAULT 0,
  `ANS12` double NOT NULL DEFAULT 0,
  `ANS13` double NOT NULL DEFAULT 0,
  `ANS14` double NOT NULL DEFAULT 0,
  `ANS15` double NOT NULL DEFAULT 0,
  `ANS16` double NOT NULL DEFAULT 0,
  `ANS17` double NOT NULL DEFAULT 0,
  `ANS18` double NOT NULL DEFAULT 0,
  `ANS19` double NOT NULL DEFAULT 0,
  `ANS2` double NOT NULL DEFAULT 0,
  `ANS20` double NOT NULL DEFAULT 0,
  `ANS3` double NOT NULL DEFAULT 0,
  `ANS4` double NOT NULL DEFAULT 0,
  `ANS5` double NOT NULL DEFAULT 0,
  `ANS6` double NOT NULL DEFAULT 0,
  `ANS7` double NOT NULL DEFAULT 0,
  `ANS8` double NOT NULL DEFAULT 0,
  `ANS9` double NOT NULL DEFAULT 0,
  `BLOCAGE_IMMO` char(1) NOT NULL DEFAULT '',
  `DATE_ACQUISITION` date DEFAULT NULL,
  `DATE_SORTIE` date DEFAULT NULL,
  `DATHEURE` varchar(60) NOT NULL DEFAULT '',
  `FIN` date DEFAULT NULL,
  `ID_IMMO_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMO_ANT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `IMMO_CUMUL` decimal(12,2) NOT NULL DEFAULT 0.00,
  `IMMO_FISCAL_RESTANT` double NOT NULL DEFAULT 0,
  `IMMO_LIEE` varchar(40) NOT NULL DEFAULT '',
  `IMMO_LIEE_NUMERO` double NOT NULL DEFAULT 0,
  `INTITULE` varchar(100) NOT NULL DEFAULT '',
  `JOURNAL` varchar(10) NOT NULL DEFAULT '',
  `NOM_COMPTE_AMORT` varchar(50) NOT NULL DEFAULT '',
  `NOM_COMPTE_DOTATION` varchar(100) NOT NULL DEFAULT '',
  `NOM_COMPTE_DOTATION_EXCEP` varchar(100) NOT NULL DEFAULT '',
  `NOM_COMPTE_IMMO` varchar(50) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NOM_JOURNAL` varchar(50) NOT NULL DEFAULT '',
  `NUMERO` varchar(10) NOT NULL DEFAULT '',
  `N_COMPTE_AMORTISSEMENT` varchar(8) NOT NULL DEFAULT '',
  `N_COMPTE_DOTATION` varchar(8) NOT NULL DEFAULT '',
  `N_COMPTE_DOTATION_EXECP` varchar(8) NOT NULL DEFAULT '',
  `N_COMPTE_IMMOBILISATION` varchar(8) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_EXERCICE` varchar(10) NOT NULL DEFAULT '',
  `N_FIDAL` varchar(10) NOT NULL DEFAULT '',
  `PERIODICITE_ANNUELLE` varchar(20) NOT NULL DEFAULT '',
  `SOLDE` char(1) NOT NULL DEFAULT '',
  `SORTIE` char(1) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TAUX_DEROGATOIRE` double NOT NULL DEFAULT 0,
  `TOTAL_ANA` double NOT NULL DEFAULT 0,
  `TYPE_IMMO` varchar(50) NOT NULL DEFAULT '',
  `VALEUR_SORTIE` double NOT NULL DEFAULT 0,
  `VR` double NOT NULL DEFAULT 0,
  `IMMATRICULATION` varchar(15) NOT NULL DEFAULT '',
  `PID_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `ANNEE_BASCULE_LINEAIRE` decimal(12,0) NOT NULL DEFAULT 0,
  `ANNUEL` char(1) NOT NULL DEFAULT '',
  `A_DERO` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_DERO_1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_DERO_FIN` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_ECO` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_ECO_1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_ECO_FIN` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_FISC` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_FISC_1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `A_FISC_FIN` decimal(12,2) NOT NULL DEFAULT 0.00,
  `BA` decimal(12,2) NOT NULL DEFAULT 0.00,
  `COEFF_DEGRESSIF` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DATE_ACQUISITION_DEGRESSIF` date DEFAULT NULL,
  `DATE_ACQUISITION_FIN_EX` date DEFAULT NULL,
  `DUREE_FISCALE` decimal(12,0) NOT NULL DEFAULT 0,
  `DUREE_UTILISATION` decimal(12,0) NOT NULL DEFAULT 0,
  `IDENT_IMMO_LIEE` varchar(32) NOT NULL DEFAULT '',
  `MEMO` blob DEFAULT NULL,
  `N_LIGNE_A_DERO` decimal(12,0) NOT NULL DEFAULT 0,
  `N_LIGNE_A_ECO` decimal(12,0) NOT NULL DEFAULT 0,
  `N_MOIS_EX1` decimal(12,0) NOT NULL DEFAULT 0,
  `TAUX_DEGRESSIF` decimal(12,6) NOT NULL DEFAULT 0.000000,
  `TAUX_LINEAIRE` decimal(12,6) NOT NULL DEFAULT 0.000000,
  `VB` decimal(12,2) NOT NULL DEFAULT 0.00,
  `SORTIE_REBUT` char(1) NOT NULL DEFAULT '',
  `SORTIE_VENTE` char(1) NOT NULL DEFAULT '',
  `VALEUR_CESSION` decimal(12,2) NOT NULL DEFAULT 0.00,
  `TIERS_CESSION` varchar(30) NOT NULL DEFAULT '',
  `TVA_CESSION` char(1) NOT NULL DEFAULT '',
  `ECRITURE_CESSION_DANS_COMPTA` char(1) NOT NULL DEFAULT '',
  `A_DERO_CUMUL_CESSION` decimal(12,2) NOT NULL DEFAULT 0.00,
  `IDENTIFICATION_TIERS_CESSION` varchar(32) NOT NULL DEFAULT '',
  `VALEUR_SORTIE_MAN` char(1) NOT NULL DEFAULT '',
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  `COMPTAGE_LIGNE` decimal(12,0) NOT NULL DEFAULT 0,
  `MULTIPLE` decimal(12,0) NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_IMMO_ET`),
  KEY `BLOCAGE_IMMO` (`BLOCAGE_IMMO`) USING BTREE,
  KEY `DATE_SORTIE` (`DATE_SORTIE`) USING BTREE,
  KEY `DATHEURE` (`DATHEURE`) USING BTREE,
  KEY `FIN` (`FIN`) USING BTREE,
  KEY `IMMO_FISCAL_RESTANT` (`IMMO_FISCAL_RESTANT`) USING BTREE,
  KEY `INTITULE` (`INTITULE`) USING BTREE,
  KEY `JOURNAL` (`JOURNAL`) USING BTREE,
  KEY `NUMERO` (`NUMERO`) USING BTREE,
  KEY `N_COMPTE_AMORTISSEMENT` (`N_COMPTE_AMORTISSEMENT`) USING BTREE,
  KEY `N_COMPTE_DOTATION` (`N_COMPTE_DOTATION`) USING BTREE,
  KEY `N_COMPTE_DOTATION_EXECP` (`N_COMPTE_DOTATION_EXECP`) USING BTREE,
  KEY `N_COMPTE_IMMOBILISATION` (`N_COMPTE_IMMOBILISATION`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_FIDAL` (`N_FIDAL`) USING BTREE,
  KEY `PERIODICITE_ANNUELLE` (`PERIODICITE_ANNUELLE`) USING BTREE,
  KEY `SOLDE` (`SOLDE`) USING BTREE,
  KEY `SORTIE` (`SORTIE`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `IDENT_IMMO_LIEE` (`IDENT_IMMO_LIEE`) USING BTREE,
  KEY `ANS_MAN` (`ANS_MAN`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `import_appli_ext`
--

CREATE TABLE `import_appli_ext` (
  `ID_IMPORT_APPLI_EXT` varchar(32) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_DOSSIER` decimal(12,0) NOT NULL DEFAULT 0,
  `N_IMPORT_APPLI_EXT` varchar(15) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TYPE_IMPORT` varchar(100) NOT NULL DEFAULT '',
  `NBRE_ECRITURE_COMPTA` decimal(12,0) NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_IMPORT_APPLI_EXT`),
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_IMPORT_APPLI_EXT` (`N_IMPORT_APPLI_EXT`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `import_caisse`
--

CREATE TABLE `import_caisse` (
  `ID_IMPORT_CAISSE` varchar(32) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_IMPORT_CAISSE` varchar(15) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `DEBUT` date DEFAULT NULL,
  `FIN` date DEFAULT NULL,
  `COMMENTAIRE` blob DEFAULT NULL,
  `NOM_IMPORT` varchar(20) NOT NULL DEFAULT '',
  `DATE_ECHEANCE_FIXE` date DEFAULT NULL,
  PRIMARY KEY (`ID_IMPORT_CAISSE`),
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_IMPORT_CAISSE` (`N_IMPORT_CAISSE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `import_compta`
--

CREATE TABLE `import_compta` (
  `ID_IMPORT_COMPTA` varchar(32) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_DOSSIER` decimal(12,0) NOT NULL DEFAULT 0,
  `N_IMPORT_COMPTA` varchar(15) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TYPE_IMPORT` varchar(100) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_IMPORT_COMPTA`),
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_IMPORT_COMPTA` (`N_IMPORT_COMPTA`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `import_nouveaux_dossiers`
--

CREATE TABLE `import_nouveaux_dossiers` (
  `ID_IMPORT_NOUVEAUX_DOSSIERS` varchar(32) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `N_IMPORT` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_IMPORT_NOUVEAUX_DOSSIERS`),
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `N_IMPORT` (`N_IMPORT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `import_parc_km`
--

CREATE TABLE `import_parc_km` (
  `ID_IMPORT_PARC_KM` varchar(32) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `N_DOSSIER` varchar(10) NOT NULL DEFAULT '',
  `N_IMPORT_KM` varchar(15) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_IMPORT_PARC_KM`),
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_IMPORT_KM` (`N_IMPORT_KM`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `import_rh_divers`
--

CREATE TABLE `import_rh_divers` (
  `ID_IMPORT_RH_DIVERS` varchar(32) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `N_IMPORT_DIVERS` varchar(15) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `TYPE_IMPORT` varchar(20) NOT NULL DEFAULT '',
  `NOM_IMPORT` varchar(50) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_IMPORT_RH_DIVERS`),
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `N_IMPORT_DIVERS` (`N_IMPORT_DIVERS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `import_rh_od_paie`
--

CREATE TABLE `import_rh_od_paie` (
  `ID_IMPORT_RH_OD_PAIE` varchar(32) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `N_IMPORT_OD_PAIE` varchar(15) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `DATE_ECRITURE` date DEFAULT NULL,
  `TYPE_IMPORT` varchar(20) NOT NULL DEFAULT '',
  `NOM_IMPORT` varchar(30) NOT NULL DEFAULT '',
  `DATE_ECHEANCE` date DEFAULT NULL,
  `NOM_LOGICIEL_PAIE` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_IMPORT_RH_OD_PAIE`),
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `N_IMPORT_OD_PAIE` (`N_IMPORT_OD_PAIE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
