-- Table structure for table `import_rh_prepa_paie`
--

CREATE TABLE `import_rh_prepa_paie` (
  `ID_IMPORT_RH_PREPA_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_PREPA_PAIE` 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 '',
  `NOM_LOGICIEL` varchar(30) NOT NULL DEFAULT '',
  `DATE` date DEFAULT NULL,
  PRIMARY KEY (`ID_IMPORT_RH_PREPA_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_PREPA_PAIE` (`N_IMPORT_PREPA_PAIE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `import_tiers`
--

CREATE TABLE `import_tiers` (
  `ID_IMPORT_TIERS` 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_TIERS` varchar(15) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NB_TIERS_IMPORT` double NOT NULL DEFAULT 0,
  `NB_CONTACT_IMPORT` double NOT NULL DEFAULT 0,
  `HISTORIQUE` longblob DEFAULT NULL,
  PRIMARY KEY (`ID_IMPORT_TIERS`),
  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_TIERS` (`N_IMPORT_TIERS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `NB_TIERS_IMPORT` (`NB_TIERS_IMPORT`) USING BTREE,
  KEY `NB_CONTACT_IMPORT` (`NB_CONTACT_IMPORT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `import_tms_divers`
--

CREATE TABLE `import_tms_divers` (
  `ID_IMPORT_TMS_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_TMS_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 '',
  `NOM_TMS` varchar(30) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_IMPORT_TMS_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_TMS_DIVERS` (`N_IMPORT_TMS_DIVERS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `import_tms_facture`
--

CREATE TABLE `import_tms_facture` (
  `ID_IMPORT_TMS_FACTURE` 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,
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_IMPORT_FACTURE` varchar(15) NOT NULL DEFAULT '',
  `TYPE_IMPORT` varchar(20) NOT NULL DEFAULT '',
  `NOM_TMS` varchar(20) NOT NULL DEFAULT '',
  `DEBUT` date DEFAULT NULL,
  `FIN` date DEFAULT NULL,
  `MEMO` blob DEFAULT NULL,
  `N_DEBUT` varchar(15) NOT NULL DEFAULT '',
  `N_FIN` varchar(15) NOT NULL DEFAULT '',
  `NOM_IMPORT` varchar(100) NOT NULL DEFAULT '',
  `NBRE_ECRITURE_COMPTA` decimal(12,0) NOT NULL DEFAULT 0,
  `DATE_ECHEANCE_FIXE` date DEFAULT NULL,
  PRIMARY KEY (`ID_IMPORT_TMS_FACTURE`),
  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_FACTURE` (`N_IMPORT_FACTURE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `import_tms_tiers`
--

CREATE TABLE `import_tms_tiers` (
  `ID_IMPORT_TMS_TIERS` 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_TIERS` 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 '',
  `MEMO` blob DEFAULT NULL,
  `NBRE_LIGNE_TIERS` decimal(12,0) NOT NULL DEFAULT 0,
  `NOM_TMS` varchar(30) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_IMPORT_TMS_TIERS`),
  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_TIERS` (`N_IMPORT_TIERS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `import_zendoc`
--

CREATE TABLE `import_zendoc` (
  `ID_IMPORT_ZENDOC` 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` decimal(12,0) NOT NULL DEFAULT 0,
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_IMPORT_ZENDOC` varchar(15) NOT NULL DEFAULT '',
  `TYPE_IMPORT` varchar(100) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_IMPORT_ZENDOC`),
  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_ZENDOC` (`N_IMPORT_ZENDOC`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `jobs`
--

CREATE TABLE `jobs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `queue` varchar(255) NOT NULL,
  `payload` longtext NOT NULL,
  `attempts` tinyint(3) unsigned NOT NULL,
  `reserved_at` int(10) unsigned DEFAULT NULL,
  `available_at` int(10) unsigned NOT NULL,
  `created_at` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `jobs_queue_index` (`queue`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Table structure for table `loc_fi_det`
--

CREATE TABLE `loc_fi_det` (
  `ANNEE` double NOT NULL DEFAULT 0,
  `ASSURANCES` decimal(12,2) NOT NULL DEFAULT 0.00,
  `BASE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `CAPITAL` decimal(12,2) NOT NULL DEFAULT 0.00,
  `COEFFICIENT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DATE` date DEFAULT NULL,
  `DATE1` date DEFAULT NULL,
  `DUREE` decimal(12,0) NOT NULL DEFAULT 0,
  `ENTRETIEN` decimal(12,2) NOT NULL DEFAULT 0.00,
  `ID_LOC_FI_DET` varchar(32) NOT NULL DEFAULT '',
  `INTERET` decimal(12,2) NOT NULL DEFAULT 0.00,
  `INTITULE` varchar(100) NOT NULL DEFAULT '',
  `MENSUALITE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `MULTIPLE` decimal(12,0) NOT NULL DEFAULT 0,
  `NBRE_ANNEE_RESTANTE` double NOT NULL DEFAULT 0,
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NUMERO` double NOT NULL DEFAULT 0,
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_EXERCICE` double NOT NULL DEFAULT 0,
  `P` varchar(32) NOT NULL DEFAULT '',
  `PERIODICITE` varchar(30) NOT NULL DEFAULT '',
  `PID_LOC_FI_ET` varchar(32) NOT NULL DEFAULT '',
  `POURCENTAGE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRET_CUMUL` decimal(12,2) NOT NULL DEFAULT 0.00,
  `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` decimal(12,2) NOT NULL DEFAULT 0.00,
  `VERROU` char(1) NOT NULL DEFAULT '',
  `VR` double NOT NULL DEFAULT 0,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `IDENTIFICATION_ECRITURE` varchar(32) NOT NULL DEFAULT '',
  `N_ECRITURE` varchar(32) NOT NULL DEFAULT '',
  `DATE_SORTIE` date DEFAULT NULL,
  `N_PI_SPEC` varchar(20) NOT NULL DEFAULT '',
  `N_PIECE_INTERNE_NUM_SEUL` varchar(10) NOT NULL DEFAULT '',
  `NUMERO_LOC` varchar(10) NOT NULL DEFAULT '',
  `CALAGE` char(1) NOT NULL DEFAULT '',
  `MENSUALITE1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `N_IMPORT` varchar(20) NOT NULL DEFAULT '',
  `ASSURANCES1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `ENTRETIEN1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `TVA1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PREMIER_LOYER` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DATE_PAIEMENT` date DEFAULT NULL,
  PRIMARY KEY (`ID_LOC_FI_DET`),
  KEY `ANNEE` (`ANNEE`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE1` (`DATE1`) USING BTREE,
  KEY `NUMERO` (`NUMERO`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_EXERCICE` (`N_EXERCICE`) USING BTREE,
  KEY `P` (`P`) USING BTREE,
  KEY `PID_LOC_FI_ET` (`PID_LOC_FI_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 `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENTIFICATION_ECRITURE` (`IDENTIFICATION_ECRITURE`) USING BTREE,
  KEY `N_ECRITURE` (`N_ECRITURE`) USING BTREE,
  KEY `MULTIPLE` (`MULTIPLE`) USING BTREE,
  KEY `DATE_SORTIE` (`DATE_SORTIE`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `CALAGE` (`CALAGE`) USING BTREE,
  KEY `N_IMPORT` (`N_IMPORT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `loc_fi_et`
--

CREATE TABLE `loc_fi_et` (
  `ASSURANCE_MONTANT` double NOT NULL DEFAULT 0,
  `BASE` double NOT NULL DEFAULT 0,
  `BASE_EC` double NOT NULL DEFAULT 0,
  `BASE_FINANCEMENT` double NOT NULL DEFAULT 0,
  `COUT_FINANCEMENT` double NOT NULL DEFAULT 0,
  `DEBUT` date DEFAULT NULL,
  `DEBUT_EC` date DEFAULT NULL,
  `DELTA_EX_ANT` varchar(10) NOT NULL DEFAULT '',
  `DELTA_J` decimal(12,0) NOT NULL DEFAULT 0,
  `DELTA_JOUR` decimal(12,0) NOT NULL DEFAULT 0,
  `DURE` decimal(12,0) NOT NULL DEFAULT 0,
  `ECHEANCE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `ENTRETIEN_MONTANT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `FIN` date DEFAULT NULL,
  `FIN_EC` date DEFAULT NULL,
  `FRAIS_MONTANT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `ID_LOC_FI_ET` varchar(32) NOT NULL DEFAULT '',
  `INTITULE` varchar(100) NOT NULL DEFAULT '',
  `JOURNAL` varchar(10) NOT NULL DEFAULT '',
  `MENSUALITE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `MEOMO` blob DEFAULT NULL,
  `MULTIPLE` decimal(12,0) NOT NULL DEFAULT 0,
  `NBRE_JOURS_MOIS_COURANT` double NOT NULL DEFAULT 0,
  `NOM_BANQUE` varchar(10) NOT NULL DEFAULT '',
  `NOM_COMPTE_ASSURANCE` varchar(50) NOT NULL DEFAULT '',
  `NOM_COMPTE_CAPITAL` varchar(50) NOT NULL DEFAULT '',
  `NOM_COMPTE_ENTRETIEN` varchar(50) NOT NULL DEFAULT '',
  `NOM_COMPTE_INTERET` varchar(50) NOT NULL DEFAULT '',
  `NOM_COMPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `NOM_COMPTE_TRESO` varchar(100) NOT NULL DEFAULT '',
  `NOM_COMPTE_TVA` varchar(50) NOT NULL DEFAULT '',
  `NOM_JOURNAL` varchar(50) NOT NULL DEFAULT '',
  `NUMERO` varchar(10) NOT NULL DEFAULT '',
  `N_COMPTE_ASSURANCE` double NOT NULL DEFAULT 0,
  `N_COMPTE_CAPITAL` double NOT NULL DEFAULT 0,
  `N_COMPTE_ENTRETIEN` double NOT NULL DEFAULT 0,
  `N_COMPTE_INTERET` double NOT NULL DEFAULT 0,
  `N_COMPTE_TVA` double NOT NULL DEFAULT 0,
  `N_CONTRAT` varchar(15) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_EXERCICE` varchar(10) NOT NULL DEFAULT '',
  `N_PERIO` double NOT NULL DEFAULT 0,
  `N_TRESO` double NOT NULL DEFAULT 0,
  `PERIODICITE` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PREMIER_LOYER` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRET_ANT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRET_CUMUL` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRET_JOUR` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `PRET_PERIO` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRET_PERIODICITE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `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` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TAUX_ASSURANCES` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TAUX_FRAIS` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TAUX_VALEUR_RESIDUELLE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `TEG` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TYPE_PRET` varchar(20) NOT NULL DEFAULT '',
  `VALEUR_RESIDUELLE` double NOT NULL DEFAULT 0,
  `DATE_SORTIE` date DEFAULT NULL,
  `BLOCAGE_LOC_FI` char(1) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `N_COMPTE_BILAN` double NOT NULL DEFAULT 0,
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_LIGNE_INFO_COMPTA` double NOT NULL DEFAULT 0,
  `TERME` varchar(10) NOT NULL DEFAULT '',
  `SOLDE` char(1) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `PASSAGE_365` char(1) NOT NULL DEFAULT '',
  `SOMME_LOYER` double NOT NULL DEFAULT 0,
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `DATE_PREAVIS` date DEFAULT NULL,
  `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,
  `TOTAL_ANA` double NOT NULL DEFAULT 0,
  `IMMATRICULATION` varchar(15) NOT NULL DEFAULT '',
  `PID_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `N_PI_SPEC` char(1) NOT NULL DEFAULT '',
  `CALAGE` char(1) NOT NULL DEFAULT '',
  `SOMME_ENTRETIEN` double NOT NULL DEFAULT 0,
  `COMPTAGE_LIGNE` decimal(12,0) NOT NULL DEFAULT 0,
  `SOMME_ASSURANCE` double NOT NULL DEFAULT 0,
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  `TX_TVA` decimal(12,2) NOT NULL DEFAULT 0.00,
  `N_TYPE_TVA` decimal(12,0) NOT NULL DEFAULT 0,
  `TYPE_TVA` varchar(20) NOT NULL DEFAULT '',
  `N_TYPE_RGT` decimal(12,0) NOT NULL DEFAULT 0,
  `NOM_TYPE_RGT` varchar(20) NOT NULL DEFAULT '',
  `DATE_PAIEMENT` date DEFAULT NULL,
  PRIMARY KEY (`ID_LOC_FI_ET`),
  KEY `BASE` (`BASE`) USING BTREE,
  KEY `DEBUT` (`DEBUT`) USING BTREE,
  KEY `FIN` (`FIN`) USING BTREE,
  KEY `JOURNAL` (`JOURNAL`) USING BTREE,
  KEY `NOM_BANQUE` (`NOM_BANQUE`) USING BTREE,
  KEY `NUMERO` (`NUMERO`) USING BTREE,
  KEY `N_COMPTE_ASSURANCE` (`N_COMPTE_ASSURANCE`) USING BTREE,
  KEY `N_COMPTE_CAPITAL` (`N_COMPTE_CAPITAL`) USING BTREE,
  KEY `N_COMPTE_INTERET` (`N_COMPTE_INTERET`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_PERIO` (`N_PERIO`) USING BTREE,
  KEY `N_TRESO` (`N_TRESO`) USING BTREE,
  KEY `PERIODICITE` (`PERIODICITE`) 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 `TYPE_PRET` (`TYPE_PRET`) USING BTREE,
  KEY `BLOCAGE_LOC_FI` (`BLOCAGE_LOC_FI`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `N_COMPTE_BILAN` (`N_COMPTE_BILAN`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `DATE_SORTIE` (`DATE_SORTIE`) USING BTREE,
  KEY `N_LIGNE_INFO_COMPTA` (`N_LIGNE_INFO_COMPTA`) USING BTREE,
  KEY `DELTA_J` (`DELTA_J`) USING BTREE,
  KEY `DURE` (`DURE`) USING BTREE,
  KEY `ECHEANCE` (`ECHEANCE`) USING BTREE,
  KEY `FRAIS_MONTANT` (`FRAIS_MONTANT`) USING BTREE,
  KEY `MENSUALITE` (`MENSUALITE`) USING BTREE,
  KEY `MULTIPLE` (`MULTIPLE`) USING BTREE,
  KEY `TAUX` (`TAUX`) USING BTREE,
  KEY `TAUX_ASSURANCES` (`TAUX_ASSURANCES`) USING BTREE,
  KEY `TAUX_FRAIS` (`TAUX_FRAIS`) USING BTREE,
  KEY `TEG` (`TEG`) USING BTREE,
  KEY `SOLDE` (`SOLDE`) USING BTREE,
  KEY `INTITULE` (`INTITULE`) USING BTREE,
  KEY `N_PI_SPEC` (`N_PI_SPEC`) USING BTREE,
  KEY `CALAGE` (`CALAGE`) USING BTREE,
  KEY `N_TYPE_TVA` (`N_TYPE_TVA`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `logs_delete`
--

CREATE TABLE `logs_delete` (
  `ID_LOGS_DELETE` 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_BC` varchar(15) NOT NULL DEFAULT '',
  `N_BL` varchar(15) NOT NULL DEFAULT '',
  `N_FACT` varchar(15) NOT NULL DEFAULT '',
  `N_DEVIS` varchar(15) NOT NULL DEFAULT '',
  `ID_DELETE` varchar(10) NOT NULL DEFAULT '',
  `TABLE` varchar(50) NOT NULL DEFAULT '',
  `IDENT_DELETE` varchar(10) NOT NULL DEFAULT '',
  `USER` varchar(10) NOT NULL DEFAULT '',
  `HEURE_DELETE` time NOT NULL DEFAULT '00:00:00',
  `CODE_JOURNAL` varchar(10) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_ECRITURE` varchar(15) NOT NULL DEFAULT '',
  `N_EXERCICE` varchar(10) NOT NULL DEFAULT '',
  `N_PIECE` varchar(15) NOT NULL DEFAULT '',
  `N_PIECE_INTERNE` varchar(15) NOT NULL DEFAULT '',
  `DATE` date DEFAULT NULL,
  `DEBIT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `CREDIT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `N_CPTE_TIERS` varchar(50) NOT NULL DEFAULT '',
  `MONTANT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DATE_DELETE` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `N_DOSSIER` decimal(12,0) NOT NULL DEFAULT 0,
  `N_COMMANDE` varchar(10) NOT NULL DEFAULT '',
  `NB_ARTICLE` double NOT NULL DEFAULT 0,
  `CODE_ARTICLE` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_LOGS_DELETE`),
  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_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_ECRITURE` (`N_ECRITURE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_COMMANDE` (`N_COMMANDE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `lot`
--

CREATE TABLE `lot` (
  `DATE` date DEFAULT NULL,
  `EMAIL_DE_TEST` varchar(50) NOT NULL DEFAULT '',
  `EMAIL_REPONDRE_A` varchar(50) NOT NULL DEFAULT '',
  `ENVOIS_ARRIVES` double NOT NULL DEFAULT 0,
  `ENVOIS_CLICS` double NOT NULL DEFAULT 0,
  `ENVOIS_NON_OUVERTS` double NOT NULL DEFAULT 0,
  `ENVOIS_OUVERTS` double NOT NULL DEFAULT 0,
  `ENVOIS_REJETES` double NOT NULL DEFAULT 0,
  `ENVOIS_TOTAL` double NOT NULL DEFAULT 0,
  `ENVOIS_TOTAL_PAPIER` double NOT NULL DEFAULT 0,
  `ENVOI_EMAILING_MESSAGE` blob DEFAULT NULL,
  `FICHIER_FUSION` varchar(100) NOT NULL DEFAULT '',
  `GESTION_MESSAGE` varchar(30) NOT NULL DEFAULT '',
  `ID_LOT` varchar(32) NOT NULL DEFAULT '',
  `MEMO` blob DEFAULT NULL,
  `MESSAGE_HTML` varchar(100) NOT NULL DEFAULT '',
  `MESSAGE_TXT` varchar(100) NOT NULL DEFAULT '',
  `NO_LOT` varchar(15) NOT NULL DEFAULT '',
  `PHONING_A_FAIRE_PAR` varchar(15) NOT NULL DEFAULT '',
  `PHONING_CATEGORIE` varchar(20) NOT NULL DEFAULT '',
  `PHONING_DATE_APPEL` date DEFAULT NULL,
  `PHONING_OBJET` varchar(80) NOT NULL DEFAULT '',
  `PID_CAMPAGNE` varchar(32) 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(100) NOT NULL DEFAULT '',
  `TYPE_LOT` varchar(45) NOT NULL DEFAULT '',
  `VALIDATION` date DEFAULT NULL,
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `EMAIL_COPIE` varchar(100) NOT NULL DEFAULT '',
  `IDENT_PREPA_MAILING_ET` varchar(32) NOT NULL DEFAULT '',
  `BIBLE` varchar(40) NOT NULL DEFAULT '',
  `PID_CAMPAGNE_MKT_ET` varchar(32) NOT NULL DEFAULT '',
  `PHONING_DATE_VISITE` date DEFAULT NULL,
  `TEL_SMS` varchar(10) NOT NULL DEFAULT '',
  `PHONING_SUIVI_PAR` varchar(20) NOT NULL DEFAULT '',
  `PAS_COPIE_INTERNE` char(1) NOT NULL DEFAULT '',
  `N_CAMPAGNE` varchar(10) NOT NULL DEFAULT '',
  `NOM_PJ` varchar(100) NOT NULL DEFAULT '',
  `NOM_FICHIER` varchar(100) NOT NULL DEFAULT '',
  `STATUT` decimal(12,0) NOT NULL DEFAULT 0,
  `IDENT_PREPA_MAILING_STATUT` varchar(35) NOT NULL DEFAULT '',
  `DATE_ENVOI` date DEFAULT NULL,
  PRIMARY KEY (`ID_LOT`),
  KEY `PHONING_CATEGORIE` (`PHONING_CATEGORIE`) USING BTREE,
  KEY `PID_CAMPAGNE` (`PID_CAMPAGNE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `IDENT_PREPA_MAILING_ET` (`IDENT_PREPA_MAILING_ET`) USING BTREE,
  KEY `PID_CAMPAGNE_MKT_ET` (`PID_CAMPAGNE_MKT_ET`) USING BTREE,
  KEY `NO_LOT` (`NO_LOT`) USING BTREE,
  KEY `PHONING_DATE_VISITE` (`PHONING_DATE_VISITE`) USING BTREE,
  KEY `IDENT_PREPA_MAILING_STATUT` (`IDENT_PREPA_MAILING_STATUT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `mail`
--

CREATE TABLE `mail` (
  `A` varchar(100) NOT NULL DEFAULT '',
  `BILBLE` varchar(20) NOT NULL DEFAULT '',
  `COPIE` varchar(100) NOT NULL DEFAULT '',
  `DATE_ENVOI` date DEFAULT NULL,
  `DE` varchar(50) NOT NULL DEFAULT '',
  `ENVOI_DIRECT` char(1) NOT NULL DEFAULT '',
  `ENVOYE` char(1) NOT NULL DEFAULT '',
  `HEURE_ENVOI` varchar(20) NOT NULL DEFAULT '',
  `IDENT` varchar(100) NOT NULL DEFAULT '',
  `IDENT_DOC_ORIGINE` varchar(100) NOT NULL DEFAULT '',
  `IDENT_PJ` varchar(32) NOT NULL DEFAULT '',
  `ID_MAIL` varchar(32) NOT NULL DEFAULT '',
  `MEMO` blob DEFAULT NULL,
  `PAS_ENVOYE` char(1) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PJ` varchar(100) NOT NULL DEFAULT '',
  `PJ_CHEMIN` varchar(100) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(80) NOT NULL DEFAULT '',
  `SIGN` blob DEFAULT NULL,
  `SUJET` varchar(200) 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 '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `MAIL_PIECE_JOINTE` varchar(32) NOT NULL DEFAULT '',
  `N_PIECE` varchar(20) NOT NULL DEFAULT '',
  `IDENT_COMPTABILIT_DET` varchar(32) NOT NULL DEFAULT '',
  `LIEN_DOCUMENT_ARCHIVE` varchar(40) NOT NULL DEFAULT '',
  `N_DOSSIER` decimal(12,0) NOT NULL DEFAULT 0,
  `FAMILLE_CLIENT` varchar(100) NOT NULL DEFAULT '',
  `FAMILLE_EGP` varchar(100) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_MAIL`),
  KEY `A` (`A`) USING BTREE,
  KEY `BILBLE` (`BILBLE`) USING BTREE,
  KEY `COPIE` (`COPIE`) USING BTREE,
  KEY `DATE_ENVOI` (`DATE_ENVOI`) USING BTREE,
  KEY `DE` (`DE`) USING BTREE,
  KEY `ENVOI_DIRECT` (`ENVOI_DIRECT`) USING BTREE,
  KEY `ENVOYE` (`ENVOYE`) USING BTREE,
  KEY `HEURE_ENVOI` (`HEURE_ENVOI`) USING BTREE,
  KEY `IDENT` (`IDENT`) USING BTREE,
  KEY `IDENT_DOC_ORIGINE` (`IDENT_DOC_ORIGINE`) USING BTREE,
  KEY `IDENT_PJ` (`IDENT_PJ`) USING BTREE,
  KEY `PAS_ENVOYE` (`PAS_ENVOYE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `PJ` (`PJ`) USING BTREE,
  KEY `PJ_CHEMIN` (`PJ_CHEMIN`) USING BTREE,
  KEY `RAISON_SOCIALE` (`RAISON_SOCIALE`) USING BTREE,
  KEY `SUJET` (`SUJET`) 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 `MAIL_PIECE_JOINTE` (`MAIL_PIECE_JOINTE`) USING BTREE,
  KEY `N_PIECE` (`N_PIECE`) USING BTREE,
  KEY `IDENT_COMPTABILIT_DET` (`IDENT_COMPTABILIT_DET`) USING BTREE,
  KEY `LIEN_DOCUMENT_ARCHIVE` (`LIEN_DOCUMENT_ARCHIVE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `FAMILLE_CLIENT` (`FAMILLE_CLIENT`) USING BTREE,
  KEY `FAMILLE_EGP` (`FAMILLE_EGP`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `mail_pj`
--

CREATE TABLE `mail_pj` (
  `IDENT_DOCUMENT8PJ` varchar(100) NOT NULL DEFAULT '',
  `ID_MAIL_PJ` varchar(32) NOT NULL DEFAULT '',
  `PID_MAIL` varchar(32) NOT NULL DEFAULT '',
  `PIECE_JOINTE_FICHIER_CONTENU` longblob DEFAULT NULL,
  `PIECE_JOINTE_FICHIER_DATE` datetime DEFAULT NULL,
  `PIECE_JOINTE_FICHIER_NOM` varchar(100) NOT NULL DEFAULT '',
  `PIECE_JOINTE_FICHIER_TAILLE` double NOT NULL DEFAULT 0,
  `PIECE_JOINTE_FICHIER_TYPE` 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 '',
  PRIMARY KEY (`ID_MAIL_PJ`),
  KEY `IDENT_DOCUMENT8PJ` (`IDENT_DOCUMENT8PJ`) USING BTREE,
  KEY `PID_MAIL` (`PID_MAIL`) USING BTREE,
  KEY `PIECE_JOINTE_FICHIER_DATE` (`PIECE_JOINTE_FICHIER_DATE`) USING BTREE,
  KEY `PIECE_JOINTE_FICHIER_NOM` (`PIECE_JOINTE_FICHIER_NOM`) 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 `materiel_conso_chauffeur`
--

CREATE TABLE `materiel_conso_chauffeur` (
  `CONDUITE_FMS` double NOT NULL DEFAULT 0,
  `CONSO_RALENTI_FMS` double NOT NULL DEFAULT 0,
  `CONSO_REELLE_PLEIN_A_PLEIN` double NOT NULL DEFAULT 0,
  `ID_MATERIEL_CONSO_CHAUFFEUR` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `KM` double NOT NULL DEFAULT 0,
  `MOIS` varchar(5) NOT NULL DEFAULT '',
  `NOM` varchar(40) 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_FMS` double NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_MATERIEL_CONSO_CHAUFFEUR`),
  KEY `CONDUITE_FMS` (`CONDUITE_FMS`) USING BTREE,
  KEY `CONSO_RALENTI_FMS` (`CONSO_RALENTI_FMS`) USING BTREE,
  KEY `CONSO_REELLE_PLEIN_A_PLEIN` (`CONSO_REELLE_PLEIN_A_PLEIN`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE,
  KEY `MOIS` (`MOIS`) USING BTREE,
  KEY `NOM` (`NOM`) 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 `TOTAL_FMS` (`TOTAL_FMS`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `materiel_det`
--

CREATE TABLE `materiel_det` (
  `AFFECTATION` varchar(20) NOT NULL DEFAULT '',
  `CONSOMMATION` double NOT NULL DEFAULT 0,
  `CONSO_FMS` double NOT NULL DEFAULT 0,
  `DEBUT` date DEFAULT NULL,
  `ECART` double NOT NULL DEFAULT 0,
  `FIN` date DEFAULT NULL,
  `ID_MATERIEL_DET` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(15) NOT NULL DEFAULT '',
  `KM_DEBUT` double NOT NULL DEFAULT 0,
  `KM_FIN` double NOT NULL DEFAULT 0,
  `MARQUE` varchar(10) NOT NULL DEFAULT '',
  `MOIS` varchar(5) NOT NULL DEFAULT '',
  `MOY_KM` double NOT NULL DEFAULT 0,
  `NBRE_LITRE` double NOT NULL DEFAULT 0,
  `NBRE_LITRE_FMS` double NOT NULL DEFAULT 0,
  `PID_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `PUISSANCE` 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_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 '',
  PRIMARY KEY (`ID_MATERIEL_DET`),
  KEY `AFFECTATION` (`AFFECTATION`) USING BTREE,
  KEY `CONSOMMATION` (`CONSOMMATION`) USING BTREE,
  KEY `CONSO_FMS` (`CONSO_FMS`) USING BTREE,
  KEY `DEBUT` (`DEBUT`) USING BTREE,
  KEY `ECART` (`ECART`) USING BTREE,
  KEY `FIN` (`FIN`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE,
  KEY `KM_DEBUT` (`KM_DEBUT`) USING BTREE,
  KEY `KM_FIN` (`KM_FIN`) USING BTREE,
  KEY `MOIS` (`MOIS`) USING BTREE,
  KEY `NBRE_LITRE` (`NBRE_LITRE`) USING BTREE,
  KEY `NBRE_LITRE_FMS` (`NBRE_LITRE_FMS`) USING BTREE,
  KEY `PID_MATERIEL_ET` (`PID_MATERIEL_ET`) USING BTREE,
  KEY `PUISSANCE` (`PUISSANCE`) 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_LIEN_CONTEXTE_MAITRE` (`SYS_LIEN_CONTEXTE_MAITRE`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `materiel_entretien`
--

CREATE TABLE `materiel_entretien` (
  `45` varchar(10) NOT NULL DEFAULT '',
  `BLOCAGE` char(1) NOT NULL DEFAULT '',
  `DATE` date DEFAULT NULL,
  `FOURNISSEUR` varchar(10) NOT NULL DEFAULT '',
  `HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `I1` varchar(10) NOT NULL DEFAULT '',
  `I10` varchar(10) NOT NULL DEFAULT '',
  `I11` varchar(10) NOT NULL DEFAULT '',
  `I12` varchar(10) NOT NULL DEFAULT '',
  `I13` varchar(10) NOT NULL DEFAULT '',
  `I14` varchar(10) NOT NULL DEFAULT '',
  `I15` varchar(10) NOT NULL DEFAULT '',
  `I16` varchar(10) NOT NULL DEFAULT '',
  `I17` varchar(10) NOT NULL DEFAULT '',
  `I18` varchar(10) NOT NULL DEFAULT '',
  `I19` varchar(10) NOT NULL DEFAULT '',
  `I2` varchar(10) NOT NULL DEFAULT '',
  `I20` varchar(10) NOT NULL DEFAULT '',
  `I3` varchar(10) NOT NULL DEFAULT '',
  `I30` varchar(10) NOT NULL DEFAULT '',
  `I31` varchar(10) NOT NULL DEFAULT '',
  `I32` varchar(10) NOT NULL DEFAULT '',
  `I33` varchar(10) NOT NULL DEFAULT '',
  `I34` varchar(10) NOT NULL DEFAULT '',
  `I35` varchar(10) NOT NULL DEFAULT '',
  `I36` varchar(10) NOT NULL DEFAULT '',
  `I37` varchar(10) NOT NULL DEFAULT '',
  `I38` varchar(10) NOT NULL DEFAULT '',
  `I39` varchar(10) NOT NULL DEFAULT '',
  `I4` varchar(10) NOT NULL DEFAULT '',
  `I40` varchar(10) NOT NULL DEFAULT '',
  `I41` varchar(10) NOT NULL DEFAULT '',
  `I42` varchar(10) NOT NULL DEFAULT '',
  `I43` varchar(10) NOT NULL DEFAULT '',
  `I44` varchar(10) NOT NULL DEFAULT '',
  `I45` varchar(10) NOT NULL DEFAULT '',
  `I46` varchar(10) NOT NULL DEFAULT '',
  `I47` varchar(10) NOT NULL DEFAULT '',
  `I5` varchar(10) NOT NULL DEFAULT '',
  `I6` varchar(10) NOT NULL DEFAULT '',
  `I60` varchar(10) NOT NULL DEFAULT '',
  `I61` varchar(10) NOT NULL DEFAULT '',
  `I62` varchar(10) NOT NULL DEFAULT '',
  `I63` varchar(10) NOT NULL DEFAULT '',
  `I7` varchar(10) NOT NULL DEFAULT '',
  `I8` varchar(10) NOT NULL DEFAULT '',
  `I9` varchar(10) NOT NULL DEFAULT '',
  `IDENT_DOCUMENT_ARCHIVE` varchar(32) NOT NULL DEFAULT '',
  `ID_MATERIEL_ENTRETIEN` varchar(32) NOT NULL DEFAULT '',
  `IMMAT` varchar(10) NOT NULL DEFAULT '',
  `MATERIEL_CATEGORIE` varchar(30) NOT NULL DEFAULT '',
  `MEMO` varchar(200) NOT NULL DEFAULT '',
  `N_FACTURE` varchar(10) NOT NULL DEFAULT '',
  `PID_DOCUMENT_ARCHIVE` varchar(32) NOT NULL DEFAULT '',
  `PID_MATERIEL_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 '',
  `VALID` char(1) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_HA` varchar(10) NOT NULL DEFAULT '',
  `KM` double NOT NULL DEFAULT 0,
  `LIEN_DOCUMENT_ARCHIVE_LISTE` varchar(40) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_MATERIEL_ENTRETIEN`),
  KEY `45` (`45`) USING BTREE,
  KEY `BLOCAGE` (`BLOCAGE`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `FOURNISSEUR` (`FOURNISSEUR`) USING BTREE,
  KEY `I1` (`I1`) USING BTREE,
  KEY `I2` (`I2`) USING BTREE,
  KEY `I3` (`I3`) USING BTREE,
  KEY `I30` (`I30`) USING BTREE,
  KEY `I31` (`I31`) USING BTREE,
  KEY `I32` (`I32`) USING BTREE,
  KEY `I33` (`I33`) USING BTREE,
  KEY `I34` (`I34`) USING BTREE,
  KEY `I35` (`I35`) USING BTREE,
  KEY `I36` (`I36`) USING BTREE,
  KEY `I37` (`I37`) USING BTREE,
  KEY `I38` (`I38`) USING BTREE,
  KEY `I39` (`I39`) USING BTREE,
  KEY `I4` (`I4`) USING BTREE,
  KEY `I40` (`I40`) USING BTREE,
  KEY `I41` (`I41`) USING BTREE,
  KEY `I42` (`I42`) USING BTREE,
  KEY `I43` (`I43`) USING BTREE,
  KEY `I44` (`I44`) USING BTREE,
  KEY `I45` (`I45`) USING BTREE,
  KEY `I46` (`I46`) USING BTREE,
  KEY `I47` (`I47`) USING BTREE,
  KEY `I5` (`I5`) USING BTREE,
  KEY `I6` (`I6`) USING BTREE,
  KEY `I60` (`I60`) USING BTREE,
  KEY `I61` (`I61`) USING BTREE,
  KEY `I62` (`I62`) USING BTREE,
  KEY `I63` (`I63`) USING BTREE,
  KEY `IDENT_DOCUMENT_ARCHIVE` (`IDENT_DOCUMENT_ARCHIVE`) USING BTREE,
  KEY `IMMAT` (`IMMAT`) USING BTREE,
  KEY `N_FACTURE` (`N_FACTURE`) USING BTREE,
  KEY `PID_DOCUMENT_ARCHIVE` (`PID_DOCUMENT_ARCHIVE`) USING BTREE,
  KEY `PID_MATERIEL_ET` (`PID_MATERIEL_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 `VALID` (`VALID`) USING BTREE,
  KEY `KM` (`KM`) USING BTREE,
  KEY `HT` (`HT`) USING BTREE,
  KEY `MATERIEL_CATEGORIE` (`MATERIEL_CATEGORIE`) USING BTREE,
  KEY `MEMO` (`MEMO`) USING BTREE,
  KEY `LIEN_DOCUMENT_ARCHIVE_LISTE` (`LIEN_DOCUMENT_ARCHIVE_LISTE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `materiel_et`
--

CREATE TABLE `materiel_et` (
  `ASSURANCES` double NOT NULL DEFAULT 0,
  `CODE` varchar(10) NOT NULL DEFAULT '',
  `COMMENTAIRES` blob DEFAULT NULL,
  `CONTROLE_FRC` date DEFAULT NULL,
  `CONTROLE_FRC1` date DEFAULT NULL,
  `DATE_DEBUT` date DEFAULT NULL,
  `DATE_FIN` date DEFAULT NULL,
  `FINANCEMENT` varchar(20) NOT NULL DEFAULT '',
  `ID_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `IMMATRICULATION` varchar(15) NOT NULL DEFAULT '',
  `IMMATRICULATION_OLD` varchar(15) NOT NULL DEFAULT '',
  `LIMITEUR` date DEFAULT NULL,
  `LIMITEUR1` date DEFAULT NULL,
  `LOYER` double NOT NULL DEFAULT 0,
  `MARQUE` varchar(10) NOT NULL DEFAULT '',
  `MATERIEL_CATEGORIE` varchar(30) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(300) NOT NULL DEFAULT '',
  `NORME` varchar(15) NOT NULL DEFAULT '',
  `N_BOITIER_ELOCOM` varchar(20) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_MATERIEL` varchar(10) NOT NULL DEFAULT '',
  `PASSAGES_MINE_1` date DEFAULT NULL,
  `PASSAGE_MINES` date DEFAULT NULL,
  `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 '',
  `TACHY` date DEFAULT NULL,
  `TACHY_1` date DEFAULT NULL,
  `TYPE` varchar(20) NOT NULL DEFAULT '',
  `TYPE_FINANCEMENT` varchar(20) NOT NULL DEFAULT '',
  `TYPE_IMMAT` varchar(30) NOT NULL DEFAULT '',
  `VALEUR` double NOT NULL DEFAULT 0,
  `VAN` double NOT NULL DEFAULT 0,
  `PREMIERE_CIRCULATION` date DEFAULT NULL,
  `CARROSSERIE` varchar(20) NOT NULL DEFAULT '',
  `COMPARTIMENTAGE` char(1) NOT NULL DEFAULT '',
  `RTMDR` char(1) NOT NULL DEFAULT '',
  `HAYON` char(1) NOT NULL DEFAULT '',
  `PAL` double NOT NULL DEFAULT 0,
  `MPL` varchar(10) NOT NULL DEFAULT '',
  `N_SERIE` varchar(30) NOT NULL DEFAULT '',
  `POIDS_TC` double NOT NULL DEFAULT 0,
  `POIDS_VIDE` double NOT NULL DEFAULT 0,
  `POIDS_TR` double NOT NULL DEFAULT 0,
  `LONGUEUR` double NOT NULL DEFAULT 0,
  `LARGEUR` double NOT NULL DEFAULT 0,
  `HAUTEUR` double NOT NULL DEFAULT 0,
  `VOLUME` double NOT NULL DEFAULT 0,
  `LIMITE_GARANTIE` date DEFAULT NULL,
  `KM_VENTE` double NOT NULL DEFAULT 0,
  `KM_ACHAT` double NOT NULL DEFAULT 0,
  `DATE_SORTIE` date DEFAULT NULL,
  `KM_ALERTE_VIDANGE` double NOT NULL DEFAULT 0,
  `KM_ENTRE_VIDANGE` double NOT NULL DEFAULT 0,
  `ASSURANCE_AVIVA` varchar(10) NOT NULL DEFAULT '',
  `CV` varchar(3) NOT NULL DEFAULT '',
  `ASSURANCE_SCANIA` varchar(10) NOT NULL DEFAULT '',
  `ASSISTANCE _PANNE_AVIVA` char(1) NOT NULL DEFAULT '',
  `ASSISTANCE_PANNE_SCANIA` char(1) NOT NULL DEFAULT '',
  `ASSITANCE_ACCIDENT` char(1) NOT NULL DEFAULT '',
  `BRIS_DE_GLACES` char(1) NOT NULL DEFAULT '',
  `PERTE_FINANCIERE` char(1) NOT NULL DEFAULT '',
  `ASSURANCE_DECES` char(1) NOT NULL DEFAULT '',
  `CONTRAT_ENTRETIEN` char(1) NOT NULL DEFAULT '',
  `FIN_CONTRAT_ENTRETIEN` date DEFAULT NULL,
  `TARIF_MENSUEL_ENTRETIEN` varchar(10) NOT NULL DEFAULT '',
  `PRIX_100_KM_LINEAIRE` varchar(10) NOT NULL DEFAULT '',
  `FIN_ENTRETIEN_FRIGO` date DEFAULT NULL,
  `TARIF_MENSUEL_ENT_FRIGO` varchar(10) NOT NULL DEFAULT '',
  `PRIX_HEURE_SUP_ENT_FRIGO` varchar(10) NOT NULL DEFAULT '',
  `VALEUR_A_ASSURER` varchar(10) NOT NULL DEFAULT '',
  `FRC_ET_CT` date DEFAULT NULL,
  `N_LICENCE` varchar(10) NOT NULL DEFAULT '',
  `TAXE_ESSIEU` char(1) NOT NULL DEFAULT '',
  `AS_24` varchar(10) NOT NULL DEFAULT '',
  `TARIF_ANNUEL_ASSURANCE_TTC` varchar(10) NOT NULL DEFAULT '',
  `ENTRETIEN_EXTERNE_AVEC_OR` char(1) NOT NULL DEFAULT '',
  `MATERIEL_ENTRETIEN_EXTERNE_AVEC_OR` char(1) NOT NULL DEFAULT '',
  `ENTRETIEN_EXTERNE_SANS_OR` char(1) NOT NULL DEFAULT '',
  `TEL_IMMAT` varchar(10) NOT NULL DEFAULT '',
  `AGENCE` varchar(20) NOT NULL DEFAULT '',
  `CARBURANT` varchar(32) NOT NULL DEFAULT '',
  `COULEUR` varchar(32) NOT NULL DEFAULT '',
  `HAUTEUR_INTERIEURE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `LARGEUR_INTERIEURE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `LONGUEUR_INTERIEURE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `OPTION` blob DEFAULT NULL,
  `PTRA` decimal(12,2) NOT NULL DEFAULT 0.00,
  `TYPE_MOTEUR` varchar(32) NOT NULL DEFAULT '',
  `ANS1` decimal(12,0) NOT NULL DEFAULT 0,
  `ANS2` decimal(12,0) NOT NULL DEFAULT 0,
  `ANS3` decimal(12,0) NOT NULL DEFAULT 0,
  `ANS4` decimal(12,0) NOT NULL DEFAULT 0,
  `ANS5` decimal(12,0) NOT NULL DEFAULT 0,
  `TEL_VEHICULE` varchar(12) NOT NULL DEFAULT '',
  `IDENT_EXTE` varchar(32) NOT NULL DEFAULT '',
  `NON_ROULANT` char(1) NOT NULL DEFAULT '',
  `TOUS_RISQUES` char(1) NOT NULL DEFAULT '',
  `RESPONSABILITE_CIVIL` char(1) NOT NULL DEFAULT '',
  `BADGE_PEAGE` varchar(50) NOT NULL DEFAULT '',
  `MATERIEL_SOUS_CATEGORIE` varchar(30) NOT NULL DEFAULT '',
  `PROPRIETAIRE` varchar(30) NOT NULL DEFAULT '',
  `ASSUREUR` varchar(32) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_MATERIEL_ET`),
  KEY `ASSURANCES` (`ASSURANCES`) USING BTREE,
  KEY `CONTROLE_FRC` (`CONTROLE_FRC`) USING BTREE,
  KEY `CONTROLE_FRC1` (`CONTROLE_FRC1`) USING BTREE,
  KEY `DATE_DEBUT` (`DATE_DEBUT`) USING BTREE,
  KEY `DATE_FIN` (`DATE_FIN`) USING BTREE,
  KEY `FINANCEMENT` (`FINANCEMENT`) USING BTREE,
  KEY `IMMATRICULATION` (`IMMATRICULATION`) USING BTREE,
  KEY `IMMATRICULATION_OLD` (`IMMATRICULATION_OLD`) USING BTREE,
  KEY `LIMITEUR` (`LIMITEUR`) USING BTREE,
  KEY `LIMITEUR1` (`LIMITEUR1`) USING BTREE,
  KEY `LOYER` (`LOYER`) USING BTREE,
  KEY `MARQUE` (`MARQUE`) USING BTREE,
  KEY `MATERIEL_CATEGORIE` (`MATERIEL_CATEGORIE`) USING BTREE,
  KEY `N_MATERIEL` (`N_MATERIEL`) USING BTREE,
  KEY `PASSAGE_MINES` (`PASSAGE_MINES`) 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 `TACHY` (`TACHY`) USING BTREE,
  KEY `TACHY_1` (`TACHY_1`) USING BTREE,
  KEY `TYPE` (`TYPE`) USING BTREE,
  KEY `TYPE_FINANCEMENT` (`TYPE_FINANCEMENT`) USING BTREE,
  KEY `VALEUR` (`VALEUR`) USING BTREE,
  KEY `VAN` (`VAN`) USING BTREE,
  KEY `PREMIERE_CIRCULATION` (`PREMIERE_CIRCULATION`) USING BTREE,
  KEY `CARROSSERIE` (`CARROSSERIE`) USING BTREE,
  KEY `DATE_SORTIE` (`DATE_SORTIE`) USING BTREE,
  KEY `KM_ENTRE_VIDANGE` (`KM_ENTRE_VIDANGE`) USING BTREE,
  KEY `ENTRETIEN_EXTERNE_AVEC_OR` (`ENTRETIEN_EXTERNE_AVEC_OR`) USING BTREE,
  KEY `MATERIEL_ENTRETIEN_EXTERNE_AVEC_OR` (`MATERIEL_ENTRETIEN_EXTERNE_AVEC_OR`) USING BTREE,
  KEY `ENTRETIEN_EXTERNE_SANS_OR` (`ENTRETIEN_EXTERNE_SANS_OR`) USING BTREE,
  KEY `ANS1` (`ANS1`) USING BTREE,
  KEY `ANS2` (`ANS2`) USING BTREE,
  KEY `ANS3` (`ANS3`) USING BTREE,
  KEY `ANS4` (`ANS4`) USING BTREE,
  KEY `ANS5` (`ANS5`) USING BTREE,
  KEY `TYPE_MOTEUR` (`TYPE_MOTEUR`) USING BTREE,
  KEY `IDENT_EXTE` (`IDENT_EXTE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `MATERIEL_SOUS_CATEGORIE` (`MATERIEL_SOUS_CATEGORIE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `migrations`
--

CREATE TABLE `migrations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(255) NOT NULL,
  `batch` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Table structure for table `modele_document_office`
--

CREATE TABLE `modele_document_office` (
  `ID_MODELE_DOCUMENT_OFFICE` varchar(32) NOT NULL DEFAULT '',
  `MODELE_FICHIER_CONTENU` longblob DEFAULT NULL,
  `MODELE_FICHIER_DATE` datetime DEFAULT NULL,
  `MODELE_FICHIER_NOM` varchar(100) NOT NULL DEFAULT '',
  `MODELE_FICHIER_TAILLE` double NOT NULL DEFAULT 0,
  `MODELE_FICHIER_TYPE` 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 '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_MODELE_DOCUMENT_OFFICE`),
  KEY `MODELE_FICHIER_DATE` (`MODELE_FICHIER_DATE`) USING BTREE,
  KEY `MODELE_FICHIER_NOM` (`MODELE_FICHIER_NOM`) 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 `N_DOSSIER` (`N_DOSSIER`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `modele_transfere`
--

CREATE TABLE `modele_transfere` (
  `BLOCAGE` char(1) NOT NULL DEFAULT '',
  `DATE` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `ID_ECRITURE` varchar(32) NOT NULL DEFAULT '',
  `ID_MODELE_TRANSFERE` varchar(32) NOT NULL DEFAULT '',
  `JOURNAL` varchar(50) NOT NULL DEFAULT '',
  `NOM_BANQUE` varchar(10) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NOM_MODELE` varchar(100) NOT NULL DEFAULT '',
  `N_ECRITURE` varchar(10) NOT NULL DEFAULT '',
  `N_PIECE` varchar(15) NOT NULL DEFAULT '',
  `PERIODICITE` varchar(10) NOT NULL DEFAULT '',
  `PID_COMPTABILITE_MODELE_ET` 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 '',
  `DATEHEURE` varchar(60) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_EXERCICE` double NOT NULL DEFAULT 0,
  `PID_COMPTABILIT_SITUATION_ET` varchar(32) NOT NULL DEFAULT '',
  `CREDIT` double NOT NULL DEFAULT 0,
  `N_PIECE_INTERNE` varchar(15) NOT NULL DEFAULT '',
  `LIBELLE` varchar(100) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_MODELE_TRANSFERE`),
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `ID_ECRITURE` (`ID_ECRITURE`) USING BTREE,
  KEY `JOURNAL` (`JOURNAL`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_ECRITURE` (`N_ECRITURE`) USING BTREE,
  KEY `N_PIECE` (`N_PIECE`) USING BTREE,
  KEY `PID_COMPTABILITE_MODELE_ECRITURE_ET` (`PID_COMPTABILITE_MODELE_ET`) 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 `DATEHEURE` (`DATEHEURE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_EXERCICE` (`N_EXERCICE`) USING BTREE,
  KEY `PID_COMPTABILIT_SITUATION_ET` (`PID_COMPTABILIT_SITUATION_ET`) USING BTREE,
  KEY `PID_COMPTABILITE_MODELE_ET` (`PID_COMPTABILITE_MODELE_ET`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `note_frais`
--

CREATE TABLE `note_frais` (
  `COMMERCIAL` varchar(15) NOT NULL DEFAULT '',
  `DATE_DEBUT` date DEFAULT NULL,
  `DATE_FIN` date DEFAULT NULL,
  `DI` double NOT NULL DEFAULT 0,
  `DJN` double NOT NULL DEFAULT 0,
  `DM` double NOT NULL DEFAULT 0,
  `DN` double NOT NULL DEFAULT 0,
  `DS` double NOT NULL DEFAULT 0,
  `DT` double NOT NULL DEFAULT 0,
  `FRAIS_HT` double NOT NULL DEFAULT 0,
  `FRAIS_TTC` double NOT NULL DEFAULT 0,
  `FRAIS_TVA` double NOT NULL DEFAULT 0,
  `ID_NOTE_FRAIS` varchar(32) NOT NULL DEFAULT '',
  `JF` double NOT NULL DEFAULT 0,
  `KM_DEBUT` double NOT NULL DEFAULT 0,
  `KM_FIN` double NOT NULL DEFAULT 0,
  `MEMO` blob DEFAULT NULL,
  `NI` double NOT NULL DEFAULT 0,
  `NN` double NOT NULL DEFAULT 0,
  `NOM_SALARIE` varchar(40) NOT NULL DEFAULT '',
  `NUM_NF` varchar(20) NOT NULL DEFAULT '',
  `PDJN` double NOT NULL DEFAULT 0,
  `PJ` double NOT NULL DEFAULT 0,
  `PJF` double NOT NULL DEFAULT 0,
  `PR` double NOT NULL DEFAULT 0,
  `RU` double NOT NULL DEFAULT 0,
  `ST` 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 '',
  `TAUX_KM` double NOT NULL DEFAULT 0,
  `TOTAL_HEURES_SUP` double NOT NULL DEFAULT 0,
  `VS` double NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_NOTE_FRAIS`),
  KEY `COMMERCIAL` (`COMMERCIAL`) USING BTREE,
  KEY `NUM_NF` (`NUM_NF`) USING BTREE,
  KEY `TOTAL_HEURES_SUP` (`TOTAL_HEURES_SUP`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `note_frais_detail`
--

CREATE TABLE `note_frais_detail` (
  `AVION` double NOT NULL DEFAULT 0,
  `CARBURANT` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `FRAIS_DIVERS` double NOT NULL DEFAULT 0,
  `FRAIS_HT` double NOT NULL DEFAULT 0,
  `FRAIS_KM` double NOT NULL DEFAULT 0,
  `FRAIS_TTC` double NOT NULL DEFAULT 0,
  `FRAIS_TVA` double NOT NULL DEFAULT 0,
  `GO` double NOT NULL DEFAULT 0,
  `HEURES_SUP` double NOT NULL DEFAULT 0,
  `HEURE_DEBUT` time NOT NULL DEFAULT '00:00:00',
  `HEURE_FIN` time NOT NULL DEFAULT '00:00:00',
  `HOTEL` double NOT NULL DEFAULT 0,
  `ID_NOTE_FRAIS_DETAIL` varchar(32) NOT NULL DEFAULT '',
  `INVITATION` double NOT NULL DEFAULT 0,
  `JF` double NOT NULL DEFAULT 0,
  `LOCATION` double NOT NULL DEFAULT 0,
  `MEMO` blob DEFAULT NULL,
  `MOIS` varchar(10) NOT NULL DEFAULT '',
  `NATURE` varchar(25) NOT NULL DEFAULT '',
  `NB_INVITES` double NOT NULL DEFAULT 0,
  `NB_KMS` double NOT NULL DEFAULT 0,
  `NOM_SALARIE` varchar(40) NOT NULL DEFAULT '',
  `N_IMMAT` varchar(10) NOT NULL DEFAULT '',
  `PEAGE` double NOT NULL DEFAULT 0,
  `PID_IDENTIFICATION` varchar(32) NOT NULL DEFAULT '',
  `PID_NOTE_FRAIS` varchar(32) NOT NULL DEFAULT '',
  `REPAS` double NOT NULL DEFAULT 0,
  `SOCIETE` varchar(36) NOT NULL DEFAULT '',
  `ST` double NOT NULL DEFAULT 0,
  `STATIONNEMENT` 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 '',
  `TAXI` double NOT NULL DEFAULT 0,
  `TRAIN` double NOT NULL DEFAULT 0,
  `TYPE` varchar(10) NOT NULL DEFAULT '',
  `VILLE` varchar(30) NOT NULL DEFAULT '',
  `PRIX_UNITAIRE` double NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_NOTE_FRAIS_DETAIL`),
  KEY `CARBURANT` (`CARBURANT`) USING BTREE,
  KEY `HEURES_SUP` (`HEURES_SUP`) USING BTREE,
  KEY `HEURE_DEBUT` (`HEURE_DEBUT`) USING BTREE,
  KEY `HEURE_FIN` (`HEURE_FIN`) USING BTREE,
  KEY `N_IMMAT` (`N_IMMAT`) USING BTREE,
  KEY `PID_IDENTIFICATION` (`PID_IDENTIFICATION`) USING BTREE,
  KEY `PID_NOTE_FRAIS` (`PID_NOTE_FRAIS`) USING BTREE,
  KEY `STATIONNEMENT` (`STATIONNEMENT`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `note_user`
--

CREATE TABLE `note_user` (
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `ID_NOTE_USER` varchar(32) NOT NULL DEFAULT '',
  `NOTE` blob DEFAULT NULL,
  `PID_NOTE_USER` varchar(32) NOT NULL DEFAULT '',
  `PID_SYS_USERS` varchar(32) NOT NULL DEFAULT '',
  `STATUT` varchar(10) 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 '',
  `TITRE` varchar(100) NOT NULL DEFAULT '',
  `USER_SUIVI` varchar(50) NOT NULL DEFAULT '',
  `USER_VALIDE` varchar(50) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `TIERS_RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `CODE_CLIENT` varchar(32) NOT NULL DEFAULT '',
  `N_DOSSIER` varchar(2) NOT NULL DEFAULT '',
  `FAMILLE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_NOTE_USER`),
  KEY `PID_NOTE_USER` (`PID_NOTE_USER`) USING BTREE,
  KEY `PID_SYS_USERS` (`PID_SYS_USERS`) 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 `USER_SUIVI` (`USER_SUIVI`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ordre_reparation`
--

CREATE TABLE `ordre_reparation` (
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `COUT_PIECE` double NOT NULL DEFAULT 0,
  `COUT_TEMPS` double NOT NULL DEFAULT 0,
  `DATE_DEPART` date DEFAULT NULL,
  `EVENEMENT` varchar(20) NOT NULL DEFAULT '',
  `ID_ORDRE_REPARATION` varchar(32) NOT NULL DEFAULT '',
  `IMMATRICULATION` varchar(15) NOT NULL DEFAULT '',
  `KILOMETRAGE` double NOT NULL DEFAULT 0,
  `MARQUE` varchar(10) NOT NULL DEFAULT '',
  `MATERIEL_CATEGORIE` varchar(20) NOT NULL DEFAULT '',
  `MEMO` blob DEFAULT NULL,
  `MISE_CIRCULATION` date DEFAULT NULL,
  `MODELE` varchar(20) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_SERIE` varchar(30) NOT NULL DEFAULT '',
  `PID_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `PRM` 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 '',
  `TEMPS_ALLOUE` double NOT NULL DEFAULT 0,
  `TYPE_INTERVENTION` varchar(60) NOT NULL DEFAULT '',
  `VALORISATION_OR` double NOT NULL DEFAULT 0,
  `VISITE_PERIODIQUE` char(1) NOT NULL DEFAULT '',
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `IDENT_FOURNISSEUR` varchar(32) NOT NULL DEFAULT '',
  `KM_ENTRE_VIDANGE` double NOT NULL DEFAULT 0,
  `N_OR` varchar(20) NOT NULL DEFAULT '',
  `N_PARKING` varchar(10) NOT NULL DEFAULT '',
  `PIECE_INTERVENTION_TYPE` varchar(30) NOT NULL DEFAULT '',
  `SEUIL_ALERTE_VIDANGE` double NOT NULL DEFAULT 0,
  `TYPE_OR` varchar(20) NOT NULL DEFAULT '',
  `DATE_ORDRE` date DEFAULT NULL,
  `HEURE_DEPART` time NOT NULL DEFAULT '00:00:00',
  `HEURE_FIN` time NOT NULL DEFAULT '00:00:00',
  `HEURE_FIN_REELLE` time NOT NULL DEFAULT '00:00:00',
  `MECANO` varchar(30) NOT NULL DEFAULT '',
  `DATE_FIN_OR` date DEFAULT NULL,
  `DATE_FIN_CALCUL` date DEFAULT NULL,
  `ENTRETIEN_EXTERNE` char(1) NOT NULL DEFAULT '',
  `DATE_DEPART_RDV` date DEFAULT NULL,
  `DATE_FIN_RDV` date DEFAULT NULL,
  `DECLARANT` varchar(50) NOT NULL DEFAULT '',
  `RESPONSABLE` char(1) NOT NULL DEFAULT '',
  `DATE_DPART_TPS_ALL` date DEFAULT NULL,
  `DATE_FIN_TPS_ALL` date DEFAULT NULL,
  `TEMPS_PASSE` varchar(10) NOT NULL DEFAULT '',
  `FACTURE` char(1) NOT NULL DEFAULT '',
  `FACTURE_DESTINATAIRE_ID` varchar(32) NOT NULL DEFAULT '',
  `FACTURE_EMETTEUR_ID` varchar(32) NOT NULL DEFAULT '',
  `FACTURE_EMETTEUR_NUMERO` varchar(20) NOT NULL DEFAULT '',
  `VH_NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VH_N_DOSSIER` double NOT NULL DEFAULT 0,
  `FACTURE_EMETTEUR` char(1) NOT NULL DEFAULT '',
  `FACTURE_DESTINATAIRE` char(1) NOT NULL DEFAULT '',
  `FACTURE_DESTINATAIRE_NUMERO` varchar(15) NOT NULL DEFAULT '',
  `IDENT_GROUPE_TIERS` varchar(32) NOT NULL DEFAULT '',
  `N_VISITE` varchar(10) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_DELAI_PREV` decimal(12,0) NOT NULL DEFAULT 0,
  `N_DELAI_VISITE` decimal(12,0) NOT NULL DEFAULT 0,
  `RAZ_COUT_HORAIRE` varchar(10) NOT NULL DEFAULT '',
  `MOIS` varchar(10) NOT NULL DEFAULT '',
  `SUP` char(1) NOT NULL DEFAULT '',
  `IDENT_MECANO_ET` varchar(32) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_ORDRE_REPARATION`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `COUT_PIECE` (`COUT_PIECE`) USING BTREE,
  KEY `COUT_TEMPS` (`COUT_TEMPS`) USING BTREE,
  KEY `DATE_DEPART` (`DATE_DEPART`) USING BTREE,
  KEY `EVENEMENT` (`EVENEMENT`) USING BTREE,
  KEY `KILOMETRAGE` (`KILOMETRAGE`) USING BTREE,
  KEY `MARQUE` (`MARQUE`) USING BTREE,
  KEY `MATERIEL_CATEGORIE` (`MATERIEL_CATEGORIE`) USING BTREE,
  KEY `MISE_CIRCULATION` (`MISE_CIRCULATION`) USING BTREE,
  KEY `MODELE` (`MODELE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_SERIE` (`N_SERIE`) USING BTREE,
  KEY `PID_MATERIEL_ET` (`PID_MATERIEL_ET`) 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 `VALORISATION_OR` (`VALORISATION_OR`) USING BTREE,
  KEY `VISITE_PERIODIQUE` (`VISITE_PERIODIQUE`) USING BTREE,
  KEY `FOURNISSEUR` (`FOURNISSEUR`) USING BTREE,
  KEY `IDENT_FOURNISSEUR` (`IDENT_FOURNISSEUR`) USING BTREE,
  KEY `N_OR` (`N_OR`) USING BTREE,
  KEY `N_PARKING` (`N_PARKING`) USING BTREE,
  KEY `PIECE_INTERVENTION_TYPE` (`PIECE_INTERVENTION_TYPE`) USING BTREE,
  KEY `TYPE_OR` (`TYPE_OR`) USING BTREE,
  KEY `TYPE_INTERVENTION` (`TYPE_INTERVENTION`) USING BTREE,
  KEY `DATE_ORDRE` (`DATE_ORDRE`) USING BTREE,
  KEY `HEURE_DEPART` (`HEURE_DEPART`) USING BTREE,
  KEY `HEURE_FIN` (`HEURE_FIN`) USING BTREE,
  KEY `HEURE_FIN_REELLE` (`HEURE_FIN_REELLE`) USING BTREE,
  KEY `MECANO` (`MECANO`) USING BTREE,
  KEY `DATE_DEPART_RDV` (`DATE_DEPART_RDV`) USING BTREE,
  KEY `DECLARANT` (`DECLARANT`) USING BTREE,
  KEY `IDENT_GROUPE_TIERS` (`IDENT_GROUPE_TIERS`) USING BTREE,
  KEY `N_DELAI_PREV` (`N_DELAI_PREV`) USING BTREE,
  KEY `N_DELAI_VISITE` (`N_DELAI_VISITE`) USING BTREE,
  KEY `IMMATRICULATION` (`IMMATRICULATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ordre_reparation_pieces`
--

CREATE TABLE `ordre_reparation_pieces` (
  `ARTICLE` varchar(50) NOT NULL DEFAULT '',
  `A_COMMANDER` char(1) NOT NULL DEFAULT '',
  `FOURNISSEUR` varchar(30) NOT NULL DEFAULT '',
  `IDENTIFICATION_TIERS` varchar(32) NOT NULL DEFAULT '',
  `ID_ORDRE_REPARATION_PIECES` varchar(32) NOT NULL DEFAULT '',
  `PID_ORDRE_REPARATION` varchar(32) NOT NULL DEFAULT '',
  `PRIX_ACHAT` double NOT NULL DEFAULT 0,
  `PRIX_TOTAL` double NOT NULL DEFAULT 0,
  `QUANTITE` double NOT NULL DEFAULT 0,
  `REF` varchar(30) 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 '',
  `IDENT_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `PID_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `SORTIE_PAR` varchar(40) NOT NULL DEFAULT '',
  `SORTIE_STOCK` char(1) NOT NULL DEFAULT '',
  `DEJA_COMMANDE` char(1) NOT NULL DEFAULT '',
  `GROUPE` char(1) NOT NULL DEFAULT '',
  `CODE_ATELIER` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_HA` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL_VTES` varchar(10) NOT NULL DEFAULT '',
  `CODE_ATELIER_VTE` varchar(15) NOT NULL DEFAULT '',
  `SUIVI_STOCK` char(1) NOT NULL DEFAULT '',
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_ORDRE_REPARATION_PIECES`),
  KEY `ARTICLE` (`ARTICLE`) USING BTREE,
  KEY `A_COMMANDER` (`A_COMMANDER`) USING BTREE,
  KEY `FOURNISSEUR` (`FOURNISSEUR`) USING BTREE,
  KEY `IDENTIFICATION_TIERS` (`IDENTIFICATION_TIERS`) USING BTREE,
  KEY `PID_ORDRE_REPARATION` (`PID_ORDRE_REPARATION`) USING BTREE,
  KEY `PRIX_ACHAT` (`PRIX_ACHAT`) USING BTREE,
  KEY `PRIX_TOTAL` (`PRIX_TOTAL`) USING BTREE,
  KEY `QUANTITE` (`QUANTITE`) 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 `IDENT_ARTICLE` (`IDENT_ARTICLE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_ARTICLE` (`PID_ARTICLE`) USING BTREE,
  KEY `SORTIE_PAR` (`SORTIE_PAR`) USING BTREE,
  KEY `DEJA_COMMANDE` (`DEJA_COMMANDE`) USING BTREE,
  KEY `REF` (`REF`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ordre_reparation_rdv`
--

CREATE TABLE `ordre_reparation_rdv` (
  `ID_ORDRE_REPARATION_RDV` varchar(32) NOT NULL DEFAULT '',
  `PID_ORDRE_REPARATION` 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_D_RDV` date DEFAULT NULL,
  `DATE_F_RDV` date DEFAULT NULL,
  `HEURE_D_RDV` time NOT NULL DEFAULT '00:00:00',
  `HEURE_F_RDV` time NOT NULL DEFAULT '00:00:00',
  `LIBELLE_RDV` varchar(10) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `DERNIER_RDV` char(1) NOT NULL DEFAULT '',
  `PID_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `TYPE_INTERVENTION` varchar(30) NOT NULL DEFAULT '',
  `EVENEMENT` varchar(20) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `IMMATRICULATION` varchar(15) NOT NULL DEFAULT '',
  `N_OR` varchar(15) NOT NULL DEFAULT '',
  `FOURNISSEUR` varchar(50) NOT NULL DEFAULT '',
  `FAIT` char(1) NOT NULL DEFAULT '',
  `IDENT_FRS_ET` varchar(32) NOT NULL DEFAULT '',
  `N_DELAI_PREV` decimal(12,0) NOT NULL DEFAULT 0,
  `N_DELAI_VISITE` varchar(10) NOT NULL DEFAULT '',
  `N_VISITE` decimal(12,0) NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_ORDRE_REPARATION_RDV`),
  KEY `PID_ORDRE_REPARATION` (`PID_ORDRE_REPARATION`) 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 `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `PID_MATERIEL_ET` (`PID_MATERIEL_ET`) USING BTREE,
  KEY `TYPE_INTERVENTION` (`TYPE_INTERVENTION`) USING BTREE,
  KEY `EVENEMENT` (`EVENEMENT`) USING BTREE,
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `N_OR` (`N_OR`) USING BTREE,
  KEY `IDENT_FRS_ET` (`IDENT_FRS_ET`) USING BTREE,
  KEY `HEURE_D_RDV` (`HEURE_D_RDV`) USING BTREE,
  KEY `HEURE_F_RDV` (`HEURE_F_RDV`) USING BTREE,
  KEY `IMMATRICULATION` (`IMMATRICULATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `ordre_reparation_tps`
--

CREATE TABLE `ordre_reparation_tps` (
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `COUT_PIECE` double NOT NULL DEFAULT 0,
  `COUT_TEMPS` double NOT NULL DEFAULT 0,
  `DATE_ORDRE` date DEFAULT NULL,
  `EVENEMENT` varchar(20) NOT NULL DEFAULT '',
  `HEURE_FIN_REELLE` time NOT NULL DEFAULT '00:00:00',
  `ID_ORDRE_REPARATION_TPS` varchar(32) NOT NULL DEFAULT '',
  `IMMATRICULATION` varchar(15) NOT NULL DEFAULT '',
  `KILOMETRAGE` double NOT NULL DEFAULT 0,
  `MARQUE` varchar(10) NOT NULL DEFAULT '',
  `MATERIEL_CATEGORIE` varchar(20) NOT NULL DEFAULT '',
  `MEMO` blob DEFAULT NULL,
  `MISE_CIRCULATION` date DEFAULT NULL,
  `MODELE` varchar(20) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_SERIE` varchar(30) NOT NULL DEFAULT '',
  `PID_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `PRM` 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 '',
  `TEMPS_ALLOUE` double NOT NULL DEFAULT 0,
  `TEMPS_PASSE` double NOT NULL DEFAULT 0,
  `TYPE_INTERVENTION` varchar(30) NOT NULL DEFAULT '',
  `VALORISATION_OR` double NOT NULL DEFAULT 0,
  `VISITE_PERIODIQUE` char(1) NOT NULL DEFAULT '',
  `TYPE_OR` varchar(20) NOT NULL DEFAULT '',
  `KM_ENTRE_VIDANGE` double NOT NULL DEFAULT 0,
  `SEUIL_ALERTE_VIDANGE` double NOT NULL DEFAULT 0,
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `PID_ORDRE_REPARATION` varchar(32) NOT NULL DEFAULT '',
  `DATE_DEPART_REELLE` date DEFAULT NULL,
  `DATE_FIN_REELLE` date DEFAULT NULL,
  `HEURE_DEPART_REELLE` time NOT NULL DEFAULT '00:00:00',
  `DATE_DEPART_TPS` date DEFAULT NULL,
  `DATE_FIN_TPS` date DEFAULT NULL,
  `HEURE_DEPART_TPS` time NOT NULL DEFAULT '00:00:00',
  `HEURE_FIN_TPS` time NOT NULL DEFAULT '00:00:00',
  `MECANO_TPS` varchar(30) NOT NULL DEFAULT '',
  `LIBELE_REPARATION` varchar(50) NOT NULL DEFAULT '',
  `N_OR` varchar(15) NOT NULL DEFAULT '',
  `FAIT` char(1) NOT NULL DEFAULT '',
  `IDENT_MECANO_ET` varchar(32) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_ORDRE_REPARATION_TPS`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `COUT_PIECE` (`COUT_PIECE`) USING BTREE,
  KEY `COUT_TEMPS` (`COUT_TEMPS`) USING BTREE,
  KEY `DATE_ORDRE` (`DATE_ORDRE`) USING BTREE,
  KEY `EVENEMENT` (`EVENEMENT`) USING BTREE,
  KEY `HEURE_FIN_REELLE` (`HEURE_FIN_REELLE`) USING BTREE,
  KEY `KILOMETRAGE` (`KILOMETRAGE`) USING BTREE,
  KEY `MARQUE` (`MARQUE`) USING BTREE,
  KEY `MATERIEL_CATEGORIE` (`MATERIEL_CATEGORIE`) USING BTREE,
  KEY `MISE_CIRCULATION` (`MISE_CIRCULATION`) USING BTREE,
  KEY `MODELE` (`MODELE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_SERIE` (`N_SERIE`) USING BTREE,
  KEY `PID_MATERIEL_ET` (`PID_MATERIEL_ET`) 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 `TEMPS_PASSE` (`TEMPS_PASSE`) USING BTREE,
  KEY `TYPE_INTERVENTION` (`TYPE_INTERVENTION`) USING BTREE,
  KEY `VALORISATION_OR` (`VALORISATION_OR`) USING BTREE,
  KEY `VISITE_PERIODIQUE` (`VISITE_PERIODIQUE`) USING BTREE,
  KEY `TYPE_OR` (`TYPE_OR`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `PID_ORDRE_REPARATION` (`PID_ORDRE_REPARATION`) USING BTREE,
  KEY `DATE_DEPART_REELLE` (`DATE_DEPART_REELLE`) USING BTREE,
  KEY `DATE_FIN_REELLE` (`DATE_FIN_REELLE`) USING BTREE,
  KEY `HEURE_DEPART_REELLE` (`HEURE_DEPART_REELLE`) USING BTREE,
  KEY `DATE_DEPART_TPS` (`DATE_DEPART_TPS`) USING BTREE,
  KEY `DATE_FIN_TPS` (`DATE_FIN_TPS`) USING BTREE,
  KEY `HEURE_DEPART_TPS` (`HEURE_DEPART_TPS`) USING BTREE,
  KEY `HEURE_FIN_TPS` (`HEURE_FIN_TPS`) USING BTREE,
  KEY `MECANO_TPS` (`MECANO_TPS`) USING BTREE,
  KEY `N_OR` (`N_OR`) USING BTREE,
  KEY `IDENT_MECANO_ET` (`IDENT_MECANO_ET`) USING BTREE,
  KEY `IMMATRICULATION` (`IMMATRICULATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `parc_det`
--

CREATE TABLE `parc_det` (
  `DATE` date DEFAULT NULL,
  `DESIGNATION` varchar(100) NOT NULL DEFAULT '',
  `DUREE` double NOT NULL DEFAULT 0,
  `FACTURATION` varchar(10) NOT NULL DEFAULT '',
  `ID_PARC_DET` varchar(32) NOT NULL DEFAULT '',
  `PID_PARC_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRIX_VENTE` double NOT NULL DEFAULT 0,
  `REF` varchar(50) 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 '',
  PRIMARY KEY (`ID_PARC_DET`),
  KEY `DUREE` (`DUREE`) USING BTREE,
  KEY `PID_PARC_ET` (`PID_PARC_ET`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `REF` (`REF`) 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 `parc_et`
--

CREATE TABLE `parc_et` (
  `DATE` date DEFAULT NULL,
  `DUREE` double NOT NULL DEFAULT 0,
  `ID_PARC_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS` 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 '',
  `TITRE` varchar(100) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_PARC_ET`),
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DUREE` (`DUREE`) 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
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `prelevement_et`
--

CREATE TABLE `prelevement_et` (
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `FAIT` varchar(10) NOT NULL DEFAULT '',
  `ID_PRELEVEMENT_ET` varchar(32) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NOM_FICHIER_PRELEVEMENT` varchar(200) NOT NULL DEFAULT '',
  `NOM_TRESO_PRELEVEMENT` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_LIGNE_AVEC_REGROUPEMENT` double NOT NULL DEFAULT 0,
  `N_LIGNE_SANS_REGROUPEMENT` double NOT NULL DEFAULT 0,
  `N_PRELEVEMENT` varchar(20) NOT NULL DEFAULT '',
  `N_TRESO_PRELEVEMENT` 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 '',
  `TOTAL_PRELEVEMENT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `TOTAL_PRELEVEMENT_VALIDE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `N_DOSSIER_TRESO` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_PRELEVEMENT_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `FAIT` (`FAIT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `NOM_TRESO_PRELEVEMENT` (`NOM_TRESO_PRELEVEMENT`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_PRELEVEMENT` (`N_PRELEVEMENT`) USING BTREE,
  KEY `N_TRESO_PRELEVEMENT` (`N_TRESO_PRELEVEMENT`) 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 `prepa_mailing_det`
--

CREATE TABLE `prepa_mailing_det` (
  `ADRESSE1` varchar(36) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(36) NOT NULL DEFAULT '',
  `ADRESSE3` varchar(36) NOT NULL DEFAULT '',
  `ADRESSE_SPECIFIQUE` char(1) NOT NULL DEFAULT '',
  `CIVILITE` varchar(12) NOT NULL DEFAULT '',
  `CODE_JOURNAL` varchar(10) NOT NULL DEFAULT '',
  `CODE_POSTAL` varchar(9) NOT NULL DEFAULT '',
  `COMPL_RAISON_SOC` varchar(36) NOT NULL DEFAULT '',
  `CREDIT` double NOT NULL DEFAULT 0,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_FACTURE` date DEFAULT NULL,
  `DEBIT` double NOT NULL DEFAULT 0,
  `EMAIL_CONTACT` varchar(1000) NOT NULL DEFAULT '',
  `EMAIL_SOCIETE` varchar(60) NOT NULL DEFAULT '',
  `FICHIER_ORIGINE` varchar(30) NOT NULL DEFAULT '',
  `FONCTION` varchar(32) NOT NULL DEFAULT '',
  `IDENTIFICATION_COMPTABILIT_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENTIFICATION_TIERS` varchar(32) NOT NULL DEFAULT '',
  `ID_PREPA_MAILING_DET` varchar(32) NOT NULL DEFAULT '',
  `IMP` varchar(10) NOT NULL DEFAULT '',
  `LIBELLE` varchar(100) NOT NULL DEFAULT '',
  `MEMO` blob DEFAULT NULL,
  `NOM` varchar(36) NOT NULL DEFAULT '',
  `NO_LOT` varchar(13) NOT NULL DEFAULT '',
  `N_COMPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_ECRITURE` varchar(15) NOT NULL DEFAULT '',
  `N_PIECE` varchar(15) NOT NULL DEFAULT '',
  `PAYS` varchar(40) NOT NULL DEFAULT '',
  `PID_CAMPAGNE` varchar(32) NOT NULL DEFAULT '',
  `PID_CONTACT` varchar(32) NOT NULL DEFAULT '',
  `PID_IDENTIFICATION` varchar(32) NOT NULL DEFAULT '',
  `PID_LOT` varchar(32) NOT NULL DEFAULT '',
  `PID_SUSPECTS` varchar(32) NOT NULL DEFAULT '',
  `PRENOM` varchar(36) NOT NULL DEFAULT '',
  `RAISON_SOC` varchar(36) NOT NULL DEFAULT '',
  `SERVICE` varchar(20) NOT NULL DEFAULT '',
  `SUIVI_PAR` 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 '',
  `TELEPHONE_DIRECT` varchar(20) NOT NULL DEFAULT '',
  `TELEPHONE_MOBILE` varchar(20) NOT NULL DEFAULT '',
  `TELEPHONE_SOCIETE` varchar(20) NOT NULL DEFAULT '',
  `TYPE_ERREUR` varchar(50) NOT NULL DEFAULT '',
  `TYPE_FICHE` varchar(20) NOT NULL DEFAULT '',
  `TYPE_LOT` varchar(15) NOT NULL DEFAULT '',
  `VILLE` varchar(45) NOT NULL DEFAULT '',
  `IDENT_CONTACT` varchar(32) NOT NULL DEFAULT '',
  `PID_PREPA_MAILING_ET` varchar(32) NOT NULL DEFAULT '',
  `ERREUR` decimal(12,0) NOT NULL DEFAULT 0,
  `DATE_TRESO` date DEFAULT NULL,
  `N_EXERCICE` decimal(12,0) NOT NULL DEFAULT 0,
  `STATUT` decimal(12,0) NOT NULL DEFAULT 0,
  `PAYE1` char(1) NOT NULL DEFAULT '',
  `N_PIECE_CONCAT` varchar(300) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `SOLDE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PAYE2` char(1) NOT NULL DEFAULT '',
  `PAYE3` char(1) NOT NULL DEFAULT '',
  `PAYE` char(1) NOT NULL DEFAULT '',
  `BLOCAGE_VALIDATION` char(1) NOT NULL DEFAULT '',
  `BLOCAGE_REGLEMENT` char(1) NOT NULL DEFAULT '',
  `SUP_RELANCE` char(1) NOT NULL DEFAULT '',
  `DATE_ECRITURE` date DEFAULT NULL,
  PRIMARY KEY (`ID_PREPA_MAILING_DET`),
  KEY `IDENTIFICATION_COMPTABILIT_DET` (`IDENTIFICATION_COMPTABILIT_DET`) USING BTREE,
  KEY `IDENTIFICATION_TIERS` (`IDENTIFICATION_TIERS`) USING BTREE,
  KEY `NO_LOT` (`NO_LOT`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_CAMPAGNE` (`PID_CAMPAGNE`) USING BTREE,
  KEY `PID_CONTACT` (`PID_CONTACT`) USING BTREE,
  KEY `PID_IDENTIFICATION` (`PID_IDENTIFICATION`) USING BTREE,
  KEY `PID_LOT` (`PID_LOT`) USING BTREE,
  KEY `PID_SUSPECTS` (`PID_SUSPECTS`) USING BTREE,
  KEY `SUIVI_PAR` (`SUIVI_PAR`) USING BTREE,
  KEY `TYPE_ERREUR` (`TYPE_ERREUR`) USING BTREE,
  KEY `TYPE_LOT` (`TYPE_LOT`) USING BTREE,
  KEY `IDENT_CONTACT` (`IDENT_CONTACT`) USING BTREE,
  KEY `PID_PREPA_MAILING_ET` (`PID_PREPA_MAILING_ET`) USING BTREE,
  KEY `ERREUR` (`ERREUR`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `prepa_mailing_et`
--

CREATE TABLE `prepa_mailing_et` (
  `ID_PREPA_MAILING_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',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `FAIT` char(1) NOT NULL DEFAULT '',
  `N_DOSSIER` decimal(12,0) NOT NULL DEFAULT 0,
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `DATE_CREATION` date DEFAULT NULL,
  `DATE_CLOTURE` date DEFAULT NULL,
  `NO_LOT` varchar(10) NOT NULL DEFAULT '',
  `N_LIGNE_RELEVE` decimal(12,0) NOT NULL DEFAULT 0,
  `N_TIERS_RELEVE` decimal(12,0) NOT NULL DEFAULT 0,
  `STATUT` decimal(12,0) NOT NULL DEFAULT 0,
  `N_LIGNE_RELANCE1` decimal(12,0) NOT NULL DEFAULT 0,
  `N_LIGNE_RELANCE2` decimal(12,0) NOT NULL DEFAULT 0,
  `N_LIGNE_RELANCE3` decimal(12,0) NOT NULL DEFAULT 0,
  `N_TIERS_RELANCE1` decimal(12,0) NOT NULL DEFAULT 0,
  `N_TIERS_RELANCE2` decimal(12,0) NOT NULL DEFAULT 0,
  `N_TIERS_RELANCE3` decimal(12,0) NOT NULL DEFAULT 0,
  `TOTAL_RELEVE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `TOTAL_RELANCE1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `TOTAL_RELANCE2` decimal(12,2) NOT NULL DEFAULT 0.00,
  `TOTAL_RELANCE3` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DATE_RELEVE` date DEFAULT NULL,
  `DATE_RELANCE1` date DEFAULT NULL,
  `DATE_RELANCE2` date DEFAULT NULL,
  `DATE_RELANCE3` date DEFAULT NULL,
  `STATUT_MAX` decimal(12,0) NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_PREPA_MAILING_ET`),
  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 `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `FAIT` (`FAIT`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `NO_LOT` (`NO_LOT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `prepa_mailing_mkt_det`
--

CREATE TABLE `prepa_mailing_mkt_det` (
  `ADRESSE1` varchar(36) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(36) NOT NULL DEFAULT '',
  `ADRESSE3` varchar(36) NOT NULL DEFAULT '',
  `ADRESSE_SPECIFIQUE` char(1) NOT NULL DEFAULT '',
  `CIVILITE` varchar(12) NOT NULL DEFAULT '',
  `CODE_JOURNAL` varchar(10) NOT NULL DEFAULT '',
  `CODE_POSTAL` varchar(9) NOT NULL DEFAULT '',
  `COMPL_RAISON_SOC` varchar(36) NOT NULL DEFAULT '',
  `CREDIT` double NOT NULL DEFAULT 0,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_FACTURE` date DEFAULT NULL,
  `DEBIT` double NOT NULL DEFAULT 0,
  `EMAIL_CONTACT` varchar(1000) NOT NULL DEFAULT '',
  `EMAIL_SOCIETE` varchar(60) NOT NULL DEFAULT '',
  `FICHIER_ORIGINE` varchar(30) NOT NULL DEFAULT '',
  `FONCTION` varchar(32) NOT NULL DEFAULT '',
  `IDENTIFICATION_COMPTABILIT_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENTIFICATION_TIERS` varchar(32) NOT NULL DEFAULT '',
  `IDENT_CONTACT` varchar(32) NOT NULL DEFAULT '',
  `ID_PREPA_MAILING_MKT_DET` varchar(32) NOT NULL DEFAULT '',
  `IMP` varchar(10) NOT NULL DEFAULT '',
  `LIBELLE` varchar(100) NOT NULL DEFAULT '',
  `MEMO` blob DEFAULT NULL,
  `NOM` varchar(36) NOT NULL DEFAULT '',
  `NO_LOT` varchar(13) NOT NULL DEFAULT '',
  `N_COMPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_ECRITURE` varchar(15) NOT NULL DEFAULT '',
  `N_PIECE` varchar(15) NOT NULL DEFAULT '',
  `PAYS` varchar(40) NOT NULL DEFAULT '',
  `PID_CAMPAGNE` varchar(32) NOT NULL DEFAULT '',
  `PID_CAMPAGNE_MKT_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_CONTACT` varchar(32) NOT NULL DEFAULT '',
  `PID_IDENTIFICATION` varchar(32) NOT NULL DEFAULT '',
  `PID_LOT` varchar(32) NOT NULL DEFAULT '',
  `PID_PREPA_MAILING_MKT_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_SUSPECTS` varchar(32) NOT NULL DEFAULT '',
  `PRENOM` varchar(36) NOT NULL DEFAULT '',
  `RAISON_SOC` varchar(36) NOT NULL DEFAULT '',
  `SERVICE` varchar(20) NOT NULL DEFAULT '',
  `SUIVI_PAR` 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 '',
  `TELEPHONE_DIRECT` varchar(20) NOT NULL DEFAULT '',
  `TELEPHONE_MOBILE` varchar(20) NOT NULL DEFAULT '',
  `TELEPHONE_SOCIETE` varchar(20) NOT NULL DEFAULT '',
  `TYPE_ERREUR` varchar(50) NOT NULL DEFAULT '',
  `TYPE_FICHE` varchar(20) NOT NULL DEFAULT '',
  `TYPE_LOT` varchar(15) NOT NULL DEFAULT '',
  `VILLE` varchar(45) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_PREPA_MAILING_MKT_DET`),
  KEY `IDENTIFICATION_COMPTABILIT_DET` (`IDENTIFICATION_COMPTABILIT_DET`) USING BTREE,
  KEY `IDENTIFICATION_TIERS` (`IDENTIFICATION_TIERS`) USING BTREE,
  KEY `IDENT_CONTACT` (`IDENT_CONTACT`) USING BTREE,
  KEY `NO_LOT` (`NO_LOT`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_CAMPAGNE` (`PID_CAMPAGNE`) USING BTREE,
  KEY `PID_CAMPAGNE_MKT_ET` (`PID_CAMPAGNE_MKT_ET`) USING BTREE,
  KEY `PID_CONTACT` (`PID_CONTACT`) USING BTREE,
  KEY `PID_IDENTIFICATION` (`PID_IDENTIFICATION`) USING BTREE,
  KEY `PID_LOT` (`PID_LOT`) USING BTREE,
  KEY `PID_PREPA_MAILING_MKT_ET` (`PID_PREPA_MAILING_MKT_ET`) USING BTREE,
  KEY `PID_SUSPECTS` (`PID_SUSPECTS`) USING BTREE,
  KEY `SUIVI_PAR` (`SUIVI_PAR`) USING BTREE,
  KEY `TYPE_ERREUR` (`TYPE_ERREUR`) USING BTREE,
  KEY `TYPE_LOT` (`TYPE_LOT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `prepa_mailing_mkt_et`
--

CREATE TABLE `prepa_mailing_mkt_et` (
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `DATE_CLOTURE` date DEFAULT NULL,
  `DATE_CREATION` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `FAIT` char(1) NOT NULL DEFAULT '',
  `ID_PREPA_MAILING_MKT_ET` varchar(32) NOT NULL DEFAULT '',
  `NOMBRE_LIGNE` decimal(12,0) NOT NULL DEFAULT 0,
  `NOMBRE_TIERS` decimal(12,0) NOT NULL DEFAULT 0,
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NO_LOT` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` decimal(12,0) 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 '',
  PRIMARY KEY (`ID_PREPA_MAILING_MKT_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `FAIT` (`FAIT`) USING BTREE,
  KEY `NO_LOT` (`NO_LOT`) USING BTREE,
  KEY `N_DOSSIER` (`N_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 `pret_det`
--

CREATE TABLE `pret_det` (
  `ANNEE` double NOT NULL DEFAULT 0,
  `ASSURANCES` decimal(12,2) NOT NULL DEFAULT 0.00,
  `BASE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `CAPITAL` decimal(12,2) NOT NULL DEFAULT 0.00,
  `COEFFICIENT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DATE` date DEFAULT NULL,
  `DATE1` date DEFAULT NULL,
  `DEBUT` date DEFAULT NULL,
  `DUREE` double NOT NULL DEFAULT 0,
  `ID_PRET_DET` varchar(32) NOT NULL DEFAULT '',
  `INTERET` decimal(12,2) NOT NULL DEFAULT 0.00,
  `INTITULE` varchar(100) NOT NULL DEFAULT '',
  `MENSUALITE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `MOIS` varchar(10) NOT NULL DEFAULT '',
  `MULTIPLE` double NOT NULL DEFAULT 0,
  `NBRE_ANNEE_RESTANTE` double NOT NULL DEFAULT 0,
  `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_EXERCICE` double NOT NULL DEFAULT 0,
  `P` varchar(32) NOT NULL DEFAULT '',
  `PERIODICITE` varchar(30) NOT NULL DEFAULT '',
  `PID_PRET_ET` varchar(32) NOT NULL DEFAULT '',
  `POURCENTAGE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRET_CUMUL` decimal(12,2) NOT NULL DEFAULT 0.00,
  `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` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `VERROU` char(1) NOT NULL DEFAULT '',
  `VR` decimal(12,2) NOT NULL DEFAULT 0.00,
  `TERME` varchar(10) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `IDENTIFICATION_ECRITURE` varchar(32) NOT NULL DEFAULT '',
  `N_ECRITURE` varchar(20) NOT NULL DEFAULT '',
  `AJUSTEMENT` char(1) NOT NULL DEFAULT '',
  `BLOCAGE` char(1) NOT NULL DEFAULT '',
  `BASE_INITIALE` double NOT NULL DEFAULT 0,
  `CAPITAL_V` double NOT NULL DEFAULT 0,
  `DATE_SORTIE` date DEFAULT NULL,
  `INTERET_V` double NOT NULL DEFAULT 0,
  `MENSUALITE_BASE` double NOT NULL DEFAULT 0,
  `NUMERO_AUTO` double NOT NULL DEFAULT 0,
  `N_PERIO` double NOT NULL DEFAULT 0,
  `MODIF_MANUELLE` char(1) NOT NULL DEFAULT '',
  `NUMERO_PRET` varchar(10) NOT NULL DEFAULT '',
  `N_IMPORT` varchar(20) NOT NULL DEFAULT '',
  `PREMIER_LOYER` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DATE_PAIEMENT` date DEFAULT NULL,
  PRIMARY KEY (`ID_PRET_DET`),
  KEY `ANNEE` (`ANNEE`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE1` (`DATE1`) USING BTREE,
  KEY `MULTIPLE` (`MULTIPLE`) USING BTREE,
  KEY `NUMERO` (`NUMERO`) USING BTREE,
  KEY `NUMERO1` (`NUMERO1`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_EXERCICE` (`N_EXERCICE`) USING BTREE,
  KEY `P` (`P`) USING BTREE,
  KEY `PERIODICITE` (`PERIODICITE`) USING BTREE,
  KEY `PID_PRET_ET` (`PID_PRET_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 `TERME` (`TERME`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENTIFICATION_ECRITURE` (`IDENTIFICATION_ECRITURE`) USING BTREE,
  KEY `AJUSTEMENT` (`AJUSTEMENT`) USING BTREE,
  KEY `BLOCAGE` (`BLOCAGE`) USING BTREE,
  KEY `BASE_INITIALE` (`BASE_INITIALE`) USING BTREE,
  KEY `DATE_SORTIE` (`DATE_SORTIE`) USING BTREE,
  KEY `MENSUALITE_BASE` (`MENSUALITE_BASE`) USING BTREE,
  KEY `NUMERO_AUTO` (`NUMERO_AUTO`) USING BTREE,
  KEY `N_PERIO` (`N_PERIO`) USING BTREE,
  KEY `N_ECRITURE` (`N_ECRITURE`) USING BTREE,
  KEY `CAPITAL` (`CAPITAL`) USING BTREE,
  KEY `MODIF_MANUELLE` (`MODIF_MANUELLE`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_IMPORT` (`N_IMPORT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `pret_et`
--

CREATE TABLE `pret_et` (
  `BASE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DEBUT` date DEFAULT NULL,
  `DELTA_EX_ANT` varchar(10) NOT NULL DEFAULT '',
  `DELTA_J` decimal(12,0) NOT NULL DEFAULT 0,
  `DELTA_JOUR` decimal(12,0) NOT NULL DEFAULT 0,
  `DURE` double NOT NULL DEFAULT 0,
  `ECHEANCE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `FIN` date DEFAULT NULL,
  `FRAIS_MONTANT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `ID_PRET_ET` varchar(32) NOT NULL DEFAULT '',
  `IM` varchar(10) NOT NULL DEFAULT '',
  `INTITULE` varchar(100) NOT NULL DEFAULT '',
  `JOURNAL` varchar(10) NOT NULL DEFAULT '',
  `MENSUALITE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `MEOMO` blob DEFAULT NULL,
  `MULTIPLE` double NOT NULL DEFAULT 0,
  `NBRE_JOURS_MOIS_COURANT` double NOT NULL DEFAULT 0,
  `NOM_BANQUE` varchar(10) NOT NULL DEFAULT '',
  `NOM_COMPTE_ASSURANCE` varchar(50) NOT NULL DEFAULT '',
  `NOM_COMPTE_CAPITAL` varchar(50) NOT NULL DEFAULT '',
  `NOM_COMPTE_INTERET` varchar(50) NOT NULL DEFAULT '',
  `NOM_COMPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `NOM_COMPTE_TRESO` varchar(100) NOT NULL DEFAULT '',
  `NOM_JOURNAL` varchar(50) NOT NULL DEFAULT '',
  `NUMERO` varchar(10) NOT NULL DEFAULT '',
  `N_COMPTE_ASSURANCE` double NOT NULL DEFAULT 0,
  `N_COMPTE_CAPITAL` double NOT NULL DEFAULT 0,
  `N_COMPTE_INTERET` double NOT NULL DEFAULT 0,
  `N_COMPTE_TIERS` double NOT NULL DEFAULT 0,
  `N_CONTRAT` varchar(15) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_EXERCICE` varchar(10) NOT NULL DEFAULT '',
  `N_PERIO` double NOT NULL DEFAULT 0,
  `N_TRESO` double NOT NULL DEFAULT 0,
  `PERIODICITE` varchar(20) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PRET_ANT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRET_CUMUL` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRET_JOUR` decimal(12,6) NOT NULL DEFAULT 0.000000,
  `PRET_PERIO` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PRET_PERIODICITE` decimal(12,2) NOT NULL DEFAULT 0.00,
  `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` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TAUX_ASSURANCES` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TAUX_FRAIS` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TEG` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TYPE_PRET` varchar(20) NOT NULL DEFAULT '',
  `TERME` varchar(10) NOT NULL DEFAULT '',
  `ASSURANCE_MONTANT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DATE_SORTIE` date DEFAULT NULL,
  `BLOCAGE_PRET` char(1) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `N_COMPTE_BILAN` double NOT NULL DEFAULT 0,
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `SOLDE` char(1) NOT NULL DEFAULT '',
  `ANALYTIQUE` char(1) NOT NULL DEFAULT '',
  `PASSAGE_365` char(1) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) 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,
  `TOTAL_ANA` double NOT NULL DEFAULT 0,
  `IMMATRICULATION` varchar(15) NOT NULL DEFAULT '',
  `PID_MATERIEL_ET` varchar(32) NOT NULL DEFAULT '',
  `COMPTAGE_LIGNE` decimal(12,0) NOT NULL DEFAULT 0,
  `ANS_MAN` char(1) NOT NULL DEFAULT '',
  `PREMIER_LOYER` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DATE_PAIEMENT` date DEFAULT NULL,
  PRIMARY KEY (`ID_PRET_ET`),
  KEY `DEBUT` (`DEBUT`) USING BTREE,
  KEY `DURE` (`DURE`) USING BTREE,
  KEY `FIN` (`FIN`) USING BTREE,
  KEY `JOURNAL` (`JOURNAL`) USING BTREE,
  KEY `MULTIPLE` (`MULTIPLE`) USING BTREE,
  KEY `NOM_BANQUE` (`NOM_BANQUE`) USING BTREE,
  KEY `NUMERO` (`NUMERO`) USING BTREE,
  KEY `N_COMPTE_ASSURANCE` (`N_COMPTE_ASSURANCE`) USING BTREE,
  KEY `N_COMPTE_CAPITAL` (`N_COMPTE_CAPITAL`) USING BTREE,
  KEY `N_COMPTE_INTERET` (`N_COMPTE_INTERET`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_PERIO` (`N_PERIO`) USING BTREE,
  KEY `N_TRESO` (`N_TRESO`) USING BTREE,
  KEY `PERIODICITE` (`PERIODICITE`) 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 `TYPE_PRET` (`TYPE_PRET`) USING BTREE,
  KEY `BLOCAGE_PRET` (`BLOCAGE_PRET`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `N_COMPTE_BILAN` (`N_COMPTE_BILAN`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `DATE_SORTIE` (`DATE_SORTIE`) USING BTREE,
  KEY `TERME` (`TERME`) USING BTREE,
  KEY `ASSURANCE_MONTANT` (`ASSURANCE_MONTANT`) USING BTREE,
  KEY `BASE` (`BASE`) USING BTREE,
  KEY `DELTA_J` (`DELTA_J`) USING BTREE,
  KEY `ECHEANCE` (`ECHEANCE`) USING BTREE,
  KEY `FRAIS_MONTANT` (`FRAIS_MONTANT`) USING BTREE,
  KEY `MENSUALITE` (`MENSUALITE`) USING BTREE,
  KEY `TAUX_ASSURANCES` (`TAUX_ASSURANCES`) USING BTREE,
  KEY `TAUX_FRAIS` (`TAUX_FRAIS`) USING BTREE,
  KEY `INTITULE` (`INTITULE`) USING BTREE,
  KEY `TAUX` (`TAUX`) USING BTREE,
  KEY `TEG` (`TEG`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `production_levain`
--

CREATE TABLE `production_levain` (
  `COEF_EAU_1` double NOT NULL DEFAULT 0,
  `COEF_EAU_2` double NOT NULL DEFAULT 0,
  `COEF_EAU_3` double NOT NULL DEFAULT 0,
  `COEF_EAU_4` double NOT NULL DEFAULT 0,
  `COEF_EAU_5` double NOT NULL DEFAULT 0,
  `COEF_EAU_6` double NOT NULL DEFAULT 0,
  `COEF_EAU_7` double NOT NULL DEFAULT 0,
  `COEF_EAU_8` double NOT NULL DEFAULT 0,
  `COEF_FARINE_1` double NOT NULL DEFAULT 0,
  `COEF_FARINE_2` double NOT NULL DEFAULT 0,
  `COEF_FARINE_3` double NOT NULL DEFAULT 0,
  `COEF_FARINE_4` double NOT NULL DEFAULT 0,
  `COEF_FARINE_5` double NOT NULL DEFAULT 0,
  `COEF_FARINE_6` double NOT NULL DEFAULT 0,
  `COEF_FARINE_7` double NOT NULL DEFAULT 0,
  `COEF_FARINE_8` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN_1` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN_2` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN_3` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN_4` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN_5` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN_6` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN_7` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN_8` double NOT NULL DEFAULT 0,
  `DATE_DEBUT` date DEFAULT NULL,
  `DATE_FIN` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DATE_S_MOINS_1` date DEFAULT NULL,
  `EAU_1` double NOT NULL DEFAULT 0,
  `EAU_2` double NOT NULL DEFAULT 0,
  `EAU_3` double NOT NULL DEFAULT 0,
  `EAU_4` double NOT NULL DEFAULT 0,
  `EAU_5` double NOT NULL DEFAULT 0,
  `EAU_6` double NOT NULL DEFAULT 0,
  `EAU_7` double NOT NULL DEFAULT 0,
  `EAU_8` double NOT NULL DEFAULT 0,
  `FARINE_1` double NOT NULL DEFAULT 0,
  `FARINE_2` double NOT NULL DEFAULT 0,
  `FARINE_3` double NOT NULL DEFAULT 0,
  `FARINE_4` double NOT NULL DEFAULT 0,
  `FARINE_5` double NOT NULL DEFAULT 0,
  `FARINE_6` double NOT NULL DEFAULT 0,
  `FARINE_7` double NOT NULL DEFAULT 0,
  `FARINE_8` double NOT NULL DEFAULT 0,
  `H_DEPART_1` time NOT NULL DEFAULT '00:00:00',
  `H_DEPART_2` time NOT NULL DEFAULT '00:00:00',
  `H_DEPART_3` time NOT NULL DEFAULT '00:00:00',
  `H_DEPART_4` time NOT NULL DEFAULT '00:00:00',
  `H_DEPART_5` time NOT NULL DEFAULT '00:00:00',
  `H_DEPART_6` time NOT NULL DEFAULT '00:00:00',
  `H_DEPART_7` time NOT NULL DEFAULT '00:00:00',
  `H_DEPART_8` time NOT NULL DEFAULT '00:00:00',
  `H_FIN_1` time NOT NULL DEFAULT '00:00:00',
  `H_FIN_2` time NOT NULL DEFAULT '00:00:00',
  `H_FIN_3` time NOT NULL DEFAULT '00:00:00',
  `H_FIN_4` time NOT NULL DEFAULT '00:00:00',
  `H_FIN_5` time NOT NULL DEFAULT '00:00:00',
  `H_FIN_6` time NOT NULL DEFAULT '00:00:00',
  `H_FIN_7` time NOT NULL DEFAULT '00:00:00',
  `H_FIN_8` time NOT NULL DEFAULT '00:00:00',
  `IDENT_S_1` varchar(32) NOT NULL DEFAULT '',
  `ID_PRODUCTION_LEVAIN` varchar(32) NOT NULL DEFAULT '',
  `JOURS_PROD` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_1` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_2` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_3` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_4` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_5` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_6` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_7` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_8` double NOT NULL DEFAULT 0,
  `LEVAIN_LIQUIDE_POUR_J_1` double NOT NULL DEFAULT 0,
  `LEVAIN_LIQUIDE_RESTANT_J_1` double NOT NULL DEFAULT 0,
  `MODIF_MANUELLE_7` double NOT NULL DEFAULT 0,
  `MODIF_MANUELLE_8` varchar(10) NOT NULL DEFAULT '',
  `MODIF_MANUEL_1` double NOT NULL DEFAULT 0,
  `MODIF_MANUEL_2` double NOT NULL DEFAULT 0,
  `MODIF_MANUEL_3` double NOT NULL DEFAULT 0,
  `MODIF_MANUEL_4` double NOT NULL DEFAULT 0,
  `MODIF_MANUEL_5` double NOT NULL DEFAULT 0,
  `MODIF_MANUEL_6` double NOT NULL DEFAULT 0,
  `NOM_LEVAIN` varchar(50) NOT NULL DEFAULT '',
  `PID_PRODUCTION_RECETTE_ET` varchar(32) NOT NULL DEFAULT '',
  `RECAP` char(1) NOT NULL DEFAULT '',
  `SAISIE_MANUELLE` 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 '',
  `TEMPS_RAFRAICH_1` double NOT NULL DEFAULT 0,
  `TEMPS_RAFRAICH_2` double NOT NULL DEFAULT 0,
  `TEMPS_RAFRAICH_3` double NOT NULL DEFAULT 0,
  `TEMPS_RAFRAICH_4` double NOT NULL DEFAULT 0,
  `TEMPS_RAFRAICH_5` double NOT NULL DEFAULT 0,
  `TEMPS_RAFRAICH_6` double NOT NULL DEFAULT 0,
  `TEMPS_RAFRAICH_7` double NOT NULL DEFAULT 0,
  `TEMPS_RAFRAICH_8` double NOT NULL DEFAULT 0,
  `TOTAL_1` double NOT NULL DEFAULT 0,
  `TOTAL_1_CALCUL` double NOT NULL DEFAULT 0,
  `TOTAL_2` double NOT NULL DEFAULT 0,
  `TOTAL_3` double NOT NULL DEFAULT 0,
  `TOTAL_4` double NOT NULL DEFAULT 0,
  `TOTAL_4_CALCUL` double NOT NULL DEFAULT 0,
  `TOTAL_5` double NOT NULL DEFAULT 0,
  `TOTAL_6` double NOT NULL DEFAULT 0,
  `TOTAL_7` double NOT NULL DEFAULT 0,
  `TOTAL_8` double NOT NULL DEFAULT 0,
  `TOTAL_LEVAIN_ALL` double NOT NULL DEFAULT 0,
  `COEF_SON` decimal(12,2) NOT NULL DEFAULT 0.00,
  `SON_1` decimal(12,0) NOT NULL DEFAULT 0,
  `GRAINE_LEVAIN_LIN` decimal(12,0) NOT NULL DEFAULT 0,
  `GRAINE_LEVAIN_MILLET` decimal(12,0) NOT NULL DEFAULT 0,
  `GRAINE_LEVAIN_TOURNESOL` decimal(12,0) NOT NULL DEFAULT 0,
  `LIN` decimal(12,0) NOT NULL DEFAULT 0,
  `MILLET` decimal(12,0) NOT NULL DEFAULT 0,
  `TOURNESOL` decimal(12,0) NOT NULL DEFAULT 0,
  `GRAINE_LEVAIN_PAVOT` decimal(12,0) NOT NULL DEFAULT 0,
  `PAVOT` decimal(12,0) NOT NULL DEFAULT 0,
  `GRAINE_LEVAIN_SESAME` decimal(12,0) NOT NULL DEFAULT 0,
  `SESAME` decimal(12,0) NOT NULL DEFAULT 0,
  `PID_PRODUCTION_RECETTE_DET` varchar(32) NOT NULL DEFAULT '',
  `TYPE_LEVAIN` varchar(10) NOT NULL DEFAULT '',
  `COEFF` decimal(12,3) NOT NULL DEFAULT 0.000,
  `DUREE` time NOT NULL DEFAULT '00:00:00',
  `AJOUT_MANUEL` decimal(12,0) NOT NULL DEFAULT 0,
  `TOTAL_1_AVEC_AJOUT` decimal(12,0) NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_PRODUCTION_LEVAIN`),
  KEY `DATE_DEBUT` (`DATE_DEBUT`) USING BTREE,
  KEY `DATE_FIN` (`DATE_FIN`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `DATE_S_MOINS_1` (`DATE_S_MOINS_1`) USING BTREE,
  KEY `PID_PRODUCTION_RECETTE_ET` (`PID_PRODUCTION_RECETTE_ET`) USING BTREE,
  KEY `RECAP` (`RECAP`) USING BTREE,
  KEY `SAISIE_MANUELLE` (`SAISIE_MANUELLE`) 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 `TOTAL_4_CALCUL` (`TOTAL_4_CALCUL`) USING BTREE,
  KEY `PID_PRODUCTION_RECETTE_DET` (`PID_PRODUCTION_RECETTE_DET`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `production_levain_type`
--

CREATE TABLE `production_levain_type` (
  `COEF_EAU_1` double NOT NULL DEFAULT 0,
  `COEF_EAU_2` double NOT NULL DEFAULT 0,
  `COEF_EAU_3` double NOT NULL DEFAULT 0,
  `COEF_EAU_4` double NOT NULL DEFAULT 0,
  `COEF_EAU_5` double NOT NULL DEFAULT 0,
  `COEF_EAU_6` double NOT NULL DEFAULT 0,
  `COEF_EAU_7` double NOT NULL DEFAULT 0,
  `COEF_FARINE_1` double NOT NULL DEFAULT 0,
  `COEF_FARINE_2` double NOT NULL DEFAULT 0,
  `COEF_FARINE_3` double NOT NULL DEFAULT 0,
  `COEF_FARINE_4` double NOT NULL DEFAULT 0,
  `COEF_FARINE_5` double NOT NULL DEFAULT 0,
  `COEF_FARINE_6` double NOT NULL DEFAULT 0,
  `COEF_FARINE_7` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN_1` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN_2` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN_3` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN_4` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN_5` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN_6` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN_7` double NOT NULL DEFAULT 0,
  `DATE_DEBUT` date DEFAULT NULL,
  `DATE_FIN` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `EAU_1` double NOT NULL DEFAULT 0,
  `EAU_2` double NOT NULL DEFAULT 0,
  `EAU_3` double NOT NULL DEFAULT 0,
  `EAU_4` double NOT NULL DEFAULT 0,
  `EAU_5` double NOT NULL DEFAULT 0,
  `EAU_6` double NOT NULL DEFAULT 0,
  `EAU_7` double NOT NULL DEFAULT 0,
  `FARINE_1` double NOT NULL DEFAULT 0,
  `FARINE_2` double NOT NULL DEFAULT 0,
  `FARINE_3` double NOT NULL DEFAULT 0,
  `FARINE_4` double NOT NULL DEFAULT 0,
  `FARINE_5` double NOT NULL DEFAULT 0,
  `FARINE_6` double NOT NULL DEFAULT 0,
  `FARINE_7` double NOT NULL DEFAULT 0,
  `H_DEPART_1` time NOT NULL DEFAULT '00:00:00',
  `H_DEPART_2` time NOT NULL DEFAULT '00:00:00',
  `H_DEPART_3` time NOT NULL DEFAULT '00:00:00',
  `H_DEPART_4` time NOT NULL DEFAULT '00:00:00',
  `H_DEPART_5` time NOT NULL DEFAULT '00:00:00',
  `H_DEPART_6` time NOT NULL DEFAULT '00:00:00',
  `H_DEPART_7` time NOT NULL DEFAULT '00:00:00',
  `H_FIN_1` time NOT NULL DEFAULT '00:00:00',
  `H_FIN_2` time NOT NULL DEFAULT '00:00:00',
  `H_FIN_3` time NOT NULL DEFAULT '00:00:00',
  `H_FIN_4` time NOT NULL DEFAULT '00:00:00',
  `H_FIN_5` time NOT NULL DEFAULT '00:00:00',
  `H_FIN_6` time NOT NULL DEFAULT '00:00:00',
  `H_FIN_7` time NOT NULL DEFAULT '00:00:00',
  `ID_PRODUCTION_LEVAIN_TYPE` varchar(32) NOT NULL DEFAULT '',
  `LEVAIN_CHEF_1` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_2` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_3` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_4` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_5` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_6` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_7` double NOT NULL DEFAULT 0,
  `LEVAIN_LIQUIDE_POUR_J_1` double NOT NULL DEFAULT 0,
  `LEVAIN_LIQUIDE_RESTANT_J_1` double NOT NULL DEFAULT 0,
  `MODIF_MANUEL_1` double NOT NULL DEFAULT 0,
  `MODIF_MANUEL_2` double NOT NULL DEFAULT 0,
  `MODIF_MANUEL_3` double NOT NULL DEFAULT 0,
  `MODIF_MANUEL_4` double NOT NULL DEFAULT 0,
  `MODIF_MANUEL_5` double NOT NULL DEFAULT 0,
  `MODIF_MANUEL_6` double NOT NULL DEFAULT 0,
  `PID_PRODUCTION_RECETTE_TYPE` varchar(32) NOT NULL DEFAULT '',
  `PID_PRODUCTION_RECETTE_TYPE_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 '',
  `TEMPS_RAFRAICH_1` double NOT NULL DEFAULT 0,
  `TEMPS_RAFRAICH_2` double NOT NULL DEFAULT 0,
  `TEMPS_RAFRAICH_3` double NOT NULL DEFAULT 0,
  `TEMPS_RAFRAICH_4` double NOT NULL DEFAULT 0,
  `TEMPS_RAFRAICH_5` double NOT NULL DEFAULT 0,
  `TEMPS_RAFRAICH_6` double NOT NULL DEFAULT 0,
  `TEMPS_RAFRAICH_7` double NOT NULL DEFAULT 0,
  `TOTAL_1` double NOT NULL DEFAULT 0,
  `TOTAL_2` double NOT NULL DEFAULT 0,
  `TOTAL_3` double NOT NULL DEFAULT 0,
  `TOTAL_4` double NOT NULL DEFAULT 0,
  `TOTAL_5` double NOT NULL DEFAULT 0,
  `TOTAL_6` double NOT NULL DEFAULT 0,
  `TOTAL_7` double NOT NULL DEFAULT 0,
  `TOTAL_LEVAIN_ALL` double NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_PRODUCTION_LEVAIN_TYPE`),
  KEY `DATE_DEBUT` (`DATE_DEBUT`) USING BTREE,
  KEY `DATE_FIN` (`DATE_FIN`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `PID_PRODUCTION_RECETTE_TYPE` (`PID_PRODUCTION_RECETTE_TYPE`) USING BTREE,
  KEY `PID_PRODUCTION_RECETTE_TYPE_ET` (`PID_PRODUCTION_RECETTE_TYPE_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 `production_recette`
--

CREATE TABLE `production_recette` (
  `BANNETON_1` varchar(50) NOT NULL DEFAULT '',
  `BANNETON_2` varchar(50) NOT NULL DEFAULT '',
  `CHOCOLAT_PATE_POUR_BRIOCHE` double NOT NULL DEFAULT 0,
  `CHOCOLAT_POUR_BRIOCHE` double NOT NULL DEFAULT 0,
  `CODE_ARTICLE` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_2` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_3` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_4` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_5` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_L_01` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_L_02` varchar(10) NOT NULL DEFAULT '',
  `CODE_CLIENT_1` varchar(10) NOT NULL DEFAULT '',
  `COEF_CALCUL` double NOT NULL DEFAULT 0,
  `COEF_EAU` double NOT NULL DEFAULT 0,
  `COEF_FARINE` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DATE_FIN_2` date DEFAULT NULL,
  `DATE_FIN_2_CLEAN` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DEJA_CALCULE` char(1) NOT NULL DEFAULT '',
  `DIVISION_1` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_1_POUR_RECAP` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_1_POUR_RECAP_J2` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_2` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_2_POUR_RECAP` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_2_POUR_RECAP_J2` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_3` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_4` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_5` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_POUR_DECOUPE_1` varchar(30) NOT NULL DEFAULT '',
  `DIVISION_POUR_DECOUPE_2` varchar(30) NOT NULL DEFAULT '',
  `DIVISION_POUR_DECOUPE_3` varchar(30) NOT NULL DEFAULT '',
  `ENGRAIN_EAU_PETRIE` double NOT NULL DEFAULT 0,
  `ENGRAIN_EAU_RESTANT` double NOT NULL DEFAULT 0,
  `ENGRAIN_FARINE` double NOT NULL DEFAULT 0,
  `ENGRAIN_SEL` double NOT NULL DEFAULT 0,
  `ENVRAIN_LEVAIN_PAR_BAC` double NOT NULL DEFAULT 0,
  `ET_1` varchar(50) NOT NULL DEFAULT '',
  `ET_2` varchar(50) NOT NULL DEFAULT '',
  `ET_3` varchar(50) NOT NULL DEFAULT '',
  `ET_4` varchar(50) NOT NULL DEFAULT '',
  `ET_5` varchar(50) NOT NULL DEFAULT '',
  `I10_E1` double NOT NULL DEFAULT 0,
  `I10_E2` double NOT NULL DEFAULT 0,
  `I10_E3` double NOT NULL DEFAULT 0,
  `I10_E4` double NOT NULL DEFAULT 0,
  `I10_E5` double NOT NULL DEFAULT 0,
  `I10_E6` double NOT NULL DEFAULT 0,
  `I11_E1` double NOT NULL DEFAULT 0,
  `I11_E2` double NOT NULL DEFAULT 0,
  `I11_E3` double NOT NULL DEFAULT 0,
  `I11_E4` double NOT NULL DEFAULT 0,
  `I11_E5` double NOT NULL DEFAULT 0,
  `I11_E6` double NOT NULL DEFAULT 0,
  `I1_E1` double NOT NULL DEFAULT 0,
  `I1_E2` double NOT NULL DEFAULT 0,
  `I1_E3` double NOT NULL DEFAULT 0,
  `I1_E4` double NOT NULL DEFAULT 0,
  `I1_E5` double NOT NULL DEFAULT 0,
  `I1_E6` double NOT NULL DEFAULT 0,
  `I2_E1` double NOT NULL DEFAULT 0,
  `I2_E2` double NOT NULL DEFAULT 0,
  `I2_E3` double NOT NULL DEFAULT 0,
  `I2_E4` double NOT NULL DEFAULT 0,
  `I2_E5` double NOT NULL DEFAULT 0,
  `I2_E6` double NOT NULL DEFAULT 0,
  `I3_E1` double NOT NULL DEFAULT 0,
  `I3_E2` double NOT NULL DEFAULT 0,
  `I3_E3` double NOT NULL DEFAULT 0,
  `I3_E4` double NOT NULL DEFAULT 0,
  `I3_E5` double NOT NULL DEFAULT 0,
  `I3_E6` double NOT NULL DEFAULT 0,
  `I4_E1` double NOT NULL DEFAULT 0,
  `I4_E2` double NOT NULL DEFAULT 0,
  `I4_E3` double NOT NULL DEFAULT 0,
  `I4_E4` double NOT NULL DEFAULT 0,
  `I4_E5` double NOT NULL DEFAULT 0,
  `I4_E6` double NOT NULL DEFAULT 0,
  `I5_E1` double NOT NULL DEFAULT 0,
  `I5_E2` double NOT NULL DEFAULT 0,
  `I5_E3` double NOT NULL DEFAULT 0,
  `I5_E4` double NOT NULL DEFAULT 0,
  `I5_E5` double NOT NULL DEFAULT 0,
  `I5_E6` double NOT NULL DEFAULT 0,
  `I6_E1` double NOT NULL DEFAULT 0,
  `I6_E2` double NOT NULL DEFAULT 0,
  `I6_E3` double NOT NULL DEFAULT 0,
  `I6_E4` double NOT NULL DEFAULT 0,
  `I6_E5` double NOT NULL DEFAULT 0,
  `I6_E6` double NOT NULL DEFAULT 0,
  `I7_E1` double NOT NULL DEFAULT 0,
  `I7_E2` double NOT NULL DEFAULT 0,
  `I7_E3` double NOT NULL DEFAULT 0,
  `I7_E4` double NOT NULL DEFAULT 0,
  `I7_E5` double NOT NULL DEFAULT 0,
  `I7_E6` double NOT NULL DEFAULT 0,
  `I8_E1` double NOT NULL DEFAULT 0,
  `I8_E2` double NOT NULL DEFAULT 0,
  `I8_E3` double NOT NULL DEFAULT 0,
  `I8_E4` double NOT NULL DEFAULT 0,
  `I8_E5` double NOT NULL DEFAULT 0,
  `I8_E6` double NOT NULL DEFAULT 0,
  `I9_E1` double NOT NULL DEFAULT 0,
  `I9_E2` double NOT NULL DEFAULT 0,
  `I9_E3` double NOT NULL DEFAULT 0,
  `I9_E4` double NOT NULL DEFAULT 0,
  `I9_E5` double NOT NULL DEFAULT 0,
  `I9_E6` double NOT NULL DEFAULT 0,
  `IDENT_RECETTE_DET` varchar(32) NOT NULL DEFAULT '',
  `ID_PRODUCTION_RECETTE` varchar(32) NOT NULL DEFAULT '',
  `INDIVIDUEL_CRU_1` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CRU_2` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CRU_3` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CRU_4` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CRU_5` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_1` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_2` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_3` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_4` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_5` double NOT NULL DEFAULT 0,
  `IN_1` varchar(50) NOT NULL DEFAULT '',
  `IN_10` varchar(50) NOT NULL DEFAULT '',
  `IN_11` varchar(50) NOT NULL DEFAULT '',
  `IN_2` varchar(50) NOT NULL DEFAULT '',
  `IN_3` varchar(50) NOT NULL DEFAULT '',
  `IN_4` varchar(50) NOT NULL DEFAULT '',
  `IN_5` varchar(50) NOT NULL DEFAULT '',
  `IN_6` varchar(50) NOT NULL DEFAULT '',
  `IN_7` varchar(50) NOT NULL DEFAULT '',
  `IN_8` varchar(50) NOT NULL DEFAULT '',
  `IN_9` varchar(50) NOT NULL DEFAULT '',
  `NOM_LEVAIN` varchar(70) NOT NULL DEFAULT '',
  `NOM_RECETTE` varchar(70) NOT NULL DEFAULT '',
  `N_BAC` double NOT NULL DEFAULT 0,
  `N_BAC_POUR_CALCUL` double NOT NULL DEFAULT 0,
  `OEUF_POUR_BRIOCHE` double NOT NULL DEFAULT 0,
  `PATE_POUR_MALTE` double NOT NULL DEFAULT 0,
  `PID_PRODUCTION_RECETTE_ET` varchar(32) NOT NULL DEFAULT '',
  `POID_CRU_DEC_1` double NOT NULL DEFAULT 0,
  `POID_CRU_DEC_2` double NOT NULL DEFAULT 0,
  `QUANTITE_POUR_BUN` double NOT NULL DEFAULT 0,
  `Q_DIVISION_1` double NOT NULL DEFAULT 0,
  `Q_DIVISION_2` double NOT NULL DEFAULT 0,
  `Q_DIVISION_3` double NOT NULL DEFAULT 0,
  `Q_DIVISION_4` double NOT NULL DEFAULT 0,
  `Q_DIVISION_5` double NOT NULL DEFAULT 0,
  `Q_H_5_1` double NOT NULL DEFAULT 0,
  `Q_H_5_2` double NOT NULL DEFAULT 0,
  `Q_H_5_3` double NOT NULL DEFAULT 0,
  `Q_H_5_4` double NOT NULL DEFAULT 0,
  `Q_H_5_5` double NOT NULL DEFAULT 0,
  `Q_H_6_1` double NOT NULL DEFAULT 0,
  `Q_H_6_2` double NOT NULL DEFAULT 0,
  `Q_H_6_3` double NOT NULL DEFAULT 0,
  `Q_H_6_4` double NOT NULL DEFAULT 0,
  `Q_H_6_5` double NOT NULL DEFAULT 0,
  `Q_POUR_DECOUPE_1` double NOT NULL DEFAULT 0,
  `Q_POUR_DECOUPE_2` double NOT NULL DEFAULT 0,
  `Q_POUR_DECOUPE_3` double NOT NULL DEFAULT 0,
  `Q_TOTAL` double NOT NULL DEFAULT 0,
  `REACP_Q_J2_2` double NOT NULL DEFAULT 0,
  `RECAP` char(1) NOT NULL DEFAULT '',
  `RECAP_J_1_1` double NOT NULL DEFAULT 0,
  `RECAP_J_1_2` double NOT NULL DEFAULT 0,
  `RECAP_J_2_1` double NOT NULL DEFAULT 0,
  `RECAP_J_2_2` double NOT NULL DEFAULT 0,
  `RECAP_J_VISIBLE` char(1) NOT NULL DEFAULT '',
  `RECAP_N_BAC_1` double NOT NULL DEFAULT 0,
  `RECAP_N_BAC_1_J2` double NOT NULL DEFAULT 0,
  `RECAP_N_BAC_2` double NOT NULL DEFAULT 0,
  `RECAP_N_BAC_2_J2` double NOT NULL DEFAULT 0,
  `RECAP_N_BAC_POUR_CALCUL_1` double NOT NULL DEFAULT 0,
  `RECAP_N_BAC_POUR_CALCUL_2` varchar(10) NOT NULL DEFAULT '',
  `RECAP_N_BAC_POUR_CALCUL_J2_1` varchar(10) NOT NULL DEFAULT '',
  `RECAP_N_BAC_POUR_CALCUL_J2_2` varchar(10) NOT NULL DEFAULT '',
  `RECAP_Q_J1_D1` double NOT NULL DEFAULT 0,
  `RECAP_Q_J1_D2` double NOT NULL DEFAULT 0,
  `RECAP_Q_J2_D1` double NOT NULL DEFAULT 0,
  `RECAP_Q_J2_D2` double NOT NULL DEFAULT 0,
  `RECAP_RESTE_BAC_1` double NOT NULL DEFAULT 0,
  `RECAP_RESTE_BAC_2` double NOT NULL DEFAULT 0,
  `RECAP_RESTE_BAC_J2_1` double NOT NULL DEFAULT 0,
  `RECAP_RESTE_BAC_J2_2` double NOT NULL DEFAULT 0,
  `RECUP_DIV_ENGRAIN` double NOT NULL DEFAULT 0,
  `RESTANT_BAC` double NOT NULL DEFAULT 0,
  `RESTANT_BAC_F` double NOT NULL DEFAULT 0,
  `SAISIE_MANUELLE` 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_ETAT_PLIE` varchar(5) NOT NULL DEFAULT '',
  `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_NIVEAU_NOMENCLATURE` double NOT NULL DEFAULT 0,
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TAILLE_BAC` double NOT NULL DEFAULT 0,
  `TOTAL_COMMANDE_CRUS` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_1` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_2` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_3` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_4` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_5` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DIVISION` double NOT NULL DEFAULT 0,
  `TOTAL_CUIT_RECETTE` double NOT NULL DEFAULT 0,
  `TOTAL_F_PAIN_GOURMAND` varchar(10) NOT NULL DEFAULT '',
  `TOTAL_I1` double NOT NULL DEFAULT 0,
  `TOTAL_I10` double NOT NULL DEFAULT 0,
  `TOTAL_I11` double NOT NULL DEFAULT 0,
  `TOTAL_I2` double NOT NULL DEFAULT 0,
  `TOTAL_I3` double NOT NULL DEFAULT 0,
  `TOTAL_I4` double NOT NULL DEFAULT 0,
  `TOTAL_I5` double NOT NULL DEFAULT 0,
  `TOTAL_I6` double NOT NULL DEFAULT 0,
  `TOTAL_I7` double NOT NULL DEFAULT 0,
  `TOTAL_I8` double NOT NULL DEFAULT 0,
  `TOTAL_I9` double NOT NULL DEFAULT 0,
  `TOTAL_J_1` double NOT NULL DEFAULT 0,
  `TOTAL_J_2` double NOT NULL DEFAULT 0,
  `TOTAL_RECETTE_POUR_COEF` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_1` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_2` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_3` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_4` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_5` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DIVISIONS_LIBRE` double NOT NULL DEFAULT 0,
  `ORDRE_RECETTE` decimal(12,0) NOT NULL DEFAULT 0,
  `POINTS_LIRAISON` varchar(150) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_PRODUCTION_RECETTE`),
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_FIN_2` (`DATE_FIN_2`) USING BTREE,
  KEY `DATE_FIN_2_CLEAN` (`DATE_FIN_2_CLEAN`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `INDIVIDUEL_CRU_1` (`INDIVIDUEL_CRU_1`) USING BTREE,
  KEY `PID_PRODUCTION_RECETTE_ET` (`PID_PRODUCTION_RECETTE_ET`) USING BTREE,
  KEY `Q_H_5_1` (`Q_H_5_1`) USING BTREE,
  KEY `Q_H_5_2` (`Q_H_5_2`) USING BTREE,
  KEY `Q_H_5_3` (`Q_H_5_3`) USING BTREE,
  KEY `Q_H_5_4` (`Q_H_5_4`) USING BTREE,
  KEY `Q_H_5_5` (`Q_H_5_5`) USING BTREE,
  KEY `Q_H_6_1` (`Q_H_6_1`) USING BTREE,
  KEY `Q_H_6_2` (`Q_H_6_2`) USING BTREE,
  KEY `Q_H_6_3` (`Q_H_6_3`) USING BTREE,
  KEY `Q_H_6_4` (`Q_H_6_4`) USING BTREE,
  KEY `Q_H_6_5` (`Q_H_6_5`) USING BTREE,
  KEY `RECAP` (`RECAP`) USING BTREE,
  KEY `RECAP_J_VISIBLE` (`RECAP_J_VISIBLE`) USING BTREE,
  KEY `RECAP_Q_J1_D1` (`RECAP_Q_J1_D1`) USING BTREE,
  KEY `RECAP_Q_J1_D2` (`RECAP_Q_J1_D2`) USING BTREE,
  KEY `RECAP_Q_J2_D1` (`RECAP_Q_J2_D1`) USING BTREE,
  KEY `RECAP_Q_J2_D2` (`RECAP_Q_J2_D2`) 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_LIEN_CONTEXTE_MAITRE` (`SYS_LIEN_CONTEXTE_MAITRE`) 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 `production_recette_det`
--

CREATE TABLE `production_recette_det` (
  `BANNETON_1` varchar(50) NOT NULL DEFAULT '',
  `BANNETON_2` varchar(50) NOT NULL DEFAULT '',
  `CHOCOLAT_PATE_POUR_BRIOCHE` double NOT NULL DEFAULT 0,
  `CHOCOLAT_POUR_BRIOCHE` double NOT NULL DEFAULT 0,
  `CODE_ARTICLE_1` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_2` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_3` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_4` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_5` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_L_01` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_L_02` varchar(10) NOT NULL DEFAULT '',
  `CODE_CLIENT_1` varchar(10) NOT NULL DEFAULT '',
  `COEF_CALCUL` double NOT NULL DEFAULT 0,
  `COEF_EAU` double NOT NULL DEFAULT 0,
  `COEF_FARINE` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DATE_FIN_2` date DEFAULT NULL,
  `DATE_FIN_2_CLEAN` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DEJA_CALCULE` char(1) NOT NULL DEFAULT '',
  `DIVISION_1` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_1_POUR_RECAP` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_1_POUR_RECAP_J2` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_2` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_2_POUR_RECAP` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_2_POUR_RECAP_J2` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_3` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_4` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_5` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_POUR_DECOUPE_1` varchar(30) NOT NULL DEFAULT '',
  `DIVISION_POUR_DECOUPE_2` varchar(30) NOT NULL DEFAULT '',
  `DIVISION_POUR_DECOUPE_3` varchar(30) NOT NULL DEFAULT '',
  `ENGRAIN_EAU_PETRIE` double NOT NULL DEFAULT 0,
  `ENGRAIN_EAU_RESTANT` double NOT NULL DEFAULT 0,
  `ENGRAIN_FARINE` double NOT NULL DEFAULT 0,
  `ENGRAIN_SEL` double NOT NULL DEFAULT 0,
  `ENVRAIN_LEVAIN_PAR_BAC` double NOT NULL DEFAULT 0,
  `ET_1` varchar(50) NOT NULL DEFAULT '',
  `ET_2` varchar(50) NOT NULL DEFAULT '',
  `ET_3` varchar(50) NOT NULL DEFAULT '',
  `ET_4` varchar(50) NOT NULL DEFAULT '',
  `ET_5` varchar(50) NOT NULL DEFAULT '',
  `I10_E1` double NOT NULL DEFAULT 0,
  `I10_E2` double NOT NULL DEFAULT 0,
  `I10_E3` double NOT NULL DEFAULT 0,
  `I10_E4` double NOT NULL DEFAULT 0,
  `I10_E5` double NOT NULL DEFAULT 0,
  `I10_E6` double NOT NULL DEFAULT 0,
  `I11_E1` double NOT NULL DEFAULT 0,
  `I11_E2` double NOT NULL DEFAULT 0,
  `I11_E3` double NOT NULL DEFAULT 0,
  `I11_E4` double NOT NULL DEFAULT 0,
  `I11_E5` double NOT NULL DEFAULT 0,
  `I11_E6` double NOT NULL DEFAULT 0,
  `I1_E1` double NOT NULL DEFAULT 0,
  `I1_E2` double NOT NULL DEFAULT 0,
  `I1_E3` double NOT NULL DEFAULT 0,
  `I1_E4` double NOT NULL DEFAULT 0,
  `I1_E5` double NOT NULL DEFAULT 0,
  `I1_E6` double NOT NULL DEFAULT 0,
  `I2_E1` double NOT NULL DEFAULT 0,
  `I2_E2` double NOT NULL DEFAULT 0,
  `I2_E3` double NOT NULL DEFAULT 0,
  `I2_E4` double NOT NULL DEFAULT 0,
  `I2_E5` double NOT NULL DEFAULT 0,
  `I2_E6` double NOT NULL DEFAULT 0,
  `I3_E1` double NOT NULL DEFAULT 0,
  `I3_E2` double NOT NULL DEFAULT 0,
  `I3_E3` double NOT NULL DEFAULT 0,
  `I3_E4` double NOT NULL DEFAULT 0,
  `I3_E5` double NOT NULL DEFAULT 0,
  `I3_E6` double NOT NULL DEFAULT 0,
  `I4_E1` double NOT NULL DEFAULT 0,
  `I4_E2` double NOT NULL DEFAULT 0,
  `I4_E3` double NOT NULL DEFAULT 0,
  `I4_E4` double NOT NULL DEFAULT 0,
  `I4_E5` double NOT NULL DEFAULT 0,
  `I4_E6` double NOT NULL DEFAULT 0,
  `I5_E1` double NOT NULL DEFAULT 0,
  `I5_E2` double NOT NULL DEFAULT 0,
  `I5_E3` double NOT NULL DEFAULT 0,
  `I5_E4` double NOT NULL DEFAULT 0,
  `I5_E5` double NOT NULL DEFAULT 0,
  `I5_E6` double NOT NULL DEFAULT 0,
  `I6_E1` double NOT NULL DEFAULT 0,
  `I6_E2` double NOT NULL DEFAULT 0,
  `I6_E3` double NOT NULL DEFAULT 0,
  `I6_E4` double NOT NULL DEFAULT 0,
  `I6_E5` double NOT NULL DEFAULT 0,
  `I6_E6` double NOT NULL DEFAULT 0,
  `I7_E1` double NOT NULL DEFAULT 0,
  `I7_E2` double NOT NULL DEFAULT 0,
  `I7_E3` double NOT NULL DEFAULT 0,
  `I7_E4` double NOT NULL DEFAULT 0,
  `I7_E5` double NOT NULL DEFAULT 0,
  `I7_E6` double NOT NULL DEFAULT 0,
  `I8_E1` double NOT NULL DEFAULT 0,
  `I8_E2` double NOT NULL DEFAULT 0,
  `I8_E3` double NOT NULL DEFAULT 0,
  `I8_E4` double NOT NULL DEFAULT 0,
  `I8_E5` double NOT NULL DEFAULT 0,
  `I8_E6` double NOT NULL DEFAULT 0,
  `I9_E1` double NOT NULL DEFAULT 0,
  `I9_E2` double NOT NULL DEFAULT 0,
  `I9_E3` double NOT NULL DEFAULT 0,
  `I9_E4` double NOT NULL DEFAULT 0,
  `I9_E5` double NOT NULL DEFAULT 0,
  `I9_E6` double NOT NULL DEFAULT 0,
  `IDENT_RECETTE` varchar(32) NOT NULL DEFAULT '',
  `ID_PRODUCTION_RECETTE_DET` varchar(32) NOT NULL DEFAULT '',
  `INDIVIDUEL_CRU_1` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CRU_2` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CRU_3` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CRU_4` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CRU_5` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_1` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_2` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_3` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_4` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_5` double NOT NULL DEFAULT 0,
  `IN_1` varchar(50) NOT NULL DEFAULT '',
  `IN_10` varchar(50) NOT NULL DEFAULT '',
  `IN_11` varchar(50) NOT NULL DEFAULT '',
  `IN_2` varchar(50) NOT NULL DEFAULT '',
  `IN_3` varchar(50) NOT NULL DEFAULT '',
  `IN_4` varchar(50) NOT NULL DEFAULT '',
  `IN_5` varchar(50) NOT NULL DEFAULT '',
  `IN_6` varchar(50) NOT NULL DEFAULT '',
  `IN_7` varchar(50) NOT NULL DEFAULT '',
  `IN_8` varchar(50) NOT NULL DEFAULT '',
  `IN_9` varchar(50) NOT NULL DEFAULT '',
  `NOM_LEVAIN` varchar(70) NOT NULL DEFAULT '',
  `NOM_RECETTE` varchar(70) NOT NULL DEFAULT '',
  `N_BAC` double NOT NULL DEFAULT 0,
  `N_BAC_POUR_CALCUL` double NOT NULL DEFAULT 0,
  `OEUF_POUR_BRIOCHE` double NOT NULL DEFAULT 0,
  `PATE_POUR_MALTE` double NOT NULL DEFAULT 0,
  `PID_PRODUCTION_RECETTE_ET` varchar(32) NOT NULL DEFAULT '',
  `POID_CRU_DEC_1` double NOT NULL DEFAULT 0,
  `POID_CRU_DEC_2` double NOT NULL DEFAULT 0,
  `QUANTITE_POUR_BUN` double NOT NULL DEFAULT 0,
  `Q_DIVISION_1` double NOT NULL DEFAULT 0,
  `Q_DIVISION_2` double NOT NULL DEFAULT 0,
  `Q_DIVISION_3` double NOT NULL DEFAULT 0,
  `Q_DIVISION_4` double NOT NULL DEFAULT 0,
  `Q_DIVISION_5` double NOT NULL DEFAULT 0,
  `Q_H_3_1` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_H_3_2` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_H_3_3` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_H_3_4` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_H_3_5` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_H_5_1` double NOT NULL DEFAULT 0,
  `Q_H_5_2` double NOT NULL DEFAULT 0,
  `Q_H_5_3` double NOT NULL DEFAULT 0,
  `Q_H_5_4` double NOT NULL DEFAULT 0,
  `Q_H_5_5` double NOT NULL DEFAULT 0,
  `Q_H_6_1` double NOT NULL DEFAULT 0,
  `Q_H_6_2` double NOT NULL DEFAULT 0,
  `Q_H_6_3` double NOT NULL DEFAULT 0,
  `Q_H_6_4` double NOT NULL DEFAULT 0,
  `Q_H_6_5` double NOT NULL DEFAULT 0,
  `Q_POUR_DECOUPE_1` double NOT NULL DEFAULT 0,
  `Q_POUR_DECOUPE_2` double NOT NULL DEFAULT 0,
  `Q_POUR_DECOUPE_3` double NOT NULL DEFAULT 0,
  `Q_TOTAL` double NOT NULL DEFAULT 0,
  `REACP_Q_J2_2` double NOT NULL DEFAULT 0,
  `RECAP` decimal(12,0) NOT NULL DEFAULT 0,
  `RECAP_J_1_1` double NOT NULL DEFAULT 0,
  `RECAP_J_1_2` double NOT NULL DEFAULT 0,
  `RECAP_J_2_1` double NOT NULL DEFAULT 0,
  `RECAP_J_2_2` double NOT NULL DEFAULT 0,
  `RECAP_J_VISIBLE` char(1) NOT NULL DEFAULT '',
  `RECAP_N_BAC_1` double NOT NULL DEFAULT 0,
  `RECAP_N_BAC_1_J2` double NOT NULL DEFAULT 0,
  `RECAP_N_BAC_2` double NOT NULL DEFAULT 0,
  `RECAP_N_BAC_2_J2` double NOT NULL DEFAULT 0,
  `RECAP_N_BAC_POUR_CALCUL_1` double NOT NULL DEFAULT 0,
  `RECAP_N_BAC_POUR_CALCUL_2` varchar(10) NOT NULL DEFAULT '',
  `RECAP_N_BAC_POUR_CALCUL_J2_1` varchar(10) NOT NULL DEFAULT '',
  `RECAP_N_BAC_POUR_CALCUL_J2_2` varchar(10) NOT NULL DEFAULT '',
  `RECAP_Q_J1_D1` double NOT NULL DEFAULT 0,
  `RECAP_Q_J1_D2` double NOT NULL DEFAULT 0,
  `RECAP_Q_J2_D1` double NOT NULL DEFAULT 0,
  `RECAP_Q_J2_D2` double NOT NULL DEFAULT 0,
  `RECAP_RESTE_BAC_1` double NOT NULL DEFAULT 0,
  `RECAP_RESTE_BAC_2` double NOT NULL DEFAULT 0,
  `RECAP_RESTE_BAC_J2_1` double NOT NULL DEFAULT 0,
  `RECAP_RESTE_BAC_J2_2` double NOT NULL DEFAULT 0,
  `COEFF_DIVISEUR` double NOT NULL DEFAULT 0,
  `RESTANT_BAC` double NOT NULL DEFAULT 0,
  `RESTANT_BAC_F` double NOT NULL DEFAULT 0,
  `SAISIE_MANUELLE` 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_ETAT_PLIE` varchar(5) NOT NULL DEFAULT '',
  `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_NIVEAU_NOMENCLATURE` double NOT NULL DEFAULT 0,
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TAILLE_BAC` double NOT NULL DEFAULT 0,
  `TOTAL_COMMANDE_CRUS` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_1` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_2` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_3` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_4` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_5` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DIVISION` double NOT NULL DEFAULT 0,
  `TOTAL_CUIT_RECETTE` double NOT NULL DEFAULT 0,
  `TOTAL_F_PAIN_GOURMAND` decimal(12,0) NOT NULL DEFAULT 0,
  `TOTAL_I1` double NOT NULL DEFAULT 0,
  `TOTAL_I10` double NOT NULL DEFAULT 0,
  `TOTAL_I11` double NOT NULL DEFAULT 0,
  `TOTAL_I2` double NOT NULL DEFAULT 0,
  `TOTAL_I3` double NOT NULL DEFAULT 0,
  `TOTAL_I4` double NOT NULL DEFAULT 0,
  `TOTAL_I5` double NOT NULL DEFAULT 0,
  `TOTAL_I6` double NOT NULL DEFAULT 0,
  `TOTAL_I7` double NOT NULL DEFAULT 0,
  `TOTAL_I8` double NOT NULL DEFAULT 0,
  `TOTAL_I9` double NOT NULL DEFAULT 0,
  `TOTAL_J_1` double NOT NULL DEFAULT 0,
  `TOTAL_J_2` double NOT NULL DEFAULT 0,
  `TOTAL_RECETTE_POUR_COEF` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_1` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_2` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_3` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_4` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_5` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DIVISIONS_LIBRE` double NOT NULL DEFAULT 0,
  `ORDRE_RECETTE` decimal(12,0) NOT NULL DEFAULT 0,
  `POINTS_LIRAISON` varchar(150) NOT NULL DEFAULT '',
  `Q_H_3J2_1` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_H_3J2_2` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_H_3J2_3` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_H_3J2_4` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_H_3J2_5` decimal(12,0) NOT NULL DEFAULT 0,
  `BANNETON_3` varchar(50) NOT NULL DEFAULT '',
  `BANNETON_4` varchar(50) NOT NULL DEFAULT '',
  `BANNETON_5` varchar(50) NOT NULL DEFAULT '',
  `BANNETON_6` varchar(50) NOT NULL DEFAULT '',
  `BANNETON_7` varchar(50) NOT NULL DEFAULT '',
  `N_BANNETON_1` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_2` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_3` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_4` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_5` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_6` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_7` decimal(12,0) NOT NULL DEFAULT 0,
  `N_IN_1` decimal(12,0) NOT NULL DEFAULT 0,
  `N_IN_2` decimal(12,0) NOT NULL DEFAULT 0,
  `N_IN_3` decimal(12,0) NOT NULL DEFAULT 0,
  `N_IN_4` decimal(12,0) NOT NULL DEFAULT 0,
  `N_IN_5` decimal(12,0) NOT NULL DEFAULT 0,
  `N_IN_6` decimal(12,0) NOT NULL DEFAULT 0,
  `N_IN_7` decimal(12,0) NOT NULL DEFAULT 0,
  `DIVISION_6` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_7` varchar(50) NOT NULL DEFAULT '',
  `Q_DIVISION_6` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_DIVISION_7` decimal(12,0) NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_6` decimal(12,1) NOT NULL DEFAULT 0.0,
  `TOTAUX_CUIT_DEC_7` decimal(12,1) NOT NULL DEFAULT 0.0,
  `INDIVIDUEL_CRU_6` decimal(12,1) NOT NULL DEFAULT 0.0,
  `INDIVIDUEL_CRU_7` decimal(12,1) NOT NULL DEFAULT 0.0,
  `INDIVIDUEL_CUIT_6` decimal(12,1) NOT NULL DEFAULT 0.0,
  `INDIVIDUEL_CUIT_7` decimal(12,1) NOT NULL DEFAULT 0.0,
  `TOTAL_CRUS_DEC_6` decimal(12,0) NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_7` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_H_5_6` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_H_5_7` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_H_3_6` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_H_3_7` decimal(12,0) NOT NULL DEFAULT 0,
  `CODE_ARTICLE_6` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_7` varchar(10) NOT NULL DEFAULT '',
  `IN_12` decimal(12,1) NOT NULL DEFAULT 0.0,
  `I12_E1` decimal(12,1) NOT NULL DEFAULT 0.0,
  `I12_E2` decimal(12,1) NOT NULL DEFAULT 0.0,
  `I12_E3` decimal(12,1) NOT NULL DEFAULT 0.0,
  `I12_E4` decimal(12,1) NOT NULL DEFAULT 0.0,
  `I12_E5` decimal(12,1) NOT NULL DEFAULT 0.0,
  `TOTAL_I12` decimal(12,1) NOT NULL DEFAULT 0.0,
  `N_RECETTE` decimal(12,0) NOT NULL DEFAULT 0,
  `FACONNAGE_MAIN` char(1) NOT NULL DEFAULT '',
  `TOTAL_SEL_LOGA` decimal(12,1) NOT NULL DEFAULT 0.0,
  `TOTAL_EAU_LOGA` decimal(12,1) NOT NULL DEFAULT 0.0,
  `TOTAL_FARINE_LOGA` decimal(12,1) NOT NULL DEFAULT 0.0,
  `TOTAL_LEVAIN_LOGA` decimal(12,1) NOT NULL DEFAULT 0.0,
  `TOTAL_BASSINAGE_LOGA` decimal(12,1) NOT NULL DEFAULT 0.0,
  `DIVISION_PETRIE` decimal(12,0) NOT NULL DEFAULT 0,
  `POIDS_MAX_CUVE` decimal(12,0) NOT NULL DEFAULT 0,
  `PATE_EXTRACT1` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT2` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT3` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT4` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT5` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT6` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT7` char(1) NOT NULL DEFAULT '',
  `Q_PATE_EXTRACT1` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_PATE_EXTRACT2` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_PATE_EXTRACT3` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_PATE_EXTRACT4` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_PATE_EXTRACT5` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_PATE_EXTRACT6` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_PATE_EXTRACT7` decimal(12,0) NOT NULL DEFAULT 0,
  `COEF_CHOCO_BRI` decimal(12,1) NOT NULL DEFAULT 0.0,
  `DATE_FIN` date DEFAULT NULL,
  PRIMARY KEY (`ID_PRODUCTION_RECETTE_DET`),
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_FIN_2` (`DATE_FIN_2`) USING BTREE,
  KEY `DATE_FIN_2_CLEAN` (`DATE_FIN_2_CLEAN`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_RECETTE` (`IDENT_RECETTE`) USING BTREE,
  KEY `INDIVIDUEL_CRU_1` (`INDIVIDUEL_CRU_1`) USING BTREE,
  KEY `PID_PRODUCTION_RECETTE_ET` (`PID_PRODUCTION_RECETTE_ET`) USING BTREE,
  KEY `Q_H_5_1` (`Q_H_5_1`) USING BTREE,
  KEY `Q_H_5_2` (`Q_H_5_2`) USING BTREE,
  KEY `Q_H_5_3` (`Q_H_5_3`) USING BTREE,
  KEY `Q_H_5_4` (`Q_H_5_4`) USING BTREE,
  KEY `Q_H_5_5` (`Q_H_5_5`) USING BTREE,
  KEY `Q_H_6_1` (`Q_H_6_1`) USING BTREE,
  KEY `Q_H_6_2` (`Q_H_6_2`) USING BTREE,
  KEY `Q_H_6_3` (`Q_H_6_3`) USING BTREE,
  KEY `Q_H_6_4` (`Q_H_6_4`) USING BTREE,
  KEY `Q_H_6_5` (`Q_H_6_5`) USING BTREE,
  KEY `RECAP` (`RECAP`) USING BTREE,
  KEY `RECAP_J_VISIBLE` (`RECAP_J_VISIBLE`) USING BTREE,
  KEY `RECAP_Q_J1_D1` (`RECAP_Q_J1_D1`) USING BTREE,
  KEY `RECAP_Q_J1_D2` (`RECAP_Q_J1_D2`) USING BTREE,
  KEY `RECAP_Q_J2_D1` (`RECAP_Q_J2_D1`) USING BTREE,
  KEY `RECAP_Q_J2_D2` (`RECAP_Q_J2_D2`) 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_LIEN_CONTEXTE_MAITRE` (`SYS_LIEN_CONTEXTE_MAITRE`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `Q_H_5_6` (`Q_H_5_6`) USING BTREE,
  KEY `Q_H_5_7` (`Q_H_5_7`) USING BTREE,
  KEY `N_RECETTE` (`N_RECETTE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `production_recette_et`
--

CREATE TABLE `production_recette_et` (
  `DATE_DEBUT` date DEFAULT NULL,
  `DATE_FIN` date DEFAULT NULL,
  `DATE_FIN_2` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DATE_LIV` varchar(10) NOT NULL DEFAULT '',
  `DATE_RECAP_J1` date DEFAULT NULL,
  `DATE_S_1` date DEFAULT NULL,
  `ID_PRODUCTION_RECETTE_ET` varchar(32) NOT NULL DEFAULT '',
  `JOUR_DATE_DEBUT` varchar(50) NOT NULL DEFAULT '',
  `JOUR_DATE_FIN` varchar(50) NOT NULL DEFAULT '',
  `LEVAIN_1_ET` double NOT NULL DEFAULT 0,
  `LEVAIN_1_RIZ_ET` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_4` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_RESTANT_POUR_BAG_RIZ` double NOT NULL DEFAULT 0,
  `LEVAIN_LIQUIDE_POUR_J_1` double NOT NULL DEFAULT 0,
  `LEVAIN_LIQUIDE_RESTANT_J_1` double NOT NULL DEFAULT 0,
  `LEVAIN_RESTANT_POUR_J_1` double NOT NULL DEFAULT 0,
  `LEVAIN_RESTANT_POUR_J_1_RIZ` double NOT NULL DEFAULT 0,
  `LEVAIN_RIZ_CALCUL` double NOT NULL DEFAULT 0,
  `LEVAIN_RIZ_EAU` double NOT NULL DEFAULT 0,
  `LEVAIN_RIZ_FARINE` double NOT NULL DEFAULT 0,
  `LEVAIN_RIZ_H_BAG` double NOT NULL DEFAULT 0,
  `LEVAIN_T80_H_BAG` double NOT NULL DEFAULT 0,
  `NOM_PROD` varchar(50) NOT NULL DEFAULT '',
  `N_ANNEE` varchar(10) NOT NULL DEFAULT '',
  `N_SEMAINE` varchar(10) NOT NULL DEFAULT '',
  `RECAP` char(1) NOT NULL DEFAULT '',
  `SAISIE_MANUELLE` 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 '',
  `TOTAL_BASSINAGE_LOGA` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_COMMANDE` double NOT NULL DEFAULT 0,
  `TOTAL_CUIT_COMMANDE` double NOT NULL DEFAULT 0,
  `TOTAL_EAU_LOGA` double NOT NULL DEFAULT 0,
  `TOTAL_FARINE_LOGA` double NOT NULL DEFAULT 0,
  `TOTAL_IN_1` double NOT NULL DEFAULT 0,
  `TOTAL_LEVAIN_1` double NOT NULL DEFAULT 0,
  `TOTAL_LEVAIN_CHEF` double NOT NULL DEFAULT 0,
  `TOTAL_LEVAIN_LOGA` double NOT NULL DEFAULT 0,
  `TOTAL_POUR_FACONNAGE_MAIN` double NOT NULL DEFAULT 0,
  `TOTAL_SEL_LOGA` double NOT NULL DEFAULT 0,
  `POINTS_LIVRAISON` varchar(150) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_PRODUCTION_RECETTE_ET`),
  KEY `DATE_FIN` (`DATE_FIN`) USING BTREE,
  KEY `DATE_FIN_2` (`DATE_FIN_2`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `DATE_LIV` (`DATE_LIV`) USING BTREE,
  KEY `NOM_PROD` (`NOM_PROD`) USING BTREE,
  KEY `RECAP` (`RECAP`) 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 `production_recette_type`
--

CREATE TABLE `production_recette_type` (
  `CODE_ARTICLE` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_2` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_3` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_4` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_5` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_L_01` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_L_02` varchar(10) NOT NULL DEFAULT '',
  `COEF_CALCUL` double NOT NULL DEFAULT 0,
  `COEF_EAU` double NOT NULL DEFAULT 0,
  `COEF_FARINE` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DEJA_CALCULE` char(1) NOT NULL DEFAULT '',
  `DIVISION_1` varchar(20) NOT NULL DEFAULT '',
  `DIVISION_2` varchar(20) NOT NULL DEFAULT '',
  `DIVISION_3` varchar(20) NOT NULL DEFAULT '',
  `DIVISION_4` varchar(20) NOT NULL DEFAULT '',
  `DIVISION_5` varchar(20) NOT NULL DEFAULT '',
  `ET_1` varchar(50) NOT NULL DEFAULT '',
  `ET_2` varchar(50) NOT NULL DEFAULT '',
  `ET_3` varchar(50) NOT NULL DEFAULT '',
  `ET_4` varchar(50) NOT NULL DEFAULT '',
  `ET_5` varchar(50) NOT NULL DEFAULT '',
  `I10_E1` double NOT NULL DEFAULT 0,
  `I10_E2` double NOT NULL DEFAULT 0,
  `I10_E3` double NOT NULL DEFAULT 0,
  `I10_E4` double NOT NULL DEFAULT 0,
  `I10_E5` double NOT NULL DEFAULT 0,
  `I10_E6` double NOT NULL DEFAULT 0,
  `I11_E1` double NOT NULL DEFAULT 0,
  `I11_E2` double NOT NULL DEFAULT 0,
  `I11_E3` double NOT NULL DEFAULT 0,
  `I11_E4` double NOT NULL DEFAULT 0,
  `I11_E5` double NOT NULL DEFAULT 0,
  `I11_E6` double NOT NULL DEFAULT 0,
  `I1_E1` double NOT NULL DEFAULT 0,
  `I1_E2` double NOT NULL DEFAULT 0,
  `I1_E3` double NOT NULL DEFAULT 0,
  `I1_E4` double NOT NULL DEFAULT 0,
  `I1_E5` double NOT NULL DEFAULT 0,
  `I1_E6` double NOT NULL DEFAULT 0,
  `I2_E1` double NOT NULL DEFAULT 0,
  `I2_E2` double NOT NULL DEFAULT 0,
  `I2_E3` double NOT NULL DEFAULT 0,
  `I2_E4` double NOT NULL DEFAULT 0,
  `I2_E5` double NOT NULL DEFAULT 0,
  `I2_E6` double NOT NULL DEFAULT 0,
  `I3_E1` double NOT NULL DEFAULT 0,
  `I3_E2` double NOT NULL DEFAULT 0,
  `I3_E3` double NOT NULL DEFAULT 0,
  `I3_E4` double NOT NULL DEFAULT 0,
  `I3_E5` double NOT NULL DEFAULT 0,
  `I3_E6` double NOT NULL DEFAULT 0,
  `I4_E1` double NOT NULL DEFAULT 0,
  `I4_E2` double NOT NULL DEFAULT 0,
  `I4_E3` double NOT NULL DEFAULT 0,
  `I4_E4` double NOT NULL DEFAULT 0,
  `I4_E5` double NOT NULL DEFAULT 0,
  `I4_E6` double NOT NULL DEFAULT 0,
  `I5_E1` double NOT NULL DEFAULT 0,
  `I5_E2` double NOT NULL DEFAULT 0,
  `I5_E3` double NOT NULL DEFAULT 0,
  `I5_E4` double NOT NULL DEFAULT 0,
  `I5_E5` double NOT NULL DEFAULT 0,
  `I5_E6` double NOT NULL DEFAULT 0,
  `I6_E1` double NOT NULL DEFAULT 0,
  `I6_E2` double NOT NULL DEFAULT 0,
  `I6_E3` double NOT NULL DEFAULT 0,
  `I6_E4` double NOT NULL DEFAULT 0,
  `I6_E5` double NOT NULL DEFAULT 0,
  `I6_E6` double NOT NULL DEFAULT 0,
  `I7_E1` double NOT NULL DEFAULT 0,
  `I7_E2` double NOT NULL DEFAULT 0,
  `I7_E3` double NOT NULL DEFAULT 0,
  `I7_E4` double NOT NULL DEFAULT 0,
  `I7_E5` double NOT NULL DEFAULT 0,
  `I7_E6` double NOT NULL DEFAULT 0,
  `I8_E1` double NOT NULL DEFAULT 0,
  `I8_E2` double NOT NULL DEFAULT 0,
  `I8_E3` double NOT NULL DEFAULT 0,
  `I8_E4` double NOT NULL DEFAULT 0,
  `I8_E5` double NOT NULL DEFAULT 0,
  `I8_E6` double NOT NULL DEFAULT 0,
  `I9_E1` double NOT NULL DEFAULT 0,
  `I9_E2` double NOT NULL DEFAULT 0,
  `I9_E3` double NOT NULL DEFAULT 0,
  `I9_E4` double NOT NULL DEFAULT 0,
  `I9_E5` double NOT NULL DEFAULT 0,
  `I9_E6` double NOT NULL DEFAULT 0,
  `IDENT_AIDE_CONFIG_DEC` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AIDE_CONFIG_RECETTE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_RECETTE_DET` varchar(32) NOT NULL DEFAULT '',
  `ID_PRODUCTION_RECETTE_TYPE` varchar(32) NOT NULL DEFAULT '',
  `INDIVIDUEL_CRU_1` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CRU_2` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CRU_3` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CRU_4` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CRU_5` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_1` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_2` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_3` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_4` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_5` double NOT NULL DEFAULT 0,
  `IN_1` varchar(50) NOT NULL DEFAULT '',
  `IN_10` varchar(50) NOT NULL DEFAULT '',
  `IN_11` varchar(50) NOT NULL DEFAULT '',
  `IN_2` varchar(50) NOT NULL DEFAULT '',
  `IN_3` varchar(50) NOT NULL DEFAULT '',
  `IN_4` varchar(50) NOT NULL DEFAULT '',
  `IN_5` varchar(50) NOT NULL DEFAULT '',
  `IN_6` varchar(50) NOT NULL DEFAULT '',
  `IN_7` varchar(50) NOT NULL DEFAULT '',
  `IN_8` varchar(50) NOT NULL DEFAULT '',
  `IN_9` varchar(50) NOT NULL DEFAULT '',
  `NOM_LEVAIN` varchar(50) NOT NULL DEFAULT '',
  `NOM_RECETTE` varchar(50) NOT NULL DEFAULT '',
  `N_BAC` double NOT NULL DEFAULT 0,
  `PID_PRODUCTION_RECETTE_TYPE_ET` varchar(32) NOT NULL DEFAULT '',
  `POID_CRU_DEC_1` double NOT NULL DEFAULT 0,
  `POID_CRU_DEC_2` double NOT NULL DEFAULT 0,
  `Q_DIVISION_1` double NOT NULL DEFAULT 0,
  `Q_DIVISION_2` double NOT NULL DEFAULT 0,
  `Q_DIVISION_3` double NOT NULL DEFAULT 0,
  `Q_DIVISION_4` double NOT NULL DEFAULT 0,
  `Q_DIVISION_5` double NOT NULL DEFAULT 0,
  `Q_H_1_2` double NOT NULL DEFAULT 0,
  `Q_H_1_3` double NOT NULL DEFAULT 0,
  `Q_H_1_4` double NOT NULL DEFAULT 0,
  `Q_H_1_5` double NOT NULL DEFAULT 0,
  `Q_H_2_1` double NOT NULL DEFAULT 0,
  `Q_H_2_2` double NOT NULL DEFAULT 0,
  `Q_H_2_3` double NOT NULL DEFAULT 0,
  `Q_H_2_4` double NOT NULL DEFAULT 0,
  `Q_H_2_5` double NOT NULL DEFAULT 0,
  `Q_H_3_1` double NOT NULL DEFAULT 0,
  `Q_H_3_2` double NOT NULL DEFAULT 0,
  `Q_H_3_3` double NOT NULL DEFAULT 0,
  `Q_H_3_4` double NOT NULL DEFAULT 0,
  `Q_H_3_5` double NOT NULL DEFAULT 0,
  `Q_H_4_1` double NOT NULL DEFAULT 0,
  `Q_H_4_2` double NOT NULL DEFAULT 0,
  `Q_H_4_3` double NOT NULL DEFAULT 0,
  `Q_H_4_4` double NOT NULL DEFAULT 0,
  `Q_H_4_5` double NOT NULL DEFAULT 0,
  `Q_H_5_1` double NOT NULL DEFAULT 0,
  `Q_H_5_2` double NOT NULL DEFAULT 0,
  `Q_H_5_3` double NOT NULL DEFAULT 0,
  `Q_H_5_4` double NOT NULL DEFAULT 0,
  `Q_H_5_5` double NOT NULL DEFAULT 0,
  `Q_TOTAL` 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_ETAT_PLIE` varchar(5) NOT NULL DEFAULT '',
  `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_NIVEAU_NOMENCLATURE` double NOT NULL DEFAULT 0,
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TAILLE_BAC` double NOT NULL DEFAULT 0,
  `TOTAL_COMMANDE_CRUS` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_1` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_2` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_3` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_4` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_5` double NOT NULL DEFAULT 0,
  `TOTAL_CUIT_RECETTE` double NOT NULL DEFAULT 0,
  `TOTAL_I1` double NOT NULL DEFAULT 0,
  `TOTAL_I10` double NOT NULL DEFAULT 0,
  `TOTAL_I11` double NOT NULL DEFAULT 0,
  `TOTAL_I2` double NOT NULL DEFAULT 0,
  `TOTAL_I3` double NOT NULL DEFAULT 0,
  `TOTAL_I4` double NOT NULL DEFAULT 0,
  `TOTAL_I5` double NOT NULL DEFAULT 0,
  `TOTAL_I6` double NOT NULL DEFAULT 0,
  `TOTAL_I7` double NOT NULL DEFAULT 0,
  `TOTAL_I8` double NOT NULL DEFAULT 0,
  `TOTAL_I9` double NOT NULL DEFAULT 0,
  `TOTAL_RECETTE_POUR_COEF` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_1` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_2` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_3` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_4` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_5` double NOT NULL DEFAULT 0,
  `ORDRE_RECETTE` decimal(12,0) NOT NULL DEFAULT 0,
  `COEF_SON` decimal(12,2) NOT NULL DEFAULT 0.00,
  PRIMARY KEY (`ID_PRODUCTION_RECETTE_TYPE`),
  KEY `CODE_ARTICLE` (`CODE_ARTICLE`) USING BTREE,
  KEY `CODE_ARTICLE_2` (`CODE_ARTICLE_2`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_AIDE_CONFIG_DEC` (`IDENT_AIDE_CONFIG_DEC`) USING BTREE,
  KEY `INDIVIDUEL_CRU_1` (`INDIVIDUEL_CRU_1`) USING BTREE,
  KEY `PID_PRODUCTION_RECETTE_TYPE_ET` (`PID_PRODUCTION_RECETTE_TYPE_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_LIEN_CONTEXTE_MAITRE` (`SYS_LIEN_CONTEXTE_MAITRE`) 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 `production_recette_type_det`
--

CREATE TABLE `production_recette_type_det` (
  `COEF_CALCUL` double NOT NULL DEFAULT 0,
  `COEF_EAU` double NOT NULL DEFAULT 0,
  `COEF_FARINE` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `DEJA_CALCULE` char(1) NOT NULL DEFAULT '',
  `DIVISION_1` varchar(30) NOT NULL DEFAULT '',
  `DIVISION_2` varchar(30) NOT NULL DEFAULT '',
  `DIVISION_3` varchar(30) NOT NULL DEFAULT '',
  `DIVISION_4` varchar(30) NOT NULL DEFAULT '',
  `DIVISION_5` varchar(30) NOT NULL DEFAULT '',
  `ET_1` varchar(50) NOT NULL DEFAULT '',
  `ET_2` varchar(50) NOT NULL DEFAULT '',
  `ET_3` varchar(50) NOT NULL DEFAULT '',
  `ET_4` varchar(50) NOT NULL DEFAULT '',
  `ET_5` varchar(50) NOT NULL DEFAULT '',
  `I10_E1` double NOT NULL DEFAULT 0,
  `I10_E2` double NOT NULL DEFAULT 0,
  `I10_E3` double NOT NULL DEFAULT 0,
  `I10_E4` double NOT NULL DEFAULT 0,
  `I10_E5` double NOT NULL DEFAULT 0,
  `I10_E6` double NOT NULL DEFAULT 0,
  `I11_E1` double NOT NULL DEFAULT 0,
  `I11_E2` double NOT NULL DEFAULT 0,
  `I11_E3` double NOT NULL DEFAULT 0,
  `I11_E4` double NOT NULL DEFAULT 0,
  `I11_E5` double NOT NULL DEFAULT 0,
  `I11_E6` double NOT NULL DEFAULT 0,
  `I1_E1` double NOT NULL DEFAULT 0,
  `I1_E2` double NOT NULL DEFAULT 0,
  `I1_E3` double NOT NULL DEFAULT 0,
  `I1_E4` double NOT NULL DEFAULT 0,
  `I1_E5` double NOT NULL DEFAULT 0,
  `I1_E6` double NOT NULL DEFAULT 0,
  `I2_E1` double NOT NULL DEFAULT 0,
  `I2_E2` double NOT NULL DEFAULT 0,
  `I2_E3` double NOT NULL DEFAULT 0,
  `I2_E4` double NOT NULL DEFAULT 0,
  `I2_E5` double NOT NULL DEFAULT 0,
  `I2_E6` double NOT NULL DEFAULT 0,
  `I3_E1` double NOT NULL DEFAULT 0,
  `I3_E2` double NOT NULL DEFAULT 0,
  `I3_E3` double NOT NULL DEFAULT 0,
  `I3_E4` double NOT NULL DEFAULT 0,
  `I3_E5` double NOT NULL DEFAULT 0,
  `I3_E6` double NOT NULL DEFAULT 0,
  `I4_E1` double NOT NULL DEFAULT 0,
  `I4_E2` double NOT NULL DEFAULT 0,
  `I4_E3` double NOT NULL DEFAULT 0,
  `I4_E4` double NOT NULL DEFAULT 0,
  `I4_E5` double NOT NULL DEFAULT 0,
  `I4_E6` double NOT NULL DEFAULT 0,
  `I5_E1` double NOT NULL DEFAULT 0,
  `I5_E2` double NOT NULL DEFAULT 0,
  `I5_E3` double NOT NULL DEFAULT 0,
  `I5_E4` double NOT NULL DEFAULT 0,
  `I5_E5` double NOT NULL DEFAULT 0,
  `I5_E6` double NOT NULL DEFAULT 0,
  `I6_E1` double NOT NULL DEFAULT 0,
  `I6_E2` double NOT NULL DEFAULT 0,
  `I6_E3` double NOT NULL DEFAULT 0,
  `I6_E4` double NOT NULL DEFAULT 0,
  `I6_E5` double NOT NULL DEFAULT 0,
  `I6_E6` double NOT NULL DEFAULT 0,
  `I7_E1` double NOT NULL DEFAULT 0,
  `I7_E2` double NOT NULL DEFAULT 0,
  `I7_E3` double NOT NULL DEFAULT 0,
  `I7_E4` double NOT NULL DEFAULT 0,
  `I7_E5` double NOT NULL DEFAULT 0,
  `I7_E6` double NOT NULL DEFAULT 0,
  `I8_E1` double NOT NULL DEFAULT 0,
  `I8_E2` double NOT NULL DEFAULT 0,
  `I8_E3` double NOT NULL DEFAULT 0,
  `I8_E4` double NOT NULL DEFAULT 0,
  `I8_E5` double NOT NULL DEFAULT 0,
  `I8_E6` double NOT NULL DEFAULT 0,
  `I9_E1` double NOT NULL DEFAULT 0,
  `I9_E2` double NOT NULL DEFAULT 0,
  `I9_E3` double NOT NULL DEFAULT 0,
  `I9_E4` double NOT NULL DEFAULT 0,
  `I9_E5` double NOT NULL DEFAULT 0,
  `I9_E6` double NOT NULL DEFAULT 0,
  `IDENT_AIDE_CONFIG_DEC` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AIDE_CONFIG_RECETTE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_RECETTE` varchar(32) NOT NULL DEFAULT '',
  `ID_PRODUCTION_RECETTE_TYPE_DET` varchar(32) NOT NULL DEFAULT '',
  `INDIVIDUEL_CRU_1` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CRU_2` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CRU_3` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CRU_4` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CRU_5` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_1` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_2` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_3` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_4` double NOT NULL DEFAULT 0,
  `INDIVIDUEL_CUIT_5` double NOT NULL DEFAULT 0,
  `IN_1` varchar(50) NOT NULL DEFAULT '',
  `IN_10` varchar(50) NOT NULL DEFAULT '',
  `IN_11` varchar(50) NOT NULL DEFAULT '',
  `IN_2` varchar(50) NOT NULL DEFAULT '',
  `IN_3` varchar(50) NOT NULL DEFAULT '',
  `IN_4` varchar(50) NOT NULL DEFAULT '',
  `IN_5` varchar(50) NOT NULL DEFAULT '',
  `IN_6` varchar(50) NOT NULL DEFAULT '',
  `IN_7` varchar(50) NOT NULL DEFAULT '',
  `IN_8` varchar(50) NOT NULL DEFAULT '',
  `IN_9` varchar(50) NOT NULL DEFAULT '',
  `NOM_LEVAIN` varchar(50) NOT NULL DEFAULT '',
  `NOM_RECETTE` varchar(50) NOT NULL DEFAULT '',
  `N_BAC` double NOT NULL DEFAULT 0,
  `PID_PRODUCTION_RECETTE_TYPE_ET` varchar(32) NOT NULL DEFAULT '',
  `POID_CRU_DEC_1` double NOT NULL DEFAULT 0,
  `POID_CRU_DEC_2` double NOT NULL DEFAULT 0,
  `Q_DIVISION_1` double NOT NULL DEFAULT 0,
  `Q_DIVISION_2` double NOT NULL DEFAULT 0,
  `Q_DIVISION_3` double NOT NULL DEFAULT 0,
  `Q_DIVISION_4` double NOT NULL DEFAULT 0,
  `Q_DIVISION_5` double NOT NULL DEFAULT 0,
  `Q_TOTAL` 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_ETAT_PLIE` varchar(5) NOT NULL DEFAULT '',
  `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_NIVEAU_NOMENCLATURE` double NOT NULL DEFAULT 0,
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TAILLE_BAC` double NOT NULL DEFAULT 0,
  `TOTAL_COMMANDE_CRUS` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_1` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_2` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_3` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_4` double NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_5` double NOT NULL DEFAULT 0,
  `TOTAL_CUIT_RECETTE` double NOT NULL DEFAULT 0,
  `TOTAL_I1` double NOT NULL DEFAULT 0,
  `TOTAL_I10` double NOT NULL DEFAULT 0,
  `TOTAL_I11` double NOT NULL DEFAULT 0,
  `TOTAL_I2` double NOT NULL DEFAULT 0,
  `TOTAL_I3` double NOT NULL DEFAULT 0,
  `TOTAL_I4` double NOT NULL DEFAULT 0,
  `TOTAL_I5` double NOT NULL DEFAULT 0,
  `TOTAL_I6` double NOT NULL DEFAULT 0,
  `TOTAL_I7` double NOT NULL DEFAULT 0,
  `TOTAL_I8` double NOT NULL DEFAULT 0,
  `TOTAL_I9` double NOT NULL DEFAULT 0,
  `TOTAL_RECETTE_POUR_COEF` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_1` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_2` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_3` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_4` double NOT NULL DEFAULT 0,
  `TOTAUX_CUIT_DEC_5` double NOT NULL DEFAULT 0,
  `ORDRE_RECETTE` decimal(12,0) NOT NULL DEFAULT 0,
  `COEF_SON` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DIVISION_6` varchar(30) NOT NULL DEFAULT '',
  `DIVISION_7` varchar(30) NOT NULL DEFAULT '',
  `ET_6` varchar(50) NOT NULL DEFAULT '',
  `ET_7` varchar(50) NOT NULL DEFAULT '',
  `I12_E1` decimal(12,1) NOT NULL DEFAULT 0.0,
  `I12_E2` decimal(12,1) NOT NULL DEFAULT 0.0,
  `I12_E3` decimal(12,1) NOT NULL DEFAULT 0.0,
  `I12_E4` decimal(12,1) NOT NULL DEFAULT 0.0,
  `I12_E5` decimal(12,1) NOT NULL DEFAULT 0.0,
  `I12_E6` decimal(12,1) NOT NULL DEFAULT 0.0,
  `IN_12` varchar(50) NOT NULL DEFAULT '',
  `INDIVIDUEL_CRU_6` decimal(12,1) NOT NULL DEFAULT 0.0,
  `INDIVIDUEL_CRU_7` decimal(12,1) NOT NULL DEFAULT 0.0,
  `INDIVIDUEL_CUIT_6` decimal(12,1) NOT NULL DEFAULT 0.0,
  `INDIVIDUEL_CUIT_7` decimal(12,1) NOT NULL DEFAULT 0.0,
  `Q_DIVISION_6` decimal(12,0) NOT NULL DEFAULT 0,
  `Q_DIVISION_7` decimal(12,0) NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_6` decimal(12,0) NOT NULL DEFAULT 0,
  `TOTAL_CRUS_DEC_7` decimal(12,0) NOT NULL DEFAULT 0,
  `TOTAL_I12` decimal(12,1) NOT NULL DEFAULT 0.0,
  `TOTAUX_CUIT_DEC_6` decimal(12,1) NOT NULL DEFAULT 0.0,
  `TOTAUX_CUIT_DEC_7` decimal(12,1) NOT NULL DEFAULT 0.0,
  `BANNETON_1` varchar(50) NOT NULL DEFAULT '',
  `BANNETON_2` varchar(50) NOT NULL DEFAULT '',
  `BANNETON_3` varchar(50) NOT NULL DEFAULT '',
  `BANNETON_4` varchar(50) NOT NULL DEFAULT '',
  `BANNETON_5` varchar(50) NOT NULL DEFAULT '',
  `BANNETON_6` varchar(50) NOT NULL DEFAULT '',
  `BANNETON_7` varchar(50) NOT NULL DEFAULT '',
  `N_RECETTE` decimal(12,0) NOT NULL DEFAULT 0,
  `CODE_ARTICLE_1` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_2` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_3` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_4` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_5` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_6` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_7` varchar(10) NOT NULL DEFAULT '',
  `RECAP` decimal(12,0) NOT NULL DEFAULT 0,
  `FACONNAGE_MAIN` char(1) NOT NULL DEFAULT '',
  `DIVISION_PETRIE` decimal(12,0) NOT NULL DEFAULT 0,
  `POIDS_MAX_CUVE` decimal(12,0) NOT NULL DEFAULT 0,
  `PATE_EXTRACT1` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT2` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT3` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT4` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT5` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT6` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT7` char(1) NOT NULL DEFAULT '',
  `N_BANNETON_1` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_2` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_3` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_4` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_5` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_6` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_7` decimal(12,0) NOT NULL DEFAULT 0,
  `COEF_CHOCO_BRI` decimal(12,1) NOT NULL DEFAULT 0.0,
  `DATE_FIN` date DEFAULT NULL,
  `DATE_FIN_2` date DEFAULT NULL,
  PRIMARY KEY (`ID_PRODUCTION_RECETTE_TYPE_DET`),
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `IDENT_AIDE_CONFIG_DEC` (`IDENT_AIDE_CONFIG_DEC`) USING BTREE,
  KEY `INDIVIDUEL_CRU_1` (`INDIVIDUEL_CRU_1`) USING BTREE,
  KEY `PID_PRODUCTION_RECETTE_TYPE_ET` (`PID_PRODUCTION_RECETTE_TYPE_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_LIEN_CONTEXTE_MAITRE` (`SYS_LIEN_CONTEXTE_MAITRE`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `N_RECETTE` (`N_RECETTE`) USING BTREE,
  KEY `CODE_ARTICLE_1` (`CODE_ARTICLE_1`) USING BTREE,
  KEY `CODE_ARTICLE_2` (`CODE_ARTICLE_2`) USING BTREE,
  KEY `CODE_ARTICLE_3` (`CODE_ARTICLE_3`) USING BTREE,
  KEY `CODE_ARTICLE_4` (`CODE_ARTICLE_4`) USING BTREE,
  KEY `CODE_ARTICLE_5` (`CODE_ARTICLE_5`) USING BTREE,
  KEY `CODE_ARTICLE_6` (`CODE_ARTICLE_6`) USING BTREE,
  KEY `CODE_ARTICLE_7` (`CODE_ARTICLE_7`) USING BTREE,
  KEY `RECAP` (`RECAP`) USING BTREE,
  KEY `N_BANNETON_1` (`N_BANNETON_1`) USING BTREE,
  KEY `N_BANNETON_2` (`N_BANNETON_2`) USING BTREE,
  KEY `N_BANNETON_3` (`N_BANNETON_3`) USING BTREE,
  KEY `N_BANNETON_4` (`N_BANNETON_4`) USING BTREE,
  KEY `N_BANNETON_5` (`N_BANNETON_5`) USING BTREE,
  KEY `N_BANNETON_6` (`N_BANNETON_6`) USING BTREE,
  KEY `N_BANNETON_7` (`N_BANNETON_7`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `production_recette_type_et`
--

CREATE TABLE `production_recette_type_et` (
  `DATE_DEBUT` date DEFAULT NULL,
  `DATE_FIN` date DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `EAU_ET_FARINE` double NOT NULL DEFAULT 0,
  `IDENT_PRODUCTION_RECETTE_TYPE` varchar(32) NOT NULL DEFAULT '',
  `ID_PRODUCTION_RECETTE_TYPE_ET` varchar(32) NOT NULL DEFAULT '',
  `JOUR_DATE_DEBUT` varchar(50) NOT NULL DEFAULT '',
  `JOUR_DATE_FIN` varchar(50) NOT NULL DEFAULT '',
  `LEVAIN_1_ET` double NOT NULL DEFAULT 0,
  `LEVAIN_1_RIZ_ET` double NOT NULL DEFAULT 0,
  `LEVAIN_CHEF_RESTANT_POUR_BAG` varchar(10) NOT NULL DEFAULT '',
  `LEVAIN_CHEF_RESTANT_POUR_BAG_RIZ` double NOT NULL DEFAULT 0,
  `LEVAIN_RESTANT_POUR_J_1` double NOT NULL DEFAULT 0,
  `LEVAIN_RESTANT_POUR_J_1_RIZ` varchar(10) NOT NULL DEFAULT '',
  `LEVAIN_RIZ_CALCUL` double NOT NULL DEFAULT 0,
  `LEVAIN_RIZ_H_BAG` double NOT NULL DEFAULT 0,
  `LEVAIN_T80_H_BAG` double NOT NULL DEFAULT 0,
  `N_ANNEE` varchar(10) NOT NULL DEFAULT '',
  `N_SEMAINE` varchar(10) 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 '',
  `TOTAL_CRUS_COMMANDE` double NOT NULL DEFAULT 0,
  `TOTAL_CUIT_COMMANDE` double NOT NULL DEFAULT 0,
  `TOTAL_EAU_LOGA` double NOT NULL DEFAULT 0,
  `TOTAL_FARINE_LOGA` double NOT NULL DEFAULT 0,
  `TOTAL_IN_1` double NOT NULL DEFAULT 0,
  `TOTAL_LEVAIN_LOGA` double NOT NULL DEFAULT 0,
  `TOTAL_L_1` double NOT NULL DEFAULT 0,
  `TOTAL_L_2` double NOT NULL DEFAULT 0,
  `TOTAL_L_3` double NOT NULL DEFAULT 0,
  `TOTAL_L_4` double NOT NULL DEFAULT 0,
  `TOTAL_L_5` double NOT NULL DEFAULT 0,
  `TOTAL_L_6` double NOT NULL DEFAULT 0,
  `TOTAL_L_7` double NOT NULL DEFAULT 0,
  `TOTAL_SEL_LOGA` double NOT NULL DEFAULT 0,
  `NOM_PRODUCTION_MODELE` varchar(50) NOT NULL DEFAULT '',
  `N_PRODUCTION_MODELE` decimal(12,0) NOT NULL DEFAULT 0,
  `DATE_FIN_2` date DEFAULT NULL,
  `RECAP` decimal(12,0) NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_PRODUCTION_RECETTE_TYPE_ET`),
  KEY `DATE_HEURE` (`DATE_HEURE`) 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_PRODUCTION_MODELE` (`NOM_PRODUCTION_MODELE`) USING BTREE,
  KEY `N_PRODUCTION_MODELE` (`N_PRODUCTION_MODELE`) USING BTREE,
  KEY `RECAP` (`RECAP`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `rapprochement_bancaire_det`
--

CREATE TABLE `rapprochement_bancaire_det` (
  `ID_RAPPROCHEMENT_BANCAIRE_DET` 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',
  `MRB_DATE` date DEFAULT NULL,
  `MRB_LIBELLE` varchar(100) NOT NULL DEFAULT '',
  `MRB_DEBIT` double NOT NULL DEFAULT 0,
  `MRB_CREDIT` double NOT NULL DEFAULT 0,
  `MRB_MEMO` varchar(100) NOT NULL DEFAULT '',
  `MC_DATE` date DEFAULT NULL,
  `MC_LIBELLE` varchar(100) NOT NULL DEFAULT '',
  `MC_DEBIT` double NOT NULL DEFAULT 0,
  `MC_CREDIT` double NOT NULL DEFAULT 0,
  `MC_MEMO` varchar(100) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `NOM_DOSSIER` varchar(100) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL` varchar(10) NOT NULL DEFAULT '',
  `N_TRESO` double NOT NULL DEFAULT 0,
  `N_EXERCICE` double NOT NULL DEFAULT 0,
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SOLDE_RELEVE_BANCAIRE_DEBUT` double NOT NULL DEFAULT 0,
  `SOLDE_THEORIQUE_EN_COMPTABLITIE` double NOT NULL DEFAULT 0,
  `SOLDE_REEL_EN_COMPTABILITE` double NOT NULL DEFAULT 0,
  `PID_RAPPROCHEMENT_BANCAIRE_ET` varchar(32) NOT NULL DEFAULT '',
  `TOTAL_MRB_DEBIT` double NOT NULL DEFAULT 0,
  `TOTAL_MRB_CREDIT` double NOT NULL DEFAULT 0,
  `SYS_LIEN_CONTEXTE_MAITRE` varchar(32) NOT NULL DEFAULT '',
  `MC_N_CPTE_TIERS` varchar(50) NOT NULL DEFAULT '',
  `MRB_N_CPTE_TIERS` varchar(50) NOT NULL DEFAULT '',
  `MC_IDENTIFICATION_TIERS` varchar(40) NOT NULL DEFAULT '',
  `MRB_IDENTIFICATION_TIERS` varchar(40) NOT NULL DEFAULT '',
  `MC_PIECE` varchar(20) NOT NULL DEFAULT '',
  `MRB_PIECE` varchar(20) NOT NULL DEFAULT '',
  `MC_N_ECRITURE` varchar(12) NOT NULL DEFAULT '',
  `MC_IDENTIFICATION_ECRITURE` varchar(32) NOT NULL DEFAULT '',
  `P` varchar(32) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_RAPPROCHEMENT_BANCAIRE_DET`),
  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_CPTE_GENERAL` (`N_CPTE_GENERAL`) USING BTREE,
  KEY `N_TRESO` (`N_TRESO`) USING BTREE,
  KEY `N_EXERCICE` (`N_EXERCICE`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `PID_RAPPROCHEMENT_BANCAIRE_ET` (`PID_RAPPROCHEMENT_BANCAIRE_ET`) USING BTREE,
  KEY `SYS_LIEN_CONTEXTE_MAITRE` (`SYS_LIEN_CONTEXTE_MAITRE`) USING BTREE,
  KEY `MC_N_CPTE_TIERS` (`MC_N_CPTE_TIERS`) USING BTREE,
  KEY `MRB_N_CPTE_TIERS` (`MRB_N_CPTE_TIERS`) USING BTREE,
  KEY `MC_IDENTIFICATION_TIERS` (`MC_IDENTIFICATION_TIERS`) USING BTREE,
  KEY `MRB_IDENTIFICATION_TIERS` (`MRB_IDENTIFICATION_TIERS`) USING BTREE,
  KEY `MC_N_ECRITURE` (`MC_N_ECRITURE`) USING BTREE,
  KEY `MC_IDENTIFICATION_ECRITURE` (`MC_IDENTIFICATION_ECRITURE`) USING BTREE,
  KEY `P` (`P`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `rapprochement_bancaire_et`
--

CREATE TABLE `rapprochement_bancaire_et` (
  `ID_RAPPROCHEMENT_BANCAIRE_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',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `NOM_DOSSIER` varchar(100) NOT NULL DEFAULT '',
  `N_TRESO` double NOT NULL DEFAULT 0,
  `NOM_TRESO` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL` varchar(10) NOT NULL DEFAULT '',
  `DATE_RAPPRO` date DEFAULT NULL,
  `N_EXERCICE` double NOT NULL DEFAULT 0,
  `SOLDE_RELEVE_BANCAIRE` double NOT NULL DEFAULT 0,
  `SOLDE_THEORIQUE_COMPTA` double NOT NULL DEFAULT 0,
  `SOLDE_REEL_COMPTA` double NOT NULL DEFAULT 0,
  `ECART` double NOT NULL DEFAULT 0,
  `TOTAL_MRB_DEBIT` double NOT NULL DEFAULT 0,
  `TOTAL_MRB_CREDIT` double NOT NULL DEFAULT 0,
  `TOTAL_MC_DEBIT` double NOT NULL DEFAULT 0,
  `TOTAL_MC_CREDIT` double NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_RAPPROCHEMENT_BANCAIRE_ET`),
  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_TRESO` (`N_TRESO`) USING BTREE,
  KEY `NOM_TRESO` (`NOM_TRESO`) USING BTREE,
  KEY `N_CPTE_GENERAL` (`N_CPTE_GENERAL`) USING BTREE,
  KEY `DATE_RAPPRO` (`DATE_RAPPRO`) USING BTREE,
  KEY `N_EXERCICE` (`N_EXERCICE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `recette`
--

CREATE TABLE `recette` (
  `BANNETON_1` varchar(35) NOT NULL DEFAULT '',
  `BANNETON_2` varchar(35) NOT NULL DEFAULT '',
  `BANNETON_3` varchar(35) NOT NULL DEFAULT '',
  `BANNETON_4` varchar(35) NOT NULL DEFAULT '',
  `BANNETON_5` varchar(35) NOT NULL DEFAULT '',
  `CASE_VIDE` char(1) NOT NULL DEFAULT '',
  `CODE_ARTICLE_1` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_2` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_3` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_4` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_5` varchar(10) NOT NULL DEFAULT '',
  `COEF_EAU` double NOT NULL DEFAULT 0,
  `COEF_FARINE` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN` double NOT NULL DEFAULT 0,
  `DIVISION_1` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_2` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_3` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_4` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_5` varchar(50) NOT NULL DEFAULT '',
  `DIV_P_CRU_1` double NOT NULL DEFAULT 0,
  `DIV_P_CRU_2` double NOT NULL DEFAULT 0,
  `DIV_P_CRU_3` double NOT NULL DEFAULT 0,
  `DIV_P_CRU_4` double NOT NULL DEFAULT 0,
  `DIV_P_CRU_5` double NOT NULL DEFAULT 0,
  `DIV_P_CUIT_1` double NOT NULL DEFAULT 0,
  `DIV_P_CUIT_2` double NOT NULL DEFAULT 0,
  `DIV_P_CUIT_3` double NOT NULL DEFAULT 0,
  `DIV_P_CUIT_4` double NOT NULL DEFAULT 0,
  `DIV_P_CUIT_5` double NOT NULL DEFAULT 0,
  `I10_E1` double NOT NULL DEFAULT 0,
  `I10_E2` double NOT NULL DEFAULT 0,
  `I10_E3` double NOT NULL DEFAULT 0,
  `I10_E4` double NOT NULL DEFAULT 0,
  `I10_E5` double NOT NULL DEFAULT 0,
  `I10_E6` double NOT NULL DEFAULT 0,
  `I11_E1` double NOT NULL DEFAULT 0,
  `I11_E2` double NOT NULL DEFAULT 0,
  `I11_E3` double NOT NULL DEFAULT 0,
  `I11_E4` double NOT NULL DEFAULT 0,
  `I11_E5` double NOT NULL DEFAULT 0,
  `I11_E6` double NOT NULL DEFAULT 0,
  `I1_E1` double NOT NULL DEFAULT 0,
  `I1_E2` double NOT NULL DEFAULT 0,
  `I1_E3` double NOT NULL DEFAULT 0,
  `I1_E4` double NOT NULL DEFAULT 0,
  `I1_E5` double NOT NULL DEFAULT 0,
  `I1_E6` double NOT NULL DEFAULT 0,
  `I2_E1` double NOT NULL DEFAULT 0,
  `I2_E2` double NOT NULL DEFAULT 0,
  `I2_E3` double NOT NULL DEFAULT 0,
  `I2_E4` double NOT NULL DEFAULT 0,
  `I2_E5` double NOT NULL DEFAULT 0,
  `I2_E6` double NOT NULL DEFAULT 0,
  `I3_E1` double NOT NULL DEFAULT 0,
  `I3_E2` double NOT NULL DEFAULT 0,
  `I3_E3` double NOT NULL DEFAULT 0,
  `I3_E4` double NOT NULL DEFAULT 0,
  `I3_E5` double NOT NULL DEFAULT 0,
  `I3_E6` double NOT NULL DEFAULT 0,
  `I4_E1` double NOT NULL DEFAULT 0,
  `I4_E2` double NOT NULL DEFAULT 0,
  `I4_E3` double NOT NULL DEFAULT 0,
  `I4_E4` double NOT NULL DEFAULT 0,
  `I4_E5` double NOT NULL DEFAULT 0,
  `I4_E6` double NOT NULL DEFAULT 0,
  `I5_E1` double NOT NULL DEFAULT 0,
  `I5_E2` double NOT NULL DEFAULT 0,
  `I5_E3` double NOT NULL DEFAULT 0,
  `I5_E4` double NOT NULL DEFAULT 0,
  `I5_E5` double NOT NULL DEFAULT 0,
  `I5_E6` double NOT NULL DEFAULT 0,
  `I6_E1` double NOT NULL DEFAULT 0,
  `I6_E2` double NOT NULL DEFAULT 0,
  `I6_E3` double NOT NULL DEFAULT 0,
  `I6_E4` double NOT NULL DEFAULT 0,
  `I6_E5` double NOT NULL DEFAULT 0,
  `I6_E6` double NOT NULL DEFAULT 0,
  `I7_E1` double NOT NULL DEFAULT 0,
  `I7_E2` double NOT NULL DEFAULT 0,
  `I7_E3` double NOT NULL DEFAULT 0,
  `I7_E4` double NOT NULL DEFAULT 0,
  `I7_E5` double NOT NULL DEFAULT 0,
  `I7_E6` double NOT NULL DEFAULT 0,
  `I8_E1` double NOT NULL DEFAULT 0,
  `I8_E2` double NOT NULL DEFAULT 0,
  `I8_E3` double NOT NULL DEFAULT 0,
  `I8_E4` double NOT NULL DEFAULT 0,
  `I8_E5` double NOT NULL DEFAULT 0,
  `I8_E6` double NOT NULL DEFAULT 0,
  `I9_E1` double NOT NULL DEFAULT 0,
  `I9_E2` double NOT NULL DEFAULT 0,
  `I9_E3` double NOT NULL DEFAULT 0,
  `I9_E4` double NOT NULL DEFAULT 0,
  `I9_E5` double NOT NULL DEFAULT 0,
  `I9_E6` double NOT NULL DEFAULT 0,
  `IDENT_AIDE_CONFIG_DEC_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AIDE_CONFIG_RECETTE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AIDE_ETAPE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AIDE_INGREDIENT` varchar(32) NOT NULL DEFAULT '',
  `ID_RECETTE` varchar(32) NOT NULL DEFAULT '',
  `IN_1` varchar(50) NOT NULL DEFAULT '',
  `IN_10` varchar(50) NOT NULL DEFAULT '',
  `IN_11` varchar(50) NOT NULL DEFAULT '',
  `IN_2` varchar(50) NOT NULL DEFAULT '',
  `IN_3` varchar(50) NOT NULL DEFAULT '',
  `IN_4` varchar(50) NOT NULL DEFAULT '',
  `IN_5` varchar(50) NOT NULL DEFAULT '',
  `IN_6` varchar(50) NOT NULL DEFAULT '',
  `IN_7` varchar(50) NOT NULL DEFAULT '',
  `IN_8` varchar(50) NOT NULL DEFAULT '',
  `IN_9` varchar(50) NOT NULL DEFAULT '',
  `MEMO` blob DEFAULT NULL,
  `NOM_LEVAIN` varchar(50) NOT NULL DEFAULT '',
  `NOM_RECETTE` varchar(50) NOT NULL DEFAULT '',
  `PID_RECETTE_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 '',
  `TAILLE_BAC` double NOT NULL DEFAULT 0,
  `TEMPS_RFRAICHIS` time NOT NULL DEFAULT '00:00:00',
  `TOTAL_I1` double NOT NULL DEFAULT 0,
  `TOTAL_I10` double NOT NULL DEFAULT 0,
  `TOTAL_I11` double NOT NULL DEFAULT 0,
  `TOTAL_I2` double NOT NULL DEFAULT 0,
  `TOTAL_I3` double NOT NULL DEFAULT 0,
  `TOTAL_I4` double NOT NULL DEFAULT 0,
  `TOTAL_I5` double NOT NULL DEFAULT 0,
  `TOTAL_I6` double NOT NULL DEFAULT 0,
  `TOTAL_I7` double NOT NULL DEFAULT 0,
  `TOTAL_I8` double NOT NULL DEFAULT 0,
  `TOTAL_I9` double NOT NULL DEFAULT 0,
  `TOTAL_RECETTE` double NOT NULL DEFAULT 0,
  `ORDRE_RECETTE` decimal(12,0) NOT NULL DEFAULT 0,
  `COEF_SON` decimal(12,2) NOT NULL DEFAULT 0.00,
  `BANNETON_6` varchar(35) NOT NULL DEFAULT '',
  `BANNETON_7` varchar(35) NOT NULL DEFAULT '',
  `CODE_ARTICLE_6` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_7` varchar(10) NOT NULL DEFAULT '',
  `DIV_P_CRU_6` decimal(12,0) NOT NULL DEFAULT 0,
  `DIV_P_CRU_7` decimal(12,0) NOT NULL DEFAULT 0,
  `DIV_P_CUIT_6` decimal(12,0) NOT NULL DEFAULT 0,
  `DIV_P_CUIT_7` decimal(12,0) NOT NULL DEFAULT 0,
  `DIVISION_6` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_7` varchar(50) NOT NULL DEFAULT '',
  `I12_E1` decimal(12,1) NOT NULL DEFAULT 0.0,
  `I12_E2` decimal(12,1) NOT NULL DEFAULT 0.0,
  `I12_E3` decimal(12,1) NOT NULL DEFAULT 0.0,
  `I12_E4` decimal(12,1) NOT NULL DEFAULT 0.0,
  `I12_E5` decimal(12,1) NOT NULL DEFAULT 0.0,
  `IN_12` varchar(50) NOT NULL DEFAULT '',
  `TOTAL_I12` decimal(12,1) NOT NULL DEFAULT 0.0,
  `N_RECETTE` decimal(12,0) NOT NULL DEFAULT 0,
  `ET_1` varchar(20) NOT NULL DEFAULT '',
  `ET_2` varchar(20) NOT NULL DEFAULT '',
  `ET_3` varchar(20) NOT NULL DEFAULT '',
  `ET_4` varchar(20) NOT NULL DEFAULT '',
  `ET_5` varchar(20) NOT NULL DEFAULT '',
  `FACONNAGE_MAIN` char(1) NOT NULL DEFAULT '',
  `POIDS_MAX_CUVE` decimal(12,0) NOT NULL DEFAULT 0,
  `DIVISION_PETRIE` decimal(12,0) NOT NULL DEFAULT 0,
  `PATE_EXTRACT1` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT2` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT3` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT4` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT5` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT6` char(1) NOT NULL DEFAULT '',
  `PATE_EXTRACT7` char(1) NOT NULL DEFAULT '',
  `N_BANNETON_1` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_2` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_3` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_4` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_5` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_6` decimal(12,0) NOT NULL DEFAULT 0,
  `N_BANNETON_7` decimal(12,0) NOT NULL DEFAULT 0,
  `COEF_CHOCO_BRI` decimal(12,1) NOT NULL DEFAULT 0.0,
  PRIMARY KEY (`ID_RECETTE`),
  KEY `CODE_ARTICLE_1` (`CODE_ARTICLE_1`) USING BTREE,
  KEY `CODE_ARTICLE_2` (`CODE_ARTICLE_2`) USING BTREE,
  KEY `CODE_ARTICLE_3` (`CODE_ARTICLE_3`) USING BTREE,
  KEY `CODE_ARTICLE_4` (`CODE_ARTICLE_4`) USING BTREE,
  KEY `CODE_ARTICLE_5` (`CODE_ARTICLE_5`) USING BTREE,
  KEY `DIV_P_CRU_1` (`DIV_P_CRU_1`) USING BTREE,
  KEY `NOM_RECETTE` (`NOM_RECETTE`) USING BTREE,
  KEY `PID_RECETTE_ET` (`PID_RECETTE_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 `CODE_ARTICLE_6` (`CODE_ARTICLE_6`) USING BTREE,
  KEY `CODE_ARTICLE_7` (`CODE_ARTICLE_7`) USING BTREE,
  KEY `ET_1` (`ET_1`) USING BTREE,
  KEY `ET_2` (`ET_2`) USING BTREE,
  KEY `ET_3` (`ET_3`) USING BTREE,
  KEY `ET_4` (`ET_4`) USING BTREE,
  KEY `ET_5` (`ET_5`) USING BTREE,
  KEY `N_BANNETON_1` (`N_BANNETON_1`) USING BTREE,
  KEY `N_BANNETON_2` (`N_BANNETON_2`) USING BTREE,
  KEY `N_BANNETON_3` (`N_BANNETON_3`) USING BTREE,
  KEY `N_BANNETON_4` (`N_BANNETON_4`) USING BTREE,
  KEY `N_BANNETON_5` (`N_BANNETON_5`) USING BTREE,
  KEY `N_BANNETON_6` (`N_BANNETON_6`) USING BTREE,
  KEY `N_BANNETON_7` (`N_BANNETON_7`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `recette_det`
--

CREATE TABLE `recette_det` (
  `BANNETON_1` varchar(35) NOT NULL DEFAULT '',
  `BANNETON_2` varchar(35) NOT NULL DEFAULT '',
  `BANNETON_3` varchar(35) NOT NULL DEFAULT '',
  `BANNETON_4` varchar(35) NOT NULL DEFAULT '',
  `BANNETON_5` varchar(35) NOT NULL DEFAULT '',
  `CASE_VIDE` char(1) NOT NULL DEFAULT '',
  `CODE_ARTICLE` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_2` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_3` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_4` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_5` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_L_01` varchar(10) NOT NULL DEFAULT '',
  `CODE_ARTICLE_L_02` varchar(10) NOT NULL DEFAULT '',
  `COEF_EAU` double NOT NULL DEFAULT 0,
  `COEF_FARINE` double NOT NULL DEFAULT 0,
  `COEF_LEVAIN` double NOT NULL DEFAULT 0,
  `DIVISION_1` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_2` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_3` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_4` varchar(50) NOT NULL DEFAULT '',
  `DIVISION_5` varchar(50) NOT NULL DEFAULT '',
  `DIV_P_CRU_1` double NOT NULL DEFAULT 0,
  `DIV_P_CRU_2` double NOT NULL DEFAULT 0,
  `DIV_P_CRU_3` double NOT NULL DEFAULT 0,
  `DIV_P_CRU_4` double NOT NULL DEFAULT 0,
  `DIV_P_CRU_5` double NOT NULL DEFAULT 0,
  `DIV_P_CUIT_1` double NOT NULL DEFAULT 0,
  `DIV_P_CUIT_2` double NOT NULL DEFAULT 0,
  `DIV_P_CUIT_3` double NOT NULL DEFAULT 0,
  `DIV_P_CUIT_4` double NOT NULL DEFAULT 0,
  `DIV_P_CUIT_5` double NOT NULL DEFAULT 0,
  `ET_1` varchar(50) NOT NULL DEFAULT '',
  `ET_2` varchar(50) NOT NULL DEFAULT '',
  `ET_3` varchar(50) NOT NULL DEFAULT '',
  `ET_4` varchar(50) NOT NULL DEFAULT '',
  `ET_5` varchar(50) NOT NULL DEFAULT '',
  `I10_E1` double NOT NULL DEFAULT 0,
  `I10_E2` double NOT NULL DEFAULT 0,
  `I10_E3` double NOT NULL DEFAULT 0,
  `I10_E4` double NOT NULL DEFAULT 0,
  `I10_E5` double NOT NULL DEFAULT 0,
  `I10_E6` double NOT NULL DEFAULT 0,
  `I11_E1` double NOT NULL DEFAULT 0,
  `I11_E2` double NOT NULL DEFAULT 0,
  `I11_E3` double NOT NULL DEFAULT 0,
  `I11_E4` double NOT NULL DEFAULT 0,
  `I11_E5` double NOT NULL DEFAULT 0,
  `I11_E6` double NOT NULL DEFAULT 0,
  `I1_E1` double NOT NULL DEFAULT 0,
  `I1_E2` double NOT NULL DEFAULT 0,
  `I1_E3` double NOT NULL DEFAULT 0,
  `I1_E4` double NOT NULL DEFAULT 0,
  `I1_E5` double NOT NULL DEFAULT 0,
  `I1_E6` double NOT NULL DEFAULT 0,
  `I2_E1` double NOT NULL DEFAULT 0,
  `I2_E2` double NOT NULL DEFAULT 0,
  `I2_E3` double NOT NULL DEFAULT 0,
  `I2_E4` double NOT NULL DEFAULT 0,
  `I2_E5` double NOT NULL DEFAULT 0,
  `I2_E6` double NOT NULL DEFAULT 0,
  `I3_E1` double NOT NULL DEFAULT 0,
  `I3_E2` double NOT NULL DEFAULT 0,
  `I3_E3` double NOT NULL DEFAULT 0,
  `I3_E4` double NOT NULL DEFAULT 0,
  `I3_E5` double NOT NULL DEFAULT 0,
  `I3_E6` double NOT NULL DEFAULT 0,
  `I4_E1` double NOT NULL DEFAULT 0,
  `I4_E2` double NOT NULL DEFAULT 0,
  `I4_E3` double NOT NULL DEFAULT 0,
  `I4_E4` double NOT NULL DEFAULT 0,
  `I4_E5` double NOT NULL DEFAULT 0,
  `I4_E6` double NOT NULL DEFAULT 0,
  `I5_E1` double NOT NULL DEFAULT 0,
  `I5_E2` double NOT NULL DEFAULT 0,
  `I5_E3` double NOT NULL DEFAULT 0,
  `I5_E4` double NOT NULL DEFAULT 0,
  `I5_E5` double NOT NULL DEFAULT 0,
  `I5_E6` double NOT NULL DEFAULT 0,
  `I6_E1` double NOT NULL DEFAULT 0,
  `I6_E2` double NOT NULL DEFAULT 0,
  `I6_E3` double NOT NULL DEFAULT 0,
  `I6_E4` double NOT NULL DEFAULT 0,
  `I6_E5` double NOT NULL DEFAULT 0,
  `I6_E6` double NOT NULL DEFAULT 0,
  `I7_E1` double NOT NULL DEFAULT 0,
  `I7_E2` double NOT NULL DEFAULT 0,
  `I7_E3` double NOT NULL DEFAULT 0,
  `I7_E4` double NOT NULL DEFAULT 0,
  `I7_E5` double NOT NULL DEFAULT 0,
  `I7_E6` double NOT NULL DEFAULT 0,
  `I8_E1` double NOT NULL DEFAULT 0,
  `I8_E2` double NOT NULL DEFAULT 0,
  `I8_E3` double NOT NULL DEFAULT 0,
  `I8_E4` double NOT NULL DEFAULT 0,
  `I8_E5` double NOT NULL DEFAULT 0,
  `I8_E6` double NOT NULL DEFAULT 0,
  `I9_E1` double NOT NULL DEFAULT 0,
  `I9_E2` double NOT NULL DEFAULT 0,
  `I9_E3` double NOT NULL DEFAULT 0,
  `I9_E4` double NOT NULL DEFAULT 0,
  `I9_E5` double NOT NULL DEFAULT 0,
  `I9_E6` double NOT NULL DEFAULT 0,
  `IDENT_AIDE_CONFIG_DEC_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AIDE_CONFIG_RECETTE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AIDE_ETAPE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AIDE_INGREDIENT` varchar(32) NOT NULL DEFAULT '',
  `ID_RECETTE_DET` varchar(32) NOT NULL DEFAULT '',
  `IN_1` varchar(50) NOT NULL DEFAULT '',
  `IN_10` varchar(50) NOT NULL DEFAULT '',
  `IN_11` varchar(50) NOT NULL DEFAULT '',
  `IN_2` varchar(50) NOT NULL DEFAULT '',
  `IN_3` varchar(50) NOT NULL DEFAULT '',
  `IN_4` varchar(50) NOT NULL DEFAULT '',
  `IN_5` varchar(50) NOT NULL DEFAULT '',
  `IN_6` varchar(50) NOT NULL DEFAULT '',
  `IN_7` varchar(50) NOT NULL DEFAULT '',
  `IN_8` varchar(50) NOT NULL DEFAULT '',
  `IN_9` varchar(50) NOT NULL DEFAULT '',
  `MEMO` blob DEFAULT NULL,
  `NOM_LEVAIN` varchar(50) NOT NULL DEFAULT '',
  `NOM_RECETTE` varchar(50) NOT NULL DEFAULT '',
  `PID_RECETTE_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 '',
  `TAILLE_BAC` double NOT NULL DEFAULT 0,
  `TEMPS_RFRAICHIS` time NOT NULL DEFAULT '00:00:00',
  `TOTAL_I1` double NOT NULL DEFAULT 0,
  `TOTAL_I10` double NOT NULL DEFAULT 0,
  `TOTAL_I11` double NOT NULL DEFAULT 0,
  `TOTAL_I2` double NOT NULL DEFAULT 0,
  `TOTAL_I3` double NOT NULL DEFAULT 0,
  `TOTAL_I4` double NOT NULL DEFAULT 0,
  `TOTAL_I5` double NOT NULL DEFAULT 0,
  `TOTAL_I6` double NOT NULL DEFAULT 0,
  `TOTAL_I7` double NOT NULL DEFAULT 0,
  `TOTAL_I8` double NOT NULL DEFAULT 0,
  `TOTAL_I9` double NOT NULL DEFAULT 0,
  `TOTAL_RECETTE` double NOT NULL DEFAULT 0,
  `ORDRE_RECETTE` decimal(12,0) NOT NULL DEFAULT 0,
  `COEF_SON` decimal(12,2) NOT NULL DEFAULT 0.00,
  PRIMARY KEY (`ID_RECETTE_DET`),
  KEY `CODE_ARTICLE` (`CODE_ARTICLE`) USING BTREE,
  KEY `CODE_ARTICLE_2` (`CODE_ARTICLE_2`) USING BTREE,
  KEY `CODE_ARTICLE_3` (`CODE_ARTICLE_3`) USING BTREE,
  KEY `CODE_ARTICLE_4` (`CODE_ARTICLE_4`) USING BTREE,
  KEY `CODE_ARTICLE_5` (`CODE_ARTICLE_5`) USING BTREE,
  KEY `DIV_P_CRU_1` (`DIV_P_CRU_1`) USING BTREE,
  KEY `NOM_RECETTE` (`NOM_RECETTE`) USING BTREE,
  KEY `PID_RECETTE_ET` (`PID_RECETTE_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 `recette_et`
--

CREATE TABLE `recette_et` (
  `ETAPE_1` varchar(10) NOT NULL DEFAULT '',
  `ETAPE_2` varchar(10) NOT NULL DEFAULT '',
  `IDENT_AIDE_CONFIG_RECETTE` varchar(32) NOT NULL DEFAULT '',
  `ID_RECETTE_ET` varchar(32) NOT NULL DEFAULT '',
  `INGREDIENT_1` varchar(10) NOT NULL DEFAULT '',
  `INGREDIENT_2` varchar(10) NOT NULL DEFAULT '',
  `NOM_RECETTE` varchar(10) 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_RECETTE_ET`),
  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;

--
-- Temporary table structure for view `regroupement_entretien_vehicule_casse`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_entretien_vehicule_casse`*/;
/*!50001 CREATE VIEW `regroupement_entretien_vehicule_casse` AS SELECT
 1 AS `n_dossier`,
  1 AS `immatriculation`,
  1 AS `id_materiel`,
  1 AS `type`,
  1 AS `date`,
  1 AS `mois`,
  1 AS `temps`,
  1 AS `piece` */;

--
-- Temporary table structure for view `regroupement_entretien_vehicule_externe`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_entretien_vehicule_externe`*/;
/*!50001 CREATE VIEW `regroupement_entretien_vehicule_externe` AS SELECT
 1 AS `n_dossier`,
  1 AS `immatriculation`,
  1 AS `id_materiel`,
  1 AS `type`,
  1 AS `date`,
  1 AS `mois`,
  1 AS `temps`,
  1 AS `piece` */;

--
-- Temporary table structure for view `regroupement_entretien_vehicule_interne`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_entretien_vehicule_interne`*/;
/*!50001 CREATE VIEW `regroupement_entretien_vehicule_interne` AS SELECT
 1 AS `n_dossier`,
  1 AS `immatriculation`,
  1 AS `id_materiel`,
  1 AS `type`,
  1 AS `date`,
  1 AS `mois`,
  1 AS `temps`,
  1 AS `piece` */;

--
-- Temporary table structure for view `regroupement_exercice`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_exercice`*/;
/*!50001 CREATE VIEW `regroupement_exercice` AS SELECT
 1 AS `sum_debit`,
  1 AS `sum_credit`,
  1 AS `solde`,
  1 AS `N_CPTE_TIERS`,
  1 AS `N_CPTE_GENERAL`,
  1 AS `N_DOSSIER`,
  1 AS `identification_tiers`,
  1 AS `N_EXERCICE` */;

--
-- Temporary table structure for view `regroupement_jour`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour`*/;
/*!50001 CREATE VIEW `regroupement_jour` AS SELECT
 1 AS `n_dossier`,
  1 AS `n_cpte_general`,
  1 AS `n_exercice`,
  1 AS `date`,
  1 AS `sum_debit`,
  1 AS `sum_credit`,
  1 AS `solde` */;

--
-- Temporary table structure for view `regroupement_jour_archive`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_archive`*/;
/*!50001 CREATE VIEW `regroupement_jour_archive` AS SELECT
 1 AS `n_dossier`,
  1 AS `n_cpte_general`,
  1 AS `n_exercice`,
  1 AS `date`,
  1 AS `sum_debit`,
  1 AS `sum_credit`,
  1 AS `solde` */;

--
-- Temporary table structure for view `regroupement_jour_compta_ana`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_compta_ana`*/;
/*!50001 CREATE VIEW `regroupement_jour_compta_ana` AS SELECT
 1 AS `n_cpte_general`,
  1 AS `date`,
  1 AS `debit`,
  1 AS `credit`,
  1 AS `ans1`,
  1 AS `ans2`,
  1 AS `ans3`,
  1 AS `ans4`,
  1 AS `ans5`,
  1 AS `N_DOSSIER`,
  1 AS `N_EXERCICE`,
  1 AS `id`,
  1 AS `n_ecriture` */;

--
-- Temporary table structure for view `regroupement_jour_compta_ana_situa`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_compta_ana_situa`*/;
/*!50001 CREATE VIEW `regroupement_jour_compta_ana_situa` AS SELECT
 1 AS `n_cpte_general`,
  1 AS `date`,
  1 AS `debit`,
  1 AS `credit`,
  1 AS `ans1`,
  1 AS `ans2`,
  1 AS `ans3`,
  1 AS `ans4`,
  1 AS `ans5`,
  1 AS `N_DOSSIER`,
  1 AS `N_EXERCICE`,
  1 AS `id`,
  1 AS `n_ecriture` */;

--
-- Temporary table structure for view `regroupement_jour_compta_ana_sous_total`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_compta_ana_sous_total`*/;
/*!50001 CREATE VIEW `regroupement_jour_compta_ana_sous_total` AS SELECT
 1 AS `regroupement`,
  1 AS `n_cpte_general`,
  1 AS `date`,
  1 AS `debit`,
  1 AS `credit`,
  1 AS `ans1`,
  1 AS `ans2`,
  1 AS `ans3`,
  1 AS `ans4`,
  1 AS `ans5`,
  1 AS `N_DOSSIER`,
  1 AS `N_EXERCICE`,
  1 AS `id`,
  1 AS `n_ecriture` */;

--
-- Temporary table structure for view `regroupement_jour_compta_ana_sous_total_situa`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_compta_ana_sous_total_situa`*/;
/*!50001 CREATE VIEW `regroupement_jour_compta_ana_sous_total_situa` AS SELECT
 1 AS `regroupement`,
  1 AS `n_cpte_general`,
  1 AS `date`,
  1 AS `debit`,
  1 AS `credit`,
  1 AS `ans1`,
  1 AS `ans2`,
  1 AS `ans3`,
  1 AS `ans4`,
  1 AS `ans5`,
  1 AS `N_DOSSIER`,
  1 AS `N_EXERCICE`,
  1 AS `id`,
  1 AS `n_ecriture` */;

--
-- Temporary table structure for view `regroupement_jour_secondaire_1_sous_total`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_secondaire_1_sous_total`*/;
/*!50001 CREATE VIEW `regroupement_jour_secondaire_1_sous_total` AS SELECT
 1 AS `n_dossier`,
  1 AS `n_cpte_general`,
  1 AS `id`,
  1 AS `regroupement`,
  1 AS `nom_regroupement`,
  1 AS `n_regroupement_principal`,
  1 AS `nom_regroupement_principal`,
  1 AS `onglet`,
  1 AS `n_exercice`,
  1 AS `date`,
  1 AS `sum_debit`,
  1 AS `sum_credit`,
  1 AS `solde` */;

--
-- Temporary table structure for view `regroupement_jour_situa`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_situa`*/;
/*!50001 CREATE VIEW `regroupement_jour_situa` AS SELECT
 1 AS `n_dossier`,
  1 AS `n_cpte_general`,
  1 AS `n_exercice`,
  1 AS `date`,
  1 AS `sum_debit`,
  1 AS `sum_credit`,
  1 AS `solde` */;

--
-- Temporary table structure for view `regroupement_jour_sous_total`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_sous_total`*/;
/*!50001 CREATE VIEW `regroupement_jour_sous_total` AS SELECT
 1 AS `n_dossier`,
  1 AS `n_cpte_general`,
  1 AS `regroupement`,
  1 AS `n_exercice`,
  1 AS `date`,
  1 AS `sum_debit`,
  1 AS `sum_credit`,
  1 AS `solde` */;

--
-- Temporary table structure for view `regroupement_jour_sous_total_archive`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_sous_total_archive`*/;
/*!50001 CREATE VIEW `regroupement_jour_sous_total_archive` AS SELECT
 1 AS `n_dossier`,
  1 AS `n_cpte_general`,
  1 AS `regroupement`,
  1 AS `n_exercice`,
  1 AS `date`,
  1 AS `sum_debit`,
  1 AS `sum_credit`,
  1 AS `solde` */;

--
-- Temporary table structure for view `regroupement_jour_sous_total_situa`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_sous_total_situa`*/;
/*!50001 CREATE VIEW `regroupement_jour_sous_total_situa` AS SELECT
 1 AS `n_dossier`,
  1 AS `n_cpte_general`,
  1 AS `regroupement`,
  1 AS `n_exercice`,
  1 AS `date`,
  1 AS `sum_debit`,
  1 AS `sum_credit`,
  1 AS `solde` */;

--
-- Temporary table structure for view `regroupement_mois`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_mois`*/;
/*!50001 CREATE VIEW `regroupement_mois` AS SELECT
 1 AS `n_dossier`,
  1 AS `n_cpte_general`,
  1 AS `n_exercice`,
  1 AS `date`,
  1 AS `mois_ecriture`,
  1 AS `sum_debit`,
  1 AS `sum_credit`,
  1 AS `solde` */;

--
-- Temporary table structure for view `regroupement_mois_activite`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_mois_activite`*/;
/*!50001 CREATE VIEW `regroupement_mois_activite` AS SELECT
 1 AS `n_dossier`,
  1 AS `n_cpte_general`,
  1 AS `activite`,
  1 AS `n_exercice`,
  1 AS `date`,
  1 AS `mois_ecriture`,
  1 AS `sum_debit`,
  1 AS `sum_credit`,
  1 AS `solde` */;

--
-- Temporary table structure for view `regroupement_mois_situa`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_mois_situa`*/;
/*!50001 CREATE VIEW `regroupement_mois_situa` AS SELECT
 1 AS `n_dossier`,
  1 AS `n_cpte_general`,
  1 AS `n_exercice`,
  1 AS `date`,
  1 AS `mois_ecriture`,
  1 AS `sum_debit`,
  1 AS `sum_credit`,
  1 AS `solde` */;

--
-- Temporary table structure for view `regroupement_mois_sous_total`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_mois_sous_total`*/;
/*!50001 CREATE VIEW `regroupement_mois_sous_total` AS SELECT
 1 AS `n_dossier`,
  1 AS `n_cpte_general`,
  1 AS `regroupement`,
  1 AS `n_exercice`,
  1 AS `date`,
  1 AS `mois_ecriture`,
  1 AS `sum_debit`,
  1 AS `sum_credit`,
  1 AS `solde` */;

--
-- Temporary table structure for view `regroupement_mois_sous_total_situa`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_mois_sous_total_situa`*/;
/*!50001 CREATE VIEW `regroupement_mois_sous_total_situa` AS SELECT
 1 AS `n_dossier`,
  1 AS `n_cpte_general`,
  1 AS `regroupement`,
  1 AS `n_exercice`,
  1 AS `mois_ecriture`,
  1 AS `date`,
  1 AS `sum_debit`,
  1 AS `sum_credit`,
  1 AS `solde` */;

--
-- Temporary table structure for view `regroupement_treso_jour`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_treso_jour`*/;
/*!50001 CREATE VIEW `regroupement_treso_jour` AS SELECT
 1 AS `N_DOSSIER`,
  1 AS `N_EXERCICE`,
  1 AS `N_TRESO`,
  1 AS `DATE_ECH`,
  1 AS `DATE_CALENDAR`,
  1 AS `CODE_JOUR`,
  1 AS `RD`,
  1 AS `VTF`,
  1 AS `solde1`,
  1 AS `solde2`,
  1 AS `solde` */;

--
-- Temporary table structure for view `regroupement_vm_jour`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_vm_jour`*/;
/*!50001 CREATE VIEW `regroupement_vm_jour` AS SELECT
 1 AS `N_DOSSIER`,
  1 AS `N_EXERCICE`,
  1 AS `N_TRESO`,
  1 AS `DATE_ECH`,
  1 AS `DATE_CALENDAR`,
  1 AS `CODE_JOUR`,
  1 AS `RD`,
  1 AS `VTF`,
  1 AS `solde1`,
  1 AS `solde2`,
  1 AS `solde` */;

--
-- Temporary table structure for view `relance_anciennete_frs_non_paye`
--

/*!50001 DROP VIEW IF EXISTS `relance_anciennete_frs_non_paye`*/;
/*!50001 CREATE VIEW `relance_anciennete_frs_non_paye` AS SELECT
 1 AS `sum_debit`,
  1 AS `sum_credit`,
  1 AS `solde`,
  1 AS `N_CPTE_TIERS`,
  1 AS `N_CPTE_GENERAL`,
  1 AS `N_DOSSIER`,
  1 AS `identification_tiers`,
  1 AS `N_EXERCICE`,
  1 AS `anciennete` */;

--
-- Temporary table structure for view `relance_anciennete_non_paye`
--

/*!50001 DROP VIEW IF EXISTS `relance_anciennete_non_paye`*/;
/*!50001 CREATE VIEW `relance_anciennete_non_paye` AS SELECT
 1 AS `sum_debit`,
  1 AS `sum_credit`,
  1 AS `solde`,
  1 AS `N_CPTE_TIERS`,
  1 AS `N_CPTE_GENERAL`,
  1 AS `N_DOSSIER`,
  1 AS `identification_tiers`,
  1 AS `N_EXERCICE`,
  1 AS `anciennete` */;

--
-- Temporary table structure for view `relance_anciennete_non_paye_exclu`
--

/*!50001 DROP VIEW IF EXISTS `relance_anciennete_non_paye_exclu`*/;
/*!50001 CREATE VIEW `relance_anciennete_non_paye_exclu` AS SELECT
 1 AS `sum_debit`,
  1 AS `sum_credit`,
  1 AS `solde`,
  1 AS `N_CPTE_TIERS`,
  1 AS `N_CPTE_GENERAL`,
  1 AS `N_DOSSIER`,
  1 AS `identification_tiers`,
  1 AS `N_EXERCICE`,
  1 AS `anciennete` */;

--
-- Table structure for table `saise_salaire_det`
--

CREATE TABLE `saise_salaire_det` (
  `BANQUE` varchar(100) NOT NULL DEFAULT '',
  `CUMUL_SAISIE` double NOT NULL DEFAULT 0,
  `DATE_EMISSION_CHEQUE` date DEFAULT NULL,
  `FAIT` char(1) NOT NULL DEFAULT '',
  `ID_SAISE_SALAIRE_DET` varchar(32) NOT NULL DEFAULT '',
  `MOIS` varchar(5) NOT NULL DEFAULT '',
  `MONTANT_SAISI` double NOT NULL DEFAULT 0,
  `NUMERO` double NOT NULL DEFAULT 0,
  `PID_TIERS_INFO_SALARIE_SAISIE` varchar(32) NOT NULL DEFAULT '',
  `SOLDE` 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 '',
  `DATE` date DEFAULT NULL,
  PRIMARY KEY (`ID_SAISE_SALAIRE_DET`),
  KEY `BANQUE` (`BANQUE`) USING BTREE,
  KEY `DATE_EMISSION_CHEQUE` (`DATE_EMISSION_CHEQUE`) USING BTREE,
  KEY `FAIT` (`FAIT`) USING BTREE,
  KEY `MOIS` (`MOIS`) USING BTREE,
  KEY `MONTANT_SAISI` (`MONTANT_SAISI`) USING BTREE,
  KEY `PID_TIERS_INFO_SALARIE_SAISIE` (`PID_TIERS_INFO_SALARIE_SAISIE`) USING BTREE,
  KEY `SOLDE` (`SOLDE`) 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` (`DATE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `salarie_pret_det`
--

CREATE TABLE `salarie_pret_det` (
  `CAPITAL_DEBUT` double NOT NULL DEFAULT 0,
  `CAPITAL_FIN` double NOT NULL DEFAULT 0,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `ECHEANCE` double NOT NULL DEFAULT 0,
  `FAIT` char(1) NOT NULL DEFAULT '',
  `ID_SALARIE_PRET_DET` varchar(32) NOT NULL DEFAULT '',
  `INTERET` double NOT NULL DEFAULT 0,
  `NUMERO` double NOT NULL DEFAULT 0,
  `P` varchar(32) NOT NULL DEFAULT '',
  `PID_SALARIE_PRET_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 '',
  PRIMARY KEY (`ID_SALARIE_PRET_DET`),
  KEY `NUMERO` (`NUMERO`) USING BTREE,
  KEY `P` (`P`) USING BTREE,
  KEY `PID_SALARIE_PRET_ET` (`PID_SALARIE_PRET_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 `salarie_pret_et`
--

CREATE TABLE `salarie_pret_et` (
  `DATE_DEBUT` date DEFAULT NULL,
  `DATE_FIN` date DEFAULT NULL,
  `ECHEANCE` double NOT NULL DEFAULT 0,
  `ID_SALARIE_PRET_ET` varchar(32) NOT NULL DEFAULT '',
  `INTERET` double NOT NULL DEFAULT 0,
  `MONTANT_INITIAL` double NOT NULL DEFAULT 0,
  `N_ECHEANCE` double NOT NULL DEFAULT 0,
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS_INFOS_SALARIES` varchar(32) NOT NULL DEFAULT '',
  `RESTANT_A_PAYER` 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 '',
  `TOTAL` double NOT NULL DEFAULT 0,
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `MEMO_PRET_SALARIE` blob DEFAULT NULL,
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_DOSSIER` decimal(5,0) NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_SALARIE_PRET_ET`),
  KEY `N_ECHEANCE` (`N_ECHEANCE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `PID_TIERS_INFOS_SALARIES` (`PID_TIERS_INFOS_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
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `spanco`
--

CREATE TABLE `spanco` (
  `ARCHIVE` char(1) NOT NULL DEFAULT '',
  `ARMOIRE` varchar(30) NOT NULL DEFAULT '',
  `ARMOIRE_NUMERO` double NOT NULL DEFAULT 0,
  `CLASSEUR` varchar(30) NOT NULL DEFAULT '',
  `CLASSEUR_NUMERO` double NOT NULL DEFAULT 0,
  `COMMENTAIRES_SPANCO` blob DEFAULT NULL,
  `COMPTAGE_GLOBAL` double NOT NULL DEFAULT 0,
  `COMPTEUR` varchar(30) NOT NULL DEFAULT '',
  `CONFIANCE_INDICE` double NOT NULL DEFAULT 0,
  `DATEHEURE` varchar(20) NOT NULL DEFAULT '',
  `DATE_MPO` date DEFAULT NULL,
  `DATE_SORTIE` date DEFAULT NULL,
  `ID_SPANCO` varchar(32) NOT NULL DEFAULT '',
  `LS` double NOT NULL DEFAULT 0,
  `MARGE_BRUTE` double NOT NULL DEFAULT 0,
  `MB_AVEC_POSE` double NOT NULL DEFAULT 0,
  `MB_HORS_POSE` double NOT NULL DEFAULT 0,
  `ME` varchar(5) NOT NULL DEFAULT '',
  `ME_INTITULE` varchar(20) NOT NULL DEFAULT '',
  `MI` varchar(5) NOT NULL DEFAULT '',
  `MOIS` double NOT NULL DEFAULT 0,
  `MOIS_INSTALLATION` date DEFAULT NULL,
  `MOIS_INTITULE` varchar(210) NOT NULL DEFAULT '',
  `MOIS_PREVISION_ORDRE` date DEFAULT NULL,
  `MPO` varchar(5) NOT NULL DEFAULT '',
  `MS` varchar(5) NOT NULL DEFAULT '',
  `NOM_AFFAIRE` varchar(100) NOT NULL DEFAULT '',
  `NOM_CLIENT` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(100) NOT NULL DEFAULT '',
  `NON_ETAPE` char(1) NOT NULL DEFAULT '',
  `NUMERO_ME` double NOT NULL DEFAULT 0,
  `NUMERO_MPO` double NOT NULL DEFAULT 0,
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_EXERCICE` double NOT NULL DEFAULT 0,
  `N_MOIS_EXERCICE` double NOT NULL DEFAULT 0,
  `OUT_LOOK_OPPORTUNITES` varchar(50) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `SEMAINE_ENTREE` double NOT NULL DEFAULT 0,
  `SEMAINE_SORTIE` double NOT NULL DEFAULT 0,
  `SUIVI_PAR` 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 '',
  `TRANSFERE` char(1) NOT NULL DEFAULT '',
  `CA` double NOT NULL DEFAULT 0,
  `CORPS_MESSAGE_VALIDATION` blob DEFAULT NULL,
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `N_PHASE` double NOT NULL DEFAULT 0,
  `ID_CONTACT_COMMERCIAL` varchar(32) NOT NULL DEFAULT '',
  `PID_CONTACT` varchar(32) NOT NULL DEFAULT '',
  `DATE_PHASE_1` date DEFAULT NULL,
  `DATE_PHASE_2` date DEFAULT NULL,
  `DATE_PHASE_3` date DEFAULT NULL,
  `DATE_PHASE_4` date DEFAULT NULL,
  `DATE_PHASE_5` date DEFAULT NULL,
  `DATE_PHASE_6` date DEFAULT NULL,
  `ECART_JOURS_DEBUT_FIN` decimal(12,0) NOT NULL DEFAULT 0,
  `ECART_JOURS_P1_P2` decimal(12,0) NOT NULL DEFAULT 0,
  `ECART_JOURS_P2_P3` varchar(10) NOT NULL DEFAULT '',
  `ECART_JOURS_P3_P4` varchar(10) NOT NULL DEFAULT '',
  `ECART_JOURS_P3_P5` varchar(10) NOT NULL DEFAULT '',
  `N_IMPORT` varchar(15) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SPANCO`),
  KEY `ARCHIVE` (`ARCHIVE`) USING BTREE,
  KEY `ARMOIRE` (`ARMOIRE`) USING BTREE,
  KEY `ARMOIRE_NUMERO` (`ARMOIRE_NUMERO`) USING BTREE,
  KEY `CLASSEUR` (`CLASSEUR`) USING BTREE,
  KEY `CLASSEUR_NUMERO` (`CLASSEUR_NUMERO`) USING BTREE,
  KEY `COMPTAGE_GLOBAL` (`COMPTAGE_GLOBAL`) USING BTREE,
  KEY `COMPTEUR` (`COMPTEUR`) USING BTREE,
  KEY `CONFIANCE_INDICE` (`CONFIANCE_INDICE`) USING BTREE,
  KEY `DATEHEURE` (`DATEHEURE`) USING BTREE,
  KEY `DATE_MPO` (`DATE_MPO`) USING BTREE,
  KEY `LS` (`LS`) USING BTREE,
  KEY `ME` (`ME`) USING BTREE,
  KEY `ME_INTITULE` (`ME_INTITULE`) USING BTREE,
  KEY `MI` (`MI`) USING BTREE,
  KEY `MOIS` (`MOIS`) USING BTREE,
  KEY `MOIS_PREVISION_ORDRE` (`MOIS_PREVISION_ORDRE`) USING BTREE,
  KEY `MPO` (`MPO`) USING BTREE,
  KEY `MS` (`MS`) USING BTREE,
  KEY `NOM_AFFAIRE` (`NOM_AFFAIRE`) USING BTREE,
  KEY `NOM_CLIENT` (`NOM_CLIENT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `NON_ETAPE` (`NON_ETAPE`) USING BTREE,
  KEY `NUMERO_ME` (`NUMERO_ME`) USING BTREE,
  KEY `NUMERO_MPO` (`NUMERO_MPO`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_EXERCICE` (`N_EXERCICE`) USING BTREE,
  KEY `N_MOIS_EXERCICE` (`N_MOIS_EXERCICE`) USING BTREE,
  KEY `OUT_LOOK_OPPORTUNITES` (`OUT_LOOK_OPPORTUNITES`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `SEMAINE_ENTREE` (`SEMAINE_ENTREE`) USING BTREE,
  KEY `SEMAINE_SORTIE` (`SEMAINE_SORTIE`) USING BTREE,
  KEY `SUIVI_PAR` (`SUIVI_PAR`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `N_PHASE` (`N_PHASE`) USING BTREE,
  KEY `ID_CONTACT_COMMERCIAL` (`ID_CONTACT_COMMERCIAL`) USING BTREE,
  KEY `PID_CONTACT` (`PID_CONTACT`) USING BTREE,
  KEY `DATE_PHASE_1` (`DATE_PHASE_1`) USING BTREE,
  KEY `DATE_PHASE_2` (`DATE_PHASE_2`) USING BTREE,
  KEY `DATE_PHASE_3` (`DATE_PHASE_3`) USING BTREE,
  KEY `DATE_PHASE_4` (`DATE_PHASE_4`) USING BTREE,
  KEY `DATE_PHASE_5` (`DATE_PHASE_5`) USING BTREE,
  KEY `DATE_PHASE_6` (`DATE_PHASE_6`) USING BTREE,
  KEY `N_IMPORT` (`N_IMPORT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `spanco_etape`
--

CREATE TABLE `spanco_etape` (
  `AVANCEMENT` varchar(30) NOT NULL DEFAULT '',
  `DATEHEURE` varchar(20) NOT NULL DEFAULT '',
  `DATE_FAIT` date DEFAULT NULL,
  `FAIT` char(1) NOT NULL DEFAULT '',
  `ID_SPANCO_ETAPE` varchar(32) NOT NULL DEFAULT '',
  `LS` double NOT NULL DEFAULT 0,
  `MOIS_FAIT` varchar(5) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(200) NOT NULL DEFAULT '',
  `N_AVANCEMENT` double NOT NULL DEFAULT 0,
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `PID_SPANCO` 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 '',
  PRIMARY KEY (`ID_SPANCO_ETAPE`),
  KEY `AVANCEMENT` (`AVANCEMENT`) USING BTREE,
  KEY `DATEHEURE` (`DATEHEURE`) USING BTREE,
  KEY `DATE_FAIT` (`DATE_FAIT`) USING BTREE,
  KEY `FAIT` (`FAIT`) USING BTREE,
  KEY `LS` (`LS`) USING BTREE,
  KEY `MOIS_FAIT` (`MOIS_FAIT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_AVANCEMENT` (`N_AVANCEMENT`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_SPANCO` (`PID_SPANCO`) 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 `sponsoring_det`
--

CREATE TABLE `sponsoring_det` (
  `CONDITIONS_CHOISIES` varchar(200) NOT NULL DEFAULT '',
  `DATE_DEBUT` date DEFAULT NULL,
  `DATE_FIN` date DEFAULT NULL,
  `DUREE_ALPHA` varchar(50) NOT NULL DEFAULT '',
  `ID_SPONSORING_DET` varchar(32) NOT NULL DEFAULT '',
  `PARTICIPATION_HT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PARTICIPATION_TTC` decimal(12,2) NOT NULL DEFAULT 0.00,
  `PID_SPONSORING_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 '',
  `VH1` varchar(20) NOT NULL DEFAULT '',
  `VH2` varchar(20) NOT NULL DEFAULT '',
  `FAIT_LE` date DEFAULT NULL,
  `FAIT_A` varchar(50) NOT NULL DEFAULT '',
  `ACTIF` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SPONSORING_DET`),
  KEY `PID_SPONSORING_ET` (`PID_SPONSORING_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 `sponsoring_et`
--

CREATE TABLE `sponsoring_et` (
  `CODE_CLIENT` varchar(32) NOT NULL DEFAULT '',
  `CONTACT_FONCTION` varchar(100) NOT NULL DEFAULT '',
  `CONTACT_SPONSORING` varchar(50) NOT NULL DEFAULT '',
  `CONTACT_TEL` varchar(15) NOT NULL DEFAULT '',
  `ID_SPONSORING_ET` varchar(32) NOT NULL DEFAULT '',
  `MAIL_CONTACT` varchar(100) NOT NULL DEFAULT '',
  `NOM` varchar(50) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(100) NOT NULL DEFAULT '',
  `N_DOSSIER` varchar(2) NOT NULL DEFAULT '',
  `PID_CONTACT_SPONSORING` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS` 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 '',
  `PAIEMENT_RECURENT` char(1) NOT NULL DEFAULT '',
  `PAIEMENT_PONCTUEL` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SPONSORING_ET`),
  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
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `stock`
--

CREATE TABLE `stock` (
  `CONTREMARQUE` varchar(100) NOT NULL DEFAULT '',
  `DATE_ACHAT` date DEFAULT NULL,
  `DATE_SORTIE` date DEFAULT NULL,
  `DEPOT` varchar(20) NOT NULL DEFAULT '',
  `DESCRIPTIF` varchar(100) NOT NULL DEFAULT '',
  `DESIGNATION` varchar(100) NOT NULL DEFAULT '',
  `EMPLACEMENT` varchar(100) NOT NULL DEFAULT '',
  `FAMILLE` varchar(100) NOT NULL DEFAULT '',
  `FOURNISSEUR` varchar(100) NOT NULL DEFAULT '',
  `ID_STOCK` varchar(32) NOT NULL DEFAULT '',
  `NOM_CATALOGUE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(100) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `OBSERVATION` varchar(100) NOT NULL DEFAULT '',
  `PID_ARTICLE` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_ACHAT_AVOIR_DET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_ACHAT_AVOIR_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_ACHAT_BL_DET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_ACHAT_BL_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_ACHAT_FACT_DET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_ACHAT_FACT_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_VENTE_AVOIR_DET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_VENTE_AVOIR_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_VENTE_FACT_DET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_VENTE_FACT_ET` varchar(32) NOT NULL DEFAULT '',
  `PRIX_ACHAT` double NOT NULL DEFAULT 0,
  `PRIX_TOTAL` double NOT NULL DEFAULT 0,
  `PRIX_TOTAL_VENTE` double NOT NULL DEFAULT 0,
  `PRIX_VENTE` double NOT NULL DEFAULT 0,
  `Q_ENTREE` double NOT NULL DEFAULT 0,
  `Q_SORTIE` double NOT NULL DEFAULT 0,
  `REFERENCE` varchar(30) 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 '',
  `DATE_DEPART_STOCK` date DEFAULT NULL,
  `PID_GES_CO_DOCUMENT_ACHAT_BC_DET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_ACHAT_BC_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_VENTE_BC_DET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_VENTE_BC_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_VENTE_BL_DET` varchar(32) NOT NULL DEFAULT '',
  `PID_GES_CO_DOCUMENT_VENTE_BL_ET` varchar(32) NOT NULL DEFAULT '',
  `SUPPRESSION_DEFINITIVE` char(1) NOT NULL DEFAULT '',
  `TYPE_MOUVEMENT` varchar(20) NOT NULL DEFAULT '',
  `N_AVOIR_CLIENT` varchar(10) NOT NULL DEFAULT '',
  `N_AVOIR_FRS` varchar(20) NOT NULL DEFAULT '',
  `N_BC_CLIENT` varchar(20) NOT NULL DEFAULT '',
  `N_BC_FRS` varchar(20) NOT NULL DEFAULT '',
  `N_BL_CLIENT` varchar(20) NOT NULL DEFAULT '',
  `N_BL_FRS` varchar(20) NOT NULL DEFAULT '',
  `N_FACT_CLIENT` varchar(10) NOT NULL DEFAULT '',
  `N_FACT_FRS` varchar(20) NOT NULL DEFAULT '',
  `MANQUANT` char(1) NOT NULL DEFAULT '',
  `PID_ORDRE_REPARATION` varchar(32) NOT NULL DEFAULT '',
  `PID_ORDRE_REPARATION_PIECES` varchar(32) NOT NULL DEFAULT '',
  `PID_ORDRE_REPARATION_TPS` varchar(32) NOT NULL DEFAULT '',
  `SORTIE_OR` varchar(10) NOT NULL DEFAULT '',
  `TEMP_MANQUANT` char(1) NOT NULL DEFAULT '',
  `AJOUT_MANUEL` char(1) NOT NULL DEFAULT '',
  `JUSTIFICATION_AJOUT` varchar(300) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SPLITED` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_STOCK`),
  KEY `DATE_ACHAT` (`DATE_ACHAT`) USING BTREE,
  KEY `DATE_SORTIE` (`DATE_SORTIE`) USING BTREE,
  KEY `DEPOT` (`DEPOT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_ARTICLE` (`PID_ARTICLE`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_ACHAT_AVOIR_DET` (`PID_GES_CO_DOCUMENT_ACHAT_AVOIR_DET`) 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_BL_DET` (`PID_GES_CO_DOCUMENT_ACHAT_BL_DET`) 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_DET` (`PID_GES_CO_DOCUMENT_ACHAT_FACT_DET`) 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_DET` (`PID_GES_CO_DOCUMENT_VENTE_AVOIR_DET`) 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_FACT_DET` (`PID_GES_CO_DOCUMENT_VENTE_FACT_DET`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_FACT_ET` (`PID_GES_CO_DOCUMENT_VENTE_FACT_ET`) USING BTREE,
  KEY `REFERENCE` (`REFERENCE`) USING BTREE,
  KEY `DATE_DEPART_STOCK` (`DATE_DEPART_STOCK`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_ACHAT_BC_DET` (`PID_GES_CO_DOCUMENT_ACHAT_BC_DET`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_ACHAT_BC_ET` (`PID_GES_CO_DOCUMENT_ACHAT_BC_ET`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_BC_DET` (`PID_GES_CO_DOCUMENT_VENTE_BC_DET`) 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_DET` (`PID_GES_CO_DOCUMENT_VENTE_BL_DET`) USING BTREE,
  KEY `PID_GES_CO_DOCUMENT_VENTE_BL_ET` (`PID_GES_CO_DOCUMENT_VENTE_BL_ET`) USING BTREE,
  KEY `N_AVOIR_CLIENT` (`N_AVOIR_CLIENT`) USING BTREE,
  KEY `N_AVOIR_FRS` (`N_AVOIR_FRS`) USING BTREE,
  KEY `N_BC_CLIENT` (`N_BC_CLIENT`) USING BTREE,
  KEY `N_BC_FRS` (`N_BC_FRS`) USING BTREE,
  KEY `N_BL_CLIENT` (`N_BL_CLIENT`) USING BTREE,
  KEY `N_BL_FRS` (`N_BL_FRS`) USING BTREE,
  KEY `N_FACT_CLIENT` (`N_FACT_CLIENT`) USING BTREE,
  KEY `N_FACT_FRS` (`N_FACT_FRS`) USING BTREE,
  KEY `PID_ORDRE_REPARATION` (`PID_ORDRE_REPARATION`) USING BTREE,
  KEY `PID_ORDRE_REPARATION_PIECES` (`PID_ORDRE_REPARATION_PIECES`) USING BTREE,
  KEY `PID_ORDRE_REPARATION_TPS` (`PID_ORDRE_REPARATION_TPS`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `support_det`
--

CREATE TABLE `support_det` (
  `ID_SUPPORT_DET` 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',
  `TEXT_TICKET` blob DEFAULT NULL,
  `REPONSE_TICKET` blob DEFAULT NULL,
  `PID_SUPPORT_ET` varchar(32) NOT NULL DEFAULT '',
  `VEROUILLAGE` char(1) NOT NULL DEFAULT '',
  `COMPTEUR_TEMPS` varchar(50) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `MEMO_INTERNE` blob DEFAULT NULL,
  `DATE_REP_SUPPORT` datetime DEFAULT NULL,
  `DATE_TICKET_DET` datetime DEFAULT NULL,
  `SYS_LIEN_CONTEXTE_MAITRE` varchar(32) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SUPPORT_DET`),
  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 `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `SYS_LIEN_CONTEXTE_MAITRE` (`SYS_LIEN_CONTEXTE_MAITRE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `support_et`
--

CREATE TABLE `support_et` (
  `ID_SUPPORT_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',
  `DATE_CREA_TICKET` date DEFAULT NULL,
  `N_TICKET` varchar(15) NOT NULL DEFAULT '',
  `OBJET_TICKET` varchar(500) NOT NULL DEFAULT '',
  `PRIORITE_TICKET` varchar(50) NOT NULL DEFAULT '',
  `TYPE_TICKET` varchar(50) NOT NULL DEFAULT '',
  `CATEGORIE` varchar(50) NOT NULL DEFAULT '',
  `SOUS_CATEGORIE` varchar(50) NOT NULL DEFAULT '',
  `EMAIL` varchar(50) NOT NULL DEFAULT '',
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `CHRONO_TIME` varchar(50) NOT NULL DEFAULT '',
  `NATURE_PROBLEME` varchar(50) NOT NULL DEFAULT '',
  `N_TEL` varchar(15) NOT NULL DEFAULT '',
  `SYS_ID_RECURRENCES` varchar(32) NOT NULL DEFAULT '',
  `SYS_PARAMETRES_RECURRENCES` longblob DEFAULT NULL,
  `SAVE_TIMER` time NOT NULL DEFAULT '00:00:00',
  `TIMER_TOTAL` time NOT NULL DEFAULT '00:00:00',
  `TRAITE_PAR` varchar(10) NOT NULL DEFAULT '',
  `DATE_CLOTURE` date DEFAULT NULL,
  `MEMO_CLOTURE_SUPPORT` blob DEFAULT NULL,
  `ECART_DATE_CREATION_CLOTURE` double NOT NULL DEFAULT 0,
  `STAT_HEURE_CLOTURE` time NOT NULL DEFAULT '00:00:00',
  `STAT_HEURE_CREAT` time NOT NULL DEFAULT '00:00:00',
  `HEURE_CLOTURE` time NOT NULL DEFAULT '00:00:00',
  `DATE_ATTENTE_REP_CLT` date DEFAULT NULL,
  `ECART_DATE_ATTENTE_CLOTURE` double NOT NULL DEFAULT 0,
  `STAT_DATE_CLOTURE` date DEFAULT NULL,
  `STAT_DATE_CREATION` date DEFAULT NULL,
  `ECART_HEURE_CREATION_CLOTURE` double NOT NULL DEFAULT 0,
  `STAT_DUREE` time NOT NULL DEFAULT '00:00:00',
  `CONFLIT_DE_DEV` char(1) NOT NULL DEFAULT '',
  `MEMO_ADM` blob DEFAULT NULL,
  `N_DOSSIER` decimal(12,0) NOT NULL DEFAULT 0,
  `DATE_ECHEANCE` date DEFAULT NULL,
  PRIMARY KEY (`ID_SUPPORT_ET`),
  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_TICKET` (`N_TICKET`) USING BTREE,
  KEY `CHRONO_TIME` (`CHRONO_TIME`) USING BTREE,
  KEY `SYS_ID_RECURRENCES` (`SYS_ID_RECURRENCES`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `support_temps`
--

CREATE TABLE `support_temps` (
  `ID_SUPPORT_TEMPS` varchar(32) NOT NULL DEFAULT '',
  `PID_SUPPORT_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',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `DATE_DEBUT` date DEFAULT NULL,
  `DATE_FIN` date DEFAULT NULL,
  `HEURE_DEBUT` time NOT NULL DEFAULT '00:00:00',
  `HEURE_FIN` time NOT NULL DEFAULT '00:00:00',
  `COMMENTAIRE` blob DEFAULT NULL,
  `OPERATEUR` varchar(100) NOT NULL DEFAULT '',
  `HEURE_TOT` decimal(12,0) NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_SUPPORT_TEMPS`),
  KEY `PID_SUPPORT_ET` (`PID_SUPPORT_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 `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_chat_groupes`
--

CREATE TABLE `sys_chat_groupes` (
  `ID_SYS_CHAT_GROUPES` varchar(32) NOT NULL DEFAULT '',
  `SYS_NOM_GROUPE` varchar(50) 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',
  PRIMARY KEY (`ID_SYS_CHAT_GROUPES`),
  KEY `SYS_NOM_GROUPE` (`SYS_NOM_GROUPE`) 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
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_chat_messages`
--

CREATE TABLE `sys_chat_messages` (
  `ID_SYS_CHAT_MESSAGES` varchar(32) NOT NULL DEFAULT '',
  `SYS_MESSAGE` blob DEFAULT NULL,
  `SYS_CODE_USER_EMETTEUR` varchar(20) NOT NULL DEFAULT '',
  `SYS_GROUPE_DESTINATAIRE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_HEURE` datetime DEFAULT NULL,
  `SYS_MESSAGE_SYSTEME_OK` char(1) 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',
  PRIMARY KEY (`ID_SYS_CHAT_MESSAGES`),
  KEY `SYS_CODE_USER_EMETTEUR` (`SYS_CODE_USER_EMETTEUR`) USING BTREE,
  KEY `SYS_GROUPE_DESTINATAIRE` (`SYS_GROUPE_DESTINATAIRE`) USING BTREE,
  KEY `SYS_DATE_HEURE` (`SYS_DATE_HEURE`) 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
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_chat_users_groupes`
--

CREATE TABLE `sys_chat_users_groupes` (
  `ID_SYS_CHAT_USERS_GROUPES` varchar(32) NOT NULL DEFAULT '',
  `SYS_CODE_UTILISATEUR` varchar(20) NOT NULL DEFAULT '',
  `PID_SYS_CHAT_GROUPES` 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',
  PRIMARY KEY (`ID_SYS_CHAT_USERS_GROUPES`),
  KEY `SYS_CODE_UTILISATEUR` (`SYS_CODE_UTILISATEUR`) USING BTREE,
  KEY `PID_SYS_CHAT_GROUPES` (`PID_SYS_CHAT_GROUPES`) 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
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_cube`
--

CREATE TABLE `sys_cube` (
  `ID_SYS_CUBE` varchar(32) NOT NULL DEFAULT '',
  `SYS_CODE_UTILISATEUR` varchar(20) NOT NULL DEFAULT '',
  `SYS_COORDONNEES` blob DEFAULT NULL,
  `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_NOM_CUBE` varchar(120) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_DIMENSIONS_AFFICHEES` blob DEFAULT NULL,
  PRIMARY KEY (`ID_SYS_CUBE`),
  KEY `SYS_CODE_UTILISATEUR` (`SYS_CODE_UTILISATEUR`) 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
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_droits_taches`
--

CREATE TABLE `sys_droits_taches` (
  `ID_SYS_DROITS_TACHES` varchar(32) NOT NULL DEFAULT '',
  `SYS_CHAMP_CODE_USER` varchar(20) NOT NULL DEFAULT '',
  `SYS_CODE_AUTORISATION` varchar(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_TABLE` varchar(30) NOT NULL DEFAULT '',
  `SYS_TABLE_CODE_USER` varchar(20) NOT NULL DEFAULT '',
  `SYS_TYPE_TACHE` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SYS_DROITS_TACHES`),
  KEY `SYS_CODE_AUTORISATION` (`SYS_CODE_AUTORISATION`) 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_TABLE` (`SYS_TABLE`) USING BTREE,
  KEY `SYS_TYPE_TACHE` (`SYS_TYPE_TACHE`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_droits_users`
--

CREATE TABLE `sys_droits_users` (
  `ID_SYS_DROITS_USERS` varchar(32) NOT NULL DEFAULT '',
  `PID_SYS_DROITS_TACHES` varchar(32) NOT NULL DEFAULT '',
  `SYS_CODE_GROUPE` 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_SYS_DROITS_USERS`),
  KEY `PID_SYS_DROITS_TACHES` (`PID_SYS_DROITS_TACHES`) USING BTREE,
  KEY `SYS_CODE_GROUPE` (`SYS_CODE_GROUPE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_email_journal`
--

CREATE TABLE `sys_email_journal` (
  `ID_SYS_EMAIL_JOURNAL` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_EMAIL` datetime DEFAULT NULL,
  `SYS_FICHIER_CONTENU` longblob DEFAULT NULL,
  `SYS_FICHIER_DATE` datetime DEFAULT NULL,
  `SYS_FICHIER_NOM` varchar(100) NOT NULL DEFAULT '',
  `SYS_FICHIER_TAILLE` double NOT NULL DEFAULT 0,
  `SYS_FICHIER_TYPE` varchar(50) NOT NULL DEFAULT '',
  `SYS_STATUT` varchar(200) NOT NULL DEFAULT '',
  `SYS_TYPE` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SYS_EMAIL_JOURNAL`),
  KEY `SYS_DATE_EMAIL` (`SYS_DATE_EMAIL`) USING BTREE,
  KEY `SYS_FICHIER_DATE` (`SYS_FICHIER_DATE`) USING BTREE,
  KEY `SYS_FICHIER_NOM` (`SYS_FICHIER_NOM`) USING BTREE,
  KEY `SYS_STATUT` (`SYS_STATUT`) USING BTREE,
  KEY `SYS_TYPE` (`SYS_TYPE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_exchange_emails_pj`
--

CREATE TABLE `sys_exchange_emails_pj` (
  `ID_SYS_EXCHANGE_EMAILS_PJ` varchar(32) NOT NULL DEFAULT '',
  `PID_SYS_EXCHANGE_EMAILS_ENTRANTS` 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_PJ_FICHIER_CONTENU` longblob DEFAULT NULL,
  `SYS_PJ_FICHIER_DATE` datetime DEFAULT NULL,
  `SYS_PJ_FICHIER_NOM` varchar(50) NOT NULL DEFAULT '',
  `SYS_PJ_FICHIER_TAILLE` double NOT NULL DEFAULT 0,
  `SYS_PJ_FICHIER_TYPE` varchar(100) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SYS_EXCHANGE_EMAILS_PJ`),
  KEY `PID_SYS_EXCHANGE_EMAILS_ENTRANTS` (`PID_SYS_EXCHANGE_EMAILS_ENTRANTS`) 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_PJ_FICHIER_DATE` (`SYS_PJ_FICHIER_DATE`) USING BTREE,
  KEY `SYS_PJ_FICHIER_NOM` (`SYS_PJ_FICHIER_NOM`) USING BTREE,
  KEY `SYS_PJ_FICHIER_TYPE` (`SYS_PJ_FICHIER_TYPE`) 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 `sys_execute_traitements`
--

CREATE TABLE `sys_execute_traitements` (
  `ID_SYS_EXECUTE_TRAITEMENTS` varchar(32) NOT NULL DEFAULT '',
  `SYS_NOM_SCRIPT` varchar(100) NOT NULL DEFAULT '',
  `SYS_CLE_ACCES` varchar(50) 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',
  PRIMARY KEY (`ID_SYS_EXECUTE_TRAITEMENTS`),
  KEY `SYS_NOM_SCRIPT` (`SYS_NOM_SCRIPT`) 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
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_execute_traitements_detail`
--

CREATE TABLE `sys_execute_traitements_detail` (
  `ID_SYS_EXECUTE_TRAITEMENTS_DETAIL` double NOT NULL DEFAULT 0,
  `PID_SYS_EXECUTE_TRAITEMENTS` varchar(32) NOT NULL DEFAULT '',
  `SYS_TYPE_TRAITEMENT` varchar(10) NOT NULL DEFAULT '',
  `SYS_NOM_TRAITEMENT` varchar(100) NOT NULL DEFAULT '',
  `SYS_CODES_UTILISATEURS` blob DEFAULT NULL,
  `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',
  PRIMARY KEY (`ID_SYS_EXECUTE_TRAITEMENTS_DETAIL`),
  KEY `PID_SYS_EXECUTE_TRAITEMENTS` (`PID_SYS_EXECUTE_TRAITEMENTS`) USING BTREE,
  KEY `SYS_TYPE_TRAITEMENT` (`SYS_TYPE_TRAITEMENT`) USING BTREE,
  KEY `SYS_NOM_TRAITEMENT` (`SYS_NOM_TRAITEMENT`) 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
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_execute_traitements_journal`
--

CREATE TABLE `sys_execute_traitements_journal` (
  `ID_SYS_EXECUTE_TRAITEMENTS_JOURNAL` double NOT NULL DEFAULT 0,
  `SYS_DATE_TRAITEMENT` datetime DEFAULT NULL,
  `SYS_STATUT` varchar(200) NOT NULL DEFAULT '',
  `SYS_FICHIER_CONTENU` longblob DEFAULT NULL,
  `SYS_FICHIER_NOM` varchar(100) NOT NULL DEFAULT '',
  `SYS_FICHIER_TAILLE` double NOT NULL DEFAULT 0,
  `SYS_FICHIER_DATE` datetime DEFAULT NULL,
  `SYS_FICHIER_TYPE` varchar(50) 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',
  PRIMARY KEY (`ID_SYS_EXECUTE_TRAITEMENTS_JOURNAL`),
  KEY `SYS_DATE_TRAITEMENT` (`SYS_DATE_TRAITEMENT`) USING BTREE,
  KEY `SYS_STATUT` (`SYS_STATUT`) USING BTREE,
  KEY `SYS_FICHIER_NOM` (`SYS_FICHIER_NOM`) USING BTREE,
  KEY `SYS_FICHIER_DATE` (`SYS_FICHIER_DATE`) 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
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_filtrage_users`
--

CREATE TABLE `sys_filtrage_users` (
  `ID_SYS_FILTRAGE_USERS` varchar(32) NOT NULL DEFAULT '',
  `SYS_CODE_UTILISATEUR` 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_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_TABLE_FILTREE` varchar(30) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SYS_FILTRAGE_USERS`),
  KEY `SYS_CODE_UTILISATEUR` (`SYS_CODE_UTILISATEUR`) 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_TABLE_FILTREE` (`SYS_TABLE_FILTREE`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_formulaire_personnalise`
--

CREATE TABLE `sys_formulaire_personnalise` (
  `ID_SYS_FORMULAIRE_PERSONNALISE` varchar(32) NOT NULL DEFAULT '',
  `SYS_NOM_FICHIER_PLA` varchar(60) NOT NULL DEFAULT '',
  `SYS_ID_FORMULAIRE` varchar(120) NOT NULL DEFAULT '',
  `SYS_CODE_UTILISATEUR` varchar(20) NOT NULL DEFAULT '',
  `SYS_COORDONNEES` blob DEFAULT NULL,
  `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',
  PRIMARY KEY (`ID_SYS_FORMULAIRE_PERSONNALISE`),
  KEY `SYS_NOM_FICHIER_PLA` (`SYS_NOM_FICHIER_PLA`) USING BTREE,
  KEY `SYS_CODE_UTILISATEUR` (`SYS_CODE_UTILISATEUR`) 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
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_google_date_synchro`
--

CREATE TABLE `sys_google_date_synchro` (
  `ID_SYS_GOOGLE_DATE_SYNCHRO` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_DERNIERE_SYNCHRO` datetime DEFAULT NULL,
  PRIMARY KEY (`ID_SYS_GOOGLE_DATE_SYNCHRO`),
  KEY `SYS_DATE_DERNIERE_SYNCHRO` (`SYS_DATE_DERNIERE_SYNCHRO`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_google_journal`
--

CREATE TABLE `sys_google_journal` (
  `ID_SYS_GOOGLE_JOURNAL` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_SYNCHRO` datetime DEFAULT NULL,
  `SYS_STATUT` varchar(200) NOT NULL DEFAULT '',
  `SYS_TYPE` varchar(30) NOT NULL DEFAULT '',
  `SYS_FICHIER_CONTENU` longblob DEFAULT NULL,
  `SYS_FICHIER_NOM` varchar(100) NOT NULL DEFAULT '',
  `SYS_FICHIER_TAILLE` double NOT NULL DEFAULT 0,
  `SYS_FICHIER_DATE` datetime DEFAULT NULL,
  `SYS_FICHIER_TYPE` varchar(50) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SYS_GOOGLE_JOURNAL`),
  KEY `SYS_DATE_SYNCHRO` (`SYS_DATE_SYNCHRO`) USING BTREE,
  KEY `SYS_STATUT` (`SYS_STATUT`) USING BTREE,
  KEY `SYS_TYPE` (`SYS_TYPE`) USING BTREE,
  KEY `SYS_FICHIER_NOM` (`SYS_FICHIER_NOM`) USING BTREE,
  KEY `SYS_FICHIER_DATE` (`SYS_FICHIER_DATE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_groupes_users`
--

CREATE TABLE `sys_groupes_users` (
  `ACCES_ACCUEIL` char(1) NOT NULL DEFAULT '',
  `ACCES_ACCUEIL1` char(1) NOT NULL DEFAULT '',
  `ACCES_ADMINISTRATION` char(1) NOT NULL DEFAULT '',
  `ACCES_ADMINISTRATION1` char(1) NOT NULL DEFAULT '',
  `ACCES_AFFAIRE` char(1) NOT NULL DEFAULT '',
  `ACCES_AFFAIRE1` char(1) NOT NULL DEFAULT '',
  `ACCES_AGENDA` char(1) NOT NULL DEFAULT '',
  `ACCES_AGENDA1` char(1) NOT NULL DEFAULT '',
  `ACCES_ANALYSE` char(1) NOT NULL DEFAULT '',
  `ACCES_ANALYSE1` char(1) NOT NULL DEFAULT '',
  `ACCES_COMPTABILITE` char(1) NOT NULL DEFAULT '',
  `ACCES_COMPTABILITE1` char(1) NOT NULL DEFAULT '',
  `ACCES_GED` char(1) NOT NULL DEFAULT '',
  `ACCES_GED1` char(1) NOT NULL DEFAULT '',
  `ACCES_GESTION_COMMERCIALE` char(1) NOT NULL DEFAULT '',
  `ACCES_GESTION_COMMERCIALE1` char(1) NOT NULL DEFAULT '',
  `ACCES_IMPORT` char(1) NOT NULL DEFAULT '',
  `ACCES_IMPORT1` char(1) NOT NULL DEFAULT '',
  `ACCES_MARKETING` char(1) NOT NULL DEFAULT '',
  `ACCES_MARKETING1` char(1) NOT NULL DEFAULT '',
  `ACCES_PARC` char(1) NOT NULL DEFAULT '',
  `ACCES_PARC1` char(1) NOT NULL DEFAULT '',
  `ACCES_RH` char(1) NOT NULL DEFAULT '',
  `ACCES_RH1` char(1) NOT NULL DEFAULT '',
  `ACCES_TRESORERIE` char(1) NOT NULL DEFAULT '',
  `ACCES_TRESORERIE1` char(1) NOT NULL DEFAULT '',
  `GLOBAL` varchar(10) NOT NULL DEFAULT '',
  `ID_SYS_GROUPES_USERS` varchar(32) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(20) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `PID_SYS_GROUPES_USERS` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_GROUPE` varchar(20) NOT NULL DEFAULT '',
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_NOM_GROUPE` varchar(35) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SYS_GROUPES_USERS`),
  KEY `ACCES_ACCUEIL` (`ACCES_ACCUEIL`) USING BTREE,
  KEY `ACCES_ACCUEIL1` (`ACCES_ACCUEIL1`) USING BTREE,
  KEY `ACCES_ADMINISTRATION` (`ACCES_ADMINISTRATION`) USING BTREE,
  KEY `ACCES_ADMINISTRATION1` (`ACCES_ADMINISTRATION1`) USING BTREE,
  KEY `ACCES_AFFAIRE` (`ACCES_AFFAIRE`) USING BTREE,
  KEY `ACCES_AFFAIRE1` (`ACCES_AFFAIRE1`) USING BTREE,
  KEY `ACCES_AGENDA` (`ACCES_AGENDA`) USING BTREE,
  KEY `ACCES_AGENDA1` (`ACCES_AGENDA1`) USING BTREE,
  KEY `ACCES_ANALYSE` (`ACCES_ANALYSE`) USING BTREE,
  KEY `ACCES_ANALYSE1` (`ACCES_ANALYSE1`) USING BTREE,
  KEY `ACCES_COMPTABILITE` (`ACCES_COMPTABILITE`) USING BTREE,
  KEY `ACCES_COMPTABILITE1` (`ACCES_COMPTABILITE1`) USING BTREE,
  KEY `ACCES_GED` (`ACCES_GED`) USING BTREE,
  KEY `ACCES_GED1` (`ACCES_GED1`) USING BTREE,
  KEY `ACCES_GESTION_COMMERCIALE` (`ACCES_GESTION_COMMERCIALE`) USING BTREE,
  KEY `ACCES_GESTION_COMMERCIALE1` (`ACCES_GESTION_COMMERCIALE1`) USING BTREE,
  KEY `ACCES_TRESORERIE` (`ACCES_TRESORERIE`) USING BTREE,
  KEY `ACCES_TRESORERIE1` (`ACCES_TRESORERIE1`) USING BTREE,
  KEY `GLOBAL` (`GLOBAL`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `PID_SYS_GROUPES_USERS` (`PID_SYS_GROUPES_USERS`) USING BTREE,
  KEY `SYS_GROUPE` (`SYS_GROUPE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_histo_navigation`
--

CREATE TABLE `sys_histo_navigation` (
  `ID_SYS_HISTO_NAVIGATION` varchar(32) NOT NULL DEFAULT '',
  `SYS_CODE_UTILISATEUR` varchar(20) NOT NULL DEFAULT '',
  `SYS_COULEUR_FOND` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_HEURE` datetime DEFAULT NULL,
  `SYS_ID_ENREG` varchar(32) NOT NULL DEFAULT '',
  `SYS_NOM_FICHIER_PLA` varchar(60) NOT NULL DEFAULT '',
  `SYS_POLICE` varchar(30) NOT NULL DEFAULT '',
  `SYS_TABLE` varchar(50) NOT NULL DEFAULT '',
  `SYS_TITRE` varchar(300) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SYS_HISTO_NAVIGATION`),
  KEY `SYS_CODE_UTILISATEUR` (`SYS_CODE_UTILISATEUR`) USING BTREE,
  KEY `SYS_DATE_HEURE` (`SYS_DATE_HEURE`) USING BTREE,
  KEY `SYS_ID_ENREG` (`SYS_ID_ENREG`) USING BTREE,
  KEY `SYS_NOM_FICHIER_PLA` (`SYS_NOM_FICHIER_PLA`) USING BTREE,
  KEY `SYS_TABLE` (`SYS_TABLE`) USING BTREE,
  KEY `SYS_TITRE` (`SYS_TITRE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_multi_users`
--

CREATE TABLE `sys_multi_users` (
  `CODE_UTILISATEUR` varchar(20) NOT NULL DEFAULT '',
  `ID_SYS_MULTI_USERS` varchar(32) NOT NULL DEFAULT '',
  `NOTIFICATION_EFFECTUEE` 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_PID_TABLE_PRINCIPALE` varchar(32) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `UTILISATEUR_PRINCIPAL` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SYS_MULTI_USERS`),
  KEY `CODE_UTILISATEUR` (`CODE_UTILISATEUR`) USING BTREE,
  KEY `NOTIFICATION_EFFECTUEE` (`NOTIFICATION_EFFECTUEE`) 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_PID_TABLE_PRINCIPALE` (`SYS_PID_TABLE_PRINCIPALE`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE,
  KEY `SYS_USER_MODIFICATION` (`SYS_USER_MODIFICATION`) USING BTREE,
  KEY `UTILISATEUR_PRINCIPAL` (`UTILISATEUR_PRINCIPAL`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_notifications`
--

CREATE TABLE `sys_notifications` (
  `ID_SYS_NOTIFICATIONS` varchar(32) NOT NULL DEFAULT '',
  `SYS_CODE_USER_DESTINATAIRE` varchar(20) NOT NULL DEFAULT '',
  `SYS_CODE_USER_EMETTEUR` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_HEURE_NOTIFICATION` datetime 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_ID_ENREG` varchar(32) NOT NULL DEFAULT '',
  `SYS_MAIL_DIRECT_DESTINATAIRE` varchar(100) NOT NULL DEFAULT '',
  `SYS_MESSAGE` blob DEFAULT NULL,
  `SYS_MESSAGE_SMS` blob DEFAULT NULL,
  `SYS_NOM_FICHIER_PLA` varchar(60) NOT NULL DEFAULT '',
  `SYS_NOTIFICATION_ECRAN_FAIT_OK` char(1) NOT NULL DEFAULT '',
  `SYS_NOTIFICATION_ECRAN_OK` char(1) NOT NULL DEFAULT '',
  `SYS_NOTIFICATION_EMAIL_FAIT_OK` char(1) NOT NULL DEFAULT '',
  `SYS_NOTIFICATION_EMAIL_OK` char(1) NOT NULL DEFAULT '',
  `SYS_NOTIFICATION_SMS_FAIT_OK` char(1) NOT NULL DEFAULT '',
  `SYS_NOTIFICATION_SMS_OK` char(1) NOT NULL DEFAULT '',
  `SYS_TABLE` varchar(50) NOT NULL DEFAULT '',
  `SYS_TEL_SMS_DIRECT_DESTINATAIRE` varchar(100) NOT NULL DEFAULT '',
  `SYS_TITRE` varchar(100) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SYS_NOTIFICATIONS`),
  KEY `SYS_CODE_USER_DESTINATAIRE` (`SYS_CODE_USER_DESTINATAIRE`) USING BTREE,
  KEY `SYS_CODE_USER_EMETTEUR` (`SYS_CODE_USER_EMETTEUR`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_HEURE_NOTIFICATION` (`SYS_DATE_HEURE_NOTIFICATION`) 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_ID_ENREG` (`SYS_ID_ENREG`) USING BTREE,
  KEY `SYS_NOM_FICHIER_PLA` (`SYS_NOM_FICHIER_PLA`) USING BTREE,
  KEY `SYS_TABLE` (`SYS_TABLE`) USING BTREE,
  KEY `SYS_TITRE` (`SYS_TITRE`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_notifications_erreurs`
--

CREATE TABLE `sys_notifications_erreurs` (
  `ID_SYS_NOTIFICATIONS_ERREURS` varchar(32) NOT NULL DEFAULT '',
  `SYS_CODE_USER_DESTINATAIRE` varchar(20) NOT NULL DEFAULT '',
  `SYS_CODE_USER_EMETTEUR` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_HEURE_NOTIFICATION` datetime DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_ERREUR_NOTIFICATION` varchar(25) NOT NULL DEFAULT '',
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_MESSAGE` blob DEFAULT NULL,
  `SYS_TITRE` varchar(100) NOT NULL DEFAULT '',
  `SYS_TYPE_NOTIFICATION` varchar(25) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SYS_NOTIFICATIONS_ERREURS`),
  KEY `SYS_CODE_USER_DESTINATAIRE` (`SYS_CODE_USER_DESTINATAIRE`) USING BTREE,
  KEY `SYS_CODE_USER_EMETTEUR` (`SYS_CODE_USER_EMETTEUR`) USING BTREE,
  KEY `SYS_DATE_CREATION` (`SYS_DATE_CREATION`) USING BTREE,
  KEY `SYS_DATE_HEURE_NOTIFICATION` (`SYS_DATE_HEURE_NOTIFICATION`) USING BTREE,
  KEY `SYS_DATE_MODIFICATION` (`SYS_DATE_MODIFICATION`) USING BTREE,
  KEY `SYS_ERREUR_NOTIFICATION` (`SYS_ERREUR_NOTIFICATION`) USING BTREE,
  KEY `SYS_HEURE_CREATION` (`SYS_HEURE_CREATION`) USING BTREE,
  KEY `SYS_HEURE_MODIFICATION` (`SYS_HEURE_MODIFICATION`) USING BTREE,
  KEY `SYS_TITRE` (`SYS_TITRE`) USING BTREE,
  KEY `SYS_TYPE_NOTIFICATION` (`SYS_TYPE_NOTIFICATION`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_planning_jours_indisponibles`
--

CREATE TABLE `sys_planning_jours_indisponibles` (
  `ID_SYS_PLANNING_JOURS_INDISPONIBLES` varchar(32) NOT NULL DEFAULT '',
  `SYS_CODES_RESSOURCES_AUTORISES` varchar(100) NOT NULL DEFAULT '',
  `SYS_CODES_RESSOURCES_EXCLUS` varchar(100) NOT NULL DEFAULT '',
  `SYS_CODE_JOUR` double NOT NULL DEFAULT 0,
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_DEBUT` varchar(10) NOT NULL DEFAULT '',
  `SYS_DATE_FIN` varchar(10) NOT NULL DEFAULT '',
  `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_NOM_PERIODE_AFFICHEE` varchar(50) NOT NULL DEFAULT '',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `SYS_TYPE_PERIODE` double NOT NULL DEFAULT 0,
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SYS_PLANNING_JOURS_INDISPONIBLES`),
  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 `sys_requetes_memorisees`
--

CREATE TABLE `sys_requetes_memorisees` (
  `ID_SYS_REQUETES_MEMORISEES` varchar(32) NOT NULL DEFAULT '',
  `SYS_CODE_UTILISATEUR` varchar(100) NOT NULL DEFAULT '',
  `SYS_CONTENU_REQUETE_MEMORISEE` blob DEFAULT NULL,
  `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_NOM_REQUETE_MEMORISEE` varchar(100) NOT NULL DEFAULT '',
  `SYS_NOM_TRAITEMENT` varchar(60) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SYS_REQUETES_MEMORISEES`),
  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_NOM_REQUETE_MEMORISEE` (`SYS_NOM_REQUETE_MEMORISEE`) USING BTREE,
  KEY `SYS_USER_CREATION` (`SYS_USER_CREATION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_rgpd_bdd`
--

CREATE TABLE `sys_rgpd_bdd` (
  `ID_SYS_RGPD_BDD` varchar(32) NOT NULL DEFAULT '',
  `SYS_DONNEES_PERSONNES_MINEURES` char(1) NOT NULL DEFAULT '',
  `SYS_LOCALISATION_STOCKAGE_DONNEES` blob DEFAULT NULL,
  `SYS_NOM_DPO` blob DEFAULT NULL,
  `SYS_SECURITE_DONNEES` blob DEFAULT NULL,
  `SYS_SOUS_TRAITANTS` blob DEFAULT NULL,
  PRIMARY KEY (`ID_SYS_RGPD_BDD`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_rgpd_champs`
--

CREATE TABLE `sys_rgpd_champs` (
  `ID_SYS_RGPD_CHAMPS` varchar(32) NOT NULL DEFAULT '',
  `PID_SYS_RGPD_TABLES` varchar(32) NOT NULL DEFAULT '',
  `SYS_CATEGORIE_DONNEES` varchar(3) NOT NULL DEFAULT '',
  `SYS_NOM_CHAMP` varchar(100) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SYS_RGPD_CHAMPS`),
  KEY `PID_SYS_RGPD_TABLES` (`PID_SYS_RGPD_TABLES`) USING BTREE,
  KEY `SYS_NOM_CHAMP` (`SYS_NOM_CHAMP`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_rgpd_tables`
--

CREATE TABLE `sys_rgpd_tables` (
  `ID_SYS_RGPD_TABLES` varchar(32) NOT NULL DEFAULT '',
  `SYS_DESTINATAIRES_DONNEES_EXTERNES` blob DEFAULT NULL,
  `SYS_DUREE_CONSERVATION` blob DEFAULT NULL,
  `SYS_FINALITES` blob DEFAULT NULL,
  `SYS_MODALITES_INFORMATIONS` blob DEFAULT NULL,
  `SYS_NOM_TABLE` varchar(100) NOT NULL DEFAULT '',
  `SYS_ORIGINE_DONNEES` blob DEFAULT NULL,
  `SYS_TYPE_DONNEES` blob DEFAULT NULL,
  `SYS_USAGERS_DONNEES` blob DEFAULT NULL,
  PRIMARY KEY (`ID_SYS_RGPD_TABLES`),
  KEY `SYS_NOM_TABLE` (`SYS_NOM_TABLE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_track_emailing`
--

CREATE TABLE `sys_track_emailing` (
  `ID_SYS_TRACK_EMAILING` varchar(32) NOT NULL DEFAULT '',
  `SYS_CATEGORIE_NON_DELIVRE` varchar(25) NOT NULL DEFAULT '',
  `SYS_CODE_CAMPAGNE` varchar(32) NOT NULL DEFAULT '',
  `SYS_CODE_DESTINATAIRE` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE` date DEFAULT NULL,
  `SYS_EMAIL_DESTINATAIRE` varchar(100) NOT NULL DEFAULT '',
  `SYS_HEURE` time NOT NULL DEFAULT '00:00:00',
  `SYS_LIEN_REEL` varchar(100) NOT NULL DEFAULT '',
  `SYS_MESSAGE_NON_DELIVRE` varchar(50) NOT NULL DEFAULT '',
  `SYS_MOTIF_UNSUBSCRIBED` varchar(100) NOT NULL DEFAULT '',
  `SYS_TRAITE` char(1) NOT NULL DEFAULT '',
  `SYS_TYPE_ACTION` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SYS_TRACK_EMAILING`),
  KEY `SYS_CATEGORIE_NON_DELIVRE` (`SYS_CATEGORIE_NON_DELIVRE`) USING BTREE,
  KEY `SYS_CODE_CAMPAGNE` (`SYS_CODE_CAMPAGNE`) USING BTREE,
  KEY `SYS_CODE_DESTINATAIRE` (`SYS_CODE_DESTINATAIRE`) USING BTREE,
  KEY `SYS_DATE` (`SYS_DATE`) USING BTREE,
  KEY `SYS_EMAIL_DESTINATAIRE` (`SYS_EMAIL_DESTINATAIRE`) USING BTREE,
  KEY `SYS_HEURE` (`SYS_HEURE`) USING BTREE,
  KEY `SYS_LIEN_REEL` (`SYS_LIEN_REEL`) USING BTREE,
  KEY `SYS_MESSAGE_NON_DELIVRE` (`SYS_MESSAGE_NON_DELIVRE`) USING BTREE,
  KEY `SYS_MOTIF_UNSUBSCRIBED` (`SYS_MOTIF_UNSUBSCRIBED`) USING BTREE,
  KEY `SYS_TRAITE` (`SYS_TRAITE`) USING BTREE,
  KEY `SYS_TYPE_ACTION` (`SYS_TYPE_ACTION`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_unsubscribed_emailing`
--

CREATE TABLE `sys_unsubscribed_emailing` (
  `ID_SYS_UNSUBSCRIBED_EMAILING` varchar(32) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_EMAIL_UNSUBSCRIBED` varchar(100) NOT NULL DEFAULT '',
  `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_SYS_UNSUBSCRIBED_EMAILING`),
  KEY `SYS_EMAIL_UNSUBSCRIBED` (`SYS_EMAIL_UNSUBSCRIBED`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_users`
--

CREATE TABLE `sys_users` (
  `ADMIN` char(1) NOT NULL DEFAULT '',
  `ADRESSE` varchar(36) NOT NULL DEFAULT '',
  `CODE_POSTAL` varchar(9) NOT NULL DEFAULT '',
  `DR` char(1) NOT NULL DEFAULT '',
  `GLOBAL` varchar(10) NOT NULL DEFAULT '',
  `H1` char(1) NOT NULL DEFAULT '',
  `H2` char(1) NOT NULL DEFAULT '',
  `H3` char(1) NOT NULL DEFAULT '',
  `H4` char(1) NOT NULL DEFAULT '',
  `H5` char(1) NOT NULL DEFAULT '',
  `H6` char(1) NOT NULL DEFAULT '',
  `H7` char(1) NOT NULL DEFAULT '',
  `H8` char(1) NOT NULL DEFAULT '',
  `H9` char(1) NOT NULL DEFAULT '',
  `ID_SYS_USERS` varchar(32) NOT NULL DEFAULT '',
  `LISTE_FILTRES` varchar(50) NOT NULL DEFAULT '',
  `MON_FILTRAGE` varchar(2) NOT NULL DEFAULT '',
  `NOM_AGENDA` varchar(40) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(100) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `OBJECTIF` double NOT NULL DEFAULT 0,
  `OBJECTIF_RDV` double NOT NULL DEFAULT 0,
  `PAYS` varchar(25) NOT NULL DEFAULT '',
  `SIGNATURE` blob DEFAULT NULL,
  `SYS_ACCES_COMPLET` char(1) NOT NULL DEFAULT '',
  `SYS_ACCES_CUBE` char(1) NOT NULL DEFAULT '',
  `SYS_ACCES_VIEWER` char(1) NOT NULL DEFAULT '',
  `SYS_ADRESSE` varchar(36) NOT NULL DEFAULT '',
  `SYS_CODE_POSTAL` varchar(9) NOT NULL DEFAULT '',
  `SYS_CODE_UTILISATEUR` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CREATION` date DEFAULT NULL,
  `SYS_DATE_MODIFICATION` date DEFAULT NULL,
  `SYS_EMAIL` varchar(80) NOT NULL DEFAULT '',
  `SYS_FILTRAGE` varchar(20) NOT NULL DEFAULT '',
  `SYS_GROUPE` varchar(20) NOT NULL DEFAULT '',
  `SYS_HEURE_CREATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_MODIFICATION` time NOT NULL DEFAULT '00:00:00',
  `SYS_LANGUE` varchar(20) NOT NULL DEFAULT '',
  `SYS_LISTE_FILTRES` varchar(50) NOT NULL DEFAULT '',
  `SYS_LOGIN` varchar(20) NOT NULL DEFAULT '',
  `SYS_MEMORISER_REQUETE_PUBLIQUE_OK` varchar(1) NOT NULL DEFAULT '',
  `SYS_MON_FILTRAGE` varchar(2) NOT NULL DEFAULT '',
  `SYS_MOT_PASSE` varchar(20) NOT NULL DEFAULT '',
  `SYS_MOT_PASSE_EMAIL` varchar(80) NOT NULL DEFAULT '',
  `SYS_NOM_PRENOM_EMAIL` varchar(80) NOT NULL DEFAULT '',
  `SYS_NOM_UTILISATEUR` varchar(30) NOT NULL DEFAULT '',
  `SYS_NOM_UTILISATEUR_EMAIL` varchar(80) NOT NULL DEFAULT '',
  `SYS_PAYS` varchar(25) NOT NULL DEFAULT '',
  `SYS_REPONDRE_A_EMAIL` varchar(80) NOT NULL DEFAULT '',
  `SYS_SIGNATURE` blob DEFAULT NULL,
  `SYS_TELEPHONE_MOBILE` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_VILLE` varchar(45) NOT NULL DEFAULT '',
  `VILLE` varchar(45) NOT NULL DEFAULT '',
  `SYS_ACCES_PARTIEL` char(1) NOT NULL DEFAULT '',
  `DEPARTEMENT` varchar(20) NOT NULL DEFAULT '',
  `EC_DEBUT_EXERCICE` date DEFAULT NULL,
  `EC_DEBUT_PERIO` date DEFAULT NULL,
  `EC_FIN_EXERCICE` date DEFAULT NULL,
  `EC_FIN_PERIO` date DEFAULT NULL,
  `EC_MOIS_TRAV` varchar(5) NOT NULL DEFAULT '',
  `EC_NOM_TRESO` varchar(10) NOT NULL DEFAULT '',
  `EC_N_DOSSIER` double NOT NULL DEFAULT 0,
  `EC_N_EXERCICE` double NOT NULL DEFAULT 0,
  `EC_N_TRESO` varchar(10) NOT NULL DEFAULT '',
  `SYS_RGPD_RESPONSABLE_SILVERTOOL` char(1) NOT NULL DEFAULT '',
  `SYS_RGPD_RESPONSABLE_SILVERTOOL2` char(1) NOT NULL DEFAULT '',
  `SYS_RGPD_RESPONSABLE_SILVERTOOL3` char(1) NOT NULL DEFAULT '',
  `SYS_ACCES_SUPPORT` char(1) NOT NULL DEFAULT '',
  `FONCTION` varchar(40) NOT NULL DEFAULT '',
  `SYS_PHOTO_NOM` varchar(50) NOT NULL DEFAULT '',
  `SYS_PHOTO_CONTENU` longblob DEFAULT NULL,
  `SYS_PHOTO_TAILLE` double NOT NULL DEFAULT 0,
  `SYS_PHOTO_TYPE` varchar(50) NOT NULL DEFAULT '',
  `SYS_PHOTO_DATE` datetime DEFAULT NULL,
  `SIGNATURE_FICHIER_CONTENU` longblob DEFAULT NULL,
  `SIGNATURE_FICHIER_DATE` datetime DEFAULT NULL,
  `SIGNATURE_FICHIER_NOM` varchar(100) NOT NULL DEFAULT '',
  `SIGNATURE_FICHIER_TAILLE` double NOT NULL DEFAULT 0,
  `SIGNATURE_FICHIER_TYPE` varchar(50) NOT NULL DEFAULT '',
  `SYS_PHOTO_FICHIER_CONTENU` longblob DEFAULT NULL,
  `SYS_PHOTO_FICHIER_DATE` datetime DEFAULT NULL,
  `SYS_PHOTO_FICHIER_NOM` varchar(50) NOT NULL DEFAULT '',
  `SYS_PHOTO_FICHIER_TAILLE` double NOT NULL DEFAULT 0,
  `SYS_PHOTO_FICHIER_TYPE` varchar(50) NOT NULL DEFAULT '',
  `EC_FIN_EXERCICE1` date DEFAULT NULL,
  `EC_FIN_EXERCICE5` date DEFAULT NULL,
  `SYS_CHAT_OK` char(1) NOT NULL DEFAULT '',
  `NOM_GROUPE` varchar(50) NOT NULL DEFAULT '',
  `ALERTE_GED` char(1) NOT NULL DEFAULT '',
  `NEWSLETTER` char(1) NOT NULL DEFAULT '',
  `METIER_AGENDA` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SYS_USERS`),
  KEY `ADMIN` (`ADMIN`) USING BTREE,
  KEY `DR` (`DR`) USING BTREE,
  KEY `GLOBAL` (`GLOBAL`) USING BTREE,
  KEY `H1` (`H1`) USING BTREE,
  KEY `H2` (`H2`) USING BTREE,
  KEY `H3` (`H3`) USING BTREE,
  KEY `H4` (`H4`) USING BTREE,
  KEY `H5` (`H5`) USING BTREE,
  KEY `H6` (`H6`) USING BTREE,
  KEY `H7` (`H7`) USING BTREE,
  KEY `H8` (`H8`) USING BTREE,
  KEY `H9` (`H9`) USING BTREE,
  KEY `NOM_AGENDA` (`NOM_AGENDA`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `SYS_CODE_UTILISATEUR` (`SYS_CODE_UTILISATEUR`) USING BTREE,
  KEY `SYS_FILTRAGE` (`SYS_FILTRAGE`) USING BTREE,
  KEY `SYS_GROUPE` (`SYS_GROUPE`) USING BTREE,
  KEY `SYS_LOGIN` (`SYS_LOGIN`) USING BTREE,
  KEY `SYS_NOM_UTILISATEUR` (`SYS_NOM_UTILISATEUR`) USING BTREE,
  KEY `DEPARTEMENT` (`DEPARTEMENT`) USING BTREE,
  KEY `EC_DEBUT_EXERCICE` (`EC_DEBUT_EXERCICE`) USING BTREE,
  KEY `EC_DEBUT_PERIO` (`EC_DEBUT_PERIO`) USING BTREE,
  KEY `EC_FIN_EXERCICE` (`EC_FIN_EXERCICE`) USING BTREE,
  KEY `EC_FIN_PERIO` (`EC_FIN_PERIO`) USING BTREE,
  KEY `EC_N_DOSSIER` (`EC_N_DOSSIER`) USING BTREE,
  KEY `EC_N_EXERCICE` (`EC_N_EXERCICE`) USING BTREE,
  KEY `SYS_PHOTO_NOM` (`SYS_PHOTO_NOM`) USING BTREE,
  KEY `SYS_PHOTO_TYPE` (`SYS_PHOTO_TYPE`) USING BTREE,
  KEY `SYS_PHOTO_DATE` (`SYS_PHOTO_DATE`) USING BTREE,
  KEY `SIGNATURE_FICHIER_DATE` (`SIGNATURE_FICHIER_DATE`) USING BTREE,
  KEY `SIGNATURE_FICHIER_NOM` (`SIGNATURE_FICHIER_NOM`) USING BTREE,
  KEY `SYS_PHOTO_FICHIER_DATE` (`SYS_PHOTO_FICHIER_DATE`) USING BTREE,
  KEY `SYS_PHOTO_FICHIER_NOM` (`SYS_PHOTO_FICHIER_NOM`) USING BTREE,
  KEY `SYS_PHOTO_FICHIER_TYPE` (`SYS_PHOTO_FICHIER_TYPE`) USING BTREE,
  KEY `EC_FIN_EXERCICE1` (`EC_FIN_EXERCICE1`) USING BTREE,
  KEY `EC_FIN_EXERCICE5` (`EC_FIN_EXERCICE5`) USING BTREE,
  KEY `FONCTION` (`FONCTION`) USING BTREE,
  KEY `NEWSLETTER` (`NEWSLETTER`) USING BTREE,
  KEY `NOM_GROUPE` (`NOM_GROUPE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_users_connectes`
--

CREATE TABLE `sys_users_connectes` (
  `CODE_USER` varchar(20) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(20) NOT NULL DEFAULT '',
  `ID_SYS_USERS_CONNECTE` varchar(32) NOT NULL DEFAULT '',
  `NO_SESSION` varchar(50) NOT NULL DEFAULT '',
  `SYS_DATE_CONNEXION` date DEFAULT NULL,
  `SYS_HEURE_CONNEXION` time NOT NULL DEFAULT '00:00:00',
  `SYS_ID_FICHE_VERROUILLEE` varchar(32) NOT NULL DEFAULT '',
  PRIMARY KEY (`CODE_USER`),
  KEY `ID_SYS_USERS_CONNECTE` (`ID_SYS_USERS_CONNECTE`) USING BTREE,
  KEY `SYS_ID_FICHE_VERROUILLEE` (`SYS_ID_FICHE_VERROUILLEE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_users_connectes_historique`
--

CREATE TABLE `sys_users_connectes_historique` (
  `ID_SYS_USERS_CONNECTE_HISTORIQUE` varchar(32) NOT NULL DEFAULT '',
  `PID_SYS_USERS_CONNECTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_ADRESSE_IP` varchar(20) NOT NULL DEFAULT '',
  `SYS_BOUTON_DECONNEXION_UTILISE` char(10) NOT NULL DEFAULT '',
  `SYS_CODE_USER` varchar(20) NOT NULL DEFAULT '',
  `SYS_DATE_CONNEXION` date DEFAULT NULL,
  `SYS_DATE_DECONNEXION` date DEFAULT NULL,
  `SYS_DUREE_CONNEXION` double NOT NULL DEFAULT 0,
  `SYS_HEURE_CONNEXION` time NOT NULL DEFAULT '00:00:00',
  `SYS_HEURE_DECONNEXION` time NOT NULL DEFAULT '00:00:00',
  `SYS_USER_AGENT` varchar(100) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_SYS_USERS_CONNECTE_HISTORIQUE`),
  KEY `PID_SYS_USERS_CONNECTE` (`PID_SYS_USERS_CONNECTE`) USING BTREE,
  KEY `SYS_CODE_USER` (`SYS_CODE_USER`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `sys_users_dependances`
--

CREATE TABLE `sys_users_dependances` (
  `ID_SYS_USERS_DEPENDANCES` varchar(32) NOT NULL DEFAULT '',
  `SYS_CODE_UTILISATEUR_LIE` varchar(20) NOT NULL DEFAULT '',
  `SYS_CODE_UTILISATEUR_PRINCIPAL` 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 '',
  PRIMARY KEY (`ID_SYS_USERS_DEPENDANCES`),
  KEY `SYS_CODE_UTILISATEUR_LIE` (`SYS_CODE_UTILISATEUR_LIE`) USING BTREE,
  KEY `SYS_CODE_UTILISATEUR_PRINCIPAL` (`SYS_CODE_UTILISATEUR_PRINCIPAL`) 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
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `table_inter_facture`
--

CREATE TABLE `table_inter_facture` (
  `ID_TABLE_INTER_FACTURE` 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',
  `DEBIT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `CREDIT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DATE` date DEFAULT NULL,
  `DATE_ECHEANCE` date DEFAULT NULL,
  `DATE_TRESO` date DEFAULT NULL,
  `N_DOSSIER` decimal(12,0) NOT NULL DEFAULT 0,
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `VTF` char(1) NOT NULL DEFAULT '',
  `RD` decimal(12,0) NOT NULL DEFAULT 0,
  `CODE_JOURNAL` varchar(10) NOT NULL DEFAULT '',
  `NOM_JOURNAL` varchar(10) NOT NULL DEFAULT '',
  `N_EXERCICE` decimal(12,0) NOT NULL DEFAULT 0,
  `N_PIECE` varchar(20) NOT NULL DEFAULT '',
  `LIBELLE` varchar(50) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL` varchar(8) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(35) NOT NULL DEFAULT '',
  `IDENTIFICATION_TIERS` varchar(32) NOT NULL DEFAULT '',
  `N_IMPORT` varchar(20) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(10) NOT NULL DEFAULT '',
  `L_TVA` decimal(12,0) NOT NULL DEFAULT 0,
  `TYPE_TVA_NUMERO` decimal(12,0) NOT NULL DEFAULT 0,
  `TYPE_TVA_LIBELLE` varchar(50) NOT NULL DEFAULT '',
  `N_LIGNE` decimal(12,0) NOT NULL DEFAULT 0,
  `DEBIT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `CREDIT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `N_TRESO` decimal(12,0) NOT NULL DEFAULT 0,
  `NOM_TRESO` varchar(10) NOT NULL DEFAULT '',
  `N_TYPE_REGLEMENT` decimal(12,0) NOT NULL DEFAULT 0,
  `TYPE_REGLEMENT` varchar(20) NOT NULL DEFAULT '',
  `HISTO` varchar(100) NOT NULL DEFAULT '',
  `DEVISE_1` varchar(12) NOT NULL DEFAULT '',
  `DEVISE_2` varchar(10) 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,
  `COMPTAGE_TIERS` varchar(10) NOT NULL DEFAULT '',
  `N_PIECE_INTERNE` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_TABLE_INTER_FACTURE`),
  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 `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `CODE_JOURNAL` (`CODE_JOURNAL`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `IDENTIFICATION_TIERS` (`IDENTIFICATION_TIERS`) USING BTREE,
  KEY `N_TRESO` (`N_TRESO`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `table_inter_salaire`
--

CREATE TABLE `table_inter_salaire` (
  `ID_TABLE_INTER_SALAIRE` 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_LIGNE` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `N_CPTE_GENERAL` double NOT NULL DEFAULT 0,
  `DEBIT` double NOT NULL DEFAULT 0,
  `CREDIT` double NOT NULL DEFAULT 0,
  `NOM_SALARIE` varchar(50) NOT NULL DEFAULT '',
  `IDENT_SALARIE` varchar(32) NOT NULL DEFAULT '',
  `CLASSIFICATION` varchar(10) NOT NULL DEFAULT '',
  `CODE` double NOT NULL DEFAULT 0,
  `N_COMPTE_TIERS` varchar(40) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `LIBELLE` varchar(100) NOT NULL DEFAULT '',
  `MATRICULE` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_TABLE_INTER_SALAIRE`),
  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_LIGNE` (`N_LIGNE`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `N_CPTE_GENERAL` (`N_CPTE_GENERAL`) USING BTREE,
  KEY `NOM_SALARIE` (`NOM_SALARIE`) USING BTREE,
  KEY `IDENT_SALARIE` (`IDENT_SALARIE`) USING BTREE,
  KEY `CODE` (`CODE`) USING BTREE,
  KEY `N_COMPTE_TIERS` (`N_COMPTE_TIERS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `MATRICULE` (`MATRICULE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `tarif_det`
--

CREATE TABLE `tarif_det` (
  `CODE_ARTICLE` varchar(10) NOT NULL DEFAULT '',
  `CONCAT_TARIF_ART` varchar(20) NOT NULL DEFAULT '',
  `ID_TARIF_DET` varchar(32) NOT NULL DEFAULT '',
  `NOM` varchar(40) NOT NULL DEFAULT '',
  `PID_TARIF_ET` varchar(32) NOT NULL DEFAULT '',
  `POIDS_UNITAIRE` double NOT NULL DEFAULT 0,
  `PRIX_VENTE_KILO_HT` double NOT NULL DEFAULT 0,
  `PRIX_VENTE_PUBLIC_KILO_HT` double NOT NULL DEFAULT 0,
  `PRIX_VENTE_PUBLIC_UNITAIRE_HT` double NOT NULL DEFAULT 0,
  `PRIX_VENTE_UNITAIRE_HT` double NOT NULL DEFAULT 0,
  `REMISE_EURO` double NOT NULL DEFAULT 0,
  `REMISE_POURC` 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 '',
  `CODE_CLIENT` varchar(32) NOT NULL DEFAULT '',
  `LOC_2EM_CONDUCTEUR` double NOT NULL DEFAULT 0,
  `LOC_3EM_CONDUCTEUR` double NOT NULL DEFAULT 0,
  `LOC_4EM_CONDUCTEUR` double NOT NULL DEFAULT 0,
  `LOC_DATE` date DEFAULT NULL,
  `LOC_DEPOT_GARANTIE_SUP` double NOT NULL DEFAULT 0,
  `LOC_ENTRETIEN_NON_REALISE` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_ADMIN_CONTRAVENTION` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_CARBURANT` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_DOSSIER` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_JOUR_SUP` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_KM_SUP` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_NETTOYAGE_COMPLET` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_NETTOYAGE_EXTER` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_NETTOYAGE_INT` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_REJET_PRELEVEMENT` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_SINISTRE_RESPONSABLE` double NOT NULL DEFAULT 0,
  `LOC_NON_RESTITUTION_PAPIER` double NOT NULL DEFAULT 0,
  `LOC_PERTE_CASSE_CLE` double NOT NULL DEFAULT 0,
  `LOC_RESITUTION_ELEMENT_SECU` double NOT NULL DEFAULT 0,
  `LOC_RESTITUTION_CONTRAT_AMIABLE` double NOT NULL DEFAULT 0,
  `LOC_RESTITUTION_VEHICULE` double NOT NULL DEFAULT 0,
  `LOC_SINISTRE_RESPONSABLE_A_CHARGE` double NOT NULL DEFAULT 0,
  `LOC_TARIF_MENSUEL` double NOT NULL DEFAULT 0,
  `LOC_TYPE_MOTEUR` varchar(32) NOT NULL DEFAULT '',
  `LOC_UTILISATION_NON_CONFORME` double NOT NULL DEFAULT 0,
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `LOC_2EM_CONDUCTEUR_HT` double NOT NULL DEFAULT 0,
  `LOC_3EM_CONDUCTEUR_HT` double NOT NULL DEFAULT 0,
  `LOC_4EM_CONDUCTEUR_HT` double NOT NULL DEFAULT 0,
  `LOC_DEPOT_GARANTIE_SUP_HT` double NOT NULL DEFAULT 0,
  `LOC_ENTRETIEN_NON_REALISE_HT` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_ADMIN_CONTRAVENTION_HT` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_CARBURANT_HT` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_DOSSIER_HT` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_JOUR_SUP_HT` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_KM_SUP_HT` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_NETTOYAGE_COMPLET_HT` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_NETTOYAGE_EXTER_HT` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_NETTOYAGE_INT_HT` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_REJET_PRELEVEMENT_HT` double NOT NULL DEFAULT 0,
  `LOC_FRAIS_SINISTRE_RESPONSABLE_HT` double NOT NULL DEFAULT 0,
  `LOC_NON_RESTITUTION_PAPIER_HT` double NOT NULL DEFAULT 0,
  `LOC_PERTE_CASSE_CLE_HT` double NOT NULL DEFAULT 0,
  `LOC_RESITUTION_ELEMENT_SECU_HT` double NOT NULL DEFAULT 0,
  `LOC_RESTITUTION_CONTRAT_AMIABLE_HT` double NOT NULL DEFAULT 0,
  `LOC_RESTITUTION_VEHICULE_HT` double NOT NULL DEFAULT 0,
  `LOC_SINISTRE_RESPONSABLE_A_CHARGE_HT` double NOT NULL DEFAULT 0,
  `LOC_TARIF_MENSUEL_HT` double NOT NULL DEFAULT 0,
  `LOC_UTILISATION_NON_CONFORME_HT` double NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_TARIF_DET`),
  KEY `CODE_ARTICLE` (`CODE_ARTICLE`) USING BTREE,
  KEY `CONCAT_TARIF_ART` (`CONCAT_TARIF_ART`) USING BTREE,
  KEY `PID_TARIF_ET` (`PID_TARIF_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 `tarif_et`
--

CREATE TABLE `tarif_et` (
  `ID_TARIF_ET` varchar(32) NOT NULL DEFAULT '',
  `NOM_TARIF` varchar(30) NOT NULL DEFAULT '',
  `NOTE` blob DEFAULT NULL,
  `N_TARIF` varchar(10) 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 '',
  `CODE_CLIENT` varchar(32) NOT NULL DEFAULT '',
  `LOCATION` char(1) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `PAR_DEFAUT` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_TARIF_ET`),
  KEY `N_TARIF` (`N_TARIF`) 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 `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `NOM_TARIF` (`NOM_TARIF`) USING BTREE,
  KEY `PAR_DEFAUT` (`PAR_DEFAUT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `tasks`
--

CREATE TABLE `tasks` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `status` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Table structure for table `tdb`
--

CREATE TABLE `tdb` (
  `DEBUT_EX` date DEFAULT NULL,
  `ID_TDB` varchar(32) NOT NULL DEFAULT '',
  `NM_DOSSIER` varchar(50) 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 '',
  PRIMARY KEY (`ID_TDB`),
  KEY `DEBUT_EX` (`DEBUT_EX`) USING BTREE,
  KEY `NM_DOSSIER` (`NM_DOSSIER`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) 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 `test_dedouble_grand_livre`
--

CREATE TABLE `test_dedouble_grand_livre` (
  `CENTRE` varchar(10) NOT NULL DEFAULT '',
  `CJ_FOL` varchar(10) NOT NULL DEFAULT '',
  `CREDIT` double NOT NULL DEFAULT 0,
  `DATE` date DEFAULT NULL,
  `DEBIT` double NOT NULL DEFAULT 0,
  `DT_ECH` date DEFAULT NULL,
  `ID_TEST_DEDOUBLE_GRAND_LIVRE` varchar(32) NOT NULL DEFAULT '',
  `LIBELLE` varchar(100) NOT NULL DEFAULT '',
  `LT` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` varchar(3) NOT NULL DEFAULT '',
  `N_IMPORT` varchar(10) NOT NULL DEFAULT '',
  `PERIODICITE` varchar(10) NOT NULL DEFAULT '',
  `PID_TEST_DEDOUBLE_GRAND_LIVRE` varchar(32) NOT NULL DEFAULT '',
  `PIECE` varchar(10) NOT NULL DEFAULT '',
  `QTE` varchar(10) NOT NULL DEFAULT '',
  `SOLDE` varchar(10) 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 '',
  `TIERS` varchar(10) NOT NULL DEFAULT '',
  `TYPE_TIERS` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_TEST_DEDOUBLE_GRAND_LIVRE`),
  KEY `PID_TEST_DEDOUBLE_GRAND_LIVRE` (`PID_TEST_DEDOUBLE_GRAND_LIVRE`) 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 `tiers`
--

CREATE TABLE `tiers` (
  `ACTIVITE` varchar(200) NOT NULL DEFAULT '',
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `A_SUPPRIMER` char(1) NOT NULL DEFAULT '',
  `CLT` varchar(20) NOT NULL DEFAULT '',
  `CODE_CLIENT` varchar(200) NOT NULL DEFAULT '',
  `CODE_POSTAL` double NOT NULL DEFAULT 0,
  `CODE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `COMPTE_ACTF` char(1) NOT NULL DEFAULT '',
  `DATE_IMPORT` date DEFAULT NULL,
  `DPT` varchar(50) NOT NULL DEFAULT '',
  `EMAIL` varchar(100) NOT NULL DEFAULT '',
  `ICG` varchar(20) NOT NULL DEFAULT '',
  `ID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(200) NOT NULL DEFAULT '',
  `PAYS` varchar(50) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(100) NOT NULL DEFAULT '',
  `SITE_INTERNET` varchar(150) NOT NULL DEFAULT '',
  `SUIVI_PAR` varchar(200) 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_MAP_ADRESSE_GEOCODEE` varchar(80) NOT NULL DEFAULT '',
  `SYS_MAP_LATITUDE` double NOT NULL DEFAULT 0,
  `SYS_MAP_LONGITUDE` double NOT NULL DEFAULT 0,
  `SYS_MAP_QUALITE_GEOCODAGE` varchar(15) NOT NULL DEFAULT '',
  `SYS_USER_CREATION` varchar(20) NOT NULL DEFAULT '',
  `SYS_USER_MODIFICATION` varchar(20) NOT NULL DEFAULT '',
  `TIERS_NOM_COMMERCIAL` varchar(100) NOT NULL DEFAULT '',
  `TYPE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `CHEMIN_PHOTO` longblob DEFAULT NULL,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `FAX_FR` varchar(14) NOT NULL DEFAULT '',
  `MATRICULE_SALARIE` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT1` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_FRS1` varchar(15) NOT NULL DEFAULT '',
  `SALARIE` char(1) NOT NULL DEFAULT '',
  `SIRET` varchar(50) NOT NULL DEFAULT '',
  `TEL1_FR` varchar(14) NOT NULL DEFAULT '',
  `TEL2_FR` varchar(14) NOT NULL DEFAULT '',
  `TEL_PORTABLE_FR` varchar(14) NOT NULL DEFAULT '',
  `TVA_INTRA` varchar(50) NOT NULL DEFAULT '',
  `COMMENTAIRE` blob DEFAULT NULL,
  `DEBLOCAGE` char(1) NOT NULL DEFAULT '',
  `EFFECTIF` varchar(10) NOT NULL DEFAULT '',
  `CODE_NAF` varchar(10) NOT NULL DEFAULT '',
  `ENCOURS_AUTORISE` double NOT NULL DEFAULT 0,
  `NOM` varchar(50) NOT NULL DEFAULT '',
  `PRENOM` varchar(40) NOT NULL DEFAULT '',
  `FACTO` 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,
  `MATRICULE_SALARIE1` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT2` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT3` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT4` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_FRS2` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_FRS3` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_FRS4` varchar(15) NOT NULL DEFAULT '',
  `NUM_DEPT` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT5` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_FRS5` varchar(15) NOT NULL DEFAULT '',
  `CP_ETRANGER` varchar(50) NOT NULL DEFAULT '',
  `FAX_ETR` varchar(15) NOT NULL DEFAULT '',
  `GROUPE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `GROUPE_TIERS_TETE` char(1) NOT NULL DEFAULT '',
  `IDENT_GROUPE_TIERS` varchar(32) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT10` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT11` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT12` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT13` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT14` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT15` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT6` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT7` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT8` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_CLIENT9` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_FRS10` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_FRS11` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_FRS12` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_FRS13` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_FRS14` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_FRS15` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_FRS6` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_FRS7` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_FRS8` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_FRS9` varchar(15) NOT NULL DEFAULT '',
  `PID_VIREMENT_ET` varchar(32) NOT NULL DEFAULT '',
  `SYS_CONTEXTE` varchar(32) NOT NULL DEFAULT '',
  `SYS_NO_LIGNE` double NOT NULL DEFAULT 0,
  `TEL1_ETR` varchar(20) NOT NULL DEFAULT '',
  `TEL2_ETR` varchar(20) NOT NULL DEFAULT '',
  `TEL_PORTABLE_ETR` varchar(20) NOT NULL DEFAULT '',
  `TRS` char(1) NOT NULL DEFAULT '',
  `AUX` char(1) NOT NULL DEFAULT '',
  `N_IMPORT` varchar(15) NOT NULL DEFAULT '',
  `PRINCIPAL` char(1) NOT NULL DEFAULT '',
  `COMPTE_PRO` char(1) NOT NULL DEFAULT '',
  `COMPTE_PARTICULIER` char(1) NOT NULL DEFAULT '',
  `MAJ_FORM_MKT` char(1) NOT NULL DEFAULT '',
  `SPONSOR` char(1) NOT NULL DEFAULT '',
  `RELANCE_KM` varchar(10) NOT NULL DEFAULT '',
  `DATE_RELANCE_KM` date DEFAULT NULL,
  `CATEGORIE_ACTIVITE` varchar(40) NOT NULL DEFAULT '',
  `GROUPE_TIERS1` varchar(50) NOT NULL DEFAULT '',
  `IDENT_GROUPE_TIERS1` varchar(32) NOT NULL DEFAULT '',
  `DATE_ENVOI_FORM_KMS` date DEFAULT NULL,
  `CP_TEMP` varchar(5) NOT NULL DEFAULT '',
  `N_CPTE_FEC` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_FEC_FRS` varchar(50) NOT NULL DEFAULT '',
  `N_CPTE_FEC_CLT` varchar(50) NOT NULL DEFAULT '',
  `N_CPTE_FEC_SAL` varchar(50) NOT NULL DEFAULT '',
  `SECTEUR_ACTIVITE` varchar(100) NOT NULL DEFAULT '',
  `CODE_SUIVI_PAR` varchar(50) NOT NULL DEFAULT '',
  `CONCURRENTS` varchar(600) NOT NULL DEFAULT '',
  `ASSISSTANT_COMMERCIAL_NOM` varchar(100) NOT NULL DEFAULT '',
  `ASSISSTANT_COMMERCIAL_CODE` varchar(10) NOT NULL DEFAULT '',
  `DATE_SUSPECT` date DEFAULT NULL,
  `DATE_PROSPECT` date DEFAULT NULL,
  `DATE_CLIENT` date DEFAULT NULL,
  `DATE_FOURNISSEUR` date DEFAULT NULL,
  `N_CPTE_FEC_CLT_8` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_FEC_CLT_6` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_FEC_CLT_15` varchar(15) NOT NULL DEFAULT '',
  `N_CPTE_FEC_FRS_8` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_FEC_FRS_6` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_FEC_FRS_15` varchar(10) NOT NULL DEFAULT '',
  `ECART_JOURS_SUSPECT_PROSPECT` decimal(12,0) NOT NULL DEFAULT 0,
  `ECART_JOURS_SUSPECT_CLIENT` varchar(10) NOT NULL DEFAULT '',
  `ECART_JOURS_PROSPECT_CLIENT` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_TIERS`),
  KEY `A_SUPPRIMER` (`A_SUPPRIMER`) USING BTREE,
  KEY `CLT` (`CLT`) USING BTREE,
  KEY `CODE_CLIENT` (`CODE_CLIENT`) USING BTREE,
  KEY `COMPTE_ACTF` (`COMPTE_ACTF`) USING BTREE,
  KEY `RAISON_SOCIALE` (`RAISON_SOCIALE`) USING BTREE,
  KEY `SYS_MAP_ADRESSE_GEOCODEE` (`SYS_MAP_ADRESSE_GEOCODEE`) USING BTREE,
  KEY `SYS_MAP_LATITUDE` (`SYS_MAP_LATITUDE`) USING BTREE,
  KEY `SYS_MAP_LONGITUDE` (`SYS_MAP_LONGITUDE`) USING BTREE,
  KEY `SYS_MAP_QUALITE_GEOCODAGE` (`SYS_MAP_QUALITE_GEOCODAGE`) USING BTREE,
  KEY `TYPE_TIERS` (`TYPE_TIERS`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `MATRICULE_SALARIE` (`MATRICULE_SALARIE`) USING BTREE,
  KEY `SALARIE` (`SALARIE`) USING BTREE,
  KEY `GROUPE` (`GROUPE`) USING BTREE,
  KEY `GROUPE_NOM_DOSSIER` (`GROUPE_NOM_DOSSIER`) USING BTREE,
  KEY `GROUPE_N_DOSSIER` (`GROUPE_N_DOSSIER`) USING BTREE,
  KEY `MATRICULE_SALARIE1` (`MATRICULE_SALARIE1`) USING BTREE,
  KEY `GROUPE_TIERS_TETE` (`GROUPE_TIERS_TETE`) USING BTREE,
  KEY `IDENT_GROUPE_TIERS` (`IDENT_GROUPE_TIERS`) USING BTREE,
  KEY `PID_VIREMENT_ET` (`PID_VIREMENT_ET`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `N_CPTE_CLIENT1` (`N_CPTE_CLIENT1`) USING BTREE,
  KEY `N_CPTE_CLIENT10` (`N_CPTE_CLIENT10`) USING BTREE,
  KEY `N_CPTE_CLIENT11` (`N_CPTE_CLIENT11`) USING BTREE,
  KEY `N_CPTE_CLIENT12` (`N_CPTE_CLIENT12`) USING BTREE,
  KEY `N_CPTE_CLIENT2` (`N_CPTE_CLIENT2`) USING BTREE,
  KEY `N_CPTE_CLIENT3` (`N_CPTE_CLIENT3`) USING BTREE,
  KEY `N_CPTE_CLIENT4` (`N_CPTE_CLIENT4`) USING BTREE,
  KEY `N_CPTE_CLIENT5` (`N_CPTE_CLIENT5`) USING BTREE,
  KEY `N_CPTE_CLIENT6` (`N_CPTE_CLIENT6`) USING BTREE,
  KEY `N_CPTE_CLIENT7` (`N_CPTE_CLIENT7`) USING BTREE,
  KEY `N_CPTE_CLIENT8` (`N_CPTE_CLIENT8`) USING BTREE,
  KEY `N_CPTE_CLIENT9` (`N_CPTE_CLIENT9`) USING BTREE,
  KEY `N_CPTE_FRS1` (`N_CPTE_FRS1`) USING BTREE,
  KEY `N_CPTE_FRS10` (`N_CPTE_FRS10`) USING BTREE,
  KEY `N_CPTE_FRS11` (`N_CPTE_FRS11`) USING BTREE,
  KEY `N_CPTE_FRS12` (`N_CPTE_FRS12`) USING BTREE,
  KEY `N_CPTE_FRS2` (`N_CPTE_FRS2`) USING BTREE,
  KEY `N_CPTE_FRS3` (`N_CPTE_FRS3`) USING BTREE,
  KEY `N_CPTE_FRS4` (`N_CPTE_FRS4`) USING BTREE,
  KEY `N_CPTE_FRS5` (`N_CPTE_FRS5`) USING BTREE,
  KEY `N_CPTE_FRS6` (`N_CPTE_FRS6`) USING BTREE,
  KEY `N_CPTE_FRS7` (`N_CPTE_FRS7`) USING BTREE,
  KEY `N_CPTE_FRS8` (`N_CPTE_FRS8`) USING BTREE,
  KEY `N_CPTE_FRS9` (`N_CPTE_FRS9`) USING BTREE,
  KEY `COMPTE_PARTICULIER` (`COMPTE_PARTICULIER`) USING BTREE,
  KEY `IDENT_GROUPE_TIERS1` (`IDENT_GROUPE_TIERS1`) USING BTREE,
  KEY `ICG` (`ICG`) USING BTREE,
  KEY `N_IMPORT` (`N_IMPORT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_CPTE_FEC_FRS` (`N_CPTE_FEC_FRS`) USING BTREE,
  KEY `N_CPTE_FEC_CLT` (`N_CPTE_FEC_CLT`) USING BTREE,
  KEY `N_CPTE_FEC_SAL` (`N_CPTE_FEC_SAL`) USING BTREE,
  KEY `SECTEUR_ACTIVITE` (`SECTEUR_ACTIVITE`) USING BTREE,
  KEY `CODE_SUIVI_PAR` (`CODE_SUIVI_PAR`) USING BTREE,
  KEY `SUIVI_PAR` (`SUIVI_PAR`) USING BTREE,
  KEY `DATE_FOURNISSEUR` (`DATE_FOURNISSEUR`) USING BTREE,
  KEY `N_CPTE_FEC_CLT_8` (`N_CPTE_FEC_CLT_8`) USING BTREE,
  KEY `N_CPTE_FEC_CLT_6` (`N_CPTE_FEC_CLT_6`) USING BTREE,
  KEY `N_CPTE_FEC_CLT_15` (`N_CPTE_FEC_CLT_15`) USING BTREE,
  KEY `N_CPTE_FEC_FRS_8` (`N_CPTE_FEC_FRS_8`) USING BTREE,
  KEY `N_CPTE_FEC_FRS_6` (`N_CPTE_FEC_FRS_6`) USING BTREE,
  KEY `N_CPTE_FEC_FRS_15` (`N_CPTE_FEC_FRS_15`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `tiers_adresse`
--

CREATE TABLE `tiers_adresse` (
  `AD1` varchar(50) NOT NULL DEFAULT '',
  `AD2` varchar(50) NOT NULL DEFAULT '',
  `CP` double NOT NULL DEFAULT 0,
  `ID_TIERS_ADRESSE` varchar(32) NOT NULL DEFAULT '',
  `NUMERO_TYPE_ADRESSE` double NOT NULL DEFAULT 0,
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `RAISON_SOCIALE` varchar(50) 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_ADRESSE` varchar(20) NOT NULL DEFAULT '',
  `VILLE` varchar(30) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_TIERS_ADRESSE`),
  KEY `CP` (`CP`) USING BTREE,
  KEY `NUMERO_TYPE_ADRESSE` (`NUMERO_TYPE_ADRESSE`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `RAISON_SOCIALE` (`RAISON_SOCIALE`) 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 `TYPE_ADRESSE` (`TYPE_ADRESSE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `tiers_documents`
--

CREATE TABLE `tiers_documents` (
  `CHEMIN_DOCUMENT` varchar(200) NOT NULL DEFAULT '',
  `DATE` date DEFAULT NULL,
  `ID_TIERS_DOCUMENTS` varchar(32) NOT NULL DEFAULT '',
  `NOM_DOCUMENT` varchar(200) NOT NULL DEFAULT '',
  `NOM_TIERS` varchar(10) NOT NULL DEFAULT '',
  `PID_TIERS` 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 '',
  PRIMARY KEY (`ID_TIERS_DOCUMENTS`),
  KEY `CHEMIN_DOCUMENT` (`CHEMIN_DOCUMENT`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `NOM_DOCUMENT` (`NOM_DOCUMENT`) USING BTREE,
  KEY `NOM_TIERS` (`NOM_TIERS`) 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
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `tiers_info_comptable`
--

CREATE TABLE `tiers_info_comptable` (
  `BILAN` varchar(10) NOT NULL DEFAULT '',
  `CLT` varchar(20) NOT NULL DEFAULT '',
  `CODE_JOURNAL` varchar(50) NOT NULL DEFAULT '',
  `CONCAT` varchar(10) NOT NULL DEFAULT '',
  `ID_TIERS_INFO_COMPTABLE` varchar(32) NOT NULL DEFAULT '',
  `NOM_CLIENT` varchar(100) NOT NULL DEFAULT '',
  `NOM_COMPTE_RESULTAT` varchar(100) NOT NULL DEFAULT '',
  `NOM_COMPTE_TVA` varchar(100) NOT NULL DEFAULT '',
  `NOM_CPTE_CONTREPARTIE_AUTOLIQUIDATION` varchar(50) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(200) NOT NULL DEFAULT '',
  `N_CPTE_CONTREPARTIE_AUTOLIQUIDATION` double NOT NULL DEFAULT 0,
  `N_TRESO` double NOT NULL DEFAULT 0,
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `RESULTAT` varchar(10) 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` varchar(8) NOT NULL DEFAULT '',
  `TX_TVA` double NOT NULL DEFAULT 0,
  `VILLE` varchar(50) NOT NULL DEFAULT '',
  `NOM_DELAI_RGT` varchar(100) NOT NULL DEFAULT '',
  `NOM_JOURNAL` varchar(20) NOT NULL DEFAULT '',
  `NOM_TAXE_PAIEMENT` varchar(50) NOT NULL DEFAULT '',
  `NOM_TRESO` varchar(10) NOT NULL DEFAULT '',
  `NOM_TYPE_RGT` varchar(100) NOT NULL DEFAULT '',
  `N_CPTE_BILAN` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_RESULTAT` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_TVA` varchar(10) NOT NULL DEFAULT '',
  `N_DELAI_RGT` double NOT NULL DEFAULT 0,
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_TAXE_PAIEMENT` double NOT NULL DEFAULT 0,
  `N_TYPE_RGT` double NOT NULL DEFAULT 0,
  `CONCAT_LIGNE_TVA` varchar(40) NOT NULL DEFAULT '',
  `N_LIGNE_TIC` double NOT NULL DEFAULT 0,
  `VENTILATION` varchar(10) NOT NULL DEFAULT '',
  `N_IMPORT` varchar(15) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `SUP_RELANCE` char(1) NOT NULL DEFAULT '',
  `ICG` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_TIERS_INFO_COMPTABLE`),
  KEY `BILAN` (`BILAN`) USING BTREE,
  KEY `CLT` (`CLT`) USING BTREE,
  KEY `CODE_JOURNAL` (`CODE_JOURNAL`) USING BTREE,
  KEY `CONCAT` (`CONCAT`) USING BTREE,
  KEY `NOM_CLIENT` (`NOM_CLIENT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_CPTE_CONTREPARTIE_AUTOLIQUIDATION` (`N_CPTE_CONTREPARTIE_AUTOLIQUIDATION`) USING BTREE,
  KEY `N_TRESO` (`N_TRESO`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `RESULTAT` (`RESULTAT`) 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 `TVA` (`TVA`) USING BTREE,
  KEY `TX_TVA` (`TX_TVA`) USING BTREE,
  KEY `VILLE` (`VILLE`) USING BTREE,
  KEY `N_CPTE_RESULTAT` (`N_CPTE_RESULTAT`) USING BTREE,
  KEY `N_CPTE_TVA` (`N_CPTE_TVA`) USING BTREE,
  KEY `N_DELAI_RGT` (`N_DELAI_RGT`) USING BTREE,
  KEY `N_TAXE_PAIEMENT` (`N_TAXE_PAIEMENT`) USING BTREE,
  KEY `N_TYPE_RGT` (`N_TYPE_RGT`) USING BTREE,
  KEY `NOM_JOURNAL` (`NOM_JOURNAL`) USING BTREE,
  KEY `CONCAT_LIGNE_TVA` (`CONCAT_LIGNE_TVA`) USING BTREE,
  KEY `N_LIGNE_TIC` (`N_LIGNE_TIC`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `N_CPTE_BILAN` (`N_CPTE_BILAN`) USING BTREE,
  KEY `ICG` (`ICG`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `tiers_info_generale`
--

CREATE TABLE `tiers_info_generale` (
  `ACTIVITE` varchar(100) NOT NULL DEFAULT '',
  `APE` varchar(10) NOT NULL DEFAULT '',
  `CAPITAL` double NOT NULL DEFAULT 0,
  `DELAI_MOYEN_LIVRAISON` double NOT NULL DEFAULT 0,
  `DIRIGEANT_CIVILITE` varchar(10) NOT NULL DEFAULT '',
  `DIRIGEANT_NOM` varchar(20) NOT NULL DEFAULT '',
  `DIRIGEANT_PRENOM` varchar(20) NOT NULL DEFAULT '',
  `FONCTION` varchar(20) NOT NULL DEFAULT '',
  `FRANCO` double NOT NULL DEFAULT 0,
  `ID_TIERS_INFO_GENERALE` varchar(32) NOT NULL DEFAULT '',
  `MINIMUM_COMMANDE` double NOT NULL DEFAULT 0,
  `NAF` varchar(10) NOT NULL DEFAULT '',
  `N_TVA_INTRA` varchar(30) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `SIREN` varchar(20) NOT NULL DEFAULT '',
  `SIRET` varchar(20) NOT NULL DEFAULT '',
  `STRUCTURE_JURIDIQUE` 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 '',
  `REMISE1` double NOT NULL DEFAULT 0,
  `REMISE2` double NOT NULL DEFAULT 0,
  `REMISE3` double NOT NULL DEFAULT 0,
  `REMISE4` double NOT NULL DEFAULT 0,
  `REMISE5` double NOT NULL DEFAULT 0,
  `NAF_LIBELLE` varchar(50) NOT NULL DEFAULT '',
  `MEMO` blob DEFAULT NULL,
  `CP_VILLE_DEUXIEME_CONDUCTEUR` varchar(100) NOT NULL DEFAULT '',
  `DATE_NAISSANCE` date DEFAULT NULL,
  `DATE_NAISSANCE_2` date DEFAULT NULL,
  `DATE_PERMIS` date DEFAULT NULL,
  `DATE_PERMIS_2` date DEFAULT NULL,
  `INDICE_TAXE_CARBURANT_COUT` double NOT NULL DEFAULT 0,
  `INDICE_TAXE_CARBURANT_REF` double NOT NULL DEFAULT 0,
  `LIEU_NAISSANCE` varchar(100) NOT NULL DEFAULT '',
  `LIEU_NAISSANCE_2` varchar(100) NOT NULL DEFAULT '',
  `NOM_DEUXIEME_CONDUCTEUR` varchar(32) NOT NULL DEFAULT '',
  `N_PERMIS` varchar(40) NOT NULL DEFAULT '',
  `N_PERMIS_2` varchar(40) NOT NULL DEFAULT '',
  `PID_TIERS_INFO_GENERALE` varchar(32) NOT NULL DEFAULT '',
  `PRENOM_DEUXIEME_CONDUCTEUR` varchar(30) NOT NULL DEFAULT '',
  `RUE_DEUXIEME_CONDUCTEUR` varchar(300) NOT NULL DEFAULT '',
  `NOM_TRS` varchar(10) NOT NULL DEFAULT '',
  `IDENT_TRS` varchar(32) NOT NULL DEFAULT '',
  `CODE_CLIENT` varchar(30) NOT NULL DEFAULT '',
  `REC_J` varchar(32) NOT NULL DEFAULT '',
  `HEURE_LIVRAISON` varchar(5) NOT NULL DEFAULT '',
  `NOM_TARIF` varchar(100) NOT NULL DEFAULT '',
  `N_TARIF` double NOT NULL DEFAULT 0,
  `REC_J_1` char(1) NOT NULL DEFAULT '',
  `REC_J_2` char(1) NOT NULL DEFAULT '',
  `REC_J_3` char(1) NOT NULL DEFAULT '',
  `REC_J_4` char(1) NOT NULL DEFAULT '',
  `REC_J_5` char(1) NOT NULL DEFAULT '',
  `REC_J_6` char(1) NOT NULL DEFAULT '',
  `REC_J_7` char(1) NOT NULL DEFAULT '',
  `TRS` char(1) NOT NULL DEFAULT '',
  `VERIF_J` char(1) NOT NULL DEFAULT '',
  `DATE_NAISSANCE_3` date DEFAULT NULL,
  `DATE_PERMIS_3` date DEFAULT NULL,
  `LIEU_NAISSANCE_3` varchar(100) NOT NULL DEFAULT '',
  `N_PERMIS_3` varchar(40) NOT NULL DEFAULT '',
  `NOM_TROISIEME_CONDUCTEUR` varchar(32) NOT NULL DEFAULT '',
  `PRENOM_TROISIEME_CONDUCTEUR` varchar(32) NOT NULL DEFAULT '',
  `RUE_TROISIEME_CONDUCTEUR` varchar(300) NOT NULL DEFAULT '',
  `CP_VILLE_TROISIEME_CONDUCTEUR` varchar(100) NOT NULL DEFAULT '',
  `NOM_VALIDATEUR_PRINCIPAL_DOSSIER` varchar(32) NOT NULL DEFAULT '',
  `NOM_VALIDATEUR_SECONDAIRE_DOSSIER` varchar(32) NOT NULL DEFAULT '',
  `NOM_POUR_COMMANDE` varchar(100) NOT NULL DEFAULT '',
  `MAIL_DIR` varchar(100) NOT NULL DEFAULT '',
  `REGISTRE_COMMERCE_SOCIETE` varchar(50) NOT NULL DEFAULT '',
  `TEL_DIR` varchar(10) NOT NULL DEFAULT '',
  `ZONE_CHALANDISE` varchar(60) NOT NULL DEFAULT '',
  `ADRESSE_LIVRAISON` varchar(100) NOT NULL DEFAULT '',
  `BOUL_EXCLUSION_FACT` char(1) NOT NULL DEFAULT '',
  `CODE_VALIDATEUR_PRINCIPAL_DOSSIER` varchar(10) NOT NULL DEFAULT '',
  `CODE_VALIDATEUR_SECONDAIRE_DOSSIER` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_TIERS_INFO_GENERALE`),
  KEY `ACTIVITE` (`ACTIVITE`) USING BTREE,
  KEY `APE` (`APE`) USING BTREE,
  KEY `CAPITAL` (`CAPITAL`) USING BTREE,
  KEY `DELAI_MOYEN_LIVRAISON` (`DELAI_MOYEN_LIVRAISON`) USING BTREE,
  KEY `DIRIGEANT_NOM` (`DIRIGEANT_NOM`) USING BTREE,
  KEY `FRANCO` (`FRANCO`) USING BTREE,
  KEY `MINIMUM_COMMANDE` (`MINIMUM_COMMANDE`) USING BTREE,
  KEY `NAF` (`NAF`) USING BTREE,
  KEY `N_TVA_INTRA` (`N_TVA_INTRA`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `SIREN` (`SIREN`) USING BTREE,
  KEY `SIRET` (`SIRET`) USING BTREE,
  KEY `STRUCTURE_JURIDIQUE` (`STRUCTURE_JURIDIQUE`) 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_NAISSANCE` (`DATE_NAISSANCE`) USING BTREE,
  KEY `DATE_NAISSANCE_2` (`DATE_NAISSANCE_2`) USING BTREE,
  KEY `DATE_PERMIS` (`DATE_PERMIS`) USING BTREE,
  KEY `NOM_DEUXIEME_CONDUCTEUR` (`NOM_DEUXIEME_CONDUCTEUR`) USING BTREE,
  KEY `PID_TIERS_INFO_GENERALE` (`PID_TIERS_INFO_GENERALE`) USING BTREE,
  KEY `IDENT_TRS` (`IDENT_TRS`) USING BTREE,
  KEY `CODE_CLIENT` (`CODE_CLIENT`) USING BTREE,
  KEY `HEURE_LIVRAISON` (`HEURE_LIVRAISON`) USING BTREE,
  KEY `REC_J_1` (`REC_J_1`) USING BTREE,
  KEY `REC_J_2` (`REC_J_2`) USING BTREE,
  KEY `REC_J_3` (`REC_J_3`) USING BTREE,
  KEY `REC_J_4` (`REC_J_4`) USING BTREE,
  KEY `REC_J_5` (`REC_J_5`) USING BTREE,
  KEY `REC_J_6` (`REC_J_6`) USING BTREE,
  KEY `REC_J_7` (`REC_J_7`) USING BTREE,
  KEY `TRS` (`TRS`) USING BTREE,
  KEY `VERIF_J` (`VERIF_J`) USING BTREE,
  KEY `NOM_VALIDATEUR_PRINCIPAL_DOSSIER` (`NOM_VALIDATEUR_PRINCIPAL_DOSSIER`) USING BTREE,
  KEY `NOM_VALIDATEUR_SECONDAIRE_DOSSIER` (`NOM_VALIDATEUR_SECONDAIRE_DOSSIER`) USING BTREE,
  KEY `BOUL_EXCLUSION_FACT` (`BOUL_EXCLUSION_FACT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `tiers_info_paie`
--

CREATE TABLE `tiers_info_paie` (
  `ACOMPTE1` double NOT NULL DEFAULT 0,
  `ACOMPTE2` double NOT NULL DEFAULT 0,
  `AMPLITUDE` double NOT NULL DEFAULT 0,
  `AMPLITUDE_GARANTIE` double NOT NULL DEFAULT 0,
  `ANCIENNETE` double NOT NULL DEFAULT 0,
  `ATTRIBUTION_PRIME_QUALITE` varchar(3) NOT NULL DEFAULT '',
  `COEFFICIENT` varchar(10) NOT NULL DEFAULT '',
  `COMMENTAIRE` blob DEFAULT NULL,
  `COMMENTAIRES` varchar(100) NOT NULL DEFAULT '',
  `COMMENTAIRES1` varchar(100) NOT NULL DEFAULT '',
  `COMPTEUR_HEURES_50` double NOT NULL DEFAULT 0,
  `COMPTEUR_HEURE_25` double NOT NULL DEFAULT 0,
  `CONGES_PAYES_ACQUIS` double NOT NULL DEFAULT 0,
  `CONGES_PAYES_ACQUIS_MOIS` double NOT NULL DEFAULT 0,
  `CONGES_PAYES_PRIS` double NOT NULL DEFAULT 0,
  `CONGES_PAYES_PRIS_DT_SAMEDI` double NOT NULL DEFAULT 0,
  `CONGES_PAYES_PRIS_SUR_EX_PREC_DT_SAMEDI` double NOT NULL DEFAULT 0,
  `CONGES_PAYES_PRIS_SUR_EX_PREC_DT_SAMEDI_SOLDE` double NOT NULL DEFAULT 0,
  `CONGES_PAYES_PRIS_SUR_EX_PREC_SOLDE` double NOT NULL DEFAULT 0,
  `DATE_DEBUT_CALCUL_CP` date DEFAULT NULL,
  `DATE_ENTREE` date DEFAULT NULL,
  `DATE_FIN_CALCUL_CP` date DEFAULT NULL,
  `DEBT` date DEFAULT NULL,
  `DIMANCHE_MATIN` double NOT NULL DEFAULT 0,
  `DIMANCHE_MATIN_PU` double NOT NULL DEFAULT 0,
  `DIMANCHE_SOIR` double NOT NULL DEFAULT 0,
  `DIMANCHE_SOIR_PU` double NOT NULL DEFAULT 0,
  `DIMANCHE_TRAVAILLE` double NOT NULL DEFAULT 0,
  `DIMANCHE_TRAVAILLE_PU` double NOT NULL DEFAULT 0,
  `FIN` date DEFAULT NULL,
  `FORMATION_EVT_FAMILLIAUX_DELEGATION` double NOT NULL DEFAULT 0,
  `GROUPE` varchar(10) NOT NULL DEFAULT '',
  `HEURES_PAYEES` double NOT NULL DEFAULT 0,
  `HEURE_50` double NOT NULL DEFAULT 0,
  `ID_TIERS_INFO_PAIE` varchar(32) NOT NULL DEFAULT '',
  `JOUR_FORMATION_PU` double NOT NULL DEFAULT 0,
  `MANIPULATION` double NOT NULL DEFAULT 0,
  `MATRICULE` varchar(10) NOT NULL DEFAULT '',
  `MOIS` varchar(5) NOT NULL DEFAULT '',
  `MONTANT_RESTANT_A_SAISIR2` double NOT NULL DEFAULT 0,
  `MONTANT_SAISI` double NOT NULL DEFAULT 0,
  `MUTUELLE` double NOT NULL DEFAULT 0,
  `NB_HEURES_THEORIQUES` double NOT NULL DEFAULT 0,
  `NOM_SALARIE` varchar(50) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS_INFOS_SALARIES` varchar(32) NOT NULL DEFAULT '',
  `PREMIER_SEUIL_HEURE_SUP` double NOT NULL DEFAULT 0,
  `PRIME_JOURNALIERE` double NOT NULL DEFAULT 0,
  `PRIME_JOURNALIERE_PU` double NOT NULL DEFAULT 0,
  `PRIME_JOUR_FERIE` double NOT NULL DEFAULT 0,
  `PRIME_JOUR_FERIE_PU` double NOT NULL DEFAULT 0,
  `PRIME_QUALITE_DOUBLE` varchar(3) NOT NULL DEFAULT '',
  `PRIME_QUALITE_NON_ATTRIBUTION` varchar(100) NOT NULL DEFAULT '',
  `PRIME_REMPLACEMENT` double NOT NULL DEFAULT 0,
  `PRIME_REMPLACEMENT_PU` double NOT NULL DEFAULT 0,
  `REPOS_COMPENSATEUR_ACQUIS` double NOT NULL DEFAULT 0,
  `REPOS_COMPENSATEUR_PRIS` double NOT NULL DEFAULT 0,
  `RTT` double NOT NULL DEFAULT 0,
  `SAMEDI_TRAVAILLE` double NOT NULL DEFAULT 0,
  `SAMEDI_TRAVAILLE_PU` double NOT NULL DEFAULT 0,
  `SOLDE` double NOT NULL DEFAULT 0,
  `SOLDE2` double NOT NULL DEFAULT 0,
  `SOLDE_COMPTEUR` double NOT NULL DEFAULT 0,
  `SOLDE_CONGES_PAYES_0106_DT_SAMEDI` double NOT NULL DEFAULT 0,
  `SOLDE_CONGES_PAYES_DT_SAMEDI` double NOT NULL DEFAULT 0,
  `SOLDE_CONGE_PAYE_NOUVEAU_DT_SAMEDI` 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 '',
  `TAUX_HORAIRE` double NOT NULL DEFAULT 0,
  `TEMPS_SERVICE_75_AMPLITUDE` double NOT NULL DEFAULT 0,
  `TEMPS_SERVICE_AVEC_VOITURE` double NOT NULL DEFAULT 0,
  `TOTAL1` double NOT NULL DEFAULT 0,
  `TOTAL2` double NOT NULL DEFAULT 0,
  `TPS_TOTAL_DT_NUIT` double NOT NULL DEFAULT 0,
  `VERROU` char(1) NOT NULL DEFAULT '',
  `SOLDE_CONGES_PAYES_ANTICIPES` double NOT NULL DEFAULT 0,
  `SOLDE_CONGES_PAYES_ANITICIPES_DT_SAMEDI` double NOT NULL DEFAULT 0,
  `CONGES_PAYES_ACQUIS_MOIS_DT_SAMEDI` double NOT NULL DEFAULT 0,
  `ABSENCE_AUTRE` double NOT NULL DEFAULT 0,
  `COMPTEUR_HEURES_NORMALES_FIN` double NOT NULL DEFAULT 0,
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `EQUIVALENT_HEURES_NORMALES_25` double NOT NULL DEFAULT 0,
  `EQUIVALENT_HEURES_NORMALES_50` double NOT NULL DEFAULT 0,
  `EQUIVALENT_HEURES_NORMALES_NORM` double NOT NULL DEFAULT 0,
  `EQUIVALENT_HEURES_NORMALES_TOTAL` double NOT NULL DEFAULT 0,
  `HEURES_A_PAYER` double NOT NULL DEFAULT 0,
  `HEURES_A_PAYER_25` double NOT NULL DEFAULT 0,
  `HEURES_A_PAYER_50` double NOT NULL DEFAULT 0,
  `HEURES_A_PAYER_NORM` double NOT NULL DEFAULT 0,
  `HEURES_CONTRAT` double NOT NULL DEFAULT 0,
  `HEURES_DUES_FIN_MOIS` double NOT NULL DEFAULT 0,
  `HEURES_DUES_FIN_MOIS_25` double NOT NULL DEFAULT 0,
  `HEURES_DUES_FIN_MOIS_50` double NOT NULL DEFAULT 0,
  `HEURES_DUES_FIN_MOIS_NORM` double NOT NULL DEFAULT 0,
  `HEURES_MOIS_COMPTEUR` double NOT NULL DEFAULT 0,
  `HEURES_NORMALES_IMPUTER_MOIS` double NOT NULL DEFAULT 0,
  `HEURES_PAYEES_EQUIVALENT` double NOT NULL DEFAULT 0,
  `HEURES_THEORIQUE` double NOT NULL DEFAULT 0,
  `HEURES_THEORIQUES_25` double NOT NULL DEFAULT 0,
  `HEURES_THEORIQUES_50` double NOT NULL DEFAULT 0,
  `HEURES_THEORIQUE_NORM` double NOT NULL DEFAULT 0,
  `HEURE_25` double NOT NULL DEFAULT 0,
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_LIGNE` varchar(10) NOT NULL DEFAULT '',
  `SOLDE_COMPTEUR_ACQUIS_EX_1` double NOT NULL DEFAULT 0,
  `SOLDE_CONGES_PAYES_ACQUIS_EX_1` double NOT NULL DEFAULT 0,
  `TAUX_HORAIRE_25` double NOT NULL DEFAULT 0,
  `TAUX_HORAIRE_50` double NOT NULL DEFAULT 0,
  `TEMPS_SERVICE_TOTAL_25` double NOT NULL DEFAULT 0,
  `TEMPS_SERVICE_TOTAL_NORM` double NOT NULL DEFAULT 0,
  `TICKET_RESTAU` double NOT NULL DEFAULT 0,
  `AVANTAGE_EN_NATURE` double NOT NULL DEFAULT 0,
  `DEBUT_FRAIS` date DEFAULT NULL,
  `FIN_FRAIS` date DEFAULT NULL,
  `FRAIS_PRO` double NOT NULL DEFAULT 0,
  `HEURES_SEDENTAIRES` double NOT NULL DEFAULT 0,
  `PRIME_ASTREINTE_TRAVAUX_WE` double NOT NULL DEFAULT 0,
  `PRIME_CHARGEMENT` double NOT NULL DEFAULT 0,
  `PRIME_EXCEPTIONNELLE` double NOT NULL DEFAULT 0,
  `PRIME_POLYVALENCE` double NOT NULL DEFAULT 0,
  `PRIME_WE_FERIE` double NOT NULL DEFAULT 0,
  `PU_DEJEUNER_INTER` double NOT NULL DEFAULT 0,
  `PU_DEJEUNER_NATIONAL` double NOT NULL DEFAULT 0,
  `PU_DEPART_DIMANCHE` double NOT NULL DEFAULT 0,
  `PU_DEPART_FERIE` varchar(10) NOT NULL DEFAULT '',
  `PU_DINER_INTERNATIONAL` double NOT NULL DEFAULT 0,
  `PU_DINER_NATIONAL` double NOT NULL DEFAULT 0,
  `PU_PETIT_DEJ` double NOT NULL DEFAULT 0,
  `PU_PETIT_DEJ_INTER` double NOT NULL DEFAULT 0,
  `PU_REPAS_UNIQUE` double NOT NULL DEFAULT 0,
  `PU_SAMEDI_APRES_18H_LUNDI_MATIN` double NOT NULL DEFAULT 0,
  `PU_SAMEDI_MATIN_LUNDI_MATIN` double NOT NULL DEFAULT 0,
  `PU_TRAVAIL_JOUR_FERIE_COMPLET` double NOT NULL DEFAULT 0,
  `PU_VENDREDI_19H_SAMEDI_APRES_19H` double NOT NULL DEFAULT 0,
  `PU_VENDREDI_SOIR` double NOT NULL DEFAULT 0,
  `SUPPRESSION` char(1) NOT NULL DEFAULT '',
  `TOTAL3` double NOT NULL DEFAULT 0,
  `TOTAL_FR` double NOT NULL DEFAULT 0,
  `TOTAL_FR_PR` double NOT NULL DEFAULT 0,
  `PRIME_QUALITE` double NOT NULL DEFAULT 0,
  `DEBUT_PAIE_PMGP` date DEFAULT NULL,
  `FIN_PAIE_PMGP` date DEFAULT NULL,
  `RAZ_COMPTEUR` char(1) NOT NULL DEFAULT '',
  `N_PRIME_QUALITE` double NOT NULL DEFAULT 0,
  `BRUT_ABATTU` char(1) NOT NULL DEFAULT '',
  `COMPTEUR_HEURES_NORMALES_DEBUT_25` double NOT NULL DEFAULT 0,
  `COMPTEUR_HEURES_NORMALES_DEBUT_50` double NOT NULL DEFAULT 0,
  `COMPTEUR_HEURES_NORMALES_DEBUT_NORM` double NOT NULL DEFAULT 0,
  `COMPTEUR_HEURES_NORMALES_DEBUT_TOTAL` double NOT NULL DEFAULT 0,
  `DISTANCE` varchar(20) NOT NULL DEFAULT '',
  `HEURES_EQUIVALENCE_25` double NOT NULL DEFAULT 0,
  `HEURES_PRISES_COMPTEUR_25` double NOT NULL DEFAULT 0,
  `HEURES_PRISES_COMPTEUR_50` double NOT NULL DEFAULT 0,
  `HEURES_SUP_50` double NOT NULL DEFAULT 0,
  `HEURES_SUP_CUMUL_TRIMESTRE` double NOT NULL DEFAULT 0,
  `JOURS_FERIES_BLOQUES` double NOT NULL DEFAULT 0,
  `JOURS_FERIES_TRAVAILLES` double NOT NULL DEFAULT 0,
  `N_ASTREINTE` double NOT NULL DEFAULT 0,
  `PENSION_ALIMENTAIRE` double NOT NULL DEFAULT 0,
  `PRIME_DEPLACMENT_ASTREINTE` double NOT NULL DEFAULT 0,
  `PRIME_MACRON` double NOT NULL DEFAULT 0,
  `PRIME_OBJECTIF` double NOT NULL DEFAULT 0,
  `PRIME_QUALITE_OK` char(1) NOT NULL DEFAULT '',
  `PRIME_QUALITE_TRAVAIL` double NOT NULL DEFAULT 0,
  `RAZ_COMPTEUR_RC` char(1) NOT NULL DEFAULT '',
  `RC_ACQUIS_TRIMESTRE` double NOT NULL DEFAULT 0,
  `T_ASTREINTE` double NOT NULL DEFAULT 0,
  `RC_SOLDE` decimal(12,1) NOT NULL DEFAULT 0.0,
  PRIMARY KEY (`ID_TIERS_INFO_PAIE`),
  KEY `AMPLITUDE` (`AMPLITUDE`) USING BTREE,
  KEY `AMPLITUDE_GARANTIE` (`AMPLITUDE_GARANTIE`) USING BTREE,
  KEY `COMPTEUR_HEURES_50` (`COMPTEUR_HEURES_50`) USING BTREE,
  KEY `COMPTEUR_HEURE_25` (`COMPTEUR_HEURE_25`) USING BTREE,
  KEY `FORMATION_EVT_FAMILLIAUX_DELEGATION` (`FORMATION_EVT_FAMILLIAUX_DELEGATION`) USING BTREE,
  KEY `HEURES_PAYEES` (`HEURES_PAYEES`) USING BTREE,
  KEY `HEURE_50` (`HEURE_50`) USING BTREE,
  KEY `MANIPULATION` (`MANIPULATION`) USING BTREE,
  KEY `MOIS` (`MOIS`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `PID_TIERS_INFOS_SALARIES` (`PID_TIERS_INFOS_SALARIES`) USING BTREE,
  KEY `PRIME_JOURNALIERE` (`PRIME_JOURNALIERE`) USING BTREE,
  KEY `REPOS_COMPENSATEUR_PRIS` (`REPOS_COMPENSATEUR_PRIS`) USING BTREE,
  KEY `RTT` (`RTT`) 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 `TEMPS_SERVICE_75_AMPLITUDE` (`TEMPS_SERVICE_75_AMPLITUDE`) USING BTREE,
  KEY `TEMPS_SERVICE_AVEC_VOITURE` (`TEMPS_SERVICE_AVEC_VOITURE`) USING BTREE,
  KEY `TOTAL1` (`TOTAL1`) USING BTREE,
  KEY `TPS_TOTAL_DT_NUIT` (`TPS_TOTAL_DT_NUIT`) USING BTREE,
  KEY `VERROU` (`VERROU`) USING BTREE,
  KEY `SOLDE_CONGES_PAYES_ANTICIPES` (`SOLDE_CONGES_PAYES_ANTICIPES`) USING BTREE,
  KEY `CONGES_PAYES_ACQUIS_MOIS_DT_SAMEDI` (`CONGES_PAYES_ACQUIS_MOIS_DT_SAMEDI`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `EQUIVALENT_HEURES_NORMALES_25` (`EQUIVALENT_HEURES_NORMALES_25`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_LIGNE` (`N_LIGNE`) USING BTREE,
  KEY `SUPPRESSION` (`SUPPRESSION`) USING BTREE,
  KEY `DEBUT_PAIE_PMGP` (`DEBUT_PAIE_PMGP`) USING BTREE,
  KEY `FIN_PAIE_PMGP` (`FIN_PAIE_PMGP`) USING BTREE,
  KEY `RAZ_COMPTEUR` (`RAZ_COMPTEUR`) USING BTREE,
  KEY `COMMENTAIRES` (`COMMENTAIRES`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `BRUT_ABATTU` (`BRUT_ABATTU`) USING BTREE,
  KEY `COMPTEUR_HEURES_NORMALES_DEBUT_TOTAL` (`COMPTEUR_HEURES_NORMALES_DEBUT_TOTAL`) USING BTREE,
  KEY `DISTANCE` (`DISTANCE`) USING BTREE,
  KEY `PRIME_DEPLACMENT_ASTREINTE` (`PRIME_DEPLACMENT_ASTREINTE`) USING BTREE,
  KEY `PRIME_QUALITE_OK` (`PRIME_QUALITE_OK`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `tiers_info_paie_compteur`
--

CREATE TABLE `tiers_info_paie_compteur` (
  `C1` double NOT NULL DEFAULT 0,
  `C10` double NOT NULL DEFAULT 0,
  `C11` double NOT NULL DEFAULT 0,
  `C12` double NOT NULL DEFAULT 0,
  `C13` double NOT NULL DEFAULT 0,
  `C2` double NOT NULL DEFAULT 0,
  `C3` double NOT NULL DEFAULT 0,
  `C4` double NOT NULL DEFAULT 0,
  `C5` double NOT NULL DEFAULT 0,
  `C6` double NOT NULL DEFAULT 0,
  `C7` double NOT NULL DEFAULT 0,
  `C8` double NOT NULL DEFAULT 0,
  `C9` double NOT NULL DEFAULT 0,
  `DEBUT_M1` date DEFAULT NULL,
  `DEBUT_M10` date DEFAULT NULL,
  `DEBUT_M11` date DEFAULT NULL,
  `DEBUT_M12` date DEFAULT NULL,
  `DEBUT_M13` date DEFAULT NULL,
  `DEBUT_M2` date DEFAULT NULL,
  `DEBUT_M3` date DEFAULT NULL,
  `DEBUT_M4` date DEFAULT NULL,
  `DEBUT_M5` date DEFAULT NULL,
  `DEBUT_M6` date DEFAULT NULL,
  `DEBUT_M7` date DEFAULT NULL,
  `DEBUT_M8` date DEFAULT NULL,
  `DEBUT_M9` date DEFAULT NULL,
  `FIN_M1` date DEFAULT NULL,
  `FIN_M10` date DEFAULT NULL,
  `FIN_M11` date DEFAULT NULL,
  `FIN_M12` date DEFAULT NULL,
  `FIN_M13` date DEFAULT NULL,
  `FIN_M2` date DEFAULT NULL,
  `FIN_M3` date DEFAULT NULL,
  `FIN_M4` date DEFAULT NULL,
  `FIN_M5` date DEFAULT NULL,
  `FIN_M6` date DEFAULT NULL,
  `FIN_M7` date DEFAULT NULL,
  `FIN_M8` date DEFAULT NULL,
  `FIN_M9` date DEFAULT NULL,
  `ID_TIERS_INFO_PAIE_COMPTEUR` varchar(32) NOT NULL DEFAULT '',
  `NOM` varchar(50) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(40) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `P` varchar(32) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `SOLDE_DEBUT` double NOT NULL DEFAULT 0,
  `SOLDE_FIN` 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 '',
  `TEMPS_SERVICE_REFERENCE` double NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_TIERS_INFO_PAIE_COMPTEUR`),
  KEY `P` (`P`) 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
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `tiers_info_salarie_rh`
--

CREATE TABLE `tiers_info_salarie_rh` (
  `COMMENTAIRE` blob DEFAULT NULL,
  `DATE` date DEFAULT NULL,
  `DATE_1` date DEFAULT NULL,
  `FAIT` char(1) NOT NULL DEFAULT '',
  `FREQUENCE` varchar(10) NOT NULL DEFAULT '',
  `ID_TIERS_INFO_SALARIE_RH` 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 '',
  `TYPE` varchar(100) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_TIERS_INFO_SALARIE_RH`),
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `DATE_1` (`DATE_1`) USING BTREE,
  KEY `FAIT` (`FAIT`) USING BTREE,
  KEY `FREQUENCE` (`FREQUENCE`) 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 `TYPE` (`TYPE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `tiers_info_salarie_saisie`
--

CREATE TABLE `tiers_info_salarie_saisie` (
  `ADRESSE_ORGANISME` varchar(100) NOT NULL DEFAULT '',
  `ID_TIERS_INFO_SALARIE_SAISIE` varchar(32) NOT NULL DEFAULT '',
  `MEMO` varchar(10) NOT NULL DEFAULT '',
  `MONTANT_TOTAL_A_SAISIR` double NOT NULL DEFAULT 0,
  `N_ENFANTS_CHARGE` double NOT NULL DEFAULT 0,
  `ORDRE_CHEQUE` varchar(100) NOT NULL DEFAULT '',
  `PID_TIERS_INFOS_SALARIES` varchar(32) NOT NULL DEFAULT '',
  `REF_DOSSIER` varchar(30) NOT NULL DEFAULT '',
  `SITUATION_DE_FAMILLE` 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 '',
  `NOM` varchar(30) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `RESTANT_A_SAISIR` double NOT NULL DEFAULT 0,
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `NOM_ORGANISME` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `CODE_POSTAL` varchar(10) NOT NULL DEFAULT '',
  `VILLE` varchar(40) NOT NULL DEFAULT '',
  `TEL` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_TIERS_INFO_SALARIE_SAISIE`),
  KEY `ADRESSE_ORGANISME` (`ADRESSE_ORGANISME`) USING BTREE,
  KEY `ORDRE_CHEQUE` (`ORDRE_CHEQUE`) USING BTREE,
  KEY `PID_TIERS_INFOS_SALARIES` (`PID_TIERS_INFOS_SALARIES`) USING BTREE,
  KEY `REF_DOSSIER` (`REF_DOSSIER`) USING BTREE,
  KEY `SITUATION_DE_FAMILLE` (`SITUATION_DE_FAMILLE`) 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` (`NOM`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `tiers_infos_salaries`
--

CREATE TABLE `tiers_infos_salaries` (
  `ACOMPTE1` double NOT NULL DEFAULT 0,
  `ACOMPTE1_DATE` double NOT NULL DEFAULT 0,
  `ACOMPTE2` double NOT NULL DEFAULT 0,
  `ACOMPTE2_DATE` double NOT NULL DEFAULT 0,
  `ACTIF` char(1) NOT NULL DEFAULT '',
  `AFFILIATION_MUTUELLE` varchar(3) NOT NULL DEFAULT '',
  `AGE` double NOT NULL DEFAULT 0,
  `AIDE_EMBAUCHE` varchar(40) NOT NULL DEFAULT '',
  `AM_N` double NOT NULL DEFAULT 0,
  `ANNEE_INTEGRATION` double NOT NULL DEFAULT 0,
  `ANNEE_SORTIE` double NOT NULL DEFAULT 0,
  `APTH` char(1) NOT NULL DEFAULT '',
  `APTH_DATE` date DEFAULT NULL,
  `CACES` char(1) NOT NULL DEFAULT '',
  `CACES_R389CATE1` varchar(20) NOT NULL DEFAULT '',
  `CACES_R389_CATE3` varchar(20) NOT NULL DEFAULT '',
  `CACES_R389_CATE5` varchar(20) NOT NULL DEFAULT '',
  `CACE_DATE` date DEFAULT NULL,
  `CARTE_CHRONO` char(1) NOT NULL DEFAULT '',
  `CARTE_CHRONOS_NUMERIQUES_DATE` date DEFAULT NULL,
  `CATEGORIE` varchar(40) NOT NULL DEFAULT '',
  `CLASSIFICATION` varchar(50) NOT NULL DEFAULT '',
  `CODE_CLIENT` varchar(100) NOT NULL DEFAULT '',
  `COEFFICIENT` varchar(10) NOT NULL DEFAULT '',
  `CONCAT_CC` varchar(40) NOT NULL DEFAULT '',
  `CONGES_PRIS_EX_1_DT_DT_SAMEDI` double NOT NULL DEFAULT 0,
  `DATE_AFFILIATION_MUTUELLE` date DEFAULT NULL,
  `DATE_DEBUT_CALCUL_CP` date DEFAULT NULL,
  `DATE_ENTREE` date DEFAULT NULL,
  `DATE_FIN_CALCUL_CP` date DEFAULT NULL,
  `DATE_NAISSANCE` date DEFAULT NULL,
  `DATE_NOTIFICATION_RUPTURE` date DEFAULT NULL,
  `DATE_OBTENTION_PERMIS_DE_CONDUIRE` date DEFAULT NULL,
  `DATE_SORTIE` date DEFAULT NULL,
  `DATE_VALIDITE_PERMIS` date DEFAULT NULL,
  `DERNIER_EMPLOI_OCCUPE` varchar(200) NOT NULL DEFAULT '',
  `DO_ADR` date DEFAULT NULL,
  `DO_CACES` date DEFAULT NULL,
  `DO_CARTE_COND` date DEFAULT NULL,
  `DO_CARTE_QUALIF` date DEFAULT NULL,
  `DO_SST` date DEFAULT NULL,
  `DV_ADR` date DEFAULT NULL,
  `DV_CACES` date DEFAULT NULL,
  `DV_CARTE_COND` date DEFAULT NULL,
  `DV_CARTE_QUALIF` date DEFAULT NULL,
  `DV_SST` date DEFAULT NULL,
  `ETABLISSEMENT` varchar(20) NOT NULL DEFAULT '',
  `FCOS` char(1) NOT NULL DEFAULT '',
  `FCOS_DATE` date DEFAULT NULL,
  `GROUPE` varchar(10) NOT NULL DEFAULT '',
  `IDENT_MODELE_WORD` varchar(32) NOT NULL DEFAULT '',
  `ID_TIERS_INFOS_SALARIES` varchar(32) NOT NULL DEFAULT '',
  `LEBELLE_EMPLOI` varchar(30) NOT NULL DEFAULT '',
  `LIEU_NAISSANCE` varchar(40) NOT NULL DEFAULT '',
  `LONGUE_COURTE_DISTANCE` varchar(40) NOT NULL DEFAULT '',
  `MOTIF_RUPTURE` varchar(40) NOT NULL DEFAULT '',
  `MUTUELLE` varchar(40) NOT NULL DEFAULT '',
  `MUTUELLE_MTT` double NOT NULL DEFAULT 0,
  `NATIONALITE` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NOM_SALARIE` varchar(100) NOT NULL DEFAULT '',
  `NUMERO_CLASSIFICATION` double NOT NULL DEFAULT 0,
  `N_ADR` varchar(20) NOT NULL DEFAULT '',
  `N_CACES` varchar(20) NOT NULL DEFAULT '',
  `N_CARTE_COND` varchar(20) NOT NULL DEFAULT '',
  `N_CARTE_QUALIF` varchar(20) NOT NULL DEFAULT '',
  `N_HEURE_THEORIQUE` double NOT NULL DEFAULT 0,
  `N_PERMIS` varchar(20) NOT NULL DEFAULT '',
  `N_PERSONNE_CHARGE` double NOT NULL DEFAULT 0,
  `N_SS` varchar(20) NOT NULL DEFAULT '',
  `N_SST` varchar(20) NOT NULL DEFAULT '',
  `N_TITRE_SEJOUR` varchar(20) NOT NULL DEFAULT '',
  `OBTENTION_R389CAT1` date DEFAULT NULL,
  `OBTENTION_R389_CATE3` date DEFAULT NULL,
  `OBTENTION_R389_CATE5` date DEFAULT NULL,
  `PERMIS` char(1) NOT NULL DEFAULT '',
  `PERSONNE_A_PREVENIR` varchar(200) NOT NULL DEFAULT '',
  `PERSONNE_A_PREVENIR_TEL` double NOT NULL DEFAULT 0,
  `PERSONNE_CHARGE` char(1) NOT NULL DEFAULT '',
  `PHOTO` char(1) NOT NULL DEFAULT '',
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `POINTURES_CHAUSSURES` double NOT NULL DEFAULT 0,
  `PRM` double NOT NULL DEFAULT 0,
  `RIB` char(1) NOT NULL DEFAULT '',
  `RQTH` varchar(3) NOT NULL DEFAULT '',
  `SEXE` varchar(10) NOT NULL DEFAULT '',
  `SITUATION_FAMILLE` varchar(20) NOT NULL DEFAULT '',
  `SOLDE_CONGES_PAYES_3006_DT_SAMEDI` double NOT NULL DEFAULT 0,
  `SOLDE_CONGES_PAYES_308` double NOT NULL DEFAULT 0,
  `SOUS_CATEGORIE` varchar(50) 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_HORAIRE` double NOT NULL DEFAULT 0,
  `TAUX_INVALIDITE` double NOT NULL DEFAULT 0,
  `TEL_PERSONNE_A_PREVENIR` varchar(20) NOT NULL DEFAULT '',
  `TYPE_CONTRAT_TRAVAIL` varchar(20) NOT NULL DEFAULT '',
  `VALIDITE_R389_CATE1` date DEFAULT NULL,
  `VALIDITE_R389_CATE3` date DEFAULT NULL,
  `VALIDITE_R389_CATE5` date DEFAULT NULL,
  `VALIDITE_TITRE_SEJOUR` date DEFAULT NULL,
  `VILLE_CPAM` varchar(10) NOT NULL DEFAULT '',
  `VM_EMBAUCHE_VALIDITE` date DEFAULT NULL,
  `VM_ENTRETIEN_INFIRMIER` date DEFAULT NULL,
  `VM_PERIODIQUE_VALIDITE` date DEFAULT NULL,
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `DATE_FIN_CDD` date DEFAULT NULL,
  `CONGES_PAYES_ACQUIS_MOIS_COMPLET` double NOT NULL DEFAULT 0,
  `VALORISATION_HEURE_JOUR` double NOT NULL DEFAULT 0,
  `TAILLE_BLOUSON` varchar(10) NOT NULL DEFAULT '',
  `DATE_ANCIENNETE` date DEFAULT NULL,
  `ANCIENNETE_TAUX` double NOT NULL DEFAULT 0,
  `AVANTAGE_EN_NATURE` double NOT NULL DEFAULT 0,
  `BLOCAGE` char(1) NOT NULL DEFAULT '',
  `COMPTEUR_HEURES_NORMALES_ACQUIS` double NOT NULL DEFAULT 0,
  `DATE_HEURE_ADR` varchar(60) NOT NULL DEFAULT '',
  `DATE_HEURE_CACES` varchar(60) NOT NULL DEFAULT '',
  `DATE_HEURE_CACES3` varchar(60) NOT NULL DEFAULT '',
  `DATE_HEURE_CACES5` varchar(60) NOT NULL DEFAULT '',
  `DATE_HEURE_CACES7` varchar(60) NOT NULL DEFAULT '',
  `DATE_HEURE_CARTE_CONDUCTEUR` varchar(60) NOT NULL DEFAULT '',
  `DATE_HEURE_CARTE_QUALIF` varchar(60) NOT NULL DEFAULT '',
  `DATE_HEURE_EMBAUCHE` varchar(60) NOT NULL DEFAULT '',
  `DATE_HEURE_PC` varchar(60) NOT NULL DEFAULT '',
  `DATE_HEURE_PERIODIQUE` varchar(60) NOT NULL DEFAULT '',
  `DATE_HEURE_SST` varchar(60) NOT NULL DEFAULT '',
  `INTERIM_ID` varchar(32) NOT NULL DEFAULT '',
  `INTERIM_NOM_ENTREPRISE` varchar(50) NOT NULL DEFAULT '',
  `MUTUELLE_CATEGORIE` varchar(20) NOT NULL DEFAULT '',
  `MUTUELLE_FORMULE` varchar(20) NOT NULL DEFAULT '',
  `MUTUELLE_OPTION` varchar(20) NOT NULL DEFAULT '',
  `MUTUELLE_PATRONALE` double NOT NULL DEFAULT 0,
  `MUTUELLE_SALARIALE` double NOT NULL DEFAULT 0,
  `N_HEURE_CONTRAT` double NOT NULL DEFAULT 0,
  `OUVRE_OUVRABLE` double NOT NULL DEFAULT 0,
  `TAILLE_PANTALON` varchar(10) NOT NULL DEFAULT '',
  `TAUX_HORAIRE_BASE` double NOT NULL DEFAULT 0,
  `TICKET_RESTAURANT` double NOT NULL DEFAULT 0,
  `TYPE_DOCUMENT_RH` varchar(40) NOT NULL DEFAULT '',
  `TYPE_SUIVI_MEDICAL` varchar(10) NOT NULL DEFAULT '',
  `VM_PROCHAINE_VISITE` date DEFAULT NULL,
  `PERSONNE_A_PREVENIR_CIVILITE` varchar(10) NOT NULL DEFAULT '',
  `PERSONNE_A_PREVENIR_PRENOM` varchar(10) NOT NULL DEFAULT '',
  `LIEN_FAMILLE` varchar(20) NOT NULL DEFAULT '',
  `HORS_CCN` char(1) NOT NULL DEFAULT '',
  `IDENT_AI_EMBAUCHE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AI_VALIDITE_ADR` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AI_VALIDITE_CACES1` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AI_VALIDITE_CACES2` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AI_VALIDITE_CACES3` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AI_VALIDITE_CACES4` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AI_VALIDITE_CONDUCTEUR` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AI_VALIDITE_PC` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AI_VALIDITE_QUALIF` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AI_VALIDITE_SST` varchar(32) NOT NULL DEFAULT '',
  `IDENT_AI_VM_PERIODIQUE` varchar(32) NOT NULL DEFAULT '',
  `SOLDE_CONGES_PAYES_309` double NOT NULL DEFAULT 0,
  `BRUT_ABATTU` char(1) NOT NULL DEFAULT '',
  `CONGES_PRIS_ANTICIPATION` double NOT NULL DEFAULT 0,
  `CP_COUE` double NOT NULL DEFAULT 0,
  `PENSION_ALIMENTAIRE` double NOT NULL DEFAULT 0,
  `RC_PRIS` double NOT NULL DEFAULT 0,
  `IDENT_DOC_ARCHIVE_POUR_SIGN` varchar(32) NOT NULL DEFAULT '',
  `MATRICULE_SALARIE1` varchar(10) NOT NULL DEFAULT '',
  `MATRICULE_SALARIE` varchar(10) NOT NULL DEFAULT '',
  `AGENCE` varchar(30) NOT NULL DEFAULT '',
  `GROUPE_ACTIVITE` varchar(30) NOT NULL DEFAULT '',
  `IDENT_AIDE_GROUPE_ACTIVITE` varchar(32) NOT NULL DEFAULT '',
  `DATE_FIN_DISPENSE_MUTUELLE` date DEFAULT NULL,
  `ALERTE_RH_DATE_CONTRAT` date DEFAULT NULL,
  `ALERTE_RH_CONTRAT_PREVENANCE` date DEFAULT NULL,
  `ABATTEMENT_FRAIS_PRO` char(1) NOT NULL DEFAULT '',
  `DATE_CDI` date DEFAULT NULL,
  `LIEN_FAMILLE_2` varchar(20) NOT NULL DEFAULT '',
  `MEMO` blob DEFAULT NULL,
  `PERSONNE_A_PREVENIR_2` varchar(200) NOT NULL DEFAULT '',
  `PERSONNE_A_PREVENIR_CIVILITE_2` varchar(10) NOT NULL DEFAULT '',
  `PERSONNE_A_PREVENIR_PRENOM_2` varchar(10) NOT NULL DEFAULT '',
  `PRIME_FORMATION` decimal(12,2) NOT NULL DEFAULT 0.00,
  `TEL_PERSONNE_A_PREVENIR_2` varchar(20) NOT NULL DEFAULT '',
  `COMPTEUR` decimal(12,0) NOT NULL DEFAULT 0,
  `ADRESSE1` varchar(100) NOT NULL DEFAULT '',
  `ADRESSE2` varchar(100) NOT NULL DEFAULT '',
  `CODE_POSTAL` varchar(10) NOT NULL DEFAULT '',
  `VILLE` varchar(100) NOT NULL DEFAULT '',
  `DPT_NUM` varchar(10) NOT NULL DEFAULT '',
  `EMAIL` varchar(100) NOT NULL DEFAULT '',
  `TEL_SAL` varchar(12) NOT NULL DEFAULT '',
  `NOM` varchar(40) NOT NULL DEFAULT '',
  `PRENOM` varchar(50) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_TIERS_INFOS_SALARIES`),
  KEY `ACTIF` (`ACTIF`) USING BTREE,
  KEY `ANNEE_INTEGRATION` (`ANNEE_INTEGRATION`) USING BTREE,
  KEY `ANNEE_SORTIE` (`ANNEE_SORTIE`) USING BTREE,
  KEY `CACE_DATE` (`CACE_DATE`) USING BTREE,
  KEY `CARTE_CHRONOS_NUMERIQUES_DATE` (`CARTE_CHRONOS_NUMERIQUES_DATE`) USING BTREE,
  KEY `CATEGORIE` (`CATEGORIE`) USING BTREE,
  KEY `CLASSIFICATION` (`CLASSIFICATION`) USING BTREE,
  KEY `CODE_CLIENT` (`CODE_CLIENT`) USING BTREE,
  KEY `CONCAT_CC` (`CONCAT_CC`) USING BTREE,
  KEY `DATE_DEBUT_CALCUL_CP` (`DATE_DEBUT_CALCUL_CP`) USING BTREE,
  KEY `DATE_ENTREE` (`DATE_ENTREE`) USING BTREE,
  KEY `DATE_FIN_CALCUL_CP` (`DATE_FIN_CALCUL_CP`) USING BTREE,
  KEY `DATE_NAISSANCE` (`DATE_NAISSANCE`) USING BTREE,
  KEY `DATE_NOTIFICATION_RUPTURE` (`DATE_NOTIFICATION_RUPTURE`) USING BTREE,
  KEY `DATE_OBTENTION_PERMIS_DE_CONDUIRE` (`DATE_OBTENTION_PERMIS_DE_CONDUIRE`) USING BTREE,
  KEY `DATE_SORTIE` (`DATE_SORTIE`) USING BTREE,
  KEY `DATE_VALIDITE_PERMIS` (`DATE_VALIDITE_PERMIS`) USING BTREE,
  KEY `ETABLISSEMENT` (`ETABLISSEMENT`) USING BTREE,
  KEY `FCOS_DATE` (`FCOS_DATE`) USING BTREE,
  KEY `LEBELLE_EMPLOI` (`LEBELLE_EMPLOI`) USING BTREE,
  KEY `LONGUE_COURTE_DISTANCE` (`LONGUE_COURTE_DISTANCE`) USING BTREE,
  KEY `MOTIF_RUPTURE` (`MOTIF_RUPTURE`) USING BTREE,
  KEY `MUTUELLE` (`MUTUELLE`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `NOM_SALARIE` (`NOM_SALARIE`) USING BTREE,
  KEY `NUMERO_CLASSIFICATION` (`NUMERO_CLASSIFICATION`) USING BTREE,
  KEY `N_HEURE_THEORIQUE` (`N_HEURE_THEORIQUE`) USING BTREE,
  KEY `N_SS` (`N_SS`) USING BTREE,
  KEY `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `SITUATION_FAMILLE` (`SITUATION_FAMILLE`) USING BTREE,
  KEY `SOUS_CATEGORIE` (`SOUS_CATEGORIE`) 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 `TAUX_HORAIRE` (`TAUX_HORAIRE`) USING BTREE,
  KEY `TYPE_CONTRAT_TRAVAIL` (`TYPE_CONTRAT_TRAVAIL`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `DATE_FIN_CDD` (`DATE_FIN_CDD`) USING BTREE,
  KEY `ANCIENNETE_TAUX` (`ANCIENNETE_TAUX`) USING BTREE,
  KEY `BLOCAGE` (`BLOCAGE`) USING BTREE,
  KEY `DATE_HEURE_ADR` (`DATE_HEURE_ADR`) USING BTREE,
  KEY `DATE_HEURE_CACES` (`DATE_HEURE_CACES`) USING BTREE,
  KEY `DATE_HEURE_CACES3` (`DATE_HEURE_CACES3`) USING BTREE,
  KEY `DATE_HEURE_CACES5` (`DATE_HEURE_CACES5`) USING BTREE,
  KEY `DATE_HEURE_CACES7` (`DATE_HEURE_CACES7`) USING BTREE,
  KEY `DATE_HEURE_CARTE_CONDUCTEUR` (`DATE_HEURE_CARTE_CONDUCTEUR`) USING BTREE,
  KEY `DATE_HEURE_CARTE_QUALIF` (`DATE_HEURE_CARTE_QUALIF`) USING BTREE,
  KEY `DATE_HEURE_EMBAUCHE` (`DATE_HEURE_EMBAUCHE`) USING BTREE,
  KEY `DATE_HEURE_PC` (`DATE_HEURE_PC`) USING BTREE,
  KEY `DATE_HEURE_PERIODIQUE` (`DATE_HEURE_PERIODIQUE`) USING BTREE,
  KEY `DATE_HEURE_SST` (`DATE_HEURE_SST`) USING BTREE,
  KEY `INTERIM_ID` (`INTERIM_ID`) USING BTREE,
  KEY `MUTUELLE_CATEGORIE` (`MUTUELLE_CATEGORIE`) USING BTREE,
  KEY `MUTUELLE_FORMULE` (`MUTUELLE_FORMULE`) USING BTREE,
  KEY `MUTUELLE_OPTION` (`MUTUELLE_OPTION`) USING BTREE,
  KEY `TYPE_DOCUMENT_RH` (`TYPE_DOCUMENT_RH`) USING BTREE,
  KEY `VM_PROCHAINE_VISITE` (`VM_PROCHAINE_VISITE`) USING BTREE,
  KEY `MATRICULE_SALARIE1` (`MATRICULE_SALARIE1`) USING BTREE,
  KEY `MATRICULE_SALARIE` (`MATRICULE_SALARIE`) USING BTREE,
  KEY `ALERTE_RH_DATE_CONTRAT` (`ALERTE_RH_DATE_CONTRAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `tiers_infos_saliaries_temps`
--

CREATE TABLE `tiers_infos_saliaries_temps` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `matricule_de_paie` varchar(255) DEFAULT NULL,
  `pid_tiers` varchar(255) DEFAULT NULL,
  `code_evenement` varchar(255) DEFAULT NULL,
  `date_de_debut` varchar(255) DEFAULT NULL,
  `demi_journee_de_debut` varchar(255) DEFAULT NULL,
  `date_de_fin` varchar(255) DEFAULT NULL,
  `demi_journee_de_fin` varchar(255) DEFAULT NULL,
  `type` varchar(255) DEFAULT NULL,
  `controle` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18586 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Table structure for table `tliste_action_marketing`
--

CREATE TABLE `tliste_action_marketing` (
  `CODE_UTILISATEUR` varchar(20) NOT NULL DEFAULT '',
  `ID_TLISTE_ACTION_MARKETING` varchar(32) NOT NULL DEFAULT '',
  `PID_ACTION_MARKETING` 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 '',
  PRIMARY KEY (`ID_TLISTE_ACTION_MARKETING`),
  KEY `CODE_UTILISATEUR` (`CODE_UTILISATEUR`) USING BTREE,
  KEY `PID_ACTION_MARKETING` (`PID_ACTION_MARKETING`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `traite_et`
--

CREATE TABLE `traite_et` (
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `FAIT` varchar(10) NOT NULL DEFAULT '',
  `ID_TRAITE_ET` varchar(32) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NOM_FICHIER_TRAITE` varchar(200) NOT NULL DEFAULT '',
  `NOM_TRESO_TRAITE` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_LIGNE_REGROUPEMENT` double NOT NULL DEFAULT 0,
  `N_LIGNE_SANS_REGROUPEMENT` double NOT NULL DEFAULT 0,
  `N_TRAITE` varchar(20) NOT NULL DEFAULT '',
  `N_TRESO_TRAITE` double NOT NULL DEFAULT 0,
  `REGROUPEMENT` 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_TRAITE` double NOT NULL DEFAULT 0,
  `TOTAL_TRAITE_VALIDE` double NOT NULL DEFAULT 0,
  `TYPE_REMISE_EFFET` varchar(20) NOT NULL DEFAULT '',
  `N_DOSSIER_TRESO` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_TRAITE_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `FAIT` (`FAIT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `NOM_TRESO_TRAITE` (`NOM_TRESO_TRAITE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_TRAITE` (`N_TRAITE`) USING BTREE,
  KEY `N_TRESO_TRAITE` (`N_TRESO_TRAITE`) 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 `N_DOSSIER_TRESO` (`N_DOSSIER_TRESO`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `treso_partition`
--

CREATE TABLE `treso_partition` (
  `CODE_JOURNAL` varchar(10) NOT NULL DEFAULT '',
  `CODE_JOURNAL_SP` varchar(10) NOT NULL DEFAULT '',
  `CREDIT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `CREDIT_SP` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DATE_PARTITION` date DEFAULT NULL,
  `DATE_PARTITION_SP` date DEFAULT NULL,
  `DEBIT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DEBIT_SP` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DELAI_RGT` double NOT NULL DEFAULT 0,
  `DELAI_RGT_SP` double NOT NULL DEFAULT 0,
  `ECRITURE_INITIALE_DET` varchar(32) NOT NULL DEFAULT '',
  `ECRITURE_INITIALE_DET_SP` varchar(32) NOT NULL DEFAULT '',
  `ECRITURE_INITIALE_ET` varchar(32) NOT NULL DEFAULT '',
  `ECRITURE_INITIALE_ET_SP` varchar(32) NOT NULL DEFAULT '',
  `ECRITURE_RGT` char(1) NOT NULL DEFAULT '',
  `ECRITURE_SIMULATION` char(1) NOT NULL DEFAULT '',
  `IDENTIFICATION_JOURNAL_DET` varchar(25) NOT NULL DEFAULT '',
  `IDENTIFICATION_JOURNAL_DET_SP` varchar(35) NOT NULL DEFAULT '',
  `IDENTIFICATION_TIERS_SA` varchar(32) NOT NULL DEFAULT '',
  `IDENTIFICATION_TIERS_SP` varchar(32) NOT NULL DEFAULT '',
  `ID_TRESO_PARTITION` varchar(32) NOT NULL DEFAULT '',
  `LIBELLE` varchar(100) NOT NULL DEFAULT '',
  `LIBELLE_SP` varchar(100) NOT NULL DEFAULT '',
  `MOIS_ECRITURE_SP` varchar(5) NOT NULL DEFAULT '',
  `MOIS_TRESO_SP` varchar(5) NOT NULL DEFAULT '',
  `NOM_BANQUE` varchar(30) NOT NULL DEFAULT '',
  `NOM_BANQUE_SP` varchar(30) NOT NULL DEFAULT '',
  `NOM_COMPTE_GENERAL` varchar(50) NOT NULL DEFAULT '',
  `NOM_COMPTE_GENERAL_SP` varchar(50) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NOM_DOSSIER_SP` varchar(30) NOT NULL DEFAULT '',
  `NOM_JOURNAL` varchar(50) NOT NULL DEFAULT '',
  `NOM_JOURNAL_SP` varchar(50) NOT NULL DEFAULT '',
  `NOM_TIERS` varchar(100) NOT NULL DEFAULT '',
  `NOM_TIERS_SP` varchar(30) NOT NULL DEFAULT '',
  `NUMERO_COMPTE_GENERAL` double NOT NULL DEFAULT 0,
  `NUMERO_COMPTE_GENERAL_PART` double NOT NULL DEFAULT 0,
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_DOSSIER_SP` double NOT NULL DEFAULT 0,
  `N_ECRITURE_RGT` varchar(10) NOT NULL DEFAULT '',
  `N_ECRITURE_RGT_SP` varchar(10) NOT NULL DEFAULT '',
  `N_EXERCICE` varchar(10) NOT NULL DEFAULT '',
  `N_EXERCICE_SP` varchar(10) NOT NULL DEFAULT '',
  `N_PIECE` varchar(20) NOT NULL DEFAULT '',
  `N_PIECE_SP` varchar(20) NOT NULL DEFAULT '',
  `N_TRESO` double NOT NULL DEFAULT 0,
  `N_TRESO_SP` double NOT NULL DEFAULT 0,
  `PIDENTIFICATION_JOURNAL_ET` varchar(35) NOT NULL DEFAULT '',
  `PIDENTIFICATION_JOURNAL_ET_SP` varchar(35) NOT NULL DEFAULT '',
  `RD` double NOT NULL DEFAULT 0,
  `RD_SP` 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 '',
  `TYPE_RGT_LIBELLE` varchar(20) NOT NULL DEFAULT '',
  `TYPE_RGT_LIBELLE_SP` varchar(20) NOT NULL DEFAULT '',
  `TYPE_RGT_SP` double NOT NULL DEFAULT 0,
  `ECRITURE_ECART` char(1) NOT NULL DEFAULT '',
  `N_ECRITURE` varchar(20) NOT NULL DEFAULT '',
  `N_ECRITURE_SP` varchar(20) NOT NULL DEFAULT '',
  `TYPE_RGT` varchar(20) NOT NULL DEFAULT '',
  `IDENT_DOCUMENT_ARCHIVE_SA` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DOCUMENT_ARCHIVE_SP` varchar(32) NOT NULL DEFAULT '',
  `N_EXERCICE_SA` 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,
  `COMPTAGE_TIERS` double NOT NULL DEFAULT 0,
  `COMPTAGE_TIERS_SP` double NOT NULL DEFAULT 0,
  `CREDIT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `CREDIT_SP_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DEBIT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DEBIT_SP_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_1_SP` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `DEVISE_2_SP` double NOT NULL DEFAULT 0,
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_12_SP` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21_SP` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `DATE_ECRITURE` varchar(10) NOT NULL DEFAULT '',
  `DATE_ECRITURE_SP` date DEFAULT NULL,
  `SYS_LIEN_CONTEXTE_MAITRE` varchar(32) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_TRESO_PARTITION`),
  KEY `CODE_JOURNAL` (`CODE_JOURNAL`) USING BTREE,
  KEY `CODE_JOURNAL_SP` (`CODE_JOURNAL_SP`) USING BTREE,
  KEY `DELAI_RGT` (`DELAI_RGT`) USING BTREE,
  KEY `DELAI_RGT_SP` (`DELAI_RGT_SP`) USING BTREE,
  KEY `ECRITURE_INITIALE_DET` (`ECRITURE_INITIALE_DET`) USING BTREE,
  KEY `ECRITURE_INITIALE_DET_SP` (`ECRITURE_INITIALE_DET_SP`) USING BTREE,
  KEY `ECRITURE_INITIALE_ET` (`ECRITURE_INITIALE_ET`) USING BTREE,
  KEY `ECRITURE_INITIALE_ET_SP` (`ECRITURE_INITIALE_ET_SP`) USING BTREE,
  KEY `ECRITURE_RGT` (`ECRITURE_RGT`) USING BTREE,
  KEY `ECRITURE_SIMULATION` (`ECRITURE_SIMULATION`) USING BTREE,
  KEY `IDENTIFICATION_JOURNAL_DET` (`IDENTIFICATION_JOURNAL_DET`) USING BTREE,
  KEY `IDENTIFICATION_JOURNAL_DET_SP` (`IDENTIFICATION_JOURNAL_DET_SP`) USING BTREE,
  KEY `IDENTIFICATION_TIERS_SA` (`IDENTIFICATION_TIERS_SA`) USING BTREE,
  KEY `IDENTIFICATION_TIERS_SP` (`IDENTIFICATION_TIERS_SP`) USING BTREE,
  KEY `MOIS_ECRITURE_SP` (`MOIS_ECRITURE_SP`) USING BTREE,
  KEY `MOIS_TRESO_SP` (`MOIS_TRESO_SP`) USING BTREE,
  KEY `NOM_DOSSIER_SP` (`NOM_DOSSIER_SP`) USING BTREE,
  KEY `NUMERO_COMPTE_GENERAL` (`NUMERO_COMPTE_GENERAL`) USING BTREE,
  KEY `NUMERO_COMPTE_GENERAL_PART` (`NUMERO_COMPTE_GENERAL_PART`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_DOSSIER_SP` (`N_DOSSIER_SP`) USING BTREE,
  KEY `N_EXERCICE` (`N_EXERCICE`) USING BTREE,
  KEY `N_EXERCICE_SP` (`N_EXERCICE_SP`) USING BTREE,
  KEY `N_PIECE` (`N_PIECE`) USING BTREE,
  KEY `N_PIECE_SP` (`N_PIECE_SP`) USING BTREE,
  KEY `N_TRESO` (`N_TRESO`) USING BTREE,
  KEY `N_TRESO_SP` (`N_TRESO_SP`) USING BTREE,
  KEY `PIDENTIFICATION_JOURNAL_ET` (`PIDENTIFICATION_JOURNAL_ET`) USING BTREE,
  KEY `PIDENTIFICATION_JOURNAL_ET_SP` (`PIDENTIFICATION_JOURNAL_ET_SP`) USING BTREE,
  KEY `RD` (`RD`) USING BTREE,
  KEY `RD_SP` (`RD_SP`) 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_NO_LIGNE` (`SYS_NO_LIGNE`) USING BTREE,
  KEY `TYPE_RGT_LIBELLE` (`TYPE_RGT_LIBELLE`) USING BTREE,
  KEY `TYPE_RGT_LIBELLE_SP` (`TYPE_RGT_LIBELLE_SP`) USING BTREE,
  KEY `TYPE_RGT_SP` (`TYPE_RGT_SP`) USING BTREE,
  KEY `ECRITURE_ECART` (`ECRITURE_ECART`) USING BTREE,
  KEY `DATE_PARTITION_SP` (`DATE_PARTITION_SP`) USING BTREE,
  KEY `N_ECRITURE` (`N_ECRITURE`) USING BTREE,
  KEY `N_ECRITURE_SP` (`N_ECRITURE_SP`) USING BTREE,
  KEY `IDENT_DOCUMENT_ARCHIVE_SA` (`IDENT_DOCUMENT_ARCHIVE_SA`) USING BTREE,
  KEY `IDENT_DOCUMENT_ARCHIVE_SP` (`IDENT_DOCUMENT_ARCHIVE_SP`) USING BTREE,
  KEY `N_EXERCICE_SA` (`N_EXERCICE_SA`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `SYS_LIEN_CONTEXTE_MAITRE` (`SYS_LIEN_CONTEXTE_MAITRE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `treso_partition_det`
--

CREATE TABLE `treso_partition_det` (
  `CODE_JOURNAL` varchar(10) NOT NULL DEFAULT '',
  `COMPTAGE_TIERS` double NOT NULL DEFAULT 0,
  `CREDIT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `CREDIT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DATE_ECRITURE` date DEFAULT NULL,
  `DATE_PARTITION` date DEFAULT NULL,
  `DEBIT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DEBIT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DELAI_RGT` double NOT NULL DEFAULT 0,
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `ECRITURE_ECART` char(1) NOT NULL DEFAULT '',
  `ECRITURE_INITIALE_DET` varchar(32) NOT NULL DEFAULT '',
  `ECRITURE_INITIALE_ET` varchar(32) NOT NULL DEFAULT '',
  `ECRITURE_RGT` char(1) NOT NULL DEFAULT '',
  `ECRITURE_SIMULATION` char(1) NOT NULL DEFAULT '',
  `IDENTIFICATION_TIERS` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DOCUMENT_ARCHIVE` varchar(32) NOT NULL DEFAULT '',
  `ID_TRESO_PARTITION_DET` varchar(32) NOT NULL DEFAULT '',
  `LIBELLE` varchar(100) NOT NULL DEFAULT '',
  `NOM_TRESO` varchar(30) NOT NULL DEFAULT '',
  `NOM_COMPTE_GENERAL` varchar(50) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NOM_JOURNAL` varchar(50) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_ECRITURE` varchar(20) NOT NULL DEFAULT '',
  `N_ECRITURE_RGT` varchar(10) NOT NULL DEFAULT '',
  `N_EXERCICE` decimal(12,0) NOT NULL DEFAULT 0,
  `N_PIECE` varchar(20) NOT NULL DEFAULT '',
  `N_TRESO` double NOT NULL DEFAULT 0,
  `RD` 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 '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TYPE_RGT` varchar(20) NOT NULL DEFAULT '',
  `TYPE_RGT_LIBELLE` varchar(20) NOT NULL DEFAULT '',
  `SYS_LIEN_CONTEXTE_MAITRE` varchar(32) NOT NULL DEFAULT '',
  `COMPTAGE_LIGNE` decimal(12,0) NOT NULL DEFAULT 0,
  `N_PIECE_INTERNE` varchar(20) NOT NULL DEFAULT '',
  `PID_TRESO_PARTITION_ET` varchar(32) NOT NULL DEFAULT '',
  `TYPE_ECRITURE` decimal(12,0) NOT NULL DEFAULT 0,
  `ECRITURE_INITIALE_SYS` varchar(32) NOT NULL DEFAULT '',
  `N_EXERCICE_SYS` decimal(12,0) NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_TRESO_PARTITION_DET`),
  KEY `CODE_JOURNAL` (`CODE_JOURNAL`) USING BTREE,
  KEY `DELAI_RGT` (`DELAI_RGT`) USING BTREE,
  KEY `ECRITURE_ECART` (`ECRITURE_ECART`) USING BTREE,
  KEY `ECRITURE_INITIALE_DET` (`ECRITURE_INITIALE_DET`) USING BTREE,
  KEY `ECRITURE_INITIALE_ET` (`ECRITURE_INITIALE_ET`) USING BTREE,
  KEY `ECRITURE_RGT` (`ECRITURE_RGT`) USING BTREE,
  KEY `ECRITURE_SIMULATION` (`ECRITURE_SIMULATION`) USING BTREE,
  KEY `IDENTIFICATION_TIERS` (`IDENTIFICATION_TIERS`) USING BTREE,
  KEY `IDENT_DOCUMENT_ARCHIVE` (`IDENT_DOCUMENT_ARCHIVE`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_CPTE_GENERAL` (`N_CPTE_GENERAL`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_ECRITURE` (`N_ECRITURE`) USING BTREE,
  KEY `N_EXERCICE` (`N_EXERCICE`) USING BTREE,
  KEY `N_PIECE` (`N_PIECE`) USING BTREE,
  KEY `N_TRESO` (`N_TRESO`) USING BTREE,
  KEY `RD` (`RD`) 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_NO_LIGNE` (`SYS_NO_LIGNE`) USING BTREE,
  KEY `TYPE_RGT_LIBELLE` (`TYPE_RGT_LIBELLE`) USING BTREE,
  KEY `SYS_LIEN_CONTEXTE_MAITRE` (`SYS_LIEN_CONTEXTE_MAITRE`) USING BTREE,
  KEY `PID_TRESO_PARTITION_ET` (`PID_TRESO_PARTITION_ET`) USING BTREE,
  KEY `TYPE_ECRITURE` (`TYPE_ECRITURE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `treso_partition_et`
--

CREATE TABLE `treso_partition_et` (
  `CODE_JOURNAL` varchar(10) NOT NULL DEFAULT '',
  `COMPTAGE_TIERS` double NOT NULL DEFAULT 0,
  `CREDIT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `CREDIT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DATE_ECRITURE` date DEFAULT NULL,
  `DATE_PARTITION` date DEFAULT NULL,
  `DEBIT` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DEBIT_ETR1` decimal(12,2) NOT NULL DEFAULT 0.00,
  `DELAI_RGT` double NOT NULL DEFAULT 0,
  `DEVISE_1` double NOT NULL DEFAULT 0,
  `DEVISE_2` double NOT NULL DEFAULT 0,
  `ECRITURE_INITIALE_DET` varchar(32) NOT NULL DEFAULT '',
  `ECRITURE_INITIALE_ET` varchar(32) NOT NULL DEFAULT '',
  `IDENTIFICATION_TIERS` varchar(32) NOT NULL DEFAULT '',
  `IDENT_DOCUMENT_ARCHIVE` varchar(32) NOT NULL DEFAULT '',
  `ID_TRESO_PARTITION_ET` varchar(32) NOT NULL DEFAULT '',
  `LIBELLE` varchar(100) NOT NULL DEFAULT '',
  `NOM_TRESO` varchar(30) NOT NULL DEFAULT '',
  `NOM_COMPTE_GENERAL` varchar(50) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NOM_JOURNAL` varchar(50) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(100) NOT NULL DEFAULT '',
  `N_CPTE_GENERAL` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_ECRITURE` varchar(20) NOT NULL DEFAULT '',
  `N_ECRITURE_RGT` varchar(10) NOT NULL DEFAULT '',
  `N_EXERCICE` decimal(12,0) NOT NULL DEFAULT 0,
  `N_PIECE` varchar(20) NOT NULL DEFAULT '',
  `N_TRESO` double NOT NULL DEFAULT 0,
  `RD` 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 '',
  `TX_CHANGE_12` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TX_CHANGE_21` decimal(12,5) NOT NULL DEFAULT 0.00000,
  `TYPE_RGT` varchar(20) NOT NULL DEFAULT '',
  `TYPE_RGT_LIBELLE` varchar(20) NOT NULL DEFAULT '',
  `SYS_LIEN_CONTEXTE_MAITRE` varchar(32) NOT NULL DEFAULT '',
  `COMPTAGE_LIGNE` decimal(12,0) NOT NULL DEFAULT 0,
  `N_PIECE_INTERNE` varchar(20) NOT NULL DEFAULT '',
  `ECRTURE_INITIALE_SYS` varchar(32) NOT NULL DEFAULT '',
  `N_EXERCICE_SYS` decimal(12,0) NOT NULL DEFAULT 0,
  PRIMARY KEY (`ID_TRESO_PARTITION_ET`),
  KEY `CODE_JOURNAL` (`CODE_JOURNAL`) USING BTREE,
  KEY `DELAI_RGT` (`DELAI_RGT`) USING BTREE,
  KEY `ECRITURE_INITIALE_DET` (`ECRITURE_INITIALE_DET`) USING BTREE,
  KEY `ECRITURE_INITIALE_ET` (`ECRITURE_INITIALE_ET`) USING BTREE,
  KEY `IDENTIFICATION_TIERS` (`IDENTIFICATION_TIERS`) USING BTREE,
  KEY `IDENT_DOCUMENT_ARCHIVE` (`IDENT_DOCUMENT_ARCHIVE`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_CPTE_GENERAL` (`N_CPTE_GENERAL`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_ECRITURE` (`N_ECRITURE`) USING BTREE,
  KEY `N_EXERCICE` (`N_EXERCICE`) USING BTREE,
  KEY `N_PIECE` (`N_PIECE`) USING BTREE,
  KEY `N_TRESO` (`N_TRESO`) USING BTREE,
  KEY `RD` (`RD`) 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_NO_LIGNE` (`SYS_NO_LIGNE`) USING BTREE,
  KEY `TYPE_RGT_LIBELLE` (`TYPE_RGT_LIBELLE`) USING BTREE,
  KEY `SYS_LIEN_CONTEXTE_MAITRE` (`SYS_LIEN_CONTEXTE_MAITRE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `treso_report`
--

CREATE TABLE `treso_report` (
  `CODE_UTILISATEUR` varchar(10) NOT NULL DEFAULT '',
  `CREDIT` double NOT NULL DEFAULT 0,
  `DEBIT` double NOT NULL DEFAULT 0,
  `ECRITURE_INITIALE` varchar(32) NOT NULL DEFAULT '',
  `ID_TRESO_REPORT` varchar(32) NOT NULL DEFAULT '',
  `LIBELLE` varchar(100) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(100) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_EXERCICE` double NOT NULL DEFAULT 0,
  `SIMU` varchar(10) 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_RGT_LIBELLE` varchar(20) NOT NULL DEFAULT '',
  `DATE_TRESO_INITIALE` date DEFAULT NULL,
  `DATE` date DEFAULT NULL,
  `CODE_JOURNAL` varchar(10) NOT NULL DEFAULT '',
  `N_CPTE_TIERS` varchar(30) NOT NULL DEFAULT '',
  `IDENT_COMPTABILIT_DET` varchar(32) NOT NULL DEFAULT '',
  `IDENT_COMPTABILIT_ET` varchar(32) NOT NULL DEFAULT '',
  `DATE_TRESO` date DEFAULT NULL,
  `REPORT_AUTO` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_TRESO_REPORT`),
  KEY `CODE_UTILISATEUR` (`CODE_UTILISATEUR`) USING BTREE,
  KEY `ECRITURE_INITIALE` (`ECRITURE_INITIALE`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_EXERCICE` (`N_EXERCICE`) USING BTREE,
  KEY `SYS_CONTEXTE` (`SYS_CONTEXTE`) USING BTREE,
  KEY `DATE_TRESO_INITIALE` (`DATE_TRESO_INITIALE`) USING BTREE,
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `CODE_JOURNAL` (`CODE_JOURNAL`) USING BTREE,
  KEY `N_CPTE_TIERS` (`N_CPTE_TIERS`) USING BTREE,
  KEY `IDENT_COMPTABILIT_DET` (`IDENT_COMPTABILIT_DET`) USING BTREE,
  KEY `IDENT_COMPTABILIT_ET` (`IDENT_COMPTABILIT_ET`) USING BTREE,
  KEY `DATE_TRESO` (`DATE_TRESO`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `treso_transfert_ecriture_bque_bque`
--

CREATE TABLE `treso_transfert_ecriture_bque_bque` (
  `CODE_UTILISATEUR` varchar(10) NOT NULL DEFAULT '',
  `IDENT_ECRITURE` varchar(32) NOT NULL DEFAULT '',
  `IDENT_LIGNE` varchar(32) NOT NULL DEFAULT '',
  `ID_TRESO_TRANSFERT_ECRITURE_BQUE_BQUE` varchar(32) NOT NULL DEFAULT '',
  `N_DOSSIER` 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 '',
  PRIMARY KEY (`ID_TRESO_TRANSFERT_ECRITURE_BQUE_BQUE`),
  KEY `CODE_UTILISATEUR` (`CODE_UTILISATEUR`) USING BTREE,
  KEY `IDENT_ECRITURE` (`IDENT_ECRITURE`) USING BTREE,
  KEY `IDENT_LIGNE` (`IDENT_LIGNE`) USING BTREE,
  KEY `N_DOSSIER` (`N_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 `tresorerie_rapprochement`
--

CREATE TABLE `tresorerie_rapprochement` (
  `DATE` date DEFAULT NULL,
  `ID_TRESORERIE_RAPPROCHEMENT` varchar(32) NOT NULL DEFAULT '',
  `J1` double NOT NULL DEFAULT 0,
  `J10` double NOT NULL DEFAULT 0,
  `J11` double NOT NULL DEFAULT 0,
  `J12` double NOT NULL DEFAULT 0,
  `J13` double NOT NULL DEFAULT 0,
  `J14` double NOT NULL DEFAULT 0,
  `J15` double NOT NULL DEFAULT 0,
  `J16` double NOT NULL DEFAULT 0,
  `J17` double NOT NULL DEFAULT 0,
  `J18` double NOT NULL DEFAULT 0,
  `J19` double NOT NULL DEFAULT 0,
  `J2` double NOT NULL DEFAULT 0,
  `J20` double NOT NULL DEFAULT 0,
  `J21` double NOT NULL DEFAULT 0,
  `J22` double NOT NULL DEFAULT 0,
  `J23` double NOT NULL DEFAULT 0,
  `J24` double NOT NULL DEFAULT 0,
  `J25` double NOT NULL DEFAULT 0,
  `J26` double NOT NULL DEFAULT 0,
  `J27` double NOT NULL DEFAULT 0,
  `J28` double NOT NULL DEFAULT 0,
  `J29` double NOT NULL DEFAULT 0,
  `J3` double NOT NULL DEFAULT 0,
  `J30` double NOT NULL DEFAULT 0,
  `J31` double NOT NULL DEFAULT 0,
  `J4` double NOT NULL DEFAULT 0,
  `J5` double NOT NULL DEFAULT 0,
  `J6` double NOT NULL DEFAULT 0,
  `J7` double NOT NULL DEFAULT 0,
  `J8` double NOT NULL DEFAULT 0,
  `J9` double NOT NULL DEFAULT 0,
  `MOIS` varchar(5) NOT NULL DEFAULT '',
  `NOM_BQUE` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_EXERCICE` double NOT NULL DEFAULT 0,
  `N_TRESO` double NOT NULL DEFAULT 0,
  `PID_TRESORERIE_SOLDE` varchar(32) NOT NULL DEFAULT '',
  `SOLDE` 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 '',
  `MONTANT_DERNIER_RAPPRO` double NOT NULL DEFAULT 0,
  `N_DEVISE` varchar(10) NOT NULL DEFAULT '',
  `DATE_RAPPROCHT` date DEFAULT NULL,
  `DATE_MAX_RAPPRO` date DEFAULT NULL,
  `MONTANT_DERNIER_RAPPRO_MAX` decimal(12,2) NOT NULL DEFAULT 0.00,
  `CONCAT` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_TRESORERIE_RAPPROCHEMENT`),
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `MOIS` (`MOIS`) USING BTREE,
  KEY `NOM_BQUE` (`NOM_BQUE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_TRESO` (`N_TRESO`) USING BTREE,
  KEY `PID_TRESORERIE_SOLDE` (`PID_TRESORERIE_SOLDE`) 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 `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_DEVISE` (`N_DEVISE`) USING BTREE,
  KEY `DATE_RAPPROCHT` (`DATE_RAPPROCHT`) USING BTREE,
  KEY `IC_EGP_TRESO_RAPPROCHEMENT` (`MOIS`,`N_DOSSIER`,`N_TRESO`) USING BTREE,
  KEY `CONCAT` (`CONCAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `tresorerie_rapprochement_ecart`
--

CREATE TABLE `tresorerie_rapprochement_ecart` (
  `DATE` date DEFAULT NULL,
  `ID_TRESORERIE_RAPPROCHEMENT_ECART` varchar(32) NOT NULL DEFAULT '',
  `MOIS` varchar(5) NOT NULL DEFAULT '',
  `NOM_BQUE` varchar(20) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_EXERCICE` double NOT NULL DEFAULT 0,
  `N_TRESO` double NOT NULL DEFAULT 0,
  `PID_TRESORERIE_SOLDE` varchar(32) NOT NULL DEFAULT '',
  `SOLDE` 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 '',
  `DATE_RAPPROCHEMENT` date DEFAULT NULL,
  `N_DEVISE` varchar(10) NOT NULL DEFAULT '',
  `CONCAT` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_TRESORERIE_RAPPROCHEMENT_ECART`),
  KEY `DATE` (`DATE`) USING BTREE,
  KEY `MOIS` (`MOIS`) USING BTREE,
  KEY `NOM_BQUE` (`NOM_BQUE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_TRESO` (`N_TRESO`) USING BTREE,
  KEY `PID_TRESORERIE_SOLDE` (`PID_TRESORERIE_SOLDE`) 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 `DATE_RAPPROCHEMENT` (`DATE_RAPPROCHEMENT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `N_DEVISE` (`N_DEVISE`) USING BTREE,
  KEY `CONCAT` (`CONCAT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `virement_et`
--

CREATE TABLE `virement_et` (
  `CLOTURE` char(1) NOT NULL DEFAULT '',
  `DATE_HEURE` varchar(60) NOT NULL DEFAULT '',
  `FAIT` varchar(10) NOT NULL DEFAULT '',
  `ID_VIREMENT_ET` varchar(32) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `NOM_FICHIER_VIREMENT` varchar(200) NOT NULL DEFAULT '',
  `NOM_TRESO_VIRT` varchar(10) NOT NULL DEFAULT '',
  `N_DOSSIER` double NOT NULL DEFAULT 0,
  `N_LIGNE_REGROUPEMENT` double NOT NULL DEFAULT 0,
  `N_LIGNE_SANS_REGROUPEMENT` double NOT NULL DEFAULT 0,
  `N_TRESO_VIRT` double NOT NULL DEFAULT 0,
  `N_VIREMENT` 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_VIREMENT` double NOT NULL DEFAULT 0,
  `TOTAL_VIREMENT_VALIDE` double NOT NULL DEFAULT 0,
  `N_DOSSIER_TRESO` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_VIREMENT_ET`),
  KEY `CLOTURE` (`CLOTURE`) USING BTREE,
  KEY `DATE_HEURE` (`DATE_HEURE`) USING BTREE,
  KEY `FAIT` (`FAIT`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `NOM_TRESO_VIRT` (`NOM_TRESO_VIRT`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `N_TRESO_VIRT` (`N_TRESO_VIRT`) USING BTREE,
  KEY `N_VIREMENT` (`N_VIREMENT`) 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 `N_DOSSIER_TRESO` (`N_DOSSIER_TRESO`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `visite_periodique_batiment`
--

CREATE TABLE `visite_periodique_batiment` (
  `ID_VISITE_PERIODIQUE_BATIMENT` varchar(32) NOT NULL DEFAULT '',
  `PID_BATIMENT_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',
  `FAMILLE` varchar(50) NOT NULL DEFAULT '',
  `NOM` varchar(100) NOT NULL DEFAULT '',
  `DEBUT` date DEFAULT NULL,
  `DELAIS_PREVENANCE` double NOT NULL DEFAULT 0,
  `DELAIS` double NOT NULL DEFAULT 0,
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `TIERS_CODE` varchar(32) NOT NULL DEFAULT '',
  `N_DOSSIER` varchar(2) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `FAITE` char(1) NOT NULL DEFAULT '',
  `N_VISITE` varchar(10) NOT NULL DEFAULT '',
  `DATE_PREVENANCE` date DEFAULT NULL,
  PRIMARY KEY (`ID_VISITE_PERIODIQUE_BATIMENT`),
  KEY `PID_BATIMENT_ET` (`PID_BATIMENT_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 `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `TIERS_CODE` (`TIERS_CODE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `FAITE` (`FAITE`) USING BTREE,
  KEY `DATE_PREVENANCE` (`DATE_PREVENANCE`) USING BTREE,
  KEY `N_VISITE` (`N_VISITE`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `visite_periodique_batiment_det`
--

CREATE TABLE `visite_periodique_batiment_det` (
  `ID_VISITE_PERIODIQUE_BATIMENT_DET` varchar(32) NOT NULL DEFAULT '',
  `PID_VISITE_PERIODIQUE_BATIMENT_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(20) NOT NULL DEFAULT '',
  `STATUT` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_VISITE_PERIODIQUE_BATIMENT_DET`),
  KEY `PID_VISITE_PERIODIQUE_BATIMENT_ET` (`PID_VISITE_PERIODIQUE_BATIMENT_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 `STATUT` (`STATUT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Table structure for table `visite_periodique_batiment_et`
--

CREATE TABLE `visite_periodique_batiment_et` (
  `ID_VISITE_PERIODIQUE_BATIMENT_ET` varchar(32) NOT NULL DEFAULT '',
  `PID_BATIMENT_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',
  `FAMILLE` varchar(50) NOT NULL DEFAULT '',
  `NOM` varchar(100) NOT NULL DEFAULT '',
  `DEBUT` date DEFAULT NULL,
  `DELAIS_PREVENANCE` double NOT NULL DEFAULT 0,
  `DELAIS` double NOT NULL DEFAULT 0,
  `PID_TIERS` varchar(32) NOT NULL DEFAULT '',
  `TIERS_CODE` varchar(32) NOT NULL DEFAULT '',
  `N_DOSSIER` varchar(2) NOT NULL DEFAULT '',
  `NOM_DOSSIER` varchar(50) NOT NULL DEFAULT '',
  `FAITE` char(1) NOT NULL DEFAULT '',
  `N_VISITE` varchar(10) NOT NULL DEFAULT '',
  `DATE_PREVENANCE` date DEFAULT NULL,
  `NOTE` longblob DEFAULT NULL,
  `STATUT` varchar(20) NOT NULL DEFAULT '',
  `PLANIFIEE` char(1) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID_VISITE_PERIODIQUE_BATIMENT_ET`),
  KEY `PID_BATIMENT_ET` (`PID_BATIMENT_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 `PID_TIERS` (`PID_TIERS`) USING BTREE,
  KEY `TIERS_CODE` (`TIERS_CODE`) USING BTREE,
  KEY `N_DOSSIER` (`N_DOSSIER`) USING BTREE,
  KEY `NOM_DOSSIER` (`NOM_DOSSIER`) USING BTREE,
  KEY `FAITE` (`FAITE`) USING BTREE,
  KEY `N_VISITE` (`N_VISITE`) USING BTREE,
  KEY `DATE_PREVENANCE` (`DATE_PREVENANCE`) USING BTREE,
  KEY `STATUT` (`STATUT`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

--
-- Final view structure for view `compta_ana`
--

/*!50001 DROP VIEW IF EXISTS `compta_ana`*/;

--
-- Final view structure for view `compta_ana_situa`
--

/*!50001 DROP VIEW IF EXISTS `compta_ana_situa`*/;

--
-- Final view structure for view `regroupement_entretien_vehicule_casse`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_entretien_vehicule_casse`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`eglobalpro`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `regroupement_entretien_vehicule_casse` AS (select `orr`.`N_DOSSIER` AS `n_dossier`,`orr`.`IMMATRICULATION` AS `immatriculation`,`orr`.`PID_MATERIEL_ET` AS `id_materiel`,`orr`.`TYPE_OR` AS `type`,`orr`.`DATE_DEPART` AS `date`,date_format(`orr`.`DATE_DEPART`,'%m/%y') AS `mois`,sum(`orr`.`COUT_TEMPS`) AS `temps`,sum(`orr`.`COUT_PIECE`) AS `piece` from `ordre_reparation` `orr` where `orr`.`TYPE_OR` = 'Casse' group by `orr`.`PID_MATERIEL_ET`,month(`orr`.`DATE_DEPART`)) */;

--
-- Final view structure for view `regroupement_entretien_vehicule_externe`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_entretien_vehicule_externe`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`eglobalpro`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `regroupement_entretien_vehicule_externe` AS (select `orr`.`N_DOSSIER` AS `n_dossier`,`orr`.`IMMATRICULATION` AS `immatriculation`,`orr`.`PID_MATERIEL_ET` AS `id_materiel`,`orr`.`TYPE_OR` AS `type`,`orr`.`DATE_DEPART` AS `date`,date_format(`orr`.`DATE_DEPART`,'%m/%y') AS `mois`,sum(`orr`.`COUT_TEMPS`) AS `temps`,sum(`orr`.`COUT_PIECE`) AS `piece` from `ordre_reparation` `orr` where `orr`.`TYPE_OR` = 'Entretien externe' group by `orr`.`PID_MATERIEL_ET`,month(`orr`.`DATE_DEPART`)) */;

--
-- Final view structure for view `regroupement_entretien_vehicule_interne`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_entretien_vehicule_interne`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`eglobalpro`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `regroupement_entretien_vehicule_interne` AS (select `orr`.`N_DOSSIER` AS `n_dossier`,`orr`.`IMMATRICULATION` AS `immatriculation`,`orr`.`PID_MATERIEL_ET` AS `id_materiel`,`orr`.`TYPE_OR` AS `type`,`orr`.`DATE_DEPART` AS `date`,date_format(`orr`.`DATE_DEPART`,'%m/%y') AS `mois`,sum(`orr`.`COUT_TEMPS`) AS `temps`,sum(`orr`.`COUT_PIECE`) AS `piece` from `ordre_reparation` `orr` where `orr`.`TYPE_OR` = 'Entretien interne' group by `orr`.`PID_MATERIEL_ET`,month(`orr`.`DATE_DEPART`)) */;

--
-- Final view structure for view `regroupement_exercice`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_exercice`*/;

--
-- Final view structure for view `regroupement_jour`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`eglobalpro`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `regroupement_jour` AS (select `et`.`N_DOSSIER` AS `n_dossier`,`det`.`N_CPTE_GENERAL` AS `n_cpte_general`,`det`.`N_EXERCICE` AS `n_exercice`,`det`.`DATE` AS `date`,sum(`det`.`DEBIT`) AS `sum_debit`,sum(`det`.`CREDIT`) AS `sum_credit`,sum(`det`.`DEBIT`) - sum(`det`.`CREDIT`) AS `solde` from (`comptabilit_det` `det` join `comptabilit_et` `et` on(`et`.`ID_COMPTABILIT_ET` = `det`.`PID_COMPTABILIT_ET`)) where `det`.`CODE_JOURNAL`  not like 'SI%' and `det`.`N_CPTE_GENERAL` >= '10000000' and `det`.`N_CPTE_GENERAL` <= '79999999' group by `det`.`N_CPTE_GENERAL`,`det`.`N_DOSSIER`,`det`.`DATE`) */;

--
-- Final view structure for view `regroupement_jour_archive`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_archive`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`eglobalpro`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `regroupement_jour_archive` AS (select `et`.`N_DOSSIER` AS `n_dossier`,`det`.`N_CPTE_GENERAL` AS `n_cpte_general`,`det`.`N_EXERCICE` AS `n_exercice`,`det`.`DATE` AS `date`,sum(`det`.`DEBIT`) AS `sum_debit`,sum(`det`.`CREDIT`) AS `sum_credit`,sum(`det`.`DEBIT`) - sum(`det`.`CREDIT`) AS `solde` from (`comptabilit_archive_det` `det` join `comptabilit_archive_et` `et` on(`et`.`ID_COMPTABILIT_ARCHIVE_ET` = `det`.`PID_COMPTABILIT_ARCHIVE_ET`)) where `det`.`CODE_JOURNAL`  not like 'SI%' and `det`.`N_CPTE_GENERAL` >= '10000000' and `det`.`N_CPTE_GENERAL` <= '79999999' group by `det`.`N_CPTE_GENERAL`,`det`.`N_DOSSIER`,`det`.`DATE`) */;

--
-- Final view structure for view `regroupement_jour_compta_ana`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_compta_ana`*/;

--
-- Final view structure for view `regroupement_jour_compta_ana_situa`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_compta_ana_situa`*/;

--
-- Final view structure for view `regroupement_jour_compta_ana_sous_total`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_compta_ana_sous_total`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`eglobalpro`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `regroupement_jour_compta_ana_sous_total` AS (select `apc`.`N_REGROUPEMENT_PRINCIPAL` AS `regroupement`,`det`.`N_CPTE_GENERAL` AS `n_cpte_general`,`det`.`DATE` AS `date`,`det`.`DEBIT` AS `debit`,`det`.`CREDIT` AS `credit`,if(`det`.`N_CPTE_GENERAL` < '70000000',sum((`det`.`DEBIT` - `det`.`CREDIT`) * `det`.`ANS1` / 100),sum((`det`.`CREDIT` - `det`.`DEBIT`) * `det`.`ANS1` / 100)) AS `ans1`,if(`det`.`N_CPTE_GENERAL` < '70000000',sum((`det`.`DEBIT` - `det`.`CREDIT`) * `det`.`ANS2` / 100),sum((`det`.`CREDIT` - `det`.`DEBIT`) * `det`.`ANS2` / 100)) AS `ans2`,if(`det`.`N_CPTE_GENERAL` < '70000000',sum((`det`.`DEBIT` - `det`.`CREDIT`) * `det`.`ANS3` / 100),sum((`det`.`CREDIT` - `det`.`DEBIT`) * `det`.`ANS3` / 100)) AS `ans3`,if(`det`.`N_CPTE_GENERAL` < '70000000',sum((`det`.`DEBIT` - `det`.`CREDIT`) * `det`.`ANS4` / 100),sum((`det`.`CREDIT` - `det`.`DEBIT`) * `det`.`ANS4` / 100)) AS `ans4`,if(`det`.`N_CPTE_GENERAL` < '70000000',sum((`det`.`DEBIT` - `det`.`CREDIT`) * `det`.`ANS5` / 100),sum((`det`.`CREDIT` - `det`.`DEBIT`) * `det`.`ANS5` / 100)) AS `ans5`,`det`.`N_DOSSIER` AS `N_DOSSIER`,`det`.`N_EXERCICE` AS `N_EXERCICE`,`det`.`ID_COMPTABILIT_DET` AS `id`,`det`.`N_ECRITURE` AS `n_ecriture` from ((`comptabilit_det` `det` join `comptabilit_et` `et` on(`et`.`ID_COMPTABILIT_ET` = `det`.`PID_COMPTABILIT_ET`)) join `aide_plan_comptable` `apc` on(`apc`.`N_COMPTE8` = `det`.`N_CPTE_GENERAL`)) where `det`.`CODE_JOURNAL`  not like 'SI%' and `det`.`N_CPTE_GENERAL` >= '60000000' group by `apc`.`N_REGROUPEMENT_PRINCIPAL`,`det`.`N_DOSSIER`,`det`.`ID_COMPTABILIT_DET`,`det`.`DATE`) */;

--
-- Final view structure for view `regroupement_jour_compta_ana_sous_total_situa`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_compta_ana_sous_total_situa`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`eglobalpro`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `regroupement_jour_compta_ana_sous_total_situa` AS (select `apc`.`N_REGROUPEMENT_PRINCIPAL` AS `regroupement`,`det`.`N_CPTE_GENERAL` AS `n_cpte_general`,`det`.`DATE` AS `date`,`det`.`DEBIT` AS `debit`,`det`.`CREDIT` AS `credit`,if(`det`.`N_CPTE_GENERAL` < '70000000',sum((`det`.`DEBIT` - `det`.`CREDIT`) * `det`.`ANS1` / 100),sum((`det`.`CREDIT` - `det`.`DEBIT`) * `det`.`ANS1` / 100)) AS `ans1`,if(`det`.`N_CPTE_GENERAL` < '70000000',sum((`det`.`DEBIT` - `det`.`CREDIT`) * `det`.`ANS2` / 100),sum((`det`.`CREDIT` - `det`.`DEBIT`) * `det`.`ANS2` / 100)) AS `ans2`,if(`det`.`N_CPTE_GENERAL` < '70000000',sum((`det`.`DEBIT` - `det`.`CREDIT`) * `det`.`ANS3` / 100),sum((`det`.`CREDIT` - `det`.`DEBIT`) * `det`.`ANS3` / 100)) AS `ans3`,if(`det`.`N_CPTE_GENERAL` < '70000000',sum((`det`.`DEBIT` - `det`.`CREDIT`) * `det`.`ANS4` / 100),sum((`det`.`CREDIT` - `det`.`DEBIT`) * `det`.`ANS4` / 100)) AS `ans4`,if(`det`.`N_CPTE_GENERAL` < '70000000',sum((`det`.`DEBIT` - `det`.`CREDIT`) * `det`.`ANS5` / 100),sum((`det`.`CREDIT` - `det`.`DEBIT`) * `det`.`ANS5` / 100)) AS `ans5`,`det`.`N_DOSSIER` AS `N_DOSSIER`,`det`.`N_EXERCICE` AS `N_EXERCICE`,`det`.`ID_COMPTABILIT_DET` AS `id`,`det`.`N_ECRITURE` AS `n_ecriture` from ((`comptabilit_det` `det` join `comptabilit_et` `et` on(`et`.`ID_COMPTABILIT_ET` = `det`.`PID_COMPTABILIT_ET`)) join `aide_plan_comptable` `apc` on(`apc`.`N_COMPTE8` = `det`.`N_CPTE_GENERAL`)) where `det`.`CODE_JOURNAL`  not like 'SIM%' and `det`.`N_CPTE_GENERAL` >= '60000000' group by `apc`.`N_REGROUPEMENT_PRINCIPAL`,`det`.`N_DOSSIER`,`det`.`ID_COMPTABILIT_DET`,`det`.`DATE`) */;

--
-- Final view structure for view `regroupement_jour_secondaire_1_sous_total`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_secondaire_1_sous_total`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`eglobalpro`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `regroupement_jour_secondaire_1_sous_total` AS (select `det`.`N_DOSSIER` AS `n_dossier`,`det`.`N_CPTE_GENERAL` AS `n_cpte_general`,`det`.`ID_COMPTABILIT_DET` AS `id`,`apc`.`N_REGROUPEMENT_SECONDAIRE_1` AS `regroupement`,`apc`.`NOM_REGROUPEMENT_SECONDAIRE_1` AS `nom_regroupement`,`apc`.`N_REGROUPEMENT_PRINCIPAL` AS `n_regroupement_principal`,`apc`.`NOM_REGROUPEMENT_PRINCIPAL` AS `nom_regroupement_principal`,`apc`.`ONGLET` AS `onglet`,`det`.`N_EXERCICE` AS `n_exercice`,`det`.`DATE` AS `date`,`det`.`DEBIT` AS `sum_debit`,`det`.`CREDIT` AS `sum_credit`,`det`.`DEBIT` - `det`.`CREDIT` AS `solde` from (`comptabilit_det` `det` join `aide_plan_comptable_regroupement` `apc` on(`apc`.`N_COMPTE8` = `det`.`N_CPTE_GENERAL`)) where `det`.`CODE_JOURNAL`  not like 'SI%' and `det`.`N_CPTE_GENERAL` >= '10000000' and `det`.`N_CPTE_GENERAL` <= '79999999' and `apc`.`N_DOSSIER` = `det`.`N_DOSSIER` group by `apc`.`NOM_REGROUPEMENT_SECONDAIRE_1`,`det`.`N_CPTE_GENERAL`,`det`.`ID_COMPTABILIT_DET`,`det`.`N_DOSSIER`) */;

--
-- Final view structure for view `regroupement_jour_situa`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_situa`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`eglobalpro`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `regroupement_jour_situa` AS (select `et`.`N_DOSSIER` AS `n_dossier`,`det`.`N_CPTE_GENERAL` AS `n_cpte_general`,`det`.`N_EXERCICE` AS `n_exercice`,`det`.`DATE` AS `date`,sum(`det`.`DEBIT`) AS `sum_debit`,sum(`det`.`CREDIT`) AS `sum_credit`,sum(`det`.`DEBIT`) - sum(`det`.`CREDIT`) AS `solde` from (`comptabilit_det` `det` join `comptabilit_et` `et` on(`et`.`ID_COMPTABILIT_ET` = `det`.`PID_COMPTABILIT_ET`)) where `det`.`N_CPTE_GENERAL` >= '10000000' and `det`.`N_CPTE_GENERAL` <= '79999999' group by `det`.`N_CPTE_GENERAL`,`det`.`N_DOSSIER`,`det`.`DATE`) */;

--
-- Final view structure for view `regroupement_jour_sous_total`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_sous_total`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`eglobalpro`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `regroupement_jour_sous_total` AS (select `et`.`N_DOSSIER` AS `n_dossier`,`det`.`N_CPTE_GENERAL` AS `n_cpte_general`,`apc`.`N_REGROUPEMENT_PRINCIPAL` AS `regroupement`,`det`.`N_EXERCICE` AS `n_exercice`,`det`.`DATE` AS `date`,sum(`det`.`DEBIT`) AS `sum_debit`,sum(`det`.`CREDIT`) AS `sum_credit`,sum(`det`.`DEBIT`) - sum(`det`.`CREDIT`) AS `solde` from ((`comptabilit_det` `det` join `comptabilit_et` `et` on(`et`.`ID_COMPTABILIT_ET` = `det`.`PID_COMPTABILIT_ET`)) join `aide_plan_comptable` `apc` on(`apc`.`N_COMPTE8` = `det`.`N_CPTE_GENERAL`)) where `det`.`CODE_JOURNAL`  not like 'SI%' and `det`.`N_CPTE_GENERAL` >= '10000000' and `det`.`N_CPTE_GENERAL` <= '79999999' group by `apc`.`N_REGROUPEMENT_PRINCIPAL`,`det`.`N_DOSSIER`,`det`.`DATE`) */;

--
-- Final view structure for view `regroupement_jour_sous_total_archive`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_sous_total_archive`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`eglobalpro`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `regroupement_jour_sous_total_archive` AS (select `et`.`N_DOSSIER` AS `n_dossier`,`det`.`N_CPTE_GENERAL` AS `n_cpte_general`,`apc`.`N_REGROUPEMENT_PRINCIPAL` AS `regroupement`,`det`.`N_EXERCICE` AS `n_exercice`,`det`.`DATE` AS `date`,sum(`det`.`DEBIT`) AS `sum_debit`,sum(`det`.`CREDIT`) AS `sum_credit`,sum(`det`.`DEBIT`) - sum(`det`.`CREDIT`) AS `solde` from ((`comptabilit_archive_det` `det` join `comptabilit_archive_et` `et` on(`et`.`ID_COMPTABILIT_ARCHIVE_ET` = `det`.`PID_COMPTABILIT_ARCHIVE_ET`)) join `aide_plan_comptable` `apc` on(`apc`.`N_COMPTE8` = `det`.`N_CPTE_GENERAL`)) where `det`.`CODE_JOURNAL`  not like 'SI%' and `det`.`N_CPTE_GENERAL` >= '10000000' and `det`.`N_CPTE_GENERAL` <= '79999999' group by `apc`.`N_REGROUPEMENT_PRINCIPAL`,`det`.`N_DOSSIER`,`det`.`DATE`) */;

--
-- Final view structure for view `regroupement_jour_sous_total_situa`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_jour_sous_total_situa`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`eglobalpro`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `regroupement_jour_sous_total_situa` AS (select `et`.`N_DOSSIER` AS `n_dossier`,`det`.`N_CPTE_GENERAL` AS `n_cpte_general`,`apc`.`N_REGROUPEMENT_PRINCIPAL` AS `regroupement`,`det`.`N_EXERCICE` AS `n_exercice`,`det`.`DATE` AS `date`,sum(`det`.`DEBIT`) AS `sum_debit`,sum(`det`.`CREDIT`) AS `sum_credit`,sum(`det`.`DEBIT`) - sum(`det`.`CREDIT`) AS `solde` from ((`comptabilit_det` `det` join `comptabilit_et` `et` on(`et`.`ID_COMPTABILIT_ET` = `det`.`PID_COMPTABILIT_ET`)) join `aide_plan_comptable` `apc` on(`apc`.`N_COMPTE8` = `det`.`N_CPTE_GENERAL`)) where `det`.`N_CPTE_GENERAL` >= '10000000' and `det`.`N_CPTE_GENERAL` <= '79999999' group by `apc`.`N_REGROUPEMENT_PRINCIPAL`,`det`.`N_DOSSIER`,`det`.`DATE`) */;

--
-- Final view structure for view `regroupement_mois`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_mois`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`eglobalpro`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `regroupement_mois` AS (select `et`.`N_DOSSIER` AS `n_dossier`,`det`.`N_CPTE_GENERAL` AS `n_cpte_general`,`det`.`N_EXERCICE` AS `n_exercice`,`det`.`DATE` AS `date`,date_format(`det`.`DATE`,'%m/%y') AS `mois_ecriture`,sum(`det`.`DEBIT`) AS `sum_debit`,sum(`det`.`CREDIT`) AS `sum_credit`,sum(`det`.`DEBIT`) - sum(`det`.`CREDIT`) AS `solde` from (`comptabilit_det` `det` join `comptabilit_et` `et` on(`et`.`ID_COMPTABILIT_ET` = `det`.`PID_COMPTABILIT_ET`)) where `det`.`CODE_JOURNAL`  not like 'SI%' and `det`.`N_CPTE_GENERAL` >= '10000000' and `det`.`N_CPTE_GENERAL` <= '79999999' group by `det`.`N_CPTE_GENERAL`,`det`.`N_DOSSIER`,date_format(`det`.`DATE`,'%m/%y')) */;

--
-- Final view structure for view `regroupement_mois_activite`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_mois_activite`*/;

--
-- Final view structure for view `regroupement_mois_situa`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_mois_situa`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`eglobalpro`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `regroupement_mois_situa` AS select `et`.`N_DOSSIER` AS `n_dossier`,`det`.`N_CPTE_GENERAL` AS `n_cpte_general`,`det`.`N_EXERCICE` AS `n_exercice`,`det`.`DATE` AS `date`,date_format(`det`.`DATE`,'%m/%y') AS `mois_ecriture`,sum(`det`.`DEBIT`) AS `sum_debit`,sum(`det`.`CREDIT`) AS `sum_credit`,sum(`det`.`DEBIT`) - sum(`det`.`CREDIT`) AS `solde` from (`comptabilit_det` `det` join `comptabilit_et` `et` on(`et`.`ID_COMPTABILIT_ET` = `det`.`PID_COMPTABILIT_ET`)) where `det`.`CODE_JOURNAL`  not like 'SIM%' and `det`.`N_CPTE_GENERAL` >= '10000000' and `det`.`N_CPTE_GENERAL` <= '79999999' group by `det`.`N_CPTE_GENERAL`,`det`.`N_DOSSIER`,date_format(`det`.`DATE`,'%m/%y') */;

--
-- Final view structure for view `regroupement_mois_sous_total`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_mois_sous_total`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`eglobalpro`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `regroupement_mois_sous_total` AS (select `et`.`N_DOSSIER` AS `n_dossier`,`det`.`N_CPTE_GENERAL` AS `n_cpte_general`,`apc`.`N_REGROUPEMENT_PRINCIPAL` AS `regroupement`,`det`.`N_EXERCICE` AS `n_exercice`,`det`.`DATE` AS `date`,date_format(`det`.`DATE`,'%m/%y') AS `mois_ecriture`,sum(`det`.`DEBIT`) AS `sum_debit`,sum(`det`.`CREDIT`) AS `sum_credit`,sum(`det`.`DEBIT`) - sum(`det`.`CREDIT`) AS `solde` from ((`comptabilit_det` `det` join `comptabilit_et` `et` on(`et`.`ID_COMPTABILIT_ET` = `det`.`PID_COMPTABILIT_ET`)) join `aide_plan_comptable` `apc` on(`apc`.`N_COMPTE8` = `det`.`N_CPTE_GENERAL`)) where `det`.`CODE_JOURNAL`  not like 'SI%' and `det`.`N_CPTE_GENERAL` >= '10000000' and `det`.`N_CPTE_GENERAL` <= '79999999' group by `apc`.`N_REGROUPEMENT_PRINCIPAL`,`det`.`N_DOSSIER`,date_format(`det`.`DATE`,'%m/%y')) */;

--
-- Final view structure for view `regroupement_mois_sous_total_situa`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_mois_sous_total_situa`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`eglobalpro`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `regroupement_mois_sous_total_situa` AS select `et`.`N_DOSSIER` AS `n_dossier`,`det`.`N_CPTE_GENERAL` AS `n_cpte_general`,`apc`.`N_REGROUPEMENT_PRINCIPAL` AS `regroupement`,`det`.`N_EXERCICE` AS `n_exercice`,date_format(`det`.`DATE`,'%m/%y') AS `mois_ecriture`,`det`.`DATE` AS `date`,sum(`det`.`DEBIT`) AS `sum_debit`,sum(`det`.`CREDIT`) AS `sum_credit`,sum(`det`.`DEBIT`) - sum(`det`.`CREDIT`) AS `solde` from ((`comptabilit_det` `det` join `comptabilit_et` `et` on(`et`.`ID_COMPTABILIT_ET` = `det`.`PID_COMPTABILIT_ET`)) join `aide_plan_comptable` `apc` on(`apc`.`N_COMPTE8` = `det`.`N_CPTE_GENERAL`)) where `det`.`N_CPTE_GENERAL` >= '10000000' and `det`.`N_CPTE_GENERAL` <= '79999999' group by `apc`.`N_REGROUPEMENT_PRINCIPAL`,`det`.`N_DOSSIER`,`det`.`DATE` */;

--
-- Final view structure for view `regroupement_treso_jour`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_treso_jour`*/;

--
-- Final view structure for view `regroupement_vm_jour`
--

/*!50001 DROP VIEW IF EXISTS `regroupement_vm_jour`*/;

--
-- Final view structure for view `relance_anciennete_frs_non_paye`
--

/*!50001 DROP VIEW IF EXISTS `relance_anciennete_frs_non_paye`*/;

--
-- Final view structure for view `relance_anciennete_non_paye`
--

/*!50001 DROP VIEW IF EXISTS `relance_anciennete_non_paye`*/;

--
-- Final view structure for view `relance_anciennete_non_paye_exclu`
--

/*!50001 DROP VIEW IF EXISTS `relance_anciennete_non_paye_exclu`*/;


