-- Table structure for table `llx_c_ecotaxe`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_c_ecotaxe`
--

INSERT INTO `llx_c_ecotaxe` (`rowid`, `code`, `libelle`, `price`, `organization`, `fk_pays`, `active`) VALUES (1,'ER-A-A','Materiels electriques < 0,2kg',0.01000000,'ERP',1,1),(2,'ER-A-B','Materiels electriques >= 0,2 kg et < 0,5 kg',0.03000000,'ERP',1,1),(3,'ER-A-C','Materiels electriques >= 0,5 kg et < 1 kg',0.04000000,'ERP',1,1),(4,'ER-A-D','Materiels electriques >= 1 kg et < 2 kg',0.13000000,'ERP',1,1),(5,'ER-A-E','Materiels electriques >= 2 kg et < 4kg',0.21000000,'ERP',1,1),(6,'ER-A-F','Materiels electriques >= 4 kg et < 8 kg',0.42000000,'ERP',1,1),(7,'ER-A-G','Materiels electriques >= 8 kg et < 15 kg',0.84000000,'ERP',1,1),(8,'ER-A-H','Materiels electriques >= 15 kg et < 20 kg',1.25000000,'ERP',1,1),(9,'ER-A-I','Materiels electriques >= 20 kg et < 30 kg',1.88000000,'ERP',1,1),(10,'ER-A-J','Materiels electriques >= 30 kg',3.34000000,'ERP',1,1),(11,'ER-M-1','TV, Moniteurs < 9kg',0.84000000,'ERP',1,1),(12,'ER-M-2','TV, Moniteurs >= 9kg et < 15kg',1.67000000,'ERP',1,1),(13,'ER-M-3','TV, Moniteurs >= 15kg et < 30kg',3.34000000,'ERP',1,1),(14,'ER-M-4','TV, Moniteurs >= 30 kg',6.69000000,'ERP',1,1),(15,'EC-A-A','Materiels electriques  0,2 kg max',0.00840000,'Ecologic',1,1),(16,'EC-A-B','Materiels electriques 0,21 kg min - 0,50 kg max',0.02500000,'Ecologic',1,1),(17,'EC-A-C','Materiels electriques  0,51 kg min - 1 kg max',0.04000000,'Ecologic',1,1),(18,'EC-A-D','Materiels electriques  1,01 kg min - 2,5 kg max',0.13000000,'Ecologic',1,1),(19,'EC-A-E','Materiels electriques  2,51 kg min - 4 kg max',0.21000000,'Ecologic',1,1),(20,'EC-A-F','Materiels electriques 4,01 kg min - 8 kg max',0.42000000,'Ecologic',1,1),(21,'EC-A-G','Materiels electriques  8,01 kg min - 12 kg max',0.63000000,'Ecologic',1,1),(22,'EC-A-H','Materiels electriques 12,01 kg min - 20 kg max',1.05000000,'Ecologic',1,1),(23,'EC-A-I','Materiels electriques  20,01 kg min',1.88000000,'Ecologic',1,1),(24,'EC-M-1','TV, Moniteurs 9 kg max',0.84000000,'Ecologic',1,1),(25,'EC-M-2','TV, Moniteurs 9,01 kg min - 18 kg max',1.67000000,'Ecologic',1,1),(26,'EC-M-3','TV, Moniteurs 18,01 kg min - 36 kg max',3.34000000,'Ecologic',1,1),(27,'EC-M-4','TV, Moniteurs 36,01 kg min',6.69000000,'Ecologic',1,1),(28,'ES-M-1','TV, Moniteurs <= 20 pouces',0.84000000,'Eco-systemes',1,1),(29,'ES-M-2','TV, Moniteurs > 20 pouces et <= 32 pouces',3.34000000,'Eco-systemes',1,1),(30,'ES-M-3','TV, Moniteurs > 32 pouces et autres grands ecrans',6.69000000,'Eco-systemes',1,1),(31,'ES-A-A','Ordinateur fixe, Audio home systems (HIFI), elements hifi separes',0.84000000,'Eco-systemes',1,1),(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),(33,'ES-A-C','Imprimante, photocopieur, telecopieur',0.42000000,'Eco-systemes',1,1),(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),(35,'ES-A-E','GSM',0.00840000,'Eco-systemes',1,1),(36,'ES-A-F','Jouets et equipements de loisirs et de sports < 0,5 kg',0.04200000,'Eco-systemes',1,1),(37,'ES-A-G','Jouets et equipements de loisirs et de sports > 0,5 kg',0.17000000,'Eco-systemes',1,1),(38,'ES-A-H','Jouets et equipements de loisirs et de sports > 10 kg',1.25000000,'Eco-systemes',1,1);

--
-- Table structure for table `llx_c_effectif`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_c_effectif`
--

INSERT INTO `llx_c_effectif` (`id`, `code`, `libelle`, `active`, `module`) VALUES (0,'EF0','-',1,NULL),(1,'EF1-5','1 - 5',1,NULL),(2,'EF6-10','6 - 10',1,NULL),(3,'EF11-50','11 - 50',1,NULL),(4,'EF51-100','51 - 100',1,NULL),(5,'EF100-500','100 - 500',1,NULL),(6,'EF500-','> 500',1,NULL);

--
-- Table structure for table `llx_c_email_templates`
--

CREATE TABLE `llx_c_email_templates` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `type_template` varchar(32) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `content` text,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_c_email_templates`
--


--
-- Table structure for table `llx_c_field_list`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_c_field_list`
--


--
-- Table structure for table `llx_c_forme_juridique`
--

CREATE TABLE `llx_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,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_forme_juridique` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=192 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_c_forme_juridique`
--

INSERT INTO `llx_c_forme_juridique` (`rowid`, `code`, `fk_pays`, `libelle`, `isvatexempted`, `active`, `module`) VALUES (1,0,0,'-',0,1,NULL),(2,2301,23,'Monotributista',0,1,NULL),(3,2302,23,'Sociedad Civil',0,1,NULL),(4,2303,23,'Sociedades Comerciales',0,1,NULL),(5,2304,23,'Sociedades de Hecho',0,1,NULL),(6,2305,23,'Sociedades Irregulares',0,1,NULL),(7,2306,23,'Sociedad Colectiva',0,1,NULL),(8,2307,23,'Sociedad en Comandita Simple',0,1,NULL),(9,2308,23,'Sociedad de Capital e Industria',0,1,NULL),(10,2309,23,'Sociedad Accidental o en participación',0,1,NULL),(11,2310,23,'Sociedad de Responsabilidad Limitada',0,1,NULL),(12,2311,23,'Sociedad Anónima',0,1,NULL),(13,2312,23,'Sociedad Anónima con Participación Estatal Mayoritaria',0,1,NULL),(14,2313,23,'Sociedad en Comandita por Acciones (arts. 315 a 324, LSC)',0,1,NULL),(15,11,1,'Artisan Commerçant (EI)',0,1,NULL),(16,12,1,'Commerçant (EI)',0,1,NULL),(17,13,1,'Artisan (EI)',0,1,NULL),(18,14,1,'Officier public ou ministériel',0,1,NULL),(19,15,1,'Profession libérale (EI)',0,1,NULL),(20,16,1,'Exploitant agricole',0,1,NULL),(21,17,1,'Agent commercial',0,1,NULL),(22,18,1,'Associé Gérant de société',0,1,NULL),(23,19,1,'Personne physique',0,1,NULL),(24,21,1,'Indivision',0,1,NULL),(25,22,1,'Société créée de fait',0,1,NULL),(26,23,1,'Société en participation',0,1,NULL),(27,27,1,'Paroisse hors zone concordataire',0,1,NULL),(28,29,1,'Groupement de droit privé non doté de la personnalité morale',0,1,NULL),(29,31,1,'Personne morale de droit étranger, immatriculée au RCS',0,1,NULL),(30,32,1,'Personne morale de droit étranger, non immatriculée au RCS',0,1,NULL),(31,35,1,'Régime auto-entrepreneur',0,1,NULL),(32,41,1,'Établissement public ou régie à caractère industriel ou commercial',0,1,NULL),(33,51,1,'Société coopérative commerciale particulière',0,1,NULL),(34,52,1,'Société en nom collectif',0,1,NULL),(35,53,1,'Société en commandite',0,1,NULL),(36,54,1,'Société à responsabilité limitée (SARL)',0,1,NULL),(37,55,1,'Société anonyme à conseil d administration',0,1,NULL),(38,56,1,'Société anonyme à directoire',0,1,NULL),(39,57,1,'Société par actions simplifiée (SAS)',0,1,NULL),(40,58,1,'Entreprise Unipersonnelle à Responsabilité Limitée (EURL)',0,1,NULL),(41,59,1,'Société par actions simplifiée unipersonnelle (SASU)',0,1,NULL),(42,61,1,'Caisse d\'épargne et de prévoyance',0,1,NULL),(43,62,1,'Groupement d\'intérêt économique (GIE)',0,1,NULL),(44,63,1,'Société coopérative agricole',0,1,NULL),(45,64,1,'Société non commerciale d assurances',0,1,NULL),(46,65,1,'Société civile',0,1,NULL),(47,69,1,'Personnes de droit privé inscrites au RCS',0,1,NULL),(48,71,1,'Administration de l état',0,1,NULL),(49,72,1,'Collectivité territoriale',0,1,NULL),(50,73,1,'Établissement public administratif',0,1,NULL),(51,74,1,'Personne morale de droit public administratif',0,1,NULL),(52,81,1,'Organisme gérant régime de protection social à adhésion obligatoire',0,1,NULL),(53,82,1,'Organisme mutualiste',0,1,NULL),(54,83,1,'Comité d entreprise',0,1,NULL),(55,84,1,'Organisme professionnel',0,1,NULL),(56,85,1,'Organisme de retraite à adhésion non obligatoire',0,1,NULL),(57,91,1,'Syndicat de propriétaires',0,1,NULL),(58,92,1,'Association loi 1901 ou assimilé',0,1,NULL),(59,93,1,'Fondation',0,1,NULL),(60,99,1,'Personne morale de droit privé',0,1,NULL),(61,200,2,'Indépendant',0,1,NULL),(62,201,2,'SPRL - Société à responsabilité limitée',0,1,NULL),(63,202,2,'SA   - Société Anonyme',0,1,NULL),(64,203,2,'SCRL - Société coopérative à responsabilité limitée',0,1,NULL),(65,204,2,'ASBL - Association sans but Lucratif',0,1,NULL),(66,205,2,'SCRI - Société coopérative à responsabilité illimitée',0,1,NULL),(67,206,2,'SCS  - Société en commandite simple',0,1,NULL),(68,207,2,'SCA  - Société en commandite par action',0,1,NULL),(69,208,2,'SNC  - Société en nom collectif',0,1,NULL),(70,209,2,'GIE  - Groupement d intérêt économique',0,1,NULL),(71,210,2,'GEIE - Groupement européen d intérêt économique',0,1,NULL),(72,220,2,'Eenmanszaak',0,1,NULL),(73,221,2,'BVBA - Besloten vennootschap met beperkte aansprakelijkheid',0,1,NULL),(74,222,2,'NV   - Naamloze Vennootschap',0,1,NULL),(75,223,2,'CVBA - Coöperatieve vennootschap met beperkte aansprakelijkheid',0,1,NULL),(76,224,2,'VZW  - Vereniging zonder winstoogmerk',0,1,NULL),(77,225,2,'CVOA - Coöperatieve vennootschap met onbeperkte aansprakelijkheid ',0,1,NULL),(78,226,2,'GCV  - Gewone commanditaire vennootschap',0,1,NULL),(79,227,2,'Comm.VA - Commanditaire vennootschap op aandelen',0,1,NULL),(80,228,2,'VOF  - Vennootschap onder firma',0,1,NULL),(81,229,2,'VS0  - Vennootschap met sociaal oogmerk',0,1,NULL),(82,500,5,'GmbH - Gesellschaft mit beschränkter Haftung',0,1,NULL),(83,501,5,'AG - Aktiengesellschaft ',0,1,NULL),(84,502,5,'GmbH&Co. KG - Gesellschaft mit beschränkter Haftung & Compagnie Kommanditgesellschaft',0,1,NULL),(85,503,5,'Gewerbe - Personengesellschaft',0,1,NULL),(86,504,5,'UG - Unternehmergesellschaft -haftungsbeschränkt-',0,1,NULL),(87,505,5,'GbR - Gesellschaft des bürgerlichen Rechts',0,1,NULL),(88,506,5,'KG - Kommanditgesellschaft',0,1,NULL),(89,507,5,'Ltd. - Limited Company',0,1,NULL),(90,508,5,'OHG - Offene Handelsgesellschaft',0,1,NULL),(91,10201,102,'??????? ??????????',0,1,NULL),(92,10202,102,'????????  ??????????',0,1,NULL),(93,10203,102,'????????? ???????? ?.?',0,1,NULL),(94,10204,102,'??????????? ???????? ?.?',0,1,NULL),(95,10205,102,'???????? ????????????? ??????? ?.?.?',0,1,NULL),(96,10206,102,'??????? ???????? ?.?',0,1,NULL),(97,10207,102,'??????? ?????????? ???????? ?.?.?',0,1,NULL),(98,10208,102,'?????????????',0,1,NULL),(99,10209,102,'??????????????',0,1,NULL),(100,301,3,'Società semplice',0,1,NULL),(101,302,3,'Società in nome collettivo s.n.c.',0,1,NULL),(102,303,3,'Società in accomandita semplice s.a.s.',0,1,NULL),(103,304,3,'Società per azioni s.p.a.',0,1,NULL),(104,305,3,'Società a responsabilità limitata s.r.l.',0,1,NULL),(105,306,3,'Società in accomandita per azioni s.a.p.a.',0,1,NULL),(106,307,3,'Società cooperativa a r.l.',0,1,NULL),(107,308,3,'Società consortile',0,1,NULL),(108,309,3,'Società europea',0,1,NULL),(109,310,3,'Società cooperativa europea',0,1,NULL),(110,311,3,'Società unipersonale',0,1,NULL),(111,312,3,'Società di professionisti',0,1,NULL),(112,313,3,'Società di fatto',0,1,NULL),(113,315,3,'Società apparente',0,1,NULL),(114,316,3,'Impresa individuale ',0,1,NULL),(115,317,3,'Impresa coniugale',0,1,NULL),(116,318,3,'Impresa familiare',0,1,NULL),(117,319,3,'Consorzio cooperativo',0,1,NULL),(118,320,3,'Società cooperativa sociale',0,1,NULL),(119,321,3,'Società cooperativa di consumo',0,1,NULL),(120,322,3,'Società cooperativa agricola',0,1,NULL),(121,323,3,'A.T.I. Associazione temporanea di imprese',0,1,NULL),(122,324,3,'R.T.I. Raggruppamento temporaneo di imprese',0,1,NULL),(123,325,3,'Studio associato',0,1,NULL),(124,600,6,'Raison Individuelle',0,1,NULL),(125,601,6,'Société Simple',0,1,NULL),(126,602,6,'Société en nom collectif',0,1,NULL),(127,603,6,'Société en commandite',0,1,NULL),(128,604,6,'Société anonyme (SA)',0,1,NULL),(129,605,6,'Société en commandite par actions',0,1,NULL),(130,606,6,'Société à responsabilité limitée (SARL)',0,1,NULL),(131,607,6,'Société coopérative',0,1,NULL),(132,608,6,'Association',0,1,NULL),(133,609,6,'Fondation',0,1,NULL),(134,700,7,'Sole Trader',0,1,NULL),(135,701,7,'Partnership',0,1,NULL),(136,702,7,'Private Limited Company by shares (LTD)',0,1,NULL),(137,703,7,'Public Limited Company',0,1,NULL),(138,704,7,'Workers Cooperative',0,1,NULL),(139,705,7,'Limited Liability Partnership',0,1,NULL),(140,706,7,'Franchise',0,1,NULL),(141,1000,10,'Société à responsabilité limitée (SARL)',0,1,NULL),(142,1001,10,'Société en Nom Collectif (SNC)',0,1,NULL),(143,1002,10,'Société en Commandite Simple (SCS)',0,1,NULL),(144,1003,10,'société en participation',0,1,NULL),(145,1004,10,'Société Anonyme (SA)',0,1,NULL),(146,1005,10,'Société Unipersonnelle à Responsabilité Limitée (SUARL)',0,1,NULL),(147,1006,10,'Groupement d\'intérêt économique (GEI)',0,1,NULL),(148,1007,10,'Groupe de sociétés',0,1,NULL),(149,1701,17,'Eenmanszaak',0,1,NULL),(150,1702,17,'Maatschap',0,1,NULL),(151,1703,17,'Vennootschap onder firma',0,1,NULL),(152,1704,17,'Commanditaire vennootschap',0,1,NULL),(153,1705,17,'Besloten vennootschap (BV)',0,1,NULL),(154,1706,17,'Naamloze Vennootschap (NV)',0,1,NULL),(155,1707,17,'Vereniging',0,1,NULL),(156,1708,17,'Stichting',0,1,NULL),(157,1709,17,'Coöperatie met beperkte aansprakelijkheid (BA)',0,1,NULL),(158,1710,17,'Coöperatie met uitgesloten aansprakelijkheid (UA)',0,1,NULL),(159,1711,17,'Coöperatie met wettelijke aansprakelijkheid (WA)',0,1,NULL),(160,1712,17,'Onderlinge waarborgmaatschappij',0,1,NULL),(161,401,4,'Empresario Individual',0,1,NULL),(162,402,4,'Comunidad de Bienes',0,1,NULL),(163,403,4,'Sociedad Civil',0,1,NULL),(164,404,4,'Sociedad Colectiva',0,1,NULL),(165,405,4,'Sociedad Limitada',0,1,NULL),(166,406,4,'Sociedad Anónima',0,1,NULL),(167,407,4,'Sociedad Comanditaria por Acciones',0,1,NULL),(168,408,4,'Sociedad Comanditaria Simple',0,1,NULL),(169,409,4,'Sociedad Laboral',0,1,NULL),(170,410,4,'Sociedad Cooperativa',0,1,NULL),(171,411,4,'Sociedad de Garantía Recíproca',0,1,NULL),(172,412,4,'Entidad de Capital-Riesgo',0,1,NULL),(173,413,4,'Agrupación de Interés Económico',0,1,NULL),(174,414,4,'Sociedad de Inversión Mobiliaria',0,1,NULL),(175,415,4,'Agrupación sin Ánimo de Lucro',0,1,NULL),(176,15201,152,'Mauritius Private Company Limited By Shares',0,1,NULL),(177,15202,152,'Mauritius Company Limited By Guarantee',0,1,NULL),(178,15203,152,'Mauritius Public Company Limited By Shares',0,1,NULL),(179,15204,152,'Mauritius Foreign Company',0,1,NULL),(180,15205,152,'Mauritius GBC1 (Offshore Company)',0,1,NULL),(181,15206,152,'Mauritius GBC2 (International Company)',0,1,NULL),(182,15207,152,'Mauritius General Partnership',0,1,NULL),(183,15208,152,'Mauritius Limited Partnership',0,1,NULL),(184,15209,152,'Mauritius Sole Proprietorship',0,1,NULL),(185,15210,152,'Mauritius Trusts',0,1,NULL),(186,15401,154,'Sociedad en nombre colectivo',0,1,NULL),(187,15402,154,'Sociedad en comandita simple',0,1,NULL),(188,15403,154,'Sociedad de responsabilidad limitada',0,1,NULL),(189,15404,154,'Sociedad anónima',0,1,NULL),(190,15405,154,'Sociedad en comandita por acciones',0,1,NULL),(191,15406,154,'Sociedad cooperativa',0,1,NULL);

--
-- Table structure for table `llx_c_input_method`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_c_input_method`
--

INSERT INTO `llx_c_input_method` (`rowid`, `code`, `libelle`, `active`, `module`) VALUES (1,'OrderByMail','Courrier',1,NULL),(2,'OrderByFax','Fax',1,NULL),(3,'OrderByEMail','EMail',1,NULL),(4,'OrderByPhone','Téléphone',1,NULL),(5,'OrderByWWW','En ligne',1,NULL);

--
-- Table structure for table `llx_c_input_reason`
--

CREATE TABLE `llx_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=13 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_c_input_reason`
--

INSERT INTO `llx_c_input_reason` (`rowid`, `code`, `label`, `active`, `module`) VALUES (1,'SRC_INTE','Web site',1,NULL),(2,'SRC_CAMP_MAIL','Mailing campaign',1,NULL),(3,'SRC_CAMP_PHO','Phone campaign',1,NULL),(4,'SRC_CAMP_FAX','Fax campaign',1,NULL),(5,'SRC_COMM','Commercial contact',1,NULL),(6,'SRC_SHOP','Shop contact',1,NULL),(7,'SRC_CAMP_EMAIL','EMailing campaign',1,NULL),(8,'SRC_WOM','Word of mouth',1,NULL),(9,'SRC_PARTNER','Partner',1,NULL),(10,'SRC_EMPLOYEE','Employee',1,NULL),(11,'SRC_SPONSORING','Sponsorship',1,NULL),(12,'SRC_SCHNOEBI','Apport Aff Christophe',1,NULL);

--
-- Table structure for table `llx_c_paiement`
--

