-- Table structure for table `history_type`
--

CREATE TABLE `history_type` (
  `id_history_type` int(11) NOT NULL AUTO_INCREMENT,
  `cd_history_type` varchar(15) DEFAULT NULL,
  `lb_history_type` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id_history_type`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `history_type`
--

INSERT INTO `history_type` VALUES (1,'Create','Creation'),(2,'Modify','Modification');

--
-- Table structure for table `interfaces`
--

CREATE TABLE `interfaces` (
  `id_interface` int(11) NOT NULL AUTO_INCREMENT,
  `cd_interface` varchar(45) DEFAULT NULL,
  `lb_interface` varchar(255) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `dt_deactivated` datetime DEFAULT NULL,
  PRIMARY KEY (`id_interface`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `interfaces`
--

INSERT INTO `interfaces` VALUES (1,'E230','Extensions 230',1,'2013-06-26 14:05:46','2013-07-02 14:05:46',NULL),(2,'E23','Extension 23',1,'2013-07-02 14:05:46','2013-07-02 14:05:46',NULL),(3,'E184','Extensions 231',1,'2014-06-26 14:05:46','2013-07-02 14:05:46',NULL),(4,'E391','Extension 24',1,'2013-07-02 14:05:46','2013-07-02 14:05:46',NULL),(5,'E598','Extensions 232',1,'2015-06-26 14:05:46','2013-07-02 14:05:46',NULL),(6,'E805','Extension 25',1,'2013-07-02 14:05:46','2013-07-02 14:05:46',NULL),(7,'E1012','Extensions 233',1,'2016-06-26 14:05:46','2013-07-02 14:05:46',NULL),(8,'E1219','Extension 26',1,'2013-07-02 14:05:46','2013-07-02 14:05:46',NULL),(9,'E1426','Extensions 234',1,'2017-06-26 14:05:46','2013-07-02 14:05:46',NULL),(10,'E1633','Extension 27',1,'2013-07-02 14:05:46','2013-07-02 14:05:46',NULL),(11,'E1840','Extensions 235',1,'2018-06-26 14:05:46','2013-07-02 14:05:46',NULL),(12,'E2047','Extension 28',1,'2013-07-02 14:05:46','2013-07-02 14:05:46',NULL),(13,'E2254','Extensions 236',1,'2019-06-26 14:05:46','2013-07-02 14:05:46',NULL);

--
-- Table structure for table `iom`
--

CREATE TABLE `iom` (
  `id_iom` int(11) NOT NULL AUTO_INCREMENT,
  `id_iom_type` int(11) DEFAULT NULL,
  `id_equipment` int(11) DEFAULT NULL,
  `cd_iom` varchar(45) DEFAULT NULL,
  `lb_iom` varchar(255) DEFAULT NULL,
  `cm_iom` varchar(255) DEFAULT NULL,
  `cd_serial_number` varchar(45) DEFAULT NULL,
  `nb_position` decimal(10,0) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `id_user_create` int(11) DEFAULT NULL,
  `id_shelf` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_iom`),
  KEY `id_equipment` (`id_equipment`),
  KEY `id_iom_type` (`id_iom_type`),
  KEY `id_user_create` (`id_user_create`),
  KEY `id_shelf` (`id_shelf`),
  CONSTRAINT `FK_69214330241078CB` FOREIGN KEY (`id_iom_type`) REFERENCES `iom_type` (`id_iom_type`),
  CONSTRAINT `FK_692143304BC21AD3` FOREIGN KEY (`id_shelf`) REFERENCES `shelf` (`id_shelf`),
  CONSTRAINT `FK_69214330530D69A4` FOREIGN KEY (`id_equipment`) REFERENCES `equipment` (`id_equipment`),
  CONSTRAINT `FK_69214330F2963631` FOREIGN KEY (`id_user_create`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `iom`
--


--
-- Table structure for table `iom_template`
--

CREATE TABLE `iom_template` (
  `id_iom` int(11) NOT NULL,
  `id_iom_type` int(11) DEFAULT NULL,
  `id_shelf` int(11) DEFAULT NULL,
  `cd_iom` varchar(45) DEFAULT NULL,
  `lb_iom` varchar(255) DEFAULT NULL,
  `cm_iom` varchar(255) DEFAULT NULL,
  `cd_serial_number` varchar(45) DEFAULT NULL,
  `nb_position` decimal(10,0) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `id_user_create` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_iom`),
  KEY `id_iom_type` (`id_iom_type`),
  KEY `id_equipment` (`id_shelf`),
  KEY `id_iom` (`id_iom`),
  KEY `id_shelf` (`id_shelf`),
  KEY `id_user_create` (`id_user_create`),
  CONSTRAINT `FK_76B23385241078CB` FOREIGN KEY (`id_iom_type`) REFERENCES `iom_type` (`id_iom_type`),
  CONSTRAINT `FK_76B233854BC21AD3` FOREIGN KEY (`id_shelf`) REFERENCES `shelf` (`id_shelf`),
  CONSTRAINT `FK_76B23385F2963631` FOREIGN KEY (`id_user_create`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_76B23385F785AB6A` FOREIGN KEY (`id_iom`) REFERENCES `iom` (`id_iom`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `iom_template`
--


--
-- Table structure for table `iom_type`
--

CREATE TABLE `iom_type` (
  `id_iom_type` int(11) NOT NULL AUTO_INCREMENT,
  `cd_iom_type` varchar(45) DEFAULT NULL,
  `lb_iom_type` varchar(255) DEFAULT NULL,
  `cm_iom_type` varchar(255) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_iom_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `iom_type`
--


--
-- Table structure for table `ldap`
--

CREATE TABLE `ldap` (
  `id_ldap` int(11) NOT NULL AUTO_INCREMENT,
  `cd_ldap` varchar(15) DEFAULT NULL,
  `lb_ldap` varchar(255) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_ldap`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ldap`
--


--
-- Table structure for table `level`
--

CREATE TABLE `level` (
  `id_level` int(11) NOT NULL AUTO_INCREMENT,
  `lb_level` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`id_level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `level`
--


--
-- Table structure for table `link`
--

CREATE TABLE `link` (
  `id_link` int(11) NOT NULL AUTO_INCREMENT,
  `id_link_type` int(11) DEFAULT NULL,
  `cd_link` varchar(15) DEFAULT NULL,
  `lb_link` varchar(100) DEFAULT NULL,
  `cd_link_reference` varchar(45) DEFAULT NULL,
  `cd_link_reference_b` varchar(15) DEFAULT NULL,
  `id_port_1` int(11) DEFAULT NULL,
  `id_port_2` int(11) DEFAULT NULL,
  `nb_bandwidth` decimal(10,0) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `id_link_function` int(11) DEFAULT NULL,
  `id_link_protocol` int(11) DEFAULT NULL,
  `bl_standby` varchar(255) DEFAULT NULL,
  `bl_connected` varchar(255) DEFAULT NULL,
  `id_provider` int(11) DEFAULT NULL,
  `id_branch` int(11) DEFAULT NULL,
  `id_cable` int(11) DEFAULT NULL,
  `id_link_groomed` int(11) DEFAULT NULL,
  `id_access` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `id_ts_a` int(11) DEFAULT NULL,
  `nb_ts_a` int(11) DEFAULT NULL,
  `id_ts_b` int(11) DEFAULT NULL,
  `nb_ts_b` int(11) DEFAULT NULL,
  `bl_link_ts` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_link`),
  KEY `id_port_1` (`id_port_1`),
  KEY `id_port_2` (`id_port_2`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  KEY `id_link_type` (`id_link_type`),
  KEY `id_link_function` (`id_link_function`),
  KEY `id_link_protocol` (`id_link_protocol`),
  KEY `id_provider` (`id_provider`),
  KEY `id_branch` (`id_branch`),
  KEY `id_cable` (`id_cable`),
  KEY `id_link_groomed` (`id_link_groomed`),
  KEY `id_access` (`id_access`),
  KEY `id_ts_a` (`id_ts_a`),
  KEY `id_ts_b` (`id_ts_b`),
  CONSTRAINT `FK_36AC99F11F183289` FOREIGN KEY (`id_ts_a`) REFERENCES `ts` (`id_ts`),
  CONSTRAINT `FK_36AC99F1205E9EB9` FOREIGN KEY (`id_access`) REFERENCES `access` (`id_access`),
  CONSTRAINT `FK_36AC99F1536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_36AC99F168E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_36AC99F179861029` FOREIGN KEY (`id_port_1`) REFERENCES `port` (`id_port`),
  CONSTRAINT `FK_36AC99F186116333` FOREIGN KEY (`id_ts_b`) REFERENCES `ts` (`id_ts`),
  CONSTRAINT `FK_36AC99F19DB1AEF2` FOREIGN KEY (`id_branch`) REFERENCES `branch` (`id_branch`),
  CONSTRAINT `FK_36AC99F1A14D4B41` FOREIGN KEY (`id_link_groomed`) REFERENCES `link` (`id_link`),
  CONSTRAINT `FK_36AC99F1B92CA791` FOREIGN KEY (`id_link_function`) REFERENCES `link_function` (`id_link_function`),
  CONSTRAINT `FK_36AC99F1BB420DE0` FOREIGN KEY (`id_link_protocol`) REFERENCES `link_protocol` (`id_link_protocol`),
  CONSTRAINT `FK_36AC99F1BDAC79A7` FOREIGN KEY (`id_link_type`) REFERENCES `link_type` (`id_link_type`),
  CONSTRAINT `FK_36AC99F1C21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`),
  CONSTRAINT `FK_36AC99F1CA6C85E4` FOREIGN KEY (`id_cable`) REFERENCES `cable` (`id_cable`),
  CONSTRAINT `FK_36AC99F1E08F4193` FOREIGN KEY (`id_port_2`) REFERENCES `port` (`id_port`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `link`
--


--
-- Table structure for table `link_function`
--

CREATE TABLE `link_function` (
  `id_link_function` int(11) NOT NULL AUTO_INCREMENT,
  `cd_link_function` varchar(100) NOT NULL,
  `lb_link_function` varchar(255) NOT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `id_link_function_type` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_link_function`),
  KEY `IDX_70476F4E971A25B` (`id_link_function_type`),
  CONSTRAINT `FK_70476F4E971A25B` FOREIGN KEY (`id_link_function_type`) REFERENCES `link_function_type` (`id_link_function_type`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `link_function`
--

INSERT INTO `link_function` VALUES (1,'Corelink','Corelink',1,1),(2,'UpLink','UpLink',1,2),(3,'BearerLink','BearerLink',1,2);

--
-- Table structure for table `link_function_type`
--

CREATE TABLE `link_function_type` (
  `id_link_function_type` int(11) NOT NULL AUTO_INCREMENT,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `lb_link_function_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cd_link_function_type` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  PRIMARY KEY (`id_link_function_type`),
  KEY `IDX_6A5310F4536A5873` (`id_user_create_by`),
  KEY `IDX_6A5310F468E26F41` (`id_user_update_by`),
  CONSTRAINT `FK_6A5310F4536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_6A5310F468E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `link_function_type`
--

INSERT INTO `link_function_type` VALUES (1,2,2,'Backbone Link','BB',1,'2014-01-18 00:00:00','2014-01-18 00:00:00'),(2,2,2,'Local Loop','LL',1,'2014-01-18 22:16:05','2014-01-18 22:16:05');

--
-- Table structure for table `link_physical`
--

CREATE TABLE `link_physical` (
  `id_link_physical` int(11) NOT NULL AUTO_INCREMENT,
  `cd_link_physical` varchar(15) DEFAULT NULL,
  `lb_link_physical` varchar(100) DEFAULT NULL,
  `id_port_a` int(11) DEFAULT NULL,
  `id_port_b` int(11) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_link_physical`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  KEY `id_port_a` (`id_port_a`),
  KEY `id_port_b` (`id_port_b`),
  CONSTRAINT `FK_1A8350C112ED41DD` FOREIGN KEY (`id_port_a`) REFERENCES `port` (`id_port`),
  CONSTRAINT `FK_1A8350C1536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_1A8350C168E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_1A8350C18BE41067` FOREIGN KEY (`id_port_b`) REFERENCES `port` (`id_port`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `link_physical`
--


--
-- Table structure for table `link_protocol`
--

CREATE TABLE `link_protocol` (
  `id_link_protocol` int(11) NOT NULL AUTO_INCREMENT,
  `cd_link_protocol` varchar(100) DEFAULT NULL,
  `lb_link_protocol` varchar(255) DEFAULT NULL,
  `nb_rate` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_link_protocol`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `link_protocol`
--


--
-- Table structure for table `link_template`
--

CREATE TABLE `link_template` (
  `id_link` int(11) NOT NULL,
  `id_link_type` int(11) DEFAULT NULL,
  `cd_link` varchar(15) DEFAULT NULL,
  `lb_link` varchar(100) DEFAULT NULL,
  `cd_link_reference` varchar(45) DEFAULT NULL,
  `cd_link_reference_b` varchar(15) DEFAULT NULL,
  `id_port_1` int(11) DEFAULT NULL,
  `id_port_2` int(11) DEFAULT NULL,
  `nb_bandwidth` decimal(10,0) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `id_link_function` int(11) DEFAULT NULL,
  `id_link_protocol` int(11) DEFAULT NULL,
  `bl_standby` varchar(255) DEFAULT NULL,
  `bl_connected` varchar(255) DEFAULT NULL,
  `id_provider` int(11) DEFAULT NULL,
  `id_branch` int(11) DEFAULT NULL,
  `id_cable` int(11) DEFAULT NULL,
  `id_link_groomed` int(11) DEFAULT NULL,
  `id_access` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_link`),
  KEY `id_port_1` (`id_port_1`),
  KEY `id_port_2` (`id_port_2`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  KEY `id_link` (`id_link`),
  KEY `id_link_type` (`id_link_type`),
  KEY `id_link_function` (`id_link_function`),
  KEY `id_link_protocol` (`id_link_protocol`),
  KEY `id_provider` (`id_provider`),
  KEY `id_branch` (`id_branch`),
  KEY `id_cable` (`id_cable`),
  KEY `id_link_groomed` (`id_link_groomed`),
  KEY `id_access` (`id_access`),
  CONSTRAINT `FK_5ACA7F4A205E9EB9` FOREIGN KEY (`id_access`) REFERENCES `access` (`id_access`),
  CONSTRAINT `FK_5ACA7F4A536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_5ACA7F4A68E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_5ACA7F4A79861029` FOREIGN KEY (`id_port_1`) REFERENCES `port` (`id_port`),
  CONSTRAINT `FK_5ACA7F4A9DB1AEF2` FOREIGN KEY (`id_branch`) REFERENCES `branch` (`id_branch`),
  CONSTRAINT `FK_5ACA7F4AA14D4B41` FOREIGN KEY (`id_link_groomed`) REFERENCES `link` (`id_link`),
  CONSTRAINT `FK_5ACA7F4AB92CA791` FOREIGN KEY (`id_link_function`) REFERENCES `link_function` (`id_link_function`),
  CONSTRAINT `FK_5ACA7F4ABB420DE0` FOREIGN KEY (`id_link_protocol`) REFERENCES `link_protocol` (`id_link_protocol`),
  CONSTRAINT `FK_5ACA7F4ABD8C85F3` FOREIGN KEY (`id_link`) REFERENCES `link` (`id_link`),
  CONSTRAINT `FK_5ACA7F4ABDAC79A7` FOREIGN KEY (`id_link_type`) REFERENCES `link_type` (`id_link_type`),
  CONSTRAINT `FK_5ACA7F4AC21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`),
  CONSTRAINT `FK_5ACA7F4ACA6C85E4` FOREIGN KEY (`id_cable`) REFERENCES `cable` (`id_cable`),
  CONSTRAINT `FK_5ACA7F4AE08F4193` FOREIGN KEY (`id_port_2`) REFERENCES `port` (`id_port`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `link_template`
--


--
-- Table structure for table `link_type`
--

CREATE TABLE `link_type` (
  `id_link_type` int(11) NOT NULL AUTO_INCREMENT,
  `cd_link_type` varchar(15) DEFAULT NULL,
  `lb_link_type` varchar(100) DEFAULT NULL,
  `nb_max` int(11) DEFAULT NULL,
  `cd_max_unit` varchar(100) DEFAULT NULL,
  `nb_channel_range_from_1` int(11) DEFAULT NULL,
  `nb_channel_range_to_1` int(11) DEFAULT NULL,
  `nb_channel_range_from_2` int(11) DEFAULT NULL,
  `nb_channel_range_to_2` int(11) DEFAULT NULL,
  `nb_channel` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_link_type`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  CONSTRAINT `FK_3D99C580536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_3D99C58068E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `link_type`
--


--
-- Table structure for table `link_virtual`
--

CREATE TABLE `link_virtual` (
  `id_link_virtual` int(11) NOT NULL AUTO_INCREMENT,
  `id_link` int(11) DEFAULT NULL,
  `id_service` int(11) DEFAULT NULL,
  `cd_link_virtual` varchar(15) DEFAULT NULL,
  `lb_link_virtual` varchar(100) DEFAULT NULL,
  `ar_ts_1` varchar(255) DEFAULT NULL,
  `ar_ts_2` varchar(255) DEFAULT NULL,
  `bl_port_1` tinyint(1) DEFAULT NULL,
  `bl_port_2` tinyint(1) DEFAULT NULL,
  `nb_bandwidth` decimal(10,0) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_link_virtual`),
  KEY `id_link` (`id_link`),
  KEY `id_service` (`id_service`),
  CONSTRAINT `FK_4DDE67423F0033A2` FOREIGN KEY (`id_service`) REFERENCES `service` (`id_service`),
  CONSTRAINT `FK_4DDE6742BD8C85F3` FOREIGN KEY (`id_link`) REFERENCES `link` (`id_link`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `link_virtual`
--


--
-- Table structure for table `local_loop`
--

CREATE TABLE `local_loop` (
  `id_local_loop` int(11) NOT NULL AUTO_INCREMENT,
  `cd_local_loop` varchar(15) DEFAULT NULL,
  `cd_administrative_ref` varchar(20) DEFAULT NULL,
  `cd_technical_ref` varchar(30) DEFAULT NULL,
  `id_bandwidth` int(11) DEFAULT NULL,
  `id_provider_of_carrier` int(11) DEFAULT NULL,
  `id_local_loop_type` int(11) DEFAULT NULL,
  `id_local_loop_sister` int(11) DEFAULT NULL,
  `id_local_loop_parent` int(11) DEFAULT NULL,
  `cm_local_loop` varchar(255) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_order` datetime DEFAULT NULL,
  `dt_delivery_requested` datetime DEFAULT NULL,
  `dt_delivery` datetime DEFAULT NULL,
  `id_capacity` int(11) DEFAULT NULL,
  `id_branch` int(11) DEFAULT NULL,
  `dt_requested_cancel` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `id_interface` int(11) DEFAULT NULL,
  `cd_technical_ref2` varchar(30) DEFAULT NULL,
  `id_old_bandwidth` int(11) DEFAULT NULL,
  `id_protocol` int(11) DEFAULT NULL,
  `dt_init_terminate` datetime DEFAULT NULL,
  `dt_init_updown` datetime DEFAULT NULL,
  `dt_requested_updown` datetime DEFAULT NULL,
  `dt_scheduled_delivery` datetime DEFAULT NULL,
  `dt_real_terminate` datetime DEFAULT NULL,
  `dt_real_updown` datetime DEFAULT NULL,
  `dt_request_terminate` datetime DEFAULT NULL,
  `bl_french` tinyint(1) DEFAULT NULL,
  `bl_express` tinyint(1) DEFAULT NULL,
  `id_local_loop_owner` int(11) DEFAULT NULL,
  `id_link_function` int(11) DEFAULT NULL,
  `id_transaction_status` int(11) DEFAULT NULL,
  `id_transaction_type` int(11) DEFAULT NULL,
  `nb_operation` int(11) DEFAULT NULL,
  `id_transfer_extremity` int(11) DEFAULT NULL,
  `dt_scheduled_updown_delivery` datetime DEFAULT NULL,
  PRIMARY KEY (`id_local_loop`),
  KEY `id_capacity` (`id_capacity`),
  KEY `id_bandwidth` (`id_bandwidth`),
  KEY `id_provider_of_carrier` (`id_provider_of_carrier`),
  KEY `id_local_loop_sister` (`id_local_loop_sister`),
  KEY `id_local_loop_parent` (`id_local_loop_parent`),
  KEY `id_branch` (`id_branch`),
  KEY `id_interface` (`id_interface`),
  KEY `id_protocol` (`id_protocol`),
  KEY `IDX_9D40773D3B1B0403` (`id_local_loop_owner`),
  KEY `IDX_9D40773DB92CA791` (`id_link_function`),
  KEY `IDX_9D40773D2389793F` (`id_local_loop_type`),
  KEY `IDX_9D40773D8E5FA5F3` (`id_transaction_status`),
  KEY `IDX_9D40773D8D173C59` (`id_transaction_type`),
  KEY `IDX_9D40773D4233DB70` (`id_transfer_extremity`),
  KEY `IDX_9D40773D719540BB` (`id_old_bandwidth`),
  CONSTRAINT `FK_9D40773D2389793F` FOREIGN KEY (`id_local_loop_type`) REFERENCES `local_loop_type` (`id_local_loop_type`),
  CONSTRAINT `FK_9D40773D3B1B0403` FOREIGN KEY (`id_local_loop_owner`) REFERENCES `local_loop_owner` (`id_local_loop_owner`),
  CONSTRAINT `FK_9D40773D4233DB70` FOREIGN KEY (`id_transfer_extremity`) REFERENCES `local_loop_extremity` (`id_local_loop_extremity`),
  CONSTRAINT `FK_9D40773D719540BB` FOREIGN KEY (`id_old_bandwidth`) REFERENCES `bandwidth_assignee` (`id_bandwidth_assignee`),
  CONSTRAINT `FK_9D40773D8D173C59` FOREIGN KEY (`id_transaction_type`) REFERENCES `TransactionType` (`id_transaction_type`),
  CONSTRAINT `FK_9D40773D8E5FA5F3` FOREIGN KEY (`id_transaction_status`) REFERENCES `TransactionStatus` (`id_transaction_status`),
  CONSTRAINT `FK_9D40773D9DB1AEF2` FOREIGN KEY (`id_branch`) REFERENCES `branch` (`id_branch`),
  CONSTRAINT `FK_9D40773DA3C6948` FOREIGN KEY (`id_bandwidth`) REFERENCES `bandwidth_assignee` (`id_bandwidth_assignee`),
  CONSTRAINT `FK_9D40773DB4C150FA` FOREIGN KEY (`id_interface`) REFERENCES `interfaces` (`id_interface`),
  CONSTRAINT `FK_9D40773DB92CA791` FOREIGN KEY (`id_link_function`) REFERENCES `link_function` (`id_link_function`),
  CONSTRAINT `FK_9D40773DD910D0DE` FOREIGN KEY (`id_provider_of_carrier`) REFERENCES `provider` (`id_provider`),
  CONSTRAINT `FK_9D40773DE4EB9CB3` FOREIGN KEY (`id_local_loop_sister`) REFERENCES `local_loop` (`id_local_loop`),
  CONSTRAINT `FK_9D40773DE5335DE1` FOREIGN KEY (`id_capacity`) REFERENCES `capacity` (`id_capacity`),
  CONSTRAINT `FK_9D40773DFDC07700` FOREIGN KEY (`id_local_loop_parent`) REFERENCES `local_loop` (`id_local_loop`),
  CONSTRAINT `local_lopp_ibfk52` FOREIGN KEY (`id_protocol`) REFERENCES `protocol` (`id_protocol`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `local_loop`
--

INSERT INTO `local_loop` VALUES (2,'LL',NULL,NULL,1,1,NULL,NULL,NULL,NULL,'2013-12-07 17:45:43','2013-12-20 00:00:00','2013-12-26 00:00:00',NULL,1,2,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,1,1,22,5,NULL,NULL,NULL),(3,'LL',NULL,'464654',3,1,NULL,NULL,NULL,NULL,'2013-12-07 18:02:58','2013-12-20 00:00:00','2013-12-26 00:00:00','2013-12-28 00:00:00',1,2,NULL,1,NULL,NULL,1,NULL,NULL,'2014-01-23 00:00:00','2014-01-15 00:00:00','2013-12-20 00:00:00',NULL,'2014-01-13 15:48:35',NULL,0,0,1,1,28,6,NULL,NULL,NULL),(4,'LL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2013-12-30 12:58:30',NULL,NULL,NULL,1,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,1,22,5,NULL,NULL,NULL),(5,'LL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2013-12-30 13:03:06',NULL,NULL,NULL,1,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,1,22,5,NULL,NULL,NULL),(6,'LL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2013-12-30 22:57:39',NULL,NULL,NULL,1,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,1,22,5,NULL,NULL,NULL),(7,'LL',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2013-12-30 23:03:10',NULL,NULL,NULL,1,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,NULL,22,5,NULL,NULL,NULL),(8,'LL',NULL,'ter',3,1,NULL,NULL,NULL,NULL,'2014-01-13 11:40:01','2014-01-13 00:00:00','2014-01-14 00:00:00','2014-01-23 00:00:00',1,1,NULL,1,NULL,NULL,NULL,NULL,'2014-01-23 00:00:00',NULL,NULL,'2014-01-14 00:00:00','2014-01-22 00:00:00',NULL,'2014-01-22 00:00:00',0,0,NULL,NULL,28,6,1,14,NULL),(9,'LL',NULL,'1212',4,10,NULL,NULL,NULL,NULL,'2014-01-21 17:27:58','2014-01-21 00:00:00','2014-01-24 00:00:00','2014-01-24 00:00:00',7,4,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2014-01-24 00:00:00',NULL,NULL,NULL,0,0,NULL,3,25,5,1,NULL,NULL),(10,'LL10',NULL,'gh',1,11,NULL,NULL,NULL,NULL,'2014-01-22 10:55:00','2014-01-22 00:00:00','2014-01-31 00:00:00','2014-01-07 00:00:00',9,5,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2014-01-24 00:00:00',NULL,NULL,NULL,0,0,NULL,2,28,6,3,31,NULL),(11,'LL11',NULL,NULL,2,9,NULL,NULL,NULL,NULL,'2014-01-23 16:17:27','2014-01-23 00:00:00','2014-02-28 00:00:00',NULL,13,3,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,3,22,5,1,NULL,NULL),(12,'LL12',NULL,NULL,2,10,NULL,NULL,NULL,NULL,'2014-01-23 17:36:02','2014-01-23 00:00:00','2014-01-30 00:00:00',NULL,12,3,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,3,22,5,1,NULL,NULL),(13,'LL13',NULL,NULL,6,10,NULL,NULL,NULL,NULL,'2014-01-24 14:10:12','2014-01-24 00:00:00','2014-01-18 00:00:00',NULL,9,7,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,3,22,5,1,NULL,NULL),(14,'LL14',NULL,'788',NULL,9,NULL,NULL,NULL,NULL,'2014-01-24 14:23:57','2014-01-24 00:00:00','2014-02-28 00:00:00','2014-01-15 00:00:00',25,6,NULL,1,NULL,NULL,5,NULL,NULL,NULL,NULL,'2014-01-15 00:00:00',NULL,NULL,NULL,0,0,NULL,3,34,7,2,NULL,NULL),(15,'LL15',NULL,'456',NULL,11,NULL,NULL,NULL,NULL,'2014-01-24 16:18:59','2014-01-25 00:00:00','2014-01-16 00:00:00','2013-12-31 00:00:00',15,7,NULL,1,NULL,NULL,4,NULL,NULL,'2014-01-09 00:00:00','2014-01-24 00:00:00','2014-01-08 00:00:00',NULL,'2014-01-28 10:00:23',NULL,0,0,NULL,3,34,7,3,NULL,NULL),(21,'LL21',NULL,NULL,5,11,NULL,NULL,NULL,NULL,'2014-01-28 11:59:31','2014-01-10 00:00:00','2014-01-23 00:00:00',NULL,1,6,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,2,22,5,1,NULL,NULL),(22,'LL22',NULL,NULL,5,10,NULL,NULL,NULL,NULL,'2014-01-29 11:02:14','2014-01-29 00:00:00','2014-02-28 00:00:00','2014-05-23 00:00:00',10,7,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2014-03-24 00:00:00',NULL,NULL,NULL,0,0,NULL,2,24,5,1,NULL,NULL),(23,'LL23',NULL,'iuj_èHGT54DF',5,9,NULL,NULL,NULL,NULL,'2014-01-29 14:06:34','2014-02-06 00:00:00','2014-03-21 00:00:00','2014-04-26 00:00:00',8,7,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2014-01-31 00:00:00',NULL,NULL,NULL,0,0,NULL,2,25,5,1,NULL,NULL),(24,'LL24',NULL,NULL,6,10,NULL,NULL,NULL,NULL,'2014-01-29 16:33:10','2014-01-29 00:00:00','2014-02-21 00:00:00',NULL,11,6,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,2,23,5,1,NULL,NULL),(25,'LL25','LLO-123498U','PARLONE1Pà6549',6,11,NULL,NULL,NULL,NULL,'2014-01-29 16:50:37','2014-02-21 00:00:00','2014-03-14 00:00:00','2014-03-15 00:00:00',16,7,NULL,1,NULL,'opjà_è-gfu',NULL,7,NULL,NULL,NULL,'2014-01-17 00:00:00',NULL,NULL,NULL,1,1,NULL,2,25,5,1,NULL,NULL),(26,'LL26',NULL,'FAQ984521',NULL,10,NULL,NULL,NULL,NULL,'2014-01-29 17:23:49','2014-01-24 00:00:00','2014-02-22 00:00:00','2014-01-30 00:00:00',3,7,NULL,1,NULL,NULL,5,NULL,NULL,NULL,NULL,'2014-01-31 00:00:00',NULL,NULL,NULL,0,0,1,3,34,7,2,NULL,NULL),(27,'LL27',NULL,NULL,NULL,10,NULL,NULL,NULL,NULL,'2014-01-29 17:39:11','2014-01-10 00:00:00','2014-01-24 00:00:00',NULL,9,6,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,3,22,5,1,NULL,NULL),(28,'LL28',NULL,NULL,5,10,NULL,NULL,NULL,NULL,'2014-01-29 17:55:52','2014-01-24 00:00:00','2014-01-24 00:00:00',NULL,6,7,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,3,22,5,1,NULL,NULL),(29,'LL29',NULL,'KJ764GF97',NULL,9,NULL,NULL,NULL,NULL,'2014-01-29 18:14:07','2014-01-29 00:00:00','2014-01-31 00:00:00','2014-01-31 00:00:00',10,7,NULL,1,NULL,NULL,6,NULL,NULL,NULL,NULL,'2014-01-30 00:00:00',NULL,NULL,NULL,0,0,1,2,34,7,2,NULL,NULL),(30,'LL30',NULL,NULL,5,9,NULL,NULL,NULL,NULL,'2014-01-29 18:21:43','2014-01-30 00:00:00','2014-01-31 00:00:00','2014-01-10 00:00:00',10,6,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2014-01-10 00:00:00',NULL,NULL,NULL,0,0,1,3,24,5,1,NULL,NULL),(31,'LL31',NULL,'K87HG54',6,9,NULL,NULL,NULL,NULL,'2014-01-29 18:26:32','2014-01-31 00:00:00','2014-01-31 00:00:00','2014-01-31 00:00:00',11,7,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2014-01-31 00:00:00',NULL,NULL,NULL,0,0,1,2,25,5,1,NULL,NULL),(32,'LL32',NULL,NULL,5,15,NULL,NULL,NULL,NULL,'2014-01-31 14:30:03','2014-01-31 00:00:00','2014-02-21 00:00:00',NULL,10,8,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,2,23,5,1,NULL,NULL),(33,'LL33',NULL,'8765GTE43E',4,9,NULL,NULL,NULL,NULL,'2014-01-31 15:03:00','2014-01-31 00:00:00','2014-02-21 00:00:00','2014-02-15 00:00:00',11,8,NULL,1,NULL,NULL,5,NULL,NULL,'2014-01-31 00:00:00','2014-04-24 00:00:00','2014-02-21 00:00:00',NULL,'2014-01-31 17:22:01',NULL,0,0,1,2,39,7,3,NULL,'2014-01-16 00:00:00'),(34,'LL34',NULL,NULL,6,15,NULL,NULL,NULL,NULL,'2014-02-03 22:23:03','2014-02-06 00:00:00','2014-02-14 00:00:00',NULL,4,7,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,2,22,5,1,NULL,NULL),(35,'LL35','order 1234567','E1P065876',6,9,2,NULL,NULL,NULL,'2014-02-04 17:59:04','2014-02-04 00:00:00','2014-02-28 00:00:00','2014-02-28 00:00:00',17,6,NULL,1,8,'84DE3',NULL,5,NULL,NULL,NULL,'2014-03-31 00:00:00',NULL,NULL,NULL,0,0,1,2,29,5,1,NULL,NULL),(36,'LL36',NULL,'ABCDEF87654',6,9,2,NULL,NULL,NULL,'2014-02-04 18:28:25','2014-02-04 00:00:00','2014-02-12 00:00:00','2014-02-28 00:00:00',9,6,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2014-02-21 00:00:00',NULL,NULL,NULL,0,0,1,2,28,5,1,NULL,NULL),(37,'LL37',NULL,'E1JB87643',8,9,2,NULL,NULL,NULL,'2014-02-05 15:24:31','2014-02-05 00:00:00','2014-02-22 00:00:00','2014-03-28 00:00:00',13,6,NULL,1,NULL,'9876574FVO8',6,4,NULL,'2014-02-05 00:00:00','2014-04-24 00:00:00','2014-02-28 00:00:00',NULL,'2014-02-05 00:00:00',NULL,0,0,1,2,37,7,4,67,'2014-03-28 00:00:00'),(38,'LL38',NULL,NULL,9,15,NULL,NULL,NULL,NULL,'2014-02-05 18:22:15','2014-02-05 00:00:00','2014-02-26 00:00:00',NULL,22,8,NULL,1,7,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,3,22,5,1,NULL,NULL),(39,'LL39',NULL,'HU76M°9654',9,15,NULL,46,NULL,NULL,'2014-02-11 11:13:51','2014-02-11 00:00:00','2014-03-20 00:00:00','2014-02-28 00:00:00',25,8,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2014-03-28 00:00:00',NULL,NULL,NULL,0,0,1,2,27,5,1,NULL,NULL),(40,'LL40',NULL,'12345E1P0987',9,15,NULL,46,NULL,NULL,'2014-02-11 12:20:55','2014-02-11 00:00:00','2014-02-28 00:00:00','2014-03-13 00:00:00',25,8,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2014-02-28 00:00:00',NULL,NULL,NULL,0,0,1,2,27,5,1,NULL,NULL),(41,'LL41',NULL,'GROOMED 444',8,9,2,NULL,NULL,NULL,'2014-02-11 12:38:37','2014-02-11 00:00:00','2014-02-25 00:00:00','2014-02-28 00:00:00',10,6,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2014-02-28 00:00:00',NULL,NULL,NULL,0,0,1,2,27,5,1,NULL,NULL),(42,'LL42',NULL,'PL01',7,9,NULL,NULL,NULL,NULL,'2014-02-11 12:51:00','2014-02-11 00:00:00','2014-02-27 00:00:00','2014-02-28 00:00:00',20,6,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2014-02-28 00:00:00',NULL,NULL,NULL,0,0,1,2,27,5,1,NULL,NULL),(43,'LL43',NULL,'PL02',6,9,NULL,NULL,41,NULL,'2014-02-12 18:37:55','2014-02-12 00:00:00','2014-02-26 00:00:00','2014-02-27 00:00:00',27,6,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2014-02-26 00:00:00',NULL,NULL,NULL,0,0,1,3,27,5,1,NULL,NULL),(44,'LL44',NULL,NULL,6,15,NULL,NULL,41,NULL,'2014-02-12 18:57:06','2014-02-12 00:00:00','2014-02-24 00:00:00',NULL,27,7,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,3,23,5,1,NULL,NULL),(45,'LL45',NULL,'Backup III',7,15,NULL,NULL,NULL,NULL,'2014-02-12 18:59:54','2014-02-12 00:00:00','2014-02-21 00:00:00','2014-02-27 00:00:00',22,7,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2014-02-20 00:00:00',NULL,NULL,NULL,0,0,1,2,27,5,1,NULL,NULL),(46,'LL46',NULL,'Backup ticked+with L 40,39',9,9,3,NULL,NULL,NULL,'2014-02-14 15:10:55','2014-02-14 00:00:00','2014-02-19 00:00:00','2014-02-26 00:00:00',10,6,NULL,1,NULL,'transfer ref ???? Backup???',NULL,NULL,NULL,NULL,NULL,'2014-02-27 00:00:00',NULL,NULL,NULL,0,0,1,2,33,6,2,86,NULL),(47,'LL47',NULL,'VILGECUA943',9,15,NULL,NULL,NULL,NULL,'2014-02-18 18:08:35','2014-02-18 00:00:00','2014-03-31 00:00:00','2014-05-29 00:00:00',11,8,NULL,1,NULL,NULL,7,NULL,'2014-02-18 00:00:00','2014-02-18 00:00:00','2014-04-24 00:00:00','2014-04-23 00:00:00','2014-06-30 00:00:00','2014-02-18 18:35:37','2014-06-30 00:00:00',0,1,1,2,28,6,7,103,'2014-04-23 00:00:00'),(48,'LL48','BFI872119P°IUGHGT','FRAHAME1P076321',7,15,3,NULL,NULL,'Wenn ich nicht wuesste, dass alles Jammern und Klagen keinen Sinn hat, dann....... :-)))))) Leise rieselt der Schnee singen wir zur Weihnachtszeit und waehrenddessen sollte der Weihnachtsmann mit seinem Schlitten vorbeikommen......','2014-02-19 15:05:56','2014-02-19 00:00:00','2014-02-28 00:00:00','2014-02-26 00:00:00',29,8,NULL,1,6,'Warum ich?',NULL,8,NULL,NULL,NULL,'2014-03-04 00:00:00',NULL,NULL,NULL,0,0,1,2,28,6,2,101,NULL),(49,'LL49',NULL,NULL,8,9,NULL,NULL,NULL,NULL,'2014-02-19 16:40:35','2014-02-19 00:00:00','2014-07-31 00:00:00',NULL,26,6,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2014-02-22 00:00:00',NULL,NULL,NULL,1,0,1,2,24,5,1,NULL,NULL),(50,'LL50',NULL,'98765432:-)',8,15,NULL,NULL,NULL,NULL,'2014-02-19 17:10:38','2014-02-19 00:00:00','2014-04-17 00:00:00','2014-02-21 00:00:00',15,8,NULL,0,NULL,NULL,9,NULL,'2014-02-19 00:00:00','2014-05-01 00:00:00','2014-06-01 00:00:00','2014-02-28 00:00:00','2014-02-19 00:00:00','2014-02-19 18:20:02','2014-11-30 00:00:00',0,1,1,2,42,8,5,98,'2014-05-20 00:00:00'),(51,'LL51',NULL,NULL,7,10,NULL,NULL,NULL,NULL,'2014-02-20 15:36:50','2014-02-20 00:00:00','2014-02-23 00:00:00',NULL,26,7,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,3,22,5,1,NULL,NULL),(52,'LL52',NULL,NULL,10,15,NULL,NULL,NULL,NULL,'2014-02-26 11:18:49','2014-02-27 00:00:00','2014-02-21 00:00:00',NULL,2,9,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,2,22,5,1,NULL,NULL);

--
-- Table structure for table `local_loop_extremity`
--

CREATE TABLE `local_loop_extremity` (
  `id_local_loop_extremity` int(11) NOT NULL AUTO_INCREMENT,
  `id_pop` int(11) DEFAULT NULL,
  `cm_comment` text,
  `dt_init_transfer` datetime DEFAULT NULL,
  `dt_request_transfer` datetime DEFAULT NULL,
  `dt_schedule_delivery` datetime DEFAULT NULL,
  `dt_transfer_real_delivery` datetime DEFAULT NULL,
  `dt_transfer_complete` datetime DEFAULT NULL,
  `id_technical_contact` int(11) DEFAULT NULL,
  `cd_local_loop_extremity_ref` varchar(45) DEFAULT NULL,
  `id_customer` int(11) DEFAULT NULL,
  `id_provider` int(11) DEFAULT NULL,
  `lb_trader` varchar(30) DEFAULT NULL,
  `id_access` int(11) DEFAULT NULL,
  `ll_extremity` varchar(2) DEFAULT NULL,
  `dt_ptt` datetime DEFAULT NULL,
  `dt_fin_tech` datetime DEFAULT NULL,
  `nb_chrono` varchar(45) DEFAULT NULL,
  `id_local_loop_extremity_owner` int(11) DEFAULT NULL,
  `id_old_extremity` int(11) DEFAULT NULL,
  `id_local_loop_extremity_side` int(11) DEFAULT NULL,
  `id_local_loop_extremity_situation` int(11) DEFAULT NULL,
  `lb_siret` varchar(20) DEFAULT NULL,
  `lb_ls_account` varchar(20) DEFAULT NULL,
  `id_local_loop` int(11) DEFAULT NULL,
  `bl_old` tinyint(1) DEFAULT NULL,
  `dt_old_terminate` datetime DEFAULT NULL,
  `dt_ordre_racc` datetime DEFAULT NULL,
  `id_address_pop` int(11) DEFAULT NULL,
  `id_contact_pop` int(11) DEFAULT NULL,
  `id_admin_contact` int(11) DEFAULT NULL,
  `id_delivery_address` int(11) DEFAULT NULL,
  `id_address_provider` int(11) DEFAULT NULL,
  `id_contact_provider` int(11) DEFAULT NULL,
  `bl_transferred` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_local_loop_extremity`),
  UNIQUE KEY `UNIQ_8F46832C970BC560` (`id_old_extremity`),
  KEY `id_pop` (`id_pop`),
  KEY `id_technical_contact` (`id_technical_contact`),
  KEY `id_customer` (`id_customer`),
  KEY `id_provider` (`id_provider`),
  KEY `id_access` (`id_access`),
  KEY `IDX_8F46832CEFC39B65` (`id_local_loop_extremity_owner`),
  KEY `IDX_8F46832CEF79B1C0` (`id_local_loop_extremity_side`),
  KEY `IDX_8F46832C2351B63E` (`id_local_loop_extremity_situation`),
  KEY `IDX_8F46832C38CAF7EA` (`id_local_loop`),
  KEY `IDX_8F46832C4A8C206E` (`id_address_pop`),
  KEY `IDX_8F46832CFCF81BD9` (`id_contact_pop`),
  KEY `IDX_8F46832C3676B5D4` (`id_admin_contact`),
  KEY `IDX_8F46832CE4DA858E` (`id_delivery_address`),
  KEY `IDX_8F46832C8FC1D8CC` (`id_address_provider`),
  KEY `IDX_8F46832CEB6BBADA` (`id_contact_provider`),
  CONSTRAINT `FK_8F46832C2351B63E` FOREIGN KEY (`id_local_loop_extremity_situation`) REFERENCES `local_loop_extremity_situation` (`id_local_loop_extremity_situation`),
  CONSTRAINT `FK_8F46832C3676B5D4` FOREIGN KEY (`id_admin_contact`) REFERENCES `contact` (`id_contact`),
  CONSTRAINT `FK_8F46832C38CAF7EA` FOREIGN KEY (`id_local_loop`) REFERENCES `local_loop` (`id_local_loop`),
  CONSTRAINT `FK_8F46832C4A8C206E` FOREIGN KEY (`id_address_pop`) REFERENCES `address_pop` (`id_address_pop`),
  CONSTRAINT `FK_8F46832C8FC1D8CC` FOREIGN KEY (`id_address_provider`) REFERENCES `address_provider` (`id_address_provider`),
  CONSTRAINT `FK_8F46832C970BC560` FOREIGN KEY (`id_old_extremity`) REFERENCES `local_loop_extremity` (`id_local_loop_extremity`),
  CONSTRAINT `FK_8F46832CE4DA858E` FOREIGN KEY (`id_delivery_address`) REFERENCES `address` (`id_address`),
  CONSTRAINT `FK_8F46832CEB6BBADA` FOREIGN KEY (`id_contact_provider`) REFERENCES `contact_provider` (`id_contact_provider`),
  CONSTRAINT `FK_8F46832CEF79B1C0` FOREIGN KEY (`id_local_loop_extremity_side`) REFERENCES `local_loop_extremity_side` (`id_local_loop_extremity_side`),
  CONSTRAINT `FK_8F46832CEFC39B65` FOREIGN KEY (`id_local_loop_extremity_owner`) REFERENCES `local_loop_extremity_owner` (`id_local_loop_extremity_owner`),
  CONSTRAINT `FK_8F46832CFCF81BD9` FOREIGN KEY (`id_contact_pop`) REFERENCES `contact_pop` (`id_contact_pop`),
  CONSTRAINT `id_pokp` FOREIGN KEY (`id_pop`) REFERENCES `pop` (`id_pop`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `kid_access` FOREIGN KEY (`id_access`) REFERENCES `access` (`id_access`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `kid_customer` FOREIGN KEY (`id_customer`) REFERENCES `customer` (`id_customer`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `kid_provider` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `kid_technical` FOREIGN KEY (`id_technical_contact`) REFERENCES `contact` (`id_contact`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=106 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `local_loop_extremity`
--

INSERT INTO `local_loop_extremity` VALUES (1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',3,6,NULL,1,NULL,NULL,NULL,NULL,3,NULL,NULL,NULL,NULL,NULL,3,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(2,8,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',6,5,NULL,1,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,3,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(3,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,7,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,7,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(5,8,NULL,'2014-01-14 00:00:00','2014-01-15 00:00:00',NULL,'2014-01-14 00:00:00',NULL,NULL,'A1',3,NULL,NULL,1,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,8,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(6,NULL,NULL,'2014-01-16 00:00:00','2014-01-31 00:00:00','2014-01-29 00:00:00','2014-01-15 00:00:00',NULL,NULL,'B2',3,NULL,NULL,1,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,8,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(7,NULL,NULL,'2014-01-16 00:00:00','2014-01-31 00:00:00',NULL,NULL,NULL,NULL,'A1T',7,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,NULL,NULL,NULL,3,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(9,8,NULL,NULL,NULL,'2014-01-14 00:00:00','2014-01-08 00:00:00',NULL,NULL,'A1T',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,5,NULL,NULL,NULL,NULL,8,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(10,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1TT',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,7,NULL,NULL,NULL,NULL,3,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(11,NULL,NULL,NULL,NULL,'2014-01-31 00:00:00','2014-01-23 00:00:00',NULL,NULL,'B2T',5,NULL,'dz',NULL,NULL,NULL,NULL,NULL,1,6,NULL,NULL,NULL,NULL,8,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',16,NULL,'ronaldo',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,9,0,NULL,NULL,NULL,NULL,11,28,NULL,NULL,NULL),(13,9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',3,NULL,'pozgtj',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,9,0,NULL,NULL,NULL,1,6,10,NULL,NULL,NULL),(14,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1TNew',16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,9,NULL,NULL,NULL,NULL,8,0,NULL,NULL,NULL,NULL,11,28,NULL,NULL,NULL),(16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,10,0,NULL,NULL,NULL,NULL,11,28,NULL,NULL,NULL),(17,9,NULL,'2014-01-02 00:00:00','2014-01-30 00:00:00',NULL,NULL,NULL,NULL,'B2Old',19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,10,1,NULL,NULL,1,1,13,39,NULL,NULL,NULL),(18,NULL,NULL,NULL,NULL,'2014-01-24 00:00:00','2014-01-24 00:00:00',NULL,NULL,'B2',16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,17,NULL,NULL,NULL,NULL,10,1,NULL,NULL,NULL,NULL,11,28,NULL,NULL,NULL),(19,10,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,11,0,NULL,NULL,2,5,NULL,NULL,NULL,NULL,NULL),(20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(21,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,12,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(22,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,12,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(23,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,13,0,NULL,NULL,NULL,NULL,13,39,NULL,NULL,NULL),(24,9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,13,0,NULL,NULL,1,1,NULL,NULL,NULL,NULL,NULL),(25,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,14,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(26,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,14,0,NULL,NULL,NULL,NULL,13,39,NULL,NULL,NULL),(27,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,15,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(28,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,15,0,NULL,NULL,NULL,NULL,13,34,NULL,NULL,NULL),(31,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2New',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,18,NULL,NULL,NULL,NULL,10,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(33,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,21,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(34,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,21,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(35,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',20,NULL,'Juanjo',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,22,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(36,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',19,NULL,'Alfredo',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,22,0,NULL,NULL,NULL,NULL,13,39,NULL,NULL,NULL),(37,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',19,NULL,'abc',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,23,0,NULL,NULL,NULL,NULL,13,39,NULL,NULL,NULL),(38,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',20,NULL,'xyz',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,23,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(39,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,24,0,NULL,NULL,NULL,NULL,13,39,NULL,NULL,NULL),(40,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,24,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(41,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,25,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(42,9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,25,0,NULL,NULL,1,1,NULL,NULL,NULL,NULL,NULL),(43,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,26,0,NULL,NULL,NULL,NULL,13,39,NULL,NULL,NULL),(44,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,26,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(45,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,27,0,NULL,NULL,NULL,NULL,13,39,NULL,NULL,NULL),(46,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,27,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(47,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,28,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(48,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',NULL,14,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,NULL,NULL,NULL,NULL,28,0,NULL,NULL,NULL,NULL,NULL,NULL,10,3,NULL),(49,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,29,0,NULL,NULL,NULL,NULL,13,39,NULL,NULL,NULL),(50,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,29,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(51,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,30,0,NULL,NULL,NULL,NULL,13,39,NULL,NULL,NULL),(52,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,30,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(53,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,31,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(54,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,31,0,NULL,NULL,NULL,NULL,13,39,NULL,NULL,NULL),(55,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',19,NULL,'Hugo Boss',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,32,0,NULL,NULL,NULL,NULL,13,39,NULL,NULL,NULL),(56,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,32,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(57,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,33,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(58,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,33,0,NULL,NULL,NULL,NULL,13,39,NULL,NULL,NULL),(59,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,34,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(60,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,34,0,NULL,NULL,NULL,NULL,13,39,NULL,NULL,NULL),(61,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,35,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(62,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,35,0,NULL,NULL,NULL,NULL,13,39,NULL,NULL,NULL),(63,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',19,NULL,'XYZ',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,36,0,NULL,NULL,NULL,NULL,13,39,NULL,NULL,NULL),(64,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',20,NULL,'ABC',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,36,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(65,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',20,NULL,'xyz',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,37,0,NULL,NULL,NULL,NULL,15,37,NULL,NULL,NULL),(66,NULL,NULL,'2014-02-13 00:00:00','2014-02-28 00:00:00',NULL,NULL,NULL,NULL,'B2Old',19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,37,1,NULL,NULL,NULL,NULL,13,39,NULL,NULL,1),(67,NULL,NULL,NULL,NULL,'2014-02-13 00:00:00','2014-02-14 00:00:00',NULL,NULL,'B2',23,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,66,NULL,NULL,NULL,NULL,37,0,NULL,NULL,NULL,NULL,20,47,NULL,NULL,NULL),(68,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,38,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(69,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,38,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(70,10,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,39,0,NULL,NULL,2,5,NULL,NULL,NULL,NULL,NULL),(71,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,39,0,NULL,NULL,NULL,NULL,15,41,NULL,NULL,NULL),(72,10,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,40,0,NULL,NULL,2,5,NULL,NULL,NULL,NULL,NULL),(73,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,40,0,NULL,NULL,NULL,NULL,15,41,NULL,NULL,NULL),(74,9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,41,0,NULL,NULL,1,1,NULL,NULL,NULL,NULL,NULL),(75,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',NULL,15,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,NULL,NULL,NULL,NULL,41,0,NULL,NULL,NULL,NULL,NULL,NULL,16,9,NULL),(76,9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,42,0,NULL,NULL,1,1,NULL,NULL,NULL,NULL,NULL),(77,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,42,0,NULL,NULL,NULL,NULL,15,41,NULL,NULL,NULL),(78,9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,43,0,NULL,NULL,1,1,NULL,NULL,NULL,NULL,NULL),(79,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,43,0,NULL,NULL,NULL,NULL,11,28,NULL,NULL,NULL),(80,9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,44,0,NULL,NULL,1,1,NULL,NULL,NULL,NULL,NULL),(81,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,44,0,NULL,NULL,NULL,NULL,11,28,NULL,NULL,NULL),(82,10,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,45,0,NULL,NULL,2,5,NULL,NULL,NULL,NULL,NULL),(83,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,45,0,NULL,NULL,NULL,NULL,15,41,NULL,NULL,NULL),(84,10,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,46,0,NULL,NULL,2,5,NULL,NULL,NULL,NULL,NULL),(85,NULL,NULL,'2014-02-14 00:00:00','2014-02-26 00:00:00',NULL,NULL,NULL,NULL,'B2Old',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,46,1,NULL,NULL,NULL,NULL,15,41,NULL,NULL,1),(86,NULL,NULL,NULL,NULL,'2014-02-27 00:00:00','2014-02-20 00:00:00','2014-02-06 00:00:00',NULL,'B2',20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,85,NULL,NULL,NULL,NULL,46,0,'2014-02-05 00:00:00',NULL,NULL,NULL,15,37,NULL,NULL,NULL),(87,10,NULL,'2014-02-18 00:00:00','2014-04-01 00:00:00',NULL,NULL,NULL,NULL,'A1Old',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,47,1,NULL,NULL,2,5,NULL,NULL,NULL,NULL,1),(88,NULL,NULL,'2014-02-18 00:00:00','2014-02-20 00:00:00',NULL,NULL,NULL,NULL,'B2Old',23,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,47,1,NULL,NULL,NULL,NULL,20,47,NULL,NULL,1),(89,11,NULL,NULL,NULL,'2014-04-15 00:00:00','2014-04-19 00:00:00',NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,87,NULL,NULL,NULL,NULL,47,1,NULL,NULL,5,8,NULL,NULL,NULL,NULL,0),(90,NULL,NULL,'2014-02-12 00:00:00','2014-02-13 00:00:00','2014-02-27 00:00:00','2014-02-28 00:00:00',NULL,NULL,'B2Old',16,NULL,'HHOOEEXXWW',NULL,NULL,NULL,NULL,NULL,1,88,NULL,NULL,NULL,NULL,47,1,NULL,NULL,NULL,NULL,11,28,NULL,NULL,1),(91,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',23,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,48,1,NULL,NULL,NULL,NULL,20,47,NULL,NULL,0),(92,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,48,0,NULL,NULL,NULL,NULL,13,45,NULL,NULL,0),(93,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',20,NULL,NULL,NULL,'A','2014-02-28 00:00:00','2014-03-15 00:00:00','KKHG7867543EDXXSD',1,NULL,NULL,4,NULL,NULL,49,0,NULL,'2014-03-27 00:00:00',NULL,NULL,15,41,NULL,NULL,0),(94,13,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,49,0,NULL,NULL,6,10,NULL,NULL,NULL,NULL,0),(95,NULL,NULL,'2014-02-20 00:00:00','2014-11-14 00:00:00',NULL,NULL,NULL,NULL,'A1Old',23,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,50,1,NULL,NULL,NULL,NULL,20,47,NULL,NULL,1),(96,NULL,NULL,'2014-02-19 00:00:00','2014-03-12 00:00:00',NULL,NULL,NULL,NULL,'B2Old',19,NULL,'XXXX',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,50,1,NULL,NULL,NULL,NULL,13,45,NULL,NULL,1),(97,NULL,NULL,NULL,NULL,'2014-02-28 00:00:00','2014-02-28 00:00:00',NULL,NULL,'B2',16,NULL,'BBBB',NULL,NULL,NULL,NULL,NULL,1,96,NULL,NULL,NULL,NULL,50,0,NULL,NULL,NULL,NULL,11,28,NULL,NULL,0),(98,NULL,NULL,NULL,NULL,'2014-09-27 00:00:00','2014-10-01 00:00:00',NULL,NULL,'A1',16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,95,NULL,NULL,NULL,NULL,50,0,NULL,NULL,NULL,NULL,11,28,NULL,NULL,0),(99,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,51,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0),(100,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,51,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0),(101,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1New',19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,91,NULL,NULL,NULL,NULL,48,0,NULL,NULL,NULL,NULL,13,45,NULL,NULL,NULL),(102,NULL,NULL,NULL,NULL,'2014-02-20 00:00:00','2014-02-12 00:00:00','2014-02-26 00:00:00',NULL,'B2',23,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,90,NULL,NULL,NULL,NULL,47,0,'2014-02-25 00:00:00',NULL,NULL,NULL,20,47,NULL,NULL,NULL),(103,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1New',23,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,89,NULL,NULL,NULL,NULL,47,0,NULL,NULL,NULL,NULL,20,47,NULL,NULL,NULL),(104,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,52,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0),(105,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,52,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0);

--
-- Table structure for table `local_loop_extremity_owner`
--

CREATE TABLE `local_loop_extremity_owner` (
  `id_local_loop_extremity_owner` int(11) NOT NULL AUTO_INCREMENT,
  `lb_local_loop_extremity_owner` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id_local_loop_extremity_owner`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `local_loop_extremity_owner`
--

INSERT INTO `local_loop_extremity_owner` VALUES (1,'Customer'),(2,'Etrali POP'),(3,'Provider');

--
-- Table structure for table `local_loop_extremity_side`
--

CREATE TABLE `local_loop_extremity_side` (
  `id_local_loop_extremity_side` int(11) NOT NULL AUTO_INCREMENT,
  `lb_local_loop_extremity_side` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id_local_loop_extremity_side`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `local_loop_extremity_side`
--

INSERT INTO `local_loop_extremity_side` VALUES (1,'A'),(2,'B');

--
-- Table structure for table `local_loop_extremity_situation`
--

CREATE TABLE `local_loop_extremity_situation` (
  `id_local_loop_extremity_situation` int(11) NOT NULL AUTO_INCREMENT,
  `lb_local_loop_extremity_situation` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id_local_loop_extremity_situation`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `local_loop_extremity_situation`
--

INSERT INTO `local_loop_extremity_situation` VALUES (1,'E'),(2,'T'),(3,'C'),(4,'M'),(5,'S'),(6,'R');

--
-- Table structure for table `local_loop_extremity_tech`
--

CREATE TABLE `local_loop_extremity_tech` (
  `id_local_loop_extremity_tech` int(11) NOT NULL AUTO_INCREMENT,
  `id_technical_contact` int(11) DEFAULT NULL,
  `id_technical_contact_provider` int(11) DEFAULT NULL,
  `id_ts` int(11) DEFAULT NULL,
  `id_port` int(11) DEFAULT NULL,
  `cm_comment` longtext COLLATE utf8_unicode_ci,
  `dt_ll_tested` datetime DEFAULT NULL,
  `dt_racc` datetime DEFAULT NULL,
  `dt_fin_tech` datetime DEFAULT NULL,
  `constit1` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `constit_reception` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dt_constit` datetime DEFAULT NULL,
  `equipement` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `carte_nature` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nombre_it` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `raccordement` tinyint(1) DEFAULT NULL,
  `penetration` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
  `id_local_loop` int(11) DEFAULT NULL,
  `id_local_loop_extremity` int(11) DEFAULT NULL,
  `id_customer` int(11) DEFAULT NULL,
  `id_provider` int(11) DEFAULT NULL,
  `id_pop` int(11) DEFAULT NULL,
  `id_local_loop_extremity_owner` int(11) DEFAULT NULL,
  `id_technical_contact_pop` int(11) DEFAULT NULL,
  `dt_old_ll_tested` datetime DEFAULT NULL,
  `bl_old` tinyint(1) DEFAULT NULL,
  `bl_transferred` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_local_loop_extremity_tech`),
  UNIQUE KEY `UNIQ_E848EE2F83B67288` (`id_local_loop_extremity`),
  KEY `IDX_E848EE2FD1192B9E` (`id_technical_contact`),
  KEY `IDX_E848EE2F316BC7C7` (`id_technical_contact_provider`),
  KEY `IDX_E848EE2F3FB778C` (`id_ts`),
  KEY `IDX_E848EE2FC8B141CE` (`id_port`),
  KEY `IDX_E848EE2F38CAF7EA` (`id_local_loop`),
  KEY `IDX_E848EE2FD1E2629C` (`id_customer`),
  KEY `IDX_E848EE2FC21F9F09` (`id_provider`),
  KEY `IDX_E848EE2F87745F4C` (`id_pop`),
  KEY `IDX_E848EE2FEFC39B65` (`id_local_loop_extremity_owner`),
  KEY `IDX_E848EE2F57E8DA20` (`id_technical_contact_pop`),
  CONSTRAINT `FK_E848EE2F316BC7C7` FOREIGN KEY (`id_technical_contact_provider`) REFERENCES `contact_provider` (`id_contact_provider`),
  CONSTRAINT `FK_E848EE2F38CAF7EA` FOREIGN KEY (`id_local_loop`) REFERENCES `local_loop` (`id_local_loop`),
  CONSTRAINT `FK_E848EE2F3FB778C` FOREIGN KEY (`id_ts`) REFERENCES `ts` (`id_ts`),
  CONSTRAINT `FK_E848EE2F57E8DA20` FOREIGN KEY (`id_technical_contact_pop`) REFERENCES `contact_pop` (`id_contact_pop`),
  CONSTRAINT `FK_E848EE2F83B67288` FOREIGN KEY (`id_local_loop_extremity`) REFERENCES `local_loop_extremity` (`id_local_loop_extremity`),
  CONSTRAINT `FK_E848EE2F87745F4C` FOREIGN KEY (`id_pop`) REFERENCES `pop` (`id_pop`),
  CONSTRAINT `FK_E848EE2FC21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`),
  CONSTRAINT `FK_E848EE2FC8B141CE` FOREIGN KEY (`id_port`) REFERENCES `port` (`id_port`),
  CONSTRAINT `FK_E848EE2FD1192B9E` FOREIGN KEY (`id_technical_contact`) REFERENCES `contact` (`id_contact`),
  CONSTRAINT `FK_E848EE2FD1E2629C` FOREIGN KEY (`id_customer`) REFERENCES `customer` (`id_customer`),
  CONSTRAINT `FK_E848EE2FEFC39B65` FOREIGN KEY (`id_local_loop_extremity_owner`) REFERENCES `local_loop_extremity_owner` (`id_local_loop_extremity_owner`)
) ENGINE=InnoDB AUTO_INCREMENT=104 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `local_loop_extremity_tech`
--

INSERT INTO `local_loop_extremity_tech` VALUES (1,3,NULL,NULL,NULL,NULL,'2014-01-23 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,3,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(2,8,NULL,NULL,NULL,NULL,'2014-01-30 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,3,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(3,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,7,3,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,7,4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(5,2,NULL,NULL,NULL,NULL,'2014-01-13 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,8,5,3,NULL,8,2,NULL,NULL,NULL,NULL),(6,3,NULL,NULL,NULL,NULL,'2014-01-13 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,8,6,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(7,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,7,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(8,5,NULL,NULL,NULL,NULL,'2014-01-29 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,8,9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,10,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(10,5,NULL,NULL,NULL,NULL,'2014-01-23 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,8,11,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(11,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,9,12,16,NULL,NULL,1,NULL,NULL,NULL,NULL),(12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,9,13,3,NULL,9,2,NULL,NULL,NULL,NULL),(13,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,8,14,16,NULL,NULL,1,NULL,NULL,NULL,NULL),(14,12,NULL,NULL,NULL,NULL,'2014-01-24 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,10,16,16,NULL,NULL,1,NULL,NULL,NULL,NULL),(15,NULL,NULL,NULL,NULL,NULL,'2014-01-29 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,10,17,NULL,NULL,9,2,3,NULL,NULL,NULL),(16,12,NULL,NULL,NULL,NULL,'2014-01-25 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,10,18,16,NULL,NULL,1,NULL,NULL,NULL,NULL),(17,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11,19,NULL,NULL,10,2,4,NULL,NULL,NULL),(18,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,12,21,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,12,22,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(21,14,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,13,23,19,NULL,NULL,1,NULL,NULL,NULL,NULL),(22,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,13,24,NULL,NULL,9,2,NULL,NULL,NULL,NULL),(23,16,NULL,NULL,NULL,NULL,'2014-01-08 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,14,25,20,NULL,NULL,1,NULL,NULL,NULL,NULL),(24,14,NULL,NULL,NULL,NULL,'2014-01-22 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,14,26,19,NULL,NULL,1,NULL,NULL,NULL,NULL),(25,16,NULL,NULL,NULL,NULL,'2014-01-15 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,15,27,20,NULL,NULL,1,NULL,NULL,NULL,NULL),(26,14,NULL,NULL,NULL,NULL,'2014-01-14 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,15,28,19,NULL,NULL,1,NULL,NULL,NULL,NULL),(29,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,10,31,20,NULL,NULL,1,NULL,NULL,NULL,NULL),(31,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,21,33,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL),(32,16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,21,34,20,NULL,NULL,1,NULL,NULL,0,NULL),(33,NULL,NULL,NULL,NULL,NULL,'2014-01-31 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,22,35,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL),(34,NULL,NULL,NULL,NULL,NULL,'2014-01-31 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,22,36,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL),(35,14,NULL,NULL,NULL,NULL,'2014-03-22 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,23,37,19,NULL,NULL,1,NULL,NULL,0,NULL),(36,16,NULL,NULL,NULL,NULL,'2014-01-24 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,23,38,20,NULL,NULL,1,NULL,NULL,0,NULL),(37,14,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,24,39,19,NULL,NULL,1,NULL,NULL,0,NULL),(38,16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,24,40,20,NULL,NULL,1,NULL,NULL,0,NULL),(39,16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,25,41,20,NULL,NULL,1,NULL,NULL,0,NULL),(40,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,25,42,NULL,NULL,9,2,NULL,NULL,0,NULL),(41,14,NULL,NULL,NULL,NULL,'2014-01-31 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,26,43,19,NULL,NULL,1,NULL,NULL,0,NULL),(42,16,NULL,NULL,NULL,NULL,'2014-01-31 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,26,44,20,NULL,NULL,1,NULL,NULL,0,NULL),(43,14,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,27,45,19,NULL,NULL,1,NULL,NULL,0,NULL),(44,16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,27,46,20,NULL,NULL,1,NULL,NULL,0,NULL),(45,16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,28,47,20,NULL,NULL,1,NULL,NULL,0,NULL),(46,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,28,48,NULL,14,NULL,3,NULL,NULL,0,NULL),(47,14,NULL,NULL,NULL,NULL,'2014-02-13 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,29,49,19,NULL,NULL,1,NULL,NULL,0,NULL),(48,16,NULL,NULL,NULL,NULL,'2014-02-13 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,29,50,20,NULL,NULL,1,NULL,NULL,0,NULL),(49,14,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,30,51,19,NULL,NULL,1,NULL,NULL,0,NULL),(50,16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,30,52,20,NULL,NULL,1,NULL,NULL,0,NULL),(51,16,NULL,NULL,NULL,NULL,'2014-01-31 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,31,53,20,NULL,NULL,1,NULL,NULL,0,NULL),(52,14,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,31,54,19,NULL,NULL,1,NULL,NULL,0,NULL),(53,14,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,32,55,19,NULL,NULL,1,NULL,NULL,0,NULL),(54,16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,32,56,20,NULL,NULL,1,NULL,NULL,0,NULL),(55,16,NULL,NULL,NULL,NULL,'2014-02-03 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,33,57,20,NULL,NULL,1,NULL,NULL,0,NULL),(56,14,NULL,NULL,NULL,NULL,'2014-02-05 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,33,58,19,NULL,NULL,1,NULL,NULL,0,NULL),(57,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,34,59,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL),(58,14,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,34,60,19,NULL,NULL,1,NULL,NULL,0,NULL),(59,16,NULL,NULL,NULL,NULL,'2014-03-27 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,35,61,20,NULL,NULL,1,NULL,NULL,0,NULL),(60,14,NULL,NULL,NULL,NULL,'2014-02-04 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,35,62,19,NULL,NULL,1,NULL,NULL,0,NULL),(61,14,NULL,NULL,NULL,NULL,'2014-02-28 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,36,63,19,NULL,NULL,1,NULL,NULL,0,NULL),(62,16,NULL,NULL,NULL,NULL,'2014-02-21 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,36,64,20,NULL,NULL,1,NULL,NULL,0,NULL),(63,16,NULL,NULL,NULL,NULL,'2014-02-20 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,37,65,20,NULL,NULL,1,NULL,'2014-04-25 00:00:00',0,NULL),(64,14,NULL,NULL,NULL,NULL,'2014-02-20 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,37,66,19,NULL,NULL,1,NULL,'2014-02-26 00:00:00',1,1),(65,21,NULL,NULL,NULL,NULL,'2014-02-20 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,37,67,23,NULL,NULL,1,NULL,'2014-02-21 00:00:00',0,NULL),(66,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,38,68,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL),(67,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,38,69,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL),(68,NULL,NULL,NULL,NULL,NULL,'2014-02-28 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,39,70,NULL,NULL,10,2,4,NULL,0,NULL),(69,16,NULL,NULL,NULL,NULL,'2014-02-28 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,39,71,20,NULL,NULL,1,NULL,NULL,0,NULL),(70,NULL,NULL,NULL,NULL,NULL,'2014-02-28 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,40,72,NULL,NULL,10,2,4,NULL,0,NULL),(71,16,NULL,NULL,NULL,NULL,'2014-02-28 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,40,73,20,NULL,NULL,1,NULL,NULL,0,NULL),(72,NULL,NULL,NULL,NULL,NULL,'2014-02-28 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,41,74,NULL,NULL,9,2,7,NULL,0,NULL),(73,NULL,16,NULL,NULL,NULL,'2014-02-28 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,41,75,NULL,15,NULL,3,NULL,NULL,0,NULL),(74,NULL,NULL,NULL,NULL,NULL,'2014-02-28 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,42,76,NULL,NULL,9,2,7,NULL,0,NULL),(75,16,NULL,NULL,NULL,NULL,'2014-02-28 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,42,77,20,NULL,NULL,1,NULL,NULL,0,NULL),(76,NULL,NULL,NULL,NULL,NULL,'2014-02-27 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,43,78,NULL,NULL,9,2,7,NULL,0,NULL),(77,12,NULL,NULL,NULL,NULL,'2014-02-27 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,43,79,16,NULL,NULL,1,NULL,NULL,0,NULL),(78,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,44,80,NULL,NULL,9,2,7,NULL,0,NULL),(79,12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,44,81,16,NULL,NULL,1,NULL,NULL,0,NULL),(80,NULL,NULL,NULL,NULL,NULL,'2014-02-19 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,45,82,NULL,NULL,10,2,4,NULL,0,NULL),(81,16,NULL,NULL,NULL,NULL,'2014-02-26 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,45,83,20,NULL,NULL,1,NULL,NULL,0,NULL),(82,NULL,NULL,NULL,NULL,NULL,'2014-02-27 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,46,84,NULL,NULL,10,2,4,NULL,0,NULL),(83,16,NULL,NULL,NULL,NULL,'2014-02-25 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,46,85,20,NULL,NULL,1,NULL,NULL,1,1),(84,16,NULL,NULL,NULL,NULL,'2014-02-06 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,46,86,20,NULL,NULL,1,NULL,NULL,0,NULL),(85,NULL,NULL,NULL,NULL,NULL,'2014-04-26 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,47,87,NULL,NULL,10,2,4,'2014-05-29 00:00:00',1,1),(86,21,NULL,NULL,NULL,NULL,'2014-04-27 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,47,88,23,NULL,NULL,1,NULL,'2014-06-24 00:00:00',1,1),(87,NULL,NULL,NULL,NULL,NULL,'2014-04-24 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,47,89,NULL,NULL,11,2,9,'2014-04-19 00:00:00',1,0),(88,12,NULL,NULL,NULL,NULL,'2014-04-25 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,47,90,16,NULL,NULL,1,NULL,'2014-03-03 00:00:00',1,1),(89,21,NULL,NULL,NULL,NULL,'2014-02-21 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,48,91,23,NULL,NULL,1,NULL,NULL,1,0),(90,14,NULL,NULL,NULL,NULL,'2014-02-19 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,48,92,19,NULL,NULL,1,NULL,NULL,0,0),(91,16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,49,93,20,NULL,NULL,1,NULL,NULL,0,0),(92,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,49,94,NULL,NULL,13,2,NULL,NULL,0,0),(93,21,NULL,NULL,NULL,NULL,'2014-04-17 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,50,95,23,NULL,NULL,1,NULL,'2014-02-27 00:00:00',1,1),(94,14,NULL,NULL,NULL,NULL,'2014-04-18 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,50,96,19,NULL,NULL,1,NULL,'2014-02-28 00:00:00',1,1),(95,12,NULL,NULL,NULL,NULL,'2014-04-18 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,50,97,16,NULL,NULL,1,NULL,'2014-02-28 00:00:00',0,0),(96,12,NULL,NULL,NULL,NULL,'2014-09-26 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,50,98,16,NULL,NULL,1,NULL,NULL,0,0),(97,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,51,99,NULL,NULL,NULL,NULL,NULL,NULL,0,0),(98,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,51,100,NULL,NULL,NULL,NULL,NULL,NULL,0,0),(99,14,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,48,101,19,NULL,NULL,1,NULL,NULL,0,0),(100,21,NULL,NULL,NULL,NULL,'2014-02-26 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,47,102,23,NULL,NULL,1,NULL,NULL,0,NULL),(101,21,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,47,103,23,NULL,NULL,1,NULL,NULL,0,0),(102,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,52,104,NULL,NULL,NULL,NULL,NULL,NULL,0,0),(103,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,52,105,NULL,NULL,NULL,NULL,NULL,NULL,0,0);

--
-- Table structure for table `local_loop_extremity_tech_outport`
--

CREATE TABLE `local_loop_extremity_tech_outport` (
  `id_local_loop_extremity_tech` int(11) NOT NULL,
  `id_out_port` int(11) NOT NULL,
  PRIMARY KEY (`id_local_loop_extremity_tech`,`id_out_port`),
  KEY `IDX_29D4F30D4A449A67` (`id_local_loop_extremity_tech`),
  KEY `IDX_29D4F30DCA47EB7A` (`id_out_port`),
  CONSTRAINT `FK_29D4F30D4A449A67` FOREIGN KEY (`id_local_loop_extremity_tech`) REFERENCES `local_loop_extremity_tech` (`id_local_loop_extremity_tech`),
  CONSTRAINT `FK_29D4F30DCA47EB7A` FOREIGN KEY (`id_out_port`) REFERENCES `port` (`id_port`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `local_loop_extremity_tech_outport`
--


--
-- Table structure for table `local_loop_extremity_tech_ts`
--

CREATE TABLE `local_loop_extremity_tech_ts` (
  `id_local_loop_extremity_tech` int(11) NOT NULL,
  `id_out_ts` int(11) NOT NULL,
  PRIMARY KEY (`id_local_loop_extremity_tech`,`id_out_ts`),
  KEY `IDX_91153A1E4A449A67` (`id_local_loop_extremity_tech`),
  KEY `IDX_91153A1E5E87044C` (`id_out_ts`),
  CONSTRAINT `FK_91153A1E4A449A67` FOREIGN KEY (`id_local_loop_extremity_tech`) REFERENCES `local_loop_extremity_tech` (`id_local_loop_extremity_tech`),
  CONSTRAINT `FK_91153A1E5E87044C` FOREIGN KEY (`id_out_ts`) REFERENCES `ts` (`id_ts`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `local_loop_extremity_tech_ts`
--


--
-- Table structure for table `local_loop_interface_settings`
--

CREATE TABLE `local_loop_interface_settings` (
  `id_local_loop_interface_settings` int(11) NOT NULL AUTO_INCREMENT,
  `id_transaction_type` int(11) DEFAULT NULL,
  `id_transaction_status` int(11) DEFAULT NULL,
  `bl_hide` tinyint(1) NOT NULL,
  `bl_editable` tinyint(1) NOT NULL,
  `bl_old_extremity` tinyint(1) NOT NULL,
  `bl_mandatory` tinyint(1) NOT NULL,
  `lbEntity` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lbField` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id_local_loop_interface_settings`),
  KEY `IDX_91D3D8908D173C59` (`id_transaction_type`),
  KEY `IDX_91D3D8908E5FA5F3` (`id_transaction_status`),
  CONSTRAINT `FK_91D3D8908D173C59` FOREIGN KEY (`id_transaction_type`) REFERENCES `TransactionType` (`id_transaction_type`),
  CONSTRAINT `FK_91D3D8908E5FA5F3` FOREIGN KEY (`id_transaction_status`) REFERENCES `TransactionStatus` (`id_transaction_status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `local_loop_interface_settings`
--


--
-- Table structure for table `local_loop_option`
--

CREATE TABLE `local_loop_option` (
  `id_local_loop_option` int(11) NOT NULL AUTO_INCREMENT,
  `id_option_type` int(11) DEFAULT NULL,
  `nb_quantity` int(11) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) NOT NULL,
  `id_local_loop` int(11) DEFAULT NULL,
  `cd_option` varchar(255) DEFAULT NULL,
  `lb_option` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id_local_loop_option`),
  KEY `id_option` (`id_option_type`),
  KEY `key_local_loop_idx` (`id_local_loop`),
  CONSTRAINT `key_local_loop` FOREIGN KEY (`id_local_loop`) REFERENCES `local_loop` (`id_local_loop`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `key_option` FOREIGN KEY (`id_option_type`) REFERENCES `option_type` (`id_option_type`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `local_loop_option`
--

INSERT INTO `local_loop_option` VALUES (1,3,NULL,'2014-01-22 00:00:00','2014-01-22 00:00:00',1,10,'Version Française 2',NULL),(3,3,NULL,'2014-01-29 11:03:25','2014-01-29 11:03:25',1,22,'Version Française 2',NULL),(4,3,4,'2014-02-19 17:58:28','2014-02-19 17:58:28',1,50,'Version Française 2',NULL);

--
-- Table structure for table `local_loop_owner`
--

CREATE TABLE `local_loop_owner` (
  `id_local_loop_owner` int(11) NOT NULL AUTO_INCREMENT,
  `lb_local_loop_owner` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id_local_loop_owner`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `local_loop_owner`
--

INSERT INTO `local_loop_owner` VALUES (1,'Etrali'),(2,'Customer');

--
-- Table structure for table `local_loop_type`
--

CREATE TABLE `local_loop_type` (
  `id_local_loop_type` int(11) NOT NULL AUTO_INCREMENT,
  `lb_local_loop_type` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id_local_loop_type`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `local_loop_type`
--

INSERT INTO `local_loop_type` VALUES (1,'regular'),(2,'Groomed'),(3,'Backup'),(4,'Spare'),(5,'Netrecova');

--
-- Table structure for table `log`
--

CREATE TABLE `log` (
  `id_log` int(11) NOT NULL AUTO_INCREMENT,
  `id_object_type` int(11) DEFAULT NULL,
  `id_object` int(11) DEFAULT NULL,
  `cm_comment` varchar(255) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `id_user` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_log`),
  KEY `id_object_type` (`id_object_type`),
  KEY `id_user` (`id_user`),
  CONSTRAINT `FK_8F3F68C56B3CA4B` FOREIGN KEY (`id_user`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_8F3F68C59D9A6CD` FOREIGN KEY (`id_object_type`) REFERENCES `object_type` (`id_object_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `log`
--


--
-- Table structure for table `log_model`
--

CREATE TABLE `log_model` (
  `id_log_model` int(11) NOT NULL AUTO_INCREMENT,
  `id_object_type` int(11) DEFAULT NULL,
  `cm_comment` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id_log_model`),
  KEY `id_object_type` (`id_object_type`),
  CONSTRAINT `FK_F7EB99849D9A6CD` FOREIGN KEY (`id_object_type`) REFERENCES `object_type` (`id_object_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `log_model`
--


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

CREATE TABLE `mail` (
  `id_mail` int(11) NOT NULL AUTO_INCREMENT,
  `lb_mail` varchar(100) DEFAULT NULL,
  `lb_subject` varchar(100) DEFAULT NULL,
  `lb_text` varchar(255) DEFAULT NULL,
  `nb_mail` int(11) DEFAULT NULL,
  `lb_transaction_type` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id_mail`)
) ENGINE=InnoDB AUTO_INCREMENT=117 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mail`
--

INSERT INTO `mail` VALUES (1,'GINA NG: 1 NEW ORD','GINA NG: 1 NEW ORDER  for <REF>','Creation! A new service has been issued on <DATE>. Please check in GINA NG and proceed urgently',1,'CREATION'),(2,'GINA NG: 2 ACCPT SE','GINA NG: 2 ACCEPTANCE SENT for <REF>','Creation! Acceptance has been sent on <DATE> ',2,'CREATION'),(3,'GINA NG: 3 ACCPT RE','GINA NG: 3 ACCEPTANCE RECEIVED for <REF>','Creation! Acceptance has been received on <DATE>. Please check in GINA NG and proceed urgently.',3,'CREATION'),(4,'GINA NG: 4 VALIDATED','GINA NG: 4 ORDER VALIDATED  for <REF>','Creation! Service has been validated on <DATE>. Please check in GINA NG and proceed urgently',4,'CREATION'),(5,'GINA NG: 5 LL ORDER','GINA NG: 5 Local loop ordered  for <REF>','Creation! Local loop has been ordered on <DATE>.',5,'CREATION'),(6,'GINA NG: 6 LL SCHED','GINA NG: 6 Local loop scheduled delivery date  for <REF>','Creation! Local loop delivery date is scheduled. Please check in GINA NG and proceed urgently on <DATE>.',6,'CREATION'),(7,'GINA NG: 7 ORD PROG','GINA NG: 7 Order in progress  for <REF>','Creation! Order in progress   on <DATE>.',7,'CREATION'),(8,'GINA NG: 8 LL SCHED MOD','GINA NG: 8 Modification on LL scheduled delivery date  for <REF>','Creation!  Local loop scheduled delivery date has been modified. Please check in GINA NG and proceed urgently on <DATE>.',8,'CREATION'),(9,'GINA NG: 9 LL TEST','GINA NG: 9 Local loop tested  for <REF>','Creation! Local loop has been tested on <DATE>. Please check in GINA NG and proceed urgently.',9,'CREATION'),(10,'GINA NG: 10 BACKB PRO','GINA NG: 10 Backbone programmed  for <REF>','Creation! Backbone has been programmed on <DATE>. Please check in GINA NG and proceed urgently.',10,'CREATION'),(11,'GINA NG: 11 FRAME ','GINA NG: 11 FRAME TO FRAME status  for <REF>','Creation! All components of the service have been tested and programmed. Service is now in FRAME TO FRAME status  on <DATE>.',11,'CREATION'),(12,'GINA NG: 12 END TEST','GINA NG: 12 END-TO-END TEST PENDING  for <REF>','Creation! Service is ready for END TO END TEST. Please check in GINA NG and proceed urgently on <DATE>.',12,'CREATION'),(13,'GINA NG: 13 EXTR END TEST','GINA NG: 13 EXTR END-TO-END TEST PENDING  for <REF>','Creation! Extremity is ready for END TO END TEST. Please check in GINA NG and proceed urgently on <DATE>.',13,'CREATION'),(14,'GINA NG: 14 SERV TESTED','GINA NG: 14 END-TO-END TEST COMPLETED  for <REF>','Creation! Service is successfully tested. Please switch service into status  on <DATE>.',14,'CREATION'),(15,'GINA NG: 15 SERV TESTED','GINA NG: 15 ALL END-TO-END TESTS COMPLETED  for <REF>','Creation! Multipoint service is successfully tested for all extremities. Please switch service into status  on <DATE>.',15,'CREATION'),(16,'GINA NG: 16 IN SERVICE ','GINA NG: 16 IN SERVICE ADVICE  for <REF>','Creation! Service is up and running. Please check Billing Start Date and inform the customer on <DATE>.',16,'CREATION'),(17,'GINA NG: 17 TRANSFER INIT','GINA NG: 17 TRANSFER INITIATED  for <REF>','TRANSFER! A transfer has been initiated on <DATE>. Please check in GINA NG and proceed urgently.',17,'TRANSFER'),(18,'GINA NG: 18 TRANSF ACCPT SE','GINA NG: 18 TRANSFER ACCEPTANCE SENT for <REF>','TRANSFER! Acceptance has been sent on <DATE> for extremity transfer. ',18,'TRANSFER'),(19,'GINA NG: 19  TRANSF ACCPT RE','GINA NG: 19 TRANSFER ACCEPTANCE RECEIVED for <REF>','TRANSFER! Acceptance has been received on <DATE> for extremity transfer. Please check in GINA NG and proceed urgently.',19,'TRANSFER'),(20,'GINA NG: 20 TRANSF VALIDATED','GINA NG: 20 TRANSFER VALIDATED  for <REF>','TRANSFER has been validated on <DATE>. Please check in GINA NG and proceed urgently.',20,'TRANSFER'),(21,'GINA NG: 21 TRANSF LL ORDER','GINA NG: 21 TRANSFER Local loop ordered  for <REF>','TRANSFER! - Local loop has been ordered on <DATE> for new extremity ',21,'TRANSFER'),(22,'GINA NG: 22 TRANSF LL SCHED','GINA NG: 22 TRANSFER Local loop scheduled delivery date  for <REF>','TRANSFER! -  Local loop delivery date is scheduled for new extremity. Please check in GINA NG and proceed urgently on <DATE>.',22,'TRANSFER'),(23,'GINA NG: 23 TRANSF IN PROG','GINA NG: 23 TRANSFER in progress  for <REF>','TRANSFER in progress   on <DATE>.',23,'TRANSFER'),(24,'GINA NG: 24 TRANSF LL SCHED MOD','GINA NG: 24 TRANSFER Modification on LL scheduled delivery date  - <REF> for <REF>','TRANSFER! -  Local loop scheduled delivery date has been modified. Please check in GINA NG and proceed urgently on <DATE>.',24,'TRANSFER'),(25,'GINA NG: 25 TRANSF LL TEST','GINA NG: 25 TRANSFER Local loop tested  for <REF>','TRANSFER! Local loop has been tested on <DATE>. Please check in GINA NG and proceed urgently.',25,'TRANSFER'),(26,'GINA NG: 26 TRANSF BACKB PRO','GINA NG: 26 TRANSFER Backbone programmed  for <REF>','TRANSFER! Backbone has been programmed on <DATE>. Please check in GINA NG and proceed urgently.',26,'TRANSFER'),(27,'GINA NG: 27 TRANSF FRAME ','GINA NG: 27 TRANSFER - FRAME TO FRAME status  for <REF>','TRANSFER! All components of the service have been tested and programmed. Service is now in FRAME TO FRAME status  on <DATE>.',27,'TRANSFER'),(28,'GINA NG: 28 TRANSF END TEST','GINA NG: 28 TRANSFER END-TO-END TEST PENDING  for <REF>','TRANSFER! Service is ready for END TO END TEST. Please check in GINA NG and proceed urgently on <DATE>.',28,'TRANSFER'),(29,'GINA NG: 29 TRANSF SERV TESTED','GINA NG: 29 TRANSFER  END-TO-END TEST COMPLETED  for <REF>','TRANSFER! Service is successfully tested. Please switch service into status  on <DATE>.',29,'TRANSFER'),(30,'GINA NG: 30 TRANSF COMPLETED ','GINA NG: 30 TRANSFER COMPLETED  for <REF>','TRANSFER! Transfer is up and running. Please check Billing Start Date and inform the customer on <DATE>.',30,'TRANSFER'),(31,'GINA NG: 31 UP-DOWN  INIT','GINA NG: 31 UP-/ DOWNGRADE INITIATED  for <REF>','UP-/DOWNGRADE! A new Up-/Downgrade has been issued on <DATE>. Please check in GINA NG and proceed urgently',31,'UP-DOWN'),(32,'GINA NG: 32 UP-DOWN ACCPT SE','GINA NG: 32 UP-DOWN GRADE - ACCEPTANCE SENT for <REF>','UP-/DOWNGRADE! Acceptance has been sent on <DATE> ',32,'UP-DOWN'),(33,'GINA NG: 33 UP-DOWN ACCPT RE','GINA NG: 33 UP-DOWN GRADE -ACCEPTANCE RECEIVED for <REF>','UP-/DOWNGRADE! Acceptance has been received on <DATE>. Please check in GINA NG and proceed urgently.',33,'UP-DOWN'),(34,'GINA NG: 34 UP-DOWN VALIDATED','GINA NG: 34 UP-DOWN GRADE -ORDER VALIDATED  for <REF>','UP-/DOWNGRADE! Service has been validated on <DATE>. Please check in GINA NG and proceed urgently',34,'UP-DOWN'),(35,'GINA NG: 35 UP-DOWN LL ORDER','GINA NG: 35 UP-DOWN GRADE -Local loop ordered  for <REF>','UP-/DOWNGRADE! Local loop has been ordered on <DATE>.',35,'UP-DOWN'),(36,'GINA NG: 36 UP-DOWN LL SCHED','GINA NG: 36 UP-DOWN GRADE -Local loop scheduled delivery date  for <REF>','UP-/DOWNGRADE! Local loop delivery date is scheduled. Please check in GINA NG and proceed urgently on <DATE>.',36,'UP-DOWN'),(37,'GINA NG: 37 UP-DOWN ORD PROG','GINA NG: 7 UP-DOWN GRADE - Order in progress  for <REF>','UP-/DOWNGRADE! Order in progress   on <DATE>.',37,'UP-DOWN'),(38,'GINA NG: 38 UP-DOWN LL SCHED MOD','GINA NG: 38 UP-DOWN GRADE -Modification on LL scheduled delivery date  for <REF>','UP-/DOWNGRADE!  Local loop scheduled delivery date has been modified. Please check in GINA NG and proceed urgently on <DATE>.',38,'UP-DOWN'),(39,'GINA NG: 39 UP-DOWN LL TEST','GINA NG: 39 UP-DOWN GRADE -Local loop tested  for <REF>','UP-/DOWNGRADE! Local loop has been tested on <DATE>. Please check in GINA NG and proceed urgently.',39,'UP-DOWN'),(40,'GINA NG: 40 UP-DOWN BACKB PRO','GINA NG: UP-DOWN GRADE  for <REF>','UP-/DOWNGRADE! Backbone has been programmed on <DATE>. Please check in GINA NG and proceed urgently.',40,'UP-DOWN'),(41,'GINA NG: 41 UP-DOWN END TEST','GINA NG: 41 UP-DOWN GRADE -END-TO-END TEST PENDING  for <REF>','UP-/DOWNGRADE! Service is ready for END TO END TEST. Please check in GINA NG and proceed urgently on <DATE>.',41,'UP-DOWN'),(42,'GINA NG: 42 UP-DOWN END TEST','GINA NG: 42 UP-DOWN GRADE - END-TO-END TEST PENDING  for <REF>','UP-/DOWNGRADE! Extremity is ready for END TO END TEST. Please check in GINA NG and proceed urgently on <DATE>.',42,'UP-DOWN'),(43,'GINA NG: 43 UP-DOWN SERV TESTED','GINA NG: 43 UP-DOWN GRADE -END-TO-END TEST COMPLETED  for <REF>','UP-/DOWNGRADE! Up-/Downgrade is successfully tested. Please close transaction and inform the customer on <DATE>.',43,'UP-DOWN'),(44,'GINA NG: 44 UP-DOWN SERV TESTED','GINA NG: 44 UP-DOWN GRADE - ALL END-TO-END TESTS COMPLETED  for <REF>','UP-/DOWNGRADE! Multipoint service is successfully tested for all extremities. Please close Up-/Downgrade transaction on <DATE>.',44,'UP-DOWN'),(45,'GINA NG: 45 UP-/DOWN COMPLETED ','GINA NG: 45 IN SERVICE ADVICE  for <REF>','UP-/DOWNGRADE! Service is up and running. Please check Billing Terms and inform the customer on <DATE>.',45,'UP-DOWN'),(46,'GINA NG: 46 NEW EXTR INIT','GINA NG: 46 NEW EXTREMITY INITIATED  for <REF>','NEW EXTREMITY! A new extremity has been initiated on <DATE>. Please check in GINA NG and proceed urgently.',46,'NEW EXTR'),(47,'GINA NG: 47 NEW EXTR ACCPT SE','GINA NG: 47 NEW EXTREMITY ACCEPTANCE SENT for <REF>','NEW EXTREMITY! Acceptance has been sent on <DATE> for new extremity. ',47,'NEW EXTR'),(48,'GINA NG: 48 NEW EXTR ACCPT RE','GINA NG: 48 NEW EXTREMITY ACCEPTANCE RECEIVED for <REF>','NEW EXTREMITY! Acceptance has been received on <DATE> for new extremity. Please check in GINA NG and proceed urgently.',48,'NEW EXTR'),(49,'GINA NG: 49 NEW EXTR VALIDATED','GINA NG: 49 NEW EXTREMITY VALIDATED  for <REF>','NEW EXTREMITY has been validated on <DATE>. Please check in GINA NG and proceed urgently.',49,'NEW EXTR'),(50,'GINA NG: 50 NEW EXTR LL ORDER','NEW EXTREMITY Local loop ordered  for <REF>','NEW EXTREMITY! - Local loop has been ordered on <DATE> for new extremity ',50,'NEW EXTR'),(51,'GINA NG: 51 NEW EXTR LL SCHED','GINA NG: 51 NEW EXTREMITY Local loop scheduled delivery date  for <REF>','NEW EXTREMITY! -  Local loop delivery date is scheduled for new extremity. Please check in GINA NG and proceed urgently on <DATE>.',51,'NEW EXTR'),(52,'GINA NG: 52 NEW EXTR IN PROG','GINA NG: 52 NEW EXTREMITY in progress  for <REF>','NEW EXTREMITY in progress   on <DATE>.',52,'NEW EXTR'),(53,'GINA NG: 53 NEW EXTR LL SCHED MOD','53  GINA NG: 53 NEW EXTREMITY Modification on LL scheduled delivery date  for <REF>','NEW EXTREMITY! -  Local loop scheduled delivery date has been modified. Please check in GINA NG and proceed urgently on <DATE>.',53,'NEW EXTR'),(54,'GINA NG: 54 NEW EXTR LL TEST','GINA NG: 54 NEW EXTREMITY Local loop tested  for <REF>','NEW EXTREMITY! Local loop has been tested on <DATE>. Please check in GINA NG and proceed urgently.',54,'NEW EXTR'),(55,'GINA NG: 55 NEW EXTR BACKB PRO','GINA NG: 55 NEW EXTREMITY Backbone programmed  for <REF>','NEW EXTREMITY! Backbone has been programmed on <DATE>. Please check in GINA NG and proceed urgently.',55,'NEW EXTR'),(56,'GINA NG: 56 NEW EXTR FRAME ','GINA NG: 56 NEW EXTREMITY - FRAME TO FRAME status  for <REF>','NEW EXTREMITY! All components of the service have been tested and programmed. Service is now in FRAME TO FRAME status  on <DATE>.',56,'NEW EXTR'),(57,'GINA NG: 57 NEW EXTR END TEST','GINA NG: 57 NEW EXTREMITY - END-TO-END TEST PENDING  for <REF>','NEW EXTREMITY! Service is ready for END TO END TEST. Please check in GINA NG and proceed urgently on <DATE>.',57,'NEW EXTR'),(58,'GINA NG: 58 NEW EXTR SERV TESTED','GINA NG: 58 NEW EXTREMITY  END-TO-END TEST COMPLETED  for <REF>','NEW EXTREMITY! New extremity is successfully tested. Please switch into service in GINA NG and inform the customer on <DATE>.',58,'NEW EXTR'),(59,'GINA NG: 59 NEW EXTR COMPLETED ','GINA NG: 59 NEW EXTREMITY COMPLETED  for <REF>','NEW EXTREMITY! New extremity is up and running. Please check Billing terms and inform the customer on <DATE>.',59,'NEW EXTR'),(60,'GINA NG: 60 EXTR TERMIN INIT','GINA NG: 60 EXTREMITY TERMINATION INITIATED  for <REF>','EXTREMITY TERMINATION INITIATED! Extremity termination process has been initiated. Please check in GINA NG, check local loop termination and inform the customer on <DATE>.',60,'EXTR TERMIN'),(61,'GINA NG: 61 EXTR TERMINATED ','GINA NG: 61 EXTREMITY TERMINATED  for <REF>','EXTREMITY TERMINATED! Extremity is terminated now. Please check in GINA NG and inform the customer on <DATE>.',61,'EXTR TERMIN'),(62,'GINA NG: 62 SERV TERMIN INIT','GINA NG: 62 SERVICE TERMINATION INITIATED  for <REF>','SERVICE TERMINATION INITIATED! Service termination process has been initiated. Please check in GINA NG and inform the customer on <DATE>.',62,'SERV TERMIN'),(63,'GINA NG: 63 SERV TERMINATED ','GINA NG: 63 SERVICE TERMINATED  for <REF>','SERVICE TERMINATED! Service is terminated now. Please check in GINA NG and inform the customer on <DATE>.',63,'SERV TERMIN'),(64,'GINA NG: 81 NEW DEVICE ORDERED ','GINA NG: 81 NEW DEVICE ORDERED  for <REF>','NEW DEVICE ORDERED! New device is ordered. Please coordinate device installation on <DATE>.',81,'NEW DEVICE '),(65,'GINA NG: 82 NEW DEVICE INSTALL COMPLETED ','GINA NG: 82 NEW DEVICE INSTALLATION COMPLETED  for <REF>','NEW DEVICE INSTALLED! New device  is up and running. Please check Billing terms and inform the customer on <DATE>.',82,'NEW DEVICE '),(66,'GINA NG: 83 DEVICE TERMIN INIT','GINA NG: 83 DEVICE TERMINATION INITIATED  for <REF>','DEVICE TERMINATION INITIATED! Device termination process has been initiated. Please check in GINA NG and inform the engineers on <DATE>.',83,' DEVICE TERMIN '),(67,'GINA NG: 84 DEVICE TERMINATED ','GINA NG: 84 DEVICE TERMINATED  for <REF>','DEVICE TERMINATED! Device is terminated now. Please check in GINA NG and inform the customer on <DATE>.',84,'DEVICE TERMIN'),(68,'GINA NG: 100 VALIDAT CANCELLED','GINA NG: 100  for <REF>','SERVICE or EXTREMITY VALIDATION has been cancelled! Please check in GINA NG and proceed urgently! on <DATE>.',100,'VALID CANC'),(69,'GINA NG: 200 TERMINATION MODIFIED','GINA NG: 200  for <REF>','SERVICE or EXTREMITY TERMINATION DATES have been modified. Please check in GINA NG and proceed urgently! Please do not forget to inform the customer accordingly on <DATE>.',200,'TERMIN MODIF'),(70,'GINA NG: 300 TRANSFER CANCELLED','GINA NG: 300  for <REF>','TRANSFER HAS BEEN CANCELLED! Please check in GINA NG and proceed urgently! Please do not forget to inform the customer accordingly on <DATE>.',300,'TRANSF CANC'),(71,'GINA NG: 400 UP-DOWN CANCELLED','GINA NG: 400  for <REF>','UP-/ DOWNGRADE OF SERVICE OR EXTREMITY HAVE BEEN CANCELLED! Please check in GINA NG and proceed urgently! Please do not forget to inform the customer accordingly on <DATE>.',400,'UP-DOWN CANC'),(72,'GINA NG: 450 UP-DOWN MODIFIED','GINA NG: 450  for <REF>','UP-/ DOWNGRADE OF SERVICE OR EXTREMITY HAVE BEEN MODIFIED! Please check in GINA NG and proceed urgently! Please do not forget to inform the customer accordingly on <DATE>.',450,'UP-DOWN MODIF'),(73,'GINA NG: 500 MAGELLAN SYNCHRO','GINA NG: 500  for <REF>','Customer details have to be synchronized with Magellan before service can be validated! Please check in GINA NG and MAGELLAN and proceed urgently! on <DATE>.',500,'CUSTOM SYNCHR'),(74,'GINA NG: 600 DISCONNECT REMINDER','GINA NG: 600  for <REF>','Please check if equipment/ local loop disconnection has been carried out. Do you have to terminate the local loop contract at carrier? on <DATE>.',600,'REMINDER DISCO'),(75,'GINA NG: 650 CHECK COM ROUTE','GINA NG: 650  for <REF>','Please check if commercial route has to be modified due to transfer transaction on <DATE>.',650,'REMINDER COM ROUTE'),(76,'GINA NG: 800 LL NEW ORD','GINA NG: 800 - NEW LOCAL LOOP ORDER  for <REF>','LL Creation! A new local loop has been ordered on on <DATE>.',800,'LL CREATION'),(77,'GINA NG: 810 LL CARRIER CONF','GINA NG: 810 -  LL ORDER - CARRIER CONFIRMATION - <REF> for <REF>','LL Creation! Local loop order has been confirmed by carrier on <DATE>.',810,'LL CREATION'),(78,'GINA NG: 820 LL DELIVERED','GINA NG: 820 -  LL ORDER  for <REF>','LL Creation! Local loop has been provided by carrier on <DATE>',820,'LL CREATION'),(79,'GINA NG: 830 LL TESTED','GINA NG: 830 - LL ORDER  for <REF>','LL Creation! Local loop has been tested on <DATE>',830,'LL CREATION'),(80,'GINA NG 840 LL OPERATIONAL','GINA NG: 840 - LL ORDER  for <REF>','LL Creation! Local loop is operational on <DATE>',840,'LL CREATION'),(81,'GINA NG: 850 LL TRANSFER INITIATED','GINA NG: 850 - LL TRANSFER INITIATED  for <REF>','LL TRANSFER! A local loop has been initiated on <DATE>. ',850,'LL TRANSFER'),(82,'GINA NG: 860 LL TRANSFER CARRIER CONF','GINA NG: 860 - LL TRANSFER - CARRIER CONFIRMATION  - <REF> for <REF>','LL TRANSFER! Local loop transfer has been confirmed by carrier on <DATE>. ',860,'LL TRANSFER'),(83,'GINA NG: 870 LL TRANSFER LL DELIVERED','GINA NG: 870 - LL  TRANSFER- LOCAL LOOP DELIVERED  for <REF>','LL TRANSFER! Local loop has been delivered on  <DATE>. ',870,'LL TRANSFER'),(84,'GINA NG: 880 LL TRANSFER LL TESTED','GINA NG: 880 - LL TRANSFER - LOCAL LOOP TESTED  - <REF> for <REF>','LL TRANSFER! Local loop has been tested on  <DATE>. ',880,'LL TRANSFER'),(85,'GINA NG: 890 LL TRANSFER COMPLETED','GINA NG: 890  for <REF>','LL TRANSFER! Local loop transfer has been completed on  <DATE>. ',890,'LL TRANSFER'),(86,'GINA NG: 900 LL UP-DOWN INITIATED','GINA NG: 900 - LOCAL LOOP UP-DOWNGRADE INITIATED  for <REF>','LL UP-DOWN! A local loop up-/ downgrade has been initiated on <DATE>. ',900,'LL UP-DOWN'),(87,'GINA NG: 910 LL UP-DOWN CARRIER CONF','GINA NG: 910 - LL  UP-DOWNGRADE - CARRIER CONFIRMATION  - <REF> for <REF>','LL UP-DOWN! Local loop up-/downgrade has been confirmed by  carrier on <DATE>. ',910,'LL UP-DOWN'),(88,'GINA NG: 920 LL UP-DOWN LL DELIVERED','GINA NG: 920 - LL UP-DOWNGRADE - LOCAL LOOP DELIVERED  for <REF>','LL UP-DOWN! Local loop of up-/downgrade transaction has been delivered on  <DATE>. ',920,'LL UP-DOWN'),(89,'GINA NG: 930 LL UP-DOWN LL TESTED','GINA NG: 930 - LL UP-DOWNGRADE  for <REF>','LL UP-DOWN! Local loop has been tested on <DATE>. ',930,'LL UP-DOWN'),(90,'GINA NG: 940 LL UP-DOWN COMPLETED','GINA NG: 940 - LL - UP-DOWNGRADE COMPLETED  for <REF>','LL UP-DOWN! Local loop up-/downgrade has been completed on  <DATE>. ',940,'LL UP-DOWN'),(91,'GINA NG: 950 LL TERMIN INIT','GINA NG: 950  for <REF>','LOCAL LOOP TERMINATION INITIATED!  LL termination process has been initiated. Please check in GINA NG on <DATE>.',950,'LL TERMIN'),(92,'GINA NG: 960 LL TERMINATED','GINA NG: 960  for <REF>','LOCAL LOOP TERMINATED! LL is terminated know. Please check in GINA NG and proceed for equipment disconnection on <DATE>.',960,'LL TERMIN'),(93,'GINA NG: 970 LL TRANSFER CANCELLED','GINA NG: 970  for <REF>','LL TRANSFER HAS BEEN CANCELLED! Please check in GINA NG on <DATE>.',970,'LL TRANSF CANC'),(94,'GINA NG: 980- UP-DOWN CANCELLED','GINA NG: 980  for <REF>','LL UP-/ DOWNGRADE HAS BEEN CANCELLED! Please check in GINA NG on <DATE>.',980,'UP-DOWN CANC'),(95,'GINA NG: 1000 - REMINDER LL COST UPDATED','GINA NG: 1000  for <REF>',' on <DATE>.',1000,'REMINDER LL COST'),(96,'GINA NG: 2000 BB NEW ORD','GINA NG: 2000 - NEW BACKBONE LINK ORDER - <REF> for <REF>','BB Creation! A new Backbone link has been ordered on <DATE>',2000,'BB CREATION'),(97,'GINA NG: 2010 BB CARRIER CONF','GINA NG: 2010 -  BB ORDER - CARRIER CONFIRMATION - <REF> for <REF>','BB Creation! Backbone link order has been confirmed by carrier on <DATE>.',2010,'BB CREATION'),(98,'GINA NG: 2020 BB DELIVERED','GINA NG: 2020 -  BB ORDER  for <REF>','BB Creation! Backbone link has been provided by carrier on <DATE>',2020,'BB CREATION'),(99,'GINA NG: 2030 BB TESTED','GINA NG: 2030 - BB ORDER  for <REF>','BB Creation! Backbone link has been tested on <DATE>',2030,'BB CREATION'),(100,'GINA NG 2040 BB OPERATIONAL','GINA NG: 2040 - BB ORDER  for <REF>','BB Creation! Backbone link is operational on <DATE>',2040,'BB CREATION'),(101,'GINA NG: 2050 BB TRANSFER INITIATED','GINA NG: 2050 - BB TRANSFER INITIATED  for <REF>','BB TRANSFER! A Backbone link has been initiated on <DATE>. ',2050,'BB TRANSFER'),(102,'GINA NG: 2060 BB TRANSFER CARRIER CONF','GINA NG: 2060 - BB TRANSFER - CARRIER CONFIRMATION  - <REF> for <REF>','BB TRANSFER! Backbone link transfer has been confirmed by carrier on <DATE>. ',2060,'BB TRANSFER'),(103,'GINA NG: 2070 BB TRANSFER BB DELIVERED','GINA NG: 2070  for <REF>','BB TRANSFER! Backbone link has been delivered on  <DATE>. ',2070,'BB TRANSFER'),(104,'GINA NG: 2080 BB TRANSFER BB TESTED','GINA NG: 2080 - BB TRANSFER  for <REF>','BB TRANSFER! Backbone link has been tested on  <DATE>. ',2080,'BB TRANSFER'),(105,'GINA NG: 2090 BB TRANSFER COMPLETED','GINA NG: 2090  for <REF>','BB TRANSFER! Backbone link transfer has been completed on  <DATE>. ',2090,'BB TRANSFER'),(106,'GINA NG: 2100 BB UP-DOWN INITIATED','GINA NG: 2100  for <REF>','BB UP-DOWN! A Backbone link up-/ downgrade has been initiated on <DATE>. ',2100,'BB UP-DOWN'),(107,'GINA NG: 2110 BB UP-DOWN CARRIER CONF','GINA NG: 2110 - BB  UP-DOWNGRADE - CARRIER CONFIRMATION  - <REF> for <REF>','BB UP-DOWN! A Backbone link up-/downgrade has been confirmed by  carrier on <DATE>. ',2110,'BB UP-DOWN'),(108,'GINA NG: 2120 BB UP-DOWN BB DELIVERED','GINA NG: 2120 - BB UP-DOWNGRADE  for <REF>','BB UP-DOWN! Backbone link of up-/downgrade transaction has been delivered on  <DATE>. ',2120,'BB UP-DOWN'),(109,'GINA NG: 2130 BB UP-DOWN BB TESTED','GINA NG: 2130 - BB UP-DOWNGRADE  for <REF>','BB UP-DOWN! Backbone link has been tested on <DATE>. ',2130,'BB UP-DOWN'),(110,'GINA NG: 2140 BB UP-DOWN COMPLETED','GINA NG: 2140 - BB - UP-DOWNGRADE COMPLETED  for <REF>','BB UP-DOWN! Backbone link up-/downgrade has been completed on  <DATE>. ',2140,'BB UP-DOWN'),(111,'GINA NG: 2150 BB TERMIN INIT','GINA NG: 2150  for <REF>','BACKBONE LINK TERMINATION INITIATED!  BB termination process has been initiated. Please check in GINA NG on <DATE>.',2150,'BB TERMIN'),(112,'GINA NG: 2160 BB TERMINATED','GINA NG: 2160  for <REF>','BACKBONE LINK TERMINATED! BB is terminated know. Please check in GINA NG and proceed for equipment disconnection on <DATE>.',2160,'BB TERMIN'),(113,'GINA NG: 2170 BB TRANSFER CANCELLED','GINA NG: 2170  for <REF>','BB TRANSFER HAS BEEN CANCELLED! Please check in GINA NG on <DATE>.',2170,'BB TRANSF CANC'),(114,'GINA NG: 2180 BB UP-DOWN CANCELLED','GINA NG: 2180  for <REF>','BB UP-/ DOWNGRADE HAS BEEN CANCELLED! Please check in GINA NG on <DATE>.',2180,'BB-DOWN CANC'),(115,'GINA NG: 3000 - REMINDER BB COST UPDATED','GINA NG: 3000  for <REF>','GINA NG: 3000  on <DATE>.',3000,'REMINDER BB COST'),(116,'GINA NG: 4000 ','GINA NG: 4000  for <REF>','Please check if Local loop/ Backbone link disconnection has been carried out on <DATE>.',4000,'REMINDER DISCONNECT');

--
-- Table structure for table `mail_type`
--

CREATE TABLE `mail_type` (
  `id_mail_type` int(11) NOT NULL AUTO_INCREMENT,
  `cd_mail_type` varchar(15) NOT NULL,
  `lb_mail_type` varchar(100) NOT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_mail_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mail_type`
--


--
-- Table structure for table `mail_user`
--

CREATE TABLE `mail_user` (
  `id_mail_user` int(11) NOT NULL AUTO_INCREMENT,
  `id_user` int(11) DEFAULT NULL,
  `id_mail` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_mail_user`),
  KEY `id_user` (`id_user`),
  KEY `id_mail` (`id_mail`),
  CONSTRAINT `FK_20E845206B3CA4B` FOREIGN KEY (`id_user`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_20E84520DA06B04A` FOREIGN KEY (`id_mail`) REFERENCES `mail` (`id_mail`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mail_user`
--


--
-- Table structure for table `marketing_zone`
--

CREATE TABLE `marketing_zone` (
  `id_marketing_zone` int(11) NOT NULL AUTO_INCREMENT,
  `cd_marketing_zone` varchar(15) NOT NULL,
  `lb_marketing_zone` varchar(100) NOT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_marketing_zone`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  CONSTRAINT `FK_22CC225F536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_22CC225F68E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `marketing_zone`
--


--
-- Table structure for table `mode`
--

CREATE TABLE `mode` (
  `id_mode` int(11) NOT NULL AUTO_INCREMENT,
  `cd_mode` varchar(15) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_mode` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id_mode`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mode`
--


--
-- Table structure for table `nature`
--

CREATE TABLE `nature` (
  `id_nature` int(11) NOT NULL AUTO_INCREMENT,
  `cd_nature` varchar(15) DEFAULT NULL,
  `lb_nature` varchar(100) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_nature`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  CONSTRAINT `FK_B1D882A7536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_B1D882A768E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `nature`
--


--
-- Table structure for table `note`
--

CREATE TABLE `note` (
  `id_note` int(11) NOT NULL AUTO_INCREMENT,
  `id_user_update_by` int(11) DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_service` int(11) DEFAULT NULL,
  `id_local_loop` int(11) DEFAULT NULL,
  `lbNote` longtext COLLATE utf8_unicode_ci,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  PRIMARY KEY (`id_note`),
  KEY `IDX_CFBDFA1468E26F41` (`id_user_update_by`),
  KEY `IDX_CFBDFA14536A5873` (`id_user_create_by`),
  KEY `IDX_CFBDFA143F0033A2` (`id_service`),
  KEY `IDX_CFBDFA1438CAF7EA` (`id_local_loop`),
  CONSTRAINT `FK_CFBDFA1438CAF7EA` FOREIGN KEY (`id_local_loop`) REFERENCES `local_loop` (`id_local_loop`),
  CONSTRAINT `FK_CFBDFA143F0033A2` FOREIGN KEY (`id_service`) REFERENCES `service` (`id_service`),
  CONSTRAINT `FK_CFBDFA14536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_CFBDFA1468E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `note`
--

INSERT INTO `note` VALUES (1,2,2,11,NULL,'test de note\r\nlongue ligne','2014-02-20 18:43:47','2014-02-20 18:43:47'),(2,2,2,NULL,51,'test note','2014-02-20 18:46:39','2014-02-20 18:46:39');

--
-- Table structure for table `object_type`
--

CREATE TABLE `object_type` (
  `id_object_type` int(11) NOT NULL AUTO_INCREMENT,
  `cd_object_type` varchar(100) DEFAULT NULL,
  `lb_object_type` varchar(100) DEFAULT NULL,
  `lb_table_name` varchar(100) DEFAULT NULL,
  `lb_id_name` varchar(100) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_object_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `object_type`
--


--
-- Table structure for table `offer_type`
--

CREATE TABLE `offer_type` (
  `id_offer_type` int(11) NOT NULL AUTO_INCREMENT,
  `cd_offer_type` varchar(15) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `lb_offer_type` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `nb_circuit_max` int(11) DEFAULT NULL,
  `nb_circuit_alert` int(11) DEFAULT NULL,
  `nb_bandwidth_max` decimal(10,0) DEFAULT NULL,
  `nb_bandwidth_alert` decimal(10,0) DEFAULT NULL,
  PRIMARY KEY (`id_offer_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `offer_type`
--


--
-- Table structure for table `offer_zone`
--

CREATE TABLE `offer_zone` (
  `id_offer_zone` int(11) NOT NULL AUTO_INCREMENT,
  `cd_offer_zone` varchar(15) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `lb_offer_zone` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id_offer_zone`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `offer_zone`
--


--
-- Table structure for table `option_type`
--

CREATE TABLE `option_type` (
  `id_option_type` int(11) NOT NULL AUTO_INCREMENT,
  `cd_option_type` varchar(15) NOT NULL,
  `lb_option_type` varchar(250) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime NOT NULL,
  `dt_update` datetime DEFAULT NULL,
  `dt_deactivated` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `id_application_type` int(11) DEFAULT NULL,
  `bl_billable` tinyint(1) NOT NULL,
  PRIMARY KEY (`id_option_type`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  KEY `IDX_64D0FDCA98B86A70` (`id_application_type`),
  CONSTRAINT `FK_64D0FDCA536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_64D0FDCA68E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_64D0FDCA98B86A70` FOREIGN KEY (`id_application_type`) REFERENCES `application_type` (`id_application_type`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `option_type`
--

INSERT INTO `option_type` VALUES (1,'OPT','Option d\'Option',1,'2013-07-02 00:00:00','2013-07-02 00:00:00',NULL,2,2,3,1),(2,'VF1','Version Française 1',1,'2013-07-02 10:48:48','2013-07-02 10:48:48',NULL,2,2,1,1),(3,'VF2','Version Française 2',1,'2013-07-02 10:48:48','2013-07-02 10:49:45',NULL,2,2,2,1),(4,'VO1','Version Originale 1',1,'2013-07-02 10:48:48','2013-07-02 10:48:48',NULL,2,2,1,1),(5,'VO2','Version Originale 1',NULL,'2013-07-02 10:48:48','2013-07-02 10:48:48',NULL,2,2,1,1);

--
-- Table structure for table `orientation`
--

CREATE TABLE `orientation` (
  `id_orientation` int(11) NOT NULL AUTO_INCREMENT,
  `cd_orientation` varchar(15) DEFAULT NULL,
  `lb_orientation` varchar(255) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_orientation`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `orientation`
--


--
-- Table structure for table `patch_panel`
--

CREATE TABLE `patch_panel` (
  `id_patch_panel` int(11) NOT NULL AUTO_INCREMENT,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `id_provider_address` int(11) DEFAULT NULL,
  `id_contact` int(11) DEFAULT NULL,
  `id_cabinet` int(11) DEFAULT NULL,
  `cd_patch_panel` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `lb_patch_panel` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `url_image` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cm_patch_panel` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `id_provider` int(11) DEFAULT NULL,
  `dt_deactivated` datetime DEFAULT NULL,
  `nb_ports` int(11) DEFAULT NULL,
  `nb_rows` int(11) DEFAULT NULL,
  `bl_model` tinyint(1) DEFAULT NULL,
  `bl_panel_for_ref` tinyint(1) DEFAULT NULL,
  `id_complex_model` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_patch_panel`),
  KEY `IDX_79A52562536A5873` (`id_user_create_by`),
  KEY `IDX_79A5256268E26F41` (`id_user_update_by`),
  KEY `IDX_79A525621E9C98F7` (`id_provider_address`),
  KEY `IDX_79A5256292FF4F48` (`id_contact`),
  KEY `IDX_79A52562C21F9F09` (`id_provider`),
  KEY `IDX_79A525629270ACC0` (`id_cabinet`),
  KEY `IDX_79A52562241EF16C` (`id_complex_model`),
  CONSTRAINT `FK_79A525621E9C98F7` FOREIGN KEY (`id_provider_address`) REFERENCES `address_provider` (`id_address_provider`),
  CONSTRAINT `FK_79A52562241EF16C` FOREIGN KEY (`id_complex_model`) REFERENCES `complex_model` (`id_complex_model`),
  CONSTRAINT `FK_79A52562536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_79A5256268E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_79A525629270ACC0` FOREIGN KEY (`id_cabinet`) REFERENCES `cabinet` (`id_cabinet`),
  CONSTRAINT `FK_79A5256292FF4F48` FOREIGN KEY (`id_contact`) REFERENCES `contact_provider` (`id_contact_provider`),
  CONSTRAINT `FK_79A52562C21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `patch_panel`
--

INSERT INTO `patch_panel` VALUES (1,2,2,1,1,20,'tt','maison',NULL,'d',NULL,NULL,1,1,NULL,1,1,1,1,NULL),(5,2,2,1,1,24,'tt','ttt',NULL,'d',NULL,NULL,1,1,NULL,1,1,1,1,NULL),(6,2,2,1,1,25,'tt','ttt',NULL,'d',NULL,NULL,1,1,NULL,1,1,1,1,NULL),(7,2,2,1,1,26,'tt','ttt',NULL,'d',NULL,NULL,1,1,NULL,1,1,1,1,NULL),(8,2,2,1,1,27,'tt','ttt',NULL,'d',NULL,NULL,1,1,NULL,1,1,1,1,NULL),(9,2,2,1,1,28,'tt','ttt',NULL,'d',NULL,NULL,1,1,NULL,1,1,1,1,NULL),(10,2,2,1,1,20,'PP21','Patch Panel 3.2',NULL,'f',NULL,NULL,1,1,NULL,2,1,1,1,NULL),(15,2,2,1,1,29,'PP21','Portable Total télécommander',NULL,NULL,NULL,NULL,1,1,NULL,12,1,1,1,NULL),(16,2,2,1,1,NULL,'patchepanel1','patchpanel 1',NULL,'1',NULL,NULL,1,1,NULL,5,1,1,0,18),(17,2,2,1,1,15,'dfg','dfg',NULL,NULL,NULL,NULL,1,1,NULL,6,2,1,1,NULL);

--
-- Table structure for table `patch_panel_instance`
--

CREATE TABLE `patch_panel_instance` (
  `id_patch_panel_instance` int(11) NOT NULL AUTO_INCREMENT,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `id_cabinet_instance` int(11) DEFAULT NULL,
  `cd_patch_panel_instance` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `lb_patch_panel_instance` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `cm_patch_panel_instance` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_deactivated` datetime DEFAULT NULL,
  `id_patch_panel` int(11) DEFAULT NULL,
  `id_complex_model` int(11) DEFAULT NULL,
  `id_provider` int(11) DEFAULT NULL,
  `id_provider_address` int(11) DEFAULT NULL,
  `id_contact` int(11) DEFAULT NULL,
  `cd_provider_account` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id_patch_panel_instance`),
  KEY `IDX_964D916E536A5873` (`id_user_create_by`),
  KEY `IDX_964D916E68E26F41` (`id_user_update_by`),
  KEY `IDX_964D916E95136256` (`id_cabinet_instance`),
  KEY `IDX_964D916E61B7E895` (`id_patch_panel`),
  KEY `IDX_964D916E241EF16C` (`id_complex_model`),
  KEY `IDX_964D916EC21F9F09` (`id_provider`),
  KEY `IDX_964D916E1E9C98F7` (`id_provider_address`),
  KEY `IDX_964D916E92FF4F48` (`id_contact`),
  CONSTRAINT `FK_964D916E1E9C98F7` FOREIGN KEY (`id_provider_address`) REFERENCES `address_provider` (`id_address_provider`),
  CONSTRAINT `FK_964D916E241EF16C` FOREIGN KEY (`id_complex_model`) REFERENCES `complex_model` (`id_complex_model`),
  CONSTRAINT `FK_964D916E536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_964D916E61B7E895` FOREIGN KEY (`id_patch_panel`) REFERENCES `patch_panel` (`id_patch_panel`),
  CONSTRAINT `FK_964D916E68E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_964D916E92FF4F48` FOREIGN KEY (`id_contact`) REFERENCES `contact_provider` (`id_contact_provider`),
  CONSTRAINT `FK_964D916E95136256` FOREIGN KEY (`id_cabinet_instance`) REFERENCES `cabinet_instance` (`id_cabinet_instance`),
  CONSTRAINT `FK_964D916EC21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `patch_panel_instance`
--

INSERT INTO `patch_panel_instance` VALUES (1,2,2,8,'tt','ttt','d',1,NULL,1,NULL,NULL,NULL,NULL,NULL),(3,2,2,2,'fff','fff',NULL,1,NULL,16,18,NULL,NULL,NULL,NULL),(4,2,2,17,'125','212121',NULL,1,NULL,16,18,10,3,7,NULL),(5,2,2,19,'PP1','64 ports',NULL,1,NULL,16,18,1,1,1,NULL);

--
-- Table structure for table `payed`
--

CREATE TABLE `payed` (
  `id_payed` int(11) NOT NULL AUTO_INCREMENT,
  `id_provider` int(11) DEFAULT NULL,
  `id_address` int(11) DEFAULT NULL,
  `id_contact` int(11) DEFAULT NULL,
  `id_object_type` int(11) DEFAULT NULL,
  `id_object` int(11) DEFAULT NULL,
  `id_branch` int(11) DEFAULT NULL,
  `cd_provider_account` varchar(45) DEFAULT NULL,
  `cd_branch_order` varchar(45) DEFAULT NULL,
  `cm_payed` varchar(255) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_payed`),
  KEY `id_provider` (`id_provider`),
  KEY `id_address` (`id_address`),
  KEY `id_contact` (`id_contact`),
  KEY `id_object_type` (`id_object_type`),
  KEY `id_branch` (`id_branch`),
  CONSTRAINT `FK_B51FEEC892FF4F48` FOREIGN KEY (`id_contact`) REFERENCES `contact` (`id_contact`),
  CONSTRAINT `FK_B51FEEC89D9A6CD` FOREIGN KEY (`id_object_type`) REFERENCES `object_type` (`id_object_type`),
  CONSTRAINT `FK_B51FEEC89DB1AEF2` FOREIGN KEY (`id_branch`) REFERENCES `branch` (`id_branch`),
  CONSTRAINT `FK_B51FEEC8C21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`),
  CONSTRAINT `FK_B51FEEC8D3D3C6F1` FOREIGN KEY (`id_address`) REFERENCES `address` (`id_address`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `payed`
--


--
-- Table structure for table `paying_detail`
--

CREATE TABLE `paying_detail` (
  `id_paying_detail` int(11) NOT NULL AUTO_INCREMENT,
  `id_payed` int(11) DEFAULT NULL,
  `id_object_type` int(11) DEFAULT NULL,
  `id_object` int(11) DEFAULT NULL,
  `id_branch_payer` int(11) DEFAULT NULL,
  `id_frequency` int(11) DEFAULT NULL,
  `cd_branch_account` varchar(45) DEFAULT NULL,
  `cd_order` varchar(45) DEFAULT NULL,
  `id_currency` int(11) DEFAULT NULL,
  `nb_nrc` decimal(15,4) DEFAULT NULL,
  `nb_mrc` decimal(15,4) DEFAULT NULL,
  `nb_percentage` decimal(15,4) DEFAULT NULL,
  `nb_contract_period` int(11) DEFAULT NULL,
  `nb_notice_period` int(11) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `cm_comment` varchar(255) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `id_user_sale` int(11) DEFAULT NULL,
  `lb_contract_ref` varchar(255) DEFAULT NULL,
  `dt_contract_start` datetime DEFAULT NULL,
  `dt_contract_end` datetime DEFAULT NULL,
  PRIMARY KEY (`id_paying_detail`),
  KEY `id_payed` (`id_payed`),
  KEY `id_object_type` (`id_object_type`),
  KEY `id_object` (`id_object`),
  KEY `id_branch_payer` (`id_branch_payer`),
  KEY `id_frequency` (`id_frequency`),
  KEY `id_currency` (`id_currency`),
  KEY `id_user_sale` (`id_user_sale`),
  CONSTRAINT `paying_detail_ibfk_1` FOREIGN KEY (`id_payed`) REFERENCES `payed` (`id_payed`) ON DELETE CASCADE ON UPDATE NO ACTION,
  CONSTRAINT `paying_detail_ibfk_2` FOREIGN KEY (`id_object_type`) REFERENCES `object_type` (`id_object_type`) ON DELETE CASCADE ON UPDATE NO ACTION,
  CONSTRAINT `paying_detail_ibfk_6` FOREIGN KEY (`id_currency`) REFERENCES `currency` (`id_currency`) ON DELETE CASCADE ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `paying_detail`
--


--
-- Table structure for table `pop`
--

CREATE TABLE `pop` (
  `id_pop` int(11) NOT NULL AUTO_INCREMENT,
  `id_branch` int(11) DEFAULT NULL,
  `cd_pop` varchar(15) NOT NULL,
  `lb_pop` varchar(100) DEFAULT NULL,
  `cm_pop` varchar(255) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `id_contact` int(11) DEFAULT NULL,
  `id_housing_provider` int(11) DEFAULT NULL,
  `id_pop_type` int(11) DEFAULT NULL,
  `id_access` int(11) DEFAULT NULL,
  `dt_deactivated` datetime DEFAULT NULL,
  PRIMARY KEY (`id_pop`),
  KEY `id_branch` (`id_branch`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  KEY `id_branch_2` (`id_branch`),
  KEY `id_user_create_by_2` (`id_user_create_by`),
  KEY `id_user_update_by_2` (`id_user_update_by`),
  KEY `IDX_19D0B71692FF4F48` (`id_contact`),
  KEY `IDX_19D0B716E44891AC` (`id_housing_provider`),
  KEY `IDX_19D0B716F8AC438E` (`id_pop_type`),
  KEY `IDX_19D0B716205E9EB9` (`id_access`),
  CONSTRAINT `FK_19D0B716205E9EB9` FOREIGN KEY (`id_access`) REFERENCES `access` (`id_access`),
  CONSTRAINT `FK_19D0B716536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_19D0B71668E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_19D0B71692FF4F48` FOREIGN KEY (`id_contact`) REFERENCES `contact_provider` (`id_contact_provider`),
  CONSTRAINT `FK_19D0B7169DB1AEF2` FOREIGN KEY (`id_branch`) REFERENCES `branch` (`id_branch`),
  CONSTRAINT `FK_19D0B716E44891AC` FOREIGN KEY (`id_housing_provider`) REFERENCES `provider` (`id_provider`),
  CONSTRAINT `FK_19D0B716F8AC438E` FOREIGN KEY (`id_pop_type`) REFERENCES `pop_type` (`id_pop_type`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `pop`
--

INSERT INTO `pop` VALUES (1,1,'0236','21',NULL,1,'2013-06-13 00:00:00','2013-06-26 00:00:00',2,2,1,1,1,NULL,NULL),(2,1,'12','21',NULL,1,'2013-06-13 12:05:29','2013-06-13 12:05:29',2,2,1,1,1,NULL,NULL),(3,1,'12','21',NULL,1,'2013-06-13 12:06:31','2013-06-13 12:06:31',2,2,1,1,1,NULL,NULL),(4,1,'12','21',NULL,1,'2013-06-13 12:08:41','2013-06-13 12:08:41',2,2,1,1,1,NULL,NULL),(5,1,'12','21',NULL,1,'2013-06-13 12:09:18','2013-06-13 12:09:18',2,2,1,1,1,NULL,NULL),(6,1,'PopCode','Pop Code description',NULL,1,'2013-07-10 00:00:00','2013-07-10 00:00:00',2,2,1,1,1,1,NULL),(7,3,'test','test',NULL,1,'2013-07-10 00:00:00','2013-07-10 00:00:00',2,2,1,4,1,1,NULL),(8,3,'POP001','POP001',NULL,1,'2013-07-11 00:00:00','2013-07-11 00:00:00',2,2,1,1,1,1,NULL),(9,1,'E_MADPLA87432','the pop rock',NULL,1,'2013-12-02 00:00:00','2013-12-02 00:00:00',2,2,1,NULL,1,NULL,NULL),(10,2,'GE-FRAVILBEL01','POP FRA Vilbel',NULL,1,'2014-01-22 00:00:00','2014-01-22 00:00:00',2,2,4,9,1,NULL,NULL),(11,8,'GE_MUN_HAR',NULL,NULL,1,'2014-02-18 00:00:00','2014-02-18 00:00:00',2,2,NULL,NULL,1,NULL,NULL),(12,8,'GE_HH_ALST985',NULL,NULL,1,'2014-02-18 15:14:48','2014-02-18 15:14:48',2,2,NULL,NULL,1,NULL,NULL),(13,10,'F_PARAUB_345','POP Paris Aubervilliers','tetst',1,'2014-02-18 00:00:00','2014-02-18 00:00:00',2,2,NULL,NULL,1,NULL,NULL),(14,10,'F_MAR_NUY543',NULL,NULL,1,'2014-02-18 00:00:00','2014-02-18 00:00:00',2,2,NULL,NULL,1,NULL,NULL);

--
-- Table structure for table `pop_additional_service`
--

CREATE TABLE `pop_additional_service` (
  `id_pop_additional_service` int(11) NOT NULL AUTO_INCREMENT,
  `cd_pop_additional_service` varchar(15) DEFAULT NULL,
  `lb_pop_additional_service` varchar(255) DEFAULT NULL,
  `cd_contract_ref` varchar(15) DEFAULT NULL,
  `id_provider` int(11) DEFAULT NULL,
  `id_cost_center` int(11) DEFAULT NULL,
  `id_pop` int(11) DEFAULT NULL,
  `nb_quantity` decimal(10,0) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_pop_additional_service`),
  KEY `id_cost_center` (`id_cost_center`),
  KEY `id_provider` (`id_provider`),
  KEY `id_cost_center_2` (`id_cost_center`),
  KEY `id_pop` (`id_pop`),
  CONSTRAINT `FK_3928311D5FD4607C` FOREIGN KEY (`id_cost_center`) REFERENCES `cost_center` (`id_cost_center`),
  CONSTRAINT `FK_3928311D87745F4C` FOREIGN KEY (`id_pop`) REFERENCES `pop` (`id_pop`),
  CONSTRAINT `FK_3928311DC21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `pop_additional_service`
--


--
-- Table structure for table `pop_backbone_link_extremity`
--

CREATE TABLE `pop_backbone_link_extremity` (
  `id_backbone_link_extremity` int(11) NOT NULL,
  `id_pop` int(11) NOT NULL,
  PRIMARY KEY (`id_backbone_link_extremity`,`id_pop`),
  KEY `IDX_350BBA255CD7B06A` (`id_backbone_link_extremity`),
  KEY `IDX_350BBA2587745F4C` (`id_pop`),
  CONSTRAINT `FK_350BBA255CD7B06A` FOREIGN KEY (`id_backbone_link_extremity`) REFERENCES `backbone_link_extremity` (`id_backbone_link_extremity`),
  CONSTRAINT `FK_350BBA2587745F4C` FOREIGN KEY (`id_pop`) REFERENCES `pop` (`id_pop`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `pop_backbone_link_extremity`
--


--
-- Table structure for table `pop_contractual_detail`
--

CREATE TABLE `pop_contractual_detail` (
  `id_pop_contractual_detail` int(11) NOT NULL AUTO_INCREMENT,
  `id_provider` int(11) DEFAULT NULL,
  `id_pop` int(11) DEFAULT NULL,
  `id_pop_additional_service` int(11) DEFAULT NULL,
  `id_payer` int(11) DEFAULT NULL,
  `cd_payer_account` varchar(100) DEFAULT NULL,
  `cd_payer_order` varchar(100) DEFAULT NULL,
  `id_currency` int(15) DEFAULT NULL,
  `nb_nrc` decimal(10,0) DEFAULT NULL,
  `nb_mrc` decimal(10,0) DEFAULT NULL,
  `nb_percentage` decimal(10,0) DEFAULT NULL,
  `nb_paying_frequency` decimal(10,0) DEFAULT NULL,
  `nb_minimum_period` decimal(10,0) DEFAULT NULL,
  `nb_period_notice` decimal(10,0) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `cm_contractual` varchar(255) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_pop_contractual_detail`),
  KEY `id_provider` (`id_provider`),
  KEY `id_pop` (`id_pop`),
  KEY `id_pop_additional_service` (`id_pop_additional_service`),
  KEY `id_currency` (`id_currency`),
  CONSTRAINT `FK_CCDBC067398D64AA` FOREIGN KEY (`id_currency`) REFERENCES `currency` (`id_currency`),
  CONSTRAINT `FK_CCDBC06739F9868A` FOREIGN KEY (`id_pop_additional_service`) REFERENCES `pop_additional_service` (`id_pop_additional_service`),
  CONSTRAINT `FK_CCDBC06787745F4C` FOREIGN KEY (`id_pop`) REFERENCES `pop` (`id_pop`),
  CONSTRAINT `FK_CCDBC067C21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `pop_contractual_detail`
--


--
-- Table structure for table `pop_paying_detail`
--

CREATE TABLE `pop_paying_detail` (
  `id_pop_paying_detail` int(11) NOT NULL AUTO_INCREMENT,
  `id_pop` int(11) DEFAULT NULL,
  `id_branch_payer` int(11) DEFAULT NULL,
  `cd_branch_account` varchar(15) DEFAULT NULL,
  `cd_branch_order` varchar(15) DEFAULT NULL,
  `id_currency` int(11) DEFAULT NULL,
  `nb_nrc` decimal(10,0) DEFAULT NULL,
  `nb_mrc` decimal(10,0) DEFAULT NULL,
  `nb_billing_frequency` int(11) DEFAULT NULL,
  `nb_contract_period` int(11) DEFAULT NULL,
  `nb_notice_period` int(11) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `cm_comment` varchar(255) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `id_user_sale` int(11) DEFAULT NULL,
  `lb_contract_ref` varchar(255) DEFAULT NULL,
  `dt_contract_start` datetime DEFAULT NULL,
  `dt_contract_end` datetime DEFAULT NULL,
  PRIMARY KEY (`id_pop_paying_detail`),
  KEY `id_pop` (`id_pop`),
  KEY `id_currency` (`id_currency`),
  CONSTRAINT `FK_C87BDB61398D64AA` FOREIGN KEY (`id_currency`) REFERENCES `currency` (`id_currency`),
  CONSTRAINT `FK_C87BDB6187745F4C` FOREIGN KEY (`id_pop`) REFERENCES `pop` (`id_pop`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `pop_paying_detail`
--


--
-- Table structure for table `pop_template`
--

CREATE TABLE `pop_template` (
  `id_pop` int(11) NOT NULL,
  `id_branch` int(11) DEFAULT NULL,
  `cd_pop` varchar(15) NOT NULL,
  `lb_pop` varchar(100) DEFAULT NULL,
  `id_room` int(11) DEFAULT NULL,
  `lb_address` varchar(255) DEFAULT NULL,
  `cd_postcode` varchar(15) DEFAULT NULL,
  `id_city` int(11) DEFAULT NULL,
  `id_country` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `lb_building` varchar(100) DEFAULT NULL,
  `id_housing_provider` int(11) DEFAULT NULL,
  `bl_customer_pop` tinyint(1) DEFAULT NULL,
  `lb_localisation` varchar(255) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_pop`),
  KEY `id_branch` (`id_branch`),
  KEY `id_room` (`id_room`),
  KEY `id_city` (`id_city`),
  KEY `id_country` (`id_country`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  KEY `id_pop` (`id_pop`),
  KEY `id_branch_2` (`id_branch`),
  KEY `id_room_2` (`id_room`),
  KEY `id_city_2` (`id_city`),
  KEY `id_country_2` (`id_country`),
  KEY `id_user_create_by_2` (`id_user_create_by`),
  KEY `id_user_update_by_2` (`id_user_update_by`),
  CONSTRAINT `FK_3553EEB0536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_3553EEB068E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_3553EEB087745F4C` FOREIGN KEY (`id_pop`) REFERENCES `pop` (`id_pop`),
  CONSTRAINT `FK_3553EEB08DEE6016` FOREIGN KEY (`id_country`) REFERENCES `country` (`id_country`),
  CONSTRAINT `FK_3553EEB09DB1AEF2` FOREIGN KEY (`id_branch`) REFERENCES `branch` (`id_branch`),
  CONSTRAINT `FK_3553EEB0A67B1E36` FOREIGN KEY (`id_city`) REFERENCES `city` (`id_city`),
  CONSTRAINT `FK_3553EEB0F9BF4D99` FOREIGN KEY (`id_room`) REFERENCES `room` (`id_room`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `pop_template`
--


--
-- Table structure for table `pop_type`
--

CREATE TABLE `pop_type` (
  `id_pop_type` int(11) NOT NULL AUTO_INCREMENT,
  `cd_pop_type` varchar(100) DEFAULT NULL,
  `lb_pop_type` varchar(255) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `dt_deactivated` datetime DEFAULT NULL,
  PRIMARY KEY (`id_pop_type`),
  KEY `IDX_A877AF1B536A5873` (`id_user_create_by`),
  KEY `IDX_A877AF1B68E26F41` (`id_user_update_by`),
  CONSTRAINT `FK_A877AF1B536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_A877AF1B68E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `pop_type`
--

INSERT INTO `pop_type` VALUES (1,'Etrali','Etrali pop',1,2,2,'2013-06-13 00:00:00','2013-07-02 00:00:00',NULL),(2,'PEth13','Pop Ethernet 13',0,2,2,'2013-06-26 00:00:00','2013-06-26 00:00:00',NULL),(3,'PopT02','Pop Type Lille 02',0,2,2,'2013-07-02 00:00:00','2013-07-02 00:00:00',NULL),(4,'PopT55','Pop de type 55 Paris',0,2,2,'2013-06-13 00:00:00','2013-07-02 00:00:00',NULL),(5,'PEth135','Pop Ethernet 135',0,2,2,'2013-06-26 00:00:00','2013-06-26 00:00:00',NULL),(6,'PopT12','Pop Type Lille 12',0,2,2,'2013-07-02 00:00:00','2013-07-02 00:00:00',NULL),(7,'PopT56','Pop de type 55 Paris',0,2,2,'2014-06-13 00:00:00','2014-07-02 00:00:00',NULL),(8,'PEth136','Pop Ethernet 136',0,2,2,'2013-06-26 00:00:00','2013-06-26 00:00:00',NULL),(9,'PopT13','Pop Type Lille 13',0,2,2,'2013-07-02 00:00:00','2013-07-02 00:00:00',NULL),(10,'PopT57','Pop de type 55 Paris',0,2,2,'2015-06-13 00:00:00','2013-07-02 00:00:00',NULL),(11,'PEth137','Pop Ethernet 137',0,2,2,'2013-06-26 00:00:00','2013-06-26 00:00:00',NULL),(12,'PopT14','Pop Type Lille 14',0,2,2,'2013-07-02 00:00:00','2013-07-02 00:00:00',NULL),(13,'PopT58','Pop de type 55 Paris',0,2,2,'2016-06-13 00:00:00','2016-07-02 00:00:00',NULL),(14,'PEth138','Pop Ethernet 138',0,2,2,'2013-06-26 00:00:00','2013-06-26 00:00:00',NULL),(15,'PopT15','Pop Type Lille 15',0,2,2,'2013-07-02 00:00:00','2013-07-02 00:00:00',NULL),(16,'PopT59','Pop de type 55 Paris',0,2,2,'2017-06-13 00:00:00','2017-07-02 00:00:00',NULL),(17,'PEth139','Pop Ethernet 139',0,2,2,'2013-06-26 00:00:00','2013-06-26 00:00:00',NULL),(18,'PopT16','Pop Type Lille 16',0,2,2,'2013-07-02 00:00:00','2013-07-02 00:00:00',NULL),(19,'PopT60','Pop de type 55 Paris',0,2,2,'2018-06-13 00:00:00','2018-07-02 00:00:00',NULL),(20,'PEth140','Pop Ethernet 140',0,2,2,'2013-06-26 00:00:00','2013-06-26 00:00:00',NULL),(21,'PopT17','Pop Type Lille 17',0,2,2,'2013-07-02 00:00:00','2013-07-02 00:00:00',NULL),(22,'PopT61','Pop de type 55 Paris',0,2,2,'2019-06-13 00:00:00','2019-07-02 00:00:00',NULL),(23,'PEth141','Pop Ethernet 141',0,2,2,'2013-06-26 00:00:00','2013-06-26 00:00:00',NULL),(24,'PopT18','Pop Type Lille 18',0,2,2,'2013-07-02 00:00:00','2013-07-02 00:00:00',NULL),(25,'PopT62','Pop de type 55 Paris',0,2,2,'2020-06-13 00:00:00','2020-07-02 00:00:00',NULL),(26,'PEth142','Pop Ethernet 142',0,2,2,'2013-06-26 00:00:00','2013-06-26 00:00:00',NULL),(27,'PopT19','Pop Type Lille 19',0,2,2,'2013-07-02 00:00:00','2013-07-02 00:00:00',NULL),(28,'PopT63','Pop de type 55 Paris',0,2,2,'2021-06-13 00:00:00','2021-07-02 00:00:00',NULL),(29,'PEth143','Pop Ethernet 143',0,2,2,'2013-06-26 00:00:00','2013-06-26 00:00:00',NULL),(30,'PopT20','Pop Type Lille 20',0,2,2,'2013-07-02 00:00:00','2013-07-02 00:00:00',NULL),(31,'PopT64','Pop de type 55 Paris',0,2,2,'2022-06-13 00:00:00','2022-07-02 00:00:00',NULL),(32,'PEth144','Pop Ethernet 144',0,2,2,'2013-06-26 00:00:00','2013-06-26 00:00:00',NULL),(33,'PopT21','Pop Type Lille 21',0,2,2,'2013-07-02 00:00:00','2013-07-02 00:00:00',NULL),(34,'PopT65','Pop de type 55 Paris',0,2,2,'2023-06-13 00:00:00','2023-07-02 00:00:00',NULL),(35,'PEth145','Pop Ethernet 145',0,2,2,'2013-06-26 00:00:00','2013-06-26 00:00:00',NULL),(36,'PopT22','Pop Type Lille 22',0,2,2,'2013-07-02 00:00:00','2013-07-02 00:00:00',NULL),(37,'PopT66','Pop de type 55 Paris',0,2,2,'2024-06-13 00:00:00','2024-07-02 00:00:00',NULL),(38,'PEth146','Pop Ethernet 146',0,2,2,'2013-06-26 00:00:00','2013-06-26 00:00:00',NULL),(39,'CUST POP','Customer POP',1,2,2,'2014-01-22 00:00:00','2014-01-22 00:00:00',NULL),(40,'ETR POP','ETRALI  POP',0,2,2,'2014-01-22 00:00:00','2014-01-22 00:00:00',NULL),(41,'THI POP','THIRD PARTY POP',0,2,2,'2014-01-22 00:00:00','2014-01-22 00:00:00',NULL),(42,'Third Party POP','Third Party POP*',1,2,2,'2014-02-05 18:00:21','2014-02-05 18:00:21',NULL);

--
-- Table structure for table `port`
--

CREATE TABLE `port` (
  `id_port` int(11) NOT NULL AUTO_INCREMENT,
  `id_port_type` int(11) DEFAULT NULL,
  `cd_port` varchar(50) NOT NULL,
  `lb_port` varchar(100) NOT NULL,
  `cm_port` varchar(255) DEFAULT NULL,
  `bl_full` tinyint(1) DEFAULT NULL,
  `bl_link_ha` tinyint(1) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `id_port_sub_type` int(11) DEFAULT NULL,
  `id_sfp_module_type` int(11) DEFAULT NULL,
  `id_provider_address` int(11) DEFAULT NULL,
  `id_contact` int(11) DEFAULT NULL,
  `lb_cross_connect` varchar(50) NOT NULL,
  `id_provider` int(11) DEFAULT NULL,
  `nb_timeslots` int(11) DEFAULT NULL,
  `nb_channels` int(11) DEFAULT NULL,
  `nb_number` int(11) DEFAULT NULL,
  `id_patch_panel` int(11) DEFAULT NULL,
  `id_card` int(11) DEFAULT NULL,
  `id_complex_model` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_port`),
  KEY `id_port_type` (`id_port_type`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  KEY `IDX_43915DCC6B034FEC` (`id_port_sub_type`),
  KEY `IDX_43915DCCF4CDAE15` (`id_sfp_module_type`),
  KEY `IDX_43915DCC1E9C98F7` (`id_provider_address`),
  KEY `IDX_43915DCC92FF4F48` (`id_contact`),
  KEY `IDX_43915DCC61B7E895` (`id_patch_panel`),
  KEY `IDX_43915DCC9D3484D1` (`id_card`),
  KEY `IDX_43915DCC241EF16C` (`id_complex_model`),
  KEY `IDX_43915DCCC21F9F09` (`id_provider`),
  CONSTRAINT `FK_43915DCC1E9C98F7` FOREIGN KEY (`id_provider_address`) REFERENCES `address_provider` (`id_address_provider`),
  CONSTRAINT `FK_43915DCC241EF16C` FOREIGN KEY (`id_complex_model`) REFERENCES `complex_model` (`id_complex_model`),
  CONSTRAINT `FK_43915DCC536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_43915DCC61B7E895` FOREIGN KEY (`id_patch_panel`) REFERENCES `patch_panel` (`id_patch_panel`),
  CONSTRAINT `FK_43915DCC63C987B1` FOREIGN KEY (`id_port_type`) REFERENCES `port_type` (`id_port_type`),
  CONSTRAINT `FK_43915DCC68E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_43915DCC6B034FEC` FOREIGN KEY (`id_port_sub_type`) REFERENCES `port_sub_type` (`id_port_sub_type`),
  CONSTRAINT `FK_43915DCC92FF4F48` FOREIGN KEY (`id_contact`) REFERENCES `contact_provider` (`id_contact_provider`),
  CONSTRAINT `FK_43915DCC9D3484D1` FOREIGN KEY (`id_card`) REFERENCES `card` (`id_card`),
  CONSTRAINT `FK_43915DCCC21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`),
  CONSTRAINT `FK_43915DCCF4CDAE15` FOREIGN KEY (`id_sfp_module_type`) REFERENCES `sfp_module_type` (`id_sfp_module_type`)
) ENGINE=InnoDB AUTO_INCREMENT=222 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `port`
--

INSERT INTO `port` VALUES (3,1,'qds','qsd','qsd',0,0,0,'2013-06-13 18:19:01','2013-06-13 18:19:01',2,2,1,1,1,1,'qsd',1,1,1,1,NULL,20,NULL),(4,1,'qds','qsd','qsd',0,0,0,'2013-06-13 18:19:01','2013-06-13 18:19:01',2,2,1,1,1,1,'qsd',1,1,1,2,NULL,20,NULL),(5,1,'qds','qsd','qsd',0,0,0,'2013-06-13 18:19:01','2013-06-13 18:19:01',2,2,1,1,1,1,'qsd',1,1,1,3,NULL,20,NULL),(6,1,'qds','qsd','qsd',0,0,0,'2013-06-13 18:19:01','2013-06-13 18:19:01',2,2,1,1,1,1,'qsd',1,1,1,4,NULL,20,NULL),(7,1,'qds','qsd','qsd',0,0,0,'2013-06-13 18:19:40','2013-06-13 18:19:40',2,2,1,1,1,1,'qsd',1,1,1,5,NULL,20,NULL),(8,1,'qds','qsd','qsd',0,0,0,'2013-06-13 18:19:40','2013-06-13 18:19:40',2,2,1,1,1,1,'qsd',1,1,1,6,NULL,20,NULL),(9,1,'qds','qsd','qsd',0,0,0,'2013-06-13 18:19:40','2013-06-13 18:19:40',2,2,1,1,1,1,'qsd',1,1,1,7,NULL,20,NULL),(10,1,'qds','qsd','qsd',0,0,0,'2013-06-13 18:19:40','2013-06-13 18:19:40',2,2,1,1,1,1,'qsd',1,1,1,8,NULL,20,NULL),(11,1,'545','5454',NULL,1,1,1,'2013-06-14 15:17:37','2013-06-14 15:17:37',2,2,1,1,1,1,'5454',1,54,45,NULL,NULL,NULL,NULL),(12,1,'545','5454',NULL,1,1,1,'2013-06-14 15:17:37','2013-06-14 15:17:37',2,2,1,1,1,1,'5454',1,54,45,NULL,NULL,NULL,NULL),(13,1,'545','5454',NULL,1,1,1,'2013-06-14 15:17:37','2013-06-14 15:17:37',2,2,1,1,1,1,'5454',1,54,45,NULL,NULL,NULL,NULL),(14,1,'545','5454',NULL,1,1,1,'2013-06-14 15:17:37','2013-06-14 15:17:37',2,2,1,1,1,1,'5454',1,54,45,NULL,NULL,NULL,NULL),(20,1,'45','45',NULL,1,1,1,'2013-06-14 16:09:45','2013-06-14 16:09:46',2,2,1,1,1,1,'45',1,4,4,8,NULL,18,NULL),(21,1,'45','45',NULL,1,1,1,'2013-06-14 16:09:45','2013-06-14 16:09:46',2,2,1,1,1,1,'45',1,4,4,9,NULL,18,NULL),(22,1,'45','45',NULL,1,1,1,'2013-06-14 16:09:45','2013-06-14 16:09:46',2,2,1,1,1,1,'45',1,4,4,10,NULL,18,NULL),(23,1,'45','45',NULL,1,1,1,'2013-06-14 16:09:45','2013-06-14 16:09:46',2,2,1,1,1,1,'45',1,4,4,11,NULL,18,NULL),(24,1,'45','45',NULL,1,1,1,'2013-06-14 16:09:45','2013-06-14 16:09:46',2,2,1,1,1,1,'45',1,4,4,12,NULL,18,NULL),(25,1,'45','45',NULL,1,1,1,'2013-06-14 16:10:27','2013-06-14 16:10:27',2,2,1,1,1,1,'45',1,4,4,13,NULL,18,NULL),(26,1,'45','45',NULL,1,1,1,'2013-06-14 16:10:27','2013-06-14 16:10:27',2,2,1,1,1,1,'45',1,4,4,14,NULL,18,NULL),(27,1,'45','45',NULL,1,1,1,'2013-06-14 16:10:27','2013-06-14 16:10:27',2,2,1,1,1,1,'45',1,4,4,15,NULL,18,NULL),(28,1,'45','45',NULL,1,1,1,'2013-06-14 16:10:27','2013-06-14 16:10:27',2,2,1,1,1,1,'45',1,4,4,16,NULL,18,NULL),(29,1,'45','45',NULL,1,1,1,'2013-06-14 16:10:27','2013-06-14 16:10:27',2,2,1,1,1,1,'45',1,4,4,17,NULL,18,NULL),(30,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:14','2013-06-14 16:11:14',2,2,1,1,1,1,'45',1,4,4,18,NULL,18,NULL),(31,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:14','2013-06-14 16:11:14',2,2,1,1,1,1,'45',1,4,4,19,NULL,18,NULL),(32,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:14','2013-06-14 16:11:14',2,2,1,1,1,1,'45',1,4,4,20,NULL,18,NULL),(33,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:14','2013-06-14 16:11:14',2,2,1,1,1,1,'45',1,4,4,21,NULL,18,NULL),(34,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:14','2013-06-14 16:11:14',2,2,1,1,1,1,'45',1,4,4,22,NULL,18,NULL),(35,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:54','2013-06-14 16:11:54',2,2,1,1,1,1,'45',1,4,4,23,NULL,18,NULL),(36,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:54','2013-06-14 16:11:54',2,2,1,1,1,1,'45',1,4,4,24,NULL,18,NULL),(37,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:54','2013-06-14 16:11:54',2,2,1,1,1,1,'45',1,4,4,25,NULL,18,NULL),(38,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:54','2013-06-14 16:11:54',2,2,1,1,1,1,'45',1,4,4,26,NULL,18,NULL),(39,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:54','2013-06-14 16:11:54',2,2,1,1,1,1,'45',1,4,4,27,NULL,18,NULL),(40,1,'25','52',NULL,1,1,1,'2013-06-14 17:30:52','2013-06-14 17:30:52',2,2,1,1,1,1,'52',1,5,5,1,NULL,24,NULL),(41,1,'25','52',NULL,1,1,1,'2013-06-14 17:30:52','2013-06-14 17:30:52',2,2,1,1,1,1,'52',1,5,5,2,NULL,24,NULL),(42,1,'25','52',NULL,1,1,1,'2013-06-14 17:30:52','2013-06-14 17:30:52',2,2,1,1,1,1,'52',1,5,5,3,NULL,24,NULL),(43,1,'25','52',NULL,1,1,1,'2013-06-14 17:30:52','2013-06-14 17:30:52',2,2,1,1,1,1,'52',1,5,5,4,NULL,24,NULL),(45,1,'5','5',NULL,1,0,1,'2013-06-15 14:33:53','2013-06-15 14:33:53',2,2,1,1,1,1,'5',1,5,5,2,NULL,23,NULL),(46,1,'5','5',NULL,1,0,1,'2013-06-15 14:33:53','2013-06-15 14:33:53',2,2,1,1,1,1,'5',1,5,5,3,NULL,23,NULL),(47,1,'5','5',NULL,1,0,1,'2013-06-15 14:33:53','2013-06-15 14:33:53',2,2,1,1,1,1,'5',1,5,5,4,NULL,23,NULL),(48,1,'5','5',NULL,1,0,1,'2013-06-15 14:33:53','2013-06-15 14:33:53',2,2,1,1,1,1,'5',1,5,5,5,NULL,23,NULL),(49,1,'PT1','Port 1','test2',1,1,1,'2013-06-26 18:50:38','2013-06-26 18:50:38',2,2,1,1,1,1,'1',1,1,1,1,NULL,28,NULL),(50,1,'8','8',NULL,1,1,1,'2013-06-13 16:20:11','2013-06-13 16:20:11',2,2,1,1,1,1,'8',1,8,8,1,NULL,34,NULL),(51,1,'8','8',NULL,1,1,1,'2013-06-13 16:20:11','2013-06-13 16:20:11',2,2,1,1,1,1,'8',1,8,8,2,NULL,34,NULL),(52,1,'45','45',NULL,1,1,1,'2013-06-14 16:08:30','2013-06-14 16:08:30',2,2,1,1,1,1,'45',1,4,4,3,NULL,34,NULL),(53,1,'45','45',NULL,1,1,1,'2013-06-14 16:08:30','2013-06-14 16:08:30',2,2,1,1,1,1,'45',1,4,4,4,NULL,34,NULL),(54,1,'45','45',NULL,1,1,1,'2013-06-14 16:08:30','2013-06-14 16:08:30',2,2,1,1,1,1,'45',1,4,4,5,NULL,34,NULL),(55,1,'45','45',NULL,1,1,1,'2013-06-14 16:08:30','2013-06-14 16:08:30',2,2,1,1,1,1,'45',1,4,4,6,NULL,34,NULL),(56,1,'45','45',NULL,1,1,1,'2013-06-14 16:08:30','2013-06-14 16:08:30',2,2,1,1,1,1,'45',1,4,4,7,NULL,34,NULL),(57,1,'45','45',NULL,1,1,1,'2013-06-14 16:09:45','2013-06-14 16:09:46',2,2,1,1,1,1,'45',1,4,4,8,NULL,34,NULL),(58,1,'45','45',NULL,1,1,1,'2013-06-14 16:09:45','2013-06-14 16:09:46',2,2,1,1,1,1,'45',1,4,4,9,NULL,34,NULL),(59,1,'45','45',NULL,1,1,1,'2013-06-14 16:09:45','2013-06-14 16:09:46',2,2,1,1,1,1,'45',1,4,4,10,NULL,34,NULL),(60,1,'45','45',NULL,1,1,1,'2013-06-14 16:09:45','2013-06-14 16:09:46',2,2,1,1,1,1,'45',1,4,4,11,NULL,34,NULL),(61,1,'45','45',NULL,1,1,1,'2013-06-14 16:09:45','2013-06-14 16:09:46',2,2,1,1,1,1,'45',1,4,4,12,NULL,34,NULL),(62,1,'45','45',NULL,1,1,1,'2013-06-14 16:10:27','2013-06-14 16:10:27',2,2,1,1,1,1,'45',1,4,4,13,NULL,34,NULL),(63,1,'45','45',NULL,1,1,1,'2013-06-14 16:10:27','2013-06-14 16:10:27',2,2,1,1,1,1,'45',1,4,4,14,NULL,34,NULL),(64,1,'45','45',NULL,1,1,1,'2013-06-14 16:10:27','2013-06-14 16:10:27',2,2,1,1,1,1,'45',1,4,4,15,NULL,34,NULL),(65,1,'45','45',NULL,1,1,1,'2013-06-14 16:10:27','2013-06-14 16:10:27',2,2,1,1,1,1,'45',1,4,4,16,NULL,34,NULL),(66,1,'45','45',NULL,1,1,1,'2013-06-14 16:10:27','2013-06-14 16:10:27',2,2,1,1,1,1,'45',1,4,4,17,NULL,34,NULL),(67,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:14','2013-06-14 16:11:14',2,2,1,1,1,1,'45',1,4,4,18,NULL,34,NULL),(68,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:14','2013-06-14 16:11:14',2,2,1,1,1,1,'45',1,4,4,19,NULL,34,NULL),(69,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:14','2013-06-14 16:11:14',2,2,1,1,1,1,'45',1,4,4,20,NULL,34,NULL),(70,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:14','2013-06-14 16:11:14',2,2,1,1,1,1,'45',1,4,4,21,NULL,34,NULL),(71,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:14','2013-06-14 16:11:14',2,2,1,1,1,1,'45',1,4,4,22,NULL,34,NULL),(72,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:54','2013-06-14 16:11:54',2,2,1,1,1,1,'45',1,4,4,23,NULL,34,NULL),(73,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:54','2013-06-14 16:11:54',2,2,1,1,1,1,'45',1,4,4,24,NULL,34,NULL),(74,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:54','2013-06-14 16:11:54',2,2,1,1,1,1,'45',1,4,4,25,NULL,34,NULL),(75,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:54','2013-06-14 16:11:54',2,2,1,1,1,1,'45',1,4,4,26,NULL,34,NULL),(76,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:54','2013-06-14 16:11:54',2,2,1,1,1,1,'45',1,4,4,27,NULL,34,NULL),(77,1,'5','5',NULL,1,0,1,'2013-06-15 14:33:53','2013-06-15 14:33:53',2,2,1,1,1,1,'5',1,5,5,1,NULL,37,NULL),(78,1,'5','5',NULL,1,0,1,'2013-06-15 14:33:53','2013-06-15 14:33:53',2,2,1,1,1,1,'5',1,5,5,2,NULL,37,NULL),(79,1,'5','5',NULL,1,0,1,'2013-06-15 14:33:53','2013-06-15 14:33:53',2,2,1,1,1,1,'5',1,5,5,3,NULL,37,NULL),(80,1,'5','5',NULL,1,0,1,'2013-06-15 14:33:53','2013-06-15 14:33:53',2,2,1,1,1,1,'5',1,5,5,4,NULL,37,NULL),(81,1,'5','5',NULL,1,0,1,'2013-06-15 14:33:53','2013-06-15 14:33:53',2,2,1,1,1,1,'5',1,5,5,5,NULL,37,NULL),(82,1,'rtrt','rtrt',NULL,1,1,1,'2013-07-06 16:25:35','2013-07-06 16:25:35',2,2,1,1,1,1,'rrt',1,5,5,1,NULL,32,NULL),(83,1,'rtrt','rtrt',NULL,1,1,1,'2013-07-06 16:25:35','2013-07-06 16:25:35',2,2,1,1,1,1,'rrt',1,5,5,2,NULL,32,NULL),(84,1,'rtrt','rtrt',NULL,1,1,1,'2013-07-06 16:25:35','2013-07-06 16:25:35',2,2,1,1,1,1,'rrt',1,5,5,3,NULL,32,NULL),(85,1,'rtrt','rtrt',NULL,1,1,1,'2013-07-06 16:25:35','2013-07-06 16:25:35',2,2,1,1,1,1,'rrt',1,5,5,4,NULL,32,NULL),(86,1,'rtrt','rtrt',NULL,1,1,1,'2013-07-06 16:25:35','2013-07-06 16:25:35',2,2,1,1,1,1,'rrt',1,5,5,5,NULL,32,NULL),(87,1,'dport','dport',NULL,1,1,1,'2013-07-06 16:51:59','2013-07-06 16:51:59',2,2,1,1,1,1,'fdf',1,5,5,1,NULL,45,NULL),(90,1,'4554','545',NULL,1,1,1,'2013-07-10 15:07:18','2013-07-10 15:07:18',2,2,4,2,1,1,'5454',1,5,5,NULL,NULL,NULL,NULL),(106,1,'fff','fff',NULL,1,1,1,'2013-07-10 16:19:18','2013-07-10 16:19:50',2,2,1,1,1,1,'fff',1,1,1,1,NULL,55,NULL),(110,1,'popo','p','1',1,1,1,'2013-07-10 17:06:39','2013-07-10 17:06:39',2,2,2,1,1,1,'1',1,1,1,1,1,NULL,NULL),(147,1,'fff','fff',NULL,1,1,1,'2013-07-10 16:19:18','2013-07-10 16:19:50',2,2,1,1,1,1,'fff',1,1,1,1,NULL,123,NULL),(149,1,'45','45',NULL,1,1,1,'2013-06-14 16:08:30','2013-06-14 16:08:30',2,2,1,1,1,1,'45',1,4,4,7,NULL,129,NULL),(150,1,'45','45',NULL,1,1,1,'2013-06-14 16:09:45','2013-06-14 16:09:46',2,2,1,1,1,1,'45',1,4,4,8,NULL,129,NULL),(151,1,'45','45',NULL,1,1,1,'2013-06-14 16:09:45','2013-06-14 16:09:46',2,2,1,1,1,1,'45',1,4,4,9,NULL,129,NULL),(152,1,'45','45',NULL,1,1,1,'2013-06-14 16:09:45','2013-06-14 16:09:46',2,2,1,1,1,1,'45',1,4,4,10,NULL,129,NULL),(153,1,'45','45',NULL,1,1,1,'2013-06-14 16:09:45','2013-06-14 16:09:46',2,2,1,1,1,1,'45',1,4,4,11,NULL,129,NULL),(154,1,'45','45',NULL,1,1,1,'2013-06-14 16:09:45','2013-06-14 16:09:46',2,2,1,1,1,1,'45',1,4,4,12,NULL,129,NULL),(155,1,'45','45',NULL,1,1,1,'2013-06-14 16:10:27','2013-06-14 16:10:27',2,2,1,1,1,1,'45',1,4,4,13,NULL,129,NULL),(156,1,'45','45',NULL,1,1,1,'2013-06-14 16:10:27','2013-06-14 16:10:27',2,2,1,1,1,1,'45',1,4,4,14,NULL,129,NULL),(157,1,'45','45',NULL,1,1,1,'2013-06-14 16:10:27','2013-06-14 16:10:27',2,2,1,1,1,1,'45',1,4,4,15,NULL,129,NULL),(158,1,'45','45',NULL,1,1,1,'2013-06-14 16:10:27','2013-06-14 16:10:27',2,2,1,1,1,1,'45',1,4,4,16,NULL,129,NULL),(159,1,'45','45',NULL,1,1,1,'2013-06-14 16:10:27','2013-06-14 16:10:27',2,2,1,1,1,1,'45',1,4,4,17,NULL,129,NULL),(160,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:14','2013-06-14 16:11:14',2,2,1,1,1,1,'45',1,4,4,18,NULL,129,NULL),(161,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:14','2013-06-14 16:11:14',2,2,1,1,1,1,'45',1,4,4,19,NULL,129,NULL),(162,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:14','2013-06-14 16:11:14',2,2,1,1,1,1,'45',1,4,4,20,NULL,129,NULL),(163,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:14','2013-06-14 16:11:14',2,2,1,1,1,1,'45',1,4,4,21,NULL,129,NULL),(164,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:14','2013-06-14 16:11:14',2,2,1,1,1,1,'45',1,4,4,22,NULL,129,NULL),(165,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:54','2013-06-14 16:11:54',2,2,1,1,1,1,'45',1,4,4,23,NULL,129,NULL),(166,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:54','2013-06-14 16:11:54',2,2,1,1,1,1,'45',1,4,4,24,NULL,129,NULL),(167,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:54','2013-06-14 16:11:54',2,2,1,1,1,1,'45',1,4,4,25,NULL,129,NULL),(168,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:54','2013-06-14 16:11:54',2,2,1,1,1,1,'45',1,4,4,26,NULL,129,NULL),(169,1,'45','45',NULL,1,1,1,'2013-06-14 16:11:54','2013-06-14 16:11:54',2,2,1,1,1,1,'45',1,4,4,27,NULL,129,NULL),(170,1,'5','5',NULL,1,0,1,'2013-06-15 14:33:53','2013-06-15 14:33:53',2,2,1,1,1,1,'5',1,5,5,2,NULL,130,NULL),(171,1,'5','5',NULL,1,0,1,'2013-06-15 14:33:53','2013-06-15 14:33:53',2,2,1,1,1,1,'5',1,5,5,3,NULL,130,NULL),(172,1,'5','5',NULL,1,0,1,'2013-06-15 14:33:53','2013-06-15 14:33:53',2,2,1,1,1,1,'5',1,5,5,4,NULL,130,NULL),(173,1,'5','5',NULL,1,0,1,'2013-06-15 14:33:53','2013-06-15 14:33:53',2,2,1,1,1,1,'5',1,5,5,5,NULL,130,NULL),(174,1,'popo','p','1',1,1,1,'2013-07-10 17:06:39','2013-07-10 17:06:39',2,2,2,1,1,1,'1',1,1,1,1,5,NULL,NULL),(175,1,'fff','fff',NULL,1,1,1,'2013-07-10 16:19:18','2013-07-10 16:19:50',2,2,1,1,1,1,'fff',1,1,1,1,NULL,133,NULL),(176,1,'popo','p','1',1,1,1,'2013-07-10 17:06:39','2013-07-10 17:06:39',2,2,2,1,1,1,'1',1,1,1,1,6,NULL,NULL),(177,1,'fff','fff',NULL,1,1,1,'2013-07-10 16:19:18','2013-07-10 16:19:50',2,2,1,1,1,1,'fff',1,1,1,1,NULL,136,NULL),(178,1,'popo','p','1',1,1,1,'2013-07-10 17:06:39','2013-07-10 17:06:39',2,2,2,1,1,1,'1',1,1,1,1,7,NULL,NULL),(179,1,'fff','fff',NULL,1,1,1,'2013-07-10 16:19:18','2013-07-10 16:19:50',2,2,1,1,1,1,'fff',1,1,1,1,NULL,139,NULL),(180,1,'popo','p','1',1,1,1,'2013-07-10 17:06:39','2013-07-10 17:06:39',2,2,2,1,1,1,'1',1,1,1,1,8,NULL,NULL),(181,1,'fff','fff',NULL,1,1,1,'2013-07-10 16:19:18','2013-07-10 16:19:50',2,2,1,1,1,1,'fff',1,1,1,1,NULL,142,NULL),(182,1,'popo','p','1',1,1,1,'2013-07-10 17:06:39','2013-07-10 17:06:39',2,2,2,1,1,1,'1',1,1,1,1,9,NULL,NULL),(205,1,'pc','pc12',NULL,1,1,1,'2013-07-11 11:23:11','2013-07-11 11:23:11',2,2,1,1,1,1,'1',1,2,2,1,15,NULL,NULL),(206,1,'pc','pc12',NULL,1,1,1,'2013-07-11 11:23:11','2013-07-11 11:23:11',2,2,1,1,1,1,'1',1,2,2,2,15,NULL,NULL),(207,1,'pc','pc12',NULL,1,1,1,'2013-07-11 11:23:11','2013-07-11 11:23:11',2,2,1,1,1,1,'1',1,2,2,3,15,NULL,NULL),(208,1,'PC12','PC 123',NULL,1,1,1,'2013-07-11 11:24:16','2013-07-11 11:24:16',2,2,1,1,1,1,'1',1,1,1,4,15,NULL,NULL),(209,1,'PC12','PC 123',NULL,1,1,1,'2013-07-11 11:24:16','2013-07-11 11:24:16',2,2,1,1,1,1,'1',1,1,1,5,15,NULL,NULL),(210,1,'PC12','PC 123',NULL,1,1,1,'2013-07-11 11:24:16','2013-07-11 11:24:16',2,2,1,1,1,1,'1',1,1,1,6,15,NULL,NULL),(211,1,'PC12','PC 123',NULL,1,1,1,'2013-07-11 11:24:16','2013-07-11 11:24:16',2,2,1,1,1,1,'1',1,1,1,7,15,NULL,NULL),(212,1,'444','444',NULL,1,1,1,'2013-07-12 14:08:24','2013-07-12 14:08:24',2,2,1,1,1,1,'444',1,44,44,1,16,NULL,NULL),(213,1,'dport','dport',NULL,1,1,1,'2013-07-06 16:51:59','2013-07-06 16:51:59',2,2,1,1,1,1,'fdf',1,5,5,1,NULL,146,NULL),(214,1,'555','555',NULL,1,1,1,'2013-09-10 12:09:11','2013-09-10 12:09:12',2,2,9,2,1,1,'555',1,6,8,2,NULL,146,NULL),(215,1,'555','555',NULL,1,1,1,'2013-09-10 12:09:11','2013-09-10 12:09:12',2,2,9,2,1,1,'555',1,6,8,3,NULL,146,NULL),(216,1,'555','555',NULL,1,1,1,'2013-09-10 12:09:11','2013-09-10 12:09:12',2,2,9,2,1,1,'555',1,6,8,4,NULL,146,NULL),(217,1,'555','555',NULL,1,1,1,'2013-09-10 12:09:11','2013-09-10 12:09:12',2,2,9,2,1,1,'555',1,6,8,5,NULL,146,NULL),(218,1,'555','555',NULL,1,1,1,'2013-09-10 12:09:11','2013-09-10 12:09:12',2,2,9,2,1,1,'555',1,6,8,6,NULL,146,NULL),(219,1,'555','555',NULL,1,1,1,'2013-09-10 12:09:11','2013-09-10 12:09:12',2,2,9,2,1,1,'555',1,6,8,7,NULL,146,NULL),(220,1,'555','555',NULL,1,1,1,'2013-09-10 12:09:11','2013-09-10 12:09:12',2,2,9,2,1,1,'555',1,6,8,8,NULL,146,NULL),(221,1,'555','555',NULL,1,1,1,'2013-09-10 12:09:11','2013-09-10 12:09:12',2,2,9,2,1,1,'555',1,6,8,9,NULL,146,NULL);

--
-- Table structure for table `port_category`
--

CREATE TABLE `port_category` (
  `id_port_category` int(11) NOT NULL AUTO_INCREMENT,
  `cd_port_category` varchar(15) DEFAULT NULL,
  `lb_port_category` varchar(100) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_port_category`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  CONSTRAINT `FK_782F4FA0536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_782F4FA068E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `port_category`
--


--
-- Table structure for table `port_connector`
--

CREATE TABLE `port_connector` (
  `id_port_connector` int(11) NOT NULL AUTO_INCREMENT,
  `cd_port_connector` varchar(15) DEFAULT NULL,
  `lb_port_connector` varchar(100) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_port_connector`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  CONSTRAINT `FK_2E4777F6536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_2E4777F668E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `port_connector`
--


--
-- Table structure for table `port_family`
--

CREATE TABLE `port_family` (
  `id_port_family` int(11) NOT NULL AUTO_INCREMENT,
  `cd_port_family` varchar(15) DEFAULT NULL,
  `lb_port_family` varchar(100) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_port_family`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  CONSTRAINT `FK_82BFD17D536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_82BFD17D68E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `port_family`
--


--
-- Table structure for table `port_instance`
--

CREATE TABLE `port_instance` (
  `id_port_instance` int(11) NOT NULL AUTO_INCREMENT,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `id_patch_panel_instance` int(11) DEFAULT NULL,
  `id_card_instance` int(11) DEFAULT NULL,
  `id_cable` int(11) DEFAULT NULL,
  `cd_port_instance` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `lb_port_instance` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `cm_port_instance` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_port` int(11) DEFAULT NULL,
  `id_complex_model` int(11) DEFAULT NULL,
  `nb_number` int(11) DEFAULT NULL,
  `id_provider` int(11) DEFAULT NULL,
  `id_provider_address` int(11) DEFAULT NULL,
  `id_contact` int(11) DEFAULT NULL,
  `cd_provider_account` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id_port_instance`),
  KEY `IDX_3C53E7BF536A5873` (`id_user_create_by`),
  KEY `IDX_3C53E7BF68E26F41` (`id_user_update_by`),
  KEY `IDX_3C53E7BF9ABD60CA` (`id_patch_panel_instance`),
  KEY `IDX_3C53E7BF4529AE38` (`id_card_instance`),
  KEY `IDX_3C53E7BFCA6C85E4` (`id_cable`),
  KEY `IDX_3C53E7BFC8B141CE` (`id_port`),
  KEY `IDX_3C53E7BF241EF16C` (`id_complex_model`),
  KEY `IDX_3C53E7BFC21F9F09` (`id_provider`),
  KEY `IDX_3C53E7BF1E9C98F7` (`id_provider_address`),
  KEY `IDX_3C53E7BF92FF4F48` (`id_contact`),
  CONSTRAINT `FK_3C53E7BF1E9C98F7` FOREIGN KEY (`id_provider_address`) REFERENCES `address_provider` (`id_address_provider`),
  CONSTRAINT `FK_3C53E7BF241EF16C` FOREIGN KEY (`id_complex_model`) REFERENCES `complex_model` (`id_complex_model`),
  CONSTRAINT `FK_3C53E7BF4529AE38` FOREIGN KEY (`id_card_instance`) REFERENCES `card_instance` (`id_card_instance`),
  CONSTRAINT `FK_3C53E7BF536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_3C53E7BF68E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_3C53E7BF92FF4F48` FOREIGN KEY (`id_contact`) REFERENCES `contact_provider` (`id_contact_provider`),
  CONSTRAINT `FK_3C53E7BF9ABD60CA` FOREIGN KEY (`id_patch_panel_instance`) REFERENCES `patch_panel_instance` (`id_patch_panel_instance`),
  CONSTRAINT `FK_3C53E7BFC21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`),
  CONSTRAINT `FK_3C53E7BFC8B141CE` FOREIGN KEY (`id_port`) REFERENCES `port` (`id_port`),
  CONSTRAINT `FK_3C53E7BFCA6C85E4` FOREIGN KEY (`id_cable`) REFERENCES `cable` (`id_cable`)
) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `port_instance`
--

INSERT INTO `port_instance` VALUES (1,2,2,NULL,13,NULL,'rtrt','rtrt',NULL,1,'2013-07-06 16:26:47','2013-07-06 16:26:47',82,NULL,NULL,NULL,NULL,NULL,NULL),(2,2,2,NULL,13,NULL,'rtrt','rtrt',NULL,1,'2013-07-06 16:26:47','2013-07-06 16:26:47',83,NULL,NULL,NULL,NULL,NULL,NULL),(3,2,2,NULL,13,NULL,'rtrt','rtrt',NULL,1,'2013-07-06 16:26:47','2013-07-06 16:26:47',84,NULL,NULL,NULL,NULL,NULL,NULL),(4,2,2,NULL,13,NULL,'rtrt','rtrt',NULL,1,'2013-07-06 16:26:47','2013-07-06 16:26:47',85,NULL,NULL,NULL,NULL,NULL,NULL),(5,2,2,NULL,13,NULL,'rtrt','rtrt',NULL,1,'2013-07-06 16:26:47','2013-07-06 16:26:47',86,NULL,NULL,NULL,NULL,NULL,NULL),(6,2,2,NULL,18,NULL,'qds','qsd','qsd',1,'2013-07-06 16:57:57','2013-07-06 16:57:57',3,NULL,NULL,NULL,NULL,NULL,NULL),(7,2,2,NULL,18,NULL,'qds','qsd','qsd',1,'2013-07-06 16:57:57','2013-07-06 16:57:57',4,NULL,NULL,NULL,NULL,NULL,NULL),(8,2,2,NULL,18,NULL,'qds','qsd','qsd',1,'2013-07-06 16:57:57','2013-07-06 16:57:57',5,NULL,NULL,NULL,NULL,NULL,NULL),(9,2,2,NULL,18,NULL,'qds','qsd','qsd',1,'2013-07-06 16:57:57','2013-07-06 16:57:57',6,NULL,NULL,NULL,NULL,NULL,NULL),(10,2,2,NULL,18,NULL,'qds','qsd','qsd',1,'2013-07-06 16:57:57','2013-07-06 16:57:57',7,NULL,NULL,NULL,NULL,NULL,NULL),(11,2,2,NULL,18,NULL,'qds','qsd','qsd',1,'2013-07-06 16:57:57','2013-07-06 16:57:57',8,NULL,NULL,NULL,NULL,NULL,NULL),(12,2,2,NULL,18,NULL,'qds','qsd','qsd',1,'2013-07-06 16:57:57','2013-07-06 16:57:57',9,NULL,NULL,NULL,NULL,NULL,NULL),(13,2,2,NULL,18,NULL,'qds','qsd','qsd',1,'2013-07-06 16:57:57','2013-07-06 16:57:57',10,NULL,NULL,NULL,NULL,NULL,NULL),(14,2,2,NULL,27,NULL,'5','5',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',77,NULL,NULL,NULL,NULL,NULL,NULL),(15,2,2,NULL,27,NULL,'5','5',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',78,NULL,NULL,NULL,NULL,NULL,NULL),(16,2,2,NULL,27,NULL,'5','5',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',79,NULL,NULL,NULL,NULL,NULL,NULL),(17,2,2,NULL,27,NULL,'5','5',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',80,NULL,NULL,NULL,NULL,NULL,NULL),(18,2,2,NULL,27,NULL,'5','5',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',81,NULL,NULL,NULL,NULL,NULL,NULL),(19,2,2,NULL,30,NULL,'8','8',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',50,NULL,NULL,NULL,NULL,NULL,NULL),(20,2,2,NULL,30,NULL,'8','8',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',51,NULL,NULL,NULL,NULL,NULL,NULL),(21,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',52,NULL,NULL,NULL,NULL,NULL,NULL),(22,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',53,NULL,NULL,NULL,NULL,NULL,NULL),(23,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',54,NULL,NULL,NULL,NULL,NULL,NULL),(24,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',55,NULL,NULL,NULL,NULL,NULL,NULL),(25,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',56,NULL,NULL,NULL,NULL,NULL,NULL),(26,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',57,NULL,NULL,NULL,NULL,NULL,NULL),(27,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',58,NULL,NULL,NULL,NULL,NULL,NULL),(28,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',59,NULL,NULL,NULL,NULL,NULL,NULL),(29,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',60,NULL,NULL,NULL,NULL,NULL,NULL),(30,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',61,NULL,NULL,NULL,NULL,NULL,NULL),(31,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',62,NULL,NULL,NULL,NULL,NULL,NULL),(32,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',63,NULL,NULL,NULL,NULL,NULL,NULL),(33,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',64,NULL,NULL,NULL,NULL,NULL,NULL),(34,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',65,NULL,NULL,NULL,NULL,NULL,NULL),(35,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',66,NULL,NULL,NULL,NULL,NULL,NULL),(36,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',67,NULL,NULL,NULL,NULL,NULL,NULL),(37,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',68,NULL,NULL,NULL,NULL,NULL,NULL),(38,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',69,NULL,NULL,NULL,NULL,NULL,NULL),(39,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',70,NULL,NULL,NULL,NULL,NULL,NULL),(40,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',71,NULL,NULL,NULL,NULL,NULL,NULL),(41,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',72,NULL,NULL,NULL,NULL,NULL,NULL),(42,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',73,NULL,NULL,NULL,NULL,NULL,NULL),(43,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',74,NULL,NULL,NULL,NULL,NULL,NULL),(44,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',75,NULL,NULL,NULL,NULL,NULL,NULL),(45,2,2,NULL,30,NULL,'45','45',NULL,1,'2013-07-06 16:57:57','2013-07-06 16:57:57',76,NULL,NULL,NULL,NULL,NULL,NULL),(46,2,2,NULL,39,NULL,'dport','dport',NULL,1,'2013-07-06 16:58:29','2013-07-06 16:58:29',87,NULL,NULL,NULL,NULL,NULL,NULL),(48,2,2,NULL,41,NULL,'dport','dport',NULL,1,'2013-07-07 00:00:00','2013-10-21 00:00:00',87,NULL,1,NULL,NULL,NULL,NULL),(49,2,2,1,NULL,NULL,'popo','p56','1',1,'2013-07-10 19:48:30','2013-07-13 22:14:44',110,NULL,1,NULL,NULL,NULL,NULL),(50,2,2,NULL,42,NULL,'fff','fff',NULL,1,'2013-07-10 19:48:30','2013-07-10 19:48:30',106,NULL,NULL,NULL,NULL,NULL,NULL),(51,2,2,3,NULL,NULL,'444','444',NULL,1,'2013-07-12 14:09:20','2013-07-12 14:09:20',212,NULL,NULL,NULL,NULL,NULL,NULL),(52,2,2,4,NULL,NULL,'444','444',NULL,1,'2014-01-29 22:42:16','2014-01-29 22:42:16',212,NULL,NULL,NULL,NULL,NULL,NULL),(53,2,2,NULL,46,NULL,'dport','dport',NULL,1,'2014-01-29 22:48:27','2014-01-29 22:48:27',213,NULL,NULL,NULL,NULL,NULL,NULL),(54,2,2,NULL,46,NULL,'555','555',NULL,1,'2014-01-29 22:48:27','2014-01-29 22:48:27',214,NULL,NULL,NULL,NULL,NULL,NULL),(55,2,2,NULL,46,NULL,'555','555',NULL,1,'2014-01-29 22:48:27','2014-01-29 22:48:27',215,NULL,NULL,NULL,NULL,NULL,NULL),(56,2,2,NULL,46,NULL,'555','555',NULL,1,'2014-01-29 22:48:27','2014-01-29 22:48:27',216,NULL,NULL,NULL,NULL,NULL,NULL),(57,2,2,NULL,46,NULL,'555','555',NULL,1,'2014-01-29 22:48:27','2014-01-29 22:48:27',217,NULL,NULL,NULL,NULL,NULL,NULL),(58,2,2,NULL,46,NULL,'555','555',NULL,1,'2014-01-29 22:48:27','2014-01-29 22:48:27',218,NULL,NULL,NULL,NULL,NULL,NULL),(59,2,2,NULL,46,NULL,'555','555',NULL,1,'2014-01-29 22:48:27','2014-01-29 22:48:27',219,NULL,NULL,NULL,NULL,NULL,NULL),(60,2,2,NULL,46,NULL,'555','555',NULL,1,'2014-01-29 22:48:27','2014-01-29 22:48:27',220,NULL,NULL,NULL,NULL,NULL,NULL),(61,2,2,NULL,46,NULL,'555','555',NULL,1,'2014-01-29 22:48:27','2014-01-29 22:48:27',221,NULL,NULL,NULL,NULL,NULL,NULL),(62,2,2,5,NULL,NULL,'444','444',NULL,1,'2014-02-18 12:35:18','2014-02-18 12:35:18',212,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `port_segmentation_type`
--

CREATE TABLE `port_segmentation_type` (
  `id_port_segmentation_type` int(11) NOT NULL AUTO_INCREMENT,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `cd_port_segmentation_type` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_port_segmentation_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  PRIMARY KEY (`id_port_segmentation_type`),
  KEY `IDX_94B5E71B536A5873` (`id_user_create_by`),
  KEY `IDX_94B5E71B68E26F41` (`id_user_update_by`),
  CONSTRAINT `FK_94B5E71B536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_94B5E71B68E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `port_segmentation_type`
--

INSERT INTO `port_segmentation_type` VALUES (1,2,2,'545','545',1,'2013-06-13 15:39:55','2013-06-13 15:39:55');

--
-- Table structure for table `port_status`
--

CREATE TABLE `port_status` (
  `id_port_status` int(11) NOT NULL AUTO_INCREMENT,
  `cd_port_status` varchar(15) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `lb_port_status` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_port_status`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  CONSTRAINT `FK_5C59953A536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_5C59953A68E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `port_status`
--


--
-- Table structure for table `port_sub_type`
--

CREATE TABLE `port_sub_type` (
  `id_port_sub_type` int(11) NOT NULL AUTO_INCREMENT,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `cd_port_sub_type` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_port_sub_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `dt_deactivated` datetime DEFAULT NULL,
  PRIMARY KEY (`id_port_sub_type`),
  KEY `IDX_D52B9E89536A5873` (`id_user_create_by`),
  KEY `IDX_D52B9E8968E26F41` (`id_user_update_by`),
  CONSTRAINT `FK_D52B9E89536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_D52B9E8968E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `port_sub_type`
--

INSERT INTO `port_sub_type` VALUES (1,2,2,'HK899','899',1,'2013-06-13 14:08:19','2013-07-02 14:08:19',NULL),(2,2,2,'PA12','3256 Paris',1,'2013-06-26 14:08:19','2013-06-26 14:08:19',NULL),(3,2,2,'P98','SubType Port 98',1,'2013-07-02 14:08:19','2013-07-02 14:08:19',NULL),(4,2,2,'HK899','899',1,'2013-06-13 14:08:19','2013-07-02 14:08:19',NULL),(5,2,2,'PA12','3256 Paris',1,'2013-06-26 14:08:19','2013-06-26 14:08:19',NULL),(6,2,2,'P98','SubType Port 98',1,'2013-07-02 14:08:19','2013-07-02 14:08:19',NULL),(7,2,2,'HK900','900',1,'2014-06-13 14:08:19','2014-07-02 14:08:19',NULL),(8,2,2,'PA13','3257 Paris',1,'2013-06-26 14:08:19','2013-06-26 14:08:19',NULL),(9,2,2,'P99','SubType Port 99',1,'2013-07-02 14:08:19','2013-07-02 14:08:19',NULL),(10,2,2,'HK901','901',1,'2015-06-13 14:08:19','2015-07-02 14:08:19',NULL),(11,2,2,'PA14','3258 Paris',1,'2013-06-26 14:08:19','2013-06-26 14:08:19',NULL),(12,2,2,'P100','SubType Port 100',1,'2013-07-02 14:08:19','2013-07-02 14:08:19',NULL),(13,2,2,'HK902','902',1,'2016-06-13 14:08:19','2016-07-02 14:08:19',NULL),(14,2,2,'PA15','3259 Paris',1,'2013-06-26 14:08:19','2013-06-26 14:08:19',NULL),(15,2,2,'P101','SubType Port 101',1,'2013-07-02 14:08:19','2013-07-02 14:08:19',NULL),(16,2,2,'HK903','903',1,'2017-06-13 14:08:19','2017-07-02 14:08:19',NULL),(17,2,2,'PA16','3260 Paris',1,'2013-06-26 14:08:19','2013-06-26 14:08:19',NULL),(18,2,2,'P102','SubType Port 102',1,'2013-07-02 14:08:19','2013-07-02 14:08:19',NULL),(19,2,2,'HK904','904',1,'2018-06-13 14:08:19','2018-07-02 14:08:19',NULL),(20,2,2,'PA17','3261 Paris',1,'2013-06-26 14:08:19','2013-06-26 14:08:19',NULL),(21,2,2,'P103','SubType Port 103',1,'2013-07-02 14:08:19','2013-07-02 14:08:19',NULL),(22,2,2,'HK905','905',1,'2019-06-13 14:08:19','2019-07-02 14:08:19',NULL),(23,2,2,'PA18','3262 Paris',1,'2013-06-26 14:08:19','2013-06-26 14:08:19',NULL),(24,2,2,'P104','SubType Port 104',1,'2013-07-02 14:08:19','2013-07-02 14:08:19',NULL),(25,2,2,'HK906','906',1,'2020-06-13 14:08:19','2020-07-02 14:08:19',NULL),(26,2,2,'PA19','3263 Paris',1,'2013-06-26 14:08:19','2013-06-26 14:08:19',NULL),(27,2,2,'P105','SubType Port 105',1,'2013-07-02 14:08:19','2013-07-02 14:08:19',NULL),(28,2,2,'HK907','907',1,'2021-06-13 14:08:19','2021-07-02 14:08:19',NULL),(29,2,2,'PA20','3264 Paris',1,'2013-06-26 14:08:19','2013-06-26 14:08:19',NULL);

--
-- Table structure for table `port_technology`
--

CREATE TABLE `port_technology` (
  `id_port_technology` int(11) NOT NULL AUTO_INCREMENT,
  `cd_port_technology` varchar(15) DEFAULT NULL,
  `lb_port_technology` varchar(100) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_port_technology`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  CONSTRAINT `FK_A8D8209536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_A8D820968E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `port_technology`
--


--
-- Table structure for table `port_template`
--

CREATE TABLE `port_template` (
  `id_port` int(11) NOT NULL,
  `id_port_type` int(11) DEFAULT NULL,
  `id_card` int(11) DEFAULT NULL,
  `cd_port` varchar(15) NOT NULL,
  `lb_port` varchar(100) NOT NULL,
  `cm_port` varchar(255) DEFAULT NULL,
  `nb_bandwidth_used` decimal(10,0) DEFAULT NULL,
  `nb_bandwidth_max` decimal(10,0) DEFAULT NULL,
  `nb_ts_used` decimal(10,0) DEFAULT NULL,
  `nb_ts_cost` decimal(10,0) DEFAULT NULL,
  `nb_ts_max` decimal(10,0) DEFAULT NULL,
  `nb_ts_free` decimal(10,0) DEFAULT NULL,
  `bl_full` tinyint(1) DEFAULT NULL,
  `bl_full_cost` tinyint(1) DEFAULT NULL,
  `ar_ts_remote` varchar(255) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_port`),
  KEY `id_port_type` (`id_port_type`),
  KEY `id_card` (`id_card`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  KEY `id_port` (`id_port`),
  CONSTRAINT `FK_E90349E2536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_E90349E263C987B1` FOREIGN KEY (`id_port_type`) REFERENCES `port_type` (`id_port_type`),
  CONSTRAINT `FK_E90349E268E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_E90349E29D3484D1` FOREIGN KEY (`id_card`) REFERENCES `card` (`id_card`),
  CONSTRAINT `FK_E90349E2C8B141CE` FOREIGN KEY (`id_port`) REFERENCES `port` (`id_port`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `port_template`
--


--
-- Table structure for table `port_type`
--

CREATE TABLE `port_type` (
  `id_port_type` int(11) NOT NULL AUTO_INCREMENT,
  `cd_port_type` varchar(15) DEFAULT NULL,
  `nb_ts` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `id_bandwidth` int(11) DEFAULT NULL,
  `id_port_segmentation_type` int(11) DEFAULT NULL,
  `nb_max_services` int(11) DEFAULT NULL,
  `nb_ts_start` int(11) DEFAULT NULL,
  `nb_channels` int(11) DEFAULT NULL,
  `nb_channel_start` int(11) DEFAULT NULL,
  `nb_max_capacity` decimal(10,0) DEFAULT NULL,
  `dt_deactivated` datetime DEFAULT NULL,
  PRIMARY KEY (`id_port_type`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  KEY `id_bandwidth` (`id_bandwidth`),
  KEY `IDX_E3FC3B969464508C` (`id_port_segmentation_type`),
  CONSTRAINT `FK_E3FC3B96536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_E3FC3B9668E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_E3FC3B969464508C` FOREIGN KEY (`id_port_segmentation_type`) REFERENCES `port_segmentation_type` (`id_port_segmentation_type`),
  CONSTRAINT `FK_E3FC3B96A3C6948` FOREIGN KEY (`id_bandwidth`) REFERENCES `bandwidth` (`id_bandwidth`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `port_type`
--

INSERT INTO `port_type` VALUES (1,'5897',5,1,'2013-06-13 15:41:29','2013-06-13 15:41:29',2,2,1,1,5,NULL,5,NULL,5,NULL);

--
-- Table structure for table `product`
--

CREATE TABLE `product` (
  `id_product` int(11) NOT NULL AUTO_INCREMENT,
  `cd_product` varchar(15) NOT NULL,
  `lb_product` varchar(100) NOT NULL,
  `id_product_type` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_deactivated` datetime DEFAULT NULL,
  `id_bandwidth_assignee` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_product`),
  KEY `id_product_type` (`id_product_type`),
  KEY `IDX_D34A04AD36EB4FA3` (`id_bandwidth_assignee`),
  CONSTRAINT `FK_D34A04AD22F700FA` FOREIGN KEY (`id_product_type`) REFERENCES `product_type` (`id_product_type`),
  CONSTRAINT `FK_D34A04AD36EB4FA3` FOREIGN KEY (`id_bandwidth_assignee`) REFERENCES `bandwidth_assignee` (`id_bandwidth_assignee`)
) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `product`
--

INSERT INTO `product` VALUES (1,'TVC','Trade voice city',1,1,NULL,5),(2,'TVI','Trade voice intercity',2,1,NULL,5),(3,'TD','Trade data',3,1,NULL,5),(4,'BC','Business conference',4,1,NULL,NULL),(5,'NVA','Netrecova',5,1,NULL,NULL),(7,'TEMSL','TradExtra membership silver',6,1,NULL,3),(8,'TEMGL','TradExtra membership gold',6,1,NULL,2),(9,'TEMPL','TradExtra membership platinum',6,1,NULL,1),(10,'TETC','TradExtra talk city',10,1,NULL,NULL),(11,'TETA','TradExtra talk area',11,1,NULL,NULL),(12,'TETIA','TradExtra talk inter-area',12,1,NULL,NULL),(13,'BUC10','Bundle city 10',7,1,NULL,NULL),(14,'BUC25','Bundle city 25',7,1,NULL,NULL),(15,'BUC50','Bundle city 50',7,1,NULL,NULL),(16,'BUC200','Bundle city 200',7,1,NULL,NULL),(17,'BUA10','Bundle area 10',8,1,NULL,NULL),(18,'BUA25','Bundle area 25',8,1,NULL,NULL),(19,'BUA50','Bundle area 50',8,1,NULL,NULL),(20,'BUA200','Bundle area 200',8,1,NULL,NULL),(21,'BUI10','Bunde inter-area',9,1,NULL,NULL),(22,'BUI25','Bundle inter-area 25',9,1,NULL,NULL),(23,'BUI50','Bundle inter-area 50',9,1,NULL,NULL),(24,'BUI200','Bundle inter-area 200',9,1,NULL,NULL),(25,'TEDL','TradExtra datalink',27,1,NULL,NULL),(26,'TEPF','TradExtra plug feed',13,1,NULL,NULL),(27,'TEPT','TradExtra transa plug',13,1,NULL,NULL),(28,'TEPC','TradExtra clear plug',13,1,NULL,NULL),(29,'TEOS5','TradExtra one system 5 channels',14,1,NULL,NULL),(30,'TEOS10','TradExtra one system 10 channels',14,1,NULL,NULL),(31,'TEOS20','TradExtra one system 20 channels',14,1,NULL,NULL),(32,'TEOS30','TradExtra one system 30 channels',14,1,NULL,NULL),(33,'MET','Metrics',15,1,NULL,NULL),(34,'RA','Remote access',16,1,NULL,NULL),(35,'LLSCR','Live-Live smart call routing',17,1,NULL,NULL),(36,'FTSSCR','Follow-The-Sun smart call routing',18,1,NULL,NULL),(37,'TEF','TradExtra fix',19,1,NULL,NULL),(38,'FLT','Flexible trading',20,1,NULL,NULL),(39,'FLTU','Flexible turrets',21,1,NULL,NULL),(40,'FLCN','Flexible connect',22,1,NULL,NULL),(41,'FLRE','Flexible retrieve',23,1,NULL,NULL),(42,'BRS3','BET remote system (gateway 30 channels)',24,1,NULL,NULL),(43,'BRS64','BET remote system (gateway 64 channels)',25,1,NULL,NULL),(44,'BET','BET remote turret (Etranet Remote Trading)',26,1,NULL,NULL);

--
-- Table structure for table `product_caracs`
--

CREATE TABLE `product_caracs` (
  `id_product_caracs` int(11) NOT NULL AUTO_INCREMENT,
  `lb_carac` varchar(255) NOT NULL,
  `value1` varchar(255) DEFAULT NULL,
  `value2` varchar(255) DEFAULT NULL,
  `bl_mandatory` tinyint(1) NOT NULL,
  `position` int(11) NOT NULL,
  `lb_widget_type` varchar(255) NOT NULL,
  `nb_location` int(11) NOT NULL,
  `lb_field` varchar(255) NOT NULL,
  PRIMARY KEY (`id_product_caracs`)
) ENGINE=InnoDB AUTO_INCREMENT=51 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `product_caracs`
--

INSERT INTO `product_caracs` VALUES (1,'Connection','frame-to-frame','turret-to-turret',1,1,'choice',0,'lbConnection'),(2,'SIP','1','2',1,0,'checkbox',0,'blSip'),(3,'Nb of SIP','1','99',1,1,'choice',0,'nbSip'),(4,'Off net','0','1',1,4,'checkbox',0,'blOffnet'),(5,'Class of traffic','A','C',1,5,'choice',0,'blClass'),(6,'Layer','2','3',0,6,'choice',0,'lbLayer'),(7,'Backup site','dedicated','mutualised',1,7,'choice',0,'lbBackupSite'),(8,'Backup activation delay','2h','4h',1,8,'choice',0,'lbBackupDelay'),(9,'Routing plan management','co-managed','fully-managed',1,9,'choice',0,'lbRoutingPlan'),(10,'Max. nb of authorized services',NULL,NULL,1,10,'integer',0,'nbMaxServices'),(11,'Max. nb of authorized devices','0','20',1,11,'integer',0,'nbMaxDevices'),(12,'Channels',NULL,NULL,1,1,'integer',0,'nbChannels'),(13,'Multipoint','0','1',0,3,'checkbox',0,'blMultipoint'),(14,'Number of extremities','0','999999999',0,4,'integer',0,'nbExtremities'),(15,'Business conference Group',NULL,NULL,0,2,'search_list:BusinessConferenceGroup',0,'idBusinessConferenceGroup'),(16,'TradExtra Datalink Group',NULL,NULL,0,1,'search_list:TradExtraDatalinkGroup',0,'idTradExtraDatalinkGroup'),(18,'Trader',NULL,NULL,0,1,'text',1,'lbTrader'),(19,'Acceptance contact',NULL,NULL,0,1,'special',1,'idAcceptContact'),(20,'Acceptance sent date',NULL,NULL,0,1,'datepicker',1,'dtAcceptSent'),(21,'Acceptance received date',NULL,NULL,0,1,'datepicker',1,'dtAcceptReceive'),(22,'Commercial route per extremity',NULL,NULL,0,1,'search_list:CommercialRoute',1,'idCommercialRoute'),(25,'Status of extremity',NULL,NULL,0,1,'search_list:StatusType',1,'idStatusType'),(26,'Customer order date',NULL,NULL,0,1,'datepicker',1,'dtCustomerOrder'),(27,'Requested delivery date',NULL,NULL,0,1,'datepicker',1,'dtDeliveryRequested'),(29,'Disaster recovery site',NULL,NULL,0,1,'text',1,'lbRecoverySite'),(30,'Pipe Id',NULL,NULL,0,1,'text',2,'cdPipeId'),(31,'Backbone programmed date',NULL,NULL,0,1,'datepicker',2,'dtBackboneProgram'),(32,'End to end test date',NULL,NULL,0,1,'datepicker',2,'dtEndToEnd'),(33,'Cusomer VLAN ref',NULL,NULL,0,1,'text',2,'cdCustomerVlan'),(34,'NAT','0','1',0,1,'checkbox',2,'blNat'),(35,'WRED','0','1',0,1,'checkbox',2,'blWred'),(38,'Carrier',NULL,NULL,0,1,'search_list:Provider',2,'idCarrierProvider'),(41,'Connection path',NULL,NULL,0,1,'port_mapper',2,'idConnectionPath'),(42,'Technical route',NULL,NULL,0,1,'search_list:Route',2,'idTechnicalRoute'),(43,'Technical bandwidth',NULL,NULL,0,1,'search_list:BandwidthAssignee',2,'idTechnicalBandwidth'),(44,'Netrecova ref',NULL,NULL,0,3,'search_list:Service:motherentity~idProduct:motherfield~=5',1,'idNetrecova'),(45,'Bandwidth',NULL,NULL,1,0,'search_list:BandwidthAssignee',1,'idBandwidth'),(46,'Membership ref',NULL,NULL,0,3,'search_list_membership:Service',0,'idMembership'),(47,'Bundle city ref',NULL,NULL,0,3,'search_list_connected:Service:7,8,9',0,'idBundle'),(48,'Bundle area ref',NULL,NULL,0,3,'search_list_connected:Service:8,9',0,'idBundle'),(49,'Bundle intercity ref',NULL,NULL,0,3,'search_list_connected:Service:9',0,'idBundle'),(50,'Flexible trading ref',NULL,NULL,0,3,'search_list:Service:motherentity~idProduct:motherfield~=38',0,'idFlexibleTrading');

--
-- Table structure for table `product_category`
--

CREATE TABLE `product_category` (
  `id_product_category` int(11) NOT NULL AUTO_INCREMENT,
  `nom` varchar(255) NOT NULL,
  PRIMARY KEY (`id_product_category`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `product_category`
--

INSERT INTO `product_category` VALUES (1,'Data'),(2,'Voice'),(3,'Other');

--
-- Table structure for table `product_commercials`
--

CREATE TABLE `product_commercials` (
  `id_product_commercials` int(11) NOT NULL AUTO_INCREMENT,
  `id_product_type` int(11) DEFAULT NULL,
  `lb_product_commercials` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id_product_commercials`),
  KEY `IDX_86398C0822F700FA` (`id_product_type`),
  CONSTRAINT `FK_86398C0822F700FA` FOREIGN KEY (`id_product_type`) REFERENCES `product_type` (`id_product_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `product_commercials`
--


--
-- Table structure for table `product_type`
--

CREATE TABLE `product_type` (
  `id_product_type` int(11) NOT NULL AUTO_INCREMENT,
  `cd_product_type` varchar(15) NOT NULL,
  `lb_product_type` text NOT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `lb_install_account` varchar(15) NOT NULL,
  `lb_monthly_account` varchar(15) NOT NULL,
  `id_product_category` int(11) DEFAULT NULL,
  `bl_legacy` tinyint(1) NOT NULL,
  `bl_provisioning` tinyint(1) NOT NULL,
  `bl_billable` tinyint(1) NOT NULL,
  `bl_deactivated` tinyint(1) NOT NULL,
  `lb_dependence_types` varchar(255) DEFAULT NULL,
  `bl_connected` tinyint(1) NOT NULL,
  `nb_extremities` int(11) DEFAULT NULL,
  `nb_max_extremities` int(11) NOT NULL,
  PRIMARY KEY (`id_product_type`),
  KEY `id_product_category` (`id_product_category`),
  CONSTRAINT `product_type_ibfk_1` FOREIGN KEY (`id_product_category`) REFERENCES `product_category` (`id_product_category`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `product_type`
--

INSERT INTO `product_type` VALUES (1,'TVC','Trade Voice City','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00001','GINA-A00002',2,0,1,1,1,'NVA:1',0,2,2),(2,'TVI','Trade Voice Intercity','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00003','GINA-A00004',2,0,1,1,1,'NVA:1',0,2,2),(3,'TD','Trade Data','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00005','GINA-A00006',1,0,1,1,1,'NVA:1',0,2,2),(4,'BCO','Business Conference','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00007','GINA-A00008',2,0,1,1,1,'NVA:1',0,2,10000),(5,'RCV','NetRecova','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00009','GINA-A00010',3,0,1,1,1,NULL,1,2,10000),(6,'MSP','TradExtra Membership','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00011','GINA-A00012',3,0,0,1,1,NULL,1,2,2),(7,'BDL','Bundle City','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00013','GINA-A00014',3,0,0,1,1,'TEM:1',1,1,2),(8,'BDL','Bundle Area','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00014','GINA-A00015',3,0,0,1,1,'TEM:1',1,1,2),(9,'BDL','Bundle Inter-Area','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00016','GINA-A00017',3,0,0,1,1,'TEM:1',1,1,2),(10,'TETC','TradExtra Talk City','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00018','GINA-A00019',2,0,1,0,1,'NVA:1 & (BUC:1 | BUA:1 | BUI:1)',0,2,2),(11,'TETA','TradExtra Talk Area','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00020','GINA-A00021',2,0,1,0,1,'NVA:1 & (BUA:1 | BUI:1)',0,2,2),(12,'TETIA','TradExtra Talk Inter-Area','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00022','GINA-A00023',2,0,1,0,1,'NVA:1 & BUI:1',0,2,2),(13,'TEP','TradExtra Plug','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00023','GINA-A00024',1,0,1,1,1,'TEM:1',0,2,2),(14,'TEOS','TradExtra One system','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00025','GINA-A00026',2,0,1,1,1,'TEM:1 & NVA:1',0,2,2),(15,'MET','Metrics','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00027','GINA-A00028',3,0,0,1,1,'TEM:1',0,2,2),(16,'RA','Remote Access','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00029','GINA-A00030',3,0,1,1,1,NULL,0,2,2),(17,'SCR','Live-Live Smart Call Routing','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00030','GINA-A00031',2,0,1,1,1,NULL,0,2,2),(18,'SCR','Follow-The-Sun Smart Call Routing','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00032','GINA-A00033',2,0,1,1,1,NULL,0,2,2),(19,'TEF','TradExtra Fix','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00033','GINA-A00034',1,0,1,1,1,'TEM:1 & MET:1',0,2,2),(20,'FTR','Flexible Trading','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00033','GINA-A00034',3,0,0,1,1,NULL,1,1,10000),(21,'FTU','Flexible Turrets','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00035','GINA-A00036',3,0,0,1,1,'FLT:1',0,1,2),(22,'FLCN','Flexible Connect','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00036','GINA-A00037',1,0,1,1,1,'FLT:1',0,2,2),(23,'FLRE','Flexible Retrieve','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00037','GINA-A00038',1,0,1,1,1,NULL,0,2,2),(24,'BRS30','BET Remote System (Gateway 30 channels)','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00040','GINA-A00041',2,1,1,1,1,NULL,0,2,2),(25,'BRS64','BET Remote System (Gateway 64)','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00042','GINA-A00043',2,1,1,1,1,NULL,0,2,2),(26,'BRT','BET Remote Turret (Etranet Remote Trading)','2013-12-09 00:00:00','2013-12-09 00:00:00',NULL,'GINA-A00044','GINA-A00045',2,1,1,1,1,NULL,0,2,2),(27,'PMP','TradExtra Datalink','2014-01-03 00:00:00','2014-01-03 00:00:00',NULL,'GINA-A00046','GINA-A00047',1,0,1,1,1,'TEM:1 & NVA:1',0,2,10000);

--
-- Table structure for table `product_type_product_caracs`
--

CREATE TABLE `product_type_product_caracs` (
  `id_product_type` int(11) NOT NULL,
  `id_product_caracs` int(11) NOT NULL,
  PRIMARY KEY (`id_product_type`,`id_product_caracs`),
  KEY `IDX_F9F1D0EA22F700FA` (`id_product_type`),
  KEY `IDX_F9F1D0EACB15AFEA` (`id_product_caracs`),
  CONSTRAINT `FK_F9F1D0EA22F700FA` FOREIGN KEY (`id_product_type`) REFERENCES `product_type` (`id_product_type`),
  CONSTRAINT `FK_F9F1D0EACB15AFEA` FOREIGN KEY (`id_product_caracs`) REFERENCES `product_caracs` (`id_product_caracs`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `product_type_product_caracs`
--

INSERT INTO `product_type_product_caracs` VALUES (1,1),(1,2),(1,3),(1,4),(1,18),(1,19),(1,20),(1,21),(1,30),(1,31),(1,32),(1,38),(1,41),(1,42),(1,44),(2,1),(2,2),(2,3),(2,4),(2,18),(2,19),(2,20),(2,21),(2,30),(2,31),(2,32),(2,38),(2,41),(2,42),(2,44),(3,4),(3,5),(3,6),(3,19),(3,20),(3,21),(3,30),(3,31),(3,32),(3,33),(3,34),(3,35),(3,38),(3,41),(3,42),(3,44),(4,2),(4,3),(4,13),(4,14),(4,15),(4,18),(4,19),(4,20),(4,21),(4,22),(4,25),(4,26),(4,27),(4,30),(4,31),(4,32),(4,38),(4,41),(4,42),(4,44),(5,7),(5,8),(5,9),(5,29),(5,30),(5,31),(5,32),(5,38),(5,41),(7,10),(7,46),(8,10),(8,44),(9,10),(9,46),(10,1),(10,2),(10,3),(10,18),(10,19),(10,20),(10,21),(10,30),(10,31),(10,32),(10,38),(10,41),(10,42),(10,44),(10,47),(11,1),(11,2),(11,3),(11,18),(11,19),(11,20),(11,21),(11,30),(11,31),(11,32),(11,38),(11,41),(11,42),(11,44),(11,48),(12,1),(12,2),(12,3),(12,18),(12,19),(12,20),(12,21),(12,42),(12,44),(12,49),(13,6),(13,30),(13,31),(13,32),(13,38),(13,41),(13,42),(13,46),(14,12),(14,19),(14,20),(14,21),(14,30),(14,31),(14,32),(14,38),(14,41),(14,42),(14,44),(14,46),(15,46),(16,30),(16,31),(16,38),(16,41),(17,1),(17,2),(17,3),(17,14),(17,18),(17,19),(17,20),(17,21),(17,22),(17,25),(17,26),(17,27),(17,30),(17,31),(17,32),(17,38),(17,41),(17,42),(18,1),(18,2),(18,3),(18,14),(18,30),(18,31),(18,32),(18,38),(18,41),(18,42),(19,30),(19,31),(19,32),(19,38),(19,41),(19,42),(19,44),(19,46),(21,11),(21,50),(22,30),(22,31),(22,32),(22,33),(22,38),(22,41),(22,42),(22,50),(23,30),(23,31),(23,32),(23,33),(23,38),(23,41),(23,42),(24,18),(24,19),(24,20),(24,21),(24,38),(24,41),(25,18),(25,19),(25,20),(25,21),(25,38),(25,41),(26,18),(26,19),(26,20),(26,21),(26,38),(26,41),(27,5),(27,6),(27,16),(27,19),(27,20),(27,21),(27,22),(27,25),(27,26),(27,27),(27,30),(27,31),(27,32),(27,33),(27,34),(27,35),(27,38),(27,41),(27,42),(27,43),(27,44),(27,45),(27,46);

--
-- Table structure for table `product_type_product_dependence`
--

CREATE TABLE `product_type_product_dependence` (
  `id_product_type` int(11) NOT NULL,
  `id_product_dependence` int(11) NOT NULL,
  PRIMARY KEY (`id_product_type`,`id_product_dependence`),
  KEY `IDX_8674ACCB22F700FA` (`id_product_type`),
  KEY `IDX_8674ACCB2B1CE4CE` (`id_product_dependence`),
  CONSTRAINT `FK_8674ACCB22F700FA` FOREIGN KEY (`id_product_type`) REFERENCES `product_type` (`id_product_type`),
  CONSTRAINT `FK_8674ACCB2B1CE4CE` FOREIGN KEY (`id_product_dependence`) REFERENCES `product_type` (`id_product_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `product_type_product_dependence`
--

INSERT INTO `product_type_product_dependence` VALUES (1,5),(2,5),(3,5),(4,5),(7,6),(8,6),(9,6),(10,5),(10,7),(10,8),(10,9),(11,5),(11,8),(11,9),(12,5),(12,9),(13,6),(14,5),(14,6),(15,6),(19,5),(19,6),(21,20),(22,20),(27,5),(27,6);

--
-- Table structure for table `product_type_transaction_type`
--

CREATE TABLE `product_type_transaction_type` (
  `id_product_type` int(11) NOT NULL,
  `id_transaction_type` int(11) NOT NULL,
  PRIMARY KEY (`id_product_type`,`id_transaction_type`),
  KEY `IDX_4DAD621022F700FA` (`id_product_type`),
  KEY `IDX_4DAD62108D173C59` (`id_transaction_type`),
  CONSTRAINT `FK_4DAD621022F700FA` FOREIGN KEY (`id_product_type`) REFERENCES `product_type` (`id_product_type`),
  CONSTRAINT `FK_4DAD62108D173C59` FOREIGN KEY (`id_transaction_type`) REFERENCES `TransactionType` (`id_transaction_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `product_type_transaction_type`
--

INSERT INTO `product_type_transaction_type` VALUES (1,9),(1,10),(1,17),(2,9),(2,10),(2,17),(3,9),(3,10),(3,11),(3,17);

--
-- Table structure for table `profile`
--

CREATE TABLE `profile` (
  `id_profile` int(11) NOT NULL AUTO_INCREMENT,
  `cd_profile` varchar(15) NOT NULL,
  `lb_profile` varchar(100) NOT NULL,
  `cm_profile` varchar(255) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_profile`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `profile`
--


--
-- Table structure for table `progression`
--

CREATE TABLE `progression` (
  `id_progression` int(11) NOT NULL AUTO_INCREMENT,
  `id_event` int(11) DEFAULT NULL,
  `id_status_type` int(11) DEFAULT NULL,
  `id_object_type` int(11) DEFAULT NULL,
  `id_object` int(11) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `bl_status_mail` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_progression`),
  KEY `id_event` (`id_event`),
  KEY `id_status_type` (`id_status_type`),
  KEY `id_object_type` (`id_object_type`),
  CONSTRAINT `FK_D5B250739D9A6CD` FOREIGN KEY (`id_object_type`) REFERENCES `object_type` (`id_object_type`),
  CONSTRAINT `FK_D5B25073ACCA374A` FOREIGN KEY (`id_status_type`) REFERENCES `status_type` (`id_status_type`),
  CONSTRAINT `FK_D5B25073D52B4B97` FOREIGN KEY (`id_event`) REFERENCES `event` (`id_event`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `progression`
--


--
-- Table structure for table `project`
--

CREATE TABLE `project` (
  `id_project` int(11) NOT NULL AUTO_INCREMENT,
  `id_customer` int(11) DEFAULT NULL,
  `cd_project` varchar(15) DEFAULT NULL,
  `descr` text,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  PRIMARY KEY (`id_project`),
  KEY `id_customer` (`id_customer`),
  CONSTRAINT `FK_2FB3D0EED1E2629C` FOREIGN KEY (`id_customer`) REFERENCES `customer` (`id_customer`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `project`
--

INSERT INTO `project` VALUES (2,3,'007','test','2013-07-09 00:00:00','2013-10-06 00:00:00'),(3,16,'A1 - Equities F','A1 - Equities France 120 persons','2014-03-01 00:00:00','2014-03-31 00:00:00'),(4,16,'A2 - Bonds Fran','A2 - Bonds France 59 people','2014-04-01 00:00:00','2014-04-27 00:00:00'),(5,19,'001-100 people ','001 - 100 people moving from St Denis to Montreuil','2014-04-21 00:00:00','2014-05-22 00:00:00'),(6,19,'002-200 people ','002-200 people moving from Montreuil to Gare de l\'est','2014-03-03 00:00:00','2014-06-28 00:00:00'),(7,23,'001 - BNP Panti','Trader Move step 1 - Floor 1 to 3 (about 300 people)','2014-03-01 00:00:00','2014-03-31 00:00:00'),(8,23,'002 - BNP Panti','Trader Move  step 2 - floor 4 to 6','2014-04-01 00:00:00','2014-04-30 00:00:00');

--
-- Table structure for table `protocol`
--

CREATE TABLE `protocol` (
  `id_protocol` int(11) NOT NULL AUTO_INCREMENT,
  `cd_protocol` varchar(15) DEFAULT NULL,
  `lb_protocol` varchar(45) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `dt_deactivated` datetime DEFAULT NULL,
  PRIMARY KEY (`id_protocol`)
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `protocol`
--

INSERT INTO `protocol` VALUES (1,'Pro12','Proctologue 12-6',1,NULL,'2013-07-02 14:17:22',NULL),(2,'TCP0','Protocole TCP 0',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(3,'UDP','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(4,'ProS1','Proctologue  18 - 7',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(5,'TCP12','Protocole TCP 12',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(6,'UDP-1','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(7,'ProS2','Proctologue  18 - 8',1,'2013-07-02 14:17:22','2014-07-02 14:17:22',NULL),(8,'TCP13','Protocole TCP 13',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(9,'UDP-2','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(10,'ProS3','Proctologue  18 - 9',1,'2013-07-02 14:17:22','2015-07-02 14:17:22',NULL),(11,'TCP14','Protocole TCP 14',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(12,'UDP-3','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(13,'ProS4','Proctologue  18 - 10',1,'2013-07-02 14:17:22','2016-07-02 14:17:22',NULL),(14,'TCP15','Protocole TCP 15',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(15,'UDP-4','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(16,'ProS5','Proctologue  18 - 11',1,'2013-07-02 14:17:22','2017-07-02 14:17:22',NULL),(17,'TCP16','Protocole TCP 16',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(18,'UDP-5','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(19,'ProS6','Proctologue  18 - 12',1,'2013-07-02 14:17:22','2018-07-02 14:17:22',NULL),(20,'TCP17','Protocole TCP 17',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(21,'UDP-6','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(22,'ProS7','Proctologue  18 - 13',1,'2013-07-02 14:17:22','2019-07-02 14:17:22',NULL),(23,'TCP18','Protocole TCP 18',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(24,'UDP-7','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(25,'ProS8','Proctologue  18 - 14',1,'2013-07-02 14:17:22','2020-07-02 14:17:22',NULL),(26,'TCP19','Protocole TCP 19',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(27,'UDP-8','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(28,'ProS9','Proctologue  18 - 15',1,'2013-07-02 14:17:22','2021-07-02 14:17:22',NULL),(29,'TCP20','Protocole TCP 20',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(30,'UDP-9','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(31,'ProS10','Proctologue  18 - 16',1,'2013-07-02 14:17:22','2022-07-02 14:17:22',NULL),(32,'TCP21','Protocole TCP 21',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(33,'UDP-10','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(34,'ProS11','Proctologue  18 - 17',1,'2013-07-02 14:17:22','2023-07-02 14:17:22',NULL),(35,'TCP22','Protocole TCP 22',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(36,'UDP-11','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(37,'ProS12','Proctologue  18 - 18',1,'2013-07-02 14:17:22','2024-07-02 14:17:22',NULL),(38,'TCP23','Protocole TCP 23',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(39,'UDP-12','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(40,'ProS13','Proctologue  18 - 19',1,'2013-07-02 14:17:22','2025-07-02 14:17:22',NULL),(41,'TCP24','Protocole TCP 24',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(42,'UDP-13','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(43,'ProS14','Proctologue  18 - 20',1,'2013-07-02 14:17:22','2026-07-02 14:17:22',NULL),(44,'TCP25','Protocole TCP 25',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(45,'UDP-14','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(46,'ProS15','Proctologue  18 - 21',1,'2013-07-02 14:17:22','2027-07-02 14:17:22',NULL),(47,'TCP26','Protocole TCP 26',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(48,'UDP-15','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(49,'ProS16','Proctologue  18 - 22',1,'2013-07-02 14:17:22','2028-07-02 14:17:22',NULL),(50,'TCP27','Protocole TCP 27',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(51,'UDP-16','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(52,'ProS17','Proctologue  18 - 23',1,'2013-07-02 14:17:22','2029-07-02 14:17:22',NULL),(53,'TCP28','Protocole TCP 28',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(54,'UDP-17','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(55,'ProS18','Proctologue  18 - 24',1,'2013-07-02 14:17:22','2030-07-02 14:17:22',NULL),(56,'TCP29','Protocole TCP 29',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(57,'UDP-18','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(58,'ProS19','Proctologue  18 - 25',1,'2013-07-02 14:17:22','2031-07-02 14:17:22',NULL),(59,'TCP30','Protocole TCP 30',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(60,'UDP-19','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(61,'ProS20','Proctologue  18 - 26',1,'2013-07-02 14:17:22','2032-07-02 14:17:22',NULL),(62,'TCP31','Protocole TCP 31',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(63,'UDP-20','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(64,'ProS21','Proctologue  18 - 27',1,'2013-07-02 14:17:22','2033-07-02 14:17:22',NULL),(65,'TCP32','Protocole TCP 32',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(66,'UDP-21','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(67,'ProS22','Proctologue  18 - 28',1,'2013-07-02 14:17:22','2034-07-02 14:17:22',NULL),(68,'TCP33','Protocole TCP 33',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(69,'UDP-22','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(70,'ProS23','Proctologue  28 - 29',1,'2013-07-02 14:17:22','2013-07-02 14:17:59',NULL),(71,'TCP34','Protocole TCP 34',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(72,'UDP-23','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(73,'ProS24','Proctologue  18 - 30',1,'2013-07-02 14:17:22','2036-07-02 14:17:22',NULL),(74,'TCP35','Protocole TCP 35',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(75,'UDP-24','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(76,'ProS25','Proctologue  18 - 31',1,'2013-07-02 14:17:22','2037-07-02 14:17:22',NULL),(77,'TCP36','Protocole TCP 36',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(78,'UDP-25','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(79,'ProS26','Proctologue  18 - 32',1,'2013-07-02 14:17:22','2038-07-02 14:17:22',NULL),(80,'TCP37','Protocole TCP 37',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(81,'UDP-26','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(82,'ProS27','Proctologue  18 - 33',1,'2013-07-02 14:17:22','2039-07-02 14:17:22',NULL),(83,'TCP38','Protocole TCP 38',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(84,'UDP-27','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(85,'ProS28','Proctologue  18 - 34',1,'2013-07-02 14:17:22','2040-07-02 14:17:22',NULL),(86,'TCP39','Protocole TCP 39',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(87,'UDP-28','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(88,'ProS29','Proctologue  18 - 35',1,'2013-07-02 14:17:22','2041-07-02 14:17:22',NULL),(89,'TCP40','Protocole TCP 40',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(90,'UDP-29','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(91,'ProS30','Proctologue  18 - 36',1,'2013-07-02 14:17:22','2042-07-02 14:17:22',NULL),(92,'TCP41','Protocole TCP 41',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(93,'UDP-30','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(94,'ProS31','Proctologue  18 - 37',1,'2013-07-02 14:17:22','2043-07-02 14:17:22',NULL),(95,'TCP42','Protocole TCP 42',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(96,'UDP-31','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(97,'ProS32','Proctologue  18 - 38',1,'2013-07-02 14:17:22','2044-07-02 14:17:22',NULL),(98,'TCP43','Protocole TCP 43',1,'2013-06-26 14:17:22','2013-06-26 14:17:22',NULL),(99,'UDP-32','Union des Droites Proletaires',1,'2013-07-02 14:17:22','2013-07-02 14:17:22',NULL),(100,'ProS33','Proctologue  18 - 39',1,'2013-07-02 14:17:22','2045-07-02 14:17:22',NULL);

--
-- Table structure for table `provider`
--

CREATE TABLE `provider` (
  `id_provider` int(11) NOT NULL AUTO_INCREMENT,
  `lb_provider` varchar(100) DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `id_company_type` int(11) DEFAULT NULL,
  `nb_contractual_period` int(11) DEFAULT NULL,
  `cd_provider_account` varchar(45) DEFAULT NULL,
  `nb_n_period` int(11) DEFAULT NULL,
  `cd_provider` varchar(10) NOT NULL,
  `id_currency` int(11) DEFAULT NULL,
  `dt_deactivated` datetime DEFAULT NULL,
  `carrier_name` varchar(255) DEFAULT NULL,
  `id_country_provider_group` int(11) DEFAULT NULL,
  `id_billing_frequency` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_provider`) USING BTREE,
  KEY `id_user_update_by` (`id_user_update_by`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_company_type` (`id_company_type`),
  KEY `id_currency` (`id_currency`),
  KEY `IDX_92C4739CA8BDF55D` (`id_country_provider_group`),
  KEY `IDX_92C4739C635BB25A` (`id_billing_frequency`),
  CONSTRAINT `FK_92C4739C398D64AA` FOREIGN KEY (`id_currency`) REFERENCES `currency` (`id_currency`),
  CONSTRAINT `FK_92C4739C536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_92C4739C635BB25A` FOREIGN KEY (`id_billing_frequency`) REFERENCES `billing_frequency` (`id_billing_frequency`),
  CONSTRAINT `FK_92C4739C68E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_92C4739CA8BDF55D` FOREIGN KEY (`id_country_provider_group`) REFERENCES `country_provider_group` (`id_country_provider_group`),
  CONSTRAINT `FK_92C4739CEC7238B5` FOREIGN KEY (`id_company_type`) REFERENCES `company_type` (`id_company_type`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `provider`
--

INSERT INTO `provider` VALUES (1,'fff','2013-09-25 00:00:00',2,'2013-05-27 00:00:00',2,1,NULL,1,12,'2154',12,'KH-J2365',21,'2013-05-08 00:00:00','dfgfd',1,1),(2,'656','2013-06-14 17:54:02',2,'2013-06-14 17:54:02',2,1,NULL,14,65,'65',65,'565',20,NULL,'65',1,1),(3,'45','2013-06-14 17:55:51',2,'2013-06-14 17:55:51',2,1,NULL,14,5,'45',5,'45',20,NULL,'5',1,1),(4,'45','2013-06-14 18:10:39',2,'2013-06-14 18:10:39',2,1,NULL,14,5,'45',5,'45',20,NULL,'5',1,1),(5,'88','2013-06-14 18:15:32',2,'2013-06-14 18:15:32',2,1,NULL,14,8,'88',8,'88',20,NULL,'8',1,1),(6,'12','2013-06-14 18:16:31',2,'2013-06-14 18:16:31',2,1,NULL,14,55,'12',55,'12',20,NULL,'55',1,1),(7,'PaatMass','2013-06-26 18:10:17',2,'2013-06-26 18:10:17',2,1,NULL,14,12,'0025',1,'PM01',20,'2013-06-14 00:00:00','MagOb',1,3),(8,'France','2013-07-02 11:05:40',2,'2013-07-02 11:05:40',2,0,NULL,15,1,'122',1,'Fr',21,NULL,'1',2,3),(9,'COLT SPAIN - Provider Desc','2014-01-17 00:00:00',2,'2014-01-17 00:00:00',2,1,'For Colt Spain please contact Central Help Desk in London',1,360,'6217845poy',90,'COLT-E',20,NULL,'COLT SPAIN',NULL,4),(10,'COLT ITALY - DESC','2014-01-17 16:19:07',2,'2014-01-17 16:19:07',2,1,'tzpotjpgjàa',1,360,'6325841liokju',30,'COLT-I',20,NULL,NULL,NULL,5),(11,'COLT Greece - Desc','2014-01-17 16:20:28',2,'2014-01-17 16:20:28',2,1,'fazton',1,360,'24788',90,'COLT - G',20,NULL,NULL,NULL,6),(12,'test','2014-01-18 16:58:11',2,'2014-01-18 16:58:11',2,1,NULL,16,NULL,'125',NULL,'cdtest',NULL,NULL,NULL,NULL,NULL),(13,'test2','2014-01-18 17:11:15',2,'2014-01-18 17:11:15',2,1,NULL,15,NULL,'1256',NULL,'cdtest',NULL,NULL,NULL,NULL,NULL),(14,'NATTERBOX','2014-01-20 00:00:00',2,'2014-01-20 00:00:00',2,1,NULL,18,360,'652788',30,'NATBOX',21,NULL,NULL,8,4),(15,'COLT Frankfurt','2014-01-31 00:00:00',2,'2014-01-31 00:00:00',2,1,NULL,1,360,'1234456',90,'COLT FFM',20,NULL,'COLT Germany',NULL,4),(16,'EQUINIX GERMANY','2014-02-03 00:00:00',2,'2014-02-03 00:00:00',2,1,NULL,19,720,'9543',30,'EQUINIX G',20,NULL,NULL,NULL,5),(17,'COLT UK*','2014-02-11 00:00:00',2,'2014-02-11 00:00:00',2,1,'Main offices on European Level',1,360,'87654',30,'COLT UK',20,NULL,'COLT UK Carrier name',NULL,6);

--
-- Table structure for table `provider_address`
--

CREATE TABLE `provider_address` (
  `id_provider_address` int(11) NOT NULL AUTO_INCREMENT,
  `id_provider` int(11) DEFAULT NULL,
  `id_address` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_provider_address`),
  KEY `id_provider` (`id_provider`),
  KEY `id_address` (`id_address`),
  CONSTRAINT `FK_FD16CD26C21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`),
  CONSTRAINT `FK_FD16CD26D3D3C6F1` FOREIGN KEY (`id_address`) REFERENCES `address` (`id_address`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `provider_address`
--


--
-- Table structure for table `provider_contact`
--

CREATE TABLE `provider_contact` (
  `id_provider_contact` int(11) NOT NULL AUTO_INCREMENT,
  `id_provider` int(11) DEFAULT NULL,
  `cd_provider_contact` varchar(15) DEFAULT NULL,
  `id_civility` int(11) DEFAULT NULL,
  `id_provider_address` int(11) DEFAULT NULL,
  `lb_lastname` varchar(100) DEFAULT NULL,
  `lb_firstname` varchar(100) DEFAULT NULL,
  `lb_job_title` varchar(100) DEFAULT NULL,
  `lb_phone` varchar(20) DEFAULT NULL,
  `lb_fax` varchar(20) DEFAULT NULL,
  `lb_mobile_phone` varchar(20) DEFAULT NULL,
  `lb_email` varchar(50) DEFAULT NULL,
  `cm_comments` varchar(255) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `id_contact_type` int(11) DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  PRIMARY KEY (`id_provider_contact`),
  KEY `t_provider_contact_id_provider` (`id_provider`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  KEY `id_provider` (`id_provider`),
  KEY `id_civility` (`id_civility`),
  KEY `id_provider_address` (`id_provider_address`),
  KEY `id_contact_type` (`id_contact_type`),
  CONSTRAINT `FK_BC3A449F1E9C98F7` FOREIGN KEY (`id_provider_address`) REFERENCES `provider_address` (`id_provider_address`),
  CONSTRAINT `FK_BC3A449F536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_BC3A449F6896AB0C` FOREIGN KEY (`id_civility`) REFERENCES `civility` (`id_civility`),
  CONSTRAINT `FK_BC3A449F68E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_BC3A449F87E0A0A4` FOREIGN KEY (`id_contact_type`) REFERENCES `contact_type` (`id_contact_type`),
  CONSTRAINT `FK_BC3A449FC21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `provider_contact`
--


--
-- Table structure for table `provider_pop`
--

CREATE TABLE `provider_pop` (
  `id_provider_pop` int(11) NOT NULL AUTO_INCREMENT,
  `id_pop` int(11) DEFAULT NULL,
  `id_provider` int(11) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_provider_pop`),
  KEY `id_pop` (`id_pop`),
  KEY `id_provider` (`id_provider`),
  CONSTRAINT `FK_440DC6DB87745F4C` FOREIGN KEY (`id_pop`) REFERENCES `pop` (`id_pop`),
  CONSTRAINT `FK_440DC6DBC21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `provider_pop`
--


--
-- Table structure for table `provider_worldwide_group`
--

CREATE TABLE `provider_worldwide_group` (
  `id_provider_worldwide_group` int(11) NOT NULL AUTO_INCREMENT,
  `cd_provider_worldwide_group` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `lb_provider_worldwide_group` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `comment` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id_provider_worldwide_group`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `provider_worldwide_group`
--

INSERT INTO `provider_worldwide_group` VALUES (1,'HK25','HongKong bureau 25',1,'2013-06-25 09:55:54','2013-06-26 18:11:26',NULL),(2,'HK12','HongKong bureau 12',1,'2013-06-25 09:56:35','2013-06-25 09:56:35',NULL),(3,'Au','Australian',1,'2013-06-26 18:11:50','2013-06-26 18:11:50',NULL),(4,'Mag','Magnatis univers',1,'2013-07-02 11:13:47','2013-07-02 11:13:47',NULL);

--
-- Table structure for table `rate`
--

CREATE TABLE `rate` (
  `id_rate` int(11) NOT NULL AUTO_INCREMENT,
  `lb_rate` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `nb_rate` int(11) NOT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_rate`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `rate`
--


--
-- Table structure for table `rate_percent_value_type`
--

CREATE TABLE `rate_percent_value_type` (
  `id_rate_percent_value_type` int(11) NOT NULL AUTO_INCREMENT,
  `cd_rate_percent_value_type` varchar(15) DEFAULT NULL,
  `lb_rate_percent_value_type` varchar(255) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_rate_percent_value_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `rate_percent_value_type`
--


--
-- Table structure for table `rebate_credit`
--

CREATE TABLE `rebate_credit` (
  `id_rebate_credit` int(11) NOT NULL AUTO_INCREMENT,
  `cd_rebate_credit` varchar(45) DEFAULT NULL,
  `lb_rebate_credit` varchar(255) DEFAULT NULL,
  `id_user` int(11) DEFAULT NULL,
  `mt_value` int(11) DEFAULT NULL,
  `id_rate_percent_value_type` int(11) DEFAULT NULL,
  `id_currency` int(11) DEFAULT NULL,
  `id_billing_period` int(11) DEFAULT NULL,
  `dt_creation` datetime DEFAULT NULL,
  `lb_filter` varchar(255) DEFAULT NULL,
  `bl_execute` tinyint(1) DEFAULT NULL,
  `bl_previous_invoice` tinyint(1) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `cm_comment` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id_rebate_credit`),
  KEY `id_user` (`id_user`),
  KEY `id_rate_percent_value_type` (`id_rate_percent_value_type`),
  KEY `id_currency` (`id_currency`),
  KEY `id_billing_period` (`id_billing_period`),
  CONSTRAINT `FK_1E6ABEE732EA2F22` FOREIGN KEY (`id_rate_percent_value_type`) REFERENCES `rate_percent_value_type` (`id_rate_percent_value_type`),
  CONSTRAINT `FK_1E6ABEE7398D64AA` FOREIGN KEY (`id_currency`) REFERENCES `currency` (`id_currency`),
  CONSTRAINT `FK_1E6ABEE76B3CA4B` FOREIGN KEY (`id_user`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_1E6ABEE7BD048098` FOREIGN KEY (`id_billing_period`) REFERENCES `billing_period` (`id_billing_period`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `rebate_credit`
--


--
-- Table structure for table `rebate_credit_service`
--

CREATE TABLE `rebate_credit_service` (
  `id_rebate_credit_service` int(11) NOT NULL AUTO_INCREMENT,
  `id_service` int(11) DEFAULT NULL,
  `id_rebate_credit` int(11) DEFAULT NULL,
  `id_billing_detail` int(11) DEFAULT NULL,
  `nb_mrc` decimal(15,4) DEFAULT NULL,
  PRIMARY KEY (`id_rebate_credit_service`),
  KEY `id_service` (`id_service`),
  KEY `id_rebate_credit` (`id_rebate_credit`),
  KEY `id_billing_detail` (`id_billing_detail`),
  CONSTRAINT `rebate_credit_service_ibfk_1` FOREIGN KEY (`id_service`) REFERENCES `service` (`id_service`) ON DELETE CASCADE ON UPDATE NO ACTION,
  CONSTRAINT `rebate_credit_service_ibfk_2` FOREIGN KEY (`id_rebate_credit`) REFERENCES `rebate_credit` (`id_rebate_credit`) ON DELETE CASCADE ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `rebate_credit_service`
--


--
-- Table structure for table `requirement`
--

CREATE TABLE `requirement` (
  `id_requirement` int(11) NOT NULL AUTO_INCREMENT,
  `cd_requirement` varchar(15) DEFAULT NULL,
  `lb_requirement` varchar(250) DEFAULT NULL,
  `id_requirement_type` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_requirement`),
  KEY `id_requirement_type` (`id_requirement_type`),
  CONSTRAINT `FK_DB3F5550BB4AFCC1` FOREIGN KEY (`id_requirement_type`) REFERENCES `requirement_type` (`id_requirement_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `requirement`
--


--
-- Table structure for table `requirement_type`
--

CREATE TABLE `requirement_type` (
  `id_requirement_type` int(15) NOT NULL AUTO_INCREMENT,
  `cd_requirement_type` varchar(15) NOT NULL,
  `lb_requirement_type` varchar(250) DEFAULT NULL,
  `nb_quantity` decimal(10,0) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_requirement_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `requirement_type`
--


--
-- Table structure for table `room`
--

CREATE TABLE `room` (
  `id_room` int(11) NOT NULL AUTO_INCREMENT,
  `cd_room` varchar(15) NOT NULL,
  `lb_room` varchar(100) DEFAULT NULL,
  `id_floor` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_room`),
  KEY `id_floor` (`id_floor`),
  CONSTRAINT `FK_729F519B50C0971E` FOREIGN KEY (`id_floor`) REFERENCES `floor` (`id_floor`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `room`
--


--
-- Table structure for table `route`
--

CREATE TABLE `route` (
  `id_route` int(11) NOT NULL AUTO_INCREMENT,
  `cd_route` varchar(15) DEFAULT NULL,
  `lb_route` varchar(255) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `id_commercial_route` int(11) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  PRIMARY KEY (`id_route`),
  KEY `IDX_2C42079536A5873` (`id_user_create_by`),
  KEY `IDX_2C4207968E26F41` (`id_user_update_by`),
  KEY `IDX_2C42079CE307789` (`id_commercial_route`),
  CONSTRAINT `FK_2C42079536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_2C4207968E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_2C42079CE307789` FOREIGN KEY (`id_commercial_route`) REFERENCES `commercial_route` (`id_commercial_route`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `route`
--


--
-- Table structure for table `route_commercial`
--

CREATE TABLE `route_commercial` (
  `id_route_commercial` int(11) NOT NULL AUTO_INCREMENT,
  `cd_route_commercial` varchar(50) DEFAULT NULL,
  `lb_route_commercial` varchar(255) DEFAULT NULL,
  `id_route_real` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_route_commercial`),
  KEY `id_route_real` (`id_route_real`),
  CONSTRAINT `FK_782439499E434807` FOREIGN KEY (`id_route_real`) REFERENCES `route_real` (`id_route_real`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `route_commercial`
--


--
-- Table structure for table `route_link`
--

CREATE TABLE `route_link` (
  `id_route_link` int(11) NOT NULL AUTO_INCREMENT,
  `id_route_physical` int(11) DEFAULT NULL,
  `id_link` int(11) DEFAULT NULL,
  `nb_position` decimal(10,0) NOT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_route_link`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  KEY `id_route_physical` (`id_route_physical`),
  KEY `id_link` (`id_link`),
  CONSTRAINT `FK_9BE998741463C525` FOREIGN KEY (`id_route_physical`) REFERENCES `route_physical` (`id_route_physical`),
  CONSTRAINT `FK_9BE99874536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_9BE9987468E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_9BE99874BD8C85F3` FOREIGN KEY (`id_link`) REFERENCES `link` (`id_link`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `route_link`
--


--
-- Table structure for table `route_physical`
--

CREATE TABLE `route_physical` (
  `id_route_physical` int(11) NOT NULL AUTO_INCREMENT,
  `cd_route_physical` varchar(15) DEFAULT NULL,
  `lb_route_physical` varchar(15) DEFAULT NULL,
  `id_ets_1` int(11) DEFAULT NULL,
  `id_ets_2` int(11) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_route_physical`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  KEY `id_ets_1` (`id_ets_1`),
  KEY `id_ets_2` (`id_ets_2`),
  CONSTRAINT `FK_290578233E6BBFC9` FOREIGN KEY (`id_ets_2`) REFERENCES `ts` (`id_ts`),
  CONSTRAINT `FK_29057823536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_2905782368E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_29057823A762EE73` FOREIGN KEY (`id_ets_1`) REFERENCES `ts` (`id_ts`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `route_physical`
--


--
-- Table structure for table `route_real`
--

CREATE TABLE `route_real` (
  `id_route_real` int(11) NOT NULL AUTO_INCREMENT,
  `cd_route_real` varchar(50) DEFAULT NULL,
  `lb_route_real` varchar(255) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_route_real`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `route_real`
--


--
-- Table structure for table `row`
--

CREATE TABLE `row` (
  `id_row` int(11) NOT NULL AUTO_INCREMENT,
  `id_room` int(11) DEFAULT NULL,
  `cd_row` varchar(15) DEFAULT NULL,
  `lb_row` varchar(100) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_row`),
  KEY `id_room` (`id_room`),
  CONSTRAINT `FK_8430F6DBF9BF4D99` FOREIGN KEY (`id_room`) REFERENCES `room` (`id_room`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `row`
--


--
-- Table structure for table `screen`
--

CREATE TABLE `screen` (
  `id_screen` int(11) NOT NULL AUTO_INCREMENT,
  `lb_screen` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `bl_public` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_screen`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `screen`
--


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

CREATE TABLE `service` (
  `id_service` int(11) NOT NULL AUTO_INCREMENT,
  `id_product` int(11) DEFAULT NULL,
  `id_branch` int(11) DEFAULT NULL,
  `id_commercial_route` int(11) DEFAULT NULL,
  `id_old_bandwidth` int(11) DEFAULT NULL,
  `id_bandwidth` int(11) DEFAULT NULL,
  `id_transaction_status` int(11) DEFAULT NULL,
  `id_transaction_type` int(11) DEFAULT NULL,
  `cd_service` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cd_customer_ref` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_order` datetime DEFAULT NULL,
  `dt_delivery_requested` datetime DEFAULT NULL,
  `dt_delivery` datetime DEFAULT NULL,
  `lb_comment` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_init_terminate` datetime DEFAULT NULL,
  `dt_init_updown` datetime DEFAULT NULL,
  `dt_requested_updwon` datetime DEFAULT NULL,
  `dt_real_updown` datetime DEFAULT NULL,
  `dt_request_terminate` datetime DEFAULT NULL,
  `dt_real_terminate` datetime DEFAULT NULL,
  `nb_operation` int(11) DEFAULT NULL,
  `id_transfer_extremity` int(11) DEFAULT NULL,
  `id_selected_extremity` int(11) DEFAULT NULL,
  `bl_validated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_service`),
  KEY `IDX_E19D9AD2DD7ADDD` (`id_product`),
  KEY `IDX_E19D9AD29DB1AEF2` (`id_branch`),
  KEY `IDX_E19D9AD2719540BB` (`id_old_bandwidth`),
  KEY `IDX_E19D9AD2A3C6948` (`id_bandwidth`),
  KEY `IDX_E19D9AD28E5FA5F3` (`id_transaction_status`),
  KEY `IDX_E19D9AD28D173C59` (`id_transaction_type`),
  KEY `IDX_E19D9AD2CE307789` (`id_commercial_route`),
  KEY `IDX_E19D9AD24233DB70` (`id_transfer_extremity`),
  KEY `IDX_E19D9AD2B7CAF1F0` (`id_selected_extremity`),
  CONSTRAINT `FK_E19D9AD24233DB70` FOREIGN KEY (`id_transfer_extremity`) REFERENCES `service_extremity` (`id_service_extremity`),
  CONSTRAINT `FK_E19D9AD2719540BB` FOREIGN KEY (`id_old_bandwidth`) REFERENCES `bandwidth` (`id_bandwidth`),
  CONSTRAINT `FK_E19D9AD28D173C59` FOREIGN KEY (`id_transaction_type`) REFERENCES `TransactionType` (`id_transaction_type`),
  CONSTRAINT `FK_E19D9AD28E5FA5F3` FOREIGN KEY (`id_transaction_status`) REFERENCES `TransactionStatus` (`id_transaction_status`),
  CONSTRAINT `FK_E19D9AD29DB1AEF2` FOREIGN KEY (`id_branch`) REFERENCES `branch` (`id_branch`),
  CONSTRAINT `FK_E19D9AD2A3C6948` FOREIGN KEY (`id_bandwidth`) REFERENCES `bandwidth_assignee` (`id_bandwidth_assignee`),
  CONSTRAINT `FK_E19D9AD2B7CAF1F0` FOREIGN KEY (`id_selected_extremity`) REFERENCES `service_extremity` (`id_service_extremity`),
  CONSTRAINT `FK_E19D9AD2CE307789` FOREIGN KEY (`id_commercial_route`) REFERENCES `commercial_route` (`id_commercial_route`),
  CONSTRAINT `FK_E19D9AD2DD7ADDD` FOREIGN KEY (`id_product`) REFERENCES `product` (`id_product`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `service`
--

INSERT INTO `service` VALUES (19,1,9,2,NULL,5,49,9,'S19',NULL,'2014-02-23 10:46:13','2014-02-13 00:00:00','2014-02-20 00:00:00',NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,12,1),(21,5,9,2,NULL,NULL,44,9,'S21',NULL,'2014-02-24 19:19:54',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL),(23,4,19,2,NULL,5,44,9,'S23',NULL,'2014-02-25 15:53:13','2014-02-13 00:00:00','2014-02-20 00:00:00',NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,15,0),(24,1,3,2,NULL,NULL,44,9,'S24',NULL,'2014-03-06 17:39:41',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,0),(25,1,9,2,NULL,NULL,44,9,'S25',NULL,'2014-03-06 17:44:38',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,0);

--
-- Table structure for table `service_caracs`
--

CREATE TABLE `service_caracs` (
  `id_service_caracs` int(11) NOT NULL AUTO_INCREMENT,
  `id_product_caracs` int(11) DEFAULT NULL,
  `id_service` int(11) DEFAULT NULL,
  `valeur` varchar(45) DEFAULT NULL,
  `id_service_extremity` int(11) DEFAULT NULL,
  `id_service_extremity_tech` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_service_caracs`),
  KEY `id_prod_caracs` (`id_product_caracs`),
  KEY `id_service` (`id_service`),
  KEY `IDX_AAC8567EC53102E9` (`id_service_extremity`),
  KEY `IDX_AAC8567EC7708180` (`id_service_extremity_tech`),
  CONSTRAINT `FK_AAC8567EC53102E9` FOREIGN KEY (`id_service_extremity`) REFERENCES `service_extremity` (`id_service_extremity`),
  CONSTRAINT `FK_AAC8567EC7708180` FOREIGN KEY (`id_service_extremity_tech`) REFERENCES `service_extremity_tech` (`id_service_extremity_tech`),
  CONSTRAINT `key_id_prod_caracs` FOREIGN KEY (`id_product_caracs`) REFERENCES `product_caracs` (`id_product_caracs`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `key_id_service` FOREIGN KEY (`id_service`) REFERENCES `service` (`id_service`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=228 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `service_caracs`
--

INSERT INTO `service_caracs` VALUES (1,2,NULL,NULL,NULL,NULL),(2,3,NULL,NULL,NULL,NULL),(3,13,NULL,NULL,NULL,NULL),(4,14,NULL,NULL,NULL,NULL),(5,15,NULL,NULL,NULL,NULL),(6,2,7,NULL,NULL,NULL),(7,3,7,NULL,NULL,NULL),(8,13,7,NULL,NULL,NULL),(9,14,7,NULL,NULL,NULL),(10,15,7,NULL,NULL,NULL),(11,15,8,NULL,NULL,NULL),(12,13,8,NULL,NULL,NULL),(13,2,8,NULL,NULL,NULL),(14,14,8,NULL,NULL,NULL),(15,3,8,NULL,NULL,NULL),(22,2,9,NULL,NULL,NULL),(23,1,9,NULL,NULL,NULL),(24,3,9,NULL,NULL,NULL),(29,2,12,NULL,NULL,NULL),(30,1,12,NULL,NULL,NULL),(31,3,12,NULL,NULL,NULL),(32,2,13,NULL,NULL,NULL),(33,1,13,NULL,NULL,NULL),(34,3,13,NULL,NULL,NULL),(35,6,14,NULL,NULL,NULL),(40,41,NULL,NULL,NULL,1),(42,42,NULL,NULL,NULL,1),(48,30,NULL,NULL,NULL,1),(49,31,NULL,NULL,NULL,1),(50,32,NULL,NULL,NULL,1),(56,19,NULL,NULL,1,NULL),(58,20,NULL,'2014-02-27 00:00:00',1,NULL),(60,21,NULL,NULL,1,NULL),(67,2,11,'',NULL,NULL),(68,3,11,'5',NULL,NULL),(69,18,NULL,'kljlkj',1,NULL),(70,1,11,'frame-to-frame',NULL,NULL),(71,4,11,'1',NULL,NULL),(72,44,NULL,NULL,1,NULL),(73,2,19,'',NULL,NULL),(74,1,19,'frame-to-frame',NULL,NULL),(75,3,19,NULL,NULL,NULL),(76,4,19,'',NULL,NULL),(79,41,NULL,NULL,NULL,10),(80,42,NULL,NULL,NULL,10),(81,18,NULL,'45454',10,NULL),(82,19,NULL,NULL,10,NULL),(83,20,NULL,NULL,10,NULL),(84,21,NULL,NULL,10,NULL),(85,30,NULL,NULL,NULL,10),(86,31,NULL,NULL,NULL,10),(87,32,NULL,NULL,NULL,10),(91,44,NULL,NULL,10,NULL),(92,18,NULL,NULL,11,NULL),(93,19,NULL,NULL,11,NULL),(94,20,NULL,NULL,11,NULL),(95,21,NULL,NULL,11,NULL),(96,44,NULL,NULL,11,NULL),(97,18,NULL,NULL,12,NULL),(98,19,NULL,NULL,12,NULL),(99,20,NULL,'2014-02-06 00:00:00',12,NULL),(100,21,NULL,'2014-02-21 00:00:00',12,NULL),(101,44,NULL,NULL,12,NULL),(106,41,NULL,NULL,NULL,11),(107,41,NULL,NULL,NULL,12),(108,42,NULL,NULL,NULL,11),(109,42,NULL,NULL,NULL,12),(110,30,NULL,NULL,NULL,11),(111,30,NULL,NULL,NULL,12),(112,31,NULL,NULL,NULL,11),(113,31,NULL,NULL,NULL,12),(114,32,NULL,NULL,NULL,11),(115,32,NULL,NULL,NULL,12),(122,18,NULL,NULL,13,NULL),(123,19,NULL,NULL,13,NULL),(124,20,NULL,NULL,13,NULL),(125,21,NULL,NULL,13,NULL),(126,44,NULL,NULL,13,NULL),(129,41,NULL,NULL,NULL,13),(130,42,NULL,NULL,NULL,13),(131,30,NULL,NULL,NULL,13),(132,31,NULL,NULL,NULL,13),(133,32,NULL,NULL,NULL,13),(138,29,NULL,NULL,14,NULL),(139,30,NULL,NULL,NULL,14),(140,31,NULL,NULL,NULL,14),(141,32,NULL,NULL,NULL,14),(147,41,NULL,NULL,NULL,14),(148,7,21,NULL,NULL,NULL),(149,8,21,NULL,NULL,NULL),(150,9,21,NULL,NULL,NULL),(151,2,23,'',NULL,NULL),(153,3,23,NULL,NULL,NULL),(155,18,NULL,NULL,16,NULL),(156,19,NULL,NULL,16,NULL),(157,20,NULL,NULL,16,NULL),(158,21,NULL,NULL,16,NULL),(159,44,NULL,NULL,16,NULL),(164,41,NULL,NULL,NULL,15),(165,41,NULL,NULL,NULL,16),(166,42,NULL,NULL,NULL,15),(167,42,NULL,NULL,NULL,16),(168,18,NULL,NULL,15,NULL),(169,19,NULL,NULL,15,NULL),(170,20,NULL,'2014-02-20 00:00:00',15,NULL),(171,21,NULL,'2014-02-13 00:00:00',15,NULL),(172,30,NULL,NULL,NULL,15),(173,30,NULL,NULL,NULL,16),(174,31,NULL,NULL,NULL,15),(175,31,NULL,NULL,NULL,16),(176,32,NULL,NULL,NULL,15),(177,32,NULL,NULL,NULL,16),(184,44,NULL,NULL,15,NULL),(185,2,24,NULL,NULL,NULL),(186,1,24,NULL,NULL,NULL),(187,3,24,NULL,NULL,NULL),(188,4,24,NULL,NULL,NULL),(189,2,25,NULL,NULL,NULL),(190,1,25,NULL,NULL,NULL),(191,3,25,NULL,NULL,NULL),(192,4,25,NULL,NULL,NULL),(193,22,NULL,NULL,15,NULL),(194,22,NULL,NULL,16,NULL),(195,25,NULL,NULL,15,NULL),(196,25,NULL,NULL,16,NULL),(197,26,NULL,NULL,15,NULL),(198,26,NULL,NULL,16,NULL),(199,27,NULL,NULL,15,NULL),(200,27,NULL,NULL,16,NULL),(203,38,NULL,NULL,NULL,15),(204,38,NULL,NULL,NULL,16),(205,15,23,NULL,NULL,NULL),(206,13,23,NULL,NULL,NULL),(207,14,23,NULL,NULL,NULL),(208,18,NULL,NULL,20,NULL),(209,19,NULL,NULL,20,NULL),(210,20,NULL,NULL,20,NULL),(211,21,NULL,NULL,20,NULL),(212,22,NULL,NULL,20,NULL),(213,25,NULL,NULL,20,NULL),(214,26,NULL,NULL,20,NULL),(215,27,NULL,NULL,20,NULL),(217,44,NULL,NULL,20,NULL),(218,18,NULL,NULL,21,NULL),(219,19,NULL,NULL,21,NULL),(220,20,NULL,NULL,21,NULL),(221,21,NULL,NULL,21,NULL),(222,22,NULL,NULL,21,NULL),(223,25,NULL,NULL,21,NULL),(224,26,NULL,NULL,21,NULL),(225,27,NULL,NULL,21,NULL),(227,44,NULL,NULL,21,NULL);

--
-- Table structure for table `service_connected_services`
--

CREATE TABLE `service_connected_services` (
  `id_connected_services` int(11) NOT NULL,
  `id_parent_services` int(11) NOT NULL,
  PRIMARY KEY (`id_connected_services`,`id_parent_services`),
  KEY `IDX_41136AA834E2E939` (`id_connected_services`),
  KEY `IDX_41136AA85A18E30` (`id_parent_services`),
  CONSTRAINT `FK_41136AA834E2E939` FOREIGN KEY (`id_connected_services`) REFERENCES `service` (`id_service`),
  CONSTRAINT `FK_41136AA85A18E30` FOREIGN KEY (`id_parent_services`) REFERENCES `service` (`id_service`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `service_connected_services`
--

INSERT INTO `service_connected_services` VALUES (19,21),(23,21);

--
-- Table structure for table `service_extremity`
--

CREATE TABLE `service_extremity` (
  `id_service_extremity` int(11) NOT NULL AUTO_INCREMENT,
  `id_provider` int(11) DEFAULT NULL,
  `id_customer` int(11) DEFAULT NULL,
  `id_service` int(11) DEFAULT NULL,
  `id_pop` int(11) DEFAULT NULL,
  `id_project` int(11) DEFAULT NULL,
  `cd_service_extremity` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cm_comment` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dt_init_terminate` datetime DEFAULT NULL,
  `dt_init_updown` datetime DEFAULT NULL,
  `dt_request_updown` datetime DEFAULT NULL,
  `dt_real_updown` datetime DEFAULT NULL,
  `dt_request_terminate` datetime DEFAULT NULL,
  `dt_real_terminate` datetime DEFAULT NULL,
  `dt_inservice` datetime DEFAULT NULL,
  `dt_init_transfer` datetime DEFAULT NULL,
  `dt_init_add_extremity` datetime DEFAULT NULL,
  `dt_request_transfer` datetime DEFAULT NULL,
  `dt_request_add_extremity` datetime DEFAULT NULL,
  `dt_complete_transfer` datetime DEFAULT NULL,
  `dt_add_extremity_inservice` datetime DEFAULT NULL,
  `dt_old_extremity_terminate` datetime DEFAULT NULL,
  `lb_onnet` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `id_address_pop` int(11) DEFAULT NULL,
  `id_contact_pop` int(11) DEFAULT NULL,
  `id_admin_contact` int(11) DEFAULT NULL,
  `id_delivery_address` int(11) DEFAULT NULL,
  `id_address_provider` int(11) DEFAULT NULL,
  `id_contact_provider` int(11) DEFAULT NULL,
  `id_service_extremity_owner` int(11) DEFAULT NULL,
  `id_old_extremity` int(11) DEFAULT NULL,
  `bl_old` tinyint(1) DEFAULT NULL,
  `bl_transferred` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_service_extremity`),
  UNIQUE KEY `UNIQ_34066AFE970BC560` (`id_old_extremity`),
  KEY `IDX_34066AFEC21F9F09` (`id_provider`),
  KEY `IDX_34066AFED1E2629C` (`id_customer`),
  KEY `IDX_34066AFE3F0033A2` (`id_service`),
  KEY `IDX_34066AFE87745F4C` (`id_pop`),
  KEY `IDX_34066AFEF12E799E` (`id_project`),
  KEY `IDX_34066AFE4A8C206E` (`id_address_pop`),
  KEY `IDX_34066AFEFCF81BD9` (`id_contact_pop`),
  KEY `IDX_34066AFE3676B5D4` (`id_admin_contact`),
  KEY `IDX_34066AFEE4DA858E` (`id_delivery_address`),
  KEY `IDX_34066AFE8FC1D8CC` (`id_address_provider`),
  KEY `IDX_34066AFEEB6BBADA` (`id_contact_provider`),
  KEY `IDX_34066AFED120D8A5` (`id_service_extremity_owner`),
  CONSTRAINT `FK_34066AFE3676B5D4` FOREIGN KEY (`id_admin_contact`) REFERENCES `contact` (`id_contact`),
  CONSTRAINT `FK_34066AFE3F0033A2` FOREIGN KEY (`id_service`) REFERENCES `service` (`id_service`),
  CONSTRAINT `FK_34066AFE4A8C206E` FOREIGN KEY (`id_address_pop`) REFERENCES `address_pop` (`id_address_pop`),
  CONSTRAINT `FK_34066AFE87745F4C` FOREIGN KEY (`id_pop`) REFERENCES `pop` (`id_pop`),
  CONSTRAINT `FK_34066AFE8FC1D8CC` FOREIGN KEY (`id_address_provider`) REFERENCES `address_provider` (`id_address_provider`),
  CONSTRAINT `FK_34066AFE970BC560` FOREIGN KEY (`id_old_extremity`) REFERENCES `service_extremity` (`id_service_extremity`),
  CONSTRAINT `FK_34066AFEC21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`),
  CONSTRAINT `FK_34066AFED120D8A5` FOREIGN KEY (`id_service_extremity_owner`) REFERENCES `local_loop_extremity_owner` (`id_local_loop_extremity_owner`),
  CONSTRAINT `FK_34066AFED1E2629C` FOREIGN KEY (`id_customer`) REFERENCES `customer` (`id_customer`),
  CONSTRAINT `FK_34066AFEE4DA858E` FOREIGN KEY (`id_delivery_address`) REFERENCES `address` (`id_address`),
  CONSTRAINT `FK_34066AFEEB6BBADA` FOREIGN KEY (`id_contact_provider`) REFERENCES `contact_provider` (`id_contact_provider`),
  CONSTRAINT `FK_34066AFEF12E799E` FOREIGN KEY (`id_project`) REFERENCES `project` (`id_project`),
  CONSTRAINT `FK_34066AFEFCF81BD9` FOREIGN KEY (`id_contact_pop`) REFERENCES `contact_pop` (`id_contact_pop`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `service_extremity`
--

INSERT INTO `service_extremity` VALUES (1,NULL,20,11,NULL,NULL,'S1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,15,37,NULL,NULL,1,NULL,NULL,NULL),(2,NULL,NULL,12,NULL,NULL,'S1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(3,NULL,NULL,13,NULL,NULL,'S1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(4,NULL,NULL,14,NULL,NULL,'S1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(5,NULL,23,11,NULL,NULL,'B2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,20,47,NULL,NULL,1,NULL,0,0),(6,NULL,23,14,NULL,NULL,'C3',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,20,47,NULL,NULL,1,NULL,0,0),(7,NULL,23,14,NULL,NULL,'D4',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,20,47,NULL,NULL,1,NULL,0,0),(8,NULL,23,14,NULL,NULL,'E5',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,20,47,NULL,NULL,1,NULL,0,0),(9,NULL,23,14,NULL,NULL,'F6',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,20,47,NULL,NULL,1,NULL,0,0),(10,NULL,23,19,NULL,8,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,20,47,NULL,NULL,1,NULL,0,NULL),(11,NULL,20,19,NULL,NULL,'B2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,15,41,NULL,NULL,1,NULL,0,0),(12,NULL,19,19,NULL,NULL,'C3',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,13,45,NULL,NULL,1,NULL,0,NULL),(13,NULL,19,19,NULL,NULL,'D4',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,13,45,NULL,NULL,1,NULL,0,NULL),(14,NULL,NULL,21,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0),(15,NULL,23,23,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,20,47,NULL,NULL,1,NULL,0,NULL),(16,NULL,23,23,NULL,NULL,'B2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,20,47,NULL,NULL,1,NULL,0,0),(17,NULL,NULL,24,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0),(18,NULL,NULL,25,NULL,NULL,'A1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0),(19,NULL,NULL,25,NULL,NULL,'B2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0),(20,NULL,23,23,NULL,NULL,'C2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,20,47,NULL,NULL,1,NULL,0,0),(21,NULL,23,23,NULL,NULL,'D3',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,20,47,NULL,NULL,1,NULL,0,0);

--
-- Table structure for table `service_extremity_option`
--

CREATE TABLE `service_extremity_option` (
  `id_service_extremity_option` int(11) NOT NULL AUTO_INCREMENT,
  `id_option_type` int(11) DEFAULT NULL,
  `id_service_extremity` int(11) DEFAULT NULL,
  `nb_quantity` int(11) DEFAULT NULL,
  `dt_create` datetime NOT NULL,
  `dt_update` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) NOT NULL,
  `bl_billable` tinyint(1) NOT NULL,
  `lb_option` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cd_option` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id_service_extremity_option`),
  KEY `IDX_CE9210DD7CC2303D` (`id_option_type`),
  KEY `IDX_CE9210DDC53102E9` (`id_service_extremity`),
  CONSTRAINT `FK_CE9210DD7CC2303D` FOREIGN KEY (`id_option_type`) REFERENCES `option_type` (`id_option_type`),
  CONSTRAINT `FK_CE9210DDC53102E9` FOREIGN KEY (`id_service_extremity`) REFERENCES `service_extremity` (`id_service_extremity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `service_extremity_option`
--


--
-- Table structure for table `service_extremity_tech`
--

CREATE TABLE `service_extremity_tech` (
  `id_service_extremity_tech` int(11) NOT NULL AUTO_INCREMENT,
  `id_technical_contact` int(11) DEFAULT NULL,
  `id_service` int(11) DEFAULT NULL,
  `id_service_extremity` int(11) DEFAULT NULL,
  `cm_comment` longtext COLLATE utf8_unicode_ci,
  `id_technical_contact_provider` int(11) DEFAULT NULL,
  `id_technical_contact_pop` int(11) DEFAULT NULL,
  `id_customer` int(11) DEFAULT NULL,
  `id_provider` int(11) DEFAULT NULL,
  `id_pop` int(11) DEFAULT NULL,
  `id_service_extremity_owner` int(11) DEFAULT NULL,
  `bl_old` tinyint(1) DEFAULT NULL,
  `id_old_service_extremity_tech` int(11) DEFAULT NULL,
  `bl_transferred` tinyint(1) DEFAULT NULL,
  `id_local_loop` int(11) DEFAULT NULL,
  `id_local_loop_extremity_tech` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_service_extremity_tech`),
  UNIQUE KEY `UNIQ_C7A13617C53102E9` (`id_service_extremity`),
  UNIQUE KEY `UNIQ_C7A136176125AF16` (`id_old_service_extremity_tech`),
  KEY `IDX_C7A13617D1192B9E` (`id_technical_contact`),
  KEY `IDX_C7A136173F0033A2` (`id_service`),
  KEY `IDX_C7A13617316BC7C7` (`id_technical_contact_provider`),
  KEY `IDX_C7A1361757E8DA20` (`id_technical_contact_pop`),
  KEY `IDX_C7A13617D1E2629C` (`id_customer`),
  KEY `IDX_C7A13617C21F9F09` (`id_provider`),
  KEY `IDX_C7A1361787745F4C` (`id_pop`),
  KEY `IDX_C7A13617D120D8A5` (`id_service_extremity_owner`),
  KEY `IDX_C7A1361738CAF7EA` (`id_local_loop`),
  KEY `IDX_C7A136174A449A67` (`id_local_loop_extremity_tech`),
  CONSTRAINT `FK_C7A13617316BC7C7` FOREIGN KEY (`id_technical_contact_provider`) REFERENCES `contact_provider` (`id_contact_provider`),
  CONSTRAINT `FK_C7A1361738CAF7EA` FOREIGN KEY (`id_local_loop`) REFERENCES `local_loop` (`id_local_loop`),
  CONSTRAINT `FK_C7A136173F0033A2` FOREIGN KEY (`id_service`) REFERENCES `service` (`id_service`),
  CONSTRAINT `FK_C7A136174A449A67` FOREIGN KEY (`id_local_loop_extremity_tech`) REFERENCES `local_loop_extremity_tech` (`id_local_loop_extremity_tech`),
  CONSTRAINT `FK_C7A1361757E8DA20` FOREIGN KEY (`id_technical_contact_pop`) REFERENCES `contact_pop` (`id_contact_pop`),
  CONSTRAINT `FK_C7A136176125AF16` FOREIGN KEY (`id_old_service_extremity_tech`) REFERENCES `service_extremity_tech` (`id_service_extremity_tech`),
  CONSTRAINT `FK_C7A1361787745F4C` FOREIGN KEY (`id_pop`) REFERENCES `pop` (`id_pop`),
  CONSTRAINT `FK_C7A13617C21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`),
  CONSTRAINT `FK_C7A13617C53102E9` FOREIGN KEY (`id_service_extremity`) REFERENCES `service_extremity` (`id_service_extremity`),
  CONSTRAINT `FK_C7A13617D1192B9E` FOREIGN KEY (`id_technical_contact`) REFERENCES `contact` (`id_contact`),
  CONSTRAINT `FK_C7A13617D120D8A5` FOREIGN KEY (`id_service_extremity_owner`) REFERENCES `local_loop_extremity_owner` (`id_local_loop_extremity_owner`),
  CONSTRAINT `FK_C7A13617D1E2629C` FOREIGN KEY (`id_customer`) REFERENCES `customer` (`id_customer`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `service_extremity_tech`
--

INSERT INTO `service_extremity_tech` VALUES (1,NULL,11,1,NULL,NULL,NULL,20,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL),(2,NULL,12,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(3,NULL,13,3,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(4,NULL,14,4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(5,NULL,11,5,NULL,NULL,NULL,23,NULL,NULL,1,0,NULL,0,NULL,NULL),(6,NULL,14,6,NULL,NULL,NULL,23,NULL,NULL,1,0,NULL,0,NULL,NULL),(7,NULL,14,7,NULL,NULL,NULL,23,NULL,NULL,1,0,NULL,0,NULL,NULL),(8,NULL,14,8,NULL,NULL,NULL,23,NULL,NULL,1,0,NULL,0,NULL,NULL),(9,NULL,14,9,NULL,NULL,NULL,23,NULL,NULL,1,0,NULL,0,NULL,NULL),(10,NULL,19,10,NULL,NULL,NULL,23,NULL,NULL,1,0,NULL,NULL,48,NULL),(11,NULL,19,11,NULL,NULL,NULL,20,NULL,NULL,1,0,NULL,NULL,48,NULL),(12,NULL,19,12,NULL,NULL,NULL,19,NULL,NULL,1,0,NULL,NULL,48,NULL),(13,NULL,19,13,NULL,NULL,NULL,19,NULL,NULL,1,0,NULL,NULL,49,NULL),(14,NULL,21,14,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL),(15,NULL,23,15,NULL,NULL,NULL,23,NULL,NULL,1,0,NULL,NULL,NULL,NULL),(16,NULL,23,16,NULL,NULL,NULL,23,NULL,NULL,1,0,NULL,NULL,NULL,NULL),(17,NULL,24,17,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL),(18,NULL,25,18,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL),(19,NULL,25,19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL),(20,NULL,23,20,NULL,NULL,NULL,23,NULL,NULL,1,0,NULL,0,NULL,NULL),(21,NULL,23,21,NULL,NULL,NULL,23,NULL,NULL,1,0,NULL,0,NULL,NULL);

--
-- Table structure for table `service_history`
--

CREATE TABLE `service_history` (
  `id_service_history` int(11) NOT NULL AUTO_INCREMENT,
  `id_history` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_service_history`),
  KEY `IDX_E83E22D7F927D93B` (`id_history`),
  CONSTRAINT `FK_E83E22D7F927D93B` FOREIGN KEY (`id_history`) REFERENCES `history` (`id_history`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `service_history`
--


--
-- Table structure for table `service_interface_settings`
--

CREATE TABLE `service_interface_settings` (
  `id_service_interface_settings` int(11) NOT NULL AUTO_INCREMENT,
  `id_transaction_type` int(11) DEFAULT NULL,
  `id_transaction_status` int(11) DEFAULT NULL,
  `id_product_type` int(11) DEFAULT NULL,
  `bl_hide` tinyint(1) NOT NULL,
  `bl_editable` tinyint(1) NOT NULL,
  `bl_old_extremity` tinyint(1) NOT NULL,
  `bl_mandatory` tinyint(1) NOT NULL,
  `lbEntity` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lbField` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bl_one` tinyint(1) NOT NULL,
  PRIMARY KEY (`id_service_interface_settings`),
  KEY `IDX_3BB19AA8D173C59` (`id_transaction_type`),
  KEY `IDX_3BB19AA8E5FA5F3` (`id_transaction_status`),
  KEY `IDX_3BB19AA22F700FA` (`id_product_type`),
  CONSTRAINT `FK_3BB19AA22F700FA` FOREIGN KEY (`id_product_type`) REFERENCES `product_type` (`id_product_type`),
  CONSTRAINT `FK_3BB19AA8D173C59` FOREIGN KEY (`id_transaction_type`) REFERENCES `TransactionType` (`id_transaction_type`),
  CONSTRAINT `FK_3BB19AA8E5FA5F3` FOREIGN KEY (`id_transaction_status`) REFERENCES `TransactionStatus` (`id_transaction_status`)
) ENGINE=InnoDB AUTO_INCREMENT=372 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `service_interface_settings`
--

INSERT INTO `service_interface_settings` VALUES (1,NULL,NULL,NULL,1,0,0,0,'Service','dtOrder',0),(2,NULL,NULL,NULL,1,0,0,0,'Service','dtDeliveryRequested',0),(4,NULL,NULL,NULL,1,0,0,0,'Service','dtInitTerminate',0),(5,NULL,NULL,NULL,1,0,0,0,'Service','dtInitUpdown',0),(6,NULL,NULL,NULL,1,0,0,0,'Service','dtRequestedUpdown',0),(7,NULL,NULL,NULL,1,0,0,0,'Service','dtRealUpdown',0),(8,NULL,NULL,NULL,1,0,0,0,'Service','dtRequestTerminate',0),(9,NULL,NULL,NULL,1,0,0,0,'Service','dtRealTerminate',0),(10,NULL,NULL,NULL,1,0,0,0,'ServiceExtremity','dtInitTerminate',0),(11,NULL,NULL,NULL,1,0,0,0,'ServiceExtremity','dtInitUpdown',0),(12,NULL,NULL,NULL,1,0,0,0,'ServiceExtremity','dtRequestUpdown',0),(13,NULL,NULL,NULL,1,0,0,0,'ServiceExtremity','dtRealUpdown',0),(14,NULL,NULL,NULL,1,0,0,0,'ServiceExtremity','dtRequestTerminate',0),(15,NULL,NULL,NULL,1,0,0,0,'ServiceExtremity','dtRealTerminate',0),(16,NULL,NULL,NULL,0,0,0,0,'ServiceExtremity','dtInservice',0),(17,NULL,NULL,NULL,1,0,0,0,'ServiceExtremity','dtInitTransfer',0),(18,NULL,NULL,NULL,1,0,0,0,'ServiceExtremity','dtInitAddExtremity',0),(19,NULL,NULL,NULL,1,0,0,0,'ServiceExtremity','dtRequestTransfer',0),(20,NULL,NULL,NULL,1,0,0,0,'ServiceExtremity','dtRequestAddExtremity',0),(23,NULL,NULL,NULL,1,0,0,0,'ServiceExtremity','dtOldExtremityTerminate',0),(185,NULL,NULL,NULL,1,0,0,0,'ServiceExtremity','dtOrder',0),(186,NULL,NULL,NULL,1,0,0,0,'ServiceExtremity','dtDeliveryRequested',0),(187,NULL,NULL,NULL,1,0,0,0,'Service','dtDelivery',0),(206,NULL,NULL,NULL,1,0,0,0,'ServiceExtremity','dtAddExtremityInservice',0),(208,9,45,NULL,0,1,0,1,'Service','idProduct',0),(209,9,45,NULL,0,1,0,1,'Service','idBandwidth',0),(210,9,45,NULL,0,1,0,1,'Service','idBranch',0),(211,9,45,NULL,0,1,0,1,'Service','idCommercialRoute',0),(212,9,45,NULL,0,1,0,1,'Service','dtOrder',0),(213,9,45,NULL,0,1,0,1,'Service','dtDeliveryRequested',0),(217,9,45,NULL,0,1,0,1,'BillingService','idCustomer',0),(218,9,45,NULL,0,1,0,1,'BillingService','idAddress',0),(219,9,45,NULL,0,1,0,1,'BillingService','idContact',0),(220,9,45,NULL,0,1,0,1,'BillingService','idBranch',0),(221,9,45,NULL,0,1,0,1,'BillingService','idCustomerManager',0),(222,9,45,NULL,0,1,0,1,'BillingService','nbNPeriod',0),(223,9,45,NULL,0,1,0,1,'BillingService','idBillingFrequency',0),(224,9,45,NULL,0,1,0,1,'BillingService','idBillingServiceLine',0),(225,9,45,NULL,0,1,0,1,'ServiceExtremity','lbTrader',0),(230,9,45,NULL,0,1,0,1,'Service','lbConnection',0),(242,9,53,NULL,0,1,0,1,'ServiceExtremityTech','dtEndToEnd ',0),(247,10,56,NULL,0,1,0,1,'ServiceExtremity','lbTrader',0),(251,10,56,NULL,0,1,1,1,'ServiceExtremity','dtInitTransfer',0),(252,10,56,NULL,0,1,1,1,'ServiceExtremity','dtRequestTransfer',0),(257,10,60,NULL,0,1,0,1,'ServiceExtremityTech','idLocalLoop',0),(260,10,61,NULL,0,1,0,1,'ServiceExtremityTech','cdPipeId',0),(261,10,61,NULL,0,1,0,1,'ServiceExtremityTech','dtBackboneProgram ',0),(265,17,106,NULL,0,1,0,1,'Service','dtInitTerminate',0),(266,17,106,NULL,0,1,0,1,'Service','dtRequestTerminate',0),(267,9,45,NULL,0,1,0,1,'ServiceExtremity','idAcceptContact',0),(268,9,45,NULL,0,1,0,1,'Service','blClass',0),(269,10,56,NULL,0,1,0,1,'ServiceExtremity','idAcceptContact',0),(270,11,67,NULL,0,1,0,1,'Service','idBandwidth',0),(271,11,67,NULL,0,1,0,1,'Service','dtInitUpdown',0),(272,11,67,NULL,0,1,0,1,'Service','dtRequestedUpdown',0),(273,10,57,NULL,0,1,0,1,'ServiceExtremity','dtAcceptSent',1),(274,9,46,NULL,0,1,0,1,'ServiceExtremity','dtAcceptSent',1),(275,11,68,NULL,0,1,0,1,'ServiceExtremity','dtAcceptSent',1),(276,10,58,NULL,0,1,0,1,'ServiceExtremity','dtAcceptReceive',1),(277,9,48,NULL,0,1,0,1,'ServiceExtremity','dtAcceptReceive',1),(278,11,69,NULL,0,1,0,1,'ServiceExtremity','dtAcceptReceive',1),(280,9,49,NULL,0,1,0,1,'ServiceExtremityTech','idLocalLoop',0),(281,9,50,NULL,0,1,0,1,'ServiceExtremityTech','cdPipeId',0),(282,9,50,NULL,0,1,0,1,'ServiceExtremityTech','dtBackboneProgram ',0),(285,11,72,NULL,0,1,0,1,'ServiceExtremityTech','cdPipeId',0),(286,11,72,NULL,0,1,0,1,'ServiceExtremityTech','dtBackboneProgram ',0),(287,10,64,NULL,0,1,0,1,'ServiceExtremityTech','dtEndToEnd ',0),(288,11,74,NULL,0,1,0,1,'ServiceExtremityTech','dtEndToEnd ',0),(290,11,71,NULL,0,1,0,1,'ServiceExtremityTech','idLocalLoop',0),(291,NULL,44,NULL,1,0,0,0,'ServiceExtremity','dtAcceptSent',0),(294,NULL,45,NULL,1,0,0,0,'ServiceExtremity','dtAcceptSent',0),(295,NULL,55,NULL,1,0,0,0,'ServiceExtremity','dtAcceptSent',0),(296,NULL,56,NULL,1,0,0,0,'ServiceExtremity','dtAcceptSent',0),(297,NULL,NULL,NULL,0,0,0,0,'ServiceExtremity','dtAcceptSent',0),(300,NULL,44,NULL,1,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(301,NULL,45,NULL,1,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(302,NULL,47,NULL,1,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(303,NULL,55,NULL,1,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(304,NULL,56,NULL,1,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(305,NULL,57,NULL,1,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(306,NULL,NULL,NULL,0,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(307,9,49,NULL,0,1,0,1,'ServiceExtremityTech','idLocalLoopExtremityTech',0),(309,10,60,NULL,0,1,0,1,'ServiceExtremityTech','idLocalLoopExtremityTech',0),(313,11,71,NULL,0,1,0,1,'ServiceExtremityTech','idLocalLoopExtremityTech',0),(314,NULL,66,NULL,1,0,0,0,'ServiceExtremity','dtAcceptSent',0),(315,NULL,66,NULL,1,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(316,NULL,66,NULL,1,0,0,0,'ServiceExtremity','dtAcceptSent',0),(317,12,78,NULL,1,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(318,12,77,NULL,1,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(319,12,76,NULL,1,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(320,NULL,68,NULL,1,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(321,NULL,67,NULL,1,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(322,NULL,66,NULL,1,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(323,12,77,NULL,1,0,0,0,'ServiceExtremity','dtAcceptSent',0),(324,12,76,NULL,1,0,0,0,'ServiceExtremity','dtAcceptSent',0),(325,NULL,67,NULL,1,0,0,0,'ServiceExtremity','dtAcceptSent',0),(326,13,86,NULL,1,0,0,0,'ServiceExtremity','dtAcceptSent',0),(327,13,88,NULL,1,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(328,13,87,NULL,1,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(329,13,86,NULL,1,0,0,0,'ServiceExtremity','dtAcceptReceive',0),(330,13,87,NULL,1,0,0,0,'ServiceExtremity','dtAcceptSent',0),(331,12,81,NULL,0,1,0,1,'ServiceExtremityTech','idLocalLoop',0),(332,12,81,NULL,0,1,0,1,'ServiceExtremityTech','idLocalLoopExtremityTech',0),(333,12,82,NULL,0,1,0,1,'ServiceExtremityTech','dtBackboneProgram ',0),(334,12,82,NULL,0,1,0,1,'ServiceExtremityTech','cdPipeId',0),(335,13,91,NULL,0,1,0,1,'ServiceExtremityTech','idLocalLoop',0),(336,13,91,NULL,0,1,0,1,'ServiceExtremityTech','idLocalLoopExtremityTech',0),(337,13,92,NULL,0,1,0,1,'ServiceExtremityTech','dtBackboneProgram ',0),(338,13,92,NULL,0,1,0,1,'ServiceExtremityTech','cdPipeId',0),(339,10,62,NULL,0,1,0,1,'ServiceExtremityTech','cdPipeId',0),(340,9,51,NULL,0,1,0,1,'ServiceExtremityTech','cdPipeId',0),(341,11,73,NULL,0,1,0,1,'ServiceExtremityTech','cdPipeId',0),(342,12,83,NULL,0,1,0,1,'ServiceExtremityTech','cdPipeId',0),(343,13,94,NULL,0,1,0,1,'ServiceExtremityTech','cdPipeId',0),(344,10,62,NULL,0,1,0,1,'ServiceExtremityTech','dtBackboneProgram',0),(345,9,51,NULL,0,1,0,1,'ServiceExtremityTech','dtBackboneProgram',0),(346,11,73,NULL,0,1,0,1,'ServiceExtremityTech','dtBackboneProgram',0),(347,12,83,NULL,0,1,0,1,'ServiceExtremityTech','dtBackboneProgram',0),(348,13,94,NULL,0,1,0,1,'ServiceExtremityTech','dtBackboneProgram',0),(349,13,87,NULL,0,1,0,1,'ServiceExtremity','idCommercialRoute',0),(350,13,87,NULL,0,1,0,1,'ServiceExtremity','dtInitAddExtremity',0),(351,13,87,NULL,0,1,0,1,'ServiceExtremity','dtRequestAddExtremity',0),(352,13,87,NULL,0,1,0,1,'ServiceExtremity','idAcceptContact',0),(353,12,77,NULL,0,1,0,1,'ServiceExtremity','idBandwidth',0),(354,12,77,NULL,0,1,0,1,'ServiceExtremity','dtInitUpdown',0),(355,12,77,NULL,0,1,0,1,'ServiceExtremity','dtRequestedUpdown',0),(356,9,45,NULL,0,1,0,1,'Service','lbLayer',0),(357,9,45,5,0,1,0,1,'Service','lbBackupSite',0),(358,9,45,5,0,1,0,1,'Service','lbBackupDelay',0),(359,9,45,5,0,1,0,1,'Service','lbRoutingPlan',0),(360,9,45,5,0,1,0,1,'ServiceExtremity','lbRecoverySite',0),(362,9,45,10,0,1,0,1,'Service','idBundle',0),(363,9,45,11,0,1,0,1,'Service','idBundle',0),(364,9,45,12,0,1,0,1,'Service','idBundle',0),(365,9,45,14,0,1,0,1,'Service','idMembership',0),(366,9,45,21,0,1,0,1,'Service','idFlexibleTrading',0),(367,9,45,22,0,1,0,1,'Service','idFlexibleTrading',0),(368,NULL,NULL,NULL,0,0,0,0,'ServiceExtremity','dtCompleteTransfer',0),(370,16,97,NULL,0,1,0,1,'ServiceExtremity','dtRequestTerminate',0),(371,16,97,NULL,0,1,0,1,'ServiceExtremity','dtInitTerminate',0);

--
-- Table structure for table `service_notes`
--

CREATE TABLE `service_notes` (
  `id_service_notes` int(11) NOT NULL AUTO_INCREMENT,
  `id_user` int(11) DEFAULT NULL,
  `note` longtext COLLATE utf8_unicode_ci,
  `dt_note` datetime DEFAULT NULL,
  PRIMARY KEY (`id_service_notes`),
  KEY `IDX_A8694B6B6B3CA4B` (`id_user`),
  CONSTRAINT `FK_A8694B6B6B3CA4B` FOREIGN KEY (`id_user`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `service_notes`
--


--
-- Table structure for table `service_option`
--

CREATE TABLE `service_option` (
  `id_service_option` int(11) NOT NULL AUTO_INCREMENT,
  `id_option_type` int(11) DEFAULT NULL,
  `id_service` int(11) DEFAULT NULL,
  `cd_option` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_option` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nb_quantity` int(11) NOT NULL,
  `dt_create` datetime NOT NULL,
  `dt_update` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) NOT NULL,
  `bl_billable` tinyint(1) NOT NULL,
  PRIMARY KEY (`id_service_option`),
  KEY `IDX_644105867CC2303D` (`id_option_type`),
  KEY `IDX_644105863F0033A2` (`id_service`),
  CONSTRAINT `FK_644105863F0033A2` FOREIGN KEY (`id_service`) REFERENCES `service` (`id_service`),
  CONSTRAINT `FK_644105867CC2303D` FOREIGN KEY (`id_option_type`) REFERENCES `option_type` (`id_option_type`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `service_option`
--

INSERT INTO `service_option` VALUES (1,1,11,'4899',NULL,3,'2014-01-24 23:11:56','2014-01-24 23:11:56',1,1);

--
-- Table structure for table `service_type`
--

CREATE TABLE `service_type` (
  `id_service_type` int(11) NOT NULL AUTO_INCREMENT,
  `cd_service_type` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `lb_service_type` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `cd_nrc_account` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cd_mrc_account` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cd_type_account` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id_service_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `service_type`
--


--
-- Table structure for table `service_workflow_screen`
--

CREATE TABLE `service_workflow_screen` (
  `id_service_workflow_screen` int(11) NOT NULL AUTO_INCREMENT,
  `id_product_type` int(11) DEFAULT NULL,
  `bl_service_ccial` tinyint(1) NOT NULL,
  `bl_extremity_ccial` tinyint(1) NOT NULL,
  `bl_device_ccial` tinyint(1) NOT NULL,
  `bl_billing` tinyint(1) NOT NULL,
  `bl_technical` tinyint(1) NOT NULL,
  `bl_connected_services` tinyint(1) NOT NULL,
  PRIMARY KEY (`id_service_workflow_screen`),
  KEY `IDX_DC48AB1722F700FA` (`id_product_type`),
  CONSTRAINT `FK_DC48AB1722F700FA` FOREIGN KEY (`id_product_type`) REFERENCES `product_type` (`id_product_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `service_workflow_screen`
--


--
-- Table structure for table `sfp_module_type`
--

CREATE TABLE `sfp_module_type` (
  `id_sfp_module_type` int(11) NOT NULL AUTO_INCREMENT,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `cd_sfp_module_type` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_sfp_module_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `dt_deactivated` datetime DEFAULT NULL,
  PRIMARY KEY (`id_sfp_module_type`),
  KEY `IDX_1D936D9D536A5873` (`id_user_create_by`),
  KEY `IDX_1D936D9D68E26F41` (`id_user_update_by`),
  CONSTRAINT `FK_1D936D9D536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_1D936D9D68E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sfp_module_type`
--

INSERT INTO `sfp_module_type` VALUES (1,2,2,'AKaSFP','5454',1,'2013-06-13 00:00:00','2013-06-26 00:00:00',NULL),(2,2,2,'ABaSFP','456 ABa',1,'2013-06-26 14:33:02','2013-07-02 14:33:02',NULL),(3,2,2,'ADaD','1973 AdnD',1,'2013-07-02 14:33:02','2013-07-02 14:33:02',NULL),(4,2,2,'ABaSFB','456ABa',1,'2013-06-26 14:33:02','2013-07-02 14:33:02',NULL),(5,2,2,'DaD','2003AdnD',1,'2013-07-02 14:33:02','2013-07-02 14:33:02',NULL);

--
-- Table structure for table `shelf`
--

CREATE TABLE `shelf` (
  `id_shelf` int(11) NOT NULL AUTO_INCREMENT,
  `id_shelf_type` int(11) DEFAULT NULL,
  `id_cabinet` int(11) DEFAULT NULL,
  `cd_shelf` varchar(15) DEFAULT NULL,
  `lb_shelf` varchar(255) DEFAULT NULL,
  `cm_shelf` varchar(255) DEFAULT NULL,
  `cd_serial_number` varchar(45) DEFAULT NULL,
  `nb_position` decimal(10,0) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `id_user_create` int(11) DEFAULT NULL,
  `id_equipment` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_shelf`),
  KEY `id_cabinet` (`id_cabinet`),
  KEY `id_shelf_type` (`id_shelf_type`),
  KEY `id_user_create` (`id_user_create`),
  KEY `id_equipment` (`id_equipment`),
  CONSTRAINT `FK_A5475BE3530D69A4` FOREIGN KEY (`id_equipment`) REFERENCES `equipment` (`id_equipment`),
  CONSTRAINT `FK_A5475BE39270ACC0` FOREIGN KEY (`id_cabinet`) REFERENCES `cabinet` (`id_cabinet`),
  CONSTRAINT `FK_A5475BE3A1AC41A0` FOREIGN KEY (`id_shelf_type`) REFERENCES `shelf_type` (`id_shelf_type`),
  CONSTRAINT `FK_A5475BE3F2963631` FOREIGN KEY (`id_user_create`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `shelf`
--


--
-- Table structure for table `shelf_template`
--

CREATE TABLE `shelf_template` (
  `id_shelf` int(11) NOT NULL,
  `id_shelf_type` int(11) DEFAULT NULL,
  `id_equipment` int(11) DEFAULT NULL,
  `cd_shelf` varchar(15) DEFAULT NULL,
  `lb_shelf` varchar(255) DEFAULT NULL,
  `cm_shelf` varchar(255) DEFAULT NULL,
  `cd_serial_number` varchar(45) DEFAULT NULL,
  `nb_position` decimal(10,0) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `id_user_create` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_shelf`),
  KEY `id_shelf_type` (`id_shelf_type`),
  KEY `id_cabinet` (`id_equipment`),
  KEY `id_shelf` (`id_shelf`),
  KEY `id_equipment` (`id_equipment`),
  KEY `id_user_create` (`id_user_create`),
  CONSTRAINT `FK_7A2AC3F74BC21AD3` FOREIGN KEY (`id_shelf`) REFERENCES `shelf` (`id_shelf`),
  CONSTRAINT `FK_7A2AC3F7530D69A4` FOREIGN KEY (`id_equipment`) REFERENCES `equipment` (`id_equipment`),
  CONSTRAINT `FK_7A2AC3F7A1AC41A0` FOREIGN KEY (`id_shelf_type`) REFERENCES `shelf_type` (`id_shelf_type`),
  CONSTRAINT `FK_7A2AC3F7F2963631` FOREIGN KEY (`id_user_create`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `shelf_template`
--


--
-- Table structure for table `shelf_type`
--

CREATE TABLE `shelf_type` (
  `id_shelf_type` int(11) NOT NULL AUTO_INCREMENT,
  `cd_shelf_type` varchar(45) DEFAULT NULL,
  `lb_shelf_type` varchar(255) DEFAULT NULL,
  `cm_shelf_type` varchar(255) DEFAULT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_shelf_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `shelf_type`
--


--
-- Table structure for table `signalling`
--

CREATE TABLE `signalling` (
  `id_signalling` int(11) NOT NULL AUTO_INCREMENT,
  `cd_signalling` varchar(15) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `lb_signalling` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_signalling`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `signalling`
--


--
-- Table structure for table `situation`
--

CREATE TABLE `situation` (
  `id_situation` int(11) NOT NULL AUTO_INCREMENT,
  `cd_situation` varchar(15) NOT NULL,
  `lb_situation` varchar(255) NOT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_situation`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `situation`
--


--
-- Table structure for table `sla`
--

CREATE TABLE `sla` (
  `id_sla` int(11) NOT NULL AUTO_INCREMENT,
  `cd_sla` varchar(15) DEFAULT NULL,
  `lb_sla` varchar(250) DEFAULT NULL,
  `id_sla_type` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_sla`),
  KEY `id_sla_type` (`id_sla_type`),
  CONSTRAINT `FK_5A0B7A7E8F418FCE` FOREIGN KEY (`id_sla_type`) REFERENCES `sla_type` (`id_sla_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sla`
--


--
-- Table structure for table `sla_type`
--

CREATE TABLE `sla_type` (
  `id_sla_type` int(11) NOT NULL AUTO_INCREMENT,
  `cd_sla_type` varchar(15) DEFAULT NULL,
  `lb_sla_type` varchar(250) DEFAULT NULL,
  `nb_quantity` decimal(10,0) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_sla_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sla_type`
--


--
-- Table structure for table `slot`
--

CREATE TABLE `slot` (
  `id_slot` int(11) NOT NULL AUTO_INCREMENT,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `id_complex_model` int(11) DEFAULT NULL,
  `cd_slot` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_slot` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `url_image` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_deactivated` datetime DEFAULT NULL,
  `bl_slot_for_ref` tinyint(1) DEFAULT NULL,
  `nb_number` int(11) NOT NULL,
  `bl_card_horizontal` tinyint(1) DEFAULT NULL,
  `nb_cards` int(11) DEFAULT NULL,
  `bl_model` tinyint(1) DEFAULT NULL,
  `id_equipment` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_slot`),
  KEY `IDX_AC0E2067536A5873` (`id_user_create_by`),
  KEY `IDX_AC0E206768E26F41` (`id_user_update_by`),
  KEY `IDX_AC0E2067530D69A4` (`id_equipment`),
  KEY `IDX_AC0E2067241EF16C` (`id_complex_model`),
  CONSTRAINT `FK_AC0E2067241EF16C` FOREIGN KEY (`id_complex_model`) REFERENCES `complex_model` (`id_complex_model`),
  CONSTRAINT `FK_AC0E2067530D69A4` FOREIGN KEY (`id_equipment`) REFERENCES `equipment` (`id_equipment`),
  CONSTRAINT `FK_AC0E2067536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_AC0E206768E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=121 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `slot`
--

INSERT INTO `slot` VALUES (1,2,2,NULL,'55','55',NULL,1,NULL,1,0,1,55,NULL,NULL),(2,2,2,NULL,'55','55',NULL,1,NULL,1,0,1,55,NULL,NULL),(3,2,2,NULL,'55','55',NULL,1,NULL,1,0,1,55,NULL,NULL),(4,2,2,NULL,'55','55',NULL,1,NULL,1,0,1,55,NULL,NULL),(5,2,2,NULL,'55','55',NULL,1,NULL,1,0,1,55,NULL,NULL),(6,2,2,NULL,'55','55',NULL,1,NULL,1,0,1,55,NULL,NULL),(7,2,2,NULL,'1','1',NULL,1,NULL,1,1000000,1,1,NULL,NULL),(8,2,2,NULL,'11','11',NULL,1,NULL,1,1000000,1,11,NULL,NULL),(9,2,2,NULL,'44','44',NULL,1,NULL,1,1000000,1,44,NULL,50),(10,2,2,NULL,'55','55',NULL,1,NULL,1,1000000,1,55,NULL,NULL),(11,2,2,NULL,'55','55',NULL,1,NULL,1,1000000,1,55,NULL,NULL),(12,2,2,NULL,'2','2',NULL,1,NULL,1,1000000,0,2,NULL,NULL),(13,2,2,NULL,'9','9',NULL,1,NULL,1,1000000,1,9,NULL,NULL),(14,2,2,NULL,'5','5',NULL,1,NULL,0,1000000,1,5,NULL,NULL),(15,2,2,NULL,'45','45',NULL,1,NULL,1,1000000,1,45,NULL,NULL),(16,2,2,NULL,'1','1',NULL,0,NULL,0,1000000,0,1,NULL,NULL),(17,2,2,NULL,'1','1',NULL,0,NULL,0,1000000,0,1,NULL,NULL),(18,2,2,NULL,'2','2',NULL,0,NULL,0,1000000,0,2,NULL,NULL),(19,2,2,NULL,'1','1',NULL,0,NULL,0,1000000,0,1,NULL,NULL),(20,2,2,NULL,'2','2',NULL,1,NULL,1,1000000,1,2,NULL,NULL),(21,2,2,NULL,'1','1',NULL,0,NULL,0,1000000,0,1,NULL,NULL),(22,2,2,NULL,'5','5',NULL,0,NULL,0,1000000,0,5,NULL,NULL),(23,2,2,NULL,'1','1',NULL,0,NULL,0,1000000,0,1,NULL,NULL),(24,2,2,NULL,'1','1',NULL,0,NULL,0,1000000,0,1,NULL,NULL),(25,2,2,NULL,'2','2',NULL,0,NULL,0,1000000,0,2,NULL,NULL),(26,2,2,NULL,'4','4',NULL,0,NULL,0,1000000,0,4,NULL,NULL),(27,2,2,NULL,'1','1',NULL,0,NULL,0,1000000,0,1,NULL,NULL),(28,2,2,NULL,'3','3',NULL,0,NULL,0,1000000,0,3,NULL,NULL),(29,2,2,NULL,'2','2',NULL,0,NULL,0,1000000,0,2,NULL,NULL),(30,2,2,NULL,'2','2',NULL,0,NULL,0,1000000,0,2,NULL,NULL),(31,2,2,NULL,'2','2',NULL,0,NULL,0,1000000,0,2,NULL,NULL),(32,2,2,NULL,'2','2',NULL,0,NULL,0,1000000,0,2,NULL,NULL),(33,2,2,NULL,'2','2',NULL,0,NULL,0,1000000,0,2,NULL,NULL),(34,2,2,NULL,'1','1',NULL,0,NULL,0,1000000,0,1,NULL,NULL),(35,2,2,NULL,'2','2',NULL,0,NULL,0,1000000,0,2,NULL,NULL),(36,2,2,NULL,'1','1',NULL,0,NULL,0,1000000,0,1,NULL,NULL),(37,2,2,NULL,'5','5',NULL,0,NULL,0,1000000,0,5,NULL,NULL),(38,2,2,NULL,'2','2',NULL,0,NULL,0,1000000,0,2,NULL,NULL),(39,2,2,NULL,'2','2',NULL,0,NULL,0,1000000,0,2,NULL,NULL),(40,2,2,NULL,'2','2',NULL,0,NULL,0,1000000,0,2,NULL,NULL),(41,2,2,NULL,'3','3',NULL,0,NULL,0,1000000,0,3,NULL,NULL),(42,2,2,NULL,'45','45',NULL,0,NULL,0,1000000,0,45,1,NULL),(43,2,2,NULL,'45','45',NULL,0,NULL,0,1000000,0,45,1,NULL),(45,2,2,NULL,'8','8',NULL,0,NULL,0,1,0,8,1,436),(46,2,2,NULL,'44','44',NULL,1,NULL,1,1000000,1,44,NULL,437),(47,2,2,NULL,'8','8',NULL,0,NULL,0,1,0,8,1,439),(48,2,2,NULL,'44','44',NULL,1,NULL,1,1000000,1,44,NULL,440),(49,2,2,NULL,'8','8',NULL,0,NULL,0,1,0,8,1,442),(50,2,2,NULL,'44','44',NULL,1,NULL,1,1000000,1,44,NULL,443),(51,2,2,NULL,'56','56',NULL,0,NULL,0,2,0,56,1,439),(52,2,2,NULL,'56','56',NULL,0,NULL,0,3,0,56,1,439),(53,2,2,NULL,'56','56',NULL,0,NULL,0,4,0,56,1,439),(54,2,2,NULL,'2','2',NULL,0,NULL,0,5,0,2,1,439),(55,2,2,NULL,'2','2',NULL,0,NULL,0,6,0,2,1,439),(56,2,2,NULL,'2','2',NULL,0,NULL,0,7,0,2,1,439),(57,2,2,NULL,'2','2',NULL,0,NULL,0,8,0,2,1,439),(58,2,2,NULL,'2','2',NULL,0,NULL,0,9,0,2,1,439),(59,2,2,NULL,'2','2',NULL,0,NULL,0,10,0,2,1,439),(60,2,2,NULL,'1','1',NULL,0,NULL,0,1,0,1,1,49),(61,2,2,NULL,'1','1ret',NULL,0,NULL,0,2,0,1,1,49),(63,2,2,NULL,'1','1',NULL,0,NULL,0,2,0,1,1,445),(64,2,2,NULL,'1','1',NULL,0,NULL,0,3,0,1,1,445),(65,2,2,NULL,'44','44',NULL,1,NULL,1,1000000,1,44,NULL,446),(66,2,2,NULL,'8','8',NULL,0,NULL,0,1,0,8,1,448),(67,2,2,NULL,'44','44',NULL,1,NULL,1,1000000,1,44,NULL,449),(68,2,2,NULL,'AZ','dudu',NULL,1,NULL,1,1,1,1,1,454),(96,2,2,NULL,'AZ','Azerty Zerty',NULL,1,NULL,1,1,1,1,1,482),(97,2,2,NULL,'1','1',NULL,0,NULL,0,2,0,1,1,483),(98,2,2,NULL,'1','1',NULL,0,NULL,0,3,0,1,1,483),(99,2,2,NULL,'44','44',NULL,1,NULL,1,1000000,1,44,NULL,484),(100,2,2,NULL,'AZ','Azerty Zerty',NULL,1,NULL,1,1,1,1,1,486),(101,2,2,NULL,'AZ','Azerty Zerty',NULL,1,NULL,1,1,1,1,1,487),(102,2,2,NULL,'AZ','Azerty Zerty',NULL,1,NULL,1,1,1,1,1,488),(103,2,2,NULL,'AZ','Azerty Zerty',NULL,1,NULL,1,1,1,1,1,489),(104,2,2,NULL,'3','slot num trois',NULL,1,NULL,0,3,1,12,1,49),(105,2,2,19,'Slot01','Slot',NULL,1,NULL,1,1000000,1,1,1,NULL),(106,2,2,NULL,'1','1*',NULL,1,NULL,1,1,0,2,1,497),(107,2,2,NULL,'1','1*',NULL,1,NULL,1,2,0,2,1,497),(108,2,2,NULL,'1','1*',NULL,1,NULL,1,3,0,2,1,497),(109,2,2,NULL,'1','1 up to 6',NULL,1,NULL,1,1,0,2,1,498),(110,2,2,NULL,'1','1 up to 6',NULL,1,NULL,1,2,0,2,1,498),(111,2,2,NULL,'1','1 up to 6',NULL,1,NULL,1,3,0,2,1,498),(112,2,2,NULL,'1','1 up to 6',NULL,1,NULL,1,4,0,2,1,498),(113,2,2,NULL,'1','1 up to 6',NULL,1,NULL,1,5,0,2,1,498),(114,2,2,NULL,'1','1 up to 6',NULL,1,NULL,1,6,0,2,1,498),(115,2,2,NULL,'gh',NULL,NULL,1,NULL,0,1,0,NULL,1,452),(116,2,2,NULL,'gh',NULL,NULL,1,NULL,0,2,0,NULL,1,452),(117,2,2,NULL,'gh',NULL,NULL,1,NULL,0,3,0,NULL,1,452),(118,2,2,NULL,'gh',NULL,NULL,1,NULL,0,4,0,NULL,1,452),(119,2,2,NULL,'gh',NULL,NULL,1,NULL,0,5,0,NULL,1,452),(120,2,2,NULL,'gh',NULL,NULL,1,NULL,0,6,0,NULL,1,452);

--
-- Table structure for table `slot_instance`
--

CREATE TABLE `slot_instance` (
  `id_slot_instance` int(11) NOT NULL AUTO_INCREMENT,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  `id_equipment_instance` int(11) DEFAULT NULL,
  `cd_slot_instance` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_slot_instance` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_deactivated` datetime DEFAULT NULL,
  `id_slot` int(11) DEFAULT NULL,
  `nb_number` int(11) NOT NULL,
  `id_complex_model` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_slot_instance`),
  KEY `IDX_9365D04D536A5873` (`id_user_create_by`),
  KEY `IDX_9365D04D68E26F41` (`id_user_update_by`),
  KEY `IDX_9365D04DF1D18757` (`id_equipment_instance`),
  KEY `IDX_9365D04D272E3C65` (`id_slot`),
  KEY `IDX_9365D04D241EF16C` (`id_complex_model`),
  CONSTRAINT `FK_9365D04D241EF16C` FOREIGN KEY (`id_complex_model`) REFERENCES `complex_model` (`id_complex_model`),
  CONSTRAINT `FK_9365D04D272E3C65` FOREIGN KEY (`id_slot`) REFERENCES `slot` (`id_slot`),
  CONSTRAINT `FK_9365D04D536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_9365D04D68E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_9365D04DF1D18757` FOREIGN KEY (`id_equipment_instance`) REFERENCES `equipment_instance` (`id_equipment_instance`)
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `slot_instance`
--

INSERT INTO `slot_instance` VALUES (1,2,2,5,'1','suite2',1,NULL,60,1000000,NULL),(3,2,2,6,'8','8',1,NULL,45,1000000,NULL),(4,2,2,7,'8','8',1,NULL,45,1000000,NULL),(5,2,2,8,'8','8',1,NULL,45,1000000,NULL),(6,2,2,9,'8','8',1,NULL,45,1000000,NULL),(7,2,2,13,'1','1',1,NULL,63,1000000,NULL),(8,2,2,13,'1','1',1,NULL,64,1000000,NULL),(9,2,2,14,'1','1',1,NULL,63,1000000,NULL),(10,2,2,14,'1','1',1,NULL,64,1000000,NULL),(13,2,2,23,'8','8',1,NULL,45,1000000,NULL),(14,2,2,24,'44','44',1,NULL,46,1000000,NULL),(15,2,2,26,'8','8',1,NULL,45,1000000,NULL),(16,2,2,27,'44','44',1,NULL,46,1000000,NULL),(17,2,2,29,'8','8',1,NULL,45,1000000,NULL),(18,2,2,30,'44','44',1,NULL,46,1000000,NULL),(19,2,2,32,'8','8',1,NULL,47,1000000,NULL),(20,2,2,32,'56','56',1,NULL,51,1000000,NULL),(21,2,2,32,'56','56',1,NULL,52,1000000,NULL),(22,2,2,32,'56','56',1,NULL,53,1000000,NULL),(23,2,2,32,'2','2',1,NULL,54,1000000,NULL),(24,2,2,32,'2','2',1,NULL,55,1000000,NULL),(25,2,2,32,'2','2',1,NULL,56,1000000,NULL),(26,2,2,32,'2','2',1,NULL,57,1000000,NULL),(27,2,2,32,'2','2',1,NULL,58,1000000,NULL),(28,2,2,32,'2','2',1,NULL,59,1000000,NULL),(29,2,2,33,'44','44',1,NULL,48,1000000,NULL),(30,2,2,35,'8','8',1,NULL,49,1000000,NULL),(31,2,2,36,'44','44',1,NULL,50,1000000,NULL),(32,2,2,38,'1','1',1,NULL,63,1000000,NULL),(33,2,2,38,'1','1',1,NULL,64,1000000,NULL),(34,2,2,39,'44','44',1,NULL,65,1000000,NULL),(35,2,2,41,'8','8',1,NULL,66,1000000,NULL),(36,2,2,42,'44','44',1,NULL,67,1000000,NULL),(37,2,2,44,'AZ','Azerty Zerty',1,NULL,68,1000000,NULL),(38,2,2,45,'S','S1',1,NULL,105,1000000,19);

--
-- Table structure for table `state`
--

CREATE TABLE `state` (
  `id_state` int(11) NOT NULL AUTO_INCREMENT,
  `cd_state` varchar(15) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `lb_state` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `bl_in_progress` tinyint(1) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_state`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  CONSTRAINT `FK_A393D2FB536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_A393D2FB68E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `state`
--


--
-- Table structure for table `status_type`
--

CREATE TABLE `status_type` (
  `id_status_type` int(11) NOT NULL AUTO_INCREMENT,
  `id_object_type` int(11) DEFAULT NULL,
  `id_mail` int(11) DEFAULT NULL,
  `cd_status_type` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_status_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `nb_order` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_status_type`),
  KEY `IDX_B4D8FABD9D9A6CD` (`id_object_type`),
  KEY `IDX_B4D8FABDDA06B04A` (`id_mail`),
  CONSTRAINT `FK_B4D8FABD9D9A6CD` FOREIGN KEY (`id_object_type`) REFERENCES `object_type` (`id_object_type`),
  CONSTRAINT `FK_B4D8FABDDA06B04A` FOREIGN KEY (`id_mail`) REFERENCES `mail` (`id_mail`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `status_type`
--


--
-- Table structure for table `t_group`
--

CREATE TABLE `t_group` (
  `id_group` int(11) NOT NULL AUTO_INCREMENT,
  `lb_group` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `id_group_parent` int(11) DEFAULT NULL,
  `bl_public` tinyint(1) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_group`),
  KEY `id_group_parent` (`id_group_parent`),
  CONSTRAINT `FK_D37122BCCDC9CDED` FOREIGN KEY (`id_group_parent`) REFERENCES `t_group` (`id_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `t_group`
--


--
-- Table structure for table `t_option`
--

CREATE TABLE `t_option` (
  `id_option` int(11) NOT NULL AUTO_INCREMENT,
  `cd_option` varchar(15) DEFAULT NULL,
  `lb_option` varchar(250) DEFAULT NULL,
  `id_option_type` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_option`),
  KEY `id_option_type` (`id_option_type`),
  CONSTRAINT `FK_73E1784E7CC2303D` FOREIGN KEY (`id_option_type`) REFERENCES `option_type` (`id_option_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `t_option`
--


--
-- Table structure for table `t_right`
--

CREATE TABLE `t_right` (
  `id_right` int(11) NOT NULL AUTO_INCREMENT,
  `id_profile` int(11) DEFAULT NULL,
  `id_domain` int(11) DEFAULT NULL,
  `id_functionality` int(11) DEFAULT NULL,
  `bl_read` tinyint(1) DEFAULT NULL,
  `bl_modify` tinyint(1) DEFAULT NULL,
  `bl_create` tinyint(1) DEFAULT NULL,
  `bl_delete` tinyint(1) DEFAULT NULL,
  `bl_deactivate` tinyint(1) DEFAULT NULL,
  `bl_reactivate` tinyint(1) DEFAULT NULL,
  `bl_export` tinyint(1) DEFAULT NULL,
  `bl_print` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_right`),
  KEY `id_profile` (`id_profile`),
  KEY `id_domain` (`id_domain`),
  KEY `id_functionality` (`id_functionality`),
  CONSTRAINT `FK_A7B136D46148E21` FOREIGN KEY (`id_functionality`) REFERENCES `functionality` (`id_functionality`),
  CONSTRAINT `FK_A7B136D5FCA037F` FOREIGN KEY (`id_profile`) REFERENCES `profile` (`id_profile`),
  CONSTRAINT `FK_A7B136D819EABE6` FOREIGN KEY (`id_domain`) REFERENCES `domain` (`id_domain`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `t_right`
--


--
-- Table structure for table `tariff_backbone_link_line`
--

CREATE TABLE `tariff_backbone_link_line` (
  `id_tariff_backbone_link_line` int(11) NOT NULL AUTO_INCREMENT,
  `id_billing_period` int(11) DEFAULT NULL,
  `id_backbone_link` int(11) DEFAULT NULL,
  `id_backbone_link_option` int(11) DEFAULT NULL,
  `mt_nrc` decimal(10,0) DEFAULT NULL,
  `mt_mrc` decimal(10,0) DEFAULT NULL,
  `mt_nrc_euro` decimal(10,0) DEFAULT NULL,
  `mt_mrc_euro` decimal(10,0) DEFAULT NULL,
  `dt_start_mrc` datetime DEFAULT NULL,
  `dt_end_mrc` datetime DEFAULT NULL,
  `lb_nrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_mrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id_tariff_backbone_link_line`),
  KEY `IDX_CC54EE94BD048098` (`id_billing_period`),
  KEY `IDX_CC54EE94D9707BB8` (`id_backbone_link`),
  KEY `IDX_CC54EE9473440D2A` (`id_backbone_link_option`),
  CONSTRAINT `FK_CC54EE9473440D2A` FOREIGN KEY (`id_backbone_link_option`) REFERENCES `backbone_link_option` (`id_backbone_link_option`),
  CONSTRAINT `FK_CC54EE94BD048098` FOREIGN KEY (`id_billing_period`) REFERENCES `billing_period` (`id_billing_period`),
  CONSTRAINT `FK_CC54EE94D9707BB8` FOREIGN KEY (`id_backbone_link`) REFERENCES `backbone_link` (`id_backbone_link`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tariff_backbone_link_line`
--

INSERT INTO `tariff_backbone_link_line` VALUES (1,NULL,11,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(2,NULL,11,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(3,NULL,11,4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(4,NULL,8,8,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(5,1,9,NULL,NULL,NULL,12,16,'2013-12-12 00:00:00',NULL,'6+6','10+6'),(6,NULL,9,9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(7,NULL,9,10,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(8,NULL,18,11,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(9,1,19,12,NULL,NULL,12,12,'2013-12-31 00:00:00',NULL,NULL,NULL),(10,1,31,13,NULL,NULL,100,100,'2014-01-17 00:00:00','2014-11-21 00:00:00',NULL,NULL),(11,NULL,34,15,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(12,NULL,10,16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(13,NULL,37,17,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `tariff_cabinet_line`
--

CREATE TABLE `tariff_cabinet_line` (
  `id_tariff_cabinet_line` int(11) NOT NULL AUTO_INCREMENT,
  `id_billing_period` int(11) DEFAULT NULL,
  `id_cabinet` int(11) DEFAULT NULL,
  `mt_nrc` decimal(10,0) DEFAULT NULL,
  `mt_mrc` decimal(10,0) DEFAULT NULL,
  `mt_nrc_euro` int(11) DEFAULT NULL,
  `mt_mrc_euro` decimal(10,0) DEFAULT NULL,
  `dt_start_mrc` datetime DEFAULT NULL,
  `dt_end_mrc` datetime DEFAULT NULL,
  `lb_nrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_mrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `id_cabinet_instance` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_tariff_cabinet_line`),
  KEY `IDX_AFC873BD048098` (`id_billing_period`),
  KEY `IDX_AFC8739270ACC0` (`id_cabinet`),
  KEY `IDX_AFC87395136256` (`id_cabinet_instance`),
  CONSTRAINT `FK_AFC8739270ACC0` FOREIGN KEY (`id_cabinet`) REFERENCES `cabinet` (`id_cabinet`),
  CONSTRAINT `FK_AFC87395136256` FOREIGN KEY (`id_cabinet_instance`) REFERENCES `cabinet_instance` (`id_cabinet_instance`),
  CONSTRAINT `FK_AFC873BD048098` FOREIGN KEY (`id_billing_period`) REFERENCES `billing_period` (`id_billing_period`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tariff_cabinet_line`
--

INSERT INTO `tariff_cabinet_line` VALUES (1,NULL,20,1,1,1,1,'2013-07-11 00:00:00','2013-07-20 00:00:00',NULL,NULL,NULL),(5,NULL,24,1,1,1,1,'2013-07-11 00:00:00','2013-07-20 00:00:00',NULL,NULL,NULL),(6,NULL,25,1,1,1,1,'2013-07-11 00:00:00','2013-07-20 00:00:00',NULL,NULL,NULL),(7,NULL,26,1,1,1,1,'2013-07-11 00:00:00','2013-07-20 00:00:00',NULL,NULL,NULL),(8,NULL,27,1,1,1,1,'2013-07-11 00:00:00','2013-07-20 00:00:00',NULL,NULL,NULL),(9,NULL,28,1,1,1,1,'2013-07-11 00:00:00','2013-07-20 00:00:00',NULL,NULL,NULL),(10,1,NULL,NULL,NULL,56,66,'2013-11-15 00:00:00',NULL,NULL,NULL,2),(11,1,33,NULL,NULL,5,55,'2013-11-14 00:00:00',NULL,NULL,NULL,NULL),(12,1,30,NULL,NULL,99,89,'2013-11-28 00:00:00',NULL,NULL,NULL,NULL),(13,1,30,NULL,NULL,99,89,'2013-11-28 00:00:00',NULL,NULL,NULL,NULL),(14,1,33,NULL,NULL,5,55,'2013-11-14 00:00:00',NULL,NULL,NULL,NULL),(15,1,NULL,NULL,NULL,99,89,'2013-11-28 00:00:00',NULL,NULL,NULL,15),(16,1,NULL,NULL,NULL,99,89,'2013-11-28 00:00:00',NULL,NULL,NULL,15),(17,1,NULL,NULL,NULL,5,55,'2013-11-14 00:00:00',NULL,NULL,NULL,16),(18,1,NULL,NULL,NULL,5,55,'2013-11-14 00:00:00',NULL,NULL,NULL,16);

--
-- Table structure for table `tariff_cable_line`
--

CREATE TABLE `tariff_cable_line` (
  `id_tariff_cable_line` int(11) NOT NULL AUTO_INCREMENT,
  `id_billing_period` int(11) DEFAULT NULL,
  `id_cable` int(11) DEFAULT NULL,
  `mt_nrc` decimal(10,0) DEFAULT NULL,
  `mt_mrc` decimal(10,0) DEFAULT NULL,
  `mt_nrc_euro` int(11) DEFAULT NULL,
  `mt_mrc_euro` decimal(10,0) DEFAULT NULL,
  `dt_start_mrc` datetime DEFAULT NULL,
  `dt_end_mrc` datetime DEFAULT NULL,
  `lb_nrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_mrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id_tariff_cable_line`),
  KEY `IDX_FA2EFC10BD048098` (`id_billing_period`),
  KEY `IDX_FA2EFC10CA6C85E4` (`id_cable`),
  CONSTRAINT `FK_FA2EFC10BD048098` FOREIGN KEY (`id_billing_period`) REFERENCES `billing_period` (`id_billing_period`),
  CONSTRAINT `FK_FA2EFC10CA6C85E4` FOREIGN KEY (`id_cable`) REFERENCES `cable` (`id_cable`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tariff_cable_line`
--


--
-- Table structure for table `tariff_card_line`
--

CREATE TABLE `tariff_card_line` (
  `id_tariff_card_line` int(11) NOT NULL AUTO_INCREMENT,
  `id_billing_period` int(11) DEFAULT NULL,
  `id_card` int(11) DEFAULT NULL,
  `mt_nrc` decimal(10,0) DEFAULT NULL,
  `mt_mrc` decimal(10,0) DEFAULT NULL,
  `mt_nrc_euro` int(11) DEFAULT NULL,
  `mt_mrc_euro` decimal(10,0) DEFAULT NULL,
  `dt_start_mrc` datetime DEFAULT NULL,
  `dt_end_mrc` datetime DEFAULT NULL,
  `lb_nrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_mrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `id_card_instance` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_tariff_card_line`),
  KEY `IDX_72716732BD048098` (`id_billing_period`),
  KEY `IDX_727167329D3484D1` (`id_card`),
  KEY `IDX_727167324529AE38` (`id_card_instance`),
  CONSTRAINT `FK_727167324529AE38` FOREIGN KEY (`id_card_instance`) REFERENCES `card_instance` (`id_card_instance`),
  CONSTRAINT `FK_727167329D3484D1` FOREIGN KEY (`id_card`) REFERENCES `card` (`id_card`),
  CONSTRAINT `FK_72716732BD048098` FOREIGN KEY (`id_billing_period`) REFERENCES `billing_period` (`id_billing_period`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tariff_card_line`
--

INSERT INTO `tariff_card_line` VALUES (1,NULL,23,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(2,NULL,29,1,1,1,1,'2013-07-11 00:00:00','2013-07-20 00:00:00',NULL,NULL,NULL),(3,NULL,37,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(4,NULL,40,1,1,1,1,'2013-07-11 00:00:00','2013-07-20 00:00:00',NULL,NULL,NULL),(6,NULL,130,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `tariff_equipment_line`
--

CREATE TABLE `tariff_equipment_line` (
  `id_tariff_equipment_line` int(11) NOT NULL AUTO_INCREMENT,
  `id_billing_period` int(11) DEFAULT NULL,
  `id_equipment` int(11) DEFAULT NULL,
  `mt_nrc` decimal(10,0) DEFAULT NULL,
  `mt_mrc` decimal(10,0) DEFAULT NULL,
  `mt_nrc_euro` int(11) DEFAULT NULL,
  `mt_mrc_euro` decimal(10,0) DEFAULT NULL,
  `dt_start_mrc` datetime DEFAULT NULL,
  `dt_end_mrc` datetime DEFAULT NULL,
  `lb_nrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_mrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `id_equipment_instance` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_tariff_equipment_line`),
  KEY `IDX_7CDA3829BD048098` (`id_billing_period`),
  KEY `IDX_7CDA3829530D69A4` (`id_equipment`),
  KEY `IDX_7CDA3829F1D18757` (`id_equipment_instance`),
  CONSTRAINT `FK_7CDA3829530D69A4` FOREIGN KEY (`id_equipment`) REFERENCES `equipment` (`id_equipment`),
  CONSTRAINT `FK_7CDA3829BD048098` FOREIGN KEY (`id_billing_period`) REFERENCES `billing_period` (`id_billing_period`),
  CONSTRAINT `FK_7CDA3829F1D18757` FOREIGN KEY (`id_equipment_instance`) REFERENCES `equipment_instance` (`id_equipment_instance`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tariff_equipment_line`
--

INSERT INTO `tariff_equipment_line` VALUES (1,1,NULL,NULL,NULL,456,55,'2013-11-14 00:00:00',NULL,NULL,NULL,6),(2,1,NULL,NULL,NULL,456,66,'2013-11-22 00:00:00',NULL,NULL,NULL,4),(3,1,491,NULL,NULL,66,66,'2013-11-15 00:00:00',NULL,NULL,NULL,NULL),(4,1,491,NULL,NULL,66,66,'2013-11-15 00:00:00',NULL,NULL,NULL,NULL),(5,1,NULL,NULL,NULL,66,66,'2013-11-15 00:00:00',NULL,NULL,NULL,50),(6,1,NULL,NULL,NULL,66,66,'2013-11-15 00:00:00',NULL,NULL,NULL,50);

--
-- Table structure for table `tariff_local_loop_line`
--

CREATE TABLE `tariff_local_loop_line` (
  `id_tariff_local_loop_line` int(11) NOT NULL AUTO_INCREMENT,
  `id_billing_period` int(11) DEFAULT NULL,
  `id_local_loop` int(11) DEFAULT NULL,
  `id_local_loop_option` int(11) DEFAULT NULL,
  `mt_nrc` decimal(10,0) DEFAULT NULL,
  `mt_mrc` decimal(10,0) DEFAULT NULL,
  `mt_nrc_euro` decimal(10,0) DEFAULT NULL,
  `mt_mrc_euro` decimal(10,0) DEFAULT NULL,
  `dt_start_mrc` datetime DEFAULT NULL,
  `dt_end_mrc` datetime DEFAULT NULL,
  `lb_nrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_mrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id_tariff_local_loop_line`),
  KEY `IDX_68857945BD048098` (`id_billing_period`),
  KEY `IDX_6885794538CAF7EA` (`id_local_loop`),
  KEY `IDX_688579459AC817FF` (`id_local_loop_option`),
  CONSTRAINT `FK_6885794538CAF7EA` FOREIGN KEY (`id_local_loop`) REFERENCES `local_loop` (`id_local_loop`),
  CONSTRAINT `FK_688579459AC817FF` FOREIGN KEY (`id_local_loop_option`) REFERENCES `local_loop_option` (`id_local_loop_option`),
  CONSTRAINT `FK_68857945BD048098` FOREIGN KEY (`id_billing_period`) REFERENCES `billing_period` (`id_billing_period`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tariff_local_loop_line`
--

INSERT INTO `tariff_local_loop_line` VALUES (1,NULL,10,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `tariff_patch_panel_line`
--

CREATE TABLE `tariff_patch_panel_line` (
  `id_tariff_patch_panel_line` int(11) NOT NULL AUTO_INCREMENT,
  `id_billing_period` int(11) DEFAULT NULL,
  `id_patch_panel` int(11) DEFAULT NULL,
  `mt_nrc` decimal(10,0) DEFAULT NULL,
  `mt_mrc` decimal(10,0) DEFAULT NULL,
  `mt_nrc_euro` int(11) DEFAULT NULL,
  `mt_mrc_euro` decimal(10,0) DEFAULT NULL,
  `dt_start_mrc` datetime DEFAULT NULL,
  `dt_end_mrc` datetime DEFAULT NULL,
  `lb_nrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_mrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `id_patch_panel_instance` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_tariff_patch_panel_line`),
  KEY `IDX_9C4126ADBD048098` (`id_billing_period`),
  KEY `IDX_9C4126AD61B7E895` (`id_patch_panel`),
  KEY `IDX_9C4126AD9ABD60CA` (`id_patch_panel_instance`),
  CONSTRAINT `FK_9C4126AD61B7E895` FOREIGN KEY (`id_patch_panel`) REFERENCES `patch_panel` (`id_patch_panel`),
  CONSTRAINT `FK_9C4126AD9ABD60CA` FOREIGN KEY (`id_patch_panel_instance`) REFERENCES `patch_panel_instance` (`id_patch_panel_instance`),
  CONSTRAINT `FK_9C4126ADBD048098` FOREIGN KEY (`id_billing_period`) REFERENCES `billing_period` (`id_billing_period`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tariff_patch_panel_line`
--


--
-- Table structure for table `tariff_pop_line`
--

CREATE TABLE `tariff_pop_line` (
  `id_tariff_pop_line` int(11) NOT NULL AUTO_INCREMENT,
  `id_billing_period` int(11) DEFAULT NULL,
  `id_costing_pop` int(11) DEFAULT NULL,
  `mt_nrc` decimal(10,0) DEFAULT NULL,
  `mt_mrc` decimal(10,0) DEFAULT NULL,
  `mt_nrc_euro` int(11) DEFAULT NULL,
  `mt_mrc_euro` decimal(10,0) DEFAULT NULL,
  `dt_start_mrc` datetime DEFAULT NULL,
  `dt_end_mrc` datetime DEFAULT NULL,
  `lb_nrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_mrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id_tariff_pop_line`),
  KEY `IDX_7C9E7867BD048098` (`id_billing_period`),
  KEY `IDX_7C9E78679460E14` (`id_costing_pop`),
  CONSTRAINT `FK_7C9E78679460E14` FOREIGN KEY (`id_costing_pop`) REFERENCES `costing_pop` (`id_costing_pop`),
  CONSTRAINT `FK_7C9E7867BD048098` FOREIGN KEY (`id_billing_period`) REFERENCES `billing_period` (`id_billing_period`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tariff_pop_line`
--

INSERT INTO `tariff_pop_line` VALUES (1,1,NULL,NULL,NULL,55,12,'2014-01-17 00:00:00',NULL,NULL,NULL),(2,1,NULL,NULL,NULL,10,12,'2014-01-18 00:00:00',NULL,NULL,NULL),(5,1,1,NULL,NULL,12,12,'2014-01-10 00:00:00',NULL,NULL,NULL),(6,1,1,NULL,NULL,12,12,'2014-01-17 00:00:00',NULL,NULL,NULL);

--
-- Table structure for table `tariff_port_line`
--

CREATE TABLE `tariff_port_line` (
  `id_tariff_port_line` int(11) NOT NULL AUTO_INCREMENT,
  `id_billing_period` int(11) DEFAULT NULL,
  `id_port` int(11) DEFAULT NULL,
  `mt_nrc` decimal(10,0) DEFAULT NULL,
  `mt_mrc` decimal(10,0) DEFAULT NULL,
  `mt_nrc_euro` int(11) DEFAULT NULL,
  `mt_mrc_euro` decimal(10,0) DEFAULT NULL,
  `dt_start_mrc` datetime DEFAULT NULL,
  `dt_end_mrc` datetime DEFAULT NULL,
  `lb_nrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_mrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `id_port_instance` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_tariff_port_line`),
  KEY `IDX_F160092FBD048098` (`id_billing_period`),
  KEY `IDX_F160092FC8B141CE` (`id_port`),
  KEY `IDX_F160092F827B36DA` (`id_port_instance`),
  CONSTRAINT `FK_F160092F827B36DA` FOREIGN KEY (`id_port_instance`) REFERENCES `port_instance` (`id_port_instance`),
  CONSTRAINT `FK_F160092FBD048098` FOREIGN KEY (`id_billing_period`) REFERENCES `billing_period` (`id_billing_period`),
  CONSTRAINT `FK_F160092FC8B141CE` FOREIGN KEY (`id_port`) REFERENCES `port` (`id_port`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tariff_port_line`
--

INSERT INTO `tariff_port_line` VALUES (1,NULL,NULL,1,1,1,1,'2013-06-14 00:00:00','2013-08-31 00:00:00',NULL,NULL,NULL);

--
-- Table structure for table `tariff_service_line`
--

CREATE TABLE `tariff_service_line` (
  `id_tariff_service_line` int(11) NOT NULL AUTO_INCREMENT,
  `id_billing_period` int(11) DEFAULT NULL,
  `id_service` int(11) DEFAULT NULL,
  `id_service_extremity` int(11) DEFAULT NULL,
  `id_service_extremity_option` int(11) DEFAULT NULL,
  `id_service_option` int(11) DEFAULT NULL,
  `mt_nrc` decimal(10,0) DEFAULT NULL,
  `mt_mrc` decimal(10,0) DEFAULT NULL,
  `lb_nrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lb_mrc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mt_nrc_euro` int(11) DEFAULT NULL,
  `mt_mrc_euro` decimal(10,0) DEFAULT NULL,
  `dt_start_mrc` datetime DEFAULT NULL,
  `dt_end_mrc` datetime DEFAULT NULL,
  PRIMARY KEY (`id_tariff_service_line`),
  KEY `IDX_4926B758BD048098` (`id_billing_period`),
  KEY `IDX_4926B7583F0033A2` (`id_service`),
  KEY `IDX_4926B758C53102E9` (`id_service_extremity`),
  KEY `IDX_4926B758A5972AFE` (`id_service_extremity_option`),
  KEY `IDX_4926B7585927B880` (`id_service_option`),
  CONSTRAINT `FK_4926B7583F0033A2` FOREIGN KEY (`id_service`) REFERENCES `service` (`id_service`),
  CONSTRAINT `FK_4926B7585927B880` FOREIGN KEY (`id_service_option`) REFERENCES `service_option` (`id_service_option`),
  CONSTRAINT `FK_4926B758A5972AFE` FOREIGN KEY (`id_service_extremity_option`) REFERENCES `service_extremity_option` (`id_service_extremity_option`),
  CONSTRAINT `FK_4926B758BD048098` FOREIGN KEY (`id_billing_period`) REFERENCES `billing_period` (`id_billing_period`),
  CONSTRAINT `FK_4926B758C53102E9` FOREIGN KEY (`id_service_extremity`) REFERENCES `service_extremity` (`id_service_extremity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tariff_service_line`
--


--
-- Table structure for table `tarriff`
--

CREATE TABLE `tarriff` (
  `id_tarriff` int(11) NOT NULL AUTO_INCREMENT,
  `cd_tarriff` varchar(45) DEFAULT NULL,
  `lb_tarriff` varchar(255) DEFAULT NULL,
  `mt_value` decimal(10,0) DEFAULT NULL,
  `id_rate_percent_value_type` int(11) DEFAULT NULL,
  `id_currency` int(11) DEFAULT NULL,
  `dt_application` datetime DEFAULT NULL,
  `id_user` int(11) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `lb_filter` varchar(255) DEFAULT NULL,
  `bl_execute` tinyint(1) DEFAULT NULL,
  `cm_comment` varchar(225) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_tarriff`),
  KEY `id_rate_percent_value_type` (`id_rate_percent_value_type`),
  KEY `id_currency` (`id_currency`),
  KEY `id_user` (`id_user`),
  CONSTRAINT `FK_D4B7D4E232EA2F22` FOREIGN KEY (`id_rate_percent_value_type`) REFERENCES `rate_percent_value_type` (`id_rate_percent_value_type`),
  CONSTRAINT `FK_D4B7D4E2398D64AA` FOREIGN KEY (`id_currency`) REFERENCES `currency` (`id_currency`),
  CONSTRAINT `FK_D4B7D4E26B3CA4B` FOREIGN KEY (`id_user`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tarriff`
--


--
-- Table structure for table `template_network`
--

CREATE TABLE `template_network` (
  `id_template_network` int(11) NOT NULL AUTO_INCREMENT,
  `cd_template_network` varchar(100) DEFAULT NULL,
  `lb_template_network` longtext,
  `id_object_type` int(11) DEFAULT NULL,
  `id_object` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_template_network`),
  KEY `id_object_type` (`id_object_type`),
  CONSTRAINT `FK_333CFC859D9A6CD` FOREIGN KEY (`id_object_type`) REFERENCES `object_type` (`id_object_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `template_network`
--


--
-- Table structure for table `title`
--

CREATE TABLE `title` (
  `id_title` int(11) NOT NULL AUTO_INCREMENT,
  `cd_title` varchar(15) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `lb_title` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_title`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  CONSTRAINT `FK_2B36786B536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_2B36786B68E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `title`
--


--
-- Table structure for table `trad_extra_datalink_group`
--

CREATE TABLE `trad_extra_datalink_group` (
  `id_trad_extra_datalink_group` int(11) NOT NULL AUTO_INCREMENT,
  `id_service` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `lb_trad_extra_datalink_group` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cd_trad_extra_datalink_group` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dt_deactivated` datetime DEFAULT NULL,
  PRIMARY KEY (`id_trad_extra_datalink_group`),
  KEY `IDX_D562368C3F0033A2` (`id_service`),
  CONSTRAINT `FK_D562368C3F0033A2` FOREIGN KEY (`id_service`) REFERENCES `service` (`id_service`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `trad_extra_datalink_group`
--


--
-- Table structure for table `transfer_price`
--

CREATE TABLE `transfer_price` (
  `id_transfer_price` int(11) NOT NULL AUTO_INCREMENT,
  `id_bandwidth` int(11) DEFAULT NULL,
  `id_product` int(11) DEFAULT NULL,
  `id_zone1` int(11) DEFAULT NULL,
  `id_zone2` int(11) DEFAULT NULL,
  `mt_transfer_price` decimal(10,0) NOT NULL,
  `mt_install_price` decimal(10,0) NOT NULL,
  `dt_start` datetime DEFAULT NULL,
  `dt_end` datetime DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_transfer_price`),
  KEY `IDX_694CD781A3C6948` (`id_bandwidth`),
  KEY `IDX_694CD781DD7ADDD` (`id_product`),
  CONSTRAINT `FK_694CD781A3C6948` FOREIGN KEY (`id_bandwidth`) REFERENCES `bandwidth` (`id_bandwidth`),
  CONSTRAINT `FK_694CD781DD7ADDD` FOREIGN KEY (`id_product`) REFERENCES `product` (`id_product`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `transfer_price`
--


--
-- Table structure for table `trave`
--

CREATE TABLE `trave` (
  `id_trave` int(11) NOT NULL AUTO_INCREMENT,
  `id_room` int(11) DEFAULT NULL,
  `cd_trave` varchar(15) NOT NULL,
  `lb_trave` varchar(100) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_create_by` int(11) DEFAULT NULL,
  `id_user_update_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_trave`),
  KEY `id_user_create_by` (`id_user_create_by`),
  KEY `id_user_update_by` (`id_user_update_by`),
  KEY `id_room` (`id_room`),
  CONSTRAINT `FK_6EE33B5536A5873` FOREIGN KEY (`id_user_create_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_6EE33B568E26F41` FOREIGN KEY (`id_user_update_by`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_6EE33B5F9BF4D99` FOREIGN KEY (`id_room`) REFERENCES `room` (`id_room`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `trave`
--


--
-- Table structure for table `ts`
--

CREATE TABLE `ts` (
  `id_ts` int(11) NOT NULL AUTO_INCREMENT,
  `id_port` int(11) DEFAULT NULL,
  `lb_ts` varchar(255) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `nb_ts` int(11) DEFAULT NULL,
  `nb_channel` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_ts`),
  KEY `id_port` (`id_port`),
  CONSTRAINT `FK_C3868E8BC8B141CE` FOREIGN KEY (`id_port`) REFERENCES `port` (`id_port`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ts`
--


--
-- Table structure for table `user_group`
--

CREATE TABLE `user_group` (
  `id_user_group` int(11) NOT NULL AUTO_INCREMENT,
  `cd_user_group` varchar(15) DEFAULT NULL,
  `lb_user_group` varchar(255) DEFAULT NULL,
  `cm_user_group` varchar(255) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_user_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `user_group`
--


--
-- Table structure for table `user_in_branch`
--

CREATE TABLE `user_in_branch` (
  `id_user_in_branch` int(11) NOT NULL AUTO_INCREMENT,
  `id_user` int(11) DEFAULT NULL,
  `id_branch` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_user_in_branch`),
  KEY `id_user` (`id_user`),
  KEY `id_branch` (`id_branch`),
  CONSTRAINT `FK_C913FDE6B3CA4B` FOREIGN KEY (`id_user`) REFERENCES `myuser` (`id`),
  CONSTRAINT `FK_C913FDE9DB1AEF2` FOREIGN KEY (`id_branch`) REFERENCES `branch` (`id_branch`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `user_in_branch`
--


--
-- Table structure for table `user_in_branch_profile`
--

CREATE TABLE `user_in_branch_profile` (
  `id_user_in_branch_profile` int(11) NOT NULL AUTO_INCREMENT,
  `id_user_in_branch` int(11) DEFAULT NULL,
  `id_profile` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_user_in_branch_profile`),
  KEY `id_user_in_branch` (`id_user_in_branch`),
  KEY `id_profile` (`id_profile`),
  CONSTRAINT `FK_AB69D20031F782D8` FOREIGN KEY (`id_user_in_branch`) REFERENCES `user_in_branch` (`id_user_in_branch`),
  CONSTRAINT `FK_AB69D2005FCA037F` FOREIGN KEY (`id_profile`) REFERENCES `profile` (`id_profile`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `user_in_branch_profile`
--


--
-- Table structure for table `user_in_group`
--

CREATE TABLE `user_in_group` (
  `id_user_in_group` int(11) NOT NULL AUTO_INCREMENT,
  `id_user` int(11) DEFAULT NULL,
  `id_user_group` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_user_in_group`),
  KEY `id_user` (`id_user`),
  KEY `id_user_group` (`id_user_group`),
  CONSTRAINT `FK_C7B8BEBB2A883F4A` FOREIGN KEY (`id_user_group`) REFERENCES `user_group` (`id_user_group`),
  CONSTRAINT `FK_C7B8BEBB6B3CA4B` FOREIGN KEY (`id_user`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `user_in_group`
--


--
-- Table structure for table `variant`
--

CREATE TABLE `variant` (
  `id_variant` int(11) NOT NULL AUTO_INCREMENT,
  `id_variant_type` int(11) DEFAULT NULL,
  `cd_variant` varchar(15) DEFAULT NULL,
  `lb_variant` varchar(250) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_variant`),
  KEY `id_variant_type` (`id_variant_type`),
  CONSTRAINT `FK_F143BFAD40E7B4CE` FOREIGN KEY (`id_variant_type`) REFERENCES `variant_type` (`id_variant_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `variant`
--


--
-- Table structure for table `variant_type`
--

CREATE TABLE `variant_type` (
  `id_variant_type` int(11) NOT NULL AUTO_INCREMENT,
  `cd_variant_type` varchar(15) NOT NULL,
  `lb_variant_type` varchar(250) NOT NULL,
  `nb_quantity` decimal(10,0) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_variant_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `variant_type`
--


--
-- Table structure for table `vlan`
--

CREATE TABLE `vlan` (
  `id_vlan` int(11) NOT NULL AUTO_INCREMENT,
  `id_port` int(11) DEFAULT NULL,
  `lb_vlan` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_vlan`),
  KEY `IDX_F83104A1C8B141CE` (`id_port`),
  CONSTRAINT `FK_F83104A1C8B141CE` FOREIGN KEY (`id_port`) REFERENCES `port` (`id_port`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `vlan`
--


--
-- Table structure for table `widget_type`
--

CREATE TABLE `widget_type` (
  `id_widget_type` int(11) NOT NULL AUTO_INCREMENT,
  `nom` varchar(255) NOT NULL,
  PRIMARY KEY (`id_widget_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `widget_type`
--


--
-- Table structure for table `worldwide_group`
--

CREATE TABLE `worldwide_group` (
  `lb_worldwide_group` varchar(100) CHARACTER SET utf8 NOT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  `dt_create` datetime DEFAULT NULL,
  `dt_update` datetime DEFAULT NULL,
  `id_user_global_account_manager` int(11) DEFAULT NULL,
  `id_worldwide_group` int(11) NOT NULL AUTO_INCREMENT,
  `cd_worldwide_group` varchar(15) COLLATE utf8_bin NOT NULL,
  `comment` text COLLATE utf8_bin,
  PRIMARY KEY (`id_worldwide_group`),
  KEY `id_user_global_account_manager` (`id_user_global_account_manager`),
  CONSTRAINT `FK_B87A8D9531E1145` FOREIGN KEY (`id_user_global_account_manager`) REFERENCES `myuser` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `worldwide_group`
--

INSERT INTO `worldwide_group` VALUES ('www',1,'2013-05-27 16:11:04','2013-05-27 16:11:04',2,1,'universal',NULL);

--
-- Table structure for table `xconnect`
--

CREATE TABLE `xconnect` (
  `id_xconnect` int(11) NOT NULL AUTO_INCREMENT,
  `cd_xconnect` varchar(100) DEFAULT NULL,
  `lb_xconnect` varchar(255) DEFAULT NULL,
  `id_branch` int(11) DEFAULT NULL,
  `id_provider` int(11) DEFAULT NULL,
  `lb_meet_prot` varchar(255) DEFAULT NULL,
  `id_port` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_xconnect`),
  KEY `id_branch` (`id_branch`),
  KEY `id_provider` (`id_provider`),
  KEY `id_port` (`id_port`),
  CONSTRAINT `FK_F334732D9DB1AEF2` FOREIGN KEY (`id_branch`) REFERENCES `branch` (`id_branch`),
  CONSTRAINT `FK_F334732DC21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`),
  CONSTRAINT `FK_F334732DC8B141CE` FOREIGN KEY (`id_port`) REFERENCES `port` (`id_port`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `xconnect`
--


--
-- Table structure for table `xconnect_template`
--

CREATE TABLE `xconnect_template` (
  `id_xconnect` int(11) NOT NULL,
  `cd_xconnect` varchar(100) DEFAULT NULL,
  `lb_xconnect` varchar(255) DEFAULT NULL,
  `id_branch` int(11) DEFAULT NULL,
  `id_provider` int(11) DEFAULT NULL,
  `lb_meet_prot` varchar(255) DEFAULT NULL,
  `id_port` int(11) DEFAULT NULL,
  `bl_deactivated` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id_xconnect`),
  KEY `id_xconnect` (`id_xconnect`),
  KEY `id_branch` (`id_branch`),
  KEY `id_provider` (`id_provider`),
  KEY `id_port` (`id_port`),
  CONSTRAINT `FK_27EB43929DB1AEF2` FOREIGN KEY (`id_branch`) REFERENCES `branch` (`id_branch`),
  CONSTRAINT `FK_27EB4392A3EF9FB8` FOREIGN KEY (`id_xconnect`) REFERENCES `xconnect` (`id_xconnect`),
  CONSTRAINT `FK_27EB4392C21F9F09` FOREIGN KEY (`id_provider`) REFERENCES `provider` (`id_provider`),
  CONSTRAINT `FK_27EB4392C8B141CE` FOREIGN KEY (`id_port`) REFERENCES `port` (`id_port`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `xconnect_template`
--



