-- Table structure for table `items_rating`
--

CREATE TABLE `items_rating` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `value` tinyint(4) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `items_rating_user_id_foreign` (`user_id`),
  KEY `items_rating_item_id_foreign` (`item_id`),
  CONSTRAINT `items_rating_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `items_rating_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `items_rating`
--

SET autocommit=0;
COMMIT;

-- Dumped table `items_rating` with 0 row(s)
--

--
-- Table structure for table `item_color`
--

CREATE TABLE `item_color` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `cat_colors_item_id` int(10) unsigned NOT NULL,
  `active` tinyint(4) DEFAULT 1 COMMENT 'Define si se encuentra activo',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_color`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_color` with 0 row(s)
--

--
-- Table structure for table `item_images`
--

CREATE TABLE `item_images` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `image` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `item_images_item_id_foreign` (`item_id`),
  CONSTRAINT `item_images_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_images`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_images` with 0 row(s)
--

--
-- Table structure for table `item_lots`
--

CREATE TABLE `item_lots` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `series` varchar(255) NOT NULL,
  `date` date NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `warehouse_id` int(10) unsigned DEFAULT NULL,
  `item_loteable_type` varchar(255) NOT NULL,
  `item_loteable_id` int(10) unsigned NOT NULL,
  `has_sale` tinyint(1) NOT NULL DEFAULT 0,
  `state` varchar(20) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `item_lots_item_id_foreign` (`item_id`),
  KEY `item_lots_warehouse_id_foreign` (`warehouse_id`),
  KEY `item_lots_series_index` (`series`),
  KEY `item_lots_date_index` (`date`),
  KEY `item_lots_has_sale_index` (`has_sale`),
  KEY `item_lots_item_loteable_type_index` (`item_loteable_type`),
  KEY `item_lots_item_loteable_id_index` (`item_loteable_id`),
  CONSTRAINT `item_lots_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `item_lots_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_lots`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_lots` with 0 row(s)
--

--
-- Table structure for table `item_lots_group`
--

CREATE TABLE `item_lots_group` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `code` varchar(255) NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `old_quantity` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `date_of_due` date NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `item_lots_group_item_id_foreign` (`item_id`),
  KEY `idx_lots_group` (`item_id`,`date_of_due`,`quantity`),
  CONSTRAINT `item_lots_group_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=401 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_lots_group`
--

SET autocommit=0;
INSERT INTO `item_lots_group` VALUES (1,'2070055',133.0000,0.0000,'2028-07-31',1,'2026-02-24 21:59:44','2026-03-14 19:06:38'),(2,'1549987',143.0000,0.0000,'2028-02-29',2,'2026-02-24 22:20:07','2026-02-24 22:20:59'),(3,'1555288',100.0000,0.0000,'2028-03-31',3,'2026-02-24 22:33:05','2026-02-24 22:35:20'),(4,'F240183',0.0000,0.0000,'2026-11-30',4,'2026-02-27 09:24:08','2026-03-29 21:32:54'),(5,'F240156',2.0000,0.0000,'2027-10-27',5,'2026-02-27 09:30:00','2026-02-27 09:30:00'),(6,'F240047',1.0000,0.0000,'2027-04-30',6,'2026-02-27 09:31:59','2026-02-27 09:31:59'),(7,'5023000401',1.0000,0.0000,'2028-01-31',7,'2026-02-27 09:34:01','2026-02-27 09:34:01'),(8,'20241120',2.0000,0.0000,'2029-11-30',9,'2026-02-27 09:43:20','2026-02-27 09:43:20'),(9,'20241010',3.0000,0.0000,'2029-10-31',10,'2026-02-27 09:49:24','2026-02-27 09:49:24'),(10,'20240830',2.0000,0.0000,'2029-08-31',11,'2026-02-27 09:51:21','2026-02-27 09:51:21'),(11,'230826',1.0000,0.0000,'2028-08-25',12,'2026-02-27 09:55:08','2026-02-27 09:55:08'),(12,'B2407029',1.0000,0.0000,'2028-07-31',13,'2026-02-27 09:57:08','2026-02-27 09:57:08'),(13,'B2305014',1.0000,0.0000,'2027-05-31',14,'2026-02-27 09:59:22','2026-02-27 10:05:48'),(14,'B2401005',1.0000,0.0000,'2028-01-31',15,'2026-02-27 10:00:25','2026-02-27 10:05:34'),(15,'B2310066',3.0000,0.0000,'2027-10-31',16,'2026-02-27 10:01:47','2026-02-27 10:01:47'),(16,'211130',3.0000,0.0000,'2026-11-29',17,'2026-02-27 10:04:14','2026-02-27 10:04:14'),(17,'20231005',3.0000,0.0000,'2028-10-20',18,'2026-02-27 10:07:57','2026-02-27 10:07:57'),(18,'220820',1.0000,0.0000,'2027-08-19',19,'2026-02-27 10:09:27','2026-02-27 10:09:27'),(19,'20231010',2.0000,0.0000,'2028-10-31',20,'2026-02-27 10:14:42','2026-02-27 10:15:13'),(20,'20231005',2.0000,0.0000,'2028-10-31',21,'2026-02-27 10:17:42','2026-02-27 10:17:42'),(21,'20231005',2.0000,0.0000,'2028-10-31',22,'2026-02-27 10:18:55','2026-02-27 10:18:55'),(22,'20231005',2.0000,0.0000,'2028-10-31',23,'2026-02-27 10:20:33','2026-02-27 10:20:33'),(23,'20231010',2.0000,0.0000,'2028-10-31',24,'2026-02-27 10:21:43','2026-02-27 10:21:43'),(24,'20230615',1.0000,0.0000,'2028-06-30',25,'2026-02-27 10:27:07','2026-02-27 10:27:07'),(25,'20230615',1.0000,0.0000,'2028-06-30',26,'2026-02-27 10:28:29','2026-02-27 10:28:29'),(26,'20231025',1.0000,0.0000,'2028-10-31',27,'2026-02-27 10:29:51','2026-02-27 10:29:51'),(27,'20231005',1.0000,0.0000,'2028-10-31',28,'2026-02-27 10:37:05','2026-02-27 10:37:05'),(28,'2554C0B',2.0000,0.0000,'2026-08-31',29,'2026-02-27 10:41:10','2026-02-27 10:41:10'),(29,'20901065',7.0000,0.0000,'2028-09-30',30,'2026-02-27 10:48:10','2026-02-27 10:48:10'),(30,'21001085',8.0000,0.0000,'2028-09-30',31,'2026-02-27 10:49:33','2026-02-27 10:49:33'),(31,'328322CQA',5.0000,0.0000,'2026-10-31',32,'2026-02-27 10:52:26','2026-02-27 10:52:26'),(32,'20900105',1.0000,0.0000,'2028-09-30',33,'2026-02-27 10:54:55','2026-02-27 10:54:55'),(33,'2010555',1.0000,0.0000,'2030-01-31',34,'2026-02-27 10:58:09','2026-02-27 10:58:09'),(34,'2V447NSOC75491',5.0000,0.0000,'2027-10-31',35,'2026-02-27 11:06:27','2026-02-27 11:06:27'),(35,'2V4081025',6.0000,0.0000,'2027-10-29',36,'2026-02-27 11:08:21','2026-02-27 11:08:21'),(36,'6V0131125',2.0000,0.0000,'2027-11-03',37,'2026-02-27 11:10:06','2026-02-27 11:10:06'),(37,'2V2170425',2.0000,0.0000,'2027-04-22',38,'2026-02-27 11:11:45','2026-02-27 11:11:45'),(38,'2V3090325',2.0000,0.0000,'2027-03-21',39,'2026-02-27 11:13:31','2026-02-27 11:13:31'),(39,'2V3570525',1.0000,0.0000,'2027-05-27',40,'2026-02-27 11:15:04','2026-02-27 11:15:04'),(40,'20110952',1.0000,0.0000,'2028-03-12',41,'2026-02-27 11:18:28','2026-02-27 11:18:28'),(41,'91810553',1.0000,0.0000,'2027-02-28',42,'2026-02-27 11:21:32','2026-02-27 11:21:32'),(42,'91708119',1.0000,0.0000,'2026-11-27',43,'2026-02-27 11:23:09','2026-02-27 11:23:09'),(43,'195114',2.0000,0.0000,'2028-07-13',44,'2026-02-27 11:27:38','2026-02-27 11:27:38'),(44,'186114',1.0000,0.0000,'2028-07-04',45,'2026-02-27 11:29:07','2026-02-27 11:29:07'),(45,'5199435300',1.0000,0.0000,'2028-06-18',46,'2026-02-27 11:31:30','2026-02-27 11:31:30'),(46,'5304435300',4.0000,0.0000,'2028-09-30',47,'2026-02-27 11:33:08','2026-02-27 11:33:08'),(47,'3300435300',3.0000,0.0000,'2026-09-26',48,'2026-02-27 11:34:17','2026-02-27 11:34:17'),(48,'33511414',2.0000,0.0000,'2028-11-30',49,'2026-02-27 11:36:20','2026-02-27 11:36:20'),(49,'20800014',2.0000,0.0000,'2026-08-31',50,'2026-02-27 11:38:49','2026-02-27 11:38:49'),(50,'253114',4.0000,0.0000,'2028-09-09',52,'2026-02-27 11:42:00','2026-02-27 11:42:00'),(51,'241114',2.0000,0.0000,'2028-08-28',53,'2026-02-27 11:43:22','2026-02-27 11:43:22'),(52,'065114',2.0000,0.0000,'2028-03-05',54,'2026-02-27 11:44:46','2026-02-27 11:44:46'),(53,'20241120',3.0000,0.0000,'2029-11-30',55,'2026-02-27 11:47:15','2026-02-27 11:47:15'),(54,'2126914',5.0000,0.0000,'2029-12-31',56,'2026-02-27 11:49:04','2026-02-27 11:49:04'),(55,'2024215',5.0000,0.0000,'2029-02-28',57,'2026-02-27 11:50:08','2026-02-27 11:50:08'),(56,'2037094',11.0000,0.0000,'2027-03-31',58,'2026-02-27 11:54:20','2026-02-27 11:54:20'),(57,'2035504',24.0000,0.0000,'2027-03-31',59,'2026-02-27 11:58:07','2026-02-27 11:58:07'),(58,'2032814',40.0000,0.0000,'2028-03-31',60,'2026-02-27 12:02:36','2026-02-27 12:02:36'),(59,'03012023',1.0000,0.0000,'2028-01-31',61,'2026-03-05 17:39:37','2026-03-05 17:39:37'),(60,'206C000197A',1.0000,0.0000,'2029-01-31',62,'2026-03-05 17:43:15','2026-03-05 17:43:15'),(61,'0013369',1.0000,0.0000,'2030-03-31',63,'2026-03-05 17:45:18','2026-03-05 17:45:18'),(62,'1041441250',1.0000,0.0000,'2027-04-30',64,'2026-03-05 17:54:56','2026-03-05 17:54:56'),(63,'2118634',1.0000,0.0000,'2027-11-30',65,'2026-03-05 17:58:12','2026-03-05 17:58:12'),(64,'2108134',1.0000,0.0000,'2027-10-31',66,'2026-03-05 17:59:53','2026-03-05 17:59:53'),(65,'2107574',1.0000,0.0000,'2027-10-31',67,'2026-03-05 18:01:28','2026-03-05 18:01:28'),(66,'2107895',1.0000,0.0000,'2028-10-31',68,'2026-03-05 18:06:24','2026-03-05 18:06:24'),(67,'250106',1.0000,0.0000,'2030-01-31',70,'2026-03-05 18:14:30','2026-03-05 18:28:59'),(68,'2010275',1.0000,0.0000,'2029-01-31',71,'2026-03-05 18:32:29','2026-03-05 18:32:29'),(69,'2042565',20.0000,0.0000,'2029-04-30',72,'2026-03-05 18:38:10','2026-03-05 18:38:10'),(70,'2021045',20.0000,0.0000,'2029-02-28',73,'2026-03-05 18:41:13','2026-03-05 18:41:13'),(71,'0705272503062',30.0000,0.0000,'2029-01-31',74,'2026-03-05 18:44:10','2026-03-05 18:44:10'),(72,'2501733202',13.0000,0.0000,'2027-06-30',75,'2026-03-05 19:01:38','2026-03-05 19:01:38'),(73,'2500091122',40.0000,0.0000,'2027-03-31',76,'2026-03-05 19:06:32','2026-03-05 19:12:29'),(74,'2505196280',60.0000,0.0000,'2027-08-31',77,'2026-03-05 19:11:35','2026-03-05 19:12:08'),(75,'2060294',40.0000,0.0000,'2028-06-30',78,'2026-03-05 19:36:15','2026-03-05 19:36:15'),(76,'2107604',10.0000,0.0000,'2028-10-31',79,'2026-03-05 19:46:07','2026-03-05 19:46:07'),(77,'2097514',20.0000,0.0000,'2028-09-30',80,'2026-03-05 19:48:07','2026-03-05 19:48:07'),(78,'21079994',20.0000,0.0000,'2028-10-31',81,'2026-03-05 19:54:31','2026-03-05 19:54:31'),(79,'2118524',20.0000,0.0000,'2027-11-30',82,'2026-03-05 19:55:58','2026-03-05 19:55:58'),(80,'240514',100.0000,0.0000,'2029-06-30',83,'2026-03-05 20:04:47','2026-03-05 20:04:47'),(81,'N4349',10.0000,0.0000,'2029-10-31',84,'2026-03-05 20:06:37','2026-03-05 20:06:37'),(82,'010822-15',100.0000,0.0000,'2027-08-31',85,'2026-03-05 20:08:51','2026-03-05 20:08:51'),(83,'230718',99.0000,0.0000,'2028-08-31',86,'2026-03-05 20:10:28','2026-03-05 20:48:44'),(84,'20240730',2.0000,0.0000,'2029-07-30',87,'2026-03-05 20:56:36','2026-03-05 20:57:55'),(85,'20240730',2.0000,0.0000,'2029-07-30',88,'2026-03-05 21:37:13','2026-03-05 21:37:13'),(86,'2107675',2.0000,0.0000,'2028-10-31',89,'2026-03-05 21:41:32','2026-03-05 21:41:32'),(87,'2086425',3.0000,0.0000,'2028-08-31',90,'2026-03-05 21:51:08','2026-03-05 21:51:08'),(88,'2108205',3.0000,0.0000,'2028-10-31',91,'2026-03-05 21:58:24','2026-03-05 21:58:24'),(89,'2119194',2.0000,0.0000,'2027-11-30',92,'2026-03-05 22:00:16','2026-03-05 22:00:16'),(90,'2108305',2.0000,0.0000,'2028-10-31',93,'2026-03-05 22:02:19','2026-03-05 22:02:19'),(91,'2086095',3.0000,0.0000,'2028-08-31',95,'2026-03-05 22:06:15','2026-03-05 22:06:15'),(92,'20210630',100.0000,0.0000,'2029-12-31',96,'2026-03-05 22:20:02','2026-03-05 22:20:02'),(93,'5185844',5.0000,0.0000,'2027-08-31',97,'2026-03-05 22:33:44','2026-03-05 22:33:44'),(94,'42120722',5.0000,0.0000,'2026-07-31',98,'2026-03-05 22:35:20','2026-03-05 22:35:20'),(95,'52200612',3.0000,0.0000,'2027-08-31',99,'2026-03-05 22:41:05','2026-03-05 22:41:05'),(96,'52482121',8.0000,0.0000,'2027-08-31',100,'2026-03-05 22:49:02','2026-03-05 22:49:02'),(97,'50292220',2.0000,0.0000,'2027-12-31',101,'2026-03-05 22:50:48','2026-03-05 22:50:48'),(98,'231215',1.0000,0.0000,'2028-12-31',103,'2026-03-05 23:02:11','2026-03-05 23:02:11'),(99,'20250106',1.0000,0.0000,'2030-05-31',104,'2026-03-06 15:41:12','2026-03-06 15:41:12'),(100,'20250505',1.0000,0.0000,'2030-04-28',105,'2026-03-06 15:43:56','2026-03-06 15:43:56'),(101,'20250505',1.0000,0.0000,'2030-04-30',106,'2026-03-06 15:45:40','2026-03-06 15:45:40'),(102,'2119204',20.0000,0.0000,'2028-11-30',108,'2026-03-06 16:06:46','2026-03-06 17:09:36'),(103,'2118714',20.0000,0.0000,'2028-11-30',109,'2026-03-06 17:16:12','2026-03-06 17:16:12'),(104,'2402006H',20.0000,0.0000,'2026-05-31',110,'2026-03-06 17:43:50','2026-03-06 17:43:50'),(105,'44330001',18.0000,0.0000,'2026-07-31',111,'2026-03-06 17:46:20','2026-03-06 17:46:20'),(106,'2011834',38.0000,0.0000,'2028-01-31',112,'2026-03-06 18:15:10','2026-03-30 22:53:17'),(107,'2106203',20.0000,0.0000,'2027-10-31',113,'2026-03-06 18:17:33','2026-03-06 18:17:33'),(108,'2102724',10.0000,0.0000,'2028-10-31',114,'2026-03-06 18:26:44','2026-03-06 18:26:44'),(109,'2101983',20.0000,0.0000,'2027-10-31',115,'2026-03-06 18:30:21','2026-03-30 22:53:17'),(110,'2030045',24.0000,0.0000,'2028-03-31',116,'2026-03-06 18:34:31','2026-03-06 18:34:31'),(111,'2015374',90.0000,0.0000,'2028-01-31',117,'2026-03-06 18:38:30','2026-03-06 18:38:30'),(112,'B30086',288.0000,0.0000,'2026-12-31',118,'2026-03-13 19:04:21','2026-03-13 19:04:21'),(113,'2430580',80.0000,0.0000,'2027-05-31',119,'2026-03-13 19:09:11','2026-03-13 19:09:11'),(114,'25K716',100.0000,0.0000,'2027-08-31',120,'2026-03-13 19:10:49','2026-03-13 19:10:49'),(115,'2066364',100.0000,0.0000,'2026-06-30',121,'2026-03-13 19:12:39','2026-03-13 19:12:39'),(116,'WP2404',10.0000,0.0000,'2027-01-31',122,'2026-03-13 19:14:51','2026-03-13 19:14:51'),(117,'24H998',53.0000,0.0000,'2027-07-31',123,'2026-03-13 19:18:35','2026-03-13 19:18:35'),(118,'21157254',100.0000,0.0000,'2026-11-30',124,'2026-03-13 19:21:17','2026-03-13 19:21:17'),(119,'2046075',98.0000,0.0000,'2027-04-30',126,'2026-03-13 19:53:44','2026-03-23 20:32:49'),(120,'XJ0090',53.0000,0.0000,'2027-04-30',127,'2026-03-13 20:15:31','2026-03-13 20:15:31'),(121,'2050214',113.0000,0.0000,'2027-05-31',129,'2026-03-14 18:25:47','2026-03-14 18:25:47'),(122,'2060054',175.0000,0.0000,'2027-06-30',130,'2026-03-14 18:35:55','2026-03-14 18:35:55'),(123,'2030304',286.0000,0.0000,'2028-03-31',131,'2026-03-14 18:39:43','2026-03-14 18:39:43'),(124,'2050304',175.0000,0.0000,'2027-05-31',132,'2026-03-14 18:46:26','2026-03-14 18:46:26'),(125,'2020045',37.0000,0.0000,'2027-02-28',133,'2026-03-14 18:57:08','2026-03-14 18:57:08'),(126,'2100234',298.0000,0.0000,'2026-10-31',134,'2026-03-14 19:16:51','2026-03-14 19:16:51'),(127,'2040525',80.0000,0.0000,'2027-04-30',135,'2026-03-14 19:20:16','2026-03-14 19:20:16'),(128,'2110454',150.0000,0.0000,'2027-11-30',136,'2026-03-14 19:22:00','2026-03-14 19:22:00'),(129,'2030254',150.0000,0.0000,'2027-03-31',137,'2026-03-14 19:24:08','2026-03-14 19:24:08'),(130,'240551',40.0000,0.0000,'2027-02-28',138,'2026-03-14 19:40:55','2026-03-14 19:40:55'),(131,'2124934',98.0000,0.0000,'2027-12-31',139,'2026-03-14 21:07:49','2026-03-14 21:33:52'),(132,'2012134',230.0000,0.0000,'2027-01-31',140,'2026-03-14 21:14:38','2026-03-14 21:34:31'),(133,'20902184',99.0000,0.0000,'2027-09-30',141,'2026-03-14 21:24:38','2026-03-14 21:33:02'),(134,'2050405',100.0000,0.0000,'2028-05-31',142,'2026-03-14 21:30:04','2026-03-14 21:30:04'),(135,'2043425',37.0000,0.0000,'2028-04-30',143,'2026-03-14 21:37:04','2026-03-14 21:37:04'),(136,'2051654',74.0000,0.0000,'2027-05-31',144,'2026-03-14 21:55:59','2026-03-14 21:55:59'),(137,'20701425',209.0000,0.0000,'2027-07-31',145,'2026-03-14 22:00:20','2026-03-14 22:00:20'),(138,'20801503',15.0000,0.0000,'2026-08-31',146,'2026-03-14 22:04:05','2026-03-14 22:04:05'),(139,'2037145',78.0000,0.0000,'2028-03-31',147,'2026-03-14 22:07:30','2026-03-14 22:07:30'),(140,'20701445',96.0000,0.0000,'2027-07-31',148,'2026-03-14 22:29:58','2026-03-14 22:29:58'),(141,'20701445',100.0000,0.0000,'2027-07-31',149,'2026-03-14 22:33:19','2026-03-14 22:33:19'),(142,'20702105',168.0000,0.0000,'2027-07-31',150,'2026-03-14 22:58:42','2026-03-14 22:58:42'),(143,'20501085',51.0000,0.0000,'2027-05-31',151,'2026-03-15 20:17:20','2026-03-15 20:17:20'),(144,'25518002',109.0000,0.0000,'2028-07-31',152,'2026-03-15 20:22:09','2026-03-15 20:22:09'),(145,'25517001',28.0000,0.0000,'2027-06-30',153,'2026-03-15 20:26:22','2026-03-15 20:26:22'),(146,'TL355ST25001',33.0000,0.0000,'2028-04-30',154,'2026-03-15 20:30:15','2026-03-15 20:43:51'),(147,'TL355QT24001',0.0000,0.0000,'2027-04-30',155,'2026-03-15 20:41:45','2026-03-15 20:41:45'),(148,'2110413',53.0000,0.0000,'2026-11-30',156,'2026-03-15 20:48:20','2026-03-15 20:48:20'),(149,'BLT22027',60.0000,0.0000,'2026-09-30',157,'2026-03-15 20:51:46','2026-03-15 20:52:40'),(150,'2080455',68.0000,0.0000,'2028-08-31',158,'2026-03-15 20:55:58','2026-03-15 20:55:58'),(151,'2050775',8.0000,0.0000,'2028-05-31',159,'2026-03-15 21:04:35','2026-03-15 21:04:35'),(152,'20200045',1.0000,0.0000,'2027-02-28',160,'2026-03-15 21:27:21','2026-03-15 21:27:21'),(153,'2040045',1.0000,0.0000,'2027-04-30',161,'2026-03-15 21:32:44','2026-03-15 21:32:44'),(154,'25021321',16.0000,0.0000,'2028-02-29',162,'2026-03-15 21:45:15','2026-03-15 21:45:15'),(155,'2513803',26.0000,0.0000,'2028-03-23',163,'2026-03-15 21:51:49','2026-03-15 21:51:49'),(156,'24091611',17.0000,0.0000,'2027-09-15',165,'2026-03-15 22:05:28','2026-03-15 22:05:28'),(157,'2023080064',24.0000,0.0000,'2026-07-31',166,'2026-03-15 22:08:47','2026-03-15 22:08:47'),(158,'2100225',37.0000,0.0000,'2027-10-31',168,'2026-03-21 08:27:38','2026-03-21 08:27:38'),(159,'5T2U',77.0000,0.0000,'2027-03-31',169,'2026-03-21 08:31:53','2026-03-21 08:31:53'),(160,'FV5W',89.0000,0.0000,'2027-06-30',170,'2026-03-21 08:42:56','2026-03-21 08:42:56'),(161,'235E',61.0000,0.0000,'2027-02-28',171,'2026-03-21 08:45:27','2026-03-21 08:45:27'),(162,'2084464',139.0000,0.0000,'2026-08-31',172,'2026-03-21 08:49:39','2026-03-21 08:49:39'),(163,'CA9R',13.0000,0.0000,'2028-05-31',173,'2026-03-21 08:52:28','2026-03-21 08:52:28'),(164,'XK0015',66.0000,0.0000,'2027-12-31',174,'2026-03-21 08:56:22','2026-03-21 08:56:22'),(165,'2101975',100.0000,0.0000,'2027-10-31',175,'2026-03-21 09:01:50','2026-03-21 09:01:50'),(166,'2101044',200.0000,0.0000,'2026-10-31',176,'2026-03-21 09:04:53','2026-03-21 09:04:53'),(167,'2106034',102.0000,0.0000,'2026-10-31',177,'2026-03-21 09:09:47','2026-03-21 09:09:47'),(168,'2114065',118.0000,0.0000,'2027-11-30',178,'2026-03-21 09:49:38','2026-03-21 09:49:38'),(169,'2041785',38.0000,0.0000,'2028-04-30',180,'2026-03-21 10:11:20','2026-03-21 10:11:20'),(170,'2125484',109.0000,0.0000,'2027-12-31',181,'2026-03-21 10:15:49','2026-03-21 10:15:49'),(171,'2106695',583.0000,0.0000,'2027-10-31',182,'2026-03-21 10:19:52','2026-03-30 21:52:24'),(172,'2102',0.0000,0.0000,'2028-10-31',183,'2026-03-21 10:48:05','2026-03-21 10:48:05'),(173,'2125933',100.0000,0.0000,'2026-12-31',184,'2026-03-21 10:52:32','2026-03-21 10:53:04'),(174,'2071175',5.0000,0.0000,'2028-07-31',185,'2026-03-21 11:04:56','2026-03-21 11:04:56'),(175,'2111374',160.0000,0.0000,'2026-11-30',186,'2026-03-21 11:11:17','2026-03-21 11:11:17'),(176,'2090785',265.0000,0.0000,'2028-09-30',187,'2026-03-21 11:17:32','2026-03-21 11:17:32'),(177,'20201685',92.0000,0.0000,'2027-02-28',188,'2026-03-21 11:28:34','2026-03-21 11:28:34'),(178,'2040364',14.0000,0.0000,'2027-04-30',189,'2026-03-21 11:48:26','2026-03-21 11:52:49'),(179,'2106755',280.0000,0.0000,'2027-01-31',190,'2026-03-21 12:16:12','2026-03-21 12:16:12'),(180,'2100184',300.0000,0.0000,'2027-10-31',191,'2026-03-21 12:21:26','2026-03-21 12:21:26'),(181,'916012',3.0000,0.0000,'2027-05-31',192,'2026-03-21 12:27:08','2026-03-21 12:27:08'),(182,'1542844',1.0000,0.0000,'2026-11-30',193,'2026-03-21 12:30:39','2026-03-21 12:30:39'),(183,'2030025',53.0000,0.0000,'2028-03-31',194,'2026-03-21 12:33:38','2026-03-21 12:33:38'),(184,'2120125',5.0000,0.0000,'2028-12-31',195,'2026-03-21 12:36:52','2026-03-21 12:36:52'),(185,'959751',8.0000,0.0000,'2026-12-31',196,'2026-03-21 12:40:54','2026-03-21 12:40:54'),(186,'962967',7.0000,0.0000,'2027-01-31',197,'2026-03-21 12:43:00','2026-03-21 12:43:00'),(187,'2N04804',77.0000,0.0000,'2026-11-30',198,'2026-03-21 12:45:49','2026-03-21 12:45:49'),(188,'976495',120.0000,0.0000,'2027-03-31',199,'2026-03-21 12:47:50','2026-03-21 12:47:50'),(189,'2030325',2.0000,0.0000,'2027-03-31',200,'2026-03-21 12:51:36','2026-03-21 12:51:36'),(190,'2070195',660.0000,0.0000,'2029-07-31',201,'2026-03-21 12:55:42','2026-03-21 22:55:45'),(191,'5E01432',39.0000,0.0000,'2028-06-30',202,'2026-03-21 19:25:45','2026-03-21 19:25:45'),(192,'240654',8.0000,0.0000,'2027-06-30',203,'2026-03-21 19:38:29','2026-03-21 19:38:29'),(193,'250951',36.0000,0.0000,'2028-09-30',204,'2026-03-21 19:56:55','2026-03-23 20:32:49'),(194,'B41334',20.0000,0.0000,'2027-07-31',205,'2026-03-21 20:07:58','2026-03-21 20:07:58'),(195,'25001',10.0000,0.0000,'2028-05-31',206,'2026-03-21 20:12:20','2026-03-21 20:12:20'),(196,'2040565',77.0000,0.0000,'2028-04-30',207,'2026-03-21 20:26:19','2026-03-21 20:26:19'),(197,'233132194',45.0000,0.0000,'2026-07-31',208,'2026-03-21 21:03:32','2026-03-21 21:03:32'),(198,'2507311',37.0000,0.0000,'2028-07-31',209,'2026-03-21 21:07:59','2026-03-21 21:07:59'),(199,'2411109',41.0000,0.0000,'2027-11-30',210,'2026-03-21 21:13:02','2026-03-21 21:13:02'),(200,'21201284',235.0000,0.0000,'2028-12-31',211,'2026-03-21 21:16:14','2026-03-21 21:16:14'),(201,'253122001',77.0000,0.0000,'2028-01-31',212,'2026-03-21 21:28:20','2026-03-21 21:28:20'),(202,'21269864',148.0000,0.0000,'2026-12-31',213,'2026-03-21 22:09:47','2026-03-21 22:09:47'),(203,'20725864',50.0000,0.0000,'2026-07-31',214,'2026-03-21 22:11:19','2026-03-21 22:11:19'),(204,'21100094',32.0000,0.0000,'2027-11-30',215,'2026-03-21 22:13:59','2026-03-21 22:13:59'),(205,'2100203',200.0000,0.0000,'2026-10-31',216,'2026-03-21 22:15:32','2026-03-21 22:15:32'),(206,'ME24L049',19.0000,0.0000,'2026-10-31',217,'2026-03-21 22:23:21','2026-03-21 22:23:21'),(207,'206245',9.0000,0.0000,'2027-06-30',218,'2026-03-21 22:26:08','2026-03-21 22:26:08'),(208,'2020105',118.0000,0.0000,'2027-02-28',219,'2026-03-21 22:33:26','2026-03-21 22:33:26'),(209,'2071323',184.0000,0.0000,'2026-07-31',220,'2026-03-21 22:36:37','2026-03-21 22:36:37'),(210,'2013254',8.0000,0.0000,'2027-01-31',221,'2026-03-21 22:40:32','2026-03-21 22:40:32'),(211,'20301934',37.0000,0.0000,'2027-03-31',222,'2026-03-21 22:43:50','2026-03-21 22:43:50'),(212,'204085',76.0000,0.0000,'2026-10-31',223,'2026-03-21 22:51:06','2026-03-21 22:51:06'),(213,'2090195',196.0000,0.0000,'2028-09-30',224,'2026-03-21 22:54:17','2026-03-21 22:54:17'),(214,'250825',15.0000,0.0000,'2027-08-31',225,'2026-03-22 19:38:29','2026-03-22 19:38:29'),(215,'150125I8',6.0000,0.0000,'2027-01-31',226,'2026-03-22 19:44:34','2026-03-22 19:44:34'),(216,'0412024',16.0000,0.0000,'2026-12-31',227,'2026-03-22 20:14:58','2026-03-22 21:55:49'),(217,'190226',25.0000,0.0000,'2028-02-19',228,'2026-03-22 21:45:12','2026-03-22 21:45:12'),(218,'02278',6.0000,0.0000,'2027-04-11',229,'2026-03-22 21:49:41','2026-03-22 21:49:41'),(219,'09788',6.0000,0.0000,'2027-04-11',230,'2026-03-22 21:51:28','2026-03-22 21:51:28'),(220,'09164',6.0000,0.0000,'2028-02-12',231,'2026-03-22 21:53:55','2026-03-22 21:53:55'),(221,'230226',6.0000,0.0000,'2028-02-23',232,'2026-03-22 22:00:20','2026-03-22 22:00:20'),(222,'670955',3.0000,0.0000,'2028-08-31',233,'2026-03-23 12:59:10','2026-03-23 12:59:10'),(223,'668535',4.0000,0.0000,'2028-08-31',234,'2026-03-23 13:00:47','2026-03-23 13:00:47'),(224,'685435',4.0000,0.0000,'2028-11-30',235,'2026-03-23 13:02:58','2026-03-23 13:02:58'),(225,'687045',2.0000,0.0000,'2028-11-30',236,'2026-03-23 13:04:14','2026-03-23 13:04:14'),(226,'213695',5.0000,0.0000,'2028-12-31',237,'2026-03-23 13:07:31','2026-03-23 13:07:31'),(227,'25211222',6.0000,0.0000,'2028-09-08',238,'2026-03-23 13:12:50','2026-03-23 13:12:50'),(228,'26211204',6.0000,0.0000,'2028-09-18',239,'2026-03-23 13:14:54','2026-03-23 13:14:54'),(229,'12911223',2.0000,0.0000,'2028-05-08',240,'2026-03-23 13:17:00','2026-03-23 13:17:00'),(230,'12911215',2.0000,0.0000,'2028-05-08',241,'2026-03-23 13:18:51','2026-03-23 13:18:51'),(231,'0092',1.0000,0.0000,'2028-02-08',242,'2026-03-23 13:20:38','2026-03-23 13:20:38'),(232,'0798',1.0000,0.0000,'2028-11-04',243,'2026-03-23 13:21:42','2026-03-23 13:21:42'),(233,'0200',1.0000,0.0000,'2028-03-13',244,'2026-03-23 13:24:51','2026-03-23 13:24:51'),(234,'33411206',4.0000,0.0000,'2028-11-29',245,'2026-03-23 13:26:39','2026-03-23 13:26:39'),(235,'21100015',4.0000,0.0000,'2027-11-30',246,'2026-03-23 13:30:49','2026-03-23 13:30:49'),(236,'21200035',3.0000,0.0000,'2027-12-31',247,'2026-03-23 13:33:01','2026-03-23 13:33:01'),(237,'20100016',4.0000,0.0000,'2028-01-31',248,'2026-03-23 13:35:19','2026-03-23 13:38:00'),(238,'21200035',5.0000,0.0000,'2027-12-31',249,'2026-03-23 13:37:46','2026-03-23 13:37:46'),(239,'19911213',6.0000,0.0000,'2028-07-17',250,'2026-03-23 13:41:16','2026-03-23 13:41:16'),(240,'01211203',3.0000,0.0000,'2029-01-11',251,'2026-03-23 13:42:32','2026-03-23 13:42:32'),(241,'18811201',3.0000,0.0000,'2028-07-06',252,'2026-03-23 13:43:57','2026-03-23 13:43:57'),(242,'28811203',3.0000,0.0000,'2028-10-14',253,'2026-03-23 13:44:59','2026-03-23 13:44:59'),(243,'07111223',4.0000,0.0000,'2028-03-11',254,'2026-03-23 13:46:39','2026-03-23 13:46:39'),(244,'339',2.0000,0.0000,'2028-12-21',255,'2026-03-23 13:48:52','2026-03-23 13:51:39'),(245,'5023',1.0000,0.0000,'2028-01-31',256,'2026-03-23 13:50:50','2026-03-23 13:50:50'),(246,'24811204',2.0000,0.0000,'2028-09-04',257,'2026-03-23 13:53:44','2026-03-23 13:54:01'),(247,'20100026',3.0000,0.0000,'2028-01-31',258,'2026-03-23 13:55:39','2026-03-23 13:55:39'),(248,'20600015',3.0000,0.0000,'2027-06-30',259,'2026-03-23 13:57:07','2026-03-23 13:57:07'),(249,'20100015',1.0000,0.0000,'2027-01-31',260,'2026-03-23 13:58:44','2026-03-23 13:58:44'),(250,'20300025',2.0000,0.0000,'2027-03-31',261,'2026-03-23 14:00:05','2026-03-23 14:00:05'),(251,'11211318',1.0000,0.0000,'2028-04-21',262,'2026-03-23 14:02:43','2026-03-23 14:02:43'),(252,'13411320',1.0000,0.0000,'2028-05-13',263,'2026-03-23 14:05:09','2026-03-23 14:05:09'),(253,'24611314',3.0000,0.0000,'2028-09-02',264,'2026-03-23 14:07:02','2026-03-23 14:07:02'),(254,'VDG300815',3.0000,0.0000,'2028-07-31',265,'2026-03-23 14:10:14','2026-03-23 14:10:14'),(255,'VDA 190052',3.0000,0.0000,'2028-01-31',266,'2026-03-23 14:11:45','2026-03-23 14:11:45'),(256,'VFA 140610',2.0000,0.0000,'2028-01-31',267,'2026-03-23 14:14:53','2026-03-23 14:14:53'),(257,'268112',1.0000,0.0000,'2026-09-23',268,'2026-03-23 14:17:10','2026-03-23 14:17:10'),(258,'VFA 151626',1.0000,0.0000,'2027-01-31',269,'2026-03-23 14:18:36','2026-03-23 14:18:36'),(259,'VFA 131728',3.0000,0.0000,'2028-01-31',270,'2026-03-23 14:19:39','2026-03-23 14:19:39'),(260,'4285435300',3.0000,0.0000,'2027-09-11',271,'2026-03-23 14:26:02','2026-03-23 14:26:02'),(261,'4311435300',3.0000,0.0000,'2027-10-06',272,'2026-03-23 14:27:44','2026-03-23 14:27:44'),(262,'5330435300',3.0000,0.0000,'2026-10-26',273,'2026-03-23 14:28:44','2026-03-23 14:28:44'),(263,'4011435300',4.0000,0.0000,'2026-12-11',274,'2026-03-23 14:30:03','2026-03-23 14:30:19'),(264,'5328366207',4.0000,0.0000,'2028-10-31',275,'2026-03-23 14:31:13','2026-03-23 14:36:31'),(265,'4038435301',4.0000,0.0000,'2027-01-07',276,'2026-03-23 14:32:09','2026-03-23 14:32:09'),(266,'5067435300',4.0000,0.0000,'2028-02-08',277,'2026-03-23 14:33:11','2026-03-23 14:33:11'),(267,'3290435300',3.0000,0.0000,'2026-09-17',278,'2026-03-23 14:36:10','2026-03-23 14:36:10'),(268,'5118435300',2.0000,0.0000,'2028-03-27',279,'2026-03-23 14:37:54','2026-03-23 14:37:54'),(269,'4354435300',6.0000,0.0000,'2027-11-18',280,'2026-03-23 14:43:04','2026-03-23 14:43:04'),(270,'5096435300',4.0000,0.0000,'2028-03-06',281,'2026-03-23 14:45:14','2026-03-23 14:45:14'),(271,'5269435300',1.0000,0.0000,'2028-09-03',282,'2026-03-23 14:46:46','2026-03-23 14:46:46'),(272,'5339435300',3.0000,0.0000,'2028-11-08',283,'2026-03-23 14:48:56','2026-03-23 14:48:56'),(273,'5304435300',2.0000,0.0000,'2028-09-30',284,'2026-03-23 14:50:41','2026-03-23 14:50:41'),(274,'5165435300',2.0000,0.0000,'2028-05-13',285,'2026-03-23 14:51:58','2026-03-23 14:51:58'),(275,'5320435300',2.0000,0.0000,'2028-10-15',286,'2026-03-23 14:53:57','2026-03-23 14:53:57'),(276,'50624353HA',1.0000,0.0000,'2028-02-28',287,'2026-03-23 14:57:49','2026-03-23 14:57:49'),(277,'2309039',6.0000,0.0000,'2027-09-30',288,'2026-03-23 15:15:17','2026-03-23 15:15:17'),(278,'2309039',6.0000,0.0000,'2027-09-30',289,'2026-03-23 15:17:20','2026-03-23 15:17:20'),(279,'L0376A',22.0000,0.0000,'2027-04-30',290,'2026-03-23 15:23:59','2026-03-23 15:23:59'),(280,'L0067A',25.0000,0.0000,'2027-01-31',291,'2026-03-23 15:36:04','2026-03-23 15:36:04'),(281,'76421',100.0000,0.0000,'2028-12-31',292,'2026-03-23 15:42:33','2026-03-23 15:42:33'),(282,'03516',2.0000,0.0000,'2028-05-31',293,'2026-03-23 15:46:28','2026-03-29 21:32:54'),(283,'5308D83701',250.0000,0.0000,'2028-12-31',294,'2026-03-23 15:48:28','2026-03-23 15:48:28'),(284,'20426',1.0000,0.0000,'2030-04-30',295,'2026-03-23 15:56:39','2026-03-23 15:56:39'),(285,'20712',1.0000,0.0000,'2030-05-30',296,'2026-03-23 15:57:33','2026-03-23 15:57:33'),(286,'5055435300',6.0000,0.0000,'2028-01-23',297,'2026-03-23 16:01:31','2026-03-23 16:01:31'),(287,'5051435300',2.0000,0.0000,'2028-01-20',298,'2026-03-23 16:05:04','2026-03-23 16:05:04'),(288,'5055435300',4.0000,0.0000,'2028-01-23',299,'2026-03-23 16:06:15','2026-03-23 16:06:15'),(289,'6015435300',6.0000,0.0000,'2028-12-14',300,'2026-03-23 16:08:42','2026-03-23 16:08:42'),(290,'5352435300',6.0000,0.0000,'2028-11-18',301,'2026-03-23 16:09:54','2026-03-23 16:09:54'),(291,'6002435301',6.0000,0.0000,'2028-12-02',302,'2026-03-23 16:10:56','2026-03-23 16:10:56'),(292,'5340435300',4.0000,0.0000,'2028-11-06',303,'2026-03-23 16:12:06','2026-03-23 16:12:06'),(293,'4028435350',1.0000,0.0000,'2026-12-28',304,'2026-03-23 16:14:45','2026-03-23 16:14:45'),(294,'5361435300',1.0000,0.0000,'2028-11-28',305,'2026-03-23 16:15:47','2026-03-23 16:15:47'),(295,'5284435300',2.0000,0.0000,'2028-09-11',306,'2026-03-23 16:16:43','2026-03-23 16:16:43'),(296,'4235435300',2.0000,0.0000,'2027-07-22',307,'2026-03-23 16:17:35','2026-03-23 16:17:35'),(297,'5245366204',2.0000,0.0000,'2028-08-31',308,'2026-03-23 16:18:31','2026-03-23 16:18:31'),(298,'5276435300',2.0000,0.0000,'2028-09-03',309,'2026-03-23 16:19:35','2026-03-23 16:19:35'),(299,'5212435300',3.0000,0.0000,'2028-06-30',310,'2026-03-23 16:20:19','2026-03-23 16:20:19'),(300,'5292435300',3.0000,0.0000,'2028-09-19',311,'2026-03-23 16:21:00','2026-03-23 16:21:00'),(301,'5343435300',3.0000,0.0000,'2028-11-08',312,'2026-03-23 16:21:53','2026-03-23 16:21:53'),(302,'5336435300',3.0000,0.0000,'2028-11-02',313,'2026-03-23 16:22:52','2026-03-23 16:22:52'),(303,'4283435300',4.0000,0.0000,'2027-09-09',314,'2026-03-23 16:24:05','2026-03-23 16:24:05'),(304,'NSOC65426',1.0000,0.0000,'2027-10-08',315,'2026-03-23 16:30:07','2026-03-23 16:30:07'),(305,'NSOC75567',1.0000,0.0000,'2027-08-28',316,'2026-03-23 16:34:17','2026-03-23 16:34:17'),(306,'NSOC75566',1.0000,0.0000,'2027-12-01',317,'2026-03-23 16:35:48','2026-03-23 16:35:48'),(307,'NSOC66053',2.0000,0.0000,'2027-01-13',318,'2026-03-23 16:36:49','2026-03-23 16:36:49'),(308,'21100025',3.0000,0.0000,'2027-11-30',319,'2026-03-23 16:37:34','2026-03-23 16:37:34'),(309,'NSOC65491',1.0000,0.0000,'2027-10-20',320,'2026-03-23 16:39:21','2026-03-23 16:39:21'),(310,'NSOC65770',1.0000,0.0000,'2027-10-24',321,'2026-03-23 16:40:15','2026-03-23 16:40:15'),(311,'NSOC65531',3.0000,0.0000,'2027-06-09',322,'2026-03-23 16:41:18','2026-03-23 16:41:18'),(312,'NSOC65295',3.0000,0.0000,'2027-09-11',323,'2026-03-23 16:42:17','2026-03-23 16:42:17'),(313,'161105',2.0000,0.0000,'2027-06-10',324,'2026-03-23 16:45:52','2026-03-23 16:45:52'),(314,'180105',4.0000,0.0000,'2027-06-29',325,'2026-03-23 16:46:48','2026-03-23 16:46:48'),(315,'169106',5.0000,0.0000,'2027-06-18',326,'2026-03-23 16:47:58','2026-03-23 18:16:01'),(316,'210106',5.0000,0.0000,'2027-05-29',327,'2026-03-23 16:48:47','2026-03-23 18:16:42'),(317,'233105',12.0000,0.0000,'2026-08-20',328,'2026-03-23 16:49:41','2026-03-23 18:16:23'),(318,'310106',12.0000,0.0000,'2027-11-06',329,'2026-03-23 16:50:36','2026-03-23 16:51:06'),(319,'20100308',1.0000,0.0000,'2028-12-31',330,'2026-03-23 16:58:26','2026-03-23 16:58:26'),(320,'20100308',2.0000,0.0000,'2028-12-31',331,'2026-03-23 16:59:56','2026-03-23 16:59:56'),(321,'20100308',2.0000,0.0000,'2028-12-31',332,'2026-03-23 17:00:34','2026-03-23 17:00:34'),(322,'K70535L223E',2.0000,0.0000,'2028-03-31',333,'2026-03-23 17:02:11','2026-03-23 17:02:11'),(323,'K71014L230E',2.0000,0.0000,'2027-01-31',334,'2026-03-23 17:05:34','2026-03-23 17:05:34'),(324,'K72765L230',4.0000,0.0000,'2028-06-30',335,'2026-03-23 17:11:27','2026-03-23 17:11:27'),(325,'20240430',8.0000,0.0000,'2029-04-30',336,'2026-03-23 17:15:55','2026-03-23 17:19:51'),(326,'20250501',3.0000,0.0000,'2030-05-30',337,'2026-03-23 17:17:56','2026-03-23 17:17:56'),(327,'20250501',2.0000,0.0000,'2030-05-30',338,'2026-03-23 17:21:33','2026-03-23 17:21:33'),(328,'20250501',2.0000,0.0000,'2030-05-30',339,'2026-03-23 17:23:23','2026-03-23 17:23:23'),(329,'2025-05-01',5.0000,0.0000,'2030-05-30',340,'2026-03-23 17:24:29','2026-03-23 17:24:29'),(330,'2096835',1.0000,0.0000,'2028-09-30',341,'2026-03-23 20:14:41','2026-03-23 20:14:41'),(331,'2107685',2.0000,0.0000,'2028-10-31',342,'2026-03-23 20:16:25','2026-03-23 20:16:25'),(332,'2096785',2.0000,0.0000,'2028-09-30',343,'2026-03-23 20:18:08','2026-03-23 20:18:08'),(333,'5086435300',1.0000,0.0000,'2028-02-26',344,'2026-03-23 22:22:51','2026-03-23 22:22:51'),(334,'5340435300',1.0000,0.0000,'2028-12-17',345,'2026-03-23 22:25:16','2026-03-23 22:25:16'),(335,'20240810',4.0000,0.0000,'2030-12-31',346,'2026-03-24 15:51:48','2026-03-24 15:51:48'),(336,'20240125',4.0000,0.0000,'2030-12-31',347,'2026-03-24 15:54:54','2026-03-24 15:54:54'),(337,'20240920',7.0000,0.0000,'2030-12-31',348,'2026-03-24 15:56:54','2026-03-24 15:56:54'),(338,'20241120',4.0000,0.0000,'2030-12-31',349,'2026-03-24 16:02:17','2026-03-24 16:02:17'),(339,'250504',9.0000,0.0000,'2029-05-04',350,'2026-03-24 16:03:56','2026-03-24 16:03:56'),(340,'20231201',22.0000,0.0000,'2030-12-31',351,'2026-03-24 16:09:42','2026-03-24 16:09:42'),(341,'20231010',15.0000,0.0000,'2030-12-31',352,'2026-03-24 16:41:56','2026-03-24 16:41:56'),(342,'20211020',40.0000,0.0000,'2030-12-31',353,'2026-03-24 16:43:35','2026-03-24 16:43:35'),(343,'20211020',18.0000,0.0000,'2030-12-31',354,'2026-03-24 16:46:49','2026-03-24 16:46:49'),(344,'20231010',14.0000,0.0000,'2030-12-31',355,'2026-03-24 16:52:51','2026-03-24 16:52:51'),(345,'20231201',31.0000,0.0000,'2030-12-31',356,'2026-03-24 16:57:10','2026-03-24 16:57:10'),(346,'042024',3.0000,0.0000,'2029-04-30',357,'2026-03-24 16:59:55','2026-03-24 16:59:55'),(347,'042024',5.0000,0.0000,'2029-04-30',358,'2026-03-24 17:02:19','2026-03-24 17:02:19'),(348,'20250815',12.0000,0.0000,'2030-12-31',359,'2026-03-24 17:03:28','2026-03-24 17:03:28'),(349,'QZ20250919K',1.0000,0.0000,'2028-09-18',360,'2026-03-24 17:10:59','2026-03-24 17:11:46'),(350,'112062025',1.0000,0.0000,'2028-06-30',361,'2026-03-24 17:13:47','2026-03-24 17:14:13'),(351,'2503543',2.0000,0.0000,'2027-12-31',362,'2026-03-27 18:47:17','2026-03-27 18:48:13'),(352,'XA5I001',99.0000,0.0000,'2027-08-31',363,'2026-03-28 20:35:05','2026-03-29 21:32:55'),(353,'225034',150.0000,0.0000,'2028-04-30',364,'2026-03-28 20:39:14','2026-03-28 20:39:14'),(354,'XV5F001',49.0000,0.0000,'2028-05-31',365,'2026-03-28 20:43:55','2026-03-28 20:43:55'),(355,'505156',1.0000,0.0000,'2028-05-31',366,'2026-03-28 20:48:30','2026-03-28 20:49:27'),(356,'508274',6.0000,0.0000,'2028-08-31',367,'2026-03-28 21:07:22','2026-03-28 21:07:22'),(357,'225013',36.0000,0.0000,'2027-03-31',368,'2026-03-29 23:11:22','2026-03-29 23:11:22'),(358,'501228',360.0000,0.0000,'2028-01-30',369,'2026-03-29 23:16:04','2026-03-29 23:16:04'),(359,'201456',200.0000,0.0000,'2028-01-31',370,'2026-03-30 14:42:01','2026-03-30 14:42:01'),(360,'211765',6.0000,0.0000,'2027-11-30',371,'2026-03-30 14:45:42','2026-03-30 14:45:42'),(361,'2505081',6.0000,0.0000,'2028-04-30',372,'2026-03-30 15:00:26','2026-03-30 15:00:26'),(362,'202295',200.0000,0.0000,'2027-02-28',373,'2026-03-30 15:04:08','2026-03-30 15:04:08'),(363,'202286',9.0000,0.0000,'2028-02-29',374,'2026-03-30 15:06:34','2026-03-30 15:06:34'),(364,'211745',16.0000,0.0000,'2027-11-30',375,'2026-03-30 15:24:12','2026-03-30 15:24:12'),(365,'212465',6.0000,0.0000,'2027-12-31',376,'2026-03-30 18:12:11','2026-03-30 18:12:11'),(366,'APH10325',58.0000,0.0000,'2028-07-30',377,'2026-03-30 18:17:24','2026-03-30 18:17:24'),(367,'208425',300.0000,0.0000,'2028-07-30',378,'2026-03-30 18:26:22','2026-03-30 18:26:22'),(368,'R2090945',37.0000,0.0000,'2030-09-30',379,'2026-03-30 22:30:28','2026-03-30 22:53:17'),(369,'5084435',7.0000,0.0000,'2027-02-28',380,'2026-03-30 22:36:33','2026-03-30 22:53:17'),(370,'RN04250428',42.0000,0.0000,'2028-04-30',381,'2026-03-30 22:40:41','2026-03-30 22:53:17'),(371,'20701265',1.0000,0.0000,'2030-07-31',382,'2026-03-30 22:44:58','2026-03-30 22:53:17'),(372,'210665',5.0000,0.0000,'2027-10-31',383,'2026-03-31 15:00:11','2026-03-31 15:00:11'),(373,'20290685',100.0000,0.0000,'2028-02-29',384,'2026-03-31 15:03:20','2026-03-31 15:03:20'),(374,'BV5004B',20.0000,0.0000,'2028-01-31',385,'2026-03-31 15:08:36','2026-03-31 15:08:36'),(375,'21053444',40.0000,0.0000,'2027-10-31',386,'2026-03-31 15:13:53','2026-03-31 15:13:53'),(376,'21000534',6.0000,0.0000,'2027-10-30',387,'2026-03-31 15:19:01','2026-03-31 15:19:01'),(377,'1570543',1.0000,0.0000,'2027-10-30',388,'2026-03-31 15:22:31','2026-03-31 15:22:31'),(378,'248503482',3.0000,0.0000,'2027-07-31',389,'2026-03-31 15:26:53','2026-03-31 15:26:53'),(379,'2',6.0000,0.0000,'2026-12-31',390,'2026-03-31 15:32:12','2026-03-31 15:32:12'),(380,'002052025',2.0000,0.0000,'2026-12-31',391,'2026-03-31 15:34:54','2026-03-31 15:34:54'),(381,'210685',4.0000,0.0000,'2027-10-31',392,'2026-03-31 15:46:13','2026-03-31 15:53:57'),(382,'20517825',5.0000,0.0000,'2028-05-30',393,'2026-03-31 15:57:12','2026-03-31 15:57:12'),(383,'20744305',3.0000,0.0000,'2027-05-31',394,'2026-03-31 16:07:19','2026-03-31 16:07:19'),(384,'5175000303',5.0000,0.0000,'2028-03-31',395,'2026-03-31 16:10:50','2026-03-31 16:10:50'),(385,'20959905',6.0000,0.0000,'2027-09-30',396,'2026-03-31 16:14:09','2026-03-31 16:14:09'),(386,'2081635',3.0000,0.0000,'2027-08-31',397,'2026-03-31 16:17:30','2026-03-31 16:17:30'),(387,'2122595',24.0000,0.0000,'2028-12-31',398,'2026-03-31 16:19:24','2026-03-31 16:19:24'),(388,'209B031',2.0000,0.0000,'2026-03-31',399,'2026-03-31 16:35:56','2026-03-31 16:35:56'),(389,'2206075',2.0000,0.0000,'2027-08-31',400,'2026-03-31 17:14:20','2026-03-31 17:14:20'),(390,'2080855',2.0000,0.0000,'2028-08-31',401,'2026-03-31 19:54:36','2026-03-31 19:54:36'),(391,'ARMGV0',9.0000,0.0000,'2027-07-31',402,'2026-03-31 19:59:29','2026-03-31 20:00:14'),(392,'2050015',9.0000,0.0000,'2027-05-30',403,'2026-03-31 20:02:14','2026-03-31 20:02:14'),(393,'2010026',12.0000,0.0000,'2031-01-31',404,'2026-03-31 21:42:14','2026-03-31 21:42:14'),(394,'ARLUEG',30.0000,0.0000,'2027-04-30',405,'2026-03-31 21:46:11','2026-03-31 21:46:11'),(395,'2010026',24.0000,0.0000,'2031-01-31',406,'2026-03-31 21:48:23','2026-03-31 21:48:23'),(396,'2060105',600.0000,0.0000,'2028-06-30',407,'2026-03-31 21:56:19','2026-03-31 21:56:19'),(397,'253132009',60.0000,0.0000,'2028-01-31',408,'2026-03-31 21:59:38','2026-03-31 21:59:38'),(398,'53094354L0',288.0000,0.0000,'2027-03-31',409,'2026-04-01 19:22:05','2026-04-01 19:22:05'),(399,'253052111',300.0000,0.0000,'2028-08-31',410,'2026-04-01 19:31:32','2026-04-01 19:31:32'),(400,'3125063',100.0000,0.0000,'2028-01-31',411,'2026-04-01 19:43:03','2026-04-01 19:43:03');
COMMIT;

-- Dumped table `item_lots_group` with 400 row(s)
--

--
-- Table structure for table `item_mold_cavities`
--

CREATE TABLE `item_mold_cavities` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `cat_item_mold_cavities_id` int(10) unsigned NOT NULL,
  `active` tinyint(4) DEFAULT 1 COMMENT 'Define si se encuentra activo',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_mold_cavities`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_mold_cavities` with 0 row(s)
--

--
-- Table structure for table `item_mold_properties`
--

CREATE TABLE `item_mold_properties` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `cat_item_mold_properties_id` int(10) unsigned NOT NULL,
  `active` tinyint(4) DEFAULT 1 COMMENT 'Define si se encuentra activo',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_mold_properties`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_mold_properties` with 0 row(s)
--

--
-- Table structure for table `item_movement`
--

CREATE TABLE `item_movement` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con item',
  `quantity` decimal(12,4) DEFAULT 0.0000 COMMENT 'Cantidad de venta del item',
  `date_of_movement` timestamp NULL DEFAULT NULL,
  `countable` tinyint(3) unsigned DEFAULT 0 COMMENT 'Define si se toma en cuenta para el conteo de inventario',
  `establishment_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `contract_item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `devolution_item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `dispatch_item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `document_item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `expense_item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `fixed_asset_item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `fixed_asset_purchase_item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `order_form_item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `order_note_item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `purchase_item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `purchase_order_item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `purchase_quotation_item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `quotation_item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `sale_note_item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `sale_opportunity_item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `technical_service_item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con la tabla',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_movement`
--

SET autocommit=0;
INSERT INTO `item_movement` VALUES (1,1,-2.0000,'2026-02-27 22:15:21',1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,'2026-02-27 22:15:21','2026-02-27 22:15:21'),(2,86,-1.0000,'2026-03-05 20:48:44',1,1,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-05 20:48:44','2026-03-05 20:48:44'),(3,1,-5.0000,'2026-03-14 19:06:38',1,1,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-14 19:06:38','2026-03-14 19:06:38'),(4,179,-2.0000,'2026-03-21 22:55:45',1,1,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-21 22:55:45','2026-03-21 22:55:45'),(5,182,-2.0000,'2026-03-21 22:55:45',1,1,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-21 22:55:45','2026-03-21 22:55:45'),(6,201,-1.0000,'2026-03-21 22:55:45',1,1,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-21 22:55:45','2026-03-21 22:55:45'),(7,183,-1.0000,'2026-03-23 18:17:47',1,1,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-23 18:17:47','2026-03-23 18:17:47'),(8,182,-1.0000,'2026-03-23 18:17:47',1,1,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-23 18:17:47','2026-03-23 18:17:47'),(9,204,-3.0000,'2026-03-23 20:32:48',1,1,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-23 20:32:49','2026-03-23 20:32:49'),(10,126,-2.0000,'2026-03-23 20:32:48',1,1,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-23 20:32:49','2026-03-23 20:32:49'),(11,182,-4.0000,'2026-03-23 20:32:48',1,1,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-23 20:32:49','2026-03-23 20:32:49'),(12,362,-1.0000,'2026-03-27 18:48:13',1,1,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-27 18:48:13','2026-03-27 18:48:13'),(13,4,-1.0000,'2026-03-29 21:32:54',1,1,0,0,0,13,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-29 21:32:54','2026-03-29 21:32:54'),(14,293,-1.0000,'2026-03-29 21:32:54',1,1,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-29 21:32:55','2026-03-29 21:32:55'),(15,363,-1.0000,'2026-03-29 21:32:54',1,1,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-29 21:32:55','2026-03-29 21:32:55'),(16,182,-50.0000,'2026-03-30 21:52:24',1,1,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-30 21:52:24','2026-03-30 21:52:24'),(17,112,-1.0000,'2026-03-30 22:49:59',1,1,0,0,0,17,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-30 22:50:00','2026-03-30 22:50:00'),(18,115,-10.0000,'2026-03-30 22:49:59',1,1,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-30 22:50:00','2026-03-30 22:50:00'),(19,382,-1.0000,'2026-03-30 22:49:59',1,1,0,0,0,19,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-30 22:50:00','2026-03-30 22:50:00'),(20,380,-1.0000,'2026-03-30 22:49:59',1,1,0,0,0,20,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-30 22:50:00','2026-03-30 22:50:00'),(21,381,-4.0000,'2026-03-30 22:49:59',1,1,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-30 22:50:00','2026-03-30 22:50:00'),(22,379,-3.0000,'2026-03-30 22:49:59',1,1,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-30 22:50:00','2026-03-30 22:50:00'),(23,167,-1.0000,'2026-03-30 22:49:59',1,1,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-30 22:50:00','2026-03-30 22:50:00'),(24,380,-1.0000,'2026-03-30 22:53:17',1,1,0,0,0,24,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-30 22:53:17','2026-03-30 22:53:17'),(25,382,-1.0000,'2026-03-30 22:53:17',1,1,0,0,0,25,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-30 22:53:17','2026-03-30 22:53:17'),(26,381,-4.0000,'2026-03-30 22:53:17',1,1,0,0,0,26,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-30 22:53:17','2026-03-30 22:53:17'),(27,379,-3.0000,'2026-03-30 22:53:17',1,1,0,0,0,27,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-30 22:53:17','2026-03-30 22:53:17'),(28,167,-1.0000,'2026-03-30 22:53:17',1,1,0,0,0,28,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-30 22:53:17','2026-03-30 22:53:17'),(29,112,-1.0000,'2026-03-30 22:53:17',1,1,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-30 22:53:17','2026-03-30 22:53:17'),(30,115,-10.0000,'2026-03-30 22:53:17',1,1,0,0,0,30,0,0,0,0,0,0,0,0,0,0,0,0,'2026-03-30 22:53:17','2026-03-30 22:53:17');
COMMIT;

-- Dumped table `item_movement` with 30 row(s)
--

--
-- Table structure for table `item_movement_rel_extra`
--

CREATE TABLE `item_movement_rel_extra` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned DEFAULT 0,
  `item_movement_id` int(10) unsigned DEFAULT 0,
  `item_color_id` int(10) unsigned DEFAULT 0,
  `item_status_id` int(10) unsigned DEFAULT 0,
  `item_unit_business_id` int(10) unsigned DEFAULT 0,
  `item_mold_cavities_id` int(10) unsigned DEFAULT 0,
  `item_package_measurements_id` int(10) unsigned DEFAULT 0,
  `item_units_per_package_id` int(10) unsigned DEFAULT 0,
  `item_mold_properties_id` int(10) unsigned DEFAULT 0,
  `item_product_family_id` int(10) unsigned DEFAULT 0,
  `item_size_id` int(10) unsigned DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `item_movement_rel_extra_item_movement_id_foreign` (`item_movement_id`),
  KEY `index_item_status_id` (`item_status_id`),
  KEY `index_item_unit_business_id` (`item_unit_business_id`),
  KEY `index_item_mold_cavities_id` (`item_mold_cavities_id`),
  KEY `index_item_package_measurements_id` (`item_package_measurements_id`),
  KEY `index_item_units_per_package_id` (`item_units_per_package_id`),
  KEY `index_item_mold_properties_id` (`item_mold_properties_id`),
  KEY `index_item_product_family_id` (`item_product_family_id`),
  KEY `index_item_size_id` (`item_size_id`),
  CONSTRAINT `item_movement_rel_extra_item_movement_id_foreign` FOREIGN KEY (`item_movement_id`) REFERENCES `item_movement` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_movement_rel_extra`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_movement_rel_extra` with 0 row(s)
--

--
-- Table structure for table `item_package_measurements`
--

CREATE TABLE `item_package_measurements` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `cat_item_package_measurements_id` int(10) unsigned NOT NULL,
  `active` tinyint(4) DEFAULT 1 COMMENT 'Define si se encuentra activo',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_package_measurements`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_package_measurements` with 0 row(s)
--

--
-- Table structure for table `item_product_family`
--

CREATE TABLE `item_product_family` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `cat_item_product_family_id` int(10) unsigned NOT NULL,
  `active` tinyint(4) DEFAULT 1 COMMENT 'Define si se encuentra activo',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_product_family`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_product_family` with 0 row(s)
--

--
-- Table structure for table `item_rel_suscription_plans`
--

CREATE TABLE `item_rel_suscription_plans` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con items',
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `suscription_plan_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con planes de suscripcion',
  `quantity` decimal(12,2) DEFAULT 0.00,
  `unit_value` decimal(16,2) DEFAULT 0.00,
  `affectation_igv_type_id` char(255) DEFAULT NULL,
  `total_base_igv` decimal(12,2) DEFAULT 0.00,
  `percentage_igv` decimal(12,2) DEFAULT 0.00,
  `total_igv` decimal(12,2) DEFAULT 0.00,
  `system_isc_type_id` char(255) DEFAULT NULL,
  `total_base_isc` decimal(12,2) DEFAULT 0.00,
  `percentage_isc` decimal(12,2) DEFAULT 0.00,
  `total_isc` decimal(12,2) DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) DEFAULT 0.00,
  `percentage_other_taxes` decimal(12,2) DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) DEFAULT 0.00,
  `total_taxes` decimal(12,2) DEFAULT 0.00,
  `price_type_id` char(255) DEFAULT NULL,
  `unit_price` decimal(16,6) DEFAULT 0.000000,
  `total_value` decimal(12,2) DEFAULT 0.00,
  `total_charge` decimal(12,2) DEFAULT 0.00,
  `total_discount` decimal(12,2) DEFAULT 0.00,
  `total` decimal(12,2) DEFAULT 0.00,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `additional_information` text DEFAULT NULL,
  `warehouse_id` int(10) unsigned DEFAULT 0,
  `name_product_pdf` longtext DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_rel_suscription_plans`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_rel_suscription_plans` with 0 row(s)
--

--
-- Table structure for table `item_sets`
--

CREATE TABLE `item_sets` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `individual_item_id` int(10) unsigned NOT NULL,
  `quantity` decimal(12,4) NOT NULL DEFAULT 1.0000,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `item_sets_item_id_foreign` (`item_id`),
  KEY `item_sets_individual_item_id_foreign` (`individual_item_id`),
  CONSTRAINT `item_sets_individual_item_id_foreign` FOREIGN KEY (`individual_item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `item_sets_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_sets`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_sets` with 0 row(s)
--

--
-- Table structure for table `item_size`
--

CREATE TABLE `item_size` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `cat_item_size_id` int(10) unsigned NOT NULL,
  `active` tinyint(4) DEFAULT 1 COMMENT 'Define si se encuentra activo',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_size`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_size` with 0 row(s)
--

--
-- Table structure for table `item_status`
--

CREATE TABLE `item_status` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `cat_item_status_id` int(10) unsigned NOT NULL,
  `active` tinyint(4) DEFAULT 1 COMMENT 'Define si se encuentra activo',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_status`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_status` with 0 row(s)
--

--
-- Table structure for table `item_supplies`
--

CREATE TABLE `item_supplies` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `individual_item_id` int(10) unsigned NOT NULL,
  `quantity` decimal(13,3) DEFAULT 0.000,
  `unit_price` decimal(12,2) DEFAULT 0.00,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `item_supplies_item_id_foreign` (`item_id`),
  KEY `item_supplies_individual_item_id_foreign` (`individual_item_id`),
  CONSTRAINT `item_supplies_individual_item_id_foreign` FOREIGN KEY (`individual_item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `item_supplies_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_supplies`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_supplies` with 0 row(s)
--

--
-- Table structure for table `item_tags`
--

CREATE TABLE `item_tags` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `tag_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `item_tags_item_id_foreign` (`item_id`),
  KEY `item_tags_tag_id_foreign` (`tag_id`),
  CONSTRAINT `item_tags_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`) ON DELETE CASCADE,
  CONSTRAINT `item_tags_tag_id_foreign` FOREIGN KEY (`tag_id`) REFERENCES `tags` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_tags`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_tags` with 0 row(s)
--

--
-- Table structure for table `item_types`
--

CREATE TABLE `item_types` (
  `id` char(2) NOT NULL,
  `description` varchar(255) NOT NULL,
  KEY `item_types_id_index` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_types`
--

SET autocommit=0;
INSERT INTO `item_types` VALUES ('01','Producto'),('02','Servicio');
COMMIT;

-- Dumped table `item_types` with 2 row(s)
--

--
-- Table structure for table `item_units_per_package`
--

CREATE TABLE `item_units_per_package` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `cat_item_units_per_package_id` int(10) unsigned NOT NULL,
  `active` tinyint(4) DEFAULT 1 COMMENT 'Define si se encuentra activo',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_units_per_package`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_units_per_package` with 0 row(s)
--

--
-- Table structure for table `item_unit_business`
--

CREATE TABLE `item_unit_business` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `cat_item_unit_business_id` int(10) unsigned NOT NULL,
  `active` tinyint(4) DEFAULT 1 COMMENT 'Define si se encuentra activo',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_unit_business`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_unit_business` with 0 row(s)
--

--
-- Table structure for table `item_unit_types`
--

CREATE TABLE `item_unit_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `description` varchar(255) NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `unit_type_id` varchar(255) NOT NULL,
  `quantity_unit` decimal(12,4) NOT NULL,
  `price1` decimal(12,4) NOT NULL,
  `price2` decimal(12,4) NOT NULL,
  `price3` decimal(12,4) NOT NULL,
  `price_default` tinyint(1) NOT NULL DEFAULT 2,
  `barcode` varchar(150) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `item_unit_types_unit_type_id_foreign` (`unit_type_id`),
  KEY `item_unit_types_item_id_foreign` (`item_id`),
  KEY `item_unit_types_barcode_index` (`barcode`),
  CONSTRAINT `item_unit_types_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `item_unit_types_unit_type_id_foreign` FOREIGN KEY (`unit_type_id`) REFERENCES `cat_unit_types` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_unit_types`
--

SET autocommit=0;
INSERT INTO `item_unit_types` VALUES (1,'X UND',2,'NIU',2.0000,0.0000,0.0000,0.0000,2,'1NIU2.00'),(2,'X BLISTER',2,'NIU',18.0000,0.0000,0.0000,0.0000,2,'2NIU18'),(3,'CAJA',2,'NIU',50.0000,0.0000,0.0000,0.0000,2,'3NIU50'),(4,'X UND',3,'NIU',1.0000,0.0000,0.0000,0.0000,2,'4NIU1.00'),(5,'X BLIST',3,'NIU',8.0000,0.0000,0.0000,0.0000,2,'5NIU8.00'),(6,'X CAJA',3,'NIU',30.0000,0.0000,0.0000,0.0000,2,'6NIU30.00'),(7,'X UND',108,'NIU',2.5000,2.5000,0.0000,0.0000,2,'7NIU2.5'),(8,'CAJA',108,'NIU',45.0000,45.0000,0.0000,0.0000,2,'8NIU45'),(9,'Unidad',409,'NIU',1.0000,3.5000,0.0000,0.0000,1,'9NIU1'),(10,'Unidad',410,'NIU',1.0000,18.0000,0.0000,0.0000,1,'10NIU1'),(11,'Unidad',411,'NIU',1.0000,20.0000,0.0000,0.0000,1,'11NIU1');
COMMIT;

-- Dumped table `item_unit_types` with 11 row(s)
--

--
-- Table structure for table `item_warehouse`
--

CREATE TABLE `item_warehouse` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `warehouse_id` int(10) unsigned NOT NULL,
  `stock` decimal(12,4) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idx_item_warehouse_unique` (`item_id`,`warehouse_id`),
  KEY `item_warehouse_item_id_foreign` (`item_id`),
  KEY `item_warehouse_warehouse_id_foreign` (`warehouse_id`),
  CONSTRAINT `item_warehouse_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`) ON DELETE CASCADE,
  CONSTRAINT `item_warehouse_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=412 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_warehouse`
--

SET autocommit=0;
INSERT INTO `item_warehouse` VALUES (1,1,1,133.0000,'2026-02-24 21:59:44','2026-03-14 19:06:38'),(2,2,1,143.0000,'2026-02-24 22:20:07','2026-02-24 22:20:07'),(3,3,1,100.0000,'2026-02-24 22:33:05','2026-02-24 22:33:05'),(4,4,1,0.0000,'2026-02-27 09:24:08','2026-03-29 21:32:54'),(5,5,1,2.0000,'2026-02-27 09:30:00','2026-02-27 09:30:00'),(6,6,1,1.0000,'2026-02-27 09:31:59','2026-02-27 09:31:59'),(7,7,1,1.0000,'2026-02-27 09:34:01','2026-02-27 09:34:01'),(8,8,1,3.0000,'2026-02-27 09:41:21','2026-02-27 09:41:21'),(9,9,1,2.0000,'2026-02-27 09:43:20','2026-02-27 09:43:20'),(10,10,1,3.0000,'2026-02-27 09:49:24','2026-02-27 09:49:24'),(11,11,1,2.0000,'2026-02-27 09:51:21','2026-02-27 09:51:21'),(12,12,1,1.0000,'2026-02-27 09:55:08','2026-02-27 09:55:08'),(13,13,1,1.0000,'2026-02-27 09:57:08','2026-02-27 09:57:08'),(14,14,1,1.0000,'2026-02-27 09:59:22','2026-02-27 09:59:22'),(15,15,1,1.0000,'2026-02-27 10:00:25','2026-02-27 10:00:25'),(16,16,1,3.0000,'2026-02-27 10:01:47','2026-02-27 10:01:47'),(17,17,1,3.0000,'2026-02-27 10:04:14','2026-02-27 10:04:14'),(18,18,1,3.0000,'2026-02-27 10:07:57','2026-02-27 10:07:57'),(19,19,1,1.0000,'2026-02-27 10:09:27','2026-02-27 10:09:27'),(20,20,1,2.0000,'2026-02-27 10:14:42','2026-02-27 10:14:42'),(21,21,1,2.0000,'2026-02-27 10:17:42','2026-02-27 10:17:42'),(22,22,1,2.0000,'2026-02-27 10:18:55','2026-02-27 10:18:55'),(23,23,1,2.0000,'2026-02-27 10:20:33','2026-02-27 10:20:33'),(24,24,1,2.0000,'2026-02-27 10:21:43','2026-02-27 10:21:43'),(25,25,1,1.0000,'2026-02-27 10:27:07','2026-02-27 10:27:07'),(26,26,1,1.0000,'2026-02-27 10:28:29','2026-02-27 10:28:29'),(27,27,1,1.0000,'2026-02-27 10:29:51','2026-02-27 10:29:51'),(28,28,1,1.0000,'2026-02-27 10:37:05','2026-02-27 10:37:05'),(29,29,1,2.0000,'2026-02-27 10:41:10','2026-02-27 10:41:10'),(30,30,1,7.0000,'2026-02-27 10:48:10','2026-02-27 10:48:10'),(31,31,1,8.0000,'2026-02-27 10:49:33','2026-02-27 10:49:33'),(32,32,1,5.0000,'2026-02-27 10:52:26','2026-02-27 10:52:26'),(33,33,1,1.0000,'2026-02-27 10:54:55','2026-02-27 10:54:55'),(34,34,1,1.0000,'2026-02-27 10:58:09','2026-02-27 10:58:09'),(35,35,1,5.0000,'2026-02-27 11:06:26','2026-02-27 11:06:26'),(36,36,1,6.0000,'2026-02-27 11:08:21','2026-02-27 11:08:21'),(37,37,1,2.0000,'2026-02-27 11:10:06','2026-02-27 11:10:06'),(38,38,1,2.0000,'2026-02-27 11:11:45','2026-02-27 11:11:45'),(39,39,1,2.0000,'2026-02-27 11:13:31','2026-02-27 11:13:31'),(40,40,1,1.0000,'2026-02-27 11:15:04','2026-02-27 11:15:04'),(41,41,1,1.0000,'2026-02-27 11:18:28','2026-02-27 11:18:28'),(42,42,1,1.0000,'2026-02-27 11:21:32','2026-02-27 11:21:32'),(43,43,1,1.0000,'2026-02-27 11:23:09','2026-02-27 11:23:09'),(44,44,1,2.0000,'2026-02-27 11:27:38','2026-02-27 11:27:38'),(45,45,1,1.0000,'2026-02-27 11:29:07','2026-02-27 11:29:07'),(46,46,1,1.0000,'2026-02-27 11:31:30','2026-02-27 11:31:30'),(47,47,1,4.0000,'2026-02-27 11:33:08','2026-02-27 11:33:08'),(48,48,1,3.0000,'2026-02-27 11:34:17','2026-02-27 11:34:17'),(49,49,1,2.0000,'2026-02-27 11:36:20','2026-02-27 11:36:20'),(50,50,1,2.0000,'2026-02-27 11:38:49','2026-02-27 11:38:49'),(51,51,1,0.0000,'2026-02-27 11:39:24','2026-02-27 11:39:24'),(52,52,1,4.0000,'2026-02-27 11:42:00','2026-02-27 11:42:00'),(53,53,1,2.0000,'2026-02-27 11:43:22','2026-02-27 11:43:22'),(54,54,1,2.0000,'2026-02-27 11:44:46','2026-02-27 11:44:46'),(55,55,1,3.0000,'2026-02-27 11:47:15','2026-02-27 11:47:15'),(56,56,1,5.0000,'2026-02-27 11:49:04','2026-02-27 11:49:04'),(57,57,1,5.0000,'2026-02-27 11:50:08','2026-02-27 11:50:08'),(58,58,1,11.0000,'2026-02-27 11:54:20','2026-02-27 11:54:20'),(59,59,1,24.0000,'2026-02-27 11:58:07','2026-02-27 11:58:07'),(60,60,1,40.0000,'2026-02-27 12:02:36','2026-02-27 12:02:36'),(61,61,1,1.0000,'2026-03-05 17:39:37','2026-03-05 17:39:37'),(62,62,1,1.0000,'2026-03-05 17:43:15','2026-03-05 17:43:15'),(63,63,1,1.0000,'2026-03-05 17:45:18','2026-03-05 17:45:18'),(64,64,1,1.0000,'2026-03-05 17:54:56','2026-03-05 17:54:56'),(65,65,1,1.0000,'2026-03-05 17:58:12','2026-03-05 17:58:12'),(66,66,1,1.0000,'2026-03-05 17:59:53','2026-03-05 17:59:53'),(67,67,1,1.0000,'2026-03-05 18:01:28','2026-03-05 18:01:28'),(68,68,1,1.0000,'2026-03-05 18:06:24','2026-03-05 18:06:24'),(69,69,1,0.0000,'2026-03-05 18:10:16','2026-03-05 18:10:16'),(70,70,1,1.0000,'2026-03-05 18:14:30','2026-03-05 18:14:30'),(71,71,1,1.0000,'2026-03-05 18:32:29','2026-03-05 18:32:29'),(72,72,1,20.0000,'2026-03-05 18:38:10','2026-03-05 18:38:10'),(73,73,1,20.0000,'2026-03-05 18:41:13','2026-03-05 18:41:13'),(74,74,1,30.0000,'2026-03-05 18:44:10','2026-03-05 18:44:10'),(75,75,1,13.0000,'2026-03-05 19:01:38','2026-03-05 19:01:38'),(76,76,1,40.0000,'2026-03-05 19:06:32','2026-03-05 19:06:32'),(77,77,1,60.0000,'2026-03-05 19:11:35','2026-03-05 19:11:35'),(78,78,1,40.0000,'2026-03-05 19:36:15','2026-03-05 19:36:15'),(79,79,1,10.0000,'2026-03-05 19:46:07','2026-03-05 19:46:07'),(80,80,1,20.0000,'2026-03-05 19:48:07','2026-03-05 19:48:07'),(81,81,1,20.0000,'2026-03-05 19:54:31','2026-03-05 19:54:31'),(82,82,1,20.0000,'2026-03-05 19:55:58','2026-03-05 19:55:58'),(83,83,1,100.0000,'2026-03-05 20:04:47','2026-03-05 20:04:47'),(84,84,1,10.0000,'2026-03-05 20:06:37','2026-03-05 20:06:37'),(85,85,1,100.0000,'2026-03-05 20:08:51','2026-03-05 20:08:51'),(86,86,1,99.0000,'2026-03-05 20:10:28','2026-03-05 20:48:44'),(87,87,1,2.0000,'2026-03-05 20:56:36','2026-03-05 20:56:36'),(88,88,1,2.0000,'2026-03-05 21:37:13','2026-03-05 21:37:13'),(89,89,1,2.0000,'2026-03-05 21:41:32','2026-03-05 21:41:32'),(90,90,1,3.0000,'2026-03-05 21:51:08','2026-03-05 21:51:08'),(91,91,1,3.0000,'2026-03-05 21:58:24','2026-03-05 21:58:24'),(92,92,1,2.0000,'2026-03-05 22:00:16','2026-03-05 22:00:16'),(93,93,1,2.0000,'2026-03-05 22:02:19','2026-03-05 22:02:19'),(94,94,1,3.0000,'2026-03-05 22:04:20','2026-03-05 22:04:20'),(95,95,1,3.0000,'2026-03-05 22:06:15','2026-03-05 22:06:15'),(96,96,1,100.0000,'2026-03-05 22:20:02','2026-03-05 22:20:02'),(97,97,1,5.0000,'2026-03-05 22:33:44','2026-03-05 22:33:44'),(98,98,1,5.0000,'2026-03-05 22:35:20','2026-03-05 22:35:20'),(99,99,1,3.0000,'2026-03-05 22:41:05','2026-03-05 22:41:05'),(100,100,1,8.0000,'2026-03-05 22:49:02','2026-03-05 22:49:02'),(101,101,1,2.0000,'2026-03-05 22:50:48','2026-03-05 22:50:48'),(102,102,1,0.0000,'2026-03-05 22:53:06','2026-03-05 22:53:06'),(103,103,1,1.0000,'2026-03-05 23:02:11','2026-03-05 23:02:11'),(104,104,1,1.0000,'2026-03-06 15:41:12','2026-03-06 15:41:12'),(105,105,1,1.0000,'2026-03-06 15:43:56','2026-03-06 15:43:56'),(106,106,1,1.0000,'2026-03-06 15:45:40','2026-03-06 15:45:40'),(107,107,1,20.0000,'2026-03-06 16:04:03','2026-03-06 16:04:03'),(108,108,1,20.0000,'2026-03-06 16:06:46','2026-03-06 16:06:46'),(109,109,1,20.0000,'2026-03-06 17:16:12','2026-03-06 17:16:12'),(110,110,1,20.0000,'2026-03-06 17:43:50','2026-03-06 17:43:50'),(111,111,1,18.0000,'2026-03-06 17:46:20','2026-03-06 17:46:20'),(112,112,1,38.0000,'2026-03-06 18:15:10','2026-03-30 22:53:17'),(113,113,1,20.0000,'2026-03-06 18:17:33','2026-03-06 18:17:33'),(114,114,1,10.0000,'2026-03-06 18:26:44','2026-03-06 18:26:44'),(115,115,1,20.0000,'2026-03-06 18:30:21','2026-03-30 22:53:17'),(116,116,1,24.0000,'2026-03-06 18:34:31','2026-03-06 18:34:31'),(117,117,1,90.0000,'2026-03-06 18:38:30','2026-03-06 18:38:30'),(118,118,1,288.0000,'2026-03-13 19:04:21','2026-03-13 19:04:21'),(119,119,1,80.0000,'2026-03-13 19:09:11','2026-03-13 19:09:11'),(120,120,1,100.0000,'2026-03-13 19:10:49','2026-03-13 19:10:49'),(121,121,1,100.0000,'2026-03-13 19:12:39','2026-03-13 19:12:39'),(122,122,1,10.0000,'2026-03-13 19:14:51','2026-03-13 19:14:51'),(123,123,1,53.0000,'2026-03-13 19:18:35','2026-03-13 19:18:35'),(124,124,1,100.0000,'2026-03-13 19:21:17','2026-03-13 19:21:17'),(125,125,1,0.0000,'2026-03-13 19:51:32','2026-03-13 19:51:32'),(126,126,1,98.0000,'2026-03-13 19:53:44','2026-03-23 20:32:49'),(127,127,1,53.0000,'2026-03-13 20:15:31','2026-03-13 20:15:31'),(128,128,1,0.0000,'2026-03-13 20:17:20','2026-03-13 20:17:20'),(129,129,1,113.0000,'2026-03-14 18:25:47','2026-03-14 18:25:47'),(130,130,1,175.0000,'2026-03-14 18:35:55','2026-03-14 18:35:55'),(131,131,1,286.0000,'2026-03-14 18:39:43','2026-03-14 18:39:43'),(132,132,1,175.0000,'2026-03-14 18:46:26','2026-03-14 18:46:26'),(133,133,1,37.0000,'2026-03-14 18:57:08','2026-03-14 18:57:08'),(134,134,1,298.0000,'2026-03-14 19:16:51','2026-03-14 19:16:51'),(135,135,1,80.0000,'2026-03-14 19:20:16','2026-03-14 19:20:16'),(136,136,1,150.0000,'2026-03-14 19:22:00','2026-03-14 19:22:00'),(137,137,1,150.0000,'2026-03-14 19:24:08','2026-03-14 19:24:08'),(138,138,1,40.0000,'2026-03-14 19:40:55','2026-03-14 19:40:55'),(139,139,1,98.0000,'2026-03-14 21:07:49','2026-03-14 21:07:49'),(140,140,1,230.0000,'2026-03-14 21:14:38','2026-03-14 21:14:38'),(141,141,1,99.0000,'2026-03-14 21:24:38','2026-03-14 21:24:38'),(142,142,1,100.0000,'2026-03-14 21:30:04','2026-03-14 21:30:04'),(143,143,1,37.0000,'2026-03-14 21:37:04','2026-03-14 21:37:04'),(144,144,1,74.0000,'2026-03-14 21:55:59','2026-03-14 21:55:59'),(145,145,1,209.0000,'2026-03-14 22:00:20','2026-03-14 22:00:20'),(146,146,1,15.0000,'2026-03-14 22:04:05','2026-03-14 22:04:05'),(147,147,1,78.0000,'2026-03-14 22:07:30','2026-03-14 22:07:30'),(148,148,1,96.0000,'2026-03-14 22:29:58','2026-03-14 22:29:58'),(149,149,1,100.0000,'2026-03-14 22:33:19','2026-03-14 22:33:19'),(150,150,1,168.0000,'2026-03-14 22:58:42','2026-03-14 22:58:42'),(151,151,1,51.0000,'2026-03-15 20:17:19','2026-03-15 20:17:19'),(152,152,1,109.0000,'2026-03-15 20:22:09','2026-03-15 20:22:09'),(153,153,1,28.0000,'2026-03-15 20:26:22','2026-03-15 20:26:22'),(154,154,1,33.0000,'2026-03-15 20:30:15','2026-03-15 20:30:15'),(155,155,1,0.0000,'2026-03-15 20:39:17','2026-03-15 20:39:17'),(156,156,1,53.0000,'2026-03-15 20:48:20','2026-03-15 20:48:20'),(157,157,1,60.0000,'2026-03-15 20:51:46','2026-03-15 20:51:46'),(158,158,1,68.0000,'2026-03-15 20:55:58','2026-03-15 20:55:58'),(159,159,1,8.0000,'2026-03-15 21:04:35','2026-03-15 21:04:35'),(160,160,1,1.0000,'2026-03-15 21:27:21','2026-03-15 21:27:21'),(161,161,1,1.0000,'2026-03-15 21:32:44','2026-03-15 21:32:44'),(162,162,1,16.0000,'2026-03-15 21:45:15','2026-03-15 21:45:15'),(163,163,1,26.0000,'2026-03-15 21:51:49','2026-03-15 21:51:49'),(164,164,1,0.0000,'2026-03-15 21:58:52','2026-03-15 21:58:52'),(165,165,1,17.0000,'2026-03-15 22:05:28','2026-03-15 22:05:28'),(166,166,1,24.0000,'2026-03-15 22:08:47','2026-03-15 22:08:47'),(167,167,1,-2.0000,'2026-03-18 15:17:20','2026-03-30 22:53:17'),(168,168,1,37.0000,'2026-03-21 08:27:38','2026-03-21 08:27:38'),(169,169,1,77.0000,'2026-03-21 08:31:53','2026-03-21 08:31:53'),(170,170,1,89.0000,'2026-03-21 08:42:56','2026-03-21 08:42:56'),(171,171,1,61.0000,'2026-03-21 08:45:27','2026-03-21 08:45:27'),(172,172,1,139.0000,'2026-03-21 08:49:39','2026-03-21 08:49:39'),(173,173,1,13.0000,'2026-03-21 08:52:28','2026-03-21 08:52:28'),(174,174,1,66.0000,'2026-03-21 08:56:22','2026-03-21 08:56:22'),(175,175,1,100.0000,'2026-03-21 09:01:50','2026-03-21 09:01:50'),(176,176,1,200.0000,'2026-03-21 09:04:53','2026-03-21 09:04:53'),(177,177,1,102.0000,'2026-03-21 09:09:47','2026-03-21 09:09:47'),(178,178,1,118.0000,'2026-03-21 09:49:38','2026-03-21 09:49:38'),(179,179,1,274.0000,'2026-03-21 10:01:34','2026-03-21 22:55:45'),(180,180,1,38.0000,'2026-03-21 10:11:20','2026-03-21 10:11:20'),(181,181,1,109.0000,'2026-03-21 10:15:49','2026-03-21 10:15:49'),(182,182,1,583.0000,'2026-03-21 10:19:52','2026-03-30 21:52:24'),(183,183,1,-1.0000,'2026-03-21 10:46:03','2026-03-23 18:17:47'),(184,184,1,100.0000,'2026-03-21 10:52:32','2026-03-21 10:52:32'),(185,185,1,5.0000,'2026-03-21 11:04:56','2026-03-21 11:04:56'),(186,186,1,160.0000,'2026-03-21 11:11:17','2026-03-21 11:11:17'),(187,187,1,265.0000,'2026-03-21 11:17:32','2026-03-21 11:17:32'),(188,188,1,92.0000,'2026-03-21 11:28:34','2026-03-21 11:28:34'),(189,189,1,14.0000,'2026-03-21 11:48:26','2026-03-21 11:48:26'),(190,190,1,280.0000,'2026-03-21 12:16:12','2026-03-21 12:16:12'),(191,191,1,300.0000,'2026-03-21 12:21:26','2026-03-21 12:21:26'),(192,192,1,3.0000,'2026-03-21 12:27:08','2026-03-21 12:27:08'),(193,193,1,1.0000,'2026-03-21 12:30:39','2026-03-21 12:30:39'),(194,194,1,53.0000,'2026-03-21 12:33:38','2026-03-21 12:33:38'),(195,195,1,5.0000,'2026-03-21 12:36:52','2026-03-21 12:36:52'),(196,196,1,8.0000,'2026-03-21 12:40:54','2026-03-21 12:40:54'),(197,197,1,7.0000,'2026-03-21 12:43:00','2026-03-21 12:43:00'),(198,198,1,77.0000,'2026-03-21 12:45:49','2026-03-21 12:45:49'),(199,199,1,120.0000,'2026-03-21 12:47:50','2026-03-21 12:47:50'),(200,200,1,2.0000,'2026-03-21 12:51:36','2026-03-21 12:51:36'),(201,201,1,660.0000,'2026-03-21 12:55:42','2026-03-21 22:55:45'),(202,202,1,39.0000,'2026-03-21 19:25:45','2026-03-21 19:25:45'),(203,203,1,8.0000,'2026-03-21 19:38:29','2026-03-21 19:38:29'),(204,204,1,36.0000,'2026-03-21 19:56:55','2026-03-23 20:32:49'),(205,205,1,20.0000,'2026-03-21 20:07:58','2026-03-21 20:07:58'),(206,206,1,10.0000,'2026-03-21 20:12:20','2026-03-21 20:12:20'),(207,207,1,77.0000,'2026-03-21 20:26:19','2026-03-21 20:26:19'),(208,208,1,45.0000,'2026-03-21 21:03:32','2026-03-21 21:03:32'),(209,209,1,37.0000,'2026-03-21 21:07:59','2026-03-21 21:07:59'),(210,210,1,41.0000,'2026-03-21 21:13:02','2026-03-21 21:13:02'),(211,211,1,235.0000,'2026-03-21 21:16:14','2026-03-21 21:16:14'),(212,212,1,77.0000,'2026-03-21 21:28:20','2026-03-21 21:28:20'),(213,213,1,148.0000,'2026-03-21 22:09:47','2026-03-21 22:09:47'),(214,214,1,50.0000,'2026-03-21 22:11:19','2026-03-21 22:11:19'),(215,215,1,32.0000,'2026-03-21 22:13:59','2026-03-21 22:13:59'),(216,216,1,200.0000,'2026-03-21 22:15:32','2026-03-21 22:15:32'),(217,217,1,19.0000,'2026-03-21 22:23:21','2026-03-21 22:23:21'),(218,218,1,9.0000,'2026-03-21 22:26:08','2026-03-21 22:26:08'),(219,219,1,118.0000,'2026-03-21 22:33:26','2026-03-21 22:33:26'),(220,220,1,184.0000,'2026-03-21 22:36:37','2026-03-21 22:36:37'),(221,221,1,8.0000,'2026-03-21 22:40:32','2026-03-21 22:40:32'),(222,222,1,37.0000,'2026-03-21 22:43:50','2026-03-21 22:43:50'),(223,223,1,76.0000,'2026-03-21 22:51:06','2026-03-21 22:51:06'),(224,224,1,196.0000,'2026-03-21 22:54:17','2026-03-21 22:54:17'),(225,225,1,15.0000,'2026-03-22 19:38:29','2026-03-22 19:38:29'),(226,226,1,6.0000,'2026-03-22 19:44:34','2026-03-22 19:44:34'),(227,227,1,16.0000,'2026-03-22 20:14:58','2026-03-22 20:14:58'),(228,228,1,25.0000,'2026-03-22 21:45:12','2026-03-22 21:45:12'),(229,229,1,6.0000,'2026-03-22 21:49:41','2026-03-22 21:49:41'),(230,230,1,6.0000,'2026-03-22 21:51:28','2026-03-22 21:51:28'),(231,231,1,6.0000,'2026-03-22 21:53:55','2026-03-22 21:53:55'),(232,232,1,6.0000,'2026-03-22 22:00:20','2026-03-22 22:00:20'),(233,233,1,3.0000,'2026-03-23 12:59:10','2026-03-23 12:59:10'),(234,234,1,4.0000,'2026-03-23 13:00:47','2026-03-23 13:00:47'),(235,235,1,4.0000,'2026-03-23 13:02:58','2026-03-23 13:02:58'),(236,236,1,2.0000,'2026-03-23 13:04:14','2026-03-23 13:04:14'),(237,237,1,5.0000,'2026-03-23 13:07:31','2026-03-23 13:07:31'),(238,238,1,6.0000,'2026-03-23 13:12:50','2026-03-23 13:12:50'),(239,239,1,6.0000,'2026-03-23 13:14:54','2026-03-23 13:14:54'),(240,240,1,2.0000,'2026-03-23 13:17:00','2026-03-23 13:17:00'),(241,241,1,2.0000,'2026-03-23 13:18:51','2026-03-23 13:18:51'),(242,242,1,1.0000,'2026-03-23 13:20:38','2026-03-23 13:20:38'),(243,243,1,1.0000,'2026-03-23 13:21:42','2026-03-23 13:21:42'),(244,244,1,1.0000,'2026-03-23 13:24:51','2026-03-23 13:24:51'),(245,245,1,4.0000,'2026-03-23 13:26:39','2026-03-23 13:26:39'),(246,246,1,4.0000,'2026-03-23 13:30:49','2026-03-23 13:30:49'),(247,247,1,3.0000,'2026-03-23 13:33:01','2026-03-23 13:33:01'),(248,248,1,4.0000,'2026-03-23 13:35:19','2026-03-23 13:35:19'),(249,249,1,5.0000,'2026-03-23 13:37:46','2026-03-23 13:37:46'),(250,250,1,6.0000,'2026-03-23 13:41:16','2026-03-23 13:41:16'),(251,251,1,3.0000,'2026-03-23 13:42:32','2026-03-23 13:42:32'),(252,252,1,3.0000,'2026-03-23 13:43:57','2026-03-23 13:43:57'),(253,253,1,3.0000,'2026-03-23 13:44:59','2026-03-23 13:44:59'),(254,254,1,4.0000,'2026-03-23 13:46:39','2026-03-23 13:46:39'),(255,255,1,2.0000,'2026-03-23 13:48:52','2026-03-23 13:48:52'),(256,256,1,1.0000,'2026-03-23 13:50:50','2026-03-23 13:50:50'),(257,257,1,2.0000,'2026-03-23 13:53:44','2026-03-23 13:53:44'),(258,258,1,3.0000,'2026-03-23 13:55:39','2026-03-23 13:55:39'),(259,259,1,3.0000,'2026-03-23 13:57:07','2026-03-23 13:57:07'),(260,260,1,1.0000,'2026-03-23 13:58:44','2026-03-23 13:58:44'),(261,261,1,2.0000,'2026-03-23 14:00:05','2026-03-23 14:00:05'),(262,262,1,1.0000,'2026-03-23 14:02:43','2026-03-23 14:02:43'),(263,263,1,1.0000,'2026-03-23 14:05:09','2026-03-23 14:05:09'),(264,264,1,3.0000,'2026-03-23 14:07:02','2026-03-23 14:07:02'),(265,265,1,3.0000,'2026-03-23 14:10:14','2026-03-23 14:10:14'),(266,266,1,3.0000,'2026-03-23 14:11:45','2026-03-23 14:11:45'),(267,267,1,2.0000,'2026-03-23 14:14:53','2026-03-23 14:14:53'),(268,268,1,1.0000,'2026-03-23 14:17:10','2026-03-23 14:17:10'),(269,269,1,1.0000,'2026-03-23 14:18:36','2026-03-23 14:18:36'),(270,270,1,3.0000,'2026-03-23 14:19:39','2026-03-23 14:19:39'),(271,271,1,3.0000,'2026-03-23 14:26:02','2026-03-23 14:26:02'),(272,272,1,3.0000,'2026-03-23 14:27:44','2026-03-23 14:27:44'),(273,273,1,3.0000,'2026-03-23 14:28:44','2026-03-23 14:28:44'),(274,274,1,4.0000,'2026-03-23 14:30:03','2026-03-23 14:30:03'),(275,275,1,4.0000,'2026-03-23 14:31:13','2026-03-23 14:31:13'),(276,276,1,4.0000,'2026-03-23 14:32:09','2026-03-23 14:32:09'),(277,277,1,4.0000,'2026-03-23 14:33:11','2026-03-23 14:33:11'),(278,278,1,3.0000,'2026-03-23 14:36:10','2026-03-23 14:36:10'),(279,279,1,2.0000,'2026-03-23 14:37:54','2026-03-23 14:37:54'),(280,280,1,6.0000,'2026-03-23 14:43:04','2026-03-23 14:43:04'),(281,281,1,4.0000,'2026-03-23 14:45:14','2026-03-23 14:45:14'),(282,282,1,1.0000,'2026-03-23 14:46:46','2026-03-23 14:46:46'),(283,283,1,3.0000,'2026-03-23 14:48:56','2026-03-23 14:48:56'),(284,284,1,2.0000,'2026-03-23 14:50:41','2026-03-23 14:50:41'),(285,285,1,2.0000,'2026-03-23 14:51:58','2026-03-23 14:51:58'),(286,286,1,2.0000,'2026-03-23 14:53:57','2026-03-23 14:53:57'),(287,287,1,1.0000,'2026-03-23 14:57:49','2026-03-23 14:57:49'),(288,288,1,6.0000,'2026-03-23 15:15:17','2026-03-23 15:15:17'),(289,289,1,6.0000,'2026-03-23 15:17:20','2026-03-23 15:17:20'),(290,290,1,22.0000,'2026-03-23 15:23:59','2026-03-23 15:23:59'),(291,291,1,25.0000,'2026-03-23 15:36:04','2026-03-23 15:36:04'),(292,292,1,100.0000,'2026-03-23 15:42:33','2026-03-23 15:42:33'),(293,293,1,2.0000,'2026-03-23 15:46:28','2026-03-29 21:32:54'),(294,294,1,250.0000,'2026-03-23 15:48:28','2026-03-23 15:48:28'),(295,295,1,1.0000,'2026-03-23 15:56:39','2026-03-23 15:56:39'),(296,296,1,1.0000,'2026-03-23 15:57:33','2026-03-23 15:57:33'),(297,297,1,6.0000,'2026-03-23 16:01:31','2026-03-23 16:01:31'),(298,298,1,2.0000,'2026-03-23 16:05:04','2026-03-23 16:05:04'),(299,299,1,4.0000,'2026-03-23 16:06:15','2026-03-23 16:06:15'),(300,300,1,6.0000,'2026-03-23 16:08:42','2026-03-23 16:08:42'),(301,301,1,6.0000,'2026-03-23 16:09:54','2026-03-23 16:09:54'),(302,302,1,6.0000,'2026-03-23 16:10:56','2026-03-23 16:10:56'),(303,303,1,4.0000,'2026-03-23 16:12:06','2026-03-23 16:12:06'),(304,304,1,1.0000,'2026-03-23 16:14:45','2026-03-23 16:14:45'),(305,305,1,1.0000,'2026-03-23 16:15:47','2026-03-23 16:15:47'),(306,306,1,2.0000,'2026-03-23 16:16:43','2026-03-23 16:16:43'),(307,307,1,2.0000,'2026-03-23 16:17:35','2026-03-23 16:17:35'),(308,308,1,2.0000,'2026-03-23 16:18:31','2026-03-23 16:18:31'),(309,309,1,2.0000,'2026-03-23 16:19:35','2026-03-23 16:19:35'),(310,310,1,3.0000,'2026-03-23 16:20:19','2026-03-23 16:20:19'),(311,311,1,3.0000,'2026-03-23 16:21:00','2026-03-23 16:21:00'),(312,312,1,3.0000,'2026-03-23 16:21:53','2026-03-23 16:21:53'),(313,313,1,3.0000,'2026-03-23 16:22:52','2026-03-23 16:22:52'),(314,314,1,4.0000,'2026-03-23 16:24:05','2026-03-23 16:24:05'),(315,315,1,1.0000,'2026-03-23 16:30:07','2026-03-23 16:30:07'),(316,316,1,1.0000,'2026-03-23 16:34:17','2026-03-23 16:34:17'),(317,317,1,1.0000,'2026-03-23 16:35:48','2026-03-23 16:35:48'),(318,318,1,2.0000,'2026-03-23 16:36:49','2026-03-23 16:36:49'),(319,319,1,3.0000,'2026-03-23 16:37:34','2026-03-23 16:37:34'),(320,320,1,1.0000,'2026-03-23 16:39:21','2026-03-23 16:39:21'),(321,321,1,1.0000,'2026-03-23 16:40:15','2026-03-23 16:40:15'),(322,322,1,3.0000,'2026-03-23 16:41:18','2026-03-23 16:41:18'),(323,323,1,3.0000,'2026-03-23 16:42:17','2026-03-23 16:42:17'),(324,324,1,2.0000,'2026-03-23 16:45:52','2026-03-23 16:45:52'),(325,325,1,4.0000,'2026-03-23 16:46:48','2026-03-23 16:46:48'),(326,326,1,5.0000,'2026-03-23 16:47:58','2026-03-23 16:47:58'),(327,327,1,5.0000,'2026-03-23 16:48:47','2026-03-23 16:48:47'),(328,328,1,12.0000,'2026-03-23 16:49:41','2026-03-23 16:49:41'),(329,329,1,12.0000,'2026-03-23 16:50:36','2026-03-23 16:50:36'),(330,330,1,1.0000,'2026-03-23 16:58:26','2026-03-23 16:58:26'),(331,331,1,2.0000,'2026-03-23 16:59:56','2026-03-23 16:59:56'),(332,332,1,2.0000,'2026-03-23 17:00:34','2026-03-23 17:00:34'),(333,333,1,2.0000,'2026-03-23 17:02:11','2026-03-23 17:02:11'),(334,334,1,2.0000,'2026-03-23 17:05:34','2026-03-23 17:05:34'),(335,335,1,4.0000,'2026-03-23 17:11:27','2026-03-23 17:11:27'),(336,336,1,8.0000,'2026-03-23 17:15:55','2026-03-23 17:15:55'),(337,337,1,3.0000,'2026-03-23 17:17:56','2026-03-23 17:17:56'),(338,338,1,2.0000,'2026-03-23 17:21:33','2026-03-23 17:21:33'),(339,339,1,2.0000,'2026-03-23 17:23:23','2026-03-23 17:23:23'),(340,340,1,5.0000,'2026-03-23 17:24:29','2026-03-23 17:24:29'),(341,341,1,1.0000,'2026-03-23 20:14:41','2026-03-23 20:14:41'),(342,342,1,2.0000,'2026-03-23 20:16:25','2026-03-23 20:16:25'),(343,343,1,2.0000,'2026-03-23 20:18:08','2026-03-23 20:18:08'),(344,344,1,1.0000,'2026-03-23 22:22:51','2026-03-23 22:22:51'),(345,345,1,1.0000,'2026-03-23 22:25:16','2026-03-23 22:25:16'),(346,346,1,4.0000,'2026-03-24 15:51:48','2026-03-24 15:51:48'),(347,347,1,4.0000,'2026-03-24 15:54:54','2026-03-24 15:54:54'),(348,348,1,7.0000,'2026-03-24 15:56:54','2026-03-24 15:56:54'),(349,349,1,4.0000,'2026-03-24 16:02:17','2026-03-24 16:02:17'),(350,350,1,9.0000,'2026-03-24 16:03:56','2026-03-24 16:03:56'),(351,351,1,22.0000,'2026-03-24 16:09:42','2026-03-24 16:09:42'),(352,352,1,15.0000,'2026-03-24 16:41:56','2026-03-24 16:41:56'),(353,353,1,40.0000,'2026-03-24 16:43:35','2026-03-24 16:43:35'),(354,354,1,18.0000,'2026-03-24 16:46:49','2026-03-24 16:46:49'),(355,355,1,14.0000,'2026-03-24 16:52:51','2026-03-24 16:52:51'),(356,356,1,31.0000,'2026-03-24 16:57:10','2026-03-24 16:57:10'),(357,357,1,3.0000,'2026-03-24 16:59:55','2026-03-24 16:59:55'),(358,358,1,5.0000,'2026-03-24 17:02:19','2026-03-24 17:02:19'),(359,359,1,12.0000,'2026-03-24 17:03:28','2026-03-24 17:03:28'),(360,360,1,1.0000,'2026-03-24 17:10:59','2026-03-24 17:10:59'),(361,361,1,1.0000,'2026-03-24 17:13:47','2026-03-24 17:13:47'),(362,362,1,2.0000,'2026-03-27 18:47:17','2026-03-27 18:48:13'),(363,363,1,99.0000,'2026-03-28 20:35:05','2026-03-29 21:32:55'),(364,364,1,150.0000,'2026-03-28 20:39:14','2026-03-28 20:39:14'),(365,365,1,49.0000,'2026-03-28 20:43:55','2026-03-28 20:43:55'),(366,366,1,1.0000,'2026-03-28 20:48:30','2026-03-28 20:48:30'),(367,367,1,6.0000,'2026-03-28 21:07:22','2026-03-28 21:07:22'),(368,368,1,36.0000,'2026-03-29 23:11:22','2026-03-29 23:11:22'),(369,369,1,360.0000,'2026-03-29 23:16:04','2026-03-29 23:16:04'),(370,370,1,200.0000,'2026-03-30 14:42:01','2026-03-30 14:42:01'),(371,371,1,6.0000,'2026-03-30 14:45:42','2026-03-30 14:45:42'),(372,372,1,6.0000,'2026-03-30 15:00:26','2026-03-30 15:00:26'),(373,373,1,200.0000,'2026-03-30 15:04:08','2026-03-30 15:04:08'),(374,374,1,9.0000,'2026-03-30 15:06:34','2026-03-30 15:06:34'),(375,375,1,16.0000,'2026-03-30 15:24:12','2026-03-30 15:24:12'),(376,376,1,6.0000,'2026-03-30 18:12:11','2026-03-30 18:12:11'),(377,377,1,58.0000,'2026-03-30 18:17:24','2026-03-30 18:17:24'),(378,378,1,300.0000,'2026-03-30 18:26:22','2026-03-30 18:26:22'),(379,379,1,37.0000,'2026-03-30 22:30:28','2026-03-30 22:53:17'),(380,380,1,7.0000,'2026-03-30 22:36:33','2026-03-30 22:53:17'),(381,381,1,42.0000,'2026-03-30 22:40:41','2026-03-30 22:53:17'),(382,382,1,1.0000,'2026-03-30 22:44:58','2026-03-30 22:53:17'),(383,383,1,5.0000,'2026-03-31 15:00:11','2026-03-31 15:00:11'),(384,384,1,100.0000,'2026-03-31 15:03:20','2026-03-31 15:03:20'),(385,385,1,20.0000,'2026-03-31 15:08:36','2026-03-31 15:08:36'),(386,386,1,40.0000,'2026-03-31 15:13:53','2026-03-31 15:13:53'),(387,387,1,6.0000,'2026-03-31 15:19:01','2026-03-31 15:19:01'),(388,388,1,1.0000,'2026-03-31 15:22:31','2026-03-31 15:22:31'),(389,389,1,3.0000,'2026-03-31 15:26:53','2026-03-31 15:26:53'),(390,390,1,6.0000,'2026-03-31 15:32:12','2026-03-31 15:32:12'),(391,391,1,2.0000,'2026-03-31 15:34:54','2026-03-31 15:34:54'),(392,392,1,4.0000,'2026-03-31 15:46:13','2026-03-31 15:46:13'),(393,393,1,5.0000,'2026-03-31 15:57:12','2026-03-31 15:57:12'),(394,394,1,3.0000,'2026-03-31 16:07:19','2026-03-31 16:07:19'),(395,395,1,5.0000,'2026-03-31 16:10:50','2026-03-31 16:10:50'),(396,396,1,6.0000,'2026-03-31 16:14:09','2026-03-31 16:14:09'),(397,397,1,3.0000,'2026-03-31 16:17:30','2026-03-31 16:17:30'),(398,398,1,24.0000,'2026-03-31 16:19:24','2026-03-31 16:19:24'),(399,399,1,2.0000,'2026-03-31 16:35:56','2026-03-31 16:35:56'),(400,400,1,2.0000,'2026-03-31 17:14:20','2026-03-31 17:14:20'),(401,401,1,2.0000,'2026-03-31 19:54:36','2026-03-31 19:54:36'),(402,402,1,9.0000,'2026-03-31 19:59:29','2026-03-31 19:59:29'),(403,403,1,9.0000,'2026-03-31 20:02:14','2026-03-31 20:02:14'),(404,404,1,12.0000,'2026-03-31 21:42:14','2026-03-31 21:42:14'),(405,405,1,30.0000,'2026-03-31 21:46:11','2026-03-31 21:46:11'),(406,406,1,24.0000,'2026-03-31 21:48:23','2026-03-31 21:48:23'),(407,407,1,600.0000,'2026-03-31 21:56:19','2026-03-31 21:56:19'),(408,408,1,60.0000,'2026-03-31 21:59:38','2026-03-31 21:59:38'),(409,409,1,288.0000,'2026-04-01 19:22:05','2026-04-01 19:22:05'),(410,410,1,300.0000,'2026-04-01 19:31:32','2026-04-01 19:31:32'),(411,411,1,100.0000,'2026-04-01 19:43:03','2026-04-01 19:43:03');
COMMIT;

-- Dumped table `item_warehouse` with 411 row(s)
--

--
-- Table structure for table `item_warehouse_prices`
--

CREATE TABLE `item_warehouse_prices` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `warehouse_id` int(10) unsigned NOT NULL,
  `price` decimal(16,6) NOT NULL DEFAULT 0.000000,
  PRIMARY KEY (`id`),
  KEY `item_warehouse_prices_item_id_foreign` (`item_id`),
  KEY `item_warehouse_prices_warehouse_id_foreign` (`warehouse_id`),
  CONSTRAINT `item_warehouse_prices_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`) ON DELETE CASCADE,
  CONSTRAINT `item_warehouse_prices_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_warehouse_prices`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_warehouse_prices` with 0 row(s)
--

--
-- Table structure for table `kardex`
--

CREATE TABLE `kardex` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `date_of_issue` date NOT NULL,
  `type` enum('sale','purchase') DEFAULT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `document_id` int(10) unsigned DEFAULT NULL,
  `purchase_id` int(10) unsigned DEFAULT NULL,
  `purchase_settlement_id` int(10) unsigned DEFAULT NULL,
  `sale_note_id` int(10) unsigned DEFAULT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `kardex_purchase_id_foreign` (`purchase_id`),
  KEY `kardex_document_id_foreign` (`document_id`),
  KEY `kardex_item_id_foreign` (`item_id`),
  KEY `kardex_sale_note_id_foreign` (`sale_note_id`),
  KEY `kardex_purchase_settlement_id_foreign` (`purchase_settlement_id`),
  CONSTRAINT `kardex_document_id_foreign` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE,
  CONSTRAINT `kardex_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `kardex_purchase_id_foreign` FOREIGN KEY (`purchase_id`) REFERENCES `purchases` (`id`) ON DELETE CASCADE,
  CONSTRAINT `kardex_purchase_settlement_id_foreign` FOREIGN KEY (`purchase_settlement_id`) REFERENCES `purchase_settlements` (`id`) ON DELETE CASCADE,
  CONSTRAINT `kardex_sale_note_id_foreign` FOREIGN KEY (`sale_note_id`) REFERENCES `sale_notes` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=442 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `kardex`
--

SET autocommit=0;
INSERT INTO `kardex` VALUES (1,'2026-02-24',NULL,1,NULL,NULL,NULL,NULL,140.0000,'2026-02-24 21:59:44','2026-02-24 21:59:44'),(2,'2026-02-24',NULL,2,NULL,NULL,NULL,NULL,143.0000,'2026-02-24 22:20:07','2026-02-24 22:20:07'),(3,'2026-02-24',NULL,3,NULL,NULL,NULL,NULL,100.0000,'2026-02-24 22:33:05','2026-02-24 22:33:05'),(4,'2026-02-27',NULL,4,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 09:24:08','2026-02-27 09:24:08'),(5,'2026-02-27',NULL,5,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 09:30:00','2026-02-27 09:30:00'),(6,'2026-02-27',NULL,6,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 09:31:59','2026-02-27 09:31:59'),(7,'2026-02-27',NULL,7,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 09:34:01','2026-02-27 09:34:01'),(8,'2026-02-27',NULL,8,NULL,NULL,NULL,NULL,3.0000,'2026-02-27 09:41:21','2026-02-27 09:41:21'),(9,'2026-02-27',NULL,9,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 09:43:20','2026-02-27 09:43:20'),(10,'2026-02-27',NULL,10,NULL,NULL,NULL,NULL,3.0000,'2026-02-27 09:49:24','2026-02-27 09:49:24'),(11,'2026-02-27',NULL,11,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 09:51:21','2026-02-27 09:51:21'),(12,'2026-02-27',NULL,12,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 09:55:08','2026-02-27 09:55:08'),(13,'2026-02-27',NULL,13,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 09:57:08','2026-02-27 09:57:08'),(14,'2026-02-27',NULL,14,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 09:59:22','2026-02-27 09:59:22'),(15,'2026-02-27',NULL,15,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 10:00:25','2026-02-27 10:00:25'),(16,'2026-02-27',NULL,16,NULL,NULL,NULL,NULL,3.0000,'2026-02-27 10:01:47','2026-02-27 10:01:47'),(17,'2026-02-27',NULL,17,NULL,NULL,NULL,NULL,3.0000,'2026-02-27 10:04:14','2026-02-27 10:04:14'),(18,'2026-02-27',NULL,18,NULL,NULL,NULL,NULL,3.0000,'2026-02-27 10:07:57','2026-02-27 10:07:57'),(19,'2026-02-27',NULL,19,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 10:09:27','2026-02-27 10:09:27'),(20,'2026-02-27',NULL,20,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 10:14:42','2026-02-27 10:14:42'),(21,'2026-02-27',NULL,21,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 10:17:42','2026-02-27 10:17:42'),(22,'2026-02-27',NULL,22,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 10:18:55','2026-02-27 10:18:55'),(23,'2026-02-27',NULL,23,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 10:20:33','2026-02-27 10:20:33'),(24,'2026-02-27',NULL,24,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 10:21:42','2026-02-27 10:21:42'),(25,'2026-02-27',NULL,25,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 10:27:07','2026-02-27 10:27:07'),(26,'2026-02-27',NULL,26,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 10:28:29','2026-02-27 10:28:29'),(27,'2026-02-27',NULL,27,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 10:29:51','2026-02-27 10:29:51'),(28,'2026-02-27',NULL,28,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 10:37:05','2026-02-27 10:37:05'),(29,'2026-02-27',NULL,29,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 10:41:10','2026-02-27 10:41:10'),(30,'2026-02-27',NULL,30,NULL,NULL,NULL,NULL,7.0000,'2026-02-27 10:48:10','2026-02-27 10:48:10'),(31,'2026-02-27',NULL,31,NULL,NULL,NULL,NULL,8.0000,'2026-02-27 10:49:33','2026-02-27 10:49:33'),(32,'2026-02-27',NULL,32,NULL,NULL,NULL,NULL,5.0000,'2026-02-27 10:52:26','2026-02-27 10:52:26'),(33,'2026-02-27',NULL,33,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 10:54:55','2026-02-27 10:54:55'),(34,'2026-02-27',NULL,34,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 10:58:09','2026-02-27 10:58:09'),(35,'2026-02-27',NULL,35,NULL,NULL,NULL,NULL,5.0000,'2026-02-27 11:06:26','2026-02-27 11:06:26'),(36,'2026-02-27',NULL,36,NULL,NULL,NULL,NULL,6.0000,'2026-02-27 11:08:21','2026-02-27 11:08:21'),(37,'2026-02-27',NULL,37,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 11:10:06','2026-02-27 11:10:06'),(38,'2026-02-27',NULL,38,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 11:11:45','2026-02-27 11:11:45'),(39,'2026-02-27',NULL,39,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 11:13:31','2026-02-27 11:13:31'),(40,'2026-02-27',NULL,40,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 11:15:04','2026-02-27 11:15:04'),(41,'2026-02-27',NULL,41,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 11:18:28','2026-02-27 11:18:28'),(42,'2026-02-27',NULL,42,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 11:21:32','2026-02-27 11:21:32'),(43,'2026-02-27',NULL,43,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 11:23:09','2026-02-27 11:23:09'),(44,'2026-02-27',NULL,44,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 11:27:38','2026-02-27 11:27:38'),(45,'2026-02-27',NULL,45,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 11:29:07','2026-02-27 11:29:07'),(46,'2026-02-27',NULL,46,NULL,NULL,NULL,NULL,1.0000,'2026-02-27 11:31:30','2026-02-27 11:31:30'),(47,'2026-02-27',NULL,47,NULL,NULL,NULL,NULL,4.0000,'2026-02-27 11:33:08','2026-02-27 11:33:08'),(48,'2026-02-27',NULL,48,NULL,NULL,NULL,NULL,3.0000,'2026-02-27 11:34:17','2026-02-27 11:34:17'),(49,'2026-02-27',NULL,49,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 11:36:20','2026-02-27 11:36:20'),(50,'2026-02-27',NULL,50,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 11:38:49','2026-02-27 11:38:49'),(51,'2026-02-27',NULL,51,NULL,NULL,NULL,NULL,0.0000,'2026-02-27 11:39:24','2026-02-27 11:39:24'),(52,'2026-02-27',NULL,52,NULL,NULL,NULL,NULL,4.0000,'2026-02-27 11:42:00','2026-02-27 11:42:00'),(53,'2026-02-27',NULL,53,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 11:43:22','2026-02-27 11:43:22'),(54,'2026-02-27',NULL,54,NULL,NULL,NULL,NULL,2.0000,'2026-02-27 11:44:46','2026-02-27 11:44:46'),(55,'2026-02-27',NULL,55,NULL,NULL,NULL,NULL,3.0000,'2026-02-27 11:47:15','2026-02-27 11:47:15'),(56,'2026-02-27',NULL,56,NULL,NULL,NULL,NULL,5.0000,'2026-02-27 11:49:04','2026-02-27 11:49:04'),(57,'2026-02-27',NULL,57,NULL,NULL,NULL,NULL,5.0000,'2026-02-27 11:50:08','2026-02-27 11:50:08'),(58,'2026-02-27',NULL,58,NULL,NULL,NULL,NULL,11.0000,'2026-02-27 11:54:20','2026-02-27 11:54:20'),(59,'2026-02-27',NULL,59,NULL,NULL,NULL,NULL,24.0000,'2026-02-27 11:58:06','2026-02-27 11:58:06'),(60,'2026-02-27',NULL,60,NULL,NULL,NULL,NULL,40.0000,'2026-02-27 12:02:36','2026-02-27 12:02:36'),(61,'2026-02-27','sale',1,1,NULL,NULL,NULL,2.0000,'2026-02-27 22:15:21','2026-02-27 22:15:21'),(62,'2026-03-05',NULL,61,NULL,NULL,NULL,NULL,1.0000,'2026-03-05 17:39:37','2026-03-05 17:39:37'),(63,'2026-03-05',NULL,62,NULL,NULL,NULL,NULL,1.0000,'2026-03-05 17:43:15','2026-03-05 17:43:15'),(64,'2026-03-05',NULL,63,NULL,NULL,NULL,NULL,1.0000,'2026-03-05 17:45:18','2026-03-05 17:45:18'),(65,'2026-03-05',NULL,64,NULL,NULL,NULL,NULL,1.0000,'2026-03-05 17:54:56','2026-03-05 17:54:56'),(66,'2026-03-05',NULL,65,NULL,NULL,NULL,NULL,1.0000,'2026-03-05 17:58:12','2026-03-05 17:58:12'),(67,'2026-03-05',NULL,66,NULL,NULL,NULL,NULL,1.0000,'2026-03-05 17:59:53','2026-03-05 17:59:53'),(68,'2026-03-05',NULL,67,NULL,NULL,NULL,NULL,1.0000,'2026-03-05 18:01:28','2026-03-05 18:01:28'),(69,'2026-03-05',NULL,68,NULL,NULL,NULL,NULL,1.0000,'2026-03-05 18:06:24','2026-03-05 18:06:24'),(70,'2026-03-05',NULL,69,NULL,NULL,NULL,NULL,0.0000,'2026-03-05 18:10:16','2026-03-05 18:10:16'),(71,'2026-03-05',NULL,70,NULL,NULL,NULL,NULL,1.0000,'2026-03-05 18:14:30','2026-03-05 18:14:30'),(72,'2026-03-05',NULL,71,NULL,NULL,NULL,NULL,1.0000,'2026-03-05 18:32:29','2026-03-05 18:32:29'),(73,'2026-03-05',NULL,72,NULL,NULL,NULL,NULL,20.0000,'2026-03-05 18:38:10','2026-03-05 18:38:10'),(74,'2026-03-05',NULL,73,NULL,NULL,NULL,NULL,20.0000,'2026-03-05 18:41:13','2026-03-05 18:41:13'),(75,'2026-03-05',NULL,74,NULL,NULL,NULL,NULL,30.0000,'2026-03-05 18:44:10','2026-03-05 18:44:10'),(76,'2026-03-05',NULL,75,NULL,NULL,NULL,NULL,13.0000,'2026-03-05 19:01:38','2026-03-05 19:01:38'),(77,'2026-03-05',NULL,76,NULL,NULL,NULL,NULL,40.0000,'2026-03-05 19:06:32','2026-03-05 19:06:32'),(78,'2026-03-05',NULL,77,NULL,NULL,NULL,NULL,60.0000,'2026-03-05 19:11:35','2026-03-05 19:11:35'),(79,'2026-03-05',NULL,78,NULL,NULL,NULL,NULL,40.0000,'2026-03-05 19:36:15','2026-03-05 19:36:15'),(80,'2026-03-05',NULL,79,NULL,NULL,NULL,NULL,10.0000,'2026-03-05 19:46:07','2026-03-05 19:46:07'),(81,'2026-03-05',NULL,80,NULL,NULL,NULL,NULL,20.0000,'2026-03-05 19:48:07','2026-03-05 19:48:07'),(82,'2026-03-05',NULL,81,NULL,NULL,NULL,NULL,20.0000,'2026-03-05 19:54:31','2026-03-05 19:54:31'),(83,'2026-03-05',NULL,82,NULL,NULL,NULL,NULL,20.0000,'2026-03-05 19:55:58','2026-03-05 19:55:58'),(84,'2026-03-05',NULL,83,NULL,NULL,NULL,NULL,100.0000,'2026-03-05 20:04:47','2026-03-05 20:04:47'),(85,'2026-03-05',NULL,84,NULL,NULL,NULL,NULL,10.0000,'2026-03-05 20:06:37','2026-03-05 20:06:37'),(86,'2026-03-05',NULL,85,NULL,NULL,NULL,NULL,100.0000,'2026-03-05 20:08:51','2026-03-05 20:08:51'),(87,'2026-03-05',NULL,86,NULL,NULL,NULL,NULL,100.0000,'2026-03-05 20:10:28','2026-03-05 20:10:28'),(88,'2026-03-05','sale',86,2,NULL,NULL,NULL,1.0000,'2026-03-05 20:48:44','2026-03-05 20:48:44'),(89,'2026-03-05',NULL,87,NULL,NULL,NULL,NULL,2.0000,'2026-03-05 20:56:36','2026-03-05 20:56:36'),(90,'2026-03-05',NULL,88,NULL,NULL,NULL,NULL,2.0000,'2026-03-05 21:37:13','2026-03-05 21:37:13'),(91,'2026-03-05',NULL,89,NULL,NULL,NULL,NULL,2.0000,'2026-03-05 21:41:32','2026-03-05 21:41:32'),(92,'2026-03-05',NULL,90,NULL,NULL,NULL,NULL,3.0000,'2026-03-05 21:51:08','2026-03-05 21:51:08'),(93,'2026-03-05',NULL,91,NULL,NULL,NULL,NULL,3.0000,'2026-03-05 21:58:24','2026-03-05 21:58:24'),(94,'2026-03-05',NULL,92,NULL,NULL,NULL,NULL,2.0000,'2026-03-05 22:00:16','2026-03-05 22:00:16'),(95,'2026-03-05',NULL,93,NULL,NULL,NULL,NULL,2.0000,'2026-03-05 22:02:19','2026-03-05 22:02:19'),(96,'2026-03-05',NULL,94,NULL,NULL,NULL,NULL,3.0000,'2026-03-05 22:04:20','2026-03-05 22:04:20'),(97,'2026-03-05',NULL,95,NULL,NULL,NULL,NULL,3.0000,'2026-03-05 22:06:15','2026-03-05 22:06:15'),(98,'2026-03-05',NULL,96,NULL,NULL,NULL,NULL,100.0000,'2026-03-05 22:20:02','2026-03-05 22:20:02'),(99,'2026-03-05',NULL,97,NULL,NULL,NULL,NULL,5.0000,'2026-03-05 22:33:44','2026-03-05 22:33:44'),(100,'2026-03-05',NULL,98,NULL,NULL,NULL,NULL,5.0000,'2026-03-05 22:35:20','2026-03-05 22:35:20'),(101,'2026-03-05',NULL,99,NULL,NULL,NULL,NULL,3.0000,'2026-03-05 22:41:05','2026-03-05 22:41:05'),(102,'2026-03-05',NULL,100,NULL,NULL,NULL,NULL,8.0000,'2026-03-05 22:49:02','2026-03-05 22:49:02'),(103,'2026-03-05',NULL,101,NULL,NULL,NULL,NULL,2.0000,'2026-03-05 22:50:48','2026-03-05 22:50:48'),(104,'2026-03-05',NULL,102,NULL,NULL,NULL,NULL,0.0000,'2026-03-05 22:53:06','2026-03-05 22:53:06'),(105,'2026-03-05',NULL,103,NULL,NULL,NULL,NULL,1.0000,'2026-03-05 23:02:11','2026-03-05 23:02:11'),(106,'2026-03-06',NULL,104,NULL,NULL,NULL,NULL,1.0000,'2026-03-06 15:41:12','2026-03-06 15:41:12'),(107,'2026-03-06',NULL,105,NULL,NULL,NULL,NULL,1.0000,'2026-03-06 15:43:56','2026-03-06 15:43:56'),(108,'2026-03-06',NULL,106,NULL,NULL,NULL,NULL,1.0000,'2026-03-06 15:45:40','2026-03-06 15:45:40'),(109,'2026-03-06',NULL,107,NULL,NULL,NULL,NULL,20.0000,'2026-03-06 16:04:03','2026-03-06 16:04:03'),(110,'2026-03-06',NULL,108,NULL,NULL,NULL,NULL,20.0000,'2026-03-06 16:06:46','2026-03-06 16:06:46'),(111,'2026-03-06',NULL,109,NULL,NULL,NULL,NULL,20.0000,'2026-03-06 17:16:12','2026-03-06 17:16:12'),(112,'2026-03-06',NULL,110,NULL,NULL,NULL,NULL,20.0000,'2026-03-06 17:43:50','2026-03-06 17:43:50'),(113,'2026-03-06',NULL,111,NULL,NULL,NULL,NULL,18.0000,'2026-03-06 17:46:20','2026-03-06 17:46:20'),(114,'2026-03-06',NULL,112,NULL,NULL,NULL,NULL,40.0000,'2026-03-06 18:15:10','2026-03-06 18:15:10'),(115,'2026-03-06',NULL,113,NULL,NULL,NULL,NULL,20.0000,'2026-03-06 18:17:33','2026-03-06 18:17:33'),(116,'2026-03-06',NULL,114,NULL,NULL,NULL,NULL,10.0000,'2026-03-06 18:26:44','2026-03-06 18:26:44'),(117,'2026-03-06',NULL,115,NULL,NULL,NULL,NULL,40.0000,'2026-03-06 18:30:21','2026-03-06 18:30:21'),(118,'2026-03-06',NULL,116,NULL,NULL,NULL,NULL,24.0000,'2026-03-06 18:34:31','2026-03-06 18:34:31'),(119,'2026-03-06',NULL,117,NULL,NULL,NULL,NULL,90.0000,'2026-03-06 18:38:30','2026-03-06 18:38:30'),(120,'2026-03-13',NULL,118,NULL,NULL,NULL,NULL,288.0000,'2026-03-13 19:04:21','2026-03-13 19:04:21'),(121,'2026-03-13',NULL,119,NULL,NULL,NULL,NULL,80.0000,'2026-03-13 19:09:11','2026-03-13 19:09:11'),(122,'2026-03-13',NULL,120,NULL,NULL,NULL,NULL,100.0000,'2026-03-13 19:10:49','2026-03-13 19:10:49'),(123,'2026-03-13',NULL,121,NULL,NULL,NULL,NULL,100.0000,'2026-03-13 19:12:39','2026-03-13 19:12:39'),(124,'2026-03-13',NULL,122,NULL,NULL,NULL,NULL,10.0000,'2026-03-13 19:14:51','2026-03-13 19:14:51'),(125,'2026-03-13',NULL,123,NULL,NULL,NULL,NULL,53.0000,'2026-03-13 19:18:35','2026-03-13 19:18:35'),(126,'2026-03-13',NULL,124,NULL,NULL,NULL,NULL,100.0000,'2026-03-13 19:21:17','2026-03-13 19:21:17'),(127,'2026-03-13',NULL,125,NULL,NULL,NULL,NULL,0.0000,'2026-03-13 19:51:32','2026-03-13 19:51:32'),(128,'2026-03-13',NULL,126,NULL,NULL,NULL,NULL,100.0000,'2026-03-13 19:53:44','2026-03-13 19:53:44'),(129,'2026-03-13',NULL,127,NULL,NULL,NULL,NULL,53.0000,'2026-03-13 20:15:31','2026-03-13 20:15:31'),(130,'2026-03-13',NULL,128,NULL,NULL,NULL,NULL,0.0000,'2026-03-13 20:17:20','2026-03-13 20:17:20'),(131,'2026-03-14',NULL,129,NULL,NULL,NULL,NULL,113.0000,'2026-03-14 18:25:47','2026-03-14 18:25:47'),(132,'2026-03-14',NULL,130,NULL,NULL,NULL,NULL,175.0000,'2026-03-14 18:35:55','2026-03-14 18:35:55'),(133,'2026-03-14',NULL,131,NULL,NULL,NULL,NULL,286.0000,'2026-03-14 18:39:43','2026-03-14 18:39:43'),(134,'2026-03-14',NULL,132,NULL,NULL,NULL,NULL,175.0000,'2026-03-14 18:46:26','2026-03-14 18:46:26'),(135,'2026-03-14',NULL,133,NULL,NULL,NULL,NULL,37.0000,'2026-03-14 18:57:08','2026-03-14 18:57:08'),(136,'2026-03-14','sale',1,3,NULL,NULL,NULL,5.0000,'2026-03-14 19:06:38','2026-03-14 19:06:38'),(137,'2026-03-14',NULL,134,NULL,NULL,NULL,NULL,298.0000,'2026-03-14 19:16:51','2026-03-14 19:16:51'),(138,'2026-03-14',NULL,135,NULL,NULL,NULL,NULL,80.0000,'2026-03-14 19:20:16','2026-03-14 19:20:16'),(139,'2026-03-14',NULL,136,NULL,NULL,NULL,NULL,150.0000,'2026-03-14 19:22:00','2026-03-14 19:22:00'),(140,'2026-03-14',NULL,137,NULL,NULL,NULL,NULL,150.0000,'2026-03-14 19:24:08','2026-03-14 19:24:08'),(141,'2026-03-14',NULL,138,NULL,NULL,NULL,NULL,40.0000,'2026-03-14 19:40:55','2026-03-14 19:40:55'),(142,'2026-03-14',NULL,139,NULL,NULL,NULL,NULL,98.0000,'2026-03-14 21:07:49','2026-03-14 21:07:49'),(143,'2026-03-14',NULL,140,NULL,NULL,NULL,NULL,230.0000,'2026-03-14 21:14:38','2026-03-14 21:14:38'),(144,'2026-03-14',NULL,141,NULL,NULL,NULL,NULL,99.0000,'2026-03-14 21:24:38','2026-03-14 21:24:38'),(145,'2026-03-14',NULL,142,NULL,NULL,NULL,NULL,100.0000,'2026-03-14 21:30:04','2026-03-14 21:30:04'),(146,'2026-03-14',NULL,143,NULL,NULL,NULL,NULL,37.0000,'2026-03-14 21:37:04','2026-03-14 21:37:04'),(147,'2026-03-14',NULL,144,NULL,NULL,NULL,NULL,74.0000,'2026-03-14 21:55:58','2026-03-14 21:55:58'),(148,'2026-03-14',NULL,145,NULL,NULL,NULL,NULL,209.0000,'2026-03-14 22:00:20','2026-03-14 22:00:20'),(149,'2026-03-14',NULL,146,NULL,NULL,NULL,NULL,15.0000,'2026-03-14 22:04:05','2026-03-14 22:04:05'),(150,'2026-03-14',NULL,147,NULL,NULL,NULL,NULL,78.0000,'2026-03-14 22:07:30','2026-03-14 22:07:30'),(151,'2026-03-14',NULL,148,NULL,NULL,NULL,NULL,96.0000,'2026-03-14 22:29:58','2026-03-14 22:29:58'),(152,'2026-03-14',NULL,149,NULL,NULL,NULL,NULL,100.0000,'2026-03-14 22:33:19','2026-03-14 22:33:19'),(153,'2026-03-14',NULL,150,NULL,NULL,NULL,NULL,168.0000,'2026-03-14 22:58:42','2026-03-14 22:58:42'),(154,'2026-03-15',NULL,151,NULL,NULL,NULL,NULL,51.0000,'2026-03-15 20:17:19','2026-03-15 20:17:19'),(155,'2026-03-15',NULL,152,NULL,NULL,NULL,NULL,109.0000,'2026-03-15 20:22:09','2026-03-15 20:22:09'),(156,'2026-03-15',NULL,153,NULL,NULL,NULL,NULL,28.0000,'2026-03-15 20:26:22','2026-03-15 20:26:22'),(157,'2026-03-15',NULL,154,NULL,NULL,NULL,NULL,33.0000,'2026-03-15 20:30:15','2026-03-15 20:30:15'),(158,'2026-03-15',NULL,155,NULL,NULL,NULL,NULL,0.0000,'2026-03-15 20:39:17','2026-03-15 20:39:17'),(159,'2026-03-15',NULL,156,NULL,NULL,NULL,NULL,53.0000,'2026-03-15 20:48:20','2026-03-15 20:48:20'),(160,'2026-03-15',NULL,157,NULL,NULL,NULL,NULL,60.0000,'2026-03-15 20:51:46','2026-03-15 20:51:46'),(161,'2026-03-15',NULL,158,NULL,NULL,NULL,NULL,68.0000,'2026-03-15 20:55:58','2026-03-15 20:55:58'),(162,'2026-03-15',NULL,159,NULL,NULL,NULL,NULL,8.0000,'2026-03-15 21:04:35','2026-03-15 21:04:35'),(163,'2026-03-15',NULL,160,NULL,NULL,NULL,NULL,1.0000,'2026-03-15 21:27:21','2026-03-15 21:27:21'),(164,'2026-03-15',NULL,161,NULL,NULL,NULL,NULL,1.0000,'2026-03-15 21:32:44','2026-03-15 21:32:44'),(165,'2026-03-15',NULL,162,NULL,NULL,NULL,NULL,16.0000,'2026-03-15 21:45:15','2026-03-15 21:45:15'),(166,'2026-03-15',NULL,163,NULL,NULL,NULL,NULL,26.0000,'2026-03-15 21:51:49','2026-03-15 21:51:49'),(167,'2026-03-15',NULL,164,NULL,NULL,NULL,NULL,0.0000,'2026-03-15 21:58:52','2026-03-15 21:58:52'),(168,'2026-03-15',NULL,165,NULL,NULL,NULL,NULL,17.0000,'2026-03-15 22:05:28','2026-03-15 22:05:28'),(169,'2026-03-15',NULL,166,NULL,NULL,NULL,NULL,24.0000,'2026-03-15 22:08:47','2026-03-15 22:08:47'),(170,'2026-03-18',NULL,167,NULL,NULL,NULL,NULL,0.0000,'2026-03-18 15:17:20','2026-03-18 15:17:20'),(171,'2026-03-21',NULL,168,NULL,NULL,NULL,NULL,37.0000,'2026-03-21 08:27:38','2026-03-21 08:27:38'),(172,'2026-03-21',NULL,169,NULL,NULL,NULL,NULL,77.0000,'2026-03-21 08:31:53','2026-03-21 08:31:53'),(173,'2026-03-21',NULL,170,NULL,NULL,NULL,NULL,89.0000,'2026-03-21 08:42:56','2026-03-21 08:42:56'),(174,'2026-03-21',NULL,171,NULL,NULL,NULL,NULL,61.0000,'2026-03-21 08:45:27','2026-03-21 08:45:27'),(175,'2026-03-21',NULL,172,NULL,NULL,NULL,NULL,139.0000,'2026-03-21 08:49:39','2026-03-21 08:49:39'),(176,'2026-03-21',NULL,173,NULL,NULL,NULL,NULL,13.0000,'2026-03-21 08:52:28','2026-03-21 08:52:28'),(177,'2026-03-21',NULL,174,NULL,NULL,NULL,NULL,66.0000,'2026-03-21 08:56:22','2026-03-21 08:56:22'),(178,'2026-03-21',NULL,175,NULL,NULL,NULL,NULL,100.0000,'2026-03-21 09:01:50','2026-03-21 09:01:50'),(179,'2026-03-21',NULL,176,NULL,NULL,NULL,NULL,200.0000,'2026-03-21 09:04:53','2026-03-21 09:04:53'),(180,'2026-03-21',NULL,177,NULL,NULL,NULL,NULL,102.0000,'2026-03-21 09:09:47','2026-03-21 09:09:47'),(181,'2026-03-21',NULL,178,NULL,NULL,NULL,NULL,118.0000,'2026-03-21 09:49:38','2026-03-21 09:49:38'),(182,'2026-03-21',NULL,179,NULL,NULL,NULL,NULL,276.0000,'2026-03-21 10:01:34','2026-03-21 10:01:34'),(183,'2026-03-21',NULL,180,NULL,NULL,NULL,NULL,38.0000,'2026-03-21 10:11:20','2026-03-21 10:11:20'),(184,'2026-03-21',NULL,181,NULL,NULL,NULL,NULL,109.0000,'2026-03-21 10:15:49','2026-03-21 10:15:49'),(185,'2026-03-21',NULL,182,NULL,NULL,NULL,NULL,640.0000,'2026-03-21 10:19:52','2026-03-21 10:19:52'),(186,'2026-03-21',NULL,183,NULL,NULL,NULL,NULL,0.0000,'2026-03-21 10:46:03','2026-03-21 10:46:03'),(187,'2026-03-21',NULL,184,NULL,NULL,NULL,NULL,100.0000,'2026-03-21 10:52:32','2026-03-21 10:52:32'),(188,'2026-03-21',NULL,185,NULL,NULL,NULL,NULL,5.0000,'2026-03-21 11:04:56','2026-03-21 11:04:56'),(189,'2026-03-21',NULL,186,NULL,NULL,NULL,NULL,160.0000,'2026-03-21 11:11:17','2026-03-21 11:11:17'),(190,'2026-03-21',NULL,187,NULL,NULL,NULL,NULL,265.0000,'2026-03-21 11:17:32','2026-03-21 11:17:32'),(191,'2026-03-21',NULL,188,NULL,NULL,NULL,NULL,92.0000,'2026-03-21 11:28:34','2026-03-21 11:28:34'),(192,'2026-03-21',NULL,189,NULL,NULL,NULL,NULL,14.0000,'2026-03-21 11:48:26','2026-03-21 11:48:26'),(193,'2026-03-21',NULL,190,NULL,NULL,NULL,NULL,280.0000,'2026-03-21 12:16:12','2026-03-21 12:16:12'),(194,'2026-03-21',NULL,191,NULL,NULL,NULL,NULL,300.0000,'2026-03-21 12:21:26','2026-03-21 12:21:26'),(195,'2026-03-21',NULL,192,NULL,NULL,NULL,NULL,3.0000,'2026-03-21 12:27:08','2026-03-21 12:27:08'),(196,'2026-03-21',NULL,193,NULL,NULL,NULL,NULL,1.0000,'2026-03-21 12:30:39','2026-03-21 12:30:39'),(197,'2026-03-21',NULL,194,NULL,NULL,NULL,NULL,53.0000,'2026-03-21 12:33:38','2026-03-21 12:33:38'),(198,'2026-03-21',NULL,195,NULL,NULL,NULL,NULL,5.0000,'2026-03-21 12:36:52','2026-03-21 12:36:52'),(199,'2026-03-21',NULL,196,NULL,NULL,NULL,NULL,8.0000,'2026-03-21 12:40:54','2026-03-21 12:40:54'),(200,'2026-03-21',NULL,197,NULL,NULL,NULL,NULL,7.0000,'2026-03-21 12:43:00','2026-03-21 12:43:00'),(201,'2026-03-21',NULL,198,NULL,NULL,NULL,NULL,77.0000,'2026-03-21 12:45:49','2026-03-21 12:45:49'),(202,'2026-03-21',NULL,199,NULL,NULL,NULL,NULL,120.0000,'2026-03-21 12:47:50','2026-03-21 12:47:50'),(203,'2026-03-21',NULL,200,NULL,NULL,NULL,NULL,2.0000,'2026-03-21 12:51:36','2026-03-21 12:51:36'),(204,'2026-03-21',NULL,201,NULL,NULL,NULL,NULL,661.0000,'2026-03-21 12:55:42','2026-03-21 12:55:42'),(205,'2026-03-21',NULL,202,NULL,NULL,NULL,NULL,39.0000,'2026-03-21 19:25:45','2026-03-21 19:25:45'),(206,'2026-03-21',NULL,203,NULL,NULL,NULL,NULL,8.0000,'2026-03-21 19:38:29','2026-03-21 19:38:29'),(207,'2026-03-21',NULL,204,NULL,NULL,NULL,NULL,39.0000,'2026-03-21 19:56:55','2026-03-21 19:56:55'),(208,'2026-03-21',NULL,205,NULL,NULL,NULL,NULL,20.0000,'2026-03-21 20:07:58','2026-03-21 20:07:58'),(209,'2026-03-21',NULL,206,NULL,NULL,NULL,NULL,10.0000,'2026-03-21 20:12:20','2026-03-21 20:12:20'),(210,'2026-03-21',NULL,207,NULL,NULL,NULL,NULL,77.0000,'2026-03-21 20:26:19','2026-03-21 20:26:19'),(211,'2026-03-21',NULL,208,NULL,NULL,NULL,NULL,45.0000,'2026-03-21 21:03:31','2026-03-21 21:03:31'),(212,'2026-03-21',NULL,209,NULL,NULL,NULL,NULL,37.0000,'2026-03-21 21:07:59','2026-03-21 21:07:59'),(213,'2026-03-21',NULL,210,NULL,NULL,NULL,NULL,41.0000,'2026-03-21 21:13:02','2026-03-21 21:13:02'),(214,'2026-03-21',NULL,211,NULL,NULL,NULL,NULL,235.0000,'2026-03-21 21:16:14','2026-03-21 21:16:14'),(215,'2026-03-21',NULL,212,NULL,NULL,NULL,NULL,77.0000,'2026-03-21 21:28:20','2026-03-21 21:28:20'),(216,'2026-03-21',NULL,213,NULL,NULL,NULL,NULL,148.0000,'2026-03-21 22:09:47','2026-03-21 22:09:47'),(217,'2026-03-21',NULL,214,NULL,NULL,NULL,NULL,50.0000,'2026-03-21 22:11:19','2026-03-21 22:11:19'),(218,'2026-03-21',NULL,215,NULL,NULL,NULL,NULL,32.0000,'2026-03-21 22:13:59','2026-03-21 22:13:59'),(219,'2026-03-21',NULL,216,NULL,NULL,NULL,NULL,200.0000,'2026-03-21 22:15:32','2026-03-21 22:15:32'),(220,'2026-03-21',NULL,217,NULL,NULL,NULL,NULL,19.0000,'2026-03-21 22:23:21','2026-03-21 22:23:21'),(221,'2026-03-21',NULL,218,NULL,NULL,NULL,NULL,9.0000,'2026-03-21 22:26:08','2026-03-21 22:26:08'),(222,'2026-03-21',NULL,219,NULL,NULL,NULL,NULL,118.0000,'2026-03-21 22:33:26','2026-03-21 22:33:26'),(223,'2026-03-21',NULL,220,NULL,NULL,NULL,NULL,184.0000,'2026-03-21 22:36:37','2026-03-21 22:36:37'),(224,'2026-03-21',NULL,221,NULL,NULL,NULL,NULL,8.0000,'2026-03-21 22:40:32','2026-03-21 22:40:32'),(225,'2026-03-21',NULL,222,NULL,NULL,NULL,NULL,37.0000,'2026-03-21 22:43:50','2026-03-21 22:43:50'),(226,'2026-03-21',NULL,223,NULL,NULL,NULL,NULL,76.0000,'2026-03-21 22:51:06','2026-03-21 22:51:06'),(227,'2026-03-21',NULL,224,NULL,NULL,NULL,NULL,196.0000,'2026-03-21 22:54:17','2026-03-21 22:54:17'),(228,'2026-03-21','sale',179,4,NULL,NULL,NULL,2.0000,'2026-03-21 22:55:45','2026-03-21 22:55:45'),(229,'2026-03-21','sale',182,4,NULL,NULL,NULL,2.0000,'2026-03-21 22:55:45','2026-03-21 22:55:45'),(230,'2026-03-21','sale',201,4,NULL,NULL,NULL,1.0000,'2026-03-21 22:55:45','2026-03-21 22:55:45'),(231,'2026-03-22',NULL,225,NULL,NULL,NULL,NULL,15.0000,'2026-03-22 19:38:29','2026-03-22 19:38:29'),(232,'2026-03-22',NULL,226,NULL,NULL,NULL,NULL,6.0000,'2026-03-22 19:44:34','2026-03-22 19:44:34'),(233,'2026-03-22',NULL,227,NULL,NULL,NULL,NULL,16.0000,'2026-03-22 20:14:58','2026-03-22 20:14:58'),(234,'2026-03-22',NULL,228,NULL,NULL,NULL,NULL,25.0000,'2026-03-22 21:45:12','2026-03-22 21:45:12'),(235,'2026-03-22',NULL,229,NULL,NULL,NULL,NULL,6.0000,'2026-03-22 21:49:41','2026-03-22 21:49:41'),(236,'2026-03-22',NULL,230,NULL,NULL,NULL,NULL,6.0000,'2026-03-22 21:51:28','2026-03-22 21:51:28'),(237,'2026-03-22',NULL,231,NULL,NULL,NULL,NULL,6.0000,'2026-03-22 21:53:55','2026-03-22 21:53:55'),(238,'2026-03-22',NULL,232,NULL,NULL,NULL,NULL,6.0000,'2026-03-22 22:00:20','2026-03-22 22:00:20'),(239,'2026-03-23',NULL,233,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 12:59:10','2026-03-23 12:59:10'),(240,'2026-03-23',NULL,234,NULL,NULL,NULL,NULL,4.0000,'2026-03-23 13:00:47','2026-03-23 13:00:47'),(241,'2026-03-23',NULL,235,NULL,NULL,NULL,NULL,4.0000,'2026-03-23 13:02:58','2026-03-23 13:02:58'),(242,'2026-03-23',NULL,236,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 13:04:14','2026-03-23 13:04:14'),(243,'2026-03-23',NULL,237,NULL,NULL,NULL,NULL,5.0000,'2026-03-23 13:07:31','2026-03-23 13:07:31'),(244,'2026-03-23',NULL,238,NULL,NULL,NULL,NULL,6.0000,'2026-03-23 13:12:50','2026-03-23 13:12:50'),(245,'2026-03-23',NULL,239,NULL,NULL,NULL,NULL,6.0000,'2026-03-23 13:14:54','2026-03-23 13:14:54'),(246,'2026-03-23',NULL,240,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 13:17:00','2026-03-23 13:17:00'),(247,'2026-03-23',NULL,241,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 13:18:51','2026-03-23 13:18:51'),(248,'2026-03-23',NULL,242,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 13:20:38','2026-03-23 13:20:38'),(249,'2026-03-23',NULL,243,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 13:21:42','2026-03-23 13:21:42'),(250,'2026-03-23',NULL,244,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 13:24:51','2026-03-23 13:24:51'),(251,'2026-03-23',NULL,245,NULL,NULL,NULL,NULL,4.0000,'2026-03-23 13:26:39','2026-03-23 13:26:39'),(252,'2026-03-23',NULL,246,NULL,NULL,NULL,NULL,4.0000,'2026-03-23 13:30:49','2026-03-23 13:30:49'),(253,'2026-03-23',NULL,247,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 13:33:01','2026-03-23 13:33:01'),(254,'2026-03-23',NULL,248,NULL,NULL,NULL,NULL,4.0000,'2026-03-23 13:35:19','2026-03-23 13:35:19'),(255,'2026-03-23',NULL,249,NULL,NULL,NULL,NULL,5.0000,'2026-03-23 13:37:46','2026-03-23 13:37:46'),(256,'2026-03-23',NULL,250,NULL,NULL,NULL,NULL,6.0000,'2026-03-23 13:41:16','2026-03-23 13:41:16'),(257,'2026-03-23',NULL,251,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 13:42:32','2026-03-23 13:42:32'),(258,'2026-03-23',NULL,252,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 13:43:57','2026-03-23 13:43:57'),(259,'2026-03-23',NULL,253,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 13:44:59','2026-03-23 13:44:59'),(260,'2026-03-23',NULL,254,NULL,NULL,NULL,NULL,4.0000,'2026-03-23 13:46:39','2026-03-23 13:46:39'),(261,'2026-03-23',NULL,255,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 13:48:52','2026-03-23 13:48:52'),(262,'2026-03-23',NULL,256,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 13:50:50','2026-03-23 13:50:50'),(263,'2026-03-23',NULL,257,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 13:53:44','2026-03-23 13:53:44'),(264,'2026-03-23',NULL,258,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 13:55:39','2026-03-23 13:55:39'),(265,'2026-03-23',NULL,259,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 13:57:07','2026-03-23 13:57:07'),(266,'2026-03-23',NULL,260,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 13:58:44','2026-03-23 13:58:44'),(267,'2026-03-23',NULL,261,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 14:00:05','2026-03-23 14:00:05'),(268,'2026-03-23',NULL,262,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 14:02:43','2026-03-23 14:02:43'),(269,'2026-03-23',NULL,263,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 14:05:09','2026-03-23 14:05:09'),(270,'2026-03-23',NULL,264,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 14:07:02','2026-03-23 14:07:02'),(271,'2026-03-23',NULL,265,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 14:10:14','2026-03-23 14:10:14'),(272,'2026-03-23',NULL,266,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 14:11:45','2026-03-23 14:11:45'),(273,'2026-03-23',NULL,267,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 14:14:53','2026-03-23 14:14:53'),(274,'2026-03-23',NULL,268,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 14:17:10','2026-03-23 14:17:10'),(275,'2026-03-23',NULL,269,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 14:18:36','2026-03-23 14:18:36'),(276,'2026-03-23',NULL,270,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 14:19:39','2026-03-23 14:19:39'),(277,'2026-03-23',NULL,271,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 14:26:02','2026-03-23 14:26:02'),(278,'2026-03-23',NULL,272,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 14:27:44','2026-03-23 14:27:44'),(279,'2026-03-23',NULL,273,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 14:28:44','2026-03-23 14:28:44'),(280,'2026-03-23',NULL,274,NULL,NULL,NULL,NULL,4.0000,'2026-03-23 14:30:03','2026-03-23 14:30:03'),(281,'2026-03-23',NULL,275,NULL,NULL,NULL,NULL,4.0000,'2026-03-23 14:31:13','2026-03-23 14:31:13'),(282,'2026-03-23',NULL,276,NULL,NULL,NULL,NULL,4.0000,'2026-03-23 14:32:09','2026-03-23 14:32:09'),(283,'2026-03-23',NULL,277,NULL,NULL,NULL,NULL,4.0000,'2026-03-23 14:33:11','2026-03-23 14:33:11'),(284,'2026-03-23',NULL,278,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 14:36:10','2026-03-23 14:36:10'),(285,'2026-03-23',NULL,279,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 14:37:54','2026-03-23 14:37:54'),(286,'2026-03-23',NULL,280,NULL,NULL,NULL,NULL,6.0000,'2026-03-23 14:43:04','2026-03-23 14:43:04'),(287,'2026-03-23',NULL,281,NULL,NULL,NULL,NULL,4.0000,'2026-03-23 14:45:14','2026-03-23 14:45:14'),(288,'2026-03-23',NULL,282,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 14:46:46','2026-03-23 14:46:46'),(289,'2026-03-23',NULL,283,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 14:48:56','2026-03-23 14:48:56'),(290,'2026-03-23',NULL,284,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 14:50:41','2026-03-23 14:50:41'),(291,'2026-03-23',NULL,285,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 14:51:58','2026-03-23 14:51:58'),(292,'2026-03-23',NULL,286,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 14:53:57','2026-03-23 14:53:57'),(293,'2026-03-23',NULL,287,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 14:57:49','2026-03-23 14:57:49'),(294,'2026-03-23',NULL,288,NULL,NULL,NULL,NULL,6.0000,'2026-03-23 15:15:17','2026-03-23 15:15:17'),(295,'2026-03-23',NULL,289,NULL,NULL,NULL,NULL,6.0000,'2026-03-23 15:17:20','2026-03-23 15:17:20'),(296,'2026-03-23',NULL,290,NULL,NULL,NULL,NULL,22.0000,'2026-03-23 15:23:59','2026-03-23 15:23:59'),(297,'2026-03-23',NULL,291,NULL,NULL,NULL,NULL,25.0000,'2026-03-23 15:36:04','2026-03-23 15:36:04'),(298,'2026-03-23',NULL,292,NULL,NULL,NULL,NULL,100.0000,'2026-03-23 15:42:33','2026-03-23 15:42:33'),(299,'2026-03-23',NULL,293,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 15:46:28','2026-03-23 15:46:28'),(300,'2026-03-23',NULL,294,NULL,NULL,NULL,NULL,250.0000,'2026-03-23 15:48:28','2026-03-23 15:48:28'),(301,'2026-03-23',NULL,295,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 15:56:39','2026-03-23 15:56:39'),(302,'2026-03-23',NULL,296,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 15:57:33','2026-03-23 15:57:33'),(303,'2026-03-23',NULL,297,NULL,NULL,NULL,NULL,6.0000,'2026-03-23 16:01:31','2026-03-23 16:01:31'),(304,'2026-03-23',NULL,298,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 16:05:04','2026-03-23 16:05:04'),(305,'2026-03-23',NULL,299,NULL,NULL,NULL,NULL,4.0000,'2026-03-23 16:06:15','2026-03-23 16:06:15'),(306,'2026-03-23',NULL,300,NULL,NULL,NULL,NULL,6.0000,'2026-03-23 16:08:42','2026-03-23 16:08:42'),(307,'2026-03-23',NULL,301,NULL,NULL,NULL,NULL,6.0000,'2026-03-23 16:09:54','2026-03-23 16:09:54'),(308,'2026-03-23',NULL,302,NULL,NULL,NULL,NULL,6.0000,'2026-03-23 16:10:56','2026-03-23 16:10:56'),(309,'2026-03-23',NULL,303,NULL,NULL,NULL,NULL,4.0000,'2026-03-23 16:12:06','2026-03-23 16:12:06'),(310,'2026-03-23',NULL,304,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 16:14:45','2026-03-23 16:14:45'),(311,'2026-03-23',NULL,305,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 16:15:47','2026-03-23 16:15:47'),(312,'2026-03-23',NULL,306,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 16:16:43','2026-03-23 16:16:43'),(313,'2026-03-23',NULL,307,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 16:17:35','2026-03-23 16:17:35'),(314,'2026-03-23',NULL,308,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 16:18:31','2026-03-23 16:18:31'),(315,'2026-03-23',NULL,309,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 16:19:35','2026-03-23 16:19:35'),(316,'2026-03-23',NULL,310,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 16:20:19','2026-03-23 16:20:19'),(317,'2026-03-23',NULL,311,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 16:21:00','2026-03-23 16:21:00'),(318,'2026-03-23',NULL,312,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 16:21:53','2026-03-23 16:21:53'),(319,'2026-03-23',NULL,313,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 16:22:52','2026-03-23 16:22:52'),(320,'2026-03-23',NULL,314,NULL,NULL,NULL,NULL,4.0000,'2026-03-23 16:24:05','2026-03-23 16:24:05'),(321,'2026-03-23',NULL,315,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 16:30:07','2026-03-23 16:30:07'),(322,'2026-03-23',NULL,316,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 16:34:17','2026-03-23 16:34:17'),(323,'2026-03-23',NULL,317,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 16:35:48','2026-03-23 16:35:48'),(324,'2026-03-23',NULL,318,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 16:36:49','2026-03-23 16:36:49'),(325,'2026-03-23',NULL,319,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 16:37:34','2026-03-23 16:37:34'),(326,'2026-03-23',NULL,320,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 16:39:21','2026-03-23 16:39:21'),(327,'2026-03-23',NULL,321,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 16:40:15','2026-03-23 16:40:15'),(328,'2026-03-23',NULL,322,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 16:41:18','2026-03-23 16:41:18'),(329,'2026-03-23',NULL,323,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 16:42:17','2026-03-23 16:42:17'),(330,'2026-03-23',NULL,324,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 16:45:52','2026-03-23 16:45:52'),(331,'2026-03-23',NULL,325,NULL,NULL,NULL,NULL,4.0000,'2026-03-23 16:46:48','2026-03-23 16:46:48'),(332,'2026-03-23',NULL,326,NULL,NULL,NULL,NULL,5.0000,'2026-03-23 16:47:58','2026-03-23 16:47:58'),(333,'2026-03-23',NULL,327,NULL,NULL,NULL,NULL,5.0000,'2026-03-23 16:48:47','2026-03-23 16:48:47'),(334,'2026-03-23',NULL,328,NULL,NULL,NULL,NULL,12.0000,'2026-03-23 16:49:41','2026-03-23 16:49:41'),(335,'2026-03-23',NULL,329,NULL,NULL,NULL,NULL,12.0000,'2026-03-23 16:50:36','2026-03-23 16:50:36'),(336,'2026-03-23',NULL,330,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 16:58:26','2026-03-23 16:58:26'),(337,'2026-03-23',NULL,331,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 16:59:56','2026-03-23 16:59:56'),(338,'2026-03-23',NULL,332,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 17:00:34','2026-03-23 17:00:34'),(339,'2026-03-23',NULL,333,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 17:02:11','2026-03-23 17:02:11'),(340,'2026-03-23',NULL,334,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 17:05:34','2026-03-23 17:05:34'),(341,'2026-03-23',NULL,335,NULL,NULL,NULL,NULL,4.0000,'2026-03-23 17:11:27','2026-03-23 17:11:27'),(343,'2026-03-23',NULL,337,NULL,NULL,NULL,NULL,3.0000,'2026-03-23 17:17:56','2026-03-23 17:17:56'),(344,'2026-03-23',NULL,338,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 17:21:33','2026-03-23 17:21:33'),(345,'2026-03-23',NULL,339,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 17:23:23','2026-03-23 17:23:23'),(346,'2026-03-23',NULL,340,NULL,NULL,NULL,NULL,5.0000,'2026-03-23 17:24:29','2026-03-23 17:24:29'),(347,'2026-03-23','sale',183,5,NULL,NULL,NULL,1.0000,'2026-03-23 18:17:47','2026-03-23 18:17:47'),(348,'2026-03-23','sale',182,5,NULL,NULL,NULL,1.0000,'2026-03-23 18:17:47','2026-03-23 18:17:47'),(349,'2026-03-23',NULL,341,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 20:14:41','2026-03-23 20:14:41'),(350,'2026-03-23',NULL,342,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 20:16:25','2026-03-23 20:16:25'),(351,'2026-03-23',NULL,343,NULL,NULL,NULL,NULL,2.0000,'2026-03-23 20:18:08','2026-03-23 20:18:08'),(352,'2026-03-23','sale',204,6,NULL,NULL,NULL,3.0000,'2026-03-23 20:32:49','2026-03-23 20:32:49'),(353,'2026-03-23','sale',126,6,NULL,NULL,NULL,2.0000,'2026-03-23 20:32:49','2026-03-23 20:32:49'),(354,'2026-03-23','sale',182,6,NULL,NULL,NULL,4.0000,'2026-03-23 20:32:49','2026-03-23 20:32:49'),(355,'2026-03-23',NULL,344,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 22:22:51','2026-03-23 22:22:51'),(356,'2026-03-23',NULL,345,NULL,NULL,NULL,NULL,1.0000,'2026-03-23 22:25:16','2026-03-23 22:25:16'),(357,'2026-03-24',NULL,346,NULL,NULL,NULL,NULL,4.0000,'2026-03-24 15:51:48','2026-03-24 15:51:48'),(358,'2026-03-24',NULL,347,NULL,NULL,NULL,NULL,4.0000,'2026-03-24 15:54:54','2026-03-24 15:54:54'),(359,'2026-03-24',NULL,348,NULL,NULL,NULL,NULL,7.0000,'2026-03-24 15:56:54','2026-03-24 15:56:54'),(360,'2026-03-24',NULL,349,NULL,NULL,NULL,NULL,4.0000,'2026-03-24 16:02:17','2026-03-24 16:02:17'),(361,'2026-03-24',NULL,350,NULL,NULL,NULL,NULL,9.0000,'2026-03-24 16:03:56','2026-03-24 16:03:56'),(362,'2026-03-24',NULL,351,NULL,NULL,NULL,NULL,22.0000,'2026-03-24 16:09:42','2026-03-24 16:09:42'),(363,'2026-03-24',NULL,352,NULL,NULL,NULL,NULL,15.0000,'2026-03-24 16:41:56','2026-03-24 16:41:56'),(364,'2026-03-24',NULL,353,NULL,NULL,NULL,NULL,40.0000,'2026-03-24 16:43:35','2026-03-24 16:43:35'),(365,'2026-03-24',NULL,354,NULL,NULL,NULL,NULL,18.0000,'2026-03-24 16:46:49','2026-03-24 16:46:49'),(366,'2026-03-24',NULL,355,NULL,NULL,NULL,NULL,14.0000,'2026-03-24 16:52:51','2026-03-24 16:52:51'),(367,'2026-03-24',NULL,356,NULL,NULL,NULL,NULL,31.0000,'2026-03-24 16:57:10','2026-03-24 16:57:10'),(368,'2026-03-24',NULL,357,NULL,NULL,NULL,NULL,3.0000,'2026-03-24 16:59:55','2026-03-24 16:59:55'),(369,'2026-03-24',NULL,358,NULL,NULL,NULL,NULL,5.0000,'2026-03-24 17:02:19','2026-03-24 17:02:19'),(370,'2026-03-24',NULL,359,NULL,NULL,NULL,NULL,12.0000,'2026-03-24 17:03:28','2026-03-24 17:03:28'),(371,'2026-03-24',NULL,360,NULL,NULL,NULL,NULL,1.0000,'2026-03-24 17:10:59','2026-03-24 17:10:59'),(372,'2026-03-24',NULL,361,NULL,NULL,NULL,NULL,1.0000,'2026-03-24 17:13:47','2026-03-24 17:13:47'),(373,'2026-03-27',NULL,362,NULL,NULL,NULL,NULL,3.0000,'2026-03-27 18:47:17','2026-03-27 18:47:17'),(374,'2026-03-27','sale',362,7,NULL,NULL,NULL,1.0000,'2026-03-27 18:48:13','2026-03-27 18:48:13'),(375,'2026-03-28',NULL,363,NULL,NULL,NULL,NULL,100.0000,'2026-03-28 20:35:05','2026-03-28 20:35:05'),(376,'2026-03-28',NULL,364,NULL,NULL,NULL,NULL,150.0000,'2026-03-28 20:39:14','2026-03-28 20:39:14'),(377,'2026-03-28',NULL,365,NULL,NULL,NULL,NULL,49.0000,'2026-03-28 20:43:55','2026-03-28 20:43:55'),(378,'2026-03-28',NULL,366,NULL,NULL,NULL,NULL,1.0000,'2026-03-28 20:48:30','2026-03-28 20:48:30'),(379,'2026-03-28',NULL,367,NULL,NULL,NULL,NULL,6.0000,'2026-03-28 21:07:22','2026-03-28 21:07:22'),(380,'2026-03-29','sale',4,8,NULL,NULL,NULL,1.0000,'2026-03-29 21:32:54','2026-03-29 21:32:54'),(381,'2026-03-29','sale',293,8,NULL,NULL,NULL,1.0000,'2026-03-29 21:32:54','2026-03-29 21:32:54'),(382,'2026-03-29','sale',363,8,NULL,NULL,NULL,1.0000,'2026-03-29 21:32:55','2026-03-29 21:32:55'),(383,'2026-03-29',NULL,368,NULL,NULL,NULL,NULL,36.0000,'2026-03-29 23:11:22','2026-03-29 23:11:22'),(384,'2026-03-29',NULL,369,NULL,NULL,NULL,NULL,360.0000,'2026-03-29 23:16:04','2026-03-29 23:16:04'),(385,'2026-03-30',NULL,370,NULL,NULL,NULL,NULL,200.0000,'2026-03-30 14:42:01','2026-03-30 14:42:01'),(386,'2026-03-30',NULL,371,NULL,NULL,NULL,NULL,6.0000,'2026-03-30 14:45:41','2026-03-30 14:45:41'),(387,'2026-03-30',NULL,372,NULL,NULL,NULL,NULL,6.0000,'2026-03-30 15:00:26','2026-03-30 15:00:26'),(388,'2026-03-30',NULL,373,NULL,NULL,NULL,NULL,200.0000,'2026-03-30 15:04:08','2026-03-30 15:04:08'),(389,'2026-03-30',NULL,374,NULL,NULL,NULL,NULL,9.0000,'2026-03-30 15:06:34','2026-03-30 15:06:34'),(390,'2026-03-30',NULL,375,NULL,NULL,NULL,NULL,16.0000,'2026-03-30 15:24:12','2026-03-30 15:24:12'),(391,'2026-03-30',NULL,376,NULL,NULL,NULL,NULL,6.0000,'2026-03-30 18:12:11','2026-03-30 18:12:11'),(392,'2026-03-30',NULL,377,NULL,NULL,NULL,NULL,58.0000,'2026-03-30 18:17:24','2026-03-30 18:17:24'),(393,'2026-03-30',NULL,378,NULL,NULL,NULL,NULL,300.0000,'2026-03-30 18:26:22','2026-03-30 18:26:22'),(394,'2026-03-30','sale',182,9,NULL,NULL,NULL,50.0000,'2026-03-30 21:52:24','2026-03-30 21:52:24'),(395,'2026-03-30',NULL,379,NULL,NULL,NULL,NULL,43.0000,'2026-03-30 22:30:28','2026-03-30 22:30:28'),(396,'2026-03-30',NULL,380,NULL,NULL,NULL,NULL,9.0000,'2026-03-30 22:36:33','2026-03-30 22:36:33'),(397,'2026-03-30',NULL,381,NULL,NULL,NULL,NULL,50.0000,'2026-03-30 22:40:41','2026-03-30 22:40:41'),(398,'2026-03-30',NULL,382,NULL,NULL,NULL,NULL,3.0000,'2026-03-30 22:44:58','2026-03-30 22:44:58'),(399,'2026-03-30','sale',112,10,NULL,NULL,NULL,1.0000,'2026-03-30 22:49:59','2026-03-30 22:49:59'),(400,'2026-03-30','sale',115,10,NULL,NULL,NULL,10.0000,'2026-03-30 22:50:00','2026-03-30 22:50:00'),(401,'2026-03-30','sale',382,10,NULL,NULL,NULL,1.0000,'2026-03-30 22:50:00','2026-03-30 22:50:00'),(402,'2026-03-30','sale',380,10,NULL,NULL,NULL,1.0000,'2026-03-30 22:50:00','2026-03-30 22:50:00'),(403,'2026-03-30','sale',381,10,NULL,NULL,NULL,4.0000,'2026-03-30 22:50:00','2026-03-30 22:50:00'),(404,'2026-03-30','sale',379,10,NULL,NULL,NULL,3.0000,'2026-03-30 22:50:00','2026-03-30 22:50:00'),(405,'2026-03-30','sale',167,10,NULL,NULL,NULL,1.0000,'2026-03-30 22:50:00','2026-03-30 22:50:00'),(406,'2026-03-30','sale',380,11,NULL,NULL,NULL,1.0000,'2026-03-30 22:53:17','2026-03-30 22:53:17'),(407,'2026-03-30','sale',382,11,NULL,NULL,NULL,1.0000,'2026-03-30 22:53:17','2026-03-30 22:53:17'),(408,'2026-03-30','sale',381,11,NULL,NULL,NULL,4.0000,'2026-03-30 22:53:17','2026-03-30 22:53:17'),(409,'2026-03-30','sale',379,11,NULL,NULL,NULL,3.0000,'2026-03-30 22:53:17','2026-03-30 22:53:17'),(410,'2026-03-30','sale',167,11,NULL,NULL,NULL,1.0000,'2026-03-30 22:53:17','2026-03-30 22:53:17'),(411,'2026-03-30','sale',112,11,NULL,NULL,NULL,1.0000,'2026-03-30 22:53:17','2026-03-30 22:53:17'),(412,'2026-03-30','sale',115,11,NULL,NULL,NULL,10.0000,'2026-03-30 22:53:17','2026-03-30 22:53:17'),(413,'2026-03-31',NULL,383,NULL,NULL,NULL,NULL,5.0000,'2026-03-31 15:00:11','2026-03-31 15:00:11'),(414,'2026-03-31',NULL,384,NULL,NULL,NULL,NULL,100.0000,'2026-03-31 15:03:20','2026-03-31 15:03:20'),(415,'2026-03-31',NULL,385,NULL,NULL,NULL,NULL,20.0000,'2026-03-31 15:08:36','2026-03-31 15:08:36'),(416,'2026-03-31',NULL,386,NULL,NULL,NULL,NULL,40.0000,'2026-03-31 15:13:53','2026-03-31 15:13:53'),(417,'2026-03-31',NULL,387,NULL,NULL,NULL,NULL,6.0000,'2026-03-31 15:19:01','2026-03-31 15:19:01'),(418,'2026-03-31',NULL,388,NULL,NULL,NULL,NULL,1.0000,'2026-03-31 15:22:31','2026-03-31 15:22:31'),(419,'2026-03-31',NULL,389,NULL,NULL,NULL,NULL,3.0000,'2026-03-31 15:26:53','2026-03-31 15:26:53'),(420,'2026-03-31',NULL,390,NULL,NULL,NULL,NULL,6.0000,'2026-03-31 15:32:12','2026-03-31 15:32:12'),(421,'2026-03-31',NULL,391,NULL,NULL,NULL,NULL,2.0000,'2026-03-31 15:34:54','2026-03-31 15:34:54'),(422,'2026-03-31',NULL,392,NULL,NULL,NULL,NULL,4.0000,'2026-03-31 15:46:13','2026-03-31 15:46:13'),(423,'2026-03-31',NULL,393,NULL,NULL,NULL,NULL,5.0000,'2026-03-31 15:57:12','2026-03-31 15:57:12'),(424,'2026-03-31',NULL,394,NULL,NULL,NULL,NULL,3.0000,'2026-03-31 16:07:19','2026-03-31 16:07:19'),(425,'2026-03-31',NULL,395,NULL,NULL,NULL,NULL,5.0000,'2026-03-31 16:10:50','2026-03-31 16:10:50'),(426,'2026-03-31',NULL,396,NULL,NULL,NULL,NULL,6.0000,'2026-03-31 16:14:09','2026-03-31 16:14:09'),(427,'2026-03-31',NULL,397,NULL,NULL,NULL,NULL,3.0000,'2026-03-31 16:17:30','2026-03-31 16:17:30'),(428,'2026-03-31',NULL,398,NULL,NULL,NULL,NULL,24.0000,'2026-03-31 16:19:24','2026-03-31 16:19:24'),(429,'2026-03-31',NULL,399,NULL,NULL,NULL,NULL,2.0000,'2026-03-31 16:35:56','2026-03-31 16:35:56'),(430,'2026-03-31',NULL,400,NULL,NULL,NULL,NULL,2.0000,'2026-03-31 17:14:20','2026-03-31 17:14:20'),(431,'2026-03-31',NULL,401,NULL,NULL,NULL,NULL,2.0000,'2026-03-31 19:54:36','2026-03-31 19:54:36'),(432,'2026-03-31',NULL,402,NULL,NULL,NULL,NULL,9.0000,'2026-03-31 19:59:29','2026-03-31 19:59:29'),(433,'2026-03-31',NULL,403,NULL,NULL,NULL,NULL,9.0000,'2026-03-31 20:02:14','2026-03-31 20:02:14'),(434,'2026-03-31',NULL,404,NULL,NULL,NULL,NULL,12.0000,'2026-03-31 21:42:14','2026-03-31 21:42:14'),(435,'2026-03-31',NULL,405,NULL,NULL,NULL,NULL,30.0000,'2026-03-31 21:46:11','2026-03-31 21:46:11'),(436,'2026-03-31',NULL,406,NULL,NULL,NULL,NULL,24.0000,'2026-03-31 21:48:23','2026-03-31 21:48:23'),(437,'2026-03-31',NULL,407,NULL,NULL,NULL,NULL,600.0000,'2026-03-31 21:56:19','2026-03-31 21:56:19'),(438,'2026-03-31',NULL,408,NULL,NULL,NULL,NULL,60.0000,'2026-03-31 21:59:38','2026-03-31 21:59:38'),(439,'2026-04-01',NULL,409,NULL,NULL,NULL,NULL,288.0000,'2026-04-01 19:22:05','2026-04-01 19:22:05'),(440,'2026-04-01',NULL,410,NULL,NULL,NULL,NULL,300.0000,'2026-04-01 19:31:32','2026-04-01 19:31:32'),(441,'2026-04-01',NULL,411,NULL,NULL,NULL,NULL,100.0000,'2026-04-01 19:43:03','2026-04-01 19:43:03');
COMMIT;

-- Dumped table `kardex` with 440 row(s)
--

--
-- Table structure for table `locations`
--

CREATE TABLE `locations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `locations`
--

SET autocommit=0;
COMMIT;

-- Dumped table `locations` with 0 row(s)
--

--
-- Table structure for table `machines`
--

CREATE TABLE `machines` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `machine_type_id` int(10) unsigned NOT NULL,
  `name` text DEFAULT NULL,
  `brand` text DEFAULT NULL,
  `model` text DEFAULT NULL,
  `closing_force` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `machines`
--

SET autocommit=0;
COMMIT;

-- Dumped table `machines` with 0 row(s)
--

--
-- Table structure for table `machine_types`
--

CREATE TABLE `machine_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` text NOT NULL,
  `description` text DEFAULT NULL,
  `active` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `machine_types`
--

SET autocommit=0;
COMMIT;

-- Dumped table `machine_types` with 0 row(s)
--

--
-- Table structure for table `migrations`
--

CREATE TABLE `migrations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(255) NOT NULL,
  `batch` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=922 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `migrations`
--

SET autocommit=0;
INSERT INTO `migrations` VALUES (1,'2018_00_00_000000_tenant_catalogs_table',1),(2,'2018_01_00_000000_tenant_system_table',1),(3,'2018_01_01_000000_tenant_users_table',1),(4,'2018_01_01_000001_tenant_password_resets_table',1),(5,'2018_01_01_000004_tenant_modules_table',1),(6,'2018_01_01_000006_tenant_module_user_table',1),(7,'2018_01_01_000013_tenant_location_table',1),(8,'2018_05_16_000800_tenant_companies_table',1),(9,'2018_05_16_000810_tenant_establishments_table',1),(10,'2018_05_16_000900_tenant_configurations_table',1),(11,'2018_05_17_000002_tenant_series_table',1),(12,'2018_05_17_000101_tenant_persons_table',1),(13,'2018_06_17_000001_tenant_items_table',1),(14,'2018_06_17_000002_tenant_documents_table',1),(15,'2018_06_17_000005_tenant_document_items_table',1),(16,'2018_06_19_000020_tenant_invoices_table',1),(17,'2018_06_19_000021_tenant_notes_table',1),(18,'2018_06_21_000002_tenant_summaries_table',1),(19,'2018_06_21_000003_tenant_summary_documents_table',1),(20,'2018_06_21_000004_tenant_voided_table',1),(21,'2018_06_21_000005_tenant_voided_documents_table',1),(22,'2018_06_22_000022_tenant_retentions_table',1),(23,'2018_06_22_000023_tenant_retention_documents_table',1),(24,'2018_06_22_000024_tenant_perceptions_table',1),(25,'2018_06_22_000026_tenant_perception_details_table',1),(26,'2018_07_22_000024_tenant_dispatches_table',1),(27,'2018_07_22_000030_tenant_dispatch_items_table',1),(28,'2019_02_12_000002_tenant_purchases_table',1),(29,'2019_02_12_000005_tenant_purchase_items_table',1),(30,'2019_02_12_000007_tenant_kardex_table',1),(31,'2019_02_13_150334_tenant_add_cront_to_configurations',1),(32,'2019_02_13_175903_tenant_change_type_column_quantity_to_document_items',1),(33,'2019_02_13_190940_tenant_add_information_to_documents',1),(34,'2019_02_14_100645_tenant_add_establishment_id_to_users',1),(35,'2019_02_19_150123_tenant_change_columns_to_exchange_rates',1),(36,'2019_02_25_074400_tenant_add_data_json_to_documents',1),(37,'2019_02_26_084922_tenant_change_columns_offline_to_documents',1),(38,'2019_02_27_093803_tenant_add_send_online_to_documents',1),(39,'2019_02_27_150015_create_tasks_table',1),(40,'2019_02_28_100503_tenant_add_calculate_quantity_to_items',1),(41,'2019_02_28_154355_tenant_delete_unique_class_to_tasks',1),(42,'2019_02_28_215128_tenant_change_decimal_column_quantity_to_document_items',1),(43,'2019_03_01_100028_tenant_change_decimal_column_stock_to_items',1),(44,'2019_03_01_100550_tenant_change_type_column_quantity_to_purchase_items',1),(45,'2019_03_01_100938_tenant_change_type_column_quantity_to_kardex',1),(46,'2019_03_01_163938_tenant_add_locked_to_users',1),(47,'2019_03_16_095539_tenant_quotations_table',1),(48,'2019_03_16_095620_tenant_quotation_items_table',1),(49,'2019_03_19_155345_tenant_sale_notes_table',1),(50,'2019_03_19_155546_tenant_sale_note_items_table',1),(51,'2019_03_20_152101_tenant_add_sale_note_id_to_kardex',1),(52,'2019_03_22_095723_tenant_change_nullable_colum_type_to_kardex',1),(53,'2019_03_23_114011_tenant_warehouses_table',1),(54,'2019_03_23_134515_add_warehouse_id_to_items',1),(55,'2019_03_23_154011_tenant_item_warehouse_table',1),(56,'2019_03_25_120709_tenant_inventories_table',1),(57,'2019_03_26_120709_tenant_inventory_kardex_table',1),(58,'2019_03_27_104823_tenant_add_record_to_warehouses',1),(59,'2019_03_28_102106_tenant_add_quotation_id_to_documents',1),(60,'2019_03_28_112106_tenant_add_foreign_establishment_id_to_warehouses',1),(61,'2019_03_29_100403_tenant_add_foreign_to_item_warehouse',1),(62,'2019_03_29_100413_tenant_add_foreign_to_inventories',1),(63,'2019_03_29_100433_tenant_add_foreign_to_inventory_kardex',1),(64,'2019_03_29_100503_tenant_add_has_igv_to_items',1),(65,'2019_04_24_151702_tenant_add_stock_to_configurations',1),(66,'2019_04_26_105302_tenant_add_contingency_to_series',1),(67,'2019_04_29_111659_tenant_inventory_configurations_table',1),(68,'2019_04_29_164935_tenant_add_record_to_inventory_configurations',1),(69,'2019_04_30_140509_tenant_add_type_to_users',1),(70,'2019_05_06_174801_tenant_change_column_type_to_users',1),(71,'2019_05_07_160954_tenant_item_unit_types_table',1),(72,'2019_05_10_172128_tenant_add_price_default_to_item_unit_types',1),(73,'2019_05_13_145524_tenant_fix_error_to_inventories',1),(74,'2019_05_14_091046_tenant_description_to_item_unit_types',1),(75,'2019_05_27_185903_tenant_change_type_column_qr_to_documents',1),(76,'2019_05_28_172128_tenant_add_percentage_of_profit_to_items',1),(77,'2019_06_12_000005_tenant_document_payments_table',1),(78,'2019_06_12_000015_tenant_sale_note_payments_table',1),(79,'2019_06_12_172128_tenant_add_total_canceled_to_sale_notes',1),(80,'2019_06_13_100503_tenant_change_unit_price_to_items',1),(81,'2019_06_14_100503_tenant_person_address_table',1),(82,'2019_06_24_122116_tenant_add_changed_to_sale_notes',1),(83,'2019_07_09_141248_tenant_expense_types_table',1),(84,'2019_07_09_141408_tenant_expenses_table',1),(85,'2019_07_09_141508_tenant_expense_items_table',1),(86,'2019_07_09_172826_tenant_add_perception_agent_to_persons',1),(87,'2019_07_10_092347_tenant_add_percentage_perception_to_items',1),(88,'2019_07_10_103811_tenant_add_columns_perceptions_to_purchases',1),(89,'2019_07_10_120610_tenant_add_columns_purchases_to_payment_method_types',1),(90,'2019_07_10_123325_tenant_purchase_payments_table',1),(91,'2019_07_10_140636_tenant_add_date_of_due_to_purchases',1),(92,'2019_07_10_151332_tenant_add_warehouse_id_to_purchase_items',1),(93,'2019_07_12_181618_tenant_add_columns_aditional_to_establishments',1),(94,'2019_07_19_163617_tenant_add_columns_system_to_configurations',1),(95,'2019_07_22_094601_tenant_cash_table',1),(96,'2019_07_22_094658_tenant_cash_documents_table',1),(97,'2019_07_22_094725_tenant_add_image_to_items',1),(98,'2019_07_22_094803_tenant_modify_document_id_to_cash_documents',1),(99,'2019_07_22_102243_tenant_accounts_table',1),(100,'2019_07_22_103459_tenant_add_account_id_to_items',1),(101,'2019_07_23_175808_tenant_modify_decimals_to_item_unit_types',1),(102,'2019_07_24_162847_tenant_add_data_module_for_pos',1),(103,'2019_07_25_144505_tenant_add_ose_to_companies',1),(104,'2019_07_27_181623_tenant_add_name_name2_to_items',1),(105,'2019_07_31_165537_tenant_add_subtotal_account_to_configurations',1),(106,'2019_08_01_002801_tenant_add_status_to_item',1),(107,'2019_08_01_005553_tenant_add_status_to_persons',1),(108,'2019_08_01_011908_tenant_add_description_to_quotations',1),(109,'2019_08_01_095140_tenant_add_status_to_bank_accounts',1),(110,'2019_08_01_101234_tenant_add_active_to_banks',1),(111,'2019_08_01_102419_tenant_add_active_to_card_brands',1),(112,'2019_08_01_105836_tenant_delete_subtotal_account_to_configurations',1),(113,'2019_08_01_110045_tenant_company_accounts_table',1),(114,'2019_08_03_162431_tenant_add_data_modules_for_dashboard',1),(115,'2019_08_05_130830_tenant_add_index_external_id_to_documents',1),(116,'2019_08_12_125016_tenant_up_unit_price_to_items',1),(117,'2019_08_13_082230_tenant_add_column_limit_user_to_configurations',1),(118,'2019_08_16_153648_tenant_add_more_decimal_column_stock_to_items',1),(119,'2019_08_16_161756_tenant_add_total_plastic_bag_taxes_to_documents',1),(120,'2019_08_16_161824_tenant_add_total_plastic_bag_taxes_to_document_items',1),(121,'2019_08_16_161854_tenant_add_amount_plastic_bag_taxes_to_items',1),(122,'2019_08_19_112540_tenant_add_quotation_id_to_sale_notes',1),(123,'2019_08_19_115344_tenant_add_sale_note_id_to_documents',1),(124,'2019_08_19_124610_tenant_add_state_condition_to_persons',1),(125,'2019_08_20_121326_tenant_add_indexes_to_documents',1),(126,'2019_08_20_144511_tenant_add_indexes_to_summaries',1),(127,'2019_08_20_151037_tenant_add_indexes_to_persons',1),(128,'2019_08_21_145954_tenant_modify_name_name2_to_items',1),(129,'2019_08_23_115358_tenant_add_data_accounnting_inventory_to_modules',1),(130,'2019_08_23_160411_tenant_modify_description_to_items',1),(131,'2019_09_03_153427_tenant_change_nullable_column_affected_document_id_to_notes',1),(132,'2019_09_03_153656_tenant_add_data_affected_document_to_notes',1),(133,'2019_09_09_153206_tenant_add_sale_note_id_to_cash_documents',1),(134,'2019_09_09_174848_tenant_modify_columns_to_perceptions',1),(135,'2019_09_09_174916_tenant_modify_columns_to_perception_details',1),(136,'2019_09_10_102854_tenant_modify_series_id_to_perceptions',1),(137,'2019_09_11_131559_tenant_add_apply_store_to_items',1),(138,'2019_09_11_154949_tenant_expense_method_types',1),(139,'2019_09_11_155535_tenant_expense_payments',1),(140,'2019_09_11_174858_tenant_expense_reasons',1),(141,'2019_09_11_174929_tenant_add_expense_reason_id_to_expenses',1),(142,'2019_09_13_112026_tenant_add_column_image_medium_and_image_small_to_items',1),(143,'2019_09_15_233528_tenant_create_table_tag',1),(144,'2019_09_15_233537_tenant_create_table_item_tag',1),(145,'2019_09_16_121938_tenant_add_date_of_due_to_items',1),(146,'2019_09_16_133219_tenant_add_data_ecommerce_to_modules',1),(147,'2019_09_16_160453_tenant_add_timestamps_to_tag',1),(148,'2019_09_16_161726_tenant_add_status_to_tags',1),(149,'2019_09_17_131050_tenant_add_type_client_to_users',1),(150,'2019_09_17_202003_tenant_promotions_table',1),(151,'2019_09_18_152416_tenant_add_percentage_perception_to_persons',1),(152,'2019_09_18_160838_tenant_add_has_perception_to_items',1),(153,'2019_09_30_151349_tenant_add_has_prepayment_to_documents',1),(154,'2019_09_30_160541_tenant_inventory_transactions_table',1),(155,'2019_09_30_160919_tenant_change_columns_to_inventories',1),(156,'2019_10_04_092658_tenant_business_turns_table',1),(157,'2019_10_04_094841_tenant_document_hotels_table',1),(158,'2019_10_09_101229_tenant_add_locked_tenant_to_configurations',1),(159,'2019_10_10_155554_tenant_add_quantity_documents_date_time_start_to_configurations',1),(160,'2019_10_11_095050_tenant_billing_cycles_table',1),(161,'2019_10_11_153948_tenant_add_locked_users_to_configurations',1),(162,'2019_10_14_101501_tenant_add_column_set_to_items',1),(163,'2019_10_14_102317_tenant_item_sets_table',1),(164,'2019_10_14_235308_tenant_orders_table',1),(165,'2019_10_15_122633_tenant_person_types_table',1),(166,'2019_10_15_123201_tenant_add_person_types_to_persons',1),(167,'2019_10_16_001052_tenant_add_identity_and_number_to_users',1),(168,'2019_10_17_100307_tenant_add_data_to_document_types',1),(169,'2019_10_18_150004_tenant_categories_table',1),(170,'2019_10_18_150414_tenant_brands_table',1),(171,'2019_10_18_150604_tenant_brand_category_to_items',1),(172,'2019_10_18_194622_tenant_add_soft_delete_to_purchases',1),(173,'2019_10_20_190039_tenant_add_plan_to_configurations',1),(174,'2019_10_20_195730_tenant_add_cuenta_to_modules',1),(175,'2019_10_20_200958_tenant_account_payments_table',1),(176,'2019_10_22_173407_tenant_add_was_deducted_prepayment_to_documents',1),(177,'2019_10_24_103947_tenant_add_sunat_alternate_server_to_configurations',1),(178,'2019_10_24_183250_tenant_add_document_id_to_orders',1),(179,'2019_10_24_210806_tenant_items_rating_table',1),(180,'2019_10_26_213130_tenant_add_logo_store_to_companies',1),(181,'2019_10_28_202116_tenant_add_reference_number_to_cash',1),(182,'2019_11_05_113236_create_padrones_table',1),(183,'2019_11_05_113320_create_charge_padrones_table',1),(184,'2019_11_06_095251_tenant_add_success_shipping_status_to_documents',1),(185,'2019_11_06_102422_tenant_add_success_sunat_shipping_status_to_documents',1),(186,'2019_11_06_110606_tenant_add_success_query_status_to_documents',1),(187,'2019_11_06_113035_tenant_offline_configurations_table',1),(188,'2019_11_11_102124_tenant_series_configurations_table',1),(189,'2019_11_12_223340_tenant_add_reference_document_id_to_dispatches',1),(190,'2019_11_13_124821_tenant_add_document_type_id_to_series_configurations',1),(191,'2019_11_18_154307_tenant_create_congiguration_ecommerce_table',1),(192,'2019_11_19_113132_tenant_cat_detraction_types_table',1),(193,'2019_11_20_175549_tenant_add_inventory_kardex_id_to_sale_note_items',1),(194,'2019_11_20_221547_tenant_add_address_to_configuration_ecommerce',1),(195,'2019_11_25_213648_tenant_add_social_to_configuration_ecommerce',1),(196,'2019_11_29_093342_tenant_add_detraction_account_to_companies',1),(197,'2019_12_02_105910_tenant_add_purchase_expense_to_cash_documents',1),(198,'2019_12_02_111743_tenant_change_expense_reason_id_to_expenses',1),(199,'2019_12_02_111837_tenant_add_soap_type_id_to_expenses',1),(200,'2019_12_02_152128_tenant_add_date_of_due_to_quotations',1),(201,'2019_12_02_161856_tenant_add_data_to_payment_method_types',1),(202,'2019_12_02_163726_tenant_add_payment_method_type_id_to_quotations',1),(203,'2019_12_05_104120_tenant_fixed_columns_to_cash_documents',1),(204,'2019_12_06_114132_tenant_add_shipping_address_to_quotations',1),(205,'2019_12_06_120917_tenant_add_commission_amount_to_items',1),(206,'2019_12_11_111224_tenant_purchase_quotations_table',1),(207,'2019_12_11_112209_tenant_purchase_quotation_items_table',1),(208,'2019_12_11_122830_tenant_add_reference_quotation_id_to_dispatches',1),(209,'2019_12_11_174726_tenant_purchase_orders_table',1),(210,'2019_12_11_175353_tenant_purchase_order_items_table',1),(211,'2019_12_16_103759_tenant_add_decimal_quantity_to_configurations',1),(212,'2019_12_16_181022_tenant_add_prefix_to_purchase_orders',1),(213,'2019_12_17_101130_tenant_add_purchase_order_id_to_purchases',1),(214,'2019_12_19_102946_tenant_item_lots_table',1),(215,'2019_12_19_105644_tenant_add_lot_code_to_items',1),(216,'2019_12_19_141604_tenant_add_operation_amazonia_to_companies',1),(217,'2019_12_20_123931_tenant_module_levels_table',1),(218,'2019_12_20_123945_tenant_module_level_user_table',1),(219,'2019_12_23_144236_tenant_add_apply_concurrency_to_sale_notes',1),(220,'2019_12_23_171335_tenant_add_columns_periods_to_sale_notes',1),(221,'2019_12_24_114350_tenant_add_columns_lots_to_item_lots',1),(222,'2019_12_24_123601_tenant_add_lot_code_to_purchase_items',1),(223,'2019_12_27_111848_tenant_add_lot_code_to_inventories',1),(224,'2019_12_30_095201_tenant_add_lots_enabled_to_items',1),(225,'2020_01_03_111747_tenant_add_amount_plastic_bag_taxes_to_configurations',1),(226,'2020_01_08_102051_tenant_add_total_canceled_to_documents',1),(227,'2020_01_09_094728_tenant_change_decimal_column_quantity_to_dispatch_items',1),(228,'2020_01_09_102017_tenant_change_type_decimal_column_quantity_to_dispatch_items',1),(229,'2020_01_09_153023_tenant_add_compact_sidebar_to_configurations',1),(230,'2020_01_10_095143_tenant_add_cci_to_bank_accounts',1),(231,'2020_01_10_121518_tenant_add_warehouse_id_to_document_items',1),(232,'2020_01_15_095621_tenant_add_change_decimal_exchange_rate_sale_tables',1),(233,'2020_01_15_100032_tenant_add_data_to_cat_document_types',1),(234,'2020_01_15_144606_tenant_add_series_number_to_sale_notes',1),(235,'2020_01_15_172447_tenant_add_paid_to_sale_notes',1),(236,'2020_01_15_181229_tenant_add_plate_to_sale_notes',1),(237,'2020_01_16_101424_tenant_add_detail_to_inventories',1),(238,'2020_01_16_103741_tenant_change_decimals_unit_price_tables',1),(239,'2020_01_16_121313_tenant_add_state_to_item_lots',1),(240,'2020_01_17_095233_tenant_document_transports_table',1),(241,'2020_01_17_115328_tenant_add_plate_number_to_documents',1),(242,'2020_01_17_175217_tenant_add_state_type_to_expenses',1),(243,'2020_01_21_153921_tenant_inventories_transfer_table',1),(244,'2020_01_21_155245_tenant_add_inventories_transfer_id_to_inventories',1),(245,'2020_01_23_120700_tenant_drop_compact_sidebar_to_configurations',1),(246,'2020_01_23_120830_tenant_re_create_compact_sidebar_to_configurations',1),(247,'2020_01_23_123235_tenant_add_columns_to_document_hotels',1),(248,'2020_01_27_121553_tenant_add_commission_type_to_items',1),(249,'2020_01_27_150915_tenant_change_column_number_to_sale_notes',1),(250,'2020_01_28_135422_tenant_add_tag_to_configuration_ecommerce',1),(251,'2020_01_31_122444_tenant_add_config_system_to_configurations',1),(252,'2020_02_05_124542_tenant_add_guests_to_document_hotels',1),(253,'2020_02_07_164026_tenant_create_person_addresses',1),(254,'2020_02_10_111943_tenant_add_affectation_type_prepayment_to_documents',1),(255,'2020_02_11_210535_tenant_add_active_to_items',1),(256,'2020_02_12_203736_tenant_add_contact_to_users',1),(257,'2020_02_17_115050_tenant_add_delivery_date_to_quotations',1),(258,'2020_02_17_141658_tenant_create_format_templates_table',1),(259,'2020_02_17_194731_tenant_add_formats_to_configurations',1),(260,'2020_02_17_202910_tenant_item_images_table',1),(261,'2020_02_19_102018_tenant_order_notes_table',1),(262,'2020_02_19_121619_tenant_order_note_items_table',1),(263,'2020_02_19_150814_tenant_add_order_note_id_to_documents',1),(264,'2020_02_19_150828_tenant_add_order_note_id_to_sale_notes',1),(265,'2020_02_19_160926_tenant_add_reference_order_note_id_to_dispatches',1),(266,'2020_02_20_224501_tenant_add_colums_grid_items_to_configurations',1),(267,'2020_02_21_172411_tenant_add_soap_shipping_response_to_documents',1),(268,'2020_02_24_213558_tenant_date_of_due_column_to_purchase_items',1),(269,'2020_02_25_103837_tenant_add_options_pos_to_configurations',1),(270,'2020_02_25_154338_tenant_add_change_to_document_payments',1),(271,'2020_02_26_201604_tenant_item_lots_group_table',1),(272,'2020_02_26_203030_tenant_add_series_enabled_to_items',1),(273,'2020_02_27_113111_tenant_add_change_to_sale_note_payments',1),(274,'2020_03_03_172821_tenant_add_additional_information_to_document_items',1),(275,'2020_03_06_101730_tenant_global_payments_table',1),(276,'2020_03_10_165850_tenant_add_data_module_for_finance',1),(277,'2020_03_11_151338_tenant_add_edit_name_product_purchase',1),(278,'2020_03_13_110238_add_column_name_product_pdf',1),(279,'2020_03_13_134951_add_column_name_product_pdf_update',1),(280,'2020_03_13_134955_add_column_name_product_pdf_change',1),(281,'2020_03_16_152939_tenant_add_indexes_to_payments_tables_for_finances',1),(282,'2020_03_16_162652_tenant_add_enabled_to_persons',1),(283,'2020_03_20_030559_add_columna_restrict_receipt_date',1),(284,'2020_03_20_174637_tenant_add_affectation_igv_type_id_to_configurations',1),(285,'2020_03_25_173128_tenant_sale_opportunities_table',1),(286,'2020_03_25_173442_tenant_sale_opportunity_items_table',1),(287,'2020_03_26_121642_tenant_add_sale_opportunity_id_to_quotations',1),(288,'2020_03_26_170415_tenant_sale_opportunity_files_table',1),(289,'2020_03_27_111133_tenant_quotation_payments_table',1),(290,'2020_03_27_123343_tenant_add_changed_to_quotations',1),(291,'2020_03_27_141008_tenant_add_column_visual_to_configurations',1),(292,'2020_03_27_143825_tenant_add_account_number_to_quotations',1),(293,'2020_03_27_150024_tenant_add_terms_condition_to_quotations',1),(294,'2020_03_30_112859_tenant_payment_files_table',1),(295,'2020_03_31_111522_tenant_add_customer_id_to_purchases',1),(296,'2020_03_31_122445_tenant_fixed_asset_items_table',1),(297,'2020_03_31_141008_tenant_add_column_show_ws_to_configurations',1),(298,'2020_03_31_151057_tenant_fixed_asset_purchases_table',1),(299,'2020_03_31_151323_tenant_fixed_asset_purchase_items_table',1),(300,'2020_04_01_150413_tenant_add_terms_condition_to_configurations',1),(301,'2020_04_02_124023_tenant_add_sale_opportunity_id_to_purchase_orders',1),(302,'2020_04_02_151534_tenant_add_total_canceled_to_purchases',1),(303,'2020_04_02_154134_tenant_contracts_table',1),(304,'2020_04_02_154147_tenant_contract_items_table',1),(305,'2020_04_02_154244_tenant_contract_payments_table',1),(306,'2020_04_03_111019_tenant_income_types_table',1),(307,'2020_04_03_111139_tenant_income_reasons_table',1),(308,'2020_04_03_111209_tenant_income_table',1),(309,'2020_04_03_111703_tenant_income_items_table',1),(310,'2020_04_03_124629_tenant_income_payments_table',1),(311,'2020_04_03_143703_tenant_insert_internal_to_soap_types',1),(312,'2020_05_06_205001_create_status_orders_table',1),(313,'2020_05_06_210451_tenant_add_status_orders_to_orders',1),(314,'2020_05_07_123152_tenant_technical_services_table',1),(315,'2020_05_07_164323_tenant_user_commissions_table',1),(316,'2020_05_12_131218_add_product_to_configurations',1),(317,'2020_05_12_204311_tenant_add_cotizaction_finance_configurations',1),(318,'2020_05_19_162014_tenant_add_contact_to_persons',1),(319,'2020_05_25_140825_tenant_add_column_plate_number_to_sales_note',1),(320,'2020_05_30_132013_tenant_add_certificate_due_to_companies',1),(321,'2020_06_05_111820_tenant_add_line_to_items',1),(322,'2020_06_10_102549_tenant_add_columns_technical_specifications_items',1),(323,'2020_06_11_093739_tenant_add_columns_header_image_legend_footer_to_configurations',1),(324,'2020_06_11_152155_tenant_add_purchase_orders',1),(325,'2020_06_23_122822_tenant_drivers_table',1),(326,'2020_06_23_122938_tenant_dispatchers_table',1),(327,'2020_06_23_123012_tenant_order_forms_table',1),(328,'2020_06_23_123126_tenant_order_form_items_table',1),(329,'2020_06_24_173951_tenant_add_reference_order_form_id_to_dispatches',1),(330,'2020_07_03_124017_tenant_add_purchase_has_igv_to_items',1),(331,'2020_07_08_163451_tenant_change_column_name_product_pdf_to_document_items',1),(332,'2020_07_21_213555_tenant_add_columns_to_technical_services',1),(333,'2020_07_23_153920_tenant_add_user_id_to_global_payments',1),(334,'2020_07_23_215548_tenant_add_img_firm_to_companies',1),(335,'2020_07_23_221614_tenant_add_qr_to_order_forms',1),(336,'2020_07_27_184250_add_apiruc_to_configurations',1),(337,'2020_07_30_101311_tenant_add_soap_shipping_response_to_summaries',1),(338,'2020_07_30_105514_tenant_add_soap_shipping_response_to_voided',1),(339,'2020_08_03_123426_tenant_add_secondary_license_plates_to_dispatches',1),(340,'2020_08_04_104159_tenant_add_initial_balance_to_bank_accounts',1),(341,'2020_08_04_123149_tenant_add_pending_amount_prepayment_to_documents',1),(342,'2020_08_05_104849_tenant_add_payment_method_type_id_to_documents',1),(343,'2020_08_05_125307_tenant_add_filename_to_purchases',1),(344,'2020_08_06_101100_tenant_change_columns_delivery_date_date_of_due_to_quotations',1),(345,'2020_08_06_120140_tenant_add_data_to_module_levels',1),(346,'2020_08_20_151205_tenant_change_column_terms_condition_to_quotations',1),(347,'2020_08_20_151856_tenant_change_column_terms_condition_to_configurations',1),(348,'2020_08_20_172938_tenant_change_decimal_column_quantity_to_item_lots_group',1),(349,'2020_08_26_142025_tenant_add_indexes_to_items',1),(350,'2020_08_27_101335_tenant_add_indexes_to_item_lots',1),(351,'2020_08_28_100623_tenant_change_type_column_terms_condition_to_contracts',1),(352,'2020_09_01_160245_tenant_add_warehouse_id_to_sale_note_items',1),(353,'2020_09_02_103127_tenant_add_warehouse_id_to_order_note_items',1),(354,'2020_09_02_124906_tenant_add_customer_id_to_establishments',1),(355,'2020_09_04_094513_tenant_add_quantity_to_item_sets',1),(356,'2020_09_04_165849_tenant_active_data_to_cat_operation_types',1),(357,'2020_09_07_110546_tenant_add_data_module_for_establishments_users',1),(358,'2020_09_08_141513_tenant_add_regularize_shipping_to_documents',1),(359,'2020_09_08_142658_tenant_add_response_regularize_shipping_to_documents',1),(360,'2020_09_09_144419_tenant_modify_text_description_to_expense_method_types',1),(361,'2020_09_09_151848_tenant_change_column_number_to_expenses',1),(362,'2020_09_09_160249_tenant_contract_state_types_table',1),(363,'2020_09_09_161329_tenant_change_state_type_id_to_contracts',1),(364,'2020_09_11_105705_tenant_cash_transactions_table',1),(365,'2020_09_14_123539_tenant_technical_service_payments_table',1),(366,'2020_09_25_113553_tenant_add_data_rh_to_cat_document_types',1),(367,'2020_09_29_110506_tenant_change_description_to_items',1),(368,'2020_10_09_153402_tenant_add_default_document_type_03_to_configurations',1),(369,'2020_10_13_095308_tenant_add_data_public_services_to_cat_document_types',1),(370,'2020_10_13_111740_tenant_web_platforms_table',1),(371,'2020_10_13_112548_tenant_add_destination_default_to_configurations',1),(372,'2020_10_13_120454_tenant_add_web_platform_id_to_items',1),(373,'2020_10_15_120313_tenant_active_transport_1004_to_cat_operation_types',1),(374,'2020_10_15_173515_tenant_add_contact_phone_to_quotations',1),(375,'2020_10_16_101845_teanant_add_data_to_module_levels',1),(376,'2020_10_16_143042_tenant_add_columns_aditional_to_modules',1),(377,'2020_10_26_151606_tenant_change_columns_nullable_to_dispatches',1),(378,'2020_11_05_103808_tenant_add_seller_to_documents',1),(379,'2020_11_05_120923_tenant_add_payment_method_type_id_to_sale_notes',1),(380,'2020_11_06_104926_tenant_add_soap_shipping_response_to_retentions',1),(381,'2020_11_10_101728_tenant_change_column_name_to_items',1),(382,'2020_11_12_143726_tenant_add_observation_to_sale_notes',1),(383,'2020_11_12_164451_tenant_add_reference_sale_note_id_to_dispatches',1),(384,'2020_11_18_123948_tenant_add_soap_shipping_response_to_dispatches',1),(385,'2020_11_19_115728_tenant_devolution_reasons_table',1),(386,'2020_11_19_115848_tenant_devolutions_table',1),(387,'2020_11_19_115944_tenant_devolution_items_table',1),(388,'2020_11_25_115944_tenant_create_preprinted_format_templates_table',1),(389,'2020_12_01_172908_tenant_add_reference_data_to_documents_sale_notes',1),(390,'2020_12_03_141335_tenant_change_text_description_to_cat_document_types',1),(391,'2020_12_31_103348_tenant_add_has_plastic_bag_taxes_to_items',1),(392,'2021_01_05_145928_add_model_column_to_items_table',1),(393,'2021_01_08_095018_add_barcode_column_to_items_table',1),(394,'2021_01_08_103402_update_barcode_column_to_items_table',1),(395,'2021_01_18_143008_change_lenght_to_items_table',1),(396,'2021_01_19_111533_add_internal_code_column_to_persons_table',1),(397,'2021_01_21_181843_add_terms_condition_sale_to_configurations_table',1),(398,'2021_01_21_183856_add_terms_condition_column_to_documents_table',1),(399,'2021_01_26_102448_create_hotel_rates_table',1),(400,'2021_01_26_152649_create_hotel_categories_table',1),(401,'2021_01_26_161851_create_hotel_floors_table',1),(402,'2021_01_26_171515_create_hotel_rooms_table',1),(403,'2021_01_27_155235_create_hotel_room_rates_table',1),(404,'2021_01_28_205134_create_hotel_rents_table',1),(405,'2021_01_31_163211_create_hotel_rent_items_table',1),(406,'2021_02_01_102051_add_columns_to_hotel_rents_table',1),(407,'2021_02_01_112617_add_column_item_id_to_hotel_rooms_table',1),(408,'2021_02_02_180153_add_arrears_column_to_hotel_rents_table',1),(409,'2021_02_04_215327_add_show_in_document_column_to_bank_accounts_table',1),(410,'2021_02_08_111945_add_document_id_column_to_dispatches_table',1),(411,'2021_02_10_153546_add_login_column_to_configurations_table',1),(412,'2021_02_11_113008_change_destination_to_global_payments_table',1),(413,'2021_02_15_101110_add_favicon_column_to_companies_table',1),(414,'2021_02_15_175921_add_navbar_column_to_configurations_table',1),(415,'2021_02_19_165318_add_finances_column_to_configurations_table',1),(416,'2021_02_25_165224_create_documentary_offices_table',1),(417,'2021_02_25_180958_create_documentary_processes_table',1),(418,'2021_02_25_183124_create_documentary_documents_table',1),(419,'2021_02_26_102851_create_documentary_actions_table',1),(420,'2021_02_26_102900_create_documentary_files_table',1),(421,'2021_03_01_120554_add_user_id_column_to_documentary_files_table',1),(422,'2021_03_01_120931_create_documentary_file_offices_table',1),(423,'2021_03_10_163436_add_extra_modules_to_modules_table',1),(424,'2021_03_11_111743_add_logo_column_to_establishments_table',1),(425,'2021_03_19_204148_add_items_to_modules_table',1),(426,'2021_03_19_221614_add_referential_information_to_quotations_table',1),(427,'2021_03_20_112202_change_order_items_to_modules_table',1),(428,'2021_03_20_115648_add_seller_id_column_to_quotations_table',1),(429,'2021_03_20_132104_add_seller_id_column_to_contracts_table',1),(430,'2021_03_21_165318_add_quotation_allow_seller_generate_sale_column_to_configurations_table',1),(431,'2021_03_24_111209_tenant_payment_conditions_table',1),(432,'2021_03_24_111211_tenant_add_payment_condition_to_documents',1),(433,'2021_03_24_141211_tenant_document_fee_table',1),(434,'2021_03_25_162827_add_purchase_order_column_to_sale_notes_table',1),(435,'2021_03_25_215438_add_codes_column_to_items_table',1),(436,'2021_03_25_215438_add_column_digemid_code_to_companies_table',1),(437,'2021_03_25_215438_change_column_second_name_on_items_table',1),(438,'2021_03_31_212318_add_document_id_column_to_sale_notes_table',1),(439,'2021_04_01_113520_add_levels_to_module_levels_table',1),(440,'2021_04_05_115318_add_allow_edit_unit_price_to_seller_column_to_configurations_table',1),(441,'2021_04_06_172009_create_item_warehouse_prices_table',1),(442,'2021_04_08_000106_create_points_table',1),(443,'2021_04_08_004409_create_configuration_points_table',1),(444,'2021_04_08_005315_add_foreign_to_points_table',1),(445,'2021_04_08_175347_change_electronico_at_cat_document_type',1),(446,'2021_04_11_113741_add_column_points_to_items_table',1),(447,'2021_04_17_163456_add_technical_service_id_to_cash_documents_table',1),(448,'2021_04_19_141528_add_column_points_to_sale_notes_table',1),(449,'2021_04_19_144103_add_column_points_to_documents_table',1),(450,'2021_04_22_170915_add_template_pdf_to_establishments_table',1),(451,'2021_04_23_143433_add_edit_flag_to_documents_table',1),(452,'2021_04_27_105557_add_payment_type_to_payment_method',1),(453,'2021_04_29_122333_add_visual_ticket_58_to_configurations_table',1),(454,'2021_05_03_131833_add_mail_configuration',1),(455,'2021_05_06_152551_add_due_date_to_sales_note',1),(456,'2021_05_07_154207_add_soft_delete_to_document',1),(457,'2021_05_07_154207_remove_soft_delete_to_document',1),(458,'2021_05_12_163406_add_seller_can_create_porduct_to_configuration',1),(459,'2021_05_13_120615_add_seller_can_view_balance_on_finance_to_configuration',1),(460,'2021_05_27_124620_add_generate_option_to_sale_opportunities',1),(461,'2021_06_03_122337_add_method_type_to_documents_fee',1),(462,'2021_06_03_165209_add_serie_and_document_to_user',1),(463,'2021_06_07_140759_change_format_number_to_expenses_table',1),(464,'2021_06_09_124243_add_update_documents_by_dispaches_to_configurations',1),(465,'2021_06_10_092525_add_pharmacy_to_items',1),(466,'2021_06_15_094333_add_name_product_pdf_to_order_note_items',1),(467,'2021_06_16_154233_add_send_auto_sunat_to_dispatches',1),(468,'2021_06_18_141048_add_modules_digemid',1),(469,'2021_06_22_112855_add_fields_to_client',1),(470,'2021_06_23_130016_create_digemid_catalog',1),(471,'2021_06_28_125907_add_fields_to_documentary_office',1),(472,'2021_06_28_142358_tenant_add_active_warehouse_prices_to_configurations',1),(473,'2021_06_29_173743_tenant_add_allowance_charge_to_configurations',1),(474,'2021_06_29_184419_remove_key_from_documentary',1),(475,'2021_06_30_174147_create_adjust_to_docymentary_offices',1),(476,'2021_06_30_175311_tenant_add_purchase_to_cash_documents',1),(477,'2021_07_01_171620_adjust_to_docymentary_procedure',1),(478,'2021_07_02_133558_add_office_to_process',1),(479,'2021_07_05_091229_change_data_to',1),(480,'2021_07_05_094927_create_documentary_guides_number',1),(481,'2021_07_05_125811_add_field_to_documentary_file',1),(482,'2021_07_05_141048_add_modules_docymentary_requirements',1),(483,'2021_07_05_213052_change_observation_from_file_offices',1),(484,'2021_07_05_220241_add_requirements_to_documentary_file',1),(485,'2021_07_06_114113_tenant_add_discount_stock_to_cat_transfer_reason_types',1),(486,'2021_07_06_173358_tenant_add_dispatch_id_to_documents',1),(487,'2021_07_06_174510_add_name_pdf_to_sale_note_item',1),(488,'2021_07_14_103324_add_data_affected_document',1),(489,'2021_07_16_204722_add_phone_to_configuration_ecommerce',1),(490,'2021_07_19_132554_add_days_to_client',1),(491,'2021_07_26_102802_add_banned_column_to_points_table',1),(492,'2021_07_30_113708_create_expiration_date_settings_table',1),(493,'2021_08_03_115743_add_field_to_send_sale_note_to_other_site',1),(494,'2021_08_05_143043_add_quotation_to_order_note',1),(495,'2021_08_05_144042_tenant_add_search_item_by_series_to_configurations',1),(496,'2021_08_06_094151_tenant_add_change_free_affectation_igv_to_configurations',1),(497,'2021_08_09_115837_add_currency_to_configuration',1),(498,'2021_08_09_131738_tenant_add_select_available_price_list_to_configurations',1),(499,'2021_08_16_111909_create_colors_for_items',1),(500,'2021_08_17_091109_add_more_propertys_to_item',1),(501,'2021_08_20_153033_add_extra_data_of_product_to_configuration',1),(502,'2021_08_20_161555_add_extra_data_item_menu',1),(503,'2021_08_23_105050_tenant_add_group_items_generate_document_to_configurations',1),(504,'2021_08_23_172828_adjust_inventory_item_extra_data',1),(505,'2021_08_24_153219_tenant_add_columns_unknown_error_to_summaries',1),(506,'2021_08_25_155900_tenant_add_columns_integrated_query_to_companies',1),(507,'2021_09_08_165136_add_optional_emails_to_person',1),(508,'2021_09_10_120216_create_email_send_log',1),(509,'2021_09_10_143648_tenant_add_subtotal_to_documents',1),(510,'2021_09_13_171757_tenat_add_total_igv_free_to_documents',1),(511,'2021_09_15_115746_add_global_igv_to_purchase',1),(512,'2021_09_15_170619_tenant_change_length_description_to_quotations',1),(513,'2021_09_16_144202_add_app_to_modules',1),(514,'2021_09_17_120309_add_url_apk_to_configurations',1),(515,'2021_09_17_150025_transfer_accounts_payment',1),(516,'2021_09_20_183304_add_new_enter_template_to_format_templates',1),(517,'2021_09_21_172056_add_file_to_format_templates',1),(518,'2021_09_22_120834_add_fields_technical_services',1),(519,'2021_09_22_120835_create_technical_service_items',1),(520,'2021_09_24_114832_add_configuration_to_show_name_of_pdf',1),(521,'2021_09_28_183535_add_name_pdf_to_quotation_items',1),(522,'2021_09_29_123827_add_text_to_address_in_configuration',1),(523,'2021_09_29_180607_tenant_add_set_address_by_establishment_to_configurations',1),(524,'2021_09_30_135325_tenant_add_order_id_to_sale_notes',1),(525,'2021_09_30_170149_tenant_add_permission_to_edit_cpe_to_configurations',1),(526,'2021_09_30_171912_tenant_add_permission_edit_cpe_to_users',1),(527,'2021_10_04_154837_tenant_change_nullable_packages_number_to_dispatches',1),(528,'2021_10_05_171912_add_configuration_module_to_user',1),(529,'2021_10_05_174410_tenant_add_total_igv_free_to_quotations',1),(530,'2021_10_06_132920_tenant_add_total_igv_free_to_order_notes',1),(531,'2021_10_07_144354_create_guide_file',1),(532,'2021_10_11_110825_create_item_movement_table',1),(533,'2021_10_12_111345_create_item_movement_rel_extra_table',1),(534,'2021_10_13_113504_add_only_user_warehouse_item_to_config',1),(535,'2021_10_18_110547_tenant_add_technical_service_id_to_documents',1),(536,'2021_10_18_110700_change_default_show_items_only_user_stablishment',1),(537,'2021_10_18_110700_change_value_show_items_only_user_stablishment',1),(538,'2021_10_18_110907_tenant_add_technical_service_id_to_sale_notes',1),(539,'2021_10_18_150100_tenant_add_document_type_04_to_cat_document_types',1),(540,'2021_10_18_150136_tenant_add_data_operation_type_0501_to_cat_operation_types',1),(541,'2021_10_18_150154_tenant_cat_address_types_table',1),(542,'2021_10_18_150215_tenant_add_address_type_id_to_persons',1),(543,'2021_10_18_150306_tenant_purchase_settlements_table',1),(544,'2021_10_18_150324_tenant_purchase_settlement_items_table',1),(545,'2021_10_18_153949_tenant_add_data_purchase_settlements_to_module_levels',1),(546,'2021_10_18_174146_tenant_add_subtotal_to_purchase_settlements',1),(547,'2021_10_19_150956_tenant_add_pending_amount_detraction_to_documents',1),(548,'2021_10_20_160503_tenant_add_retention_to_documents',1),(549,'2021_10_20_161035_tenant_add_data_retention_to_cat_charge_discount_types',1),(550,'2021_10_20_174401_tenant_rename_pending_amount_detraction_to_documents',1),(551,'2021_10_21_093921_tenant_add_igv_retention_percentage_to_configurations',1),(552,'2021_10_22_130040_create_app_suscription',1),(553,'2021_10_25_112316_tenant_add_subtotal_to_quotations',1),(554,'2021_10_25_142908_create_suscription_plans_table',1),(555,'2021_10_25_154009_tenant_add_option_13_to_cat_note_credit_types',1),(556,'2021_10_27_105710_tenant_add_subtotal_to_sale_notes',1),(557,'2021_10_27_133333_add_parent_id_field_to_persons',1),(558,'2021_10_28_110438_alter_sale_notes_and_documents',1),(559,'2021_10_28_173041_tenant_add_name_product_xml_to_document_items',1),(560,'2021_10_29_110421_tenant_add_name_product_pdf_to_xml_to_configurations',1),(561,'2021_10_29_114826_change_value_alternate_server_to_configurations',1),(562,'2021_11_09_113608_tenant_add_default_document_type_80_to_configurations',1),(563,'2021_11_09_143629_tenant_add_search_item_by_barcode_to_configurations',1),(564,'2021_11_09_173326_add_grade_and_section_touser_rel_suscription_plan',1),(565,'2021_11_11_113443_tenant_general_payment_conditions_table',1),(566,'2021_11_11_114229_tenant_add_payment_condition_id_to_purchases',1),(567,'2021_11_11_152521_tenant_purchase_fee_table',1),(568,'2021_11_11_180653_tenant_add_recreate_documents_to_users',1),(569,'2021_11_12_102347_add_grade_and_section_tables',1),(570,'2021_11_15_152956_additem_description_default_pdf_name_configuration',1),(571,'2021_11_16_150657_add_user_id_to_inventories_transfer',1),(572,'2021_11_25_105300_create_accounting_ledger_table',1),(573,'2021_11_25_154025_add_auto_print_to_configurations',1),(574,'2021_12_01_113756_add_show_services_on_pos',1),(575,'2021_12_02_141408_tenant_bank_loans_table',1),(576,'2021_12_03_130138_add_column_generic_to_items_table',1),(577,'2021_12_05_124642_add_column_location_to_items_table',1),(578,'2021_12_08_211200_add_pos_history_and_cost_to_configuration',1),(579,'2021_12_09_180033_change_column_localtion_to_items_table',1),(580,'2021_12_09_180332_create_table_locations_table',1),(581,'2021_12_09_182924_add_flag_to_production_for_item',1),(582,'2021_12_10_122529_add_zone_id_to_person',1),(583,'2021_12_10_130040_create_app_production',1),(584,'2021_12_10_172959_add_name_to_mill',1),(585,'2021_12_11_101624_add_data_to_inventory_transactions',1),(586,'2021_12_11_114856_add_item_to_mill_item',1),(587,'2021_12_11_170251_create_item_supplies',1),(588,'2021_12_15_112106_create_columns_to_show_by_user',1),(589,'2021_12_16_144057_add_show_totals_on_c_p_e_list',1),(590,'2021_12_21_134408_add_simplify_to_documentary',1),(591,'2021_12_22_150753_add_guide_to_documentary_archive',1),(592,'2021_12_25_163345_add_colors_to_documentary',1),(593,'2021_12_31_105910_change_documentary_process_characters',1),(594,'2022_01_05_170742_create_machine_for_production',1),(595,'2022_01_07_124919_add_complete_to_documentary_files',1),(596,'2022_01_11_140319_tenant_add_columns_send_pse_to_documents',1),(597,'2022_01_11_174033_tenant_add_columns_send_pse_to_companies',1),(598,'2022_01_12_180810_tenant_add_detraction_amount_rounded_int_to_configurations',1),(599,'2022_01_13_141051_tenant_add_sale_notes_relateds_to_documents',1),(600,'2022_01_15_130321_add_old_quantity_to_item_lot_group',1),(601,'2022_01_18_094821_tenant_add_data_to_inventory_transactions',1),(602,'2022_01_18_120000_add_show_term_condition_pos_to_configurations',1),(603,'2022_01_18_213317_tenant_create_cash_documents_credit',1),(604,'2022_01_20_202655_tenant_add_unique_filename_to_documents',1),(605,'2022_01_22_001715_add_date_end_to_documentary_files',1),(606,'2022_01_25_150315_add_apply_restaurant_to_items',1),(607,'2022_01_25_152940_create_app_restaurant',1),(608,'2022_01_26_175429_create_mi_tienda_pe',1),(609,'2022_01_28_110155_tenant_add_related_to_dispatches',1),(610,'2022_01_29_141957_add_purchase_order_and_observation_to_purchase',1),(611,'2022_01_29_191503_create_packaging_table',1),(612,'2022_01_30_120653_create_configuration_to_mi_tienda_pe',1),(613,'2022_02_02_203403_add_autogenerate_c_p_e_to_mi_tienda_pe',1),(614,'2022_02_07_110836_add_ticket_template_pdf_to_establishments_table',1),(615,'2022_02_07_121152_add_is_custom_ticket_to_format_templates',1),(616,'2022_02_07_142617_add_format_tickets_to_configurations',1),(617,'2022_02_07_161128_tenant_add_data_to_promotions_table',1),(618,'2022_02_08_213251_tenant_add_restaurant_to_orders',1),(619,'2022_02_11_162919_tenant_add_last_sale_price_to_configurations',1),(620,'2022_02_14_222010_tenant_add_flasg_to_inventory_configurations',1),(621,'2022_02_14_224820_tenant_add_barcode_to_item_unit_types',1),(622,'2022_02_16_150615_tenant_add_show_logo_establishment_to_configuration',1),(623,'2022_02_17_195824_add_colaborator_to_production_as_text',1),(624,'2022_02_22_111659_tenant_add_columns_send_pse_to_voided',1),(625,'2022_02_24_134926_tenant_add_columns_purchase_isc_to_items',1),(626,'2022_02_24_201345_tenant_download_tray_table',1),(627,'2022_02_25_172811_add_print_next_line_to_pdf_on_observation',1),(628,'2022_02_27_120405_tenant_add_comments_to_inventories',1),(629,'2022_03_03_110115_tenant_add_global_discount_type_id_to_configurations',1),(630,'2022_03_04_003932_tenant_add_quotation_to_cash_documents',1),(631,'2022_03_08_112351_tenant_add_columns_send_pse_to_dispatches',1),(632,'2022_03_09_111107_tenant_add_restaurant_to_cash',1),(633,'2022_03_10_003439_add_column_url_and_name_printer_to_establishments_table',1),(634,'2022_03_10_094902_tenant_add_shipping_time_days_to_configurations',1),(635,'2022_03_11_120508_add_trace_to_api_peru_service',1),(636,'2022_03_14_221802_tenant_add_type_to_download_tray',1),(637,'2022_03_18_140238_tenant_add_total_igv_free_to_sale_notes',1),(638,'2022_03_21_110605_create_restaurant_configuration',1),(639,'2022_03_21_161851_add_configuration_new_valdiator_pagination',1),(640,'2022_03_25_134555_tenant_add_customer_filter_by_seller_to_configurations',1),(641,'2022_03_25_143916_tenant_add_index_seller_id_to_persons',1),(642,'2022_03_25_170158_tenant_add_validate_purchase_sale_unit_price_to_configurations',1),(643,'2022_03_28_174245_add_barcode_column_to_persons_table',1),(644,'2022_03_29_101534_add_quantity_to_restaurant_configuration',1),(645,'2022_03_30_145732_tenant_add_nationality_to_persons',1),(646,'2022_03_31_132849_create_app_pos_garage',1),(647,'2022_04_04_151234_add_commands_to_restaurant_configurations',1),(648,'2022_04_06_111531_create_restaurant_roles_table',1),(649,'2022_04_06_112454_add_restaurant_role_to_users',1),(650,'2022_04_06_170626_tenant_add_unique_filename_to_sale_notes',1),(651,'2022_04_08_001444_create_pharmacy_configurations_table',1),(652,'2022_04_11_143145_tenant_add_name_product_pdf_to_contract_items',1),(653,'2022_04_11_152502_tenant_add_name_product_pdf_to_dispatch_items',1),(654,'2022_04_12_111023_tenant_add_columns_igv_unit_price_purchases_to_configurations',1),(655,'2022_04_12_121903_addindex_to_item_movement_rel_extra',1),(656,'2022_04_12_162742_tenant_report_configurations_table',1),(657,'2022_04_18_153331_tenant_add_payment_permissions_to_users',1),(658,'2022_04_19_114422_tenant_add_set_global_purchase_currency_items_to_configurations',1),(659,'2022_04_20_115118_tenant_add_subject_to_detraction_to_items',1),(660,'2022_04_20_205612_add_column_cash_and_transfers_to_cash_table',1),(661,'2022_04_22_101547_tenant_change_type_observation_to_sale_notes',1),(662,'2022_04_22_133909_tenant_add_set_unit_price_dispatch_related_record_to_configurations',1),(663,'2022_04_25_151827_tenant_add_index_barcode_to_item_unit_types',1),(664,'2022_04_26_175613_tenant_add_columns_restrict_voided_to_configurations',1),(665,'2022_04_28_175537_tenant_add_order_form_external_to_dispatches',1),(666,'2022_04_29_140515_tenant_add_enabled_tips_pos_to_configurations',1),(667,'2022_04_29_144947_tenant_tips_table',1),(668,'2022_05_02_135252_tenant_add_fields_to_module_levels',1),(669,'2022_05_02_152925_tenant_add_top_menu_to_configurations',1),(670,'2022_05_02_170654_tenant_add_data_district_250307_to_districts',1),(671,'2022_05_03_143911_tenant_create_skins_table',1),(672,'2022_05_03_171845_tenant_add_purchase_settlement_id_to_kardex',1),(673,'2022_05_04_143113_tenant_add_payment_method_type_id_to_purchase_settlements',1),(674,'2022_05_04_150922_tenant_change_type_column_quantity_to_item_supplies',1),(675,'2022_05_04_155103_tenant_workers_table',1),(676,'2022_05_04_174017_tenant_add_unique_filename_to_summaries',1),(677,'2022_05_05_110908_tenant_add_soap_type_id_to_production',1),(678,'2022_05_05_115054_tenant_add_soap_type_id_to_mill',1),(679,'2022_05_05_134703_tenant_add_soap_type_id_to_packaging',1),(680,'2022_05_06_162034_add_fields_to_person',1),(681,'2022_05_08_122934_tenant_add_route_path_to_module_levels',1),(682,'2022_05_08_130040_create_app_full_suscription',1),(683,'2022_05_08_130054_tenant_update_data_to_skins',1),(684,'2022_05_09_105130_tenant_payment_configurations_table',1),(685,'2022_05_09_122150_tenant_add_defaults_to_configurations',1),(686,'2022_05_09_141114_tenant_payment_link_types_table',1),(687,'2022_05_09_143633_tenant_payment_links_table',1),(688,'2022_05_09_212753_tenant_register_app_generate_link_to_modules',1),(689,'2022_05_10_113515_tenant_transaction_states_table',1),(690,'2022_05_10_113608_tenant_transactions_table',1),(691,'2022_05_10_113734_tenant_transaction_queries_table',1),(692,'2022_05_10_113800_tenant_client_error_types_table',1),(693,'2022_05_10_113813_tenant_client_errors_table',1),(694,'2022_05_10_163722_tenant_config_default_to_configurations',1),(695,'2022_05_11_104030_tenant_add_soap_type_id_to_transactions',1),(696,'2022_05_11_115321_tenant_add_query_transaction_to_payment_links',1),(697,'2022_05_11_161435_tenant_change_nullable_payment_to_payment_links',1),(698,'2022_05_11_224556_create_enter_permissions_table',1),(699,'2022_05_11_224631_create_enter_permissions_users_table',1),(700,'2022_05_12_180154_tenant_add_legend_forest_to_xml_to_configurations',1),(701,'2022_05_13_162912_tenant_add_index_regularize_shipping_to_documents',1),(702,'2022_05_13_163802_tenant_purchase_settlement_payments_table',1),(703,'2022_05_13_172504_tenant_add_change_currency_item_to_configurations',1),(704,'2022_05_17_164646_tenant_add_enabled_advanced_records_search_to_configurations',1),(705,'2022_05_23_133515_tenant_add_decimal_quantity_unit_price_pdf_to_configurations',1),(706,'2022_06_01_114042_tenant_add_separate_cash_transactions_to_configurations',1),(707,'2022_06_01_161857_add_column_hotel_rate_id_to_hotel_rents_table',1),(708,'2022_06_01_164204_tenant_add_order_cash_income_to_configurations',1),(709,'2022_06_02_160925_tenant_add_data_district_080915_to_districts',1),(710,'2022_06_03_135513_tenant_add_generate_order_note_from_quotation_to_configurations',1),(711,'2022_06_06_144610_tenant_add_list_items_by_warehouse_to_configurations',1),(712,'2022_06_16_143605_tenant_app_configurations_table',1),(713,'2022_06_17_143817_tenant_add_payment_received_to_document_payments',1),(714,'2022_06_21_101957_tenant_add_columns_login_pse_to_companies',1),(715,'2022_06_21_165810_tenant_add_user_pse_to_companies',1),(716,'2022_06_23_141216_tenant_add_print_format_pdf_to_app_configurations',1),(717,'2022_06_28_164504_tenant_add_date_of_issue_to_inventories',1),(718,'2022_06_30_110007_tenant_add_columns_send_pse_to_summaries',1),(719,'2022_06_30_172004_tenant_add_index_external_id_to_income',1),(720,'2022_06_30_172247_tenant_add_filename_to_income',1),(721,'2022_07_01_103451_tenant_add_filename_to_expenses',1),(722,'2022_07_01_172113_tenant_add_hide_pdf_view_documents_to_configurations',1),(723,'2022_07_04_152229_tenant_add_ticket_single_shipment_to_configurations',1),(724,'2022_07_04_153343_tenant_add_ticket_single_shipment_to_documents',1),(725,'2022_07_05_103856_tenant_add_purchase_permissions_to_users',1),(726,'2022_07_06_113107_tenant_add_columns_theme_configuration_to_app_configurations',1),(727,'2022_07_06_233507_tenant_add_columns_header_configuration_to_app_configurations',1),(728,'2022_07_07_100534_tenant_add_module_app_2_generator_to_modules',1),(729,'2022_07_07_131216_tenant_app_modules_table',1),(730,'2022_07_07_143039_tenant_app_module_user_table',1),(731,'2022_07_08_101718_tenant_add_data_configuration_to_app_modules',1),(732,'2022_07_08_165430_tenant_add_indexes_columns_to_cash',1),(733,'2022_07_11_180145_tenant_add_data_quotation_to_app_modules',1),(734,'2022_07_14_095450_tenant_add_app_logo_to_companies',1),(735,'2022_07_14_120321_tenant_add_affect_all_documents_to_configuration',1),(736,'2022_07_14_143450_tenant_add_terms_condition_column_to_sale_notes_table',1),(737,'2022_07_14_162144_tenant_add_terms_condition_column_to_dispatches_table',1),(738,'2022_07_15_110508_tenant_add_text_filter_to_items',1),(739,'2022_07_18_172843_tenant_add_app_mode_to_app_configurations',1),(740,'2022_07_19_033009_tenant_add_dashboard_options_to_configurations',1),(741,'2022_07_25_115003_tenant_add_quantity_sales_notes_to_configurations',1),(742,'2022_07_30_133127_tenant_add_direct_print_to_app_configurations',1),(743,'2022_08_05_110445_tenant_add_columns_whatsapp_to_companies',1),(744,'2022_08_05_174505_tenant_add_favorite_to_items',1),(745,'2022_08_07_122150_tenant_add_folio_to_documents',1),(746,'2022_08_11_151009_tenant_add_data_district_080916_to_districts',1),(747,'2022_08_11_151307_tenant_add_data_district_080917_to_districts',1),(748,'2022_08_11_151330_tenant_add_data_district_080918_to_districts',1),(749,'2022_08_11_151345_tenant_add_data_district_080919_to_districts',1),(750,'2022_08_14_190940_tenant_add_additional_data_to_documents',1),(751,'2022_08_15_101024_tenant_add_data_default_various_clients_to_persons',1),(752,'2022_08_23_140943_tenant_add_personal_information_to_users',1),(753,'2022_08_23_174028_tenant_user_default_document_types_table',1),(754,'2022_08_24_155445_tenant_add_data_district_080914_to_districts',1),(755,'2022_08_24_160940_tenant_add_additional_data_to_document_items',1),(756,'2022_08_24_165942_tenant_add_restrict_series_selection_seller_to_configurations',1),(757,'2022_08_25_113149_tenant_system_activity_logs_table',1),(758,'2022_08_25_154533_create_dispatch_sale_notes_table',1),(759,'2022_08_29_015753_tenant_add_igv_31556_to_establishments',1),(760,'2022_08_30_104544_tenant_add_location_to_system_activity_logs',1),(761,'2022_08_30_140345_tenant_rename_column_auth_transaction_type_to_system_activity_logs',1),(762,'2022_08_30_175558_tenant_add_regex_password_user_to_configurations',1),(763,'2022_08_31_105919_tenant_add_route_to_system_activity_logs',1),(764,'2022_08_31_112916_tenant_system_activity_log_types_table',1),(765,'2022_08_31_131222_tenant_add_foreign_transaction_type_to_system_activity_logs',1),(766,'2022_08_31_142530_tenant_add_columns_remember_change_password_to_configurations',1),(767,'2022_08_31_150743_tenant_add_last_password_update_to_users',1),(768,'2022_09_01_173835_tenant_add_columns_point_system_to_configurations',1),(769,'2022_09_02_100607_tenant_add_accumulated_points_to_persons',1),(770,'2022_09_02_130726_tenant_add_point_system_to_documents',1),(771,'2022_09_02_152858_tenant_add_columns_point_system_to_items',1),(772,'2022_09_02_172003_tenant_add_show_complete_name_pos_to_configurations',1),(773,'2022_09_03_190940_tenant_add_additional_data_to_documents_error',1),(774,'2022_09_06_165424_tenant_add_round_points_of_sale_to_configurations',1),(775,'2022_09_07_101240_tenant_add_columns_point_system_to_sale_notes',1),(776,'2022_09_08_102133_tenant_add_enable_categories_products_view_to_configurations',1),(777,'2022_09_08_113936_tenant_add_columns_restrict_seller_discount_to_configurations',1),(778,'2022_09_08_151132_tenant_authorized_discount_users_table',1),(779,'2022_09_09_110646_tenant_enabled_sales_agents_to_configurations',1),(780,'2022_09_09_113545_tenant_agents_table',1),(781,'2022_09_09_144216_tenant_add_agent_id_to_documents_sale_notes',1),(782,'2022_09_10_114510_tenant_add_inventory_review_to_inventory_configurations',1),(783,'2022_09_14_170825_tenant_add_change_affectation_exonerated_igv_to_configurations',1),(784,'2022_09_18_162711_add_pos_discount_permission_to_enter_permissions_table',1),(785,'2022_09_20_101814_tenant_add_data_login_lockout_to_system_activity_log_types',1),(786,'2022_09_20_155523_tenant_add_request_email_to_system_activity_logs',1),(787,'2022_09_27_104853_tenant_add_factory_code_to_items',1),(788,'2022_09_27_115234_tenant_add_search_factory_code_items_to_configurations',1),(789,'2022_09_28_101354_tenant_add_show_load_voucher_to_configurations',1),(790,'2022_09_29_114005_tenant_add_force_send_by_summary_to_documents',1),(791,'2022_09_29_115507_tenant_add_permission_force_send_by_summary_to_users',1),(792,'2022_10_04_141907_tenant_change_description_value_to_module_levels',1),(793,'2022_10_05_152438_tenant_add_environment_to_restaurant_configurations',1),(794,'2022_10_05_162751_tenant_add_index_changed_to_sale_notes',1),(795,'2022_10_12_141349_tenant_add_real_system_stock_to_inventories',1),(796,'2022_10_14_172645_tenant_add_register_series_invoice_xml_to_configurations',1),(797,'2022_10_16_101354_tenant_add_enable_discount_by_customer_to_configurations',1),(798,'2022_10_16_110607_tenant_add_discount_to_persons',1),(799,'2022_10_20_123539_tenant_add_image_default_to_items',1),(800,'2022_10_21_190940_tenant_add_additional_data_to_dispatches',1),(801,'2022_10_21_210941_tenant_add_additional_data_to_dispatch_items',1),(802,'2022_10_21_213010_tenant_add_config_to_restaurant_configurations',1),(803,'2022_10_22_113308_tenant_create_waiters_table',1),(804,'2022_10_22_174921_tenant_add_quantity_mesas_and_and_env4_to_environment_restaurant',1),(805,'2022_11_04_142103_tenant_add_enabled_dispatch_ticket_pdf_to_configurations',1),(806,'2022_11_04_173318_tenant_add_dispatch_ticket_pdf_to_document_sale_notes',1),(807,'2022_11_10_132533_tenant_add_item_lot_group_id_to_purchase_items',1),(808,'2022_11_14_162628_tenant_add_validate_stock_add_item_to_inventory_configurations',1),(809,'2022_11_16_000856_create_restaurant_table_envs_table',1),(810,'2022_11_16_000857_add_data_restaurant_table_envs',1),(811,'2022_11_16_235623_create_restaurant_tables_table',1),(812,'2022_11_17_154241_tenant_add_direct_send_documents_whatsapp_to_app_configurations',1),(813,'2022_11_27_235623_create_restaurant_notes_table',1),(814,'2022_11_28_007706_tenant_guides_table',1),(815,'2022_11_28_017707_tenant_guide_items_table',1),(816,'2022_11_28_101718_tenant_add_guide_id_to_inventories',1),(817,'2022_11_28_111428_tenant_add_series_and_number_to_inventories_transfer',1),(818,'2022_11_29_113028_tenant_create_number_series_to_guides',1),(819,'2022_11_30_103028_tenant_add_api_sunat_to_companies',1),(820,'2022_12_01_013028_tenant_add_ticket_to_dispatches',1),(821,'2022_12_01_112321_tenant_update_data_to_dispatches',1),(822,'2022_12_02_023125_tenant_add_number_mtc_to_dispatchers',1),(823,'2022_12_04_113118_tenant_add_sunat_to_companies',1),(824,'2022_12_06_105443_tenant_add_name_product_pdf_to_purchase_items',1),(825,'2022_12_07_112335_add_show_price_in_barcode_ticket_to_configurations',1),(826,'2022_12_12_225021_tenant_update_roles_restaurant_mozo',1),(827,'2022_12_13_131847_tenant_change_column_inventory_transaction_id_to_guides',1),(828,'2022_12_13_153125_tenant_add_unit_type_to_cat_unit_types',1),(829,'2022_12_16_153346_tenant_add_price_selected_add_product_to_configurations',1),(830,'2022_12_20_160732_tenant_add_additional_data_to_order_notes',1),(831,'2022_12_21_113016_tenant_edit_unit_type_to_cat_unit_types',1),(832,'2022_12_22_101455_tenant_pdf_footer_images_to_configurations',1),(833,'2022_12_23_132614_tenant_add_locked_create_establishments_to_configurations',1),(834,'2022_12_23_173228_tenant_add_restrict_sales_limit_to_configurations',1),(835,'2022_12_26_112720_add_data_district050511_to_districts',1),(836,'2022_12_27_012101_tenant_transports_table',1),(837,'2022_12_27_152518_tenant_add_restrict_sale_items_cpe_to_configurations',1),(838,'2022_12_27_154226_tenant_add_restrict_sale_cpe_to_items',1),(839,'2022_12_28_174959_tenant_add_show_convert_cpe_pos_to_configurations',1),(840,'2022_12_28_270513_tenant_update_to_dispatches',1),(841,'2022_12_29_120310_tenant_update_to_drivers',1),(842,'2022_12_29_132101_tenant_origin_addresses_table',1),(843,'2022_12_30_120731_tenant_add_index_is_credit_to_payment_method_types',1),(844,'2022_12_31_100513_tenant_add_transport_data_to_dispatches',1),(845,'2023_01_14_013028_tenant_change_length_ticket_to_dispatches',1),(846,'2023_01_15_122101_tenant_dispatch_addresses_table',1),(847,'2023_01_16_110612_tenant_add_receiver_to_dispatches',1),(848,'2023_01_16_150612_tenant_change_customer_id_to_dispatches',1),(849,'2023_02_09_144759_create_inventory_transfer_items',1),(850,'2023_02_24_163815_tenant_add_order_note_advanced_to_configurations',1),(851,'2023_03_08_113249_tenant_hotel_rent_item_payments_table',1),(852,'2023_03_09_132241_tenant_add_subtotal_to_order_notes',1),(853,'2023_03_15_151737_tenant_change_nullable_email_to_establishments',1),(854,'2023_03_15_154740_tenant_remove_validation_email_establishments_to_configurations',1),(855,'2023_07_18_214757_tenant_add_second_name_to_items',1),(856,'2023_09_07_151856_tenant_add_sire_to_companies',1),(857,'2023_11_10_204115_create_cie10_table',1),(858,'2023_11_10_204153_create_prescription_doctors_table',1),(859,'2023_11_10_204221_create_prescription_prescriptions_table',1),(860,'2023_11_10_204419_add_requires_prescription_to_items_table',1),(861,'2024_01_27_045748_guia_tenant_to_modules',1),(862,'2024_02_19_220058_response_signature_nubefact_to_documents',1),(863,'2024_02_19_220808_api_nubefact_to_companies',1),(864,'2024_02_21_042258_send_to_nubefact_to_companies',1),(865,'2024_02_21_085754_send_anulate_nubefact',1),(866,'2024_02_22_184908_api_token_to_establishments',1),(867,'2024_02_29_093306_total_plastic_bag_taxes_to_purchases',1),(868,'2024_08_08_172459_add_formula_column_to_configurations_table',1),(869,'2025_02_13_000001_add_is_visible_payment_method_types_table',1),(884,'2024_09_13_105728_tenant_add_column_certificate_qz_tray_to_companies',2),(885,'2024_11_22_192222_change_decimal_to_purchase_items',2),(886,'2025_03_02_005639_add_column_hospital_type_to_establishments_table',2),(887,'2025_03_25_100110_tenant_add_total_to_sale_notes',2),(888,'2025_03_25_181211_tenant_sale_note_fee_table',2),(889,'2025_03_25_195114_tenant_add_columns_to_sale_note_payments',2),(890,'2025_04_22_114404_tenant_add_devolution_to_inventario',2),(891,'2025_04_22_114404_tenant_add_pse_qpos_to_companies',2),(892,'2025_08_12_114404_tenant_add_cash_box_to_configuracion',2),(893,'2025_08_27_120000_tenant_add_fast_payment_config_to_configurations',2),(894,'2025_08_27_120000_tenant_add_image_ads_config_to_configurations',2),(895,'2025_09_01_120000_tenant_add_annular_sale_to_users',2),(896,'2025_09_01_120000_tenant_add_prescriptions_salenote_invoice',2),(897,'2025_09_01_120000_tenant_prescriptions_table_make_fields_nullable',2),(898,'2025_10_10_025653_tenant_remove_qr_to_documents',2),(899,'2025_12_02_103028_tenant_add_number_ticket_to_companies',2),(900,'2026_02_28_170000_add_active_pos_to_payment_method_types_table',2),(901,'2026_03_01_000001_tenant_add_blister_unit_type',2),(902,'2026_03_01_000002_tenant_add_price_list_to_persons',2),(903,'2026_03_01_120000_add_pos_bank_account_id_to_payment_method_types_table',2),(904,'2026_03_01_180000_tenant_normalize_payment_method_types_for_pos',2),(905,'2026_03_02_000001_add_performance_indexes',2),(906,'2026_03_02_000002_add_item_warehouse_unique_index',2),(907,'2026_03_08_000003_add_digemid_sublevels_to_tenant_module_levels',2),(908,'2026_03_08_000004_rename_digemid_labels_to_farmacos',2),(909,'2026_03_09_000000_tenant_prescriptions_add_text_fields',2),(910,'2026_03_09_000010_create_pos_parked_sales_table',2),(911,'2026_03_10_000001_create_coupons_table',2),(912,'2026_03_10_000002_add_coupon_to_documents_and_sale_notes',2),(913,'2026_03_10_000003_add_coupons_module_level_to_tenant',2),(914,'2026_03_10_180100_tenant_create_purchase_xml_imports_table',2),(915,'2026_03_10_180200_tenant_create_supplier_item_aliases_table',2),(916,'2026_03_10_180300_tenant_add_xml_import_controls_to_purchases',2),(917,'2026_03_12_000001_add_is_pharmacist_to_users',2),(918,'2026_03_12_000002_add_pharmacist_restriction_to_configurations',2),(919,'2026_03_14_000001_create_charge_discounts_table',2),(920,'2026_03_16_000001_drop_clinic_module_tables',2),(921,'2026_03_30_120000_merge_legacy_a30_dias_payment_method_into_factura_a30_dias',2);
COMMIT;

-- Dumped table `migrations` with 907 row(s)
--

--
-- Table structure for table `migration_configuration`
--

SET autocommit=0;
COMMIT;

-- Dumped table `migration_configuration` with 0 row(s)
--

--
-- Table structure for table `mill`
--

CREATE TABLE `mill` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `date_start` date DEFAULT NULL,
  `time_start` time DEFAULT NULL,
  `date_end` date DEFAULT NULL,
  `time_end` time DEFAULT NULL,
  `user_id` int(10) unsigned DEFAULT 0,
  `soap_type_id` char(2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `comment` longtext DEFAULT NULL,
  `mill_name` varchar(255) DEFAULT NULL,
  `lot_code` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mill_soap_type_id_foreign` (`soap_type_id`),
  CONSTRAINT `mill_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mill`
--

SET autocommit=0;
COMMIT;

-- Dumped table `mill` with 0 row(s)
--

--
-- Table structure for table `mill_items`
--

CREATE TABLE `mill_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned DEFAULT 0,
  `mill_id` int(10) unsigned DEFAULT 0,
  `height_to_mill` decimal(12,3) DEFAULT 0.000 COMMENT 'Peso de entrada',
  `total_height` decimal(12,3) DEFAULT 0.000 COMMENT 'Peso dle insumo ',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` decimal(12,3) DEFAULT 0.000 COMMENT 'Peso dle insumo ',
  `item_extra_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mill_items`
--

SET autocommit=0;
COMMIT;

-- Dumped table `mill_items` with 0 row(s)
--

--
-- Table structure for table `mi_tienda_pe`
--

CREATE TABLE `mi_tienda_pe` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `order_number` text DEFAULT NULL COMMENT 'Numero de pedido',
  `transaction_code` text DEFAULT NULL COMMENT 'Codigo de pasareña',
  `order_note_id` int(10) unsigned DEFAULT 0,
  `document_id` int(10) unsigned DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mi_tienda_pe`
--

SET autocommit=0;
COMMIT;

-- Dumped table `mi_tienda_pe` with 0 row(s)
--

--
-- Table structure for table `modules`
--

CREATE TABLE `modules` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `value` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `order_menu` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `modules`
--

SET autocommit=0;
INSERT INTO `modules` VALUES (1,'documents','Ventas',2,NULL,NULL),(2,'purchases','Compras',7,NULL,NULL),(3,'advanced','Documentos Avanzados',8,NULL,NULL),(4,'reports','Reportes',9,NULL,NULL),(5,'configuration','Configuration',12,NULL,NULL),(6,'pos','Punto de venta (POS)',3,NULL,NULL),(7,'dashboard','Dashboard',1,NULL,NULL),(8,'inventory','Inventario',7,NULL,NULL),(9,'accounting','Contabilidad',10,NULL,NULL),(10,'ecommerce','Ecommerce',4,NULL,NULL),(11,'cuenta','Cuenta',13,NULL,NULL),(12,'finance','Finanzas',11,NULL,NULL),(14,'establishments','Usuarios/Locales & Series',7,NULL,NULL),(15,'hotels','Hoteles',14,NULL,NULL),(16,'documentary-procedure','Trámite documentario',15,NULL,NULL),(17,'items','Productos/Servicios',5,NULL,NULL),(18,'persons','Clientes',6,NULL,NULL),(19,'digemid','Farmacos',15,'2026-02-24 15:28:38','2026-02-24 15:28:38'),(20,'apps','Apps',13,NULL,NULL),(21,'suscription_app','Suscriptiones',16,NULL,NULL),(22,'production_app','Producción',17,NULL,NULL),(23,'restaurant_app','Restaurante',18,NULL,NULL),(24,'full_suscription_app','Suscripción Servicios SAAS',17,NULL,NULL),(25,'generate_link_app','Generador de link de pago',19,NULL,NULL),(26,'app_2_generator','Generador APP 2.0',20,NULL,NULL),(27,'guia','Guia de remisión',3,NULL,NULL),(32,'clinic_administration','Administración',25,NULL,NULL);
COMMIT;

-- Dumped table `modules` with 27 row(s)
--

--
-- Table structure for table `module_levels`
--

CREATE TABLE `module_levels` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `value` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `module_id` int(10) unsigned NOT NULL,
  `route_name` varchar(255) DEFAULT NULL,
  `route_path` varchar(255) DEFAULT NULL,
  `label_menu` varchar(3) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `module_levels_module_id_foreign` (`module_id`),
  CONSTRAINT `module_levels_module_id_foreign` FOREIGN KEY (`module_id`) REFERENCES `modules` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=91 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `module_levels`
--

SET autocommit=0;
INSERT INTO `module_levels` VALUES (1,'new_document','Nuevo comprobante',1,'tenant.documents.create','/documents/create','NC',NULL,NULL),(2,'list_document','L. Comprobantes',1,NULL,NULL,NULL,NULL,NULL),(3,'document_not_sent','Doc. No enviados',1,NULL,NULL,NULL,NULL,NULL),(4,'document_contingengy','Doc. Contingencia',1,NULL,NULL,NULL,NULL,NULL),(5,'catalogs','Catálogos',1,NULL,NULL,NULL,NULL,NULL),(6,'summary_voided','Resúmenes y Anulaciones',1,NULL,NULL,NULL,NULL,NULL),(7,'quotations','Cotizaciones',1,NULL,NULL,NULL,NULL,NULL),(8,'sale_notes','Notas de Venta',1,'tenant.sale_notes.index','/sale-notes','NV',NULL,NULL),(9,'incentives','Comisiones',1,NULL,NULL,NULL,NULL,NULL),(10,'sale-opportunity','Oportunidad de venta',1,NULL,NULL,NULL,NULL,NULL),(11,'contracts','Contratos',1,NULL,NULL,NULL,NULL,NULL),(12,'order-note','Pedidos',1,'tenant.order_notes.index','/order-notes','PED',NULL,NULL),(13,'technical-service','Servicios de soporte técnico',1,NULL,NULL,NULL,NULL,NULL),(14,'regularize_shipping','CPE pendientes de rectificación',1,NULL,NULL,NULL,NULL,NULL),(15,'pos','Punto de venta',6,'tenant.pos.index','/pos','POS',NULL,NULL),(16,'cash','Caja chica POS',6,NULL,NULL,NULL,NULL,NULL),(17,'ecommerce','Ir a la tienda',10,NULL,NULL,NULL,NULL,NULL),(18,'ecommerce_orders','Pedidos',10,NULL,NULL,NULL,NULL,NULL),(19,'ecommerce_items','Productos tienda virtual',10,NULL,NULL,NULL,NULL,NULL),(20,'ecommerce_tags','Etiquetas',10,NULL,NULL,NULL,NULL,NULL),(21,'ecommerce_promotions','Promociones - Banners',10,NULL,NULL,NULL,NULL,NULL),(22,'ecommerce_settings','Configuración',10,NULL,NULL,NULL,NULL,NULL),(23,'items','Productos',17,'tenant.items.index','/items','PRO',NULL,NULL),(24,'items_packs','Packs',17,NULL,NULL,NULL,NULL,NULL),(25,'items_services','Servicios',17,NULL,NULL,NULL,NULL,NULL),(26,'items_categories','Categorías',17,NULL,NULL,NULL,NULL,NULL),(27,'items_brands','Marcas',17,NULL,NULL,NULL,NULL,NULL),(28,'items_lots','Series',17,NULL,NULL,NULL,NULL,NULL),(29,'clients','Clientes',18,NULL,NULL,NULL,NULL,NULL),(30,'clients_types','Tipos de clientes',18,NULL,NULL,NULL,NULL,NULL),(31,'purchases_create','Nueva Compra',2,'tenant.purchases.create','/purchases/create','NC',NULL,NULL),(32,'purchases_list','Listado',2,NULL,NULL,NULL,NULL,NULL),(33,'purchases_orders','Ordenes de compra',2,NULL,NULL,NULL,NULL,NULL),(34,'purchases_expenses','Gastos diversos',2,NULL,NULL,NULL,NULL,NULL),(35,'purchases_suppliers','Proveedores',2,NULL,NULL,NULL,NULL,NULL),(36,'purchases_quotations','Solicitar cotización',2,NULL,NULL,NULL,NULL,NULL),(37,'purchases_fixed_assets_items','Activos fijos - Ítems',2,NULL,NULL,NULL,NULL,NULL),(38,'purchases_fixed_assets_purchases','Activos fijos - Compras',2,NULL,NULL,NULL,NULL,NULL),(39,'inventory','Movimientos',8,'inventory.index','/inventory','INV',NULL,NULL),(40,'inventory_transfers','Traslados',8,NULL,NULL,NULL,NULL,NULL),(41,'inventory_devolutions','Devoluciones',8,NULL,NULL,NULL,NULL,NULL),(42,'inventory_report_kardex','Reporte kardex',8,NULL,NULL,NULL,NULL,NULL),(43,'inventory_report','Reporte inventario',8,NULL,NULL,NULL,NULL,NULL),(44,'inventory_report_valued_kardex','Kardex valorizado',8,NULL,NULL,NULL,NULL,'2026-02-24 15:28:44'),(45,'users','Usuarios',14,'tenant.users.index','/users','USR',NULL,NULL),(46,'users_establishments','Establecimientos',14,'tenant.establishments.index','/establishments','ES',NULL,NULL),(47,'advanced_retentions','Retenciones',3,NULL,NULL,NULL,NULL,NULL),(48,'advanced_dispatches','Guías de remisión',3,NULL,NULL,NULL,NULL,NULL),(49,'advanced_perceptions','Percepciones',3,NULL,NULL,NULL,NULL,NULL),(50,'advanced_order_forms','Ordenes de pedido',3,NULL,NULL,NULL,NULL,NULL),(51,'account_report','Exportar reporte',9,NULL,NULL,NULL,NULL,NULL),(52,'account_formats','Exportar formatos',9,NULL,NULL,NULL,NULL,NULL),(53,'account_summary','Reporte resumido - Ventas',9,NULL,NULL,NULL,NULL,NULL),(54,'finances_movements','Movimientos',12,NULL,NULL,NULL,NULL,NULL),(55,'finances_incomes','Ingresos',12,NULL,NULL,NULL,NULL,NULL),(56,'finances_unpaid','Cuentas por cobrar',12,NULL,NULL,NULL,NULL,NULL),(57,'finances_to_pay','Cuentas por pagar',12,NULL,NULL,NULL,NULL,NULL),(58,'finances_payments','Pagos',12,NULL,NULL,NULL,NULL,NULL),(59,'finances_balance','Balance',12,NULL,NULL,NULL,NULL,NULL),(60,'finances_payment_method_types','Ingresos y Egresos - M. Pago',12,NULL,NULL,NULL,NULL,NULL),(61,'account_users_settings','Configuración',11,NULL,NULL,NULL,NULL,NULL),(62,'account_users_list','Lista de pagos',11,NULL,NULL,NULL,NULL,NULL),(63,'hotels_reception','Recepción',15,NULL,NULL,NULL,NULL,NULL),(64,'hotels_rates','Tarifas',15,NULL,NULL,NULL,NULL,NULL),(65,'hotels_floors','Pisos',15,NULL,NULL,NULL,NULL,NULL),(66,'hotels_cats','Categorías',15,NULL,NULL,NULL,NULL,NULL),(67,'hotels_rooms','Habitaciones',15,NULL,NULL,NULL,NULL,NULL),(68,'documentary_offices','Oficinas',16,NULL,NULL,NULL,NULL,NULL),(69,'documentary_process','Procesos',16,NULL,NULL,NULL,NULL,NULL),(70,'documentary_documents','Tipos de documento',16,NULL,NULL,NULL,NULL,NULL),(71,'documentary_actions','Acciones',16,NULL,NULL,NULL,NULL,NULL),(72,'documentary_files','Expedientes',16,NULL,NULL,NULL,NULL,NULL),(73,'digemid','Productos (legado)',19,NULL,NULL,NULL,'2026-02-24 15:28:38','2026-02-24 15:28:38'),(74,'documentary_requirements','Requerimientos',16,NULL,NULL,NULL,'2026-02-24 15:28:38','2026-02-24 15:28:38'),(75,'inventory_item_extra_data','Datos extra de items',8,NULL,NULL,NULL,NULL,NULL),(76,'configuration_company','Empresa',5,'tenant.companies.create','/companies/create','ME',NULL,NULL),(77,'configuration_advance','Avanzado',5,NULL,NULL,NULL,NULL,NULL),(78,'configuration_visual','Visual',5,NULL,NULL,NULL,NULL,NULL),(79,'advanced_purchase_settlements','Liquidaciones de compra',3,NULL,NULL,NULL,NULL,NULL),(80,'suscription_app_client','Cliente',21,NULL,NULL,NULL,NULL,NULL),(81,'suscription_app_service','Servicio',21,NULL,NULL,NULL,NULL,NULL),(82,'suscription_app_payments','Pagos',21,NULL,NULL,NULL,NULL,NULL),(83,'suscription_app_plans','Planes',21,NULL,NULL,NULL,NULL,NULL),(84,'pos_garage','Venta rapida',6,NULL,NULL,NULL,NULL,NULL),(85,'digemid_health_report','Reporte DIGEMID',19,'reports.health.index','/prescriptions/digemid','RDI','2026-04-01 09:08:10','2026-04-01 09:08:10'),(86,'digemid_doctors','Medicos',19,'tenant.prescriptions.doctors.index','/prescriptions/doctors','MED','2026-04-01 09:08:10','2026-04-01 09:08:10'),(87,'digemid_cie10','CIE 10',19,'tenant.prescriptions.cie10.index','/prescriptions/cie10','C10','2026-04-01 09:08:10','2026-04-01 09:08:10'),(88,'digemid_psychotropics_report','Reporte de Psicotropicos',19,'tenant.prescriptions.reports.index','/prescriptions/reports','RPS','2026-04-01 09:08:10','2026-04-01 09:08:10'),(89,'digemid_purchase_reception','Recepcion de productos farmaceuticos',19,'tenant.reports.purchases.format_09.index','/reports/purchases/format_09','RPF','2026-04-01 09:08:10','2026-04-01 09:08:10'),(90,'items_coupons','Cupones',17,NULL,NULL,NULL,'2026-04-01 09:08:10','2026-04-01 09:08:10');
COMMIT;

-- Dumped table `module_levels` with 90 row(s)
--

--
-- Table structure for table `module_level_user`
--

CREATE TABLE `module_level_user` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `module_level_id` int(10) unsigned NOT NULL,
  `user_id` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=118 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `module_level_user`
--

SET autocommit=0;
INSERT INTO `module_level_user` VALUES (1,76,0),(2,77,0),(3,78,0),(4,1,1),(5,2,1),(6,3,1),(7,4,1),(8,5,1),(9,6,1),(10,7,1),(11,8,1),(12,9,1),(13,10,1),(14,11,1),(15,12,1),(16,13,1),(17,14,1),(18,15,1),(19,16,1),(20,84,1),(21,23,1),(22,24,1),(23,25,1),(24,26,1),(25,27,1),(26,28,1),(27,29,1),(28,30,1),(29,31,1),(30,32,1),(31,33,1),(32,34,1),(33,35,1),(34,36,1),(35,37,1),(36,38,1),(37,39,1),(38,40,1),(39,41,1),(40,42,1),(41,43,1),(42,44,1),(43,75,1),(44,45,1),(45,46,1),(46,51,1),(47,52,1),(48,53,1),(49,54,1),(50,55,1),(51,56,1),(52,57,1),(53,58,1),(54,59,1),(55,60,1),(56,76,1),(57,77,1),(58,78,1),(59,61,1),(60,62,1),(61,1,2),(62,2,2),(63,3,2),(64,4,2),(65,5,2),(66,6,2),(67,7,2),(68,8,2),(69,9,2),(70,10,2),(71,11,2),(72,12,2),(73,13,2),(74,14,2),(75,15,2),(76,16,2),(77,84,2),(78,23,2),(79,24,2),(80,25,2),(81,26,2),(82,27,2),(83,28,2),(84,29,2),(85,30,2),(86,31,2),(87,32,2),(88,33,2),(89,34,2),(90,35,2),(91,36,2),(92,37,2),(93,38,2),(94,39,2),(95,40,2),(96,41,2),(97,42,2),(98,43,2),(99,44,2),(100,75,2),(101,51,2),(102,52,2),(103,53,2),(104,54,2),(105,55,2),(106,56,2),(107,57,2),(108,58,2),(109,59,2),(110,60,2),(111,76,2),(112,77,2),(113,78,2),(114,61,2),(115,62,2),(116,90,1),(117,90,2);
COMMIT;

-- Dumped table `module_level_user` with 117 row(s)
--

--
-- Table structure for table `module_user`
--

CREATE TABLE `module_user` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `module_id` int(10) unsigned NOT NULL,
  `user_id` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `module_user`
--

SET autocommit=0;
INSERT INTO `module_user` VALUES (1,7,1),(2,1,1),(3,6,1),(4,17,1),(5,18,1),(6,2,1),(7,8,1),(8,14,1),(9,4,1),(10,9,1),(11,12,1),(12,5,1),(13,11,1),(14,7,2),(15,1,2),(16,6,2),(17,17,2),(18,18,2),(19,2,2),(20,8,2),(21,4,2),(22,9,2),(23,12,2),(24,5,2),(25,11,2);
COMMIT;

-- Dumped table `module_user` with 25 row(s)
--

--
-- Table structure for table `notes`
--

CREATE TABLE `notes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `document_id` int(10) unsigned NOT NULL,
  `note_type` enum('credit','debit') NOT NULL,
  `note_credit_type_id` varchar(255) DEFAULT NULL,
  `note_debit_type_id` varchar(255) DEFAULT NULL,
  `note_description` varchar(255) NOT NULL,
  `affected_document_id` int(10) unsigned DEFAULT NULL,
  `data_affected_document` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `notes_document_id_foreign` (`document_id`),
  KEY `notes_note_credit_type_id_foreign` (`note_credit_type_id`),
  KEY `notes_note_debit_type_id_foreign` (`note_debit_type_id`),
  KEY `notes_affected_document_id_foreign` (`affected_document_id`),
  CONSTRAINT `notes_affected_document_id_foreign` FOREIGN KEY (`affected_document_id`) REFERENCES `documents` (`id`),
  CONSTRAINT `notes_document_id_foreign` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE,
  CONSTRAINT `notes_note_credit_type_id_foreign` FOREIGN KEY (`note_credit_type_id`) REFERENCES `cat_note_credit_types` (`id`),
  CONSTRAINT `notes_note_debit_type_id_foreign` FOREIGN KEY (`note_debit_type_id`) REFERENCES `cat_note_debit_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `notes`
--

SET autocommit=0;
COMMIT;

-- Dumped table `notes` with 0 row(s)
--

--
-- Table structure for table `offline_configurations`
--

CREATE TABLE `offline_configurations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `is_client` tinyint(1) NOT NULL DEFAULT 0,
  `token_server` varchar(255) DEFAULT NULL,
  `url_server` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `offline_configurations`
--

SET autocommit=0;
INSERT INTO `offline_configurations` VALUES (1,0,NULL,NULL,NULL,NULL);
COMMIT;

-- Dumped table `offline_configurations` with 1 row(s)
--

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `external_id` char(36) NOT NULL,
  `customer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `shipping_address` varchar(255) DEFAULT NULL,
  `items` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `total` decimal(12,2) NOT NULL,
  `reference_payment` varchar(255) NOT NULL,
  `document_external_id` char(36) DEFAULT NULL,
  `number_document` varchar(255) DEFAULT NULL,
  `status_order_id` tinyint(3) unsigned DEFAULT NULL,
  `purchase` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `apply_restaurant` tinyint(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `orders_status_order_id_foreign` (`status_order_id`),
  CONSTRAINT `orders_status_order_id_foreign` FOREIGN KEY (`status_order_id`) REFERENCES `status_orders` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `orders`
--

SET autocommit=0;
COMMIT;

-- Dumped table `orders` with 0 row(s)
--

--
-- Table structure for table `order_forms`
--

CREATE TABLE `order_forms` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `external_id` char(36) NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `establishment` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `prefix` varchar(255) NOT NULL,
  `date_of_issue` date NOT NULL,
  `time_of_issue` time NOT NULL,
  `customer_id` int(10) unsigned NOT NULL,
  `customer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `observations` text NOT NULL,
  `transport_mode_type_id` varchar(255) NOT NULL,
  `transfer_reason_type_id` varchar(255) NOT NULL,
  `transfer_reason_description` varchar(255) NOT NULL,
  `date_of_shipping` date NOT NULL,
  `transshipment_indicator` tinyint(1) NOT NULL,
  `port_code` varchar(255) DEFAULT NULL,
  `unit_type_id` varchar(255) NOT NULL,
  `total_weight` decimal(10,2) NOT NULL,
  `packages_number` int(11) NOT NULL,
  `container_number` int(11) DEFAULT NULL,
  `origin` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `delivery` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `dispatcher_id` int(10) unsigned NOT NULL,
  `driver_id` int(10) unsigned NOT NULL,
  `license_plates` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `optional` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `qr` longtext DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `order_forms_dispatcher_id_foreign` (`dispatcher_id`),
  KEY `order_forms_driver_id_foreign` (`driver_id`),
  KEY `order_forms_user_id_foreign` (`user_id`),
  KEY `order_forms_establishment_id_foreign` (`establishment_id`),
  KEY `order_forms_soap_type_id_foreign` (`soap_type_id`),
  KEY `order_forms_state_type_id_foreign` (`state_type_id`),
  KEY `order_forms_customer_id_foreign` (`customer_id`),
  KEY `order_forms_unit_type_id_foreign` (`unit_type_id`),
  KEY `order_forms_transport_mode_type_id_foreign` (`transport_mode_type_id`),
  KEY `order_forms_transfer_reason_type_id_foreign` (`transfer_reason_type_id`),
  KEY `order_forms_date_of_issue_index` (`date_of_issue`),
  CONSTRAINT `order_forms_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `order_forms_dispatcher_id_foreign` FOREIGN KEY (`dispatcher_id`) REFERENCES `dispatchers` (`id`),
  CONSTRAINT `order_forms_driver_id_foreign` FOREIGN KEY (`driver_id`) REFERENCES `drivers` (`id`),
  CONSTRAINT `order_forms_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `order_forms_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `order_forms_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `order_forms_transfer_reason_type_id_foreign` FOREIGN KEY (`transfer_reason_type_id`) REFERENCES `cat_transfer_reason_types` (`id`),
  CONSTRAINT `order_forms_transport_mode_type_id_foreign` FOREIGN KEY (`transport_mode_type_id`) REFERENCES `cat_transport_mode_types` (`id`),
  CONSTRAINT `order_forms_unit_type_id_foreign` FOREIGN KEY (`unit_type_id`) REFERENCES `cat_unit_types` (`id`),
  CONSTRAINT `order_forms_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `order_forms`
--

SET autocommit=0;
COMMIT;

-- Dumped table `order_forms` with 0 row(s)
--

--
-- Table structure for table `order_form_items`
--

CREATE TABLE `order_form_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `order_form_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `order_form_items_order_form_id_foreign` (`order_form_id`),
  KEY `order_form_items_item_id_foreign` (`item_id`),
  CONSTRAINT `order_form_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `order_form_items_order_form_id_foreign` FOREIGN KEY (`order_form_id`) REFERENCES `order_forms` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `order_form_items`
--

SET autocommit=0;
COMMIT;

-- Dumped table `order_form_items` with 0 row(s)
--

--
-- Table structure for table `order_notes`
--

CREATE TABLE `order_notes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `external_id` char(36) NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `establishment` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `prefix` char(3) NOT NULL,
  `date_of_issue` date NOT NULL,
  `time_of_issue` time NOT NULL,
  `date_of_due` date DEFAULT NULL,
  `delivery_date` date DEFAULT NULL,
  `customer_id` int(10) unsigned NOT NULL,
  `customer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `shipping_address` text DEFAULT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `payment_method_type_id` char(2) DEFAULT NULL,
  `exchange_rate_sale` decimal(13,3) NOT NULL,
  `total_prepayment` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exportation` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxed` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_unaffected` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exonerated` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_igv` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_igv_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_value` decimal(12,2) NOT NULL DEFAULT 0.00,
  `subtotal` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `prepayments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `guides` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `related` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `perception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `detraction` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `additional_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `observation` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `quotation_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con cotizaciones',
  PRIMARY KEY (`id`),
  KEY `order_notes_user_id_foreign` (`user_id`),
  KEY `order_notes_establishment_id_foreign` (`establishment_id`),
  KEY `order_notes_customer_id_foreign` (`customer_id`),
  KEY `order_notes_soap_type_id_foreign` (`soap_type_id`),
  KEY `order_notes_state_type_id_foreign` (`state_type_id`),
  KEY `order_notes_currency_type_id_foreign` (`currency_type_id`),
  KEY `order_notes_payment_method_type_id_foreign` (`payment_method_type_id`),
  CONSTRAINT `order_notes_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `order_notes_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `order_notes_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `order_notes_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `order_notes_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `order_notes_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `order_notes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `order_notes`
--

SET autocommit=0;
COMMIT;

-- Dumped table `order_notes` with 0 row(s)
--

--
-- Table structure for table `order_note_items`
--

CREATE TABLE `order_note_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `order_note_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `unit_value` decimal(16,6) NOT NULL,
  `affectation_igv_type_id` varchar(255) NOT NULL,
  `total_base_igv` decimal(12,2) NOT NULL,
  `percentage_igv` decimal(12,2) NOT NULL,
  `total_igv` decimal(12,2) NOT NULL,
  `system_isc_type_id` varchar(255) DEFAULT NULL,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_plastic_bag_taxes` decimal(6,2) DEFAULT 0.00 COMMENT 'Impuesto bolsa plastica',
  `total_taxes` decimal(12,2) NOT NULL,
  `price_type_id` varchar(255) NOT NULL,
  `unit_price` decimal(16,6) NOT NULL,
  `total_value` decimal(12,2) NOT NULL,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `additional_information` longtext DEFAULT NULL COMMENT 'Informacion adcional',
  `warehouse_id` int(10) unsigned DEFAULT NULL,
  `name_product_pdf` longtext DEFAULT NULL COMMENT 'Nombre del producto para el pdf',
  PRIMARY KEY (`id`),
  KEY `order_note_items_order_note_id_foreign` (`order_note_id`),
  KEY `order_note_items_item_id_foreign` (`item_id`),
  KEY `order_note_items_affectation_igv_type_id_foreign` (`affectation_igv_type_id`),
  KEY `order_note_items_system_isc_type_id_foreign` (`system_isc_type_id`),
  KEY `order_note_items_price_type_id_foreign` (`price_type_id`),
  KEY `order_note_items_warehouse_id_foreign` (`warehouse_id`),
  CONSTRAINT `order_note_items_affectation_igv_type_id_foreign` FOREIGN KEY (`affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `order_note_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `order_note_items_order_note_id_foreign` FOREIGN KEY (`order_note_id`) REFERENCES `order_notes` (`id`) ON DELETE CASCADE,
  CONSTRAINT `order_note_items_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `cat_price_types` (`id`),
  CONSTRAINT `order_note_items_system_isc_type_id_foreign` FOREIGN KEY (`system_isc_type_id`) REFERENCES `cat_system_isc_types` (`id`),
  CONSTRAINT `order_note_items_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `order_note_items`
--

SET autocommit=0;
COMMIT;

-- Dumped table `order_note_items` with 0 row(s)
--

--
-- Table structure for table `origin_addresses`
--

CREATE TABLE `origin_addresses` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `address` varchar(255) NOT NULL,
  `location_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT 0,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `origin_addresses`
--

SET autocommit=0;
COMMIT;

-- Dumped table `origin_addresses` with 0 row(s)
--

--
-- Table structure for table `packaging`
--

CREATE TABLE `packaging` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `user_id` int(10) unsigned DEFAULT NULL,
  `soap_type_id` char(2) DEFAULT NULL,
  `item_extra_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `establishment_id` int(10) unsigned DEFAULT NULL,
  `quantity` decimal(8,2) DEFAULT 0.00,
  `number_packages` decimal(8,2) DEFAULT 0.00,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `observation` longtext DEFAULT NULL,
  `lot_code` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `date_start` date DEFAULT NULL,
  `time_start` time DEFAULT NULL,
  `date_end` date DEFAULT NULL,
  `time_end` time DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `packaging_collaborator` text DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `packaging_soap_type_id_foreign` (`soap_type_id`),
  CONSTRAINT `packaging_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `packaging`
--

SET autocommit=0;
COMMIT;

-- Dumped table `packaging` with 0 row(s)
--

--
-- Table structure for table `padrones`
--

CREATE TABLE `padrones` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `ruc` varchar(255) NOT NULL,
  `nombre_razon_social` varchar(155) NOT NULL,
  `estado_contribuyente` varchar(100) NOT NULL,
  `condicion_domicilio` varchar(100) NOT NULL,
  `ubigeo` varchar(50) NOT NULL,
  `tipo_via` varchar(20) NOT NULL,
  `nombre_via` varchar(50) NOT NULL,
  `codigo_zona` varchar(155) NOT NULL,
  `tipo_zona` varchar(20) NOT NULL,
  `numero` varchar(155) NOT NULL,
  `interior` varchar(50) NOT NULL,
  `lote` varchar(20) NOT NULL,
  `departamento` varchar(100) NOT NULL,
  `manzana` varchar(20) NOT NULL,
  `kilometro` varchar(20) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `padrones_ruc_index` (`ruc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `padrones`
--

SET autocommit=0;
COMMIT;

-- Dumped table `padrones` with 0 row(s)
--

--
-- Table structure for table `password_resets`
--

SET autocommit=0;
COMMIT;

-- Dumped table `password_resets` with 0 row(s)
--

--
-- Table structure for table `payment_conditions`
--

CREATE TABLE `payment_conditions` (
  `id` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `days` int(11) NOT NULL DEFAULT 0,
  `is_locked` tinyint(1) NOT NULL DEFAULT 0,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  KEY `payment_conditions_id_index` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_conditions`
--

SET autocommit=0;
INSERT INTO `payment_conditions` VALUES ('01','Contado',0,1,1),('02','Crédito',0,1,1);
COMMIT;

-- Dumped table `payment_conditions` with 2 row(s)
--

--
-- Table structure for table `payment_configurations`
--

SET autocommit=0;
COMMIT;

-- Dumped table `payment_configurations` with 1 row(s)
--

--
-- Table structure for table `payment_files`
--

CREATE TABLE `payment_files` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `filename` varchar(255) NOT NULL,
  `payment_id` int(11) NOT NULL,
  `payment_type` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `payment_index` (`payment_id`,`payment_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_files`
--

SET autocommit=0;
COMMIT;

-- Dumped table `payment_files` with 0 row(s)
--

--
-- Table structure for table `payment_links`
--

CREATE TABLE `payment_links` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `soap_type_id` char(2) NOT NULL,
  `uuid` char(36) NOT NULL,
  `user_id` int(10) unsigned NOT NULL,
  `payment_link_type_id` char(2) NOT NULL,
  `payment_id` int(11) DEFAULT NULL,
  `payment_type` varchar(255) DEFAULT NULL,
  `total` decimal(12,2) NOT NULL,
  `uploaded_filename` varchar(255) DEFAULT NULL,
  `query_transaction` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `payment_links_uuid_unique` (`uuid`),
  KEY `payment_index` (`payment_id`,`payment_type`),
  KEY `payment_links_user_id_foreign` (`user_id`),
  KEY `payment_links_soap_type_id_foreign` (`soap_type_id`),
  KEY `payment_links_payment_link_type_id_foreign` (`payment_link_type_id`),
  CONSTRAINT `payment_links_payment_link_type_id_foreign` FOREIGN KEY (`payment_link_type_id`) REFERENCES `payment_link_types` (`id`),
  CONSTRAINT `payment_links_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `payment_links_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_links`
--

SET autocommit=0;
COMMIT;

-- Dumped table `payment_links` with 0 row(s)
--

--
-- Table structure for table `payment_link_types`
--

CREATE TABLE `payment_link_types` (
  `id` char(2) NOT NULL,
  `description` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_link_types`
--

SET autocommit=0;
INSERT INTO `payment_link_types` VALUES ('01','Yape'),('02','Mercado Pago');
COMMIT;

-- Dumped table `payment_link_types` with 2 row(s)
--

--
-- Table structure for table `payment_method_types`
--

CREATE TABLE `payment_method_types` (
  `id` char(2) NOT NULL,
  `description` varchar(255) NOT NULL,
  `has_card` tinyint(1) NOT NULL DEFAULT 0,
  `charge` decimal(12,2) DEFAULT NULL,
  `number_days` int(11) DEFAULT NULL,
  `is_credit` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Define si es tipo credito',
  `is_cash` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Define si es es efectivo',
  `active_pos` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'Visible en POS para contado',
  `pos_bank_account_id` int(10) unsigned DEFAULT NULL COMMENT 'Cuenta bancaria por defecto en POS contado. Null => caja',
  `is_visible` tinyint(1) NOT NULL DEFAULT 1,
  KEY `payment_method_types_id_index` (`id`),
  KEY `payment_method_types_is_credit_index` (`is_credit`),
  KEY `payment_method_types_active_pos_index` (`active_pos`),
  KEY `payment_method_types_pos_bank_account_id_index` (`pos_bank_account_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_method_types`
--

SET autocommit=0;
INSERT INTO `payment_method_types` VALUES ('01','Efectivo',0,NULL,NULL,0,1,1,NULL,1),('02','Yape',0,NULL,NULL,0,0,1,NULL,1),('03','Plin',0,NULL,NULL,0,0,1,NULL,1),('04','Transferencia',0,NULL,NULL,0,0,1,NULL,1),('05','Factura a 30 dias',0,NULL,30,1,0,0,NULL,0),('09','Credito',0,NULL,NULL,1,0,0,NULL,0);
COMMIT;

-- Dumped table `payment_method_types` with 6 row(s)
--

--
-- Table structure for table `perceptions`
--

SET autocommit=0;
COMMIT;

-- Dumped table `perceptions` with 0 row(s)
--

--
-- Table structure for table `perception_documents`
--

CREATE TABLE `perception_documents` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `perception_id` int(10) unsigned NOT NULL,
  `document_type_id` varchar(255) NOT NULL,
  `number` varchar(255) NOT NULL,
  `date_of_issue` date NOT NULL,
  `date_of_perception` date NOT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `total_document` decimal(10,2) NOT NULL,
  `total_perception` decimal(10,2) NOT NULL,
  `payments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `series` varchar(255) NOT NULL,
  `exchange_rate` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `total_to_pay` decimal(10,2) NOT NULL,
  `total_payment` decimal(10,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `perception_details_perception_id_foreign` (`perception_id`),
  KEY `perception_documents_document_type_id_foreign` (`document_type_id`),
  KEY `perception_documents_currency_type_id_foreign` (`currency_type_id`),
  CONSTRAINT `perception_details_perception_id_foreign` FOREIGN KEY (`perception_id`) REFERENCES `perceptions` (`id`) ON DELETE CASCADE,
  CONSTRAINT `perception_documents_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `perception_documents_document_type_id_foreign` FOREIGN KEY (`document_type_id`) REFERENCES `cat_document_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `perception_documents`
--

SET autocommit=0;
COMMIT;

-- Dumped table `perception_documents` with 0 row(s)
--

--
-- Table structure for table `persons`
--

CREATE TABLE `persons` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `type` enum('customers','suppliers') NOT NULL,
  `identity_document_type_id` varchar(255) NOT NULL,
  `number` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `trade_name` varchar(255) DEFAULT NULL,
  `internal_code` varchar(100) DEFAULT NULL,
  `barcode` varchar(150) DEFAULT NULL,
  `country_id` char(2) NOT NULL,
  `nationality_id` char(2) DEFAULT NULL,
  `department_id` char(2) DEFAULT NULL,
  `province_id` char(4) DEFAULT NULL,
  `district_id` char(6) DEFAULT NULL,
  `address_type_id` varchar(255) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `condition` varchar(255) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `telephone` varchar(255) DEFAULT NULL,
  `accumulated_points` decimal(12,2) NOT NULL DEFAULT 0.00 COMMENT 'sistema por puntos',
  `perception_agent` tinyint(1) NOT NULL DEFAULT 0,
  `person_type_id` int(10) unsigned DEFAULT NULL,
  `contact` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `percentage_perception` decimal(12,2) DEFAULT NULL,
  `enabled` tinyint(1) NOT NULL DEFAULT 1,
  `website` text DEFAULT NULL COMMENT 'Sitio Web',
  `zone` longtext DEFAULT NULL COMMENT 'Zona',
  `observation` longtext DEFAULT NULL COMMENT 'Observaciones',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1,
  `credit_days` int(10) unsigned DEFAULT 0 COMMENT 'establece los dias de credito',
  `optional_email` longtext DEFAULT NULL COMMENT 'Conjunto de correos de envio',
  `parent_id` int(10) unsigned DEFAULT 0 COMMENT 'Se relaciona con si mismo, numero mayor a 0 es el id del padre.',
  `zone_id` int(10) unsigned DEFAULT NULL,
  `seller_id` int(10) unsigned DEFAULT NULL,
  `has_discount` tinyint(1) NOT NULL DEFAULT 0,
  `discount_type` char(2) NOT NULL DEFAULT '01',
  `discount_amount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `price_list` tinyint(3) unsigned NOT NULL DEFAULT 1,
  PRIMARY KEY (`id`),
  KEY `persons_identity_document_type_id_foreign` (`identity_document_type_id`),
  KEY `persons_country_id_foreign` (`country_id`),
  KEY `persons_department_id_foreign` (`department_id`),
  KEY `persons_province_id_foreign` (`province_id`),
  KEY `persons_district_id_foreign` (`district_id`),
  KEY `persons_name_index` (`name`),
  KEY `persons_number_index` (`number`),
  KEY `persons_type_index` (`type`),
  KEY `persons_person_type_id_foreign` (`person_type_id`),
  KEY `persons_enabled_index` (`enabled`),
  KEY `persons_address_type_id_foreign` (`address_type_id`),
  KEY `persons_seller_id_index` (`seller_id`),
  KEY `persons_nationality_id_foreign` (`nationality_id`),
  CONSTRAINT `persons_address_type_id_foreign` FOREIGN KEY (`address_type_id`) REFERENCES `cat_address_types` (`id`),
  CONSTRAINT `persons_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`),
  CONSTRAINT `persons_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`),
  CONSTRAINT `persons_district_id_foreign` FOREIGN KEY (`district_id`) REFERENCES `districts` (`id`),
  CONSTRAINT `persons_identity_document_type_id_foreign` FOREIGN KEY (`identity_document_type_id`) REFERENCES `cat_identity_document_types` (`id`),
  CONSTRAINT `persons_nationality_id_foreign` FOREIGN KEY (`nationality_id`) REFERENCES `countries` (`id`),
  CONSTRAINT `persons_person_type_id_foreign` FOREIGN KEY (`person_type_id`) REFERENCES `person_types` (`id`),
  CONSTRAINT `persons_province_id_foreign` FOREIGN KEY (`province_id`) REFERENCES `provinces` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `persons`
--

SET autocommit=0;
INSERT INTO `persons` VALUES (1,'customers','0','99999999','Clientes - Varios',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,'2026-02-24 15:28:43','2026-02-24 15:28:43',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(2,'customers','1','33564601','LINGAN ROMERO, BERTILA',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-27 18:48:05','2026-03-27 18:48:05',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(3,'customers','6','20609622467','PROYECTO EDUCATIVO LUZ Y VERDAD 536',NULL,NULL,NULL,'PE',NULL,'01','0102','010206',NULL,'JR. ATAHUALPA NRO. 445','HABIDO','ACTIVO',NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-30 22:49:45','2026-03-30 22:49:45',1,0,NULL,0,NULL,NULL,0,'01',0.00,1);
COMMIT;

-- Dumped table `persons` with 3 row(s)
--

--
-- Table structure for table `person_address`
--

CREATE TABLE `person_address` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `person_id` int(10) unsigned NOT NULL,
  `department_id` char(2) DEFAULT NULL,
  `province_id` char(4) DEFAULT NULL,
  `district_id` char(6) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_address_person_id_foreign` (`person_id`),
  KEY `person_address_department_id_foreign` (`department_id`),
  KEY `person_address_province_id_foreign` (`province_id`),
  KEY `person_address_district_id_foreign` (`district_id`),
  CONSTRAINT `person_address_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`),
  CONSTRAINT `person_address_district_id_foreign` FOREIGN KEY (`district_id`) REFERENCES `districts` (`id`),
  CONSTRAINT `person_address_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_address_province_id_foreign` FOREIGN KEY (`province_id`) REFERENCES `provinces` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_address`
--

SET autocommit=0;
COMMIT;

-- Dumped table `person_address` with 0 row(s)
--

--
-- Table structure for table `person_addresses`
--

CREATE TABLE `person_addresses` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `person_id` int(10) unsigned NOT NULL,
  `country_id` char(2) NOT NULL,
  `department_id` char(2) DEFAULT NULL,
  `province_id` char(4) DEFAULT NULL,
  `district_id` char(6) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `main` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `person_addresses_person_id_foreign` (`person_id`),
  KEY `person_addresses_country_id_foreign` (`country_id`),
  KEY `person_addresses_department_id_foreign` (`department_id`),
  KEY `person_addresses_province_id_foreign` (`province_id`),
  KEY `person_addresses_district_id_foreign` (`district_id`),
  CONSTRAINT `person_addresses_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`),
  CONSTRAINT `person_addresses_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`),
  CONSTRAINT `person_addresses_district_id_foreign` FOREIGN KEY (`district_id`) REFERENCES `districts` (`id`),
  CONSTRAINT `person_addresses_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_addresses_province_id_foreign` FOREIGN KEY (`province_id`) REFERENCES `provinces` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_addresses`
--

SET autocommit=0;
COMMIT;

-- Dumped table `person_addresses` with 0 row(s)
--

--
-- Table structure for table `person_types`
--

CREATE TABLE `person_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `description` text NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_types`
--

SET autocommit=0;
INSERT INTO `person_types` VALUES (1,'Interno','2026-02-24 15:28:30','2026-02-24 15:28:30'),(2,'Distribuidor','2026-02-24 15:28:30','2026-02-24 15:28:30');
COMMIT;

-- Dumped table `person_types` with 2 row(s)
--

--
-- Table structure for table `pharmacy_configurations`
--

CREATE TABLE `pharmacy_configurations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `establishment_id` int(10) unsigned NOT NULL,
  `profit_field` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pharmacy_configurations`
--

SET autocommit=0;
INSERT INTO `pharmacy_configurations` VALUES (1,1,0,'2026-02-25 18:12:16','2026-02-25 18:12:16');
COMMIT;

-- Dumped table `pharmacy_configurations` with 1 row(s)
--

--
-- Table structure for table `points`
--

CREATE TABLE `points` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `person_id` int(10) unsigned NOT NULL,
  `folio` varchar(255) NOT NULL,
  `points` double(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `banned` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `points_person_id_foreign` (`person_id`),
  CONSTRAINT `points_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `points`
--

SET autocommit=0;
COMMIT;

-- Dumped table `points` with 0 row(s)
--

--
-- Table structure for table `pos_parked_sales`
--

CREATE TABLE `pos_parked_sales` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `uuid` char(36) NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `cash_id` int(10) unsigned NOT NULL,
  `created_by_user_id` int(10) unsigned NOT NULL,
  `customer_id` int(10) unsigned DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `payload` longtext NOT NULL,
  `locked_by_user_id` int(10) unsigned DEFAULT NULL,
  `lock_expires_at` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `pos_parked_sales_uuid_unique` (`uuid`),
  KEY `idx_pos_parked_sales_cash_id` (`cash_id`),
  KEY `idx_pos_parked_sales_created_by` (`created_by_user_id`),
  KEY `idx_pos_parked_sales_lock_expires` (`lock_expires_at`),
  KEY `idx_pos_parked_sales_created_at` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pos_parked_sales`
--

SET autocommit=0;
COMMIT;

-- Dumped table `pos_parked_sales` with 0 row(s)
--

--
-- Table structure for table `preprinted_format_templates`
--

CREATE TABLE `preprinted_format_templates` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `formats` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `preprinted_format_templates`
--

SET autocommit=0;
COMMIT;

-- Dumped table `preprinted_format_templates` with 0 row(s)
--

--
-- Table structure for table `prescription_cie10`
--

CREATE TABLE `prescription_cie10` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `diagnoses_code` varchar(255) NOT NULL,
  `diagnoses_description` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `prescription_cie10`
--

SET autocommit=0;
COMMIT;

-- Dumped table `prescription_cie10` with 0 row(s)
--

--
-- Table structure for table `prescription_doctors`
--

CREATE TABLE `prescription_doctors` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cmp` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `prescription_doctors`
--

SET autocommit=0;
COMMIT;

-- Dumped table `prescription_doctors` with 0 row(s)
--

--
-- Table structure for table `prescription_prescriptions`
--

CREATE TABLE `prescription_prescriptions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `customer_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `document_id` int(10) unsigned DEFAULT NULL,
  `sale_note_id` int(10) unsigned DEFAULT NULL,
  `quantity` int(11) NOT NULL,
  `prescription_number` varchar(255) DEFAULT NULL,
  `prescription_date` date DEFAULT NULL,
  `prescription_doctor_id` int(10) unsigned DEFAULT NULL,
  `doctor_name` varchar(255) DEFAULT NULL,
  `prescription_cie10_id` int(10) unsigned DEFAULT NULL,
  `diagnosis_text` varchar(255) DEFAULT NULL,
  `user_id` int(10) unsigned NOT NULL,
  `warehouse_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `prescription_prescriptions_customer_id_foreign` (`customer_id`),
  KEY `prescription_prescriptions_item_id_foreign` (`item_id`),
  KEY `prescription_prescriptions_prescription_doctor_id_foreign` (`prescription_doctor_id`),
  KEY `prescription_prescriptions_prescription_cie10_id_foreign` (`prescription_cie10_id`),
  KEY `prescription_prescriptions_user_id_foreign` (`user_id`),
  KEY `prescription_prescriptions_warehouse_id_foreign` (`warehouse_id`),
  CONSTRAINT `prescription_prescriptions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `prescription_prescriptions_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `prescription_prescriptions_prescription_cie10_id_foreign` FOREIGN KEY (`prescription_cie10_id`) REFERENCES `prescription_cie10` (`id`),
  CONSTRAINT `prescription_prescriptions_prescription_doctor_id_foreign` FOREIGN KEY (`prescription_doctor_id`) REFERENCES `prescription_doctors` (`id`),
  CONSTRAINT `prescription_prescriptions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `prescription_prescriptions_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `prescription_prescriptions`
--

SET autocommit=0;
COMMIT;

-- Dumped table `prescription_prescriptions` with 0 row(s)
--

--
-- Table structure for table `production`
--

CREATE TABLE `production` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT 0,
  `soap_type_id` char(2) DEFAULT NULL,
  `item_id` int(10) unsigned DEFAULT 0,
  `inventory_id_reference` int(10) unsigned DEFAULT NULL,
  `quantity` decimal(12,4) DEFAULT 0.0000 COMMENT 'Peso dle insumo ',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `machine_id` int(10) unsigned NOT NULL DEFAULT 0,
  `production_order` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `comment` longtext DEFAULT NULL,
  `date_start` date DEFAULT NULL,
  `time_start` time DEFAULT NULL,
  `date_end` date DEFAULT NULL,
  `time_end` time DEFAULT NULL,
  `lot_code` varchar(255) DEFAULT NULL,
  `item_extra_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `mix_date_start` date DEFAULT NULL,
  `mix_time_start` time DEFAULT NULL,
  `mix_date_end` date DEFAULT NULL,
  `mix_time_end` time DEFAULT NULL,
  `informative` tinyint(3) unsigned DEFAULT 0,
  `agreed` decimal(8,2) DEFAULT 0.00,
  `imperfect` decimal(8,2) DEFAULT 0.00,
  `proccess_type` longtext DEFAULT NULL,
  `production_collaborator` text DEFAULT NULL,
  `mix_collaborator` text DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `production_soap_type_id_foreign` (`soap_type_id`),
  CONSTRAINT `production_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `production`
--

SET autocommit=0;
COMMIT;

-- Dumped table `production` with 0 row(s)
--

--
-- Table structure for table `promotions`
--

CREATE TABLE `promotions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `type` varchar(255) DEFAULT NULL,
  `image` varchar(255) NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `apply_restaurant` tinyint(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `promotions_item_id_foreign` (`item_id`),
  CONSTRAINT `promotions_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `promotions`
--

SET autocommit=0;
COMMIT;

-- Dumped table `promotions` with 0 row(s)
--

--
-- Table structure for table `provinces`
--

CREATE TABLE `provinces` (
  `id` char(4) NOT NULL,
  `department_id` char(2) NOT NULL,
  `description` varchar(255) NOT NULL,
  `active` tinyint(1) NOT NULL DEFAULT 1,
  KEY `provinces_department_id_foreign` (`department_id`),
  KEY `provinces_id_index` (`id`),
  CONSTRAINT `provinces_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `provinces`
--

SET autocommit=0;
INSERT INTO `provinces` VALUES ('0101','01','Chachapoyas',1),('0102','01','Bagua',1),('0103','01','Bongará',1),('0104','01','Condorcanqui',1),('0105','01','Luya',1),('0106','01','Rodríguez de Mendoza',1),('0107','01','Utcubamba',1),('0201','02','Huaraz',1),('0202','02','Aija',1),('0203','02','Antonio Raymondi',1),('0204','02','Asunción',1),('0205','02','Bolognesi',1),('0206','02','Carhuaz',1),('0207','02','Carlos Fermín Fitzcarrald',1),('0208','02','Casma',1),('0209','02','Corongo',1),('0210','02','Huari',1),('0211','02','Huarmey',1),('0212','02','Huaylas',1),('0213','02','Mariscal Luzuriaga',1),('0214','02','Ocros',1),('0215','02','Pallasca',1),('0216','02','Pomabamba',1),('0217','02','Recuay',1),('0218','02','Santa',1),('0219','02','Sihuas',1),('0220','02','Yungay',1),('0301','03','Abancay',1),('0302','03','Andahuaylas',1),('0303','03','Antabamba',1),('0304','03','Aymaraes',1),('0305','03','Cotabambas',1),('0306','03','Chincheros',1),('0307','03','Grau',1),('0401','04','Arequipa',1),('0402','04','Camaná',1),('0403','04','Caravelí',1),('0404','04','Castilla',1),('0405','04','Caylloma',1),('0406','04','Condesuyos',1),('0407','04','Islay',1),('0408','04','La Uniòn',1),('0501','05','Huamanga',1),('0502','05','Cangallo',1),('0503','05','Huanca Sancos',1),('0504','05','Huanta',1),('0505','05','La Mar',1),('0506','05','Lucanas',1),('0507','05','Parinacochas',1),('0508','05','Pàucar del Sara Sara',1),('0509','05','Sucre',1),('0510','05','Víctor Fajardo',1),('0511','05','Vilcas Huamán',1),('0601','06','Cajamarca',1),('0602','06','Cajabamba',1),('0603','06','Celendín',1),('0604','06','Chota',1),('0605','06','Contumazá',1),('0606','06','Cutervo',1),('0607','06','Hualgayoc',1),('0608','06','Jaén',1),('0609','06','San Ignacio',1),('0610','06','San Marcos',1),('0611','06','San Miguel',1),('0612','06','San Pablo',1),('0613','06','Santa Cruz',1),('0701','07','Prov. Const. del Callao',1),('0801','08','Cusco',1),('0802','08','Acomayo',1),('0803','08','Anta',1),('0804','08','Calca',1),('0805','08','Canas',1),('0806','08','Canchis',1),('0807','08','Chumbivilcas',1),('0808','08','Espinar',1),('0809','08','La Convención',1),('0810','08','Paruro',1),('0811','08','Paucartambo',1),('0812','08','Quispicanchi',1),('0813','08','Urubamba',1),('0901','09','Huancavelica',1),('0902','09','Acobamba',1),('0903','09','Angaraes',1),('0904','09','Castrovirreyna',1),('0905','09','Churcampa',1),('0906','09','Huaytará',1),('0907','09','Tayacaja',1),('1001','10','Huánuco',1),('1002','10','Ambo',1),('1003','10','Dos de Mayo',1),('1004','10','Huacaybamba',1),('1005','10','Huamalíes',1),('1006','10','Leoncio Prado',1),('1007','10','Marañón',1),('1008','10','Pachitea',1),('1009','10','Puerto Inca',1),('1010','10','Lauricocha',1),('1011','10','Yarowilca',1),('1101','11','Ica',1),('1102','11','Chincha',1),('1103','11','Nasca',1),('1104','11','Palpa',1),('1105','11','Pisco',1),('1201','12','Huancayo',1),('1202','12','Concepción',1),('1203','12','Chanchamayo',1),('1204','12','Jauja',1),('1205','12','Junín',1),('1206','12','Satipo',1),('1207','12','Tarma',1),('1208','12','Yauli',1),('1209','12','Chupaca',1),('1301','13','Trujillo',1),('1302','13','Ascope',1),('1303','13','Bolívar',1),('1304','13','Chepén',1),('1305','13','Julcán',1),('1306','13','Otuzco',1),('1307','13','Pacasmayo',1),('1308','13','Pataz',1),('1309','13','Sánchez Carrión',1),('1310','13','Santiago de Chuco',1),('1311','13','Gran Chimú',1),('1312','13','Virú',1),('1401','14','Chiclayo',1),('1402','14','Ferreñafe',1),('1403','14','Lambayeque',1),('1501','15','Lima',1),('1502','15','Barranca',1),('1503','15','Cajatambo',1),('1504','15','Canta',1),('1505','15','Cañete',1),('1506','15','Huaral',1),('1507','15','Huarochirí',1),('1508','15','Huaura',1),('1509','15','Oyón',1),('1510','15','Yauyos',1),('1601','16','Maynas',1),('1602','16','Alto Amazonas',1),('1603','16','Loreto',1),('1604','16','Mariscal Ramón Castilla',1),('1605','16','Requena',1),('1606','16','Ucayali',1),('1607','16','Datem del Marañón',1),('1608','16','Putumayo',1),('1701','17','Tambopata',1),('1702','17','Manu',1),('1703','17','Tahuamanu',1),('1801','18','Mariscal Nieto',1),('1802','18','General Sánchez Cerro',1),('1803','18','Ilo',1),('1901','19','Pasco',1),('1902','19','Daniel Alcides Carrión',1),('1903','19','Oxapampa',1),('2001','20','Piura',1),('2002','20','Ayabaca',1),('2003','20','Huancabamba',1),('2004','20','Morropón',1),('2005','20','Paita',1),('2006','20','Sullana',1),('2007','20','Talara',1),('2008','20','Sechura',1),('2101','21','Puno',1),('2102','21','Azángaro',1),('2103','21','Carabaya',1),('2104','21','Chucuito',1),('2105','21','El Collao',1),('2106','21','Huancané',1),('2107','21','Lampa',1),('2108','21','Melgar',1),('2109','21','Moho',1),('2110','21','San Antonio de Putina',1),('2111','21','San Román',1),('2112','21','Sandia',1),('2113','21','Yunguyo',1),('2201','22','Moyobamba',1),('2202','22','Bellavista',1),('2203','22','El Dorado',1),('2204','22','Huallaga',1),('2205','22','Lamas',1),('2206','22','Mariscal Cáceres',1),('2207','22','Picota',1),('2208','22','Rioja',1),('2209','22','San Martín',1),('2210','22','Tocache',1),('2301','23','Tacna',1),('2302','23','Candarave',1),('2303','23','Jorge Basadre',1),('2304','23','Tarata',1),('2401','24','Tumbes',1),('2402','24','Contralmirante Villar',1),('2403','24','Zarumilla',1),('2501','25','Coronel Portillo',1),('2502','25','Atalaya',1),('2503','25','Padre Abad',1),('2504','25','Purús',1);
COMMIT;

-- Dumped table `provinces` with 196 row(s)
--

--
-- Table structure for table `purchases`
--

CREATE TABLE `purchases` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `external_id` char(36) NOT NULL,
  `xml_fingerprint_sha256` char(64) DEFAULT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `group_id` char(2) NOT NULL,
  `document_type_id` varchar(255) NOT NULL,
  `series` char(4) NOT NULL,
  `number` int(11) NOT NULL,
  `date_of_issue` date NOT NULL,
  `date_of_due` date DEFAULT NULL,
  `time_of_issue` time NOT NULL,
  `supplier_id` int(10) unsigned NOT NULL,
  `supplier` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `purchase_order_id` int(10) unsigned DEFAULT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `payment_condition_id` varchar(255) DEFAULT NULL,
  `observation` text DEFAULT NULL,
  `exchange_rate_sale` decimal(13,3) NOT NULL,
  `total_prepayment` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exportation` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxed` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_unaffected` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exonerated` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_igv` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_plastic_bag_taxes` decimal(6,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_value` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `total_canceled` tinyint(1) NOT NULL DEFAULT 0,
  `customer_id` int(10) unsigned DEFAULT NULL,
  `perception_date` date DEFAULT NULL,
  `perception_number` int(11) DEFAULT NULL,
  `total_perception` decimal(12,2) DEFAULT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `prepayments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `guides` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `related` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `perception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `detraction` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `purchases_xml_fingerprint_unique` (`xml_fingerprint_sha256`),
  KEY `purchases_user_id_foreign` (`user_id`),
  KEY `purchases_establishment_id_foreign` (`establishment_id`),
  KEY `purchases_supplier_id_foreign` (`supplier_id`),
  KEY `purchases_soap_type_id_foreign` (`soap_type_id`),
  KEY `purchases_state_type_id_foreign` (`state_type_id`),
  KEY `purchases_group_id_foreign` (`group_id`),
  KEY `purchases_document_type_id_foreign` (`document_type_id`),
  KEY `purchases_currency_type_id_foreign` (`currency_type_id`),
  KEY `purchases_purchase_order_id_foreign` (`purchase_order_id`),
  KEY `purchases_customer_id_foreign` (`customer_id`),
  KEY `purchases_payment_condition_id_foreign` (`payment_condition_id`),
  KEY `purchases_supplier_document_series_number_idx` (`supplier_id`,`document_type_id`,`series`,`number`),
  CONSTRAINT `purchases_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `purchases_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `purchases_document_type_id_foreign` FOREIGN KEY (`document_type_id`) REFERENCES `cat_document_types` (`id`),
  CONSTRAINT `purchases_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `purchases_group_id_foreign` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`),
  CONSTRAINT `purchases_payment_condition_id_foreign` FOREIGN KEY (`payment_condition_id`) REFERENCES `general_payment_conditions` (`id`),
  CONSTRAINT `purchases_purchase_order_id_foreign` FOREIGN KEY (`purchase_order_id`) REFERENCES `purchase_orders` (`id`),
  CONSTRAINT `purchases_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `purchases_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `purchases_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `purchases_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchases`
--

SET autocommit=0;
COMMIT;

-- Dumped table `purchases` with 0 row(s)
--

--
-- Table structure for table `purchase_fee`
--

CREATE TABLE `purchase_fee` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `purchase_id` int(10) unsigned NOT NULL,
  `date` date NOT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `amount` decimal(12,2) NOT NULL,
  `payment_method_type_id` char(2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_fee_purchase_id_foreign` (`purchase_id`),
  KEY `purchase_fee_currency_type_id_foreign` (`currency_type_id`),
  KEY `purchase_fee_payment_method_type_id_foreign` (`payment_method_type_id`),
  CONSTRAINT `purchase_fee_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `purchase_fee_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `purchase_fee_purchase_id_foreign` FOREIGN KEY (`purchase_id`) REFERENCES `purchases` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_fee`
--

SET autocommit=0;
COMMIT;

-- Dumped table `purchase_fee` with 0 row(s)
--

--
-- Table structure for table `purchase_items`
--

CREATE TABLE `purchase_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `purchase_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `item_lot_group_id` int(10) unsigned DEFAULT NULL,
  `lot_code` varchar(255) DEFAULT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `unit_value` decimal(16,6) NOT NULL,
  `date_of_due` date DEFAULT NULL,
  `affectation_igv_type_id` varchar(255) NOT NULL,
  `total_base_igv` decimal(12,4) NOT NULL,
  `percentage_igv` decimal(12,4) NOT NULL,
  `total_igv` decimal(12,4) NOT NULL,
  `system_isc_type_id` varchar(255) DEFAULT NULL,
  `total_base_isc` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `percentage_isc` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_isc` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_base_other_taxes` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `percentage_other_taxes` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_other_taxes` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_taxes` decimal(12,4) NOT NULL,
  `price_type_id` varchar(255) NOT NULL,
  `unit_price` decimal(16,6) NOT NULL,
  `total_value` decimal(12,4) NOT NULL,
  `total_charge` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_discount` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total` decimal(12,4) NOT NULL,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `warehouse_id` int(10) unsigned DEFAULT NULL,
  `name_product_pdf` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_items_purchase_id_foreign` (`purchase_id`),
  KEY `purchase_items_item_id_foreign` (`item_id`),
  KEY `purchase_items_affectation_igv_type_id_foreign` (`affectation_igv_type_id`),
  KEY `purchase_items_system_isc_type_id_foreign` (`system_isc_type_id`),
  KEY `purchase_items_price_type_id_foreign` (`price_type_id`),
  KEY `purchase_items_warehouse_id_foreign` (`warehouse_id`),
  KEY `purchase_items_item_lot_group_id_index` (`item_lot_group_id`),
  CONSTRAINT `purchase_items_affectation_igv_type_id_foreign` FOREIGN KEY (`affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `purchase_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `purchase_items_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `cat_price_types` (`id`),
  CONSTRAINT `purchase_items_purchase_id_foreign` FOREIGN KEY (`purchase_id`) REFERENCES `purchases` (`id`) ON DELETE CASCADE,
  CONSTRAINT `purchase_items_system_isc_type_id_foreign` FOREIGN KEY (`system_isc_type_id`) REFERENCES `cat_system_isc_types` (`id`),
  CONSTRAINT `purchase_items_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_items`
--

SET autocommit=0;
COMMIT;

-- Dumped table `purchase_items` with 0 row(s)
--

--
-- Table structure for table `purchase_orders`
--

CREATE TABLE `purchase_orders` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `external_id` char(36) NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `prefix` varchar(255) NOT NULL DEFAULT 'OC',
  `date_of_issue` date NOT NULL,
  `date_of_due` date DEFAULT NULL,
  `time_of_issue` time NOT NULL,
  `supplier_id` int(10) unsigned NOT NULL,
  `supplier` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `exchange_rate_sale` decimal(13,3) NOT NULL,
  `total_prepayment` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_charge` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_discount` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_exportation` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxed` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_unaffected` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_exonerated` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_igv` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_base_isc` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_isc` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_base_other_taxes` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_other_taxes` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_taxes` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_value` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total` decimal(12,4) NOT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `upload_filename` varchar(255) DEFAULT NULL,
  `purchase_quotation_id` int(10) unsigned DEFAULT NULL,
  `sale_opportunity_id` int(10) unsigned DEFAULT NULL,
  `payment_method_type_id` char(2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_orders_purchase_quotation_id_foreign` (`purchase_quotation_id`),
  KEY `purchase_orders_user_id_foreign` (`user_id`),
  KEY `purchase_orders_establishment_id_foreign` (`establishment_id`),
  KEY `purchase_orders_supplier_id_foreign` (`supplier_id`),
  KEY `purchase_orders_soap_type_id_foreign` (`soap_type_id`),
  KEY `purchase_orders_state_type_id_foreign` (`state_type_id`),
  KEY `purchase_orders_currency_type_id_foreign` (`currency_type_id`),
  KEY `purchase_orders_payment_method_type_id_foreign` (`payment_method_type_id`),
  KEY `purchase_orders_sale_opportunity_id_foreign` (`sale_opportunity_id`),
  CONSTRAINT `purchase_orders_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `purchase_orders_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `purchase_orders_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `purchase_orders_purchase_quotation_id_foreign` FOREIGN KEY (`purchase_quotation_id`) REFERENCES `purchase_quotations` (`id`),
  CONSTRAINT `purchase_orders_sale_opportunity_id_foreign` FOREIGN KEY (`sale_opportunity_id`) REFERENCES `sale_opportunities` (`id`),
  CONSTRAINT `purchase_orders_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `purchase_orders_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `purchase_orders_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `purchase_orders_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_orders`
--

SET autocommit=0;
COMMIT;

-- Dumped table `purchase_orders` with 0 row(s)
--

--
-- Table structure for table `purchase_order_items`
--

CREATE TABLE `purchase_order_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `purchase_order_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` int(11) NOT NULL,
  `unit_value` decimal(16,6) NOT NULL,
  `affectation_igv_type_id` varchar(255) NOT NULL,
  `total_base_igv` decimal(12,2) NOT NULL,
  `percentage_igv` decimal(12,2) NOT NULL,
  `total_igv` decimal(12,2) NOT NULL,
  `system_isc_type_id` varchar(255) DEFAULT NULL,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL,
  `price_type_id` varchar(255) NOT NULL,
  `unit_price` decimal(16,6) NOT NULL,
  `total_value` decimal(12,2) NOT NULL,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_order_items_purchase_order_id_foreign` (`purchase_order_id`),
  KEY `purchase_order_items_item_id_foreign` (`item_id`),
  KEY `purchase_order_items_affectation_igv_type_id_foreign` (`affectation_igv_type_id`),
  KEY `purchase_order_items_system_isc_type_id_foreign` (`system_isc_type_id`),
  KEY `purchase_order_items_price_type_id_foreign` (`price_type_id`),
  CONSTRAINT `purchase_order_items_affectation_igv_type_id_foreign` FOREIGN KEY (`affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `purchase_order_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `purchase_order_items_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `cat_price_types` (`id`),
  CONSTRAINT `purchase_order_items_purchase_order_id_foreign` FOREIGN KEY (`purchase_order_id`) REFERENCES `purchase_orders` (`id`) ON DELETE CASCADE,
  CONSTRAINT `purchase_order_items_system_isc_type_id_foreign` FOREIGN KEY (`system_isc_type_id`) REFERENCES `cat_system_isc_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_order_items`
--

SET autocommit=0;
COMMIT;

-- Dumped table `purchase_order_items` with 0 row(s)
--

--
-- Table structure for table `purchase_payments`
--

CREATE TABLE `purchase_payments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `purchase_id` int(10) unsigned NOT NULL,
  `date_of_payment` date NOT NULL,
  `payment_method_type_id` char(2) NOT NULL,
  `has_card` tinyint(1) NOT NULL DEFAULT 0,
  `card_brand_id` char(2) DEFAULT NULL,
  `reference` varchar(255) DEFAULT NULL,
  `payment` decimal(12,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_payments_purchase_id_foreign` (`purchase_id`),
  KEY `purchase_payments_card_brand_id_foreign` (`card_brand_id`),
  KEY `purchase_payments_payment_method_type_id_foreign` (`payment_method_type_id`),
  KEY `purchase_payments_date_of_payment_index` (`date_of_payment`),
  CONSTRAINT `purchase_payments_card_brand_id_foreign` FOREIGN KEY (`card_brand_id`) REFERENCES `card_brands` (`id`),
  CONSTRAINT `purchase_payments_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `purchase_payments_purchase_id_foreign` FOREIGN KEY (`purchase_id`) REFERENCES `purchases` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_payments`
--

SET autocommit=0;
COMMIT;

-- Dumped table `purchase_payments` with 0 row(s)
--

--
-- Table structure for table `purchase_quotations`
--

CREATE TABLE `purchase_quotations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `external_id` char(36) NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `establishment` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `prefix` varchar(255) NOT NULL,
  `date_of_issue` date NOT NULL,
  `time_of_issue` time NOT NULL,
  `suppliers` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_quotations_user_id_foreign` (`user_id`),
  KEY `purchase_quotations_establishment_id_foreign` (`establishment_id`),
  KEY `purchase_quotations_soap_type_id_foreign` (`soap_type_id`),
  KEY `purchase_quotations_state_type_id_foreign` (`state_type_id`),
  CONSTRAINT `purchase_quotations_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `purchase_quotations_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `purchase_quotations_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `purchase_quotations_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_quotations`
--

SET autocommit=0;
COMMIT;

-- Dumped table `purchase_quotations` with 0 row(s)
--

--
-- Table structure for table `purchase_quotation_items`
--

CREATE TABLE `purchase_quotation_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `purchase_quotation_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_quotation_items_purchase_quotation_id_foreign` (`purchase_quotation_id`),
  KEY `purchase_quotation_items_item_id_foreign` (`item_id`),
  CONSTRAINT `purchase_quotation_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `purchase_quotation_items_purchase_quotation_id_foreign` FOREIGN KEY (`purchase_quotation_id`) REFERENCES `purchase_quotations` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_quotation_items`
--

SET autocommit=0;
COMMIT;

-- Dumped table `purchase_quotation_items` with 0 row(s)
--

--
-- Table structure for table `purchase_settlements`
--

SET autocommit=0;
COMMIT;

-- Dumped table `purchase_settlements` with 0 row(s)
--

--
-- Table structure for table `purchase_settlement_items`
--

CREATE TABLE `purchase_settlement_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `purchase_settlement_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` decimal(12,2) NOT NULL,
  `unit_value` decimal(12,2) NOT NULL,
  `affectation_igv_type_id` varchar(255) NOT NULL,
  `total_base_igv` decimal(12,2) NOT NULL,
  `percentage_igv` decimal(12,2) NOT NULL,
  `total_igv` decimal(12,2) NOT NULL,
  `total_taxes` decimal(12,2) NOT NULL,
  `price_type_id` varchar(255) NOT NULL,
  `unit_price` decimal(12,2) NOT NULL,
  `total_value` decimal(12,2) NOT NULL,
  `total` decimal(12,2) NOT NULL,
  `income_tax_affectation_igv_type_id` varchar(255) DEFAULT NULL,
  `income_retention_percentage` decimal(12,2) NOT NULL DEFAULT 0.00,
  `income_retention_amount` decimal(12,2) NOT NULL DEFAULT 0.00,
  PRIMARY KEY (`id`),
  KEY `purchase_settlement_items_purchase_settlement_id_foreign` (`purchase_settlement_id`),
  KEY `purchase_settlement_items_item_id_foreign` (`item_id`),
  KEY `p_s_i_income_tax_affectation_igv_type_id_fk` (`income_tax_affectation_igv_type_id`),
  KEY `purchase_settlement_items_affectation_igv_type_id_foreign` (`affectation_igv_type_id`),
  KEY `purchase_settlement_items_price_type_id_foreign` (`price_type_id`),
  CONSTRAINT `p_s_i_income_tax_affectation_igv_type_id_fk` FOREIGN KEY (`income_tax_affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `purchase_settlement_items_affectation_igv_type_id_foreign` FOREIGN KEY (`affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `purchase_settlement_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `purchase_settlement_items_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `cat_price_types` (`id`),
  CONSTRAINT `purchase_settlement_items_purchase_settlement_id_foreign` FOREIGN KEY (`purchase_settlement_id`) REFERENCES `purchase_settlements` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_settlement_items`
--

SET autocommit=0;
COMMIT;

-- Dumped table `purchase_settlement_items` with 0 row(s)
--

--
-- Table structure for table `purchase_settlement_payments`
--

CREATE TABLE `purchase_settlement_payments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `purchase_settlement_id` int(10) unsigned NOT NULL,
  `date_of_payment` date NOT NULL,
  `payment_method_type_id` char(2) NOT NULL,
  `reference` varchar(255) DEFAULT NULL,
  `change` decimal(12,2) NOT NULL DEFAULT 0.00,
  `payment` decimal(12,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_settlement_payments_purchase_settlement_id_foreign` (`purchase_settlement_id`),
  KEY `purchase_settlement_payments_payment_method_type_id_foreign` (`payment_method_type_id`),
  CONSTRAINT `purchase_settlement_payments_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `purchase_settlement_payments_purchase_settlement_id_foreign` FOREIGN KEY (`purchase_settlement_id`) REFERENCES `purchase_settlements` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_settlement_payments`
--

SET autocommit=0;
COMMIT;

-- Dumped table `purchase_settlement_payments` with 0 row(s)
--

--
-- Table structure for table `purchase_xml_imports`
--

CREATE TABLE `purchase_xml_imports` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `import_id` char(36) NOT NULL,
  `created_by` int(10) unsigned DEFAULT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'previewed',
  `supplier_id` int(10) unsigned DEFAULT NULL,
  `supplier_ruc` varchar(15) DEFAULT NULL,
  `document_type_id` varchar(2) DEFAULT NULL,
  `series` varchar(20) DEFAULT NULL,
  `number` varchar(20) DEFAULT NULL,
  `xml_fingerprint_sha256` char(64) NOT NULL,
  `payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`payload`)),
  `issues` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`issues`)),
  `resolutions` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`resolutions`)),
  `confirmed_purchase_id` int(10) unsigned DEFAULT NULL,
  `confirmed_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `purchase_xml_imports_import_id_unique` (`import_id`),
  KEY `purchase_xml_imports_created_by_foreign` (`created_by`),
  KEY `purchase_xml_imports_supplier_id_foreign` (`supplier_id`),
  KEY `purchase_xml_imports_confirmed_purchase_id_foreign` (`confirmed_purchase_id`),
  KEY `purchase_xml_imports_status_index` (`status`),
  KEY `purchase_xml_imports_fingerprint_idx` (`xml_fingerprint_sha256`),
  CONSTRAINT `purchase_xml_imports_confirmed_purchase_id_foreign` FOREIGN KEY (`confirmed_purchase_id`) REFERENCES `purchases` (`id`),
  CONSTRAINT `purchase_xml_imports_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  CONSTRAINT `purchase_xml_imports_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_xml_imports`
--

SET autocommit=0;
COMMIT;

-- Dumped table `purchase_xml_imports` with 0 row(s)
--

--
-- Table structure for table `quotations`
--

CREATE TABLE `quotations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `seller_id` int(10) unsigned DEFAULT NULL,
  `external_id` char(36) NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `establishment` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `prefix` char(3) NOT NULL,
  `date_of_issue` date NOT NULL,
  `time_of_issue` time NOT NULL,
  `date_of_due` varchar(255) DEFAULT NULL,
  `delivery_date` varchar(255) DEFAULT NULL,
  `customer_id` int(10) unsigned NOT NULL,
  `customer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `shipping_address` text DEFAULT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `payment_method_type_id` char(2) DEFAULT NULL,
  `exchange_rate_sale` decimal(13,3) NOT NULL,
  `total_prepayment` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exportation` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxed` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_unaffected` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exonerated` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_igv` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_igv_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_value` decimal(12,2) NOT NULL DEFAULT 0.00,
  `subtotal` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `prepayments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `guides` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `related` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `perception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `detraction` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `terms_condition` text DEFAULT NULL,
  `referential_information` varchar(100) DEFAULT NULL,
  `account_number` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `contact` varchar(255) DEFAULT NULL,
  `changed` tinyint(1) NOT NULL DEFAULT 0,
  `sale_opportunity_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `description` varchar(1000) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `quotations_user_id_foreign` (`user_id`),
  KEY `quotations_establishment_id_foreign` (`establishment_id`),
  KEY `quotations_customer_id_foreign` (`customer_id`),
  KEY `quotations_soap_type_id_foreign` (`soap_type_id`),
  KEY `quotations_state_type_id_foreign` (`state_type_id`),
  KEY `quotations_currency_type_id_foreign` (`currency_type_id`),
  KEY `quotations_payment_method_type_id_foreign` (`payment_method_type_id`),
  KEY `quotations_sale_opportunity_id_foreign` (`sale_opportunity_id`),
  CONSTRAINT `quotations_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `quotations_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `quotations_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `quotations_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `quotations_sale_opportunity_id_foreign` FOREIGN KEY (`sale_opportunity_id`) REFERENCES `sale_opportunities` (`id`),
  CONSTRAINT `quotations_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `quotations_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `quotations_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `quotations`
--

SET autocommit=0;
COMMIT;

-- Dumped table `quotations` with 0 row(s)
--

--
-- Table structure for table `quotation_items`
--

CREATE TABLE `quotation_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `quotation_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `unit_value` decimal(16,6) NOT NULL,
  `affectation_igv_type_id` varchar(255) NOT NULL,
  `total_base_igv` decimal(12,2) NOT NULL,
  `percentage_igv` decimal(12,2) NOT NULL,
  `total_igv` decimal(12,2) NOT NULL,
  `system_isc_type_id` varchar(255) DEFAULT NULL,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL,
  `price_type_id` varchar(255) NOT NULL,
  `unit_price` decimal(16,6) NOT NULL,
  `total_value` decimal(12,2) NOT NULL,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `additional_information` longtext DEFAULT NULL COMMENT 'Informacion adicional',
  `warehouse_id` int(10) unsigned DEFAULT 0 COMMENT 'Id de warehouse',
  `name_product_pdf` longtext DEFAULT NULL COMMENT 'Nombre de producto en el pdf',
  PRIMARY KEY (`id`),
  KEY `quotation_items_quotation_id_foreign` (`quotation_id`),
  KEY `quotation_items_item_id_foreign` (`item_id`),
  KEY `quotation_items_affectation_igv_type_id_foreign` (`affectation_igv_type_id`),
  KEY `quotation_items_system_isc_type_id_foreign` (`system_isc_type_id`),
  KEY `quotation_items_price_type_id_foreign` (`price_type_id`),
  CONSTRAINT `quotation_items_affectation_igv_type_id_foreign` FOREIGN KEY (`affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `quotation_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `quotation_items_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `cat_price_types` (`id`),
  CONSTRAINT `quotation_items_quotation_id_foreign` FOREIGN KEY (`quotation_id`) REFERENCES `quotations` (`id`) ON DELETE CASCADE,
  CONSTRAINT `quotation_items_system_isc_type_id_foreign` FOREIGN KEY (`system_isc_type_id`) REFERENCES `cat_system_isc_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `quotation_items`
--

SET autocommit=0;
COMMIT;

-- Dumped table `quotation_items` with 0 row(s)
--

--
-- Table structure for table `quotation_payments`
--

CREATE TABLE `quotation_payments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `quotation_id` int(10) unsigned NOT NULL,
  `date_of_payment` date NOT NULL,
  `payment_method_type_id` char(2) NOT NULL,
  `has_card` tinyint(1) NOT NULL DEFAULT 0,
  `card_brand_id` char(2) DEFAULT NULL,
  `reference` varchar(255) DEFAULT NULL,
  `change` decimal(12,2) DEFAULT NULL,
  `payment` decimal(12,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `quotation_payments_quotation_id_foreign` (`quotation_id`),
  KEY `quotation_payments_card_brand_id_foreign` (`card_brand_id`),
  KEY `quotation_payments_payment_method_type_id_foreign` (`payment_method_type_id`),
  CONSTRAINT `quotation_payments_card_brand_id_foreign` FOREIGN KEY (`card_brand_id`) REFERENCES `card_brands` (`id`),
  CONSTRAINT `quotation_payments_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `quotation_payments_quotation_id_foreign` FOREIGN KEY (`quotation_id`) REFERENCES `quotations` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `quotation_payments`
--

SET autocommit=0;
COMMIT;

-- Dumped table `quotation_payments` with 0 row(s)
--

--
-- Table structure for table `rel_user_to_documentary_offices`
--

CREATE TABLE `rel_user_to_documentary_offices` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `active` tinyint(3) unsigned NOT NULL DEFAULT 0,
  `user_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'usuario asociado',
  `documentary_office_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'etapa asociada',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rel_user_to_documentary_offices`
--

SET autocommit=0;
COMMIT;

-- Dumped table `rel_user_to_documentary_offices` with 0 row(s)
--

--
-- Table structure for table `report_configurations`
--

CREATE TABLE `report_configurations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `route_name` varchar(255) NOT NULL,
  `route_path` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `convert_pen` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `report_configurations_route_name_unique` (`route_name`),
  UNIQUE KEY `report_configurations_route_path_unique` (`route_path`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `report_configurations`
--

SET autocommit=0;
INSERT INTO `report_configurations` VALUES (1,'tenant.reports.general_items.index','reports/general-items','Ventas - Reporte general de productos',0,'2026-02-24 15:28:41','2026-02-24 15:28:41'),(2,'tenant.reports.purchases.general_items.index','reports/purchases/general_items','Compras - Reporte general de productos',0,'2026-02-24 15:28:41','2026-02-24 15:28:41'),(3,'tenant.reports.purchases.index','reports/purchases','Compras - Compras totales',0,'2026-02-24 15:28:41','2026-02-24 15:28:41');
COMMIT;

-- Dumped table `report_configurations` with 3 row(s)
--

--
-- Table structure for table `restaurant_configurations`
--

CREATE TABLE `restaurant_configurations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `menu_pos` tinyint(1) NOT NULL,
  `menu_order` tinyint(1) NOT NULL,
  `menu_tables` tinyint(1) NOT NULL,
  `first_menu` varchar(255) NOT NULL,
  `tables_quantity` int(11) NOT NULL DEFAULT 15,
  `menu_bar` tinyint(1) NOT NULL DEFAULT 1,
  `menu_kitchen` tinyint(1) NOT NULL DEFAULT 1,
  `items_maintenance` tinyint(1) NOT NULL DEFAULT 0,
  `enabled_environment_1` tinyint(1) NOT NULL DEFAULT 1,
  `enabled_environment_2` tinyint(1) NOT NULL DEFAULT 0,
  `tables_quantity_environment_2` int(11) NOT NULL DEFAULT 5,
  `enabled_environment_3` tinyint(1) NOT NULL DEFAULT 0,
  `tables_quantity_environment_3` int(11) NOT NULL DEFAULT 5,
  `enabled_environment_4` tinyint(1) NOT NULL DEFAULT 0,
  `tables_quantity_environment_4` int(11) NOT NULL DEFAULT 5,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `restaurant_configurations`
--

SET autocommit=0;
INSERT INTO `restaurant_configurations` VALUES (1,1,1,1,'POS',15,1,1,0,1,0,5,0,5,0,5);
COMMIT;

-- Dumped table `restaurant_configurations` with 1 row(s)
--

--
-- Table structure for table `restaurant_notes`
--

CREATE TABLE `restaurant_notes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `description` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `restaurant_notes`
--

SET autocommit=0;
COMMIT;

-- Dumped table `restaurant_notes` with 0 row(s)
--

--
-- Table structure for table `restaurant_roles`
--

CREATE TABLE `restaurant_roles` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `code` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `restaurant_roles`
--

SET autocommit=0;
INSERT INTO `restaurant_roles` VALUES (1,'MOZO','Mozo','Usuario que genera pedidos en mesas',NULL,NULL),(2,'CAJA','Caja','Usuario que genera pago de pedidos',NULL,NULL),(3,'ADM','Administrador','Usuario con permisos totales',NULL,NULL),(6,'KITBAR','Cocina/Bar','Usuario con acceso a cocina y bar',NULL,NULL);
COMMIT;

-- Dumped table `restaurant_roles` with 4 row(s)
--

--
-- Table structure for table `restaurant_tables`
--

CREATE TABLE `restaurant_tables` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `status` varchar(255) NOT NULL,
  `products` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `total` decimal(12,2) NOT NULL,
  `personas` int(11) NOT NULL,
  `cliente` varchar(255) DEFAULT NULL,
  `comentarios` varchar(255) DEFAULT NULL,
  `label` varchar(255) NOT NULL,
  `shape` varchar(255) NOT NULL,
  `environment` varchar(255) NOT NULL,
  `waiter` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `restaurant_tables`
--

SET autocommit=0;
COMMIT;

-- Dumped table `restaurant_tables` with 0 row(s)
--

--
-- Table structure for table `restaurant_table_envs`
--

CREATE TABLE `restaurant_table_envs` (
  `id` int(10) unsigned NOT NULL,
  `name` varchar(255) NOT NULL,
  `active` tinyint(1) NOT NULL,
  `tables_quantity` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `restaurant_table_envs`
--

SET autocommit=0;
INSERT INTO `restaurant_table_envs` VALUES (1,'Ambiente 1',1,25),(2,'Ambiente 2',1,25),(3,'Ambiente 3',1,25),(4,'Ambiente 4',1,25);
COMMIT;

-- Dumped table `restaurant_table_envs` with 4 row(s)
--

--
-- Table structure for table `retentions`
--

SET autocommit=0;
COMMIT;

-- Dumped table `retentions` with 0 row(s)
--

--
-- Table structure for table `retention_documents`
--

CREATE TABLE `retention_documents` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `retention_id` int(10) unsigned NOT NULL,
  `document_type_id` varchar(255) NOT NULL,
  `series` varchar(255) NOT NULL,
  `number` varchar(255) NOT NULL,
  `date_of_issue` date NOT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `total_document` decimal(10,2) NOT NULL,
  `payments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `exchange_rate` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `date_of_retention` date NOT NULL,
  `total_retention` decimal(10,2) NOT NULL,
  `total_to_pay` decimal(10,2) NOT NULL,
  `total_payment` decimal(10,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `retention_documents_retention_id_foreign` (`retention_id`),
  KEY `retention_documents_document_type_id_foreign` (`document_type_id`),
  KEY `retention_documents_currency_type_id_foreign` (`currency_type_id`),
  CONSTRAINT `retention_documents_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `retention_documents_document_type_id_foreign` FOREIGN KEY (`document_type_id`) REFERENCES `cat_document_types` (`id`),
  CONSTRAINT `retention_documents_retention_id_foreign` FOREIGN KEY (`retention_id`) REFERENCES `retentions` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `retention_documents`
--

SET autocommit=0;
COMMIT;

-- Dumped table `retention_documents` with 0 row(s)
--

--
-- Table structure for table `sale_notes`
--

CREATE TABLE `sale_notes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `external_id` char(36) NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `establishment` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `prefix` char(2) NOT NULL,
  `series` varchar(255) DEFAULT NULL,
  `number` int(11) DEFAULT NULL,
  `date_of_issue` date NOT NULL,
  `time_of_issue` time NOT NULL,
  `customer_id` int(10) unsigned NOT NULL,
  `customer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `payment_condition_id` char(2) NOT NULL DEFAULT '01',
  `payment_method_type_id` char(2) DEFAULT NULL,
  `exchange_rate_sale` decimal(13,3) NOT NULL,
  `point_system` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'indica si se uso en sistema por puntos',
  `point_system_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'datos de sistema por puntos',
  `created_from_pos` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'indica si se registro desde pos',
  `apply_concurrency` tinyint(1) NOT NULL DEFAULT 0,
  `enabled_concurrency` tinyint(1) NOT NULL DEFAULT 0,
  `automatic_date_of_issue` date DEFAULT NULL,
  `quantity_period` int(11) DEFAULT NULL,
  `type_period` varchar(255) DEFAULT NULL,
  `total_prepayment` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `coupon_id` int(10) unsigned DEFAULT NULL,
  `coupon_code` varchar(50) DEFAULT NULL,
  `total_exportation` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxed` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_unaffected` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exonerated` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_igv` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_igv_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_plastic_bag_taxes` decimal(6,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_value` decimal(12,2) NOT NULL DEFAULT 0.00,
  `subtotal` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `dispatch_ticket_pdf` tinyint(1) NOT NULL DEFAULT 0,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `prepayments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `guides` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `related` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `perception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `detraction` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `additional_information` text DEFAULT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `unique_filename` varchar(255) DEFAULT NULL,
  `quotation_id` int(10) unsigned DEFAULT NULL,
  `order_note_id` int(10) unsigned DEFAULT NULL,
  `technical_service_id` int(10) unsigned DEFAULT NULL,
  `order_id` int(10) unsigned DEFAULT NULL,
  `total_canceled` tinyint(1) NOT NULL DEFAULT 0,
  `changed` tinyint(1) NOT NULL DEFAULT 0,
  `paid` tinyint(1) NOT NULL DEFAULT 0,
  `license_plate` varchar(255) DEFAULT NULL,
  `plate_number` varchar(255) DEFAULT NULL,
  `reference_data` varchar(500) DEFAULT NULL,
  `agent_id` int(10) unsigned DEFAULT NULL,
  `observation` text DEFAULT NULL,
  `purchase_order` varchar(50) DEFAULT NULL,
  `document_id` int(10) unsigned DEFAULT NULL,
  `user_rel_suscription_plan_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con suscripciones',
  `due_date` date DEFAULT NULL COMMENT 'Fecha de vencimiento',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `total_points` double(8,2) NOT NULL DEFAULT 0.00,
  `seller_id` int(10) unsigned DEFAULT 0,
  `grade` text DEFAULT NULL COMMENT 'Grado designado - utilizado en matricula',
  `section` text DEFAULT NULL COMMENT 'Seccion designado - utilizado en matricula',
  `terms_condition` text DEFAULT NULL,
  `prescription_doctor_id` int(10) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `sale_notes_unique_filename_unique` (`unique_filename`),
  KEY `sale_notes_user_id_foreign` (`user_id`),
  KEY `sale_notes_establishment_id_foreign` (`establishment_id`),
  KEY `sale_notes_customer_id_foreign` (`customer_id`),
  KEY `sale_notes_soap_type_id_foreign` (`soap_type_id`),
  KEY `sale_notes_state_type_id_foreign` (`state_type_id`),
  KEY `sale_notes_currency_type_id_foreign` (`currency_type_id`),
  KEY `sale_notes_quotation_id_foreign` (`quotation_id`),
  KEY `sale_notes_apply_concurrency_index` (`apply_concurrency`),
  KEY `sale_notes_type_period_index` (`type_period`),
  KEY `sale_notes_quantity_period_index` (`quantity_period`),
  KEY `sale_notes_automatic_date_of_issue_index` (`automatic_date_of_issue`),
  KEY `sale_notes_enabled_concurrency_index` (`enabled_concurrency`),
  KEY `sale_notes_order_note_id_foreign` (`order_note_id`),
  KEY `sale_notes_payment_method_type_id_foreign` (`payment_method_type_id`),
  KEY `sale_notes_order_id_foreign` (`order_id`),
  KEY `sale_notes_technical_service_id_foreign` (`technical_service_id`),
  KEY `sale_notes_agent_id_foreign` (`agent_id`),
  KEY `sale_notes_changed_index` (`changed`),
  KEY `sale_notes_payment_condition_id_foreign` (`payment_condition_id`),
  CONSTRAINT `sale_notes_agent_id_foreign` FOREIGN KEY (`agent_id`) REFERENCES `agents` (`id`),
  CONSTRAINT `sale_notes_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `sale_notes_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `sale_notes_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `sale_notes_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`),
  CONSTRAINT `sale_notes_order_note_id_foreign` FOREIGN KEY (`order_note_id`) REFERENCES `order_notes` (`id`),
  CONSTRAINT `sale_notes_payment_condition_id_foreign` FOREIGN KEY (`payment_condition_id`) REFERENCES `payment_conditions` (`id`),
  CONSTRAINT `sale_notes_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `sale_notes_quotation_id_foreign` FOREIGN KEY (`quotation_id`) REFERENCES `quotations` (`id`),
  CONSTRAINT `sale_notes_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `sale_notes_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `sale_notes_technical_service_id_foreign` FOREIGN KEY (`technical_service_id`) REFERENCES `technical_services` (`id`),
  CONSTRAINT `sale_notes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sale_notes`
--

SET autocommit=0;
COMMIT;

-- Dumped table `sale_notes` with 0 row(s)
--

--
-- Table structure for table `sale_note_fee`
--

CREATE TABLE `sale_note_fee` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `sale_note_id` int(10) unsigned NOT NULL,
  `date` date NOT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `amount` decimal(12,2) NOT NULL,
  `payment_method_type_id` varchar(2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sale_note_fee_sale_note_id_foreign` (`sale_note_id`),
  KEY `sale_note_fee_currency_type_id_foreign` (`currency_type_id`),
  KEY `sale_note_fee_payment_method_type_id_foreign` (`payment_method_type_id`),
  CONSTRAINT `sale_note_fee_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `sale_note_fee_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `sale_note_fee_sale_note_id_foreign` FOREIGN KEY (`sale_note_id`) REFERENCES `sale_notes` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sale_note_fee`
--

SET autocommit=0;
COMMIT;

-- Dumped table `sale_note_fee` with 0 row(s)
--

--
-- Table structure for table `sale_note_items`
--

CREATE TABLE `sale_note_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `sale_note_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `unit_value` decimal(16,6) NOT NULL,
  `affectation_igv_type_id` varchar(255) NOT NULL,
  `total_base_igv` decimal(12,2) NOT NULL,
  `percentage_igv` decimal(12,2) NOT NULL,
  `total_igv` decimal(12,2) NOT NULL,
  `system_isc_type_id` varchar(255) DEFAULT NULL,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_plastic_bag_taxes` decimal(6,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL,
  `price_type_id` varchar(255) NOT NULL,
  `unit_price` decimal(16,6) NOT NULL,
  `total_value` decimal(12,2) NOT NULL,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `additional_information` text DEFAULT NULL,
  `inventory_kardex_id` int(10) unsigned DEFAULT NULL,
  `warehouse_id` int(10) unsigned DEFAULT NULL,
  `name_product_pdf` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sale_note_items_sale_note_id_foreign` (`sale_note_id`),
  KEY `sale_note_items_item_id_foreign` (`item_id`),
  KEY `sale_note_items_affectation_igv_type_id_foreign` (`affectation_igv_type_id`),
  KEY `sale_note_items_system_isc_type_id_foreign` (`system_isc_type_id`),
  KEY `sale_note_items_price_type_id_foreign` (`price_type_id`),
  KEY `sale_note_items_inventory_kardex_id_foreign` (`inventory_kardex_id`),
  KEY `sale_note_items_warehouse_id_foreign` (`warehouse_id`),
  CONSTRAINT `sale_note_items_affectation_igv_type_id_foreign` FOREIGN KEY (`affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `sale_note_items_inventory_kardex_id_foreign` FOREIGN KEY (`inventory_kardex_id`) REFERENCES `inventory_kardex` (`id`),
  CONSTRAINT `sale_note_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `sale_note_items_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `cat_price_types` (`id`),
  CONSTRAINT `sale_note_items_sale_note_id_foreign` FOREIGN KEY (`sale_note_id`) REFERENCES `sale_notes` (`id`) ON DELETE CASCADE,
  CONSTRAINT `sale_note_items_system_isc_type_id_foreign` FOREIGN KEY (`system_isc_type_id`) REFERENCES `cat_system_isc_types` (`id`),
  CONSTRAINT `sale_note_items_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sale_note_items`
--

SET autocommit=0;
COMMIT;

-- Dumped table `sale_note_items` with 0 row(s)
--

--
-- Table structure for table `sale_note_migration`
--

CREATE TABLE `sale_note_migration` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `sale_notes_id` int(10) unsigned NOT NULL,
  `user_id` int(10) unsigned NOT NULL,
  `success` tinyint(3) unsigned NOT NULL DEFAULT 0,
  `url` varchar(255) NOT NULL,
  `remote_id` int(10) unsigned NOT NULL DEFAULT 0,
  `number` varchar(255) DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sale_note_migration`
--

SET autocommit=0;
COMMIT;

-- Dumped table `sale_note_migration` with 0 row(s)
--

--
-- Table structure for table `sale_note_payments`
--

CREATE TABLE `sale_note_payments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `sale_note_id` int(10) unsigned NOT NULL,
  `date_of_payment` date NOT NULL,
  `payment_method_type_id` char(2) NOT NULL,
  `has_card` tinyint(1) NOT NULL DEFAULT 0,
  `card_brand_id` char(2) DEFAULT NULL,
  `reference` varchar(255) DEFAULT NULL,
  `payment_received` tinyint(1) DEFAULT NULL,
  `change` decimal(12,2) DEFAULT NULL,
  `payment` decimal(12,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `sale_note_payments_sale_note_id_foreign` (`sale_note_id`),
  KEY `sale_note_payments_card_brand_id_foreign` (`card_brand_id`),
  KEY `sale_note_payments_payment_method_type_id_foreign` (`payment_method_type_id`),
  KEY `sale_note_payments_date_of_payment_index` (`date_of_payment`),
  CONSTRAINT `sale_note_payments_card_brand_id_foreign` FOREIGN KEY (`card_brand_id`) REFERENCES `card_brands` (`id`),
  CONSTRAINT `sale_note_payments_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `sale_note_payments_sale_note_id_foreign` FOREIGN KEY (`sale_note_id`) REFERENCES `sale_notes` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sale_note_payments`
--

SET autocommit=0;
COMMIT;

-- Dumped table `sale_note_payments` with 0 row(s)
--

--
-- Table structure for table `sale_opportunities`
--

CREATE TABLE `sale_opportunities` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `external_id` char(36) NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `establishment` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `prefix` varchar(255) NOT NULL,
  `date_of_issue` date NOT NULL,
  `time_of_issue` time NOT NULL,
  `customer_id` int(10) unsigned NOT NULL,
  `customer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `exchange_rate_sale` decimal(13,3) NOT NULL,
  `total_exportation` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxed` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_unaffected` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exonerated` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_igv` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_value` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `detail` text DEFAULT NULL,
  `observation` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sale_opportunities_user_id_foreign` (`user_id`),
  KEY `sale_opportunities_establishment_id_foreign` (`establishment_id`),
  KEY `sale_opportunities_customer_id_foreign` (`customer_id`),
  KEY `sale_opportunities_soap_type_id_foreign` (`soap_type_id`),
  KEY `sale_opportunities_state_type_id_foreign` (`state_type_id`),
  KEY `sale_opportunities_currency_type_id_foreign` (`currency_type_id`),
  CONSTRAINT `sale_opportunities_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `sale_opportunities_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `sale_opportunities_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `sale_opportunities_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `sale_opportunities_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `sale_opportunities_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sale_opportunities`
--

SET autocommit=0;
COMMIT;

-- Dumped table `sale_opportunities` with 0 row(s)
--

--
-- Table structure for table `sale_opportunity_files`
--

CREATE TABLE `sale_opportunity_files` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `sale_opportunity_id` int(10) unsigned NOT NULL,
  `filename` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `sale_opportunity_files_sale_opportunity_id_foreign` (`sale_opportunity_id`),
  CONSTRAINT `sale_opportunity_files_sale_opportunity_id_foreign` FOREIGN KEY (`sale_opportunity_id`) REFERENCES `sale_opportunities` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sale_opportunity_files`
--

SET autocommit=0;
COMMIT;

-- Dumped table `sale_opportunity_files` with 0 row(s)
--

--
-- Table structure for table `sale_opportunity_items`
--

CREATE TABLE `sale_opportunity_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `sale_opportunity_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `unit_value` decimal(16,6) NOT NULL,
  `affectation_igv_type_id` varchar(255) NOT NULL,
  `total_base_igv` decimal(12,2) NOT NULL,
  `percentage_igv` decimal(12,2) NOT NULL,
  `total_igv` decimal(12,2) NOT NULL,
  `total_taxes` decimal(12,2) NOT NULL,
  `price_type_id` varchar(255) NOT NULL,
  `unit_price` decimal(16,6) NOT NULL,
  `total_value` decimal(12,2) NOT NULL,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sale_opportunity_items_sale_opportunity_id_foreign` (`sale_opportunity_id`),
  KEY `sale_opportunity_items_item_id_foreign` (`item_id`),
  KEY `sale_opportunity_items_affectation_igv_type_id_foreign` (`affectation_igv_type_id`),
  KEY `sale_opportunity_items_price_type_id_foreign` (`price_type_id`),
  CONSTRAINT `sale_opportunity_items_affectation_igv_type_id_foreign` FOREIGN KEY (`affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `sale_opportunity_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `sale_opportunity_items_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `cat_price_types` (`id`),
  CONSTRAINT `sale_opportunity_items_sale_opportunity_id_foreign` FOREIGN KEY (`sale_opportunity_id`) REFERENCES `sale_opportunities` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sale_opportunity_items`
--

SET autocommit=0;
COMMIT;

-- Dumped table `sale_opportunity_items` with 0 row(s)
--

--
-- Table structure for table `series`
--

CREATE TABLE `series` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `establishment_id` int(10) unsigned NOT NULL,
  `document_type_id` varchar(255) NOT NULL,
  `number` varchar(255) NOT NULL,
  `contingency` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `series_establishment_id_foreign` (`establishment_id`),
  KEY `series_document_type_id_foreign` (`document_type_id`),
  CONSTRAINT `series_document_type_id_foreign` FOREIGN KEY (`document_type_id`) REFERENCES `cat_document_types` (`id`),
  CONSTRAINT `series_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `series`
--

SET autocommit=0;
INSERT INTO `series` VALUES (1,1,'01','F001',0,NULL,NULL),(2,1,'03','B001',0,NULL,NULL),(3,1,'07','FC01',0,NULL,NULL),(4,1,'07','BC01',0,NULL,NULL),(5,1,'08','FD01',0,NULL,NULL),(6,1,'08','BD01',0,NULL,NULL),(7,1,'20','R001',0,NULL,NULL),(8,1,'09','T001',0,NULL,NULL),(9,1,'40','P001',0,NULL,NULL),(10,1,'80','NV01',0,NULL,NULL),(11,1,'04','L001',0,NULL,NULL),(12,1,'U2','NIA1',0,NULL,NULL),(13,1,'U3','NSA1',0,NULL,NULL),(14,1,'U4','NTA1',0,NULL,NULL);
COMMIT;

-- Dumped table `series` with 14 row(s)
--

--
-- Table structure for table `series_configurations`
--

CREATE TABLE `series_configurations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `series_id` int(10) unsigned NOT NULL,
  `document_type_id` varchar(255) NOT NULL,
  `series` varchar(255) NOT NULL,
  `number` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `series_configurations_series_id_foreign` (`series_id`),
  KEY `series_configurations_series_index` (`series`),
  KEY `series_configurations_number_index` (`number`),
  KEY `series_configurations_document_type_id_foreign` (`document_type_id`),
  CONSTRAINT `series_configurations_document_type_id_foreign` FOREIGN KEY (`document_type_id`) REFERENCES `cat_document_types` (`id`),
  CONSTRAINT `series_configurations_series_id_foreign` FOREIGN KEY (`series_id`) REFERENCES `series` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `series_configurations`
--

SET autocommit=0;
COMMIT;

-- Dumped table `series_configurations` with 0 row(s)
--

--
-- Table structure for table `skins`
--

CREATE TABLE `skins` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `filename` varchar(255) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `skins`
--

SET autocommit=0;
INSERT INTO `skins` VALUES (1,'Default','default.css',1,NULL,NULL),(2,'Light','light.css',1,NULL,NULL);
COMMIT;

-- Dumped table `skins` with 2 row(s)
--

--
-- Table structure for table `soap_types`
--

CREATE TABLE `soap_types` (
  `id` char(2) NOT NULL,
  `description` varchar(255) NOT NULL,
  KEY `soap_types_id_index` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `soap_types`
--

SET autocommit=0;
INSERT INTO `soap_types` VALUES ('01','Demo'),('02','Producción'),('03','Interno');
COMMIT;

-- Dumped table `soap_types` with 3 row(s)
--

--
-- Table structure for table `state_types`
--

CREATE TABLE `state_types` (
  `id` char(2) NOT NULL,
  `description` varchar(255) NOT NULL,
  KEY `state_types_id_index` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `state_types`
--

SET autocommit=0;
INSERT INTO `state_types` VALUES ('01','Registrado'),('03','Enviado'),('05','Aceptado'),('07','Observado'),('09','Rechazado'),('11','Anulado'),('13','Por anular');
COMMIT;

-- Dumped table `state_types` with 7 row(s)
--

--
-- Table structure for table `status_orders`
--

CREATE TABLE `status_orders` (
  `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
  `description` varchar(30) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `status_orders`
--

SET autocommit=0;
INSERT INTO `status_orders` VALUES (1,'Pago sin verificar','2026-02-24 15:28:35',NULL),(2,'Pago verificado','2026-02-24 15:28:35',NULL),(3,'Despachado','2026-02-24 15:28:35',NULL),(4,'Confirmado por el cliente','2026-02-24 15:28:35',NULL);
COMMIT;

-- Dumped table `status_orders` with 4 row(s)
--

--
-- Table structure for table `summaries`
--

CREATE TABLE `summaries` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `external_id` char(36) NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `summary_status_type_id` varchar(255) NOT NULL,
  `ubl_version` varchar(255) NOT NULL,
  `date_of_issue` date NOT NULL,
  `date_of_reference` date NOT NULL,
  `identifier` varchar(255) NOT NULL,
  `filename` varchar(255) NOT NULL,
  `unique_filename` varchar(255) DEFAULT NULL,
  `ticket` varchar(255) DEFAULT NULL,
  `has_ticket` tinyint(1) NOT NULL DEFAULT 0,
  `has_cdr` tinyint(1) NOT NULL DEFAULT 0,
  `soap_shipping_response` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `send_to_pse` tinyint(1) NOT NULL DEFAULT 0,
  `response_signature_pse` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `response_send_cdr_pse` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `unknown_error_status_response` tinyint(1) NOT NULL DEFAULT 0,
  `manually_regularized` tinyint(1) NOT NULL DEFAULT 0,
  `error_manually_regularized` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `summaries_unique_filename_unique` (`unique_filename`),
  KEY `summaries_user_id_foreign` (`user_id`),
  KEY `summaries_soap_type_id_foreign` (`soap_type_id`),
  KEY `summaries_state_type_id_foreign` (`state_type_id`),
  KEY `summaries_summary_status_type_id_foreign` (`summary_status_type_id`),
  KEY `summaries_date_of_issue_index` (`date_of_issue`),
  CONSTRAINT `summaries_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `summaries_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `summaries_summary_status_type_id_foreign` FOREIGN KEY (`summary_status_type_id`) REFERENCES `cat_summary_status_types` (`id`),
  CONSTRAINT `summaries_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `summaries`
--

SET autocommit=0;
COMMIT;

-- Dumped table `summaries` with 0 row(s)
--

--
-- Table structure for table `summary_documents`
--

CREATE TABLE `summary_documents` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `summary_id` int(10) unsigned NOT NULL,
  `document_id` int(10) unsigned NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `summary_documents_summary_id_foreign` (`summary_id`),
  KEY `summary_documents_document_id_foreign` (`document_id`),
  CONSTRAINT `summary_documents_document_id_foreign` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`),
  CONSTRAINT `summary_documents_summary_id_foreign` FOREIGN KEY (`summary_id`) REFERENCES `summaries` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `summary_documents`
--

SET autocommit=0;
COMMIT;

-- Dumped table `summary_documents` with 0 row(s)
--

--
-- Table structure for table `supplier_item_aliases`
--

CREATE TABLE `supplier_item_aliases` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `supplier_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `supplier_item_code` varchar(100) DEFAULT NULL,
  `supplier_description_original` varchar(500) DEFAULT NULL,
  `supplier_description_normalized` varchar(255) DEFAULT NULL,
  `created_by` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `supplier_item_aliases_supplier_code_unique` (`supplier_id`,`supplier_item_code`),
  KEY `supplier_item_aliases_item_id_foreign` (`item_id`),
  KEY `supplier_item_aliases_created_by_foreign` (`created_by`),
  KEY `supplier_item_aliases_supplier_desc_idx` (`supplier_id`,`supplier_description_normalized`),
  CONSTRAINT `supplier_item_aliases_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  CONSTRAINT `supplier_item_aliases_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `supplier_item_aliases_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `supplier_item_aliases`
--

SET autocommit=0;
COMMIT;

-- Dumped table `supplier_item_aliases` with 0 row(s)
--

--
-- Table structure for table `suscription_grade`
--

CREATE TABLE `suscription_grade` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `suscription_grade`
--

SET autocommit=0;
INSERT INTO `suscription_grade` VALUES (1,'1er'),(2,'2do'),(3,'3ro'),(4,'4to'),(5,'5to'),(6,'6to'),(7,'7mo'),(8,'8vo');
COMMIT;

-- Dumped table `suscription_grade` with 8 row(s)
--

--
-- Table structure for table `suscription_plans`
--

CREATE TABLE `suscription_plans` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cat_period_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con el periodo de tiempo',
  `name` text NOT NULL COMMENT 'Nombre del plan',
  `description` longtext NOT NULL COMMENT 'Descripcion del plan',
  `total` double(12,2) DEFAULT 0.00 COMMENT 'El total del costo del plan',
  `currency_type_id` varchar(255) DEFAULT NULL,
  `payment_method_type_id` varchar(255) DEFAULT NULL,
  `quantity_period` int(10) unsigned DEFAULT NULL,
  `exchange_rate_sale` double(13,3) DEFAULT 0.000,
  `total_prepayment` double(12,2) DEFAULT 0.00,
  `total_charge` double(12,2) DEFAULT 0.00,
  `total_discount` double(12,2) DEFAULT 0.00,
  `total_exportation` double(12,2) DEFAULT 0.00,
  `total_free` double(12,2) DEFAULT 0.00,
  `total_taxed` double(12,2) DEFAULT 0.00,
  `total_unaffected` double(12,2) DEFAULT 0.00,
  `total_exonerated` double(12,2) DEFAULT 0.00,
  `total_igv` double(12,2) DEFAULT 0.00,
  `total_igv_free` double(12,2) DEFAULT 0.00,
  `total_base_isc` double(12,2) DEFAULT 0.00,
  `total_isc` double(12,2) DEFAULT 0.00,
  `total_base_other_taxes` double(12,2) DEFAULT 0.00,
  `total_other_taxes` double(12,2) DEFAULT 0.00,
  `total_taxes` double(12,2) DEFAULT 0.00,
  `total_value` double(12,2) DEFAULT 0.00,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `prepayments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `related` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `perception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `detraction` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `terms_condition` longtext DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `suscription_plans`
--

SET autocommit=0;
INSERT INTO `suscription_plans` VALUES (1,1,'Matricula Escolar','Demostración de matricula escolar',1.00,'PEN','01',12,0.000,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
COMMIT;

-- Dumped table `suscription_plans` with 1 row(s)
--

--
-- Table structure for table `suscription_section`
--

CREATE TABLE `suscription_section` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `suscription_section`
--

SET autocommit=0;
INSERT INTO `suscription_section` VALUES (1,'A'),(2,'B'),(3,'C'),(4,'D'),(5,'E'),(6,'F'),(7,'G'),(8,'H');
COMMIT;

-- Dumped table `suscription_section` with 8 row(s)
--

--
-- Table structure for table `system_activity_logs`
--

CREATE TABLE `system_activity_logs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `system_activity_log_type_id` varchar(255) DEFAULT NULL,
  `date` date NOT NULL,
  `time` time NOT NULL,
  `origin_id` int(11) DEFAULT NULL,
  `origin_type` varchar(255) DEFAULT NULL,
  `ip` varchar(255) DEFAULT NULL,
  `device_name` varchar(255) DEFAULT NULL,
  `device_type` varchar(255) DEFAULT NULL,
  `platform_name` varchar(255) DEFAULT NULL,
  `platform_version` varchar(255) DEFAULT NULL,
  `browser_name` varchar(255) DEFAULT NULL,
  `browser_version` varchar(255) DEFAULT NULL,
  `request_email` varchar(255) DEFAULT NULL,
  `route` varchar(255) DEFAULT NULL,
  `location` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `payment_index` (`origin_id`,`origin_type`),
  KEY `system_activity_logs_user_id_foreign` (`user_id`),
  KEY `system_activity_logs_auth_transaction_type_index` (`system_activity_log_type_id`),
  KEY `system_activity_logs_date_index` (`date`),
  KEY `system_activity_logs_time_index` (`time`),
  KEY `system_activity_logs_device_type_index` (`device_type`),
  CONSTRAINT `system_activity_logs_system_activity_log_type_id_foreign` FOREIGN KEY (`system_activity_log_type_id`) REFERENCES `system_activity_log_types` (`id`),
  CONSTRAINT `system_activity_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `system_activity_logs`
--

SET autocommit=0;
INSERT INTO `system_activity_logs` VALUES (1,NULL,'failed','2026-02-24','15:32:12',NULL,NULL,'181.176.101.123','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-02-24 15:32:12','2026-02-24 15:32:12'),(2,1,'login','2026-02-24','15:32:23',1,'App\\Models\\Tenant\\User','181.176.101.123','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-02-24 15:32:23','2026-02-24 15:32:23'),(3,1,'companies_certificate','2026-02-24','15:33:32',1,'App\\Models\\Tenant\\Company','181.176.101.123','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-02-24 15:33:32','2026-02-24 15:33:32'),(4,1,'companies_soap_send_id','2026-02-24','15:33:47',1,'App\\Models\\Tenant\\Company','181.176.101.123','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-02-24 15:33:47','2026-02-24 15:33:47'),(5,1,'companies_soap_type_id','2026-02-24','15:33:47',1,'App\\Models\\Tenant\\Company','181.176.101.123','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-02-24 15:33:47','2026-02-24 15:33:47'),(6,1,'companies_soap_send_id','2026-02-24','15:34:08',1,'App\\Models\\Tenant\\Company','181.176.101.123','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-02-24 15:34:08','2026-02-24 15:34:08'),(7,1,'companies_soap_username','2026-02-24','15:34:08',1,'App\\Models\\Tenant\\Company','181.176.101.123','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-02-24 15:34:08','2026-02-24 15:34:08'),(8,1,'companies_soap_password','2026-02-24','15:34:08',1,'App\\Models\\Tenant\\Company','181.176.101.123','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-02-24 15:34:08','2026-02-24 15:34:08'),(9,2,'login','2026-02-24','16:39:47',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-02-24 16:39:47','2026-02-24 16:39:47'),(10,2,'login','2026-02-24','20:49:05',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-02-24 20:49:05','2026-02-24 20:49:05'),(11,2,'login','2026-02-25','18:10:47',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-02-25 18:10:47','2026-02-25 18:10:47'),(12,2,'login','2026-02-26','21:30:21',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-02-26 21:30:21','2026-02-26 21:30:21'),(13,2,'login','2026-02-27','09:17:10',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-02-27 09:17:10','2026-02-27 09:17:10'),(14,2,'login','2026-02-27','22:14:41',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-02-27 22:14:41','2026-02-27 22:14:41'),(15,2,'login','2026-02-28','10:09:45',2,'App\\Models\\Tenant\\User','181.176.42.86','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-02-28 10:09:45','2026-02-28 10:09:45'),(16,2,'login','2026-03-05','17:34:14',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-05 17:34:14','2026-03-05 17:34:14'),(17,2,'login','2026-03-06','15:36:39',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-06 15:36:39','2026-03-06 15:36:39'),(18,2,'login','2026-03-11','19:48:29',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-11 19:48:29','2026-03-11 19:48:29'),(19,2,'login','2026-03-13','18:40:59',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-13 18:40:59','2026-03-13 18:40:59'),(20,2,'login','2026-03-14','13:12:48',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-14 13:12:48','2026-03-14 13:12:48'),(21,2,'login','2026-03-14','18:13:36',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-14 18:13:36','2026-03-14 18:13:36'),(22,2,'login','2026-03-15','19:47:47',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-15 19:47:47','2026-03-15 19:47:47'),(23,2,'login','2026-03-16','19:26:27',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-16 19:26:27','2026-03-16 19:26:27'),(24,2,'login','2026-03-18','15:16:35',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-18 15:16:35','2026-03-18 15:16:35'),(25,2,'login','2026-03-19','21:43:18',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-19 21:43:18','2026-03-19 21:43:18'),(26,2,'login','2026-03-21','08:24:58',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-21 08:24:58','2026-03-21 08:24:58'),(27,2,'login','2026-03-21','18:39:02',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-21 18:39:02','2026-03-21 18:39:02'),(28,2,'login','2026-03-22','19:27:13',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-22 19:27:13','2026-03-22 19:27:13'),(29,2,'login','2026-03-23','07:40:55',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-23 07:40:55','2026-03-23 07:40:55'),(30,2,'login','2026-03-23','10:55:43',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-23 10:55:43','2026-03-23 10:55:43'),(31,2,'login','2026-03-24','11:49:50',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-24 11:49:50','2026-03-24 11:49:50'),(32,2,'login','2026-03-24','15:42:29',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-24 15:42:29','2026-03-24 15:42:29'),(33,2,'login','2026-03-27','15:35:07',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-27 15:35:07','2026-03-27 15:35:07'),(34,2,'login','2026-03-27','18:45:06',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-27 18:45:06','2026-03-27 18:45:06'),(35,2,'login','2026-03-28','20:05:09',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-28 20:05:09','2026-03-28 20:05:09'),(36,2,'login','2026-03-29','21:23:17',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-29 21:23:17','2026-03-29 21:23:17'),(37,2,'login','2026-03-30','09:50:27',2,'App\\Models\\Tenant\\User','181.176.40.124','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"PIU\",\"region_name\":\"Piura\",\"city_name\":\"Sinchi Roca\",\"latitude\":\"-4.88231\",\"longitude\":\"-80.4354\",\"timezone\":\"America\\/Lima\"}','2026-03-30 09:50:27','2026-03-30 09:50:27'),(38,2,'login','2026-03-30','14:32:35',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-30 14:32:35','2026-03-30 14:32:35'),(39,2,'login','2026-03-30','18:00:18',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-30 18:00:18','2026-03-30 18:00:18'),(40,2,'login','2026-03-30','21:50:39',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-30 21:50:39','2026-03-30 21:50:39'),(41,2,'login','2026-03-31','14:55:50',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-31 14:55:50','2026-03-31 14:55:50'),(42,2,'login','2026-03-31','19:45:28',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-03-31 19:45:28','2026-03-31 19:45:28'),(43,2,'login','2026-04-01','19:00:19',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-04-01 19:00:19','2026-04-01 19:00:19'),(44,2,'logout','2026-04-01','19:04:04',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-04-01 19:04:04','2026-04-01 19:04:04'),(45,2,'logout','2026-04-01','19:04:04',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-04-01 19:04:04','2026-04-01 19:04:04'),(46,2,'login','2026-04-01','19:05:09',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-04-01 19:05:09','2026-04-01 19:05:09'),(47,2,'logout','2026-04-01','19:54:19',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-04-01 19:54:19','2026-04-01 19:54:19'),(48,2,'logout','2026-04-01','19:54:19',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-04-01 19:54:19','2026-04-01 19:54:19'),(49,2,'login','2026-04-01','20:07:42',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-04-01 20:07:42','2026-04-01 20:07:42'),(50,2,'logout','2026-04-01','20:23:57',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-04-01 20:23:57','2026-04-01 20:23:57'),(51,2,'logout','2026-04-01','20:23:57',2,'App\\Models\\Tenant\\User','179.6.26.134','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-04-01 20:23:57','2026-04-01 20:23:57');
COMMIT;

-- Dumped table `system_activity_logs` with 51 row(s)
--

--
-- Table structure for table `system_activity_log_types`
--

CREATE TABLE `system_activity_log_types` (
  `id` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `system_activity_log_types`
--

SET autocommit=0;
INSERT INTO `system_activity_log_types` VALUES ('companies_certificate','Actualización del campo certificado en configuración de empresa'),('companies_name','Actualización del campo nombre en configuración de empresa'),('companies_number','Actualización del campo número en configuración de empresa'),('companies_soap_password','Actualización del campo SOAP Contraseña en configuración de empresa'),('companies_soap_send_id','Actualización del campo SOAP envío en configuración de empresa'),('companies_soap_type_id','Actualización del campo SOAP tipo en configuración de empresa'),('companies_soap_url','Actualización del campo SOAP url envío en configuración de empresa'),('companies_soap_username','Actualización del campo SOAP Usuario en configuración de empresa'),('failed','Error de inicio de sesión'),('level_module_access_error','Error de acceso al submódulo (no tiene permiso)'),('login','Iniciar sesión'),('login_lockout','Bloqueo de usuario por exceder límite de intentos permitidos al iniciar sesión'),('logout','Cerrar sesión'),('module_access_error','Error de acceso al módulo (no tiene permiso)');
COMMIT;

-- Dumped table `system_activity_log_types` with 14 row(s)
--

--
-- Table structure for table `tags`
--

CREATE TABLE `tags` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tags`
--

SET autocommit=0;
COMMIT;

-- Dumped table `tags` with 0 row(s)
--

--
-- Table structure for table `tasks`
--

CREATE TABLE `tasks` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `class` varchar(255) NOT NULL,
  `execution_time` time NOT NULL,
  `output` longtext DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tasks`
--

SET autocommit=0;
COMMIT;

-- Dumped table `tasks` with 0 row(s)
--

--
-- Table structure for table `technical_services`
--

CREATE TABLE `technical_services` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `establishment_id` int(10) unsigned DEFAULT 0,
  `establishment` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `customer_id` int(10) unsigned NOT NULL,
  `customer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `currency_type_id` text DEFAULT NULL,
  `payment_condition_id` text DEFAULT NULL,
  `payment_method_type_id` text DEFAULT NULL,
  `seller_id` int(10) unsigned DEFAULT 0,
  `exchange_rate_sale` decimal(13,3) DEFAULT 0.000,
  `total_prepayment` decimal(12,2) DEFAULT 0.00,
  `total_charge` decimal(12,2) DEFAULT 0.00,
  `total_discount` decimal(12,2) DEFAULT 0.00,
  `total_exportation` decimal(12,2) DEFAULT 0.00,
  `total_free` decimal(12,2) DEFAULT 0.00,
  `total_taxed` decimal(12,2) DEFAULT 0.00,
  `total_unaffected` decimal(12,2) DEFAULT 0.00,
  `total_exonerated` decimal(12,2) DEFAULT 0.00,
  `total_igv` decimal(12,2) DEFAULT 0.00,
  `total_igv_free` decimal(12,2) DEFAULT 0.00,
  `total_base_isc` decimal(12,2) DEFAULT 0.00,
  `total_isc` decimal(12,2) DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) DEFAULT 0.00,
  `total_plastic_bag_taxes` decimal(6,2) DEFAULT 0.00,
  `total_taxes` decimal(12,2) DEFAULT 0.00,
  `total_value` decimal(12,2) DEFAULT 0.00,
  `subtotal` decimal(12,2) DEFAULT 0.00,
  `total` decimal(12,2) DEFAULT 0.00,
  `is_editable` tinyint(3) unsigned DEFAULT 0,
  `cellphone` varchar(255) NOT NULL,
  `date_of_issue` date NOT NULL,
  `time_of_issue` time NOT NULL,
  `description` text NOT NULL,
  `state` text NOT NULL,
  `reason` text NOT NULL,
  `serial_number` varchar(255) NOT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `cost` decimal(12,2) NOT NULL DEFAULT 0.00,
  `prepayment` decimal(12,2) NOT NULL DEFAULT 0.00,
  `activities` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `brand` varchar(255) DEFAULT NULL,
  `equipment` varchar(255) DEFAULT NULL,
  `important_note` text DEFAULT NULL,
  `repair` tinyint(1) NOT NULL DEFAULT 0,
  `warranty` tinyint(1) NOT NULL DEFAULT 0,
  `maintenance` tinyint(1) NOT NULL DEFAULT 0,
  `diagnosis` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `technical_services_user_id_foreign` (`user_id`),
  KEY `technical_services_soap_type_id_foreign` (`soap_type_id`),
  KEY `technical_services_customer_id_foreign` (`customer_id`),
  KEY `technical_services_date_of_issue_index` (`date_of_issue`),
  KEY `technical_services_serial_number_index` (`serial_number`),
  CONSTRAINT `technical_services_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `technical_services_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `technical_services_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `technical_services`
--

SET autocommit=0;
COMMIT;

-- Dumped table `technical_services` with 0 row(s)
--

--
-- Table structure for table `technical_service_items`
--

CREATE TABLE `technical_service_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `technical_services_id` int(10) unsigned DEFAULT 0 COMMENT 'Id de technical_services',
  `item_id` int(10) unsigned DEFAULT 0 COMMENT 'Id de item',
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Json con el contenido de item',
  `quantity` double(12,4) DEFAULT 0.0000 COMMENT 'Cantidad de item usado',
  `unit_value` double(16,6) DEFAULT 0.000000 COMMENT 'unit_value',
  `affectation_igv_type_id` longtext DEFAULT NULL COMMENT 'Tipo de afectacion dde igv. cat_affectation_igv_types',
  `total_base_igv` double(12,2) DEFAULT 0.00 COMMENT 'Monto base del IGV',
  `percentage_igv` double(12,2) DEFAULT 0.00,
  `total_igv` double(12,2) DEFAULT 0.00,
  `system_isc_type_id` longtext DEFAULT NULL,
  `total_base_isc` double(12,2) DEFAULT 0.00,
  `percentage_isc` double(12,2) DEFAULT 0.00,
  `total_isc` double(12,2) DEFAULT 0.00,
  `total_base_other_taxes` double(12,2) DEFAULT 0.00,
  `percentage_other_taxes` double(12,2) DEFAULT 0.00,
  `total_other_taxes` double(12,2) DEFAULT 0.00,
  `total_plastic_bag_taxes` double(6,2) DEFAULT 0.00,
  `total_taxes` double(12,2) DEFAULT 0.00,
  `price_type_id` longtext DEFAULT NULL,
  `unit_price` double(16,6) DEFAULT 0.000000,
  `total_value` double(12,2) DEFAULT 0.00,
  `total_charge` double(12,2) DEFAULT 0.00,
  `total_discount` double(12,2) DEFAULT 0.00,
  `total` double(12,2) DEFAULT 0.00,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Atributos',
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Descuentos',
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Cargos',
  `additional_information` longtext DEFAULT NULL COMMENT 'Informacion adicional',
  `warehouse_id` int(10) unsigned DEFAULT 0 COMMENT 'Id de item',
  `name_product_pdf` longtext DEFAULT NULL COMMENT 'Nombre de producto en el pdf',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `technical_service_items`
--

SET autocommit=0;
COMMIT;

-- Dumped table `technical_service_items` with 0 row(s)
--

--
-- Table structure for table `technical_service_payments`
--

CREATE TABLE `technical_service_payments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `technical_service_id` int(10) unsigned NOT NULL,
  `date_of_payment` date NOT NULL,
  `payment_method_type_id` char(2) NOT NULL,
  `reference` varchar(255) DEFAULT NULL,
  `change` decimal(12,2) NOT NULL DEFAULT 0.00,
  `payment` decimal(12,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `technical_service_payments_technical_service_id_foreign` (`technical_service_id`),
  KEY `technical_service_payments_payment_method_type_id_foreign` (`payment_method_type_id`),
  CONSTRAINT `technical_service_payments_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `technical_service_payments_technical_service_id_foreign` FOREIGN KEY (`technical_service_id`) REFERENCES `technical_services` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `technical_service_payments`
--

SET autocommit=0;
COMMIT;

-- Dumped table `technical_service_payments` with 0 row(s)
--

--
-- Table structure for table `tips`
--

CREATE TABLE `tips` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `soap_type_id` char(2) NOT NULL,
  `date` date NOT NULL COMMENT 'Fecha de registro',
  `origin_date_of_issue` date NOT NULL COMMENT 'Fecha del documento origen de la propina',
  `origin_id` int(11) NOT NULL,
  `origin_type` varchar(255) NOT NULL,
  `worker_full_name` varchar(255) NOT NULL,
  `total` decimal(12,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `origin_index` (`origin_id`,`origin_type`),
  KEY `tips_soap_type_id_foreign` (`soap_type_id`),
  KEY `tips_date_index` (`date`),
  KEY `tips_origin_date_of_issue_index` (`origin_date_of_issue`),
  KEY `tips_worker_full_name_index` (`worker_full_name`),
  CONSTRAINT `tips_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tips`
--

SET autocommit=0;
COMMIT;

-- Dumped table `tips` with 0 row(s)
--

--
-- Table structure for table `track_api_peru_services`
--

CREATE TABLE `track_api_peru_services` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `service` int(10) unsigned DEFAULT 0 COMMENT 'Tipo de servicio  1 => sunat/dni, 2 => validacion_multiple_cpe, 3 => CPE, 4 => tipo_de_cambio, 5 => printer_ticket',
  `date_of_issue` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `track_api_peru_services`
--

SET autocommit=0;
COMMIT;

-- Dumped table `track_api_peru_services` with 0 row(s)
--

--
-- Table structure for table `transactions`
--

CREATE TABLE `transactions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `payment_link_id` int(10) unsigned NOT NULL,
  `soap_type_id` char(2) DEFAULT NULL,
  `date` date NOT NULL,
  `time` time NOT NULL,
  `uuid` char(36) NOT NULL,
  `description` varchar(255) NOT NULL,
  `payment_id` varchar(255) DEFAULT NULL,
  `amount` decimal(16,2) NOT NULL,
  `transaction_state_id` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `transactions_uuid_unique` (`uuid`),
  KEY `transactions_payment_link_id_foreign` (`payment_link_id`),
  KEY `transactions_transaction_state_id_foreign` (`transaction_state_id`),
  KEY `transactions_date_index` (`date`),
  KEY `transactions_time_index` (`time`),
  KEY `transactions_description_index` (`description`),
  KEY `transactions_payment_id_index` (`payment_id`),
  KEY `transactions_amount_index` (`amount`),
  KEY `transactions_soap_type_id_foreign` (`soap_type_id`),
  CONSTRAINT `transactions_payment_link_id_foreign` FOREIGN KEY (`payment_link_id`) REFERENCES `payment_links` (`id`),
  CONSTRAINT `transactions_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `transactions_transaction_state_id_foreign` FOREIGN KEY (`transaction_state_id`) REFERENCES `transaction_states` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `transactions`
--

SET autocommit=0;
COMMIT;

-- Dumped table `transactions` with 0 row(s)
--

--
-- Table structure for table `transaction_queries`
--

CREATE TABLE `transaction_queries` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `time` time NOT NULL,
  `response` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `transaction_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `transaction_queries_transaction_id_foreign` (`transaction_id`),
  CONSTRAINT `transaction_queries_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `transaction_queries`
--

SET autocommit=0;
COMMIT;

-- Dumped table `transaction_queries` with 0 row(s)
--

--
-- Table structure for table `transaction_states`
--

CREATE TABLE `transaction_states` (
  `id` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `success` tinyint(1) NOT NULL,
  `status` varchar(255) NOT NULL,
  `status_detail` varchar(255) NOT NULL,
  `original_message` varchar(255) NOT NULL,
  `user_message` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `transaction_states_name_index` (`name`),
  KEY `transaction_states_success_index` (`success`),
  KEY `transaction_states_status_index` (`status`),
  KEY `transaction_states_status_detail_index` (`status_detail`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `transaction_states`
--

SET autocommit=0;
INSERT INTO `transaction_states` VALUES ('00','Rechazado (Error desconocido)',0,'other','other','Error desconocido','Lo sentimos, ocurrió un error inesperado.'),('01','Aceptado',1,'approved','accredited','¡Listo! Se acreditó tu pago. En tu resumen verás el cargo de amount como statement_descriptor.','¡Listo! Se acreditó tu pago. En tu resumen verás el cargo del pago.'),('02','En proceso',1,'in_process','pending_contingency','Estamos procesando tu pago. No te preocupes, menos de 2 días hábiles te avisaremos por e-mail si se acreditó.','Estamos procesando tu pago. No te preocupes, en menos de 2 días hábiles te avisaremos por e-mail si se acreditó.'),('03','En proceso',1,'in_process','pending_review_manual','Estamos procesando tu pago. No te preocupes, menos de 2 días hábiles te avisaremos por e-mail si se acreditó o si necesitamos más información.','Estamos procesando tu pago. No te preocupes, en menos de 2 días hábiles te avisaremos por e-mail si se acreditó o si necesitamos más información.'),('04','Rechazado',0,'rejected','cc_rejected_bad_filled_card_number','Revisa el número de tarjeta.','Lo sentimos, ocurrió un inconveniente. Revisa el número de tarjeta.'),('05','Rechazado',0,'rejected','cc_rejected_bad_filled_date','Revisa la fecha de vencimiento.','Lo sentimos, ocurrió un inconveniente. Revisa la fecha de vencimiento.'),('06','Rechazado',0,'rejected','cc_rejected_bad_filled_other','Revisa los datos.','Lo sentimos, ocurrió un inconveniente. Revisa los datos.'),('07','Rechazado',0,'rejected','cc_rejected_bad_filled_security_code','Revisa el código de seguridad de la tarjeta.','Lo sentimos, ocurrió un inconveniente. Revisa el código de seguridad de la tarjeta.'),('08','Rechazado',0,'rejected','cc_rejected_blacklist','No pudimos procesar tu pago.','Lo sentimos, ocurrió un inconveniente. No pudimos procesar tu pago.'),('09','Rechazado',0,'rejected','cc_rejected_call_for_authorize','Debes autorizar ante payment_method_id el pago de amount.','Debes autorizar ante el medio de pago, el pago a realizar.'),('10','Rechazado',0,'rejected','cc_rejected_card_disabled','Llama a payment_method_id para activar tu tarjeta o usa otro medio de pago. El teléfono está al dorso de tu tarjeta.','Llama a la entidad para activar tu tarjeta o usa otro medio de pago. El teléfono está al dorso de tu tarjeta.'),('11','Rechazado',0,'rejected','cc_rejected_card_error','No pudimos procesar tu pago.','Lo sentimos, ocurrió un inconveniente. No pudimos procesar tu pago.'),('12','Rechazado',0,'rejected','cc_rejected_duplicated_payment','Ya hiciste un pago por ese valor. Si necesitas volver a pagar usa otra tarjeta u otro medio de pago.','Ya hiciste un pago por ese valor. Si necesitas volver a pagar usa otra tarjeta u otro medio de pago.'),('13','Rechazado',0,'rejected','cc_rejected_high_risk','Tu pago fue rechazado. Elige otro de los medios de pago, te recomendamos con medios en efectivo.','Tu pago fue rechazado. Elige otro de los medios de pago, te recomendamos con medios en efectivo.'),('14','Rechazado',0,'rejected','cc_rejected_insufficient_amount','Tu payment_method_id no tiene fondos suficientes.','Lo sentimos, ocurrió un inconveniente. Tu medio de pago no tiene fondos suficientes.'),('15','Rechazado',0,'rejected','cc_rejected_invalid_installments','payment_method_id no procesa pagos en installments cuotas.','Para el medio de pago ingresado, no se puede procesar los pagos en la cantidad de cuotas seleccionadas.'),('16','Rechazado',0,'rejected','cc_rejected_max_attempts','Llegaste al límite de intentos permitidos. Elige otra tarjeta u otro medio de pago.','Llegaste al límite de intentos permitidos. Elige otra tarjeta u otro medio de pago.'),('17','Rechazado',0,'rejected','cc_rejected_other_reason','payment_method_id no procesó el pago.','Lo sentimos, ocurrió un inconveniente. El pago no pudo ser procesado por el medio usado');
COMMIT;

-- Dumped table `transaction_states` with 18 row(s)
--

--
-- Table structure for table `transfer_account_payments`
--

CREATE TABLE `transfer_account_payments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `origin_id` int(10) unsigned DEFAULT 0 COMMENT 'id Cuenta de origen',
  `origin_type` text DEFAULT NULL COMMENT 'Modelo de origen',
  `destiny_id` int(10) unsigned DEFAULT 0 COMMENT 'id Cuenta de destino',
  `destiny_type` text DEFAULT NULL COMMENT 'Modelo de destino',
  `amount` decimal(9,2) DEFAULT 0.00 COMMENT 'Monto a transferir',
  `date_of_movement` datetime DEFAULT NULL COMMENT 'Fecha de movimiento',
  `user_id` int(10) unsigned DEFAULT 0 COMMENT 'Usuario que realiza el movimiento',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `transfer_account_payments`
--

SET autocommit=0;
COMMIT;

-- Dumped table `transfer_account_payments` with 0 row(s)
--

--
-- Table structure for table `transports`
--

CREATE TABLE `transports` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `plate_number` varchar(50) NOT NULL,
  `model` varchar(255) NOT NULL,
  `brand` varchar(255) NOT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT 0,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `transports`
--

SET autocommit=0;
COMMIT;

-- Dumped table `transports` with 0 row(s)
--

--
-- Table structure for table `users`
--

SET autocommit=0;
COMMIT;

-- Dumped table `users` with 2 row(s)
--

--
-- Table structure for table `user_commissions`
--

CREATE TABLE `user_commissions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `amount` decimal(8,2) NOT NULL,
  `type` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `user_commissions_user_id_foreign` (`user_id`),
  CONSTRAINT `user_commissions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `user_commissions`
--

SET autocommit=0;
COMMIT;

-- Dumped table `user_commissions` with 0 row(s)
--

--
-- Table structure for table `user_default_document_types`
--

CREATE TABLE `user_default_document_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `document_type_id` varchar(255) NOT NULL,
  `series_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `user_default_document_types_user_id_foreign` (`user_id`),
  KEY `user_default_document_types_document_type_id_foreign` (`document_type_id`),
  KEY `user_default_document_types_series_id_foreign` (`series_id`),
  CONSTRAINT `user_default_document_types_document_type_id_foreign` FOREIGN KEY (`document_type_id`) REFERENCES `cat_document_types` (`id`),
  CONSTRAINT `user_default_document_types_series_id_foreign` FOREIGN KEY (`series_id`) REFERENCES `series` (`id`),
  CONSTRAINT `user_default_document_types_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `user_default_document_types`
--

SET autocommit=0;
COMMIT;

-- Dumped table `user_default_document_types` with 0 row(s)
--

--
-- Table structure for table `user_rel_suscription_plans`
--

CREATE TABLE `user_rel_suscription_plans` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con usuario',
  `suscription_plan_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con planes de suscripcion',
  `cat_period_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con el periodo de tiempo',
  `items` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'Pega los items relacionados a modo de standar',
  `editable` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Si ya ha sido adquirido, no puede ser modificado',
  `deletable` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Si ya ha sido adquirido, no puede ser borrado',
  `start_date` date DEFAULT NULL COMMENT 'Fecha de inicio',
  `sale_notes` text DEFAULT NULL,
  `documents` text DEFAULT NULL,
  `dates_of_documents` text DEFAULT NULL,
  `automatic_date_of_issue` date DEFAULT NULL,
  `customer_id` int(10) unsigned DEFAULT 0,
  `customer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `parent_customer_id` int(10) unsigned DEFAULT 0,
  `parent_customer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `children_customer_id` int(10) unsigned DEFAULT 0,
  `children_customer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `quantity_period` int(10) unsigned DEFAULT 0,
  `apply_concurrency` int(10) unsigned NOT NULL DEFAULT 0,
  `enabled_concurrency` int(10) unsigned NOT NULL DEFAULT 1 COMMENT 'Se pasará a nota de ventas como activo',
  `currency_type_id` varchar(255) DEFAULT NULL,
  `payment_method_type_id` varchar(255) DEFAULT NULL,
  `exchange_rate_sale` double(13,3) DEFAULT 0.000,
  `total_prepayment` double(12,2) DEFAULT 0.00,
  `total_charge` double(12,2) DEFAULT 0.00,
  `total_discount` double(12,2) DEFAULT 0.00,
  `total_exportation` double(12,2) DEFAULT 0.00,
  `total_free` double(12,2) DEFAULT 0.00,
  `total_taxed` double(12,2) DEFAULT 0.00,
  `total_unaffected` double(12,2) DEFAULT 0.00,
  `total_exonerated` double(12,2) DEFAULT 0.00,
  `total_igv` double(12,2) DEFAULT 0.00,
  `total_igv_free` double(12,2) DEFAULT 0.00,
  `total_base_isc` double(12,2) DEFAULT 0.00,
  `total_isc` double(12,2) DEFAULT 0.00,
  `total_base_other_taxes` double(12,2) DEFAULT 0.00,
  `total_other_taxes` double(12,2) DEFAULT 0.00,
  `total_taxes` double(12,2) DEFAULT 0.00,
  `total_value` double(12,2) DEFAULT 0.00,
  `total` decimal(12,2) DEFAULT 0.00,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `prepayments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `related` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `perception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `detraction` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `terms_condition` longtext DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `grade` text DEFAULT NULL COMMENT 'Grado designado - utilizado en matricula',
  `section` text DEFAULT NULL COMMENT 'Seccion designado - utilizado en matricula',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `user_rel_suscription_plans`
--

SET autocommit=0;
COMMIT;

-- Dumped table `user_rel_suscription_plans` with 0 row(s)
--

--
-- Table structure for table `voided`
--

CREATE TABLE `voided` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `external_id` char(36) NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `ubl_version` varchar(255) NOT NULL,
  `date_of_issue` date NOT NULL,
  `date_of_reference` date NOT NULL,
  `identifier` varchar(255) NOT NULL,
  `filename` varchar(255) NOT NULL,
  `ticket` varchar(255) DEFAULT NULL,
  `has_ticket` tinyint(1) NOT NULL DEFAULT 0,
  `has_cdr` tinyint(1) NOT NULL DEFAULT 0,
  `soap_shipping_response` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `send_to_pse` tinyint(1) NOT NULL DEFAULT 0,
  `response_signature_pse` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `response_send_cdr_pse` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `voided_user_id_foreign` (`user_id`),
  KEY `voided_soap_type_id_foreign` (`soap_type_id`),
  KEY `voided_state_type_id_foreign` (`state_type_id`),
  CONSTRAINT `voided_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `voided_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `voided_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `voided`
--

SET autocommit=0;
COMMIT;

-- Dumped table `voided` with 0 row(s)
--

--
-- Table structure for table `voided_documents`
--

CREATE TABLE `voided_documents` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `voided_id` int(10) unsigned NOT NULL,
  `document_id` int(10) unsigned NOT NULL,
  `description` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `voided_documents_voided_id_foreign` (`voided_id`),
  KEY `voided_documents_document_id_foreign` (`document_id`),
  CONSTRAINT `voided_documents_document_id_foreign` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`),
  CONSTRAINT `voided_documents_voided_id_foreign` FOREIGN KEY (`voided_id`) REFERENCES `voided` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `voided_documents`
--

SET autocommit=0;
COMMIT;

-- Dumped table `voided_documents` with 0 row(s)
--

--
-- Table structure for table `waiters`
--

CREATE TABLE `waiters` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `last_name` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `waiters`
--

SET autocommit=0;
COMMIT;

-- Dumped table `waiters` with 0 row(s)
--

--
-- Table structure for table `warehouses`
--

CREATE TABLE `warehouses` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `establishment_id` int(10) unsigned NOT NULL,
  `description` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `warehouses_establishment_id_foreign` (`establishment_id`),
  CONSTRAINT `warehouses_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `warehouses`
--

SET autocommit=0;
INSERT INTO `warehouses` VALUES (1,1,'Almacén Oficina Principal','2026-02-24 15:28:45','2026-02-24 15:28:45');
COMMIT;

-- Dumped table `warehouses` with 1 row(s)
--

--
-- Table structure for table `web_platforms`
--

CREATE TABLE `web_platforms` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `web_platforms`
--

SET autocommit=0;
INSERT INTO `web_platforms` VALUES (1,'Saga Falabella',NULL,NULL),(2,'Mercado Libre ',NULL,NULL),(3,'Linio',NULL,NULL);
COMMIT;

-- Dumped table `web_platforms` with 3 row(s)
--

--
-- Table structure for table `workers`
--

CREATE TABLE `workers` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `identity_document_type_id` varchar(255) NOT NULL,
  `number` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `birth_date` date NOT NULL,
  `admission_date` date NOT NULL,
  `occupation` varchar(255) NOT NULL,
  `address` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `telephone` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `workers_identity_document_type_id_foreign` (`identity_document_type_id`),
  KEY `workers_number_index` (`number`),
  KEY `workers_name_index` (`name`),
  CONSTRAINT `workers_identity_document_type_id_foreign` FOREIGN KEY (`identity_document_type_id`) REFERENCES `cat_identity_document_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `workers`
--

SET autocommit=0;
COMMIT;

-- Dumped table `workers` with 0 row(s)
--

--
-- Table structure for table `zones`
--

CREATE TABLE `zones` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `zones`
--

SET autocommit=0;
COMMIT;

-- Dumped table `zones` with 0 row(s)
--


