-- Table structure for table `expenses`
--

CREATE TABLE `expenses` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `soap_type_id` char(2) DEFAULT NULL,
  `expense_type_id` int(10) unsigned NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `supplier_id` int(10) unsigned NOT NULL,
  `expense_reason_id` int(10) unsigned NOT NULL DEFAULT 1,
  `currency_type_id` varchar(255) NOT NULL,
  `external_id` char(36) NOT NULL,
  `state_type_id` char(255) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `date_of_issue` date NOT NULL,
  `time_of_issue` time NOT NULL,
  `supplier` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`supplier`)),
  `exchange_rate_sale` decimal(13,3) NOT NULL,
  `total` decimal(12,2) NOT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `expenses_filename_unique` (`filename`),
  KEY `expenses_user_id_foreign` (`user_id`),
  KEY `expenses_establishment_id_foreign` (`establishment_id`),
  KEY `expenses_supplier_id_foreign` (`supplier_id`),
  KEY `expenses_expense_type_id_foreign` (`expense_type_id`),
  KEY `expenses_currency_type_id_foreign` (`currency_type_id`),
  KEY `expenses_expense_reason_id_foreign` (`expense_reason_id`),
  KEY `expenses_soap_type_id_foreign` (`soap_type_id`),
  KEY `expenses_state_type_id_foreign` (`state_type_id`),
  CONSTRAINT `expenses_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `expenses_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `expenses_expense_reason_id_foreign` FOREIGN KEY (`expense_reason_id`) REFERENCES `expense_reasons` (`id`),
  CONSTRAINT `expenses_expense_type_id_foreign` FOREIGN KEY (`expense_type_id`) REFERENCES `expense_types` (`id`),
  CONSTRAINT `expenses_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `expenses_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `expenses_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `expenses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `expenses`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `expense_items`
--

CREATE TABLE `expense_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `expense_id` int(10) unsigned NOT NULL,
  `description` varchar(255) NOT NULL,
  `total` decimal(12,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `expense_items_expense_id_foreign` (`expense_id`),
  CONSTRAINT `expense_items_expense_id_foreign` FOREIGN KEY (`expense_id`) REFERENCES `expenses` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `expense_items`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `expense_method_types`
--

CREATE TABLE `expense_method_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `description` varchar(255) NOT NULL,
  `has_card` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `expense_method_types`
--

SET autocommit=0;
INSERT INTO `expense_method_types` VALUES (1,'CAJA GENERAL',0),(2,'Tarjeta de crédito',1),(3,'Tarjeta de débito',1);
COMMIT;

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

--
-- Table structure for table `expense_payments`
--

CREATE TABLE `expense_payments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `expense_id` int(10) unsigned NOT NULL,
  `date_of_payment` date NOT NULL,
  `expense_method_type_id` int(10) unsigned NOT NULL,
  `has_card` tinyint(1) NOT NULL DEFAULT 0,
  `card_brand_id` char(2) DEFAULT NULL,
  `reference` varchar(255) DEFAULT NULL,
  `payment` decimal(12,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `expense_payments_expense_id_foreign` (`expense_id`),
  KEY `expense_payments_card_brand_id_foreign` (`card_brand_id`),
  KEY `expense_payments_expense_method_type_id_foreign` (`expense_method_type_id`),
  KEY `expense_payments_date_of_payment_index` (`date_of_payment`),
  CONSTRAINT `expense_payments_card_brand_id_foreign` FOREIGN KEY (`card_brand_id`) REFERENCES `card_brands` (`id`),
  CONSTRAINT `expense_payments_expense_id_foreign` FOREIGN KEY (`expense_id`) REFERENCES `expenses` (`id`) ON DELETE CASCADE,
  CONSTRAINT `expense_payments_expense_method_type_id_foreign` FOREIGN KEY (`expense_method_type_id`) REFERENCES `expense_method_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `expense_payments`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `expense_reasons`
--

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

--
-- Dumping data for table `expense_reasons`
--

SET autocommit=0;
INSERT INTO `expense_reasons` VALUES (1,'Varios'),(2,'Representación de la organización'),(3,'Trabajo de campo');
COMMIT;

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

--
-- Table structure for table `expense_types`
--

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

--
-- Dumping data for table `expense_types`
--

SET autocommit=0;
INSERT INTO `expense_types` VALUES (1,'PLANILLA','2024-11-24 16:57:26','2024-11-24 16:57:26'),(2,'RECIBO POR HONORARIO','2024-11-24 16:57:26','2024-11-24 16:57:26'),(3,'SERVICIO PÚBLICO','2024-11-24 16:57:26','2024-11-24 16:57:26'),(4,'OTROS','2024-11-24 16:57:26','2024-11-24 16:57:26');
COMMIT;

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

--
-- Table structure for table `fixed_asset_items`
--

CREATE TABLE `fixed_asset_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `item_type_id` char(2) NOT NULL,
  `internal_id` varchar(255) DEFAULT NULL,
  `unit_type_id` varchar(255) NOT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `purchase_unit_price` decimal(16,6) NOT NULL,
  `purchase_affectation_igv_type_id` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fixed_asset_items_item_type_id_foreign` (`item_type_id`),
  KEY `fixed_asset_items_unit_type_id_foreign` (`unit_type_id`),
  KEY `fixed_asset_items_currency_type_id_foreign` (`currency_type_id`),
  KEY `fixed_asset_items_purchase_affectation_igv_type_id_foreign` (`purchase_affectation_igv_type_id`),
  CONSTRAINT `fixed_asset_items_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `fixed_asset_items_item_type_id_foreign` FOREIGN KEY (`item_type_id`) REFERENCES `item_types` (`id`),
  CONSTRAINT `fixed_asset_items_purchase_affectation_igv_type_id_foreign` FOREIGN KEY (`purchase_affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `fixed_asset_items_unit_type_id_foreign` FOREIGN KEY (`unit_type_id`) REFERENCES `cat_unit_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fixed_asset_items`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `fixed_asset_purchases`
--

CREATE TABLE `fixed_asset_purchases` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `external_id` char(36) NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `group_id` char(2) NOT NULL,
  `document_type_id` varchar(255) NOT NULL,
  `series` char(4) NOT NULL,
  `number` int(11) NOT NULL,
  `date_of_issue` date NOT NULL,
  `date_of_due` date DEFAULT NULL,
  `time_of_issue` time NOT NULL,
  `supplier_id` int(10) unsigned NOT NULL,
  `supplier` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`supplier`)),
  `currency_type_id` varchar(255) NOT NULL,
  `exchange_rate_sale` decimal(13,3) NOT NULL,
  `total_prepayment` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exportation` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxed` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_unaffected` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exonerated` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_igv` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_value` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `customer_id` int(10) unsigned DEFAULT NULL,
  `perception_date` date DEFAULT NULL,
  `perception_number` int(11) DEFAULT NULL,
  `total_perception` decimal(12,2) DEFAULT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL 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`)),
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fixed_asset_purchases_user_id_foreign` (`user_id`),
  KEY `fixed_asset_purchases_establishment_id_foreign` (`establishment_id`),
  KEY `fixed_asset_purchases_supplier_id_foreign` (`supplier_id`),
  KEY `fixed_asset_purchases_customer_id_foreign` (`customer_id`),
  KEY `fixed_asset_purchases_soap_type_id_foreign` (`soap_type_id`),
  KEY `fixed_asset_purchases_state_type_id_foreign` (`state_type_id`),
  KEY `fixed_asset_purchases_group_id_foreign` (`group_id`),
  KEY `fixed_asset_purchases_document_type_id_foreign` (`document_type_id`),
  KEY `fixed_asset_purchases_currency_type_id_foreign` (`currency_type_id`),
  CONSTRAINT `fixed_asset_purchases_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `fixed_asset_purchases_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `fixed_asset_purchases_document_type_id_foreign` FOREIGN KEY (`document_type_id`) REFERENCES `cat_document_types` (`id`),
  CONSTRAINT `fixed_asset_purchases_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `fixed_asset_purchases_group_id_foreign` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`),
  CONSTRAINT `fixed_asset_purchases_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `fixed_asset_purchases_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `fixed_asset_purchases_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `fixed_asset_purchases_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fixed_asset_purchases`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `fixed_asset_purchase_items`
--

CREATE TABLE `fixed_asset_purchase_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `fixed_asset_purchase_id` int(10) unsigned NOT NULL,
  `fixed_asset_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_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`)),
  PRIMARY KEY (`id`),
  KEY `fixed_asset_purchase_items_fixed_asset_purchase_id_foreign` (`fixed_asset_purchase_id`),
  KEY `fixed_asset_purchase_items_fixed_asset_item_id_foreign` (`fixed_asset_item_id`),
  KEY `fixed_asset_purchase_items_affectation_igv_type_id_foreign` (`affectation_igv_type_id`),
  KEY `fixed_asset_purchase_items_system_isc_type_id_foreign` (`system_isc_type_id`),
  KEY `fixed_asset_purchase_items_price_type_id_foreign` (`price_type_id`),
  CONSTRAINT `fixed_asset_purchase_items_affectation_igv_type_id_foreign` FOREIGN KEY (`affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `fixed_asset_purchase_items_fixed_asset_item_id_foreign` FOREIGN KEY (`fixed_asset_item_id`) REFERENCES `fixed_asset_items` (`id`),
  CONSTRAINT `fixed_asset_purchase_items_fixed_asset_purchase_id_foreign` FOREIGN KEY (`fixed_asset_purchase_id`) REFERENCES `fixed_asset_purchases` (`id`) ON DELETE CASCADE,
  CONSTRAINT `fixed_asset_purchase_items_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `cat_price_types` (`id`),
  CONSTRAINT `fixed_asset_purchase_items_system_isc_type_id_foreign` FOREIGN KEY (`system_isc_type_id`) REFERENCES `cat_system_isc_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fixed_asset_purchase_items`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `format_templates`
--

CREATE TABLE `format_templates` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `formats` varchar(255) NOT NULL,
  `urls` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`urls`)),
  `is_custom_ticket` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=81 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `format_templates`
--

SET autocommit=0;
INSERT INTO `format_templates` VALUES (1,'center_note','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/center_note/image.png\"}',0),(2,'umbrella_state','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default/image.png\"}',0),(3,'blank','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/blank/image.png\"}',0),(4,'con_valor_unitario','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/con_valor_unitario/image.png\"}',0),(5,'item_desc','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/item_desc/image.png\"}',0),(6,'unit_price','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/unit_price/image.png\"}',0),(7,'dispatch_place_2','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/dispatch_place_2/image.png\"}',0),(8,'modelw80','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/modelw80/image.png\"}',0),(9,'default3','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default3/image.png\"}',0),(10,'full_height','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/full_height/image.png\"}',0),(11,'font_sm','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/font_sm/image.png\"}',0),(12,'legend_amazonia_2','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/legend_amazonia_2/image.png\"}',0),(13,'image_logo_titles','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/image_logo_titles/image.png\"}',0),(14,'partials','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default/image.png\"}',0),(15,'defaultGreen','{\"guide\": \"templates/pdf/defaultGreen/image_guide.png\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default/image.png\"}',0),(16,'internal_code','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/internal_code/image.png\"}',0),(17,'item_description','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/item_description/image.png\"}',0),(18,'default2','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default2/image.png\"}',0),(19,'customer_contact_with_subtotal','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/customer_contact_with_subtotal/image.png\"}',0),(20,'citec','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/citec/image.png\"}',0),(21,'default','{\"guide\": \"\", \"ticket\": \"templates/pdf/default/ticket.png\", \"invoice\": \"templates/pdf/default/image.png\"}',1),(22,'fr_item_desc','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default/image.png\"}',0),(23,'default4','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default4/image.png\"}',0),(24,'default3_596','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default3_596/image.png\"}',0),(25,'distpatch_pharmacy','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default/image.png\"}',0),(26,'ticket_c','{\"guide\": \"\", \"ticket\": \"templates/pdf/ticket_c/ticket.png\", \"invoice\": \"templates/pdf/default/image.png\"}',1),(27,'internal_code_contact','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/internal_code_contact/image.png\"}',0),(28,'jazmar','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/jazmar/image.png\"}',0),(29,'default3_new_account','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default3_new_account/image.png\"}',0),(30,'model2','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/model2/image.png\"}',0),(31,'customer_contact','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/customer_contact/image.png\"}',0),(32,'dispatch_brand','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default/image.png\"}',0),(33,'default_date_end','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default_date_end/image.png\"}',0),(34,'multiples_logos','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/multiples_logos/image.png\"}',0),(35,'wsc','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/wsc/image.png\"}',0),(36,'ticket_name_tradename','{\"guide\": \"\", \"ticket\": \"templates/pdf/ticket_name_tradename/ticket.png\", \"invoice\": \"templates/pdf/default/image.png\"}',1),(37,'model4','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/model4/image.png\"}',0),(38,'school','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/school/image.png\"}',0),(39,'top_ruc','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/top_ruc/image.png\"}',0),(40,'model3','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/model3/image.png\"}',0),(41,'model1','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/model1/image.png\"}',0),(42,'ticket_58','{\"guide\": \"\", \"ticket\": \"templates/pdf/ticket_58/ticket.png\", \"invoice\": \"templates/pdf/ticket_58/image.png\"}',1),(43,'table_square_edges','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/table_square_edges/image.png\"}',0),(44,'dispatch_place','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/dispatch_place/image.png\"}',0),(45,'top_logo_company','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/top_logo_company/image.png\"}',0),(46,'top_placa','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/top_placa/image.png\"}',0),(47,'ticket_internal_code','{\"guide\": \"\", \"ticket\": \"templates/pdf/ticket_internal_code/ticket.png\", \"invoice\": \"templates/pdf/default/image.png\"}',1),(48,'rich_text','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/rich_text/image.png\"}',0),(49,'default3_new_unit_value','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default3_new_unit_value/image.png\"}',0),(50,'item_watermark','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/item_watermark/image.png\"}',0),(51,'header_image_full_width','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/header_image_full_width/image.png\"}',0),(52,'default_lote_fven_serie','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default_lote_fven_serie/image.png\"}',0),(53,'datetime','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/datetime/image.png\"}',0),(54,'unit_types_desc','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/unit_types_desc/image.png\"}',0),(55,'custom','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/custom/image.png\"}',0),(56,'default_brand_as_lab','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default_brand_as_lab/image.png\"}',0),(57,'technical','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/technical/image.png\"}',0),(58,'legend_amazonia','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/legend_amazonia/image.png\"}',0),(59,'default3_banks','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default3_banks/image.png\"}',0),(60,'internal_code_2','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/internal_code_2/image.png\"}',0),(61,'custom_multisaba','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/custom_multisaba/image.png\"}',0),(62,'full_height_ticket','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/full_height_ticket/image.png\"}',0),(63,'rounded','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/rounded/image.png\"}',0),(64,'ticket_b','{\"guide\": \"\", \"ticket\": \"templates/pdf/ticket_b/ticket.png\", \"invoice\": \"templates/pdf/default/image.png\"}',1),(65,'default5','{\"guide\": \"templates/pdf/default5/image_guide.png\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default/image.png\"}',0),(66,'top_ruc_logo','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/top_ruc_logo/image.png\"}',0),(67,'default3_new','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default3_new/image.png\"}',0),(68,'default_brand','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default_brand/image.png\"}',0),(69,'santiago','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/santiago/image.png\"}',0),(70,'default3_911','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default3_911/image.png\"}',0),(71,'ticket_d','{\"guide\": \"\", \"ticket\": \"templates/pdf/ticket_d/ticket.png\", \"invoice\": \"templates/pdf/default/image.png\"}',1),(72,'brand','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/brand/image.png\"}',0),(73,'jc','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/jc/image.png\"}',0),(74,'static','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default/image.png\"}',0),(75,'default3_929','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default3_929/image.png\"}',0),(76,'doble_print','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/doble_print/image.png\"}',0),(77,'no_igv','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/no_igv/image.png\"}',0),(78,'custom_gasolution','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/custom_gasolution/image.png\"}',0),(79,'doble_print_unilac','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/default/image.png\"}',0),(80,'font_swz','{\"guide\": \"\", \"ticket\": \"\", \"invoice\": \"templates/pdf/font_swz/image.png\"}',0);
COMMIT;

-- Dumped table `format_templates` with 80 row(s)
--

--
-- Table structure for table `full_subscription_server_data`
--

CREATE TABLE `full_subscription_server_data` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `person_id` int(10) unsigned DEFAULT 0,
  `host` varchar(255) DEFAULT NULL,
  `ip` varchar(45) DEFAULT NULL,
  `user` varchar(255) DEFAULT NULL,
  `password` varchar(255) 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 `full_subscription_server_data`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `full_subscription_user_data`
--

CREATE TABLE `full_subscription_user_data` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `person_id` int(10) unsigned DEFAULT 0,
  `discord_user` varchar(255) DEFAULT NULL,
  `slack_channel` varchar(255) DEFAULT NULL,
  `discord_channel` varchar(255) DEFAULT NULL,
  `gitlab_user` varchar(255) 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 `full_subscription_user_data`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `general_payment_conditions`
--

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

--
-- Dumping data for table `general_payment_conditions`
--

SET autocommit=0;
INSERT INTO `general_payment_conditions` VALUES ('01','Contado'),('02','Crédito'),('03','Crédito con cuotas');
COMMIT;

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

--
-- Table structure for table `global_payments`
--

CREATE TABLE `global_payments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `soap_type_id` char(2) NOT NULL,
  `destination_id` int(11) DEFAULT NULL,
  `destination_type` varchar(255) NOT NULL,
  `payment_id` int(11) NOT NULL,
  `payment_type` varchar(255) NOT NULL,
  `user_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `destination_index` (`destination_id`,`destination_type`),
  KEY `payment_index` (`payment_id`,`payment_type`),
  KEY `global_payments_soap_type_id_foreign` (`soap_type_id`),
  KEY `global_payments_user_id_foreign` (`user_id`),
  CONSTRAINT `global_payments_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `global_payments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `global_payments`
--

SET autocommit=0;
INSERT INTO `global_payments` VALUES (1,'01',1,'Modules\\Cash\\Models\\Cash',1,'Modules\\Pos\\Models\\CashTransaction',1,'2024-11-24 18:14:03','2024-11-24 18:14:03');
COMMIT;

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

--
-- Table structure for table `groups`
--

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

--
-- Dumping data for table `groups`
--

SET autocommit=0;
INSERT INTO `groups` VALUES ('01','Facturas'),('02','Boletas');
COMMIT;

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

--
-- Table structure for table `guides`
--

