-- Table structure for table `B67171959_c_currencies`
--
CREATE TABLE `B67171959_c_currencies` (
  `code_iso` varchar(3) NOT NULL,
  `label` varchar(64) NOT NULL,
  `unicode` varchar(32) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`code_iso`),
  UNIQUE KEY `uk_c_currencies_code_iso` (`code_iso`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_currencies`
--
INSERT INTO `B67171959_c_currencies` VALUES ('AED','United Arab Emirates Dirham',NULL,1);
INSERT INTO `B67171959_c_currencies` VALUES ('AFN','Afghanistan Afghani','[1547]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('ALL','Albania Lek','[76,101,107]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('ANG','Netherlands Antilles Guilder','[402]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('ARP','Pesos argentins',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('ARS','Argentino Peso','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('ATS','Shiliing autrichiens',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('AUD','Australia Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('AWG','Aruba Guilder','[402]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('AZN','Azerbaijan New Manat','[1084,1072,1085]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('BAM','Bosnia and Herzegovina Convertible Marka','[75,77]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('BBD','Barbados Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('BDT','Bangladeshi Taka','[2547]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('BEF','Francs belges',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('BGN','Bulgaria Lev','[1083,1074]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('BHD','Bahrain',NULL,1);
INSERT INTO `B67171959_c_currencies` VALUES ('BMD','Bermuda Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('BND','Brunei Darussalam Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('BOB','Bolivia Boliviano','[36,98]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('BRL','Brazil Real','[82,36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('BSD','Bahamas Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('BWP','Botswana Pula','[80]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('BYR','Belarus Ruble','[112,46]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('BZD','Belize Dollar','[66,90,36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('CAD','Canada Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('CHF','Switzerland Franc','[67,72,70]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('CLP','Chile Peso','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('CNY','China Yuan Renminbi','[165]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('COP','Colombia Peso','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('CRC','Costa Rica Colon','[8353]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('CUP','Cuba Peso','[8369]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('CZK','Czech Republic Koruna','[75,269]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('DEM','Deutsch mark',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('DKK','Denmark Krone','[107,114]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('DOP','Dominican Republic Peso','[82,68,36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('DZD','Algeria Dinar',NULL,1);
INSERT INTO `B67171959_c_currencies` VALUES ('EEK','Estonia Kroon','[107,114]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('EGP','Egypt Pound','[163]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('ESP','Pesete',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('EUR','Euro Member Countries','[8364]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('FIM','Mark finlandais',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('FJD','Fiji Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('FKP','Falkland Islands (Malvinas) Pound','[163]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('FRF','Francs francais',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('GBP','United Kingdom Pound','[163]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('GGP','Guernsey Pound','[163]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('GHC','Ghana Cedis','[162]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('GIP','Gibraltar Pound','[163]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('GNF','Franc Guinéen','[70,71]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('GRD','Drachme (grece)',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('GTQ','Guatemala Quetzal','[81]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('GYD','Guyana Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('HKD','Hong Kong Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('HNL','Honduras Lempira','[76]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('HRK','Croatia Kuna','[107,110]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('HUF','Hungary Forint','[70,116]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('IDR','Indonesia Rupiah','[82,112]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('IEP','Livres irlandaises',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('ILS','Israel Shekel','[8362]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('IMP','Isle of Man Pound','[163]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('INR','India Rupee',NULL,1);
INSERT INTO `B67171959_c_currencies` VALUES ('IRR','Iran Rial','[65020]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('ISK','Iceland Krona','[107,114]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('ITL','Lires',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('JEP','Jersey Pound','[163]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('JMD','Jamaica Dollar','[74,36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('JPY','Japan Yen','[165]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('KES','Kenya Shilling',NULL,1);
INSERT INTO `B67171959_c_currencies` VALUES ('KGS','Kyrgyzstan Som','[1083,1074]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('KHR','Cambodia Riel','[6107]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('KPW','Korea (North) Won','[8361]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('KRW','Korea (South) Won','[8361]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('KYD','Cayman Islands Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('KZT','Kazakhstan Tenge','[1083,1074]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('LAK','Laos Kip','[8365]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('LBP','Lebanon Pound','[163]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('LKR','Sri Lanka Rupee','[8360]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('LRD','Liberia Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('LTL','Lithuania Litas','[76,116]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('LUF','Francs luxembourgeois',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('LVL','Latvia Lat','[76,115]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('MAD','Morocco Dirham',NULL,1);
INSERT INTO `B67171959_c_currencies` VALUES ('MGA','Ariary',NULL,1);
INSERT INTO `B67171959_c_currencies` VALUES ('MKD','Macedonia Denar','[1076,1077,1085]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('MNT','Mongolia Tughrik','[8366]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('MRO','Mauritania Ouguiya',NULL,1);
INSERT INTO `B67171959_c_currencies` VALUES ('MUR','Mauritius Rupee','[8360]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('MXN','Mexico Peso','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('MXP','Pesos Mexicans',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('MYR','Malaysia Ringgit','[82,77]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('MZN','Mozambique Metical','[77,84]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('NAD','Namibia Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('NGN','Nigeria Naira','[8358]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('NIO','Nicaragua Cordoba','[67,36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('NLG','Florins',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('NOK','Norway Krone','[107,114]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('NPR','Nepal Rupee','[8360]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('NZD','New Zealand Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('OMR','Oman Rial','[65020]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('PAB','Panama Balboa','[66,47,46]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('PEN','Peru Nuevo Sol','[83,47,46]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('PHP','Philippines Peso','[8369]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('PKR','Pakistan Rupee','[8360]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('PLN','Poland Zloty','[122,322]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('PTE','Escudos',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('PYG','Paraguay Guarani','[71,115]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('QAR','Qatar Riyal','[65020]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('RON','Romania New Leu','[108,101,105]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('RSD','Serbia Dinar','[1044,1080,1085,46]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('RUB','Russia Ruble','[1088,1091,1073]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('SAR','Saudi Arabia Riyal','[65020]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('SBD','Solomon Islands Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('SCR','Seychelles Rupee','[8360]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('SEK','Sweden Krona','[107,114]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('SGD','Singapore Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('SHP','Saint Helena Pound','[163]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('SKK','Couronnes slovaques',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('SOS','Somalia Shilling','[83]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('SRD','Suriname Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('SUR','Rouble',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('SVC','El Salvador Colon','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('SYP','Syria Pound','[163]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('THB','Thailand Baht','[3647]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('TND','Tunisia Dinar',NULL,1);
INSERT INTO `B67171959_c_currencies` VALUES ('TRL','Turkey Lira','[84,76]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('TRY','Turkey Lira','[8356]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('TTD','Trinidad and Tobago Dollar','[84,84,36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('TVD','Tuvalu Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('TWD','Taiwan New Dollar','[78,84,36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('UAH','Ukraine Hryvna','[8372]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('USD','United States Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('UYU','Uruguay Peso','[36,85]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('UZS','Uzbekistan Som','[1083,1074]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('VEF','Venezuela Bolivar Fuerte','[66,115]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('VND','Viet Nam Dong','[8363]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('XAF','Communaute Financiere Africaine (BEAC) CFA Franc',NULL,1);
INSERT INTO `B67171959_c_currencies` VALUES ('XCD','East Caribbean Dollar','[36]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('XEU','Ecus',NULL,0);
INSERT INTO `B67171959_c_currencies` VALUES ('XOF','Communaute Financiere Africaine (BCEAO) Franc',NULL,1);
INSERT INTO `B67171959_c_currencies` VALUES ('XPF','Franc CFP','[70]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('YER','Yemen Rial','[65020]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('ZAR','South Africa Rand','[82]',1);
INSERT INTO `B67171959_c_currencies` VALUES ('ZWD','Zimbabwe Dollar','[90,36]',1);




--
-- Table structure for table `B67171959_c_departements`
--
CREATE TABLE `B67171959_c_departements` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code_departement` varchar(6) NOT NULL,
  `fk_region` int(11) DEFAULT NULL,
  `cheflieu` varchar(50) DEFAULT NULL,
  `tncc` int(11) DEFAULT NULL,
  `ncc` varchar(50) DEFAULT NULL,
  `nom` varchar(50) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_departements` (`code_departement`,`fk_region`),
  KEY `idx_departements_fk_region` (`fk_region`),
  CONSTRAINT `fk_departements_fk_region` FOREIGN KEY (`fk_region`) REFERENCES `B67171959_c_regions` (`code_region`)
) ENGINE=InnoDB AUTO_INCREMENT=1397 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_departements`
--
INSERT INTO `B67171959_c_departements` VALUES (1,0,0,0,0,'-','-',1);
INSERT INTO `B67171959_c_departements` VALUES (2,971,1,97105,3,'GUADELOUPE','Guadeloupe',1);
INSERT INTO `B67171959_c_departements` VALUES (3,972,2,97209,3,'MARTINIQUE','Martinique',1);
INSERT INTO `B67171959_c_departements` VALUES (4,973,3,97302,3,'GUYANE','Guyane',1);
INSERT INTO `B67171959_c_departements` VALUES (5,974,4,97411,3,'REUNION','Réunion',1);
INSERT INTO `B67171959_c_departements` VALUES (6,976,6,97601,3,'MAYOTTE','Mayotte',1);
INSERT INTO `B67171959_c_departements` VALUES (7,'01',82,'01053',5,'AIN','Ain',1);
INSERT INTO `B67171959_c_departements` VALUES (8,'02',22,'02408',5,'AISNE','Aisne',1);
INSERT INTO `B67171959_c_departements` VALUES (9,'03',83,'03190',5,'ALLIER','Allier',1);
INSERT INTO `B67171959_c_departements` VALUES (10,'04',93,'04070',4,'ALPES-DE-HAUTE-PROVENCE','Alpes-de-Haute-Provence',1);
INSERT INTO `B67171959_c_departements` VALUES (11,'05',93,'05061',4,'HAUTES-ALPES','Hautes-Alpes',1);
INSERT INTO `B67171959_c_departements` VALUES (12,'06',93,'06088',4,'ALPES-MARITIMES','Alpes-Maritimes',1);
INSERT INTO `B67171959_c_departements` VALUES (13,'07',82,'07186',5,'ARDECHE','Ardèche',1);
INSERT INTO `B67171959_c_departements` VALUES (14,'08',21,'08105',4,'ARDENNES','Ardennes',1);
INSERT INTO `B67171959_c_departements` VALUES (15,'09',73,'09122',5,'ARIEGE','Ariège',1);
INSERT INTO `B67171959_c_departements` VALUES (16,10,21,10387,5,'AUBE','Aube',1);
INSERT INTO `B67171959_c_departements` VALUES (17,11,91,11069,5,'AUDE','Aude',1);
INSERT INTO `B67171959_c_departements` VALUES (18,12,73,12202,5,'AVEYRON','Aveyron',1);
INSERT INTO `B67171959_c_departements` VALUES (19,13,93,13055,4,'BOUCHES-DU-RHONE','Bouches-du-Rhône',1);
INSERT INTO `B67171959_c_departements` VALUES (20,14,25,14118,2,'CALVADOS','Calvados',1);
INSERT INTO `B67171959_c_departements` VALUES (21,15,83,15014,2,'CANTAL','Cantal',1);
INSERT INTO `B67171959_c_departements` VALUES (22,16,54,16015,3,'CHARENTE','Charente',1);
INSERT INTO `B67171959_c_departements` VALUES (23,17,54,17300,3,'CHARENTE-MARITIME','Charente-Maritime',1);
INSERT INTO `B67171959_c_departements` VALUES (24,18,24,18033,2,'CHER','Cher',1);
INSERT INTO `B67171959_c_departements` VALUES (25,19,74,19272,3,'CORREZE','Corrèze',1);
INSERT INTO `B67171959_c_departements` VALUES (26,'2A',94,'2A004',3,'CORSE-DU-SUD','Corse-du-Sud',1);
INSERT INTO `B67171959_c_departements` VALUES (27,'2B',94,'2B033',3,'HAUTE-CORSE','Haute-Corse',1);
INSERT INTO `B67171959_c_departements` VALUES (28,21,26,21231,3,'COTE-D OR','Côte-d Or',1);
INSERT INTO `B67171959_c_departements` VALUES (29,22,53,22278,4,'COTES-D ARMOR','Côtes-d Armor',1);
INSERT INTO `B67171959_c_departements` VALUES (30,23,74,23096,3,'CREUSE','Creuse',1);
INSERT INTO `B67171959_c_departements` VALUES (31,24,72,24322,3,'DORDOGNE','Dordogne',1);
INSERT INTO `B67171959_c_departements` VALUES (32,25,43,25056,2,'DOUBS','Doubs',1);
INSERT INTO `B67171959_c_departements` VALUES (33,26,82,26362,3,'DROME','Drôme',1);
INSERT INTO `B67171959_c_departements` VALUES (34,27,23,27229,5,'EURE','Eure',1);
INSERT INTO `B67171959_c_departements` VALUES (35,28,24,28085,1,'EURE-ET-LOIR','Eure-et-Loir',1);
INSERT INTO `B67171959_c_departements` VALUES (36,29,53,29232,2,'FINISTERE','Finistère',1);
INSERT INTO `B67171959_c_departements` VALUES (37,30,91,30189,2,'GARD','Gard',1);
INSERT INTO `B67171959_c_departements` VALUES (38,31,73,31555,3,'HAUTE-GARONNE','Haute-Garonne',1);
INSERT INTO `B67171959_c_departements` VALUES (39,32,73,32013,2,'GERS','Gers',1);
INSERT INTO `B67171959_c_departements` VALUES (40,33,72,33063,3,'GIRONDE','Gironde',1);
INSERT INTO `B67171959_c_departements` VALUES (41,34,91,34172,5,'HERAULT','Hérault',1);
INSERT INTO `B67171959_c_departements` VALUES (42,35,53,35238,1,'ILLE-ET-VILAINE','Ille-et-Vilaine',1);
INSERT INTO `B67171959_c_departements` VALUES (43,36,24,36044,5,'INDRE','Indre',1);
INSERT INTO `B67171959_c_departements` VALUES (44,37,24,37261,1,'INDRE-ET-LOIRE','Indre-et-Loire',1);
INSERT INTO `B67171959_c_departements` VALUES (45,38,82,38185,5,'ISERE','Isère',1);
INSERT INTO `B67171959_c_departements` VALUES (46,39,43,39300,2,'JURA','Jura',1);
INSERT INTO `B67171959_c_departements` VALUES (47,40,72,40192,4,'LANDES','Landes',1);
INSERT INTO `B67171959_c_departements` VALUES (48,41,24,41018,0,'LOIR-ET-CHER','Loir-et-Cher',1);
INSERT INTO `B67171959_c_departements` VALUES (49,42,82,42218,3,'LOIRE','Loire',1);
INSERT INTO `B67171959_c_departements` VALUES (50,43,83,43157,3,'HAUTE-LOIRE','Haute-Loire',1);
INSERT INTO `B67171959_c_departements` VALUES (51,44,52,44109,3,'LOIRE-ATLANTIQUE','Loire-Atlantique',1);
INSERT INTO `B67171959_c_departements` VALUES (52,45,24,45234,2,'LOIRET','Loiret',1);
INSERT INTO `B67171959_c_departements` VALUES (53,46,73,46042,2,'LOT','Lot',1);
INSERT INTO `B67171959_c_departements` VALUES (54,47,72,47001,0,'LOT-ET-GARONNE','Lot-et-Garonne',1);
INSERT INTO `B67171959_c_departements` VALUES (55,48,91,48095,3,'LOZERE','Lozère',1);
INSERT INTO `B67171959_c_departements` VALUES (56,49,52,49007,0,'MAINE-ET-LOIRE','Maine-et-Loire',1);
INSERT INTO `B67171959_c_departements` VALUES (57,50,25,50502,3,'MANCHE','Manche',1);
INSERT INTO `B67171959_c_departements` VALUES (58,51,21,51108,3,'MARNE','Marne',1);
INSERT INTO `B67171959_c_departements` VALUES (59,52,21,52121,3,'HAUTE-MARNE','Haute-Marne',1);
INSERT INTO `B67171959_c_departements` VALUES (60,53,52,53130,3,'MAYENNE','Mayenne',1);
INSERT INTO `B67171959_c_departements` VALUES (61,54,41,54395,0,'MEURTHE-ET-MOSELLE','Meurthe-et-Moselle',1);
INSERT INTO `B67171959_c_departements` VALUES (62,55,41,55029,3,'MEUSE','Meuse',1);
INSERT INTO `B67171959_c_departements` VALUES (63,56,53,56260,2,'MORBIHAN','Morbihan',1);
INSERT INTO `B67171959_c_departements` VALUES (64,57,41,57463,3,'MOSELLE','Moselle',1);
INSERT INTO `B67171959_c_departements` VALUES (65,58,26,58194,3,'NIEVRE','Nièvre',1);
INSERT INTO `B67171959_c_departements` VALUES (66,59,31,59350,2,'NORD','Nord',1);
INSERT INTO `B67171959_c_departements` VALUES (67,60,22,60057,5,'OISE','Oise',1);
INSERT INTO `B67171959_c_departements` VALUES (68,61,25,61001,5,'ORNE','Orne',1);
INSERT INTO `B67171959_c_departements` VALUES (69,62,31,62041,2,'PAS-DE-CALAIS','Pas-de-Calais',1);
INSERT INTO `B67171959_c_departements` VALUES (70,63,83,63113,2,'PUY-DE-DOME','Puy-de-Dôme',1);
INSERT INTO `B67171959_c_departements` VALUES (71,64,72,64445,4,'PYRENEES-ATLANTIQUES','Pyrénées-Atlantiques',1);
INSERT INTO `B67171959_c_departements` VALUES (72,65,73,65440,4,'HAUTES-PYRENEES','Hautes-Pyrénées',1);
INSERT INTO `B67171959_c_departements` VALUES (73,66,91,66136,4,'PYRENEES-ORIENTALES','Pyrénées-Orientales',1);
INSERT INTO `B67171959_c_departements` VALUES (74,67,42,67482,2,'BAS-RHIN','Bas-Rhin',1);
INSERT INTO `B67171959_c_departements` VALUES (75,68,42,68066,2,'HAUT-RHIN','Haut-Rhin',1);
INSERT INTO `B67171959_c_departements` VALUES (76,69,82,69123,2,'RHONE','Rhône',1);
INSERT INTO `B67171959_c_departements` VALUES (77,70,43,70550,3,'HAUTE-SAONE','Haute-Saône',1);
INSERT INTO `B67171959_c_departements` VALUES (78,71,26,71270,0,'SAONE-ET-LOIRE','Saône-et-Loire',1);
INSERT INTO `B67171959_c_departements` VALUES (79,72,52,72181,3,'SARTHE','Sarthe',1);
INSERT INTO `B67171959_c_departements` VALUES (80,73,82,73065,3,'SAVOIE','Savoie',1);
INSERT INTO `B67171959_c_departements` VALUES (81,74,82,74010,3,'HAUTE-SAVOIE','Haute-Savoie',1);
INSERT INTO `B67171959_c_departements` VALUES (82,75,11,75056,0,'PARIS','Paris',1);
INSERT INTO `B67171959_c_departements` VALUES (83,76,23,76540,3,'SEINE-MARITIME','Seine-Maritime',1);
INSERT INTO `B67171959_c_departements` VALUES (84,77,11,77288,0,'SEINE-ET-MARNE','Seine-et-Marne',1);
INSERT INTO `B67171959_c_departements` VALUES (85,78,11,78646,4,'YVELINES','Yvelines',1);
INSERT INTO `B67171959_c_departements` VALUES (86,79,54,79191,4,'DEUX-SEVRES','Deux-Sèvres',1);
INSERT INTO `B67171959_c_departements` VALUES (87,80,22,80021,3,'SOMME','Somme',1);
INSERT INTO `B67171959_c_departements` VALUES (88,81,73,81004,2,'TARN','Tarn',1);
INSERT INTO `B67171959_c_departements` VALUES (89,82,73,82121,0,'TARN-ET-GARONNE','Tarn-et-Garonne',1);
INSERT INTO `B67171959_c_departements` VALUES (90,83,93,83137,2,'VAR','Var',1);
INSERT INTO `B67171959_c_departements` VALUES (91,84,93,84007,0,'VAUCLUSE','Vaucluse',1);
INSERT INTO `B67171959_c_departements` VALUES (92,85,52,85191,3,'VENDEE','Vendée',1);
INSERT INTO `B67171959_c_departements` VALUES (93,86,54,86194,3,'VIENNE','Vienne',1);
INSERT INTO `B67171959_c_departements` VALUES (94,87,74,87085,3,'HAUTE-VIENNE','Haute-Vienne',1);
INSERT INTO `B67171959_c_departements` VALUES (95,88,41,88160,4,'VOSGES','Vosges',1);
INSERT INTO `B67171959_c_departements` VALUES (96,89,26,89024,5,'YONNE','Yonne',1);
INSERT INTO `B67171959_c_departements` VALUES (97,90,43,90010,0,'TERRITOIRE DE BELFORT','Territoire de Belfort',1);
INSERT INTO `B67171959_c_departements` VALUES (98,91,11,91228,5,'ESSONNE','Essonne',1);
INSERT INTO `B67171959_c_departements` VALUES (99,92,11,92050,4,'HAUTS-DE-SEINE','Hauts-de-Seine',1);
INSERT INTO `B67171959_c_departements` VALUES (100,93,11,93008,3,'SEINE-SAINT-DENIS','Seine-Saint-Denis',1);
INSERT INTO `B67171959_c_departements` VALUES (101,94,11,94028,2,'VAL-DE-MARNE','Val-de-Marne',1);
INSERT INTO `B67171959_c_departements` VALUES (102,95,11,95500,2,'VAL-D OISE','Val-d Oise',1);
INSERT INTO `B67171959_c_departements` VALUES (103,'B',4101,NULL,NULL,'BURGENLAND','Burgenland',1);
INSERT INTO `B67171959_c_departements` VALUES (104,'K',4101,NULL,NULL,'KAERNTEN','Kärnten',1);
INSERT INTO `B67171959_c_departements` VALUES (105,'N',4101,NULL,NULL,'NIEDEROESTERREICH','Niederösterreich',1);
INSERT INTO `B67171959_c_departements` VALUES (106,'O',4101,NULL,NULL,'OBEROESTERREICH','Oberösterreich',1);
INSERT INTO `B67171959_c_departements` VALUES (107,'S',4101,NULL,NULL,'SALZBURG','Salzburg',1);
INSERT INTO `B67171959_c_departements` VALUES (108,'ST',4101,NULL,NULL,'STEIERMARK','Steiermark',1);
INSERT INTO `B67171959_c_departements` VALUES (109,'T',4101,NULL,NULL,'TIROL','Tirol',1);
INSERT INTO `B67171959_c_departements` VALUES (110,'V',4101,NULL,NULL,'VORARLBERG','Vorarlberg',1);
INSERT INTO `B67171959_c_departements` VALUES (111,'W',4101,NULL,NULL,'WIEN','Wien',1);
INSERT INTO `B67171959_c_departements` VALUES (112,'01',201,'',1,'ANVERS','Anvers',1);
INSERT INTO `B67171959_c_departements` VALUES (113,'02',203,'',3,'BRUXELLES-CAPITALE','Bruxelles-Capitale',1);
INSERT INTO `B67171959_c_departements` VALUES (114,'03',202,'',2,'BRABANT-WALLON','Brabant-Wallon',1);
INSERT INTO `B67171959_c_departements` VALUES (115,'04',201,'',1,'BRABANT-FLAMAND','Brabant-Flamand',1);
INSERT INTO `B67171959_c_departements` VALUES (116,'05',201,'',1,'FLANDRE-OCCIDENTALE','Flandre-Occidentale',1);
INSERT INTO `B67171959_c_departements` VALUES (117,'06',201,'',1,'FLANDRE-ORIENTALE','Flandre-Orientale',1);
INSERT INTO `B67171959_c_departements` VALUES (118,'07',202,'',2,'HAINAUT','Hainaut',1);
INSERT INTO `B67171959_c_departements` VALUES (119,'08',201,'',2,'LIEGE','Liège',1);
INSERT INTO `B67171959_c_departements` VALUES (120,'09',202,'',1,'LIMBOURG','Limbourg',1);
INSERT INTO `B67171959_c_departements` VALUES (121,10,202,'',2,'LUXEMBOURG','Luxembourg',1);
INSERT INTO `B67171959_c_departements` VALUES (122,11,201,'',2,'NAMUR','Namur',1);
INSERT INTO `B67171959_c_departements` VALUES (123,'AG',315,NULL,NULL,NULL,'AGRIGENTO',1);
INSERT INTO `B67171959_c_departements` VALUES (124,'AL',312,NULL,NULL,NULL,'ALESSANDRIA',1);
INSERT INTO `B67171959_c_departements` VALUES (125,'AN',310,NULL,NULL,NULL,'ANCONA',1);
INSERT INTO `B67171959_c_departements` VALUES (126,'AO',319,NULL,NULL,NULL,'AOSTA',1);
INSERT INTO `B67171959_c_departements` VALUES (127,'AR',316,NULL,NULL,NULL,'AREZZO',1);
INSERT INTO `B67171959_c_departements` VALUES (128,'AP',310,NULL,NULL,NULL,'ASCOLI PICENO',1);
INSERT INTO `B67171959_c_departements` VALUES (129,'AT',312,NULL,NULL,NULL,'ASTI',1);
INSERT INTO `B67171959_c_departements` VALUES (130,'AV',304,NULL,NULL,NULL,'AVELLINO',1);
INSERT INTO `B67171959_c_departements` VALUES (131,'BA',313,NULL,NULL,NULL,'BARI',1);
INSERT INTO `B67171959_c_departements` VALUES (132,'BT',313,NULL,NULL,NULL,'BARLETTA-ANDRIA-TRANI',1);
INSERT INTO `B67171959_c_departements` VALUES (133,'BL',320,NULL,NULL,NULL,'BELLUNO',1);
INSERT INTO `B67171959_c_departements` VALUES (134,'BN',304,NULL,NULL,NULL,'BENEVENTO',1);
INSERT INTO `B67171959_c_departements` VALUES (135,'BG',309,NULL,NULL,NULL,'BERGAMO',1);
INSERT INTO `B67171959_c_departements` VALUES (136,'BI',312,NULL,NULL,NULL,'BIELLA',1);
INSERT INTO `B67171959_c_departements` VALUES (137,'BO',305,NULL,NULL,NULL,'BOLOGNA',1);
INSERT INTO `B67171959_c_departements` VALUES (138,'BZ',317,NULL,NULL,NULL,'BOLZANO',1);
INSERT INTO `B67171959_c_departements` VALUES (139,'BS',309,NULL,NULL,NULL,'BRESCIA',1);
INSERT INTO `B67171959_c_departements` VALUES (140,'BR',313,NULL,NULL,NULL,'BRINDISI',1);
INSERT INTO `B67171959_c_departements` VALUES (141,'CA',314,NULL,NULL,NULL,'CAGLIARI',1);
INSERT INTO `B67171959_c_departements` VALUES (142,'CL',315,NULL,NULL,NULL,'CALTANISSETTA',1);
INSERT INTO `B67171959_c_departements` VALUES (143,'CB',311,NULL,NULL,NULL,'CAMPOBASSO',1);
INSERT INTO `B67171959_c_departements` VALUES (144,'CI',314,NULL,NULL,NULL,'CARBONIA-IGLESIAS',1);
INSERT INTO `B67171959_c_departements` VALUES (145,'CE',304,NULL,NULL,NULL,'CASERTA',1);
INSERT INTO `B67171959_c_departements` VALUES (146,'CT',315,NULL,NULL,NULL,'CATANIA',1);
INSERT INTO `B67171959_c_departements` VALUES (147,'CZ',303,NULL,NULL,NULL,'CATANZARO',1);
INSERT INTO `B67171959_c_departements` VALUES (148,'CH',301,NULL,NULL,NULL,'CHIETI',1);
INSERT INTO `B67171959_c_departements` VALUES (149,'CO',309,NULL,NULL,NULL,'COMO',1);
INSERT INTO `B67171959_c_departements` VALUES (150,'CS',303,NULL,NULL,NULL,'COSENZA',1);
INSERT INTO `B67171959_c_departements` VALUES (151,'CR',309,NULL,NULL,NULL,'CREMONA',1);
INSERT INTO `B67171959_c_departements` VALUES (152,'KR',303,NULL,NULL,NULL,'CROTONE',1);
INSERT INTO `B67171959_c_departements` VALUES (153,'CN',312,NULL,NULL,NULL,'CUNEO',1);
INSERT INTO `B67171959_c_departements` VALUES (154,'EN',315,NULL,NULL,NULL,'ENNA',1);
INSERT INTO `B67171959_c_departements` VALUES (155,'FM',310,NULL,NULL,NULL,'FERMO',1);
INSERT INTO `B67171959_c_departements` VALUES (156,'FE',305,NULL,NULL,NULL,'FERRARA',1);
INSERT INTO `B67171959_c_departements` VALUES (157,'FI',316,NULL,NULL,NULL,'FIRENZE',1);
INSERT INTO `B67171959_c_departements` VALUES (158,'FG',313,NULL,NULL,NULL,'FOGGIA',1);
INSERT INTO `B67171959_c_departements` VALUES (159,'FC',305,NULL,NULL,NULL,'FORLI-CESENA',1);
INSERT INTO `B67171959_c_departements` VALUES (160,'FR',307,NULL,NULL,NULL,'FROSINONE',1);
INSERT INTO `B67171959_c_departements` VALUES (161,'GE',308,NULL,NULL,NULL,'GENOVA',1);
INSERT INTO `B67171959_c_departements` VALUES (162,'GO',306,NULL,NULL,NULL,'GORIZIA',1);
INSERT INTO `B67171959_c_departements` VALUES (163,'GR',316,NULL,NULL,NULL,'GROSSETO',1);
INSERT INTO `B67171959_c_departements` VALUES (164,'IM',308,NULL,NULL,NULL,'IMPERIA',1);
INSERT INTO `B67171959_c_departements` VALUES (165,'IS',311,NULL,NULL,NULL,'ISERNIA',1);
INSERT INTO `B67171959_c_departements` VALUES (166,'SP',308,NULL,NULL,NULL,'LA SPEZIA',1);
INSERT INTO `B67171959_c_departements` VALUES (167,'AQ',301,NULL,NULL,NULL,'L AQUILA',1);
INSERT INTO `B67171959_c_departements` VALUES (168,'LT',307,NULL,NULL,NULL,'LATINA',1);
INSERT INTO `B67171959_c_departements` VALUES (169,'LE',313,NULL,NULL,NULL,'LECCE',1);
INSERT INTO `B67171959_c_departements` VALUES (170,'LC',309,NULL,NULL,NULL,'LECCO',1);
INSERT INTO `B67171959_c_departements` VALUES (171,'LI',314,NULL,NULL,NULL,'LIVORNO',1);
INSERT INTO `B67171959_c_departements` VALUES (172,'LO',309,NULL,NULL,NULL,'LODI',1);
INSERT INTO `B67171959_c_departements` VALUES (173,'LU',316,NULL,NULL,NULL,'LUCCA',1);
INSERT INTO `B67171959_c_departements` VALUES (174,'MC',310,NULL,NULL,NULL,'MACERATA',1);
INSERT INTO `B67171959_c_departements` VALUES (175,'MN',309,NULL,NULL,NULL,'MANTOVA',1);
INSERT INTO `B67171959_c_departements` VALUES (176,'MS',316,NULL,NULL,NULL,'MASSA-CARRARA',1);
INSERT INTO `B67171959_c_departements` VALUES (177,'MT',302,NULL,NULL,NULL,'MATERA',1);
INSERT INTO `B67171959_c_departements` VALUES (178,'VS',314,NULL,NULL,NULL,'MEDIO CAMPIDANO',1);
INSERT INTO `B67171959_c_departements` VALUES (179,'ME',315,NULL,NULL,NULL,'MESSINA',1);
INSERT INTO `B67171959_c_departements` VALUES (180,'MI',309,NULL,NULL,NULL,'MILANO',1);
INSERT INTO `B67171959_c_departements` VALUES (181,'MB',309,NULL,NULL,NULL,'MONZA e BRIANZA',1);
INSERT INTO `B67171959_c_departements` VALUES (182,'MO',305,NULL,NULL,NULL,'MODENA',1);
INSERT INTO `B67171959_c_departements` VALUES (183,'NA',304,NULL,NULL,NULL,'NAPOLI',1);
INSERT INTO `B67171959_c_departements` VALUES (184,'NO',312,NULL,NULL,NULL,'NOVARA',1);
INSERT INTO `B67171959_c_departements` VALUES (185,'NU',314,NULL,NULL,NULL,'NUORO',1);
INSERT INTO `B67171959_c_departements` VALUES (186,'OG',314,NULL,NULL,NULL,'OGLIASTRA',1);
INSERT INTO `B67171959_c_departements` VALUES (187,'OT',314,NULL,NULL,NULL,'OLBIA-TEMPIO',1);
INSERT INTO `B67171959_c_departements` VALUES (188,'OR',314,NULL,NULL,NULL,'ORISTANO',1);
INSERT INTO `B67171959_c_departements` VALUES (189,'PD',320,NULL,NULL,NULL,'PADOVA',1);
INSERT INTO `B67171959_c_departements` VALUES (190,'PA',315,NULL,NULL,NULL,'PALERMO',1);
INSERT INTO `B67171959_c_departements` VALUES (191,'PR',305,NULL,NULL,NULL,'PARMA',1);
INSERT INTO `B67171959_c_departements` VALUES (192,'PV',309,NULL,NULL,NULL,'PAVIA',1);
INSERT INTO `B67171959_c_departements` VALUES (193,'PG',318,NULL,NULL,NULL,'PERUGIA',1);
INSERT INTO `B67171959_c_departements` VALUES (194,'PU',310,NULL,NULL,NULL,'PESARO e URBINO',1);
INSERT INTO `B67171959_c_departements` VALUES (195,'PE',301,NULL,NULL,NULL,'PESCARA',1);
INSERT INTO `B67171959_c_departements` VALUES (196,'PC',305,NULL,NULL,NULL,'PIACENZA',1);
INSERT INTO `B67171959_c_departements` VALUES (197,'PI',316,NULL,NULL,NULL,'PISA',1);
INSERT INTO `B67171959_c_departements` VALUES (198,'PT',316,NULL,NULL,NULL,'PISTOIA',1);
INSERT INTO `B67171959_c_departements` VALUES (199,'PN',306,NULL,NULL,NULL,'PORDENONE',1);
INSERT INTO `B67171959_c_departements` VALUES (200,'PZ',302,NULL,NULL,NULL,'POTENZA',1);
INSERT INTO `B67171959_c_departements` VALUES (201,'PO',316,NULL,NULL,NULL,'PRATO',1);
INSERT INTO `B67171959_c_departements` VALUES (202,'RG',315,NULL,NULL,NULL,'RAGUSA',1);
INSERT INTO `B67171959_c_departements` VALUES (203,'RA',305,NULL,NULL,NULL,'RAVENNA',1);
INSERT INTO `B67171959_c_departements` VALUES (204,'RC',303,NULL,NULL,NULL,'REGGIO CALABRIA',1);
INSERT INTO `B67171959_c_departements` VALUES (205,'RE',305,NULL,NULL,NULL,'REGGIO NELL EMILIA',1);
INSERT INTO `B67171959_c_departements` VALUES (206,'RI',307,NULL,NULL,NULL,'RIETI',1);
INSERT INTO `B67171959_c_departements` VALUES (207,'RN',305,NULL,NULL,NULL,'RIMINI',1);
INSERT INTO `B67171959_c_departements` VALUES (208,'RM',307,NULL,NULL,NULL,'ROMA',1);
INSERT INTO `B67171959_c_departements` VALUES (209,'RO',320,NULL,NULL,NULL,'ROVIGO',1);
INSERT INTO `B67171959_c_departements` VALUES (210,'SA',304,NULL,NULL,NULL,'SALERNO',1);
INSERT INTO `B67171959_c_departements` VALUES (211,'SS',314,NULL,NULL,NULL,'SASSARI',1);
INSERT INTO `B67171959_c_departements` VALUES (212,'SV',308,NULL,NULL,NULL,'SAVONA',1);
INSERT INTO `B67171959_c_departements` VALUES (213,'SI',316,NULL,NULL,NULL,'SIENA',1);
INSERT INTO `B67171959_c_departements` VALUES (214,'SR',315,NULL,NULL,NULL,'SIRACUSA',1);
INSERT INTO `B67171959_c_departements` VALUES (215,'SO',309,NULL,NULL,NULL,'SONDRIO',1);
INSERT INTO `B67171959_c_departements` VALUES (216,'TA',313,NULL,NULL,NULL,'TARANTO',1);
INSERT INTO `B67171959_c_departements` VALUES (217,'TE',301,NULL,NULL,NULL,'TERAMO',1);
INSERT INTO `B67171959_c_departements` VALUES (218,'TR',318,NULL,NULL,NULL,'TERNI',1);
INSERT INTO `B67171959_c_departements` VALUES (219,'TO',312,NULL,NULL,NULL,'TORINO',1);
INSERT INTO `B67171959_c_departements` VALUES (220,'TP',315,NULL,NULL,NULL,'TRAPANI',1);
INSERT INTO `B67171959_c_departements` VALUES (221,'TN',317,NULL,NULL,NULL,'TRENTO',1);
INSERT INTO `B67171959_c_departements` VALUES (222,'TV',320,NULL,NULL,NULL,'TREVISO',1);
INSERT INTO `B67171959_c_departements` VALUES (223,'TS',306,NULL,NULL,NULL,'TRIESTE',1);
INSERT INTO `B67171959_c_departements` VALUES (224,'UD',306,NULL,NULL,NULL,'UDINE',1);
INSERT INTO `B67171959_c_departements` VALUES (225,'VA',309,NULL,NULL,NULL,'VARESE',1);
INSERT INTO `B67171959_c_departements` VALUES (226,'VE',320,NULL,NULL,NULL,'VENEZIA',1);
INSERT INTO `B67171959_c_departements` VALUES (227,'VB',312,NULL,NULL,NULL,'VERBANO-CUSIO-OSSOLA',1);
INSERT INTO `B67171959_c_departements` VALUES (228,'VC',312,NULL,NULL,NULL,'VERCELLI',1);
INSERT INTO `B67171959_c_departements` VALUES (229,'VR',320,NULL,NULL,NULL,'VERONA',1);
INSERT INTO `B67171959_c_departements` VALUES (230,'VV',303,NULL,NULL,NULL,'VIBO VALENTIA',1);
INSERT INTO `B67171959_c_departements` VALUES (231,'VI',320,NULL,NULL,NULL,'VICENZA',1);
INSERT INTO `B67171959_c_departements` VALUES (232,'VT',307,NULL,NULL,NULL,'VITERBO',1);
INSERT INTO `B67171959_c_departements` VALUES (233,'AL01',1301,'',0,'','Wilaya d\'Adrar',1);
INSERT INTO `B67171959_c_departements` VALUES (234,'AL02',1301,'',0,'','Wilaya de Chlef',1);
INSERT INTO `B67171959_c_departements` VALUES (235,'AL03',1301,'',0,'','Wilaya de Laghouat',1);
INSERT INTO `B67171959_c_departements` VALUES (236,'AL04',1301,'',0,'','Wilaya d\'Oum El Bouaghi',1);
INSERT INTO `B67171959_c_departements` VALUES (237,'AL05',1301,'',0,'','Wilaya de Batna',1);
INSERT INTO `B67171959_c_departements` VALUES (238,'AL06',1301,'',0,'','Wilaya de Béjaïa',1);
INSERT INTO `B67171959_c_departements` VALUES (239,'AL07',1301,'',0,'','Wilaya de Biskra',1);
INSERT INTO `B67171959_c_departements` VALUES (240,'AL08',1301,'',0,'','Wilaya de Béchar',1);
INSERT INTO `B67171959_c_departements` VALUES (241,'AL09',1301,'',0,'','Wilaya de Blida',1);
INSERT INTO `B67171959_c_departements` VALUES (242,'AL10',1301,'',0,'','Wilaya de Bouira',1);
INSERT INTO `B67171959_c_departements` VALUES (243,'AL11',1301,'',0,'','Wilaya de Tamanrasset',1);
INSERT INTO `B67171959_c_departements` VALUES (244,'AL12',1301,'',0,'','Wilaya de Tébessa',1);
INSERT INTO `B67171959_c_departements` VALUES (245,'AL13',1301,'',0,'','Wilaya de Tlemcen',1);
INSERT INTO `B67171959_c_departements` VALUES (246,'AL14',1301,'',0,'','Wilaya de Tiaret',1);
INSERT INTO `B67171959_c_departements` VALUES (247,'AL15',1301,'',0,'','Wilaya de Tizi Ouzou',1);
INSERT INTO `B67171959_c_departements` VALUES (248,'AL16',1301,'',0,'','Wilaya d\'Alger',1);
INSERT INTO `B67171959_c_departements` VALUES (249,'AL17',1301,'',0,'','Wilaya de Djelfa',1);
INSERT INTO `B67171959_c_departements` VALUES (250,'AL18',1301,'',0,'','Wilaya de Jijel',1);
INSERT INTO `B67171959_c_departements` VALUES (251,'AL19',1301,'',0,'','Wilaya de Sétif	',1);
INSERT INTO `B67171959_c_departements` VALUES (252,'AL20',1301,'',0,'','Wilaya de Saïda',1);
INSERT INTO `B67171959_c_departements` VALUES (253,'AL21',1301,'',0,'','Wilaya de Skikda',1);
INSERT INTO `B67171959_c_departements` VALUES (254,'AL22',1301,'',0,'','Wilaya de Sidi Bel Abbès',1);
INSERT INTO `B67171959_c_departements` VALUES (255,'AL23',1301,'',0,'','Wilaya d\'Annaba',1);
INSERT INTO `B67171959_c_departements` VALUES (256,'AL24',1301,'',0,'','Wilaya de Guelma',1);
INSERT INTO `B67171959_c_departements` VALUES (257,'AL25',1301,'',0,'','Wilaya de Constantine',1);
INSERT INTO `B67171959_c_departements` VALUES (258,'AL26',1301,'',0,'','Wilaya de Médéa',1);
INSERT INTO `B67171959_c_departements` VALUES (259,'AL27',1301,'',0,'','Wilaya de Mostaganem',1);
INSERT INTO `B67171959_c_departements` VALUES (260,'AL28',1301,'',0,'','Wilaya de M\'Sila',1);
INSERT INTO `B67171959_c_departements` VALUES (261,'AL29',1301,'',0,'','Wilaya de Mascara',1);
INSERT INTO `B67171959_c_departements` VALUES (262,'AL30',1301,'',0,'','Wilaya d\'Ouargla',1);
INSERT INTO `B67171959_c_departements` VALUES (263,'AL31',1301,'',0,'','Wilaya d\'Oran',1);
INSERT INTO `B67171959_c_departements` VALUES (264,'AL32',1301,'',0,'','Wilaya d\'El Bayadh',1);
INSERT INTO `B67171959_c_departements` VALUES (265,'AL33',1301,'',0,'','Wilaya d\'Illizi',1);
INSERT INTO `B67171959_c_departements` VALUES (266,'AL34',1301,'',0,'','Wilaya de Bordj Bou Arreridj',1);
INSERT INTO `B67171959_c_departements` VALUES (267,'AL35',1301,'',0,'','Wilaya de Boumerdès',1);
INSERT INTO `B67171959_c_departements` VALUES (268,'AL36',1301,'',0,'','Wilaya d\'El Tarf',1);
INSERT INTO `B67171959_c_departements` VALUES (269,'AL37',1301,'',0,'','Wilaya de Tindouf',1);
INSERT INTO `B67171959_c_departements` VALUES (270,'AL38',1301,'',0,'','Wilaya de Tissemsilt',1);
INSERT INTO `B67171959_c_departements` VALUES (271,'AL39',1301,'',0,'','Wilaya d\'El Oued',1);
INSERT INTO `B67171959_c_departements` VALUES (272,'AL40',1301,'',0,'','Wilaya de Khenchela',1);
INSERT INTO `B67171959_c_departements` VALUES (273,'AL41',1301,'',0,'','Wilaya de Souk Ahras',1);
INSERT INTO `B67171959_c_departements` VALUES (274,'AL42',1301,'',0,'','Wilaya de Tipaza',1);
INSERT INTO `B67171959_c_departements` VALUES (275,'AL43',1301,'',0,'','Wilaya de Mila',1);
INSERT INTO `B67171959_c_departements` VALUES (276,'AL44',1301,'',0,'','Wilaya d\'Aïn Defla',1);
INSERT INTO `B67171959_c_departements` VALUES (277,'AL45',1301,'',0,'','Wilaya de Naâma',1);
INSERT INTO `B67171959_c_departements` VALUES (278,'AL46',1301,'',0,'','Wilaya d\'Aïn Témouchent',1);
INSERT INTO `B67171959_c_departements` VALUES (279,'AL47',1301,'',0,'','Wilaya de Ghardaia',1);
INSERT INTO `B67171959_c_departements` VALUES (280,'AL48',1301,'',0,'','Wilaya de Relizane',1);
INSERT INTO `B67171959_c_departements` VALUES (281,'MA',1209,'',0,'','Province de Benslimane',1);
INSERT INTO `B67171959_c_departements` VALUES (282,'MA1',1209,'',0,'','Province de Berrechid',1);
INSERT INTO `B67171959_c_departements` VALUES (283,'MA2',1209,'',0,'','Province de Khouribga',1);
INSERT INTO `B67171959_c_departements` VALUES (284,'MA3',1209,'',0,'','Province de Settat',1);
INSERT INTO `B67171959_c_departements` VALUES (285,'MA4',1210,'',0,'','Province d\'El Jadida',1);
INSERT INTO `B67171959_c_departements` VALUES (286,'MA5',1210,'',0,'','Province de Safi',1);
INSERT INTO `B67171959_c_departements` VALUES (287,'MA6',1210,'',0,'','Province de Sidi Bennour',1);
INSERT INTO `B67171959_c_departements` VALUES (288,'MA7',1210,'',0,'','Province de Youssoufia',1);
INSERT INTO `B67171959_c_departements` VALUES (289,'MA6B',1205,'',0,'','Préfecture de Fès',1);
INSERT INTO `B67171959_c_departements` VALUES (290,'MA7B',1205,'',0,'','Province de Boulemane',1);
INSERT INTO `B67171959_c_departements` VALUES (291,'MA8',1205,'',0,'','Province de Moulay Yacoub',1);
INSERT INTO `B67171959_c_departements` VALUES (292,'MA9',1205,'',0,'','Province de Sefrou',1);
INSERT INTO `B67171959_c_departements` VALUES (293,'MA8A',1202,'',0,'','Province de Kénitra',1);
INSERT INTO `B67171959_c_departements` VALUES (294,'MA9A',1202,'',0,'','Province de Sidi Kacem',1);
INSERT INTO `B67171959_c_departements` VALUES (295,'MA10',1202,'',0,'','Province de Sidi Slimane',1);
INSERT INTO `B67171959_c_departements` VALUES (296,'MA11',1208,'',0,'','Préfecture de Casablanca',1);
INSERT INTO `B67171959_c_departements` VALUES (297,'MA12',1208,'',0,'','Préfecture de Mohammédia',1);
INSERT INTO `B67171959_c_departements` VALUES (298,'MA13',1208,'',0,'','Province de Médiouna',1);
INSERT INTO `B67171959_c_departements` VALUES (299,'MA14',1208,'',0,'','Province de Nouaceur',1);
INSERT INTO `B67171959_c_departements` VALUES (300,'MA15',1214,'',0,'','Province d\'Assa-Zag',1);
INSERT INTO `B67171959_c_departements` VALUES (301,'MA16',1214,'',0,'','Province d\'Es-Semara',1);
INSERT INTO `B67171959_c_departements` VALUES (302,'MA17A',1214,'',0,'','Province de Guelmim',1);
INSERT INTO `B67171959_c_departements` VALUES (303,'MA18',1214,'',0,'','Province de Tata',1);
INSERT INTO `B67171959_c_departements` VALUES (304,'MA19',1214,'',0,'','Province de Tan-Tan',1);
INSERT INTO `B67171959_c_departements` VALUES (305,'MA15',1215,'',0,'','Province de Boujdour',1);
INSERT INTO `B67171959_c_departements` VALUES (306,'MA16',1215,'',0,'','Province de Lâayoune',1);
INSERT INTO `B67171959_c_departements` VALUES (307,'MA17',1215,'',0,'','Province de Tarfaya',1);
INSERT INTO `B67171959_c_departements` VALUES (308,'MA18',1211,'',0,'','Préfecture de Marrakech',1);
INSERT INTO `B67171959_c_departements` VALUES (309,'MA19',1211,'',0,'','Province d\'Al Haouz',1);
INSERT INTO `B67171959_c_departements` VALUES (310,'MA20',1211,'',0,'','Province de Chichaoua',1);
INSERT INTO `B67171959_c_departements` VALUES (311,'MA21',1211,'',0,'','Province d\'El Kelâa des Sraghna',1);
INSERT INTO `B67171959_c_departements` VALUES (312,'MA22',1211,'',0,'','Province d\'Essaouira',1);
INSERT INTO `B67171959_c_departements` VALUES (313,'MA23',1211,'',0,'','Province de Rehamna',1);
INSERT INTO `B67171959_c_departements` VALUES (314,'MA24',1206,'',0,'','Préfecture de Meknès',1);
INSERT INTO `B67171959_c_departements` VALUES (315,'MA25',1206,'',0,'','Province d’El Hajeb',1);
INSERT INTO `B67171959_c_departements` VALUES (316,'MA26',1206,'',0,'','Province d\'Errachidia',1);
INSERT INTO `B67171959_c_departements` VALUES (317,'MA27',1206,'',0,'','Province d’Ifrane',1);
INSERT INTO `B67171959_c_departements` VALUES (318,'MA28',1206,'',0,'','Province de Khénifra',1);
INSERT INTO `B67171959_c_departements` VALUES (319,'MA29',1206,'',0,'','Province de Midelt',1);
INSERT INTO `B67171959_c_departements` VALUES (320,'MA30',1204,'',0,'','Préfecture d\'Oujda-Angad',1);
INSERT INTO `B67171959_c_departements` VALUES (321,'MA31',1204,'',0,'','Province de Berkane',1);
INSERT INTO `B67171959_c_departements` VALUES (322,'MA32',1204,'',0,'','Province de Driouch',1);
INSERT INTO `B67171959_c_departements` VALUES (323,'MA33',1204,'',0,'','Province de Figuig',1);
INSERT INTO `B67171959_c_departements` VALUES (324,'MA34',1204,'',0,'','Province de Jerada',1);
INSERT INTO `B67171959_c_departements` VALUES (325,'MA35',1204,'',0,'','Province de Nador',1);
INSERT INTO `B67171959_c_departements` VALUES (326,'MA36',1204,'',0,'','Province de Taourirt',1);
INSERT INTO `B67171959_c_departements` VALUES (327,'MA37',1216,'',0,'','Province d\'Aousserd',1);
INSERT INTO `B67171959_c_departements` VALUES (328,'MA38',1216,'',0,'','Province d\'Oued Ed-Dahab',1);
INSERT INTO `B67171959_c_departements` VALUES (329,'MA39',1207,'',0,'','Préfecture de Rabat',1);
INSERT INTO `B67171959_c_departements` VALUES (330,'MA40',1207,'',0,'','Préfecture de Skhirat-Témara',1);
INSERT INTO `B67171959_c_departements` VALUES (331,'MA41',1207,'',0,'','Préfecture de Salé',1);
INSERT INTO `B67171959_c_departements` VALUES (332,'MA42',1207,'',0,'','Province de Khémisset',1);
INSERT INTO `B67171959_c_departements` VALUES (333,'MA43',1213,'',0,'','Préfecture d\'Agadir Ida-Outanane',1);
INSERT INTO `B67171959_c_departements` VALUES (334,'MA44',1213,'',0,'','Préfecture d\'Inezgane-Aït Melloul',1);
INSERT INTO `B67171959_c_departements` VALUES (335,'MA45',1213,'',0,'','Province de Chtouka-Aït Baha',1);
INSERT INTO `B67171959_c_departements` VALUES (336,'MA46',1213,'',0,'','Province d\'Ouarzazate',1);
INSERT INTO `B67171959_c_departements` VALUES (337,'MA47',1213,'',0,'','Province de Sidi Ifni',1);
INSERT INTO `B67171959_c_departements` VALUES (338,'MA48',1213,'',0,'','Province de Taroudant',1);
INSERT INTO `B67171959_c_departements` VALUES (339,'MA49',1213,'',0,'','Province de Tinghir',1);
INSERT INTO `B67171959_c_departements` VALUES (340,'MA50',1213,'',0,'','Province de Tiznit',1);
INSERT INTO `B67171959_c_departements` VALUES (341,'MA51',1213,'',0,'','Province de Zagora',1);
INSERT INTO `B67171959_c_departements` VALUES (342,'MA52',1212,'',0,'','Province d\'Azilal',1);
INSERT INTO `B67171959_c_departements` VALUES (343,'MA53',1212,'',0,'','Province de Beni Mellal',1);
INSERT INTO `B67171959_c_departements` VALUES (344,'MA54',1212,'',0,'','Province de Fquih Ben Salah',1);
INSERT INTO `B67171959_c_departements` VALUES (345,'MA55',1201,'',0,'','Préfecture de M\'diq-Fnideq',1);
INSERT INTO `B67171959_c_departements` VALUES (346,'MA56',1201,'',0,'','Préfecture de Tanger-Asilah',1);
INSERT INTO `B67171959_c_departements` VALUES (347,'MA57',1201,'',0,'','Province de Chefchaouen',1);
INSERT INTO `B67171959_c_departements` VALUES (348,'MA58',1201,'',0,'','Province de Fahs-Anjra',1);
INSERT INTO `B67171959_c_departements` VALUES (349,'MA59',1201,'',0,'','Province de Larache',1);
INSERT INTO `B67171959_c_departements` VALUES (350,'MA60',1201,'',0,'','Province d\'Ouezzane',1);
INSERT INTO `B67171959_c_departements` VALUES (351,'MA61',1201,'',0,'','Province de Tétouan',1);
INSERT INTO `B67171959_c_departements` VALUES (352,'MA62',1203,'',0,'','Province de Guercif',1);
INSERT INTO `B67171959_c_departements` VALUES (353,'MA63',1203,'',0,'','Province d\'Al Hoceïma',1);
INSERT INTO `B67171959_c_departements` VALUES (354,'MA64',1203,'',0,'','Province de Taounate',1);
INSERT INTO `B67171959_c_departements` VALUES (355,'MA65',1203,'',0,'','Province de Taza',1);
INSERT INTO `B67171959_c_departements` VALUES (356,'MA6A',1205,'',0,'','Préfecture de Fès',1);
INSERT INTO `B67171959_c_departements` VALUES (357,'MA7A',1205,'',0,'','Province de Boulemane',1);
INSERT INTO `B67171959_c_departements` VALUES (358,'MA15A',1214,'',0,'','Province d\'Assa-Zag',1);
INSERT INTO `B67171959_c_departements` VALUES (359,'MA16A',1214,'',0,'','Province d\'Es-Semara',1);
INSERT INTO `B67171959_c_departements` VALUES (360,'MA18A',1211,'',0,'','Préfecture de Marrakech',1);
INSERT INTO `B67171959_c_departements` VALUES (361,'MA19A',1214,'',0,'','Province de Tan-Tan',1);
INSERT INTO `B67171959_c_departements` VALUES (362,'MA19B',1214,'',0,'','Province de Tan-Tan',1);
INSERT INTO `B67171959_c_departements` VALUES (363,'TN01',1001,'',0,'','Ariana',1);
INSERT INTO `B67171959_c_departements` VALUES (364,'TN02',1001,'',0,'','Béja',1);
INSERT INTO `B67171959_c_departements` VALUES (365,'TN03',1001,'',0,'','Ben Arous',1);
INSERT INTO `B67171959_c_departements` VALUES (366,'TN04',1001,'',0,'','Bizerte',1);
INSERT INTO `B67171959_c_departements` VALUES (367,'TN05',1001,'',0,'','Gabès',1);
INSERT INTO `B67171959_c_departements` VALUES (368,'TN06',1001,'',0,'','Gafsa',1);
INSERT INTO `B67171959_c_departements` VALUES (369,'TN07',1001,'',0,'','Jendouba',1);
INSERT INTO `B67171959_c_departements` VALUES (370,'TN08',1001,'',0,'','Kairouan',1);
INSERT INTO `B67171959_c_departements` VALUES (371,'TN09',1001,'',0,'','Kasserine',1);
INSERT INTO `B67171959_c_departements` VALUES (372,'TN10',1001,'',0,'','Kébili',1);
INSERT INTO `B67171959_c_departements` VALUES (373,'TN11',1001,'',0,'','La Manouba',1);
INSERT INTO `B67171959_c_departements` VALUES (374,'TN12',1001,'',0,'','Le Kef',1);
INSERT INTO `B67171959_c_departements` VALUES (375,'TN13',1001,'',0,'','Mahdia',1);
INSERT INTO `B67171959_c_departements` VALUES (376,'TN14',1001,'',0,'','Médenine',1);
INSERT INTO `B67171959_c_departements` VALUES (377,'TN15',1001,'',0,'','Monastir',1);
INSERT INTO `B67171959_c_departements` VALUES (378,'TN16',1001,'',0,'','Nabeul',1);
INSERT INTO `B67171959_c_departements` VALUES (379,'TN17',1001,'',0,'','Sfax',1);
INSERT INTO `B67171959_c_departements` VALUES (380,'TN18',1001,'',0,'','Sidi Bouzid',1);
INSERT INTO `B67171959_c_departements` VALUES (381,'TN19',1001,'',0,'','Siliana',1);
INSERT INTO `B67171959_c_departements` VALUES (382,'TN20',1001,'',0,'','Sousse',1);
INSERT INTO `B67171959_c_departements` VALUES (383,'TN21',1001,'',0,'','Tataouine',1);
INSERT INTO `B67171959_c_departements` VALUES (384,'TN22',1001,'',0,'','Tozeur',1);
INSERT INTO `B67171959_c_departements` VALUES (385,'TN23',1001,'',0,'','Tunis',1);
INSERT INTO `B67171959_c_departements` VALUES (386,'TN24',1001,'',0,'','Zaghouan',1);
INSERT INTO `B67171959_c_departements` VALUES (387,'001',5201,'',0,'','Belisario Boeto',1);
INSERT INTO `B67171959_c_departements` VALUES (388,'002',5201,'',0,'','Hernando Siles',1);
INSERT INTO `B67171959_c_departements` VALUES (389,'003',5201,'',0,'','Jaime Zudáñez',1);
INSERT INTO `B67171959_c_departements` VALUES (390,'004',5201,'',0,'','Juana Azurduy de Padilla',1);
INSERT INTO `B67171959_c_departements` VALUES (391,'005',5201,'',0,'','Luis Calvo',1);
INSERT INTO `B67171959_c_departements` VALUES (392,'006',5201,'',0,'','Nor Cinti',1);
INSERT INTO `B67171959_c_departements` VALUES (393,'007',5201,'',0,'','Oropeza',1);
INSERT INTO `B67171959_c_departements` VALUES (394,'008',5201,'',0,'','Sud Cinti',1);
INSERT INTO `B67171959_c_departements` VALUES (395,'009',5201,'',0,'','Tomina',1);
INSERT INTO `B67171959_c_departements` VALUES (396,'010',5201,'',0,'','Yamparáez',1);
INSERT INTO `B67171959_c_departements` VALUES (397,'011',5202,'',0,'','Abel Iturralde',1);
INSERT INTO `B67171959_c_departements` VALUES (398,'012',5202,'',0,'','Aroma',1);
INSERT INTO `B67171959_c_departements` VALUES (399,'013',5202,'',0,'','Bautista Saavedra',1);
INSERT INTO `B67171959_c_departements` VALUES (400,'014',5202,'',0,'','Caranavi',1);
INSERT INTO `B67171959_c_departements` VALUES (401,'015',5202,'',0,'','Eliodoro Camacho',1);
INSERT INTO `B67171959_c_departements` VALUES (402,'016',5202,'',0,'','Franz Tamayo',1);
INSERT INTO `B67171959_c_departements` VALUES (403,'017',5202,'',0,'','Gualberto Villarroel',1);
INSERT INTO `B67171959_c_departements` VALUES (404,'018',5202,'',0,'','Ingaví',1);
INSERT INTO `B67171959_c_departements` VALUES (405,'019',5202,'',0,'','Inquisivi',1);
INSERT INTO `B67171959_c_departements` VALUES (406,'020',5202,'',0,'','José Ramón Loayza',1);
INSERT INTO `B67171959_c_departements` VALUES (407,'021',5202,'',0,'','Larecaja',1);
INSERT INTO `B67171959_c_departements` VALUES (408,'022',5202,'',0,'','Los Andes (Bolivia)',1);
INSERT INTO `B67171959_c_departements` VALUES (409,'023',5202,'',0,'','Manco Kapac',1);
INSERT INTO `B67171959_c_departements` VALUES (410,'024',5202,'',0,'','Muñecas',1);
INSERT INTO `B67171959_c_departements` VALUES (411,'025',5202,'',0,'','Nor Yungas',1);
INSERT INTO `B67171959_c_departements` VALUES (412,'026',5202,'',0,'','Omasuyos',1);
INSERT INTO `B67171959_c_departements` VALUES (413,'027',5202,'',0,'','Pacajes',1);
INSERT INTO `B67171959_c_departements` VALUES (414,'028',5202,'',0,'','Pedro Domingo Murillo',1);
INSERT INTO `B67171959_c_departements` VALUES (415,'029',5202,'',0,'','Sud Yungas',1);
INSERT INTO `B67171959_c_departements` VALUES (416,'030',5202,'',0,'','General José Manuel Pando',1);
INSERT INTO `B67171959_c_departements` VALUES (417,'031',5203,'',0,'','Arani',1);
INSERT INTO `B67171959_c_departements` VALUES (418,'032',5203,'',0,'','Arque',1);
INSERT INTO `B67171959_c_departements` VALUES (419,'033',5203,'',0,'','Ayopaya',1);
INSERT INTO `B67171959_c_departements` VALUES (420,'034',5203,'',0,'','Bolívar (Bolivia)',1);
INSERT INTO `B67171959_c_departements` VALUES (421,'035',5203,'',0,'','Campero',1);
INSERT INTO `B67171959_c_departements` VALUES (422,'036',5203,'',0,'','Capinota',1);
INSERT INTO `B67171959_c_departements` VALUES (423,'037',5203,'',0,'','Cercado (Cochabamba)',1);
INSERT INTO `B67171959_c_departements` VALUES (424,'038',5203,'',0,'','Esteban Arze',1);
INSERT INTO `B67171959_c_departements` VALUES (425,'039',5203,'',0,'','Germán Jordán',1);
INSERT INTO `B67171959_c_departements` VALUES (426,'040',5203,'',0,'','José Carrasco',1);
INSERT INTO `B67171959_c_departements` VALUES (427,'041',5203,'',0,'','Mizque',1);
INSERT INTO `B67171959_c_departements` VALUES (428,'042',5203,'',0,'','Punata',1);
INSERT INTO `B67171959_c_departements` VALUES (429,'043',5203,'',0,'','Quillacollo',1);
INSERT INTO `B67171959_c_departements` VALUES (430,'044',5203,'',0,'','Tapacarí',1);
INSERT INTO `B67171959_c_departements` VALUES (431,'045',5203,'',0,'','Tiraque',1);
INSERT INTO `B67171959_c_departements` VALUES (432,'046',5203,'',0,'','Chapare',1);
INSERT INTO `B67171959_c_departements` VALUES (433,'047',5204,'',0,'','Carangas',1);
INSERT INTO `B67171959_c_departements` VALUES (434,'048',5204,'',0,'','Cercado (Oruro)',1);
INSERT INTO `B67171959_c_departements` VALUES (435,'049',5204,'',0,'','Eduardo Avaroa',1);
INSERT INTO `B67171959_c_departements` VALUES (436,'050',5204,'',0,'','Ladislao Cabrera',1);
INSERT INTO `B67171959_c_departements` VALUES (437,'051',5204,'',0,'','Litoral de Atacama',1);
INSERT INTO `B67171959_c_departements` VALUES (438,'052',5204,'',0,'','Mejillones',1);
INSERT INTO `B67171959_c_departements` VALUES (439,'053',5204,'',0,'','Nor Carangas',1);
INSERT INTO `B67171959_c_departements` VALUES (440,'054',5204,'',0,'','Pantaleón Dalence',1);
INSERT INTO `B67171959_c_departements` VALUES (441,'055',5204,'',0,'','Poopó',1);
INSERT INTO `B67171959_c_departements` VALUES (442,'056',5204,'',0,'','Sabaya',1);
INSERT INTO `B67171959_c_departements` VALUES (443,'057',5204,'',0,'','Sajama',1);
INSERT INTO `B67171959_c_departements` VALUES (444,'058',5204,'',0,'','San Pedro de Totora',1);
INSERT INTO `B67171959_c_departements` VALUES (445,'059',5204,'',0,'','Saucarí',1);
INSERT INTO `B67171959_c_departements` VALUES (446,'060',5204,'',0,'','Sebastián Pagador',1);
INSERT INTO `B67171959_c_departements` VALUES (447,'061',5204,'',0,'','Sud Carangas',1);
INSERT INTO `B67171959_c_departements` VALUES (448,'062',5204,'',0,'','Tomás Barrón',1);
INSERT INTO `B67171959_c_departements` VALUES (449,'063',5205,'',0,'','Alonso de Ibáñez',1);
INSERT INTO `B67171959_c_departements` VALUES (450,'064',5205,'',0,'','Antonio Quijarro',1);
INSERT INTO `B67171959_c_departements` VALUES (451,'065',5205,'',0,'','Bernardino Bilbao',1);
INSERT INTO `B67171959_c_departements` VALUES (452,'066',5205,'',0,'','Charcas (Potosí)',1);
INSERT INTO `B67171959_c_departements` VALUES (453,'067',5205,'',0,'','Chayanta',1);
INSERT INTO `B67171959_c_departements` VALUES (454,'068',5205,'',0,'','Cornelio Saavedra',1);
INSERT INTO `B67171959_c_departements` VALUES (455,'069',5205,'',0,'','Daniel Campos',1);
INSERT INTO `B67171959_c_departements` VALUES (456,'070',5205,'',0,'','Enrique Baldivieso',1);
INSERT INTO `B67171959_c_departements` VALUES (457,'071',5205,'',0,'','José María Linares',1);
INSERT INTO `B67171959_c_departements` VALUES (458,'072',5205,'',0,'','Modesto Omiste',1);
INSERT INTO `B67171959_c_departements` VALUES (459,'073',5205,'',0,'','Nor Chichas',1);
INSERT INTO `B67171959_c_departements` VALUES (460,'074',5205,'',0,'','Nor Lípez',1);
INSERT INTO `B67171959_c_departements` VALUES (461,'075',5205,'',0,'','Rafael Bustillo',1);
INSERT INTO `B67171959_c_departements` VALUES (462,'076',5205,'',0,'','Sud Chichas',1);
INSERT INTO `B67171959_c_departements` VALUES (463,'077',5205,'',0,'','Sud Lípez',1);
INSERT INTO `B67171959_c_departements` VALUES (464,'078',5205,'',0,'','Tomás Frías',1);
INSERT INTO `B67171959_c_departements` VALUES (465,'079',5206,'',0,'','Aniceto Arce',1);
INSERT INTO `B67171959_c_departements` VALUES (466,'080',5206,'',0,'','Burdet O\'Connor',1);
INSERT INTO `B67171959_c_departements` VALUES (467,'081',5206,'',0,'','Cercado (Tarija)',1);
INSERT INTO `B67171959_c_departements` VALUES (468,'082',5206,'',0,'','Eustaquio Méndez',1);
INSERT INTO `B67171959_c_departements` VALUES (469,'083',5206,'',0,'','José María Avilés',1);
INSERT INTO `B67171959_c_departements` VALUES (470,'084',5206,'',0,'','Gran Chaco',1);
INSERT INTO `B67171959_c_departements` VALUES (471,'085',5207,'',0,'','Andrés Ibáñez',1);
INSERT INTO `B67171959_c_departements` VALUES (472,'086',5207,'',0,'','Caballero',1);
INSERT INTO `B67171959_c_departements` VALUES (473,'087',5207,'',0,'','Chiquitos',1);
INSERT INTO `B67171959_c_departements` VALUES (474,'088',5207,'',0,'','Cordillera (Bolivia)',1);
INSERT INTO `B67171959_c_departements` VALUES (475,'089',5207,'',0,'','Florida',1);
INSERT INTO `B67171959_c_departements` VALUES (476,'090',5207,'',0,'','Germán Busch',1);
INSERT INTO `B67171959_c_departements` VALUES (477,'091',5207,'',0,'','Guarayos',1);
INSERT INTO `B67171959_c_departements` VALUES (478,'092',5207,'',0,'','Ichilo',1);
INSERT INTO `B67171959_c_departements` VALUES (479,'093',5207,'',0,'','Obispo Santistevan',1);
INSERT INTO `B67171959_c_departements` VALUES (480,'094',5207,'',0,'','Sara',1);
INSERT INTO `B67171959_c_departements` VALUES (481,'095',5207,'',0,'','Vallegrande',1);
INSERT INTO `B67171959_c_departements` VALUES (482,'096',5207,'',0,'','Velasco',1);
INSERT INTO `B67171959_c_departements` VALUES (483,'097',5207,'',0,'','Warnes',1);
INSERT INTO `B67171959_c_departements` VALUES (484,'098',5207,'',0,'','Ángel Sandóval',1);
INSERT INTO `B67171959_c_departements` VALUES (485,'099',5207,'',0,'','Ñuflo de Chaves',1);
INSERT INTO `B67171959_c_departements` VALUES (486,100,5208,'',0,'','Cercado (Beni)',1);
INSERT INTO `B67171959_c_departements` VALUES (487,101,5208,'',0,'','Iténez',1);
INSERT INTO `B67171959_c_departements` VALUES (488,102,5208,'',0,'','Mamoré',1);
INSERT INTO `B67171959_c_departements` VALUES (489,103,5208,'',0,'','Marbán',1);
INSERT INTO `B67171959_c_departements` VALUES (490,104,5208,'',0,'','Moxos',1);
INSERT INTO `B67171959_c_departements` VALUES (491,105,5208,'',0,'','Vaca Díez',1);
INSERT INTO `B67171959_c_departements` VALUES (492,106,5208,'',0,'','Yacuma',1);
INSERT INTO `B67171959_c_departements` VALUES (493,107,5208,'',0,'','General José Ballivián Segurola',1);
INSERT INTO `B67171959_c_departements` VALUES (494,108,5209,'',0,'','Abuná',1);
INSERT INTO `B67171959_c_departements` VALUES (495,109,5209,'',0,'','Madre de Dios',1);
INSERT INTO `B67171959_c_departements` VALUES (496,110,5209,'',0,'','Manuripi',1);
INSERT INTO `B67171959_c_departements` VALUES (497,111,5209,'',0,'','Nicolás Suárez',1);
INSERT INTO `B67171959_c_departements` VALUES (498,112,5209,'',0,'','General Federico Román',1);
INSERT INTO `B67171959_c_departements` VALUES (499,'NSW',2801,'',1,'','New South Wales',1);
INSERT INTO `B67171959_c_departements` VALUES (500,'VIC',2801,'',1,'','Victoria',1);
INSERT INTO `B67171959_c_departements` VALUES (501,'QLD',2801,'',1,'','Queensland',1);
INSERT INTO `B67171959_c_departements` VALUES (502,'SA',2801,'',1,'','South Australia',1);
INSERT INTO `B67171959_c_departements` VALUES (503,'ACT',2801,'',1,'','Australia Capital Territory',1);
INSERT INTO `B67171959_c_departements` VALUES (504,'TAS',2801,'',1,'','Tasmania',1);
INSERT INTO `B67171959_c_departements` VALUES (505,'WA',2801,'',1,'','Western Australia',1);
INSERT INTO `B67171959_c_departements` VALUES (506,'NT',2801,'',1,'','Northern Territory',1);
INSERT INTO `B67171959_c_departements` VALUES (507,'ON',1401,'',1,'','Ontario',1);
INSERT INTO `B67171959_c_departements` VALUES (508,'QC',1401,'',1,'','Quebec',1);
INSERT INTO `B67171959_c_departements` VALUES (509,'NS',1401,'',1,'','Nova Scotia',1);
INSERT INTO `B67171959_c_departements` VALUES (510,'NB',1401,'',1,'','New Brunswick',1);
INSERT INTO `B67171959_c_departements` VALUES (511,'MB',1401,'',1,'','Manitoba',1);
INSERT INTO `B67171959_c_departements` VALUES (512,'BC',1401,'',1,'','British Columbia',1);
INSERT INTO `B67171959_c_departements` VALUES (513,'PE',1401,'',1,'','Prince Edward Island',1);
INSERT INTO `B67171959_c_departements` VALUES (514,'SK',1401,'',1,'','Saskatchewan',1);
INSERT INTO `B67171959_c_departements` VALUES (515,'AB',1401,'',1,'','Alberta',1);
INSERT INTO `B67171959_c_departements` VALUES (516,'NL',1401,'',1,'','Newfoundland and Labrador',1);
INSERT INTO `B67171959_c_departements` VALUES (517,'VI',419,'',19,'ALAVA','Álava',1);
INSERT INTO `B67171959_c_departements` VALUES (518,'AB',404,'',4,'ALBACETE','Albacete',1);
INSERT INTO `B67171959_c_departements` VALUES (519,'A',411,'',11,'ALICANTE','Alicante',1);
INSERT INTO `B67171959_c_departements` VALUES (520,'AL',401,'',1,'ALMERIA','Almería',1);
INSERT INTO `B67171959_c_departements` VALUES (521,'AV',403,'',3,'AVILA','Avila',1);
INSERT INTO `B67171959_c_departements` VALUES (522,'BA',412,'',12,'BADAJOZ','Badajoz',1);
INSERT INTO `B67171959_c_departements` VALUES (523,'PM',414,'',14,'ISLAS BALEARES','Islas Baleares',1);
INSERT INTO `B67171959_c_departements` VALUES (524,'B',406,'',6,'BARCELONA','Barcelona',1);
INSERT INTO `B67171959_c_departements` VALUES (525,'BU',403,'',8,'BURGOS','Burgos',1);
INSERT INTO `B67171959_c_departements` VALUES (526,'CC',412,'',12,'CACERES','Cáceres',1);
INSERT INTO `B67171959_c_departements` VALUES (527,'CA',401,'',1,'CADIZ','Cádiz',1);
INSERT INTO `B67171959_c_departements` VALUES (528,'CS',411,'',11,'CASTELLON','Castellón',1);
INSERT INTO `B67171959_c_departements` VALUES (529,'CR',404,'',4,'CIUDAD REAL','Ciudad Real',1);
INSERT INTO `B67171959_c_departements` VALUES (530,'CO',401,'',1,'CORDOBA','Córdoba',1);
INSERT INTO `B67171959_c_departements` VALUES (531,'C',413,'',13,'LA CORUÑA','La Coruña',1);
INSERT INTO `B67171959_c_departements` VALUES (532,'CU',404,'',4,'CUENCA','Cuenca',1);
INSERT INTO `B67171959_c_departements` VALUES (533,'GI',406,'',6,'GERONA','Gerona',1);
INSERT INTO `B67171959_c_departements` VALUES (534,'GR',401,'',1,'GRANADA','Granada',1);
INSERT INTO `B67171959_c_departements` VALUES (535,'GU',404,'',4,'GUADALAJARA','Guadalajara',1);
INSERT INTO `B67171959_c_departements` VALUES (536,'SS',419,'',19,'GUIPUZCOA','Guipúzcoa',1);
INSERT INTO `B67171959_c_departements` VALUES (537,'H',401,'',1,'HUELVA','Huelva',1);
INSERT INTO `B67171959_c_departements` VALUES (538,'HU',402,'',2,'HUESCA','Huesca',1);
INSERT INTO `B67171959_c_departements` VALUES (539,'J',401,'',1,'JAEN','Jaén',1);
INSERT INTO `B67171959_c_departements` VALUES (540,'LE',403,'',3,'LEON','León',1);
INSERT INTO `B67171959_c_departements` VALUES (541,'L',406,'',6,'LERIDA','Lérida',1);
INSERT INTO `B67171959_c_departements` VALUES (542,'LO',415,'',15,'LA RIOJA','La Rioja',1);
INSERT INTO `B67171959_c_departements` VALUES (543,'LU',413,'',13,'LUGO','Lugo',1);
INSERT INTO `B67171959_c_departements` VALUES (544,'M',416,'',16,'MADRID','Madrid',1);
INSERT INTO `B67171959_c_departements` VALUES (545,'MA',401,'',1,'MALAGA','Málaga',1);
INSERT INTO `B67171959_c_departements` VALUES (546,'MU',417,'',17,'MURCIA','Murcia',1);
INSERT INTO `B67171959_c_departements` VALUES (547,'NA',408,'',8,'NAVARRA','Navarra',1);
INSERT INTO `B67171959_c_departements` VALUES (548,'OR',413,'',13,'ORENSE','Orense',1);
INSERT INTO `B67171959_c_departements` VALUES (549,'O',418,'',18,'ASTURIAS','Asturias',1);
INSERT INTO `B67171959_c_departements` VALUES (550,'P',403,'',3,'PALENCIA','Palencia',1);
INSERT INTO `B67171959_c_departements` VALUES (551,'GC',405,'',5,'LAS PALMAS','Las Palmas',1);
INSERT INTO `B67171959_c_departements` VALUES (552,'PO',413,'',13,'PONTEVEDRA','Pontevedra',1);
INSERT INTO `B67171959_c_departements` VALUES (553,'SA',403,'',3,'SALAMANCA','Salamanca',1);
INSERT INTO `B67171959_c_departements` VALUES (554,'TF',405,'',5,'STA. CRUZ DE TENERIFE','Sta. Cruz de Tenerife',1);
INSERT INTO `B67171959_c_departements` VALUES (555,'S',410,'',10,'CANTABRIA','Cantabria',1);
INSERT INTO `B67171959_c_departements` VALUES (556,'SG',403,'',3,'SEGOVIA','Segovia',1);
INSERT INTO `B67171959_c_departements` VALUES (557,'SE',401,'',1,'SEVILLA','Sevilla',1);
INSERT INTO `B67171959_c_departements` VALUES (558,'SO',403,'',3,'SORIA','Soria',1);
INSERT INTO `B67171959_c_departements` VALUES (559,'T',406,'',6,'TARRAGONA','Tarragona',1);
INSERT INTO `B67171959_c_departements` VALUES (560,'TE',402,'',2,'TERUEL','Teruel',1);
INSERT INTO `B67171959_c_departements` VALUES (561,'TO',404,'',5,'TOLEDO','Toledo',1);
INSERT INTO `B67171959_c_departements` VALUES (562,'V',411,'',11,'VALENCIA','Valencia',1);
INSERT INTO `B67171959_c_departements` VALUES (563,'VA',403,'',3,'VALLADOLID','Valladolid',1);
INSERT INTO `B67171959_c_departements` VALUES (564,'BI',419,'',19,'VIZCAYA','Vizcaya',1);
INSERT INTO `B67171959_c_departements` VALUES (565,'ZA',403,'',3,'ZAMORA','Zamora',1);
INSERT INTO `B67171959_c_departements` VALUES (566,'Z',402,'',1,'ZARAGOZA','Zaragoza',1);
INSERT INTO `B67171959_c_departements` VALUES (567,'CE',407,'',7,'CEUTA','Ceuta',1);
INSERT INTO `B67171959_c_departements` VALUES (568,'ML',409,'',9,'MELILLA','Melilla',1);
INSERT INTO `B67171959_c_departements` VALUES (569,'BW',501,NULL,NULL,'BADEN-WÜRTTEMBERG','Baden-Württemberg',1);
INSERT INTO `B67171959_c_departements` VALUES (570,'BY',501,NULL,NULL,'BAYERN','Bayern',1);
INSERT INTO `B67171959_c_departements` VALUES (571,'BE',501,NULL,NULL,'BERLIN','Berlin',1);
INSERT INTO `B67171959_c_departements` VALUES (572,'BB',501,NULL,NULL,'BRANDENBURG','Brandenburg',1);
INSERT INTO `B67171959_c_departements` VALUES (573,'HB',501,NULL,NULL,'BREMEN','Bremen',1);
INSERT INTO `B67171959_c_departements` VALUES (574,'HH',501,NULL,NULL,'HAMBURG','Hamburg',1);
INSERT INTO `B67171959_c_departements` VALUES (575,'HE',501,NULL,NULL,'HESSEN','Hessen',1);
INSERT INTO `B67171959_c_departements` VALUES (576,'MV',501,NULL,NULL,'MECKLENBURG-VORPOMMERN','Mecklenburg-Vorpommern',1);
INSERT INTO `B67171959_c_departements` VALUES (577,'NI',501,NULL,NULL,'NIEDERSACHSEN','Niedersachsen',1);
INSERT INTO `B67171959_c_departements` VALUES (578,'NW',501,NULL,NULL,'NORDRHEIN-WESTFALEN','Nordrhein-Westfalen',1);
INSERT INTO `B67171959_c_departements` VALUES (579,'RP',501,NULL,NULL,'RHEINLAND-PFALZ','Rheinland-Pfalz',1);
INSERT INTO `B67171959_c_departements` VALUES (580,'SL',501,NULL,NULL,'SAARLAND','Saarland',1);
INSERT INTO `B67171959_c_departements` VALUES (581,'SN',501,NULL,NULL,'SACHSEN','Sachsen',1);
INSERT INTO `B67171959_c_departements` VALUES (582,'ST',501,NULL,NULL,'SACHSEN-ANHALT','Sachsen-Anhalt',1);
INSERT INTO `B67171959_c_departements` VALUES (583,'SH',501,NULL,NULL,'SCHLESWIG-HOLSTEIN','Schleswig-Holstein',1);
INSERT INTO `B67171959_c_departements` VALUES (584,'TH',501,NULL,NULL,'THÜRINGEN','Thüringen',1);
INSERT INTO `B67171959_c_departements` VALUES (585,66,10201,'',0,'','Αθήνα',1);
INSERT INTO `B67171959_c_departements` VALUES (586,67,10205,'',0,'','Δράμα',1);
INSERT INTO `B67171959_c_departements` VALUES (587,'01',10205,'',0,'','Έβρος',1);
INSERT INTO `B67171959_c_departements` VALUES (588,'02',10205,'',0,'','Θάσος',1);
INSERT INTO `B67171959_c_departements` VALUES (589,'03',10205,'',0,'','Καβάλα',1);
INSERT INTO `B67171959_c_departements` VALUES (590,'04',10205,'',0,'','Ξάνθη',1);
INSERT INTO `B67171959_c_departements` VALUES (591,'05',10205,'',0,'','Ροδόπη',1);
INSERT INTO `B67171959_c_departements` VALUES (592,'06',10203,'',0,'','Ημαθία',1);
INSERT INTO `B67171959_c_departements` VALUES (593,'07',10203,'',0,'','Θεσσαλονίκη',1);
INSERT INTO `B67171959_c_departements` VALUES (594,'08',10203,'',0,'','Κιλκίς',1);
INSERT INTO `B67171959_c_departements` VALUES (595,'09',10203,'',0,'','Πέλλα',1);
INSERT INTO `B67171959_c_departements` VALUES (596,10,10203,'',0,'','Πιερία',1);
INSERT INTO `B67171959_c_departements` VALUES (597,11,10203,'',0,'','Σέρρες',1);
INSERT INTO `B67171959_c_departements` VALUES (598,12,10203,'',0,'','Χαλκιδική',1);
INSERT INTO `B67171959_c_departements` VALUES (599,13,10206,'',0,'','Άρτα',1);
INSERT INTO `B67171959_c_departements` VALUES (600,14,10206,'',0,'','Θεσπρωτία',1);
INSERT INTO `B67171959_c_departements` VALUES (601,15,10206,'',0,'','Ιωάννινα',1);
INSERT INTO `B67171959_c_departements` VALUES (602,16,10206,'',0,'','Πρέβεζα',1);
INSERT INTO `B67171959_c_departements` VALUES (603,17,10213,'',0,'','Γρεβενά',1);
INSERT INTO `B67171959_c_departements` VALUES (604,18,10213,'',0,'','Καστοριά',1);
INSERT INTO `B67171959_c_departements` VALUES (605,19,10213,'',0,'','Κοζάνη',1);
INSERT INTO `B67171959_c_departements` VALUES (606,20,10213,'',0,'','Φλώρινα',1);
INSERT INTO `B67171959_c_departements` VALUES (607,21,10212,'',0,'','Καρδίτσα',1);
INSERT INTO `B67171959_c_departements` VALUES (608,22,10212,'',0,'','Λάρισα',1);
INSERT INTO `B67171959_c_departements` VALUES (609,23,10212,'',0,'','Μαγνησία',1);
INSERT INTO `B67171959_c_departements` VALUES (610,24,10212,'',0,'','Τρίκαλα',1);
INSERT INTO `B67171959_c_departements` VALUES (611,25,10212,'',0,'','Σποράδες',1);
INSERT INTO `B67171959_c_departements` VALUES (612,26,10212,'',0,'','Βοιωτία',1);
INSERT INTO `B67171959_c_departements` VALUES (613,27,10202,'',0,'','Εύβοια',1);
INSERT INTO `B67171959_c_departements` VALUES (614,28,10202,'',0,'','Ευρυτανία',1);
INSERT INTO `B67171959_c_departements` VALUES (615,29,10202,'',0,'','Φθιώτιδα',1);
INSERT INTO `B67171959_c_departements` VALUES (616,30,10202,'',0,'','Φωκίδα',1);
INSERT INTO `B67171959_c_departements` VALUES (617,31,10209,'',0,'','Αργολίδα',1);
INSERT INTO `B67171959_c_departements` VALUES (618,32,10209,'',0,'','Αρκαδία',1);
INSERT INTO `B67171959_c_departements` VALUES (619,33,10209,'',0,'','Κορινθία',1);
INSERT INTO `B67171959_c_departements` VALUES (620,34,10209,'',0,'','Λακωνία',1);
INSERT INTO `B67171959_c_departements` VALUES (621,35,10209,'',0,'','Μεσσηνία',1);
INSERT INTO `B67171959_c_departements` VALUES (622,36,10211,'',0,'','Αιτωλοακαρνανία',1);
INSERT INTO `B67171959_c_departements` VALUES (623,37,10211,'',0,'','Αχαΐα',1);
INSERT INTO `B67171959_c_departements` VALUES (624,38,10211,'',0,'','Ηλεία',1);
INSERT INTO `B67171959_c_departements` VALUES (625,39,10207,'',0,'','Ζάκυνθος',1);
INSERT INTO `B67171959_c_departements` VALUES (626,40,10207,'',0,'','Κέρκυρα',1);
INSERT INTO `B67171959_c_departements` VALUES (627,41,10207,'',0,'','Κεφαλληνία',1);
INSERT INTO `B67171959_c_departements` VALUES (628,42,10207,'',0,'','Ιθάκη',1);
INSERT INTO `B67171959_c_departements` VALUES (629,43,10207,'',0,'','Λευκάδα',1);
INSERT INTO `B67171959_c_departements` VALUES (630,44,10208,'',0,'','Ικαρία',1);
INSERT INTO `B67171959_c_departements` VALUES (631,45,10208,'',0,'','Λέσβος',1);
INSERT INTO `B67171959_c_departements` VALUES (632,46,10208,'',0,'','Λήμνος',1);
INSERT INTO `B67171959_c_departements` VALUES (633,47,10208,'',0,'','Σάμος',1);
INSERT INTO `B67171959_c_departements` VALUES (634,48,10208,'',0,'','Χίος',1);
INSERT INTO `B67171959_c_departements` VALUES (635,49,10210,'',0,'','Άνδρος',1);
INSERT INTO `B67171959_c_departements` VALUES (636,50,10210,'',0,'','Θήρα',1);
INSERT INTO `B67171959_c_departements` VALUES (637,51,10210,'',0,'','Κάλυμνος',1);
INSERT INTO `B67171959_c_departements` VALUES (638,52,10210,'',0,'','Κάρπαθος',1);
INSERT INTO `B67171959_c_departements` VALUES (639,53,10210,'',0,'','Κέα-Κύθνος',1);
INSERT INTO `B67171959_c_departements` VALUES (640,54,10210,'',0,'','Κω',1);
INSERT INTO `B67171959_c_departements` VALUES (641,55,10210,'',0,'','Μήλος',1);
INSERT INTO `B67171959_c_departements` VALUES (642,56,10210,'',0,'','Μύκονος',1);
INSERT INTO `B67171959_c_departements` VALUES (643,57,10210,'',0,'','Νάξος',1);
INSERT INTO `B67171959_c_departements` VALUES (644,58,10210,'',0,'','Πάρος',1);
INSERT INTO `B67171959_c_departements` VALUES (645,59,10210,'',0,'','Ρόδος',1);
INSERT INTO `B67171959_c_departements` VALUES (646,60,10210,'',0,'','Σύρος',1);
INSERT INTO `B67171959_c_departements` VALUES (647,61,10210,'',0,'','Τήνος',1);
INSERT INTO `B67171959_c_departements` VALUES (648,62,10204,'',0,'','Ηράκλειο',1);
INSERT INTO `B67171959_c_departements` VALUES (649,63,10204,'',0,'','Λασίθι',1);
INSERT INTO `B67171959_c_departements` VALUES (650,64,10204,'',0,'','Ρέθυμνο',1);
INSERT INTO `B67171959_c_departements` VALUES (651,65,10204,'',0,'','Χανιά',1);
INSERT INTO `B67171959_c_departements` VALUES (652,'AG',601,NULL,NULL,'ARGOVIE','Argovie',1);
INSERT INTO `B67171959_c_departements` VALUES (653,'AI',601,NULL,NULL,'APPENZELL RHODES INTERIEURES','Appenzell Rhodes intérieures',1);
INSERT INTO `B67171959_c_departements` VALUES (654,'AR',601,NULL,NULL,'APPENZELL RHODES EXTERIEURES','Appenzell Rhodes extérieures',1);
INSERT INTO `B67171959_c_departements` VALUES (655,'BE',601,NULL,NULL,'BERNE','Berne',1);
INSERT INTO `B67171959_c_departements` VALUES (656,'BL',601,NULL,NULL,'BALE CAMPAGNE','Bâle Campagne',1);
INSERT INTO `B67171959_c_departements` VALUES (657,'BS',601,NULL,NULL,'BALE VILLE','Bâle Ville',1);
INSERT INTO `B67171959_c_departements` VALUES (658,'FR',601,NULL,NULL,'FRIBOURG','Fribourg',1);
INSERT INTO `B67171959_c_departements` VALUES (659,'GE',601,NULL,NULL,'GENEVE','Genève',1);
INSERT INTO `B67171959_c_departements` VALUES (660,'GL',601,NULL,NULL,'GLARIS','Glaris',1);
INSERT INTO `B67171959_c_departements` VALUES (661,'GR',601,NULL,NULL,'GRISONS','Grisons',1);
INSERT INTO `B67171959_c_departements` VALUES (662,'JU',601,NULL,NULL,'JURA','Jura',1);
INSERT INTO `B67171959_c_departements` VALUES (663,'LU',601,NULL,NULL,'LUCERNE','Lucerne',1);
INSERT INTO `B67171959_c_departements` VALUES (664,'NE',601,NULL,NULL,'NEUCHATEL','Neuchâtel',1);
INSERT INTO `B67171959_c_departements` VALUES (665,'NW',601,NULL,NULL,'NIDWALD','Nidwald',1);
INSERT INTO `B67171959_c_departements` VALUES (666,'OW',601,NULL,NULL,'OBWALD','Obwald',1);
INSERT INTO `B67171959_c_departements` VALUES (667,'SG',601,NULL,NULL,'SAINT-GALL','Saint-Gall',1);
INSERT INTO `B67171959_c_departements` VALUES (668,'SH',601,NULL,NULL,'SCHAFFHOUSE','Schaffhouse',1);
INSERT INTO `B67171959_c_departements` VALUES (669,'SO',601,NULL,NULL,'SOLEURE','Soleure',1);
INSERT INTO `B67171959_c_departements` VALUES (670,'SZ',601,NULL,NULL,'SCHWYZ','Schwyz',1);
INSERT INTO `B67171959_c_departements` VALUES (671,'TG',601,NULL,NULL,'THURGOVIE','Thurgovie',1);
INSERT INTO `B67171959_c_departements` VALUES (672,'TI',601,NULL,NULL,'TESSIN','Tessin',1);
INSERT INTO `B67171959_c_departements` VALUES (673,'UR',601,NULL,NULL,'URI','Uri',1);
INSERT INTO `B67171959_c_departements` VALUES (674,'VD',601,NULL,NULL,'VAUD','Vaud',1);
INSERT INTO `B67171959_c_departements` VALUES (675,'VS',601,NULL,NULL,'VALAIS','Valais',1);
INSERT INTO `B67171959_c_departements` VALUES (676,'ZG',601,NULL,NULL,'ZUG','Zug',1);
INSERT INTO `B67171959_c_departements` VALUES (677,'ZH',601,NULL,NULL,'ZURICH','Zürich',1);
INSERT INTO `B67171959_c_departements` VALUES (678,701,701,NULL,0,NULL,'Bedfordshire',1);
INSERT INTO `B67171959_c_departements` VALUES (679,702,701,NULL,0,NULL,'Berkshire',1);
INSERT INTO `B67171959_c_departements` VALUES (680,703,701,NULL,0,NULL,'Bristol, City of',1);
INSERT INTO `B67171959_c_departements` VALUES (681,704,701,NULL,0,NULL,'Buckinghamshire',1);
INSERT INTO `B67171959_c_departements` VALUES (682,705,701,NULL,0,NULL,'Cambridgeshire',1);
INSERT INTO `B67171959_c_departements` VALUES (683,706,701,NULL,0,NULL,'Cheshire',1);
INSERT INTO `B67171959_c_departements` VALUES (684,707,701,NULL,0,NULL,'Cleveland',1);
INSERT INTO `B67171959_c_departements` VALUES (685,708,701,NULL,0,NULL,'Cornwall',1);
INSERT INTO `B67171959_c_departements` VALUES (686,709,701,NULL,0,NULL,'Cumberland',1);
INSERT INTO `B67171959_c_departements` VALUES (687,710,701,NULL,0,NULL,'Cumbria',1);
INSERT INTO `B67171959_c_departements` VALUES (688,711,701,NULL,0,NULL,'Derbyshire',1);
INSERT INTO `B67171959_c_departements` VALUES (689,712,701,NULL,0,NULL,'Devon',1);
INSERT INTO `B67171959_c_departements` VALUES (690,713,701,NULL,0,NULL,'Dorset',1);
INSERT INTO `B67171959_c_departements` VALUES (691,714,701,NULL,0,NULL,'Co. Durham',1);
INSERT INTO `B67171959_c_departements` VALUES (692,715,701,NULL,0,NULL,'East Riding of Yorkshire',1);
INSERT INTO `B67171959_c_departements` VALUES (693,716,701,NULL,0,NULL,'East Sussex',1);
INSERT INTO `B67171959_c_departements` VALUES (694,717,701,NULL,0,NULL,'Essex',1);
INSERT INTO `B67171959_c_departements` VALUES (695,718,701,NULL,0,NULL,'Gloucestershire',1);
INSERT INTO `B67171959_c_departements` VALUES (696,719,701,NULL,0,NULL,'Greater Manchester',1);
INSERT INTO `B67171959_c_departements` VALUES (697,720,701,NULL,0,NULL,'Hampshire',1);
INSERT INTO `B67171959_c_departements` VALUES (698,721,701,NULL,0,NULL,'Hertfordshire',1);
INSERT INTO `B67171959_c_departements` VALUES (699,722,701,NULL,0,NULL,'Hereford and Worcester',1);
INSERT INTO `B67171959_c_departements` VALUES (700,723,701,NULL,0,NULL,'Herefordshire',1);
INSERT INTO `B67171959_c_departements` VALUES (701,724,701,NULL,0,NULL,'Huntingdonshire',1);
INSERT INTO `B67171959_c_departements` VALUES (702,725,701,NULL,0,NULL,'Isle of Man',1);
INSERT INTO `B67171959_c_departements` VALUES (703,726,701,NULL,0,NULL,'Isle of Wight',1);
INSERT INTO `B67171959_c_departements` VALUES (704,727,701,NULL,0,NULL,'Jersey',1);
INSERT INTO `B67171959_c_departements` VALUES (705,728,701,NULL,0,NULL,'Kent',1);
INSERT INTO `B67171959_c_departements` VALUES (706,729,701,NULL,0,NULL,'Lancashire',1);
INSERT INTO `B67171959_c_departements` VALUES (707,730,701,NULL,0,NULL,'Leicestershire',1);
INSERT INTO `B67171959_c_departements` VALUES (708,731,701,NULL,0,NULL,'Lincolnshire',1);
INSERT INTO `B67171959_c_departements` VALUES (709,732,701,NULL,0,NULL,'London - City of London',1);
INSERT INTO `B67171959_c_departements` VALUES (710,733,701,NULL,0,NULL,'Merseyside',1);
INSERT INTO `B67171959_c_departements` VALUES (711,734,701,NULL,0,NULL,'Middlesex',1);
INSERT INTO `B67171959_c_departements` VALUES (712,735,701,NULL,0,NULL,'Norfolk',1);
INSERT INTO `B67171959_c_departements` VALUES (713,736,701,NULL,0,NULL,'North Yorkshire',1);
INSERT INTO `B67171959_c_departements` VALUES (714,737,701,NULL,0,NULL,'North Riding of Yorkshire',1);
INSERT INTO `B67171959_c_departements` VALUES (715,738,701,NULL,0,NULL,'Northamptonshire',1);
INSERT INTO `B67171959_c_departements` VALUES (716,739,701,NULL,0,NULL,'Northumberland',1);
INSERT INTO `B67171959_c_departements` VALUES (717,740,701,NULL,0,NULL,'Nottinghamshire',1);
INSERT INTO `B67171959_c_departements` VALUES (718,741,701,NULL,0,NULL,'Oxfordshire',1);
INSERT INTO `B67171959_c_departements` VALUES (719,742,701,NULL,0,NULL,'Rutland',1);
INSERT INTO `B67171959_c_departements` VALUES (720,743,701,NULL,0,NULL,'Shropshire',1);
INSERT INTO `B67171959_c_departements` VALUES (721,744,701,NULL,0,NULL,'Somerset',1);
INSERT INTO `B67171959_c_departements` VALUES (722,745,701,NULL,0,NULL,'Staffordshire',1);
INSERT INTO `B67171959_c_departements` VALUES (723,746,701,NULL,0,NULL,'Suffolk',1);
INSERT INTO `B67171959_c_departements` VALUES (724,747,701,NULL,0,NULL,'Surrey',1);
INSERT INTO `B67171959_c_departements` VALUES (725,748,701,NULL,0,NULL,'Sussex',1);
INSERT INTO `B67171959_c_departements` VALUES (726,749,701,NULL,0,NULL,'Tyne and Wear',1);
INSERT INTO `B67171959_c_departements` VALUES (727,750,701,NULL,0,NULL,'Warwickshire',1);
INSERT INTO `B67171959_c_departements` VALUES (728,751,701,NULL,0,NULL,'West Midlands',1);
INSERT INTO `B67171959_c_departements` VALUES (729,752,701,NULL,0,NULL,'West Sussex',1);
INSERT INTO `B67171959_c_departements` VALUES (730,753,701,NULL,0,NULL,'West Yorkshire',1);
INSERT INTO `B67171959_c_departements` VALUES (731,754,701,NULL,0,NULL,'West Riding of Yorkshire',1);
INSERT INTO `B67171959_c_departements` VALUES (732,755,701,NULL,0,NULL,'Wiltshire',1);
INSERT INTO `B67171959_c_departements` VALUES (733,756,701,NULL,0,NULL,'Worcestershire',1);
INSERT INTO `B67171959_c_departements` VALUES (734,757,701,NULL,0,NULL,'Yorkshire',1);
INSERT INTO `B67171959_c_departements` VALUES (735,758,702,NULL,0,NULL,'Anglesey',1);
INSERT INTO `B67171959_c_departements` VALUES (736,759,702,NULL,0,NULL,'Breconshire',1);
INSERT INTO `B67171959_c_departements` VALUES (737,760,702,NULL,0,NULL,'Caernarvonshire',1);
INSERT INTO `B67171959_c_departements` VALUES (738,761,702,NULL,0,NULL,'Cardiganshire',1);
INSERT INTO `B67171959_c_departements` VALUES (739,762,702,NULL,0,NULL,'Carmarthenshire',1);
INSERT INTO `B67171959_c_departements` VALUES (740,763,702,NULL,0,NULL,'Ceredigion',1);
INSERT INTO `B67171959_c_departements` VALUES (741,764,702,NULL,0,NULL,'Denbighshire',1);
INSERT INTO `B67171959_c_departements` VALUES (742,765,702,NULL,0,NULL,'Flintshire',1);
INSERT INTO `B67171959_c_departements` VALUES (743,766,702,NULL,0,NULL,'Glamorgan',1);
INSERT INTO `B67171959_c_departements` VALUES (744,767,702,NULL,0,NULL,'Gwent',1);
INSERT INTO `B67171959_c_departements` VALUES (745,768,702,NULL,0,NULL,'Gwynedd',1);
INSERT INTO `B67171959_c_departements` VALUES (746,769,702,NULL,0,NULL,'Merionethshire',1);
INSERT INTO `B67171959_c_departements` VALUES (747,770,702,NULL,0,NULL,'Monmouthshire',1);
INSERT INTO `B67171959_c_departements` VALUES (748,771,702,NULL,0,NULL,'Mid Glamorgan',1);
INSERT INTO `B67171959_c_departements` VALUES (749,772,702,NULL,0,NULL,'Montgomeryshire',1);
INSERT INTO `B67171959_c_departements` VALUES (750,773,702,NULL,0,NULL,'Pembrokeshire',1);
INSERT INTO `B67171959_c_departements` VALUES (751,774,702,NULL,0,NULL,'Powys',1);
INSERT INTO `B67171959_c_departements` VALUES (752,775,702,NULL,0,NULL,'Radnorshire',1);
INSERT INTO `B67171959_c_departements` VALUES (753,776,702,NULL,0,NULL,'South Glamorgan',1);
INSERT INTO `B67171959_c_departements` VALUES (754,777,703,NULL,0,NULL,'Aberdeen, City of',1);
INSERT INTO `B67171959_c_departements` VALUES (755,778,703,NULL,0,NULL,'Angus',1);
INSERT INTO `B67171959_c_departements` VALUES (756,779,703,NULL,0,NULL,'Argyll',1);
INSERT INTO `B67171959_c_departements` VALUES (757,780,703,NULL,0,NULL,'Ayrshire',1);
INSERT INTO `B67171959_c_departements` VALUES (758,781,703,NULL,0,NULL,'Banffshire',1);
INSERT INTO `B67171959_c_departements` VALUES (759,782,703,NULL,0,NULL,'Berwickshire',1);
INSERT INTO `B67171959_c_departements` VALUES (760,783,703,NULL,0,NULL,'Bute',1);
INSERT INTO `B67171959_c_departements` VALUES (761,784,703,NULL,0,NULL,'Caithness',1);
INSERT INTO `B67171959_c_departements` VALUES (762,785,703,NULL,0,NULL,'Clackmannanshire',1);
INSERT INTO `B67171959_c_departements` VALUES (763,786,703,NULL,0,NULL,'Dumfriesshire',1);
INSERT INTO `B67171959_c_departements` VALUES (764,787,703,NULL,0,NULL,'Dumbartonshire',1);
INSERT INTO `B67171959_c_departements` VALUES (765,788,703,NULL,0,NULL,'Dundee, City of',1);
INSERT INTO `B67171959_c_departements` VALUES (766,789,703,NULL,0,NULL,'East Lothian',1);
INSERT INTO `B67171959_c_departements` VALUES (767,790,703,NULL,0,NULL,'Fife',1);
INSERT INTO `B67171959_c_departements` VALUES (768,791,703,NULL,0,NULL,'Inverness',1);
INSERT INTO `B67171959_c_departements` VALUES (769,792,703,NULL,0,NULL,'Kincardineshire',1);
INSERT INTO `B67171959_c_departements` VALUES (770,793,703,NULL,0,NULL,'Kinross-shire',1);
INSERT INTO `B67171959_c_departements` VALUES (771,794,703,NULL,0,NULL,'Kirkcudbrightshire',1);
INSERT INTO `B67171959_c_departements` VALUES (772,795,703,NULL,0,NULL,'Lanarkshire',1);
INSERT INTO `B67171959_c_departements` VALUES (773,796,703,NULL,0,NULL,'Midlothian',1);
INSERT INTO `B67171959_c_departements` VALUES (774,797,703,NULL,0,NULL,'Morayshire',1);
INSERT INTO `B67171959_c_departements` VALUES (775,798,703,NULL,0,NULL,'Nairnshire',1);
INSERT INTO `B67171959_c_departements` VALUES (776,799,703,NULL,0,NULL,'Orkney',1);
INSERT INTO `B67171959_c_departements` VALUES (777,800,703,NULL,0,NULL,'Peebleshire',1);
INSERT INTO `B67171959_c_departements` VALUES (778,801,703,NULL,0,NULL,'Perthshire',1);
INSERT INTO `B67171959_c_departements` VALUES (779,802,703,NULL,0,NULL,'Renfrewshire',1);
INSERT INTO `B67171959_c_departements` VALUES (780,803,703,NULL,0,NULL,'Ross & Cromarty',1);
INSERT INTO `B67171959_c_departements` VALUES (781,804,703,NULL,0,NULL,'Roxburghshire',1);
INSERT INTO `B67171959_c_departements` VALUES (782,805,703,NULL,0,NULL,'Selkirkshire',1);
INSERT INTO `B67171959_c_departements` VALUES (783,806,703,NULL,0,NULL,'Shetland',1);
INSERT INTO `B67171959_c_departements` VALUES (784,807,703,NULL,0,NULL,'Stirlingshire',1);
INSERT INTO `B67171959_c_departements` VALUES (785,808,703,NULL,0,NULL,'Sutherland',1);
INSERT INTO `B67171959_c_departements` VALUES (786,809,703,NULL,0,NULL,'West Lothian',1);
INSERT INTO `B67171959_c_departements` VALUES (787,810,703,NULL,0,NULL,'Wigtownshire',1);
INSERT INTO `B67171959_c_departements` VALUES (788,811,704,NULL,0,NULL,'Antrim',1);
INSERT INTO `B67171959_c_departements` VALUES (789,812,704,NULL,0,NULL,'Armagh',1);
INSERT INTO `B67171959_c_departements` VALUES (790,813,704,NULL,0,NULL,'Co. Down',1);
INSERT INTO `B67171959_c_departements` VALUES (791,814,704,NULL,0,NULL,'Co. Fermanagh',1);
INSERT INTO `B67171959_c_departements` VALUES (792,815,704,NULL,0,NULL,'Co. Londonderry',1);
INSERT INTO `B67171959_c_departements` VALUES (793,'AL',1101,'',0,'ALABAMA','Alabama',1);
INSERT INTO `B67171959_c_departements` VALUES (794,'AK',1101,'',0,'ALASKA','Alaska',1);
INSERT INTO `B67171959_c_departements` VALUES (795,'AZ',1101,'',0,'ARIZONA','Arizona',1);
INSERT INTO `B67171959_c_departements` VALUES (796,'AR',1101,'',0,'ARKANSAS','Arkansas',1);
INSERT INTO `B67171959_c_departements` VALUES (797,'CA',1101,'',0,'CALIFORNIA','California',1);
INSERT INTO `B67171959_c_departements` VALUES (798,'CO',1101,'',0,'COLORADO','Colorado',1);
INSERT INTO `B67171959_c_departements` VALUES (799,'CT',1101,'',0,'CONNECTICUT','Connecticut',1);
INSERT INTO `B67171959_c_departements` VALUES (800,'DE',1101,'',0,'DELAWARE','Delaware',1);
INSERT INTO `B67171959_c_departements` VALUES (801,'FL',1101,'',0,'FLORIDA','Florida',1);
INSERT INTO `B67171959_c_departements` VALUES (802,'GA',1101,'',0,'GEORGIA','Georgia',1);
INSERT INTO `B67171959_c_departements` VALUES (803,'HI',1101,'',0,'HAWAII','Hawaii',1);
INSERT INTO `B67171959_c_departements` VALUES (804,'ID',1101,'',0,'IDAHO','Idaho',1);
INSERT INTO `B67171959_c_departements` VALUES (805,'IL',1101,'',0,'ILLINOIS','Illinois',1);
INSERT INTO `B67171959_c_departements` VALUES (806,'IN',1101,'',0,'INDIANA','Indiana',1);
INSERT INTO `B67171959_c_departements` VALUES (807,'IA',1101,'',0,'IOWA','Iowa',1);
INSERT INTO `B67171959_c_departements` VALUES (808,'KS',1101,'',0,'KANSAS','Kansas',1);
INSERT INTO `B67171959_c_departements` VALUES (809,'KY',1101,'',0,'KENTUCKY','Kentucky',1);
INSERT INTO `B67171959_c_departements` VALUES (810,'LA',1101,'',0,'LOUISIANA','Louisiana',1);
INSERT INTO `B67171959_c_departements` VALUES (811,'ME',1101,'',0,'MAINE','Maine',1);
INSERT INTO `B67171959_c_departements` VALUES (812,'MD',1101,'',0,'MARYLAND','Maryland',1);
INSERT INTO `B67171959_c_departements` VALUES (813,'MA',1101,'',0,'MASSACHUSSETTS','Massachusetts',1);
INSERT INTO `B67171959_c_departements` VALUES (814,'MI',1101,'',0,'MICHIGAN','Michigan',1);
INSERT INTO `B67171959_c_departements` VALUES (815,'MN',1101,'',0,'MINNESOTA','Minnesota',1);
INSERT INTO `B67171959_c_departements` VALUES (816,'MS',1101,'',0,'MISSISSIPPI','Mississippi',1);
INSERT INTO `B67171959_c_departements` VALUES (817,'MO',1101,'',0,'MISSOURI','Missouri',1);
INSERT INTO `B67171959_c_departements` VALUES (818,'MT',1101,'',0,'MONTANA','Montana',1);
INSERT INTO `B67171959_c_departements` VALUES (819,'NE',1101,'',0,'NEBRASKA','Nebraska',1);
INSERT INTO `B67171959_c_departements` VALUES (820,'NV',1101,'',0,'NEVADA','Nevada',1);
INSERT INTO `B67171959_c_departements` VALUES (821,'NH',1101,'',0,'NEW HAMPSHIRE','New Hampshire',1);
INSERT INTO `B67171959_c_departements` VALUES (822,'NJ',1101,'',0,'NEW JERSEY','New Jersey',1);
INSERT INTO `B67171959_c_departements` VALUES (823,'NM',1101,'',0,'NEW MEXICO','New Mexico',1);
INSERT INTO `B67171959_c_departements` VALUES (824,'NY',1101,'',0,'NEW YORK','New York',1);
INSERT INTO `B67171959_c_departements` VALUES (825,'NC',1101,'',0,'NORTH CAROLINA','North Carolina',1);
INSERT INTO `B67171959_c_departements` VALUES (826,'ND',1101,'',0,'NORTH DAKOTA','North Dakota',1);
INSERT INTO `B67171959_c_departements` VALUES (827,'OH',1101,'',0,'OHIO','Ohio',1);
INSERT INTO `B67171959_c_departements` VALUES (828,'OK',1101,'',0,'OKLAHOMA','Oklahoma',1);
INSERT INTO `B67171959_c_departements` VALUES (829,'OR',1101,'',0,'OREGON','Oregon',1);
INSERT INTO `B67171959_c_departements` VALUES (830,'PA',1101,'',0,'PENNSYLVANIA','Pennsylvania',1);
INSERT INTO `B67171959_c_departements` VALUES (831,'RI',1101,'',0,'RHODE ISLAND','Rhode Island',1);
INSERT INTO `B67171959_c_departements` VALUES (832,'SC',1101,'',0,'SOUTH CAROLINA','South Carolina',1);
INSERT INTO `B67171959_c_departements` VALUES (833,'SD',1101,'',0,'SOUTH DAKOTA','South Dakota',1);
INSERT INTO `B67171959_c_departements` VALUES (834,'TN',1101,'',0,'TENNESSEE','Tennessee',1);
INSERT INTO `B67171959_c_departements` VALUES (835,'TX',1101,'',0,'TEXAS','Texas',1);
INSERT INTO `B67171959_c_departements` VALUES (836,'UT',1101,'',0,'UTAH','Utah',1);
INSERT INTO `B67171959_c_departements` VALUES (837,'VT',1101,'',0,'VERMONT','Vermont',1);
INSERT INTO `B67171959_c_departements` VALUES (838,'VA',1101,'',0,'VIRGINIA','Virginia',1);
INSERT INTO `B67171959_c_departements` VALUES (839,'WA',1101,'',0,'WASHINGTON','Washington',1);
INSERT INTO `B67171959_c_departements` VALUES (840,'WV',1101,'',0,'WEST VIRGINIA','West Virginia',1);
INSERT INTO `B67171959_c_departements` VALUES (841,'WI',1101,'',0,'WISCONSIN','Wisconsin',1);
INSERT INTO `B67171959_c_departements` VALUES (842,'WY',1101,'',0,'WYOMING','Wyoming',1);
INSERT INTO `B67171959_c_departements` VALUES (843,'GR',1701,NULL,NULL,NULL,'Groningen',1);
INSERT INTO `B67171959_c_departements` VALUES (844,'FR',1701,NULL,NULL,NULL,'Friesland',1);
INSERT INTO `B67171959_c_departements` VALUES (845,'DR',1701,NULL,NULL,NULL,'Drenthe',1);
INSERT INTO `B67171959_c_departements` VALUES (846,'OV',1701,NULL,NULL,NULL,'Overijssel',1);
INSERT INTO `B67171959_c_departements` VALUES (847,'GD',1701,NULL,NULL,NULL,'Gelderland',1);
INSERT INTO `B67171959_c_departements` VALUES (848,'FL',1701,NULL,NULL,NULL,'Flevoland',1);
INSERT INTO `B67171959_c_departements` VALUES (849,'UT',1701,NULL,NULL,NULL,'Utrecht',1);
INSERT INTO `B67171959_c_departements` VALUES (850,'NH',1701,NULL,NULL,NULL,'Noord-Holland',1);
INSERT INTO `B67171959_c_departements` VALUES (851,'ZH',1701,NULL,NULL,NULL,'Zuid-Holland',1);
INSERT INTO `B67171959_c_departements` VALUES (852,'ZL',1701,NULL,NULL,NULL,'Zeeland',1);
INSERT INTO `B67171959_c_departements` VALUES (853,'NB',1701,NULL,NULL,NULL,'Noord-Brabant',1);
INSERT INTO `B67171959_c_departements` VALUES (854,'LB',1701,NULL,NULL,NULL,'Limburg',1);
INSERT INTO `B67171959_c_departements` VALUES (855,'SS',8601,'',0,'','San Salvador',1);
INSERT INTO `B67171959_c_departements` VALUES (856,'SA',8603,'',0,'','Santa Ana',1);
INSERT INTO `B67171959_c_departements` VALUES (857,'AH',8603,'',0,'','Ahuachapan',1);
INSERT INTO `B67171959_c_departements` VALUES (858,'SO',8603,'',0,'','Sonsonate',1);
INSERT INTO `B67171959_c_departements` VALUES (859,'US',8602,'',0,'','Usulutan',1);
INSERT INTO `B67171959_c_departements` VALUES (860,'SM',8602,'',0,'','San Miguel',1);
INSERT INTO `B67171959_c_departements` VALUES (861,'MO',8602,'',0,'','Morazan',1);
INSERT INTO `B67171959_c_departements` VALUES (862,'LU',8602,'',0,'','La Union',1);
INSERT INTO `B67171959_c_departements` VALUES (863,'LL',8601,'',0,'','La Libertad',1);
INSERT INTO `B67171959_c_departements` VALUES (864,'CH',8601,'',0,'','Chalatenango',1);
INSERT INTO `B67171959_c_departements` VALUES (865,'CA',8601,'',0,'','Cabañas',1);
INSERT INTO `B67171959_c_departements` VALUES (866,'LP',8601,'',0,'','La Paz',1);
INSERT INTO `B67171959_c_departements` VALUES (867,'SV',8601,'',0,'','San Vicente',1);
INSERT INTO `B67171959_c_departements` VALUES (868,'CU',8601,'',0,'','Cuscatlan',1);
INSERT INTO `B67171959_c_departements` VALUES (869,2301,2301,'',0,'CATAMARCA','Catamarca',1);
INSERT INTO `B67171959_c_departements` VALUES (870,2302,2301,'',0,'JUJUY','Jujuy',1);
INSERT INTO `B67171959_c_departements` VALUES (871,2303,2301,'',0,'TUCAMAN','Tucamán',1);
INSERT INTO `B67171959_c_departements` VALUES (872,2304,2301,'',0,'SANTIAGO DEL ESTERO','Santiago del Estero',1);
INSERT INTO `B67171959_c_departements` VALUES (873,2305,2301,'',0,'SALTA','Salta',1);
INSERT INTO `B67171959_c_departements` VALUES (874,2306,2302,'',0,'CHACO','Chaco',1);
INSERT INTO `B67171959_c_departements` VALUES (875,2307,2302,'',0,'CORRIENTES','Corrientes',1);
INSERT INTO `B67171959_c_departements` VALUES (876,2308,2302,'',0,'ENTRE RIOS','Entre Ríos',1);
INSERT INTO `B67171959_c_departements` VALUES (877,2309,2302,'',0,'FORMOSA','Formosa',1);
INSERT INTO `B67171959_c_departements` VALUES (878,2310,2302,'',0,'SANTA FE','Santa Fe',1);
INSERT INTO `B67171959_c_departements` VALUES (879,2311,2303,'',0,'LA RIOJA','La Rioja',1);
INSERT INTO `B67171959_c_departements` VALUES (880,2312,2303,'',0,'MENDOZA','Mendoza',1);
INSERT INTO `B67171959_c_departements` VALUES (881,2313,2303,'',0,'SAN JUAN','San Juan',1);
INSERT INTO `B67171959_c_departements` VALUES (882,2314,2303,'',0,'SAN LUIS','San Luis',1);
INSERT INTO `B67171959_c_departements` VALUES (883,2315,2304,'',0,'CORDOBA','Córdoba',1);
INSERT INTO `B67171959_c_departements` VALUES (884,2316,2304,'',0,'BUENOS AIRES','Buenos Aires',1);
INSERT INTO `B67171959_c_departements` VALUES (885,2317,2304,'',0,'CABA','Caba',1);
INSERT INTO `B67171959_c_departements` VALUES (886,2318,2305,'',0,'LA PAMPA','La Pampa',1);
INSERT INTO `B67171959_c_departements` VALUES (887,2319,2305,'',0,'NEUQUEN','Neuquén',1);
INSERT INTO `B67171959_c_departements` VALUES (888,2320,2305,'',0,'RIO NEGRO','Río Negro',1);
INSERT INTO `B67171959_c_departements` VALUES (889,2321,2305,'',0,'CHUBUT','Chubut',1);
INSERT INTO `B67171959_c_departements` VALUES (890,2322,2305,'',0,'SANTA CRUZ','Santa Cruz',1);
INSERT INTO `B67171959_c_departements` VALUES (891,2323,2305,'',0,'TIERRA DEL FUEGO','Tierra del Fuego',1);
INSERT INTO `B67171959_c_departements` VALUES (892,2324,2305,'',0,'ISLAS MALVINAS','Islas Malvinas',1);
INSERT INTO `B67171959_c_departements` VALUES (893,2325,2305,'',0,'ANTARTIDA','Antártida',1);
INSERT INTO `B67171959_c_departements` VALUES (894,2326,2305,'',0,'MISIONES','Misiones',1);
INSERT INTO `B67171959_c_departements` VALUES (895,'CC',4601,'Oistins',0,'CC','Christ Church',1);
INSERT INTO `B67171959_c_departements` VALUES (896,'SA',4601,'Greenland',0,'SA','Saint Andrew',1);
INSERT INTO `B67171959_c_departements` VALUES (897,'SG',4601,'Bulkeley',0,'SG','Saint George',1);
INSERT INTO `B67171959_c_departements` VALUES (898,'JA',4601,'Holetown',0,'JA','Saint James',1);
INSERT INTO `B67171959_c_departements` VALUES (899,'SJ',4601,'Four Roads',0,'SJ','Saint John',1);
INSERT INTO `B67171959_c_departements` VALUES (900,'SB',4601,'Bathsheba',0,'SB','Saint Joseph',1);
INSERT INTO `B67171959_c_departements` VALUES (901,'SL',4601,'Crab Hill',0,'SL','Saint Lucy',1);
INSERT INTO `B67171959_c_departements` VALUES (902,'SM',4601,'Bridgetown',0,'SM','Saint Michael',1);
INSERT INTO `B67171959_c_departements` VALUES (903,'SP',4601,'Speightstown',0,'SP','Saint Peter',1);
INSERT INTO `B67171959_c_departements` VALUES (904,'SC',4601,'Crane',0,'SC','Saint Philip',1);
INSERT INTO `B67171959_c_departements` VALUES (905,'ST',4601,'Hillaby',0,'ST','Saint Thomas',1);
INSERT INTO `B67171959_c_departements` VALUES (906,'AC',5601,'ACRE',0,'AC','Acre',1);
INSERT INTO `B67171959_c_departements` VALUES (907,'AL',5601,'ALAGOAS',0,'AL','Alagoas',1);
INSERT INTO `B67171959_c_departements` VALUES (908,'AP',5601,'AMAPA',0,'AP','Amapá',1);
INSERT INTO `B67171959_c_departements` VALUES (909,'AM',5601,'AMAZONAS',0,'AM','Amazonas',1);
INSERT INTO `B67171959_c_departements` VALUES (910,'BA',5601,'BAHIA',0,'BA','Bahia',1);
INSERT INTO `B67171959_c_departements` VALUES (911,'CE',5601,'CEARA',0,'CE','Ceará',1);
INSERT INTO `B67171959_c_departements` VALUES (912,'ES',5601,'ESPIRITO SANTO',0,'ES','Espirito Santo',1);
INSERT INTO `B67171959_c_departements` VALUES (913,'GO',5601,'GOIAS',0,'GO','Goiás',1);
INSERT INTO `B67171959_c_departements` VALUES (914,'MA',5601,'MARANHAO',0,'MA','Maranhão',1);
INSERT INTO `B67171959_c_departements` VALUES (915,'MT',5601,'MATO GROSSO',0,'MT','Mato Grosso',1);
INSERT INTO `B67171959_c_departements` VALUES (916,'MS',5601,'MATO GROSSO DO SUL',0,'MS','Mato Grosso do Sul',1);
INSERT INTO `B67171959_c_departements` VALUES (917,'MG',5601,'MINAS GERAIS',0,'MG','Minas Gerais',1);
INSERT INTO `B67171959_c_departements` VALUES (918,'PA',5601,'PARA',0,'PA','Pará',1);
INSERT INTO `B67171959_c_departements` VALUES (919,'PB',5601,'PARAIBA',0,'PB','Paraiba',1);
INSERT INTO `B67171959_c_departements` VALUES (920,'PR',5601,'PARANA',0,'PR','Paraná',1);
INSERT INTO `B67171959_c_departements` VALUES (921,'PE',5601,'PERNAMBUCO',0,'PE','Pernambuco',1);
INSERT INTO `B67171959_c_departements` VALUES (922,'PI',5601,'PIAUI',0,'PI','Piauí',1);
INSERT INTO `B67171959_c_departements` VALUES (923,'RJ',5601,'RIO DE JANEIRO',0,'RJ','Rio de Janeiro',1);
INSERT INTO `B67171959_c_departements` VALUES (924,'RN',5601,'RIO GRANDE DO NORTE',0,'RN','Rio Grande do Norte',1);
INSERT INTO `B67171959_c_departements` VALUES (925,'RS',5601,'RIO GRANDE DO SUL',0,'RS','Rio Grande do Sul',1);
INSERT INTO `B67171959_c_departements` VALUES (926,'RO',5601,'RONDONIA',0,'RO','Rondônia',1);
INSERT INTO `B67171959_c_departements` VALUES (927,'RR',5601,'RORAIMA',0,'RR','Roraima',1);
INSERT INTO `B67171959_c_departements` VALUES (928,'SC',5601,'SANTA CATARINA',0,'SC','Santa Catarina',1);
INSERT INTO `B67171959_c_departements` VALUES (929,'SE',5601,'SERGIPE',0,'SE','Sergipe',1);
INSERT INTO `B67171959_c_departements` VALUES (930,'SP',5601,'SAO PAULO',0,'SP','Sao Paulo',1);
INSERT INTO `B67171959_c_departements` VALUES (931,'TO',5601,'TOCANTINS',0,'TO','Tocantins',1);
INSERT INTO `B67171959_c_departements` VALUES (932,'DF',5601,'DISTRITO FEDERAL',0,'DF','Distrito Federal',1);
INSERT INTO `B67171959_c_departements` VALUES (933,151,6715,'',0,151,'Arica',1);
INSERT INTO `B67171959_c_departements` VALUES (934,152,6715,'',0,152,'Parinacota',1);
INSERT INTO `B67171959_c_departements` VALUES (935,'011',6701,'',0,'011','Iquique',1);
INSERT INTO `B67171959_c_departements` VALUES (936,'014',6701,'',0,'014','Tamarugal',1);
INSERT INTO `B67171959_c_departements` VALUES (937,'021',6702,'',0,'021','Antofagasa',1);
INSERT INTO `B67171959_c_departements` VALUES (938,'022',6702,'',0,'022','El Loa',1);
INSERT INTO `B67171959_c_departements` VALUES (939,'023',6702,'',0,'023','Tocopilla',1);
INSERT INTO `B67171959_c_departements` VALUES (940,'031',6703,'',0,'031','Copiapó',1);
INSERT INTO `B67171959_c_departements` VALUES (941,'032',6703,'',0,'032','Chañaral',1);
INSERT INTO `B67171959_c_departements` VALUES (942,'033',6703,'',0,'033','Huasco',1);
INSERT INTO `B67171959_c_departements` VALUES (943,'041',6704,'',0,'041','Elqui',1);
INSERT INTO `B67171959_c_departements` VALUES (944,'042',6704,'',0,'042','Choapa',1);
INSERT INTO `B67171959_c_departements` VALUES (945,'043',6704,'',0,'043','Limarí',1);
INSERT INTO `B67171959_c_departements` VALUES (946,'051',6705,'',0,'051','Valparaíso',1);
INSERT INTO `B67171959_c_departements` VALUES (947,'052',6705,'',0,'052','Isla de Pascua',1);
INSERT INTO `B67171959_c_departements` VALUES (948,'053',6705,'',0,'053','Los Andes',1);
INSERT INTO `B67171959_c_departements` VALUES (949,'054',6705,'',0,'054','Petorca',1);
INSERT INTO `B67171959_c_departements` VALUES (950,'055',6705,'',0,'055','Quillota',1);
INSERT INTO `B67171959_c_departements` VALUES (951,'056',6705,'',0,'056','San Antonio',1);
INSERT INTO `B67171959_c_departements` VALUES (952,'057',6705,'',0,'057','San Felipe de Aconcagua',1);
INSERT INTO `B67171959_c_departements` VALUES (953,'058',6705,'',0,'058','Marga Marga',1);
INSERT INTO `B67171959_c_departements` VALUES (954,'061',6706,'',0,'061','Cachapoal',1);
INSERT INTO `B67171959_c_departements` VALUES (955,'062',6706,'',0,'062','Cardenal Caro',1);
INSERT INTO `B67171959_c_departements` VALUES (956,'063',6706,'',0,'063','Colchagua',1);
INSERT INTO `B67171959_c_departements` VALUES (957,'071',6707,'',0,'071','Talca',1);
INSERT INTO `B67171959_c_departements` VALUES (958,'072',6707,'',0,'072','Cauquenes',1);
INSERT INTO `B67171959_c_departements` VALUES (959,'073',6707,'',0,'073','Curicó',1);
INSERT INTO `B67171959_c_departements` VALUES (960,'074',6707,'',0,'074','Linares',1);
INSERT INTO `B67171959_c_departements` VALUES (961,'081',6708,'',0,'081','Concepción',1);
INSERT INTO `B67171959_c_departements` VALUES (962,'082',6708,'',0,'082','Arauco',1);
INSERT INTO `B67171959_c_departements` VALUES (963,'083',6708,'',0,'083','Biobío',1);
INSERT INTO `B67171959_c_departements` VALUES (964,'084',6708,'',0,'084','Ñuble',1);
INSERT INTO `B67171959_c_departements` VALUES (965,'091',6709,'',0,'091','Cautín',1);
INSERT INTO `B67171959_c_departements` VALUES (966,'092',6709,'',0,'092','Malleco',1);
INSERT INTO `B67171959_c_departements` VALUES (967,141,6714,'',0,141,'Valdivia',1);
INSERT INTO `B67171959_c_departements` VALUES (968,142,6714,'',0,142,'Ranco',1);
INSERT INTO `B67171959_c_departements` VALUES (969,101,6710,'',0,101,'Llanquihue',1);
INSERT INTO `B67171959_c_departements` VALUES (970,102,6710,'',0,102,'Chiloé',1);
INSERT INTO `B67171959_c_departements` VALUES (971,103,6710,'',0,103,'Osorno',1);
INSERT INTO `B67171959_c_departements` VALUES (972,104,6710,'',0,104,'Palena',1);
INSERT INTO `B67171959_c_departements` VALUES (973,111,6711,'',0,111,'Coihaique',1);
INSERT INTO `B67171959_c_departements` VALUES (974,112,6711,'',0,112,'Aisén',1);
INSERT INTO `B67171959_c_departements` VALUES (975,113,6711,'',0,113,'Capitán Prat',1);
INSERT INTO `B67171959_c_departements` VALUES (976,114,6711,'',0,114,'General Carrera',1);
INSERT INTO `B67171959_c_departements` VALUES (977,121,6712,'',0,121,'Magallanes',1);
INSERT INTO `B67171959_c_departements` VALUES (978,122,6712,'',0,122,'Antártica Chilena',1);
INSERT INTO `B67171959_c_departements` VALUES (979,123,6712,'',0,123,'Tierra del Fuego',1);
INSERT INTO `B67171959_c_departements` VALUES (980,124,6712,'',0,124,'Última Esperanza',1);
INSERT INTO `B67171959_c_departements` VALUES (981,131,6713,'',0,131,'Santiago',1);
INSERT INTO `B67171959_c_departements` VALUES (982,132,6713,'',0,132,'Cordillera',1);
INSERT INTO `B67171959_c_departements` VALUES (983,133,6713,'',0,133,'Chacabuco',1);
INSERT INTO `B67171959_c_departements` VALUES (984,134,6713,'',0,134,'Maipo',1);
INSERT INTO `B67171959_c_departements` VALUES (985,135,6713,'',0,135,'Melipilla',1);
INSERT INTO `B67171959_c_departements` VALUES (986,136,6713,'',0,136,'Talagante',1);
INSERT INTO `B67171959_c_departements` VALUES (987,'AN',11701,NULL,0,'AN','Andaman & Nicobar',1);
INSERT INTO `B67171959_c_departements` VALUES (988,'AP',11701,NULL,0,'AP','Andhra Pradesh',1);
INSERT INTO `B67171959_c_departements` VALUES (989,'AR',11701,NULL,0,'AR','Arunachal Pradesh',1);
INSERT INTO `B67171959_c_departements` VALUES (990,'AS',11701,NULL,0,'AS','Assam',1);
INSERT INTO `B67171959_c_departements` VALUES (991,'BR',11701,NULL,0,'BR','Bihar',1);
INSERT INTO `B67171959_c_departements` VALUES (992,'CG',11701,NULL,0,'CG','Chattisgarh',1);
INSERT INTO `B67171959_c_departements` VALUES (993,'CH',11701,NULL,0,'CH','Chandigarh',1);
INSERT INTO `B67171959_c_departements` VALUES (994,'DD',11701,NULL,0,'DD','Daman & Diu',1);
INSERT INTO `B67171959_c_departements` VALUES (995,'DL',11701,NULL,0,'DL','Delhi',1);
INSERT INTO `B67171959_c_departements` VALUES (996,'DN',11701,NULL,0,'DN','Dadra and Nagar Haveli',1);
INSERT INTO `B67171959_c_departements` VALUES (997,'GA',11701,NULL,0,'GA','Goa',1);
INSERT INTO `B67171959_c_departements` VALUES (998,'GJ',11701,NULL,0,'GJ','Gujarat',1);
INSERT INTO `B67171959_c_departements` VALUES (999,'HP',11701,NULL,0,'HP','Himachal Pradesh',1);
INSERT INTO `B67171959_c_departements` VALUES (1000,'HR',11701,NULL,0,'HR','Haryana',1);
INSERT INTO `B67171959_c_departements` VALUES (1001,'JH',11701,NULL,0,'JH','Jharkhand',1);
INSERT INTO `B67171959_c_departements` VALUES (1002,'JK',11701,NULL,0,'JK','Jammu & Kashmir',1);
INSERT INTO `B67171959_c_departements` VALUES (1003,'KA',11701,NULL,0,'KA','Karnataka',1);
INSERT INTO `B67171959_c_departements` VALUES (1004,'KL',11701,NULL,0,'KL','Kerala',1);
INSERT INTO `B67171959_c_departements` VALUES (1005,'LD',11701,NULL,0,'LD','Lakshadweep',1);
INSERT INTO `B67171959_c_departements` VALUES (1006,'MH',11701,NULL,0,'MH','Maharashtra',1);
INSERT INTO `B67171959_c_departements` VALUES (1007,'ML',11701,NULL,0,'ML','Meghalaya',1);
INSERT INTO `B67171959_c_departements` VALUES (1008,'MN',11701,NULL,0,'MN','Manipur',1);
INSERT INTO `B67171959_c_departements` VALUES (1009,'MP',11701,NULL,0,'MP','Madhya Pradesh',1);
INSERT INTO `B67171959_c_departements` VALUES (1010,'MZ',11701,NULL,0,'MZ','Mizoram',1);
INSERT INTO `B67171959_c_departements` VALUES (1011,'NL',11701,NULL,0,'NL','Nagaland',1);
INSERT INTO `B67171959_c_departements` VALUES (1012,'OR',11701,NULL,0,'OR','Orissa',1);
INSERT INTO `B67171959_c_departements` VALUES (1013,'PB',11701,NULL,0,'PB','Punjab',1);
INSERT INTO `B67171959_c_departements` VALUES (1014,'PY',11701,NULL,0,'PY','Puducherry',1);
INSERT INTO `B67171959_c_departements` VALUES (1015,'RJ',11701,NULL,0,'RJ','Rajasthan',1);
INSERT INTO `B67171959_c_departements` VALUES (1016,'SK',11701,NULL,0,'SK','Sikkim',1);
INSERT INTO `B67171959_c_departements` VALUES (1017,'TN',11701,NULL,0,'TN','Tamil Nadu',1);
INSERT INTO `B67171959_c_departements` VALUES (1018,'TR',11701,NULL,0,'TR','Tripura',1);
INSERT INTO `B67171959_c_departements` VALUES (1019,'UL',11701,NULL,0,'UL','Uttarakhand',1);
INSERT INTO `B67171959_c_departements` VALUES (1020,'UP',11701,NULL,0,'UP','Uttar Pradesh',1);
INSERT INTO `B67171959_c_departements` VALUES (1021,'WB',11701,NULL,0,'WB','West Bengal',1);
INSERT INTO `B67171959_c_departements` VALUES (1022,'DIF',15401,'',0,'DIF','Distrito Federal',1);
INSERT INTO `B67171959_c_departements` VALUES (1023,'AGS',15401,'',0,'AGS','Aguascalientes',1);
INSERT INTO `B67171959_c_departements` VALUES (1024,'BCN',15401,'',0,'BCN','Baja California Norte',1);
INSERT INTO `B67171959_c_departements` VALUES (1025,'BCS',15401,'',0,'BCS','Baja California Sur',1);
INSERT INTO `B67171959_c_departements` VALUES (1026,'CAM',15401,'',0,'CAM','Campeche',1);
INSERT INTO `B67171959_c_departements` VALUES (1027,'CHP',15401,'',0,'CHP','Chiapas',1);
INSERT INTO `B67171959_c_departements` VALUES (1028,'CHI',15401,'',0,'CHI','Chihuahua',1);
INSERT INTO `B67171959_c_departements` VALUES (1029,'COA',15401,'',0,'COA','Coahuila',1);
INSERT INTO `B67171959_c_departements` VALUES (1030,'COL',15401,'',0,'COL','Colima',1);
INSERT INTO `B67171959_c_departements` VALUES (1031,'DUR',15401,'',0,'DUR','Durango',1);
INSERT INTO `B67171959_c_departements` VALUES (1032,'GTO',15401,'',0,'GTO','Guanajuato',1);
INSERT INTO `B67171959_c_departements` VALUES (1033,'GRO',15401,'',0,'GRO','Guerrero',1);
INSERT INTO `B67171959_c_departements` VALUES (1034,'HGO',15401,'',0,'HGO','Hidalgo',1);
INSERT INTO `B67171959_c_departements` VALUES (1035,'JAL',15401,'',0,'JAL','Jalisco',1);
INSERT INTO `B67171959_c_departements` VALUES (1036,'MEX',15401,'',0,'MEX','México',1);
INSERT INTO `B67171959_c_departements` VALUES (1037,'MIC',15401,'',0,'MIC','Michoacán de Ocampo',1);
INSERT INTO `B67171959_c_departements` VALUES (1038,'MOR',15401,'',0,'MOR','Morelos',1);
INSERT INTO `B67171959_c_departements` VALUES (1039,'NAY',15401,'',0,'NAY','Nayarit',1);
INSERT INTO `B67171959_c_departements` VALUES (1040,'NLE',15401,'',0,'NLE','Nuevo León',1);
INSERT INTO `B67171959_c_departements` VALUES (1041,'OAX',15401,'',0,'OAX','Oaxaca',1);
INSERT INTO `B67171959_c_departements` VALUES (1042,'PUE',15401,'',0,'PUE','Puebla',1);
INSERT INTO `B67171959_c_departements` VALUES (1043,'QRO',15401,'',0,'QRO','Querétaro',1);
INSERT INTO `B67171959_c_departements` VALUES (1044,'ROO',15401,'',0,'ROO','Quintana Roo',1);
INSERT INTO `B67171959_c_departements` VALUES (1045,'SLP',15401,'',0,'SLP','San Luis Potosí',1);
INSERT INTO `B67171959_c_departements` VALUES (1046,'SIN',15401,'',0,'SIN','Sinaloa',1);
INSERT INTO `B67171959_c_departements` VALUES (1047,'SON',15401,'',0,'SON','Sonora',1);
INSERT INTO `B67171959_c_departements` VALUES (1048,'TAB',15401,'',0,'TAB','Tabasco',1);
INSERT INTO `B67171959_c_departements` VALUES (1049,'TAM',15401,'',0,'TAM','Tamaulipas',1);
INSERT INTO `B67171959_c_departements` VALUES (1050,'TLX',15401,'',0,'TLX','Tlaxcala',1);
INSERT INTO `B67171959_c_departements` VALUES (1051,'VER',15401,'',0,'VER','Veracruz',1);
INSERT INTO `B67171959_c_departements` VALUES (1052,'YUC',15401,'',0,'YUC','Yucatán',1);
INSERT INTO `B67171959_c_departements` VALUES (1053,'ZAC',15401,'',0,'ZAC','Zacatecas',1);
INSERT INTO `B67171959_c_departements` VALUES (1054,'ANT',7001,'',0,'ANT','Antioquia',1);
INSERT INTO `B67171959_c_departements` VALUES (1055,'BOL',7001,'',0,'BOL','Bolívar',1);
INSERT INTO `B67171959_c_departements` VALUES (1056,'BOY',7001,'',0,'BOY','Boyacá',1);
INSERT INTO `B67171959_c_departements` VALUES (1057,'CAL',7001,'',0,'CAL','Caldas',1);
INSERT INTO `B67171959_c_departements` VALUES (1058,'CAU',7001,'',0,'CAU','Cauca',1);
INSERT INTO `B67171959_c_departements` VALUES (1059,'CUN',7001,'',0,'CUN','Cundinamarca',1);
INSERT INTO `B67171959_c_departements` VALUES (1060,'HUI',7001,'',0,'HUI','Huila',1);
INSERT INTO `B67171959_c_departements` VALUES (1061,'LAG',7001,'',0,'LAG','La Guajira',1);
INSERT INTO `B67171959_c_departements` VALUES (1062,'MET',7001,'',0,'MET','Meta',1);
INSERT INTO `B67171959_c_departements` VALUES (1063,'NAR',7001,'',0,'NAR','Nariño',1);
INSERT INTO `B67171959_c_departements` VALUES (1064,'NDS',7001,'',0,'NDS','Norte de Santander',1);
INSERT INTO `B67171959_c_departements` VALUES (1065,'SAN',7001,'',0,'SAN','Santander',1);
INSERT INTO `B67171959_c_departements` VALUES (1066,'SUC',7001,'',0,'SUC','Sucre',1);
INSERT INTO `B67171959_c_departements` VALUES (1067,'TOL',7001,'',0,'TOL','Tolima',1);
INSERT INTO `B67171959_c_departements` VALUES (1068,'VAC',7001,'',0,'VAC','Valle del Cauca',1);
INSERT INTO `B67171959_c_departements` VALUES (1069,'RIS',7001,'',0,'RIS','Risalda',1);
INSERT INTO `B67171959_c_departements` VALUES (1070,'ATL',7001,'',0,'ATL','Atlántico',1);
INSERT INTO `B67171959_c_departements` VALUES (1071,'COR',7001,'',0,'COR','Córdoba',1);
INSERT INTO `B67171959_c_departements` VALUES (1072,'SAP',7001,'',0,'SAP','San Andrés, Providencia y Santa Catalina',1);
INSERT INTO `B67171959_c_departements` VALUES (1073,'ARA',7001,'',0,'ARA','Arauca',1);
INSERT INTO `B67171959_c_departements` VALUES (1074,'CAS',7001,'',0,'CAS','Casanare',1);
INSERT INTO `B67171959_c_departements` VALUES (1075,'AMA',7001,'',0,'AMA','Amazonas',1);
INSERT INTO `B67171959_c_departements` VALUES (1076,'CAQ',7001,'',0,'CAQ','Caquetá',1);
INSERT INTO `B67171959_c_departements` VALUES (1077,'CHO',7001,'',0,'CHO','Chocó',1);
INSERT INTO `B67171959_c_departements` VALUES (1078,'GUA',7001,'',0,'GUA','Guainía',1);
INSERT INTO `B67171959_c_departements` VALUES (1079,'GUV',7001,'',0,'GUV','Guaviare',1);
INSERT INTO `B67171959_c_departements` VALUES (1080,'PUT',7001,'',0,'PUT','Putumayo',1);
INSERT INTO `B67171959_c_departements` VALUES (1081,'QUI',7001,'',0,'QUI','Quindío',1);
INSERT INTO `B67171959_c_departements` VALUES (1082,'VAU',7001,'',0,'VAU','Vaupés',1);
INSERT INTO `B67171959_c_departements` VALUES (1083,'BOG',7001,'',0,'BOG','Bogotá',1);
INSERT INTO `B67171959_c_departements` VALUES (1084,'VID',7001,'',0,'VID','Vichada',1);
INSERT INTO `B67171959_c_departements` VALUES (1085,'CES',7001,'',0,'CES','Cesar',1);
INSERT INTO `B67171959_c_departements` VALUES (1086,'MAG',7001,'',0,'MAG','Magdalena',1);
INSERT INTO `B67171959_c_departements` VALUES (1087,'AT',11401,'',0,'AT','Atlántida',1);
INSERT INTO `B67171959_c_departements` VALUES (1088,'CH',11401,'',0,'CH','Choluteca',1);
INSERT INTO `B67171959_c_departements` VALUES (1089,'CL',11401,'',0,'CL','Colón',1);
INSERT INTO `B67171959_c_departements` VALUES (1090,'CM',11401,'',0,'CM','Comayagua',1);
INSERT INTO `B67171959_c_departements` VALUES (1091,'CO',11401,'',0,'CO','Copán',1);
INSERT INTO `B67171959_c_departements` VALUES (1092,'CR',11401,'',0,'CR','Cortés',1);
INSERT INTO `B67171959_c_departements` VALUES (1093,'EP',11401,'',0,'EP','El Paraíso',1);
INSERT INTO `B67171959_c_departements` VALUES (1094,'FM',11401,'',0,'FM','Francisco Morazán',1);
INSERT INTO `B67171959_c_departements` VALUES (1095,'GD',11401,'',0,'GD','Gracias a Dios',1);
INSERT INTO `B67171959_c_departements` VALUES (1096,'IN',11401,'',0,'IN','Intibucá',1);
INSERT INTO `B67171959_c_departements` VALUES (1097,'IB',11401,'',0,'IB','Islas de la Bahía',1);
INSERT INTO `B67171959_c_departements` VALUES (1098,'LP',11401,'',0,'LP','La Paz',1);
INSERT INTO `B67171959_c_departements` VALUES (1099,'LM',11401,'',0,'LM','Lempira',1);
INSERT INTO `B67171959_c_departements` VALUES (1100,'OC',11401,'',0,'OC','Ocotepeque',1);
INSERT INTO `B67171959_c_departements` VALUES (1101,'OL',11401,'',0,'OL','Olancho',1);
INSERT INTO `B67171959_c_departements` VALUES (1102,'SB',11401,'',0,'SB','Santa Bárbara',1);
INSERT INTO `B67171959_c_departements` VALUES (1103,'VL',11401,'',0,'VL','Valle',1);
INSERT INTO `B67171959_c_departements` VALUES (1104,'YO',11401,'',0,'YO','Yoro',1);
INSERT INTO `B67171959_c_departements` VALUES (1105,'DC',11401,'',0,'DC','Distrito Central',1);
INSERT INTO `B67171959_c_departements` VALUES (1106,'AB',18801,'',0,'','Alba',1);
INSERT INTO `B67171959_c_departements` VALUES (1107,'AR',18801,'',0,'','Arad',1);
INSERT INTO `B67171959_c_departements` VALUES (1108,'AG',18801,'',0,'','Argeș',1);
INSERT INTO `B67171959_c_departements` VALUES (1109,'BC',18801,'',0,'','Bacău',1);
INSERT INTO `B67171959_c_departements` VALUES (1110,'BH',18801,'',0,'','Bihor',1);
INSERT INTO `B67171959_c_departements` VALUES (1111,'BN',18801,'',0,'','Bistrița-Năsăud',1);
INSERT INTO `B67171959_c_departements` VALUES (1112,'BT',18801,'',0,'','Botoșani',1);
INSERT INTO `B67171959_c_departements` VALUES (1113,'BV',18801,'',0,'','Brașov',1);
INSERT INTO `B67171959_c_departements` VALUES (1114,'BR',18801,'',0,'','Brăila',1);
INSERT INTO `B67171959_c_departements` VALUES (1115,'BZ',18801,'',0,'','Buzău',1);
INSERT INTO `B67171959_c_departements` VALUES (1116,'CL',18801,'',0,'','Călărași',1);
INSERT INTO `B67171959_c_departements` VALUES (1117,'CS',18801,'',0,'','Caraș-Severin',1);
INSERT INTO `B67171959_c_departements` VALUES (1118,'CJ',18801,'',0,'','Cluj',1);
INSERT INTO `B67171959_c_departements` VALUES (1119,'CT',18801,'',0,'','Constanța',1);
INSERT INTO `B67171959_c_departements` VALUES (1120,'CV',18801,'',0,'','Covasna',1);
INSERT INTO `B67171959_c_departements` VALUES (1121,'DB',18801,'',0,'','Dâmbovița',1);
INSERT INTO `B67171959_c_departements` VALUES (1122,'DJ',18801,'',0,'','Dolj',1);
INSERT INTO `B67171959_c_departements` VALUES (1123,'GL',18801,'',0,'','Galați',1);
INSERT INTO `B67171959_c_departements` VALUES (1124,'GR',18801,'',0,'','Giurgiu',1);
INSERT INTO `B67171959_c_departements` VALUES (1125,'GJ',18801,'',0,'','Gorj',1);
INSERT INTO `B67171959_c_departements` VALUES (1126,'HR',18801,'',0,'','Harghita',1);
INSERT INTO `B67171959_c_departements` VALUES (1127,'HD',18801,'',0,'','Hunedoara',1);
INSERT INTO `B67171959_c_departements` VALUES (1128,'IL',18801,'',0,'','Ialomița',1);
INSERT INTO `B67171959_c_departements` VALUES (1129,'IS',18801,'',0,'','Iași',1);
INSERT INTO `B67171959_c_departements` VALUES (1130,'IF',18801,'',0,'','Ilfov',1);
INSERT INTO `B67171959_c_departements` VALUES (1131,'MM',18801,'',0,'','Maramureș',1);
INSERT INTO `B67171959_c_departements` VALUES (1132,'MH',18801,'',0,'','Mehedinți',1);
INSERT INTO `B67171959_c_departements` VALUES (1133,'MS',18801,'',0,'','Mureș',1);
INSERT INTO `B67171959_c_departements` VALUES (1134,'NT',18801,'',0,'','Neamț',1);
INSERT INTO `B67171959_c_departements` VALUES (1135,'OT',18801,'',0,'','Olt',1);
INSERT INTO `B67171959_c_departements` VALUES (1136,'PH',18801,'',0,'','Prahova',1);
INSERT INTO `B67171959_c_departements` VALUES (1137,'SM',18801,'',0,'','Satu Mare',1);
INSERT INTO `B67171959_c_departements` VALUES (1138,'SJ',18801,'',0,'','Sălaj',1);
INSERT INTO `B67171959_c_departements` VALUES (1139,'SB',18801,'',0,'','Sibiu',1);
INSERT INTO `B67171959_c_departements` VALUES (1140,'SV',18801,'',0,'','Suceava',1);
INSERT INTO `B67171959_c_departements` VALUES (1141,'TR',18801,'',0,'','Teleorman',1);
INSERT INTO `B67171959_c_departements` VALUES (1142,'TM',18801,'',0,'','Timiș',1);
INSERT INTO `B67171959_c_departements` VALUES (1143,'TL',18801,'',0,'','Tulcea',1);
INSERT INTO `B67171959_c_departements` VALUES (1144,'VS',18801,'',0,'','Vaslui',1);
INSERT INTO `B67171959_c_departements` VALUES (1145,'VL',18801,'',0,'','Vâlcea',1);
INSERT INTO `B67171959_c_departements` VALUES (1146,'VN',18801,'',0,'','Vrancea',1);
INSERT INTO `B67171959_c_departements` VALUES (1147,'BU',18801,'',0,'','Bucuresti',1);
INSERT INTO `B67171959_c_departements` VALUES (1148,'VE-L',23201,'',0,'VE-L','Mérida',1);
INSERT INTO `B67171959_c_departements` VALUES (1149,'VE-T',23201,'',0,'VE-T','Trujillo',1);
INSERT INTO `B67171959_c_departements` VALUES (1150,'VE-E',23201,'',0,'VE-E','Barinas',1);
INSERT INTO `B67171959_c_departements` VALUES (1151,'VE-M',23202,'',0,'VE-M','Miranda',1);
INSERT INTO `B67171959_c_departements` VALUES (1152,'VE-W',23202,'',0,'VE-W','Vargas',1);
INSERT INTO `B67171959_c_departements` VALUES (1153,'VE-A',23202,'',0,'VE-A','Distrito Capital',1);
INSERT INTO `B67171959_c_departements` VALUES (1154,'VE-D',23203,'',0,'VE-D','Aragua',1);
INSERT INTO `B67171959_c_departements` VALUES (1155,'VE-G',23203,'',0,'VE-G','Carabobo',1);
INSERT INTO `B67171959_c_departements` VALUES (1156,'VE-I',23204,'',0,'VE-I','Falcón',1);
INSERT INTO `B67171959_c_departements` VALUES (1157,'VE-K',23204,'',0,'VE-K','Lara',1);
INSERT INTO `B67171959_c_departements` VALUES (1158,'VE-U',23204,'',0,'VE-U','Yaracuy',1);
INSERT INTO `B67171959_c_departements` VALUES (1159,'VE-F',23205,'',0,'VE-F','Bolívar',1);
INSERT INTO `B67171959_c_departements` VALUES (1160,'VE-X',23205,'',0,'VE-X','Amazonas',1);
INSERT INTO `B67171959_c_departements` VALUES (1161,'VE-Y',23205,'',0,'VE-Y','Delta Amacuro',1);
INSERT INTO `B67171959_c_departements` VALUES (1162,'VE-O',23206,'',0,'VE-O','Nueva Esparta',1);
INSERT INTO `B67171959_c_departements` VALUES (1163,'VE-Z',23206,'',0,'VE-Z','Dependencias Federales',1);
INSERT INTO `B67171959_c_departements` VALUES (1164,'VE-C',23207,'',0,'VE-C','Apure',1);
INSERT INTO `B67171959_c_departements` VALUES (1165,'VE-J',23207,'',0,'VE-J','Guárico',1);
INSERT INTO `B67171959_c_departements` VALUES (1166,'VE-H',23207,'',0,'VE-H','Cojedes',1);
INSERT INTO `B67171959_c_departements` VALUES (1167,'VE-P',23207,'',0,'VE-P','Portuguesa',1);
INSERT INTO `B67171959_c_departements` VALUES (1168,'VE-B',23208,'',0,'VE-B','Anzoátegui',1);
INSERT INTO `B67171959_c_departements` VALUES (1169,'VE-N',23208,'',0,'VE-N','Monagas',1);
INSERT INTO `B67171959_c_departements` VALUES (1170,'VE-R',23208,'',0,'VE-R','Sucre',1);
INSERT INTO `B67171959_c_departements` VALUES (1171,'VE-V',23209,'',0,'VE-V','Zulia',1);
INSERT INTO `B67171959_c_departements` VALUES (1172,'VE-S',23209,'',0,'VE-S','Táchira',1);
INSERT INTO `B67171959_c_departements` VALUES (1173,'LU0001',14001,'',0,'','Clervaux',1);
INSERT INTO `B67171959_c_departements` VALUES (1174,'LU0002',14001,'',0,'','Diekirch',1);
INSERT INTO `B67171959_c_departements` VALUES (1175,'LU0003',14001,'',0,'','Redange',1);
INSERT INTO `B67171959_c_departements` VALUES (1176,'LU0004',14001,'',0,'','Vianden',1);
INSERT INTO `B67171959_c_departements` VALUES (1177,'LU0005',14001,'',0,'','Wiltz',1);
INSERT INTO `B67171959_c_departements` VALUES (1178,'LU0006',14002,'',0,'','Echternach',1);
INSERT INTO `B67171959_c_departements` VALUES (1179,'LU0007',14002,'',0,'','Grevenmacher',1);
INSERT INTO `B67171959_c_departements` VALUES (1180,'LU0008',14002,'',0,'','Remich',1);
INSERT INTO `B67171959_c_departements` VALUES (1181,'LU0009',14003,'',0,'','Capellen',1);
INSERT INTO `B67171959_c_departements` VALUES (1182,'LU0010',14003,'',0,'','Esch-sur-Alzette',1);
INSERT INTO `B67171959_c_departements` VALUES (1183,'LU0011',14003,'',0,'','Luxembourg',1);
INSERT INTO `B67171959_c_departements` VALUES (1184,'LU0012',14003,'',0,'','Mersch',1);
INSERT INTO `B67171959_c_departements` VALUES (1185,'0101',18101,'',0,'','Chachapoyas',1);
INSERT INTO `B67171959_c_departements` VALUES (1186,'0102',18101,'',0,'','Bagua',1);
INSERT INTO `B67171959_c_departements` VALUES (1187,'0103',18101,'',0,'','Bongará',1);
INSERT INTO `B67171959_c_departements` VALUES (1188,'0104',18101,'',0,'','Condorcanqui',1);
INSERT INTO `B67171959_c_departements` VALUES (1189,'0105',18101,'',0,'','Luya',1);
INSERT INTO `B67171959_c_departements` VALUES (1190,'0106',18101,'',0,'','Rodríguez de Mendoza',1);
INSERT INTO `B67171959_c_departements` VALUES (1191,'0107',18101,'',0,'','Utcubamba',1);
INSERT INTO `B67171959_c_departements` VALUES (1192,'0201',18102,'',0,'','Huaraz',1);
INSERT INTO `B67171959_c_departements` VALUES (1193,'0202',18102,'',0,'','Aija',1);
INSERT INTO `B67171959_c_departements` VALUES (1194,'0203',18102,'',0,'','Antonio Raymondi',1);
INSERT INTO `B67171959_c_departements` VALUES (1195,'0204',18102,'',0,'','Asunción',1);
INSERT INTO `B67171959_c_departements` VALUES (1196,'0205',18102,'',0,'','Bolognesi',1);
INSERT INTO `B67171959_c_departements` VALUES (1197,'0206',18102,'',0,'','Carhuaz',1);
INSERT INTO `B67171959_c_departements` VALUES (1198,'0207',18102,'',0,'','Carlos Fermín Fitzcarrald',1);
INSERT INTO `B67171959_c_departements` VALUES (1199,'0208',18102,'',0,'','Casma',1);
INSERT INTO `B67171959_c_departements` VALUES (1200,'0209',18102,'',0,'','Corongo',1);
INSERT INTO `B67171959_c_departements` VALUES (1201,'0210',18102,'',0,'','Huari',1);
INSERT INTO `B67171959_c_departements` VALUES (1202,'0211',18102,'',0,'','Huarmey',1);
INSERT INTO `B67171959_c_departements` VALUES (1203,'0212',18102,'',0,'','Huaylas',1);
INSERT INTO `B67171959_c_departements` VALUES (1204,'0213',18102,'',0,'','Mariscal Luzuriaga',1);
INSERT INTO `B67171959_c_departements` VALUES (1205,'0214',18102,'',0,'','Ocros',1);
INSERT INTO `B67171959_c_departements` VALUES (1206,'0215',18102,'',0,'','Pallasca',1);
INSERT INTO `B67171959_c_departements` VALUES (1207,'0216',18102,'',0,'','Pomabamba',1);
INSERT INTO `B67171959_c_departements` VALUES (1208,'0217',18102,'',0,'','Recuay',1);
INSERT INTO `B67171959_c_departements` VALUES (1209,'0218',18102,'',0,'','Papá',1);
INSERT INTO `B67171959_c_departements` VALUES (1210,'0219',18102,'',0,'','Sihuas',1);
INSERT INTO `B67171959_c_departements` VALUES (1211,'0220',18102,'',0,'','Yungay',1);
INSERT INTO `B67171959_c_departements` VALUES (1212,'0301',18103,'',0,'','Abancay',1);
INSERT INTO `B67171959_c_departements` VALUES (1213,'0302',18103,'',0,'','Andahuaylas',1);
INSERT INTO `B67171959_c_departements` VALUES (1214,'0303',18103,'',0,'','Antabamba',1);
INSERT INTO `B67171959_c_departements` VALUES (1215,'0304',18103,'',0,'','Aymaraes',1);
INSERT INTO `B67171959_c_departements` VALUES (1216,'0305',18103,'',0,'','Cotabambas',1);
INSERT INTO `B67171959_c_departements` VALUES (1217,'0306',18103,'',0,'','Chincheros',1);
INSERT INTO `B67171959_c_departements` VALUES (1218,'0307',18103,'',0,'','Grau',1);
INSERT INTO `B67171959_c_departements` VALUES (1219,'0401',18104,'',0,'','Arequipa',1);
INSERT INTO `B67171959_c_departements` VALUES (1220,'0402',18104,'',0,'','Camaná',1);
INSERT INTO `B67171959_c_departements` VALUES (1221,'0403',18104,'',0,'','Caravelí',1);
INSERT INTO `B67171959_c_departements` VALUES (1222,'0404',18104,'',0,'','Castilla',1);
INSERT INTO `B67171959_c_departements` VALUES (1223,'0405',18104,'',0,'','Caylloma',1);
INSERT INTO `B67171959_c_departements` VALUES (1224,'0406',18104,'',0,'','Condesuyos',1);
INSERT INTO `B67171959_c_departements` VALUES (1225,'0407',18104,'',0,'','Islay',1);
INSERT INTO `B67171959_c_departements` VALUES (1226,'0408',18104,'',0,'','La Unión',1);
INSERT INTO `B67171959_c_departements` VALUES (1227,'0501',18105,'',0,'','Huamanga',1);
INSERT INTO `B67171959_c_departements` VALUES (1228,'0502',18105,'',0,'','Cangallo',1);
INSERT INTO `B67171959_c_departements` VALUES (1229,'0503',18105,'',0,'','Huanca Sancos',1);
INSERT INTO `B67171959_c_departements` VALUES (1230,'0504',18105,'',0,'','Huanta',1);
INSERT INTO `B67171959_c_departements` VALUES (1231,'0505',18105,'',0,'','La Mar',1);
INSERT INTO `B67171959_c_departements` VALUES (1232,'0506',18105,'',0,'','Lucanas',1);
INSERT INTO `B67171959_c_departements` VALUES (1233,'0507',18105,'',0,'','Parinacochas',1);
INSERT INTO `B67171959_c_departements` VALUES (1234,'0508',18105,'',0,'','Páucar del Sara Sara',1);
INSERT INTO `B67171959_c_departements` VALUES (1235,'0509',18105,'',0,'','Sucre',1);
INSERT INTO `B67171959_c_departements` VALUES (1236,'0510',18105,'',0,'','Víctor Fajardo',1);
INSERT INTO `B67171959_c_departements` VALUES (1237,'0511',18105,'',0,'','Vilcas Huamán',1);
INSERT INTO `B67171959_c_departements` VALUES (1238,'0601',18106,'',0,'','Cajamarca',1);
INSERT INTO `B67171959_c_departements` VALUES (1239,'0602',18106,'',0,'','Cajabamba',1);
INSERT INTO `B67171959_c_departements` VALUES (1240,'0603',18106,'',0,'','Celendín',1);
INSERT INTO `B67171959_c_departements` VALUES (1241,'0604',18106,'',0,'','Chota',1);
INSERT INTO `B67171959_c_departements` VALUES (1242,'0605',18106,'',0,'','Contumazá',1);
INSERT INTO `B67171959_c_departements` VALUES (1243,'0606',18106,'',0,'','Cutervo',1);
INSERT INTO `B67171959_c_departements` VALUES (1244,'0607',18106,'',0,'','Hualgayoc',1);
INSERT INTO `B67171959_c_departements` VALUES (1245,'0608',18106,'',0,'','Jaén',1);
INSERT INTO `B67171959_c_departements` VALUES (1246,'0609',18106,'',0,'','San Ignacio',1);
INSERT INTO `B67171959_c_departements` VALUES (1247,'0610',18106,'',0,'','San Marcos',1);
INSERT INTO `B67171959_c_departements` VALUES (1248,'0611',18106,'',0,'','San Miguel',1);
INSERT INTO `B67171959_c_departements` VALUES (1249,'0612',18106,'',0,'','San Pablo',1);
INSERT INTO `B67171959_c_departements` VALUES (1250,'0613',18106,'',0,'','Santa Cruz',1);
INSERT INTO `B67171959_c_departements` VALUES (1251,'0701',18107,'',0,'','Callao',1);
INSERT INTO `B67171959_c_departements` VALUES (1252,'0801',18108,'',0,'','Cusco',1);
INSERT INTO `B67171959_c_departements` VALUES (1253,'0802',18108,'',0,'','Acomayo',1);
INSERT INTO `B67171959_c_departements` VALUES (1254,'0803',18108,'',0,'','Anta',1);
INSERT INTO `B67171959_c_departements` VALUES (1255,'0804',18108,'',0,'','Calca',1);
INSERT INTO `B67171959_c_departements` VALUES (1256,'0805',18108,'',0,'','Canas',1);
INSERT INTO `B67171959_c_departements` VALUES (1257,'0806',18108,'',0,'','Canchis',1);
INSERT INTO `B67171959_c_departements` VALUES (1258,'0807',18108,'',0,'','Chumbivilcas',1);
INSERT INTO `B67171959_c_departements` VALUES (1259,'0808',18108,'',0,'','Espinar',1);
INSERT INTO `B67171959_c_departements` VALUES (1260,'0809',18108,'',0,'','La Convención',1);
INSERT INTO `B67171959_c_departements` VALUES (1261,'0810',18108,'',0,'','Paruro',1);
INSERT INTO `B67171959_c_departements` VALUES (1262,'0811',18108,'',0,'','Paucartambo',1);
INSERT INTO `B67171959_c_departements` VALUES (1263,'0812',18108,'',0,'','Quispicanchi',1);
INSERT INTO `B67171959_c_departements` VALUES (1264,'0813',18108,'',0,'','Urubamba',1);
INSERT INTO `B67171959_c_departements` VALUES (1265,'0901',18109,'',0,'','Huancavelica',1);
INSERT INTO `B67171959_c_departements` VALUES (1266,'0902',18109,'',0,'','Acobamba',1);
INSERT INTO `B67171959_c_departements` VALUES (1267,'0903',18109,'',0,'','Angaraes',1);
INSERT INTO `B67171959_c_departements` VALUES (1268,'0904',18109,'',0,'','Castrovirreyna',1);
INSERT INTO `B67171959_c_departements` VALUES (1269,'0905',18109,'',0,'','Churcampa',1);
INSERT INTO `B67171959_c_departements` VALUES (1270,'0906',18109,'',0,'','Huaytará',1);
INSERT INTO `B67171959_c_departements` VALUES (1271,'0907',18109,'',0,'','Tayacaja',1);
INSERT INTO `B67171959_c_departements` VALUES (1272,1001,18110,'',0,'','Huánuco',1);
INSERT INTO `B67171959_c_departements` VALUES (1273,1002,18110,'',0,'','Ambón',1);
INSERT INTO `B67171959_c_departements` VALUES (1274,1003,18110,'',0,'','Dos de Mayo',1);
INSERT INTO `B67171959_c_departements` VALUES (1275,1004,18110,'',0,'','Huacaybamba',1);
INSERT INTO `B67171959_c_departements` VALUES (1276,1005,18110,'',0,'','Huamalíes',1);
INSERT INTO `B67171959_c_departements` VALUES (1277,1006,18110,'',0,'','Leoncio Prado',1);
INSERT INTO `B67171959_c_departements` VALUES (1278,1007,18110,'',0,'','Marañón',1);
INSERT INTO `B67171959_c_departements` VALUES (1279,1008,18110,'',0,'','Pachitea',1);
INSERT INTO `B67171959_c_departements` VALUES (1280,1009,18110,'',0,'','Puerto Inca',1);
INSERT INTO `B67171959_c_departements` VALUES (1281,1010,18110,'',0,'','Lauricocha',1);
INSERT INTO `B67171959_c_departements` VALUES (1282,1011,18110,'',0,'','Yarowilca',1);
INSERT INTO `B67171959_c_departements` VALUES (1283,1101,18111,'',0,'','Ica',1);
INSERT INTO `B67171959_c_departements` VALUES (1284,1102,18111,'',0,'','Chincha',1);
INSERT INTO `B67171959_c_departements` VALUES (1285,1103,18111,'',0,'','Nazca',1);
INSERT INTO `B67171959_c_departements` VALUES (1286,1104,18111,'',0,'','Palpa',1);
INSERT INTO `B67171959_c_departements` VALUES (1287,1105,18111,'',0,'','Pisco',1);
INSERT INTO `B67171959_c_departements` VALUES (1288,1201,18112,'',0,'','Huancayo',1);
INSERT INTO `B67171959_c_departements` VALUES (1289,1202,18112,'',0,'','Concepción',1);
INSERT INTO `B67171959_c_departements` VALUES (1290,1203,18112,'',0,'','Chanchamayo',1);
INSERT INTO `B67171959_c_departements` VALUES (1291,1204,18112,'',0,'','Jauja',1);
INSERT INTO `B67171959_c_departements` VALUES (1292,1205,18112,'',0,'','Junín',1);
INSERT INTO `B67171959_c_departements` VALUES (1293,1206,18112,'',0,'','Satipo',1);
INSERT INTO `B67171959_c_departements` VALUES (1294,1207,18112,'',0,'','Tarma',1);
INSERT INTO `B67171959_c_departements` VALUES (1295,1208,18112,'',0,'','Yauli',1);
INSERT INTO `B67171959_c_departements` VALUES (1296,1209,18112,'',0,'','Chupaca',1);
INSERT INTO `B67171959_c_departements` VALUES (1297,1301,18113,'',0,'','Trujillo',1);
INSERT INTO `B67171959_c_departements` VALUES (1298,1302,18113,'',0,'','Ascope',1);
INSERT INTO `B67171959_c_departements` VALUES (1299,1303,18113,'',0,'','Bolívar',1);
INSERT INTO `B67171959_c_departements` VALUES (1300,1304,18113,'',0,'','Chepén',1);
INSERT INTO `B67171959_c_departements` VALUES (1301,1305,18113,'',0,'','Julcán',1);
INSERT INTO `B67171959_c_departements` VALUES (1302,1306,18113,'',0,'','Otuzco',1);
INSERT INTO `B67171959_c_departements` VALUES (1303,1307,18113,'',0,'','Pacasmayo',1);
INSERT INTO `B67171959_c_departements` VALUES (1304,1308,18113,'',0,'','Pataz',1);
INSERT INTO `B67171959_c_departements` VALUES (1305,1309,18113,'',0,'','Sánchez Carrión',1);
INSERT INTO `B67171959_c_departements` VALUES (1306,1310,18113,'',0,'','Santiago de Chuco',1);
INSERT INTO `B67171959_c_departements` VALUES (1307,1311,18113,'',0,'','Gran Chimú',1);
INSERT INTO `B67171959_c_departements` VALUES (1308,1312,18113,'',0,'','Virú',1);
INSERT INTO `B67171959_c_departements` VALUES (1309,1401,18114,'',0,'','Chiclayo',1);
INSERT INTO `B67171959_c_departements` VALUES (1310,1402,18114,'',0,'','Ferreñafe',1);
INSERT INTO `B67171959_c_departements` VALUES (1311,1403,18114,'',0,'','Lambayeque',1);
INSERT INTO `B67171959_c_departements` VALUES (1312,1501,18115,'',0,'','Lima',1);
INSERT INTO `B67171959_c_departements` VALUES (1313,1502,18116,'',0,'','Huaura',1);
INSERT INTO `B67171959_c_departements` VALUES (1314,1503,18116,'',0,'','Barranca',1);
INSERT INTO `B67171959_c_departements` VALUES (1315,1504,18116,'',0,'','Cajatambo',1);
INSERT INTO `B67171959_c_departements` VALUES (1316,1505,18116,'',0,'','Canta',1);
INSERT INTO `B67171959_c_departements` VALUES (1317,1506,18116,'',0,'','Cañete',1);
INSERT INTO `B67171959_c_departements` VALUES (1318,1507,18116,'',0,'','Huaral',1);
INSERT INTO `B67171959_c_departements` VALUES (1319,1508,18116,'',0,'','Huarochirí',1);
INSERT INTO `B67171959_c_departements` VALUES (1320,1509,18116,'',0,'','Oyón',1);
INSERT INTO `B67171959_c_departements` VALUES (1321,1510,18116,'',0,'','Yauyos',1);
INSERT INTO `B67171959_c_departements` VALUES (1322,1601,18117,'',0,'','Maynas',1);
INSERT INTO `B67171959_c_departements` VALUES (1323,1602,18117,'',0,'','Alto Amazonas',1);
INSERT INTO `B67171959_c_departements` VALUES (1324,1603,18117,'',0,'','Loreto',1);
INSERT INTO `B67171959_c_departements` VALUES (1325,1604,18117,'',0,'','Mariscal Ramón Castilla',1);
INSERT INTO `B67171959_c_departements` VALUES (1326,1605,18117,'',0,'','Requena',1);
INSERT INTO `B67171959_c_departements` VALUES (1327,1606,18117,'',0,'','Ucayali',1);
INSERT INTO `B67171959_c_departements` VALUES (1328,1607,18117,'',0,'','Datem del Marañón',1);
INSERT INTO `B67171959_c_departements` VALUES (1329,1701,18118,'',0,'','Tambopata',1);
INSERT INTO `B67171959_c_departements` VALUES (1330,1702,18118,'',0,'','Manú',1);
INSERT INTO `B67171959_c_departements` VALUES (1331,1703,18118,'',0,'','Tahuamanu',1);
INSERT INTO `B67171959_c_departements` VALUES (1332,1801,18119,'',0,'','Mariscal Nieto',1);
INSERT INTO `B67171959_c_departements` VALUES (1333,1802,18119,'',0,'','General Sánchez Cerro',1);
INSERT INTO `B67171959_c_departements` VALUES (1334,1803,18119,'',0,'','Ilo',1);
INSERT INTO `B67171959_c_departements` VALUES (1335,1901,18120,'',0,'','Pasco',1);
INSERT INTO `B67171959_c_departements` VALUES (1336,1902,18120,'',0,'','Daniel Alcides Carrión',1);
INSERT INTO `B67171959_c_departements` VALUES (1337,1903,18120,'',0,'','Oxapampa',1);
INSERT INTO `B67171959_c_departements` VALUES (1338,2001,18121,'',0,'','Piura',1);
INSERT INTO `B67171959_c_departements` VALUES (1339,2002,18121,'',0,'','Ayabaca',1);
INSERT INTO `B67171959_c_departements` VALUES (1340,2003,18121,'',0,'','Huancabamba',1);
INSERT INTO `B67171959_c_departements` VALUES (1341,2004,18121,'',0,'','Morropón',1);
INSERT INTO `B67171959_c_departements` VALUES (1342,2005,18121,'',0,'','Paita',1);
INSERT INTO `B67171959_c_departements` VALUES (1343,2006,18121,'',0,'','Sullana',1);
INSERT INTO `B67171959_c_departements` VALUES (1344,2007,18121,'',0,'','Talara',1);
INSERT INTO `B67171959_c_departements` VALUES (1345,2008,18121,'',0,'','Sechura',1);
INSERT INTO `B67171959_c_departements` VALUES (1346,2101,18122,'',0,'','Puno',1);
INSERT INTO `B67171959_c_departements` VALUES (1347,2102,18122,'',0,'','Azángaro',1);
INSERT INTO `B67171959_c_departements` VALUES (1348,2103,18122,'',0,'','Carabaya',1);
INSERT INTO `B67171959_c_departements` VALUES (1349,2104,18122,'',0,'','Chucuito',1);
INSERT INTO `B67171959_c_departements` VALUES (1350,2105,18122,'',0,'','El Collao',1);
INSERT INTO `B67171959_c_departements` VALUES (1351,2106,18122,'',0,'','Huancané',1);
INSERT INTO `B67171959_c_departements` VALUES (1352,2107,18122,'',0,'','Lampa',1);
INSERT INTO `B67171959_c_departements` VALUES (1353,2108,18122,'',0,'','Melgar',1);
INSERT INTO `B67171959_c_departements` VALUES (1354,2109,18122,'',0,'','Moho',1);
INSERT INTO `B67171959_c_departements` VALUES (1355,2110,18122,'',0,'','San Antonio de Putina',1);
INSERT INTO `B67171959_c_departements` VALUES (1356,2111,18122,'',0,'','San Román',1);
INSERT INTO `B67171959_c_departements` VALUES (1357,2112,18122,'',0,'','Sandia',1);
INSERT INTO `B67171959_c_departements` VALUES (1358,2113,18122,'',0,'','Yunguyo',1);
INSERT INTO `B67171959_c_departements` VALUES (1359,2201,18123,'',0,'','Moyobamba',1);
INSERT INTO `B67171959_c_departements` VALUES (1360,2202,18123,'',0,'','Bellavista',1);
INSERT INTO `B67171959_c_departements` VALUES (1361,2203,18123,'',0,'','El Dorado',1);
INSERT INTO `B67171959_c_departements` VALUES (1362,2204,18123,'',0,'','Huallaga',1);
INSERT INTO `B67171959_c_departements` VALUES (1363,2205,18123,'',0,'','Lamas',1);
INSERT INTO `B67171959_c_departements` VALUES (1364,2206,18123,'',0,'','Mariscal Cáceres',1);
INSERT INTO `B67171959_c_departements` VALUES (1365,2207,18123,'',0,'','Picota',1);
INSERT INTO `B67171959_c_departements` VALUES (1366,2208,18123,'',0,'','La Rioja',1);
INSERT INTO `B67171959_c_departements` VALUES (1367,2209,18123,'',0,'','San Martín',1);
INSERT INTO `B67171959_c_departements` VALUES (1368,2210,18123,'',0,'','Tocache',1);
INSERT INTO `B67171959_c_departements` VALUES (1369,2301,18124,'',0,'','Tacna',1);
INSERT INTO `B67171959_c_departements` VALUES (1370,2302,18124,'',0,'','Candarave',1);
INSERT INTO `B67171959_c_departements` VALUES (1371,2303,18124,'',0,'','Jorge Basadre',1);
INSERT INTO `B67171959_c_departements` VALUES (1372,2304,18124,'',0,'','Tarata',1);
INSERT INTO `B67171959_c_departements` VALUES (1373,2401,18125,'',0,'','Tumbes',1);
INSERT INTO `B67171959_c_departements` VALUES (1374,2402,18125,'',0,'','Contralmirante Villar',1);
INSERT INTO `B67171959_c_departements` VALUES (1375,2403,18125,'',0,'','Zarumilla',1);
INSERT INTO `B67171959_c_departements` VALUES (1376,2501,18126,'',0,'','Coronel Portillo',1);
INSERT INTO `B67171959_c_departements` VALUES (1377,2502,18126,'',0,'','Atalaya',1);
INSERT INTO `B67171959_c_departements` VALUES (1378,2503,18126,'',0,'','Padre Abad',1);
INSERT INTO `B67171959_c_departements` VALUES (1379,2504,18126,'',0,'','Purús',1);
INSERT INTO `B67171959_c_departements` VALUES (1380,'PA-1',17801,'',0,'','Bocas del Toro',1);
INSERT INTO `B67171959_c_departements` VALUES (1381,'PA-2',17801,'',0,'','Coclé',1);
INSERT INTO `B67171959_c_departements` VALUES (1382,'PA-3',17801,'',0,'','Colón',1);
INSERT INTO `B67171959_c_departements` VALUES (1383,'PA-4',17801,'',0,'','Chiriquí',1);
INSERT INTO `B67171959_c_departements` VALUES (1384,'PA-5',17801,'',0,'','Darién',1);
INSERT INTO `B67171959_c_departements` VALUES (1385,'PA-6',17801,'',0,'','Herrera',1);
INSERT INTO `B67171959_c_departements` VALUES (1386,'PA-7',17801,'',0,'','Los Santos',1);
INSERT INTO `B67171959_c_departements` VALUES (1387,'PA-8',17801,'',0,'','Panamá',1);
INSERT INTO `B67171959_c_departements` VALUES (1388,'PA-9',17801,'',0,'','Veraguas',1);
INSERT INTO `B67171959_c_departements` VALUES (1389,'PA-13',17801,'',0,'','Panamá Oeste',1);
INSERT INTO `B67171959_c_departements` VALUES (1390,'AE-1',22701,'',0,'','Abu Dhabi',1);
INSERT INTO `B67171959_c_departements` VALUES (1391,'AE-2',22701,'',0,'','Dubai',1);
INSERT INTO `B67171959_c_departements` VALUES (1392,'AE-3',22701,'',0,'','Ajman',1);
INSERT INTO `B67171959_c_departements` VALUES (1393,'AE-4',22701,'',0,'','Fujairah',1);
INSERT INTO `B67171959_c_departements` VALUES (1394,'AE-5',22701,'',0,'','Ras al-Khaimah',1);
INSERT INTO `B67171959_c_departements` VALUES (1395,'AE-6',22701,'',0,'','Sharjah',1);
INSERT INTO `B67171959_c_departements` VALUES (1396,'AE-7',22701,'',0,'','Umm al-Quwain',1);




--
-- Table structure for table `B67171959_c_ecotaxe`
--
CREATE TABLE `B67171959_c_ecotaxe` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(64) NOT NULL,
  `libelle` varchar(255) DEFAULT NULL,
  `price` double(24,8) DEFAULT NULL,
  `organization` varchar(255) DEFAULT NULL,
  `fk_pays` int(11) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_ecotaxe` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_ecotaxe`
--
INSERT INTO `B67171959_c_ecotaxe` VALUES (1,'ER-A-A','Materiels electriques < 0,2kg','0.01000000','ERP',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (2,'ER-A-B','Materiels electriques >= 0,2 kg et < 0,5 kg','0.03000000','ERP',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (3,'ER-A-C','Materiels electriques >= 0,5 kg et < 1 kg','0.04000000','ERP',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (4,'ER-A-D','Materiels electriques >= 1 kg et < 2 kg','0.13000000','ERP',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (5,'ER-A-E','Materiels electriques >= 2 kg et < 4kg','0.21000000','ERP',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (6,'ER-A-F','Materiels electriques >= 4 kg et < 8 kg','0.42000000','ERP',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (7,'ER-A-G','Materiels electriques >= 8 kg et < 15 kg','0.84000000','ERP',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (8,'ER-A-H','Materiels electriques >= 15 kg et < 20 kg','1.25000000','ERP',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (9,'ER-A-I','Materiels electriques >= 20 kg et < 30 kg','1.88000000','ERP',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (10,'ER-A-J','Materiels electriques >= 30 kg','3.34000000','ERP',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (11,'ER-M-1','TV, Moniteurs < 9kg','0.84000000','ERP',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (12,'ER-M-2','TV, Moniteurs >= 9kg et < 15kg','1.67000000','ERP',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (13,'ER-M-3','TV, Moniteurs >= 15kg et < 30kg','3.34000000','ERP',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (14,'ER-M-4','TV, Moniteurs >= 30 kg','6.69000000','ERP',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (15,'EC-A-A','Materiels electriques  0,2 kg max','0.00840000','Ecologic',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (16,'EC-A-B','Materiels electriques 0,21 kg min - 0,50 kg max','0.02500000','Ecologic',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (17,'EC-A-C','Materiels electriques  0,51 kg min - 1 kg max','0.04000000','Ecologic',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (18,'EC-A-D','Materiels electriques  1,01 kg min - 2,5 kg max','0.13000000','Ecologic',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (19,'EC-A-E','Materiels electriques  2,51 kg min - 4 kg max','0.21000000','Ecologic',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (20,'EC-A-F','Materiels electriques 4,01 kg min - 8 kg max','0.42000000','Ecologic',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (21,'EC-A-G','Materiels electriques  8,01 kg min - 12 kg max','0.63000000','Ecologic',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (22,'EC-A-H','Materiels electriques 12,01 kg min - 20 kg max','1.05000000','Ecologic',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (23,'EC-A-I','Materiels electriques  20,01 kg min','1.88000000','Ecologic',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (24,'EC-M-1','TV, Moniteurs 9 kg max','0.84000000','Ecologic',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (25,'EC-M-2','TV, Moniteurs 9,01 kg min - 18 kg max','1.67000000','Ecologic',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (26,'EC-M-3','TV, Moniteurs 18,01 kg min - 36 kg max','3.34000000','Ecologic',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (27,'EC-M-4','TV, Moniteurs 36,01 kg min','6.69000000','Ecologic',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (28,'ES-M-1','TV, Moniteurs <= 20 pouces','0.84000000','Eco-systemes',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (29,'ES-M-2','TV, Moniteurs > 20 pouces et <= 32 pouces','3.34000000','Eco-systemes',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (30,'ES-M-3','TV, Moniteurs > 32 pouces et autres grands ecrans','6.69000000','Eco-systemes',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (31,'ES-A-A','Ordinateur fixe, Audio home systems (HIFI), elements hifi separes','0.84000000','Eco-systemes',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (32,'ES-A-B','Ordinateur portable, CD-RCR, VCR, lecteurs et enregistreurs DVD, instruments de musique et caisses de resonance, haut parleurs...','0.25000000','Eco-systemes',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (33,'ES-A-C','Imprimante, photocopieur, telecopieur','0.42000000','Eco-systemes',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (34,'ES-A-D','Accessoires, clavier, souris, PDA, imprimante photo, appareil photo, gps, telephone, repondeur, telephone sans fil, modem, telecommande, casque, camescope, baladeur mp3, radio portable, radio K7 et CD portable, radio reveil','0.08400000','Eco-systemes',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (35,'ES-A-E','GSM','0.00840000','Eco-systemes',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (36,'ES-A-F','Jouets et equipements de loisirs et de sports < 0,5 kg','0.04200000','Eco-systemes',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (37,'ES-A-G','Jouets et equipements de loisirs et de sports > 0,5 kg','0.17000000','Eco-systemes',1,1);
INSERT INTO `B67171959_c_ecotaxe` VALUES (38,'ES-A-H','Jouets et equipements de loisirs et de sports > 10 kg','1.25000000','Eco-systemes',1,1);




--
-- Table structure for table `B67171959_c_effectif`
--
CREATE TABLE `B67171959_c_effectif` (
  `id` int(11) NOT NULL,
  `code` varchar(12) NOT NULL,
  `libelle` varchar(30) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `module` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_c_effectif` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_effectif`
--
INSERT INTO `B67171959_c_effectif` VALUES (0,'EF0','-',1,NULL);
INSERT INTO `B67171959_c_effectif` VALUES (1,'EF1-5','1 - 5',1,NULL);
INSERT INTO `B67171959_c_effectif` VALUES (2,'EF6-10','6 - 10',1,NULL);
INSERT INTO `B67171959_c_effectif` VALUES (3,'EF11-50','11 - 50',1,NULL);
INSERT INTO `B67171959_c_effectif` VALUES (4,'EF51-100','51 - 100',1,NULL);
INSERT INTO `B67171959_c_effectif` VALUES (5,'EF100-500','100 - 500',1,NULL);
INSERT INTO `B67171959_c_effectif` VALUES (6,'EF500-','> 500',1,NULL);




--
-- Table structure for table `B67171959_c_email_senderprofile`
--
CREATE TABLE `B67171959_c_email_senderprofile` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `private` smallint(6) NOT NULL DEFAULT '0',
  `date_creation` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `label` varchar(255) DEFAULT NULL,
  `email` varchar(255) NOT NULL,
  `signature` text,
  `position` smallint(6) DEFAULT '0',
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_email_senderprofile` (`entity`,`label`,`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_email_senderprofile`
--




--
-- Table structure for table `B67171959_c_email_templates`
--
CREATE TABLE `B67171959_c_email_templates` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `module` varchar(32) DEFAULT NULL,
  `type_template` varchar(32) DEFAULT NULL,
  `lang` varchar(6) DEFAULT '',
  `private` smallint(6) NOT NULL DEFAULT '0',
  `fk_user` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `label` varchar(180) DEFAULT NULL,
  `position` smallint(6) DEFAULT NULL,
  `enabled` varchar(255) DEFAULT '1',
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `topic` text,
  `joinfiles` text,
  `content` mediumtext,
  `content_lines` text,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_email_templates` (`entity`,`label`,`lang`),
  KEY `idx_type` (`type_template`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_email_templates`
--
INSERT INTO `B67171959_c_email_templates` VALUES (1,0,'adherent','member','',0,NULL,NULL,'2018-02-23 18:57:29','(SendAnEMailToMember)',1,1,1,'__(CardContent)__',NULL,'__(Hello)__,<br><br>\n\n__(ThisIsContentOfYourCard)__<br>\n__(ID)__ : __ID__<br>\n__(Civiliyty)__ : __MEMBER_CIVILITY__<br>\n__(Firstname)__ : __MEMBER_FIRSTNAME__<br>\n__(Lastname)__ : __MEMBER_LASTNAME__<br>\n__(Fullname)__ : __MEMBER_FULLNAME__<br>\n__(Company)__ : __MEMBER_COMPANY__<br>\n__(Address)__ : __MEMBER_ADDRESS__<br>\n__(Zip)__ : __MEMBER_ZIP__<br>\n__(Town)__ : __MEMBER_TOWN__<br>\n__(Country)__ : __MEMBER_COUNTRY__<br>\n__(Email)__ : __MEMBER_EMAIL__<br>\n__(Birthday)__ : __MEMBER_BIRTH__<br>\n__(Photo)__ : __MEMBER_PHOTO__<br>\n__(Login)__ : __MEMBER_LOGIN__<br>\n__(Password)__ : __MEMBER_PASSWORD__<br>\n__(Phone)__ : __MEMBER_PHONE__<br>\n__(PhonePerso)__ : __MEMBER_PHONEPRO__<br>\n__(PhoneMobile)__ : __MEMBER_PHONEMOBILE__<br><br>\n__(Sincerely)__<br>__USER_SIGNATURE__',NULL);
INSERT INTO `B67171959_c_email_templates` VALUES (2,0,'banque','thirdparty','',0,NULL,NULL,'2018-02-23 18:57:29','(YourSEPAMandate)',1,1,0,'__(YourSEPAMandate)__',NULL,'__(Hello)__,<br><br>\n\n__(FindYourSEPAMandate)__ :<br>\n__MYCOMPANY_NAME__<br>\n__MYCOMPANY_FULLADDRESS__<br><br>\n__(Sincerely)__<br>\n__USER_SIGNATURE__',NULL);




--
-- Table structure for table `B67171959_c_exp_tax_cat`
--
CREATE TABLE `B67171959_c_exp_tax_cat` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(48) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `active` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_exp_tax_cat`
--
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (1,'ExpAutoCat',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (2,'ExpCycloCat',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (3,'ExpMotoCat',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (4,'ExpAuto3CV',1,1);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (5,'ExpAuto4CV',1,1);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (6,'ExpAuto5CV',1,1);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (7,'ExpAuto6CV',1,1);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (8,'ExpAuto7CV',1,1);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (9,'ExpAuto8CV',1,1);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (10,'ExpAuto9CV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (11,'ExpAuto10CV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (12,'ExpAuto11CV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (13,'ExpAuto12CV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (14,'ExpAuto3PCV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (15,'ExpAuto4PCV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (16,'ExpAuto5PCV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (17,'ExpAuto6PCV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (18,'ExpAuto7PCV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (19,'ExpAuto8PCV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (20,'ExpAuto9PCV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (21,'ExpAuto10PCV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (22,'ExpAuto11PCV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (23,'ExpAuto12PCV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (24,'ExpAuto13PCV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (25,'ExpCyclo',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (26,'ExpMoto12CV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (27,'ExpMoto345CV',1,0);
INSERT INTO `B67171959_c_exp_tax_cat` VALUES (28,'ExpMoto5PCV',1,0);




--
-- Table structure for table `B67171959_c_exp_tax_range`
--
CREATE TABLE `B67171959_c_exp_tax_range` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_c_exp_tax_cat` int(11) NOT NULL DEFAULT '1',
  `range_ik` double NOT NULL DEFAULT '0',
  `entity` int(11) NOT NULL DEFAULT '1',
  `active` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_exp_tax_range`
--
INSERT INTO `B67171959_c_exp_tax_range` VALUES (1,4,0,1,1);
INSERT INTO `B67171959_c_exp_tax_range` VALUES (2,4,5000,1,1);
INSERT INTO `B67171959_c_exp_tax_range` VALUES (3,4,20000,1,1);
INSERT INTO `B67171959_c_exp_tax_range` VALUES (4,5,0,1,1);
INSERT INTO `B67171959_c_exp_tax_range` VALUES (5,5,5000,1,1);
INSERT INTO `B67171959_c_exp_tax_range` VALUES (6,5,20000,1,1);
INSERT INTO `B67171959_c_exp_tax_range` VALUES (7,6,0,1,1);
INSERT INTO `B67171959_c_exp_tax_range` VALUES (8,6,5000,1,1);
INSERT INTO `B67171959_c_exp_tax_range` VALUES (9,6,20000,1,1);
INSERT INTO `B67171959_c_exp_tax_range` VALUES (10,7,0,1,1);
INSERT INTO `B67171959_c_exp_tax_range` VALUES (11,7,5000,1,1);
INSERT INTO `B67171959_c_exp_tax_range` VALUES (12,7,20000,1,1);
INSERT INTO `B67171959_c_exp_tax_range` VALUES (13,8,0,1,1);
INSERT INTO `B67171959_c_exp_tax_range` VALUES (14,8,5000,1,1);
INSERT INTO `B67171959_c_exp_tax_range` VALUES (15,8,20000,1,1);




--
-- Table structure for table `B67171959_c_field_list`
--
CREATE TABLE `B67171959_c_field_list` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `element` varchar(64) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `name` varchar(32) NOT NULL,
  `alias` varchar(32) NOT NULL,
  `title` varchar(32) NOT NULL,
  `align` varchar(6) DEFAULT 'left',
  `sort` tinyint(4) NOT NULL DEFAULT '1',
  `search` tinyint(4) NOT NULL DEFAULT '0',
  `enabled` varchar(255) DEFAULT '1',
  `rang` int(11) DEFAULT '0',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_field_list`
--




--
-- Table structure for table `B67171959_c_format_cards`
--
CREATE TABLE `B67171959_c_format_cards` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(50) NOT NULL,
  `name` varchar(50) NOT NULL,
  `paper_size` varchar(20) NOT NULL,
  `orientation` varchar(1) NOT NULL,
  `metric` varchar(5) NOT NULL,
  `leftmargin` double(24,8) NOT NULL,
  `topmargin` double(24,8) NOT NULL,
  `nx` int(11) NOT NULL,
  `ny` int(11) NOT NULL,
  `spacex` double(24,8) NOT NULL,
  `spacey` double(24,8) NOT NULL,
  `width` double(24,8) NOT NULL,
  `height` double(24,8) NOT NULL,
  `font_size` int(11) NOT NULL,
  `custom_x` double(24,8) NOT NULL,
  `custom_y` double(24,8) NOT NULL,
  `active` int(11) NOT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_format_cards`
--
INSERT INTO `B67171959_c_format_cards` VALUES (1,5160,'Avery-5160, WL-875WX','letter','P','mm','5.58165000','12.70000000',3,10,'3.55600000','0.00000000','65.87490000','25.40000000',7,'0.00000000','0.00000000',1);
INSERT INTO `B67171959_c_format_cards` VALUES (2,5161,'Avery-5161, WL-75WX','letter','P','mm','4.44500000','12.70000000',2,10,'3.96800000','0.00000000','101.60000000','25.40000000',7,'0.00000000','0.00000000',1);
INSERT INTO `B67171959_c_format_cards` VALUES (3,5162,'Avery-5162, WL-100WX','letter','P','mm','3.87350000','22.35200000',2,7,'4.95400000','0.00000000','101.60000000','33.78100000',8,'0.00000000','0.00000000',1);
INSERT INTO `B67171959_c_format_cards` VALUES (4,5163,'Avery-5163, WL-125WX','letter','P','mm','4.57200000','12.70000000',2,5,'3.55600000','0.00000000','101.60000000','50.80000000',10,'0.00000000','0.00000000',1);
INSERT INTO `B67171959_c_format_cards` VALUES (5,5164,'5164 (Letter)','letter','P','in','0.14800000','0.50000000',2,3,'0.20310000','0.00000000','4.00000000','3.33000000',12,'0.00000000','0.00000000',0);
INSERT INTO `B67171959_c_format_cards` VALUES (6,8600,'Avery-8600','letter','P','mm','7.10000000','19.00000000',3,10,'9.50000000','3.10000000','66.60000000','25.40000000',7,'0.00000000','0.00000000',1);
INSERT INTO `B67171959_c_format_cards` VALUES (7,99012,'DYMO 99012 89*36mm','custom','L','mm','1.00000000','1.00000000',1,1,'0.00000000','0.00000000','36.00000000','89.00000000',10,'36.00000000','89.00000000',1);
INSERT INTO `B67171959_c_format_cards` VALUES (8,99014,'DYMO 99014 101*54mm','custom','L','mm','1.00000000','1.00000000',1,1,'0.00000000','0.00000000','54.00000000','101.00000000',10,'54.00000000','101.00000000',1);
INSERT INTO `B67171959_c_format_cards` VALUES (9,'AVERYC32010','Avery-C32010','A4','P','mm','15.00000000','13.00000000',2,5,'10.00000000','0.00000000','85.00000000','54.00000000',10,'0.00000000','0.00000000',1);
INSERT INTO `B67171959_c_format_cards` VALUES (10,'CARD','Dolibarr Business cards','A4','P','mm','15.00000000','15.00000000',2,5,'0.00000000','0.00000000','85.00000000','54.00000000',10,'0.00000000','0.00000000',1);
INSERT INTO `B67171959_c_format_cards` VALUES (11,'L7163','Avery-L7163','A4','P','mm','5.00000000','15.00000000',2,7,'2.50000000','0.00000000','99.10000000','38.10000000',8,'0.00000000','0.00000000',1);




--
-- Table structure for table `B67171959_c_forme_juridique`
--
CREATE TABLE `B67171959_c_forme_juridique` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` int(11) NOT NULL,
  `fk_pays` int(11) NOT NULL,
  `libelle` varchar(255) DEFAULT NULL,
  `isvatexempted` tinyint(4) NOT NULL DEFAULT '0',
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `module` varchar(32) DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_forme_juridique` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=238 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_forme_juridique`
--
INSERT INTO `B67171959_c_forme_juridique` VALUES (1,0,0,'-',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (2,2301,23,'Monotributista',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (3,2302,23,'Sociedad Civil',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (4,2303,23,'Sociedades Comerciales',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (5,2304,23,'Sociedades de Hecho',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (6,2305,23,'Sociedades Irregulares',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (7,2306,23,'Sociedad Colectiva',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (8,2307,23,'Sociedad en Comandita Simple',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (9,2308,23,'Sociedad de Capital e Industria',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (10,2309,23,'Sociedad Accidental o en participación',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (11,2310,23,'Sociedad de Responsabilidad Limitada',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (12,2311,23,'Sociedad Anónima',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (13,2312,23,'Sociedad Anónima con Participación Estatal Mayoritaria',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (14,2313,23,'Sociedad en Comandita por Acciones (arts. 315 a 324, LSC)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (15,4100,41,'GmbH - Gesellschaft mit beschränkter Haftung',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (16,4101,41,'GesmbH - Gesellschaft mit beschränkter Haftung',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (17,4102,41,'AG - Aktiengesellschaft',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (18,4103,41,'EWIV - Europäische wirtschaftliche Interessenvereinigung',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (19,4104,41,'KEG - Kommanditerwerbsgesellschaft',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (20,4105,41,'OEG - Offene Erwerbsgesellschaft',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (21,4106,41,'OHG - Offene Handelsgesellschaft',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (22,4107,41,'AG & Co KG - Kommanditgesellschaft',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (23,4108,41,'GmbH & Co KG - Kommanditgesellschaft',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (24,4109,41,'KG - Kommanditgesellschaft',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (25,4110,41,'OG - Offene Gesellschaft',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (26,4111,41,'GbR - Gesellschaft nach bürgerlichem Recht',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (27,4112,41,'GesbR - Gesellschaft nach bürgerlichem Recht',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (28,4113,41,'GesnbR - Gesellschaft nach bürgerlichem Recht',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (29,4114,41,'e.U. - eingetragener Einzelunternehmer',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (30,11,1,'Artisan Commerçant (EI)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (31,12,1,'Commerçant (EI)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (32,13,1,'Artisan (EI)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (33,14,1,'Officier public ou ministériel',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (34,15,1,'Profession libérale (EI)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (35,16,1,'Exploitant agricole',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (36,17,1,'Agent commercial',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (37,18,1,'Associé Gérant de société',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (38,19,1,'Personne physique',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (39,21,1,'Indivision',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (40,22,1,'Société créée de fait',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (41,23,1,'Société en participation',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (42,27,1,'Paroisse hors zone concordataire',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (43,29,1,'Groupement de droit privé non doté de la personnalité morale',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (44,31,1,'Personne morale de droit étranger, immatriculée au RCS',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (45,32,1,'Personne morale de droit étranger, non immatriculée au RCS',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (46,35,1,'Régime auto-entrepreneur',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (47,41,1,'Etablissement public ou régie à caractère industriel ou commercial',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (48,51,1,'Société coopérative commerciale particulière',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (49,52,1,'Société en nom collectif',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (50,53,1,'Société en commandite',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (51,54,1,'Société à responsabilité limitée (SARL)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (52,55,1,'Société anonyme à conseil d administration',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (53,56,1,'Société anonyme à directoire',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (54,57,1,'Société par actions simplifiée (SAS)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (55,58,1,'Entreprise Unipersonnelle à Responsabilité Limitée (EURL)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (56,59,1,'Société par actions simplifiée unipersonnelle (SASU)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (57,60,1,'Entreprise Individuelle à Responsabilité Limitée (EIRL)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (58,61,1,'Caisse d\'épargne et de prévoyance',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (59,62,1,'Groupement d\'intérêt économique (GIE)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (60,63,1,'Société coopérative agricole',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (61,64,1,'Société non commerciale d assurances',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (62,65,1,'Société civile',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (63,69,1,'Personnes de droit privé inscrites au RCS',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (64,71,1,'Administration de l état',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (65,72,1,'Collectivité territoriale',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (66,73,1,'Etablissement public administratif',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (67,74,1,'Personne morale de droit public administratif',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (68,81,1,'Organisme gérant régime de protection social à adhésion obligatoire',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (69,82,1,'Organisme mutualiste',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (70,83,1,'Comité d entreprise',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (71,84,1,'Organisme professionnel',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (72,85,1,'Organisme de retraite à adhésion non obligatoire',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (73,91,1,'Syndicat de propriétaires',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (74,92,1,'Association loi 1901 ou assimilé',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (75,93,1,'Fondation',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (76,99,1,'Personne morale de droit privé',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (77,200,2,'Indépendant',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (78,201,2,'SPRL - Société à responsabilité limitée',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (79,202,2,'SA   - Société Anonyme',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (80,203,2,'SCRL - Société coopérative à responsabilité limitée',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (81,204,2,'ASBL - Association sans but Lucratif',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (82,205,2,'SCRI - Société coopérative à responsabilité illimitée',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (83,206,2,'SCS  - Société en commandite simple',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (84,207,2,'SCA  - Société en commandite par action',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (85,208,2,'SNC  - Société en nom collectif',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (86,209,2,'GIE  - Groupement d intérêt économique',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (87,210,2,'GEIE - Groupement européen d intérêt économique',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (88,220,2,'Eenmanszaak',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (89,221,2,'BVBA - Besloten vennootschap met beperkte aansprakelijkheid',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (90,222,2,'NV   - Naamloze Vennootschap',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (91,223,2,'CVBA - Coöperatieve vennootschap met beperkte aansprakelijkheid',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (92,224,2,'VZW  - Vereniging zonder winstoogmerk',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (93,225,2,'CVOA - Coöperatieve vennootschap met onbeperkte aansprakelijkheid ',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (94,226,2,'GCV  - Gewone commanditaire vennootschap',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (95,227,2,'Comm.VA - Commanditaire vennootschap op aandelen',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (96,228,2,'VOF  - Vennootschap onder firma',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (97,229,2,'VS0  - Vennootschap met sociaal oogmerk',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (98,500,5,'GmbH - Gesellschaft mit beschränkter Haftung',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (99,501,5,'AG - Aktiengesellschaft ',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (100,502,5,'GmbH&Co. KG - Gesellschaft mit beschränkter Haftung & Compagnie Kommanditgesellschaft',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (101,503,5,'Gewerbe - Personengesellschaft',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (102,504,5,'UG - Unternehmergesellschaft -haftungsbeschränkt-',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (103,505,5,'GbR - Gesellschaft des bürgerlichen Rechts',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (104,506,5,'KG - Kommanditgesellschaft',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (105,507,5,'Ltd. - Limited Company',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (106,508,5,'OHG - Offene Handelsgesellschaft',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (107,10201,102,'Ατομική επιχείρηση',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (108,10202,102,'Εταιρική  επιχείρηση',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (109,10203,102,'Ομόρρυθμη Εταιρεία Ο.Ε',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (110,10204,102,'Ετερόρρυθμη Εταιρεία Ε.Ε',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (111,10205,102,'Εταιρεία Περιορισμένης Ευθύνης Ε.Π.Ε',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (112,10206,102,'Ανώνυμη Εταιρεία Α.Ε',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (113,10207,102,'Ανώνυμη ναυτιλιακή εταιρεία Α.Ν.Ε',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (114,10208,102,'Συνεταιρισμός',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (115,10209,102,'Συμπλοιοκτησία',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (116,301,3,'Società semplice',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (117,302,3,'Società in nome collettivo s.n.c.',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (118,303,3,'Società in accomandita semplice s.a.s.',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (119,304,3,'Società per azioni s.p.a.',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (120,305,3,'Società a responsabilità limitata s.r.l.',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (121,306,3,'Società in accomandita per azioni s.a.p.a.',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (122,307,3,'Società cooperativa a r.l.',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (123,308,3,'Società consortile',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (124,309,3,'Società europea',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (125,310,3,'Società cooperativa europea',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (126,311,3,'Società unipersonale',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (127,312,3,'Società di professionisti',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (128,313,3,'Società di fatto',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (129,315,3,'Società apparente',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (130,316,3,'Impresa individuale ',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (131,317,3,'Impresa coniugale',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (132,318,3,'Impresa familiare',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (133,319,3,'Consorzio cooperativo',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (134,320,3,'Società cooperativa sociale',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (135,321,3,'Società cooperativa di consumo',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (136,322,3,'Società cooperativa agricola',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (137,323,3,'A.T.I. Associazione temporanea di imprese',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (138,324,3,'R.T.I. Raggruppamento temporaneo di imprese',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (139,325,3,'Studio associato',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (140,600,6,'Raison Individuelle',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (141,601,6,'Société Simple',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (142,602,6,'Société en nom collectif',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (143,603,6,'Société en commandite',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (144,604,6,'Société anonyme (SA)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (145,605,6,'Société en commandite par actions',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (146,606,6,'Société à responsabilité limitée (SARL)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (147,607,6,'Société coopérative',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (148,608,6,'Association',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (149,609,6,'Fondation',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (150,700,7,'Sole Trader',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (151,701,7,'Partnership',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (152,702,7,'Private Limited Company by shares (LTD)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (153,703,7,'Public Limited Company',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (154,704,7,'Workers Cooperative',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (155,705,7,'Limited Liability Partnership',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (156,706,7,'Franchise',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (157,1000,10,'Société à responsabilité limitée (SARL)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (158,1001,10,'Société en Nom Collectif (SNC)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (159,1002,10,'Société en Commandite Simple (SCS)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (160,1003,10,'société en participation',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (161,1004,10,'Société Anonyme (SA)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (162,1005,10,'Société Unipersonnelle à Responsabilité Limitée (SUARL)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (163,1006,10,'Groupement d\'intérêt économique (GEI)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (164,1007,10,'Groupe de sociétés',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (165,1701,17,'Eenmanszaak',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (166,1702,17,'Maatschap',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (167,1703,17,'Vennootschap onder firma',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (168,1704,17,'Commanditaire vennootschap',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (169,1705,17,'Besloten vennootschap (BV)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (170,1706,17,'Naamloze Vennootschap (NV)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (171,1707,17,'Vereniging',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (172,1708,17,'Stichting',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (173,1709,17,'Coöperatie met beperkte aansprakelijkheid (BA)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (174,1710,17,'Coöperatie met uitgesloten aansprakelijkheid (UA)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (175,1711,17,'Coöperatie met wettelijke aansprakelijkheid (WA)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (176,1712,17,'Onderlinge waarborgmaatschappij',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (177,401,4,'Empresario Individual',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (178,402,4,'Comunidad de Bienes',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (179,403,4,'Sociedad Civil',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (180,404,4,'Sociedad Colectiva',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (181,405,4,'Sociedad Limitada',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (182,406,4,'Sociedad Anónima',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (183,407,4,'Sociedad Comanditaria por Acciones',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (184,408,4,'Sociedad Comanditaria Simple',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (185,409,4,'Sociedad Laboral',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (186,410,4,'Sociedad Cooperativa',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (187,411,4,'Sociedad de Garantía Recíproca',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (188,412,4,'Entidad de Capital-Riesgo',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (189,413,4,'Agrupación de Interés Económico',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (190,414,4,'Sociedad de Inversión Mobiliaria',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (191,415,4,'Agrupación sin Ánimo de Lucro',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (192,15201,152,'Mauritius Private Company Limited By Shares',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (193,15202,152,'Mauritius Company Limited By Guarantee',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (194,15203,152,'Mauritius Public Company Limited By Shares',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (195,15204,152,'Mauritius Foreign Company',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (196,15205,152,'Mauritius GBC1 (Offshore Company)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (197,15206,152,'Mauritius GBC2 (International Company)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (198,15207,152,'Mauritius General Partnership',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (199,15208,152,'Mauritius Limited Partnership',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (200,15209,152,'Mauritius Sole Proprietorship',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (201,15210,152,'Mauritius Trusts',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (202,15401,154,'Sociedad en nombre colectivo',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (203,15402,154,'Sociedad en comandita simple',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (204,15403,154,'Sociedad de responsabilidad limitada',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (205,15404,154,'Sociedad anónima',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (206,15405,154,'Sociedad en comandita por acciones',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (207,15406,154,'Sociedad cooperativa',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (208,14001,140,'Entreprise individuelle',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (209,14002,140,'Société en nom collectif (SENC)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (210,14003,140,'Société en commandite simple (SECS)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (211,14004,140,'Société en commandite par actions (SECA)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (212,14005,140,'Société à responsabilité limitée (SARL)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (213,14006,140,'Société anonyme (SA)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (214,14007,140,'Société coopérative (SC)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (215,14008,140,'Société européenne (SE)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (216,18801,188,'AFJ - Alte forme juridice',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (217,18802,188,'ASF - Asociatie familialã',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (218,18803,188,'CON - Concesiune',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (219,18804,188,'CRL - Soc civilã profesionala cu pers. juridica si rãspundere limitata (SPRL)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (220,18805,188,'INC - Închiriere',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (221,18806,188,'LOC - Locaţie de gestiune',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (222,18807,188,'OC1 - Organizaţie cooperatistã meşteşugãreascã',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (223,18808,188,'OC2 - Organizaţie cooperatistã de consum',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (224,18809,188,'OC3 - Organizaţie cooperatistã de credit',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (225,18810,188,'PFA - Persoanã fizicã independentã',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (226,18811,188,'RA - Regie autonomã',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (227,18812,188,'SA - Societate comercialã pe acţiuni',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (228,18813,188,'SCS - Societate comercialã în comanditã simplã',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (229,18814,188,'SNC - Societate comercialã în nume colectiv',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (230,18815,188,'SPI - Societate profesionala practicieni in insolventa (SPPI)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (231,18816,188,'SRL - Societate comercialã cu rãspundere limitatã',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (232,18817,188,'URL - Intreprindere profesionala unipersonala cu rãspundere limitata (IPURL)',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (233,17801,178,'Empresa individual',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (234,17802,178,'Asociación General',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (235,17803,178,'Sociedad de Responsabilidad Limitada',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (236,17804,178,'Sociedad Civil',0,1,NULL,0);
INSERT INTO `B67171959_c_forme_juridique` VALUES (237,17805,178,'Sociedad Anónima',0,1,NULL,0);




--
-- Table structure for table `B67171959_c_holiday_types`
--
CREATE TABLE `B67171959_c_holiday_types` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(16) NOT NULL,
  `label` varchar(255) NOT NULL,
  `affect` int(11) NOT NULL,
  `delay` int(11) NOT NULL,
  `newByMonth` double(8,5) NOT NULL DEFAULT '0.00000',
  `fk_country` int(11) DEFAULT NULL,
  `active` int(11) DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_holiday_types` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_holiday_types`
--
INSERT INTO `B67171959_c_holiday_types` VALUES (1,'LEAVE_SICK','Sick leave',0,0,'0.00000',NULL,1);
INSERT INTO `B67171959_c_holiday_types` VALUES (2,'LEAVE_OTHER','Other leave',0,0,'0.00000',NULL,1);
INSERT INTO `B67171959_c_holiday_types` VALUES (3,'LEAVE_PAID','Paid vacation',1,7,'0.00000',NULL,0);
INSERT INTO `B67171959_c_holiday_types` VALUES (4,'LEAVE_RTT_FR','RTT',1,7,'0.83000',1,1);
INSERT INTO `B67171959_c_holiday_types` VALUES (5,'LEAVE_PAID_FR','Paid vacation',1,30,2.08334,1,1);




--
-- Table structure for table `B67171959_c_hrm_department`
--
CREATE TABLE `B67171959_c_hrm_department` (
  `rowid` int(11) NOT NULL,
  `pos` tinyint(4) NOT NULL DEFAULT '0',
  `code` varchar(16) NOT NULL,
  `label` varchar(50) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_hrm_department`
--
INSERT INTO `B67171959_c_hrm_department` VALUES (1,5,'MANAGEMENT','Management',1);
INSERT INTO `B67171959_c_hrm_department` VALUES (3,15,'TRAINING','Training',1);
INSERT INTO `B67171959_c_hrm_department` VALUES (4,20,'IT','Inform. Technology (IT)',0);
INSERT INTO `B67171959_c_hrm_department` VALUES (5,25,'MARKETING','Marketing',0);
INSERT INTO `B67171959_c_hrm_department` VALUES (6,30,'SALES','Sales',1);
INSERT INTO `B67171959_c_hrm_department` VALUES (7,35,'LEGAL','Legal',0);
INSERT INTO `B67171959_c_hrm_department` VALUES (8,40,'FINANCIAL','Financial accounting',1);
INSERT INTO `B67171959_c_hrm_department` VALUES (9,45,'HUMANRES','Human resources',1);
INSERT INTO `B67171959_c_hrm_department` VALUES (10,50,'PURCHASING','Purchasing',1);
INSERT INTO `B67171959_c_hrm_department` VALUES (12,60,'CUSTOMSERV','Customer service',0);
INSERT INTO `B67171959_c_hrm_department` VALUES (14,70,'LOGISTIC','Logistics',1);
INSERT INTO `B67171959_c_hrm_department` VALUES (15,75,'CONSTRUCT','Engineering/design',0);
INSERT INTO `B67171959_c_hrm_department` VALUES (16,80,'PRODUCTION','Production',1);
INSERT INTO `B67171959_c_hrm_department` VALUES (17,85,'QUALITY','Quality assurance',0);




--
-- Table structure for table `B67171959_c_hrm_function`
--
CREATE TABLE `B67171959_c_hrm_function` (
  `rowid` int(11) NOT NULL,
  `pos` tinyint(4) NOT NULL DEFAULT '0',
  `code` varchar(16) NOT NULL,
  `label` varchar(50) DEFAULT NULL,
  `c_level` tinyint(4) NOT NULL DEFAULT '0',
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_hrm_function`
--
INSERT INTO `B67171959_c_hrm_function` VALUES (1,5,'EXECBOARD','Executive board',0,1);
INSERT INTO `B67171959_c_hrm_function` VALUES (2,10,'MANAGDIR','Managing director',1,1);
INSERT INTO `B67171959_c_hrm_function` VALUES (3,15,'ACCOUNTMANAG','Account manager',0,1);
INSERT INTO `B67171959_c_hrm_function` VALUES (4,20,'ENGAGDIR','Engagement director',1,1);
INSERT INTO `B67171959_c_hrm_function` VALUES (5,25,'DIRECTOR','Director',1,1);
INSERT INTO `B67171959_c_hrm_function` VALUES (6,30,'PROJMANAG','Project manager',0,1);
INSERT INTO `B67171959_c_hrm_function` VALUES (7,35,'DEPHEAD','Department head',0,1);
INSERT INTO `B67171959_c_hrm_function` VALUES (8,40,'SECRETAR','Secretary',0,1);
INSERT INTO `B67171959_c_hrm_function` VALUES (9,45,'EMPLOYEE','Department employee',0,1);




--
-- Table structure for table `B67171959_c_incoterms`
--
CREATE TABLE `B67171959_c_incoterms` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(3) NOT NULL,
  `libelle` varchar(255) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_incoterms` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_incoterms`
--
INSERT INTO `B67171959_c_incoterms` VALUES (1,'EXW','Ex Works, au départ non chargé, non dédouané sortie d\'usine (uniquement adapté aux flux domestiques, nationaux)',1);
INSERT INTO `B67171959_c_incoterms` VALUES (2,'FCA','Free Carrier, marchandises dédouanées et chargées dans le pays de départ, chez le vendeur ou chez le commissionnaire de transport de l\'acheteur',1);
INSERT INTO `B67171959_c_incoterms` VALUES (3,'FAS','Free Alongside Ship, sur le quai du port de départ',1);
INSERT INTO `B67171959_c_incoterms` VALUES (4,'FOB','Free On Board, chargé sur le bateau, les frais de chargement dans celui-ci étant fonction du liner term indiqué par la compagnie maritime (à la charge du vendeur)',1);
INSERT INTO `B67171959_c_incoterms` VALUES (5,'CFR','Cost and Freight, chargé dans le bateau, livraison au port de départ, frais payés jusqu\'au port d\'arrivée, sans assurance pour le transport, non déchargé du navire à destination (les frais de déchargement sont inclus ou non au port d\'arrivée)',1);
INSERT INTO `B67171959_c_incoterms` VALUES (6,'CIF','Cost, Insurance and Freight, chargé sur le bateau, frais jusqu\'au port d\'arrivée, avec l\'assurance marchandise transportée souscrite par le vendeur pour le compte de l\'acheteur',1);
INSERT INTO `B67171959_c_incoterms` VALUES (7,'CPT','Carriage Paid To, livraison au premier transporteur, frais jusqu\'au déchargement du mode de transport, sans assurance pour le transport',1);
INSERT INTO `B67171959_c_incoterms` VALUES (8,'CIP','Carriage and Insurance Paid to, idem CPT, avec assurance marchandise transportée souscrite par le vendeur pour le compte de l\'acheteur',1);
INSERT INTO `B67171959_c_incoterms` VALUES (9,'DAT','Delivered At Terminal, marchandises (déchargées) livrées sur quai, dans un terminal maritime, fluvial, aérien, routier ou ferroviaire désigné (dédouanement import, et post-acheminement payés par l\'acheteur)',1);
INSERT INTO `B67171959_c_incoterms` VALUES (10,'DAP','Delivered At Place, marchandises (non déchargées) mises à disposition de l\'acheteur dans le pays d\'importation au lieu précisé dans le contrat (déchargement, dédouanement import payé par l\'acheteur)',1);
INSERT INTO `B67171959_c_incoterms` VALUES (11,'DDP','Delivered Duty Paid, marchandises (non déchargées) livrées à destination finale, dédouanement import et taxes à la charge du vendeur ; l\'acheteur prend en charge uniquement le déchargement (si exclusion des taxes type TVA, le préciser clairement)',1);




--
-- Table structure for table `B67171959_c_input_method`
--
CREATE TABLE `B67171959_c_input_method` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(30) DEFAULT NULL,
  `libelle` varchar(60) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `module` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_input_method` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_input_method`
--
INSERT INTO `B67171959_c_input_method` VALUES (1,'OrderByMail','Courrier',1,NULL);
INSERT INTO `B67171959_c_input_method` VALUES (2,'OrderByFax','Fax',1,NULL);
INSERT INTO `B67171959_c_input_method` VALUES (3,'OrderByEMail','EMail',1,NULL);
INSERT INTO `B67171959_c_input_method` VALUES (4,'OrderByPhone','Téléphone',1,NULL);
INSERT INTO `B67171959_c_input_method` VALUES (5,'OrderByWWW','En ligne',1,NULL);




--
-- Table structure for table `B67171959_c_input_reason`
--
CREATE TABLE `B67171959_c_input_reason` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(30) DEFAULT NULL,
  `label` varchar(60) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `module` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_input_reason` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_input_reason`
--
INSERT INTO `B67171959_c_input_reason` VALUES (1,'SRC_INTE','Web site',1,NULL);
INSERT INTO `B67171959_c_input_reason` VALUES (2,'SRC_CAMP_MAIL','Mailing campaign',1,NULL);
INSERT INTO `B67171959_c_input_reason` VALUES (3,'SRC_CAMP_PHO','Phone campaign',1,NULL);
INSERT INTO `B67171959_c_input_reason` VALUES (4,'SRC_CAMP_FAX','Fax campaign',1,NULL);
INSERT INTO `B67171959_c_input_reason` VALUES (5,'SRC_COMM','Commercial contact',1,NULL);
INSERT INTO `B67171959_c_input_reason` VALUES (6,'SRC_SHOP','Shop contact',1,NULL);
INSERT INTO `B67171959_c_input_reason` VALUES (7,'SRC_CAMP_EMAIL','EMailing campaign',1,NULL);
INSERT INTO `B67171959_c_input_reason` VALUES (8,'SRC_WOM','Word of mouth',1,NULL);
INSERT INTO `B67171959_c_input_reason` VALUES (9,'SRC_PARTNER','Partner',1,NULL);
INSERT INTO `B67171959_c_input_reason` VALUES (10,'SRC_EMPLOYEE','Employee',1,NULL);
INSERT INTO `B67171959_c_input_reason` VALUES (11,'SRC_SPONSORING','Sponsorship',1,NULL);




--
-- Table structure for table `B67171959_c_lead_status`
--
CREATE TABLE `B67171959_c_lead_status` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(10) DEFAULT NULL,
  `label` varchar(50) DEFAULT NULL,
  `position` int(11) DEFAULT NULL,
  `percent` double(5,2) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_lead_status_code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_lead_status`
--
INSERT INTO `B67171959_c_lead_status` VALUES (1,'PROSP','Prospection',10,'0.00',1);
INSERT INTO `B67171959_c_lead_status` VALUES (2,'QUAL','Qualification',20,'20.00',1);
INSERT INTO `B67171959_c_lead_status` VALUES (3,'PROPO','Proposal',30,'40.00',1);
INSERT INTO `B67171959_c_lead_status` VALUES (4,'NEGO','Negotiation',40,'60.00',1);
INSERT INTO `B67171959_c_lead_status` VALUES (5,'PENDING','Pending',50,'50.00',0);
INSERT INTO `B67171959_c_lead_status` VALUES (6,'WON','Won',60,'100.00',1);
INSERT INTO `B67171959_c_lead_status` VALUES (7,'LOST','Lost',70,'0.00',1);




--
-- Table structure for table `B67171959_c_paiement`
--
CREATE TABLE `B67171959_c_paiement` (
  `id` int(11) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `code` varchar(6) NOT NULL,
  `libelle` varchar(62) DEFAULT NULL,
  `type` smallint(6) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `accountancy_code` varchar(32) DEFAULT NULL,
  `module` varchar(32) DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT '0',
  UNIQUE KEY `uk_c_paiement` (`id`,`entity`,`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_paiement`
--
INSERT INTO `B67171959_c_paiement` VALUES (0,1,'','-',3,1,NULL,NULL,0);
INSERT INTO `B67171959_c_paiement` VALUES (1,1,'TIP','TIP',2,0,NULL,NULL,0);
INSERT INTO `B67171959_c_paiement` VALUES (2,1,'VIR','Virement',2,1,NULL,NULL,0);
INSERT INTO `B67171959_c_paiement` VALUES (3,1,'PRE','Prélèvement',2,1,NULL,NULL,0);
INSERT INTO `B67171959_c_paiement` VALUES (4,1,'LIQ','Espèces',2,1,NULL,NULL,0);
INSERT INTO `B67171959_c_paiement` VALUES (6,1,'CB','Carte Bancaire',2,1,NULL,NULL,0);
INSERT INTO `B67171959_c_paiement` VALUES (7,1,'CHQ','Chèque',2,1,NULL,NULL,0);
INSERT INTO `B67171959_c_paiement` VALUES (50,1,'VAD','Paiement en ligne',2,0,NULL,NULL,0);
INSERT INTO `B67171959_c_paiement` VALUES (51,1,'TRA','Traite',2,0,NULL,NULL,0);
INSERT INTO `B67171959_c_paiement` VALUES (52,1,'LCR','LCR',2,0,NULL,NULL,0);
INSERT INTO `B67171959_c_paiement` VALUES (53,1,'FAC','Factor',2,0,NULL,NULL,0);




--
-- Table structure for table `B67171959_c_paper_format`
--
CREATE TABLE `B67171959_c_paper_format` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(16) NOT NULL,
  `label` varchar(50) NOT NULL,
  `width` float(6,2) DEFAULT '0.00',
  `height` float(6,2) DEFAULT '0.00',
  `unit` varchar(5) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `module` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=226 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_paper_format`
--
INSERT INTO `B67171959_c_paper_format` VALUES (1,'EU4A0','Format 4A0','1682.00','2378.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (2,'EU2A0','Format 2A0','1189.00','1682.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (3,'EUA0','Format A0','840.00','1189.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (4,'EUA1','Format A1','594.00','840.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (5,'EUA2','Format A2','420.00','594.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (6,'EUA3','Format A3','297.00','420.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (7,'EUA4','Format A4','210.00','297.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (8,'EUA5','Format A5','148.00','210.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (9,'EUA6','Format A6','105.00','148.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (100,'USLetter','Format Letter (A)','216.00','279.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (105,'USLegal','Format Legal','216.00','356.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (110,'USExecutive','Format Executive','190.00','254.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (115,'USLedger','Format Ledger/Tabloid (B)','279.00','432.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (200,'CAP1','Format Canadian P1','560.00','860.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (205,'CAP2','Format Canadian P2','430.00','560.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (210,'CAP3','Format Canadian P3','280.00','430.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (215,'CAP4','Format Canadian P4','215.00','280.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (220,'CAP5','Format Canadian P5','140.00','215.00','mm',1,NULL);
INSERT INTO `B67171959_c_paper_format` VALUES (225,'CAP6','Format Canadian P6','107.00','140.00','mm',1,NULL);




--
-- Table structure for table `B67171959_c_payment_term`
--
CREATE TABLE `B67171959_c_payment_term` (
  `rowid` int(11) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `code` varchar(16) DEFAULT NULL,
  `sortorder` smallint(6) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '1',
  `libelle` varchar(255) DEFAULT NULL,
  `libelle_facture` text,
  `type_cdr` tinyint(4) DEFAULT NULL,
  `nbjour` smallint(6) DEFAULT NULL,
  `decalage` smallint(6) DEFAULT NULL,
  `module` varchar(32) DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT '0',
  UNIQUE KEY `uk_c_payment_term` (`rowid`,`entity`,`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_payment_term`
--
INSERT INTO `B67171959_c_payment_term` VALUES (1,1,'RECEP',1,1,'Due upon receipt','Due upon receipt',0,1,NULL,NULL,0);
INSERT INTO `B67171959_c_payment_term` VALUES (2,1,'30D',2,1,'30 days','Due in 30 days',0,30,NULL,NULL,0);
INSERT INTO `B67171959_c_payment_term` VALUES (3,1,'30DENDMONTH',3,1,'30 days end of month','Due in 30 days, end of month',1,30,NULL,NULL,0);
INSERT INTO `B67171959_c_payment_term` VALUES (4,1,'60D',4,1,'60 days','Due in 60 days, end of month',0,60,NULL,NULL,0);
INSERT INTO `B67171959_c_payment_term` VALUES (5,1,'60DENDMONTH',5,1,'60 days end of month','Due in 60 days, end of month',1,60,NULL,NULL,0);
INSERT INTO `B67171959_c_payment_term` VALUES (6,1,'PT_ORDER',6,1,'Due on order','Due on order',0,1,NULL,NULL,0);
INSERT INTO `B67171959_c_payment_term` VALUES (7,1,'PT_DELIVERY',7,1,'Due on delivery','Due on delivery',0,1,NULL,NULL,0);
INSERT INTO `B67171959_c_payment_term` VALUES (8,1,'PT_5050',8,1,'50 and 50','50% on order, 50% on delivery',0,1,NULL,NULL,0);
INSERT INTO `B67171959_c_payment_term` VALUES (9,1,'10D',9,1,'10 days','Due in 10 days',0,10,NULL,NULL,0);
INSERT INTO `B67171959_c_payment_term` VALUES (10,1,'10DENDMONTH',10,1,'10 days end of month','Due in 10 days, end of month',1,10,NULL,NULL,0);
INSERT INTO `B67171959_c_payment_term` VALUES (11,1,'14D',11,1,'14 days','Due in 14 days',0,14,NULL,NULL,0);
INSERT INTO `B67171959_c_payment_term` VALUES (12,1,'14DENDMONTH',12,1,'14 days end of month','Due in 14 days, end of month',1,14,NULL,NULL,0);




--
-- Table structure for table `B67171959_c_price_expression`
--
CREATE TABLE `B67171959_c_price_expression` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(20) NOT NULL,
  `expression` varchar(80) NOT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_price_expression`
--




--
-- Table structure for table `B67171959_c_price_global_variable`
--
CREATE TABLE `B67171959_c_price_global_variable` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(20) NOT NULL,
  `description` text,
  `value` double(24,8) DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_price_global_variable`
--




--
-- Table structure for table `B67171959_c_price_global_variable_updater`
--
CREATE TABLE `B67171959_c_price_global_variable_updater` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `type` int(11) NOT NULL,
  `description` text,
  `parameters` text,
  `fk_variable` int(11) NOT NULL,
  `update_interval` int(11) DEFAULT '0',
  `next_update` int(11) DEFAULT '0',
  `last_status` text,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_price_global_variable_updater`
--




--
-- Table structure for table `B67171959_c_propalst`
--
CREATE TABLE `B67171959_c_propalst` (
  `id` smallint(6) NOT NULL,
  `code` varchar(12) NOT NULL,
  `label` varchar(30) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_c_propalst` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_propalst`
--
INSERT INTO `B67171959_c_propalst` VALUES (0,'PR_DRAFT','Brouillon',1);
INSERT INTO `B67171959_c_propalst` VALUES (1,'PR_OPEN','Ouverte',1);
INSERT INTO `B67171959_c_propalst` VALUES (2,'PR_SIGNED','Signée',1);
INSERT INTO `B67171959_c_propalst` VALUES (3,'PR_NOTSIGNED','Non Signée',1);
INSERT INTO `B67171959_c_propalst` VALUES (4,'PR_FAC','Facturée',1);




--
-- Table structure for table `B67171959_c_prospectlevel`
--
CREATE TABLE `B67171959_c_prospectlevel` (
  `code` varchar(12) NOT NULL,
  `label` varchar(30) DEFAULT NULL,
  `sortorder` smallint(6) DEFAULT NULL,
  `active` smallint(6) NOT NULL DEFAULT '1',
  `module` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_prospectlevel`
--
INSERT INTO `B67171959_c_prospectlevel` VALUES ('PL_HIGH','High',4,1,NULL);
INSERT INTO `B67171959_c_prospectlevel` VALUES ('PL_LOW','Low',2,1,NULL);
INSERT INTO `B67171959_c_prospectlevel` VALUES ('PL_MEDIUM','Medium',3,1,NULL);
INSERT INTO `B67171959_c_prospectlevel` VALUES ('PL_NONE','None',1,1,NULL);




--
-- Table structure for table `B67171959_c_regions`
--
CREATE TABLE `B67171959_c_regions` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code_region` int(11) NOT NULL,
  `fk_pays` int(11) NOT NULL,
  `cheflieu` varchar(50) DEFAULT NULL,
  `tncc` int(11) DEFAULT NULL,
  `nom` varchar(100) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_code_region` (`code_region`),
  KEY `idx_c_regions_fk_pays` (`fk_pays`)
) ENGINE=InnoDB AUTO_INCREMENT=228 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_regions`
--
INSERT INTO `B67171959_c_regions` VALUES (1,0,0,0,0,'-',1);
INSERT INTO `B67171959_c_regions` VALUES (2,1,1,97105,3,'Guadeloupe',1);
INSERT INTO `B67171959_c_regions` VALUES (3,2,1,97209,3,'Martinique',1);
INSERT INTO `B67171959_c_regions` VALUES (4,3,1,97302,3,'Guyane',1);
INSERT INTO `B67171959_c_regions` VALUES (5,4,1,97411,3,'Réunion',1);
INSERT INTO `B67171959_c_regions` VALUES (6,6,1,97601,3,'Mayotte',1);
INSERT INTO `B67171959_c_regions` VALUES (7,11,1,75056,1,'Île-de-France',1);
INSERT INTO `B67171959_c_regions` VALUES (8,21,1,51108,0,'Champagne-Ardenne',1);
INSERT INTO `B67171959_c_regions` VALUES (9,22,1,80021,0,'Picardie',1);
INSERT INTO `B67171959_c_regions` VALUES (10,23,1,76540,0,'Haute-Normandie',1);
INSERT INTO `B67171959_c_regions` VALUES (11,24,1,45234,2,'Centre',1);
INSERT INTO `B67171959_c_regions` VALUES (12,25,1,14118,0,'Basse-Normandie',1);
INSERT INTO `B67171959_c_regions` VALUES (13,26,1,21231,0,'Bourgogne',1);
INSERT INTO `B67171959_c_regions` VALUES (14,31,1,59350,2,'Nord-Pas-de-Calais',1);
INSERT INTO `B67171959_c_regions` VALUES (15,41,1,57463,0,'Lorraine',1);
INSERT INTO `B67171959_c_regions` VALUES (16,42,1,67482,1,'Alsace',1);
INSERT INTO `B67171959_c_regions` VALUES (17,43,1,25056,0,'Franche-Comté',1);
INSERT INTO `B67171959_c_regions` VALUES (18,52,1,44109,4,'Pays de la Loire',1);
INSERT INTO `B67171959_c_regions` VALUES (19,53,1,35238,0,'Bretagne',1);
INSERT INTO `B67171959_c_regions` VALUES (20,54,1,86194,2,'Poitou-Charentes',1);
INSERT INTO `B67171959_c_regions` VALUES (21,72,1,33063,1,'Aquitaine',1);
INSERT INTO `B67171959_c_regions` VALUES (22,73,1,31555,0,'Midi-Pyrénées',1);
INSERT INTO `B67171959_c_regions` VALUES (23,74,1,87085,2,'Limousin',1);
INSERT INTO `B67171959_c_regions` VALUES (24,82,1,69123,2,'Rhône-Alpes',1);
INSERT INTO `B67171959_c_regions` VALUES (25,83,1,63113,1,'Auvergne',1);
INSERT INTO `B67171959_c_regions` VALUES (26,91,1,34172,2,'Languedoc-Roussillon',1);
INSERT INTO `B67171959_c_regions` VALUES (27,93,1,13055,0,'Provence-Alpes-Côte d\'Azur',1);
INSERT INTO `B67171959_c_regions` VALUES (28,94,1,'2A004',0,'Corse',1);
INSERT INTO `B67171959_c_regions` VALUES (29,4101,41,'',0,'Österreich',1);
INSERT INTO `B67171959_c_regions` VALUES (30,201,2,'',1,'Flandre',1);
INSERT INTO `B67171959_c_regions` VALUES (31,202,2,'',2,'Wallonie',1);
INSERT INTO `B67171959_c_regions` VALUES (32,203,2,'',3,'Bruxelles-Capitale',1);
INSERT INTO `B67171959_c_regions` VALUES (33,301,3,NULL,1,'Abruzzo',1);
INSERT INTO `B67171959_c_regions` VALUES (34,302,3,NULL,1,'Basilicata',1);
INSERT INTO `B67171959_c_regions` VALUES (35,303,3,NULL,1,'Calabria',1);
INSERT INTO `B67171959_c_regions` VALUES (36,304,3,NULL,1,'Campania',1);
INSERT INTO `B67171959_c_regions` VALUES (37,305,3,NULL,1,'Emilia-Romagna',1);
INSERT INTO `B67171959_c_regions` VALUES (38,306,3,NULL,1,'Friuli-Venezia Giulia',1);
INSERT INTO `B67171959_c_regions` VALUES (39,307,3,NULL,1,'Lazio',1);
INSERT INTO `B67171959_c_regions` VALUES (40,308,3,NULL,1,'Liguria',1);
INSERT INTO `B67171959_c_regions` VALUES (41,309,3,NULL,1,'Lombardia',1);
INSERT INTO `B67171959_c_regions` VALUES (42,310,3,NULL,1,'Marche',1);
INSERT INTO `B67171959_c_regions` VALUES (43,311,3,NULL,1,'Molise',1);
INSERT INTO `B67171959_c_regions` VALUES (44,312,3,NULL,1,'Piemonte',1);
INSERT INTO `B67171959_c_regions` VALUES (45,313,3,NULL,1,'Puglia',1);
INSERT INTO `B67171959_c_regions` VALUES (46,314,3,NULL,1,'Sardegna',1);
INSERT INTO `B67171959_c_regions` VALUES (47,315,3,NULL,1,'Sicilia',1);
INSERT INTO `B67171959_c_regions` VALUES (48,316,3,NULL,1,'Toscana',1);
INSERT INTO `B67171959_c_regions` VALUES (49,317,3,NULL,1,'Trentino-Alto Adige',1);
INSERT INTO `B67171959_c_regions` VALUES (50,318,3,NULL,1,'Umbria',1);
INSERT INTO `B67171959_c_regions` VALUES (51,319,3,NULL,1,'Valle d Aosta',1);
INSERT INTO `B67171959_c_regions` VALUES (52,320,3,NULL,1,'Veneto',1);
INSERT INTO `B67171959_c_regions` VALUES (53,401,4,'',0,'Andalucia',1);
INSERT INTO `B67171959_c_regions` VALUES (54,402,4,'',0,'Aragón',1);
INSERT INTO `B67171959_c_regions` VALUES (55,403,4,'',0,'Castilla y León',1);
INSERT INTO `B67171959_c_regions` VALUES (56,404,4,'',0,'Castilla la Mancha',1);
INSERT INTO `B67171959_c_regions` VALUES (57,405,4,'',0,'Canarias',1);
INSERT INTO `B67171959_c_regions` VALUES (58,406,4,'',0,'Cataluña',1);
INSERT INTO `B67171959_c_regions` VALUES (59,407,4,'',0,'Comunidad de Ceuta',1);
INSERT INTO `B67171959_c_regions` VALUES (60,408,4,'',0,'Comunidad Foral de Navarra',1);
INSERT INTO `B67171959_c_regions` VALUES (61,409,4,'',0,'Comunidad de Melilla',1);
INSERT INTO `B67171959_c_regions` VALUES (62,410,4,'',0,'Cantabria',1);
INSERT INTO `B67171959_c_regions` VALUES (63,411,4,'',0,'Comunidad Valenciana',1);
INSERT INTO `B67171959_c_regions` VALUES (64,412,4,'',0,'Extemadura',1);
INSERT INTO `B67171959_c_regions` VALUES (65,413,4,'',0,'Galicia',1);
INSERT INTO `B67171959_c_regions` VALUES (66,414,4,'',0,'Islas Baleares',1);
INSERT INTO `B67171959_c_regions` VALUES (67,415,4,'',0,'La Rioja',1);
INSERT INTO `B67171959_c_regions` VALUES (68,416,4,'',0,'Comunidad de Madrid',1);
INSERT INTO `B67171959_c_regions` VALUES (69,417,4,'',0,'Región de Murcia',1);
INSERT INTO `B67171959_c_regions` VALUES (70,418,4,'',0,'Principado de Asturias',1);
INSERT INTO `B67171959_c_regions` VALUES (71,419,4,'',0,'Pais Vasco',1);
INSERT INTO `B67171959_c_regions` VALUES (72,420,4,'',0,'Otros',1);
INSERT INTO `B67171959_c_regions` VALUES (73,501,5,'',0,'Deutschland',1);
INSERT INTO `B67171959_c_regions` VALUES (74,10201,102,NULL,NULL,'Αττική',1);
INSERT INTO `B67171959_c_regions` VALUES (75,10202,102,NULL,NULL,'Στερεά Ελλάδα',1);
INSERT INTO `B67171959_c_regions` VALUES (76,10203,102,NULL,NULL,'Κεντρική Μακεδονία',1);
INSERT INTO `B67171959_c_regions` VALUES (77,10204,102,NULL,NULL,'Κρήτη',1);
INSERT INTO `B67171959_c_regions` VALUES (78,10205,102,NULL,NULL,'Ανατολική Μακεδονία και Θράκη',1);
INSERT INTO `B67171959_c_regions` VALUES (79,10206,102,NULL,NULL,'Ήπειρος',1);
INSERT INTO `B67171959_c_regions` VALUES (80,10207,102,NULL,NULL,'Ιόνια νησιά',1);
INSERT INTO `B67171959_c_regions` VALUES (81,10208,102,NULL,NULL,'Βόρειο Αιγαίο',1);
INSERT INTO `B67171959_c_regions` VALUES (82,10209,102,NULL,NULL,'Πελοπόννησος',1);
INSERT INTO `B67171959_c_regions` VALUES (83,10210,102,NULL,NULL,'Νότιο Αιγαίο',1);
INSERT INTO `B67171959_c_regions` VALUES (84,10211,102,NULL,NULL,'Δυτική Ελλάδα',1);
INSERT INTO `B67171959_c_regions` VALUES (85,10212,102,NULL,NULL,'Θεσσαλία',1);
INSERT INTO `B67171959_c_regions` VALUES (86,10213,102,NULL,NULL,'Δυτική Μακεδονία',1);
INSERT INTO `B67171959_c_regions` VALUES (87,601,6,'',1,'Cantons',1);
INSERT INTO `B67171959_c_regions` VALUES (88,701,7,'',0,'England',1);
INSERT INTO `B67171959_c_regions` VALUES (89,702,7,'',0,'Wales',1);
INSERT INTO `B67171959_c_regions` VALUES (90,703,7,'',0,'Scotland',1);
INSERT INTO `B67171959_c_regions` VALUES (91,704,7,'',0,'Northern Ireland',1);
INSERT INTO `B67171959_c_regions` VALUES (92,1001,10,'',0,'Ariana',1);
INSERT INTO `B67171959_c_regions` VALUES (93,1002,10,'',0,'Béja',1);
INSERT INTO `B67171959_c_regions` VALUES (94,1003,10,'',0,'Ben Arous',1);
INSERT INTO `B67171959_c_regions` VALUES (95,1004,10,'',0,'Bizerte',1);
INSERT INTO `B67171959_c_regions` VALUES (96,1005,10,'',0,'Gabès',1);
INSERT INTO `B67171959_c_regions` VALUES (97,1006,10,'',0,'Gafsa',1);
INSERT INTO `B67171959_c_regions` VALUES (98,1007,10,'',0,'Jendouba',1);
INSERT INTO `B67171959_c_regions` VALUES (99,1008,10,'',0,'Kairouan',1);
INSERT INTO `B67171959_c_regions` VALUES (100,1009,10,'',0,'Kasserine',1);
INSERT INTO `B67171959_c_regions` VALUES (101,1010,10,'',0,'Kébili',1);
INSERT INTO `B67171959_c_regions` VALUES (102,1011,10,'',0,'La Manouba',1);
INSERT INTO `B67171959_c_regions` VALUES (103,1012,10,'',0,'Le Kef',1);
INSERT INTO `B67171959_c_regions` VALUES (104,1013,10,'',0,'Mahdia',1);
INSERT INTO `B67171959_c_regions` VALUES (105,1014,10,'',0,'Médenine',1);
INSERT INTO `B67171959_c_regions` VALUES (106,1015,10,'',0,'Monastir',1);
INSERT INTO `B67171959_c_regions` VALUES (107,1016,10,'',0,'Nabeul',1);
INSERT INTO `B67171959_c_regions` VALUES (108,1017,10,'',0,'Sfax',1);
INSERT INTO `B67171959_c_regions` VALUES (109,1018,10,'',0,'Sidi Bouzid',1);
INSERT INTO `B67171959_c_regions` VALUES (110,1019,10,'',0,'Siliana',1);
INSERT INTO `B67171959_c_regions` VALUES (111,1020,10,'',0,'Sousse',1);
INSERT INTO `B67171959_c_regions` VALUES (112,1021,10,'',0,'Tataouine',1);
INSERT INTO `B67171959_c_regions` VALUES (113,1022,10,'',0,'Tozeur',1);
INSERT INTO `B67171959_c_regions` VALUES (114,1023,10,'',0,'Tunis',1);
INSERT INTO `B67171959_c_regions` VALUES (115,1024,10,'',0,'Zaghouan',1);
INSERT INTO `B67171959_c_regions` VALUES (116,1101,11,'',0,'United-States',1);
INSERT INTO `B67171959_c_regions` VALUES (117,1301,13,'',0,'Algerie',1);
INSERT INTO `B67171959_c_regions` VALUES (118,1401,14,'',0,'Canada',1);
INSERT INTO `B67171959_c_regions` VALUES (119,1701,17,'',0,'Provincies van Nederland ',1);
INSERT INTO `B67171959_c_regions` VALUES (120,2301,23,'',0,'Norte',1);
INSERT INTO `B67171959_c_regions` VALUES (121,2302,23,'',0,'Litoral',1);
INSERT INTO `B67171959_c_regions` VALUES (122,2303,23,'',0,'Cuyana',1);
INSERT INTO `B67171959_c_regions` VALUES (123,2304,23,'',0,'Central',1);
INSERT INTO `B67171959_c_regions` VALUES (124,2305,23,'',0,'Patagonia',1);
INSERT INTO `B67171959_c_regions` VALUES (125,2801,28,'',0,'Australia',1);
INSERT INTO `B67171959_c_regions` VALUES (126,4601,46,'',0,'Barbados',1);
INSERT INTO `B67171959_c_regions` VALUES (127,5201,52,'',0,'Chuquisaca',1);
INSERT INTO `B67171959_c_regions` VALUES (128,5202,52,'',0,'La Paz',1);
INSERT INTO `B67171959_c_regions` VALUES (129,5203,52,'',0,'Cochabamba',1);
INSERT INTO `B67171959_c_regions` VALUES (130,5204,52,'',0,'Oruro',1);
INSERT INTO `B67171959_c_regions` VALUES (131,5205,52,'',0,'Potosí',1);
INSERT INTO `B67171959_c_regions` VALUES (132,5206,52,'',0,'Tarija',1);
INSERT INTO `B67171959_c_regions` VALUES (133,5207,52,'',0,'Santa Cruz',1);
INSERT INTO `B67171959_c_regions` VALUES (134,5208,52,'',0,'El Beni',1);
INSERT INTO `B67171959_c_regions` VALUES (135,5209,52,'',0,'Pando',1);
INSERT INTO `B67171959_c_regions` VALUES (136,5601,56,'',0,'Brasil',1);
INSERT INTO `B67171959_c_regions` VALUES (137,7001,70,'',0,'Colombie',1);
INSERT INTO `B67171959_c_regions` VALUES (138,6701,67,NULL,NULL,'Tarapacá',1);
INSERT INTO `B67171959_c_regions` VALUES (139,6702,67,NULL,NULL,'Antofagasta',1);
INSERT INTO `B67171959_c_regions` VALUES (140,6703,67,NULL,NULL,'Atacama',1);
INSERT INTO `B67171959_c_regions` VALUES (141,6704,67,NULL,NULL,'Coquimbo',1);
INSERT INTO `B67171959_c_regions` VALUES (142,6705,67,NULL,NULL,'Valparaíso',1);
INSERT INTO `B67171959_c_regions` VALUES (143,6706,67,NULL,NULL,'General Bernardo O Higgins',1);
INSERT INTO `B67171959_c_regions` VALUES (144,6707,67,NULL,NULL,'Maule',1);
INSERT INTO `B67171959_c_regions` VALUES (145,6708,67,NULL,NULL,'Biobío',1);
INSERT INTO `B67171959_c_regions` VALUES (146,6709,67,NULL,NULL,'Raucanía',1);
INSERT INTO `B67171959_c_regions` VALUES (147,6710,67,NULL,NULL,'Los Lagos',1);
INSERT INTO `B67171959_c_regions` VALUES (148,6711,67,NULL,NULL,'Aysén General Carlos Ibáñez del Campo',1);
INSERT INTO `B67171959_c_regions` VALUES (149,6712,67,NULL,NULL,'Magallanes y Antártica Chilena',1);
INSERT INTO `B67171959_c_regions` VALUES (150,6713,67,NULL,NULL,'Metropolitana de Santiago',1);
INSERT INTO `B67171959_c_regions` VALUES (151,6714,67,NULL,NULL,'Los Ríos',1);
INSERT INTO `B67171959_c_regions` VALUES (152,6715,67,NULL,NULL,'Arica y Parinacota',1);
INSERT INTO `B67171959_c_regions` VALUES (153,8601,86,NULL,NULL,'Central',1);
INSERT INTO `B67171959_c_regions` VALUES (154,8602,86,NULL,NULL,'Oriental',1);
INSERT INTO `B67171959_c_regions` VALUES (155,8603,86,NULL,NULL,'Occidental',1);
INSERT INTO `B67171959_c_regions` VALUES (156,11401,114,'',0,'Honduras',1);
INSERT INTO `B67171959_c_regions` VALUES (157,11701,117,'',0,'India',1);
INSERT INTO `B67171959_c_regions` VALUES (158,1201,12,'',0,'Tanger-Tétouan',1);
INSERT INTO `B67171959_c_regions` VALUES (159,1202,12,'',0,'Gharb-Chrarda-Beni Hssen',1);
INSERT INTO `B67171959_c_regions` VALUES (160,1203,12,'',0,'Taza-Al Hoceima-Taounate',1);
INSERT INTO `B67171959_c_regions` VALUES (161,1204,12,'',0,'L\'Oriental',1);
INSERT INTO `B67171959_c_regions` VALUES (162,1205,12,'',0,'Fès-Boulemane',1);
INSERT INTO `B67171959_c_regions` VALUES (163,1206,12,'',0,'Meknès-Tafialet',1);
INSERT INTO `B67171959_c_regions` VALUES (164,1207,12,'',0,'Rabat-Salé-Zemour-Zaër',1);
INSERT INTO `B67171959_c_regions` VALUES (165,1208,12,'',0,'Grand Cassablanca',1);
INSERT INTO `B67171959_c_regions` VALUES (166,1209,12,'',0,'Chaouia-Ouardigha',1);
INSERT INTO `B67171959_c_regions` VALUES (167,1210,12,'',0,'Doukahla-Adba',1);
INSERT INTO `B67171959_c_regions` VALUES (168,1211,12,'',0,'Marrakech-Tensift-Al Haouz',1);
INSERT INTO `B67171959_c_regions` VALUES (169,1212,12,'',0,'Tadla-Azilal',1);
INSERT INTO `B67171959_c_regions` VALUES (170,1213,12,'',0,'Sous-Massa-Drâa',1);
INSERT INTO `B67171959_c_regions` VALUES (171,1214,12,'',0,'Guelmim-Es Smara',1);
INSERT INTO `B67171959_c_regions` VALUES (172,1215,12,'',0,'Laâyoune-Boujdour-Sakia el Hamra',1);
INSERT INTO `B67171959_c_regions` VALUES (173,1216,12,'',0,'Oued Ed-Dahab Lagouira',1);
INSERT INTO `B67171959_c_regions` VALUES (174,14001,140,'',0,'Diekirch',1);
INSERT INTO `B67171959_c_regions` VALUES (175,14002,140,'',0,'Grevenmacher',1);
INSERT INTO `B67171959_c_regions` VALUES (176,14003,140,'',0,'Luxembourg',1);
INSERT INTO `B67171959_c_regions` VALUES (177,15201,152,'',0,'Rivière Noire',1);
INSERT INTO `B67171959_c_regions` VALUES (178,15202,152,'',0,'Flacq',1);
INSERT INTO `B67171959_c_regions` VALUES (179,15203,152,'',0,'Grand Port',1);
INSERT INTO `B67171959_c_regions` VALUES (180,15204,152,'',0,'Moka',1);
INSERT INTO `B67171959_c_regions` VALUES (181,15205,152,'',0,'Pamplemousses',1);
INSERT INTO `B67171959_c_regions` VALUES (182,15206,152,'',0,'Plaines Wilhems',1);
INSERT INTO `B67171959_c_regions` VALUES (183,15207,152,'',0,'Port-Louis',1);
INSERT INTO `B67171959_c_regions` VALUES (184,15208,152,'',0,'Rivière du Rempart',1);
INSERT INTO `B67171959_c_regions` VALUES (185,15209,152,'',0,'Savanne',1);
INSERT INTO `B67171959_c_regions` VALUES (186,15210,152,'',0,'Rodrigues',1);
INSERT INTO `B67171959_c_regions` VALUES (187,15211,152,'',0,'Les îles Agaléga',1);
INSERT INTO `B67171959_c_regions` VALUES (188,15212,152,'',0,'Les écueils des Cargados Carajos',1);
INSERT INTO `B67171959_c_regions` VALUES (189,15401,154,'',0,'Mexique',1);
INSERT INTO `B67171959_c_regions` VALUES (190,18801,188,'',0,'Romania',1);
INSERT INTO `B67171959_c_regions` VALUES (191,23201,232,'',0,'Los Andes',1);
INSERT INTO `B67171959_c_regions` VALUES (192,23202,232,'',0,'Capital',1);
INSERT INTO `B67171959_c_regions` VALUES (193,23203,232,'',0,'Central',1);
INSERT INTO `B67171959_c_regions` VALUES (194,23204,232,'',0,'Cento Occidental',1);
INSERT INTO `B67171959_c_regions` VALUES (195,23205,232,'',0,'Guayana',1);
INSERT INTO `B67171959_c_regions` VALUES (196,23206,232,'',0,'Insular',1);
INSERT INTO `B67171959_c_regions` VALUES (197,23207,232,'',0,'Los Llanos',1);
INSERT INTO `B67171959_c_regions` VALUES (198,23208,232,'',0,'Nor-Oriental',1);
INSERT INTO `B67171959_c_regions` VALUES (199,23209,232,'',0,'Zuliana',1);
INSERT INTO `B67171959_c_regions` VALUES (200,18101,181,'',0,'Amazonas',1);
INSERT INTO `B67171959_c_regions` VALUES (201,18102,181,'',0,'Ancash',1);
INSERT INTO `B67171959_c_regions` VALUES (202,18103,181,'',0,'Apurimac',1);
INSERT INTO `B67171959_c_regions` VALUES (203,18104,181,'',0,'Arequipa',1);
INSERT INTO `B67171959_c_regions` VALUES (204,18105,181,'',0,'Ayacucho',1);
INSERT INTO `B67171959_c_regions` VALUES (205,18106,181,'',0,'Cajamarca',1);
INSERT INTO `B67171959_c_regions` VALUES (206,18107,181,'',0,'Callao',1);
INSERT INTO `B67171959_c_regions` VALUES (207,18108,181,'',0,'Cuzco',1);
INSERT INTO `B67171959_c_regions` VALUES (208,18109,181,'',0,'Huancavelica',1);
INSERT INTO `B67171959_c_regions` VALUES (209,18110,181,'',0,'Huanuco',1);
INSERT INTO `B67171959_c_regions` VALUES (210,18111,181,'',0,'Ica',1);
INSERT INTO `B67171959_c_regions` VALUES (211,18112,181,'',0,'Junin',1);
INSERT INTO `B67171959_c_regions` VALUES (212,18113,181,'',0,'La Libertad',1);
INSERT INTO `B67171959_c_regions` VALUES (213,18114,181,'',0,'Lambayeque',1);
INSERT INTO `B67171959_c_regions` VALUES (214,18115,181,'',0,'Lima Metropolitana',1);
INSERT INTO `B67171959_c_regions` VALUES (215,18116,181,'',0,'Lima',1);
INSERT INTO `B67171959_c_regions` VALUES (216,18117,181,'',0,'Loreto',1);
INSERT INTO `B67171959_c_regions` VALUES (217,18118,181,'',0,'Madre de Dios',1);
INSERT INTO `B67171959_c_regions` VALUES (218,18119,181,'',0,'Moquegua',1);
INSERT INTO `B67171959_c_regions` VALUES (219,18120,181,'',0,'Pasco',1);
INSERT INTO `B67171959_c_regions` VALUES (220,18121,181,'',0,'Piura',1);
INSERT INTO `B67171959_c_regions` VALUES (221,18122,181,'',0,'Puno',1);
INSERT INTO `B67171959_c_regions` VALUES (222,18123,181,'',0,'San Martín',1);
INSERT INTO `B67171959_c_regions` VALUES (223,18124,181,'',0,'Tacna',1);
INSERT INTO `B67171959_c_regions` VALUES (224,18125,181,'',0,'Tumbes',1);
INSERT INTO `B67171959_c_regions` VALUES (225,18126,181,'',0,'Ucayali',1);
INSERT INTO `B67171959_c_regions` VALUES (226,17801,178,'',0,'Panama',1);
INSERT INTO `B67171959_c_regions` VALUES (227,22701,227,'',0,'United Arab Emirates',1);




--
-- Table structure for table `B67171959_c_revenuestamp`
--
CREATE TABLE `B67171959_c_revenuestamp` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_pays` int(11) NOT NULL,
  `taux` double NOT NULL,
  `revenuestamp_type` varchar(16) NOT NULL DEFAULT 'fixed',
  `note` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `accountancy_code_sell` varchar(32) DEFAULT NULL,
  `accountancy_code_buy` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=1543 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_revenuestamp`
--
INSERT INTO `B67171959_c_revenuestamp` VALUES (101,10,0.4,'fixed','Revenue stamp tunisia',1,NULL,NULL);
INSERT INTO `B67171959_c_revenuestamp` VALUES (1541,154,1.5,'percent','Revenue stamp mexico',1,NULL,NULL);
INSERT INTO `B67171959_c_revenuestamp` VALUES (1542,154,3,'percent','Revenue stamp mexico',1,NULL,NULL);




--
-- Table structure for table `B67171959_c_shipment_mode`
--
CREATE TABLE `B67171959_c_shipment_mode` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `code` varchar(30) NOT NULL,
  `libelle` varchar(50) NOT NULL,
  `description` text,
  `tracking` varchar(255) NOT NULL,
  `active` tinyint(4) DEFAULT '0',
  `module` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_shipment_mode` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_shipment_mode`
--
INSERT INTO `B67171959_c_shipment_mode` VALUES (1,'2018-02-23 18:57:29','CATCH','At-Store Reclamation','At-Store Reclamation by the customer','',1,NULL);
INSERT INTO `B67171959_c_shipment_mode` VALUES (2,'2018-02-23 18:57:29','TRANS','Generic transporter','Generic transporter','',1,NULL);
INSERT INTO `B67171959_c_shipment_mode` VALUES (3,'2018-02-23 18:57:29','COLSUI','Colissimo Suivi','Colissimo Suivi','http://www.colissimo.fr/portail_colissimo/suivre.do?colispart={TRACKID}',0,NULL);
INSERT INTO `B67171959_c_shipment_mode` VALUES (4,'2018-02-23 18:57:29','LETTREMAX','Lettre Max','Courrier Suivi et Lettre Max','',0,NULL);
INSERT INTO `B67171959_c_shipment_mode` VALUES (5,'2018-02-23 18:57:29','UPS','UPS','United Parcel Service','http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber2=&InquiryNumber3=&tracknums_displayed=3&loc=fr_FR&TypeOfInquiryNumber=T&HTMLVersion=4.0&InquiryNumber22=&InquiryNumber32=&track=Track&Suivi.x=64&Suivi.y=7&Suivi=Valider&InquiryNumber1={TRACKID}',0,NULL);
INSERT INTO `B67171959_c_shipment_mode` VALUES (6,'2018-02-23 18:57:29','KIALA','KIALA','Relais Kiala','http://www.kiala.fr/tnt/delivery/{TRACKID}',0,NULL);
INSERT INTO `B67171959_c_shipment_mode` VALUES (7,'2018-02-23 18:57:29','GLS','GLS','General Logistics Systems','https://gls-group.eu/FR/fr/suivi-colis?match={TRACKID}',0,NULL);
INSERT INTO `B67171959_c_shipment_mode` VALUES (8,'2018-02-23 18:57:29','CHRONO','Chronopost','Chronopost','http://www.chronopost.fr/expedier/inputLTNumbersNoJahia.do?listeNumeros={TRACKID}',0,NULL);




--
-- Table structure for table `B67171959_c_stcomm`
--
CREATE TABLE `B67171959_c_stcomm` (
  `id` int(11) NOT NULL,
  `code` varchar(12) NOT NULL,
  `libelle` varchar(30) DEFAULT NULL,
  `picto` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_c_stcomm` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_stcomm`
--
INSERT INTO `B67171959_c_stcomm` VALUES (-1,'ST_NO','Do not contact',NULL,1);
INSERT INTO `B67171959_c_stcomm` VALUES (0,'ST_NEVER','Never contacted',NULL,1);
INSERT INTO `B67171959_c_stcomm` VALUES (1,'ST_TODO','To contact',NULL,1);
INSERT INTO `B67171959_c_stcomm` VALUES (2,'ST_PEND','Contact in progress',NULL,1);
INSERT INTO `B67171959_c_stcomm` VALUES (3,'ST_DONE','Contacted',NULL,1);




--
-- Table structure for table `B67171959_c_tva`
--
CREATE TABLE `B67171959_c_tva` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_pays` int(11) NOT NULL,
  `code` varchar(10) DEFAULT '',
  `taux` double NOT NULL,
  `localtax1` varchar(20) NOT NULL DEFAULT '0',
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2` varchar(20) NOT NULL DEFAULT '0',
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `recuperableonly` int(11) NOT NULL DEFAULT '0',
  `note` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `accountancy_code_sell` varchar(32) DEFAULT NULL,
  `accountancy_code_buy` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_tva_id` (`fk_pays`,`code`,`taux`,`recuperableonly`)
) ENGINE=InnoDB AUTO_INCREMENT=2469 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_tva`
--
INSERT INTO `B67171959_c_tva` VALUES (11,1,'',20,0,0,0,0,0,'VAT standard rate (France hors DOM-TOM)',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (14,1,'',5.5,0,0,0,0,0,'VAT reduced rate (France hors DOM-TOM)',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (15,1,'',0,0,0,0,0,0,'VAT Rate 0 ou non applicable',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (16,1,'',2.1,0,0,0,0,0,'VAT super-reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (17,1,'',10,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (21,2,'',21,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (22,2,'',6,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (23,2,'',0,0,0,0,0,0,'VAT Rate 0 ou non applicable',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (24,2,'',12,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (31,3,'',22,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (32,3,'',10,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (33,3,'',4,0,0,0,0,0,'VAT super-reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (34,3,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (41,4,'',21,5.2,3,'-19:-15:-9',5,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (42,4,'',10,1.4,3,'-19:-15:-9',5,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (43,4,'',4,0.5,3,'-19:-15:-9',5,0,'VAT super-reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (44,4,'',0,0,3,'-19:-15:-9',5,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (51,5,'',19,0,0,0,0,0,'allgemeine Ust.',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (52,5,'',7,0,0,0,0,0,'ermäßigte USt.',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (53,5,'',0,0,0,0,0,0,'keine USt.',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (54,5,'',5.5,0,0,0,0,0,'USt. Forst',0,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (55,5,'',10.7,0,0,0,0,0,'USt. Landwirtschaft',0,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (61,6,'',7.7,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (62,6,'',3.7,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (63,6,'',2.5,0,0,0,0,0,'VAT super-reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (64,6,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (71,7,'',20,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (72,7,'',17.5,0,0,0,0,0,'VAT standard rate before 2011',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (73,7,'',5,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (74,7,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (81,8,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (82,8,'',23,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (83,8,'',13.5,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (84,8,'',9,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (85,8,'',4.8,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (91,9,'',17,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (92,9,'',13,0,0,0,0,0,'VAT reduced rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (93,9,'',3,0,0,0,0,0,'VAT super reduced rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (94,9,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (101,10,'',6,1,4,0,0,0,'VAT 6%',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (102,10,'',12,1,4,0,0,0,'VAT 12%',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (103,10,'',18,1,4,0,0,0,'VAT 18%',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (104,10,'',7.5,1,4,0,0,0,'VAT 6% Majoré à 25% (7.5%)',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (105,10,'',15,1,4,0,0,0,'VAT 12% Majoré à 25% (15%)',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (106,10,'',22.5,1,4,0,0,0,'VAT 18% Majoré à 25% (22.5%)',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (107,10,'',0,1,4,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (111,11,'',0,0,0,0,0,0,'No Sales Tax',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (112,11,'',4,0,0,0,0,0,'Sales Tax 4%',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (113,11,'',6,0,0,0,0,0,'Sales Tax 6%',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (121,12,'',20,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (122,12,'',14,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (123,12,'',10,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (124,12,'',7,0,0,0,0,0,'VAT super-reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (125,12,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (141,14,'',7,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (142,14,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (143,14,'',5,9.975,1,0,0,0,'GST/TPS and PST/TVQ rate for Province',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (171,17,'',19,0,0,0,0,0,'Algemeen BTW tarief',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (172,17,'',6,0,0,0,0,0,'Verlaagd BTW tarief',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (173,17,'',0,0,0,0,0,0,'0 BTW tarief',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (174,17,'',21,0,0,0,0,0,'Algemeen BTW tarief (vanaf 1 oktober 2012)',0,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (201,20,'',25,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (202,20,'',12,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (203,20,'',6,0,0,0,0,0,'VAT super-reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (204,20,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (211,21,'',0,0,0,0,0,0,'IVA Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (212,21,'',18,7.5,2,0,0,0,'IVA standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (221,22,'',18,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (222,22,'',10,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (223,22,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (231,23,'',21,0,0,0,0,0,'IVA standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (232,23,'',10.5,0,0,0,0,0,'IVA reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (233,23,'',0,0,0,0,0,0,'IVA Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (241,24,'',19.25,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (242,24,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (251,25,'',23,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (252,25,'',13,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (253,25,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (254,25,'',6,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (261,26,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (262,26,'',5,0,0,0,0,0,'VAT Rate 5',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (271,27,'',19.6,0,0,0,0,0,'VAT standard rate (France hors DOM-TOM)',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (272,27,'',8.5,0,0,0,0,0,'VAT standard rate (DOM sauf Guyane et Saint-Martin)',0,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (273,27,'',8.5,0,0,0,0,1,'VAT standard rate (DOM sauf Guyane et Saint-Martin), non perçu par le vendeur mais récupérable par acheteur',0,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (274,27,'',5.5,0,0,0,0,0,'VAT reduced rate (France hors DOM-TOM)',0,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (275,27,'',0,0,0,0,0,0,'VAT Rate 0 ou non applicable',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (276,27,'',2.1,0,0,0,0,0,'VAT super-reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (277,27,'',7,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (281,28,'',10,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (282,28,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (411,41,'',20,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (412,41,'',10,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (413,41,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (461,46,'',0,0,0,0,0,0,'No VAT',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (462,46,'',15,0,0,0,0,0,'VAT 15%',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (463,46,'',7.5,0,0,0,0,0,'VAT 7.5%',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (561,56,'',0,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (591,59,'',20,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (592,59,'',7,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (593,59,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (671,67,'',19,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (672,67,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (781,78,'',19,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (782,78,'',9,0,0,0,0,0,'VAT Rate 9',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (783,78,'',5,0,0,0,0,0,'VAT Rate 5',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (784,78,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (801,80,'',25,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (802,80,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (803,1,85,8.5,0,0,0,0,0,'VAT standard rate (DOM sauf Guyane et Saint-Martin)',0,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (804,1,'85NPR',8.5,0,0,0,0,1,'VAT standard rate (DOM sauf Guyane et Saint-Martin), non perçu par le vendeur mais récupérable par acheteur',0,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (805,1,'85NPROM',8.5,2,3,0,0,1,'VAT standard rate (DOM sauf Guyane et Saint-Martin), NPR, Octroi de Mer',0,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (806,1,'85NPROMOMR',8.5,2,3,2.5,3,1,'VAT standard rate (DOM sauf Guyane et Saint-Martin), NPR, Octroi de Mer et Octroi de Mer Regional',0,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (861,86,'',13,0,0,0,0,0,'IVA 13',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (862,86,'',0,0,0,0,0,0,'SIN IVA',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1141,114,'',0,0,0,0,0,0,'No ISV',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1142,114,'',12,0,0,0,0,0,'ISV 12%',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1161,116,'',25.5,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1162,116,'',7,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1163,116,'',0,0,0,0,0,0,'VAT rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1171,117,'',0,0,0,0,0,0,'VAT Rate 0',0,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1176,117,'C+S-18',0,9,1,9,1,0,'CGST+SGST - Same state sales',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1177,117,'I-18',18,0,0,0,0,0,'IGST',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1178,117,'C+S-5',0,2.5,1,2.5,1,0,'CGST+SGST - Same state sales',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1179,117,'I-5',5,0,0,0,0,0,'IGST',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1180,117,'C+S-12',0,6,1,6,1,0,'CGST+SGST - Same state sales',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1181,117,'I-12',12,0,0,0,0,0,'IGST',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1182,117,'C+S-28',0,14,1,14,1,0,'CGST+SGST - Same state sales',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1183,117,'I-28',28,0,0,0,0,0,'IGST',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1231,123,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1232,123,'',5,0,0,0,0,0,'VAT Rate 5',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1401,140,'',17,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1402,140,'',14,0,0,0,0,0,'VAT intermediary rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1403,140,'',8,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1404,140,'',3,0,0,0,0,0,'VAT super-reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1405,140,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1481,148,'',18,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1482,148,'',7,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1483,148,'',5,0,0,0,0,0,'VAT super-reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1484,148,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1511,151,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1512,151,'',14,0,0,0,0,0,'VAT Rate 14',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1521,152,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1522,152,'',15,0,0,0,0,0,'VAT Rate 15',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1541,154,'',0,0,0,0,0,0,'No VAT',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1542,154,'',16,0,0,0,0,0,'VAT 16%',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1543,154,'',10,0,0,0,0,0,'VAT Frontero',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1662,166,'',15,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1663,166,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1692,169,'',5,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1693,169,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1731,173,'',25,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1732,173,'',14,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1733,173,'',8,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1734,173,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1781,178,'',7,0,0,0,0,0,'ITBMS standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1782,178,'',0,0,0,0,0,0,'ITBMS Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1811,181,'',18,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1812,181,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1841,184,'',23,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1842,184,'',8,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1843,184,'',3,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1844,184,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1881,188,'',20,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1882,188,'',9,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1883,188,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1884,188,'',5,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (1931,193,'',0,0,0,0,0,0,'No VAT in SPM',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2011,201,'',19,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2012,201,'',10,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2013,201,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2021,202,'',22,0,0,0,0,0,'VAT standard rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2022,202,'',9.5,0,0,0,0,0,'VAT reduced rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2023,202,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2051,205,'',0,0,0,0,0,0,'No VAT',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2052,205,'',14,0,0,0,0,0,'VAT 14%',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2071,207,'',0,0,0,0,0,0,'VAT 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2072,207,'',15,0,0,0,0,0,'VAT 15%',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2131,213,'',5,0,0,0,0,0,'VAT 5%',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2132,213,'',0,0,0,0,0,0,'VAT 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2261,226,'',20,0,0,0,0,0,'VAT standart rate',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2262,226,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2321,232,'',0,0,0,0,0,0,'No VAT',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2322,232,'',12,0,0,0,0,0,'VAT 12%',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2323,232,'',8,0,0,0,0,0,'VAT 8%',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2461,246,'',0,0,0,0,0,0,'VAT Rate 0',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2462,102,'',24,0,0,0,0,0,'Κανονικός Φ.Π.Α.',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2463,102,'',0,0,0,0,0,0,'Μηδενικό Φ.Π.Α.',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2464,102,'',13,0,0,0,0,0,'Μειωμένος Φ.Π.Α.',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2465,102,'',6.5,0,0,0,0,0,'Υπερμειωμένος Φ.Π.Α.',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2466,102,'',16,0,0,0,0,0,'Νήσων κανονικός Φ.Π.Α.',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2467,102,'',9,0,0,0,0,0,'Νήσων μειωμένος Φ.Π.Α.',1,NULL,NULL);
INSERT INTO `B67171959_c_tva` VALUES (2468,102,'',5,0,0,0,0,0,'Νήσων υπερμειωμένος Φ.Π.Α.',1,NULL,NULL);




--
-- Table structure for table `B67171959_c_type_contact`
--
CREATE TABLE `B67171959_c_type_contact` (
  `rowid` int(11) NOT NULL,
  `element` varchar(30) NOT NULL,
  `source` varchar(8) NOT NULL DEFAULT 'external',
  `code` varchar(32) NOT NULL,
  `libelle` varchar(64) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `module` varchar(32) DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_type_contact_id` (`element`,`source`,`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_type_contact`
--
INSERT INTO `B67171959_c_type_contact` VALUES (10,'contrat','internal','SALESREPSIGN','Commercial signataire du contrat',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (11,'contrat','internal','SALESREPFOLL','Commercial suivi du contrat',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (20,'contrat','external','BILLING','Contact client facturation contrat',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (21,'contrat','external','CUSTOMER','Contact client suivi contrat',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (22,'contrat','external','SALESREPSIGN','Contact client signataire contrat',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (31,'propal','internal','SALESREPFOLL','Commercial à l\'origine de la propale',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (40,'propal','external','BILLING','Contact client facturation propale',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (41,'propal','external','CUSTOMER','Contact client suivi propale',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (42,'propal','external','SHIPPING','Contact client livraison propale',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (50,'facture','internal','SALESREPFOLL','Responsable suivi du paiement',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (60,'facture','external','BILLING','Contact client facturation',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (61,'facture','external','SHIPPING','Contact client livraison',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (62,'facture','external','SERVICE','Contact client prestation',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (70,'invoice_supplier','internal','SALESREPFOLL','Responsable suivi du paiement',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (71,'invoice_supplier','external','BILLING','Contact fournisseur facturation',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (72,'invoice_supplier','external','SHIPPING','Contact fournisseur livraison',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (73,'invoice_supplier','external','SERVICE','Contact fournisseur prestation',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (80,'agenda','internal','ACTOR','Responsable',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (81,'agenda','internal','GUEST','Guest',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (85,'agenda','external','ACTOR','Responsable',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (86,'agenda','external','GUEST','Guest',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (91,'commande','internal','SALESREPFOLL','Responsable suivi de la commande',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (100,'commande','external','BILLING','Contact client facturation commande',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (101,'commande','external','CUSTOMER','Contact client suivi commande',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (102,'commande','external','SHIPPING','Contact client livraison commande',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (120,'fichinter','internal','INTERREPFOLL','Responsable suivi de l\'intervention',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (121,'fichinter','internal','INTERVENING','Intervenant',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (130,'fichinter','external','BILLING','Contact client facturation intervention',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (131,'fichinter','external','CUSTOMER','Contact client suivi de l\'intervention',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (140,'order_supplier','internal','SALESREPFOLL','Responsable suivi de la commande',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (141,'order_supplier','internal','SHIPPING','Responsable réception de la commande',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (142,'order_supplier','external','BILLING','Contact fournisseur facturation commande',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (143,'order_supplier','external','CUSTOMER','Contact fournisseur suivi commande',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (145,'order_supplier','external','SHIPPING','Contact fournisseur livraison commande',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (150,'dolresource','internal','USERINCHARGE','In charge of resource',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (151,'dolresource','external','THIRDINCHARGE','In charge of resource',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (160,'project','internal','PROJECTLEADER','Chef de Projet',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (161,'project','internal','PROJECTCONTRIBUTOR','Intervenant',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (170,'project','external','PROJECTLEADER','Chef de Projet',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (171,'project','external','PROJECTCONTRIBUTOR','Intervenant',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (180,'project_task','internal','TASKEXECUTIVE','Responsable',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (181,'project_task','internal','TASKCONTRIBUTOR','Intervenant',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (190,'project_task','external','TASKEXECUTIVE','Responsable',1,NULL,0);
INSERT INTO `B67171959_c_type_contact` VALUES (191,'project_task','external','TASKCONTRIBUTOR','Intervenant',1,NULL,0);




--
-- Table structure for table `B67171959_c_type_fees`
--
CREATE TABLE `B67171959_c_type_fees` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(12) NOT NULL,
  `label` varchar(30) DEFAULT NULL,
  `accountancy_code` varchar(32) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `module` varchar(32) DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_c_type_fees` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_type_fees`
--
INSERT INTO `B67171959_c_type_fees` VALUES (1,'TF_OTHER','Other',NULL,1,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (2,'TF_TRIP','Transportation',NULL,1,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (3,'TF_LUNCH','Lunch',NULL,1,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (4,'EX_KME','ExpLabelKm',NULL,1,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (5,'EX_FUE','ExpLabelFuelCV',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (6,'EX_HOT','ExpLabelHotel',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (7,'EX_PAR','ExpLabelParkingCV',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (8,'EX_TOL','ExpLabelTollCV',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (9,'EX_TAX','ExpLabelVariousTaxes',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (10,'EX_IND','ExpLabelIndemnityTransSubscrip',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (11,'EX_SUM','ExpLabelMaintenanceSupply',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (12,'EX_SUO','ExpLabelOfficeSupplies',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (13,'EX_CAR','ExpLabelCarRental',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (14,'EX_DOC','ExpLabelDocumentation',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (15,'EX_CUR','ExpLabelCustomersReceiving',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (16,'EX_OTR','ExpLabelOtherReceiving',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (17,'EX_POS','ExpLabelPostage',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (18,'EX_CAM','ExpLabelMaintenanceRepairCV',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (19,'EX_EMM','ExpLabelEmployeesMeal',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (20,'EX_GUM','ExpLabelGuestsMeal',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (21,'EX_BRE','ExpLabelBreakfast',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (22,'EX_FUE_VP','ExpLabelFuelPV',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (23,'EX_TOL_VP','ExpLabelTollPV',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (24,'EX_PAR_VP','ExpLabelParkingPV',NULL,0,NULL,0);
INSERT INTO `B67171959_c_type_fees` VALUES (25,'EX_CAM_VP','ExpLabelMaintenanceRepairPV',NULL,0,NULL,0);




--
-- Table structure for table `B67171959_c_type_resource`
--
CREATE TABLE `B67171959_c_type_resource` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(32) NOT NULL,
  `label` varchar(64) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_type_resource_id` (`label`,`code`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_type_resource`
--
INSERT INTO `B67171959_c_type_resource` VALUES (1,'RES_ROOMS','Rooms',1);
INSERT INTO `B67171959_c_type_resource` VALUES (2,'RES_CARS','Cars',1);




--
-- Table structure for table `B67171959_c_typent`
--
CREATE TABLE `B67171959_c_typent` (
  `id` int(11) NOT NULL,
  `code` varchar(12) NOT NULL,
  `libelle` varchar(64) DEFAULT NULL,
  `fk_country` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `module` varchar(32) DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_c_typent` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_typent`
--
INSERT INTO `B67171959_c_typent` VALUES (0,'TE_UNKNOWN','-',NULL,1,NULL,0);
INSERT INTO `B67171959_c_typent` VALUES (1,'TE_STARTUP','Start-up',NULL,0,NULL,0);
INSERT INTO `B67171959_c_typent` VALUES (2,'TE_GROUP','Grand groupe',NULL,1,NULL,0);
INSERT INTO `B67171959_c_typent` VALUES (3,'TE_MEDIUM','PME/PMI',NULL,1,NULL,0);
INSERT INTO `B67171959_c_typent` VALUES (4,'TE_SMALL','TPE',NULL,1,NULL,0);
INSERT INTO `B67171959_c_typent` VALUES (5,'TE_ADMIN','Administration',NULL,1,NULL,0);
INSERT INTO `B67171959_c_typent` VALUES (6,'TE_WHOLE','Grossiste',NULL,0,NULL,0);
INSERT INTO `B67171959_c_typent` VALUES (7,'TE_RETAIL','Revendeur',NULL,0,NULL,0);
INSERT INTO `B67171959_c_typent` VALUES (8,'TE_PRIVATE','Particulier',NULL,1,NULL,0);
INSERT INTO `B67171959_c_typent` VALUES (100,'TE_OTHER','Autres',NULL,1,NULL,0);
INSERT INTO `B67171959_c_typent` VALUES (231,'TE_A_RI','Responsable Inscripto (typo A)',23,0,NULL,0);
INSERT INTO `B67171959_c_typent` VALUES (232,'TE_B_RNI','Responsable No Inscripto (typo B)',23,0,NULL,0);
INSERT INTO `B67171959_c_typent` VALUES (233,'TE_C_FE','Consumidor Final/Exento (typo C)',23,0,NULL,0);




--
-- Table structure for table `B67171959_c_units`
--
CREATE TABLE `B67171959_c_units` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(3) DEFAULT NULL,
  `label` varchar(50) DEFAULT NULL,
  `short_label` varchar(5) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_units_code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_units`
--
INSERT INTO `B67171959_c_units` VALUES (1,'P','piece','p',1);
INSERT INTO `B67171959_c_units` VALUES (2,'SET','set','se',1);
INSERT INTO `B67171959_c_units` VALUES (3,'S','second','s',1);
INSERT INTO `B67171959_c_units` VALUES (4,'H','hour','h',1);
INSERT INTO `B67171959_c_units` VALUES (5,'D','day','d',1);
INSERT INTO `B67171959_c_units` VALUES (6,'KG','kilogram','kg',1);
INSERT INTO `B67171959_c_units` VALUES (7,'G','gram','g',1);
INSERT INTO `B67171959_c_units` VALUES (8,'M','meter','m',1);
INSERT INTO `B67171959_c_units` VALUES (9,'LM','linear meter','lm',1);
INSERT INTO `B67171959_c_units` VALUES (10,'M2','square meter','m2',1);
INSERT INTO `B67171959_c_units` VALUES (11,'M3','cubic meter','m3',1);
INSERT INTO `B67171959_c_units` VALUES (12,'L','liter','l',1);




--
-- Table structure for table `B67171959_c_ziptown`
--
CREATE TABLE `B67171959_c_ziptown` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(5) DEFAULT NULL,
  `fk_county` int(11) DEFAULT NULL,
  `fk_pays` int(11) NOT NULL DEFAULT '0',
  `zip` varchar(10) NOT NULL,
  `town` varchar(180) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_ziptown_fk_pays` (`zip`,`town`,`fk_pays`),
  KEY `idx_c_ziptown_fk_county` (`fk_county`),
  KEY `idx_c_ziptown_fk_pays` (`fk_pays`),
  KEY `idx_c_ziptown_zip` (`zip`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_c_ziptown`
--




--
-- Table structure for table `B67171959_categorie`
--
CREATE TABLE `B67171959_categorie` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_parent` int(11) NOT NULL DEFAULT '0',
  `label` varchar(180) NOT NULL,
  `type` tinyint(4) NOT NULL DEFAULT '1',
  `description` text,
  `color` varchar(8) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `visible` tinyint(4) NOT NULL DEFAULT '1',
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_categorie_ref` (`entity`,`fk_parent`,`label`,`type`),
  KEY `idx_categorie_type` (`type`),
  KEY `idx_categorie_label` (`label`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_categorie`
--




--
-- Table structure for table `B67171959_categorie_account`
--
CREATE TABLE `B67171959_categorie_account` (
  `fk_categorie` int(11) NOT NULL,
  `fk_account` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`fk_categorie`,`fk_account`),
  KEY `idx_categorie_account_fk_categorie` (`fk_categorie`),
  KEY `idx_categorie_account_fk_account` (`fk_account`),
  CONSTRAINT `fk_categorie_account_fk_account` FOREIGN KEY (`fk_account`) REFERENCES `B67171959_bank_account` (`rowid`),
  CONSTRAINT `fk_categorie_account_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `B67171959_categorie` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_categorie_account`
--




--
-- Table structure for table `B67171959_categorie_contact`
--
CREATE TABLE `B67171959_categorie_contact` (
  `fk_categorie` int(11) NOT NULL,
  `fk_socpeople` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`fk_categorie`,`fk_socpeople`),
  KEY `idx_categorie_contact_fk_categorie` (`fk_categorie`),
  KEY `idx_categorie_contact_fk_socpeople` (`fk_socpeople`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_categorie_contact`
--




--
-- Table structure for table `B67171959_categorie_fournisseur`
--
CREATE TABLE `B67171959_categorie_fournisseur` (
  `fk_categorie` int(11) NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`fk_categorie`,`fk_soc`),
  KEY `idx_categorie_fournisseur_fk_categorie` (`fk_categorie`),
  KEY `idx_categorie_fournisseur_fk_societe` (`fk_soc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_categorie_fournisseur`
--




--
-- Table structure for table `B67171959_categorie_lang`
--
CREATE TABLE `B67171959_categorie_lang` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_category` int(11) NOT NULL DEFAULT '0',
  `lang` varchar(5) NOT NULL DEFAULT '0',
  `label` varchar(255) NOT NULL,
  `description` text,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_category_lang` (`fk_category`,`lang`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_categorie_lang`
--




--
-- Table structure for table `B67171959_categorie_member`
--
CREATE TABLE `B67171959_categorie_member` (
  `fk_categorie` int(11) NOT NULL,
  `fk_member` int(11) NOT NULL,
  PRIMARY KEY (`fk_categorie`,`fk_member`),
  KEY `idx_categorie_member_fk_categorie` (`fk_categorie`),
  KEY `idx_categorie_member_fk_member` (`fk_member`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_categorie_member`
--




--
-- Table structure for table `B67171959_categorie_product`
--
CREATE TABLE `B67171959_categorie_product` (
  `fk_categorie` int(11) NOT NULL,
  `fk_product` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`fk_categorie`,`fk_product`),
  KEY `idx_categorie_product_fk_categorie` (`fk_categorie`),
  KEY `idx_categorie_product_fk_product` (`fk_product`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_categorie_product`
--




--
-- Table structure for table `B67171959_categorie_project`
--
CREATE TABLE `B67171959_categorie_project` (
  `fk_categorie` int(11) NOT NULL,
  `fk_project` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`fk_categorie`,`fk_project`),
  KEY `idx_categorie_project_fk_categorie` (`fk_categorie`),
  KEY `idx_categorie_project_fk_project` (`fk_project`),
  CONSTRAINT `fk_categorie_project_fk_project_rowid` FOREIGN KEY (`fk_project`) REFERENCES `B67171959_projet` (`rowid`),
  CONSTRAINT `fk_categorie_project_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `B67171959_categorie` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_categorie_project`
--




--
-- Table structure for table `B67171959_categorie_societe`
--
CREATE TABLE `B67171959_categorie_societe` (
  `fk_categorie` int(11) NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`fk_categorie`,`fk_soc`),
  KEY `idx_categorie_societe_fk_categorie` (`fk_categorie`),
  KEY `idx_categorie_societe_fk_societe` (`fk_soc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_categorie_societe`
--




--
-- Table structure for table `B67171959_categorie_user`
--
CREATE TABLE `B67171959_categorie_user` (
  `fk_categorie` int(11) NOT NULL,
  `fk_user` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`fk_categorie`,`fk_user`),
  KEY `idx_categorie_user_fk_categorie` (`fk_categorie`),
  KEY `idx_categorie_user_fk_user` (`fk_user`),
  CONSTRAINT `fk_categorie_user_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `B67171959_user` (`rowid`),
  CONSTRAINT `fk_categorie_user_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `B67171959_categorie` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_categorie_user`
--




--
-- Table structure for table `B67171959_categories_extrafields`
--
CREATE TABLE `B67171959_categories_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_categories_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_categories_extrafields`
--




--
-- Table structure for table `B67171959_chargesociales`
--
CREATE TABLE `B67171959_chargesociales` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(16) DEFAULT NULL,
  `date_ech` datetime NOT NULL,
  `libelle` varchar(80) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `date_creation` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_type` int(11) NOT NULL,
  `fk_account` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `amount` double(24,8) NOT NULL DEFAULT '0.00000000',
  `paye` smallint(6) NOT NULL DEFAULT '0',
  `periode` date DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_chargesociales`
--




--
-- Table structure for table `B67171959_commande`
--
CREATE TABLE `B67171959_commande` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `ref_client` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `date_creation` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_cloture` datetime DEFAULT NULL,
  `date_commande` date DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_cloture` int(11) DEFAULT NULL,
  `source` smallint(6) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT '0',
  `amount_ht` double(24,8) DEFAULT '0.00000000',
  `remise_percent` double DEFAULT '0',
  `remise_absolue` double DEFAULT '0',
  `remise` double DEFAULT '0',
  `tva` double(24,8) DEFAULT '0.00000000',
  `localtax1` double(24,8) DEFAULT '0.00000000',
  `localtax2` double(24,8) DEFAULT '0.00000000',
  `total_ht` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT '0.00000000',
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `facture` tinyint(4) DEFAULT '0',
  `fk_account` int(11) DEFAULT NULL,
  `fk_currency` varchar(3) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `date_livraison` date DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `fk_warehouse` int(11) DEFAULT NULL,
  `fk_availability` int(11) DEFAULT NULL,
  `fk_input_reason` int(11) DEFAULT NULL,
  `fk_delivery_address` int(11) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_commande_ref` (`ref`,`entity`),
  KEY `idx_commande_fk_soc` (`fk_soc`),
  KEY `idx_commande_fk_user_author` (`fk_user_author`),
  KEY `idx_commande_fk_user_valid` (`fk_user_valid`),
  KEY `idx_commande_fk_user_cloture` (`fk_user_cloture`),
  KEY `idx_commande_fk_projet` (`fk_projet`),
  KEY `idx_commande_fk_account` (`fk_account`),
  KEY `idx_commande_fk_currency` (`fk_currency`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_commande`
--




--
-- Table structure for table `B67171959_commande_extrafields`
--
CREATE TABLE `B67171959_commande_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_commande_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_commande_extrafields`
--




--
-- Table structure for table `B67171959_commande_fournisseur`
--
CREATE TABLE `B67171959_commande_fournisseur` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(180) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_supplier` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT '0',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `date_creation` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_approve` datetime DEFAULT NULL,
  `date_approve2` datetime DEFAULT NULL,
  `date_commande` date DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_approve` int(11) DEFAULT NULL,
  `fk_user_approve2` int(11) DEFAULT NULL,
  `source` smallint(6) NOT NULL,
  `fk_statut` smallint(6) DEFAULT '0',
  `billed` smallint(6) DEFAULT '0',
  `amount_ht` double(24,8) DEFAULT '0.00000000',
  `remise_percent` double DEFAULT '0',
  `remise` double DEFAULT '0',
  `tva` double(24,8) DEFAULT '0.00000000',
  `localtax1` double(24,8) DEFAULT '0.00000000',
  `localtax2` double(24,8) DEFAULT '0.00000000',
  `total_ht` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT '0.00000000',
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `date_livraison` datetime DEFAULT NULL,
  `fk_account` int(11) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `fk_input_method` int(11) DEFAULT '0',
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_commande_fournisseur_ref` (`ref`,`fk_soc`,`entity`),
  KEY `idx_commande_fournisseur_fk_soc` (`fk_soc`),
  KEY `billed` (`billed`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_commande_fournisseur`
--




--
-- Table structure for table `B67171959_commande_fournisseur_dispatch`
--
CREATE TABLE `B67171959_commande_fournisseur_dispatch` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_commande` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `fk_commandefourndet` int(11) DEFAULT NULL,
  `qty` float DEFAULT NULL,
  `fk_entrepot` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `batch` varchar(30) DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`rowid`),
  KEY `idx_commande_fournisseur_dispatch_fk_commande` (`fk_commande`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_commande_fournisseur_dispatch`
--




--
-- Table structure for table `B67171959_commande_fournisseur_extrafields`
--
CREATE TABLE `B67171959_commande_fournisseur_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_commande_fournisseur_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_commande_fournisseur_extrafields`
--




--
-- Table structure for table `B67171959_commande_fournisseur_log`
--
CREATE TABLE `B67171959_commande_fournisseur_log` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datelog` datetime NOT NULL,
  `fk_commande` int(11) NOT NULL,
  `fk_statut` smallint(6) NOT NULL,
  `fk_user` int(11) NOT NULL,
  `comment` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_commande_fournisseur_log`
--




--
-- Table structure for table `B67171959_commande_fournisseurdet`
--
CREATE TABLE `B67171959_commande_fournisseurdet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_commande` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `ref` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text,
  `vat_src_code` varchar(10) DEFAULT '',
  `tva_tx` double(6,3) DEFAULT '0.000',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT '0',
  `remise` double DEFAULT '0',
  `subprice` double(24,8) DEFAULT '0.00000000',
  `total_ht` double(24,8) DEFAULT '0.00000000',
  `total_tva` double(24,8) DEFAULT '0.00000000',
  `total_localtax1` double(24,8) DEFAULT '0.00000000',
  `total_localtax2` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT '0.00000000',
  `product_type` int(11) DEFAULT '0',
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int(11) DEFAULT '0',
  `special_code` int(11) DEFAULT '0',
  `rang` int(11) DEFAULT '0',
  `import_key` varchar(14) DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`),
  KEY `fk_commande_fournisseurdet_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_commande_fournisseurdet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `B67171959_c_units` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_commande_fournisseurdet`
--




--
-- Table structure for table `B67171959_commande_fournisseurdet_extrafields`
--
CREATE TABLE `B67171959_commande_fournisseurdet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_commande_fournisseurdet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_commande_fournisseurdet_extrafields`
--




--
-- Table structure for table `B67171959_commandedet`
--
CREATE TABLE `B67171959_commandedet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_commande` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text,
  `vat_src_code` varchar(10) DEFAULT '',
  `tva_tx` double(6,3) DEFAULT NULL,
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT '0',
  `remise` double DEFAULT '0',
  `fk_remise_except` int(11) DEFAULT NULL,
  `price` double DEFAULT NULL,
  `subprice` double(24,8) DEFAULT '0.00000000',
  `total_ht` double(24,8) DEFAULT '0.00000000',
  `total_tva` double(24,8) DEFAULT '0.00000000',
  `total_localtax1` double(24,8) DEFAULT '0.00000000',
  `total_localtax2` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT '0.00000000',
  `product_type` int(11) DEFAULT '0',
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int(11) DEFAULT '0',
  `buy_price_ht` double(24,8) DEFAULT '0.00000000',
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `special_code` int(11) DEFAULT '0',
  `rang` int(11) DEFAULT '0',
  `fk_unit` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_commandefourndet` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`),
  KEY `idx_commandedet_fk_commande` (`fk_commande`),
  KEY `idx_commandedet_fk_product` (`fk_product`),
  KEY `fk_commandedet_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_commandedet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `B67171959_c_units` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_commandedet`
--




--
-- Table structure for table `B67171959_commandedet_extrafields`
--
CREATE TABLE `B67171959_commandedet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_commandedet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_commandedet_extrafields`
--




--
-- Table structure for table `B67171959_comment`
--
CREATE TABLE `B67171959_comment` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `description` text NOT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_element` int(11) DEFAULT NULL,
  `element_type` varchar(50) DEFAULT NULL,
  `entity` int(11) DEFAULT '1',
  `import_key` varchar(125) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_comment`
--




--
-- Table structure for table `B67171959_const`
--
CREATE TABLE `B67171959_const` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(180) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `value` text NOT NULL,
  `type` varchar(6) DEFAULT NULL,
  `visible` tinyint(4) NOT NULL DEFAULT '1',
  `note` text,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_const` (`name`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_const`
--
INSERT INTO `B67171959_const` VALUES (2,'MAIN_FEATURES_LEVEL',0,0,'chaine',1,'Level of features to show: -1=stable+deprecated, 0=stable only (default), 1=stable+experimental, 2=stable+experimental+development','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (3,'MAILING_LIMIT_SENDBYWEB',0,25,'chaine',1,'Number of targets to defined packet size when sending mass email','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (4,'MAIN_ENABLE_LOG_TO_HTML',0,0,'chaine',1,'If this option is set to 1, it is possible to see log output at end of HTML sources by adding paramater logtohtml=1 on URL. Module log must also be enabled.','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (5,'MAIN_SECURITY_CSRF_WITH_TOKEN',0,0,'chaine',1,'If this option is set to 1, a CSRF protection using an antiCSRF token is added.','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (6,'SYSLOG_HANDLERS',0,'[\"mod_syslog_file\"]','chaine',0,'Which logger to use','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (7,'SYSLOG_FILE',0,'DOL_DATA_ROOT/dolibarr.log','chaine',0,'Directory where to write log file','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (8,'SYSLOG_LEVEL',0,7,'chaine',0,'Level of debug info to show','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (9,'MAIN_UPLOAD_DOC',0,2048,'chaine',0,'Max size for file upload (0 means no upload allowed)','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (10,'MAIN_ENABLE_OVERWRITE_TRANSLATION',1,1,'chaine',0,'Enable translation overwrite','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (11,'MAIN_ENABLE_DEFAULT_VALUES',1,1,'chaine',0,'Enable default value overwrite','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (12,'MAIN_MONNAIE',1,'EUR','chaine',0,'Monnaie','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (13,'MAIN_MAIL_SMTP_SERVER',1,'','chaine',0,'Host or ip address for SMTP server','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (14,'MAIN_MAIL_SMTP_PORT',1,'','chaine',0,'Port for SMTP server','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (15,'MAIN_MAIL_EMAIL_FROM',1,'robot@domain.com','chaine',0,'EMail emetteur pour les emails automatiques Dolibarr','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (16,'MAIN_SIZE_LISTE_LIMIT',0,25,'chaine',0,'Longueur maximum des listes','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (17,'MAIN_SIZE_SHORTLIST_LIMIT',0,3,'chaine',0,'Longueur maximum des listes courtes (fiche client)','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (18,'MAIN_MENU_STANDARD',0,'eldy_menu.php','chaine',0,'Menu manager for internal users','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (19,'MAIN_MENUFRONT_STANDARD',0,'eldy_menu.php','chaine',0,'Menu manager for external users','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (20,'MAIN_MENU_SMARTPHONE',0,'eldy_menu.php','chaine',0,'Menu manager for internal users using smartphones','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (21,'MAIN_MENUFRONT_SMARTPHONE',0,'eldy_menu.php','chaine',0,'Menu manager for external users using smartphones','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (22,'MAIN_DELAY_ACTIONS_TODO',1,7,'chaine',0,'Tolérance de retard avant alerte (en jours) sur actions planifiées non réalisées','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (23,'MAIN_DELAY_ORDERS_TO_PROCESS',1,2,'chaine',0,'Tolérance de retard avant alerte (en jours) sur commandes clients non traitées','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (24,'MAIN_DELAY_SUPPLIER_ORDERS_TO_PROCESS',1,7,'chaine',0,'Tolérance de retard avant alerte (en jours) sur commandes fournisseurs non traitées','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (25,'MAIN_DELAY_PROPALS_TO_CLOSE',1,31,'chaine',0,'Tolérance de retard avant alerte (en jours) sur propales à cloturer','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (26,'MAIN_DELAY_PROPALS_TO_BILL',1,7,'chaine',0,'Tolérance de retard avant alerte (en jours) sur propales non facturées','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (27,'MAIN_DELAY_CUSTOMER_BILLS_UNPAYED',1,31,'chaine',0,'Tolérance de retard avant alerte (en jours) sur factures client impayées','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (28,'MAIN_DELAY_SUPPLIER_BILLS_TO_PAY',1,2,'chaine',0,'Tolérance de retard avant alerte (en jours) sur factures fournisseur impayées','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (29,'MAIN_DELAY_NOT_ACTIVATED_SERVICES',1,0,'chaine',0,'Tolérance de retard avant alerte (en jours) sur services à activer','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (30,'MAIN_DELAY_RUNNING_SERVICES',1,0,'chaine',0,'Tolérance de retard avant alerte (en jours) sur services expirés','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (31,'MAIN_DELAY_MEMBERS',1,31,'chaine',0,'Tolérance de retard avant alerte (en jours) sur cotisations adhérent en retard','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (32,'MAIN_DELAY_TRANSACTIONS_TO_CONCILIATE',1,62,'chaine',0,'Tolérance de retard avant alerte (en jours) sur rapprochements bancaires à faire','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (33,'MAIN_DELAY_EXPENSEREPORTS_TO_PAY',1,31,'chaine',0,'Tolérance de retard avant alerte (en jours) sur les notes de frais impayées','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (34,'MAIN_FIX_FOR_BUGGED_MTA',1,1,'chaine',1,'Set constant to fix email ending from PHP with some linux ike system','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (35,'MAILING_EMAIL_FROM',1,'dolibarr@domain.com','chaine',0,'EMail emmetteur pour les envois d emailings','2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (36,'PRODUCT_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/products','chaine',0,NULL,'2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (37,'CONTRACT_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/contracts','chaine',0,NULL,'2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (38,'USERGROUP_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/usergroups','chaine',0,NULL,'2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (39,'USER_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/users','chaine',0,NULL,'2018-02-23 18:57:30');
INSERT INTO `B67171959_const` VALUES (40,'MAIN_MODULE_USER',0,1,NULL,0,'{\"authorid\":0,\"ip\":\"192.168.1.119\"}','2018-02-23 18:59:59');
INSERT INTO `B67171959_const` VALUES (41,'DATABASE_PWD_ENCRYPTED',1,1,'chaine',0,'','2018-02-23 18:59:59');
INSERT INTO `B67171959_const` VALUES (42,'MAIN_SECURITY_SALT',0,20180223192643,'chaine',0,'','2018-02-23 18:59:59');
INSERT INTO `B67171959_const` VALUES (43,'MAIN_SECURITY_HASH_ALGO',0,'sha1md5','chaine',0,'','2018-02-23 18:59:59');
INSERT INTO `B67171959_const` VALUES (44,'MAIN_VERSION_FIRST_INSTALL',0,'7.0.0','chaine',0,'Dolibarr version when first install','2018-02-23 18:59:59');
INSERT INTO `B67171959_const` VALUES (45,'MAIN_VERSION_LAST_INSTALL',0,'7.0.0','chaine',0,'Dolibarr version when last install','2018-02-23 18:59:59');
INSERT INTO `B67171959_const` VALUES (46,'MAIN_LANG_DEFAULT',1,'es_ES','chaine',0,'Default language','2018-02-23 18:59:59');




--
-- Table structure for table `B67171959_contrat`
--
CREATE TABLE `B67171959_contrat` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(255) DEFAULT NULL,
  `ref_customer` varchar(255) DEFAULT NULL,
  `ref_supplier` varchar(255) DEFAULT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `date_contrat` datetime DEFAULT NULL,
  `statut` smallint(6) DEFAULT '0',
  `mise_en_service` datetime DEFAULT NULL,
  `fin_validite` datetime DEFAULT NULL,
  `date_cloture` datetime DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_commercial_signature` int(11) DEFAULT NULL,
  `fk_commercial_suivi` int(11) DEFAULT NULL,
  `fk_user_author` int(11) NOT NULL DEFAULT '0',
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_mise_en_service` int(11) DEFAULT NULL,
  `fk_user_cloture` int(11) DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_contrat_ref` (`ref`,`entity`),
  KEY `idx_contrat_fk_soc` (`fk_soc`),
  KEY `idx_contrat_fk_user_author` (`fk_user_author`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_contrat`
--




--
-- Table structure for table `B67171959_contrat_extrafields`
--
CREATE TABLE `B67171959_contrat_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_contrat_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_contrat_extrafields`
--




--
-- Table structure for table `B67171959_contratdet`
--
CREATE TABLE `B67171959_contratdet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_contrat` int(11) NOT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `statut` smallint(6) DEFAULT '0',
  `label` text,
  `description` text,
  `fk_remise_except` int(11) DEFAULT NULL,
  `date_commande` datetime DEFAULT NULL,
  `date_ouverture_prevue` datetime DEFAULT NULL,
  `date_ouverture` datetime DEFAULT NULL,
  `date_fin_validite` datetime DEFAULT NULL,
  `date_cloture` datetime DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `tva_tx` double(6,3) DEFAULT '0.000',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) DEFAULT NULL,
  `qty` double NOT NULL,
  `remise_percent` double DEFAULT '0',
  `subprice` double(24,8) DEFAULT '0.00000000',
  `price_ht` double DEFAULT NULL,
  `remise` double DEFAULT '0',
  `total_ht` double(24,8) DEFAULT '0.00000000',
  `total_tva` double(24,8) DEFAULT '0.00000000',
  `total_localtax1` double(24,8) DEFAULT '0.00000000',
  `total_localtax2` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT '0.00000000',
  `product_type` int(11) DEFAULT '1',
  `info_bits` int(11) DEFAULT '0',
  `buy_price_ht` double(24,8) DEFAULT NULL,
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `fk_user_author` int(11) NOT NULL DEFAULT '0',
  `fk_user_ouverture` int(11) DEFAULT NULL,
  `fk_user_cloture` int(11) DEFAULT NULL,
  `commentaire` text,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`),
  KEY `idx_contratdet_fk_contrat` (`fk_contrat`),
  KEY `idx_contratdet_fk_product` (`fk_product`),
  KEY `idx_contratdet_date_ouverture_prevue` (`date_ouverture_prevue`),
  KEY `idx_contratdet_date_ouverture` (`date_ouverture`),
  KEY `idx_contratdet_date_fin_validite` (`date_fin_validite`),
  KEY `fk_contratdet_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_contratdet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `B67171959_c_units` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_contratdet`
--




--
-- Table structure for table `B67171959_contratdet_extrafields`
--
CREATE TABLE `B67171959_contratdet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_contratdet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_contratdet_extrafields`
--




--
-- Table structure for table `B67171959_contratdet_log`
--
CREATE TABLE `B67171959_contratdet_log` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_contratdet` int(11) NOT NULL,
  `date` datetime NOT NULL,
  `statut` smallint(6) NOT NULL,
  `fk_user_author` int(11) NOT NULL,
  `commentaire` text,
  PRIMARY KEY (`rowid`),
  KEY `idx_contratdet_log_fk_contratdet` (`fk_contratdet`),
  KEY `idx_contratdet_log_date` (`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_contratdet_log`
--




--
-- Table structure for table `B67171959_cronjob`
--
CREATE TABLE `B67171959_cronjob` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `jobtype` varchar(10) NOT NULL,
  `label` text NOT NULL,
  `command` varchar(255) DEFAULT NULL,
  `classesname` varchar(255) DEFAULT NULL,
  `objectname` varchar(255) DEFAULT NULL,
  `methodename` varchar(255) DEFAULT NULL,
  `params` text,
  `md5params` varchar(32) DEFAULT NULL,
  `module_name` varchar(255) DEFAULT NULL,
  `priority` int(11) DEFAULT '0',
  `datelastrun` datetime DEFAULT NULL,
  `datenextrun` datetime DEFAULT NULL,
  `datestart` datetime DEFAULT NULL,
  `dateend` datetime DEFAULT NULL,
  `datelastresult` datetime DEFAULT NULL,
  `lastresult` text,
  `lastoutput` text,
  `unitfrequency` varchar(255) NOT NULL DEFAULT '3600',
  `frequency` int(11) NOT NULL DEFAULT '0',
  `maxrun` int(11) NOT NULL DEFAULT '0',
  `nbrun` int(11) DEFAULT NULL,
  `autodelete` int(11) DEFAULT '0',
  `status` int(11) NOT NULL DEFAULT '1',
  `processing` int(11) NOT NULL DEFAULT '0',
  `test` varchar(255) DEFAULT '1',
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_mod` int(11) DEFAULT NULL,
  `fk_mailing` int(11) DEFAULT NULL,
  `note` text,
  `libname` varchar(255) DEFAULT NULL,
  `entity` int(11) DEFAULT '0',
  PRIMARY KEY (`rowid`),
  KEY `idx_cronjob_status` (`status`),
  KEY `idx_cronjob_datelastrun` (`datelastrun`),
  KEY `idx_cronjob_datenextrun` (`datenextrun`),
  KEY `idx_cronjob_datestart` (`datestart`),
  KEY `idx_cronjob_dateend` (`dateend`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_cronjob`
--




--
-- Table structure for table `B67171959_default_values`
--
CREATE TABLE `B67171959_default_values` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `type` varchar(10) DEFAULT NULL,
  `user_id` int(11) NOT NULL DEFAULT '0',
  `page` varchar(255) DEFAULT NULL,
  `param` varchar(255) DEFAULT NULL,
  `value` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_default_values` (`type`,`entity`,`user_id`,`page`,`param`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_default_values`
--




--
-- Table structure for table `B67171959_deplacement`
--
CREATE TABLE `B67171959_deplacement` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `dated` datetime DEFAULT NULL,
  `fk_user` int(11) NOT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `type` varchar(12) NOT NULL,
  `fk_statut` int(11) NOT NULL DEFAULT '1',
  `km` double DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT '0',
  `note_private` text,
  `note_public` text,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_deplacement`
--




--
-- Table structure for table `B67171959_document_model`
--
CREATE TABLE `B67171959_document_model` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `nom` varchar(50) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `type` varchar(20) NOT NULL,
  `libelle` varchar(255) DEFAULT NULL,
  `description` text,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_document_model` (`nom`,`type`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_document_model`
--




--
-- Table structure for table `B67171959_don`
--
CREATE TABLE `B67171959_don` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_statut` smallint(6) NOT NULL DEFAULT '0',
  `datedon` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT '0.00000000',
  `fk_payment` int(11) DEFAULT NULL,
  `paid` smallint(6) NOT NULL DEFAULT '0',
  `firstname` varchar(50) DEFAULT NULL,
  `lastname` varchar(50) DEFAULT NULL,
  `societe` varchar(50) DEFAULT NULL,
  `address` text,
  `zip` varchar(30) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `country` varchar(50) DEFAULT NULL,
  `fk_country` int(11) NOT NULL,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(24) DEFAULT NULL,
  `phone_mobile` varchar(24) DEFAULT NULL,
  `public` smallint(6) NOT NULL DEFAULT '1',
  `fk_projet` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int(11) NOT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_don`
--




--
-- Table structure for table `B67171959_don_extrafields`
--
CREATE TABLE `B67171959_don_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_don_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_don_extrafields`
--




--
-- Table structure for table `B67171959_ecm_directories`
--
CREATE TABLE `B67171959_ecm_directories` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(64) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_parent` int(11) DEFAULT NULL,
  `description` varchar(255) NOT NULL,
  `cachenbofdoc` int(11) NOT NULL DEFAULT '0',
  `fullpath` varchar(750) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `date_c` datetime DEFAULT NULL,
  `date_m` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_c` int(11) DEFAULT NULL,
  `fk_user_m` int(11) DEFAULT NULL,
  `acl` text,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_ecm_directories` (`label`,`fk_parent`,`entity`),
  KEY `idx_ecm_directories_fk_user_c` (`fk_user_c`),
  KEY `idx_ecm_directories_fk_user_m` (`fk_user_m`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_ecm_directories`
--




--
-- Table structure for table `B67171959_ecm_files`
--
CREATE TABLE `B67171959_ecm_files` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) DEFAULT NULL,
  `label` varchar(128) NOT NULL,
  `share` varchar(128) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `filepath` varchar(255) NOT NULL,
  `filename` varchar(255) NOT NULL,
  `src_object_type` varchar(32) DEFAULT NULL,
  `src_object_id` int(11) DEFAULT NULL,
  `fullpath_orig` varchar(750) DEFAULT NULL,
  `description` text,
  `keywords` varchar(750) DEFAULT NULL,
  `cover` text,
  `position` int(11) DEFAULT NULL,
  `gen_or_uploaded` varchar(12) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `date_c` datetime DEFAULT NULL,
  `date_m` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_c` int(11) DEFAULT NULL,
  `fk_user_m` int(11) DEFAULT NULL,
  `acl` text,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_ecm_files` (`filepath`,`filename`),
  KEY `idx_ecm_files_label` (`label`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_ecm_files`
--




--
-- Table structure for table `B67171959_element_contact`
--
CREATE TABLE `B67171959_element_contact` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datecreate` datetime DEFAULT NULL,
  `statut` smallint(6) DEFAULT '5',
  `element_id` int(11) NOT NULL,
  `fk_c_type_contact` int(11) NOT NULL,
  `fk_socpeople` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_element_contact_idx1` (`element_id`,`fk_c_type_contact`,`fk_socpeople`),
  KEY `idx_element_contact_fk_socpeople` (`fk_socpeople`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_element_contact`
--




--
-- Table structure for table `B67171959_element_element`
--
CREATE TABLE `B67171959_element_element` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_source` int(11) NOT NULL,
  `sourcetype` varchar(32) NOT NULL,
  `fk_target` int(11) NOT NULL,
  `targettype` varchar(32) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_element_element_idx1` (`fk_source`,`sourcetype`,`fk_target`,`targettype`),
  KEY `idx_element_element_fk_target` (`fk_target`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_element_element`
--




--
-- Table structure for table `B67171959_element_resources`
--
CREATE TABLE `B67171959_element_resources` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `element_id` int(11) DEFAULT NULL,
  `element_type` varchar(64) DEFAULT NULL,
  `resource_id` int(11) DEFAULT NULL,
  `resource_type` varchar(64) DEFAULT NULL,
  `busy` int(11) DEFAULT NULL,
  `mandatory` int(11) DEFAULT NULL,
  `duree` double DEFAULT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_element_resources_idx1` (`resource_id`,`resource_type`,`element_id`,`element_type`),
  KEY `idx_element_element_element_id` (`element_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_element_resources`
--




--
-- Table structure for table `B67171959_entrepot`
--
CREATE TABLE `B67171959_entrepot` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(255) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `entity` int(11) NOT NULL DEFAULT '1',
  `description` text,
  `lieu` varchar(64) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(10) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_departement` int(11) DEFAULT NULL,
  `fk_pays` int(11) DEFAULT '0',
  `statut` tinyint(4) DEFAULT '1',
  `fk_user_author` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_parent` int(11) DEFAULT '0',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_entrepot_label` (`ref`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_entrepot`
--




--
-- Table structure for table `B67171959_establishment`
--
CREATE TABLE `B67171959_establishment` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `name` varchar(50) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_state` int(11) DEFAULT '0',
  `fk_country` int(11) DEFAULT '0',
  `profid1` varchar(20) DEFAULT NULL,
  `profid2` varchar(20) DEFAULT NULL,
  `profid3` varchar(20) DEFAULT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `fk_user_author` int(11) NOT NULL,
  `fk_user_mod` int(11) DEFAULT NULL,
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint(4) DEFAULT '1',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_establishment`
--




--
-- Table structure for table `B67171959_event_element`
--
CREATE TABLE `B67171959_event_element` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_source` int(11) NOT NULL,
  `fk_target` int(11) NOT NULL,
  `targettype` varchar(32) NOT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_event_element`
--




--
-- Table structure for table `B67171959_events`
--
CREATE TABLE `B67171959_events` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `type` varchar(32) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `dateevent` datetime DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `description` varchar(250) NOT NULL,
  `ip` varchar(250) NOT NULL,
  `user_agent` varchar(255) DEFAULT NULL,
  `fk_object` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_events_dateevent` (`dateevent`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_events`
--




--
-- Table structure for table `B67171959_expedition`
--
CREATE TABLE `B67171959_expedition` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `ref_customer` varchar(255) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `date_delivery` datetime DEFAULT NULL,
  `date_expedition` datetime DEFAULT NULL,
  `fk_address` int(11) DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `tracking_number` varchar(50) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT '0',
  `billed` smallint(6) DEFAULT '0',
  `height` float DEFAULT NULL,
  `width` float DEFAULT NULL,
  `size_units` int(11) DEFAULT NULL,
  `size` float DEFAULT NULL,
  `weight_units` int(11) DEFAULT NULL,
  `weight` float DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_expedition_uk_ref` (`ref`,`entity`),
  KEY `idx_expedition_fk_soc` (`fk_soc`),
  KEY `idx_expedition_fk_user_author` (`fk_user_author`),
  KEY `idx_expedition_fk_user_valid` (`fk_user_valid`),
  KEY `idx_expedition_fk_shipping_method` (`fk_shipping_method`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_expedition`
--




--
-- Table structure for table `B67171959_expedition_extrafields`
--
CREATE TABLE `B67171959_expedition_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_expedition_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_expedition_extrafields`
--




--
-- Table structure for table `B67171959_expeditiondet`
--
CREATE TABLE `B67171959_expeditiondet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_expedition` int(11) NOT NULL,
  `fk_origin_line` int(11) DEFAULT NULL,
  `fk_entrepot` int(11) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `rang` int(11) DEFAULT '0',
  PRIMARY KEY (`rowid`),
  KEY `idx_expeditiondet_fk_expedition` (`fk_expedition`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_expeditiondet`
--




--
-- Table structure for table `B67171959_expeditiondet_batch`
--
CREATE TABLE `B67171959_expeditiondet_batch` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_expeditiondet` int(11) NOT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `batch` varchar(30) DEFAULT NULL,
  `qty` double NOT NULL DEFAULT '0',
  `fk_origin_stock` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_fk_expeditiondet` (`fk_expeditiondet`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_expeditiondet_batch`
--




--
-- Table structure for table `B67171959_expeditiondet_extrafields`
--
CREATE TABLE `B67171959_expeditiondet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_expeditiondet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_expeditiondet_extrafields`
--




--
-- Table structure for table `B67171959_expensereport`
--
CREATE TABLE `B67171959_expensereport` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(50) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_number_int` int(11) DEFAULT NULL,
  `ref_ext` int(11) DEFAULT NULL,
  `total_ht` double(24,8) DEFAULT '0.00000000',
  `total_tva` double(24,8) DEFAULT '0.00000000',
  `localtax1` double(24,8) DEFAULT '0.00000000',
  `localtax2` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT '0.00000000',
  `date_debut` date NOT NULL,
  `date_fin` date NOT NULL,
  `date_create` datetime NOT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_approve` datetime DEFAULT NULL,
  `date_refuse` datetime DEFAULT NULL,
  `date_cancel` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_author` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_validator` int(11) DEFAULT NULL,
  `fk_user_approve` int(11) DEFAULT NULL,
  `fk_user_refuse` int(11) DEFAULT NULL,
  `fk_user_cancel` int(11) DEFAULT NULL,
  `fk_statut` int(11) NOT NULL,
  `fk_c_paiement` int(11) DEFAULT NULL,
  `paid` smallint(6) NOT NULL DEFAULT '0',
  `note_public` text,
  `note_private` text,
  `detail_refuse` varchar(255) DEFAULT NULL,
  `detail_cancel` varchar(255) DEFAULT NULL,
  `integration_compta` int(11) DEFAULT NULL,
  `fk_bank_account` int(11) DEFAULT NULL,
  `model_pdf` varchar(50) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_expensereport_uk_ref` (`ref`,`entity`),
  KEY `idx_expensereport_date_debut` (`date_debut`),
  KEY `idx_expensereport_date_fin` (`date_fin`),
  KEY `idx_expensereport_fk_statut` (`fk_statut`),
  KEY `idx_expensereport_fk_user_author` (`fk_user_author`),
  KEY `idx_expensereport_fk_user_valid` (`fk_user_valid`),
  KEY `idx_expensereport_fk_user_approve` (`fk_user_approve`),
  KEY `idx_expensereport_fk_refuse` (`fk_user_approve`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_expensereport`
--




--
-- Table structure for table `B67171959_expensereport_det`
--
CREATE TABLE `B67171959_expensereport_det` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_expensereport` int(11) NOT NULL,
  `fk_c_type_fees` int(11) NOT NULL,
  `fk_c_exp_tax_cat` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `comments` text NOT NULL,
  `product_type` int(11) DEFAULT '-1',
  `qty` double NOT NULL,
  `value_unit` double NOT NULL,
  `remise_percent` double DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `tva_tx` double(6,3) DEFAULT NULL,
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) DEFAULT NULL,
  `total_ht` double(24,8) NOT NULL DEFAULT '0.00000000',
  `total_tva` double(24,8) NOT NULL DEFAULT '0.00000000',
  `total_localtax1` double(24,8) DEFAULT '0.00000000',
  `total_localtax2` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) NOT NULL DEFAULT '0.00000000',
  `date` date NOT NULL,
  `info_bits` int(11) DEFAULT '0',
  `special_code` int(11) DEFAULT '0',
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  `fk_facture` int(11) DEFAULT '0',
  `fk_code_ventilation` int(11) DEFAULT '0',
  `rang` int(11) DEFAULT '0',
  `import_key` varchar(14) DEFAULT NULL,
  `rule_warning_message` text,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_expensereport_det`
--




--
-- Table structure for table `B67171959_expensereport_extrafields`
--
CREATE TABLE `B67171959_expensereport_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_expensereport_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_expensereport_extrafields`
--




--
-- Table structure for table `B67171959_expensereport_ik`
--
CREATE TABLE `B67171959_expensereport_ik` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_c_exp_tax_cat` int(11) NOT NULL DEFAULT '0',
  `fk_range` int(11) NOT NULL DEFAULT '0',
  `coef` double NOT NULL DEFAULT '0',
  `ikoffset` double NOT NULL DEFAULT '0',
  `active` int(11) DEFAULT '1',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_expensereport_ik`
--
INSERT INTO `B67171959_expensereport_ik` VALUES (1,NULL,'2018-02-23 18:57:30',4,1,0.41,0,1);
INSERT INTO `B67171959_expensereport_ik` VALUES (2,NULL,'2018-02-23 18:57:30',4,2,0.244,824,1);
INSERT INTO `B67171959_expensereport_ik` VALUES (3,NULL,'2018-02-23 18:57:30',4,3,0.286,0,1);
INSERT INTO `B67171959_expensereport_ik` VALUES (4,NULL,'2018-02-23 18:57:30',5,4,0.493,0,1);
INSERT INTO `B67171959_expensereport_ik` VALUES (5,NULL,'2018-02-23 18:57:30',5,5,0.277,1082,1);
INSERT INTO `B67171959_expensereport_ik` VALUES (6,NULL,'2018-02-23 18:57:30',5,6,0.332,0,1);
INSERT INTO `B67171959_expensereport_ik` VALUES (7,NULL,'2018-02-23 18:57:30',6,7,0.543,0,1);
INSERT INTO `B67171959_expensereport_ik` VALUES (8,NULL,'2018-02-23 18:57:30',6,8,0.305,1180,1);
INSERT INTO `B67171959_expensereport_ik` VALUES (9,NULL,'2018-02-23 18:57:30',6,9,0.364,0,1);
INSERT INTO `B67171959_expensereport_ik` VALUES (10,NULL,'2018-02-23 18:57:30',7,10,0.568,0,1);
INSERT INTO `B67171959_expensereport_ik` VALUES (11,NULL,'2018-02-23 18:57:30',7,11,0.32,1244,1);
INSERT INTO `B67171959_expensereport_ik` VALUES (12,NULL,'2018-02-23 18:57:30',7,12,0.382,0,1);
INSERT INTO `B67171959_expensereport_ik` VALUES (13,NULL,'2018-02-23 18:57:30',8,13,0.595,0,1);
INSERT INTO `B67171959_expensereport_ik` VALUES (14,NULL,'2018-02-23 18:57:30',8,14,0.337,1288,1);
INSERT INTO `B67171959_expensereport_ik` VALUES (15,NULL,'2018-02-23 18:57:30',8,15,0.401,0,1);




--
-- Table structure for table `B67171959_expensereport_rules`
--
CREATE TABLE `B67171959_expensereport_rules` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `dates` datetime NOT NULL,
  `datee` datetime NOT NULL,
  `amount` double(24,8) NOT NULL,
  `restrictive` tinyint(4) NOT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_usergroup` int(11) DEFAULT NULL,
  `fk_c_type_fees` int(11) NOT NULL,
  `code_expense_rules_type` varchar(50) NOT NULL,
  `is_for_all` tinyint(4) DEFAULT '0',
  `entity` int(11) DEFAULT '1',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_expensereport_rules`
--




--
-- Table structure for table `B67171959_export_compta`
--
CREATE TABLE `B67171959_export_compta` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(12) NOT NULL,
  `date_export` datetime NOT NULL,
  `fk_user` int(11) NOT NULL,
  `note` text,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_export_compta`
--




--
-- Table structure for table `B67171959_export_model`
--
CREATE TABLE `B67171959_export_model` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_user` int(11) NOT NULL DEFAULT '0',
  `label` varchar(50) NOT NULL,
  `type` varchar(20) NOT NULL,
  `field` text NOT NULL,
  `filter` text,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_export_model` (`label`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_export_model`
--




--
-- Table structure for table `B67171959_extrafields`
--
CREATE TABLE `B67171959_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(64) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `elementtype` varchar(64) NOT NULL DEFAULT 'member',
  `label` varchar(255) NOT NULL,
  `type` varchar(8) DEFAULT NULL,
  `size` varchar(8) DEFAULT NULL,
  `fieldcomputed` text,
  `fielddefault` varchar(255) DEFAULT NULL,
  `fieldunique` int(11) DEFAULT '0',
  `fieldrequired` int(11) DEFAULT '0',
  `perms` varchar(255) DEFAULT NULL,
  `enabled` varchar(255) DEFAULT NULL,
  `pos` int(11) DEFAULT '0',
  `alwayseditable` int(11) DEFAULT '0',
  `param` text,
  `list` int(11) DEFAULT '1',
  `langs` varchar(64) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_extrafields_name` (`name`,`entity`,`elementtype`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_extrafields`
--




--
-- Table structure for table `B67171959_facture`
--
CREATE TABLE `B67171959_facture` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `facnumber` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `ref_client` varchar(255) DEFAULT NULL,
  `type` smallint(6) NOT NULL DEFAULT '0',
  `increment` varchar(10) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `datef` date DEFAULT NULL,
  `date_pointoftax` date DEFAULT NULL,
  `date_valid` date DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `paye` smallint(6) NOT NULL DEFAULT '0',
  `amount` double(24,8) NOT NULL DEFAULT '0.00000000',
  `remise_percent` double DEFAULT '0',
  `remise_absolue` double DEFAULT '0',
  `remise` double DEFAULT '0',
  `close_code` varchar(16) DEFAULT NULL,
  `close_note` varchar(128) DEFAULT NULL,
  `tva` double(24,8) DEFAULT '0.00000000',
  `localtax1` double(24,8) DEFAULT '0.00000000',
  `localtax2` double(24,8) DEFAULT '0.00000000',
  `revenuestamp` double(24,8) DEFAULT '0.00000000',
  `total` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT '0.00000000',
  `fk_statut` smallint(6) NOT NULL DEFAULT '0',
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_fac_rec_source` int(11) DEFAULT NULL,
  `fk_facture_source` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_account` int(11) DEFAULT NULL,
  `fk_currency` varchar(3) DEFAULT NULL,
  `fk_cond_reglement` int(11) NOT NULL DEFAULT '1',
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `date_lim_reglement` date DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `situation_cycle_ref` smallint(6) DEFAULT NULL,
  `situation_counter` smallint(6) DEFAULT NULL,
  `situation_final` smallint(6) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_facture_uk_facnumber` (`facnumber`,`entity`),
  KEY `idx_facture_fk_soc` (`fk_soc`),
  KEY `idx_facture_fk_user_author` (`fk_user_author`),
  KEY `idx_facture_fk_user_valid` (`fk_user_valid`),
  KEY `idx_facture_fk_facture_source` (`fk_facture_source`),
  KEY `idx_facture_fk_projet` (`fk_projet`),
  KEY `idx_facture_fk_account` (`fk_account`),
  KEY `idx_facture_fk_currency` (`fk_currency`),
  KEY `idx_facture_fk_statut` (`fk_statut`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_facture`
--




--
-- Table structure for table `B67171959_facture_extrafields`
--
CREATE TABLE `B67171959_facture_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facture_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_facture_extrafields`
--




--
-- Table structure for table `B67171959_facture_fourn`
--
CREATE TABLE `B67171959_facture_fourn` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(180) NOT NULL,
  `ref_supplier` varchar(180) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) DEFAULT NULL,
  `type` smallint(6) NOT NULL DEFAULT '0',
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `datef` date DEFAULT NULL,
  `date_pointoftax` date DEFAULT NULL,
  `date_valid` date DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `libelle` varchar(255) DEFAULT NULL,
  `paye` smallint(6) NOT NULL DEFAULT '0',
  `amount` double(24,8) NOT NULL DEFAULT '0.00000000',
  `remise` double(24,8) DEFAULT '0.00000000',
  `close_code` varchar(16) DEFAULT NULL,
  `close_note` varchar(128) DEFAULT NULL,
  `tva` double(24,8) DEFAULT '0.00000000',
  `localtax1` double(24,8) DEFAULT '0.00000000',
  `localtax2` double(24,8) DEFAULT '0.00000000',
  `total` double(24,8) DEFAULT '0.00000000',
  `total_ht` double(24,8) DEFAULT '0.00000000',
  `total_tva` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT '0.00000000',
  `fk_statut` smallint(6) NOT NULL DEFAULT '0',
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_facture_source` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_account` int(11) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `date_lim_reglement` date DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_facture_fourn_ref` (`ref`,`entity`),
  UNIQUE KEY `uk_facture_fourn_ref_supplier` (`ref_supplier`,`fk_soc`,`entity`),
  KEY `idx_facture_fourn_date_lim_reglement` (`date_lim_reglement`),
  KEY `idx_facture_fourn_fk_soc` (`fk_soc`),
  KEY `idx_facture_fourn_fk_user_author` (`fk_user_author`),
  KEY `idx_facture_fourn_fk_user_valid` (`fk_user_valid`),
  KEY `idx_facture_fourn_fk_projet` (`fk_projet`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_facture_fourn`
--




--
-- Table structure for table `B67171959_facture_fourn_det`
--
CREATE TABLE `B67171959_facture_fourn_det` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_facture_fourn` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `ref` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text,
  `pu_ht` double(24,8) DEFAULT NULL,
  `pu_ttc` double(24,8) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT '0',
  `vat_src_code` varchar(10) DEFAULT '',
  `tva_tx` double(6,3) DEFAULT NULL,
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) DEFAULT NULL,
  `total_ht` double(24,8) DEFAULT NULL,
  `tva` double(24,8) DEFAULT NULL,
  `total_localtax1` double(24,8) DEFAULT '0.00000000',
  `total_localtax2` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT NULL,
  `product_type` int(11) DEFAULT '0',
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int(11) DEFAULT '0',
  `fk_code_ventilation` int(11) NOT NULL DEFAULT '0',
  `special_code` int(11) DEFAULT '0',
  `rang` int(11) DEFAULT '0',
  `import_key` varchar(14) DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`),
  KEY `idx_facture_fourn_det_fk_facture` (`fk_facture_fourn`),
  KEY `idx_facture_fourn_det_fk_product` (`fk_product`),
  KEY `idx_facture_fourn_det_fk_code_ventilation` (`fk_code_ventilation`),
  KEY `fk_facture_fourn_det_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_facture_fourn_det_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `B67171959_c_units` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_facture_fourn_det`
--




--
-- Table structure for table `B67171959_facture_fourn_det_extrafields`
--
CREATE TABLE `B67171959_facture_fourn_det_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facture_fourn_det_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_facture_fourn_det_extrafields`
--




--
-- Table structure for table `B67171959_facture_fourn_extrafields`
--
CREATE TABLE `B67171959_facture_fourn_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facture_fourn_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_facture_fourn_extrafields`
--




--
-- Table structure for table `B67171959_facture_rec`
--
CREATE TABLE `B67171959_facture_rec` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `titre` varchar(100) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `suspended` int(11) DEFAULT '0',
  `amount` double(24,8) NOT NULL DEFAULT '0.00000000',
  `remise` double DEFAULT '0',
  `remise_percent` double DEFAULT '0',
  `remise_absolue` double DEFAULT '0',
  `vat_src_code` varchar(10) DEFAULT '',
  `tva` double(24,8) DEFAULT '0.00000000',
  `localtax1` double(24,8) DEFAULT '0.00000000',
  `localtax2` double(24,8) DEFAULT '0.00000000',
  `revenuestamp` double(24,8) DEFAULT '0.00000000',
  `total` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT '0.00000000',
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT '0',
  `fk_mode_reglement` int(11) DEFAULT '0',
  `date_lim_reglement` date DEFAULT NULL,
  `fk_account` int(11) DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `modelpdf` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  `usenewprice` int(11) DEFAULT '0',
  `frequency` int(11) DEFAULT NULL,
  `unit_frequency` varchar(2) DEFAULT 'm',
  `date_when` datetime DEFAULT NULL,
  `date_last_gen` datetime DEFAULT NULL,
  `nb_gen_done` int(11) DEFAULT NULL,
  `nb_gen_max` int(11) DEFAULT NULL,
  `auto_validate` int(11) DEFAULT '0',
  `generate_pdf` int(11) DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_facture_rec_uk_titre` (`titre`,`entity`),
  KEY `idx_facture_rec_fk_soc` (`fk_soc`),
  KEY `idx_facture_rec_fk_user_author` (`fk_user_author`),
  KEY `idx_facture_rec_fk_projet` (`fk_projet`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_facture_rec`
--




--
-- Table structure for table `B67171959_facture_rec_extrafields`
--
CREATE TABLE `B67171959_facture_rec_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facture_rec_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_facture_rec_extrafields`
--




--
-- Table structure for table `B67171959_facturedet`
--
CREATE TABLE `B67171959_facturedet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_facture` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text,
  `vat_src_code` varchar(10) DEFAULT '',
  `tva_tx` double(6,3) DEFAULT NULL,
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT '0',
  `remise` double DEFAULT '0',
  `fk_remise_except` int(11) DEFAULT NULL,
  `subprice` double(24,8) DEFAULT NULL,
  `price` double(24,8) DEFAULT NULL,
  `total_ht` double(24,8) DEFAULT NULL,
  `total_tva` double(24,8) DEFAULT NULL,
  `total_localtax1` double(24,8) DEFAULT '0.00000000',
  `total_localtax2` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT NULL,
  `product_type` int(11) DEFAULT '0',
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int(11) DEFAULT '0',
  `buy_price_ht` double(24,8) DEFAULT '0.00000000',
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `fk_code_ventilation` int(11) NOT NULL DEFAULT '0',
  `special_code` int(11) DEFAULT '0',
  `rang` int(11) DEFAULT '0',
  `fk_contract_line` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `situation_percent` double DEFAULT NULL,
  `fk_prev_id` int(11) DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_fk_remise_except` (`fk_remise_except`,`fk_facture`),
  KEY `idx_facturedet_fk_facture` (`fk_facture`),
  KEY `idx_facturedet_fk_product` (`fk_product`),
  KEY `idx_facturedet_fk_code_ventilation` (`fk_code_ventilation`),
  KEY `fk_facturedet_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_facturedet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `B67171959_c_units` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_facturedet`
--




--
-- Table structure for table `B67171959_facturedet_extrafields`
--
CREATE TABLE `B67171959_facturedet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facturedet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_facturedet_extrafields`
--




--
-- Table structure for table `B67171959_facturedet_rec`
--
CREATE TABLE `B67171959_facturedet_rec` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_facture` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `product_type` int(11) DEFAULT '0',
  `label` varchar(255) DEFAULT NULL,
  `description` text,
  `vat_src_code` varchar(10) DEFAULT '',
  `tva_tx` double(6,3) DEFAULT NULL,
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT '0',
  `remise` double DEFAULT '0',
  `subprice` double(24,8) DEFAULT NULL,
  `price` double(24,8) DEFAULT NULL,
  `total_ht` double(24,8) DEFAULT NULL,
  `total_tva` double(24,8) DEFAULT NULL,
  `total_localtax1` double(24,8) DEFAULT '0.00000000',
  `total_localtax2` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT NULL,
  `info_bits` int(11) DEFAULT '0',
  `special_code` int(10) unsigned DEFAULT '0',
  `rang` int(11) DEFAULT '0',
  `fk_contract_line` int(11) DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`),
  KEY `fk_facturedet_rec_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_facturedet_rec_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `B67171959_c_units` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_facturedet_rec`
--




--
-- Table structure for table `B67171959_facturedet_rec_extrafields`
--
CREATE TABLE `B67171959_facturedet_rec_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facturedet_rec_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_facturedet_rec_extrafields`
--




--
-- Table structure for table `B67171959_fichinter`
--
CREATE TABLE `B67171959_fichinter` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT '0',
  `fk_contrat` int(11) DEFAULT '0',
  `ref` varchar(30) NOT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `datei` date DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT '0',
  `dateo` date DEFAULT NULL,
  `datee` date DEFAULT NULL,
  `datet` date DEFAULT NULL,
  `duree` double DEFAULT NULL,
  `description` text,
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_fichinter_ref` (`ref`,`entity`),
  KEY `idx_fichinter_fk_soc` (`fk_soc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_fichinter`
--




--
-- Table structure for table `B67171959_fichinter_extrafields`
--
CREATE TABLE `B67171959_fichinter_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_ficheinter_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_fichinter_extrafields`
--




--
-- Table structure for table `B67171959_fichinterdet`
--
CREATE TABLE `B67171959_fichinterdet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_fichinter` int(11) DEFAULT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `description` text,
  `duree` int(11) DEFAULT NULL,
  `rang` int(11) DEFAULT '0',
  PRIMARY KEY (`rowid`),
  KEY `idx_fichinterdet_fk_fichinter` (`fk_fichinter`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_fichinterdet`
--




--
-- Table structure for table `B67171959_fichinterdet_extrafields`
--
CREATE TABLE `B67171959_fichinterdet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_ficheinterdet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_fichinterdet_extrafields`
--




--
-- Table structure for table `B67171959_holiday`
--
CREATE TABLE `B67171959_holiday` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) DEFAULT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_user` int(11) NOT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_type` int(11) NOT NULL,
  `date_create` datetime NOT NULL,
  `description` varchar(255) NOT NULL,
  `date_debut` date NOT NULL,
  `date_fin` date NOT NULL,
  `halfday` int(11) DEFAULT '0',
  `statut` int(11) NOT NULL DEFAULT '1',
  `fk_validator` int(11) NOT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `date_refuse` datetime DEFAULT NULL,
  `fk_user_refuse` int(11) DEFAULT NULL,
  `date_cancel` datetime DEFAULT NULL,
  `fk_user_cancel` int(11) DEFAULT NULL,
  `detail_refuse` varchar(250) DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_holiday_entity` (`entity`),
  KEY `idx_holiday_fk_user` (`fk_user`),
  KEY `idx_holiday_fk_user_create` (`fk_user_create`),
  KEY `idx_holiday_date_create` (`date_create`),
  KEY `idx_holiday_date_debut` (`date_debut`),
  KEY `idx_holiday_date_fin` (`date_fin`),
  KEY `idx_holiday_fk_validator` (`fk_validator`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_holiday`
--




--
-- Table structure for table `B67171959_holiday_config`
--
CREATE TABLE `B67171959_holiday_config` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL,
  `value` text,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_holiday_config` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_holiday_config`
--
INSERT INTO `B67171959_holiday_config` VALUES (1,'lastUpdate',NULL);




--
-- Table structure for table `B67171959_holiday_logs`
--
CREATE TABLE `B67171959_holiday_logs` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `date_action` datetime NOT NULL,
  `fk_user_action` int(11) NOT NULL,
  `fk_user_update` int(11) NOT NULL,
  `fk_type` int(11) NOT NULL,
  `type_action` varchar(255) NOT NULL,
  `prev_solde` varchar(255) NOT NULL,
  `new_solde` varchar(255) NOT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_holiday_logs`
--




--
-- Table structure for table `B67171959_holiday_users`
--
CREATE TABLE `B67171959_holiday_users` (
  `fk_user` int(11) NOT NULL,
  `fk_type` int(11) NOT NULL,
  `nb_holiday` double NOT NULL DEFAULT '0',
  UNIQUE KEY `uk_holiday_users` (`fk_user`,`fk_type`,`nb_holiday`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_holiday_users`
--




--
-- Table structure for table `B67171959_import_model`
--
CREATE TABLE `B67171959_import_model` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_user` int(11) NOT NULL DEFAULT '0',
  `label` varchar(50) NOT NULL,
  `type` varchar(50) NOT NULL,
  `field` text NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_import_model` (`label`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_import_model`
--




--
-- Table structure for table `B67171959_inventory`
--
CREATE TABLE `B67171959_inventory` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT '0',
  `ref` varchar(48) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_warehouse` int(11) DEFAULT '0',
  `status` int(11) DEFAULT '0',
  `title` varchar(255) NOT NULL,
  `date_inventory` datetime DEFAULT NULL,
  `date_validation` datetime DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_inventory_ref` (`ref`,`entity`),
  KEY `idx_inventory_tms` (`tms`),
  KEY `idx_inventory_date_creation` (`date_creation`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_inventory`
--




--
-- Table structure for table `B67171959_inventorydet`
--
CREATE TABLE `B67171959_inventorydet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_inventory` int(11) DEFAULT '0',
  `fk_warehouse` int(11) DEFAULT '0',
  `fk_product` int(11) DEFAULT '0',
  `batch` varchar(30) DEFAULT NULL,
  `qty_view` double DEFAULT NULL,
  `qty_stock` double DEFAULT NULL,
  `qty_regulated` double DEFAULT NULL,
  `pmp` double DEFAULT '0',
  `pa` double DEFAULT '0',
  `new_pmp` double DEFAULT '0',
  PRIMARY KEY (`rowid`),
  KEY `idx_inventorydet_tms` (`tms`),
  KEY `idx_inventorydet_datec` (`datec`),
  KEY `idx_inventorydet_fk_inventory` (`fk_inventory`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_inventorydet`
--




--
-- Table structure for table `B67171959_links`
--
CREATE TABLE `B67171959_links` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `datea` datetime NOT NULL,
  `url` varchar(255) NOT NULL,
  `label` varchar(255) NOT NULL,
  `objecttype` varchar(255) NOT NULL,
  `objectid` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_links` (`objectid`,`label`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_links`
--




--
-- Table structure for table `B67171959_livraison`
--
CREATE TABLE `B67171959_livraison` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_soc` int(11) NOT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `ref_customer` varchar(255) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `date_delivery` datetime DEFAULT NULL,
  `fk_address` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT '0',
  `total_ht` double(24,8) DEFAULT '0.00000000',
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_livraison_uk_ref` (`ref`,`entity`),
  KEY `idx_livraison_fk_soc` (`fk_soc`),
  KEY `idx_livraison_fk_user_author` (`fk_user_author`),
  KEY `idx_livraison_fk_user_valid` (`fk_user_valid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_livraison`
--




--
-- Table structure for table `B67171959_livraison_extrafields`
--
CREATE TABLE `B67171959_livraison_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_livraison_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_livraison_extrafields`
--




--
-- Table structure for table `B67171959_livraisondet`
--
CREATE TABLE `B67171959_livraisondet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_livraison` int(11) DEFAULT NULL,
  `fk_origin_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `description` text,
  `qty` double DEFAULT NULL,
  `subprice` double(24,8) DEFAULT '0.00000000',
  `total_ht` double(24,8) DEFAULT '0.00000000',
  `rang` int(11) DEFAULT '0',
  PRIMARY KEY (`rowid`),
  KEY `idx_livraisondet_fk_expedition` (`fk_livraison`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_livraisondet`
--




--
-- Table structure for table `B67171959_livraisondet_extrafields`
--
CREATE TABLE `B67171959_livraisondet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_livraisondet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_livraisondet_extrafields`
--




--
-- Table structure for table `B67171959_loan`
--
CREATE TABLE `B67171959_loan` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `label` varchar(80) NOT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `capital` double(24,8) NOT NULL DEFAULT '0.00000000',
  `datestart` date DEFAULT NULL,
  `dateend` date DEFAULT NULL,
  `nbterm` double DEFAULT NULL,
  `rate` double NOT NULL,
  `note_private` text,
  `note_public` text,
  `capital_position` double(24,8) DEFAULT '0.00000000',
  `date_position` date DEFAULT NULL,
  `paid` smallint(6) NOT NULL DEFAULT '0',
  `accountancy_account_capital` varchar(32) DEFAULT NULL,
  `accountancy_account_insurance` varchar(32) DEFAULT NULL,
  `accountancy_account_interest` varchar(32) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_loan`
--




--
-- Table structure for table `B67171959_loan_schedule`
--
CREATE TABLE `B67171959_loan_schedule` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_loan` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datep` datetime DEFAULT NULL,
  `amount_capital` double(24,8) DEFAULT '0.00000000',
  `amount_insurance` double(24,8) DEFAULT '0.00000000',
  `amount_interest` double(24,8) DEFAULT '0.00000000',
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_loan_schedule`
--




--
-- Table structure for table `B67171959_localtax`
--
CREATE TABLE `B67171959_localtax` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `localtaxtype` tinyint(4) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `note` text,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_localtax`
--




--
-- Table structure for table `B67171959_mailing`
--
CREATE TABLE `B67171959_mailing` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `statut` smallint(6) DEFAULT '0',
  `titre` varchar(128) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `sujet` varchar(128) DEFAULT NULL,
  `body` mediumtext,
  `bgcolor` varchar(8) DEFAULT NULL,
  `bgimage` varchar(255) DEFAULT NULL,
  `cible` varchar(60) DEFAULT NULL,
  `nbemail` int(11) DEFAULT NULL,
  `email_from` varchar(160) DEFAULT NULL,
  `email_replyto` varchar(160) DEFAULT NULL,
  `email_errorsto` varchar(160) DEFAULT NULL,
  `tag` varchar(128) DEFAULT NULL,
  `date_creat` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_appro` datetime DEFAULT NULL,
  `date_envoi` datetime DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_appro` int(11) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `joined_file1` varchar(255) DEFAULT NULL,
  `joined_file2` varchar(255) DEFAULT NULL,
  `joined_file3` varchar(255) DEFAULT NULL,
  `joined_file4` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_mailing`
--




--
-- Table structure for table `B67171959_mailing_cibles`
--
CREATE TABLE `B67171959_mailing_cibles` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_mailing` int(11) NOT NULL,
  `fk_contact` int(11) NOT NULL,
  `lastname` varchar(160) DEFAULT NULL,
  `firstname` varchar(160) DEFAULT NULL,
  `email` varchar(160) NOT NULL,
  `other` varchar(255) DEFAULT NULL,
  `tag` varchar(128) DEFAULT NULL,
  `statut` smallint(6) NOT NULL DEFAULT '0',
  `source_url` varchar(255) DEFAULT NULL,
  `source_id` int(11) DEFAULT NULL,
  `source_type` varchar(16) DEFAULT NULL,
  `date_envoi` datetime DEFAULT NULL,
  `error_text` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_mailing_cibles` (`fk_mailing`,`email`),
  KEY `idx_mailing_cibles_email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_mailing_cibles`
--




--
-- Table structure for table `B67171959_menu`
--
CREATE TABLE `B67171959_menu` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `menu_handler` varchar(16) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `module` varchar(64) DEFAULT NULL,
  `type` varchar(4) NOT NULL,
  `mainmenu` varchar(100) NOT NULL,
  `leftmenu` varchar(100) DEFAULT NULL,
  `fk_menu` int(11) NOT NULL,
  `fk_mainmenu` varchar(100) DEFAULT NULL,
  `fk_leftmenu` varchar(100) DEFAULT NULL,
  `position` int(11) NOT NULL,
  `url` varchar(255) NOT NULL,
  `target` varchar(100) DEFAULT NULL,
  `titre` varchar(255) NOT NULL,
  `langs` varchar(100) DEFAULT NULL,
  `level` smallint(6) DEFAULT NULL,
  `perms` text,
  `enabled` varchar(255) DEFAULT '1',
  `usertype` int(11) NOT NULL DEFAULT '0',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_menu_uk_menu` (`menu_handler`,`fk_menu`,`position`,`url`,`entity`),
  KEY `idx_menu_menuhandler_type` (`menu_handler`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_menu`
--




--
-- Table structure for table `B67171959_multicurrency`
--
CREATE TABLE `B67171959_multicurrency` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `date_create` datetime DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `entity` int(11) DEFAULT '1',
  `fk_user` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_multicurrency`
--




--
-- Table structure for table `B67171959_multicurrency_rate`
--
CREATE TABLE `B67171959_multicurrency_rate` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `date_sync` datetime DEFAULT NULL,
  `rate` double NOT NULL DEFAULT '0',
  `fk_multicurrency` int(11) NOT NULL,
  `entity` int(11) DEFAULT '1',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_multicurrency_rate`
--




--
-- Table structure for table `B67171959_notify`
--
CREATE TABLE `B67171959_notify` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `daten` datetime DEFAULT NULL,
  `fk_action` int(11) NOT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_contact` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `type` varchar(16) DEFAULT 'email',
  `type_target` varchar(16) DEFAULT NULL,
  `objet_type` varchar(24) NOT NULL,
  `objet_id` int(11) NOT NULL,
  `email` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_notify`
--




--
-- Table structure for table `B67171959_notify_def`
--
CREATE TABLE `B67171959_notify_def` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` date DEFAULT NULL,
  `fk_action` int(11) NOT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_contact` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `type` varchar(16) DEFAULT 'email',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_notify_def`
--




--
-- Table structure for table `B67171959_notify_def_object`
--
CREATE TABLE `B67171959_notify_def_object` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `objet_type` varchar(16) DEFAULT NULL,
  `objet_id` int(11) NOT NULL,
  `type_notif` varchar(16) DEFAULT 'browser',
  `date_notif` datetime DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `moreparam` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_notify_def_object`
--




--
-- Table structure for table `B67171959_oauth_state`
--
CREATE TABLE `B67171959_oauth_state` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `service` varchar(36) DEFAULT NULL,
  `state` varchar(128) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_adherent` int(11) DEFAULT NULL,
  `entity` int(11) DEFAULT '1',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_oauth_state`
--




--
-- Table structure for table `B67171959_oauth_token`
--
CREATE TABLE `B67171959_oauth_token` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `service` varchar(36) DEFAULT NULL,
  `token` text,
  `fk_user` int(11) DEFAULT NULL,
  `fk_adherent` int(11) DEFAULT NULL,
  `entity` int(11) DEFAULT '1',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_oauth_token`
--




--
-- Table structure for table `B67171959_onlinesignature`
--
CREATE TABLE `B67171959_onlinesignature` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `object_type` varchar(32) NOT NULL,
  `object_id` int(11) NOT NULL,
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `name` varchar(255) NOT NULL,
  `ip` varchar(128) DEFAULT NULL,
  `pathoffile` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_onlinesignature`
--




--
-- Table structure for table `B67171959_opensurvey_comments`
--
CREATE TABLE `B67171959_opensurvey_comments` (
  `id_comment` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_sondage` char(16) NOT NULL,
  `comment` text NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `usercomment` text,
  PRIMARY KEY (`id_comment`),
  KEY `idx_id_comment` (`id_comment`),
  KEY `idx_id_sondage` (`id_sondage`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_opensurvey_comments`
--




--
-- Table structure for table `B67171959_opensurvey_formquestions`
--
CREATE TABLE `B67171959_opensurvey_formquestions` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `id_sondage` varchar(16) DEFAULT NULL,
  `question` text,
  `available_answers` text,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_opensurvey_formquestions`
--




--
-- Table structure for table `B67171959_opensurvey_sondage`
--
CREATE TABLE `B67171959_opensurvey_sondage` (
  `id_sondage` varchar(16) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `commentaires` text,
  `mail_admin` varchar(128) DEFAULT NULL,
  `nom_admin` varchar(64) DEFAULT NULL,
  `fk_user_creat` int(11) NOT NULL,
  `titre` text NOT NULL,
  `date_fin` datetime DEFAULT NULL,
  `status` int(11) DEFAULT '1',
  `format` varchar(2) NOT NULL,
  `mailsonde` tinyint(4) NOT NULL DEFAULT '0',
  `allow_comments` tinyint(4) NOT NULL DEFAULT '1',
  `allow_spy` tinyint(4) NOT NULL DEFAULT '1',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `sujet` text,
  PRIMARY KEY (`id_sondage`),
  KEY `idx_date_fin` (`date_fin`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_opensurvey_sondage`
--




--
-- Table structure for table `B67171959_opensurvey_user_formanswers`
--
CREATE TABLE `B67171959_opensurvey_user_formanswers` (
  `fk_user_survey` int(11) NOT NULL,
  `fk_question` int(11) NOT NULL,
  `reponses` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_opensurvey_user_formanswers`
--




--
-- Table structure for table `B67171959_opensurvey_user_studs`
--
CREATE TABLE `B67171959_opensurvey_user_studs` (
  `id_users` int(11) NOT NULL AUTO_INCREMENT,
  `nom` varchar(64) NOT NULL,
  `id_sondage` varchar(16) NOT NULL,
  `reponses` varchar(100) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id_users`),
  KEY `idx_opensurvey_user_studs_id_users` (`id_users`),
  KEY `idx_opensurvey_user_studs_nom` (`nom`),
  KEY `idx_opensurvey_user_studs_id_sondage` (`id_sondage`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_opensurvey_user_studs`
--




--
-- Table structure for table `B67171959_overwrite_trans`
--
CREATE TABLE `B67171959_overwrite_trans` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `lang` varchar(5) DEFAULT NULL,
  `transkey` varchar(128) DEFAULT NULL,
  `transvalue` text,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_overwrite_trans` (`lang`,`transkey`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_overwrite_trans`
--




--
-- Table structure for table `B67171959_paiement`
--
CREATE TABLE `B67171959_paiement` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT '0.00000000',
  `multicurrency_amount` double(24,8) DEFAULT '0.00000000',
  `fk_paiement` int(11) NOT NULL,
  `num_paiement` varchar(50) DEFAULT NULL,
  `note` text,
  `fk_bank` int(11) NOT NULL DEFAULT '0',
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `statut` smallint(6) NOT NULL DEFAULT '0',
  `fk_export_compta` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_paiement`
--




--
-- Table structure for table `B67171959_paiement_facture`
--
CREATE TABLE `B67171959_paiement_facture` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_paiement` int(11) DEFAULT NULL,
  `fk_facture` int(11) DEFAULT NULL,
  `amount` double(24,8) DEFAULT '0.00000000',
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_amount` double(24,8) DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_paiement_facture` (`fk_paiement`,`fk_facture`),
  KEY `idx_paiement_facture_fk_facture` (`fk_facture`),
  KEY `idx_paiement_facture_fk_paiement` (`fk_paiement`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_paiement_facture`
--




--
-- Table structure for table `B67171959_paiementcharge`
--
CREATE TABLE `B67171959_paiementcharge` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_charge` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT '0.00000000',
  `fk_typepaiement` int(11) NOT NULL,
  `num_paiement` varchar(50) DEFAULT NULL,
  `note` text,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_paiementcharge`
--




--
-- Table structure for table `B67171959_paiementfourn`
--
CREATE TABLE `B67171959_paiementfourn` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) DEFAULT NULL,
  `entity` int(11) DEFAULT '1',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT '0.00000000',
  `multicurrency_amount` double(24,8) DEFAULT '0.00000000',
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_paiement` int(11) NOT NULL,
  `num_paiement` varchar(50) DEFAULT NULL,
  `note` text,
  `fk_bank` int(11) NOT NULL,
  `statut` smallint(6) NOT NULL DEFAULT '0',
  `model_pdf` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_paiementfourn`
--




--
-- Table structure for table `B67171959_paiementfourn_facturefourn`
--
CREATE TABLE `B67171959_paiementfourn_facturefourn` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_paiementfourn` int(11) DEFAULT NULL,
  `fk_facturefourn` int(11) DEFAULT NULL,
  `amount` double(24,8) DEFAULT '0.00000000',
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_amount` double(24,8) DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_paiementfourn_facturefourn` (`fk_paiementfourn`,`fk_facturefourn`),
  KEY `idx_paiementfourn_facturefourn_fk_facture` (`fk_facturefourn`),
  KEY `idx_paiementfourn_facturefourn_fk_paiement` (`fk_paiementfourn`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_paiementfourn_facturefourn`
--




--
-- Table structure for table `B67171959_payment_donation`
--
CREATE TABLE `B67171959_payment_donation` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_donation` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT '0.00000000',
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `note` text,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_payment_donation`
--




--
-- Table structure for table `B67171959_payment_expensereport`
--
CREATE TABLE `B67171959_payment_expensereport` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_expensereport` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT '0.00000000',
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `note` text,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_payment_expensereport`
--




--
-- Table structure for table `B67171959_payment_loan`
--
CREATE TABLE `B67171959_payment_loan` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_loan` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datep` datetime DEFAULT NULL,
  `amount_capital` double(24,8) DEFAULT '0.00000000',
  `amount_insurance` double(24,8) DEFAULT '0.00000000',
  `amount_interest` double(24,8) DEFAULT '0.00000000',
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_payment_loan`
--




--
-- Table structure for table `B67171959_payment_salary`
--
CREATE TABLE `B67171959_payment_salary` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `fk_user` int(11) NOT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `salary` double(24,8) DEFAULT NULL,
  `amount` double(24,8) NOT NULL DEFAULT '0.00000000',
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `datesp` date DEFAULT NULL,
  `dateep` date DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `note` text,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_payment_salary_ref` (`num_payment`),
  KEY `idx_payment_salary_user` (`fk_user`,`entity`),
  KEY `idx_payment_salary_datep` (`datep`),
  KEY `idx_payment_salary_datesp` (`datesp`),
  KEY `idx_payment_salary_dateep` (`dateep`),
  CONSTRAINT `fk_payment_salary_user` FOREIGN KEY (`fk_user`) REFERENCES `B67171959_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_payment_salary`
--




--
-- Table structure for table `B67171959_payment_various`
--
CREATE TABLE `B67171959_payment_various` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `num_payment` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `sens` smallint(6) NOT NULL DEFAULT '0',
  `amount` double(24,8) NOT NULL DEFAULT '0.00000000',
  `fk_typepayment` int(11) NOT NULL,
  `accountancy_code` varchar(32) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `note` text,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_payment_various`
--




--
-- Table structure for table `B67171959_prelevement_bons`
--
CREATE TABLE `B67171959_prelevement_bons` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(12) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `datec` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT '0.00000000',
  `statut` smallint(6) DEFAULT '0',
  `credite` smallint(6) DEFAULT '0',
  `note` text,
  `date_trans` datetime DEFAULT NULL,
  `method_trans` smallint(6) DEFAULT NULL,
  `fk_user_trans` int(11) DEFAULT NULL,
  `date_credit` datetime DEFAULT NULL,
  `fk_user_credit` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_prelevement_bons_ref` (`ref`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_prelevement_bons`
--




--
-- Table structure for table `B67171959_prelevement_facture`
--
CREATE TABLE `B67171959_prelevement_facture` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_facture` int(11) NOT NULL,
  `fk_prelevement_lignes` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_prelevement_facture_fk_prelevement_lignes` (`fk_prelevement_lignes`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_prelevement_facture`
--




--
-- Table structure for table `B67171959_prelevement_facture_demande`
--
CREATE TABLE `B67171959_prelevement_facture_demande` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_facture` int(11) NOT NULL,
  `amount` double(24,8) NOT NULL,
  `date_demande` datetime NOT NULL,
  `traite` smallint(6) DEFAULT '0',
  `date_traite` datetime DEFAULT NULL,
  `fk_prelevement_bons` int(11) DEFAULT NULL,
  `fk_user_demande` int(11) NOT NULL,
  `code_banque` varchar(128) DEFAULT NULL,
  `code_guichet` varchar(6) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `cle_rib` varchar(5) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_prelevement_facture_demande`
--




--
-- Table structure for table `B67171959_prelevement_lignes`
--
CREATE TABLE `B67171959_prelevement_lignes` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_prelevement_bons` int(11) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `statut` smallint(6) DEFAULT '0',
  `client_nom` varchar(255) DEFAULT NULL,
  `amount` double(24,8) DEFAULT '0.00000000',
  `code_banque` varchar(128) DEFAULT NULL,
  `code_guichet` varchar(6) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `cle_rib` varchar(5) DEFAULT NULL,
  `note` text,
  PRIMARY KEY (`rowid`),
  KEY `idx_prelevement_lignes_fk_prelevement_bons` (`fk_prelevement_bons`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_prelevement_lignes`
--




--
-- Table structure for table `B67171959_prelevement_rejet`
--
CREATE TABLE `B67171959_prelevement_rejet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_prelevement_lignes` int(11) DEFAULT NULL,
  `date_rejet` datetime DEFAULT NULL,
  `motif` int(11) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `fk_user_creation` int(11) DEFAULT NULL,
  `note` text,
  `afacturer` tinyint(4) DEFAULT '0',
  `fk_facture` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_prelevement_rejet`
--




--
-- Table structure for table `B67171959_printing`
--
CREATE TABLE `B67171959_printing` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `printer_name` text NOT NULL,
  `printer_location` text NOT NULL,
  `printer_id` varchar(255) NOT NULL,
  `copy` int(11) NOT NULL DEFAULT '1',
  `module` varchar(16) NOT NULL,
  `driver` varchar(16) NOT NULL,
  `userid` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_printing`
--




--
-- Table structure for table `B67171959_product`
--
CREATE TABLE `B67171959_product` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_ext` varchar(128) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_parent` int(11) DEFAULT '0',
  `label` varchar(255) NOT NULL,
  `description` text,
  `note_public` text,
  `note` text,
  `customcode` varchar(32) DEFAULT NULL,
  `fk_country` int(11) DEFAULT NULL,
  `price` double(24,8) DEFAULT '0.00000000',
  `price_ttc` double(24,8) DEFAULT '0.00000000',
  `price_min` double(24,8) DEFAULT '0.00000000',
  `price_min_ttc` double(24,8) DEFAULT '0.00000000',
  `price_base_type` varchar(3) DEFAULT 'HT',
  `cost_price` double(24,8) DEFAULT NULL,
  `default_vat_code` varchar(10) DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT '0',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `tosell` tinyint(4) DEFAULT '1',
  `tobuy` tinyint(4) DEFAULT '1',
  `onportal` tinyint(4) DEFAULT '0',
  `tobatch` tinyint(4) NOT NULL DEFAULT '0',
  `fk_product_type` int(11) DEFAULT '0',
  `duration` varchar(6) DEFAULT NULL,
  `seuil_stock_alerte` int(11) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `barcode` varchar(180) DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT NULL,
  `accountancy_code_sell` varchar(32) DEFAULT NULL,
  `accountancy_code_sell_intra` varchar(32) DEFAULT NULL,
  `accountancy_code_sell_export` varchar(32) DEFAULT NULL,
  `accountancy_code_buy` varchar(32) DEFAULT NULL,
  `partnumber` varchar(32) DEFAULT NULL,
  `weight` float DEFAULT NULL,
  `weight_units` tinyint(4) DEFAULT NULL,
  `length` float DEFAULT NULL,
  `length_units` tinyint(4) DEFAULT NULL,
  `width` float DEFAULT NULL,
  `width_units` tinyint(4) DEFAULT NULL,
  `height` float DEFAULT NULL,
  `height_units` tinyint(4) DEFAULT NULL,
  `surface` float DEFAULT NULL,
  `surface_units` tinyint(4) DEFAULT NULL,
  `volume` float DEFAULT NULL,
  `volume_units` tinyint(4) DEFAULT NULL,
  `stock` double DEFAULT NULL,
  `pmp` double(24,8) NOT NULL DEFAULT '0.00000000',
  `fifo` double(24,8) DEFAULT NULL,
  `lifo` double(24,8) DEFAULT NULL,
  `canvas` varchar(32) DEFAULT NULL,
  `finished` tinyint(4) DEFAULT NULL,
  `hidden` tinyint(4) DEFAULT '0',
  `import_key` varchar(14) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `fk_price_expression` int(11) DEFAULT NULL,
  `desiredstock` int(11) DEFAULT '0',
  `fk_unit` int(11) DEFAULT NULL,
  `price_autogen` tinyint(4) DEFAULT '0',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_ref` (`ref`,`entity`),
  UNIQUE KEY `uk_product_barcode` (`barcode`,`fk_barcode_type`,`entity`),
  KEY `idx_product_label` (`label`),
  KEY `idx_product_barcode` (`barcode`),
  KEY `idx_product_import_key` (`import_key`),
  KEY `idx_product_seuil_stock_alerte` (`seuil_stock_alerte`),
  KEY `idx_product_fk_country` (`fk_country`),
  KEY `idx_product_fk_user_author` (`fk_user_author`),
  KEY `idx_product_fk_barcode_type` (`fk_barcode_type`),
  KEY `fk_product_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_product_barcode_type` FOREIGN KEY (`fk_barcode_type`) REFERENCES `B67171959_c_barcode_type` (`rowid`),
  CONSTRAINT `fk_product_fk_country` FOREIGN KEY (`fk_country`) REFERENCES `B67171959_c_country` (`rowid`),
  CONSTRAINT `fk_product_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `B67171959_c_units` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product`
--




--
-- Table structure for table `B67171959_product_association`
--
CREATE TABLE `B67171959_product_association` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_product_pere` int(11) NOT NULL DEFAULT '0',
  `fk_product_fils` int(11) NOT NULL DEFAULT '0',
  `qty` double DEFAULT NULL,
  `incdec` int(11) DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_association` (`fk_product_pere`,`fk_product_fils`),
  KEY `idx_product_association_fils` (`fk_product_fils`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_association`
--




--
-- Table structure for table `B67171959_product_attribute`
--
CREATE TABLE `B67171959_product_attribute` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(255) NOT NULL,
  `label` varchar(255) NOT NULL,
  `rang` int(11) NOT NULL DEFAULT '0',
  `entity` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_attribute_ref` (`ref`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_attribute`
--




--
-- Table structure for table `B67171959_product_attribute_combination`
--
CREATE TABLE `B67171959_product_attribute_combination` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_product_parent` int(11) NOT NULL,
  `fk_product_child` int(11) NOT NULL,
  `variation_price` float NOT NULL,
  `variation_price_percentage` int(11) DEFAULT NULL,
  `variation_weight` float NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_attribute_combination`
--




--
-- Table structure for table `B67171959_product_attribute_combination2val`
--
CREATE TABLE `B67171959_product_attribute_combination2val` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_prod_combination` int(11) NOT NULL,
  `fk_prod_attr` int(11) NOT NULL,
  `fk_prod_attr_val` int(11) NOT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_attribute_combination2val`
--




--
-- Table structure for table `B67171959_product_attribute_value`
--
CREATE TABLE `B67171959_product_attribute_value` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_product_attribute` int(11) NOT NULL,
  `ref` varchar(180) DEFAULT NULL,
  `value` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_attribute_value` (`fk_product_attribute`,`ref`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_attribute_value`
--




--
-- Table structure for table `B67171959_product_batch`
--
CREATE TABLE `B67171959_product_batch` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_product_stock` int(11) NOT NULL,
  `eatby` datetime DEFAULT NULL,
  `sellby` datetime DEFAULT NULL,
  `batch` varchar(30) NOT NULL,
  `qty` double NOT NULL DEFAULT '0',
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_batch` (`fk_product_stock`,`batch`),
  KEY `idx_fk_product_stock` (`fk_product_stock`),
  KEY `idx_batch` (`batch`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_batch`
--




--
-- Table structure for table `B67171959_product_customer_price`
--
CREATE TABLE `B67171959_product_customer_price` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_product` int(11) NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `price` double(24,8) DEFAULT '0.00000000',
  `price_ttc` double(24,8) DEFAULT '0.00000000',
  `price_min` double(24,8) DEFAULT '0.00000000',
  `price_min_ttc` double(24,8) DEFAULT '0.00000000',
  `price_base_type` varchar(3) DEFAULT 'HT',
  `default_vat_code` varchar(10) DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT '0',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `fk_user` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_customer_price_fk_product_fk_soc` (`fk_product`,`fk_soc`),
  KEY `idx_product_customer_price_fk_user` (`fk_user`),
  KEY `idx_product_customer_price_fk_soc` (`fk_soc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_customer_price`
--




--
-- Table structure for table `B67171959_product_customer_price_log`
--
CREATE TABLE `B67171959_product_customer_price_log` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `datec` datetime DEFAULT NULL,
  `fk_product` int(11) NOT NULL,
  `fk_soc` int(11) NOT NULL DEFAULT '0',
  `price` double(24,8) DEFAULT '0.00000000',
  `price_ttc` double(24,8) DEFAULT '0.00000000',
  `price_min` double(24,8) DEFAULT '0.00000000',
  `price_min_ttc` double(24,8) DEFAULT '0.00000000',
  `price_base_type` varchar(3) DEFAULT 'HT',
  `default_vat_code` varchar(10) DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT '0',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `fk_user` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_customer_price_log`
--




--
-- Table structure for table `B67171959_product_extrafields`
--
CREATE TABLE `B67171959_product_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_product_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_extrafields`
--




--
-- Table structure for table `B67171959_product_fournisseur_price`
--
CREATE TABLE `B67171959_product_fournisseur_price` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_product` int(11) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `ref_fourn` varchar(30) DEFAULT NULL,
  `fk_availability` int(11) DEFAULT NULL,
  `price` double(24,8) DEFAULT '0.00000000',
  `quantity` double DEFAULT NULL,
  `remise_percent` double NOT NULL DEFAULT '0',
  `remise` double NOT NULL DEFAULT '0',
  `unitprice` double(24,8) DEFAULT '0.00000000',
  `charges` double(24,8) DEFAULT '0.00000000',
  `unitcharges` double(24,8) DEFAULT '0.00000000',
  `default_vat_code` varchar(10) DEFAULT NULL,
  `tva_tx` double(6,3) NOT NULL,
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `info_bits` int(11) NOT NULL DEFAULT '0',
  `fk_user` int(11) DEFAULT NULL,
  `fk_supplier_price_expression` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `delivery_time_days` int(11) DEFAULT NULL,
  `supplier_reputation` varchar(10) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_price` double(24,8) DEFAULT NULL,
  `multicurrency_price_ttc` double(24,8) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_fournisseur_price_ref` (`ref_fourn`,`fk_soc`,`quantity`,`entity`),
  KEY `idx_product_fournisseur_price_fk_user` (`fk_user`),
  KEY `idx_product_fourn_price_fk_product` (`fk_product`,`entity`),
  KEY `idx_product_fourn_price_fk_soc` (`fk_soc`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_fournisseur_price`
--




--
-- Table structure for table `B67171959_product_fournisseur_price_log`
--
CREATE TABLE `B67171959_product_fournisseur_price_log` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `fk_product_fournisseur` int(11) NOT NULL,
  `price` double(24,8) DEFAULT '0.00000000',
  `quantity` double DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_price` double(24,8) DEFAULT NULL,
  `multicurrency_price_ttc` double(24,8) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_fournisseur_price_log`
--




--
-- Table structure for table `B67171959_product_lang`
--
CREATE TABLE `B67171959_product_lang` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_product` int(11) NOT NULL DEFAULT '0',
  `lang` varchar(5) NOT NULL DEFAULT '0',
  `label` varchar(255) NOT NULL,
  `description` text,
  `note` text,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_lang` (`fk_product`,`lang`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_lang`
--




--
-- Table structure for table `B67171959_product_lot`
--
CREATE TABLE `B67171959_product_lot` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT '1',
  `fk_product` int(11) NOT NULL,
  `batch` varchar(30) DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_lot` (`fk_product`,`batch`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_lot`
--




--
-- Table structure for table `B67171959_product_lot_extrafields`
--
CREATE TABLE `B67171959_product_lot_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_product_lot_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_lot_extrafields`
--




--
-- Table structure for table `B67171959_product_price`
--
CREATE TABLE `B67171959_product_price` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_product` int(11) NOT NULL,
  `date_price` datetime NOT NULL,
  `price_level` smallint(6) DEFAULT '1',
  `price` double(24,8) DEFAULT NULL,
  `price_ttc` double(24,8) DEFAULT NULL,
  `price_min` double(24,8) DEFAULT NULL,
  `price_min_ttc` double(24,8) DEFAULT NULL,
  `price_base_type` varchar(3) DEFAULT 'HT',
  `default_vat_code` varchar(10) DEFAULT NULL,
  `tva_tx` double(6,3) NOT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT '0',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `fk_user_author` int(11) DEFAULT NULL,
  `tosell` tinyint(4) DEFAULT '1',
  `price_by_qty` int(11) NOT NULL DEFAULT '0',
  `fk_price_expression` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_price` double(24,8) DEFAULT NULL,
  `multicurrency_price_ttc` double(24,8) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_product_price_fk_user_author` (`fk_user_author`),
  KEY `idx_product_price_fk_product` (`fk_product`),
  CONSTRAINT `fk_product_price_product` FOREIGN KEY (`fk_user_author`) REFERENCES `B67171959_user` (`rowid`),
  CONSTRAINT `fk_product_price_user_author` FOREIGN KEY (`fk_product`) REFERENCES `B67171959_product` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_price`
--




--
-- Table structure for table `B67171959_product_price_by_qty`
--
CREATE TABLE `B67171959_product_price_by_qty` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_product_price` int(11) NOT NULL,
  `price` double(24,8) DEFAULT '0.00000000',
  `price_base_type` varchar(3) DEFAULT 'HT',
  `quantity` double DEFAULT NULL,
  `remise_percent` double NOT NULL DEFAULT '0',
  `remise` double NOT NULL DEFAULT '0',
  `unitprice` double(24,8) DEFAULT '0.00000000',
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_price` double(24,8) DEFAULT NULL,
  `multicurrency_price_ttc` double(24,8) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_price_by_qty_level` (`fk_product_price`,`quantity`),
  KEY `idx_product_price_by_qty_fk_product_price` (`fk_product_price`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_price_by_qty`
--




--
-- Table structure for table `B67171959_product_pricerules`
--
CREATE TABLE `B67171959_product_pricerules` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `level` int(11) NOT NULL,
  `fk_level` int(11) NOT NULL,
  `var_percent` float NOT NULL,
  `var_min_percent` float NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `unique_level` (`level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_pricerules`
--




--
-- Table structure for table `B67171959_product_stock`
--
CREATE TABLE `B67171959_product_stock` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_product` int(11) NOT NULL,
  `fk_entrepot` int(11) NOT NULL,
  `reel` double DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_stock` (`fk_product`,`fk_entrepot`),
  KEY `idx_product_stock_fk_product` (`fk_product`),
  KEY `idx_product_stock_fk_entrepot` (`fk_entrepot`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_stock`
--




--
-- Table structure for table `B67171959_product_warehouse_properties`
--
CREATE TABLE `B67171959_product_warehouse_properties` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_product` int(11) NOT NULL,
  `fk_entrepot` int(11) NOT NULL,
  `seuil_stock_alerte` int(11) DEFAULT '0',
  `desiredstock` int(11) DEFAULT '0',
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_product_warehouse_properties`
--




--
-- Table structure for table `B67171959_projet`
--
CREATE TABLE `B67171959_projet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_soc` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `dateo` date DEFAULT NULL,
  `datee` date DEFAULT NULL,
  `ref` varchar(50) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `title` varchar(255) NOT NULL,
  `description` text,
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `public` int(11) DEFAULT NULL,
  `fk_statut` int(11) NOT NULL DEFAULT '0',
  `fk_opp_status` int(11) DEFAULT NULL,
  `opp_percent` double(5,2) DEFAULT NULL,
  `date_close` datetime DEFAULT NULL,
  `fk_user_close` int(11) DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `opp_amount` double(24,8) DEFAULT NULL,
  `budget_amount` double(24,8) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_projet_ref` (`ref`,`entity`),
  KEY `idx_projet_fk_soc` (`fk_soc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_projet`
--




--
-- Table structure for table `B67171959_projet_extrafields`
--
CREATE TABLE `B67171959_projet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_projet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_projet_extrafields`
--




--
-- Table structure for table `B67171959_projet_task`
--
CREATE TABLE `B67171959_projet_task` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(50) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_projet` int(11) NOT NULL,
  `fk_task_parent` int(11) NOT NULL DEFAULT '0',
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `dateo` datetime DEFAULT NULL,
  `datee` datetime DEFAULT NULL,
  `datev` datetime DEFAULT NULL,
  `label` varchar(255) NOT NULL,
  `description` text,
  `duration_effective` double DEFAULT '0',
  `planned_workload` double DEFAULT '0',
  `progress` int(11) DEFAULT '0',
  `priority` int(11) DEFAULT '0',
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT '0',
  `note_private` text,
  `note_public` text,
  `rang` int(11) DEFAULT '0',
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_projet_task_ref` (`ref`,`entity`),
  KEY `idx_projet_task_fk_projet` (`fk_projet`),
  KEY `idx_projet_task_fk_user_creat` (`fk_user_creat`),
  KEY `idx_projet_task_fk_user_valid` (`fk_user_valid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_projet_task`
--




--
-- Table structure for table `B67171959_projet_task_extrafields`
--
CREATE TABLE `B67171959_projet_task_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_projet_task_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_projet_task_extrafields`
--




--
-- Table structure for table `B67171959_projet_task_time`
--
CREATE TABLE `B67171959_projet_task_time` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_task` int(11) NOT NULL,
  `task_date` date DEFAULT NULL,
  `task_datehour` datetime DEFAULT NULL,
  `task_date_withhour` int(11) DEFAULT '0',
  `task_duration` double DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `thm` double(24,8) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `invoice_line_id` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `datec` date DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `note` text,
  PRIMARY KEY (`rowid`),
  KEY `idx_projet_task_time_task` (`fk_task`),
  KEY `idx_projet_task_time_date` (`task_date`),
  KEY `idx_projet_task_time_datehour` (`task_datehour`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_projet_task_time`
--




--
-- Table structure for table `B67171959_propal`
--
CREATE TABLE `B67171959_propal` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `ref_client` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `fin_validite` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_cloture` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_cloture` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT '0',
  `price` double DEFAULT '0',
  `remise_percent` double DEFAULT '0',
  `remise_absolue` double DEFAULT '0',
  `remise` double DEFAULT '0',
  `total_ht` double(24,8) DEFAULT '0.00000000',
  `tva` double(24,8) DEFAULT '0.00000000',
  `localtax1` double(24,8) DEFAULT '0.00000000',
  `localtax2` double(24,8) DEFAULT '0.00000000',
  `total` double(24,8) DEFAULT '0.00000000',
  `fk_account` int(11) DEFAULT NULL,
  `fk_currency` varchar(3) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `date_livraison` date DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `fk_availability` int(11) DEFAULT NULL,
  `fk_input_reason` int(11) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_delivery_address` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_propal_ref` (`ref`,`entity`),
  KEY `idx_propal_fk_soc` (`fk_soc`),
  KEY `idx_propal_fk_user_author` (`fk_user_author`),
  KEY `idx_propal_fk_user_valid` (`fk_user_valid`),
  KEY `idx_propal_fk_user_cloture` (`fk_user_cloture`),
  KEY `idx_propal_fk_projet` (`fk_projet`),
  KEY `idx_propal_fk_account` (`fk_account`),
  KEY `idx_propal_fk_currency` (`fk_currency`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_propal`
--




--
-- Table structure for table `B67171959_propal_extrafields`
--
CREATE TABLE `B67171959_propal_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_propal_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_propal_extrafields`
--




--
-- Table structure for table `B67171959_propal_merge_pdf_product`
--
CREATE TABLE `B67171959_propal_merge_pdf_product` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_product` int(11) NOT NULL,
  `file_name` varchar(200) NOT NULL,
  `lang` varchar(5) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_mod` int(11) NOT NULL,
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_propal_merge_pdf_product`
--




--
-- Table structure for table `B67171959_propaldet`
--
CREATE TABLE `B67171959_propaldet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_propal` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text,
  `fk_remise_except` int(11) DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `tva_tx` double(6,3) DEFAULT '0.000',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT '0',
  `remise` double DEFAULT '0',
  `price` double DEFAULT NULL,
  `subprice` double(24,8) DEFAULT '0.00000000',
  `total_ht` double(24,8) DEFAULT '0.00000000',
  `total_tva` double(24,8) DEFAULT '0.00000000',
  `total_localtax1` double(24,8) DEFAULT '0.00000000',
  `total_localtax2` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT '0.00000000',
  `product_type` int(11) DEFAULT '0',
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int(11) DEFAULT '0',
  `buy_price_ht` double(24,8) DEFAULT '0.00000000',
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `special_code` int(11) DEFAULT '0',
  `rang` int(11) DEFAULT '0',
  `fk_unit` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`),
  KEY `idx_propaldet_fk_propal` (`fk_propal`),
  KEY `idx_propaldet_fk_product` (`fk_product`),
  KEY `fk_propaldet_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_propaldet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `B67171959_c_units` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_propaldet`
--




--
-- Table structure for table `B67171959_propaldet_extrafields`
--
CREATE TABLE `B67171959_propaldet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_propaldet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_propaldet_extrafields`
--




--
-- Table structure for table `B67171959_resource`
--
CREATE TABLE `B67171959_resource` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref` varchar(255) DEFAULT NULL,
  `asset_number` varchar(255) DEFAULT NULL,
  `description` text,
  `fk_code_type_resource` varchar(32) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT '0',
  `note_public` text,
  `note_private` text,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_country` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_resource_ref` (`ref`,`entity`),
  KEY `fk_code_type_resource_idx` (`fk_code_type_resource`),
  KEY `idx_resource_fk_country` (`fk_country`),
  CONSTRAINT `fk_resource_fk_country` FOREIGN KEY (`fk_country`) REFERENCES `B67171959_c_country` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_resource`
--




--
-- Table structure for table `B67171959_resource_extrafields`
--
CREATE TABLE `B67171959_resource_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_resource_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_resource_extrafields`
--




--
-- Table structure for table `B67171959_rights_def`
--
CREATE TABLE `B67171959_rights_def` (
  `id` int(11) NOT NULL,
  `libelle` varchar(255) DEFAULT NULL,
  `module` varchar(64) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `perms` varchar(50) DEFAULT NULL,
  `subperms` varchar(50) DEFAULT NULL,
  `type` varchar(1) DEFAULT NULL,
  `bydefault` tinyint(4) DEFAULT '0',
  PRIMARY KEY (`id`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_rights_def`
--
INSERT INTO `B67171959_rights_def` VALUES (251,'Consulter les autres utilisateurs','user',1,'user','lire','r',0);
INSERT INTO `B67171959_rights_def` VALUES (252,'Consulter les permissions des autres utilisateurs','user',1,'user_advance','readperms','r',0);
INSERT INTO `B67171959_rights_def` VALUES (253,'Creer/modifier utilisateurs internes et externes','user',1,'user','creer','w',0);
INSERT INTO `B67171959_rights_def` VALUES (254,'Creer/modifier utilisateurs externes seulement','user',1,'user_advance','write','w',0);

INSERT INTO `B67171959_rights_def` VALUES (256,'Supprimer ou desactiver les autres utilisateurs','user',1,'user','supprimer','d',0);
INSERT INTO `B67171959_rights_def` VALUES (341,'Consulter ses propres permissions','user',1,'self_advance','readperms','r',0);
INSERT INTO `B67171959_rights_def` VALUES (342,'Creer/modifier ses propres infos utilisateur','user',1,'self','creer','w',0);

INSERT INTO `B67171959_rights_def` VALUES (344,'Modifier ses propres permissions','user',1,'self_advance','writeperms','w',0);
INSERT INTO `B67171959_rights_def` VALUES (351,'Consulter les groupes','user',1,'group_advance','read','r',0);
INSERT INTO `B67171959_rights_def` VALUES (352,'Consulter les permissions des groupes','user',1,'group_advance','readperms','r',0);
INSERT INTO `B67171959_rights_def` VALUES (353,'Creer/modifier les groupes et leurs permissions','user',1,'group_advance','write','w',0);
INSERT INTO `B67171959_rights_def` VALUES (354,'Supprimer ou desactiver les groupes','user',1,'group_advance','delete','d',0);
INSERT INTO `B67171959_rights_def` VALUES (358,'Exporter les utilisateurs','user',1,'user','export','r',0);




--
-- Table structure for table `B67171959_societe`
--
CREATE TABLE `B67171959_societe` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `nom` varchar(128) DEFAULT NULL,
  `name_alias` varchar(128) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `statut` tinyint(4) DEFAULT '0',
  `parent` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `status` tinyint(4) DEFAULT '1',
  `code_client` varchar(24) DEFAULT NULL,
  `code_fournisseur` varchar(24) DEFAULT NULL,
  `code_compta` varchar(24) DEFAULT NULL,
  `code_compta_fournisseur` varchar(24) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_departement` int(11) DEFAULT '0',
  `fk_pays` int(11) DEFAULT '0',
  `fk_account` int(11) DEFAULT '0',
  `phone` varchar(20) DEFAULT NULL,
  `fax` varchar(20) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `email` varchar(128) DEFAULT NULL,
  `skype` varchar(255) DEFAULT NULL,
  `fk_effectif` int(11) DEFAULT '0',
  `fk_typent` int(11) DEFAULT '0',
  `fk_forme_juridique` int(11) DEFAULT '0',
  `fk_currency` varchar(3) DEFAULT NULL,
  `siren` varchar(128) DEFAULT NULL,
  `siret` varchar(128) DEFAULT NULL,
  `ape` varchar(128) DEFAULT NULL,
  `idprof4` varchar(128) DEFAULT NULL,
  `idprof5` varchar(128) DEFAULT NULL,
  `idprof6` varchar(128) DEFAULT NULL,
  `tva_intra` varchar(20) DEFAULT NULL,
  `capital` double(24,8) DEFAULT NULL,
  `fk_stcomm` int(11) NOT NULL DEFAULT '0',
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `prefix_comm` varchar(5) DEFAULT NULL,
  `client` tinyint(4) DEFAULT '0',
  `fournisseur` tinyint(4) DEFAULT '0',
  `supplier_account` varchar(32) DEFAULT NULL,
  `fk_prospectlevel` varchar(12) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `customer_bad` tinyint(4) DEFAULT '0',
  `customer_rate` double DEFAULT '0',
  `supplier_rate` double DEFAULT '0',
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `remise_client` double DEFAULT '0',
  `mode_reglement` tinyint(4) DEFAULT NULL,
  `cond_reglement` tinyint(4) DEFAULT NULL,
  `mode_reglement_supplier` tinyint(4) DEFAULT NULL,
  `cond_reglement_supplier` tinyint(4) DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `tva_assuj` tinyint(4) DEFAULT '1',
  `localtax1_assuj` tinyint(4) DEFAULT '0',
  `localtax1_value` double(6,3) DEFAULT NULL,
  `localtax2_assuj` tinyint(4) DEFAULT '0',
  `localtax2_value` double(6,3) DEFAULT NULL,
  `barcode` varchar(180) DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT '0',
  `price_level` int(11) DEFAULT NULL,
  `outstanding_limit` double(24,8) DEFAULT NULL,
  `default_lang` varchar(6) DEFAULT NULL,
  `logo` varchar(255) DEFAULT NULL,
  `canvas` varchar(32) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `webservices_url` varchar(255) DEFAULT NULL,
  `webservices_key` varchar(128) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_societe_prefix_comm` (`prefix_comm`,`entity`),
  UNIQUE KEY `uk_societe_code_client` (`code_client`,`entity`),
  UNIQUE KEY `uk_societe_code_fournisseur` (`code_fournisseur`,`entity`),
  UNIQUE KEY `uk_societe_barcode` (`barcode`,`fk_barcode_type`,`entity`),
  KEY `idx_societe_user_creat` (`fk_user_creat`),
  KEY `idx_societe_user_modif` (`fk_user_modif`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_societe`
--




--
-- Table structure for table `B67171959_societe_address`
--
CREATE TABLE `B67171959_societe_address` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `label` varchar(30) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT '0',
  `name` varchar(60) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(10) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_pays` int(11) DEFAULT '0',
  `phone` varchar(20) DEFAULT NULL,
  `fax` varchar(20) DEFAULT NULL,
  `note` text,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_societe_address`
--




--
-- Table structure for table `B67171959_societe_commerciaux`
--
CREATE TABLE `B67171959_societe_commerciaux` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_societe_commerciaux` (`fk_soc`,`fk_user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_societe_commerciaux`
--




--
-- Table structure for table `B67171959_societe_extrafields`
--
CREATE TABLE `B67171959_societe_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_societe_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_societe_extrafields`
--




--
-- Table structure for table `B67171959_societe_log`
--
CREATE TABLE `B67171959_societe_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datel` datetime DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_statut` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `author` varchar(30) DEFAULT NULL,
  `label` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_societe_log`
--




--
-- Table structure for table `B67171959_societe_prices`
--
CREATE TABLE `B67171959_societe_prices` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_soc` int(11) DEFAULT '0',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `price_level` tinyint(4) DEFAULT '1',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_societe_prices`
--




--
-- Table structure for table `B67171959_societe_remise`
--
CREATE TABLE `B67171959_societe_remise` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_soc` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `remise_client` double(6,3) NOT NULL DEFAULT '0.000',
  `note` text,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_societe_remise`
--




--
-- Table structure for table `B67171959_societe_remise_except`
--
CREATE TABLE `B67171959_societe_remise_except` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `amount_ht` double(24,8) NOT NULL,
  `amount_tva` double(24,8) NOT NULL DEFAULT '0.00000000',
  `amount_ttc` double(24,8) NOT NULL DEFAULT '0.00000000',
  `tva_tx` double(6,3) NOT NULL DEFAULT '0.000',
  `fk_user` int(11) NOT NULL,
  `fk_facture_line` int(11) DEFAULT NULL,
  `fk_facture` int(11) DEFAULT NULL,
  `fk_facture_source` int(11) DEFAULT NULL,
  `fk_invoice_supplier_line` int(11) DEFAULT NULL,
  `fk_invoice_supplier` int(11) DEFAULT NULL,
  `fk_invoice_supplier_source` int(11) DEFAULT NULL,
  `description` text NOT NULL,
  `multicurrency_amount_ht` double(24,8) NOT NULL DEFAULT '0.00000000',
  `multicurrency_amount_tva` double(24,8) NOT NULL DEFAULT '0.00000000',
  `multicurrency_amount_ttc` double(24,8) NOT NULL DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`),
  KEY `idx_societe_remise_except_fk_user` (`fk_user`),
  KEY `idx_societe_remise_except_fk_soc` (`fk_soc`),
  KEY `idx_societe_remise_except_fk_facture_line` (`fk_facture_line`),
  KEY `idx_societe_remise_except_fk_facture` (`fk_facture`),
  KEY `idx_societe_remise_except_fk_facture_source` (`fk_facture_source`),
  KEY `fk_soc_remise_fk_invoice_supplier_line` (`fk_invoice_supplier_line`),
  KEY `fk_societe_remise_fk_invoice_supplier_source` (`fk_invoice_supplier`),
  CONSTRAINT `fk_societe_remise_fk_invoice_supplier_source` FOREIGN KEY (`fk_invoice_supplier`) REFERENCES `B67171959_facture_fourn` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_invoice_supplier` FOREIGN KEY (`fk_invoice_supplier`) REFERENCES `B67171959_facture_fourn` (`rowid`),
  CONSTRAINT `fk_soc_remise_fk_facture_line` FOREIGN KEY (`fk_facture_line`) REFERENCES `B67171959_facturedet` (`rowid`),
  CONSTRAINT `fk_soc_remise_fk_invoice_supplier_line` FOREIGN KEY (`fk_invoice_supplier_line`) REFERENCES `B67171959_facture_fourn_det` (`rowid`),
  CONSTRAINT `fk_soc_remise_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `B67171959_societe` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_societe_remise_except`
--




--
-- Table structure for table `B67171959_societe_rib`
--
CREATE TABLE `B67171959_societe_rib` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `label` varchar(30) DEFAULT NULL,
  `bank` varchar(255) DEFAULT NULL,
  `code_banque` varchar(128) DEFAULT NULL,
  `code_guichet` varchar(6) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `cle_rib` varchar(5) DEFAULT NULL,
  `bic` varchar(20) DEFAULT NULL,
  `iban_prefix` varchar(34) DEFAULT NULL,
  `domiciliation` varchar(255) DEFAULT NULL,
  `proprio` varchar(60) DEFAULT NULL,
  `owner_address` varchar(255) DEFAULT NULL,
  `default_rib` smallint(6) NOT NULL DEFAULT '0',
  `rum` varchar(32) DEFAULT NULL,
  `date_rum` date DEFAULT NULL,
  `frstrecur` varchar(16) DEFAULT 'FRST',
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_societe_rib` (`label`,`fk_soc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_societe_rib`
--




--
-- Table structure for table `B67171959_socpeople`
--
CREATE TABLE `B67171959_socpeople` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_soc` int(11) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) DEFAULT NULL,
  `civility` varchar(6) DEFAULT NULL,
  `lastname` varchar(50) DEFAULT NULL,
  `firstname` varchar(50) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` varchar(255) DEFAULT NULL,
  `fk_departement` int(11) DEFAULT NULL,
  `fk_pays` int(11) DEFAULT '0',
  `birthday` date DEFAULT NULL,
  `poste` varchar(80) DEFAULT NULL,
  `phone` varchar(30) DEFAULT NULL,
  `phone_perso` varchar(30) DEFAULT NULL,
  `phone_mobile` varchar(30) DEFAULT NULL,
  `fax` varchar(30) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `jabberid` varchar(255) DEFAULT NULL,
  `skype` varchar(255) DEFAULT NULL,
  `photo` varchar(255) DEFAULT NULL,
  `no_email` smallint(6) NOT NULL DEFAULT '0',
  `priv` smallint(6) NOT NULL DEFAULT '0',
  `fk_user_creat` int(11) DEFAULT '0',
  `fk_user_modif` int(11) DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `default_lang` varchar(6) DEFAULT NULL,
  `canvas` varchar(32) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `statut` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`),
  KEY `idx_socpeople_fk_soc` (`fk_soc`),
  KEY `idx_socpeople_fk_user_creat` (`fk_user_creat`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_socpeople`
--




--
-- Table structure for table `B67171959_socpeople_extrafields`
--
CREATE TABLE `B67171959_socpeople_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_socpeople_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_socpeople_extrafields`
--




--
-- Table structure for table `B67171959_stock_mouvement`
--
CREATE TABLE `B67171959_stock_mouvement` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datem` datetime DEFAULT NULL,
  `fk_product` int(11) NOT NULL,
  `batch` varchar(30) DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `fk_entrepot` int(11) NOT NULL,
  `value` double DEFAULT NULL,
  `price` double(24,8) DEFAULT '0.00000000',
  `type_mouvement` smallint(6) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `inventorycode` varchar(128) DEFAULT NULL,
  `fk_origin` int(11) DEFAULT NULL,
  `origintype` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_stock_mouvement_fk_product` (`fk_product`),
  KEY `idx_stock_mouvement_fk_entrepot` (`fk_entrepot`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_stock_mouvement`
--




--
-- Table structure for table `B67171959_subscription`
--
CREATE TABLE `B67171959_subscription` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `fk_adherent` int(11) DEFAULT NULL,
  `dateadh` datetime DEFAULT NULL,
  `datef` date DEFAULT NULL,
  `subscription` double(24,8) DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `note` text,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_subscription` (`fk_adherent`,`dateadh`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_subscription`
--




--
-- Table structure for table `B67171959_supplier_proposal`
--
CREATE TABLE `B67171959_supplier_proposal` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_cloture` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_cloture` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT '0',
  `price` double DEFAULT '0',
  `remise_percent` double DEFAULT '0',
  `remise_absolue` double DEFAULT '0',
  `remise` double DEFAULT '0',
  `total_ht` double(24,8) DEFAULT '0.00000000',
  `tva` double(24,8) DEFAULT '0.00000000',
  `localtax1` double(24,8) DEFAULT '0.00000000',
  `localtax2` double(24,8) DEFAULT '0.00000000',
  `total` double(24,8) DEFAULT '0.00000000',
  `fk_account` int(11) DEFAULT NULL,
  `fk_currency` varchar(3) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `date_livraison` date DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_supplier_proposal`
--




--
-- Table structure for table `B67171959_supplier_proposal_extrafields`
--
CREATE TABLE `B67171959_supplier_proposal_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_supplier_proposal_extrafields`
--




--
-- Table structure for table `B67171959_supplier_proposaldet`
--
CREATE TABLE `B67171959_supplier_proposaldet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_supplier_proposal` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text,
  `fk_remise_except` int(11) DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `tva_tx` double(6,3) DEFAULT '0.000',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT '0',
  `remise` double DEFAULT '0',
  `price` double DEFAULT NULL,
  `subprice` double(24,8) DEFAULT '0.00000000',
  `total_ht` double(24,8) DEFAULT '0.00000000',
  `total_tva` double(24,8) DEFAULT '0.00000000',
  `total_localtax1` double(24,8) DEFAULT '0.00000000',
  `total_localtax2` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT '0.00000000',
  `product_type` int(11) DEFAULT '0',
  `info_bits` int(11) DEFAULT '0',
  `buy_price_ht` double(24,8) DEFAULT '0.00000000',
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `special_code` int(11) DEFAULT '0',
  `rang` int(11) DEFAULT '0',
  `ref_fourn` varchar(30) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ht` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_tva` double(24,8) DEFAULT '0.00000000',
  `multicurrency_total_ttc` double(24,8) DEFAULT '0.00000000',
  `fk_unit` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_supplier_proposaldet_fk_supplier_proposal` (`fk_supplier_proposal`),
  KEY `idx_supplier_proposaldet_fk_product` (`fk_product`),
  KEY `fk_supplier_proposaldet_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_supplier_proposaldet_fk_supplier_proposal` FOREIGN KEY (`fk_supplier_proposal`) REFERENCES `B67171959_supplier_proposal` (`rowid`),
  CONSTRAINT `fk_supplier_proposaldet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `B67171959_c_units` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_supplier_proposaldet`
--




--
-- Table structure for table `B67171959_supplier_proposaldet_extrafields`
--
CREATE TABLE `B67171959_supplier_proposaldet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_supplier_proposaldet_extrafields`
--




--
-- Table structure for table `B67171959_tva`
--
CREATE TABLE `B67171959_tva` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `amount` double(24,8) NOT NULL DEFAULT '0.00000000',
  `fk_typepayment` int(11) DEFAULT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `note` text,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_tva`
--




--
-- Table structure for table `B67171959_user`
--
CREATE TABLE `B67171959_user` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_ext` varchar(50) DEFAULT NULL,
  `ref_int` varchar(50) DEFAULT NULL,
  `employee` tinyint(4) DEFAULT '1',
  `fk_establishment` int(11) DEFAULT '0',
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `login` varchar(50) NOT NULL,
  `pass_encoding` varchar(24) DEFAULT NULL,
  `pass` varchar(128) DEFAULT NULL,
  `pass_crypted` varchar(128) DEFAULT NULL,
  `pass_temp` varchar(128) DEFAULT NULL,
  `api_key` varchar(128) DEFAULT NULL,
  `gender` varchar(10) DEFAULT NULL,
  `civility` varchar(6) DEFAULT NULL,
  `lastname` varchar(50) DEFAULT NULL,
  `firstname` varchar(50) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_state` int(11) DEFAULT '0',
  `fk_country` int(11) DEFAULT '0',
  `birth` date DEFAULT NULL,
  `job` varchar(128) DEFAULT NULL,
  `skype` varchar(255) DEFAULT NULL,
  `office_phone` varchar(20) DEFAULT NULL,
  `office_fax` varchar(20) DEFAULT NULL,
  `user_mobile` varchar(20) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `signature` text,
  `admin` smallint(6) DEFAULT '0',
  `module_comm` smallint(6) DEFAULT '1',
  `module_compta` smallint(6) DEFAULT '1',
  `fk_soc` int(11) DEFAULT NULL,
  `fk_socpeople` int(11) DEFAULT NULL,
  `fk_member` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `note_public` text,
  `note` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `datelastlogin` datetime DEFAULT NULL,
  `datepreviouslogin` datetime DEFAULT NULL,
  `egroupware_id` int(11) DEFAULT NULL,
  `ldap_sid` varchar(255) DEFAULT NULL,
  `openid` varchar(255) DEFAULT NULL,
  `statut` tinyint(4) DEFAULT '1',
  `photo` varchar(255) DEFAULT NULL,
  `lang` varchar(6) DEFAULT NULL,
  `color` varchar(6) DEFAULT NULL,
  `barcode` varchar(255) DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT '0',
  `accountancy_code` varchar(32) DEFAULT NULL,
  `nb_holiday` int(11) DEFAULT '0',
  `thm` double(24,8) DEFAULT NULL,
  `tjm` double(24,8) DEFAULT NULL,
  `salary` double(24,8) DEFAULT NULL,
  `salaryextra` double(24,8) DEFAULT NULL,
  `dateemployment` date DEFAULT NULL,
  `weeklyhours` double(16,8) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `default_range` int(11) DEFAULT NULL,
  `default_c_exp_tax_cat` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_user_login` (`login`,`entity`),
  UNIQUE KEY `uk_user_fk_socpeople` (`fk_socpeople`),
  UNIQUE KEY `uk_user_fk_member` (`fk_member`),
  UNIQUE KEY `uk_user_api_key` (`api_key`),
  KEY `idx_user_fk_societe` (`fk_soc`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_user`
--
INSERT INTO `B67171959_user` VALUES (1,0,NULL,NULL,1,0,'2018-02-23 19:26:43','2018-02-23 18:59:59',NULL,NULL,'root',NULL,NULL,'42ef6d78229542a0c2e45e43c9982b0fc984d8c7',NULL,NULL,'',NULL,'SuperAdmin','','','','',NULL,NULL,NULL,'','','','','','','',1,1,1,NULL,NULL,NULL,NULL,NULL,'',NULL,'2018-02-23 19:27:31',NULL,NULL,'',NULL,1,NULL,NULL,'',NULL,0,'',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);




--
-- Table structure for table `B67171959_user_alert`
--
CREATE TABLE `B67171959_user_alert` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `type` int(11) DEFAULT NULL,
  `fk_contact` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_user_alert`
--




--
-- Table structure for table `B67171959_user_clicktodial`
--
CREATE TABLE `B67171959_user_clicktodial` (
  `fk_user` int(11) NOT NULL,
  `url` varchar(255) DEFAULT NULL,
  `login` varchar(32) DEFAULT NULL,
  `pass` varchar(64) DEFAULT NULL,
  `poste` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`fk_user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_user_clicktodial`
--




--
-- Table structure for table `B67171959_user_employment`
--
CREATE TABLE `B67171959_user_employment` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref` varchar(50) DEFAULT NULL,
  `ref_ext` varchar(50) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `job` varchar(128) DEFAULT NULL,
  `status` int(11) NOT NULL,
  `salary` double(24,8) DEFAULT NULL,
  `salaryextra` double(24,8) DEFAULT NULL,
  `weeklyhours` double(16,8) DEFAULT NULL,
  `dateemployment` date DEFAULT NULL,
  `dateemploymentend` date DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_user_employment` (`ref`,`entity`),
  KEY `fk_user_employment_fk_user` (`fk_user`),
  CONSTRAINT `fk_user_employment_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `B67171959_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_user_employment`
--




--
-- Table structure for table `B67171959_user_extrafields`
--
CREATE TABLE `B67171959_user_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_user_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_user_extrafields`
--




--
-- Table structure for table `B67171959_user_param`
--
CREATE TABLE `B67171959_user_param` (
  `fk_user` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `param` varchar(180) NOT NULL,
  `value` text NOT NULL,
  UNIQUE KEY `uk_user_param` (`fk_user`,`param`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_user_param`
--




--
-- Table structure for table `B67171959_user_rib`
--
CREATE TABLE `B67171959_user_rib` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_user` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `label` varchar(30) DEFAULT NULL,
  `bank` varchar(255) DEFAULT NULL,
  `code_banque` varchar(128) DEFAULT NULL,
  `code_guichet` varchar(6) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `cle_rib` varchar(5) DEFAULT NULL,
  `bic` varchar(11) DEFAULT NULL,
  `iban_prefix` varchar(34) DEFAULT NULL,
  `domiciliation` varchar(255) DEFAULT NULL,
  `proprio` varchar(60) DEFAULT NULL,
  `owner_address` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_user_rib`
--




--
-- Table structure for table `B67171959_user_rights`
--
CREATE TABLE `B67171959_user_rights` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_user` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_user_rights` (`entity`,`fk_user`,`fk_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_user_rights`
--




--
-- Table structure for table `B67171959_usergroup`
--
CREATE TABLE `B67171959_usergroup` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `nom` varchar(180) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `note` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_usergroup_name` (`nom`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_usergroup`
--




--
-- Table structure for table `B67171959_usergroup_extrafields`
--
CREATE TABLE `B67171959_usergroup_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_usergroup_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_usergroup_extrafields`
--




--
-- Table structure for table `B67171959_usergroup_rights`
--
CREATE TABLE `B67171959_usergroup_rights` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_usergroup` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_usergroup_rights` (`entity`,`fk_usergroup`,`fk_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_usergroup_rights`
--




--
-- Table structure for table `B67171959_usergroup_user`
--
CREATE TABLE `B67171959_usergroup_user` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_user` int(11) NOT NULL,
  `fk_usergroup` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_usergroup_user` (`entity`,`fk_user`,`fk_usergroup`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_usergroup_user`
--




--
-- Table structure for table `B67171959_website`
--
CREATE TABLE `B67171959_website` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `type_container` varchar(16) NOT NULL DEFAULT 'page',
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref` varchar(128) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `status` int(11) DEFAULT '1',
  `fk_default_home` int(11) DEFAULT NULL,
  `virtualhost` varchar(255) DEFAULT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_website_ref` (`ref`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_website`
--




--
-- Table structure for table `B67171959_website_account`
--
CREATE TABLE `B67171959_website_account` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `login` varchar(64) NOT NULL,
  `pass_encoding` varchar(24) NOT NULL,
  `pass_crypted` varchar(128) DEFAULT NULL,
  `pass_temp` varchar(128) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_website` int(11) NOT NULL,
  `note_private` text,
  `date_last_login` datetime DEFAULT NULL,
  `date_previous_login` datetime DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_website_account_login_website_soc` (`login`,`fk_website`,`fk_soc`),
  KEY `idx_website_account_rowid` (`rowid`),
  KEY `idx_website_account_login` (`login`),
  KEY `idx_website_account_status` (`status`),
  KEY `idx_website_account_fk_website` (`fk_website`),
  KEY `idx_website_account_fk_soc` (`fk_soc`),
  CONSTRAINT `B67171959_website_account_fk_website` FOREIGN KEY (`fk_website`) REFERENCES `B67171959_website` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_website_account`
--




--
-- Table structure for table `B67171959_website_account_extrafields`
--
CREATE TABLE `B67171959_website_account_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_website_account_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_website_account_extrafields`
--




--
-- Table structure for table `B67171959_website_extrafields`
--
CREATE TABLE `B67171959_website_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_website_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_website_extrafields`
--




--
-- Table structure for table `B67171959_website_page`
--
CREATE TABLE `B67171959_website_page` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_website` int(11) NOT NULL,
  `pageurl` varchar(255) NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `keywords` varchar(255) DEFAULT NULL,
  `lang` varchar(6) DEFAULT NULL,
  `fk_page` int(11) DEFAULT NULL,
  `htmlheader` text,
  `content` mediumtext,
  `status` int(11) DEFAULT '1',
  `grabbed_from` varchar(255) DEFAULT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_website_page_url` (`fk_website`,`pageurl`),
  CONSTRAINT `fk_website_page_website` FOREIGN KEY (`fk_website`) REFERENCES `B67171959_website` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `B67171959_website_page`
--




--
-- Table structure for table `clinica_import_model`
--
CREATE TABLE `clinica_import_model` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_user` int(11) NOT NULL DEFAULT '0',
  `label` varchar(50) NOT NULL,
  `type` varchar(20) NOT NULL,
  `field` text NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_import_model` (`label`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `clinica_import_model`
--