CREATE TABLE `llx_c_paiement` (
  `id` int(11) NOT NULL,
  `code` varchar(6) NOT NULL,
  `libelle` varchar(30) DEFAULT NULL,
  `type` smallint(6) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `module` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_c_paiement` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_c_paiement`
--

INSERT INTO `llx_c_paiement` (`id`, `code`, `libelle`, `type`, `active`, `module`) VALUES (0,'','-',3,1,NULL),(1,'TIP','TIP',2,1,NULL),(2,'VIR','Virement',2,1,NULL),(3,'PRE','Prélèvement',2,1,NULL),(4,'LIQ','Espèces',2,1,NULL),(6,'CB','Carte Bancaire',2,1,NULL),(7,'CHQ','Chèque',2,1,NULL),(50,'VAD','Paiement en ligne',2,0,NULL),(51,'TRA','Traite',2,0,NULL),(52,'LCR','LCR',2,0,NULL),(53,'FAC','Factor',2,0,NULL),(54,'PRO','Proforma',2,0,NULL);

--
-- Table structure for table `llx_c_paper_format`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_c_paper_format`
--

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

--
-- Table structure for table `llx_c_payment_term`
--

CREATE TABLE `llx_c_payment_term` (
  `rowid` int(11) NOT NULL,
  `code` varchar(16) DEFAULT NULL,
  `sortorder` smallint(6) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '1',
  `libelle` varchar(255) DEFAULT NULL,
  `libelle_facture` text,
  `fdm` tinyint(4) DEFAULT NULL,
  `nbjour` smallint(6) DEFAULT NULL,
  `decalage` smallint(6) DEFAULT NULL,
  `module` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_c_payment_term`
--

INSERT INTO `llx_c_payment_term` (`rowid`, `code`, `sortorder`, `active`, `libelle`, `libelle_facture`, `fdm`, `nbjour`, `decalage`, `module`) VALUES (1,'RECEP',1,1,'A réception de facture','Réception de facture',0,0,NULL,NULL),(2,'30D',2,1,'30 jours','Réglement à 30 jours',0,30,NULL,NULL),(3,'30DENDMONTH',3,1,'30 jours fin de mois','Réglement à 30 jours fin de mois',1,30,NULL,NULL),(4,'60D',4,1,'60 jours','Réglement à 60 jours',0,60,NULL,NULL),(5,'60DENDMONTH',5,1,'60 jours fin de mois','Réglement à 60 jours fin de mois',1,60,NULL,NULL),(6,'PT_ORDER',6,1,'A réception de commande','A réception de commande',0,0,NULL,NULL),(7,'PT_DELIVERY',7,1,'Livraison','Règlement à la livraison',0,0,NULL,NULL),(8,'PT_5050',8,1,'50 et 50','Règlement 50% à la commande, 50% à la livraison',0,0,NULL,NULL),(9,'303040',NULL,1,'30 30 60','30% à la commande, 30% au premier livrable\r\nle solde à la livraison',0,0,NULL,NULL);

--
-- Table structure for table `llx_c_pays`
--

CREATE TABLE `llx_c_pays` (
  `rowid` int(11) NOT NULL,
  `code` varchar(2) NOT NULL,
  `code_iso` varchar(3) DEFAULT NULL,
  `libelle` varchar(50) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_c_country_code` (`code`),
  UNIQUE KEY `idx_c_pays_libelle` (`libelle`),
  UNIQUE KEY `idx_c_country_code_iso` (`code_iso`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_c_pays`
--

INSERT INTO `llx_c_pays` (`rowid`, `code`, `code_iso`, `libelle`, `active`) VALUES (0,'',NULL,'-',1),(1,'FR',NULL,'France',1),(2,'BE',NULL,'Belgium',1),(3,'IT',NULL,'Italy',1),(4,'ES',NULL,'Spain',1),(5,'DE',NULL,'Germany',1),(6,'CH',NULL,'Switzerland',1),(7,'GB',NULL,'United Kingdom',1),(8,'IE',NULL,'Irland',1),(9,'CN',NULL,'China',1),(10,'TN',NULL,'Tunisia',1),(11,'US',NULL,'United States',1),(12,'MA',NULL,'Maroc',1),(13,'DZ',NULL,'Algeria',1),(14,'CA',NULL,'Canada',1),(15,'TG',NULL,'Togo',1),(16,'GA',NULL,'Gabon',1),(17,'NL',NULL,'Nerderland',1),(18,'HU',NULL,'Hongrie',1),(19,'RU',NULL,'Russia',1),(20,'SE',NULL,'Sweden',1),(21,'CI',NULL,'Côte d\'Ivoire',1),(22,'SN',NULL,'Senegal',1),(23,'AR',NULL,'Argentine',1),(24,'CM',NULL,'Cameroun',1),(25,'PT',NULL,'Portugal',1),(26,'SA',NULL,'Saudi Arabia',1),(27,'MC',NULL,'Monaco',1),(28,'AU',NULL,'Australia',1),(29,'SG',NULL,'Singapour',1),(30,'AF',NULL,'Afghanistan',1),(31,'AX',NULL,'Iles Aland',1),(32,'AL',NULL,'Albanie',1),(33,'AS',NULL,'Samoa américaines',1),(34,'AD',NULL,'Andorre',1),(35,'AO',NULL,'Angola',1),(36,'AI',NULL,'Anguilla',1),(37,'AQ',NULL,'Antarctique',1),(38,'AG',NULL,'Antigua-et-Barbuda',1),(39,'AM',NULL,'Arménie',1),(40,'AW',NULL,'Aruba',1),(41,'AT',NULL,'Autriche',1),(42,'AZ',NULL,'Azerbaïdjan',1),(43,'BS',NULL,'Bahamas',1),(44,'BH',NULL,'Bahreïn',1),(45,'BD',NULL,'Bangladesh',1),(46,'BB',NULL,'Barbade',1),(47,'BY',NULL,'Biélorussie',1),(48,'BZ',NULL,'Belize',1),(49,'BJ',NULL,'Bénin',1),(50,'BM',NULL,'Bermudes',1),(51,'BT',NULL,'Bhoutan',1),(52,'BO',NULL,'Bolivie',1),(53,'BA',NULL,'Bosnie-Herzégovine',1),(54,'BW',NULL,'Botswana',1),(55,'BV',NULL,'Ile Bouvet',1),(56,'BR',NULL,'Brazil',1),(57,'IO',NULL,'Territoire britannique de l\'Océan Indien',1),(58,'BN',NULL,'Brunei',1),(59,'BG',NULL,'Bulgarie',1),(60,'BF',NULL,'Burkina Faso',1),(61,'BI',NULL,'Burundi',1),(62,'KH',NULL,'Cambodge',1),(63,'CV',NULL,'Cap-Vert',1),(64,'KY',NULL,'Iles Cayman',1),(65,'CF',NULL,'République centrafricaine',1),(66,'TD',NULL,'Tchad',1),(67,'CL',NULL,'Chili',1),(68,'CX',NULL,'Ile Christmas',1),(69,'CC',NULL,'Iles des Cocos (Keeling)',1),(70,'CO',NULL,'Colombie',1),(71,'KM',NULL,'Comores',1),(72,'CG',NULL,'Congo',1),(73,'CD',NULL,'République démocratique du Congo',1),(74,'CK',NULL,'Iles Cook',1),(75,'CR',NULL,'Costa Rica',1),(76,'HR',NULL,'Croatie',1),(77,'CU',NULL,'Cuba',1),(78,'CY',NULL,'Chypre',1),(79,'CZ',NULL,'République Tchèque',1),(80,'DK',NULL,'Danemark',1),(81,'DJ',NULL,'Djibouti',1),(82,'DM',NULL,'Dominique',1),(83,'DO',NULL,'République Dominicaine',1),(84,'EC',NULL,'Equateur',1),(85,'EG',NULL,'Egypte',1),(86,'SV',NULL,'Salvador',1),(87,'GQ',NULL,'Guinée Equatoriale',1),(88,'ER',NULL,'Erythrée',1),(89,'EE',NULL,'Estonia',1),(90,'ET',NULL,'Ethiopie',1),(91,'FK',NULL,'Iles Falkland',1),(92,'FO',NULL,'Iles Féroé',1),(93,'FJ',NULL,'Iles Fidji',1),(94,'FI',NULL,'Finlande',1),(95,'GF',NULL,'Guyane française',1),(96,'PF',NULL,'Polynésie française',1),(97,'TF',NULL,'Terres australes françaises',1),(98,'GM',NULL,'Gambie',1),(99,'GE',NULL,'Georgia',1),(100,'GH',NULL,'Ghana',1),(101,'GI',NULL,'Gibraltar',1),(102,'GR',NULL,'Greece',1),(103,'GL',NULL,'Groenland',1),(104,'GD',NULL,'Grenade',1),(106,'GU',NULL,'Guam',1),(107,'GT',NULL,'Guatemala',1),(108,'GN',NULL,'Guinea',1),(109,'GW',NULL,'Guinea-Bissao',1),(111,'HT',NULL,'Haiti',1),(112,'HM',NULL,'Iles Heard et McDonald',1),(113,'VA',NULL,'Saint-Siège (Vatican)',1),(114,'HN',NULL,'Honduras',1),(115,'HK',NULL,'Hong Kong',1),(116,'IS',NULL,'Islande',1),(117,'IN',NULL,'India',1),(118,'ID',NULL,'Indonésie',1),(119,'IR',NULL,'Iran',1),(120,'IQ',NULL,'Iraq',1),(121,'IL',NULL,'Israel',1),(122,'JM',NULL,'Jamaïque',1),(123,'JP',NULL,'Japon',1),(124,'JO',NULL,'Jordanie',1),(125,'KZ',NULL,'Kazakhstan',1),(126,'KE',NULL,'Kenya',1),(127,'KI',NULL,'Kiribati',1),(128,'KP',NULL,'North Corea',1),(129,'KR',NULL,'South Corea',1),(130,'KW',NULL,'Koweït',1),(131,'KG',NULL,'Kirghizistan',1),(132,'LA',NULL,'Laos',1),(133,'LV',NULL,'Lettonie',1),(134,'LB',NULL,'Liban',1),(135,'LS',NULL,'Lesotho',1),(136,'LR',NULL,'Liberia',1),(137,'LY',NULL,'Libye',1),(138,'LI',NULL,'Liechtenstein',1),(139,'LT',NULL,'Lituanie',1),(140,'LU',NULL,'Luxembourg',1),(141,'MO',NULL,'Macao',1),(142,'MK',NULL,'ex-République yougoslave de Macédoine',1),(143,'MG',NULL,'Madagascar',1),(144,'MW',NULL,'Malawi',1),(145,'MY',NULL,'Malaisie',1),(146,'MV',NULL,'Maldives',1),(147,'ML',NULL,'Mali',1),(148,'MT',NULL,'Malte',1),(149,'MH',NULL,'Iles Marshall',1),(151,'MR',NULL,'Mauritanie',1),(152,'MU',NULL,'Maurice',1),(153,'YT',NULL,'Mayotte',1),(154,'MX',NULL,'Mexique',1),(155,'FM',NULL,'Micronésie',1),(156,'MD',NULL,'Moldavie',1),(157,'MN',NULL,'Mongolie',1),(158,'MS',NULL,'Monserrat',1),(159,'MZ',NULL,'Mozambique',1),(160,'MM',NULL,'Birmanie (Myanmar)',1),(161,'NA',NULL,'Namibie',1),(162,'NR',NULL,'Nauru',1),(163,'NP',NULL,'Népal',1),(164,'AN',NULL,'Antilles néerlandaises',1),(165,'NC',NULL,'Nouvelle-Calédonie',1),(166,'NZ',NULL,'Nouvelle-Zélande',1),(167,'NI',NULL,'Nicaragua',1),(168,'NE',NULL,'Niger',1),(169,'NG',NULL,'Nigeria',1),(170,'NU',NULL,'Nioué',1),(171,'NF',NULL,'Ile Norfolk',1),(172,'MP',NULL,'Mariannes du Nord',1),(173,'NO',NULL,'Norvège',1),(174,'OM',NULL,'Oman',1),(175,'PK',NULL,'Pakistan',1),(176,'PW',NULL,'Palaos',1),(177,'PS',NULL,'Territoire Palestinien Occupé',1),(178,'PA',NULL,'Panama',1),(179,'PG',NULL,'Papouasie-Nouvelle-Guinée',1),(180,'PY',NULL,'Paraguay',1),(181,'PE',NULL,'Peru',1),(182,'PH',NULL,'Philippines',1),(183,'PN',NULL,'Iles Pitcairn',1),(184,'PL',NULL,'Pologne',1),(185,'PR',NULL,'Porto Rico',1),(186,'QA',NULL,'Qatar',1),(188,'RO',NULL,'Roumanie',1),(189,'RW',NULL,'Rwanda',1),(190,'SH',NULL,'Sainte-Hélène',1),(191,'KN',NULL,'Saint-Christophe-et-Niévès',1),(192,'LC',NULL,'Sainte-Lucie',1),(193,'PM',NULL,'Saint-Pierre-et-Miquelon',1),(194,'VC',NULL,'Saint-Vincent-et-les-Grenadines',1),(195,'WS',NULL,'Samoa',1),(196,'SM',NULL,'Saint-Marin',1),(197,'ST',NULL,'Sao Tomé-et-Principe',1),(198,'RS',NULL,'Serbie',1),(199,'SC',NULL,'Seychelles',1),(200,'SL',NULL,'Sierra Leone',1),(201,'SK',NULL,'Slovaquie',1),(202,'SI',NULL,'Slovénie',1),(203,'SB',NULL,'Iles Salomon',1),(204,'SO',NULL,'Somalie',1),(205,'ZA',NULL,'Afrique du Sud',1),(206,'GS',NULL,'Iles Géorgie du Sud et Sandwich du Sud',1),(207,'LK',NULL,'Sri Lanka',1),(208,'SD',NULL,'Soudan',1),(209,'SR',NULL,'Suriname',1),(210,'SJ',NULL,'Iles Svalbard et Jan Mayen',1),(211,'SZ',NULL,'Swaziland',1),(212,'SY',NULL,'Syrie',1),(213,'TW',NULL,'Taïwan',1),(214,'TJ',NULL,'Tadjikistan',1),(215,'TZ',NULL,'Tanzanie',1),(216,'TH',NULL,'Thaïlande',1),(217,'TL',NULL,'Timor Oriental',1),(218,'TK',NULL,'Tokélaou',1),(219,'TO',NULL,'Tonga',1),(220,'TT',NULL,'Trinité-et-Tobago',1),(221,'TR',NULL,'Turquie',1),(222,'TM',NULL,'Turkménistan',1),(223,'TC',NULL,'Iles Turks-et-Caicos',1),(224,'TV',NULL,'Tuvalu',1),(225,'UG',NULL,'Ouganda',1),(226,'UA',NULL,'Ukraine',1),(227,'AE',NULL,'Émirats arabes unis',1),(228,'UM',NULL,'Iles mineures éloignées des États-Unis',1),(229,'UY',NULL,'Uruguay',1),(230,'UZ',NULL,'Ouzbékistan',1),(231,'VU',NULL,'Vanuatu',1),(232,'VE',NULL,'Vénézuela',1),(233,'VN',NULL,'Viêt Nam',1),(234,'VG',NULL,'Iles Vierges britanniques',1),(235,'VI',NULL,'Iles Vierges américaines',1),(236,'WF',NULL,'Wallis-et-Futuna',1),(237,'EH',NULL,'Sahara occidental',1),(238,'YE',NULL,'Yémen',1),(239,'ZM',NULL,'Zambie',1),(240,'ZW',NULL,'Zimbabwe',1),(241,'GG',NULL,'Guernesey',1),(242,'IM',NULL,'Ile de Man',1),(243,'JE',NULL,'Jersey',1),(244,'ME',NULL,'Monténégro',1),(245,'BL',NULL,'Saint-Barthélemy',1),(246,'MF',NULL,'Saint-Martin',1);

--
-- Table structure for table `llx_c_propalst`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_c_propalst`
--

INSERT INTO `llx_c_propalst` (`id`, `code`, `label`, `active`) VALUES (0,'PR_DRAFT','Brouillon',1),(1,'PR_OPEN','Ouverte',1),(2,'PR_SIGNED','Signée',1),(3,'PR_NOTSIGNED','Non Signée',1),(4,'PR_FAC','Facturée',1);

--
-- Table structure for table `llx_c_prospectlevel`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_c_prospectlevel`
--

INSERT INTO `llx_c_prospectlevel` (`code`, `label`, `sortorder`, `active`, `module`) VALUES ('PL_HIGH','High',4,1,NULL),('PL_LOW','Low',2,1,NULL),('PL_MEDIUM','Medium',3,1,NULL),('PL_NONE','None',1,1,NULL);

--
-- Table structure for table `llx_c_regions`
--

CREATE TABLE `llx_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(50) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `code_region` (`code_region`),
  KEY `idx_c_regions_fk_pays` (`fk_pays`),
  CONSTRAINT `fk_c_regions_fk_pays` FOREIGN KEY (`fk_pays`) REFERENCES `llx_c_pays` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=23210 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_c_regions`
--

INSERT INTO `llx_c_regions` (`rowid`, `code_region`, `fk_pays`, `cheflieu`, `tncc`, `nom`, `active`) VALUES (1,0,0,'0',0,'-',1),(101,1,1,'97105',3,'Guadeloupe',1),(102,2,1,'97209',3,'Martinique',1),(103,3,1,'97302',3,'Guyane',1),(104,4,1,'97411',3,'Réunion',1),(105,11,1,'75056',1,'Île-de-France',1),(106,21,1,'51108',0,'Champagne-Ardenne',1),(107,22,1,'80021',0,'Picardie',1),(108,23,1,'76540',0,'Haute-Normandie',1),(109,24,1,'45234',2,'Centre',1),(110,25,1,'14118',0,'Basse-Normandie',1),(111,26,1,'21231',0,'Bourgogne',1),(112,31,1,'59350',2,'Nord-Pas-de-Calais',1),(113,41,1,'57463',0,'Lorraine',1),(114,42,1,'67482',1,'Alsace',1),(115,43,1,'25056',0,'Franche-Comté',1),(116,52,1,'44109',4,'Pays de la Loire',1),(117,53,1,'35238',0,'Bretagne',1),(118,54,1,'86194',2,'Poitou-Charentes',1),(119,72,1,'33063',1,'Aquitaine',1),(120,73,1,'31555',0,'Midi-Pyrénées',1),(121,74,1,'87085',2,'Limousin',1),(122,82,1,'69123',2,'Rhône-Alpes',1),(123,83,1,'63113',1,'Auvergne',1),(124,91,1,'34172',2,'Languedoc-Roussillon',1),(125,93,1,'13055',0,'Provence-Alpes-Côte d\'Azur',1),(126,94,1,'2A004',0,'Corse',1),(201,201,2,'',1,'Flandre',1),(202,202,2,'',2,'Wallonie',1),(203,203,2,'',3,'Bruxelles-Capitale',1),(301,301,3,NULL,1,'Abruzzo',1),(302,302,3,NULL,1,'Basilicata',1),(303,303,3,NULL,1,'Calabria',1),(304,304,3,NULL,1,'Campania',1),(305,305,3,NULL,1,'Emilia-Romagna',1),(306,306,3,NULL,1,'Friuli-Venezia Giulia',1),(307,307,3,NULL,1,'Lazio',1),(308,308,3,NULL,1,'Liguria',1),(309,309,3,NULL,1,'Lombardia',1),(310,310,3,NULL,1,'Marche',1),(311,311,3,NULL,1,'Molise',1),(312,312,3,NULL,1,'Piemonte',1),(313,313,3,NULL,1,'Puglia',1),(314,314,3,NULL,1,'Sardegna',1),(315,315,3,NULL,1,'Sicilia',1),(316,316,3,NULL,1,'Toscana',1),(317,317,3,NULL,1,'Trentino-Alto Adige',1),(318,318,3,NULL,1,'Umbria',1),(319,319,3,NULL,1,'Valle d Aosta',1),(320,320,3,NULL,1,'Veneto',1),(401,401,4,'',0,'Andalucia',1),(402,402,4,'',0,'Aragón',1),(403,403,4,'',0,'Castilla y León',1),(404,404,4,'',0,'Castilla la Mancha',1),(405,405,4,'',0,'Canarias',1),(406,406,4,'',0,'Cataluña',1),(407,407,4,'',0,'Comunidad de Ceuta',1),(408,408,4,'',0,'Comunidad Foral de Navarra',1),(409,409,4,'',0,'Comunidad de Melilla',1),(410,410,4,'',0,'Cantabria',1),(411,411,4,'',0,'Comunidad Valenciana',1),(412,412,4,'',0,'Extemadura',1),(413,413,4,'',0,'Galicia',1),(414,414,4,'',0,'Islas Baleares',1),(415,415,4,'',0,'La Rioja',1),(416,416,4,'',0,'Comunidad de Madrid',1),(417,417,4,'',0,'Región de Murcia',1),(418,418,4,'',0,'Principado de Asturias',1),(419,419,4,'',0,'Pais Vasco',1),(420,420,4,'',0,'Otros',1),(501,501,5,'',0,'Deutschland',1),(601,601,6,'',1,'Cantons',1),(701,701,7,'',0,'England',1),(702,702,7,'',0,'Wales',1),(703,703,7,'',0,'Scotland',1),(704,704,7,'',0,'Northern Ireland',1),(1001,1001,10,'',0,'Ariana',1),(1002,1002,10,'',0,'Béja',1),(1003,1003,10,'',0,'Ben Arous',1),(1004,1004,10,'',0,'Bizerte',1),(1005,1005,10,'',0,'Gabès',1),(1006,1006,10,'',0,'Gafsa',1),(1007,1007,10,'',0,'Jendouba',1),(1008,1008,10,'',0,'Kairouan',1),(1009,1009,10,'',0,'Kasserine',1),(1010,1010,10,'',0,'Kébili',1),(1011,1011,10,'',0,'La Manouba',1),(1012,1012,10,'',0,'Le Kef',1),(1013,1013,10,'',0,'Mahdia',1),(1014,1014,10,'',0,'Médenine',1),(1015,1015,10,'',0,'Monastir',1),(1016,1016,10,'',0,'Nabeul',1),(1017,1017,10,'',0,'Sfax',1),(1018,1018,10,'',0,'Sidi Bouzid',1),(1019,1019,10,'',0,'Siliana',1),(1020,1020,10,'',0,'Sousse',1),(1021,1021,10,'',0,'Tataouine',1),(1022,1022,10,'',0,'Tozeur',1),(1023,1023,10,'',0,'Tunis',1),(1024,1024,10,'',0,'Zaghouan',1),(1101,1101,11,'',0,'United-States',1),(1201,1201,12,'',0,'Tanger-Tétouan',1),(1202,1202,12,'',0,'Gharb-Chrarda-Beni Hssen',1),(1203,1203,12,'',0,'Taza-Al Hoceima-Taounate',1),(1204,1204,12,'',0,'L\'Oriental',1),(1205,1205,12,'',0,'Fès-Boulemane',1),(1206,1206,12,'',0,'Meknès-Tafialet',1),(1207,1207,12,'',0,'Rabat-Salé-Zemour-Zaër',1),(1208,1208,12,'',0,'Grand Cassablanca',1),(1209,1209,12,'',0,'Chaouia-Ouardigha',1),(1210,1210,12,'',0,'Doukahla-Adba',1),(1211,1211,12,'',0,'Marrakech-Tensift-Al Haouz',1),(1212,1212,12,'',0,'Tadla-Azilal',1),(1213,1213,12,'',0,'Sous-Massa-Drâa',1),(1214,1214,12,'',0,'Guelmim-Es Smara',1),(1215,1215,12,'',0,'Laâyoune-Boujdour-Sakia el Hamra',1),(1216,1216,12,'',0,'Oued Ed-Dahab Lagouira',1),(1301,1301,13,'',0,'Algerie',1),(1401,1401,14,'',0,'Canada',1),(1701,1701,17,'',0,'Provincies van Nederland ',1),(2301,2301,23,'',0,'Norte',1),(2302,2302,23,'',0,'Litoral',1),(2303,2303,23,'',0,'Cuyana',1),(2304,2304,23,'',0,'Central',1),(2305,2305,23,'',0,'Patagonia',1),(2801,2801,28,'',0,'Australia',1),(4601,4601,46,'',0,'Barbados',1),(5601,5601,56,'',0,'Brasil',1),(6701,6701,67,NULL,NULL,'Tarapacá',1),(6702,6702,67,NULL,NULL,'Antofagasta',1),(6703,6703,67,NULL,NULL,'Atacama',1),(6704,6704,67,NULL,NULL,'Coquimbo',1),(6705,6705,67,NULL,NULL,'Valparaíso',1),(6706,6706,67,NULL,NULL,'General Bernardo O Higgins',1),(6707,6707,67,NULL,NULL,'Maule',1),(6708,6708,67,NULL,NULL,'Biobío',1),(6709,6709,67,NULL,NULL,'Raucanía',1),(6710,6710,67,NULL,NULL,'Los Lagos',1),(6711,6711,67,NULL,NULL,'Aysén General Carlos Ibáñez del Campo',1),(6712,6712,67,NULL,NULL,'Magallanes y Antártica Chilena',1),(6713,6713,67,NULL,NULL,'Metropolitana de Santiago',1),(6714,6714,67,NULL,NULL,'Los Ríos',1),(6715,6715,67,NULL,NULL,'Arica y Parinacota',1),(7001,7001,70,'',0,'Colombie',1),(8601,8601,86,NULL,NULL,'Central',1),(8602,8602,86,NULL,NULL,'Oriental',1),(8603,8603,86,NULL,NULL,'Occidental',1),(10201,10201,102,NULL,NULL,'??????',1),(10202,10202,102,NULL,NULL,'?????? ??????',1),(10203,10203,102,NULL,NULL,'???????? ?????????',1),(10204,10204,102,NULL,NULL,'?????',1),(10205,10205,102,NULL,NULL,'????????? ????????? ??? ?????',1),(10206,10206,102,NULL,NULL,'???????',1),(10207,10207,102,NULL,NULL,'????? ?????',1),(10208,10208,102,NULL,NULL,'?????? ??????',1),(10209,10209,102,NULL,NULL,'????????????',1),(10210,10210,102,NULL,NULL,'????? ??????',1),(10211,10211,102,NULL,NULL,'?????? ??????',1),(10212,10212,102,NULL,NULL,'????????',1),(10213,10213,102,NULL,NULL,'?????? ?????????',1),(11401,11401,114,'',0,'Honduras',1),(11701,11701,117,'',0,'India',1),(15201,15201,152,'',0,'Rivière Noire',1),(15202,15202,152,'',0,'Flacq',1),(15203,15203,152,'',0,'Grand Port',1),(15204,15204,152,'',0,'Moka',1),(15205,15205,152,'',0,'Pamplemousses',1),(15206,15206,152,'',0,'Plaines Wilhems',1),(15207,15207,152,'',0,'Port-Louis',1),(15208,15208,152,'',0,'Rivière du Rempart',1),(15209,15209,152,'',0,'Savanne',1),(15210,15210,152,'',0,'Rodrigues',1),(15211,15211,152,'',0,'Les îles Agaléga',1),(15212,15212,152,'',0,'Les écueils des Cargados Carajos',1),(15401,15401,154,'',0,'Mexique',1),(23201,23201,232,'',0,'Los Andes',1),(23202,23202,232,'',0,'Capital',1),(23203,23203,232,'',0,'Central',1),(23204,23204,232,'',0,'Cento Occidental',1),(23205,23205,232,'',0,'Guayana',1),(23206,23206,232,'',0,'Insular',1),(23207,23207,232,'',0,'Los Llanos',1),(23208,23208,232,'',0,'Nor-Oriental',1),(23209,23209,232,'',0,'Zuliana',1);

--
-- Table structure for table `llx_c_revenuestamp`
--

CREATE TABLE `llx_c_revenuestamp` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_pays` int(11) NOT NULL,
  `taux` double NOT NULL,
  `note` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `accountancy_code_sell` varchar(15) DEFAULT NULL,
  `accountancy_code_buy` varchar(15) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=102 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_c_revenuestamp`
--

INSERT INTO `llx_c_revenuestamp` (`rowid`, `fk_pays`, `taux`, `note`, `active`, `accountancy_code_sell`, `accountancy_code_buy`) VALUES (101,10,0.4,'Revenue stamp tunisia',1,NULL,NULL);

--
-- Table structure for table `llx_c_shipment_mode`
--

CREATE TABLE `llx_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`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_c_shipment_mode`
--

INSERT INTO `llx_c_shipment_mode` (`rowid`, `tms`, `code`, `libelle`, `description`, `tracking`, `active`, `module`) VALUES (1,'2014-12-28 17:36:40','CATCH','Catch','Catch by client','',1,NULL),(2,'2014-12-28 17:36:40','TRANS','Transporter','Generic transporter','',1,NULL),(3,'2014-12-28 17:36:40','COLSUI','Colissimo Suivi','Colissimo Suivi','',0,NULL),(4,'2014-12-28 17:36:40','LETTREMAX','Lettre Max','Courrier Suivi et Lettre Max','',0,NULL),(5,'2014-12-28 17:36:40','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),(6,'2014-12-28 17:36:40','KIALA','KIALA','Relais Kiala','http://www.kiala.fr/tnt/delivery/{TRACKID}',0,NULL),(7,'2014-12-28 17:36:40','GLS','GLS','General Logistics Systems','http://www.gls-group.eu/276-I-PORTAL-WEB/content/GLS/FR01/FR/5004.htm?txtAction=71000&txtRefNo={TRACKID}',0,NULL),(8,'2014-12-28 17:36:40','CHRONO','Chronopost','Chronopost','http://www.chronopost.fr/expedier/inputLTNumbersNoJahia.do?listeNumeros={TRACKID}',0,NULL);

--
-- Table structure for table `llx_c_stcomm`
--

CREATE TABLE `llx_c_stcomm` (
  `id` int(11) NOT NULL,
  `code` varchar(12) NOT NULL,
  `libelle` varchar(30) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_c_stcomm` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_c_stcomm`
--

INSERT INTO `llx_c_stcomm` (`id`, `code`, `libelle`, `active`) VALUES (-1,'ST_NO','Ne pas contacter',1),(0,'ST_NEVER','Jamais contacté',1),(1,'ST_TODO','A contacter',1),(2,'ST_PEND','Contact en cours',1),(3,'ST_DONE','Contactée',1);

--
-- Table structure for table `llx_c_tva`
--

CREATE TABLE `llx_c_tva` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_pays` int(11) NOT NULL,
  `taux` double NOT NULL,
  `localtax1` double NOT NULL DEFAULT '0',
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2` double 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(15) DEFAULT NULL,
  `accountancy_code_buy` varchar(15) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_tva_id` (`fk_pays`,`taux`,`recuperableonly`)
) ENGINE=InnoDB AUTO_INCREMENT=2469 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_c_tva`
--

INSERT INTO `llx_c_tva` (`rowid`, `fk_pays`, `taux`, `localtax1`, `localtax1_type`, `localtax2`, `localtax2_type`, `recuperableonly`, `note`, `active`, `accountancy_code_sell`, `accountancy_code_buy`) VALUES (11,1,20,0,'0',0,'0',0,'VAT standard rate (France hors DOM-TOM)',1,NULL,NULL),(12,1,8.5,0,'0',0,'0',0,'VAT standard rate (DOM sauf Guyane et Saint-Martin)',0,NULL,NULL),(13,1,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),(14,1,5.5,0,'0',0,'0',0,'VAT reduced rate (France hors DOM-TOM)',1,NULL,NULL),(15,1,0,0,'0',0,'0',0,'VAT Rate 0 ou non applicable',1,NULL,NULL),(16,1,2.1,0,'0',0,'0',0,'VAT super-reduced rate',1,NULL,NULL),(17,1,10,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(21,2,21,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(22,2,6,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(23,2,0,0,'0',0,'0',0,'VAT Rate 0 ou non applicable',1,NULL,NULL),(24,2,12,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(31,3,21,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(32,3,10,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(33,3,4,0,'0',0,'0',0,'VAT super-reduced rate',1,NULL,NULL),(34,3,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(41,4,21,5.2,'3',-21,'1',0,'VAT standard rate',1,NULL,NULL),(42,4,10,1.4,'3',-21,'1',0,'VAT reduced rate',1,NULL,NULL),(43,4,4,0.5,'3',-21,'1',0,'VAT super-reduced rate',1,NULL,NULL),(44,4,0,0,'3',-21,'1',0,'VAT Rate 0',1,NULL,NULL),(51,5,19,0,'0',0,'0',0,'allgemeine Ust.',1,NULL,NULL),(52,5,7,0,'0',0,'0',0,'ermäßigte USt.',1,NULL,NULL),(53,5,0,0,'0',0,'0',0,'keine USt.',1,NULL,NULL),(54,5,5.5,0,'0',0,'0',0,'USt. Forst',0,NULL,NULL),(55,5,10.7,0,'0',0,'0',0,'USt. Landwirtschaft',0,NULL,NULL),(61,6,8,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(62,6,3.8,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(63,6,2.5,0,'0',0,'0',0,'VAT super-reduced rate',1,NULL,NULL),(64,6,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(71,7,20,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(72,7,17.5,0,'0',0,'0',0,'VAT standard rate before 2011',1,NULL,NULL),(73,7,5,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(74,7,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(91,9,17,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(92,9,13,0,'0',0,'0',0,'VAT reduced rate 0',1,NULL,NULL),(93,9,3,0,'0',0,'0',0,'VAT super reduced rate 0',1,NULL,NULL),(94,9,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(101,10,6,1,'4',0,'0',0,'VAT 6%',1,NULL,NULL),(102,10,12,1,'4',0,'0',0,'VAT 12%',1,NULL,NULL),(103,10,18,1,'4',0,'0',0,'VAT 18%',1,NULL,NULL),(104,10,7.5,1,'4',0,'0',0,'VAT 6% Majoré à 25% (7.5%)',1,NULL,NULL),(105,10,15,1,'4',0,'0',0,'VAT 12% Majoré à 25% (15%)',1,NULL,NULL),(106,10,22.5,1,'4',0,'0',0,'VAT 18% Majoré à 25% (22.5%)',1,NULL,NULL),(107,10,0,1,'4',0,'0',0,'VAT Rate 0',1,NULL,NULL),(111,11,0,0,'0',0,'0',0,'No Sales Tax',1,NULL,NULL),(112,11,4,0,'0',0,'0',0,'Sales Tax 4%',1,NULL,NULL),(113,11,6,0,'0',0,'0',0,'Sales Tax 6%',1,NULL,NULL),(121,12,20,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(122,12,14,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(123,12,10,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(124,12,7,0,'0',0,'0',0,'VAT super-reduced rate',1,NULL,NULL),(125,12,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(141,14,7,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(142,14,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(143,14,5,9.975,'1',0,'0',0,'TPS and TVQ rate',1,NULL,NULL),(171,17,19,0,'0',0,'0',0,'Algemeen BTW tarief',1,NULL,NULL),(172,17,6,0,'0',0,'0',0,'Verlaagd BTW tarief',1,NULL,NULL),(173,17,0,0,'0',0,'0',0,'0 BTW tarief',1,NULL,NULL),(174,17,21,0,'0',0,'0',0,'Algemeen BTW tarief (vanaf 1 oktober 2012)',0,NULL,NULL),(201,20,25,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(202,20,12,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(203,20,6,0,'0',0,'0',0,'VAT super-reduced rate',1,NULL,NULL),(204,20,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(231,23,21,0,'0',0,'0',0,'IVA standard rate',1,NULL,NULL),(232,23,10.5,0,'0',0,'0',0,'IVA reduced rate',1,NULL,NULL),(233,23,0,0,'0',0,'0',0,'IVA Rate 0',1,NULL,NULL),(241,24,19.25,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(242,24,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(251,25,23,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(252,25,13,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(253,25,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(254,25,6,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(261,26,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(271,27,19.6,0,'0',0,'0',0,'VAT standard rate (France hors DOM-TOM)',1,NULL,NULL),(272,27,8.5,0,'0',0,'0',0,'VAT standard rate (DOM sauf Guyane et Saint-Martin)',0,NULL,NULL),(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),(274,27,5.5,0,'0',0,'0',0,'VAT reduced rate (France hors DOM-TOM)',0,NULL,NULL),(275,27,0,0,'0',0,'0',0,'VAT Rate 0 ou non applicable',1,NULL,NULL),(276,27,2.1,0,'0',0,'0',0,'VAT super-reduced rate',1,NULL,NULL),(277,27,7,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(281,28,10,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(282,28,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(411,41,20,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(412,41,10,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(413,41,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(461,46,0,0,'0',0,'0',0,'No VAT',1,NULL,NULL),(462,46,15,0,'0',0,'0',0,'VAT 15%',1,NULL,NULL),(463,46,7.5,0,'0',0,'0',0,'VAT 7.5%',1,NULL,NULL),(561,56,0,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(591,59,20,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(592,59,7,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(593,59,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(671,67,19,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(672,67,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(801,80,25,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(802,80,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(861,86,13,0,'0',0,'0',0,'IVA 13',1,NULL,NULL),(862,86,0,0,'0',0,'0',0,'SIN IVA',1,NULL,NULL),(1141,114,0,0,'0',0,'0',0,'No ISV',1,NULL,NULL),(1142,114,12,0,'0',0,'0',0,'ISV 12%',1,NULL,NULL),(1161,116,25.5,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(1162,116,7,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(1163,116,0,0,'0',0,'0',0,'VAT rate 0',1,NULL,NULL),(1171,117,12.5,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(1172,117,4,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(1173,117,1,0,'0',0,'0',0,'VAT super-reduced rate',1,NULL,NULL),(1174,117,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(1231,123,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(1232,123,5,0,'0',0,'0',0,'VAT Rate 5',1,NULL,NULL),(1401,140,15,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(1402,140,12,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(1403,140,6,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(1404,140,3,0,'0',0,'0',0,'VAT super-reduced rate',1,NULL,NULL),(1405,140,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(1511,151,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(1512,151,14,0,'0',0,'0',0,'VAT Rate 14',1,NULL,NULL),(1521,152,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(1522,152,15,0,'0',0,'0',0,'VAT Rate 15',1,NULL,NULL),(1541,154,0,0,'0',0,'0',0,'No VAT',1,NULL,NULL),(1542,154,16,0,'0',0,'0',0,'VAT 16%',1,NULL,NULL),(1543,154,10,0,'0',0,'0',0,'VAT Frontero',1,NULL,NULL),(1662,166,15,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(1663,166,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(1692,169,5,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(1693,169,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(1731,173,25,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(1732,173,14,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(1733,173,8,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(1734,173,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(1841,181,18,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(1842,184,7,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(1843,181,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(1844,184,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(1881,188,24,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(1882,188,9,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(1883,188,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(1884,188,5,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(1931,193,0,0,'0',0,'0',0,'No VAT in SPM',1,NULL,NULL),(2011,201,19,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(2012,201,10,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(2013,201,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(2021,202,22,0,'0',0,'0',0,'VAT standard rate',1,NULL,NULL),(2022,202,9.5,0,'0',0,'0',0,'VAT reduced rate',1,NULL,NULL),(2023,202,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(2051,205,0,0,'0',0,'0',0,'No VAT',1,NULL,NULL),(2052,205,14,0,'0',0,'0',0,'VAT 14%',1,NULL,NULL),(2261,226,20,0,'0',0,'0',0,'VAT standart rate',1,NULL,NULL),(2262,226,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(2321,232,0,0,'0',0,'0',0,'No VAT',1,NULL,NULL),(2322,232,12,0,'0',0,'0',0,'VAT 12%',1,NULL,NULL),(2323,232,8,0,'0',0,'0',0,'VAT 8%',1,NULL,NULL),(2461,246,0,0,'0',0,'0',0,'VAT Rate 0',1,NULL,NULL),(2462,102,23,0,'0',0,'0',0,'????????? ?.?.?.',1,NULL,NULL),(2463,102,0,0,'0',0,'0',0,'???????? ?.?.?.',1,NULL,NULL),(2464,102,13,0,'0',0,'0',0,'????????? ?.?.?.',1,NULL,NULL),(2465,102,6.5,0,'0',0,'0',0,'????????????? ?.?.?.',1,NULL,NULL),(2466,102,16,0,'0',0,'0',0,'????? ????????? ?.?.?.',1,NULL,NULL),(2467,102,9,0,'0',0,'0',0,'????? ????????? ?.?.?.',1,NULL,NULL),(2468,102,5,0,'0',0,'0',0,'????? ????????????? ?.?.?.',1,NULL,NULL);

--
-- Table structure for table `llx_c_type_contact`
--

CREATE TABLE `llx_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,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_type_contact_id` (`element`,`source`,`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_c_type_contact`
--

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

--
-- Table structure for table `llx_c_type_fees`
--

CREATE TABLE `llx_c_type_fees` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `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_type_fees` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_c_type_fees`
--

INSERT INTO `llx_c_type_fees` (`id`, `code`, `libelle`, `active`, `module`) VALUES (1,'TF_OTHER','Other',1,NULL),(2,'TF_TRIP','Trip',1,NULL),(3,'TF_LUNCH','Lunch',1,NULL);

--
-- Table structure for table `llx_c_type_resource`
--

CREATE TABLE `llx_c_type_resource` (
  `rowid` int(11) NOT NULL,
  `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 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_c_type_resource`
--


--
-- Table structure for table `llx_c_typent`
--

CREATE TABLE `llx_c_typent` (
  `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_typent` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_c_typent`
--

INSERT INTO `llx_c_typent` (`id`, `code`, `libelle`, `active`, `module`) VALUES (0,'TE_UNKNOWN','-',1,NULL),(1,'TE_STARTUP','Start-up',0,NULL),(2,'TE_GROUP','Grand groupe',1,NULL),(3,'TE_MEDIUM','PME/PMI',1,NULL),(4,'TE_SMALL','TPE',1,NULL),(5,'TE_ADMIN','Administration',1,NULL),(6,'TE_WHOLE','Grossiste',0,NULL),(7,'TE_RETAIL','Revendeur',0,NULL),(8,'TE_PRIVATE','Particulier',1,NULL),(100,'TE_OTHER','Autres',1,NULL);

--
-- Table structure for table `llx_c_ziptown`
--

CREATE TABLE `llx_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(255) 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`),
  CONSTRAINT `fk_c_ziptown_fk_county` FOREIGN KEY (`fk_county`) REFERENCES `llx_c_departements` (`rowid`),
  CONSTRAINT `fk_c_ziptown_fk_pays` FOREIGN KEY (`fk_pays`) REFERENCES `llx_c_pays` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_c_ziptown`
--


--
-- Table structure for table `llx_categorie`
--

CREATE TABLE `llx_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(255) NOT NULL,
  `type` tinyint(4) NOT NULL DEFAULT '1',
  `description` text,
  `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=latin1;

--
-- Dumping data for table `llx_categorie`
--


--
-- Table structure for table `llx_categorie_contact`
--

CREATE TABLE `llx_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`),
  CONSTRAINT `fk_categorie_contact_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  CONSTRAINT `fk_categorie_contact_fk_socpeople` FOREIGN KEY (`fk_socpeople`) REFERENCES `llx_socpeople` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_categorie_contact`
--


--
-- Table structure for table `llx_categorie_fournisseur`
--

CREATE TABLE `llx_categorie_fournisseur` (
  `fk_categorie` int(11) NOT NULL,
  `fk_societe` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`fk_categorie`,`fk_societe`),
  KEY `idx_categorie_fournisseur_fk_categorie` (`fk_categorie`),
  KEY `idx_categorie_fournisseur_fk_societe` (`fk_societe`),
  CONSTRAINT `fk_categorie_fournisseur_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  CONSTRAINT `fk_categorie_fournisseur_fk_soc` FOREIGN KEY (`fk_societe`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_categorie_fournisseur`
--


--
-- Table structure for table `llx_categorie_lang`
--

CREATE TABLE `llx_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`),
  CONSTRAINT `fk_category_lang_fk_category` FOREIGN KEY (`fk_category`) REFERENCES `llx_categorie` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_categorie_lang`
--


--
-- Table structure for table `llx_categorie_member`
--

CREATE TABLE `llx_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`),
  CONSTRAINT `fk_categorie_member_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  CONSTRAINT `fk_categorie_member_member_rowid` FOREIGN KEY (`fk_member`) REFERENCES `llx_adherent` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_categorie_member`
--


--
-- Table structure for table `llx_categorie_product`
--

CREATE TABLE `llx_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`),
  CONSTRAINT `fk_categorie_product_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  CONSTRAINT `fk_categorie_product_product_rowid` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_categorie_product`
--


--
-- Table structure for table `llx_categorie_societe`
--

CREATE TABLE `llx_categorie_societe` (
  `fk_categorie` int(11) NOT NULL,
  `fk_societe` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`fk_categorie`,`fk_societe`),
  KEY `idx_categorie_societe_fk_categorie` (`fk_categorie`),
  KEY `idx_categorie_societe_fk_societe` (`fk_societe`),
  CONSTRAINT `fk_categorie_societe_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  CONSTRAINT `fk_categorie_societe_fk_soc` FOREIGN KEY (`fk_societe`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_categorie_societe`
--


--
-- Table structure for table `llx_categories_extrafields`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_categories_extrafields`
--


--
-- Table structure for table `llx_chargesociales`
--

CREATE TABLE `llx_chargesociales` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `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_type` int(11) NOT NULL,
  `amount` double NOT NULL DEFAULT '0',
  `paye` smallint(6) NOT NULL DEFAULT '0',
  `periode` date DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_chargesociales`
--


--
-- Table structure for table `llx_commande`
--

CREATE TABLE `llx_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_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 DEFAULT '0',
  `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,
  `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_availability` int(11) DEFAULT NULL,
  `fk_input_reason` int(11) DEFAULT NULL,
  `fk_delivery_address` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  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`),
  CONSTRAINT `fk_commande_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_commande_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_commande_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_commande_fk_user_cloture` FOREIGN KEY (`fk_user_cloture`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_commande_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_commande`
--


--
-- Table structure for table `llx_commande_extrafields`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_commande_extrafields`
--


--
-- Table structure for table `llx_commande_fournisseur`
--

CREATE TABLE `llx_commande_fournisseur` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_ext` varchar(30) DEFAULT NULL,
  `ref_supplier` varchar(30) 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_commande` date DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_approve` int(11) DEFAULT NULL,
  `source` smallint(6) NOT NULL,
  `fk_statut` smallint(6) DEFAULT '0',
  `amount_ht` double DEFAULT '0',
  `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,
  `date_livraison` date DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `fk_input_method` int(11) DEFAULT '0',
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_commande_fournisseur_ref` (`ref`,`fk_soc`,`entity`),
  KEY `idx_commande_fournisseur_fk_soc` (`fk_soc`),
  CONSTRAINT `fk_commande_fournisseur_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_commande_fournisseur`
--

INSERT INTO `llx_commande_fournisseur` (`rowid`, `ref`, `entity`, `ref_ext`, `ref_supplier`, `fk_soc`, `fk_projet`, `tms`, `date_creation`, `date_valid`, `date_approve`, `date_commande`, `fk_user_author`, `fk_user_valid`, `fk_user_approve`, `source`, `fk_statut`, `amount_ht`, `remise_percent`, `remise`, `tva`, `localtax1`, `localtax2`, `total_ht`, `total_ttc`, `note_private`, `note_public`, `model_pdf`, `date_livraison`, `fk_cond_reglement`, `fk_mode_reglement`, `fk_input_method`, `import_key`, `extraparams`) VALUES (1,'CF1508-0001',1,NULL,'AppleD',8,0,'2015-08-18 15:05:49','2015-08-18 15:04:36','2015-08-18 15:05:43','2015-08-18 15:05:49',NULL,1,1,1,0,2,0,0,0,0.00000000,0.00000000,0.00000000,99.00000000,99.00000000,'','','muscadet',NULL,1,6,0,NULL,NULL);

--
-- Table structure for table `llx_commande_fournisseur_dispatch`
--

CREATE TABLE `llx_commande_fournisseur_dispatch` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_commande` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `qty` float DEFAULT NULL,
  `fk_entrepot` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_commande_fournisseur_dispatch_fk_commande` (`fk_commande`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_commande_fournisseur_dispatch`
--


--
-- Table structure for table `llx_commande_fournisseur_extrafields`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_commande_fournisseur_extrafields`
--


--
-- Table structure for table `llx_commande_fournisseur_log`
--

CREATE TABLE `llx_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 AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_commande_fournisseur_log`
--

INSERT INTO `llx_commande_fournisseur_log` (`rowid`, `tms`, `datelog`, `fk_commande`, `fk_statut`, `fk_user`, `comment`) VALUES (1,'2015-08-18 15:04:36','2015-08-18 15:04:36',1,0,1,NULL),(2,'2015-08-18 15:05:43','2015-08-18 15:05:43',1,1,1,NULL),(3,'2015-08-18 15:05:49','2015-08-18 15:05:49',1,2,1,NULL);

--
-- Table structure for table `llx_commande_fournisseurdet`
--

CREATE TABLE `llx_commande_fournisseurdet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_commande` int(11) NOT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `ref` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text,
  `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',
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_commande_fournisseurdet`
--

INSERT INTO `llx_commande_fournisseurdet` (`rowid`, `fk_commande`, `fk_product`, `ref`, `label`, `description`, `tva_tx`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `qty`, `remise_percent`, `remise`, `subprice`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `date_start`, `date_end`, `info_bits`, `import_key`) VALUES (1,1,NULL,'','','Apple Dev',0.000,0.000,'0',0.000,'0',1,0,0,99.00000000,99.00000000,0.00000000,0.00000000,0.00000000,99.00000000,1,NULL,NULL,0,NULL);

--
-- Table structure for table `llx_commandedet`
--

CREATE TABLE `llx_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,
  `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(10) unsigned DEFAULT '0',
  `rang` int(11) DEFAULT '0',
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_commandedet_fk_commande` (`fk_commande`),
  KEY `idx_commandedet_fk_product` (`fk_product`),
  CONSTRAINT `fk_commandedet_fk_commande` FOREIGN KEY (`fk_commande`) REFERENCES `llx_commande` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_commandedet`
--


--
-- Table structure for table `llx_commandedet_extrafields`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_commandedet_extrafields`
--


--
-- Table structure for table `llx_compta`
--

CREATE TABLE `llx_compta` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `amount` double NOT NULL DEFAULT '0',
  `label` varchar(255) DEFAULT NULL,
  `fk_compta_account` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `valid` tinyint(4) DEFAULT '0',
  `note` text,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_compta`
--


--
-- Table structure for table `llx_compta_account`
--

CREATE TABLE `llx_compta_account` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `number` varchar(12) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `note` text,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_compta_account`
--


--
-- Table structure for table `llx_compta_compte_generaux`
--

CREATE TABLE `llx_compta_compte_generaux` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `date_creation` datetime DEFAULT NULL,
  `numero` varchar(50) DEFAULT NULL,
  `intitule` varchar(255) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `note` text,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `numero` (`numero`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_compta_compte_generaux`
--


--
-- Table structure for table `llx_const`
--

CREATE TABLE `llx_const` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) 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=177 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_const`
--

INSERT INTO `llx_const` (`rowid`, `name`, `entity`, `value`, `type`, `visible`, `note`, `tms`) VALUES (2,'MAIN_FEATURES_LEVEL',0,'0','chaine',1,'Level of features to show (0=stable only, 1=stable+experimental, 2=stable+experimental+development','2014-12-28 17:36:41'),(3,'MAILING_LIMIT_SENDBYWEB',0,'25','chaine',1,'Number of targets to defined packet size when sending mass email','2014-12-28 17:36:41'),(4,'SYSLOG_HANDLERS',0,'[\"mod_syslog_file\"]','chaine',0,'Which logger to use','2014-12-28 17:36:41'),(5,'SYSLOG_FILE',0,'DOL_DATA_ROOT/dolibarr.log','chaine',0,'Directory where to write log file','2014-12-28 17:36:41'),(6,'SYSLOG_LEVEL',0,'7','chaine',0,'Level of debug info to show','2014-12-28 17:36:41'),(7,'MAIN_MAIL_SMTP_SERVER',0,'','chaine',0,'Host or ip address for SMTP server','2014-12-28 17:36:41'),(8,'MAIN_MAIL_SMTP_PORT',0,'','chaine',0,'Port for SMTP server','2014-12-28 17:36:41'),(9,'MAIN_UPLOAD_DOC',0,'2048','chaine',0,'Max size for file upload (0 means no upload allowed)','2014-12-28 17:36:41'),(11,'MAIN_MAIL_EMAIL_FROM',1,'robot@domain.com','chaine',0,'EMail emetteur pour les emails automatiques Dolibarr','2014-12-28 17:36:41'),(12,'MAIN_SIZE_LISTE_LIMIT',0,'25','chaine',0,'Longueur maximum des listes','2014-12-28 17:36:41'),(13,'MAIN_SHOW_WORKBOARD',0,'1','yesno',0,'Affichage tableau de bord de travail Dolibarr','2014-12-28 17:36:41'),(14,'MAIN_MENU_STANDARD',1,'eldy_menu.php','chaine',0,'Menu manager for internal users','2014-12-28 17:36:41'),(15,'MAIN_MENUFRONT_STANDARD',1,'eldy_menu.php','chaine',0,'Menu manager for external users','2014-12-28 17:36:41'),(16,'MAIN_MENU_SMARTPHONE',1,'eldy_menu.php','chaine',0,'Menu manager for internal users using smartphones','2014-12-28 17:36:41'),(17,'MAIN_MENUFRONT_SMARTPHONE',1,'eldy_menu.php','chaine',0,'Menu manager for external users using smartphones','2014-12-28 17:36:41'),(18,'MAIN_DELAY_ACTIONS_TODO',1,'7','chaine',0,'Tolérance de retard avant alerte (en jours) sur actions planifiées non réalisées','2014-12-28 17:36:41'),(19,'MAIN_DELAY_ORDERS_TO_PROCESS',1,'2','chaine',0,'Tolérance de retard avant alerte (en jours) sur commandes clients non traitées','2014-12-28 17:36:41'),(20,'MAIN_DELAY_SUPPLIER_ORDERS_TO_PROCESS',1,'7','chaine',0,'Tolérance de retard avant alerte (en jours) sur commandes fournisseurs non traitées','2014-12-28 17:36:41'),(21,'MAIN_DELAY_PROPALS_TO_CLOSE',1,'31','chaine',0,'Tolérance de retard avant alerte (en jours) sur propales à cloturer','2014-12-28 17:36:41'),(22,'MAIN_DELAY_PROPALS_TO_BILL',1,'7','chaine',0,'Tolérance de retard avant alerte (en jours) sur propales non facturées','2014-12-28 17:36:41'),(23,'MAIN_DELAY_CUSTOMER_BILLS_UNPAYED',1,'31','chaine',0,'Tolérance de retard avant alerte (en jours) sur factures client impayées','2014-12-28 17:36:41'),(24,'MAIN_DELAY_SUPPLIER_BILLS_TO_PAY',1,'2','chaine',0,'Tolérance de retard avant alerte (en jours) sur factures fournisseur impayées','2014-12-28 17:36:41'),(25,'MAIN_DELAY_NOT_ACTIVATED_SERVICES',1,'0','chaine',0,'Tolérance de retard avant alerte (en jours) sur services à activer','2014-12-28 17:36:41'),(26,'MAIN_DELAY_RUNNING_SERVICES',1,'0','chaine',0,'Tolérance de retard avant alerte (en jours) sur services expirés','2014-12-28 17:36:41'),(27,'MAIN_DELAY_MEMBERS',1,'31','chaine',0,'Tolérance de retard avant alerte (en jours) sur cotisations adhérent en retard','2014-12-28 17:36:41'),(28,'MAIN_DELAY_TRANSACTIONS_TO_CONCILIATE',1,'62','chaine',0,'Tolérance de retard avant alerte (en jours) sur rapprochements bancaires à faire','2014-12-28 17:36:41'),(29,'MAIN_FIX_FOR_BUGGED_MTA',1,'1','chaine',1,'Set constant to fix email ending from PHP with some linux ike system','2014-12-28 17:36:41'),(30,'MAILING_EMAIL_FROM',1,'dolibarr@domain.com','chaine',0,'EMail emmetteur pour les envois d emailings','2014-12-28 17:36:41'),(31,'MAIN_MODULE_USER',0,'1',NULL,0,NULL,'2014-12-28 17:42:15'),(32,'MAIN_VERSION_LAST_INSTALL',0,'3.6.2','chaine',0,'Dolibarr version when install','2014-12-28 17:42:16'),(33,'MAIN_LANG_DEFAULT',1,'fr_FR','chaine',0,'Default language','2014-12-28 17:42:16'),(56,'SOCIETE_CODECLIENT_ADDON',1,'mod_codeclient_leopard','chaine',0,'Module to control third parties codes','2014-12-28 17:46:26'),(57,'SOCIETE_CODECOMPTA_ADDON',1,'mod_codecompta_panicum','chaine',0,'Module to control third parties codes','2014-12-28 17:46:26'),(58,'MAIN_SEARCHFORM_SOCIETE',1,'1','yesno',0,'Show form for quick company search','2014-12-28 17:46:26'),(59,'MAIN_SEARCHFORM_CONTACT',1,'1','yesno',0,'Show form for quick contact search','2014-12-28 17:46:26'),(60,'COMPANY_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/thirdparties','chaine',0,NULL,'2014-12-28 17:46:26'),(61,'SOCIETE_ADD_REF_IN_LIST',1,'','yesno',0,'Display customer ref into select list','2014-12-28 17:46:26'),(63,'PROPALE_ADDON_PDF',1,'azur','chaine',0,'Nom du gestionnaire de generation des propales en PDF','2014-12-28 17:46:30'),(64,'PROPALE_ADDON',1,'mod_propale_marbre','chaine',0,'Nom du gestionnaire de numerotation des propales','2014-12-28 17:46:30'),(68,'MAIN_MODULE_COMMANDE',1,'1',NULL,0,NULL,'2014-12-28 17:46:32'),(69,'COMMANDE_ADDON_PDF',1,'einstein','chaine',0,'Name of PDF model of order','2014-12-28 17:46:32'),(70,'COMMANDE_ADDON',1,'mod_commande_marbre','chaine',0,'Name of numbering numerotation rules of order','2014-12-28 17:46:32'),(71,'COMMANDE_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/orders','chaine',0,NULL,'2014-12-28 17:46:32'),(73,'MAIN_MODULE_CONTRAT',1,'1',NULL,0,NULL,'2014-12-28 17:46:36'),(74,'CONTRACT_ADDON',1,'mod_contract_serpis','chaine',0,'Nom du gestionnaire de numerotation des contrats','2014-12-28 17:46:36'),(76,'MAIN_MODULE_SERVICE',1,'1',NULL,0,NULL,'2014-12-28 17:46:36'),(77,'MAIN_MODULE_ECM',1,'1',NULL,0,NULL,'2014-12-28 17:46:47'),(78,'ECM_AUTO_TREE_ENABLED',1,'1','chaine',0,'Auto tree is enabled by default','2014-12-28 17:46:47'),(79,'MAIN_MODULE_COMPTABILITE',1,'1',NULL,0,NULL,'2014-12-28 17:46:50'),(80,'MAIN_MODULE_FACTURE',1,'1',NULL,0,NULL,'2014-12-28 17:46:50'),(81,'FACTURE_ADDON_PDF',1,'crabe','chaine',0,'Name of PDF model of invoice','2014-12-28 17:46:50'),(82,'FACTURE_ADDON',1,'mod_facture_terre','chaine',0,'Name of numbering numerotation rules of invoice','2014-12-28 17:46:50'),(83,'FACTURE_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/invoices','chaine',0,NULL,'2014-12-28 17:46:50'),(85,'MAIN_MODULE_BANQUE',1,'1',NULL,0,NULL,'2014-12-28 17:46:50'),(86,'MAIN_MODULE_FOURNISSEUR',1,'1',NULL,0,NULL,'2014-12-28 17:47:31'),(87,'COMMANDE_SUPPLIER_ADDON_PDF',1,'muscadet','chaine',0,'Nom du gestionnaire de generation des bons de commande en PDF','2014-12-28 17:47:31'),(88,'COMMANDE_SUPPLIER_ADDON_NUMBER',1,'mod_commande_fournisseur_muguet','chaine',0,'Nom du gestionnaire de numerotation des commandes fournisseur','2014-12-28 17:47:31'),(89,'INVOICE_SUPPLIER_ADDON_PDF',1,'canelle','chaine',0,'Nom du gestionnaire de generation des factures fournisseur en PDF','2014-12-28 17:47:31'),(90,'INVOICE_SUPPLIER_ADDON_NUMBER',1,'mod_facture_fournisseur_cactus','chaine',0,'Nom du gestionnaire de numerotation des factures fournisseur','2014-12-28 17:47:31'),(93,'PRODUCT_CODEPRODUCT_ADDON',1,'mod_codeproduct_leopard','chaine',0,'Module to control product codes','2014-12-28 17:47:38'),(94,'MAIN_SEARCHFORM_PRODUITSERVICE',1,'1','yesno',0,'Show form for quick product search','2014-12-28 17:47:38'),(95,'MAIN_MODULE_AGENDA',1,'1',NULL,0,NULL,'2014-12-28 17:47:58'),(96,'MAIN_AGENDA_ACTIONAUTO_COMPANY_SENTBYMAIL',1,'1','chaine',0,NULL,'2014-12-28 17:47:58'),(97,'MAIN_AGENDA_ACTIONAUTO_COMPANY_CREATE',1,'1','chaine',0,NULL,'2014-12-28 17:47:58'),(98,'MAIN_AGENDA_ACTIONAUTO_CONTRACT_VALIDATE',1,'1','chaine',0,NULL,'2014-12-28 17:47:58'),(99,'MAIN_AGENDA_ACTIONAUTO_PROPAL_VALIDATE',1,'1','chaine',0,NULL,'2014-12-28 17:47:58'),(100,'MAIN_AGENDA_ACTIONAUTO_PROPAL_SENTBYMAIL',1,'1','chaine',0,NULL,'2014-12-28 17:47:58'),(101,'MAIN_AGENDA_ACTIONAUTO_ORDER_VALIDATE',1,'1','chaine',0,NULL,'2014-12-28 17:47:58'),(102,'MAIN_AGENDA_ACTIONAUTO_ORDER_SENTBYMAIL',1,'1','chaine',0,NULL,'2014-12-28 17:47:58'),(103,'MAIN_AGENDA_ACTIONAUTO_BILL_VALIDATE',1,'1','chaine',0,NULL,'2014-12-28 17:47:58'),(104,'MAIN_AGENDA_ACTIONAUTO_BILL_PAYED',1,'1','chaine',0,NULL,'2014-12-28 17:47:58'),(105,'MAIN_AGENDA_ACTIONAUTO_BILL_CANCEL',1,'1','chaine',0,NULL,'2014-12-28 17:47:58'),(106,'MAIN_AGENDA_ACTIONAUTO_BILL_SENTBYMAIL',1,'1','chaine',0,NULL,'2014-12-28 17:47:58'),(107,'MAIN_AGENDA_ACTIONAUTO_ORDER_SUPPLIER_VALIDATE',1,'1','chaine',0,NULL,'2014-12-28 17:47:58'),(108,'MAIN_AGENDA_ACTIONAUTO_BILL_SUPPLIER_VALIDATE',1,'1','chaine',0,NULL,'2014-12-28 17:47:58'),(109,'MAIN_AGENDA_ACTIONAUTO_SHIPPING_VALIDATE',1,'1','chaine',0,NULL,'2014-12-28 17:47:58'),(110,'MAIN_AGENDA_ACTIONAUTO_SHIPPING_SENTBYMAIL',1,'1','chaine',0,NULL,'2014-12-28 17:47:58'),(111,'MAIN_AGENDA_ACTIONAUTO_BILL_UNVALIDATE',1,'1','chaine',0,NULL,'2014-12-28 17:47:58'),(112,'MAIN_MODULE_PROJET',1,'1',NULL,0,NULL,'2014-12-28 17:48:02'),(113,'PROJECT_ADDON_PDF',1,'baleine','chaine',0,'Name of PDF/ODT project manager class','2014-12-28 17:48:02'),(114,'PROJECT_ADDON',1,'mod_project_simple','chaine',0,'Name of Numbering Rule project manager class','2014-12-28 17:48:02'),(115,'PROJECT_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/projects','chaine',0,NULL,'2014-12-28 17:48:02'),(116,'PROJECT_TASK_ADDON_PDF',1,'','chaine',0,'Name of PDF/ODT tasks manager class','2014-12-28 17:48:02'),(117,'PROJECT_TASK_ADDON',1,'mod_task_simple','chaine',0,'Name of Numbering Rule task manager class','2014-12-28 17:48:02'),(118,'PROJECT_TASK_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/tasks','chaine',0,NULL,'2014-12-28 17:48:02'),(119,'MAIN_MODULE_MARGIN',1,'1',NULL,0,NULL,'2014-12-28 17:48:28'),(120,'MAIN_MODULE_MARGIN_TABS_0',1,'product:+margin:Margins:margins:$user->rights->margins->liretous:/margin/tabs/productMargins.php?id=__ID__','chaine',0,NULL,'2014-12-28 17:48:28'),(121,'MAIN_MODULE_MARGIN_TABS_1',1,'thirdparty:+margin:Margins:margins:empty($user->societe_id) && $user->rights->margins->liretous:/margin/tabs/thirdpartyMargins.php?socid=__ID__','chaine',0,NULL,'2014-12-28 17:48:28'),(122,'MAIN_MODULE_PROPALE',1,'1',NULL,0,NULL,'2014-12-28 17:48:28'),(123,'MAIN_MODULE_SOCIETE',1,'1',NULL,0,NULL,'2014-12-28 17:48:28'),(124,'MAIN_MODULE_PRODUCT',1,'1',NULL,0,NULL,'2014-12-28 17:48:28'),(125,'MAIN_MODULE_CATEGORIE',1,'1',NULL,0,NULL,'2014-12-28 17:48:40'),(126,'CATEGORIE_RECURSIV_ADD',1,'','yesno',0,'Affect parent categories','2014-12-28 17:48:40'),(127,'MAIN_MODULE_PAYPAL',1,'1',NULL,0,NULL,'2014-12-28 17:49:30'),(134,'FACTURE_FREE_TEXT',1,'Comme mentionné dans les CGV, en cas de retard de paiement, une pénalité fixée à 10% du montant net de la facture, par mois de retard entamé, est exigible, sans rappel, le jour suivant la date limite de règlement.\r\nEn cas de retard de paiement, indemnité forfaitaire légale pour frais de recouvrement : 40,00 €','chaine',0,'','2014-12-28 19:03:46'),(145,'MAIN_INFO_SOCIETE_LOGO',1,'logo-petit2.png','chaine',0,'','2015-03-22 14:47:36'),(146,'MAIN_INFO_SOCIETE_LOGO_SMALL',1,'logo-petit2_small.png','chaine',0,'','2015-03-22 14:47:36'),(147,'MAIN_INFO_SOCIETE_LOGO_MINI',1,'logo-petit2_mini.png','chaine',0,'','2015-03-22 14:47:36'),(151,'MAIN_INFO_SOCIETE_COUNTRY',1,'1:FR:France','chaine',0,'','2015-04-03 14:16:33'),(152,'MAIN_INFO_SOCIETE_NOM',1,'Elucyd - EIRL Ludovic MESSINGER','chaine',0,'','2015-04-03 14:16:33'),(153,'MAIN_INFO_SOCIETE_ADDRESS',1,'5, rue de l\'Epinette\r\n','chaine',0,'','2015-04-03 14:16:33'),(154,'MAIN_INFO_SOCIETE_TOWN',1,'Vieux-Charmont','chaine',0,'','2015-04-03 14:16:33'),(155,'MAIN_INFO_SOCIETE_ZIP',1,'25600','chaine',0,'','2015-04-03 14:16:33'),(156,'MAIN_INFO_SOCIETE_STATE',1,'27','chaine',0,'','2015-04-03 14:16:33'),(157,'MAIN_MONNAIE',1,'EUR','chaine',0,'','2015-04-03 14:16:33'),(158,'MAIN_INFO_SOCIETE_TEL',1,'+33 (0)6 72 79 92 92','chaine',0,'','2015-04-03 14:16:33'),(159,'MAIN_INFO_SOCIETE_WEB',1,'www.elucyd.com','chaine',0,'','2015-04-03 14:16:33'),(160,'MAIN_INFO_SOCIETE_FORME_JURIDIQUE',1,'0','chaine',0,'','2015-04-03 14:16:33'),(161,'SOCIETE_FISCAL_MONTH_START',1,'1','chaine',0,'','2015-04-03 14:16:33'),(162,'FACTURE_TVAOPTION',1,'0','chaine',0,'','2015-04-03 14:16:33'),(164,'PROPALE_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/proposals','chaine',0,'','2015-09-29 16:37:33'),(166,'PROPALE_VALIDITY_DURATION',1,'90','chaine',0,'','2015-09-29 16:46:36'),(173,'PROPALE_FREE_TEXT',1,'Conditions de vente : Nos conditions générales de vente sont jointes à ce devis.\r\nPénalités de retard : comme mentionné dans les CGV, en cas de retard de paiement, une pénalité fixée à 5% du montant net de la facture, par mois de retard entamé, est exigible, sans rappel, le jour suivant la date limite de règlement. En cas de retard de paiement, indemnité forfaitaire légale pour frais de recouvrement : 40,00 €\r\n\r\n-','chaine',0,'','2015-09-29 17:19:45'),(174,'FACTURE_RIB_NUMBER',1,'1','chaine',0,'','2015-10-02 14:21:22'),(175,'FACTURE_CHQ_NUMBER',1,'1','chaine',0,'','2015-10-02 14:21:22'),(176,'SYSTEMTOOLS_MYSQLDUMP',1,'/usr/bin/mysqldump','chaine',0,'','2017-05-17 21:49:15');

--
-- Table structure for table `llx_contrat`
--

CREATE TABLE `llx_contrat` (
  `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,
  `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) NOT NULL,
  `fk_commercial_suivi` int(11) NOT NULL,
  `fk_user_author` int(11) NOT NULL DEFAULT '0',
  `fk_user_mise_en_service` int(11) DEFAULT NULL,
  `fk_user_cloture` int(11) DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `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`),
  CONSTRAINT `fk_contrat_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_contrat_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_contrat`
--

INSERT INTO `llx_contrat` (`rowid`, `ref`, `entity`, `tms`, `datec`, `date_contrat`, `statut`, `mise_en_service`, `fin_validite`, `date_cloture`, `fk_soc`, `fk_projet`, `fk_commercial_signature`, `fk_commercial_suivi`, `fk_user_author`, `fk_user_mise_en_service`, `fk_user_cloture`, `note_private`, `note_public`, `import_key`, `extraparams`) VALUES (1,'(PROV1)',1,'2015-09-23 23:43:41','2015-09-23 23:43:41','2015-09-24 00:00:00',0,NULL,NULL,NULL,11,NULL,1,1,1,NULL,NULL,NULL,'Rencontré Mondial Coiffure Paris 2015 => besoin améliorer référencement sur son site pour les mots clés : ciseaux japonais',NULL,NULL);

--
-- Table structure for table `llx_contrat_extrafields`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_contrat_extrafields`
--


--
-- Table structure for table `llx_contratdet`
--

CREATE TABLE `llx_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,
  `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,
  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`),
  CONSTRAINT `fk_contratdet_fk_contrat` FOREIGN KEY (`fk_contrat`) REFERENCES `llx_contrat` (`rowid`),
  CONSTRAINT `fk_contratdet_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_contratdet`
--


--
-- Table structure for table `llx_contratdet_log`
--

CREATE TABLE `llx_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`),
  CONSTRAINT `fk_contratdet_log_fk_contratdet` FOREIGN KEY (`fk_contratdet`) REFERENCES `llx_contratdet` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_contratdet_log`
--


--
-- Table structure for table `llx_cotisation`
--

CREATE TABLE `llx_cotisation` (
  `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,
  `cotisation` double DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `note` text,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_cotisation` (`fk_adherent`,`dateadh`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_cotisation`