CREATE TABLE `guides` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `external_id` char(36) NOT NULL,
  `user_id` int(10) unsigned NOT NULL,
  `warehouse_id` int(10) unsigned NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `document_type_id` char(2) NOT NULL,
  `series` varchar(255) NOT NULL,
  `number` int(11) NOT NULL,
  `date_of_issue` date NOT NULL,
  `time_of_issue` time NOT NULL,
  `inventory_transaction_id` char(255) NOT NULL,
  `guideable_id` int(10) unsigned DEFAULT NULL,
  `guideable_type` varchar(255) DEFAULT NULL,
  `observations` longtext DEFAULT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `guides_series_number_unique` (`soap_type_id`,`document_type_id`,`series`,`number`),
  KEY `guides_user_id_foreign` (`user_id`),
  KEY `guides_warehouse_id_foreign` (`warehouse_id`),
  KEY `guides_document_type_id_foreign` (`document_type_id`),
  KEY `guides_inventory_transaction_id_foreign` (`inventory_transaction_id`),
  CONSTRAINT `guides_document_type_id_foreign` FOREIGN KEY (`document_type_id`) REFERENCES `cat_document_types` (`id`),
  CONSTRAINT `guides_inventory_transaction_id_foreign` FOREIGN KEY (`inventory_transaction_id`) REFERENCES `inventory_transactions` (`id`),
  CONSTRAINT `guides_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `guides_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `guides_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `guides`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `guide_files`
--

CREATE TABLE `guide_files` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `filename` text DEFAULT NULL COMMENT 'Nombre de archivo',
  `purchase_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con purchases',
  `document_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con documents',
  `order_note_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con order_notes',
  `quotation_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con quotations',
  `sale_note_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con sale_notes',
  `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 `guide_files`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `guide_items`
--

CREATE TABLE `guide_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `guide_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item_name` varchar(255) NOT NULL,
  `quantity` decimal(20,8) NOT NULL,
  `unit_cost` decimal(20,8) NOT NULL,
  `total` decimal(12,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `guide_items_guide_id_foreign` (`guide_id`),
  KEY `guide_items_item_id_foreign` (`item_id`),
  CONSTRAINT `guide_items_guide_id_foreign` FOREIGN KEY (`guide_id`) REFERENCES `guides` (`id`) ON DELETE CASCADE,
  CONSTRAINT `guide_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `guide_items`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `hotel_categories`
--

CREATE TABLE `hotel_categories` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `description` varchar(50) NOT NULL,
  `image` varchar(150) DEFAULT NULL,
  `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 `hotel_categories`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `hotel_floors`
--

CREATE TABLE `hotel_floors` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `description` varchar(25) NOT NULL,
  `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 `hotel_floors`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `hotel_rates`
--

CREATE TABLE `hotel_rates` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `description` varchar(50) NOT NULL,
  `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 `hotel_rates`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `hotel_rents`
--

CREATE TABLE `hotel_rents` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `customer_id` int(10) unsigned NOT NULL,
  `customer` text NOT NULL,
  `notes` varchar(250) DEFAULT NULL,
  `towels` int(11) NOT NULL DEFAULT 1,
  `hotel_room_id` int(10) unsigned NOT NULL,
  `hotel_rate_id` int(10) unsigned DEFAULT NULL,
  `duration` int(11) NOT NULL DEFAULT 1,
  `quantity_persons` int(11) NOT NULL DEFAULT 1,
  `input_date` date DEFAULT NULL,
  `input_time` varchar(8) DEFAULT NULL,
  `payment_status` varchar(10) NOT NULL,
  `output_date` date NOT NULL,
  `output_time` varchar(8) NOT NULL,
  `arrears` int(11) NOT NULL DEFAULT 0,
  `status` varchar(10) NOT NULL DEFAULT 'INICIADO',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `hotel_rents_hotel_rate_id_foreign` (`hotel_rate_id`),
  CONSTRAINT `hotel_rents_hotel_rate_id_foreign` FOREIGN KEY (`hotel_rate_id`) REFERENCES `hotel_rates` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `hotel_rents`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `hotel_rent_items`
--

CREATE TABLE `hotel_rent_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `type` varchar(3) NOT NULL,
  `hotel_rent_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` text DEFAULT NULL,
  `payment_status` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `hotel_rent_items_hotel_rent_id_foreign` (`hotel_rent_id`),
  KEY `hotel_rent_items_item_id_foreign` (`item_id`),
  CONSTRAINT `hotel_rent_items_hotel_rent_id_foreign` FOREIGN KEY (`hotel_rent_id`) REFERENCES `hotel_rents` (`id`) ON DELETE CASCADE,
  CONSTRAINT `hotel_rent_items_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 `hotel_rent_items`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `hotel_rent_item_payments`
--

CREATE TABLE `hotel_rent_item_payments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `hotel_rent_item_id` int(10) unsigned NOT NULL,
  `date_of_payment` date NOT NULL,
  `payment_method_type_id` char(2) NOT NULL,
  `reference` varchar(255) DEFAULT NULL,
  `change` decimal(12,2) DEFAULT NULL,
  `payment` decimal(12,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `hotel_rent_item_payments_hotel_rent_item_id_foreign` (`hotel_rent_item_id`),
  KEY `hotel_rent_item_payments_payment_method_type_id_foreign` (`payment_method_type_id`),
  KEY `hotel_rent_item_payments_date_of_payment_index` (`date_of_payment`),
  CONSTRAINT `hotel_rent_item_payments_hotel_rent_item_id_foreign` FOREIGN KEY (`hotel_rent_item_id`) REFERENCES `hotel_rent_items` (`id`) ON DELETE CASCADE,
  CONSTRAINT `hotel_rent_item_payments_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `hotel_rent_item_payments`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `hotel_rooms`
--

CREATE TABLE `hotel_rooms` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned DEFAULT NULL,
  `hotel_category_id` int(10) unsigned NOT NULL,
  `hotel_floor_id` int(10) unsigned NOT NULL,
  `name` varchar(25) NOT NULL,
  `description` varchar(250) DEFAULT NULL,
  `status` varchar(255) NOT NULL DEFAULT 'DISPONIBLE',
  `active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `hotel_rooms_hotel_category_id_foreign` (`hotel_category_id`),
  KEY `hotel_rooms_hotel_floor_id_foreign` (`hotel_floor_id`),
  KEY `hotel_rooms_item_id_foreign` (`item_id`),
  CONSTRAINT `hotel_rooms_hotel_category_id_foreign` FOREIGN KEY (`hotel_category_id`) REFERENCES `hotel_categories` (`id`) ON DELETE CASCADE,
  CONSTRAINT `hotel_rooms_hotel_floor_id_foreign` FOREIGN KEY (`hotel_floor_id`) REFERENCES `hotel_floors` (`id`) ON DELETE CASCADE,
  CONSTRAINT `hotel_rooms_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 `hotel_rooms`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `hotel_room_rates`
--

CREATE TABLE `hotel_room_rates` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `hotel_room_id` int(10) unsigned NOT NULL,
  `hotel_rate_id` int(10) unsigned NOT NULL,
  `price` double NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `hotel_room_rates_hotel_room_id_foreign` (`hotel_room_id`),
  KEY `hotel_room_rates_hotel_rate_id_foreign` (`hotel_rate_id`),
  CONSTRAINT `hotel_room_rates_hotel_rate_id_foreign` FOREIGN KEY (`hotel_rate_id`) REFERENCES `hotel_rates` (`id`) ON DELETE CASCADE,
  CONSTRAINT `hotel_room_rates_hotel_room_id_foreign` FOREIGN KEY (`hotel_room_id`) REFERENCES `hotel_rooms` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `hotel_room_rates`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `income`
--

CREATE TABLE `income` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `income_type_id` int(10) unsigned NOT NULL,
  `income_reason_id` int(10) unsigned NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `customer` varchar(255) NOT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `external_id` char(36) NOT NULL,
  `number` int(11) NOT NULL,
  `date_of_issue` date NOT NULL,
  `time_of_issue` time NOT NULL,
  `exchange_rate_sale` decimal(13,3) NOT NULL,
  `total` decimal(12,2) NOT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `income_filename_unique` (`filename`),
  KEY `income_user_id_foreign` (`user_id`),
  KEY `income_establishment_id_foreign` (`establishment_id`),
  KEY `income_income_type_id_foreign` (`income_type_id`),
  KEY `income_income_reason_id_foreign` (`income_reason_id`),
  KEY `income_state_type_id_foreign` (`state_type_id`),
  KEY `income_soap_type_id_foreign` (`soap_type_id`),
  KEY `income_currency_type_id_foreign` (`currency_type_id`),
  KEY `income_number_index` (`number`),
  KEY `income_date_of_issue_index` (`date_of_issue`),
  KEY `income_external_id_index` (`external_id`),
  CONSTRAINT `income_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `income_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `income_income_reason_id_foreign` FOREIGN KEY (`income_reason_id`) REFERENCES `income_reasons` (`id`),
  CONSTRAINT `income_income_type_id_foreign` FOREIGN KEY (`income_type_id`) REFERENCES `income_types` (`id`),
  CONSTRAINT `income_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `income_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `income_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `income`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `income_items`
--

CREATE TABLE `income_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `income_id` int(10) unsigned NOT NULL,
  `description` varchar(255) NOT NULL,
  `total` decimal(12,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `income_items_income_id_foreign` (`income_id`),
  CONSTRAINT `income_items_income_id_foreign` FOREIGN KEY (`income_id`) REFERENCES `income` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `income_items`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `income_payments`
--

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

--
-- Dumping data for table `income_payments`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `income_reasons`
--

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

--
-- Dumping data for table `income_reasons`
--

SET autocommit=0;
INSERT INTO `income_reasons` VALUES (1,'Varios');
COMMIT;

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

--
-- Table structure for table `income_types`
--

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

--
-- Dumping data for table `income_types`
--

SET autocommit=0;
INSERT INTO `income_types` VALUES (1,'INGRESOS FINANCIEROS','2024-11-24 16:57:35','2024-11-24 16:57:35'),(2,'PRESTAMOS','2024-11-24 16:57:35','2024-11-24 16:57:35'),(3,'OTROS','2024-11-24 16:57:35','2024-11-24 16:57:35');
COMMIT;

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

--
-- Table structure for table `inventories`
--

CREATE TABLE `inventories` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `type` enum('1','2','3') DEFAULT NULL,
  `description` varchar(255) NOT NULL,
  `detail` varchar(255) DEFAULT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `warehouse_id` int(10) unsigned NOT NULL,
  `warehouse_destination_id` int(10) unsigned DEFAULT NULL,
  `inventory_transaction_id` varchar(255) DEFAULT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `lot_code` varchar(255) DEFAULT NULL,
  `inventories_transfer_id` int(10) unsigned DEFAULT NULL,
  `comments` varchar(255) DEFAULT NULL,
  `date_of_issue` date DEFAULT NULL,
  `guide_id` int(10) unsigned DEFAULT NULL,
  `system_stock` decimal(12,4) DEFAULT NULL,
  `real_stock` decimal(12,4) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inventories_item_id_foreign` (`item_id`),
  KEY `inventories_warehouse_id_foreign` (`warehouse_id`),
  KEY `inventories_inventory_transaction_id_foreign` (`inventory_transaction_id`),
  KEY `inventories_inventories_transfer_id_foreign` (`inventories_transfer_id`),
  CONSTRAINT `inventories_inventories_transfer_id_foreign` FOREIGN KEY (`inventories_transfer_id`) REFERENCES `inventories_transfer` (`id`),
  CONSTRAINT `inventories_inventory_transaction_id_foreign` FOREIGN KEY (`inventory_transaction_id`) REFERENCES `inventory_transactions` (`id`),
  CONSTRAINT `inventories_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`) ON DELETE CASCADE,
  CONSTRAINT `inventories_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inventories`
--

SET autocommit=0;
INSERT INTO `inventories` VALUES (1,'1','Stock inicial',NULL,1,1,NULL,NULL,15.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-11-24 18:28:46','2024-11-24 18:28:46'),(2,'1','Stock inicial',NULL,2,1,NULL,NULL,3.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-11-24 19:16:13','2024-11-24 19:16:13'),(3,'1','Stock inicial',NULL,1,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(4,'1','Stock inicial',NULL,2,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(5,'1','Stock inicial',NULL,3,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(6,'1','Stock inicial',NULL,4,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(7,'1','Stock inicial',NULL,5,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(8,'1','Stock inicial',NULL,6,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(9,'1','Stock inicial',NULL,7,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(10,'1','Stock inicial',NULL,8,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(11,'1','Stock inicial',NULL,9,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(12,'1','Stock inicial',NULL,10,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(13,'1','Stock inicial',NULL,11,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(14,'1','Stock inicial',NULL,12,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(15,'1','Stock inicial',NULL,13,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(16,'1','Stock inicial',NULL,14,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(17,'1','Stock inicial',NULL,15,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(18,'1','Stock inicial',NULL,16,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(19,'1','Stock inicial',NULL,17,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(20,'1','Stock inicial',NULL,18,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(21,'1','Stock inicial',NULL,19,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(22,'1','Stock inicial',NULL,20,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(23,'1','Stock inicial',NULL,21,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(24,'1','Stock inicial',NULL,22,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(25,'1','Stock inicial',NULL,23,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(26,'1','Stock inicial',NULL,24,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(27,'1','Stock inicial',NULL,25,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(28,'1','Stock inicial',NULL,26,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(29,'1','Stock inicial',NULL,27,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(30,'1','Stock inicial',NULL,28,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(31,'1','Stock inicial',NULL,29,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(32,'1','Stock inicial',NULL,30,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(33,'1','Stock inicial',NULL,31,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(34,'1','Stock inicial',NULL,32,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(35,'1','Stock inicial',NULL,33,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(36,'1','Stock inicial',NULL,34,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(37,'1','Stock inicial',NULL,35,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(38,'1','Stock inicial',NULL,36,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(39,'1','Stock inicial',NULL,37,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(40,'1','Stock inicial',NULL,38,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(41,'1','Stock inicial',NULL,39,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(42,'1','Stock inicial',NULL,40,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(43,'1','Stock inicial',NULL,41,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(44,'1','Stock inicial',NULL,42,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(45,'1','Stock inicial',NULL,43,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(46,'1','Stock inicial',NULL,44,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(47,'1','Stock inicial',NULL,45,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(48,'1','Stock inicial',NULL,46,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(49,'1','Stock inicial',NULL,47,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(50,'1','Stock inicial',NULL,48,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(51,'1','Stock inicial',NULL,49,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(52,'1','Stock inicial',NULL,50,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(53,'1','Stock inicial',NULL,51,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(54,'1','Stock inicial',NULL,52,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(55,'1','Stock inicial',NULL,53,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(56,'1','Stock inicial',NULL,54,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(57,'1','Stock inicial',NULL,55,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(58,'1','Stock inicial',NULL,56,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(59,'1','Stock inicial',NULL,57,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(60,'1','Stock inicial',NULL,58,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(61,'1','Stock inicial',NULL,59,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(62,'1','Stock inicial',NULL,60,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(63,'1','Stock inicial',NULL,61,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(64,'1','Stock inicial',NULL,62,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(65,'1','Stock inicial',NULL,63,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(66,'1','Stock inicial',NULL,64,1,NULL,NULL,100.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2024-12-04 17:38:10','2024-12-04 17:38:10');
COMMIT;

-- Dumped table `inventories` with 66 row(s)
--

--
-- Table structure for table `inventories_transfer`
--

CREATE TABLE `inventories_transfer` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `external_id` char(36) DEFAULT NULL,
  `soap_type_id` char(2) DEFAULT NULL,
  `document_type_id` char(2) DEFAULT NULL,
  `series` varchar(255) DEFAULT NULL,
  `number` int(11) DEFAULT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `warehouse_id` int(10) unsigned NOT NULL,
  `warehouse_destination_id` int(10) unsigned NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `user_id` int(10) unsigned DEFAULT 0 COMMENT 'usuario que crea el registro',
  PRIMARY KEY (`id`),
  KEY `inventories_transfer_warehouse_id_foreign` (`warehouse_id`),
  KEY `inventories_transfer_warehouse_destination_id_foreign` (`warehouse_destination_id`),
  KEY `inventories_transfer_soap_type_id_foreign` (`soap_type_id`),
  KEY `inventories_transfer_document_type_id_foreign` (`document_type_id`),
  CONSTRAINT `inventories_transfer_document_type_id_foreign` FOREIGN KEY (`document_type_id`) REFERENCES `cat_document_types` (`id`),
  CONSTRAINT `inventories_transfer_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `inventories_transfer_warehouse_destination_id_foreign` FOREIGN KEY (`warehouse_destination_id`) REFERENCES `warehouses` (`id`),
  CONSTRAINT `inventories_transfer_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inventories_transfer`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `inventory_configurations`
--

CREATE TABLE `inventory_configurations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `stock_control` tinyint(1) NOT NULL DEFAULT 0,
  `validate_stock_add_item` tinyint(1) NOT NULL DEFAULT 0,
  `inventory_review` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `generate_internal_id` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inventory_configurations`
--

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

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

--
-- Table structure for table `inventory_kardex`
--

CREATE TABLE `inventory_kardex` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `date_of_issue` date NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `inventory_kardexable_id` int(10) unsigned NOT NULL,
  `inventory_kardexable_type` varchar(255) NOT NULL,
  `warehouse_id` int(10) unsigned NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inventory_kardex_item_id_foreign` (`item_id`),
  KEY `inventory_kardex_warehouse_id_foreign` (`warehouse_id`),
  KEY `inventory_kardex_inventory_kardexable_id_index` (`inventory_kardexable_id`),
  KEY `inventory_kardex_inventory_kardexable_type_index` (`inventory_kardexable_type`),
  CONSTRAINT `inventory_kardex_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`) ON DELETE CASCADE,
  CONSTRAINT `inventory_kardex_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=70 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inventory_kardex`
--

SET autocommit=0;
INSERT INTO `inventory_kardex` VALUES (1,'2024-11-24',1,1,'Modules\\Inventory\\Models\\Inventory',1,15.0000,'2024-11-24 18:28:46','2024-11-24 18:28:46'),(2,'2024-11-24',1,1,'Modules\\SaleNote\\Models\\SaleNote',1,-1.0000,'2024-11-24 18:59:20','2024-11-24 18:59:20'),(3,'2024-11-24',2,2,'Modules\\Inventory\\Models\\Inventory',1,3.0000,'2024-11-24 19:16:13','2024-11-24 19:16:13'),(4,'2024-11-24',2,1,'Modules\\Document\\Models\\Document',1,-1.0000,'2024-11-24 19:26:40','2024-11-24 19:26:40'),(5,'2024-12-04',1,1,'Modules\\SaleNote\\Models\\SaleNote',1,1.0000,'2024-12-04 17:24:52','2024-12-04 17:24:52'),(6,'2024-12-04',1,3,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(7,'2024-12-04',2,4,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(8,'2024-12-04',3,5,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(9,'2024-12-04',4,6,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(10,'2024-12-04',5,7,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(11,'2024-12-04',6,8,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(12,'2024-12-04',7,9,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(13,'2024-12-04',8,10,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(14,'2024-12-04',9,11,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(15,'2024-12-04',10,12,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(16,'2024-12-04',11,13,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(17,'2024-12-04',12,14,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(18,'2024-12-04',13,15,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(19,'2024-12-04',14,16,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(20,'2024-12-04',15,17,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(21,'2024-12-04',16,18,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(22,'2024-12-04',17,19,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(23,'2024-12-04',18,20,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(24,'2024-12-04',19,21,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(25,'2024-12-04',20,22,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(26,'2024-12-04',21,23,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(27,'2024-12-04',22,24,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(28,'2024-12-04',23,25,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(29,'2024-12-04',24,26,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(30,'2024-12-04',25,27,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(31,'2024-12-04',26,28,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(32,'2024-12-04',27,29,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(33,'2024-12-04',28,30,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(34,'2024-12-04',29,31,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(35,'2024-12-04',30,32,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(36,'2024-12-04',31,33,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(37,'2024-12-04',32,34,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(38,'2024-12-04',33,35,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(39,'2024-12-04',34,36,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(40,'2024-12-04',35,37,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(41,'2024-12-04',36,38,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(42,'2024-12-04',37,39,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(43,'2024-12-04',38,40,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(44,'2024-12-04',39,41,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(45,'2024-12-04',40,42,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(46,'2024-12-04',41,43,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(47,'2024-12-04',42,44,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(48,'2024-12-04',43,45,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(49,'2024-12-04',44,46,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(50,'2024-12-04',45,47,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(51,'2024-12-04',46,48,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(52,'2024-12-04',47,49,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(53,'2024-12-04',48,50,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(54,'2024-12-04',49,51,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(55,'2024-12-04',50,52,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(56,'2024-12-04',51,53,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(57,'2024-12-04',52,54,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(58,'2024-12-04',53,55,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(59,'2024-12-04',54,56,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(60,'2024-12-04',55,57,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(61,'2024-12-04',56,58,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(62,'2024-12-04',57,59,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(63,'2024-12-04',58,60,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(64,'2024-12-04',59,61,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(65,'2024-12-04',60,62,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(66,'2024-12-04',61,63,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(67,'2024-12-04',62,64,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(68,'2024-12-04',63,65,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(69,'2024-12-04',64,66,'Modules\\Inventory\\Models\\Inventory',1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10');
COMMIT;

-- Dumped table `inventory_kardex` with 69 row(s)
--

--
-- Table structure for table `inventory_transactions`
--

CREATE TABLE `inventory_transactions` (
  `id` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `type` enum('input','output') NOT NULL,
  KEY `inventory_transactions_id_index` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inventory_transactions`
--

SET autocommit=0;
INSERT INTO `inventory_transactions` VALUES ('02','Compra nacional','input'),('03','Consignación recibida','input'),('05','Devolución recibida','input'),('16','Inventario inicial','input'),('18','Entrada de importación','input'),('19','Ingreso de producción','input'),('20','Entrada por devolución de producción','input'),('21','Entrada por transferencia entre almacenes','input'),('22','Entrada por identificación erronea','input'),('24','Entrada por devolución del cliente','input'),('26','Entrada para servicio de producción','input'),('29','Entrada de bienes en prestamo','input'),('31','Entrada de bienes en custodia','input'),('50','Ingreso temporal','input'),('52','Ingreso por transformación','input'),('54','Ingreso de producción','input'),('55','Entrada de importación','input'),('57','Entrada por conversión de medida','input'),('91','Ingreso por transformación','input'),('93','Ingreso temporal','input'),('96','Entrada por conversión de medida','input'),('99','Otros','input'),('01','Venta nacional','output'),('04','Consignación entregada','output'),('06','Devolución entregada','output'),('07','Bonificación','output'),('08','Premio','output'),('09','Donación','output'),('10','Salida a producción','output'),('11','Salida por transferencia entre almacenes','output'),('12','Retiro','output'),('13','Mermas','output'),('14','Desmedros','output'),('15','Destrucción','output'),('17','Exportación','output'),('23','Salida por identificación erronea','output'),('25','Salida por devolución al proveedor','output'),('27','Salida por servicio de producción','output'),('28','Ajuste por diferencia de inventario','output'),('30','Salida de bienes en prestamo','output'),('32','Salida de bienes en custodia','output'),('33','Muestras médicas','output'),('34','Publicidad','output'),('35','Gastos de representación','output'),('36','Retiro para entrega a trabajadores','output'),('37','Retiro por convenio colectivo','output'),('38','Retiro por sustitución de bien siniestrado','output'),('51','Salida temporal','output'),('53','Salida para servicios terceros','output'),('56','Salida por conversión de medida','output'),('100','Ingreso insumos por molino','input'),('101','Salida por insumo','output'),('102','Entrada por importacion masiva (xlsx)','input');
COMMIT;

-- Dumped table `inventory_transactions` with 53 row(s)
--

--
-- Table structure for table `inventory_transfer_items`
--

CREATE TABLE `inventory_transfer_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `inventory_transfer_id` int(10) unsigned NOT NULL,
  `item_lots_group_id` int(10) unsigned DEFAULT NULL,
  `item_lot_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inventory_transfer_items_inventory_transfer_id_foreign` (`inventory_transfer_id`),
  KEY `inventory_transfer_items_item_lots_group_id_foreign` (`item_lots_group_id`),
  KEY `inventory_transfer_items_item_lot_id_foreign` (`item_lot_id`),
  CONSTRAINT `inventory_transfer_items_inventory_transfer_id_foreign` FOREIGN KEY (`inventory_transfer_id`) REFERENCES `inventories_transfer` (`id`),
  CONSTRAINT `inventory_transfer_items_item_lot_id_foreign` FOREIGN KEY (`item_lot_id`) REFERENCES `item_lots` (`id`),
  CONSTRAINT `inventory_transfer_items_item_lots_group_id_foreign` FOREIGN KEY (`item_lots_group_id`) REFERENCES `item_lots_group` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inventory_transfer_items`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `invoices`
--

CREATE TABLE `invoices` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `document_id` int(10) unsigned NOT NULL,
  `operation_type_id` varchar(255) NOT NULL,
  `date_of_due` date NOT NULL,
  PRIMARY KEY (`id`),
  KEY `invoices_document_id_foreign` (`document_id`),
  KEY `invoices_operation_type_id_foreign` (`operation_type_id`),
  CONSTRAINT `invoices_document_id_foreign` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE,
  CONSTRAINT `invoices_operation_type_id_foreign` FOREIGN KEY (`operation_type_id`) REFERENCES `cat_operation_types` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `invoices`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `items`
--

CREATE TABLE `items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(600) DEFAULT NULL,
  `second_name` varchar(600) DEFAULT NULL,
  `description` varchar(600) DEFAULT NULL,
  `text_filter` longtext DEFAULT NULL,
  `model` varchar(100) DEFAULT NULL,
  `factory_code` varchar(255) DEFAULT NULL,
  `barcode` varchar(150) DEFAULT NULL,
  `technical_specifications` varchar(300) DEFAULT NULL,
  `item_type_id` char(2) NOT NULL,
  `internal_id` varchar(30) DEFAULT NULL,
  `item_code` varchar(255) DEFAULT NULL,
  `date_of_due` date DEFAULT NULL,
  `account_id` int(10) unsigned DEFAULT NULL,
  `item_code_gs1` varchar(255) DEFAULT NULL,
  `unit_type_id` varchar(255) NOT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `sale_unit_price` decimal(16,6) NOT NULL,
  `purchase_has_igv` tinyint(1) NOT NULL DEFAULT 1,
  `has_igv` tinyint(1) NOT NULL DEFAULT 1,
  `subject_to_detraction` tinyint(1) NOT NULL DEFAULT 0,
  `purchase_unit_price` decimal(16,6) NOT NULL DEFAULT 0.000000,
  `has_isc` tinyint(1) NOT NULL DEFAULT 0,
  `restrict_sale_cpe` tinyint(1) NOT NULL DEFAULT 0,
  `exchange_points` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'sistema por puntos',
  `quantity_of_points` decimal(12,2) NOT NULL DEFAULT 0.00 COMMENT 'sistema por puntos',
  `commission_amount` decimal(8,2) DEFAULT NULL,
  `line` varchar(255) DEFAULT NULL,
  `commission_type` varchar(255) DEFAULT NULL,
  `amount_plastic_bag_taxes` decimal(6,2) NOT NULL DEFAULT 0.10,
  `system_isc_type_id` varchar(255) DEFAULT NULL,
  `percentage_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `suggested_price` decimal(12,2) NOT NULL DEFAULT 0.00,
  `purchase_has_isc` tinyint(1) NOT NULL DEFAULT 0,
  `purchase_system_isc_type_id` varchar(255) DEFAULT NULL,
  `purchase_percentage_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `sale_affectation_igv_type_id` varchar(255) NOT NULL,
  `purchase_affectation_igv_type_id` varchar(255) NOT NULL,
  `calculate_quantity` tinyint(1) NOT NULL DEFAULT 0,
  `sale_unit_price_set` decimal(16,6) DEFAULT NULL,
  `is_set` tinyint(1) NOT NULL DEFAULT 0,
  `favorite` tinyint(1) NOT NULL DEFAULT 0,
  `category_id` int(10) unsigned DEFAULT NULL,
  `brand_id` int(10) unsigned DEFAULT NULL,
  `image` varchar(255) NOT NULL DEFAULT 'imagen-no-disponible.jpg',
  `image_medium` varchar(255) NOT NULL DEFAULT 'imagen-no-disponible.jpg',
  `image_small` varchar(255) NOT NULL DEFAULT 'imagen-no-disponible.jpg',
  `stock` decimal(16,4) NOT NULL DEFAULT 0.0000,
  `stock_min` decimal(12,2) NOT NULL DEFAULT 0.00,
  `has_plastic_bag_taxes` tinyint(1) NOT NULL DEFAULT 0,
  `lot_code` varchar(255) DEFAULT NULL,
  `lots_enabled` tinyint(1) NOT NULL DEFAULT 0,
  `series_enabled` tinyint(1) NOT NULL DEFAULT 0,
  `percentage_of_profit` decimal(12,2) NOT NULL DEFAULT 0.00,
  `has_perception` tinyint(1) NOT NULL DEFAULT 0,
  `percentage_perception` decimal(12,2) DEFAULT NULL,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`attributes`)),
  `active` tinyint(1) NOT NULL DEFAULT 1,
  `web_platform_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `warehouse_id` int(10) unsigned DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1,
  `apply_store` tinyint(1) NOT NULL DEFAULT 0,
  `apply_restaurant` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'visible en menu restaurante',
  `cod_digemid` text DEFAULT NULL COMMENT 'Codigo de producto DIGEMID',
  `sanitary` text DEFAULT NULL COMMENT 'Registro sanitario',
  `is_for_production` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Define si es compuesto para produccion',
  PRIMARY KEY (`id`),
  KEY `items_item_type_id_foreign` (`item_type_id`),
  KEY `items_unit_type_id_foreign` (`unit_type_id`),
  KEY `items_currency_type_id_foreign` (`currency_type_id`),
  KEY `items_system_isc_type_id_foreign` (`system_isc_type_id`),
  KEY `items_sale_affectation_igv_type_id_foreign` (`sale_affectation_igv_type_id`),
  KEY `items_purchase_affectation_igv_type_id_foreign` (`purchase_affectation_igv_type_id`),
  KEY `items_warehouse_id_foreign` (`warehouse_id`),
  KEY `items_account_id_foreign` (`account_id`),
  KEY `items_brand_id_foreign` (`brand_id`),
  KEY `items_category_id_foreign` (`category_id`),
  KEY `items_name_index` (`name`),
  KEY `items_second_name_index` (`second_name`),
  KEY `items_description_index` (`description`),
  KEY `items_internal_id_index` (`internal_id`),
  KEY `items_item_code_index` (`item_code`),
  KEY `items_web_platform_id_foreign` (`web_platform_id`),
  KEY `items_purchase_system_isc_type_id_foreign` (`purchase_system_isc_type_id`),
  KEY `items_favorite_index` (`favorite`),
  KEY `items_factory_code_index` (`factory_code`),
  FULLTEXT KEY `items_text_filter_fulltext` (`text_filter`),
  CONSTRAINT `items_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `items_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`),
  CONSTRAINT `items_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`),
  CONSTRAINT `items_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `items_item_type_id_foreign` FOREIGN KEY (`item_type_id`) REFERENCES `item_types` (`id`),
  CONSTRAINT `items_purchase_affectation_igv_type_id_foreign` FOREIGN KEY (`purchase_affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `items_purchase_system_isc_type_id_foreign` FOREIGN KEY (`purchase_system_isc_type_id`) REFERENCES `cat_system_isc_types` (`id`),
  CONSTRAINT `items_sale_affectation_igv_type_id_foreign` FOREIGN KEY (`sale_affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `items_system_isc_type_id_foreign` FOREIGN KEY (`system_isc_type_id`) REFERENCES `cat_system_isc_types` (`id`),
  CONSTRAINT `items_unit_type_id_foreign` FOREIGN KEY (`unit_type_id`) REFERENCES `cat_unit_types` (`id`),
  CONSTRAINT `items_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`),
  CONSTRAINT `items_web_platform_id_foreign` FOREIGN KEY (`web_platform_id`) REFERENCES `web_platforms` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=65 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `items`
--

SET autocommit=0;
INSERT INTO `items` VALUES (1,'Bebida saludable alcalinizante que te ayuda a promover la limpieza de elementos tóxicos de tu organismo y equilibrar el pH de tu cuerpo, para que puedas vivir sano y con energía.','¡MANTÉN TU CUERPO BALANCEADO, LIMPIO Y DESINTOXICADO!','Alpha Balance - Doypack 28 sticks x 5gr','Bebida saludable alcalinizante que te ayuda a promover la limpieza de elementos tóxicos de tu organismo y equilibrar el pH de tu cuerpo, para que puedas vivir sano y con energía. ¡MANTÉN TU CUERPO BALANCEADO, LIMPIO Y DESINTOXICADO! Alpha Balance - Doypack 28 sticks x 5gr GA001 B1000001 BI001 1. LIMPIA FUXION','GA001',NULL,'B1000001','Preparación:\nDisolver el contenido de un stick en un vaso con 180 ml de agua fría.\n\nRecomendación de Consumo:\nToma uno o dos sticks al día a la hora que lo desees. De preferencia al levantarte o con tu jugo del desayuno.','01','BI001','51121703','2025-12-04',NULL,NULL,'NIU','PEN',129.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,1,4,'BI001-20241205000645.jpg','BI001-20241205000645_medium.jpg','BI001-20241205000645_small.jpg',115.0000,10.00,0,'323232',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 10:53:55',1,1,1,0,NULL,NULL,0),(2,'La Base Madre Amarilla Q\'ocina en Casa te ayuda a cocinar rico, fácil y sano: - Rico: desarrollada por Gastón y su equipo de Chefs, siguiendo todos los procesos y secretos que garantizan un sabor inigualable.','Base Madre Amarilla - Sobre x 50gr','Base Madre Amarilla - Sobre x 50gr','La Base Madre Amarilla Q\'ocina en Casa te ayuda a cocinar rico, fácil y sano: - Rico: desarrollada por Gastón y su equipo de Chefs, siguiendo todos los procesos y secretos que garantizan un sabor inigualable. Base Madre Amarilla - Sobre x 50gr Base Madre Amarilla - Sobre x 50gr GA002 B1000002 BI002 FUXION FUXION','GA002',NULL,'B1000002','Preparación\nRehidrata la base con agua de acuerdo a la receta de tu elección. Puedes usar todo el contenido como base para platos de 4 porciones o agregarla a tu gusto  para darle un toque especial a tus preparaciones caseras.','01','BI002','51121704','2025-12-05',NULL,NULL,'NIU','PEN',24.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI002-20241205000924.jpg','BI002-20241205000924_medium.jpg','BI002-20241205000924_small.jpg',102.0000,10.00,0,'323233',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 11:19:17',1,1,1,0,NULL,NULL,0),(3,'Base Madre Roja - Sobre x 50gr','Base Madre Roja - Sobre x 50gr','Base Madre Roja - Sobre x 50gr','Base Madre Roja - Sobre x 50gr Base Madre Roja - Sobre x 50gr Base Madre Roja - Sobre x 50gr GA003 B1000003 BI003 FUXION FUXION','GA003',NULL,'B1000003',NULL,'01','BI003','51121705','2025-12-06',NULL,NULL,'NIU','PEN',24.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI003-20241206003505.jpg','BI003-20241206003505_medium.jpg','BI003-20241206003505_small.jpg',100.0000,10.00,0,'323234',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 11:19:08',1,1,1,0,NULL,NULL,0),(4,'Base Madre Verde - Sobre x 50gr','Base Madre Verde - Sobre x 50gr','Base Madre Verde - Sobre x 50gr','Base Madre Verde - Sobre x 50gr Base Madre Verde - Sobre x 50gr Base Madre Verde - Sobre x 50gr GA004 B1000004 BI004 FUXION FUXION','GA004',NULL,'B1000004',NULL,'01','BI004','51121706','2025-12-07',NULL,NULL,'NIU','PEN',24.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI004-20241206003953.jpg','BI004-20241206003953_medium.jpg','BI004-20241206003953_small.jpg',100.0000,10.00,0,'323235',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 11:18:57',1,1,1,0,NULL,NULL,0),(5,'Beauty-In - Doypack 28 sticks x 5gr','Beauty-In - Doypack 28 sticks x 5gr','Beauty-In - Doypack 28 sticks x 5gr','Beauty-In - Doypack 28 sticks x 5gr Beauty-In - Doypack 28 sticks x 5gr Beauty-In - Doypack 28 sticks x 5gr GA005 B1000005 BI005 FUXION FUXION','GA005',NULL,'B1000005',NULL,'01','BI005','51121707','2025-12-08',NULL,NULL,'NIU','PEN',163.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI005-20241206004059.jpeg','BI005-20241206004059_medium.jpeg','BI005-20241206004059_small.jpeg',100.0000,10.00,0,'323236',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 11:14:01',1,1,1,0,NULL,NULL,0),(6,'Berry Balance - Doypack 28 sticks x 5gr','Berry Balance - Doypack 28 sticks x 5gr','Berry Balance - Doypack 28 sticks x 5gr','Berry Balance - Doypack 28 sticks x 5gr Berry Balance - Doypack 28 sticks x 5gr Berry Balance - Doypack 28 sticks x 5gr GA006 B1000006 BI006 1. LIMPIA FUXION','GA006',NULL,'B1000006',NULL,'01','BI006','51121708','2025-12-09',NULL,NULL,'NIU','PEN',169.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,1,4,'BI006-20241206004145.jpeg','BI006-20241206004145_medium.jpeg','BI006-20241206004145_small.jpeg',100.0000,10.00,0,'323237',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 10:59:19',1,1,1,0,NULL,NULL,0),(7,'Biopro+ Fit - Caja 14 sticks x 25gr','Biopro+ Fit - Caja 14 sticks x 25gr','Biopro+ Fit - Caja 14 sticks x 25gr','Biopro+ Fit - Caja 14 sticks x 25gr Biopro+ Fit - Caja 14 sticks x 25gr Biopro+ Fit - Caja 14 sticks x 25gr GA007 B1000007 BI007 FUXION FUXION','GA007',NULL,'B1000007',NULL,'01','BI007','51121709','2025-12-10',NULL,NULL,'NIU','PEN',108.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI007-20241206004638.jpeg','BI007-20241206004638_medium.jpeg','BI007-20241206004638_small.jpeg',100.0000,10.00,0,'323238',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 11:10:01',1,1,1,0,NULL,NULL,0),(8,'Biopro+ Sport - Caja 14 sticks x 25gr','Biopro+ Sport - Caja 14 sticks x 25gr','Biopro+ Sport - Caja 14 sticks x 25gr','Biopro+ Sport - Caja 14 sticks x 25gr Biopro+ Sport - Caja 14 sticks x 25gr Biopro+ Sport - Caja 14 sticks x 25gr GA008 B1000008 BI008 FUXION FUXION','GA008',NULL,'B1000008',NULL,'01','BI008','51121710','2025-12-11',NULL,NULL,'NIU','PEN',132.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI008-20241206004714.jpeg','BI008-20241206004714_medium.jpeg','BI008-20241206004714_small.jpeg',100.0000,10.00,0,'323239',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 11:16:56',1,1,1,0,NULL,NULL,0),(9,'Biopro+ Sport - Pote x 2 lb','Biopro+ Sport - Pote x 2 lb','Biopro+ Sport - Pote x 2 lb','Biopro+ Sport - Pote x 2 lb Biopro+ Sport - Pote x 2 lb Biopro+ Sport - Pote x 2 lb GA009 B1000009 BI009 FUXION FUXION','GA009',NULL,'B1000009',NULL,'01','BI009','51121711','2025-12-12',NULL,NULL,'NIU','PEN',259.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI009-20241206004753.jpeg','BI009-20241206004753_medium.jpeg','BI009-20241206004753_small.jpeg',100.0000,10.00,0,'323240',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 11:17:28',1,1,1,0,NULL,NULL,0),(10,'Biopro+ Tect - Caja 14 sticks x 25gr','Biopro+ Tect - Caja 14 sticks x 25gr','Biopro+ Tect - Caja 14 sticks x 25gr','Biopro+ Tect - Caja 14 sticks x 25gr Biopro+ Tect - Caja 14 sticks x 25gr Biopro+ Tect - Caja 14 sticks x 25gr GA010 B1000010 BI010 FUXION FUXION','GA010',NULL,'B1000010',NULL,'01','BI010','51121712','2025-12-13',NULL,NULL,'NIU','PEN',119.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI010-20241206004843.jpeg','BI010-20241206004843_medium.jpeg','BI010-20241206004843_small.jpeg',100.0000,10.00,0,'323241',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 11:01:14',1,1,1,0,NULL,NULL,0),(11,'Biopro+ Tect - Pote x 500gr','Biopro+ Tect - Pote x 500gr','Biopro+ Tect - Pote x 500gr','Biopro+ Tect - Pote x 500gr Biopro+ Tect - Pote x 500gr Biopro+ Tect - Pote x 500gr GA011 B1000011 BI011 FUXION FUXION','GA011',NULL,'B1000011',NULL,'01','BI011','51121713','2025-12-14',NULL,NULL,'NIU','PEN',163.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI011-20241206004933.jpeg','BI011-20241206004933_medium.jpeg','BI011-20241206004933_small.jpeg',100.0000,10.00,0,'323242',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 11:01:02',1,1,1,0,NULL,NULL,0),(12,'Café & Café Fit - Caja 28 x 5gr','Café & Café Fit - Caja 28 x 5gr','Café & Cafe Fit - Caja 28 x 5gr','Café & Café Fit - Caja 28 x 5gr Café & Café Fit - Caja 28 x 5gr Café & Cafe Fit - Caja 28 x 5gr GA012 B1000012 BI012 FUXION FUXION','GA012',NULL,'B1000012',NULL,'01','BI012','51121714','2025-12-15',NULL,NULL,'NIU','PEN',159.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI012-20241206005141.jpg','BI012-20241206005141_medium.jpg','BI012-20241206005141_small.jpg',100.0000,10.00,0,'323243',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 11:11:39',1,1,1,0,NULL,NULL,0),(13,'Café & Café Fit Cappuccino - Caja x 28 x 15gr','Café & Café Fit Cappuccino - Caja x 28 x 15gr','Café & Cafe Fit Cappuccino - Caja x 28 x 15gr','Café & Café Fit Cappuccino - Caja x 28 x 15gr Café & Café Fit Cappuccino - Caja x 28 x 15gr Café & Cafe Fit Cappuccino - Caja x 28 x 15gr GA013 B1000013 BI013 FUXION FUXION','GA013',NULL,'B1000013',NULL,'01','BI013','51121715','2025-12-16',NULL,NULL,'NIU','PEN',159.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI013-20241206005228.jpg','BI013-20241206005228_medium.jpg','BI013-20241206005228_small.jpg',100.0000,10.00,0,'323244',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 11:07:13',1,1,1,0,NULL,NULL,0),(14,'Café Ganomax - Caja 28 sticks x 5gr','Café Ganomax - Caja 28 sticks x 5gr','Cafe Ganomax - Caja 28 sticks x 5gr','Café Ganomax - Caja 28 sticks x 5gr Café Ganomax - Caja 28 sticks x 5gr Cafe Ganomax - Caja 28 sticks x 5gr GA014 B1000014 BI014 FUXION FUXION','GA014',NULL,'B1000014',NULL,'01','BI014','51121716','2025-12-17',NULL,NULL,'NIU','PEN',146.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI014-20241206005327.jpeg','BI014-20241206005327_medium.jpeg','BI014-20241206005327_small.jpeg',100.0000,10.00,0,'323245',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 11:06:42',1,1,1,0,NULL,NULL,0),(15,'Chocolate Fit - Caja 14 sticks x 15gr','Chocolate Fit - Caja 14 sticks x 15gr','Chocolate Fit - Caja 14 sticks x 15gr','Chocolate Fit - Caja 14 sticks x 15gr Chocolate Fit - Caja 14 sticks x 15gr Chocolate Fit - Caja 14 sticks x 15gr GA015 B1000015 BI015 FUXION FUXION','GA015',NULL,'B1000015',NULL,'01','BI015','51121717','2025-12-18',NULL,NULL,'NIU','PEN',92.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI015-20241206005408.jpeg','BI015-20241206005408_medium.jpeg','BI015-20241206005408_small.jpeg',100.0000,10.00,0,'323246',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 11:11:57',1,1,1,0,NULL,NULL,0),(16,'Combo Ponte en Forma - Combo','Combo Ponte en Forma - Combo','Combo Ponte en Forma - Combo','Combo Ponte en Forma - Combo Combo Ponte en Forma - Combo Combo Ponte en Forma - Combo GA016 B1000016 BI016 FUXION FUXION','GA016',NULL,'B1000016',NULL,'01','BI016','51121718','2025-12-19',NULL,NULL,'NIU','PEN',676.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI016-20241206005433.jpg','BI016-20241206005433_medium.jpg','BI016-20241206005433_small.jpg',100.0000,10.00,0,'323247',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 11:23:54',1,1,1,0,NULL,NULL,0),(17,'Combo Potencia tu Entrenamiento - Promoción','Combo Potencia tu Entrenamiento - Promoción','Combo Potencia tu Entrenamiento - Promoción','Combo Potencia tu Entrenamiento - Promoción Combo Potencia tu Entrenamiento - Promoción Combo Potencia tu Entrenamiento - Promoción GA017 B1000017 BI017 FUXION FUXION','GA017',NULL,'B1000017',NULL,'01','BI017','51121719','2025-12-20',NULL,NULL,'NIU','PEN',225.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI017-20241206005454.png','BI017-20241206005454_medium.png','BI017-20241206005454_small.png',100.0000,10.00,0,'323248',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:09','2024-12-06 00:54:55',1,1,1,0,NULL,NULL,0),(18,'Combo Reduce y Tonifica Saludablemente - Promoción','Combo Reduce y Tonifica Saludablemente - Promoción','Combo Reduce y Tonifica Saludablemente - Promoción','Combo Reduce y Tonifica Saludablemente - Promoción Combo Reduce y Tonifica Saludablemente - Promoción Combo Reduce y Tonifica Saludablemente - Promoción GA018 B1000018 BI018 FUXION FUXION','GA018',NULL,'B1000018',NULL,'01','BI018','51121720','2025-12-21',NULL,NULL,'NIU','PEN',215.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI018-20241206005513.png','BI018-20241206005513_medium.png','BI018-20241206005513_small.png',100.0000,10.00,0,'323249',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 00:55:13',1,1,1,0,NULL,NULL,0),(19,'Flora Liv - Doypack 28 sticks x 5gr','Flora Liv - Doypack 28 sticks x 5gr','Flora Liv - Doypack 28 sticks x 5gr','Flora Liv - Doypack 28 sticks x 5gr Flora Liv - Doypack 28 sticks x 5gr Flora Liv - Doypack 28 sticks x 5gr GA019 B1000019 BI019 1. LIMPIA FUXION','GA019',NULL,'B1000019',NULL,'01','BI019','51121721','2025-12-22',NULL,NULL,'NIU','PEN',154.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,1,4,'BI019-20241206005540.jpeg','BI019-20241206005540_medium.jpeg','BI019-20241206005540_small.jpeg',100.0000,10.00,0,'323250',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 10:58:11',1,1,1,0,NULL,NULL,0),(20,'Gano+ Cappuccino - Doypack 28 sticks x 7.5gr','Gano+ Cappuccino - Doypack 28 sticks x 7.5gr','Gano+ Cappuccino - Doypack 28 sticks x 7.5gr','Gano+ Cappuccino - Doypack 28 sticks x 7.5gr Gano+ Cappuccino - Doypack 28 sticks x 7.5gr Gano+ Cappuccino - Doypack 28 sticks x 7.5gr GA020 B1000020 BI020 FUXION FUXION','GA020',NULL,'B1000020',NULL,'01','BI020','51121722','2025-12-23',NULL,NULL,'NIU','PEN',92.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI020-20241206005617.jpeg','BI020-20241206005617_medium.jpeg','BI020-20241206005617_small.jpeg',100.0000,10.00,0,'323251',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:06:14',1,1,1,0,NULL,NULL,0),(21,'Gano+ T - Caja 28 sticks x 5gr','Gano+ T - Caja 28 sticks x 5gr','Gano+ T - Caja 28 sticks x 5gr','Gano+ T - Caja 28 sticks x 5gr Gano+ T - Caja 28 sticks x 5gr Gano+ T - Caja 28 sticks x 5gr GA021 B1000021 BI021 FUXION FUXION','GA021',NULL,'B1000021',NULL,'01','BI021','51121723','2025-12-24',NULL,NULL,'NIU','PEN',92.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI021-20241206005727.jpeg','BI021-20241206005727_medium.jpeg','BI021-20241206005727_small.jpeg',100.0000,10.00,0,'323252',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:06:32',1,1,1,0,NULL,NULL,0),(22,'Golden FLX - Doypack 28 sticks x 5gr','Golden FLX - Doypack 28 sticks x 5gr','Golden FLX - Doypack 28 sticks x 5gr','Golden FLX - Doypack 28 sticks x 5gr Golden FLX - Doypack 28 sticks x 5gr Golden FLX - Doypack 28 sticks x 5gr GA022 B1000022 BI022 FUXION FUXION','GA022',NULL,'B1000022',NULL,'01','BI022','51121724','2025-12-25',NULL,NULL,'NIU','PEN',143.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI022-20241206005757.jpeg','BI022-20241206005757_medium.jpeg','BI022-20241206005757_small.jpeg',100.0000,10.00,0,'323253',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:14:18',1,1,1,0,NULL,NULL,0),(23,'Liquid Fiber - Caja 28 sticks x 5gr','Liquid Fiber - Caja 28 sticks x 5gr','Liquid Fiber - Caja 28 sticks x 5gr','Liquid Fiber - Caja 28 sticks x 5gr Liquid Fiber - Caja 28 sticks x 5gr Liquid Fiber - Caja 28 sticks x 5gr GA023 B1000023 BI023 1. LIMPIA FUXION','GA023',NULL,'B1000023',NULL,'01','BI023','51121725','2025-12-26',NULL,NULL,'NIU','PEN',105.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,1,4,'BI023-20241206010020.jpeg','BI023-20241206010020_medium.jpeg','BI023-20241206010020_small.jpeg',100.0000,10.00,0,'323254',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 10:59:32',1,1,1,0,NULL,NULL,0),(24,'No Stress - Caja 7 sticks x 5gr','No Stress - Caja 7 sticks x 5gr','No Stress - Caja 7 sticks x 5gr','No Stress - Caja 7 sticks x 5gr No Stress - Caja 7 sticks x 5gr No Stress - Caja 7 sticks x 5gr GA024 B1000024 BI024 FUXION FUXION','GA024',NULL,'B1000024',NULL,'01','BI024','51121726','2025-12-27',NULL,NULL,'NIU','PEN',36.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI024-20241206010059.jpeg','BI024-20241206010059_medium.jpeg','BI024-20241206010059_small.jpeg',100.0000,10.00,0,'323255',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:16:33',1,1,1,0,NULL,NULL,0),(25,'No Stress - Doypack 28 sticks x 5gr','No Stress - Doypack 28 sticks x 5gr','No Stress - Doypack 28 sticks x 5gr','No Stress - Doypack 28 sticks x 5gr No Stress - Doypack 28 sticks x 5gr No Stress - Doypack 28 sticks x 5gr GA025 B1000025 BI025 FUXION FUXION','GA025',NULL,'B1000025',NULL,'01','BI025','51121727','2025-12-28',NULL,NULL,'NIU','PEN',142.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI025-20241206010156.jpeg','BI025-20241206010156_medium.jpeg','BI025-20241206010156_small.jpeg',100.0000,10.00,0,'323256',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:16:23',1,1,1,0,NULL,NULL,0),(26,'NoCarb-T - Doypack 28 sticks x 5gr','NoCarb-T - Doypack 28 sticks x 5gr','NoCarb-T - Doypack 28 sticks x 5gr','NoCarb-T - Doypack 28 sticks x 5gr NoCarb-T - Doypack 28 sticks x 5gr NoCarb-T - Doypack 28 sticks x 5gr GA026 B1000026 BI026 FUXION FUXION','GA026',NULL,'B1000026',NULL,'01','BI026','51121728','2025-12-29',NULL,NULL,'NIU','PEN',129.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI026-20241206010230.jpeg','BI026-20241206010230_medium.jpeg','BI026-20241206010230_small.jpeg',100.0000,10.00,0,'323257',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:08:17',1,1,1,0,NULL,NULL,0),(27,'Nutraday - Doypack 28 sticks x 5gr','Nutraday - Doypack 28 sticks x 5gr','Nutraday - Doypack 28 sticks x 5gr','Nutraday - Doypack 28 sticks x 5gr Nutraday - Doypack 28 sticks x 5gr Nutraday - Doypack 28 sticks x 5gr GA027 B1000027 BI027 FUXION FUXION','GA027',NULL,'B1000027',NULL,'01','BI027','51121729','2025-12-30',NULL,NULL,'NIU','PEN',129.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI027-20241206010259.jpeg','BI027-20241206010259_medium.jpeg','BI027-20241206010259_small.jpeg',100.0000,10.00,0,'323258',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:04:51',1,1,1,0,NULL,NULL,0),(28,'On - Caja 7 sticks x 5gr','On - Caja 7 sticks x 5gr','On - Caja 7 sticks x 5gr','On - Caja 7 sticks x 5gr On - Caja 7 sticks x 5gr On - Caja 7 sticks x 5gr GA028 B1000028 BI028 FUXION FUXION','GA028',NULL,'B1000028',NULL,'01','BI028','51121730','2025-12-31',NULL,NULL,'NIU','PEN',29.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI028-20241206010358.jpeg','BI028-20241206010358_medium.jpeg','BI028-20241206010358_small.jpeg',100.0000,10.00,0,'323259',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:16:06',1,1,1,0,NULL,NULL,0),(29,'On - Doypack 28 sticks x 5gr','On - Doypack 28 sticks x 5gr','On - Doypack 28 sticks x 5gr','On - Doypack 28 sticks x 5gr On - Doypack 28 sticks x 5gr On - Doypack 28 sticks x 5gr GA029 B1000029 BI029 FUXION FUXION','GA029',NULL,'B1000029',NULL,'01','BI029','51121731','2026-01-01',NULL,NULL,'NIU','PEN',105.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI029-20241206010428.jpeg','BI029-20241206010428_medium.jpeg','BI029-20241206010428_small.jpeg',100.0000,10.00,0,'323260',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:15:54',1,1,1,0,NULL,NULL,0),(30,'Organizador Sticks Oscuro - Logo Blanco - 1 UND','Organizador Sticks Oscuro - Logo Blanco - 1 UND','Organizador Sticks Oscuro - Logo Blanco - 1 UND','Organizador Sticks Oscuro - Logo Blanco - 1 UND Organizador Sticks Oscuro - Logo Blanco - 1 UND Organizador Sticks Oscuro - Logo Blanco - 1 UND GA030 B1000030 BI030 FUXION FUXION','GA030',NULL,'B1000030',NULL,'01','BI030','51121732','2026-01-02',NULL,NULL,'NIU','PEN',40.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI030-20241206010452.jpg','BI030-20241206010452_medium.jpg','BI030-20241206010452_small.jpg',100.0000,10.00,0,'323261',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 01:04:52',1,1,1,0,NULL,NULL,0),(31,'Pack 3 Bases + Probix + Utensilio de Regalo - Promoción','Pack 3 Bases + Probix + Utensilio de Regalo - Promoción','Pack 3 Bases + Probix + Utensilio de Regalo - Promoción','Pack 3 Bases + Probix + Utensilio de Regalo - Promoción Pack 3 Bases + Probix + Utensilio de Regalo - Promoción Pack 3 Bases + Probix + Utensilio de Regalo - Promoción GA031 B1000031 BI031 FUXION FUXION','GA031',NULL,'B1000031',NULL,'01','BI031','51121733','2026-01-03',NULL,NULL,'NIU','PEN',179.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI031-20241206010517.jpg','BI031-20241206010517_medium.jpg','BI031-20241206010517_small.jpg',100.0000,10.00,0,'323262',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:23:34',1,1,1,0,NULL,NULL,0),(32,'Pack 3 Bases + Utensilio de Regalo - Promoción','Pack 3 Bases + Utensilio de Regalo - Promoción','Pack 3 Bases + Utensilio de Regalo - Promoción','Pack 3 Bases + Utensilio de Regalo - Promoción Pack 3 Bases + Utensilio de Regalo - Promoción Pack 3 Bases + Utensilio de Regalo - Promoción GA032 B1000032 BI032 FUXION FUXION','GA032',NULL,'B1000032',NULL,'01','BI032','51121734','2026-01-04',NULL,NULL,'NIU','PEN',68.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI032-20241206010540.jpg','BI032-20241206010540_medium.jpg','BI032-20241206010540_small.jpg',100.0000,10.00,0,'323263',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:23:25',1,1,1,0,NULL,NULL,0),(33,'Pack 5/14 Active Mito - Caja Pack','Pack 5/14 Active Mito - Caja Pack','Pack 5/14 Active Mito - Caja Pack','Pack 5/14 Active Mito - Caja Pack Pack 5/14 Active Mito - Caja Pack Pack 5/14 Active Mito - Caja Pack GA033 B1000033 BI033 FUXION FUXION','GA033',NULL,'B1000033',NULL,'01','BI033','51121735','2026-01-05',NULL,NULL,'NIU','PEN',435.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI033-20241206010714.jpeg','BI033-20241206010714_medium.jpeg','BI033-20241206010714_small.jpeg',100.0000,10.00,0,'323264',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:09:40',1,1,1,0,NULL,NULL,0),(34,'Pack 5/14 Keto - Caja Pack','Pack 5/14 Keto - Caja Pack','Pack 5/14 Keto - Caja Pack','Pack 5/14 Keto - Caja Pack Pack 5/14 Keto - Caja Pack Pack 5/14 Keto - Caja Pack GA034 B1000034 BI034 FUXION FUXION','GA034',NULL,'B1000034',NULL,'01','BI034','51121736','2026-01-06',NULL,NULL,'NIU','PEN',399.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI034-20241206010809.jpeg','BI034-20241206010809_medium.jpeg','BI034-20241206010809_small.jpeg',100.0000,10.00,0,'323265',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:09:21',1,1,1,0,NULL,NULL,0),(35,'Pack Paga 5 y Lleva 6 Bases + Utensilio de Regalo - Promoción','Pack Paga 5 y Lleva 6 Bases + Utensilio de Regalo - Promoción','Pack Paga 5 y Lleva 6 Bases + Utensilio de Regalo - Promoción','Pack Paga 5 y Lleva 6 Bases + Utensilio de Regalo - Promoción Pack Paga 5 y Lleva 6 Bases + Utensilio de Regalo - Promoción Pack Paga 5 y Lleva 6 Bases + Utensilio de Regalo - Promoción GA035 B1000035 BI035 FUXION FUXION','GA035',NULL,'B1000035',NULL,'01','BI035','51121737','2026-01-07',NULL,NULL,'NIU','PEN',120.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI035-20241206010838.jpg','BI035-20241206010838_medium.jpg','BI035-20241206010838_small.jpg',100.0000,10.00,0,'323266',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:23:15',1,1,1,0,NULL,NULL,0),(36,'Passion - Caja 28 sticks x 5gr','Passion - Caja 28 sticks x 5gr','Passion - Caja 28 sticks x 5gr','Passion - Caja 28 sticks x 5gr Passion - Caja 28 sticks x 5gr Passion - Caja 28 sticks x 5gr GA036 B1000036 BI036 FUXION FUXION','GA036',NULL,'B1000036',NULL,'01','BI036','51121738','2026-01-08',NULL,NULL,'NIU','PEN',129.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI036-20241206010912.jpeg','BI036-20241206010912_medium.jpeg','BI036-20241206010912_small.jpeg',100.0000,10.00,0,'323267',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:15:00',1,1,1,0,NULL,NULL,0),(37,'Post Sport - Caja 28 sticks x 5gr','Post Sport - Caja 28 sticks x 5gr','Post Sport - Caja 28 sticks x 5gr','Post Sport - Caja 28 sticks x 5gr Post Sport - Caja 28 sticks x 5gr Post Sport - Caja 28 sticks x 5gr GA037 B1000037 BI037 FUXION FUXION','GA037',NULL,'B1000037',NULL,'01','BI037','51121739','2026-01-09',NULL,NULL,'NIU','PEN',143.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI037-20241206011011.jpeg','BI037-20241206011011_medium.jpeg','BI037-20241206011011_small.jpeg',100.0000,10.00,0,'323268',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:17:07',1,1,1,0,NULL,NULL,0),(38,'Pre Sport - Caja 28 sticks x 5gr','Pre Sport - Caja 28 sticks x 5gr','Pre Sport - Caja 28 sticks x 5gr','Pre Sport - Caja 28 sticks x 5gr Pre Sport - Caja 28 sticks x 5gr Pre Sport - Caja 28 sticks x 5gr GA038 B1000038 BI038 FUXION FUXION','GA038',NULL,'B1000038',NULL,'01','BI038','51121740','2026-01-10',NULL,NULL,'NIU','PEN',143.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI038-20241206011056.jpeg','BI038-20241206011056_medium.jpeg','BI038-20241206011056_small.jpeg',100.0000,10.00,0,'323269',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:17:40',1,1,1,0,NULL,NULL,0),(39,'Probal - Caja 28 sticks x 5gr','Probal - Caja 28 sticks x 5gr','Probal - Caja 28 sticks x 5gr','Probal - Caja 28 sticks x 5gr Probal - Caja 28 sticks x 5gr Probal - Caja 28 sticks x 5gr GA039 B1000039 BI039 FUXION FUXION','GA039',NULL,'B1000039',NULL,'01','BI039','51121741','2026-01-11',NULL,NULL,'NIU','PEN',162.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI039-20241206011137.jpeg','BI039-20241206011137_medium.jpeg','BI039-20241206011137_small.jpeg',100.0000,10.00,0,'323270',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:14:41',1,1,1,0,NULL,NULL,0),(40,'Probix - Caja 28 x 0.5gr','Probix - Caja 28 x 0.5gr','Probix - Caja 28 x 0.5gr','Probix - Caja 28 x 0.5gr Probix - Caja 28 x 0.5gr Probix - Caja 28 x 0.5gr GA040 B1000040 BI040 FUXION FUXION','GA040',NULL,'B1000040',NULL,'01','BI040','51121742','2026-01-12',NULL,NULL,'NIU','PEN',129.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI040-20241206011244.jpg','BI040-20241206011244_medium.jpg','BI040-20241206011244_small.jpg',100.0000,10.00,0,'323271',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:19:49',1,1,1,0,NULL,NULL,0),(41,'Programa Detox 5-Días - Caja Pack','Programa Detox 5-Días - Caja Pack','Programa Detox 5-Días - Caja Pack','Programa Detox 5-Días - Caja Pack Programa Detox 5-Días - Caja Pack Programa Detox 5-Días - Caja Pack GA041 B1000041 BI041 1. LIMPIA FUXION','GA041',NULL,'B1000041',NULL,'01','BI041','51121743','2026-01-13',NULL,NULL,'NIU','PEN',175.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,1,4,'BI041-20241206011339.jpeg','BI041-20241206011339_medium.jpeg','BI041-20241206011339_small.jpeg',100.0000,10.00,0,'323272',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 10:58:55',1,1,1,0,NULL,NULL,0),(42,'Protein Active - Chocolate con Avellanas - Caja 14 sticks x 25gr','Protein Active - Chocolate con Avellanas - Caja 14 sticks x 25gr','Protein Active - Chocolate con Avellanas - Caja 14 sticks x 25gr','Protein Active - Chocolate con Avellanas - Caja 14 sticks x 25gr Protein Active - Chocolate con Avellanas - Caja 14 sticks x 25gr Protein Active - Chocolate con Avellanas - Caja 14 sticks x 25gr GA042 B1000042 BI042 FUXION FUXION','GA042',NULL,'B1000042',NULL,'01','BI042','51121744','2026-01-14',NULL,NULL,'NIU','PEN',141.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI042-20241206011440.jpeg','BI042-20241206011440_medium.jpeg','BI042-20241206011440_small.jpeg',100.0000,10.00,0,'323273',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:01:31',1,1,1,0,NULL,NULL,0),(43,'Protein Active - Vainilla y Canela - Caja 14 sticks x 25gr','Protein Active - Vainilla y Canela - Caja 14 sticks x 25gr','Protein Active - Vainilla y Canela - Caja 14 sticks x 25gr','Protein Active - Vainilla y Canela - Caja 14 sticks x 25gr Protein Active - Vainilla y Canela - Caja 14 sticks x 25gr Protein Active - Vainilla y Canela - Caja 14 sticks x 25gr GA043 B1000043 BI043 FUXION FUXION','GA043',NULL,'B1000043',NULL,'01','BI043','51121745','2026-01-15',NULL,NULL,'NIU','PEN',141.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI043-20241206011603.jpeg','BI043-20241206011603_medium.jpeg','BI043-20241206011603_small.jpeg',100.0000,10.00,0,'323274',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:02:05',1,1,1,0,NULL,NULL,0),(44,'Protein Active Fit - Chocolate con Avellanas - Caja 14 sticks x 25gr','Protein Active Fit - Chocolate con Avellanas - Caja 14 sticks x 25gr','Protein Active Fit - Chocolate con Avellanas - Caja 14 sticks x 25gr','Protein Active Fit - Chocolate con Avellanas - Caja 14 sticks x 25gr Protein Active Fit - Chocolate con Avellanas - Caja 14 sticks x 25gr Protein Active Fit - Chocolate con Avellanas - Caja 14 sticks x 25gr GA044 B1000044 BI044 FUXION FUXION','GA044',NULL,'B1000044',NULL,'01','BI044','51121746','2026-01-16',NULL,NULL,'NIU','PEN',149.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI044-20241206011657.jpeg','BI044-20241206011657_medium.jpeg','BI044-20241206011657_small.jpeg',100.0000,10.00,0,'323275',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:10:26',1,1,1,0,NULL,NULL,0),(45,'Protein Active Fit - Vainilla y Canela - Caja 14 sticks x 25gr','Protein Active Fit - Vainilla y Canela - Caja 14 sticks x 25gr','Protein Active Fit - Vainilla y Canela - Caja 14 sticks x 25gr','Protein Active Fit - Vainilla y Canela - Caja 14 sticks x 25gr Protein Active Fit - Vainilla y Canela - Caja 14 sticks x 25gr Protein Active Fit - Vainilla y Canela - Caja 14 sticks x 25gr GA045 B1000045 BI045 FUXION FUXION','GA045',NULL,'B1000045',NULL,'01','BI045','51121747','2026-01-17',NULL,NULL,'NIU','PEN',149.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI045-20241206011745.jpeg','BI045-20241206011745_medium.jpeg','BI045-20241206011745_small.jpeg',100.0000,10.00,0,'323276',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:11:17',1,1,1,0,NULL,NULL,0),(46,'Protein Active Sport - Chocolate con Avellanas - Caja 14 sticks x 25gr','Protein Active Sport - Chocolate con Avellanas - Caja 14 sticks x 25gr','Protein Active Sport - Chocolate con Avellanas - Caja 14 sticks x 25gr','Protein Active Sport - Chocolate con Avellanas - Caja 14 sticks x 25gr Protein Active Sport - Chocolate con Avellanas - Caja 14 sticks x 25gr Protein Active Sport - Chocolate con Avellanas - Caja 14 sticks x 25gr GA046 B1000046 BI046 FUXION FUXION','GA046',NULL,'B1000046',NULL,'01','BI046','51121748','2026-01-18',NULL,NULL,'NIU','PEN',156.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI046-20241206011843.jpeg','BI046-20241206011843_medium.jpeg','BI046-20241206011843_small.jpeg',100.0000,10.00,0,'323277',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:17:51',1,1,1,0,NULL,NULL,0),(47,'Protein Active Sport - Vainilla y Canela - Caja 14 sticks x 25gr','Protein Active Sport - Vainilla y Canela - Caja 14 sticks x 25gr','Protein Active Sport - Vainilla y Canela - Caja 14 sticks x 25gr','Protein Active Sport - Vainilla y Canela - Caja 14 sticks x 25gr Protein Active Sport - Vainilla y Canela - Caja 14 sticks x 25gr Protein Active Sport - Vainilla y Canela - Caja 14 sticks x 25gr GA047 B1000047 BI047 FUXION FUXION','GA047',NULL,'B1000047',NULL,'01','BI047','51121749','2026-01-19',NULL,NULL,'NIU','PEN',156.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI047-20241206011955.jpeg','BI047-20241206011955_medium.jpeg','BI047-20241206011955_small.jpeg',100.0000,10.00,0,'323278',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:18:00',1,1,1,0,NULL,NULL,0),(48,'Protein Xoup - Crema Criolla - Caja 7 sticks x 25gr','Protein Xoup - Crema Criolla - Caja 7 sticks x 25gr','Protein Xoup - Crema Criolla - Caja 7 sticks x 25gr','Protein Xoup - Crema Criolla - Caja 7 sticks x 25gr Protein Xoup - Crema Criolla - Caja 7 sticks x 25gr Protein Xoup - Crema Criolla - Caja 7 sticks x 25gr GA048 B1000048 BI048 FUXION FUXION','GA048',NULL,'B1000048',NULL,'01','BI048','51121750','2026-01-20',NULL,NULL,'NIU','PEN',68.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI048-20241206012049.jpeg','BI048-20241206012049_medium.jpeg','BI048-20241206012049_small.jpeg',100.0000,10.00,0,'323279',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:12:40',1,1,1,0,NULL,NULL,0),(49,'Protein Xoup - Crema de Brócoli Parmesano - Caja 7 sticks x 25gr','Protein Xoup - Crema de Brócoli Parmesano - Caja 7 sticks x 25gr','Protein Xoup - Crema de Brocoli Parmesano - Caja 7 sticks x 25gr','Protein Xoup - Crema de Brócoli Parmesano - Caja 7 sticks x 25gr Protein Xoup - Crema de Brócoli Parmesano - Caja 7 sticks x 25gr Protein Xoup - Crema de Brocoli Parmesano - Caja 7 sticks x 25gr GA049 B1000049 BI049 FUXION FUXION','GA049',NULL,'B1000049',NULL,'01','BI049','51121751','2026-01-21',NULL,NULL,'NIU','PEN',68.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI049-20241206012217.jpeg','BI049-20241206012217_medium.jpeg','BI049-20241206012217_small.jpeg',100.0000,10.00,0,'323280',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:12:49',1,1,1,0,NULL,NULL,0),(50,'Protein Xoup - Crema de Espárragos y Alcachofa - Caja 7 sticks x 25gr','Protein Xoup - Crema de Espárragos y Alcachofa - Caja 7 sticks x 25gr','Protein Xoup - Crema de Esparragos y Alcachofa - Caja 7 sticks x 25gr','Protein Xoup - Crema de Espárragos y Alcachofa - Caja 7 sticks x 25gr Protein Xoup - Crema de Espárragos y Alcachofa - Caja 7 sticks x 25gr Protein Xoup - Crema de Esparragos y Alcachofa - Caja 7 sticks x 25gr GA050 B1000050 BI050 FUXION FUXION','GA050',NULL,'B1000050',NULL,'01','BI050','51121752','2026-01-22',NULL,NULL,'NIU','PEN',68.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI050-20241206012417.jpg','BI050-20241206012417_medium.jpg','BI050-20241206012417_small.jpg',100.0000,10.00,0,'323281',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:13:36',1,1,1,0,NULL,NULL,0),(51,'Prunex1 - Caja 7 sticks x 5gr','Prunex1 - Caja 7 sticks x 5gr','Prunex1 - Caja 7 sticks x 5gr','Prunex1 - Caja 7 sticks x 5gr Prunex1 - Caja 7 sticks x 5gr Prunex1 - Caja 7 sticks x 5gr GA051 B1000051 BI051 1. LIMPIA FUXION','GA051',NULL,'B1000051',NULL,'01','BI051','51121753','2026-01-23',NULL,NULL,'NIU','PEN',21.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,1,4,'BI051-20241206012933.jpeg','BI051-20241206012933_medium.jpeg','BI051-20241206012933_small.jpeg',100.0000,10.00,0,'323282',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 10:57:50',1,1,1,0,NULL,NULL,0),(52,'Prunex1 - Doypack 28 sticks x 5gr','Prunex1 - Doypack 28 sticks x 5gr','Prunex1 - Doypack 28 sticks x 5gr','Prunex1 - Doypack 28 sticks x 5gr Prunex1 - Doypack 28 sticks x 5gr Prunex1 - Doypack 28 sticks x 5gr GA052 B1000052 BI052 1. LIMPIA FUXION','GA052',NULL,'B1000052',NULL,'01','BI052','51121754','2026-01-24',NULL,NULL,'NIU','PEN',76.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,1,4,'BI052-20241206013046.jpeg','BI052-20241206013046_medium.jpeg','BI052-20241206013046_small.jpeg',100.0000,10.00,0,'323283',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 10:57:57',1,1,1,0,NULL,NULL,0),(53,'Rexet - Caja 7 sticks x 5gr','Rexet - Caja 7 sticks x 5gr','Rexet - Caja 7 sticks x 5gr','Rexet - Caja 7 sticks x 5gr Rexet - Caja 7 sticks x 5gr Rexet - Caja 7 sticks x 5gr GA053 B1000053 BI053 1. LIMPIA FUXION','GA053',NULL,'B1000053',NULL,'01','BI053','51121755','2026-01-25',NULL,NULL,'NIU','PEN',36.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,1,4,'BI053-20241206013157.jpg','BI053-20241206013157_medium.jpg','BI053-20241206013157_small.jpg',100.0000,10.00,0,'323284',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 10:58:32',1,1,1,0,NULL,NULL,0),(54,'Rexet - Doypack 28 sticks x 5gr','Rexet - Doypack 28 sticks x 5gr','Rexet - Doypack 28 sticks x 5gr','Rexet - Doypack 28 sticks x 5gr Rexet - Doypack 28 sticks x 5gr Rexet - Doypack 28 sticks x 5gr GA054 B1000054 BI054 1. LIMPIA FUXION','GA054',NULL,'B1000054',NULL,'01','BI054','51121756','2026-01-26',NULL,NULL,'NIU','PEN',129.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,1,4,'BI054-20241206013241.jpeg','BI054-20241206013241_medium.jpeg','BI054-20241206013241_small.jpeg',100.0000,10.00,0,'323285',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 10:58:39',1,1,1,0,NULL,NULL,0),(55,'Thermo T3 - Caja 7 sticks x 5gr','Thermo T3 - Caja 7 sticks x 5gr','Thermo T3 - Caja 7 sticks x 5gr','Thermo T3 - Caja 7 sticks x 5gr Thermo T3 - Caja 7 sticks x 5gr Thermo T3 - Caja 7 sticks x 5gr GA055 B1000055 BI055 FUXION FUXION','GA055',NULL,'B1000055',NULL,'01','BI055','51121757','2026-01-27',NULL,NULL,'NIU','PEN',36.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI055-20241206013321.jpg','BI055-20241206013321_medium.jpg','BI055-20241206013321_small.jpg',100.0000,10.00,0,'323286',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:08:05',1,1,1,0,NULL,NULL,0),(56,'Thermo T3 - Doypack 28 sticks x 5gr','Thermo T3 - Doypack 28 sticks x 5gr','Thermo T3 - Doypack 28 sticks x 5gr','Thermo T3 - Doypack 28 sticks x 5gr Thermo T3 - Doypack 28 sticks x 5gr Thermo T3 - Doypack 28 sticks x 5gr GA056 B1000056 BI056 FUXION FUXION','GA056',NULL,'B1000056',NULL,'01','BI056','51121758','2026-01-28',NULL,NULL,'NIU','PEN',129.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI056-20241206013431.jpeg','BI056-20241206013431_medium.jpeg','BI056-20241206013431_small.jpeg',100.0000,10.00,0,'323287',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:07:52',1,1,1,0,NULL,NULL,0),(57,'Vera+ - Doypack 28 sticks x 5gr','Vera+ - Doypack 28 sticks x 5gr','Vera+ - Doypack 28 sticks x 5gr','Vera+ - Doypack 28 sticks x 5gr Vera+ - Doypack 28 sticks x 5gr Vera+ - Doypack 28 sticks x 5gr GA057 B1000057 BI057 FUXION FUXION','GA057',NULL,'B1000057',NULL,'01','BI057','51121759','2026-01-29',NULL,NULL,'NIU','PEN',169.000000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI057-20241206013546.jpeg','BI057-20241206013546_medium.jpeg','BI057-20241206013546_small.jpeg',100.0000,10.00,0,'323288',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:05:19',1,1,1,0,NULL,NULL,0),(58,'Vita Xtra T+ - Caja 7 sticks x 5gr','Vita Xtra T+ - Caja 7 sticks x 5gr','Vita Xtra T+ - Caja 7 sticks x 5gr','Vita Xtra T+ - Caja 7 sticks x 5gr Vita Xtra T+ - Caja 7 sticks x 5gr Vita Xtra T+ - Caja 7 sticks x 5gr GA058 B1000058 BI058 FUXION FUXION','GA058',NULL,'B1000058',NULL,'01','BI058','51121760','2026-01-30',NULL,NULL,'NIU','PEN',36.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI058-20241206013631.jpeg','BI058-20241206013631_medium.jpeg','BI058-20241206013631_small.jpeg',100.0000,10.00,0,'323289',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:04:02',1,1,1,0,NULL,NULL,0),(59,'Vita Xtra T+ - Doypack 28 sticks x 5gr','Vita Xtra T+ - Doypack 28 sticks x 5gr','Vita Xtra T+ - Doypack 28 sticks x 5gr','Vita Xtra T+ - Doypack 28 sticks x 5gr Vita Xtra T+ - Doypack 28 sticks x 5gr Vita Xtra T+ - Doypack 28 sticks x 5gr GA059 B1000059 BI059 FUXION FUXION','GA059',NULL,'B1000059',NULL,'01','BI059','51121761','2026-01-31',NULL,NULL,'NIU','PEN',129.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI059-20241206013727.jpeg','BI059-20241206013727_medium.jpeg','BI059-20241206013727_small.jpeg',100.0000,10.00,0,'323290',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:04:33',1,1,1,0,NULL,NULL,0),(60,'VitaEnergía - Caja 30 sticks x 7.5gr','VitaEnergía - Caja 30 sticks x 7.5gr','VitaEnergia - Caja 30 sticks x 7.5gr','VitaEnergía - Caja 30 sticks x 7.5gr VitaEnergía - Caja 30 sticks x 7.5gr VitaEnergia - Caja 30 sticks x 7.5gr GA060 B1000060 BI060 FUXION FUXION','GA060',NULL,'B1000060',NULL,'01','BI060','51121762','2026-02-01',NULL,NULL,'NIU','PEN',129.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI060-20241206013812.jpeg','BI060-20241206013812_medium.jpeg','BI060-20241206013812_small.jpeg',100.0000,10.00,0,'323291',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:04:38',1,1,1,0,NULL,NULL,0),(61,'Xpeed - Pack x 4','Xpeed - Pack x 4','Xpeed - Pack x 4','Xpeed - Pack x 4 Xpeed - Pack x 4 Xpeed - Pack x 4 GA061 B1000061 BI061 FUXION FUXION','GA061',NULL,'B1000061',NULL,'01','BI061','51121763','2026-02-02',NULL,NULL,'NIU','PEN',39.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI061-20241206014038.jpg','BI061-20241206014038_medium.jpg','BI061-20241206014038_small.jpg',100.0000,10.00,0,'323292',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:03:35',1,1,1,0,NULL,NULL,0),(62,'Xpeed Citrus Power Pack x 4','Xpeed Citrus Power Pack x 4','Xpeed Citrus Power Pack x 4','Xpeed Citrus Power Pack x 4 Xpeed Citrus Power Pack x 4 Xpeed Citrus Power Pack x 4 GA062 B1000062 BI062 FUXION FUXION','GA062',NULL,'B1000062',NULL,'01','BI062','51121764','2026-02-03',NULL,NULL,'NIU','PEN',39.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI062-20241206014118.jpg','BI062-20241206014118_medium.jpg','BI062-20241206014118_small.jpg',100.0000,10.00,0,'323293',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:03:47',1,1,1,0,NULL,NULL,0),(63,'Xtra Mile - Caja 28 sticks x 5gr','Xtra Mile - Caja 28 sticks x 5gr','Xtra Mile - Caja 28 sticks x 5gr','Xtra Mile - Caja 28 sticks x 5gr Xtra Mile - Caja 28 sticks x 5gr Xtra Mile - Caja 28 sticks x 5gr GA063 B1000063 BI063 FUXION FUXION','GA063',NULL,'B1000063',NULL,'01','BI063','51121765','2026-02-04',NULL,NULL,'NIU','PEN',129.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI063-20241206014149.jpeg','BI063-20241206014149_medium.jpeg','BI063-20241206014149_small.jpeg',100.0000,10.00,0,'323294',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:18:28',1,1,1,0,NULL,NULL,0),(64,'Youth Elixir - Doypack 28 sticks x 5gr','Youth Elixir - Doypack 28 sticks x 5gr','Youth Elixir - Doypack 28 sticks x 5gr','Youth Elixir - Doypack 28 sticks x 5gr Youth Elixir - Doypack 28 sticks x 5gr Youth Elixir - Doypack 28 sticks x 5gr GA064 B1000064 BI064 FUXION FUXION','GA064',NULL,'B1000064',NULL,'01','BI064','51121766','2026-02-05',NULL,NULL,'NIU','PEN',129.500000,1,0,0,0.000000,0,0,0,0.00,NULL,NULL,NULL,0.10,NULL,0.00,0.00,0,NULL,0.00,'10','10',0,NULL,0,0,4,4,'BI064-20241206014212.jpeg','BI064-20241206014212_medium.jpeg','BI064-20241206014212_small.jpeg',100.0000,10.00,0,'323295',1,0,0.00,0,NULL,'[]',1,NULL,'2024-12-04 17:38:10','2024-12-06 11:14:27',1,1,1,0,NULL,NULL,0);
COMMIT;

-- Dumped table `items` with 64 row(s)
--

--
-- 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 AUTO_INCREMENT=74 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

SET autocommit=0;
INSERT INTO `item_images` VALUES (1,1,'alpha_balance2.jpg','2024-12-05 00:23:51','2024-12-05 00:23:51'),(2,4,'base madre VERDE2.jpg','2024-12-06 00:39:53','2024-12-06 00:39:53'),(3,5,'BEAUTY-IN2.jpg','2024-12-06 00:41:00','2024-12-06 00:41:00'),(4,6,'BERRY BALANCE1.jpg','2024-12-06 00:41:45','2024-12-06 00:41:45'),(5,7,'BIOPRO FIT CAJA2.jpg','2024-12-06 00:46:38','2024-12-06 00:46:38'),(6,7,'BIOPRO FIT CAJA1.jpg','2024-12-06 00:46:38','2024-12-06 00:46:38'),(7,9,'BIOPRO SPORT BOTE1.jpg','2024-12-06 00:47:53','2024-12-06 00:47:53'),(8,9,'BIOPRO SPORT1.jpg','2024-12-06 00:47:54','2024-12-06 00:47:54'),(9,11,'BIOPRO+ TECT POTE1.jpg','2024-12-06 00:49:34','2024-12-06 00:49:34'),(10,11,'BIOPRO+ TECT CAJA1.jpg','2024-12-06 00:49:34','2024-12-06 00:49:34'),(11,13,'CAFÉ & CAFÉ FIT CAPPUCCINO1.jpg','2024-12-06 00:52:28','2024-12-06 00:52:28'),(12,14,'CAFÉ GANOMAX1.jpg','2024-12-06 00:53:27','2024-12-06 00:53:27'),(13,14,'CAFÉ GANOMAX2.jpg','2024-12-06 00:53:27','2024-12-06 00:53:27'),(14,15,'CHOCOLATE FIT1.jpg','2024-12-06 00:54:08','2024-12-06 00:54:08'),(15,21,'GANOT1.jpg','2024-12-06 00:57:27','2024-12-06 00:57:27'),(17,25,'NO STRESS1.jpg','2024-12-06 00:59:22','2024-12-06 00:59:22'),(18,23,'LIQUID FIBER1.jpg','2024-12-06 01:00:20','2024-12-06 01:00:20'),(19,24,'NO STRESS1.jpg','2024-12-06 01:01:24','2024-12-06 01:01:24'),(20,27,'NUTRADAY1.jpg','2024-12-06 01:02:59','2024-12-06 01:02:59'),(21,26,'NOCARB-T1.jpg','2024-12-06 01:03:27','2024-12-06 01:03:27'),(22,28,'ON CAJA1.jpg','2024-12-06 01:03:58','2024-12-06 01:03:58'),(23,29,'ON CAJA1.jpg','2024-12-06 01:04:28','2024-12-06 01:04:28'),(24,33,'PACK 5-14 ACTIVE1.jpg','2024-12-06 01:07:14','2024-12-06 01:07:14'),(25,34,'PACK 5-141.jpg','2024-12-06 01:08:09','2024-12-06 01:08:09'),(26,36,'PASSIONCAJA1.jpg','2024-12-06 01:09:12','2024-12-06 01:09:12'),(27,37,'POST SPORT1.jpg','2024-12-06 01:10:11','2024-12-06 01:10:11'),(28,38,'PRE SPORT1.jpg','2024-12-06 01:10:57','2024-12-06 01:10:57'),(29,39,'PROBAL1.jpg','2024-12-06 01:11:37','2024-12-06 01:11:37'),(30,40,'PROBIX1.jpg','2024-12-06 01:12:44','2024-12-06 01:12:44'),(31,41,'PROGRAMA DETOX 5-DÍAS1.jpg','2024-12-06 01:13:39','2024-12-06 01:13:39'),(32,42,'PROTEIN ACTIVE - CHOCOLATE CON AVELLANAS1.jpg','2024-12-06 01:14:40','2024-12-06 01:14:40'),(33,43,'PROTEIN ACTIVE - VAINILLA Y CANELA1.jpg','2024-12-06 01:16:03','2024-12-06 01:16:03'),(34,44,'PROTEIN ACTIVE FIT - CHOCOLATE CON AVELLANAS1.jpg','2024-12-06 01:16:57','2024-12-06 01:16:57'),(35,45,'PROTEIN ACTIVE FIT - VAINILLA Y CANELA1.jpg','2024-12-06 01:17:45','2024-12-06 01:17:45'),(36,46,'PROTEIN ACTIVE SPORT - CHOCOLATE CON AVELLANAS1.jpg','2024-12-06 01:18:43','2024-12-06 01:18:43'),(37,47,'PROTEIN ACTIVE SPORT - VAINILLA Y CANELA1.jpg','2024-12-06 01:19:55','2024-12-06 01:19:55'),(38,48,'PROTEIN XOUP - CREMA DE BRÓCOLI PARMESANO1.jpg','2024-12-06 01:20:49','2024-12-06 01:20:49'),(39,49,'PROTEIN XOUP - CREMA DE ESPÁRRAGOS Y ALCACHOFA1.jpg','2024-12-06 01:22:17','2024-12-06 01:22:17'),(40,51,'PRUNEX1CAJA2.jpg','2024-12-06 01:29:33','2024-12-06 01:29:33'),(41,51,'PRUNEX1CAJA3.jpg','2024-12-06 01:29:34','2024-12-06 01:29:34'),(42,52,'PRUNEX1STICK2.jpg','2024-12-06 01:30:46','2024-12-06 01:30:46'),(43,52,'PRUNEX1STICK3.jpg','2024-12-06 01:30:46','2024-12-06 01:30:46'),(44,53,'REXETCAJA1.jpg','2024-12-06 01:31:57','2024-12-06 01:31:57'),(45,53,'REXETCAJA2.jpg','2024-12-06 01:31:57','2024-12-06 01:31:57'),(46,54,'REXETSTICK1.jpg','2024-12-06 01:32:41','2024-12-06 01:32:41'),(47,54,'REXETCAJA2.jpg','2024-12-06 01:32:42','2024-12-06 01:32:42'),(48,55,'THERMO T3CAJA1.jpg','2024-12-06 01:33:21','2024-12-06 01:33:21'),(49,55,'THERMO T3CAJA2.jpg','2024-12-06 01:33:49','2024-12-06 01:33:49'),(50,56,'THERMO T3STICK1.jpg','2024-12-06 01:34:31','2024-12-06 01:34:31'),(51,56,'THERMO T3STICK2.jpg','2024-12-06 01:34:31','2024-12-06 01:34:31'),(52,57,'VERA1.jpg','2024-12-06 01:35:46','2024-12-06 01:35:46'),(53,57,'VERA2.jpg','2024-12-06 01:35:46','2024-12-06 01:35:46'),(54,58,'VITA XTRA T1.jpg','2024-12-06 01:36:31','2024-12-06 01:36:31'),(55,58,'VITA XTRA T2.jpg','2024-12-06 01:36:31','2024-12-06 01:36:31'),(56,59,'VITA XTRA TSTICK1.jpg','2024-12-06 01:37:27','2024-12-06 01:37:27'),(57,59,'VITA XTRA TSTICK2.jpg','2024-12-06 01:37:27','2024-12-06 01:37:27'),(58,60,'VITAENERGIACAJA1.jpg','2024-12-06 01:38:12','2024-12-06 01:38:12'),(59,60,'VITAENERGIACAJA2.jpg','2024-12-06 01:38:12','2024-12-06 01:38:12'),(63,61,'XPEED1.jpg','2024-12-06 01:40:38','2024-12-06 01:40:38'),(64,61,'XPEED2.jpg','2024-12-06 01:40:38','2024-12-06 01:40:38'),(65,61,'XPEED3.jpg','2024-12-06 01:40:38','2024-12-06 01:40:38'),(66,61,'XPEED4.jpg','2024-12-06 01:40:38','2024-12-06 01:40:38'),(67,62,'XPEED CITRUS POWER1.jpg','2024-12-06 01:41:18','2024-12-06 01:41:18'),(68,62,'XPEED CITRUS POWER2.jpg','2024-12-06 01:41:18','2024-12-06 01:41:18'),(69,62,'XPEED CITRUS POWER3.jpg','2024-12-06 01:41:18','2024-12-06 01:41:18'),(70,63,'XTRA MILE1.jpg','2024-12-06 01:41:49','2024-12-06 01:41:49'),(71,63,'XTRA MILE2.jpg','2024-12-06 01:41:49','2024-12-06 01:41:49'),(72,64,'YOUTH ELIXIR1.jpg','2024-12-06 01:42:13','2024-12-06 01:42:13'),(73,64,'YOUTH ELIXIR2.jpg','2024-12-06 01:42:13','2024-12-06 01:42:13');
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `item_lots_group` VALUES (1,'323232',100.0000,0.0000,'2025-12-04',1,'2024-12-04 17:38:09','2024-12-06 10:53:55'),(2,'323233',100.0000,0.0000,'2025-12-05',2,'2024-12-04 17:38:09','2024-12-06 11:19:17'),(3,'323234',100.0000,0.0000,'2025-12-06',3,'2024-12-04 17:38:09','2024-12-06 11:19:08'),(4,'323235',100.0000,0.0000,'2025-12-07',4,'2024-12-04 17:38:09','2024-12-06 11:18:57'),(5,'323236',100.0000,0.0000,'2025-12-08',5,'2024-12-04 17:38:09','2024-12-06 11:14:01'),(6,'323237',100.0000,0.0000,'2025-12-09',6,'2024-12-04 17:38:09','2024-12-06 10:59:19'),(7,'323238',100.0000,0.0000,'2025-12-10',7,'2024-12-04 17:38:09','2024-12-06 11:10:01'),(8,'323239',100.0000,0.0000,'2025-12-11',8,'2024-12-04 17:38:09','2024-12-06 11:16:56'),(9,'323240',100.0000,0.0000,'2025-12-12',9,'2024-12-04 17:38:09','2024-12-06 11:17:28'),(10,'323241',100.0000,0.0000,'2025-12-13',10,'2024-12-04 17:38:09','2024-12-06 11:01:14'),(11,'323242',100.0000,0.0000,'2025-12-14',11,'2024-12-04 17:38:09','2024-12-06 11:01:02'),(12,'323243',100.0000,0.0000,'2025-12-15',12,'2024-12-04 17:38:09','2024-12-06 11:11:39'),(13,'323244',100.0000,0.0000,'2025-12-16',13,'2024-12-04 17:38:09','2024-12-06 11:07:13'),(14,'323245',100.0000,0.0000,'2025-12-17',14,'2024-12-04 17:38:09','2024-12-06 11:06:42'),(15,'323246',100.0000,0.0000,'2025-12-18',15,'2024-12-04 17:38:09','2024-12-06 11:11:57'),(16,'323247',100.0000,0.0000,'2025-12-19',16,'2024-12-04 17:38:09','2024-12-06 11:23:54'),(17,'323248',100.0000,0.0000,'2025-12-20',17,'2024-12-04 17:38:09','2024-12-06 00:54:55'),(18,'323249',100.0000,0.0000,'2025-12-21',18,'2024-12-04 17:38:10','2024-12-06 00:55:13'),(19,'323250',100.0000,0.0000,'2025-12-22',19,'2024-12-04 17:38:10','2024-12-06 10:58:11'),(20,'323251',100.0000,0.0000,'2025-12-23',20,'2024-12-04 17:38:10','2024-12-06 11:06:14'),(21,'323252',100.0000,0.0000,'2025-12-24',21,'2024-12-04 17:38:10','2024-12-06 11:06:32'),(22,'323253',100.0000,0.0000,'2025-12-25',22,'2024-12-04 17:38:10','2024-12-06 11:14:18'),(23,'323254',100.0000,0.0000,'2025-12-26',23,'2024-12-04 17:38:10','2024-12-06 10:59:32'),(24,'323255',100.0000,0.0000,'2025-12-27',24,'2024-12-04 17:38:10','2024-12-06 11:16:33'),(25,'323256',100.0000,0.0000,'2025-12-28',25,'2024-12-04 17:38:10','2024-12-06 11:16:23'),(26,'323257',100.0000,0.0000,'2025-12-29',26,'2024-12-04 17:38:10','2024-12-06 11:08:17'),(27,'323258',100.0000,0.0000,'2025-12-30',27,'2024-12-04 17:38:10','2024-12-06 11:04:51'),(28,'323259',100.0000,0.0000,'2025-12-31',28,'2024-12-04 17:38:10','2024-12-06 11:16:06'),(29,'323260',100.0000,0.0000,'2026-01-01',29,'2024-12-04 17:38:10','2024-12-06 11:15:54'),(30,'323261',100.0000,0.0000,'2026-01-02',30,'2024-12-04 17:38:10','2024-12-06 01:04:52'),(31,'323262',100.0000,0.0000,'2026-01-03',31,'2024-12-04 17:38:10','2024-12-06 11:23:34'),(32,'323263',100.0000,0.0000,'2026-01-04',32,'2024-12-04 17:38:10','2024-12-06 11:23:25'),(33,'323264',100.0000,0.0000,'2026-01-05',33,'2024-12-04 17:38:10','2024-12-06 11:09:40'),(34,'323265',100.0000,0.0000,'2026-01-06',34,'2024-12-04 17:38:10','2024-12-06 11:09:21'),(35,'323266',100.0000,0.0000,'2026-01-07',35,'2024-12-04 17:38:10','2024-12-06 11:23:15'),(36,'323267',100.0000,0.0000,'2026-01-08',36,'2024-12-04 17:38:10','2024-12-06 11:15:00'),(37,'323268',100.0000,0.0000,'2026-01-09',37,'2024-12-04 17:38:10','2024-12-06 11:17:07'),(38,'323269',100.0000,0.0000,'2026-01-10',38,'2024-12-04 17:38:10','2024-12-06 11:17:40'),(39,'323270',100.0000,0.0000,'2026-01-11',39,'2024-12-04 17:38:10','2024-12-06 11:14:41'),(40,'323271',100.0000,0.0000,'2026-01-12',40,'2024-12-04 17:38:10','2024-12-06 11:19:49'),(41,'323272',100.0000,0.0000,'2026-01-13',41,'2024-12-04 17:38:10','2024-12-06 10:58:55'),(42,'323273',100.0000,0.0000,'2026-01-14',42,'2024-12-04 17:38:10','2024-12-06 11:01:31'),(43,'323274',100.0000,0.0000,'2026-01-15',43,'2024-12-04 17:38:10','2024-12-06 11:02:05'),(44,'323275',100.0000,0.0000,'2026-01-16',44,'2024-12-04 17:38:10','2024-12-06 11:10:26'),(45,'323276',100.0000,0.0000,'2026-01-17',45,'2024-12-04 17:38:10','2024-12-06 11:11:17'),(46,'323277',100.0000,0.0000,'2026-01-18',46,'2024-12-04 17:38:10','2024-12-06 11:17:51'),(47,'323278',100.0000,0.0000,'2026-01-19',47,'2024-12-04 17:38:10','2024-12-06 11:18:00'),(48,'323279',100.0000,0.0000,'2026-01-20',48,'2024-12-04 17:38:10','2024-12-06 11:12:40'),(49,'323280',100.0000,0.0000,'2026-01-21',49,'2024-12-04 17:38:10','2024-12-06 11:12:49'),(50,'323281',100.0000,0.0000,'2026-01-22',50,'2024-12-04 17:38:10','2024-12-06 11:13:36'),(51,'323282',100.0000,0.0000,'2026-01-23',51,'2024-12-04 17:38:10','2024-12-06 10:57:50'),(52,'323283',100.0000,0.0000,'2026-01-24',52,'2024-12-04 17:38:10','2024-12-06 10:57:57'),(53,'323284',100.0000,0.0000,'2026-01-25',53,'2024-12-04 17:38:10','2024-12-06 10:58:32'),(54,'323285',100.0000,0.0000,'2026-01-26',54,'2024-12-04 17:38:10','2024-12-06 10:58:39'),(55,'323286',100.0000,0.0000,'2026-01-27',55,'2024-12-04 17:38:10','2024-12-06 11:08:05'),(56,'323287',100.0000,0.0000,'2026-01-28',56,'2024-12-04 17:38:10','2024-12-06 11:07:52'),(57,'323288',100.0000,0.0000,'2026-01-29',57,'2024-12-04 17:38:10','2024-12-06 11:05:19'),(58,'323289',100.0000,0.0000,'2026-01-30',58,'2024-12-04 17:38:10','2024-12-06 11:04:02'),(59,'323290',100.0000,0.0000,'2026-01-31',59,'2024-12-04 17:38:10','2024-12-06 11:04:33'),(60,'323291',100.0000,0.0000,'2026-02-01',60,'2024-12-04 17:38:10','2024-12-06 11:04:38'),(61,'323292',100.0000,0.0000,'2026-02-02',61,'2024-12-04 17:38:10','2024-12-06 11:03:35'),(62,'323293',100.0000,0.0000,'2026-02-03',62,'2024-12-04 17:38:10','2024-12-06 11:03:47'),(63,'323294',100.0000,0.0000,'2026-02-04',63,'2024-12-04 17:38:10','2024-12-06 11:18:28'),(64,'323295',100.0000,0.0000,'2026-02-05',64,'2024-12-04 17:38:10','2024-12-06 11:14:27');
COMMIT;

-- Dumped table `item_lots_group` with 64 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=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

SET autocommit=0;
INSERT INTO `item_movement` VALUES (1,1,-1.0000,'2024-11-24 18:59:20',1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,'2024-11-24 18:59:20','2024-11-24 18:59:20'),(2,1,-1.0000,'2024-11-24 18:59:20',1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,'2024-11-24 18:59:20','2024-11-24 18:59:20'),(3,2,-1.0000,'2024-11-24 19:26:40',1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,'2024-11-24 19:26:40','2024-11-24 19:26:40');
COMMIT;

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

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

SET autocommit=0;
INSERT INTO `item_movement_rel_extra` VALUES (1,1,1,0,0,0,0,0,0,0,0,0,'2024-11-24 18:59:20','2024-11-24 18:59:20'),(2,1,2,0,0,0,0,0,0,0,0,0,'2024-11-24 18:59:20','2024-11-24 18:59:20');
COMMIT;

-- Dumped table `item_movement_rel_extra` with 2 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_subscription_plans`
--

CREATE TABLE `item_rel_subscription_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`)),
  `subscription_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_subscription_plans`
--

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `item_tags` VALUES (1,1,1,'2024-12-06 10:53:55','2024-12-06 10:53:55'),(2,51,1,'2024-12-06 10:57:50','2024-12-06 10:57:50'),(3,52,1,'2024-12-06 10:57:57','2024-12-06 10:57:57'),(4,19,1,'2024-12-06 10:58:11','2024-12-06 10:58:11'),(5,53,1,'2024-12-06 10:58:32','2024-12-06 10:58:32'),(6,54,1,'2024-12-06 10:58:39','2024-12-06 10:58:39'),(7,41,1,'2024-12-06 10:58:55','2024-12-06 10:58:55'),(8,6,1,'2024-12-06 10:59:19','2024-12-06 10:59:19'),(9,23,1,'2024-12-06 10:59:32','2024-12-06 10:59:32'),(10,11,2,'2024-12-06 11:01:02','2024-12-06 11:01:02'),(11,10,2,'2024-12-06 11:01:14','2024-12-06 11:01:14'),(12,42,2,'2024-12-06 11:01:31','2024-12-06 11:01:31'),(13,43,2,'2024-12-06 11:02:05','2024-12-06 11:02:05'),(16,61,3,'2024-12-06 11:03:35','2024-12-06 11:03:35'),(17,62,3,'2024-12-06 11:03:47','2024-12-06 11:03:47'),(18,58,3,'2024-12-06 11:04:02','2024-12-06 11:04:02'),(19,59,3,'2024-12-06 11:04:33','2024-12-06 11:04:33'),(20,60,3,'2024-12-06 11:04:38','2024-12-06 11:04:38'),(21,27,3,'2024-12-06 11:04:51','2024-12-06 11:04:51'),(22,57,4,'2024-12-06 11:05:19','2024-12-06 11:05:19'),(23,20,4,'2024-12-06 11:06:14','2024-12-06 11:06:14'),(24,21,4,'2024-12-06 11:06:32','2024-12-06 11:06:32'),(25,14,4,'2024-12-06 11:06:42','2024-12-06 11:06:42'),(26,13,5,'2024-12-06 11:07:13','2024-12-06 11:07:13'),(27,56,5,'2024-12-06 11:07:52','2024-12-06 11:07:52'),(28,55,5,'2024-12-06 11:08:05','2024-12-06 11:08:05'),(29,26,5,'2024-12-06 11:08:17','2024-12-06 11:08:17'),(30,34,5,'2024-12-06 11:09:21','2024-12-06 11:09:21'),(31,33,5,'2024-12-06 11:09:40','2024-12-06 11:09:40'),(32,7,5,'2024-12-06 11:10:01','2024-12-06 11:10:01'),(33,44,5,'2024-12-06 11:10:26','2024-12-06 11:10:26'),(34,45,5,'2024-12-06 11:11:17','2024-12-06 11:11:17'),(35,12,5,'2024-12-06 11:11:39','2024-12-06 11:11:39'),(36,15,5,'2024-12-06 11:11:57','2024-12-06 11:11:57'),(37,48,5,'2024-12-06 11:12:40','2024-12-06 11:12:40'),(38,49,5,'2024-12-06 11:12:49','2024-12-06 11:12:49'),(39,50,5,'2024-12-06 11:13:36','2024-12-06 11:13:36'),(40,5,6,'2024-12-06 11:14:01','2024-12-06 11:14:01'),(41,22,6,'2024-12-06 11:14:18','2024-12-06 11:14:18'),(42,64,6,'2024-12-06 11:14:27','2024-12-06 11:14:27'),(43,39,6,'2024-12-06 11:14:41','2024-12-06 11:14:41'),(44,36,6,'2024-12-06 11:15:00','2024-12-06 11:15:00'),(45,29,7,'2024-12-06 11:15:54','2024-12-06 11:15:54'),(46,28,7,'2024-12-06 11:16:06','2024-12-06 11:16:06'),(47,25,7,'2024-12-06 11:16:23','2024-12-06 11:16:23'),(48,24,7,'2024-12-06 11:16:33','2024-12-06 11:16:33'),(49,8,8,'2024-12-06 11:16:56','2024-12-06 11:16:56'),(50,37,8,'2024-12-06 11:17:07','2024-12-06 11:17:07'),(51,9,8,'2024-12-06 11:17:28','2024-12-06 11:17:28'),(52,38,8,'2024-12-06 11:17:40','2024-12-06 11:17:40'),(53,46,8,'2024-12-06 11:17:51','2024-12-06 11:17:51'),(54,47,8,'2024-12-06 11:18:00','2024-12-06 11:18:00'),(55,63,8,'2024-12-06 11:18:28','2024-12-06 11:18:28'),(56,4,9,'2024-12-06 11:18:57','2024-12-06 11:18:57'),(57,3,9,'2024-12-06 11:19:08','2024-12-06 11:19:08'),(58,2,9,'2024-12-06 11:19:17','2024-12-06 11:19:17'),(59,40,9,'2024-12-06 11:19:49','2024-12-06 11:19:49'),(63,35,12,'2024-12-06 11:23:15','2024-12-06 11:23:15'),(64,32,12,'2024-12-06 11:23:25','2024-12-06 11:23:25'),(65,31,12,'2024-12-06 11:23:34','2024-12-06 11:23:34'),(66,16,13,'2024-12-06 11:23:54','2024-12-06 11:23:54');
COMMIT;

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

-- Dumped table `item_unit_types` 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`),
  KEY `item_warehouse_item_id_foreign` (`item_id`),
  KEY `item_warehouse_warehouse_id_foreign` (`warehouse_id`),
  CONSTRAINT `item_warehouse_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`) ON DELETE CASCADE,
  CONSTRAINT `item_warehouse_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=65 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

SET autocommit=0;
INSERT INTO `item_warehouse` VALUES (1,1,1,115.0000,'2024-11-24 18:28:46','2024-12-04 17:38:09'),(2,2,1,102.0000,'2024-11-24 19:16:13','2024-12-04 17:38:09'),(3,3,1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(4,4,1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(5,5,1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(6,6,1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(7,7,1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(8,8,1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(9,9,1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(10,10,1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(11,11,1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(12,12,1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(13,13,1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(14,14,1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(15,15,1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(16,16,1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(17,17,1,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(18,18,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(19,19,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(20,20,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(21,21,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(22,22,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(23,23,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(24,24,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(25,25,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(26,26,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(27,27,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(28,28,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(29,29,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(30,30,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(31,31,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(32,32,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(33,33,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(34,34,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(35,35,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(36,36,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(37,37,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(38,38,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(39,39,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(40,40,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(41,41,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(42,42,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(43,43,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(44,44,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(45,45,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(46,46,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(47,47,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(48,48,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(49,49,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(50,50,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(51,51,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(52,52,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(53,53,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(54,54,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(55,55,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(56,56,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(57,57,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(58,58,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(59,59,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(60,60,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(61,61,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(62,62,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(63,63,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(64,64,1,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10');
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `item_warehouse_prices` VALUES (1,1,1,76.000000);
COMMIT;

-- Dumped table `item_warehouse_prices` with 1 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=69 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

SET autocommit=0;
INSERT INTO `kardex` VALUES (1,'2024-11-24',NULL,1,NULL,NULL,NULL,NULL,15.0000,'2024-11-24 18:28:46','2024-11-24 18:28:46'),(2,'2024-11-24','sale',1,NULL,NULL,NULL,1,1.0000,'2024-11-24 18:59:20','2024-11-24 18:59:20'),(3,'2024-11-24',NULL,2,NULL,NULL,NULL,NULL,3.0000,'2024-11-24 19:16:13','2024-11-24 19:16:13'),(5,'2024-12-04',NULL,1,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(6,'2024-12-04',NULL,2,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(7,'2024-12-04',NULL,3,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(8,'2024-12-04',NULL,4,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(9,'2024-12-04',NULL,5,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(10,'2024-12-04',NULL,6,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(11,'2024-12-04',NULL,7,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(12,'2024-12-04',NULL,8,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(13,'2024-12-04',NULL,9,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(14,'2024-12-04',NULL,10,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(15,'2024-12-04',NULL,11,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(16,'2024-12-04',NULL,12,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(17,'2024-12-04',NULL,13,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(18,'2024-12-04',NULL,14,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(19,'2024-12-04',NULL,15,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(20,'2024-12-04',NULL,16,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(21,'2024-12-04',NULL,17,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:09','2024-12-04 17:38:09'),(22,'2024-12-04',NULL,18,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(23,'2024-12-04',NULL,19,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(24,'2024-12-04',NULL,20,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(25,'2024-12-04',NULL,21,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(26,'2024-12-04',NULL,22,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(27,'2024-12-04',NULL,23,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(28,'2024-12-04',NULL,24,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(29,'2024-12-04',NULL,25,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(30,'2024-12-04',NULL,26,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(31,'2024-12-04',NULL,27,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(32,'2024-12-04',NULL,28,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(33,'2024-12-04',NULL,29,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(34,'2024-12-04',NULL,30,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(35,'2024-12-04',NULL,31,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(36,'2024-12-04',NULL,32,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(37,'2024-12-04',NULL,33,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(38,'2024-12-04',NULL,34,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(39,'2024-12-04',NULL,35,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(40,'2024-12-04',NULL,36,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(41,'2024-12-04',NULL,37,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(42,'2024-12-04',NULL,38,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(43,'2024-12-04',NULL,39,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(44,'2024-12-04',NULL,40,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(45,'2024-12-04',NULL,41,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(46,'2024-12-04',NULL,42,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(47,'2024-12-04',NULL,43,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(48,'2024-12-04',NULL,44,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(49,'2024-12-04',NULL,45,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(50,'2024-12-04',NULL,46,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(51,'2024-12-04',NULL,47,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(52,'2024-12-04',NULL,48,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(53,'2024-12-04',NULL,49,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(54,'2024-12-04',NULL,50,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(55,'2024-12-04',NULL,51,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(56,'2024-12-04',NULL,52,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(57,'2024-12-04',NULL,53,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(58,'2024-12-04',NULL,54,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(59,'2024-12-04',NULL,55,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(60,'2024-12-04',NULL,56,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(61,'2024-12-04',NULL,57,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(62,'2024-12-04',NULL,58,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(63,'2024-12-04',NULL,59,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(64,'2024-12-04',NULL,60,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(65,'2024-12-04',NULL,61,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(66,'2024-12-04',NULL,62,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(67,'2024-12-04',NULL,63,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10'),(68,'2024-12-04',NULL,64,NULL,NULL,NULL,NULL,100.0000,'2024-12-04 17:38:10','2024-12-04 17:38:10');
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

CREATE TABLE `migrations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(255) NOT NULL,
  `batch` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=853 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_31_212318_add_document_id_column_to_sale_notes_table',1),(436,'2021_04_01_113520_add_levels_to_module_levels_table',1),(437,'2021_04_05_115318_add_allow_edit_unit_price_to_seller_column_to_configurations_table',1),(438,'2021_04_06_172009_create_item_warehouse_prices_table',1),(439,'2021_04_08_175347_change_electronico_at_cat_document_type',1),(440,'2021_04_17_163456_add_technical_service_id_to_cash_documents_table',1),(441,'2021_04_22_170915_add_template_pdf_to_establishments_table',1),(442,'2021_04_23_143433_add_edit_flag_to_documents_table',1),(443,'2021_04_27_105557_add_payment_type_to_payment_method',1),(444,'2021_04_29_122333_add_visual_ticket_58_to_configurations_table',1),(445,'2021_05_03_131833_add_mail_configuration',1),(446,'2021_05_06_152551_add_due_date_to_sales_note',1),(447,'2021_05_07_154207_add_soft_delete_to_document',1),(448,'2021_05_07_154207_remove_soft_delete_to_document',1),(449,'2021_05_12_163406_add_seller_can_create_porduct_to_configuration',1),(450,'2021_05_13_120615_add_seller_can_view_balance_on_finance_to_configuration',1),(451,'2021_05_27_124620_add_generate_option_to_sale_opportunities',1),(452,'2021_06_03_122337_add_method_type_to_documents_fee',1),(453,'2021_06_03_165209_add_serie_and_document_to_user',1),(454,'2021_06_07_140759_change_format_number_to_expenses_table',1),(455,'2021_06_09_124243_add_update_documents_by_dispaches_to_configurations',1),(456,'2021_06_10_092525_add_pharmacy_to_items',1),(457,'2021_06_15_094333_add_name_product_pdf_to_order_note_items',1),(458,'2021_06_16_154233_add_send_auto_sunat_to_dispatches',1),(459,'2021_06_18_141048_add_modules_digemid',1),(460,'2021_06_22_112855_add_fields_to_client',1),(461,'2021_06_23_130016_create_digemid_catalog',1),(462,'2021_06_28_125907_add_fields_to_documentary_office',1),(463,'2021_06_28_142358_tenant_add_active_warehouse_prices_to_configurations',1),(464,'2021_06_29_173743_tenant_add_allowance_charge_to_configurations',1),(465,'2021_06_29_184419_remove_key_from_documentary',1),(466,'2021_06_30_174147_create_adjust_to_docymentary_offices',1),(467,'2021_06_30_175311_tenant_add_purchase_to_cash_documents',1),(468,'2021_07_01_171620_adjust_to_docymentary_procedure',1),(469,'2021_07_02_133558_add_office_to_process',1),(470,'2021_07_05_091229_change_data_to',1),(471,'2021_07_05_094927_create_documentary_guides_number',1),(472,'2021_07_05_125811_add_field_to_documentary_file',1),(473,'2021_07_05_141048_add_modules_docymentary_requirements',1),(474,'2021_07_05_213052_change_observation_from_file_offices',1),(475,'2021_07_05_220241_add_requirements_to_documentary_file',1),(476,'2021_07_06_114113_tenant_add_discount_stock_to_cat_transfer_reason_types',1),(477,'2021_07_06_173358_tenant_add_dispatch_id_to_documents',1),(478,'2021_07_06_174510_add_name_pdf_to_sale_note_item',1),(479,'2021_07_14_103324_add_data_affected_document',1),(480,'2021_07_16_204722_add_phone_to_configuration_ecommerce',1),(481,'2021_07_19_132554_add_days_to_client',1),(482,'2021_08_03_115743_add_field_to_send_sale_note_to_other_site',1),(483,'2021_08_05_143043_add_quotation_to_order_note',1),(484,'2021_08_05_144042_tenant_add_search_item_by_series_to_configurations',1),(485,'2021_08_06_094151_tenant_add_change_free_affectation_igv_to_configurations',1),(486,'2021_08_09_115837_add_currency_to_configuration',1),(487,'2021_08_09_131738_tenant_add_select_available_price_list_to_configurations',1),(488,'2021_08_16_111909_create_colors_for_items',1),(489,'2021_08_17_091109_add_more_propertys_to_item',1),(490,'2021_08_20_153033_add_extra_data_of_product_to_configuration',1),(491,'2021_08_20_161555_add_extra_data_item_menu',1),(492,'2021_08_23_105050_tenant_add_group_items_generate_document_to_configurations',1),(493,'2021_08_23_172828_adjust_inventory_item_extra_data',1),(494,'2021_08_24_153219_tenant_add_columns_unknown_error_to_summaries',1),(495,'2021_08_25_155900_tenant_add_columns_integrated_query_to_companies',1),(496,'2021_09_08_165136_add_optional_emails_to_person',1),(497,'2021_09_10_120216_create_email_send_log',1),(498,'2021_09_10_143648_tenant_add_subtotal_to_documents',1),(499,'2021_09_13_171757_tenat_add_total_igv_free_to_documents',1),(500,'2021_09_15_115746_add_global_igv_to_purchase',1),(501,'2021_09_15_170619_tenant_change_length_description_to_quotations',1),(502,'2021_09_16_144202_add_app_to_modules',1),(503,'2021_09_17_120309_add_url_apk_to_configurations',1),(504,'2021_09_17_150025_transfer_accounts_payment',1),(505,'2021_09_21_172056_add_file_to_format_templates',1),(506,'2021_09_22_120834_add_fields_technical_services',1),(507,'2021_09_22_120835_create_technical_service_items',1),(508,'2021_09_24_114832_add_configuration_to_show_name_of_pdf',1),(509,'2021_09_28_183535_add_name_pdf_to_quotation_items',1),(510,'2021_09_29_123827_add_text_to_address_in_configuration',1),(511,'2021_09_29_180607_tenant_add_set_address_by_establishment_to_configurations',1),(512,'2021_09_30_135325_tenant_add_order_id_to_sale_notes',1),(513,'2021_09_30_170149_tenant_add_permission_to_edit_cpe_to_configurations',1),(514,'2021_09_30_171912_tenant_add_permission_edit_cpe_to_users',1),(515,'2021_10_04_154837_tenant_change_nullable_packages_number_to_dispatches',1),(516,'2021_10_05_171912_add_configuration_module_to_user',1),(517,'2021_10_05_174410_tenant_add_total_igv_free_to_quotations',1),(518,'2021_10_06_132920_tenant_add_total_igv_free_to_order_notes',1),(519,'2021_10_07_144354_create_guide_file',1),(520,'2021_10_11_110825_create_item_movement_table',1),(521,'2021_10_12_111345_create_item_movement_rel_extra_table',1),(522,'2021_10_13_113504_add_only_user_warehouse_item_to_config',1),(523,'2021_10_18_110547_tenant_add_technical_service_id_to_documents',1),(524,'2021_10_18_110700_change_default_show_items_only_user_stablishment',1),(525,'2021_10_18_110700_change_value_show_items_only_user_stablishment',1),(526,'2021_10_18_110907_tenant_add_technical_service_id_to_sale_notes',1),(527,'2021_10_18_150100_tenant_add_document_type_04_to_cat_document_types',1),(528,'2021_10_18_150136_tenant_add_data_operation_type_0501_to_cat_operation_types',1),(529,'2021_10_18_150154_tenant_cat_address_types_table',1),(530,'2021_10_18_150215_tenant_add_address_type_id_to_persons',1),(531,'2021_10_18_150306_tenant_purchase_settlements_table',1),(532,'2021_10_18_150324_tenant_purchase_settlement_items_table',1),(533,'2021_10_18_153949_tenant_add_data_purchase_settlements_to_module_levels',1),(534,'2021_10_18_174146_tenant_add_subtotal_to_purchase_settlements',1),(535,'2021_10_19_150956_tenant_add_pending_amount_detraction_to_documents',1),(536,'2021_10_20_160503_tenant_add_retention_to_documents',1),(537,'2021_10_20_161035_tenant_add_data_retention_to_cat_charge_discount_types',1),(538,'2021_10_20_174401_tenant_rename_pending_amount_detraction_to_documents',1),(539,'2021_10_21_093921_tenant_add_igv_retention_percentage_to_configurations',1),(540,'2021_10_22_130040_create_app_subscription',1),(541,'2021_10_25_112316_tenant_add_subtotal_to_quotations',1),(542,'2021_10_25_142908_create_subscription_plans_table',1),(543,'2021_10_25_154009_tenant_add_option_13_to_cat_note_credit_types',1),(544,'2021_10_27_105710_tenant_add_subtotal_to_sale_notes',1),(545,'2021_10_27_133333_add_parent_id_field_to_persons',1),(546,'2021_10_28_110438_alter_sale_notes_and_documents',1),(547,'2021_10_28_173041_tenant_add_name_product_xml_to_document_items',1),(548,'2021_10_29_110421_tenant_add_name_product_pdf_to_xml_to_configurations',1),(549,'2021_10_29_114826_change_value_alternate_server_to_configurations',1),(550,'2021_11_09_113608_tenant_add_default_document_type_80_to_configurations',1),(551,'2021_11_09_143629_tenant_add_search_item_by_barcode_to_configurations',1),(552,'2021_11_09_173326_add_grade_and_section_touser_rel_subscription_plan',1),(553,'2021_11_11_113443_tenant_general_payment_conditions_table',1),(554,'2021_11_11_114229_tenant_add_payment_condition_id_to_purchases',1),(555,'2021_11_11_152521_tenant_purchase_fee_table',1),(556,'2021_11_11_180653_tenant_add_recreate_documents_to_users',1),(557,'2021_11_12_102347_add_grade_and_section_tables',1),(558,'2021_11_15_152956_additem_description_default_pdf_name_configuration',1),(559,'2021_11_16_150657_add_user_id_to_inventories_transfer',1),(560,'2021_11_25_105300_create_accounting_ledger_table',1),(561,'2021_11_25_154025_add_auto_print_to_configurations',1),(562,'2021_12_01_113756_add_show_services_on_pos',1),(563,'2021_12_02_141408_tenant_bank_loans_table',1),(564,'2021_12_08_211200_add_pos_history_and_cost_to_configuration',1),(565,'2021_12_09_182924_add_flag_to_production_for_item',1),(566,'2021_12_10_122529_add_zone_id_to_person',1),(567,'2021_12_10_130040_create_app_production',1),(568,'2021_12_10_172959_add_name_to_mill',1),(569,'2021_12_11_101624_add_data_to_inventory_transactions',1),(570,'2021_12_11_114856_add_item_to_mill_item',1),(571,'2021_12_11_170251_create_item_supplies',1),(572,'2021_12_15_112106_create_columns_to_show_by_user',1),(573,'2021_12_16_144057_add_show_totals_on_c_p_e_list',1),(574,'2021_12_21_134408_add_simplify_to_documentary',1),(575,'2021_12_22_150753_add_guide_to_documentary_archive',1),(576,'2021_12_25_163345_add_colors_to_documentary',1),(577,'2021_12_31_105910_change_documentary_process_characters',1),(578,'2022_01_05_170742_create_machine_for_production',1),(579,'2022_01_07_124919_add_complete_to_documentary_files',1),(580,'2022_01_11_140319_tenant_add_columns_send_pse_to_documents',1),(581,'2022_01_11_174033_tenant_add_columns_send_pse_to_companies',1),(582,'2022_01_12_180810_tenant_add_detraction_amount_rounded_int_to_configurations',1),(583,'2022_01_13_141051_tenant_add_sale_notes_relateds_to_documents',1),(584,'2022_01_15_130321_add_old_quantity_to_item_lot_group',1),(585,'2022_01_18_094821_tenant_add_data_to_inventory_transactions',1),(586,'2022_01_18_120000_add_show_term_condition_pos_to_configurations',1),(587,'2022_01_18_213317_tenant_create_cash_documents_credit',1),(588,'2022_01_20_202655_tenant_add_unique_filename_to_documents',1),(589,'2022_01_22_001715_add_date_end_to_documentary_files',1),(590,'2022_01_25_150315_add_apply_restaurant_to_items',1),(591,'2022_01_25_152940_create_app_restaurant',1),(592,'2022_01_26_175429_create_mi_tienda_pe',1),(593,'2022_01_28_110155_tenant_add_related_to_dispatches',1),(594,'2022_01_29_141957_add_purchase_order_and_observation_to_purchase',1),(595,'2022_01_29_191503_create_packaging_table',1),(596,'2022_01_30_120653_create_configuration_to_mi_tienda_pe',1),(597,'2022_02_02_203403_add_autogenerate_c_p_e_to_mi_tienda_pe',1),(598,'2022_02_07_110836_add_ticket_template_pdf_to_establishments_table',1),(599,'2022_02_07_121152_add_is_custom_ticket_to_format_templates',1),(600,'2022_02_07_142617_add_format_tickets_to_configurations',1),(601,'2022_02_07_161128_tenant_add_data_to_promotions_table',1),(602,'2022_02_08_213251_tenant_add_restaurant_to_orders',1),(603,'2022_02_11_162919_tenant_add_last_sale_price_to_configurations',1),(604,'2022_02_14_222010_tenant_add_flasg_to_inventory_configurations',1),(605,'2022_02_14_224820_tenant_add_barcode_to_item_unit_types',1),(606,'2022_02_16_150615_tenant_add_show_logo_establishment_to_configuration',1),(607,'2022_02_17_195824_add_colaborator_to_production_as_text',1),(608,'2022_02_22_111659_tenant_add_columns_send_pse_to_voided',1),(609,'2022_02_24_134926_tenant_add_columns_purchase_isc_to_items',1),(610,'2022_02_24_201345_tenant_download_tray_table',1),(611,'2022_02_25_172811_add_print_next_line_to_pdf_on_observation',1),(612,'2022_02_27_120405_tenant_add_comments_to_inventories',1),(613,'2022_03_03_110115_tenant_add_global_discount_type_id_to_configurations',1),(614,'2022_03_04_003932_tenant_add_quotation_to_cash_documents',1),(615,'2022_03_08_112351_tenant_add_columns_send_pse_to_dispatches',1),(616,'2022_03_09_111107_tenant_add_restaurant_to_cash',1),(617,'2022_03_10_094902_tenant_add_shipping_time_days_to_configurations',1),(618,'2022_03_11_120508_add_trace_to_api_peru_service',1),(619,'2022_03_14_221802_tenant_add_type_to_download_tray',1),(620,'2022_03_18_140238_tenant_add_total_igv_free_to_sale_notes',1),(621,'2022_03_21_110605_create_restaurant_configuration',1),(622,'2022_03_21_161851_add_configuration_new_valdiator_pagination',1),(623,'2022_03_25_134555_tenant_add_customer_filter_by_seller_to_configurations',1),(624,'2022_03_25_143916_tenant_add_index_seller_id_to_persons',1),(625,'2022_03_25_170158_tenant_add_validate_purchase_sale_unit_price_to_configurations',1),(626,'2022_03_28_174245_add_barcode_column_to_persons_table',1),(627,'2022_03_29_101534_add_quantity_to_restaurant_configuration',1),(628,'2022_03_30_145732_tenant_add_nationality_to_persons',1),(629,'2022_03_31_132849_create_app_pos_garage',1),(630,'2022_04_04_151234_add_commands_to_restaurant_configurations',1),(631,'2022_04_06_111531_create_restaurant_roles_table',1),(632,'2022_04_06_112454_add_restaurant_role_to_users',1),(633,'2022_04_06_170626_tenant_add_unique_filename_to_sale_notes',1),(634,'2022_04_11_143145_tenant_add_name_product_pdf_to_contract_items',1),(635,'2022_04_11_152502_tenant_add_name_product_pdf_to_dispatch_items',1),(636,'2022_04_12_111023_tenant_add_columns_igv_unit_price_purchases_to_configurations',1),(637,'2022_04_12_121903_addindex_to_item_movement_rel_extra',1),(638,'2022_04_12_162742_tenant_report_configurations_table',1),(639,'2022_04_18_153331_tenant_add_payment_permissions_to_users',1),(640,'2022_04_19_114422_tenant_add_set_global_purchase_currency_items_to_configurations',1),(641,'2022_04_20_115118_tenant_add_subject_to_detraction_to_items',1),(642,'2022_04_22_101547_tenant_change_type_observation_to_sale_notes',1),(643,'2022_04_22_133909_tenant_add_set_unit_price_dispatch_related_record_to_configurations',1),(644,'2022_04_25_151827_tenant_add_index_barcode_to_item_unit_types',1),(645,'2022_04_26_175613_tenant_add_columns_restrict_voided_to_configurations',1),(646,'2022_04_28_175537_tenant_add_order_form_external_to_dispatches',1),(647,'2022_04_29_140515_tenant_add_enabled_tips_pos_to_configurations',1),(648,'2022_04_29_144947_tenant_tips_table',1),(649,'2022_05_02_135252_tenant_add_fields_to_module_levels',1),(650,'2022_05_02_152925_tenant_add_top_menu_to_configurations',1),(651,'2022_05_02_170654_tenant_add_data_district_250307_to_districts',1),(652,'2022_05_03_143911_tenant_create_skins_table',1),(653,'2022_05_03_171845_tenant_add_purchase_settlement_id_to_kardex',1),(654,'2022_05_04_143113_tenant_add_payment_method_type_id_to_purchase_settlements',1),(655,'2022_05_04_150922_tenant_change_type_column_quantity_to_item_supplies',1),(656,'2022_05_04_155103_tenant_workers_table',1),(657,'2022_05_04_174017_tenant_add_unique_filename_to_summaries',1),(658,'2022_05_05_110908_tenant_add_soap_type_id_to_production',1),(659,'2022_05_05_115054_tenant_add_soap_type_id_to_mill',1),(660,'2022_05_05_134703_tenant_add_soap_type_id_to_packaging',1),(661,'2022_05_06_162034_add_fields_to_person',1),(662,'2022_05_08_122934_tenant_add_route_path_to_module_levels',1),(663,'2022_05_08_130040_create_app_full_subscription',1),(664,'2022_05_08_130054_tenant_update_data_to_skins',1),(665,'2022_05_09_105130_tenant_payment_configurations_table',1),(666,'2022_05_09_122150_tenant_add_defaults_to_configurations',1),(667,'2022_05_09_141114_tenant_payment_link_types_table',1),(668,'2022_05_09_143633_tenant_payment_links_table',1),(669,'2022_05_09_212753_tenant_register_app_generate_link_to_modules',1),(670,'2022_05_10_113515_tenant_transaction_states_table',1),(671,'2022_05_10_113608_tenant_transactions_table',1),(672,'2022_05_10_113734_tenant_transaction_queries_table',1),(673,'2022_05_10_113800_tenant_client_error_types_table',1),(674,'2022_05_10_113813_tenant_client_errors_table',1),(675,'2022_05_10_163722_tenant_config_default_to_configurations',1),(676,'2022_05_11_104030_tenant_add_soap_type_id_to_transactions',1),(677,'2022_05_11_115321_tenant_add_query_transaction_to_payment_links',1),(678,'2022_05_11_161435_tenant_change_nullable_payment_to_payment_links',1),(679,'2022_05_12_180154_tenant_add_legend_forest_to_xml_to_configurations',1),(680,'2022_05_13_162912_tenant_add_index_regularize_shipping_to_documents',1),(681,'2022_05_13_163802_tenant_purchase_settlement_payments_table',1),(682,'2022_05_13_172504_tenant_add_change_currency_item_to_configurations',1),(683,'2022_05_17_164646_tenant_add_enabled_advanced_records_search_to_configurations',1),(684,'2022_05_23_133515_tenant_add_decimal_quantity_unit_price_pdf_to_configurations',1),(685,'2022_06_01_114042_tenant_add_separate_cash_transactions_to_configurations',1),(686,'2022_06_01_161857_add_column_hotel_rate_id_to_hotel_rents_table',1),(687,'2022_06_01_164204_tenant_add_order_cash_income_to_configurations',1),(688,'2022_06_02_160925_tenant_add_data_district_080915_to_districts',1),(689,'2022_06_03_135513_tenant_add_generate_order_note_from_quotation_to_configurations',1),(690,'2022_06_06_144610_tenant_add_list_items_by_warehouse_to_configurations',1),(691,'2022_06_16_143605_tenant_app_configurations_table',1),(692,'2022_06_17_143817_tenant_add_payment_received_to_document_payments',1),(693,'2022_06_21_101957_tenant_add_columns_login_pse_to_companies',1),(694,'2022_06_21_165810_tenant_add_user_pse_to_companies',1),(695,'2022_06_23_141216_tenant_add_print_format_pdf_to_app_configurations',1),(696,'2022_06_28_164504_tenant_add_date_of_issue_to_inventories',1),(697,'2022_06_30_110007_tenant_add_columns_send_pse_to_summaries',1),(698,'2022_06_30_172004_tenant_add_index_external_id_to_income',1),(699,'2022_06_30_172247_tenant_add_filename_to_income',1),(700,'2022_07_01_103451_tenant_add_filename_to_expenses',1),(701,'2022_07_01_172113_tenant_add_hide_pdf_view_documents_to_configurations',1),(702,'2022_07_04_152229_tenant_add_ticket_single_shipment_to_configurations',1),(703,'2022_07_04_153343_tenant_add_ticket_single_shipment_to_documents',1),(704,'2022_07_05_103856_tenant_add_purchase_permissions_to_users',1),(705,'2022_07_06_113107_tenant_add_columns_theme_configuration_to_app_configurations',1),(706,'2022_07_06_233507_tenant_add_columns_header_configuration_to_app_configurations',1),(707,'2022_07_07_100534_tenant_add_module_app_2_generator_to_modules',1),(708,'2022_07_07_131216_tenant_app_modules_table',1),(709,'2022_07_07_143039_tenant_app_module_user_table',1),(710,'2022_07_08_101718_tenant_add_data_configuration_to_app_modules',1),(711,'2022_07_08_165430_tenant_add_indexes_columns_to_cash',1),(712,'2022_07_11_180145_tenant_add_data_quotation_to_app_modules',1),(713,'2022_07_14_095450_tenant_add_app_logo_to_companies',1),(714,'2022_07_14_120321_tenant_add_affect_all_documents_to_configuration',1),(715,'2022_07_14_143450_tenant_add_terms_condition_column_to_sale_notes_table',1),(716,'2022_07_14_162144_tenant_add_terms_condition_column_to_dispatches_table',1),(717,'2022_07_15_110508_tenant_add_text_filter_to_items',1),(718,'2022_07_18_172843_tenant_add_app_mode_to_app_configurations',1),(719,'2022_07_19_033009_tenant_add_dashboard_options_to_configurations',1),(720,'2022_07_25_115003_tenant_add_quantity_sales_notes_to_configurations',1),(721,'2022_07_30_133127_tenant_add_direct_print_to_app_configurations',1),(722,'2022_08_05_110445_tenant_add_columns_whatsapp_to_companies',1),(723,'2022_08_05_174505_tenant_add_favorite_to_items',1),(724,'2022_08_07_122150_tenant_add_folio_to_documents',1),(725,'2022_08_11_151009_tenant_add_data_district_080916_to_districts',1),(726,'2022_08_11_151307_tenant_add_data_district_080917_to_districts',1),(727,'2022_08_11_151330_tenant_add_data_district_080918_to_districts',1),(728,'2022_08_11_151345_tenant_add_data_district_080919_to_districts',1),(729,'2022_08_14_190940_tenant_add_additional_data_to_documents',1),(730,'2022_08_15_101024_tenant_add_data_default_various_clients_to_persons',1),(731,'2022_08_23_140943_tenant_add_personal_information_to_users',1),(732,'2022_08_23_174028_tenant_user_default_document_types_table',1),(733,'2022_08_24_155445_tenant_add_data_district_080914_to_districts',1),(734,'2022_08_24_160940_tenant_add_additional_data_to_document_items',1),(735,'2022_08_24_165942_tenant_add_restrict_series_selection_seller_to_configurations',1),(736,'2022_08_25_113149_tenant_system_activity_logs_table',1),(737,'2022_08_25_154533_create_dispatch_sale_notes_table',1),(738,'2022_08_29_015753_tenant_add_igv_31556_to_establishments',1),(739,'2022_08_30_104544_tenant_add_location_to_system_activity_logs',1),(740,'2022_08_30_140345_tenant_rename_column_auth_transaction_type_to_system_activity_logs',1),(741,'2022_08_30_175558_tenant_add_regex_password_user_to_configurations',1),(742,'2022_08_31_105919_tenant_add_route_to_system_activity_logs',1),(743,'2022_08_31_112916_tenant_system_activity_log_types_table',1),(744,'2022_08_31_131222_tenant_add_foreign_transaction_type_to_system_activity_logs',1),(745,'2022_08_31_142530_tenant_add_columns_remember_change_password_to_configurations',1),(746,'2022_08_31_150743_tenant_add_last_password_update_to_users',1),(747,'2022_09_01_173835_tenant_add_columns_point_system_to_configurations',1),(748,'2022_09_02_100607_tenant_add_accumulated_points_to_persons',1),(749,'2022_09_02_130726_tenant_add_point_system_to_documents',1),(750,'2022_09_02_152858_tenant_add_columns_point_system_to_items',1),(751,'2022_09_02_172003_tenant_add_show_complete_name_pos_to_configurations',1),(752,'2022_09_03_190940_tenant_add_additional_data_to_documents_error',1),(753,'2022_09_06_165424_tenant_add_round_points_of_sale_to_configurations',1),(754,'2022_09_07_101240_tenant_add_columns_point_system_to_sale_notes',1),(755,'2022_09_08_102133_tenant_add_enable_categories_products_view_to_configurations',1),(756,'2022_09_08_113936_tenant_add_columns_restrict_seller_discount_to_configurations',1),(757,'2022_09_08_151132_tenant_authorized_discount_users_table',1),(758,'2022_09_09_110646_tenant_enabled_sales_agents_to_configurations',1),(759,'2022_09_09_113545_tenant_agents_table',1),(760,'2022_09_09_144216_tenant_add_agent_id_to_documents_sale_notes',1),(761,'2022_09_10_114510_tenant_add_inventory_review_to_inventory_configurations',1),(762,'2022_09_14_170825_tenant_add_change_affectation_exonerated_igv_to_configurations',1),(763,'2022_09_20_101814_tenant_add_data_login_lockout_to_system_activity_log_types',1),(764,'2022_09_20_155523_tenant_add_request_email_to_system_activity_logs',1),(765,'2022_09_27_104853_tenant_add_factory_code_to_items',1),(766,'2022_09_27_115234_tenant_add_search_factory_code_items_to_configurations',1),(767,'2022_09_28_101354_tenant_add_show_load_voucher_to_configurations',1),(768,'2022_09_29_114005_tenant_add_force_send_by_summary_to_documents',1),(769,'2022_09_29_115507_tenant_add_permission_force_send_by_summary_to_users',1),(770,'2022_10_04_141907_tenant_change_description_value_to_module_levels',1),(771,'2022_10_05_152438_tenant_add_environment_to_restaurant_configurations',1),(772,'2022_10_05_162751_tenant_add_index_changed_to_sale_notes',1),(773,'2022_10_12_141349_tenant_add_real_system_stock_to_inventories',1),(774,'2022_10_14_172645_tenant_add_register_series_invoice_xml_to_configurations',1),(775,'2022_10_16_101354_tenant_add_enable_discount_by_customer_to_configurations',1),(776,'2022_10_16_110607_tenant_add_discount_to_persons',1),(777,'2022_10_20_123539_tenant_add_image_default_to_items',1),(778,'2022_10_21_190940_tenant_add_additional_data_to_dispatches',1),(779,'2022_10_21_210941_tenant_add_additional_data_to_dispatch_items',1),(780,'2022_10_21_213010_tenant_add_config_to_restaurant_configurations',1),(781,'2022_10_22_113308_tenant_create_waiters_table',1),(782,'2022_10_22_174921_tenant_add_quantity_mesas_and_and_env4_to_environment_restaurant',1),(783,'2022_11_04_142103_tenant_add_enabled_dispatch_ticket_pdf_to_configurations',1),(784,'2022_11_04_173318_tenant_add_dispatch_ticket_pdf_to_document_sale_notes',1),(785,'2022_11_10_132533_tenant_add_item_lot_group_id_to_purchase_items',1),(786,'2022_11_14_162628_tenant_add_validate_stock_add_item_to_inventory_configurations',1),(787,'2022_11_16_000856_create_restaurant_table_envs_table',1),(788,'2022_11_16_000857_add_data_restaurant_table_envs',1),(789,'2022_11_16_235623_create_restaurant_tables_table',1),(790,'2022_11_17_154241_tenant_add_direct_send_documents_whatsapp_to_app_configurations',1),(791,'2022_11_27_235623_create_restaurant_notes_table',1),(792,'2022_11_28_007706_tenant_guides_table',1),(793,'2022_11_28_017707_tenant_guide_items_table',1),(794,'2022_11_28_101718_tenant_add_guide_id_to_inventories',1),(795,'2022_11_28_111428_tenant_add_series_and_number_to_inventories_transfer',1),(796,'2022_11_29_113028_tenant_create_number_series_to_guides',1),(797,'2022_11_30_103028_tenant_add_api_sunat_to_companies',1),(798,'2022_12_01_013028_tenant_add_ticket_to_dispatches',1),(799,'2022_12_01_112321_tenant_update_data_to_dispatches',1),(800,'2022_12_02_023125_tenant_add_number_mtc_to_dispatchers',1),(801,'2022_12_04_113118_tenant_add_sunat_to_companies',1),(802,'2022_12_06_105443_tenant_add_name_product_pdf_to_purchase_items',1),(803,'2022_12_07_112335_add_show_price_in_barcode_ticket_to_configurations',1),(804,'2022_12_12_225021_tenant_update_roles_restaurant_mozo',1),(805,'2022_12_13_131847_tenant_change_column_inventory_transaction_id_to_guides',1),(806,'2022_12_13_153125_tenant_add_unit_type_to_cat_unit_types',1),(807,'2022_12_16_153346_tenant_add_price_selected_add_product_to_configurations',1),(808,'2022_12_20_160732_tenant_add_additional_data_to_order_notes',1),(809,'2022_12_21_113016_tenant_edit_unit_type_to_cat_unit_types',1),(810,'2022_12_22_101455_tenant_pdf_footer_images_to_configurations',1),(811,'2022_12_23_132614_tenant_add_locked_create_establishments_to_configurations',1),(812,'2022_12_23_173228_tenant_add_restrict_sales_limit_to_configurations',1),(813,'2022_12_26_112720_add_data_district050511_to_districts',1),(814,'2022_12_27_012101_tenant_transports_table',1),(815,'2022_12_27_152518_tenant_add_restrict_sale_items_cpe_to_configurations',1),(816,'2022_12_27_154226_tenant_add_restrict_sale_cpe_to_items',1),(817,'2022_12_28_174959_tenant_add_show_convert_cpe_pos_to_configurations',1),(818,'2022_12_28_270513_tenant_update_to_dispatches',1),(819,'2022_12_29_120310_tenant_update_to_drivers',1),(820,'2022_12_29_132101_tenant_origin_addresses_table',1),(821,'2022_12_30_120731_tenant_add_index_is_credit_to_payment_method_types',1),(822,'2022_12_31_100513_tenant_add_transport_data_to_dispatches',1),(823,'2023_01_14_013028_tenant_change_length_ticket_to_dispatches',1),(824,'2023_01_15_122101_tenant_dispatch_addresses_table',1),(825,'2023_01_16_110612_tenant_add_receiver_to_dispatches',1),(826,'2023_01_16_150612_tenant_change_customer_id_to_dispatches',1),(827,'2023_02_09_144759_create_inventory_transfer_items',1),(828,'2023_02_24_163815_tenant_add_order_note_advanced_to_configurations',1),(829,'2023_03_08_113249_tenant_hotel_rent_item_payments_table',1),(830,'2023_03_09_132241_tenant_add_subtotal_to_order_notes',1),(831,'2023_03_15_151737_tenant_change_nullable_email_to_establishments',1),(832,'2023_03_15_154740_tenant_remove_validation_email_establishments_to_configurations',1),(833,'2023_03_28_171352_tenant_add_record_to_skins',1),(834,'2023_04_02_003004_tenant_add_unique_documents',1),(835,'2023_04_04_170503_tenant_add_text_filter_to_persons',1),(836,'2023_04_10_110202_tenant_add_document_types',1),(837,'2023_04_10_160202_tenant_add_quantity_factor_to_quotation_items',1),(838,'2023_04_10_160502_tenant_add_quantity_factor_to_document_items',1),(839,'2023_04_10_170502_tenant_add_quantity_factor_to_sale_note_items',1),(840,'2023_04_10_170503_tenant_add_quantity_factor_to_order_note_items',1),(841,'2023_04_10_170513_tenant_add_quantity_factor_to_purchase_order_items',1),(842,'2023_04_11_120503_tenant_add_series_number_to_quotations',1),(843,'2023_04_11_170603_tenant_add_series_number_to_order_notes',1),(844,'2023_04_11_170803_tenant_add_series_number_to_purchase_orders',1),(845,'2023_04_11_190201_tenant_add_document_type_id_to_sale_notes',1),(846,'2023_04_12_190201_tenant_add_is_agent_retention_to_persons',1),(847,'2023_05_12_093211_tenant_add_index_inventory_kardexable_to_inventory_kardex',1),(848,'2023_05_12_094918_tenant_fix_model_kardex_migration_to_inventory_kardex',1),(849,'2023_05_17_110818_tenant_add_select_establishment_bank_account_to_configurations',1),(850,'2023_05_17_111308_tenant_add_establishment_id_to_bank_accounts',1),(851,'2023_05_24_150707_tenant_add_change_seller_to_users',1),(852,'2023_05_25_101817_tenant_add_permission_edit_sale_note_to_users',1);
