-- Table structure for table `llx_contrat`
--

CREATE TABLE `llx_contrat` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(50) DEFAULT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_supplier` varchar(50) 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,
  `signed_status` smallint(6) DEFAULT NULL,
  `statut` smallint(6) DEFAULT 0,
  `mise_en_service` datetime DEFAULT NULL,
  `fin_validite` datetime DEFAULT NULL,
  `date_cloture` datetime DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_commercial_signature` int(11) DEFAULT NULL,
  `fk_commercial_suivi` int(11) DEFAULT NULL,
  `fk_user_author` int(11) NOT NULL DEFAULT 0,
  `fk_user_mise_en_service` int(11) DEFAULT NULL,
  `fk_user_cloture` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `ref_customer` varchar(128) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `online_sign_ip` varchar(48) DEFAULT NULL,
  `online_sign_name` varchar(64) DEFAULT NULL,
  `total_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_ht` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `denormalized_lower_planned_end_date` datetime 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=15 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_contrat` (`rowid`, `ref`, `ref_ext`, `ref_supplier`, `entity`, `tms`, `datec`, `date_contrat`, `signed_status`, `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`, `model_pdf`, `import_key`, `extraparams`, `ref_customer`, `fk_user_modif`, `last_main_doc`, `online_sign_ip`, `online_sign_name`, `total_tva`, `localtax1`, `localtax2`, `revenuestamp`, `total_ht`, `total_ttc`, `denormalized_lower_planned_end_date`) VALUES (1,'CONTRACT1',NULL,NULL,1,'2025-03-12 18:31:17','2012-07-09 01:53:25','2012-07-09 00:00:00',NULL,0,NULL,NULL,NULL,3,NULL,2,2,1,NULL,NULL,NULL,NULL,'strato',NULL,NULL,NULL,NULL,'contract/CONTRACT1/CONTRACT1.pdf',NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(2,'CONTRAT1',NULL,NULL,1,'2026-02-15 20:03:34','2012-07-10 18:13:37','2012-07-10 00:00:00',NULL,1,NULL,NULL,NULL,2,NULL,2,2,1,NULL,NULL,NULL,NULL,'strato',NULL,NULL,NULL,NULL,'contract/CONTRAT1/CONTRAT1.pdf',NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,'2023-01-02 00:00:00'),(3,'CT1303-0001',NULL,NULL,1,'2026-02-15 20:03:34','2015-03-06 10:04:57','2015-03-06 00:00:00',NULL,1,NULL,NULL,NULL,19,NULL,1,1,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,'2015-03-07 12:00:00'),(5,'CT2501-0003',NULL,NULL,1,'2025-01-03 14:26:46','2025-01-03 14:59:56','2025-01-03 14:59:56',0,1,NULL,NULL,NULL,39,NULL,29,29,29,NULL,NULL,'Contract created from the online instance registration form or the customer dashboard. forcesubdomain was empty.',NULL,NULL,NULL,NULL,'testldr1.with1.home.lan',NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(6,'CT2501-0004',NULL,NULL,1,'2025-06-04 17:45:54','2025-01-03 15:05:10','2025-01-03 15:05:10',0,1,NULL,NULL,NULL,39,NULL,29,29,29,NULL,NULL,'Contract created from the online instance registration form or the customer dashboard. forcesubdomain was empty.',NULL,NULL,NULL,NULL,'testldr1b.with1.home.lan',NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(7,'CT2501-0002',NULL,NULL,1,'2025-01-03 14:26:46','2025-01-03 15:08:56','2025-01-03 15:08:56',0,1,NULL,NULL,NULL,39,NULL,29,29,29,NULL,NULL,'Contract created from the online instance registration form or the customer dashboard. forcesubdomain was empty.',NULL,NULL,NULL,NULL,'testldr1c.with1.home.lan',NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(8,'(PROV8)',NULL,NULL,1,'2025-01-03 14:13:54','2025-01-03 15:13:54','2025-01-03 15:13:54',0,0,NULL,NULL,NULL,39,NULL,29,29,29,NULL,NULL,'Contract created from the online instance registration form or the customer dashboard. forcesubdomain was empty.',NULL,NULL,NULL,NULL,'testldr1d.with1.home.lan',NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(9,'(PROV9)',NULL,NULL,1,'2025-03-12 19:10:46','2025-01-03 15:17:40','2025-01-03 15:17:40',0,0,NULL,NULL,NULL,39,NULL,29,29,29,NULL,NULL,'Contract created from the online instance registration form or the customer dashboard. forcesubdomain was empty.',NULL,'strato',NULL,NULL,'testldre.with1.home.lan',NULL,'contract/(PROV9)/(PROV9).pdf',NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(10,'(PROV10)',NULL,NULL,1,'2025-01-28 16:39:40','2025-01-28 17:39:40','2025-01-28 17:39:40',0,0,NULL,NULL,NULL,39,NULL,29,29,29,NULL,NULL,'Contract created from the online instance registration form or the customer dashboard. forcesubdomain was empty.',NULL,NULL,NULL,NULL,'aaa.with1.home.lan',NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(14,'(PROV14)',NULL,NULL,1,'2025-06-26 17:54:04','2025-06-26 17:54:04','2025-06-26 00:00:00',0,0,NULL,NULL,NULL,32,NULL,12,12,12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL);

--
-- 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 DEFAULT NULL,
  `description` text DEFAULT NULL,
  `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,
  `vat_src_code` varchar(10) DEFAULT '',
  `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,
  `subprice_ttc` 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 1,
  `info_bits` int(11) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `buy_price_ht` double(24,8) DEFAULT 0.00000000,
  `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 DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT 0.00000000,
  `multicurrency_subprice_ttc` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_contratdet_fk_contrat` (`fk_contrat`),
  KEY `idx_contratdet_fk_product` (`fk_product`),
  KEY `idx_contratdet_date_ouverture_prevue` (`date_ouverture_prevue`),
  KEY `idx_contratdet_date_ouverture` (`date_ouverture`),
  KEY `idx_contratdet_date_fin_validite` (`date_fin_validite`),
  KEY `fk_contratdet_fk_unit` (`fk_unit`),
  KEY `idx_contratdet_statut` (`statut`),
  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`),
  CONSTRAINT `fk_contratdet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_contratdet` (`rowid`, `tms`, `fk_contrat`, `fk_product`, `statut`, `label`, `description`, `fk_remise_except`, `date_commande`, `date_ouverture_prevue`, `date_ouverture`, `date_fin_validite`, `date_cloture`, `tva_tx`, `vat_src_code`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `qty`, `remise_percent`, `subprice`, `subprice_ttc`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `info_bits`, `rang`, `fk_product_fournisseur_price`, `buy_price_ht`, `fk_user_author`, `fk_user_ouverture`, `fk_user_cloture`, `commentaire`, `fk_unit`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_subprice`, `multicurrency_subprice_ttc`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `extraparams`) VALUES (2,'2023-01-25 15:43:02',2,NULL,4,'','Abonnement annuel assurance',NULL,NULL,'2012-07-10 00:00:00','2023-01-03 12:00:00','2023-01-04 12:00:00',NULL,1.000,'',0.000,'',0.000,'',1,0,10.00000000,0.00000000,10.00000000,0.10000000,0.00000000,0.00000000,10.10000000,1,0,1,NULL,0.00000000,0,12,NULL,'',NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(3,'2023-01-25 15:43:02',2,3,4,'','gdfg',NULL,NULL,'2012-07-10 00:00:00','2023-01-03 12:00:00','2023-01-04 12:00:00',NULL,4.000,'',0.000,'',0.000,'',1,0,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,0,2,0,0.00000000,0,12,1,'',NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(4,'2025-04-09 15:23:04',2,3,4,'','',NULL,NULL,'2012-07-10 00:00:00','2025-04-09 17:23:04','2023-01-02 00:00:00',NULL,0.000,'',0.000,'',0.000,'',1,10,40.00000000,0.00000000,36.00000000,0.00000000,0.00000000,0.00000000,36.00000000,1,0,3,NULL,0.00000000,0,12,12,'',NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(5,'2022-12-11 21:23:42',3,NULL,4,'','gfdg',NULL,NULL,NULL,'2015-03-06 12:00:00','2015-03-07 12:00:00',NULL,0.000,'',0.000,'',0.000,'',1,0,10.00000000,0.00000000,10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,1,0,1,0,0.00000000,0,1,1,'',NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(17,'2025-01-03 13:59:56',5,12,0,'','Service SaaS d&#39;hébergement de la solution Dolibarr ERP CRM',NULL,NULL,'2025-01-03 14:59:56',NULL,'2025-01-18 14:59:56',NULL,0.000,NULL,0.000,'0',0.000,'0',1,0,9.00000000,0.00000000,9.00000000,0.00000000,0.00000000,0.00000000,9.00000000,1,0,0,NULL,8.50000000,0,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(18,'2025-06-04 17:45:54',6,12,5,'','Service SaaS d&#39;hébergement de la solution Dolibarr ERP CRM',NULL,NULL,'2025-01-03 15:05:10',NULL,'2027-01-18 15:05:10','2025-06-04 17:45:54',0.000,'',0.000,'0',0.000,'0',1,0,9.00000000,0.00000000,9.00000000,0.00000000,0.00000000,0.00000000,9.00000000,1,0,0,NULL,8.50000000,0,NULL,12,'',NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(19,'2025-03-25 23:57:06',7,12,0,'','Service SaaS d&#39;hébergement de la solution Dolibarr ERP CRM',NULL,NULL,'2025-01-03 15:08:56',NULL,'2025-01-23 15:08:56',NULL,0.000,'',0.000,'0',0.000,'0',1,0,9.00000000,0.00000000,9.00000000,0.00000000,0.00000000,0.00000000,9.00000000,1,0,0,NULL,8.50000000,0,NULL,NULL,'',NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(20,'2025-01-03 14:13:54',8,12,0,'','Service SaaS d&#39;hébergement de la solution Dolibarr ERP CRM',NULL,NULL,'2025-01-03 15:13:54',NULL,'2025-01-18 15:13:54',NULL,0.000,NULL,0.000,'0',0.000,'0',1,0,9.00000000,0.00000000,9.00000000,0.00000000,0.00000000,0.00000000,9.00000000,1,0,0,NULL,8.50000000,0,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(22,'2025-01-28 16:39:40',10,12,0,'','Service SaaS d&#39;hébergement de la solution Dolibarr ERP CRM',NULL,NULL,'2025-01-28 17:39:40',NULL,'2025-02-12 17:39:40',NULL,0.000,NULL,0.000,'0',0.000,'0',1,0,9.00000000,0.00000000,9.00000000,0.00000000,0.00000000,0.00000000,9.00000000,1,0,0,NULL,8.50000000,0,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(27,'2025-03-12 18:35:22',1,12,0,'','Ceci est une description...',NULL,NULL,NULL,NULL,NULL,NULL,0.000,NULL,0.000,'0',0.000,'0',1,0,9.00000000,0.00000000,9.00000000,0.00000000,0.00000000,0.00000000,9.00000000,1,0,1,0,8.50000000,0,NULL,NULL,NULL,1,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(29,'2025-03-12 18:46:33',9,12,0,'','Ceci est une description...<br>\na<br>\n<strong>et la suite</strong><br>\na<br>\naaaa',NULL,NULL,NULL,NULL,NULL,NULL,0.000,NULL,0.000,'0',0.000,'0',1,0,9.00000000,0.00000000,9.00000000,0.00000000,0.00000000,0.00000000,9.00000000,1,0,1,0,8.50000000,0,NULL,NULL,NULL,1,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(35,'2025-03-12 19:07:45',9,12,0,'','Ceci est une description...<br>\na<br>\n<strong>et la suite</strong><br>\na<br>\naaaa<br>\nzzzzz',NULL,NULL,NULL,NULL,NULL,NULL,0.000,NULL,0.000,'0',0.000,'0',1,0,9.00000000,0.00000000,9.00000000,0.00000000,0.00000000,0.00000000,9.00000000,1,0,2,0,8.50000000,0,NULL,NULL,NULL,1,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL);

--
-- Table structure for table `llx_contratdet_extrafields`
--

CREATE TABLE `llx_contratdet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_contratdet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_contratdet_extrafields`
--


--
-- 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` varchar(255) NOT NULL,
  `command` varchar(255) DEFAULT NULL,
  `classesname` varchar(255) DEFAULT NULL,
  `objectname` varchar(255) DEFAULT NULL,
  `methodename` varchar(255) DEFAULT NULL,
  `params` text DEFAULT 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 DEFAULT NULL,
  `lastoutput` text DEFAULT NULL,
  `unitfrequency` varchar(255) NOT NULL DEFAULT '3600',
  `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 DEFAULT NULL,
  `libname` varchar(255) DEFAULT NULL,
  `entity` int(11) DEFAULT 0,
  `maxrun` int(11) NOT NULL DEFAULT 0,
  `autodelete` int(11) DEFAULT 0,
  `fk_mailing` int(11) DEFAULT NULL,
  `test` varchar(255) DEFAULT '1',
  `processing` int(11) NOT NULL DEFAULT 0,
  `email_alert` varchar(128) DEFAULT NULL,
  `pid` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_cronjob` (`label`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=92 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_cronjob` (`rowid`, `tms`, `datec`, `jobtype`, `label`, `command`, `classesname`, `objectname`, `methodename`, `params`, `md5params`, `module_name`, `priority`, `datelastrun`, `datenextrun`, `datestart`, `dateend`, `datelastresult`, `lastresult`, `lastoutput`, `unitfrequency`, `frequency`, `nbrun`, `status`, `fk_user_author`, `fk_user_mod`, `note`, `libname`, `entity`, `maxrun`, `autodelete`, `fk_mailing`, `test`, `processing`, `email_alert`, `pid`) VALUES (1,'2015-03-23 18:18:39','2015-03-23 19:18:39','command','aaa','aaaa','','','','','','',0,NULL,NULL,'2015-03-23 19:18:00',NULL,NULL,NULL,NULL,'3600',3600,0,0,1,1,'',NULL,0,0,0,NULL,'1',0,NULL,NULL),(40,'2026-05-27 20:46:30','2018-11-23 12:58:15','method','SendEmailsReminders',NULL,'comm/action/class/actioncomm.class.php','ActionComm','sendEmailsReminder',NULL,NULL,'agenda',10,NULL,NULL,'2018-11-23 12:58:15',NULL,NULL,NULL,NULL,'60',10,NULL,1,NULL,NULL,'SendEMailsReminder',NULL,1,0,0,NULL,'isModEnabled(\"agenda\")',0,NULL,NULL),(41,'2018-11-23 11:58:16','2018-11-23 12:58:16','method','PurgeDeleteTemporaryFilesShort',NULL,'core/class/utils.class.php','Utils','purgeFiles',NULL,NULL,'cron',50,NULL,NULL,'2018-11-23 12:58:16',NULL,NULL,NULL,NULL,'604800',2,NULL,1,NULL,NULL,'PurgeDeleteTemporaryFiles',NULL,0,0,0,NULL,'1',0,NULL,NULL),(42,'2026-01-11 17:46:26','2018-11-23 12:58:16','method','MakeLocalDatabaseDumpShort',NULL,'core/class/utils.class.php','Utils','dumpDatabase','none,auto,1,auto,10',NULL,'cron',90,'2020-01-15 19:43:12','2020-01-17 12:58:16','2018-11-23 12:58:16',NULL,'2020-01-15 19:43:12','-1','Failed to run external command. Check it is available and runnable by your PHP server. If PHP <b>Safe Mode</b> is enabled, check that command is inside a directory defined by parameter <b>safe_mode_exec_dir</b>.\nFailed to run external command. Check it is available and runnable by your PHP server. If PHP <b>Safe Mode</b> is enabled, check that command is inside a directory defined by parameter <b>safe_mode_exec_dir</b>.','604800',1,2,1,NULL,12,'MakeLocalDatabaseDump',NULL,0,0,0,NULL,'getDolDBType() == \'mysqli\'',0,NULL,NULL),(43,'2026-05-27 20:46:30','2018-11-23 12:58:17','method','RecurringInvoicesJob',NULL,'compta/facture/class/facture-rec.class.php','FactureRec','createRecurringInvoices',NULL,NULL,'facture',50,NULL,NULL,'2018-11-23 23:00:00',NULL,NULL,NULL,NULL,'86400',1,NULL,1,NULL,NULL,'Generate recurring invoices',NULL,1,0,0,NULL,'isModEnabled(\"invoice\")',0,NULL,NULL),(45,'2020-01-01 12:00:34','2020-01-01 16:00:34','method','MyJob label',NULL,'/captureserver/class/myobject.class.php','MyObject','doScheduledJob',NULL,NULL,'captureserver',0,NULL,NULL,'2020-01-01 16:00:34',NULL,NULL,NULL,NULL,'3600',2,NULL,0,NULL,NULL,'Comment',NULL,1,0,0,NULL,'$conf->captureserver->enabled',0,NULL,NULL),(46,'2026-05-27 20:46:30','2020-01-13 00:13:55','method','Email collector',NULL,'/emailcollector/class/emailcollector.class.php','EmailCollector','doCollect',NULL,NULL,'emailcollector',50,NULL,NULL,'2020-01-13 00:13:55',NULL,NULL,NULL,NULL,'60',5,NULL,1,NULL,NULL,'Comment',NULL,1,0,0,NULL,'isModEnabled(\"emailcollector\")',0,NULL,NULL),(48,'2026-05-27 20:46:30','2021-07-11 19:49:46','method','SendEmailsRemindersOnInvoiceDueDate',NULL,'compta/facture/class/facture.class.php','Facture','sendEmailsRemindersOnInvoiceDueDate','10,all,EmailTemplateCode',NULL,'facture',50,NULL,NULL,'2021-07-11 23:00:00',NULL,NULL,NULL,NULL,'86400',1,NULL,0,NULL,NULL,'Send an emails when the unpaid invoices reach a due date + n days = today. First param is the offset n of days, second parameter is \"all\" or a payment mode code, last paramater is the code of email template to use (an email template with EmailTemplateCode must exists. the version in the language of the thirdparty will be used in priority).',NULL,1,0,0,NULL,'isModEnabled(\"invoice\")',0,NULL,NULL),(49,'2026-05-27 20:46:30','2022-02-07 13:38:17','method','HolidayBalanceMonthlyUpdate',NULL,'holiday/class/holiday.class.php','Holiday','updateBalance',NULL,NULL,'holiday',50,NULL,NULL,'2022-02-07 04:00:00',NULL,NULL,NULL,NULL,'86400',1,NULL,1,NULL,NULL,'Update holiday balance every month',NULL,1,0,0,NULL,'isModEnabled(\"holiday\")',0,NULL,NULL),(50,'2026-01-11 17:46:26','2022-07-04 01:12:18','method','MakeSendLocalDatabaseDumpShort',NULL,'core/class/utils.class.php','Utils','sendDumpDatabase',',,,,,sql',NULL,'cron',91,NULL,NULL,'2022-07-04 01:12:18',NULL,NULL,NULL,NULL,'604800',1,NULL,0,NULL,NULL,'MakeSendLocalDatabaseDump',NULL,0,0,0,NULL,'getDolGlobalString(\'MAIN_ALLOW_BACKUP_BY_EMAIL\') && getDolDBType() == \'mysqli\'',0,NULL,NULL),(51,'2022-07-04 01:12:18','2022-07-04 01:12:18','method','RecurringSupplierInvoicesJob',NULL,'fourn/class/fournisseur.facture-rec.class.php','FactureFournisseurRec','createRecurringInvoices',NULL,NULL,'fournisseur',51,NULL,NULL,'2022-07-04 23:00:00',NULL,NULL,NULL,NULL,'86400',1,NULL,1,NULL,NULL,'Generate recurring supplier invoices',NULL,1,0,0,NULL,'',0,NULL,NULL),(52,'2022-12-11 21:23:42','2022-12-11 21:23:42','method','CleanUnfinishedCronjobShort',NULL,'core/class/utils.class.php','Utils','cleanUnfinishedCronjob',NULL,NULL,'cron',10,NULL,NULL,'2022-12-11 21:23:42',NULL,NULL,NULL,NULL,'60',5,NULL,0,NULL,NULL,'CleanUnfinishedCronjob',NULL,0,0,0,NULL,'getDolGlobalInt(\"MAIN_FEATURES_LEVEL\") >= 2',0,NULL,NULL),(53,'2026-05-27 20:46:30','2022-12-11 21:23:43','method','HolidayBalanceMonthlyUpdate:holiday',NULL,'holiday/class/holiday.class.php','Holiday','updateBalance',NULL,NULL,'holiday',50,NULL,NULL,'2022-12-11 04:00:00',NULL,NULL,NULL,NULL,'86400',1,NULL,1,NULL,NULL,'Update holiday balance every month',NULL,1,0,0,NULL,'isModEnabled(\"holiday\")',0,NULL,NULL),(54,'2026-05-27 20:46:30','2023-01-19 09:20:14','method','SellYourSaasValidateDraftInvoices',NULL,'/sellyoursaas/class/sellyoursaasutils.class.php','SellYourSaasUtils','doValidateDraftInvoices',NULL,NULL,'sellyoursaas',61,NULL,NULL,'2023-01-19 21:15:00',NULL,NULL,NULL,NULL,'86400',1,NULL,1,NULL,NULL,'Search draft invoices on sellyoursaas customers and check they are linked to a not closed contract. Validate it if not and if there is not another validated invoice, do nothing if closed. You can set the id of a thirdparty as parameter to restrict the batch to a given thirdparty.',NULL,1,0,0,NULL,'isModEnabled(\"sellyoursaas\")',0,NULL,NULL),(55,'2026-05-27 20:46:30','2023-01-19 09:20:14','method','SellYourSaasAlertSoftEndTrial',NULL,'/sellyoursaas/class/sellyoursaasutils.class.php','SellYourSaasUtils','doAlertSoftEndTrial',NULL,NULL,'sellyoursaas',62,NULL,NULL,'2023-01-19 21:15:00',NULL,NULL,NULL,NULL,'60',30,NULL,1,NULL,NULL,'Search contracts of sellyoursaas customers that are deployed + with open lines + about to expired (= date between (end date - SELLYOURSAAS_NBDAYS_BEFORE_TRIAL_END_FOR_SOFT_ALERT) and (end date - SELLYOURSAAS_NBDAYS_BEFORE_TRIAL_END_FOR_SOFT_ALERT + 7)) + not yet already warned (date_softalert_endfreeperiod is null), then send email remind',NULL,1,0,0,NULL,'isModEnabled(\"sellyoursaas\")',0,NULL,NULL),(56,'2026-05-27 20:46:30','2023-01-19 09:20:14','method','SellYourSaasAlertCreditCardExpiration',NULL,'/sellyoursaas/class/sellyoursaasutils.class.php','SellYourSaasUtils','doAlertCreditCardExpiration','1, 20',NULL,'sellyoursaas',65,NULL,NULL,'2023-01-19 21:15:00',NULL,NULL,NULL,NULL,'86400',1,NULL,1,NULL,NULL,'Send warning to sellyoursaas customers with an active recurring invoice when default payment mode is credit card and it will expire at end of month',NULL,1,0,0,NULL,'isModEnabled(\"sellyoursaas\")',0,NULL,NULL),(57,'2026-05-27 20:46:30','2023-01-19 09:20:14','method','SellYourSaasTakePaymentStripe',NULL,'/sellyoursaas/class/sellyoursaasutils.class.php','SellYourSaasUtils','doTakePaymentStripe','0, 0',NULL,'sellyoursaas',75,NULL,NULL,'2023-01-19 21:15:00',NULL,NULL,NULL,NULL,'86400',1,NULL,1,NULL,NULL,'Loop on invoice for customer with default payment mode Stripe and take payment/send email. Unsuspend if it was suspended and all payments are now ok (done by trigger BILL_CANCEL or BILL_PAYED). First parameter is the maximum number of payments processed in one run. Second parameter is 1 to disable email to customer if payment fails.',NULL,1,0,0,NULL,'isModEnabled(\"sellyoursaas\")',0,NULL,NULL),(58,'2026-05-27 20:46:30','2023-01-19 09:20:14','method','SellYourSaasRefreshContracts',NULL,'/sellyoursaas/class/sellyoursaasutils.class.php','SellYourSaasUtils','doRefreshContracts',NULL,NULL,'sellyoursaas',77,NULL,NULL,'2023-01-19 21:15:00',NULL,NULL,NULL,NULL,'86400',1,NULL,1,NULL,NULL,'Loop on each contract. If it is a paid contract, and there is no unpaid invoice for contract, and line not suspended and end date <= today + 2 days (so expired or soon expired, we must be sure to make refresh before new generation of invoice), we update qty on contract + qty on linked template invoice',NULL,1,0,0,NULL,'isModEnabled(\"sellyoursaas\")',0,NULL,NULL),(59,'2026-05-27 20:46:30','2023-01-19 09:20:14','method','SellYourSaasRenewalContracts',NULL,'/sellyoursaas/class/sellyoursaasutils.class.php','SellYourSaasUtils','doRenewalContracts',NULL,NULL,'sellyoursaas',78,NULL,NULL,'2023-01-19 21:15:00',NULL,NULL,NULL,NULL,'86400',1,NULL,1,NULL,NULL,'Loop on each contract. If it is a paid contract, and there is no unpaid invoice for contract, and line not suspended and end date <= today - 1 day (so expired, we must be sure to make renewal after generation of invoice with 2 chances of invoice generation to not make renewal if payment error), we update qty on contract + qty on linked template invoice + the running contract service end date to end at next period',NULL,1,0,0,NULL,'isModEnabled(\"sellyoursaas\")',0,NULL,NULL),(60,'2026-05-27 20:46:30','2023-01-19 09:20:14','method','SellYourSaasSuspendExpiredTestInstances',NULL,'/sellyoursaas/class/sellyoursaasutils.class.php','SellYourSaasUtils','doSuspendExpiredTestInstances','0, 25',NULL,'sellyoursaas',81,NULL,NULL,'2023-01-19 21:15:00',NULL,NULL,NULL,NULL,'3600',4,NULL,1,NULL,NULL,'Suspend expired services of test instances (a test instance = instance without template neither standard invoice) if it is not a redirect instance and if we are after the planned end date (+ grace offset in SELLYOURSAAS_NBDAYS_AFTER_EXPIRATION_BEFORE_TRIAL_SUSPEND). Note that if a payment mode exists for customer, we do NOT suspend instance but create a template invoice instead. 1st parameter can be set to 1 to disable apache reload. 2nd parameter is maximum number of instance to suspend.',NULL,1,0,0,NULL,'isModEnabled(\"sellyoursaas\")',0,NULL,NULL),(61,'2026-05-27 20:46:30','2023-01-19 09:20:14','method','SellYourSaasUndeployOldSuspendedTestInstances',NULL,'/sellyoursaas/class/sellyoursaasutils.class.php','SellYourSaasUtils','doUndeployOldSuspendedTestInstances',NULL,NULL,'sellyoursaas',82,NULL,NULL,'2023-01-19 21:15:00',NULL,NULL,NULL,NULL,'3600',2,NULL,1,NULL,NULL,'Undeployed test instances if we are after planned end date (+ grace offset in SELLYOURSAAS_NBDAYS_AFTER_EXPIRATION_BEFORE_TRIAL_UNDEPLOYMENT)',NULL,1,0,0,NULL,'isModEnabled(\"sellyoursaas\")',0,NULL,NULL),(62,'2026-05-27 20:46:30','2023-01-19 09:20:14','method','SellYourSaasSuspendExpiredRealInstances',NULL,'/sellyoursaas/class/sellyoursaasutils.class.php','SellYourSaasUtils','doSuspendExpiredRealInstances',NULL,NULL,'sellyoursaas',85,NULL,NULL,'2023-01-19 21:15:00',NULL,NULL,NULL,NULL,'86400',1,NULL,1,NULL,NULL,'Suspend expired services of paid instances if we are after planned end date (+ grace offset in SELLYOURSAAS_NBDAYS_AFTER_EXPIRATION_BEFORE_PAID_SUSPEND)',NULL,1,0,0,NULL,'isModEnabled(\"sellyoursaas\")',0,NULL,NULL),(63,'2026-05-27 20:46:30','2023-01-19 09:20:14','method','SellYourSaasUndeployOldSuspendedRealInstances',NULL,'/sellyoursaas/class/sellyoursaasutils.class.php','SellYourSaasUtils','doUndeployOldSuspendedRealInstances',NULL,NULL,'sellyoursaas',86,NULL,NULL,'2023-01-19 21:15:00',NULL,NULL,NULL,NULL,'86400',1,NULL,1,NULL,NULL,'Undeployed paid instances if we are after planned end date (+ grace offset in SELLYOURSAAS_NBDAYS_AFTER_EXPIRATION_BEFORE_PAID_UNDEPLOYMENT)',NULL,1,0,0,NULL,'isModEnabled(\"sellyoursaas\")',0,NULL,NULL),(64,'2026-05-27 20:46:30','2023-02-15 08:19:34','method','CancelPartnershipForExpiredMembers',NULL,'/partnership/class/partnershiputils.class.php','PartnershipUtils','doCancelStatusOfMemberPartnership',NULL,NULL,'partnership',60,NULL,NULL,'2023-02-15 21:15:00',NULL,NULL,NULL,NULL,'86400',1,NULL,1,NULL,NULL,'Cancel status of partnership when subscription is expired + x days.',NULL,1,0,0,NULL,'isModEnabled(\"partnership\")',0,NULL,NULL),(65,'2026-05-27 20:46:30','2023-02-15 08:19:34','method','PartnershipCheckBacklink',NULL,'/partnership/class/partnershiputils.class.php','PartnershipUtils','doWarningOfPartnershipIfDolibarrBacklinkNotfound',NULL,NULL,'partnership',61,NULL,NULL,'2023-02-15 21:15:00',NULL,NULL,NULL,NULL,'86400',1,NULL,0,NULL,NULL,'Warning of partnership if Dolibarr backlink not found on partner website.',NULL,1,0,0,NULL,'isModEnabled(\"partnership\")',0,NULL,NULL),(66,'2026-05-27 20:46:30','2023-02-27 13:28:21','method','ScanInvoices_background_import_service',NULL,'/scaninvoices/class/filestoimport.class.php','Filestoimport','doScheduledJob',NULL,NULL,'scaninvoices',50,NULL,NULL,'2023-02-27 13:28:21',NULL,NULL,NULL,NULL,'3600',3,NULL,1,NULL,NULL,'SCANINVOICES_BACKGROUND_SERVER_DETAILS',NULL,1,0,0,NULL,'isModEnabled(\"scaninvoices\")',0,NULL,NULL),(67,'2026-05-27 20:46:30','2023-02-27 13:28:21','method','ScanInvoices auto pay supplier invoices (CB/LCR/PREV)',NULL,'/scaninvoices/class/supplierautopayinvoices.class.php','Supplierautopayinvoices','doScheduledJob',NULL,NULL,'scaninvoices',50,NULL,NULL,'2023-02-27 13:28:21',NULL,NULL,NULL,NULL,'3600',24,NULL,0,NULL,NULL,'Comment',NULL,1,0,0,NULL,'isModEnabled(\"scaninvoices\")',0,NULL,NULL),(68,'2026-05-27 20:46:30','2023-08-15 10:38:17','method','SendReminderForExpiredSubscriptionTitle',NULL,'adherents/class/adherent.class.php','Adherent','sendReminderForExpiredSubscription','10;0',NULL,'adherent',50,NULL,NULL,'2023-08-15 22:00:00',NULL,NULL,NULL,NULL,'86400',1,NULL,1,NULL,NULL,'SendReminderForExpiredSubscription',NULL,1,0,0,NULL,'isModEnabled(\"member\")',0,NULL,NULL),(69,'2024-06-20 09:34:55','2024-06-20 09:34:55','method','SendEmailsRemindersOnSupplierInvoiceDueDate',NULL,'fourn/class/fournisseur.facture.class.php','FactureFournisseur','sendEmailsRemindersOnSupplierInvoiceDueDate','10,all,EmailTemplateCode,duedate',NULL,'fournisseur',50,NULL,NULL,'2024-06-20 23:00:00',NULL,NULL,NULL,NULL,'86400',1,NULL,0,NULL,NULL,'Send an email when we reach the supplier invoice due date (or supplier invoice date) - n days. First param is n, the number of days before due date (or supplier invoice date) to send the remind (or after if value is negative), second parameter is \"all\" or a payment mode code, third parameter is the code of the email template to use (an email template with the EmailTemplateCode must exists. The version of the email template in the language of the thirdparty will be used in priority. Language of the thirdparty will be also used to update the PDF of the sent supplier invoice). The fourth parameter is the string \"duedate\" (default) or \"invoicedate\" to define which date of the supplier invoice to use.',NULL,1,0,0,NULL,'isModEnabled(\"supplier_invoice\")',0,NULL,NULL),(70,'2024-12-01 12:39:26','2024-12-01 13:39:26','method','SellYourSaasAlertHardEndTrial','','/sellyoursaas/class/sellyoursaasutils.class.php','SellYourSaasUtils','doAlertHardEndTrial','','','sellyoursaas',64,NULL,'2024-12-01 13:39:26','2024-12-01 21:15:00',NULL,NULL,NULL,NULL,'60',30,0,1,12,12,'Search contracts of sellyoursaas customers that are deployed + with open lines + about to expired (= date between (end date - SELLYOURSAAS_NBDAYS_BEFORE_TRIAL_END_FOR_HARD_ALERT) and (end date - SELLYOURSAAS_NBDAYS_BEFORE_TRIAL_END_FOR_HARD_ALERT + 7)) + not yet already warned (date_hardalert_endfreeperiod is null), then send email remind','',1,0,0,NULL,'isModEnabled(\"sellyoursaas\")',0,NULL,NULL),(71,'2024-12-01 12:39:26','2024-12-01 13:39:26','method','SellYourSaasTakePaymentStripeSepa','','/sellyoursaas/class/sellyoursaasutils.class.php','SellYourSaasUtils','doTakePaymentStripeSEPA','0, 0','','sellyoursaas',76,NULL,'2024-12-01 13:39:26','2024-12-01 21:15:00',NULL,NULL,NULL,NULL,'86400',1,0,1,12,12,'Loop on invoice for customer with default payment mode Stripe and sepa payment method and take payment. First parameter is the maximum number of payments processed in one run. Second parameter is 1 to disable email to customer if payment fails.','',1,0,0,NULL,'isModEnabled(\"sellyoursaas\")',0,NULL,NULL),(73,'2024-12-30 03:21:51','2024-12-30 04:11:52','method','DATAPOLICYJob','','datapolicy/class/datapolicycron.class.php','DataPolicyCron','cleanDataForDataPolicy','','','datapolicy',50,NULL,'2024-12-30 04:11:00',NULL,NULL,NULL,'',NULL,'86400',1,NULL,1,12,12,'Clean data','',1,0,0,NULL,'isModEnabled(\"datapolicy\")',0,'',NULL),(76,'2026-05-27 20:46:30','2025-03-25 19:50:18','method','WeeklyWorkingHoursReport','','projet/class/project.class.php','Project','createWeeklyReport','','','projet',50,NULL,'2025-03-25 19:50:18',NULL,NULL,NULL,NULL,NULL,'604800',1,0,0,1,1,'Generates and sends a weekly report on time worked','',1,0,0,NULL,'isModEnabled(\"project\")',0,NULL,NULL),(88,'2025-06-19 13:49:41','2025-06-19 13:49:41','method','Mettre &agrave; jour tous les taux de change','','multicurrency/class/multicurrency.class.php','MultiCurrency','syncRates','0,0,cron','','multicurrency',61,NULL,'2025-06-19 13:49:41','2025-06-19 21:15:00',NULL,NULL,NULL,NULL,'2678400',1,0,1,12,12,'Update all the currencies using the currencylayer API. An API key needs to be given in the multi-currency module config page to have this job working.<br>First param is not used, Second parameter is 0 to update only already existing currency defined into the Multicurrency module or 1 to add any currency. Third parameter must be \"cron\".','',1,0,0,NULL,'isModEnabled(\"cron\")',0,NULL,NULL),(89,'2026-02-15 18:45:09','2026-02-15 19:45:09','method','SendSmsReminders','','comm/action/class/actioncomm.class.php','ActionComm','sendSmsReminder','','','agenda',10,NULL,'2026-02-15 19:45:09','2026-02-15 19:45:09',NULL,NULL,NULL,NULL,'60',5,0,1,NULL,NULL,'SendSmsReminder','',1,0,0,NULL,'isModEnabled(\"agenda\")',0,NULL,NULL),(90,'2026-05-27 20:46:32','2026-05-27 22:46:32','method','SendPreviousMonthHRInformations:holiday','','holiday/class/holiday.class.php','Holiday','sendPreviousMonthHRInformations','emailaddress, HolidayHrInformationsPreviousMonth','','holiday',50,NULL,'2026-05-27 22:46:32','2026-05-27 04:00:00',NULL,NULL,NULL,NULL,'2678400',1,0,0,NULL,NULL,'Send HR information to the defined email address in first parameter. Second parameter must be the email template code (can be id or label of emailtemplate to send)','',1,0,0,NULL,'isModEnabled(\"holiday\")',0,NULL,NULL),(91,'2026-06-02 15:59:52','2026-06-02 15:59:52','method','CompressSyslogs','','core/class/utils.class.php','Utils','compressSyslogs','','','syslog',50,NULL,'2026-06-02 15:59:52',NULL,NULL,NULL,NULL,NULL,'86400',1,0,0,12,12,'Compress and archive log files. The number of versions to keep is defined into the setup of module. Warning: Main application cron script must be run with same account than your web server to avoid to get log files with different owner than required by web server. Another solution is to set web server Operating System group as the group of directory documents and set GROUP permission \"rws\" on this directory so log files will always have the group and permissions of the web server Operating System group.','',1,0,0,NULL,'1',0,NULL,NULL);

--
-- Table structure for table `llx_default_values`
--

CREATE TABLE `llx_default_values` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `type` varchar(10) DEFAULT NULL,
  `user_id` int(11) NOT NULL DEFAULT 0,
  `page` varchar(255) DEFAULT NULL,
  `param` varchar(255) DEFAULT NULL,
  `value` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_default_values` (`type`,`entity`,`user_id`,`page`,`param`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_default_values`
--

INSERT INTO `llx_default_values` (`rowid`, `entity`, `type`, `user_id`, `page`, `param`, `value`) VALUES (1,1,'createform',0,'compta/facture/card.php?action=create&type=2','reday','__DAY__'),(2,1,'createform',0,'compta/facture/card.php?action=create&type=2','remonth','__MONTH__'),(3,1,'createform',0,'compta/facture/card.php?action=create&type=2','reyear','__YEAR__'),(4,1,'createform',0,'compta/facture/card.php?action=create','fk_account','3'),(6,1,'createform',0,'aaa/aao_card.php?action=create','label','3'),(7,1,'createform',0,'fourn/facture/card.php?action=create','mode_reglement_id','4');

--
-- Table structure for table `llx_delivery`
--

CREATE TABLE `llx_delivery` (
  `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,
  `ref_customer` varchar(30) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` 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` datetime DEFAULT NULL,
  `fk_address` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT 0,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_delivery_uk_ref` (`ref`,`entity`),
  KEY `idx_delivery_fk_soc` (`fk_soc`),
  KEY `idx_delivery_fk_user_author` (`fk_user_author`),
  KEY `idx_delivery_fk_user_valid` (`fk_user_valid`),
  CONSTRAINT `fk_delivery_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_delivery_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_delivery_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_delivery`
--


--
-- Table structure for table `llx_delivery_extrafields`
--

CREATE TABLE `llx_delivery_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_delivery_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_delivery_extrafields`
--


--
-- Table structure for table `llx_deliverydet`
--

CREATE TABLE `llx_deliverydet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_delivery` int(11) DEFAULT NULL,
  `fk_origin_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `subprice` double(24,8) DEFAULT 0.00000000,
  `subprice_ttc` double(24,8) DEFAULT 0.00000000,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `rang` int(11) DEFAULT 0,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_deliverydet_fk_expedition` (`fk_delivery`),
  KEY `idx_deliverydet_fk_delivery` (`fk_delivery`),
  CONSTRAINT `fk_deliverydet_fk_delivery` FOREIGN KEY (`fk_delivery`) REFERENCES `llx_delivery` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_deliverydet`
--


--
-- Table structure for table `llx_deliverydet_extrafields`
--

CREATE TABLE `llx_deliverydet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_deliverydet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_deliverydet_extrafields`
--


--
-- 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(64) DEFAULT NULL,
  `libelle` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `tms` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_document_model` (`nom`,`type`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=1026 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_document_model` (`rowid`, `nom`, `entity`, `type`, `libelle`, `description`, `tms`) VALUES (9,'merou',1,'shipping',NULL,NULL,'2026-01-11 17:46:25'),(181,'generic_invoice_odt',1,'invoice','ODT templates','FACTURE_ADDON_PDF_ODT_PATH','2026-01-11 17:46:25'),(198,'azur',2,'propal',NULL,NULL,'2026-01-11 17:46:25'),(199,'html_cerfafr',2,'donation',NULL,NULL,'2026-01-11 17:46:25'),(201,'generic_odt',1,'company','ODT templates','COMPANY_ADDON_PDF_ODT_PATH','2026-01-11 17:46:25'),(256,'azur',1,'propal',NULL,NULL,'2026-01-11 17:46:25'),(319,'generic_bom_odt',1,'bom','ODT templates','BOM_ADDON_PDF_ODT_PATH','2026-01-11 17:46:25'),(320,'generic_mo_odt',1,'mrp','ODT templates','MRP_MO_ADDON_PDF_ODT_PATH','2026-01-11 17:46:25'),(366,'generic_user_odt',1,'user',NULL,NULL,'2026-01-11 17:46:25'),(367,'generic_usergroup_odt',1,'group',NULL,NULL,'2026-01-11 17:46:25'),(371,'rouget',1,'shipping',NULL,NULL,'2026-01-11 17:46:25'),(372,'typhon',1,'delivery',NULL,NULL,'2026-01-11 17:46:25'),(459,'einstein',1,'order',NULL,NULL,'2026-01-11 17:46:25'),(463,'muscadet',1,'order_supplier',NULL,NULL,'2026-01-11 17:46:25'),(467,'fiche_equipement',1,'gestionparc',NULL,NULL,'2026-01-11 17:46:25'),(479,'standard_member',1,'member',NULL,NULL,'2026-01-11 17:46:25'),(515,'generic_ticket_odt',1,'ticket','ODT templates','TICKET_ADDON_PDF_ODT_PATH','2026-01-11 17:46:25'),(518,'stdmovement',1,'mouvement',NULL,NULL,'2026-01-11 17:46:25'),(542,'canelle',1,'invoice_supplier','canelle',NULL,'2026-01-11 17:46:25'),(543,'generic_supplier_invoice_odt',1,'invoice_supplier','ODT templates','SUPPLIER_INVOICE_ADDON_PDF_ODT_PATH','2026-01-11 17:46:25'),(874,'strato',1,'contract',NULL,NULL,'2026-01-11 17:46:25'),(875,'espadon',1,'shipping',NULL,NULL,'2026-01-11 17:46:25'),(876,'storm',1,'delivery',NULL,NULL,'2026-01-11 17:46:25'),(883,'standard',1,'member',NULL,NULL,'2026-01-11 17:46:25'),(886,'sepamandate',1,'bankaccount',NULL,NULL,'2026-01-11 17:46:25'),(887,'',1,'task',NULL,NULL,'2026-01-11 17:46:25'),(888,'beluga',1,'project',NULL,NULL,'2026-01-11 17:46:25'),(889,'baleine',1,'project',NULL,NULL,'2026-01-11 17:46:25'),(890,'cyan',1,'propal',NULL,NULL,'2026-01-11 17:46:25'),(891,'squille',1,'reception',NULL,NULL,'2026-01-11 17:46:25'),(894,'standard_stock',1,'stock',NULL,NULL,'2026-01-11 17:46:25'),(895,'standard_movement_stock',1,'mouvement',NULL,NULL,'2026-01-11 17:46:25'),(896,'aurore',1,'supplier_proposal',NULL,NULL,'2026-01-11 17:46:25'),(925,'standard_evaluation',1,'evaluation',NULL,NULL,'2026-01-11 17:46:25'),(1015,'eratosthene',1,'order',NULL,NULL,'2026-06-02 16:28:37'),(1016,'html_cerfafr',1,'donation',NULL,NULL,'2026-06-02 16:28:37'),(1017,'standard_expensereport',1,'expensereport',NULL,NULL,'2026-06-02 16:28:37'),(1018,'sponge',1,'invoice',NULL,NULL,'2026-06-02 16:28:37'),(1019,'cornas',1,'order_supplier',NULL,NULL,'2026-06-02 16:28:37'),(1020,'soleil',1,'ficheinter',NULL,NULL,'2026-06-02 16:28:37'),(1021,'vinci',1,'mrp',NULL,NULL,'2026-06-02 16:28:38'),(1022,'standard_recruitmentjobposition',1,'recruitmentjobposition',NULL,NULL,'2026-06-02 16:28:38'),(1023,'generic_recruitmentjobposition_odt',1,'recruitmentjobposition',NULL,NULL,'2026-06-02 16:28:38'),(1024,'standard_salary',1,'salary',NULL,NULL,'2026-06-02 16:28:38');

--
-- Table structure for table `llx_dolibase_logs`
--

CREATE TABLE `llx_dolibase_logs` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `module_id` int(11) NOT NULL,
  `module_name` varchar(255) NOT NULL,
  `object_id` int(11) NOT NULL,
  `object_element` varchar(100) DEFAULT NULL,
  `action` varchar(255) NOT NULL,
  `datec` datetime NOT NULL,
  `fk_user` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  KEY `fk_dolibase_logs_user` (`fk_user`),
  CONSTRAINT `fk_dolibase_logs_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `llx_dolibase_logs`
--


--
-- 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(24,8) DEFAULT NULL,
  `fk_payment` int(11) DEFAULT NULL,
  `paid` smallint(6) NOT NULL DEFAULT 0,
  `firstname` varchar(50) DEFAULT NULL,
  `lastname` varchar(50) DEFAULT NULL,
  `societe` varchar(50) DEFAULT NULL,
  `address` text DEFAULT NULL,
  `zip` varchar(10) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `country` varchar(50) DEFAULT NULL,
  `fk_country` int(11) NOT NULL,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(24) DEFAULT NULL,
  `phone_mobile` varchar(24) DEFAULT NULL,
  `public` smallint(6) NOT NULL DEFAULT 1,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_user_author` int(11) NOT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `ip` varchar(250) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_don_uk_ref` (`ref`,`entity`),
  KEY `idx_don_fk_soc` (`fk_soc`),
  KEY `idx_don_fk_project` (`fk_projet`),
  KEY `idx_don_fk_user_author` (`fk_user_author`),
  KEY `idx_don_fk_user_valid` (`fk_user_valid`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_don` (`rowid`, `ref`, `entity`, `tms`, `fk_statut`, `datec`, `datedon`, `amount`, `fk_payment`, `paid`, `firstname`, `lastname`, `societe`, `address`, `zip`, `town`, `country`, `fk_country`, `email`, `phone`, `phone_mobile`, `public`, `fk_projet`, `fk_user_author`, `fk_user_valid`, `note_private`, `note_public`, `model_pdf`, `import_key`, `date_valid`, `extraparams`, `fk_soc`, `fk_user_modif`, `ip`) VALUES (1,NULL,1,'2012-07-08 23:57:17',1,'2012-07-09 01:55:33','2012-07-09 12:00:00',10.00000000,1,0,'Donator','','Guest company','','','','France',0,'',NULL,NULL,1,1,1,1,'',NULL,'html_cerfafr',NULL,NULL,NULL,NULL,NULL,NULL),(3,NULL,1,'2017-09-06 16:18:19',2,'2017-09-06 20:05:17','2017-09-06 12:00:00',10.00000000,NULL,0,'','','','','','',NULL,0,'','','',1,NULL,12,12,NULL,NULL,'html_cerfafr',NULL,NULL,NULL,NULL,NULL,NULL),(5,NULL,1,'2025-03-27 10:35:12',0,'2025-03-27 12:00:00','2025-03-27 12:00:00',200.00000000,NULL,0,'','','','','','',NULL,0,'','','',0,NULL,12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(6,NULL,1,'2025-04-25 14:02:49',2,'2025-04-25 12:00:00','2025-04-25 12:00:00',100.00000000,NULL,1,'','','','','','',NULL,0,'','','',0,NULL,12,12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'null');

--
-- Table structure for table `llx_don_extrafields`
--

CREATE TABLE `llx_don_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_don_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_don_extrafields`
--


--
-- 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(750) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `date_c` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_c` int(11) DEFAULT NULL,
  `fk_user_m` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `acl` text DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_ecm_directories` (`label`,`fk_parent`,`entity`),
  KEY `idx_ecm_directories_fk_user_c` (`fk_user_c`),
  KEY `idx_ecm_directories_fk_user_m` (`fk_user_m`),
  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 AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_ecm_directories` (`rowid`, `label`, `entity`, `fk_parent`, `description`, `cachenbofdoc`, `fullpath`, `extraparams`, `date_c`, `tms`, `fk_user_c`, `fk_user_m`, `note_private`, `note_public`, `acl`) VALUES (8,'Administrative documents',1,0,'Directory to store administrative contacts',1,NULL,NULL,'2018-07-30 16:54:41','2022-12-13 16:20:21',12,NULL,NULL,NULL,NULL),(9,'Images',1,0,'',42,NULL,NULL,'2018-07-30 16:55:33','2025-02-13 10:51:18',12,NULL,NULL,NULL,NULL),(10,'toto',1,9,'',0,NULL,NULL,'2025-02-13 11:51:39','2025-02-13 10:51:50',12,NULL,NULL,NULL,NULL);

--
-- Table structure for table `llx_ecm_directories_extrafields`
--

CREATE TABLE `llx_ecm_directories_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) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_ecm_directories_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_ecm_directories_extrafields`
--


--
-- Table structure for table `llx_ecm_files_extrafields`
--

CREATE TABLE `llx_ecm_files_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) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_ecm_files_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_ecm_files_extrafields`
--


--
-- Table structure for table `llx_ecotaxdeee`
--

CREATE TABLE `llx_ecotaxdeee` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(16) DEFAULT NULL,
  `amount` decimal(10,2) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `date_modification` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `llx_ecotaxdeee`
--


--
-- Table structure for table `llx_element_categorie`
--

CREATE TABLE `llx_element_categorie` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_categorie` int(11) NOT NULL,
  `fk_element` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_element_categorie_idx` (`fk_element`,`fk_categorie`),
  KEY `fk_element_categorie_fk_categorie` (`fk_categorie`),
  KEY `idx_element_categorie_fk_categorie` (`fk_categorie`),
  CONSTRAINT `fk_element_categorie_fk_categorie` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_element_categorie`
--


--
-- 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,
  `mandatory_signature` tinyint(4) DEFAULT 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=78 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_element_contact` (`rowid`, `datecreate`, `statut`, `element_id`, `mandatory_signature`, `fk_c_type_contact`, `fk_socpeople`) VALUES (1,'2012-07-09 00:49:43',4,1,NULL,160,1),(2,'2012-07-09 00:49:56',4,2,NULL,160,1),(3,'2012-07-09 00:50:19',4,3,NULL,160,1),(4,'2012-07-09 00:50:42',4,4,NULL,160,1),(5,'2012-07-09 01:52:36',4,1,NULL,120,1),(6,'2012-07-09 01:53:25',4,1,NULL,10,2),(7,'2012-07-09 01:53:25',4,1,NULL,11,2),(8,'2012-07-10 18:13:37',4,2,NULL,10,2),(9,'2012-07-10 18:13:37',4,2,NULL,11,2),(11,'2012-07-11 16:22:36',4,5,NULL,160,1),(12,'2012-07-11 16:23:53',4,2,NULL,180,1),(13,'2015-01-23 15:04:27',4,19,NULL,200,5),(14,'2015-01-23 16:06:37',4,19,NULL,210,2),(15,'2015-01-23 16:12:43',4,19,NULL,220,2),(16,'2015-03-06 10:04:57',4,3,NULL,10,1),(17,'2015-03-06 10:04:57',4,3,NULL,11,1),(18,'2016-12-21 13:52:41',4,3,NULL,180,1),(19,'2016-12-21 13:55:39',4,4,NULL,180,1),(20,'2016-12-21 14:16:58',4,5,NULL,180,1),(21,'2018-07-30 15:29:07',4,6,NULL,160,12),(22,'2018-07-30 15:29:48',4,7,NULL,160,12),(23,'2018-07-30 15:30:25',4,8,NULL,160,12),(24,'2018-07-30 15:33:27',4,6,NULL,180,12),(25,'2018-07-30 15:33:39',4,7,NULL,180,12),(26,'2018-07-30 15:33:54',4,8,NULL,180,12),(27,'2018-07-30 15:34:09',4,9,NULL,180,12),(28,'2018-07-31 18:27:20',4,9,NULL,160,12),(29,'2019-09-26 14:09:02',4,2,NULL,155,12),(30,'2019-09-26 14:10:31',4,3,NULL,157,1),(31,'2019-09-26 14:10:57',4,3,NULL,155,14),(33,'2019-11-29 12:52:53',4,7,NULL,155,16),(34,'2019-12-21 19:46:33',4,10,NULL,160,12),(35,'2019-12-21 19:49:28',4,11,NULL,160,12),(36,'2019-12-21 19:52:12',4,12,NULL,160,12),(37,'2019-12-21 19:53:21',4,13,NULL,160,12),(38,'2020-06-12 19:13:21',4,4,NULL,180,12),(39,'2020-06-12 19:13:21',4,1,NULL,161,12),(40,'2023-01-04 13:58:48',4,6,NULL,156,4),(42,'2023-01-04 13:58:57',4,6,NULL,155,3),(43,'2023-01-04 14:00:23',4,6,NULL,156,12),(45,'2023-01-17 08:16:16',4,6,NULL,161,1),(46,'2023-01-17 08:16:16',4,6,NULL,181,1),(47,'2023-01-17 08:16:16',4,7,NULL,181,1),(48,'2023-01-17 08:16:16',4,8,NULL,181,1),(49,'2023-01-17 08:16:16',4,9,NULL,181,1),(50,'2023-01-17 08:16:16',4,7,NULL,161,1),(51,'2025-01-03 14:59:56',4,5,NULL,10,29),(52,'2025-01-03 14:59:56',4,5,NULL,11,29),(53,'2025-01-03 15:05:10',4,6,NULL,10,29),(54,'2025-01-03 15:05:10',4,6,NULL,11,29),(55,'2025-01-03 15:08:56',4,7,NULL,10,29),(56,'2025-01-03 15:08:56',4,7,NULL,11,29),(57,'2025-01-03 15:13:54',4,8,NULL,10,29),(58,'2025-01-03 15:13:54',4,8,NULL,11,29),(59,'2025-01-03 15:17:40',4,9,NULL,10,29),(60,'2025-01-03 15:17:40',4,9,NULL,11,29),(61,'2025-01-20 12:13:25',4,14,NULL,160,12),(62,'2025-01-28 17:39:40',4,10,NULL,10,29),(63,'2025-01-28 17:39:40',4,10,NULL,11,29),(71,'2025-03-25 19:03:51',4,14,NULL,171,16),(72,'2025-03-25 19:03:57',4,14,NULL,171,17),(73,'2025-03-25 19:08:02',4,14,NULL,161,39),(74,'2025-05-27 11:09:44',4,9,NULL,155,12),(75,'2025-06-25 10:12:55',4,15,NULL,160,12),(76,'2025-06-26 17:54:04',4,14,NULL,10,12),(77,'2025-06-26 17:54:04',4,14,NULL,11,12);

--
-- 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(64) NOT NULL,
  `fk_target` int(11) NOT NULL,
  `targettype` varchar(64) NOT NULL,
  `relationtype` varchar(64) DEFAULT 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=44 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_element_element` (`rowid`, `fk_source`, `sourcetype`, `fk_target`, `targettype`, `relationtype`) VALUES (1,2,'contrat',2,'facture',NULL),(2,2,'propal',1,'commande',NULL),(3,5,'commande',1,'shipping',NULL),(4,1,'order_supplier',20,'invoice_supplier',NULL),(5,2,'cabinetmed_cabinetmedcons',216,'facture',NULL),(6,75,'commande',2,'shipping',NULL),(9,28,'propal',90,'commande',NULL),(10,29,'propal',91,'commande',NULL),(11,25,'propal',92,'commande',NULL),(12,1,'shipping',217,'facture',NULL),(13,5,'commande',217,'facture',NULL),(14,29,'propal',94,'commande',NULL),(15,29,'propal',95,'commande',NULL),(18,34,'propal',96,'commande',NULL),(19,34,'propal',97,'commande',NULL),(20,62,'commande',220,'facture',NULL),(21,62,'commande',221,'facture',NULL),(22,62,'commande',222,'facture',NULL),(23,62,'commande',223,'facture',NULL),(24,62,'commande',224,'facture',NULL),(25,62,'commande',225,'facture',NULL),(26,36,'propal',98,'commande',NULL),(27,36,'propal',227,'facture',NULL),(28,36,'propal',99,'commande',NULL),(29,36,'propal',228,'facture',NULL),(30,4,'subscription',229,'facture',NULL),(31,5,'subscription',230,'facture',NULL),(32,6,'subscription',231,'facture',NULL),(33,2,'order_supplier',1,'reception',NULL),(34,237,'facture',238,'facture',NULL),(35,2,'contrat',239,'facture',NULL),(36,88,'commande',242,'facture',NULL),(37,84,'commande',248,'facture',NULL),(38,84,'commande',249,'facture',NULL),(39,84,'commande',250,'facture',NULL),(41,85,'commande',447,'facture',NULL),(42,78,'commande',4,'shipping',NULL),(43,11,'subscription',459,'facture',NULL);

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

CREATE TABLE `llx_element_resources` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `element_id` int(11) DEFAULT NULL,
  `element_type` varchar(64) DEFAULT NULL,
  `resource_id` int(11) DEFAULT NULL,
  `resource_type` varchar(64) DEFAULT NULL,
  `busy` int(11) DEFAULT NULL,
  `mandatory` int(11) DEFAULT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `duree` double DEFAULT NULL,
  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 AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_element_resources` (`rowid`, `element_id`, `element_type`, `resource_id`, `resource_type`, `busy`, `mandatory`, `fk_user_create`, `tms`, `duree`) VALUES (1,604,'action',4,'dolresource',1,0,NULL,'2020-06-12 17:28:39',NULL),(2,1621,'action',1,'dolresource',1,1,NULL,'2025-04-11 21:23:21',NULL),(3,1621,'action',2,'dolresource',1,1,NULL,'2025-04-22 17:21:31',NULL);

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

CREATE TABLE `llx_element_tag` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_categorie` int(11) NOT NULL,
  `fk_element` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_element_tag_uk` (`fk_categorie`,`fk_element`),
  CONSTRAINT `fk_element_tag_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


--
-- Table structure for table `llx_element_time`
--

CREATE TABLE `llx_element_time` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_element` int(11) NOT NULL,
  `elementtype` varchar(32) NOT NULL DEFAULT 'task',
  `element_date` date DEFAULT NULL,
  `element_datehour` datetime DEFAULT NULL,
  `element_date_withhour` int(11) DEFAULT NULL,
  `element_duration` double DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `thm` double(24,8) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `invoice_line_id` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `intervention_id` int(11) DEFAULT NULL,
  `intervention_line_id` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `ref_ext` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_element_time_task` (`fk_element`),
  KEY `idx_element_time_date` (`element_date`),
  KEY `idx_element_time_datehour` (`element_datehour`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_element_time`
--

INSERT INTO `llx_element_time` (`rowid`, `fk_element`, `elementtype`, `element_date`, `element_datehour`, `element_date_withhour`, `element_duration`, `fk_user`, `thm`, `note`, `invoice_id`, `invoice_line_id`, `import_key`, `datec`, `tms`, `intervention_id`, `intervention_line_id`, `fk_product`, `ref_ext`) VALUES (2,4,'task','2016-12-21','2016-12-21 12:00:00',0,3600,1,NULL,'',NULL,NULL,NULL,NULL,'2020-12-10 12:24:40',NULL,NULL,NULL,NULL),(3,4,'task','2016-12-18','2016-12-18 12:00:00',0,3600,1,NULL,NULL,NULL,NULL,NULL,NULL,'2020-12-10 12:24:40',NULL,NULL,NULL,NULL),(4,3,'task','2016-12-21','2016-12-21 12:00:00',0,3600,1,NULL,NULL,NULL,NULL,NULL,NULL,'2020-12-10 12:24:40',NULL,NULL,NULL,NULL),(5,3,'task','2016-12-21','2016-12-21 12:00:00',0,1800,1,NULL,NULL,NULL,NULL,NULL,NULL,'2020-12-10 12:24:40',NULL,NULL,NULL,NULL),(6,3,'task','2016-12-21','2016-12-21 12:00:00',0,3600,1,NULL,NULL,NULL,NULL,NULL,NULL,'2020-12-10 12:24:40',NULL,NULL,NULL,NULL),(7,6,'task','2018-07-25','2018-07-25 00:00:00',0,18000,12,NULL,NULL,NULL,NULL,NULL,NULL,'2020-12-10 12:24:40',NULL,NULL,NULL,NULL),(15,7,'task','2017-01-30','2017-01-30 10:00:00',1,660,12,NULL,'',0,0,NULL,NULL,'2020-12-10 12:24:40',NULL,NULL,0,NULL),(16,4,'task','2020-06-13','2020-06-13 00:00:00',0,3600,12,NULL,'',NULL,NULL,NULL,NULL,'2020-06-12 17:13:30',NULL,NULL,NULL,NULL),(18,8,'task','2023-02-23','2023-02-23 12:00:00',0,7200,12,NULL,'',NULL,NULL,NULL,'2023-02-23 18:10:26','2023-02-23 21:10:26',NULL,NULL,0,NULL),(29,6,'task','2023-08-15','2023-08-15 12:00:00',NULL,3720,12,NULL,'',NULL,NULL,NULL,'2023-08-15 11:50:21','2023-08-15 11:50:21',NULL,NULL,NULL,NULL);

--
-- Table structure for table `llx_emailcollector_emailcollectoraction`
--

CREATE TABLE `llx_emailcollector_emailcollectoraction` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_emailcollector` int(11) NOT NULL,
  `type` varchar(128) NOT NULL,
  `actionparam` text DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` int(11) NOT NULL,
  `position` int(11) DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_emailcollector_emailcollectoraction` (`fk_emailcollector`,`type`),
  KEY `idx_emailcollector_fk_emailcollector` (`fk_emailcollector`),
  CONSTRAINT `fk_emailcollectoraction_fk_emailcollector` FOREIGN KEY (`fk_emailcollector`) REFERENCES `llx_emailcollector_emailcollector` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_emailcollector_emailcollectoraction`
--

INSERT INTO `llx_emailcollector_emailcollectoraction` (`rowid`, `fk_emailcollector`, `type`, `actionparam`, `date_creation`, `tms`, `fk_user_creat`, `fk_user_modif`, `import_key`, `status`, `position`) VALUES (18,3,'ticket',NULL,'2020-01-13 00:13:55','2020-01-12 20:13:55',12,NULL,NULL,1,0),(19,4,'recordevent',NULL,'2020-01-13 00:13:55','2020-01-12 20:13:55',12,NULL,NULL,1,0),(20,5,'project','tmp_from=EXTRACT:HEADER:^From:(.*);socid=SETIFEMPTY:1;usage_opportunity=SET:1;description=EXTRACT:BODY:(.*);title=SET:Lead or message from __tmp_from__ received by email','2020-01-13 00:13:55','2020-01-13 10:57:14',12,NULL,NULL,1,2),(21,5,'loadthirdparty',NULL,'2020-01-13 14:57:08','2020-01-13 10:57:14',12,NULL,NULL,1,1),(22,11,'recordevent',NULL,'2025-03-25 19:50:17','2025-03-25 19:50:17',1,NULL,NULL,1,0),(23,12,'candidature','tmp_from=EXTRACT:HEADER:^From:(.*)(<.*>)?\nfk_recruitmentjobposition=EXTRACT:HEADER:^To:[^\\n]*\\+([^\\n]*)\ndescription=EXTRACT:BODY:(.*)\nlastname=SET:__tmp_from__','2025-03-25 19:50:17','2025-03-25 19:50:17',1,NULL,NULL,1,0);

--
-- Table structure for table `llx_emailcollector_emailcollectorfilter`
--

CREATE TABLE `llx_emailcollector_emailcollectorfilter` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_emailcollector` int(11) NOT NULL,
  `type` varchar(128) NOT NULL,
  `rulevalue` varchar(255) DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_emailcollector_emailcollectorfilter` (`fk_emailcollector`,`type`,`rulevalue`),
  KEY `idx_emailcollector_fk_emailcollector` (`fk_emailcollector`),
  CONSTRAINT `fk_emailcollector_fk_emailcollector` FOREIGN KEY (`fk_emailcollector`) REFERENCES `llx_emailcollector_emailcollector` (`rowid`),
  CONSTRAINT `fk_emailcollectorfilter_fk_emailcollector` FOREIGN KEY (`fk_emailcollector`) REFERENCES `llx_emailcollector_emailcollector` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_emailcollector_emailcollectorfilter`
--

INSERT INTO `llx_emailcollector_emailcollectorfilter` (`rowid`, `fk_emailcollector`, `type`, `rulevalue`, `date_creation`, `tms`, `fk_user_creat`, `fk_user_modif`, `import_key`, `status`) VALUES (21,3,'withouttrackingid',NULL,'2020-01-13 00:13:55','2020-01-12 20:13:55',12,NULL,NULL,1),(22,3,'to','support@example.com','2020-01-13 00:13:55','2020-01-12 20:13:55',12,NULL,NULL,1),(23,4,'withtrackingid',NULL,'2020-01-13 00:13:55','2020-01-12 20:13:55',12,NULL,NULL,1),(24,5,'withouttrackingid',NULL,'2020-01-13 00:13:55','2020-01-12 20:13:55',12,NULL,NULL,1),(25,5,'to','sales@example.com','2020-01-13 00:13:55','2020-01-12 20:13:55',12,NULL,NULL,1),(26,11,'isanswer',NULL,'2025-03-25 19:50:17','2025-03-25 19:50:17',1,NULL,NULL,1),(27,11,'withouttrackingidinmsgid',NULL,'2025-03-25 19:50:17','2025-03-25 19:50:17',1,NULL,NULL,1),(28,12,'isnotanswer',NULL,'2025-03-25 19:50:17','2025-03-25 19:50:17',1,NULL,NULL,1),(29,12,'to','jobs@example.com','2025-03-25 19:50:17','2025-03-25 19:50:17',1,NULL,NULL,1);

--
-- 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(),
  `ref` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_project` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `lieu` varchar(64) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(10) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_departement` int(11) DEFAULT NULL,
  `fk_pays` int(11) DEFAULT 0,
  `statut` tinyint(4) DEFAULT 1,
  `fk_user_author` int(11) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_parent` int(11) DEFAULT 0,
  `fax` varchar(30) DEFAULT NULL,
  `phone` varchar(30) DEFAULT NULL,
  `warehouse_usage` int(11) DEFAULT 1,
  `barcode` varchar(180) DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_entrepot_label` (`ref`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_entrepot` (`rowid`, `datec`, `tms`, `ref`, `entity`, `fk_project`, `description`, `lieu`, `address`, `zip`, `town`, `fk_departement`, `fk_pays`, `statut`, `fk_user_author`, `model_pdf`, `import_key`, `fk_parent`, `fax`, `phone`, `warehouse_usage`, `barcode`, `fk_barcode_type`) VALUES (1,'2012-07-09 00:31:22','2020-06-12 17:18:30','WAREHOUSEHOUSTON',1,NULL,'Warehouse located at Houston','Warehouse houston','','','Houston',NULL,11,1,1,NULL,NULL,NULL,'','',1,NULL,NULL),(2,'2012-07-09 00:41:03','2020-06-12 17:18:33','WAREHOUSEPARIS',1,NULL,'','Warehouse Paris','','75000','Paris',NULL,1,1,1,NULL,NULL,NULL,'','',1,NULL,NULL),(3,'2012-07-11 16:18:59','2020-06-12 17:18:25','Stock personnel Dupont',1,NULL,'Cet entrepôt représente le stock personnel de Alain Dupont','','','','',NULL,2,1,1,NULL,NULL,NULL,'','',1,NULL,NULL),(9,'2017-10-03 11:47:41','2017-10-03 09:47:41','Personal stock Marie Curie',1,NULL,'This warehouse represents personal stock of Marie Curie','','','','',NULL,1,1,1,NULL,NULL,0,NULL,NULL,1,NULL,NULL),(10,'2017-10-05 09:07:52','2018-07-30 13:52:24','Personal stock Alex Theceo',1,NULL,'This warehouse represents personal stock of Alex Theceo','','','','',NULL,3,1,1,NULL,NULL,0,NULL,NULL,1,NULL,NULL),(12,'2017-10-05 21:29:35','2017-10-05 19:29:35','Personal stock Charly Commery',1,NULL,'This warehouse represents personal stock of Charly Commery','','','','',NULL,1,1,11,NULL,NULL,0,NULL,NULL,1,NULL,NULL),(13,'2017-10-05 21:33:33','2018-07-30 13:51:38','Personal stock Sam Scientol',1,NULL,'This warehouse represents personal stock of Sam Scientol','','','7500','Paris',NULL,1,0,11,NULL,NULL,0,NULL,NULL,1,NULL,NULL),(18,'2018-01-22 17:27:02','2020-06-12 17:18:18','Personal stock Laurent Destailleur',1,NULL,'This warehouse represents personal stock of Laurent Destailleur','','','','',NULL,1,1,12,NULL,NULL,NULL,'','',1,NULL,NULL),(19,'2018-07-30 16:50:23','2020-06-12 17:18:12','Personal stock Eldy',1,NULL,'This warehouse represents personal stock of Eldy','','','','',NULL,14,1,12,NULL,NULL,NULL,'','',1,NULL,NULL),(20,'2017-02-02 03:55:45','2020-06-12 17:18:55','Personal stock Alex Boston',1,NULL,'This warehouse represents personal stock of Alex Boston','PSTOCKALEXB','','','',NULL,14,1,12,NULL,NULL,NULL,'','',1,NULL,NULL),(21,'2024-12-12 12:15:58','2024-12-12 12:15:58','Emplacement 1',1,NULL,'','','','','',NULL,117,1,12,NULL,NULL,NULL,'','',1,NULL,NULL);

--
-- Table structure for table `llx_entrepot_extrafields`
--

CREATE TABLE `llx_entrepot_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,
  `aaaa` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_entrepot_extrafields` (`fk_object`),
  KEY `idx_entrepot_extrafields` (`fk_object`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_entrepot_extrafields`
--


--
-- Table structure for table `llx_establishment`
--

CREATE TABLE `llx_establishment` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `name` varchar(50) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_state` int(11) DEFAULT 0,
  `fk_country` int(11) DEFAULT 0,
  `profid1` varchar(20) DEFAULT NULL,
  `profid2` varchar(20) DEFAULT NULL,
  `profid3` varchar(20) DEFAULT NULL,
  `phone` varchar(30) DEFAULT NULL,
  `fk_user_author` int(11) NOT NULL,
  `fk_user_mod` int(11) DEFAULT NULL,
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `status` tinyint(4) DEFAULT 1,
  `ref` varchar(30) NOT NULL,
  `label` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_establishment`
--


--
-- 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=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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


--
-- Table structure for table `llx_eventorganization_conferenceorboothattendee`
--

CREATE TABLE `llx_eventorganization_conferenceorboothattendee` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) NOT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_actioncomm` int(11) DEFAULT NULL,
  `email` varchar(100) DEFAULT NULL,
  `email_company` varchar(128) DEFAULT NULL,
  `date_subscription` datetime DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `status` smallint(6) NOT NULL,
  `fk_project` int(11) NOT NULL,
  `fk_invoice` int(11) DEFAULT NULL,
  `firstname` varchar(100) DEFAULT NULL,
  `lastname` varchar(100) DEFAULT NULL,
  `ip` varchar(250) DEFAULT NULL,
  `fk_replacement` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_eventorganization_confboothattendee` (`ref`),
  UNIQUE KEY `uk_eventorganization_confboothattendee_replacement` (`fk_replacement`),
  UNIQUE KEY `uk_eventorganization_conferenceorboothattendee` (`fk_project`,`email`,`fk_actioncomm`),
  KEY `idx_eventorganization_conferenceorboothattendee_rowid` (`rowid`),
  KEY `idx_eventorganization_conferenceorboothattendee_fk_soc` (`fk_soc`),
  KEY `idx_eventorganization_conferenceorboothattendee_fk_actioncomm` (`fk_actioncomm`),
  KEY `idx_eventorganization_conferenceorboothattendee_email` (`email`),
  KEY `idx_eventorganization_conferenceorboothattendee_status` (`status`),
  KEY `idx_eventorganization_conferenceorboothattendee_ref` (`ref`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_eventorganization_conferenceorboothattendee`
--

INSERT INTO `llx_eventorganization_conferenceorboothattendee` (`rowid`, `ref`, `fk_soc`, `fk_actioncomm`, `email`, `email_company`, `date_subscription`, `amount`, `note_public`, `note_private`, `date_creation`, `tms`, `fk_user_creat`, `fk_user_modif`, `last_main_doc`, `import_key`, `model_pdf`, `status`, `fk_project`, `fk_invoice`, `firstname`, `lastname`, `ip`, `fk_replacement`) VALUES (1,'1',NULL,NULL,'aa@aa.com',NULL,'2025-04-18 14:07:00',NULL,'','','2025-04-18 14:08:09','2025-04-18 12:08:09',12,12,NULL,NULL,NULL,0,14,NULL,'','',NULL,NULL),(2,'2',NULL,NULL,'daviddoe@example.com',NULL,'2025-05-06 11:20:00',NULL,'','','2025-05-06 11:20:33','2025-05-06 09:20:33',12,12,NULL,NULL,NULL,5,14,NULL,'','',NULL,NULL),(3,'3',NULL,NULL,'gdf@gfdg.com',NULL,'2025-05-06 11:21:00',NULL,'','','2025-05-06 11:22:03','2025-05-06 09:22:03',12,12,NULL,NULL,NULL,1,14,NULL,'','',NULL,NULL);

--
-- Table structure for table `llx_eventorganization_conferenceorboothattendee_extrafields`
--

CREATE TABLE `llx_eventorganization_conferenceorboothattendee_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_conferenceorboothattendee_fk_object` (`fk_object`),
  KEY `idx_conferenceorboothattendee_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_eventorganization_conferenceorboothattendee_extrafields`
--


--
-- 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,
  `ref_customer` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` 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,
  `height_unit` int(11) 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 DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `billed` smallint(6) DEFAULT 0,
  `signed_status` smallint(6) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `online_sign_ip` varchar(48) DEFAULT NULL,
  `online_sign_name` varchar(64) 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 AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_expedition` (`rowid`, `tms`, `ref`, `entity`, `ref_customer`, `fk_soc`, `fk_projet`, `ref_ext`, `ref_int`, `date_creation`, `fk_user_author`, `date_valid`, `fk_user_valid`, `date_expedition`, `date_delivery`, `fk_address`, `fk_shipping_method`, `tracking_number`, `fk_statut`, `height`, `height_unit`, `width`, `size_units`, `size`, `weight_units`, `weight`, `note_private`, `note_public`, `model_pdf`, `fk_incoterms`, `location_incoterms`, `import_key`, `extraparams`, `billed`, `signed_status`, `fk_user_modif`, `last_main_doc`, `online_sign_ip`, `online_sign_name`) VALUES (1,'2018-01-22 17:33:03','SH1302-0001',1,NULL,1,NULL,NULL,NULL,'2013-08-08 03:05:34',1,'2015-02-17 18:22:51',1,NULL,'2013-08-09 00:00:00',NULL,NULL,'',1,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL,'merou',NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),(2,'2025-04-05 13:26:37','SH1702-0002',1,NULL,4,NULL,NULL,NULL,'2017-02-16 03:11:35',12,'2025-04-05 15:26:37',12,NULL,NULL,NULL,1,'',1,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL,'merou',0,'',NULL,NULL,0,NULL,NULL,'expedition/sending/SH1702-0002/SH1702-0002.pdf',NULL,NULL),(4,'2025-05-04 22:16:30','(PROV4)',1,NULL,12,NULL,NULL,NULL,'2025-05-05 00:16:30',12,NULL,NULL,NULL,NULL,NULL,2,'',0,NULL,NULL,NULL,-3,NULL,-6,NULL,NULL,NULL,'merou',0,'',NULL,NULL,0,0,NULL,NULL,NULL,NULL);

--
-- Table structure for table `llx_expedition_extrafields`
--

CREATE TABLE `llx_expedition_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_expedition_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_expedition_extrafields`
--


--
-- Table structure for table `llx_expedition_package`
--

CREATE TABLE `llx_expedition_package` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_expedition` int(11) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `value` double(24,8) DEFAULT 0.00000000,
  `fk_package_type` int(11) DEFAULT NULL,
  `height` float DEFAULT NULL,
  `width` float DEFAULT NULL,
  `size` float DEFAULT NULL,
  `size_units` int(11) DEFAULT NULL,
  `weight` float DEFAULT NULL,
  `weight_units` int(11) DEFAULT NULL,
  `dangerous_goods` varchar(60) DEFAULT '0',
  `tail_lift` smallint(6) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_expedition_package`
--


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

CREATE TABLE `llx_expeditiondet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_expedition` int(11) NOT NULL,
  `fk_elementdet` int(11) DEFAULT NULL,
  `fk_entrepot` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `rang` int(11) DEFAULT 0,
  `fk_product` int(11) DEFAULT NULL,
  `fk_parent` int(11) DEFAULT NULL,
  `fk_element` int(11) DEFAULT NULL,
  `element_type` varchar(50) NOT NULL DEFAULT 'commande',
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_expeditiondet_fk_expedition` (`fk_expedition`),
  KEY `idx_expeditiondet_fk_elementdet` (`fk_elementdet`),
  KEY `idx_expeditiondet_fk_parent` (`fk_parent`),
  CONSTRAINT `fk_expeditiondet_fk_expedition` FOREIGN KEY (`fk_expedition`) REFERENCES `llx_expedition` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_expeditiondet` (`rowid`, `fk_expedition`, `fk_elementdet`, `fk_entrepot`, `description`, `qty`, `fk_unit`, `rang`, `fk_product`, `fk_parent`, `fk_element`, `element_type`, `extraparams`) VALUES (1,1,10,3,NULL,1,NULL,0,NULL,NULL,NULL,'commande',NULL),(2,2,226,19,NULL,2,NULL,0,NULL,NULL,NULL,'commande',NULL),(3,2,227,1,NULL,1,NULL,0,NULL,NULL,NULL,'order',NULL),(4,4,235,1,NULL,4,NULL,1,10,NULL,NULL,'commande',NULL),(5,4,238,1,NULL,5,NULL,4,10,NULL,NULL,'commande',NULL);

--
-- 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(128) DEFAULT NULL,
  `qty` double NOT NULL DEFAULT 0,
  `fk_origin_stock` int(11) NOT NULL,
  `fk_warehouse` int(11) DEFAULT 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 AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_expeditiondet_batch` (`rowid`, `fk_expeditiondet`, `eatby`, `sellby`, `batch`, `qty`, `fk_origin_stock`, `fk_warehouse`) VALUES (1,3,NULL,NULL,'5599887766452',1,0,1),(2,4,NULL,NULL,'5599887766452',4,3,1),(3,5,NULL,NULL,'5599887766452',5,3,1);

--
-- Table structure for table `llx_expeditiondet_extrafields`
--

CREATE TABLE `llx_expeditiondet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_expeditiondet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_expeditiondet_extrafields`
--


--
-- Table structure for table `llx_expensereport`
--

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

--
-- Dumping data for table `llx_expensereport`
--

INSERT INTO `llx_expensereport` (`rowid`, `ref`, `entity`, `ref_number_int`, `ref_ext`, `total_ht`, `total_tva`, `localtax1`, `localtax2`, `total_ttc`, `date_debut`, `date_fin`, `date_create`, `date_valid`, `date_approve`, `date_refuse`, `date_cancel`, `tms`, `fk_user_author`, `fk_user_modif`, `fk_user_valid`, `fk_user_validator`, `fk_user_approve`, `fk_user_refuse`, `fk_user_cancel`, `fk_statut`, `fk_c_paiement`, `paid`, `note_public`, `note_private`, `detail_refuse`, `detail_cancel`, `integration_compta`, `fk_bank_account`, `model_pdf`, `last_main_doc`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_tx`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `import_key`, `extraparams`, `fk_user_creat`) VALUES (1,'ADMIN-ER00002-150101',1,2,NULL,8.33000000,1.67000000,0.00000000,0.00000000,10.00000000,'2024-01-01','2024-01-03','2023-01-22 19:03:37','2023-01-22 19:06:50','2023-02-16 02:12:40',NULL,NULL,'2026-02-15 18:44:54',12,NULL,12,12,12,NULL,NULL,5,NULL,0,'Holidays',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL),(2,'ER1912-0001',1,NULL,NULL,141.67000000,28.33000000,0.00000000,0.00000000,170.00000000,'2024-02-01','2023-02-28','2024-01-22 19:04:44','2023-12-20 20:34:13','2023-12-20 20:34:19',NULL,'2023-12-21 00:34:26','2026-02-15 18:44:54',12,12,12,12,12,NULL,12,4,NULL,0,'Work on projet X','','','aaaa',NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL),(3,'(PROV3)',1,NULL,NULL,40.00000000,0.00000000,0.00000000,0.00000000,40.00000000,'2024-02-02','2024-02-02','2024-02-02 03:57:03','2024-02-02 00:00:00',NULL,NULL,NULL,'2026-02-15 18:44:54',19,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'expensereport/(PROV3)/(PROV3).pdf',NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL);

--
-- Table structure for table `llx_expensereport_det`
--

CREATE TABLE `llx_expensereport_det` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_expensereport` int(11) NOT NULL,
  `docnumber` varchar(128) DEFAULT NULL,
  `fk_c_type_fees` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `comments` text NOT NULL,
  `product_type` int(11) DEFAULT -1,
  `qty` double NOT NULL,
  `subprice` double(24,8) NOT NULL DEFAULT 0.00000000,
  `subprice_ttc` double(24,8) DEFAULT 0.00000000,
  `value_unit` double(24,8) NOT NULL,
  `remise_percent` double DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) DEFAULT NULL,
  `total_ht` double(24,8) NOT NULL DEFAULT 0.00000000,
  `total_tva` double(24,8) NOT NULL DEFAULT 0.00000000,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) NOT NULL DEFAULT 0.00000000,
  `date` date NOT NULL,
  `info_bits` int(11) DEFAULT 0,
  `special_code` int(11) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT 0.00000000,
  `multicurrency_subprice_ttc` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_facture` int(11) DEFAULT 0,
  `fk_code_ventilation` int(11) DEFAULT 0,
  `vat_src_code` varchar(10) DEFAULT '',
  `rule_warning_message` text DEFAULT NULL,
  `fk_c_exp_tax_cat` int(11) DEFAULT NULL,
  `fk_ecm_files` int(11) DEFAULT NULL,
  `tcheck_file` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_expensereport_det`
--

INSERT INTO `llx_expensereport_det` (`rowid`, `fk_expensereport`, `docnumber`, `fk_c_type_fees`, `fk_projet`, `comments`, `product_type`, `qty`, `subprice`, `subprice_ttc`, `value_unit`, `remise_percent`, `tva_tx`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `date`, `info_bits`, `special_code`, `rang`, `import_key`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_subprice`, `multicurrency_subprice_ttc`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `fk_facture`, `fk_code_ventilation`, `vat_src_code`, `rule_warning_message`, `fk_c_exp_tax_cat`, `fk_ecm_files`, `tcheck_file`) VALUES (1,1,NULL,3,1,'',-1,1,0.00000000,0.00000000,10.00000000,NULL,20.000,0.000,NULL,0.000,NULL,8.33000000,1.67000000,0.00000000,0.00000000,10.00000000,'2017-01-01',0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,0,'',NULL,NULL,NULL,NULL),(2,2,NULL,3,4,'',-1,1,0.00000000,0.00000000,20.00000000,NULL,20.000,0.000,NULL,0.000,NULL,16.67000000,3.33000000,0.00000000,0.00000000,20.00000000,'2017-01-07',0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,0,'',NULL,NULL,NULL,NULL),(3,2,NULL,2,5,'Train',-1,1,0.00000000,0.00000000,150.00000000,NULL,20.000,0.000,NULL,0.000,NULL,125.00000000,25.00000000,0.00000000,0.00000000,150.00000000,'2017-02-05',0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,0,'','',0,73,NULL),(4,3,NULL,1,NULL,'',-1,1,0.00000000,0.00000000,10.00000000,NULL,0.000,0.000,'0',0.000,'0',10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,'2022-12-19',0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,0,'',NULL,0,163,NULL),(5,3,NULL,1,NULL,'',-1,1,0.00000000,0.00000000,10.00000000,NULL,0.000,0.000,'0',0.000,'0',10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,'2022-12-19',0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,0,'',NULL,0,163,NULL),(6,3,NULL,1,NULL,'',-1,1,0.00000000,0.00000000,10.00000000,NULL,0.000,0.000,'0',0.000,'0',10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,'2022-12-19',0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,0,'',NULL,0,163,NULL),(7,3,NULL,1,NULL,'',-1,1,0.00000000,0.00000000,10.00000000,NULL,0.000,0.000,'0',0.000,'0',10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,'2022-12-19',0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,0,'',NULL,0,163,NULL);

--
-- Table structure for table `llx_expensereport_det_extrafields`
--

CREATE TABLE `llx_expensereport_det_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_expensereport_det_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_expensereport_det_extrafields`
--


--
-- Table structure for table `llx_expensereport_extrafields`
--

CREATE TABLE `llx_expensereport_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_expensereport_extrafields` (`fk_object`),
  KEY `idx_expensereport_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_expensereport_extrafields`
--


--
-- Table structure for table `llx_expensereport_ik`
--

CREATE TABLE `llx_expensereport_ik` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_c_exp_tax_cat` int(11) NOT NULL DEFAULT 0,
  `fk_range` int(11) NOT NULL DEFAULT 0,
  `coef` double NOT NULL DEFAULT 0,
  `ikoffset` double NOT NULL DEFAULT 0,
  `active` int(11) DEFAULT 1,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_expensereport_ik`
--

INSERT INTO `llx_expensereport_ik` (`rowid`, `datec`, `tms`, `fk_c_exp_tax_cat`, `fk_range`, `coef`, `ikoffset`, `active`) VALUES (1,NULL,'2018-01-19 11:09:35',4,1,0.41,0,1),(2,NULL,'2018-01-19 11:09:35',4,2,0.244,824,1),(3,NULL,'2018-01-19 11:09:35',4,3,0.286,0,1),(4,NULL,'2018-01-19 11:09:35',5,4,0.493,0,1),(5,NULL,'2018-01-19 11:09:35',5,5,0.277,1082,1),(6,NULL,'2018-01-19 11:09:35',5,6,0.332,0,1),(7,NULL,'2018-01-19 11:09:35',6,7,0.543,0,1),(8,NULL,'2018-01-19 11:09:35',6,8,0.305,1180,1),(9,NULL,'2018-01-19 11:09:35',6,9,0.364,0,1),(10,NULL,'2018-01-19 11:09:35',7,10,0.568,0,1),(11,NULL,'2018-01-19 11:09:35',7,11,0.32,1244,1),(12,NULL,'2018-01-19 11:09:35',7,12,0.382,0,1),(13,NULL,'2018-01-19 11:09:35',8,13,0.595,0,1),(14,NULL,'2018-01-19 11:09:35',8,14,0.337,1288,1),(15,NULL,'2018-01-19 11:09:35',8,15,0.401,0,1);

--
-- Table structure for table `llx_expensereport_rules`
--

CREATE TABLE `llx_expensereport_rules` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `dates` datetime NOT NULL,
  `datee` datetime NOT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `restrictive` tinyint(4) NOT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_usergroup` int(11) DEFAULT NULL,
  `fk_c_type_fees` int(11) NOT NULL,
  `code_expense_rules_type` varchar(50) NOT NULL,
  `is_for_all` tinyint(4) DEFAULT 0,
  `entity` int(11) DEFAULT 1,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_expensereport_rules`
--


--
-- 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` mediumtext DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

--
-- 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(64) DEFAULT NULL,
  `field` text NOT NULL,
  `filter` text DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_export_model` (`label`,`type`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_export_model` (`rowid`, `fk_user`, `label`, `type`, `field`, `filter`, `entity`) VALUES (1,0,'MyExport','facture_2','s.rowid,s.nom,s.code_client,s.address,s.zip,s.town,c.code,cd.nom,s.phone,s.siren,s.siret,s.ape,s.idprof4,s.code_compta,s.code_compta_fournisseur,s.tva_intra,f.rowid,f.ref,f.ref_client,f.type,f.datec,f.datef,f.date_lim_reglement,f.total_ht,f.total_ttc,f.total_tva,f.localtax1,f.localtax2,none.rest,f.paye,f.fk_statut,f.note_private,f.note_public,f.fk_user_author,uc.login,f.fk_user_valid,uv.login,pj.ref,pj.title,p.rowid,p.ref,p.amount,pf.amount,p.datep,p.num_paiement,pt.code,pt.libelle,p.note,p.fk_bank,ba.ref,f.multicurrency_code,f.multicurrency_tx,f.multicurrency_total_ht,f.multicurrency_total_tva,f.multicurrency_total_ttc,f.module_source,f.pos_source','',0),(2,11,'Export by joe','facture_2','s.rowid,s.nom,s.code_client,s.address,s.zip,s.town,c.code,cd.nom,s.phone,s.siren,s.siret,s.ape,s.idprof4,s.code_compta,s.code_compta_fournisseur,s.tva_intra,f.rowid,f.ref,f.ref_client,f.type,f.datec,f.datef,f.date_lim_reglement,f.total_ht,f.total_ttc,f.total_tva,f.localtax1,f.localtax2,none.rest,f.paye,f.fk_statut,f.note_private,f.note_public,f.fk_user_author,uc.login,f.fk_user_valid,uv.login,pj.ref,pj.title,p.rowid,p.ref,p.amount,pf.amount,p.datep,p.num_paiement,pt.code,pt.libelle,p.note,p.fk_bank,ba.ref,f.multicurrency_code,f.multicurrency_tx,f.multicurrency_total_ht,f.multicurrency_total_tva,f.multicurrency_total_ttc,f.module_source,f.pos_source','',0),(3,12,'test','societe_1','s.rowid,s.nom,s.name_alias,s.status,s.client,s.fournisseur,s.datec,s.tms,s.code_client,s.code_fournisseur,s.code_compta,s.code_compta_fournisseur,s.address,s.zip,s.town,d.nom,c.label,c.code,s.phone,s.fax,s.url,s.email,s.default_lang,s.siren,s.siret,s.ape,s.idprof4,s.idprof5,s.idprof6,s.tva_intra,s.capital,s.note_private,s.note_public,t.libelle,ce.code,cfj.libelle,s.fk_prospectlevel,st.code,payterm.libelle,paymode.libelle,s.price_level,extra.height,extra.weight,extra.prof,extra.birthdate,u.login,u.firstname,u.lastname','s.nom=%a%',0);

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

CREATE TABLE `llx_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `elementtype` varchar(64) NOT NULL DEFAULT 'member',
  `name` varchar(64) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `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,
  `pos` int(11) DEFAULT 0,
  `alwayseditable` int(11) DEFAULT 0,
  `emptyonclone` int(11) DEFAULT 0,
  `param` text DEFAULT NULL,
  `fieldunique` int(11) DEFAULT 0,
  `fieldrequired` int(11) DEFAULT 0,
  `perms` varchar(255) DEFAULT NULL,
  `list` varchar(128) DEFAULT NULL,
  `totalizable` tinyint(1) DEFAULT 0,
  `ishidden` int(11) DEFAULT 0,
  `fieldcomputed` text DEFAULT NULL,
  `fielddefault` text DEFAULT NULL,
  `langs` varchar(64) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `enabled` varchar(255) DEFAULT '1',
  `help` text DEFAULT NULL,
  `printable` int(11) DEFAULT 0,
  `css` varchar(128) DEFAULT NULL,
  `cssview` varchar(128) DEFAULT NULL,
  `csslist` varchar(128) DEFAULT NULL,
  `personal_data` tinyint(4) DEFAULT 0,
  `module` varchar(64) DEFAULT NULL,
  `aiprompt` text DEFAULT NULL,
  `showintooltip` int(11) DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_extrafields_name` (`name`,`entity`,`elementtype`)
) ENGINE=InnoDB AUTO_INCREMENT=2538 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_extrafields` (`rowid`, `elementtype`, `name`, `entity`, `tms`, `label`, `type`, `size`, `pos`, `alwayseditable`, `emptyonclone`, `param`, `fieldunique`, `fieldrequired`, `perms`, `list`, `totalizable`, `ishidden`, `fieldcomputed`, `fielddefault`, `langs`, `fk_user_author`, `fk_user_modif`, `datec`, `enabled`, `help`, `printable`, `css`, `cssview`, `csslist`, `personal_data`, `module`, `aiprompt`, `showintooltip`) VALUES (27,'projet','priority',1,'2018-01-19 11:17:49','Priority','select','',0,1,0,'a:1:{s:7:\"options\";a:5:{i:1;s:1:\"1\";i:2;s:1:\"2\";i:3;s:1:\"3\";i:4;s:1:\"4\";i:5;s:1:\"5\";}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,NULL,NULL,NULL,'1',NULL,0,NULL,NULL,NULL,0,NULL,NULL,0),(33,'adherent','extradatamember',1,'2019-10-08 18:47:11','Extra personalized data','varchar','10',100,1,0,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2019-10-08 20:47:11','1',NULL,0,NULL,NULL,NULL,0,NULL,NULL,0),(34,'adherent_type','extradatamembertype',1,'2019-10-08 18:47:43','Extra personalized data','varchar','32',100,1,0,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2019-10-08 20:47:43','1',NULL,0,NULL,NULL,NULL,0,NULL,NULL,0),(35,'commande','custom1',1,'2019-12-21 13:31:31','Custom field 1','varchar','10',100,1,0,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2019-12-21 17:31:31','1',NULL,0,NULL,NULL,NULL,0,NULL,NULL,0),(45,'commande','aaa',1,'2023-01-12 11:33:26','aaa','varchar','255',100,1,0,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2023-01-12 08:33:26','1',NULL,0,NULL,NULL,NULL,0,NULL,NULL,0),(142,'partnership','a_custom_field',1,'2023-08-15 12:10:00','a_custom_field','varchar','255',100,1,0,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2023-02-21 06:25:48','1',NULL,0,NULL,NULL,NULL,0,NULL,NULL,0),(1407,'alumni_survey','aaa',1,'2024-12-06 12:51:24','aaa','varchar','255',100,1,0,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2024-12-06 13:51:24','1',NULL,1,NULL,NULL,NULL,0,NULL,NULL,0),(2277,'entrepot','aaaa',1,'2025-02-19 13:05:18','aaaa','int','10',100,1,0,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2025-02-19 13:05:18','1',NULL,1,NULL,NULL,NULL,0,NULL,NULL,0),(2310,'socpeople','ccc',1,'2025-03-25 22:36:52','ccc','varchar','255',100,1,0,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2025-03-25 22:36:52','1',NULL,1,NULL,NULL,NULL,0,NULL,NULL,0),(2311,'socpeople','ddd',1,'2025-03-25 22:36:58','ddd','datetime','',100,1,0,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2025-03-25 22:36:58','1',NULL,1,NULL,NULL,NULL,0,NULL,NULL,0),(2312,'user','eee',1,'2025-03-31 10:55:40','eee','stars','5',100,1,0,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2025-03-31 07:55:40','1',NULL,1,NULL,NULL,NULL,0,NULL,NULL,0),(2326,'contrat','aaa',1,'2025-04-01 13:58:15','aaa','varchar','255',1,1,0,'a:1:{s:7:\"options\";a:1:{s:0:\"\";s:7:\"/custom\";}}',0,0,NULL,'1',0,0,'\'/home/jail/home/\'.$object->array_options[\'options_username_os\'].\'/\'.$object->array_options[\'options_database_db\']',NULL,NULL,12,12,'2025-04-01 10:58:15','1',NULL,1,NULL,NULL,NULL,0,NULL,NULL,0),(2327,'societe','sss',1,'2025-04-26 00:54:38','sss','stars','5',100,1,0,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2025-04-26 02:54:38','1',NULL,1,NULL,NULL,NULL,0,NULL,NULL,0),(2536,'product','aaa',1,'2025-06-26 22:01:48','aaa','link','',100,1,0,'a:1:{s:7:\"options\";a:1:{s:61:\"CompanyPaymentMode:societe/class/companypaymentmode.class.php\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2025-06-26 22:01:48','1',NULL,1,NULL,NULL,NULL,0,NULL,'',0),(2537,'adherent','aaa',1,'2025-06-26 22:15:09','aaa','link','',100,1,0,'a:1:{s:7:\"options\";a:1:{s:61:\"CompanyPaymentMode:societe/class/companypaymentmode.class.php\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2025-06-26 22:15:09','1',NULL,1,NULL,NULL,NULL,0,NULL,'',0);

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

CREATE TABLE `llx_facture` (
  `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,
  `type` smallint(6) NOT NULL DEFAULT 0,
  `ref_client` varchar(255) DEFAULT NULL,
  `increment` varchar(10) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `datef` date DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_closing` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `paye` smallint(6) NOT NULL DEFAULT 0,
  `remise_percent` double DEFAULT 0,
  `remise_absolue` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `close_code` varchar(16) DEFAULT NULL,
  `close_missing_amount` double(24,8) DEFAULT NULL,
  `close_note` varchar(128) DEFAULT NULL,
  `total_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_ht` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_closing` 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,
  `payment_reference` varchar(25) DEFAULT NULL,
  `dispute_status` int(11) DEFAULT 0,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `situation_cycle_ref` int(11) DEFAULT NULL,
  `situation_counter` smallint(6) DEFAULT NULL,
  `situation_final` smallint(6) DEFAULT NULL,
  `retained_warranty` double DEFAULT NULL,
  `retained_warranty_date_limit` date DEFAULT NULL,
  `retained_warranty_fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `fk_transport_mode` int(11) DEFAULT NULL,
  `date_pointoftax` date DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_fac_rec_source` int(11) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `fk_input_reason` int(11) DEFAULT NULL,
  `module_source` varchar(32) DEFAULT NULL,
  `pos_source` varchar(32) DEFAULT NULL,
  `prorata_discount` double DEFAULT NULL,
  `subtype` smallint(6) DEFAULT NULL,
  `is_also_delivery_note` tinyint(4) NOT NULL DEFAULT 0,
  `ip` varchar(250) DEFAULT NULL,
  `pos_print_counter` int(11) DEFAULT 0,
  `email_sent_counter` int(11) DEFAULT 0,
  `fk_thirdparty_rib_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_facture_ref` (`ref`,`entity`),
  KEY `idx_facture_fk_soc` (`fk_soc`),
  KEY `idx_facture_fk_user_author` (`fk_user_author`),
  KEY `idx_facture_fk_user_valid` (`fk_user_valid`),
  KEY `idx_facture_fk_facture_source` (`fk_facture_source`),
  KEY `idx_facture_fk_projet` (`fk_projet`),
  KEY `idx_facture_fk_account` (`fk_account`),
  KEY `idx_facture_fk_currency` (`fk_currency`),
  KEY `idx_facture_fk_statut` (`fk_statut`),
  KEY `idx_facture_datef` (`datef`),
  KEY `idx_facture_tms` (`tms`),
  KEY `idx_facture_fk_input_reason` (`fk_input_reason`),
  CONSTRAINT `fk_facture_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_facture_fk_input_reason` FOREIGN KEY (`fk_input_reason`) REFERENCES `llx_c_input_reason` (`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=482 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_facture` (`rowid`, `ref`, `entity`, `ref_ext`, `ref_int`, `type`, `ref_client`, `increment`, `fk_soc`, `datec`, `datef`, `date_valid`, `date_closing`, `tms`, `paye`, `remise_percent`, `remise_absolue`, `remise`, `close_code`, `close_missing_amount`, `close_note`, `total_tva`, `localtax1`, `localtax2`, `revenuestamp`, `total_ht`, `total_ttc`, `fk_statut`, `fk_user_author`, `fk_user_modif`, `fk_user_valid`, `fk_user_closing`, `fk_facture_source`, `fk_projet`, `fk_account`, `fk_currency`, `fk_cond_reglement`, `fk_mode_reglement`, `date_lim_reglement`, `payment_reference`, `dispute_status`, `note_private`, `note_public`, `model_pdf`, `import_key`, `extraparams`, `situation_cycle_ref`, `situation_counter`, `situation_final`, `retained_warranty`, `retained_warranty_date_limit`, `retained_warranty_fk_cond_reglement`, `fk_incoterms`, `location_incoterms`, `fk_transport_mode`, `date_pointoftax`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_tx`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `fk_fac_rec_source`, `last_main_doc`, `fk_input_reason`, `module_source`, `pos_source`, `prorata_discount`, `subtype`, `is_also_delivery_note`, `ip`, `pos_print_counter`, `email_sent_counter`, `fk_thirdparty_rib_id`) VALUES (476,'FA2606-0001',1,NULL,NULL,0,NULL,NULL,59,'2026-06-02 16:21:48','2026-06-02','2026-06-02 16:22:24',NULL,'2026-06-02 16:22:24',0,0,0,0,NULL,NULL,NULL,5.80000000,0.00000000,0.00000000,0.00000000,29.00000000,34.80000000,1,12,NULL,12,NULL,NULL,NULL,3,NULL,0,0,'2026-06-02',NULL,0,NULL,NULL,'sponge',NULL,NULL,NULL,NULL,1,0,'2026-06-02',0,0,'',NULL,NULL,1,'EUR',1.00000000,29.00000000,5.80000000,34.80000000,NULL,'facture/FA2606-0001/FA2606-0001.pdf',NULL,NULL,NULL,NULL,0,0,NULL,0,0,NULL),(477,'TC1-2606-0001',1,NULL,NULL,0,NULL,NULL,7,'2026-06-02 16:24:45','2026-06-02','2026-06-02 16:25:06','2026-06-02 16:25:06','2026-06-02 16:30:19',1,0,0,0,NULL,NULL,NULL,0.50000000,0.00000000,0.00000000,0.00000000,2.50000000,3.00000000,2,12,NULL,12,12,NULL,NULL,NULL,NULL,0,4,'2026-06-02',NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,NULL,0,0,'',NULL,NULL,0,'EUR',1.00000000,2.50000000,0.50000000,3.00000000,NULL,'facture/TC1-2606-0001/TC1-2606-0001.pdf',NULL,'takepos','1',NULL,NULL,0,NULL,2,0,NULL),(478,'TC1-2501-0002',1,NULL,NULL,0,NULL,NULL,7,'2025-01-15 09:30:38','2025-01-15','2025-01-15 09:30:44','2025-01-15 09:30:44','2025-01-15 09:30:56',1,0,0,0,NULL,NULL,NULL,0.25000000,0.00000000,0.00000000,0.00000000,1.25000000,1.50000000,2,12,NULL,12,12,NULL,NULL,NULL,NULL,0,4,'2025-01-15',NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,NULL,0,0,'',NULL,NULL,0,'EUR',1.00000000,1.25000000,0.25000000,1.50000000,NULL,'facture/TC1-2501-0002/TC1-2501-0002.pdf',NULL,'takepos','1',NULL,NULL,0,NULL,1,0,NULL),(479,'TC1-2501-0003',1,NULL,NULL,0,NULL,NULL,7,'2025-01-15 09:32:46','2025-01-15','2025-01-15 09:33:06','2025-01-15 09:33:06','2025-01-15 09:33:06',1,0,0,0,NULL,NULL,NULL,0.62000000,0.00000000,0.00000000,0.00000000,3.08000000,3.70000000,2,12,NULL,12,12,NULL,NULL,NULL,NULL,0,4,'2025-01-15',NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,NULL,0,0,'',NULL,NULL,0,'EUR',1.00000000,3.08000000,0.62000000,3.70000000,NULL,'facture/TC1-2501-0003/TC1-2501-0003.pdf',NULL,'takepos','1',NULL,NULL,0,NULL,0,0,NULL),(480,'TC1-2501-0004',1,NULL,NULL,0,NULL,NULL,7,'2025-01-16 09:30:42','2025-01-16','2025-01-16 09:30:44','2025-01-16 09:30:44','2025-01-16 09:31:07',1,0,0,0,NULL,NULL,NULL,0.62000000,0.00000000,0.00000000,0.00000000,3.08000000,3.70000000,2,12,NULL,12,12,NULL,NULL,NULL,NULL,0,4,'2025-01-16',NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,NULL,0,0,'',NULL,NULL,0,'EUR',1.00000000,3.08000000,0.62000000,3.70000000,NULL,'facture/TC1-2501-0004/TC1-2501-0004.pdf',NULL,'takepos','1',NULL,NULL,0,NULL,1,1,NULL),(481,'TC1-2503-0005',1,NULL,NULL,0,NULL,NULL,7,'2025-03-15 09:30:31','2025-03-15','2025-03-15 09:31:14','2025-03-15 09:31:57','2025-03-15 09:31:57',1,0,0,0,NULL,NULL,NULL,16.67000000,0.00000000,0.00000000,0.00000000,83.33000000,100.00000000,2,12,NULL,12,12,NULL,NULL,NULL,NULL,0,6,'2025-03-15',NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,NULL,0,0,'',NULL,NULL,0,'EUR',1.00000000,83.33000000,16.67000000,100.00000000,NULL,'facture/TC1-2503-0005/TC1-2503-0005.pdf',NULL,'takepos','1',NULL,NULL,0,NULL,0,0,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,
  `commission` int(3) DEFAULT NULL,
  `reseller` int(11) DEFAULT NULL,
  `delayautopayment` date DEFAULT NULL,
  `invoicepaymentdisputed` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_facture_extrafields` (`fk_object`),
  KEY `idx_facture_extrafields` (`fk_object`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_facture_extrafields` (`rowid`, `tms`, `fk_object`, `import_key`, `commission`, `reseller`, `delayautopayment`, `invoicepaymentdisputed`) VALUES (1,'2023-02-15 16:05:13',235,NULL,NULL,NULL,NULL,NULL),(2,'2023-02-15 16:17:22',236,NULL,NULL,NULL,NULL,NULL),(3,'2023-03-02 16:11:22',237,NULL,NULL,NULL,NULL,NULL),(5,'2023-03-02 16:20:59',238,NULL,NULL,NULL,NULL,NULL),(6,'2023-03-15 11:24:26',239,NULL,NULL,NULL,NULL,NULL),(7,'2023-03-15 12:42:22',240,NULL,NULL,NULL,NULL,NULL),(14,'2024-12-09 14:25:13',241,NULL,NULL,NULL,NULL,NULL),(16,'2024-12-12 14:49:53',242,NULL,NULL,NULL,NULL,NULL),(17,'2024-12-18 14:51:53',243,NULL,NULL,NULL,NULL,NULL),(18,'2024-12-18 15:16:33',244,NULL,NULL,NULL,NULL,NULL),(19,'2024-12-18 15:20:24',245,NULL,NULL,NULL,NULL,NULL),(20,'2024-12-18 15:20:57',246,NULL,NULL,NULL,NULL,NULL),(21,'2024-12-30 19:08:06',247,NULL,NULL,NULL,NULL,NULL),(22,'2025-02-19 16:54:56',248,NULL,NULL,NULL,NULL,NULL),(23,'2025-02-19 17:03:34',249,NULL,NULL,NULL,NULL,NULL),(24,'2025-02-19 17:10:20',250,NULL,NULL,NULL,NULL,NULL),(25,'2025-02-21 19:55:41',251,NULL,NULL,NULL,NULL,NULL),(27,'2025-03-19 13:40:57',293,NULL,NULL,NULL,NULL,NULL),(28,'2025-04-09 10:10:08',447,NULL,NULL,NULL,NULL,NULL),(29,'2025-04-25 12:47:20',448,NULL,NULL,NULL,NULL,NULL),(31,'2025-04-25 12:50:12',450,NULL,NULL,NULL,NULL,NULL);

--
-- 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(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(255) DEFAULT NULL,
  `type` smallint(6) NOT NULL DEFAULT 0,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `datef` date DEFAULT NULL,
  `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_missing_amount` double(24,8) DEFAULT NULL,
  `close_note` varchar(128) DEFAULT NULL,
  `vat_reverse_charge` tinyint(4) 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_tva` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_closing` int(11) DEFAULT NULL,
  `fk_facture_source` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_account` int(11) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `date_lim_reglement` date DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `fk_transport_mode` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `date_pointoftax` date DEFAULT NULL,
  `date_valid` date DEFAULT NULL,
  `date_closing` datetime DEFAULT NULL,
  `fk_fac_rec_source` int(11) DEFAULT NULL,
  `revenuestamp` double(24,8) DEFAULT 0.00000000,
  `subtype` smallint(6) DEFAULT NULL,
  `fk_thirdparty_rib_id` int(11) DEFAULT NULL,
  `payment_reference` varchar(25) DEFAULT NULL,
  `dispute_status` int(11) DEFAULT 0,
  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`),
  KEY `idx_facture_fourn_tms` (`tms`),
  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=43 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- 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_missing_amount`, `close_note`, `vat_reverse_charge`, `tva`, `localtax1`, `localtax2`, `total_ht`, `total_tva`, `total_ttc`, `fk_statut`, `fk_user_author`, `fk_user_modif`, `fk_user_valid`, `fk_user_closing`, `fk_facture_source`, `fk_projet`, `fk_account`, `fk_cond_reglement`, `fk_mode_reglement`, `date_lim_reglement`, `note_private`, `note_public`, `model_pdf`, `import_key`, `extraparams`, `fk_incoterms`, `location_incoterms`, `fk_transport_mode`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_tx`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `last_main_doc`, `date_pointoftax`, `date_valid`, `date_closing`, `fk_fac_rec_source`, `revenuestamp`, `subtype`, `fk_thirdparty_rib_id`, `payment_reference`, `dispute_status`) VALUES (16,'SI1601-0001','FR70813',1,NULL,0,1,'2014-12-19 15:24:11','2003-04-11','2017-02-06 04:08:22','OVH FR70813',0,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,0.00000000,0.00000000,829.00000000,162.48000000,991.48000000,1,1,NULL,12,NULL,NULL,NULL,NULL,1,NULL,'2003-04-11','','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL,NULL,0.00000000,NULL,NULL,NULL,0),(17,'SI1601-0002','FR81385',1,NULL,0,1,'2015-02-13 17:19:35','2003-06-04','2019-10-04 08:31:30','OVH FR81385',0,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,NULL,NULL,26.00000000,5.10000000,31.10000000,1,1,NULL,12,NULL,NULL,NULL,NULL,4,NULL,'2003-08-03','','','canelle',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,'2019-10-04',NULL,NULL,0.00000000,NULL,NULL,NULL,0),(18,'SI1601-0003','FR81385',1,NULL,0,2,'2015-02-13 17:20:25','2003-06-04','2017-02-06 04:08:35','OVH FR81385',0,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,0.00000000,0.00000000,26.00000000,5.10000000,31.10000000,0,1,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,'2003-06-04','','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL,NULL,0.00000000,NULL,NULL,NULL,0),(19,'SI1601-0004','FR813852',1,NULL,0,2,'2015-03-16 17:59:02','2015-03-16','2017-02-06 04:08:38','OVH FR81385',0,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,0.00000000,0.00000000,26.00000000,5.10000000,31.10000000,0,1,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL,NULL,0.00000000,NULL,NULL,NULL,0),(20,'SI1702-0001','INV-AE56ER08',1,NULL,0,13,'2017-02-01 19:00:31','2017-02-01','2017-02-01 15:05:28','',0,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,0.00000000,0.00000000,200.00000000,39.20000000,239.20000000,1,12,NULL,12,NULL,NULL,5,NULL,1,0,'2017-02-01','The customer has called us the 24th april. He agree us to not pay the remain of invoice due to default.<br />\r\nLet\'s see with our book keeper, if we must cancel invoice or ask the supplier a credit note...',NULL,'canelle',NULL,NULL,0,'',NULL,0,'EUR',1.00000000,200.00000000,39.20000000,239.20000000,NULL,NULL,NULL,NULL,NULL,0.00000000,NULL,NULL,NULL,0),(21,'SI1911-0005','NL-123',1,NULL,0,10,'2019-11-28 15:54:30','2019-11-28','2019-11-28 11:54:46','',0,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,0.00000000,0.00000000,450.00000000,0.00000000,450.00000000,1,12,NULL,12,NULL,NULL,NULL,NULL,1,NULL,'2019-11-28','','',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,450.00000000,0.00000000,450.00000000,NULL,NULL,'2019-11-28',NULL,NULL,0.00000000,NULL,NULL,NULL,0),(22,'SI2001-0006','INV20200101',1,NULL,0,17,'2020-01-01 17:48:01','2020-01-01','2023-01-10 16:24:45','',0,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,0.00000000,0.00000000,361.00000000,70.93000000,431.93000000,0,12,NULL,12,NULL,NULL,NULL,1,1,2,'2020-01-01','','',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,361.00000000,70.93000000,431.93000000,'fournisseur/facture/2/2/SI2001-0006/SI2001-0006.pdf',NULL,'2022-12-29',NULL,NULL,0.00000000,NULL,NULL,NULL,0),(27,'SA2001-0001','CN01',1,NULL,2,17,'2020-01-01 20:21:51','2020-01-01','2022-02-07 13:38:10','',1,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,0.00000000,0.00000000,-350.00000000,-43.75000000,-393.75000000,2,12,12,12,NULL,22,NULL,NULL,1,NULL,NULL,'','ddd',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,-350.00000000,-43.75000000,-393.75000000,NULL,NULL,'2020-01-01',NULL,NULL,0.00000000,NULL,NULL,NULL,0),(28,'SI2001-0007','INV02',1,NULL,0,17,'2020-01-01 20:22:48','2020-01-01','2020-01-01 18:06:02','',0,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,0.00000000,0.00000000,79.17000000,9.89000000,89.06000000,1,12,NULL,12,NULL,NULL,NULL,NULL,1,NULL,'2020-01-01','','',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,79.17000000,9.89000000,89.06000000,NULL,NULL,'2020-01-01',NULL,NULL,0.00000000,NULL,NULL,NULL,0),(30,'SA2001-0002','555',1,NULL,2,1,'2020-01-01 20:51:32','2020-01-01','2020-01-01 17:15:57','',0,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,0.00000000,0.00000000,-26.00000000,-5.10000000,-31.10000000,1,12,NULL,12,NULL,17,NULL,NULL,1,NULL,NULL,'','',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,'2020-01-01',NULL,NULL,0.00000000,NULL,NULL,NULL,0),(31,'(PROV31)','aaaa',1,'',3,13,'2023-02-11 08:27:18','2023-02-11','2023-02-11 11:27:18','',0,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,'2023-03-13','','',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,0.00000000,0.00000000,0.00000000,'fournisseur/facture/1/3/(PROV31)/(PROV31).pdf',NULL,NULL,NULL,NULL,0.00000000,NULL,NULL,NULL,0),(32,'SI2302-0008','aaaa',1,'',0,17,'2023-02-15 13:18:16','2023-02-15','2023-02-15 16:54:52','',0,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,0.00000000,0.00000000,50.00000000,10.00000000,60.00000000,1,12,NULL,12,NULL,NULL,4,NULL,1,4,'2023-02-15','','',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,50.00000000,10.00000000,60.00000000,'fournisseur/facture/2/3/SI2302-0008/SI2302-0008.pdf',NULL,'2023-02-15',NULL,NULL,0.00000000,NULL,NULL,NULL,0),(34,'(PROV34)','Copy of FR81385',1,'',0,1,'2023-02-21 08:01:43','2023-02-21','2023-02-21 11:01:43','OVH FR81385',0,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,0.00000000,0.00000000,26.00000000,5.10000000,31.10000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,4,NULL,NULL,'','',NULL,NULL,NULL,0,'',NULL,0,'EUR',1.00000000,26.00000000,5.10000000,31.10000000,NULL,NULL,NULL,NULL,NULL,0.00000000,NULL,NULL,NULL,0),(38,'(PROV38)','Copy of FR81385c',1,'',0,1,'2023-02-21 08:10:59','2023-02-21','2025-01-02 19:29:23','OVH FR81385',0,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,0.00000000,0.00000000,993.00000000,279.12000000,1272.12000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,'2023-02-21','','','canelle',NULL,NULL,0,'',NULL,0,'EUR',1.00000000,993.00000000,279.12000000,1272.12000000,'fournisseur/facture/8/3/(PROV38)/(PROV38).pdf',NULL,NULL,NULL,NULL,0.00000000,NULL,NULL,NULL,0),(39,'SI2302-0009','FR81385caaa',1,'',0,1,'2023-02-21 08:14:59','2023-02-21','2024-12-30 15:50:15','OVH FR81385',0,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,0.00000000,0.00000000,26.00000000,5.10000000,31.10000000,1,12,NULL,12,NULL,NULL,NULL,NULL,1,2,'2023-02-21','','',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,26.00000000,5.10000000,31.10000000,'fournisseur/facture/9/3/SI2302-0009/SI2302-0009.pdf',NULL,'2024-12-30',NULL,NULL,0.00000000,0,NULL,NULL,0),(40,'(PROV40)','ffff',1,'',2,1,'2024-12-30 21:04:05','2024-12-30','2024-12-30 20:04:05','',0,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,0.00000000,0.00000000,-31.10000000,0.00000000,-31.10000000,0,12,NULL,NULL,NULL,39,NULL,NULL,NULL,4,NULL,'','',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,-31.10000000,0.00000000,-31.10000000,'fournisseur/facture/0/4/(PROV40)/(PROV40).pdf',NULL,NULL,NULL,NULL,0.00000000,0,NULL,NULL,0),(41,'(PROV41)','ddd',1,'',0,10,'2025-01-02 20:04:18','2025-01-02','2025-03-11 01:53:30','ggg',0,0.00000000,0.00000000,NULL,NULL,NULL,0,0.00000000,0.00000000,0.00000000,10.00000000,0.00000000,10.00000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,4,'2025-01-02','','','canelle',NULL,NULL,0,'',NULL,1,'EUR',1.00000000,10.00000000,0.00000000,10.00000000,'fournisseur/facture/1/4/(PROV41)/(PROV41).pdf',NULL,NULL,NULL,NULL,0.00000000,0,NULL,NULL,0);

--
-- 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_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `ref` varchar(128) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `pu_ht` double(24,8) DEFAULT NULL,
  `pu_ttc` double(24,8) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT 0,
  `fk_remise_except` int(11) DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `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) NOT NULL DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_code_ventilation` int(11) NOT NULL DEFAULT 0,
  `special_code` int(11) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT 0.00000000,
  `multicurrency_subprice_ttc` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_fk_remise_except` (`fk_remise_except`,`fk_facture_fourn`),
  KEY `idx_facture_fourn_det_fk_facture` (`fk_facture_fourn`),
  KEY `fk_facture_fourn_det_fk_unit` (`fk_unit`),
  KEY `idx_facture_fourn_det_fk_code_ventilation` (`fk_code_ventilation`),
  KEY `idx_facture_fourn_det_fk_product` (`fk_product`),
  CONSTRAINT `fk_facture_fourn_det_fk_facture` FOREIGN KEY (`fk_facture_fourn`) REFERENCES `llx_facture_fourn` (`rowid`),
  CONSTRAINT `fk_facture_fourn_det_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=117 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_facture_fourn_det` (`rowid`, `fk_facture_fourn`, `fk_parent_line`, `fk_product`, `ref`, `label`, `description`, `pu_ht`, `pu_ttc`, `qty`, `remise_percent`, `fk_remise_except`, `tva_tx`, `vat_src_code`, `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`, `import_key`, `fk_code_ventilation`, `special_code`, `rang`, `fk_unit`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_subprice`, `multicurrency_subprice_ttc`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `extraparams`) VALUES (44,16,NULL,NULL,NULL,NULL,'<strong>ref :sd.loc.sp.512.6</strong><br>6 mois - Location de SuperPlan avec la connexion 512kbs<br>Du 11/04/2003 &agrave; 11/10/2003',414.00000000,495.14400000,1,0,NULL,19.600,'',0.000,'',0.000,'',414.00000000,81.14000000,0.00000000,0.00000000,495.14000000,0,NULL,NULL,0,NULL,105,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(45,16,NULL,NULL,NULL,NULL,'<strong>ref :sd.loc.sp.512.6</strong><br>6 mois - Location de SuperPlan avec la connexion 512kbs<br>Du 11/10/2003 &agrave; 11/04/2004',414.00000000,495.14400000,1,0,NULL,19.600,'',0.000,'',0.000,'',414.00000000,81.14000000,0.00000000,0.00000000,495.14000000,0,NULL,NULL,0,NULL,104,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(46,16,NULL,NULL,NULL,NULL,'<strong>ref :sd.installation.annuel</strong><br>Frais de mise en service d\'un serveur dédié pour un paiement annuel<br>',1.00000000,1.19600000,1,0,NULL,19.600,'',0.000,'',0.000,'',1.00000000,0.20000000,0.00000000,0.00000000,1.20000000,0,NULL,NULL,0,NULL,105,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(47,17,NULL,NULL,NULL,NULL,'<strong>ref :bk.full250.creation</strong><br>Création du compte backup ftp 250Mo.<br>',1.00000000,1.19600000,1,0,NULL,19.600,'',0.000,'',0.000,'',1.00000000,0.20000000,0.00000000,0.00000000,1.20000000,0,NULL,NULL,0,NULL,106,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(48,17,NULL,NULL,NULL,NULL,'<strong>ref :bk.full250.12</strong><br>Redevance pour un backup de 250Mo sur 12 mois<br>',25.00000000,29.90000000,1,0,NULL,19.600,'',0.000,'',0.000,'',25.00000000,4.90000000,0.00000000,0.00000000,29.90000000,0,NULL,NULL,0,NULL,103,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(49,18,NULL,NULL,NULL,NULL,'<strong>ref :bk.full250.creation</strong><br>Création du compte backup ftp 250Mo.<br>',1.00000000,1.19600000,1,0,NULL,19.600,'',0.000,'',0.000,'',1.00000000,0.20000000,0.00000000,0.00000000,1.20000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(50,18,NULL,NULL,NULL,NULL,'<strong>ref :bk.full250.12</strong><br>Redevance pour un backup de 250Mo sur 12 mois<br>',25.00000000,29.90000000,1,0,NULL,19.600,'',0.000,'',0.000,'',25.00000000,4.90000000,0.00000000,0.00000000,29.90000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(51,19,NULL,NULL,NULL,NULL,'<strong>ref :bk.full250.creation</strong><br>Création du compte backup ftp 250Mo.<br>',1.00000000,1.19600000,1,0,NULL,19.600,'',0.000,'0',0.000,'0',1.00000000,0.20000000,0.00000000,0.00000000,1.20000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(52,19,NULL,NULL,NULL,NULL,'<strong>ref :bk.full250.12</strong><br>Redevance pour un backup de 250Mo sur 12 mois<br>',25.00000000,29.90000000,1,0,NULL,19.600,'',0.000,'0',0.000,'0',25.00000000,4.90000000,0.00000000,0.00000000,29.90000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(53,20,NULL,NULL,NULL,NULL,'Chips',20.00000000,23.92000000,10,0,NULL,19.600,'',0.000,'0',0.000,'0',200.00000000,39.20000000,0.00000000,0.00000000,239.20000000,0,NULL,NULL,0,NULL,323,0,0,NULL,0,'EUR',20.00000000,0.00000000,200.00000000,39.20000000,239.20000000,NULL),(54,21,NULL,1,'aaa',NULL,'A beatifull pink dress',100.00000000,90.00000000,5,10,NULL,0.000,'',0.000,'0',0.000,'0',450.00000000,0.00000000,0.00000000,0.00000000,450.00000000,0,NULL,NULL,0,NULL,323,0,1,NULL,1,'EUR',100.00000000,0.00000000,450.00000000,0.00000000,450.00000000,NULL),(78,22,NULL,1,'BK01',NULL,'A beatifull pink dress',70.00000000,84.00000000,5,0,NULL,20.000,'',0.000,'',0.000,'',350.00000000,70.00000000,0.00000000,0.00000000,420.00000000,0,NULL,NULL,0,NULL,323,0,2,NULL,1,'EUR',70.00000000,0.00000000,350.00000000,70.00000000,420.00000000,NULL),(83,27,NULL,1,'BK01','Pink dress','A beatifull pink dress',-70.00000000,-78.75000000,5,0,NULL,12.500,'',0.000,'0',0.000,'0',-350.00000000,-43.75000000,0.00000000,0.00000000,-393.75000000,0,NULL,NULL,0,NULL,323,0,2,NULL,1,'EUR',-70.00000000,0.00000000,-350.00000000,-43.75000000,-393.75000000,NULL),(84,28,NULL,1,'BK01',NULL,'A beatifull pink dress',79.16667000,89.06000000,1,0,NULL,12.500,'',0.000,'0',0.000,'0',79.17000000,9.89000000,0.00000000,0.00000000,89.06000000,0,NULL,NULL,0,NULL,323,0,1,NULL,1,'EUR',79.16667000,0.00000000,79.17000000,9.89000000,89.06000000,NULL),(86,30,NULL,NULL,'',NULL,'<strong>ref :bk.full250.creation</strong><br>Création du compte backup ftp 250Mo.<br>',-1.00000000,-1.20000000,1,0,NULL,19.600,'',0.000,'0',0.000,'0',-1.00000000,-0.20000000,0.00000000,0.00000000,-1.20000000,0,NULL,NULL,0,NULL,325,0,0,NULL,0,'',0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(87,30,NULL,NULL,'',NULL,'<strong>ref :bk.full250.12</strong><br>Redevance pour un backup de 250Mo sur 12 mois<br>',-25.00000000,-29.90000000,1,0,NULL,19.600,'',0.000,'0',0.000,'0',-25.00000000,-4.90000000,0.00000000,0.00000000,-29.90000000,0,NULL,NULL,0,NULL,325,0,0,NULL,0,'',0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(89,22,NULL,2,'BKPEARPIE',NULL,'',7.00000000,7.70000000,1,0,NULL,10.000,'',0.000,'',0.000,'',7.00000000,0.70000000,0.00000000,0.00000000,7.70000000,0,NULL,NULL,0,NULL,324,0,3,NULL,1,'EUR',7.00000000,0.00000000,7.00000000,0.70000000,7.70000000,NULL),(90,22,NULL,NULL,'',NULL,'aaa',1.00000000,1.06000000,1,0,NULL,5.500,'aaa',0.000,'0',0.000,'0',1.00000000,0.06000000,0.00000000,0.00000000,1.06000000,0,NULL,NULL,0,NULL,0,0,4,NULL,1,'EUR',1.00000000,0.00000000,1.00000000,0.06000000,1.06000000,NULL),(91,22,NULL,NULL,'',NULL,'aa',2.00000000,2.11000000,1,0,NULL,5.500,'bbb',0.000,'0',0.000,'0',2.00000000,0.11000000,0.00000000,0.00000000,2.11000000,1,NULL,NULL,0,NULL,0,0,5,NULL,1,'EUR',2.00000000,0.00000000,2.00000000,0.11000000,2.11000000,NULL),(92,22,NULL,NULL,'',NULL,'1',1.00000000,1.06000000,1,0,NULL,5.500,'aaa',0.000,'0',0.000,'0',1.00000000,0.06000000,0.00000000,0.00000000,1.06000000,0,NULL,NULL,0,NULL,0,0,6,NULL,1,'EUR',1.00000000,0.00000000,1.00000000,0.06000000,1.06000000,NULL),(93,32,NULL,NULL,'aaa',NULL,'fsdfds',50.00000000,60.00000000,1,0,NULL,20.000,'',0.000,'',0.000,'',50.00000000,10.00000000,0.00000000,0.00000000,60.00000000,0,NULL,NULL,0,NULL,0,0,1,NULL,1,'EUR',50.00000000,0.00000000,50.00000000,10.00000000,60.00000000,NULL),(96,34,NULL,NULL,'',NULL,'<strong>ref :bk.full250.creation</strong><br>Création du compte backup ftp 250Mo.<br>',1.00000000,1.19600000,1,0,NULL,19.600,'',0.000,'',0.000,'',1.00000000,0.20000000,0.00000000,0.00000000,1.20000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,1.00000000,0.00000000,1.00000000,0.20000000,1.20000000,NULL),(97,34,NULL,NULL,'',NULL,'<strong>ref :bk.full250.12</strong><br>Redevance pour un backup de 250Mo sur 12 mois<br>',25.00000000,29.90000000,1,0,NULL,19.600,'',0.000,'',0.000,'',25.00000000,4.90000000,0.00000000,0.00000000,29.90000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,25.00000000,0.00000000,25.00000000,4.90000000,29.90000000,NULL),(102,39,NULL,NULL,'',NULL,'<strong>ref :bk.full250.creation</strong><br>Création du compte backup ftp 250Mo.<br>',1.00000000,1.19600000,1,0,NULL,19.600,'',0.000,'',0.000,'',1.00000000,0.20000000,0.00000000,0.00000000,1.20000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,1.00000000,0.00000000,1.00000000,0.20000000,1.20000000,NULL),(103,39,NULL,NULL,'',NULL,'<strong>ref :bk.full250.12</strong><br>Redevance pour un backup de 250Mo sur 12 mois<br>',25.00000000,29.90000000,1,0,NULL,19.600,'',0.000,'',0.000,'',25.00000000,4.90000000,0.00000000,0.00000000,29.90000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,25.00000000,0.00000000,25.00000000,4.90000000,29.90000000,NULL),(106,38,NULL,1,'',NULL,'A beatifull pink dress\naaaa',-5.00000000,-5.63000000,1,0,NULL,12.500,'',0.000,'0',0.000,'0',-5.00000000,-0.63000000,0.00000000,0.00000000,-5.63000000,0,NULL,NULL,0,NULL,0,0,1,NULL,0,'EUR',-5.00000000,0.00000000,-5.00000000,-0.63000000,-5.63000000,NULL),(107,38,NULL,NULL,'',NULL,'hfgh',1000.00000000,1280.00000000,1,0,NULL,28.000,'I-28',0.000,'0',0.000,'0',1000.00000000,280.00000000,0.00000000,0.00000000,1280.00000000,0,NULL,NULL,0,NULL,0,0,2,1,0,'EUR',1000.00000000,0.00000000,1000.00000000,280.00000000,1280.00000000,NULL),(108,40,NULL,NULL,'',NULL,'Credit Note for remaining unpaid amount',-31.10000000,-31.10000000,1,0,NULL,0.000,'',0.000,'0',0.000,'0',-31.10000000,0.00000000,0.00000000,0.00000000,-31.10000000,0,NULL,NULL,0,NULL,0,0,1,NULL,1,'EUR',-31.10000000,0.00000000,-31.10000000,0.00000000,-31.10000000,NULL),(109,38,NULL,1,'',NULL,'A beatifull pink dress\nffff',-2.00000000,-2.25000000,1,0,NULL,12.500,'',0.000,'0',0.000,'0',-2.00000000,-0.25000000,0.00000000,0.00000000,-2.25000000,0,NULL,NULL,0,NULL,0,0,3,NULL,0,'EUR',-2.00000000,0.00000000,-2.00000000,-0.25000000,-2.25000000,NULL),(110,38,NULL,1,'',NULL,'A beatifull pink dress\nffff',0.00000000,0.00000000,1,0,NULL,12.500,'',0.000,'0',0.000,'0',0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,NULL,NULL,0,NULL,0,0,4,NULL,0,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL),(111,41,NULL,NULL,'',NULL,'aaaaaa',10.00000000,10.00000000,1,0,NULL,0.000,'',0.000,'0',0.000,'0',10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,0,NULL,NULL,0,NULL,0,0,1,1,1,'EUR',10.00000000,0.00000000,10.00000000,0.00000000,10.00000000,NULL);

--
-- Table structure for table `llx_facture_fourn_det_extrafields`
--

CREATE TABLE `llx_facture_fourn_det_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_facture_fourn_det_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_facture_fourn_det_extrafields`
--


--
-- Table structure for table `llx_facture_fourn_det_rec`
--

CREATE TABLE `llx_facture_fourn_det_rec` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_facture_fourn` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `ref` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `pu_ht` double(24,8) DEFAULT NULL,
  `pu_ttc` double(24,8) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT 0,
  `fk_remise_except` int(11) DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `tva_tx` double(7,4) DEFAULT NULL,
  `localtax1_tx` double(7,4) DEFAULT 0.0000,
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(7,4) DEFAULT 0.0000,
  `localtax2_type` varchar(10) 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` int(11) DEFAULT NULL,
  `date_end` int(11) DEFAULT NULL,
  `info_bits` int(11) DEFAULT 0,
  `special_code` int(10) unsigned DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_unit` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT 0.00000000,
  `multicurrency_subprice_ttc` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `fk_facture_fourn_det_rec_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_facture_fourn_det_rec_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_facture_fourn_det_rec`
--

INSERT INTO `llx_facture_fourn_det_rec` (`rowid`, `fk_facture_fourn`, `fk_parent_line`, `fk_product`, `ref`, `label`, `description`, `pu_ht`, `pu_ttc`, `qty`, `remise_percent`, `fk_remise_except`, `vat_src_code`, `tva_tx`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `date_start`, `date_end`, `info_bits`, `special_code`, `rang`, `fk_unit`, `import_key`, `fk_user_author`, `fk_user_modif`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_subprice`, `multicurrency_subprice_ttc`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `extraparams`) VALUES (1,1,NULL,NULL,NULL,NULL,'<strong>ref :bk.full250.creation</strong><br>Création du compte backup ftp 250Mo.<br>',1.00000000,1.19600000,1,0,NULL,'',19.6000,0.0000,'0',0.0000,'0',1.00000000,0.20000000,0.00000000,0.00000000,1.20000000,0,NULL,NULL,0,0,0,NULL,NULL,1,NULL,0,'EUR',1.00000000,0.00000000,1.00000000,0.20000000,1.20000000,NULL),(2,1,NULL,NULL,NULL,NULL,'<strong>ref :bk.full250.12</strong><br>Redevance pour un backup de 250Mo sur 12 mois<br>',25.00000000,29.90000000,1,0,NULL,'',19.6000,0.0000,'0',0.0000,'0',25.00000000,4.90000000,0.00000000,0.00000000,29.90000000,0,NULL,NULL,0,0,0,NULL,NULL,1,NULL,0,'EUR',25.00000000,0.00000000,25.00000000,4.90000000,29.90000000,NULL);

--
-- Table structure for table `llx_facture_fourn_det_rec_extrafields`
--

CREATE TABLE `llx_facture_fourn_det_rec_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_facture_fourn_det_rec_extrafields` (`fk_object`),
  KEY `llx_facture_fourn_det_rec_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_facture_fourn_det_rec_extrafields`
--


--
-- 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`),
  UNIQUE KEY `uk_facture_fourn_extrafields` (`fk_object`),
  KEY `idx_facture_fourn_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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


--
-- Table structure for table `llx_facture_fourn_rec`
--

CREATE TABLE `llx_facture_fourn_rec` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `titre` varchar(200) NOT NULL,
  `ref_supplier` varchar(180) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `subtype` smallint(6) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `suspended` int(11) DEFAULT 0,
  `libelle` varchar(255) DEFAULT NULL,
  `amount` double(24,8) NOT NULL DEFAULT 0.00000000,
  `remise` double DEFAULT 0,
  `vat_src_code` varchar(10) DEFAULT '',
  `localtax1` double(24,8) DEFAULT 0.00000000,
  `localtax2` 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_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_account` int(11) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `date_lim_reglement` date DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `modelpdf` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `usenewprice` int(11) DEFAULT 0,
  `frequency` int(11) DEFAULT NULL,
  `unit_frequency` varchar(2) DEFAULT 'm',
  `date_when` datetime DEFAULT NULL,
  `date_last_gen` datetime DEFAULT NULL,
  `nb_gen_done` int(11) DEFAULT NULL,
  `nb_gen_max` int(11) DEFAULT NULL,
  `auto_validate` int(11) DEFAULT 0,
  `generate_pdf` int(11) DEFAULT 1,
  `usenewcurrencyrate` int(11) DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_facture_fourn_rec_ref` (`titre`,`entity`),
  UNIQUE KEY `uk_facture_fourn_rec_ref_supplier` (`ref_supplier`,`fk_soc`,`entity`),
  KEY `idx_facture_fourn_rec_fk_soc` (`fk_soc`),
  KEY `idx_facture_fourn_rec_fk_user_author` (`fk_user_author`),
  KEY `idx_facture_fourn_rec_fk_projet` (`fk_projet`),
  KEY `idx_facture_fourn_rec_date_lim_reglement` (`date_lim_reglement`),
  CONSTRAINT `fk_facture_fourn_rec_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_facture_fourn_rec_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_facture_fourn_rec_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_facture_fourn_rec`
--

INSERT INTO `llx_facture_fourn_rec` (`rowid`, `titre`, `ref_supplier`, `entity`, `subtype`, `fk_soc`, `datec`, `tms`, `suspended`, `libelle`, `amount`, `remise`, `vat_src_code`, `localtax1`, `localtax2`, `total_ht`, `total_tva`, `total_ttc`, `fk_user_author`, `fk_user_modif`, `fk_projet`, `fk_account`, `fk_cond_reglement`, `fk_mode_reglement`, `date_lim_reglement`, `note_private`, `note_public`, `modelpdf`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_tx`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `usenewprice`, `frequency`, `unit_frequency`, `date_when`, `date_last_gen`, `nb_gen_done`, `nb_gen_max`, `auto_validate`, `generate_pdf`, `usenewcurrencyrate`) VALUES (1,'Monthly subscription server OVH','FR81386',1,NULL,1,'2023-08-15 12:19:18','2025-04-07 11:27:30',0,'OVH FR81386',0.00000000,0,NULL,0.00000000,0.00000000,26.00000000,5.10000000,31.10000000,12,12,NULL,NULL,4,NULL,NULL,'','','canelle',NULL,'EUR',1.00000000,26.00000000,5.10000000,31.10000000,0,2,'m','2023-08-15 14:19:00',NULL,0,0,0,1,0);

--
-- Table structure for table `llx_facture_fourn_rec_extrafields`
--

CREATE TABLE `llx_facture_fourn_rec_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_facture_fourn_rec_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_facture_fourn_rec_extrafields`
--


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

CREATE TABLE `llx_facture_rec` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `titre` varchar(200) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `subtype` smallint(6) DEFAULT NULL,
  `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,
  `total_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,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_cond_reglement` int(11) NOT NULL DEFAULT 1,
  `fk_mode_reglement` int(11) DEFAULT 0,
  `date_lim_reglement` date DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `modelpdf` varchar(255) DEFAULT NULL,
  `last_gen` varchar(7) 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,
  `frequency` int(11) DEFAULT NULL,
  `usenewprice` int(11) DEFAULT 0,
  `revenuestamp` double(24,8) DEFAULT 0.00000000,
  `auto_validate` int(11) DEFAULT 0,
  `generate_pdf` int(11) DEFAULT 1,
  `fk_account` int(11) DEFAULT 0,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_user_modif` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `vat_src_code` varchar(10) DEFAULT '',
  `suspended` int(11) DEFAULT 0,
  `fk_societe_rib` int(11) DEFAULT NULL,
  `rule_for_lines_dates` varchar(255) DEFAULT 'prepaid',
  `usenewcurrencyrate` int(11) DEFAULT 0,
  `fk_email_template` 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`),
  KEY `idx_facture_rec_datec` (`datec`),
  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 AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_facture_rec` (`rowid`, `titre`, `entity`, `subtype`, `fk_soc`, `datec`, `amount`, `remise`, `remise_percent`, `remise_absolue`, `total_tva`, `localtax1`, `localtax2`, `total_ht`, `total_ttc`, `fk_user_author`, `fk_projet`, `fk_cond_reglement`, `fk_mode_reglement`, `date_lim_reglement`, `note_private`, `note_public`, `modelpdf`, `last_gen`, `unit_frequency`, `date_when`, `date_last_gen`, `nb_gen_done`, `nb_gen_max`, `frequency`, `usenewprice`, `revenuestamp`, `auto_validate`, `generate_pdf`, `fk_account`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_tx`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `fk_user_modif`, `tms`, `vat_src_code`, `suspended`, `fk_societe_rib`, `rule_for_lines_dates`, `usenewcurrencyrate`, `fk_email_template`) VALUES (1,'Template invoice for Alice services',1,NULL,10,'2017-02-07 03:47:00',0.00000000,0,0,0,0.00000000,0.00000000,0.00000000,6.67000000,6.67000000,12,NULL,1,6,NULL,NULL,NULL,NULL,NULL,'m','2025-04-19 13:40:57','2025-03-19 13:40:57',1,0,1,0,0.00000000,0,1,3,NULL,'AED',2.00000000,13.33000000,0.00000000,13.33000000,12,'2025-04-25 01:39:14','',1,NULL,'prepaid',0,NULL),(2,'Template invoice for Alice cooking - Project 1',1,NULL,10,'2017-02-07 03:47:58',0.00000000,0,0,0,0.00000000,0.00000000,0.00000000,75.00000000,75.00000000,12,6,1,2,NULL,NULL,NULL,NULL,NULL,'m',NULL,NULL,0,0,NULL,0,0.00000000,0,1,4,NULL,NULL,1.00000000,75.00000000,0.00000000,75.00000000,12,'2025-04-05 10:35:36','',0,NULL,'prepaid',0,NULL);

--
-- Table structure for table `llx_facture_rec_extrafields`
--

CREATE TABLE `llx_facture_rec_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `discountcode` varchar(255) DEFAULT NULL,
  `commentonqty` text DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_facture_rec_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_facture_rec_extrafields`
--


--
-- 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 DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `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,
  `subprice_ttc` double(24,8) DEFAULT 0.00000000,
  `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,
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `buy_price_ht` double(24,8) DEFAULT 0.00000000,
  `fk_code_ventilation` int(11) NOT NULL DEFAULT 0,
  `special_code` int(10) unsigned DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_contract_line` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `situation_percent` double DEFAULT 100,
  `fk_prev_id` int(11) DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT 0.00000000,
  `multicurrency_subprice_ttc` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `ref_ext` varchar(255) DEFAULT NULL,
  `batch` varchar(128) DEFAULT NULL,
  `fk_warehouse` int(11) DEFAULT NULL,
  `extraparams` varchar(255) 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`),
  KEY `fk_facturedet_fk_unit` (`fk_unit`),
  KEY `idx_facturedet_fk_code_ventilation` (`fk_code_ventilation`),
  CONSTRAINT `fk_facturedet_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_facturedet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2117 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_facturedet` (`rowid`, `fk_facture`, `fk_parent_line`, `fk_product`, `label`, `description`, `tva_tx`, `vat_src_code`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `qty`, `remise_percent`, `remise`, `fk_remise_except`, `subprice`, `subprice_ttc`, `price`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `date_start`, `date_end`, `info_bits`, `fk_product_fournisseur_price`, `buy_price_ht`, `fk_code_ventilation`, `special_code`, `rang`, `fk_contract_line`, `import_key`, `situation_percent`, `fk_prev_id`, `fk_unit`, `fk_user_modif`, `fk_user_author`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_subprice`, `multicurrency_subprice_ttc`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `ref_ext`, `batch`, `fk_warehouse`, `extraparams`) VALUES (2108,476,NULL,NULL,NULL,'P1',20.000,'',0.000,'0',0.000,'0',2,5,0,NULL,10.00000000,0.00000000,NULL,19.00000000,3.80000000,0.00000000,0.00000000,22.80000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',10.00000000,0.00000000,19.00000000,3.80000000,22.80000000,'','',0,NULL),(2109,476,NULL,NULL,NULL,'S2',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,10.00000000,0.00000000,NULL,10.00000000,2.00000000,0.00000000,0.00000000,12.00000000,1,NULL,NULL,0,NULL,0.00000000,0,0,2,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',10.00000000,0.00000000,10.00000000,2.00000000,12.00000000,'','',0,NULL),(2110,477,NULL,25,NULL,'',20.000,'',0.000,'0',0.000,'0',2,0,0,NULL,1.25000000,0.00000000,NULL,2.50000000,0.50000000,0.00000000,0.00000000,3.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',1.25000000,0.00000000,2.50000000,0.50000000,3.00000000,'','',0,NULL),(2111,478,NULL,25,NULL,'',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,1.25000000,0.00000000,NULL,1.25000000,0.25000000,0.00000000,0.00000000,1.50000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',1.25000000,0.00000000,1.25000000,0.25000000,1.50000000,'','',0,NULL),(2112,479,NULL,27,NULL,'',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,1.08333000,0.00000000,NULL,1.08000000,0.22000000,0.00000000,0.00000000,1.30000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',1.08333000,0.00000000,1.08000000,0.22000000,1.30000000,'','',0,NULL),(2113,479,NULL,28,NULL,'',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,2.00000000,0.00000000,NULL,2.00000000,0.40000000,0.00000000,0.00000000,2.40000000,0,NULL,NULL,0,NULL,0.00000000,0,0,2,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',2.00000000,0.00000000,2.00000000,0.40000000,2.40000000,'','',0,NULL),(2114,480,NULL,28,NULL,'',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,2.00000000,0.00000000,NULL,2.00000000,0.40000000,0.00000000,0.00000000,2.40000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',2.00000000,0.00000000,2.00000000,0.40000000,2.40000000,'','',0,NULL),(2115,480,NULL,27,NULL,'',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,1.08333000,0.00000000,NULL,1.08000000,0.22000000,0.00000000,0.00000000,1.30000000,0,NULL,NULL,0,NULL,0.00000000,0,0,2,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',1.08333000,0.00000000,1.08000000,0.22000000,1.30000000,'','',0,NULL),(2116,481,NULL,24,NULL,'',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,83.33333000,0.00000000,NULL,83.33000000,16.67000000,0.00000000,0.00000000,100.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',83.33333000,0.00000000,83.33000000,16.67000000,100.00000000,'','',0,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`),
  UNIQUE KEY `uk_facturedet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- 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 DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `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,
  `subprice_ttc` double(24,8) DEFAULT 0.00000000,
  `price` double(24,8) DEFAULT NULL,
  `total_ht` double(24,8) DEFAULT NULL,
  `total_tva` double(24,8) DEFAULT NULL,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT NULL,
  `info_bits` int(11) DEFAULT 0,
  `special_code` int(10) unsigned DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_contract_line` int(11) DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT 0.00000000,
  `multicurrency_subprice_ttc` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `date_start_fill` int(11) DEFAULT 0,
  `date_end_fill` int(11) DEFAULT 0,
  `buy_price_ht` double(24,8) DEFAULT 0.00000000,
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `fk_facturedet_rec_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_facturedet_rec_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_facturedet_rec` (`rowid`, `fk_facture`, `fk_parent_line`, `fk_product`, `product_type`, `label`, `description`, `tva_tx`, `vat_src_code`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `qty`, `remise_percent`, `remise`, `subprice`, `subprice_ttc`, `price`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `info_bits`, `special_code`, `rang`, `fk_contract_line`, `fk_unit`, `import_key`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_subprice`, `multicurrency_subprice_ttc`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `date_start_fill`, `date_end_fill`, `buy_price_ht`, `fk_product_fournisseur_price`, `fk_user_author`, `fk_user_modif`, `extraparams`) VALUES (4,1,NULL,NULL,1,NULL,'Services by Alice.<br>\nMonthly.',0.000,'',0.000,'0',0.000,'0',1,0,NULL,6.66667000,0.00000000,6.66667000,6.67000000,0.00000000,0.00000000,0.00000000,6.67000000,0,0,0,NULL,1,NULL,0,'',13.33334000,0.00000000,13.33000000,0.00000000,13.33000000,0,0,0.00000000,NULL,NULL,NULL,NULL),(5,2,NULL,4,0,NULL,'Nice Bio Apple Pie.<br />\r\n&nbsp;',0.000,'',0.000,'0',0.000,'0',5,0,NULL,5.00000000,0.00000000,5.00000000,25.00000000,0.00000000,0.00000000,0.00000000,25.00000000,0,0,-1,NULL,NULL,NULL,0,'',5.00000000,0.00000000,25.00000000,0.00000000,25.00000000,0,0,0.00000000,NULL,NULL,NULL,NULL),(6,2,NULL,2,0,NULL,'',0.000,'',0.000,'0',0.000,'0',5,0,NULL,10.00000000,0.00000000,10.00000000,50.00000000,0.00000000,0.00000000,0.00000000,50.00000000,0,0,-1,NULL,NULL,NULL,0,'',10.00000000,0.00000000,50.00000000,0.00000000,50.00000000,0,0,0.00000000,NULL,NULL,NULL,NULL);

--
-- Table structure for table `llx_facturedet_rec_extrafields`
--

CREATE TABLE `llx_facturedet_rec_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_facturedet_rec_extrafields` (`fk_object`),
  KEY `idx_facturedet_rec_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_facturedet_rec_extrafields`
--


--
-- 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_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT 0,
  `duree` double DEFAULT NULL,
  `signed_status` smallint(6) DEFAULT NULL,
  `dateo` date DEFAULT NULL,
  `datee` date DEFAULT NULL,
  `datet` date DEFAULT NULL,
  `description` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_client` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `online_sign_ip` varchar(48) DEFAULT NULL,
  `online_sign_name` varchar(64) 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 AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_fichinter` (`rowid`, `fk_soc`, `fk_projet`, `fk_contrat`, `ref`, `entity`, `tms`, `datec`, `date_valid`, `datei`, `fk_user_author`, `fk_user_modif`, `fk_user_valid`, `fk_statut`, `duree`, `signed_status`, `dateo`, `datee`, `datet`, `description`, `note_private`, `note_public`, `model_pdf`, `extraparams`, `ref_ext`, `ref_client`, `last_main_doc`, `import_key`, `online_sign_ip`, `online_sign_name`) VALUES (1,2,1,0,'FI1007-0001',1,'2018-01-22 17:39:37','2012-07-09 01:42:41','2018-01-22 18:39:37',NULL,1,NULL,12,1,10800,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'soleil',NULL,NULL,NULL,NULL,NULL,NULL,NULL),(2,1,NULL,0,'FI1007-0002',1,'2014-12-08 13:11:07','2012-07-11 16:07:51',NULL,NULL,1,NULL,NULL,0,3600,NULL,NULL,NULL,NULL,'ferfrefeferf',NULL,NULL,'soleil',NULL,NULL,NULL,NULL,NULL,NULL,NULL),(3,2,NULL,0,'FI1511-0003',1,'2018-07-30 15:51:16','2017-11-18 15:57:34','2018-01-22 18:38:46',NULL,2,NULL,12,1,36000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'soleil',NULL,NULL,NULL,NULL,NULL,NULL,NULL),(5,10,6,0,'FI2506-0004',1,'2025-06-26 22:50:40','2025-06-26 22:50:32','2025-06-26 22:50:40',NULL,12,12,12,1,3600,0,'2025-06-26','2025-06-26',NULL,NULL,NULL,NULL,'soleil',NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- 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`),
  UNIQUE KEY `uk_ficheinter_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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


--
-- Table structure for table `llx_fichinter_rec`
--

CREATE TABLE `llx_fichinter_rec` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(50) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `fk_contrat` int(11) DEFAULT 0,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `duree` double DEFAULT NULL,
  `description` text DEFAULT NULL,
  `modelpdf` varchar(255) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `frequency` int(11) DEFAULT NULL,
  `unit_frequency` varchar(2) DEFAULT 'm',
  `date_when` datetime DEFAULT NULL,
  `date_last_gen` datetime DEFAULT NULL,
  `nb_gen_done` int(11) DEFAULT NULL,
  `nb_gen_max` int(11) DEFAULT NULL,
  `auto_validate` int(11) DEFAULT NULL,
  `status` smallint(6) DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_fichinter_rec_uk_titre` (`title`,`entity`),
  KEY `idx_fichinter_rec_fk_soc` (`fk_soc`),
  KEY `idx_fichinter_rec_fk_user_author` (`fk_user_author`),
  KEY `idx_fichinter_rec_fk_projet` (`fk_projet`),
  CONSTRAINT `fk_fichinter_rec_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_fichinter_rec_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_fichinter_rec`
--


--
-- 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,
  `special_code` int(11) DEFAULT 0,
  `product_type` int(11) DEFAULT 0,
  `date` datetime DEFAULT NULL,
  `description` text DEFAULT NULL,
  `duree` int(11) DEFAULT NULL,
  `rang` int(11) DEFAULT 0,
  `extraparams` varchar(255) DEFAULT NULL,
  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 AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_fichinterdet` (`rowid`, `fk_fichinter`, `fk_parent_line`, `special_code`, `product_type`, `date`, `description`, `duree`, `rang`, `extraparams`) VALUES (1,1,NULL,0,0,'2012-07-07 04:00:00','Intervention sur site',3600,0,NULL),(2,1,NULL,0,0,'2012-07-08 11:00:00','Other actions on client site.',7200,0,NULL),(3,2,NULL,0,0,'2012-07-11 05:00:00','Pres',3600,0,NULL),(5,3,NULL,0,0,'2017-11-18 09:00:00','Intervention on building windows 1',32400,0,NULL),(6,3,NULL,0,0,'2018-01-22 00:00:00','Intervention on building windows 2',3600,0,NULL),(7,5,NULL,0,0,'2025-06-26 22:50:00','gdfgdfgd',3600,0,NULL);

--
-- Table structure for table `llx_fichinterdet_extrafields`
--

CREATE TABLE `llx_fichinterdet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_ficheinterdet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_fichinterdet_extrafields`
--


--
-- Table structure for table `llx_fichinterdet_rec`
--

CREATE TABLE `llx_fichinterdet_rec` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_fichinter` int(11) NOT NULL,
  `date` datetime DEFAULT NULL,
  `description` text DEFAULT NULL,
  `duree` int(11) DEFAULT NULL,
  `rang` int(11) DEFAULT 0,
  `total_ht` double(24,8) DEFAULT NULL,
  `subprice` double(24,8) DEFAULT NULL,
  `subprice_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(1) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(1) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT 0,
  `fk_remise_except` int(11) DEFAULT NULL,
  `price` 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,
  `fk_unit` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_fichinterdet_rec`
--


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

CREATE TABLE `llx_holiday` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_user` int(11) NOT NULL,
  `date_create` datetime NOT NULL,
  `description` varchar(255) NOT NULL,
  `date_debut` date NOT NULL,
  `date_fin` date NOT NULL,
  `halfday` int(11) DEFAULT 0,
  `statut` int(11) NOT NULL DEFAULT 1,
  `fk_validator` int(11) NOT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `date_refuse` datetime DEFAULT NULL,
  `fk_user_refuse` int(11) DEFAULT NULL,
  `date_cancel` datetime DEFAULT NULL,
  `fk_user_cancel` int(11) DEFAULT NULL,
  `detail_refuse` varchar(250) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `fk_type` int(11) NOT NULL DEFAULT 1,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref` varchar(30) DEFAULT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `date_approval` datetime DEFAULT NULL,
  `fk_user_approve` int(11) DEFAULT NULL,
  `nb_open_day` double(24,8) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_holiday_fk_user` (`fk_user`),
  KEY `idx_holiday_date_debut` (`date_debut`),
  KEY `idx_holiday_date_fin` (`date_fin`),
  KEY `idx_holiday_fk_user_create` (`fk_user_create`),
  KEY `idx_holiday_date_create` (`date_create`),
  KEY `idx_holiday_fk_validator` (`fk_validator`),
  KEY `idx_holiday_entity` (`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_holiday` (`rowid`, `fk_user`, `date_create`, `description`, `date_debut`, `date_fin`, `halfday`, `statut`, `fk_validator`, `date_valid`, `fk_user_valid`, `date_refuse`, `fk_user_refuse`, `date_cancel`, `fk_user_cancel`, `detail_refuse`, `note_private`, `note_public`, `note`, `fk_user_create`, `fk_type`, `tms`, `entity`, `ref`, `ref_ext`, `import_key`, `extraparams`, `fk_user_modif`, `date_approval`, `fk_user_approve`, `nb_open_day`) VALUES (1,1,'2024-02-17 19:06:35','gdf','2024-02-10','2024-02-11',0,3,1,'2024-02-17 19:06:57',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,'2026-02-15 18:44:54',1,'1',NULL,NULL,NULL,NULL,'2022-02-17 19:06:57',1,NULL),(2,12,'2025-01-22 19:10:01','','2024-12-28','2025-01-03',0,5,11,'2026-01-31 07:08:36',12,'2025-12-16 13:29:11',12,NULL,NULL,'because',NULL,NULL,NULL,12,5,'2026-02-15 18:44:54',1,'HL2112-0001',NULL,NULL,NULL,NULL,NULL,NULL,NULL),(3,13,'2023-01-22 19:10:29','','2024-01-11','2023-01-13',0,2,11,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,12,5,'2026-02-15 18:44:54',1,'3',NULL,NULL,NULL,NULL,NULL,NULL,NULL),(4,12,'2024-01-31 07:09:11','','2024-01-31','2024-01-31',0,3,12,'2024-01-31 07:09:13',12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,12,3,'2026-02-15 18:44:54',1,'HL2301-0002',NULL,NULL,NULL,NULL,'2023-01-31 07:09:16',12,NULL);

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

CREATE TABLE `llx_holiday_config` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `name` varchar(128) DEFAULT NULL,
  `value` text DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `name` (`name`),
  UNIQUE KEY `idx_holiday_config` (`entity`,`name`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

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

--
-- Table structure for table `llx_holiday_extrafields`
--

CREATE TABLE `llx_holiday_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_holiday_extrafields` (`fk_object`),
  KEY `idx_holiday_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_holiday_extrafields`
--


--
-- 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,
  `fk_type` int(11) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=196 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_holiday_logs` (`rowid`, `date_action`, `fk_user_action`, `fk_user_update`, `type_action`, `prev_solde`, `new_solde`, `fk_type`) VALUES (1,'2015-01-17 21:03:15',1,1,'Event : Mise à jour mensuelle','0.00','2.08',1),(2,'2015-01-17 21:03:15',1,2,'Event : Mise à jour mensuelle','0.00','2.08',1),(3,'2015-01-17 21:03:15',1,3,'Event : Mise à jour mensuelle','0.00','2.08',1),(4,'2015-02-01 09:53:26',1,1,'Event : Mise à jour mensuelle','2.08','4.16',1),(5,'2015-02-01 09:53:26',1,2,'Event : Mise à jour mensuelle','2.08','4.16',1),(6,'2015-02-01 09:53:26',1,3,'Event : Mise à jour mensuelle','2.08','4.16',1),(7,'2015-02-01 09:53:26',1,1,'Event : Mise à jour mensuelle','4.17','6.25',1),(8,'2015-02-01 09:53:26',1,2,'Event : Mise à jour mensuelle','4.17','6.25',1),(9,'2015-02-01 09:53:26',1,3,'Event : Mise à jour mensuelle','4.17','6.25',1),(10,'2015-02-01 09:53:26',1,4,'Event : Mise à jour mensuelle','0.00','2.08',1),(11,'2015-02-01 09:53:31',1,1,'Event : Mise à jour mensuelle','6.25','8.33',1),(12,'2015-02-01 09:53:31',1,2,'Event : Mise à jour mensuelle','6.25','8.33',1),(13,'2015-02-01 09:53:31',1,3,'Event : Mise à jour mensuelle','6.25','8.33',1),(14,'2015-02-01 09:53:31',1,4,'Event : Mise à jour mensuelle','2.08','4.16',1),(15,'2015-02-01 09:53:31',1,1,'Event : Mise à jour mensuelle','8.33','10.41',1),(16,'2015-02-01 09:53:31',1,2,'Event : Mise à jour mensuelle','8.33','10.41',1),(17,'2015-02-01 09:53:31',1,3,'Event : Mise à jour mensuelle','8.33','10.41',1),(18,'2015-02-01 09:53:31',1,4,'Event : Mise à jour mensuelle','4.17','6.25',1),(19,'2015-02-01 09:53:33',1,1,'Event : Mise à jour mensuelle','10.42','12.50',1),(20,'2015-02-01 09:53:33',1,2,'Event : Mise à jour mensuelle','10.42','12.50',1),(21,'2015-02-01 09:53:33',1,3,'Event : Mise à jour mensuelle','10.42','12.50',1),(22,'2015-02-01 09:53:33',1,4,'Event : Mise à jour mensuelle','6.25','8.33',1),(23,'2015-02-01 09:53:34',1,1,'Event : Mise à jour mensuelle','12.50','14.58',1),(24,'2015-02-01 09:53:34',1,2,'Event : Mise à jour mensuelle','12.50','14.58',1),(25,'2015-02-01 09:53:34',1,3,'Event : Mise à jour mensuelle','12.50','14.58',1),(26,'2015-02-01 09:53:34',1,4,'Event : Mise à jour mensuelle','8.33','10.41',1),(27,'2015-02-01 09:53:34',1,1,'Event : Mise à jour mensuelle','14.58','16.66',1),(28,'2015-02-01 09:53:34',1,2,'Event : Mise à jour mensuelle','14.58','16.66',1),(29,'2015-02-01 09:53:34',1,3,'Event : Mise à jour mensuelle','14.58','16.66',1),(30,'2015-02-01 09:53:34',1,4,'Event : Mise à jour mensuelle','10.42','12.50',1),(31,'2015-02-01 09:53:36',1,1,'Event : Mise à jour mensuelle','16.67','18.75',1),(32,'2015-02-01 09:53:36',1,2,'Event : Mise à jour mensuelle','16.67','18.75',1),(33,'2015-02-01 09:53:36',1,3,'Event : Mise à jour mensuelle','16.67','18.75',1),(34,'2015-02-01 09:53:36',1,4,'Event : Mise à jour mensuelle','12.50','14.58',1),(35,'2015-02-01 09:53:36',1,1,'Event : Mise à jour mensuelle','18.75','20.83',1),(36,'2015-02-01 09:53:36',1,2,'Event : Mise à jour mensuelle','18.75','20.83',1),(37,'2015-02-01 09:53:36',1,3,'Event : Mise à jour mensuelle','18.75','20.83',1),(38,'2015-02-01 09:53:36',1,4,'Event : Mise à jour mensuelle','14.58','16.66',1),(39,'2015-02-01 09:53:37',1,1,'Event : Mise à jour mensuelle','20.83','22.91',1),(40,'2015-02-01 09:53:37',1,2,'Event : Mise à jour mensuelle','20.83','22.91',1),(41,'2015-02-01 09:53:37',1,3,'Event : Mise à jour mensuelle','20.83','22.91',1),(42,'2015-02-01 09:53:37',1,4,'Event : Mise à jour mensuelle','16.67','18.75',1),(43,'2015-02-01 09:53:37',1,1,'Event : Mise à jour mensuelle','22.92','25.00',1),(44,'2015-02-01 09:53:37',1,2,'Event : Mise à jour mensuelle','22.92','25.00',1),(45,'2015-02-01 09:53:37',1,3,'Event : Mise à jour mensuelle','22.92','25.00',1),(46,'2015-02-01 09:53:37',1,4,'Event : Mise à jour mensuelle','18.75','20.83',1),(47,'2015-02-01 09:53:44',1,1,'Event : Mise à jour mensuelle','25.00','27.08',1),(48,'2015-02-01 09:53:44',1,2,'Event : Mise à jour mensuelle','25.00','27.08',1),(49,'2015-02-01 09:53:44',1,3,'Event : Mise à jour mensuelle','25.00','27.08',1),(50,'2015-02-01 09:53:44',1,4,'Event : Mise à jour mensuelle','20.83','22.91',1),(51,'2015-02-01 09:53:47',1,1,'Event : Mise à jour mensuelle','27.08','29.16',1),(52,'2015-02-01 09:53:47',1,2,'Event : Mise à jour mensuelle','27.08','29.16',1),(53,'2015-02-01 09:53:47',1,3,'Event : Mise à jour mensuelle','27.08','29.16',1),(54,'2015-02-01 09:53:47',1,4,'Event : Mise à jour mensuelle','22.92','25.00',1),(55,'2015-02-01 09:53:47',1,1,'Event : Mise à jour mensuelle','29.17','31.25',1),(56,'2015-02-01 09:53:47',1,2,'Event : Mise à jour mensuelle','29.17','31.25',1),(57,'2015-02-01 09:53:47',1,3,'Event : Mise à jour mensuelle','29.17','31.25',1),(58,'2015-02-01 09:53:47',1,4,'Event : Mise à jour mensuelle','25.00','27.08',1),(59,'2015-02-01 09:53:49',1,1,'Event : Mise à jour mensuelle','31.25','33.33',1),(60,'2015-02-01 09:53:49',1,2,'Event : Mise à jour mensuelle','31.25','33.33',1),(61,'2015-02-01 09:53:49',1,3,'Event : Mise à jour mensuelle','31.25','33.33',1),(62,'2015-02-01 09:53:49',1,4,'Event : Mise à jour mensuelle','27.08','29.16',1),(63,'2015-02-01 09:53:52',1,1,'Event : Mise à jour mensuelle','33.33','35.41',1),(64,'2015-02-01 09:53:52',1,2,'Event : Mise à jour mensuelle','33.33','35.41',1),(65,'2015-02-01 09:53:52',1,3,'Event : Mise à jour mensuelle','33.33','35.41',1),(66,'2015-02-01 09:53:52',1,4,'Event : Mise à jour mensuelle','29.17','31.25',1),(67,'2015-02-01 09:53:52',1,1,'Event : Mise à jour mensuelle','35.42','37.50',1),(68,'2015-02-01 09:53:52',1,2,'Event : Mise à jour mensuelle','35.42','37.50',1),(69,'2015-02-01 09:53:52',1,3,'Event : Mise à jour mensuelle','35.42','37.50',1),(70,'2015-02-01 09:53:52',1,4,'Event : Mise à jour mensuelle','31.25','33.33',1),(71,'2015-02-01 09:53:53',1,1,'Event : Mise à jour mensuelle','37.50','39.58',1),(72,'2015-02-01 09:53:53',1,2,'Event : Mise à jour mensuelle','37.50','39.58',1),(73,'2015-02-01 09:53:53',1,3,'Event : Mise à jour mensuelle','37.50','39.58',1),(74,'2015-02-01 09:53:53',1,4,'Event : Mise à jour mensuelle','33.33','35.41',1),(75,'2015-02-01 09:53:54',1,1,'Event : Mise à jour mensuelle','39.58','41.66',1),(76,'2015-02-01 09:53:54',1,2,'Event : Mise à jour mensuelle','39.58','41.66',1),(77,'2015-02-01 09:53:54',1,3,'Event : Mise à jour mensuelle','39.58','41.66',1),(78,'2015-02-01 09:53:54',1,4,'Event : Mise à jour mensuelle','35.42','37.50',1),(79,'2015-02-01 09:53:54',1,1,'Event : Mise à jour mensuelle','41.67','43.75',1),(80,'2015-02-01 09:53:54',1,2,'Event : Mise à jour mensuelle','41.67','43.75',1),(81,'2015-02-01 09:53:54',1,3,'Event : Mise à jour mensuelle','41.67','43.75',1),(82,'2015-02-01 09:53:54',1,4,'Event : Mise à jour mensuelle','37.50','39.58',1),(83,'2015-02-01 09:55:49',1,1,'Event : Mise à jour mensuelle','43.75','45.83',1),(84,'2015-02-01 09:55:49',1,2,'Event : Mise à jour mensuelle','43.75','45.83',1),(85,'2015-02-01 09:55:49',1,3,'Event : Mise à jour mensuelle','43.75','45.83',1),(86,'2015-02-01 09:55:49',1,4,'Event : Mise à jour mensuelle','39.58','41.66',1),(87,'2015-02-01 09:55:56',1,1,'Event : Mise à jour mensuelle','45.83','47.91',1),(88,'2015-02-01 09:55:56',1,2,'Event : Mise à jour mensuelle','45.83','47.91',1),(89,'2015-02-01 09:55:56',1,3,'Event : Mise à jour mensuelle','45.83','47.91',1),(90,'2015-02-01 09:55:56',1,4,'Event : Mise à jour mensuelle','41.67','43.75',1),(91,'2015-02-01 09:56:01',1,1,'Event : Mise à jour mensuelle','47.92','50.00',1),(92,'2015-02-01 09:56:01',1,2,'Event : Mise à jour mensuelle','47.92','50.00',1),(93,'2015-02-01 09:56:01',1,3,'Event : Mise à jour mensuelle','47.92','50.00',1),(94,'2015-02-01 09:56:01',1,4,'Event : Mise à jour mensuelle','43.75','45.83',1),(95,'2015-02-01 09:56:01',1,1,'Event : Mise à jour mensuelle','50.00','52.08',1),(96,'2015-02-01 09:56:01',1,2,'Event : Mise à jour mensuelle','50.00','52.08',1),(97,'2015-02-01 09:56:01',1,3,'Event : Mise à jour mensuelle','50.00','52.08',1),(98,'2015-02-01 09:56:01',1,4,'Event : Mise à jour mensuelle','45.83','47.91',1),(99,'2015-02-01 09:56:03',1,1,'Event : Mise à jour mensuelle','52.08','54.16',1),(100,'2015-02-01 09:56:03',1,2,'Event : Mise à jour mensuelle','52.08','54.16',1),(101,'2015-02-01 09:56:03',1,3,'Event : Mise à jour mensuelle','52.08','54.16',1),(102,'2015-02-01 09:56:03',1,4,'Event : Mise à jour mensuelle','47.92','50.00',1),(103,'2015-02-01 09:56:03',1,1,'Event : Mise à jour mensuelle','54.17','56.25',1),(104,'2015-02-01 09:56:03',1,2,'Event : Mise à jour mensuelle','54.17','56.25',1),(105,'2015-02-01 09:56:03',1,3,'Event : Mise à jour mensuelle','54.17','56.25',1),(106,'2015-02-01 09:56:03',1,4,'Event : Mise à jour mensuelle','50.00','52.08',1),(107,'2015-02-01 09:56:05',1,1,'Event : Mise à jour mensuelle','56.25','58.33',1),(108,'2015-02-01 09:56:05',1,2,'Event : Mise à jour mensuelle','56.25','58.33',1),(109,'2015-02-01 09:56:05',1,3,'Event : Mise à jour mensuelle','56.25','58.33',1),(110,'2015-02-01 09:56:05',1,4,'Event : Mise à jour mensuelle','52.08','54.16',1),(111,'2015-02-01 09:56:06',1,1,'Event : Mise à jour mensuelle','58.33','60.41',1),(112,'2015-02-01 09:56:06',1,2,'Event : Mise à jour mensuelle','58.33','60.41',1),(113,'2015-02-01 09:56:06',1,3,'Event : Mise à jour mensuelle','58.33','60.41',1),(114,'2015-02-01 09:56:06',1,4,'Event : Mise à jour mensuelle','54.17','56.25',1),(115,'2015-02-01 09:56:06',1,1,'Event : Mise à jour mensuelle','60.42','62.50',1),(116,'2015-02-01 09:56:06',1,2,'Event : Mise à jour mensuelle','60.42','62.50',1),(117,'2015-02-01 09:56:06',1,3,'Event : Mise à jour mensuelle','60.42','62.50',1),(118,'2015-02-01 09:56:06',1,4,'Event : Mise à jour mensuelle','56.25','58.33',1),(119,'2015-02-01 09:56:07',1,1,'Event : Mise à jour mensuelle','62.50','64.58',1),(120,'2015-02-01 09:56:07',1,2,'Event : Mise à jour mensuelle','62.50','64.58',1),(121,'2015-02-01 09:56:07',1,3,'Event : Mise à jour mensuelle','62.50','64.58',1),(122,'2015-02-01 09:56:07',1,4,'Event : Mise à jour mensuelle','58.33','60.41',1),(123,'2015-02-01 09:56:07',1,1,'Event : Mise à jour mensuelle','64.58','66.66',1),(124,'2015-02-01 09:56:07',1,2,'Event : Mise à jour mensuelle','64.58','66.66',1),(125,'2015-02-01 09:56:07',1,3,'Event : Mise à jour mensuelle','64.58','66.66',1),(126,'2015-02-01 09:56:07',1,4,'Event : Mise à jour mensuelle','60.42','62.50',1),(127,'2015-02-01 09:56:50',1,1,'Event : Mise à jour mensuelle','66.67','68.75',1),(128,'2015-02-01 09:56:50',1,2,'Event : Mise à jour mensuelle','66.67','68.75',1),(129,'2015-02-01 09:56:50',1,3,'Event : Mise à jour mensuelle','66.67','68.75',1),(130,'2015-02-01 09:56:50',1,4,'Event : Mise à jour mensuelle','62.50','64.58',1),(131,'2015-02-01 09:56:50',1,1,'Event : Mise à jour mensuelle','68.75','70.83',1),(132,'2015-02-01 09:56:50',1,2,'Event : Mise à jour mensuelle','68.75','70.83',1),(133,'2015-02-01 09:56:50',1,3,'Event : Mise à jour mensuelle','68.75','70.83',1),(134,'2015-02-01 09:56:50',1,4,'Event : Mise à jour mensuelle','64.58','66.66',1),(135,'2015-02-17 18:49:21',1,1,'Event : Mise à jour mensuelle','70.83','72.91',1),(136,'2015-02-17 18:49:21',1,2,'Event : Mise à jour mensuelle','70.83','72.91',1),(137,'2015-02-17 18:49:21',1,3,'Event : Mise à jour mensuelle','70.83','72.91',1),(138,'2015-02-17 18:49:21',1,4,'Event : Mise à jour mensuelle','66.67','68.75',1),(139,'2015-02-17 19:06:57',1,1,'Event : Holiday','72.92','71.92',1),(140,'2015-03-01 23:12:31',1,1,'Event : Mise à jour mensuelle','71.92','74.00',1),(141,'2015-03-01 23:12:31',1,2,'Event : Mise à jour mensuelle','72.92','75.00',1),(142,'2015-03-01 23:12:31',1,3,'Event : Mise à jour mensuelle','72.92','75.00',1),(143,'2015-03-01 23:12:31',1,4,'Event : Mise à jour mensuelle','68.75','70.83',1),(145,'2017-07-19 15:44:57',1,1,'Monthly update','0','2.08334',4),(146,'2017-07-19 15:44:57',1,2,'Monthly update','0','2.08334',4),(147,'2017-07-19 15:44:57',1,3,'Monthly update','0','2.08334',4),(148,'2017-07-19 15:44:57',1,4,'Monthly update','0','2.08334',4),(151,'2017-07-19 15:44:57',1,1,'Monthly update','0','2.08334',5),(152,'2017-07-19 15:44:57',1,2,'Monthly update','0','2.08334',5),(153,'2017-07-19 15:44:57',1,3,'Monthly update','0','2.08334',5),(154,'2017-07-19 15:44:57',1,4,'Monthly update','0','2.08334',5),(157,'2017-07-19 15:44:57',1,1,'Monthly update','0','2.08334',9),(158,'2017-07-19 15:44:57',1,2,'Monthly update','0','2.08334',9),(159,'2017-07-19 15:44:57',1,3,'Monthly update','0','2.08334',9),(160,'2017-07-19 15:44:57',1,4,'Monthly update','0','2.08334',9),(163,'2018-01-22 18:59:06',12,1,'Monthly update','0','2.08334',4),(164,'2018-01-22 18:59:06',12,2,'Monthly update','0','2.08334',4),(165,'2018-01-22 18:59:06',12,3,'Monthly update','0','2.08334',4),(166,'2018-01-22 18:59:06',12,4,'Monthly update','0','2.08334',4),(168,'2018-01-22 18:59:06',12,1,'Monthly update','0','2.08334',5),(169,'2018-01-22 18:59:06',12,2,'Monthly update','0','2.08334',5),(170,'2018-01-22 18:59:06',12,3,'Monthly update','0','2.08334',5),(171,'2018-01-22 18:59:06',12,4,'Monthly update','0','2.08334',5),(173,'2018-01-22 18:59:06',12,1,'Monthly update','0','2.08334',9),(174,'2018-01-22 18:59:06',12,2,'Monthly update','0','2.08334',9),(175,'2018-01-22 18:59:06',12,3,'Monthly update','0','2.08334',9),(176,'2018-01-22 18:59:06',12,4,'Monthly update','0','2.08334',9),(178,'2018-01-22 18:59:38',12,18,'Manual update','0','10',5),(179,'2018-01-22 18:59:42',12,16,'Manual update','0','10',5),(180,'2018-01-22 18:59:45',12,12,'Manual update','0','10',5),(181,'2018-01-22 18:59:49',12,1,'Manual update','0','10',5),(182,'2018-01-22 18:59:52',12,2,'Manual update','0','10',5),(183,'2018-01-22 18:59:55',12,3,'Manual update','0','5',5),(184,'2018-07-30 19:45:49',12,1,'Manual update','0','25',3),(185,'2018-07-30 19:45:52',12,2,'Manual update','0','23',3),(186,'2018-07-30 19:45:54',12,3,'Manual update','0','10',3),(187,'2018-07-30 19:45:57',12,4,'Manual update','0','-4',3),(188,'2018-07-30 19:46:02',12,10,'Manual update','0','20',3),(189,'2018-07-30 19:46:04',12,11,'Manual update','0','30',3),(190,'2018-07-30 19:46:07',12,12,'Manual update','0','15',3),(191,'2018-07-30 19:46:09',12,13,'Manual update','0','11',3),(192,'2018-07-30 19:46:12',12,14,'Manual update','0','4',3),(193,'2018-07-30 19:46:14',12,16,'Manual update','0','5',3),(194,'2018-07-30 19:46:16',12,18,'Manual update','0','22',3),(195,'2023-01-31 07:09:16',12,12,'Leaves - HL2301-0002','15','14',3);

--
-- 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,
  `fk_type` int(11) NOT NULL DEFAULT 1,
  `import_key` varchar(14) DEFAULT NULL,
  UNIQUE KEY `uk_holiday_users` (`fk_user`,`fk_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_holiday_users` (`fk_user`, `nb_holiday`, `fk_type`, `import_key`) VALUES (0,0,1,NULL),(1,74.00334000000001,1,NULL),(1,25,3,NULL),(1,10,5,NULL),(2,75.00024000000003,1,NULL),(2,23,3,NULL),(2,10,5,NULL),(3,75.00024000000003,1,NULL),(3,10,3,NULL),(3,5,5,NULL),(4,70.83356000000002,1,NULL),(4,-4,3,NULL),(5,2.08334,1,NULL),(6,0,1,NULL),(10,20,3,NULL),(11,30,3,NULL),(12,14,3,NULL),(12,10,5,NULL),(13,11,3,NULL),(14,4,3,NULL),(16,5,3,NULL),(16,10,5,NULL),(18,22,3,NULL),(18,10,5,NULL);

--
-- Table structure for table `llx_hrm_evaluation`
--

CREATE TABLE `llx_hrm_evaluation` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) NOT NULL DEFAULT '(PROV)',
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` smallint(6) NOT NULL,
  `date_eval` date DEFAULT NULL,
  `fk_user` int(11) NOT NULL,
  `fk_job` int(11) NOT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `model_pdf` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_hrm_evaluation_rowid` (`rowid`),
  KEY `idx_hrm_evaluation_ref` (`ref`),
  KEY `llx_hrm_evaluation_fk_user_creat` (`fk_user_creat`),
  KEY `idx_hrm_evaluation_status` (`status`),
  CONSTRAINT `llx_hrm_evaluation_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_evaluation`
--

INSERT INTO `llx_hrm_evaluation` (`rowid`, `ref`, `label`, `description`, `note_public`, `note_private`, `date_creation`, `tms`, `fk_user_creat`, `fk_user_modif`, `import_key`, `status`, `date_eval`, `fk_user`, `fk_job`, `last_main_doc`, `entity`, `model_pdf`) VALUES (1,'EVAL2302-0001','bbb','eval ',NULL,NULL,'2023-02-11 08:42:19','2023-02-11 11:42:59',12,NULL,NULL,1,'2023-02-11',12,1,NULL,1,NULL),(2,'(PROV2)','test dddd','',NULL,NULL,'2025-04-10 14:33:07','2025-04-10 12:33:07',12,NULL,NULL,0,'2025-04-10',12,1,NULL,1,NULL);

--
-- Table structure for table `llx_hrm_evaluation_extrafields`
--

CREATE TABLE `llx_hrm_evaluation_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_evaluation_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_evaluation_extrafields`
--


--
-- Table structure for table `llx_hrm_evaluationdet`
--

CREATE TABLE `llx_hrm_evaluationdet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_skill` int(11) NOT NULL,
  `fk_evaluation` int(11) NOT NULL,
  `rankorder` int(11) NOT NULL,
  `required_rank` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `comment` text DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_hrm_evaluationdet_rowid` (`rowid`),
  KEY `llx_hrm_evaluationdet_fk_user_creat` (`fk_user_creat`),
  KEY `idx_hrm_evaluationdet_fk_skill` (`fk_skill`),
  KEY `idx_hrm_evaluationdet_fk_evaluation` (`fk_evaluation`),
  CONSTRAINT `llx_hrm_evaluationdet_fk_evaluation` FOREIGN KEY (`fk_evaluation`) REFERENCES `llx_hrm_evaluation` (`rowid`),
  CONSTRAINT `llx_hrm_evaluationdet_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_evaluationdet`
--

INSERT INTO `llx_hrm_evaluationdet` (`rowid`, `date_creation`, `tms`, `fk_user_creat`, `fk_user_modif`, `fk_skill`, `fk_evaluation`, `rankorder`, `required_rank`, `import_key`, `comment`) VALUES (1,'2023-02-11 08:42:19','2023-02-11 11:42:19',12,12,1,1,2,0,NULL,NULL),(2,'2025-04-10 14:33:07','2025-04-10 12:33:07',12,12,1,2,0,2,NULL,NULL);

--
-- Table structure for table `llx_hrm_evaluationdet_extrafields`
--

CREATE TABLE `llx_hrm_evaluationdet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_evaluationdet_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_evaluationdet_extrafields`
--


--
-- Table structure for table `llx_hrm_job`
--

CREATE TABLE `llx_hrm_job` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `deplacement` varchar(255) DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_hrm_job_rowid` (`rowid`),
  KEY `idx_hrm_job_label` (`label`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_job`
--

INSERT INTO `llx_hrm_job` (`rowid`, `label`, `description`, `date_creation`, `tms`, `deplacement`, `note_public`, `note_private`, `fk_user_creat`, `fk_user_modif`) VALUES (1,'aaa','aaa','2023-01-05 09:31:33','2023-01-05 12:31:33','0',NULL,NULL,12,NULL);

--
-- Table structure for table `llx_hrm_job_extrafields`
--

CREATE TABLE `llx_hrm_job_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_job_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_job_extrafields`
--


--
-- Table structure for table `llx_hrm_job_user`
--

CREATE TABLE `llx_hrm_job_user` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `description` text DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_contrat` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_job` int(11) NOT NULL,
  `date_start` date DEFAULT NULL,
  `date_end` date DEFAULT NULL,
  `abort_comment` varchar(255) DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_hrm_job_user_rowid` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_job_user`
--

INSERT INTO `llx_hrm_job_user` (`rowid`, `description`, `date_creation`, `tms`, `fk_contrat`, `fk_user`, `fk_job`, `date_start`, `date_end`, `abort_comment`, `note_public`, `note_private`, `fk_user_creat`, `fk_user_modif`) VALUES (1,'','2023-01-05 09:51:12','2023-01-05 12:51:12',NULL,12,1,'2023-01-05','2023-01-05',NULL,NULL,NULL,12,NULL);

--
-- Table structure for table `llx_hrm_skill`
--

CREATE TABLE `llx_hrm_skill` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `required_level` int(11) NOT NULL,
  `date_validite` int(11) NOT NULL,
  `temps_theorique` double(24,8) NOT NULL,
  `skill_type` int(11) NOT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_hrm_skill_rowid` (`rowid`),
  KEY `llx_hrm_skill_fk_user_creat` (`fk_user_creat`),
  KEY `idx_hrm_skill_skill_type` (`skill_type`),
  CONSTRAINT `llx_hrm_skill_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_skill`
--

INSERT INTO `llx_hrm_skill` (`rowid`, `label`, `description`, `date_creation`, `tms`, `fk_user_creat`, `fk_user_modif`, `required_level`, `date_validite`, `temps_theorique`, `skill_type`, `note_public`, `note_private`) VALUES (1,'dd','','2023-01-05 09:34:31','2023-01-05 12:34:31',12,NULL,0,0,0.00000000,0,NULL,NULL);

--
-- Table structure for table `llx_hrm_skill_extrafields`
--

CREATE TABLE `llx_hrm_skill_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_skill_fk_object` (`fk_object`),
  KEY `idx_skill_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_skill_extrafields`
--


--
-- Table structure for table `llx_hrm_skilldet`
--

CREATE TABLE `llx_hrm_skilldet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `description` text DEFAULT NULL,
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_skill` int(11) NOT NULL,
  `rankorder` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_hrm_skilldet_rowid` (`rowid`),
  KEY `llx_hrm_skilldet_fk_user_creat` (`fk_user_creat`),
  KEY `llx_hrm_skilldet_fk_skill` (`fk_skill`),
  CONSTRAINT `llx_hrm_skilldet_fk_skill` FOREIGN KEY (`fk_skill`) REFERENCES `llx_hrm_skill` (`rowid`),
  CONSTRAINT `llx_hrm_skilldet_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_skilldet`
--

INSERT INTO `llx_hrm_skilldet` (`rowid`, `description`, `fk_user_creat`, `fk_user_modif`, `fk_skill`, `rankorder`) VALUES (1,'No description 1',12,NULL,1,1),(2,'No description 2',12,NULL,1,2),(3,'No description 3',12,NULL,1,3);

--
-- Table structure for table `llx_hrm_skillrank`
--

CREATE TABLE `llx_hrm_skillrank` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_skill` int(11) NOT NULL,
  `rankorder` int(11) NOT NULL,
  `fk_object` int(11) NOT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `objecttype` varchar(128) NOT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_hrm_skillrank_rowid` (`rowid`),
  KEY `idx_hrm_skillrank_fk_skill` (`fk_skill`),
  KEY `llx_hrm_skillrank_fk_user_creat` (`fk_user_creat`),
  CONSTRAINT `llx_hrm_skillrank_fk_skill` FOREIGN KEY (`fk_skill`) REFERENCES `llx_hrm_skill` (`rowid`),
  CONSTRAINT `llx_hrm_skillrank_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_skillrank`
--

INSERT INTO `llx_hrm_skillrank` (`rowid`, `fk_skill`, `rankorder`, `fk_object`, `date_creation`, `tms`, `fk_user_creat`, `fk_user_modif`, `objecttype`) VALUES (1,1,2,1,'2023-01-05 09:45:09','2023-01-05 12:45:09',12,12,'job');

--
-- 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(64) DEFAULT NULL,
  `field` text NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_import_model` (`label`,`type`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_import_model` (`rowid`, `fk_user`, `label`, `type`, `field`, `entity`) VALUES (1,12,'Import profile 1','user_1','1=u.login,2=u.lastname,3=u.firstname,4=u.employee,5=u.job,6=u.gender,7=u.accountancy_code,8=u.pass_crypted,9=u.admin,10=u.fk_soc,11=u.address,12=u.zip,13=u.town,14=u.fk_state,15=u.fk_country,16=u.office_phone,17=u.user_mobile,18=u.office_fax,19=u.email,20=u.note,21=u.signature,22=u.fk_user,23=u.thm,24=u.tjm,25=u.weeklyhours,26=u.dateemployment,27=u.salary,28=u.color,29=u.api_key,30=u.birth,31=u.datec,32=u.statut',0),(3,0,'Import profile 2','user_1','1=u.login,2=u.lastname,3=u.firstname,4=u.employee,5=u.job,6=u.gender,7=u.accountancy_code,8=u.pass_crypted,9=u.admin,10=u.fk_soc,11=u.address,12=u.zip,13=u.town,14=u.fk_state,15=u.fk_country,16=u.office_phone,17=u.user_mobile,18=u.office_fax,19=u.email,20=u.note,21=u.signature,22=u.fk_user,23=u.thm,24=u.tjm,25=u.weeklyhours,26=u.dateemployment,27=u.salary,28=u.color,29=u.api_key,30=u.birth,31=u.datec,32=u.statut',0);

--
-- Table structure for table `llx_intracommreport`
--

CREATE TABLE `llx_intracommreport` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `type_declaration` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `periods` varchar(32) DEFAULT NULL,
  `mode` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `content_xml` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `type_export` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_intracommreport`
--


--
-- Table structure for table `llx_inventory`
--

CREATE TABLE `llx_inventory` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(64) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_warehouse` int(11) DEFAULT NULL,
  `date_inventory` date DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `date_validation` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `categories_product` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_inventory_ref` (`ref`,`entity`),
  KEY `idx_inventory_rowid` (`rowid`),
  KEY `idx_inventory_ref` (`ref`),
  KEY `idx_inventory_entity` (`entity`),
  KEY `idx_inventory_fk_warehouse` (`fk_warehouse`),
  KEY `idx_inventory_status` (`status`),
  KEY `idx_inventory_import_key` (`import_key`),
  KEY `idx_inventory_tms` (`tms`),
  KEY `idx_inventory_date_creation` (`date_creation`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_inventory`
--

INSERT INTO `llx_inventory` (`rowid`, `ref`, `entity`, `fk_warehouse`, `date_inventory`, `title`, `status`, `date_creation`, `date_validation`, `tms`, `fk_user_creat`, `fk_user_modif`, `fk_user_valid`, `import_key`, `fk_product`, `categories_product`) VALUES (1,'aaa',1,NULL,NULL,'aa aaa',0,'2020-01-10 01:41:10',NULL,'2020-01-09 21:41:10',12,12,NULL,NULL,4,NULL),(2,'test',1,1,NULL,'',1,'2024-12-12 12:18:52','2024-12-12 12:18:56','2024-12-12 12:18:56',12,NULL,12,NULL,NULL,'');

--
-- Table structure for table `llx_inventory_extrafields`
--

CREATE TABLE `llx_inventory_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_inventory_extrafields` (`fk_object`),
  KEY `idx_inventory_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_inventory_extrafields`
--


--
-- Table structure for table `llx_inventorydet`
--

CREATE TABLE `llx_inventorydet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_inventory` int(11) DEFAULT 0,
  `fk_warehouse` int(11) DEFAULT 0,
  `fk_product` int(11) DEFAULT 0,
  `batch` varchar(30) DEFAULT NULL,
  `qty_view` double DEFAULT NULL,
  `qty_stock` double DEFAULT NULL,
  `qty_regulated` double DEFAULT NULL,
  `fk_movement` int(11) DEFAULT NULL,
  `pmp_real` double DEFAULT NULL,
  `pmp_expected` double DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_inventorydet` (`fk_inventory`,`fk_warehouse`,`fk_product`,`batch`),
  KEY `idx_inventorydet_tms` (`tms`),
  KEY `idx_inventorydet_datec` (`datec`),
  KEY `idx_inventorydet_fk_inventory` (`fk_inventory`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_inventorydet`
--

INSERT INTO `llx_inventorydet` (`rowid`, `datec`, `tms`, `fk_inventory`, `fk_warehouse`, `fk_product`, `batch`, `qty_view`, `qty_stock`, `qty_regulated`, `fk_movement`, `pmp_real`, `pmp_expected`) VALUES (1,'2024-12-12 12:18:56','2024-12-12 12:18:56',2,1,1,'',NULL,2.8,NULL,NULL,NULL,NULL),(2,'2024-12-12 12:18:56','2024-12-12 12:18:56',2,1,2,'',NULL,-2,NULL,NULL,NULL,NULL),(3,'2024-12-12 12:18:56','2024-12-12 12:18:56',2,1,10,'',NULL,35,NULL,NULL,NULL,NULL),(4,'2024-12-12 12:18:56','2024-12-12 12:18:56',2,1,11,'',NULL,-1,NULL,NULL,NULL,NULL),(5,'2024-12-12 12:18:56','2024-12-12 12:18:56',2,1,25,'',NULL,15.6,NULL,NULL,NULL,NULL);

--
-- Table structure for table `llx_knowledgemanagement_knowledgerecord`
--

CREATE TABLE `llx_knowledgemanagement_knowledgerecord` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) NOT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `last_main_doc` varchar(255) DEFAULT NULL,
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `question` text NOT NULL,
  `answer` longtext DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `fk_ticket` int(11) DEFAULT NULL,
  `fk_c_ticket_category` int(11) DEFAULT NULL,
  `status` int(11) NOT NULL,
  `lang` varchar(6) DEFAULT NULL,
  `entity` int(11) DEFAULT 1,
  PRIMARY KEY (`rowid`),
  KEY `idx_knowledgemanagement_knowledgerecord_rowid` (`rowid`),
  KEY `idx_knowledgemanagement_knowledgerecord_ref` (`ref`),
  KEY `llx_knowledgemanagement_knowledgerecord_fk_user_creat` (`fk_user_creat`),
  KEY `idx_knowledgemanagement_knowledgerecord_status` (`status`),
  CONSTRAINT `llx_knowledgemanagement_knowledgerecord_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_knowledgemanagement_knowledgerecord`
--

INSERT INTO `llx_knowledgemanagement_knowledgerecord` (`rowid`, `ref`, `date_creation`, `tms`, `last_main_doc`, `fk_user_creat`, `fk_user_modif`, `fk_user_valid`, `import_key`, `model_pdf`, `question`, `answer`, `url`, `fk_ticket`, `fk_c_ticket_category`, `status`, `lang`, `entity`) VALUES (1,'(PROV1)','2022-02-07 13:40:53','2022-02-07 13:40:53',NULL,12,NULL,NULL,NULL,NULL,'This is a FAQ 1','And this is the solution of the FAQ 1',NULL,NULL,NULL,0,'en_US',1),(2,'KM2202-0001','2022-02-07 13:50:46','2022-02-07 13:50:49',NULL,12,NULL,12,NULL,NULL,'This is a FAQ 2','This is solution of FAQ 2',NULL,NULL,NULL,1,'',1),(3,'KM2302-0002','2023-02-22 11:06:47','2023-02-22 14:10:20',NULL,12,NULL,12,NULL,NULL,'ggdf','gfdgdfg',NULL,NULL,1,1,'',1);

--
-- Table structure for table `llx_knowledgemanagement_knowledgerecord_extrafields`
--

CREATE TABLE `llx_knowledgemanagement_knowledgerecord_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_knowledgerecord_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_knowledgemanagement_knowledgerecord_extrafields`
--


--
-- Table structure for table `llx_livraison_extrafields`
--

CREATE TABLE `llx_livraison_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_livraison_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `llx_livraison_extrafields`
--


--
-- Table structure for table `llx_livraisondet_extrafields`
--

CREATE TABLE `llx_livraisondet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_livraisondet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `llx_livraisondet_extrafields`
--


--
-- Table structure for table `llx_loan`
--

CREATE TABLE `llx_loan` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `label` varchar(80) NOT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `capital` double(24,8) DEFAULT NULL,
  `datestart` date DEFAULT NULL,
  `dateend` date DEFAULT NULL,
  `nbterm` double DEFAULT NULL,
  `rate` double NOT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `capital_position` double(24,8) DEFAULT NULL,
  `date_position` date DEFAULT NULL,
  `paid` smallint(6) NOT NULL DEFAULT 0,
  `accountancy_account_capital` varchar(32) DEFAULT NULL,
  `accountancy_account_insurance` varchar(32) DEFAULT NULL,
  `accountancy_account_interest` varchar(32) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `fk_projet` int(11) DEFAULT NULL,
  `insurance_amount` double(24,8) DEFAULT 0.00000000,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_loan`
--

INSERT INTO `llx_loan` (`rowid`, `entity`, `datec`, `tms`, `label`, `fk_bank`, `capital`, `datestart`, `dateend`, `nbterm`, `rate`, `note_private`, `note_public`, `capital_position`, `date_position`, `paid`, `accountancy_account_capital`, `accountancy_account_insurance`, `accountancy_account_interest`, `fk_user_author`, `fk_user_modif`, `active`, `fk_projet`, `insurance_amount`) VALUES (1,1,'2019-12-26 01:56:08','2019-12-25 21:56:08','aaaa',4,1000.00000000,'2019-12-25','2020-12-25',2,0.5,'','',NULL,NULL,0,'164','11','11',12,NULL,1,NULL,0.00000000),(2,1,'2019-12-26 01:58:27','2019-12-25 22:12:50','aaaa',4,1000.00000000,'2019-12-25','2020-12-25',2,0.5,'','',NULL,NULL,0,'164','11','11',12,NULL,1,4,0.00000000),(3,1,'2019-12-26 01:58:59','2023-02-16 10:59:23','aaaa',4,1000.00000000,'2019-12-25','2020-12-25',2,0.5,'','',NULL,NULL,2,'164','11','11',12,NULL,1,NULL,0.00000000);

--
-- Table structure for table `llx_loan_schedule`
--

CREATE TABLE `llx_loan_schedule` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_loan` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount_capital` double(24,8) DEFAULT NULL,
  `amount_insurance` double(24,8) DEFAULT NULL,
  `amount_interest` double(24,8) DEFAULT NULL,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_payment_loan` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_loan_schedule_ref` (`fk_loan`,`datep`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_loan_schedule`
--


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

CREATE TABLE `llx_localtax` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `localtaxtype` tinyint(4) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `amount` double NOT NULL DEFAULT 0,
  `label` varchar(255) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `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=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