--


--
-- Table structure for table `llx_cronjob`
--

CREATE TABLE `llx_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 NOT NULL,
  `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` int(11) NOT NULL DEFAULT '0',
  `frequency` int(11) NOT NULL DEFAULT '0',
  `nbrun` int(11) DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_mod` int(11) DEFAULT NULL,
  `note` text,
  `libname` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_cronjob`
--


--
-- Table structure for table `llx_deplacement`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_deplacement`
--


--
-- Table structure for table `llx_document_generator`
--

CREATE TABLE `llx_document_generator` (
  `rowid` int(10) unsigned NOT NULL,
  `name` varchar(255) NOT NULL,
  `classfile` varchar(255) NOT NULL,
  `class` varchar(255) NOT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_document_generator`
--


--
-- Table structure for table `llx_document_model`
--

CREATE TABLE `llx_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 AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_document_model`
--

INSERT INTO `llx_document_model` (`rowid`, `nom`, `entity`, `type`, `libelle`, `description`) VALUES (2,'einstein',1,'order',NULL,NULL),(3,'crabe',1,'invoice',NULL,NULL),(4,'muscadet',1,'order_supplier',NULL,NULL),(5,'baleine',1,'project',NULL,NULL),(6,'azur',1,'propal',NULL,NULL);

--
-- Table structure for table `llx_don`
--

CREATE TABLE `llx_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',
  `datec` datetime DEFAULT NULL,
  `datedon` datetime DEFAULT NULL,
  `amount` double DEFAULT '0',
  `fk_paiement` int(11) DEFAULT NULL,
  `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,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(24) DEFAULT NULL,
  `phone_mobile` varchar(24) DEFAULT NULL,
  `public` smallint(6) NOT NULL DEFAULT '1',
  `fk_don_projet` int(11) DEFAULT NULL,
  `fk_user_author` int(11) NOT 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,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_don`
--


--
-- Table structure for table `llx_ecm_directories`
--

CREATE TABLE `llx_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(255) 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 `idx_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`),
  CONSTRAINT `fk_ecm_directories_fk_user_c` FOREIGN KEY (`fk_user_c`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_ecm_directories_fk_user_m` FOREIGN KEY (`fk_user_m`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_ecm_directories`
--


--
-- Table structure for table `llx_element_contact`
--

CREATE TABLE `llx_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 `fk_element_contact_fk_c_type_contact` (`fk_c_type_contact`),
  KEY `idx_element_contact_fk_socpeople` (`fk_socpeople`),
  CONSTRAINT `fk_element_contact_fk_c_type_contact` FOREIGN KEY (`fk_c_type_contact`) REFERENCES `llx_c_type_contact` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_element_contact`
--

INSERT INTO `llx_element_contact` (`rowid`, `datecreate`, `statut`, `element_id`, `fk_c_type_contact`, `fk_socpeople`) VALUES (1,'2015-09-23 23:43:41',4,1,10,1),(2,'2015-09-23 23:43:41',4,1,11,1);

--
-- Table structure for table `llx_element_element`
--

CREATE TABLE `llx_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 AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_element_element`
--

INSERT INTO `llx_element_element` (`rowid`, `fk_source`, `sourcetype`, `fk_target`, `targettype`) VALUES (6,1,'order_supplier',7,'invoice_supplier'),(3,3,'propal',4,'facture'),(4,4,'propal',5,'facture'),(5,4,'propal',6,'facture'),(9,4,'propal',10,'facture'),(10,10,'propal',11,'facture'),(11,15,'propal',14,'facture'),(13,15,'propal',17,'facture'),(12,16,'propal',16,'facture'),(15,19,'propal',26,'facture'),(14,20,'propal',25,'facture');

--
-- Table structure for table `llx_element_lock`
--

CREATE TABLE `llx_element_lock` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_element` int(11) NOT NULL,
  `elementtype` varchar(32) NOT NULL,
  `datel` datetime DEFAULT NULL,
  `datem` datetime DEFAULT NULL,
  `sessionid` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_element_lock`
--


--
-- Table structure for table `llx_element_resources`
--

CREATE TABLE `llx_element_resources` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `resource_id` int(11) DEFAULT NULL,
  `resource_type` varchar(64) DEFAULT NULL,
  `element_id` int(11) DEFAULT NULL,
  `element_type` varchar(64) DEFAULT NULL,
  `busy` int(11) DEFAULT NULL,
  `mandatory` int(11) 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=latin1;

--
-- Dumping data for table `llx_element_resources`
--


--
-- Table structure for table `llx_element_tag`
--

CREATE TABLE `llx_element_tag` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `lang` varchar(5) NOT NULL,
  `tag` varchar(255) NOT NULL,
  `fk_element` int(11) NOT NULL,
  `element` varchar(64) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_element_tag` (`entity`,`lang`,`tag`,`fk_element`,`element`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_element_tag`
--


--
-- Table structure for table `llx_entrepot`
--

CREATE TABLE `llx_entrepot` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `label` varchar(255) NOT NULL,
  `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',
  `valo_pmp` float(12,4) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_entrepot_label` (`label`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_entrepot`
--


--
-- Table structure for table `llx_event_element`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_event_element`
--


--
-- Table structure for table `llx_events`
--

CREATE TABLE `llx_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(32) 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=latin1;

--
-- Dumping data for table `llx_events`
--


--
-- Table structure for table `llx_expedition`
--

CREATE TABLE `llx_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,
  `ref_ext` varchar(30) DEFAULT NULL,
  `ref_int` varchar(30) DEFAULT NULL,
  `ref_customer` varchar(30) 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_expedition` datetime DEFAULT NULL,
  `date_delivery` 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',
  `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,
  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`),
  CONSTRAINT `fk_expedition_fk_shipping_method` FOREIGN KEY (`fk_shipping_method`) REFERENCES `llx_c_shipment_mode` (`rowid`),
  CONSTRAINT `fk_expedition_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_expedition_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_expedition_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_expedition`
--


--
-- Table structure for table `llx_expeditiondet`
--

CREATE TABLE `llx_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`),
  CONSTRAINT `fk_expeditiondet_fk_expedition` FOREIGN KEY (`fk_expedition`) REFERENCES `llx_expedition` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_expeditiondet`
--


--
-- Table structure for table `llx_expeditiondet_batch`
--

CREATE TABLE `llx_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`),
  CONSTRAINT `fk_expeditiondet_batch_fk_expeditiondet` FOREIGN KEY (`fk_expeditiondet`) REFERENCES `llx_expeditiondet` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_expeditiondet_batch`
--


--
-- Table structure for table `llx_export_compta`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_export_compta`
--


--
-- Table structure for table `llx_export_model`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_export_model`
--


--
-- Table structure for table `llx_extrafields`
--

CREATE TABLE `llx_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',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `label` varchar(255) NOT NULL,
  `type` varchar(8) DEFAULT NULL,
  `size` varchar(8) DEFAULT NULL,
  `fieldunique` int(11) DEFAULT '0',
  `fieldrequired` int(11) DEFAULT '0',
  `pos` int(11) DEFAULT '0',
  `param` text,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_extrafields_name` (`name`,`entity`,`elementtype`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_extrafields`
--


--
-- Table structure for table `llx_facture`
--

CREATE TABLE `llx_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_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_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_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,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  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`),
  CONSTRAINT `fk_facture_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_facture_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_facture_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_facture_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_facture_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_facture`
--

INSERT INTO `llx_facture` (`rowid`, `facnumber`, `entity`, `ref_ext`, `ref_int`, `ref_client`, `type`, `increment`, `fk_soc`, `datec`, `datef`, `date_valid`, `tms`, `paye`, `amount`, `remise_percent`, `remise_absolue`, `remise`, `close_code`, `close_note`, `tva`, `localtax1`, `localtax2`, `revenuestamp`, `total`, `total_ttc`, `fk_statut`, `fk_user_author`, `fk_user_valid`, `fk_facture_source`, `fk_projet`, `fk_account`, `fk_currency`, `fk_cond_reglement`, `fk_mode_reglement`, `date_lim_reglement`, `note_private`, `note_public`, `model_pdf`, `import_key`, `extraparams`) VALUES (1,'FA1410-0001',1,NULL,NULL,NULL,0,NULL,2,'2014-12-28 18:43:28','2014-10-29','2014-12-28','2014-12-28 19:06:30',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,1141.42000000,1141.42000000,2,1,1,NULL,NULL,NULL,NULL,2,2,'2014-11-28',NULL,NULL,'crabe',NULL,NULL),(2,'FA1410-0002',1,NULL,NULL,NULL,0,NULL,1,'2014-12-28 19:13:47','2014-10-29','2014-12-28','2015-01-10 10:18:23',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,2990.00000000,2990.00000000,2,1,1,NULL,NULL,NULL,NULL,2,2,'2014-11-28',NULL,NULL,'crabe',NULL,NULL),(4,'FA1504-0003',1,NULL,NULL,NULL,0,NULL,2,'2015-04-03 14:23:02','2015-04-02','2015-04-03','2015-04-15 19:51:12',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,1475.00000000,1475.00000000,2,1,1,NULL,NULL,NULL,NULL,2,2,'2015-05-02',NULL,'Intégration des contenus suivant le scénario interactif fournis. Le nombre d\'écran est estimé à 32.\r\nLivraison d\'un export pour web et tablette tactile Androïd et Apple afin d’avoir un fonctionnement hors-ligne via l\'application Articulate.','crabe',NULL,NULL),(5,'AC1507-0001',1,NULL,NULL,'RésaCoif',3,NULL,7,'2015-08-18 13:26:01','2015-07-09','2015-08-18','2015-08-18 13:27:33',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,1300.00000000,1300.00000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2015-07-09','Application mobile\r\nModule prise de rendez-vous chez le coiffeur avec check des dispos\r\nPrésentation des collaborateurs avec leurs spécificités\r\nPage contact (tel adresse)\r\nPage promotion/actualité (mise à jour par le salon)\r\nNotification pour indiquer qu\'il existe une promo\r\n\r\nIphone Ipad Androïd téléphone et tablette.\r\n\r\nDétails module agenda :\r\n\r\nDisponibilité par jours et par coiffeurs\r\nmulti-salon afin de voir la dispo dans les autres salons\r\n\r\nL\'agenda et ensuite visible et modifiable dans chacun des salons\r\n\r\nAvantages :\r\nSalon :\r\nGestion centralisée du planning\r\nMoins de temps au téléphone car clients peuvent réserver en autonomie\r\n\r\nClients :\r\nPrise de RDV facilitée et visibilité des disponibilités\r\nPrise de RDV hors des heures d\'ouverture\r\n\r\nexemple donnée par Loris : https://didacthairbuilding.mylocalsalon.com/onlinebooking/v7410/Steps/SelectServices.aspx',NULL,'crabe',NULL,NULL),(6,'AC1508-0002',1,NULL,NULL,'RésaCoif',3,NULL,7,'2015-08-18 13:29:42','2015-08-15','2015-08-18','2015-08-18 13:33:42',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,1400.00000000,1400.00000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2015-08-15','Application mobile\r\nModule prise de rendez-vous chez le coiffeur avec check des dispos\r\nPrésentation des collaborateurs avec leurs spécificités\r\nPage contact (tel adresse)\r\nPage promotion/actualité (mise à jour par le salon)\r\nNotification pour indiquer qu\'il existe une promo\r\n\r\nIphone Ipad Androïd téléphone et tablette.\r\n\r\nDétails module agenda :\r\n\r\nDisponibilité par jours et par coiffeurs\r\nmulti-salon afin de voir la dispo dans les autres salons\r\n\r\nL\'agenda et ensuite visible et modifiable dans chacun des salons\r\n\r\nAvantages :\r\nSalon :\r\nGestion centralisée du planning\r\nMoins de temps au téléphone car clients peuvent réserver en autonomie\r\n\r\nClients :\r\nPrise de RDV facilitée et visibilité des disponibilités\r\nPrise de RDV hors des heures d\'ouverture\r\n\r\nexemple donnée par Loris : https://didacthairbuilding.mylocalsalon.com/onlinebooking/v7410/Steps/SelectServices.aspx',NULL,'crabe',NULL,NULL),(10,'FA1510-0004',1,NULL,NULL,'RésaCoif',0,NULL,7,'2015-10-02 14:33:43','2015-10-02','2015-10-02','2015-10-29 23:37:18',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,1726.00000000,1726.00000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2015-10-02','Application mobile\r\nModule prise de rendez-vous chez le coiffeur avec check des dispos\r\nPrésentation des collaborateurs avec leurs spécificités\r\nPage contact (tel adresse)\r\nPage promotion/actualité (mise à jour par le salon)\r\nNotification pour indiquer qu\'il existe une promo\r\n\r\nIphone Ipad Androïd téléphone et tablette.\r\n\r\nDétails module agenda :\r\n\r\nDisponibilité par jours et par coiffeurs\r\nmulti-salon afin de voir la dispo dans les autres salons\r\n\r\nL\'agenda et ensuite visible et modifiable dans chacun des salons\r\n\r\nAvantages :\r\nSalon :\r\nGestion centralisée du planning\r\nMoins de temps au téléphone car clients peuvent réserver en autonomie\r\n\r\nClients :\r\nPrise de RDV facilitée et visibilité des disponibilités\r\nPrise de RDV hors des heures d\'ouverture\r\n\r\nexemple donnée par Loris : https://didacthairbuilding.mylocalsalon.com/onlinebooking/v7410/Steps/SelectServices.aspx',NULL,'crabe',NULL,NULL),(11,'FA1512-0005',1,NULL,NULL,'HDV2',0,NULL,7,'2015-12-12 16:49:18','2015-12-12','2015-12-12','2015-12-12 16:49:24',0,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,2450.00000000,2450.00000000,1,1,1,NULL,NULL,NULL,NULL,8,7,'2015-12-12',NULL,NULL,'crabe',NULL,NULL),(12,'FA1609-0006',1,NULL,NULL,NULL,0,NULL,17,'2016-09-19 14:50:38','2016-09-16','2016-09-19','2016-09-19 14:53:01',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,257.19000000,257.19000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2016-09-16',NULL,NULL,'crabe',NULL,NULL),(13,'FA1609-0007',1,NULL,NULL,NULL,0,NULL,18,'2016-09-19 14:56:40','2016-09-01','2016-09-19','2016-09-19 14:58:12',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,74.48000000,74.48000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2016-09-01',NULL,NULL,'crabe',NULL,NULL),(14,'FA1609-0008',1,NULL,NULL,NULL,0,NULL,16,'2016-09-24 01:01:48','2016-09-23','2016-12-28','2016-12-28 12:06:03',0,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,1,1,NULL,NULL,NULL,NULL,3,2,'2016-10-31',NULL,NULL,'crabe',NULL,NULL),(15,'FA1610-0009',1,NULL,NULL,NULL,0,NULL,17,'2016-10-19 19:43:26','2016-10-18','2016-10-19','2016-10-19 17:46:42',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,297.41000000,297.41000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2016-10-18',NULL,NULL,'crabe',NULL,NULL),(16,'FA1611-0010',1,NULL,NULL,NULL,0,NULL,16,'2016-11-22 16:20:37','2016-11-22','2016-11-22','2016-12-28 12:04:41',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,4500.00000000,4500.00000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2016-11-22',NULL,NULL,'crabe',NULL,NULL),(17,'FA1611-0011',1,NULL,NULL,NULL,0,NULL,16,'2016-11-22 16:24:56','2016-11-22','2016-11-22','2016-12-28 12:07:59',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,5000.00000000,5000.00000000,2,1,1,NULL,NULL,NULL,NULL,3,2,'2016-12-31',NULL,NULL,'crabe',NULL,NULL),(18,'FA1612-0012',1,NULL,NULL,NULL,0,NULL,17,'2016-12-28 13:09:20','2016-12-16','2016-12-28','2016-12-28 12:11:37',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,350.98000000,350.98000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2016-12-16',NULL,NULL,'crabe',NULL,NULL),(19,'FA1609-0013',1,NULL,NULL,NULL,0,NULL,18,'2016-12-28 13:14:06','2016-09-29','2016-12-28','2016-12-28 12:44:04',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,119.00000000,119.00000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2016-09-29',NULL,NULL,'crabe',NULL,NULL),(20,'FA1610-0014',1,NULL,NULL,NULL,0,NULL,18,'2016-12-28 13:16:25','2016-10-27','2016-12-28','2016-12-28 12:17:15',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,190.70000000,190.70000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2016-10-27',NULL,NULL,'crabe',NULL,NULL),(21,'FA1612-0015',1,NULL,NULL,NULL,0,NULL,18,'2016-12-28 13:18:03','2016-12-01','2016-12-28','2016-12-28 12:19:00',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,186.22000000,186.22000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2016-12-01',NULL,NULL,'crabe',NULL,NULL),(22,'FA1610-0016',1,NULL,NULL,NULL,0,NULL,22,'2016-12-28 13:30:53','2016-10-20','2016-12-28','2016-12-28 12:33:55',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,15.00000000,15.00000000,2,1,1,NULL,NULL,NULL,NULL,1,0,'2016-10-20',NULL,NULL,'crabe',NULL,NULL),(23,'FA1612-0017',1,NULL,NULL,NULL,0,NULL,23,'2016-12-28 13:34:42','2016-12-06','2016-12-28','2016-12-28 12:36:59',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,75.00000000,75.00000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2016-12-06',NULL,NULL,'crabe',NULL,NULL),(24,'FA1611-0018',1,NULL,NULL,NULL,0,NULL,24,'2016-12-28 13:38:51','2016-11-14','2016-12-28','2016-12-28 12:40:45',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,21.90000000,21.90000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2016-11-14',NULL,NULL,'crabe',NULL,NULL),(25,'FA1701-0019',1,NULL,NULL,NULL,0,NULL,7,'2017-01-26 14:58:26','2017-01-26','2017-01-26','2017-01-26 13:59:38',0,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,3000.00000000,3000.00000000,1,1,1,NULL,NULL,NULL,NULL,1,7,'2017-01-26',NULL,NULL,'crabe',NULL,NULL),(26,'FA1701-0020',1,NULL,NULL,NULL,0,NULL,21,'2017-01-26 15:08:41','2016-12-27','2017-02-02','2017-04-30 16:48:37',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,1910.00000000,1910.00000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2017-02-15',NULL,NULL,'crabe',NULL,NULL),(27,'FA1612-0021',1,NULL,NULL,NULL,0,NULL,18,'2017-01-26 15:24:54','2016-12-29','2017-01-26','2017-01-26 14:27:24',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,107.50000000,107.50000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2016-12-29',NULL,NULL,'crabe',NULL,NULL),(28,'FA1701-0022',1,NULL,NULL,NULL,0,NULL,18,'2017-04-25 19:17:52','2017-01-24','2017-04-25','2017-04-25 17:19:55',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,172.27000000,172.27000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2017-01-24',NULL,NULL,'crabe',NULL,NULL),(29,'FA1701-0023',1,NULL,NULL,NULL,0,NULL,17,'2017-04-25 19:20:50','2017-01-17','2017-04-25','2017-04-25 17:21:52',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,236.78000000,236.78000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2017-01-17',NULL,NULL,'crabe',NULL,NULL),(30,'FA1702-0024',1,NULL,NULL,NULL,0,NULL,17,'2017-04-25 19:23:08','2017-02-17','2017-04-25','2017-04-25 17:23:57',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,510.30000000,510.30000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2017-02-17',NULL,NULL,'crabe',NULL,NULL),(31,'FA1703-0025',1,NULL,NULL,NULL,0,NULL,18,'2017-04-25 19:26:54','2017-03-09','2017-04-25','2017-04-25 17:28:08',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,220.57000000,220.57000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2017-03-09',NULL,NULL,'crabe',NULL,NULL),(32,'FA1704-0026',1,NULL,NULL,NULL,0,NULL,18,'2017-04-25 19:33:53','2017-04-06','2017-04-25','2017-04-25 17:34:41',1,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,277.21000000,277.21000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2017-04-06',NULL,NULL,'crabe',NULL,NULL),(33,'(PROV33)',1,NULL,NULL,NULL,0,NULL,21,'2017-04-30 18:45:28','2016-12-30',NULL,'2017-04-30 16:45:28',0,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,1,NULL,NULL,NULL,NULL,NULL,1,7,'2016-12-30',NULL,NULL,'crabe',NULL,NULL),(35,'FA1703-0027',1,NULL,NULL,NULL,0,NULL,26,'2017-05-17 15:57:27','2017-03-08','2017-05-17','2017-05-17 14:01:09',0,0.00000000,NULL,NULL,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,1200.00000000,1200.00000000,1,1,1,NULL,NULL,NULL,NULL,1,2,'2017-03-08',NULL,NULL,'crabe',NULL,NULL);

--
-- Table structure for table `llx_facture_extrafields`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_facture_extrafields`
--


--
-- Table structure for table `llx_facture_fourn`
--

CREATE TABLE `llx_facture_fourn` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) DEFAULT NULL,
  `ref_supplier` varchar(50) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_ext` varchar(30) DEFAULT NULL,
  `type` smallint(6) NOT NULL DEFAULT '0',
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `datef` 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_valid` int(11) DEFAULT NULL,
  `fk_facture_source` int(11) DEFAULT NULL,
  `fk_projet` 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,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_facture_fourn_ref_supplier` (`ref_supplier`,`fk_soc`,`entity`),
  UNIQUE KEY `uk_facture_fourn_ref` (`ref`,`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`),
  CONSTRAINT `fk_facture_fourn_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_facture_fourn_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_facture_fourn_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_facture_fourn_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_facture_fourn`
--

INSERT INTO `llx_facture_fourn` (`rowid`, `ref`, `ref_supplier`, `entity`, `ref_ext`, `type`, `fk_soc`, `datec`, `datef`, `tms`, `libelle`, `paye`, `amount`, `remise`, `close_code`, `close_note`, `tva`, `localtax1`, `localtax2`, `total`, `total_ht`, `total_tva`, `total_ttc`, `fk_statut`, `fk_user_author`, `fk_user_valid`, `fk_facture_source`, `fk_projet`, `fk_cond_reglement`, `fk_mode_reglement`, `date_lim_reglement`, `note_private`, `note_public`, `model_pdf`, `import_key`, `extraparams`) VALUES (1,'SI1501-0001','123RF',1,NULL,0,4,'2015-01-28 23:54:26','2015-01-29','2015-01-28 23:56:31','Crédits photos',1,0.00000000,0.00000000,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,38.00000000,0.00000000,38.00000000,2,1,1,NULL,NULL,1,6,'2015-01-29','','',NULL,NULL,NULL),(2,'SI1501-0002','Google',1,NULL,0,5,'2015-01-29 00:02:45','2015-01-08','2015-01-29 00:03:48','Programme développeur',1,0.00000000,0.00000000,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,21.86000000,0.00000000,21.86000000,2,1,1,NULL,NULL,1,6,'2015-01-08','','',NULL,NULL,NULL),(3,'SI1506-0003','Apple',1,NULL,0,8,'2015-06-18 15:23:32','2015-06-18','2015-06-29 07:40:58','Compte DEV Apple',1,0.00000000,0.00000000,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,99.00000000,0.00000000,99.00000000,2,1,1,NULL,NULL,1,0,'2015-06-18','','',NULL,NULL,NULL),(4,'SI1508-0004','OVHNDDE',1,NULL,0,9,'2015-08-18 13:15:12','2015-08-18','2015-08-18 15:02:42','',1,0.00000000,0.00000000,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,28.97000000,5.79000000,34.76000000,2,1,1,NULL,NULL,1,6,'2015-08-18','','',NULL,NULL,NULL),(7,'SI1508-0005','AppleD',1,NULL,0,8,'2015-08-18 15:06:46','2015-08-18','2015-08-18 15:08:33','',1,0.00000000,0.00000000,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,99.00000000,0.00000000,99.00000000,2,1,1,NULL,NULL,1,6,'2015-08-18','','',NULL,NULL,NULL),(8,'SI1507-0006','OVHNDDBS',1,NULL,0,9,'2015-08-18 15:17:34','2015-07-24','2015-08-18 15:18:56','',1,0.00000000,0.00000000,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,33.96000000,6.79000000,40.75000000,2,1,1,NULL,NULL,1,6,'2015-07-24','','',NULL,NULL,NULL),(9,'SI1507-0007','EnvatoBLoris',1,NULL,0,10,'2015-08-18 15:22:12','2015-07-23','2015-08-18 15:22:55','',1,0.00000000,0.00000000,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,44.57000000,8.91000000,53.48000000,2,1,1,NULL,NULL,1,6,'2015-07-23','','',NULL,NULL,NULL),(10,'SI1510-0008','OVHMXPLAN',1,NULL,0,9,'2015-10-01 22:47:43','2015-10-02','2015-10-01 22:48:52','',1,0.00000000,0.00000000,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,5.00000000,1.00000000,6.00000000,2,1,1,NULL,NULL,9,6,'2015-10-02','','',NULL,NULL,NULL),(11,'SI1511-0009','OVHNDD3',1,NULL,0,9,'2015-11-27 00:23:46','2015-11-27','2015-11-27 00:25:49','',1,0.00000000,0.00000000,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,56.86000000,11.37000000,68.23000000,2,1,1,NULL,NULL,1,6,'2015-11-27','','',NULL,NULL,NULL),(12,'SI1603-0010','123RF16',1,NULL,0,4,'2016-03-22 16:33:42','2016-03-15','2016-03-22 16:44:45','Achat crédits photos',1,0.00000000,0.00000000,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,39.00000000,0.00000000,39.00000000,2,1,1,NULL,NULL,9,6,'2016-03-15','','',NULL,NULL,NULL),(13,'SI1603-0011','OVHMXPLAN16-1',1,NULL,0,9,'2016-03-22 16:47:10','2016-03-04','2016-03-22 16:48:47','Renouvellement serveur',1,0.00000000,0.00000000,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,245.94000000,49.19000000,295.13000000,2,1,1,NULL,NULL,1,6,'2016-03-04','','',NULL,NULL,NULL),(14,'SI1601-0012','Loc 28-janv',1,NULL,0,13,'2016-03-22 16:56:53','2016-01-28','2016-03-22 16:57:51','',1,0.00000000,0.00000000,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,24.00000000,4.80000000,28.80000000,2,1,1,NULL,NULL,1,4,'2016-01-28','','',NULL,NULL,NULL),(15,'SI1609-0013','Appli09',1,NULL,0,8,'2016-10-05 18:08:59','2016-09-29','2016-10-05 16:11:14','Appli09',1,0.00000000,0.00000000,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,119.00000000,0.00000000,119.00000000,2,1,1,NULL,NULL,1,2,'2016-09-29','','',NULL,NULL,NULL);

--
-- Table structure for table `llx_facture_fourn_det`
--

CREATE TABLE `llx_facture_fourn_det` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_facture_fourn` int(11) NOT 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',
  `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',
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facture_fourn_det_fk_facture` (`fk_facture_fourn`),
  CONSTRAINT `fk_facture_fourn_det_fk_facture` FOREIGN KEY (`fk_facture_fourn`) REFERENCES `llx_facture_fourn` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_facture_fourn_det`
--

INSERT INTO `llx_facture_fourn_det` (`rowid`, `fk_facture_fourn`, `fk_product`, `ref`, `label`, `description`, `pu_ht`, `pu_ttc`, `qty`, `remise_percent`, `tva_tx`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `total_ht`, `tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `date_start`, `date_end`, `info_bits`, `fk_code_ventilation`, `import_key`) VALUES (1,1,NULL,NULL,NULL,'achat crédit photos',38.00000000,38.00000000,1,0,0.000,0.000,'0',0.000,'0',38.00000000,0.00000000,0.00000000,0.00000000,38.00000000,1,NULL,NULL,0,0,NULL),(2,2,NULL,NULL,NULL,'Paiement programme développement',21.86000000,21.86000000,1,0,0.000,0.000,'0',0.000,'0',21.86000000,0.00000000,0.00000000,0.00000000,21.86000000,1,NULL,NULL,0,0,NULL),(3,3,NULL,NULL,NULL,'Compte Apple Dev',99.00000000,99.00000000,1,0,0.000,0.000,'0',0.000,'0',99.00000000,0.00000000,0.00000000,0.00000000,99.00000000,1,NULL,NULL,0,0,NULL),(5,4,NULL,NULL,NULL,'NDDs Elucyd',28.96667000,34.76000000,1,0,20.000,0.000,'0',0.000,'0',28.97000000,5.79000000,0.00000000,0.00000000,34.76000000,1,NULL,NULL,0,0,NULL),(6,7,NULL,NULL,NULL,'Apple Dev',99.00000000,99.00000000,1,0,0.000,0.000,'',0.000,'',99.00000000,0.00000000,0.00000000,0.00000000,99.00000000,1,NULL,NULL,0,0,NULL),(7,8,NULL,NULL,NULL,'NDD pour BBSigne',33.95833000,40.75000000,1,0,20.000,0.000,'0',0.000,'0',33.96000000,6.79000000,0.00000000,0.00000000,40.75000000,1,NULL,NULL,0,0,NULL),(8,9,NULL,NULL,NULL,'Bookly plugin WP',44.56667000,53.48000000,1,0,20.000,0.000,'0',0.000,'0',44.57000000,8.91000000,0.00000000,0.00000000,53.48000000,1,NULL,NULL,0,0,NULL),(9,10,NULL,NULL,NULL,'MX Plan pour bebe-signe.com',5.00000000,6.00000000,1,0,20.000,0.000,'0',0.000,'0',5.00000000,1.00000000,0.00000000,0.00000000,6.00000000,1,NULL,NULL,0,0,NULL),(10,11,NULL,NULL,NULL,'NDD ludm.net photos-3d et les-maitres-restaurateurs',56.85833000,68.23000000,1,0,20.000,0.000,'0',0.000,'0',56.86000000,11.37000000,0.00000000,0.00000000,68.23000000,1,NULL,NULL,0,0,NULL),(11,12,NULL,NULL,NULL,'Crédits photos',39.00000000,39.00000000,1,0,0.000,0.000,'0',0.000,'0',39.00000000,0.00000000,0.00000000,0.00000000,39.00000000,1,NULL,NULL,0,0,NULL),(12,13,NULL,NULL,NULL,'Hébergement 6 mois serveurs Plesk',245.94000000,295.12800000,1,0,20.000,0.000,'0',0.000,'0',245.94000000,49.19000000,0.00000000,0.00000000,295.13000000,1,NULL,NULL,0,0,NULL),(13,14,NULL,NULL,NULL,'LOcation Micro',24.00000000,28.80000000,1,0,20.000,0.000,'0',0.000,'0',24.00000000,4.80000000,0.00000000,0.00000000,28.80000000,1,NULL,NULL,0,0,NULL),(14,15,NULL,NULL,NULL,'Vente Appli',119.00000000,119.00000000,1,0,0.000,0.000,'0',0.000,'0',119.00000000,0.00000000,0.00000000,0.00000000,119.00000000,1,NULL,NULL,0,0,NULL);