COMMIT;

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

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

CREATE TABLE `migration_configuration` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `url` varchar(255) DEFAULT NULL,
  `api_key` varchar(255) 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 `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 `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=27 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','Farmacia',15,'2024-11-24 16:57:40','2024-11-24 16:57:40'),(20,'apps','Apps',13,NULL,NULL),(21,'subscription_app','Subscriptiones',16,NULL,NULL),(22,'production_app','Producción',17,NULL,NULL),(23,'restaurant_app','Restaurante',18,NULL,NULL),(24,'full_subscription_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);
COMMIT;

-- Dumped table `modules` with 25 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=86 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,'2024-11-24 16:57:50'),(45,'users','Usuarios',14,'tenant.users.index','/users','USR',NULL,NULL),(46,'users_establishments','Establecimientos',14,'tenant.establishments.index','/establishments','ES',NULL,NULL),(47,'advanced_retentions','Retenciones',3,NULL,NULL,NULL,NULL,NULL),(48,'advanced_dispatches','Guías de remisión',3,NULL,NULL,NULL,NULL,NULL),(49,'advanced_perceptions','Percepciones',3,NULL,NULL,NULL,NULL,NULL),(50,'advanced_order_forms','Ordenes de pedido',3,NULL,NULL,NULL,NULL,NULL),(51,'account_report','Exportar reporte',9,NULL,NULL,NULL,NULL,NULL),(52,'account_formats','Exportar formatos',9,NULL,NULL,NULL,NULL,NULL),(53,'account_summary','Reporte resumido - Ventas',9,NULL,NULL,NULL,NULL,NULL),(54,'finances_movements','Movimientos',12,NULL,NULL,NULL,NULL,NULL),(55,'finances_incomes','Ingresos',12,NULL,NULL,NULL,NULL,NULL),(56,'finances_unpaid','Cuentas por cobrar',12,NULL,NULL,NULL,NULL,NULL),(57,'finances_to_pay','Cuentas por pagar',12,NULL,NULL,NULL,NULL,NULL),(58,'finances_payments','Pagos',12,NULL,NULL,NULL,NULL,NULL),(59,'finances_balance','Balance',12,NULL,NULL,NULL,NULL,NULL),(60,'finances_payment_method_types','Ingresos y Egresos - M. Pago',12,NULL,NULL,NULL,NULL,NULL),(61,'account_users_settings','Configuración',11,NULL,NULL,NULL,NULL,NULL),(62,'account_users_list','Lista de pagos',11,NULL,NULL,NULL,NULL,NULL),(63,'hotels_reception','Recepción',15,NULL,NULL,NULL,NULL,NULL),(64,'hotels_rates','Tarifas',15,NULL,NULL,NULL,NULL,NULL),(65,'hotels_floors','Pisos',15,NULL,NULL,NULL,NULL,NULL),(66,'hotels_cats','Categorías',15,NULL,NULL,NULL,NULL,NULL),(67,'hotels_rooms','Habitaciones',15,NULL,NULL,NULL,NULL,NULL),(68,'documentary_offices','Oficinas',16,NULL,NULL,NULL,NULL,NULL),(69,'documentary_process','Procesos',16,NULL,NULL,NULL,NULL,NULL),(70,'documentary_documents','Tipos de documento',16,NULL,NULL,NULL,NULL,NULL),(71,'documentary_actions','Acciones',16,NULL,NULL,NULL,NULL,NULL),(72,'documentary_files','Expedientes',16,NULL,NULL,NULL,NULL,NULL),(73,'digemid','Productos',19,NULL,NULL,NULL,'2024-11-24 16:57:40','2024-11-24 16:57:40'),(74,'documentary_requirements','Requerimientos',16,NULL,NULL,NULL,'2024-11-24 16:57:40','2024-11-24 16:57:40'),(75,'inventory_item_extra_data','Datos extra de items',8,NULL,NULL,NULL,'2024-11-24 16:57:40','2024-11-24 16:57:40'),(76,'inventory_item_extra_data','Datos extra de items',8,NULL,NULL,NULL,NULL,NULL),(77,'configuration_company','Empresa',5,'tenant.companies.create','/companies/create','ME',NULL,NULL),(78,'configuration_advance','Avanzado',5,NULL,NULL,NULL,NULL,NULL),(79,'configuration_visual','Visual',5,NULL,NULL,NULL,NULL,NULL),(80,'advanced_purchase_settlements','Liquidaciones de compra',3,NULL,NULL,NULL,NULL,NULL),(81,'subscription_app_client','Cliente',21,NULL,NULL,NULL,NULL,NULL),(82,'subscription_app_service','Servicio',21,NULL,NULL,NULL,NULL,NULL),(83,'subscription_app_payments','Pagos',21,NULL,NULL,NULL,NULL,NULL),(84,'subscription_app_plans','Planes',21,NULL,NULL,NULL,NULL,NULL),(85,'pos_garage','Venta rapida',6,NULL,NULL,NULL,NULL,NULL);
COMMIT;

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

--
