-- Table structure for table `t1zhf_product_association`
--

CREATE TABLE `t1zhf_product_association` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_product_pere` int NOT NULL DEFAULT '0',
  `fk_product_fils` int NOT NULL DEFAULT '0',
  `qty` double DEFAULT NULL,
  `incdec` int DEFAULT '1',
  `rang` int DEFAULT '0',
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_association` (`fk_product_pere`,`fk_product_fils`),
  KEY `idx_product_association_fils` (`fk_product_fils`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_association`
--


--
-- Table structure for table `t1zhf_product_attribute`
--

CREATE TABLE `t1zhf_product_attribute` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `ref` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
  `ref_ext` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `label` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
  `position` int NOT NULL DEFAULT '0',
  `entity` int NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_attribute_ref` (`ref`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_attribute`
--

INSERT INTO `t1zhf_product_attribute` VALUES (1,'COL',NULL,'Couleur',0,1);

--
-- Table structure for table `t1zhf_product_attribute_combination`
--

CREATE TABLE `t1zhf_product_attribute_combination` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_product_parent` int NOT NULL,
  `fk_product_child` int NOT NULL,
  `variation_price` float NOT NULL,
  `variation_price_percentage` int DEFAULT NULL,
  `variation_weight` float NOT NULL,
  `variation_ref_ext` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `entity` int 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 AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_attribute_combination`
--

INSERT INTO `t1zhf_product_attribute_combination` VALUES (2,7,19,10,1,1,NULL,1),(3,7,20,5,1,1,NULL,1),(4,30,40,1,0,0,NULL,1),(5,30,41,2,0,0,NULL,1),(6,30,42,1,0,0,NULL,1),(8,9,61,0,0,0,'',1),(9,9,62,0,0,0,'',1),(10,9,63,0,0,0,'',1);

--
-- Table structure for table `t1zhf_product_attribute_combination2val`
--

CREATE TABLE `t1zhf_product_attribute_combination2val` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_prod_combination` int NOT NULL,
  `fk_prod_attr` int NOT NULL,
  `fk_prod_attr_val` int NOT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_attribute_combination2val`
--

INSERT INTO `t1zhf_product_attribute_combination2val` VALUES (2,2,1,2),(3,3,1,3),(4,4,1,2),(5,5,1,3),(6,6,1,4),(8,8,1,4),(9,9,1,2),(10,10,1,3);

--
-- Table structure for table `t1zhf_product_attribute_combination_price_level`
--

CREATE TABLE `t1zhf_product_attribute_combination_price_level` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_product_attribute_combination` int NOT NULL DEFAULT '1',
  `fk_price_level` int NOT NULL DEFAULT '1',
  `variation_price` double(24,8) NOT NULL,
  `variation_price_percentage` int DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `fk_product_attribute_combination` (`fk_product_attribute_combination`,`fk_price_level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_attribute_combination_price_level`
--


--
-- Table structure for table `t1zhf_product_attribute_value`
--

CREATE TABLE `t1zhf_product_attribute_value` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_product_attribute` int NOT NULL,
  `ref` varchar(180) COLLATE utf8mb3_unicode_ci NOT NULL,
  `value` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `position` int NOT NULL DEFAULT '0',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_attribute_value` (`fk_product_attribute`,`ref`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_attribute_value`
--

INSERT INTO `t1zhf_product_attribute_value` VALUES (2,1,'BL','Bleue',1,0),(3,1,'RG','Rouge',1,0),(4,1,'JAU','jaune',1,0);

--
-- Table structure for table `t1zhf_product_batch`
--

CREATE TABLE `t1zhf_product_batch` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_product_stock` int NOT NULL,
  `eatby` datetime DEFAULT NULL,
  `sellby` datetime DEFAULT NULL,
  `batch` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `qty` double NOT NULL DEFAULT '0',
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci 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 `t1zhf_product_stock` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_batch`
--


--
-- Table structure for table `t1zhf_product_customer_price`
--

CREATE TABLE `t1zhf_product_customer_price` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_product` int NOT NULL,
  `fk_soc` int 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) COLLATE utf8mb3_unicode_ci DEFAULT 'HT',
  `default_vat_code` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `recuperableonly` int NOT NULL DEFAULT '0',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',
  `fk_user` int DEFAULT NULL,
  `price_label` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ref_customer` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_customer_price_fk_product_fk_soc` (`fk_product`,`fk_soc`),
  KEY `idx_product_customer_price_fk_user` (`fk_user`),
  KEY `idx_product_customer_price_fk_soc` (`fk_soc`),
  CONSTRAINT `fk_product_customer_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `t1zhf_product` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_product_customer_price_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `t1zhf_societe` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_product_customer_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_customer_price`
--

INSERT INTO `t1zhf_product_customer_price` VALUES (1,1,'2021-03-24 11:19:28','2020-11-02 11:08:49',30,4,18.00000000,21.60000000,15.00000000,18.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,NULL,NULL),(2,1,'2020-11-02 12:09:04','2020-11-02 11:09:04',30,3,16.00000000,19.20000000,10.00000000,12.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,NULL,NULL);

--
-- Table structure for table `t1zhf_product_customer_price_log`
--

CREATE TABLE `t1zhf_product_customer_price_log` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `datec` datetime DEFAULT NULL,
  `fk_product` int NOT NULL,
  `fk_soc` int 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) COLLATE utf8mb3_unicode_ci DEFAULT 'HT',
  `default_vat_code` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `recuperableonly` int NOT NULL DEFAULT '0',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',
  `fk_user` int DEFAULT NULL,
  `price_label` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ref_customer` varchar(30) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_customer_price_log`
--

INSERT INTO `t1zhf_product_customer_price_log` VALUES (1,1,'2020-11-02 12:08:49',30,4,15.00000000,18.00000000,15.00000000,18.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,NULL,NULL);

--
-- Table structure for table `t1zhf_product_extrafields`
--

CREATE TABLE `t1zhf_product_extrafields` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `marque` varchar(25) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type_remise` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `unite_vente` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `typeprod` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `qten` double(24,8) DEFAULT NULL,
  `emp` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_extrafields` (`fk_object`)
) ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_extrafields`
--

INSERT INTO `t1zhf_product_extrafields` VALUES (1,'2019-01-10 17:02:41',3,NULL,'','qte','unite','Piece',NULL,NULL),(4,'2019-02-04 13:34:01',6,NULL,'','0','unite','Piece',NULL,NULL),(8,'2019-02-11 12:01:56',8,NULL,'','0','0','Piece',NULL,NULL),(18,'2019-02-28 10:31:41',17,NULL,'','0','0','Piece',NULL,NULL),(20,'2019-03-04 11:35:37',11,NULL,'','0','0','Piece',NULL,NULL),(21,'2019-03-04 11:35:53',15,NULL,'','0','0','Piece',NULL,NULL),(22,'2019-03-04 11:36:14',12,NULL,'','0','0','Piece',NULL,NULL),(23,'2019-03-04 11:36:44',10,NULL,'','0','unite','Piece',NULL,NULL),(24,'2019-03-04 11:38:01',14,NULL,'','0','0','Piece',NULL,NULL),(25,'2019-03-04 11:38:17',13,NULL,'','0','0','Piece',NULL,NULL),(26,'2019-03-04 11:38:32',16,NULL,'','0','0','Piece',NULL,NULL),(33,'2019-05-02 10:17:13',7,NULL,'','qte','unite','Piece',NULL,NULL),(34,'2019-05-02 10:17:13',19,NULL,'','0','0','Piece',NULL,NULL),(36,'2019-05-02 10:17:58',20,NULL,'','qte','unite','Piece',NULL,NULL),(38,'2019-06-24 07:54:26',21,NULL,'','0','weight','Piece',NULL,NULL),(39,'2019-07-13 08:50:49',22,NULL,'','0','0','Piece',NULL,NULL),(40,'2019-07-13 08:53:00',23,NULL,'','0','0','Piece',NULL,NULL),(47,'2019-07-14 18:42:33',29,NULL,'','0','0','3.Piece',NULL,NULL),(49,'2019-07-14 18:45:05',27,NULL,'','0','0','1',NULL,NULL),(50,'2019-07-14 18:46:01',24,NULL,'','0','0','2',NULL,NULL),(51,'2019-07-14 18:46:31',28,NULL,'','0','0','3',NULL,NULL),(53,'2019-09-04 10:42:51',31,NULL,'','0','0','0',NULL,NULL),(54,'2019-09-04 10:43:05',32,NULL,'','0','0','0',NULL,NULL),(55,'2019-09-04 10:43:18',33,NULL,'','0','0','0',NULL,NULL),(56,'2019-09-04 10:43:33',34,NULL,'','0','0','0',NULL,NULL),(57,'2019-09-04 10:43:44',35,NULL,'','0','0','0',NULL,NULL),(58,'2019-09-04 10:44:01',36,NULL,'','0','0','0',NULL,NULL),(59,'2019-09-09 13:00:39',37,NULL,'','0','0','0',NULL,NULL),(61,'2019-09-09 13:07:28',38,NULL,'','0','unite','0',NULL,NULL),(62,'2019-12-09 09:57:37',26,NULL,'','0','0','0',NULL,NULL),(64,'2020-01-14 13:55:25',39,NULL,'','0','0','0',2000.00000000,NULL),(76,'2021-02-11 13:51:59',40,NULL,'','qte','weight','3',NULL,NULL),(77,'2021-02-11 13:51:59',41,NULL,'','qte','weight','3',NULL,NULL),(78,'2021-02-11 13:51:59',42,NULL,'','qte','weight','3',NULL,NULL),(79,'2021-02-11 14:09:16',5,NULL,'','qte','unite','0',NULL,NULL),(80,'2021-03-08 16:01:15',43,NULL,'','0','0','0',NULL,NULL),(81,'2021-05-25 12:53:03',44,NULL,'','0','0','0',NULL,NULL),(82,'2021-05-25 12:56:17',45,NULL,'','0','0','0',NULL,NULL),(85,'2021-07-08 10:22:59',46,NULL,'','0','0','0',NULL,NULL),(86,'2021-07-15 12:46:27',47,NULL,'','0','0','0',NULL,NULL),(87,'2021-07-15 12:50:12',48,NULL,'','0','unite','0',NULL,NULL),(95,'2021-07-16 08:01:35',49,NULL,'','0','0','0',NULL,NULL),(96,'2021-07-16 08:08:26',53,NULL,'','0','unite','3',NULL,NULL),(97,'2021-07-16 08:09:28',51,NULL,'','0','unite','0',NULL,NULL),(98,'2021-07-16 08:10:39',52,NULL,'','0','unite','0',NULL,NULL),(99,'2021-07-16 08:11:44',50,NULL,'','0','unite','0',NULL,NULL),(100,'2021-07-16 09:01:40',54,NULL,'','0','surface','0',NULL,NULL),(105,'2023-05-09 12:53:05',56,NULL,'','0','0','0',NULL,NULL),(106,'2023-05-09 12:53:39',55,NULL,'','0','0','0',NULL,NULL),(107,'2023-05-09 12:54:56',57,NULL,'','qte','unite','0',NULL,NULL),(108,'2023-05-09 12:55:45',58,NULL,'','0','0','0',NULL,NULL),(109,'2023-05-30 16:27:24',4,NULL,'1','qte','unite','3',NULL,NULL),(110,'2023-05-30 16:29:00',59,NULL,'1','0','unite','3',NULL,NULL),(111,'2023-09-14 15:00:26',25,NULL,'1','0','0','3',NULL,'348'),(113,'2024-09-03 17:09:16',9,NULL,'1','0','0','0',NULL,NULL),(115,'2024-09-03 17:09:40',61,NULL,'1','0','0','0',NULL,NULL),(117,'2024-09-03 17:10:29',62,NULL,'1','0','0','0',NULL,NULL),(119,'2024-09-03 17:10:42',63,NULL,'1','0','0','0',NULL,NULL),(120,'2024-09-18 08:30:58',66,NULL,'poly','0','0','0',NULL,NULL),(124,'2024-09-18 08:55:03',69,NULL,NULL,'0','0','0',NULL,NULL),(125,'2024-09-23 14:19:09',30,NULL,NULL,'qte','weight','3',NULL,NULL),(126,'2024-09-23 17:13:18',70,NULL,NULL,'0','0','0',NULL,NULL);

--
-- Table structure for table `t1zhf_product_fournisseur_price`
--

CREATE TABLE `t1zhf_product_fournisseur_price` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_product` int DEFAULT NULL,
  `fk_soc` int DEFAULT NULL,
  `ref_fourn` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `desc_fourn` text COLLATE utf8mb3_unicode_ci,
  `fk_availability` int 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',
  `default_vat_code` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `tva_tx` double(6,3) NOT NULL,
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',
  `info_bits` int NOT NULL DEFAULT '0',
  `fk_user` int DEFAULT NULL,
  `fk_supplier_price_expression` int DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `delivery_time_days` int DEFAULT NULL,
  `supplier_reputation` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_multicurrency` int DEFAULT NULL,
  `multicurrency_code` varchar(3) COLLATE utf8mb3_unicode_ci 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) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_barcode_type` int DEFAULT NULL,
  `packaging` double DEFAULT NULL,
  `status` int DEFAULT '1',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_fournisseur_price_ref` (`ref_fourn`,`fk_soc`,`quantity`,`entity`),
  UNIQUE KEY `uk_product_barcode` (`barcode`,`fk_barcode_type`,`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 `t1zhf_c_barcode_type` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_product_fournisseur_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `t1zhf_product` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_product_fournisseur_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_fournisseur_price`
--

INSERT INTO `t1zhf_product_fournisseur_price` VALUES (1,1,'2019-01-08 11:26:23','2019-01-08 10:26:23',1,2,'123456',NULL,0,65.00000000,1,0,0,65.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(2,1,'2019-01-10 18:03:17','2019-01-10 17:03:17',3,2,'s1',NULL,0,5.00000000,1,0,0,5.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(3,1,'2019-01-10 18:04:16','2019-01-10 17:04:16',4,2,'r1m',NULL,0,10.00000000,1,0,0,10.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(4,1,'2019-02-11 11:45:16','2019-02-11 10:45:16',5,1,'Ticket',NULL,0,150.00000000,1,0,0,150.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,2,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(5,1,'2019-02-28 11:32:03','2019-02-28 10:32:04',17,2,'w10',NULL,0,120.00000000,1,0,0,120.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(6,1,'2019-06-24 09:24:37','2019-06-24 07:38:04',21,5,'123456',NULL,0,1.42000000,1,0,0,1.42000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(7,1,'2019-06-24 09:24:53','2019-06-24 07:24:53',21,6,'fgffghfdghdfghdf',NULL,0,1.49000000,1,0,0,1.49000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(8,1,'2019-07-14 20:31:13','2019-07-14 18:31:13',27,4,'Secteur Tournage',NULL,0,1.00000000,1,0,0,1.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(9,1,'2019-07-14 20:33:21','2019-07-14 18:33:21',24,4,'Tour HES52',NULL,0,1.00000000,1,0,0,1.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(10,1,'2019-07-14 20:34:23','2019-07-14 18:34:23',28,4,'Groupe Hydraulique',NULL,0,1.00000000,1,0,0,1.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(11,1,'2020-11-02 12:07:59','2020-11-02 11:07:59',30,1,'123456','bidon',0,5.00000000,1,0,0,5.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(12,1,'2020-11-02 12:29:53','2020-11-02 11:29:53',40,1,'hj;h;h','',0,10.00000000,1,0,0,10.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(13,1,'2020-11-02 12:30:22','2020-11-02 11:30:22',42,1,'12458','',0,10.00000000,1,0,0,10.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(14,1,'2021-03-08 17:03:01','2021-03-08 16:03:01',43,4,'ref12345','',0,500.00000000,1,0,0,500.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,60,'FAVORITE',NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(15,1,'2021-05-25 14:54:53','2021-05-25 12:54:53',44,5,'Matière','',0,1.00000000,1,0,0,1.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(16,1,'2021-05-25 14:55:15','2021-05-25 12:55:15',44,1,'Matière','',0,1.00000000,1,0,0,1.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(17,1,'2021-05-26 15:19:48','2022-02-18 16:44:51',25,1,'1234','',0,100.00000000,1,0,0,100.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(18,1,'2021-05-26 15:21:01','2021-05-26 13:21:38',25,5,'poi002','',0,80.00000000,1,0,0,80.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,20,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(19,1,'2021-07-16 15:47:41','2021-07-16 13:47:41',53,5,'lint1','',0,200.00000000,1,0,0,200.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(20,1,'2022-02-18 15:54:11','2022-02-18 16:44:28',25,1,'123','',0,50.00000000,1,0,0,50.00000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,NULL,NULL,1),(21,1,'2024-09-18 10:32:41','2024-09-18 08:32:41',66,5,'pan2145','',0,12.45000000,1,0,0,12.45000000,0.00000000,NULL,20.000,0.000,'0',0.000,'0',0,1,NULL,NULL,NULL,NULL,NULL,'',1.00000000,NULL,0.00000000,NULL,2,NULL,1);

--
-- Table structure for table `t1zhf_product_fournisseur_price_extrafields`
--

CREATE TABLE `t1zhf_product_fournisseur_price_extrafields` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NULL DEFAULT NULL,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_fournisseur_price_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_fournisseur_price_extrafields`
--


--
-- Table structure for table `t1zhf_product_fournisseur_price_log`
--

CREATE TABLE `t1zhf_product_fournisseur_price_log` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `fk_product_fournisseur` int NOT NULL,
  `price` double(24,8) DEFAULT '0.00000000',
  `quantity` double DEFAULT NULL,
  `fk_user` int DEFAULT NULL,
  `fk_multicurrency` int DEFAULT NULL,
  `multicurrency_code` varchar(3) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_unitprice` double(24,8) DEFAULT NULL,
  `multicurrency_price` double(24,8) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_product_fournisseur_price_log_fk_product_fournisseur` (`fk_product_fournisseur`),
  KEY `idx_product_fournisseur_price_log_fk_user` (`fk_user`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_fournisseur_price_log`
--

INSERT INTO `t1zhf_product_fournisseur_price_log` VALUES (1,'2020-11-02 12:07:59',11,5.00000000,1,1,NULL,'',1.00000000,NULL,0.00000000),(2,'2020-11-02 12:17:10',11,5.00000000,1,1,NULL,'',1.00000000,NULL,0.00000000),(3,'2020-11-02 12:29:53',12,10.00000000,1,1,NULL,'',1.00000000,NULL,0.00000000),(4,'2020-11-02 12:30:22',13,10.00000000,1,1,NULL,'',1.00000000,NULL,0.00000000),(5,'2021-03-08 17:03:01',14,500.00000000,1,1,NULL,'',1.00000000,NULL,0.00000000),(6,'2021-05-25 14:54:53',15,1.00000000,1,1,NULL,'',1.00000000,NULL,0.00000000),(7,'2021-05-25 14:55:15',16,1.00000000,1,1,NULL,'',1.00000000,NULL,0.00000000),(8,'2021-05-26 15:19:48',17,100.00000000,1,1,NULL,'',1.00000000,NULL,0.00000000),(9,'2021-05-26 15:21:01',18,80.00000000,1,1,NULL,'',1.00000000,NULL,0.00000000),(10,'2021-05-26 15:21:38',18,80.00000000,1,1,NULL,'',1.00000000,NULL,0.00000000),(11,'2021-07-16 15:47:41',19,200.00000000,1,1,NULL,'',1.00000000,NULL,0.00000000),(12,'2022-02-18 15:54:11',20,50.00000000,1,1,NULL,'',1.00000000,NULL,0.00000000),(13,'2022-02-18 17:44:28',20,50.00000000,1,1,NULL,'',1.00000000,NULL,0.00000000),(14,'2022-02-18 17:44:51',17,100.00000000,1,1,NULL,'',1.00000000,NULL,0.00000000),(15,'2022-02-18 17:45:41',20,50.00000000,1,1,NULL,'',1.00000000,NULL,0.00000000),(16,'2024-09-18 10:32:41',21,12.45000000,1,1,NULL,'',1.00000000,NULL,0.00000000);

--
-- Table structure for table `t1zhf_product_lang`
--

CREATE TABLE `t1zhf_product_lang` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_product` int NOT NULL DEFAULT '0',
  `lang` varchar(5) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',
  `label` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb3_unicode_ci,
  `note` text COLLATE utf8mb3_unicode_ci,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_lang` (`fk_product`,`lang`),
  CONSTRAINT `fk_product_lang_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `t1zhf_product` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_lang`
--


--
-- Table structure for table `t1zhf_product_lot`
--

CREATE TABLE `t1zhf_product_lot` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int DEFAULT '1',
  `fk_product` int NOT NULL,
  `batch` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `note_public` text COLLATE utf8mb3_unicode_ci,
  `note_private` text COLLATE utf8mb3_unicode_ci,
  `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 DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `import_key` int DEFAULT NULL,
  `eol_date` datetime DEFAULT NULL,
  `manufacturing_date` datetime DEFAULT NULL,
  `scrapping_date` datetime DEFAULT NULL,
  `model_pdf` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `last_main_doc` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `barcode` varchar(180) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_barcode_type` int DEFAULT NULL,
  `qc_frequency` int DEFAULT NULL,
  `lifetime` int DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_product_lot` (`fk_product`,`batch`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_lot`
--


--
-- Table structure for table `t1zhf_product_lot_extrafields`
--

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

--
-- Dumping data for table `t1zhf_product_lot_extrafields`
--


--
-- Table structure for table `t1zhf_product_perentity`
--

CREATE TABLE `t1zhf_product_perentity` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_product` int DEFAULT NULL,
  `entity` int 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;

--
-- Dumping data for table `t1zhf_product_perentity`
--


--
-- Table structure for table `t1zhf_product_price`
--

CREATE TABLE `t1zhf_product_price` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_product` int NOT NULL,
  `date_price` datetime NOT NULL,
  `price_level` smallint 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) COLLATE utf8mb3_unicode_ci DEFAULT 'HT',
  `default_vat_code` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `tva_tx` double(6,3) NOT NULL DEFAULT '0.000',
  `recuperableonly` int NOT NULL DEFAULT '0',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',
  `fk_user_author` int DEFAULT NULL,
  `price_label` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `tosell` tinyint DEFAULT '1',
  `price_by_qty` int NOT NULL DEFAULT '0',
  `fk_price_expression` int DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_multicurrency` int DEFAULT NULL,
  `multicurrency_code` varchar(3) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT '1.00000000',
  `multicurrency_price` double(24,8) DEFAULT NULL,
  `multicurrency_price_ttc` double(24,8) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_product_price_fk_user_author` (`fk_user_author`),
  KEY `idx_product_price_fk_product` (`fk_product`),
  CONSTRAINT `fk_product_price_product` FOREIGN KEY (`fk_user_author`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_product_price_user_author` FOREIGN KEY (`fk_product`) REFERENCES `t1zhf_product` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=95 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_price`
--

INSERT INTO `t1zhf_product_price` VALUES (1,1,'2019-01-08 10:17:12',1,'2019-01-08 11:17:12',1,70.00000000,84.00000000,70.00000000,84.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(2,1,'2019-01-08 10:18:28',2,'2019-01-08 11:18:29',1,55.00000000,66.00000000,55.00000000,66.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(3,1,'2019-01-10 17:02:41',3,'2019-01-10 18:02:41',1,10.00000000,12.00000000,10.00000000,12.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(4,1,'2019-01-10 17:03:57',4,'2019-01-10 18:03:57',1,20.00000000,24.00000000,20.00000000,24.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(5,1,'2019-01-10 17:05:01',5,'2019-01-10 18:05:01',1,300.00000000,360.00000000,300.00000000,360.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(6,1,'2019-02-04 13:34:01',6,'2019-02-04 14:34:01',1,700.00000000,840.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(7,1,'2019-02-08 09:12:02',7,'2019-02-08 10:12:01',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(8,1,'2019-02-11 12:01:56',8,'2019-02-11 13:01:56',1,100.00000000,120.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',2,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(9,1,'2019-02-20 13:32:38',9,'2019-02-20 14:32:38',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(10,1,'2019-02-20 13:36:36',9,'2019-02-20 14:36:36',1,570.00000000,684.00000000,500.00000000,600.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(11,1,'2019-02-20 17:18:31',10,'2019-02-20 18:18:31',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(12,1,'2019-02-20 17:19:33',11,'2019-02-20 18:19:33',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(13,1,'2019-02-20 17:20:07',12,'2019-02-20 18:20:07',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(14,1,'2019-02-20 17:21:05',13,'2019-02-20 18:21:05',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(15,1,'2019-02-20 17:21:23',14,'2019-02-20 18:21:23',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(16,1,'2019-02-20 17:21:40',15,'2019-02-20 18:21:40',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(17,1,'2019-02-20 17:23:00',16,'2019-02-20 18:23:00',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(18,1,'2019-02-28 10:31:41',17,'2019-02-28 11:31:41',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(21,1,'2019-05-02 10:16:08',19,'2019-05-02 12:16:08',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',2,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(22,1,'2019-05-02 10:16:08',19,'2019-05-02 12:16:08',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',2,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(23,1,'2019-05-02 10:16:47',19,'2019-05-02 12:16:47',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',2,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(24,1,'2019-05-02 10:17:13',7,'2019-05-02 12:17:13',1,100.00000000,120.00000000,50.00000000,60.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',2,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(25,1,'2019-05-02 10:17:13',19,'2019-05-02 12:17:13',1,110.00000000,132.00000000,50.00000000,60.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',2,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(26,1,'2019-05-02 10:17:58',20,'2019-05-02 12:17:58',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',2,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(27,1,'2019-05-02 10:17:58',20,'2019-05-02 12:17:58',1,105.00000000,126.00000000,50.00000000,60.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',2,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(28,1,'2019-06-24 07:23:38',21,'2019-06-24 09:23:38',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,0,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(29,1,'2019-07-13 08:50:49',22,'2019-07-13 10:50:49',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(30,1,'2019-07-13 08:53:00',23,'2019-07-13 10:53:00',1,0.20000000,0.24000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(31,1,'2019-07-13 09:10:37',24,'2019-07-13 11:10:37',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(32,1,'2019-07-13 09:11:08',25,'2019-07-13 11:11:08',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(33,1,'2019-07-13 09:11:58',26,'2019-07-13 11:11:58',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(34,1,'2019-07-14 18:30:46',27,'2019-07-14 20:30:46',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(35,1,'2019-07-14 18:33:57',28,'2019-07-14 20:33:57',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(36,1,'2019-07-14 18:35:34',29,'2019-07-14 20:35:34',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(37,1,'2019-09-04 10:42:40',30,'2019-09-04 12:42:40',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(38,1,'2019-09-04 10:42:51',31,'2019-09-04 12:42:51',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(39,1,'2019-09-04 10:43:05',32,'2019-09-04 12:43:05',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(40,1,'2019-09-04 10:43:18',33,'2019-09-04 12:43:18',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(41,1,'2019-09-04 10:43:33',34,'2019-09-04 12:43:33',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(42,1,'2019-09-04 10:43:44',35,'2019-09-04 12:43:44',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(43,1,'2019-09-04 10:44:01',36,'2019-09-04 12:44:01',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(44,1,'2019-09-09 13:00:39',37,'2019-09-09 15:00:39',1,5.00000000,6.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(45,1,'2019-09-09 13:06:30',38,'2019-09-09 15:06:30',1,10.00000000,12.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(46,1,'2020-01-14 13:50:24',39,'2020-01-14 14:50:24',1,1.00000000,1.20000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(47,1,'2020-11-02 10:48:22',30,'2020-11-02 11:48:22',1,10.00000000,12.00000000,10.00000000,12.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(48,1,'2020-11-02 11:12:10',40,'2020-11-02 12:12:10',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(49,1,'2020-11-02 11:12:10',40,'2020-11-02 12:12:10',1,11.00000000,13.20000000,10.00000000,12.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(50,1,'2020-11-02 11:12:27',41,'2020-11-02 12:12:27',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(51,1,'2020-11-02 11:12:27',41,'2020-11-02 12:12:27',1,12.00000000,14.40000000,10.00000000,12.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(52,1,'2020-11-02 11:13:04',42,'2020-11-02 12:13:04',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(53,1,'2020-11-02 11:13:04',42,'2020-11-02 12:13:04',1,11.00000000,13.20000000,10.00000000,12.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(54,1,'2020-11-02 11:17:33',42,'2020-11-02 12:17:33',1,11.00000000,13.20000000,10.00000000,12.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(55,1,'2021-02-11 13:51:59',30,'2021-02-11 14:51:59',1,5.00000000,6.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(56,1,'2021-02-11 13:51:59',40,'2021-02-11 14:51:59',1,6.00000000,7.20000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(57,1,'2021-02-11 13:51:59',41,'2021-02-11 14:51:59',1,7.00000000,8.40000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(58,1,'2021-02-11 13:51:59',42,'2021-02-11 14:51:59',1,6.00000000,7.20000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(59,1,'2021-03-08 16:01:15',43,'2021-03-08 17:01:15',1,1500.00000000,1800.00000000,1200.00000000,1440.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(60,1,'2021-05-25 12:53:03',44,'2021-05-25 14:53:03',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(61,1,'2021-05-25 12:56:17',45,'2021-05-25 14:56:17',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(62,1,'2021-07-08 10:16:16',46,'2021-07-08 12:16:16',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(63,1,'2021-07-15 12:46:27',47,'2021-07-15 14:46:27',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(64,1,'2021-07-15 12:50:12',48,'2021-07-15 14:50:12',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(65,1,'2021-07-16 07:48:53',49,'2021-07-16 09:48:53',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(66,1,'2021-07-16 07:51:13',50,'2021-07-16 09:51:13',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(67,1,'2021-07-16 07:51:23',50,'2021-07-16 09:51:23',1,1.00000000,1.20000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(68,1,'2021-07-16 07:56:11',51,'2021-07-16 09:56:11',1,50.00000000,60.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(69,1,'2021-07-16 07:56:43',52,'2021-07-16 09:56:43',1,50.00000000,60.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(70,1,'2021-07-16 07:57:43',53,'2021-07-16 09:57:43',1,200.00000000,240.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(71,1,'2021-07-16 09:01:40',54,'2021-07-16 11:01:40',1,14.00000000,16.80000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(72,1,'2022-02-18 15:12:17',25,'2022-02-18 16:12:17',1,132.00000000,158.40000000,100.00000000,120.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(73,1,'2023-05-09 12:51:39',55,'2023-05-09 14:51:39',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(74,1,'2023-05-09 12:52:36',56,'2023-05-09 14:52:36',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(75,1,'2023-05-09 12:53:05',56,'2023-05-09 14:53:05',1,609.00000000,669.90000000,0.00000000,0.00000000,'HT',NULL,10.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(76,1,'2023-05-09 12:53:39',55,'2023-05-09 14:53:39',1,2703.00000000,2973.30000000,0.00000000,0.00000000,'HT',NULL,10.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(77,1,'2023-05-09 12:54:56',57,'2023-05-09 14:54:56',1,240.00000000,264.00000000,0.00000000,0.00000000,'HT',NULL,10.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(78,1,'2023-05-09 12:55:45',58,'2023-05-09 14:55:45',1,240.00000000,288.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(79,1,'2023-05-30 16:29:00',59,'2023-05-30 18:29:00',1,10.00000000,12.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(81,1,'2024-09-03 17:09:40',61,'2024-09-03 19:09:40',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(82,1,'2024-09-03 17:09:40',61,'2024-09-03 19:09:40',1,570.00000000,684.00000000,500.00000000,600.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(83,1,'2024-09-03 17:10:29',62,'2024-09-03 19:10:29',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(84,1,'2024-09-03 17:10:29',62,'2024-09-03 19:10:29',1,570.00000000,684.00000000,500.00000000,600.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(85,1,'2024-09-03 17:10:42',63,'2024-09-03 19:10:42',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(86,1,'2024-09-03 17:10:42',63,'2024-09-03 19:10:42',1,570.00000000,684.00000000,500.00000000,600.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(89,1,'2024-09-18 08:30:58',66,'2024-09-18 10:30:58',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(92,1,'2024-09-18 08:42:23',69,'2024-09-18 10:42:23',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(93,1,'2024-09-18 08:55:02',69,'2024-09-18 10:55:02',1,110.00000000,132.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL),(94,1,'2024-09-23 17:13:18',70,'2024-09-23 19:13:18',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',NULL,20.000,0,0.000,'0',0.000,'0',1,NULL,1,0,NULL,NULL,NULL,NULL,1.00000000,NULL,NULL);

--
-- Table structure for table `t1zhf_product_price_by_qty`
--

CREATE TABLE `t1zhf_product_price_by_qty` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_product_price` int NOT NULL,
  `price` double(24,8) DEFAULT '0.00000000',
  `price_base_type` varchar(3) COLLATE utf8mb3_unicode_ci 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 DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `fk_multicurrency` int DEFAULT NULL,
  `multicurrency_code` varchar(3) COLLATE utf8mb3_unicode_ci 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) COLLATE utf8mb3_unicode_ci 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 `t1zhf_product_price` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_price_by_qty`
--


--
-- Table structure for table `t1zhf_product_pricerules`
--

CREATE TABLE `t1zhf_product_pricerules` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `level` int NOT NULL,
  `fk_level` int 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=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_pricerules`
--


--
-- Table structure for table `t1zhf_product_stock`
--

CREATE TABLE `t1zhf_product_stock` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_product` int NOT NULL,
  `fk_entrepot` int NOT NULL,
  `reel` double DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci 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`),
  CONSTRAINT `fk_entrepot_entrepot_rowid` FOREIGN KEY (`fk_entrepot`) REFERENCES `t1zhf_entrepot` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_product_product_rowid` FOREIGN KEY (`fk_product`) REFERENCES `t1zhf_product` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_stock`
--

INSERT INTO `t1zhf_product_stock` VALUES (1,'2023-05-11 12:31:32',21,1,46,NULL),(4,'2021-05-18 13:01:33',40,1,1945,NULL),(5,'2021-05-18 13:01:33',41,1,246,NULL),(6,'2024-09-23 14:38:50',30,1,-27,NULL),(8,'2024-09-23 17:00:55',5,1,119,NULL),(9,'2024-09-23 14:43:12',22,1,-50,NULL),(16,'2021-05-18 13:01:33',42,1,175,NULL),(18,'2024-09-18 16:42:57',25,1,998,NULL),(19,'2024-09-23 17:00:55',4,1,18,NULL),(20,'2024-09-23 17:00:55',59,1,18,NULL),(21,'2023-06-28 09:36:21',39,1,-1,NULL),(22,'2024-09-18 08:26:46',1,1,100,NULL),(24,'2024-09-23 16:38:12',66,1,7.5,NULL),(25,'2024-09-23 16:38:17',69,1,22,NULL),(26,'2024-09-18 16:44:16',24,1,10,NULL),(27,'2024-09-18 16:42:57',28,1,-1,NULL);

--
-- Table structure for table `t1zhf_product_thirdparty`
--

CREATE TABLE `t1zhf_product_thirdparty` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_product` int NOT NULL,
  `fk_soc` int NOT NULL,
  `fk_product_thirdparty_relation_type` int NOT NULL,
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `fk_project` int DEFAULT NULL,
  `description` text,
  `note_public` text,
  `note_private` text,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_creat` int NOT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `status` int NOT NULL DEFAULT '1',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `t1zhf_product_thirdparty`
--


--
-- Table structure for table `t1zhf_product_warehouse_properties`
--

CREATE TABLE `t1zhf_product_warehouse_properties` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_product` int NOT NULL,
  `fk_entrepot` int NOT NULL,
  `seuil_stock_alerte` float DEFAULT NULL,
  `desiredstock` float DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_product_warehouse_properties`
--


--
-- Table structure for table `t1zhf_projet`
--

CREATE TABLE `t1zhf_projet` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_soc` int 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) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ref_ext` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `title` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb3_unicode_ci,
  `fk_user_creat` int NOT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `public` int DEFAULT NULL,
  `fk_statut` int NOT NULL DEFAULT '0',
  `fk_opp_status` int DEFAULT NULL,
  `opp_percent` double(5,2) DEFAULT NULL,
  `date_close` datetime DEFAULT NULL,
  `fk_user_close` int DEFAULT NULL,
  `note_private` text COLLATE utf8mb3_unicode_ci,
  `note_public` text COLLATE utf8mb3_unicode_ci,
  `opp_amount` double(24,8) DEFAULT NULL,
  `budget_amount` double(24,8) DEFAULT NULL,
  `usage_bill_time` int DEFAULT '0',
  `model_pdf` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `last_main_doc` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `usage_opportunity` int DEFAULT '0',
  `usage_task` int DEFAULT '1',
  `usage_organize_event` int DEFAULT '0',
  `email_msgid` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email_date` datetime DEFAULT NULL,
  `fk_opp_status_end` int DEFAULT NULL,
  `accept_conference_suggestions` int DEFAULT '0',
  `accept_booth_suggestions` int DEFAULT '0',
  `price_registration` double(24,8) DEFAULT NULL,
  `price_booth` double(24,8) DEFAULT NULL,
  `max_attendees` int DEFAULT '0',
  `ip` varchar(250) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_start_event` datetime DEFAULT NULL,
  `date_end_event` datetime DEFAULT NULL,
  `location` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `extraparams` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_project` int DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_projet_ref` (`ref`,`entity`),
  KEY `idx_projet_fk_soc` (`fk_soc`),
  CONSTRAINT `fk_projet_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `t1zhf_societe` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_projet`
--

INSERT INTO `t1zhf_projet` VALUES (1,3,'2019-02-08 15:06:42','2023-06-10 13:21:21','2019-02-08',NULL,'PJ1902-0001',NULL,1,'beton armoire','',1,1,0,1,NULL,NULL,'2021-05-25 18:39:56',NULL,'prendre rdv archi',NULL,NULL,NULL,0,'beluga',NULL,NULL,0,1,0,NULL,NULL,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,'',NULL,NULL),(2,4,'2019-02-08 15:28:34','2021-05-25 16:39:56','2019-02-08',NULL,'PJ1902-0002',NULL,1,'disque dur','',1,NULL,0,2,NULL,NULL,'2021-05-25 18:39:56',1,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,0,1,0,NULL,NULL,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(3,NULL,'2019-02-11 13:04:27','2021-05-25 16:39:56','2019-02-11',NULL,'PJ1902-0003',NULL,1,'test chantier','',2,NULL,0,2,NULL,NULL,'2021-05-25 18:39:56',1,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,0,1,0,NULL,NULL,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(4,1,'2019-02-28 11:05:10','2021-05-25 16:39:56','2019-02-28','2019-12-31','PJ1902-0004',NULL,1,'2019078 MASSON RIBEIRO','POUR MEDIA METRE',1,1,1,2,6,100.00,'2021-05-25 18:39:56',1,NULL,NULL,12000.00000000,NULL,0,'beluga',NULL,NULL,1,1,0,NULL,NULL,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(5,1,'2019-03-05 16:10:57','2021-05-25 16:39:56','2019-03-05','2019-09-13','PJ1903-0005',NULL,1,'boulangerie creation','création d\'une boulangerie',1,NULL,1,2,4,60.00,'2021-05-25 18:39:56',1,NULL,NULL,11000.00000000,NULL,0,NULL,NULL,NULL,1,1,0,NULL,NULL,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(6,4,'2019-06-24 09:30:19','2021-05-25 16:39:56','2019-06-24',NULL,'PJ1906-0006',NULL,1,'axe diam 40','',1,NULL,0,2,NULL,NULL,'2021-05-25 18:39:56',1,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,0,1,0,NULL,NULL,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(7,4,'2019-07-13 11:08:55','2021-07-16 13:55:55','2019-07-13','2029-07-31','PJ1907-0007',NULL,1,'HES52','',1,NULL,0,2,6,100.00,'2021-07-16 15:55:55',1,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,1,1,0,NULL,NULL,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(8,4,'2019-09-09 14:17:17','2021-05-25 16:39:56','2019-09-09','2019-09-09','PJ1909-0008',NULL,1,'travaux maintenance','travaux machine z',1,NULL,0,2,NULL,NULL,'2021-05-25 18:39:56',1,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,0,1,0,NULL,NULL,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(9,1,'2021-03-08 17:06:55','2021-05-25 16:39:56','2021-03-08','2021-03-31','PJ2103-0009',NULL,1,'cuisine','',1,NULL,1,2,3,50.00,'2021-05-25 18:39:56',1,NULL,NULL,10000.00000000,NULL,0,NULL,NULL,NULL,1,1,0,NULL,NULL,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(10,2,'2021-05-25 15:06:13','2021-05-25 16:39:56','2021-05-25','2021-12-31','PJ2105-0010',NULL,1,'Renovation Hotel Beaujon','',1,NULL,0,2,3,99.00,'2021-05-25 18:39:56',1,NULL,NULL,80000.00000000,2000.00000000,0,NULL,NULL,NULL,1,1,0,NULL,NULL,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(12,1,'2021-07-16 15:00:38','2021-07-16 13:00:43','2021-07-16','2021-07-31','PJ2107-0012',NULL,1,'Rénovation','',1,NULL,0,1,6,100.00,NULL,NULL,NULL,NULL,5000.00000000,NULL,0,NULL,NULL,NULL,1,1,0,NULL,NULL,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(13,7,'2021-07-16 16:10:07','2023-05-11 12:32:40','2021-07-16','2021-07-31','PJ2107-0013',NULL,1,'Rénovation 2 maison','',1,1,0,1,6,100.00,NULL,NULL,NULL,NULL,5000.00000000,NULL,0,'beluga','projet/PJ2107-0013/PJ2107-0013.pdf',NULL,1,1,0,NULL,NULL,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(14,7,'2022-02-18 19:17:44','2023-05-16 12:34:00','2022-02-18',NULL,'PJ2202-0014',NULL,1,'moteur renson','',1,1,1,2,2,20.00,'2023-05-16 14:34:00',8,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,1,1,0,NULL,NULL,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL),(15,1,'2023-05-09 14:56:15','2023-05-11 12:04:46','2023-05-09','2023-05-31','PJ2305-0015',NULL,1,'Salle de bain','',1,1,0,0,3,40.00,NULL,NULL,NULL,NULL,20000.00000000,20000.00000000,0,NULL,NULL,NULL,1,1,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL),(16,13,'2023-05-16 15:01:54','2023-05-16 14:50:52','2023-05-20',NULL,'PJ2305-0016',NULL,1,'Chantier Cousseau','R&eacute;novation d&#39;appartement',8,NULL,0,2,1,0.00,'2023-05-16 16:50:52',8,NULL,NULL,5000.00000000,4500.00000000,0,NULL,NULL,NULL,1,1,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(17,10,'2024-09-18 10:27:54','2024-09-18 08:27:54','2024-09-18',NULL,'PJ2409-0017',NULL,1,'Cuisine','',1,NULL,0,0,6,100.00,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,1,1,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(18,NULL,'2024-09-23 16:23:16','2024-09-23 14:23:16',NULL,NULL,'PJ2409-0018',NULL,1,'Commande client CO2409-0028','',1,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,0,0,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(19,NULL,'2024-09-23 16:24:45','2024-09-23 14:24:45',NULL,NULL,'PJ2409-0019',NULL,1,'Commande client CO2409-0028','',1,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,0,0,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(20,NULL,'2024-09-23 16:40:09','2024-09-23 14:40:09',NULL,NULL,'PJ2409-0020',NULL,1,'','',1,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,0,0,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(21,NULL,'2024-09-23 18:25:01','2024-09-23 16:25:01',NULL,NULL,'PJ2409-0021',NULL,1,'','',1,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,0,0,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(22,NULL,'2024-09-23 18:25:37','2024-09-23 16:33:34',NULL,NULL,'PJ2409-0022',NULL,1,'','',1,NULL,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,0,0,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(23,NULL,'2024-09-23 18:57:57','2024-09-23 16:57:57',NULL,NULL,'PJ2409-0023',NULL,1,'Commande client CO2409-0031','',1,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,0,0,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(24,NULL,'2024-09-23 19:14:22','2024-09-23 17:14:22',NULL,NULL,'PJ2409-0024',NULL,1,'Commande client CO2409-0032','',1,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,0,0,0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `t1zhf_projet_extrafields`
--

CREATE TABLE `t1zhf_projet_extrafields` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `stock` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_projet_extrafields` (`fk_object`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_projet_extrafields`
--

INSERT INTO `t1zhf_projet_extrafields` VALUES (1,'2023-06-10 13:21:21',1,NULL,'11'),(2,'2024-09-18 08:27:55',17,NULL,'0');

--
-- Table structure for table `t1zhf_projet_task`
--

CREATE TABLE `t1zhf_projet_task` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `ref` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `fk_projet` int NOT NULL,
  `fk_task_parent` int 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) COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb3_unicode_ci,
  `duration_effective` double DEFAULT '0',
  `planned_workload` double DEFAULT '0',
  `progress` int DEFAULT '0',
  `priority` int DEFAULT '0',
  `budget_amount` double(24,8) DEFAULT NULL,
  `fk_user_creat` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `fk_user_valid` int DEFAULT NULL,
  `fk_statut` smallint NOT NULL DEFAULT '0',
  `note_private` text COLLATE utf8mb3_unicode_ci,
  `note_public` text COLLATE utf8mb3_unicode_ci,
  `rang` int DEFAULT '0',
  `model_pdf` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `status` int 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 `t1zhf_projet` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_projet_task_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_projet_task_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_projet_task`
--

INSERT INTO `t1zhf_projet_task` VALUES (1,'TK1902-0001',1,4,0,'2019-02-28 11:43:45','2019-02-28 10:48:20','2019-02-28 09:00:00','2019-03-06 23:59:00',NULL,'Etudes préliminaires 5%','',7200,36000,50,0,NULL,1,NULL,NULL,0,NULL,NULL,0,NULL,NULL,1),(2,'TK2010-0002',1,1,0,'2020-10-20 11:00:41','2020-10-20 09:04:12','2020-10-21 09:00:00','2020-10-22 23:59:00',NULL,'tel archi','',0,NULL,100,0,NULL,1,NULL,NULL,0,NULL,NULL,0,NULL,NULL,1),(3,'TK2105-0003',1,10,0,'2021-05-25 15:08:59','2021-05-25 13:12:33','2021-05-25 08:00:00','2021-05-26 23:59:00',NULL,'pose','',14400,28800,50,0,NULL,1,NULL,NULL,0,NULL,NULL,0,NULL,NULL,1),(4,'TK2105-0004',1,7,0,'2021-05-26 17:14:46','2021-05-26 15:17:43','2021-05-26 08:00:00','2021-05-27 23:59:00',NULL,'dépannage moteur','dépannage moteur',7200,28800,50,0,NULL,1,NULL,NULL,0,NULL,NULL,0,NULL,NULL,1),(5,'TK2107-0005',1,12,0,'2021-07-16 15:09:41','2021-07-16 13:31:10','2021-07-16 00:00:00','2021-07-31 23:59:00',NULL,'Rénovation','',50400,72000,0,0,NULL,1,NULL,NULL,0,NULL,NULL,0,NULL,NULL,1),(6,'TK2107-0006',1,13,0,'2021-07-16 16:10:08','2021-07-19 13:58:36','2021-07-16 00:00:00','2021-07-31 23:59:00',NULL,'Rénovation','',33300,72000,0,0,NULL,1,1,NULL,0,NULL,NULL,0,NULL,NULL,1),(7,'TK2202-0007',1,14,0,'2022-02-18 19:19:17','2022-02-18 18:22:57','2022-02-16 08:00:00','2022-02-16 10:00:00',NULL,'Débobinage','',7200,7200,0,0,NULL,1,NULL,NULL,0,NULL,NULL,0,NULL,NULL,1),(8,'TK2202-0008',1,14,0,'2022-02-18 19:20:10','2022-02-18 18:24:46','2022-02-17 14:00:00','2022-02-17 17:59:00',NULL,'Bobinage','',10800,10800,0,0,NULL,1,NULL,NULL,0,NULL,NULL,0,NULL,NULL,1),(9,'TK2202-0009',1,14,0,'2022-02-18 19:21:19','2022-02-18 18:25:25','2022-02-18 00:00:00','2022-02-18 23:59:00',NULL,'mécanique','',18000,18000,0,0,NULL,1,NULL,NULL,0,NULL,NULL,0,NULL,NULL,1),(10,'TK2305-0010',1,15,0,'2023-05-09 15:27:37','2023-05-09 13:27:37','2023-05-09 00:00:00','2023-05-11 23:59:00',NULL,'Préparation, protection et nettoyage du chantier','',0,14400,0,0,NULL,1,NULL,NULL,0,NULL,NULL,0,NULL,NULL,1),(11,'TK2305-0011',1,15,0,'2023-05-09 15:29:03','2023-05-09 13:29:03','2023-05-16 00:00:00','2023-05-17 23:59:00',NULL,'Pose et fixation','',0,NULL,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,0,NULL,NULL,1);

--
-- Table structure for table `t1zhf_projet_task_extrafields`
--

CREATE TABLE `t1zhf_projet_task_extrafields` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_workstation` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_of` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_product` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_projet_task_extrafields` (`fk_object`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_projet_task_extrafields`
--

INSERT INTO `t1zhf_projet_task_extrafields` VALUES (3,'2019-02-28 10:48:20',1,NULL,'0',NULL,NULL),(5,'2020-10-20 09:04:12',2,NULL,'0',NULL,NULL),(6,'2021-05-25 13:08:59',3,NULL,'0',NULL,NULL),(7,'2021-05-26 15:14:46',4,NULL,'0',NULL,NULL),(8,'2021-07-16 13:09:41',5,NULL,'0',NULL,NULL),(10,'2021-07-16 14:10:08',6,NULL,'0',NULL,NULL),(11,'2022-02-18 18:19:17',7,NULL,'0',NULL,NULL),(12,'2022-02-18 18:20:10',8,NULL,'0',NULL,NULL),(13,'2022-02-18 18:21:19',9,NULL,'0',NULL,NULL),(14,'2023-05-09 13:27:37',10,NULL,'0',NULL,NULL),(15,'2023-05-09 13:29:03',11,NULL,'0',NULL,NULL);

--
-- Table structure for table `t1zhf_propal`
--

CREATE TABLE `t1zhf_propal` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) COLLATE utf8mb3_unicode_ci NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ref_int` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ref_client` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_soc` int DEFAULT NULL,
  `fk_projet` int 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 DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `fk_user_valid` int DEFAULT NULL,
  `fk_user_signature` int DEFAULT NULL,
  `fk_user_cloture` int DEFAULT NULL,
  `fk_statut` smallint 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 DEFAULT NULL,
  `fk_currency` varchar(3) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_cond_reglement` int DEFAULT NULL,
  `deposit_percent` varchar(63) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_mode_reglement` int DEFAULT NULL,
  `note_private` text COLLATE utf8mb3_unicode_ci,
  `note_public` text COLLATE utf8mb3_unicode_ci,
  `model_pdf` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `last_main_doc` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_livraison` date DEFAULT NULL,
  `fk_shipping_method` int DEFAULT NULL,
  `fk_warehouse` int DEFAULT NULL,
  `fk_availability` int DEFAULT NULL,
  `fk_input_reason` int DEFAULT NULL,
  `fk_incoterms` int DEFAULT NULL,
  `location_incoterms` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `extraparams` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_delivery_address` int DEFAULT NULL,
  `fk_multicurrency` int DEFAULT NULL,
  `multicurrency_code` varchar(3) COLLATE utf8mb3_unicode_ci 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',
  `online_sign_ip` varchar(48) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `online_sign_name` varchar(64) COLLATE utf8mb3_unicode_ci 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 `t1zhf_projet` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_propal_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `t1zhf_societe` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_propal_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_propal_fk_user_cloture` FOREIGN KEY (`fk_user_cloture`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_propal_fk_user_signature` FOREIGN KEY (`fk_user_signature`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_propal_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_propal`
--

INSERT INTO `t1zhf_propal` VALUES (28,'PR2107-0018',1,NULL,NULL,'',1,12,'2023-05-09 12:26:16','2021-07-16 10:26:08','2021-07-16','2021-07-31 12:00:00','2021-07-16 15:33:31','2021-07-16 15:33:38','2021-07-16 15:33:38',1,NULL,1,1,1,2,0,NULL,NULL,0,5258.00000000,816.20000000,0.00000000,0.00000000,6074.20000000,NULL,NULL,2,NULL,2,'','Travaux de r&eacute;novation d&rsquo;une maison de 85 m2 en ma&ccedil;onnerie et carrelage','azur','propale/PR2107-0018/PR2107-0018.pdf',NULL,NULL,NULL,0,0,0,'',NULL,NULL,NULL,0,'EUR',1.00000000,5258.00000000,816.20000000,6074.20000000,NULL,NULL),(29,'PR2107-0019',1,NULL,NULL,'',7,13,'2024-09-18 09:23:31','2021-07-16 14:48:01','2021-07-16','2021-07-31 14:48:01','2024-09-18 11:23:31',NULL,NULL,1,NULL,1,NULL,NULL,1,0,NULL,NULL,0,5478.00000000,860.20000000,0.00000000,0.00000000,6338.20000000,NULL,NULL,NULL,NULL,NULL,'','Travaux de r&eacute;novation d&rsquo;une maison de 85 m2 en ma&ccedil;onnerie et carrelage','azur','propale/PR2107-0019/PR2107-0019.pdf',NULL,NULL,NULL,0,0,0,'',NULL,NULL,NULL,0,'EUR',1.00000000,5478.00000000,860.20000000,6338.20000000,NULL,NULL),(30,'PR2110-0020',1,NULL,NULL,'',4,NULL,'2023-05-09 12:26:16','2021-10-19 15:38:05','2021-10-18','2021-11-17 11:00:00','2021-10-19 15:41:11','2021-10-19 15:43:04','2021-10-19 15:43:04',1,NULL,1,1,1,2,0,NULL,NULL,0,300.00000000,60.00000000,0.00000000,0.00000000,360.00000000,NULL,NULL,7,NULL,6,'','','azur','propale/PR2110-0020/PR2110-0020.pdf',NULL,NULL,NULL,0,8,0,'',NULL,NULL,NULL,0,'EUR',1.00000000,300.00000000,60.00000000,360.00000000,NULL,NULL),(31,'(PROV31)',1,NULL,NULL,'',7,NULL,'2021-12-14 08:21:14','2021-12-14 09:15:38','2021-12-14','2021-12-29 12:00:00',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,1339.50000000,267.90000000,0.00000000,0.00000000,1607.40000000,NULL,NULL,NULL,NULL,NULL,'','','azur','propale/(PROV31)/(PROV31).pdf',NULL,NULL,NULL,0,0,0,'',NULL,NULL,NULL,0,'EUR',1.00000000,1339.50000000,267.90000000,1607.40000000,NULL,NULL),(32,'PR2202-0021',1,NULL,NULL,'',1,NULL,'2023-05-09 12:26:16','2022-02-18 16:09:24','2022-02-18','2022-03-05 12:00:00','2022-02-18 16:16:02','2022-02-18 16:24:41','2022-02-18 16:24:41',1,NULL,1,1,1,2,0,NULL,NULL,0,188.00000000,37.60000000,0.00000000,0.00000000,225.60000000,NULL,NULL,2,NULL,2,'','','azur','propale/PR2202-0021/PR2202-0021.pdf','2022-02-28',NULL,NULL,0,0,0,'',NULL,NULL,NULL,0,'EUR',1.00000000,188.00000000,37.60000000,225.60000000,NULL,NULL),(33,'PR2305-0022',1,'',NULL,'',1,15,'2024-09-09 14:03:26','2023-05-09 14:57:46','2023-05-09','2023-05-24 12:00:00','2024-09-09 16:03:15','2024-09-09 16:03:26',NULL,1,NULL,1,1,NULL,2,0,NULL,NULL,0,8449.08000000,844.91000000,0.00000000,0.00000000,9293.99000000,NULL,NULL,2,NULL,2,'','','rubis','propale/PR2305-0022/PR2305-0022.pdf','2023-07-31',NULL,NULL,4,8,0,'',NULL,NULL,NULL,0,'EUR',1.00000000,8449.08000000,844.91000000,9293.99000000,NULL,NULL),(34,'(PROV34)',1,'',NULL,'',14,NULL,'2023-05-17 06:24:00','2023-05-16 14:32:24','2023-05-16','2023-05-31 12:00:00',NULL,NULL,NULL,8,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,1200.00000000,216.00000000,0.00000000,0.00000000,1416.00000000,NULL,NULL,1,NULL,7,'','','cyan','propale/(PROV34)/(PROV34).pdf',NULL,NULL,NULL,4,8,0,'',NULL,NULL,NULL,0,'EUR',1.00000000,1200.00000000,216.00000000,1416.00000000,NULL,NULL),(35,'(PROV35)',1,'',NULL,'',1,NULL,'2024-09-18 09:15:45','2023-05-30 18:18:33','2023-05-30','2023-06-14 12:00:00',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,14.00000000,2.80000000,0.00000000,0.00000000,16.80000000,NULL,NULL,2,NULL,2,'','','cyan','propale/(PROV35)/(PROV35).pdf',NULL,NULL,NULL,0,0,0,'',NULL,NULL,NULL,0,'EUR',1.00000000,14.00000000,2.80000000,16.80000000,NULL,NULL),(36,'PR2409-0023',1,'',NULL,'',9,NULL,'2024-09-09 13:51:22','2024-09-09 15:35:53','2024-09-09','2024-09-30 12:00:00','2024-09-09 15:46:48','2024-09-09 15:51:22',NULL,1,NULL,1,1,NULL,2,0,0,0,0,7782.75000000,857.44000000,0.00000000,0.00000000,8640.19000000,NULL,NULL,NULL,NULL,NULL,'','','rubis','propale/PR2409-0023/PR2409-0023.pdf','2023-07-31',NULL,NULL,4,8,0,'',NULL,NULL,NULL,0,'EUR',1.00000000,7782.75000000,857.44000000,8640.19000000,NULL,NULL);

--
-- Table structure for table `t1zhf_propal_extrafields`
--

CREATE TABLE `t1zhf_propal_extrafields` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `of_check_prev` int DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_propal_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_propal_extrafields`
--


--
-- Table structure for table `t1zhf_propal_merge_pdf_product`
--

CREATE TABLE `t1zhf_propal_merge_pdf_product` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_product` int NOT NULL,
  `file_name` varchar(200) COLLATE utf8mb3_unicode_ci NOT NULL,
  `lang` varchar(5) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_user_author` int DEFAULT NULL,
  `fk_user_mod` int NOT NULL,
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_propal_merge_pdf_product`
--


--
-- Table structure for table `t1zhf_propaldet`
--

CREATE TABLE `t1zhf_propaldet` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_propal` int NOT NULL,
  `fk_parent_line` int DEFAULT NULL,
  `fk_product` int DEFAULT NULL,
  `label` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8mb3_unicode_ci,
  `fk_remise_except` int DEFAULT NULL,
  `vat_src_code` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `tva_tx` double(6,3) DEFAULT '0.000',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) COLLATE utf8mb3_unicode_ci 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 DEFAULT '0',
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int DEFAULT '0',
  `buy_price_ht` double(24,8) DEFAULT '0.00000000',
  `fk_product_fournisseur_price` int DEFAULT NULL,
  `special_code` int DEFAULT '0',
  `rang` int DEFAULT '0',
  `fk_unit` int DEFAULT NULL,
  `fk_multicurrency` int DEFAULT NULL,
  `multicurrency_code` varchar(3) COLLATE utf8mb3_unicode_ci 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',
  `date_cre` datetime DEFAULT NULL,
  `date_maj` datetime DEFAULT NULL,
  `poids` int NOT NULL DEFAULT '0',
  `tarif_poids` double NOT NULL DEFAULT '0',
  `metre` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci 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 `t1zhf_propal` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_propaldet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `t1zhf_c_units` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=200 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_propaldet`
--

INSERT INTO `t1zhf_propaldet` VALUES (147,28,NULL,49,'Fourniture et pose d’un linteau','Fourniture et pose d&rsquo;un linteau fer I de section 140mm pour la d&eacute;pose de la cloison de s&eacute;paration entre la cuisine et le s&eacute;jour. Comprenant transport, d&eacute;coupe et assemblage au mortier de ciment. Longueur 300cm.',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,1122,1122.00000000,1122.00000000,112.20000000,0.00000000,0.00000000,1234.20000000,1,NULL,NULL,0,1020.00000000,NULL,0,2,1,NULL,'EUR',1122.00000000,1122.00000000,112.20000000,1234.20000000,NULL,NULL,0,0,'',NULL),(148,28,NULL,NULL,'TRAVAUX MACONNERIE','',NULL,'',0.000,0.000,'0',0.000,'0',1,0,0,0,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0.00000000,NULL,104777,1,NULL,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,'',NULL),(149,28,NULL,49,'Fourniture et pose d’un linteau','Fourniture et pose d&rsquo;un linteau fer I de section 140mm pour la d&eacute;pose de la cloison de s&eacute;paration entre la cuisine et le s&eacute;jour. Comprenant transport, d&eacute;coupe et assemblage au mortier de ciment. Longueur 340cm.',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,1232,1232.00000000,1232.00000000,123.20000000,0.00000000,0.00000000,1355.20000000,1,NULL,NULL,0,1120.00000000,NULL,0,3,1,NULL,'EUR',1232.00000000,1232.00000000,123.20000000,1355.20000000,NULL,NULL,0,0,'',NULL),(150,28,NULL,NULL,NULL,'',NULL,'',0.000,0.000,'0',0.000,'0',99,0,0,0,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0.00000000,NULL,104777,4,NULL,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,'',NULL),(151,28,NULL,NULL,'TRAVAUX CARRELAGE','Attention, toute pose non standardisée, carrelage/faïence non conforme au format et base d’achat supérieure, fera l’objet d’une plus-value au présent devis.',NULL,'',0.000,0.000,'0',0.000,'0',1,0,0,0,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0.00000000,NULL,104777,5,NULL,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,'',NULL),(152,28,NULL,54,'Carrelage','Fourniture et pr&eacute;paration du support avant la pose du carrelage dans la cuisine par produit accrocheur et/ou ragr&eacute;age.<br />\r\nFourniture et pose d&#39;un carrelage gr&egrave;s c&eacute;rame de dimensions entre 33x33 et 60x60 cm en pose droite, pose &agrave; la colle et jointoiement compris. Base d&#39;achat : 25,00 &euro; HT le m&sup2;.',NULL,'',20.000,0.000,'0',0.000,'0',1,0,0,1848,1848.00000000,1848.00000000,369.60000000,0.00000000,0.00000000,2217.60000000,1,NULL,NULL,0,1680.00000000,NULL,0,6,1,NULL,'EUR',1848.00000000,1848.00000000,369.60000000,2217.60000000,NULL,NULL,0,0,'',NULL),(153,28,NULL,NULL,NULL,'',NULL,'',0.000,0.000,'0',0.000,'0',99,0,0,0,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0.00000000,NULL,104777,8,NULL,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,'',NULL),(154,28,NULL,54,'Carrelage','Fourniture et pr&eacute;paration du support avant la pose du carrelage dans la sde par produit accrocheur et/ou ragr&eacute;age.<br />\r\nFourniture et pose d&#39;un carrelage gr&egrave;s c&eacute;rame de dimensions entre 33x33 et 60x60 cm en pose droite, pose &agrave; la colle et jointoiement compris.',NULL,'',20.000,0.000,'0',0.000,'0',1,0,0,1056,1056.00000000,1056.00000000,211.20000000,0.00000000,0.00000000,1267.20000000,1,NULL,NULL,0,960.00000000,NULL,0,7,1,NULL,'EUR',1056.00000000,1056.00000000,211.20000000,1267.20000000,NULL,NULL,0,0,'',NULL),(155,29,NULL,NULL,'TRAVAUX MACONNERIE','',NULL,'',0.000,0.000,'0',0.000,'0',1,0,0,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0.00000000,NULL,104777,1,NULL,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,'',NULL),(156,29,NULL,49,'Fourniture et pose d’un linteau','Fourniture et pose d&rsquo;un linteau fer I de section 140mm pour la d&eacute;pose de la cloison de s&eacute;paration entre la cuisine et le s&eacute;jour. Comprenant transport, d&eacute;coupe et assemblage au mortier de ciment. Longueur 300cm.',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,NULL,1122.00000000,1122.00000000,112.20000000,0.00000000,0.00000000,1234.20000000,1,NULL,NULL,0,1020.00000000,NULL,0,2,1,NULL,'EUR',1122.00000000,1122.00000000,112.20000000,1234.20000000,NULL,NULL,0,0,'',NULL),(157,29,NULL,49,'Fourniture et pose d’un linteau','Fourniture et pose d&rsquo;un linteau fer I de section 140mm pour la d&eacute;pose de la cloison de s&eacute;paration entre la cuisine et le s&eacute;jour. Comprenant transport, d&eacute;coupe et assemblage au mortier de ciment. Longueur 340cm.',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,NULL,1232.00000000,1232.00000000,123.20000000,0.00000000,0.00000000,1355.20000000,1,NULL,NULL,0,1120.00000000,NULL,0,3,1,NULL,'EUR',1232.00000000,1232.00000000,123.20000000,1355.20000000,NULL,NULL,0,0,'',NULL),(158,29,NULL,NULL,NULL,'',NULL,'',0.000,0.000,'0',0.000,'0',99,0,0,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0.00000000,NULL,104777,4,NULL,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,'',NULL),(159,29,NULL,NULL,'TRAVAUX CARRELAGE','Attention, toute pose non standardisée, carrelage/faïence non conforme au format et base d’achat supérieure, fera l’objet d’une plus-value au présent devis.',NULL,'',0.000,0.000,'0',0.000,'0',1,0,0,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0.00000000,NULL,104777,5,NULL,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,'',NULL),(160,29,NULL,54,'Carrelage','Fourniture et pr&eacute;paration du support avant la pose du carrelage dans la cuisine par produit accrocheur et/ou ragr&eacute;age.<br />\r\nFourniture et pose d&#39;un carrelage gr&egrave;s c&eacute;rame de dimensions entre 33x33 et 60x60 cm en pose droite, pose &agrave; la colle et jointoiement compris. Base d&#39;achat : 25,00 &euro; HT le m&sup2;.',NULL,'',20.000,0.000,'0',0.000,'0',1,0,0,NULL,1848.00000000,1848.00000000,369.60000000,0.00000000,0.00000000,2217.60000000,1,NULL,NULL,0,1680.00000000,NULL,0,6,1,NULL,'EUR',1848.00000000,1848.00000000,369.60000000,2217.60000000,NULL,NULL,0,0,'',NULL),(161,29,NULL,54,'Carrelage','Fourniture et pr&eacute;paration du support avant la pose du carrelage dans la sde par produit accrocheur et/ou ragr&eacute;age.<br />\r\nFourniture et pose d&#39;un carrelage gr&egrave;s c&eacute;rame de dimensions entre 33x33 et 60x60 cm en pose droite, pose &agrave; la colle et jointoiement compris.',NULL,'',20.000,0.000,'0',0.000,'0',1,0,0,NULL,1056.00000000,1056.00000000,211.20000000,0.00000000,0.00000000,1267.20000000,1,NULL,NULL,0,960.00000000,NULL,0,7,1,NULL,'EUR',1056.00000000,1056.00000000,211.20000000,1267.20000000,NULL,NULL,0,0,'',NULL),(162,29,NULL,NULL,NULL,'',NULL,'',0.000,0.000,'0',0.000,'0',99,0,0,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0.00000000,NULL,104777,8,NULL,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,'',NULL),(163,30,NULL,5,NULL,'velo bleu',NULL,'',20.000,0.000,'0',0.000,'0',1,0,0,NULL,300.00000000,300.00000000,60.00000000,0.00000000,0.00000000,360.00000000,0,NULL,NULL,0,150.00000000,NULL,0,1,1,NULL,'EUR',300.00000000,300.00000000,60.00000000,360.00000000,NULL,NULL,0,0,'',NULL),(164,31,NULL,5,NULL,'',NULL,'',20.000,0.000,'0',0.000,'0',1,0,0,850,850.00000000,850.00000000,170.00000000,0.00000000,0.00000000,1020.00000000,0,NULL,NULL,0,759.00000000,NULL,0,1,1,NULL,'EUR',850.00000000,850.00000000,170.00000000,1020.00000000,NULL,NULL,0,0,'',NULL),(165,31,NULL,9,'velo2','',NULL,'',20.000,0.000,'0',0.000,'0',1,0,0,489.5,489.50000000,489.50000000,97.90000000,0.00000000,0.00000000,587.40000000,0,NULL,NULL,0,445.00000000,NULL,0,2,1,NULL,'EUR',489.50000000,489.50000000,97.90000000,587.40000000,NULL,NULL,0,0,'',NULL),(166,32,NULL,25,NULL,'',NULL,'',20.000,0.000,'0',0.000,'0',1,5,7,133,140.00000000,133.00000000,26.60000000,0.00000000,0.00000000,159.60000000,0,NULL,NULL,0,50.00000000,NULL,0,1,1,NULL,'EUR',140.00000000,133.00000000,26.60000000,159.60000000,NULL,NULL,0,0,'',NULL),(167,32,NULL,33,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,50.00000000,NULL,0,2,1,NULL,'EUR',50.00000000,50.00000000,10.00000000,60.00000000,NULL,NULL,0,0,'',NULL),(168,32,NULL,30,NULL,'124 description\n(Pays d\'origine: France)',NULL,'',20.000,0.000,'0',0.000,'0',1,0,0,NULL,5.00000000,5.00000000,1.00000000,0.00000000,0.00000000,6.00000000,0,NULL,NULL,0,5.00000000,NULL,0,3,6,NULL,'EUR',5.00000000,5.00000000,1.00000000,6.00000000,NULL,NULL,0,0,'',NULL),(169,33,NULL,58,NULL,'Pr&eacute;paration, protection et nettoyage du chantier',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,0,240.00000000,240.00000000,24.00000000,0.00000000,0.00000000,264.00000000,0,NULL,NULL,0,0.00000000,NULL,0,2,1,NULL,'EUR',240.00000000,240.00000000,24.00000000,264.00000000,NULL,NULL,0,0,'',NULL),(170,33,NULL,NULL,NULL,'D&eacute;molition et d&eacute;pose baignoire, paroi, meuble, robinetteries, plinthes, y compris &eacute;vacuation et traitement des d&eacute;chets',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,0,1200.00000000,1200.00000000,120.00000000,0.00000000,0.00000000,1320.00000000,1,NULL,NULL,0,1200.00000000,NULL,0,3,1,NULL,'EUR',1200.00000000,1200.00000000,120.00000000,1320.00000000,NULL,NULL,0,0,'',NULL),(171,33,NULL,NULL,NULL,'Travaux pr&eacute;paratoire EC EF evacuation selon nouvelle implantation receveur et meuble double vasque',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,NULL,981.00000000,981.00000000,98.10000000,0.00000000,0.00000000,1079.10000000,1,NULL,NULL,0,981.00000000,NULL,0,4,1,NULL,'EUR',981.00000000,981.00000000,98.10000000,1079.10000000,NULL,NULL,0,0,'',NULL),(172,33,NULL,NULL,NULL,'Travaux pr&eacute;paratoires &eacute;lectrique<br />\r\nChangement appareillage d&#39;une prise<br />\r\nCr&eacute;ation d&#39;une prise . Tirage alimentation miroir<br />\r\nODACE Schneider Blanc',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,NULL,650.00000000,650.00000000,65.00000000,0.00000000,0.00000000,715.00000000,1,NULL,NULL,0,650.00000000,NULL,0,5,1,NULL,'EUR',650.00000000,650.00000000,65.00000000,715.00000000,NULL,NULL,0,0,'',NULL),(173,33,NULL,NULL,NULL,'Coffrage placo BA13 Hydrofuge<br />\r\nEt traitement des joints<br />\r\nLocalisation : sur murs de douche',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,NULL,425.00000000,425.00000000,42.50000000,0.00000000,0.00000000,467.50000000,1,NULL,NULL,0,425.00000000,NULL,0,6,1,NULL,'EUR',425.00000000,425.00000000,42.50000000,467.50000000,NULL,NULL,0,0,'',NULL),(174,33,NULL,NULL,'Côté PREPARATION','',NULL,'',0.000,0.000,'0',0.000,'0',1,0,0,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0.00000000,NULL,104777,1,NULL,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,'',NULL),(175,33,NULL,NULL,'Côté PREPARATION','',NULL,'',0.000,0.000,'0',0.000,'0',99,0,0,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0.00000000,NULL,104777,7,NULL,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,'',NULL),(176,33,NULL,55,NULL,'Fourniture meuble JOLIE MOME<br />\r\nL120*P51*H63<br />\r\nBaltique brillant<br />\r\navec double vasque blanche',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,NULL,2703.00000000,2703.00000000,270.30000000,0.00000000,0.00000000,2973.30000000,0,NULL,NULL,0,0.00000000,NULL,0,11,1,NULL,'EUR',2703.00000000,2703.00000000,270.30000000,2973.30000000,NULL,NULL,0,0,'',NULL),(177,33,NULL,56,NULL,'Fourniture meuble bas JOLIE MOME<br />\r\ndroite et gauche / charni&egrave;re droite et gauche<br />\r\nL35*P30*H63<br />\r\nBaltique brillant',NULL,'',10.000,0.000,'0',0.000,'0',2,0,0,NULL,609.00000000,1218.00000000,121.80000000,0.00000000,0.00000000,1339.80000000,0,NULL,NULL,0,0.00000000,NULL,0,10,1,NULL,'EUR',609.00000000,1218.00000000,121.80000000,1339.80000000,NULL,NULL,0,0,'',NULL),(178,33,NULL,NULL,'Côté MEUBLES ET SANITAIRES','',NULL,'',0.000,0.000,'0',0.000,'0',1,0,0,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0.00000000,NULL,104777,8,NULL,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,NULL,NULL),(179,33,NULL,NULL,'Côté MEUBLES ET SANITAIRES','',NULL,'',0.000,0.000,'0',0.000,'0',99,0,0,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0.00000000,NULL,104777,12,NULL,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,NULL,NULL),(180,33,NULL,NULL,NULL,'Fourniture MIROIR led laqu&eacute; REFLET MOON<br />\r\nD 140',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,0,1032.08000000,1032.08000000,103.21000000,0.00000000,0.00000000,1135.29000000,0,NULL,NULL,0,1032.08000000,NULL,0,9,1,NULL,'EUR',1032.08000000,1032.08000000,103.21000000,1135.29000000,NULL,NULL,0,0,NULL,NULL),(181,34,NULL,57,NULL,'',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,NULL,240.00000000,240.00000000,24.00000000,0.00000000,0.00000000,264.00000000,1,NULL,NULL,0,0.00000000,NULL,0,1,4,NULL,'EUR',240.00000000,240.00000000,24.00000000,264.00000000,NULL,NULL,0,0,NULL,NULL),(182,34,NULL,58,NULL,'',NULL,'',20.000,0.000,'0',0.000,'0',4,0,0,NULL,240.00000000,960.00000000,192.00000000,0.00000000,0.00000000,1152.00000000,0,NULL,NULL,0,0.00000000,NULL,0,2,1,NULL,'EUR',240.00000000,960.00000000,192.00000000,1152.00000000,NULL,NULL,0,0,NULL,NULL),(183,36,NULL,NULL,'Côté PREPARATION','',NULL,'',0.000,0.000,'0',0.000,'0',1,0,0,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0.00000000,NULL,104777,1,NULL,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,NULL,NULL),(184,36,NULL,58,NULL,'',NULL,'',20.000,0.000,'0',0.000,'0',2,0,0,0,250.00000000,500.00000000,100.00000000,0.00000000,0.00000000,600.00000000,0,NULL,NULL,0,0.00000000,NULL,0,2,1,NULL,'EUR',250.00000000,500.00000000,100.00000000,600.00000000,NULL,NULL,0,0,NULL,NULL),(185,36,NULL,NULL,NULL,'D&eacute;molition et d&eacute;pose baignoire, paroi, meuble, robinetteries, plinthes, y compris &eacute;vacuation et traitement des d&eacute;chets',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,NULL,1200.00000000,1200.00000000,120.00000000,0.00000000,0.00000000,1320.00000000,1,NULL,NULL,0,1200.00000000,NULL,0,3,1,NULL,'EUR',1200.00000000,1200.00000000,120.00000000,1320.00000000,NULL,NULL,0,0,NULL,NULL),(186,36,NULL,NULL,NULL,'Travaux pr&eacute;paratoire EC EF evacuation selon nouvelle implantation receveur et meuble double vasque',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,NULL,981.00000000,981.00000000,98.10000000,0.00000000,0.00000000,1079.10000000,1,NULL,NULL,0,981.00000000,NULL,0,4,1,NULL,'EUR',981.00000000,981.00000000,98.10000000,1079.10000000,NULL,NULL,0,0,NULL,NULL),(187,36,NULL,NULL,NULL,'Travaux pr&eacute;paratoires &eacute;lectrique<br />\r\nChangement appareillage d&#39;une prise<br />\r\nCr&eacute;ation d&#39;une prise . Tirage alimentation miroir<br />\r\nODACE Schneider Blanc',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,NULL,650.00000000,650.00000000,65.00000000,0.00000000,0.00000000,715.00000000,1,NULL,NULL,0,650.00000000,NULL,0,5,1,NULL,'EUR',650.00000000,650.00000000,65.00000000,715.00000000,NULL,NULL,0,0,NULL,NULL),(188,36,NULL,NULL,NULL,'Coffrage placo BA13 Hydrofuge<br />\r\nEt traitement des joints<br />\r\nLocalisation : sur murs de douche',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,NULL,425.00000000,425.00000000,42.50000000,0.00000000,0.00000000,467.50000000,1,NULL,NULL,0,425.00000000,NULL,0,6,1,NULL,'EUR',425.00000000,425.00000000,42.50000000,467.50000000,NULL,NULL,0,0,NULL,NULL),(189,36,NULL,NULL,'Côté PREPARATION','',NULL,'',0.000,0.000,'0',0.000,'0',99,0,0,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0.00000000,NULL,104777,8,NULL,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,NULL,NULL),(190,36,NULL,NULL,'Côté MEUBLES ET SANITAIRES','',NULL,'',0.000,0.000,'0',0.000,'0',1,0,0,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0.00000000,NULL,104777,9,NULL,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,NULL,NULL),(191,36,NULL,NULL,NULL,'Fourniture MIROIR led laqu&eacute; REFLET MOON<br />\r\nD 140',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,NULL,1032.08000000,1032.08000000,103.21000000,0.00000000,0.00000000,1135.29000000,0,NULL,NULL,0,1032.08000000,NULL,0,10,1,NULL,'EUR',1032.08000000,1032.08000000,103.21000000,1135.29000000,NULL,NULL,0,0,NULL,NULL),(193,36,NULL,55,NULL,'Fourniture meuble JOLIE MOME<br />\r\nL120*P51*H63<br />\r\nBaltique brillant<br />\r\navec double vasque blanche',NULL,'',10.000,0.000,'0',0.000,'0',1,0,0,NULL,2703.00000000,2703.00000000,270.30000000,0.00000000,0.00000000,2973.30000000,0,NULL,NULL,0,0.00000000,NULL,0,11,1,NULL,'EUR',2703.00000000,2703.00000000,270.30000000,2973.30000000,NULL,NULL,0,0,NULL,NULL),(194,36,NULL,NULL,'Côté MEUBLES ET SANITAIRES','',NULL,'',0.000,0.000,'0',0.000,'0',99,0,0,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0.00000000,NULL,104777,12,NULL,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,NULL,NULL),(195,36,NULL,25,NULL,'fhgdthdgfhxdfg<br />\r\nghcfgcfghfgd',NULL,'',20.000,0.000,'0',0.000,'0',1,0,0,NULL,250.00000000,250.00000000,50.00000000,0.00000000,0.00000000,300.00000000,0,NULL,NULL,0,50.00000000,NULL,0,7,1,NULL,'EUR',250.00000000,250.00000000,50.00000000,300.00000000,NULL,NULL,0,0,NULL,NULL),(196,36,NULL,NULL,NULL,'transport',NULL,'',20.000,0.000,'0',0.000,'0',1,0,0,NULL,41.67000000,41.67000000,8.33000000,0.00000000,0.00000000,50.00000000,1,NULL,NULL,0,0.00000000,NULL,0,13,1,NULL,'EUR',41.67000000,41.67000000,8.33000000,50.00000000,NULL,NULL,0,0,NULL,NULL),(197,35,NULL,32,NULL,'',NULL,'',20.000,0.000,'0',0.000,'0',1,0,0,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,NULL,NULL,0,0.00000000,NULL,0,1,1,NULL,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,0,0,NULL,NULL),(198,35,NULL,54,NULL,'Fourniture et pr&eacute;paration du support avant la pose du carrelage dans la cuisine par produit accrocheur et/ou ragr&eacute;age.<br />\r\nFourniture et pose d&#39;un carrelage gr&egrave;s c&eacute;rame de dimensions entre 33x33 et 60x60 cm en pose droite, pose &agrave; la colle et jointoiement compris. Base d&#39;achat : 25,00 &euro; HT le m&sup2;.',NULL,'',20.000,0.000,'0',0.000,'0',1,0,0,NULL,14.00000000,14.00000000,2.80000000,0.00000000,0.00000000,16.80000000,1,NULL,NULL,0,0.00000000,NULL,0,2,1,NULL,'EUR',14.00000000,14.00000000,2.80000000,16.80000000,NULL,NULL,0,0,NULL,NULL),(199,29,NULL,69,NULL,'',NULL,'',20.000,0.000,'0',0.000,'0',2,0,0,NULL,110.00000000,220.00000000,44.00000000,0.00000000,0.00000000,264.00000000,0,NULL,NULL,0,0.00000000,NULL,0,9,1,NULL,'EUR',110.00000000,220.00000000,44.00000000,264.00000000,NULL,NULL,0,0,NULL,NULL);

--
-- Table structure for table `t1zhf_propaldet_extrafields`
--

CREATE TABLE `t1zhf_propaldet_extrafields` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `show_total_ht` int DEFAULT NULL,
  `show_reduc` int DEFAULT NULL,
  `pv_force` int DEFAULT NULL,
  `subtotal_nc` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `subtotal_show_qty` int DEFAULT NULL,
  `hideblock` int DEFAULT NULL,
  `reflinenumber` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_propaldet_extrafields` (`fk_object`)
) ENGINE=InnoDB AUTO_INCREMENT=546 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_propaldet_extrafields`
--

INSERT INTO `t1zhf_propaldet_extrafields` VALUES (463,'2021-07-16 08:43:51',147,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(471,'2021-07-16 08:45:01',149,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(473,'2021-07-16 08:45:51',150,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(475,'2021-07-16 08:55:01',148,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(477,'2021-07-16 08:55:37',151,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(489,'2021-07-16 09:09:27',154,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(491,'2021-07-16 09:10:43',153,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(494,'2021-07-16 09:33:19',152,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(495,'2021-07-16 12:48:01',155,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(496,'2021-07-16 12:48:01',156,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(497,'2021-07-16 12:48:01',157,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(498,'2021-07-16 12:48:01',158,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(499,'2021-07-16 12:48:01',159,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(500,'2021-07-16 12:48:01',160,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(501,'2021-07-16 12:48:01',161,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(502,'2021-07-16 12:48:01',162,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(503,'2021-10-19 13:39:06',163,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(509,'2021-12-14 08:18:42',164,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL),(513,'2021-12-14 08:21:14',165,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL),(516,'2022-02-18 15:14:23',166,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL),(517,'2022-02-18 15:14:41',167,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(518,'2022-02-18 15:15:19',168,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(521,'2023-05-09 13:01:05',170,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(522,'2023-05-09 13:01:13',169,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(523,'2023-05-09 13:01:58',171,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(524,'2023-05-09 13:02:51',172,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(525,'2023-05-09 13:03:25',173,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(526,'2023-05-09 13:04:44',176,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(527,'2023-05-09 13:05:06',177,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(529,'2023-05-09 13:13:42',180,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(530,'2023-05-17 06:23:43',181,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(531,'2023-05-17 06:24:00',182,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(533,'2024-09-09 13:35:53',185,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(534,'2024-09-09 13:35:53',186,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(535,'2024-09-09 13:35:53',187,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(536,'2024-09-09 13:35:53',188,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(537,'2024-09-09 13:35:53',191,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(539,'2024-09-09 13:35:53',193,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(540,'2024-09-09 13:37:53',184,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(541,'2024-09-09 13:45:10',195,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(542,'2024-09-09 13:46:11',196,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(543,'2024-09-18 09:15:36',197,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(544,'2024-09-18 09:15:45',198,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(545,'2024-09-18 09:23:04',199,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `t1zhf_qdashboard`
--

CREATE TABLE `t1zhf_qdashboard` (
  `rowid` int NOT NULL DEFAULT '0',
  `date_cre` datetime DEFAULT NULL,
  `date_maj` datetime DEFAULT NULL,
  `fk_user` int NOT NULL DEFAULT '0',
  `fk_user_author` int NOT NULL DEFAULT '0',
  `fk_usergroup` int NOT NULL DEFAULT '0',
  `uid` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `send_by_mail` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `hook` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `refresh_dashboard` int NOT NULL DEFAULT '0',
  `use_as_landing_page` int NOT NULL DEFAULT '0',
  `title` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `date_cre` (`date_cre`),
  KEY `date_maj` (`date_maj`),
  KEY `fk_user` (`fk_user`),
  KEY `fk_user_author` (`fk_user_author`),
  KEY `fk_usergroup` (`fk_usergroup`),
  KEY `uid` (`uid`),
  KEY `send_by_mail` (`send_by_mail`),
  KEY `hook` (`hook`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_qdashboard`
--

INSERT INTO `t1zhf_qdashboard` VALUES (1,'2020-10-15 18:04:16','2020-10-15 18:04:16',1,1,-1,'cb90ff94bfb228c265e5ed3af77331e4','','',0,0,'pan1');

--
-- Table structure for table `t1zhf_qdashboard_query`
--

CREATE TABLE `t1zhf_qdashboard_query` (
  `rowid` int NOT NULL DEFAULT '0',
  `date_cre` datetime DEFAULT NULL,
  `date_maj` datetime DEFAULT NULL,
  `fk_qdashboard` int NOT NULL DEFAULT '0',
  `fk_query` int NOT NULL DEFAULT '0',
  `width` int NOT NULL DEFAULT '0',
  `height` int NOT NULL DEFAULT '0',
  `posx` int NOT NULL DEFAULT '0',
  `posy` int NOT NULL DEFAULT '0',
  `title` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `date_cre` (`date_cre`),
  KEY `date_maj` (`date_maj`),
  KEY `fk_qdashboard` (`fk_qdashboard`),
  KEY `fk_query` (`fk_query`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_qdashboard_query`
--


--
-- Table structure for table `t1zhf_query`
--

CREATE TABLE `t1zhf_query` (
  `rowid` int NOT NULL DEFAULT '0',
  `date_cre` datetime DEFAULT NULL,
  `date_maj` datetime DEFAULT NULL,
  `sql_fields` longtext COLLATE utf8mb3_unicode_ci,
  `sql_from` longtext COLLATE utf8mb3_unicode_ci,
  `sql_where` longtext COLLATE utf8mb3_unicode_ci,
  `sql_afterwhere` longtext COLLATE utf8mb3_unicode_ci,
  `TField` longtext COLLATE utf8mb3_unicode_ci,
  `TTable` longtext COLLATE utf8mb3_unicode_ci,
  `TOrder` longtext COLLATE utf8mb3_unicode_ci,
  `TTitle` longtext COLLATE utf8mb3_unicode_ci,
  `TTotal` longtext COLLATE utf8mb3_unicode_ci,
  `TLink` longtext COLLATE utf8mb3_unicode_ci,
  `TAlias` longtext COLLATE utf8mb3_unicode_ci,
  `THide` longtext COLLATE utf8mb3_unicode_ci,
  `TTranslate` longtext COLLATE utf8mb3_unicode_ci,
  `TNull` longtext COLLATE utf8mb3_unicode_ci,
  `TMode` longtext COLLATE utf8mb3_unicode_ci,
  `TOperator` longtext COLLATE utf8mb3_unicode_ci,
  `TGroup` longtext COLLATE utf8mb3_unicode_ci,
  `TFunction` longtext COLLATE utf8mb3_unicode_ci,
  `TValue` longtext COLLATE utf8mb3_unicode_ci,
  `TJoin` longtext COLLATE utf8mb3_unicode_ci,
  `TFilter` longtext COLLATE utf8mb3_unicode_ci,
  `TType` longtext COLLATE utf8mb3_unicode_ci,
  `TClass` longtext COLLATE utf8mb3_unicode_ci,
  `TMethod` longtext COLLATE utf8mb3_unicode_ci,
  `expert` int NOT NULL DEFAULT '0',
  `nb_result_max` int NOT NULL DEFAULT '0',
  `fk_bdd` int NOT NULL DEFAULT '0',
  `uid` varchar(32) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `title` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `xaxis` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `date_cre` (`date_cre`),
  KEY `date_maj` (`date_maj`),
  KEY `uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_query`
--

INSERT INTO `t1zhf_query` VALUES (1,'2020-10-15 17:44:11','2020-10-15 17:51:26','t1zhf_societe.rowid,t1zhf_societe.nom,t1zhf_societe.code_client,t1zhf_societe.code_compta,t1zhf_societe.code_fournisseur,t1zhf_societe.code_compta_fournisseur,t1zhf_socpeople.rowid,t1zhf_socpeople.lastname,t1zhf_socpeople.firstname','t1zhf_societe LEFT JOIN t1zhf_socpeople ON (t1zhf_socpeople.fk_soc=t1zhf_societe.rowid) ','','','a:9:{i:0;s:19:\"t1zhf_societe.rowid\";i:1;s:17:\"t1zhf_societe.nom\";i:2;s:25:\"t1zhf_societe.code_client\";i:3;s:25:\"t1zhf_societe.code_compta\";i:4;s:30:\"t1zhf_societe.code_fournisseur\";i:5;s:37:\"t1zhf_societe.code_compta_fournisseur\";i:6;s:21:\"t1zhf_socpeople.rowid\";i:7;s:24:\"t1zhf_socpeople.lastname\";i:8;s:25:\"t1zhf_socpeople.firstname\";}','a:2:{i:0;s:13:\"t1zhf_societe\";i:1;s:15:\"t1zhf_socpeople\";}','s:0:\"\";','a:9:{s:19:\"t1zhf_societe.rowid\";s:5:\"Rowid\";s:17:\"t1zhf_societe.nom\";s:3:\"Nom\";s:25:\"t1zhf_societe.code_client\";s:11:\"Code_client\";s:25:\"t1zhf_societe.code_compta\";s:11:\"Code_compta\";s:30:\"t1zhf_societe.code_fournisseur\";s:16:\"Code_fournisseur\";s:37:\"t1zhf_societe.code_compta_fournisseur\";s:23:\"Code_compta_fournisseur\";s:21:\"t1zhf_socpeople.rowid\";s:5:\"Rowid\";s:24:\"t1zhf_socpeople.lastname\";s:8:\"Lastname\";s:25:\"t1zhf_socpeople.firstname\";s:9:\"Firstname\";}','a:0:{}','a:0:{}','a:0:{}','s:0:\"\";','s:0:\"\";','s:0:\"\";','a:9:{s:19:\"t1zhf_societe.rowid\";s:5:\"value\";s:17:\"t1zhf_societe.nom\";s:5:\"value\";s:25:\"t1zhf_societe.code_client\";s:5:\"value\";s:25:\"t1zhf_societe.code_compta\";s:5:\"value\";s:30:\"t1zhf_societe.code_fournisseur\";s:5:\"value\";s:37:\"t1zhf_societe.code_compta_fournisseur\";s:5:\"value\";s:21:\"t1zhf_socpeople.rowid\";s:5:\"value\";s:24:\"t1zhf_socpeople.lastname\";s:5:\"value\";s:25:\"t1zhf_socpeople.firstname\";s:5:\"value\";}','s:0:\"\";','s:0:\"\";','s:0:\"\";','s:0:\"\";','a:1:{s:15:\"t1zhf_socpeople\";a:2:{i:0;s:22:\"t1zhf_socpeople.fk_soc\";i:1;s:19:\"t1zhf_societe.rowid\";}}','s:0:\"\";','s:0:\"\";','s:0:\"\";','s:0:\"\";',0,0,0,'e172f44d3abd2f96dea291c8002a7b83','test','LIST','t1zhf_societe.rowid');

--
-- Table structure for table `t1zhf_query_bdd_connector`
--

CREATE TABLE `t1zhf_query_bdd_connector` (
  `rowid` int NOT NULL DEFAULT '0',
  `date_cre` datetime DEFAULT NULL,
  `date_maj` datetime DEFAULT NULL,
  `host` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `login` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `password` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `db_name` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `db_type` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `charset` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `port` int NOT NULL DEFAULT '0',
  `entity` int NOT NULL DEFAULT '0',
  PRIMARY KEY (`rowid`),
  KEY `date_cre` (`date_cre`),
  KEY `date_maj` (`date_maj`),
  KEY `entity` (`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_query_bdd_connector`
--


--
-- Table structure for table `t1zhf_query_menu`
--

CREATE TABLE `t1zhf_query_menu` (
  `rowid` int NOT NULL DEFAULT '0',
  `date_cre` datetime DEFAULT NULL,
  `date_maj` datetime DEFAULT NULL,
  `fk_menu` int NOT NULL DEFAULT '0',
  `fk_const_tab` int NOT NULL DEFAULT '0',
  `fk_query` int NOT NULL DEFAULT '0',
  `fk_dashboard` int NOT NULL DEFAULT '0',
  `entity` int NOT NULL DEFAULT '0',
  `title` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `perms` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `mainmenu` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `leftmenu` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type_menu` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `tab_object` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `date_cre` (`date_cre`),
  KEY `date_maj` (`date_maj`),
  KEY `fk_menu` (`fk_menu`),
  KEY `fk_const_tab` (`fk_const_tab`),
  KEY `fk_query` (`fk_query`),
  KEY `fk_dashboard` (`fk_dashboard`),
  KEY `entity` (`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_query_menu`
--


--
-- Table structure for table `t1zhf_query_rights`
--

CREATE TABLE `t1zhf_query_rights` (
  `rowid` int NOT NULL DEFAULT '0',
  `date_cre` datetime DEFAULT NULL,
  `date_maj` datetime DEFAULT NULL,
  `entity` int NOT NULL DEFAULT '0',
  `fk_query` int NOT NULL DEFAULT '0',
  `fk_element` int NOT NULL DEFAULT '0',
  `element` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `date_cre` (`date_cre`),
  KEY `date_maj` (`date_maj`),
  KEY `entity` (`entity`),
  KEY `fk_query` (`fk_query`),
  KEY `fk_element` (`fk_element`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_query_rights`
--


--
-- Table structure for table `t1zhf_reception`
--

CREATE TABLE `t1zhf_reception` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NULL DEFAULT NULL,
  `ref` varchar(30) COLLATE utf8mb3_unicode_ci NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `fk_soc` int NOT NULL,
  `fk_projet` int DEFAULT NULL,
  `ref_ext` varchar(30) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ref_int` varchar(30) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ref_supplier` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `fk_user_author` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int DEFAULT NULL,
  `date_delivery` datetime DEFAULT NULL,
  `date_reception` datetime DEFAULT NULL,
  `fk_shipping_method` int DEFAULT NULL,
  `tracking_number` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_statut` smallint DEFAULT '0',
  `billed` smallint DEFAULT '0',
  `height` float DEFAULT NULL,
  `width` float DEFAULT NULL,
  `size_units` int DEFAULT NULL,
  `size` float DEFAULT NULL,
  `weight_units` int DEFAULT NULL,
  `weight` float DEFAULT NULL,
  `note_private` mediumtext COLLATE utf8mb3_unicode_ci,
  `note_public` mediumtext COLLATE utf8mb3_unicode_ci,
  `model_pdf` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_incoterms` int DEFAULT NULL,
  `location_incoterms` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `extraparams` varchar(255) COLLATE utf8mb3_unicode_ci 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=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_reception`
--


--
-- Table structure for table `t1zhf_reception_extrafields`
--

CREATE TABLE `t1zhf_reception_extrafields` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NULL DEFAULT NULL,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_reception_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_reception_extrafields`
--


--
-- Table structure for table `t1zhf_receptiondet_batch`
--

CREATE TABLE `t1zhf_receptiondet_batch` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_element` int DEFAULT NULL,
  `fk_product` int DEFAULT NULL,
  `fk_elementdet` int DEFAULT NULL,
  `qty` float DEFAULT NULL,
  `fk_entrepot` int DEFAULT NULL,
  `fk_user` int DEFAULT NULL,
  `comment` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `batch` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `status` int DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_projet` int DEFAULT NULL,
  `fk_reception` int DEFAULT NULL,
  `cost_price` double(24,8) DEFAULT '0.00000000',
  `element_type` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'supplier_order',
  PRIMARY KEY (`rowid`),
  KEY `idx_commande_fournisseur_dispatch_fk_commande` (`fk_element`),
  KEY `idx_commande_fournisseur_dispatch_fk_product` (`fk_product`),
  KEY `idx_commande_fournisseur_dispatch_fk_commandefourndet` (`fk_elementdet`),
  KEY `idx_receptiondet_batch_fk_element` (`fk_element`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_receptiondet_batch`
--

INSERT INTO `t1zhf_receptiondet_batch` VALUES (1,5,40,4,500,1,1,'Réception de la commande fournisseur PO2011-0004',NULL,NULL,NULL,1,'2020-11-02 12:32:43','2020-11-02 11:32:43',NULL,NULL,0.00000000,'supplier_order'),(2,5,40,4,200,2,1,'Réception de la commande fournisseur PO2011-0004',NULL,NULL,NULL,1,'2020-11-02 12:32:44','2020-11-02 11:32:44',NULL,NULL,0.00000000,'supplier_order'),(3,5,40,4,300,1,1,'Réception de la commande fournisseur PO2011-0004',NULL,NULL,NULL,1,'2020-11-02 12:33:21','2020-11-02 11:33:21',NULL,NULL,0.00000000,'supplier_order'),(4,6,43,5,1,1,1,'Réception de la commande fournisseur PO2103-0005',NULL,NULL,NULL,1,'2021-03-08 17:24:44','2021-03-08 16:24:44',NULL,NULL,0.00000000,'supplier_order'),(5,2,21,2,1,1,8,'Réception de la commande fournisseur PO1906-0002',NULL,NULL,NULL,1,'2023-05-11 14:31:32','2023-05-11 12:31:32',NULL,NULL,0.00000000,'supplier_order'),(6,2,21,2,1,1,8,'Réception de la commande fournisseur PO1906-0002',NULL,NULL,NULL,1,'2023-05-11 14:31:32','2023-05-11 12:31:32',NULL,NULL,0.00000000,'supplier_order'),(7,2,21,2,4,1,8,'Réception de la commande fournisseur PO1906-0002',NULL,NULL,NULL,1,'2023-05-11 14:31:32','2023-05-11 12:31:32',NULL,NULL,0.00000000,'supplier_order'),(8,12,66,10,10,1,1,'Réception de la commande fournisseur PO2409-0009',NULL,NULL,NULL,1,'2024-09-18 10:35:44','2024-09-18 08:35:44',NULL,NULL,0.00000000,'supplier_order');

--
-- Table structure for table `t1zhf_receptiondet_batch_extrafields`
--

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

--
-- Dumping data for table `t1zhf_receptiondet_batch_extrafields`
--


--
-- Table structure for table `t1zhf_recruitment_recruitmentcandidature`
--

CREATE TABLE `t1zhf_recruitment_recruitmentcandidature` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `fk_recruitmentjobposition` int DEFAULT NULL,
  `ref` varchar(128) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '(PROV)',
  `description` mediumtext COLLATE utf8mb3_unicode_ci,
  `note_public` mediumtext COLLATE utf8mb3_unicode_ci,
  `note_private` mediumtext COLLATE utf8mb3_unicode_ci,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_creat` int NOT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `model_pdf` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `status` smallint NOT NULL,
  `firstname` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `lastname` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `phone` varchar(64) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_birth` date DEFAULT NULL,
  `remuneration_requested` int DEFAULT NULL,
  `remuneration_proposed` int DEFAULT NULL,
  `email_msgid` varchar(175) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email_date` datetime DEFAULT NULL,
  `fk_recruitment_origin` int DEFAULT NULL,
  `fk_user` int 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 `t1zhf_recruitment_recruitmentcandidature_fk_user_creat` (`fk_user_creat`),
  KEY `idx_recruitment_recruitmentcandidature_status` (`status`),
  CONSTRAINT `t1zhf_recruitment_recruitmentcandidature_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_recruitment_recruitmentcandidature`
--

INSERT INTO `t1zhf_recruitment_recruitmentcandidature` VALUES (1,1,1,'(PROV1)','',NULL,NULL,'2023-06-02 08:42:58','2023-06-02 06:45:06',1,NULL,NULL,NULL,3,'anne','tptp','toto@tutu.fr','',NULL,2500,2000,NULL,NULL,NULL,NULL),(2,1,1,'JOA2306-0001','',NULL,NULL,'2023-06-02 08:44:20','2023-06-02 06:44:32',1,NULL,NULL,NULL,1,'','fgnfgnf','fgnfn@fhxhx.com','',NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `t1zhf_recruitment_recruitmentcandidature_extrafields`
--

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

--
-- Dumping data for table `t1zhf_recruitment_recruitmentcandidature_extrafields`
--


--
-- Table structure for table `t1zhf_recruitment_recruitmentjobposition`
--

CREATE TABLE `t1zhf_recruitment_recruitmentjobposition` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '(PROV)',
  `entity` int NOT NULL DEFAULT '1',
  `label` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
  `qty` int NOT NULL DEFAULT '1',
  `fk_soc` int DEFAULT NULL,
  `fk_project` int DEFAULT NULL,
  `fk_user_recruiter` int DEFAULT NULL,
  `fk_user_supervisor` int DEFAULT NULL,
  `fk_establishment` int DEFAULT NULL,
  `date_planned` date DEFAULT NULL,
  `remuneration_suggested` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` mediumtext COLLATE utf8mb3_unicode_ci,
  `note_public` mediumtext COLLATE utf8mb3_unicode_ci,
  `note_private` mediumtext COLLATE utf8mb3_unicode_ci,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_creat` int NOT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `last_main_doc` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `model_pdf` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `status` smallint NOT NULL,
  `email_recruiter` varchar(255) COLLATE utf8mb3_unicode_ci 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 `t1zhf_recruitment_recruitmentjobposition_fk_user_recruiter` (`fk_user_recruiter`),
  KEY `t1zhf_recruitment_recruitmentjobposition_fk_user_supervisor` (`fk_user_supervisor`),
  KEY `t1zhf_recruitment_recruitmentjobposition_fk_establishment` (`fk_establishment`),
  KEY `t1zhf_recruitment_recruitmentjobposition_fk_user_creat` (`fk_user_creat`),
  KEY `idx_recruitment_recruitmentjobposition_status` (`status`),
  CONSTRAINT `t1zhf_recruitment_recruitmentjobposition_fk_establishment` FOREIGN KEY (`fk_establishment`) REFERENCES `t1zhf_establishment` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `t1zhf_recruitment_recruitmentjobposition_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `t1zhf_recruitment_recruitmentjobposition_fk_user_recruiter` FOREIGN KEY (`fk_user_recruiter`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `t1zhf_recruitment_recruitmentjobposition_fk_user_supervisor` FOREIGN KEY (`fk_user_supervisor`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_recruitment_recruitmentjobposition`
--

INSERT INTO `t1zhf_recruitment_recruitmentjobposition` VALUES (1,'JOB2306-0001',1,'ebavurage',1,NULL,NULL,1,NULL,NULL,NULL,'','',NULL,NULL,'2023-06-02 08:41:44','2023-06-02 06:41:52',1,NULL,NULL,NULL,NULL,1,'');

--
-- Table structure for table `t1zhf_recruitment_recruitmentjobposition_extrafields`
--

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

--
-- Dumping data for table `t1zhf_recruitment_recruitmentjobposition_extrafields`
--


--
-- Table structure for table `t1zhf_resource`
--

CREATE TABLE `t1zhf_resource` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `ref` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `asset_number` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8mb3_unicode_ci,
  `fk_code_type_resource` varchar(32) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `address` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `zip` varchar(25) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `town` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `photo_filename` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `max_users` int DEFAULT NULL,
  `phone` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `url` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_author` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `fk_user_valid` int DEFAULT NULL,
  `fk_statut` smallint NOT NULL DEFAULT '0',
  `note_public` text COLLATE utf8mb3_unicode_ci,
  `note_private` text COLLATE utf8mb3_unicode_ci,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `extraparams` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_country` int DEFAULT NULL,
  `fk_state` int 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`),
  KEY `idx_resource_fk_state` (`fk_state`),
  CONSTRAINT `fk_resource_fk_country` FOREIGN KEY (`fk_country`) REFERENCES `t1zhf_c_country` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_resource`
--


--
-- Table structure for table `t1zhf_resource_extrafields`
--

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

--
-- Dumping data for table `t1zhf_resource_extrafields`
--


--
-- Table structure for table `t1zhf_rights_def`
--

CREATE TABLE `t1zhf_rights_def` (
  `id` int NOT NULL,
  `libelle` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `module` varchar(64) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `module_origin` varchar(64) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `perms` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `subperms` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type` varchar(1) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `bydefault` tinyint DEFAULT '0',
  `enabled` text COLLATE utf8mb3_unicode_ci,
  `module_position` int NOT NULL DEFAULT '0',
  `family_position` int NOT NULL DEFAULT '0',
  `tms` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_rights_def`
--



--
-- Table structure for table `t1zhf_salary`
--

CREATE TABLE `t1zhf_salary` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `tms` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `fk_user` int 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 DEFAULT NULL,
  `datesp` date DEFAULT NULL,
  `dateep` date DEFAULT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `note` text,
  `fk_bank` int DEFAULT NULL,
  `paye` smallint NOT NULL DEFAULT '0',
  `fk_typepayment` int NOT NULL,
  `fk_account` int DEFAULT NULL,
  `fk_user_author` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `note_public` text,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `t1zhf_salary`
--


--
-- Table structure for table `t1zhf_salary_extrafields`
--

CREATE TABLE `t1zhf_salary_extrafields` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NULL DEFAULT NULL,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_salary_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_salary_extrafields`
--


--
-- Table structure for table `t1zhf_scaninvoices_filestoimport`
--

CREATE TABLE `t1zhf_scaninvoices_filestoimport` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int DEFAULT '1',
  `ref` varchar(128) NOT NULL DEFAULT '(PROV)',
  `filename` varchar(255) DEFAULT NULL,
  `sha1` varchar(40) DEFAULT NULL,
  `message` text,
  `date_creation` datetime NOT NULL,
  `date_ocr_send` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `date_ocr_return` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_supplier` int DEFAULT NULL,
  `fk_invoice` int DEFAULT NULL,
  `fk_user_creat` int NOT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `queue` smallint DEFAULT NULL,
  `status` smallint DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_scaninvoices_filestoimport_rowid` (`rowid`),
  KEY `idx_scaninvoices_filestoimport_ref` (`ref`),
  KEY `t1zhf_scaninvoices_filestoimport_fk_user_creat` (`fk_user_creat`),
  KEY `idx_scaninvoices_filestoimport_queue` (`queue`),
  KEY `idx_scaninvoices_filestoimport_status` (`status`),
  CONSTRAINT `t1zhf_scaninvoices_filestoimport_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `t1zhf_scaninvoices_filestoimport`
--

INSERT INTO `t1zhf_scaninvoices_filestoimport` VALUES (1,1,'FTI2306-0001','free.pdf','dfbf620b9e1f2c1b05bd14d0fac3af5b039d1a89',NULL,'2023-06-27 11:27:45','2023-06-27 11:27:45','2023-06-27 11:27:45','2023-06-27 09:27:45',NULL,NULL,1,NULL,'1687858065',1,1);

--
-- Table structure for table `t1zhf_scaninvoices_filestoimport_extrafields`
--

CREATE TABLE `t1zhf_scaninvoices_filestoimport_extrafields` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NULL DEFAULT NULL,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `t1zhf_scaninvoices_filestoimport_extrafields`
--


--
-- Table structure for table `t1zhf_scaninvoices_settings`
--

CREATE TABLE `t1zhf_scaninvoices_settings` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) NOT NULL DEFAULT '(PROV)',
  `label` varchar(255) DEFAULT NULL,
  `fk_soc` int DEFAULT NULL,
  `fk_default_product` int DEFAULT NULL,
  `yml` text,
  `manual_import` text,
  `note_private` text,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NULL DEFAULT NULL,
  `fk_user_creat` int NOT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` smallint NOT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_scaninvoices_settings_rowid` (`rowid`),
  KEY `idx_scaninvoices_settings_ref` (`ref`),
  KEY `idx_scaninvoices_settings_fk_soc` (`fk_soc`),
  KEY `idx_scaninvoices_settings_fk_default_product` (`fk_default_product`),
  KEY `t1zhf_scaninvoices_settings_fk_user_creat` (`fk_user_creat`),
  KEY `idx_scaninvoices_settings_status` (`status`),
  CONSTRAINT `t1zhf_scaninvoices_settings_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `t1zhf_scaninvoices_settings`
--


--
-- Table structure for table `t1zhf_scaninvoices_settings_extrafields`
--

CREATE TABLE `t1zhf_scaninvoices_settings_extrafields` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NULL DEFAULT NULL,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `t1zhf_scaninvoices_settings_extrafields`
--


--
-- Table structure for table `t1zhf_session`
--

CREATE TABLE `t1zhf_session` (
  `session_id` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `session_variable` mediumtext COLLATE utf8mb3_unicode_ci,
  `last_accessed` datetime NOT NULL,
  `fk_user` int NOT NULL,
  `remote_ip` varchar(64) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_agent` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`session_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_session`
--


--
-- Table structure for table `t1zhf_societe`
--

CREATE TABLE `t1zhf_societe` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `nom` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `name_alias` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ref_int` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `statut` tinyint DEFAULT '0',
  `parent` int DEFAULT NULL,
  `status` tinyint DEFAULT '1',
  `code_client` varchar(24) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `code_fournisseur` varchar(24) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `code_compta` varchar(24) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `code_compta_fournisseur` varchar(24) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `address` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `zip` varchar(25) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `town` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_departement` int DEFAULT '0',
  `fk_pays` int DEFAULT '0',
  `fk_account` int DEFAULT '0',
  `phone` varchar(20) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `phone_mobile` varchar(20) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fax` varchar(20) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `url` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `socialnetworks` text COLLATE utf8mb3_unicode_ci,
  `fk_effectif` int DEFAULT '0',
  `fk_typent` int DEFAULT NULL,
  `fk_forme_juridique` int DEFAULT '0',
  `fk_currency` varchar(3) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `siren` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `siret` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ape` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `idprof4` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `idprof5` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `idprof6` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `tva_intra` varchar(20) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `capital` double(24,8) DEFAULT NULL,
  `fk_stcomm` int NOT NULL DEFAULT '0',
  `note_private` text COLLATE utf8mb3_unicode_ci,
  `note_public` text COLLATE utf8mb3_unicode_ci,
  `model_pdf` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `last_main_doc` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `prefix_comm` varchar(5) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `client` tinyint DEFAULT '0',
  `fournisseur` tinyint DEFAULT '0',
  `supplier_account` varchar(32) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_prospectlevel` varchar(12) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_incoterms` int DEFAULT NULL,
  `location_incoterms` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `customer_bad` tinyint 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 DEFAULT NULL,
  `cond_reglement` tinyint DEFAULT NULL,
  `deposit_percent` varchar(63) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `transport_mode` tinyint DEFAULT NULL,
  `mode_reglement_supplier` tinyint DEFAULT NULL,
  `cond_reglement_supplier` tinyint DEFAULT NULL,
  `transport_mode_supplier` tinyint DEFAULT NULL,
  `fk_shipping_method` int DEFAULT NULL,
  `tva_assuj` tinyint DEFAULT '1',
  `vat_reverse_charge` tinyint DEFAULT '0',
  `localtax1_assuj` tinyint DEFAULT '0',
  `localtax1_value` double(6,3) DEFAULT NULL,
  `localtax2_assuj` tinyint DEFAULT '0',
  `localtax2_value` double(6,3) DEFAULT NULL,
  `barcode` varchar(180) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_barcode_type` int DEFAULT '0',
  `price_level` int 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) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `logo` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `canvas` varchar(32) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_warehouse` int DEFAULT NULL,
  `webservices_url` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `webservices_key` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `accountancy_code_sell` varchar(32) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `accountancy_code_buy` varchar(32) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `fk_user_creat` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `fk_multicurrency` int DEFAULT NULL,
  `multicurrency_code` varchar(3) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `logo_squarred` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `geolat` double(24,8) DEFAULT NULL,
  `geolong` double(24,8) DEFAULT NULL,
  `geopoint` point DEFAULT NULL,
  `georesultcode` varchar(16) COLLATE utf8mb3_unicode_ci 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_warehouse` (`fk_warehouse`),
  KEY `idx_societe_nom` (`nom`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_societe`
--

INSERT INTO `t1zhf_societe` VALUES (1,'aqtisplus','',1,NULL,NULL,0,NULL,1,'CU1901-0001','SU1901-0001',NULL,NULL,'21 rue Emile Grasset','49300','cholet',56,1,1,'0241651414',NULL,NULL,'www.aqtisplus.com','p.neveu@aqtisplus.com','[]',1,3,11,NULL,'','','','','','','FR57484266986',NULL,0,NULL,NULL,'',NULL,NULL,1,1,NULL,'',0,NULL,0,0,0,0,0,2,2,NULL,NULL,NULL,NULL,NULL,NULL,1,0,NULL,0.000,NULL,0.000,NULL,0,NULL,NULL,NULL,NULL,NULL,'logoombre.png',NULL,0,NULL,NULL,'','','2023-05-09 12:43:37','2019-01-08 10:28:22',1,1,0,'',NULL,NULL,NULL,NULL,NULL,NULL),(2,'Microsoft','Microsoft',1,NULL,NULL,0,NULL,1,'CU2105-00006','SU1901-0002',NULL,NULL,'',NULL,NULL,0,1,0,NULL,NULL,NULL,NULL,NULL,'[]',NULL,NULL,NULL,NULL,'','','','','','','',NULL,0,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',0,NULL,0,0,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,NULL,0.000,NULL,0.000,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,'2021-05-25 13:21:08','2019-01-08 11:25:33',1,1,0,'',NULL,NULL,NULL,NULL,NULL,NULL),(3,'Orange','',1,NULL,NULL,0,NULL,1,'CU1902-0002','SU2103-00006',NULL,NULL,'',NULL,NULL,0,1,0,NULL,NULL,NULL,NULL,NULL,'[]',NULL,NULL,NULL,NULL,'','','','','','','',NULL,0,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',0,NULL,0,0,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,NULL,0.000,NULL,0.000,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,'2021-03-08 15:52:20','2019-02-08 14:42:15',1,1,0,'',NULL,NULL,NULL,NULL,NULL,NULL),(4,'google','',1,NULL,NULL,0,NULL,1,'CU1902-0003','SU1907-0005',NULL,NULL,'',NULL,NULL,0,1,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','','','','','','',NULL,0,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',0,NULL,0,0,0,0,0,6,7,NULL,NULL,NULL,NULL,NULL,NULL,1,0,NULL,0.000,NULL,0.000,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,'2020-09-10 09:52:41','2019-02-08 15:27:08',1,1,0,'',NULL,NULL,NULL,NULL,NULL,NULL),(5,'Caso','',1,NULL,NULL,0,NULL,1,NULL,'SU1906-0003',NULL,NULL,'','44000','Les Sorrinières',51,1,0,'0240',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','','','','','','',NULL,0,NULL,NULL,NULL,NULL,NULL,0,1,NULL,'',0,NULL,0,0,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,NULL,0.000,NULL,0.000,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,'2019-06-24 07:14:58','2019-06-24 09:14:58',1,1,0,'',NULL,NULL,NULL,NULL,NULL,NULL),(6,'Thyssen','',1,NULL,NULL,0,NULL,1,NULL,'SU1906-0004',NULL,NULL,'',NULL,NULL,0,1,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','','','','','','',NULL,0,NULL,NULL,NULL,NULL,NULL,0,1,NULL,'',0,NULL,0,0,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,NULL,0.000,NULL,0.000,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,'2019-06-24 07:17:27','2019-06-24 09:17:27',1,1,0,'',NULL,NULL,NULL,NULL,NULL,NULL),(7,'Daniel Denis','',1,NULL,NULL,0,NULL,1,'CU2102-00004',NULL,NULL,NULL,'',NULL,NULL,0,1,0,NULL,NULL,NULL,NULL,NULL,'[]',NULL,NULL,NULL,NULL,'','','','','','','',NULL,0,NULL,NULL,NULL,NULL,NULL,1,0,NULL,'',0,NULL,0,0,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,NULL,0.000,NULL,0.000,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,'2021-02-11 13:40:09','2021-02-11 14:40:09',1,1,0,'',NULL,NULL,NULL,NULL,NULL,NULL),(8,'Forge Déco Ouest','',1,NULL,NULL,0,NULL,1,'CU2105-00005','SU2105-00007','411',NULL,'zi la bergerie\r\nrue arago','49280','la Séguinière',56,1,0,'(02)41706901',NULL,NULL,'forgedecoouest.com','contact@forgedecoouest.com','[]',NULL,NULL,NULL,NULL,'','','','','','','',NULL,0,'paye mal ...<br />\r\nDemander paiement avant envoi',NULL,'',NULL,NULL,1,1,NULL,'',0,NULL,0,0,0,0,0,2,2,NULL,NULL,7,NULL,NULL,NULL,1,0,NULL,0.000,NULL,0.000,NULL,0,NULL,NULL,NULL,NULL,NULL,'cropped-carte-forge-deco-ouest.jpg',NULL,0,NULL,NULL,NULL,NULL,'2022-02-18 14:37:35','2021-05-18 14:53:48',1,1,0,'',NULL,NULL,NULL,NULL,NULL,NULL),(9,'ELECMIC','',1,NULL,NULL,0,NULL,1,'CU2105-00007','SU2105-00008',NULL,NULL,'10 Rue de la Gâtine','49300','cholet',51,1,0,'(02)41657379',NULL,NULL,'www.elecmic.com','administratif@elecmic.com','[]',NULL,NULL,NULL,NULL,'','','','','','','',NULL,0,NULL,NULL,'',NULL,NULL,1,1,NULL,'',0,NULL,0,0,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,NULL,0.000,NULL,0.000,NULL,0,NULL,NULL,NULL,NULL,NULL,'logo.JPG',NULL,0,NULL,NULL,NULL,NULL,'2021-05-25 16:34:44','2021-05-25 18:34:10',1,1,0,'',NULL,NULL,NULL,NULL,NULL,NULL),(10,'elecma','',1,NULL,NULL,0,NULL,1,'CU2105-00008','SU2105-00009',NULL,NULL,'',NULL,NULL,0,1,0,NULL,NULL,NULL,NULL,NULL,'[]',NULL,NULL,NULL,NULL,'','','','','','','',NULL,0,NULL,NULL,'',NULL,NULL,1,1,NULL,'',0,NULL,0,0,0,0,0,NULL,NULL,NULL,NULL,7,NULL,NULL,NULL,1,0,NULL,0.000,NULL,0.000,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,'2021-05-26 13:11:38','2021-05-26 15:10:58',1,1,0,'',NULL,NULL,NULL,NULL,NULL,NULL),(11,'JCM Création','',1,NULL,NULL,0,NULL,1,'CU2107-00009','SU2107-00010',NULL,NULL,'6 Rue Armand Mayer','49300','cholet',56,1,0,'(02)41654401',NULL,NULL,NULL,NULL,'[]',NULL,NULL,NULL,NULL,'','','','','','','',NULL,0,NULL,NULL,'',NULL,NULL,1,1,NULL,'',0,NULL,0,0,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,NULL,0.000,NULL,0.000,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,'2021-07-15 08:10:10','2021-07-15 10:10:10',1,1,0,'',NULL,NULL,NULL,NULL,NULL,NULL),(12,'NSD CONCEPT','',1,NULL,NULL,0,NULL,1,'CU2305-00010','SU2305-00011',NULL,NULL,'10 Place Saint Pierre','49300','cholet',56,1,0,'0241499117',NULL,NULL,NULL,'nsd@nsdconcept.fr','[]',NULL,0,NULL,NULL,'','','','','','','',NULL,0,NULL,NULL,'',NULL,NULL,1,1,NULL,'',0,NULL,0,0,0,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,1,0,NULL,0.000,NULL,0.000,NULL,0,NULL,NULL,NULL,NULL,NULL,'logo.JPG',NULL,NULL,NULL,NULL,'','','2023-05-11 11:54:59','2023-05-09 14:47:14',1,8,0,'',NULL,NULL,NULL,NULL,NULL,NULL),(13,'Mr COUSSEAUX','',1,NULL,NULL,0,NULL,1,'CU2305-00011',NULL,NULL,NULL,'4 Promenade Wilson','85100','Les Sables d\'Olonne',92,1,0,NULL,NULL,NULL,NULL,NULL,'[]',NULL,0,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,0,NULL,0.000,NULL,0.000,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','','2023-06-28 09:30:03','2023-05-16 14:27:07',8,1,0,'',NULL,NULL,NULL,NULL,NULL,NULL),(14,'Mr Leblanc','',1,NULL,NULL,0,NULL,1,'CU2305-00012',NULL,NULL,NULL,'12 rue du stade','49300','cholet',56,1,0,NULL,NULL,NULL,NULL,NULL,'[]',NULL,0,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,0,NULL,0.000,NULL,0.000,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','','2023-05-16 12:29:37','2023-05-16 14:29:37',8,8,0,'',NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `t1zhf_societe_account`
--

CREATE TABLE `t1zhf_societe_account` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int DEFAULT '1',
  `key_account` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `login` varchar(128) COLLATE utf8mb3_unicode_ci NOT NULL,
  `pass_encoding` varchar(24) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `pass_crypted` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `pass_temp` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_soc` int DEFAULT NULL,
  `site` varchar(128) COLLATE utf8mb3_unicode_ci NOT NULL,
  `fk_website` int DEFAULT NULL,
  `note_private` text COLLATE utf8mb3_unicode_ci,
  `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 NOT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `status` int DEFAULT NULL,
  `site_account` varchar(128) COLLATE utf8mb3_unicode_ci 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 `t1zhf_societe_account_fk_societe` FOREIGN KEY (`fk_soc`) REFERENCES `t1zhf_societe` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_societe_account`
--


--
-- Table structure for table `t1zhf_societe_address`
--

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

--
-- Dumping data for table `t1zhf_societe_address`
--


--
-- Table structure for table `t1zhf_societe_commerciaux`
--

CREATE TABLE `t1zhf_societe_commerciaux` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_soc` int DEFAULT NULL,
  `fk_user` int DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_c_type_contact_code` varchar(32) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'SALESREPTHIRD',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_societe_commerciaux_c_type_contact` (`fk_soc`,`fk_user`,`fk_c_type_contact_code`),
  KEY `fk_societe_commerciaux_fk_c_type_contact_code` (`fk_c_type_contact_code`),
  KEY `fk_societe_commerciaux_fk_user` (`fk_user`),
  CONSTRAINT `fk_societe_commerciaux_fk_c_type_contact_code` FOREIGN KEY (`fk_c_type_contact_code`) REFERENCES `t1zhf_c_type_contact` (`code`),
  CONSTRAINT `fk_societe_commerciaux_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `t1zhf_societe` (`rowid`),
  CONSTRAINT `fk_societe_commerciaux_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `t1zhf_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_societe_commerciaux`
--

INSERT INTO `t1zhf_societe_commerciaux` VALUES (1,3,3,NULL,'SALESREPTHIRD'),(2,4,4,NULL,'SALESREPTHIRD');

--
-- Table structure for table `t1zhf_societe_contacts`
--

CREATE TABLE `t1zhf_societe_contacts` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `date_creation` datetime NOT NULL,
  `fk_soc` int NOT NULL,
  `fk_c_type_contact` int NOT NULL,
  `fk_socpeople` int NOT NULL,
  `tms` timestamp NULL DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci 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 `t1zhf_c_type_contact` (`rowid`),
  CONSTRAINT `fk_societe_contacts_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `t1zhf_societe` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_societe_contacts_fk_socpeople` FOREIGN KEY (`fk_socpeople`) REFERENCES `t1zhf_socpeople` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_societe_contacts`
--

INSERT INTO `t1zhf_societe_contacts` VALUES (1,1,'2021-05-18 14:56:48',8,61,5,NULL,NULL),(2,1,'2021-05-18 14:56:48',8,62,5,NULL,NULL),(3,1,'2021-05-18 14:56:48',8,60,5,NULL,NULL),(4,1,'2021-05-18 14:57:07',8,41,6,NULL,NULL);

--
-- Table structure for table `t1zhf_societe_extrafields`
--

CREATE TABLE `t1zhf_societe_extrafields` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `qten` int DEFAULT NULL,
  `s2b_bill_management` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_societe_extrafields` (`fk_object`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_societe_extrafields`
--

INSERT INTO `t1zhf_societe_extrafields` VALUES (1,'2021-02-11 13:40:09',7,NULL,NULL,NULL),(2,'2021-03-08 15:52:20',3,NULL,NULL,NULL),(5,'2021-05-25 13:21:08',2,NULL,NULL,NULL),(7,'2021-05-25 16:34:44',9,NULL,NULL,NULL),(8,'2021-05-26 13:10:58',10,NULL,NULL,NULL),(9,'2021-07-15 08:10:10',11,NULL,NULL,NULL),(10,'2022-02-18 14:37:35',8,NULL,NULL,NULL),(14,'2023-05-11 11:54:53',12,NULL,NULL,NULL),(16,'2023-05-16 12:29:37',14,NULL,NULL,NULL),(19,'2023-06-28 09:30:03',13,NULL,NULL,NULL),(20,'2024-09-09 13:22:53',1,NULL,NULL,NULL);

--
-- Table structure for table `t1zhf_societe_log`
--

CREATE TABLE `t1zhf_societe_log` (
  `id` int NOT NULL AUTO_INCREMENT,
  `datel` datetime DEFAULT NULL,
  `fk_soc` int DEFAULT NULL,
  `fk_statut` int DEFAULT NULL,
  `fk_user` int DEFAULT NULL,
  `author` varchar(30) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `label` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_societe_log`
--


--
-- Table structure for table `t1zhf_societe_perentity`
--

CREATE TABLE `t1zhf_societe_perentity` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_soc` int DEFAULT NULL,
  `entity` int 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;

--
-- Dumping data for table `t1zhf_societe_perentity`
--


--
-- Table structure for table `t1zhf_societe_prices`
--

CREATE TABLE `t1zhf_societe_prices` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_soc` int DEFAULT '0',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int DEFAULT NULL,
  `price_level` tinyint DEFAULT '1',
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_societe_prices`
--


--
-- Table structure for table `t1zhf_societe_remise`
--

CREATE TABLE `t1zhf_societe_remise` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `fk_soc` int NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int DEFAULT NULL,
  `remise_client` double(6,3) NOT NULL DEFAULT '0.000',
  `note` text COLLATE utf8mb3_unicode_ci,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_societe_remise`
--


--
-- Table structure for table `t1zhf_societe_remise_except`
--

CREATE TABLE `t1zhf_societe_remise_except` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `fk_soc` int NOT NULL,
  `discount_type` int 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 NOT NULL,
  `fk_facture_line` int DEFAULT NULL,
  `fk_facture` int DEFAULT NULL,
  `fk_facture_source` int DEFAULT NULL,
  `fk_invoice_supplier_line` int DEFAULT NULL,
  `fk_invoice_supplier` int DEFAULT NULL,
  `fk_invoice_supplier_source` int DEFAULT NULL,
  `description` text COLLATE utf8mb3_unicode_ci 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) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `multicurrency_code` varchar(3) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_societe_remise_except_fk_user` (`fk_user`),
  KEY `idx_societe_remise_except_fk_soc` (`fk_soc`),
  KEY `idx_societe_remise_except_fk_facture_line` (`fk_facture_line`),
  KEY `idx_societe_remise_except_fk_facture` (`fk_facture`),
  KEY `idx_societe_remise_except_fk_facture_source` (`fk_facture_source`),
  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 `t1zhf_facturedet` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_soc_remise_fk_invoice_supplier_line` FOREIGN KEY (`fk_invoice_supplier_line`) REFERENCES `t1zhf_facture_fourn_det` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_soc_remise_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `t1zhf_societe` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_societe_remise_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `t1zhf_facture` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_societe_remise_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `t1zhf_facture` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_societe_remise_fk_invoice_supplier` FOREIGN KEY (`fk_invoice_supplier`) REFERENCES `t1zhf_facture_fourn` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_societe_remise_fk_invoice_supplier_source` FOREIGN KEY (`fk_invoice_supplier`) REFERENCES `t1zhf_facture_fourn` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_societe_remise_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_societe_remise_except`
--


--
-- Table structure for table `t1zhf_societe_remise_supplier`
--

CREATE TABLE `t1zhf_societe_remise_supplier` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `fk_soc` int NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int DEFAULT NULL,
  `remise_supplier` double(6,3) NOT NULL DEFAULT '0.000',
  `note` text COLLATE utf8mb3_unicode_ci,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_societe_remise_supplier`
--


--
-- Table structure for table `t1zhf_socpeople`
--

CREATE TABLE `t1zhf_socpeople` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_soc` int DEFAULT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `civility` varchar(6) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `lastname` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `firstname` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `address` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `zip` varchar(25) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `town` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_departement` int DEFAULT NULL,
  `fk_pays` int DEFAULT '0',
  `birthday` date DEFAULT NULL,
  `poste` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `phone` varchar(30) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `phone_perso` varchar(30) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `phone_mobile` varchar(30) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fax` varchar(30) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `socialnetworks` text COLLATE utf8mb3_unicode_ci,
  `photo` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `no_email` smallint NOT NULL DEFAULT '0',
  `priv` smallint NOT NULL DEFAULT '0',
  `fk_prospectlevel` varchar(12) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_stcommcontact` int NOT NULL DEFAULT '0',
  `fk_user_creat` int DEFAULT '0',
  `fk_user_modif` int DEFAULT NULL,
  `note_private` text COLLATE utf8mb3_unicode_ci,
  `note_public` text COLLATE utf8mb3_unicode_ci,
  `default_lang` varchar(6) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `canvas` varchar(32) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `statut` tinyint NOT NULL DEFAULT '1',
  `geolat` double(24,8) DEFAULT NULL,
  `geolong` double(24,8) DEFAULT NULL,
  `geopoint` point DEFAULT NULL,
  `georesultcode` varchar(16) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `name_alias` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_parent` int DEFAULT NULL,
  `url` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_socpeople_fk_soc` (`fk_soc`),
  KEY `idx_socpeople_fk_user_creat` (`fk_user_creat`),
  KEY `idx_socpeople_lastname` (`lastname`),
  CONSTRAINT `fk_socpeople_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `t1zhf_societe` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_socpeople_user_creat_user_rowid` FOREIGN KEY (`fk_user_creat`) REFERENCES `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_socpeople`
--

INSERT INTO `t1zhf_socpeople` VALUES (1,'2019-01-08 10:32:13','2023-05-09 12:43:53',1,1,NULL,'MR','Neveu','Patrice','21 rue Emile Grasset','49300','cholet',56,1,'1963-07-17','responsable','','','0661598768','','p.neveu@aqtisplus.com','[]','P1000228.JPG',0,0,'',0,1,1,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(2,'2019-02-28 11:26:10','2020-06-18 14:47:05',2,1,'','','gates','bill','','','',NULL,1,NULL,'','','','','','','[]',NULL,0,0,NULL,0,1,1,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(3,'2019-06-24 09:18:30','2020-06-18 14:47:05',5,1,'','MR','Amoss','Catherine','','44000','Les Sorrinières',NULL,1,NULL,'','','','06312548','','','[]','',0,0,NULL,0,1,1,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(4,'2019-10-18 14:30:16','2021-07-19 13:55:26',4,1,'','','monsieur Google','','','','',NULL,1,NULL,'','','','','','','[]','',0,0,'',0,1,1,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(5,'2021-05-18 14:55:40','2021-05-18 12:56:48',8,1,'','MME','Vilhem','Jessica','zi la bergerie\r\nrue arago','49280','la Séguinière',56,1,NULL,'Gérante','','','(06) 86 75 12 16','','','[]','',0,0,NULL,0,1,1,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(6,'2021-05-18 14:56:09','2021-05-18 12:57:07',8,1,'','MR','Vilhem','Olivier','zi la bergerie\r\nrue arago','49280','la Séguinière',56,1,NULL,'','','','(06) 86 75 12 16','','','[]','',0,0,NULL,0,1,1,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(7,'2021-05-25 18:35:52','2021-05-25 16:35:52',9,1,'','MR','SAMOREAU','Loïc','10 Rue de la Gâtine','49300','cholet',51,1,NULL,'Responsable','','','(06) 31 31 72 39','','administratif@elecmic.com','[]',NULL,0,0,'',0,1,1,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(8,'2021-07-15 10:10:58','2021-07-15 08:18:12',11,1,'','MR','Colin','Jérome','6 Rue Armand Mayer','49300','cholet',56,1,NULL,'Responsable','','','(06) 09 91 20 31','','','[]','Capture.JPG',0,0,'',0,1,1,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(9,'2023-05-09 14:48:18','2023-05-09 12:48:18',12,1,NULL,'MR','Louenan','Thomas','10 Place Saint Pierre','49300','cholet',56,1,NULL,'Responsable','','','','','t.laouenan@nsdconcept.fr','[]',NULL,0,0,'',0,1,1,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `t1zhf_socpeople_cdav`
--

CREATE TABLE `t1zhf_socpeople_cdav` (
  `fk_object` int NOT NULL,
  `uuidext` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
  `sourceuid` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`fk_object`),
  KEY `uuidext` (`uuidext`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Storage of external UUID created by externals applications';

--
-- Dumping data for table `t1zhf_socpeople_cdav`
--


--
-- Table structure for table `t1zhf_socpeople_extrafields`
--

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

--
-- Dumping data for table `t1zhf_socpeople_extrafields`
--


--
-- Table structure for table `t1zhf_statistiques_myobject`
--

CREATE TABLE `t1zhf_statistiques_myobject` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `label` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `qty` int DEFAULT NULL,
  `status` int DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_statistiques_myobject`
--


--
-- Table structure for table `t1zhf_statistiques_myobject_extrafields`
--

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

--
-- Dumping data for table `t1zhf_statistiques_myobject_extrafields`
--


--
-- Table structure for table `t1zhf_stock_mouvement`
--

CREATE TABLE `t1zhf_stock_mouvement` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datem` datetime DEFAULT NULL,
  `fk_product` int NOT NULL,
  `batch` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `fk_entrepot` int NOT NULL,
  `value` double DEFAULT NULL,
  `price` double(24,8) DEFAULT '0.00000000',
  `type_mouvement` smallint DEFAULT NULL,
  `fk_user_author` int DEFAULT NULL,
  `label` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `inventorycode` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_origin` int DEFAULT NULL,
  `origintype` varchar(64) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `model_pdf` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_projet` int NOT NULL DEFAULT '0',
  `fk_project` int DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_stock_mouvement_fk_product` (`fk_product`),
  KEY `idx_stock_mouvement_fk_entrepot` (`fk_entrepot`)
) ENGINE=InnoDB AUTO_INCREMENT=118 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_stock_mouvement`
--

INSERT INTO `t1zhf_stock_mouvement` VALUES (1,'2019-06-24 07:57:15','2019-06-24 09:57:15',21,NULL,NULL,NULL,1,20,0.00000000,0,1,'Correction du stock pour le produit xc38_diam45','190624095705',0,'',NULL,0,NULL),(3,'2020-11-02 11:21:20','2020-11-02 12:21:20',42,NULL,NULL,NULL,1,-10,11.00000000,2,1,'Commande CO2011-0005 valid&eacute;e',NULL,5,'commande',NULL,0,NULL),(4,'2020-11-02 11:21:20','2020-11-02 12:21:20',40,NULL,NULL,NULL,1,-20,11.00000000,2,1,'Commande CO2011-0005 valid&eacute;e',NULL,5,'commande',NULL,0,NULL),(5,'2020-11-02 11:21:20','2020-11-02 12:21:20',41,NULL,NULL,NULL,1,-30,12.00000000,2,1,'Commande CO2011-0005 valid&eacute;e',NULL,5,'commande',NULL,0,NULL),(6,'2020-11-02 11:22:35','2020-11-02 12:22:35',40,NULL,NULL,NULL,1,200,0.00000000,0,1,'Correction du stock pour le produit 124_BL','201102122220',0,'',NULL,0,NULL),(7,'2020-11-02 11:23:21','2020-11-02 12:23:21',41,NULL,NULL,NULL,1,200,0.00000000,0,1,'Correction du stock pour le produit 124_RG','201102122314',0,'',NULL,0,NULL),(8,'2020-11-02 11:24:05','2020-11-02 12:24:05',42,NULL,NULL,NULL,1,200,0.00000000,0,1,'Correction du stock pour le produit 124_JAU','201102122358',0,'',NULL,0,NULL),(9,'2020-11-02 11:25:34','2020-11-02 12:25:34',42,NULL,NULL,NULL,1,-5,11.00000000,2,1,'Exp&eacute;dition SH2011-0003 valid&eacute;e',NULL,3,'shipping',NULL,0,NULL),(10,'2020-11-02 11:25:34','2020-11-02 12:25:34',40,NULL,NULL,NULL,1,-15,11.00000000,2,1,'Exp&eacute;dition SH2011-0003 valid&eacute;e',NULL,3,'shipping',NULL,0,NULL),(11,'2020-11-02 11:25:34','2020-11-02 12:25:34',41,NULL,NULL,NULL,1,-15,12.00000000,2,1,'Exp&eacute;dition SH2011-0003 valid&eacute;e',NULL,3,'shipping',NULL,0,NULL),(12,'2020-11-02 11:26:37','2020-11-02 12:26:37',42,NULL,NULL,NULL,1,-5,11.00000000,2,1,'Facture FA2011-0032 valid&eacute;e',NULL,42,'facture',NULL,0,NULL),(13,'2020-11-02 11:26:37','2020-11-02 12:26:37',40,NULL,NULL,NULL,1,-15,11.00000000,2,1,'Facture FA2011-0032 valid&eacute;e',NULL,42,'facture',NULL,0,NULL),(14,'2020-11-02 11:26:37','2020-11-02 12:26:37',41,NULL,NULL,NULL,1,-15,12.00000000,2,1,'Facture FA2011-0032 valid&eacute;e',NULL,42,'facture',NULL,0,NULL),(15,'2020-11-02 11:28:12','2020-11-02 12:28:12',30,NULL,NULL,NULL,1,1,500.00000000,3,1,'Commande PO2011-0003 approuv&eacute;e',NULL,4,'order_supplier',NULL,0,NULL),(16,'2020-11-02 11:28:34','2020-11-02 12:28:34',30,NULL,NULL,NULL,1,1,500.00000000,3,1,'Facture SI2011-0003 valid&eacute;e',NULL,3,'invoice_supplier',NULL,0,NULL),(17,'2020-11-02 11:31:09','2020-11-02 12:31:09',40,NULL,NULL,NULL,1,1000,10.00000000,3,1,'Commande PO2011-0004 approuv&eacute;e',NULL,5,'order_supplier',NULL,0,NULL),(18,'2020-11-02 11:32:44','2020-11-02 12:32:44',40,NULL,NULL,NULL,1,500,10.00000000,3,1,'Réception de la commande fournisseur PO2011-0004',NULL,5,'order_supplier',NULL,0,NULL),(20,'2020-11-02 11:33:21','2020-11-02 12:33:21',40,NULL,NULL,NULL,1,300,10.00000000,3,1,'Réception de la commande fournisseur PO2011-0004',NULL,5,'order_supplier',NULL,0,NULL),(21,'2020-11-02 11:34:56','2020-11-02 12:34:56',42,NULL,NULL,NULL,1,-5,11.00000000,2,1,'Exp&eacute;dition SH2011-0004 valid&eacute;e',NULL,4,'shipping',NULL,0,NULL),(22,'2020-11-02 11:34:56','2020-11-02 12:34:56',40,NULL,NULL,NULL,1,-5,11.00000000,2,1,'Exp&eacute;dition SH2011-0004 valid&eacute;e',NULL,4,'shipping',NULL,0,NULL),(23,'2020-11-02 11:34:56','2020-11-02 12:34:56',41,NULL,NULL,NULL,1,-15,12.00000000,2,1,'Exp&eacute;dition SH2011-0004 valid&eacute;e',NULL,4,'shipping',NULL,0,NULL),(24,'2021-02-11 13:53:01','2021-02-11 14:53:01',5,NULL,NULL,NULL,1,-1,300.00000000,2,1,'Facture FA2102-0033 valid&eacute;e',NULL,43,'facture',NULL,0,NULL),(25,'2021-02-11 13:53:01','2021-02-11 14:53:01',22,NULL,NULL,NULL,1,-10,2.00000000,2,1,'Facture FA2102-0033 valid&eacute;e',NULL,43,'facture',NULL,0,NULL),(26,'2021-02-11 14:22:44','2021-02-11 15:22:44',26,NULL,NULL,NULL,1,5,0.00000000,3,1,'Facture SI2102-0004 valid&eacute;e',NULL,4,'invoice_supplier',NULL,0,NULL),(27,'2021-02-11 14:23:59','2021-02-11 15:23:59',26,NULL,NULL,NULL,1,-5,0.00000000,2,1,'Facture SI2102-0004 repass&eacute;e en brouillon',NULL,4,'invoice_supplier',NULL,0,NULL),(28,'2021-02-11 14:24:19','2021-02-11 15:24:19',26,NULL,NULL,NULL,1,5,10.00000000,3,1,'Facture SI2102-0004 valid&eacute;e',NULL,4,'invoice_supplier',NULL,0,NULL),(29,'2021-03-08 16:22:21','2021-03-08 17:22:21',43,NULL,NULL,NULL,1,-1,1500.00000000,2,1,'Commande CO2103-0006 valid&eacute;e',NULL,6,'commande',NULL,9,NULL),(30,'2021-03-08 16:24:02','2021-03-08 17:24:02',43,NULL,NULL,NULL,1,1,500.00000000,3,1,'Commande PO2103-0005 approuv&eacute;e',NULL,6,'order_supplier',NULL,9,NULL),(31,'2021-03-08 16:24:44','2021-03-08 17:24:44',43,NULL,NULL,NULL,1,1,500.00000000,3,1,'Réception de la commande fournisseur PO2103-0005',NULL,6,'order_supplier',NULL,9,NULL),(32,'2021-03-08 16:26:40','2021-03-08 17:26:40',43,NULL,NULL,NULL,1,-1,1500.00000000,2,1,'Facture FA2103-0034 valid&eacute;e',NULL,44,'facture',NULL,9,NULL),(34,'2021-03-24 10:38:22','2021-03-24 11:38:22',30,NULL,NULL,NULL,1,-12,5.00000000,2,1,'Commande CO2103-0007 valid&eacute;e',NULL,7,'commande',NULL,0,NULL),(35,'2021-03-24 10:38:22','2021-03-24 11:38:22',41,NULL,NULL,NULL,1,-1,7.00000000,2,1,'Commande CO2103-0007 valid&eacute;e',NULL,7,'commande',NULL,0,NULL),(36,'2021-03-24 10:39:14','2021-03-24 11:39:14',30,NULL,NULL,NULL,1,12,0.00000000,3,1,'Commande CO2103-0007 repass&eacute;e en brouillon',NULL,7,'commande',NULL,0,NULL),(37,'2021-03-24 10:39:14','2021-03-24 11:39:14',41,NULL,NULL,NULL,1,1,0.00000000,3,1,'Commande CO2103-0007 repass&eacute;e en brouillon',NULL,7,'commande',NULL,0,NULL),(38,'2021-03-24 10:40:27','2021-03-24 11:40:27',30,NULL,NULL,NULL,1,-12,10.00000000,2,1,'Commande CO2103-0007 valid&eacute;e',NULL,7,'commande',NULL,0,NULL),(39,'2021-03-24 10:40:27','2021-03-24 11:40:27',41,NULL,NULL,NULL,1,-1,7.00000000,2,1,'Commande CO2103-0007 valid&eacute;e',NULL,7,'commande',NULL,0,NULL),(40,'2021-03-24 10:45:09','2021-03-24 11:45:09',30,NULL,NULL,NULL,1,-5,10.00000000,2,1,'Exp&eacute;dition SH2103-0005 valid&eacute;e',NULL,5,'shipping',NULL,0,NULL),(41,'2021-03-24 10:55:24','2021-03-24 11:55:24',30,NULL,NULL,NULL,1,-12,10.00000000,2,1,'Facture FA2103-0035 valid&eacute;e',NULL,45,'facture',NULL,0,NULL),(42,'2021-03-24 10:55:24','2021-03-24 11:55:24',41,NULL,NULL,NULL,1,-1,7.00000000,2,1,'Facture FA2103-0035 valid&eacute;e',NULL,45,'facture',NULL,0,NULL),(43,'2021-05-18 12:59:45','2021-05-18 14:59:45',40,NULL,NULL,NULL,1,-2145,10.00000000,1,1,'Transfert de stock 2021-05-18 14:59','20210518145943',0,'',NULL,0,NULL),(45,'2021-05-18 12:59:45','2021-05-18 14:59:45',42,NULL,NULL,NULL,1,-175,0.00000000,1,1,'Transfert de stock 2021-05-18 14:59','20210518145943',0,'',NULL,0,NULL),(48,'2021-05-18 13:01:33','2021-05-18 15:01:33',40,NULL,NULL,NULL,1,2145,10.00000000,0,1,'Transfert de stock 2021-05-18 15:01','20210518150127',0,'',NULL,0,NULL),(50,'2021-05-18 13:01:33','2021-05-18 15:01:33',42,NULL,NULL,NULL,1,175,0.00000000,0,1,'Transfert de stock 2021-05-18 15:01','20210518150127',0,'',NULL,0,NULL),(52,'2021-05-18 13:01:33','2021-05-18 15:01:33',41,NULL,NULL,NULL,1,123,0.00000000,0,1,'Transfert de stock 2021-05-18 15:01','20210518150127',0,'',NULL,0,NULL),(54,'2021-05-18 13:01:33','2021-05-18 15:01:33',25,NULL,NULL,NULL,1,1000,0.00000000,0,1,'Transfert de stock 2021-05-18 15:01','20210518150127',0,'',NULL,0,NULL),(56,'2021-05-18 13:01:33','2021-05-18 15:01:33',26,NULL,NULL,NULL,1,5,10.00000000,0,1,'Transfert de stock 2021-05-18 15:01','20210518150127',0,'',NULL,0,NULL),(58,'2021-05-18 13:02:17','2021-05-18 15:02:17',21,NULL,NULL,NULL,1,20,0.00000000,0,1,'Transfert de stock 2021-05-18 15:02','20210518150216',0,'',NULL,0,NULL),(59,'2023-04-25 09:32:49','2023-04-25 11:32:49',25,NULL,NULL,NULL,1,-1,132.00000000,2,1,'Exp&eacute;dition SH2304-0011 valid&eacute;e',NULL,11,'shipping',NULL,0,NULL),(60,'2023-05-11 12:31:32','2023-05-11 14:31:32',21,NULL,NULL,NULL,1,1,1.42000000,3,8,'Réception de la commande fournisseur PO1906-0002','20230511143132',2,'order_supplier',NULL,0,NULL),(61,'2023-05-11 12:31:32','2023-05-11 14:31:32',21,NULL,NULL,NULL,1,1,1.42000000,3,8,'Réception de la commande fournisseur PO1906-0002','20230511143132',2,'order_supplier',NULL,0,NULL),(62,'2023-05-11 12:31:32','2023-05-11 14:31:32',21,NULL,NULL,NULL,1,4,1.42000000,3,8,'Réception de la commande fournisseur PO1906-0002','20230511143132',2,'order_supplier',NULL,0,NULL),(63,'2023-05-30 16:27:48','2023-05-30 18:27:48',4,NULL,NULL,NULL,1,20,0.00000000,0,1,'Correction du stock pour le produit r1','20230530182736',0,'',NULL,0,NULL),(64,'2023-05-30 16:29:13','2023-05-30 18:29:13',59,NULL,NULL,NULL,1,40,0.00000000,0,1,'Correction du stock pour le produit c1','20230530182906',0,'',NULL,0,NULL),(65,'2023-05-30 16:31:06','2023-05-30 18:31:06',5,NULL,NULL,NULL,1,5,0.00000000,0,1,'Correction du stock pour le produit velo','20230530183101',0,'',NULL,0,NULL),(66,'2023-05-30 16:35:01','2023-05-30 18:35:01',5,NULL,NULL,NULL,1,-1,300.00000000,2,1,'Exp&eacute;dition SH2305-0012 valid&eacute;e',NULL,12,'shipping',NULL,0,NULL),(67,'2023-05-30 16:37:35','2023-05-30 18:37:35',4,NULL,NULL,NULL,1,-2,0.00000000,2,1,'Production de MO2305-0001','20230530183728',1,'mo',NULL,0,NULL),(68,'2023-05-30 16:37:36','2023-05-30 18:37:36',59,NULL,NULL,NULL,1,-1,0.00000000,2,1,'Production de MO2305-0001','20230530183728',1,'mo',NULL,0,NULL),(69,'2023-05-30 16:37:36','2023-05-30 18:37:36',5,NULL,NULL,NULL,1,1,70.00000000,3,1,'Production de MO2305-0001','20230530183728',1,'mo',NULL,0,NULL),(70,'2023-05-30 16:43:02','2023-05-30 18:43:02',5,NULL,NULL,NULL,1,-1,300.00000000,2,1,'Exp&eacute;dition SH2305-0013 valid&eacute;e',NULL,13,'shipping',NULL,0,NULL),(71,'2023-05-30 17:00:57','2023-05-30 19:00:57',4,NULL,NULL,NULL,1,-10,0.00000000,2,1,'Production de MO2305-0002','20230530190033',2,'mo',NULL,0,NULL),(72,'2023-05-30 17:00:57','2023-05-30 19:00:57',59,NULL,NULL,NULL,1,-5,0.00000000,2,1,'Production de MO2305-0002','20230530190033',2,'mo',NULL,0,NULL),(73,'2023-05-30 17:01:38','2023-05-30 19:01:38',4,NULL,NULL,NULL,1,-10,0.00000000,2,1,'Production de MO2305-0002','20230530190131',2,'mo',NULL,0,NULL),(74,'2023-05-30 17:01:38','2023-05-30 19:01:38',59,NULL,NULL,NULL,1,-5,0.00000000,2,1,'Production de MO2305-0002','20230530190131',2,'mo',NULL,0,NULL),(75,'2023-05-30 17:01:38','2023-05-30 19:01:38',5,NULL,NULL,NULL,1,10,70.00000000,3,1,'Production de MO2305-0002','20230530190131',2,'mo',NULL,0,NULL),(76,'2023-06-28 09:36:21','2023-06-28 11:36:21',39,NULL,NULL,NULL,1,-1,1.00000000,2,1,'Facture FA2306-0052 valid&eacute;e depuis le Point de Vente',NULL,0,'',NULL,0,NULL),(77,'2023-09-14 14:52:54','2023-09-14 16:52:54',59,NULL,NULL,NULL,1,-3,10.00000000,2,1,'Facture FA2309-0053 valid&eacute;e depuis le Point de Vente',NULL,0,'',NULL,0,NULL),(78,'2024-09-18 08:26:46','2024-09-18 10:26:46',1,NULL,NULL,NULL,1,100,0.00000000,0,1,'Correction du stock pour le produit MO1','20240918102628',0,'',NULL,0,NULL),(79,'2024-09-18 08:35:44','2024-09-18 10:35:44',66,NULL,NULL,NULL,1,10,12.45000000,3,1,'Réception de la commande fournisseur PO2409-0009','20240918103544',12,'order_supplier',NULL,0,NULL),(80,'2024-09-18 08:36:11','2024-09-18 10:36:11',66,NULL,NULL,NULL,1,-10,12.45000000,2,1,'Réception de la commande fournisseur PO2409-0009',NULL,12,'order_supplier',NULL,0,NULL),(81,'2024-09-18 08:36:11','2024-09-18 10:36:11',66,NULL,NULL,NULL,1,10,12.45000000,3,1,'Réception de la commande fournisseur PO2409-0009',NULL,12,'order_supplier',NULL,0,NULL),(82,'2024-09-18 09:39:33','2024-09-18 11:39:33',69,NULL,NULL,NULL,1,-1,110.00000000,2,1,'Facture FA2409-0058 valid&eacute;e',NULL,69,'facture',NULL,0,NULL),(83,'2024-09-18 09:49:09','2024-09-18 11:49:09',69,NULL,NULL,NULL,1,10,0.00000000,0,1,'Correction du stock pour le produit meuble_cuisine','20240918114834',0,'',NULL,3,NULL),(84,'2024-09-18 09:50:22','2024-09-18 11:50:22',69,NULL,NULL,NULL,1,10,0.00000000,0,1,'Correction du stock pour le produit meuble_cuisine','20240918115011',0,'',NULL,12,NULL),(85,'2024-09-18 10:09:15','2024-09-18 12:09:15',69,NULL,NULL,NULL,1,-2,110.00000000,2,1,'Exp&eacute;dition SH2409-0016 valid&eacute;e',NULL,19,'shipping',NULL,0,NULL),(86,'2024-09-18 10:24:33','2024-09-18 12:24:33',4,NULL,NULL,NULL,1,20,0.00000000,0,1,'Correction du stock pour le produit r1','20240918122426',0,'',NULL,0,NULL),(87,'2024-09-18 10:26:57','2024-09-18 12:26:57',22,NULL,NULL,NULL,1,-40,0.00000000,2,1,'Utilisation via Ordre de Fabrication OF00001',NULL,0,'',NULL,0,NULL),(88,'2024-09-18 10:27:06','2024-09-18 12:27:06',4,NULL,NULL,NULL,1,2,0.00000000,3,1,'Cr&eacute;ation via Ordre de Fabrication OF00001',NULL,0,'',NULL,0,NULL),(89,'2024-09-18 10:30:41','2024-09-18 12:30:41',59,NULL,NULL,NULL,1,-3,0.00000000,2,1,'Utilisation via Ordre de Fabrication OF00002',NULL,0,'',NULL,0,NULL),(90,'2024-09-18 10:30:41','2024-09-18 12:30:41',66,NULL,NULL,NULL,1,-1.5,0.00000000,2,1,'Utilisation via Ordre de Fabrication OF00002',NULL,0,'',NULL,0,NULL),(91,'2024-09-18 10:30:46','2024-09-18 12:30:46',69,NULL,NULL,NULL,1,3,47.89000000,3,1,'Cr&eacute;ation via Ordre de Fabrication OF00002',NULL,0,'',NULL,0,NULL),(92,'2024-09-18 16:42:18','2024-09-18 18:42:18',24,NULL,NULL,NULL,1,10,0.00000000,0,1,'Correction du stock pour le produit HES52','20240918184210',0,'',NULL,0,NULL),(93,'2024-09-18 16:42:57','2024-09-18 18:42:57',25,NULL,NULL,NULL,1,-1,0.00000000,2,1,'Utilisation via Ordre de Fabrication OF00003',NULL,0,'',NULL,0,NULL),(94,'2024-09-18 16:42:57','2024-09-18 18:42:57',28,NULL,NULL,NULL,1,-1,0.00000000,2,1,'Utilisation via Ordre de Fabrication OF00003',NULL,0,'',NULL,0,NULL),(95,'2024-09-18 16:43:01','2024-09-18 18:43:01',24,NULL,NULL,NULL,1,1,121.00000000,3,1,'Cr&eacute;ation via Ordre de Fabrication OF00003',NULL,0,'',NULL,0,NULL),(96,'2024-09-18 16:44:16','2024-09-18 18:44:16',24,NULL,NULL,NULL,1,-1,13.31000000,2,1,'Exp&eacute;dition SH2409-0017 valid&eacute;e',NULL,20,'shipping',NULL,0,NULL),(97,'2024-09-23 14:20:34','2024-09-23 16:20:34',5,NULL,NULL,NULL,1,100,0.00000000,0,1,'Correction du stock pour le produit velo','20240923162027',0,'',NULL,0,NULL),(98,'2024-09-23 14:29:48','2024-09-23 16:29:48',26,NULL,NULL,NULL,1,-10,0.00000000,2,1,'Exp&eacute;dition SH2409-0018 valid&eacute;e',NULL,21,'shipping',NULL,0,NULL),(99,'2024-09-23 14:38:11','2024-09-23 16:38:11',30,NULL,NULL,NULL,1,3,0.00000000,3,1,'Cr&eacute;ation via Ordre de Fabrication OF00007',NULL,0,'',NULL,0,NULL),(100,'2024-09-23 14:38:50','2024-09-23 16:38:50',3,NULL,NULL,NULL,1,-3,0.00000000,2,1,'Utilisation via Ordre de Fabrication OF00005',NULL,0,'',NULL,0,NULL),(101,'2024-09-23 14:38:50','2024-09-23 16:38:50',4,NULL,NULL,NULL,1,-6,0.00000000,2,1,'Utilisation via Ordre de Fabrication OF00005',NULL,0,'',NULL,0,NULL),(102,'2024-09-23 14:38:50','2024-09-23 16:38:50',30,NULL,NULL,NULL,1,-3,0.00000000,2,1,'Utilisation via Ordre de Fabrication OF00005',NULL,0,'',NULL,0,NULL),(103,'2024-09-23 14:38:55','2024-09-23 16:38:55',3,NULL,NULL,NULL,1,3,0.00000000,3,1,'Cr&eacute;ation via Ordre de Fabrication OF00006',NULL,0,'',NULL,0,NULL),(104,'2024-09-23 14:38:55','2024-09-23 16:38:55',5,NULL,NULL,NULL,1,3,675.00000000,3,1,'Cr&eacute;ation via Ordre de Fabrication OF00005',NULL,0,'',NULL,0,NULL),(105,'2024-09-23 14:42:55','2024-09-23 16:42:55',23,NULL,NULL,NULL,1,-200,0.00000000,2,1,'Utilisation via Ordre de Fabrication OF00010',NULL,0,'',NULL,0,NULL),(106,'2024-09-23 14:42:57','2024-09-23 16:42:57',22,NULL,NULL,NULL,1,-200,0.00000000,2,1,'Utilisation via Ordre de Fabrication OF00008',NULL,0,'',NULL,0,NULL),(107,'2024-09-23 14:43:12','2024-09-23 16:43:12',23,NULL,NULL,NULL,1,200,0.00000000,3,1,'Cr&eacute;ation via Ordre de Fabrication OF00009',NULL,0,'',NULL,0,NULL),(108,'2024-09-23 14:43:12','2024-09-23 16:43:12',22,NULL,NULL,NULL,1,200,0.00000000,3,1,'Cr&eacute;ation via Ordre de Fabrication OF00010',NULL,0,'',NULL,0,NULL),(109,'2024-09-23 14:43:14','2024-09-23 16:43:14',4,NULL,NULL,NULL,1,10,0.00000000,3,1,'Cr&eacute;ation via Ordre de Fabrication OF00008',NULL,0,'',NULL,0,NULL),(110,'2024-09-23 16:38:12','2024-09-23 18:38:12',59,NULL,NULL,NULL,1,-2,0.00000000,2,1,'Utilisation via Ordre de Fabrication OF00011',NULL,0,'',NULL,0,NULL),(111,'2024-09-23 16:38:12','2024-09-23 18:38:12',66,NULL,NULL,NULL,1,-1,0.00000000,2,1,'Utilisation via Ordre de Fabrication OF00011',NULL,0,'',NULL,0,NULL),(112,'2024-09-23 16:38:17','2024-09-23 18:38:17',69,NULL,NULL,NULL,1,2,56.23000000,3,1,'Cr&eacute;ation via Ordre de Fabrication OF00011',NULL,0,'',NULL,0,NULL),(113,'2024-09-23 17:00:55','2024-09-23 19:00:55',4,NULL,NULL,NULL,1,-6,0.00000000,2,1,'Production de MO2409-0003','20240923190052',3,'mo',NULL,0,NULL),(114,'2024-09-23 17:00:55','2024-09-23 19:00:55',59,NULL,NULL,NULL,1,-3,0.00000000,2,1,'Production de MO2409-0003','20240923190052',3,'mo',NULL,0,NULL),(115,'2024-09-23 17:00:55','2024-09-23 19:00:55',5,NULL,NULL,NULL,1,3,70.00000000,3,1,'Production de MO2409-0003','20240923190052',3,'mo',NULL,0,NULL),(116,'2024-09-23 17:15:03','2024-09-23 19:15:03',70,NULL,NULL,NULL,1,10,0.00000000,3,1,'Cr&eacute;ation via Ordre de Fabrication OF00013',NULL,0,'',NULL,0,NULL),(117,'2024-09-23 17:15:33','2024-09-23 19:15:33',70,NULL,NULL,NULL,1,-10,0.00000000,2,1,'Exp&eacute;dition SH2409-0019 valid&eacute;e',NULL,22,'shipping',NULL,0,NULL);

--
-- Table structure for table `t1zhf_stock_mouvement_extrafields`
--

CREATE TABLE `t1zhf_stock_mouvement_extrafields` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_stock_mouvement_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `t1zhf_stock_mouvement_extrafields`
--


--
-- Table structure for table `t1zhf_subscription`
--

CREATE TABLE `t1zhf_subscription` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `fk_adherent` int DEFAULT NULL,
  `dateadh` datetime DEFAULT NULL,
  `datef` datetime DEFAULT NULL,
  `subscription` double(24,8) DEFAULT NULL,
  `fk_bank` int DEFAULT NULL,
  `note` text COLLATE utf8mb3_unicode_ci,
  `fk_type` int DEFAULT NULL,
  `fk_user_creat` int DEFAULT NULL,
  `fk_user_valid` int DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_subscription` (`fk_adherent`,`dateadh`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_subscription`
--


--
-- Table structure for table `t1zhf_supplier_proposal`
--

CREATE TABLE `t1zhf_supplier_proposal` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) COLLATE utf8mb3_unicode_ci NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ref_int` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_soc` int DEFAULT NULL,
  `fk_projet` int 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 DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `fk_user_valid` int DEFAULT NULL,
  `fk_user_cloture` int DEFAULT NULL,
  `fk_statut` smallint 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 DEFAULT NULL,
  `fk_currency` varchar(3) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_cond_reglement` int DEFAULT NULL,
  `fk_mode_reglement` int DEFAULT NULL,
  `note_private` text COLLATE utf8mb3_unicode_ci,
  `note_public` text COLLATE utf8mb3_unicode_ci,
  `model_pdf` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `last_main_doc` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `date_livraison` date DEFAULT NULL,
  `fk_shipping_method` int DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `extraparams` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_multicurrency` int DEFAULT NULL,
  `multicurrency_code` varchar(3) COLLATE utf8mb3_unicode_ci 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_supplier_proposal_ref` (`ref`,`entity`),
  KEY `idx_supplier_proposal_fk_soc` (`fk_soc`),
  KEY `idx_supplier_proposal_fk_user_author` (`fk_user_author`),
  KEY `idx_supplier_proposal_fk_user_valid` (`fk_user_valid`),
  KEY `idx_supplier_proposal_fk_projet` (`fk_projet`),
  KEY `idx_supplier_proposal_fk_account` (`fk_account`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_supplier_proposal`
--

INSERT INTO `t1zhf_supplier_proposal` VALUES (1,'RQ1906-0001',1,NULL,NULL,5,6,'2019-06-24 07:37:39','2019-06-24 09:30:38','2019-06-24 09:33:09','2019-06-24 09:37:39',1,NULL,1,1,2,0,NULL,NULL,0,8.70000000,1.74000000,0.00000000,0.00000000,10.44000000,NULL,NULL,2,7,'','','aurore',NULL,'2019-06-25',2,NULL,NULL,0,'EUR',1.00000000,8.70000000,1.74000000,10.44000000),(2,'RQ1906-0002',1,NULL,NULL,6,6,'2019-06-24 07:37:23','2019-06-24 09:34:10','2019-06-24 09:34:24','2019-06-24 09:37:23',1,NULL,1,1,3,0,NULL,NULL,0,8.70000000,1.74000000,0.00000000,0.00000000,10.44000000,NULL,NULL,NULL,NULL,'trop cher','','aurore',NULL,'2019-06-25',2,NULL,NULL,0,'EUR',1.00000000,8.70000000,1.74000000,10.44000000),(3,'RQ1906-0003',1,NULL,NULL,5,3,'2019-06-24 07:59:47','2019-06-24 09:57:53','2019-06-24 09:58:42','2019-06-24 09:59:47',1,NULL,1,1,2,0,NULL,NULL,0,12.50000000,2.50000000,0.00000000,0.00000000,15.00000000,NULL,NULL,NULL,NULL,'à 1.20','','aurore',NULL,NULL,NULL,NULL,NULL,0,'EUR',1.00000000,12.50000000,2.50000000,15.00000000),(4,'(PROV4)',1,NULL,NULL,5,NULL,'2021-05-25 14:12:13','2021-05-25 16:12:13',NULL,NULL,1,NULL,NULL,NULL,0,0,NULL,NULL,0,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL,'','','aurore',NULL,NULL,NULL,NULL,NULL,0,'EUR',1.00000000,0.00000000,0.00000000,0.00000000),(5,'(PROV5)',1,NULL,NULL,5,10,'2021-05-25 14:12:39','2021-05-25 16:12:39',NULL,NULL,1,NULL,NULL,NULL,0,0,NULL,NULL,0,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL,'','','aurore',NULL,NULL,NULL,NULL,NULL,0,'EUR',1.00000000,0.00000000,0.00000000,0.00000000),(6,'(PROV6)',1,NULL,NULL,5,NULL,'2021-05-25 14:13:31','2021-05-25 16:13:31',NULL,NULL,1,NULL,NULL,NULL,0,0,NULL,NULL,0,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL,'','','aurore',NULL,NULL,NULL,NULL,NULL,0,'EUR',1.00000000,0.00000000,0.00000000,0.00000000),(7,'RQ2105-0004',1,NULL,NULL,6,NULL,'2021-05-25 14:25:07','2021-05-25 16:22:50','2021-05-25 16:22:58','2021-05-25 16:25:07',1,NULL,1,1,2,0,NULL,NULL,0,8.70000000,1.74000000,0.00000000,0.00000000,10.44000000,NULL,NULL,NULL,NULL,'','','aurore',NULL,'2019-06-25',2,NULL,NULL,0,'EUR',1.00000000,8.70000000,1.74000000,10.44000000),(8,'RQ2105-0005',1,NULL,NULL,5,NULL,'2021-05-25 14:24:44','2021-05-25 16:24:11','2021-05-25 16:24:16','2021-05-25 16:24:44',1,NULL,1,1,3,0,NULL,NULL,0,8.70000000,1.74000000,0.00000000,0.00000000,10.44000000,NULL,NULL,NULL,NULL,'trop cher','','aurore',NULL,'2019-06-25',2,NULL,NULL,0,'EUR',1.00000000,8.70000000,1.74000000,10.44000000),(9,'RQ2105-0006',1,NULL,NULL,4,NULL,'2021-05-25 16:31:48','2021-05-25 18:30:56','2021-05-25 18:31:48',NULL,1,NULL,1,NULL,1,0,NULL,NULL,0,100.00000000,20.00000000,0.00000000,0.00000000,120.00000000,NULL,NULL,NULL,NULL,'','','aurore',NULL,NULL,NULL,NULL,NULL,0,'EUR',1.00000000,100.00000000,20.00000000,120.00000000),(10,'(PROV10)',1,NULL,NULL,5,NULL,'2021-05-25 16:32:18','2021-05-25 18:32:04',NULL,NULL,1,NULL,NULL,NULL,0,0,NULL,NULL,0,101.00000000,20.20000000,0.00000000,0.00000000,121.20000000,NULL,NULL,NULL,NULL,'','','aurore',NULL,NULL,NULL,NULL,NULL,0,'EUR',1.00000000,101.00000000,20.20000000,121.20000000),(11,'(PROV11)',1,NULL,NULL,5,NULL,'2021-05-25 16:46:10','2021-05-25 18:46:10',NULL,NULL,1,NULL,NULL,NULL,0,0,NULL,NULL,0,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL,'','','aurore',NULL,NULL,NULL,NULL,NULL,0,'EUR',1.00000000,0.00000000,0.00000000,0.00000000);

--
-- Table structure for table `t1zhf_supplier_proposal_extrafields`
--

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

--
-- Dumping data for table `t1zhf_supplier_proposal_extrafields`
--


--
-- Table structure for table `t1zhf_supplier_proposaldet`
--

CREATE TABLE `t1zhf_supplier_proposaldet` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_supplier_proposal` int NOT NULL,
  `fk_parent_line` int DEFAULT NULL,
  `fk_product` int DEFAULT NULL,
  `label` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8mb3_unicode_ci,
  `fk_remise_except` int DEFAULT NULL,
  `vat_src_code` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `tva_tx` double(6,3) DEFAULT '0.000',
  `localtax1_tx` double(6,3) DEFAULT '0.000',
  `localtax1_type` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT '0.000',
  `localtax2_type` varchar(10) COLLATE utf8mb3_unicode_ci 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 DEFAULT '0',
  `info_bits` int DEFAULT '0',
  `buy_price_ht` double(24,8) DEFAULT '0.00000000',
  `fk_product_fournisseur_price` int DEFAULT NULL,
  `special_code` int DEFAULT '0',
  `rang` int DEFAULT '0',
  `ref_fourn` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_multicurrency` int DEFAULT NULL,
  `multicurrency_code` varchar(3) COLLATE utf8mb3_unicode_ci 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 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 `t1zhf_supplier_proposal` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_supplier_proposaldet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `t1zhf_c_units` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_supplier_proposaldet`
--

INSERT INTO `t1zhf_supplier_proposaldet` VALUES (1,1,NULL,21,'xc38 diam45','xc38 diam45<br />\r\nen &eacute;tir&eacute; 6 m coup&eacute;',NULL,'',20.000,0.000,'0',0.000,'0',6,0,0,NULL,1.45000000,8.70000000,1.74000000,0.00000000,0.00000000,10.44000000,0,0,1.45000000,6,0,1,'123456',NULL,'EUR',1.45000000,8.70000000,1.74000000,10.44000000,NULL,NULL,NULL),(2,2,NULL,21,'xc38 diam45','xc38 diam45<br />\r\nen &eacute;tir&eacute; 6 m coup&eacute;',NULL,'',20.000,0.000,'0',0.000,'0',6,0,0,NULL,1.45000000,8.70000000,1.74000000,0.00000000,0.00000000,10.44000000,0,0,1.45000000,6,0,1,'123456',NULL,'EUR',1.45000000,8.70000000,1.74000000,10.44000000,NULL,NULL,NULL),(3,3,NULL,NULL,NULL,'XC48 diam 60<br />\r\nBarre de 6m',NULL,'',20.000,0.000,'0',0.000,'0',10,0,0,NULL,1.25000000,12.50000000,2.50000000,0.00000000,0.00000000,15.00000000,0,0,1.25000000,NULL,0,1,'',NULL,'EUR',1.25000000,12.50000000,2.50000000,15.00000000,1,NULL,NULL),(4,7,NULL,21,'xc38 diam45','xc38 diam45<br />\r\nen &eacute;tir&eacute; 6 m coup&eacute;',NULL,'',20.000,0.000,'0',0.000,'0',6,0,0,NULL,1.45000000,8.70000000,1.74000000,0.00000000,0.00000000,10.44000000,0,0,1.45000000,6,0,1,'123456',NULL,'EUR',1.45000000,8.70000000,1.74000000,10.44000000,NULL,NULL,NULL),(5,8,NULL,21,'xc38 diam45','xc38 diam45<br />\r\nen &eacute;tir&eacute; 6 m coup&eacute;',NULL,'',20.000,0.000,'0',0.000,'0',6,0,0,NULL,1.45000000,8.70000000,1.74000000,0.00000000,0.00000000,10.44000000,0,0,1.45000000,6,0,1,'123456',NULL,'EUR',1.45000000,8.70000000,1.74000000,10.44000000,NULL,NULL,NULL),(6,9,NULL,21,'xc38 diam45','xc38 diam45<br />\r\nen &eacute;tir&eacute; 6 m coup&eacute;',NULL,'',20.000,0.000,'0',0.000,'0',1,0,0,NULL,100.00000000,100.00000000,20.00000000,0.00000000,0.00000000,120.00000000,0,0,100.00000000,NULL,0,1,'',NULL,'EUR',100.00000000,100.00000000,20.00000000,120.00000000,6,NULL,NULL),(7,10,NULL,21,'xc38 diam45','xc38 diam45<br />\r\nen &eacute;tir&eacute; 6 m coup&eacute;',NULL,'',20.000,0.000,'0',0.000,'0',1,0,0,NULL,100.00000000,100.00000000,20.00000000,0.00000000,0.00000000,120.00000000,0,0,100.00000000,NULL,0,1,'',NULL,'EUR',100.00000000,100.00000000,20.00000000,120.00000000,6,NULL,NULL),(8,10,NULL,44,'Matiere','',NULL,'',20.000,0.000,'0',0.000,'0',1,0,0,NULL,1.00000000,1.00000000,0.20000000,0.00000000,0.00000000,1.20000000,0,0,1.00000000,15,0,2,'Matière',NULL,'EUR',1.00000000,1.00000000,0.20000000,1.20000000,1,NULL,NULL);

--
-- Table structure for table `t1zhf_supplier_proposaldet_extrafields`
--

CREATE TABLE `t1zhf_supplier_proposaldet_extrafields` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int NOT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `show_total_ht` int DEFAULT NULL,
  `show_reduc` int DEFAULT NULL,
  `subtotal_nc` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `subtotal_show_qty` int DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_supplier_proposaldet_extrafields` (`fk_object`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_supplier_proposaldet_extrafields`
--

INSERT INTO `t1zhf_supplier_proposaldet_extrafields` VALUES (1,'2019-06-24 07:31:40',1,NULL,NULL,NULL,NULL,NULL),(2,'2019-06-24 07:34:10',2,NULL,NULL,NULL,NULL,NULL),(3,'2019-06-24 07:58:36',3,NULL,NULL,NULL,NULL,NULL),(4,'2021-05-25 14:22:50',4,NULL,NULL,NULL,NULL,NULL),(5,'2021-05-25 14:24:11',5,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `t1zhf_takepos_floor_tables`
--

CREATE TABLE `t1zhf_takepos_floor_tables` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `label` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `leftpos` float DEFAULT NULL,
  `toppos` float DEFAULT NULL,
  `floor` smallint DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_takepos_floor_tables` (`entity`,`label`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_takepos_floor_tables`
--


--
-- Table structure for table `t1zhf_tarif_conditionnement`
--

CREATE TABLE `t1zhf_tarif_conditionnement` (
  `rowid` int NOT NULL DEFAULT '0',
  `date_cre` datetime DEFAULT NULL,
  `date_maj` datetime DEFAULT NULL,
  `unite` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `unite_value` int NOT NULL DEFAULT '0',
  `price_base_type` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type_price` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `currency_code` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `prix` double NOT NULL DEFAULT '0',
  `tva_tx` double NOT NULL DEFAULT '0',
  `quantite` double NOT NULL DEFAULT '0',
  `remise_percent` double NOT NULL DEFAULT '0',
  `fk_user_author` int NOT NULL DEFAULT '0',
  `fk_product` int NOT NULL DEFAULT '0',
  `fk_country` int NOT NULL DEFAULT '0',
  `fk_categorie_client` int NOT NULL DEFAULT '0',
  `fk_soc` int NOT NULL DEFAULT '0',
  `fk_project` int NOT NULL DEFAULT '0',
  `date_debut` datetime DEFAULT NULL,
  `date_fin` datetime DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `date_cre` (`date_cre`),
  KEY `date_maj` (`date_maj`),
  KEY `fk_user_author` (`fk_user_author`),
  KEY `fk_product` (`fk_product`),
  KEY `fk_country` (`fk_country`),
  KEY `fk_categorie_client` (`fk_categorie_client`),
  KEY `fk_soc` (`fk_soc`),
  KEY `fk_project` (`fk_project`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_tarif_conditionnement`
--


--
-- Table structure for table `t1zhf_tarif_conditionnement_fournisseur`
--

CREATE TABLE `t1zhf_tarif_conditionnement_fournisseur` (
  `rowid` int NOT NULL DEFAULT '0',
  `date_cre` datetime DEFAULT NULL,
  `date_maj` datetime DEFAULT NULL,
  `unite` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `unite_value` int NOT NULL DEFAULT '0',
  `price_base_type` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type_price` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `currency_code` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `prix` double NOT NULL DEFAULT '0',
  `tva_tx` double NOT NULL DEFAULT '0',
  `quantite` double NOT NULL DEFAULT '0',
  `remise_percent` double NOT NULL DEFAULT '0',
  `fk_user_author` int NOT NULL DEFAULT '0',
  `fk_product` int NOT NULL DEFAULT '0',
  `fk_country` int NOT NULL DEFAULT '0',
  `fk_categorie_client` int NOT NULL DEFAULT '0',
  `fk_soc` int NOT NULL DEFAULT '0',
  `fk_project` int NOT NULL DEFAULT '0',
  `date_debut` datetime DEFAULT NULL,
  `date_fin` datetime DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `date_cre` (`date_cre`),
  KEY `date_maj` (`date_maj`),
  KEY `fk_user_author` (`fk_user_author`),
  KEY `fk_product` (`fk_product`),
  KEY `fk_country` (`fk_country`),
  KEY `fk_categorie_client` (`fk_categorie_client`),
  KEY `fk_soc` (`fk_soc`),
  KEY `fk_project` (`fk_project`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_tarif_conditionnement_fournisseur`
--


--
-- Table structure for table `t1zhf_tarif_conditionnement_fournisseur_log`
--

CREATE TABLE `t1zhf_tarif_conditionnement_fournisseur_log` (
  `rowid` int NOT NULL DEFAULT '0',
  `date_cre` datetime DEFAULT NULL,
  `date_maj` datetime DEFAULT NULL,
  `unite` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `unite_value` int NOT NULL DEFAULT '0',
  `price_base_type` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type_price` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `currency_code` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `prix` double NOT NULL DEFAULT '0',
  `tva_tx` double NOT NULL DEFAULT '0',
  `quantite` double NOT NULL DEFAULT '0',
  `remise_percent` double NOT NULL DEFAULT '0',
  `fk_user_author` int NOT NULL DEFAULT '0',
  `fk_product` int NOT NULL DEFAULT '0',
  `fk_country` int NOT NULL DEFAULT '0',
  `fk_categorie_client` int NOT NULL DEFAULT '0',
  `fk_soc` int NOT NULL DEFAULT '0',
  `fk_project` int NOT NULL DEFAULT '0',
  `date_debut` datetime DEFAULT NULL,
  `date_fin` datetime DEFAULT NULL,
  `motif_changement` longtext COLLATE utf8mb3_unicode_ci,
  PRIMARY KEY (`rowid`),
  KEY `date_cre` (`date_cre`),
  KEY `date_maj` (`date_maj`),
  KEY `fk_user_author` (`fk_user_author`),
  KEY `fk_product` (`fk_product`),
  KEY `fk_country` (`fk_country`),
  KEY `fk_categorie_client` (`fk_categorie_client`),
  KEY `fk_soc` (`fk_soc`),
  KEY `fk_project` (`fk_project`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_tarif_conditionnement_fournisseur_log`
--


--
-- Table structure for table `t1zhf_tarif_conditionnement_log`
--

CREATE TABLE `t1zhf_tarif_conditionnement_log` (
  `rowid` int NOT NULL DEFAULT '0',
  `date_cre` datetime DEFAULT NULL,
  `date_maj` datetime DEFAULT NULL,
  `unite` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `unite_value` int NOT NULL DEFAULT '0',
  `price_base_type` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type_price` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `currency_code` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `prix` double NOT NULL DEFAULT '0',
  `tva_tx` double NOT NULL DEFAULT '0',
  `quantite` double NOT NULL DEFAULT '0',
  `remise_percent` double NOT NULL DEFAULT '0',
  `fk_user_author` int NOT NULL DEFAULT '0',
  `fk_product` int NOT NULL DEFAULT '0',
  `fk_country` int NOT NULL DEFAULT '0',
  `fk_categorie_client` int NOT NULL DEFAULT '0',
  `fk_soc` int NOT NULL DEFAULT '0',
  `fk_project` int NOT NULL DEFAULT '0',
  `date_debut` datetime DEFAULT NULL,
  `date_fin` datetime DEFAULT NULL,
  `motif_changement` longtext COLLATE utf8mb3_unicode_ci,
  PRIMARY KEY (`rowid`),
  KEY `date_cre` (`date_cre`),
  KEY `date_maj` (`date_maj`),
  KEY `fk_user_author` (`fk_user_author`),
  KEY `fk_product` (`fk_product`),
  KEY `fk_country` (`fk_country`),
  KEY `fk_categorie_client` (`fk_categorie_client`),
  KEY `fk_soc` (`fk_soc`),
  KEY `fk_project` (`fk_project`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_tarif_conditionnement_log`
--


--
-- Table structure for table `t1zhf_ticket`
--

CREATE TABLE `t1zhf_ticket` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int DEFAULT '1',
  `ref` varchar(128) COLLATE utf8mb3_unicode_ci NOT NULL,
  `track_id` varchar(128) COLLATE utf8mb3_unicode_ci NOT NULL,
  `fk_soc` int DEFAULT '0',
  `fk_project` int DEFAULT '0',
  `fk_contract` int DEFAULT '0',
  `origin_email` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_user_create` int DEFAULT NULL,
  `fk_user_assign` int DEFAULT NULL,
  `subject` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `message` mediumtext COLLATE utf8mb3_unicode_ci,
  `fk_statut` int DEFAULT NULL,
  `resolution` int DEFAULT NULL,
  `progress` int DEFAULT NULL,
  `timing` varchar(20) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type_code` varchar(32) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `category_code` varchar(32) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `severity_code` varchar(32) COLLATE utf8mb3_unicode_ci 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 DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email_msgid` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email_date` datetime DEFAULT NULL,
  `ip` varchar(250) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `model_pdf` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `last_main_doc` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `extraparams` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `barcode` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_barcode_type` int DEFAULT NULL,
  `origin_replyto` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `origin_references` text COLLATE utf8mb3_unicode_ci,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_ticket_track_id` (`track_id`),
  UNIQUE KEY `uk_ticket_ref` (`ref`,`entity`),
  UNIQUE KEY `uk_ticket_barcode_barcode_type` (`barcode`,`fk_barcode_type`,`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`),
  KEY `t1zhf_ticket_fk_product_barcode_type` (`fk_barcode_type`),
  CONSTRAINT `t1zhf_ticket_fk_product_barcode_type` FOREIGN KEY (`fk_barcode_type`) REFERENCES `t1zhf_c_barcode_type` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_ticket`
--


--
-- Table structure for table `t1zhf_ticket_extrafields`
--

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

--
-- Dumping data for table `t1zhf_ticket_extrafields`
--


--
-- Table structure for table `t1zhf_tva`
--

CREATE TABLE `t1zhf_tva` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `amount` double(24,8) NOT NULL DEFAULT '0.00000000',
  `fk_typepayment` int DEFAULT NULL,
  `num_payment` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `label` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `note` text COLLATE utf8mb3_unicode_ci,
  `fk_bank` int DEFAULT NULL,
  `fk_user_creat` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `paye` smallint NOT NULL DEFAULT '0',
  `fk_account` int DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_tva`
--


--
-- Table structure for table `t1zhf_user_alert`
--

CREATE TABLE `t1zhf_user_alert` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `type` int DEFAULT NULL,
  `fk_contact` int DEFAULT NULL,
  `fk_user` int DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_user_alert`
--


--
-- Table structure for table `t1zhf_user_employment`
--

CREATE TABLE `t1zhf_user_employment` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `ref` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ref_ext` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_user` int DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_creat` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `job` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `status` int 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 `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_user_employment`
--


--
-- Table structure for table `t1zhf_user_extrafields`
--

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

--
-- Dumping data for table `t1zhf_user_extrafields`
--


--
-- Table structure for table `t1zhf_user_param`
--

CREATE TABLE `t1zhf_user_param` (
  `fk_user` int NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `param` varchar(180) COLLATE utf8mb3_unicode_ci NOT NULL,
  `value` text COLLATE utf8mb3_unicode_ci NOT NULL,
  UNIQUE KEY `uk_user_param` (`fk_user`,`param`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_user_param`
--

INSERT INTO `t1zhf_user_param` VALUES (1,1,'MAIN_BOXES_0','1'),(1,1,'MAIN_SELECTEDFIELDS_customerlist','s.code_fournisseur,s.nom,s.name_alias,s.code_client,s.code_compta,s.town,s.zip,s.phone,typent.code,customerorsupplier,ef.qten,s.status,'),(1,1,'MAIN_SELECTEDFIELDS_interventionlist','f.fk_project,f.ref,s.nom,f.fk_contrat,f.description,fd.description,fd.date,fd.duree,f.fk_statut,'),(1,1,'MAIN_SELECTEDFIELDS_invoicelist','f.ref,f.ref_client,f.datef,f.date_lim_reglement,p.ref,s.nom,f.total_ht,f.total_ttc,f.fk_statut,'),(1,1,'MAIN_SELECTEDFIELDS_movementlist','m.fk_user_author,m.rowid,m.datem,p.ref,p.label,e.ref,m.inventorycode,m.label,m.type_mouvement,origin,m.value,'),(1,1,'MAIN_SELECTEDFIELDS_perweekcard','t.planned_workload,t.progress,'),(1,1,'MAIN_SELECTEDFIELDS_productlist','p.stock,p.ref,p.label,p.minbuyprice,p.sellprice,ef.unite_vente,ef.typeprod,ef.qten,p.tosell,p.tobuy,'),(1,1,'MAIN_SELECTEDFIELDS_productservicelist','p.stock,p.ref,stock_virtual,p.label,p.minbuyprice,p.sellprice,ef.unite_vente,ef.typeprod,ef.qten,p.tosell,p.tobuy,'),(1,1,'MAIN_SELECTEDFIELDS_projectlist','p.ref,p.title,s.nom,p.datee,p.fk_opp_status,p.opp_percent,p.opp_amount,p.date_start_event,p.date_end_event,p.fk_statut,'),(1,1,'MAIN_SELECTEDFIELDS_proposallist','p.ref,p.ref_client,s.nom,s.town,p.date,p.fin_validite,p.total_ht,u.login,sale_representative,p.fk_statut,'),(1,1,'MAIN_SELECTEDFIELDS_servicelist','p.ref,p.accountancy_code_sell,p.label,p.minbuyprice,p.sellprice,p.duration,p.tosell,p.tobuy,'),(1,1,'MAIN_SELECTEDFIELDS_stockmovementlist','m.fk_projet,m.rowid,m.datem,p.ref,e.ref,m.inventorycode,m.label,origin,m.value,'),(1,1,'MAIN_SELECTEDFIELDS_tasklist','s.nom,p.fk_statut,p.ref,t.label,t.ref,t.dateo,t.datee,t.planned_workload,t.duration_effective,t.progress_calculated,t.progress,t.progress_summary,'),(1,1,'MAIN_SELECTEDFIELDS_thirdpartylist','s.nom,s.name_alias,s.code_client,s.address,s.zip,s.town,s.phone,typent.code,customerorsupplier,'),(1,1,'MAIN_SELECTEDFIELDS_userlist','u.employee,u.login,u.lastname,u.firstname,u.fk_user,u.email,u.fk_soc,u.salary,u.datelastlogin,u.statut,'),(2,1,'MAIN_THEME','eldy'),(5,1,'MAIN_THEME','eldy'),(8,1,'MAIN_BOXES_0','1'),(8,1,'MAIN_SEARCH_PROJECT_USER_PROJECTSINDEX','8'),(8,1,'MAIN_SELECTEDFIELDS_thirdpartylist','s.datec,s.nom,s.name_alias,s.barcode,s.code_client,s.zip,s.phone,typent.code,customerorsupplier,ef.qten,s.status,');

--
-- Table structure for table `t1zhf_user_rib`
--

CREATE TABLE `t1zhf_user_rib` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_user` int NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `label` varchar(30) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `bank` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `code_banque` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `code_guichet` varchar(6) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `number` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `cle_rib` varchar(5) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `bic` varchar(11) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `bic_intermediate` varchar(11) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `iban_prefix` varchar(34) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `domiciliation` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `proprio` varchar(60) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `owner_address` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `state_id` int DEFAULT NULL,
  `fk_country` int DEFAULT NULL,
  `currency_code` varchar(3) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_user_rib`
--


--
-- Table structure for table `t1zhf_user_rights`
--

CREATE TABLE `t1zhf_user_rights` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `fk_user` int NOT NULL,
  `fk_id` int 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 `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=4148 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_user_rights`
--

INSERT INTO `t1zhf_user_rights` VALUES (3809,1,1,11),(3789,1,1,12),(3794,1,1,13),(3797,1,1,14),(3800,1,1,15),(3804,1,1,16),(3810,1,1,19),(25,1,1,21),(18,1,1,22),(19,1,1,24),(20,1,1,25),(22,1,1,26),(24,1,1,27),(26,1,1,28),(156,1,1,31),(153,1,1,32),(155,1,1,34),(157,1,1,38),(185,1,1,41),(182,1,1,42),(184,1,1,44),(186,1,1,45),(3911,1,1,61),(3900,1,1,62),(3906,1,1,64),(3912,1,1,67),(3917,1,1,68),(3920,1,1,69),(3923,1,1,70),(2279,1,1,71),(2262,1,1,72),(2268,1,1,74),(2280,1,1,75),(2274,1,1,76),(2288,1,1,78),(2289,1,1,79),(3716,1,1,81),(3696,1,1,82),(3701,1,1,84),(3704,1,1,85),(3707,1,1,86),(3710,1,1,87),(3713,1,1,88),(3717,1,1,89),(126,1,1,91),(123,1,1,92),(125,1,1,93),(127,1,1,94),(3353,1,1,101),(3339,1,1,102),(3344,1,1,104),(3347,1,1,105),(3350,1,1,106),(3354,1,1,109),(3671,1,1,111),(3642,1,1,112),(3648,1,1,113),(3654,1,1,114),(3660,1,1,115),(3666,1,1,116),(3672,1,1,117),(3995,1,1,121),(3984,1,1,122),(3990,1,1,125),(3996,1,1,126),(4001,1,1,130),(190,1,1,141),(189,1,1,142),(191,1,1,144),(2153,1,1,151),(2142,1,1,152),(2148,1,1,153),(2154,1,1,154),(61,1,1,161),(54,1,1,162),(56,1,1,163),(58,1,1,164),(60,1,1,165),(62,1,1,167),(200,1,1,241),(199,1,1,242),(201,1,1,243),(4088,1,1,251),(4031,1,1,252),(4035,1,1,253),(4040,1,1,254),(4044,1,1,255),(4050,1,1,256),(4004,1,1,262),(4022,1,1,281),(4011,1,1,282),(4017,1,1,283),(4023,1,1,286),(1337,1,1,300),(3686,1,1,301),(3681,1,1,304),(3687,1,1,305),(4055,1,1,341),(4058,1,1,342),(4061,1,1,343),(4064,1,1,344),(4082,1,1,351),(4071,1,1,352),(4077,1,1,353),(4083,1,1,354),(4089,1,1,358),(2840,1,1,511),(2823,1,1,512),(2829,1,1,514),(2835,1,1,517),(2841,1,1,519),(3974,1,1,531),(3960,1,1,532),(3965,1,1,533),(3969,1,1,534),(3975,1,1,538),(2132,1,1,561),(2121,1,1,562),(2127,1,1,563),(2133,1,1,564),(3002,1,1,610),(2997,1,1,611),(3003,1,1,612),(3515,1,1,651),(3510,1,1,652),(3516,1,1,653),(3530,1,1,661),(3525,1,1,662),(3531,1,1,663),(3017,1,1,691),(3012,1,1,692),(3018,1,1,693),(2792,1,1,750),(2787,1,1,751),(2793,1,1,752),(3779,1,1,771),(3744,1,1,772),(3750,1,1,773),(3756,1,1,775),(3762,1,1,776),(3768,1,1,777),(3774,1,1,778),(3780,1,1,779),(3305,1,1,1001),(3300,1,1,1002),(3306,1,1,1003),(3314,1,1,1004),(3315,1,1,1005),(3329,1,1,1011),(3324,1,1,1012),(3330,1,1,1013),(3371,1,1,1101),(3363,1,1,1102),(3368,1,1,1104),(3372,1,1,1109),(3275,1,1,1121),(3252,1,1,1122),(3258,1,1,1123),(3264,1,1,1124),(3270,1,1,1125),(3276,1,1,1126),(3821,1,1,1181),(3863,1,1,1182),(3828,1,1,1183),(3833,1,1,1184),(3837,1,1,1185),(3843,1,1,1186),(3849,1,1,1187),(3858,1,1,1188),(3854,1,1,1189),(3864,1,1,1191),(204,1,1,1201),(205,1,1,1202),(3890,1,1,1231),(3873,1,1,1232),(3878,1,1,1233),(3882,1,1,1234),(3887,1,1,1235),(3891,1,1,1236),(202,1,1,1251),(3815,1,1,1321),(3818,1,1,1322),(3722,1,1,1421),(3614,1,1,2401),(3609,1,1,2402),(3615,1,1,2403),(3629,1,1,2411),(3624,1,1,2412),(3630,1,1,2413),(3635,1,1,2414),(2048,1,1,2451),(2043,1,1,2452),(2049,1,1,2453),(3734,1,1,2501),(3729,1,1,2503),(3735,1,1,2515),(2339,1,1,3201),(2168,1,1,4001),(2163,1,1,4002),(2169,1,1,4003),(2201,1,1,4021),(2178,1,1,4022),(2183,1,1,4023),(2187,1,1,4025),(2192,1,1,4028),(2195,1,1,4031),(2198,1,1,4032),(2202,1,1,4033),(674,1,1,9201),(667,1,1,9202),(671,1,1,9203),(675,1,1,9204),(576,1,1,11001),(578,1,1,11002),(580,1,1,11003),(582,1,1,11011),(584,1,1,11012),(586,1,1,11013),(588,1,1,11021),(590,1,1,11022),(592,1,1,11023),(2753,1,1,20001),(2724,1,1,20002),(2730,1,1,20003),(2742,1,1,20004),(2748,1,1,20005),(2754,1,1,20006),(2736,1,1,20007),(2510,1,1,23001),(2499,1,1,23002),(2505,1,1,23003),(2511,1,1,23004),(2342,1,1,50101),(2918,1,1,50151),(2921,1,1,50152),(2924,1,1,50153),(3569,1,1,50401),(3593,1,1,50411),(3576,1,1,50412),(3582,1,1,50414),(3588,1,1,50415),(3594,1,1,50418),(3599,1,1,50420),(3602,1,1,50430),(3566,1,1,50440),(1967,1,1,57001),(1962,1,1,57002),(1968,1,1,57003),(1982,1,1,58000),(1977,1,1,58001),(1983,1,1,58002),(3926,1,1,59001),(3929,1,1,59002),(3932,1,1,59003),(3950,1,1,63001),(3939,1,1,63002),(3945,1,1,63003),(3951,1,1,63004),(1300,1,1,104140),(3464,1,1,104162),(3444,1,1,104163),(3449,1,1,104164),(3453,1,1,104165),(3459,1,1,104166),(3465,1,1,104167),(3434,1,1,104320),(3435,1,1,104321),(3416,1,1,104580),(3411,1,1,104581),(3417,1,1,104582),(3422,1,1,104583),(3425,1,1,104584),(3428,1,1,104585),(3488,1,1,104778),(3474,1,1,104779),(3479,1,1,104780),(3482,1,1,104781),(3485,1,1,104782),(3489,1,1,104783),(3497,1,1,104784),(3498,1,1,104785),(3503,1,1,104786),(4130,1,1,160211),(4119,1,1,160212),(4125,1,1,160213),(4131,1,1,160214),(3545,1,1,243001),(3540,1,1,243002),(3546,1,1,243003),(3560,1,1,243011),(3555,1,1,243012),(3561,1,1,243013),(3290,1,1,436150),(3285,1,1,436151),(3291,1,1,436152),(2054,1,1,500171),(2057,1,1,500172),(2060,1,1,500173),(2063,1,1,500174),(2066,1,1,500175),(2069,1,1,500176),(3167,1,1,941601),(3153,1,1,941602),(3158,1,1,941603),(3161,1,1,941604),(3164,1,1,941605),(3168,1,1,941606),(3080,1,1,1048560),(4139,1,1,1600681),(4140,1,1,1600682),(4145,1,1,867383851),(3811,1,2,11),(3791,1,2,12),(3795,1,2,13),(3798,1,2,14),(3801,1,2,15),(3806,1,2,16),(3812,1,2,19),(302,1,2,21),(303,1,2,22),(304,1,2,24),(305,1,2,25),(306,1,2,26),(307,1,2,27),(308,1,2,28),(291,1,2,31),(292,1,2,32),(293,1,2,34),(294,1,2,38),(295,1,2,41),(296,1,2,42),(297,1,2,44),(298,1,2,45),(3913,1,2,61),(3902,1,2,62),(3908,1,2,64),(3914,1,2,67),(3918,1,2,68),(3921,1,2,69),(3924,1,2,70),(2281,1,2,71),(2264,1,2,72),(2270,1,2,74),(2282,1,2,75),(2276,1,2,76),(2290,1,2,78),(2291,1,2,79),(3718,1,2,81),(3698,1,2,82),(3702,1,2,84),(3705,1,2,85),(3708,1,2,86),(3711,1,2,87),(3714,1,2,88),(3719,1,2,89),(367,1,2,91),(368,1,2,92),(369,1,2,93),(370,1,2,94),(3355,1,2,101),(3341,1,2,102),(3345,1,2,104),(3348,1,2,105),(3351,1,2,106),(3356,1,2,109),(3673,1,2,111),(3644,1,2,112),(3650,1,2,113),(3656,1,2,114),(3662,1,2,115),(3668,1,2,116),(3674,1,2,117),(3997,1,2,121),(3986,1,2,122),(3992,1,2,125),(3998,1,2,126),(4002,1,2,130),(299,1,2,141),(300,1,2,142),(301,1,2,144),(2155,1,2,151),(2144,1,2,152),(2150,1,2,153),(2156,1,2,154),(230,1,2,161),(231,1,2,162),(232,1,2,163),(233,1,2,164),(234,1,2,165),(235,1,2,167),(219,1,2,241),(220,1,2,242),(221,1,2,243),(4090,1,2,251),(4032,1,2,252),(4037,1,2,253),(4041,1,2,254),(4046,1,2,255),(4052,1,2,256),(4005,1,2,262),(4024,1,2,281),(4013,1,2,282),(4019,1,2,283),(4025,1,2,286),(1338,1,2,300),(3688,1,2,301),(3683,1,2,304),(3689,1,2,305),(4056,1,2,341),(4059,1,2,342),(4062,1,2,343),(4065,1,2,344),(4084,1,2,351),(4073,1,2,352),(4079,1,2,353),(4085,1,2,354),(4091,1,2,358),(2842,1,2,511),(2825,1,2,512),(2831,1,2,514),(2837,1,2,517),(2843,1,2,519),(3976,1,2,531),(3962,1,2,532),(3966,1,2,533),(3971,1,2,534),(3977,1,2,538),(2134,1,2,561),(2123,1,2,562),(2129,1,2,563),(2135,1,2,564),(3004,1,2,610),(2999,1,2,611),(3005,1,2,612),(3517,1,2,651),(3512,1,2,652),(3518,1,2,653),(3532,1,2,661),(3527,1,2,662),(3533,1,2,663),(3019,1,2,691),(3014,1,2,692),(3020,1,2,693),(2794,1,2,750),(2789,1,2,751),(2795,1,2,752),(3781,1,2,771),(3746,1,2,772),(3752,1,2,773),(3758,1,2,775),(3764,1,2,776),(3770,1,2,777),(3776,1,2,778),(3782,1,2,779),(3307,1,2,1001),(3302,1,2,1002),(3308,1,2,1003),(3316,1,2,1004),(3317,1,2,1005),(3331,1,2,1011),(3326,1,2,1012),(3332,1,2,1013),(3373,1,2,1101),(3365,1,2,1102),(3369,1,2,1104),(3374,1,2,1109),(3277,1,2,1121),(3254,1,2,1122),(3260,1,2,1123),(3266,1,2,1124),(3272,1,2,1125),(3278,1,2,1126),(3822,1,2,1181),(3865,1,2,1182),(3830,1,2,1183),(3834,1,2,1184),(3839,1,2,1185),(3845,1,2,1186),(3851,1,2,1187),(3860,1,2,1188),(3855,1,2,1189),(3866,1,2,1191),(249,1,2,1201),(250,1,2,1202),(3892,1,2,1231),(3875,1,2,1232),(3879,1,2,1233),(3884,1,2,1234),(3888,1,2,1235),(3893,1,2,1236),(283,1,2,1251),(3816,1,2,1321),(3819,1,2,1322),(3723,1,2,1421),(3616,1,2,2401),(3611,1,2,2402),(3617,1,2,2403),(3631,1,2,2411),(3626,1,2,2412),(3632,1,2,2413),(3636,1,2,2414),(2050,1,2,2451),(2045,1,2,2452),(2051,1,2,2453),(3736,1,2,2501),(3731,1,2,2503),(3737,1,2,2515),(2340,1,2,3201),(2170,1,2,4001),(2165,1,2,4002),(2171,1,2,4003),(2203,1,2,4021),(2180,1,2,4022),(2184,1,2,4023),(2189,1,2,4025),(2193,1,2,4028),(2196,1,2,4031),(2199,1,2,4032),(2204,1,2,4033),(676,1,2,9201),(669,1,2,9202),(673,1,2,9203),(677,1,2,9204),(577,1,2,11001),(579,1,2,11002),(581,1,2,11003),(583,1,2,11011),(585,1,2,11012),(587,1,2,11013),(589,1,2,11021),(591,1,2,11022),(593,1,2,11023),(2755,1,2,20001),(2726,1,2,20002),(2732,1,2,20003),(2744,1,2,20004),(2750,1,2,20005),(2756,1,2,20006),(2738,1,2,20007),(2512,1,2,23001),(2501,1,2,23002),(2507,1,2,23003),(2513,1,2,23004),(2343,1,2,50101),(2919,1,2,50151),(2922,1,2,50152),(2925,1,2,50153),(3570,1,2,50401),(3595,1,2,50411),(3578,1,2,50412),(3584,1,2,50414),(3590,1,2,50415),(3596,1,2,50418),(3600,1,2,50420),(3603,1,2,50430),(3567,1,2,50440),(1969,1,2,57001),(1964,1,2,57002),(1970,1,2,57003),(1984,1,2,58000),(1979,1,2,58001),(1985,1,2,58002),(3927,1,2,59001),(3930,1,2,59002),(3933,1,2,59003),(3952,1,2,63001),(3941,1,2,63002),(3947,1,2,63003),(3953,1,2,63004),(1301,1,2,104140),(3466,1,2,104162),(3446,1,2,104163),(3450,1,2,104164),(3455,1,2,104165),(3461,1,2,104166),(3467,1,2,104167),(3436,1,2,104320),(3437,1,2,104321),(3418,1,2,104580),(3413,1,2,104581),(3419,1,2,104582),(3423,1,2,104583),(3426,1,2,104584),(3429,1,2,104585),(3490,1,2,104778),(3476,1,2,104779),(3480,1,2,104780),(3483,1,2,104781),(3486,1,2,104782),(3491,1,2,104783),(3499,1,2,104784),(3500,1,2,104785),(3504,1,2,104786),(4132,1,2,160211),(4121,1,2,160212),(4127,1,2,160213),(4133,1,2,160214),(3547,1,2,243001),(3542,1,2,243002),(3548,1,2,243003),(3562,1,2,243011),(3557,1,2,243012),(3563,1,2,243013),(3292,1,2,436150),(3287,1,2,436151),(3293,1,2,436152),(2055,1,2,500171),(2058,1,2,500172),(2061,1,2,500173),(2064,1,2,500174),(2067,1,2,500175),(2070,1,2,500176),(3169,1,2,941601),(3155,1,2,941602),(3159,1,2,941603),(3162,1,2,941604),(3165,1,2,941605),(3170,1,2,941606),(3081,1,2,1048560),(4141,1,2,1600681),(4142,1,2,1600682),(4146,1,2,867383851),(444,1,3,31),(436,1,3,61),(435,1,3,62),(437,1,3,64),(1904,1,3,81),(963,1,3,121),(964,1,3,122),(965,1,3,125),(966,1,3,126),(439,1,3,241),(1334,1,3,251),(968,1,3,281),(969,1,3,282),(970,1,3,283),(971,1,3,286),(1336,1,3,343),(1335,1,3,358),(447,1,3,531),(604,1,4,31),(605,1,4,41),(470,1,4,61),(471,1,4,62),(607,1,4,121),(601,1,4,241),(608,1,4,281),(606,1,4,531),(610,1,4,2401),(611,1,4,2402),(600,1,4,2403),(467,1,4,104320),(468,1,4,104580),(920,1,5,1001),(921,1,5,1004),(552,1,5,104320),(553,1,5,104580),(656,1,6,11001),(657,1,6,11002),(658,1,6,11003),(659,1,6,11011),(660,1,6,11012),(661,1,6,11013),(662,1,6,104320),(663,1,6,104580),(3813,1,8,11),(3793,1,8,12),(3796,1,8,13),(3799,1,8,14),(3802,1,8,15),(3808,1,8,16),(3814,1,8,19),(1722,1,8,21),(1723,1,8,22),(1724,1,8,24),(1725,1,8,25),(1726,1,8,26),(1727,1,8,27),(1728,1,8,28),(1729,1,8,31),(1730,1,8,32),(1731,1,8,33),(1732,1,8,34),(1733,1,8,38),(1734,1,8,39),(1735,1,8,41),(1736,1,8,42),(1737,1,8,44),(1738,1,8,45),(3915,1,8,61),(3904,1,8,62),(3910,1,8,64),(3916,1,8,67),(3919,1,8,68),(3922,1,8,69),(3925,1,8,70),(2283,1,8,71),(2266,1,8,72),(2272,1,8,74),(2284,1,8,75),(2278,1,8,76),(2292,1,8,78),(2293,1,8,79),(3720,1,8,81),(3700,1,8,82),(3703,1,8,84),(3706,1,8,85),(3709,1,8,86),(3712,1,8,87),(3715,1,8,88),(3721,1,8,89),(1754,1,8,91),(1755,1,8,92),(1756,1,8,93),(1757,1,8,94),(3357,1,8,101),(3343,1,8,102),(3346,1,8,104),(3349,1,8,105),(3352,1,8,106),(3358,1,8,109),(3675,1,8,111),(3646,1,8,112),(3652,1,8,113),(3658,1,8,114),(3664,1,8,115),(3670,1,8,116),(3676,1,8,117),(3999,1,8,121),(3988,1,8,122),(3994,1,8,125),(4000,1,8,126),(4003,1,8,130),(1776,1,8,141),(1777,1,8,142),(1778,1,8,144),(1779,1,8,145),(2157,1,8,151),(2146,1,8,152),(2152,1,8,153),(2158,1,8,154),(1780,1,8,161),(1781,1,8,162),(1782,1,8,163),(1783,1,8,164),(1784,1,8,165),(1785,1,8,167),(1786,1,8,241),(1787,1,8,242),(1788,1,8,243),(4092,1,8,251),(4033,1,8,252),(4039,1,8,253),(4042,1,8,254),(4048,1,8,255),(4054,1,8,256),(4006,1,8,262),(4026,1,8,281),(4015,1,8,282),(4021,1,8,283),(4027,1,8,286),(3690,1,8,301),(3685,1,8,304),(3691,1,8,305),(4057,1,8,341),(4060,1,8,342),(4063,1,8,343),(4066,1,8,344),(4086,1,8,351),(4075,1,8,352),(4081,1,8,353),(4087,1,8,354),(4093,1,8,358),(2844,1,8,511),(2827,1,8,512),(2833,1,8,514),(2839,1,8,517),(2845,1,8,519),(3978,1,8,531),(3964,1,8,532),(3967,1,8,533),(3973,1,8,534),(3979,1,8,538),(2136,1,8,561),(2125,1,8,562),(2131,1,8,563),(2137,1,8,564),(3006,1,8,610),(3001,1,8,611),(3007,1,8,612),(3519,1,8,651),(3514,1,8,652),(3520,1,8,653),(3534,1,8,661),(3529,1,8,662),(3535,1,8,663),(3021,1,8,691),(3016,1,8,692),(3022,1,8,693),(2796,1,8,750),(2791,1,8,751),(2797,1,8,752),(3783,1,8,771),(3748,1,8,772),(3754,1,8,773),(3760,1,8,775),(3766,1,8,776),(3772,1,8,777),(3778,1,8,778),(3784,1,8,779),(3309,1,8,1001),(3304,1,8,1002),(3310,1,8,1003),(3318,1,8,1004),(3319,1,8,1005),(3333,1,8,1011),(3328,1,8,1012),(3334,1,8,1013),(3375,1,8,1101),(3367,1,8,1102),(3370,1,8,1104),(3376,1,8,1109),(3279,1,8,1121),(3256,1,8,1122),(3262,1,8,1123),(3268,1,8,1124),(3274,1,8,1125),(3280,1,8,1126),(3823,1,8,1181),(3867,1,8,1182),(3832,1,8,1183),(3835,1,8,1184),(3841,1,8,1185),(3847,1,8,1186),(3853,1,8,1187),(3862,1,8,1188),(3856,1,8,1189),(3868,1,8,1191),(1852,1,8,1201),(1853,1,8,1202),(3894,1,8,1231),(3877,1,8,1232),(3880,1,8,1233),(3886,1,8,1234),(3889,1,8,1235),(3895,1,8,1236),(1860,1,8,1251),(3817,1,8,1321),(3820,1,8,1322),(3724,1,8,1421),(3618,1,8,2401),(3613,1,8,2402),(3619,1,8,2403),(3633,1,8,2411),(3628,1,8,2412),(3634,1,8,2413),(3637,1,8,2414),(2052,1,8,2451),(2047,1,8,2452),(2053,1,8,2453),(3738,1,8,2501),(3733,1,8,2503),(3739,1,8,2515),(2341,1,8,3201),(2172,1,8,4001),(2167,1,8,4002),(2173,1,8,4003),(2205,1,8,4021),(2182,1,8,4022),(2185,1,8,4023),(2191,1,8,4025),(2194,1,8,4028),(2197,1,8,4031),(2200,1,8,4032),(2206,1,8,4033),(1874,1,8,11001),(1875,1,8,11002),(1876,1,8,11003),(1877,1,8,11011),(1878,1,8,11012),(1879,1,8,11013),(1880,1,8,11021),(1881,1,8,11022),(1882,1,8,11023),(2757,1,8,20001),(2728,1,8,20002),(2734,1,8,20003),(2746,1,8,20004),(2752,1,8,20005),(2758,1,8,20006),(2740,1,8,20007),(2514,1,8,23001),(2503,1,8,23002),(2509,1,8,23003),(2515,1,8,23004),(2344,1,8,50101),(2920,1,8,50151),(2923,1,8,50152),(2926,1,8,50153),(3571,1,8,50401),(3597,1,8,50411),(3580,1,8,50412),(3586,1,8,50414),(3592,1,8,50415),(3598,1,8,50418),(3601,1,8,50420),(3604,1,8,50430),(3568,1,8,50440),(1971,1,8,57001),(1966,1,8,57002),(1972,1,8,57003),(1986,1,8,58000),(1981,1,8,58001),(1987,1,8,58002),(3928,1,8,59001),(3931,1,8,59002),(3934,1,8,59003),(3954,1,8,63001),(3943,1,8,63002),(3949,1,8,63003),(3955,1,8,63004),(1902,1,8,104140),(3468,1,8,104162),(3448,1,8,104163),(3451,1,8,104164),(3457,1,8,104165),(3463,1,8,104166),(3469,1,8,104167),(3438,1,8,104320),(3439,1,8,104321),(3420,1,8,104580),(3415,1,8,104581),(3421,1,8,104582),(3424,1,8,104583),(3427,1,8,104584),(3430,1,8,104585),(3492,1,8,104778),(3478,1,8,104779),(3481,1,8,104780),(3484,1,8,104781),(3487,1,8,104782),(3493,1,8,104783),(3501,1,8,104784),(3502,1,8,104785),(3505,1,8,104786),(4134,1,8,160211),(4123,1,8,160212),(4129,1,8,160213),(4135,1,8,160214),(3549,1,8,243001),(3544,1,8,243002),(3550,1,8,243003),(3564,1,8,243011),(3559,1,8,243012),(3565,1,8,243013),(3294,1,8,436150),(3289,1,8,436151),(3295,1,8,436152),(2056,1,8,500171),(2059,1,8,500172),(2062,1,8,500173),(2065,1,8,500174),(2068,1,8,500175),(2071,1,8,500176),(3171,1,8,941601),(3157,1,8,941602),(3160,1,8,941603),(3163,1,8,941604),(3166,1,8,941605),(3172,1,8,941606),(3082,1,8,1048560),(4143,1,8,1600681),(4144,1,8,1600682),(4147,1,8,867383851),(1906,1,9,301),(1907,1,9,304),(1908,1,9,11001),(1909,1,9,11002),(1910,1,9,11003),(1911,1,9,11011),(1912,1,9,11012),(1913,1,9,11013),(1914,1,10,301),(1915,1,10,304),(1916,1,10,11001),(1917,1,10,11002),(1918,1,10,11003),(1919,1,10,11011),(1920,1,10,11012),(1921,1,10,11013);

--
-- Table structure for table `t1zhf_usergroup`
--

CREATE TABLE `t1zhf_usergroup` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `nom` varchar(180) COLLATE utf8mb3_unicode_ci NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `note` text COLLATE utf8mb3_unicode_ci,
  `model_pdf` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_usergroup_name` (`nom`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_usergroup`
--

INSERT INTO `t1zhf_usergroup` VALUES (1,'Testeurs',1,'2019-05-02 11:26:43','2019-05-02 09:26:43','',NULL),(2,'Chantier',1,'2023-05-16 15:20:05','2023-05-16 13:20:05','Equipe de poseurs et intervention d&eacute;co',NULL);

--
-- Table structure for table `t1zhf_usergroup_extrafields`
--

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

--
-- Dumping data for table `t1zhf_usergroup_extrafields`
--


--
-- Table structure for table `t1zhf_usergroup_rights`
--

CREATE TABLE `t1zhf_usergroup_rights` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `fk_usergroup` int NOT NULL,
  `fk_id` int 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 `t1zhf_usergroup` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=135 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_usergroup_rights`
--

INSERT INTO `t1zhf_usergroup_rights` VALUES (46,1,1,11),(47,1,1,12),(48,1,1,13),(49,1,1,14),(50,1,1,15),(51,1,1,16),(52,1,1,19),(103,1,1,21),(104,1,1,22),(105,1,1,24),(106,1,1,25),(107,1,1,26),(108,1,1,27),(109,1,1,28),(92,1,1,31),(93,1,1,32),(94,1,1,34),(95,1,1,38),(96,1,1,41),(97,1,1,42),(98,1,1,44),(99,1,1,45),(55,1,1,61),(56,1,1,62),(57,1,1,64),(58,1,1,67),(59,1,1,68),(60,1,1,69),(61,1,1,70),(17,1,1,81),(18,1,1,82),(19,1,1,84),(20,1,1,86),(21,1,1,87),(22,1,1,88),(23,1,1,89),(129,1,1,91),(130,1,1,92),(131,1,1,93),(132,1,1,94),(34,1,1,101),(35,1,1,102),(36,1,1,104),(37,1,1,105),(38,1,1,106),(39,1,1,109),(7,1,1,111),(8,1,1,112),(9,1,1,113),(10,1,1,114),(11,1,1,115),(12,1,1,116),(13,1,1,117),(114,1,1,121),(115,1,1,122),(116,1,1,125),(117,1,1,126),(100,1,1,141),(101,1,1,142),(102,1,1,144),(88,1,1,151),(89,1,1,152),(90,1,1,153),(91,1,1,154),(25,1,1,161),(26,1,1,162),(27,1,1,163),(28,1,1,164),(29,1,1,165),(30,1,1,167),(14,1,1,241),(15,1,1,242),(16,1,1,243),(118,1,1,262),(119,1,1,281),(120,1,1,282),(121,1,1,283),(122,1,1,286),(110,1,1,531),(111,1,1,532),(112,1,1,534),(113,1,1,538),(40,1,1,1101),(41,1,1,1102),(42,1,1,1104),(43,1,1,1109),(123,1,1,1121),(124,1,1,1122),(125,1,1,1123),(126,1,1,1124),(127,1,1,1125),(128,1,1,1126),(62,1,1,1181),(63,1,1,1182),(64,1,1,1183),(65,1,1,1184),(66,1,1,1185),(67,1,1,1186),(68,1,1,1187),(69,1,1,1188),(70,1,1,1189),(71,1,1,1191),(44,1,1,1201),(45,1,1,1202),(72,1,1,1231),(73,1,1,1232),(74,1,1,1233),(75,1,1,1234),(76,1,1,1235),(77,1,1,1236),(78,1,1,1251),(53,1,1,1321),(54,1,1,1322),(24,1,1,1421),(31,1,1,2501),(32,1,1,2503),(33,1,1,2515),(1,1,1,50401),(2,1,1,50411),(3,1,1,50412),(4,1,1,50420),(5,1,1,50430),(6,1,1,50440),(79,1,1,59001),(80,1,1,59002),(81,1,1,59003),(133,1,1,104320),(134,1,1,104321),(82,1,1,104580),(83,1,1,104581),(84,1,1,104582),(85,1,1,104583),(86,1,1,104584),(87,1,1,104585);

--
-- Table structure for table `t1zhf_usergroup_user`
--

CREATE TABLE `t1zhf_usergroup_user` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `fk_user` int NOT NULL,
  `fk_usergroup` int 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 `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_usergroup_user_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `t1zhf_usergroup` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_usergroup_user`
--

INSERT INTO `t1zhf_usergroup_user` VALUES (7,1,3,1),(6,1,3,2),(2,1,4,1),(1,1,5,1),(5,1,5,2),(3,1,9,2),(4,1,10,2);

--
-- Table structure for table `t1zhf_website`
--

CREATE TABLE `t1zhf_website` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `type_container` varchar(16) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'page',
  `entity` int NOT NULL DEFAULT '1',
  `ref` varchar(128) COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `status` int DEFAULT '1',
  `fk_default_home` int DEFAULT NULL,
  `virtualhost` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_user_creat` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `maincolor` varchar(16) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `maincolorbis` varchar(16) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `use_manifest` int DEFAULT NULL,
  `lang` varchar(8) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `otherlang` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `position` int DEFAULT '0',
  `lastaccess` datetime DEFAULT NULL,
  `pageviews_month` bigint unsigned DEFAULT '0',
  `pageviews_total` bigint unsigned DEFAULT '0',
  `pageviews_previous_month` bigint unsigned DEFAULT '0',
  `name_template` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `lastpageid` int DEFAULT '0',
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_website_ref` (`ref`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_website`
--


--
-- Table structure for table `t1zhf_website_extrafields`
--

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

--
-- Dumping data for table `t1zhf_website_extrafields`
--


--
-- Table structure for table `t1zhf_website_page`
--

CREATE TABLE `t1zhf_website_page` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `fk_website` int NOT NULL,
  `type_container` varchar(16) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'page',
  `pageurl` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
  `aliasalt` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `title` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `keywords` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `lang` varchar(6) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_page` int DEFAULT NULL,
  `htmlheader` text COLLATE utf8mb3_unicode_ci,
  `content` mediumtext COLLATE utf8mb3_unicode_ci,
  `status` int DEFAULT '1',
  `grabbed_from` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_user_creat` int DEFAULT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `image` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `author_alias` varchar(64) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `allowed_in_frames` int DEFAULT '0',
  `object_type` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `fk_object` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_website_page_url` (`fk_website`,`pageurl`),
  CONSTRAINT `fk_website_page_website` FOREIGN KEY (`fk_website`) REFERENCES `t1zhf_website` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_website_page`
--


--
-- Table structure for table `t1zhf_workstation`
--

CREATE TABLE `t1zhf_workstation` (
  `rowid` int NOT NULL DEFAULT '0',
  `date_cre` datetime DEFAULT NULL,
  `date_maj` datetime DEFAULT NULL,
  `entity` int NOT NULL DEFAULT '0',
  `fk_usergroup` int NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `background` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `code` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `nb_hour_prepare` double NOT NULL DEFAULT '0',
  `nb_hour_manufacture` double NOT NULL DEFAULT '0',
  `nb_hour_capacity` double NOT NULL DEFAULT '0',
  `nb_ressource` double NOT NULL DEFAULT '0',
  `thm` double NOT NULL DEFAULT '0',
  `thm_machine` double NOT NULL DEFAULT '0',
  `thm_overtime` double NOT NULL DEFAULT '0',
  `thm_night` double NOT NULL DEFAULT '0',
  `nb_hour_before` double NOT NULL DEFAULT '0',
  `nb_hour_after` double NOT NULL DEFAULT '0',
  `is_parallele` int NOT NULL DEFAULT '0',
  PRIMARY KEY (`rowid`),
  KEY `date_cre` (`date_cre`),
  KEY `date_maj` (`date_maj`),
  KEY `entity` (`entity`),
  KEY `fk_usergroup` (`fk_usergroup`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_workstation`
--

INSERT INTO `t1zhf_workstation` VALUES (1,'2019-01-10 18:24:49','2024-09-18 10:20:53',1,2,'Emballage','','HUMAN','emb',0,0,0,0,50,0,100,200,0.25,0.25,0),(2,'2019-01-10 18:25:25','2019-01-10 18:35:33',1,0,'Pose','#','HUMAN','po',0,0,0,0,50,0,0,0,0,0,0),(3,'2019-02-20 14:34:34','2019-02-20 14:34:34',1,0,'test sur route','#','HUMAN','',0,0,0,0,50,0,0,0,0,0,0),(4,'2021-07-16 10:57:27','2021-07-16 10:57:27',1,1,'Fourniture et préparation du support Carrelage','#','HUMAN','',0,0,0,0,50,0,0,0,0,0,0),(5,'2021-07-16 10:58:36','2021-07-16 10:58:36',1,1,'Fourniture et pose d\'un carrelage','#','HUMAN','',0,0,0,0,50,0,0,0,0,0,0);

--
-- Table structure for table `t1zhf_workstation_product`
--

CREATE TABLE `t1zhf_workstation_product` (
  `rowid` int NOT NULL DEFAULT '0',
  `date_cre` datetime DEFAULT NULL,
  `date_maj` datetime DEFAULT NULL,
  `fk_product` int NOT NULL DEFAULT '0',
  `fk_workstation` int NOT NULL DEFAULT '0',
  `nb_hour` double NOT NULL DEFAULT '0',
  `rang` double NOT NULL DEFAULT '0',
  `nb_hour_prepare` double NOT NULL DEFAULT '0',
  `nb_hour_manufacture` double NOT NULL DEFAULT '0',
  PRIMARY KEY (`rowid`),
  KEY `date_cre` (`date_cre`),
  KEY `date_maj` (`date_maj`),
  KEY `fk_product` (`fk_product`),
  KEY `fk_workstation` (`fk_workstation`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_workstation_product`
--

INSERT INTO `t1zhf_workstation_product` VALUES (1,'2019-01-10 18:26:17','2019-01-10 18:26:47',5,1,1,0,0,1),(2,'2019-01-10 18:26:39','2019-01-10 18:26:47',5,2,2,0,0,2),(3,'2019-02-04 14:34:37','2019-02-04 14:34:53',6,1,2,0,0,2),(4,'2019-02-04 14:34:44','2019-02-04 14:34:53',6,2,2,0,0,2);

--
-- Table structure for table `t1zhf_workstation_schedule`
--

CREATE TABLE `t1zhf_workstation_schedule` (
  `rowid` int NOT NULL DEFAULT '0',
  `date_cre` datetime DEFAULT NULL,
  `date_maj` datetime DEFAULT NULL,
  `fk_workstation` int NOT NULL DEFAULT '0',
  `day_moment` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `week_day` int NOT NULL DEFAULT '0',
  `nb_ressource` int NOT NULL DEFAULT '0',
  `date_off` datetime DEFAULT NULL,
  `nb_hour_capacity` double NOT NULL DEFAULT '0',
  PRIMARY KEY (`rowid`),
  KEY `date_cre` (`date_cre`),
  KEY `date_maj` (`date_maj`),
  KEY `fk_workstation` (`fk_workstation`),
  KEY `date_off` (`date_off`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_workstation_schedule`
--


--
-- Table structure for table `t1zhf_workstation_workstation`
--

CREATE TABLE `t1zhf_workstation_workstation` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) NOT NULL DEFAULT '(PROV)',
  `label` varchar(255) DEFAULT NULL,
  `type` varchar(7) DEFAULT NULL,
  `note_public` text,
  `entity` int DEFAULT '1',
  `note_private` text,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_creat` int NOT NULL,
  `fk_user_modif` int DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` smallint NOT NULL,
  `nb_operators_required` int 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 `t1zhf_user` (`rowid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `t1zhf_workstation_workstation`
--


--
-- Table structure for table `t1zhf_workstation_workstation_resource`
--

CREATE TABLE `t1zhf_workstation_workstation_resource` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_resource` int DEFAULT NULL,
  `fk_workstation` int DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `t1zhf_workstation_workstation_resource`
--


--
-- Table structure for table `t1zhf_workstation_workstation_usergroup`
--

CREATE TABLE `t1zhf_workstation_workstation_usergroup` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `tms` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_usergroup` int DEFAULT NULL,
  `fk_workstation` int DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `t1zhf_workstation_workstation_usergroup`
--


--
-- Table structure for table `t1zhf_zapier_hook`
--

CREATE TABLE `t1zhf_zapier_hook` (
  `rowid` int NOT NULL AUTO_INCREMENT,
  `entity` int NOT NULL DEFAULT '1',
  `url` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `event` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `module` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `action` varchar(128) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `status` int DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `fk_user` int NOT NULL,
  `tms` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `import_key` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `t1zhf_zapier_hook`
--


--
-- Table structure for table `tmp_t1zhf_accouting_account`
--

CREATE TABLE `tmp_t1zhf_accouting_account` (
  `MINID` int DEFAULT NULL,
  `MAXID` int DEFAULT NULL,
  `account_number` varchar(32) COLLATE utf8mb3_unicode_ci NOT NULL,
  `entity` int NOT NULL DEFAULT '1',
  `fk_pcg_version` varchar(32) COLLATE utf8mb3_unicode_ci NOT NULL,
  `NB` bigint NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `tmp_t1zhf_accouting_account`
--