--
-- Table structure for table `llx_facture_fourn_extrafields`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_facture_fourn_extrafields`
--


--
-- Table structure for table `llx_facture_rec`
--

CREATE TABLE `llx_facture_rec` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `titre` varchar(50) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `amount` double(24,8) NOT NULL DEFAULT '0.00000000',
  `remise` double DEFAULT '0',
  `remise_percent` double DEFAULT '0',
  `remise_absolue` 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` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT '0.00000000',
  `fk_user_author` 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,
  `note_private` text,
  `note_public` text,
  `usenewprice` int(11) DEFAULT '0',
  `frequency` int(11) DEFAULT NULL,
  `unit_frequency` varchar(2) DEFAULT 'd',
  `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,
  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`),
  CONSTRAINT `fk_facture_rec_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_facture_rec_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_facture_rec_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_facture_rec`
--


--
-- Table structure for table `llx_facturedet`
--

CREATE TABLE `llx_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,
  `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(10) unsigned DEFAULT '0',
  `rang` int(11) DEFAULT '0',
  `import_key` varchar(14) DEFAULT NULL,
  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`),
  CONSTRAINT `fk_facturedet_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=80 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_facturedet`
--

INSERT INTO `llx_facturedet` (`rowid`, `fk_facture`, `fk_parent_line`, `fk_product`, `label`, `description`, `tva_tx`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `qty`, `remise_percent`, `remise`, `fk_remise_except`, `subprice`, `price`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `date_start`, `date_end`, `info_bits`, `buy_price_ht`, `fk_product_fournisseur_price`, `fk_code_ventilation`, `special_code`, `rang`, `import_key`) VALUES (1,1,NULL,NULL,NULL,'Installation-configuration Open Meeting avec plugin Moodle',0.000,0.000,'0',0.000,'0',1,0,0,NULL,206.72000000,NULL,206.72000000,0.00000000,0.00000000,0.00000000,206.72000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(2,1,NULL,NULL,NULL,'Mise à jour PHP/MySQL pour installation Moodle 2,7',0.000,0.000,'0',0.000,'0',1,0,0,NULL,291.84000000,NULL,291.84000000,0.00000000,0.00000000,0.00000000,291.84000000,1,NULL,NULL,0,0.00000000,NULL,0,0,2,NULL),(3,1,NULL,NULL,NULL,'Migration WordPress aidenfance.eu',0.000,0.000,'0',0.000,'0',1,0,0,NULL,170.24000000,NULL,170.24000000,0.00000000,0.00000000,0.00000000,170.24000000,1,NULL,NULL,0,0.00000000,NULL,0,0,3,NULL),(4,1,NULL,NULL,NULL,'Modification BdD et capitalisation dans base connaissances',0.000,0.000,'0',0.000,'0',1,0,0,NULL,36.48000000,NULL,36.48000000,0.00000000,0.00000000,0.00000000,36.48000000,1,NULL,NULL,0,0.00000000,NULL,0,0,4,NULL),(5,1,NULL,NULL,NULL,'Résolutions divers bugs sur le serveu',0.000,0.000,'0',0.000,'0',1,0,0,NULL,72.96000000,NULL,72.96000000,0.00000000,0.00000000,0.00000000,72.96000000,1,NULL,NULL,0,0.00000000,NULL,0,0,5,NULL),(6,1,NULL,NULL,NULL,'Conseils installation Sympa et config serveur',0.000,0.000,'0',0.000,'0',1,0,0,NULL,363.18000000,NULL,363.18000000,0.00000000,0.00000000,0.00000000,363.18000000,1,NULL,NULL,0,0.00000000,NULL,0,0,6,NULL),(7,2,NULL,NULL,NULL,'Modélisation maisons',0.000,0.000,'0',0.000,'0',8,0,0,NULL,270.00000000,NULL,2160.00000000,0.00000000,0.00000000,0.00000000,2160.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(8,2,NULL,NULL,NULL,'Modélisation immeuble',0.000,0.000,'0',0.000,'0',1,0,0,NULL,380.00000000,NULL,380.00000000,0.00000000,0.00000000,0.00000000,380.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,2,NULL),(9,2,NULL,NULL,NULL,'Modélisation terrain',0.000,0.000,'0',0.000,'0',1,0,0,NULL,150.00000000,NULL,150.00000000,0.00000000,0.00000000,0.00000000,150.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,3,NULL),(10,2,NULL,NULL,NULL,'Mise en place des maisons sur le terrain avec route et muret\r\n(Fourniture du fichier en .max)',0.000,0.000,'0',0.000,'0',1,0,0,NULL,300.00000000,NULL,300.00000000,0.00000000,0.00000000,0.00000000,300.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,4,NULL),(17,4,NULL,NULL,NULL,'traitement vidéo',0.000,0.000,'0',0.000,'0',1,0,0,NULL,100.00000000,NULL,100.00000000,0.00000000,0.00000000,0.00000000,100.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(18,4,NULL,NULL,NULL,'traitement photo',0.000,0.000,'0',0.000,'0',1,0,0,NULL,100.00000000,NULL,100.00000000,0.00000000,0.00000000,0.00000000,100.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,2,NULL),(19,4,NULL,NULL,NULL,'création de l\'architecture interactive',0.000,0.000,'0',0.000,'0',1,0,0,NULL,120.00000000,NULL,120.00000000,0.00000000,0.00000000,0.00000000,120.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,3,NULL),(20,4,NULL,NULL,NULL,'intégration',0.000,0.000,'0',0.000,'0',1,0,0,NULL,780.00000000,NULL,780.00000000,0.00000000,0.00000000,0.00000000,780.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,4,NULL),(21,4,NULL,NULL,NULL,'adaptation template Storyline',0.000,0.000,'0',0.000,'0',1,0,0,NULL,260.00000000,NULL,260.00000000,0.00000000,0.00000000,0.00000000,260.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,5,NULL),(22,4,NULL,NULL,NULL,'exports et tests',0.000,0.000,'0',0.000,'0',1,0,0,NULL,115.00000000,NULL,115.00000000,0.00000000,0.00000000,0.00000000,115.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,6,NULL),(23,5,NULL,NULL,'Acompte','Acompte',0.000,0.000,'0',0.000,'0',1,0,0,NULL,1300.00000000,NULL,1300.00000000,0.00000000,0.00000000,0.00000000,1300.00000000,0,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(24,6,NULL,NULL,'Acompte','Acompte',0.000,0.000,'0',0.000,'0',1,0,0,NULL,1400.00000000,NULL,1400.00000000,0.00000000,0.00000000,0.00000000,1400.00000000,0,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(43,10,NULL,NULL,NULL,'Solde de l\'appplication HairDV',0.000,0.000,'0',0.000,'0',1,0,0,NULL,1726.00000000,NULL,1726.00000000,0.00000000,0.00000000,0.00000000,1726.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(44,11,NULL,NULL,NULL,'Gestion crédits',0.000,0.000,'0',0.000,'0',1,0,0,NULL,1575.00000000,NULL,1575.00000000,0.00000000,0.00000000,0.00000000,1575.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(45,11,NULL,NULL,NULL,'Gestion points fidélités',0.000,0.000,'0',0.000,'0',1,0,0,NULL,600.00000000,NULL,600.00000000,0.00000000,0.00000000,0.00000000,600.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,2,NULL),(46,11,NULL,NULL,NULL,'Gestion prestas',0.000,0.000,'0',0.000,'0',1,0,0,NULL,275.00000000,NULL,275.00000000,0.00000000,0.00000000,0.00000000,275.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,3,NULL),(47,12,NULL,NULL,NULL,'Vente applis',0.000,0.000,'0',0.000,'0',1,0,0,NULL,257.19000000,NULL,257.19000000,0.00000000,0.00000000,0.00000000,257.19000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(48,13,NULL,NULL,NULL,'Vente applis Apple',0.000,0.000,'0',0.000,'0',1,0,0,NULL,74.48000000,NULL,74.48000000,0.00000000,0.00000000,0.00000000,74.48000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(50,15,NULL,NULL,NULL,'Ventes applis',0.000,0.000,'0',0.000,'0',1,0,0,NULL,297.41000000,NULL,297.41000000,0.00000000,0.00000000,0.00000000,297.41000000,1,NULL,NULL,0,297.41000000,NULL,0,0,1,NULL),(51,16,NULL,NULL,NULL,'Réalisation de 3 modules multimédia avec Storyline\r\nCommande n°4500081877',0.000,0.000,'0',0.000,'0',1,0,0,NULL,4500.00000000,NULL,4500.00000000,0.00000000,0.00000000,0.00000000,4500.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(52,17,NULL,NULL,NULL,'Conception multimédia Storyline pour 3 modules e-learning DU FIPA.\r\nRéalisation à partir des storyboards des modules.\r\nLivraison des fichiers sources au format .story\r\n\r\nAssistance et conseils pour la conception d\'un module multimédia avec Storyline\r\n\r\nCommande n°4500081866',0.000,0.000,'0',0.000,'0',1,0,0,NULL,5000.00000000,NULL,5000.00000000,0.00000000,0.00000000,0.00000000,5000.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(53,14,NULL,NULL,NULL,'problème fact',0.000,0.000,'0',0.000,'0',1,0,0,NULL,0.00000000,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(54,18,NULL,NULL,NULL,'Ventes applis',0.000,0.000,'0',0.000,'0',1,0,0,NULL,350.98000000,NULL,350.98000000,0.00000000,0.00000000,0.00000000,350.98000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(55,19,NULL,NULL,NULL,'Vente Appli',0.000,0.000,'0',0.000,'0',1,0,0,NULL,119.00000000,NULL,119.00000000,0.00000000,0.00000000,0.00000000,119.00000000,1,NULL,NULL,0,119.00000000,NULL,0,0,1,NULL),(56,20,NULL,NULL,NULL,'Vente Appli',0.000,0.000,'0',0.000,'0',1,0,0,NULL,190.70000000,NULL,190.70000000,0.00000000,0.00000000,0.00000000,190.70000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(57,21,NULL,NULL,NULL,'Vente Appli',0.000,0.000,'0',0.000,'0',1,0,0,NULL,186.22000000,NULL,186.22000000,0.00000000,0.00000000,0.00000000,186.22000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(58,22,NULL,23,NULL,'',0.000,0.000,'0',0.000,'0',1,0,0,NULL,15.00000000,NULL,15.00000000,0.00000000,0.00000000,0.00000000,15.00000000,0,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(59,23,NULL,23,NULL,'',0.000,0.000,'0',0.000,'0',5,0,0,NULL,15.00000000,NULL,75.00000000,0.00000000,0.00000000,0.00000000,75.00000000,0,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(60,24,NULL,24,NULL,'',0.000,0.000,'0',0.000,'0',1,0,0,NULL,21.90000000,NULL,21.90000000,0.00000000,0.00000000,0.00000000,21.90000000,0,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(61,25,NULL,NULL,NULL,'Visualisations des infos clients :\r\n<ul><li>email</li><li>date de naissance</li><li>date d\'inscription</li><li>nombre de visites</li><li>date dernière visite</li>\r\n</ul>\r\nCréation d’un évènement marketing avec conditions d’envoi :\r\n<ul>\r\n<li>X jours avant l\'anniversaire</li>\r\n<li>X jours après dernière visite</li>\r\n<li>X jours après la Xième visite</li>\r\n<li>après la Xième visite</li>\r\n<li>date fixe</li>\r\n</ul><br/>\r\nAutomatisation des envois marketing  :\r\n<ul>\r\nMise en place d\'un système utilisant Mailjet et Octopush pour envoyer les messages par email et/ou sms\r\n</ul>',0.000,0.000,'0',0.000,'0',1,0,0,NULL,2500.00000000,NULL,2500.00000000,0.00000000,0.00000000,0.00000000,2500.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(62,25,NULL,NULL,NULL,'Enquête de satisfaction : mise en place de Lime Survey',0.000,0.000,'0',0.000,'0',1,0,0,NULL,250.00000000,NULL,250.00000000,0.00000000,0.00000000,0.00000000,250.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,2,NULL),(63,25,NULL,NULL,NULL,'Affichage QR Code dans l\'application IOS et Androïd',0.000,0.000,'0',0.000,'0',1,0,0,NULL,150.00000000,NULL,150.00000000,0.00000000,0.00000000,0.00000000,150.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,3,NULL),(64,25,NULL,NULL,NULL,'Export mensuel automatique (prix initial 195€, réduction de 95€)',0.000,0.000,'0',0.000,'0',1,0,0,NULL,100.00000000,NULL,100.00000000,0.00000000,0.00000000,0.00000000,100.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,4,NULL),(65,26,NULL,NULL,NULL,'1 journée de tournage avec matériel :\r\n<ul>\r\n<li>Panasonic G5</li>\r\n<li>Objectif 25mm (equiv 50) spécial portrait</li>\r\n<li>Microphone</li>\r\n<li>2 boîtes à lumières pour mise en lumière de la scène</li>\r\n</ul>\r\nDéplacement sur région lyonnaise inclus',0.000,0.000,'0',0.000,'0',1,0,0,NULL,550.00000000,NULL,550.00000000,0.00000000,0.00000000,0.00000000,550.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(66,26,NULL,NULL,NULL,'Montage d\'une vidéo d\'une durée d\'environ 3-4 minutes comprenant :\r\n<ul>\r\n<li>Plan avec titre de la vidéo</li>\r\n<li>Environ 8 séquences (composées du titre de la séquence, 1 plan vidéo)</li>\r\n</ul>\r\nLivraison de la vidéo au format mp4 h264 Full HD',0.000,0.000,'0',0.000,'0',4,0,0,NULL,340.00000000,NULL,1360.00000000,0.00000000,0.00000000,0.00000000,1360.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,2,NULL),(67,26,NULL,NULL,NULL,'Transcription de l\'audio en texte la vidéo 4',0.000,0.000,'0',0.000,'0',0,100,0,NULL,51.00000000,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,0.00000000,NULL,0,0,3,NULL),(69,27,NULL,NULL,NULL,'Vente appli Bébé Signe',0.000,0.000,'0',0.000,'0',1,0,0,NULL,107.50000000,NULL,107.50000000,0.00000000,0.00000000,0.00000000,107.50000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(70,28,NULL,NULL,NULL,'Appli BBS',0.000,0.000,'0',0.000,'0',1,0,0,NULL,172.27000000,NULL,172.27000000,0.00000000,0.00000000,0.00000000,172.27000000,1,NULL,NULL,0,172.27000000,NULL,0,0,1,NULL),(71,29,NULL,NULL,NULL,'Appli BBS',0.000,0.000,'0',0.000,'0',1,0,0,NULL,236.78000000,NULL,236.78000000,0.00000000,0.00000000,0.00000000,236.78000000,1,NULL,NULL,0,0.00000000,NULL,0,0,1,NULL),(72,30,NULL,NULL,NULL,'Appli BBS',0.000,0.000,'0',0.000,'0',1,0,0,NULL,510.30000000,NULL,510.30000000,0.00000000,0.00000000,0.00000000,510.30000000,1,NULL,NULL,0,510.30000000,NULL,0,0,1,NULL),(73,31,NULL,NULL,NULL,'Appli BBS',0.000,0.000,'0',0.000,'0',1,0,0,NULL,220.57000000,NULL,220.57000000,0.00000000,0.00000000,0.00000000,220.57000000,1,NULL,NULL,0,220.57000000,NULL,0,0,1,NULL),(74,32,NULL,NULL,NULL,'Appli BBS',0.000,0.000,'0',0.000,'0',1,0,0,NULL,277.21000000,NULL,277.21000000,0.00000000,0.00000000,0.00000000,277.21000000,1,NULL,NULL,0,277.21000000,NULL,0,0,1,NULL),(79,35,NULL,NULL,NULL,'Formation Articulate Storyline pour INTEFP 06-07 mars 2017\r\nCommande numéro ACDE17-00405',0.000,0.000,'0',0.000,'0',1,0,0,NULL,1200.00000000,NULL,1200.00000000,0.00000000,0.00000000,0.00000000,1200.00000000,1,NULL,NULL,0,1200.00000000,NULL,0,0,1,NULL);

--
-- Table structure for table `llx_facturedet_extrafields`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_facturedet_extrafields`
--


