CREATE TABLE IF NOT EXISTS `llx_c_holiday_types` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(16) NOT NULL,
  `label` varchar(255) NOT NULL,
  `affect` int(11) NOT NULL,
  `delay` int(11) NOT NULL,
  `newbymonth` double(8,5) NOT NULL DEFAULT 0.00000,
  `fk_country` int(11) DEFAULT NULL,
  `active` int(11) DEFAULT 1,
  `sortorder` smallint(6) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_holiday_types` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_holiday_types : ~6 rows (environ)
INSERT INTO `llx_c_holiday_types` (`rowid`, `code`, `label`, `affect`, `delay`, `newbymonth`, `fk_country`, `active`, `sortorder`) VALUES
	(1, 'LEAVE_SICK', 'Sick leave', 0, 0, 0.00000, NULL, 1, NULL),
	(2, 'LEAVE_OTHER', 'Other leave', 0, 0, 0.00000, NULL, 1, NULL),
	(3, 'LEAVE_PAID', 'Paid vacation', 1, 7, 0.00000, NULL, 0, NULL),
	(4, 'LEAVE_RTT_FR', 'RTT', 1, 7, 0.83000, 1, 1, NULL),
	(5, 'LEAVE_PAID_FR', 'Paid vacation', 1, 30, 2.08334, 1, 1, NULL),
	(9, 'LEAVE_RTT', 'RTT', 1, 7, 0.83000, 1, 1, NULL);

-- Listage de la structure de table gestcom. llx_c_hrm_department
CREATE TABLE IF NOT EXISTS `llx_c_hrm_department` (
  `rowid` int(11) NOT NULL,
  `pos` tinyint(4) NOT NULL DEFAULT 0,
  `code` varchar(16) NOT NULL,
  `label` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_hrm_department : ~18 rows (environ)
INSERT INTO `llx_c_hrm_department` (`rowid`, `pos`, `code`, `label`, `active`) VALUES
	(1, 5, 'MANAGEMENT', 'Management', 1),
	(2, 10, 'GESTION', 'Gestion', 1),
	(3, 15, 'TRAINING', 'Training', 1),
	(4, 20, 'IT', 'Inform. Technology (IT)', 0),
	(5, 25, 'MARKETING', 'Marketing', 0),
	(6, 30, 'SALES', 'Sales', 1),
	(7, 35, 'LEGAL', 'Legal', 0),
	(8, 40, 'FINANCIAL', 'Financial accounting', 1),
	(9, 45, 'HUMANRES', 'Human resources', 1),
	(10, 50, 'PURCHASING', 'Purchasing', 1),
	(11, 55, 'SERVICES', 'Services', 1),
	(12, 60, 'CUSTOMSERV', 'Customer service', 0),
	(13, 65, 'CONSULTING', 'Consulting', 1),
	(14, 70, 'LOGISTIC', 'Logistics', 1),
	(15, 75, 'CONSTRUCT', 'Engineering/design', 0),
	(16, 80, 'PRODUCTION', 'Production', 1),
	(17, 85, 'QUALITY', 'Quality assurance', 0),
	(18, 85, 'MAINT', 'Plant assurance', 1);

-- Listage de la structure de table gestcom. llx_c_hrm_function
CREATE TABLE IF NOT EXISTS `llx_c_hrm_function` (
  `rowid` int(11) NOT NULL,
  `pos` tinyint(4) NOT NULL DEFAULT 0,
  `code` varchar(16) NOT NULL,
  `label` varchar(128) DEFAULT NULL,
  `c_level` tinyint(4) NOT NULL DEFAULT 0,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_hrm_function : ~9 rows (environ)
INSERT INTO `llx_c_hrm_function` (`rowid`, `pos`, `code`, `label`, `c_level`, `active`) VALUES
	(1, 5, 'EXECBOARD', 'Executive board', 0, 1),
	(2, 10, 'MANAGDIR', 'Managing director', 1, 1),
	(3, 15, 'ACCOUNTMANAG', 'Account manager', 0, 1),
	(4, 20, 'ENGAGDIR', 'Engagement director', 1, 1),
	(5, 25, 'DIRECTOR', 'Director', 1, 1),
	(6, 30, 'PROJMANAG', 'Project manager', 0, 1),
	(7, 35, 'DEPHEAD', 'Department head', 0, 1),
	(8, 40, 'SECRETAR', 'Secretary', 0, 1),
	(9, 45, 'EMPLOYEE', 'Department employee', 0, 1);

-- Listage de la structure de table gestcom. llx_c_hrm_public_holiday
CREATE TABLE IF NOT EXISTS `llx_c_hrm_public_holiday` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 0,
  `fk_country` int(11) DEFAULT NULL,
  `code` varchar(62) DEFAULT NULL,
  `dayrule` varchar(64) DEFAULT '',
  `day` int(11) DEFAULT NULL,
  `month` int(11) DEFAULT NULL,
  `year` int(11) DEFAULT NULL,
  `active` int(11) DEFAULT 1,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_c_hrm_public_holiday` (`entity`,`code`),
  UNIQUE KEY `uk_c_hrm_public_holiday2` (`entity`,`fk_country`,`dayrule`,`day`,`month`,`year`)
) ENGINE=InnoDB AUTO_INCREMENT=112 DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_c_hrm_public_holiday : ~37 rows (environ)
INSERT INTO `llx_c_hrm_public_holiday` (`id`, `entity`, `fk_country`, `code`, `dayrule`, `day`, `month`, `year`, `active`, `import_key`) VALUES
	(1, 0, 0, 'NEWYEARDAY1', '', 1, 1, 0, 1, NULL),
	(2, 0, 0, 'LABORDAY1', '', 1, 5, 0, 1, NULL),
	(3, 0, 0, 'ASSOMPTIONDAY1', '', 15, 8, 0, 1, NULL),
	(4, 0, 0, 'CHRISTMASDAY1', '', 25, 12, 0, 1, NULL),
	(5, 0, 1, 'FR-VICTORYDAY', '', 8, 5, 0, 1, NULL),
	(6, 0, 1, 'FR-NATIONALDAY', '', 14, 7, 0, 1, NULL),
	(7, 0, 1, 'FR-ASSOMPTION', '', 15, 8, 0, 1, NULL),
	(8, 0, 1, 'FR-TOUSSAINT', '', 1, 11, 0, 1, NULL),
	(9, 0, 1, 'FR-ARMISTICE', '', 11, 11, 0, 1, NULL),
	(10, 0, 1, 'FR-EASTER', 'eastermonday', 0, 0, 0, 1, NULL),
	(11, 0, 1, 'FR-ASCENSION', 'ascension', 0, 0, 0, 1, NULL),
	(12, 0, 1, 'FR-PENTECOST', 'pentecost', 0, 0, 0, 1, NULL),
	(13, 0, 3, 'IT-LIBEAZIONE', '', 25, 4, 0, 1, NULL),
	(14, 0, 3, 'IT-EPIPHANY', '', 1, 6, 0, 1, NULL),
	(15, 0, 3, 'IT-REPUBBLICA', '', 2, 6, 0, 1, NULL),
	(16, 0, 3, 'IT-TUTTISANTIT', '', 1, 11, 0, 1, NULL),
	(17, 0, 3, 'IT-IMMACULE', '', 8, 12, 0, 1, NULL),
	(18, 0, 3, 'IT-SAINTSTEFAN', '', 26, 12, 0, 1, NULL),
	(19, 0, 4, 'ES-EASTER', 'easter', 0, 0, 0, 1, NULL),
	(20, 0, 4, 'ES-REYE', '', 1, 6, 0, 1, NULL),
	(21, 0, 4, 'ES-HISPANIDAD', '', 12, 10, 0, 1, NULL),
	(22, 0, 4, 'ES-TOUSSAINT', '', 1, 11, 0, 1, NULL),
	(23, 0, 4, 'ES-CONSTITUIZION', '', 6, 12, 0, 1, NULL),
	(24, 0, 4, 'ES-IMMACULE', '', 8, 12, 0, 1, NULL),
	(25, 0, 41, 'AT-EASTER', 'eastermonday', 0, 0, 0, 1, NULL),
	(26, 0, 41, 'AT-ASCENSION', 'ascension', 0, 0, 0, 1, NULL),
	(27, 0, 41, 'AT-PENTECOST', 'pentecost', 0, 0, 0, 1, NULL),
	(28, 0, 41, 'AT-FRONLEICHNAM', 'fronleichnam', 0, 0, 0, 1, NULL),
	(29, 0, 41, 'AT-KONEGIE', '', 1, 6, 0, 1, NULL),
	(30, 0, 41, 'AT-26OKT', '', 26, 10, 0, 1, NULL),
	(31, 0, 41, 'AT-TOUSSAINT', '', 1, 11, 0, 1, NULL),
	(32, 0, 41, 'AT-IMMACULE', '', 8, 12, 0, 1, NULL),
	(33, 0, 41, 'AT-24DEC', '', 24, 12, 0, 1, NULL),
	(34, 0, 41, 'AT-SAINTSTEFAN', '', 26, 12, 0, 1, NULL),
	(35, 0, 41, 'AT-Silvester', '', 31, 12, 0, 1, NULL),
	(36, 0, 117, 'IN-REPUBLICDAY', '', 26, 1, 0, 1, NULL),
	(37, 0, 117, 'IN-GANDI', '', 2, 10, 0, 1, NULL);

-- Listage de la structure de table gestcom. llx_c_incoterms
CREATE TABLE IF NOT EXISTS `llx_c_incoterms` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(3) NOT NULL,
  `libelle` varchar(255) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `label` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_incoterms` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8;

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

-- Listage de la structure de table gestcom. llx_c_input_method
CREATE TABLE IF NOT EXISTS `llx_c_input_method` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(30) DEFAULT NULL,
  `libelle` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `module` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_input_method` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_input_method : ~5 rows (environ)
INSERT INTO `llx_c_input_method` (`rowid`, `code`, `libelle`, `active`, `module`) VALUES
	(1, 'OrderByMail', 'Courrier', 1, NULL),
	(2, 'OrderByFax', 'Fax', 1, NULL),
	(3, 'OrderByEMail', 'EMail', 1, NULL),
	(4, 'OrderByPhone', 'Téléphone', 1, NULL),
	(5, 'OrderByWWW', 'En ligne', 1, NULL);

-- Listage de la structure de table gestcom. llx_c_input_reason
CREATE TABLE IF NOT EXISTS `llx_c_input_reason` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(30) DEFAULT NULL,
  `label` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `module` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_input_reason` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_input_reason : ~12 rows (environ)
INSERT INTO `llx_c_input_reason` (`rowid`, `code`, `label`, `active`, `module`) VALUES
	(1, 'SRC_INTE', 'Web site', 1, NULL),
	(2, 'SRC_CAMP_MAIL', 'Mailing campaign', 1, NULL),
	(3, 'SRC_CAMP_PHO', 'Phone campaign', 1, NULL),
	(4, 'SRC_CAMP_FAX', 'Fax campaign', 1, NULL),
	(5, 'SRC_COMM', 'Commercial contact', 1, NULL),
	(6, 'SRC_SHOP', 'Shop contact', 1, NULL),
	(7, 'SRC_CAMP_EMAIL', 'EMailing campaign', 1, NULL),
	(8, 'SRC_WOM', 'Word of mouth', 1, NULL),
	(9, 'SRC_PARTNER', 'Partner', 1, NULL),
	(10, 'SRC_EMPLOYEE', 'Employee', 1, NULL),
	(11, 'SRC_SPONSORING', 'Sponsorship', 1, NULL),
	(12, 'SRC_CUSTOMER', 'Incoming contact of a customer', 1, NULL);

-- Listage de la structure de table gestcom. llx_c_lead_status
CREATE TABLE IF NOT EXISTS `llx_c_lead_status` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(10) DEFAULT NULL,
  `label` varchar(128) DEFAULT NULL,
  `position` int(11) DEFAULT NULL,
  `percent` double(5,2) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_lead_status_code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_lead_status : ~7 rows (environ)
INSERT INTO `llx_c_lead_status` (`rowid`, `code`, `label`, `position`, `percent`, `active`) VALUES
	(1, 'PROSP', 'Prospection', 10, 0.00, 1),
	(2, 'QUAL', 'Qualification', 20, 20.00, 1),
	(3, 'PROPO', 'Proposal', 30, 40.00, 1),
	(4, 'NEGO', 'Negotiation', 40, 60.00, 1),
	(5, 'PENDING', 'Pending', 50, 50.00, 0),
	(6, 'WON', 'Won', 60, 100.00, 1),
	(7, 'LOST', 'Lost', 70, 0.00, 1);

-- Listage de la structure de table gestcom. llx_c_paiement
CREATE TABLE IF NOT EXISTS `llx_c_paiement` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `code` varchar(6) NOT NULL,
  `libelle` varchar(128) DEFAULT NULL,
  `type` smallint(6) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `accountancy_code` varchar(32) DEFAULT NULL,
  `module` varchar(32) DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_c_paiement_code` (`entity`,`code`),
  UNIQUE KEY `uk_c_paiement` (`id`,`entity`,`code`)
) ENGINE=InnoDB AUTO_INCREMENT=105 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_paiement : ~15 rows (environ)
INSERT INTO `llx_c_paiement` (`id`, `entity`, `code`, `libelle`, `type`, `active`, `accountancy_code`, `module`, `position`) VALUES
	(1, 1, 'TIP', 'TIP', 2, 0, NULL, NULL, 0),
	(2, 1, 'VIR', 'Transfer', 2, 1, NULL, NULL, 0),
	(3, 1, 'PRE', 'Debit order', 2, 1, NULL, NULL, 0),
	(4, 1, 'LIQ', 'Cash', 2, 1, NULL, NULL, 0),
	(6, 1, 'CB', 'Credit card', 2, 1, NULL, NULL, 0),
	(7, 1, 'CHQ', 'Cheque', 2, 1, NULL, NULL, 0),
	(50, 1, 'VAD', 'Online payment', 2, 0, NULL, NULL, 0),
	(51, 1, 'TRA', 'Traite', 2, 0, NULL, NULL, 0),
	(52, 1, 'LCR', 'LCR', 2, 0, NULL, NULL, 0),
	(53, 1, 'FAC', 'Factor', 2, 0, NULL, NULL, 0),
	(100, 1, 'KLA', 'Klarna', 1, 0, NULL, NULL, 0),
	(101, 1, 'SOF', 'Sofort', 1, 0, NULL, NULL, 0),
	(102, 1, 'BAN', 'Bancontact', 1, 0, NULL, NULL, 0),
	(103, 1, 'IDE', 'iDeal', 1, 0, NULL, NULL, 0),
	(104, 1, 'GIR', 'Giropay', 1, 0, NULL, NULL, 0);

-- Listage de la structure de table gestcom. llx_c_paiement_temp
CREATE TABLE IF NOT EXISTS `llx_c_paiement_temp` (
  `id` int(11) NOT NULL DEFAULT 0,
  `entity` int(11) NOT NULL DEFAULT 1,
  `code` varchar(6) CHARACTER SET utf8 NOT NULL,
  `libelle` varchar(62) CHARACTER SET utf8 DEFAULT NULL,
  `type` smallint(6) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `accountancy_code` varchar(32) CHARACTER SET utf8 DEFAULT NULL,
  `module` varchar(32) CHARACTER SET utf8 DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_c_paiement_temp : 10 rows
INSERT INTO `llx_c_paiement_temp` (`id`, `entity`, `code`, `libelle`, `type`, `active`, `accountancy_code`, `module`, `position`) VALUES
	(1, 1, 'TIP', 'TIP', 2, 0, NULL, NULL, 0),
	(2, 1, 'VIR', 'Transfer', 2, 1, NULL, NULL, 0),
	(3, 1, 'PRE', 'Debit order', 2, 1, NULL, NULL, 0),
	(4, 1, 'LIQ', 'Cash', 2, 1, NULL, NULL, 0),
	(6, 1, 'CB', 'Credit card', 2, 1, NULL, NULL, 0),
	(7, 1, 'CHQ', 'Cheque', 2, 1, NULL, NULL, 0),
	(50, 1, 'VAD', 'Online payment', 2, 0, NULL, NULL, 0),
	(51, 1, 'TRA', 'Traite', 2, 0, NULL, NULL, 0),
	(52, 1, 'LCR', 'LCR', 2, 0, NULL, NULL, 0),
	(53, 1, 'FAC', 'Factor', 2, 0, NULL, NULL, 0);

-- Listage de la structure de table gestcom. llx_c_paper_format
CREATE TABLE IF NOT EXISTS `llx_c_paper_format` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(16) NOT NULL,
  `label` varchar(128) DEFAULT NULL,
  `width` float(6,2) DEFAULT 0.00,
  `height` float(6,2) DEFAULT 0.00,
  `unit` varchar(5) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `module` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=226 DEFAULT CHARSET=utf8;

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

-- Listage de la structure de table gestcom. llx_c_partnership_type
CREATE TABLE IF NOT EXISTS `llx_c_partnership_type` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `code` varchar(32) NOT NULL,
  `label` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `keyword` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_partnership_type` (`entity`,`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_c_partnership_type : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_c_payment_term
CREATE TABLE IF NOT EXISTS `llx_c_payment_term` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `code` varchar(16) DEFAULT NULL,
  `sortorder` smallint(6) DEFAULT NULL,
  `active` tinyint(4) DEFAULT 1,
  `libelle` varchar(255) DEFAULT NULL,
  `libelle_facture` text DEFAULT NULL,
  `type_cdr` tinyint(4) DEFAULT NULL,
  `nbjour` smallint(6) DEFAULT NULL,
  `decalage` smallint(6) DEFAULT NULL,
  `deposit_percent` varchar(63) DEFAULT NULL,
  `module` varchar(32) DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_payment_term_code` (`entity`,`code`),
  UNIQUE KEY `uk_c_payment_term` (`rowid`,`entity`,`code`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_payment_term : ~13 rows (environ)
INSERT INTO `llx_c_payment_term` (`rowid`, `entity`, `code`, `sortorder`, `active`, `libelle`, `libelle_facture`, `type_cdr`, `nbjour`, `decalage`, `deposit_percent`, `module`, `position`) VALUES
	(1, 1, 'RECEP', 1, 1, 'Due upon receipt', 'Due upon receipt', 0, 1, NULL, NULL, NULL, 0),
	(2, 1, '30D', 2, 1, '30 days', 'Due in 30 days', 0, 30, NULL, NULL, NULL, 0),
	(3, 1, '30DENDMONTH', 3, 1, '30 days end of month', 'Due in 30 days, end of month', 1, 30, NULL, NULL, NULL, 0),
	(4, 1, '60D', 4, 1, '60 days', 'Due in 60 days, end of month', 0, 60, NULL, NULL, NULL, 0),
	(5, 1, '60DENDMONTH', 5, 1, '60 days end of month', 'Due in 60 days, end of month', 1, 60, NULL, NULL, NULL, 0),
	(6, 1, 'PT_ORDER', 6, 1, 'Due on order', 'Due on order', 0, 1, NULL, NULL, NULL, 0),
	(7, 1, 'PT_DELIVERY', 7, 1, 'Due on delivery', 'Due on delivery', 0, 1, NULL, NULL, NULL, 0),
	(8, 1, 'PT_5050', 8, 1, '50 and 50', '50% on order, 50% on delivery', 0, 1, NULL, NULL, NULL, 0),
	(9, 1, '10D', 9, 1, '10 days', 'Due in 10 days', 0, 10, NULL, NULL, NULL, 0),
	(10, 1, '10DENDMONTH', 10, 1, '10 days end of month', 'Due in 10 days, end of month', 1, 10, NULL, NULL, NULL, 0),
	(11, 1, '14D', 11, 1, '14 days', 'Due in 14 days', 0, 14, NULL, NULL, NULL, 0),
	(12, 1, '14DENDMONTH', 12, 1, '14 days end of month', 'Due in 14 days, end of month', 1, 14, NULL, NULL, NULL, 0),
	(13, 1, 'DEP30PCTDEL', 13, 0, '__DEPOSIT_PERCENT__% deposit', '__DEPOSIT_PERCENT__% deposit, remainder on delivery', 0, 1, NULL, '30', NULL, 0);

-- Listage de la structure de table gestcom. llx_c_placeroom_type
CREATE TABLE IF NOT EXISTS `llx_c_placeroom_type` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(32) NOT NULL,
  `pos` varchar(32) NOT NULL,
  `label` varchar(128) NOT NULL,
  `active` int(11) DEFAULT 1,
  `use_default` int(11) DEFAULT 1,
  `description` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_placeroom_type_code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_c_placeroom_type : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_c_price_expression
CREATE TABLE IF NOT EXISTS `llx_c_price_expression` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(20) NOT NULL,
  `expression` varchar(255) NOT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_price_expression : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_c_price_global_variable
CREATE TABLE IF NOT EXISTS `llx_c_price_global_variable` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(20) NOT NULL,
  `description` text DEFAULT NULL,
  `value` double(24,8) DEFAULT 0.00000000,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_price_global_variable : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_c_price_global_variable_updater
CREATE TABLE IF NOT EXISTS `llx_c_price_global_variable_updater` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `type` int(11) NOT NULL,
  `description` text DEFAULT NULL,
  `parameters` text DEFAULT NULL,
  `fk_variable` int(11) NOT NULL,
  `update_interval` int(11) DEFAULT 0,
  `next_update` int(11) DEFAULT 0,
  `last_status` text DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_price_global_variable_updater : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_c_productbatch_qcstatus
CREATE TABLE IF NOT EXISTS `llx_c_productbatch_qcstatus` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `code` varchar(16) NOT NULL,
  `label` varchar(128) DEFAULT NULL,
  `active` int(11) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_productbatch_qcstatus` (`code`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_c_productbatch_qcstatus : ~2 rows (environ)
INSERT INTO `llx_c_productbatch_qcstatus` (`rowid`, `entity`, `code`, `label`, `active`) VALUES
	(1, 1, 'OK', 'InWorkingOrder', 1),
	(2, 1, 'KO', 'OutOfOrder', 1);

-- Listage de la structure de table gestcom. llx_c_product_nature
CREATE TABLE IF NOT EXISTS `llx_c_product_nature` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` tinyint(4) NOT NULL,
  `label` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_product_nature` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_c_product_nature : ~2 rows (environ)
INSERT INTO `llx_c_product_nature` (`rowid`, `code`, `label`, `active`) VALUES
	(1, 0, 'RowMaterial', 1),
	(2, 1, 'Finished', 1);

-- Listage de la structure de table gestcom. llx_c_propalst
CREATE TABLE IF NOT EXISTS `llx_c_propalst` (
  `id` smallint(6) NOT NULL,
  `code` varchar(12) NOT NULL,
  `label` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_c_propalst` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_propalst : ~5 rows (environ)
INSERT INTO `llx_c_propalst` (`id`, `code`, `label`, `active`) VALUES
	(0, 'PR_DRAFT', 'Brouillon', 1),
	(1, 'PR_OPEN', 'Ouverte', 1),
	(2, 'PR_SIGNED', 'Signée', 1),
	(3, 'PR_NOTSIGNED', 'Non Signée', 1),
	(4, 'PR_FAC', 'Facturée', 1);

-- Listage de la structure de table gestcom. llx_c_prospectcontactlevel
CREATE TABLE IF NOT EXISTS `llx_c_prospectcontactlevel` (
  `code` varchar(12) NOT NULL,
  `label` varchar(128) DEFAULT NULL,
  `sortorder` smallint(6) DEFAULT NULL,
  `active` smallint(6) NOT NULL DEFAULT 1,
  `module` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_c_prospectcontactlevel : ~4 rows (environ)
INSERT INTO `llx_c_prospectcontactlevel` (`code`, `label`, `sortorder`, `active`, `module`) VALUES
	('PL_HIGH', 'High', 4, 1, NULL),
	('PL_LOW', 'Low', 2, 1, NULL),
	('PL_MEDIUM', 'Medium', 3, 1, NULL),
	('PL_NONE', 'None', 1, 1, NULL);

-- Listage de la structure de table gestcom. llx_c_prospectlevel
CREATE TABLE IF NOT EXISTS `llx_c_prospectlevel` (
  `code` varchar(12) NOT NULL,
  `label` varchar(128) DEFAULT NULL,
  `sortorder` smallint(6) DEFAULT NULL,
  `active` smallint(6) NOT NULL DEFAULT 1,
  `module` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_prospectlevel : ~4 rows (environ)
INSERT INTO `llx_c_prospectlevel` (`code`, `label`, `sortorder`, `active`, `module`) VALUES
	('PL_HIGH', 'High', 4, 1, NULL),
	('PL_LOW', 'Low', 2, 1, NULL),
	('PL_MEDIUM', 'Medium', 3, 1, NULL),
	('PL_NONE', 'None', 1, 1, NULL);

-- Listage de la structure de table gestcom. llx_c_recruitment_origin
CREATE TABLE IF NOT EXISTS `llx_c_recruitment_origin` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(32) NOT NULL,
  `label` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_c_recruitment_origin : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_c_regions
CREATE TABLE IF NOT EXISTS `llx_c_regions` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code_region` int(11) NOT NULL,
  `fk_pays` int(11) NOT NULL,
  `cheflieu` varchar(50) DEFAULT NULL,
  `tncc` int(11) DEFAULT NULL,
  `nom` varchar(100) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_code_region` (`code_region`),
  KEY `idx_c_regions_fk_pays` (`fk_pays`),
  CONSTRAINT `fk_c_regions_fk_pays` FOREIGN KEY (`fk_pays`) REFERENCES `llx_c_country` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=23210 DEFAULT CHARSET=utf8;

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

-- Listage de la structure de table gestcom. llx_c_revenuestamp
CREATE TABLE IF NOT EXISTS `llx_c_revenuestamp` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_pays` int(11) NOT NULL,
  `taux` double NOT NULL,
  `revenuestamp_type` varchar(16) NOT NULL DEFAULT 'fixed',
  `note` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `accountancy_code_sell` varchar(32) DEFAULT NULL,
  `accountancy_code_buy` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=1543 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_revenuestamp : ~3 rows (environ)
INSERT INTO `llx_c_revenuestamp` (`rowid`, `fk_pays`, `taux`, `revenuestamp_type`, `note`, `active`, `accountancy_code_sell`, `accountancy_code_buy`) VALUES
	(101, 10, 0.4, 'fixed', 'Revenue stamp tunisia', 1, NULL, NULL),
	(1541, 154, 1.5, 'percent', 'Revenue stamp mexico', 1, NULL, NULL),
	(1542, 154, 3, 'percent', 'Revenue stamp mexico', 1, NULL, NULL);

-- Listage de la structure de table gestcom. llx_c_shipment_mode
CREATE TABLE IF NOT EXISTS `llx_c_shipment_mode` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `code` varchar(30) NOT NULL,
  `libelle` varchar(128) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `tracking` varchar(255) DEFAULT NULL,
  `active` tinyint(4) DEFAULT 0,
  `module` varchar(32) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_shipment_mode` (`code`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_shipment_mode : ~8 rows (environ)
INSERT INTO `llx_c_shipment_mode` (`rowid`, `tms`, `code`, `libelle`, `description`, `tracking`, `active`, `module`, `entity`) VALUES
	(1, '2019-03-28 23:11:49', 'CATCH', 'At-Store Reclamation', 'At-Store Reclamation by the customer', '', 1, NULL, 1),
	(2, '2019-03-28 23:11:49', 'TRANS', 'Generic transporter', 'Generic transporter', '', 1, NULL, 1),
	(3, '2019-03-28 23:11:49', 'COLSUI', 'Colissimo Suivi', 'Colissimo Suivi', 'http://www.colissimo.fr/portail_colissimo/suivre.do?colispart={TRACKID}', 0, NULL, 1),
	(4, '2019-03-28 23:11:49', 'LETTREMAX', 'Lettre Max', 'Courrier Suivi et Lettre Max', '', 0, NULL, 1),
	(5, '2019-03-28 23:11:49', 'UPS', 'UPS', 'United Parcel Service', 'http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber2=&InquiryNumber3=&tracknums_displayed=3&loc=fr_FR&TypeOfInquiryNumber=T&HTMLVersion=4.0&InquiryNumber22=&InquiryNumber32=&track=Track&Suivi.x=64&Suivi.y=7&Suivi=Valider&InquiryNumber1={TRACKID}', 0, NULL, 1),
	(6, '2019-03-28 23:11:49', 'KIALA', 'KIALA', 'Relais Kiala', 'http://www.kiala.fr/tnt/delivery/{TRACKID}', 0, NULL, 1),
	(7, '2019-03-28 23:11:49', 'GLS', 'GLS', 'General Logistics Systems', 'https://gls-group.eu/FR/fr/suivi-colis?match={TRACKID}', 0, NULL, 1),
	(8, '2019-03-28 23:11:49', 'CHRONO', 'Chronopost', 'Chronopost', 'http://www.chronopost.fr/expedier/inputLTNumbersNoJahia.do?listeNumeros={TRACKID}', 0, NULL, 1);

-- Listage de la structure de table gestcom. llx_c_shipment_package_type
CREATE TABLE IF NOT EXISTS `llx_c_shipment_package_type` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(128) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `active` int(11) NOT NULL DEFAULT 1,
  `entity` int(11) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_c_shipment_package_type : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_c_socialnetworks
CREATE TABLE IF NOT EXISTS `llx_c_socialnetworks` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `code` varchar(100) DEFAULT NULL,
  `label` varchar(150) DEFAULT NULL,
  `url` text DEFAULT NULL,
  `icon` varchar(20) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_c_socialnetworks_code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_c_socialnetworks : ~33 rows (environ)
INSERT INTO `llx_c_socialnetworks` (`rowid`, `entity`, `code`, `label`, `url`, `icon`, `active`) VALUES
	(1, 1, 'facebook', 'Facebook', 'https://www.facebook.com/{socialid}', 'fa-facebook', 1),
	(2, 1, 'skype', 'Skype', 'https://www.skype.com/{socialid}', 'fa-skype', 1),
	(3, 1, 'twitter', 'Twitter', 'https://www.twitter.com/{socialid}', 'fa-twitter', 1),
	(4, 1, 'linkedin', 'LinkedIn', 'https://www.linkedin.com/{socialid}', 'fa-linkedin', 1),
	(5, 1, 'instagram', 'Instagram', 'https://www.instagram.com/{socialid}', 'fa-instagram', 1),
	(6, 1, 'snapchat', 'Snapchat', '{socialid}', 'fa-snapchat', 1),
	(7, 1, 'googleplus', 'GooglePlus', 'https://www.googleplus.com/{socialid}', 'fa-google-plus-g', 1),
	(8, 1, 'youtube', 'Youtube', 'https://www.youtube.com/{socialid}', 'fa-youtube', 1),
	(9, 1, 'whatsapp', 'Whatsapp', '{socialid}', 'fa-whatsapp', 1),
	(10, 1, 'tumblr', 'Tumblr', 'https://www.tumblr.com/{socialid}', 'fa-tumblr', 0),
	(11, 1, 'vero', 'Vero', 'https://vero.co/{socialid}', '', 0),
	(12, 1, 'viadeo', 'Viadeo', 'https://fr.viadeo.com/fr/{socialid}', 'fa-viadeo', 0),
	(13, 1, 'slack', 'Slack', '{socialid}', 'fa-slack', 0),
	(14, 1, 'xing', 'Xing', '{socialid}', 'fa-xing', 0),
	(15, 1, 'meetup', 'Meetup', '{socialid}', 'fa-meetup', 0),
	(16, 1, 'pinterest', 'Pinterest', '{socialid}', 'fa-pinterest', 0),
	(17, 1, 'flickr', 'Flickr', '{socialid}', 'fa-flickr', 0),
	(18, 1, '500px', '500px', '{socialid}', 'fa-500px', 0),
	(19, 1, 'giphy', 'Giphy', '{socialid}', '', 0),
	(20, 1, 'gifycat', 'Gificat', '{socialid}', '', 0),
	(21, 1, 'dailymotion', 'Dailymotion', '{socialid}', '', 0),
	(22, 1, 'vimeo', 'Vimeo', '{socialid}', '', 0),
	(23, 1, 'periscope', 'Periscope', '{socialid}', '', 0),
	(24, 1, 'twitch', 'Twitch', '{socialid}', '', 0),
	(25, 1, 'discord', 'Discord', '{socialid}', 'fa-discord', 0),
	(26, 1, 'wikipedia', 'Wikipedia', '{socialid}', '', 0),
	(27, 1, 'reddit', 'Reddit', '{socialid}', 'fa-reddit', 0),
	(28, 1, 'quora', 'Quora', '{socialid}', '', 0),
	(29, 1, 'tripadvisor', 'Tripadvisor', '{socialid}', '', 0),
	(30, 1, 'mastodon', 'Mastodon', '{socialid}', '', 0),
	(31, 1, 'diaspora', 'Diaspora', '{socialid}', '', 0),
	(32, 1, 'viber', 'Viber', '{socialid}', '', 0),
	(97, 1, 'github', 'Github', 'https://github.com/{socialid}', 'fa-github', 1);

-- Listage de la structure de table gestcom. llx_c_stcomm
CREATE TABLE IF NOT EXISTS `llx_c_stcomm` (
  `id` int(11) NOT NULL,
  `code` varchar(24) NOT NULL,
  `libelle` varchar(128) DEFAULT NULL,
  `picto` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_c_stcomm` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_stcomm : ~5 rows (environ)
INSERT INTO `llx_c_stcomm` (`id`, `code`, `libelle`, `picto`, `active`) VALUES
	(-1, 'ST_NO', 'Do not contact', NULL, 1),
	(0, 'ST_NEVER', 'Never contacted', NULL, 1),
	(1, 'ST_TODO', 'To contact', NULL, 1),
	(2, 'ST_PEND', 'Contact in progress', NULL, 1),
	(3, 'ST_DONE', 'Contacted', NULL, 1);

-- Listage de la structure de table gestcom. llx_c_stcommcontact
CREATE TABLE IF NOT EXISTS `llx_c_stcommcontact` (
  `id` int(11) NOT NULL,
  `code` varchar(12) NOT NULL,
  `libelle` varchar(128) DEFAULT NULL,
  `picto` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_c_stcommcontact` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_c_stcommcontact : ~5 rows (environ)
INSERT INTO `llx_c_stcommcontact` (`id`, `code`, `libelle`, `picto`, `active`) VALUES
	(-1, 'ST_NO', 'Do not contact', NULL, 1),
	(0, 'ST_NEVER', 'Never contacted', NULL, 1),
	(1, 'ST_TODO', 'To contact', NULL, 1),
	(2, 'ST_PEND', 'Contact in progress', NULL, 1),
	(3, 'ST_DONE', 'Contacted', NULL, 1);

-- Listage de la structure de table gestcom. llx_c_ticket_category
CREATE TABLE IF NOT EXISTS `llx_c_ticket_category` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT 1,
  `code` varchar(32) NOT NULL,
  `pos` int(11) NOT NULL DEFAULT 0,
  `label` varchar(128) NOT NULL,
  `active` int(11) DEFAULT 1,
  `use_default` int(11) DEFAULT 1,
  `description` varchar(255) DEFAULT NULL,
  `fk_parent` int(11) NOT NULL DEFAULT 0,
  `force_severity` varchar(32) DEFAULT NULL,
  `public` int(11) DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_code` (`code`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_ticket_category : ~0 rows (environ)
INSERT INTO `llx_c_ticket_category` (`rowid`, `entity`, `code`, `pos`, `label`, `active`, `use_default`, `description`, `fk_parent`, `force_severity`, `public`) VALUES
	(1, 1, 'OTHER', 10, 'Other', 1, 1, NULL, 0, NULL, 0);

-- Listage de la structure de table gestcom. llx_c_ticket_resolution
CREATE TABLE IF NOT EXISTS `llx_c_ticket_resolution` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT 1,
  `code` varchar(32) NOT NULL,
  `pos` varchar(32) NOT NULL,
  `label` varchar(128) NOT NULL,
  `active` int(11) DEFAULT 1,
  `use_default` int(11) DEFAULT 1,
  `description` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_code` (`code`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_c_ticket_resolution : ~3 rows (environ)
INSERT INTO `llx_c_ticket_resolution` (`rowid`, `entity`, `code`, `pos`, `label`, `active`, `use_default`, `description`) VALUES
	(1, 1, 'SOLVED', '10', 'Solved', 1, 0, NULL),
	(2, 1, 'CANCELED', '50', 'Canceled', 1, 0, NULL),
	(3, 1, 'OTHER', '90', 'Other', 1, 0, NULL);

-- Listage de la structure de table gestcom. llx_c_ticket_severity
CREATE TABLE IF NOT EXISTS `llx_c_ticket_severity` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT 1,
  `code` varchar(32) NOT NULL,
  `pos` varchar(32) NOT NULL,
  `label` varchar(128) NOT NULL,
  `color` varchar(10) DEFAULT NULL,
  `active` int(11) DEFAULT 1,
  `use_default` int(11) DEFAULT 1,
  `description` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_code` (`code`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_ticket_severity : ~4 rows (environ)
INSERT INTO `llx_c_ticket_severity` (`rowid`, `entity`, `code`, `pos`, `label`, `color`, `active`, `use_default`, `description`) VALUES
	(1, 1, 'LOW', '10', 'Low', '', 1, 0, NULL),
	(2, 1, 'NORMAL', '20', 'Normal', '', 1, 1, NULL),
	(3, 1, 'HIGH', '30', 'High', '', 1, 0, NULL),
	(4, 1, 'BLOCKING', '40', 'Critical / blocking', '', 1, 0, NULL);

-- Listage de la structure de table gestcom. llx_c_ticket_type
CREATE TABLE IF NOT EXISTS `llx_c_ticket_type` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT 1,
  `code` varchar(32) NOT NULL,
  `pos` varchar(32) NOT NULL,
  `label` varchar(128) NOT NULL,
  `active` int(11) DEFAULT 1,
  `use_default` int(11) DEFAULT 1,
  `description` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_code` (`code`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_ticket_type : ~7 rows (environ)
INSERT INTO `llx_c_ticket_type` (`rowid`, `entity`, `code`, `pos`, `label`, `active`, `use_default`, `description`) VALUES
	(1, 1, 'COM', '10', 'Commercial question', 1, 1, NULL),
	(2, 1, 'ISSUE', '20', 'Issue or bug', 1, 0, NULL),
	(3, 1, 'REQUEST', '25', 'Change or enhancement request', 1, 0, NULL),
	(4, 1, 'PROJECT', '30', 'Project', 0, 0, NULL),
	(5, 1, 'OTHER', '40', 'Other', 1, 0, NULL),
	(6, 1, 'HELP', '15', 'Request for functionnal help', 1, 0, NULL),
	(14, 1, 'PROBLEM', '22', 'Problem', 0, 0, NULL);

-- Listage de la structure de table gestcom. llx_c_transport_mode
CREATE TABLE IF NOT EXISTS `llx_c_transport_mode` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `code` varchar(3) NOT NULL,
  `label` varchar(255) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_transport_mode` (`code`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_c_transport_mode : ~8 rows (environ)
INSERT INTO `llx_c_transport_mode` (`rowid`, `entity`, `code`, `label`, `active`) VALUES
	(1, 1, 'MAR', 'Transport maritime (y compris camions ou wagons sur bateau)', 1),
	(2, 1, 'TRA', 'Transport par chemin de fer (y compris camions sur wagon)', 1),
	(3, 1, 'ROU', 'Transport par route', 1),
	(4, 1, 'AIR', 'Transport par air', 1),
	(5, 1, 'POS', 'Envois postaux', 1),
	(6, 1, 'OLE', 'Installations de transport fixe (oléoduc)', 1),
	(7, 1, 'NAV', 'Transport par navigation intérieure', 1),
	(8, 1, 'PRO', 'Propulsion propre', 1);

-- Listage de la structure de table gestcom. llx_c_tva
CREATE TABLE IF NOT EXISTS `llx_c_tva` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_pays` int(11) NOT NULL,
  `code` varchar(10) DEFAULT '',
  `taux` double NOT NULL,
  `localtax1` varchar(20) DEFAULT NULL,
  `localtax1_type` varchar(1) DEFAULT NULL,
  `localtax2` varchar(20) DEFAULT NULL,
  `localtax2_type` varchar(1) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT 0,
  `note` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `accountancy_code_sell` varchar(32) DEFAULT NULL,
  `accountancy_code_buy` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_tva_id` (`fk_pays`,`code`,`taux`,`recuperableonly`)
) ENGINE=InnoDB AUTO_INCREMENT=2473 DEFAULT CHARSET=utf8;

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

-- Listage de la structure de table gestcom. llx_c_typent
CREATE TABLE IF NOT EXISTS `llx_c_typent` (
  `id` int(11) NOT NULL,
  `code` varchar(12) NOT NULL,
  `libelle` varchar(128) DEFAULT NULL,
  `fk_country` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `module` varchar(32) DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_c_typent` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_typent : ~12 rows (environ)
INSERT INTO `llx_c_typent` (`id`, `code`, `libelle`, `fk_country`, `active`, `module`, `position`) VALUES
	(1, 'TE_STARTUP', 'Start-up', NULL, 0, NULL, 0),
	(2, 'TE_GROUP', 'Grand groupe', NULL, 1, NULL, 0),
	(3, 'TE_MEDIUM', 'PME/PMI', NULL, 1, NULL, 0),
	(4, 'TE_SMALL', 'TPE', NULL, 1, NULL, 0),
	(5, 'TE_ADMIN', 'Administration', NULL, 1, NULL, 0),
	(6, 'TE_WHOLE', 'Grossiste', NULL, 0, NULL, 0),
	(7, 'TE_RETAIL', 'Revendeur', NULL, 0, NULL, 0),
	(8, 'TE_PRIVATE', 'Particulier', NULL, 1, NULL, 0),
	(100, 'TE_OTHER', 'Autres', NULL, 1, NULL, 0),
	(231, 'TE_A_RI', 'Responsable Inscripto (typo A)', 23, 0, NULL, 0),
	(232, 'TE_B_RNI', 'Responsable No Inscripto (typo B)', 23, 0, NULL, 0),
	(233, 'TE_C_FE', 'Consumidor Final/Exento (typo C)', 23, 0, NULL, 0);

-- Listage de la structure de table gestcom. llx_c_type_contact
CREATE TABLE IF NOT EXISTS `llx_c_type_contact` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `element` varchar(30) NOT NULL,
  `source` varchar(8) NOT NULL DEFAULT 'external',
  `code` varchar(32) NOT NULL,
  `libelle` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `module` varchar(32) DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_type_contact_id` (`element`,`source`,`code`)
) ENGINE=InnoDB AUTO_INCREMENT=216 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_type_contact : ~55 rows (environ)
INSERT INTO `llx_c_type_contact` (`rowid`, `element`, `source`, `code`, `libelle`, `active`, `module`, `position`) VALUES
	(10, 'contrat', 'internal', 'SALESREPSIGN', 'Commercial signataire du contrat', 1, NULL, 0),
	(11, 'contrat', 'internal', 'SALESREPFOLL', 'Commercial suivi du contrat', 1, NULL, 0),
	(20, 'contrat', 'external', 'BILLING', 'Contact client facturation contrat', 1, NULL, 0),
	(21, 'contrat', 'external', 'CUSTOMER', 'Contact client suivi contrat', 1, NULL, 0),
	(22, 'contrat', 'external', 'SALESREPSIGN', 'Contact client signataire contrat', 1, NULL, 0),
	(31, 'propal', 'internal', 'SALESREPFOLL', 'Commercial à l\'origine de la propale', 1, NULL, 0),
	(40, 'propal', 'external', 'BILLING', 'Contact client facturation propale', 1, NULL, 0),
	(41, 'propal', 'external', 'CUSTOMER', 'Contact client suivi propale', 1, NULL, 0),
	(42, 'propal', 'external', 'SHIPPING', 'Contact client livraison propale', 1, NULL, 0),
	(50, 'facture', 'internal', 'SALESREPFOLL', 'Responsable suivi du paiement', 1, NULL, 0),
	(60, 'facture', 'external', 'BILLING', 'Contact client facturation', 1, NULL, 0),
	(61, 'facture', 'external', 'SHIPPING', 'Contact client livraison', 1, NULL, 0),
	(62, 'facture', 'external', 'SERVICE', 'Contact client prestation', 1, NULL, 0),
	(70, 'invoice_supplier', 'internal', 'SALESREPFOLL', 'Responsable suivi du paiement', 1, NULL, 0),
	(71, 'invoice_supplier', 'external', 'BILLING', 'Contact fournisseur facturation', 1, NULL, 0),
	(72, 'invoice_supplier', 'external', 'SHIPPING', 'Contact fournisseur livraison', 1, NULL, 0),
	(73, 'invoice_supplier', 'external', 'SERVICE', 'Contact fournisseur prestation', 1, NULL, 0),
	(80, 'agenda', 'internal', 'ACTOR', 'Responsable', 1, NULL, 0),
	(81, 'agenda', 'internal', 'GUEST', 'Guest', 1, NULL, 0),
	(85, 'agenda', 'external', 'ACTOR', 'Responsable', 1, NULL, 0),
	(86, 'agenda', 'external', 'GUEST', 'Guest', 1, NULL, 0),
	(91, 'commande', 'internal', 'SALESREPFOLL', 'Responsable suivi de la commande', 1, NULL, 0),
	(100, 'commande', 'external', 'BILLING', 'Contact client facturation commande', 1, NULL, 0),
	(101, 'commande', 'external', 'CUSTOMER', 'Contact client suivi commande', 1, NULL, 0),
	(102, 'commande', 'external', 'SHIPPING', 'Contact client livraison commande', 1, NULL, 0),
	(110, 'supplier_proposal', 'internal', 'SALESREPFOLL', 'Responsable suivi de la demande', 1, NULL, 0),
	(111, 'supplier_proposal', 'external', 'BILLING', 'Contact fournisseur facturation', 1, NULL, 0),
	(112, 'supplier_proposal', 'external', 'SHIPPING', 'Contact fournisseur livraison', 1, NULL, 0),
	(113, 'supplier_proposal', 'external', 'SERVICE', 'Contact fournisseur prestation', 1, NULL, 0),
	(120, 'fichinter', 'internal', 'INTERREPFOLL', 'Responsable suivi de l\'intervention', 1, NULL, 0),
	(121, 'fichinter', 'internal', 'INTERVENING', 'Intervenant', 1, NULL, 0),
	(130, 'fichinter', 'external', 'BILLING', 'Contact client facturation intervention', 1, NULL, 0),
	(131, 'fichinter', 'external', 'CUSTOMER', 'Contact client suivi de l\'intervention', 1, NULL, 0),
	(140, 'order_supplier', 'internal', 'SALESREPFOLL', 'Responsable suivi de la commande', 1, NULL, 0),
	(141, 'order_supplier', 'internal', 'SHIPPING', 'Responsable réception de la commande', 1, NULL, 0),
	(142, 'order_supplier', 'external', 'BILLING', 'Contact fournisseur facturation commande', 1, NULL, 0),
	(143, 'order_supplier', 'external', 'CUSTOMER', 'Contact fournisseur suivi commande', 1, NULL, 0),
	(145, 'order_supplier', 'external', 'SHIPPING', 'Contact fournisseur livraison commande', 1, NULL, 0),
	(150, 'dolresource', 'internal', 'USERINCHARGE', 'In charge of resource', 1, NULL, 0),
	(151, 'dolresource', 'external', 'THIRDINCHARGE', 'In charge of resource', 1, NULL, 0),
	(155, 'ticket', 'internal', 'SUPPORTTEC', 'Utilisateur contact support', 1, NULL, 0),
	(156, 'ticket', 'internal', 'CONTRIBUTOR', 'Intervenant', 1, NULL, 0),
	(157, 'ticket', 'external', 'SUPPORTCLI', 'Contact client suivi incident', 1, NULL, 0),
	(158, 'ticket', 'external', 'CONTRIBUTOR', 'Intervenant', 1, NULL, 0),
	(160, 'project', 'internal', 'PROJECTLEADER', 'Chef de Projet', 1, NULL, 0),
	(161, 'project', 'internal', 'PROJECTCONTRIBUTOR', 'Intervenant', 1, NULL, 0),
	(170, 'project', 'external', 'PROJECTLEADER', 'Chef de Projet', 1, NULL, 0),
	(171, 'project', 'external', 'PROJECTCONTRIBUTOR', 'Intervenant', 1, NULL, 0),
	(180, 'project_task', 'internal', 'TASKEXECUTIVE', 'Responsable', 1, NULL, 0),
	(181, 'project_task', 'internal', 'TASKCONTRIBUTOR', 'Intervenant', 1, NULL, 0),
	(190, 'project_task', 'external', 'TASKEXECUTIVE', 'Responsable', 1, NULL, 0),
	(191, 'project_task', 'external', 'TASKCONTRIBUTOR', 'Intervenant', 1, NULL, 0),
	(210, 'conferenceorbooth', 'internal', 'MANAGER', 'Conference or Booth manager', 1, NULL, 0),
	(211, 'conferenceorbooth', 'external', 'SPEAKER', 'Conference Speaker', 1, NULL, 0),
	(212, 'conferenceorbooth', 'external', 'RESPONSIBLE', 'Booth responsible', 1, NULL, 0);

-- Listage de la structure de table gestcom. llx_c_type_container
CREATE TABLE IF NOT EXISTS `llx_c_type_container` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(32) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `label` varchar(128) DEFAULT NULL,
  `module` varchar(32) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_type_container_id` (`code`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_type_container : ~5 rows (environ)
INSERT INTO `llx_c_type_container` (`rowid`, `code`, `entity`, `label`, `module`, `active`) VALUES
	(1, 'page', 1, 'Page', 'system', 1),
	(2, 'banner', 1, 'Banner', 'system', 1),
	(3, 'blogpost', 1, 'BlogPost', 'system', 1),
	(4, 'other', 1, 'Other', 'system', 1),
	(5, 'menu', 1, 'Menu', 'system', 1);

-- Listage de la structure de table gestcom. llx_c_type_fees
CREATE TABLE IF NOT EXISTS `llx_c_type_fees` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(12) NOT NULL,
  `label` varchar(128) DEFAULT NULL,
  `type` int(11) DEFAULT 0,
  `accountancy_code` varchar(32) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `module` varchar(32) DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_c_type_fees` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_type_fees : ~25 rows (environ)
INSERT INTO `llx_c_type_fees` (`id`, `code`, `label`, `type`, `accountancy_code`, `active`, `module`, `position`) VALUES
	(1, 'TF_OTHER', 'Other', 0, NULL, 1, NULL, 0),
	(2, 'TF_TRIP', 'Transportation', 0, NULL, 1, NULL, 0),
	(3, 'TF_LUNCH', 'Lunch', 0, NULL, 1, NULL, 0),
	(4, 'EX_KME', 'ExpLabelKm', 0, NULL, 1, NULL, 0),
	(5, 'EX_FUE', 'ExpLabelFuelCV', 0, NULL, 0, NULL, 0),
	(6, 'EX_HOT', 'ExpLabelHotel', 0, NULL, 0, NULL, 0),
	(7, 'EX_PAR', 'ExpLabelParkingCV', 0, NULL, 0, NULL, 0),
	(8, 'EX_TOL', 'ExpLabelTollCV', 0, NULL, 0, NULL, 0),
	(9, 'EX_TAX', 'ExpLabelVariousTaxes', 0, NULL, 0, NULL, 0),
	(10, 'EX_IND', 'ExpLabelIndemnityTransSubscrip', 0, NULL, 0, NULL, 0),
	(11, 'EX_SUM', 'ExpLabelMaintenanceSupply', 0, NULL, 0, NULL, 0),
	(12, 'EX_SUO', 'ExpLabelOfficeSupplies', 0, NULL, 0, NULL, 0),
	(13, 'EX_CAR', 'ExpLabelCarRental', 0, NULL, 0, NULL, 0),
	(14, 'EX_DOC', 'ExpLabelDocumentation', 0, NULL, 0, NULL, 0),
	(15, 'EX_CUR', 'ExpLabelCustomersReceiving', 0, NULL, 0, NULL, 0),
	(16, 'EX_OTR', 'ExpLabelOtherReceiving', 0, NULL, 0, NULL, 0),
	(17, 'EX_POS', 'ExpLabelPostage', 0, NULL, 0, NULL, 0),
	(18, 'EX_CAM', 'ExpLabelMaintenanceRepairCV', 0, NULL, 0, NULL, 0),
	(19, 'EX_EMM', 'ExpLabelEmployeesMeal', 0, NULL, 0, NULL, 0),
	(20, 'EX_GUM', 'ExpLabelGuestsMeal', 0, NULL, 0, NULL, 0),
	(21, 'EX_BRE', 'ExpLabelBreakfast', 0, NULL, 0, NULL, 0),
	(22, 'EX_FUE_VP', 'ExpLabelFuelPV', 0, NULL, 0, NULL, 0),
	(23, 'EX_TOL_VP', 'ExpLabelTollPV', 0, NULL, 0, NULL, 0),
	(24, 'EX_PAR_VP', 'ExpLabelParkingPV', 0, NULL, 0, NULL, 0),
	(25, 'EX_CAM_VP', 'ExpLabelMaintenanceRepairPV', 0, NULL, 0, NULL, 0);

-- Listage de la structure de table gestcom. llx_c_type_resource
CREATE TABLE IF NOT EXISTS `llx_c_type_resource` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(32) NOT NULL,
  `label` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_type_resource_id` (`label`,`code`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_type_resource : ~2 rows (environ)
INSERT INTO `llx_c_type_resource` (`rowid`, `code`, `label`, `active`) VALUES
	(1, 'RES_ROOMS', 'Rooms', 1),
	(2, 'RES_CARS', 'Cars', 1);

-- Listage de la structure de table gestcom. llx_c_units
CREATE TABLE IF NOT EXISTS `llx_c_units` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(3) DEFAULT NULL,
  `sortorder` smallint(6) DEFAULT NULL,
  `label` varchar(128) DEFAULT NULL,
  `short_label` varchar(5) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `scale` int(11) DEFAULT NULL,
  `unit_type` varchar(10) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_c_units_code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=133 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_units : ~37 rows (environ)
INSERT INTO `llx_c_units` (`rowid`, `code`, `sortorder`, `label`, `short_label`, `active`, `scale`, `unit_type`) VALUES
	(1, 'P', NULL, 'piece', 'p', 1, NULL, NULL),
	(2, 'SET', NULL, 'set', 'se', 1, NULL, NULL),
	(3, 'S', NULL, 'second', 's', 1, NULL, 'time'),
	(4, 'H', NULL, 'hour', 'h', 1, 3600, 'time'),
	(5, 'D', NULL, 'day', 'd', 1, 86400, 'time'),
	(6, 'KG', NULL, 'kilogram', 'kg', 1, 0, 'weight'),
	(7, 'G', NULL, 'gram', 'g', 1, -3, 'weight'),
	(8, 'M', NULL, 'SizeUnitm', 'm', 1, 0, 'size'),
	(9, 'LM', NULL, 'linear meter', 'lm', 0, 0, 'size'),
	(10, 'M2', NULL, 'SurfaceUnitm2', 'm2', 1, 0, 'surface'),
	(11, 'M3', NULL, 'VolumeUnitm3', 'm3', 1, 0, 'volume'),
	(12, 'L', NULL, 'liter', 'l', 0, -3, 'volume'),
	(13, 'T', NULL, 'WeightUnitton', 'T', 1, 3, 'weight'),
	(16, 'MG', NULL, 'WeightUnitmg', 'mg', 1, -6, 'weight'),
	(17, 'OZ', NULL, 'WeightUnitounce', 'Oz', 1, 98, 'weight'),
	(18, 'LB', NULL, 'WeightUnitpound', 'lb', 1, 99, 'weight'),
	(20, 'DM', NULL, 'SizeUnitdm', 'dm', 1, -1, 'size'),
	(21, 'CM', NULL, 'SizeUnitcm', 'cm', 1, -2, 'size'),
	(22, 'MM', NULL, 'SizeUnitmm', 'mm', 1, -3, 'size'),
	(23, 'FT', NULL, 'SizeUnitfoot', 'ft', 1, 98, 'size'),
	(24, 'IN', NULL, 'SizeUnitinch', 'in', 1, 99, 'size'),
	(26, 'DM2', NULL, 'SurfaceUnitdm2', 'dm2', 1, -2, 'surface'),
	(27, 'CM2', NULL, 'SurfaceUnitcm2', 'cm2', 1, -4, 'surface'),
	(28, 'MM2', NULL, 'SurfaceUnitmm2', 'mm2', 1, -6, 'surface'),
	(29, 'FT2', NULL, 'SurfaceUnitfoot2', 'ft2', 1, 98, 'surface'),
	(30, 'IN2', NULL, 'SurfaceUnitinch2', 'in2', 1, 99, 'surface'),
	(32, 'DM3', NULL, 'VolumeUnitdm3', 'dm3', 1, -3, 'volume'),
	(33, 'CM3', NULL, 'VolumeUnitcm3', 'cm3', 1, -6, 'volume'),
	(34, 'MM3', NULL, 'VolumeUnitmm3', 'mm3', 1, -9, 'volume'),
	(35, 'FT3', NULL, 'VolumeUnitfoot3', 'ft3', 1, 88, 'volume'),
	(36, 'IN3', NULL, 'VolumeUnitinch3', 'in3', 1, 89, 'volume'),
	(37, 'OZ3', NULL, 'VolumeUnitounce', 'Oz', 1, 97, 'volume'),
	(39, 'GAL', NULL, 'VolumeUnitgallon', 'gal', 1, 99, 'volume'),
	(43, 'MI', NULL, 'minute', 'i', 1, 60, 'time'),
	(46, 'W', NULL, 'week', 'w', 1, 604800, 'time'),
	(47, 'MO', NULL, 'month', 'm', 1, 2629800, 'time'),
	(48, 'Y', NULL, 'year', 'y', 1, 31557600, 'time');

-- Listage de la structure de table gestcom. llx_c_ziptown
CREATE TABLE IF NOT EXISTS `llx_c_ziptown` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(5) DEFAULT NULL,
  `fk_county` int(11) DEFAULT NULL,
  `fk_pays` int(11) NOT NULL DEFAULT 0,
  `zip` varchar(10) NOT NULL,
  `town` varchar(180) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_ziptown_fk_pays` (`zip`,`town`,`fk_pays`),
  KEY `idx_c_ziptown_fk_county` (`fk_county`),
  KEY `idx_c_ziptown_fk_pays` (`fk_pays`),
  KEY `idx_c_ziptown_zip` (`zip`),
  CONSTRAINT `fk_c_ziptown_fk_county` FOREIGN KEY (`fk_county`) REFERENCES `llx_c_departements` (`rowid`),
  CONSTRAINT `fk_c_ziptown_fk_pays` FOREIGN KEY (`fk_pays`) REFERENCES `llx_c_country` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_c_ziptown : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_default_values
CREATE TABLE IF NOT EXISTS `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 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_default_values : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_delivery
CREATE TABLE IF NOT EXISTS `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,
  `fk_soc` int(11) NOT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `ref_customer` varchar(255) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `date_delivery` datetime DEFAULT NULL,
  `fk_address` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT 0,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_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=utf8;

-- Listage des données de la table gestcom.llx_delivery : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_deliverydet
CREATE TABLE IF NOT EXISTS `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,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `rang` int(11) DEFAULT 0,
  PRIMARY KEY (`rowid`),
  KEY `idx_deliverydet_fk_delivery` (`fk_delivery`),
  CONSTRAINT `fk_deliverydet_fk_delivery` FOREIGN KEY (`fk_delivery`) REFERENCES `llx_delivery` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_deliverydet : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_deliverydet_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_livraisondet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_deliverydet_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_delivery_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_livraison_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_delivery_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_deplacement
CREATE TABLE IF NOT EXISTS `llx_deplacement` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `dated` datetime DEFAULT NULL,
  `fk_user` int(11) NOT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `type` varchar(12) NOT NULL,
  `fk_statut` int(11) NOT NULL DEFAULT 1,
  `km` double DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT 0,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_deplacement : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_document_model
CREATE TABLE IF NOT EXISTS `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,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_document_model` (`nom`,`type`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_document_model : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_don
CREATE TABLE IF NOT EXISTS `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,
  `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(30) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `country` varchar(50) DEFAULT NULL,
  `fk_country` int(11) NOT NULL,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(24) DEFAULT NULL,
  `phone_mobile` varchar(24) DEFAULT NULL,
  `public` smallint(6) NOT NULL DEFAULT 1,
  `fk_projet` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int(11) NOT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `note_private` text 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_soc` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_don : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_don_extrafields
CREATE TABLE IF NOT EXISTS `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=utf8;

-- Listage des données de la table gestcom.llx_don_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_ecm_directories
CREATE TABLE IF NOT EXISTS `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,
  `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 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_ecm_directories : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_ecm_directories_extrafields
CREATE TABLE IF NOT EXISTS `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) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_ecm_directories_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_ecm_directories_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_ecm_files
CREATE TABLE IF NOT EXISTS `llx_ecm_files` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) DEFAULT NULL,
  `label` varchar(128) NOT NULL,
  `share` varchar(128) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `filepath` varchar(255) DEFAULT NULL,
  `filename` varchar(255) NOT NULL,
  `src_object_type` varchar(64) DEFAULT NULL,
  `src_object_id` int(11) DEFAULT NULL,
  `fullpath_orig` varchar(750) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `keywords` varchar(750) DEFAULT NULL,
  `cover` text DEFAULT NULL,
  `position` int(11) DEFAULT NULL,
  `gen_or_uploaded` varchar(12) 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,
  `keyword` varchar(750) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_ecm_files` (`filepath`,`filename`,`entity`),
  KEY `idx_ecm_files_label` (`label`)
) ENGINE=InnoDB AUTO_INCREMENT=192 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_ecm_files : ~183 rows (environ)
INSERT INTO `llx_ecm_files` (`rowid`, `ref`, `label`, `share`, `entity`, `filepath`, `filename`, `src_object_type`, `src_object_id`, `fullpath_orig`, `description`, `keywords`, `cover`, `position`, `gen_or_uploaded`, `extraparams`, `date_c`, `tms`, `fk_user_c`, `fk_user_m`, `note_private`, `note_public`, `acl`, `keyword`) VALUES
	(1, '4c5dec647d9ab45fcf4adce139192fdd', '61115f99377317a09a771755d0231415', NULL, 1, 'facture/(PROV1)', '(PROV1).pdf', 'facture', 1, '', '', NULL, NULL, 1, 'generated', NULL, '2019-04-26 17:02:06', '2019-04-26 15:02:06', 2, NULL, NULL, NULL, NULL, NULL),
	(2, '657899b0d4a4fe2c6b1818cf674e0d3e', '3a88d0cf7c2a9c581f1917c14e15a92a', NULL, 1, 'facture/FA190001', 'FA190001.pdf', 'facture', 1, '', '', NULL, NULL, 1, 'generated', NULL, '2019-04-26 17:02:28', '2019-06-01 09:28:50', 2, 2, NULL, NULL, NULL, NULL),
	(3, 'd0934d6109da6450ed138ea7a315521e', '4d95f8c150e6e4f7260ac7b44a62bfbc', NULL, 1, 'facture/FA190002', 'FA190002.pdf', 'facture', 2, '', '', NULL, NULL, 1, 'generated', NULL, '2019-05-21 13:53:12', '2019-08-22 11:03:36', 2, 1, NULL, NULL, NULL, NULL),
	(4, 'f30ab89df6837100b383aac2a34d4780', '437c2630af79e38aae52434bd590e178', NULL, 1, 'facture/(PROV3)', '(PROV3).pdf', 'facture', 3, '', '', NULL, NULL, 1, 'generated', NULL, '2019-05-31 17:42:17', '2019-05-31 15:42:17', 2, NULL, NULL, NULL, NULL, NULL),
	(5, 'f4d8d1b7445cd97b2ac581aa8b2cb2ea', '59e85e00aeebf3fce64cccc9c767761e', NULL, 1, 'facture/FA180003', 'FA180003.pdf', 'facture', 3, '', '', NULL, NULL, 1, 'generated', NULL, '2019-05-31 17:42:51', '2019-12-11 04:49:20', 2, 2, NULL, NULL, NULL, NULL),
	(6, '278efd7cbe4702db1337570737698014', 'f39736322088e1598af535a3fc696ef3', NULL, 1, 'facture/(PROV4)', '(PROV4).pdf', 'facture', 4, '', '', NULL, NULL, 1, 'generated', NULL, '2019-06-11 17:23:35', '2019-06-11 15:23:35', 1, NULL, NULL, NULL, NULL, NULL),
	(7, '397658881bf7c239e5df166ec5bd95d0', 'd7fe85ffdf4d362f2ad6642ccc0e61ce', NULL, 1, 'facture/FA190004', 'FA190004.pdf', 'facture', 4, '', '', NULL, NULL, 1, 'generated', NULL, '2019-06-11 17:26:36', '2020-11-27 07:50:58', 1, 2, NULL, NULL, NULL, NULL),
	(8, 'e954f8371aa424a47d4884a7ca825a9a', 'c8830690043c25a6c1db1af42140eaab', NULL, 1, 'projet/PJ1906-0001', 'PJ1906-0001.pdf', 'projet', 1, '', '', NULL, NULL, 1, 'generated', NULL, '2019-06-11 19:10:16', '2019-06-11 17:10:16', 1, NULL, NULL, NULL, NULL, NULL),
	(9, 'b65216964eb475637a47edd5bba017a0', 'a49e3efe9369d06ac6a93b0f5221af1e', NULL, 1, 'facture/(PROV5)', '(PROV5).pdf', 'facture', 5, '', '', NULL, NULL, 1, 'generated', NULL, '2019-06-15 19:57:35', '2019-06-15 17:57:35', 2, NULL, NULL, NULL, NULL, NULL),
	(10, '4c91bec06b52c0b180528d303448a274', 'dde8c7d311e4da00c6d6e9bd60f3f39a', NULL, 1, 'facture/FA190005', 'FA190005.pdf', 'facture', 5, '', '', NULL, NULL, 1, 'generated', NULL, '2019-06-15 19:57:48', '2019-08-22 11:02:01', 2, 2, NULL, NULL, NULL, NULL),
	(11, '18fedf502b87e4f742b314f18aadb4ad', 'c51a182d13bb8505e9ec58cac53133a6', NULL, 1, 'facture/(PROV6)', '(PROV6).pdf', 'facture', 6, '', '', NULL, NULL, 1, 'generated', NULL, '2019-06-21 14:56:18', '2019-06-21 12:56:18', 2, NULL, NULL, NULL, NULL, NULL),
	(12, 'dd49892e8bbd163be5ebec0296dac579', '50edd8bbbb45620431e130e618c9b5d3', NULL, 1, 'facture/FA190006', 'FA190006.pdf', 'facture', 7, '', '', NULL, NULL, 1, 'generated', NULL, '2019-06-21 14:57:38', '2020-12-06 09:58:02', 2, 1, NULL, NULL, NULL, NULL),
	(13, 'c8cbbc3cc0db64c5c7d7f3d6b64dbe80', '0f9c5d5c7717855672d4ebb541d307f8', NULL, 1, 'propale/PR1908-0001', 'PR1908-0001.pdf', 'propal', 1, '', '', NULL, NULL, 1, 'generated', NULL, '2019-08-22 12:58:26', '2020-03-22 12:26:00', 2, 2, NULL, NULL, NULL, NULL),
	(14, '87f74b63fec933c89bee0cc6e3d477d7', '8c8317f68821519701367e3e3065d500', NULL, 1, 'facture/FA190007', 'FA190007.pdf', 'facture', 10, '', '', NULL, NULL, 1, 'generated', NULL, '2019-08-22 13:01:06', '2019-08-22 11:02:04', 2, 2, NULL, NULL, NULL, NULL),
	(15, '4a5b71190cbebe15c0a5a870199c55da', '', NULL, 1, 'produit/zzzz', 'zzzz-voiture.php', NULL, NULL, 'voiture.php', '', NULL, NULL, 1, 'uploaded', NULL, '2019-09-06 14:53:36', '2019-09-06 12:53:36', 2, NULL, NULL, NULL, NULL, NULL),
	(17, '303a9e4b50538313cd09442ccf4ae3bb', 'cee54b2bfc23e18839780760481a7586', NULL, 1, 'facture/FA220018', 'FA220018.pdf', 'facture', 11, '', '', '', NULL, 1, 'generated', NULL, '2019-12-12 15:01:10', '2022-06-20 16:45:11', 2, 1, NULL, NULL, NULL, NULL),
	(18, 'eaabe5e6ccce752d5ff20d9bce81e679', '52ee75cbd64799a9343aa420048f6a97', NULL, 1, 'facture/FA220017', 'FA220017.pdf', 'facture', 8, '', '', '', NULL, 1, 'generated', NULL, '2020-07-09 15:16:25', '2022-06-20 16:43:43', 2, 2, NULL, NULL, NULL, NULL),
	(19, 'fac0a1341d8a12f48bbe6833896c51d4', 'c3f337483ff9fdebc0103dd0c7618b65', NULL, 1, 'facture/AV200001', 'AV200001.pdf', 'facture', 13, '', '', NULL, NULL, 1, 'generated', NULL, '2020-08-06 17:13:34', '2020-08-06 15:13:38', 2, 2, NULL, NULL, NULL, NULL),
	(21, '6170a052a329a06a98f5db91f2a67717', 'b3fa2f527106ff1f1eb4f8a6291f5961', NULL, 1, 'facture/FA200008', 'FA200008.pdf', 'facture', 14, '', '', NULL, NULL, 1, 'generated', NULL, '2020-11-12 10:23:29', '2020-11-12 09:23:29', 2, NULL, NULL, NULL, NULL, NULL),
	(22, 'f4f4d87631cb0722e4441124cd821c9d', '78c0c8af84367d94b02039ed7678a5ef', NULL, 1, 'facture/FA200009', 'FA200009.pdf', 'facture', 15, '', '', NULL, NULL, 1, 'generated', NULL, '2020-12-06 10:44:39', '2020-12-06 09:51:47', 1, 1, NULL, NULL, NULL, NULL),
	(23, '4f695e755666d74e87373ed315987661', '420cab2dd94d367f2b23a899a1a97e34', NULL, 1, 'facture/FA220019', 'FA220019.pdf', 'facture', 16, '', '', '', NULL, 1, 'generated', NULL, '2020-12-12 22:00:04', '2022-06-20 16:45:41', 1, 1, NULL, NULL, NULL, NULL),
	(24, 'ebe6ebf3636204ef469ef459170bc64f', '11175cd2faff4f7e81c05ec1ca00d01e', NULL, 1, 'facture/FA200010', 'FA200010.pdf', 'facture', 17, '', '', '', NULL, 1, 'generated', NULL, '2020-12-22 19:45:10', '2022-08-22 16:50:49', 1, 1, NULL, NULL, NULL, NULL),
	(25, 'afe6965b38782ce85cad6a4efc01f7e0', '1ce7de66f9d18eef7c6187cba2622591', NULL, 1, 'facture/FA210020', 'FA210020.pdf', 'facture', 18, '', '', '', NULL, 1, 'generated', NULL, '2021-01-12 22:00:03', '2022-06-20 16:46:02', 1, 1, NULL, NULL, NULL, NULL),
	(26, '22943a6cef1e8f3413c47de61ea3e464', 'f83c9d47c063717e97773711a91a914c', NULL, 1, 'facture/FA210021', 'FA210021.pdf', 'facture', 19, '', '', '', NULL, 1, 'generated', NULL, '2021-02-12 22:00:03', '2022-06-20 16:46:40', 1, 1, NULL, NULL, NULL, NULL),
	(27, 'cd7c3ca23f8873c8ce786d545cab2ee2', '9c4e0dae43605dc36fe9c6c241bc33c0', NULL, 1, 'facture/(PROV20)', '(PROV20).pdf', 'facture', 20, '', '', NULL, NULL, 1, 'generated', NULL, '2021-03-12 22:00:04', '2021-03-12 21:00:04', 1, NULL, NULL, NULL, NULL, NULL),
	(28, '767d7bc09532a44c2b3e034de3c8d8a3', '672c19664cc6087cb372f23f7e6cb9ca', NULL, 1, 'facture/(PROV21)', '(PROV21).pdf', 'facture', 21, '', '', NULL, NULL, 1, 'generated', NULL, '2021-04-08 11:30:33', '2021-04-08 09:30:33', 2, NULL, NULL, NULL, NULL, NULL),
	(29, '9dbc44facb7495294f61e6268a7ee3fb', '7c316ba4c9d7203a5a165679c932d1e4', NULL, 1, 'facture/(PROV22)', '(PROV22).pdf', 'facture', 22, '', '', NULL, NULL, 1, 'generated', NULL, '2021-04-12 23:00:03', '2021-04-12 21:00:03', 1, NULL, NULL, NULL, NULL, NULL),
	(30, '891adf77765f06e8f9f822b9dbf1aa21', '67432e35424f904bdd2694e0ed8c6874', NULL, 1, 'facture/(PROV23)', '(PROV23).pdf', 'facture', 23, '', '', NULL, NULL, 1, 'generated', NULL, '2021-05-12 23:00:05', '2021-05-12 21:00:05', 1, NULL, NULL, NULL, NULL, NULL),
	(31, 'd80d50e8d65ede8e8d5113a804196bb6', '6766d17786f1d424ff436628076a66e1', NULL, 1, 'facture/(PROV24)', '(PROV24).pdf', 'facture', 24, '', '', NULL, NULL, 1, 'generated', NULL, '2021-06-12 23:00:04', '2021-06-12 21:00:04', 1, NULL, NULL, NULL, NULL, NULL),
	(32, 'ed1b4ca487042617959291463e6a2b0d', '688fce031e72866aa6cfc984559b0cab', NULL, 1, 'facture/(PROV25)', '(PROV25).pdf', 'facture', 25, '', '', '', NULL, 1, 'generated', NULL, '2021-07-12 23:00:07', '2021-07-29 08:40:58', 1, 1, NULL, NULL, NULL, NULL),
	(33, '899e0c17752562f90449d33f6dc9c04c', '9fdccf8911945a90fe41b5f795402be2', NULL, 1, 'customersowed', '2021-07-09.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-07-09.pdf', '', '', NULL, 1, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(34, '5e54379d864c966cd87ac4476853f235', 'c9dd40193d6cbb5ca40ac9b2fed3cd6d', NULL, 1, 'customersowed', '2021-04-28.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-04-28.pdf', '', '', NULL, 2, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(35, '94608144963271a834357629ff9cba93', '0e5e8d5aec835cf65e39a1f4a6014f56', NULL, 1, 'customersowed', '2021-03-28.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-03-28.pdf', '', '', NULL, 3, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(36, '8e0fda6c4c66f164061d29670e5cde0d', '30f1464c5f574c5ab6ccf0344e75097e', NULL, 1, 'customersowed', '2021-03-10_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-03-10_DURAND_Michel.pdf', '', '', NULL, 4, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(37, '129a0dbacd94e87fe12d3db0345038f9', '434fe5f8b2d19578643cfc0f114484fa', NULL, 1, 'customersowed', '2021-02-01.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-02-01.pdf', '', '', NULL, 5, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(38, '62e349e01e91dbdfba42eba9c4607041', '235f8e4a3b90083883fac60c8e31a2cc', NULL, 1, 'customersowed', '2021-02-01_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-02-01_DURAND_Michel.pdf', '', '', NULL, 6, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(39, 'e060d2b63e0868db64bb00802c9fd621', '5c3982cfe4c64d08d8da3e370152f98f', NULL, 1, 'customersowed', '2021-01-11_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-01-11_DURAND_Michel.pdf', '', '', NULL, 7, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(40, 'a5c5c235ebb5e679c835b335b82cbd50', '085fd0f18448fda765cb8a7bcf7fedac', NULL, 1, 'customersowed', '2021-01-12.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-01-12.pdf', '', '', NULL, 8, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(41, '60f361e4236465c772f4a438925367ff', 'a3d6afa9b0ceabef45b0273f2d771e65', NULL, 1, 'customersowed', '2020-12-27_ALLARD_Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-12-27_ALLARD_Gerard.pdf', '', '', NULL, 9, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(42, 'b0f2b7e6b70f5ae72f1871d671a0a5e8', 'c78716b85b927e4b4cb46c89cf7fe1e9', NULL, 1, 'customersowed', '2020-12-27.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-12-27.pdf', '', '', NULL, 10, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(43, 'c3f5bc1fa3c90643be70e6085661b786', 'b57b03c22b2e82427fb4cca67b7f7798', NULL, 1, 'customersowed', '2020-12-24_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-12-24_DURAND_Michel.pdf', '', '', NULL, 11, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(44, '099f56502677e0c08d5e1e495dc487eb', '53edab994400d2f3f53f419d2f47d2cd', NULL, 1, 'customersowed', '2020-12-22.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-12-22.pdf', '', '', NULL, 12, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(45, '5a45c2b88e9d9cef4f7b5a2bfba32ac1', 'd171553342f6f2ed22803908db1f4456', NULL, 1, 'customersowed', '2020-12-12.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-12-12.pdf', '', '', NULL, 13, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(46, 'd2594dad4360c2fe1384e10f461d535f', '8844f4fa33c043fec1cec0b3f5398e2c', NULL, 1, 'customersowed', '2020-12-01.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-12-01.pdf', '', '', NULL, 14, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(47, '588e19539c2cfb4f9f775c6fdadce00e', '971219500868a86c851c66a428bdede2', NULL, 1, 'customersowed', '2020-11-24.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-11-24.pdf', '', '', NULL, 15, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(48, '66a7daa626dc51002d63d2fc805f4df8', '7e984b2df929e0123464018924ea6031', NULL, 1, 'customersowed', '2020-11-23.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-11-23.pdf', '', '', NULL, 16, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(49, 'c31ae94a47261a105cc6b67bf8fc549f', '4eaf40072d2636a8749a88be08bfecf9', NULL, 1, 'customersowed', '2020-11-23_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-11-23_DURAND_Michel.pdf', '', '', NULL, 17, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(50, '795a79f8f2abe56d70be01434194aace', '39f10b4be10eaaf55979a77675524855', NULL, 1, 'customersowed', '2020-11-23_METTAIS_Richard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-11-23_METTAIS_Richard.pdf', '', '', NULL, 18, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(51, '7dd6ec306c5c6534df9d06a9ffc8cf49', 'b9027f66992e442534955d739942616e', NULL, 1, 'customersowed', '2020-11-12_ALLARD_Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-11-12_ALLARD_Gerard.pdf', '', '', NULL, 19, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(52, '00f1b00a3cd1a7670ee72b3a7ce17512', '62ff1bf7aeda909eceaf75331ce9ee34', NULL, 1, 'customersowed', '2020-10-29.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-10-29.pdf', '', '', NULL, 20, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(53, 'b3d61c5a1b330b189f87220364a325cc', '59a4c8410e84e2a44dcca33ada240768', NULL, 1, 'customersowed', '2020-10-29_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-10-29_DURAND_Michel.pdf', '', '', NULL, 21, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(54, '3483804a610a4e7d5b109063da8adb37', 'efeb046881667600d5442f669df31ac7', NULL, 1, 'customersowed', '2020-10-27.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-10-27.pdf', '', '', NULL, 22, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(55, 'ff3fecf183e8f16af146df770bbb5d05', 'b9dc5fdb1708a8548c57c1ce8d4ddfb6', NULL, 1, 'customersowed', '2020-10-22.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-10-22.pdf', '', '', NULL, 23, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(56, 'e4f1b5cbf965650b30c8f7b8e3d66173', '1ff463bfdd5addf0b1709742c8e25696', NULL, 1, 'customersowed', '2020-10-19_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-10-19_DURAND_Michel.pdf', '', '', NULL, 24, 'unknown', NULL, '2021-07-29 10:39:37', '2021-07-29 08:39:37', 1, NULL, NULL, NULL, NULL, NULL),
	(57, '7411d47c07b61fcdf08cef73beef8159', '30b7147913e0b4d39e8ba525e8fb9eb1', NULL, 1, 'customersowed', '2020-10-08.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-10-08.pdf', '', '', NULL, 25, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(58, 'c941f023266c855a8fe5bb0733fed69c', 'da0fac6d01d36ba5eba06e354dcf3613', NULL, 1, 'customersowed', '2019-07-01.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-07-01.pdf', '', '', NULL, 26, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(59, '9a00d9acff1a292cf0431d173fff896b', '272f2f2b0f427f205ab4688db3f89235', NULL, 1, 'customersowed', '2020-10-03_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-10-03_DURAND_Michel.pdf', '', '', NULL, 27, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(60, '4900439eba7e78d8fa03a7bbe19f566d', 'e086b5bf7f2f01b870125822fa4badaa', NULL, 1, 'customersowed', '2020-09-18_BRADANT.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-09-18_BRADANT.pdf', '', '', NULL, 28, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(61, '69d7779b250f832418a27d5f8e6d1fef', 'f2c0a6e498a88d5c7e72535a09c6ec52', NULL, 1, 'customersowed', '2020-08-18_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-08-18_DURAND_Michel.pdf', '', '', NULL, 29, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(62, '0ad6e6b0d75eb1fd6fa2c668c6eb6b33', 'edad88b450d1aaf6f0f097d398b50d15', NULL, 1, 'customersowed', '2020-08-18.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-08-18.pdf', '', '', NULL, 30, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(63, '50dc5ed96e4798af64b80449e2a21679', '1030bf31921d74ff72af9f8ea5879554', NULL, 1, 'customersowed', '2020-11-30_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-11-30_DURAND_Michel.pdf', '', '', NULL, 31, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(64, '9052baa0b19bc33dd5373fbbc29926e3', '83ac62eb7e8d9d7a31a5913d9865f050', NULL, 1, 'customersowed', '2020-11-30.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-11-30.pdf', '', '', NULL, 32, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(65, 'd3921d52214fd3d4181636f4ae2d965f', '73c58016df3faf4834ba213ec50d6ab9', NULL, 1, 'customersowed', '2020-07-23.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-07-23.pdf', '', '', NULL, 33, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(66, '920cd374e51e6d9844b3aadb29533513', '47201ff7af9baa1144ea632bd31505f0', NULL, 1, 'customersowed', '2020-07-13_DUPOND_Xavier.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-07-13_DUPOND_Xavier.pdf', '', '', NULL, 34, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(67, '8f4a7152bad77a42a13c503c44d45dec', '6fb169d8c0561ee147cb2a8c0dfb5d8a', NULL, 1, 'customersowed', '2020-06-29_DUPOND_Xavier.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-06-29_DUPOND_Xavier.pdf', '', '', NULL, 35, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(68, 'fb2e87288ec81276e655bdc7d3801241', '4a476a9b3d8ed687e084d8404a2c1255', NULL, 1, 'customersowed', '2020-06-01.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-06-01.pdf', '', '', NULL, 36, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(69, 'ac16f9df9c6238ae284c48bd75fedad0', 'f5d15fff1795a43b27a646c6ff5a4183', NULL, 1, 'customersowed', '2020-06-03.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-06-03.pdf', '', '', NULL, 37, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(70, '51603da76ade9b8f57601f65295fa651', '3573fe4e25cee9727cf60c35b5a8c53d', NULL, 1, 'customersowed', '2020-04-06_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-04-06_DURAND_Michel.pdf', '', '', NULL, 38, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(71, '611a82bef9fb66c034e3b6f7313b0dca', '610c33603ecce3569394179638e0944e', NULL, 1, 'customersowed', '2020-04-05.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-04-05.pdf', '', '', NULL, 39, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(72, '7eb7933ea5300d99c1049f9e1cfc0f36', '93bf54f700bcca2dafe6f59815fff710', NULL, 1, 'customersowed', '2020-03-28.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-03-28.pdf', '', '', NULL, 40, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(73, '74a3c080de111efc8224603eb62e846e', '1d7c0313219991b1d701c3a61bc61d58', NULL, 1, 'customersowed', '2020-03-24.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-03-24.pdf', '', '', NULL, 41, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(74, 'a02eb4eb14950bc5625925157cce175f', '82a5cd5726e6a4ee1da0358727279097', NULL, 1, 'customersowed', '2020-03-24_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-03-24_DURAND_Michel.pdf', '', '', NULL, 42, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(75, '1fae236070eb9ea8d8f0f8840daca9a9', '8be7a498f5f66c6cb403f8e77370e1c3', NULL, 1, 'customersowed', '2020-03-23.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-03-23.pdf', '', '', NULL, 43, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(76, '9ed3fd4f2650f0a600b617dd893c0350', '44d4c56868c4b1182ab97dd4ae4eec24', NULL, 1, 'customersowed', '2020-02-25_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-02-25_DURAND_Michel.pdf', '', '', NULL, 44, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(77, 'ea751c47be99e7024322173deb1c83c5', '4b7ebe4c990528541bd4877e2320c4da', NULL, 1, 'customersowed', '2020-02-09_DUPOND_Xavier.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2020-02-09_DUPOND_Xavier.pdf', '', '', NULL, 45, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(78, '1ec6d8b60fc9e6fc4cf5e32292b12a5d', '9a212b3207106d5194d45d82c73cf2f6', NULL, 1, 'customersowed', '2019-12-26_FERRAND.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-12-26_FERRAND.pdf', '', '', NULL, 46, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(79, '9b78b4e2a272feba5ee35ca6c4426f41', '62a831bf4abd59148cdb391b48789976', NULL, 1, 'customersowed', '2019-12-26_ALLARD_Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-12-26_ALLARD_Gerard.pdf', '', '', NULL, 47, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(80, '00831bb2e42864314a6a75d44ff10a53', '242ab9d70ac30e0660f25bce155c5b4c', NULL, 1, 'customersowed', '2019-12-20_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-12-20_DURAND_Michel.pdf', '', '', NULL, 48, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(81, '6b7f7e289fcff501e8c46ed15f464dca', 'b31cf4801cc4b1be7caaa94928770ec3', NULL, 1, 'customersowed', '2019-12-10.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-12-10.pdf', '', '', NULL, 49, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(82, '1a065a45eac2e4fc168f46c10a6fbda1', 'b82293586dc644bdd1f20ea8e0434bab', NULL, 1, 'customersowed', '2019-11-28.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-11-28.pdf', '', '', NULL, 50, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(83, '48125ae6a4fe85b1d758d2114bfc5cda', '8a9f0a9a49fcb79299862e6529d04049', NULL, 1, 'customersowed', '2019-11-28_ALLARD_Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-11-28_ALLARD_Gerard.pdf', '', '', NULL, 51, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(84, '88459d63bc66ff8426ab16818ae14bee', '2337873d5ce9144542e6e1fd447d25fe', NULL, 1, 'customersowed', '2019-11-24_GAEC_CARPENTIER.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-11-24_GAEC_CARPENTIER.pdf', '', '', NULL, 52, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(85, '36da1eeec0f0bf3690ceaa6fcec96b6c', '36dc090aad978559783ed943b932d571', NULL, 1, 'customersowed', '2019-11-16.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-11-16.pdf', '', '', NULL, 53, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(86, 'eea90db9d2bee8e0b1b8c86a056f5c1d', '41ed0a6c6ccefa6665042485cc22e3a7', NULL, 1, 'customersowed', '2019-11-16_DUPOND_Xavier.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-11-16_DUPOND_Xavier.pdf', '', '', NULL, 54, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(87, '43ddb6aa854d6a260c59494e9728cf25', '90225ba9d49a8234052448cc87c04511', NULL, 1, 'customersowed', '2019-10-04.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-10-04.pdf', '', '', NULL, 55, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(88, '083e02a35a90409dc9b0dc5bd8807203', 'f3f212ffd4cca84380fe6b34d0d570f2', NULL, 1, 'customersowed', '2019-10-02_DUPOND_Xavier.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-10-02_DUPOND_Xavier.pdf', '', '', NULL, 56, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(89, 'c3d1bb489850af38c36fefca3469d027', '0d0b58f1ef09719e610c512032c9ac8d', NULL, 1, 'customersowed', '2019-09-20.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-09-20.pdf', '', '', NULL, 57, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(90, 'c4021d0a243011dc4e5d66200b841514', 'f5d33f10f940b8a6eb7725bbc21a930c', NULL, 1, 'customersowed', '2019-09-19.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-09-19.pdf', '', '', NULL, 58, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(91, 'edc7114c546cb2ddbfbe0a0770db0791', 'b2fdc3c68651480fe8da46083e924876', NULL, 1, 'customersowed', '2019-09-17.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-09-17.pdf', '', '', NULL, 59, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(92, 'fe20b795bc159584a8e8e6f68123d48d', 'ff6791152334636c18a08d5cb9504633', NULL, 1, 'customersowed', '2019-09-08.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-09-08.pdf', '', '', NULL, 60, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(93, 'ff1a163108f5b3ba6d552f341fe17335', '79da877ff5a801c21ba078ced3a32ca8', NULL, 1, 'customersowed', '2019-09-05_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-09-05_DURAND_Michel.pdf', '', '', NULL, 61, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(94, '09f9562e5b234b0b7575647e753fe078', '4ba2343f4a48ee256eedf433b8ecf956', NULL, 1, 'customersowed', '2019-08-24.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-08-24.pdf', '', '', NULL, 62, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(95, '9a8f74a6b09350b1054f7c141ece1c5b', '683268332dfbcb75685a43a3541f8e7b', NULL, 1, 'customersowed', '2019-08-22.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-08-22.pdf', '', '', NULL, 63, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(96, '4c597c9af3f7e6368dbc413318b273ac', 'afd71cada0919daa37c0125e56258f56', NULL, 1, 'customersowed', '2019-04-30.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-04-30.pdf', '', '', NULL, 64, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(97, '39c8338976617dd9ffba3eeb7fb28bb7', 'b560de92857506f3673e8979a41ab70c', NULL, 1, 'customersowed', '2019-04-30_DUPOND_Xavier.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-04-30_DUPOND_Xavier.pdf', '', '', NULL, 65, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(98, 'd8c903c86a2b03c7281f065299e09311', '7409ef58a0ec15a1c81abf5e4188ad3f', NULL, 1, 'customersowed', '2019-08-12.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-08-12.pdf', '', '', NULL, 66, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(99, 'c799f57872780ae40e239c7d2adcbb05', '36ecfaac1dc35f55918fabf44282e0b6', NULL, 1, 'customersowed', '2019-08-08.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-08-08.pdf', '', '', NULL, 67, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(100, '2ec3b2726822f9ab8ed84143f1ce0f23', '421d1b496aa0e31a8226d0e900e24e32', NULL, 1, 'customersowed', '2019-08-04.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-08-04.pdf', '', '', NULL, 68, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(101, '6c0db0f18492a84e2a5e637dd0cb6045', '271b75cc3f036cbda3a487c082b77e3b', NULL, 1, 'customersowed', '2019-07-17_DUPOND_Xavier.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-07-17_DUPOND_Xavier.pdf', '', '', NULL, 69, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(102, 'dd336d2d0f510413e1ab44b4137fda84', 'ef5addc09f7adfdc451d6b78fdc5828c', NULL, 1, 'customersowed', '2019-07-13_DUPOND_Xavier.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-07-13_DUPOND_Xavier.pdf', '', '', NULL, 70, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(103, '08902960e6eaea7e08a26294168b54f7', '5a8c264d1b5d9fb828d4e7ba8e6e17e8', NULL, 1, 'customersowed', '2019-07-13.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-07-13.pdf', '', '', NULL, 71, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(104, 'ff7e91d3138bad45dcf1b937eb395fa6', 'feec0a274af7b896d201271ab992be73', NULL, 1, 'customersowed', '2019-07-12_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-07-12_DURAND_Michel.pdf', '', '', NULL, 72, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(105, '9ae44e6330b8cf8d016d7677b779beb2', '57bba600c0f2f372601aa8125349861e', NULL, 1, 'customersowed', '2019-07-10_DUPOND_Xavier.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-07-10_DUPOND_Xavier.pdf', '', '', NULL, 73, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(106, '01554a627b3bf6262934669f6261710d', '0e927545f469f3af5e4837fca14b4f32', NULL, 1, 'customersowed', '2019-07-10.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-07-10.pdf', '', '', NULL, 74, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(107, '0f8a581f60d388f513a54fe43ec4bd94', 'ff79777232c14a38c22e36c7e5c26cab', NULL, 1, 'customersowed', '2019-06-24.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-06-24.pdf', '', '', NULL, 75, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(108, 'f0bd07685a78b203794d373cb9149d2b', '63217638c9cdf323c681e29ffb643605', NULL, 1, 'customersowed', '2019-06-21_DUPOND_Xavier.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-06-21_DUPOND_Xavier.pdf', '', '', NULL, 76, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(109, '0995155b8ea0b00a10d28fd4c1ba1056', 'd807bd9d71c28fc91d6875f507a0dd77', NULL, 1, 'customersowed', '2019-06-17_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-06-17_DURAND_Michel.pdf', '', '', NULL, 77, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(110, '0dd9581784ae6eaa5fd8b241045a313a', 'e63189eedf3fc13c3c2fa2bda9e14042', NULL, 1, 'customersowed', '2019-06-15.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-06-15.pdf', '', '', NULL, 78, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(111, '477c0bb43ccd5aa913ad061092528537', '7576c83b620f77775b371c4e337772ca', NULL, 1, 'customersowed', '2019-06-15_DUPOND_Xavier.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-06-15_DUPOND_Xavier.pdf', '', '', NULL, 79, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(112, '670f2002fd5b3cc4571604dcc3b6b802', '796f35321f3ea482192aefb88bafda42', NULL, 1, 'customersowed', '2019-06-15_ALLARD_Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-06-15_ALLARD_Gerard.pdf', '', '', NULL, 80, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(113, 'b5adb443b4711c158116b814a2aa2fec', '20d5e80d0746b6c8bb81160639380cdd', NULL, 1, 'customersowed', '2018-12-31.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2018-12-31.pdf', '', '', NULL, 81, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(114, '6502bc21b800dd38a3f64f334825ada2', '199c73383d000ce9a714c4782ee91811', NULL, 1, 'customersowed', '2019-12-31.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-12-31.pdf', '', '', NULL, 82, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(115, 'd4c05ee64b19657015e16674e3264040', 'f01b1d43fb93ddaafe601c374cabf66c', NULL, 1, 'customersowed', '2019-06-03_ALLARD Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-06-03_ALLARD Gerard.pdf', '', '', NULL, 83, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(116, '7fc6990146a90a615eaf0475330ffdd5', 'a4d045524c4e4404fb4d03aaf1883e21', NULL, 1, 'customersowed', '2019-05-31.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-05-31.pdf', '', '', NULL, 84, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(117, 'cdbc1e960a7fd0f904fdbcfac1185278', '8d95d611845538fee931ac2e962f98e4', NULL, 1, 'customersowed', '2019-05-20_ALLARD Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-05-20_ALLARD Gerard.pdf', '', '', NULL, 85, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(118, '7a9627cf3cd03a0236af79953c0c31e1', '0e356207acc45fcec893cd2664f73257', NULL, 1, 'customersowed', '2019-05-20.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-05-20.pdf', '', '', NULL, 86, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(119, '462fd4ca60bb8460d591b00ad3d02328', 'f4c1474b8e1d1df2d0ebc76c8080a02a', NULL, 1, 'customersowed', '2019-05-31_ALLARD Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2019-05-31_ALLARD Gerard.pdf', '', '', NULL, 87, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(120, 'ce4b65ec906486c63f01de0c88df895d', '80adb272c278561023fc304510188f8c', NULL, 1, 'customersowed', 'SPECIMEN.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/SPECIMEN.pdf', '', '', NULL, 88, 'unknown', NULL, '2021-07-29 10:39:38', '2021-07-29 08:39:38', 1, NULL, NULL, NULL, NULL, NULL),
	(121, 'a5b216d40701afb717a5634a427e5243', '3d9ef6bd5ea297c3852f5a385b2febca', NULL, 1, 'facture/(PROV26)', '(PROV26).pdf', 'facture', 26, '', '', '', NULL, 1, 'generated', NULL, '2021-08-12 23:00:07', '2021-08-12 21:00:07', 1, NULL, NULL, NULL, NULL, NULL),
	(122, 'f94044c605e7b64099c71e7a733d465b', '1c099b8a91b9ed1cc64cf5280b9d3e3d', NULL, 1, 'invoicesexport', '2020-04-04_04_Clients_(Details).csv', NULL, NULL, '/home/demo/gestcomdata/invoicesexport/2020-04-04_04_Clients_(Details).csv', '', '', NULL, 1, 'unknown', NULL, '2021-09-07 14:36:36', '2021-09-07 12:36:36', 2, NULL, NULL, NULL, NULL, NULL),
	(123, '3f1a18310f26e8c1480aa4813df3178a', '8437455c0bd5c15493f9a2dac8862d48', NULL, 1, 'invoicesexport', '2019-05-28_04_Clients_(Details).csv', NULL, NULL, '/home/demo/gestcomdata/invoicesexport/2019-05-28_04_Clients_(Details).csv', '', '', NULL, 2, 'unknown', NULL, '2021-09-07 14:36:36', '2021-09-07 12:36:36', 2, NULL, NULL, NULL, NULL, NULL),
	(124, '5d7034bdc8f61a2804a2a97c6f8a4898', '97d3a5cd3c43db1ed492d4f170c6bc79', NULL, 1, 'facture/(PROV27)', '(PROV27).pdf', 'facture', 27, '', '', '', NULL, 1, 'generated', NULL, '2021-09-12 23:00:07', '2021-09-12 21:00:07', 1, NULL, NULL, NULL, NULL, NULL),
	(125, 'f0257c594b3fd2febf8e8baee89ea043', '03324fa435e5af7effd5e4428d6e7f2f', NULL, 1, 'customersowed', '2021-09-24_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-09-24_DURAND_Michel.pdf', '', '', NULL, 89, 'unknown', NULL, '2021-09-24 16:22:36', '2021-09-24 14:22:36', 2, NULL, NULL, NULL, NULL, NULL),
	(126, 'e9042ccefd546b159e4445455166c2b5', '3e11b7b79a1cfd16e08a217eb51fa643', NULL, 1, 'customersowed', '2021-09-30_DUPOND_Xavier.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-09-30_DUPOND_Xavier.pdf', '', '', NULL, 90, 'unknown', NULL, '2021-09-24 16:24:08', '2021-09-24 14:24:08', 2, NULL, NULL, NULL, NULL, NULL),
	(127, '2004b0650929e67fd7428d80e03aa83c', '7c9c175216e0808ac13a76ea8cec5339', NULL, 1, 'customersowed', '2021-10-05.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-10-05.pdf', '', '', NULL, 91, 'unknown', NULL, '2021-10-05 16:53:24', '2021-10-05 14:53:24', 2, NULL, NULL, NULL, NULL, NULL),
	(128, '3d48d9f193ff486e37c420afe385f0ce', 'c4af479ff4392a6437b96ebcc47d1fba', NULL, 1, 'customersowed', '2021-10-05_ALLARD_Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-10-05_ALLARD_Gerard.pdf', '', '', NULL, 92, 'unknown', NULL, '2021-10-05 16:54:10', '2021-10-05 14:54:10', 2, NULL, NULL, NULL, NULL, NULL),
	(129, 'adb035af2a7d0900e4deabdd47a20f91', '1d85d7347838f69eb11b903c551939ab', NULL, 1, 'facture/FA210016', 'FA210016.pdf', 'facture', 28, '', '', '', NULL, 1, 'generated', NULL, '2021-10-12 23:00:07', '2022-06-20 16:42:53', 1, 1, NULL, NULL, NULL, NULL),
	(130, '5a8276a47fbe8eb595b973f1ea16aecf', '76b237d5a6a40731c0d5d103a2b506d5', NULL, 1, 'customersowed', '2021-11-16.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-11-16.pdf', '', '', NULL, 93, 'unknown', NULL, '2021-11-16 10:56:00', '2021-11-16 09:56:00', 2, NULL, NULL, NULL, NULL, NULL),
	(131, 'c18b2c1efc11f87ea56c008a2d5d2bde', '78b26e03ee853610f69be348d736a55c', NULL, 1, 'customersowed', '2021-11-23.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-11-23.pdf', '', '', NULL, 94, 'unknown', NULL, '2021-11-23 15:35:54', '2021-11-23 14:35:54', 2, NULL, NULL, NULL, NULL, NULL),
	(132, '8382b7e21cb24ba0833f644e5f4ea284', '7c360451d9541d5d3e4a7e5f5c0168ae', NULL, 1, 'facture/FA210011', 'FA210011.pdf', 'facture', 29, '', '', '', NULL, 1, 'generated', NULL, '2021-11-24 12:20:57', '2021-11-24 11:21:04', 2, 2, NULL, NULL, NULL, NULL),
	(133, '855e62407ffcfdb23d9783e7028de22d', '823f48bb827fbccbdf60f3eb3adc4bb7', NULL, 1, 'facture/FA210012', 'FA210012.pdf', 'facture', 30, '', '', '', NULL, 1, 'generated', NULL, '2021-11-24 12:21:32', '2021-11-24 11:21:39', 2, 2, NULL, NULL, NULL, NULL),
	(134, '225b1e8eb2571f48f210be597def8701', '5c0f4143ab4d1001bc4d52acf5eb87e6', NULL, 1, 'customersowed', '2021-11-24.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-11-24.pdf', '', '', NULL, 95, 'unknown', NULL, '2021-11-24 12:22:05', '2021-11-24 11:22:05', 2, NULL, NULL, NULL, NULL, NULL),
	(135, 'c65e3f67bf709f148b09ed210f24e365', '71ddad66e9f3f7df44cec8a5fd079851', NULL, 1, 'customersowed', '2021-11-24_FERRAND.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-11-24_FERRAND.pdf', '', '', NULL, 96, 'unknown', NULL, '2021-11-24 12:24:16', '2021-11-24 11:24:16', 2, NULL, NULL, NULL, NULL, NULL),
	(136, '7baa02c857db028eb32a3a73cb865a41', '253e5afb798176d53e5e24bf785ef905', NULL, 1, 'customersowed', '2021-11-29.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-11-29.pdf', '', '', NULL, 97, 'unknown', NULL, '2021-11-29 00:36:14', '2021-11-28 23:36:14', 1, NULL, NULL, NULL, NULL, NULL),
	(137, 'cc0bb995960f6f579dca520ae174c5fd', '22a5d743973167c76fbff7fe7d1e0745', NULL, 1, 'facture/FA210013', 'FA210013.pdf', 'facture', 31, '', '', '', NULL, 1, 'generated', NULL, '2021-11-29 08:56:26', '2021-11-29 07:56:33', 2, 2, NULL, NULL, NULL, NULL),
	(138, 'fd72ec86ee93ab1aa7aa27c03c25549b', '60167645815884b595c2022fe50c4903', NULL, 1, 'facture/FA210014', 'FA210014.pdf', 'facture', 32, '', '', '', NULL, 1, 'generated', NULL, '2021-11-29 08:57:00', '2021-11-29 07:57:05', 2, 2, NULL, NULL, NULL, NULL),
	(139, 'b21e3fa925cc37b97f45e891b0f8c9e8', '93b6c3dd6f692e32edadc31b6bea0331', NULL, 1, 'customersowed', '2021-12-08.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-12-08.pdf', '', '', NULL, 98, 'unknown', NULL, '2021-12-08 14:49:53', '2021-12-08 13:49:53', 2, NULL, NULL, NULL, NULL, NULL),
	(140, '26bcda6ecbe9a511b25f2c159a979b4a', 'ba7b5460f8f01085f0c936998f0487b1', NULL, 1, 'propale/PR2112-0002', 'PR2112-0002.pdf', 'propal', 2, '', '', '', NULL, 1, 'generated', NULL, '2021-12-15 12:43:28', '2021-12-15 11:44:56', 2, 2, NULL, NULL, NULL, NULL),
	(141, 'fef8dc89019ece45fff3ee24873c5fbf', '070c34cf030dea2716ec0d92ee1fb6bd', NULL, 1, 'customersowed', '2021-12-24.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-12-24.pdf', '', '', NULL, 99, 'unknown', NULL, '2021-12-24 17:19:05', '2021-12-24 16:19:05', 2, NULL, NULL, NULL, NULL, NULL),
	(142, '2b381344ffdce792736deebdf9eeb462', '87363d1ff27ebdf61791b37e64f92bb4', NULL, 1, 'customersowed', '2021-12-24_ALLARD_Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-12-24_ALLARD_Gerard.pdf', '', '', NULL, 100, 'unknown', NULL, '2021-12-24 17:20:12', '2021-12-24 16:20:12', 2, NULL, NULL, NULL, NULL, NULL),
	(143, '6ea95352972e47e3f6d90c28470a2b30', 'de7009a0f05c6ecdb1068ad55b8f3080', NULL, 1, 'customersowed', '2022-01-07.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-01-07.pdf', '', '', NULL, 101, 'unknown', NULL, '2022-01-07 22:43:29', '2022-01-07 21:43:29', 2, NULL, NULL, NULL, NULL, NULL),
	(144, '8812ac218009a60a9a9d686ca3250362', '84692d6c94a5b59d18a296596d61f06d', NULL, 1, 'customersowed', '2022-01-13_BRADANT.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-01-13_BRADANT.pdf', '', '', NULL, 102, 'unknown', NULL, '2022-01-13 21:44:05', '2022-01-13 20:44:05', 2, NULL, NULL, NULL, NULL, NULL),
	(145, '114a8042f3a897d34c381b31cbc6fb43', '91f6fdcb71f6ed82be5b23a8bb326455', NULL, 1, 'customersowed', '2022-03-24_ALLARD_Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-03-24_ALLARD_Gerard.pdf', '', '', NULL, 103, 'unknown', NULL, '2022-03-24 10:51:44', '2022-03-24 09:51:44', 2, NULL, NULL, NULL, NULL, NULL),
	(146, '764645f4ad0ff6f8c1357c95de0c3cd0', '487e78aad9703ff08673c84cbc2cac49', NULL, 1, 'customersowed', '2022-03-26_ALLARD_Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-03-26_ALLARD_Gerard.pdf', '', '', NULL, 104, 'unknown', NULL, '2022-03-26 14:30:53', '2022-03-26 13:30:53', 2, NULL, NULL, NULL, NULL, NULL),
	(147, 'c22429ee4813a225f4dc69d6df827e34', '4dd2e5538bb89ba2e023585487dc2619', NULL, 1, 'customersowed', '2021-03-31.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2021-03-31.pdf', '', '', NULL, 105, 'unknown', NULL, '2022-03-26 14:32:09', '2022-03-26 13:32:09', 2, NULL, NULL, NULL, NULL, NULL),
	(148, '42f2b813d97342ef8ceac5cdd9f1f456', 'b4eb2b0a6cfdcc0daf7e4815fbd027d5', NULL, 1, 'customersowed', '2022-03-27.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-03-27.pdf', '', '', NULL, 106, 'unknown', NULL, '2022-03-27 20:29:58', '2022-03-27 18:29:58', 2, NULL, NULL, NULL, NULL, NULL),
	(149, 'bb6e4f6cff4e907a54760a013762eff5', '869e0297c3adcd36a2949c0171caa314', NULL, 1, 'customersowed', '2022-04-03.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-04-03.pdf', '', '', NULL, 107, 'unknown', NULL, '2022-04-03 22:28:21', '2022-04-03 20:28:21', 2, NULL, NULL, NULL, NULL, NULL),
	(150, '718b109392eeb067331fb6cb2fbf39ef', '98e3d76b327f54d1bc58f17d7ae31133', NULL, 1, 'customersowed', '2022-04-03_ALLARD_Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-04-03_ALLARD_Gerard.pdf', '', '', NULL, 108, 'unknown', NULL, '2022-04-03 22:28:48', '2022-04-03 20:28:48', 2, NULL, NULL, NULL, NULL, NULL),
	(151, '6002a481a2e4e156648fc79bb0a9ea00', '562fca7b88922b57eb23a824f5c9968f', NULL, 1, 'customersowed', '2022-04-05.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-04-05.pdf', '', '', NULL, 109, 'unknown', NULL, '2022-04-04 23:48:51', '2022-04-04 21:48:51', 2, NULL, NULL, NULL, NULL, NULL),
	(152, '3287d509f9dbfae75b2953b186a95362', '85b0407e2ebead33d1d16b23c7675f14', NULL, 1, 'customersowed', '2022-05-03_DURAND_Michel.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-05-03_DURAND_Michel.pdf', '', '', NULL, 110, 'unknown', NULL, '2022-05-03 17:05:26', '2022-05-03 15:05:26', 2, NULL, NULL, NULL, NULL, NULL),
	(153, '14118a3fbb2454fbfe3638d9c8e92c36', 'f736a6fd1a14e4a68cfb540b2bfa6ce2', NULL, 1, 'customersowed', '2022-05-10.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-05-10.pdf', '', '', NULL, 111, 'unknown', NULL, '2022-05-10 22:10:34', '2022-05-10 20:10:34', 2, NULL, NULL, NULL, NULL, NULL),
	(154, 'c2af9da5aacc37a2d3e503de3cb70930', 'e64fd7befc01625df8a843d06219cf47', NULL, 1, 'customersowed', '2022-05-15.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-05-15.pdf', '', '', NULL, 112, 'unknown', NULL, '2022-05-15 09:50:38', '2022-05-15 07:50:38', 1, NULL, NULL, NULL, NULL, NULL),
	(155, '4881bbe07665173460dae5969932f73e', 'f5cb3eea0dcaa7b54bf75c06a64c9c41', NULL, 1, 'customersowed', '2022-05-30.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-05-30.pdf', '', '', NULL, 113, 'unknown', NULL, '2022-05-30 11:13:18', '2022-05-30 09:13:18', 2, NULL, NULL, NULL, NULL, NULL),
	(156, 'ddeb5597ec1e20b286f4e0a0d5279c7e', 'e97cbaebfdcfb5f2bf56d24c3e612de2', NULL, 1, 'customersowed', '2022-05-31_ALLARD_Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-05-31_ALLARD_Gerard.pdf', '', '', NULL, 114, 'unknown', NULL, '2022-05-31 13:58:55', '2022-05-31 11:58:55', 2, NULL, NULL, NULL, NULL, NULL),
	(157, 'e3030f14efa72c7efc95dc4f94666134', '6fde247153354bdedf4cac4f442bf780', NULL, 1, 'customersowed', '2022-06-01_ALLARD_Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-06-01_ALLARD_Gerard.pdf', '', '', NULL, 115, 'unknown', NULL, '2022-06-01 19:47:30', '2022-06-01 17:47:30', 2, NULL, NULL, NULL, NULL, NULL),
	(158, '47ba73e89449bd9134e869ae1cc93886', '49e7d37f8972c5fbf2aaf5fef8dc1416', NULL, 1, 'facture/FA220015', 'FA220015.pdf', 'facture', 33, '', '', '', NULL, 1, 'generated', NULL, '2022-06-20 18:42:31', '2022-08-05 07:16:03', 1, 1, NULL, NULL, NULL, NULL),
	(159, 'f741214be349587770aa199f3853093e', '268eeaa3640b4d26bd68ddeaa0c17247', NULL, 1, 'facture/AC220001', 'AC220001.pdf', 'facture', 9, '', '', '', NULL, 1, 'generated', NULL, '2022-06-20 18:44:44', '2022-06-20 16:44:48', 1, 1, NULL, NULL, NULL, NULL),
	(160, '1df7e8ba95b1fefeb4525cdf1ecf4051', '27f15ad495a99bf96792916f5d879564', NULL, 1, 'salessummaryreport', '2019_2020-11-24.pdf', NULL, NULL, '/home/demo/gestcomdata/salessummaryreport/2019_2020-11-24.pdf', '', '', NULL, 1, 'unknown', NULL, '2022-06-23 17:06:28', '2022-06-23 15:06:28', 1, NULL, NULL, NULL, NULL, NULL),
	(161, '468be2057005a91176384964493e795a', 'e49f4f8e43d6dc88a691c70719bd06e8', NULL, 1, 'salessummaryreport', '2019_2019-11-28.pdf', NULL, NULL, '/home/demo/gestcomdata/salessummaryreport/2019_2019-11-28.pdf', '', '', NULL, 2, 'unknown', NULL, '2022-06-23 17:06:28', '2022-06-23 15:06:28', 1, NULL, NULL, NULL, NULL, NULL),
	(162, 'a0d06af01c844309dfd4e2f0e1934e86', '2780faecb10f1afd82e249cbd2a3f418', NULL, 1, 'salessummaryreport', '2019_2019-08-08.pdf', NULL, NULL, '/home/demo/gestcomdata/salessummaryreport/2019_2019-08-08.pdf', '', '', NULL, 3, 'unknown', NULL, '2022-06-23 17:06:28', '2022-06-23 15:06:28', 1, NULL, NULL, NULL, NULL, NULL),
	(163, '911c38c5d239887536fb9b5bd013f955', '7bab23d86e66a0c0fd1a45efb6154d3b', NULL, 1, 'salessummaryreport', '2018_2019-06-17.pdf', NULL, NULL, '/home/demo/gestcomdata/salessummaryreport/2018_2019-06-17.pdf', '', '', NULL, 4, 'unknown', NULL, '2022-06-23 17:06:28', '2022-06-23 15:06:28', 1, NULL, NULL, NULL, NULL, NULL),
	(164, '68b08028b4f83dc3f8f792d2480f6adf', '41f00f743192fa3972e6b37894ea3880', NULL, 1, 'salessummaryreport', '2019_2019-05-27.pdf', NULL, NULL, '/home/demo/gestcomdata/salessummaryreport/2019_2019-05-27.pdf', '', '', NULL, 5, 'unknown', NULL, '2022-06-23 17:06:28', '2022-06-23 15:06:28', 1, NULL, NULL, NULL, NULL, NULL),
	(165, 'bc825fc4b7a00a33f151db64b23eeb3e', 'c51e094b22fa7437c2109d603f2e47e0', NULL, 1, 'salessummaryreport', '2019_2019-05-25.pdf', NULL, NULL, '/home/demo/gestcomdata/salessummaryreport/2019_2019-05-25.pdf', '', '', NULL, 6, 'unknown', NULL, '2022-06-23 17:06:28', '2022-06-23 15:06:28', 1, NULL, NULL, NULL, NULL, NULL),
	(166, '13130c02960fb9d4a6adbb8bd106a244', 'e58cd2aef276926f488ead41cf46fbc2', NULL, 1, 'salessummaryreport', '2019_2019-03-29.pdf', NULL, NULL, '/home/demo/gestcomdata/salessummaryreport/2019_2019-03-29.pdf', '', '', NULL, 7, 'unknown', NULL, '2022-06-23 17:06:28', '2022-06-23 15:06:28', 1, NULL, NULL, NULL, NULL, NULL),
	(168, '013bebe44c9bb7887adad020e4a5d0c9', '9cafa045468923f618c191e0be86da47', NULL, 1, 'suppliersowed', '2022-06-23.pdf', NULL, NULL, '/home/demo/gestcomdata/suppliersowed/2022-06-23.pdf', '', '', NULL, 1, 'unknown', NULL, '2022-06-23 18:10:17', '2022-06-23 16:10:17', 1, NULL, NULL, NULL, NULL, NULL),
	(169, '392f8d438206a9570b9f4f985b5ad44b', '6e826701e403dba97e6924233841b7a4', NULL, 1, 'fournisseur/facture/4/0/SI2203-0004', 'SI2203-0004.pdf', 'facture_fourn', 4, '', '', '', NULL, 1, 'generated', NULL, '2022-06-23 18:47:46', '2022-06-23 16:47:46', 1, NULL, NULL, NULL, NULL, NULL),
	(170, '1e5de9621a6fcdc76d7b35e5ef3e9050', '36b1db30a85e5418a063a0516566f6f2', NULL, 1, 'customersowed', '2022-06-26.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-06-26.pdf', '', '', NULL, 116, 'unknown', NULL, '2022-06-26 15:07:07', '2022-06-26 13:07:07', 2, NULL, NULL, NULL, NULL, NULL),
	(171, 'f6b5c8ce744cede7fd07e48ac7c04be4', 'd4c6d5f3b647b92644b364c47c4f47e5', NULL, 1, 'customersowed', '2022-06-27.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-06-27.pdf', '', '', NULL, 117, 'unknown', NULL, '2022-06-27 17:59:04', '2022-06-27 15:59:04', 2, NULL, NULL, NULL, NULL, NULL),
	(172, 'bee3d4ef4498a48eda697f6185282b94', 'dfe3d81eefbc7d81ae9f5a60637f0267', NULL, 1, 'customersowed', '2022-06-27_ALLARD_Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-06-27_ALLARD_Gerard.pdf', '', '', NULL, 118, 'unknown', NULL, '2022-06-27 22:14:11', '2022-06-27 20:14:11', 2, NULL, NULL, NULL, NULL, NULL),
	(173, '45dffe3db02f8ac5478fe0a93e87deab', '72dbce9cbec6de0c75be615b159a1a80', NULL, 1, 'customersowed', '2022-06-29.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-06-29.pdf', '', '', NULL, 119, 'unknown', NULL, '2022-06-29 17:42:42', '2022-06-29 15:42:42', 2, NULL, NULL, NULL, NULL, NULL),
	(174, 'e907238ca134019a33f1bef72b1bdc42', 'bdced74789b276d7a59f5fd367c1e38a', NULL, 1, 'invoicesexport', '2022-06-29_02_Fournisseurs_(Details).csv', NULL, NULL, '/home/demo/gestcomdata/invoicesexport/2022-06-29_02_Fournisseurs_(Details).csv', '', '', NULL, 3, 'unknown', NULL, '2022-06-29 17:44:34', '2022-06-29 15:44:34', 2, NULL, NULL, NULL, NULL, NULL),
	(175, 'fab31fa1e37a2530ba24331033f48855', '7337735e3c832bb29fa432588de03c92', NULL, 1, 'customersowed', '2022-06-29_ALLARD_Gerard.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-06-29_ALLARD_Gerard.pdf', '', '', NULL, 120, 'unknown', NULL, '2022-06-29 17:47:51', '2022-06-29 15:47:51', 2, NULL, NULL, NULL, NULL, NULL),
	(176, '8806e35dbe4ce169799bbbe80d3211fa', 'c02511e2663c1b120af693a9c9965101', NULL, 1, 'customersowed', '2022-07-01.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-07-01.pdf', '', '', NULL, 121, 'unknown', NULL, '2022-07-01 06:02:23', '2022-07-01 04:02:23', 2, NULL, NULL, NULL, NULL, NULL),
	(177, '197865bf24c2100fcc057407c478113a', '1e92dc9176b8aac54a8746fd9d739587', NULL, 1, 'customersowed', '2022-07-02.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-07-02.pdf', '', '', NULL, 122, 'unknown', NULL, '2022-07-02 00:14:57', '2022-07-01 22:14:57', 2, NULL, NULL, NULL, NULL, NULL),
	(178, '47a602ac210b62f9561dc1e1248c2203', 'a11163f12206ec78571aef92011f4ee1', NULL, 1, 'customersowed', '2022-07-06.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-07-06.pdf', '', '', NULL, 123, 'unknown', NULL, '2022-07-06 21:46:29', '2022-07-06 19:46:29', 2, NULL, NULL, NULL, NULL, NULL),
	(181, 'f2789b8c763f015cbe84100cb50ee4fd', '7215ae92aa83dfdff30a362a8602fa09', NULL, 1, 'customersowed', '2022-07-09.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-07-09.pdf', '', '', NULL, 124, 'unknown', NULL, '2022-07-09 16:04:17', '2022-07-09 14:04:17', 2, NULL, NULL, NULL, NULL, NULL),
	(182, '18996add8a2759e2585c830a3030fa9a', 'e622356514e1658fed5f3196d9d0157c', NULL, 1, 'customersowed', '2022-07-18.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-07-18.pdf', '', '', NULL, 125, 'unknown', NULL, '2022-07-18 15:05:45', '2022-07-18 13:05:45', 1, NULL, NULL, NULL, NULL, NULL),
	(183, 'cb3f3b10980d86911e77b25ba4455981', 'baf28cc4b0c6024667fb9f6146531a60', NULL, 1, 'customersowed', '2022-08-06.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-08-06.pdf', '', '', NULL, 126, 'unknown', NULL, '2022-08-06 16:34:26', '2022-08-06 14:34:26', 2, NULL, NULL, NULL, NULL, NULL),
	(184, '7be6368376eebc8d5e58c92dad19d16a', 'ed3e1a157885ebc521848ef012c5df33', NULL, 1, 'customersowed', '2022-08-17.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-08-17.pdf', '', '', NULL, 127, 'unknown', NULL, '2022-08-17 21:09:17', '2022-08-17 19:09:17', 2, NULL, NULL, NULL, NULL, NULL),
	(185, 'b676a0f3e6317d37a25f8aaa77805103', '8a61dfc8619ea7358c7719e26fd1860d', NULL, 1, 'customersowed', '2022-08-21.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-08-21.pdf', '', '', NULL, 128, 'unknown', NULL, '2022-08-21 10:14:52', '2022-08-21 08:14:52', 1, NULL, NULL, NULL, NULL, NULL),
	(189, '5c032d679da715f66e5d67717aff02ff', 'e0fd90d6d9c1a6f8176d72399dcb16ed', NULL, 1, 'suppliersowed', '2022-08-21.pdf', NULL, NULL, '/home/demo/gestcomdata/suppliersowed/2022-08-21.pdf', '', '', NULL, 2, 'unknown', NULL, '2022-08-21 10:18:07', '2022-08-21 08:18:07', 1, NULL, NULL, NULL, NULL, NULL),
	(190, '41605af40b507b5c415a79e4b0029207', '67207e02a3c7daa55be6fbf8fde9765f', NULL, 1, 'facture/FA220022', 'FA220022.pdf', 'facture', 34, '', '', '', NULL, 1, 'generated', NULL, '2022-08-22 18:50:59', '2022-08-22 16:51:34', 1, 1, NULL, NULL, NULL, NULL),
	(191, 'e2fad4f88f5204160b796a2ae61a1127', '14694d8b67d960b863981549ebe5c77d', NULL, 1, 'customersowed', '2022-08-23_Madame_LAMBERT.pdf', NULL, NULL, '/home/demo/gestcomdata/customersowed/2022-08-23_Madame_LAMBERT.pdf', '', '', NULL, 129, 'unknown', NULL, '2022-08-23 15:59:17', '2022-08-23 13:59:17', 2, NULL, NULL, NULL, NULL, NULL);

-- Listage de la structure de table gestcom. llx_ecm_files_extrafields
CREATE TABLE IF NOT EXISTS `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) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_ecm_files_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_ecm_files_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_element_contact
CREATE TABLE IF NOT EXISTS `llx_element_contact` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datecreate` datetime DEFAULT NULL,
  `statut` smallint(6) DEFAULT 5,
  `element_id` int(11) NOT NULL,
  `fk_c_type_contact` int(11) NOT NULL,
  `fk_socpeople` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_element_contact_idx1` (`element_id`,`fk_c_type_contact`,`fk_socpeople`),
  KEY `fk_element_contact_fk_c_type_contact` (`fk_c_type_contact`),
  KEY `idx_element_contact_fk_socpeople` (`fk_socpeople`),
  CONSTRAINT `fk_element_contact_fk_c_type_contact` FOREIGN KEY (`fk_c_type_contact`) REFERENCES `llx_c_type_contact` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_element_contact : ~0 rows (environ)
INSERT INTO `llx_element_contact` (`rowid`, `datecreate`, `statut`, `element_id`, `fk_c_type_contact`, `fk_socpeople`) VALUES
	(1, '2019-06-11 19:10:07', 4, 1, 160, 1);

-- Listage de la structure de table gestcom. llx_element_element
CREATE TABLE IF NOT EXISTS `llx_element_element` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_source` int(11) NOT NULL,
  `sourcetype` varchar(32) NOT NULL,
  `fk_target` int(11) NOT NULL,
  `targettype` varchar(32) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_element_element_idx1` (`fk_source`,`sourcetype`,`fk_target`,`targettype`),
  KEY `idx_element_element_fk_target` (`fk_target`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_element_element : ~2 rows (environ)
INSERT INTO `llx_element_element` (`rowid`, `fk_source`, `sourcetype`, `fk_target`, `targettype`) VALUES
	(1, 1, 'propal', 9, 'facture'),
	(2, 1, 'propal', 10, 'facture');

-- Listage de la structure de table gestcom. llx_element_resources
CREATE TABLE IF NOT EXISTS `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,
  `duree` double DEFAULT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_element_resources_idx1` (`resource_id`,`resource_type`,`element_id`,`element_type`),
  KEY `idx_element_element_element_id` (`element_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_element_resources : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_element_tag
CREATE TABLE IF NOT EXISTS `llx_element_tag` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `lang` varchar(5) NOT NULL,
  `tag` varchar(255) NOT NULL,
  `fk_element` int(11) NOT NULL,
  `element` varchar(64) NOT NULL,
  `fk_categorie` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_element_tag` (`entity`,`lang`,`tag`,`fk_element`,`element`),
  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=latin1;

-- Listage des données de la table gestcom.llx_element_tag : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_emailcollector_emailcollector
CREATE TABLE IF NOT EXISTS `llx_emailcollector_emailcollector` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref` varchar(128) NOT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `host` varchar(255) DEFAULT NULL,
  `login` varchar(128) DEFAULT NULL,
  `password` varchar(128) DEFAULT NULL,
  `source_directory` varchar(255) NOT NULL,
  `target_directory` varchar(255) DEFAULT NULL,
  `datelastresult` datetime DEFAULT NULL,
  `codelastresult` varchar(16) DEFAULT NULL,
  `lastresult` varchar(255) 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` int(11) NOT NULL,
  `datelastok` datetime DEFAULT NULL,
  `maxemailpercollect` int(11) DEFAULT 100,
  `hostcharset` varchar(16) DEFAULT 'UTF-8',
  `position` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_emailcollector_emailcollector_ref` (`ref`,`entity`),
  KEY `idx_emailcollector_entity` (`entity`),
  KEY `idx_emailcollector_status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_emailcollector_emailcollector : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_emailcollector_emailcollectoraction
CREATE TABLE IF NOT EXISTS `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,
  `position` int(11) DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `status` int(11) NOT NULL,
  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 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_emailcollector_emailcollectoraction : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_emailcollector_emailcollectorfilter
CREATE TABLE IF NOT EXISTS `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_emailcollectorfilter_fk_emailcollector` FOREIGN KEY (`fk_emailcollector`) REFERENCES `llx_emailcollector_emailcollector` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_emailcollector_emailcollectorfilter : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_entrepot
CREATE TABLE IF NOT EXISTS `llx_entrepot` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(255) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `entity` int(11) NOT NULL DEFAULT 1,
  `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(20) DEFAULT NULL,
  `phone` varchar(20) 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 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_entrepot : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_entrepot_extrafields
CREATE TABLE IF NOT EXISTS `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,
  PRIMARY KEY (`rowid`),
  KEY `idx_entrepot_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_entrepot_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_establishment
CREATE TABLE IF NOT EXISTS `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(20) DEFAULT NULL,
  `fk_user_author` int(11) NOT NULL,
  `fk_user_mod` int(11) DEFAULT NULL,
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `status` tinyint(4) DEFAULT 1,
  `ref` varchar(30) NOT NULL,
  `label` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_establishment : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_eventorganization_conferenceorboothattendee
CREATE TABLE IF NOT EXISTS `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,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_eventorganization_conferenceorboothattendee` (`fk_project`,`email`,`fk_actioncomm`),
  KEY `idx_eventorganization_conferenceorboothattendee_rowid` (`rowid`),
  KEY `idx_eventorganization_conferenceorboothattendee_ref` (`ref`),
  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`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_eventorganization_conferenceorboothattendee : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_eventorganization_conferenceorboothattendee_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_conferenceorboothattendee_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_eventorganization_conferenceorboothattendee_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_events
CREATE TABLE IF NOT EXISTS `llx_events` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `type` varchar(32) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `dateevent` datetime DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `description` varchar(250) NOT NULL,
  `ip` varchar(250) DEFAULT NULL,
  `user_agent` varchar(255) DEFAULT NULL,
  `fk_object` int(11) DEFAULT NULL,
  `prefix_session` varchar(255) DEFAULT NULL,
  `authentication_method` varchar(64) DEFAULT NULL,
  `fk_oauth_token` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_events_dateevent` (`dateevent`)
) ENGINE=InnoDB AUTO_INCREMENT=251 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_events : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_event_element
CREATE TABLE IF NOT EXISTS `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=utf8;

-- Listage des données de la table gestcom.llx_event_element : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_expedition
CREATE TABLE IF NOT EXISTS `llx_expedition` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `ref_customer` varchar(255) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `date_delivery` datetime DEFAULT NULL,
  `date_expedition` datetime DEFAULT NULL,
  `fk_address` int(11) DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `tracking_number` varchar(50) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT 0,
  `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,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `billed` smallint(6) DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_expedition_uk_ref` (`ref`,`entity`),
  KEY `idx_expedition_fk_soc` (`fk_soc`),
  KEY `idx_expedition_fk_user_author` (`fk_user_author`),
  KEY `idx_expedition_fk_user_valid` (`fk_user_valid`),
  KEY `idx_expedition_fk_shipping_method` (`fk_shipping_method`),
  CONSTRAINT `fk_expedition_fk_shipping_method` FOREIGN KEY (`fk_shipping_method`) REFERENCES `llx_c_shipment_mode` (`rowid`),
  CONSTRAINT `fk_expedition_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_expedition_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_expedition_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_expedition : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_expeditiondet
CREATE TABLE IF NOT EXISTS `llx_expeditiondet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_expedition` int(11) NOT NULL,
  `fk_origin_line` int(11) DEFAULT NULL,
  `fk_entrepot` int(11) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `rang` int(11) DEFAULT 0,
  PRIMARY KEY (`rowid`),
  KEY `idx_expeditiondet_fk_expedition` (`fk_expedition`),
  KEY `idx_expeditiondet_fk_origin_line` (`fk_origin_line`),
  CONSTRAINT `fk_expeditiondet_fk_expedition` FOREIGN KEY (`fk_expedition`) REFERENCES `llx_expedition` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_expeditiondet : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_expeditiondet_batch
CREATE TABLE IF NOT EXISTS `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,
  PRIMARY KEY (`rowid`),
  KEY `idx_fk_expeditiondet` (`fk_expeditiondet`),
  CONSTRAINT `fk_expeditiondet_batch_fk_expeditiondet` FOREIGN KEY (`fk_expeditiondet`) REFERENCES `llx_expeditiondet` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_expeditiondet_batch : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_expeditiondet_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_expeditiondet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_expeditiondet_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_expedition_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_expedition_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_expedition_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_expedition_package
CREATE TABLE IF NOT EXISTS `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_parcel_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` smallint(6) DEFAULT 0,
  `tail_lift` smallint(6) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_expedition_package : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_expensereport
CREATE TABLE IF NOT EXISTS `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(50) 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_refuse` (`fk_user_approve`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_expensereport : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_expensereport_det
CREATE TABLE IF NOT EXISTS `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_c_exp_tax_cat` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `comments` text NOT NULL,
  `product_type` int(11) DEFAULT -1,
  `qty` double NOT NULL,
  `subprice` double(24,8) NOT NULL DEFAULT 0.00000000,
  `value_unit` double(24,8) NOT NULL,
  `remise_percent` double DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `tva_tx` double(6,3) DEFAULT NULL,
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) DEFAULT NULL,
  `total_ht` double(24,8) NOT NULL DEFAULT 0.00000000,
  `total_tva` double(24,8) NOT NULL DEFAULT 0.00000000,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) NOT NULL DEFAULT 0.00000000,
  `date` date NOT NULL,
  `info_bits` int(11) DEFAULT 0,
  `special_code` int(11) DEFAULT 0,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_facture` int(11) DEFAULT 0,
  `fk_code_ventilation` int(11) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `rule_warning_message` text DEFAULT NULL,
  `fk_ecm_files` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_expensereport_det : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_expensereport_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_expensereport_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_expensereport_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_expensereport_ik
CREATE TABLE IF NOT EXISTS `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=utf8;

-- Listage des données de la table gestcom.llx_expensereport_ik : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_expensereport_rules
CREATE TABLE IF NOT EXISTS `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=utf8;

-- Listage des données de la table gestcom.llx_expensereport_rules : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_export_compta
CREATE TABLE IF NOT EXISTS `llx_export_compta` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(12) NOT NULL,
  `date_export` datetime NOT NULL,
  `fk_user` int(11) NOT NULL,
  `note` text DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_export_compta : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_export_model
CREATE TABLE IF NOT EXISTS `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 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_export_model : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_extensivesearch_extensivesearch
CREATE TABLE IF NOT EXISTS `llx_extensivesearch_extensivesearch` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `text_to_search` varchar(99) NOT NULL,
  `searchinto` varchar(50) NOT NULL,
  `tofind` varchar(50) NOT 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,
  `extensivesearch_into` varchar(60) NOT NULL,
  `extensivesearch_tofind` varchar(60) NOT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_extensivesearch_extensivesearch_rowid` (`rowid`),
  KEY `llx_extensivesearch_extensivesearch_fk_user_creat` (`fk_user_creat`),
  CONSTRAINT `llx_extensivesearch_extensivesearch_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_extensivesearch_extensivesearch : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_extensivesearch_extensivesearch_extrafields
CREATE TABLE IF NOT EXISTS `llx_extensivesearch_extensivesearch_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_extensivesearch_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_extensivesearch_extensivesearch_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_extrafields
CREATE TABLE IF NOT EXISTS `llx_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(64) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `elementtype` varchar(64) NOT NULL DEFAULT 'member',
  `label` varchar(255) NOT NULL,
  `type` varchar(8) DEFAULT NULL,
  `size` varchar(8) DEFAULT NULL,
  `fieldcomputed` text DEFAULT NULL,
  `fielddefault` varchar(255) DEFAULT NULL,
  `fieldunique` int(11) DEFAULT 0,
  `fieldrequired` int(11) DEFAULT 0,
  `perms` varchar(255) DEFAULT NULL,
  `enabled` varchar(255) DEFAULT NULL,
  `pos` int(11) DEFAULT 0,
  `alwayseditable` int(11) DEFAULT 0,
  `param` text DEFAULT NULL,
  `list` varchar(128) DEFAULT NULL,
  `totalizable` tinyint(1) DEFAULT 0,
  `langs` varchar(64) DEFAULT NULL,
  `help` text DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `printable` int(11) DEFAULT 0,
  `ishidden` int(11) DEFAULT 0,
  `css` varchar(128) DEFAULT NULL,
  `cssview` varchar(128) DEFAULT NULL,
  `csslist` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_extrafields_name` (`name`,`entity`,`elementtype`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_facture
CREATE TABLE IF NOT EXISTS `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,
  `ref_client` varchar(255) DEFAULT NULL,
  `type` smallint(6) NOT NULL DEFAULT 0,
  `increment` varchar(10) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `datef` date DEFAULT NULL,
  `date_pointoftax` date DEFAULT NULL,
  `date_valid` 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,
  `amount` double(24,8) NOT NULL DEFAULT 0.00000000,
  `remise_percent` double DEFAULT 0,
  `remise_absolue` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `close_code` varchar(16) DEFAULT NULL,
  `close_note` varchar(128) DEFAULT NULL,
  `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,
  `module_source` varchar(32) DEFAULT NULL,
  `pos_source` varchar(32) DEFAULT NULL,
  `fk_fac_rec_source` int(11) DEFAULT NULL,
  `fk_facture_source` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_account` int(11) DEFAULT NULL,
  `fk_currency` varchar(3) DEFAULT NULL,
  `fk_cond_reglement` int(11) NOT NULL DEFAULT 1,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `date_lim_reglement` date DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `fk_transport_mode` int(11) DEFAULT NULL,
  `situation_cycle_ref` smallint(6) 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,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` 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,
  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`),
  CONSTRAINT `fk_facture_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_facture_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_facture_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_facture_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_facture_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_facture : ~34 rows (environ)
INSERT INTO `llx_facture` (`rowid`, `ref`, `entity`, `ref_ext`, `ref_int`, `ref_client`, `type`, `increment`, `fk_soc`, `datec`, `datef`, `date_pointoftax`, `date_valid`, `date_closing`, `tms`, `paye`, `amount`, `remise_percent`, `remise_absolue`, `remise`, `close_code`, `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`, `module_source`, `pos_source`, `fk_fac_rec_source`, `fk_facture_source`, `fk_projet`, `fk_account`, `fk_currency`, `fk_cond_reglement`, `fk_mode_reglement`, `date_lim_reglement`, `note_private`, `note_public`, `model_pdf`, `last_main_doc`, `fk_incoterms`, `location_incoterms`, `fk_transport_mode`, `situation_cycle_ref`, `situation_counter`, `situation_final`, `retained_warranty`, `retained_warranty_date_limit`, `retained_warranty_fk_cond_reglement`, `import_key`, `extraparams`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_tx`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`) VALUES
	(1, 'FA190001', 1, NULL, NULL, NULL, 0, NULL, 1137, '2019-04-26 17:01:48', '2019-04-26', NULL, '2019-04-26 00:00:00', NULL, '2019-06-01 09:28:48', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 7.80000000, 0.00000000, 0.00000000, 0.00000000, 39.00000000, 46.80000000, 2, 2, NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, '2019-04-27', NULL, NULL, 'crabe', 'facture/FA190001/FA190001.pdf', 0, '', NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 39.00000000, 7.80000000, 46.80000000),
	(2, 'FA190002', 1, NULL, NULL, NULL, 0, NULL, 1137, '2019-05-21 13:53:03', '2019-05-21', NULL, '2019-05-21 00:00:00', NULL, '2019-08-22 11:03:25', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 7.80000000, 0.00000000, 0.00000000, 0.00000000, 39.00000000, 46.80000000, 2, 2, NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, '2019-05-22', NULL, NULL, 'crabe', 'facture/FA190002/FA190002.pdf', 0, '', NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 39.00000000, 7.80000000, 46.80000000),
	(3, 'FA180003', 1, NULL, NULL, 'cerveceria', 0, NULL, 1136, '2019-05-31 17:42:02', '2018-12-30', NULL, '2019-05-31 00:00:00', NULL, '2019-12-11 04:49:18', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 200.00000000, 0.00000000, 0.00000000, 0.00000000, 1000.00000000, 1200.00000000, 2, 2, NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 7, '2019-01-31', NULL, NULL, 'crabe', 'facture/FA180003/FA180003.pdf', 0, '', NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 1000.00000000, 200.00000000, 1200.00000000),
	(4, 'FA190004', 1, NULL, NULL, 'Cerveceria', 0, NULL, 1134, '2019-06-11 17:22:59', '2019-06-11', NULL, '2019-06-11 00:00:00', '2020-11-27 08:50:58', '2020-11-27 07:50:58', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 78.00000000, 0.00000000, 0.00000000, 0.00000000, 390.00000000, 468.00000000, 2, 1, NULL, 1, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, '2019-06-12', NULL, NULL, 'crabe', 'facture/FA190004/FA190004.pdf', 0, '', NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 390.00000000, 78.00000000, 468.00000000),
	(5, 'FA190005', 1, NULL, NULL, NULL, 0, NULL, 1136, '2019-06-15 19:52:34', '2019-06-15', NULL, '2019-06-15 00:00:00', NULL, '2019-08-22 11:01:59', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 95.00000000, 0.00000000, 0.00000000, 0.00000000, 475.00000000, 570.00000000, 2, 2, NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 4, '2019-06-16', NULL, NULL, 'crabe', 'facture/FA190005/FA190005.pdf', 0, '', NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 475.00000000, 95.00000000, 570.00000000),
	(6, '(PROV6)', 1, NULL, NULL, NULL, 0, NULL, 1139, '2019-06-21 14:55:25', '2019-06-21', NULL, NULL, NULL, '2019-06-21 12:56:18', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 7.80000000, 0.00000000, 0.00000000, 0.00000000, 39.00000000, 46.80000000, 0, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, '2019-06-22', NULL, NULL, 'crabe', 'facture/(PROV6)/(PROV6).pdf', 0, '', NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 39.00000000, 7.80000000, 46.80000000),
	(7, 'FA190006', 1, NULL, NULL, NULL, 0, NULL, 1135, '2019-06-21 14:56:45', '2019-06-21', NULL, '2019-06-21 00:00:00', '2020-12-06 10:37:02', '2020-12-06 09:58:01', 0, 0.00000000, NULL, NULL, 0, 'discount_vat', NULL, 7.80000000, 0.00000000, 0.00000000, 0.00000000, 39.00000000, 46.80000000, 2, 2, 1, 2, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '2019-06-22', NULL, 'Escompte de 3,5 %', 'crabe', 'facture/FA190006/FA190006.pdf', 0, '', NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 39.00000000, 7.80000000, 46.80000000),
	(8, 'FA220017', 1, NULL, NULL, NULL, 0, NULL, 1140, '2019-06-21 14:58:17', '2022-05-31', NULL, '2022-06-20 18:43:43', NULL, '2022-06-20 16:43:43', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 22.80000000, 0.00000000, 0.00000000, 0.00000000, 114.00000000, 136.80000000, 1, 2, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '2022-05-31', NULL, NULL, 'crabe', 'facture/FA220017/FA220017.pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 114.00000000, 22.80000000, 136.80000000),
	(9, 'AC220001', 1, NULL, NULL, NULL, 3, NULL, 1136, '2019-08-22 13:00:22', '2022-04-22', NULL, '2022-06-20 18:44:48', NULL, '2022-06-23 17:05:48', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 7.74000000, 0.00000000, 0.00000000, 0.00000000, 38.70000000, 46.44000000, 1, 2, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 2, 7, '2022-05-22', NULL, NULL, 'crabe', 'facture/AC220001/AC220001.pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 38.70000000, 7.74000000, 46.44000000),
	(10, 'FA190007', 1, NULL, NULL, NULL, 0, NULL, 1136, '2019-08-22 13:00:53', '2019-08-22', NULL, '2019-08-22 00:00:00', '2020-07-13 17:11:49', '2020-07-13 15:11:49', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 159.56000000, 0.00000000, 0.00000000, 0.00000000, 797.80000000, 957.36000000, 2, 2, NULL, 2, 2, NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 7, '2019-08-23', NULL, NULL, 'crabe', 'facture/FA190007/FA190007.pdf', 0, '', NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 797.80000000, 159.56000000, 957.36000000),
	(11, 'FA220018', 1, NULL, NULL, NULL, 0, NULL, 1137, '2019-12-12 15:00:46', '2022-03-12', NULL, '2022-06-20 18:45:11', NULL, '2022-06-20 16:45:11', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 7.80000000, 0.00000000, 0.00000000, 0.00000000, 39.00000000, 46.80000000, 1, 2, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 6, '2022-03-13', NULL, NULL, 'crabe', 'facture/FA220018/FA220018.pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 39.00000000, 7.80000000, 46.80000000),
	(13, 'AV200001', 1, NULL, NULL, NULL, 2, NULL, 1134, '2020-08-06 17:13:27', '2020-08-06', NULL, '2020-08-06 00:00:00', '2020-08-06 17:15:14', '2022-07-15 14:32:31', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, -7.80000000, 0.00000000, 0.00000000, 0.00000000, -39.00000000, -46.80000000, 2, 2, NULL, 2, 2, NULL, NULL, NULL, 4, NULL, NULL, NULL, 0, 0, '2020-08-06', NULL, NULL, 'crabe', 'facture/AV200001/AV200001.pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 'EUR', 1.00000000, -39.00000000, -7.80000000, -46.80000000),
	(14, 'FA200008', 1, NULL, NULL, NULL, 0, NULL, 1137, '2020-11-12 10:23:23', '2020-11-12', NULL, '2020-11-12 00:00:00', NULL, '2020-11-12 09:23:29', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 5.00000000, 0.00000000, 0.00000000, 0.00000000, 25.00000000, 30.00000000, 1, 2, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 1, 0, '2020-11-13', 'G&eacute;n&eacute;r&eacute; depuis la facture mod&egrave;le r&eacute;currente Cartouche chaque mois', NULL, 'crabe', 'facture/FA200008/FA200008.pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 'EUR', 1.00000000, 25.00000000, 5.00000000, 30.00000000),
	(15, 'FA200009', 1, NULL, NULL, NULL, 0, NULL, 1136, '2020-12-06 10:44:29', '2020-12-06', NULL, '2020-12-06 00:00:00', '2020-12-06 10:51:15', '2020-12-06 09:51:15', 0, 0.00000000, NULL, NULL, 0, 'discount_vat', '10 pourcent d\'escompte', 200.00000000, 0.00000000, 0.00000000, 0.00000000, 1000.00000000, 1200.00000000, 2, 1, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 7, '2020-12-07', NULL, NULL, 'crabe', 'facture/FA200009/FA200009.pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 'EUR', 1.00000000, 1000.00000000, 200.00000000, 1200.00000000),
	(16, 'FA220019', 1, NULL, NULL, NULL, 0, NULL, 1137, '2020-12-12 22:00:03', '2022-02-28', NULL, '2022-06-20 18:45:41', NULL, '2022-06-20 16:45:41', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 5.00000000, 0.00000000, 0.00000000, 0.00000000, 25.00000000, 30.00000000, 1, 1, NULL, 1, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 1, 0, '2022-03-01', 'G&eacute;n&eacute;r&eacute; depuis la facture mod&egrave;le r&eacute;currente Cartouche chaque mois', NULL, 'crabe', 'facture/FA220019/FA220019.pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 'EUR', 1.00000000, 25.00000000, 5.00000000, 30.00000000),
	(17, 'FA200010', 1, NULL, NULL, NULL, 0, NULL, 1134, '2020-12-22 19:44:40', '2020-12-22', NULL, '2020-12-22 00:00:00', '2022-08-22 18:50:49', '2022-08-22 16:50:49', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 78.00000000, 0.00000000, 0.00000000, 0.00000000, 390.00000000, 468.00000000, 2, 1, NULL, 1, 1, NULL, NULL, NULL, NULL, 1, NULL, NULL, 1, 0, '2020-12-23', NULL, NULL, 'crabe', 'facture/FA200010/FA200010.pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 'EUR', 1.00000000, 390.00000000, 78.00000000, 468.00000000),
	(18, 'FA210020', 1, NULL, NULL, NULL, 0, NULL, 1137, '2021-01-12 22:00:02', '2021-01-12', NULL, '2022-06-20 18:46:02', NULL, '2022-06-20 16:46:02', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 5.00000000, 0.00000000, 0.00000000, 0.00000000, 25.00000000, 30.00000000, 1, 1, NULL, 1, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 1, 0, '2022-01-13', 'G&eacute;n&eacute;r&eacute; depuis la facture mod&egrave;le r&eacute;currente Cartouche chaque mois', NULL, 'crabe', 'facture/FA210020/FA210020.pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 'EUR', 1.00000000, 25.00000000, 5.00000000, 30.00000000),
	(19, 'FA210021', 1, NULL, NULL, NULL, 0, NULL, 1137, '2021-02-12 22:00:02', '2021-12-20', NULL, '2022-06-20 18:46:40', NULL, '2022-06-20 16:46:40', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 5.00000000, 0.00000000, 0.00000000, 0.00000000, 25.00000000, 30.00000000, 1, 1, NULL, 1, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 1, 0, '2021-12-21', 'G&eacute;n&eacute;r&eacute; depuis la facture mod&egrave;le r&eacute;currente Cartouche chaque mois', NULL, NULL, 'facture/FA210021/FA210021.pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 'EUR', 1.00000000, 25.00000000, 5.00000000, 30.00000000),
	(20, '(PROV20)', 1, NULL, NULL, NULL, 0, NULL, 1137, '2021-03-12 22:00:03', '2021-03-12', NULL, NULL, NULL, '2021-03-12 21:00:04', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 5.00000000, 0.00000000, 0.00000000, 0.00000000, 25.00000000, 30.00000000, 0, 1, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 1, 0, '2021-03-13', 'G&eacute;n&eacute;r&eacute; depuis la facture mod&egrave;le r&eacute;currente Cartouche chaque mois', NULL, NULL, 'facture/(PROV20)/(PROV20).pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 'EUR', 1.00000000, 25.00000000, 5.00000000, 30.00000000),
	(21, '(PROV21)', 1, NULL, NULL, NULL, 0, NULL, 1137, '2021-04-08 11:30:06', '2021-04-08', NULL, NULL, NULL, '2021-04-08 09:30:33', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 76.50000000, 0.00000000, 0.00000000, 0.00000000, 382.50000000, 459.00000000, 0, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 11, 4, '2021-04-22', NULL, NULL, 'crabe', 'facture/(PROV21)/(PROV21).pdf', 0, '', NULL, NULL, NULL, 0, 0, '2021-04-22', 0, NULL, NULL, 0, 'EUR', 1.00000000, 382.50000000, 76.50000000, 459.00000000),
	(22, '(PROV22)', 1, NULL, NULL, NULL, 0, NULL, 1137, '2021-04-12 23:00:02', '2021-04-12', NULL, NULL, NULL, '2021-04-12 21:00:03', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 5.00000000, 0.00000000, 0.00000000, 0.00000000, 25.00000000, 30.00000000, 0, 1, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 1, 0, '2021-04-13', 'G&eacute;n&eacute;r&eacute; depuis la facture mod&egrave;le r&eacute;currente Cartouche chaque mois', NULL, NULL, 'facture/(PROV22)/(PROV22).pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 'EUR', 1.00000000, 25.00000000, 5.00000000, 30.00000000),
	(23, '(PROV23)', 1, NULL, NULL, NULL, 0, NULL, 1137, '2021-05-12 23:00:03', '2021-05-12', NULL, NULL, NULL, '2021-05-12 21:00:05', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 5.00000000, 0.00000000, 0.00000000, 0.00000000, 25.00000000, 30.00000000, 0, 1, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 1, 0, '2021-05-13', 'G&eacute;n&eacute;r&eacute; depuis la facture mod&egrave;le r&eacute;currente Cartouche chaque mois', NULL, NULL, 'facture/(PROV23)/(PROV23).pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 'EUR', 1.00000000, 25.00000000, 5.00000000, 30.00000000),
	(24, '(PROV24)', 1, NULL, NULL, NULL, 0, NULL, 1137, '2021-06-12 23:00:03', '2021-06-12', NULL, NULL, NULL, '2021-06-12 21:00:04', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 5.00000000, 0.00000000, 0.00000000, 0.00000000, 25.00000000, 30.00000000, 0, 1, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 1, 0, '2021-06-13', 'G&eacute;n&eacute;r&eacute; depuis la facture mod&egrave;le r&eacute;currente Cartouche chaque mois', NULL, NULL, 'facture/(PROV24)/(PROV24).pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 'EUR', 1.00000000, 25.00000000, 5.00000000, 30.00000000),
	(25, '(PROV25)', 1, NULL, NULL, NULL, 0, NULL, 1137, '2021-07-12 23:00:04', '2021-07-12', NULL, NULL, NULL, '2021-07-29 08:40:58', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 5.00000000, 0.00000000, 0.00000000, 0.00000000, 25.00000000, 30.00000000, 0, 1, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 1, 0, '2021-07-13', 'G&eacute;n&eacute;r&eacute; depuis la facture mod&egrave;le r&eacute;currente Cartouche chaque mois', NULL, 'crabe', 'facture/(PROV25)/(PROV25).pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 'EUR', 1.00000000, 25.00000000, 5.00000000, 30.00000000),
	(26, '(PROV26)', 1, NULL, NULL, NULL, 0, NULL, 1137, '2021-08-12 23:00:04', '2021-08-12', NULL, NULL, NULL, '2021-08-12 21:00:07', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 5.00000000, 0.00000000, 0.00000000, 0.00000000, 25.00000000, 30.00000000, 0, 1, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 1, 0, '2021-08-13', 'G&eacute;n&eacute;r&eacute; depuis la facture mod&egrave;le r&eacute;currente Cartouche chaque mois', NULL, 'crabe', 'facture/(PROV26)/(PROV26).pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 'EUR', 1.00000000, 25.00000000, 5.00000000, 30.00000000),
	(27, '(PROV27)', 1, NULL, NULL, NULL, 0, NULL, 1137, '2021-09-12 23:00:04', '2021-09-12', NULL, NULL, NULL, '2021-09-12 21:00:07', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 5.00000000, 0.00000000, 0.00000000, 0.00000000, 25.00000000, 30.00000000, 0, 1, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 1, 0, '2021-09-13', 'G&eacute;n&eacute;r&eacute; depuis la facture mod&egrave;le r&eacute;currente Cartouche chaque mois', NULL, 'crabe', 'facture/(PROV27)/(PROV27).pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 'EUR', 1.00000000, 25.00000000, 5.00000000, 30.00000000),
	(28, 'FA210016', 1, NULL, NULL, NULL, 0, NULL, 1137, '2021-10-12 23:00:04', '2021-10-12', NULL, '2022-06-20 18:42:53', NULL, '2022-06-20 16:42:53', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 5.00000000, 0.00000000, 0.00000000, 0.00000000, 25.00000000, 30.00000000, 1, 1, NULL, 1, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 1, 0, '2021-10-13', 'G&eacute;n&eacute;r&eacute; depuis la facture mod&egrave;le r&eacute;currente Cartouche chaque mois', NULL, 'crabe', 'facture/FA210016/FA210016.pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 'EUR', 1.00000000, 25.00000000, 5.00000000, 30.00000000),
	(29, 'FA210011', 1, NULL, NULL, NULL, 0, NULL, 1138, '2021-11-24 12:20:37', '2021-09-24', NULL, '2021-11-24 12:21:04', NULL, '2021-11-24 11:21:04', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 2000.00000000, 0.00000000, 0.00000000, 0.00000000, 10000.00000000, 12000.00000000, 1, 2, NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 6, '2021-09-25', NULL, NULL, 'crabe', 'facture/FA210011/FA210011.pdf', 0, '', NULL, NULL, NULL, 0, 0, '2021-09-25', 0, NULL, NULL, 0, 'EUR', 1.00000000, 10000.00000000, 2000.00000000, 12000.00000000),
	(30, 'FA210012', 1, NULL, NULL, NULL, 0, NULL, 1139, '2021-11-24 12:21:25', '2021-07-24', NULL, '2021-11-24 12:21:39', NULL, '2021-11-24 11:21:39', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 2015.00000000, 0.00000000, 0.00000000, 0.00000000, 10075.00000000, 12090.00000000, 1, 2, NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0, 0, '2021-07-25', NULL, NULL, 'crabe', 'facture/FA210012/FA210012.pdf', 0, '', NULL, NULL, NULL, 0, 0, '2021-09-25', 0, NULL, NULL, 0, 'EUR', 1.00000000, 10075.00000000, 2015.00000000, 12090.00000000),
	(31, 'FA210013', 1, NULL, NULL, NULL, 0, NULL, 1137, '2021-11-29 08:56:10', '2021-11-29', NULL, '2021-11-29 08:56:33', NULL, '2021-11-29 07:56:33', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 75.00000000, 0.00000000, 0.00000000, 0.00000000, 375.00000000, 450.00000000, 1, 2, NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 2, '2021-11-30', NULL, NULL, 'crabe', 'facture/FA210013/FA210013.pdf', 0, '', NULL, NULL, NULL, 0, 0, '2021-11-30', 0, NULL, NULL, 0, 'EUR', 1.00000000, 375.00000000, 75.00000000, 450.00000000),
	(32, 'FA210014', 1, NULL, NULL, NULL, 0, NULL, 1137, '2021-11-29 08:56:46', '2021-05-29', NULL, '2021-11-29 08:57:05', NULL, '2021-11-29 07:57:05', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 275.00000000, 0.00000000, 0.00000000, 0.00000000, 1375.00000000, 1650.00000000, 1, 2, NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 2, '2021-05-30', NULL, NULL, 'crabe', 'facture/FA210014/FA210014.pdf', 0, '', NULL, NULL, NULL, 0, 0, '2021-11-30', 0, NULL, NULL, 0, 'EUR', 1.00000000, 1375.00000000, 275.00000000, 1650.00000000),
	(33, 'FA220015', 1, NULL, NULL, NULL, 0, NULL, 1140, '2022-06-20 18:42:17', '2022-06-20', NULL, '2022-06-20 18:42:29', NULL, '2022-06-20 16:42:31', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 75.00000000, 0.00000000, 0.00000000, 0.00000000, 375.00000000, 450.00000000, 1, 1, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0, 0, '2022-06-21', NULL, NULL, 'crabe', 'facture/FA220015/FA220015.pdf', 0, '', NULL, NULL, NULL, 0, 0, '2021-11-30', 0, NULL, NULL, 0, 'EUR', 1.00000000, 375.00000000, 75.00000000, 450.00000000),
	(34, 'FA220022', 1, NULL, NULL, NULL, 0, NULL, 1134, '2022-08-22 18:50:54', '2022-08-22', NULL, '2022-08-22 18:51:34', NULL, '2022-08-22 16:51:34', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 85.80000000, 0.00000000, 0.00000000, 0.00000000, 429.00000000, 514.80000000, 1, 1, NULL, 1, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 1, 0, '2022-08-23', NULL, NULL, 'crabe', 'facture/FA220022/FA220022.pdf', 0, '', NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, 0, 'EUR', 1.00000000, 429.00000000, 85.80000000, 514.80000000),
	(35, '(PROV35)', 1, NULL, NULL, NULL, 0, NULL, 1137, '2022-09-17 19:41:35', '2022-09-17', NULL, NULL, NULL, '2022-09-17 17:41:35', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, '2022-09-18', NULL, NULL, 'crabe', NULL, 0, '', NULL, NULL, NULL, 0, 0, '2022-09-18', 0, NULL, NULL, 0, 'EUR', 1.00000000, 0.00000000, 0.00000000, 0.00000000);

-- Listage de la structure de table gestcom. llx_facturedet
CREATE TABLE IF NOT EXISTS `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,
  `vat_src_code` varchar(10) DEFAULT '',
  `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,
  `remise` double DEFAULT 0,
  `fk_remise_except` int(11) DEFAULT NULL,
  `subprice` double(24,8) DEFAULT NULL,
  `price` double(24,8) DEFAULT NULL,
  `total_ht` double(24,8) DEFAULT NULL,
  `total_tva` double(24,8) DEFAULT NULL,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT NULL,
  `product_type` int(11) DEFAULT 0,
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int(11) DEFAULT 0,
  `buy_price_ht` double(24,8) DEFAULT 0.00000000,
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `fk_code_ventilation` int(11) NOT NULL DEFAULT 0,
  `special_code` int(11) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_contract_line` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `situation_percent` double DEFAULT 100,
  `fk_prev_id` int(11) DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `ref_ext` 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 `idx_facturedet_fk_code_ventilation` (`fk_code_ventilation`),
  KEY `fk_facturedet_fk_unit` (`fk_unit`),
  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=40 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_facturedet : ~38 rows (environ)
INSERT INTO `llx_facturedet` (`rowid`, `fk_facture`, `fk_parent_line`, `fk_product`, `label`, `description`, `vat_src_code`, `tva_tx`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `qty`, `remise_percent`, `remise`, `fk_remise_except`, `subprice`, `price`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `date_start`, `date_end`, `info_bits`, `buy_price_ht`, `fk_product_fournisseur_price`, `fk_code_ventilation`, `special_code`, `rang`, `fk_contract_line`, `import_key`, `situation_percent`, `fk_prev_id`, `fk_unit`, `fk_user_author`, `fk_user_modif`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_subprice`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `ref_ext`) VALUES
	(1, 1, NULL, 47, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 39.00000000, NULL, 39.00000000, 7.80000000, 0.00000000, 0.00000000, 46.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 100100400, 0, 1, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 39.00000000, 39.00000000, 7.80000000, 46.80000000, NULL),
	(2, 2, NULL, 47, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 39.00000000, NULL, 39.00000000, 7.80000000, 0.00000000, 0.00000000, 46.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 100100400, 0, 1, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 39.00000000, 39.00000000, 7.80000000, 46.80000000, NULL),
	(3, 3, NULL, NULL, NULL, 'test', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1000.00000000, NULL, 1000.00000000, 200.00000000, 0.00000000, 0.00000000, 1200.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 1000.00000000, 1000.00000000, 200.00000000, 1200.00000000, NULL),
	(4, 4, NULL, 47, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 10, 0, 0, NULL, 39.00000000, NULL, 390.00000000, 78.00000000, 0.00000000, 0.00000000, 468.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 100100400, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 39.00000000, 390.00000000, 78.00000000, 468.00000000, NULL),
	(5, 5, NULL, 52, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 475.00000000, NULL, 475.00000000, 95.00000000, 0.00000000, 0.00000000, 570.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 475.00000000, 475.00000000, 95.00000000, 570.00000000, NULL),
	(6, 6, NULL, 54, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 39.00000000, NULL, 39.00000000, 7.80000000, 0.00000000, 0.00000000, 46.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 39.00000000, 39.00000000, 7.80000000, 46.80000000, NULL),
	(7, 7, NULL, 54, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 39.00000000, NULL, 39.00000000, 7.80000000, 0.00000000, 0.00000000, 46.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 39.00000000, 39.00000000, 7.80000000, 46.80000000, NULL),
	(8, 8, NULL, 54, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 39.00000000, NULL, 39.00000000, 7.80000000, 0.00000000, 0.00000000, 46.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 39.00000000, 39.00000000, 7.80000000, 46.80000000, NULL),
	(9, 10, NULL, 54, NULL, 'Profilé alu de liaison', '', 20.000, 0.000, '0', 0.000, '0', 20, 0, 0, NULL, 39.00000000, NULL, 780.00000000, 156.00000000, 0.00000000, 0.00000000, 936.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 39.00000000, 780.00000000, 156.00000000, 936.00000000, NULL),
	(10, 10, NULL, 63, NULL, 'Mamelon laiton égal à visser 15/21', '', 20.000, 0.000, '0', 0.000, '0', 20, 0, 0, NULL, 0.89000000, NULL, 17.80000000, 3.56000000, 0.00000000, 0.00000000, 21.36000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 0.89000000, 17.80000000, 3.56000000, 21.36000000, NULL),
	(11, 11, NULL, 54, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 39.00000000, NULL, 39.00000000, 7.80000000, 0.00000000, 0.00000000, 46.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 39.00000000, 39.00000000, 7.80000000, 46.80000000, NULL),
	(12, 8, NULL, 57, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 75.00000000, NULL, 75.00000000, 15.00000000, 0.00000000, 0.00000000, 90.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 75.00000000, 75.00000000, 15.00000000, 90.00000000, NULL),
	(13, 13, NULL, 54, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, -39.00000000, NULL, -39.00000000, -7.80000000, 0.00000000, 0.00000000, -46.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', -39.00000000, -39.00000000, -7.80000000, -46.80000000, NULL),
	(15, 14, NULL, 56, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 25.00000000, NULL, 25.00000000, 5.00000000, 0.00000000, 0.00000000, 30.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 25.00000000, 25.00000000, 5.00000000, 30.00000000, NULL),
	(16, 15, NULL, NULL, NULL, 'test', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1000.00000000, NULL, 1000.00000000, 200.00000000, 0.00000000, 0.00000000, 1200.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 1000.00000000, 1000.00000000, 200.00000000, 1200.00000000, NULL),
	(17, 16, NULL, 56, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 25.00000000, NULL, 25.00000000, 5.00000000, 0.00000000, 0.00000000, 30.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 25.00000000, 25.00000000, 5.00000000, 30.00000000, NULL),
	(18, 17, NULL, 47, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 10, 0, 0, NULL, 39.00000000, NULL, 390.00000000, 78.00000000, 0.00000000, 0.00000000, 468.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 39.00000000, 390.00000000, 78.00000000, 468.00000000, NULL),
	(19, 18, NULL, 56, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 25.00000000, NULL, 25.00000000, 5.00000000, 0.00000000, 0.00000000, 30.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 25.00000000, 25.00000000, 5.00000000, 30.00000000, NULL),
	(20, 19, NULL, 56, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 25.00000000, NULL, 25.00000000, 5.00000000, 0.00000000, 0.00000000, 30.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 25.00000000, 25.00000000, 5.00000000, 30.00000000, ''),
	(21, 20, NULL, 56, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 25.00000000, NULL, 25.00000000, 5.00000000, 0.00000000, 0.00000000, 30.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 25.00000000, 25.00000000, 5.00000000, 30.00000000, ''),
	(22, 21, NULL, 49, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 382.50000000, NULL, 382.50000000, 76.50000000, 0.00000000, 0.00000000, 459.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 382.50000000, 382.50000000, 76.50000000, 459.00000000, ''),
	(23, 22, NULL, 56, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 25.00000000, NULL, 25.00000000, 5.00000000, 0.00000000, 0.00000000, 30.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 25.00000000, 25.00000000, 5.00000000, 30.00000000, ''),
	(24, 23, NULL, 56, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 25.00000000, NULL, 25.00000000, 5.00000000, 0.00000000, 0.00000000, 30.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 25.00000000, 25.00000000, 5.00000000, 30.00000000, ''),
	(25, 24, NULL, 56, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 25.00000000, NULL, 25.00000000, 5.00000000, 0.00000000, 0.00000000, 30.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 25.00000000, 25.00000000, 5.00000000, 30.00000000, ''),
	(26, 25, NULL, 56, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 25.00000000, NULL, 25.00000000, 5.00000000, 0.00000000, 0.00000000, 30.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 25.00000000, 25.00000000, 5.00000000, 30.00000000, ''),
	(27, 26, NULL, 56, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 25.00000000, NULL, 25.00000000, 5.00000000, 0.00000000, 0.00000000, 30.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 25.00000000, 25.00000000, 5.00000000, 30.00000000, ''),
	(28, 27, NULL, 56, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 25.00000000, NULL, 25.00000000, 5.00000000, 0.00000000, 0.00000000, 30.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 25.00000000, 25.00000000, 5.00000000, 30.00000000, ''),
	(29, 28, NULL, 56, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 25.00000000, NULL, 25.00000000, 5.00000000, 0.00000000, 0.00000000, 30.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 25.00000000, 25.00000000, 5.00000000, 30.00000000, ''),
	(30, 29, NULL, NULL, NULL, 'test', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 10000.00000000, NULL, 10000.00000000, 2000.00000000, 0.00000000, 0.00000000, 12000.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 10000.00000000, 10000.00000000, 2000.00000000, 12000.00000000, ''),
	(31, 30, NULL, NULL, NULL, 'test', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 10000.00000000, NULL, 10000.00000000, 2000.00000000, 0.00000000, 0.00000000, 12000.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 10000.00000000, 10000.00000000, 2000.00000000, 12000.00000000, ''),
	(32, 30, NULL, 57, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 75.00000000, NULL, 75.00000000, 15.00000000, 0.00000000, 0.00000000, 90.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 75.00000000, 75.00000000, 15.00000000, 90.00000000, ''),
	(33, 31, NULL, 56, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 15, 0, 0, NULL, 25.00000000, NULL, 375.00000000, 75.00000000, 0.00000000, 0.00000000, 450.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 25.00000000, 375.00000000, 75.00000000, 450.00000000, ''),
	(34, 32, NULL, 56, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 15, 0, 0, NULL, 25.00000000, NULL, 375.00000000, 75.00000000, 0.00000000, 0.00000000, 450.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 25.00000000, 375.00000000, 75.00000000, 450.00000000, ''),
	(35, 32, NULL, NULL, NULL, 'test', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1000.00000000, NULL, 1000.00000000, 200.00000000, 0.00000000, 0.00000000, 1200.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 2, 2, 0, 'EUR', 1000.00000000, 1000.00000000, 200.00000000, 1200.00000000, ''),
	(36, 33, NULL, 56, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 15, 0, 0, NULL, 25.00000000, NULL, 375.00000000, 75.00000000, 0.00000000, 0.00000000, 450.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 25.00000000, 375.00000000, 75.00000000, 450.00000000, ''),
	(37, 9, NULL, 70, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 3, 0, 0, NULL, 12.90000000, NULL, 38.70000000, 7.74000000, 0.00000000, 0.00000000, 46.44000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 12.90000000, 38.70000000, 7.74000000, 46.44000000, ''),
	(38, 34, NULL, 47, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 10, 0, 0, NULL, 39.00000000, NULL, 390.00000000, 78.00000000, 0.00000000, 0.00000000, 468.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 39.00000000, 390.00000000, 78.00000000, 468.00000000, ''),
	(39, 34, NULL, 54, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 39.00000000, NULL, 39.00000000, 7.80000000, 0.00000000, 0.00000000, 46.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 39.00000000, 39.00000000, 7.80000000, 46.80000000, '');

-- Listage de la structure de table gestcom. llx_facturedet_extrafields
CREATE TABLE IF NOT EXISTS `llx_facturedet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facturedet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_facturedet_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_facturedet_rec
CREATE TABLE IF NOT EXISTS `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,
  `vat_src_code` varchar(10) DEFAULT '',
  `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,
  `remise` double DEFAULT 0,
  `subprice` double(24,8) DEFAULT NULL,
  `price` double(24,8) DEFAULT NULL,
  `total_ht` double(24,8) DEFAULT NULL,
  `total_tva` double(24,8) DEFAULT NULL,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT NULL,
  `date_start_fill` int(11) DEFAULT 0,
  `date_end_fill` int(11) DEFAULT 0,
  `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_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,
  `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,
  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=2 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_facturedet_rec : ~0 rows (environ)
INSERT INTO `llx_facturedet_rec` (`rowid`, `fk_facture`, `fk_parent_line`, `fk_product`, `product_type`, `label`, `description`, `vat_src_code`, `tva_tx`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `qty`, `remise_percent`, `remise`, `subprice`, `price`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `date_start_fill`, `date_end_fill`, `info_bits`, `special_code`, `rang`, `fk_contract_line`, `fk_unit`, `import_key`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_subprice`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `buy_price_ht`, `fk_product_fournisseur_price`, `fk_user_author`, `fk_user_modif`) VALUES
	(1, 1, NULL, 56, 0, NULL, '', '', 20.000, 0.000, '0', 0.000, '0', 1, 0, NULL, 25.00000000, 25.00000000, 25.00000000, 5.00000000, 0.00000000, 0.00000000, 30.00000000, 0, 0, 0, 0, 1, NULL, NULL, NULL, 0, 'EUR', 25.00000000, 25.00000000, 5.00000000, 30.00000000, 0.00000000, NULL, NULL, NULL);

-- Listage de la structure de table gestcom. llx_facturedet_rec_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_facturedet_rec_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_facturedet_rec_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_facture_extrafields
CREATE TABLE IF NOT EXISTS `llx_facture_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facture_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_facture_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_facture_fourn
CREATE TABLE IF NOT EXISTS `llx_facture_fourn` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(255) 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,
  `date_pointoftax` date DEFAULT NULL,
  `date_valid` date DEFAULT NULL,
  `date_closing` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `libelle` varchar(255) DEFAULT NULL,
  `paye` smallint(6) NOT NULL DEFAULT 0,
  `amount` double(24,8) NOT NULL DEFAULT 0.00000000,
  `remise` double(24,8) DEFAULT 0.00000000,
  `close_code` varchar(16) DEFAULT NULL,
  `close_note` varchar(128) DEFAULT NULL,
  `tva` double(24,8) DEFAULT 0.00000000,
  `localtax1` double(24,8) DEFAULT 0.00000000,
  `localtax2` double(24,8) DEFAULT 0.00000000,
  `total_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,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `fk_transport_mode` int(11) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(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,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_facture_fourn_ref_supplier` (`ref_supplier`,`fk_soc`,`entity`),
  UNIQUE KEY `uk_facture_fourn_ref` (`ref`,`entity`),
  KEY `idx_facture_fourn_date_lim_reglement` (`date_lim_reglement`),
  KEY `idx_facture_fourn_fk_soc` (`fk_soc`),
  KEY `idx_facture_fourn_fk_user_author` (`fk_user_author`),
  KEY `idx_facture_fourn_fk_user_valid` (`fk_user_valid`),
  KEY `idx_facture_fourn_fk_projet` (`fk_projet`),
  CONSTRAINT `fk_facture_fourn_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_facture_fourn_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_facture_fourn_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_facture_fourn_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_facture_fourn : ~9 rows (environ)
INSERT INTO `llx_facture_fourn` (`rowid`, `ref`, `ref_supplier`, `entity`, `ref_ext`, `type`, `fk_soc`, `datec`, `datef`, `date_pointoftax`, `date_valid`, `date_closing`, `tms`, `libelle`, `paye`, `amount`, `remise`, `close_code`, `close_note`, `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`, `fk_incoterms`, `location_incoterms`, `fk_transport_mode`, `model_pdf`, `last_main_doc`, `import_key`, `extraparams`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_tx`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `fk_fac_rec_source`) VALUES
	(1, 'SI2206-0001', 'FA987654321987456', 1, NULL, 0, 1151, '2022-06-23 17:55:30', '2022-06-23', NULL, '2022-06-23', NULL, '2022-06-23 15:56:45', '', 0, 0.00000000, 0.00000000, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 549.00000000, 109.80000000, 658.80000000, 1, 1, NULL, 1, NULL, NULL, NULL, NULL, 1, NULL, '2022-06-24', '', '', 0, '', NULL, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 549.00000000, 109.80000000, 658.80000000, NULL),
	(2, 'SI2205-0002', '321654987321654', 1, NULL, 0, 1150, '2022-06-23 17:57:11', '2022-05-23', NULL, '2022-06-23', '2022-06-23 18:00:58', '2022-06-23 16:00:58', '', 1, 0.00000000, 0.00000000, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 50.75000000, 10.15000000, 60.90000000, 2, 1, NULL, 1, 1, NULL, NULL, NULL, 1, NULL, '2022-05-24', '', '', 0, '', NULL, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 50.75000000, 10.15000000, 60.90000000, NULL),
	(3, 'SI2204-0003', '65491238562477', 1, NULL, 0, 1152, '2022-06-23 18:01:33', '2022-04-03', NULL, '2022-06-23', NULL, '2022-06-23 16:02:26', '', 0, 0.00000000, 0.00000000, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 158.05000000, 31.61000000, 189.66000000, 1, 1, NULL, 1, NULL, NULL, NULL, NULL, 1, NULL, '2022-04-04', '', '', 0, '', NULL, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 158.05000000, 31.61000000, 189.66000000, NULL),
	(4, 'SI2203-0004', '129865', 1, NULL, 0, 1143, '2022-06-23 18:03:27', '2022-03-28', NULL, '2022-06-23', NULL, '2022-06-23 16:47:46', '', 0, 0.00000000, 0.00000000, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 3833.33000000, 766.66000000, 4599.99000000, 1, 1, NULL, 1, NULL, NULL, NULL, NULL, 3, NULL, '2022-04-30', '', '', 0, '', NULL, 'canelle', 'fournisseur/facture/4/0/SI2203-0004/SI2203-0004.pdf', NULL, NULL, 0, 'EUR', 1.00000000, 3833.33000000, 766.66000000, 4599.99000000, NULL),
	(5, 'SI2202-0005', '65987441295568321', 1, NULL, 0, 1149, '2022-06-23 18:05:09', '2022-02-11', NULL, '2022-06-23', NULL, '2022-06-23 16:05:38', '', 0, 0.00000000, 0.00000000, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 79.36000000, 15.87000000, 95.23000000, 1, 1, NULL, 1, NULL, NULL, NULL, NULL, 1, NULL, '2022-02-12', '', '', 0, '', NULL, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 79.36000000, 15.87000000, 95.23000000, NULL),
	(6, 'SI2201-0006', '966528774129953', 1, NULL, 0, 1147, '2022-06-23 18:06:07', '2022-01-31', NULL, '2022-06-23', NULL, '2022-06-23 16:06:57', '', 0, 0.00000000, 0.00000000, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 1000.53000000, 200.10000000, 1200.63000000, 1, 1, NULL, 1, NULL, NULL, NULL, NULL, 1, NULL, '2022-02-01', '', '', 0, '', NULL, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 1000.53000000, 200.10000000, 1200.63000000, NULL),
	(7, 'SI2203-0007', '001', 1, NULL, 0, 1153, '2022-06-23 18:07:19', '2022-03-23', NULL, '2022-06-23', NULL, '2022-06-23 16:07:45', '', 0, 0.00000000, 0.00000000, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 19.92000000, 3.98000000, 23.90000000, 1, 1, NULL, 1, NULL, NULL, NULL, NULL, 1, NULL, '2022-03-24', '', '', 0, '', NULL, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 19.92000000, 3.98000000, 23.90000000, NULL),
	(8, 'SI2204-0008', '633985471233', 1, NULL, 0, 1148, '2022-06-23 18:08:04', '2022-04-09', NULL, '2022-06-23', NULL, '2022-06-23 16:08:47', '', 0, 0.00000000, 0.00000000, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 201.38000000, 40.27000000, 241.65000000, 1, 1, NULL, 1, NULL, NULL, NULL, NULL, 1, NULL, '2022-04-10', '', '', 0, '', NULL, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 201.38000000, 40.27000000, 241.65000000, NULL),
	(9, 'SI2205-0009', 'FA-98856633214477', 1, NULL, 0, 1146, '2022-06-23 18:09:18', '2022-05-31', NULL, '2022-06-23', NULL, '2022-06-23 16:09:55', '', 0, 0.00000000, 0.00000000, NULL, NULL, 0.00000000, NULL, NULL, 41.58000000, 8.32000000, 49.90000000, 1, 1, NULL, 1, NULL, NULL, NULL, NULL, 4, NULL, '2022-07-30', '', '', 0, '', NULL, NULL, NULL, NULL, NULL, 0, 'EUR', 1.00000000, 41.58000000, 8.32000000, 49.90000000, NULL);

-- Listage de la structure de table gestcom. llx_facture_fourn_det
CREATE TABLE IF NOT EXISTS `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(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(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,
  `total_ht` double(24,8) DEFAULT NULL,
  `tva` double(24,8) DEFAULT NULL,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT NULL,
  `product_type` int(11) DEFAULT 0,
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int(11) DEFAULT 0,
  `fk_code_ventilation` int(11) NOT NULL DEFAULT 0,
  `special_code` int(11) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_fk_remise_except` (`fk_remise_except`,`fk_facture_fourn`),
  KEY `idx_facture_fourn_det_fk_facture` (`fk_facture_fourn`),
  KEY `idx_facture_fourn_det_fk_product` (`fk_product`),
  KEY `idx_facture_fourn_det_fk_code_ventilation` (`fk_code_ventilation`),
  KEY `fk_facture_fourn_det_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_facture_fourn_det_fk_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=11 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_facture_fourn_det : ~10 rows (environ)
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`, `vat_src_code`, `tva_tx`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `total_ht`, `tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `date_start`, `date_end`, `info_bits`, `fk_code_ventilation`, `special_code`, `rang`, `import_key`, `fk_unit`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_subprice`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`) VALUES
	(1, 1, NULL, NULL, '', NULL, 'Imprimante jet d\'encre multifonctions pour le bureau', 549.00000000, 658.80000000, 1, 0, NULL, '', 20.000, 0.000, '0', 0.000, '0', 549.00000000, 109.80000000, 0.00000000, 0.00000000, 658.80000000, 0, NULL, NULL, 0, 0, 0, 1, NULL, NULL, 0, 'EUR', 549.00000000, 549.00000000, 109.80000000, 658.80000000),
	(2, 2, NULL, 0, '', NULL, 'Ramette de papier A4 (500 feuilles 80g)', 4.49167000, 5.39000000, 10, 0, NULL, '', 20.000, 0.000, '', 0.000, '', 44.92000000, 8.98000000, 0.00000000, 0.00000000, 53.90000000, 0, NULL, NULL, 0, 0, 0, 1, NULL, NULL, 0, 'EUR', 4.49167000, 44.92000000, 8.98000000, 53.90000000),
	(3, 2, NULL, NULL, '', NULL, 'Frais de port', 5.83333000, 7.00000000, 1, 0, NULL, '', 20.000, 0.000, '0', 0.000, '0', 5.83000000, 1.17000000, 0.00000000, 0.00000000, 7.00000000, 1, NULL, NULL, 0, 0, 0, 2, NULL, NULL, 0, 'EUR', 5.83333000, 5.83000000, 1.17000000, 7.00000000),
	(4, 3, NULL, NULL, '', NULL, 'Siège de bureau noir', 158.05000000, 189.66000000, 1, 0, NULL, '', 20.000, 0.000, '0', 0.000, '0', 158.05000000, 31.61000000, 0.00000000, 0.00000000, 189.66000000, 0, NULL, NULL, 0, 0, 0, 1, NULL, NULL, 0, 'EUR', 158.05000000, 158.05000000, 31.61000000, 189.66000000),
	(5, 4, NULL, NULL, '', NULL, 'Chaudière à granulés De Dietrich', 3833.32500000, 4599.99000000, 1, 0, NULL, '', 20.000, 0.000, '0', 0.000, '0', 3833.33000000, 766.66000000, 0.00000000, 0.00000000, 4599.99000000, 0, NULL, NULL, 0, 0, 0, 1, NULL, NULL, 0, 'EUR', 3833.32500000, 3833.33000000, 766.66000000, 4599.99000000),
	(6, 5, NULL, NULL, '', NULL, 'Plein d\'essence', 79.35833000, 95.23000000, 1, 0, NULL, '', 20.000, 0.000, '0', 0.000, '0', 79.36000000, 15.87000000, 0.00000000, 0.00000000, 95.23000000, 0, NULL, NULL, 0, 0, 0, 1, NULL, NULL, 0, 'EUR', 79.35833000, 79.36000000, 15.87000000, 95.23000000),
	(7, 6, NULL, 0, '', NULL, 'Electricité', 1000.52500000, 1200.63000000, 1, 0, NULL, '', 20.000, 0.000, '', 0.000, '', 1000.53000000, 200.10000000, 0.00000000, 0.00000000, 1200.63000000, 0, NULL, NULL, 0, 0, 0, 1, NULL, NULL, 0, 'EUR', 1000.52500000, 1000.53000000, 200.10000000, 1200.63000000),
	(8, 7, NULL, NULL, '', NULL, 'Livre pour cadeau clientèle', 19.91667000, 23.90000000, 1, 0, NULL, '', 20.000, 0.000, '0', 0.000, '0', 19.92000000, 3.98000000, 0.00000000, 0.00000000, 23.90000000, 0, NULL, NULL, 0, 0, 0, 1, NULL, NULL, 0, 'EUR', 19.91667000, 19.92000000, 3.98000000, 23.90000000),
	(9, 8, NULL, NULL, '', NULL, 'Produits d\'entretien', 201.37500000, 241.65000000, 1, 0, NULL, '', 20.000, 0.000, '0', 0.000, '0', 201.38000000, 40.27000000, 0.00000000, 0.00000000, 241.65000000, 0, NULL, NULL, 0, 0, 0, 1, NULL, NULL, 0, 'EUR', 201.37500000, 201.38000000, 40.27000000, 241.65000000),
	(10, 9, NULL, NULL, '', NULL, 'Téléphone et Internet', 41.58333000, 49.90000000, 1, 0, NULL, '', 20.000, 0.000, '0', 0.000, '0', 41.58000000, 8.32000000, 0.00000000, 0.00000000, 49.90000000, 1, NULL, NULL, 0, 0, 0, 1, NULL, NULL, 0, 'EUR', 41.58333000, 41.58000000, 8.32000000, 49.90000000);

-- Listage de la structure de table gestcom. llx_facture_fourn_det_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_facture_fourn_det_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_facture_fourn_det_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_facture_fourn_det_rec
CREATE TABLE IF NOT EXISTS `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_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  PRIMARY KEY (`rowid`),
  KEY `fk_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 DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_facture_fourn_det_rec : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_facture_fourn_det_rec_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_facture_fourn_det_rec_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_facture_fourn_det_rec_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_facture_fourn_extrafields
CREATE TABLE IF NOT EXISTS `llx_facture_fourn_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facture_fourn_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_facture_fourn_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_facture_fourn_rec
CREATE TABLE IF NOT EXISTS `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,
  `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,
  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_date_lim_reglement` (`date_lim_reglement`),
  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`),
  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 DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_facture_fourn_rec : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_facture_fourn_rec_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_facture_fourn_rec_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_facture_fourn_rec_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_facture_rec
CREATE TABLE IF NOT EXISTS `llx_facture_rec` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `titre` varchar(200) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `suspended` int(11) DEFAULT 0,
  `amount` double(24,8) NOT NULL DEFAULT 0.00000000,
  `remise` double DEFAULT 0,
  `remise_percent` double DEFAULT 0,
  `remise_absolue` double DEFAULT 0,
  `vat_src_code` varchar(10) DEFAULT '',
  `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_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` 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,
  `fk_account` int(11) 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,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_facture_rec_uk_titre` (`titre`,`entity`),
  KEY `idx_facture_rec_fk_soc` (`fk_soc`),
  KEY `idx_facture_rec_fk_user_author` (`fk_user_author`),
  KEY `idx_facture_rec_fk_projet` (`fk_projet`),
  CONSTRAINT `fk_facture_rec_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_facture_rec_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_facture_rec_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_facture_rec : ~0 rows (environ)
INSERT INTO `llx_facture_rec` (`rowid`, `titre`, `entity`, `fk_soc`, `datec`, `tms`, `suspended`, `amount`, `remise`, `remise_percent`, `remise_absolue`, `vat_src_code`, `total_tva`, `localtax1`, `localtax2`, `revenuestamp`, `total_ht`, `total_ttc`, `fk_user_author`, `fk_user_modif`, `fk_projet`, `fk_cond_reglement`, `fk_mode_reglement`, `date_lim_reglement`, `fk_account`, `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`) VALUES
	(1, 'Cartouche chaque mois', 1, 1137, '2020-11-12 10:22:58', '2021-10-12 21:00:04', 0, 0.00000000, 0, 0, 0, '', 5.00000000, 0.00000000, 0.00000000, 0.00000000, 25.00000000, 30.00000000, 2, 1, NULL, 1, NULL, NULL, NULL, NULL, NULL, 'crabe', 0, 'EUR', 1.00000000, 25.00000000, 5.00000000, 30.00000000, 0, 1, 'm', '2021-11-12 10:22:00', '2021-10-12 23:00:04', 12, 12, 0, 1);

-- Listage de la structure de table gestcom. llx_facture_rec_extrafields
CREATE TABLE IF NOT EXISTS `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,
  PRIMARY KEY (`rowid`),
  KEY `idx_facture_rec_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_facture_rec_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_fichinter
CREATE TABLE IF NOT EXISTS `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,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_client` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `datei` date DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT 0,
  `dateo` date DEFAULT NULL,
  `datee` date DEFAULT NULL,
  `datet` date DEFAULT NULL,
  `duree` double DEFAULT NULL,
  `description` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_fichinter_ref` (`ref`,`entity`),
  KEY `idx_fichinter_fk_soc` (`fk_soc`),
  CONSTRAINT `fk_fichinter_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_fichinter : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_fichinterdet
CREATE TABLE IF NOT EXISTS `llx_fichinterdet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_fichinter` int(11) DEFAULT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `description` text DEFAULT NULL,
  `duree` int(11) DEFAULT NULL,
  `rang` int(11) DEFAULT 0,
  PRIMARY KEY (`rowid`),
  KEY `idx_fichinterdet_fk_fichinter` (`fk_fichinter`),
  CONSTRAINT `fk_fichinterdet_fk_fichinter` FOREIGN KEY (`fk_fichinter`) REFERENCES `llx_fichinter` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_fichinterdet : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_fichinterdet_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_ficheinterdet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_fichinterdet_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_fichinterdet_rec
CREATE TABLE IF NOT EXISTS `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,
  `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,
  `remise` 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,
  `fk_export_commpta` 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,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_fichinterdet_rec : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_fichinter_extrafields
CREATE TABLE IF NOT EXISTS `llx_fichinter_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_ficheinter_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_fichinter_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_fichinter_rec
CREATE TABLE IF NOT EXISTS `llx_fichinter_rec` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `titre` 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(50) 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,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_fichinter_rec_uk_titre` (`titre`,`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=utf8;

-- Listage des données de la table gestcom.llx_fichinter_rec : ~0 rows (environ)

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

-- Listage des données de la table gestcom.llx_holiday : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_holiday_config
CREATE TABLE IF NOT EXISTS `llx_holiday_config` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) DEFAULT NULL,
  `value` text DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_holiday_config` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_holiday_config : ~8 rows (environ)
INSERT INTO `llx_holiday_config` (`rowid`, `name`, `value`) VALUES
	(1, 'lastUpdate', NULL),
	(2, 'userGroup', NULL),
	(4, 'nbUser', NULL),
	(5, 'delayForRequest', '31'),
	(6, 'AlertValidatorDelay', '0'),
	(7, 'AlertValidatorSolde', '0'),
	(8, 'nbHolidayDeducted', '1'),
	(9, 'nbHolidayEveryMonth', '2.08334');

-- Listage de la structure de table gestcom. llx_holiday_events
CREATE TABLE IF NOT EXISTS `llx_holiday_events` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `name` varchar(255) NOT NULL,
  `value` text NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_holiday_name` (`name`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_holiday_events : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_holiday_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_holiday_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_holiday_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_holiday_logs
CREATE TABLE IF NOT EXISTS `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,
  `fk_type` int(11) NOT NULL,
  `type_action` varchar(255) NOT NULL,
  `prev_solde` varchar(255) NOT NULL,
  `new_solde` varchar(255) NOT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_holiday_logs : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_holiday_types
CREATE TABLE IF NOT EXISTS `llx_holiday_types` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(45) NOT NULL,
  `description` varchar(255) NOT NULL,
  `affect` int(11) NOT NULL,
  `delay` int(11) NOT NULL,
  `insertAt` datetime NOT NULL,
  `updateAt` datetime DEFAULT NULL,
  `deleteAt` datetime DEFAULT NULL,
  `nbCongesDeducted` varchar(255) NOT NULL,
  `nbCongesEveryMonth` varchar(255) NOT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_holiday_types : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_holiday_users
CREATE TABLE IF NOT EXISTS `llx_holiday_users` (
  `fk_user` int(11) NOT NULL,
  `fk_type` int(11) NOT NULL,
  `nb_holiday` double NOT NULL DEFAULT 0,
  UNIQUE KEY `uk_holiday_users` (`fk_user`,`fk_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_holiday_users : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_hrm_evaluation
CREATE TABLE IF NOT EXISTS `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,
  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 DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_hrm_evaluation : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_hrm_evaluationdet
CREATE TABLE IF NOT EXISTS `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,
  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_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_hrm_evaluationdet : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_hrm_evaluationdet_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_evaluationdet_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_hrm_evaluationdet_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_hrm_evaluation_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_evaluation_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_hrm_evaluation_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_hrm_job
CREATE TABLE IF NOT EXISTS `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 DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_hrm_job : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_hrm_job_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_job_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_hrm_job_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_hrm_job_user
CREATE TABLE IF NOT EXISTS `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 DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_hrm_job_user : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_hrm_skill
CREATE TABLE IF NOT EXISTS `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 DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_hrm_skill : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_hrm_skilldet
CREATE TABLE IF NOT EXISTS `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`),
  CONSTRAINT `llx_hrm_skilldet_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_hrm_skilldet : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_hrm_skillrank
CREATE TABLE IF NOT EXISTS `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_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_hrm_skillrank : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_hrm_skill_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_skill_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_hrm_skill_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_import_model
CREATE TABLE IF NOT EXISTS `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=7 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_import_model : ~2 rows (environ)
INSERT INTO `llx_import_model` (`rowid`, `fk_user`, `label`, `type`, `field`, `entity`) VALUES
	(4, 1, 'default', 'societe_1', '2=s.nom,3=s.name_alias,4=s.status,5=s.client,6=s.fournisseur,9=s.code_client,10=s.code_fournisseur,11=s.code_compta,12=s.code_compta_fournisseur,13=s.address,14=s.zip,15=s.town,45=s.fk_departement,18=s.fk_pays,19=s.phone,20=s.fax,21=s.url,22=s.email,24=s.siren,25=s.siret,26=s.ape,27=s.idprof4,28=s.idprof5,29=s.idprof6,30=s.tva_intra,31=s.capital,32=s.note_private,33=s.note_public,34=s.canvas,35=s.fk_typent,36=s.fk_effectif,37=s.fk_forme_juridique,46=s.fk_prospectlevel,47=s.fk_stcomm,48=s.default_lang,49=s.barcode,50=s.datec', 0),
	(6, 1, 'default', 'produit_1', '2=p.ref,3=p.label,4=p.description,5=p.url,6=p.accountancy_code_sell,7=p.accountancy_code_buy,8=p.note,9=p.length,12=p.surface,13=p.volume,14=p.weight,46=p.duration,15=p.customcode,17=p.price,18=p.price_ttc,19=p.tva_tx,20=p.tosell,21=p.tobuy,24=p.fk_product_type,25=p.finished,26=p.datec', 0);

-- Listage de la structure de table gestcom. llx_intracommreport
CREATE TABLE IF NOT EXISTS `llx_intracommreport` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `type_declaration` varchar(32) DEFAULT NULL,
  `periods` varchar(32) DEFAULT NULL,
  `mode` varchar(32) DEFAULT NULL,
  `content_xml` text DEFAULT NULL,
  `type_export` varchar(10) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_intracommreport : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_inventory
CREATE TABLE IF NOT EXISTS `llx_inventory` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT 0,
  `ref` varchar(48) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_warehouse` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT 0,
  `title` varchar(255) NOT NULL,
  `date_inventory` datetime DEFAULT NULL,
  `date_validation` datetime DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_inventory_ref` (`ref`,`entity`),
  KEY `idx_inventory_tms` (`tms`),
  KEY `idx_inventory_date_creation` (`date_creation`),
  KEY `idx_inventory_datec` (`datec`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_inventory : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_inventorydet
CREATE TABLE IF NOT EXISTS `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 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_inventorydet : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_inventory_extrafields
CREATE TABLE IF NOT EXISTS `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`),
  KEY `idx_inventory_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_inventory_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_knowledgemanagement_knowledgerecord
CREATE TABLE IF NOT EXISTS `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` text 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`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_knowledgemanagement_knowledgerecord : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_knowledgemanagement_knowledgerecord_extrafields
CREATE TABLE IF NOT EXISTS `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`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_knowledgemanagement_knowledgerecord_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_links
CREATE TABLE IF NOT EXISTS `llx_links` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datea` datetime NOT NULL,
  `url` varchar(255) NOT NULL,
  `label` varchar(255) NOT NULL,
  `objecttype` varchar(255) NOT NULL,
  `objectid` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_links` (`objectid`,`label`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_links : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_loan
CREATE TABLE IF NOT EXISTS `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_projet` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `insurance_amount` double(24,8) DEFAULT 0.00000000,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_loan : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_loan_schedule
CREATE TABLE IF NOT EXISTS `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=utf8;

-- Listage des données de la table gestcom.llx_loan_schedule : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_localtax
CREATE TABLE IF NOT EXISTS `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 DEFAULT NULL,
  `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=utf8;

-- Listage des données de la table gestcom.llx_localtax : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_mailing
CREATE TABLE IF NOT EXISTS `llx_mailing` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `statut` smallint(6) DEFAULT 0,
  `titre` varchar(128) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `sujet` varchar(128) DEFAULT NULL,
  `body` mediumtext DEFAULT NULL,
  `bgcolor` varchar(8) DEFAULT NULL,
  `bgimage` varchar(255) DEFAULT NULL,
  `cible` varchar(60) DEFAULT NULL,
  `nbemail` int(11) DEFAULT NULL,
  `email_from` varchar(160) DEFAULT NULL,
  `email_replyto` varchar(160) DEFAULT NULL,
  `email_errorsto` varchar(160) DEFAULT NULL,
  `tag` varchar(128) DEFAULT NULL,
  `date_creat` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_appro` datetime DEFAULT NULL,
  `date_envoi` datetime DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_appro` int(11) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `joined_file1` varchar(255) DEFAULT NULL,
  `joined_file2` varchar(255) DEFAULT NULL,
  `joined_file3` varchar(255) DEFAULT NULL,
  `joined_file4` varchar(255) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_mailing` (`titre`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_mailing : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_mailing_advtarget
CREATE TABLE IF NOT EXISTS `llx_mailing_advtarget` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(180) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_element` int(11) NOT NULL,
  `type_element` varchar(180) NOT NULL,
  `filtervalue` text DEFAULT NULL,
  `fk_user_author` int(11) NOT NULL,
  `datec` datetime NOT NULL,
  `fk_user_mod` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_advtargetemailing_name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_mailing_advtarget : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_mailing_cibles
CREATE TABLE IF NOT EXISTS `llx_mailing_cibles` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_mailing` int(11) NOT NULL,
  `fk_contact` int(11) NOT NULL,
  `lastname` varchar(160) DEFAULT NULL,
  `firstname` varchar(160) DEFAULT NULL,
  `email` varchar(160) NOT NULL,
  `other` varchar(255) DEFAULT NULL,
  `tag` varchar(64) DEFAULT NULL,
  `statut` smallint(6) NOT NULL DEFAULT 0,
  `source_url` varchar(255) DEFAULT NULL,
  `source_id` int(11) DEFAULT NULL,
  `source_type` varchar(16) DEFAULT NULL,
  `date_envoi` datetime DEFAULT NULL,
  `error_text` varchar(255) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_mailing_cibles` (`fk_mailing`,`email`),
  KEY `idx_mailing_cibles_email` (`email`),
  KEY `idx_mailing_cibles_tag` (`tag`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_mailing_cibles : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_mailing_unsubscribe
CREATE TABLE IF NOT EXISTS `llx_mailing_unsubscribe` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `email` varchar(255) DEFAULT NULL,
  `unsubscribegroup` varchar(128) DEFAULT '',
  `ip` varchar(128) DEFAULT NULL,
  `date_creat` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_mailing_unsubscribe` (`email`,`entity`,`unsubscribegroup`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_mailing_unsubscribe : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_menu
CREATE TABLE IF NOT EXISTS `llx_menu` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `menu_handler` varchar(16) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `module` varchar(255) DEFAULT NULL,
  `type` varchar(4) NOT NULL,
  `mainmenu` varchar(100) NOT NULL,
  `leftmenu` varchar(100) DEFAULT NULL,
  `fk_menu` int(11) NOT NULL,
  `fk_mainmenu` varchar(24) DEFAULT NULL,
  `fk_leftmenu` varchar(24) DEFAULT NULL,
  `position` int(11) NOT NULL,
  `url` varchar(255) NOT NULL,
  `target` varchar(100) DEFAULT NULL,
  `titre` varchar(255) NOT NULL,
  `prefix` varchar(255) DEFAULT NULL,
  `langs` varchar(100) DEFAULT NULL,
  `level` smallint(6) DEFAULT NULL,
  `perms` text DEFAULT NULL,
  `enabled` text DEFAULT NULL,
  `usertype` int(11) NOT NULL DEFAULT 0,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_menu_uk_menu` (`menu_handler`,`fk_menu`,`position`,`url`,`entity`),
  KEY `idx_menu_menuhandler_type` (`menu_handler`,`type`)
) ENGINE=InnoDB AUTO_INCREMENT=246 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_menu : ~32 rows (environ)
INSERT INTO `llx_menu` (`rowid`, `menu_handler`, `entity`, `module`, `type`, `mainmenu`, `leftmenu`, `fk_menu`, `fk_mainmenu`, `fk_leftmenu`, `position`, `url`, `target`, `titre`, `prefix`, `langs`, `level`, `perms`, `enabled`, `usertype`, `tms`) VALUES
	(8, 'all', 1, 'invoicesexport', 'left', 'billing', 'invoicesexport', -1, 'billing', NULL, 500, '/invoicesexport/view/invoicesexport.php', '', 'InvoicesExportPage', NULL, 'invoicesexport@invoicesexport', NULL, '$user->rights->invoicesexport->read', '$conf->invoicesexport->enabled && $conf->facture->enabled', 2, '2019-05-28 08:26:54'),
	(14, 'all', 1, 'place', 'left', 'tools', 'place', -1, 'tools', NULL, 100, '/place/index.php', '', 'Menu110110PlaceIndex', NULL, 'place@place', NULL, '$user->rights->place->read', '1', 0, '2019-06-11 16:54:20'),
	(15, 'all', 1, 'place', 'left', 'tools', NULL, -1, 'tools', 'place', 101, '/place/add.php', '', 'Menu110110PlaceAdd', NULL, 'place@place', NULL, '$user->rights->place->read', '1', 0, '2019-06-11 16:54:20'),
	(16, 'all', 1, 'place', 'left', 'tools', NULL, -1, 'tools', 'place', 102, '/place/building/list.php', '', 'Menu110110BuildingsList', NULL, 'place@place', NULL, '$user->rights->place->read', '1', 0, '2019-06-11 16:54:20'),
	(17, 'all', 1, 'place', 'left', 'tools', NULL, -1, 'tools', 'place', 103, '/place/room/list.php', '', 'Menu110110RoomsList', NULL, 'place@place', NULL, '$user->rights->place->read', '1', 0, '2019-06-11 16:54:20'),
	(87, 'eldy', 1, '', 'top', 'agenda', NULL, 0, NULL, NULL, 89, '/comm/action/index.php?action=show_month&search_filtert=-1', '', 'Agenda de tous', NULL, '', NULL, '1', '1', 2, '2020-07-21 08:40:55'),
	(156, 'all', 1, 'salessummaryreport', 'left', 'billing', 'sales_summary_report', -1, 'billing', 'customers_bills_stats', 500, '/salessummaryreport/view/sales_summary_report.php', '', 'SalesSummaryReportPage', '', 'salessummaryreport@salessummaryreport', NULL, '$user->rights->salessummaryreport->read', '$conf->salessummaryreport->enabled && $conf->facture->enabled', 2, '2022-06-23 15:06:06'),
	(159, 'all', 1, 'suppliersowed', 'left', 'billing', 'suppliers_owed_report', -1, 'billing', 'suppliers_bills_payment', 500, '/suppliersowed/view/suppliers_owed_report.php', '', 'SuppliersOwedPage', '', 'suppliersowed@suppliersowed', NULL, '$user->rights->suppliersowed->read', '$conf->suppliersowed->enabled && $conf->facture->enabled', 2, '2022-06-23 16:51:28'),
	(160, 'all', 1, 'customersowed', 'left', 'billing', 'customers_owed_report', -1, 'billing', 'customers_bills_payment', 500, '/customersowed/view/customers_owed_report.php', '', 'CustomersOwedPage', '', 'customersowed@customersowed', NULL, '$user->rights->customersowed->read', '$conf->customersowed->enabled && $conf->facture->enabled', 2, '2022-06-25 19:59:50'),
	(185, 'all', 1, 'extensivesearch', 'top', 'extensivesearch', NULL, 0, NULL, NULL, 10001, '/extensivesearch/extensivesearch_card.php', '', 'ModuleExtensiveSearchName', '<img src="/demo/custom/extensivesearch/img/extensivesearch.png" alt="" class="paddingright pictofixedwidth valignmiddle">', 'extensivesearch@extensivesearch', NULL, '$user->rights->extensivesearch->read', '$conf->extensivesearch->enabled', 0, '2022-07-04 14:02:10'),
	(186, 'all', 1, 'extensivesearch', 'left', 'extensivesearch', 'extensivesearch', -1, 'extensivesearch', NULL, 1102, '', '', 'ExtensiveSearch', '<img src="/demo/custom/extensivesearch/img/extensivesearch.png" alt="" class="paddingright pictofixedwidth valignmiddle">', 'extensivesearch@extensivesearch', NULL, '', '$conf->extensivesearch->enabled', 0, '2022-07-04 14:02:10'),
	(187, 'all', 1, 'extensivesearch', 'left', 'extensivesearch', 'extensivesearch_add', -1, 'extensivesearch', 'extensivesearch', 1103, '/extensivesearch/extensivesearch_card.php?action=create', '', 'NewExtensiveSearch', '', 'extensivesearch@extensivesearch', NULL, '', '$conf->extensivesearch->enabled', 0, '2022-07-04 14:02:10'),
	(188, 'all', 1, 'extensivesearch', 'left', 'extensivesearch', 'extensivesearch_list', -1, 'extensivesearch', 'extensivesearch', 1104, '/extensivesearch/extensivesearch_list.php', '', 'List', '', 'extensivesearch@extensivesearch', NULL, '', '$conf->extensivesearch->enabled', 0, '2022-07-04 14:02:10'),
	(227, 'all', 1, 'agenda', 'top', 'agenda', NULL, 0, NULL, NULL, 86, '/comm/action/index.php', '', 'TMenuAgenda', '<span class="fas fa-calendar-alt infobox-action paddingright pictofixedwidth" style=""></span>', 'agenda', NULL, '$user->rights->agenda->myactions->read || $user->rights->resource->read', '$conf->agenda->enabled || $conf->resource->enabled', 2, '2022-09-15 19:20:59'),
	(228, 'all', 1, 'agenda', 'left', 'agenda', NULL, 227, NULL, NULL, 100, '/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda', '', 'Actions', '<span class="fas fa-calendar-alt infobox-action paddingright pictofixedwidth" style=""></span>', 'agenda', NULL, '$user->rights->agenda->myactions->read', '$conf->agenda->enabled', 2, '2022-09-15 19:20:59'),
	(229, 'all', 1, 'agenda', 'left', 'agenda', NULL, 228, NULL, NULL, 101, '/comm/action/card.php?mainmenu=agenda&amp;leftmenu=agenda&amp;action=create', '', 'NewAction', '', 'commercial', NULL, '($user->rights->agenda->myactions->create||$user->rights->agenda->allactions->create)', '$conf->agenda->enabled', 2, '2022-09-15 19:20:59'),
	(230, 'all', 1, 'agenda', 'left', 'agenda', NULL, 228, NULL, NULL, 140, '/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda', '', 'Calendar', '', 'agenda', NULL, '$user->rights->agenda->myactions->read', '$conf->agenda->enabled', 2, '2022-09-15 19:20:59'),
	(231, 'all', 1, 'agenda', 'left', 'agenda', NULL, 230, NULL, NULL, 141, '/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filter=mine', '', 'MenuToDoMyActions', '', 'agenda', NULL, '$user->rights->agenda->myactions->read', '$conf->agenda->enabled', 2, '2022-09-15 19:20:59'),
	(232, 'all', 1, 'agenda', 'left', 'agenda', NULL, 230, NULL, NULL, 142, '/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filter=mine', '', 'MenuDoneMyActions', '', 'agenda', NULL, '$user->rights->agenda->myactions->read', '$conf->agenda->enabled', 2, '2022-09-15 19:20:59'),
	(233, 'all', 1, 'agenda', 'left', 'agenda', NULL, 230, NULL, NULL, 143, '/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filtert=-1', '', 'MenuToDoActions', '', 'agenda', NULL, '$user->rights->agenda->allactions->read', '$user->rights->agenda->allactions->read', 2, '2022-09-15 19:20:59'),
	(234, 'all', 1, 'agenda', 'left', 'agenda', NULL, 230, NULL, NULL, 144, '/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filtert=-1', '', 'MenuDoneActions', '', 'agenda', NULL, '$user->rights->agenda->allactions->read', '$user->rights->agenda->allactions->read', 2, '2022-09-15 19:20:59'),
	(235, 'all', 1, 'agenda', 'left', 'agenda', NULL, 228, NULL, NULL, 110, '/comm/action/list.php?mode=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda', '', 'List', '', 'agenda', NULL, '$user->rights->agenda->myactions->read', '$conf->agenda->enabled', 2, '2022-09-15 19:20:59'),
	(236, 'all', 1, 'agenda', 'left', 'agenda', NULL, 235, NULL, NULL, 111, '/comm/action/list.php?mode=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filter=mine', '', 'MenuToDoMyActions', '', 'agenda', NULL, '$user->rights->agenda->myactions->read', '$conf->agenda->enabled', 2, '2022-09-15 19:20:59'),
	(237, 'all', 1, 'agenda', 'left', 'agenda', NULL, 235, NULL, NULL, 112, '/comm/action/list.php?mode=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filter=mine', '', 'MenuDoneMyActions', '', 'agenda', NULL, '$user->rights->agenda->myactions->read', '$conf->agenda->enabled', 2, '2022-09-15 19:20:59'),
	(238, 'all', 1, 'agenda', 'left', 'agenda', NULL, 235, NULL, NULL, 113, '/comm/action/list.php?mode=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filtert=-1', '', 'MenuToDoActions', '', 'agenda', NULL, '$user->rights->agenda->allactions->read', '$user->rights->agenda->allactions->read', 2, '2022-09-15 19:20:59'),
	(239, 'all', 1, 'agenda', 'left', 'agenda', NULL, 235, NULL, NULL, 114, '/comm/action/list.php?mode=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filtert=-1', '', 'MenuDoneActions', '', 'agenda', NULL, '$user->rights->agenda->allactions->read', '$user->rights->agenda->allactions->read', 2, '2022-09-15 19:20:59'),
	(240, 'all', 1, 'agenda', 'left', 'agenda', NULL, 228, NULL, NULL, 160, '/comm/action/rapport/index.php?mainmenu=agenda&amp;leftmenu=agenda', '', 'Reportings', '', 'agenda', NULL, '$user->rights->agenda->allactions->read', '$conf->agenda->enabled', 2, '2022-09-15 19:20:59'),
	(241, 'all', 1, 'agenda', 'left', 'agenda', NULL, 228, NULL, NULL, 170, '/categories/index.php?mainmenu=agenda&amp;leftmenu=agenda&type=10', '', 'Categories', '', 'agenda', NULL, '$user->rights->agenda->allactions->read', '$conf->categorie->enabled', 2, '2022-09-15 19:20:59'),
	(242, 'all', 1, 'cron', 'left', 'home', NULL, -1, 'home', 'admintools', 200, '/cron/list.php?leftmenu=admintools', '', 'CronList', '', 'cron', NULL, '$user->rights->cron->read', '$conf->cron->enabled && preg_match(\'/^(admintools|all)/\', $leftmenu)', 2, '2022-09-15 19:20:59'),
	(243, 'all', 1, 'resource', 'left', 'agenda', 'resource', -1, 'agenda', NULL, 100, '/resource/list.php', '', 'MenuResourceIndex', '<span class="fas fa-laptop-house  em092 infobox-action paddingright pictofixedwidth em92" style=""></span>', 'resource', NULL, '$user->rights->resource->read', '1', 0, '2022-09-15 19:20:59'),
	(244, 'all', 1, 'resource', 'left', 'agenda', 'resource_add', -1, 'agenda', 'resource', 101, '/resource/card.php?action=create', '', 'MenuResourceAdd', '', 'resource', NULL, '$user->rights->resource->write', '1', 0, '2022-09-15 19:20:59'),
	(245, 'all', 1, 'resource', 'left', 'agenda', 'resource_list', -1, 'agenda', 'resource', 102, '/resource/list.php', '', 'List', '', 'resource', NULL, '$user->rights->resource->read', '1', 0, '2022-09-15 19:20:59');

-- Listage de la structure de table gestcom. llx_mrp_mo
CREATE TABLE IF NOT EXISTS `llx_mrp_mo` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) NOT NULL DEFAULT '(PROV)',
  `entity` int(11) NOT NULL DEFAULT 1,
  `label` varchar(255) DEFAULT NULL,
  `qty` double NOT NULL,
  `fk_warehouse` int(11) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `date_valid` datetime DEFAULT 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_user_valid` int(11) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` int(11) NOT NULL,
  `fk_product` int(11) NOT NULL,
  `date_start_planned` datetime DEFAULT NULL,
  `date_end_planned` datetime DEFAULT NULL,
  `fk_bom` int(11) DEFAULT NULL,
  `fk_project` int(11) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `mrptype` int(11) DEFAULT 0,
  `fk_parent_line` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_mrp_mo_ref` (`ref`),
  KEY `idx_mrp_mo_entity` (`entity`),
  KEY `idx_mrp_mo_fk_soc` (`fk_soc`),
  KEY `fk_mrp_mo_fk_user_creat` (`fk_user_creat`),
  KEY `idx_mrp_mo_status` (`status`),
  KEY `idx_mrp_mo_fk_product` (`fk_product`),
  KEY `idx_mrp_mo_date_start_planned` (`date_start_planned`),
  KEY `idx_mrp_mo_date_end_planned` (`date_end_planned`),
  KEY `idx_mrp_mo_fk_bom` (`fk_bom`),
  KEY `idx_mrp_mo_fk_project` (`fk_project`),
  CONSTRAINT `fk_mrp_mo_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_mrp_mo : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_mrp_mo_extrafields
CREATE TABLE IF NOT EXISTS `llx_mrp_mo_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_mrp_mo_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_mrp_mo_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_mrp_production
CREATE TABLE IF NOT EXISTS `llx_mrp_production` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_mo` int(11) NOT NULL,
  `origin_id` int(11) DEFAULT NULL,
  `origin_type` varchar(10) DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT 0,
  `fk_product` int(11) NOT NULL,
  `fk_warehouse` int(11) DEFAULT NULL,
  `qty` double NOT NULL DEFAULT 1,
  `qty_frozen` smallint(6) DEFAULT 0,
  `disable_stock_change` smallint(6) DEFAULT 0,
  `batch` varchar(128) DEFAULT NULL,
  `role` varchar(10) DEFAULT NULL,
  `fk_mrp_production` int(11) DEFAULT NULL,
  `fk_stock_movement` int(11) 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,
  PRIMARY KEY (`rowid`),
  KEY `fk_mrp_production_product` (`fk_product`),
  KEY `fk_mrp_production_stock_movement` (`fk_stock_movement`),
  KEY `idx_mrp_production_fk_mo` (`fk_mo`),
  CONSTRAINT `fk_mrp_production_mo` FOREIGN KEY (`fk_mo`) REFERENCES `llx_mrp_mo` (`rowid`),
  CONSTRAINT `fk_mrp_production_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  CONSTRAINT `fk_mrp_production_stock_movement` FOREIGN KEY (`fk_stock_movement`) REFERENCES `llx_stock_mouvement` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_mrp_production : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_multicurrency
CREATE TABLE IF NOT EXISTS `llx_multicurrency` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `date_create` datetime DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `entity` int(11) DEFAULT 1,
  `fk_user` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_multicurrency : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_multicurrency_rate
CREATE TABLE IF NOT EXISTS `llx_multicurrency_rate` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `date_sync` datetime DEFAULT NULL,
  `rate` double NOT NULL DEFAULT 0,
  `fk_multicurrency` int(11) NOT NULL,
  `entity` int(11) DEFAULT 1,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_multicurrency_rate : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_notify
CREATE TABLE IF NOT EXISTS `llx_notify` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `daten` datetime DEFAULT NULL,
  `fk_action` int(11) NOT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_contact` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `type` varchar(16) DEFAULT 'email',
  `type_target` varchar(16) DEFAULT NULL,
  `objet_type` varchar(24) NOT NULL,
  `objet_id` int(11) NOT NULL,
  `email` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_notify : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_notify_def
CREATE TABLE IF NOT EXISTS `llx_notify_def` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` date DEFAULT NULL,
  `fk_action` int(11) NOT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_contact` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `type` varchar(16) DEFAULT 'email',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_notify_def : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_notify_def_object
CREATE TABLE IF NOT EXISTS `llx_notify_def_object` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `objet_type` varchar(16) DEFAULT NULL,
  `objet_id` int(11) NOT NULL,
  `type_notif` varchar(16) DEFAULT 'browser',
  `date_notif` datetime DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `moreparam` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_notify_def_object : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_oauth_state
CREATE TABLE IF NOT EXISTS `llx_oauth_state` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `service` varchar(36) DEFAULT NULL,
  `state` varchar(128) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_adherent` int(11) DEFAULT NULL,
  `entity` int(11) DEFAULT 1,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_oauth_state : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_oauth_token
CREATE TABLE IF NOT EXISTS `llx_oauth_token` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `service` varchar(36) DEFAULT NULL,
  `token` text DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `tokenstring` text DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_adherent` int(11) DEFAULT NULL,
  `entity` int(11) DEFAULT 1,
  `restricted_ips` varchar(200) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_oauth_token : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_object_lang
CREATE TABLE IF NOT EXISTS `llx_object_lang` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_object` int(11) NOT NULL DEFAULT 0,
  `type_object` varchar(32) NOT NULL,
  `property` varchar(32) NOT NULL,
  `lang` varchar(5) NOT NULL DEFAULT '0',
  `value` text DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_object_lang` (`fk_object`,`type_object`,`property`,`lang`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_object_lang : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_onlinesignature
CREATE TABLE IF NOT EXISTS `llx_onlinesignature` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `object_type` varchar(32) NOT NULL,
  `object_id` int(11) NOT NULL,
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `name` varchar(255) NOT NULL,
  `ip` varchar(128) DEFAULT NULL,
  `pathoffile` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_onlinesignature : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_opensurvey_comments
CREATE TABLE IF NOT EXISTS `llx_opensurvey_comments` (
  `id_comment` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_sondage` char(16) NOT NULL,
  `comment` text NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `usercomment` text DEFAULT NULL,
  PRIMARY KEY (`id_comment`),
  KEY `idx_id_comment` (`id_comment`),
  KEY `idx_id_sondage` (`id_sondage`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_opensurvey_comments : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_opensurvey_formquestions
CREATE TABLE IF NOT EXISTS `llx_opensurvey_formquestions` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `id_sondage` varchar(16) DEFAULT NULL,
  `question` text DEFAULT NULL,
  `available_answers` text DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_opensurvey_formquestions : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_opensurvey_sondage
CREATE TABLE IF NOT EXISTS `llx_opensurvey_sondage` (
  `id_sondage` varchar(16) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `commentaires` text DEFAULT NULL,
  `mail_admin` varchar(128) DEFAULT NULL,
  `nom_admin` varchar(64) DEFAULT NULL,
  `fk_user_creat` int(11) NOT NULL,
  `titre` text NOT NULL,
  `date_fin` datetime DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  `format` varchar(2) NOT NULL,
  `mailsonde` tinyint(4) NOT NULL DEFAULT 0,
  `allow_comments` tinyint(4) NOT NULL DEFAULT 1,
  `allow_spy` tinyint(4) NOT NULL DEFAULT 1,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `sujet` text DEFAULT NULL,
  PRIMARY KEY (`id_sondage`),
  KEY `idx_date_fin` (`date_fin`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_opensurvey_sondage : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_opensurvey_user_formanswers
CREATE TABLE IF NOT EXISTS `llx_opensurvey_user_formanswers` (
  `fk_user_survey` int(11) NOT NULL,
  `fk_question` int(11) NOT NULL,
  `reponses` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_opensurvey_user_formanswers : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_opensurvey_user_studs
CREATE TABLE IF NOT EXISTS `llx_opensurvey_user_studs` (
  `id_users` int(11) NOT NULL AUTO_INCREMENT,
  `nom` varchar(64) NOT NULL,
  `id_sondage` varchar(16) NOT NULL,
  `reponses` varchar(100) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id_users`),
  KEY `idx_opensurvey_user_studs_id_users` (`id_users`),
  KEY `idx_opensurvey_user_studs_nom` (`nom`),
  KEY `idx_opensurvey_user_studs_id_sondage` (`id_sondage`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_opensurvey_user_studs : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_overwrite_trans
CREATE TABLE IF NOT EXISTS `llx_overwrite_trans` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `lang` varchar(5) DEFAULT NULL,
  `transkey` varchar(128) DEFAULT NULL,
  `transvalue` text DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_overwrite_trans` (`lang`,`transkey`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_overwrite_trans : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_paiement
CREATE TABLE IF NOT EXISTS `llx_paiement` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) DEFAULT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT 0.00000000,
  `multicurrency_amount` double(24,8) DEFAULT 0.00000000,
  `fk_paiement` int(11) NOT NULL,
  `num_paiement` varchar(50) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `ext_payment_id` varchar(255) DEFAULT NULL,
  `ext_payment_site` varchar(128) DEFAULT NULL,
  `fk_bank` int(11) NOT NULL DEFAULT 0,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `statut` smallint(6) NOT NULL DEFAULT 0,
  `fk_export_compta` int(11) NOT NULL DEFAULT 0,
  `pos_change` double(24,8) DEFAULT 0.00000000,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_paiement : ~11 rows (environ)
INSERT INTO `llx_paiement` (`rowid`, `ref`, `ref_ext`, `entity`, `datec`, `tms`, `datep`, `amount`, `multicurrency_amount`, `fk_paiement`, `num_paiement`, `note`, `ext_payment_id`, `ext_payment_site`, `fk_bank`, `fk_user_creat`, `fk_user_modif`, `statut`, `fk_export_compta`, `pos_change`) VALUES
	(1, 'PAY1812-0001', NULL, 1, '2019-06-01 11:28:48', '2019-06-01 09:28:50', '2018-12-31 12:00:00', 46.80000000, 46.80000000, 7, '', '', NULL, NULL, 2, 1, NULL, 0, 0, 0.00000000),
	(2, 'PAY1906-0002', NULL, 1, '2019-06-01 11:33:12', '2019-06-01 09:33:14', '2019-06-01 12:00:00', 20.00000000, 20.00000000, 7, '', '', NULL, NULL, 3, 1, NULL, 0, 0, 0.00000000),
	(4, 'PAY1908-0004', NULL, 1, '2019-08-22 13:01:57', '2019-08-22 11:02:04', '2019-08-22 12:00:00', 2127.36000000, 2127.36000000, 7, '54545', '', NULL, NULL, 5, 2, NULL, 0, 0, 0.00000000),
	(5, 'PAY1908-0005', NULL, 1, '2019-08-22 13:03:25', '2019-08-22 11:03:27', '2019-08-22 12:00:00', 26.80000000, 26.80000000, 7, '', '', NULL, NULL, 6, 2, NULL, 0, 0, 0.00000000),
	(6, 'PAY1912-0006', NULL, 1, '2019-12-11 05:49:18', '2019-12-11 04:49:20', '2019-12-11 12:00:00', 600.00000000, 600.00000000, 7, '', '', NULL, NULL, 7, 2, NULL, 0, 0, 0.00000000),
	(7, 'PAY1906-0007', NULL, 1, '2020-10-02 18:02:12', '2020-10-02 16:02:13', '2019-06-15 12:00:00', 100.00000000, 100.00000000, 2, '', '', NULL, NULL, 8, 2, NULL, 0, 0, 0.00000000),
	(8, 'PAY1907-0008', NULL, 1, '2020-10-02 18:03:28', '2020-10-02 16:05:03', '2019-07-11 12:00:00', 200.00000000, 200.00000000, 7, '', '', NULL, NULL, 9, 2, NULL, 0, 0, 0.00000000),
	(10, 'PAY2004-0009', NULL, 1, '2020-11-27 08:50:58', '2020-11-27 07:50:58', '2020-04-27 12:00:00', 168.00000000, 168.00000000, 2, '', '', NULL, NULL, 11, 2, NULL, 0, 0, 0.00000000),
	(11, 'PAY2012-0010', NULL, 1, '2020-12-06 10:20:19', '2020-12-06 09:20:19', '2020-12-06 12:00:00', 20.00000000, 20.00000000, 2, '', '', NULL, NULL, 12, 1, NULL, 0, 0, 0.00000000),
	(12, 'PAY2012-0011', NULL, 1, '2020-12-06 10:48:02', '2020-12-06 09:48:02', '2020-12-06 12:00:00', 1080.00000000, 1080.00000000, 2, '', '', NULL, NULL, 13, 1, NULL, 0, 0, 0.00000000),
	(13, 'PAY2208-0012', '', 1, '2022-08-22 18:50:49', '2022-08-22 16:50:49', '2022-08-22 12:00:00', 468.00000000, 468.00000000, 7, '1234567', '', NULL, NULL, 16, 1, NULL, 0, 0, 0.00000000);

-- Listage de la structure de table gestcom. llx_paiementcharge
CREATE TABLE IF NOT EXISTS `llx_paiementcharge` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_charge` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `fk_typepaiement` int(11) NOT NULL,
  `num_paiement` varchar(50) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_paiementcharge : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_paiementfourn
CREATE TABLE IF NOT EXISTS `llx_paiementfourn` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) DEFAULT NULL,
  `entity` int(11) DEFAULT 1,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `multicurrency_amount` double(24,8) DEFAULT 0.00000000,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_paiement` int(11) NOT NULL,
  `num_paiement` varchar(50) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `statut` smallint(6) NOT NULL DEFAULT 0,
  `model_pdf` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_paiementfourn : ~2 rows (environ)
INSERT INTO `llx_paiementfourn` (`rowid`, `ref`, `entity`, `tms`, `datec`, `datep`, `amount`, `multicurrency_amount`, `fk_user_author`, `fk_user_modif`, `fk_paiement`, `num_paiement`, `note`, `fk_bank`, `statut`, `model_pdf`) VALUES
	(1, 'SPAY2206-0001', 1, '2022-06-23 16:00:58', '2022-06-23 18:00:58', '2022-06-12 12:00:00', 60.90000000, 60.90000000, 1, NULL, 6, '', '', 14, 0, NULL),
	(2, 'SPAY2203-0002', 1, '2022-06-23 16:45:10', '2022-06-23 18:45:10', '2022-03-28 12:00:00', 1000.00000000, 1000.00000000, 1, NULL, 6, '', '', 15, 0, NULL);

-- Listage de la structure de table gestcom. llx_paiementfourn_facturefourn
CREATE TABLE IF NOT EXISTS `llx_paiementfourn_facturefourn` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_paiementfourn` int(11) DEFAULT NULL,
  `fk_facturefourn` int(11) DEFAULT NULL,
  `amount` double(24,8) DEFAULT 0.00000000,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_amount` double(24,8) DEFAULT 0.00000000,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_paiementfourn_facturefourn` (`fk_paiementfourn`,`fk_facturefourn`),
  KEY `idx_paiementfourn_facturefourn_fk_facture` (`fk_facturefourn`),
  KEY `idx_paiementfourn_facturefourn_fk_paiement` (`fk_paiementfourn`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_paiementfourn_facturefourn : ~2 rows (environ)
INSERT INTO `llx_paiementfourn_facturefourn` (`rowid`, `fk_paiementfourn`, `fk_facturefourn`, `amount`, `multicurrency_code`, `multicurrency_tx`, `multicurrency_amount`) VALUES
	(1, 1, 2, 60.90000000, NULL, 1.00000000, 60.90000000),
	(2, 2, 4, 1000.00000000, NULL, 1.00000000, 1000.00000000);

-- Listage de la structure de table gestcom. llx_paiement_facture
CREATE TABLE IF NOT EXISTS `llx_paiement_facture` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_paiement` int(11) DEFAULT NULL,
  `fk_facture` int(11) DEFAULT NULL,
  `amount` double(24,8) DEFAULT 0.00000000,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_amount` double(24,8) DEFAULT 0.00000000,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_paiement_facture` (`fk_paiement`,`fk_facture`),
  KEY `idx_paiement_facture_fk_facture` (`fk_facture`),
  KEY `idx_paiement_facture_fk_paiement` (`fk_paiement`),
  CONSTRAINT `fk_paiement_facture_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_paiement_facture_fk_paiement` FOREIGN KEY (`fk_paiement`) REFERENCES `llx_paiement` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_paiement_facture : ~13 rows (environ)
INSERT INTO `llx_paiement_facture` (`rowid`, `fk_paiement`, `fk_facture`, `amount`, `multicurrency_code`, `multicurrency_tx`, `multicurrency_amount`) VALUES
	(1, 1, 1, 46.80000000, NULL, 1.00000000, 46.80000000),
	(2, 2, 2, 20.00000000, NULL, 1.00000000, 20.00000000),
	(4, 4, 3, 600.00000000, NULL, 1.00000000, 600.00000000),
	(5, 4, 5, 570.00000000, NULL, 1.00000000, 570.00000000),
	(6, 4, 10, 957.36000000, NULL, 1.00000000, 957.36000000),
	(7, 5, 2, 26.80000000, NULL, 1.00000000, 26.80000000),
	(8, 6, 3, 600.00000000, NULL, 1.00000000, 600.00000000),
	(9, 7, 4, 100.00000000, NULL, 1.00000000, 100.00000000),
	(10, 8, 4, 200.00000000, NULL, 1.00000000, 200.00000000),
	(12, 10, 4, 168.00000000, NULL, 1.00000000, 168.00000000),
	(13, 11, 7, 20.00000000, NULL, 1.00000000, 20.00000000),
	(14, 12, 15, 1080.00000000, NULL, 1.00000000, 1080.00000000),
	(15, 13, 17, 468.00000000, NULL, 1.00000000, 468.00000000);

-- Listage de la structure de table gestcom. llx_partnership
CREATE TABLE IF NOT EXISTS `llx_partnership` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) NOT NULL DEFAULT '(PROV)',
  `status` smallint(6) NOT NULL DEFAULT 0,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_member` int(11) DEFAULT NULL,
  `date_partnership_start` date NOT NULL,
  `date_partnership_end` date DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `reason_decline_or_cancel` text DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `fk_user_creat` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_modif` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `count_last_url_check_error` int(11) DEFAULT 0,
  `last_check_backlink` datetime DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `fk_type` int(11) NOT NULL DEFAULT 0,
  `url_to_check` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_fk_type_fk_soc` (`fk_type`,`fk_soc`,`date_partnership_start`),
  UNIQUE KEY `uk_fk_type_fk_member` (`fk_type`,`fk_member`,`date_partnership_start`),
  KEY `idx_partnership_rowid` (`rowid`),
  KEY `idx_partnership_ref` (`ref`),
  KEY `idx_partnership_fk_soc` (`fk_soc`),
  KEY `llx_partnership_fk_user_creat` (`fk_user_creat`),
  KEY `idx_partnership_status` (`status`),
  KEY `idx_partnership_fk_member` (`fk_member`),
  CONSTRAINT `llx_partnership_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_partnership : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_partnership_extrafields
CREATE TABLE IF NOT EXISTS `llx_partnership_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_partnership_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_partnership_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_payment_donation
CREATE TABLE IF NOT EXISTS `llx_payment_donation` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_donation` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `ext_payment_id` varchar(255) DEFAULT NULL,
  `ext_payment_site` varchar(128) DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_payment_donation : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_payment_expensereport
CREATE TABLE IF NOT EXISTS `llx_payment_expensereport` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_expensereport` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_payment_expensereport : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_payment_loan
CREATE TABLE IF NOT EXISTS `llx_payment_loan` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_loan` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount_capital` double(24,8) DEFAULT 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,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_payment_loan : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_payment_salary
CREATE TABLE IF NOT EXISTS `llx_payment_salary` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `salary` double(24,8) DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `datesp` date DEFAULT NULL,
  `dateep` date DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_salary` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_payment_salary_ref` (`num_payment`),
  KEY `idx_payment_salary_user` (`fk_user`,`entity`),
  KEY `idx_payment_salary_datep` (`datep`),
  KEY `idx_payment_salary_datesp` (`datesp`),
  KEY `idx_payment_salary_dateep` (`dateep`),
  CONSTRAINT `fk_payment_salary_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_payment_salary : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_payment_various
CREATE TABLE IF NOT EXISTS `llx_payment_various` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) DEFAULT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `sens` smallint(6) NOT NULL DEFAULT 0,
  `amount` double(24,8) NOT NULL DEFAULT 0.00000000,
  `fk_typepayment` int(11) NOT NULL,
  `accountancy_code` varchar(32) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `subledger_account` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_payment_various : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_payment_vat
CREATE TABLE IF NOT EXISTS `llx_payment_vat` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_tva` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT 0.00000000,
  `fk_typepaiement` int(11) NOT NULL,
  `num_paiement` varchar(50) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_payment_vat : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_place
CREATE TABLE IF NOT EXISTS `llx_place` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT NULL,
  `ref` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_socpeople` int(11) NOT NULL,
  `description` text DEFAULT NULL,
  `lat` float(10,6) DEFAULT NULL,
  `lng` float(10,6) DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`),
  KEY `fk_socpeople_place` (`fk_socpeople`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_place : ~0 rows (environ)
INSERT INTO `llx_place` (`rowid`, `entity`, `ref`, `fk_soc`, `fk_socpeople`, `description`, `lat`, `lng`, `note_public`, `note_private`, `fk_user_creat`, `tms`) VALUES
	(1, 1, 'ROUEN', NULL, 0, '', NULL, NULL, NULL, NULL, 1, '2019-06-11 16:55:29');

-- Listage de la structure de table gestcom. llx_place_building
CREATE TABLE IF NOT EXISTS `llx_place_building` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT NULL,
  `ref` varchar(255) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `fk_place` int(11) NOT NULL,
  `description` text DEFAULT NULL,
  `lat` float(10,6) DEFAULT NULL,
  `lng` float(10,6) DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`),
  KEY `fk_building_place` (`fk_place`),
  CONSTRAINT `fk_place_building_fk_place` FOREIGN KEY (`fk_place`) REFERENCES `llx_place` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_place_building : ~0 rows (environ)
INSERT INTO `llx_place_building` (`rowid`, `entity`, `ref`, `label`, `fk_place`, `description`, `lat`, `lng`, `note_public`, `note_private`, `fk_user_creat`, `tms`) VALUES
	(1, 1, 'Résidence A', NULL, 1, '', NULL, NULL, NULL, NULL, 1, '2019-06-11 16:56:11');

-- Listage de la structure de table gestcom. llx_place_floor
CREATE TABLE IF NOT EXISTS `llx_place_floor` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT NULL,
  `ref` varchar(255) DEFAULT NULL,
  `pos` varchar(10) DEFAULT NULL,
  `fk_building` int(11) NOT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`),
  KEY `fk_floor_building` (`fk_building`),
  CONSTRAINT `fk_place_floor_fk_building` FOREIGN KEY (`fk_building`) REFERENCES `llx_place_building` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_place_floor : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_place_room
CREATE TABLE IF NOT EXISTS `llx_place_room` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT NULL,
  `ref` varchar(255) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `fk_place` int(11) NOT NULL,
  `fk_building` int(11) NOT NULL,
  `fk_floor` int(11) DEFAULT NULL,
  `type_code` varchar(32) DEFAULT NULL,
  `capacity` int(11) DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`),
  KEY `fk_room_building` (`fk_building`),
  KEY `fk_place_room` (`fk_place`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_place_room : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_place_room_extrafields
CREATE TABLE IF NOT EXISTS `llx_place_room_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_place_room_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_place_room_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_pos_cash_fence
CREATE TABLE IF NOT EXISTS `llx_pos_cash_fence` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref` varchar(64) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `opening` double(24,8) DEFAULT 0.00000000,
  `cash` double(24,8) DEFAULT 0.00000000,
  `card` double(24,8) DEFAULT 0.00000000,
  `cheque` double(24,8) DEFAULT 0.00000000,
  `status` int(11) DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `date_valid` datetime DEFAULT NULL,
  `day_close` int(11) DEFAULT NULL,
  `month_close` int(11) DEFAULT NULL,
  `year_close` int(11) DEFAULT NULL,
  `posmodule` varchar(30) DEFAULT NULL,
  `posnumber` varchar(30) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_pos_cash_fence : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_prelevement_bons
CREATE TABLE IF NOT EXISTS `llx_prelevement_bons` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(12) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `statut` smallint(6) DEFAULT 0,
  `credite` smallint(6) DEFAULT 0,
  `note` text DEFAULT NULL,
  `date_trans` datetime DEFAULT NULL,
  `method_trans` smallint(6) DEFAULT NULL,
  `fk_user_trans` int(11) DEFAULT NULL,
  `date_credit` datetime DEFAULT NULL,
  `fk_user_credit` int(11) DEFAULT NULL,
  `type` varchar(16) DEFAULT 'debit-order',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_prelevement_bons_ref` (`ref`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_prelevement_bons : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_prelevement_facture
CREATE TABLE IF NOT EXISTS `llx_prelevement_facture` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_facture` int(11) DEFAULT NULL,
  `fk_prelevement_lignes` int(11) NOT NULL,
  `fk_facture_fourn` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_prelevement_facture_fk_prelevement_lignes` (`fk_prelevement_lignes`),
  CONSTRAINT `fk_prelevement_facture_fk_prelevement_lignes` FOREIGN KEY (`fk_prelevement_lignes`) REFERENCES `llx_prelevement_lignes` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_prelevement_facture : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_prelevement_facture_demande
CREATE TABLE IF NOT EXISTS `llx_prelevement_facture_demande` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_facture` int(11) DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `date_demande` datetime NOT NULL,
  `traite` smallint(6) DEFAULT 0,
  `date_traite` datetime DEFAULT NULL,
  `fk_prelevement_bons` int(11) DEFAULT NULL,
  `fk_user_demande` int(11) NOT NULL,
  `code_banque` varchar(128) DEFAULT NULL,
  `code_guichet` varchar(6) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `cle_rib` varchar(5) DEFAULT NULL,
  `entity` int(11) DEFAULT NULL,
  `sourcetype` varchar(32) DEFAULT NULL,
  `ext_payment_id` varchar(255) DEFAULT NULL,
  `ext_payment_site` varchar(128) DEFAULT NULL,
  `fk_facture_fourn` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_prelevement_facture_demande_fk_facture` (`fk_facture`),
  KEY `idx_prelevement_facture_demande_fk_facture_fourn` (`fk_facture_fourn`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_prelevement_facture_demande : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_prelevement_lignes
CREATE TABLE IF NOT EXISTS `llx_prelevement_lignes` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_prelevement_bons` int(11) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `statut` smallint(6) DEFAULT 0,
  `client_nom` varchar(255) DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `code_banque` varchar(128) DEFAULT NULL,
  `code_guichet` varchar(6) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `cle_rib` varchar(5) DEFAULT NULL,
  `note` text DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_prelevement_lignes_fk_prelevement_bons` (`fk_prelevement_bons`),
  CONSTRAINT `fk_prelevement_lignes_fk_prelevement_bons` FOREIGN KEY (`fk_prelevement_bons`) REFERENCES `llx_prelevement_bons` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_prelevement_lignes : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_prelevement_rejet
CREATE TABLE IF NOT EXISTS `llx_prelevement_rejet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_prelevement_lignes` int(11) DEFAULT NULL,
  `date_rejet` datetime DEFAULT NULL,
  `motif` int(11) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `fk_user_creation` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `afacturer` tinyint(4) DEFAULT 0,
  `fk_facture` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_prelevement_rejet : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_printer_ipp
CREATE TABLE IF NOT EXISTS `llx_printer_ipp` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `printer_name` text NOT NULL,
  `printer_location` text NOT NULL,
  `printer_uri` varchar(255) NOT NULL,
  `copy` int(11) NOT NULL DEFAULT 1,
  `module` varchar(16) NOT NULL,
  `login` varchar(32) NOT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_printer_ipp : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_printing
CREATE TABLE IF NOT EXISTS `llx_printing` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `printer_name` text NOT NULL,
  `printer_location` text NOT NULL,
  `printer_id` varchar(255) NOT NULL,
  `copy` int(11) NOT NULL DEFAULT 1,
  `module` varchar(16) NOT NULL,
  `driver` varchar(16) NOT NULL,
  `userid` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_printing : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product
CREATE TABLE IF NOT EXISTS `llx_product` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(128) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_parent` int(11) DEFAULT 0,
  `label` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note` text DEFAULT NULL,
  `customcode` varchar(32) DEFAULT NULL,
  `fk_country` int(11) DEFAULT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `price_ttc` double(24,8) DEFAULT 0.00000000,
  `price_min` double(24,8) DEFAULT 0.00000000,
  `price_min_ttc` double(24,8) DEFAULT 0.00000000,
  `price_base_type` varchar(3) DEFAULT 'HT',
  `cost_price` double(24,8) DEFAULT NULL,
  `default_vat_code` varchar(10) DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT 0,
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `tosell` tinyint(4) DEFAULT 1,
  `tobuy` tinyint(4) DEFAULT 1,
  `onportal` tinyint(4) DEFAULT 0,
  `tobatch` tinyint(4) NOT NULL DEFAULT 0,
  `fk_product_type` int(11) DEFAULT 0,
  `duration` varchar(6) DEFAULT NULL,
  `seuil_stock_alerte` float DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `barcode` varchar(180) DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT NULL,
  `accountancy_code_sell` varchar(32) DEFAULT NULL,
  `accountancy_code_sell_intra` varchar(32) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `accountancy_code_sell_export` varchar(32) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `accountancy_code_buy` varchar(32) DEFAULT NULL,
  `accountancy_code_buy_intra` varchar(32) DEFAULT NULL,
  `accountancy_code_buy_export` varchar(32) DEFAULT NULL,
  `partnumber` varchar(32) DEFAULT NULL,
  `weight` float DEFAULT NULL,
  `weight_units` tinyint(4) DEFAULT NULL,
  `length` float DEFAULT NULL,
  `length_units` tinyint(4) DEFAULT NULL,
  `width` float DEFAULT NULL,
  `width_units` tinyint(4) DEFAULT NULL,
  `height` float DEFAULT NULL,
  `height_units` tinyint(4) DEFAULT NULL,
  `surface` float DEFAULT NULL,
  `surface_units` tinyint(4) DEFAULT NULL,
  `volume` float DEFAULT NULL,
  `volume_units` tinyint(4) DEFAULT NULL,
  `stock` double DEFAULT NULL,
  `pmp` double(24,8) NOT NULL DEFAULT 0.00000000,
  `fifo` double(24,8) DEFAULT NULL,
  `lifo` double(24,8) DEFAULT NULL,
  `fk_default_warehouse` int(11) DEFAULT NULL,
  `canvas` varchar(32) DEFAULT NULL,
  `finished` tinyint(4) DEFAULT NULL,
  `hidden` tinyint(4) DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `fk_price_expression` int(11) DEFAULT NULL,
  `desiredstock` float DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `price_autogen` tinyint(4) DEFAULT 0,
  `fk_project` int(11) DEFAULT NULL,
  `net_measure` float DEFAULT NULL,
  `net_measure_units` tinyint(4) DEFAULT NULL,
  `fk_state` int(11) DEFAULT NULL,
  `batch_mask` varchar(32) DEFAULT NULL,
  `lifetime` int(11) DEFAULT NULL,
  `qc_frequency` int(11) DEFAULT NULL,
  `mandatory_period` tinyint(4) DEFAULT 0,
  `fk_default_bom` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_ref` (`ref`,`entity`),
  UNIQUE KEY `uk_product_barcode` (`barcode`,`fk_barcode_type`,`entity`),
  KEY `idx_product_label` (`label`),
  KEY `idx_product_barcode` (`barcode`),
  KEY `idx_product_import_key` (`import_key`),
  KEY `idx_product_seuil_stock_alerte` (`seuil_stock_alerte`),
  KEY `idx_product_fk_country` (`fk_country`),
  KEY `idx_product_fk_user_author` (`fk_user_author`),
  KEY `idx_product_fk_barcode_type` (`fk_barcode_type`),
  KEY `fk_product_fk_unit` (`fk_unit`),
  KEY `fk_product_default_warehouse` (`fk_default_warehouse`),
  KEY `idx_product_fk_project` (`fk_project`),
  KEY `fk_product_finished` (`finished`),
  CONSTRAINT `fk_product_barcode_type` FOREIGN KEY (`fk_barcode_type`) REFERENCES `llx_c_barcode_type` (`rowid`),
  CONSTRAINT `fk_product_default_warehouse` FOREIGN KEY (`fk_default_warehouse`) REFERENCES `llx_entrepot` (`rowid`),
  CONSTRAINT `fk_product_finished` FOREIGN KEY (`finished`) REFERENCES `llx_c_product_nature` (`code`),
  CONSTRAINT `fk_product_fk_country` FOREIGN KEY (`fk_country`) REFERENCES `llx_c_country` (`rowid`),
  CONSTRAINT `fk_product_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product : ~25 rows (environ)
INSERT INTO `llx_product` (`rowid`, `ref`, `entity`, `ref_ext`, `datec`, `tms`, `fk_parent`, `label`, `description`, `note_public`, `note`, `customcode`, `fk_country`, `price`, `price_ttc`, `price_min`, `price_min_ttc`, `price_base_type`, `cost_price`, `default_vat_code`, `tva_tx`, `recuperableonly`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `fk_user_author`, `fk_user_modif`, `tosell`, `tobuy`, `onportal`, `tobatch`, `fk_product_type`, `duration`, `seuil_stock_alerte`, `url`, `barcode`, `fk_barcode_type`, `accountancy_code_sell`, `accountancy_code_sell_intra`, `accountancy_code_sell_export`, `accountancy_code_buy`, `accountancy_code_buy_intra`, `accountancy_code_buy_export`, `partnumber`, `weight`, `weight_units`, `length`, `length_units`, `width`, `width_units`, `height`, `height_units`, `surface`, `surface_units`, `volume`, `volume_units`, `stock`, `pmp`, `fifo`, `lifo`, `fk_default_warehouse`, `canvas`, `finished`, `hidden`, `import_key`, `model_pdf`, `fk_price_expression`, `desiredstock`, `fk_unit`, `price_autogen`, `fk_project`, `net_measure`, `net_measure_units`, `fk_state`, `batch_mask`, `lifetime`, `qc_frequency`, `mandatory_period`, `fk_default_bom`) VALUES
	(47, 'AR0001', 1, NULL, NULL, '2019-07-02 09:31:31', 0, 'Siphon slim pour receveur extra plat D90', '', NULL, NULL, '', NULL, 39.00000000, 46.80000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '707', '', '', '605', NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(48, 'AR0002', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Receveur space mineral leda 180x90 blanc', NULL, NULL, NULL, NULL, NULL, 532.50000000, 639.00000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(49, 'AR0003', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Colonne douche avec mitigeur thermostatique, chromé', NULL, NULL, NULL, NULL, NULL, 382.50000000, 459.00000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(50, 'AR0004', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Paroi de douche droite 138 140 cm, hauteur 2m', 'Paroi de douche droite 138 140 cm, hauteur 2m, verre trempé 6 mm, traité anticalcaire, profilé chromé largeur 1,6cm.', NULL, NULL, NULL, NULL, 215.80000000, 258.96000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(51, 'AR0005', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Plaque de fixation pour raccord à sertir entraxe 150 pour tube PER', 'Plaque de fixation pour raccord à sertir entraxe 150 pour tube PER diamètre : 12', NULL, NULL, NULL, NULL, 33.75000000, 40.50000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(52, 'AR0006', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Plaque parement béton 900 mm x 2500 mm x 3 mm', NULL, NULL, NULL, NULL, NULL, 475.00000000, 570.00000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(53, 'AR0007', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Profilé alu de finition', NULL, NULL, NULL, NULL, NULL, 11.50000000, 13.80000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(54, 'AR0008', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Profilé alu de liaison', NULL, NULL, NULL, NULL, NULL, 39.00000000, 46.80000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(55, 'AR0009', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'profilé alu d\'angle', NULL, NULL, NULL, NULL, NULL, 49.50000000, 59.40000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(56, 'AR0010', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Cartouche colle polymère', NULL, NULL, NULL, NULL, NULL, 25.00000000, 30.00000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(57, 'AR0011', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Parquet vinyle 6105 titane', NULL, NULL, NULL, NULL, NULL, 75.00000000, 90.00000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(58, 'AR0012', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Pose placo', NULL, NULL, NULL, NULL, NULL, 75.00000000, 90.00000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(59, 'AR0013', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'groupe de sécurité inox', NULL, NULL, NULL, NULL, NULL, 26.50000000, 29.15000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 10.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(60, 'AR0014', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Puzzle Chat n°12', NULL, NULL, NULL, NULL, NULL, 16.66000000, 19.99200000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(61, 'AR0015', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Rac laiton PE D20 droit Mâle à visser 15/21', NULL, NULL, NULL, NULL, NULL, 16.80000000, 20.16000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(62, 'AR0016', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Garniture Rac PE rexuo D21', NULL, NULL, NULL, NULL, NULL, 12.73000000, 15.27600000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(63, 'AR0017', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Mamelon laiton égal à visser 15/21', NULL, NULL, NULL, NULL, NULL, 0.89000000, 1.06800000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(64, 'AR0018', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Té égal triple femelle laiton 15x21', NULL, NULL, NULL, NULL, NULL, 1.74000000, 2.08800000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(65, 'AR0019', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Mamelon laiton MF égal à visser 15x21', NULL, NULL, NULL, NULL, NULL, 2.27000000, 2.72400000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(66, 'AR0020', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'Mitigeur Lavabo MEZZO avec point dur', NULL, NULL, NULL, NULL, NULL, 48.86000000, 58.63200000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(67, 'AR0021', 1, NULL, NULL, '2019-04-17 20:28:19', 0, 'PACK ZIA XL 6S ALUMETIC / VITIS-S CHR', NULL, NULL, NULL, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(68, 'PAR1', 1, NULL, NULL, '2019-04-17 20:28:19', 0, '1 à 2 paires', NULL, NULL, NULL, NULL, NULL, 27.00000000, 32.40000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(69, 'PAR2', 1, NULL, NULL, '2019-04-17 20:28:19', 0, '2 à 3 paires', NULL, NULL, NULL, NULL, NULL, 19.00000000, 22.80000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, NULL, 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, NULL, NULL, NULL, 0, '20190417162819', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(70, 'AUDIO-0001', 1, NULL, '2019-05-09 08:12:17', '2019-05-09 06:12:17', 0, 'Casque 1', '', NULL, '', '', NULL, 12.90000000, 15.48000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', '', '', NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL),
	(72, 'TEST_ABH', 1, NULL, '2021-12-15 12:41:43', '2021-12-15 11:41:43', 0, 'Offre test', 'Devis type', NULL, '', 'RAS', 1, 1000.00000000, 1200.00000000, 0.00000000, 0.00000000, 'HT', NULL, NULL, 20.000, 0, 0.000, '0', 0.000, '0', 2, 2, 1, 1, 0, 0, 0, '', 0, NULL, NULL, NULL, '', '', '', '', '', '', NULL, 1, 0, 1, 0, 1, 0, 0.5, 0, 5, 0, 5, 0, NULL, 0.00000000, NULL, NULL, NULL, '', 1, 0, NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, '', NULL, NULL, 0, NULL);

-- Listage de la structure de table gestcom. llx_product_association
CREATE TABLE IF NOT EXISTS `llx_product_association` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_product_pere` int(11) NOT NULL DEFAULT 0,
  `fk_product_fils` int(11) NOT NULL DEFAULT 0,
  `qty` double DEFAULT NULL,
  `incdec` int(11) DEFAULT 1,
  `rang` int(11) DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_association` (`fk_product_pere`,`fk_product_fils`),
  KEY `idx_product_association_fils` (`fk_product_fils`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_association : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_attribute
CREATE TABLE IF NOT EXISTS `llx_product_attribute` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(255) NOT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `label` varchar(255) NOT NULL,
  `position` int(11) NOT NULL DEFAULT 0,
  `entity` int(11) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_attribute_ref` (`ref`),
  UNIQUE KEY `unique_ref` (`ref`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_attribute : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_attribute_combination
CREATE TABLE IF NOT EXISTS `llx_product_attribute_combination` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_product_parent` int(11) NOT NULL,
  `fk_product_child` int(11) NOT NULL,
  `variation_price` float NOT NULL,
  `variation_price_percentage` int(11) DEFAULT NULL,
  `variation_weight` float NOT NULL,
  `variation_ref_ext` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`),
  KEY `idx_product_att_com_product_parent` (`fk_product_parent`),
  KEY `idx_product_att_com_product_child` (`fk_product_child`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_attribute_combination : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_attribute_combination2val
CREATE TABLE IF NOT EXISTS `llx_product_attribute_combination2val` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_prod_combination` int(11) NOT NULL,
  `fk_prod_attr` int(11) NOT NULL,
  `fk_prod_attr_val` int(11) NOT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_attribute_combination2val : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_attribute_combination_price_level
CREATE TABLE IF NOT EXISTS `llx_product_attribute_combination_price_level` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_product_attribute_combination` int(11) NOT NULL DEFAULT 1,
  `fk_price_level` int(11) NOT NULL DEFAULT 1,
  `variation_price` double(24,8) NOT NULL,
  `variation_price_percentage` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `fk_product_attribute_combination` (`fk_product_attribute_combination`,`fk_price_level`),
  UNIQUE KEY `fk_product_attribute_combinati_2` (`fk_product_attribute_combination`,`fk_price_level`),
  UNIQUE KEY `fk_product_attribute_combinati_3` (`fk_product_attribute_combination`,`fk_price_level`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_product_attribute_combination_price_level : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_attribute_value
CREATE TABLE IF NOT EXISTS `llx_product_attribute_value` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_product_attribute` int(11) NOT NULL,
  `ref` varchar(180) NOT NULL,
  `value` varchar(255) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `position` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_attribute_value` (`fk_product_attribute`,`ref`),
  UNIQUE KEY `unique_ref` (`fk_product_attribute`,`ref`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_attribute_value : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_batch
CREATE TABLE IF NOT EXISTS `llx_product_batch` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product_stock` int(11) NOT NULL,
  `eatby` datetime DEFAULT NULL,
  `sellby` datetime DEFAULT NULL,
  `batch` varchar(128) DEFAULT NULL,
  `qty` double NOT NULL DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_batch` (`fk_product_stock`,`batch`),
  KEY `idx_fk_product_stock` (`fk_product_stock`),
  KEY `idx_batch` (`batch`),
  CONSTRAINT `fk_product_batch_fk_product_stock` FOREIGN KEY (`fk_product_stock`) REFERENCES `llx_product_stock` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_batch : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_customer_price
CREATE TABLE IF NOT EXISTS `llx_product_customer_price` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product` int(11) NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `price_ttc` double(24,8) DEFAULT 0.00000000,
  `price_min` double(24,8) DEFAULT 0.00000000,
  `price_min_ttc` double(24,8) DEFAULT 0.00000000,
  `price_base_type` varchar(3) DEFAULT 'HT',
  `default_vat_code` varchar(10) DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT 0,
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `fk_user` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `ref_customer` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_customer_price_fk_product_fk_soc` (`fk_product`,`fk_soc`),
  KEY `idx_product_customer_price_fk_user` (`fk_user`),
  KEY `idx_product_customer_price_fk_soc` (`fk_soc`),
  CONSTRAINT `fk_customer_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  CONSTRAINT `fk_customer_price_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_product_customer_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  CONSTRAINT `fk_product_customer_price_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_product_customer_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_customer_price : ~0 rows (environ)

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

-- Listage des données de la table gestcom.llx_product_customer_price_log : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_extrafields
CREATE TABLE IF NOT EXISTS `llx_product_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_product_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_fournisseur_price
CREATE TABLE IF NOT EXISTS `llx_product_fournisseur_price` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product` int(11) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `ref_fourn` varchar(128) DEFAULT NULL,
  `desc_fourn` text DEFAULT NULL,
  `fk_availability` int(11) DEFAULT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `quantity` double DEFAULT NULL,
  `remise_percent` double NOT NULL DEFAULT 0,
  `remise` double NOT NULL DEFAULT 0,
  `unitprice` double(24,8) DEFAULT 0.00000000,
  `charges` double(24,8) DEFAULT 0.00000000,
  `unitcharges` double(24,8) DEFAULT 0.00000000,
  `default_vat_code` varchar(10) DEFAULT NULL,
  `tva_tx` double(6,3) NOT NULL,
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `info_bits` int(11) NOT NULL DEFAULT 0,
  `fk_user` int(11) DEFAULT NULL,
  `fk_supplier_price_expression` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `delivery_time_days` int(11) DEFAULT NULL,
  `supplier_reputation` varchar(10) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_unitprice` double(24,8) DEFAULT NULL,
  `multicurrency_price` double(24,8) DEFAULT NULL,
  `barcode` varchar(180) DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT NULL,
  `multicurrency_price_ttc` double(24,8) DEFAULT NULL,
  `packaging` double DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_barcode` (`barcode`,`fk_barcode_type`,`entity`),
  UNIQUE KEY `uk_product_fournisseur_price_ref` (`ref_fourn`,`fk_soc`,`quantity`,`entity`),
  KEY `idx_product_fournisseur_price_fk_user` (`fk_user`),
  KEY `idx_product_fourn_price_fk_product` (`fk_product`,`entity`),
  KEY `idx_product_fourn_price_fk_soc` (`fk_soc`,`entity`),
  KEY `idx_product_barcode` (`barcode`),
  KEY `idx_product_fk_barcode_type` (`fk_barcode_type`),
  CONSTRAINT `fk_product_fournisseur_price_barcode_type` FOREIGN KEY (`fk_barcode_type`) REFERENCES `llx_c_barcode_type` (`rowid`),
  CONSTRAINT `fk_product_fournisseur_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  CONSTRAINT `fk_product_fournisseur_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_fournisseur_price : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_fournisseur_price_extrafields
CREATE TABLE IF NOT EXISTS `llx_product_fournisseur_price_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_product_fournisseur_price_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_product_fournisseur_price_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_fournisseur_price_log
CREATE TABLE IF NOT EXISTS `llx_product_fournisseur_price_log` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `fk_product_fournisseur` int(11) NOT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `quantity` double DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_unitprice` double(24,8) DEFAULT NULL,
  `multicurrency_price` double(24,8) DEFAULT NULL,
  `multicurrency_price_ttc` double(24,8) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_fournisseur_price_log : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_lang
CREATE TABLE IF NOT EXISTS `llx_product_lang` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_product` int(11) NOT NULL DEFAULT 0,
  `lang` varchar(5) NOT NULL DEFAULT '0',
  `label` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `note` text DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_lang` (`fk_product`,`lang`),
  CONSTRAINT `fk_product_lang_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_lang : ~0 rows (environ)
INSERT INTO `llx_product_lang` (`rowid`, `fk_product`, `lang`, `label`, `description`, `note`, `import_key`) VALUES
	(2, 72, 'fr_FR', 'Offre test', 'Devis type', NULL, NULL);

-- Listage de la structure de table gestcom. llx_product_lot
CREATE TABLE IF NOT EXISTS `llx_product_lot` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT 1,
  `fk_product` int(11) NOT NULL,
  `batch` varchar(128) DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` int(11) DEFAULT NULL,
  `eol_date` datetime DEFAULT NULL,
  `manufacturing_date` datetime DEFAULT NULL,
  `scrapping_date` datetime DEFAULT NULL,
  `barcode` varchar(180) DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_lot` (`fk_product`,`batch`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_lot : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_lot_extrafields
CREATE TABLE IF NOT EXISTS `llx_product_lot_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_product_lot_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_lot_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_perentity
CREATE TABLE IF NOT EXISTS `llx_product_perentity` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_product` int(11) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `accountancy_code_sell` varchar(32) DEFAULT NULL,
  `accountancy_code_sell_intra` varchar(32) DEFAULT NULL,
  `accountancy_code_sell_export` varchar(32) DEFAULT NULL,
  `accountancy_code_buy` varchar(32) DEFAULT NULL,
  `accountancy_code_buy_intra` varchar(32) DEFAULT NULL,
  `accountancy_code_buy_export` varchar(32) DEFAULT NULL,
  `pmp` double(24,8) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_perentity` (`fk_product`,`entity`),
  KEY `idx_product_perentity_fk_product` (`fk_product`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_product_perentity : ~0 rows (environ)

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

-- Listage des données de la table gestcom.llx_product_price : ~5 rows (environ)
INSERT INTO `llx_product_price` (`rowid`, `entity`, `tms`, `fk_product`, `date_price`, `price_level`, `price`, `price_ttc`, `price_min`, `price_min_ttc`, `price_base_type`, `default_vat_code`, `tva_tx`, `recuperableonly`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `fk_user_author`, `tosell`, `price_by_qty`, `fk_price_expression`, `import_key`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_tx`, `multicurrency_price`, `multicurrency_price_ttc`) VALUES
	(1, 1, '2019-05-09 06:12:17', 70, '2019-05-09 08:12:17', 1, 12.90000000, 15.48000000, 0.00000000, 0.00000000, 'HT', NULL, 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 1.00000000, NULL, NULL),
	(3, 1, '2019-10-20 19:11:44', 47, '2019-10-20 21:11:44', 1, 39.00000000, 46.80000000, 0.00000000, 0.00000000, 'HT', NULL, 20.000, 0, 0.000, '0', 0.000, '0', 2, 1, 0, NULL, NULL, NULL, NULL, 1.00000000, NULL, NULL),
	(4, 1, '2021-12-15 11:41:43', 72, '2021-12-15 12:41:43', 1, 1000.00000000, 1200.00000000, 0.00000000, 0.00000000, 'HT', NULL, 20.000, 0, 0.000, '0', 0.000, '0', 2, 1, 0, NULL, NULL, NULL, NULL, 1.00000000, NULL, NULL),
	(5, 1, '2021-12-15 11:42:17', 72, '2021-12-15 12:42:17', 1, 1000.00000000, 1200.00000000, 0.00000000, 0.00000000, 'HT', NULL, 20.000, 0, 0.000, '0', 0.000, '0', 2, 1, 0, NULL, NULL, NULL, NULL, 1.00000000, NULL, NULL),
	(6, 1, '2022-01-07 21:47:23', 49, '2022-01-07 22:47:23', 1, 382.50000000, 459.00000000, 0.00000000, 0.00000000, 'HT', NULL, 20.000, 0, 0.000, '0', 0.000, '0', 2, 1, 0, NULL, NULL, NULL, NULL, 1.00000000, NULL, NULL);

-- Listage de la structure de table gestcom. llx_product_pricerules
CREATE TABLE IF NOT EXISTS `llx_product_pricerules` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `level` int(11) NOT NULL,
  `fk_level` int(11) NOT NULL,
  `var_percent` float NOT NULL,
  `var_min_percent` float NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `unique_level` (`level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_pricerules : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_price_by_qty
CREATE TABLE IF NOT EXISTS `llx_product_price_by_qty` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_product_price` int(11) NOT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `price_base_type` varchar(3) DEFAULT 'HT',
  `quantity` double DEFAULT NULL,
  `remise_percent` double NOT NULL DEFAULT 0,
  `remise` double NOT NULL DEFAULT 0,
  `unitprice` double(24,8) DEFAULT 0.00000000,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_price` double(24,8) DEFAULT NULL,
  `multicurrency_price_ttc` double(24,8) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_price_by_qty_level` (`fk_product_price`,`quantity`),
  KEY `idx_product_price_by_qty_fk_product_price` (`fk_product_price`),
  CONSTRAINT `fk_product_price_by_qty_fk_product_price` FOREIGN KEY (`fk_product_price`) REFERENCES `llx_product_price` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_price_by_qty : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_stock
CREATE TABLE IF NOT EXISTS `llx_product_stock` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product` int(11) NOT NULL,
  `fk_entrepot` int(11) NOT NULL,
  `reel` double DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_stock` (`fk_product`,`fk_entrepot`),
  KEY `idx_product_stock_fk_product` (`fk_product`),
  KEY `idx_product_stock_fk_entrepot` (`fk_entrepot`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_stock : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_product_warehouse_properties
CREATE TABLE IF NOT EXISTS `llx_product_warehouse_properties` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product` int(11) NOT NULL,
  `fk_entrepot` int(11) NOT NULL,
  `seuil_stock_alerte` float DEFAULT NULL,
  `desiredstock` float DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_product_warehouse_properties : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_projet
CREATE TABLE IF NOT EXISTS `llx_projet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_soc` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `dateo` date DEFAULT NULL,
  `datee` date DEFAULT NULL,
  `ref` varchar(50) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `title` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `public` int(11) DEFAULT NULL,
  `fk_statut` int(11) NOT NULL DEFAULT 0,
  `fk_opp_status` int(11) DEFAULT NULL,
  `opp_percent` double(5,2) DEFAULT NULL,
  `date_close` datetime DEFAULT NULL,
  `fk_user_close` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `opp_amount` double(24,8) DEFAULT NULL,
  `budget_amount` double(24,8) DEFAULT NULL,
  `usage_bill_time` int(11) DEFAULT 0,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `usage_opportunity` int(11) DEFAULT 0,
  `usage_task` int(11) DEFAULT 1,
  `usage_organize_event` int(11) DEFAULT 0,
  `bill_time` int(11) DEFAULT 0,
  `email_msgid` varchar(255) DEFAULT NULL,
  `fk_opp_status_end` int(11) DEFAULT NULL,
  `accept_conference_suggestions` int(11) DEFAULT 0,
  `accept_booth_suggestions` int(11) DEFAULT 0,
  `price_registration` double(24,8) DEFAULT NULL,
  `price_booth` double(24,8) DEFAULT NULL,
  `max_attendees` int(11) DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_projet_ref` (`ref`,`entity`),
  KEY `idx_projet_fk_soc` (`fk_soc`),
  CONSTRAINT `fk_projet_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_projet : ~0 rows (environ)
INSERT INTO `llx_projet` (`rowid`, `fk_soc`, `datec`, `tms`, `dateo`, `datee`, `ref`, `entity`, `title`, `description`, `fk_user_creat`, `fk_user_modif`, `public`, `fk_statut`, `fk_opp_status`, `opp_percent`, `date_close`, `fk_user_close`, `note_private`, `note_public`, `opp_amount`, `budget_amount`, `usage_bill_time`, `model_pdf`, `last_main_doc`, `import_key`, `usage_opportunity`, `usage_task`, `usage_organize_event`, `bill_time`, `email_msgid`, `fk_opp_status_end`, `accept_conference_suggestions`, `accept_booth_suggestions`, `price_registration`, `price_booth`, `max_attendees`) VALUES
	(1, 1134, '2019-06-11 19:10:07', '2022-08-19 19:04:58', '2019-06-11', NULL, 'PJ1906-0001', 1, 'Immeuble ARMORIC', '', 1, 1, 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, 1, 0, 0, NULL, NULL, 0, 0, NULL, NULL, 0);

-- Listage de la structure de table gestcom. llx_projet_extrafields
CREATE TABLE IF NOT EXISTS `llx_projet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_projet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_projet_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_projet_task
CREATE TABLE IF NOT EXISTS `llx_projet_task` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(50) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_projet` int(11) NOT NULL,
  `fk_task_parent` int(11) NOT NULL DEFAULT 0,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `dateo` datetime DEFAULT NULL,
  `datee` datetime DEFAULT NULL,
  `datev` datetime DEFAULT NULL,
  `label` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `duration_effective` double DEFAULT 0,
  `planned_workload` double DEFAULT 0,
  `progress` int(11) DEFAULT 0,
  `priority` int(11) DEFAULT 0,
  `budget_amount` double(24,8) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `rang` int(11) DEFAULT 0,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_projet_task_ref` (`ref`,`entity`),
  KEY `idx_projet_task_fk_projet` (`fk_projet`),
  KEY `idx_projet_task_fk_user_creat` (`fk_user_creat`),
  KEY `idx_projet_task_fk_user_valid` (`fk_user_valid`),
  CONSTRAINT `fk_projet_task_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_projet_task_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_projet_task_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_projet_task : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_projet_task_extrafields
CREATE TABLE IF NOT EXISTS `llx_projet_task_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_projet_task_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_projet_task_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_projet_task_time
CREATE TABLE IF NOT EXISTS `llx_projet_task_time` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_task` int(11) NOT NULL,
  `task_date` date DEFAULT NULL,
  `task_datehour` datetime DEFAULT NULL,
  `task_date_withhour` int(11) DEFAULT 0,
  `task_duration` double DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `thm` double(24,8) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `invoice_line_id` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `note` text DEFAULT NULL,
  `intervention_id` int(11) DEFAULT NULL,
  `intervention_line_id` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_projet_task_time_task` (`fk_task`),
  KEY `idx_projet_task_time_date` (`task_date`),
  KEY `idx_projet_task_time_datehour` (`task_datehour`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_projet_task_time : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_propal
CREATE TABLE IF NOT EXISTS `llx_propal` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `ref_client` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `fin_validite` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_signature` datetime DEFAULT NULL,
  `date_cloture` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_signature` int(11) DEFAULT NULL,
  `fk_user_cloture` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `price` double DEFAULT 0,
  `remise_percent` double DEFAULT 0,
  `remise_absolue` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `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,
  `fk_account` int(11) DEFAULT NULL,
  `fk_currency` varchar(3) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `deposit_percent` varchar(63) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `date_livraison` date DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `fk_warehouse` int(11) DEFAULT NULL,
  `fk_availability` int(11) DEFAULT NULL,
  `fk_input_reason` int(11) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_delivery_address` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(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_demand_reason` int(11) DEFAULT 0,
  `online_sign_ip` varchar(48) DEFAULT NULL,
  `online_sign_name` varchar(64) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_propal_ref` (`ref`,`entity`),
  KEY `idx_propal_fk_soc` (`fk_soc`),
  KEY `idx_propal_fk_user_author` (`fk_user_author`),
  KEY `idx_propal_fk_user_valid` (`fk_user_valid`),
  KEY `idx_propal_fk_user_cloture` (`fk_user_cloture`),
  KEY `idx_propal_fk_projet` (`fk_projet`),
  KEY `idx_propal_fk_account` (`fk_account`),
  KEY `idx_propal_fk_currency` (`fk_currency`),
  KEY `idx_propal_fk_warehouse` (`fk_warehouse`),
  KEY `fk_propal_fk_user_signature` (`fk_user_signature`),
  CONSTRAINT `fk_propal_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_propal_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_propal_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_propal_fk_user_cloture` FOREIGN KEY (`fk_user_cloture`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_propal_fk_user_signature` FOREIGN KEY (`fk_user_signature`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_propal_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_propal : ~2 rows (environ)
INSERT INTO `llx_propal` (`rowid`, `ref`, `entity`, `ref_ext`, `ref_int`, `ref_client`, `fk_soc`, `fk_projet`, `tms`, `datec`, `datep`, `fin_validite`, `date_valid`, `date_signature`, `date_cloture`, `fk_user_author`, `fk_user_modif`, `fk_user_valid`, `fk_user_signature`, `fk_user_cloture`, `fk_statut`, `price`, `remise_percent`, `remise_absolue`, `remise`, `total_ht`, `total_tva`, `localtax1`, `localtax2`, `total_ttc`, `fk_account`, `fk_currency`, `fk_cond_reglement`, `deposit_percent`, `fk_mode_reglement`, `note_private`, `note_public`, `model_pdf`, `last_main_doc`, `date_livraison`, `fk_shipping_method`, `fk_warehouse`, `fk_availability`, `fk_input_reason`, `fk_incoterms`, `location_incoterms`, `import_key`, `extraparams`, `fk_delivery_address`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_tx`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `fk_demand_reason`, `online_sign_ip`, `online_sign_name`) VALUES
	(1, 'PR1908-0001', 1, NULL, NULL, '', 1136, NULL, '2020-03-22 12:26:00', '2019-08-22 12:58:23', '2019-08-22', '2019-09-21 12:00:00', '2020-03-22 13:24:50', NULL, NULL, 2, NULL, 2, NULL, NULL, 0, 0, NULL, NULL, 0, 797.80000000, 159.56000000, 0.00000000, 0.00000000, 957.36000000, NULL, NULL, 1, NULL, 7, '', '', 'azur', 'propale/PR1908-0001/PR1908-0001.pdf', NULL, NULL, NULL, 0, 0, 0, '', NULL, NULL, NULL, 0, 'EUR', 1.00000000, 797.80000000, 159.56000000, 957.36000000, 0, NULL, NULL),
	(2, 'PR2112-0002', 1, NULL, NULL, '', 1145, NULL, '2021-12-15 11:44:56', '2021-12-15 12:43:26', '2021-12-15', '2021-12-30 12:00:00', '2021-12-15 12:44:56', NULL, NULL, 2, NULL, 2, NULL, NULL, 1, 0, NULL, NULL, 0, 168.75000000, 33.75000000, 0.00000000, 0.00000000, 202.50000000, NULL, NULL, NULL, NULL, NULL, '', '', 'azur', 'propale/PR2112-0002/PR2112-0002.pdf', NULL, NULL, NULL, 0, 0, 0, '', NULL, NULL, NULL, 0, 'EUR', 1.00000000, 168.75000000, 33.75000000, 202.50000000, 0, NULL, NULL);

-- Listage de la structure de table gestcom. llx_propaldet
CREATE TABLE IF NOT EXISTS `llx_propaldet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_propal` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `fk_remise_except` int(11) DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `tva_tx` double(6,3) DEFAULT 0.000,
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(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,
  `remise` double DEFAULT 0,
  `price` double DEFAULT NULL,
  `subprice` double(24,8) DEFAULT 0.00000000,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `total_tva` double(24,8) DEFAULT 0.00000000,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `product_type` int(11) DEFAULT 0,
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int(11) DEFAULT 0,
  `buy_price_ht` double(24,8) DEFAULT 0.00000000,
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `special_code` int(11) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_propaldet_fk_propal` (`fk_propal`),
  KEY `idx_propaldet_fk_product` (`fk_product`),
  KEY `fk_propaldet_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_propaldet_fk_propal` FOREIGN KEY (`fk_propal`) REFERENCES `llx_propal` (`rowid`),
  CONSTRAINT `fk_propaldet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_propaldet : ~5 rows (environ)
INSERT INTO `llx_propaldet` (`rowid`, `fk_propal`, `fk_parent_line`, `fk_product`, `label`, `description`, `fk_remise_except`, `vat_src_code`, `tva_tx`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `qty`, `remise_percent`, `remise`, `price`, `subprice`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `date_start`, `date_end`, `info_bits`, `buy_price_ht`, `fk_product_fournisseur_price`, `special_code`, `rang`, `fk_unit`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_subprice`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `import_key`) VALUES
	(1, 1, NULL, 54, NULL, '', NULL, '', 20.000, 0.000, '0', 0.000, '0', 20, 0, 0, NULL, 39.00000000, 780.00000000, 156.00000000, 0.00000000, 0.00000000, 936.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 1, NULL, NULL, 'EUR', 39.00000000, 780.00000000, 156.00000000, 936.00000000, NULL),
	(2, 1, NULL, 63, NULL, '', NULL, '', 20.000, 0.000, '0', 0.000, '0', 20, 0, 0, NULL, 0.89000000, 17.80000000, 3.56000000, 0.00000000, 0.00000000, 21.36000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 2, NULL, NULL, 'EUR', 0.89000000, 17.80000000, 3.56000000, 21.36000000, NULL),
	(3, 2, NULL, 55, NULL, '', NULL, '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 50.00000000, 50.00000000, 10.00000000, 0.00000000, 0.00000000, 60.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 1, NULL, NULL, 'EUR', 50.00000000, 50.00000000, 10.00000000, 60.00000000, NULL),
	(4, 2, NULL, NULL, NULL, 'Conception graphique et livraison', NULL, '', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 75.00000000, 75.00000000, 15.00000000, 0.00000000, 0.00000000, 90.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 2, NULL, NULL, 'EUR', 75.00000000, 75.00000000, 15.00000000, 90.00000000, NULL),
	(5, 2, NULL, 64, NULL, '', NULL, '', 20.000, 0.000, '0', 0.000, '0', 25, 0, 0, NULL, 1.75000000, 43.75000000, 8.75000000, 0.00000000, 0.00000000, 52.50000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 3, NULL, NULL, 'EUR', 1.75000000, 43.75000000, 8.75000000, 52.50000000, NULL);

-- Listage de la structure de table gestcom. llx_propaldet_extrafields
CREATE TABLE IF NOT EXISTS `llx_propaldet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_propaldet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_propaldet_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_propal_extrafields
CREATE TABLE IF NOT EXISTS `llx_propal_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_propal_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_propal_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_propal_merge_pdf_product
CREATE TABLE IF NOT EXISTS `llx_propal_merge_pdf_product` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_product` int(11) NOT NULL,
  `file_name` varchar(200) NOT NULL,
  `lang` varchar(5) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_mod` int(11) NOT NULL,
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_propal_merge_pdf_product : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_reception
CREATE TABLE IF NOT EXISTS `llx_reception` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `ref_ext` varchar(30) DEFAULT NULL,
  `ref_int` varchar(30) DEFAULT NULL,
  `ref_supplier` varchar(128) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `date_delivery` datetime DEFAULT NULL,
  `date_reception` datetime DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `tracking_number` varchar(50) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT 0,
  `billed` smallint(6) DEFAULT 0,
  `height` float DEFAULT NULL,
  `width` float DEFAULT NULL,
  `size_units` int(11) DEFAULT NULL,
  `size` float DEFAULT NULL,
  `weight_units` int(11) DEFAULT NULL,
  `weight` float DEFAULT NULL,
  `note_private` text 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,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_reception_uk_ref` (`ref`,`entity`),
  KEY `idx_reception_fk_soc` (`fk_soc`),
  KEY `idx_reception_fk_user_author` (`fk_user_author`),
  KEY `idx_reception_fk_user_valid` (`fk_user_valid`),
  KEY `idx_reception_fk_shipping_method` (`fk_shipping_method`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_reception : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_reception_extrafields
CREATE TABLE IF NOT EXISTS `llx_reception_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_reception_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_reception_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_recruitment_recruitmentcandidature
CREATE TABLE IF NOT EXISTS `llx_recruitment_recruitmentcandidature` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_recruitmentjobposition` int(11) DEFAULT NULL,
  `ref` varchar(128) NOT NULL DEFAULT '(PROV)',
  `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,
  `model_pdf` varchar(255) DEFAULT NULL,
  `status` smallint(6) NOT NULL,
  `firstname` varchar(128) DEFAULT NULL,
  `lastname` varchar(128) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(64) DEFAULT NULL,
  `date_birth` date DEFAULT NULL,
  `remuneration_requested` int(11) DEFAULT NULL,
  `remuneration_proposed` int(11) DEFAULT NULL,
  `email_msgid` varchar(175) DEFAULT NULL,
  `fk_recruitment_origin` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_recruitmentcandidature_email_msgid` (`email_msgid`),
  KEY `idx_recruitment_recruitmentcandidature_rowid` (`rowid`),
  KEY `idx_recruitment_recruitmentcandidature_ref` (`ref`),
  KEY `llx_recruitment_recruitmentcandidature_fk_user_creat` (`fk_user_creat`),
  KEY `idx_recruitment_recruitmentcandidature_status` (`status`),
  CONSTRAINT `llx_recruitment_recruitmentcandidature_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_recruitment_recruitmentcandidature : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_recruitment_recruitmentcandidature_extrafields
CREATE TABLE IF NOT EXISTS `llx_recruitment_recruitmentcandidature_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_recruitmentcandidature_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_recruitment_recruitmentcandidature_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_recruitment_recruitmentjobposition
CREATE TABLE IF NOT EXISTS `llx_recruitment_recruitmentjobposition` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) NOT NULL DEFAULT '(PROV)',
  `entity` int(11) NOT NULL DEFAULT 1,
  `label` varchar(255) NOT NULL,
  `qty` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_project` int(11) DEFAULT NULL,
  `fk_user_recruiter` int(11) DEFAULT NULL,
  `fk_user_supervisor` int(11) DEFAULT NULL,
  `fk_establishment` int(11) DEFAULT NULL,
  `date_planned` date DEFAULT NULL,
  `remuneration_suggested` 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,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `status` smallint(6) NOT NULL,
  `email_recruiter` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_recruitment_recruitmentjobposition_rowid` (`rowid`),
  KEY `idx_recruitment_recruitmentjobposition_ref` (`ref`),
  KEY `idx_recruitment_recruitmentjobposition_fk_soc` (`fk_soc`),
  KEY `idx_recruitment_recruitmentjobposition_fk_project` (`fk_project`),
  KEY `llx_recruitment_recruitmentjobposition_fk_user_recruiter` (`fk_user_recruiter`),
  KEY `llx_recruitment_recruitmentjobposition_fk_user_supervisor` (`fk_user_supervisor`),
  KEY `llx_recruitment_recruitmentjobposition_fk_establishment` (`fk_establishment`),
  KEY `llx_recruitment_recruitmentjobposition_fk_user_creat` (`fk_user_creat`),
  KEY `idx_recruitment_recruitmentjobposition_status` (`status`),
  CONSTRAINT `llx_recruitment_recruitmentjobposition_fk_establishment` FOREIGN KEY (`fk_establishment`) REFERENCES `llx_establishment` (`rowid`),
  CONSTRAINT `llx_recruitment_recruitmentjobposition_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `llx_recruitment_recruitmentjobposition_fk_user_recruiter` FOREIGN KEY (`fk_user_recruiter`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `llx_recruitment_recruitmentjobposition_fk_user_supervisor` FOREIGN KEY (`fk_user_supervisor`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_recruitment_recruitmentjobposition : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_recruitment_recruitmentjobposition_extrafields
CREATE TABLE IF NOT EXISTS `llx_recruitment_recruitmentjobposition_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_recruitmentjobposition_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_recruitment_recruitmentjobposition_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_resource
CREATE TABLE IF NOT EXISTS `llx_resource` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref` varchar(255) DEFAULT NULL,
  `asset_number` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `fk_code_type_resource` varchar(32) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_country` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_resource_ref` (`ref`,`entity`),
  KEY `fk_code_type_resource_idx` (`fk_code_type_resource`),
  KEY `idx_resource_fk_country` (`fk_country`),
  CONSTRAINT `fk_resource_fk_country` FOREIGN KEY (`fk_country`) REFERENCES `llx_c_country` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_resource : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_resource_extrafields
CREATE TABLE IF NOT EXISTS `llx_resource_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_resource_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_resource_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_rights_def
CREATE TABLE IF NOT EXISTS `llx_rights_def` (
  `id` int(11) NOT NULL,
  `libelle` varchar(255) DEFAULT NULL,
  `module` varchar(64) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `perms` varchar(50) DEFAULT NULL,
  `subperms` varchar(50) DEFAULT NULL,
  `type` varchar(1) DEFAULT NULL,
  `bydefault` tinyint(4) DEFAULT 0,
  `module_position` int(11) NOT NULL DEFAULT 0,
  `family_position` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_rights_def : ~161 rows (environ)
INSERT INTO `llx_rights_def` (`id`, `libelle`, `module`, `entity`, `perms`, `subperms`, `type`, `bydefault`, `module_position`, `family_position`) VALUES
	(11, 'Read invoices', 'facture', 1, 'lire', NULL, 'a', 0, 0, 0),
	(12, 'Create and update invoices', 'facture', 1, 'creer', NULL, 'a', 0, 0, 0),
	(13, 'Devalidate invoices', 'facture', 1, 'invoice_advance', 'unvalidate', 'a', 0, 0, 0),
	(14, 'Validate invoices', 'facture', 1, 'invoice_advance', 'validate', 'a', 0, 0, 0),
	(15, 'Send invoices by email', 'facture', 1, 'invoice_advance', 'send', 'a', 0, 0, 0),
	(16, 'Issue payments on invoices', 'facture', 1, 'paiement', NULL, 'a', 0, 0, 0),
	(19, 'Delete invoices', 'facture', 1, 'supprimer', NULL, 'a', 0, 0, 0),
	(21, 'Read commercial proposals', 'propale', 1, 'lire', NULL, 'r', 0, 10, 0),
	(22, 'Create and update commercial proposals', 'propale', 1, 'creer', NULL, 'w', 0, 10, 0),
	(24, 'Validate commercial proposals', 'propale', 1, 'propal_advance', 'validate', 'd', 0, 10, 0),
	(25, 'Send commercial proposals to customers', 'propale', 1, 'propal_advance', 'send', 'd', 0, 10, 0),
	(26, 'Close commercial proposals', 'propale', 1, 'propal_advance', 'close', 'd', 0, 10, 0),
	(27, 'Delete commercial proposals', 'propale', 1, 'supprimer', NULL, 'd', 0, 10, 0),
	(28, 'Exporting commercial proposals and attributes', 'propale', 1, 'export', NULL, 'r', 0, 10, 0),
	(31, 'Read products', 'produit', 1, 'lire', NULL, 'r', 0, 26, 0),
	(32, 'Create/modify products', 'produit', 1, 'creer', NULL, 'w', 0, 26, 0),
	(34, 'Delete products', 'produit', 1, 'supprimer', NULL, 'd', 0, 26, 0),
	(38, 'Export products', 'produit', 1, 'export', NULL, 'r', 0, 26, 0),
	(39, 'Ignore minimum price', 'produit', 1, 'ignore_price_min_advance', NULL, 'r', 0, 26, 0),
	(41, 'Read projects and tasks (shared projects or projects I am contact for). Can also enter time consumed on assigned tasks (timesheet)', 'projet', 1, 'lire', NULL, 'r', 0, 14, 0),
	(42, 'Create/modify projects and tasks (shared projects or projects I am contact for)', 'projet', 1, 'creer', NULL, 'w', 0, 14, 0),
	(44, 'Delete project and tasks (shared projects or projects I am contact for)', 'projet', 1, 'supprimer', NULL, 'd', 0, 14, 0),
	(45, 'Export projects', 'projet', 1, 'export', NULL, 'd', 0, 14, 0),
	(81, 'Read sales orders', 'commande', 1, 'lire', NULL, 'r', 0, 0, 0),
	(82, 'Creeat/modify sales orders', 'commande', 1, 'creer', NULL, 'w', 0, 0, 0),
	(84, 'Validate sales orders', 'commande', 1, 'order_advance', 'validate', 'd', 0, 0, 0),
	(86, 'Send sale orders by email', 'commande', 1, 'order_advance', 'send', 'd', 0, 0, 0),
	(87, 'Close sale orders', 'commande', 1, 'order_advance', 'close', 'd', 0, 0, 0),
	(88, 'Cancel sale orders', 'commande', 1, 'order_advance', 'annuler', 'd', 0, 0, 0),
	(89, 'Delete sales orders', 'commande', 1, 'supprimer', NULL, 'd', 0, 0, 0),
	(91, 'Lire les charges', 'tax', 1, 'charges', 'lire', 'r', 0, 50, 0),
	(92, 'Creer/modifier les charges', 'tax', 1, 'charges', 'creer', 'w', 0, 50, 0),
	(93, 'Supprimer les charges', 'tax', 1, 'charges', 'supprimer', 'd', 0, 50, 0),
	(94, 'Exporter les charges', 'tax', 1, 'charges', 'export', 'r', 0, 50, 0),
	(101, 'Lire les expeditions', 'expedition', 1, 'lire', NULL, 'r', 0, 40, 0),
	(102, 'Creer modifier les expeditions', 'expedition', 1, 'creer', NULL, 'w', 0, 40, 0),
	(104, 'Valider les expeditions', 'expedition', 1, 'shipping_advance', 'validate', 'd', 0, 40, 0),
	(105, 'Envoyer les expeditions aux clients', 'expedition', 1, 'shipping_advance', 'send', 'd', 0, 40, 0),
	(106, 'Exporter les expeditions', 'expedition', 1, 'shipment', 'export', 'r', 0, 40, 0),
	(109, 'Supprimer les expeditions', 'expedition', 1, 'supprimer', NULL, 'd', 0, 40, 0),
	(111, 'Read bank account and transactions', 'banque', 1, 'lire', NULL, 'r', 0, 0, 0),
	(112, 'Creer/modifier montant/supprimer ecriture bancaire', 'banque', 1, 'modifier', NULL, 'w', 0, 0, 0),
	(113, 'Configurer les comptes bancaires (creer, gerer categories)', 'banque', 1, 'configurer', NULL, 'a', 0, 0, 0),
	(114, 'Rapprocher les ecritures bancaires', 'banque', 1, 'consolidate', NULL, 'w', 0, 0, 0),
	(115, 'Exporter transactions et releves', 'banque', 1, 'export', NULL, 'r', 0, 0, 0),
	(116, 'Virements entre comptes', 'banque', 1, 'transfer', NULL, 'w', 0, 0, 0),
	(117, 'Gerer les envois de cheques', 'banque', 1, 'cheque', NULL, 'w', 0, 0, 0),
	(121, 'Read third parties', 'societe', 1, 'lire', NULL, 'r', 0, 0, 0),
	(122, 'Create and update third parties', 'societe', 1, 'creer', NULL, 'w', 0, 0, 0),
	(125, 'Delete third parties', 'societe', 1, 'supprimer', NULL, 'd', 0, 0, 0),
	(126, 'Export third parties', 'societe', 1, 'export', NULL, 'r', 0, 0, 0),
	(130, 'Modify thirdparty information payment', 'societe', 1, 'thirdparty_paymentinformation_advance', 'write', 'w', 0, 0, 0),
	(141, 'Read all projects and tasks (also private projects I am not contact for)', 'projet', 1, 'all', 'lire', 'r', 0, 14, 0),
	(142, 'Create/modify all projects and tasks (also private projects I am not contact for). Can also enter time consumed on assigned tasks (timesheet)', 'projet', 1, 'all', 'creer', 'w', 0, 14, 0),
	(144, 'Delete all projects and tasks (also private projects I am not contact for)', 'projet', 1, 'all', 'supprimer', 'd', 0, 14, 0),
	(241, 'Lire les categories', 'categorie', 1, 'lire', NULL, 'r', 0, 20, 0),
	(242, 'Creer/modifier les categories', 'categorie', 1, 'creer', NULL, 'w', 0, 20, 0),
	(243, 'Supprimer les categories', 'categorie', 1, 'supprimer', NULL, 'd', 0, 20, 0),
	(251, 'Read information of other users, groups and permissions', 'user', 1, 'user', 'lire', 'r', 0, 0, 0),
	(252, 'Read permissions of other users', 'user', 1, 'user_advance', 'readperms', 'r', 0, 0, 0),
	(253, 'Create/modify internal and external users, groups and permissions', 'user', 1, 'user', 'creer', 'w', 0, 0, 0),
	(254, 'Create/modify external users only', 'user', 1, 'user_advance', 'write', 'w', 0, 0, 0),
	(255, 'Modify the password of other users', 'user', 1, 'user', 'password', 'w', 0, 0, 0),
	(256, 'Delete or disable other users', 'user', 1, 'user', 'supprimer', 'd', 0, 0, 0),
	(262, 'Read all third parties (and their objects) by internal users (otherwise only if commercial contact). Not effective for external users (limited to themselves).', 'societe', 1, 'client', 'voir', 'r', 0, 0, 0),
	(281, 'Read contacts', 'societe', 1, 'contact', 'lire', 'r', 0, 0, 0),
	(282, 'Create and update contact', 'societe', 1, 'contact', 'creer', 'w', 0, 0, 0),
	(283, 'Delete contacts', 'societe', 1, 'contact', 'supprimer', 'd', 0, 0, 0),
	(286, 'Export contacts', 'societe', 1, 'contact', 'export', 'd', 0, 0, 0),
	(341, 'Read its own permissions', 'user', 1, 'self_advance', 'readperms', 'r', 0, 0, 0),
	(342, 'Create/modify of its own user', 'user', 1, 'self', 'creer', 'w', 0, 0, 0),
	(343, 'Modify its own password', 'user', 1, 'self', 'password', 'w', 0, 0, 0),
	(344, 'Modify its own permissions', 'user', 1, 'self_advance', 'writeperms', 'w', 0, 0, 0),
	(351, 'Read groups', 'user', 1, 'group_advance', 'read', 'r', 0, 0, 0),
	(352, 'Read permissions of groups', 'user', 1, 'group_advance', 'readperms', 'r', 0, 0, 0),
	(353, 'Create/modify groups and permissions', 'user', 1, 'group_advance', 'write', 'w', 0, 0, 0),
	(354, 'Delete groups', 'user', 1, 'group_advance', 'delete', 'd', 0, 0, 0),
	(358, 'Export all users', 'user', 1, 'user', 'export', 'r', 0, 0, 0),
	(431, 'Use Debug Bar', 'debugbar', 1, 'read', NULL, 'u', 1, 75, 0),
	(511, 'Read employee salaries and payments (yours and your subordinates)', 'salaries', 1, 'read', NULL, 'r', 0, 0, 0),
	(512, 'Create/modify payments of empoyee salaries', 'salaries', 1, 'write', NULL, 'w', 0, 0, 0),
	(514, 'Delete payments of employee salary', 'salaries', 1, 'delete', NULL, 'd', 0, 0, 0),
	(517, 'Read salaries and payments of all employees', 'salaries', 1, 'readall', NULL, 'r', 0, 0, 0),
	(519, 'Export payments of employee salaries', 'salaries', 1, 'export', NULL, 'r', 0, 0, 0),
	(531, 'Read services', 'service', 1, 'lire', NULL, 'r', 0, 0, 0),
	(532, 'Create/modify services', 'service', 1, 'creer', NULL, 'w', 0, 0, 0),
	(534, 'Delete les services', 'service', 1, 'supprimer', NULL, 'd', 0, 0, 0),
	(538, 'Export services', 'service', 1, 'export', NULL, 'r', 0, 0, 0),
	(1101, 'Lire les bons de livraison', 'expedition', 1, 'delivery', 'lire', 'r', 0, 40, 0),
	(1102, 'Creer modifier les bons de livraison', 'expedition', 1, 'delivery', 'creer', 'w', 0, 40, 0),
	(1104, 'Valider les bons de livraison', 'expedition', 1, 'delivery_advance', 'validate', 'd', 0, 40, 0),
	(1109, 'Supprimer les bons de livraison', 'expedition', 1, 'delivery', 'supprimer', 'd', 0, 40, 0),
	(1121, 'Read supplier proposals', 'supplier_proposal', 1, 'lire', NULL, 'w', 0, 35, 0),
	(1122, 'Create/modify supplier proposals', 'supplier_proposal', 1, 'creer', NULL, 'w', 0, 35, 0),
	(1123, 'Validate supplier proposals', 'supplier_proposal', 1, 'validate_advance', NULL, 'w', 0, 35, 0),
	(1124, 'Envoyer les demandes fournisseurs', 'supplier_proposal', 1, 'send_advance', NULL, 'w', 0, 35, 0),
	(1125, 'Delete supplier proposals', 'supplier_proposal', 1, 'supprimer', NULL, 'w', 0, 35, 0),
	(1126, 'Close supplier price requests', 'supplier_proposal', 1, 'cloturer', NULL, 'w', 0, 35, 0),
	(1181, 'Consulter les fournisseurs', 'fournisseur', 1, 'lire', NULL, 'r', 0, 0, 0),
	(1182, 'Consulter les commandes fournisseur', 'fournisseur', 1, 'commande', 'lire', 'r', 0, 0, 0),
	(1183, 'Creer une commande fournisseur', 'fournisseur', 1, 'commande', 'creer', 'w', 0, 0, 0),
	(1184, 'Valider une commande fournisseur', 'fournisseur', 1, 'supplier_order_advance', 'validate', 'w', 0, 0, 0),
	(1185, 'Approuver une commande fournisseur', 'fournisseur', 1, 'commande', 'approuver', 'w', 0, 0, 0),
	(1186, 'Commander une commande fournisseur', 'fournisseur', 1, 'commande', 'commander', 'w', 0, 0, 0),
	(1187, 'Receptionner une commande fournisseur', 'fournisseur', 1, 'commande', 'receptionner', 'd', 0, 0, 0),
	(1188, 'Supprimer une commande fournisseur', 'fournisseur', 1, 'commande', 'supprimer', 'd', 0, 0, 0),
	(1189, 'Check/Uncheck a supplier order reception', 'fournisseur', 1, 'commande_advance', 'check', 'w', 0, 0, 0),
	(1191, 'Exporter les commande fournisseurs, attributs', 'fournisseur', 1, 'commande', 'export', 'r', 0, 0, 0),
	(1231, 'Consulter les factures fournisseur', 'fournisseur', 1, 'facture', 'lire', 'r', 0, 0, 0),
	(1232, 'Creer une facture fournisseur', 'fournisseur', 1, 'facture', 'creer', 'w', 0, 0, 0),
	(1233, 'Valider une facture fournisseur', 'fournisseur', 1, 'supplier_invoice_advance', 'validate', 'w', 0, 0, 0),
	(1234, 'Supprimer une facture fournisseur', 'fournisseur', 1, 'facture', 'supprimer', 'd', 0, 0, 0),
	(1235, 'Envoyer les factures par mail', 'fournisseur', 1, 'supplier_invoice_advance', 'send', 'a', 0, 0, 0),
	(1236, 'Exporter les factures fournisseurs, attributs et reglements', 'fournisseur', 1, 'facture', 'export', 'r', 0, 0, 0),
	(1251, 'Run mass imports of external data (data load)', 'import', 1, 'run', NULL, 'r', 0, 70, 0),
	(1321, 'Export customer invoices, attributes and payments', 'facture', 1, 'facture', 'export', 'r', 0, 0, 0),
	(1322, 'Re-open a fully paid invoice', 'facture', 1, 'invoice_advance', 'reopen', 'r', 0, 0, 0),
	(1421, 'Export sales orders and attributes', 'commande', 1, 'commande', 'export', 'r', 0, 0, 0),
	(2401, 'Read actions/tasks linked to his account', 'agenda', 1, 'myactions', 'read', 'r', 0, 0, 0),
	(2402, 'Create/modify actions/tasks linked to his account', 'agenda', 1, 'myactions', 'create', 'w', 0, 0, 0),
	(2403, 'Delete actions/tasks linked to his account', 'agenda', 1, 'myactions', 'delete', 'w', 0, 0, 0),
	(2411, 'Read actions/tasks of others', 'agenda', 1, 'allactions', 'read', 'r', 0, 0, 0),
	(2412, 'Create/modify actions/tasks of others', 'agenda', 1, 'allactions', 'create', 'w', 0, 0, 0),
	(2413, 'Delete actions/tasks of others', 'agenda', 1, 'allactions', 'delete', 'w', 0, 0, 0),
	(2414, 'Export actions/tasks of others', 'agenda', 1, 'export', NULL, 'w', 0, 0, 0),
	(2610, 'Générer / modifier la clé API des utilisateurs', 'api', 1, 'apikey', 'generate', 'w', 0, 24, 0),
	(23001, 'Read cron jobs', 'cron', 1, 'read', NULL, 'w', 0, 0, 0),
	(23002, 'Create cron Jobs', 'cron', 1, 'create', NULL, 'w', 0, 0, 0),
	(23003, 'Delete cron Jobs', 'cron', 1, 'delete', NULL, 'w', 0, 0, 0),
	(23004, 'Execute cron Jobs', 'cron', 1, 'execute', NULL, 'w', 0, 0, 0),
	(50401, 'Bind products and invoices with accounting accounts', 'accounting', 1, 'bind', 'write', 'r', 0, 61, 0),
	(50411, 'Read operations in Ledger', 'accounting', 1, 'mouvements', 'lire', 'r', 0, 61, 0),
	(50412, 'Write/Edit operations in Ledger', 'accounting', 1, 'mouvements', 'creer', 'w', 0, 61, 0),
	(50414, 'Delete operations in Ledger', 'accounting', 1, 'mouvements', 'supprimer', 'd', 0, 61, 0),
	(50415, 'Delete all operations by year and journal in Ledger', 'accounting', 1, 'mouvements', 'supprimer_tous', 'd', 0, 61, 0),
	(50418, 'Export operations of the Ledger', 'accounting', 1, 'mouvements', 'export', 'r', 0, 61, 0),
	(50420, 'Report and export reports (turnover, balance, journals, ledger)', 'accounting', 1, 'comptarapport', 'lire', 'r', 0, 61, 0),
	(50430, 'Define and close a fiscal year', 'accounting', 1, 'fiscalyear', 'write', 'r', 0, 61, 0),
	(50440, 'Manage chart of accounts, setup of accountancy', 'accounting', 1, 'chartofaccount', NULL, 'r', 0, 61, 0),
	(63001, 'Read resources', 'resource', 1, 'read', NULL, 'w', 0, 16, 0),
	(63002, 'Create/Modify resources', 'resource', 1, 'write', NULL, 'w', 0, 16, 0),
	(63003, 'Delete resources', 'resource', 1, 'delete', NULL, 'w', 0, 16, 0),
	(63004, 'Link resources to agenda events', 'resource', 1, 'link', NULL, 'w', 0, 16, 0),
	(423100, 'Lire les documents D&ucirc; clients', 'customersowed', 1, 'read', NULL, 'w', 1, 100090, 0),
	(423101, 'Cr&eacute;er un document D&ucirc; clients', 'customersowed', 1, 'write', NULL, 'w', 1, 100090, 0),
	(423102, 'Supprimer les documents D&ucirc; clients', 'customersowed', 1, 'delete', NULL, 'w', 0, 100090, 0),
	(423103, 'Lire les documents Synth&egrave;se des ventes', 'salessummaryreport', 1, 'read', NULL, 'w', 1, 100090, 0),
	(423104, 'Cr&eacute;er un document Synth&egrave;se des ventes', 'salessummaryreport', 1, 'write', NULL, 'w', 1, 100090, 0),
	(423105, 'Supprimer les documents Synth&egrave;se des ventes', 'salessummaryreport', 1, 'delete', NULL, 'w', 0, 100090, 0),
	(423126, 'Lire les fichiers CSV', 'invoicesexport', 1, 'read', NULL, 'w', 1, 100090, 0),
	(423127, 'Cr&eacute;er un fichier CSV', 'invoicesexport', 1, 'write', NULL, 'w', 1, 100090, 0),
	(423128, 'Supprimer les fichiers CSV', 'invoicesexport', 1, 'delete', NULL, 'w', 0, 100090, 0),
	(423136, 'Lire les documents D&ucirc; fournisseurs', 'suppliersowed', 1, 'read', NULL, 'w', 1, 100090, 0),
	(423137, 'Cr&eacute;er un document D&ucirc; fournisseurs', 'suppliersowed', 1, 'write', NULL, 'w', 1, 100090, 0),
	(423138, 'Supprimer les documents D&ucirc; fournisseurs', 'suppliersowed', 1, 'delete', NULL, 'w', 0, 100090, 0),
	(1101101, 'See places', 'place', 1, 'read', NULL, 'w', 0, 100050, 0),
	(1101102, 'Modify places', 'place', 1, 'write', NULL, 'w', 0, 100050, 0),
	(1101103, 'Delete places', 'place', 1, 'delete', NULL, 'w', 0, 100050, 0),
	(42311101, 'Read saved ExtensiveSearch', 'extensivesearch', 1, 'read', NULL, 'w', 1, 100090, 0),
	(42311102, 'Create/update ExtensiveSearch', 'extensivesearch', 1, 'write', NULL, 'w', 0, 100090, 0),
	(42311103, 'Delete ExtensiveSearch', 'extensivesearch', 1, 'delete', NULL, 'w', 0, 100090, 0);

-- Listage de la structure de table gestcom. llx_salary
CREATE TABLE IF NOT EXISTS `llx_salary` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `fk_user` int(11) NOT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `salary` double(24,8) DEFAULT NULL,
  `amount` double(24,8) NOT NULL DEFAULT 0.00000000,
  `fk_projet` int(11) DEFAULT NULL,
  `datesp` date DEFAULT NULL,
  `dateep` date DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `paye` smallint(6) NOT NULL DEFAULT 0,
  `fk_typepayment` int(11) NOT NULL,
  `fk_account` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_salary : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_salary_extrafields
CREATE TABLE IF NOT EXISTS `llx_salary_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_salary_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_salary_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_session
CREATE TABLE IF NOT EXISTS `llx_session` (
  `session_id` varchar(50) NOT NULL,
  `session_variable` text DEFAULT NULL,
  `last_accessed` datetime NOT NULL,
  `fk_user` int(11) NOT NULL,
  `remote_ip` varchar(64) DEFAULT NULL,
  `user_agent` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`session_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_session : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_societe
CREATE TABLE IF NOT EXISTS `llx_societe` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `nom` varchar(128) DEFAULT NULL,
  `name_alias` varchar(128) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(128) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `statut` tinyint(4) DEFAULT 0,
  `parent` int(11) DEFAULT NULL,
  `status` tinyint(4) DEFAULT 1,
  `code_client` varchar(24) DEFAULT NULL,
  `code_fournisseur` varchar(24) DEFAULT NULL,
  `code_compta` varchar(24) DEFAULT NULL,
  `code_compta_fournisseur` varchar(24) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_departement` int(11) DEFAULT 0,
  `fk_pays` int(11) DEFAULT 0,
  `fk_account` int(11) DEFAULT 0,
  `phone` varchar(20) DEFAULT NULL,
  `fax` varchar(20) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `email` varchar(128) DEFAULT NULL,
  `socialnetworks` text DEFAULT NULL,
  `fk_effectif` int(11) DEFAULT 0,
  `fk_typent` int(11) DEFAULT NULL,
  `fk_forme_juridique` int(11) DEFAULT 0,
  `fk_currency` varchar(3) DEFAULT NULL,
  `siren` varchar(128) DEFAULT NULL,
  `siret` varchar(128) DEFAULT NULL,
  `ape` varchar(128) DEFAULT NULL,
  `idprof4` varchar(128) DEFAULT NULL,
  `idprof5` varchar(128) DEFAULT NULL,
  `idprof6` varchar(128) DEFAULT NULL,
  `tva_intra` varchar(20) DEFAULT NULL,
  `capital` double(24,8) DEFAULT NULL,
  `fk_stcomm` int(11) NOT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `prefix_comm` varchar(5) DEFAULT NULL,
  `client` tinyint(4) DEFAULT 0,
  `fournisseur` tinyint(4) DEFAULT 0,
  `supplier_account` varchar(32) DEFAULT NULL,
  `fk_prospectlevel` varchar(12) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `customer_bad` tinyint(4) DEFAULT 0,
  `customer_rate` double DEFAULT 0,
  `supplier_rate` double DEFAULT 0,
  `remise_client` double DEFAULT 0,
  `remise_supplier` double DEFAULT 0,
  `mode_reglement` tinyint(4) DEFAULT NULL,
  `cond_reglement` tinyint(4) DEFAULT NULL,
  `deposit_percent` varchar(63) DEFAULT NULL,
  `transport_mode` tinyint(4) DEFAULT NULL,
  `mode_reglement_supplier` tinyint(4) DEFAULT NULL,
  `cond_reglement_supplier` tinyint(4) DEFAULT NULL,
  `transport_mode_supplier` tinyint(4) DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `tva_assuj` tinyint(4) DEFAULT 1,
  `localtax1_assuj` tinyint(4) DEFAULT 0,
  `localtax1_value` double(6,3) DEFAULT NULL,
  `localtax2_assuj` tinyint(4) DEFAULT 0,
  `localtax2_value` double(6,3) DEFAULT NULL,
  `barcode` varchar(180) DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT 0,
  `price_level` int(11) DEFAULT NULL,
  `outstanding_limit` double(24,8) DEFAULT NULL,
  `order_min_amount` double(24,8) DEFAULT NULL,
  `supplier_order_min_amount` double(24,8) DEFAULT NULL,
  `default_lang` varchar(6) DEFAULT NULL,
  `logo` varchar(255) DEFAULT NULL,
  `canvas` varchar(32) DEFAULT NULL,
  `fk_warehouse` int(11) DEFAULT NULL,
  `Webservices_url` varchar(255) DEFAULT NULL,
  `Webservices_key` varchar(128) DEFAULT NULL,
  `accountancy_code_sell` varchar(32) DEFAULT NULL,
  `accountancy_code_buy` varchar(32) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `logo_squarred` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_societe_prefix_comm` (`prefix_comm`,`entity`),
  UNIQUE KEY `uk_societe_code_client` (`code_client`,`entity`),
  UNIQUE KEY `uk_societe_code_fournisseur` (`code_fournisseur`,`entity`),
  UNIQUE KEY `uk_societe_barcode` (`barcode`,`fk_barcode_type`,`entity`),
  KEY `idx_societe_user_creat` (`fk_user_creat`),
  KEY `idx_societe_user_modif` (`fk_user_modif`),
  KEY `idx_societe_barcode` (`barcode`),
  KEY `idx_societe_warehouse` (`fk_warehouse`)
) ENGINE=InnoDB AUTO_INCREMENT=1154 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_societe : ~20 rows (environ)
INSERT INTO `llx_societe` (`rowid`, `nom`, `name_alias`, `entity`, `ref_ext`, `ref_int`, `statut`, `parent`, `status`, `code_client`, `code_fournisseur`, `code_compta`, `code_compta_fournisseur`, `address`, `zip`, `town`, `fk_departement`, `fk_pays`, `fk_account`, `phone`, `fax`, `url`, `email`, `socialnetworks`, `fk_effectif`, `fk_typent`, `fk_forme_juridique`, `fk_currency`, `siren`, `siret`, `ape`, `idprof4`, `idprof5`, `idprof6`, `tva_intra`, `capital`, `fk_stcomm`, `note_private`, `note_public`, `model_pdf`, `prefix_comm`, `client`, `fournisseur`, `supplier_account`, `fk_prospectlevel`, `fk_incoterms`, `location_incoterms`, `customer_bad`, `customer_rate`, `supplier_rate`, `remise_client`, `remise_supplier`, `mode_reglement`, `cond_reglement`, `deposit_percent`, `transport_mode`, `mode_reglement_supplier`, `cond_reglement_supplier`, `transport_mode_supplier`, `fk_shipping_method`, `tva_assuj`, `localtax1_assuj`, `localtax1_value`, `localtax2_assuj`, `localtax2_value`, `barcode`, `fk_barcode_type`, `price_level`, `outstanding_limit`, `order_min_amount`, `supplier_order_min_amount`, `default_lang`, `logo`, `canvas`, `fk_warehouse`, `Webservices_url`, `Webservices_key`, `accountancy_code_sell`, `accountancy_code_buy`, `tms`, `datec`, `fk_user_creat`, `fk_user_modif`, `fk_multicurrency`, `multicurrency_code`, `import_key`, `logo_squarred`) VALUES
	(1134, 'DURAND Michel', '', 1, NULL, NULL, 0, NULL, 1, 'CL0001', NULL, NULL, NULL, '3, rue des Tournesols', '27000', 'EVREUX', 0, 1, 0, NULL, NULL, NULL, 'ikromun@tariftelecom.com', '[]', NULL, NULL, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, 200.00000000, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, '2020-11-23 14:26:08', NULL, 1, 2, 0, '', '20190417160148', NULL),
	(1135, 'METTAIS Richard', '', 1, NULL, NULL, 0, NULL, 1, 'CL0002', NULL, NULL, NULL, '2 rue du moulin', '27500', 'PONT-AUDEMER', 0, 1, 0, NULL, NULL, NULL, 'richard.mettais@gmail.com', NULL, NULL, NULL, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, '2019-04-17 20:07:08', NULL, 1, 1, 0, '', '20190417160148', NULL),
	(1136, 'DUPOND Xavier', NULL, 1, NULL, NULL, 0, NULL, 1, 'CL0003', NULL, NULL, NULL, 'Place de l\'étoile', '75000', 'PARIS', 0, 1, 0, '0678890163', NULL, NULL, 'zag-the-chef@gmail.com', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, '2019-04-17 20:01:48', NULL, 1, NULL, NULL, NULL, '20190417160148', NULL),
	(1137, 'ALLARD Gérard', '', 1, NULL, NULL, 0, NULL, 1, 'CL0004', NULL, NULL, NULL, 'place de l\'église', '76000', 'ROUEN', NULL, 1, 0, NULL, NULL, NULL, NULL, '[]', NULL, -1, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, '', NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '2022-06-29 15:48:23', NULL, 1, 2, 0, '', '20190417160148', NULL),
	(1138, 'FERRAND', '', 1, NULL, NULL, 0, NULL, 1, 'CL0005', NULL, NULL, NULL, 'Rue d\'ici', '76000', 'LA BAS', 0, 1, 0, '0235353535', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, '2019-04-23 12:51:56', NULL, 1, 1, 0, '', '20190417160148', NULL),
	(1139, 'BRADANT', '', 1, NULL, NULL, 0, NULL, 1, 'CL0006', NULL, NULL, NULL, '17 RUE DE CONNELLES', '75004', 'PARIS', 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, '', 0, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, '2019-04-23 09:57:46', NULL, 1, 1, 0, '', '20190417160148', NULL),
	(1140, 'GAEC CARPENTIER', NULL, 1, NULL, NULL, 0, NULL, 1, 'CL0007', NULL, NULL, NULL, '05 lieu-dit Mont Joyeux', '27430', 'DAUBEUF PRES VATTEVILLE', 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, 100, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, '2019-04-17 20:01:48', NULL, 1, NULL, NULL, NULL, '20190417160148', NULL),
	(1141, 'Mme HERICHET', NULL, 1, NULL, NULL, 0, NULL, 1, 'CL0008', NULL, NULL, NULL, NULL, NULL, NULL, 0, 1, 0, '0232998877', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 2, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, '2019-04-17 20:01:48', NULL, 1, NULL, NULL, NULL, '20190417160148', NULL),
	(1142, 'Madame LAMBERT', NULL, 1, NULL, NULL, 0, NULL, 1, 'CL0009', NULL, NULL, NULL, '58 rue de la Haierie', '27310', 'BOSBENARD CRESCY', 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, '2019-04-17 20:01:48', NULL, 1, NULL, NULL, NULL, '20190417160148', NULL),
	(1143, 'CEDEO', '', 1, NULL, NULL, 0, NULL, 1, NULL, '000001', NULL, NULL, '', NULL, NULL, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, '2019-07-02 11:56:08', '2019-07-02 13:56:08', 1, 1, 0, '', NULL, NULL),
	(1144, 'CAULIAN', '', 1, NULL, NULL, 0, NULL, 1, 'CL0010', NULL, NULL, NULL, 'Appartement 5 Immeuble Canadien Place de l\'église', '14000', 'CAEN', 0, 1, 0, NULL, NULL, NULL, NULL, '[]', NULL, NULL, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, NULL, 2, 0, NULL, '', 0, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, '2020-07-24 14:10:16', '2020-07-24 16:10:16', 1, 1, 0, '', NULL, NULL),
	(1145, 'Alain PRESSION', 'Abdellah', 1, NULL, NULL, 0, NULL, 1, 'CL0011', NULL, NULL, NULL, 'C/OWORK IN PARIS, 350 Rue de Vaugirard', '33770', 'SALLES', NULL, 1, 0, '0661378023', NULL, NULL, 'abdel@nuanciel.net', '[]', NULL, -1, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, '', NULL, 2, 0, NULL, '', 0, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '2021-12-15 11:40:13', '2021-12-15 12:40:13', -1, 2, 0, '', NULL, NULL),
	(1146, 'Orange', '', 1, NULL, NULL, 0, NULL, 1, NULL, '000002', NULL, NULL, '', NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, '[]', NULL, -1, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, '', NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '2022-06-23 15:46:58', '2022-06-23 17:46:58', -1, 1, 0, '', NULL, NULL),
	(1147, 'Engie', '', 1, NULL, NULL, 0, NULL, 1, NULL, '000003', NULL, NULL, '', NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, '[]', NULL, -1, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, '', NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '2022-06-23 15:47:19', '2022-06-23 17:47:18', -1, 1, 0, '', NULL, NULL),
	(1148, 'Intermarché', '', 1, NULL, NULL, 0, NULL, 1, NULL, '000004', NULL, NULL, '', NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, '[]', NULL, -1, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, '', NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '2022-06-23 15:47:35', '2022-06-23 17:47:35', -1, 1, 0, '', NULL, NULL),
	(1149, 'E Leclerc', '', 1, NULL, NULL, 0, NULL, 1, NULL, '000005', NULL, NULL, '', NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, '[]', NULL, -1, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, '', NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '2022-06-23 15:48:25', '2022-06-23 17:48:25', -1, 1, 0, '', NULL, NULL),
	(1150, 'Carrefour', '', 1, NULL, NULL, 0, NULL, 1, NULL, '000006', NULL, NULL, '', NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, '[]', NULL, -1, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, '', NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '2022-06-23 15:48:35', '2022-06-23 17:48:35', -1, 1, 0, '', NULL, NULL),
	(1151, 'Amazon', '', 1, NULL, NULL, 0, NULL, 1, NULL, '000007', NULL, NULL, '', NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, '[]', NULL, -1, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, '', NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '2022-06-23 15:48:43', '2022-06-23 17:48:43', -1, 1, 0, '', NULL, NULL),
	(1152, 'CDiscount', '', 1, NULL, NULL, 0, NULL, 1, NULL, '000008', NULL, NULL, '', NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, '[]', NULL, -1, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, '', NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '2022-06-23 15:48:50', '2022-06-23 17:48:50', -1, 1, 0, '', NULL, NULL),
	(1153, 'FNAC', '', 1, NULL, NULL, 0, NULL, 1, NULL, '000009', NULL, NULL, '', NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, '[]', NULL, -1, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, '', NULL, 0, 1, NULL, '', 0, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '2022-06-23 15:48:56', '2022-06-23 17:48:56', -1, 1, 0, '', NULL, NULL);

-- Listage de la structure de table gestcom. llx_societe_account
CREATE TABLE IF NOT EXISTS `llx_societe_account` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT 1,
  `key_account` varchar(128) DEFAULT NULL,
  `login` varchar(128) NOT NULL,
  `pass_encoding` varchar(24) DEFAULT NULL,
  `pass_crypted` varchar(128) DEFAULT NULL,
  `pass_temp` varchar(128) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `site` varchar(128) DEFAULT NULL,
  `fk_Website` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `date_last_login` datetime DEFAULT NULL,
  `date_previous_login` datetime DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `site_account` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_societe_account_login_Website_soc` (`entity`,`fk_soc`,`login`,`site`,`fk_Website`),
  UNIQUE KEY `uk_societe_account_key_account_soc` (`entity`,`fk_soc`,`key_account`,`site`,`fk_Website`),
  KEY `idx_societe_account_rowid` (`rowid`),
  KEY `idx_societe_account_login` (`login`),
  KEY `idx_societe_account_status` (`status`),
  KEY `idx_societe_account_fk_Website` (`fk_Website`),
  KEY `idx_societe_account_fk_soc` (`fk_soc`),
  CONSTRAINT `llx_societe_account_fk_societe` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_societe_account : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_societe_address
CREATE TABLE IF NOT EXISTS `llx_societe_address` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `label` varchar(30) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT 0,
  `name` varchar(60) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(10) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_pays` int(11) DEFAULT 0,
  `phone` varchar(20) DEFAULT NULL,
  `fax` varchar(20) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_societe_address : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_societe_commerciaux
CREATE TABLE IF NOT EXISTS `llx_societe_commerciaux` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_societe_commerciaux` (`fk_soc`,`fk_user`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_societe_commerciaux : ~0 rows (environ)
INSERT INTO `llx_societe_commerciaux` (`rowid`, `fk_soc`, `fk_user`, `import_key`) VALUES
	(1, 1145, 1, NULL);

-- Listage de la structure de table gestcom. llx_societe_contacts
CREATE TABLE IF NOT EXISTS `llx_societe_contacts` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `date_creation` datetime NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `fk_c_type_contact` int(11) NOT NULL,
  `fk_socpeople` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_societe_contacts_idx1` (`entity`,`fk_soc`,`fk_c_type_contact`,`fk_socpeople`),
  KEY `fk_societe_contacts_fk_soc` (`fk_soc`),
  KEY `fk_societe_contacts_fk_socpeople` (`fk_socpeople`),
  KEY `fk_societe_contacts_fk_c_type_contact` (`fk_c_type_contact`),
  CONSTRAINT `fk_societe_contacts_fk_c_type_contact` FOREIGN KEY (`fk_c_type_contact`) REFERENCES `llx_c_type_contact` (`rowid`),
  CONSTRAINT `fk_societe_contacts_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_societe_contacts_fk_socpeople` FOREIGN KEY (`fk_socpeople`) REFERENCES `llx_socpeople` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_societe_contacts : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_societe_extrafields
CREATE TABLE IF NOT EXISTS `llx_societe_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_societe_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_societe_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_societe_log
CREATE TABLE IF NOT EXISTS `llx_societe_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datel` datetime DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_statut` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `author` varchar(30) DEFAULT NULL,
  `label` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_societe_log : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_societe_perentity
CREATE TABLE IF NOT EXISTS `llx_societe_perentity` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_soc` int(11) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `accountancy_code_customer` varchar(24) DEFAULT NULL,
  `accountancy_code_supplier` varchar(24) DEFAULT NULL,
  `accountancy_code_sell` varchar(32) DEFAULT NULL,
  `accountancy_code_buy` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_societe_perentity` (`fk_soc`,`entity`),
  KEY `idx_societe_perentity_fk_soc` (`fk_soc`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_societe_perentity : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_societe_prices
CREATE TABLE IF NOT EXISTS `llx_societe_prices` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_soc` int(11) DEFAULT 0,
  `tms` timestamp NULL DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `price_level` tinyint(4) DEFAULT 1,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_societe_prices : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_societe_remise
CREATE TABLE IF NOT EXISTS `llx_societe_remise` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `remise_client` double(6,3) NOT NULL DEFAULT 0.000,
  `note` text DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_societe_remise : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_societe_remise_except
CREATE TABLE IF NOT EXISTS `llx_societe_remise_except` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `discount_type` int(11) NOT NULL DEFAULT 0,
  `datec` datetime DEFAULT NULL,
  `amount_ht` double(24,8) NOT NULL,
  `amount_tva` double(24,8) NOT NULL DEFAULT 0.00000000,
  `amount_ttc` double(24,8) NOT NULL DEFAULT 0.00000000,
  `tva_tx` double(6,3) NOT NULL DEFAULT 0.000,
  `fk_user` int(11) NOT NULL,
  `fk_facture_line` int(11) DEFAULT NULL,
  `fk_facture` int(11) DEFAULT NULL,
  `fk_facture_source` int(11) DEFAULT NULL,
  `fk_invoice_supplier_line` int(11) DEFAULT NULL,
  `fk_invoice_supplier` int(11) DEFAULT NULL,
  `fk_invoice_supplier_source` int(11) DEFAULT NULL,
  `description` text NOT NULL,
  `multicurrency_amount_ht` double(24,8) NOT NULL DEFAULT 0.00000000,
  `multicurrency_amount_tva` double(24,8) NOT NULL DEFAULT 0.00000000,
  `multicurrency_amount_ttc` double(24,8) NOT NULL DEFAULT 0.00000000,
  `vat_src_code` varchar(10) DEFAULT '',
  PRIMARY KEY (`rowid`),
  KEY `idx_societe_remise_except_fk_user` (`fk_user`),
  KEY `idx_societe_remise_except_fk_soc` (`fk_soc`),
  KEY `idx_societe_remise_except_fk_facture_line` (`fk_facture_line`),
  KEY `idx_societe_remise_except_fk_facture` (`fk_facture`),
  KEY `idx_societe_remise_except_fk_facture_source` (`fk_facture_source`),
  KEY `idx_societe_remise_except_discount_type` (`discount_type`),
  KEY `fk_soc_remise_fk_invoice_supplier_line` (`fk_invoice_supplier_line`),
  KEY `fk_societe_remise_fk_invoice_supplier_source` (`fk_invoice_supplier`),
  CONSTRAINT `fk_soc_remise_fk_facture_line` FOREIGN KEY (`fk_facture_line`) REFERENCES `llx_facturedet` (`rowid`),
  CONSTRAINT `fk_soc_remise_fk_invoice_supplier_line` FOREIGN KEY (`fk_invoice_supplier_line`) REFERENCES `llx_facture_fourn_det` (`rowid`),
  CONSTRAINT `fk_soc_remise_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_invoice_supplier` FOREIGN KEY (`fk_invoice_supplier`) REFERENCES `llx_facture_fourn` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_invoice_supplier_source` FOREIGN KEY (`fk_invoice_supplier`) REFERENCES `llx_facture_fourn` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_societe_remise_except : ~0 rows (environ)
INSERT INTO `llx_societe_remise_except` (`rowid`, `entity`, `fk_soc`, `discount_type`, `datec`, `amount_ht`, `amount_tva`, `amount_ttc`, `tva_tx`, `fk_user`, `fk_facture_line`, `fk_facture`, `fk_facture_source`, `fk_invoice_supplier_line`, `fk_invoice_supplier`, `fk_invoice_supplier_source`, `description`, `multicurrency_amount_ht`, `multicurrency_amount_tva`, `multicurrency_amount_ttc`, `vat_src_code`) VALUES
	(1, 1, 1134, 0, '2020-08-06 17:15:14', 39.00000000, 7.80000000, 46.80000000, 20.000, 2, NULL, NULL, 13, NULL, NULL, NULL, '(CREDIT_NOTE)', 39.00000000, 7.80000000, 46.80000000, '');

-- Listage de la structure de table gestcom. llx_societe_remise_supplier
CREATE TABLE IF NOT EXISTS `llx_societe_remise_supplier` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `remise_supplier` double(6,3) NOT NULL DEFAULT 0.000,
  `note` text DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_societe_remise_supplier : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_societe_rib
CREATE TABLE IF NOT EXISTS `llx_societe_rib` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `type` varchar(32) NOT NULL,
  `label` varchar(200) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `bank` varchar(255) DEFAULT NULL,
  `code_banque` varchar(128) DEFAULT NULL,
  `code_guichet` varchar(6) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `cle_rib` varchar(5) DEFAULT NULL,
  `bic` varchar(20) DEFAULT NULL,
  `iban_prefix` varchar(34) DEFAULT NULL,
  `domiciliation` varchar(255) DEFAULT NULL,
  `proprio` varchar(60) DEFAULT NULL,
  `owner_address` varchar(255) DEFAULT NULL,
  `default_rib` smallint(6) NOT NULL DEFAULT 0,
  `rum` varchar(32) DEFAULT NULL,
  `date_rum` date DEFAULT NULL,
  `frstrecur` varchar(16) DEFAULT 'FRST',
  `last_four` varchar(4) DEFAULT NULL,
  `card_type` varchar(255) DEFAULT NULL,
  `cvn` varchar(255) DEFAULT NULL,
  `exp_date_month` int(11) DEFAULT NULL,
  `exp_date_year` int(11) DEFAULT NULL,
  `country_code` varchar(10) DEFAULT NULL,
  `approved` int(11) DEFAULT 0,
  `email` varchar(255) DEFAULT NULL,
  `ending_date` date DEFAULT NULL,
  `max_total_amount_of_all_payments` double(24,8) DEFAULT NULL,
  `preapproval_key` varchar(255) DEFAULT NULL,
  `starting_date` date DEFAULT NULL,
  `total_amount_of_all_payments` double(24,8) DEFAULT NULL,
  `stripe_card_ref` varchar(128) DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `ipaddress` varchar(68) DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `import_key` varchar(14) DEFAULT NULL,
  `stripe_account` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_societe_rib` (`label`,`fk_soc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_societe_rib : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_socpeople
CREATE TABLE IF NOT EXISTS `llx_socpeople` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_soc` int(11) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(255) DEFAULT NULL,
  `civility` varchar(6) DEFAULT NULL,
  `lastname` varchar(50) DEFAULT NULL,
  `firstname` varchar(50) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` varchar(255) DEFAULT NULL,
  `fk_departement` int(11) DEFAULT NULL,
  `fk_pays` int(11) DEFAULT 0,
  `birthday` date DEFAULT NULL,
  `poste` varchar(255) DEFAULT NULL,
  `phone` varchar(30) DEFAULT NULL,
  `phone_perso` varchar(30) DEFAULT NULL,
  `phone_mobile` varchar(30) DEFAULT NULL,
  `fax` varchar(30) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `socialnetworks` text DEFAULT NULL,
  `photo` varchar(255) DEFAULT NULL,
  `no_email` smallint(6) NOT NULL DEFAULT 0,
  `priv` smallint(6) NOT NULL DEFAULT 0,
  `fk_prospectcontactlevel` varchar(12) DEFAULT NULL,
  `fk_stcommcontact` int(11) NOT NULL DEFAULT 0,
  `fk_user_creat` int(11) DEFAULT 0,
  `fk_user_modif` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `default_lang` varchar(6) DEFAULT NULL,
  `canvas` varchar(32) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `statut` tinyint(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`),
  KEY `idx_socpeople_fk_soc` (`fk_soc`),
  KEY `idx_socpeople_fk_user_creat` (`fk_user_creat`),
  CONSTRAINT `fk_socpeople_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_socpeople_user_creat_user_rowid` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_socpeople : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_socpeople_extrafields
CREATE TABLE IF NOT EXISTS `llx_socpeople_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_socpeople_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_socpeople_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_stock_lotserial
CREATE TABLE IF NOT EXISTS `llx_stock_lotserial` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT NULL,
  `fk_product` int(11) NOT NULL,
  `batch` varchar(30) DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_stock_lotserial : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_stock_mouvement
CREATE TABLE IF NOT EXISTS `llx_stock_mouvement` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datem` datetime DEFAULT NULL,
  `fk_product` int(11) NOT NULL,
  `batch` varchar(128) DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `fk_entrepot` int(11) NOT NULL,
  `value` double DEFAULT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `type_mouvement` smallint(6) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `inventorycode` varchar(128) DEFAULT NULL,
  `fk_project` int(11) DEFAULT NULL,
  `fk_origin` int(11) DEFAULT NULL,
  `origintype` varchar(64) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `fk_projet` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`rowid`),
  KEY `idx_stock_mouvement_fk_product` (`fk_product`),
  KEY `idx_stock_mouvement_fk_entrepot` (`fk_entrepot`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_stock_mouvement : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_stock_mouvement_extrafields
CREATE TABLE IF NOT EXISTS `llx_stock_mouvement_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_stock_mouvement_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_stock_mouvement_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_subscription
CREATE TABLE IF NOT EXISTS `llx_subscription` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `fk_adherent` int(11) DEFAULT NULL,
  `dateadh` datetime DEFAULT NULL,
  `datef` datetime DEFAULT NULL,
  `subscription` double(24,8) DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_type` int(11) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_subscription` (`fk_adherent`,`dateadh`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_subscription : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_suppliersowed_myobject
CREATE TABLE IF NOT EXISTS `llx_suppliersowed_myobject` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `label` varchar(255) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_suppliersowed_myobject : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_suppliersowed_myobject_extrafields
CREATE TABLE IF NOT EXISTS `llx_suppliersowed_myobject_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_suppliersowed_myobject_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_supplier_proposal
CREATE TABLE IF NOT EXISTS `llx_supplier_proposal` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_cloture` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_cloture` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `price` double DEFAULT 0,
  `remise_percent` double DEFAULT 0,
  `remise_absolue` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `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,
  `fk_account` int(11) DEFAULT NULL,
  `fk_currency` varchar(3) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `date_livraison` date DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(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,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_supplier_proposal : ~0 rows (environ)

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

-- Listage des données de la table gestcom.llx_supplier_proposaldet : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_supplier_proposaldet_extrafields
CREATE TABLE IF NOT EXISTS `llx_supplier_proposaldet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_supplier_proposaldet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_supplier_proposaldet_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_supplier_proposal_extrafields
CREATE TABLE IF NOT EXISTS `llx_supplier_proposal_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_supplier_proposal_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_supplier_proposal_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_takepos_floor_tables
CREATE TABLE IF NOT EXISTS `llx_takepos_floor_tables` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `label` varchar(255) DEFAULT NULL,
  `leftpos` float DEFAULT NULL,
  `toppos` float DEFAULT NULL,
  `floor` smallint(6) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `entity` (`entity`,`label`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_takepos_floor_tables : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_ticket
CREATE TABLE IF NOT EXISTS `llx_ticket` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT 1,
  `ref` varchar(128) NOT NULL,
  `track_id` varchar(128) NOT NULL,
  `fk_soc` int(11) DEFAULT 0,
  `fk_project` int(11) DEFAULT 0,
  `origin_email` varchar(128) DEFAULT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `fk_user_assign` int(11) DEFAULT NULL,
  `subject` varchar(255) DEFAULT NULL,
  `message` text DEFAULT NULL,
  `fk_statut` int(11) DEFAULT NULL,
  `resolution` int(11) DEFAULT NULL,
  `progress` int(11) DEFAULT NULL,
  `timing` varchar(20) DEFAULT NULL,
  `type_code` varchar(32) DEFAULT NULL,
  `category_code` varchar(32) DEFAULT NULL,
  `severity_code` varchar(32) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `date_read` datetime DEFAULT NULL,
  `date_last_msg_sent` datetime DEFAULT NULL,
  `date_close` datetime DEFAULT NULL,
  `notify_tiers_at_create` tinyint(4) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `import_key` varchar(14) DEFAULT NULL,
  `email_msgid` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_ticket_track_id` (`track_id`),
  UNIQUE KEY `uk_ticket_ref` (`ref`,`entity`),
  KEY `idx_ticket_entity` (`entity`),
  KEY `idx_ticket_fk_soc` (`fk_soc`),
  KEY `idx_ticket_fk_user_assign` (`fk_user_assign`),
  KEY `idx_ticket_fk_project` (`fk_project`),
  KEY `idx_ticket_fk_statut` (`fk_statut`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_ticket : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_ticket_extrafields
CREATE TABLE IF NOT EXISTS `llx_ticket_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_ticket_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_ticket_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_tva
CREATE TABLE IF NOT EXISTS `llx_tva` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `fk_typepayment` int(11) DEFAULT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `paye` smallint(6) NOT NULL DEFAULT 0,
  `fk_account` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_tva : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_user
CREATE TABLE IF NOT EXISTS `llx_user` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_employee` varchar(50) DEFAULT NULL,
  `ref_ext` varchar(50) DEFAULT NULL,
  `employee` tinyint(4) DEFAULT 1,
  `fk_establishment` int(11) DEFAULT 0,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `login` varchar(50) DEFAULT NULL,
  `pass_encoding` varchar(24) DEFAULT NULL,
  `pass` varchar(128) DEFAULT NULL,
  `pass_crypted` varchar(128) DEFAULT NULL,
  `pass_temp` varchar(128) DEFAULT NULL,
  `civilite` varchar(6) DEFAULT NULL,
  `api_key` varchar(128) DEFAULT NULL,
  `gender` varchar(10) DEFAULT NULL,
  `civility` varchar(6) DEFAULT NULL,
  `lastname` varchar(50) DEFAULT NULL,
  `firstname` varchar(50) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_state` int(11) DEFAULT 0,
  `fk_country` int(11) DEFAULT 0,
  `birth` date DEFAULT NULL,
  `job` varchar(128) DEFAULT NULL,
  `office_phone` varchar(20) DEFAULT NULL,
  `office_fax` varchar(20) DEFAULT NULL,
  `user_mobile` varchar(20) DEFAULT NULL,
  `personal_mobile` varchar(20) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `personal_email` varchar(255) DEFAULT NULL,
  `socialnetworks` text DEFAULT NULL,
  `signature` text DEFAULT NULL,
  `admin` smallint(6) DEFAULT 0,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_socpeople` int(11) DEFAULT NULL,
  `fk_member` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_user_expense_validator` int(11) DEFAULT NULL,
  `fk_user_holiday_validator` int(11) DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `datelastlogin` datetime DEFAULT NULL,
  `datepreviouslogin` datetime DEFAULT NULL,
  `egroupware_id` int(11) DEFAULT NULL,
  `ldap_sid` varchar(255) DEFAULT NULL,
  `openid` varchar(255) DEFAULT NULL,
  `statut` tinyint(4) DEFAULT 1,
  `photo` varchar(255) DEFAULT NULL,
  `lang` varchar(6) DEFAULT NULL,
  `color` varchar(6) DEFAULT NULL,
  `barcode` varchar(255) DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT 0,
  `accountancy_code` varchar(32) DEFAULT NULL,
  `nb_holiday` int(11) DEFAULT 0,
  `thm` double(24,8) DEFAULT NULL,
  `tjm` double(24,8) DEFAULT NULL,
  `salary` double(24,8) DEFAULT NULL,
  `salaryextra` double(24,8) DEFAULT NULL,
  `dateemployment` date DEFAULT NULL,
  `dateemploymentend` date DEFAULT NULL,
  `weeklyhours` double(16,8) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `default_range` int(11) DEFAULT NULL,
  `default_c_exp_tax_cat` int(11) DEFAULT NULL,
  `fk_warehouse` int(11) DEFAULT NULL,
  `iplastlogin` varchar(250) DEFAULT NULL,
  `ippreviouslogin` varchar(250) DEFAULT NULL,
  `datelastpassvalidation` datetime DEFAULT NULL,
  `datestartvalidity` datetime DEFAULT NULL,
  `dateendvalidity` datetime DEFAULT NULL,
  `idpers1` varchar(128) DEFAULT NULL,
  `idpers2` varchar(128) DEFAULT NULL,
  `idpers3` varchar(128) DEFAULT NULL,
  `national_registration_number` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_user_login` (`login`,`entity`),
  UNIQUE KEY `uk_user_fk_socpeople` (`fk_socpeople`),
  UNIQUE KEY `uk_user_fk_member` (`fk_member`),
  UNIQUE KEY `uk_user_api_key` (`api_key`),
  KEY `idx_user_fk_societe` (`fk_soc`),
  KEY `idx_user_api_key` (`api_key`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_user : ~3 rows (environ)
INSERT INTO `llx_user` (`rowid`, `entity`, `ref_employee`, `ref_ext`, `employee`, `fk_establishment`, `datec`, `tms`, `fk_user_creat`, `fk_user_modif`, `login`, `pass_encoding`, `pass`, `pass_crypted`, `pass_temp`, `civilite`, `api_key`, `gender`, `civility`, `lastname`, `firstname`, `address`, `zip`, `town`, `fk_state`, `fk_country`, `birth`, `job`, `office_phone`, `office_fax`, `user_mobile`, `personal_mobile`, `email`, `personal_email`, `socialnetworks`, `signature`, `admin`, `fk_soc`, `fk_socpeople`, `fk_member`, `fk_user`, `fk_user_expense_validator`, `fk_user_holiday_validator`, `note_public`, `note`, `model_pdf`, `datelastlogin`, `datepreviouslogin`, `egroupware_id`, `ldap_sid`, `openid`, `statut`, `photo`, `lang`, `color`, `barcode`, `fk_barcode_type`, `accountancy_code`, `nb_holiday`, `thm`, `tjm`, `salary`, `salaryextra`, `dateemployment`, `dateemploymentend`, `weeklyhours`, `import_key`, `default_range`, `default_c_exp_tax_cat`, `fk_warehouse`, `iplastlogin`, `ippreviouslogin`, `datelastpassvalidation`, `datestartvalidity`, `dateendvalidity`, `idpers1`, `idpers2`, `idpers3`, `national_registration_number`) VALUES
	(1, 0, NULL, NULL, 1, 0, '2019-03-28 23:11:49', '2020-03-21 08:44:17', NULL, NULL, 'laurent.bouquet', NULL, NULL, '', NULL, NULL, '', NULL, NULL, 'BOUQUET', 'Laurent', '', '', '', NULL, NULL, NULL, '', '', '', '', NULL, '', NULL, '[]', '', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, '2022-09-21 22:15:26', '2022-09-15 21:21:16', NULL, '', NULL, 1, NULL, NULL, '', NULL, 0, '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '217.138.207.228', '82.65.161.118', NULL, NULL, NULL, NULL, NULL, NULL, NULL),
	(2, 1, NULL, NULL, 1, 0, '2019-03-28 18:32:05', '2020-03-21 08:44:17', NULL, NULL, 'demo', NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 'DOLIBARR', 'Démo', '', '', '', NULL, NULL, NULL, '', '', '', '', NULL, '', NULL, '[]', '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, '2022-09-20 13:03:36', '2022-09-19 00:27:53', NULL, '', NULL, 1, NULL, NULL, '', NULL, 0, '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '178.38.134.225', '92.144.217.32', NULL, NULL, NULL, NULL, NULL, NULL, NULL),
	(3, 0, NULL, NULL, 0, 0, '2022-06-30 10:33:21', '2022-06-30 08:34:59', NULL, NULL, 'gilles.dupond', NULL, NULL, '', NULL, NULL, NULL, 'man', 'MR', 'DUPOND', 'Gilles', '', '', '', NULL, NULL, NULL, '', '', '', '', '', '', '', '[]', '', 0, NULL, NULL, NULL, NULL, NULL, NULL, '', '', NULL, '2022-06-30 10:53:32', '2022-06-30 10:49:11', NULL, '', NULL, 1, NULL, NULL, '', NULL, 0, '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-06-29 00:00:00', '2022-07-31 00:00:00', NULL, NULL, NULL, NULL);

-- Listage de la structure de table gestcom. llx_usergroup
CREATE TABLE IF NOT EXISTS `llx_usergroup` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `nom` varchar(180) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `note` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_usergroup_name` (`nom`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_usergroup : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_usergroup_extrafields
CREATE TABLE IF NOT EXISTS `llx_usergroup_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_usergroup_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_usergroup_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_usergroup_rights
CREATE TABLE IF NOT EXISTS `llx_usergroup_rights` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_usergroup` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_usergroup_rights` (`entity`,`fk_usergroup`,`fk_id`),
  KEY `fk_usergroup_rights_fk_usergroup` (`fk_usergroup`),
  CONSTRAINT `fk_usergroup_rights_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `llx_usergroup` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_usergroup_rights : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_usergroup_user
CREATE TABLE IF NOT EXISTS `llx_usergroup_user` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_user` int(11) NOT NULL,
  `fk_usergroup` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_usergroup_user` (`entity`,`fk_user`,`fk_usergroup`),
  KEY `fk_usergroup_user_fk_user` (`fk_user`),
  KEY `fk_usergroup_user_fk_usergroup` (`fk_usergroup`),
  CONSTRAINT `fk_usergroup_user_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_usergroup_user_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `llx_usergroup` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_usergroup_user : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_user_alert
CREATE TABLE IF NOT EXISTS `llx_user_alert` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `type` int(11) DEFAULT NULL,
  `fk_contact` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_user_alert : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_user_clicktodial
CREATE TABLE IF NOT EXISTS `llx_user_clicktodial` (
  `fk_user` int(11) NOT NULL,
  `url` varchar(255) DEFAULT NULL,
  `login` varchar(32) DEFAULT NULL,
  `pass` varchar(64) DEFAULT NULL,
  `poste` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`fk_user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_user_clicktodial : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_user_employment
CREATE TABLE IF NOT EXISTS `llx_user_employment` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref` varchar(50) DEFAULT NULL,
  `ref_ext` varchar(50) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `job` varchar(128) DEFAULT NULL,
  `status` int(11) NOT NULL,
  `salary` double(24,8) DEFAULT NULL,
  `salaryextra` double(24,8) DEFAULT NULL,
  `weeklyhours` double(16,8) DEFAULT NULL,
  `dateemployment` date DEFAULT NULL,
  `dateemploymentend` date DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_user_employment` (`ref`,`entity`),
  KEY `fk_user_employment_fk_user` (`fk_user`),
  CONSTRAINT `fk_user_employment_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_user_employment : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_user_extrafields
CREATE TABLE IF NOT EXISTS `llx_user_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_user_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_user_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_user_param
CREATE TABLE IF NOT EXISTS `llx_user_param` (
  `fk_user` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `param` varchar(255) NOT NULL,
  `value` text NOT NULL,
  UNIQUE KEY `uk_user_param` (`fk_user`,`param`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_user_param : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_user_rib
CREATE TABLE IF NOT EXISTS `llx_user_rib` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_user` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `label` varchar(30) DEFAULT NULL,
  `bank` varchar(255) DEFAULT NULL,
  `code_banque` varchar(128) DEFAULT NULL,
  `code_guichet` varchar(6) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `cle_rib` varchar(5) DEFAULT NULL,
  `bic` varchar(11) DEFAULT NULL,
  `iban_prefix` varchar(34) DEFAULT NULL,
  `domiciliation` varchar(255) DEFAULT NULL,
  `proprio` varchar(60) DEFAULT NULL,
  `owner_address` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_user_rib : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_user_rights
CREATE TABLE IF NOT EXISTS `llx_user_rights` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_user` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_user_rights` (`entity`,`fk_user`,`fk_id`),
  KEY `fk_user_rights_fk_user_user` (`fk_user`),
  CONSTRAINT `fk_user_rights_fk_user_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2344 DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_user_rights : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_Website
CREATE TABLE IF NOT EXISTS `llx_Website` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `type_container` varchar(16) NOT NULL DEFAULT 'page',
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref` varchar(128) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `maincolor` varchar(16) DEFAULT NULL,
  `maincolorbis` varchar(16) DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  `fk_default_home` int(11) DEFAULT NULL,
  `virtualhost` varchar(255) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `import_key` varchar(14) DEFAULT NULL,
  `use_manifest` int(11) DEFAULT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `lang` varchar(8) DEFAULT NULL,
  `otherlang` varchar(255) DEFAULT NULL,
  `position` int(11) DEFAULT 0,
  `lastaccess` datetime DEFAULT NULL,
  `pageviews_month` bigint(20) unsigned DEFAULT 0,
  `pageviews_total` bigint(20) unsigned DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_Website_ref` (`ref`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_Website : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_Website_account
CREATE TABLE IF NOT EXISTS `llx_Website_account` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `login` varchar(64) NOT NULL,
  `pass_encoding` varchar(24) NOT NULL,
  `pass_crypted` varchar(128) DEFAULT NULL,
  `pass_temp` varchar(128) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_Website` int(11) NOT NULL,
  `note_private` text DEFAULT NULL,
  `date_last_login` datetime DEFAULT NULL,
  `date_previous_login` datetime DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_Website_account_login_Website_soc` (`login`,`fk_Website`,`fk_soc`),
  KEY `idx_Website_account_rowid` (`rowid`),
  KEY `idx_Website_account_login` (`login`),
  KEY `idx_Website_account_import_key` (`import_key`),
  KEY `idx_Website_account_status` (`status`),
  KEY `idx_Website_account_fk_soc` (`fk_soc`),
  KEY `idx_Website_account_fk_Website` (`fk_Website`),
  CONSTRAINT `llx_Website_account_fk_Website` FOREIGN KEY (`fk_Website`) REFERENCES `llx_Website` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_Website_account : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_Website_account_extrafields
CREATE TABLE IF NOT EXISTS `llx_Website_account_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_Website_account_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_Website_account_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_Website_extrafields
CREATE TABLE IF NOT EXISTS `llx_Website_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_Website_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_Website_extrafields : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_Website_page
CREATE TABLE IF NOT EXISTS `llx_Website_page` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_Website` int(11) NOT NULL,
  `type_container` varchar(16) NOT NULL DEFAULT 'page',
  `pageurl` varchar(255) DEFAULT NULL,
  `aliasalt` varchar(255) DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `image` varchar(255) DEFAULT NULL,
  `keywords` varchar(255) DEFAULT NULL,
  `lang` varchar(6) DEFAULT NULL,
  `fk_page` int(11) DEFAULT NULL,
  `htmlheader` mediumtext DEFAULT NULL,
  `content` mediumtext DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  `grabbed_from` varchar(255) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `import_key` varchar(14) DEFAULT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `author_alias` varchar(64) DEFAULT NULL,
  `allowed_in_frames` int(11) DEFAULT 0,
  `object_type` varchar(255) DEFAULT NULL,
  `fk_object` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_Website_page_url` (`fk_Website`,`pageurl`),
  CONSTRAINT `fk_Website_page_Website` FOREIGN KEY (`fk_Website`) REFERENCES `llx_Website` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- Listage des données de la table gestcom.llx_Website_page : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_workstation_workstation
CREATE TABLE IF NOT EXISTS `llx_workstation_workstation` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) NOT NULL DEFAULT '(PROV)',
  `label` varchar(255) DEFAULT NULL,
  `type` varchar(7) DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `entity` int(11) DEFAULT 1,
  `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,
  `nb_operators_required` int(11) DEFAULT NULL,
  `thm_operator_estimated` double DEFAULT NULL,
  `thm_machine_estimated` double DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_workstation_workstation_rowid` (`rowid`),
  KEY `idx_workstation_workstation_ref` (`ref`),
  KEY `fk_workstation_workstation_fk_user_creat` (`fk_user_creat`),
  KEY `idx_workstation_workstation_status` (`status`),
  CONSTRAINT `fk_workstation_workstation_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_workstation_workstation : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_workstation_workstation_resource
CREATE TABLE IF NOT EXISTS `llx_workstation_workstation_resource` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_resource` int(11) DEFAULT NULL,
  `fk_workstation` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_workstation_workstation_resource : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_workstation_workstation_usergroup
CREATE TABLE IF NOT EXISTS `llx_workstation_workstation_usergroup` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_usergroup` int(11) DEFAULT NULL,
  `fk_workstation` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_workstation_workstation_usergroup : ~0 rows (environ)

-- Listage de la structure de table gestcom. llx_zapier_hook
CREATE TABLE IF NOT EXISTS `llx_zapier_hook` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `url` varchar(255) DEFAULT NULL,
  `event` varchar(255) DEFAULT NULL,
  `module` varchar(128) DEFAULT NULL,
  `action` varchar(128) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `fk_user` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.llx_zapier_hook : ~0 rows (environ)

-- Listage de la structure de table gestcom. tmp_llx_accouting_account
CREATE TABLE IF NOT EXISTS `tmp_llx_accouting_account` (
  `MINID` bigint(20) DEFAULT NULL,
  `MAXID` bigint(20) DEFAULT NULL,
  `account_number` varchar(32) CHARACTER SET utf8 NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_pcg_version` varchar(32) CHARACTER SET utf8 NOT NULL,
  `NB` bigint(21) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- Listage des données de la table gestcom.tmp_llx_accouting_account : 0 rows

