-- 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 `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=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

SET autocommit=0;
INSERT INTO `item_lots_group` VALUES (1,'0002365',1.0000,0.0000,'2027-08-30',1,'2026-07-02 18:32:15','2026-07-02 18:32:15');
COMMIT;

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

--
-- Table structure for table `item_lots_group_warehouse`
--

CREATE TABLE `item_lots_group_warehouse` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `item_lot_group_id` int(10) unsigned NOT NULL,
  `warehouse_id` int(10) unsigned NOT NULL,
  `quantity` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `old_quantity` decimal(12,4) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `ilgw_unique` (`item_lot_group_id`,`warehouse_id`),
  KEY `ilgw_wh_idx` (`warehouse_id`,`item_lot_group_id`),
  CONSTRAINT `ilgw_lot_fk` FOREIGN KEY (`item_lot_group_id`) REFERENCES `item_lots_group` (`id`),
  CONSTRAINT `ilgw_wh_fk` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_lots_group_warehouse`
--

SET autocommit=0;
INSERT INTO `item_lots_group_warehouse` VALUES (1,1,1,1.0000,NULL,'2026-07-02 23:32:15','2026-07-02 23:32:15');
COMMIT;

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

--
-- Table structure for table `item_lot_movements`
--

CREATE TABLE `item_lot_movements` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` bigint(20) unsigned NOT NULL,
  `item_lot_group_id` bigint(20) unsigned DEFAULT NULL,
  `lot_code_snapshot` varchar(120) DEFAULT NULL,
  `warehouse_id` bigint(20) unsigned DEFAULT NULL,
  `direction` varchar(20) NOT NULL,
  `movement_type` varchar(60) NOT NULL,
  `quantity` decimal(18,4) NOT NULL DEFAULT 0.0000,
  `unit_cost` decimal(18,6) DEFAULT NULL,
  `source_type` varchar(191) DEFAULT NULL,
  `source_id` bigint(20) unsigned DEFAULT NULL,
  `source_item_type` varchar(191) DEFAULT NULL,
  `source_item_id` bigint(20) unsigned DEFAULT NULL,
  `date_of_issue` date DEFAULT NULL,
  `person_id` bigint(20) unsigned DEFAULT NULL,
  `trace_confidence` varchar(20) NOT NULL DEFAULT 'exact',
  `movement_key` varchar(191) DEFAULT NULL,
  `meta` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`meta`)),
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `item_lot_movements_movement_key_unique` (`movement_key`),
  KEY `item_lot_movements_item_id_date_of_issue_index` (`item_id`,`date_of_issue`),
  KEY `item_lot_movements_item_lot_group_id_date_of_issue_index` (`item_lot_group_id`,`date_of_issue`),
  KEY `item_lot_movements_warehouse_id_date_of_issue_index` (`warehouse_id`,`date_of_issue`),
  KEY `item_lot_movements_source_type_source_id_index` (`source_type`,`source_id`),
  KEY `item_lot_movements_trace_confidence_index` (`trace_confidence`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_lot_movements`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_lot_movements` with 0 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=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

SET autocommit=0;
INSERT INTO `item_movement` VALUES (1,9,-2.0000,'2026-07-03 08:43:02',1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,'2026-07-03 08:43:02','2026-07-03 08:43:02'),(2,33,-1.0000,'2026-07-03 08:43:02',1,1,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,'2026-07-03 08:43:02','2026-07-03 08:43:02');
COMMIT;

-- Dumped table `item_movement` with 2 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 CHECK (json_valid(`item`)),
  `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 CHECK (json_valid(`attributes`)),
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`discounts`)),
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`charges`)),
  `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) NOT NULL,
  `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,
  PRIMARY KEY (`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,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `item_unit_types_barcode_unique` (`barcode`),
  KEY `item_unit_types_unit_type_id_foreign` (`unit_type_id`),
  KEY `item_unit_types_item_id_foreign` (`item_id`),
  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=424 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

SET autocommit=0;
INSERT INTO `item_unit_types` VALUES (1,'Unidad',1,'NIU',1.0000,27.0000,0.0000,0.0000,1,'1NIU1',NULL),(2,'Unidad',2,'BL',1.0000,0.5000,0.0000,0.0000,1,'2BL1',NULL),(3,'Caja',3,'BX',100.0000,0.0000,0.0000,0.0000,1,'3BX100',NULL),(4,'Blíster',3,'BL',10.0000,0.0000,0.0000,0.0000,1,'4BL10',NULL),(5,'Unidad',3,'NIU',1.0000,1.5000,0.0000,0.0000,1,'5NIU1',NULL),(6,'Caja',4,'BX',120.0000,0.0000,0.0000,0.0000,1,'6BX120',NULL),(7,'Blíster',4,'BL',10.0000,0.0000,0.0000,0.0000,1,'7BL10',NULL),(8,'Unidad',4,'NIU',1.0000,2.0000,0.0000,0.0000,1,'8NIU1',NULL),(9,'Caja',5,'BX',100.0000,0.0000,0.0000,0.0000,1,'9BX100',NULL),(10,'Blíster',5,'BL',10.0000,0.0000,0.0000,0.0000,1,'10BL10',NULL),(11,'Unidad',5,'NIU',1.0000,1.5000,0.0000,0.0000,1,'11NIU1',NULL),(12,'Unidad',6,'NIU',1.0000,1.5000,0.0000,0.0000,1,'12NIU1',NULL),(13,'Unidad',7,'NIU',1.0000,1.0000,0.0000,0.0000,1,'13NIU1',NULL),(14,'Caja',8,'BX',40.0000,0.0000,0.0000,0.0000,1,'14BX40',NULL),(15,'Unidad',8,'NIU',1.0000,2.0000,0.0000,0.0000,1,'15NIU1',NULL),(16,'Caja',9,'BX',100.0000,0.0000,0.0000,0.0000,1,'16BX100',NULL),(17,'Blíster',9,'BL',10.0000,0.0000,0.0000,0.0000,1,'17BL10',NULL),(18,'Unidad',9,'NIU',1.0000,1.0000,0.0000,0.0000,1,'18NIU1',NULL),(19,'Caja',10,'BX',60.0000,0.0000,0.0000,0.0000,1,'19BX60',NULL),(20,'Blíster',10,'BL',10.0000,0.0000,0.0000,0.0000,1,'20BL10',NULL),(21,'Unidad',10,'NIU',1.0000,2.0000,0.0000,0.0000,1,'21NIU1',NULL),(22,'Caja',11,'BX',100.0000,0.0000,0.0000,0.0000,1,'22BX100',NULL),(23,'Blíster',11,'BL',10.0000,0.0000,0.0000,0.0000,1,'23BL10',NULL),(24,'Unidad',11,'NIU',1.0000,1.0000,0.0000,0.0000,1,'24NIU1',NULL),(25,'Caja',12,'BX',20.0000,0.0000,0.0000,0.0000,1,'25BX20',NULL),(26,'Unidad',12,'NIU',1.0000,2.0000,0.0000,0.0000,1,'26NIU1',NULL),(27,'Caja',13,'BX',50.0000,0.0000,0.0000,0.0000,1,'27BX50',NULL),(28,'Blíster',13,'BL',10.0000,0.0000,0.0000,0.0000,1,'28BL10',NULL),(29,'Unidad',13,'NIU',1.0000,2.5000,0.0000,0.0000,1,'29NIU1',NULL),(30,'Caja',14,'BX',160.0000,0.0000,0.0000,0.0000,1,'30BX160',NULL),(31,'Unidad',14,'NIU',1.0000,1.0000,0.0000,0.0000,1,'31NIU1',NULL),(32,'Caja',15,'BX',12.0000,0.0000,0.0000,0.0000,1,'32BX12',NULL),(33,'Unidad',15,'NIU',1.0000,1.5000,0.0000,0.0000,1,'33NIU1',NULL),(37,'Caja',17,'BX',100.0000,0.0000,0.0000,0.0000,1,'37BX100',NULL),(38,'Blíster',17,'BL',10.0000,0.0000,0.0000,0.0000,1,'38BL10',NULL),(39,'Unidad',17,'NIU',1.0000,1.5000,0.0000,0.0000,1,'39NIU1',NULL),(40,'Caja',18,'BX',100.0000,0.0000,0.0000,0.0000,1,'40BX100',NULL),(41,'Blíster',18,'BL',10.0000,0.0000,0.0000,0.0000,1,'41BL10',NULL),(42,'Unidad',18,'NIU',1.0000,1.5000,0.0000,0.0000,1,'42NIU1',NULL),(43,'Unidad',19,'NIU',1.0000,2.0000,0.0000,0.0000,1,'43NIU1',NULL),(44,'Caja',20,'BX',80.0000,0.0000,0.0000,0.0000,1,'44BX80',NULL),(45,'Blíster',20,'BL',10.0000,0.0000,0.0000,0.0000,1,'45BL10',NULL),(46,'Unidad',20,'NIU',1.0000,1.0000,0.0000,0.0000,1,'46NIU1',NULL),(47,'Caja',21,'BX',50.0000,0.0000,0.0000,0.0000,1,'47BX50',NULL),(48,'Unidad',21,'NIU',1.0000,2.0000,0.0000,0.0000,1,'48NIU1',NULL),(49,'Caja',22,'BX',52.0000,0.0000,0.0000,0.0000,1,'49BX52',NULL),(50,'Unidad',22,'NIU',1.0000,2.6000,0.0000,0.0000,1,'50NIU1',NULL),(51,'Caja',23,'BX',100.0000,0.0000,0.0000,0.0000,1,'51BX100',NULL),(52,'Blíster',23,'BL',10.0000,0.0000,0.0000,0.0000,1,'52BL10',NULL),(53,'Unidad',23,'NIU',1.0000,1.0000,0.0000,0.0000,1,'53NIU1',NULL),(54,'Caja',24,'BX',100.0000,0.0000,0.0000,0.0000,1,'54BX100',NULL),(55,'Blíster',24,'BL',10.0000,0.0000,0.0000,0.0000,1,'55BL10',NULL),(56,'Unidad',24,'NIU',1.0000,1.5000,0.0000,0.0000,1,'56NIU1',NULL),(57,'Caja',25,'BX',10.0000,0.0000,0.0000,0.0000,1,'57BX10',NULL),(58,'Unidad',25,'NIU',1.0000,2.5000,0.0000,0.0000,1,'58NIU1',NULL),(59,'Caja',26,'BX',100.0000,0.0000,0.0000,0.0000,1,'59BX100',NULL),(60,'Blíster',26,'BL',10.0000,0.0000,0.0000,0.0000,1,'60BL10',NULL),(61,'Unidad',26,'NIU',1.0000,1.5000,0.0000,0.0000,1,'61NIU1',NULL),(62,'Unidad',27,'NIU',1.0000,2.0000,0.0000,0.0000,1,'62NIU1',NULL),(63,'Unidad',28,'NIU',1.0000,2.0000,0.0000,0.0000,1,'63NIU1',NULL),(64,'Caja',29,'BX',100.0000,0.0000,0.0000,0.0000,1,'64BX100',NULL),(65,'Blíster',29,'BL',10.0000,0.0000,0.0000,0.0000,1,'65BL10',NULL),(66,'Unidad',29,'NIU',1.0000,1.5000,0.0000,0.0000,1,'66NIU1',NULL),(67,'Unidad',30,'NIU',1.0000,0.7000,0.0000,0.0000,1,'67NIU1',NULL),(68,'Unidad',31,'NIU',1.0000,1.0000,0.0000,0.0000,1,'68NIU1',NULL),(69,'Unidad',32,'NIU',1.0000,1.0000,0.0000,0.0000,1,'69NIU1',NULL),(70,'Unidad',33,'NIU',1.0000,4.5000,0.0000,0.0000,1,'70NIU1',NULL),(71,'Unidad',34,'NIU',1.0000,10.0000,0.0000,0.0000,1,'71NIU1',NULL),(72,'Unidad',35,'NIU',1.0000,10.0000,0.0000,0.0000,1,'72NIU1',NULL),(73,'Unidad',36,'NIU',1.0000,2.5000,0.0000,0.0000,1,'73NIU1',NULL),(74,'Unidad',37,'NIU',1.0000,2.5000,0.0000,0.0000,1,'74NIU1',NULL),(75,'Unidad',38,'NIU',1.0000,2.0000,0.0000,0.0000,1,'75NIU1',NULL),(76,'Unidad',39,'NIU',1.0000,2.5000,0.0000,0.0000,1,'76NIU1',NULL),(77,'Unidad',40,'NIU',1.0000,2.0000,0.0000,0.0000,1,'77NIU1',NULL),(78,'Unidad',41,'NIU',1.0000,5.0000,0.0000,0.0000,1,'78NIU1',NULL),(79,'Unidad',42,'NIU',1.0000,3.0000,0.0000,0.0000,1,'79NIU1',NULL),(80,'Unidad',43,'NIU',1.0000,1.5000,0.0000,0.0000,1,'80NIU1',NULL),(81,'Unidad',44,'NIU',1.0000,7.0000,0.0000,0.0000,1,'81NIU1',NULL),(82,'Unidad',45,'NIU',1.0000,9.0000,0.0000,0.0000,1,'82NIU1',NULL),(83,'Unidad',46,'NIU',1.0000,12.5000,0.0000,0.0000,1,'83NIU1',NULL),(84,'Unidad',47,'NIU',1.0000,12.5000,0.0000,0.0000,1,'84NIU1',NULL),(85,'Unidad',48,'NIU',1.0000,2.5000,0.0000,0.0000,1,'85NIU1',NULL),(86,'Unidad',49,'NIU',1.0000,3.0000,0.0000,0.0000,1,'86NIU1',NULL),(87,'Unidad',50,'NIU',1.0000,1.0000,0.0000,0.0000,1,'87NIU1',NULL),(88,'Unidad',51,'NIU',1.0000,0.5000,0.0000,0.0000,1,'88NIU1',NULL),(89,'Unidad',52,'NIU',1.0000,0.1000,0.0000,0.0000,1,'89NIU1',NULL),(90,'Unidad',53,'NIU',1.0000,0.5000,0.0000,0.0000,1,'90NIU1',NULL),(91,'Unidad',54,'NIU',1.0000,1.5000,0.0000,0.0000,1,'91NIU1',NULL),(92,'Unidad',55,'NIU',1.0000,1.5000,0.0000,0.0000,1,'92NIU1',NULL),(93,'Unidad',56,'NIU',1.0000,2.5000,0.0000,0.0000,1,'93NIU1',NULL),(94,'Unidad',57,'NIU',1.0000,4.5000,0.0000,0.0000,1,'94NIU1',NULL),(95,'Unidad',58,'NIU',1.0000,4.5000,0.0000,0.0000,1,'95NIU1',NULL),(96,'Unidad',59,'NIU',1.0000,4.0000,0.0000,0.0000,1,'96NIU1',NULL),(97,'Unidad',60,'NIU',1.0000,3.5000,0.0000,0.0000,1,'97NIU1',NULL),(98,'Unidad',61,'NIU',1.0000,2.0000,0.0000,0.0000,1,'98NIU1',NULL),(99,'Unidad',62,'NIU',1.0000,1.5000,0.0000,0.0000,1,'99NIU1',NULL),(100,'Unidad',63,'NIU',1.0000,5.0000,0.0000,0.0000,1,'100NIU1',NULL),(101,'Unidad',64,'NIU',1.0000,2.0000,0.0000,0.0000,1,'101NIU1',NULL),(102,'Unidad',65,'NIU',1.0000,3.0000,0.0000,0.0000,1,'102NIU1',NULL),(103,'Unidad',66,'NIU',1.0000,2.0000,0.0000,0.0000,1,'103NIU1',NULL),(104,'Unidad',67,'NIU',1.0000,3.0000,0.0000,0.0000,1,'104NIU1',NULL),(105,'Unidad',68,'NIU',1.0000,1.0000,0.0000,0.0000,1,'105NIU1',NULL),(106,'Unidad',69,'NIU',1.0000,5.0000,0.0000,0.0000,1,'106NIU1',NULL),(107,'Unidad',70,'NIU',1.0000,2.0000,0.0000,0.0000,1,'107NIU1',NULL),(108,'Unidad',71,'NIU',1.0000,3.0000,0.0000,0.0000,1,'108NIU1',NULL),(109,'Unidad',72,'NIU',1.0000,5.0000,0.0000,0.0000,1,'109NIU1',NULL),(110,'Unidad',73,'NIU',1.0000,1.0000,0.0000,0.0000,1,'110NIU1',NULL),(111,'Unidad',74,'NIU',1.0000,1.0000,0.0000,0.0000,1,'111NIU1',NULL),(112,'Unidad',75,'NIU',1.0000,1.0000,0.0000,0.0000,1,'112NIU1',NULL),(113,'Unidad',76,'NIU',1.0000,1.0000,0.0000,0.0000,1,'113NIU1',NULL),(114,'Unidad',77,'NIU',1.0000,1.0000,0.0000,0.0000,1,'114NIU1',NULL),(115,'Unidad',78,'NIU',1.0000,0.5000,0.0000,0.0000,1,'115NIU1',NULL),(116,'Unidad',79,'NIU',1.0000,1.0000,0.0000,0.0000,1,'116NIU1',NULL),(117,'Unidad',80,'NIU',1.0000,3.5000,0.0000,0.0000,1,'117NIU1',NULL),(118,'Unidad',81,'NIU',1.0000,2.0000,0.0000,0.0000,1,'118NIU1',NULL),(119,'Unidad',82,'NIU',1.0000,4.5000,0.0000,0.0000,1,'119NIU1',NULL),(120,'Unidad',83,'NIU',1.0000,4.0000,0.0000,0.0000,1,'120NIU1',NULL),(121,'Unidad',84,'NIU',1.0000,15.0000,0.0000,0.0000,1,'121NIU1',NULL),(122,'Unidad',85,'NIU',1.0000,7.0000,0.0000,0.0000,1,'122NIU1',NULL),(123,'Unidad',86,'NIU',1.0000,5.0000,0.0000,0.0000,1,'123NIU1',NULL),(124,'Unidad',87,'NIU',1.0000,12.0000,0.0000,0.0000,1,'124NIU1',NULL),(125,'Unidad',88,'NIU',1.0000,3.5000,0.0000,0.0000,1,'125NIU1',NULL),(126,'Unidad',89,'NIU',1.0000,3.0000,0.0000,0.0000,1,'126NIU1',NULL),(127,'Unidad',90,'NIU',1.0000,2.0000,0.0000,0.0000,1,'127NIU1',NULL),(128,'Unidad',91,'NIU',1.0000,2.0000,0.0000,0.0000,1,'128NIU1',NULL),(129,'Unidad',92,'NIU',1.0000,2.5000,0.0000,0.0000,1,'129NIU1',NULL),(130,'Unidad',93,'NIU',1.0000,2.0000,0.0000,0.0000,1,'130NIU1',NULL),(131,'Unidad',94,'NIU',1.0000,3.0000,0.0000,0.0000,1,'131NIU1',NULL),(132,'Unidad',95,'NIU',1.0000,4.5000,0.0000,0.0000,1,'132NIU1',NULL),(133,'Unidad',96,'NIU',1.0000,4.5000,0.0000,0.0000,1,'133NIU1',NULL),(134,'Unidad',97,'NIU',1.0000,4.5000,0.0000,0.0000,1,'134NIU1',NULL),(135,'Unidad',98,'NIU',1.0000,4.5000,0.0000,0.0000,1,'135NIU1',NULL),(136,'Unidad',99,'NIU',1.0000,4.5000,0.0000,0.0000,1,'136NIU1',NULL),(137,'Unidad',100,'NIU',1.0000,6.5000,0.0000,0.0000,1,'137NIU1',NULL),(138,'Unidad',101,'NIU',1.0000,25.0000,0.0000,0.0000,1,'138NIU1',NULL),(139,'Unidad',102,'NIU',1.0000,2.0000,0.0000,0.0000,1,'139NIU1',NULL),(140,'Unidad',103,'NIU',1.0000,12.0000,0.0000,0.0000,1,'140NIU1',NULL),(141,'Unidad',104,'NIU',1.0000,12.0000,0.0000,0.0000,1,'141NIU1',NULL),(142,'Unidad',105,'NIU',1.0000,10.0000,0.0000,0.0000,1,'142NIU1',NULL),(143,'Unidad',106,'NIU',1.0000,11.0000,0.0000,0.0000,1,'143NIU1',NULL),(144,'Unidad',107,'NIU',1.0000,12.0000,0.0000,0.0000,1,'144NIU1',NULL),(145,'Unidad',108,'NIU',1.0000,12.0000,0.0000,0.0000,1,'145NIU1',NULL),(146,'Unidad',109,'NIU',1.0000,9.0000,0.0000,0.0000,1,'146NIU1',NULL),(147,'Unidad',110,'NIU',1.0000,15.0000,0.0000,0.0000,1,'147NIU1',NULL),(148,'Unidad',111,'NIU',1.0000,9.0000,0.0000,0.0000,1,'148NIU1',NULL),(149,'Unidad',112,'NIU',1.0000,18.0000,0.0000,0.0000,1,'149NIU1',NULL),(150,'Unidad',113,'NIU',1.0000,22.0000,0.0000,0.0000,1,'150NIU1',NULL),(151,'Unidad',114,'NIU',1.0000,18.5000,0.0000,0.0000,1,'151NIU1',NULL),(152,'Unidad',115,'NIU',1.0000,15.0000,0.0000,0.0000,1,'152NIU1',NULL),(153,'Unidad',116,'NIU',1.0000,20.0000,0.0000,0.0000,1,'153NIU1',NULL),(154,'Unidad',117,'NIU',1.0000,9.0000,0.0000,0.0000,1,'154NIU1',NULL),(155,'Unidad',118,'NIU',1.0000,7.0000,0.0000,0.0000,1,'155NIU1',NULL),(156,'Unidad',119,'NIU',1.0000,4.5000,0.0000,0.0000,1,'156NIU1',NULL),(157,'Unidad',120,'NIU',1.0000,2.5000,0.0000,0.0000,1,'157NIU1',NULL),(158,'Unidad',121,'NIU',1.0000,5.0000,0.0000,0.0000,1,'158NIU1',NULL),(159,'Unidad',122,'NIU',1.0000,2.5000,0.0000,0.0000,1,'159NIU1',NULL),(160,'Unidad',123,'NIU',1.0000,4.0000,0.0000,0.0000,1,'160NIU1',NULL),(161,'Unidad',124,'NIU',1.0000,4.0000,0.0000,0.0000,1,'161NIU1',NULL),(162,'Unidad',125,'NIU',1.0000,3.0000,0.0000,0.0000,1,'162NIU1',NULL),(163,'Unidad',126,'NIU',1.0000,4.0000,0.0000,0.0000,1,'163NIU1',NULL),(164,'Unidad',127,'NIU',1.0000,5.0000,0.0000,0.0000,1,'164NIU1',NULL),(165,'Unidad',128,'NIU',1.0000,35.0000,0.0000,0.0000,1,'165NIU1',NULL),(166,'Unidad',129,'NIU',1.0000,40.0000,0.0000,0.0000,1,'166NIU1',NULL),(167,'Unidad',130,'NIU',1.0000,92.9000,0.0000,0.0000,1,'167NIU1',NULL),(168,'Unidad',131,'NIU',1.0000,92.9000,0.0000,0.0000,1,'168NIU1',NULL),(169,'Unidad',132,'NIU',1.0000,60.0000,0.0000,0.0000,1,'169NIU1',NULL),(170,'Unidad',133,'NIU',1.0000,102.9000,0.0000,0.0000,1,'170NIU1',NULL),(171,'Unidad',134,'NIU',1.0000,95.9000,0.0000,0.0000,1,'171NIU1',NULL),(172,'Unidad',135,'NIU',1.0000,95.9000,0.0000,0.0000,1,'172NIU1',NULL),(173,'Unidad',136,'NIU',1.0000,45.0000,0.0000,0.0000,1,'173NIU1',NULL),(174,'Unidad',137,'NIU',1.0000,45.0000,0.0000,0.0000,1,'174NIU1',NULL),(175,'Unidad',138,'NIU',1.0000,39.9000,0.0000,0.0000,1,'175NIU1',NULL),(176,'Unidad',139,'NIU',1.0000,4.5000,0.0000,0.0000,1,'176NIU1',NULL),(177,'Unidad',140,'NIU',1.0000,4.5000,0.0000,0.0000,1,'177NIU1',NULL),(178,'Unidad',141,'NIU',1.0000,4.5000,0.0000,0.0000,1,'178NIU1',NULL),(179,'Unidad',142,'NIU',1.0000,4.5000,0.0000,0.0000,1,'179NIU1',NULL),(180,'Unidad',143,'NIU',1.0000,11.0000,0.0000,0.0000,1,'180NIU1',NULL),(181,'Unidad',144,'NIU',1.0000,10.0000,0.0000,0.0000,1,'181NIU1',NULL),(182,'Unidad',145,'NIU',1.0000,2.0000,0.0000,0.0000,1,'182NIU1',NULL),(183,'Unidad',146,'NIU',1.0000,15.0000,0.0000,0.0000,1,'183NIU1',NULL),(184,'Unidad',147,'NIU',1.0000,17.0000,0.0000,0.0000,1,'184NIU1',NULL),(185,'Unidad',148,'NIU',1.0000,11.0000,0.0000,0.0000,1,'185NIU1',NULL),(186,'Unidad',149,'NIU',1.0000,5.0000,0.0000,0.0000,1,'186NIU1',NULL),(187,'Unidad',150,'NIU',1.0000,19.0000,0.0000,0.0000,1,'187NIU1',NULL),(188,'Unidad',151,'NIU',1.0000,19.0000,0.0000,0.0000,1,'188NIU1',NULL),(189,'Unidad',152,'NIU',1.0000,20.0000,0.0000,0.0000,1,'189NIU1',NULL),(190,'Unidad',153,'NIU',1.0000,16.0000,0.0000,0.0000,1,'190NIU1',NULL),(191,'Unidad',154,'NIU',1.0000,17.0000,0.0000,0.0000,1,'191NIU1',NULL),(192,'Unidad',155,'NIU',1.0000,5.0000,0.0000,0.0000,1,'192NIU1',NULL),(193,'Unidad',156,'NIU',1.0000,15.0000,0.0000,0.0000,1,'193NIU1',NULL),(194,'Unidad',157,'NIU',1.0000,15.0000,0.0000,0.0000,1,'194NIU1',NULL),(195,'Unidad',158,'NIU',1.0000,15.0000,0.0000,0.0000,1,'195NIU1',NULL),(196,'Unidad',159,'NIU',1.0000,15.0000,0.0000,0.0000,1,'196NIU1',NULL),(197,'Unidad',160,'NIU',1.0000,15.0000,0.0000,0.0000,1,'197NIU1',NULL),(198,'Unidad',161,'NIU',1.0000,15.0000,0.0000,0.0000,1,'198NIU1',NULL),(199,'Unidad',162,'NIU',1.0000,16.0000,0.0000,0.0000,1,'199NIU1',NULL),(200,'Unidad',163,'NIU',1.0000,16.5000,0.0000,0.0000,1,'200NIU1',NULL),(201,'Unidad',164,'NIU',1.0000,5.0000,0.0000,0.0000,1,'201NIU1',NULL),(202,'Unidad',165,'NIU',1.0000,2.5000,0.0000,0.0000,1,'202NIU1',NULL),(203,'Unidad',166,'NIU',1.0000,2.0000,0.0000,0.0000,1,'203NIU1',NULL),(204,'Unidad',167,'NIU',1.0000,10.0000,0.0000,0.0000,1,'204NIU1',NULL),(205,'Unidad',168,'NIU',1.0000,20.0000,0.0000,0.0000,1,'205NIU1',NULL),(206,'Unidad',169,'NIU',1.0000,20.0000,0.0000,0.0000,1,'206NIU1',NULL),(207,'Unidad',170,'NIU',1.0000,15.0000,0.0000,0.0000,1,'207NIU1',NULL),(208,'Unidad',171,'NIU',1.0000,15.0000,0.0000,0.0000,1,'208NIU1',NULL),(209,'Unidad',172,'NIU',1.0000,22.0000,0.0000,0.0000,1,'209NIU1',NULL),(210,'Unidad',173,'NIU',1.0000,16.0000,0.0000,0.0000,1,'210NIU1',NULL),(211,'Unidad',174,'NIU',1.0000,3.0000,0.0000,0.0000,1,'211NIU1',NULL),(212,'Unidad',175,'NIU',1.0000,1.5000,0.0000,0.0000,1,'212NIU1',NULL),(213,'Unidad',176,'NIU',1.0000,19.0000,0.0000,0.0000,1,'213NIU1',NULL),(214,'Unidad',177,'NIU',1.0000,20.0000,0.0000,0.0000,1,'214NIU1',NULL),(215,'Unidad',178,'NIU',1.0000,7.0000,0.0000,0.0000,1,'215NIU1',NULL),(216,'Unidad',179,'NIU',1.0000,11.0000,0.0000,0.0000,1,'216NIU1',NULL),(217,'Unidad',180,'NIU',1.0000,13.0000,0.0000,0.0000,1,'217NIU1',NULL),(218,'Unidad',181,'NIU',1.0000,2.5000,0.0000,0.0000,1,'218NIU1',NULL),(219,'Unidad',182,'NIU',1.0000,3.5000,0.0000,0.0000,1,'219NIU1',NULL),(220,'Unidad',183,'NIU',1.0000,5.0000,0.0000,0.0000,1,'220NIU1',NULL),(221,'Unidad',184,'NIU',1.0000,3.0000,0.0000,0.0000,1,'221NIU1',NULL),(222,'Unidad',185,'NIU',1.0000,12.0000,0.0000,0.0000,1,'222NIU1',NULL),(223,'Unidad',186,'NIU',1.0000,13.0000,0.0000,0.0000,1,'223NIU1',NULL),(224,'Unidad',187,'NIU',1.0000,12.0000,0.0000,0.0000,1,'224NIU1',NULL),(225,'Unidad',188,'NIU',1.0000,13.0000,0.0000,0.0000,1,'225NIU1',NULL),(226,'Unidad',189,'NIU',1.0000,5.0000,0.0000,0.0000,1,'226NIU1',NULL),(227,'Unidad',190,'NIU',1.0000,5.0000,0.0000,0.0000,1,'227NIU1',NULL),(228,'Unidad',191,'NIU',1.0000,4.5000,0.0000,0.0000,1,'228NIU1',NULL),(229,'Unidad',192,'NIU',1.0000,4.5000,0.0000,0.0000,1,'229NIU1',NULL),(230,'Unidad',193,'NIU',1.0000,5.0000,0.0000,0.0000,1,'230NIU1',NULL),(231,'Unidad',194,'NIU',1.0000,4.0000,0.0000,0.0000,1,'231NIU1',NULL),(232,'Unidad',195,'NIU',1.0000,5.0000,0.0000,0.0000,1,'232NIU1',NULL),(233,'Unidad',196,'NIU',1.0000,7.0000,0.0000,0.0000,1,'233NIU1',NULL),(234,'Unidad',197,'NIU',1.0000,12.0000,0.0000,0.0000,1,'234NIU1',NULL),(235,'Unidad',198,'NIU',1.0000,12.0000,0.0000,0.0000,1,'235NIU1',NULL),(236,'Unidad',199,'NIU',1.0000,12.0000,0.0000,0.0000,1,'236NIU1',NULL),(237,'Unidad',200,'NIU',1.0000,12.0000,0.0000,0.0000,1,'237NIU1',NULL),(238,'Unidad',201,'NIU',1.0000,12.0000,0.0000,0.0000,1,'238NIU1',NULL),(239,'Unidad',202,'NIU',1.0000,12.0000,0.0000,0.0000,1,'239NIU1',NULL),(240,'Unidad',203,'NIU',1.0000,12.0000,0.0000,0.0000,1,'240NIU1',NULL),(241,'Unidad',204,'NIU',1.0000,24.0000,0.0000,0.0000,1,'241NIU1',NULL),(242,'Unidad',205,'NIU',1.0000,4.5000,0.0000,0.0000,1,'242NIU1',NULL),(243,'Unidad',206,'NIU',1.0000,4.0000,0.0000,0.0000,1,'243NIU1',NULL),(244,'Unidad',207,'NIU',1.0000,5.0000,0.0000,0.0000,1,'244NIU1',NULL),(245,'Unidad',208,'NIU',1.0000,4.5000,0.0000,0.0000,1,'245NIU1',NULL),(246,'Unidad',209,'NIU',1.0000,4.5000,0.0000,0.0000,1,'246NIU1',NULL),(247,'Caja',210,'BX',100.0000,0.0000,0.0000,0.0000,1,'247BX100',NULL),(248,'Blíster',210,'BL',10.0000,0.0000,0.0000,0.0000,1,'248BL10',NULL),(249,'Unidad',210,'NIU',1.0000,2.0000,0.0000,0.0000,1,'249NIU1',NULL),(250,'Unidad',211,'NIU',1.0000,3.0000,0.0000,0.0000,1,'250NIU1',NULL),(251,'Unidad',212,'NIU',1.0000,1.5000,0.0000,0.0000,1,'251NIU1',NULL),(252,'Unidad',213,'NIU',1.0000,2.0000,0.0000,0.0000,1,'252NIU1',NULL),(253,'Unidad',214,'NIU',1.0000,2.0000,0.0000,0.0000,1,'253NIU1',NULL),(254,'Unidad',215,'NIU',1.0000,1.5000,0.0000,0.0000,1,'254NIU1',NULL),(255,'Unidad',216,'NIU',1.0000,2.0000,0.0000,0.0000,1,'255NIU1',NULL),(256,'Unidad',217,'NIU',1.0000,1.5000,0.0000,0.0000,1,'256NIU1',NULL),(257,'Unidad',218,'NIU',1.0000,2.5000,0.0000,0.0000,1,'257NIU1',NULL),(258,'Unidad',219,'NIU',1.0000,0.5000,0.0000,0.0000,1,'258NIU1',NULL),(259,'Unidad',220,'NIU',1.0000,0.7000,0.0000,0.0000,1,'259NIU1',NULL),(260,'Unidad',221,'NIU',1.0000,1.5000,0.0000,0.0000,1,'260NIU1',NULL),(261,'Unidad',222,'NIU',1.0000,2.5000,0.0000,0.0000,1,'261NIU1',NULL),(262,'Unidad',223,'NIU',1.0000,1.5000,0.0000,0.0000,1,'262NIU1',NULL),(263,'Unidad',224,'NIU',1.0000,3.0000,0.0000,0.0000,1,'263NIU1',NULL),(264,'Unidad',225,'NIU',1.0000,0.5000,0.0000,0.0000,1,'264NIU1',NULL),(265,'Unidad',226,'NIU',1.0000,0.5000,0.0000,0.0000,1,'265NIU1',NULL),(266,'Unidad',227,'NIU',1.0000,0.5000,0.0000,0.0000,1,'266NIU1',NULL),(267,'Unidad',228,'NIU',1.0000,0.5000,0.0000,0.0000,1,'267NIU1',NULL),(268,'Unidad',229,'NIU',1.0000,2.0000,0.0000,0.0000,1,'268NIU1',NULL),(269,'Unidad',230,'NIU',1.0000,0.7000,0.0000,0.0000,1,'269NIU1',NULL),(270,'Unidad',231,'NIU',1.0000,3.0000,0.0000,0.0000,1,'270NIU1',NULL),(271,'Unidad',232,'NIU',1.0000,1.5000,0.0000,0.0000,1,'271NIU1',NULL),(272,'Unidad',233,'NIU',1.0000,0.5000,0.0000,0.0000,1,'272NIU1',NULL),(273,'Unidad',234,'NIU',1.0000,2.5000,0.0000,0.0000,1,'273NIU1',NULL),(274,'Unidad',235,'NIU',1.0000,2.0000,0.0000,0.0000,1,'274NIU1',NULL),(275,'Unidad',236,'NIU',1.0000,1.5000,0.0000,0.0000,1,'275NIU1',NULL),(276,'Unidad',237,'NIU',1.0000,0.5000,0.0000,0.0000,1,'276NIU1',NULL),(277,'Caja',238,'BX',30.0000,0.0000,0.0000,0.0000,1,'277BX30',NULL),(278,'Blíster',238,'BL',10.0000,0.0000,0.0000,0.0000,1,'278BL10',NULL),(279,'Unidad',238,'NIU',1.0000,1.0000,0.0000,0.0000,1,'279NIU1',NULL),(280,'Caja',239,'BX',30.0000,0.0000,0.0000,0.0000,1,'280BX30',NULL),(281,'Blíster',239,'BL',10.0000,0.0000,0.0000,0.0000,1,'281BL10',NULL),(282,'Unidad',239,'NIU',1.0000,1.5000,0.0000,0.0000,1,'282NIU1',NULL),(283,'Caja',240,'BX',30.0000,0.0000,0.0000,0.0000,1,'283BX30',NULL),(284,'Blíster',240,'BL',10.0000,0.0000,0.0000,0.0000,1,'284BL10',NULL),(285,'Unidad',240,'NIU',1.0000,1.5000,0.0000,0.0000,1,'285NIU1',NULL),(286,'Caja',241,'BX',10.0000,0.0000,0.0000,0.0000,1,'286BX10',NULL),(287,'Unidad',241,'NIU',1.0000,2.5000,0.0000,0.0000,1,'287NIU1',NULL),(288,'Unidad',242,'NIU',1.0000,2.0000,0.0000,0.0000,1,'288NIU1',NULL),(289,'Unidad',243,'NIU',1.0000,0.7000,0.0000,0.0000,1,'289NIU1',NULL),(290,'Unidad',244,'NIU',1.0000,2.0000,0.0000,0.0000,1,'290NIU1',NULL),(291,'Unidad',245,'NIU',1.0000,0.5000,0.0000,0.0000,1,'291NIU1',NULL),(292,'Unidad',246,'NIU',1.0000,0.5000,0.0000,0.0000,1,'292NIU1',NULL),(293,'Unidad',247,'NIU',1.0000,0.5000,0.0000,0.0000,1,'293NIU1',NULL),(294,'Unidad',248,'NIU',1.0000,1.5000,0.0000,0.0000,1,'294NIU1',NULL),(295,'Unidad',249,'NIU',1.0000,3.0000,0.0000,0.0000,1,'295NIU1',NULL),(296,'Unidad',250,'NIU',1.0000,3.5000,0.0000,0.0000,1,'296NIU1',NULL),(297,'Unidad',251,'NIU',1.0000,3.5000,0.0000,0.0000,1,'297NIU1',NULL),(298,'Unidad',252,'NIU',1.0000,2.5000,0.0000,0.0000,1,'298NIU1',NULL),(299,'Unidad',253,'NIU',1.0000,2.5000,0.0000,0.0000,1,'299NIU1',NULL),(300,'Unidad',254,'NIU',1.0000,0.5000,0.0000,0.0000,1,'300NIU1',NULL),(301,'Unidad',255,'NIU',1.0000,3.0000,0.0000,0.0000,1,'301NIU1',NULL),(302,'Unidad',256,'NIU',1.0000,1.0000,0.0000,0.0000,1,'302NIU1',NULL),(303,'Unidad',257,'NIU',1.0000,0.5000,0.0000,0.0000,1,'303NIU1',NULL),(304,'Unidad',258,'NIU',1.0000,2.0000,0.0000,0.0000,1,'304NIU1',NULL),(305,'Unidad',259,'NIU',1.0000,1.5000,0.0000,0.0000,1,'305NIU1',NULL),(306,'Unidad',260,'NIU',1.0000,2.0000,0.0000,0.0000,1,'306NIU1',NULL),(307,'Unidad',261,'NIU',1.0000,0.7000,0.0000,0.0000,1,'307NIU1',NULL),(308,'Unidad',262,'NIU',1.0000,0.5000,0.0000,0.0000,1,'308NIU1',NULL),(309,'Unidad',263,'NIU',1.0000,0.4000,0.0000,0.0000,1,'309NIU1',NULL),(310,'Unidad',264,'NIU',1.0000,0.7000,0.0000,0.0000,1,'310NIU1',NULL),(311,'Unidad',265,'NIU',1.0000,8.0000,0.0000,0.0000,1,'311NIU1',NULL),(312,'Unidad',266,'NIU',1.0000,12.5000,0.0000,0.0000,1,'312NIU1',NULL),(313,'Unidad',267,'NIU',1.0000,22.5000,0.0000,0.0000,1,'313NIU1',NULL),(314,'Unidad',268,'NIU',1.0000,12.0000,0.0000,0.0000,1,'314NIU1',NULL),(315,'Unidad',269,'NIU',1.0000,28.5000,0.0000,0.0000,1,'315NIU1',NULL),(316,'Unidad',270,'NIU',1.0000,28.5000,0.0000,0.0000,1,'316NIU1',NULL),(317,'Unidad',271,'NIU',1.0000,15.0000,0.0000,0.0000,1,'317NIU1',NULL),(318,'Unidad',272,'NIU',1.0000,14.0000,0.0000,0.0000,1,'318NIU1',NULL),(319,'Unidad',273,'NIU',1.0000,18.0000,0.0000,0.0000,1,'319NIU1',NULL),(320,'Unidad',274,'NIU',1.0000,4.5000,0.0000,0.0000,1,'320NIU1',NULL),(321,'Unidad',275,'NIU',1.0000,5.0000,0.0000,0.0000,1,'321NIU1',NULL),(322,'Unidad',276,'NIU',1.0000,3.5000,0.0000,0.0000,1,'322NIU1',NULL),(323,'Unidad',277,'NIU',1.0000,5.0000,0.0000,0.0000,1,'323NIU1',NULL),(324,'Unidad',278,'NIU',1.0000,13.5000,0.0000,0.0000,1,'324NIU1',NULL),(325,'Unidad',279,'NIU',1.0000,15.0000,0.0000,0.0000,1,'325NIU1',NULL),(326,'Unidad',280,'NIU',1.0000,7.0000,0.0000,0.0000,1,'326NIU1',NULL),(327,'Unidad',281,'NIU',1.0000,4.5000,0.0000,0.0000,1,'327NIU1',NULL),(328,'Unidad',282,'NIU',1.0000,17.0000,0.0000,0.0000,1,'328NIU1',NULL),(329,'Unidad',283,'NIU',1.0000,5.0000,0.0000,0.0000,1,'329NIU1',NULL),(330,'Unidad',284,'NIU',1.0000,5.0000,0.0000,0.0000,1,'330NIU1',NULL),(331,'Unidad',285,'NIU',1.0000,10.0000,0.0000,0.0000,1,'331NIU1',NULL),(332,'Unidad',286,'NIU',1.0000,4.0000,0.0000,0.0000,1,'332NIU1',NULL),(333,'Unidad',287,'NIU',1.0000,6.0000,0.0000,0.0000,1,'333NIU1',NULL),(334,'Unidad',288,'NIU',1.0000,8.0000,0.0000,0.0000,1,'334NIU1',NULL),(335,'Unidad',289,'NIU',1.0000,6.0000,0.0000,0.0000,1,'335NIU1',NULL),(336,'Unidad',290,'NIU',1.0000,14.0000,0.0000,0.0000,1,'336NIU1',NULL),(337,'Unidad',291,'NIU',1.0000,18.5000,0.0000,0.0000,1,'337NIU1',NULL),(338,'Unidad',292,'NIU',1.0000,6.0000,0.0000,0.0000,1,'338NIU1',NULL),(339,'Unidad',293,'NIU',1.0000,3.5000,0.0000,0.0000,1,'339NIU1',NULL),(340,'Unidad',294,'NIU',1.0000,8.0000,0.0000,0.0000,1,'340NIU1',NULL),(341,'Unidad',295,'NIU',1.0000,7.0000,0.0000,0.0000,1,'341NIU1',NULL),(342,'Unidad',296,'NIU',1.0000,20.0000,0.0000,0.0000,1,'342NIU1',NULL),(343,'Unidad',297,'NIU',1.0000,15.0000,0.0000,0.0000,1,'343NIU1',NULL),(344,'Unidad',298,'NIU',1.0000,3.0000,0.0000,0.0000,1,'344NIU1',NULL),(345,'Unidad',299,'NIU',1.0000,3.5000,0.0000,0.0000,1,'345NIU1',NULL),(346,'Unidad',300,'NIU',1.0000,5.0000,0.0000,0.0000,1,'346NIU1',NULL),(347,'Unidad',301,'NIU',1.0000,7.0000,0.0000,0.0000,1,'347NIU1',NULL),(348,'Unidad',302,'NIU',1.0000,8.0000,0.0000,0.0000,1,'348NIU1',NULL),(349,'Unidad',303,'NIU',1.0000,5.0000,0.0000,0.0000,1,'349NIU1',NULL),(350,'Unidad',304,'NIU',1.0000,18.5000,0.0000,0.0000,1,'350NIU1',NULL),(351,'Unidad',305,'NIU',1.0000,22.0000,0.0000,0.0000,1,'351NIU1',NULL),(352,'Unidad',306,'NIU',1.0000,25.0000,0.0000,0.0000,1,'352NIU1',NULL),(353,'Unidad',307,'NIU',1.0000,23.0000,0.0000,0.0000,1,'353NIU1',NULL),(354,'Unidad',308,'NIU',1.0000,12.0000,0.0000,0.0000,1,'354NIU1',NULL),(355,'Unidad',309,'NIU',1.0000,12.0000,0.0000,0.0000,1,'355NIU1',NULL),(356,'Unidad',310,'NIU',1.0000,12.0000,0.0000,0.0000,1,'356NIU1',NULL),(357,'Unidad',311,'NIU',1.0000,8.0000,0.0000,0.0000,1,'357NIU1',NULL),(358,'Unidad',312,'NIU',1.0000,15.0000,0.0000,0.0000,1,'358NIU1',NULL),(359,'Unidad',313,'NIU',1.0000,15.0000,0.0000,0.0000,1,'359NIU1',NULL),(360,'Unidad',314,'NIU',1.0000,17.0000,0.0000,0.0000,1,'360NIU1',NULL),(361,'Unidad',315,'NIU',1.0000,7.0000,0.0000,0.0000,1,'361NIU1',NULL),(362,'Unidad',316,'NIU',1.0000,16.0000,0.0000,0.0000,1,'362NIU1',NULL),(363,'Unidad',317,'NIU',1.0000,25.0000,0.0000,0.0000,1,'363NIU1',NULL),(364,'Unidad',318,'NIU',1.0000,16.0000,0.0000,0.0000,1,'364NIU1',NULL),(365,'Unidad',319,'NIU',1.0000,18.5000,0.0000,0.0000,1,'365NIU1',NULL),(366,'Unidad',320,'NIU',1.0000,1.0000,0.0000,0.0000,1,'366NIU1',NULL),(367,'Unidad',321,'NIU',1.0000,12.5000,0.0000,0.0000,1,'367NIU1',NULL),(368,'Unidad',322,'NIU',1.0000,80.0000,0.0000,0.0000,1,'368NIU1',NULL),(369,'Unidad',323,'NIU',1.0000,18.0000,0.0000,0.0000,1,'369NIU1',NULL),(370,'Unidad',324,'NIU',1.0000,5.0000,0.0000,0.0000,1,'370NIU1',NULL),(371,'Unidad',325,'NIU',1.0000,25.0000,0.0000,0.0000,1,'371NIU1',NULL),(372,'Unidad',326,'NIU',1.0000,7.0000,0.0000,0.0000,1,'372NIU1',NULL),(373,'Unidad',327,'NIU',1.0000,5.0000,0.0000,0.0000,1,'373NIU1',NULL),(374,'Unidad',328,'NIU',1.0000,5.0000,0.0000,0.0000,1,'374NIU1',NULL),(375,'Unidad',329,'NIU',1.0000,18.0000,0.0000,0.0000,1,'375NIU1',NULL),(376,'Unidad',330,'NIU',1.0000,8.0000,0.0000,0.0000,1,'376NIU1',NULL),(377,'Unidad',331,'NIU',1.0000,6.0000,0.0000,0.0000,1,'377NIU1',NULL),(378,'Unidad',332,'NIU',1.0000,5.0000,0.0000,0.0000,1,'378NIU1',NULL),(379,'Unidad',333,'NIU',1.0000,8.0000,0.0000,0.0000,1,'379NIU1',NULL),(380,'Unidad',334,'NIU',1.0000,25.0000,0.0000,0.0000,1,'380NIU1',NULL),(381,'Unidad',335,'NIU',1.0000,25.0000,0.0000,0.0000,1,'381NIU1',NULL),(382,'Unidad',336,'NIU',1.0000,5.0000,0.0000,0.0000,1,'382NIU1',NULL),(383,'Unidad',337,'NIU',1.0000,10.0000,0.0000,0.0000,1,'383NIU1',NULL),(384,'Unidad',338,'NIU',1.0000,7.0000,0.0000,0.0000,1,'384NIU1',NULL),(385,'Unidad',339,'NIU',1.0000,5.0000,0.0000,0.0000,1,'385NIU1',NULL),(386,'Unidad',340,'NIU',1.0000,20.0000,0.0000,0.0000,1,'386NIU1',NULL),(387,'Unidad',341,'NIU',1.0000,18.0000,0.0000,0.0000,1,'387NIU1',NULL),(388,'Unidad',342,'NIU',1.0000,5.0000,0.0000,0.0000,1,'388NIU1',NULL),(389,'Unidad',343,'NIU',1.0000,10.0000,0.0000,0.0000,1,'389NIU1',NULL),(390,'Unidad',344,'NIU',1.0000,20.0000,0.0000,0.0000,1,'390NIU1',NULL),(391,'Unidad',345,'NIU',1.0000,6.0000,0.0000,0.0000,1,'391NIU1',NULL),(392,'Unidad',346,'NIU',1.0000,5.0000,0.0000,0.0000,1,'392NIU1',NULL),(393,'Unidad',347,'NIU',1.0000,25.0000,0.0000,0.0000,1,'393NIU1',NULL),(394,'Unidad',348,'NIU',1.0000,20.0000,0.0000,0.0000,1,'394NIU1',NULL),(395,'Unidad',349,'NIU',1.0000,12.0000,0.0000,0.0000,1,'395NIU1',NULL),(396,'Unidad',350,'NIU',1.0000,25.0000,0.0000,0.0000,1,'396NIU1',NULL),(397,'Unidad',351,'NIU',1.0000,18.5000,0.0000,0.0000,1,'397NIU1',NULL),(398,'Unidad',352,'NIU',1.0000,39.0000,0.0000,0.0000,1,'398NIU1',NULL),(399,'Unidad',353,'NIU',1.0000,35.0000,0.0000,0.0000,1,'399NIU1',NULL),(400,'Unidad',354,'NIU',1.0000,13.5000,0.0000,0.0000,1,'400NIU1',NULL),(401,'Unidad',355,'NIU',1.0000,18.0000,0.0000,0.0000,1,'401NIU1',NULL),(402,'Caja',356,'BX',60.0000,0.0000,0.0000,0.0000,1,'402BX60',NULL),(403,'Blíster',356,'BL',10.0000,0.0000,0.0000,0.0000,1,'403BL10',NULL),(404,'Unidad',356,'NIU',1.0000,20.0000,0.0000,0.0000,1,'404NIU1',NULL),(405,'Unidad',357,'NIU',1.0000,18.5000,0.0000,0.0000,1,'405NIU1',NULL),(406,'Unidad',358,'NIU',1.0000,18.0000,0.0000,0.0000,1,'406NIU1',NULL),(407,'Unidad',359,'NIU',1.0000,19.0000,0.0000,0.0000,1,'407NIU1',NULL),(408,'Unidad',360,'NIU',1.0000,7.0000,0.0000,0.0000,1,'408NIU1',NULL),(409,'Unidad',361,'NIU',1.0000,8.0000,0.0000,0.0000,1,'409NIU1',NULL),(410,'Unidad',362,'NIU',1.0000,12.0000,0.0000,0.0000,1,'410NIU1',NULL),(411,'Unidad',363,'NIU',1.0000,15.0000,0.0000,0.0000,1,'411NIU1',NULL),(412,'Unidad',364,'NIU',1.0000,15.0000,0.0000,0.0000,1,'412NIU1',NULL),(413,'Unidad',365,'NIU',1.0000,25.0000,0.0000,0.0000,1,'413NIU1',NULL),(414,'Unidad',366,'NIU',1.0000,20.0000,0.0000,0.0000,1,'414NIU1',NULL),(415,'Unidad',367,'NIU',1.0000,18.0000,0.0000,0.0000,1,'415NIU1',NULL),(416,'Caja',368,'BX',60.0000,0.0000,0.0000,0.0000,1,'416BX60',NULL),(417,'Blíster',368,'BL',10.0000,0.0000,0.0000,0.0000,1,'417BL10',NULL),(418,'Unidad',368,'NIU',1.0000,18.0000,0.0000,0.0000,1,'418NIU1',NULL),(419,'Caja',369,'BX',60.0000,0.0000,0.0000,0.0000,1,'419BX60',NULL),(420,'Blíster',369,'BL',10.0000,0.0000,0.0000,0.0000,1,'420BL10',NULL),(421,'Unidad',369,'NIU',1.0000,18.0000,0.0000,0.0000,1,'421NIU1',NULL),(422,'Unidad',370,'NIU',1.0000,18.0000,0.0000,0.0000,1,'422NIU1',NULL),(423,'Unidad',371,'NIU',1.0000,25.0000,0.0000,0.0000,1,'423NIU1',NULL);
COMMIT;

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

--
-- Table structure for table `item_unit_type_changes`
--

CREATE TABLE `item_unit_type_changes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `item_unit_type_id` int(10) unsigned NOT NULL,
  `warehouse_id` int(10) unsigned DEFAULT NULL,
  `field` varchar(32) NOT NULL,
  `old_value` decimal(12,4) DEFAULT NULL,
  `new_value` decimal(12,4) DEFAULT NULL,
  `user_id` int(10) unsigned DEFAULT NULL,
  `reason` varchar(255) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `item_unit_type_changes_item_unit_type_id_field_index` (`item_unit_type_id`,`field`),
  KEY `item_unit_type_changes_item_id_created_at_index` (`item_id`,`created_at`),
  KEY `iutc_wh_created_idx` (`warehouse_id`,`created_at`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_unit_type_changes`
--

SET autocommit=0;
INSERT INTO `item_unit_type_changes` VALUES (1,12,26,NULL,'price1',76.0000,2.0000,2,NULL,'2026-07-02 19:00:17'),(2,125,162,NULL,'price1',43.0000,3.0000,2,NULL,'2026-07-17 17:19:21'),(3,264,310,NULL,'price1',7.0000,0.7000,2,NULL,'2026-07-21 16:01:18');
COMMIT;

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

--
-- Table structure for table `item_unit_type_warehouse_price`
--

CREATE TABLE `item_unit_type_warehouse_price` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `item_unit_type_id` int(10) unsigned NOT NULL,
  `warehouse_id` int(10) unsigned NOT NULL,
  `price1` decimal(12,2) DEFAULT NULL,
  `price2` decimal(12,2) DEFAULT NULL,
  `price3` decimal(12,2) DEFAULT NULL,
  `price_default` tinyint(3) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `iutwp_unique` (`item_unit_type_id`,`warehouse_id`),
  KEY `iutwp_wh_idx` (`warehouse_id`,`item_unit_type_id`),
  CONSTRAINT `iutwp_iut_fk` FOREIGN KEY (`item_unit_type_id`) REFERENCES `item_unit_types` (`id`) ON DELETE CASCADE,
  CONSTRAINT `iutwp_wh_fk` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_unit_type_warehouse_price`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_unit_type_warehouse_price` with 0 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_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=372 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

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

--
-- Table structure for table `item_warehouse_pricing_states`
--

CREATE TABLE `item_warehouse_pricing_states` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `warehouse_id` int(10) unsigned NOT NULL,
  `initialized_at` timestamp NULL DEFAULT NULL,
  `initialized_source` varchar(32) DEFAULT NULL,
  `last_applied_at` timestamp NULL DEFAULT NULL,
  `last_applied_from_warehouse_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `iwps_item_wh_unique` (`item_id`,`warehouse_id`),
  KEY `iwps_wh_initialized_idx` (`warehouse_id`,`initialized_at`),
  KEY `iwps_last_applied_wh_fk` (`last_applied_from_warehouse_id`),
  CONSTRAINT `iwps_item_fk` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`) ON DELETE CASCADE,
  CONSTRAINT `iwps_last_applied_wh_fk` FOREIGN KEY (`last_applied_from_warehouse_id`) REFERENCES `warehouses` (`id`) ON DELETE SET NULL,
  CONSTRAINT `iwps_wh_fk` 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_pricing_states`
--

SET autocommit=0;
COMMIT;

-- Dumped table `item_warehouse_pricing_states` 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=374 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

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

--
-- Table structure for table `laboratory_results`
--

CREATE TABLE `laboratory_results` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `medical_laboratory_item_id` int(10) unsigned DEFAULT NULL,
  `date_result` date DEFAULT NULL,
  `file_url` varchar(255) DEFAULT NULL,
  `observations` 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 `laboratory_results`
--

SET autocommit=0;
COMMIT;

-- Dumped table `laboratory_results` with 0 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 `medical_consultations`
--

CREATE TABLE `medical_consultations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `patient_id` int(10) unsigned DEFAULT NULL,
  `doctor_id` int(10) unsigned DEFAULT NULL,
  `appointment_id` int(10) unsigned DEFAULT NULL,
  `specialty_id` int(10) unsigned DEFAULT NULL,
  `treatment` text DEFAULT NULL,
  `work_plan` text DEFAULT NULL,
  `evaluation` text DEFAULT NULL,
  `patient_status` text DEFAULT NULL,
  `additional_observations` text DEFAULT NULL,
  `recital_date` date DEFAULT NULL,
  `vas_scale` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mc_patient_id` (`patient_id`),
  KEY `mc_appointment_id` (`appointment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_consultations`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `medical_consultation_diagnoses`
--

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

--
-- Dumping data for table `medical_consultation_diagnoses`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `medical_consultation_procedures`
--

CREATE TABLE `medical_consultation_procedures` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `medical_consultation_id` int(10) unsigned NOT NULL,
  `procedure_id` int(10) unsigned NOT NULL,
  `description` text DEFAULT NULL,
  `days` int(11) DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mcp_consultation_id` (`medical_consultation_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_consultation_procedures`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `medical_consultation_vouchers`
--

CREATE TABLE `medical_consultation_vouchers` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `medical_consultation_id` int(10) unsigned NOT NULL,
  `prefix` varchar(255) DEFAULT NULL,
  `voucher_id` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mcv_consultation_id` (`medical_consultation_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_consultation_vouchers`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `medical_laboratories`
--

CREATE TABLE `medical_laboratories` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `patient_id` int(10) unsigned DEFAULT NULL,
  `doctor_id` int(10) unsigned DEFAULT NULL,
  `appointment_id` int(10) unsigned DEFAULT NULL,
  `medical_consultation_id` int(10) unsigned DEFAULT NULL,
  `priority` char(2) DEFAULT NULL,
  `state` char(2) DEFAULT NULL,
  `notes` text DEFAULT NULL,
  `prefix` text DEFAULT NULL,
  `order` text DEFAULT NULL,
  `schedule_date` date DEFAULT NULL,
  `creation_date` date 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 `medical_laboratories`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `medical_laboratory_items`
--

CREATE TABLE `medical_laboratory_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned DEFAULT NULL,
  `medical_laboratory_id` int(10) unsigned 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 `medical_laboratory_items`
--

SET autocommit=0;
COMMIT;

-- Dumped table `medical_laboratory_items` 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=1020 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_08_000106_create_points_table',1),(442,'2021_04_08_004409_create_configuration_points_table',1),(443,'2021_04_08_005315_add_foreign_to_points_table',1),(444,'2021_04_08_175347_change_electronico_at_cat_document_type',1),(445,'2021_04_11_113741_add_column_points_to_items_table',1),(446,'2021_04_17_163456_add_technical_service_id_to_cash_documents_table',1),(447,'2021_04_19_141528_add_column_points_to_sale_notes_table',1),(448,'2021_04_19_144103_add_column_points_to_documents_table',1),(449,'2021_04_22_170915_add_template_pdf_to_establishments_table',1),(450,'2021_04_23_143433_add_edit_flag_to_documents_table',1),(451,'2021_04_27_105557_add_payment_type_to_payment_method',1),(452,'2021_04_29_122333_add_visual_ticket_58_to_configurations_table',1),(453,'2021_05_03_131833_add_mail_configuration',1),(454,'2021_05_06_152551_add_due_date_to_sales_note',1),(455,'2021_05_07_154207_add_soft_delete_to_document',1),(456,'2021_05_07_154207_remove_soft_delete_to_document',1),(457,'2021_05_12_163406_add_seller_can_create_porduct_to_configuration',1),(458,'2021_05_13_120615_add_seller_can_view_balance_on_finance_to_configuration',1),(459,'2021_05_27_124620_add_generate_option_to_sale_opportunities',1),(460,'2021_06_03_122337_add_method_type_to_documents_fee',1),(461,'2021_06_03_165209_add_serie_and_document_to_user',1),(462,'2021_06_07_140759_change_format_number_to_expenses_table',1),(463,'2021_06_09_124243_add_update_documents_by_dispaches_to_configurations',1),(464,'2021_06_10_092525_add_pharmacy_to_items',1),(465,'2021_06_15_094333_add_name_product_pdf_to_order_note_items',1),(466,'2021_06_16_154233_add_send_auto_sunat_to_dispatches',1),(467,'2021_06_18_141048_add_modules_digemid',1),(468,'2021_06_22_112855_add_fields_to_client',1),(469,'2021_06_23_130016_create_digemid_catalog',1),(470,'2021_06_28_125907_add_fields_to_documentary_office',1),(471,'2021_06_29_173743_tenant_add_allowance_charge_to_configurations',1),(472,'2021_06_29_184419_remove_key_from_documentary',1),(473,'2021_06_30_174147_create_adjust_to_docymentary_offices',1),(474,'2021_06_30_175311_tenant_add_purchase_to_cash_documents',1),(475,'2021_07_01_171620_adjust_to_docymentary_procedure',1),(476,'2021_07_02_133558_add_office_to_process',1),(477,'2021_07_05_091229_change_data_to',1),(478,'2021_07_05_094927_create_documentary_guides_number',1),(479,'2021_07_05_125811_add_field_to_documentary_file',1),(480,'2021_07_05_141048_add_modules_docymentary_requirements',1),(481,'2021_07_05_213052_change_observation_from_file_offices',1),(482,'2021_07_05_220241_add_requirements_to_documentary_file',1),(483,'2021_07_06_114113_tenant_add_discount_stock_to_cat_transfer_reason_types',1),(484,'2021_07_06_173358_tenant_add_dispatch_id_to_documents',1),(485,'2021_07_06_174510_add_name_pdf_to_sale_note_item',1),(486,'2021_07_14_103324_add_data_affected_document',1),(487,'2021_07_16_204722_add_phone_to_configuration_ecommerce',1),(488,'2021_07_19_132554_add_days_to_client',1),(489,'2021_07_26_102802_add_banned_column_to_points_table',1),(490,'2021_07_30_113708_create_expiration_date_settings_table',1),(491,'2021_08_03_115743_add_field_to_send_sale_note_to_other_site',1),(492,'2021_08_05_143043_add_quotation_to_order_note',1),(493,'2021_08_05_144042_tenant_add_search_item_by_series_to_configurations',1),(494,'2021_08_06_094151_tenant_add_change_free_affectation_igv_to_configurations',1),(495,'2021_08_09_115837_add_currency_to_configuration',1),(496,'2021_08_09_131738_tenant_add_select_available_price_list_to_configurations',1),(497,'2021_08_16_111909_create_colors_for_items',1),(498,'2021_08_17_091109_add_more_propertys_to_item',1),(499,'2021_08_20_153033_add_extra_data_of_product_to_configuration',1),(500,'2021_08_20_161555_add_extra_data_item_menu',1),(501,'2021_08_23_105050_tenant_add_group_items_generate_document_to_configurations',1),(502,'2021_08_23_172828_adjust_inventory_item_extra_data',1),(503,'2021_08_24_153219_tenant_add_columns_unknown_error_to_summaries',1),(504,'2021_08_25_155900_tenant_add_columns_integrated_query_to_companies',1),(505,'2021_09_08_165136_add_optional_emails_to_person',1),(506,'2021_09_10_120216_create_email_send_log',1),(507,'2021_09_10_143648_tenant_add_subtotal_to_documents',1),(508,'2021_09_13_171757_tenat_add_total_igv_free_to_documents',1),(509,'2021_09_15_115746_add_global_igv_to_purchase',1),(510,'2021_09_15_170619_tenant_change_length_description_to_quotations',1),(511,'2021_09_16_144202_add_app_to_modules',1),(512,'2021_09_17_120309_add_url_apk_to_configurations',1),(513,'2021_09_17_150025_transfer_accounts_payment',1),(514,'2021_09_20_183304_add_new_enter_template_to_format_templates',1),(515,'2021_09_21_172056_add_file_to_format_templates',1),(516,'2021_09_22_120834_add_fields_technical_services',1),(517,'2021_09_22_120835_create_technical_service_items',1),(518,'2021_09_24_114832_add_configuration_to_show_name_of_pdf',1),(519,'2021_09_28_183535_add_name_pdf_to_quotation_items',1),(520,'2021_09_29_123827_add_text_to_address_in_configuration',1),(521,'2021_09_29_180607_tenant_add_set_address_by_establishment_to_configurations',1),(522,'2021_09_30_135325_tenant_add_order_id_to_sale_notes',1),(523,'2021_09_30_170149_tenant_add_permission_to_edit_cpe_to_configurations',1),(524,'2021_09_30_171912_tenant_add_permission_edit_cpe_to_users',1),(525,'2021_10_04_154837_tenant_change_nullable_packages_number_to_dispatches',1),(526,'2021_10_05_171912_add_configuration_module_to_user',1),(527,'2021_10_05_174410_tenant_add_total_igv_free_to_quotations',1),(528,'2021_10_06_132920_tenant_add_total_igv_free_to_order_notes',1),(529,'2021_10_07_144354_create_guide_file',1),(530,'2021_10_11_110825_create_item_movement_table',1),(531,'2021_10_12_111345_create_item_movement_rel_extra_table',1),(532,'2021_10_13_113504_add_only_user_warehouse_item_to_config',1),(533,'2021_10_18_110547_tenant_add_technical_service_id_to_documents',1),(534,'2021_10_18_110700_change_default_show_items_only_user_stablishment',1),(535,'2021_10_18_110700_change_value_show_items_only_user_stablishment',1),(536,'2021_10_18_110907_tenant_add_technical_service_id_to_sale_notes',1),(537,'2021_10_18_150100_tenant_add_document_type_04_to_cat_document_types',1),(538,'2021_10_18_150136_tenant_add_data_operation_type_0501_to_cat_operation_types',1),(539,'2021_10_18_150154_tenant_cat_address_types_table',1),(540,'2021_10_18_150215_tenant_add_address_type_id_to_persons',1),(541,'2021_10_18_150306_tenant_purchase_settlements_table',1),(542,'2021_10_18_150324_tenant_purchase_settlement_items_table',1),(543,'2021_10_18_153949_tenant_add_data_purchase_settlements_to_module_levels',1),(544,'2021_10_18_174146_tenant_add_subtotal_to_purchase_settlements',1),(545,'2021_10_19_150956_tenant_add_pending_amount_detraction_to_documents',1),(546,'2021_10_20_160503_tenant_add_retention_to_documents',1),(547,'2021_10_20_161035_tenant_add_data_retention_to_cat_charge_discount_types',1),(548,'2021_10_20_174401_tenant_rename_pending_amount_detraction_to_documents',1),(549,'2021_10_21_093921_tenant_add_igv_retention_percentage_to_configurations',1),(550,'2021_10_22_130040_create_app_suscription',1),(551,'2021_10_25_112316_tenant_add_subtotal_to_quotations',1),(552,'2021_10_25_142908_create_suscription_plans_table',1),(553,'2021_10_25_154009_tenant_add_option_13_to_cat_note_credit_types',1),(554,'2021_10_27_105710_tenant_add_subtotal_to_sale_notes',1),(555,'2021_10_27_133333_add_parent_id_field_to_persons',1),(556,'2021_10_28_110438_alter_sale_notes_and_documents',1),(557,'2021_10_28_173041_tenant_add_name_product_xml_to_document_items',1),(558,'2021_10_29_110421_tenant_add_name_product_pdf_to_xml_to_configurations',1),(559,'2021_10_29_114826_change_value_alternate_server_to_configurations',1),(560,'2021_11_09_113608_tenant_add_default_document_type_80_to_configurations',1),(561,'2021_11_09_143629_tenant_add_search_item_by_barcode_to_configurations',1),(562,'2021_11_09_173326_add_grade_and_section_touser_rel_suscription_plan',1),(563,'2021_11_11_113443_tenant_general_payment_conditions_table',1),(564,'2021_11_11_114229_tenant_add_payment_condition_id_to_purchases',1),(565,'2021_11_11_152521_tenant_purchase_fee_table',1),(566,'2021_11_11_180653_tenant_add_recreate_documents_to_users',1),(567,'2021_11_12_102347_add_grade_and_section_tables',1),(568,'2021_11_15_152956_additem_description_default_pdf_name_configuration',1),(569,'2021_11_16_150657_add_user_id_to_inventories_transfer',1),(570,'2021_11_25_105300_create_accounting_ledger_table',1),(571,'2021_11_25_154025_add_auto_print_to_configurations',1),(572,'2021_12_01_113756_add_show_services_on_pos',1),(573,'2021_12_02_141408_tenant_bank_loans_table',1),(574,'2021_12_03_130138_add_column_generic_to_items_table',1),(575,'2021_12_05_124642_add_column_location_to_items_table',1),(576,'2021_12_08_211200_add_pos_history_and_cost_to_configuration',1),(577,'2021_12_09_180033_change_column_localtion_to_items_table',1),(578,'2021_12_09_180332_create_table_locations_table',1),(579,'2021_12_09_182924_add_flag_to_production_for_item',1),(580,'2021_12_10_122529_add_zone_id_to_person',1),(581,'2021_12_10_130040_create_app_production',1),(582,'2021_12_10_172959_add_name_to_mill',1),(583,'2021_12_11_101624_add_data_to_inventory_transactions',1),(584,'2021_12_11_114856_add_item_to_mill_item',1),(585,'2021_12_11_170251_create_item_supplies',1),(586,'2021_12_15_112106_create_columns_to_show_by_user',1),(587,'2021_12_16_144057_add_show_totals_on_c_p_e_list',1),(588,'2021_12_21_134408_add_simplify_to_documentary',1),(589,'2021_12_22_150753_add_guide_to_documentary_archive',1),(590,'2021_12_25_163345_add_colors_to_documentary',1),(591,'2021_12_31_105910_change_documentary_process_characters',1),(592,'2022_01_05_170742_create_machine_for_production',1),(593,'2022_01_07_124919_add_complete_to_documentary_files',1),(594,'2022_01_11_140319_tenant_add_columns_send_pse_to_documents',1),(595,'2022_01_11_174033_tenant_add_columns_send_pse_to_companies',1),(596,'2022_01_12_180810_tenant_add_detraction_amount_rounded_int_to_configurations',1),(597,'2022_01_13_141051_tenant_add_sale_notes_relateds_to_documents',1),(598,'2022_01_15_130321_add_old_quantity_to_item_lot_group',1),(599,'2022_01_18_094821_tenant_add_data_to_inventory_transactions',1),(600,'2022_01_18_120000_add_show_term_condition_pos_to_configurations',1),(601,'2022_01_18_213317_tenant_create_cash_documents_credit',1),(602,'2022_01_20_202655_tenant_add_unique_filename_to_documents',1),(603,'2022_01_22_001715_add_date_end_to_documentary_files',1),(604,'2022_01_25_150315_add_apply_restaurant_to_items',1),(605,'2022_01_25_152940_create_app_restaurant',1),(606,'2022_01_26_175429_create_mi_tienda_pe',1),(607,'2022_01_28_110155_tenant_add_related_to_dispatches',1),(608,'2022_01_29_141957_add_purchase_order_and_observation_to_purchase',1),(609,'2022_01_29_191503_create_packaging_table',1),(610,'2022_01_30_120653_create_configuration_to_mi_tienda_pe',1),(611,'2022_02_02_203403_add_autogenerate_c_p_e_to_mi_tienda_pe',1),(612,'2022_02_07_110836_add_ticket_template_pdf_to_establishments_table',1),(613,'2022_02_07_121152_add_is_custom_ticket_to_format_templates',1),(614,'2022_02_07_142617_add_format_tickets_to_configurations',1),(615,'2022_02_07_161128_tenant_add_data_to_promotions_table',1),(616,'2022_02_08_213251_tenant_add_restaurant_to_orders',1),(617,'2022_02_11_162919_tenant_add_last_sale_price_to_configurations',1),(618,'2022_02_14_222010_tenant_add_flasg_to_inventory_configurations',1),(619,'2022_02_14_224820_tenant_add_barcode_to_item_unit_types',1),(620,'2022_02_16_150615_tenant_add_show_logo_establishment_to_configuration',1),(621,'2022_02_17_195824_add_colaborator_to_production_as_text',1),(622,'2022_02_22_111659_tenant_add_columns_send_pse_to_voided',1),(623,'2022_02_24_134926_tenant_add_columns_purchase_isc_to_items',1),(624,'2022_02_24_201345_tenant_download_tray_table',1),(625,'2022_02_25_172811_add_print_next_line_to_pdf_on_observation',1),(626,'2022_02_27_120405_tenant_add_comments_to_inventories',1),(627,'2022_03_03_110115_tenant_add_global_discount_type_id_to_configurations',1),(628,'2022_03_04_003932_tenant_add_quotation_to_cash_documents',1),(629,'2022_03_08_112351_tenant_add_columns_send_pse_to_dispatches',1),(630,'2022_03_09_111107_tenant_add_restaurant_to_cash',1),(631,'2022_03_10_003439_add_column_url_and_name_printer_to_establishments_table',1),(632,'2022_03_10_094902_tenant_add_shipping_time_days_to_configurations',1),(633,'2022_03_11_120508_add_trace_to_api_peru_service',1),(634,'2022_03_14_221802_tenant_add_type_to_download_tray',1),(635,'2022_03_18_140238_tenant_add_total_igv_free_to_sale_notes',1),(636,'2022_03_21_110605_create_restaurant_configuration',1),(637,'2022_03_21_161851_add_configuration_new_valdiator_pagination',1),(638,'2022_03_25_134555_tenant_add_customer_filter_by_seller_to_configurations',1),(639,'2022_03_25_143916_tenant_add_index_seller_id_to_persons',1),(640,'2022_03_25_170158_tenant_add_validate_purchase_sale_unit_price_to_configurations',1),(641,'2022_03_28_174245_add_barcode_column_to_persons_table',1),(642,'2022_03_29_101534_add_quantity_to_restaurant_configuration',1),(643,'2022_03_30_145732_tenant_add_nationality_to_persons',1),(644,'2022_03_31_132849_create_app_pos_garage',1),(645,'2022_04_04_151234_add_commands_to_restaurant_configurations',1),(646,'2022_04_06_111531_create_restaurant_roles_table',1),(647,'2022_04_06_112454_add_restaurant_role_to_users',1),(648,'2022_04_06_170626_tenant_add_unique_filename_to_sale_notes',1),(649,'2022_04_08_001444_create_pharmacy_configurations_table',1),(650,'2022_04_11_143145_tenant_add_name_product_pdf_to_contract_items',1),(651,'2022_04_11_152502_tenant_add_name_product_pdf_to_dispatch_items',1),(652,'2022_04_12_111023_tenant_add_columns_igv_unit_price_purchases_to_configurations',1),(653,'2022_04_12_121903_addindex_to_item_movement_rel_extra',1),(654,'2022_04_12_162742_tenant_report_configurations_table',1),(655,'2022_04_18_153331_tenant_add_payment_permissions_to_users',1),(656,'2022_04_19_114422_tenant_add_set_global_purchase_currency_items_to_configurations',1),(657,'2022_04_20_115118_tenant_add_subject_to_detraction_to_items',1),(658,'2022_04_20_205612_add_column_cash_and_transfers_to_cash_table',1),(659,'2022_04_22_101547_tenant_change_type_observation_to_sale_notes',1),(660,'2022_04_22_133909_tenant_add_set_unit_price_dispatch_related_record_to_configurations',1),(661,'2022_04_25_151827_tenant_add_index_barcode_to_item_unit_types',1),(662,'2022_04_26_175613_tenant_add_columns_restrict_voided_to_configurations',1),(663,'2022_04_28_175537_tenant_add_order_form_external_to_dispatches',1),(664,'2022_04_29_140515_tenant_add_enabled_tips_pos_to_configurations',1),(665,'2022_04_29_144947_tenant_tips_table',1),(666,'2022_05_02_135252_tenant_add_fields_to_module_levels',1),(667,'2022_05_02_152925_tenant_add_top_menu_to_configurations',1),(668,'2022_05_02_170654_tenant_add_data_district_250307_to_districts',1),(669,'2022_05_03_143911_tenant_create_skins_table',1),(670,'2022_05_03_171845_tenant_add_purchase_settlement_id_to_kardex',1),(671,'2022_05_04_143113_tenant_add_payment_method_type_id_to_purchase_settlements',1),(672,'2022_05_04_150922_tenant_change_type_column_quantity_to_item_supplies',1),(673,'2022_05_04_155103_tenant_workers_table',1),(674,'2022_05_04_174017_tenant_add_unique_filename_to_summaries',1),(675,'2022_05_05_110908_tenant_add_soap_type_id_to_production',1),(676,'2022_05_05_115054_tenant_add_soap_type_id_to_mill',1),(677,'2022_05_05_134703_tenant_add_soap_type_id_to_packaging',1),(678,'2022_05_06_162034_add_fields_to_person',1),(679,'2022_05_08_122934_tenant_add_route_path_to_module_levels',1),(680,'2022_05_08_130040_create_app_full_suscription',1),(681,'2022_05_08_130054_tenant_update_data_to_skins',1),(682,'2022_05_09_105130_tenant_payment_configurations_table',1),(683,'2022_05_09_122150_tenant_add_defaults_to_configurations',1),(684,'2022_05_09_141114_tenant_payment_link_types_table',1),(685,'2022_05_09_143633_tenant_payment_links_table',1),(686,'2022_05_09_212753_tenant_register_app_generate_link_to_modules',1),(687,'2022_05_10_113515_tenant_transaction_states_table',1),(688,'2022_05_10_113608_tenant_transactions_table',1),(689,'2022_05_10_113734_tenant_transaction_queries_table',1),(690,'2022_05_10_113800_tenant_client_error_types_table',1),(691,'2022_05_10_113813_tenant_client_errors_table',1),(692,'2022_05_10_163722_tenant_config_default_to_configurations',1),(693,'2022_05_11_104030_tenant_add_soap_type_id_to_transactions',1),(694,'2022_05_11_115321_tenant_add_query_transaction_to_payment_links',1),(695,'2022_05_11_161435_tenant_change_nullable_payment_to_payment_links',1),(696,'2022_05_11_224556_create_enter_permissions_table',1),(697,'2022_05_11_224631_create_enter_permissions_users_table',1),(698,'2022_05_12_180154_tenant_add_legend_forest_to_xml_to_configurations',1),(699,'2022_05_13_162912_tenant_add_index_regularize_shipping_to_documents',1),(700,'2022_05_13_163802_tenant_purchase_settlement_payments_table',1),(701,'2022_05_13_172504_tenant_add_change_currency_item_to_configurations',1),(702,'2022_05_17_164646_tenant_add_enabled_advanced_records_search_to_configurations',1),(703,'2022_05_23_133515_tenant_add_decimal_quantity_unit_price_pdf_to_configurations',1),(704,'2022_06_01_114042_tenant_add_separate_cash_transactions_to_configurations',1),(705,'2022_06_01_161857_add_column_hotel_rate_id_to_hotel_rents_table',1),(706,'2022_06_01_164204_tenant_add_order_cash_income_to_configurations',1),(707,'2022_06_02_160925_tenant_add_data_district_080915_to_districts',1),(708,'2022_06_03_135513_tenant_add_generate_order_note_from_quotation_to_configurations',1),(709,'2022_06_06_144610_tenant_add_list_items_by_warehouse_to_configurations',1),(710,'2022_06_16_143605_tenant_app_configurations_table',1),(711,'2022_06_17_143817_tenant_add_payment_received_to_document_payments',1),(712,'2022_06_21_101957_tenant_add_columns_login_pse_to_companies',1),(713,'2022_06_21_165810_tenant_add_user_pse_to_companies',1),(714,'2022_06_23_141216_tenant_add_print_format_pdf_to_app_configurations',1),(715,'2022_06_28_164504_tenant_add_date_of_issue_to_inventories',1),(716,'2022_06_30_110007_tenant_add_columns_send_pse_to_summaries',1),(717,'2022_06_30_172004_tenant_add_index_external_id_to_income',1),(718,'2022_06_30_172247_tenant_add_filename_to_income',1),(719,'2022_07_01_103451_tenant_add_filename_to_expenses',1),(720,'2022_07_01_172113_tenant_add_hide_pdf_view_documents_to_configurations',1),(721,'2022_07_04_152229_tenant_add_ticket_single_shipment_to_configurations',1),(722,'2022_07_04_153343_tenant_add_ticket_single_shipment_to_documents',1),(723,'2022_07_05_103856_tenant_add_purchase_permissions_to_users',1),(724,'2022_07_06_113107_tenant_add_columns_theme_configuration_to_app_configurations',1),(725,'2022_07_06_233507_tenant_add_columns_header_configuration_to_app_configurations',1),(726,'2022_07_07_100534_tenant_add_module_app_2_generator_to_modules',1),(727,'2022_07_07_131216_tenant_app_modules_table',1),(728,'2022_07_07_143039_tenant_app_module_user_table',1),(729,'2022_07_08_101718_tenant_add_data_configuration_to_app_modules',1),(730,'2022_07_08_165430_tenant_add_indexes_columns_to_cash',1),(731,'2022_07_11_180145_tenant_add_data_quotation_to_app_modules',1),(732,'2022_07_14_095450_tenant_add_app_logo_to_companies',1),(733,'2022_07_14_120321_tenant_add_affect_all_documents_to_configuration',1),(734,'2022_07_14_143450_tenant_add_terms_condition_column_to_sale_notes_table',1),(735,'2022_07_14_162144_tenant_add_terms_condition_column_to_dispatches_table',1),(736,'2022_07_15_110508_tenant_add_text_filter_to_items',1),(737,'2022_07_18_172843_tenant_add_app_mode_to_app_configurations',1),(738,'2022_07_19_033009_tenant_add_dashboard_options_to_configurations',1),(739,'2022_07_25_115003_tenant_add_quantity_sales_notes_to_configurations',1),(740,'2022_07_30_133127_tenant_add_direct_print_to_app_configurations',1),(741,'2022_08_05_110445_tenant_add_columns_whatsapp_to_companies',1),(742,'2022_08_05_174505_tenant_add_favorite_to_items',1),(743,'2022_08_07_122150_tenant_add_folio_to_documents',1),(744,'2022_08_11_151009_tenant_add_data_district_080916_to_districts',1),(745,'2022_08_11_151307_tenant_add_data_district_080917_to_districts',1),(746,'2022_08_11_151330_tenant_add_data_district_080918_to_districts',1),(747,'2022_08_11_151345_tenant_add_data_district_080919_to_districts',1),(748,'2022_08_14_190940_tenant_add_additional_data_to_documents',1),(749,'2022_08_15_101024_tenant_add_data_default_various_clients_to_persons',1),(750,'2022_08_23_140943_tenant_add_personal_information_to_users',1),(751,'2022_08_23_174028_tenant_user_default_document_types_table',1),(752,'2022_08_24_155445_tenant_add_data_district_080914_to_districts',1),(753,'2022_08_24_160940_tenant_add_additional_data_to_document_items',1),(754,'2022_08_24_165942_tenant_add_restrict_series_selection_seller_to_configurations',1),(755,'2022_08_25_113149_tenant_system_activity_logs_table',1),(756,'2022_08_25_154533_create_dispatch_sale_notes_table',1),(757,'2022_08_29_015753_tenant_add_igv_31556_to_establishments',1),(758,'2022_08_30_104544_tenant_add_location_to_system_activity_logs',1),(759,'2022_08_30_140345_tenant_rename_column_auth_transaction_type_to_system_activity_logs',1),(760,'2022_08_30_175558_tenant_add_regex_password_user_to_configurations',1),(761,'2022_08_31_105919_tenant_add_route_to_system_activity_logs',1),(762,'2022_08_31_112916_tenant_system_activity_log_types_table',1),(763,'2022_08_31_131222_tenant_add_foreign_transaction_type_to_system_activity_logs',1),(764,'2022_08_31_142530_tenant_add_columns_remember_change_password_to_configurations',1),(765,'2022_08_31_150743_tenant_add_last_password_update_to_users',1),(766,'2022_09_01_173835_tenant_add_columns_point_system_to_configurations',1),(767,'2022_09_02_100607_tenant_add_accumulated_points_to_persons',1),(768,'2022_09_02_130726_tenant_add_point_system_to_documents',1),(769,'2022_09_02_152858_tenant_add_columns_point_system_to_items',1),(770,'2022_09_02_172003_tenant_add_show_complete_name_pos_to_configurations',1),(771,'2022_09_03_190940_tenant_add_additional_data_to_documents_error',1),(772,'2022_09_06_165424_tenant_add_round_points_of_sale_to_configurations',1),(773,'2022_09_07_101240_tenant_add_columns_point_system_to_sale_notes',1),(774,'2022_09_08_102133_tenant_add_enable_categories_products_view_to_configurations',1),(775,'2022_09_08_113936_tenant_add_columns_restrict_seller_discount_to_configurations',1),(776,'2022_09_08_151132_tenant_authorized_discount_users_table',1),(777,'2022_09_09_110646_tenant_enabled_sales_agents_to_configurations',1),(778,'2022_09_09_113545_tenant_agents_table',1),(779,'2022_09_09_144216_tenant_add_agent_id_to_documents_sale_notes',1),(780,'2022_09_10_114510_tenant_add_inventory_review_to_inventory_configurations',1),(781,'2022_09_14_170825_tenant_add_change_affectation_exonerated_igv_to_configurations',1),(782,'2022_09_18_162711_add_pos_discount_permission_to_enter_permissions_table',1),(783,'2022_09_20_101814_tenant_add_data_login_lockout_to_system_activity_log_types',1),(784,'2022_09_20_155523_tenant_add_request_email_to_system_activity_logs',1),(785,'2022_09_27_104853_tenant_add_factory_code_to_items',1),(786,'2022_09_27_115234_tenant_add_search_factory_code_items_to_configurations',1),(787,'2022_09_28_101354_tenant_add_show_load_voucher_to_configurations',1),(788,'2022_09_29_114005_tenant_add_force_send_by_summary_to_documents',1),(789,'2022_09_29_115507_tenant_add_permission_force_send_by_summary_to_users',1),(790,'2022_10_04_141907_tenant_change_description_value_to_module_levels',1),(791,'2022_10_05_152438_tenant_add_environment_to_restaurant_configurations',1),(792,'2022_10_05_162751_tenant_add_index_changed_to_sale_notes',1),(793,'2022_10_12_141349_tenant_add_real_system_stock_to_inventories',1),(794,'2022_10_14_172645_tenant_add_register_series_invoice_xml_to_configurations',1),(795,'2022_10_16_101354_tenant_add_enable_discount_by_customer_to_configurations',1),(796,'2022_10_16_110607_tenant_add_discount_to_persons',1),(797,'2022_10_20_123539_tenant_add_image_default_to_items',1),(798,'2022_10_21_190940_tenant_add_additional_data_to_dispatches',1),(799,'2022_10_21_210941_tenant_add_additional_data_to_dispatch_items',1),(800,'2022_10_21_213010_tenant_add_config_to_restaurant_configurations',1),(801,'2022_10_22_113308_tenant_create_waiters_table',1),(802,'2022_10_22_174921_tenant_add_quantity_mesas_and_and_env4_to_environment_restaurant',1),(803,'2022_11_04_142103_tenant_add_enabled_dispatch_ticket_pdf_to_configurations',1),(804,'2022_11_04_173318_tenant_add_dispatch_ticket_pdf_to_document_sale_notes',1),(805,'2022_11_10_132533_tenant_add_item_lot_group_id_to_purchase_items',1),(806,'2022_11_14_162628_tenant_add_validate_stock_add_item_to_inventory_configurations',1),(807,'2022_11_16_000856_create_restaurant_table_envs_table',1),(808,'2022_11_16_000857_add_data_restaurant_table_envs',1),(809,'2022_11_16_235623_create_restaurant_tables_table',1),(810,'2022_11_17_154241_tenant_add_direct_send_documents_whatsapp_to_app_configurations',1),(811,'2022_11_27_235623_create_restaurant_notes_table',1),(812,'2022_11_28_007706_tenant_guides_table',1),(813,'2022_11_28_017707_tenant_guide_items_table',1),(814,'2022_11_28_101718_tenant_add_guide_id_to_inventories',1),(815,'2022_11_28_111428_tenant_add_series_and_number_to_inventories_transfer',1),(816,'2022_11_29_113028_tenant_create_number_series_to_guides',1),(817,'2022_11_30_103028_tenant_add_api_sunat_to_companies',1),(818,'2022_12_01_013028_tenant_add_ticket_to_dispatches',1),(819,'2022_12_01_112321_tenant_update_data_to_dispatches',1),(820,'2022_12_02_023125_tenant_add_number_mtc_to_dispatchers',1),(821,'2022_12_04_113118_tenant_add_sunat_to_companies',1),(822,'2022_12_06_105443_tenant_add_name_product_pdf_to_purchase_items',1),(823,'2022_12_07_112335_add_show_price_in_barcode_ticket_to_configurations',1),(824,'2022_12_12_225021_tenant_update_roles_restaurant_mozo',1),(825,'2022_12_13_131847_tenant_change_column_inventory_transaction_id_to_guides',1),(826,'2022_12_13_153125_tenant_add_unit_type_to_cat_unit_types',1),(827,'2022_12_16_153346_tenant_add_price_selected_add_product_to_configurations',1),(828,'2022_12_20_160732_tenant_add_additional_data_to_order_notes',1),(829,'2022_12_21_113016_tenant_edit_unit_type_to_cat_unit_types',1),(830,'2022_12_22_101455_tenant_pdf_footer_images_to_configurations',1),(831,'2022_12_23_132614_tenant_add_locked_create_establishments_to_configurations',1),(832,'2022_12_23_173228_tenant_add_restrict_sales_limit_to_configurations',1),(833,'2022_12_26_112720_add_data_district050511_to_districts',1),(834,'2022_12_27_012101_tenant_transports_table',1),(835,'2022_12_27_152518_tenant_add_restrict_sale_items_cpe_to_configurations',1),(836,'2022_12_27_154226_tenant_add_restrict_sale_cpe_to_items',1),(837,'2022_12_28_174959_tenant_add_show_convert_cpe_pos_to_configurations',1),(838,'2022_12_28_270513_tenant_update_to_dispatches',1),(839,'2022_12_29_120310_tenant_update_to_drivers',1),(840,'2022_12_29_132101_tenant_origin_addresses_table',1),(841,'2022_12_30_120731_tenant_add_index_is_credit_to_payment_method_types',1),(842,'2022_12_31_100513_tenant_add_transport_data_to_dispatches',1),(843,'2023_01_14_013028_tenant_change_length_ticket_to_dispatches',1),(844,'2023_01_15_122101_tenant_dispatch_addresses_table',1),(845,'2023_01_16_110612_tenant_add_receiver_to_dispatches',1),(846,'2023_01_16_150612_tenant_change_customer_id_to_dispatches',1),(847,'2023_02_09_144759_create_inventory_transfer_items',1),(848,'2023_02_24_163815_tenant_add_order_note_advanced_to_configurations',1),(849,'2023_03_08_113249_tenant_hotel_rent_item_payments_table',1),(850,'2023_03_09_132241_tenant_add_subtotal_to_order_notes',1),(851,'2023_03_15_151737_tenant_change_nullable_email_to_establishments',1),(852,'2023_03_15_154740_tenant_remove_validation_email_establishments_to_configurations',1),(853,'2023_07_18_214757_tenant_add_second_name_to_items',1),(854,'2023_09_07_151856_tenant_add_sire_to_companies',1),(855,'2023_11_10_204115_create_cie10_table',1),(856,'2023_11_10_204153_create_prescription_doctors_table',1),(857,'2023_11_10_204221_create_prescription_prescriptions_table',1),(858,'2023_11_10_204419_add_requires_prescription_to_items_table',1),(859,'2024_01_27_045748_guia_tenant_to_modules',1),(860,'2024_02_19_220058_response_signature_nubefact_to_documents',1),(861,'2024_02_19_220808_api_nubefact_to_companies',1),(862,'2024_02_21_042258_send_to_nubefact_to_companies',1),(863,'2024_02_21_085754_send_anulate_nubefact',1),(864,'2024_02_22_184908_api_token_to_establishments',1),(865,'2024_02_29_093306_total_plastic_bag_taxes_to_purchases',1),(866,'2024_09_13_105728_tenant_add_column_certificate_qz_tray_to_companies',1),(867,'2024_11_22_192222_change_decimal_to_purchase_items',1),(868,'2025_03_02_005639_add_column_hospital_type_to_establishments_table',1),(869,'2025_03_25_100110_tenant_add_total_to_sale_notes',1),(870,'2025_03_25_181211_tenant_sale_note_fee_table',1),(871,'2025_03_25_195114_tenant_add_columns_to_sale_note_payments',1),(872,'2025_04_22_114404_tenant_add_devolution_to_inventario',1),(873,'2025_04_22_114404_tenant_add_pse_qpos_to_companies',1),(874,'2025_08_12_114404_tenant_add_cash_box_to_configuracion',1),(875,'2025_08_27_120000_tenant_add_fast_payment_config_to_configurations',1),(876,'2025_08_27_120000_tenant_add_image_ads_config_to_configurations',1),(877,'2025_09_01_120000_tenant_add_annular_sale_to_users',1),(878,'2025_09_01_120000_tenant_add_prescriptions_salenote_invoice',1),(879,'2025_09_01_120000_tenant_prescriptions_table_make_fields_nullable',1),(880,'2025_10_10_025653_tenant_remove_qr_to_documents',1),(881,'2025_12_02_103028_tenant_add_number_ticket_to_companies',1),(882,'2026_02_28_170000_add_active_pos_to_payment_method_types_table',1),(883,'2026_03_01_000001_tenant_add_blister_unit_type',1),(884,'2026_03_01_000002_tenant_add_price_list_to_persons',1),(885,'2026_03_01_120000_add_pos_bank_account_id_to_payment_method_types_table',1),(886,'2026_03_01_180000_tenant_normalize_payment_method_types_for_pos',1),(887,'2026_03_02_000001_add_performance_indexes',1),(888,'2026_03_02_000002_add_item_warehouse_unique_index',1),(889,'2026_03_08_000003_add_digemid_sublevels_to_tenant_module_levels',1),(890,'2026_03_08_000004_rename_digemid_labels_to_farmacos',1),(891,'2026_03_09_000000_tenant_prescriptions_add_text_fields',1),(892,'2026_03_09_000010_create_pos_parked_sales_table',1),(893,'2026_03_10_000001_create_coupons_table',1),(894,'2026_03_10_000002_add_coupon_to_documents_and_sale_notes',1),(895,'2026_03_10_000003_add_coupons_module_level_to_tenant',1),(896,'2026_03_10_180100_tenant_create_purchase_xml_imports_table',1),(897,'2026_03_10_180200_tenant_create_supplier_item_aliases_table',1),(898,'2026_03_10_180300_tenant_add_xml_import_controls_to_purchases',1),(899,'2026_03_12_000001_add_is_pharmacist_to_users',1),(900,'2026_03_12_000002_add_pharmacist_restriction_to_configurations',1),(901,'2026_03_14_000001_create_charge_discounts_table',1),(902,'2026_03_16_000001_drop_clinic_module_tables',1),(903,'2026_03_30_120000_merge_legacy_a30_dias_payment_method_into_factura_a30_dias',1),(904,'2026_04_06_120000_add_use_profit_margin_formula_to_configurations',1),(905,'2026_04_06_180000_create_inventory_reconciliation_reviews_table',1),(906,'2026_04_14_000000_tenant_deactivate_non_pharmacy_units',1),(907,'2026_04_15_000000_tenant_add_closing_denominations_to_cash',1),(908,'2026_04_15_000001_tenant_add_purchase_fee_id_to_purchase_payments',1),(909,'2026_04_15_100000_tenant_unique_barcode_item_unit_types',1),(910,'2026_04_15_100100_tenant_item_unit_type_changes_table',1),(911,'2026_04_15_100200_tenant_add_soft_delete_to_item_unit_types',1),(912,'2026_04_15_110000_tenant_add_presentation_unit_type_to_inventory_kardex',1),(913,'2026_04_15_110100_tenant_add_presentation_unit_type_to_prescriptions',1),(914,'2026_04_15_120000_tenant_add_presentation_unit_type_to_inventory_transfer',1),(915,'2026_04_15_130000_tenant_add_presentation_unit_type_to_discounts_promotions',1),(916,'2026_04_15_150000_create_item_lot_movements_table',1),(917,'2026_04_16_140000_tenant_add_quantity_to_inventory_transfer_items',1),(918,'2026_04_16_180000_tenant_create_item_lots_group_warehouse_table',1),(919,'2026_04_17_100000_tenant_create_item_unit_type_warehouse_price_table',1),(920,'2026_04_17_100100_tenant_add_warehouse_id_to_item_unit_type_changes',1),(921,'2026_04_17_100200_tenant_add_active_warehouse_prices_per_presentation',1),(922,'2026_04_18_100000_tenant_drop_stock_thresholds_from_item_warehouse',1),(923,'2026_04_18_110000_tenant_bridge_legacy_item_warehouse_prices',1),(924,'2026_04_18_120000_tenant_drop_item_warehouse_prices_legacy',1),(925,'2026_04_18_130000_tenant_add_master_warehouse_to_configurations',1),(926,'2026_04_18_130100_tenant_create_item_warehouse_pricing_states_table',1),(927,'2026_04_18_130200_tenant_backfill_item_warehouse_pricing_states',1),(928,'2026_04_26_120000_tenant_add_owner_warehouse_to_items',1),(929,'2026_04_26_120100_tenant_backfill_items_owner_warehouse',1),(930,'2026_04_27_235000_tenant_backfill_item_points_to_exchange_fields',1),(931,'2026_04_29_100000_tenant_add_foreign_keys_to_promotion_presentation_scope',1),(932,'2026_05_06_000005_remove_pos_garage_module_level',1),(933,'2026_05_06_120000_tenant_create_user_mobile_establishments_table',1),(934,'2026_05_06_120100_tenant_create_mobile_idempotency_keys_table',1),(935,'2026_05_06_120200_tenant_create_mobile_push_devices_table',1),(936,'2026_05_11_120000_tenant_add_default_prefix_to_sale_notes',1),(937,'2026_05_20_000001_create_mobile_physical_counts_table',1),(938,'2026_05_20_000002_create_mobile_physical_count_lines_table',1),(939,'2026_05_20_000003_create_mobile_physical_count_events_table',1),(940,'2026_05_21_000001_add_inventory_id_to_mobile_physical_count_lines',1),(941,'2026_05_21_000002_add_operational_index_to_mobile_physical_counts',1),(942,'2026_05_22_000001_add_user_id_to_inventories_table',1),(943,'2026_06_17_120000_tenant_add_seller_incentive_to_configurations',1),(944,'2026_06_17_120100_tenant_add_shift_type_to_cash',1),(945,'2026_06_17_120200_tenant_create_seller_point_ledger_table',1),(946,'2026_06_18_000000_add_gre_fields_to_dispatches_table',1),(947,'2026_06_18_000100_add_license_plate_m1l_to_dispatches_table',1),(948,'2026_06_19_000000_add_condition_storage_to_items_table',1),(949,'2026_06_19_120000_tenant_create_seller_reward_table',1),(950,'2026_06_19_120100_tenant_create_seller_reward_redemption_table',1),(951,'2026_06_20_120000_fix_items_nullable_and_defaults',1),(952,'2026_06_22_000001_remove_orphan_clinic_module_rows',1),(953,'2026_06_22_000002_remove_orphan_advanced_dispatches_level',1),(954,'2026_06_22_130000_add_is_veterinary_to_configurations',1),(955,'2026_06_22_130001_add_modules_veterinary',1),(956,'2026_06_22_140000_create_vet_pets_table',1),(957,'2026_06_22_150000_create_vet_vaccination_records_table',1),(958,'2026_06_23_120000_add_is_vaccine_to_items_table',1),(959,'2026_06_23_160000_create_vet_consultations_table',1),(960,'2026_06_23_170000_create_vet_boardings_table',1),(961,'2026_06_23_180000_create_vet_appointments_table',1),(962,'2026_06_23_190000_add_type_to_vet_vaccination_records',1),(963,'2026_06_23_200000_create_vet_memberships_table',1),(964,'2026_06_23_210000_create_vet_catalogs_tables',1),(965,'2026_06_23_220000_add_vet_appointment_duration_to_configurations',1),(966,'2026_06_23_230000_add_vet_kennel_count_to_configurations',1),(967,'2026_06_24_120000_add_is_vet_service_to_items_table',1),(968,'2026_06_24_130000_add_vet_boarding_service_item_to_configurations',1),(969,'2026_06_24_140000_create_vet_prescriptions_table',1),(970,'2026_06_24_140001_create_vet_prescription_items_table',1),(971,'2026_06_24_140002_make_applied_date_nullable_on_vet_vaccination_records',1),(972,'2026_06_24_140003_create_vet_vaccine_protocols_table',1),(973,'2026_06_24_150000_create_vet_notification_log_table',1),(974,'2026_06_24_150001_add_vet_notify_fields_to_configurations',1),(975,'2026_06_24_160000_add_clinical_fields_to_vet_consultations',1),(976,'2026_06_24_160001_add_sterilized_to_vet_pets',1),(977,'2026_06_24_170000_add_working_hours_to_vet_veterinarians',1),(978,'2026_06_24_180000_add_species_fk_and_clinical_to_vet_pets',1),(979,'2026_06_24_180000_add_vet_consultation_service_item_to_configurations',1),(980,'2026_06_24_190000_add_type_to_vet_consultations',1),(981,'2026_06_24_190001_create_vet_consultation_attachments_table',1),(982,'2026_06_24_200000_create_vet_quotes_table',1),(983,'2026_06_24_200001_create_vet_quote_items_table',1),(984,'2026_06_25_120000_add_vet_clinic_hours_to_configurations',1),(985,'2026_06_25_130001_add_veterinary_sublevels_to_tenant_module_levels',1),(986,'2026_06_25_130002_add_user_id_to_vet_veterinarians',1),(987,'2026_06_25_140000_backfill_veterinary_levels_by_module',1),(988,'2026_06_25_150000_create_vet_consultation_procedures',1),(989,'2026_06_28_160000_add_parent_id_to_categories',1),(990,'2026_06_28_170000_add_is_clinic_to_configurations',1),(991,'2026_06_28_170001_add_modules_clinica',1),(992,'2026_06_28_180000_create_clinica_tables',1),(993,'2026_06_28_190000_add_clinic_role_id_to_users',1),(994,'2026_06_28_200000_add_birthdate_gender_to_persons',1),(995,'2026_06_29_120000_add_clinic_appointment_item_to_configurations',1),(996,'2026_06_29_120100_add_is_clinic_service_to_items',1),(997,'2026_06_30_120000_create_clinic_appointment_items',1),(998,'2026_06_30_140000_add_charge_columns_to_clinic_appointments',1),(999,'2026_07_07_120000_add_editable_sale_price_to_items',2),(1000,'2026_07_08_190000_create_atc_codes_table',3),(1001,'2026_07_08_190100_add_atc_id_to_items',3),(1002,'2026_07_08_190200_add_enable_atc_code_to_configurations',3),(1003,'2026_07_09_120000_add_enable_editable_sale_price_to_configurations',4),(1004,'2026_07_09_140000_add_print_format_to_establishments',5),(1005,'2026_07_09_130000_tenant_add_voided_by_to_sale_notes',6),(1006,'2026_07_09_140000_tenant_seed_action_audit_activity_types',6),(1007,'2026_07_11_130000_add_sale_default_profit_margin_to_configurations',7),(1008,'2026_07_12_120000_tenant_add_payment_method_correction',8),(1009,'2026_07_23_000000_add_enable_purchase_sanitary_registry_to_configurations',9),(1010,'2026_07_23_010000_add_source_key_to_inventory_kardex',10),(1011,'2026_07_27_120000_tenant_add_package_unit_type',11),(1012,'2026_07_27_130000_tenant_activate_package_unit_type',12),(1013,'2026_07_28_120000_add_oppf_excluded_to_cat_digemid_table',13),(1014,'2026_07_28_130000_update_digemid_health_report_route_after_removal',13),(1015,'2026_07_29_000000_tenant_add_establishment_warehouse_to_cash',14),(1016,'2026_07_29_000100_add_branch_switch_enabled_to_configurations',14),(1017,'2026_07_29_000200_backfill_establishment_warehouse_on_open_cash',14),(1018,'2026_07_30_140000_add_inventory_reconciliation_level_to_tenant_module_levels',14),(1019,'2026_07_30_230000_enable_branch_switch_for_existing_multibranch_tenants',15);
COMMIT;

-- Dumped table `migrations` with 1019 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 CHECK (json_valid(`item`)),
  `quantity` decimal(12,3) DEFAULT 0.000 COMMENT 'Peso dle insumo ',
  `item_extra_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`item_extra_data`)),
  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 `mobile_idempotency_keys`
--

CREATE TABLE `mobile_idempotency_keys` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `idempotency_key` varchar(100) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'processing',
  `model` varchar(20) DEFAULT NULL,
  `record_id` int(10) unsigned DEFAULT NULL,
  `response_payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`response_payload`)),
  `error_message` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mik_user_est_key_unique` (`user_id`,`establishment_id`,`idempotency_key`),
  KEY `mobile_idempotency_keys_status_index` (`status`),
  KEY `mobile_idempotency_keys_establishment_id_foreign` (`establishment_id`),
  CONSTRAINT `mobile_idempotency_keys_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`) ON DELETE CASCADE,
  CONSTRAINT `mobile_idempotency_keys_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mobile_idempotency_keys`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `mobile_physical_counts`
--

CREATE TABLE `mobile_physical_counts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `establishment_id` int(10) unsigned NOT NULL,
  `warehouse_id` int(10) unsigned NOT NULL,
  `user_id` int(10) unsigned NOT NULL,
  `status` varchar(30) NOT NULL DEFAULT 'draft',
  `notes` text DEFAULT NULL,
  `started_at` timestamp NULL DEFAULT NULL,
  `submitted_at` timestamp NULL DEFAULT NULL,
  `submitted_by` int(10) unsigned DEFAULT NULL,
  `approved_at` timestamp NULL DEFAULT NULL,
  `approved_by` int(10) unsigned DEFAULT NULL,
  `rejected_at` timestamp NULL DEFAULT NULL,
  `rejected_by` int(10) unsigned DEFAULT NULL,
  `cancelled_at` timestamp NULL DEFAULT NULL,
  `cancelled_by` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mobile_physical_counts_warehouse_id_status_index` (`warehouse_id`,`status`),
  KEY `mobile_physical_counts_user_id_status_index` (`user_id`,`status`),
  KEY `mobile_physical_counts_submitted_by_foreign` (`submitted_by`),
  KEY `mobile_physical_counts_approved_by_foreign` (`approved_by`),
  KEY `mobile_physical_counts_rejected_by_foreign` (`rejected_by`),
  KEY `mobile_physical_counts_cancelled_by_foreign` (`cancelled_by`),
  KEY `mobile_physical_counts_est_status_created_idx` (`establishment_id`,`status`,`created_at`),
  CONSTRAINT `mobile_physical_counts_approved_by_foreign` FOREIGN KEY (`approved_by`) REFERENCES `users` (`id`),
  CONSTRAINT `mobile_physical_counts_cancelled_by_foreign` FOREIGN KEY (`cancelled_by`) REFERENCES `users` (`id`),
  CONSTRAINT `mobile_physical_counts_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `mobile_physical_counts_rejected_by_foreign` FOREIGN KEY (`rejected_by`) REFERENCES `users` (`id`),
  CONSTRAINT `mobile_physical_counts_submitted_by_foreign` FOREIGN KEY (`submitted_by`) REFERENCES `users` (`id`),
  CONSTRAINT `mobile_physical_counts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `mobile_physical_counts_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mobile_physical_counts`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `mobile_physical_count_events`
--

CREATE TABLE `mobile_physical_count_events` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `physical_count_id` int(10) unsigned NOT NULL,
  `line_id` int(10) unsigned DEFAULT NULL,
  `user_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item_unit_type_id` int(10) unsigned DEFAULT NULL,
  `lot_group_id` int(10) unsigned DEFAULT NULL,
  `barcode` varchar(100) DEFAULT NULL,
  `factor` decimal(12,4) NOT NULL DEFAULT 1.0000,
  `quantity` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `quantity_base` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `source` varchar(30) NOT NULL DEFAULT 'scan',
  `notes` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mobile_physical_count_events_physical_count_id_item_id_index` (`physical_count_id`,`item_id`),
  KEY `mobile_physical_count_events_line_id_foreign` (`line_id`),
  KEY `mobile_physical_count_events_user_id_foreign` (`user_id`),
  KEY `mobile_physical_count_events_item_id_foreign` (`item_id`),
  KEY `mobile_physical_count_events_item_unit_type_id_foreign` (`item_unit_type_id`),
  KEY `mobile_physical_count_events_lot_group_id_foreign` (`lot_group_id`),
  CONSTRAINT `mobile_physical_count_events_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `mobile_physical_count_events_item_unit_type_id_foreign` FOREIGN KEY (`item_unit_type_id`) REFERENCES `item_unit_types` (`id`),
  CONSTRAINT `mobile_physical_count_events_line_id_foreign` FOREIGN KEY (`line_id`) REFERENCES `mobile_physical_count_lines` (`id`) ON DELETE SET NULL,
  CONSTRAINT `mobile_physical_count_events_lot_group_id_foreign` FOREIGN KEY (`lot_group_id`) REFERENCES `item_lots_group` (`id`),
  CONSTRAINT `mobile_physical_count_events_physical_count_id_foreign` FOREIGN KEY (`physical_count_id`) REFERENCES `mobile_physical_counts` (`id`) ON DELETE CASCADE,
  CONSTRAINT `mobile_physical_count_events_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mobile_physical_count_events`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `mobile_physical_count_lines`
--

CREATE TABLE `mobile_physical_count_lines` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `physical_count_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item_unit_type_id` int(10) unsigned DEFAULT NULL,
  `lot_group_id` int(10) unsigned DEFAULT NULL,
  `lot_code` varchar(100) DEFAULT NULL,
  `line_key` varchar(160) NOT NULL,
  `counted_qty_base` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `system_qty_snapshot` decimal(12,4) DEFAULT NULL,
  `difference_qty` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `inventory_id` int(10) unsigned DEFAULT NULL,
  `scanned_times` int(10) unsigned NOT NULL DEFAULT 0,
  `notes` text DEFAULT NULL,
  `last_counted_by` int(10) unsigned DEFAULT NULL,
  `last_counted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mobile_physical_count_lines_unique` (`physical_count_id`,`line_key`),
  KEY `mobile_physical_count_lines_item_id_lot_group_id_index` (`item_id`,`lot_group_id`),
  KEY `mobile_physical_count_lines_item_unit_type_id_foreign` (`item_unit_type_id`),
  KEY `mobile_physical_count_lines_lot_group_id_foreign` (`lot_group_id`),
  KEY `mobile_physical_count_lines_inventory_id_foreign` (`inventory_id`),
  KEY `mobile_physical_count_lines_last_counted_by_foreign` (`last_counted_by`),
  CONSTRAINT `mobile_physical_count_lines_inventory_id_foreign` FOREIGN KEY (`inventory_id`) REFERENCES `inventories` (`id`),
  CONSTRAINT `mobile_physical_count_lines_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `mobile_physical_count_lines_item_unit_type_id_foreign` FOREIGN KEY (`item_unit_type_id`) REFERENCES `item_unit_types` (`id`),
  CONSTRAINT `mobile_physical_count_lines_last_counted_by_foreign` FOREIGN KEY (`last_counted_by`) REFERENCES `users` (`id`),
  CONSTRAINT `mobile_physical_count_lines_lot_group_id_foreign` FOREIGN KEY (`lot_group_id`) REFERENCES `item_lots_group` (`id`),
  CONSTRAINT `mobile_physical_count_lines_physical_count_id_foreign` FOREIGN KEY (`physical_count_id`) REFERENCES `mobile_physical_counts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mobile_physical_count_lines`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `mobile_push_devices`
--

SET autocommit=0;
COMMIT;

-- Dumped table `mobile_push_devices` 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=30 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-07-02 17:49:03','2026-07-02 17:49:03'),(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),(28,'veterinary','Veterinaria',20,'2026-07-02 17:49:13','2026-07-02 17:49:13'),(29,'clinica','Clínica',20,'2026-07-02 17:49:16','2026-07-02 17:49:16');
COMMIT;

-- Dumped table `modules` with 28 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=102 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-07-02 17:49:09'),(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),(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-07-02 17:49:03','2026-07-02 17:49:03'),(74,'documentary_requirements','Requerimientos',16,NULL,NULL,NULL,'2026-07-02 17:49:04','2026-07-02 17:49:04'),(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),(85,'digemid_health_report','Cumplimiento Regulatorio',19,'reports.compliance.index','/prescriptions/digemid/compliance','CUM','2026-07-02 17:49:11','2026-07-02 17:49:11'),(86,'digemid_doctors','Medicos',19,'tenant.prescriptions.doctors.index','/prescriptions/doctors','MED','2026-07-02 17:49:11','2026-07-02 17:49:11'),(87,'digemid_cie10','CIE 10',19,'tenant.prescriptions.cie10.index','/prescriptions/cie10','C10','2026-07-02 17:49:11','2026-07-02 17:49:11'),(88,'digemid_psychotropics_report','Reporte de Psicotropicos',19,'tenant.prescriptions.reports.index','/prescriptions/reports','RPS','2026-07-02 17:49:11','2026-07-02 17:49:11'),(89,'digemid_purchase_reception','Recepcion de productos farmaceuticos',19,'tenant.reports.purchases.format_09.index','/reports/purchases/format_09','RPF','2026-07-02 17:49:11','2026-07-02 17:49:11'),(90,'items_coupons','Cupones',17,NULL,NULL,NULL,'2026-07-02 17:49:12','2026-07-02 17:49:12'),(91,'veterinary','Veterinaria',28,NULL,NULL,NULL,'2026-07-02 17:49:13','2026-07-02 17:49:13'),(92,'vet_panel','Panel',28,NULL,NULL,NULL,'2026-07-02 17:49:16','2026-07-02 17:49:16'),(93,'vet_pets','Mascotas',28,NULL,NULL,NULL,'2026-07-02 17:49:16','2026-07-02 17:49:16'),(94,'vet_appointments','Citas / Agenda',28,NULL,NULL,NULL,'2026-07-02 17:49:16','2026-07-02 17:49:16'),(95,'vet_boardings','Hospedaje',28,NULL,NULL,NULL,'2026-07-02 17:49:16','2026-07-02 17:49:16'),(96,'vet_reminders','Recordatorios',28,NULL,NULL,NULL,'2026-07-02 17:49:16','2026-07-02 17:49:16'),(97,'vet_memberships','Membresías',28,NULL,NULL,NULL,'2026-07-02 17:49:16','2026-07-02 17:49:16'),(98,'vet_reports','Reportes',28,NULL,NULL,NULL,'2026-07-02 17:49:16','2026-07-02 17:49:16'),(99,'vet_settings','Configuración',28,NULL,NULL,NULL,'2026-07-02 17:49:16','2026-07-02 17:49:16'),(100,'clinica','Clínica',29,NULL,NULL,NULL,'2026-07-02 17:49:16','2026-07-02 17:49:16'),(101,'inventory_reconciliation','Reporte de conciliación de inventario',8,'reports.inventory_reconciliation.index','/reports/inventory-reconciliation','REC','2026-07-30 16:51:14','2026-07-30 16:51:14');
COMMIT;

-- Dumped table `module_levels` with 99 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=143 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,23,1),(21,24,1),(22,25,1),(23,26,1),(24,27,1),(25,28,1),(26,101,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,47,1),(47,49,1),(48,50,1),(49,79,1),(50,51,1),(51,52,1),(52,53,1),(53,54,1),(54,55,1),(55,56,1),(56,57,1),(57,58,1),(58,59,1),(59,60,1),(60,76,1),(61,77,1),(62,78,1),(63,61,1),(64,62,1),(65,96,1),(66,97,1),(67,98,1),(68,99,1),(69,100,1),(70,1,2),(71,2,2),(72,3,2),(73,4,2),(74,5,2),(75,6,2),(76,7,2),(77,8,2),(78,9,2),(79,10,2),(80,11,2),(81,12,2),(82,13,2),(83,14,2),(84,15,2),(85,16,2),(86,23,2),(87,24,2),(88,25,2),(89,26,2),(90,27,2),(91,28,2),(92,29,2),(93,30,2),(94,31,2),(95,32,2),(96,33,2),(97,34,2),(98,35,2),(99,36,2),(100,37,2),(101,38,2),(102,39,2),(103,40,2),(104,41,2),(105,42,2),(106,43,2),(107,44,2),(108,75,2),(109,45,2),(110,47,2),(111,49,2),(112,50,2),(113,79,2),(114,51,2),(115,52,2),(116,53,2),(117,54,2),(118,55,2),(119,56,2),(120,57,2),(121,58,2),(122,59,2),(123,60,2),(124,76,2),(125,77,2),(126,78,2),(127,61,2),(128,62,2),(129,1,3),(130,2,3),(131,3,3),(132,4,3),(133,5,3),(134,6,3),(135,7,3),(136,8,3),(137,9,3),(138,10,3),(139,11,3),(140,12,3),(141,13,3),(142,14,3);
COMMIT;

-- Dumped table `module_level_user` with 142 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=32 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,3,1),(10,4,1),(11,9,1),(12,12,1),(13,5,1),(14,11,1),(15,19,1),(16,7,2),(17,1,2),(18,6,2),(19,17,2),(20,18,2),(21,2,2),(22,8,2),(23,14,2),(24,3,2),(25,4,2),(26,9,2),(27,12,2),(28,5,2),(29,11,2),(30,19,2),(31,1,3);
COMMIT;

-- Dumped table `module_user` with 31 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 CHECK (json_valid(`data_affected_document`)),
  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 CHECK (json_valid(`customer`)),
  `shipping_address` varchar(255) DEFAULT NULL,
  `items` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`items`)),
  `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 CHECK (json_valid(`purchase`)),
  `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 CHECK (json_valid(`establishment`)),
  `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 CHECK (json_valid(`customer`)),
  `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 CHECK (json_valid(`origin`)),
  `delivery` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`delivery`)),
  `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 CHECK (json_valid(`license_plates`)),
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`legends`)),
  `optional` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`optional`)),
  `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 CHECK (json_valid(`item`)),
  `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 CHECK (json_valid(`establishment`)),
  `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 CHECK (json_valid(`customer`)),
  `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 CHECK (json_valid(`charges`)),
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`discounts`)),
  `prepayments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`prepayments`)),
  `guides` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`guides`)),
  `related` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`related`)),
  `perception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`perception`)),
  `detraction` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`detraction`)),
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`legends`)),
  `additional_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`additional_data`)),
  `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 CHECK (json_valid(`item`)),
  `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 CHECK (json_valid(`attributes`)),
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`discounts`)),
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`charges`)),
  `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 CHECK (json_valid(`location_id`)),
  `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 CHECK (json_valid(`item_extra_data`)),
  `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 CHECK (json_valid(`item`)),
  `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,
  PRIMARY KEY (`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`
--