--
-- Table structure for table `llx_facturedet_rec`
--

CREATE TABLE `llx_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,
  `tva_tx` double(6,3) DEFAULT '19.600',
  `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',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_facturedet_rec`
--


--
-- Table structure for table `llx_fichinter`
--

CREATE TABLE `llx_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,
  `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_valid` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT '0',
  `duree` double DEFAULT NULL,
  `description` text,
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_fichinter_ref` (`ref`,`entity`),
  KEY `idx_fichinter_fk_soc` (`fk_soc`),
  CONSTRAINT `fk_fichinter_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_fichinter`
--


--
-- Table structure for table `llx_fichinter_extrafields`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_fichinter_extrafields`
--


--
-- Table structure for table `llx_fichinterdet`
--

CREATE TABLE `llx_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`),
  CONSTRAINT `fk_fichinterdet_fk_fichinter` FOREIGN KEY (`fk_fichinter`) REFERENCES `llx_fichinter` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_fichinterdet`
--


--
-- Table structure for table `llx_holiday`
--

CREATE TABLE `llx_holiday` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_user` int(11) NOT NULL,
  `fk_user_create` int(11) DEFAULT 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,
  PRIMARY KEY (`rowid`),
  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=latin1;

--
-- Dumping data for table `llx_holiday`
--


--
-- Table structure for table `llx_holiday_config`
--

CREATE TABLE `llx_holiday_config` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `value` text,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_holiday_config`
--

INSERT INTO `llx_holiday_config` (`rowid`, `name`, `value`) VALUES (1,'userGroup',NULL),(2,'lastUpdate',NULL),(3,'nbUser',NULL),(4,'delayForRequest','31'),(5,'AlertValidatorDelay','0'),(6,'AlertValidatorSolde','0'),(7,'nbHolidayDeducted','1'),(8,'nbHolidayEveryMonth','2.08334');

--
-- Table structure for table `llx_holiday_events`
--

CREATE TABLE `llx_holiday_events` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT '1',
  `name` varchar(255) NOT NULL,
  `value` text NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_holiday_name` (`name`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_holiday_events`
--


--
-- Table structure for table `llx_holiday_logs`
--

CREATE TABLE `llx_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,
  `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=latin1;

--
-- Dumping data for table `llx_holiday_logs`
--


--
-- Table structure for table `llx_holiday_users`
--

CREATE TABLE `llx_holiday_users` (
  `fk_user` int(11) NOT NULL,
  `nb_holiday` double NOT NULL DEFAULT '0',
  PRIMARY KEY (`fk_user`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_holiday_users`
--


--
-- Table structure for table `llx_import_model`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_import_model`
--


--
-- Table structure for table `llx_links`
--

CREATE TABLE `llx_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`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_links`
--


--
-- Table structure for table `llx_livraison`
--

CREATE TABLE `llx_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(30) DEFAULT NULL,
  `ref_int` varchar(30) DEFAULT NULL,
  `ref_customer` varchar(30) 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` date 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,
  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`),
  CONSTRAINT `fk_livraison_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_livraison_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_livraison_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_livraison`
--


--
-- Table structure for table `llx_livraisondet`
--

CREATE TABLE `llx_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`),
  CONSTRAINT `fk_livraisondet_fk_livraison` FOREIGN KEY (`fk_livraison`) REFERENCES `llx_livraison` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_livraisondet`
--


--
-- Table structure for table `llx_localtax`
--

CREATE TABLE `llx_localtax` (
  `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,
  `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=latin1;

--
-- Dumping data for table `llx_localtax`
--


--
-- Table structure for table `llx_mailing`
--

CREATE TABLE `llx_mailing` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `statut` smallint(6) DEFAULT '0',
  `titre` varchar(60) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `sujet` varchar(60) 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=latin1;

--
-- Dumping data for table `llx_mailing`
--


--
-- Table structure for table `llx_mailing_cibles`
--

CREATE TABLE `llx_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(160) DEFAULT NULL,
  `source_id` int(11) DEFAULT NULL,
  `source_type` varchar(16) DEFAULT NULL,
  `date_envoi` datetime DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_mailing_cibles` (`fk_mailing`,`email`),
  KEY `idx_mailing_cibles_email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_mailing_cibles`
--


--
-- Table structure for table `llx_menu`
--

CREATE TABLE `llx_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(24) DEFAULT NULL,
  `fk_leftmenu` varchar(24) 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` varchar(255) DEFAULT NULL,
  `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 AUTO_INCREMENT=20 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_menu`
--

INSERT INTO `llx_menu` (`rowid`, `menu_handler`, `entity`, `module`, `type`, `mainmenu`, `leftmenu`, `fk_menu`, `fk_mainmenu`, `fk_leftmenu`, `position`, `url`, `target`, `titre`, `langs`, `level`, `perms`, `enabled`, `usertype`, `tms`) VALUES (1,'all',1,'ecm','top','ecm',NULL,0,NULL,NULL,100,'/ecm/index.php','','MenuECM','ecm',NULL,'$user->rights->ecm->read || $user->rights->ecm->upload || $user->rights->ecm->setup','$conf->ecm->enabled',2,'2014-12-28 17:46:47'),(2,'all',1,'ecm','left','ecm','ecm',-1,'ecm',NULL,101,'/ecm/index.php?mainmenu=ecm&leftmenu=ecm','','ECMArea','ecm',NULL,'$user->rights->ecm->read || $user->rights->ecm->upload','$user->rights->ecm->read || $user->rights->ecm->upload',2,'2014-12-28 17:46:47'),(3,'all',1,'ecm','left','ecm','ecm_manual',-1,'ecm','ecm',102,'/ecm/index.php?action=file_manager&mainmenu=ecm&leftmenu=ecm','','ECMSectionsManual','ecm',NULL,'$user->rights->ecm->read || $user->rights->ecm->upload','$user->rights->ecm->read || $user->rights->ecm->upload',2,'2014-12-28 17:46:47'),(4,'all',1,'ecm','left','ecm',NULL,-1,'ecm','ecm',103,'/ecm/index_auto.php?action=file_manager&mainmenu=ecm&leftmenu=ecm','','ECMSectionsAuto','ecm',NULL,'$user->rights->ecm->read || $user->rights->ecm->upload','$user->rights->ecm->read || $user->rights->ecm->upload',2,'2014-12-28 17:46:47'),(5,'all',1,'agenda','top','agenda',NULL,0,NULL,NULL,100,'/comm/action/index.php','','Agenda','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2014-12-28 17:47:58'),(6,'all',1,'agenda','left','agenda',NULL,5,NULL,NULL,100,'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda','','Actions','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2014-12-28 17:47:58'),(7,'all',1,'agenda','left','agenda',NULL,6,NULL,NULL,101,'/comm/action/fiche.php?mainmenu=agenda&amp;leftmenu=agenda&amp;action=create','','NewAction','commercial',NULL,'($user->rights->agenda->myactions->create||$user->rights->agenda->allactions->create)','$conf->agenda->enabled',2,'2014-12-28 17:47:58'),(8,'all',1,'agenda','left','agenda',NULL,6,NULL,NULL,102,'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda','','Calendar','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2014-12-28 17:47:58'),(9,'all',1,'agenda','left','agenda',NULL,8,NULL,NULL,103,'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filter=mine','','MenuToDoMyActions','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2014-12-28 17:47:58'),(10,'all',1,'agenda','left','agenda',NULL,8,NULL,NULL,104,'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filter=mine','','MenuDoneMyActions','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2014-12-28 17:47:58'),(11,'all',1,'agenda','left','agenda',NULL,8,NULL,NULL,105,'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo','','MenuToDoActions','agenda',NULL,'$user->rights->agenda->allactions->read','$user->rights->agenda->allactions->read',2,'2014-12-28 17:47:58'),(12,'all',1,'agenda','left','agenda',NULL,8,NULL,NULL,106,'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=done','','MenuDoneActions','agenda',NULL,'$user->rights->agenda->allactions->read','$user->rights->agenda->allactions->read',2,'2014-12-28 17:47:58'),(13,'all',1,'agenda','left','agenda',NULL,6,NULL,NULL,112,'/comm/action/listactions.php?mainmenu=agenda&amp;leftmenu=agenda','','List','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2014-12-28 17:47:58'),(14,'all',1,'agenda','left','agenda',NULL,13,NULL,NULL,113,'/comm/action/listactions.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filter=mine','','MenuToDoMyActions','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2014-12-28 17:47:58'),(15,'all',1,'agenda','left','agenda',NULL,13,NULL,NULL,114,'/comm/action/listactions.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filter=mine','','MenuDoneMyActions','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2014-12-28 17:47:58'),(16,'all',1,'agenda','left','agenda',NULL,13,NULL,NULL,115,'/comm/action/listactions.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo','','MenuToDoActions','agenda',NULL,'$user->rights->agenda->allactions->read','$user->rights->agenda->allactions->read',2,'2014-12-28 17:47:58'),(17,'all',1,'agenda','left','agenda',NULL,13,NULL,NULL,116,'/comm/action/listactions.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=done','','MenuDoneActions','agenda',NULL,'$user->rights->agenda->allactions->read','$user->rights->agenda->allactions->read',2,'2014-12-28 17:47:58'),(18,'all',1,'agenda','left','agenda',NULL,6,NULL,NULL,120,'/comm/action/rapport/index.php?mainmenu=agenda&amp;leftmenu=agenda','','Reportings','agenda',NULL,'$user->rights->agenda->allactions->read','$conf->agenda->enabled',2,'2014-12-28 17:47:58'),(19,'all',1,'margins','left','accountancy','margins',-1,'accountancy',NULL,100,'/margin/index.php','','Margins','margins',NULL,'1','$user->rights->margins->liretous',2,'2014-12-28 17:48:28');

--
-- Table structure for table `llx_notify`
--

CREATE TABLE `llx_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_contact` int(11) DEFAULT NULL,
  `fk_user` int(11) 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=latin1;

--
-- Dumping data for table `llx_notify`
--


--
-- Table structure for table `llx_notify_def`
--

CREATE TABLE `llx_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) NOT 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=latin1;

--
-- Dumping data for table `llx_notify_def`
--


--
-- Table structure for table `llx_opensurvey_comments`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_opensurvey_comments`
--


--
-- Table structure for table `llx_opensurvey_sondage`
--

CREATE TABLE `llx_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 NOT NULL,
  `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=latin1;

--
-- Dumping data for table `llx_opensurvey_sondage`
--


--
-- Table structure for table `llx_opensurvey_user_studs`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_opensurvey_user_studs`
--


--
-- Table structure for table `llx_paiement`
--

