--  Description : Create empty SamFM database
--

--
-- Table structure for table `affect_financiere`
--

DROP TABLE IF EXISTS `affect_financiere`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `affect_financiere` (
  `afin_seq` int(11) NOT NULL auto_increment,
  `afin_code` varchar(10) default NULL,
  `afin_libelle` varchar(35) default NULL,
  `afin_composee` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`afin_seq`),
  UNIQUE KEY `afin_code` (`afin_code`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `agence`
--

DROP TABLE IF EXISTS `agence`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `agence` (
  `age_seq` int(11) NOT NULL auto_increment,
  `age_code` varchar(10) default NULL,
  `age_libelle` varchar(50) default NULL,
  PRIMARY KEY  (`age_seq`),
  UNIQUE KEY `age_code` (`age_code`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `article`
--

DROP TABLE IF EXISTS `article`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `article` (
  `arti_seq` int(11) NOT NULL auto_increment,
  `arti_code` varchar(15) NOT NULL,
  `arti_libelle` varchar(40) NOT NULL,
  `arti_unite` char(4) NOT NULL,
  `arti_reffab` varchar(15) default NULL,
  `arti_codetva` tinyint(3) default NULL,
  `arti_interch` tinyint(2) default NULL,
  `arti_infocomp` text,
  `arti_fama_fk` int(11) NOT NULL default '0',
  `arti_entr_fk` int(11) default NULL,
  `arti_codebarre` VARCHAR(128),
  `arti_datmaj` DATETIME,
  `arti_zus_maj_fk` int(11),
  UNIQUE KEY `art_seq` (`arti_seq`),
  KEY `arti_zus_maj_fk` (`arti_zus_maj_fk`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `att_attribut`
--

DROP TABLE IF EXISTS `att_attribut`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `att_attribut` (
  `atat_seq` int(11) NOT NULL auto_increment,
  `atat_libelle` varchar(30) default NULL,
  `atat_attb_fk` int(11) default NULL,
  `atat_atgr_fk` int(11) default NULL,
  `atat_type` int(11) default NULL,
  `atat_longueur` int(11) default NULL,
  `atat_ordre` int(11) default NULL,
  `atat_part_decimale` int(11) default NULL,
  `atat_obligatoire` tinyint(3) unsigned default NULL,
  `atat_champ_lie` varchar(32) default NULL,
  `atat_table_valeurs_lie` varchar(32) default NULL,
  `atat_regex_validation` varchar(255) default NULL,
  `atat_valeur_par_defaut` varchar(10) default NULL,
  `atat_atat_ori_fk` int(11) default NULL,
  PRIMARY KEY  (`atat_seq`),
  KEY `atat_attb_fk` (`atat_attb_fk`),
  KEY `atat_atgr_fk` (`atat_atgr_fk`),
  KEY `atat_atat_ori_fk` (`atat_atat_ori_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `att_groupe`
--

DROP TABLE IF EXISTS `att_groupe`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `att_groupe` (
  `atgr_seq` int(11) NOT NULL auto_increment,
  `atgr_attb_fk` int(11) default NULL,
  `atgr_ordre` int(11) default NULL,
  `atgr_libelle` varchar(30) default NULL,
  `atgr_atgr_ori_fk` int(11) default NULL,
  PRIMARY KEY  (`atgr_seq`),
  KEY `atgr_attb_fk` (`atgr_attb_fk`),
  KEY `atgr_atgr_ori_fk` (`atgr_atgr_ori_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `att_table`
--

DROP TABLE IF EXISTS `att_table`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `att_table` (
  `attb_seq` int(11) NOT NULL auto_increment,
  `attb_nom_table` varchar(32) default NULL,
  `attb_mnemonic` varchar(10) default NULL,
  `attb_nom_obj` varchar(255) default NULL,
  PRIMARY KEY  (`attb_seq`),
  UNIQUE KEY `attb_nom_table` (`attb_nom_table`),
  KEY `attb_nom_obj` (`attb_nom_obj`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `attribut`
--

DROP TABLE IF EXISTS `attribut`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `attribut` (
  `attr_seq` int(11) NOT NULL auto_increment,
  `attr_attg_fk` int(11) default NULL,
  `attr_libelle` varchar(40) NOT NULL,
  `attr_nb_car` int(11) NOT NULL default '0',
  `attr_module_id` tinyint(4) NOT NULL default '0',
  `attr_type` int(11) NOT NULL default '0',
  `attr_confidentiel` int(11) NOT NULL default '0',
  `attr_ordre` int(11) NOT NULL default '0',
  `attr_affiche_di` int(1) default '0',
  PRIMARY KEY  (`attr_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `attribut_groupe`
--

DROP TABLE IF EXISTS `attribut_groupe`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `attribut_groupe` (
  `attg_seq` int(11) NOT NULL auto_increment,
  `attg_libelle` varchar(25) NOT NULL,
  `attg_ordre` int(11) NOT NULL default '0',
  `attg_module_id` tinyint(4) NOT NULL default '0',
  PRIMARY KEY  (`attg_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `attribut_groupe_mlg`
--

DROP TABLE IF EXISTS `attribut_groupe_mlg`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `attribut_groupe_mlg` (
  `attg_mlg_seq` int(11) NOT NULL default '0',
  `attg_mlg_libelle` varchar(25) default NULL,
  PRIMARY KEY  (`attg_mlg_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `attribut_liste_valeur`
--

DROP TABLE IF EXISTS `attribut_liste_valeur`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `attribut_liste_valeur` (
  `atlv_seq` int(11) NOT NULL auto_increment,
  `atlv_attr_fk` int(11) NOT NULL default '0',
  `atlv_valeur` varchar(40) NOT NULL,
  PRIMARY KEY  (`atlv_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `attribut_mlg`
--

DROP TABLE IF EXISTS `attribut_mlg`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `attribut_mlg` (
  `attr_mlg_seq` int(11) NOT NULL default '0',
  `attr_mlg_libelle` varchar(40) default NULL,
  PRIMARY KEY  (`attr_mlg_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `badges`
--

DROP TABLE IF EXISTS `badges`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `badges` (
  `badg_seq` int(11) NOT NULL auto_increment,
  `badg_vst_fk` int(11) NOT NULL default '0',
  `badg_nb_impression` int(3) NOT NULL default '0',
  PRIMARY KEY  (`badg_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `bat_document`
--

DROP TABLE IF EXISTS `bat_document`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `bat_document` (
  `batd_seq` int(11) NOT NULL auto_increment,
  `batd_bat_fk` int(11) NOT NULL default '0',
  `batd_url` varchar(100) NOT NULL,
  PRIMARY KEY  (`batd_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `batiment`
--

DROP TABLE IF EXISTS `batiment`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `batiment` (
    `bat_seq` int(11) NOT NULL AUTO_INCREMENT,
    `bat_code` varchar(6) ,
    `bat_libelle` varchar(35) ,
    `bat_surface_totale` decimal(16,2) ,
    `bat_surface_utile` decimal(16,2) ,
    `bat_modtotal` tinyint(3) unsigned ,
    `bat_modutile` tinyint(3) unsigned ,
    `bat_datconst` datetime ,
    `bat_bdocument` tinyint(3) unsigned ,
    `bat_emprise` decimal(16,2) ,
    `bat_blocnote` text ,
    `bat_codeconca` varchar(15) ,
    `bat_adr1` varchar(45) ,
    `bat_adr2` varchar(45) ,
    `bat_cp` varchar(6) ,
    `bat_ville` varchar(25) ,
    `bat_region` varchar(25) ,
    `bat_pays` varchar(25) ,
    `bat_sat_fk` int(11) ,
    `bat_code_barre` varchar(15) ,
    `bat_cdbr_fk` int(11) ,
    `bat_nb_usgr` int(11) ,
    `bat_afin_fk` int(11) ,
    `bat_crit_fk` int(11) ,
    `bat_ctra_fk` int(11) ,
    `bat_communaute` tinyint(3) unsigned ,
    `bat_tppr_fk` int(11) ,
    `bat_maint_niveau` tinyint(3) unsigned ,
    `bat_datmaj` datetime,
    `bat_zus_maj_fk` int(11),
  PRIMARY KEY  (`bat_seq`),
  UNIQUE KEY `bat_codeconca` (`bat_codeconca`),
  KEY `bat_code` (`bat_code`),
  KEY `bat_libelle` (`bat_libelle`),
  KEY `bat_sat_fk` (`bat_sat_fk`),
  KEY `bat_afin_fk` (`bat_afin_fk`),
  KEY `bat_crit_fk` (`bat_crit_fk`),
  KEY `bat_crit_fk_2` (`bat_crit_fk`),
  KEY `bat_tppr_fk` (`bat_tppr_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `batiment_attr`
--

DROP TABLE IF EXISTS `batiment_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `batiment_attr` (
  `bat_att_seq` int(16) NOT NULL auto_increment,
  PRIMARY KEY  (`bat_att_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `entree_magasin`
--

DROP TABLE IF EXISTS `bon_entree_magasin`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `bon_entree_magasin` (
  `bem_seq` int(11) NOT NULL auto_increment,
  `bem_num` varchar(10) default NULL,
  `bem_date_crea` datetime default NULL,
  `bem_statut` tinyint(3) default NULL,
  `bem_type` tinyint(3) default NULL,
  `bem_libelle` varchar(50) default NULL,
  `bem_dateappro` datetime default NULL,
  `bem_com_fk` int(11) default NULL,
  `bem_four_fk` int(11) default NULL,
  `bem_mag_fk` int(11) default NULL,
  `bem_zus_maj_fk` int(11),
  `bem_date_approp` datetime,
  `bem_zus_crea_fk` int(11),
  `bem_zus_valid_fk` int(11),
  `bem_datmaj` datetime,
  `bem_date_valid` datetime ,
  `bem_montant_total` decimal(16,2),
  PRIMARY KEY  (`bem_seq`),
  KEY `bem_zus_maj_fk` (`bem_zus_maj_fk`),
  KEY `bem_zus_crea_fk` (`bem_zus_crea_fk`),
  KEY `bem_zus_valid_fk` (`bem_zus_valid_fk`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `bon_sortie_magasin`
--

DROP TABLE IF EXISTS `bon_sortie_magasin`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `bon_sortie_magasin` (
  `bsm_seq` int(11) NOT NULL auto_increment,
  `bsm_num` varchar(10) default NULL,
  `bsm_date_crea` datetime default NULL,
  `bsm_statut` tinyint(3) default NULL,
  `bsm_type` tinyint(3) default NULL,
  `bsm_libelle` varchar(50) default NULL,
  `bsm_date_valid` datetime default NULL,
  `bsm_montant_total` decimal(16,2) default NULL,
  `bsm_inte_fk` int(11) default NULL,
  `bsm_mag_fk` int(11) default NULL,
  `bsm_date_sortier` datetime ,
  `bsm_trav_fk` int(11),
  `bsm_zus_crea_fk` int(11),
  `bsm_datmaj` datetime ,
  `bsm_date_sortiep` datetime ,
  `bsm_zus_valid_fk` int(11),
  `bsm_zus_maj_fk` int(11),
  `bsm_oper_fk` int(11),
  PRIMARY KEY  (`bsm_seq`),
  KEY `bsm_zus_maj_fk` (`bsm_zus_maj_fk`),
  KEY `bsm_zus_crea_fk` (`bsm_zus_crea_fk`),
  KEY `bsm_trav_fk` (`bsm_trav_fk`),
  KEY `bsm_oper_fk` (`bsm_oper_fk`),
  KEY `bsm_zus_valid_fk` (`bsm_zus_valid_fk`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `calendrier`
--
DROP TABLE IF EXISTS `calendrier`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
DROP TABLE IF EXISTS `calendrier`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `calendrier` (
  `cale_seq` int(11) unsigned NOT NULL auto_increment,
  `cale_jour` date NOT NULL default '0000-00-00',
  `cale_nom` varchar(20) NOT NULL,
  PRIMARY KEY  (`cale_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `catalogue`
--
DROP TABLE IF EXISTS `catalogue`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `catalogue`
(
    `cata_seq` int(11) NOT NULL AUTO_INCREMENT,
    `cata_reference` varchar(15) ,
    `cata_prix` decimal(16,2) ,
    `cata_delai` int(11) ,
    `cata_colisage` int(11) ,
    `cata_datmaj` datetime ,
    `cata_arti_fk` int(11) ,
    `cata_entr_fk` int(11) ,
    `cata_qtepram` int(11) ,
    `cata_zus_maj_fk` int(11) ,
   PRIMARY KEY ( `cata_seq` ),
   KEY `cata_arti_fk` (`cata_arti_fk`),
   KEY `cata_entr_fk` (`cata_entr_fk`),
   KEY `cata_zus_maj_fk` (`cata_zus_maj_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `centre_cout`
--

DROP TABLE IF EXISTS `centre_cout`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `centre_cout` (
  `ceco_seq` int(11) NOT NULL auto_increment,
  `ceco_code` varchar(8) default NULL,
  `ceco_libelle` varchar(20) default NULL,
  PRIMARY KEY  (`ceco_seq`),
  KEY `ceco_code` (`ceco_code`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `cneh`
--

DROP TABLE IF EXISTS `cneh`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `cneh` (
  `cneh_seq` bigint(11) NOT NULL auto_increment,
  `cneh_code` varchar(6) default NULL,
  `cneh_libelle` varchar(80) default NULL,
  PRIMARY KEY  (`cneh_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `communaute`
--

DROP TABLE IF EXISTS `communaute`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `communaute` (
  `comu_seq` int(11) NOT NULL auto_increment,
  `comu_code` varchar(10) default NULL,
  `comu_libelle` varchar(30) default NULL,
  PRIMARY KEY  (`comu_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `composant`
--

DROP TABLE IF EXISTS `composant`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `composant` (
    `comp_seq` int(11) NOT NULL AUTO_INCREMENT,
    `comp_libelle` varchar(45) ,
    `comp_quantite` decimal(16,4) ,
    `comp_code` varchar(20) ,
    `comp_dateconstat` datetime ,
    `comp_datinstal` datetime ,
    `comp_datedebgarant` datetime ,
    `comp_datefingarant` datetime ,
    `comp_annemis` datetime ,
    `comp_ctra_fk` int(11) ,
    `comp_valaneuf` decimal(16,2) ,
    `comp_steq_fk` int(11) ,
    `comp_sant_fk` int(11) ,
    `comp_sat_fk` int(11) ,
    `comp_bat_fk` int(11) ,
    `comp_zone_fk` int(11) ,
    `comp_loca_fk` int(11) ,
    `comp_crit_fk` int(11) ,
    `comp_serv_fk` int(11) ,
    `comp_dom_fk` int(11) ,
    `comp_comt_fk` int(11) ,
    `comp_eqip_fk` int(11) ,
    `comp_entr_fab_fk` int(11) ,
    `comp_entr_inst_fk` int(11) ,
    `comp_entr_four_fk` int(11) ,
    `comp_cont_fab_fk` int(11) ,
    `comp_cont_four_fk` int(11) ,
    `comp_cont_inst_fk` int(11) ,
    `comp_code_barre` varchar(15) ,
    `comp_moco_fk` int(11) ,
    `comp_datmaj` datetime ,
    `comp_zus_maj_fk` int(11) ,
  UNIQUE KEY `comp_seq` (`comp_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `composant_attr`
--

DROP TABLE IF EXISTS `composant_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `composant_attr`
(
    `comp_att_seq` int(11) NOT NULL AUTO_INCREMENT,
   PRIMARY KEY ( `comp_att_seq` )
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;



--
-- Table structure for table `composant_type`
--

DROP TABLE IF EXISTS `composant_type`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE composant_type
(
    `comt_seq` int(11) NOT NULL AUTO_INCREMENT,
    `comt_code` varchar(15) ,
    `comt_libelle` varchar(30) ,
    `comt_unite` varchar(5) ,
    `comt_decimale` tinyint(3) unsigned ,
    `comt_duramortis` tinyint(3) unsigned ,
    `comt_dom_fk` int(11) ,
    `comt_datmaj` datetime ,
    `comt_zus_maj_fk` int(11) ,
   PRIMARY KEY ( `comt_seq` ),
   KEY `comt_dom_fk` (`comt_dom_fk`)
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `composant_type_attr`
--

DROP TABLE IF EXISTS `composant_type_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `composant_type_attr`
(
    `comt_att_seq` int(11) NOT NULL AUTO_INCREMENT,
   PRIMARY KEY ( `comt_att_seq` )
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;



--
-- Table structure for table `config_salle`
--

DROP TABLE IF EXISTS `config_salle`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `config_salle` (
  `cfgs_seq` int(11) NOT NULL auto_increment,
  `cfgs_sreu_fk` int(11) NOT NULL default '0',
  `cfgs_libelle` varchar(12) NOT NULL,
  `cfgs_desc` text NOT NULL,
  `cfgs_capacite` int(11) NOT NULL default '0',
  `cfgs_blocage` tinyint(4) NOT NULL default '0',
  `cfgs_chemin_photo` varchar(100) default NULL,
  `cfgs_pres_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`cfgs_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `contact`
--

DROP TABLE IF EXISTS `contact`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `contact` (
  `cont_seq` int(11) NOT NULL auto_increment,
  `cont_entr_fk` int(11) default NULL,
  `cont_nom` varchar(25) default NULL,
  `cont_teldirect` varchar(18) default NULL,
  `cont_fonction` varchar(40) default NULL,
  `cont_prenom` varchar(25) default NULL,
  `cont_civilite` varchar(5) default NULL,
  `cont_email` varchar(45) default NULL,
  `cont_zus_fk` int(11) default '0',
  `cont_telportable` varchar(18) default NULL,
  `cont_radiomessage` varchar(18) default NULL,
  `cont_telperso` varchar(18) default NULL,
  `cont_datmaj` date default NULL,
  `cont_assist_cont_fk` int(11) default NULL,
  PRIMARY KEY  (`cont_seq`),
  UNIQUE KEY `cont_seq` (`cont_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `contact_attr`
--
DROP TABLE IF EXISTS `contact_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `contact_attr` (
  `cont_att_seq` int(11) NOT NULL auto_increment,
  PRIMARY KEY  (`cont_att_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;



--
-- Table structure for table `contact_gestion`
--

DROP TABLE IF EXISTS `contact_gestion`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `contact_gestion` (
  `cogest_seq` int(11) NOT NULL auto_increment,
  `cogest_eqgest_fk` int(11) NOT NULL default '0',
  `cogest_civilite` varchar(5) default NULL,
  `cogest_nom` varchar(25) default NULL,
  `cogest_prenom` varchar(25) default NULL,
  `cogest_fonction` varchar(60) default NULL,
  `cogest_tel` varchar(18) default NULL,
  `cogest_mail` varchar(45) default NULL,
  PRIMARY KEY  (`cogest_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `contrat`
--

DROP TABLE IF EXISTS `contrat`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `contrat` (
  `ctra_seq` int(11) NOT NULL auto_increment,
  `ctra_code` varchar(10) default NULL,
  `ctra_libelle` varchar(50) default NULL,
  `ctra_objet` text,
  `ctra_actif` tinyint(3) unsigned default NULL,
  `ctra_coefheures` decimal(16,2) default NULL,
  `ctra_coeffournit` decimal(16,2) default NULL,
  `ctra_mode_reconduction` varchar(30) default NULL,
  `ctra_date_limite_reconduction` datetime default NULL,
  `ctra_mode_resiliation` varchar(30) default NULL,
  `ctra_date_limite_resiliation` datetime default NULL,
  `ctra_historique` text,
  `ctra_datedebut` datetime default NULL,
  `ctra_datefin` datetime default NULL,
  `ctra_calculavance` tinyint(3) unsigned default NULL,
  `ctra_avancement` tinyint(3) unsigned default NULL,
  `ctra_pcoutglobal` decimal(16,2) default NULL,
  `ctra_rcoutglobal` decimal(16,2) default NULL,
  `ctra_pheure` int(11) default NULL,
  `ctra_pcoutheure` decimal(16,2) default NULL,
  `ctra_pcoutfour` decimal(16,2) default NULL,
  `ctra_pcoutdivers` decimal(16,2) default NULL,
  `ctra_pcoutprev` decimal(16,2) default NULL,
  `ctra_pcoutcor` decimal(16,2) default NULL,
  `ctra_pcoutautre` decimal(16,2) default NULL,
  `ctra_rheure` decimal(16,2) default NULL,
  `ctra_rcoutheure` decimal(16,2) default NULL,
  `ctra_rcoutfour` decimal(16,2) default NULL,
  `ctra_rcoutdivers` decimal(16,2) default NULL,
  `ctra_rcoutcor` decimal(16,2) default NULL,
  `ctra_rcoutautre` decimal(16,2) default NULL,
  `ctra_supe_fk` int(11) default NULL,
  `ctra_entr_client_fk` int(11) default NULL,
  `ctra_cont_client_fk` int(11) default NULL,
  `ctra_entr_four_fk` int(11) default NULL,
  `ctra_cont_four_fk` int(11) default NULL,
  `ctra_comment` text,
  `ctra_crit_fk` int(11) default NULL,
  `ctra_afin_fk` int(11) default NULL,
  `ctra_tppr_fk` int(11) default NULL,
  `ctra_maint_niveau` tinyint(3) unsigned default NULL,
  `ctra_datmaj` datetime,
  `ctra_zus_maj_fk` int(11),
  PRIMARY KEY  (`ctra_seq`),
  KEY `ctra_code` (`ctra_code`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `contrat_attr`
--

DROP TABLE IF EXISTS `contrat_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `contrat_attr` (
  `cont_att_seq` int(11) NOT NULL auto_increment,
  PRIMARY KEY  (`cont_att_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `criticite`
--

DROP TABLE IF EXISTS `criticite`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `criticite` (
  `crit_seq` int(11) NOT NULL auto_increment,
  `crit_code` varchar(4) default NULL,
  `crit_libelle` varchar(20) default NULL,
  `crit_ordre` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`crit_seq`),
  KEY `crit_code` (`crit_code`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `db_champ`
--

DROP TABLE IF EXISTS `db_champ`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE db_champ
(
    `dbc_seq` int(11) NOT NULL AUTO_INCREMENT,
    `dbc_attb_fk` int(11) ,
    `dbc_libelle` varchar(32) ,
    `dbc_dbt_fk` int(11) ,
    `dbc_longueur` int(11) ,
    `dbc_part_decimale` int(11) ,
    `dbc_obligatoire` tinyint(3) unsigned ,
    PRIMARY KEY ( `dbc_seq` ),
    KEY `dbc_attb_fk` (`dbc_attb_fk`),
    KEY `dbc_dbt_fk` (`dbc_dbt_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `db_sa_type`
--

DROP TABLE IF EXISTS `db_sa_type`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE db_sa_type
(
   `dbt_seq` int(11) NOT NULL AUTO_INCREMENT,
    `dbt_libelle` varchar(32) ,
    `dbt_presentation` varchar(32) ,
   PRIMARY KEY ( `dbt_seq` )
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_covoiturage`
--

DROP TABLE IF EXISTS `dd_covoiturage`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_covoiturage` (
  `ddco_seq` int(11) NOT NULL auto_increment,
  `ddco_statut` tinyint(1) default NULL,
  `ddco_alternance` tinyint(1) default NULL,
  `ddco_type_trajet` tinyint(1) default NULL,
  `ddco_sens_trajet` tinyint(1) default NULL,
  `ddco_ptdepart` varchar(50) default NULL,
  `ddco_sat_ptdepart_fk` int(11) default NULL,
  `ddco_ptarrive` varchar(50) default NULL,
  `ddco_sat_ptarrive_fk` int(11) default NULL,
  `ddco_heure_min` time NOT NULL default '00:00:00',
  `ddco_heure_max` time NOT NULL default '00:00:00',
  `ddco_lundi` tinyint(1) default NULL,
  `ddco_mardi` tinyint(1) default NULL,
  `ddco_mercredi` tinyint(1) default NULL,
  `ddco_jeudi` tinyint(1) default NULL,
  `ddco_vendredi` tinyint(1) default NULL,
  `ddco_samedi` tinyint(1) default NULL,
  `ddco_dimanche` tinyint(1) default NULL,
  `ddco_dem_fk` int(11) default NULL,
  `ddco_demandeur` varchar(50) default NULL,
  `ddco_sloc_fk` int(11) default NULL,
  `ddco_telephone` varchar(15) default NULL,
  `ddco_email` varchar(200) default NULL,
  `ddco_commentaire` text,
  `ddco_date_inscri` date NOT NULL default '0000-00-00',
  `ddco_heure_inscri` time NOT NULL default '00:00:00',
  `ddco_date_validite` date NOT NULL default '0000-00-00',
  `ddco_zus_inscri_fk` int(11) default NULL,
  `ddco_ddco_fk` int(11) default NULL,
  `ddco_date_depart` date default NULL,
  `ddco_date_arrive` date default NULL,
  PRIMARY KEY  (`ddco_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_covoiturage_jumelage`
--

DROP TABLE IF EXISTS `dd_covoiturage_jumelage`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_covoiturage_jumelage` (
  `ddcj_seq` int(11) NOT NULL auto_increment,
  `ddcj_dem_fk` int(11) default NULL,
  `ddcj_sloc_fk` int(11) default NULL,
  `ddcj_zus_fk` int(11) default NULL,
  `ddcj_distance` int(11) default NULL,
  `ddcj_frequence_mois` int(11) default NULL,
  `ddcj_frequence_an` int(11) default NULL,
  `ddcj_date_inscri` date default NULL,
  `ddcj_demandeur` varchar(50) default NULL,
  `ddcj_telephone` varchar(15) default NULL,
  `ddcj_email` varchar(200) default NULL,
  PRIMARY KEY  (`ddcj_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_dechet_histo`
--

DROP TABLE IF EXISTS `dd_dechet_histo`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_dechet_histo` (
  `dddh_seq` int(11) NOT NULL auto_increment,
  `dddh_dddr_fk` int(11) default NULL,
  `dddh_action` varchar(25) default NULL,
  `dddh_date` date default NULL,
  `dddh_heure` time default NULL,
  PRIMARY KEY  (`dddh_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_dechet_lieucollecte`
--

DROP TABLE IF EXISTS `dd_dechet_lieucollecte`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_dechet_lieucollecte` (
  `dddl_seq` int(11) NOT NULL auto_increment,
  `dddl_libelle` varchar(50) default NULL,
  `dddl_unite` varchar(20) default NULL,
  `dddl_nbr_unite` decimal(10,2) default NULL,
  `dddl_sat_fk` int(11) NOT NULL default '0',
  `dddl_code` varchar(9) default NULL,
  PRIMARY KEY  (`dddl_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_dechet_qte`
--

DROP TABLE IF EXISTS `dd_dechet_qte`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_dechet_qte` (
  `dddq_seq` int(11) NOT NULL auto_increment,
  `dddq_dddr_fk` int(11) default NULL,
  `dddq_quantite` decimal(12,4) default NULL,
  `dddq_dddl_fk` int(11) default NULL,
  `dddq_dddt_fk` int(11) default NULL,
  PRIMARY KEY  (`dddq_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_dechet_rlv`
--

DROP TABLE IF EXISTS `dd_dechet_rlv`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_dechet_rlv` (
  `dddr_seq` int(11) NOT NULL auto_increment,
  `dddr_date_releve` date default NULL,
  `dddr_zus_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`dddr_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_dechet_type`
--

DROP TABLE IF EXISTS `dd_dechet_type`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_dechet_type` (
  `dddt_seq` int(11) NOT NULL auto_increment,
  `dddt_libelle` varchar(50) default NULL,
  `dddt_recyclable` tinyint(1) default NULL,
  `dddt_unite` varchar(20) default NULL,
  `dddt_equivalent_tonne` decimal(5,3) default NULL,
  `dddt_nbr_decimale` tinyint(1) default NULL,
  `dddt_nbr_decimale_par_unite` tinyint(3) default NULL,
  `dddt_code` varchar(9) default NULL,
  PRIMARY KEY  (`dddt_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_eau_histo`
--

DROP TABLE IF EXISTS `dd_eau_histo`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_eau_histo` (
  `ddah_seq` int(11) NOT NULL auto_increment,
  `ddah_zus_fk` int(11) NOT NULL default '0',
  `ddah_ddar_fk` int(11) default NULL,
  `ddah_action` varchar(25) default NULL,
  `ddah_date` date default NULL,
  `ddah_heure` time default NULL,
  PRIMARY KEY  (`ddah_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_eau_mesucomp`
--

DROP TABLE IF EXISTS `dd_eau_mesucomp`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_eau_mesucomp` (
  `ddam_seq` int(11) NOT NULL auto_increment,
  `ddam_qte_mesu_fk` int(11) NOT NULL default '0',
  `ddam_cost_mesu_fk` int(11) NOT NULL default '0',
  `ddam_ddas_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`ddam_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_eau_qte`
--

DROP TABLE IF EXISTS `dd_eau_qte`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_eau_qte` (
  `ddaq_seq` int(11) NOT NULL auto_increment,
  `ddaq_ddar_fk` int(11) NOT NULL default '0',
  `ddaq_quantite` decimal(19,4) default NULL,
  `ddaq_ddas_fk` int(11) default NULL,
  `ddaq_cout` decimal(19,4) default NULL,
  `ddaq_quantite_is_update` int(1) default '0',
  `ddaq_cout_is_update` int(1) default '0',
  PRIMARY KEY  (`ddaq_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_eau_rlv`
--

DROP TABLE IF EXISTS `dd_eau_rlv`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_eau_rlv` (
  `ddar_seq` int(11) NOT NULL auto_increment,
  `ddar_date_releve` date NOT NULL default '0000-00-00',
  `ddar_zus_fk` int(11) default '0',
  PRIMARY KEY  (`ddar_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_eau_rlv_sam`
--

DROP TABLE IF EXISTS `dd_eau_rlv_sam`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_eau_rlv_sam` (
  `ddal_seq` int(11) NOT NULL auto_increment,
  `ddal_rele_fk` int(11) NOT NULL default '0',
  `ddal_ddaq_fk` int(11) default NULL,
  `ddal_mesu_fk` int(11) default NULL,
  `ddal_date_rlv` datetime default '0000-00-00 00:00:00',
  `ddal_value_rlv` decimal(19,4) default NULL,
  `ddal_typeoper` char(1) default NULL,
  `ddal_heure_rlv` time default NULL,
  `ddal_comment` varchar(255) default NULL,
  `ddal_inte_fk` int(11) default '0',
  PRIMARY KEY  (`ddal_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_eau_secteur`
--

DROP TABLE IF EXISTS `dd_eau_secteur`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_eau_secteur` (
  `ddas_seq` int(11) NOT NULL auto_increment,
  `ddas_sat_fk` int(11) NOT NULL default '0',
  `ddas_libelle` varchar(50) default NULL,
  `ddas_unite` varchar(20) NOT NULL,
  `ddas_nbr_unite` decimal(12,4) default NULL,
  `ddas_code` varchar(9) default NULL,
  PRIMARY KEY  (`ddas_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_energie_affectation_usages`
--

DROP TABLE IF EXISTS dd_energie_affectation_usages;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE dd_energie_affectation_usages
(

    `ddeau_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `ddeau_ddel_fk` int(11) , 
    `ddeau_ddet_fk` int(11) , 
    `ddeau_ddeu_fk` int(11) , 
   PRIMARY KEY ( `ddeau_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_energie_dju`
--

DROP TABLE IF EXISTS dd_energie_dju;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE dd_energie_dju
(

    `ddedju_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `ddedju_ddesm_fk` int(11) , 
    `ddedju_annee` int(11) , 
    `ddedju_valeur` int(11) , 
   PRIMARY KEY ( `ddedju_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_energie_histo`
--

DROP TABLE IF EXISTS `dd_energie_histo`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_energie_histo` (
  `ddeh_seq` int(11) NOT NULL auto_increment,
  `ddeh_zus_fk` int(11) default NULL,
  `ddeh_dder_fk` int(11) default NULL,
  `ddeh_action` varchar(25) default NULL,
  `ddeh_date` date default NULL,
  `ddeh_heure` time default NULL,
  PRIMARY KEY  (`ddeh_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_energie_lien_lieux_unite_etalonnage`
--

DROP TABLE IF EXISTS dd_energie_lien_lieux_unite_etalonnage;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE dd_energie_lien_lieux_unite_etalonnage
(
    `ddellue_seq` int(11) NOT NULL AUTO_INCREMENT,
    `ddellue_ddel_fk` int(11) ,
    `ddellue_ddeue_fk` int(11) , 
    `ddellue_annee` int(11) , 
    `ddellue_mois` int(11) , 
    `ddellue_mesure` decimal(16,2) , 
   PRIMARY KEY ( `ddellue_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_energie_lien_modeles_usage`
--

DROP TABLE IF EXISTS dd_energie_lien_modeles_usage;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE dd_energie_lien_modeles_usage
(

    `ddelmu_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `ddelmu_ddeu_fk` int(11) , 
    `ddelmu_ordre` int(11) , 
    `ddelmu_ddeu_fk2` int(11) , 
   PRIMARY KEY ( `ddelmu_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `dd_energie_lieux`
--

DROP TABLE IF EXISTS dd_energie_lieux;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE dd_energie_lieux
(

    `ddel_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `ddel_ddel_fk` int(11) , 
    `ddel_code` varchar(10) , 
    `ddel_libelle` varchar(25) , 
    `ddel_niveau` int(11) , 
    `ddel_responsable` varchar(15) , 
    `ddel_mail` varchar(55) , 
    `ddel_entite` varchar(55) , 
    `ddel_ddesm_fk` int(11) , 
   PRIMARY KEY ( `ddel_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;



--
-- Table structure for table `dd_energie_mesucomp`
--

DROP TABLE IF EXISTS `dd_energie_mesucomp`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_energie_mesucomp` (
  `ddem_seq` int(11) NOT NULL auto_increment,
  `ddem_qte_mesu_fk` int(11) NOT NULL default '0',
  `ddem_cost_mesu_fk` int(11) NOT NULL default '0',
  `ddem_ddes_fk` int(11) NOT NULL default '0',
  `ddem_ddet_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`ddem_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_energie_modele_parametre`
--

DROP TABLE IF EXISTS dd_energie_modele_parametre;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE dd_energie_modele_parametre
(

    `ddemp_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `ddemp_ddeu_fk` int(11) , 
    `ddemp_code` varchar(10) , 
    `ddemp_m1` decimal(16,2) , 
    `ddemp_m2` decimal(16,2) , 
    `ddemp_m3` decimal(16,2) , 
    `ddemp_m4` decimal(16,2) , 
    `ddemp_m5` decimal(16,2) , 
    `ddemp_m6` decimal(16,2) , 
    `ddemp_m7` decimal(16,2) , 
    `ddemp_m8` decimal(16,2) , 
    `ddemp_m9` decimal(16,2) , 
    `ddemp_m10` decimal(16,2) , 
    `ddemp_m11` decimal(16,2) , 
    `ddemp_m12` decimal(16,2) , 
   PRIMARY KEY ( `ddemp_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `dd_energie_niveaux`
--

DROP TABLE IF EXISTS dd_energie_niveaux;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE dd_energie_niveaux
(

    `dden_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `dden_num_niveau` tinyint(3) unsigned , 
    `dden_libelle_niveau1` varchar(10) , 
    `dden_libelle_niveau2` varchar(10) , 
    `dden_libelle_niveau3` varchar(10) , 
    `dden_libelle_niveau4` varchar(10) , 
   PRIMARY KEY ( `dden_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `dd_energie_qte`
--

DROP TABLE IF EXISTS `dd_energie_qte`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_energie_qte` (
  `ddeq_seq` int(11) NOT NULL auto_increment,
  `ddeq_dder_fk` int(11) NOT NULL default '0',
  `ddeq_quantite` decimal(19,4) default NULL,
  `ddeq_cout` decimal(19,4) default NULL,
  `ddeq_ddes_fk` int(11) default NULL,
  `ddeq_ddet_fk` int(11) default NULL,
  `ddeq_quantite_is_update` int(1) default '0',
  `ddeq_cout_is_update` int(1) default '0',
  PRIMARY KEY  (`ddeq_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `dd_energie_qte_lisse`
--

DROP TABLE IF EXISTS dd_energie_qte_lisse;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE dd_energie_qte_lisse
(

    `ddeql_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `ddeql_ddeq_fk` int(11) , 
    `ddeql_niveau` int(11) , 
    `ddeql_ddel1_fk` int(11) , 
    `ddeql_ddel2_fk` int(11) , 
    `ddeql_ddel3_fk` int(11) , 
    `ddeql_ddel4_fk` int(11) , 
    `ddeql_ddelf_fk` int(11) , 
    `ddeql_ddet_fk` int(11) , 
    `ddeql_annee` int(11) , 
    `ddeql_mois` int(11) , 
    `ddeql_quantite` decimal(16,4) , 
    `ddeql_cout` decimal(16,4) , 
    `ddeql_jours` int(11) , 
   PRIMARY KEY ( `ddeql_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `dd_energie_rlv`
--

DROP TABLE IF EXISTS dd_energie_rlv;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE dd_energie_rlv
(

    `dder_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `dder_date_releve` datetime , 
    `dder_zus_fk` int(11) , 
   PRIMARY KEY ( `dder_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_energie_rlv_sam`
--

DROP TABLE IF EXISTS `dd_energie_rlv_sam`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_energie_rlv_sam` (
  `ddel_seq` int(11) NOT NULL auto_increment,
  `ddel_rele_fk` int(11) NOT NULL default '0',
  `ddel_ddeq_fk` int(11) default NULL,
  `ddel_mesu_fk` int(11) default NULL,
  `ddel_date_rlv` datetime default '0000-00-00 00:00:00',
  `ddel_value_rlv` decimal(19,4) default NULL,
  `ddel_typeoper` char(1) default NULL,
  `ddel_heure_rlv` time default NULL,
  `ddel_comment` varchar(255) default NULL,
  `ddel_inte_fk` int(11) default '0',
  PRIMARY KEY  (`ddel_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_energie_secteur`
--

DROP TABLE IF EXISTS `dd_energie_secteur`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_energie_secteur` (
  `ddes_seq` int(11) NOT NULL auto_increment,
  `ddes_sat_fk` int(11) NOT NULL default '0',
  `ddes_libelle` varchar(50) default NULL,
  `ddes_unite` varchar(20) NOT NULL,
  `ddes_nbr_unite` decimal(10,2) default NULL,
  `ddes_code` varchar(9) default NULL,
  PRIMARY KEY  (`ddes_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_energie_station_meteo`
--

DROP TABLE IF EXISTS dd_energie_station_meteo;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE dd_energie_station_meteo
(

    `ddesm_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `ddesm_libelle` varchar(20) , 
    `ddesm_reference` tinyint(3) unsigned , 
   PRIMARY KEY ( `ddesm_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `dd_energie_affectation_usages`
--

DROP TABLE IF EXISTS dd_energie_type;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE dd_energie_type
(

    `ddet_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `ddet_libelle` varchar(50) , 
    `ddet_unite` varchar(30) , 
    `ddet_equivalent_kwh` decimal(8,3) , 
    `ddet_nbr_decimale` tinyint(4) , 
    `ddet_nbr_decimale_par_unite` tinyint(4) , 
    `ddet_type_calcul` tinyint(4) , 
    `ddet_code` varchar(9) , 
    `ddet_renouvelable` tinyint(1) , 
    `ddet_valeur_renouvelable` decimal(4,1) , 
   PRIMARY KEY ( `ddet_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_energie_unite_etalonnage`
--

DROP TABLE IF EXISTS dd_energie_unite_etalonnage;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE dd_energie_unite_etalonnage
(

    `ddeue_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `ddeue_libelle` varchar(20) , 
    `ddeue_unite` varchar(8) , 
    `ddeue_ordre` int(11) , 
    `ddeue_niveau` int(11) , 
    `ddeue_nature` int(11) , 
   PRIMARY KEY ( `ddeue_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `dd_energie_usage`
--

DROP TABLE IF EXISTS dd_energie_usage;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE dd_energie_usage
(

    `ddeu_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `ddeu_code` varchar(10) , 
    `ddeu_libelle` varchar(15) , 
    `ddeu_simple` tinyint(3) unsigned , 
    `ddeu_lie_dju` tinyint(3) unsigned , 
    `ddeu_nbr_decimale` int(11) , 
    `ddeu_nbr_decimale_par_unite` int(11) , 
   PRIMARY KEY ( `ddeu_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `dd_information`
--

DROP TABLE IF EXISTS `dd_information`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_information` (
  `ddin_seq` int(11) NOT NULL auto_increment,
  `ddin_libelle` varchar(80) NOT NULL,
  `ddin_text` text NOT NULL,
  `ddin_image` varchar(100) NOT NULL,
  `ddin_telecharge` varchar(100) NOT NULL,
  `ddin_num_fnct` varchar(10) NOT NULL,
  `ddin_date` date NOT NULL default '0000-00-00',
  `ddin_ordre` int(3) NOT NULL default '0',
  `ddin_ddth_fk` int(11) default NULL,
  PRIMARY KEY  (`ddin_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_lien_utile`
--

DROP TABLE IF EXISTS `dd_lien_utile`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_lien_utile` (
  `ddlu_seq` int(11) NOT NULL auto_increment,
  `ddlu_libelle` varchar(80) NOT NULL,
  `ddlu_url` varchar(250) NOT NULL,
  `ddlu_date` date NOT NULL default '0000-00-00',
  `ddlu_ordre` int(3) default '0',
  `ddlu_num_fnct` tinyint(1) default NULL,
  PRIMARY KEY  (`ddlu_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_qualite_lieu`
--

DROP TABLE IF EXISTS `dd_qualite_lieu`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_qualite_lieu` (
  `ddql_seq` int(11) NOT NULL auto_increment,
  `ddql_libelle` varchar(30) NOT NULL,
  `ddql_temoin` tinyint(3) default NULL,
  `ddql_sat_fk` int(11) default NULL,
  `ddql_ddqt_fk` int(11) default NULL,
  `ddql_order` tinyint(3) NOT NULL default '0',
  `ddql_ddqtl_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`ddql_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_qualite_mesucomp`
--

DROP TABLE IF EXISTS `dd_qualite_mesucomp`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_qualite_mesucomp` (
  `ddqm_seq` int(11) NOT NULL auto_increment,
  `ddqm_mesu_fk` int(11) default '0',
  `ddqm_ddql_fk` int(11) default '0',
  `ddqm_ddqp_fk` int(11) default '0',
  PRIMARY KEY  (`ddqm_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_qualite_param_analyse`
--

DROP TABLE IF EXISTS `dd_qualite_param_analyse`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_qualite_param_analyse` (
  `ddqp_seq` int(11) NOT NULL auto_increment,
  `ddqp_libelle` varchar(15) default NULL,
  `ddqp_unite` varchar(8) default NULL,
  `ddqp_seuil` varchar(70) default NULL,
  `ddqp_ddqt_fk` int(11) default NULL,
  `ddqp_nbr_decimale` tinyint(3) default NULL,
  `ddqp_type` int(3) NOT NULL default '0',
  `ddqp_bool0_libelle` varchar(8) default NULL,
  `ddqp_bool1_libelle` varchar(8) default NULL,
  PRIMARY KEY  (`ddqp_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_qualite_releve`
--

DROP TABLE IF EXISTS `dd_qualite_releve`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_qualite_releve` (
  `ddqr_seq` int(11) NOT NULL auto_increment,
  `ddqr_valeur` varchar(10) default NULL,
  `ddqr_date_releve` date default NULL,
  `ddqr_ddqp_fk` int(11) default NULL,
  `ddqr_zus_fk` int(11) default NULL,
  `ddqr_ddql_fk` int(11) default NULL,
  `ddqr_param_analyse` tinyint(3) default NULL,
  `ddqr_horaire_releve` varchar(5) default NULL,
  `ddqr_commentaire` varchar(255) default NULL,
  `ddqr_valeur_is_update` tinyint(1) NOT NULL default '0',
  `ddqr_inte_fk` tinyint(3) default NULL,
  `ddqr_appareillage` varchar(15) default NULL,
  PRIMARY KEY  (`ddqr_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_qualite_rlv_sam`
--

DROP TABLE IF EXISTS `dd_qualite_rlv_sam`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_qualite_rlv_sam` (
  `ddqrs_seq` int(11) NOT NULL auto_increment,
  `ddqrs_rele_fk` int(11) default '0',
  `ddqrs_ddqr_fk` int(11) default '0',
  `ddqrs_mesu_fk` int(11) default '0',
  `ddqrs_inte_fk` int(11) default '0',
  `ddqrs_date_rlv` datetime default '0000-00-00 00:00:00',
  `ddqrs_heure_rlv` time default NULL,
  `ddqrs_valeur_rlv` decimal(19,4) default NULL,
  `ddqrs_typeoper` char(1) default NULL,
  `ddqrs_comment` varchar(255) default NULL,
  `ddqrs_appareillage` varchar(15) default NULL,
  PRIMARY KEY  (`ddqrs_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_qualite_seuil`
--

DROP TABLE IF EXISTS `dd_qualite_seuil`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_qualite_seuil` (
  `ddqs_seq` int(11) NOT NULL auto_increment,
  `ddqs_ddqt_fk` int(11) NOT NULL default '0',
  `ddqs_ddqp_fk` int(11) NOT NULL default '0',
  `ddqs_saisonnalite` tinyint(4) NOT NULL default '0',
  `ddqs_date1_debut` varchar(5) default NULL,
  `ddqs_date1_fin` varchar(5) default NULL,
  `ddqs_date2_debut` varchar(5) default NULL,
  `ddqs_date2_fin` varchar(5) default NULL,
  `ddqs_valeur_compar` tinyint(4) NOT NULL default '0',
  `ddqs_valeur_sup` varchar(10) default NULL,
  `ddqs_valeur_inf` varchar(10) default NULL,
  PRIMARY KEY  (`ddqs_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_qualite_theme`
--

DROP TABLE IF EXISTS `dd_qualite_theme`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_qualite_theme` (
  `ddqt_seq` int(11) NOT NULL auto_increment,
  `ddqt_libelle` varchar(30) NOT NULL,
  `ddqt_visible` tinyint(3) default NULL,
  `ddqt_fixe` tinyint(3) default NULL,
  `ddqt_ordre` tinyint(3) default NULL,
  `ddqt_lieux_alea` tinyint(3) NOT NULL default '1',
  `ddqt_indic_horaire` tinyint(3) NOT NULL default '1',
  `ddqt_intervenant` tinyint(3) default NULL,
  `ddqt_appareillage` tinyint(3) default NULL,
  `ddqt_titre_page_1` varchar(70) default NULL,
  `ddqt_logo_page_1` varchar(70) default NULL,
  `ddqt_haut_page_n` varchar(50) default NULL,
  PRIMARY KEY  (`ddqt_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_qualite_type_lieu`
--

DROP TABLE IF EXISTS `dd_qualite_type_lieu`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_qualite_type_lieu` (
  `ddqtl_seq` int(11) NOT NULL auto_increment,
  `ddqtl_code` varchar(15) NOT NULL,
  `ddqtl_libelle` varchar(30) NOT NULL,
  PRIMARY KEY  (`ddqtl_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dd_theme`
--

DROP TABLE IF EXISTS `dd_theme`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dd_theme` (
  `ddth_seq` int(11) NOT NULL auto_increment,
  `ddth_libelle` varchar(20) default NULL,
  `ddth_ordre` tinyint(3) default NULL,
  PRIMARY KEY  (`ddth_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `demandeur`
--

DROP TABLE IF EXISTS `demandeur`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `demandeur` (
  `dem_seq` int(11) NOT NULL auto_increment,
  `dem_serv_fk` int(11) NOT NULL default '0',
  `dem_sat_fk` int(11) default '0',
  `dem_bat_fk` int(11) default '0',
  `dem_zone_fk` int(11) default '0',
  `dem_loca_fk` int(11) default '0',
  `dem_code` varchar(15) NOT NULL,
  `dem_nom` varchar(25) default NULL,
  `dem_prenom` varchar(25) default NULL,
  `dem_civilite` varchar(5) default NULL,
  `dem_fonction` varchar(40) default NULL,
  `dem_teldirect` varchar(15) default NULL,
  `dem_telportable` varchar(15) default NULL,
  `dem_email` varchar(60) default NULL,
  `dem_assist_dem_fk` int(11) default NULL,
  `dem_correspondant` int(11) default NULL,
  `dem_photo` varchar(30) default NULL,
  `dem_blocage` int(11) NOT NULL default '0',
  PRIMARY KEY  (`dem_seq`),
  UNIQUE KEY `dem_seq` (`dem_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `demandeur_attr`
--

DROP TABLE IF EXISTS `demandeur_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `demandeur_attr` (
  `dem_att_seq` int(11) NOT NULL auto_increment,
  PRIMARY KEY  (`dem_att_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;




--
-- Table structure for table `df_demande_fourniture`
--

DROP TABLE IF EXISTS `df_demande_fourniture`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `df_demande_fourniture` (
  `dfdf_seq` int(11) NOT NULL auto_increment,
  `dfdf_bsm_fk` int(11) NOT NULL default '0',
  `dfdf_bat_fk` int(11) default NULL,
  `dfdf_zone_fk` int(11) default NULL,
  `dfdf_loca_fk` int(11) default NULL,
  `dfdf_sloc_fk` int(11) NOT NULL default '0',
  `dfdf_dem_fk` int(11) default NULL,
  `dfdf_demandeur` varchar(15) default NULL,
  `dfdf_dem_telephone` varchar(15) default NULL,
  `dfdf_dem_email` varchar(45) default NULL,
  PRIMARY KEY  (`dfdf_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `df_dotation_consommee_tmp_sfm`
--

DROP TABLE IF EXISTS `df_dotation_consommee_tmp_sfm`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `df_dotation_consommee_tmp_sfm` (
  `dfdc_seq` int(11) NOT NULL auto_increment,
  `dfdc_dem_fk` int(11) NOT NULL default '0',
  `dfdc_sloc_fk` int(11) NOT NULL default '0',
  `dfdc_dotation_m1` decimal(13,2) default NULL,
  `dfdc_dotation_m2` decimal(13,2) default NULL,
  `dfdc_dotation_m3` decimal(13,2) default NULL,
  `dfdc_dotation_m4` decimal(13,2) default NULL,
  `dfdc_dotation_m5` decimal(13,2) default NULL,
  `dfdc_dotation_m6` decimal(13,2) default NULL,
  `dfdc_dotation_m7` decimal(13,2) default NULL,
  `dfdc_dotation_m8` decimal(13,2) default NULL,
  `dfdc_dotation_m9` decimal(13,2) default NULL,
  `dfdc_dotation_m10` decimal(13,2) default NULL,
  `dfdc_dotation_m11` decimal(13,2) default NULL,
  `dfdc_dotation_m12` decimal(13,2) default NULL,
  `dfdc_nb_demande` int(11) default NULL,
  `dfdc_time` datetime default NULL,
  PRIMARY KEY  (`dfdc_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `df_lstfourniture_modele`
--

DROP TABLE IF EXISTS `df_lstfourniture_modele`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `df_lstfourniture_modele` (
  `dflm_seq` int(11) NOT NULL auto_increment,
  `dflm_libelle` varchar(100) default NULL,
  `dflm_zus_fk` int(11) default '0',
  PRIMARY KEY  (`dflm_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `document`
--
DROP TABLE IF EXISTS `document`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE document
(

    `docm_seq` int(11) NOT NULL AUTO_INCREMENT,
    `docm_libelle` varchar(70) ,
    `docm_legende` text ,
    `docm_chemin_access` varchar(255) ,
    `docm_date` datetime ,
    `docm_inscrit_par` varchar(5) ,
    `docm_gdct_fk` int(11) ,
    `docm_gdcs_fk` int(11) ,
    `docm_mime_type` varchar(50) ,
    `docm_icone` varchar(50) ,
    `docm_tdoc_fk` int(11) ,
     PRIMARY KEY ( `docm_seq` ),
     KEY `docm_gdct_fk` (`docm_gdct_fk`),
     KEY `docm_gdcs_fk` (`docm_gdcs_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;

--
-- Table structure for table `document_attr`
--

DROP TABLE IF EXISTS `document_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `document_attr` (
  `docm_att_seq` int(11) NOT NULL auto_increment,
  PRIMARY KEY  (`docm_att_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;



--
-- Table structure for table `documentation`
--

DROP TABLE IF EXISTS `documentation`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `documentation` (
  `docu_seq` int(11) NOT NULL default '0',
  `docu_code` varchar(20) NOT NULL,
  `docu_indice` char(2) default NULL,
  `docu_titre` varchar(60) default NULL,
  `docu_comment` text,
  `docu_dateinit` date default '0000-00-00',
  `docu_datemodif` date default '0000-00-00',
  `docu_auteur` varchar(20) default NULL,
  `docu_chemin` text,
  `docu_echelle` varchar(8) default NULL,
  `docu_format` varchar(8) default NULL,
  `docu_etablipar` varchar(10) default NULL,
  `docu_modif` varchar(30) default NULL,
  `docu_rub1` varchar(50) default NULL,
  `docu_rub2` varchar(20) default NULL,
  `docu_rub3` varchar(20) default NULL,
  `docu_tdoc_code` varchar(8) NOT NULL,
  `docu_tdoc_libelle` varchar(15) NOT NULL,
  PRIMARY KEY  (`docu_seq`),
  UNIQUE KEY `DOCU_SEQ` (`docu_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dol_sous_theme`
--

DROP TABLE IF EXISTS `dol_sous_theme`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dol_sous_theme` (
  `dols_seq` int(11) NOT NULL auto_increment,
  `dols_dolt_fk` int(11) NOT NULL default '0',
  `dols_libelle` varchar(20) NOT NULL,
  `dols_ordre` int(3) default NULL,
  PRIMARY KEY  (`dols_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `dol_theme`
--

DROP TABLE IF EXISTS `dol_theme`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `dol_theme` (
  `dolt_seq` int(11) NOT NULL auto_increment,
  `dolt_libelle` varchar(50) default NULL,
  `dolt_image` varchar(150) default NULL,
  `dolt_ordre` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`dolt_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `domaine`
--

DROP TABLE IF EXISTS `domaine`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `domaine` (
  `dom_seq` int(11) NOT NULL auto_increment,
  `dom_code` varchar(6) NOT NULL,
  `dom_libelle` varchar(30) NOT NULL,
  `dom_sdom_fk` int(11) default NULL,
  `dom_bool_inactive` tinyint(3) unsigned default '0',
  `dom_totaliser` tinyint(3) unsigned default NULL,
  `dom_unite` varchar(5) default NULL,
  `dom_decimale` tinyint(3) unsigned default NULL,
  `dom_ordre` tinyint(3) unsigned default NULL,
  `dom_bdocument` tinyint(3) unsigned default NULL,
  `dom_afin_fk` int(11) default NULL,
  `dom_crit_fk` int(11) default NULL,
  `dom_form_fk` int(11) default NULL,
  `dom_ctra_fk` int(11) default NULL,
  `dom_communaute` tinyint(3) default NULL,
  `dom_datmaj` datetime,
  `dom_zus_maj_fk` int(11),
  PRIMARY KEY  (`dom_seq`),
  UNIQUE KEY `DOM_SEQ` (`dom_seq`),
  KEY `DOM_CODE` (`dom_code`),
  KEY `DOM_AFIN_FK` (`dom_afin_fk`),
  KEY `dom_crit_fk` (`dom_crit_fk`),
  KEY `dom_crit_fk_2` (`dom_crit_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `domaine_attr`
--

DROP TABLE IF EXISTS `domaine_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `domaine_attr` (
  `dom_att_seq` int(16) NOT NULL default '0',
  PRIMARY KEY  (`dom_att_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `domaine_frequence`
--

DROP TABLE IF EXISTS `domaine_frequence`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `domaine_frequence` (
  `dofr_seq` int(11) NOT NULL auto_increment,
  `dofr_frequence` int(11) default NULL,
  `dofr_dom_fk` int(11) NOT NULL default '0',
  `dofr_zus_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`dofr_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `domaine_mlg`
--

DROP TABLE IF EXISTS `domaine_mlg`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `domaine_mlg` (
  `dom_mlg_seq` int(11) NOT NULL default '0',
  `dom_mlg_libelle` varchar(30) default NULL,
  PRIMARY KEY  (`dom_mlg_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `enquete`
--

DROP TABLE IF EXISTS `enquete`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `enquete` (
  `enqu_seq` int(11) NOT NULL auto_increment,
  `enqu_libelle` varchar(200) NOT NULL,
  `enqu_destinataire` tinyint(2) default NULL,
  `enqu_adresse_fixe` varchar(255) default NULL,
  `enqu_systematique` tinyint(1) default NULL,
  `enqu_pourcentage` tinyint(2) default NULL,
  `enqu_format_mail` varchar(50) default NULL,
  `enqu_avec_filtre` tinyint(1) default '0',
  `enqu_filtre` text,
  `enqu_date_debut` date NOT NULL default '0000-00-00',
  `enqu_date_fin` date NOT NULL default '0000-00-00',
  `enqu_nb_envoie` int(5) default '0',
  `enqu_date_dernier_envoie` date default NULL,
  `enqu_module_id` int(11) NOT NULL default '0',
  PRIMARY KEY  (`enqu_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `enquete_donnee`
--

DROP TABLE IF EXISTS `enquete_donnee`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `enquete_donnee` (
  `enqd_seq` int(11) NOT NULL auto_increment,
  `enqd_enqu_fk` int(11) NOT NULL default '0',
  `enqd_date_envoie` date NOT NULL default '0000-00-00',
  `enqd_date_retour` date default NULL,
  `enqd_nom_destinataire` varchar(100) default NULL,
  `enqd_mail_destinataire` varchar(100) default NULL,
  `enqd_oper_fk` int(11) NOT NULL default '0',
  `enqd_trav_fk` int(11) default NULL,
  `enqd_commentaire` text,
  PRIMARY KEY  (`enqd_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `enquete_question`
--

DROP TABLE IF EXISTS `enquete_question`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `enquete_question` (
  `enqq_seq` int(11) NOT NULL auto_increment,
  `enqq_enqu_fk` int(11) NOT NULL default '0',
  `enqq_libelle` text NOT NULL,
  `enqq_ordre` int(3) default NULL,
  PRIMARY KEY  (`enqq_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `enquete_question_mlg`
--

DROP TABLE IF EXISTS `enquete_question_mlg`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `enquete_question_mlg` (
  `enqq_mlg_seq` int(11) NOT NULL default '0',
  `enqq_mlg_libelle` text NOT NULL,
  PRIMARY KEY  (`enqq_mlg_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `enquete_reponse`
--

DROP TABLE IF EXISTS `enquete_reponse`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `enquete_reponse` (
  `enqr_seq` int(11) NOT NULL auto_increment,
  `enqr_enqd_fk` int(11) NOT NULL default '0',
  `enqr_enqq_fk` int(11) NOT NULL default '0',
  `enqr_reponse` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`enqr_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `entreprise`
--

DROP TABLE IF EXISTS `entreprise`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `entreprise` (
  `entr_seq` int(11) NOT NULL auto_increment,
  `entr_code` varchar(15) default NULL,
  `entr_libelle` varchar(40) default NULL,
  `entr_estfournisseur` tinyint(3) unsigned default NULL,
  `entr_estconstructeur` tinyint(3) unsigned default NULL,
  `entr_estmainteneur` tinyint(3) unsigned default NULL,
  `entr_estinstallateur` tinyint(3) unsigned default NULL,
  `entr_estsav` tinyint(3) unsigned default NULL,
  `entr_adr1` varchar(35) default NULL,
  `entr_adr2` varchar(35) default NULL,
  `entr_adr3` varchar(35) default NULL,
  `entr_cp` varchar(6) default NULL,
  `entr_ville` varchar(25) default NULL,
  `entr_telephone` varchar(15) default NULL,
  `entr_telecopie` varchar(15) default NULL,
  `entr_region` varchar(25) default NULL,
  `entr_pays` varchar(25) default NULL,
  `entr_datmaj` date default NULL,
  `entr_email` varchar(45) default NULL,
  `entr_website` varchar(45) default NULL,
  `entr_spec_fk` int(11) default NULL,
  `entr_dansstock` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`entr_seq`),
  KEY `entr_code` (`entr_code`),
  KEY `entr_libelle` (`entr_libelle`),
  KEY `entr_ville` (`entr_ville`),
  KEY `entr_spec_fk` (`entr_spec_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `entreprise_attr`
--

DROP TABLE IF EXISTS `entreprise_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `entreprise_attr` (
  `entr_att_seq` int(16) NOT NULL auto_increment,
  PRIMARY KEY  (`entr_att_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `equipe_gestion`
--

DROP TABLE IF EXISTS `equipe_gestion`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `equipe_gestion` (
  `eqgest_seq` int(11) NOT NULL auto_increment,
  `eqgest_nom` varchar(80) NOT NULL,
  `eqgest_text` text NOT NULL,
  PRIMARY KEY  (`eqgest_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `equipe_travaux`
--

DROP TABLE IF EXISTS `equipe_travaux`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `equipe_travaux` (
  `trav_seq` int(11) NOT NULL auto_increment,
  `trav_code` varchar(6) default NULL,
  `trav_libelle` varchar(25) default NULL,
  `trav_boolintern` tinyint(3) unsigned default NULL,
  `trav_couthoraire` decimal(16,2) default NULL,
  `trav_lundi` tinyint(3) unsigned default NULL,
  `trav_mardi` tinyint(3) unsigned default NULL,
  `trav_mercredi` tinyint(3) unsigned default NULL,
  `trav_jeudi` tinyint(3) unsigned default NULL,
  `trav_vendredi` tinyint(3) unsigned default NULL,
  `trav_samedi` tinyint(3) unsigned default NULL,
  `trav_dimanche` tinyint(3) unsigned default NULL,
  `trav_feries` tinyint(3) unsigned default NULL,
  `trav_controle` tinyint(3) unsigned default NULL,
  `trav_couthoraire2` decimal(16,2) default NULL,
  `trav_supe_fk` int(11) default NULL,
  `trav_numappel1` varchar(15) default NULL,
  `trav_typbip` tinyint(3) unsigned default NULL,
  `trav_heuresem` decimal(16,2) default NULL,
  `trav_datmaj` datetime DEFAULT NULL,
  `trav_numappel2` varchar(15) default NULL,
  `trav_numappel3` varchar(15) default NULL,
  `trav_numappel4` varchar(15) default NULL,
  `trav_numappel_info` varchar(15) default NULL,
  `trav_email` varchar(45) default NULL,
  `trav_connex_palm` tinyint(3) unsigned default NULL,
  `trav_palm_id` varchar(10) default NULL,
  `trav_age_fk` int(11) default NULL,
  `trav_numfax` varchar(15) default NULL,
  `trav_actif` tinyint(3) unsigned default NULL,
  `trav_entr_fk` int(11) default NULL,
  `trav_pot_lundi` decimal(16,2) default NULL,
  `trav_pot_mardi` decimal(16,2) default NULL,
  `trav_pot_mercredi` decimal(16,2) default NULL,
  `trav_pot_jeudi` decimal(16,2) default NULL,
  `trav_pot_vendredi` decimal(16,2) default NULL,
  `trav_pot_samedi` decimal(16,2) default NULL,
  `trav_pot_dimanche` decimal(16,2) default NULL,
  `trav_modpotentiel` tinyint(3) unsigned default NULL,
  `trav_cont_fk` int(11) default NULL,
  `trav_connex_crmail` tinyint(3) unsigned default NULL,
  `trav_zus_maj_fk` int(11),
  `trav_pda_1_fk` int(11),
  `trav_pda_2_fk` int(11),
  `trav_pda_3_fk` int(11),
  `trav_pda_4_fk` int(11),
  `trav_delai1` int(11),
  `trav_delai2` int(11),
  `trav_delai3` int(11),
  `trav_delai4` int(11),
  `trav_chgt_eq2` tinyint(3) unsigned,
  `trav_chgt_eq3` tinyint(3) unsigned,
  `trav_chgt_eq4` tinyint(3) unsigned,
  `trav_trav_nouv2_fk` int(11),
  `trav_trav_nouv3_fk` int(11),
  `trav_trav_nouv4_fk` int(11),
  PRIMARY KEY  (`trav_seq`),
  KEY `trav_code` (`trav_code`),
  KEY `trav_libelle` (`trav_libelle`),
  KEY `trav_boolintern` (`trav_boolintern`),
  KEY `trav_supe_fk` (`trav_supe_fk`),
  KEY `trav_age_fk` (`trav_age_fk`),
  KEY `trav_entr_fk` (`trav_entr_fk`),
  KEY `trav_cont_fk` (`trav_cont_fk`),
  KEY `trav_pda_1_fk` (`trav_pda_1_fk`),
  KEY `trav_pda_2_fk` (`trav_pda_2_fk`),
  KEY `trav_pda_3_fk` (`trav_pda_3_fk`),
  KEY `trav_pda_4_fk` (`trav_pda_4_fk`),
  KEY `trav_trav_nouv2_fk` (`trav_trav_nouv2_fk`),
  KEY `trav_trav_nouv3_fk` (`trav_trav_nouv3_fk`),
  KEY `trav_trav_nouv4_fk` (`trav_trav_nouv4_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `equipe_travaux_attr`
--

DROP TABLE IF EXISTS `equipe_travaux_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `equipe_travaux_attr` (
  `trav_att_seq` int(16) NOT NULL auto_increment,
  PRIMARY KEY  (`trav_att_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `equipement`
--

DROP TABLE IF EXISTS `equipement`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `equipement` (
  `eqip_seq` int(11) NOT NULL auto_increment,
  `eqip_code` varchar(20) default NULL,
  `eqip_libelle` varchar(45) default NULL,
  `eqip_type` tinyint(3) unsigned default NULL,
  `eqip_niveau` tinyint(3) unsigned default NULL,
  `eqip_datinstal` date default NULL,
  `eqip_datedebgarant` date default NULL,
  `eqip_datefingarant` date default NULL,
  `eqip_dureegarant` int(11) default NULL,
  `eqip_infocomp` text,
  `eqip_dateconstat` date default NULL,
  `eqip_quantite` int(16) default NULL,
  `eqip_unite` varchar(4) default NULL,
  `eqip_bdocument` tinyint(3) unsigned default NULL,
  `eqip_valaneuf` decimal(16,2) default NULL,
  `eqip_valaneuf2` decimal(16,2) default NULL,
  `eqip_sat_fk` int(11) default NULL,
  `eqip_bat_fk` int(11) default NULL,
  `eqip_dom_fk` int(11) default NULL,
  `eqip_loca_fk` int(11) default NULL,
  `eqip_zone_fk` int(11) default NULL,
  `eqip_trav_fk` int(11) default NULL,
  `eqip_sant_fk` int(11) default NULL,
  `eqip_fame_fk` int(11) default NULL,
  `eqip_four_entr_fk` int(11) default NULL,
  `eqip_fab_entr_fk` int(11) default NULL,
  `eqip_inst_entr_fk` int(11) default NULL,
  `eqip_maint_entr_fk` int(11) default NULL,
  `eqip_sav_entr_fk` int(11) default NULL,
  `eqip_four_cont_fk` int(11) default NULL,
  `eqip_fab_cont_fk` int(11) default NULL,
  `eqip_inst_cont_fk` int(11) default NULL,
  `eqip_maint_cont_fk` int(11) default NULL,
  `eqip_sav_cont_fk` int(11) default NULL,
  `eqip_stde_fk` int(11) default NULL,
  `eqip_codeconca` varchar(27) default NULL,
  `eqip_code_barre` varchar(15) default NULL,
  `eqip_cdbr_fk` int(11) default NULL,
  `eqip_steq_fk` int(11) default NULL,
  `eqip_crit_fk` int(11) default NULL,
  `eqip_ceco_fk` int(11) default NULL,
  `eqip_serv_fk` int(11) default NULL,
  `eqip_dateachat` date default NULL,
  `eqip_datemisexpl` date default NULL,
  `eqip_consiparti` text default NULL,
  `eqip_numserie` varchar(80) default NULL,
  `eqip_afin_fk` int(11) default NULL,
  `eqip_ctra_fk` int(11) default NULL,
  `eqip_proj_fk` int(11) default NULL,
  `eqip_inte_fk` int(11) default NULL,
  `eqip_supe_fk` int(11) default NULL,
  `eqip_cneh` varchar(6) default NULL,
  `eqip_communaute` tinyint(3) default NULL,
  `eqip_moeq_fk` int(11) default NULL, 
  `eqip_eqip_pere_fk` int(11) , 
  `eqip_codeconca_decomp` varchar(255),
  `eqip_datmaj` datetime,
  `eqip_zus_maj_fk` int(11),
  PRIMARY KEY  (`eqip_seq`),
  KEY `eqip_code` (`eqip_code`),
  KEY `eqip_libelle` (`eqip_libelle`),
  KEY `eqip_bat_fk` (`eqip_bat_fk`),
  KEY `eqip_dom_fk` (`eqip_dom_fk`),
  KEY `eqip_loca_fk` (`eqip_loca_fk`),
  KEY `eqip_zone_fk` (`eqip_zone_fk`),
  KEY `eqip_trav_fk` (`eqip_trav_fk`),
  KEY `eqip_sant_fk` (`eqip_sant_fk`),
  KEY `eqip_fame_fk` (`eqip_fame_fk`),
  KEY `eqip_four_entr_fk` (`eqip_four_entr_fk`),
  KEY `eqip_fab_entr_fk` (`eqip_fab_entr_fk`),
  KEY `eqip_inst_entr_fk` (`eqip_inst_entr_fk`),
  KEY `eqip_maint_entr_fk` (`eqip_maint_entr_fk`),
  KEY `eqip_sav_entr_fk` (`eqip_sav_entr_fk`),
  KEY `eqip_four_cont_fk` (`eqip_four_cont_fk`),
  KEY `eqip_fab_cont_fk` (`eqip_fab_cont_fk`),
  KEY `eqip_inst_cont_fk` (`eqip_inst_cont_fk`),
  KEY `eqip_maint_cont_fk` (`eqip_maint_cont_fk`),
  KEY `eqip_sav_cont_fk` (`eqip_sav_cont_fk`),
  KEY `eqip_cdbr_fk` (`eqip_cdbr_fk`),
  KEY `eqip_steq_fk` (`eqip_steq_fk`),
  KEY `eqip_crit_fk` (`eqip_crit_fk`),
  KEY `eqip_ceco_fk` (`eqip_ceco_fk`),
  KEY `eqip_serv_fk` (`eqip_serv_fk`),
  KEY `eqip_afin_fk` (`eqip_afin_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `equipement_attr`
--

DROP TABLE IF EXISTS `equipement_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `equipement_attr` (
  `eqip_att_seq` int(16) NOT NULL auto_increment,
  PRIMARY KEY  (`eqip_att_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `etatavance`
--

DROP TABLE IF EXISTS `etatavance`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `etatavance` (
  `avan_seq` int(11) NOT NULL auto_increment,
  `avan_code` char(3) NOT NULL,
  `avan_libelle` varchar(15) default NULL,
  `avan_ordre` int(11) default '0',
  `avan_obligatoire` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`avan_seq`),
  UNIQUE KEY `AVAN_SEQ` (`avan_seq`),
  KEY `AVAN_CODE` (`avan_code`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `etatsante`
--

DROP TABLE IF EXISTS `etatsante`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `etatsante` (
  `sant_seq` int(11) NOT NULL auto_increment,
  `sant_code` char(1) default NULL,
  `sant_libelle` varchar(15) default NULL,
  `sant_estmauvais` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`sant_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `export`
--

DROP TABLE IF EXISTS `export`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `export` (
  `exp_seq` int(11) NOT NULL auto_increment,
  `exp_liste` int(11) default NULL,
  `exp_ordre` int(11) default NULL,
  `exp_nomchamp` varchar(30) default NULL,
  `exp_libellechamp` varchar(30) default NULL,
  `exp_zus_fk` int(11) default NULL,
  PRIMARY KEY  (`exp_seq`),
  KEY `exp_zus_fk` (`exp_zus_fk`),
  KEY `exp_liste` (`exp_liste`),
  KEY `exp_ordre` (`exp_ordre`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `famille_equip`
--

DROP TABLE IF EXISTS `famille_equip`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `famille_equip` (
  `fame_seq` int(11) NOT NULL auto_increment,
  `fame_code` varchar(15) default NULL,
  `fame_libelle` varchar(30) default NULL,
  `fame_preventif` tinyint(3) unsigned default NULL,
  `fame_bdocument` tinyint(3) unsigned default NULL,
  `fame_duramortis` tinyint(3) unsigned default NULL,
  `fame_dom_fk` int(11) default NULL,
  `fame_trav_fk` int(11) default NULL,
  `fame_supe_fk` int(11) default NULL,
  `fame_bool_inactive` tinyint(3) unsigned default NULL,
  `fame_inte_fk` int(11) default NULL,
  `fame_datmaj` datetime,
  `fame_zus_maj_fk` int(11),
  PRIMARY KEY  (`fame_seq`),
  KEY `fame_code` (`fame_code`),
  KEY `fame_libelle` (`fame_libelle`),
  KEY `fame_dom_fk` (`fame_dom_fk`),
  KEY `fame_trav_fk` (`fame_trav_fk`),
  KEY `fame_supe_fk` (`fame_supe_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `famille_equip_attr`
--

DROP TABLE IF EXISTS `famille_equip_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `famille_equip_attr` (
  `fame_att_seq` int(16) NOT NULL auto_increment,
  PRIMARY KEY  (`fame_att_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `familleartic`
--

DROP TABLE IF EXISTS `famille_article`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `famille_article` (
  `fama_seq` int(11) NOT NULL auto_increment,
  `fama_code` varchar(15) NOT NULL,
  `fama_libelle` varchar(40) NOT NULL,
  PRIMARY KEY  (`fama_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `formulaire`
--

DROP TABLE IF EXISTS `formulaire`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `formulaire` (
  `form_seq` int(11) NOT NULL auto_increment,
  `form_code` varchar(10) default NULL,
  `form_libelle` varchar(30) default NULL,
  `form_utilisedefaut` tinyint(3) unsigned default NULL,
  `form_module_fk` tinyint(3) unsigned default NULL,
  `form_unique` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`form_seq`),
  KEY `form_code` (`form_code`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `formulaire_bloc`
--

DROP TABLE IF EXISTS `formulaire_bloc`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `formulaire_bloc` (
  `fobl_seq` int(11) NOT NULL auto_increment,
  `fobl_libelle_voc_code` varchar(127) default NULL,
  `fobl_ordre` int(11) default NULL,
  `fobl_module_fk` tinyint(3) unsigned default NULL,
  `fobl_commentaire_voc_code` varchar(127) default NULL,
  `fobl_posatt_voc_code` varchar(127) default NULL,
  `fobl_mode` tinyint(3) unsigned default NULL,
  `fobl_atat` tinyint(3) unsigned default NULL,
  `fobl_constante` varchar(127) default NULL,
  `fobl_unique` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`fobl_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `formulaire_rubrique`
--

DROP TABLE IF EXISTS `formulaire_rubrique`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `formulaire_rubrique` (
  `foru_seq` int(11) NOT NULL auto_increment,
  `foru_libelle_voc_code` varchar(127) default NULL,
  `foru_ordre` int(11) default NULL,
  `foru_fobl_fk` int(11) default NULL,
  `foru_obligatoire` tinyint(3) unsigned default NULL,
  `foru_fige` tinyint(3) unsigned default NULL,
  `foru_atat_fk` int(11) default NULL,
  `foru_mode` tinyint(3) unsigned default NULL,
  `foru_commentaire_voc_code` varchar(127) default NULL,
  `foru_constante` varchar(127) default NULL,
  `foru_prgn` varchar(30) default NULL,
  PRIMARY KEY  (`foru_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `fournisseurs`
--

DROP TABLE IF EXISTS `fournisseurs`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `fournisseurs` (
  `four_seq` int(11) NOT NULL auto_increment,
  `four_libelle` varchar(40) NOT NULL,
  `four_adr1` varchar(35) default NULL,
  `four_adr2` varchar(35) default NULL,
  `four_adr3` varchar(35) default NULL,
  `four_cp` varchar(7) default NULL,
  `four_ville` varchar(25) default NULL,
  `four_pays` varchar(20) default NULL,
  `four_code` varchar(10) default NULL,
  `four_telephone` varchar(15) default NULL,
  `four_telecopie` varchar(15) default NULL,
  `four_siret` varchar(14) default NULL,
  `four_ape` varchar(10) default NULL,
  `four_datmaj` date default NULL,
  `four_email` varchar(45) default NULL,
  `four_website` varchar(45) default NULL,
  `four_spec_fk` int(11) default NULL,
  PRIMARY KEY  (`four_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `fparam_assignment_group`
--

DROP TABLE IF EXISTS `fparam_assignment_group`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `fparam_assignment_group` (
  `fpag_seq` int(11) NOT NULL auto_increment,
  `fpag_pweb_fk` int(11) default NULL,
  `fpag_zgrp_fk` int(11) default NULL,
  `fpag_sloc_fk` int(11) default NULL,
  PRIMARY KEY  (`fpag_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `fparam_dit_domain`
--

DROP TABLE IF EXISTS `fparam_dit_domain`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `fparam_dit_domain` (
  `FPDD_SEQ` int(11) NOT NULL auto_increment,
  `FPDD_PWEB_FK` int(11) default NULL,
  `FPDD_DOM_FK` int(11) default NULL,
  PRIMARY KEY  (`FPDD_SEQ`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `fparam_dit_workorder_type`
--

DROP TABLE IF EXISTS `fparam_dit_workorder_type`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `fparam_dit_workorder_type` (
  `FDWT_SEQ` int(11) NOT NULL auto_increment,
  `FDWT_PWEB_FK` int(11) default NULL,
  `FDWT_TOPE_FK` int(11) default NULL,
  PRIMARY KEY  (`FDWT_SEQ`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `fparam_module_free_access`
--

DROP TABLE IF EXISTS `fparam_module_free_access`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `fparam_module_free_access` (
  `FMFA_SEQ` int(11) NOT NULL auto_increment,
  `FMFA_PWEB_FK` int(11) default NULL,
  `FMFA_MODULE_ID` int(11) default NULL,
  `FMFA_IS_MODULE_SELECTED` int(1) default NULL,
  PRIMARY KEY  (`FMFA_SEQ`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `fparam_sre_time_range`
--

DROP TABLE IF EXISTS `fparam_sre_time_range`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `fparam_sre_time_range` (
  `FSTR_SEQ` int(11) NOT NULL auto_increment,
  `FSTR_PWEB_FK` int(11) default NULL,
  `FSTR_BEGIN_TIME` time default NULL,
  `FSTR_END_TIME` time default NULL,
  PRIMARY KEY  (`FSTR_SEQ`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `fsql_rechs`
--

DROP TABLE IF EXISTS `fsql_rechs`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `fsql_rechs` (
  `RECH_SEQ` int(11) NOT NULL default '0',
  `RECH_CODE` int(11) default NULL,
  `RECH_NOM` varchar(30) default NULL,
  `RECH_DESC` varchar(64) default NULL,
  `RECH_SQL_TXT` text,
  `RECH_EVAL` int(3) default NULL,
  PRIMARY KEY  (`RECH_SEQ`),
  KEY `RECH_NOM` (`RECH_NOM`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `gamme`
--

DROP TABLE IF EXISTS `gamme`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `gamme` (
  `game_seq` int(11) NOT NULL auto_increment,
  `game_code` varchar(10) default NULL,
  `game_libelle` varchar(30) default NULL,
  `game_contenu` text,
  `game_consiparti` text,
  `game_dureepres` decimal(16,2) default NULL,
  `game_dureejour` int(11) default NULL,
  `game_verte` tinyint(3) unsigned default NULL,
  `game_stopservic` tinyint(3) unsigned default NULL,
  `game_gen_diff` tinyint(3) unsigned default NULL,
  `game_bool_inactive` tinyint(3) unsigned default NULL,
  `game_bdocument` tinyint(3) unsigned default NULL,
  `game_maj_gene` tinyint(3) unsigned default NULL,
  `game_tope_fk` int(11) default NULL,
  `game_dom_fk` int(11) default NULL,
  `game_tdef_fk` int(11) default NULL,
  PRIMARY KEY  (`game_seq`),
  KEY `game_code` (`game_code`),
  KEY `game_tope_fk` (`game_tope_fk`),
  KEY `game_dom_fk` (`game_dom_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `gamme_attr`
--

DROP TABLE IF EXISTS `gamme_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `gamme_attr` (
  `game_att_seq` int(16) NOT NULL auto_increment,
  PRIMARY KEY  (`game_att_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `gamme_frequence`
--

DROP TABLE IF EXISTS `gamme_frequence`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `gamme_frequence` (
  `gafr_seq` int(11) NOT NULL auto_increment,
  `gafr_frequence` int(11) default NULL,
  `gafr_game_fk` int(11) NOT NULL default '0',
  `gafr_zus_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`gafr_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `gamme_mlg`
--

DROP TABLE IF EXISTS `gamme_mlg`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `gamme_mlg` (
  `game_mlg_seq` int(11) NOT NULL default '0',
  `game_mlg_libelle` varchar(30) default NULL,
  PRIMARY KEY  (`game_mlg_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `gdoc_sous_theme`
--

DROP TABLE IF EXISTS `gdoc_sous_theme`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE gdoc_sous_theme
(
    `gdcs_seq` int(11) NOT NULL AUTO_INCREMENT,
    `gdcs_gdct_fk` int(11) ,
    `gdcs_libelle` varchar(20) ,
    `gdcs_ordre` tinyint(3) unsigned ,
   PRIMARY KEY ( `gdcs_seq` ),
   KEY `gdcs_gdct_fk` (`gdcs_gdct_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;


--
-- Table structure for table `gdoc_theme`
--


DROP TABLE IF EXISTS `gdoc_theme`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE gdoc_theme
(
    `gdct_seq` int(11) NOT NULL AUTO_INCREMENT,
    `gdct_libelle` varchar(50) , 
    `gdct_ordre` tinyint(3) unsigned ,
   PRIMARY KEY ( `gdct_seq` )  
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;



--
-- Table structure for table `glodeurubope`
--

DROP TABLE IF EXISTS `glodeurubope`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `glodeurubope` (
  `gdro_seq` int(11) NOT NULL auto_increment,
  `gdro_code` varchar(15) NOT NULL,
  PRIMARY KEY  (`gdro_seq`),
  UNIQUE KEY `gdro_seq` (`gdro_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `gloprerubope`
--

DROP TABLE IF EXISTS `gloprerubope`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `gloprerubope` (
  `gpro_seq` int(11) NOT NULL auto_increment,
  `gpro_code` varchar(15) NOT NULL,
  PRIMARY KEY  (`gpro_seq`),
  UNIQUE KEY `gpro_seq` (`gpro_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `glossaire`
--

DROP TABLE IF EXISTS `glossaire`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `glossaire` (
  `glos_seq` int(11) NOT NULL auto_increment,
  `glos_libelle` varchar(40) default NULL,
  PRIMARY KEY  (`glos_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `groupe_salle`
--

DROP TABLE IF EXISTS `groupe_salle`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `groupe_salle` (
  `gsal_seq` int(11) NOT NULL auto_increment,
  `gsal_libelle` varchar(15) NOT NULL,
  `gsal_ordre` int(11) NOT NULL default '0',
  PRIMARY KEY  (`gsal_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `histo_modif_resa`
--

DROP TABLE IF EXISTS `histo_modif_resa`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `histo_modif_resa` (
  `himr_seq` int(11) NOT NULL auto_increment,
  `himr_resa_fk` int(11) NOT NULL default '0',
  `himr_zus_fk` int(11) NOT NULL default '0',
  `himr_date` date NOT NULL default '0000-00-00',
  `himr_heure` time NOT NULL default '00:00:00',
  `himr_type` int(11) NOT NULL default '0',
  PRIMARY KEY  (`himr_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `histo_modif_visites`
--

DROP TABLE IF EXISTS `histo_modif_visites`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `histo_modif_visites` (
  `himv_seq` int(11) NOT NULL auto_increment,
  `himv_vis_fk` int(11) NOT NULL default '0',
  `himv_zus_fk` int(11) NOT NULL default '0',
  `himv_date` date NOT NULL default '0000-00-00',
  `himv_heure` time NOT NULL default '00:00:00',
  `himv_type` int(11) NOT NULL default '0',
  PRIMARY KEY  (`himv_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `hlp_article`
--

DROP TABLE IF EXISTS `hlp_article`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `hlp_article` (
  `hlar_seq` int(11) NOT NULL auto_increment,
  `hlar_hlit_fk` int(11) NOT NULL default '0',
  `hlar_lang_fk` int(11) NOT NULL default '0',
  `hlar_label` varchar(100) NOT NULL default '',
  `hlar_text` text,
  `hlar_is_default` tinyint(4) NOT NULL default '0',
  `hlar_status` tinyint(4) NOT NULL default '0',
  PRIMARY KEY  (`hlar_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `hlp_favorite`
--

DROP TABLE IF EXISTS `hlp_favorite`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `hlp_favorite` (
  `hlfv_seq` int(11) NOT NULL auto_increment,
  `hlfv_hlit_fk` int(11) NOT NULL default '0',
  `hlfv_zus_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`hlfv_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `hlp_item`
--

DROP TABLE IF EXISTS `hlp_item`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `hlp_item` (
  `hlit_seq` int(11) NOT NULL auto_increment,
  `hlit_hlit_fk` int(11) NOT NULL default '0',
  `hlit_order` int(11) NOT NULL default '0',
  PRIMARY KEY  (`hlit_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `hlp_module`
--

DROP TABLE IF EXISTS `hlp_module`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `hlp_module` (
  `hlmd_seq` int(11) NOT NULL auto_increment,
  `hlmd_hlit_fk` int(11) NOT NULL default '0',
  `hlmd_module_id` int(11) NOT NULL default '0',
  `hlmd_module_btn_id` varchar(30) NOT NULL default '',
  `hlmd_is_link` tinyint(4) NOT NULL default '0',
  PRIMARY KEY  (`hlmd_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `hlp_word_index`
--

DROP TABLE IF EXISTS `hlp_word_index`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `hlp_word_index` (
  `hlwi_seq` int(11) NOT NULL auto_increment,
  `hlwi_hlar_fk` int(11) NOT NULL default '0',
  `hlwi_word` varchar(50) NOT NULL default '',
  `hlwi_quantity` int(11) NOT NULL default '0',
  PRIMARY KEY  (`hlwi_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `image`
--

DROP TABLE IF EXISTS `image`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `image`
(
    `img_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `img_libelle` varchar(40) , 
    `img_contenu` LONGBLOB , 
    `img_contenu_vignette` LONGBLOB , 
    `img_largeur` int(11) , 
    `img_hauteur` int(11) , 
   PRIMARY KEY ( `img_seq` )  
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `import_annule`
--

DROP TABLE IF EXISTS `import_annule`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `import_annule` (
  `impa_seq` int(11) NOT NULL auto_increment,
  `impa_dem_fk` int(11) NOT NULL default '0',
  `impa_dem_code` varchar(15) NOT NULL,
  PRIMARY KEY  (`impa_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `import_local`
--

DROP TABLE IF EXISTS `import_local`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `import_local` (
  `impl_seq` int(11) NOT NULL auto_increment,
  `impl_loca_fk` int(11) default NULL,
  `impl_loca_sat_fk` int(11) default NULL,
  `impl_loca_bat_fk` int(11) default NULL,
  `impl_loca_zone_fk` int(11) default NULL,
  `impl_loca_tloc_fk` int(11) default NULL,
  `impl_loca_sloc_fk` int(11) default NULL,
  `impl_loca_code` varchar(10) default NULL,
  `impl_loca_libelle` varchar(30) default NULL,
  `impl_loca_sat_code` varchar(8) default NULL,
  `impl_loca_bat_code` varchar(6) default NULL,
  `impl_loca_zone_nom` varchar(6) default NULL,
  `impl_loca_tloc_code` varchar(10) default NULL,
  `impl_loca_sloc_code` varchar(8) default NULL,
  `impl_typeoper` char(1) default NULL,
 PRIMARY KEY  (`impl_seq`),
  UNIQUE KEY `impl_seq` (`impl_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `import_local_journal`
--

DROP TABLE IF EXISTS `import_local_journal`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `import_local_journal` (
  `imlj_seq` int(11) NOT NULL auto_increment,
  `imlj_dateheure` datetime default NULL,
  `imlj_fichier` varchar(45) default NULL,
  PRIMARY KEY  (`imlj_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `import_local_ligne_journal`
--

DROP TABLE IF EXISTS `import_local_ligne_journal`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `import_local_ligne_journal` (
  `illj_seq` int(11) NOT NULL auto_increment,
  `illj_imlj_fk` int(11) NOT NULL default '0',
  `illj_ligne` int(11) default NULL,
  `illj_probleme` varchar(200) default NULL,
  PRIMARY KEY  (`illj_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `import_service`
--

DROP TABLE IF EXISTS `import_service`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `import_service` (
  `imps_seq` int(11) NOT NULL auto_increment,
  `imps_sloc_code` varchar(8) default NULL,
  `imps_sloc_libelle` varchar(30) default NULL,
  `imps_typeoper` char(1) default NULL,
  PRIMARY KEY  (`imps_seq`),
  UNIQUE KEY `IMPS_SEQ` (`imps_seq`),
  KEY `IMPS_SLOC_CODE` (`imps_sloc_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `import_user`
--

DROP TABLE IF EXISTS `import_user`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `import_user` (
  `impu_seq` int(11) NOT NULL auto_increment,
  `impu_zus_nom` varchar(20) default NULL,
  `impu_zus_prenom` varchar(20) default NULL,
  `impu_zus_dem_fk` int(11) default NULL,
  `impu_zus_zgrp_fk` int(11) default NULL,
  `impu_zus_zcat_fk` int(11) default NULL,
  `impu_zus_code` varchar(15) default NULL,
  `impu_zus_initiale` varchar(20) default NULL,
  `impu_zus_codelangue` varchar(4) default NULL,
  `impu_zus_email_adr` varchar(45) default NULL,
  `impu_zus_super_admin` tinyint(1) default NULL,
  `impu_zus_is_first_connect` tinyint(3) default NULL,
  `impu_prof_annuaire` tinyint(4) default NULL,
  `impu_prof_accueil` tinyint(4) default NULL,
  `impu_prof_sosweb` tinyint(4) default NULL,
  `impu_prof_reunion` tinyint(4) default NULL,
  `impu_prof_infos` tinyint(4) default NULL,
  `impu_prof_services` tinyint(4) default NULL,
  `impu_prof_restaurant` tinyint(4) default NULL,
  `impu_prof_reporting` tinyint(4) default NULL,
  `impu_prof_niv_accueil` tinyint(4) default NULL,
  `impu_prof_niv_restaurant` tinyint(4) default NULL,
  `impu_prof_niv_reunion` tinyint(1) default NULL,
  `impu_prof_niv_infos` tinyint(4) default NULL,
  `impu_prof_niv_services` tinyint(4) default NULL,
  `impu_prof_niv_annuaire` tinyint(4) default NULL,
  `impu_prof_niv_sosweb` tinyint(4) default NULL,
  `impu_prof_niv_reporting` tinyint(4) default NULL,
  `impu_prof_admin` tinyint(4) default NULL,
  `impu_prof_crweb` tinyint(4) default NULL,
  `impu_prof_niv_crweb` tinyint(4) default NULL,
  `impu_prof_docline` tinyint(4) default NULL,
  `impu_prof_niv_docline` tinyint(4) default NULL,
  `impu_prof_statistiques` tinyint(4) default NULL,
  `impu_prof_niv_statistiques` tinyint(4) default NULL,
  `impu_prof_circval` tinyint(4) default NULL,
  `impu_prof_niv_circval` tinyint(4) default NULL,
  `impu_prof_ddurable` tinyint(4) default NULL,
  `impu_prof_niv_ddurable` tinyint(4) default NULL,
  `impu_typeoper` char(1) default NULL,
  `impu_prof_demfourni` tinyint(4) default NULL,
  `impu_prof_niv_demfourni` tinyint(4) default NULL,
  `impu_error` int(11) default NULL,
  `impu_zus_identifier` varchar(10) default NULL,
  PRIMARY KEY  (`impu_seq`),
  UNIQUE KEY `impu_seq` (`impu_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `import_user_line_log`
--

DROP TABLE IF EXISTS `import_user_line_log`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `import_user_line_log` (
  `iull_seq` int(11) NOT NULL auto_increment,
  `iull_imul_fk` int(11) default NULL,
  `iull_line` int(11) default NULL,
  `iull_problem` varchar(200) default NULL,
  PRIMARY KEY  (`iull_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `import_user_log`
--

DROP TABLE IF EXISTS `import_user_log`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `import_user_log` (
  `imul_seq` int(11) NOT NULL auto_increment,
  `imul_datetime` datetime default NULL,
  `imul_file` varchar(45) default NULL,
  PRIMARY KEY  (`imul_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `ind_attente`
--

DROP TABLE IF EXISTS `ind_attente`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ind_attente` (
  `inda_seq` int(11) NOT NULL auto_increment,
  `inda_datedebut` datetime default NULL,
  `inda_datefin` datetime default NULL,
  `inda_decinc_fk` tinyint(3) unsigned default NULL,
  `inda_elem_fk` int(11) default NULL,
  PRIMARY KEY  (`inda_seq`),
  KEY `inda_datedebut` (`inda_datedebut`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `indicateur_batiment`
--

DROP TABLE IF EXISTS `indicateur_batiment`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `indicateur_batiment` (
  `inba_seq` int(11) NOT NULL auto_increment,
  `inba_periode` datetime default NULL,
  `inba_bat_fk` int(11) default NULL,
  `inba_oper_nb_pre_corr` int(11) default NULL,
  `inba_oper_nb_pre_prev` int(11) default NULL,
  `inba_oper_nb_pre_autr` int(11) default NULL,
  `inba_oper_nb_rea_corr` int(11) default NULL,
  `inba_oper_nb_rea_prev` int(11) default NULL,
  `inba_oper_nb_rea_autr` int(11) default NULL,
  `inba_oper_tot_heur_pre_corr` decimal(16,2) default NULL,
  `inba_oper_tot_heur_rea_corr` decimal(16,2) default NULL,
  `inba_oper_tot_heur_pre_prev` decimal(16,2) default NULL,
  `inba_oper_tot_heur_rea_prev` decimal(16,2) default NULL,
  `inba_oper_tot_heur_pre_autr` decimal(16,2) default NULL,
  `inba_oper_tot_heur_rea_autr` decimal(16,2) default NULL,
  `inba_oper_tot_cout_pre_corr` decimal(16,2) default NULL,
  `inba_oper_tot_cout_rea_corr` decimal(16,2) default NULL,
  `inba_oper_tot_cout_pre_prev` decimal(16,2) default NULL,
  `inba_oper_tot_cout_rea_prev` decimal(16,2) default NULL,
  `inba_oper_tot_cout_pre_autr` decimal(16,2) default NULL,
  `inba_oper_tot_cout_rea_autr` decimal(16,2) default NULL,
  `inba_oper_moy_jour_rea_corr` decimal(16,2) default NULL,
  `inba_oper_moy_jour_rea_prev` decimal(16,2) default NULL,
  `inba_oper_moy_jour_rea_autr` decimal(16,2) default NULL,
  `inba_oper_nb_ann` int(11) default NULL,
  `inba_oper_nb_act_corr` decimal(16,2) default NULL,
  `inba_oper_nb_act_prev` decimal(16,2) default NULL,
  `inba_oper_nb_act_autr` int(11) default NULL,
  `inba_oper_nb_act` decimal(16,2) default NULL,
  `inba_oper_tot_heur_act_pre_corr` decimal(16,2) default NULL,
  `inba_oper_tot_heur_act_pre_prev` decimal(16,2) default NULL,
  `inba_oper_tot_heur_act_pre_autr` decimal(16,2) default NULL,
  `inba_oper_tot_heur_act_pre` decimal(16,2) default NULL,
  `inba_oper_nb_esup` int(11) default NULL,
  `inba_oper_nb_ec` int(11) default NULL,
  `inba_oper_nb_eret` int(11) default NULL,
  `inba_oper_tot_coutheur_pre_corr` decimal(16,2) default NULL,
  `inba_oper_tot_coutheur_rea_corr` decimal(16,2) default NULL,
  `inba_oper_tot_coutfour_pre_corr` decimal(16,2) default NULL,
  `inba_oper_tot_coutfour_rea_corr` decimal(16,2) default NULL,
  `inba_oper_tot_coutdivr_pre_corr` decimal(16,2) default NULL,
  `inba_oper_tot_coutdivr_rea_corr` decimal(16,2) default NULL,
  `inba_oper_tot_coutheur_pre_prev` decimal(16,2) default NULL,
  `inba_oper_tot_coutheur_rea_prev` decimal(16,2) default NULL,
  `inba_oper_tot_coutfour_pre_prev` decimal(16,2) default NULL,
  `inba_oper_tot_coutfour_rea_prev` decimal(16,2) default NULL,
  `inba_oper_tot_coutdivr_pre_prev` decimal(16,2) default NULL,
  `inba_oper_tot_coutdivr_rea_prev` decimal(16,2) default NULL,
  `inba_oper_tot_coutheur_pre_autr` decimal(16,2) default NULL,
  `inba_oper_tot_coutheur_rea_autr` decimal(16,2) default NULL,
  `inba_oper_tot_coutfour_pre_autr` decimal(16,2) default NULL,
  `inba_oper_tot_coutfour_rea_autr` decimal(16,2) default NULL,
  `inba_oper_tot_coutdivr_pre_autr` decimal(16,2) default NULL,
  `inba_oper_tot_coutdivr_rea_autr` decimal(16,2) default NULL,
  `inba_oper_med_jour_rea_corr` decimal(16,2) default NULL,
  `inba_oper_med_jour_rea_prev` decimal(16,2) default NULL,
  `inba_oper_med_jour_rea_autr` decimal(16,2) default NULL,
  `inba_oper_tot_heur_act_rea_corr` decimal(16,2) default NULL,
  `inba_oper_tot_heur_act_rea_prev` decimal(16,2) default NULL,
  `inba_oper_tot_heur_act_rea_autr` decimal(16,2) default NULL,
  `inba_oper_tot_heur_act_rea` decimal(16,2) default NULL,
  PRIMARY KEY  (`inba_seq`),
  KEY `inba_periode` (`inba_periode`),
  KEY `inba_bat_fk` (`inba_bat_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `indicateur_contrat`
--

DROP TABLE IF EXISTS `indicateur_contrat`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `indicateur_contrat` (
  `inct_seq` int(11) NOT NULL auto_increment,
  `inct_periode` datetime default NULL,
  `inct_ctra_fk` int(11) default NULL,
  `inct_oper_nb_pre_corr` int(11) default NULL,
  `inct_oper_nb_pre_prev` int(11) default NULL,
  `inct_oper_nb_pre_autr` int(11) default NULL,
  `inct_oper_nb_rea_corr` int(11) default NULL,
  `inct_oper_nb_rea_prev` int(11) default NULL,
  `inct_oper_nb_rea_autr` int(11) default NULL,
  `inct_oper_tot_heur_pre_corr` decimal(16,2) default NULL,
  `inct_oper_tot_heur_rea_corr` decimal(16,2) default NULL,
  `inct_oper_tot_heur_pre_prev` decimal(16,2) default NULL,
  `inct_oper_tot_heur_rea_prev` decimal(16,2) default NULL,
  `inct_oper_tot_heur_pre_autr` decimal(16,2) default NULL,
  `inct_oper_tot_heur_rea_autr` decimal(16,2) default NULL,
  `inct_oper_tot_cout_pre_corr` decimal(16,2) default NULL,
  `inct_oper_tot_cout_rea_corr` decimal(16,2) default NULL,
  `inct_oper_tot_cout_pre_prev` decimal(16,2) default NULL,
  `inct_oper_tot_cout_rea_prev` decimal(16,2) default NULL,
  `inct_oper_tot_cout_pre_autr` decimal(16,2) default NULL,
  `inct_oper_tot_cout_rea_autr` decimal(16,2) default NULL,
  `inct_oper_moy_jour_rea_corr` decimal(16,2) default NULL,
  `inct_oper_moy_jour_rea_prev` decimal(16,2) default NULL,
  `inct_oper_moy_jour_rea_autr` decimal(16,2) default NULL,
  `inct_oper_nb_ann` int(11) default NULL,
  `inct_oper_nb_act_corr` decimal(16,2) default NULL,
  `inct_oper_nb_act_prev` decimal(16,2) default NULL,
  `inct_oper_nb_act_autr` int(11) default NULL,
  `inct_oper_nb_act` decimal(16,2) default NULL,
  `inct_oper_tot_heur_act_pre_corr` decimal(16,2) default NULL,
  `inct_oper_tot_heur_act_pre_prev` decimal(16,2) default NULL,
  `inct_oper_tot_heur_act_pre_autr` decimal(16,2) default NULL,
  `inct_oper_tot_heur_act_pre` decimal(16,2) default NULL,
  `inct_oper_nb_esup` int(11) default NULL,
  `inct_oper_nb_ec` int(11) default NULL,
  `inct_oper_nb_eret` int(11) default NULL,
  `inct_oper_tot_coutheur_pre_corr` decimal(16,2) default NULL,
  `inct_oper_tot_coutheur_rea_corr` decimal(16,2) default NULL,
  `inct_oper_tot_coutfour_pre_corr` decimal(16,2) default NULL,
  `inct_oper_tot_coutfour_rea_corr` decimal(16,2) default NULL,
  `inct_oper_tot_coutdivr_pre_corr` decimal(16,2) default NULL,
  `inct_oper_tot_coutdivr_rea_corr` decimal(16,2) default NULL,
  `inct_oper_tot_coutheur_pre_prev` decimal(16,2) default NULL,
  `inct_oper_tot_coutheur_rea_prev` decimal(16,2) default NULL,
  `inct_oper_tot_coutfour_pre_prev` decimal(16,2) default NULL,
  `inct_oper_tot_coutfour_rea_prev` decimal(16,2) default NULL,
  `inct_oper_tot_coutdivr_pre_prev` decimal(16,2) default NULL,
  `inct_oper_tot_coutdivr_rea_prev` decimal(16,2) default NULL,
  `inct_oper_tot_coutheur_pre_autr` decimal(16,2) default NULL,
  `inct_oper_tot_coutheur_rea_autr` decimal(16,2) default NULL,
  `inct_oper_tot_coutfour_pre_autr` decimal(16,2) default NULL,
  `inct_oper_tot_coutfour_rea_autr` decimal(16,2) default NULL,
  `inct_oper_tot_coutdivr_pre_autr` decimal(16,2) default NULL,
  `inct_oper_tot_coutdivr_rea_autr` decimal(16,2) default NULL,
  `inct_oper_med_jour_rea_corr` decimal(16,2) default NULL,
  `inct_oper_med_jour_rea_prev` decimal(16,2) default NULL,
  `inct_oper_med_jour_rea_autr` decimal(16,2) default NULL,
  `inct_oper_tot_heur_act_rea_corr` decimal(16,2) default NULL,
  `inct_oper_tot_heur_act_rea_prev` decimal(16,2) default NULL,
  `inct_oper_tot_heur_act_rea_autr` decimal(16,2) default NULL,
  `inct_oper_tot_heur_act_rea` decimal(16,2) default NULL,
  PRIMARY KEY  (`inct_seq`),
  KEY `inct_periode` (`inct_periode`),
  KEY `inct_ctra_fk` (`inct_ctra_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `indicateur_domaine`
--

DROP TABLE IF EXISTS `indicateur_domaine`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `indicateur_domaine` (
  `indo_seq` int(11) NOT NULL auto_increment,
  `indo_periode` datetime default NULL,
  `indo_dom_fk` int(11) default NULL,
  `indo_oper_nb_pre_corr` int(11) default NULL,
  `indo_oper_nb_pre_prev` int(11) default NULL,
  `indo_oper_nb_pre_autr` int(11) default NULL,
  `indo_oper_nb_rea_corr` int(11) default NULL,
  `indo_oper_nb_rea_prev` int(11) default NULL,
  `indo_oper_nb_rea_autr` int(11) default NULL,
  `indo_oper_tot_heur_pre_corr` decimal(16,2) default NULL,
  `indo_oper_tot_heur_rea_corr` decimal(16,2) default NULL,
  `indo_oper_tot_heur_pre_prev` decimal(16,2) default NULL,
  `indo_oper_tot_heur_rea_prev` decimal(16,2) default NULL,
  `indo_oper_tot_heur_pre_autr` decimal(16,2) default NULL,
  `indo_oper_tot_heur_rea_autr` decimal(16,2) default NULL,
  `indo_oper_tot_cout_pre_corr` decimal(16,2) default NULL,
  `indo_oper_tot_cout_rea_corr` decimal(16,2) default NULL,
  `indo_oper_tot_cout_pre_prev` decimal(16,2) default NULL,
  `indo_oper_tot_cout_rea_prev` decimal(16,2) default NULL,
  `indo_oper_tot_cout_pre_autr` decimal(16,2) default NULL,
  `indo_oper_tot_cout_rea_autr` decimal(16,2) default NULL,
  `indo_oper_moy_jour_rea_corr` decimal(16,2) default NULL,
  `indo_oper_moy_jour_rea_prev` decimal(16,2) default NULL,
  `indo_oper_moy_jour_rea_autr` decimal(16,2) default NULL,
  `indo_oper_nb_ann` int(11) default NULL,
  `indo_eqip_nb_corr` int(11) default NULL,
  `indo_eqip_nb_prev` int(11) default NULL,
  `indo_oper_nb_act_corr` decimal(16,2) default NULL,
  `indo_oper_nb_act_prev` decimal(16,2) default NULL,
  `indo_oper_nb_act_autr` int(11) default NULL,
  `indo_oper_nb_act` decimal(16,2) default NULL,
  `indo_oper_tot_heur_act_pre_corr` decimal(16,2) default NULL,
  `indo_oper_tot_heur_act_pre_prev` decimal(16,2) default NULL,
  `indo_oper_tot_heur_act_pre_autr` decimal(16,2) default NULL,
  `indo_oper_tot_heur_act_pre` decimal(16,2) default NULL,
  `indo_oper_nb_esup` int(11) default NULL,
  `indo_oper_nb_ec` int(11) default NULL,
  `indo_oper_nb_eret` int(11) default NULL,
  `indo_eqip_nb` int(11) default NULL,
  `indo_eqip_nb_act` int(11) default NULL,
  `indo_oper_tot_coutheur_pre_corr` decimal(16,2) default NULL,
  `indo_oper_tot_coutheur_rea_corr` decimal(16,2) default NULL,
  `indo_oper_tot_coutfour_pre_corr` decimal(16,2) default NULL,
  `indo_oper_tot_coutfour_rea_corr` decimal(16,2) default NULL,
  `indo_oper_tot_coutdivr_pre_corr` decimal(16,2) default NULL,
  `indo_oper_tot_coutdivr_rea_corr` decimal(16,2) default NULL,
  `indo_oper_tot_coutheur_pre_prev` decimal(16,2) default NULL,
  `indo_oper_tot_coutheur_rea_prev` decimal(16,2) default NULL,
  `indo_oper_tot_coutfour_pre_prev` decimal(16,2) default NULL,
  `indo_oper_tot_coutfour_rea_prev` decimal(16,2) default NULL,
  `indo_oper_tot_coutdivr_pre_prev` decimal(16,2) default NULL,
  `indo_oper_tot_coutdivr_rea_prev` decimal(16,2) default NULL,
  `indo_oper_tot_coutheur_pre_autr` decimal(16,2) default NULL,
  `indo_oper_tot_coutheur_rea_autr` decimal(16,2) default NULL,
  `indo_oper_tot_coutfour_pre_autr` decimal(16,2) default NULL,
  `indo_oper_tot_coutfour_rea_autr` decimal(16,2) default NULL,
  `indo_oper_tot_coutdivr_pre_autr` decimal(16,2) default NULL,
  `indo_oper_tot_coutdivr_rea_autr` decimal(16,2) default NULL,
  `indo_oper_med_jour_rea_corr` decimal(16,2) default NULL,
  `indo_oper_med_jour_rea_prev` decimal(16,2) default NULL,
  `indo_oper_med_jour_rea_autr` decimal(16,2) default NULL,
  `indo_oper_tot_heur_act_rea_corr` decimal(16,2) default NULL,
  `indo_oper_tot_heur_act_rea_prev` decimal(16,2) default NULL,
  `indo_oper_tot_heur_act_rea_autr` decimal(16,2) default NULL,
  `indo_oper_tot_heur_act_rea` decimal(16,2) default NULL,
  PRIMARY KEY  (`indo_seq`),
  KEY `indo_periode` (`indo_periode`),
  KEY `indo_dom_fk` (`indo_dom_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `indicateur_equipe_travaux`
--

DROP TABLE IF EXISTS `indicateur_equipe_travaux`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `indicateur_equipe_travaux` (
  `inet_seq` int(11) NOT NULL auto_increment,
  `inet_periode` datetime default NULL,
  `inet_trav_fk` int(11) default NULL,
  `inet_oper_nb_pre_corr` int(11) default NULL,
  `inet_oper_nb_pre_prev` int(11) default NULL,
  `inet_oper_nb_pre_autr` int(11) default NULL,
  `inet_oper_nb_rea_corr` int(11) default NULL,
  `inet_oper_nb_rea_prev` int(11) default NULL,
  `inet_oper_nb_rea_autr` int(11) default NULL,
  `inet_oper_tot_heur_pre_corr` decimal(16,2) default NULL,
  `inet_oper_tot_heur_rea_corr` decimal(16,2) default NULL,
  `inet_oper_tot_heur_pre_prev` decimal(16,2) default NULL,
  `inet_oper_tot_heur_rea_prev` decimal(16,2) default NULL,
  `inet_oper_tot_heur_pre_autr` decimal(16,2) default NULL,
  `inet_oper_tot_heur_rea_autr` decimal(16,2) default NULL,
  `inet_oper_tot_cout_pre_corr` decimal(16,2) default NULL,
  `inet_oper_tot_cout_rea_corr` decimal(16,2) default NULL,
  `inet_oper_tot_cout_pre_prev` decimal(16,2) default NULL,
  `inet_oper_tot_cout_rea_prev` decimal(16,2) default NULL,
  `inet_oper_tot_cout_pre_autr` decimal(16,2) default NULL,
  `inet_oper_tot_cout_rea_autr` decimal(16,2) default NULL,
  `inet_oper_moy_jour_rea_corr` decimal(16,2) default NULL,
  `inet_oper_moy_jour_rea_prev` decimal(16,2) default NULL,
  `inet_oper_moy_jour_rea_autr` decimal(16,2) default NULL,
  `inet_oper_nb_ann` int(11) default NULL,
  `inet_oper_nb_act_corr` decimal(16,2) default NULL,
  `inet_oper_nb_act_prev` decimal(16,2) default NULL,
  `inet_oper_nb_act_autr` int(11) default NULL,
  `inet_oper_nb_act` decimal(16,2) default NULL,
  `inet_oper_tot_heur_act_pre_corr` decimal(16,2) default NULL,
  `inet_oper_tot_heur_act_pre_prev` decimal(16,2) default NULL,
  `inet_oper_tot_heur_act_pre_autr` decimal(16,2) default NULL,
  `inet_oper_tot_heur_act_pre` decimal(16,2) default NULL,
  `inet_oper_nb_esup` int(11) default NULL,
  `inet_oper_nb_ec` int(11) default NULL,
  `inet_oper_nb_eret` int(11) default NULL,
  `inet_oper_tot_coutheur_pre_corr` decimal(16,2) default NULL,
  `inet_oper_tot_coutheur_rea_corr` decimal(16,2) default NULL,
  `inet_oper_tot_coutfour_pre_corr` decimal(16,2) default NULL,
  `inet_oper_tot_coutfour_rea_corr` decimal(16,2) default NULL,
  `inet_oper_tot_coutdivr_pre_corr` decimal(16,2) default NULL,
  `inet_oper_tot_coutdivr_rea_corr` decimal(16,2) default NULL,
  `inet_oper_tot_coutheur_pre_prev` decimal(16,2) default NULL,
  `inet_oper_tot_coutheur_rea_prev` decimal(16,2) default NULL,
  `inet_oper_tot_coutfour_pre_prev` decimal(16,2) default NULL,
  `inet_oper_tot_coutfour_rea_prev` decimal(16,2) default NULL,
  `inet_oper_tot_coutdivr_pre_prev` decimal(16,2) default NULL,
  `inet_oper_tot_coutdivr_rea_prev` decimal(16,2) default NULL,
  `inet_oper_tot_coutheur_pre_autr` decimal(16,2) default NULL,
  `inet_oper_tot_coutheur_rea_autr` decimal(16,2) default NULL,
  `inet_oper_tot_coutfour_pre_autr` decimal(16,2) default NULL,
  `inet_oper_tot_coutfour_rea_autr` decimal(16,2) default NULL,
  `inet_oper_tot_coutdivr_pre_autr` decimal(16,2) default NULL,
  `inet_oper_tot_coutdivr_rea_autr` decimal(16,2) default NULL,
  `inet_oper_med_jour_rea_corr` decimal(16,2) default NULL,
  `inet_oper_med_jour_rea_prev` decimal(16,2) default NULL,
  `inet_oper_med_jour_rea_autr` decimal(16,2) default NULL,
  `inet_oper_tot_heur_act_rea_corr` decimal(16,2) default NULL,
  `inet_oper_tot_heur_act_rea_prev` decimal(16,2) default NULL,
  `inet_oper_tot_heur_act_rea_autr` decimal(16,2) default NULL,
  `inet_oper_tot_heur_act_rea` decimal(16,2) default NULL,
  PRIMARY KEY  (`inet_seq`),
  KEY `inet_periode` (`inet_periode`),
  KEY `inet_trav_fk` (`inet_trav_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `indicateur_equipement`
--

DROP TABLE IF EXISTS `indicateur_equipement`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `indicateur_equipement` (
  `ineq_seq` int(11) NOT NULL auto_increment,
  `ineq_periode` datetime default NULL,
  `ineq_eqip_fk` int(11) default NULL,
  `ineq_oper_nb_pre_corr` int(11) default NULL,
  `ineq_oper_nb_pre_prev` int(11) default NULL,
  `ineq_oper_nb_pre_autr` int(11) default NULL,
  `ineq_oper_nb_rea_corr` int(11) default NULL,
  `ineq_oper_nb_rea_prev` int(11) default NULL,
  `ineq_oper_nb_rea_autr` int(11) default NULL,
  `ineq_oper_tot_heur_pre_corr` decimal(16,2) default NULL,
  `ineq_oper_tot_heur_rea_corr` decimal(16,2) default NULL,
  `ineq_oper_tot_heur_pre_prev` decimal(16,2) default NULL,
  `ineq_oper_tot_heur_rea_prev` decimal(16,2) default NULL,
  `ineq_oper_tot_heur_pre_autr` decimal(16,2) default NULL,
  `ineq_oper_tot_heur_rea_autr` decimal(16,2) default NULL,
  `ineq_oper_tot_cout_pre_corr` decimal(16,2) default NULL,
  `ineq_oper_tot_cout_rea_corr` decimal(16,2) default NULL,
  `ineq_oper_tot_cout_pre_prev` decimal(16,2) default NULL,
  `ineq_oper_tot_cout_rea_prev` decimal(16,2) default NULL,
  `ineq_oper_tot_cout_pre_autr` decimal(16,2) default NULL,
  `ineq_oper_tot_cout_rea_autr` decimal(16,2) default NULL,
  `ineq_oper_moy_jour_rea_corr` decimal(16,2) default NULL,
  `ineq_oper_moy_jour_rea_prev` decimal(16,2) default NULL,
  `ineq_oper_moy_jour_rea_autr` decimal(16,2) default NULL,
  `ineq_oper_nb_ann` int(11) default NULL,
  `ineq_oper_tot_coutheur_pre_corr` decimal(16,2) default NULL,
  `ineq_oper_tot_coutheur_rea_corr` decimal(16,2) default NULL,
  `ineq_oper_tot_coutfour_pre_corr` decimal(16,2) default NULL,
  `ineq_oper_tot_coutfour_rea_corr` decimal(16,2) default NULL,
  `ineq_oper_tot_coutdivr_pre_corr` decimal(16,2) default NULL,
  `ineq_oper_tot_coutdivr_rea_corr` decimal(16,2) default NULL,
  `ineq_oper_tot_coutheur_pre_prev` decimal(16,2) default NULL,
  `ineq_oper_tot_coutheur_rea_prev` decimal(16,2) default NULL,
  `ineq_oper_tot_coutfour_pre_prev` decimal(16,2) default NULL,
  `ineq_oper_tot_coutfour_rea_prev` decimal(16,2) default NULL,
  `ineq_oper_tot_coutdivr_pre_prev` decimal(16,2) default NULL,
  `ineq_oper_tot_coutdivr_rea_prev` decimal(16,2) default NULL,
  `ineq_oper_tot_coutheur_pre_autr` decimal(16,2) default NULL,
  `ineq_oper_tot_coutheur_rea_autr` decimal(16,2) default NULL,
  `ineq_oper_tot_coutfour_pre_autr` decimal(16,2) default NULL,
  `ineq_oper_tot_coutfour_rea_autr` decimal(16,2) default NULL,
  `ineq_oper_tot_coutdivr_pre_autr` decimal(16,2) default NULL,
  `ineq_oper_tot_coutdivr_rea_autr` decimal(16,2) default NULL,
  `ineq_oper_med_jour_rea_corr` decimal(16,2) default NULL,
  `ineq_oper_med_jour_rea_prev` decimal(16,2) default NULL,
  `ineq_oper_med_jour_rea_autr` decimal(16,2) default NULL,
  `ineq_eqip_nb_corr` int(11) default NULL,
  `ineq_eqip_nb_prev` int(11) default NULL,
  `ineq_oper_nb_act_corr` decimal(16,2) default NULL,
  `ineq_oper_nb_act_prev` decimal(16,2) default NULL,
  `ineq_oper_nb_act_autr` int(11) default NULL,
  `ineq_oper_nb_act` decimal(16,2) default NULL,
  `ineq_oper_tot_heur_act_pre_corr` decimal(16,2) default NULL,
  `ineq_oper_tot_heur_act_pre_prev` decimal(16,2) default NULL,
  `ineq_oper_tot_heur_act_pre_autr` decimal(16,2) default NULL,
  `ineq_oper_tot_heur_act_pre` decimal(16,2) default NULL,
  `ineq_oper_nb_esup` int(11) default NULL,
  `ineq_oper_nb_ec` int(11) default NULL,
  `ineq_oper_nb_eret` int(11) default NULL,
  `ineq_oper_tot_heur_act_rea_corr` decimal(16,2) default NULL,
  `ineq_oper_tot_heur_act_rea_prev` decimal(16,2) default NULL,
  `ineq_oper_tot_heur_act_rea_autr` decimal(16,2) default NULL,
  `ineq_oper_tot_heur_act_rea` decimal(16,2) default NULL,
  PRIMARY KEY  (`ineq_seq`),
  KEY `ineq_periode` (`ineq_periode`),
  KEY `ineq_eqip_fk` (`ineq_eqip_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `indicateur_famille_equip`
--

DROP TABLE IF EXISTS `indicateur_famille_equip`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `indicateur_famille_equip` (
  `infe_seq` int(11) NOT NULL auto_increment,
  `infe_periode` datetime default NULL,
  `infe_fame_fk` int(11) default NULL,
  `infe_oper_nb_pre_corr` int(11) default NULL,
  `infe_oper_nb_pre_prev` int(11) default NULL,
  `infe_oper_nb_pre_autr` int(11) default NULL,
  `infe_oper_nb_rea_corr` int(11) default NULL,
  `infe_oper_nb_rea_prev` int(11) default NULL,
  `infe_oper_nb_rea_autr` int(11) default NULL,
  `infe_oper_tot_heur_pre_corr` decimal(16,2) default NULL,
  `infe_oper_tot_heur_rea_corr` decimal(16,2) default NULL,
  `infe_oper_tot_heur_pre_prev` decimal(16,2) default NULL,
  `infe_oper_tot_heur_rea_prev` decimal(16,2) default NULL,
  `infe_oper_tot_heur_pre_autr` decimal(16,2) default NULL,
  `infe_oper_tot_heur_rea_autr` decimal(16,2) default NULL,
  `infe_oper_tot_cout_pre_corr` decimal(16,2) default NULL,
  `infe_oper_tot_cout_rea_corr` decimal(16,2) default NULL,
  `infe_oper_tot_cout_pre_prev` decimal(16,2) default NULL,
  `infe_oper_tot_cout_rea_prev` decimal(16,2) default NULL,
  `infe_oper_tot_cout_pre_autr` decimal(16,2) default NULL,
  `infe_oper_tot_cout_rea_autr` decimal(16,2) default NULL,
  `infe_oper_moy_jour_rea_corr` decimal(16,2) default NULL,
  `infe_oper_moy_jour_rea_prev` decimal(16,2) default NULL,
  `infe_oper_moy_jour_rea_autr` decimal(16,2) default NULL,
  `infe_oper_nb_ann` int(11) default NULL,
  `infe_eqip_nb_corr` int(11) default NULL,
  `infe_eqip_nb_prev` int(11) default NULL,
  `infe_oper_nb_act_corr` decimal(16,2) default NULL,
  `infe_oper_nb_act_prev` decimal(16,2) default NULL,
  `infe_oper_nb_act_autr` int(11) default NULL,
  `infe_oper_nb_act` decimal(16,2) default NULL,
  `infe_oper_tot_heur_act_pre_corr` decimal(16,2) default NULL,
  `infe_oper_tot_heur_act_pre_prev` decimal(16,2) default NULL,
  `infe_oper_tot_heur_act_pre_autr` decimal(16,2) default NULL,
  `infe_oper_tot_heur_act_pre` decimal(16,2) default NULL,
  `infe_oper_nb_esup` int(11) default NULL,
  `infe_oper_nb_ec` int(11) default NULL,
  `infe_oper_nb_eret` int(11) default NULL,
  `infe_eqip_nb` int(11) default NULL,
  `infe_eqip_nb_act` int(11) default NULL,
  `infe_oper_tot_coutheur_pre_corr` decimal(16,2) default NULL,
  `infe_oper_tot_coutheur_rea_corr` decimal(16,2) default NULL,
  `infe_oper_tot_coutfour_pre_corr` decimal(16,2) default NULL,
  `infe_oper_tot_coutfour_rea_corr` decimal(16,2) default NULL,
  `infe_oper_tot_coutdivr_pre_corr` decimal(16,2) default NULL,
  `infe_oper_tot_coutdivr_rea_corr` decimal(16,2) default NULL,
  `infe_oper_tot_coutheur_pre_prev` decimal(16,2) default NULL,
  `infe_oper_tot_coutheur_rea_prev` decimal(16,2) default NULL,
  `infe_oper_tot_coutfour_pre_prev` decimal(16,2) default NULL,
  `infe_oper_tot_coutfour_rea_prev` decimal(16,2) default NULL,
  `infe_oper_tot_coutdivr_pre_prev` decimal(16,2) default NULL,
  `infe_oper_tot_coutdivr_rea_prev` decimal(16,2) default NULL,
  `infe_oper_tot_coutheur_pre_autr` decimal(16,2) default NULL,
  `infe_oper_tot_coutheur_rea_autr` decimal(16,2) default NULL,
  `infe_oper_tot_coutfour_pre_autr` decimal(16,2) default NULL,
  `infe_oper_tot_coutfour_rea_autr` decimal(16,2) default NULL,
  `infe_oper_tot_coutdivr_pre_autr` decimal(16,2) default NULL,
  `infe_oper_tot_coutdivr_rea_autr` decimal(16,2) default NULL,
  `infe_oper_med_jour_rea_corr` decimal(16,2) default NULL,
  `infe_oper_med_jour_rea_prev` decimal(16,2) default NULL,
  `infe_oper_med_jour_rea_autr` decimal(16,2) default NULL,
  `infe_oper_tot_heur_act_rea_corr` decimal(16,2) default NULL,
  `infe_oper_tot_heur_act_rea_prev` decimal(16,2) default NULL,
  `infe_oper_tot_heur_act_rea_autr` decimal(16,2) default NULL,
  `infe_oper_tot_heur_act_rea` decimal(16,2) default NULL,
  PRIMARY KEY  (`infe_seq`),
  KEY `infe_periode` (`infe_periode`),
  KEY `infe_fame_fk` (`infe_fame_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `indicateur_general`
--

DROP TABLE IF EXISTS `indicateur_general`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `indicateur_general` (
  `inge_seq` int(11) NOT NULL auto_increment,
  `inge_periode` datetime default NULL,
  `inge_oper_nb_pre_corr` int(11) default NULL,
  `inge_oper_nb_pre_prev` int(11) default NULL,
  `inge_oper_nb_pre_autr` int(11) default NULL,
  `inge_oper_nb_rea_corr` int(11) default NULL,
  `inge_oper_nb_rea_prev` int(11) default NULL,
  `inge_oper_nb_rea_autr` int(11) default NULL,
  `inge_oper_tot_heur_pre_corr` decimal(16,2) default NULL,
  `inge_oper_tot_heur_rea_corr` decimal(16,2) default NULL,
  `inge_oper_tot_heur_pre_prev` decimal(16,2) default NULL,
  `inge_oper_tot_heur_rea_prev` decimal(16,2) default NULL,
  `inge_oper_tot_heur_pre_autr` decimal(16,2) default NULL,
  `inge_oper_tot_heur_rea_autr` decimal(16,2) default NULL,
  `inge_oper_tot_cout_pre_corr` decimal(16,2) default NULL,
  `inge_oper_tot_cout_rea_corr` decimal(16,2) default NULL,
  `inge_oper_tot_cout_pre_prev` decimal(16,2) default NULL,
  `inge_oper_tot_cout_rea_prev` decimal(16,2) default NULL,
  `inge_oper_tot_cout_pre_autr` decimal(16,2) default NULL,
  `inge_oper_tot_cout_rea_autr` decimal(16,2) default NULL,
  `inge_oper_moy_jour_rea_corr` decimal(16,2) default NULL,
  `inge_oper_moy_jour_rea_prev` decimal(16,2) default NULL,
  `inge_oper_moy_jour_rea_autr` decimal(16,2) default NULL,
  `inge_oper_nb_ann` int(11) default NULL,
  `inge_eqip_nb_corr` int(11) default NULL,
  `inge_eqip_nb_prev` int(11) default NULL,
  `inge_oper_nb_act_corr` decimal(16,2) default NULL,
  `inge_oper_nb_act_prev` decimal(16,2) default NULL,
  `inge_oper_nb_act_autr` int(11) default NULL,
  `inge_oper_nb_act` decimal(16,2) default NULL,
  `inge_oper_tot_heur_act_pre_corr` decimal(16,2) default NULL,
  `inge_oper_tot_heur_act_pre_prev` decimal(16,2) default NULL,
  `inge_oper_tot_heur_act_pre_autr` decimal(16,2) default NULL,
  `inge_oper_tot_heur_act_pre` decimal(16,2) default NULL,
  `inge_oper_nb_esup` int(11) default NULL,
  `inge_oper_nb_ec` int(11) default NULL,
  `inge_oper_nb_eret` int(11) default NULL,
  `inge_eqip_nb` int(11) default NULL,
  `inge_eqip_nb_act` int(11) default NULL,
  `inge_loca_nb` int(11) default NULL,
  `inge_oper_tot_coutheur_pre_corr` decimal(16,2) default NULL,
  `inge_oper_tot_coutheur_rea_corr` decimal(16,2) default NULL,
  `inge_oper_tot_coutfour_pre_corr` decimal(16,2) default NULL,
  `inge_oper_tot_coutfour_rea_corr` decimal(16,2) default NULL,
  `inge_oper_tot_coutdivr_pre_corr` decimal(16,2) default NULL,
  `inge_oper_tot_coutdivr_rea_corr` decimal(16,2) default NULL,
  `inge_oper_tot_coutheur_pre_prev` decimal(16,2) default NULL,
  `inge_oper_tot_coutheur_rea_prev` decimal(16,2) default NULL,
  `inge_oper_tot_coutfour_pre_prev` decimal(16,2) default NULL,
  `inge_oper_tot_coutfour_rea_prev` decimal(16,2) default NULL,
  `inge_oper_tot_coutdivr_pre_prev` decimal(16,2) default NULL,
  `inge_oper_tot_coutdivr_rea_prev` decimal(16,2) default NULL,
  `inge_oper_tot_coutheur_pre_autr` decimal(16,2) default NULL,
  `inge_oper_tot_coutheur_rea_autr` decimal(16,2) default NULL,
  `inge_oper_tot_coutfour_pre_autr` decimal(16,2) default NULL,
  `inge_oper_tot_coutfour_rea_autr` decimal(16,2) default NULL,
  `inge_oper_tot_coutdivr_pre_autr` decimal(16,2) default NULL,
  `inge_oper_tot_coutdivr_rea_autr` decimal(16,2) default NULL,
  `inge_oper_med_jour_rea_corr` decimal(16,2) default NULL,
  `inge_oper_med_jour_rea_prev` decimal(16,2) default NULL,
  `inge_oper_med_jour_rea_autr` decimal(16,2) default NULL,
  `inge_oper_tot_heur_act_rea_corr` decimal(16,2) default NULL,
  `inge_oper_tot_heur_act_rea_prev` decimal(16,2) default NULL,
  `inge_oper_tot_heur_act_rea_autr` decimal(16,2) default NULL,
  `inge_oper_tot_heur_act_rea` decimal(16,2) default NULL,
  PRIMARY KEY  (`inge_seq`),
  KEY `inge_periode` (`inge_periode`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `indicateur_service`
--

DROP TABLE IF EXISTS `indicateur_service`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `indicateur_service` (
  `inse_seq` int(11) NOT NULL auto_increment,
  `inse_periode` datetime default NULL,
  `inse_serv_fk` int(11) default NULL,
  `inse_oper_nb_pre_corr` int(11) default NULL,
  `inse_oper_nb_pre_prev` int(11) default NULL,
  `inse_oper_nb_pre_autr` int(11) default NULL,
  `inse_oper_nb_rea_corr` int(11) default NULL,
  `inse_oper_nb_rea_prev` int(11) default NULL,
  `inse_oper_nb_rea_autr` int(11) default NULL,
  `inse_oper_tot_heur_pre_corr` decimal(16,2) default NULL,
  `inse_oper_tot_heur_rea_corr` decimal(16,2) default NULL,
  `inse_oper_tot_heur_pre_prev` decimal(16,2) default NULL,
  `inse_oper_tot_heur_rea_prev` decimal(16,2) default NULL,
  `inse_oper_tot_heur_pre_autr` decimal(16,2) default NULL,
  `inse_oper_tot_heur_rea_autr` decimal(16,2) default NULL,
  `inse_oper_tot_cout_pre_corr` decimal(16,2) default NULL,
  `inse_oper_tot_cout_rea_corr` decimal(16,2) default NULL,
  `inse_oper_tot_cout_pre_prev` decimal(16,2) default NULL,
  `inse_oper_tot_cout_rea_prev` decimal(16,2) default NULL,
  `inse_oper_tot_cout_pre_autr` decimal(16,2) default NULL,
  `inse_oper_tot_cout_rea_autr` decimal(16,2) default NULL,
  `inse_oper_moy_jour_rea_corr` decimal(16,2) default NULL,
  `inse_oper_moy_jour_rea_prev` decimal(16,2) default NULL,
  `inse_oper_moy_jour_rea_autr` decimal(16,2) default NULL,
  `inse_oper_nb_ann` int(11) default NULL,
  `inse_oper_nb_act_corr` decimal(16,2) default NULL,
  `inse_oper_nb_act_prev` decimal(16,2) default NULL,
  `inse_oper_nb_act_autr` int(11) default NULL,
  `inse_oper_nb_act` decimal(16,2) default NULL,
  `inse_oper_tot_heur_act_pre_corr` decimal(16,2) default NULL,
  `inse_oper_tot_heur_act_pre_prev` decimal(16,2) default NULL,
  `inse_oper_tot_heur_act_pre_autr` decimal(16,2) default NULL,
  `inse_oper_tot_heur_act_pre` decimal(16,2) default NULL,
  `inse_oper_nb_esup` int(11) default NULL,
  `inse_oper_nb_ec` int(11) default NULL,
  `inse_oper_nb_eret` int(11) default NULL,
  `inse_oper_tot_coutheur_pre_corr` decimal(16,2) default NULL,
  `inse_oper_tot_coutheur_rea_corr` decimal(16,2) default NULL,
  `inse_oper_tot_coutfour_pre_corr` decimal(16,2) default NULL,
  `inse_oper_tot_coutfour_rea_corr` decimal(16,2) default NULL,
  `inse_oper_tot_coutdivr_pre_corr` decimal(16,2) default NULL,
  `inse_oper_tot_coutdivr_rea_corr` decimal(16,2) default NULL,
  `inse_oper_tot_coutheur_pre_prev` decimal(16,2) default NULL,
  `inse_oper_tot_coutheur_rea_prev` decimal(16,2) default NULL,
  `inse_oper_tot_coutfour_pre_prev` decimal(16,2) default NULL,
  `inse_oper_tot_coutfour_rea_prev` decimal(16,2) default NULL,
  `inse_oper_tot_coutdivr_pre_prev` decimal(16,2) default NULL,
  `inse_oper_tot_coutdivr_rea_prev` decimal(16,2) default NULL,
  `inse_oper_tot_coutheur_pre_autr` decimal(16,2) default NULL,
  `inse_oper_tot_coutheur_rea_autr` decimal(16,2) default NULL,
  `inse_oper_tot_coutfour_pre_autr` decimal(16,2) default NULL,
  `inse_oper_tot_coutfour_rea_autr` decimal(16,2) default NULL,
  `inse_oper_tot_coutdivr_pre_autr` decimal(16,2) default NULL,
  `inse_oper_tot_coutdivr_rea_autr` decimal(16,2) default NULL,
  `inse_oper_med_jour_rea_corr` decimal(16,2) default NULL,
  `inse_oper_med_jour_rea_prev` decimal(16,2) default NULL,
  `inse_oper_med_jour_rea_autr` decimal(16,2) default NULL,
  `inse_oper_tot_heur_act_rea_corr` decimal(16,2) default NULL,
  `inse_oper_tot_heur_act_rea_prev` decimal(16,2) default NULL,
  `inse_oper_tot_heur_act_rea_autr` decimal(16,2) default NULL,
  `inse_oper_tot_heur_act_rea` decimal(16,2) default NULL,
  PRIMARY KEY  (`inse_seq`),
  KEY `inse_periode` (`inse_periode`),
  KEY `inse_serv_fk` (`inse_serv_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `indicateur_site`
--

DROP TABLE IF EXISTS `indicateur_site`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `indicateur_site` (
  `insi_seq` int(11) NOT NULL auto_increment,
  `insi_periode` datetime default NULL,
  `insi_sat_fk` int(11) default NULL,
  `insi_oper_nb_pre_corr` int(11) default NULL,
  `insi_oper_nb_pre_prev` int(11) default NULL,
  `insi_oper_nb_pre_autr` int(11) default NULL,
  `insi_oper_nb_rea_corr` int(11) default NULL,
  `insi_oper_nb_rea_prev` int(11) default NULL,
  `insi_oper_nb_rea_autr` int(11) default NULL,
  `insi_oper_tot_heur_pre_corr` decimal(16,2) default NULL,
  `insi_oper_tot_heur_rea_corr` decimal(16,2) default NULL,
  `insi_oper_tot_heur_pre_prev` decimal(16,2) default NULL,
  `insi_oper_tot_heur_rea_prev` decimal(16,2) default NULL,
  `insi_oper_tot_heur_pre_autr` decimal(16,2) default NULL,
  `insi_oper_tot_heur_rea_autr` decimal(16,2) default NULL,
  `insi_oper_tot_cout_pre_corr` decimal(16,2) default NULL,
  `insi_oper_tot_cout_rea_corr` decimal(16,2) default NULL,
  `insi_oper_tot_cout_pre_prev` decimal(16,2) default NULL,
  `insi_oper_tot_cout_rea_prev` decimal(16,2) default NULL,
  `insi_oper_tot_cout_pre_autr` decimal(16,2) default NULL,
  `insi_oper_tot_cout_rea_autr` decimal(16,2) default NULL,
  `insi_oper_moy_jour_rea_corr` decimal(16,2) default NULL,
  `insi_oper_moy_jour_rea_prev` decimal(16,2) default NULL,
  `insi_oper_moy_jour_rea_autr` decimal(16,2) default NULL,
  `insi_oper_nb_ann` int(11) default NULL,
  `insi_eqip_nb_corr` int(11) default NULL,
  `insi_eqip_nb_prev` int(11) default NULL,
  `insi_oper_nb_act_corr` decimal(16,2) default NULL,
  `insi_oper_nb_act_prev` decimal(16,2) default NULL,
  `insi_oper_nb_act_autr` int(11) default NULL,
  `insi_oper_nb_act` decimal(16,2) default NULL,
  `insi_oper_tot_heur_act_pre_corr` decimal(16,2) default NULL,
  `insi_oper_tot_heur_act_pre_prev` decimal(16,2) default NULL,
  `insi_oper_tot_heur_act_pre_autr` decimal(16,2) default NULL,
  `insi_oper_tot_heur_act_pre` decimal(16,2) default NULL,
  `insi_oper_nb_esup` int(11) default NULL,
  `insi_oper_nb_ec` int(11) default NULL,
  `insi_oper_nb_eret` int(11) default NULL,
  `insi_eqip_nb` int(11) default NULL,
  `insi_eqip_nb_act` int(11) default NULL,
  `insi_loca_nb` int(11) default NULL,
  `insi_oper_tot_coutheur_pre_corr` decimal(16,2) default NULL,
  `insi_oper_tot_coutheur_rea_corr` decimal(16,2) default NULL,
  `insi_oper_tot_coutfour_pre_corr` decimal(16,2) default NULL,
  `insi_oper_tot_coutfour_rea_corr` decimal(16,2) default NULL,
  `insi_oper_tot_coutdivr_pre_corr` decimal(16,2) default NULL,
  `insi_oper_tot_coutdivr_rea_corr` decimal(16,2) default NULL,
  `insi_oper_tot_coutheur_pre_prev` decimal(16,2) default NULL,
  `insi_oper_tot_coutheur_rea_prev` decimal(16,2) default NULL,
  `insi_oper_tot_coutfour_pre_prev` decimal(16,2) default NULL,
  `insi_oper_tot_coutfour_rea_prev` decimal(16,2) default NULL,
  `insi_oper_tot_coutdivr_pre_prev` decimal(16,2) default NULL,
  `insi_oper_tot_coutdivr_rea_prev` decimal(16,2) default NULL,
  `insi_oper_tot_coutheur_pre_autr` decimal(16,2) default NULL,
  `insi_oper_tot_coutheur_rea_autr` decimal(16,2) default NULL,
  `insi_oper_tot_coutfour_pre_autr` decimal(16,2) default NULL,
  `insi_oper_tot_coutfour_rea_autr` decimal(16,2) default NULL,
  `insi_oper_tot_coutdivr_pre_autr` decimal(16,2) default NULL,
  `insi_oper_tot_coutdivr_rea_autr` decimal(16,2) default NULL,
  `insi_oper_med_jour_rea_corr` decimal(16,2) default NULL,
  `insi_oper_med_jour_rea_prev` decimal(16,2) default NULL,
  `insi_oper_med_jour_rea_autr` decimal(16,2) default NULL,
  `insi_oper_tot_heur_act_rea_corr` decimal(16,2) default NULL,
  `insi_oper_tot_heur_act_rea_prev` decimal(16,2) default NULL,
  `insi_oper_tot_heur_act_rea_autr` decimal(16,2) default NULL,
  `insi_oper_tot_heur_act_rea` decimal(16,2) default NULL,
  PRIMARY KEY  (`insi_seq`),
  KEY `insi_periode` (`insi_periode`),
  KEY `insi_sat_fk` (`insi_sat_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `information`
--

DROP TABLE IF EXISTS `information`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `information` (
  `info_seq` int(11) NOT NULL auto_increment,
  `info_libelle` varchar(80) NOT NULL,
  `info_text` text NOT NULL,
  `info_fichier` varchar(100) NOT NULL,
  `info_lien` varchar(10) NOT NULL,
  `info_date` date NOT NULL default '0000-00-00',
  `info_ordre` int(3) NOT NULL default '0',
  `info_sat_fk` int(11) default NULL,
  `info_dolt_fk` int(11) default '0',
  `info_dols_fk` int(11) default '0',
  PRIMARY KEY  (`info_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `interval_periode`
--

DROP TABLE IF EXISTS `interval_periode`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `interval_periode` (
  `inpe_seq` int(11) NOT NULL auto_increment,
  `inpe_peri_fk` tinyint(3) unsigned default NULL,
  `inpe_lundi` tinyint(3) unsigned default NULL,
  `inpe_mardi` tinyint(3) unsigned default NULL,
  `inpe_mercredi` tinyint(3) unsigned default NULL,
  `inpe_jeudi` tinyint(3) unsigned default NULL,
  `inpe_vendredi` tinyint(3) unsigned default NULL,
  `inpe_samedi` tinyint(3) unsigned default NULL,
  `inpe_dimanche` tinyint(3) unsigned default NULL,
  `inpe_feries` tinyint(3) unsigned default NULL,
  `inpe_heuredebut` datetime default NULL,
  `inpe_heurefin` datetime default NULL,
  `inpe_mast_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`inpe_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `intervenant`
--

DROP TABLE IF EXISTS `intervenant`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `intervenant` (
  `inte_seq` int(11) NOT NULL auto_increment,
  `inte_initiale` varchar(8) default NULL,
  `inte_nom` varchar(25) default NULL,
  `inte_prenom` varchar(25) default NULL,
  `inte_matricule` varchar(15) default NULL,
  `inte_serv_fk` int(11) default NULL,
  `inte_qualification` varchar(20) default NULL,
  `inte_date_entree` date default NULL,
  `inte_couthoraire` decimal(16,2) default NULL,
  `inte_heuresem` decimal(16,2) default NULL,
  `inte_datmaj` datetime default NULL,
  `inte_couthoraire2` decimal(16,2) default NULL,
  `inte_trav_fk` int(11) default NULL,
  `inte_age_fk` int(11) default NULL,
  `inte_lundi` tinyint(3) unsigned default NULL,
  `inte_mardi` tinyint(3) unsigned default NULL,
  `inte_mercredi` tinyint(3) unsigned default NULL,
  `inte_jeudi` tinyint(3) unsigned default NULL,
  `inte_vendredi` tinyint(3) unsigned default NULL,
  `inte_samedi` tinyint(3) unsigned default NULL,
  `inte_dimanche` tinyint(3) unsigned default NULL,
  `inte_feries` tinyint(3) unsigned default NULL,
  `inte_habilitation` varchar(20) default NULL,
  `inte_actif` tinyint(3) unsigned default NULL,
  `inte_pot_lundi` decimal(16,2) default NULL,
  `inte_pot_mardi` decimal(16,2) default NULL,
  `inte_pot_mercredi` decimal(16,2) default NULL,
  `inte_pot_jeudi` decimal(16,2) default NULL,
  `inte_pot_vendredi` decimal(16,2) default NULL,
  `inte_pot_samedi` decimal(16,2) default NULL,
  `inte_pot_dimanche` decimal(16,2) default NULL,
  `inte_pot_semaine` decimal(16,2) default NULL,
  `inte_apmesure` varchar(15) default NULL,
  `inte_zus_maj_fk` int(11),
  PRIMARY KEY  (`inte_seq`),
  KEY `inte_initiale` (`inte_initiale`),
  KEY `inte_matricule` (`inte_matricule`),
  KEY `inte_serv_fk` (`inte_serv_fk`),
  KEY `inte_trav_fk` (`inte_trav_fk`),
  KEY `inte_age_fk` (`inte_age_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `intervenant_attr`
--

DROP TABLE IF EXISTS `intervenant_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `intervenant_attr` (
  `inte_att_seq` int(16) NOT NULL auto_increment,
  PRIMARY KEY  (`inte_att_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `ip_adresse`
--

DROP TABLE IF EXISTS `ip_adresse`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ip_adresse` (
  `ipad_seq` int(11) NOT NULL auto_increment,
  `ipad_ip_deb` varchar(45) default NULL,
  `ipad_ip_fin` varchar(45) default NULL,
  PRIMARY KEY  (`ipad_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `langue`
--

DROP TABLE IF EXISTS `langue`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `langue` (
  `lang_seq` int(11) NOT NULL auto_increment,
  `lang_libelle` varchar(30) default NULL,
  `lang_code` varchar(4) default NULL,
  PRIMARY KEY  (`lang_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_arti_arti_inter`
--
DROP TABLE IF EXISTS `lien_arti_arti_inter`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;

CREATE TABLE `lien_arti_arti_inter`
(
    `lar_seq` int(11) NOT NULL AUTO_INCREMENT,
    `lar_arti_pere_fk` int(11) ,
    `lar_arti_fils_fk` int(11) ,
  PRIMARY KEY ( `lar_seq` ),
  KEY `lar_arti_pere_fk` (`lar_arti_pere_fk`),
  KEY `lar_arti_fils_fk` (`lar_arti_fils_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;
--
-- Table structure for table `lien_arti_mag`
--

DROP TABLE IF EXISTS `lien_arti_mag`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_arti_mag` (
  `larm_seq` int(11) NOT NULL auto_increment,
  `larm_qte_stock` int(16) default NULL,
  `larm_qte_cde` int(16) default NULL,
  `larm_max_stock` int(16) default NULL,
  `larm_point_cde` int(16) default NULL,
  `larm_prix_unit` decimal(16,2) default NULL,
  `larm_val_stock` decimal(16,2) default NULL,
  `larm_qte_dem` int(16) default NULL,
  `larm_arti_fk` int(11) default NULL,
  `larm_mag_fk` int(11) default NULL,
  PRIMARY KEY  (`larm_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `lien_attr`
--

DROP TABLE IF EXISTS `lien_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_attr` (
  `latd_seq` int(11) NOT NULL auto_increment,
  `latd_attr_fk` int(11) NOT NULL default '0',
  `latd_xxx_fk` int(11) NOT NULL default '0',
  `latd_atlv_fk` int(11) default NULL,
  `latd_valeur` varchar(40) default NULL,
  PRIMARY KEY  (`latd_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `lien_comt_glos`
--

DROP TABLE IF EXISTS `lien_comt_glos`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_comt_glos
(
    `lcogl_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `lcogl_comt_fk` int(11) , 
    `lcogl_glos_fk` int(11) , 
    `lcogl_libelle` varchar(40) , 
    `lcogl_num_ordre` int(11) ,
   PRIMARY KEY ( `lcogl_seq` )  
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_crit_inpe`
--

DROP TABLE IF EXISTS `lien_crit_inpe`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_crit_inpe` (
  `lcrin_seq` int(11) NOT NULL auto_increment,
  `lcrin_crit_fk` int(11) default NULL,
  `lcrin_peri_fk` tinyint(3) unsigned default NULL,
  `lcrin_d1` int(11) default NULL,
  `lcrin_d1_unit_fk` tinyint(3) unsigned default NULL,
  `lcrin_d2` int(11) default NULL,
  `lcrin_d2_unit_fk` tinyint(3) unsigned default NULL,
  `lcrin_d3` int(11) default NULL,
  `lcrin_d3_unit_fk` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`lcrin_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_crit_peri`
--

DROP TABLE IF EXISTS `lien_crit_peri`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_crit_peri` (
  `lcrpe_seq` int(11) NOT NULL auto_increment,
  `lcrpe_crit_fk` int(11) default NULL,
  `lcrpe_peri_fk` tinyint(3) unsigned default NULL,
  `lcrpe_d1` int(11) default NULL,
  `lcrpe_d1_unit_fk` tinyint(3) unsigned default NULL,
  `lcrpe_d2` int(11) default NULL,
  `lcrpe_d2_unit_fk` tinyint(3) unsigned default NULL,
  `lcrpe_d3` int(11) default NULL,
  `lcrpe_d3_unit_fk` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`lcrpe_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_ddin_sat`
--

DROP TABLE IF EXISTS `lien_ddin_sat`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_ddin_sat` (
  `ldis_seq` int(11) NOT NULL auto_increment,
  `ldis_ddin_fk` int(11) NOT NULL default '0',
  `ldis_sat_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`ldis_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_ddlu_sat`
--

DROP TABLE IF EXISTS `lien_ddlu_sat`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_ddlu_sat` (
  `ldls_seq` int(11) NOT NULL auto_increment,
  `ldls_ddlu_fk` int(11) NOT NULL default '0',
  `ldls_sat_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`ldls_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_ddqs_ddqtl`
--

DROP TABLE IF EXISTS `lien_ddqs_ddqtl`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_ddqs_ddqtl` (
  `lqsl_seq` int(11) NOT NULL auto_increment,
  `lqsl_ddqs_fk` int(11) NOT NULL default '0',
  `lqsl_ddqtl_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`lqsl_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_decompos`
--

DROP TABLE IF EXISTS `lien_decompos`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_decompos` (
  `dec_seq` int(11) NOT NULL default '0',
  `dec_eqip_niv1` varchar(15) NOT NULL,
  `dec_qte` int(11) default '0',
  `dec_arti_niv2` varchar(10) default NULL,
  `dec_eqip_niv2` varchar(15) default NULL,
  UNIQUE KEY `dec_seq` (`dec_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_diversope_tmp_sfm`
--

DROP TABLE IF EXISTS `lien_diversope_tmp_sfm`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_diversope_tmp_sfm` (
  `ldop_seq` int(11) default '0',
  `ldop_libelle` varchar(35) default NULL,
  `ldop_montant` decimal(20,2) default '0.00',
  `ldop_montant2` decimal(20,2) default '0.00',
  `ldop_opar_fk` int(11) default '0',
  `ldop_oper_fk` int(11) default '0',
  `ldop_sfm_sess_id` varchar(40) NOT NULL,
  KEY `ldop_sfm_sess_id` (`ldop_sfm_sess_id`),
  KEY `ldop_seq` (`ldop_seq`),
  KEY `ldop_oper_fk` (`ldop_oper_fk`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_gdoc_arti`
--

DROP TABLE IF EXISTS `lien_gdoc_arti`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_gdoc_arti`
(
    `lgdarti_seq` int(11) NOT NULL AUTO_INCREMENT,
    `lgdarti_arti_fk` int(11) ,
    `lgdarti_gdoc_fk` int(11) ,
    `lgdarti_direct` tinyint(3) unsigned ,
   PRIMARY KEY ( `lgdarti_seq` ),
   KEY `lgdarti_arti_fk` (`lgdarti_arti_fk`),
   KEY  `lgdarti_gdoc_fk`(`lgdarti_gdoc_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;



--
-- Table structure for table `lien_dvrs_oper`
--

DROP TABLE IF EXISTS `lien_dvrs_oper`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_dvrs_oper` (
  `ldop_seq` int(11) NOT NULL auto_increment,
  `ldop_libelle` varchar(35) default NULL,
  `ldop_montant` decimal(20,2) default NULL,
  `ldop_oper_fk` int(11) default NULL,
  PRIMARY KEY  (`ldop_seq`),
  KEY `ldop_oper_fk` (`ldop_oper_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_entree_sortie_magasin`
--

DROP TABLE IF EXISTS lien_entree_sortie_magasin;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_entree_sortie_magasin
(
    `lim_seq` int(11) NOT NULL AUTO_INCREMENT,
    `lim_qte_prevue` int(11) ,
    `lim_qte_reel` int(11) ,
    `lim_prixart` decimal(16,2) ,
    `lim_prixtot` decimal(16,2) ,
    `lim_arti_fk` int(11) ,
    `lim_bem_fk` int(11) ,
    `lim_bsm_fk` int(11) ,
    `lim_mag_fk` int(11) ,
    `lim_qte_ressortie` int(11) ,
  PRIMARY KEY ( `lim_seq` ),
  KEY `lim_arti_fk` (`lim_arti_fk`),
  KEY `lim_bsm_fk` (`lim_bsm_fk`),
  KEY `lim_mag_fk` (`lim_mag_fk`),
  KEY `lim_bem_fk` (`lim_bem_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `lien_eqip_arti_decompos`
--

DROP TABLE IF EXISTS lien_eqip_arti_decompos;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_eqip_arti_decompos
(

    `lead_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `lead_qte` int(11) , 
    `lead_eqip_fk` int(11) , 
    `lead_arti_fk` int(11) , 
   PRIMARY KEY ( `lead_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_eqip_eqip_reseau`
--

DROP TABLE IF EXISTS lien_eqip_eqip_reseau;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_eqip_eqip_reseau
(

    `leer_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `leer_eqip_amont_fk` int(11) , 
    `leer_eqip_aval_fk` int(11) , 
   PRIMARY KEY ( `leer_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `lien_eqip_eqip_reseau_ind`
--

DROP TABLE IF EXISTS lien_eqip_eqip_reseau_ind;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_eqip_eqip_reseau_ind
(

    `leeri_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `leeri_eqip_amont_fk` int(11) , 
    `leeri_eqip_aval_fk` int(11) , 
    `leeri_session` varchar(32) , 
    `leeri_lien` tinyint(3) unsigned , 
   PRIMARY KEY ( `leeri_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `lien_eqip_loca_desserte`
--



DROP TABLE IF EXISTS lien_eqip_loca_desserte;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_eqip_loca_desserte
(

    `leld_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `leld_eqip_fk` int(11) , 
    `leld_loca_fk` int(11) , 
    `leld_tdes_fk` int(11) , 
   PRIMARY KEY ( `leld_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_eqip_loca_desserte_ind`
--

DROP TABLE IF EXISTS lien_eqip_loca_desserte_ind;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_eqip_loca_desserte_ind
(
    `leldi_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `leldi_eqip_fk` int(11) , 
    `leldi_loca_fk` int(11) , 
    `leldi_tdes_fk` int(11) , 
    `leldi_session` varchar(32) , 
    `leldi_lien` tinyint(3) unsigned , 
   PRIMARY KEY ( `leldi_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_fame_glos`
--

DROP TABLE IF EXISTS `lien_fame_glos`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_fame_glos` (
  `lfagl_seq` int(11) NOT NULL auto_increment,
  `lfagl_fame_fk` int(11) default NULL,
  `lfagl_glos_fk` int(11) default NULL,
  `lfagl_libelle` varchar(40) default NULL,
  `lfagl_num_ordre` int(11) default NULL,
  PRIMARY KEY  (`lfagl_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_form_fobl_foru`
--

DROP TABLE IF EXISTS `lien_form_fobl_foru`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_form_fobl_foru` (
  `lfff_seq` int(11) NOT NULL auto_increment,
  `lfff_form_fk` int(11) default NULL,
  `lfff_fobl_fk` int(11) default NULL,
  `lfff_origine` tinyint(3) unsigned default NULL,
  `lfff_foru_fk` int(11) default NULL,
  `lfff_fobl_visible` tinyint(3) unsigned default NULL,
  `lfff_foru_obligatoire` tinyint(3) unsigned default NULL,
  `lfff_foru_fige` tinyint(3) unsigned default NULL,
  `lfff_foru_visible` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`lfff_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_fournitope_tmp_sfm`
--

DROP TABLE IF EXISTS `lien_fournitope_tmp_sfm`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_fournitope_tmp_sfm` (
  `lfop_seq` int(11) default '0',
  `lfop_qteprevue` decimal(20,0) default '0',
  `lfop_qtereelle` decimal(20,0) default '0',
  `lfop_couttotalr` decimal(20,2) default '0.00',
  `lfop_couttotalp` decimal(20,2) default '0.00',
  `lfop_couttotalr2` decimal(20,2) default '0.00',
  `lfop_couttotalp2` decimal(20,2) default '0.00',
  `lfop_coeff` decimal(20,2) default '0.00',
  `lfop_arti_fk` int(11) default '0',
  `lfop_opar_fk` int(11) default '0',
  `lfop_oper_fk` int(11) default '0',
  `lfop_prco_fk` int(11) default '0',
  `lfop_eqpr_fk` int(11) default '0',
  `lfop_qtesortie` decimal(20,0) default '0',
  `lfop_tournee_fk` int(11) default NULL,
  `lfop_ltac_fk` int(11) default NULL,
  `lfop_sfm_sess_id` varchar(40) NOT NULL,
  KEY `lfop_sfm_sess_id` (`lfop_sfm_sess_id`),
  KEY `lfop_oper_fk` (`lfop_oper_fk`),
  KEY `lfop_seq` (`lfop_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_game_sat`
--

DROP TABLE IF EXISTS `lien_game_sat`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_game_sat` (
  `lgs_seq` int(11) NOT NULL auto_increment,
  `lgs_game_fk` int(11) default NULL,
  `lgs_sat_fk` int(11) default NULL,
  `lgs_eqip_fk` int(11) default NULL,
  `lgs_inte_fk` int(11) default NULL,
  `lgs_trav_fk` int(11) default NULL,
  `lgs_supe_fk` int(11) default NULL,
  `lgs_ctra_fk` int(11) default NULL,
  `lgs_crit_fk` int(11) default NULL,
  `lgs_facturable` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`lgs_seq`),
  KEY `lgs_game_fk` (`lgs_game_fk`),
  KEY `lgs_sat_fk` (`lgs_sat_fk`),
  KEY `lgs_eqip_fk` (`lgs_eqip_fk`),
  KEY `lgs_inte_fk` (`lgs_inte_fk`),
  KEY `lgs_trav_fk` (`lgs_trav_fk`),
  KEY `lgs_supe_fk` (`lgs_supe_fk`),
  KEY `lgs_ctra_fk` (`lgs_ctra_fk`),
  KEY `lgs_crit_fk` (`lgs_crit_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_gdoc_bat`
--

DROP TABLE IF EXISTS `lien_gdoc_bat`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_gdoc_bat
(

    `lgdbat_seq` int(11) NOT NULL AUTO_INCREMENT,
    `lgdbat_bat_fk` int(11) ,
    `lgdbat_gdoc_fk` int(11) ,
    `lgdbat_direct` tinyint(3) unsigned,
   PRIMARY KEY ( `lgdbat_seq` ),
   KEY `lgdbat_bat_fk` (`lgdbat_bat_fk`),
   KEY `lgdbat_gdoc_fk` (`lgdbat_gdoc_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;

--
-- Table structure for table `lien_gdoc_ctra`
--


DROP TABLE IF EXISTS `lien_gdoc_ctra`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_gdoc_ctra
(

    `lgdctra_seq` int(11) NOT NULL AUTO_INCREMENT,
    `lgdctra_ctra_fk` int(11) ,
    `lgdctra_gdoc_fk` int(11) ,
    `lgdctra_direct` tinyint(3) unsigned ,
   PRIMARY KEY ( `lgdctra_seq` ),
   KEY `lgdctra_ctra_fk` (`lgdctra_ctra_fk`),
   KEY `lgdctra_gdoc_fk` (`lgdctra_gdoc_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;

--
-- Table structure for table `lien_gdoc_dom`
--

DROP TABLE IF EXISTS `lien_gdoc_dom`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_gdoc_dom
(
    `lgddom_seq` int(11) NOT NULL AUTO_INCREMENT,
    `lgddom_dom_fk` int(11) ,
    `lgddom_gdoc_fk` int(11) ,
    `lgddom_direct` tinyint(3) unsigned ,
   PRIMARY KEY ( `lgddom_seq` ),
   KEY `lgddom_dom_fk` (`lgddom_dom_fk`),
   KEY `lgddom_gdoc_fk` (`lgddom_gdoc_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;


--
-- Table structure for table `lien_gdoc_eqip`
--


DROP TABLE IF EXISTS `lien_gdoc_eqip`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_gdoc_eqip
(
    `lgdeqip_seq` int(11) NOT NULL AUTO_INCREMENT,
    `lgdeqip_eqip_fk` int(11) ,
    `lgdeqip_gdoc_fk` int(11) ,
    `lgdeqip_direct` tinyint(3) unsigned ,
   PRIMARY KEY ( `lgdeqip_seq` ),
   KEY `lgdeqip_eqip_fk` (`lgdeqip_eqip_fk`),
   KEY `lgdeqip_gdoc_fk` (`lgdeqip_gdoc_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;

--
-- Table structure for table `lien_gdoc_fame`
--


DROP TABLE IF EXISTS `lien_gdoc_fame`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_gdoc_fame
(
    `lgdfame_seq` int(11) NOT NULL AUTO_INCREMENT,
    `lgdfame_fame_fk` int(11) ,
    `lgdfame_gdoc_fk` int(11) ,
    `lgdfame_direct` tinyint(3) unsigned ,
   PRIMARY KEY ( `lgdfame_seq` ),
   KEY `lgdfame_fame_fk` (`lgdfame_fame_fk`),
   KEY `lgdfame_gdoc_fk` (`lgdfame_gdoc_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;
--
-- Table structure for table `lien_gdoc_loca`
--

DROP TABLE IF EXISTS `lien_gdoc_loca`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_gdoc_loca
(
    `lgdloca_seq` int(11) NOT NULL AUTO_INCREMENT,
    `lgdloca_loca_fk` int(11) ,
    `lgdloca_gdoc_fk` int(11) ,
    `lgdloca_direct` tinyint(3) unsigned,
   PRIMARY KEY ( `lgdloca_seq` ),
   KEY `lgdloca_loca_fk` (`lgdloca_loca_fk`),
   KEY `lgdloca_gdoc_fk` (`lgdloca_gdoc_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;
--
-- Table structure for table `lien_gdoc_proj`
--


DROP TABLE IF EXISTS `lien_gdoc_proj`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_gdoc_proj
(
    `lgdproj_seq` int(11) NOT NULL AUTO_INCREMENT,
    `lgdproj_proj_fk` int(11) ,
    `lgdproj_gdoc_fk` int(11) ,
    `lgdproj_direct` tinyint(3) unsigned ,
   PRIMARY KEY ( `lgdproj_seq` ),
   KEY `lgdproj_proj_fk` (`lgdproj_proj_fk`),
   KEY `lgdproj_gdoc_fk` (`lgdproj_gdoc_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;
--
-- Table structure for table `lien_gdoc_sit`
--


DROP TABLE IF EXISTS `lien_gdoc_sit`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_gdoc_sit
(
    `lgdsit_seq` int(11) NOT NULL AUTO_INCREMENT,
    `lgdsit_sit_fk` int(11) ,
    `lgdsit_gdoc_fk` int(11) ,
    `lgdsit_direct` tinyint(3) unsigned,
   PRIMARY KEY ( `lgdsit_seq` ),
   KEY `lgdsit_sit_fk` (`lgdsit_sit_fk`),
   KEY `lgdsit_gdoc_fk` (`lgdsit_gdoc_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;
--
-- Table structure for table `lien_gdoc_zone`
--


DROP TABLE IF EXISTS `lien_gdoc_zone`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_gdoc_zone
(
    `lgdzone_seq` int(11) NOT NULL AUTO_INCREMENT,
    `lgdzone_zone_fk` int(11) ,
    `lgdzone_gdoc_fk` int(11) ,
    `lgdzone_direct` tinyint(3) unsigned,
   PRIMARY KEY ( `lgdzone_seq` ),
   KEY `lgdzone_zone_fk` (`lgdzone_zone_fk`),
   KEY `lgdzone_gdoc_fk` (`lgdzone_gdoc_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;
--
-- Table structure for table `lien_img_arti`
--

DROP TABLE IF EXISTS `lien_img_arti`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_img_arti`
(
    `limarti_seq` int(11) NOT NULL AUTO_INCREMENT,
    `limarti_arti_fk` int(11) ,
    `limarti_img_fk` int(11) ,
   PRIMARY KEY ( `limarti_seq` ),
   KEY `limarti_arti_fk` (`limarti_arti_fk`),
   KEY  `limarti_img_fk` (`limarti_img_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_img_bat`
--

DROP TABLE IF EXISTS `lien_img_bat`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_img_bat` (
     `limbat_seq` int(11) NOT NULL AUTO_INCREMENT,
    `limbat_bat_fk` int(11) ,
    `limbat_img_fk` int(11) ,
   PRIMARY KEY ( `limbat_seq` ),
  KEY `limbat_bat_fk` (`limbat_bat_fk`),
  KEY `limbat_img_fk` (`limbat_img_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_img_comp`
--

DROP TABLE IF EXISTS `lien_img_comp`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_img_comp` (
    `limcomp_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `limcomp_comp_fk` int(11) , 
    `limcomp_img_fk` int(11) , 
   PRIMARY KEY ( `limcomp_seq` ),
  KEY `limcomp_comp_fk` (`limcomp_comp_fk`),
  KEY `limcomp_img_fk` (`limcomp_img_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `lien_img_comt`
--

DROP TABLE IF EXISTS `lien_img_comt`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_img_comt` (
    `limcomt_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `limcomt_comt_fk` int(11) , 
    `limcomt_img_fk` int(11) , 
   PRIMARY KEY ( `limcomt_seq` ),
  KEY `limcomt_comt_fk` (`limcomt_comt_fk`),
  KEY `limcomt_img_fk` (`limcomt_img_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_img_dom`
--

DROP TABLE IF EXISTS `lien_img_dom`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_img_dom` (
    `limdom_seq` int(11) NOT NULL AUTO_INCREMENT,
    `limdom_dom_fk` int(11) ,
    `limdom_img_fk` int(11) ,
   PRIMARY KEY ( `limdom_seq` ),
  KEY `limdom_dom_fk` (`limdom_dom_fk`),
  KEY `limdom_img_fk` (`limdom_img_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `lien_img_eqip`
--

DROP TABLE IF EXISTS `lien_img_eqip`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_img_eqip` (
    `limeq_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `limeq_eqip_fk` int(11) , 
    `limeq_img_fk` int(11) , 
   PRIMARY KEY ( `limeq_seq` ),
  KEY `limeq_eqip_fk` (`limeq_eqip_fk`),
  KEY `limeq_img_fk` (`limeq_img_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `lien_img_fame`
--

DROP TABLE IF EXISTS `lien_img_fame`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_img_fame` (
     `limfame_seq` int(11) NOT NULL AUTO_INCREMENT,
    `limfame_fame_fk` int(11) ,
    `limfame_img_fk` int(11) ,
   PRIMARY KEY ( `limfame_seq` ),
  KEY `limfame_fame_fk` (`limfame_fame_fk`),
  KEY `limfame_img_fk` (`limfame_img_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `lien_img_loca`
--

DROP TABLE IF EXISTS `lien_img_loca`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_img_loca` (
    `limloca_seq` int(11) NOT NULL AUTO_INCREMENT,
    `limloca_loca_fk` int(11) ,
    `limloca_img_fk` int(11) ,
   PRIMARY KEY ( `limloca_seq` ),
  KEY `limloca_loca_fk` (`limloca_loca_fk`),
  KEY `limloca_img_fk` (`limloca_img_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `lien_img_sit`
--

DROP TABLE IF EXISTS `lien_img_sit`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_img_sit` (
    `limsit_seq` int(11) NOT NULL AUTO_INCREMENT,
    `limsit_sit_fk` int(11) ,
    `limsit_img_fk` int(11) ,
   PRIMARY KEY ( `limsit_seq` ),
  KEY `limsit_sit_fk` (`limsit_sit_fk`),
  KEY `limsit_img_fk` (`limsit_img_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_img_zone`
--

DROP TABLE IF EXISTS `lien_img_zone`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_img_zone` (
    `limzone_seq` int(11) NOT NULL AUTO_INCREMENT,
    `limzone_zone_fk` int(11) ,
    `limzone_img_fk` int(11) ,
   PRIMARY KEY ( `limzone_seq` ),
  KEY `limzone_zone_fk` (`limzone_zone_fk`),
  KEY `limzone_img_fk` (`limzone_img_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_inte_oper`
--

DROP TABLE IF EXISTS `lien_inte_oper`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_inte_oper` (
  `lino_seq` int(11) NOT NULL auto_increment,
  `lino_date` datetime default NULL,
  `lino_nbheure` decimal(16,2) default NULL,
  `lino_heuredebut` datetime default NULL,
  `lino_heurefin` datetime default NULL,
  `lino_coeff` decimal(16,2) default NULL,
  `lino_inte_fk` int(11) default NULL,
  `lino_oper_fk` int(11) default NULL,
  PRIMARY KEY  (`lino_seq`),
  KEY `lino_inte_fk` (`lino_inte_fk`),
  KEY `lino_oper_fk` (`lino_oper_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_intervope_tmp_sfm`
--

DROP TABLE IF EXISTS `lien_intervope_tmp_sfm`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_intervope_tmp_sfm` (
  `lino_seq` int(11) default '0',
  `lino_date` date default '0000-00-00',
  `lino_nbheure` decimal(20,2) default '0.00',
  `lino_heuredebut` time default '00:00:00',
  `lino_heurefin` time default '00:00:00',
  `lino_coeff` decimal(20,2) default '0.00',
  `lino_inte_fk` int(11) default '0',
  `lino_opar_fk` int(11) default '0',
  `lino_oper_fk` int(11) default '0',
  `lino_tournee_fk` int(11) default NULL,
  `lino_ltac_fk` int(11) default NULL,
  `lino_sfm_sess_id` varchar(40) NOT NULL,
  KEY `lino_sfm_sess_id` (`lino_sfm_sess_id`),
  KEY `lino_oper_fk` (`lino_oper_fk`),
  KEY `lino_seq` (`lino_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `lien_lcogl_moco`
--

DROP TABLE IF EXISTS `lien_lcogl_moco`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_lcogl_moco
(

    `llcmo_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `llcmo_moco_fk` int(11) , 
    `llcmo_lcogl_fk` int(11) , 
    `llcmo_valeur` varchar(40) , 
   PRIMARY KEY ( `llcmo_seq` )  
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_lfagl_moeq`
--

DROP TABLE IF EXISTS `lien_lfagl_moeq`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_lfagl_moeq` (
  `llfmo_seq` int(11) NOT NULL auto_increment,
  `llfmo_moeq_fk` int(11) default NULL,
  `llfmo_lfagl_fk` int(11) default NULL,
  `llfmo_valeur` varchar(40) default NULL,
  PRIMARY KEY  (`llfmo_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_mate_sreu`
--

DROP TABLE IF EXISTS `lien_mate_sreu`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_mate_sreu` (
  `lmsr_seq` int(11) NOT NULL auto_increment,
  `lmsr_sreu_fk` int(11) NOT NULL default '0',
  `lmsr_mate_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`lmsr_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_mescptope_tmp_sfm`
--

DROP TABLE IF EXISTS `lien_mescptope_tmp_sfm`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_mescptope_tmp_sfm` (
  `lmco_seq` int(11) default '0',
  `lmco_val_fin` decimal(20,2) default '0.00',
  `lmco_dat_fin` date default '0000-00-00',
  `lmco_mesu_fk` int(11) default '0',
  `lmco_opar_fk` int(11) default '0',
  `lmco_oper_fk` int(11) default '0',
  `lmco_prco_fk` int(11) default '0',
  `lmco_eqpr_fk` int(11) default '0',
  `lmco_rele_fk` int(11) default '0',
  `lmco_tournee_fk` int(11) default NULL,
  `lmco_ltac_fk` int(11) default NULL,
  `lmco_sfm_sess_id` varchar(40) default NULL,
  `lmco_sfm_val_releve` decimal(20,2) default '0.00',
  `lmco_sfm_date_releve` date default '0000-00-00',
  `lmco_ordre` int(11) default NULL,
  KEY `lmco_val_releve` (`lmco_sfm_val_releve`),
  KEY `lmco_oper_fk` (`lmco_oper_fk`),
  KEY `lmco_seq` (`lmco_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_mpmes_fapr`
--

DROP TABLE IF EXISTS `lien_mpmes_fapr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_mpmes_fapr
(
    `lmpfp_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `lmpfp_mpmes_fk` int(11) , 
    `lmpfp_fapr_fk` int(11) ,
   PRIMARY KEY ( `lmpfp_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


DROP TABLE IF EXISTS `lien_oper_eqpr_fuseffac`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_oper_eqpr_fuseffac
(
    `loef_seq` int(11) NOT NULL AUTO_INCREMENT,
    `loef_oper_fk` int(11) , 
    `loef_eqpr_fk` int(11) ,
   PRIMARY KEY ( `loef_seq` ),
  KEY `loef_oper_fk` (`loef_oper_fk`),
  KEY `loef_eqpr_fk` (`loef_eqpr_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;



--
-- Table structure for table `lien_pda_oper`
--


DROP TABLE IF EXISTS `lien_pda_oper`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_pda_oper
(
    `lpdo_seq` int(11) NOT NULL AUTO_INCREMENT,
    `lpdo_pda_fk` int(11) ,
    `lpdo_oper_fk` int(11) ,
    `lpdo_etat_transfert` tinyint(3) unsigned,
   PRIMARY KEY ( `lpdo_seq` ),
   KEY `lpdo_pda_fk` (`lpdo_pda_fk`),
   KEY `lpdo_oper_fk` (`lpdo_oper_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;


--
-- Table structure for table `lien_pmes_eqpr`
--

DROP TABLE IF EXISTS `lien_pmes_eqpr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE lien_pmes_eqpr
(
    `lpmpe_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `lpmpe_pmes_fk` int(11) , 
    `lpmpe_eqpr_fk` int(11) , 
   PRIMARY KEY ( `lpmpe_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_pram`
--

DROP TABLE IF EXISTS `lien_pram`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;

CREATE TABLE `lien_pram`
(
    `lafm_seq` int(11) NOT NULL AUTO_INCREMENT,
    `lafm_date` datetime ,
    `lafm_qtepram` decimal(16,2) ,
    `lafm_arti_fk` int(11) ,
    `lafm_cata_fk` int(11) ,
    `lafm_entr_fk` int(11) ,
    `lafm_mag_fk` int(11) ,
   PRIMARY KEY ( `lafm_seq` ),
  KEY `lafm_arti_fk` (`lafm_arti_fk`),
  KEY `lafm_cata_fk` (`lafm_cata_fk`),
  KEY `lafm_entr_fk` (`lafm_entr_fk`),
  KEY `lafm_mag_fk` (`lafm_mag_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;

SET character_set_client = @saved_cs_client;



--
-- Table structure for table `lien_prof_dolt`
--

DROP TABLE IF EXISTS `lien_prof_dolt`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_prof_dolt` (
  `lpdl_seq` int(11) NOT NULL auto_increment,
  `lpdl_prof_fk` int(11) default NULL,
  `lpdl_dolt_fk` int(11) default NULL,
  PRIMARY KEY  (`lpdl_seq`),
  KEY `lpdl_prof_fk` (`lpdl_prof_fk`),
  KEY `lpdl_dolt_fk` (`lpdl_dolt_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_prof_dom`
--

DROP TABLE IF EXISTS `lien_prof_dom`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_prof_dom` (
  `lprdo_seq` int(11) NOT NULL auto_increment,
  `lprdo_prof_fk` int(11) default NULL,
  `lprdo_dom_fk` int(11) default NULL,
  `lprdo_module_id` tinyint(3) unsigned default NULL,
  `lprdo_type` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`lprdo_seq`),
  KEY `lprdo_prof_fk` (`lprdo_prof_fk`),
  KEY `lprdo_dom_fk` (`lprdo_dom_fk`),
  KEY `lprdo_module_id` (`lprdo_module_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_prof_mag`
--

DROP TABLE IF EXISTS `lien_prof_mag`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_prof_mag`
(
    `lprma_seq` int(11) NOT NULL AUTO_INCREMENT,
    `lprma_prof_fk` int(11) ,
    `lprma_mag_fk` int(11) ,
    `lprma_type` tinyint(3) unsigned ,
  PRIMARY KEY ( `lprma_seq` ),
  KEY `lprma_prof_fk` (`lprma_prof_fk`),
  KEY `lprma_mag_fk` (`lprma_mag_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `lien_prof_sat`
--

DROP TABLE IF EXISTS `lien_prof_sat`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_prof_sat` (
  `lpst_seq` int(11) NOT NULL auto_increment,
  `lpst_prof_fk` int(11) default NULL,
  `lpst_sat_fk` int(11) default NULL,
  `lpst_type` tinyint(3) unsigned default NULL,
  `lpst_module_id` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`lpst_seq`),
  KEY `lpst_prof_fk` (`lpst_prof_fk`),
  KEY `lpst_sat_fk` (`lpst_sat_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_prof_sdom_dom`
--

DROP TABLE IF EXISTS `lien_prof_sdom_dom`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_prof_sdom_dom` (
  `lprsdo_seq` int(11) NOT NULL auto_increment,
  `lprsdo_prof_fk` int(11) default NULL,
  `lprsdo_sdom_fk` int(11) default NULL,
  `lprsdo_dom_fk` int(11) default NULL,
  `lprsdo_module_id` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`lprsdo_seq`),
  KEY `lrpsdo_prof_fk` (`lprsdo_prof_fk`),
  KEY `lprsdo_sdom_fk` (`lprsdo_sdom_fk`),
  KEY `lprsdo_dom_fk` (`lprsdo_dom_fk`),
  KEY `lprsdo_module_id` (`lprsdo_module_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_prse_sreu`
--

DROP TABLE IF EXISTS `lien_prse_sreu`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_prse_sreu` (
  `lpsr_seq` int(11) NOT NULL auto_increment,
  `lpsr_prse_fk` int(11) NOT NULL default '0',
  `lpsr_sreu_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`lpsr_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_sat_dom`
--

DROP TABLE IF EXISTS `lien_sat_dom`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_sat_dom` (
  `lsd_seq` int(11) NOT NULL auto_increment,
  `lsd_dom_fk` int(11) default NULL,
  `lsd_supe_fk` int(11) default NULL,
  `lsd_trav_fk` int(11) default NULL,
  `lsd_inte_fk` int(11) default NULL,
  `lsd_sat_fk` int(11) default NULL,
  PRIMARY KEY  (`lsd_seq`),
  KEY `lsd_dom_fk` (`lsd_dom_fk`),
  KEY `lsd_supe_fk` (`lsd_supe_fk`),
  KEY `lsd_trav_fk` (`lsd_trav_fk`),
  KEY `lsd_inte_fk` (`lsd_inte_fk`),
  KEY `lsd_sat_fk` (`lsd_sat_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_sdom_attr`
--

DROP TABLE IF EXISTS `lien_sdom_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_sdom_attr` (
  `lsda_seq` int(11) NOT NULL auto_increment,
  `lsda_sdom_fk` int(11) NOT NULL default '0',
  `lsda_attr_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`lsda_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_sreu_sreu_assoc`
--

DROP TABLE IF EXISTS `lien_sreu_sreu_assoc`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_sreu_sreu_assoc` (
  `lssa_seq` int(11) NOT NULL auto_increment,
  `lssa_sreu_fk` int(11) default NULL,
  `lssa_sreu_ass_fk` int(11) default NULL,
  PRIMARY KEY  (`lssa_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_zgrp_sloc`
--

DROP TABLE IF EXISTS `lien_zgrp_sloc`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_zgrp_sloc` (
  `lzgs_seq` int(11) NOT NULL auto_increment,
  `lzgs_sloc_fk` int(11) NOT NULL default '0',
  `lzgs_zgrp_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`lzgs_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_zus_bat`
--

DROP TABLE IF EXISTS `lien_zus_bat`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_zus_bat` (
  `lzbt_seq` int(11) NOT NULL auto_increment,
  `lzbt_zus_fk` int(11) NOT NULL default '0',
  `lzbt_bat_fk` int(11) NOT NULL default '0',
  `lzbt_type` int(11) default NULL,
  `lzbt_module_id` tinyint(4) default NULL,
  PRIMARY KEY  (`lzbt_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_zus_dolt`
--

DROP TABLE IF EXISTS `lien_zus_dolt`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_zus_dolt` (
  `lzdl_seq` int(11) NOT NULL auto_increment,
  `lzdl_zus_fk` int(11) NOT NULL default '0',
  `lzdl_dolt_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`lzdl_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_zus_sat`
--

DROP TABLE IF EXISTS `lien_zus_sat`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_zus_sat` (
  `lzst_seq` int(11) NOT NULL auto_increment,
  `lzst_zus_fk` int(11) NOT NULL default '0',
  `lzst_sat_fk` int(11) NOT NULL default '0',
  `lzst_type` int(11) NOT NULL default '0',
  `lzst_module_id` tinyint(4) NOT NULL default '0',
  PRIMARY KEY  (`lzst_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_zus_sreu`
--

DROP TABLE IF EXISTS `lien_zus_sreu`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_zus_sreu` (
  `lzsr_seq` int(11) NOT NULL auto_increment,
  `lzsr_zus_fk` int(11) NOT NULL default '0',
  `lzsr_sreu_fk` int(11) NOT NULL default '0',
  `lzsr_type` int(11) NOT NULL default '0',
  PRIMARY KEY  (`lzsr_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lien_zus_trav`
--

DROP TABLE IF EXISTS `lien_zus_trav`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lien_zus_trav` (
  `lizt_seq` int(11) NOT NULL auto_increment,
  `lizt_zus_fk` int(11) default NULL,
  `lizt_trav_fk` int(11) default NULL,
  `lizt_crw_cons_enab` tinyint(4) default NULL,
  `lizt_crw_cr_enab` tinyint(4) default NULL,
  `lizt_crw_supe_enab` tinyint(4) default NULL,
  PRIMARY KEY  (`lizt_seq`),
  KEY `lizt_zus_fk` (`lizt_zus_fk`,`lizt_trav_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lignmag`
--

DROP TABLE IF EXISTS `lignmag`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lignmag` (
  `lim_seq` int(11) NOT NULL auto_increment,
  `lim_qteresatt` int(11) default NULL,
  `lim_qtesorrec` int(11) default NULL,
  `lim_reference` varchar(15) default NULL,
  `lim_prixcalcule` float default NULL,
  `lim_prixcalcule2` float default NULL,
  `lim_res1` tinyint(3) default NULL,
  `lim_res2` tinyint(3) default NULL,
  `lim_res3` tinyint(3) default NULL,
  `lim_prixart` decimal(15,2) default NULL,
  `lim_prixtot` decimal(15,2) default NULL,
  `lim_prixart2` decimal(15,2) default NULL,
  `lim_prixtot2` decimal(15,2) default NULL,
  `lim_affa_fk` int(11) default NULL,
  `lim_arti_fk` int(11) default NULL,
  `lim_brm_fk` int(11) default NULL,
  `lim_bsm_fk` int(11) default NULL,
  `lim_mag_fk` int(11) default NULL,
  PRIMARY KEY  (`lim_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `local`
--

DROP TABLE IF EXISTS `local`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `local` (
  `loca_seq` int(11) NOT NULL auto_increment,
  `loca_sat_fk` int(11) default '0',
  `loca_bat_fk` int(11) NOT NULL default '0',
  `loca_zone_fk` int(11) NOT NULL default '0',
  `loca_serv_fk` int(11) default NULL,
  `loca_code` varchar(10) NOT NULL,
  `loca_libelle` varchar(30) NOT NULL,
  `loca_code2` varchar(10) default NULL,
  `loca_desserte` tinyint(3) unsigned default NULL,
  `loca_codeconca` varchar(33) default NULL,
  `loca_bdocument` tinyint(3) unsigned default NULL,
  `loca_code_barre` varchar(15) default NULL,
  `loca_cdbr_fk` int(11) default NULL,
  `loca_consiparti` text,
  `loca_surface_utile` decimal(16,2) default NULL,
  `loca_surface_totale` decimal(16,2) default NULL,
  `loca_perimetre` decimal(16,2) default NULL,
  `loca_hauteur` decimal(16,2) default NULL,
  `loca_volume` decimal(16,2) default NULL,
  `loca_afin_fk` int(11) default NULL,
  `loca_crit_fk` int(11) default NULL,
  `loca_ctra_fk` int(11) default NULL,
  `loca_tloca_fk` int(11) default NULL,
  `loca_communaute` tinyint(3) default NULL, 
  `loca_codeconca_decomp` varchar(255) , 
  `loca_loca_pere_fk` int(11) , 
  `loca_niveau` int(11),
  `loca_mod_surface_volume` tinyint(3) unsigned, 
  `loca_datmaj` datetime,
  `loca_zus_maj_fk` int(11), 
  PRIMARY KEY  (`loca_seq`),
  UNIQUE KEY `loca_seq` (`loca_seq`),
  KEY `loca_afin_fk` (`loca_afin_fk`),
  KEY `loca_crit_fk` (`loca_crit_fk`),
  KEY `loca_crit_fk_2` (`loca_crit_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `local_attr`
--

DROP TABLE IF EXISTS `local_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `local_attr` (
  `loca_att_seq` int(16) NOT NULL auto_increment,
  PRIMARY KEY  (`loca_att_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `locution_cr`
--

DROP TABLE IF EXISTS `locution_cr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `locution_cr` (
  `lccr_seq` int(11) NOT NULL auto_increment,
  `lccr_libelle` varchar(45) default NULL,
  `lccr_dom_fk` int(11),
  `lccr_acc_details` tinyint(3) unsigned,
  `lccr_acc_commcr` tinyint(3) unsigned,
  `lccr_order` int(11),
  `lccr_retrait` tinyint(3) unsigned,
  PRIMARY KEY  (`lccr_seq`),
  KEY `lccr_label` (`lccr_libelle`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `log_access`
--

DROP TABLE IF EXISTS `log_access`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `log_access` (
  `loga_seq` int(11) NOT NULL auto_increment,
  `loga_user_fk` int(11) default NULL,
  `loga_url` varchar(255) NOT NULL,
  `loga_get_vars` text NOT NULL,
  `loga_post_vars` text NOT NULL,
  `loga_session` varchar(50) NOT NULL,
  `loga_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`loga_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `log_erreur_indicateur`
--

DROP TABLE IF EXISTS `log_erreur_indicateur`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `log_erreur_indicateur` (
  `lein_seq` int(11) NOT NULL auto_increment,
  `lein_lmin_fk` int(11) default NULL,
  `lein_date` datetime default NULL,
  `lein_elem_fk` int(11) default NULL,
  `lein_elem_code` varchar(50) default NULL,
  `lein_error_msg` varchar(255) default NULL,
  PRIMARY KEY  (`lein_seq`),
  KEY `lein_lmin_fk` (`lein_lmin_fk`),
  KEY `lein_date` (`lein_date`),
  KEY `lein_elem_fk` (`lein_elem_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `log_mem_indicateur`
--

DROP TABLE IF EXISTS `log_mem_indicateur`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `log_mem_indicateur` (
  `lmin_seq` int(11) NOT NULL auto_increment,
  `lmin_date` datetime default NULL,
  `lmin_periode` datetime default NULL,
  `lmin_declinaison` tinyint(3) unsigned default NULL,
  `lmin_nb_elem` int(11) default NULL,
  `lmin_nb_error` int(11) default NULL,
  PRIMARY KEY  (`lmin_seq`),
  KEY `lmin_date` (`lmin_date`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `lst_tables`
--

DROP TABLE IF EXISTS `lst_tables`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `lst_tables` (
  `TAB_SEQ` int(11) NOT NULL auto_increment,
  `TAB_ZUS_SEQ` int(11) NOT NULL default '0',
  `TAB_NOM` varchar(200) NOT NULL,
  `TAB_DATE` timestamp NOT NULL default CURRENT_TIMESTAMP,
  PRIMARY KEY  (`TAB_SEQ`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `magasin`
--

DROP TABLE IF EXISTS `magasin`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `magasin` (
  `mag_seq` int(11) NOT NULL auto_increment,
  `mag_code` varchar(10) NOT NULL,
  `mag_libelle` varchar(30) NOT NULL,
  `mag_prefixe_bsm` varchar(4) NOT NULL,
  `mag_prefixe_bem` varchar(4) NOT NULL,
  `mag_num_debut_bsm` int(11) NOT NULL default '0',
  `mag_num_debut_bem` int(11) NOT NULL default '0',
  `mag_sat_fk` int(11)  default '0',
  PRIMARY KEY  (`mag_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `mail_body_part`
--

DROP TABLE IF EXISTS `mail_body_part`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `mail_body_part`
(
    `mbp_seq` int(11) NOT NULL AUTO_INCREMENT,
    `mbp_mmes_fk` int(11) ,
    `mbp_type` tinyint(3) unsigned ,
    `mbp_content_type` VARCHAR(50) DEFAULT NULL ,
    `mbp_attached_filename` varchar(255) ,
    `mbp_data` longblob ,
   PRIMARY KEY ( `mbp_seq` ),
  KEY `mbp_mmes_fk` (`mbp_mmes_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `mail_header`
--

DROP TABLE IF EXISTS `mail_header`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `mail_header`
(
    `mhead_seq` int(11) NOT NULL AUTO_INCREMENT,
    `mhead_mmes_fk` int(11) ,
    `mhead_name` varchar(255) ,
    `mhead_value` text ,
   PRIMARY KEY ( `mhead_seq` ),
  KEY `mhead_mmes_fk` (`mhead_mmes_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;



--
-- Table structure for table `mail_message`
--

DROP TABLE IF EXISTS `mail_message`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `mail_message`
(
    `mmes_seq` int(11) NOT NULL AUTO_INCREMENT,
    `mmes_mailbox` varchar(255) ,
    `mmes_recieved_date` datetime ,
    `mmes_subject` varchar(255) ,
    `mmes_body_content_type` VARCHAR(50) DEFAULT NULL,
    `mmes_body` text ,
   PRIMARY KEY ( `mmes_seq` )
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `mail_declencheur`
--

DROP TABLE IF EXISTS `mail_declencheur`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `mail_declencheur` (
  `mdec_seq` int(11) NOT NULL auto_increment,
  `mdec_module_id` int(11) NOT NULL default '0',
  `mdec_evenement_code` varchar(10) NOT NULL default '',
  `mdec_destinataire` varchar(255) NOT NULL default '',
  `mdec_confirm` tinyint(3) unsigned default NULL,
  `mdec_piece_jointe` tinyint(3) unsigned default NULL,
  `mdec_dest_fixe` varchar(255) default NULL,
  `mdec_requete` text,
  `mdec_requete_sec` text,
  `mdec_confirm_mail_vide` tinyint(3) default NULL,
  `mdec_mlfo_fk` int(11) NOT NULL,
  PRIMARY KEY  (`mdec_seq`),
  KEY `mdec_mlfo_fk` (`mdec_mlfo_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `mail_format`
--

DROP TABLE IF EXISTS mail_format;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE mail_format
(

    `mlfo_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `mlfo_code` varchar(45) , 
    `mlfo_commentaire` varchar(70) , 
    `mlfo_attb_fk` int(11) ,
    `mlfo_objet` varchar(90) , 
    `mlfo_message` text , 
    `mlfo_type` tinyint(3) unsigned , 
   PRIMARY KEY ( `mlfo_seq` ),
   KEY `mlfo_attb_fk` (`mlfo_attb_fk`)
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `materiel`
--

DROP TABLE IF EXISTS `materiel`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `materiel` (
  `mate_seq` int(11) NOT NULL auto_increment,
  `mate_libelle` varchar(15) NOT NULL,
  `mate_desc` text NOT NULL,
  `mate_quantite` int(11) NOT NULL default '0',
  `mate_chemin_photo` varchar(100) NOT NULL,
  `mate_pres_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`mate_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `mesure_compteur`
--

DROP TABLE IF EXISTS `mesure_compteur`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `mesure_compteur` (
  `mesu_seq` int(11) NOT NULL default '0',
  `mesu_code` varchar(15) NOT NULL,
  `mesu_comptmes` tinyint(3) NOT NULL default '0',
  `mesu_libelle` varchar(40) default NULL,
  `mesu_unite` varchar(5) default NULL,
  `mesu_valeur_fin` decimal(11,2) default NULL,
  `mesu_date_fin` date default NULL,
  `mesu_calcule` tinyint(1) NOT NULL default '0',
  `mesu_seuilbas` decimal(11,2) default NULL,
  `mesu_seuilhaut` decimal(11,2) default NULL,
  `mesu_consojour` decimal(11,2) default NULL,
  `mesu_consojmode` tinyint(1) default NULL,
  `mesu_valeur_nomin` decimal(11,2) default NULL,
  `mesu_bat_fk` int(11) NOT NULL default '0',
  `mesu_decimale` tinyint(3) default NULL,
  `mesu_type` char(2) NOT NULL,
  `mesu_infocomp` varchar(60) default NULL,
  `mesu_dom_fk` int(11) default NULL,
  `mesu_loca_fk` int(11) default NULL,
  `mesu_zone_fk` int(11) default NULL,
  `MESU_DOM_SEQ` int(11) NOT NULL default '0',
  `MESU_BAT_SEQ` int(11) NOT NULL default '0',
  `MESU_ZONE_SEQ` int(11) NOT NULL default '0',
  `MESU_LOCA_SEQ` int(11) NOT NULL default '0',
  PRIMARY KEY  (`mesu_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `mode_astreinte`
--

DROP TABLE IF EXISTS `mode_astreinte`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `mode_astreinte` (
  `mast_seq` int(11) NOT NULL auto_increment,
  `mast_libelle` varchar(20) default NULL,
  PRIMARY KEY  (`mast_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `modele_composant`
--

DROP TABLE IF EXISTS `modele_composant`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE modele_composant
(
    `moco_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `moco_comt_fk` int(11) , 
    `moco_libelle` varchar(40) , 
   PRIMARY KEY ( `moco_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `modele_equipement`
--

DROP TABLE IF EXISTS `modele_equipement`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `modele_equipement` (
  `moeq_seq` int(11) NOT NULL auto_increment,
  `moeq_fame_fk` int(11) default NULL,
  `moeq_libelle` varchar(40) default NULL,
  PRIMARY KEY  (`moeq_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Structure de la table `modele_point_mesure`
--

DROP TABLE IF EXISTS `modele_point_mesure`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE IF NOT EXISTS `modele_point_mesure` (
  `mpmes_seq` int(11) NOT NULL auto_increment,
  `mpmes_code` varchar(10) default NULL,
  `mpmes_libelle` varchar(40) default NULL,
  `mpmes_type` tinyint(3) unsigned default NULL,
  `mpmes_actif` tinyint(3) unsigned default NULL,
  `mpmes_decimale` tinyint(3) unsigned default NULL,
  `mpmes_unite` varchar(5) default NULL,
  `mpmes_calcule` tinyint(3) unsigned default NULL,
  `mpmes_formule_calcul` text,
  `mpmes_valeur_fin` decimal(16,4) default NULL,
  `mpmes_date_fin` datetime default NULL,
  `mpmes_seuilbas` decimal(16,4) default NULL,
  `mpmes_seuilhaut` decimal(16,4) default NULL,
  `mpmes_consojour` decimal(16,4) default NULL,
  `mpmes_consojmode` tinyint(3) unsigned default NULL,
  `mpmes_valeur_nomin` decimal(16,4) default NULL,
  `mpmes_dom_fk` int(11) default NULL,
  `mpmes_fame_fk` int(11) default NULL , 
  `mpmes_deploye` tinyint(3) unsigned,
  PRIMARY KEY  (`mpmes_seq`),
  KEY `mpmes_dom_fk` (`mpmes_dom_fk`),
  KEY `mpmes_fame_fk` (`mpmes_fame_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `ms_demenage_niv1`
--

DROP TABLE IF EXISTS `ms_demenage_niv1`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ms_demenage_niv1` (
  `msn1_seq` int(11) NOT NULL auto_increment,
  `msn1_libelle` varchar(70) NOT NULL,
  `msn1_ordre` tinyint(5) NOT NULL default '0',
  PRIMARY KEY  (`msn1_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `ms_demenage_niv2`
--

DROP TABLE IF EXISTS `ms_demenage_niv2`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ms_demenage_niv2` (
  `msn2_seq` int(11) NOT NULL auto_increment,
  `msn2_libelle` varchar(70) NOT NULL,
  `msn2_code` varchar(15) default NULL,
  `msn2_ordre` tinyint(5) default '0',
  `msn2_msn1_fk` int(11) default '0',
  PRIMARY KEY  (`msn2_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `ms_demenage_niv3`
--

DROP TABLE IF EXISTS `ms_demenage_niv3`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ms_demenage_niv3` (
  `msn3_seq` int(11) NOT NULL auto_increment,
  `msn3_libelle` varchar(70) NOT NULL,
  `msn3_code` varchar(15) default NULL,
  `msn3_ordre` tinyint(5) default '0',
  `msn3_msn2_fk` int(11) default '0',
  PRIMARY KEY  (`msn3_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `ms_demenagement`
--

DROP TABLE IF EXISTS `ms_demenagement`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ms_demenagement` (
  `msde_seq` int(11) NOT NULL auto_increment,
  `msde_loca_actuel_fk` int(11) default NULL,
  `msde_mobi_divers` text,
  `msde_mobi_mvt` tinyint(4) NOT NULL default '0',
  `msde_mobi_libelle` varchar(50) default NULL,
  `msde_mobi_nb` int(11) default '0',
  `msde_mobi_code` varchar(30) default NULL,
  `msde_loca_cible_fk` int(11) NOT NULL default '0',
  `msde_opge_fk` int(11) NOT NULL default '0',
  `msde_msn1_fk` int(11) default '0',
  `msde_msn2_fk` int(11) default '0',
  `msde_msn3_fk` int(11) default '0',
  `msde_loca_actuel_libelle` varchar(30) default NULL,
  `msde_loca_cible_libelle` varchar(30) default NULL,
  PRIMARY KEY  (`msde_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `ms_demenagement_pref`
--

DROP TABLE IF EXISTS `ms_demenagement_pref`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ms_demenagement_pref` (
  `mdep_seq` int(11) NOT NULL auto_increment,
  `mdep_local_libre` tinyint(4) NOT NULL default '0',
  `mdep_masque_batiment` tinyint(4) NOT NULL default '0',
  `mdep_libelle` varchar(40) default NULL,
  `mdep_detail` text,
  PRIMARY KEY  (`mdep_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `ms_doc_operation`
--

DROP TABLE IF EXISTS `ms_doc_operation`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ms_doc_operation` (
  `msdo_seq` int(11) NOT NULL auto_increment,
  `msdo_opge_fk` int(11) default NULL,
  `msdo_fichier` varchar(100) default NULL,
  `msdo_delete` tinyint(5) default '0',
  `msdo_sfm_sess_id` varchar(40) default NULL,
  PRIMARY KEY  (`msdo_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `ms_tel_filtre`
--

DROP TABLE IF EXISTS `ms_tel_filtre`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ms_tel_filtre` (
  `mstf_seq` int(11) NOT NULL auto_increment,
  `mstf_type` tinyint(4) NOT NULL default '0',
  `mstf_mste_fk` int(11) NOT NULL default '0',
  `mstf_dem_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`mstf_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `ms_telephonie`
--

DROP TABLE IF EXISTS `ms_telephonie`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ms_telephonie` (
  `mste_seq` int(11) NOT NULL auto_increment,
  `mste_num_benef` varchar(20) default NULL,
  `mste_nom_benef` varchar(30) default NULL,
  `mste_type_demande` tinyint(4) NOT NULL default '0',
  `mste_opge_fk` int(11) NOT NULL default '0',
  PRIMARY KEY  (`mste_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `ms_telephonie_pref`
--

DROP TABLE IF EXISTS `ms_telephonie_pref`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ms_telephonie_pref` (
  `mtep_seq` int(11) NOT NULL auto_increment,
  `mtep_filtrage` tinyint(4) NOT NULL default '0',
  `mtep_detail` text,
  PRIMARY KEY  (`mtep_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `operation`
--

DROP TABLE IF EXISTS `operation`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `operation` (
  `oper_seq` int(11) NOT NULL auto_increment,
  `oper_code` varchar(10) default NULL,
  `oper_libelle` varchar(40) default NULL,
  `oper_contenu` text,
  `oper_consiparti` text,
  `oper_cptrendu` text,
  `oper_rubcomp1` varchar(15) default NULL,
  `oper_rubcomp2` varchar(15) default NULL,
  `oper_demandeur` varchar(30) default NULL,
  `oper_dem_teldirect` varchar(15) default NULL,
  `oper_dem_email` varchar(60) default NULL,
  `oper_dateinscri` datetime default NULL,
  `oper_heureinscri` datetime default NULL,
  `oper_dateacquit` datetime default NULL,
  `oper_heureacquit` datetime default NULL,
  `oper_dateacquitlim` datetime default NULL,
  `oper_heureacquitlim` datetime default NULL,
  `oper_daterelance` datetime default NULL,
  `oper_heurelance` datetime default NULL,
  `oper_datedebutp` datetime default NULL,
  `oper_heurdebutp` datetime default NULL,
  `oper_datedebutr` datetime default NULL,
  `oper_heurdebutr` datetime default NULL,
  `oper_datedebutrlim` datetime default NULL,
  `oper_heurdebutrlim` datetime default NULL,
  `oper_datefinp` datetime default NULL,
  `oper_heurfinp` datetime default NULL,
  `oper_datefinr` datetime default NULL,
  `oper_heurfinr` datetime default NULL,
  `oper_datefinrlim` datetime default NULL,
  `oper_heurfinrlim` datetime default NULL,
  `oper_datesup` datetime default NULL,
  `oper_dateannul` datetime default NULL,
  `oper_dateexport` datetime default NULL,
  `oper_datestamp` datetime default NULL,
  `oper_dureepresp` decimal(16,2) default NULL,
  `oper_dureepresr` decimal(16,2) default NULL,
  `oper_dureejourp` int(11) default NULL,
  `oper_dureejourr` int(11) default NULL,
  `oper_zusinscrit` varchar(20) default NULL,
  `oper_zus_registered_ident` varchar(20) default NULL,
  `oper_zusrelance` varchar(20) default NULL,
  `oper_zusacquit` varchar(20) default NULL,
  `oper_zussup` varchar(20) default NULL,
  `oper_zusannul` varchar(20) default NULL,
  `oper_coutheuresp` decimal(16,2) default NULL,
  `oper_coutfournip` decimal(16,2) default NULL,
  `oper_coutdiversp` decimal(16,2) default NULL,
  `oper_coutp` decimal(16,2) default NULL,
  `oper_coutheuresr` decimal(16,2) default NULL,
  `oper_coutfournir` decimal(16,2) default NULL,
  `oper_coutdiversr` decimal(16,2) default NULL,
  `oper_coutr` decimal(16,2) default NULL,
  `oper_verte` tinyint(3) unsigned default NULL,
  `oper_eqpr_fk` int(11) default NULL,
  `oper_locpr_fk` int(11) default NULL,
  `oper_stopservic` tinyint(3) unsigned default NULL,
  `oper_imprime` tinyint(3) unsigned default NULL,
  `oper_refusee` tinyint(3) unsigned default NULL,
  `oper_hist_modif` text,
  `oper_bdocument` tinyint(3) unsigned default NULL,
  `oper_caltra` tinyint(3) unsigned default NULL,
  `oper_fusion` tinyint(3) unsigned default NULL,
  `oper_bsm_num` varchar(10) default NULL,
  `oper_disos` tinyint(3) unsigned default NULL,
  `oper_relance` tinyint(3) unsigned default NULL,
  `oper_trn_msg_cancel` varchar(255) default NULL,
  `oper_modduree_prev` tinyint(3) unsigned default NULL,
  `oper_modduree_reel` tinyint(3) unsigned default NULL,
  `oper_trn_regr_stoped` tinyint(3) unsigned default NULL,
  `oper_trn_transf_palm` tinyint(3) unsigned default NULL,
  `oper_tope_fk` int(11) default NULL,
  `oper_dom_fk` int(11) default NULL,
  `oper_eqip_fk` int(11) default NULL,
  `oper_sat_fk` int(11) default NULL,
  `oper_bat_fk` int(11) default NULL,
  `oper_zone_fk` int(11) default NULL,
  `oper_loca_fk` int(11) default NULL,
  `oper_crit_fk` int(11) default NULL,
  `oper_age_fk` int(11) default NULL,
  `oper_serv_fk` int(11) default NULL,
  `oper_dem_fk` int(11) default NULL,
  `oper_supe_fk` int(11) default NULL,
  `oper_trav_fk` int(11) default NULL,
  `oper_inte_fk` int(11) default NULL,
  `oper_zus_registered_fk` int(11) default NULL,
  `oper_avan_fk` int(11) default NULL,
  `oper_ctra_fk` int(11) default NULL,
  `oper_proj_fk` int(11) default NULL,
  `oper_genre_fk` int(11) default NULL,
  `oper_tdef_fk` int(11) default NULL,
  `oper_afin_fk` int(11) default NULL,
  `oper_facturable` tinyint(3) unsigned default NULL,
  `oper_game_fk` int(11) default NULL,
  `oper_datedebutpp` datetime default NULL,
  `oper_heurdebutpp` datetime default NULL,
  `oper_datefinpp` datetime default NULL,
  `oper_heurfinpp` datetime default NULL,
  `oper_nbheureindisp` decimal(16,2) default NULL,
  `oper_coef_global` decimal(16,2) default NULL,
  `oper_reglementaire` tinyint(3) unsigned,
  PRIMARY KEY  (`oper_seq`),
  KEY `oper_code` (`oper_code`),
  KEY `oper_libelle` (`oper_libelle`),
  KEY `oper_demandeur` (`oper_demandeur`),
  KEY `oper_dateinscri` (`oper_dateinscri`),
  KEY `oper_datestamp` (`oper_datestamp`),
  KEY `oper_eqpr_fk` (`oper_eqpr_fk`),
  KEY `oper_locpr_fk` (`oper_locpr_fk`),
  KEY `oper_tope_fk` (`oper_tope_fk`),
  KEY `oper_dom_fk` (`oper_dom_fk`),
  KEY `oper_eqip_fk` (`oper_eqip_fk`),
  KEY `oper_sat_fk` (`oper_sat_fk`),
  KEY `oper_bat_fk` (`oper_bat_fk`),
  KEY `oper_zone_fk` (`oper_zone_fk`),
  KEY `oper_loca_fk` (`oper_loca_fk`),
  KEY `oper_crit_fk` (`oper_crit_fk`),
  KEY `oper_age_fk` (`oper_age_fk`),
  KEY `oper_serv_fk` (`oper_serv_fk`),
  KEY `oper_dem_fk` (`oper_dem_fk`),
  KEY `oper_supe_fk` (`oper_supe_fk`),
  KEY `oper_trav_fk` (`oper_trav_fk`),
  KEY `oper_inte_fk` (`oper_inte_fk`),
  KEY `oper_zus_registered_fk` (`oper_zus_registered_fk`),
  KEY `oper_avan_fk` (`oper_avan_fk`),
  KEY `oper_cntrt_fk` (`oper_ctra_fk`),
  KEY `oper_genre_fk` (`oper_genre_fk`),
  KEY `oper_tdef_fk` (`oper_tdef_fk`),
  KEY `oper_afin_fk` (`oper_afin_fk`),
  KEY `oper_proj_fk` (`oper_proj_fk`),
  KEY `oper_game_fk` (`oper_game_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `operation_attr`
--

DROP TABLE IF EXISTS `operation_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `operation_attr` (
  `oper_att_seq` int(16) NOT NULL auto_increment,
  PRIMARY KEY  (`oper_att_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `operation_detail_tmp_sfm`
--

DROP TABLE IF EXISTS `operation_detail_tmp_sfm`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `operation_detail_tmp_sfm` (
  `odts_seq` int(11) default '0',
  `odts_sat_fk` int(11) default '0',
  `odts_sloc_sos_fk` int(11) default '0',
  `odts_sloc_crweb_fk` int(11) default NULL,
  `odts_dom_fk` int(11) default '0',
  `odts_bat_fk` int(11) default '0',
  `odts_zone_fk` int(11) default '0',
  `odts_loca_fk` int(11) default '0',
  `odts_avan_fk` int(11) default '0',
  `odts_trav_fk` int(11) default '0',
  `odts_game_fk` int(11) default '0',
  `odts_tdef_fk` int(11) default '0',
  `odts_eqip_fk` int(11) default '0',
  `odts_tope_fk` int(11) default '0',
  `odts_affa_fk` int(11) default '0',
  `odts_code` varchar(8) default NULL,
  `odts_libelle` varchar(40) default NULL,
  `odts_dateinscri` date default '0000-00-00',
  `odts_heureinscri` time default '00:00:00',
  `odts_zusinscrit` varchar(10) default NULL,
  `odts_demandeur` varchar(15) default NULL,
  `odts_dem_telephone` varchar(15) default NULL,
  `odts_dem_email` varchar(55) default NULL,
  `odts_rubcomp1` varchar(15) default NULL,
  `odts_rubcomp2` varchar(15) default NULL,
  `odts_zusacquit` varchar(10) default NULL,
  `odts_dateacquit` date default NULL,
  `odts_heurdebutp` time default '00:00:00',
  `odts_heurdebutr` time default '00:00:00',
  `odts_heurfinp` time default '00:00:00',
  `odts_heurfinr` time default '00:00:00',
  `odts_heureacquit` time default NULL,
  `odts_datedebutp` date default NULL,
  `odts_datedebutr` date default NULL,
  `odts_datefinp` date default NULL,
  `odts_datefinr` date default NULL,
  `odts_dureejourp` decimal(11,2) default NULL,
  `odts_dureejourr` decimal(11,2) default NULL,
  `odts_dureepresp` decimal(11,2) default NULL,
  `odts_dureepresr` decimal(11,2) default NULL,
  `odts_relance` int(11) default NULL,
  `odts_daterelance` date default NULL,
  `odts_heurelance` time default NULL,
  `odts_zusrelance` varchar(10) default NULL,
  `odts_consiparti` text,
  `odts_contenu` text,
  `odts_cptrendu` text,
  `odts_hist_modif` text,
  `odts_supe_fk` int(11) default '0',
  `odts_sfm_sess_id` varchar(40) default NULL,
  `odts_time_light` datetime default '0000-00-00 00:00:00',
  `odts_time_full` datetime default '0000-00-00 00:00:00',
  `odts_db_action` char(3) default NULL,
  UNIQUE KEY `odts_seq` (`odts_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `operation_etat_event`
--

DROP TABLE IF EXISTS `operation_etat_event`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `operation_etat_event` (
  `opee_seq` int(11) NOT NULL auto_increment,
  `opee_oper_fk` int(11) default NULL,
  `opee_etat` varchar(30) default NULL,
  PRIMARY KEY  (`opee_seq`),
  KEY `opee_oper_fk` (`opee_oper_fk`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `operation_generique`
--

--
-- Table structure for table `operation_sfm`
--

DROP TABLE IF EXISTS `operation_sfm`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `operation_sfm` (
  `oper_seq` int(11) NOT NULL auto_increment,
  `oper_libelle` varchar(40) default NULL,
  `oper_eqpr_seq` int(11) default NULL,
  `oper_dateinscri` date default NULL,
  `oper_heureinscri` datetime default NULL,
  `oper_datedebutp` date default NULL,
  `oper_datedebutr` date default NULL,
  `oper_dureejourp` tinyint(4) default NULL,
  `oper_datefinp` date default NULL,
  `oper_datefinr` date default NULL,
  `oper_dureepresp` double default NULL,
  `oper_dureepresr` double default NULL,
  `oper_contenu` text,
  `oper_demandeur` varchar(15) default NULL,
  `oper_stopservic` tinyint(4) default NULL,
  `oper_consiparti` text,
  `oper_cptrendu` text,
  `oper_dureejourr` tinyint(4) default NULL,
  `oper_cout` double default NULL,
  `oper_refusee` tinyint(4) default NULL,
  `oper_coutheures` double default NULL,
  `oper_coutfournir` double default NULL,
  `oper_coutdivers` double default NULL,
  `oper_coutfournip` double default NULL,
  `oper_coutp` double default NULL,
  `oper_bdocument` tinyint(4) default NULL,
  `oper_rubcomp1` varchar(15) default NULL,
  `oper_rubcomp2` varchar(15) default NULL,
  `oper_caltra` tinyint(4) default NULL,
  `oper_code` varchar(8) default NULL,
  `oper_fusion` tinyint(4) default NULL,
  `oper_affa_fk` int(11) default NULL,
  `oper_bat_fk` int(11) default NULL,
  `oper_dom_fk` int(11) default NULL,
  `oper_cout2` double default NULL,
  `oper_coutheures2` double default NULL,
  `oper_coutfournir2` double default NULL,
  `oper_coutdivers2` double default NULL,
  `oper_coutfournip2` double default NULL,
  `oper_coutp2` double default NULL,
  `oper_bsm_num` varchar(10) default NULL,
  `oper_zusinscrit` varchar(10) default NULL,
  `oper_dateacquit` date default NULL,
  `oper_heureacquit` datetime default NULL,
  `oper_zusacquit` varchar(10) default NULL,
  `oper_service` varchar(8) default NULL,
  `oper_imprime` tinyint(4) default NULL,
  `oper_disos` tinyint(4) default NULL,
  `oper_eqip_fk` int(11) default NULL,
  `oper_trav_fk` int(11) default NULL,
  `oper_avan_fk` int(11) default NULL,
  `oper_loca_fk` int(11) default NULL,
  `oper_supe_fk` int(11) default NULL,
  `oper_tdef_fk` int(11) default NULL,
  `oper_tope_fk` int(11) default NULL,
  `oper_zone_fk` int(11) default NULL,
  `oper_sat_fk` int(11) default NULL,
  `oper_heurdebutp` datetime default NULL,
  `oper_heurdebutr` datetime default NULL,
  `oper_heurfinp` datetime default NULL,
  `oper_heurfinr` datetime default NULL,
  `oper_datestamp` datetime default NULL,
  `oper_zusrelance` varchar(10) default NULL,
  `oper_daterelance` date default NULL,
  `oper_heurelance` datetime default NULL,
  `oper_relance` tinyint(4) default NULL,
  `oper_dem_teldirect` varchar(15) default NULL,
  `oper_dem_email` varchar(55) default NULL,
  `oper_exp_dat` datetime default NULL,
  `oper_hist_modif` text,
  `oper_sloc_fk` int(11) default NULL,
  `oper_modduree` tinyint(4) default NULL,
  `oper_dureepresp_aop` double default NULL,
  `oper_dureepresr_aop` double default NULL,
  `oper_modduree_reel` tinyint(4) default NULL,
  `oper_cout_aop` double default NULL,
  `oper_coutheures_aop` double default NULL,
  `oper_coutfournir_aop` double default NULL,
  `oper_coutdivers_aop` double default NULL,
  `oper_coutfournip_aop` double default NULL,
  `oper_coutp_aop` double default NULL,
  `oper_cout_aop2` double default NULL,
  `oper_coutheures_aop2` double default NULL,
  `oper_coutfournir_aop2` double default NULL,
  `oper_coutdivers_aop2` double default NULL,
  `oper_coutfournip_aop2` double default NULL,
  `oper_coutp_aop2` double default NULL,
  `oper_trn_msg_cancel` varchar(255) default NULL,
  `oper_trn_regr_stoped` tinyint(4) default NULL,
  `oper_trn_transf_palm` tinyint(4) default NULL,
  `oper_tope_seq` int(11) default NULL,
  `oper_avan_seq` int(11) default NULL,
  `oper_trav_seq` int(11) default NULL,
  `oper_supe_seq` int(11) default NULL,
  `oper_dom_seq` int(11) default NULL,
  `oper_eqip_seq` int(11) default NULL,
  `oper_bat_seq` int(11) default NULL,
  `oper_zone_seq` int(11) default NULL,
  `oper_loca_seq` int(11) default NULL,
  `oper_affa_seq` int(11) default NULL,
  `oper_tdef_seq` int(11) default NULL,
  PRIMARY KEY  (`oper_seq`),
  KEY `oper_eqip_fk` (`oper_eqip_fk`),
  KEY `oper_trav_fk` (`oper_trav_fk`),
  KEY `oper_avan_fk` (`oper_avan_fk`),
  KEY `oper_loca_fk` (`oper_loca_fk`),
  KEY `oper_supe_fk` (`oper_supe_fk`),
  KEY `oper_tdef_fk` (`oper_tdef_fk`),
  KEY `oper_tope_fk` (`oper_tope_fk`),
  KEY `oper_zone_fk` (`oper_zone_fk`),
  KEY `oper_sat_fk` (`oper_sat_fk`),
  KEY `oper_sloc_fk` (`oper_sloc_fk`),
  KEY `oper_dom_fk` (`oper_dom_fk`),
  KEY `oper_bat_fk` (`oper_bat_fk`),
  KEY `oper_affa_fk` (`oper_affa_fk`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `passage_param`
--

DROP TABLE IF EXISTS `passage_param`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `passage_param` (
  `papa_seq` int(11) NOT NULL auto_increment,
  `papa_text1` text,
  PRIMARY KEY  (`papa_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pcsdepot`
--

DROP TABLE IF EXISTS `pcsdepot`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pcsdepot` (
  `pcsd_seq` int(11) NOT NULL auto_increment,
  `pcsd_code` varchar(20) NOT NULL,
  PRIMARY KEY  (`pcsd_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pda`
--
DROP TABLE IF EXISTS `pda`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE pda
(

    `pda_seq` int(11) NOT NULL AUTO_INCREMENT,
    `pda_code` varchar(10) ,
    `pda_libelle` varchar(25) ,
    `pda_mode_auto` tinyint(3) unsigned ,
    `pda_trav_fk` int(11) ,
    `pda_supe_fk` int(11) ,
    `pda_recep_direct_di` tinyint(3) unsigned,
    `pda_email` varchar(45),
    `pda_sql` varchar(255),
   PRIMARY KEY ( `pda_seq` ),
   KEY `pda_code` (`pda_code`),
   KEY `pda_trav_fk` (`pda_trav_fk`),
   KEY `pda_supe_fk` (`pda_supe_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;


--
-- Table structure for table `photo_salle`
--

DROP TABLE IF EXISTS `photo_salle`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `photo_salle` (
  `phsa_seq` int(11) NOT NULL auto_increment,
  `phsa_sreu_fk` int(11) NOT NULL default '0',
  `phsa_chemin` varchar(100) NOT NULL,
  PRIMARY KEY  (`phsa_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Structure de la table `point_mesure`
--

DROP TABLE IF EXISTS `point_mesure`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE IF NOT EXISTS `point_mesure` (
  `pmes_seq` int(11) NOT NULL auto_increment,
  `pmes_code` varchar(20) default NULL,
  `pmes_libelle` varchar(40) default NULL,
  `pmes_type` tinyint(3) unsigned default NULL,
  `pmes_actif` tinyint(3) unsigned default NULL,
  `pmes_decimale` tinyint(3) unsigned default NULL,
  `pmes_unite` varchar(5) default NULL,
  `pmes_calcule` tinyint(3) unsigned default NULL,
  `pmes_formule_calcul` text,
  `pmes_valeur_fin` decimal(16,4) default NULL,
  `pmes_date_fin` datetime default NULL,
  `pmes_seuilbas` decimal(16,4) default NULL,
  `pmes_seuilhaut` decimal(16,4) default NULL,
  `pmes_consojour` decimal(16,4) default NULL,
  `pmes_consojmode` tinyint(3) unsigned default NULL,
  `pmes_valeur_nomin` decimal(16,4) default NULL,
  `pmes_dom_fk` int(11) default NULL,
  `pmes_eqip_fk` int(11) default NULL,
  `pmes_sat_fk` int(11) default NULL,
  `pmes_bat_fk` int(11) default NULL,
  `pmes_zone_fk` int(11) default NULL,
  `pmes_loca_fk` int(11) default NULL,
  `pmes_mpmes_fk` int(11) default NULL,
  `pmes_code_barre` varchar(15) default NULL,
  `pmes_datmaj` datetime,
  `pmes_zus_maj_fk` int(11),
  PRIMARY KEY  (`pmes_seq`),
  KEY `pmes_dom_fk` (`pmes_dom_fk`),
  KEY `pmes_eqip_fk` (`pmes_eqip_fk`),
  KEY `pmes_sat_fk` (`pmes_sat_fk`),
  KEY `pmes_bat_fk` (`pmes_bat_fk`),
  KEY `pmes_zone_fk` (`pmes_zone_fk`),
  KEY `pmes_loca_fk` (`pmes_loca_fk`),
  KEY `pmes_mpmes_fk` (`pmes_mpmes_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `potentiel_equipe_travaux`
--

DROP TABLE IF EXISTS `potentiel_equipe_travaux`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `potentiel_equipe_travaux` (
  `poeq_seq` int(11) NOT NULL auto_increment,
  `poeq_trav_fk` int(11) default NULL,
  `poeq_type` tinyint(3) unsigned default NULL,
  `poeq_periode` datetime default NULL,
  `poeq_valeur` decimal(16,2) default NULL,
  PRIMARY KEY  (`poeq_seq`),
  KEY `poeq_inte_fk` (`poeq_trav_fk`),
  KEY `poeq_type` (`poeq_type`),
  KEY `poeq_periode` (`poeq_periode`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `potentiel_intervenant`
--

DROP TABLE IF EXISTS `potentiel_intervenant`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `potentiel_intervenant` (
  `poin_seq` int(11) NOT NULL auto_increment,
  `poin_inte_fk` int(11) default NULL,
  `poin_type` tinyint(3) unsigned default NULL,
  `poin_periode` datetime default NULL,
  `poin_valeur` decimal(16,2) default NULL,
  PRIMARY KEY  (`poin_seq`),
  KEY `poin_inte_fk` (`poin_inte_fk`),
  KEY `poin_type` (`poin_type`),
  KEY `poin_periode` (`poin_periode`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_general`
--

DROP TABLE IF EXISTS `pref_general`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_general` (
  `prgn_seq` int(11) NOT NULL auto_increment,
  `prgn_nom_bd_pg_accueil` varchar(25) default NULL,
  `prgn_format_impress` varchar(8) default NULL,
  `prgn_gst_dcl_hor` tinyint(3) unsigned default NULL,
  `prgn_dcl_serv_client` tinyint(3) default NULL,
  `prgn_fuseau_hor_client` int(11) default NULL,
  `prgn_fuseau_hor_serv` int(11) default NULL,
  `prgn_sep_decimal` char(1) default NULL,
  `prgn_sep_millier_actif` tinyint(3) unsigned default NULL,
  `prgn_sep_millier` char(1) default NULL,
  `prgn_nb_page_navig` int(11) default NULL,
  `prgn_nb_record_page` int(11) default NULL,
  `prgn_theme_gst_user` tinyint(3) unsigned default NULL,
  `prgn_logo_accueil` varchar(120) default NULL,
  `prgn_photo_accueil` varchar(120) default NULL,
  `prgn_logo_menu` varchar(120) default NULL,
  `prgn_titre_portail` varchar(50) default NULL,
  `prgn_concept_portail` varchar(10) default NULL,
  `prgn_theme_portail` varchar(10) default NULL,
  `prgn_taille_textesimple` tinyint(3) unsigned default NULL,
  `prgn_est_multilingue` tinyint(3) unsigned default NULL,
  `prgn_multilingue_1_lang_fk` int(11) default NULL,
  `prgn_multilingue_2_lang_fk` int(11) default NULL,
  `prgn_mdp_nb_min_caractere` int(11) default NULL,
  `prgn_mdp_est_alphanum` tinyint(3) unsigned default NULL,
  `prgn_mdp_est_blocable` tinyint(3) unsigned default NULL,
  `prgn_mdp_nb_tentative` int(11) default NULL,
  `prgn_modeacc_par_site` tinyint(3) unsigned default NULL,
  `prgn_modeacc_defaut_sat_fk` int(11) default NULL,
  `prgn_date_format_txt` tinyint(3) unsigned default NULL,
  `prgn_date_format_num` tinyint(3) unsigned default NULL,
  `prgn_date_avec_ordinaux` tinyint(3) unsigned default NULL,
  `prgn_date_sep_num` char(1) default NULL,
  `prgn_date_sep_heure` char(1) default NULL,
  `prgn_date_aff_12h` tinyint(3) unsigned default NULL,
  `prgn_codif_ot_type_codif` tinyint(3) unsigned default NULL,
  `prgn_codif_ot_num_ordre` tinyint(3) unsigned default NULL,
  `prgn_codif_ot_prefixe` varchar(4) default NULL,
  `prgn_codif_ot_num_debut` int(11) default NULL,
  `prgn_codif_ot_slibre_type` tinyint(3) unsigned default NULL,
  `prgn_ope_annul_est_active` tinyint(3) unsigned default NULL,
  `prgn_ope_annul_envoi_supe` tinyint(3) unsigned default NULL,
  `prgn_ope_annul_envoi_archi` tinyint(3) unsigned default NULL,
  `prgn_ope_annul_recon_ope` tinyint(3) unsigned default NULL,
  `prgn_int_rub_dem_oblig` tinyint(3) unsigned default NULL,
  `prgn_int_rub_dom_lib_oblig` tinyint(3) unsigned default NULL,
  `prgn_int_rub_detail_oblig` tinyint(3) unsigned default NULL,
  `prgn_int_rub_bat_oblig` tinyint(3) unsigned default NULL,
  `prgn_int_rub_zone_oblig` tinyint(3) unsigned default NULL,
  `prgn_int_rub_local_oblig` tinyint(3) unsigned default NULL,
  `prgn_int_rub_libre1_oblig` tinyint(3) unsigned default NULL,
  `prgn_int_rub_libre2_oblig` tinyint(3) unsigned default NULL,
  `prgn_ope_gst_acquittement` tinyint(3) unsigned default NULL,
  `prgn_ope_acquittement_type` tinyint(3) unsigned default NULL,
  `prgn_ope_acquittement_auto_cr` tinyint(3) unsigned default NULL,
  `prgn_ope_gst_duree_global` tinyint(3) unsigned default NULL,
  `prgn_ope_maj_etav_en_cours` int(11) default NULL,
  `prgn_ope_maj_etav_tous_les` int(11) default NULL,
  `prgn_ope_impr_detail_nb_car` int(11) default NULL,
  `prgn_ope_impr_detail_nb_cr` int(11) default NULL,
  `prgn_ope_impr_masq_duree_prev` tinyint(3) unsigned default NULL,
  `prgn_ope_impr_nb_inter` int(11) default NULL,
  `prgn_int_rub_libre1_vis` tinyint(3) unsigned default NULL,
  `prgn_int_rub_libre1_fige` tinyint(3) unsigned default NULL,
  `prgn_int_rub_libre2_vis` tinyint(3) unsigned default NULL,
  `prgn_int_rub_libre2_fige` tinyint(3) unsigned default NULL,
  `prgn_int_rub_consiparti_vis` tinyint(3) unsigned default NULL,
  `prgn_int_rub_date_acqtt_vis` tinyint(3) unsigned default NULL,
  `prgn_int_rub_date_acqtt_fige` tinyint(3) unsigned default NULL,
  `prgn_int_rub_heure_acqtt_vis` tinyint(3) unsigned default NULL,
  `prgn_int_rub_heure_acqtt_fige` tinyint(3) unsigned default NULL,
  `prgn_int_rub_date_deb_int_vis` tinyint(3) unsigned default NULL,
  `prgn_int_rub_date_deb_int_fige` tinyint(3) unsigned default NULL,
  `prgn_int_rub_heure_deb_int_vis` tinyint(3) unsigned default NULL,
  `prgn_int_rub_heur_deb_int_fige` tinyint(3) unsigned default NULL,
  `prgn_int_rub_date_fin_rep_vis` tinyint(3) unsigned default NULL,
  `prgn_int_rub_date_fin_rep_fige` tinyint(3) unsigned default NULL,
  `prgn_int_rub_heure_fin_rep_vis` tinyint(3) unsigned default NULL,
  `prgn_int_rub_heur_fin_rep_fige` tinyint(3) unsigned default NULL,
  `prgn_int_datep_dans_period` tinyint(3) unsigned default NULL,
  `prgn_int_dater_dans_period` tinyint(3) unsigned default NULL,
  `prgn_int_datep_fin_dans_period` tinyint(3) unsigned default NULL,
  `prgn_int_dater_fin_dans_period` tinyint(3) unsigned default NULL,
  `prgn_int_datep_deb_dans_period` tinyint(3) unsigned default NULL,
  `prgn_int_dater_deb_dans_period` tinyint(3) unsigned default NULL,
  `prgn_int_datep_toutes_period` tinyint(3) unsigned default NULL,
  `prgn_int_dater_toutes_period` tinyint(3) unsigned default NULL,
  `prgn_di_rub_dem_oblig` tinyint(3) unsigned default NULL,
  `prgn_di_rub_dom_lib_oblig` tinyint(3) unsigned default NULL,
  `prgn_di_rub_detail_oblig` tinyint(3) unsigned default NULL,
  `prgn_di_rub_bat_oblig` tinyint(3) unsigned default NULL,
  `prgn_di_rub_zone_oblig` tinyint(3) unsigned default NULL,
  `prgn_di_rub_local_oblig` tinyint(3) unsigned default NULL,
  `prgn_di_rub_libre1_oblig` tinyint(3) unsigned default NULL,
  `prgn_di_rub_libre2_oblig` tinyint(3) unsigned default NULL,
  `prgn_di_gst_detail_gamme_type` tinyint(3) unsigned default NULL,
  `prgn_di_gst_detail_game_fk` int(11) default NULL,
  `prgn_di_type_lst_aide` tinyint(3) unsigned default NULL,
  `prgn_di_autorise_relance` tinyint(3) unsigned default NULL,
  `prgn_di_gst_redon_actif` tinyint(3) unsigned default NULL,
  `prgn_di_gst_redon_prox_geo` tinyint(3) unsigned default NULL,
  `prgn_di_gst_redon_tmps_type` tinyint(3) unsigned default NULL,
  `prgn_di_gst_redon_tmps_heure` int(11) default NULL,
  `prgn_di_dem_rech_rub` varchar(30) default NULL,
  `prgn_di_dem_rech_type` tinyint(3) unsigned default NULL,
  `prgn_di_loc_rech_rub` varchar(30) default NULL,
  `prgn_di_loc_rech_type` tinyint(3) unsigned default NULL,
  `prgn_di_info_dem_serv` tinyint(3) unsigned default NULL,
  `prgn_di_info_dem_civilite` tinyint(3) unsigned default NULL,
  `prgn_di_info_dem_nom` tinyint(3) unsigned default NULL,
  `prgn_di_info_dem_prenom` tinyint(3) unsigned default NULL,
  `prgn_di_info_dem_nomcod` tinyint(3) unsigned default NULL,
  `prgn_di_info_dem_fonction` tinyint(3) unsigned default NULL,
  `prgn_di_info_dem_teldirect` tinyint(3) unsigned default NULL,
  `prgn_di_info_dem_email` tinyint(3) unsigned default NULL,
  `prgn_di_info_dem_bat` tinyint(3) unsigned default NULL,
  `prgn_di_info_dem_zone` tinyint(3) unsigned default NULL,
  `prgn_di_info_dem_loca` tinyint(3) unsigned default NULL,
  `prgn_di_info_dem_attr` tinyint(3) unsigned default NULL,
  `prgn_di_grp_domaine` tinyint(3) unsigned default NULL,
  `prgn_dip_gst_grp` tinyint(3) unsigned default NULL,
  `prgn_dip_gst_criticite` tinyint(3) unsigned default NULL,
  `prgn_cr_rub_dem_oblig` tinyint(3) unsigned default NULL,
  `prgn_cr_rub_dom_lib_oblig` tinyint(3) unsigned default NULL,
  `prgn_cr_rub_detail_oblig` tinyint(3) unsigned default NULL,
  `prgn_cr_rub_eqip_oblig` tinyint(3) unsigned default NULL,
  `prgn_cr_rub_tdef_oblig` tinyint(3) unsigned default NULL,
  `prgn_cr_rub_zone_oblig` tinyint(3) unsigned default NULL,
  `prgn_cr_rub_local_oblig` tinyint(3) unsigned default NULL,
  `prgn_cr_rub_bat_oblig` tinyint(3) unsigned default NULL,
  `prgn_cr_rub_libre1_oblig` tinyint(3) unsigned default NULL,
  `prgn_cr_rub_libre2_oblig` tinyint(3) unsigned default NULL,
  `prgn_cr_gst_temps_inter` tinyint(3) unsigned default NULL,
  `prgn_cr_indic_heure_dans_comm` tinyint(3) unsigned default NULL,
  `prgn_gst_grp_att_sat` tinyint(3) unsigned default NULL,
  `prgn_gst_grp_att_bat` tinyint(3) unsigned default NULL,
  `prgn_gst_grp_att_entr` tinyint(3) unsigned default NULL,
  `prgn_gst_grp_att_zone` tinyint(3) unsigned default NULL,
  `prgn_gst_grp_att_loca` tinyint(3) unsigned default NULL,
  `prgn_gst_grp_att_dom` tinyint(3) unsigned default NULL,
  `prgn_gst_grp_att_cont` tinyint(3) unsigned default NULL,
  `prgn_gst_grp_att_eqip` tinyint(3) unsigned default NULL,
  `prgn_gst_grp_att_fame` tinyint(3) unsigned default NULL,
  `prgn_gst_grp_att_game` tinyint(3) unsigned default NULL,
  `prgn_sre_info_resa` varchar(30) default NULL,
  `prgn_sre_interv_plg` decimal(3,2) default NULL,
  `prgn_sre_taille_ligne` tinyint(3) unsigned default NULL,
  `prgn_sre_gst_jour_ferie` tinyint(3) unsigned default NULL,
  `prgn_sre_planning_mois` tinyint(3) unsigned default NULL,
  `prgn_sre_planning_defaut` tinyint(3) unsigned default NULL,
  `prgn_sre_gst_type_resa` tinyint(3) unsigned default NULL,
  `prgn_sre_interconnexion_acv` tinyint(3) unsigned default NULL,
  `prgn_sre_dem_rech_type` tinyint(3) unsigned default NULL,
  `prgn_sre_dem_rech_rub` varchar(30) default NULL,
  `prgn_sre_role_participant` tinyint(3) unsigned default NULL,
  `prgn_sre_bloquer_annulation` tinyint(3) unsigned default NULL,
  `prgn_sre_nb_jour_blocage_ann` tinyint(3) unsigned default NULL,
  `prgn_sre_liaison_outlook` tinyint(3) unsigned default NULL,
  `prgn_sre_rub_libelle_oblig` tinyint(3) unsigned default NULL,
  `prgn_sre_rub_dem_oblig` tinyint(3) unsigned default NULL,
  `prgn_sre_rub_tel_dem_oblig` tinyint(3) unsigned default NULL,
  `prgn_sre_rub_email_dem_oblig` tinyint(3) unsigned default NULL,
  `prgn_sre_rub_add_presta_vis` tinyint(3) unsigned default NULL,
  `prgn_sre_rub_add_eqip_vis` tinyint(3) unsigned default NULL,
  `prgn_sre_gst_grp_salle` tinyint(3) unsigned default NULL,
  `prgn_sre_gst_reservation` tinyint(3) unsigned default NULL,
  `prgn_sre_gst_jour_semaine` tinyint(3) unsigned default NULL,
  `prgn_sre_gst_configuration` tinyint(3) unsigned default NULL,
  `prgn_acv_temps_rafrch_liste` int(11) default NULL,
  `prgn_acv_dem_rech_rub` varchar(30) default NULL,
  `prgn_acv_dem_rech_type` tinyint(3) unsigned default NULL,
  `prgn_acv_type_dem_defaut` tinyint(3) unsigned default NULL,
  `prgn_acv_type_visit_defaut` tinyint(3) unsigned default NULL,
  `prgn_acv_type_soc_visit_defaut` tinyint(3) unsigned default NULL,
  `prgn_acv_rub_dem_oblig` tinyint(3) unsigned default NULL,
  `prgn_acv_rub_tel_dem_oblig` tinyint(3) unsigned default NULL,
  `prgn_acv_rub_heure_rdv_oblig` tinyint(3) unsigned default NULL,
  `prgn_acv_rub_bat_oblig` tinyint(3) unsigned default NULL,
  `prgn_acv_rub_zone_oblig` tinyint(3) unsigned default NULL,
  `prgn_acv_rub_loca_oblig` tinyint(3) unsigned default NULL,
  `prgn_acv_gst_vst_confirm_type` tinyint(3) unsigned default NULL,
  `prgn_acv_gst_vst_confirm_badge` tinyint(3) unsigned default NULL,
  `prgn_acv_gst_vst_present_id` tinyint(3) unsigned default NULL,
  `prgn_acv_gst_vst_id_liste_type` tinyint(3) unsigned default NULL,
  `prgn_acv_gst_vst_gst_sortie` tinyint(3) unsigned default NULL,
  `prgn_ann_gst_grp` tinyint(3) unsigned default NULL,
  `prgn_ann_gst_photo` tinyint(3) unsigned default NULL,
  `prgn_ann_import_perso` tinyint(3) unsigned default NULL,
  `prgn_rst_delai_news` tinyint(3) unsigned default NULL,
  `prgn_ann_ext_gst_grp` tinyint(3) unsigned default NULL,
  `prgn_ann_conf_zgrp` tinyint(3) unsigned default NULL,
  `prgn_rst_stat_jour_heure_deb` tinyint(3) unsigned default NULL,
  `prgn_rst_stat_jour_heure_fin` tinyint(3) unsigned default NULL,
  `prgn_inf_delai_news` tinyint(3) unsigned default NULL,
  `prgn_inf_stat_jour_heure_deb` tinyint(3) unsigned default NULL,
  `prgn_inf_stat_jour_heure_fin` tinyint(3) unsigned default NULL,
  `prgn_spl_stat_jour_heure_deb` tinyint(3) unsigned default NULL,
  `prgn_spl_stat_jour_heure_fin` tinyint(3) unsigned default NULL,
  `prgn_gdoc_gst_grp_theme_biblio` tinyint(3) unsigned default NULL,
  `prgn_gdoc_stat_jour_heure_deb` tinyint(3) unsigned default NULL,
  `prgn_gdoc_stat_jour_heure_fin` tinyint(3) unsigned default NULL,
  `prgn_acv_stat_jour_heure_deb` tinyint(3) unsigned default NULL,
  `prgn_acv_stat_jour_heure_fin` tinyint(3) unsigned default NULL,
  `prgn_ann_stat_jour_heure_deb` tinyint(3) unsigned default NULL,
  `prgn_ann_stat_jour_heure_fin` tinyint(3) unsigned default NULL,
  `prgn_acv_type_badge_defaut` tinyint(3) unsigned default NULL,
  `prgn_monnaie_code` varchar(4) default NULL,
  `prgn_monnaie_libelle` varchar(35) default NULL,
  `prgn_monnaie_pos` tinyint(3) unsigned default NULL,
  `prgn_dip_criticite_act` tinyint(3) unsigned default NULL,
  `prgn_ope_gst_supervision` tinyint(3) unsigned default NULL,
  `prgn_ope_gst_supe_nb_jour` int(11) default NULL,
  `prgn_ope_gst_supervision_dmd` tinyint(3) unsigned default NULL,
  `prgn_ope_gst_afin_type` tinyint(3) unsigned default NULL,
  `prgn_ope_gst_afin_pers_num` varchar(5) default NULL,
  `prgn_dip_gst_criticite_regles` tinyint(3) unsigned default NULL,
  `prgn_dip_gst_crit_pers_num` varchar(5) default NULL,
  `prgn_dip_gst_crit_ctra_crit` tinyint(3) unsigned default NULL,
  `prgn_gda_site_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_adrsite_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_adrbat_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_gestsurface_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_surf1_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_surf2_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_unic_base` tinyint(3) unsigned default NULL,
  `prgn_gda_unic_bat` tinyint(3) unsigned default NULL,
  `prgn_gda_num_serie_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_code_cneh_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_quatity_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_statut_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_consigne_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_model_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_societe_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_fabricant_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_fournisseur_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_installateur_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_mainteneur_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_sav_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_gest_date_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_date_achat_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_date_install_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_date_mise_exp_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_date_debut_gara_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_date_fin_gara_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_date_delai_garantie` tinyint(3) unsigned default NULL,
  `prgn_gda_decompo_eqip_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_reseau_vis` tinyint(3) unsigned default NULL,
  `prgn_gda_notion_dessert_vis` tinyint(3) unsigned default NULL,
  `prgn_ope_gst_supdmd_nb_jour` int(11) default NULL,
  `prgn_gst_grp_att_oper` tinyint(3) unsigned default NULL,
  `prgn_gst_grp_att_dem` tinyint(3) unsigned default NULL,
  `prgn_gst_grp_att_serv` tinyint(3) unsigned default NULL,
  `prgn_agence_act` tinyint(3) unsigned default NULL,
  `prgn_affect_finan_act` tinyint(3) unsigned default NULL,
  `prgn_ope_loca_consiparti_integ` tinyint(3) unsigned default NULL,
  `prgn_ope_eqip_consiparti_integ` tinyint(3) unsigned default NULL,
  `prgn_di_plan_datedeb` tinyint(3) unsigned default NULL,
  `prgn_di_plan_datedeb_nbjour` int(11) default NULL,
  `prgn_di_plan_datedeb_avec_crit` tinyint(3) unsigned default NULL,
  `prgn_choix_langue` tinyint(3) unsigned default NULL,
  `prgn_dip_gst_crit_calcul` tinyint(3) unsigned default NULL,
  `prgn_dip_gst_afin` tinyint(3) unsigned default NULL,
  `prgn_dip_gst_afin_regles` tinyint(3) unsigned default NULL,
  `prgn_dip_gst_afin_pers_num` varchar(10) default NULL,
  `prgn_dip_gst_afin_calcul` tinyint(3) unsigned default NULL,
  `prgn_di_defaut_trav_fk` int(11) default NULL,
  `prgn_di_defaut_tope_fk` int(11) default NULL,
  `prgn_affect_trav_inte_prio_1` tinyint(3) unsigned default NULL,
  `prgn_affect_trav_inte_prio_2` tinyint(3) unsigned default NULL,
  `prgn_affect_trav_inte_prio_3` tinyint(3) unsigned default NULL,
  `prgn_chx_eqip` tinyint(3) unsigned default NULL,
  `prgn_chx_eqip_type` tinyint(3) unsigned default NULL,
  `prgn_indi_mem_delai` int(11) default NULL,
  `prgn_indi_mem_dateproch` datetime default NULL,
  `prgn_indi_mem_heureproch` datetime default NULL,
  `prgn_indi_thread_actif` varchar(32) default NULL,
  `prgn_affect_trav_astr_act` tinyint(3) unsigned default NULL,
  `prgn_affect_trav_astr_delai` int(11) default NULL,
  `prgn_gst_grp_att_ctra` tinyint(3) unsigned default NULL,
  `prgn_mdp_modif_user` tinyint(3) unsigned default NULL,
  `prgn_mdp_gst_oublie` tinyint(3) unsigned default NULL,
  `prgn_mdp_demande_compte` tinyint(3) unsigned default NULL,
  `prgn_mdp_compte_avec_dem` tinyint(3) unsigned default NULL,
  `prgn_mdp_compte_localise` tinyint(3) unsigned default NULL,
  `prgn_mdp_expiration_user` int(11) default NULL,
  `prgn_mdp_expiration_admin` int(11) default NULL,
  `prgn_mdp_email_admin` varchar(60) default NULL,
  `prgn_extranet_md5` tinyint(3) unsigned default NULL,
  `prgn_extranet_url` varchar(255) default NULL,
  `prgn_extranet_ip` tinyint(3) unsigned default NULL,
  `prgn_mdp_gestion_cookie` tinyint(3) unsigned default NULL,
  `prgn_mdp_duree_vie_cookie` int(11) default NULL ,
  `prgn_gst_grp_att_trav` tinyint(3) unsigned default NULL, 
  `prgn_gst_grp_att_inte` tinyint(3) unsigned default NULL,
  `prgn_prev_saisonnalite_vis` tinyint(3) unsigned , 
  `prgn_prev_type_prog_vis` tinyint(3) unsigned , 
  `prgn_prev_niveau_maint_vis` tinyint(3) unsigned , 
  `prgn_prev_creat_prog_mois_glis` int(11) ,
  `prgn_prev_creat_prog_lim_ctra` tinyint(3) unsigned ,
  `prgn_prev_fusefface_auto` tinyint(3) unsigned ,
  `prgn_prev_fusion_effacement` tinyint(3) unsigned , 
  `prgn_prev_fusefface_pourcent` int(11) , 
  `prgn_prev_mod_fixe_prog_calcul` tinyint(3) unsigned , 
  `prgn_prev_mod_pourcent` int(11) , 
  `prgn_prev_cpt_pourcent` int(11) , 
  `prgn_prev_ctrl_coher_cpt` tinyint(3) unsigned , 
  `prgn_prev_ope_cons_cr_prec` tinyint(3) unsigned , 
  `prgn_prev_majfam_blocage` tinyint(3) unsigned , 
  `prgn_prev_majfam_contenu` tinyint(3) unsigned , 
  `prgn_prev_majfam_durpres` tinyint(3) unsigned , 
  `prgn_prev_majfam_durglob` tinyint(3) unsigned , 
  `prgn_prev_majfam_travsupe` tinyint(3) unsigned , 
  `prgn_prev_majfam_frequence` tinyint(3) unsigned , 
  `prgn_prev_majfam_modcal` tinyint(3) unsigned , 
  `prgn_prev_majfam_saisonnalite` tinyint(3) unsigned , 
  `prgn_prev_majfam_fusefface` tinyint(3) unsigned , 
  `prgn_prev_majfam_doc` tinyint(3) unsigned , 
  `prgn_prev_ope_contenu_act` tinyint(3) unsigned , 
  `prgn_prev_ope_consiparti_act` tinyint(3) unsigned , 
  `prgn_prev_ope_dureeprev_act` tinyint(3) unsigned , 
  `prgn_prev_ope_trav_act` tinyint(3) unsigned , 
  `prgn_prev_ope_fourniture_act` tinyint(3) unsigned , 
  `prgn_prev_ope_mescpt_act` tinyint(3) unsigned , 
  `prgn_prev_pec_consigne_fam` tinyint(3) unsigned , 
  `prgn_prev_majtrav_prevequip` tinyint(3) unsigned , 
  `prgn_prev_affect_rsc_prio_1` int(11) , 
  `prgn_prev_affect_rsc_prio_2` int(11) ,
  `prgn_prev_affect_rsc_prio_3` int(11) , 
  `prgn_prev_decal_regle_pourcent` int(11) , 
  `prgn_prev_decal_norm_pourcent` int(11) , 
  `prgn_crmail_connexion` tinyint(3) unsigned , 
  `prgn_crmail_user` varchar(20) , 
  `prgn_crmail_form_uniq` tinyint(3) unsigned , 
  `prgn_form_crmail_fk` int(11),
  `prgn_cr_pdm_tolerance` tinyint(3) unsigned , 
  `prgn_cr_pdm_apmesure` tinyint(3) unsigned,
  `prgn_prev_gst_type_prog` tinyint(3) unsigned , 
  `prgn_prev_gst_type_prog_rub` tinyint(3) unsigned , 
  `prgn_prev_gst_niveau_maint` tinyint(3) unsigned , 
  `prgn_prev_gst_niveau_maint_rub` tinyint(3) unsigned , 
  `prgn_prev_affect_rsc_prio_4` tinyint(3) unsigned, 
  `prgn_crmail_url` varchar(255),
  `prgn_gda_decompo_loca_vis` tinyint(3) unsigned,
  `prgn_civ_gst_conf` tinyint(3) unsigned , 
  `prgn_civ_info_email_oblig` tinyint(3) unsigned , 
  `prgn_civ_info_dest_zuser` tinyint(3) unsigned , 
  `prgn_civ_info_dest_ann` tinyint(3) unsigned , 
  `prgn_civ_info_dest_ext` tinyint(3) unsigned , 
  `prgn_civ_info_dest_libre` tinyint(3) unsigned , 
  `prgn_civ_info_gst_retour` tinyint(3) unsigned , 
  `prgn_civ_tech_email_oblig` tinyint(3) unsigned , 
  `prgn_civ_tech_dest_zuser` tinyint(3) unsigned , 
  `prgn_civ_tech_dest_ann` tinyint(3) unsigned , 
  `prgn_civ_tech_dest_ext` tinyint(3) unsigned , 
  `prgn_civ_tech_dest_libre` tinyint(3) unsigned , 
  `prgn_civ_tech_gst_retour` tinyint(3) unsigned , 
  `prgn_civ_act_email_oblig` tinyint(3) unsigned , 
  `prgn_civ_act_dest_zuser` tinyint(3) unsigned , 
  `prgn_civ_act_dest_ann` tinyint(3) unsigned , 
  `prgn_civ_act_dest_ext` tinyint(3) unsigned , 
  `prgn_civ_act_dest_libre` tinyint(3) unsigned , 
  `prgn_civ_act_gst_retour` tinyint(3) unsigned, 
  `prgn_gst_grp_att_comp` tinyint(3) unsigned , 
  `prgn_gst_grp_att_comt` tinyint(3) unsigned , 
  `prgn_gda_comp_statut_vis` tinyint(3) unsigned , 
  `prgn_gda_comp_modele_vis` tinyint(3) unsigned , 
  `prgn_gda_comp_entr_vis` tinyint(3) unsigned , 
  `prgn_gda_comp_entr_fab_vis` tinyint(3) unsigned , 
  `prgn_gda_comp_entr_four_vis` tinyint(3) unsigned , 
  `prgn_gda_comp_entr_inst_vis` tinyint(3) unsigned , 
  `prgn_gda_comp_date_vis` tinyint(3) unsigned , 
  `prgn_gda_comp_date_inst_vis` tinyint(3) unsigned , 
  `prgn_gda_comp_date_debgar_vis` tinyint(3) unsigned , 
  `prgn_gda_comp_date_fingar_vis` tinyint(3) unsigned , 
  `prgn_gda_comp_vis` tinyint(3) unsigned , 
  `prgn_gda_comp_cons` tinyint(3) unsigned,
  `prgn_info_sit_adr_vis` tinyint(3) unsigned ,
  `prgn_info_sit_cp_vis` tinyint(3) unsigned ,
  `prgn_info_sit_ville_vis` tinyint(3) unsigned ,
  `prgn_info_sit_region_vis` tinyint(3) unsigned ,
  `prgn_info_sit_pays_vis` tinyint(3) unsigned ,
  `prgn_info_sit_surf_totale_vis` tinyint(3) unsigned ,
  `prgn_info_sit_surf_utile_vis` tinyint(3) unsigned ,
  `prgn_info_sit_nb_usgr_vis` tinyint(3) unsigned ,
  `prgn_info_sit_ctra_vis` tinyint(3) unsigned ,
  `prgn_info_sit_astreinte_vis` tinyint(3) unsigned ,
  `prgn_info_sit_attr_vis` tinyint(3) unsigned ,
  `prgn_info_sit_photo_vis` tinyint(3) unsigned ,
  `prgn_info_bat_adr_vis` tinyint(3) unsigned ,
  `prgn_info_bat_cp_vis` tinyint(3) unsigned ,
  `prgn_info_bat_ville_vis` tinyint(3) unsigned ,
  `prgn_info_bat_region_vis` tinyint(3) unsigned ,
  `prgn_info_bat_pays_vis` tinyint(3) unsigned ,
  `prgn_info_bat_surf_totale_vis` tinyint(3) unsigned ,
  `prgn_info_bat_surf_utile_vis` tinyint(3) unsigned ,
  `prgn_info_bat_nb_usgr_vis` tinyint(3) unsigned ,
  `prgn_info_bat_ctra_vis` tinyint(3) unsigned ,
  `prgn_info_bat_attr_vis` tinyint(3) unsigned ,
  `prgn_info_bat_photo_vis` tinyint(3) unsigned ,
  `prgn_info_zone_adr_vis` tinyint(3) unsigned ,
  `prgn_info_zone_surf_utile_vis` tinyint(3) unsigned ,
  `prgn_info_zone_attr_vis` tinyint(3) unsigned ,
  `prgn_info_zone_photo_vis` tinyint(3) unsigned ,
  `prgn_info_loca_adr_vis` tinyint(3) unsigned ,
  `prgn_info_loca_serv_vis` tinyint(3) unsigned ,
  `prgn_info_loca_ctra_vis` tinyint(3) unsigned ,
  `prgn_info_loca_surf_totale_vis` tinyint(3) unsigned ,
  `prgn_info_loca_surf_utile_vis` tinyint(3) unsigned ,
  `prgn_info_loca_perimetre_vis` tinyint(3) unsigned ,
  `prgn_info_loca_hauteur_vis` tinyint(3) unsigned ,
  `prgn_info_loca_volume_vis` tinyint(3) unsigned ,
  `prgn_info_loca_attr_vis` tinyint(3) unsigned ,
  `prgn_info_loca_photo_vis` tinyint(3) unsigned ,
  `prgn_info_eqip_stde_vis` tinyint(3) unsigned ,
  `prgn_info_eqip_cneh_vis` tinyint(3) unsigned ,
  `prgn_info_eqip_numserie_vis` tinyint(3) unsigned ,
  `prgn_info_eqip_quantite_vis` tinyint(3) unsigned ,
  `prgn_info_eqip_valaneuf_vis` tinyint(3) unsigned ,
  `prgn_info_eqip_sant_vis` tinyint(3) unsigned ,
  `prgn_info_eqip_dateconstat_vis` tinyint(3) unsigned ,
  `prgn_info_eqip_serv_vis` tinyint(3) unsigned ,
  `prgn_info_eqip_ctra_vis` tinyint(3) unsigned ,
  `prgn_info_eqip_attr_vis` tinyint(3) unsigned ,
  `prgn_info_eqip_photo_vis` tinyint(3) unsigned ,
  `prgn_info_trav_potentiel_vis` tinyint(3) unsigned ,
  `prgn_info_trav_couthoraire_vis` tinyint(3) unsigned ,
  `prgn_info_trav_jourstrav_vis` tinyint(3) unsigned ,
  `prgn_info_trav_attr_vis` tinyint(3) unsigned ,
  `prgn_info_trav_alpotentiel_vis` tinyint(3) unsigned ,
  `prgn_info_inte_qualif_vis` tinyint(3) unsigned ,
  `prgn_info_inte_habil_vis` tinyint(3) unsigned ,
  `prgn_info_inte_potentiel_vis` tinyint(3) unsigned ,
  `prgn_info_inte_couthoraire_vis` tinyint(3) unsigned ,
  `prgn_info_inte_jourstrav_vis` tinyint(3) unsigned ,
  `prgn_info_inte_attr_vis` tinyint(3) unsigned ,
  `prgn_info_inte_alpotentiel_vis` tinyint(3) unsigned ,
  `prgn_info_ctra_cont_client_vis` tinyint(3) unsigned ,
  `prgn_info_ctra_cont_four_vis` tinyint(3) unsigned ,
  `prgn_info_ctra_datedebut_vis` tinyint(3) unsigned ,
  `prgn_info_ctra_datefin_vis` tinyint(3) unsigned ,
  `prgn_info_ctra_attr_vis` tinyint(3) unsigned ,
  `prgn_civ_info_gst_conf` tinyint(3) unsigned,
  `prgn_civ_info_dest_dem` tinyint(3) unsigned,
  `prgn_civ_info_dest_entr` tinyint(3) unsigned,
  `prgn_civ_info_dest_role` tinyint(3) unsigned,
  `prgn_civ_info_envoi_mail` tinyint(3) unsigned,
  `prgn_civ_tech_gst_conf` tinyint(3) unsigned,
  `prgn_civ_tech_dest_dem` tinyint(3) unsigned,
  `prgn_civ_tech_dest_entr` tinyint(3) unsigned,
  `prgn_civ_tech_dest_role` tinyint(3) unsigned,
  `prgn_civ_tech_envoi_mail` tinyint(3) unsigned,
  `prgn_civ_act_gst_conf` tinyint(3) unsigned,
  `prgn_civ_act_dest_dem` tinyint(3) unsigned,
  `prgn_civ_act_dest_entr` tinyint(3) unsigned,
  `prgn_civ_act_dest_role` tinyint(3) unsigned,
  `prgn_civ_act_envoi_mail` tinyint(3) unsigned,
  `prgn_civ_entr_gst_conf` tinyint(3) unsigned,
  `prgn_civ_entr_dest_dem` tinyint(3) unsigned,
  `prgn_civ_entr_dest_zuser` tinyint(3) unsigned,
  `prgn_civ_entr_dest_entr` tinyint(3) unsigned,
  `prgn_civ_entr_dest_ext` tinyint(3) unsigned,
  `prgn_civ_entr_dest_role` tinyint(3) unsigned,
  `prgn_civ_entr_envoi_mail` tinyint(3) unsigned,
  `prgn_civ_info_ajout_permis` int(11),
  `prgn_civ_info_mlfo_fk` int(11),
  `prgn_civ_tech_ajout_permis` int(11),
  `prgn_civ_tech_mlfo_fk` int(11),
  `prgn_civ_act_ajout_permis` int(11),
  `prgn_civ_act_mlfo_fk` int(11),
  `prgn_civ_entr_ajout_permis` int(11),
  `prgn_civ_entr_mlfo_fk` int(11),
  `prgn_gdoc_visiodoc_vis` tinyint(3) unsigned,
  `prgn_prev_att_vis` tinyint(3) unsigned,
  `prgn_gst_grp_att_docm` tinyint(3) unsigned,
  `prgn_prev_resp_mois_cal` tinyint(3) unsigned,
  `prgn_civ_info_envoi_mail_supp` tinyint(3) unsigned ,
  `prgn_civ_tech_envoi_mail_supp` tinyint(3) unsigned ,
  `prgn_civ_act_envoi_mail_supp` tinyint(3) unsigned ,
  `prgn_civ_stat_jour_heure_deb` tinyint(3) unsigned ,
  `prgn_civ_stat_jour_heure_fin` tinyint(3) unsigned,
    `prgn_gst_grp_att_arti` tinyint(3) unsigned ,
    `prgn_gsk_arti_vis` tinyint(3) unsigned ,
    `prgn_gsk_arti_unit_vis` tinyint(3) unsigned ,
    `prgn_gsk_arti_unit_oblig` tinyint(3) unsigned ,
    `prgn_gsk_arti_codebarre_vis` tinyint(3) unsigned ,
    `prgn_gsk_arti_codebarre_oblig` tinyint(3) unsigned ,
    `prgn_gsk_arti_fab_vis` tinyint(3) unsigned ,
    `prgn_gsk_arti_fab_oblig` tinyint(3) unsigned ,
    `prgn_gsk_arti_reffab_vis` tinyint(3) unsigned ,
    `prgn_gsk_arti_reffab_oblig` tinyint(3) unsigned ,
    `prgn_gsk_arti_photo_vis` tinyint(3) unsigned ,
    `prgn_gsk_arti_photo_oblig` tinyint(3) unsigned ,
    `prgn_gsk_arti_info_vis` tinyint(3) unsigned ,
    `prgn_gsk_arti_info_oblig` tinyint(3) unsigned ,
    `prgn_gsk_bem_libelle_vis` tinyint(3) unsigned ,
    `prgn_gsk_bem_libelle_oblig` tinyint(3) unsigned ,
    `prgn_gsk_bem_four_vis` tinyint(3) unsigned ,
    `prgn_gsk_bem_four_obli` tinyint(3) unsigned ,
    `prgn_gsk_bem_datapprprev_vis` tinyint(3) unsigned ,
    `prgn_gsk_bem_datapprprev_oblig` tinyint(3) unsigned ,
    `prgn_gsk_bem_datapprreel_vis` tinyint(3) unsigned ,
    `prgn_gsk_bem_datapprreel_oblig` tinyint(3) unsigned ,
    `prgn_gsk_bsm_libelle_vis` tinyint(3) unsigned ,
    `prgn_gsk_bsm_libelle_oblig` tinyint(3) unsigned ,
    `prgn_gsk_bsm_trav_vis` tinyint(3) unsigned ,
    `prgn_gsk_bsm_trav_oblig` tinyint(3) unsigned ,
    `prgn_gsk_bsm_inte_vis` tinyint(3) unsigned ,
    `prgn_gsk_bsm_inte_oblig` tinyint(3) unsigned ,
    `prgn_gsk_bsm_oper_vis` tinyint(3) unsigned ,
    `prgn_gsk_bsm_oper_oblig` tinyint(3) unsigned ,
    `prgn_gsk_bsm_datsortprev_vis` tinyint(3) unsigned ,
    `prgn_gsk_bsm_datsortprev_oblig` tinyint(3) unsigned ,
    `prgn_gsk_bsm_datsortreel_vis` tinyint(3) unsigned ,
    `prgn_gsk_bsm_datsortreel_oblig` tinyint(3) unsigned ,
    `prgn_gsk_creaautobsm` tinyint(3) unsigned ,
    `prgn_gsk_creaautobsm_nbsemaine` tinyint(3) unsigned ,
    `prgn_gsk_creaautobsm_ot` tinyint(3) unsigned,
    `prgn_sre_stat_jour_heure_deb` tinyint(3) unsigned ,
    `prgn_sre_stat_jour_heure_fin` tinyint(3) unsigned,
  PRIMARY KEY  (`prgn_seq`),
  KEY `prgn_multilingue_1_lang_fk` (`prgn_multilingue_1_lang_fk`),
  KEY `prgn_multilingue_2_lang_fk` (`prgn_multilingue_2_lang_fk`),
  KEY `prgn_modeacc_defaut_sat_fk` (`prgn_modeacc_defaut_sat_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_gn_acv_corresp_exp`
--

DROP TABLE IF EXISTS `pref_gn_acv_corresp_exp`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_gn_acv_corresp_exp` (
  `pgace_seq` int(11) NOT NULL auto_increment,
  `pgace_champ` varchar(30) default NULL,
  `pgace_libelle` varchar(50) default NULL,
  `pgace_numcol` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`pgace_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_gn_ann_cont_corresp`
--

DROP TABLE IF EXISTS `pref_gn_ann_cont_corresp`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_gn_ann_cont_corresp` (
  `pgacc_seq` int(11) NOT NULL auto_increment,
  `pgacc_champ` varchar(30) default NULL,
  `pgacc_numcol` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`pgacc_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_gn_ann_dem_corresp`
--

DROP TABLE IF EXISTS `pref_gn_ann_dem_corresp`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_gn_ann_dem_corresp` (
  `pgadc_seq` int(11) NOT NULL auto_increment,
  `pgadc_champ` varchar(30) default NULL,
  `pgadc_numcol` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`pgadc_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_gn_di_info_dem_attr`
--

DROP TABLE IF EXISTS `pref_gn_di_info_dem_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_gn_di_info_dem_attr` (
  `pgdida_seq` int(11) NOT NULL auto_increment,
  `pgdida_atat_fk` int(11) default NULL,
  PRIMARY KEY  (`pgdida_seq`),
  KEY `pgdida_atat_fk` (`pgdida_atat_fk`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_gn_jour_ferie`
--

DROP TABLE IF EXISTS `pref_gn_jour_ferie`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_gn_jour_ferie` (
  `pgjf_seq` int(11) NOT NULL auto_increment,
  `pgjf_libelle` varchar(20) default NULL,
  `pgjf_date` datetime default NULL,
  PRIMARY KEY  (`pgjf_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_gn_liste_filtre`
--

DROP TABLE IF EXISTS `pref_gn_liste_filtre`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_gn_liste_filtre` (
  `pglf_seq` int(11) NOT NULL auto_increment,
  `pglf_libelle` varchar(127) default NULL,
  `pglf_debase` tinyint(3) unsigned default NULL,
  `pglf_visible` tinyint(3) unsigned default NULL,
  `pglf_liste_code` varchar(127) default NULL,
  `pglf_sql` text,
  `pglf_ordre` int(11) default NULL,
  `pglf_zus_fk` int(11) default NULL,
  PRIMARY KEY  (`pglf_seq`),
  KEY `pglf_liste_code` (`pglf_liste_code`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_gn_liste_onglet`
--

DROP TABLE IF EXISTS `pref_gn_liste_onglet`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_gn_liste_onglet` (
  `pglo_seq` int(11) NOT NULL auto_increment,
  `pglo_libelle` varchar(50) default NULL,
  `pglo_ordre` tinyint(3) unsigned default NULL,
  `pglo_liste_code` varchar(127) default NULL,
  PRIMARY KEY  (`pglo_seq`),
  KEY `pglo_liste_code` (`pglo_liste_code`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_gn_liste_onglet_col`
--

DROP TABLE IF EXISTS `pref_gn_liste_onglet_col`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_gn_liste_onglet_col` (
  `pgloc_seq` int(11) NOT NULL auto_increment,
  `pgloc_libelle` varchar(50) default NULL,
  `pgloc_champ_code` varchar(127) default NULL,
  `pgloc_ordre` tinyint(3) unsigned default NULL,
  `pgloc_pglo_fk` int(11) default NULL,
  `pgloc_taille` int(11) default NULL,
  PRIMARY KEY  (`pgloc_seq`),
  KEY `pgloc_pglo_fk` (`pgloc_pglo_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_gn_module_acces_libre`
--

DROP TABLE IF EXISTS `pref_gn_module_acces_libre`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_gn_module_acces_libre` (
  `pgmal_seq` int(11) NOT NULL auto_increment,
  `pgmal_module_id` int(11) default NULL,
  `pgmal_est_accessible` tinyint(3) unsigned NOT NULL default '0',
  PRIMARY KEY  (`pgmal_seq`),
  UNIQUE KEY `pgmal_module_id` (`pgmal_module_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_gn_planning_filtre`
--

DROP TABLE IF EXISTS `pref_gn_planning_filtre`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_gn_planning_filtre` (
  `pgpf_seq` int(11) NOT NULL auto_increment,
  `pgpf_libelle` varchar(127) default NULL,
  `pgpf_debase` tinyint(3) unsigned default NULL,
  `pgpf_visible` tinyint(3) unsigned default NULL,
  `pgpf_sql` text,
  `pgpf_ordre` int(11) default NULL,
  PRIMARY KEY  (`pgpf_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_gn_resto_corresp`
--

DROP TABLE IF EXISTS `pref_gn_resto_corresp`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_gn_resto_corresp` (
  `pgrc_seq` int(11) NOT NULL auto_increment,
  `pgrc_champ` varchar(30) default NULL,
  `pgrc_numcol` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`pgrc_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_gn_rub_libre1_ope`
--

DROP TABLE IF EXISTS `pref_gn_rub_libre1_ope`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_gn_rub_libre1_ope` (
  `pgrl1o_seq` int(11) NOT NULL auto_increment,
  `pgrl1o_libelle` varchar(30) default NULL,
  `pgrl1o_libelle_bilingue` varchar(30) default NULL,
  PRIMARY KEY  (`pgrl1o_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_gn_rub_libre2_ope`
--

DROP TABLE IF EXISTS `pref_gn_rub_libre2_ope`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_gn_rub_libre2_ope` (
  `pgrl2o_seq` int(11) NOT NULL auto_increment,
  `pgrl2o_libelle` varchar(30) default NULL,
  `pgrl2o_libelle_bilingue` varchar(30) default NULL,
  PRIMARY KEY  (`pgrl2o_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_gn_sre_tranche_hor`
--

DROP TABLE IF EXISTS `pref_gn_sre_tranche_hor`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_gn_sre_tranche_hor` (
  `pgsth_seq` int(11) NOT NULL auto_increment,
  `pgsth_heure_deb` datetime default NULL,
  `pgsth_heure_fin` datetime default NULL,
  PRIMARY KEY  (`pgsth_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_pf_lst_dom_concerne`
--

DROP TABLE IF EXISTS `pref_pf_lst_dom_concerne`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_pf_lst_dom_concerne` (
  `ppldc_seq` int(11) NOT NULL auto_increment,
  `ppldc_prof_fk` int(11) default NULL,
  `ppldc_dom_fk` int(11) default NULL,
  PRIMARY KEY  (`ppldc_seq`),
  KEY `pfldc_prof_fk` (`ppldc_prof_fk`),
  KEY `pfldc_dom_fk` (`ppldc_dom_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_pf_lst_game_concerne`
--

DROP TABLE IF EXISTS `pref_pf_lst_game_concerne`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_pf_lst_game_concerne` (
  `pplgc_seq` int(11) NOT NULL auto_increment,
  `pplgc_prof_fk` int(11) default NULL,
  `pplgc_game_fk` int(11) default NULL,
  PRIMARY KEY  (`pplgc_seq`),
  KEY `pflgc_prof_fk` (`pplgc_prof_fk`),
  KEY `pflgc_game_fk` (`pplgc_game_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_profil`
--

DROP TABLE IF EXISTS `pref_profil`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_profil` (
  `prpf_seq` int(11) NOT NULL auto_increment,
  `prpf_prof_fk` int(11) default NULL,
  `prpf_zcat_fk` int(11) default NULL,
  `prpf_admin` tinyint(3) unsigned default NULL,
  `prpf_general` tinyint(3) unsigned default NULL,
  `prpf_patrimoine` tinyint(3) unsigned default NULL,
  `prpf_annuaire` tinyint(3) unsigned default NULL,
  `prpf_niv_annuaire` tinyint(3) unsigned default NULL,
  `prpf_accueil` tinyint(3) unsigned default NULL,
  `prpf_niv_accueil` tinyint(3) unsigned default NULL,
  `prpf_sosweb` tinyint(3) unsigned default NULL,
  `prpf_niv_sosweb` tinyint(3) unsigned default NULL,
  `prpf_reunion` tinyint(3) unsigned default NULL,
  `prpf_niv_reunion` tinyint(3) unsigned default NULL,
  `prpf_infos` tinyint(3) unsigned default NULL,
  `prpf_niv_infos` tinyint(3) unsigned default NULL,
  `prpf_services` tinyint(3) unsigned default NULL,
  `prpf_niv_services` tinyint(3) unsigned default NULL,
  `prpf_restaurant` tinyint(3) unsigned default NULL,
  `prpf_niv_restaurant` tinyint(3) unsigned default NULL,
  `prpf_reporting` tinyint(3) unsigned default NULL,
  `prpf_niv_reporting` tinyint(3) unsigned default NULL,
  `prpf_crweb` tinyint(3) unsigned default NULL,
  `prpf_niv_crweb` tinyint(3) unsigned default NULL,
  `prpf_docline` tinyint(3) unsigned default NULL,
  `prpf_niv_docline` tinyint(3) unsigned default NULL,
  `prpf_statistiques` tinyint(3) unsigned default NULL,
  `prpf_niv_statistiques` tinyint(3) unsigned default NULL,
  `prpf_circval` tinyint(3) unsigned default NULL,
  `prpf_niv_circval` tinyint(3) unsigned default NULL,
  `prpf_ddurable` tinyint(3) unsigned default NULL,
  `prpf_niv_ddurable` tinyint(3) unsigned default NULL,
  `prpf_demfourni` tinyint(3) unsigned default NULL,
  `prpf_niv_demfourni` tinyint(3) unsigned default NULL,
  `prpf_aideligne` tinyint(3) unsigned default NULL,
  `prpf_niv_aideligne` tinyint(3) unsigned default NULL,
  `prpf_lim_lst_dem` tinyint(3) unsigned default NULL,
  `prpf_lim_lst_dem_site` tinyint(3) unsigned default NULL,
  `prpf_lim_lst_dem_grp_srv` tinyint(3) unsigned default NULL,
  `prpf_libelle_sos_modifiable` tinyint(3) unsigned default NULL,
  `prpf_localis_dem` tinyint(3) unsigned default NULL,
  `prpf_dem_choisi_lst` tinyint(3) unsigned default NULL,
  `prpf_donnees_tech_visib` tinyint(3) unsigned default NULL,
  `prpf_donnees_patr_visib` tinyint(3) unsigned default NULL,
  `prpf_di_gst_confid` tinyint(3) unsigned default NULL,
  `prpf_di_lim_loc_serv_aut` tinyint(3) unsigned default NULL,
  `prpf_dvs_gst_confid` tinyint(3) unsigned default NULL,
  `prpf_rst_menu_visible` tinyint(3) unsigned default NULL,
  `prpf_acv_gst_confid` tinyint(3) unsigned default NULL,
  `prpf_rep_gst_confid` tinyint(3) unsigned default NULL,
  `prpf_rep_cout_visib` tinyint(3) unsigned default NULL,
  `prpf_rep_heure_visib` tinyint(3) unsigned default NULL,
  `prpf_gst_int_voir_ress` tinyint(3) unsigned default NULL,
  `prpf_sre_gst_confid` tinyint(3) unsigned default NULL,
  `prpf_sre_gst_confid_info` tinyint(3) unsigned default NULL,
  `prpf_ann_gst_confid` tinyint(3) unsigned default NULL,
  `prpf_admin_pref` tinyint(3) unsigned default NULL,
  `prpf_admin_acc` tinyint(3) unsigned default NULL,
  `prpf_admin_admin` tinyint(3) unsigned default NULL,
  `prpf_gda` tinyint(3) unsigned default NULL,
  `prpf_niv_gda_geo` tinyint(3) unsigned default NULL,
  `prpf_niv_gda_tech` tinyint(3) unsigned default NULL,
  `prpf_niv_gda_pdm` tinyint(3) unsigned default NULL,
  `prpf_niv_gda_ctra` tinyint(3) unsigned default NULL,
  `prpf_niv_gda_proj` tinyint(3) unsigned default NULL,
  `prpf_niv_ann_int` tinyint(3) unsigned default NULL,
  `prpf_niv_ann_confid` tinyint(3) unsigned default NULL,
  `prpf_niv_ann_ext` tinyint(3) unsigned default NULL,
  `prpf_gdi` tinyint(3) unsigned default NULL,
  `prpf_niv_gdi_ni` tinyint(3) unsigned default NULL,
  `prpf_niv_gdi_li` tinyint(3) unsigned default NULL,
  `prpf_niv_gdi_planning` tinyint(3) unsigned default NULL,
  `prpf_niv_gdi_rsc` tinyint(3) unsigned default NULL,
  `prpf_niv_gdi_org` tinyint(3) unsigned default NULL,
  `prpf_gdi_dem_choisi_lst` tinyint(3) unsigned default NULL,
  `prpf_gdi_localis_dem` tinyint(3) unsigned default NULL,
  `prpf_gdi_lim_loc_serv_aut` tinyint(3) unsigned default NULL,
  `prpf_di` tinyint(3) unsigned default NULL,
  `prpf_di_di` tinyint(3) unsigned default NULL,
  `prpf_di_li` tinyint(3) unsigned default NULL,
  `prpf_niv_di_confid` tinyint(3) unsigned default NULL,
  `prpf_niv_rep_patrim` tinyint(3) unsigned default NULL,
  `prpf_niv_rep_ci` tinyint(3) unsigned default NULL,
  `prpf_niv_rep_indicgx` tinyint(3) unsigned default NULL,
  `prpf_niv_rep_rep` tinyint(3) unsigned default NULL,
  `prpf_docline_theme` tinyint(3) unsigned default NULL,
  `prpf_popup_info_gdi_vis` tinyint(3) unsigned ,
  `prpf_popup_info_ajout_gdi_vis` tinyint(3) unsigned ,
  `prpf_popup_info_aide_gdi_vis` tinyint(3) unsigned ,
  `prpf_popup_info_di_vis` tinyint(3) unsigned ,
  `prpf_popup_info_ajout_di_vis` tinyint(3) unsigned ,
  `prpf_popup_info_aide_di_vis` tinyint(3) unsigned,
  `prpf_gsk` tinyint(3) unsigned,
  PRIMARY KEY  (`prpf_seq`),
  UNIQUE KEY `prpf_prof_fk` (`prpf_prof_fk`),
  KEY `prpf_zcat_fk` (`prpf_zcat_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_ut_di_info_dem_attr`
--

DROP TABLE IF EXISTS `pref_ut_di_info_dem_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_ut_di_info_dem_attr` (
  `pudida_seq` int(11) NOT NULL auto_increment,
  `pudida_zus_fk` int(11) default NULL,
  `pudida_atat_fk` int(11) default NULL,
  PRIMARY KEY  (`pudida_seq`),
  KEY `pudida_zus_fk` (`pudida_zus_fk`),
  KEY `pudida_atat_fk` (`pudida_atat_fk`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `pref_utilisateur`
--

DROP TABLE IF EXISTS `pref_utilisateur`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_utilisateur` (
  `prut_seq` int(11) NOT NULL auto_increment,
  `prut_zus_fk` int(11) default NULL,
  `prut_gst_dcl_hor` tinyint(3) unsigned default NULL,
  `prut_dcl_serv_client` tinyint(3) default NULL,
  `prut_fuseau_hor_client` int(11) NOT NULL default '0',
  `prut_fuseau_hor_serv` int(11) NOT NULL default '0',
  `prut_sep_decimal` char(1) default NULL,
  `prut_sep_millier_actif` tinyint(3) unsigned default NULL,
  `prut_sep_millier` char(1) default NULL,
  `prut_nb_page_navig` int(11) default NULL,
  `prut_nb_record_page` int(11) default NULL,
  `prut_concept_portail` varchar(10) default NULL,
  `prut_theme_portail` varchar(10) default NULL,
  `prut_format_impress` varchar(6) default NULL,
  `prut_taille_textesimple` tinyint(3) unsigned default NULL,
  `prut_date_format_txt` tinyint(3) unsigned default NULL,
  `prut_date_format_num` tinyint(3) unsigned default NULL,
  `prut_date_avec_ordinaux` tinyint(3) unsigned default NULL,
  `prut_date_sep_num` char(1) default NULL,
  `prut_date_sep_heure` char(1) default NULL,
  `prut_date_aff_12h` tinyint(3) unsigned default NULL,
  `prut_di_type_lst_aide` tinyint(3) unsigned default NULL,
  `prut_di_dem_rech_rub` varchar(30) default NULL,
  `prut_di_dem_rech_type` tinyint(3) unsigned default NULL,
  `prut_di_loc_rech_rub` varchar(30) default NULL,
  `prut_di_loc_rech_type` tinyint(3) unsigned default NULL,
  `prut_di_info_dem_serv` tinyint(3) unsigned default NULL,
  `prut_di_info_dem_civilite` tinyint(3) unsigned default NULL,
  `prut_di_info_dem_nom` tinyint(3) unsigned default NULL,
  `prut_di_info_dem_prenom` tinyint(3) unsigned default NULL,
  `prut_di_info_dem_nomcod` tinyint(3) unsigned default NULL,
  `prut_di_info_dem_fonction` tinyint(3) unsigned default NULL,
  `prut_di_info_dem_teldirect` tinyint(3) unsigned default NULL,
  `prut_di_info_dem_email` tinyint(3) unsigned default NULL,
  `prut_di_info_dem_bat` tinyint(3) unsigned default NULL,
  `prut_di_info_dem_zone` tinyint(3) unsigned default NULL,
  `prut_di_info_dem_loca` tinyint(3) unsigned default NULL,
  `prut_di_info_dem_attr` tinyint(3) unsigned default NULL,
  `prut_cr_gst_temps_inter` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`prut_seq`),
  UNIQUE KEY `prut_zus_fk` (`prut_zus_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `pref_ut_ui_memorisation`
--

DROP TABLE IF EXISTS `pref_ut_ui_memorisation`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pref_ut_ui_memorisation` (
  `puum_seq` int(11) NOT NULL auto_increment,
  `puum_zus_fk` int(11),
  `puum_session_nom_variable` VARCHAR(100) NOT NULL,
  `puum_session_valeur` VARCHAR(255),
  PRIMARY KEY (`puum_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `presta_service`
--

DROP TABLE IF EXISTS `presta_service`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `presta_service` (
  `prse_seq` int(11) NOT NULL auto_increment,
  `prse_pres_fk` int(11) NOT NULL default '0',
  `prse_libelle` varchar(15) NOT NULL,
  `prse_desc` text NOT NULL,
  `prse_def_quantite` tinyint(4) NOT NULL default '0',
  `prse_unite` varchar(4) NOT NULL,
  `prse_chemin_photo` varchar(100) NOT NULL,
  PRIMARY KEY  (`prse_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `prestataire`
--

DROP TABLE IF EXISTS `prestataire`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `prestataire` (
  `pres_seq` int(11) NOT NULL auto_increment,
  `pres_libelle` varchar(15) NOT NULL,
  `pres_desc` text NOT NULL,
  `pres_email` varchar(45) default NULL,
  `pres_trav_code` varchar(4) default NULL,
  PRIMARY KEY  (`pres_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `preventif_equipement`
--

DROP TABLE IF EXISTS preventif_equipement;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;

CREATE TABLE preventif_equipement
(

    `eqpr_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `eqpr_typeprev` tinyint(3) unsigned , 
    `eqpr_freqval` tinyint(3) unsigned , 
    `eqpr_freqtype` tinyint(3) unsigned , 
    `eqpr_lundi` tinyint(3) unsigned , 
    `eqpr_mardi` tinyint(3) unsigned , 
    `eqpr_mercredi` tinyint(3) unsigned , 
    `eqpr_jeudi` tinyint(3) unsigned , 
    `eqpr_vendredi` tinyint(3) unsigned , 
    `eqpr_samedi` tinyint(3) unsigned , 
    `eqpr_dimanche` tinyint(3) unsigned , 
    `eqpr_feries` tinyint(3) unsigned , 
    `eqpr_comptunite` int(11) , 
    `eqpr_consignes` text , 
    `eqpr_datreference` datetime , 
    `eqpr_bloquee` tinyint(3) unsigned , 
    `eqpr_stopservic` tinyint(3) unsigned , 
    `eqpr_gamadapt` tinyint(3) unsigned , 
    `eqpr_fuseffac` tinyint(3) unsigned , 
    `eqpr_saison` tinyint(3) unsigned , 
    `eqpr_proch_date` datetime , 
    `eqpr_seuilbas` decimal(16,4) , 
    `eqpr_seuilhaut` decimal(16,4) , 
    `eqpr_urgence` tinyint(3) unsigned , 
    `eqpr_progres` tinyint(3) unsigned , 
    `eqpr_progprev` tinyint(3) unsigned , 
    `eqpr_progreal` tinyint(3) unsigned , 
    `eqpr_contenu` text , 
    `eqpr_per1dat1` datetime , 
    `eqpr_per1dat2` datetime , 
    `eqpr_per2dat1` datetime , 
    `eqpr_per2dat2` datetime , 
    `eqpr_dureepres` decimal(16,2) , 
    `eqpr_dureejour` tinyint(3) unsigned , 
    `eqpr_maint_niveau` tinyint(3) unsigned , 
    `eqpr_docu` tinyint(3) unsigned , 
    `eqpr_pmes` tinyint(3) unsigned , 
    `eqpr_titre_ope` varchar(40) , 
    `eqpr_horsplanif` tinyint(3) unsigned , 
    `eqpr_consig` tinyint(3) unsigned , 
    `eqpr_verte` tinyint(3) unsigned , 
    `eqpr_reglementaire` tinyint(3) unsigned , 
    `eqpr_ctra_fk` int(11) , 
    `eqpr_eqip_fk` int(11) , 
    `eqpr_trav_fk` int(11) , 
    `eqpr_game_fk` int(11) , 
    `eqpr_pmes_fk` int(11) , 
    `eqpr_oper_der_fk` int(11) , 
    `eqpr_fapr_fk` int(11) , 
    `eqpr_supe_fk` int(11) , 
    `eqpr_inte_fk` int(11) , 
    `eqpr_tppr_fk` int(11) , 
    `eqpr_attribut_orig` tinyint(3) unsigned , 
    `eqpr_proch_occur` int(11),
   PRIMARY KEY ( `eqpr_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;

CREATE  INDEX eqpr_ctra_fk ON preventif_equipement (eqpr_ctra_fk);

CREATE  INDEX eqpr_eqip_fk ON preventif_equipement (eqpr_eqip_fk);

CREATE  INDEX eqpr_trav_fk ON preventif_equipement (eqpr_trav_fk);

CREATE  INDEX eqpr_game_fk ON preventif_equipement (eqpr_game_fk);

CREATE  INDEX eqpr_pmes_fk ON preventif_equipement (eqpr_pmes_fk);

CREATE  INDEX eqpr_oper_der_fk ON preventif_equipement (eqpr_oper_der_fk);

CREATE  INDEX eqpr_fapr_fk ON preventif_equipement (eqpr_fapr_fk);

CREATE  INDEX eqpr_supe_fk ON preventif_equipement (eqpr_supe_fk);

CREATE  INDEX eqpr_inte_fk ON preventif_equipement (eqpr_inte_fk);

CREATE  INDEX eqpr_tppr_fk ON preventif_equipement (eqpr_tppr_fk);

SET character_set_client = @saved_cs_client;


--
-- Table structure for table `preventif_famille`
--

DROP TABLE IF EXISTS `preventif_famille`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;

CREATE TABLE `preventif_famille`
(

    `fapr_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `fapr_typeprev` tinyint(3) unsigned , 
    `fapr_freqval` tinyint(3) unsigned , 
    `fapr_freqtype` tinyint(3) unsigned , 
    `fapr_lundi` tinyint(3) unsigned , 
    `fapr_mardi` tinyint(3) unsigned , 
    `fapr_mercredi` tinyint(3) unsigned , 
    `fapr_jeudi` tinyint(3) unsigned , 
    `fapr_vendredi` tinyint(3) unsigned , 
    `fapr_samedi` tinyint(3) unsigned , 
    `fapr_dimanche` tinyint(3) unsigned , 
    `fapr_feries` tinyint(3) unsigned , 
    `fapr_comptunite` int(11) , 
    `fapr_consignes` text , 
    `fapr_stopservic` tinyint(3) unsigned , 
    `fapr_gamadapt` tinyint(3) unsigned , 
    `fapr_fuseffac` tinyint(3) unsigned , 
    `fapr_saison` tinyint(3) unsigned , 
    `fapr_seuilbas` decimal(16,4) , 
    `fapr_seuilhaut` decimal(16,4) , 
    `fapr_urgence` tinyint(3) unsigned , 
    `fapr_progres` tinyint(3) unsigned , 
    `fapr_progprev` tinyint(3) unsigned , 
    `fapr_progreal` tinyint(3) unsigned , 
    `fapr_contenu` text , 
    `fapr_per1dat1` datetime , 
    `fapr_per1dat2` datetime , 
    `fapr_per2dat1` datetime , 
    `fapr_per2dat2` datetime , 
    `fapr_dureepres` decimal(16,2) , 
    `fapr_dureejour` tinyint(3) unsigned , 
    `fapr_maint_niveau` tinyint(3) unsigned , 
    `fapr_docu` tinyint(3) unsigned , 
    `fapr_pmes` tinyint(3) unsigned , 
    `fapr_reglementaire` tinyint(3) unsigned , 
    `fapr_verte` tinyint(3) unsigned , 
    `fapr_fame_fk` int(11) , 
    `fapr_game_fk` int(11) , 
    `fapr_tppr_fk` int(11), 
    `fapr_mpmes_fk` int(11) , 
    `fapr_maj_eqip` tinyint(3) unsigned , 
    `fapr_attribut_orig` tinyint(3) unsigned  , 
   PRIMARY KEY ( `fapr_seq` ),
  KEY  `fapr_fame_fk` (`fapr_fame_fk`),
  KEY  `fapr_game_fk` (`fapr_game_fk`),
  KEY  `fapr_tppr_fk` (`fapr_tppr_fk`),
  KEY  `fapr_mpmes_fk` (`fapr_mpmes_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `profil`
--

DROP TABLE IF EXISTS `profil`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `profil` (
  `prof_seq` int(11) NOT NULL auto_increment,
  `prof_code` varchar(15) NOT NULL,
  `prof_libelle` varchar(45) NOT NULL,
  `prof_annuaire` tinyint(4) NOT NULL default '0',
  `prof_accueil` tinyint(4) NOT NULL default '0',
  `prof_sosweb` tinyint(4) NOT NULL default '0',
  `prof_reunion` tinyint(4) NOT NULL default '0',
  `prof_infos` tinyint(4) NOT NULL default '0',
  `prof_services` tinyint(4) NOT NULL default '0',
  `prof_restaurant` tinyint(4) NOT NULL default '0',
  `prof_reporting` tinyint(4) NOT NULL default '0',
  `prof_niv_accueil` tinyint(4) NOT NULL default '1',
  `prof_niv_restaurant` tinyint(4) NOT NULL default '1',
  `prof_niv_reunion` tinyint(1) NOT NULL default '0',
  `prof_niv_infos` tinyint(4) NOT NULL default '1',
  `prof_niv_services` tinyint(4) NOT NULL default '1',
  `prof_niv_annuaire` tinyint(4) NOT NULL default '1',
  `prof_niv_sosweb` tinyint(4) NOT NULL default '0',
  `prof_niv_reporting` tinyint(4) NOT NULL default '0',
  `prof_admin` tinyint(4) NOT NULL default '0',
  `prof_crweb` tinyint(4) NOT NULL default '0',
  `prof_niv_crweb` tinyint(4) NOT NULL default '0',
  `prof_docline` tinyint(4) NOT NULL default '0',
  `prof_niv_docline` tinyint(4) NOT NULL default '0',
  `prof_statistiques` tinyint(4) NOT NULL default '0',
  `prof_niv_statistiques` tinyint(4) NOT NULL default '0',
  `prof_circval` tinyint(4) NOT NULL default '0',
  `prof_niv_circval` tinyint(4) NOT NULL default '0',
  `prof_ddurable` tinyint(4) NOT NULL default '0',
  `prof_niv_ddurable` tinyint(4) NOT NULL default '0',
  `prof_demfourni` tinyint(4) NOT NULL default '0',
  `prof_niv_demfourni` tinyint(4) NOT NULL default '0',
  `prof_aideligne` tinyint(4) NOT NULL default '1',
  `prof_niv_aideligne` tinyint(4) NOT NULL default '0',
  PRIMARY KEY  (`prof_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `projet`
--

DROP TABLE IF EXISTS `projet`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `projet` (
  `proj_seq` int(11) NOT NULL auto_increment,
  `proj_code` varchar(10) default NULL,
  `proj_libelle` varchar(50) default NULL,
  `proj_objet` text,
  `proj_encours` tinyint(3) unsigned default NULL,
  `proj_historique` text,
  `proj_datedebutp` datetime default NULL,
  `proj_datefinp` datetime default NULL,
  `proj_datedebutr` datetime default NULL,
  `proj_datefinr` datetime default NULL,
  `proj_pcoutinitial` decimal(16,2) default NULL,
  `proj_pcoutrevise` decimal(16,2) default NULL,
  `proj_pcommande` decimal(16,2) default NULL,
  `proj_pheureinterne` int(11) default NULL,
  `proj_pcoutheureinterne` decimal(16,2) default NULL,
  `proj_pcoutbsm` decimal(16,2) default NULL,
  `proj_pcoutdivers` decimal(16,2) default NULL,
  `proj_rcouttotal` decimal(16,2) default NULL,
  `proj_rcommande` decimal(16,2) default NULL,
  `proj_rheureinterne` int(11) default NULL,
  `proj_rcoutheureinterne` decimal(16,2) default NULL,
  `proj_rcoutbsm` decimal(16,2) default NULL,
  `proj_rcoutdivers` decimal(16,2) default NULL,
  `proj_supe_fk` int(11) default NULL,
  `proj_tproj_fk` int(11) default NULL,
  `proj_comment` text,
  `proj_datmaj` datetime,
  `proj_zus_maj_fk` int(11),
  PRIMARY KEY  (`proj_seq`),
  KEY `proj_code` (`proj_code`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `projet_attr`
--

DROP TABLE IF EXISTS `projet_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `projet_attr` (
  `proj_att_seq` int(16) NOT NULL auto_increment,
  PRIMARY KEY  (`proj_att_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `rap_genere`
--

DROP TABLE IF EXISTS `rap_genere`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `rap_genere` (
  `rapg_seq` int(11) NOT NULL auto_increment,
  `rapg_libelle` varchar(30) default NULL,
  `rapg_periode` varchar(30) default NULL,
  `rapg_datecrea` datetime default NULL,
  `rapg_fichier` varchar(255) default NULL,
  `rapg_raps_fk` int(11) default NULL,
  PRIMARY KEY  (`rapg_seq`),
  KEY `rapg_raps_fk` (`rapg_raps_fk`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `rap_structure`
--

DROP TABLE IF EXISTS `rap_structure`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `rap_structure` (
  `raps_seq` int(11) NOT NULL auto_increment,
  `raps_libelle` varchar(30) default NULL,
  `raps_description` varchar(255) default NULL,
  `raps_format` varchar(6) default NULL,
  `raps_orientation` varchar(1) default NULL,
  `raps_datecrea` datetime default NULL,
  `raps_datemodif` datetime default NULL,
  `raps_fichier` varchar(36) default NULL,
  `raps_zus_fk` int(11) default NULL,
  PRIMARY KEY  (`raps_seq`),
  KEY `raps_zus_fk` (`raps_zus_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Structure de la table `role`
--

DROP TABLE IF EXISTS `role`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE IF NOT EXISTS `role` (
    `role_seq` int(11) NOT NULL AUTO_INCREMENT,
    `role_zus_fk` int(11) , 
    `role_type` tinyint(3) unsigned , 
    `role_elem_1_fk` int(11) , 
    `role_elem_2_fk` int(11) ,
    `role_en_titre` tinyint(3) unsigned,  
   PRIMARY KEY ( `role_seq` )  
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Structure de la table `releve`
--

DROP TABLE IF EXISTS `releve`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE IF NOT EXISTS `releve` (
  `rele_seq` int(11) NOT NULL auto_increment,
  `rele_date` datetime default NULL,
  `rele_valeur` decimal(16,4) default NULL,
  `rele_oper_fk` int(11) default NULL,
  `rele_apmesure` varchar(15) default NULL,
  `rele_pmes_fk` int(11) default NULL,
  `rele_inte_fk` int(11) default NULL,
  `rele_heure` datetime default NULL,
  `rele_comment` varchar(255) default NULL,
  PRIMARY KEY  (`rele_seq`),
  KEY `rele_oper_fk` (`rele_oper_fk`),
  KEY `rele_pmes_fk` (`rele_pmes_fk`),
  KEY `rele_inte_fk` (`rele_inte_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `resa_materiel`
--

DROP TABLE IF EXISTS `resa_materiel`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `resa_materiel` (
  `rema_seq` int(11) NOT NULL auto_increment,
  `rema_resa_fk` int(11) NOT NULL default '0',
  `rema_mate_fk` int(11) NOT NULL default '0',
  `rema_quantite` int(11) NOT NULL default '0',
  PRIMARY KEY  (`rema_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `resa_participant`
--

DROP TABLE IF EXISTS `resa_participant`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `resa_participant` (
  `repa_seq` int(11) NOT NULL auto_increment,
  `repa_resa_fk` int(11) NOT NULL default '0',
  `repa_cont_fk` int(11) NOT NULL default '0',
  `repa_vst_fk` int(11) NOT NULL default '0',
  `repa_dem_fk` int(11) NOT NULL default '0',
  `repa_sloc_fk` int(11) NOT NULL default '0',
  `repa_civilite` varchar(5) NOT NULL,
  `repa_nom` varchar(25) NOT NULL,
  `repa_prenom` varchar(25) NOT NULL,
  `repa_service` varchar(40) NOT NULL,
  `repa_fonction` varchar(40) NOT NULL,
  `repa_telephone` varchar(18) NOT NULL,
  `repa_email` varchar(45) NOT NULL,
  `repa_role` tinyint(3) default '0',
  PRIMARY KEY  (`repa_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `resa_presta`
--

DROP TABLE IF EXISTS `resa_presta`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `resa_presta` (
  `repr_seq` int(11) NOT NULL auto_increment,
  `repr_resa_fk` int(11) NOT NULL default '0',
  `repr_prse_fk` int(11) NOT NULL default '0',
  `repr_quantite` int(11) NOT NULL default '0',
  PRIMARY KEY  (`repr_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `reservation_salle`
--

DROP TABLE IF EXISTS `reservation_salle`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `reservation_salle` (
  `resa_seq` int(11) NOT NULL auto_increment,
  `resa_libelle` varchar(30) NOT NULL,
  `resa_sreu_fk` int(11) NOT NULL default '0',
  `resa_cfgs_fk` int(11) default NULL,
  `resa_dem_fk` int(11) default NULL,
  `resa_demandeur` varchar(50) NOT NULL,
  `resa_telephone` varchar(15) NOT NULL,
  `resa_email` varchar(45) NOT NULL,
  `resa_sloc_fk` int(11) NOT NULL default '0',
  `resa_date_deb` date NOT NULL default '0000-00-00',
  `resa_date_fin` date default NULL,
  `resa_heure_deb` time NOT NULL default '00:00:00',
  `resa_heure_fin` time NOT NULL default '00:00:00',
  `resa_date_inscri` date NOT NULL default '0000-00-00',
  `resa_heure_inscri` time NOT NULL default '00:00:00',
  `resa_nb_participant` tinyint(5) default NULL,
  `resa_zus_inscri_fk` int(11) NOT NULL default '0',
  `resa_rety_fk` int(11) NOT NULL default '0',
  `resa_vis_fk` int(11) NOT NULL default '0',
  `resa_resa_cycle_fk` int(11) default NULL,
  `resa_resa_pere_fk` int(11) default NULL,
  `resa_etat` int(11) NOT NULL default '0',
  `resa_commentaire` text,
  `resa_code` varchar(11) default NULL,
  `resa_resa_multi_fk` int(11) default NULL,
  PRIMARY KEY  (`resa_seq`),
  UNIQUE KEY `resa_seq` (`resa_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `restaurant`
--

DROP TABLE IF EXISTS `restaurant`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `restaurant` (
  `rest_seq` int(11) NOT NULL auto_increment,
  `rest_libelle` varchar(80) NOT NULL,
  `rest_description` text NOT NULL,
  `rest_news` text NOT NULL,
  `rest_email` varchar(80) NOT NULL,
  PRIMARY KEY  (`rest_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `resto_menu`
--

DROP TABLE IF EXISTS `resto_menu`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `resto_menu` (
  `rsmn_seq` int(11) NOT NULL auto_increment,
  `rsmn_rest_fk` int(11) NOT NULL default '0',
  `rsmn_date` date NOT NULL default '0000-00-00',
  `rsmn_ouvert` tinyint(4) NOT NULL default '0',
  `rsmn_entree` text NOT NULL,
  `rsmn_plat` text NOT NULL,
  `rsmn_dessert` text NOT NULL,
  `rsmn_divers` text NOT NULL,
  PRIMARY KEY  (`rsmn_seq`),
  KEY `rsmn_date` (`rsmn_date`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `reunion_type`
--

DROP TABLE IF EXISTS `reunion_type`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `reunion_type` (
  `rety_seq` int(11) NOT NULL auto_increment,
  `rety_libelle` varchar(30) NOT NULL,
  `rety_couleur` varchar(10) NOT NULL,
  PRIMARY KEY  (`rety_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `salle_reunion`
--

DROP TABLE IF EXISTS `salle_reunion`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `salle_reunion` (
  `sreu_seq` int(11) NOT NULL auto_increment,
  `sreu_loca_fk` int(11) NOT NULL default '0',
  `sreu_zone_fk` int(11) NOT NULL default '0',
  `sreu_bat_fk` int(11) NOT NULL default '0',
  `sreu_gsal_fk` int(11) NOT NULL default '0',
  `sreu_sloc_fk` int(11) NOT NULL default '0',
  `sreu_sreu_pere_fk` int(11) NOT NULL default '0',
  `sreu_cfgs_standard_fk` int(11) default NULL,
  `sreu_is_decomp` int(11) NOT NULL default '0',
  `sreu_libelle` varchar(15) NOT NULL,
  `sreu_desc` text NOT NULL,
  `sreu_capacite` int(11) NOT NULL default '0',
  `sreu_ordre` int(11) NOT NULL default '0',
  `sreu_bool_inactive` int(11) NOT NULL default '0',
  PRIMARY KEY  (`sreu_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `service`
--

DROP TABLE IF EXISTS `service`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `service` (
  `serv_seq` int(11) NOT NULL auto_increment,
  `serv_code` varchar(15) default NULL,
  `serv_libelle` varchar(30) default NULL,
  `serv_afin_fk` int(11) default NULL,
  `serv_crit_fk` int(11) default NULL,
  `serv_niveau` int(11) default NULL,
  `serv_ordre` int(11) default NULL,
  `serv_serv_fk` int(11) default NULL,
  `serv_codeconca` varchar(24) default NULL,
  PRIMARY KEY  (`serv_seq`),
  KEY `serv_code` (`serv_code`),
  KEY `serv_libelle` (`serv_libelle`),
  KEY `serv_afin_fk` (`serv_afin_fk`),
  KEY `serv_crit_fk` (`serv_crit_fk`),
  KEY `serv_crit_fk_2` (`serv_crit_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `service_attr`
--

DROP TABLE IF EXISTS `service_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `service_attr` (
  `serv_att_seq` int(16) NOT NULL auto_increment,
  PRIMARY KEY  (`serv_att_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `service_plus`
--

DROP TABLE IF EXISTS `service_plus`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `service_plus` (
  `servp_seq` int(11) NOT NULL auto_increment,
  `servp_libelle` varchar(80) NOT NULL,
  `servp_url` varchar(250) NOT NULL,
  `servp_date` date NOT NULL default '0000-00-00',
  `servp_cookieNom` varchar(20) default NULL,
  `servp_cookieValeur` text,
  `servp_cookieExpire` int(11) default NULL,
  `servp_ordre` int(3) default '0',
  PRIMARY KEY  (`servp_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `service_tmp_sfm`
--

DROP TABLE IF EXISTS `service_tmp_sfm`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `service_tmp_sfm` (
  `slts_seq` int(11) NOT NULL default '0',
  `slts_sloc_fk` int(11) NOT NULL default '0',
  `slts_sfm_sess_id` varchar(40) default NULL,
  `slts_time` datetime default NULL,
  `slts_db_action` char(3) default NULL,
  PRIMARY KEY  (`slts_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `servicelocaux`
--

DROP TABLE IF EXISTS `servicelocaux`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `servicelocaux` (
  `sloc_seq` int(11) NOT NULL default '0',
  `sloc_code` varchar(8) NOT NULL,
  `sloc_libelle` varchar(30) NOT NULL,
  `sloc_dotation_initiale` decimal(13,2) default NULL,
  `sloc_dotation_initiale2` decimal(13,2) default NULL,
  `sloc_dotation_consommee` decimal(13,2) default NULL,
  `sloc_dotation_consommee2` decimal(13,2) default NULL,
  UNIQUE KEY `SLOC_SEQ` (`sloc_seq`),
  KEY `SLOC_CODE` (`sloc_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `site`
--

DROP TABLE IF EXISTS `site`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `site` (
  `sit_seq` int(11) NOT NULL auto_increment,
  `sit_code` varchar(8) default NULL,
  `sit_libelle` varchar(35) default NULL,
  `sit_prefixe` varchar(4) default NULL,
  `sit_num_debut` int(11) default NULL,
  `sit_num_ordre` int(3) default NULL,
  `sit_moper_relev` tinyint(3) unsigned default NULL,
  `sit_mdata_stat` tinyint(3) unsigned default NULL,
  `sit_mstock` tinyint(3) unsigned default NULL,
  `sit_prefichemis` varchar(4) default NULL,
  `sit_numordfichemis` int(11) default NULL,
  `sit_pathfichemis` text,
  `sit_prefichrecep` varchar(4) default NULL,
  `sit_numordfichrecep` int(11) default NULL,
  `sit_pathfichrecep` text,
  `sit_datedebemis` date default NULL,
  `sit_heureemis` time default NULL,
  `sit_datdebrecep` date default NULL,
  `sit_heurerecep` time default NULL,
  `sit_balemis` varchar(15) default NULL,
  `sit_connexemis` varchar(15) default NULL,
  `sit_balrecep` varchar(15) default NULL,
  `sit_connexrecep` varchar(15) default NULL,
  `sit_datprocemis` datetime default NULL,
  `sit_datprocrecep` datetime default NULL,
  `sit_typ_nordre` tinyint(3) unsigned default NULL,
  `sit_surface_totale` decimal(16,2) default NULL,
  `sit_modtotal` tinyint(3) unsigned default NULL,
  `sit_surface_utile` decimal(16,2) default NULL,
  `sit_modutile` tinyint(3) unsigned default NULL,
  `sit_adr1` varchar(45) default NULL,
  `sit_adr2` varchar(45) default NULL,
  `sit_cp` varchar(6) default NULL,
  `sit_ville` varchar(25) default NULL,
  `sit_region` varchar(25) default NULL,
  `sit_pays` varchar(25) default NULL,
  `sit_blocnote` text,
  `sit_mast_fk` int(11) default NULL,
  `sit_communaute` tinyint(3) unsigned default NULL,
  `sit_ctra_fk` int(11) default NULL,
  `sit_crit_fk` int(11) default NULL,
  `sit_afin_fk` int(11) default NULL,
  `sit_nb_usgr` int(11) default NULL,
  `sit_modusager` tinyint(3) unsigned default NULL,
  `sit_affect_dom` tinyint(3) unsigned default NULL , 
  `sit_tppr_fk` int(11) , 
  `sit_maint_niveau` tinyint(3) unsigned ,
  `sit_datmaj` datetime,
  `sit_zus_maj_fk` int(11),
  PRIMARY KEY  (`sit_seq`),
  KEY `sat_code` (`sit_code`),
  KEY `sat_libelle` (`sit_libelle`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Structure de la table `site_attr`
--

SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE IF NOT EXISTS  site_attr (
  sit_att_seq int(16) NOT NULL auto_increment,
  PRIMARY KEY  (sit_att_seq)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `specialite`
--

DROP TABLE IF EXISTS `specialite`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `specialite` (
  `spec_seq` int(11) NOT NULL auto_increment,
  `spec_code` varchar(20) default NULL,
  PRIMARY KEY  (`spec_seq`),
  KEY `spec_code` (`spec_code`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `stat_log_module`
--

DROP TABLE IF EXISTS `stat_log_module`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `stat_log_module` (
  `slm_seq` int(11) NOT NULL auto_increment,
  `slm_zus_fk` int(11) NOT NULL default '0',
  `slm_slp_fk` int(11) NOT NULL default '0',
  `slm_module` varchar(20) default NULL,
  `slm_date` date NOT NULL default '0000-00-00',
  `slm_time` time NOT NULL default '00:00:00',
  PRIMARY KEY  (`slm_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `stat_log_portail`
--

DROP TABLE IF EXISTS `stat_log_portail`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `stat_log_portail` (
  `slp_seq` int(11) NOT NULL auto_increment,
  `slp_zus_fk` int(11) NOT NULL default '0',
  `slp_date` date NOT NULL default '0000-00-00',
  `slp_time` time NOT NULL default '00:00:00',
  PRIMARY KEY  (`slp_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `statut_equip`
--

DROP TABLE IF EXISTS `statut_equip`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `statut_equip` (
  `steq_seq` int(11) NOT NULL auto_increment,
  `steq_code` varchar(4) default NULL,
  `steq_libelle` varchar(15) default NULL,
  `steq_numero_ordre` int(10) unsigned NOT NULL default '0',
  `steq_actif` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`steq_seq`),
  KEY `steq_code` (`steq_code`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `superviseur`
--

DROP TABLE IF EXISTS `superviseur`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `superviseur` (
  `supe_seq` int(11) NOT NULL auto_increment,
  `supe_code` varchar(6) default NULL,
  `supe_libelle` varchar(20) default NULL,
  `supe_operation` tinyint(3) unsigned default NULL,
  `supe_commande` tinyint(3) unsigned default NULL,
  `supe_email` varchar(45) default NULL,
  `supe_age_fk` int(11) default NULL,
  `supe_gst_type` tinyint(3) unsigned default NULL,
  `supe_gst_nbjour` int(11) default NULL,
  `supe_actif` tinyint(3) unsigned default NULL,
  `supe_zus_maj_fk` int(11),
  `supe_datmaj` datetime,
  PRIMARY KEY  (`supe_seq`),
  KEY `supe_code` (`supe_code`),
  KEY `supe_libelle` (`supe_libelle`),
  KEY `supe_age_fk` (`supe_age_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `surdomaine`
--

DROP TABLE IF EXISTS `surdomaine`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `surdomaine` (
  `sdom_seq` int(11) NOT NULL auto_increment,
  `sdom_libelle` varchar(15) default NULL,
  `sdom_desc` varchar(200) default NULL,
  `sdom_icone_chemin` varchar(100) default NULL,
  `sdom_ordre` int(11) default NULL,
  `sdom_form_fk` int(11) default NULL,
  PRIMARY KEY  (`sdom_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `surdomaine_mlg`
--

DROP TABLE IF EXISTS `surdomaine_mlg`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `surdomaine_mlg` (
  `sdom_mlg_seq` int(11) NOT NULL default '0',
  `sdom_mlg_libelle` varchar(15) default NULL,
  PRIMARY KEY  (`sdom_mlg_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `surdomaine_pref`
--

DROP TABLE IF EXISTS `surdomaine_pref`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `surdomaine_pref` (
  `sdpr_seq` int(11) NOT NULL auto_increment,
  `sdpr_sdom_fk` int(11) NOT NULL default '0',
  `sdpr_masque_localisation` tinyint(5) default NULL,
  `sdpr_masque_detail` tinyint(5) default NULL,
  `sdpr_joindre_doc` tinyint(5) NOT NULL default '0',
  `sdpr_affiche_attribut` tinyint(5) default NULL,
  `sdpr_type_attribut` varchar(10) default NULL,
  `sdpr_form_specif` tinyint(4) NOT NULL default '0',
  `sdpr_pref_specif_fk` int(11) default '0',
  PRIMARY KEY  (`sdpr_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `t_fparam_1`
--

DROP TABLE IF EXISTS `t_fparam_1`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `t_fparam_1` (
  `PREF_SEQ` int(11) NOT NULL auto_increment,
  `PREF_TITRE` varchar(30) default NULL,
  `PREF_NOMBRE` int(16) default NULL,
  `PREF_EXERCICE` date default NULL,
  `PREF_NBJOUR` int(3) default NULL,
  `PREF_PERIODE` int(3) default NULL,
  `PREF_HT_TTC` int(1) default NULL,
  `PREF_LICENCE` varchar(30) default NULL,
  `PREF_AN_INITIALE` date default NULL,
  `PREF_AN_PARDEFAUT` date default NULL,
  `PREF_GRPETABLIS` varchar(15) default NULL,
  `PREF_SURFACE1` varchar(15) default NULL,
  `PREF_SURFACE2` varchar(15) default NULL,
  `PREF_LOCAL1` varchar(20) default NULL,
  `PREF_LOCAL2` varchar(20) default NULL,
  `PREF_LOCAL3` varchar(20) default NULL,
  `PREF_LOCAL4` varchar(20) default NULL,
  `PREF_GRPLOCAUX` varchar(15) default NULL,
  `PREF_EAVDERMAJ` date default NULL,
  `PREF_LICENCIE` varchar(45) default NULL,
  `PREF_TOUCHE` char(1) default NULL,
  `PREF_ETABLIS` varchar(6) default NULL,
  `PREF_AUTOCODIF` int(1) default NULL,
  `PREF_PRONUMCDE` int(16) default NULL,
  `PREF_TYPE` varchar(20) default NULL,
  `PREF_EQUIP_RUB1` varchar(15) default NULL,
  `PREF_EQUIP_RUB2` varchar(15) default NULL,
  `PREF_DIAGRAM` char(1) default NULL,
  `PREF_T1TVA` decimal(9,2) default NULL,
  `PREF_T2TVA` decimal(9,2) default NULL,
  `PREF_T3TVA` decimal(9,2) default NULL,
  `PREF_FOUR_RUB1` varchar(15) default NULL,
  `PREF_FOUR_RUB2` varchar(15) default NULL,
  `PREF_BIPRELIE` int(1) default NULL,
  `PREF_BIPCANAL` varchar(5) default NULL,
  `PREF_CDE_NBCOPIE` int(3) default NULL,
  `PREF_VERSION` varchar(7) default NULL,
  `PREF_MDP_GESCLEF` varchar(15) default NULL,
  `PREF_UT1` varchar(170) default NULL,
  `PREF_UT2` varchar(170) default NULL,
  `PREF_UT3` varchar(170) default NULL,
  `PREF_UT4` varchar(170) default NULL,
  `PREF_UT5` varchar(170) default NULL,
  `PREF_UT6` varchar(170) default NULL,
  `PREF_UT7` varchar(170) default NULL,
  `PREF_UT8` varchar(170) default NULL,
  `PREF_FOUR_RUB3` varchar(15) default NULL,
  `PREF_FOUR_RUB4` varchar(15) default NULL,
  `PREF_EQUIP_CODE1` varchar(15) default NULL,
  `PREF_EQUIP_CODE2` varchar(15) default NULL,
  `PREF_EQUIP_CODE3` varchar(15) default NULL,
  `PREF_ARTI_RUB1` varchar(15) default NULL,
  `PREF_ARTI_RUB2` varchar(15) default NULL,
  `PREF_BSM` int(1) default NULL,
  `PREF_BRM` int(1) default NULL,
  `PREF_IMP_FORMAT` int(1) default NULL,
  `PREF_EQUIP_DETAIL` int(1) default NULL,
  `PREF_EQUIP_DECOMP` int(1) default NULL,
  `PREF_EQUIP_STD` int(1) default NULL,
  `PREF_EQUIP_AMOAVA` int(1) default NULL,
  `PREF_EQUIP_DESSERT` int(1) default NULL,
  `PREF_EQUIP_OPERAT` int(1) default NULL,
  `PREF_OT_NBCOPIE` int(3) default NULL,
  `PREF_OT_TYPE` char(1) default NULL,
  `PREF_OT_EQUIP` int(1) default NULL,
  `PREF_OT_DETAIL` int(1) default NULL,
  `PREF_OT_DECOMP` int(1) default NULL,
  `PREF_OT_STD` int(1) default NULL,
  `PREF_OT_AMOAVA` int(1) default NULL,
  `PREF_OT_DB` varchar(20) default NULL,
  `PREF_OT_P1` varchar(20) default NULL,
  `PREF_OT_P2` varchar(20) default NULL,
  `PREF_OT_P3` varchar(20) default NULL,
  `PREF_OT_DOC` int(1) default NULL,
  `PREF_MAJPROGMAST` int(1) default NULL,
  `PREF_NBCARDETAIL` int(11) default NULL,
  `PREF_NBCRDETAIL` int(11) default NULL,
  `PREF_OT_GRAPH` varchar(20) default NULL,
  `PREF_COMP_RUB1` varchar(15) default NULL,
  `PREF_COMP_RUB2` varchar(15) default NULL,
  `PREF_GARANTIE` int(3) default NULL,
  `PREF_BSM_SUR_OT` int(1) default NULL,
  `PREF_BSMOT_AUTO` int(1) default NULL,
  `PREF_BSMOT_MAGREF` varchar(6) default NULL,
  `PREF_BSMOT_MAGDEF` varchar(6) default NULL,
  `PREF_NB_JOUR_OT` int(11) default NULL,
  `PREF_DOC_RUB1` varchar(15) default NULL,
  `PREF_DOC_RUB2` varchar(15) default NULL,
  `PREF_DOC_RUB3` varchar(15) default NULL,
  `PREF_OT_IMAGE` int(1) default NULL,
  `PREF_OT_IMAPRE1` varchar(6) default NULL,
  `PREF_OT_IMASUF` char(3) default NULL,
  `PREF_OT_SON` int(1) default NULL,
  `PREF_OT_SNDPRE1` varchar(6) default NULL,
  `PREF_OT_SNDSUF` char(3) default NULL,
  `PREF_OT_VIDEO` int(1) default NULL,
  `PREF_OT_VIDPRE1` varchar(6) default NULL,
  `PREF_OT_VIDSUF` char(3) default NULL,
  `PREF_ARMOIRE_MULTIMEDIA` text,
  `PREF_OT_IMAPRE2` varchar(6) default NULL,
  `PREF_OT_SNDPRE2` varchar(6) default NULL,
  `PREF_OT_VIDPRE2` varchar(6) default NULL,
  `PREF_OT_PLAN` int(1) default NULL,
  `PREF_OT_PLAPRE1` varchar(6) default NULL,
  `PREF_OT_PLAPRE2` varchar(6) default NULL,
  `PREF_OT_PLASUF` char(3) default NULL,
  `PREF_OT_DOCAUTO` int(1) default NULL,
  `PREF_OPE_CALTRA` int(1) default NULL,
  `PREF_OPE_CRPREC` int(1) default NULL,
  `PREF_OPE_RUB1` varchar(15) default NULL,
  `PREF_OPE_RUB2` varchar(15) default NULL,
  `PREF_CPTMES_AP` varchar(15) default NULL,
  `PREF_CPTMES_TOLER` int(1) default NULL,
  `PREF_CPTMES_COHER` int(1) default NULL,
  `PREF_BLOC_DIFFERENCIE` int(1) default NULL,
  `PREF_BLOC_CONTENU` int(1) default NULL,
  `PREF_BLOC_DURPREST` int(1) default NULL,
  `PREF_BLOC_DURGLOBAL` int(1) default NULL,
  `PREF_BLOC_TRAVSUP` int(1) default NULL,
  `PREF_BLOC_CREASUP` int(1) default NULL,
  `PREF_BLOC_FREQ` int(1) default NULL,
  `PREF_BLOC_MODE` int(1) default NULL,
  `PREF_BLOC_SAISON` int(1) default NULL,
  `PREF_BLOC_FUSEFA` int(1) default NULL,
  `PREF_BLOC_DOC` int(1) default NULL,
  `PREF_PCENTCPT` int(3) default NULL,
  `PREF_NEWDISOS` int(1) default NULL,
  `PREF_FREQ_NEWDISOS` int(11) default NULL,
  `PREF_OPE_INDICHEURE` int(1) default NULL,
  `PREF_MAJ_CALTRA` int(1) default NULL,
  `PREF_OT_IMATYP` varchar(8) default NULL,
  `PREF_OT_SNDTYP` varchar(8) default NULL,
  `PREF_OT_VIDTYP` varchar(8) default NULL,
  `PREF_PEC_CONSIGNE` int(1) default NULL,
  `PREF_BAT_RUB1` varchar(15) default NULL,
  `PREF_BAT_RUB2` varchar(15) default NULL,
  `PREF_BAT_RUB3` varchar(15) default NULL,
  `PREF_BAT_UNITESURF1` varchar(5) default NULL,
  `PREF_DEM_RUB1` varchar(15) default NULL,
  `PREF_DEM_RUB2` varchar(15) default NULL,
  `PREF_DEM_RUB3` varchar(15) default NULL,
  `PREF_SAT_CODE` varchar(4) default NULL,
  `PREF_SAT_CODEL` varchar(15) default NULL,
  `PREF_TYP_CODIF` int(3) default NULL,
  `PREF_TC1_PREFIXE` varchar(4) default NULL,
  `PREF_TC1_NUMORDRE` int(11) default NULL,
  `PREF_TC1_JUSTIF` int(3) default NULL,
  `PREF_TC2_UNIQUE` int(1) default NULL,
  `PREF_TC2_PREFIXE` varchar(4) default NULL,
  `PREF_TC2_NUMORDRE` int(11) default NULL,
  `PREF_TC2_JUSTIF` int(3) default NULL,
  `PREF_TYP_NORDRE` int(3) default NULL,
  `PREF_CONTACT_RUB1` varchar(15) default NULL,
  `PREF_CONTACT_RUB2` varchar(15) default NULL,
  `PREF_CONTACT_RUB3` varchar(15) default NULL,
  `PREF_CONTACT_RUB4` varchar(15) default NULL,
  `PREF_CONTACT_RUB5` varchar(15) default NULL,
  `PREF_CONTACT_RUB6` varchar(15) default NULL,
  `PREF_DEV1_SIGLE` char(2) default NULL,
  `PREF_DEV1_LIBEL` varchar(15) default NULL,
  `PREF_DEV2_SIGLE` char(2) default NULL,
  `PREF_DEV2_LIBEL` varchar(15) default NULL,
  `PREF_TXCONV` decimal(15,5) default NULL,
  `PREF_DBLDEVISE` int(1) default NULL,
  `PREF_DEVISE` int(1) default NULL,
  `PREF_ACQUITTEMENT` int(1) default NULL,
  `PREF_ACQUIT_OPE` int(1) default NULL,
  `PREF_EQUIP_BIP` varchar(4) default NULL,
  `PREF_PATHEMISPSION` text,
  `PREF_PATHRECEPSION` text,
  `PREF_PATHCOMPSION` text,
  `PREF_EQUIP_SOS` varchar(4) default NULL,
  `PREF_TOPE_SOS` char(2) default NULL,
  `PREF_OPE_GLOBAL` int(1) default NULL,
  `PREF_OPE_LMESSAGE` int(1) default NULL,
  `PREF_MAJACTIF_CONTENU` int(1) default NULL,
  `PREF_MAJACTIF_CONSIPARTI` int(1) default NULL,
  `PREF_MAJACTIF_DUREEPREVIS` int(1) default NULL,
  `PREF_MAJACTIF_AFFAIRE` int(1) default NULL,
  `PREF_MAJACTIF_EQUIPTRAV` int(1) default NULL,
  `PREF_MAJACTIF_FOURNIT` int(1) default NULL,
  `PREF_MAJACTIF_MESCPT` int(1) default NULL,
  `PREF_PROC_ANNULEE` int(1) default NULL,
  `PREF_PA_SUPERVISION` int(1) default NULL,
  `PREF_PA_ARCHIVAGE` int(1) default NULL,
  `PREF_PA_RECONDUCTION` int(1) default NULL,
  `PREF_PUBLIC_DATA` int(1) default NULL,
  `PREF_SAT_ITEM1` varchar(10) default NULL,
  `PREF_SAT_ITEM2` varchar(10) default NULL,
  `PREF_SAT_ITEM3` varchar(25) default NULL,
  `PREF_SAT_ITEM4` varchar(25) default NULL,
  `PREF_PRONUMCGDE` int(11) default NULL,
  `PREF_PREFIXCGDE` varchar(4) default NULL,
  `PREF_PRONUMCGAT` int(11) default NULL,
  `PREF_CONSIGNATION` int(1) default NULL,
  `PREF_CGDE_LSTEQUIP` int(1) default NULL,
  `PREF_CGDE_LSTLOCAUX` int(1) default NULL,
  `PREF_CGDE_LSTSERVICES` int(1) default NULL,
  `PREF_CGDE` varchar(30) default NULL,
  `PREF_CGDE_NBJOUR` int(3) default NULL,
  `PREF_ENVOI_SMS` int(1) default NULL,
  `PREF_ACCUS_SMS` int(1) default NULL,
  `PREF_RETOUR_SMS` int(1) default NULL,
  `PREF_CR_SMS` int(1) default NULL,
  `PREF_RETOUR1` int(1) default NULL,
  `PREF_RETOUR2` int(1) default NULL,
  `PREF_RETOUR3` int(1) default NULL,
  `PREF_RETOUR4` int(1) default NULL,
  `PREF_ENVSMS_MSG` text,
  `PREF_RET1SMS_MSG` text,
  `PREF_RET2SMS_MSG` text,
  `PREF_RET3SMS_MSG` text,
  `PREF_RET4SMS_MSG` text,
  `PREF_PATHEMIS_SMS` text,
  `PREF_PATHRECEP_SMS` text,
  `PREF_NEWDIWEB` int(1) default NULL,
  `PREF_FREQ_NEWMSGSMS` int(11) default NULL,
  `PREF_PRONUMCGATT` int(11) default NULL,
  `PREF_PREFIXCGATT` varchar(4) default NULL,
  `PREF_CG_FICHE_PATH` text,
  `PREF_CG_FICHE_EXCEL` int(1) default NULL,
  `PREF_PATHIDENT_SMS` text,
  `PREF_ACQUI_SMS_INFO` int(1) default NULL,
  `PREF_ACQSMSINF_MSG` text,
  `PREF_ACQUI_SMS_REFUS` varchar(10) default NULL,
  `PREF_FLAGRECEP_SMS` int(1) default NULL,
  `PREF_TEMPO_SMS` int(16) default NULL,
  `PREF_CGDE_CTRL` varchar(25) default NULL,
  `PREF_CGDE_POLE` varchar(25) default NULL,
  `PREF_FUSEFFAC` int(1) default NULL,
  `PREF_FUSEFFAC_TYPE` int(1) default NULL,
  `PREF_FUSEFFAC_POURCENT` int(3) default NULL,
  `PREF_PDA_PATHDATA` text,
  `PREF_PDA_OA_TLJ` int(1) default NULL,
  `PREF_ACQUIT_OPE_CRDIRECT` int(1) default NULL,
  `PREF_NOMBASESMS` varchar(30) default NULL,
  `PREF_PDA_DS_TLJ` int(1) default NULL,
  `PREF_EMAIL_ENVOIE1` int(1) default NULL,
  `PREF_EMAIL_ENVOIE2` int(1) default NULL,
  `PREF_EMAIL_ENVOIE3` int(1) default NULL,
  `PREF_EMAIL_ENVOIE4` int(1) default NULL,
  `PREF_EMAIL_NOMFROM` varchar(40) default NULL,
  `PREF_EMAIL_ADRFROM` varchar(45) default NULL,
  `PREF_EMAIL_POP3` varchar(40) default NULL,
  `PREF_EMAIL_SMTP` varchar(40) default NULL,
  `PREF_EMAIL_DESTDMD1` int(1) default NULL,
  `PREF_EMAIL_DESTTRAV1` int(1) default NULL,
  `PREF_EMAIL_DESTSUP1` int(1) default NULL,
  `PREF_EMAIL_DESTFIXE1` int(1) default NULL,
  `PREF_EMAIL_DESTDMD2` int(1) default NULL,
  `PREF_EMAIL_DESTTRAV2` int(1) default NULL,
  `PREF_EMAIL_DESTSUP2` int(1) default NULL,
  `PREF_EMAIL_DESTFIXE2` int(1) default NULL,
  `PREF_EMAIL_DESTDMD3` int(1) default NULL,
  `PREF_EMAIL_DESTTRAV3` int(1) default NULL,
  `PREF_EMAIL_DESTSUP3` int(1) default NULL,
  `PREF_EMAIL_DESTFIXE3` int(1) default NULL,
  `PREF_EMAIL_DESTDMD4` int(1) default NULL,
  `PREF_EMAIL_DESTTRAV4` int(1) default NULL,
  `PREF_EMAIL_DESTSUP4` int(1) default NULL,
  `PREF_EMAIL_DESTFIXE4` int(1) default NULL,
  `PREF_EMAIL_FIXE1` varchar(45) default NULL,
  `PREF_EMAIL_FIXE2` varchar(45) default NULL,
  `PREF_EMAIL_FIXE3` varchar(45) default NULL,
  `PREF_EMAIL_FIXE4` varchar(45) default NULL,
  `PREF_LST1_EMT_SEQ` text,
  `PREF_LST2_EMT_SEQ` text,
  `PREF_LST3_EMT_SEQ` text,
  `PREF_LST4_EMT_SEQ` text,
  `PREF_CONFIRM1` int(1) default NULL,
  `PREF_CONFIRM2` int(1) default NULL,
  `PREF_CONFIRM3` int(1) default NULL,
  `PREF_CONFIRM4` int(1) default NULL,
  `PREF_PATHRECEP_EMAIL` text,
  `PREF_PROFIL_MSG_INTERNE` varchar(45) default NULL,
  `PREF_PROFIL_MDP` varchar(15) default NULL,
  `PREF_TYP_SERVER` int(3) default NULL,
  `PREF_EQUIP_SEL_LOC` int(1) default NULL,
  `PREF_EQUIP_SEL_TYP` int(3) default NULL,
  `PREF_DEMANDEUR` char(1) default NULL,
  `PREF_DECOMP_AUTO` int(1) default NULL,
  `PREF_DECOMP_CONFIRM` int(1) default NULL,
  `PREF_PDA_OA_XJOUR` int(11) default NULL,
  `PREF_PDA_DS_XJOUR` int(11) default NULL,
  `PREF_PDA_OA_DERSYNC` date default NULL,
  `PREF_PDA_DS_DERSYNC` date default NULL,
  `PREF_PDA_OA_PROSYNC` date default NULL,
  `PREF_PDA_DS_PROSYNC` date default NULL,
  `PREF_PDA_PAR_DERSYNC` date default NULL,
  `PREF_DEM_MODE` int(3) default NULL,
  `PREF_DIEXT_PATHDATA` text,
  `PREF_DIEXT_PATHPOUB` text,
  `PREF_FREQ_NEWDIEXT` int(11) default NULL,
  `PREF_ADRLIV_GLOBAL` int(1) default NULL,
  `PREF_ADRLIV_DEF` varchar(10) default NULL,
  `PREF_BKP_HEURE` date default NULL,
  `PREF_BKP_DUREE` int(11) default NULL,
  `PREF_BKP_PERIOTYP` char(1) default NULL,
  `PREF_BKP_PERIOJOUR` int(3) default NULL,
  `PREF_BKP_DATEDEB` date default NULL,
  `PREF_BKP_DATEPRO` date default NULL,
  `PREF_BKP_PATHFIC` text,
  `PREF_BKP_IO` int(1) default NULL,
  `PREF_EQUIP_SEL_UNIC` int(1) default NULL,
  `PREF_TRN_ANN` int(3) default NULL,
  `PREF_TRN_SUP` int(3) default NULL,
  `PREF_TRN_FAIT_VISIB` int(1) default NULL,
  `PREF_TRN_OK_VISIB` int(1) default NULL,
  `PREF_TRN_P_VISIB` varchar(10) default NULL,
  `PREF_TRN_N_VISIB` varchar(10) default NULL,
  `PREF_TRN_CM_VISIB` varchar(10) default NULL,
  `PREF_TRN_F_VISIB` varchar(10) default NULL,
  `PREF_TRN_L_VISIB` varchar(10) default NULL,
  `PREF_REGRP_CRTRN` int(3) default NULL,
  `PREF_REGRP_CRMD_OPER` int(3) default NULL,
  `PREF_REGRP_CRMD_OPER_CONF` int(3) default NULL,
  `PREF_TRN_TPP_DEF` int(3) default NULL,
  `PREF_TRN_TPR_DEF` int(3) default NULL,
  `PREF_ELEM_CONCERN_OBLIG` int(1) default NULL,
  `PREF_OPER_RETARD_COL_TXT` int(11) default NULL,
  `PREF_OPER_RETARD_COL_BCKGD` int(11) default NULL,
  `PREF_OPER_REFUS_COL_TXT` int(11) default NULL,
  `PREF_OPER_REFUS_COL_BCKGD` int(11) default NULL,
  `PREF_OPER_RELANCE_COL_TXT` int(11) default NULL,
  `PREF_OPER_RELANCE_COL_BCKGD` int(11) default NULL,
  `PREF_COM_RUB1` varchar(15) default NULL,
  `PREF_COM_RUB2` varchar(15) default NULL,
  `PREF_PRNTRN_LST_DET` int(1) default NULL,
  `PREF_PRNTRN_LST_AVEC_DET` int(3) default NULL,
  `PREF_PRNTRN_AVEC_OT_SEP` int(1) default NULL,
  `PREF_OT_TYPE_TRN` char(1) default NULL,
  `PREF_OT_EQUIP_TRN` int(1) default NULL,
  `PREF_OT_DETAIL_TRN` int(1) default NULL,
  `PREF_OT_DECOMP_TRN` int(1) default NULL,
  `PREF_OT_STD_TRN` int(1) default NULL,
  `PREF_OT_AMOAVA_TRN` int(1) default NULL,
  `PREF_OT_DOC_TRN` int(1) default NULL,
  `PREF_UPD_ET_PREVEQUIP` int(3) default NULL,
  `PREF_PRNTRN_REP_TR` int(1) default NULL,
  `PREF_PALM_SYNC_ACTIVE` int(1) default NULL,
  `PREF_REPORTING_PARAMETRED` int(1) default NULL,
  `PREF_CPT_MES_INTERF` int(3) default NULL,
  PRIMARY KEY  (`PREF_SEQ`),
  KEY `PREF_TITRE` (`PREF_TITRE`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `t_fparam_3`
--

DROP TABLE IF EXISTS `t_fparam_3`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `t_fparam_3` (
  `PREF2_SEQ` int(11) NOT NULL auto_increment,
  `PREF2_SOSM_SET_DFP` int(1) default NULL,
  `PREF2_DUREEPRESP_VISIB` int(1) default NULL,
  `PREF2_CR_DIR_INDIC_CODE` int(1) default NULL,
  `PREF2_CLIENT_TIMEZONE_FK` int(11) default NULL,
  `PREF2_SERVER_TIMEZONE_FK` int(11) default NULL,
  `PREF2_MANAGE_TIMEZONE` int(1) default NULL,
  `PREF2_CPLOCA_ENBL` int(1) default NULL,
  `PREF2_CPLOCA_CPOT_FIRST` int(1) default NULL,
  `PREF2_AUTO_STOP_ENABLED` int(1) default NULL,
  `PREF2_AUTO_STOP_HOUR` date default NULL,
  `PREF2_AUTO_STOP_DURATION` int(11) default NULL,
  `PREF2_PLANXL_DATA_PATH` varchar(255) default NULL,
  `PREF2_INDC_SAVE_BEGIN_HOUR` date default NULL,
  `PREF2_INDC_SAVE_TYPE` decimal(2,0) default NULL,
  `PREF2_INDC_DAY_SPENT` decimal(10,0) default NULL,
  `PREF2_INDC_BEGIN_date` date default NULL,
  `PREF2_INDC_NEXT_date` date default NULL,
  `PREF2_INDC_AUTO_SAVE_INDICATOR` int(1) default NULL,
  `PREF2_ENVOI_BB` int(1) default NULL,
  `PREF2_ACCUS_BB` int(1) default NULL,
  `PREF2_TEMPO_BB` decimal(15,0) default NULL,
  `PREF2_NEWMSG_BB` decimal(10,0) default NULL,
  `PREF2_FLAGRECEP_BB` int(1) default NULL,
  `PREF2_OPE_PREV_CALC_MTHD` decimal(2,0) default NULL,
  `PREF2_OPE_REAL_CALC_MTHD` decimal(2,0) default NULL,
  `PREF2_OF_SERVICE_VISIBLE` int(1) default NULL,
  `PREF2_OF_REQUESTOR_VISIBLE` int(1) default NULL,
  `PREF2_OF_SERVICE_CONSOLIDATION` int(1) default NULL,
  `PREF2_DFO_GST_FOURNITURE` int(1) default NULL,
  `PREF2_DFO_MAG_SEQ` decimal(10,0) default NULL,
  `PREF2_PWD_SIZE_MIN` decimal(2,0) default NULL,
  `PREF2_PWD_IS_ALPHANUM` int(1) default NULL,
  `PREF2_ACCOUNT_BLOCKING` int(1) default NULL,
  `PREF2_ACCOUNT_BLOCKING_NB_TRY` decimal(2,0) default NULL,
  PRIMARY KEY  (`PREF2_SEQ`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `t_fparam_web_1`
--

DROP TABLE IF EXISTS `t_fparam_web_1`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `t_fparam_web_1` (
  `PWEB_SEQ` int(11) NOT NULL default '0',
  `PWEB_PK` int(11) default NULL,
  `PWEB_LOGFILE_PATH` varchar(255) default NULL,
  `PWEB_TARGETDATA_PATH` varchar(255) default NULL,
  `PWEB_BKUP_BUSY` int(3) default NULL,
  `PWEB_START_TIME` time default NULL,
  `PWEB_START_DATE` date default NULL,
  `PWEB_START_PERIODICITY` int(11) default NULL,
  `PWEB_RETRY_NBR` int(11) default NULL,
  `PWEB_RETRY_MINUTES` int(3) default NULL,
  `PWEB_NPORT` int(11) default NULL,
  `PWEB_DIT_OBLIG_DEM` int(1) default NULL,
  `PWEB_DIT_OBLIG_LIBELLE` int(1) default NULL,
  `PWEB_DIT_OBLIG_DETAIL` int(1) default NULL,
  `PWEB_DIT_OBLIG_BAT` int(1) default NULL,
  `PWEB_DIT_OBLIG_ZONE` int(1) default NULL,
  `PWEB_DIT_OBLIG_LOCAL` int(1) default NULL,
  `PWEB_DIT_OBLIG_RUBCOMP1` int(1) default NULL,
  `PWEB_DIT_OBLIG_RUBCOMP2` int(1) default NULL,
  `PWEB_DIT_ADD_RUBCOMP1` int(1) default NULL,
  `PWEB_DIT_ADD_RUBCOMP2` int(1) default NULL,
  `PWEB_DIT_FIGE_RUBCOMP1` int(1) default NULL,
  `PWEB_DIT_FIGE_RUBCOMP2` int(1) default NULL,
  `PWEB_ACCES` int(1) default NULL,
  `PWEB_ACCES_TYPE` int(1) default NULL,
  `PWEB_MODESITE` int(3) default NULL,
  `PWEB_SITEDEFAUT` varchar(8) default NULL,
  `PWEB_DIT_DEM_PLANIF` int(1) default NULL,
  `PWEB_DIT_NB_JOUR_PLANIF` int(11) default NULL,
  `PWEB_DIT_LOCALIS_DEM` int(1) default NULL,
  `PWEB_DIT_TDOM` int(1) default NULL,
  `PWEB_DIT_TTOPE` int(1) default NULL,
  `PWEB_DIT_GAMME_SITE` int(1) default NULL,
  `PWEB_DIT_DEMANDEUR_SITE` int(1) default NULL,
  `PWEB_PREF_DEMAR` int(1) default NULL,
  `PWEB_PREF_DEMINITIALE` varchar(5) default NULL,
  `PWEB_PREF_DEMCODE` varchar(25) default NULL,
  `PWEB_DIT_DETAIL_PREDEF` int(1) default NULL,
  `PWEB_DIT_PREDEF_GAMME` varchar(25) default NULL,
  `PWEB_DIT_DOMAINE_MAITRE` int(1) default NULL,
  `PWEB_DIT_ADD_CONSI_PARTI` int(1) default NULL,
  `PWEB_SERVER_IMG` text,
  `PWEB_DIT_RELANCE` int(1) default NULL,
  `PWEB_DIT_DEM_ENREG` int(1) default NULL,
  `PWEB_DIT_REDONDANCE` int(1) default NULL,
  `PWEB_DIT_LOC_REDOND` char(1) default NULL,
  `PWEB_DIT_TEMPS_REDOND` int(1) default NULL,
  `PWEB_DIT_HEURE_REDOND` int(11) default NULL,
  `PWEB_DIT_LIM_SERV` int(1) default NULL,
  `PWEB_SRE_GST_GRP` int(3) default NULL,
  `PWEB_SRE_GST_RSRV` int(3) default NULL,
  `PWEB_SRE_GST_JOURS_SEM` int(3) default NULL,
  `PWEB_SRE_GST_CONFID` int(3) default NULL,
  `PWEB_RST_MNU_VISIBLE` int(1) default NULL,
  `PWEB_THEM_CODE_PAGE` char(2) default NULL,
  `PWEB_THEM_CODE_ACCU` char(2) default NULL,
  `PWEB_SRE_OBLIG_LIBELLE` int(1) default NULL,
  `PWEB_SRE_OBLIG_DEM` int(1) default NULL,
  `PWEB_SRE_OBLIG_DEM_TEL` int(1) default NULL,
  `PWEB_SRE_OBLIG_DEM_EMAIL` int(1) default NULL,
  `PWEB_SRE_CONFIG_ACTIV` int(3) default NULL,
  `PWEB_SRE_ADD_PREST` int(1) default NULL,
  `PWEB_SRE_ADD_EQUIP` int(1) default NULL,
  `PWEB_SRE_PLG_HEUDEB` time default NULL,
  `PWEB_SRE_PLG_HEUFIN` time default NULL,
  `PWEB_GEN_TYPE_LIB_SERVICE` int(3) default NULL,
  `PWEB_SRE_GCFD_INFO_DEM` int(3) default NULL,
  `PWEB_DIT_REGROUP_DOMAINE` int(1) default NULL,
  `PWEB_ANN_GST_CONFID` int(3) default NULL,
  `PWEB_ACV_GST_CONFID_EMT` int(3) default NULL,
  `PWEB_DIT_GST_CONFID` int(3) default NULL,
  `PWEB_GEN_LIM_LST_DEM` int(3) default NULL,
  `PWEB_GEN_LIM_DEM_SITE` int(1) default NULL,
  `PWEB_GEN_LIM_DEM_SERV` int(1) default NULL,
  `PWEB_ACV_GST_CONF_SIMP` int(3) default NULL,
  `PWEB_ACV_GST_BADGE` int(3) default NULL,
  `PWEB_ACV_GST_BADGE_TYPE` int(3) default NULL,
  `PWEB_ACV_GST_PED` int(3) default NULL,
  `PWEB_ACV_GST_PED_TYPE` int(3) default NULL,
  `PWEB_ACV_GST_GSORT` int(3) default NULL,
  `PWEB_ACV_OBLIG_DEM` int(1) default NULL,
  `PWEB_ACV_OBLIG_DEM_TEL` int(1) default NULL,
  `PWEB_ACV_OBLIG_HEURE` int(1) default NULL,
  `PWEB_ACV_OBLIG_BAT` int(1) default NULL,
  `PWEB_ACV_OBLIG_ZONE` int(1) default NULL,
  `PWEB_ACV_OBLIG_LOCAL` int(1) default NULL,
  `PWEB_REP_AFF_HEURE` int(1) default NULL,
  `PWEB_REP_AFF_COUT` int(1) default NULL,
  `PWEB_SERVER_SERVICE_NT` text,
  `PWEB_CRW_NO_MAX_PRN_INT` int(11) default NULL,
  `PWEB_CRW_DIT_OBLIG_DEM` int(1) default NULL,
  `PWEB_CRW_DIT_OBLIG_LIBELLE` int(1) default NULL,
  `PWEB_CRW_DIT_OBLIG_DETAIL` int(1) default NULL,
  `PWEB_CRW_DIT_OBLIG_BAT` int(1) default NULL,
  `PWEB_CRW_DIT_OBLIG_ZONE` int(1) default NULL,
  `PWEB_CRW_DIT_OBLIG_LOCAL` int(1) default NULL,
  `PWEB_CRW_DIT_OBLIG_RUBCOMP1` int(1) default NULL,
  `PWEB_CRW_DIT_OBLIG_RUBCOMP2` int(1) default NULL,
  `PWEB_CRW_DIT_OBLIG_EQIP` int(1) default NULL,
  `PWEB_CRW_DIT_OBLIG_TDEF` int(1) default NULL,
  `PWEB_CRW_DIT_OBLIG_AFFA` int(1) default NULL,
  `PWEB_LOG_ENABLED` int(1) default NULL,
  `PWEB_DIT_NO_MAX_PRN_INT` int(11) default NULL,
  `PWEB_MOD_ID` int(3) default NULL,
  `PWEB_MOD_NAME` varchar(50) default NULL,
  `PWEB_MOD_SELECTED` int(1) default NULL,
  `PWEB_WWW_PATH` text,
  PRIMARY KEY  (`PWEB_SEQ`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `tache_elem`
--

DROP TABLE IF EXISTS `tache_elem`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `tache_elem` (
  `tael_seq` int(11) NOT NULL auto_increment,
  `tael_code` varchar(15) default NULL,
  `tael_libelle` varchar(40) default NULL,
  `tael_ttal_fk` int(11) default NULL,
  `tael_tope_fk` int(11) default NULL,
  `tael_denominota` tinyint(3) unsigned default NULL,
  `tael_contenu` text,
  `tael_jourmoins` int(11) default NULL,
  `tael_jourplus` int(11) default NULL,
  PRIMARY KEY  (`tael_seq`),
  KEY `tael_code` (`tael_code`),
  KEY `tael_libelle` (`tael_libelle`),
  KEY `tael_ttal_fk` (`tael_ttal_fk`),
  KEY `tael_tope_fk` (`tael_tope_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `type_program_prev`
--

DROP TABLE IF EXISTS `type_program_prev`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE type_program_prev
(
    `tppr_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `tppr_code` varchar(6) , 
    `tppr_libelle` varchar(20) , 
   PRIMARY KEY ( `tppr_seq` )  
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `typedefaut`
--

DROP TABLE IF EXISTS `typedefaut`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `typedefaut` (
  `tdef_seq` int(11) NOT NULL auto_increment,
  `tdef_code` varchar(30) default NULL,
  `tdef_dom_fk` int(11) default NULL,
  PRIMARY KEY  (`tdef_seq`),
  KEY `tdef_code` (`tdef_code`),
  KEY `tdef_dom_fk` (`tdef_dom_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `typedocument`
--
DROP TABLE IF EXISTS `typedocument`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE typedocument
(
    `tdoc_seq` int(11) NOT NULL AUTO_INCREMENT,
    `tdoc_code` varchar(8) ,
    `tdoc_libelle` varchar(15) ,
   PRIMARY KEY ( `tdoc_seq` )
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;



--
-- Table structure for table `typedesserte`
--

DROP TABLE IF EXISTS typedesserte;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE typedesserte
(

    `tdes_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `tdes_code` varchar(10) , 
    `tdes_libelle` varchar(30) , 
   PRIMARY KEY ( `tdes_seq` )  
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;


--
-- Table structure for table `typelocal`
--

DROP TABLE IF EXISTS `typelocal`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `typelocal` (
  `tloca_seq` int(11) NOT NULL auto_increment,
  `tloca_code` varchar(15) NOT NULL,
  `tloca_libelle` varchar(30) NOT NULL,
  PRIMARY KEY  (`tloca_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `typeoperation`
--

DROP TABLE IF EXISTS `typeoperation`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `typeoperation` (
  `tope_seq` int(11) NOT NULL auto_increment,
  `tope_code` char(2) default NULL,
  `tope_libelle` varchar(30) default NULL,
  `tope_ordre` int(3) default '0',
  `tope_catop_fk` int(11) NOT NULL default '0',
  `tope_est_visible_di` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`tope_seq`),
  UNIQUE KEY `TOPE_SEQ` (`tope_seq`),
  KEY `TOPE_CODE` (`tope_code`),
  KEY `tope_catop_fk` (`tope_catop_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `typeprojet`
--

DROP TABLE IF EXISTS `typeprojet`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `typeprojet` (
  `tproj_seq` int(11) NOT NULL auto_increment,
  `tproj_code` varchar(8) default NULL,
  `tproj_libelle` varchar(20) default NULL,
  PRIMARY KEY  (`tproj_seq`),
  KEY `tproj_code` (`tproj_code`),
  KEY `tproj_libelle` (`tproj_libelle`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `typetachelem`
--

DROP TABLE IF EXISTS `typetachelem`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `typetachelem` (
  `ttal_seq` int(11) NOT NULL auto_increment,
  `ttal_code` char(2) default NULL,
  `ttal_libelle` varchar(20) default NULL,
  `ttal_ordre` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`ttal_seq`),
  KEY `ttal_code` (`ttal_code`),
  KEY `ttal_libelle` (`ttal_libelle`),
  KEY `ttal_ordre` (`ttal_ordre`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `visites`
--

DROP TABLE IF EXISTS `visites`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `visites` (
  `vis_seq` int(11) NOT NULL auto_increment,
  `vis_zus_inscri_fk` int(11) NOT NULL default '0',
  `vis_zus_fin_fk` int(11) default NULL,
  `vis_dem_fk` int(11) default NULL,
  `vis_sloc_fk` int(11) default NULL,
  `vis_bat_fk` int(11) default NULL,
  `vis_zone_fk` int(11) default NULL,
  `vis_loca_fk` int(11) default NULL,
  `vis_date` date NOT NULL default '0000-00-00',
  `vis_heure` time NOT NULL default '00:00:00',
  `vis_demandeur` varchar(50) default NULL,
  `vis_telephone` varchar(20) NOT NULL,
  `vis_email` varchar(40) NOT NULL,
  `vis_commentaires` text,
  `vis_etat` char(2) NOT NULL default 'AO',
  `vis_date_inscri` date NOT NULL default '0000-00-00',
  `vis_heure_inscri` time NOT NULL default '00:00:00',
  `vis_date_fin` date default NULL,
  `vis_heure_fin` time default NULL,
  PRIMARY KEY  (`vis_seq`),
  KEY `vis_seq` (`vis_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `visiteurs`
--

DROP TABLE IF EXISTS `visiteurs`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `visiteurs` (
  `vst_seq` int(11) NOT NULL auto_increment,
  `vst_vis_fk` int(11) NOT NULL default '0',
  `vst_cont_fk` int(11) default NULL,
  `vst_sloc_fk` int(11) NOT NULL default '0',
  `vst_dem_fk` int(11) NOT NULL default '0',
  `vst_civilite` varchar(5) NOT NULL,
  `vst_nom` varchar(25) NOT NULL,
  `vst_prenom` varchar(25) NOT NULL,
  `vst_service` varchar(40) NOT NULL,
  `vst_fonction` varchar(40) default NULL,
  `vst_telephone` varchar(18) default NULL,
  `vst_email` varchar(50) NOT NULL,
  `vst_envoi_mail` enum('0','1') default '0',
  `vst_heure_confirme` time default NULL,
  `vst_heure_sortie` time default NULL,
  `vst_pcsd_code` varchar(20) NOT NULL,
  `vst_badge` varchar(50) NOT NULL,
  `vst_etat` int(11) NOT NULL default '0',
  PRIMARY KEY  (`vst_seq`),
  KEY `vst_seq` (`vst_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `vocabulary`
--

DROP TABLE IF EXISTS `vocabulary`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `vocabulary` (
  `voc_seq` int(11) NOT NULL auto_increment,
  `voc_label` varchar(255) default NULL,
  `voc_code` varchar(127) NOT NULL,
  `voc_commentaire` varchar(255) default NULL,
  `voc_fr` varchar(255) default NULL,
  `voc_fr_modif` tinyint(3) unsigned NOT NULL default '0',
  `voc_f1` varchar(255) default NULL,
  `voc_f1_modif` tinyint(3) unsigned NOT NULL default '0',
  `voc_f2` varchar(255) default NULL,
  `voc_f2_modif` tinyint(3) unsigned NOT NULL default '0',
  `voc_f3` varchar(255) default NULL,
  `voc_f3_modif` tinyint(3) unsigned NOT NULL default '0',
  `voc_uk` varchar(255) default NULL,
  `voc_uk_modif` tinyint(3) unsigned NOT NULL default '0',
  `voc_canf` varchar(255) default NULL,
  `voc_canf_modif` tinyint(3) unsigned NOT NULL default '0',
  `voc_nl` varchar(255) default NULL,
  `voc_nl_modif` tinyint(3) unsigned NOT NULL default '0',
  `voc_sp` varchar(255) default NULL,
  `voc_sp_modif` tinyint(3) unsigned NOT NULL default '0',
  `voc_it` varchar(255) default NULL,
  `voc_it_modif` tinyint(3) unsigned NOT NULL default '0',
  `voc_all` varchar(255) default NULL,
  `voc_all_modif` tinyint(3) unsigned NOT NULL default '0',
  `voc_cj` varchar(255) default NULL,
  `voc_cj_modif` tinyint(3) unsigned NOT NULL default '0',
  `voc_ptg` varchar(255) default NULL,
  `voc_ptg_modif` tinyint(3) unsigned NOT NULL default '0',
  `voc_sk` varchar(255) default NULL,
  `voc_sk_modif` tinyint(3) unsigned NOT NULL default '0',
  PRIMARY KEY  (`voc_seq`),
  UNIQUE KEY `voc_code` (`voc_code`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_avance_circuit`
--

DROP TABLE IF EXISTS `wf_avance_circuit`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_avance_circuit` (
    `wfai_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `wfai_libelle` varchar(30) , 
    `wfai_regroupement` tinyint(3) unsigned , 
    `wfai_oper_fk` int(11) , 
    `wfai_etat` tinyint(3) unsigned , 
    `wfai_datefinmax` datetime ,
    `wfai_oper_modifiable` tinyint(3) unsigned ,
    `wfai_avan_fin_inchange` tinyint(3) unsigned ,
    `wfai_avan_fin_fk` int(11) ,
    `wfai_oper_plusieurs_fois` tinyint(3) unsigned,
   PRIMARY KEY ( `wfai_seq` ),
   KEY `wfai_oper_fk` (`wfai_oper_fk`),
   KEY `wfai_avan_fin_fk` (`wfai_avan_fin_fk`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_avance_etape`
--

DROP TABLE IF EXISTS `wf_avance_etape`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_avance_etape` (
    `wfae_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `wfae_wfai_fk` int(11) , 
    `wfae_etat` tinyint(3) unsigned , 
    `wfae_datelimite` datetime , 
    `wfae_libelle` varchar(30) , 
    `wfae_ordre` tinyint(3) unsigned , 
    `wfae_wfae_precedent_fk` int(11) , 
   PRIMARY KEY ( `wfae_seq` ),
   KEY `wfae_wfai_fk` (`wfae_wfai_fk`) ,
   KEY `wfae_wfae_precedent_fk` (`wfae_wfae_precedent_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_avance_presta`
--

DROP TABLE IF EXISTS `wf_avance_presta`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_avance_presta` (
     `wfap_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `wfap_wfae_fk` int(11) , 
    `wfap_zus_inscrit_fk` int(11) , 
    `wfap_etat` tinyint(3) unsigned , 
    `wfap_date` datetime , 
    `wfap_detail` text ,
    `wfap_valeur` varchar(10) , 
    `wfap_niveau` tinyint(3) unsigned , 
    `wfap_numpresta` tinyint(3) unsigned , 
    `wfap_numprestapere` varchar(30) , 
    `wfap_libelle` varchar(50) , 
    `wfap_typedonnee` varchar(15) , 
    `wfap_info` text , 
    `wfap_wfap_fk` int(11) , 
    `wfap_effet_validation` tinyint(3) unsigned , 
    `wfap_datecreation` datetime ,
    `wfap_zus_afairepar_fk` int(11) ,
    `wfap_dem_afairepar_fk` int(11) , 
    `wfap_cont_afairepar_fk` int(11) , 
    `wfap_afairepar_nom` varchar(60) , 
    `wfap_zus_realisepar_fk` int(11) , 
    `wfap_afairepar_mail` varchar(100) , 
    `wfap_confidentiel` tinyint(3) unsigned , 
    `wfap_date_premiere_consult` datetime , 
    `wfap_effet_refus` tinyint(3) unsigned ,
    `wfap_effet_survalidation` tinyint(3) unsigned , 
    `wfap_effet_surrefus` tinyint(3) unsigned , 
    `wfap_wfap_precedent_fk` int(11) , 
    `wfap_zus_surval_fk` int(11) , 
    `wfap_surval_mail` varchar(100) , 
    `wfap_detailvalidation` text , 
    `wfap_zus_avaliderpar_fk` int(11) , 
    `wfap_zus_validepar_fk` int(11) , 
    `wfap_datevalidation` datetime , 
    `wfap_user_direct` tinyint(3) unsigned ,
    `wfap_role_type` tinyint(3) unsigned ,
    `wfap_mlfo_fk` tinyint(3) unsigned , 
    `wfap_envoimail` tinyint(3) unsigned , 
    `wfap_surval_user_direct` tinyint(3) unsigned , 
    `wfap_surval_role_type` tinyint(3) unsigned , 
   PRIMARY KEY ( `wfap_seq` ),
   KEY `wfap_wfae_fk` (`wfap_wfae_fk`) ,
   KEY `wfap_zus_inscrit_fk` (`wfap_zus_inscrit_fk`) ,
   KEY `wfap_wfap_fk` (`wfap_wfap_fk`) ,
   KEY `wfap_zus_afairepar_fk` (`wfap_zus_afairepar_fk`) ,
   KEY `wfap_dem_afairepar_fk` (`wfap_dem_afairepar_fk`) ,               
   KEY `wfap_cont_afairepar_fk` (`wfap_cont_afairepar_fk`) ,   
   KEY `wfap_zus_realisepar_fk` (`wfap_zus_realisepar_fk`) ,   
   KEY `wfap_wfap_precedent_fk` (`wfap_wfap_precedent_fk`) ,   
   KEY `wfap_zus_surval_fk` (`wfap_zus_surval_fk`) ,   
   KEY `wfap_zus_avaliderpar_fk` (`wfap_zus_avaliderpar_fk`) ,   
   KEY `wfap_zus_validepar_fk` (`wfap_zus_validepar_fk`)                   
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_circuit`
--

DROP TABLE IF EXISTS `wf_circuit`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_circuit` (
    `wfci_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `wfci_libelle` varchar(30) , 
    `wfci_regroupement` tinyint(3) unsigned , 
    `wfci_delai_realisation` tinyint(3) unsigned ,
    `wfci_requete` varchar(100),
    `wfci_ordre` tinyint(3)unsigned ,
    `wfci_actif` tinyint(3)unsigned ,
    `wfci_evenement_code` varchar(100),
    `wfci_avan_deb_inchange` tinyint(3) unsigned ,
    `wfci_avan_deb_fk` int(11) ,
    `wfci_oper_modifiable` tinyint(3) unsigned , 
    `wfci_avan_fin_inchange` tinyint(3) unsigned , 
    `wfci_avan_fin_fk` int(11) ,
    `wfci_oper_plusieurs_fois` tinyint(3) unsigned,
   PRIMARY KEY ( `wfci_seq` ),
   KEY `wfci_avan_deb_fk` (`wfci_avan_deb_fk`),
   KEY `wfci_avan_fin_fk` (`wfci_avan_fin_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_devis`
--

DROP TABLE IF EXISTS `wf_devis`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_devis` (
  `wfde_seq` int(11) NOT NULL auto_increment,
  `wfde_objet` varchar(50) default NULL,
  `wfde_prefixe_code` varchar(20) default NULL,
  `wfde_code` varchar(20) NOT NULL,
  `wfde_indice` char(2) default NULL,
  `wfde_dest_civilite` varchar(5) default NULL,
  `wfde_dest_nom` varchar(25) default NULL,
  `wfde_dest_prenom` varchar(25) default NULL,
  `wfde_dest_service` varchar(30) default NULL,
  `wfde_dest_adresse` text,
  `wfde_dest_email` varchar(45) default NULL,
  `wfde_cout_ht` decimal(11,2) NOT NULL default '0.00',
  `wfde_taxe_libelle` varchar(100) NOT NULL,
  `wfde_taxe_valeur` varchar(30) NOT NULL default '0',
  `wfde_date` date NOT NULL default '0000-00-00',
  `wfde_heure` time NOT NULL default '00:00:00',
  `wfde_info` text,
  `wfde_opge_fk` int(11) default NULL,
  `wfde_zus_fk` int(11) NOT NULL default '0',
  `wfde_wfap_fk` int(11) default NULL,
  `wfde_suffixe_code` varchar(20) NOT NULL,
  `wfde_affiche_info` tinyint(5) NOT NULL default '0',
  `wfde_etat` tinyint(3) NOT NULL default '1',
  `wfde_dest_dem_fk` int(11) default NULL,
  `wfde_dest_cont_fk` int(11) default NULL,
  `wfde_dem_fk` int(11) default NULL,
  `wfde_cont_fk` int(11) default NULL,
  `wfde_detailacceptation` text,
  `wfde_heurevalidation` time default NULL,
  `wfde_datevalidation` date default NULL,
  `wfde_heureacceptation` time default NULL,
  `wfde_dateacceptation` date default NULL,
  `wfde_zus_avaliderpar_fk` int(11) NOT NULL default '0',
  `wfde_zus_validepar_fk` int(11) NOT NULL default '0',
  `wfde_zus_aaccepterpar_fk` int(11) NOT NULL default '0',
  `wfde_zus_acceptepar_fk` int(11) NOT NULL default '0',
  `wfde_detailvalidation` text NOT NULL,
  PRIMARY KEY  (`wfde_seq`),
  KEY `wfde_zus_avaliderpar_fk` (`wfde_zus_avaliderpar_fk`,`wfde_zus_validepar_fk`,`wfde_zus_aaccepterpar_fk`,`wfde_zus_acceptepar_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_devis_historique`
--

DROP TABLE IF EXISTS `wf_devis_historique`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_devis_historique` (
  `wfdh_seq` int(11) NOT NULL auto_increment,
  `wfdh_wfde_fk` int(11) NOT NULL default '0',
  `wfdh_libelle` varchar(50) default NULL,
  `wfdh_user` varchar(45) default NULL,
  `wfdh_date` date default NULL,
  `wfdh_heure` time default NULL,
  `wfdh_commentaire` text,
  PRIMARY KEY  (`wfdh_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_devis_ligne`
--

DROP TABLE IF EXISTS `wf_devis_ligne`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_devis_ligne` (
  `wfdl_seq` int(11) NOT NULL auto_increment,
  `wfdl_libelle` varchar(35) default NULL,
  `wfdl_desc` text,
  `wfdl_prix_ht` decimal(11,2) default '0.00',
  `wfdl_unite` varchar(10) default 'u',
  `wfdl_qte` decimal(11,3) default '0.000',
  `wfdl_total` decimal(11,2) default NULL,
  `wfdl_wfde_fk` int(11) default NULL,
  PRIMARY KEY  (`wfdl_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_devis_ligne_memo_modif`
--

DROP TABLE IF EXISTS `wf_devis_ligne_memo_modif`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_devis_ligne_memo_modif` (
  `wfim_seq` int(11) NOT NULL auto_increment,
  `wfim_libelle` varchar(35) default NULL,
  `wfim_desc` text,
  `wfim_prix_ht` decimal(11,2) default '0.00',
  `wfim_unite` varchar(10) default 'u',
  `wfim_qte` decimal(11,3) default '0.000',
  `wfim_total` decimal(11,2) default NULL,
  `wfim_wfmm_fk` int(11) default NULL,
  PRIMARY KEY  (`wfim_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_devis_ligne_modele`
--

DROP TABLE IF EXISTS `wf_devis_ligne_modele`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_devis_ligne_modele` (
  `wflm_seq` int(11) NOT NULL auto_increment,
  `wflm_libelle` varchar(35) default NULL,
  `wflm_desc` text,
  `wflm_prix_ht` decimal(11,2) default '0.00',
  `wflm_unite` varchar(10) default 'u',
  `wflm_qte` decimal(11,3) default '0.000',
  `wflm_wfn2_fk` int(11) default '0',
  `wflm_wfn3_fk` int(11) default '0',
  `wflm_wfdm_fk` int(11) default NULL,
  `wflm_total` decimal(11,2) default NULL,
  PRIMARY KEY  (`wflm_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_devis_memo_modif`
--

DROP TABLE IF EXISTS `wf_devis_memo_modif`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_devis_memo_modif` (
  `wfmm_seq` int(11) NOT NULL auto_increment,
  `wfmm_objet` varchar(50) default NULL,
  `wfmm_code` varchar(62) default NULL,
  `wfmm_destinataire` varchar(55) default NULL,
  `wfmm_dest_service` varchar(30) default NULL,
  `wfmm_dest_adresse` text,
  `wfmm_dest_email` varchar(45) default NULL,
  `wfmm_cout_ht` decimal(11,2) NOT NULL default '0.00',
  `wfmm_taxe_libelle` varchar(100) default NULL,
  `wfmm_taxe_valeur` varchar(30) NOT NULL default '0',
  `wfmm_date` date NOT NULL default '0000-00-00',
  `wfmm_heure` time NOT NULL default '00:00:00',
  `wfmm_info` text,
  `wfmm_operation` varchar(50) default NULL,
  `wfmm_zuser` varchar(45) NOT NULL default '0',
  `wfmm_wfde_fk` int(11) default NULL,
  `wfmm_wfap_fk` int(11) default NULL,
  PRIMARY KEY  (`wfmm_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_devis_modele`
--

DROP TABLE IF EXISTS `wf_devis_modele`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_devis_modele` (
  `wfdm_seq` int(11) NOT NULL auto_increment,
  `wfdm_libelle` varchar(100) default NULL,
  `wfdm_taxe_libelle` varchar(100) default NULL,
  `wfdm_taxe_valeur` varchar(30) default '0',
  `wfdm_zus_fk` int(11) default '0',
  PRIMARY KEY  (`wfdm_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_devis_niv1`
--

DROP TABLE IF EXISTS `wf_devis_niv1`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_devis_niv1` (
  `wfn1_seq` int(11) NOT NULL auto_increment,
  `wfn1_libelle` varchar(35) NOT NULL,
  `wfn1_ordre` tinyint(2) NOT NULL default '0',
  PRIMARY KEY  (`wfn1_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_devis_niv2`
--

DROP TABLE IF EXISTS `wf_devis_niv2`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_devis_niv2` (
  `wfn2_seq` int(11) NOT NULL auto_increment,
  `wfn2_libelle` varchar(35) default NULL,
  `wfn2_desc` text,
  `wfn2_prix_ht` decimal(11,2) default NULL,
  `wfn2_unite` varchar(10) default 'u',
  `wfn2_wfn1_fk` int(11) default NULL,
  `wfn2_ordre` tinyint(2) default '0',
  `wfn2_zus_fk` int(11) default '0',
  PRIMARY KEY  (`wfn2_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_devis_niv3`
--

DROP TABLE IF EXISTS `wf_devis_niv3`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_devis_niv3` (
  `wfn3_seq` int(11) NOT NULL auto_increment,
  `wfn3_libelle` varchar(35) default NULL,
  `wfn3_desc` text,
  `wfn3_prix_ht` decimal(11,2) default NULL,
  `wfn3_unite` varchar(10) default 'u',
  `wfn3_wfn2_fk` int(11) default NULL,
  `wfn3_ordre` tinyint(2) default '0',
  `wfn3_zus_fk` int(11) default '0',
  PRIMARY KEY  (`wfn3_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_etape`
--

DROP TABLE IF EXISTS `wf_etape`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_etape` (
   `wfet_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `wfet_wfci_fk` int(11) ,
    `wfet_libelle` varchar(30) , 
    `wfet_ordre` tinyint(3) unsigned ,
    `wfet_rea_apres_prec` tinyint(3) unsigned , 
    `wfet_wfet_precedent_fk` int(11) , 
   PRIMARY KEY ( `wfet_seq` ),
  KEY `wfet_wfci_fk` (`wfet_wfci_fk`),
  KEY `wfet_wfet_precedent_fk` (`wfet_wfet_precedent_fk`)    
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;



--
-- Table structure for table `wf_filtre`
--

DROP TABLE IF EXISTS `wf_filtre`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_filtre` (
    `wffi_seq` int(11) NOT NULL AUTO_INCREMENT, 
    `wffi_wfci_fk` int(11) , 
    `wffi_requete` varchar(100) ,
    `wffi_ordre` tinyint(3) unsigned , 
    `wffi_actif` tinyint(3) unsigned , 
    `wffi_evenement_code` varchar(10),
   PRIMARY KEY ( `wffi_seq` ),
  KEY `wffi_wfci_fk` (`wffi_wfci_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_historique`
--

DROP TABLE IF EXISTS `wf_historique`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_historique` (
  `wfhi_seq` int(11) NOT NULL auto_increment,
  `wfhi_opge_fk` int(11) NOT NULL default '0',
  `wfhi_libelle` varchar(50) default NULL,
  `wfhi_user` varchar(45) default NULL,
  `wfhi_date` date default NULL,
  `wfhi_heure` time default NULL,
  `wfhi_commentaire` text,
  `wfhi_confidentiel` tinyint(1) default NULL,
  PRIMARY KEY  (`wfhi_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_prestation`
--

DROP TABLE IF EXISTS `wf_prestation`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_prestation` (
    `wfpr_seq` int(11) NOT NULL AUTO_INCREMENT,
    `wfpr_wfet_fk` int(11) ,
    `wfpr_numpresta` tinyint(3) unsigned,
    `wfpr_libelle` varchar(50) ,
    `wfpr_typedonnee` varchar(15) , 
    `wfpr_effet_validation` tinyint(3) unsigned , 
    `wfpr_effet_refus` tinyint(3) unsigned , 
    `wfpr_effet_survalidation` tinyint(3) unsigned , 
    `wfpr_effet_surrefus` tinyint(3) unsigned , 
    `wfpr_zus_afairepar_fk` int(11) ,
    `wfpr_afairepar_nom` varchar(60) , 
    `wfpr_afairepar_mail` varchar(100) , 
    `wfpr_zus_surval_fk` int(11) , 
    `wfpr_surval_mail` varchar(100) , 
    `wfpr_rea_apres_prec` tinyint(3) unsigned , 
    `wfpr_wfpr_precedent_fk` int(11) , 
    `wfpr_confidentiel` tinyint(3) unsigned , 
    `wfpr_user_direct` tinyint(3) unsigned , 
    `wfpr_role_type` tinyint(3) unsigned , 
    `wfpr_mlfo_fk` tinyint(3) unsigned , 
    `wfpr_envoimail` tinyint(3) unsigned , 
    `wfpr_surval_user_direct` tinyint(3) unsigned , 
    `wfpr_surval_role_type` tinyint(3) unsigned , 
    `wfpr_detail` text,
   PRIMARY KEY ( `wfpr_seq` )
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

CREATE  INDEX wfpr_wfet_fk ON `wf_prestation` (wfpr_wfet_fk);

CREATE  INDEX wfpr_zus_afairepar_fk ON `wf_prestation` (wfpr_zus_afairepar_fk);

CREATE  INDEX wfpr_zus_surval_fk ON `wf_prestation` (wfpr_zus_surval_fk);

CREATE  INDEX wfpr_wfpr_precedent_fk ON `wf_prestation` (wfpr_wfpr_precedent_fk);


--
-- Table structure for table `wf_taxe`
--

DROP TABLE IF EXISTS `wf_taxe`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_taxe` (
  `wftx_seq` int(11) NOT NULL auto_increment,
  `wftx_libelle` varchar(50) default NULL,
  `wftx_valeur` decimal(4,3) default '0.000',
  `wftx_ordre` tinyint(2) default '0',
  PRIMARY KEY  (`wftx_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `wf_validation_declencheur`
--

DROP TABLE IF EXISTS `wf_validation_declencheur`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `wf_validation_declencheur` (
  `wfvd_seq` int(11) NOT NULL auto_increment,
  `wfvd_zus_fk` int(11) NOT NULL default '0',
  `wfvd_requete` text,
  `wfvd_typedonnee` varchar(15) default NULL,
  `wfvd_ordre` tinyint(3) default NULL,
  `wfvd_libelle` varchar(100) default NULL,
  PRIMARY KEY  (`wfvd_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `xmig_batiment`
--

DROP TABLE IF EXISTS `xmig_batiment`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `xmig_batiment` (
  `bat_seq` int(11) NOT NULL auto_increment,
  `bat_sat_fk` int(11) NOT NULL default '0',
  `bat_code` varchar(6) NOT NULL,
  `bat_libelle` varchar(35) NOT NULL,
  `bat_adr1` varchar(45) default NULL,
  `bat_adr2` varchar(45) default NULL,
  `bat_cp` varchar(6) default NULL,
  `bat_ville` varchar(25) default NULL,
  `bat_surface_totale` decimal(16,2) default NULL,
  `bat_surface_utile` decimal(16,2) default NULL,
  `bat_modtotal` tinyint(3) unsigned default NULL,
  `bat_modutile` tinyint(3) unsigned default NULL,
  `bat_datconst` datetime default NULL,
  `bat_bbloc` tinyint(3) default NULL,
  `bat_bdocument` tinyint(3) default NULL,
  `bat_emprise` int(11) default NULL,
  `bat_princons` varchar(16) default NULL,
  `bat_typfond` varchar(16) default NULL,
  `bat_blocnote` longtext,
  `bat_codeconca` varchar(13) default NULL,
  `bat_code_barre` varchar(15) default NULL,
  `bat_cdbr_fk` int(11) default NULL,
  `bat_nb_usgr` int(11) default NULL,
  `bat_pays` varchar(55) default NULL,
  `bat_region` varchar(25) default NULL,
  `bat_afin_fk` int(11) default NULL,
  `bat_crit_fk` int(11) default NULL,
  `bat_ctra_fk` int(11) default NULL,
  `bat_proj_fk` int(11) default NULL,
  PRIMARY KEY  (`bat_seq`),
  UNIQUE KEY `bat_seq` (`bat_seq`),
  KEY `bat_afin_fk` (`bat_afin_fk`),
  KEY `bat_crit_fk` (`bat_crit_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `zcategorie`
--

DROP TABLE IF EXISTS `zcategorie`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `zcategorie` (
  `zcat_seq` int(11) NOT NULL auto_increment,
  `zcat_code` varchar(15) default NULL,
  `zcat_delai` int(11) default NULL,
  `zcat_ordre` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`zcat_seq`),
  KEY `zcat_code` (`zcat_code`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `zconnexion`
--

DROP TABLE IF EXISTS `zconnexion`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `zconnexion` (
  `zcon_seq` int(11) NOT NULL auto_increment,
  `zcon_zus_fk` int(11) NOT NULL default '0',
  `zcon_time` datetime NOT NULL default '0000-00-00 00:00:00',
  `zcon_session` varchar(200) NOT NULL,
  `zcon_deconnexion` tinyint(2) NOT NULL default '0',
  `zcon_nb_tentative` tinyint(3) default NULL,
  `zcon_time_dispo` datetime default '0000-00-00 00:00:00',
  PRIMARY KEY  (`zcon_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `zgroupe`
--

DROP TABLE IF EXISTS `zgroupe`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `zgroupe` (
  `zgrp_seq` int(11) NOT NULL auto_increment,
  `zgrp_code` varchar(4) NOT NULL,
  `zgrp_libelle` varchar(50) NOT NULL,
  PRIMARY KEY  (`zgrp_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `zone`
--

DROP TABLE IF EXISTS `zone`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `zone` (
  `zone_seq` int(11) NOT NULL auto_increment,
  `zone_code` varchar(6) default NULL,
  `zone_libelle` varchar(35) default NULL,
  `zone_surface_totale` decimal(16,2) default NULL,
  `zone_surface_utile` decimal(16,2) default NULL,
  `zone_modtotal` tinyint(3) unsigned default NULL,
  `zone_modutile` tinyint(3) unsigned default NULL,
  `zone_codeconca` varchar(22) default NULL,
  `zone_bdocument` tinyint(3) unsigned default NULL,
  `zone_bat_fk` int(11) default NULL,
  `zone_sat_fk` int(11) default NULL,
  `zone_code_barre` varchar(15) default NULL,
  `zone_cdbr_fk` int(11) default NULL,
  `zone_afin_fk` int(11) default NULL,
  `zone_crit_fk` int(11) default NULL,
  `zone_ctra_fk` int(11) default NULL,
  `zone_blocnote` text,
  `zone_communaute` tinyint(3) default NULL,
  `zone_datmaj` datetime,
  `zone_zus_maj_fk` int(11),
  PRIMARY KEY  (`zone_seq`),
  KEY `zone_code` (`zone_code`),
  KEY `zone_codeconca` (`zone_codeconca`),
  KEY `zone_bat_fk` (`zone_bat_fk`),
  KEY `zone_sat_fk` (`zone_sat_fk`),
  KEY `zone_code_barre` (`zone_code_barre`),
  KEY `zone_cdbr_fk` (`zone_cdbr_fk`),
  KEY `zone_afin_fk` (`zone_afin_fk`),
  KEY `zone_crit_fk` (`zone_crit_fk`),
  KEY `zone_crit_fk_2` (`zone_crit_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `zone_attr`
--

DROP TABLE IF EXISTS `zone_attr`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `zone_attr` (
  `zone_att_seq` int(16) NOT NULL default '0',
  PRIMARY KEY  (`zone_att_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `zuser`
--

DROP TABLE IF EXISTS `zuser`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `zuser` (
  `zus_seq` int(11) NOT NULL auto_increment,
  `zus_dem_fk` int(11) default NULL,
  `zus_zgrp_fk` int(11) default NULL,
  `zus_prof_fk` int(11) default '1',
  `zus_zcat_fk` int(11) default NULL,
  `zus_code` varchar(20) default NULL,
  `zus_initiale` varchar(12) default NULL,
  `zus_nom` varchar(36) default NULL,
  `zus_prenom` varchar(36) default NULL,
  `zus_demandeur` varchar(15) default NULL,
  `zus_sat_code` varchar(8) default NULL,
  `zus_sat_libelle` varchar(35) default NULL,
  `zus_services` text,
  `zus_domaines` text,
  `zus_game_tope` text,
  `zus_ro_demandeur` tinyint(4) default '0',
  `zus_ro_libelle` tinyint(4) default '0',
  `zus_ro_detail` tinyint(4) default '0',
  `zus_ro_batiment` tinyint(4) default '0',
  `zus_ro_zone` tinyint(4) default '0',
  `zus_ro_local` tinyint(4) default '0',
  `zus_ro_rubcomp1` tinyint(4) default '0',
  `zus_ro_rubcomp2` tinyint(4) NOT NULL default '0',
  `zus_sos_localisdem` tinyint(4) default '0',
  `zus_sos_game_site` tinyint(4) default '0',
  `zus_sos_dem_site` tinyint(4) default '0',
  `zus_sos_dem_enreg` tinyint(4) default '0',
  `zus_sos_relance` tinyint(4) default '0',
  `zus_visib_rubcomp1` tinyint(4) default '0',
  `zus_visib_rubcomp2` tinyint(4) default '0',
  `zus_visib_consiparti` tinyint(4) default '0',
  `zus_visib_cout` tinyint(4) default '1',
  `zus_visib_duree` tinyint(4) default '1',
  `zus_visib_dec_bat` tinyint(4) default '1',
  `zus_visib_dec_dom` tinyint(4) default '1',
  `zus_visib_dec_equtrav` tinyint(4) default '0',
  `zus_visib_dec_tope` tinyint(4) default '1',
  `zus_visib_dec_service` tinyint(4) default '1',
  `zus_visib_dec_affa` tinyint(4) default '0',
  `zus_figee_rubcomp1` tinyint(4) default '0',
  `zus_figee_rubcomp2` tinyint(4) default '0',
  `zus_predef_gamme` varchar(15) default NULL,
  `zus_crypt_ok` int(11) default '0',
  `zus_session` varchar(200) default NULL,
  `zus_timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP,
  `zus_niv_accueil` tinyint(4) default '1',
  `zus_oper_na_et_cons` tinyint(4) default NULL,
  `zus_oper_na_et_cr` tinyint(4) default NULL,
  `zus_oper_na_et_supe` tinyint(4) default NULL,
  `zus_email_adr` varchar(80) default NULL,
  `zus_super_admin` tinyint(1) default NULL,
  `zus_bad_try_connect_nb` tinyint(3) default NULL,
  `zus_bad_try_connect_datetime` datetime default NULL,
  `zus_forget_nb_question` tinyint(3) default NULL,
  `zus_forget_response` varchar(50) default NULL,
  `zus_last_connect_datetime` datetime default NULL,
  `zus_is_first_connect` tinyint(3) default NULL,
  `zus_identifier` varchar(20) default NULL,
  `zus_categorie` char(1) default NULL,
  `zus_tdom` tinyint(3) default NULL,
  `zus_tmag` tinyint(3) default NULL,
  `zus_tuni` tinyint(3) default NULL,
  `zus_tsup` tinyint(3) default NULL,
  `zus_libel_acces` tinyint(3) default NULL,
  `zus_rubcomp_visib` tinyint(3) default NULL,
  `zus_bip_visib` tinyint(3) default NULL,
  `zus_di_all` tinyint(3) default NULL,
  `zus_sosweb` tinyint(3) default NULL,
  `zus_bipsonore` tinyint(3) default NULL,
  `zus_num_sms` varchar(20) default NULL,
  `zus_crweb` tinyint(3) default NULL,
  `zus_trav_fk` int(11) default NULL,
  `zus_machinecode` varchar(40) default NULL,
  `zus_samcom` tinyint(3) default NULL,
  `zus_tbat` tinyint(3) default NULL,
  `zus_zgrp_code` varchar(4) default NULL,
  `zus_alert_visib` tinyint(3) default NULL,
  `zus_adr_fk` int(11) default NULL,
  `zus_tsat` tinyint(3) default NULL,
  `zus_bool_inactive` tinyint(3) default NULL,
  `zus_codeconca` varchar(40) default NULL,
  `zus_lang_fk` int(11) default NULL,
  `zus_sat_fk` int(11) default NULL,
  `zus_comu_fk` int(11) default NULL,
  PRIMARY KEY  (`zus_seq`),
  UNIQUE KEY `zus_codeconca` (`zus_codeconca`),
  KEY `zus_trav_fk` (`zus_trav_fk`),
  KEY `zus_prof_fk` (`zus_prof_fk`),
  KEY `zus_dem_fk` (`zus_dem_fk`),
  KEY `zus_code` (`zus_code`),
  KEY `zus_initiale` (`zus_initiale`),
  KEY `zus_lang_fk` (`zus_lang_fk`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `zuser_histo_account`
--

DROP TABLE IF EXISTS `zuser_histo_account`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `zuser_histo_account` (
  `zuha_seq` int(11) NOT NULL auto_increment,
  `zuha_zus_fk` int(11) default NULL,
  `zuha_code` varchar(32) default NULL,
  `zuha_date_create` datetime default NULL,
  PRIMARY KEY  (`zuha_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `zuser_new_account`
--

DROP TABLE IF EXISTS `zuser_new_account`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `zuser_new_account` (
  `zuna_seq` int(11) NOT NULL auto_increment,
  `zuna_nom` varchar(20) default NULL,
  `zuna_prenom` varchar(20) default NULL,
  `zuna_civilite` varchar(5) default NULL,
  `zuna_tel` varchar(18) default NULL,
  `zuna_fax` varchar(18) default NULL,
  `zuna_email` varchar(45) default NULL,
  `zuna_sloc_fk` int(11) default NULL,
  `zuna_sat_fk` int(11) default NULL,
  `zuna_bat_fk` int(11) default NULL,
  `zuna_zone_fk` int(11) default NULL,
  `zuna_local_fk` varchar(4) default NULL,
  `zuna_initiale` varchar(10) default NULL,
  `zuna_code` varchar(15) default NULL,
  `zuna_question` tinyint(3) default NULL,
  `zuna_reponse` varchar(50) default NULL,
  `zuna_commentaire` varchar(255) default NULL,
  `zuna_etat` tinyint(3) default NULL,
  `zuna_department_free` varchar(150) default NULL,
  `zuna_location_free` varchar(150) default NULL,
  `zuna_codelangue` varchar(4) default NULL,
  `zuna_identifier` varchar(20) default NULL,
  `zuna_dem_fk` int(11) default NULL,
  PRIMARY KEY  (`zuna_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `zuser_pref`
--

DROP TABLE IF EXISTS `zuser_pref`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `zuser_pref` (
  `zupr_seq` int(11) NOT NULL auto_increment,
  `zupr_zus_fk` int(11) default NULL,
  `zupr_size_simpletext` tinyint(3) default NULL,
  PRIMARY KEY  (`zupr_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `zuser_pref_filtres`
--

DROP TABLE IF EXISTS `zuser_pref_filtres`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `zuser_pref_filtres` (
  `zpfs_seq` int(11) NOT NULL auto_increment,
  `zpfs_pglf_fk` int(11) default NULL,
  `zpfs_fieldName` varchar(30) default NULL,
  `zpfs_typeFilter` tinyint(3) unsigned default NULL,
  `zpfs_valFilter` varchar(30) default NULL,
  `zpfs_operator` varchar(3) default NULL,
  `zpfs_level` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`zpfs_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `zuser_pref_liste_filtre`
--

DROP TABLE IF EXISTS `zuser_pref_liste_filtre`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `zuser_pref_liste_filtre` (
  `zplf_seq` int(11) NOT NULL auto_increment,
  `zplf_zus_fk` int(11) default NULL,
  `zplf_pglf_fk` int(11) default NULL,
  `zplf_ordre` int(11) default NULL,
  `zplf_visible` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`zplf_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `zuser_sfm`
--

DROP TABLE IF EXISTS `zuser_sfm`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `zuser_sfm` (
  `zus_seq` int(11) NOT NULL auto_increment,
  `zus_dem_fk` int(11) NOT NULL default '0',
  `zus_zgrp_fk` int(11) NOT NULL default '0',
  `zus_prof_fk` int(11) NOT NULL default '1',
  `zus_zcat_fk` int(11) default NULL,
  `zus_code` varchar(15) NOT NULL,
  `zus_initiale` varchar(10) default NULL,
  `zus_nom` varchar(20) default NULL,
  `zus_prenom` varchar(20) default NULL,
  `zus_codelangue` varchar(4) NOT NULL default 'F',
  `zus_demandeur` varchar(15) default NULL,
  `zus_sat_code` varchar(8) default NULL,
  `zus_sat_libelle` varchar(35) default NULL,
  `zus_services` text,
  `zus_domaines` text,
  `zus_game_tope` text,
  `zus_ro_demandeur` tinyint(4) NOT NULL default '0',
  `zus_ro_libelle` tinyint(4) NOT NULL default '0',
  `zus_ro_detail` tinyint(4) NOT NULL default '0',
  `zus_ro_batiment` tinyint(4) NOT NULL default '0',
  `zus_ro_zone` tinyint(4) NOT NULL default '0',
  `zus_ro_local` tinyint(4) NOT NULL default '0',
  `zus_ro_rubcomp1` tinyint(4) NOT NULL default '0',
  `zus_ro_rubcomp2` tinyint(4) NOT NULL default '0',
  `zus_sos_localisdem` tinyint(4) NOT NULL default '0',
  `zus_sos_game_site` tinyint(4) NOT NULL default '0',
  `zus_sos_dem_site` tinyint(4) NOT NULL default '0',
  `zus_sos_dem_enreg` tinyint(4) NOT NULL default '0',
  `zus_sos_relance` tinyint(4) NOT NULL default '0',
  `zus_visib_rubcomp1` tinyint(4) NOT NULL default '0',
  `zus_visib_rubcomp2` tinyint(4) NOT NULL default '0',
  `zus_visib_consiparti` tinyint(4) NOT NULL default '0',
  `zus_visib_cout` tinyint(4) NOT NULL default '1',
  `zus_visib_duree` tinyint(4) NOT NULL default '1',
  `zus_visib_dec_bat` tinyint(4) NOT NULL default '1',
  `zus_visib_dec_dom` tinyint(4) NOT NULL default '1',
  `zus_visib_dec_equtrav` tinyint(4) NOT NULL default '0',
  `zus_visib_dec_tope` tinyint(4) NOT NULL default '1',
  `zus_visib_dec_service` tinyint(4) NOT NULL default '1',
  `zus_visib_dec_affa` tinyint(4) NOT NULL default '0',
  `zus_figee_rubcomp1` tinyint(4) NOT NULL default '0',
  `zus_figee_rubcomp2` tinyint(4) NOT NULL default '0',
  `zus_predef_gamme` varchar(15) NOT NULL,
  `zus_crypt_ok` int(11) NOT NULL default '0',
  `zus_session` varchar(200) default NULL,
  `zus_timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP,
  `zus_niv_accueil` tinyint(4) NOT NULL default '1',
  `zus_oper_na_et_cons` tinyint(4) default NULL,
  `zus_oper_na_et_cr` tinyint(4) default NULL,
  `zus_oper_na_et_supe` tinyint(4) default NULL,
  `zus_email_adr` varchar(45) NOT NULL,
  `zus_super_admin` tinyint(1) default NULL,
  `zus_bad_try_connect_nb` tinyint(3) default NULL,
  `zus_bad_try_connect_datetime` datetime default NULL,
  `zus_forget_nb_question` tinyint(3) default NULL,
  `zus_forget_response` varchar(50) NOT NULL,
  `zus_last_connect_datetime` datetime default NULL,
  `zus_is_first_connect` tinyint(3) default NULL,
  `zus_identifier` varchar(20) default NULL,
  PRIMARY KEY  (`zus_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;