CREATE TABLE `llx_paiement` (
  `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,
  `datep` datetime DEFAULT NULL,
  `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 AUTO_INCREMENT=27 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_paiement`
--

INSERT INTO `llx_paiement` (`rowid`, `entity`, `datec`, `tms`, `datep`, `amount`, `fk_paiement`, `num_paiement`, `note`, `fk_bank`, `fk_user_creat`, `fk_user_modif`, `statut`, `fk_export_compta`) VALUES (1,1,'2014-12-28 19:06:30','2014-12-28 19:06:30','2014-11-15 12:00:00',1141.42000000,2,'','',2,1,NULL,0,0),(2,1,'2015-01-10 10:18:23','2015-01-10 10:18:23','2015-01-02 12:00:00',2990.00000000,2,'','',3,1,NULL,0,0),(3,1,'2015-04-15 19:51:12','2015-04-15 19:51:12','2015-04-14 12:00:00',1475.00000000,2,'','',6,1,NULL,0,0),(4,1,'2015-08-18 13:27:33','2015-08-18 13:27:33','2015-07-09 12:00:00',1300.00000000,7,'9647087','',7,1,NULL,0,0),(5,1,'2015-08-18 13:33:42','2015-08-18 13:33:42','2015-08-15 12:00:00',1400.00000000,7,'55','',8,1,NULL,0,0),(6,1,'2015-10-29 23:37:18','2015-10-29 23:37:18','2015-10-03 12:00:00',1726.00000000,7,'','',14,1,NULL,0,0),(7,1,'2016-01-26 10:26:27','2016-01-26 10:26:27','2015-12-11 12:00:00',2175.00000000,7,'','',16,1,NULL,0,0),(8,1,'2016-09-19 14:53:01','2016-09-19 14:53:01','2016-09-16 12:00:00',257.19000000,2,'2596000022931236','',20,1,NULL,0,0),(9,1,'2016-09-19 14:58:12','2016-09-19 14:58:12','2016-09-01 12:00:00',74.48000000,2,'ICFSCT160831093329TDE0FR07731430155','',21,1,NULL,0,0),(10,1,'2016-10-19 19:46:42','2016-10-19 17:46:42','2016-10-18 12:00:00',297.41000000,2,'2896000050623139','',23,1,NULL,0,0),(11,1,'2016-12-28 13:04:41','2016-12-28 12:04:41','2016-12-15 12:00:00',4500.00000000,2,'5351-SCTSCT-16349-501-00047982','',24,1,NULL,0,0),(12,1,'2016-12-28 13:07:59','2016-12-28 12:07:59','2016-12-09 12:00:00',5000.00000000,2,'5351-SCTSCT-16343-501-00148744','',25,1,NULL,0,0),(13,1,'2016-12-28 13:11:37','2016-12-28 12:11:37','2016-12-16 12:00:00',350.98000000,2,'3506000110582179','',26,1,NULL,0,0),(14,1,'2016-12-28 13:15:19','2016-12-28 12:15:19','2016-09-29 12:00:00',119.00000000,2,'CFSCT160928093227TDE0FR07962365959','',27,1,NULL,0,0),(15,1,'2016-12-28 13:17:15','2016-12-28 12:17:15','2016-10-27 12:00:00',190.70000000,2,'ICFSCT161026093545TDE0FR08211801824','',28,1,NULL,0,0),(16,1,'2016-12-28 13:19:00','2016-12-28 12:19:00','2016-12-01 12:00:00',186.22000000,2,'ICFSCT161130093531TDE0FR08544845237','',29,1,NULL,0,0),(17,1,'2016-12-28 13:33:55','2016-12-28 12:33:55','2016-10-20 12:00:00',15.00000000,2,'VK62932P79F8BX01','',30,1,NULL,0,0),(18,1,'2016-12-28 13:36:59','2016-12-28 12:36:59','2016-12-06 12:00:00',75.00000000,2,'VK63411XUURTT701','',31,1,NULL,0,0),(19,1,'2016-12-28 13:40:45','2016-12-28 12:40:45','2016-11-14 12:00:00',21.90000000,2,'VG63173N3ZBENK01','',32,1,NULL,0,0),(20,1,'2017-01-26 15:27:24','2017-01-26 14:27:24','2016-12-29 12:00:00',107.50000000,2,'ICFSCT161228093547TDE0FR08801342229','',33,1,NULL,0,0),(21,1,'2017-04-25 19:19:55','2017-04-25 17:19:55','2017-01-24 12:00:00',172.27000000,2,'0086758391','',34,1,NULL,0,0),(22,1,'2017-04-25 19:21:52','2017-04-25 17:21:52','2017-01-17 12:00:00',236.78000000,2,'FR100X3RUP','',35,1,NULL,0,0),(23,1,'2017-04-25 19:23:57','2017-04-25 17:23:57','2017-02-17 12:00:00',510.30000000,2,'FR100Y423X','',36,1,NULL,0,0),(24,1,'2017-04-25 19:28:08','2017-04-25 17:28:08','2017-03-09 12:00:00',220.57000000,2,'0088777237,ADI','',37,1,NULL,0,0),(25,1,'2017-04-25 19:34:41','2017-04-25 17:34:41','2017-04-06 12:00:00',277.21000000,2,'ICFSCT170405093327TDE0FR09717043325','',38,1,NULL,0,0),(26,1,'2017-04-30 18:48:37','2017-04-30 16:48:37','2017-02-25 12:00:00',1910.00000000,7,'0649800','',39,1,NULL,0,0);

--
-- Table structure for table `llx_paiement_facture`
--

CREATE TABLE `llx_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',
  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`),
  CONSTRAINT `fk_paiement_facture_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_paiement_facture_fk_paiement` FOREIGN KEY (`fk_paiement`) REFERENCES `llx_paiement` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_paiement_facture`
--

INSERT INTO `llx_paiement_facture` (`rowid`, `fk_paiement`, `fk_facture`, `amount`) VALUES (1,1,1,1141.42000000),(2,2,2,2990.00000000),(3,3,4,1475.00000000),(4,4,5,1300.00000000),(5,5,6,1400.00000000),(6,6,10,1726.00000000),(7,7,11,2175.00000000),(8,8,12,257.19000000),(9,9,13,74.48000000),(10,10,15,297.41000000),(11,11,16,4500.00000000),(12,12,17,5000.00000000),(13,13,18,350.98000000),(14,14,19,119.00000000),(15,15,20,190.70000000),(16,16,21,186.22000000),(17,17,22,15.00000000),(18,18,23,75.00000000),(19,19,24,21.90000000),(20,20,27,107.50000000),(21,21,28,172.27000000),(22,22,29,236.78000000),(23,23,30,510.30000000),(24,24,31,220.57000000),(25,25,32,277.21000000),(26,26,26,1910.00000000);

--
-- Table structure for table `llx_paiementcharge`
--

CREATE TABLE `llx_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 DEFAULT '0',
  `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=latin1;

--
-- Dumping data for table `llx_paiementcharge`
--


--
-- Table structure for table `llx_paiementfourn`
--

CREATE TABLE `llx_paiementfourn` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `datep` datetime DEFAULT NULL,
  `amount` double DEFAULT '0',
  `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',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_paiementfourn`
--

INSERT INTO `llx_paiementfourn` (`rowid`, `tms`, `datec`, `datep`, `amount`, `fk_user_author`, `fk_paiement`, `num_paiement`, `note`, `fk_bank`, `statut`) VALUES (1,'2015-01-28 23:56:31','2015-01-28 23:56:31','2015-01-29 12:00:00',38,1,6,'','',4,0),(2,'2015-01-29 00:03:48','2015-01-29 00:03:48','2015-01-08 12:00:00',21.86,1,6,'','',5,0),(3,'2015-08-18 15:02:42','2015-08-18 15:02:42','2015-08-18 12:00:00',34.76,1,6,'','',9,0),(4,'2015-08-18 15:07:47','2015-08-18 15:07:47','2015-06-18 12:00:00',99,1,6,'','',10,0),(5,'2015-08-18 15:18:56','2015-08-18 15:18:56','2015-07-24 12:00:00',40.75,1,6,'','',11,0),(6,'2015-08-18 15:22:55','2015-08-18 15:22:55','2015-07-24 12:00:00',53.48,1,6,'','',12,0),(7,'2015-10-01 22:48:52','2015-10-01 22:48:52','2015-10-02 12:00:00',6,1,6,'','',13,0),(8,'2015-11-27 00:25:49','2015-11-27 00:25:49','2015-11-27 12:00:00',68.23,1,6,'','',15,0),(9,'2016-03-22 16:44:45','2016-03-22 16:44:45','2016-03-15 12:00:00',39,1,6,'','',17,0),(10,'2016-03-22 16:48:47','2016-03-22 16:48:47','2016-03-04 12:00:00',295.13,1,6,'','',18,0),(11,'2016-03-22 16:57:51','2016-03-22 16:57:51','2016-01-28 12:00:00',28.8,1,4,'','',19,0),(12,'2016-10-05 16:11:14','2016-10-05 18:11:14','2016-09-29 12:00:00',119,1,2,'	ICFSCT160928093227TDE0FR07962365959','',22,0);

--
-- Table structure for table `llx_paiementfourn_facturefourn`
--

CREATE TABLE `llx_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',
  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 AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_paiementfourn_facturefourn`
--

INSERT INTO `llx_paiementfourn_facturefourn` (`rowid`, `fk_paiementfourn`, `fk_facturefourn`, `amount`) VALUES (1,1,1,38.00000000),(2,2,2,21.86000000),(3,3,4,34.76000000),(4,4,7,99.00000000),(5,5,8,40.75000000),(6,6,9,53.48000000),(7,7,10,6.00000000),(8,8,11,68.23000000),(9,9,12,39.00000000),(10,10,13,295.13000000),(11,11,14,28.80000000),(12,12,15,119.00000000);

--
-- Table structure for table `llx_payment_salary`
--

CREATE TABLE `llx_payment_salary` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user` int(11) NOT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `amount` double NOT NULL DEFAULT '0',
  `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_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_payment_salary`
--


--
-- Table structure for table `llx_prelevement_bons`
--

CREATE TABLE `llx_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 DEFAULT '0',
  `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=latin1;

--
-- Dumping data for table `llx_prelevement_bons`
--


--
-- Table structure for table `llx_prelevement_facture`
--

CREATE TABLE `llx_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`),
  CONSTRAINT `fk_prelevement_facture_fk_prelevement_lignes` FOREIGN KEY (`fk_prelevement_lignes`) REFERENCES `llx_prelevement_lignes` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_prelevement_facture`
--


--
-- Table structure for table `llx_prelevement_facture_demande`
--

CREATE TABLE `llx_prelevement_facture_demande` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_facture` int(11) NOT NULL,
  `amount` double 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(7) 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=latin1;

--
-- Dumping data for table `llx_prelevement_facture_demande`
--


--
-- Table structure for table `llx_prelevement_lignes`
--

CREATE TABLE `llx_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 DEFAULT '0',
  `code_banque` varchar(7) 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`),
  CONSTRAINT `fk_prelevement_lignes_fk_prelevement_bons` FOREIGN KEY (`fk_prelevement_bons`) REFERENCES `llx_prelevement_bons` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_prelevement_lignes`
--


--
-- Table structure for table `llx_prelevement_rejet`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_prelevement_rejet`
--


--
-- Table structure for table `llx_printer_ipp`
--

CREATE TABLE `llx_printer_ipp` (
  `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_uri` varchar(255) NOT NULL,
  `copy` int(11) NOT NULL DEFAULT '1',
  `module` varchar(16) NOT NULL,
  `login` varchar(32) NOT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_printer_ipp`
--


--
-- Table structure for table `llx_product`
--

CREATE TABLE `llx_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,
  `virtual` tinyint(4) NOT NULL DEFAULT '0',
  `fk_parent` int(11) DEFAULT '0',
  `label` varchar(255) NOT NULL,
  `description` 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',
  `tva_tx` double(6,3) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT '0',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `fk_user_author` int(11) DEFAULT NULL,
  `tosell` tinyint(4) DEFAULT '1',
  `tobuy` tinyint(4) DEFAULT '1',
  `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 '0',
  `url` varchar(255) DEFAULT NULL,
  `barcode` varchar(255) DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT '0',
  `accountancy_code_sell` varchar(15) DEFAULT NULL,
  `accountancy_code_buy` varchar(15) 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,
  `surface` float DEFAULT NULL,
  `surface_units` tinyint(4) DEFAULT NULL,
  `volume` float DEFAULT NULL,
  `volume_units` tinyint(4) DEFAULT NULL,
  `stock` int(11) DEFAULT NULL,
  `pmp` double(24,8) NOT NULL DEFAULT '0.00000000',
  `canvas` varchar(32) DEFAULT NULL,
  `finished` tinyint(4) DEFAULT NULL,
  `hidden` tinyint(4) DEFAULT '0',
  `import_key` varchar(14) DEFAULT NULL,
  `desiredstock` int(11) 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`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_product`
--

INSERT INTO `llx_product` (`rowid`, `ref`, `entity`, `ref_ext`, `datec`, `tms`, `virtual`, `fk_parent`, `label`, `description`, `note`, `customcode`, `fk_country`, `price`, `price_ttc`, `price_min`, `price_min_ttc`, `price_base_type`, `tva_tx`, `recuperableonly`, `localtax1_tx`, `localtax2_tx`, `fk_user_author`, `tosell`, `tobuy`, `tobatch`, `fk_product_type`, `duration`, `seuil_stock_alerte`, `url`, `barcode`, `fk_barcode_type`, `accountancy_code_sell`, `accountancy_code_buy`, `partnumber`, `weight`, `weight_units`, `length`, `length_units`, `surface`, `surface_units`, `volume`, `volume_units`, `stock`, `pmp`, `canvas`, `finished`, `hidden`, `import_key`, `desiredstock`) VALUES (1,'wpinst',1,NULL,'2014-12-28 18:17:56','2015-03-01 23:47:05',0,0,'Installation et paramétrage WordPress','','','',NULL,95.00000000,95.00000000,90.00000000,90.00000000,'HT',0.000,0,0.000,0.000,1,1,1,0,1,'2h',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(2,'wpgooga',1,NULL,'2014-12-28 18:32:15','2014-12-28 18:32:15',0,0,'Intégration de Google Analytics','','','',NULL,15.00000000,15.00000000,0.00000000,0.00000000,'HT',0.000,0,0.000,0.000,1,1,1,0,1,'0h',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(3,'wpformation',1,NULL,'2014-12-28 18:33:59','2016-08-29 10:18:03',0,0,'Formation de 3h à l’administration du site (Déplacement dans un rayon de 50 km inclus)','','','',NULL,170.00000000,170.00000000,120.00000000,120.00000000,'HT',0.000,0,0.000,0.000,1,1,1,0,1,'3h',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(4,'wpachachart',1,NULL,'2014-12-28 18:35:05','2014-12-28 18:35:05',0,0,'Achat de la charte graphique','','','',NULL,90.00000000,90.00000000,70.00000000,70.00000000,'HT',0.000,0,0.000,0.000,1,1,0,0,1,'0h',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(5,'wpchartadap',1,NULL,'2014-12-28 18:35:54','2014-12-28 18:37:24',0,0,'Adaptation de la charte graphique','','','',NULL,190.00000000,190.00000000,90.00000000,90.00000000,'HT',0.000,0,0.000,0.000,1,1,0,0,1,'2h',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(6,'nddachat',1,NULL,'2014-12-28 18:38:19','2014-12-28 18:38:19',0,0,'Achat du nom de domaine pour un an','','','',NULL,25.00000000,25.00000000,20.00000000,20.00000000,'HT',0.000,0,0.000,0.000,1,1,0,0,1,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(7,'wphbt',1,NULL,'2014-12-28 18:39:02','2014-12-28 18:39:02',0,0,'Hébergement par  an','','','',NULL,60.00000000,60.00000000,50.00000000,50.00000000,'HT',0.000,0,0.000,0.000,1,1,1,0,1,'0h',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(8,'wpmtnce',1,NULL,'2014-12-28 18:39:42','2014-12-28 18:39:42',0,0,'Maintenance','','','',NULL,150.00000000,150.00000000,150.00000000,150.00000000,'HT',0.000,0,0.000,0.000,1,1,0,0,1,'3h',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(9,'wpformationL',1,NULL,'2015-03-01 23:01:13','2015-03-01 23:03:02',0,0,'Formation d\'1/2j à l’administration du site (Déplacement inclus)','','','',NULL,290.00000000,290.00000000,275.00000000,275.00000000,'HT',0.000,0,0.000,0.000,1,1,0,0,1,'4h',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(10,'wpachatplte',1,NULL,'2015-03-01 23:05:12','2016-08-29 12:07:43',0,0,'Conseil et achat du template graphique','Conseil pour le  choix du template graphique. Achat du template sur themeforest.net pour un prix jusqu\'à 90€.','','',NULL,290.00000000,290.00000000,270.00000000,270.00000000,'HT',0.000,0,0.000,0.000,1,1,1,0,1,'0h',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(11,'creaChart',1,NULL,'2015-03-01 23:08:02','2015-03-01 23:08:02',0,0,'Création charte graphique','','','',NULL,490.00000000,490.00000000,0.00000000,0.00000000,'HT',0.000,0,0.000,0.000,1,1,1,0,1,'1d',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(12,'wpAdapTplte',1,NULL,'2015-03-01 23:09:35','2015-03-01 23:10:22',0,0,'Adaptation template à la charte graphique','','','',NULL,490.00000000,490.00000000,350.00000000,350.00000000,'HT',0.000,0,0.000,0.000,1,1,1,0,1,'1d',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(13,'wpContact',1,NULL,'2015-03-01 23:22:32','2015-03-01 23:22:32',0,0,'Création d\'une page de contact','','','',NULL,190.00000000,190.00000000,150.00000000,150.00000000,'HT',0.000,0,0.000,0.000,1,1,0,0,1,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(14,'wpReSociaux',1,NULL,'2015-03-01 23:25:56','2015-03-01 23:25:56',0,0,'Intégration des liens vers vos réseaux sociaux','','','',NULL,15.00000000,15.00000000,0.00000000,0.00000000,'HT',0.000,0,0.000,0.000,1,1,0,0,1,'0h',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(15,'creaBCard',1,NULL,'2015-03-01 23:31:22','2015-03-15 22:17:55',0,0,'Création business card','','','',NULL,350.00000000,350.00000000,250.00000000,250.00000000,'HT',0.000,0,0.000,0.000,1,1,1,0,1,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(16,'creaFlyerA5',1,NULL,'2015-03-01 23:33:05','2015-03-01 23:33:05',0,0,'Création d\'un flyer A5 recto-verso','','','',NULL,490.00000000,490.00000000,350.00000000,350.00000000,'HT',0.000,0,0.000,0.000,1,1,1,0,1,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(17,'wpmigr',1,NULL,'2015-08-31 16:55:56','2015-10-29 23:44:09',0,0,'Migration WordPress existant','Migration d\'une plateforme Wordpress sur un autre serveur','Sauvegarde\r\nTransfert fichiers et données\r\nChangement URL','',NULL,345.00000000,345.00000000,290.00000000,290.00000000,'HT',0.000,0,0.000,0.000,1,1,0,0,1,'6h',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(18,'MdMigr',1,NULL,'2015-10-29 23:41:14','2015-10-29 23:41:14',0,0,'Migration Moodle','Migration d\'une plateforme Moodle sur un autre serveur','Fichier de migration créé pour ISI avec le détail de la procédure','',NULL,290.00000000,290.00000000,240.00000000,240.00000000,'HT',0.000,0,0.000,0.000,1,1,0,0,1,'4h',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(19,'nndConf',1,NULL,'2016-08-29 10:58:11','2016-08-29 10:58:11',0,0,'Configuration nom de domaine','','','',NULL,25.00000000,25.00000000,20.00000000,20.00000000,'HT',0.000,0,0.000,0.000,1,1,0,0,0,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,'',NULL,0,NULL,NULL),(20,'wpMtn',1,NULL,'2016-08-29 11:19:59','2016-08-29 11:19:59',0,0,'Maintenance annuelle','2 mises à jour annuelle de Wordpress et des plugins (dans la mesure des possibilités et sous réserve de compatibilité)','','',NULL,790.00000000,790.00000000,790.00000000,790.00000000,'HT',0.000,0,0.000,0.000,1,1,1,0,1,'y',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(21,'wpCfTpl',1,NULL,'2016-08-29 11:28:00','2016-08-29 11:28:00',0,0,'Installation et configuation des options du template','','','',NULL,150.00000000,150.00000000,0.00000000,0.00000000,'HT',0.000,0,0.000,0.000,1,1,1,0,0,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,'',NULL,0,NULL,NULL),(22,'SlTpl',1,NULL,'2016-10-19 01:55:30','2016-10-18 23:55:30',0,0,'Création du template','Création du template comprenant les slides types pour l\'accueil, le plan, les objectifs pédagogiques, les titres, les transitions et les contenus. (Ce template est créé une fois puis réutilisé pour les autres modules)','','',NULL,1000.00000000,1000.00000000,800.00000000,800.00000000,'HT',0.000,0,0.000,0.000,1,1,0,0,1,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL),(23,'Appli_Bebe_Signe_direct',1,NULL,'2016-12-28 13:32:04','2016-12-28 12:33:11',0,0,'Application Bébé Signe','','','',NULL,15.00000000,15.00000000,0.00000000,0.00000000,'HT',0.000,0,0.000,0.000,1,1,0,0,0,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,'',NULL,0,NULL,NULL),(24,'Appli_Bébé_Signe_carte',1,NULL,'2016-12-28 13:39:37','2016-12-28 12:39:37',0,0,'Appli Bébé Signe carte','','','',NULL,21.90000000,21.90000000,0.00000000,0.00000000,'HT',0.000,0,0.000,0.000,1,1,0,0,0,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,'',NULL,0,NULL,NULL),(25,'vid_tr_a',1,NULL,'2017-01-07 17:59:02','2017-01-07 16:59:02',0,0,'Transcription audio texte','Transcription audio texte 1 minute','','',NULL,10.00000000,10.00000000,9.00000000,9.00000000,'HT',0.000,0,0.000,0.000,1,1,0,0,1,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL,NULL);

--
-- Table structure for table `llx_product_association`
--

CREATE TABLE `llx_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,
  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=latin1;

--
-- Dumping data for table `llx_product_association`
--


--
-- Table structure for table `llx_product_batch`
--

CREATE TABLE `llx_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) DEFAULT NULL,
  `qty` double NOT NULL DEFAULT '0',
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_fk_product_stock` (`fk_product_stock`),
  CONSTRAINT `fk_product_batch_fk_product_stock` FOREIGN KEY (`fk_product_stock`) REFERENCES `llx_product_stock` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_product_batch`
--


--
-- Table structure for table `llx_product_customer_price`
--

CREATE TABLE `llx_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',
  `tva_tx` double(6,3) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT '0',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `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`),
  CONSTRAINT `fk_product_customer_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  CONSTRAINT `fk_product_customer_price_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_product_customer_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_product_customer_price`
--


--
-- Table structure for table `llx_product_customer_price_log`
--

CREATE TABLE `llx_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,
  `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',
  `tva_tx` double(6,3) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT '0',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `fk_user` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_product_customer_price_log`
--


--
-- Table structure for table `llx_product_extrafields`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_product_extrafields`
--


--
-- Table structure for table `llx_product_fournisseur_price`
--

CREATE TABLE `llx_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',
  `tva_tx` double(6,3) NOT NULL,
  `info_bits` int(11) NOT NULL DEFAULT '0',
  `fk_user` int(11) DEFAULT NULL,
  `import_key` varchar(14) 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`),
  CONSTRAINT `fk_product_fournisseur_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  CONSTRAINT `fk_product_fournisseur_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_product_fournisseur_price`
--


--
-- Table structure for table `llx_product_fournisseur_price_log`
--

CREATE TABLE `llx_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,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_product_fournisseur_price_log`
--


--
-- Table structure for table `llx_product_lang`
--

CREATE TABLE `llx_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,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_lang` (`fk_product`,`lang`),
  CONSTRAINT `fk_product_lang_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_product_lang`
--


--
-- Table structure for table `llx_product_price`
--

CREATE TABLE `llx_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',
  `tva_tx` double(6,3) NOT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT '0',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `fk_user_author` int(11) DEFAULT NULL,
  `tosell` tinyint(4) DEFAULT '1',
  `price_by_qty` int(11) NOT NULL DEFAULT '0',
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_product_price`
--

INSERT INTO `llx_product_price` (`rowid`, `entity`, `tms`, `fk_product`, `date_price`, `price_level`, `price`, `price_ttc`, `price_min`, `price_min_ttc`, `price_base_type`, `tva_tx`, `recuperableonly`, `localtax1_tx`, `localtax2_tx`, `fk_user_author`, `tosell`, `price_by_qty`, `import_key`) VALUES (1,1,'2014-12-28 18:17:56',1,'2014-12-28 18:17:56',1,95.00000000,95.00000000,90.00000000,90.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(2,1,'2014-12-28 18:32:15',2,'2014-12-28 18:32:15',1,15.00000000,15.00000000,0.00000000,0.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(3,1,'2014-12-28 18:33:59',3,'2014-12-28 18:33:59',1,170.00000000,170.00000000,120.00000000,120.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(4,1,'2014-12-28 18:35:05',4,'2014-12-28 18:35:05',1,90.00000000,90.00000000,70.00000000,70.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(5,1,'2014-12-28 18:35:54',5,'2014-12-28 18:35:54',1,90.00000000,90.00000000,70.00000000,70.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(6,1,'2014-12-28 18:37:24',5,'2014-12-28 18:37:24',1,190.00000000,190.00000000,90.00000000,90.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(7,1,'2014-12-28 18:38:19',6,'2014-12-28 18:38:19',1,25.00000000,25.00000000,20.00000000,20.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(8,1,'2014-12-28 18:39:02',7,'2014-12-28 18:39:02',1,60.00000000,60.00000000,50.00000000,50.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(9,1,'2014-12-28 18:39:42',8,'2014-12-28 18:39:42',1,150.00000000,150.00000000,150.00000000,150.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(10,1,'2015-03-01 23:01:13',9,'2015-03-01 23:01:13',1,290.00000000,290.00000000,275.00000000,275.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(11,1,'2015-03-01 23:05:12',10,'2015-03-01 23:05:12',1,90.00000000,90.00000000,75.00000000,75.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(12,1,'2015-03-01 23:08:02',11,'2015-03-01 23:08:02',1,490.00000000,490.00000000,0.00000000,0.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(13,1,'2015-03-01 23:09:35',12,'2015-03-01 23:09:35',1,490.00000000,490.00000000,350.00000000,350.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(14,1,'2015-03-01 23:22:32',13,'2015-03-01 23:22:32',1,190.00000000,190.00000000,150.00000000,150.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(15,1,'2015-03-01 23:25:56',14,'2015-03-01 23:25:56',1,15.00000000,15.00000000,0.00000000,0.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(16,1,'2015-03-01 23:31:22',15,'2015-03-01 23:31:22',1,490.00000000,490.00000000,350.00000000,350.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(17,1,'2015-03-01 23:33:05',16,'2015-03-01 23:33:05',1,490.00000000,490.00000000,350.00000000,350.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(18,1,'2015-03-15 22:17:55',15,'2015-03-15 22:17:55',1,350.00000000,350.00000000,250.00000000,250.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(19,1,'2015-08-31 16:55:56',17,'2015-08-31 16:55:56',1,190.00000000,190.00000000,0.00000000,0.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(20,1,'2015-09-12 22:23:45',17,'2015-09-12 22:23:45',1,225.00000000,225.00000000,0.00000000,0.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(21,1,'2015-10-29 23:41:14',18,'2015-10-29 23:41:14',1,290.00000000,290.00000000,240.00000000,240.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(22,1,'2015-10-29 23:42:40',17,'2015-10-29 23:42:40',1,345.00000000,345.00000000,290.00000000,290.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(23,1,'2016-08-29 10:58:11',19,'2016-08-29 10:58:11',1,25.00000000,25.00000000,20.00000000,20.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(24,1,'2016-08-29 11:19:59',20,'2016-08-29 11:19:59',1,790.00000000,790.00000000,790.00000000,790.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(25,1,'2016-08-29 11:28:00',21,'2016-08-29 11:28:00',1,150.00000000,150.00000000,0.00000000,0.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(26,1,'2016-08-29 12:07:43',10,'2016-08-29 12:07:43',1,290.00000000,290.00000000,270.00000000,270.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(27,1,'2016-10-18 23:55:30',22,'2016-10-19 01:55:30',1,1000.00000000,1000.00000000,800.00000000,800.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(28,1,'2016-12-28 12:32:04',23,'2016-12-28 13:32:04',1,19.90000000,19.90000000,0.00000000,0.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(29,1,'2016-12-28 12:33:11',23,'2016-12-28 13:33:11',1,15.00000000,15.00000000,0.00000000,0.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(30,1,'2016-12-28 12:39:37',24,'2016-12-28 13:39:37',1,21.90000000,21.90000000,0.00000000,0.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL),(31,1,'2017-01-07 16:59:02',25,'2017-01-07 17:59:02',1,10.00000000,10.00000000,9.00000000,9.00000000,'HT',0.000,0,0.000,0.000,1,1,0,NULL);

--
-- Table structure for table `llx_product_price_by_qty`
--

CREATE TABLE `llx_product_price_by_qty` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_product_price` int(11) NOT NULL,
  `date_price` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `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',
  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`),
  CONSTRAINT `fk_product_price_by_qty_fk_product_price` FOREIGN KEY (`fk_product_price`) REFERENCES `llx_product_price` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_product_price_by_qty`
--


--
-- Table structure for table `llx_product_stock`
--

CREATE TABLE `llx_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,
  `pmp` double(24,8) NOT NULL DEFAULT '0.00000000',
  `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=latin1;

--
-- Dumping data for table `llx_product_stock`
--


--
-- Table structure for table `llx_projet`
--

CREATE TABLE `llx_projet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_soc` int(11) DEFAULT NULL,
  `datec` date 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,
  `public` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT '0',
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_projet_ref` (`ref`,`entity`),
  KEY `idx_projet_fk_soc` (`fk_soc`),
  CONSTRAINT `fk_projet_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_projet`
--


--
-- Table structure for table `llx_projet_extrafields`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_projet_extrafields`
--


--
-- Table structure for table `llx_projet_task`
--

CREATE TABLE `llx_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 NOT NULL DEFAULT '0',
  `planned_workload` double NOT NULL DEFAULT '0',
  `progress` int(11) DEFAULT '0',
  `priority` int(11) DEFAULT '0',
  `fk_user_creat` 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,
  PRIMARY KEY (`rowid`),
  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`),
  CONSTRAINT `fk_projet_task_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_projet_task_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_projet_task_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_projet_task`
--


--
-- Table structure for table `llx_projet_task_extrafields`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_projet_task_extrafields`
--


--
-- Table structure for table `llx_projet_task_time`
--

CREATE TABLE `llx_projet_task_time` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_task` int(11) NOT NULL,
  `task_date` date DEFAULT NULL,
  `task_duration` double DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `thm` double(24,8) DEFAULT NULL,
  `note` text,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_projet_task_time`
--


--
-- Table structure for table `llx_propal`
--

CREATE TABLE `llx_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_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,
  `date_livraison` date DEFAULT NULL,
  `fk_availability` int(11) DEFAULT NULL,
  `fk_input_reason` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_delivery_address` int(11) DEFAULT NULL,
  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`),
  CONSTRAINT `fk_propal_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_propal_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_propal_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_propal_fk_user_cloture` FOREIGN KEY (`fk_user_cloture`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_propal_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_propal`
--

INSERT INTO `llx_propal` (`rowid`, `ref`, `entity`, `ref_ext`, `ref_int`, `ref_client`, `fk_soc`, `fk_projet`, `tms`, `datec`, `datep`, `fin_validite`, `date_valid`, `date_cloture`, `fk_user_author`, `fk_user_valid`, `fk_user_cloture`, `fk_statut`, `price`, `remise_percent`, `remise_absolue`, `remise`, `total_ht`, `tva`, `localtax1`, `localtax2`, `total`, `fk_account`, `fk_currency`, `fk_cond_reglement`, `fk_mode_reglement`, `note_private`, `note_public`, `model_pdf`, `date_livraison`, `fk_availability`, `fk_input_reason`, `import_key`, `extraparams`, `fk_delivery_address`) VALUES (1,'PR1503-0001',1,NULL,NULL,'',6,NULL,'2015-05-29 23:06:30','2015-03-01 22:55:29','2015-03-01','2015-05-30 12:00:00','2015-04-04 10:05:20','2015-05-29 23:06:30',1,1,1,3,0,NULL,NULL,0,2325.00000000,0.00000000,0.00000000,0.00000000,2325.00000000,NULL,NULL,1,2,'Baisse d\'activité plus de budget','','azur','2015-05-29',5,12,NULL,NULL,NULL),(2,'PR1503-0002',1,NULL,NULL,'',6,NULL,'2015-05-29 23:05:44','2015-03-01 23:29:34','2015-03-02','2015-05-31 12:00:00','2015-03-15 22:26:54','2015-05-29 23:05:44',1,1,1,3,0,NULL,NULL,0,2250.00000000,0.00000000,0.00000000,0.00000000,2250.00000000,NULL,NULL,1,1,'Baisse d\'activité plus de budget','','azur','2015-06-30',5,12,NULL,NULL,NULL),(3,'PR1503-0003',1,NULL,NULL,'',2,NULL,'2015-04-04 10:02:57','2015-03-22 14:35:58','2015-03-07','2015-06-05 12:00:00','2015-03-22 14:54:10','2015-04-04 10:02:57',1,1,1,4,0,NULL,NULL,0,1475.00000000,0.00000000,0.00000000,0.00000000,1475.00000000,NULL,NULL,2,2,'','Intégration des contenus suivant le scénario interactif fournis. Le nombre d\'écran est estimé à 32.\r\nExports pour tablette tactile Androïd et Apple afin d’avoir un fonctionnement hors-ligne via l\'application Articulate.','azur','2015-03-20',3,8,NULL,NULL,NULL),(4,'PR1507-0005',1,NULL,NULL,'RésaCoif',7,NULL,'2015-10-29 23:29:59','2015-05-08 13:54:32','2015-05-08','2015-08-06 12:00:00','2015-07-09 13:01:37','2015-10-29 23:29:59',1,1,1,4,0,NULL,NULL,0,4426.00000000,0.00000000,0.00000000,0.00000000,4426.00000000,NULL,NULL,1,2,'','','azur',NULL,0,0,NULL,NULL,NULL),(5,'PR1505-0004',1,NULL,NULL,'formStorySG',2,NULL,'2015-11-27 00:29:10','2015-05-13 12:01:21','2015-05-13','2015-08-11 12:00:00','2015-05-13 12:32:10','2015-11-27 00:29:10',1,1,1,3,0,NULL,NULL,0,3490.00000000,0.00000000,0.00000000,0.00000000,3490.00000000,NULL,NULL,1,2,'','','azur',NULL,0,0,NULL,NULL,NULL),(7,'PR1509-0007',1,NULL,NULL,'',11,NULL,'2015-09-29 19:17:28','2015-09-29 15:56:27','2015-09-29','2015-12-28 12:00:00','2015-09-29 19:17:28',NULL,1,1,NULL,1,0,NULL,NULL,0,1090.00000000,0.00000000,0.00000000,0.00000000,1090.00000000,NULL,NULL,9,0,'','','azur',NULL,0,0,NULL,NULL,NULL),(8,'PR1510-0008',1,NULL,NULL,'SHSGC',7,NULL,'2015-11-28 00:23:29','2015-10-08 13:08:14','2015-10-08','2016-01-06 12:00:00','2015-11-28 00:23:29',NULL,1,1,NULL,1,0,NULL,NULL,0,2450.00000000,0.00000000,0.00000000,0.00000000,2450.00000000,NULL,NULL,9,7,'','','azur',NULL,0,0,NULL,NULL,NULL),(9,'PR1510-0009',1,NULL,NULL,'appHairDV',12,NULL,'2016-08-29 10:21:11','2015-10-10 07:55:26','2015-10-10','2016-01-08 12:00:00','2015-10-15 14:39:36','2016-08-29 10:21:11',1,1,1,3,0,NULL,NULL,0,11880.00000000,0.00000000,0.00000000,0.00000000,11880.00000000,NULL,NULL,9,2,'Pas donné suite','','azur',NULL,0,0,NULL,NULL,NULL),(10,'PR1510-0010',1,NULL,NULL,'HDV2',7,NULL,'2015-10-29 23:35:58','2015-10-29 23:32:53','2015-09-30','2015-12-29 12:00:00','2015-10-29 23:35:43','2015-10-29 23:35:58',1,1,1,2,0,NULL,NULL,0,2450.00000000,0.00000000,0.00000000,0.00000000,2450.00000000,NULL,NULL,8,7,'','','azur',NULL,0,8,NULL,NULL,NULL),(13,'PR1606-0011',1,NULL,NULL,'',14,NULL,'2017-05-01 17:59:02','2016-06-15 10:18:38','2017-04-28','2016-07-30 12:00:00','2016-06-15 12:35:33',NULL,1,1,NULL,0,0,NULL,NULL,0,4997.00000000,0.00000000,0.00000000,0.00000000,4997.00000000,NULL,NULL,7,2,'Le proejt ne s\'est pas fait en été 2016, il sera peut être reproposé en Janvier 2017','','azur',NULL,0,0,NULL,NULL,NULL),(14,'PR1608-0012',1,NULL,NULL,'',15,NULL,'2017-01-26 13:29:58','2016-08-29 10:10:00','2016-08-29','2016-11-27 12:00:00','2016-08-29 14:07:49','2017-01-26 14:29:58',1,1,1,3,0,NULL,NULL,0,2896.00000000,0.00000000,0.00000000,0.00000000,2896.00000000,NULL,NULL,8,2,'','','azur',NULL,0,8,NULL,NULL,NULL),(15,'PR1609-0013',1,NULL,NULL,'',16,NULL,'2016-12-28 11:57:45','2016-09-19 12:45:38','2016-07-04','2016-10-31 12:00:00','2016-09-28 11:16:08','2016-12-28 12:57:45',1,1,1,4,0,NULL,NULL,0,5000.00000000,0.00000000,0.00000000,0.00000000,5000.00000000,NULL,NULL,3,2,'','','azur',NULL,0,0,NULL,NULL,NULL),(16,'PR1609-0014',1,NULL,NULL,'',16,NULL,'2016-12-28 11:54:07','2016-09-26 10:42:56','2016-09-26','2016-12-25 11:00:00','2016-10-21 15:34:47','2016-12-28 12:54:07',1,1,1,4,0,NULL,NULL,0,4500.00000000,0.00000000,0.00000000,0.00000000,4500.00000000,NULL,NULL,1,2,'','','azur',NULL,0,0,NULL,NULL,NULL),(17,'(PROV17)',1,NULL,NULL,'',19,NULL,'2016-10-08 10:01:13','2016-10-08 11:58:16','2016-10-08','2017-01-06 11:00:00',NULL,NULL,1,NULL,NULL,0,0,NULL,NULL,0,4200.00000000,0.00000000,0.00000000,0.00000000,4200.00000000,NULL,NULL,8,2,'','','azur',NULL,0,8,NULL,NULL,NULL),(18,'PR1611-0015',1,NULL,NULL,'',20,NULL,'2016-11-25 15:59:25','2016-11-22 17:03:29','2016-11-25','2017-02-20 12:00:00','2016-11-25 16:48:17',NULL,1,1,NULL,0,0,NULL,NULL,0,1910.00000000,0.00000000,0.00000000,0.00000000,1910.00000000,NULL,NULL,8,2,'','','azur','2016-12-30',0,0,NULL,NULL,NULL),(19,'PR1611-0016',1,NULL,NULL,NULL,21,NULL,'2017-01-26 14:07:40','2016-11-25 16:57:47','2016-11-25','2017-02-23 12:00:00','2016-11-25 17:02:14','2017-01-26 15:07:40',1,1,1,2,0,NULL,NULL,0,1910.00000000,0.00000000,0.00000000,0.00000000,1910.00000000,NULL,NULL,8,2,'','','azur','2016-12-30',0,0,NULL,NULL,NULL),(20,'PR1701-0017',1,NULL,NULL,'',7,NULL,'2017-01-26 13:58:07','2017-01-26 14:32:39','2016-05-23','2016-08-21 12:00:00','2017-01-26 14:57:56','2017-01-26 14:58:07',1,1,1,2,0,NULL,NULL,0,3000.00000000,0.00000000,0.00000000,0.00000000,3000.00000000,NULL,NULL,1,7,'','','azur',NULL,0,0,NULL,NULL,NULL),(21,'(PROV21)',1,NULL,NULL,'',25,NULL,'2017-04-30 16:52:46','2017-04-30 18:52:10','2017-01-26','2017-04-26 13:00:00',NULL,NULL,1,NULL,NULL,0,0,NULL,NULL,0,1910.00000000,0.00000000,0.00000000,0.00000000,1910.00000000,NULL,NULL,1,7,'','','azur',NULL,0,0,NULL,NULL,NULL),(22,'PR1705-0018',1,NULL,NULL,'',14,NULL,'2017-05-01 19:20:08','2017-05-01 21:16:27','2017-05-01','2017-07-30 21:16:27','2017-05-01 21:20:08',NULL,1,1,NULL,1,0,NULL,NULL,0,4997.00000000,0.00000000,0.00000000,0.00000000,4997.00000000,NULL,NULL,7,2,'Le proejt ne s\'est pas fait en été 2016, il sera peut être reproposé en Janvier 2017','','azur',NULL,0,0,NULL,NULL,NULL);

--
-- Table structure for table `llx_propal_extrafields`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_propal_extrafields`
--


--
-- Table structure for table `llx_propaldet`
--

CREATE TABLE `llx_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,
  `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',
  PRIMARY KEY (`rowid`),
  KEY `idx_propaldet_fk_propal` (`fk_propal`),
  KEY `idx_propaldet_fk_product` (`fk_product`),
  CONSTRAINT `fk_propaldet_fk_propal` FOREIGN KEY (`fk_propal`) REFERENCES `llx_propal` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=107 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_propaldet`
--

INSERT INTO `llx_propaldet` (`rowid`, `fk_propal`, `fk_parent_line`, `fk_product`, `label`, `description`, `fk_remise_except`, `tva_tx`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `qty`, `remise_percent`, `remise`, `price`, `subprice`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `date_start`, `date_end`, `info_bits`, `buy_price_ht`, `fk_product_fournisseur_price`, `special_code`, `rang`) VALUES (5,1,NULL,9,NULL,'',NULL,0.000,0.000,'0',0.000,'0',1,0,0,290,290.00000000,290.00000000,0.00000000,0.00000000,0.00000000,290.00000000,1,NULL,NULL,0,0.00000000,NULL,0,10),(6,1,NULL,2,NULL,'',NULL,0.000,0.000,'0',0.000,'0',1,100,15,0,15.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,0.00000000,NULL,0,9),(7,1,NULL,1,NULL,'',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,95.00000000,95.00000000,0.00000000,0.00000000,0.00000000,95.00000000,1,NULL,NULL,0,0.00000000,NULL,0,2),(8,1,NULL,10,NULL,'',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,90.00000000,90.00000000,0.00000000,0.00000000,0.00000000,90.00000000,1,NULL,NULL,0,0.00000000,NULL,0,3),(9,1,NULL,11,NULL,'',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,490.00000000,490.00000000,0.00000000,0.00000000,0.00000000,490.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1),(10,1,NULL,12,NULL,'',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,490.00000000,490.00000000,0.00000000,0.00000000,0.00000000,490.00000000,1,NULL,NULL,0,0.00000000,NULL,0,4),(11,1,NULL,NULL,NULL,'Création formulaire de candidature avec dépôts de CV',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,190.00000000,190.00000000,0.00000000,0.00000000,0.00000000,190.00000000,1,NULL,NULL,0,0.00000000,NULL,0,6),(12,1,NULL,NULL,NULL,'Création des pages Accueil A Propos Formations Service Portfolio Recrutement \r\nIntégration du contenus fournis par vos soins',NULL,0.000,0.000,'0',0.000,'0',1,0,0,490,490.00000000,490.00000000,0.00000000,0.00000000,0.00000000,490.00000000,1,NULL,NULL,0,0.00000000,NULL,0,7),(13,1,NULL,13,NULL,'',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,190.00000000,190.00000000,0.00000000,0.00000000,0.00000000,190.00000000,1,NULL,NULL,0,0.00000000,NULL,0,5),(14,1,NULL,14,NULL,'',NULL,0.000,0.000,'0',0.000,'0',1,100,0,NULL,15.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,0.00000000,NULL,0,8),(15,2,NULL,15,NULL,'',NULL,0.000,0.000,'0',0.000,'0',1,0,0,290,290.00000000,290.00000000,0.00000000,0.00000000,0.00000000,290.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1),(16,2,NULL,16,NULL,'',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,490.00000000,490.00000000,0.00000000,0.00000000,0.00000000,490.00000000,1,NULL,NULL,0,0.00000000,NULL,0,2),(17,2,NULL,NULL,NULL,'Création d\'une brochure 4 pages (2 feuilles)',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,1470.00000000,1470.00000000,0.00000000,0.00000000,0.00000000,1470.00000000,1,NULL,NULL,0,0.00000000,NULL,0,3),(18,3,NULL,NULL,NULL,'traitement vidéo\r\n',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,100.00000000,100.00000000,0.00000000,0.00000000,0.00000000,100.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1),(19,3,NULL,NULL,NULL,'traitement photo\r\n',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,100.00000000,100.00000000,0.00000000,0.00000000,0.00000000,100.00000000,1,NULL,NULL,0,0.00000000,NULL,0,2),(20,3,NULL,NULL,NULL,'création de l\'architecture interactive\r\n',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,120.00000000,120.00000000,0.00000000,0.00000000,0.00000000,120.00000000,1,NULL,NULL,0,0.00000000,NULL,0,3),(21,3,NULL,NULL,NULL,'intégration\r\n',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,780.00000000,780.00000000,0.00000000,0.00000000,0.00000000,780.00000000,1,NULL,NULL,0,0.00000000,NULL,0,4),(22,3,NULL,NULL,NULL,'adaptation template Storyline',NULL,0.000,0.000,'0',0.000,'0',1,0,0,260,260.00000000,260.00000000,0.00000000,0.00000000,0.00000000,260.00000000,1,NULL,NULL,0,0.00000000,NULL,0,5),(23,3,NULL,NULL,NULL,'exports et tests',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,115.00000000,115.00000000,0.00000000,0.00000000,0.00000000,115.00000000,1,NULL,NULL,0,0.00000000,NULL,0,6),(35,5,NULL,NULL,NULL,'Formations pour la réalisation de Serious Game avec Articulate Storyline\r\n\r\nProgramme :\r\nConception d\'un storyboard interactif\r\nTechniques et programmation pour réaliser un Serious Game dans Articulate Storyline\r\nAnimations dans Storyline\r\nCommunication entre Storyline et la base de données MySQL via AJAX (PHP et Javascript) pour enregistrer le suivi de l\'apprenant\r\nCommunication entre la base de données et le backoffice pour analyser les résultats\r\n\r\nModalités :\r\nDistancielle sur plateforme de formation.\r\nAccompagnement individualisé en synchrone via des classes virtuelles (visioconférence et téléphone) et en asynchrone via forum et messagerie\r\n\r\nDurée de la formation 21h réparties sur une durée de 3 semaines.\r\nAccès aux modules de la formation sur la plateforme pendant 6 mois.\r\n\r\nFourniture des fichiers codes sources pour la communication avec la base de données.\r\nFourniture d\'un modèle pour l\'analyse de données avec affichage statistiques sur graphique de type radar-chart.',NULL,0.000,0.000,'0',0.000,'0',1,0,0,3490,3490.00000000,3490.00000000,0.00000000,0.00000000,0.00000000,3490.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1),(36,4,NULL,NULL,NULL,'developpement appli ios (affichage réservation - pub)',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,1490.00000000,1490.00000000,0.00000000,0.00000000,0.00000000,1490.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1),(37,4,NULL,NULL,NULL,'developpement appli android (affichage réservation - pub )',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,990.00000000,990.00000000,0.00000000,0.00000000,0.00000000,990.00000000,1,NULL,NULL,0,0.00000000,NULL,0,2),(38,4,NULL,NULL,NULL,'achat module resa',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,56.00000000,56.00000000,0.00000000,0.00000000,0.00000000,56.00000000,1,NULL,NULL,0,0.00000000,NULL,0,3),(39,4,NULL,NULL,NULL,'module lien identifiant salon client',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,990.00000000,990.00000000,0.00000000,0.00000000,0.00000000,990.00000000,1,NULL,NULL,0,0.00000000,NULL,0,4),(40,4,NULL,NULL,NULL,'publication ios',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,150.00000000,150.00000000,0.00000000,0.00000000,0.00000000,150.00000000,1,NULL,NULL,0,0.00000000,NULL,0,5),(41,4,NULL,NULL,NULL,'publication android',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,50.00000000,50.00000000,0.00000000,0.00000000,0.00000000,50.00000000,1,NULL,NULL,0,0.00000000,NULL,0,6),(42,4,NULL,NULL,NULL,'Création e-learning',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,450.00000000,450.00000000,0.00000000,0.00000000,0.00000000,450.00000000,1,NULL,NULL,0,0.00000000,NULL,0,7),(43,4,NULL,NULL,NULL,'Gestion des notifications',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,250.00000000,250.00000000,0.00000000,0.00000000,0.00000000,250.00000000,1,NULL,NULL,0,0.00000000,NULL,0,8),(45,7,NULL,NULL,NULL,'Audit du site internet pour otpimiser le référencement\r\nAnalyse du site internet et recommandations. Remise d\'un fichier sous format PDF.',NULL,0.000,0.000,'0',0.000,'0',1,0,0,450,450.00000000,450.00000000,0.00000000,0.00000000,0.00000000,450.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1),(46,7,NULL,NULL,NULL,'- Installation de Google Analytics et de Google Search Console.\r\nOptimisation du site internet sur les mots clés \"ciseaux japonnais\"\r\nMise en place des recommandations :\r\n- optimisation de la page (title, description, attribut ALT)\r\n- optimisation des contenus (présence des mots-clés, hn)',NULL,0.000,0.000,'0',0.000,'0',1,0,0,640,640.00000000,640.00000000,0.00000000,0.00000000,0.00000000,640.00000000,1,NULL,NULL,0,0.00000000,NULL,0,2),(47,7,NULL,NULL,NULL,'Reporting mensuel (coût mensuel)\r\nAnalyse des statistiques et du comportement des visiteurs et mise en place des actions correctrices :\r\n- analyse du positionnement\r\n- analyse des statistiques Google Analytics\r\n- analyse des statistiques Google Search Console.',NULL,0.000,0.000,'0',0.000,'0',0,0,0,240,240.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,0.00000000,NULL,3,3),(48,7,NULL,NULL,NULL,'Campagnes mensuelles de liens sponsorisés (coût mensuel)\r\nCréation et optimisation des campagnes d\'achat de mots-clés :\r\n- création de la structure des campagnes\r\n- optimisation des coûts et des clics.\r\n- (l\'achat des mots clés n\'est pas compris)',NULL,0.000,0.000,'0',0.000,'0',0,0,0,320,320.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,0.00000000,NULL,3,4),(49,8,NULL,NULL,NULL,'Avenant projet application HAIRDV\r\n\r\nGestion crédits et prestation\r\nCestion Fidélités',NULL,0.000,0.000,'0',0.000,'0',1,0,0,2450,2450.00000000,2450.00000000,0.00000000,0.00000000,0.00000000,2450.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1),(50,9,NULL,NULL,NULL,'Integration of the following pages in the existing App on IOS and Android \r\n - Find a salon\r\n - Login\r\n - Salon infos\r\n - The team\r\n - News\r\n - My account\r\n\r\nOption : Upgrade of existing source code to be compatible with IOS 9 and Android 6.0\r\nI need to see the source code of existing app to do a quotation ',NULL,0.000,0.000,'0',0.000,'0',1,0,0,5900,5900.00000000,5900.00000000,0.00000000,0.00000000,0.00000000,5900.00000000,1,NULL,NULL,0,4600.00000000,NULL,0,1),(51,9,NULL,NULL,NULL,'Translation and integration of the translations for:\r\n - App \r\n - Admin Panel\r\n - Planning/Booking ',NULL,0.000,0.000,'0',0.000,'0',1,0,0,2990,2990.00000000,2990.00000000,0.00000000,0.00000000,0.00000000,2990.00000000,1,NULL,NULL,0,2400.00000000,NULL,0,2),(52,9,NULL,NULL,NULL,'Setup on a new server for:\r\n - Admin Panel \r\n - Planning/Booking',NULL,0.000,0.000,'0',0.000,'0',1,0,0,2990,2990.00000000,2990.00000000,0.00000000,0.00000000,0.00000000,2990.00000000,1,NULL,NULL,0,1600.00000000,NULL,0,3),(55,10,NULL,NULL,NULL,'Gestion crédits',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,1575.00000000,1575.00000000,0.00000000,0.00000000,0.00000000,1575.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1),(56,10,NULL,NULL,NULL,'Gestion points fidélités',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,600.00000000,600.00000000,0.00000000,0.00000000,0.00000000,600.00000000,1,NULL,NULL,0,0.00000000,NULL,0,2),(57,10,NULL,NULL,NULL,'Gestion prestas',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,275.00000000,275.00000000,0.00000000,0.00000000,0.00000000,275.00000000,1,NULL,NULL,0,0.00000000,NULL,0,3),(58,13,NULL,NULL,NULL,'Création d\'une charte graphique destinée aux animations.\r\nDans un soucis de cohérence, cette charte graphique s\'inspirera de celle du site internet atouts-sciences.org et de la Light Box',NULL,0.000,0.000,'0',0.000,'0',1,0,0,250,250.00000000,250.00000000,0.00000000,0.00000000,0.00000000,250.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1),(59,13,NULL,NULL,NULL,'Création d\'une animation en flat design composée de 4 plans \r\nLivraison au format full HD (1920x1080) mp4 H264.',NULL,0.000,0.000,'0',0.000,'0',20,6,13.8,216.2,230.00000000,4324.00000000,0.00000000,0.00000000,0.00000000,4324.00000000,1,NULL,NULL,0,0.00000000,NULL,0,2),(60,13,NULL,NULL,NULL,'Création d\'élements graphiques simples en flat design ',NULL,0.000,0.000,'0',0.000,'0',11,6,1.2,18.8,20.00000000,206.80000000,0.00000000,0.00000000,0.00000000,206.80000000,1,NULL,NULL,0,0.00000000,NULL,0,3),(61,13,NULL,NULL,NULL,'Création d\'un générique de 4 plans',NULL,0.000,0.000,'0',0.000,'0',1,6,13.8,216.2,230.00000000,216.20000000,0.00000000,0.00000000,0.00000000,216.20000000,1,NULL,NULL,0,0.00000000,NULL,0,4),(62,13,NULL,NULL,NULL,'Reprise d’éléments graphiques existants dans notre bibliothèque (offert)',NULL,0.000,0.000,'0',0.000,'0',1,0,0,0,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,0.00000000,NULL,0,5),(64,14,NULL,2,NULL,'',NULL,0.000,0.000,'0',0.000,'0',1,0,0,25,25.00000000,25.00000000,0.00000000,0.00000000,0.00000000,25.00000000,1,NULL,NULL,0,0.00000000,NULL,0,7),(65,14,NULL,1,NULL,'',NULL,0.000,0.000,'0',0.000,'0',1,0,0,290,290.00000000,290.00000000,0.00000000,0.00000000,0.00000000,290.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1),(67,14,NULL,NULL,NULL,'Création d\'un formulaire de demande d\'informations avec champs Nom, Prénom, Email, Date de naissance, type de contrat d\'assurance. Les informations sont ensuite envoyées par emails',NULL,0.000,0.000,'0',0.000,'0',1,0,0,690,690.00000000,690.00000000,0.00000000,0.00000000,0.00000000,690.00000000,1,NULL,NULL,0,0.00000000,NULL,0,6),(69,14,NULL,NULL,NULL,'Création d\'une animation composée de 10 plans \r\nformat full HD (1920x1080) mp4 H264.\r\nAjout d\'une bande sonore choisie sur https://audiojungle.net (jusqu\'a 20€)',NULL,0.000,0.000,'0',0.000,'0',0,0,0,1900,1900.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,0.00000000,NULL,3,11),(70,14,NULL,19,NULL,'',NULL,0.000,0.000,'0',0.000,'0',1,0,0,45,45.00000000,45.00000000,0.00000000,0.00000000,0.00000000,45.00000000,0,NULL,NULL,0,0.00000000,NULL,0,4),(71,14,NULL,20,NULL,'2 mises à jour annuelle de Wordpress et des plugins (dans la mesure des possibilités et sous réserve de compatibilité) (coût annuel)',NULL,0.000,0.000,'0',0.000,'0',0,0,0,790,790.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,0.00000000,NULL,3,10),(72,14,NULL,NULL,NULL,'Création des pages Accueil, Mentions légales, A propos de nous, Avantages de l\'offre et page de contact\r\nOptimisations des noms de pages et des médias pour les moteurs de recherche.\r\nIntégration sur ces pages du contenus fournis par vos soins ',NULL,0.000,0.000,'0',0.000,'0',1,0,0,890,890.00000000,890.00000000,0.00000000,0.00000000,0.00000000,890.00000000,1,NULL,NULL,0,0.00000000,NULL,0,5),(73,14,NULL,21,NULL,'',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,150.00000000,150.00000000,0.00000000,0.00000000,0.00000000,150.00000000,0,NULL,NULL,0,0.00000000,NULL,0,3),(74,14,NULL,NULL,NULL,'Hébergement offre pro OVH 10.50 € / mois. Nombre de visiteurs simultanés estimés 125. (coût annuel)',NULL,0.000,0.000,'0',0.000,'0',12,0,0,10.5,10.50000000,126.00000000,0.00000000,0.00000000,0.00000000,126.00000000,1,NULL,NULL,0,0.00000000,NULL,0,9),(75,14,NULL,10,NULL,'Conseil pour le  choix du template graphique. Achat du template sur themeforest.net pour un prix jusqu\'à 90€.',NULL,0.000,0.000,'0',0.000,'0',1,0,0,290,290.00000000,290.00000000,0.00000000,0.00000000,0.00000000,290.00000000,1,NULL,NULL,0,0.00000000,NULL,0,2),(77,14,NULL,NULL,NULL,'Formation de 3h à l’administration du site (Déplacement à Yverdon  inclus)',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,390.00000000,390.00000000,0.00000000,0.00000000,0.00000000,390.00000000,1,NULL,NULL,0,0.00000000,NULL,0,8),(78,15,NULL,NULL,NULL,'Conception multimédia Storyline pour 3 modules e-learning DU FIPA.\r\nRéalisation à partir des storyboards des modules.\r\nLivraison des fichiers sources au format .story\r\n\r\nAssistance et conseils pour la conception d\'un module multimédia avec Storyline ',NULL,0.000,0.000,'0',0.000,'0',1,0,0,5000,5000.00000000,5000.00000000,0.00000000,0.00000000,0.00000000,5000.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1),(80,16,NULL,NULL,NULL,'Réalisation de 3 modules multimédia avec Storyline',NULL,0.000,0.000,'0',0.000,'0',1,0,0,4500,4500.00000000,4500.00000000,0.00000000,0.00000000,0.00000000,4500.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1),(83,17,NULL,NULL,NULL,'<b>Installation et configuration de Prestashop en français</b>\r\n<ul>\r\n<li>Configuration du nom de domaine</li>\r\n<li>Conseil et achat d’un template graphique sur le site http://addons.prestashop.com/fr/3-themes-prestashop (dans la limite de 150€)</li>\r\n<li>8h de personnalisation graphique du thème (dont Intégration de votre logo à la boutique)</li>\r\n<li>Intégration du thème</li>\r\n</ul>\r\n<br><b>Création des pages :</b>\r\n<ul>\r\n<li> Accueil</li>\r\n<li> A Propos</li>\r\n<li> Mentions Légales.</li>\r\n</ul>\r\n<br><b>Mise en place de la boutique :</b>\r\n<ul>\r\n<li>Arborescence du site avec 6 catégories</li>\r\n<li>Import du catalogue produits (environ 1 000 produits) à partir d\'un fichier Excel ou CSV</li>\r\n<li>Intégration de partages réseaux sociaux sur les fiches produits  (Facebook, Twitter et Google+)</li>\r\n<li>Module formulaire de contact</li>\r\n<li>Intégration des CGV avec le module http://addons.prestashop.com/fr/5258-cgv-prestashop-conditions-generales-de-vente.html</li>\r\n<li>Conformité loi Hamon avec intégration d’un formulaire de retour et fonctionnalité d’envoi des CGV http://addons.prestashop.com/fr/17161-loi-hamon-gestion-des-retractations-envoi-de-cgv.html</li>\r\n<li>Intégration d’un bandeau d’information sur l’utilisation des cookies</li>\r\n</ul>\r\n<br/>\r\n<b>Mise en place des moyens de paiement :</b>\r\n<ul>\r\n<li>Configuration du module de payement paypal\r\n<li>Configuration du module de payment CB systempay (Banque Populaire Caisse d\'Epargne). Possibilité d\'utiliser un autre module en ajoutant le coût du module qui peut être facturé par la Banque.\r\n<br/> Ce moyen de paiement nécessite de négocier et de signer un contrat de VAD (Vente A Distance) avec un organisme bancaire.\r\n</ul>\r\n<br/><b>Intégration du module Chronopost Officiel</b>\r\n<br/>\r\n<br/><b>Référencement :</b>\r\n<ul>\r\n<li>Intégration du module \"SEO Expert\" pour optimiser le référencement</li>\r\n<li>Intégration d\'un sitemap XML pour faciliter l\'indexation</li>\r\n<li>Intégration Google Analytics pour suivre votre référencement</li>\r\n</ul>\r\n<br><b>Les tests de la boutique sur PC, smartphone et tablette</b>\r\n<br><br><b>Validation avec le client</b>\r\n<br><br><b>La mise en ligne de la boutique</b>\r\n\r\n<br><br><b>Formation :</b> mise à disposition d\'une formation vidéo pour vous aider sur l\'administration de la boutique\r\n\r\n<br><br><b>Pour l’hébergement, nous conseillons :</b>\r\n<ul><li>l\'hébergement performance à 9,99€ HT/mois chez OVH</li>\r\n<li>+ nom de domaine environ 15 à 20 € HT/an</li>\r\n<li>+ certificat SSL nécessaire pour mettre en confiance vos clients lors d\'achats en ligne (49,99€ HT/An /domaine)</li>\r\n<li>La réservation de l\'hébergement et du nom de domaine chez OVH est faite au nom de votre société. Les coûts concernant l\'hébergement, le nom de domaine et le certificat SSL sont donnés à titre indicatif (ils ne sont pas compris dans ce devis) et sont soumis à la TVA</li>\r\n</ul>\r\n<br/></br>&nbsp;',NULL,0.000,0.000,'0',0.000,'0',1,0,0,4200,4200.00000000,4200.00000000,0.00000000,0.00000000,0.00000000,4200.00000000,1,NULL,NULL,0,4000.00000000,NULL,0,1),(84,17,NULL,NULL,NULL,'<b>Contrat de maintenance annuelle 8h :</b><br/> \r\n<ul>\r\n<li>Aide et conseils à l\'utilisation de votre boutique</li>\r\n<li>mise à jour des modules existants</li>\r\n<li>installation et configuration e modules</li>\r\n</ul>\r\n (Hors coût éventuel d’achat des modules)',NULL,0.000,0.000,'0',0.000,'0',0,0,0,400,400.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,400.00000000,NULL,3,2),(85,18,NULL,NULL,NULL,'1 journée de tournage avec matériel :\r\n<ul>\r\n<li>Panasonic G5</li>\r\n<li>Objectif 25mm (equiv 50) spécial portrait</li>\r\n<li>Microphone</li>\r\n<li>2 boîtes à lumières pour mise en lumière de la scène</li>\r\n</ul>\r\nDéplacement sur région lyonnaise inclus',NULL,0.000,0.000,'0',0.000,'0',1,0,0,550,550.00000000,550.00000000,0.00000000,0.00000000,0.00000000,550.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1),(86,18,NULL,NULL,NULL,'Montage d\'une vidéo d\'une durée d\'environ 3-4 minutes comprenant :\r\n<ul>\r\n<li>Générique d\'introduction (fondus logo et titre de la vidéo)</li>\r\n<li>Environ 8 séquences (composées du titre de la séquence, 1 plan vidéo)</li>\r\n<li>Générique de fin - crédits</li>\r\n</ul>\r\nLivraison de la vidéo au format mp4 h264 Full HD',NULL,0.000,0.000,'0',0.000,'0',4,0,0,340,340.00000000,1360.00000000,0.00000000,0.00000000,0.00000000,1360.00000000,1,NULL,NULL,0,0.00000000,NULL,0,2),(87,18,NULL,NULL,NULL,'Transcription de l\'audio en texte pour une vidéo de 4 minutes (si besoin de sous-titres)',NULL,0.000,0.000,'0',0.000,'0',0,0,0,NULL,30.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,0.00000000,NULL,3,4),(88,18,NULL,NULL,NULL,'Intégration de sous-titres sur une vidéo de 4 minutes',NULL,0.000,0.000,'0',0.000,'0',0,0,0,40,40.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,0.00000000,NULL,3,5),(91,18,NULL,NULL,NULL,'Animation des schémas retravaillés des pages 6 , 29, 36, 51 afin d\'animer la construction des schémas de façon logique et pédagogique pour en faciliter la compréhension et éviter de \"surcharger\" l\'apprenant.',NULL,0.000,0.000,'0',0.000,'0',0,0,0,200,200.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,0.00000000,NULL,3,3),(92,19,NULL,NULL,NULL,'1 journée de tournage avec matériel :\r\n<ul>\r\n<li>Panasonic G5</li>\r\n<li>Objectif 25mm (equiv 50) spécial portrait</li>\r\n<li>Microphone</li>\r\n<li>2 boîtes à lumières pour mise en lumière de la scène</li>\r\n</ul>\r\nDéplacement sur région lyonnaise inclus',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,550.00000000,550.00000000,0.00000000,0.00000000,0.00000000,550.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1),(93,19,NULL,NULL,NULL,'Montage d\'une vidéo d\'une durée d\'environ 3-4 minutes comprenant :\r\n<ul>\r\n<li>Générique d\'introduction (fondus logo et titre de la vidéo)</li>\r\n<li>Environ 8 séquences (composées du titre de la séquence, 1 plan vidéo)</li>\r\n<li>Générique de fin - crédits</li>\r\n</ul>\r\nLivraison de la vidéo au format mp4 h264 Full HD',NULL,0.000,0.000,'0',0.000,'0',4,0,0,NULL,340.00000000,1360.00000000,0.00000000,0.00000000,0.00000000,1360.00000000,1,NULL,NULL,0,0.00000000,NULL,0,2),(95,19,NULL,NULL,NULL,'Transcription de l\'audio en texte pour une vidéo de 4 minutes (si besoin de sous-titres)',NULL,0.000,0.000,'0',0.000,'0',0,0,0,NULL,30.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,0.00000000,NULL,3,3),(96,19,NULL,NULL,NULL,'Intégration de sous-titres sur une vidéo de 4 minutes',NULL,0.000,0.000,'0',0.000,'0',0,0,0,NULL,40.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,0.00000000,NULL,3,4),(97,20,NULL,NULL,NULL,'Visualisations des infos clients :\r\n<ul><li>email</li><li>date de naissance</li><li>date d\'inscription</li><li>nombre de visites</li><li>date dernière visite</li>\r\n</ul>\r\nCréation d’un évènement marketing avec conditions d’envoi :\r\n<ul>\r\n<li>X jours avant l\'anniversaire</li>\r\n<li>X jours après dernière visite</li>\r\n<li>X jours après la Xième visite</li>\r\n<li>après la Xième visite</li>\r\n<li>date fixe</li>\r\n</ul><br/>\r\nAutomatisation des envois marketing  :\r\n<ul>\r\nMise en place d\'un système utilisant Mailjet et Octopush pour envoyer les messages par email et/ou sms\r\n</ul>',NULL,0.000,0.000,'0',0.000,'0',1,0,0,2500,2500.00000000,2500.00000000,0.00000000,0.00000000,0.00000000,2500.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1),(98,20,NULL,NULL,NULL,'Enquête de satisfaction : mise en place de Lime Survey',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,250.00000000,250.00000000,0.00000000,0.00000000,0.00000000,250.00000000,1,NULL,NULL,0,0.00000000,NULL,0,2),(99,20,NULL,NULL,NULL,'Affichage QR Code dans l\'application IOS et Androïd',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,150.00000000,150.00000000,0.00000000,0.00000000,0.00000000,150.00000000,1,NULL,NULL,0,0.00000000,NULL,0,3),(100,20,NULL,NULL,NULL,'Export mensuel automatique (prix initial 195€, réduction de 95€)',NULL,0.000,0.000,'0',0.000,'0',1,0,0,100,100.00000000,100.00000000,0.00000000,0.00000000,0.00000000,100.00000000,1,NULL,NULL,0,0.00000000,NULL,0,4),(101,21,NULL,NULL,NULL,'Divers services',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,1910.00000000,1910.00000000,0.00000000,0.00000000,0.00000000,1910.00000000,1,NULL,NULL,0,1910.00000000,NULL,0,1),(102,22,NULL,NULL,NULL,'Création d\'une charte graphique destinée aux animations (couleurs et polices utilisées).\r\nDans un soucis de cohérence, cette charte graphique s\'inspirera de celle du site internet atouts-sciences.org et de la Light Box',NULL,0.000,0.000,'0',0.000,'0',1,0,0,250,250.00000000,250.00000000,0.00000000,0.00000000,0.00000000,250.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1),(103,22,NULL,NULL,NULL,'Création d\'une animation en flat design composée de 4 plans \r\nLivraison au format full HD (1920x1080) mp4 H264.',NULL,0.000,0.000,'0',0.000,'0',20,6,0,NULL,230.00000000,4324.00000000,0.00000000,0.00000000,0.00000000,4324.00000000,1,NULL,NULL,0,0.00000000,NULL,0,2),(104,22,NULL,NULL,NULL,'Création d\'élements graphiques simples en flat design ',NULL,0.000,0.000,'0',0.000,'0',11,6,0,NULL,20.00000000,206.80000000,0.00000000,0.00000000,0.00000000,206.80000000,1,NULL,NULL,0,0.00000000,NULL,0,3),(105,22,NULL,NULL,NULL,'Création d\'un générique de 4 plans',NULL,0.000,0.000,'0',0.000,'0',1,6,0,NULL,230.00000000,216.20000000,0.00000000,0.00000000,0.00000000,216.20000000,1,NULL,NULL,0,0.00000000,NULL,0,4),(106,22,NULL,NULL,NULL,'Reprise d’éléments graphiques existants dans notre bibliothèque (offert)',NULL,0.000,0.000,'0',0.000,'0',1,0,0,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,0.00000000,NULL,0,5);

--
-- Table structure for table `llx_propaldet_extrafields`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_propaldet_extrafields`
--


--
-- Table structure for table `llx_resource`
--

CREATE TABLE `llx_resource` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT NULL,
  `ref` varchar(255) DEFAULT NULL,
  `description` text,
  `fk_code_type_resource` varchar(32) DEFAULT NULL,
  `note_public` text,
  `note_private` text,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`rowid`),
  KEY `fk_code_type_resource_idx` (`fk_code_type_resource`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_resource`
--


--
-- Table structure for table `llx_rights_def`
--

CREATE TABLE `llx_rights_def` (
  `id` int(11) NOT NULL DEFAULT '0',
  `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=latin1;

--
-- Dumping data for table `llx_rights_def`
--

INSERT INTO `llx_rights_def` (`id`, `libelle`, `module`, `entity`, `perms`, `subperms`, `type`, `bydefault`) VALUES (11,'Lire les factures','facture',1,'lire',NULL,'a',1),(12,'Creer/modifier les factures','facture',1,'creer',NULL,'a',0),(13,'Dévalider les factures','facture',1,'invoice_advance','unvalidate','a',0),(14,'Valider les factures','facture',1,'valider',NULL,'a',0),(15,'Envoyer les factures par mail','facture',1,'invoice_advance','send','a',0),(16,'Emettre des paiements sur les factures','facture',1,'paiement',NULL,'a',0),(19,'Supprimer les factures','facture',1,'supprimer',NULL,'a',0),(21,'Lire les propositions commerciales','propale',1,'lire',NULL,'r',1),(22,'Creer/modifier les propositions commerciales','propale',1,'creer',NULL,'w',0),(24,'Valider les propositions commerciales','propale',1,'valider',NULL,'d',0),(25,'Envoyer les propositions commerciales aux clients','propale',1,'propal_advance','send','d',0),(26,'Cloturer les propositions commerciales','propale',1,'cloturer',NULL,'d',0),(27,'Supprimer les propositions commerciales','propale',1,'supprimer',NULL,'d',0),(28,'Exporter les propositions commerciales et attributs','propale',1,'export',NULL,'r',0),(31,'Lire les produits','produit',1,'lire',NULL,'r',1),(32,'Creer/modifier les produits','produit',1,'creer',NULL,'w',0),(34,'Supprimer les produits','produit',1,'supprimer',NULL,'d',0),(38,'Exporter les produits','produit',1,'export',NULL,'r',0),(41,'Lire les projets et tâches (partagés ou dont je suis contact)','projet',1,'lire',NULL,'r',1),(42,'Creer/modifier les projets et tâches (partagés ou dont je suis contact)','projet',1,'creer',NULL,'w',0),(44,'Supprimer les projets et tâches (partagés ou dont je suis contact)','projet',1,'supprimer',NULL,'d',0),(45,'Exporter les projets','projet',1,'export',NULL,'d',0),(81,'Lire les commandes clients','commande',1,'lire',NULL,'r',1),(82,'Creer/modifier les commandes clients','commande',1,'creer',NULL,'w',0),(84,'Valider les commandes clients','commande',1,'valider',NULL,'d',0),(86,'Envoyer les commandes clients','commande',1,'order_advance','send','d',0),(87,'Cloturer les commandes clients','commande',1,'cloturer',NULL,'d',0),(88,'Annuler les commandes clients','commande',1,'annuler',NULL,'d',0),(89,'Supprimer les commandes clients','commande',1,'supprimer',NULL,'d',0),(95,'Lire CA, bilans, resultats','compta',1,'resultat','lire','r',1),(96,'Parametrer la ventilation','compta',1,'ventilation','parametrer','r',0),(97,'Lire les ventilations de factures','compta',1,'ventilation','lire','r',1),(98,'Ventiler les lignes de factures','compta',1,'ventilation','creer','r',0),(111,'Lire les comptes bancaires','banque',1,'lire',NULL,'r',1),(112,'Creer/modifier montant/supprimer ecriture bancaire','banque',1,'modifier',NULL,'w',0),(113,'Configurer les comptes bancaires (creer, gerer categories)','banque',1,'configurer',NULL,'a',0),(114,'Rapprocher les ecritures bancaires','banque',1,'consolidate',NULL,'w',0),(115,'Exporter transactions et releves','banque',1,'export',NULL,'r',0),(116,'Virements entre comptes','banque',1,'transfer',NULL,'w',0),(117,'Gerer les envois de cheques','banque',1,'cheque',NULL,'w',0),(121,'Lire les societes','societe',1,'lire',NULL,'r',1),(122,'Creer modifier les societes','societe',1,'creer',NULL,'w',0),(125,'Supprimer les societes','societe',1,'supprimer',NULL,'d',0),(126,'Exporter les societes','societe',1,'export',NULL,'r',0),(141,'Lire tous les projets et tâches (y compris prives qui ne me sont pas affectes)','projet',1,'all','lire','r',0),(142,'Creer/modifier tous les projets et tâches (y compris prives qui ne me sont pas affectes)','projet',1,'all','creer','w',0),(144,'Supprimer tous les projets et tâches (y compris prives qui ne me sont pas affectes)','projet',1,'all','supprimer','d',0),(161,'Lire les contrats','contrat',1,'lire',NULL,'r',1),(162,'Creer / modifier les contrats','contrat',1,'creer',NULL,'w',0),(163,'Activer un service d\'un contrat','contrat',1,'activer',NULL,'w',0),(164,'Desactiver un service d\'un contrat','contrat',1,'desactiver',NULL,'w',0),(165,'Supprimer un contrat','contrat',1,'supprimer',NULL,'d',0),(241,'Lire les categories','categorie',1,'lire',NULL,'r',1),(242,'Creer/modifier les categories','categorie',1,'creer',NULL,'w',0),(243,'Supprimer les categories','categorie',1,'supprimer',NULL,'d',0),(251,'Consulter les autres utilisateurs','user',1,'user','lire','r',0),(252,'Consulter les permissions des autres utilisateurs','user',1,'user_advance','readperms','r',0),(253,'Creer/modifier utilisateurs internes et externes','user',1,'user','creer','w',0),(254,'Creer/modifier utilisateurs externes seulement','user',1,'user_advance','write','w',0),(255,'Modifier le mot de passe des autres utilisateurs','user',1,'user','password','w',0),(256,'Supprimer ou desactiver les autres utilisateurs','user',1,'user','supprimer','d',0),(262,'Consulter tous les tiers par utilisateurs internes (sinon uniquement si contact commercial). Non effectif pour utilisateurs externes (tjs limités à eux-meme).','societe',1,'client','voir','r',1),(281,'Lire les contacts','societe',1,'contact','lire','r',1),(282,'Creer modifier les contacts','societe',1,'contact','creer','w',0),(283,'Supprimer les contacts','societe',1,'contact','supprimer','d',0),(286,'Exporter les contacts','societe',1,'contact','export','d',0),(341,'Consulter ses propres permissions','user',1,'self_advance','readperms','r',1),(342,'Creer/modifier ses propres infos utilisateur','user',1,'self','creer','w',1),(343,'Modifier son propre mot de passe','user',1,'self','password','w',1),(344,'Modifier ses propres permissions','user',1,'self_advance','writeperms','w',1),(351,'Consulter les groupes','user',1,'group_advance','read','r',0),(352,'Consulter les permissions des groupes','user',1,'group_advance','readperms','r',0),(353,'Creer/modifier les groupes et leurs permissions','user',1,'group_advance','write','w',0),(354,'Supprimer ou desactiver les groupes','user',1,'group_advance','delete','d',0),(358,'Exporter les utilisateurs','user',1,'user','export','r',0),(531,'Lire les services','service',1,'lire',NULL,'r',1),(532,'Creer/modifier les services','service',1,'creer',NULL,'w',0),(534,'Supprimer les services','service',1,'supprimer',NULL,'d',0),(538,'Exporter les services','service',1,'export',NULL,'r',0),(1181,'Consulter les fournisseurs','fournisseur',1,'lire',NULL,'r',1),(1182,'Consulter les commandes fournisseur','fournisseur',1,'commande','lire','r',1),(1183,'Creer une commande fournisseur','fournisseur',1,'commande','creer','w',0),(1184,'Valider une commande fournisseur','fournisseur',1,'commande','valider','w',0),(1185,'Approuver une commande fournisseur','fournisseur',1,'commande','approuver','w',0),(1186,'Commander une commande fournisseur','fournisseur',1,'commande','commander','w',0),(1187,'Receptionner une commande fournisseur','fournisseur',1,'commande','receptionner','d',0),(1188,'Supprimer une commande fournisseur','fournisseur',1,'commande','supprimer','d',0),(1231,'Consulter les factures fournisseur','fournisseur',1,'facture','lire','r',1),(1232,'Creer une facture fournisseur','fournisseur',1,'facture','creer','w',0),(1233,'Valider une facture fournisseur','fournisseur',1,'facture','valider','w',0),(1234,'Supprimer une facture fournisseur','fournisseur',1,'facture','supprimer','d',0),(1235,'Envoyer les factures par mail','fournisseur',1,'supplier_invoice_advance','send','a',0),(1236,'Exporter les factures fournisseurs, attributs et reglements','fournisseur',1,'facture','export','r',0),(1237,'Exporter les commande fournisseurs, attributs','fournisseur',1,'commande','export','r',0),(1321,'Exporter les factures clients, attributs et reglements','facture',1,'facture','export','r',0),(1421,'Exporter les commandes clients et attributs','commande',1,'commande','export','r',0),(2401,'Read actions/tasks linked to his account','agenda',1,'myactions','read','r',1),(2402,'Create/modify actions/tasks linked to his account','agenda',1,'myactions','create','w',0),(2403,'Delete actions/tasks linked to his account','agenda',1,'myactions','delete','w',0),(2411,'Read actions/tasks of others','agenda',1,'allactions','read','r',0),(2412,'Create/modify actions/tasks of others','agenda',1,'allactions','create','w',0),(2413,'Delete actions/tasks of others','agenda',1,'allactions','delete','w',0),(2414,'Export actions/tasks of others','agenda',1,'export',NULL,'w',0),(2501,'Consulter/Télécharger les documents','ecm',1,'read',NULL,'r',1),(2503,'Soumettre ou supprimer des documents','ecm',1,'upload',NULL,'w',1),(2515,'Administrer les rubriques de documents','ecm',1,'setup',NULL,'w',1),(59001,'Visualiser les marges','margins',1,'liretous',NULL,'r',1),(59002,'Définir les marges','margins',1,'creer',NULL,'w',0);

--
-- Table structure for table `llx_societe`
--

CREATE TABLE `llx_societe` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `nom` varchar(60) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_ext` varchar(128) DEFAULT NULL,
  `ref_int` varchar(60) 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',
  `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 DEFAULT NULL,
  `fk_stcomm` int(11) NOT NULL DEFAULT '0',
  `note_private` text,
  `note_public` text,
  `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,
  `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,
  `tva_assuj` tinyint(4) DEFAULT '1',
  `localtax1_assuj` tinyint(4) DEFAULT '0',
  `localtax2_assuj` tinyint(4) DEFAULT '0',
  `barcode` varchar(255) 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,
  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 AUTO_INCREMENT=27 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_societe`
--

INSERT INTO `llx_societe` (`rowid`, `nom`, `entity`, `ref_ext`, `ref_int`, `statut`, `parent`, `tms`, `datec`, `status`, `code_client`, `code_fournisseur`, `code_compta`, `code_compta_fournisseur`, `address`, `zip`, `town`, `fk_departement`, `fk_pays`, `phone`, `fax`, `url`, `email`, `skype`, `fk_effectif`, `fk_typent`, `fk_forme_juridique`, `fk_currency`, `siren`, `siret`, `ape`, `idprof4`, `idprof5`, `idprof6`, `tva_intra`, `capital`, `fk_stcomm`, `note_private`, `note_public`, `prefix_comm`, `client`, `fournisseur`, `supplier_account`, `fk_prospectlevel`, `customer_bad`, `customer_rate`, `supplier_rate`, `fk_user_creat`, `fk_user_modif`, `remise_client`, `mode_reglement`, `cond_reglement`, `mode_reglement_supplier`, `cond_reglement_supplier`, `tva_assuj`, `localtax1_assuj`, `localtax2_assuj`, `barcode`, `fk_barcode_type`, `price_level`, `outstanding_limit`, `default_lang`, `logo`, `canvas`, `import_key`) VALUES (1,'Allucyne',1,NULL,NULL,0,NULL,'2014-12-28 17:56:11','2014-12-28 17:53:25',1,'Allucyne',NULL,NULL,NULL,'La Jonxion\r\n1 Avenue de la Gare TGV','90400','Meroux',92,1,'+33(0)339034343',NULL,'www.allucyne.com/','contact@allucyne.com',NULL,3,3,58,NULL,'','','','','','','',0,0,NULL,NULL,NULL,3,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(2,'IVAOS',1,NULL,NULL,0,NULL,'2015-04-03 14:09:08','2014-12-28 17:55:19',1,'IVAOS',NULL,NULL,NULL,'Rond-point Benjamin Franklin CS39521','34960','Montpellier CEDEX 2',36,1,'+33(0)489830026',NULL,'www.ivaos.com','administ@ivaos.com',NULL,1,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,1,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(3,'Les Zapéros de Fredo',1,NULL,NULL,0,NULL,'2015-04-04 09:59:45','2014-12-28 18:30:41',1,NULL,NULL,NULL,NULL,'',NULL,NULL,0,1,NULL,NULL,NULL,'leszaperosdefredo@gmail.com',NULL,NULL,0,NULL,NULL,'','','','','','','',0,3,NULL,NULL,NULL,2,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(4,'123RF',1,NULL,NULL,0,NULL,'2015-01-28 23:54:15','2015-01-28 23:54:15',1,NULL,NULL,NULL,NULL,'',NULL,NULL,0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,0,1,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(5,'Google',1,NULL,NULL,0,NULL,'2015-01-29 00:01:15','2015-01-29 00:01:15',1,NULL,NULL,NULL,NULL,'',NULL,NULL,0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,0,1,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(6,'Les Experts',1,NULL,NULL,0,NULL,'2015-03-01 22:30:34','2015-03-01 22:30:34',1,'EXP',NULL,NULL,NULL,'',NULL,NULL,0,6,NULL,NULL,'www.lesexperts.ch',NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,3,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(7,'SUP HAIR\'STAR FACTORY',1,NULL,NULL,0,NULL,'2015-08-18 13:20:59','2015-05-08 13:13:15',1,NULL,NULL,NULL,NULL,'11 grande rue Audincourt','25230',NULL,0,1,'0631718398',NULL,NULL,'lorishug@suphairstar.fr',NULL,NULL,0,54,NULL,'','','','','','','',0,0,NULL,NULL,NULL,1,1,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(8,'Apple',1,NULL,NULL,0,NULL,'2015-06-18 15:23:06','2015-06-18 15:23:06',1,NULL,NULL,NULL,NULL,'',NULL,NULL,0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,0,1,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(9,'OVH',1,NULL,NULL,0,NULL,'2015-08-18 13:14:32','2015-08-18 13:14:32',1,NULL,'OVH',NULL,NULL,'',NULL,NULL,0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,0,1,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(10,'ENvato Pty Ltd',1,NULL,NULL,0,NULL,'2015-08-18 15:21:15','2015-08-18 15:21:15',1,NULL,NULL,NULL,NULL,'',NULL,NULL,0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,0,1,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(11,'Mizutani Scissors France',1,NULL,NULL,0,NULL,'2015-09-23 23:45:21','2015-09-23 23:40:24',1,NULL,NULL,NULL,NULL,'Jean Vincent ALAFACI\r\n06 88 22 59 30',NULL,NULL,0,1,'0966968131',NULL,'www.mizutani-scissors.fr','contact@mizutani-scissors.fr',NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,3,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(12,'mashUp haircare',1,NULL,NULL,0,NULL,'2015-10-10 07:54:31','2015-10-10 07:54:31',1,NULL,NULL,NULL,NULL,'Via degli Alburni, 2/b\r\n84095 Giffoni Valle Piana (Sa)\r\nItalie',NULL,NULL,0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,3,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(13,'Time Prod',1,NULL,NULL,0,NULL,'2016-03-22 16:55:05','2016-03-22 16:53:52',1,NULL,NULL,NULL,NULL,'',NULL,NULL,0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,0,1,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(14,'UP13',1,NULL,NULL,0,NULL,'2016-06-15 10:17:15','2016-06-15 10:17:15',1,NULL,NULL,NULL,NULL,'99 av. Jean-Baptiste Clément','93430','VILLETANEUSE',0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,1,1,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(15,'New Care Concept Sàrl',1,NULL,NULL,0,NULL,'2016-08-29 13:22:25','2016-08-29 10:08:47',1,NULL,NULL,NULL,NULL,'Rue de la plaine 34\r\n1400 Yverdon les bains',NULL,NULL,0,1,'+41763200280',NULL,NULL,'farid.tbatou@gmail.com',NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,3,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(16,'Université Paris Nanterre',1,NULL,NULL,0,NULL,'2016-09-23 22:50:15','2016-09-19 12:45:08',1,'UP10',NULL,NULL,NULL,'Christophe Jeunesse\r\nResponsable pédagogique des DU FIPA et CAFEL\r\n\r\nUniversité Paris Nanterre\r\n200 avenue de la République','92001','Nanterre Cedex',0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,1,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(17,'Google Payment Limited',1,NULL,NULL,0,NULL,'2016-09-19 14:49:47','2016-09-19 14:49:47',1,NULL,NULL,NULL,NULL,'',NULL,NULL,0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,1,1,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(18,'Apple appli',1,NULL,NULL,0,NULL,'2016-09-19 14:56:08','2016-09-19 14:56:08',1,NULL,NULL,NULL,NULL,'',NULL,NULL,0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,1,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(19,'Divers',1,NULL,NULL,0,NULL,'2016-10-08 09:57:44','2016-10-08 11:57:44',1,NULL,NULL,NULL,NULL,'',NULL,NULL,0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,3,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(20,'CoActis-Santé',1,NULL,NULL,0,NULL,'2016-11-22 18:08:20','2016-11-22 17:02:46',1,NULL,NULL,NULL,NULL,'85 Boulevard de Port Royal','75013','Paris',0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,3,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(21,'Filière de santé DéfiScience',1,NULL,NULL,0,NULL,'2017-01-26 14:07:40','2016-11-25 16:54:03',1,NULL,NULL,NULL,NULL,'Madame Marie-Pierre Reymond\r\n\r\nEPICIME - HCL Bât Les Tilleuls\r\n59, boulevard Pinel\r\n\r\nCedex','69677','BRON',0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,1,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(22,'NEERUNJUN',1,NULL,NULL,0,NULL,'2016-12-28 12:22:36','2016-12-28 13:22:36',1,NULL,NULL,NULL,NULL,'',NULL,NULL,0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,1,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(23,'Les amis de Florent',1,NULL,NULL,0,NULL,'2016-12-28 12:34:16','2016-12-28 13:34:16',1,NULL,NULL,NULL,NULL,'',NULL,NULL,0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,1,1,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(24,'GEORGIA BUCUR',1,NULL,NULL,0,NULL,'2016-12-28 12:38:19','2016-12-28 13:38:19',1,NULL,NULL,NULL,NULL,'',NULL,NULL,0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,1,1,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(25,'SARL POUPS',1,NULL,NULL,0,NULL,'2017-04-30 16:51:28','2017-04-30 18:51:28',1,NULL,NULL,NULL,NULL,'2 RUE DE GRAND CHARMONT','25600','SOCHAUX',0,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,1,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(26,'Scribtel M2i',1,NULL,NULL,0,NULL,'2017-05-17 14:00:55','2017-05-17 15:56:41',1,NULL,NULL,NULL,NULL,'SCRIBTEL FORMATION\r\n101 av. Laurent Cély\r\n92230 GENNEVILLIERS',NULL,NULL,0,1,'0472689960','0472689969',NULL,NULL,NULL,NULL,0,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,1,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `llx_societe_address`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_societe_address`
--


--
-- Table structure for table `llx_societe_commerciaux`
--

CREATE TABLE `llx_societe_commerciaux` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_societe_commerciaux` (`fk_soc`,`fk_user`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_societe_commerciaux`
--

INSERT INTO `llx_societe_commerciaux` (`rowid`, `fk_soc`, `fk_user`) VALUES (1,1,1),(2,2,1),(3,3,1),(4,4,1),(5,5,1),(6,6,1),(7,7,1),(8,8,1),(9,9,1),(10,10,1),(11,11,1),(12,12,1),(13,13,1),(14,14,1),(15,15,1),(16,16,1),(17,17,1),(18,18,1),(19,19,1),(20,20,1),(21,21,1),(22,22,1),(23,23,1),(24,24,1),(25,25,1),(26,26,1);

--
-- Table structure for table `llx_societe_extrafields`
--

CREATE TABLE `llx_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`),
  KEY `idx_societe_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_societe_extrafields`
--


--
-- Table structure for table `llx_societe_log`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_societe_log`
--


--
-- Table structure for table `llx_societe_prices`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_societe_prices`
--


--
-- Table structure for table `llx_societe_remise`
--

CREATE TABLE `llx_societe_remise` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `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=latin1;

--
-- Dumping data for table `llx_societe_remise`
--


--
-- Table structure for table `llx_societe_remise_except`
--

CREATE TABLE `llx_societe_remise_except` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `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,
  `description` varchar(255) NOT NULL,
  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`),
  CONSTRAINT `fk_societe_remise_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_facture_line` FOREIGN KEY (`fk_facture_line`) REFERENCES `llx_facturedet` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_societe_remise_except`
--


--
-- Table structure for table `llx_societe_rib`
--

CREATE TABLE `llx_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(7) 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',
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_societe_rib`
--


--
-- Table structure for table `llx_socpeople`
--

CREATE TABLE `llx_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(128) DEFAULT NULL,
  `civilite` 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,
  `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`),
  CONSTRAINT `fk_socpeople_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_socpeople_user_creat_user_rowid` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_socpeople`
--


--
-- Table structure for table `llx_socpeople_extrafields`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_socpeople_extrafields`
--


--
-- Table structure for table `llx_stock_mouvement`
--

CREATE TABLE `llx_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,
  `fk_entrepot` int(11) NOT NULL,
  `value` double DEFAULT NULL,
  `price` float(13,4) DEFAULT '0.0000',
  `type_mouvement` smallint(6) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `label` 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=latin1;

--
-- Dumping data for table `llx_stock_mouvement`
--


--
-- Table structure for table `llx_texts`
--

CREATE TABLE `llx_texts` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `module` varchar(32) DEFAULT NULL,
  `typemodele` varchar(32) DEFAULT NULL,
  `sortorder` smallint(6) DEFAULT NULL,
  `private` smallint(6) NOT NULL DEFAULT '0',
  `fk_user` int(11) DEFAULT NULL,
  `title` varchar(128) DEFAULT NULL,
  `filename` varchar(128) DEFAULT NULL,
  `content` text,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_texts`
--


--
-- Table structure for table `llx_tva`
--

CREATE TABLE `llx_tva` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `amount` double NOT NULL DEFAULT '0',
  `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,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_tva`
--


--
-- Table structure for table `llx_user`
--

CREATE TABLE `llx_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,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `login` varchar(24) NOT NULL,
  `pass` varchar(32) DEFAULT NULL,
  `pass_crypted` varchar(128) DEFAULT NULL,
  `pass_temp` varchar(32) DEFAULT NULL,
  `civilite` 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',
  `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_societe` int(11) DEFAULT NULL,
  `fk_socpeople` int(11) DEFAULT NULL,
  `fk_member` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `thm` double(24,8) DEFAULT NULL,
  `note` text,
  `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(24) DEFAULT NULL,
  `nb_holiday` int(11) DEFAULT '0',
  `salary` double(24,8) 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`),
  KEY `uk_user_fk_societe` (`fk_societe`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_user`
--

INSERT INTO `llx_user` (`rowid`, `entity`, `ref_ext`, `ref_int`, `datec`, `tms`, `login`, `pass`, `pass_crypted`, `pass_temp`, `civilite`, `lastname`, `firstname`, `address`, `zip`, `town`, `fk_state`, `fk_country`, `job`, `skype`, `office_phone`, `office_fax`, `user_mobile`, `email`, `signature`, `admin`, `module_comm`, `module_compta`, `fk_societe`, `fk_socpeople`, `fk_member`, `fk_user`, `thm`, `note`, `datelastlogin`, `datepreviouslogin`, `egroupware_id`, `ldap_sid`, `openid`, `statut`, `photo`, `lang`, `color`, `barcode`, `fk_barcode_type`, `accountancy_code`, `nb_holiday`, `salary`) VALUES (1,0,NULL,NULL,'2014-12-28 17:42:16','2014-12-28 17:42:16','admin','3er_ghuf*','7bb7d638ccc7df0ce7d07061b68bb1c5',NULL,NULL,'SuperAdmin','','','','',NULL,NULL,'','','','','','','',1,1,1,NULL,NULL,NULL,NULL,NULL,'','2017-05-17 23:20:47','2017-05-17 15:54:02',NULL,'',NULL,1,NULL,NULL,NULL,NULL,0,'',0,NULL),(2,0,NULL,NULL,'2014-12-28 18:23:27','2014-12-28 18:23:27','Olivier','Olivier','585ca462bdb75a06f5e707881557c804',NULL,NULL,'Olivier','Olivier','','','',NULL,NULL,'','','','','','','',1,1,1,NULL,NULL,NULL,NULL,NULL,'','2015-01-16 08:46:29','2015-01-16 08:42:31',NULL,'',NULL,1,NULL,NULL,NULL,NULL,0,'',0,NULL),(3,0,NULL,NULL,'2015-01-16 08:47:38','2015-01-16 08:47:38','cmougin','Nupeqi61*','f2d15ea7f079e970dd40dc555aaff7b3',NULL,NULL,'MOUGIN','Catherine','','','',NULL,NULL,'Directrice','','','','','efornove@gmail.com','',1,1,1,NULL,NULL,NULL,NULL,NULL,'','2015-01-16 08:48:32',NULL,NULL,'',NULL,1,NULL,NULL,NULL,NULL,0,'',0,NULL);

--
-- Table structure for table `llx_user_alert`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_user_alert`
--


--
-- Table structure for table `llx_user_clicktodial`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_user_clicktodial`
--


--
-- Table structure for table `llx_user_extrafields`
--

CREATE TABLE `llx_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=latin1;

--
-- Dumping data for table `llx_user_extrafields`
--


--
-- Table structure for table `llx_user_param`
--

CREATE TABLE `llx_user_param` (
  `fk_user` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `param` varchar(64) NOT NULL,
  `value` varchar(255) NOT NULL,
  UNIQUE KEY `uk_user_param` (`fk_user`,`param`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_user_param`
--


--
-- Table structure for table `llx_user_rights`
--

CREATE TABLE `llx_user_rights` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_user` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_user_rights` (`fk_user`,`fk_id`),
  CONSTRAINT `fk_user_rights_fk_user_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=320 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_user_rights`
--

INSERT INTO `llx_user_rights` (`rowid`, `fk_user`, `fk_id`) VALUES (125,1,11),(118,1,12),(119,1,13),(121,1,14),(122,1,15),(124,1,16),(126,1,19),(239,1,21),(231,1,22),(233,1,24),(234,1,25),(236,1,26),(238,1,27),(240,1,28),(261,1,31),(258,1,32),(260,1,34),(262,1,38),(220,1,41),(217,1,42),(219,1,44),(221,1,45),(57,1,81),(49,1,82),(51,1,84),(52,1,86),(54,1,87),(56,1,88),(58,1,89),(111,1,95),(112,1,96),(114,1,97),(115,1,98),(154,1,111),(145,1,112),(147,1,113),(149,1,114),(151,1,115),(153,1,116),(155,1,117),(246,1,121),(243,1,122),(245,1,125),(247,1,126),(225,1,141),(224,1,142),(226,1,144),(82,1,161),(77,1,162),(79,1,163),(81,1,164),(83,1,165),(266,1,241),(265,1,242),(267,1,243),(248,1,262),(254,1,281),(251,1,282),(253,1,283),(255,1,286),(1,1,341),(2,1,342),(3,1,343),(4,1,344),(104,1,531),(101,1,532),(103,1,534),(105,1,538),(156,1,1181),(180,1,1182),(159,1,1183),(161,1,1184),(163,1,1185),(165,1,1186),(167,1,1187),(169,1,1188),(178,1,1231),(172,1,1232),(174,1,1233),(176,1,1234),(177,1,1235),(179,1,1236),(181,1,1237),(127,1,1321),(59,1,1421),(207,1,2401),(206,1,2402),(208,1,2403),(212,1,2411),(211,1,2412),(213,1,2413),(214,1,2414),(109,1,2501),(108,1,2503),(110,1,2515),(227,1,59001),(228,1,59002),(268,2,11),(269,2,21),(270,2,31),(271,2,41),(272,2,81),(273,2,95),(274,2,97),(275,2,111),(276,2,121),(277,2,161),(278,2,241),(279,2,262),(280,2,281),(281,2,341),(282,2,342),(283,2,343),(284,2,344),(285,2,531),(286,2,1181),(287,2,1182),(288,2,1231),(289,2,2401),(290,2,2501),(291,2,2503),(292,2,2515),(293,2,59001),(294,3,11),(295,3,21),(296,3,31),(297,3,41),(298,3,81),(299,3,95),(300,3,97),(301,3,111),(302,3,121),(303,3,161),(304,3,241),(305,3,262),(306,3,281),(307,3,341),(308,3,342),(309,3,343),(310,3,344),(311,3,531),(312,3,1181),(313,3,1182),(314,3,1231),(315,3,2401),(316,3,2501),(317,3,2503),(318,3,2515),(319,3,59001);

--
-- Table structure for table `llx_usergroup`
--

CREATE TABLE `llx_usergroup` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `nom` varchar(255) 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,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_usergroup_name` (`nom`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_usergroup`
--


--
-- Table structure for table `llx_usergroup_rights`
--

CREATE TABLE `llx_usergroup_rights` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_usergroup` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `fk_usergroup` (`fk_usergroup`,`fk_id`),
  CONSTRAINT `fk_usergroup_rights_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `llx_usergroup` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_usergroup_rights`
--


--
-- Table structure for table `llx_usergroup_user`
--

CREATE TABLE `llx_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`),
  KEY `fk_usergroup_user_fk_user` (`fk_user`),
  KEY `fk_usergroup_user_fk_usergroup` (`fk_usergroup`),
  CONSTRAINT `fk_usergroup_user_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_usergroup_user_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `llx_usergroup` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_usergroup_user`
--



