-- Table structure for table `migration_configuration`
--

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `mobile_idempotency_keys`
--

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `persons` VALUES (1,'customers','0','99999999','Clientes - Varios',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,'2025-12-27 23:47:15','2025-12-27 23:47:15',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(2,'customers','6','20527234850','L & H REPRESENTACIONES S.A.C.',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'17','1701','170101',NULL,'JR. AMAZONAS NRO. 411  CERCADO','HABIDO','ACTIVO',NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2025-12-30 20:27:18','2025-12-30 20:27:18',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(3,'customers','1','40924995','CASTRO MUJICA, LUIS RICARDO',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-16 09:42:22','2026-04-16 09:42:22',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(4,'customers','1','74355658','ESPIRILLA SARGENTO, JENIFFER LUZ',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-18 14:59:08','2026-06-18 14:59:08',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(5,'customers','1','47151012','CHOQUE CONDORI, SORAIDA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-16 09:27:09','2026-07-16 09:27:09',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(6,'customers','6','20610624511','DATHAN INGENIERIA Y CONSTRUCCION S.R.L.',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'05','0501','050101',NULL,'MZ. H LT. 8 ASC. BASILIO AUQUI','HABIDO','ACTIVO',NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-28 08:50:57','2026-07-28 08:50:57',1,0,NULL,0,NULL,NULL,0,'01',0.00,1);
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `person_types` VALUES (1,'Interno','2025-12-27 23:47:01','2025-12-27 23:47:01'),(2,'Distribuidor','2025-12-27 23:47:01','2025-12-27 23:47:01');
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `pharmacy_configurations` VALUES (1,1,0,'2025-12-28 00:26:34','2025-12-28 00:26:34');
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `procedures`
--

CREATE TABLE `procedures` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `code` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `is_available` tinyint(1) NOT NULL DEFAULT 0,
  `status` tinyint(1) 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 `procedures`
--

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `report_configurations` VALUES (1,'tenant.reports.general_items.index','reports/general-items','Ventas - Reporte general de productos',0,'2025-12-27 23:47:13','2025-12-27 23:47:13'),(2,'tenant.reports.purchases.general_items.index','reports/purchases/general_items','Compras - Reporte general de productos',0,'2025-12-27 23:47:13','2025-12-27 23:47:13'),(3,'tenant.reports.purchases.index','reports/purchases','Compras - Compras totales',0,'2025-12-27 23:47:13','2025-12-27 23:47:13');
COMMIT;

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `sale_notes` VALUES (1,2,NULL,NULL,NULL,'f0d5030b-a126-475a-8ed9-f703583a20f3',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',1,'2025-12-30','20:24:41',2,'{\"identity_document_type_id\":\"6\",\"identity_document_type\":{\"id\":\"6\",\"description\":\"RUC\"},\"number\":\"20527234850\",\"name\":\"L & H REPRESENTACIONES S.A.C.\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"address\":\"JR. AMAZONAS NRO. 411  CERCADO\",\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.372,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,25.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,25.00,25.00,25.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-1-20251230','NV01-1-20251230',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2025-12-30 20:32:18','2025-12-30 20:32:19',0.00,2,NULL,NULL,NULL,NULL),(2,2,NULL,NULL,NULL,'1e1b6205-5288-467f-8d4c-67f2c1cb434c',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',2,'2025-12-31','16:22:31',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.369,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,49.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,49.00,49.00,49.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-2-20251231','NV01-2-20251231',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2025-12-31 16:24:08','2025-12-31 16:24:09',0.00,2,NULL,NULL,NULL,NULL),(3,2,NULL,NULL,NULL,'b03e3fbb-20bf-43b9-8b5f-51a0ff7447e4',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',3,'2026-01-18','17:00:31',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.363,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,35.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,35.00,35.00,35.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-3-20260118','NV01-3-20260118',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-01-18 17:02:56','2026-01-18 17:02:56',0.00,2,NULL,NULL,NULL,NULL),(4,2,NULL,NULL,NULL,'97c09a1c-1da7-4f76-a932-a2db549e6b4d',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',4,'2026-01-20','22:19:42',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,1.000,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,63.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,63.00,63.00,63.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-4-20260120','NV01-4-20260120',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-01-20 22:23:35','2026-01-20 22:23:35',0.00,2,NULL,NULL,NULL,NULL),(5,2,NULL,NULL,NULL,'2e4a464c-812a-4fbb-894e-8bee5b7e698b',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',5,'2026-01-23','17:40:25',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.360,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,25.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,25.00,25.00,25.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-5-20260123','NV01-5-20260123',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-01-23 17:40:37','2026-01-23 17:40:37',0.00,2,NULL,NULL,NULL,NULL),(6,2,NULL,NULL,NULL,'3a684a0a-318c-4fea-b1a5-b6eb4315b468',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',6,'2026-02-01','10:51:05',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.360,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,2.50,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,2.50,2.50,2.50,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-6-20260201','NV01-6-20260201',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-02-01 10:53:48','2026-02-01 10:53:48',0.00,2,NULL,NULL,NULL,NULL),(7,2,NULL,NULL,NULL,'d9b5a6d4-dc73-45a4-a665-6986eea30bd0',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',7,'2026-02-01','10:53:51',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.355,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,5.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,5.00,5.00,5.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-7-20260201','NV01-7-20260201',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-02-01 10:54:42','2026-02-01 10:54:43',0.00,2,NULL,NULL,NULL,NULL),(8,2,NULL,NULL,NULL,'80e9e9fe-045f-4622-8979-10f7352b409f',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',8,'2026-02-01','11:08:27',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,1.000,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,3.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,3.00,3.00,3.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-8-20260201','NV01-8-20260201',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-02-01 11:09:10','2026-02-01 11:09:10',0.00,2,NULL,NULL,NULL,NULL),(9,2,NULL,NULL,NULL,'750f9cfe-41fe-4aa7-b81e-7814bb2c4886',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',9,'2026-02-01','11:09:14',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.355,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,10.50,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,10.50,10.50,10.50,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-9-20260201','NV01-9-20260201',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-02-01 11:10:56','2026-02-01 11:10:56',0.00,2,NULL,NULL,NULL,NULL),(10,2,NULL,NULL,NULL,'1224aa79-622e-4e4c-b560-5fc13f3da4b4',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',10,'2026-02-14','22:32:59',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.358,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,25.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,25.00,25.00,25.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-10-20260214','NV01-10-20260214',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-02-14 22:33:10','2026-02-14 22:33:10',0.00,2,NULL,NULL,NULL,NULL),(11,2,NULL,NULL,NULL,'749b20b7-75a8-49e7-9ca7-f84e4fb2274f',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',11,'2026-02-14','22:34:24',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.358,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,25.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,25.00,25.00,25.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-11-20260214','NV01-11-20260214',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-02-14 22:34:30','2026-02-14 22:34:30',0.00,2,NULL,NULL,NULL,NULL),(12,2,NULL,NULL,NULL,'77f0add5-d4c1-417b-bc4a-e3caaf4d7548',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',12,'2026-03-05','15:15:57',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.414,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,2.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,2.00,2.00,2.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-12-20260305','NV01-12-20260305',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-05 15:16:03','2026-03-05 15:16:03',0.00,2,NULL,NULL,NULL,NULL),(13,2,NULL,NULL,NULL,'0596f0c0-8593-45f2-9208-02fdeeaddb57',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',13,'2026-03-05','18:41:00',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.414,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,4.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,4.00,4.00,4.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-13-20260305','NV01-13-20260305',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-05 18:41:01','2026-03-05 18:41:01',0.00,2,NULL,NULL,NULL,NULL),(14,2,NULL,NULL,NULL,'48a296dc-0983-4784-a285-33ec886a94c5',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',14,'2026-03-06','19:04:42',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.432,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,15.50,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,15.50,15.50,15.50,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-14-20260306','NV01-14-20260306',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-06 19:05:55','2026-03-06 19:05:56',0.00,2,NULL,NULL,NULL,NULL),(15,2,NULL,NULL,NULL,'a81c16a1-e9c5-437f-b075-c2ae6be9f10e',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',15,'2026-03-06','19:06:12',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.432,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,6.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,6.00,6.00,6.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-15-20260306','NV01-15-20260306',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-06 19:07:00','2026-03-06 19:07:00',0.00,2,NULL,NULL,NULL,NULL),(16,2,NULL,NULL,NULL,'235e0708-0a84-41dc-b405-c80518e18abb',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',16,'2026-03-06','19:07:16',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.432,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,2.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,2.00,2.00,2.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-16-20260306','NV01-16-20260306',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-06 19:08:15','2026-03-06 19:08:16',0.00,2,NULL,NULL,NULL,NULL),(17,2,NULL,NULL,NULL,'f1400e04-82d2-4fa6-b484-95642d7c77d8',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',17,'2026-03-06','19:08:32',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.432,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,7.50,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,7.50,7.50,7.50,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-17-20260306','NV01-17-20260306',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-06 19:15:02','2026-03-06 19:15:02',0.00,2,NULL,NULL,NULL,NULL),(18,2,NULL,NULL,NULL,'416da199-4895-4b76-a57b-10d1c95ecc99',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',18,'2026-03-06','19:15:19',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.432,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,8.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,8.00,8.00,8.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-18-20260306','NV01-18-20260306',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-06 19:53:31','2026-03-06 19:53:31',0.00,2,NULL,NULL,NULL,NULL),(19,2,NULL,NULL,NULL,'58d37077-ca32-47d3-add3-db0ae90fe6eb',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',19,'2026-03-06','20:06:24',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.432,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,2.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,2.00,2.00,2.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-19-20260306','NV01-19-20260306',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-06 20:06:40','2026-03-06 20:06:41',0.00,2,NULL,NULL,NULL,NULL),(20,2,NULL,NULL,NULL,'0278f9b8-df7a-4f3e-a4c0-3eb7687d35a0',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',20,'2026-03-06','22:20:39',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,1.000,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,10.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,10.00,10.00,10.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-20-20260306','NV01-20-20260306',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-06 22:20:38','2026-03-06 22:20:38',0.00,2,NULL,NULL,NULL,NULL),(21,2,NULL,NULL,NULL,'a7d0a7a2-aae8-4780-8fb9-897c0d1d9183',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',21,'2026-03-06','22:20:54',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.432,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,25.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,25.00,25.00,25.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-21-20260306','NV01-21-20260306',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-06 22:41:32','2026-03-06 22:41:33',0.00,2,NULL,NULL,NULL,NULL),(22,2,NULL,NULL,NULL,'fa5324db-cbeb-4188-89ac-3700d459a3a4',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',22,'2026-03-06','22:41:48',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.432,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,2.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,2.00,2.00,2.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-22-20260306','NV01-22-20260306',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-06 22:56:48','2026-03-06 22:56:48',0.00,2,NULL,NULL,NULL,NULL),(23,2,NULL,NULL,NULL,'3bc91242-a16d-4a25-96df-31c3cb63daab',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',23,'2026-03-07','15:30:18',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,1.000,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,3.50,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,3.50,3.50,3.50,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-23-20260307','NV01-23-20260307',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-07 15:30:49','2026-03-07 15:30:50',0.00,2,NULL,NULL,NULL,NULL),(24,2,NULL,NULL,NULL,'771382e3-5575-44f9-b1ed-d385ad6ed418',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',24,'2026-03-07','18:16:30',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,1.000,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,7.50,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,7.50,7.50,7.50,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-24-20260307','NV01-24-20260307',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-07 18:22:43','2026-03-07 18:22:43',0.00,2,NULL,NULL,NULL,NULL),(25,2,NULL,NULL,NULL,'a2f28a10-7325-40c0-88a0-1197a286d84e',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',25,'2026-03-07','18:23:00',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.479,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,6.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,6.00,6.00,6.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-25-20260307','NV01-25-20260307',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-07 18:53:24','2026-03-07 18:53:24',0.00,2,NULL,NULL,NULL,NULL),(26,2,NULL,NULL,NULL,'fefc7a79-59ca-41e8-ba17-dc7f6ad738a8',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',26,'2026-03-07','18:53:41',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.479,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,2.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,2.00,2.00,2.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-26-20260307','NV01-26-20260307',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-07 19:20:35','2026-03-07 19:20:36',0.00,2,NULL,NULL,NULL,NULL),(27,2,NULL,NULL,NULL,'81f8aeb0-9483-478d-9cc2-846d598f9c24',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',27,'2026-03-07','19:20:52',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.479,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,12.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,12.00,12.00,12.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-27-20260307','NV01-27-20260307',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-07 20:43:25','2026-03-07 20:43:25',0.00,2,NULL,NULL,NULL,NULL),(28,2,NULL,NULL,NULL,'2a9519a9-b7ae-41f7-9574-6f8e22371999',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',28,'2026-03-08','09:30:18',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.479,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,7.50,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,7.50,7.50,7.50,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-28-20260308','NV01-28-20260308',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-08 09:30:27','2026-03-08 09:30:27',0.00,2,NULL,NULL,NULL,NULL),(29,2,NULL,NULL,NULL,'8da8c221-c69f-4364-bd87-74d316652fca',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',29,'2026-03-08','09:30:45',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.479,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,5.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,5.00,5.00,5.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-29-20260308','NV01-29-20260308',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-08 10:24:35','2026-03-08 10:24:35',0.00,2,NULL,NULL,NULL,NULL),(30,2,NULL,NULL,NULL,'909a73ce-af06-4d50-b084-7172d417a72e',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',30,'2026-03-08','13:56:37',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,1.000,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,14.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,14.00,14.00,14.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-30-20260308','NV01-30-20260308',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-08 13:56:32','2026-03-08 13:56:32',0.00,2,NULL,NULL,NULL,NULL),(31,2,NULL,NULL,NULL,'69efbce2-ee4e-4ea7-8382-73e5d0de1e47',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',31,'2026-03-10','15:04:41',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.493,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,7.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,7.00,7.00,7.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-31-20260310','NV01-31-20260310',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-10 15:06:05','2026-03-10 15:06:05',0.00,2,NULL,NULL,NULL,NULL),(32,2,NULL,NULL,NULL,'f9b8f4ec-a7a4-4f62-9601-bc7fed8a5ab1',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',32,'2026-03-10','18:55:11',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,1.000,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,8.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,8.00,8.00,8.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-32-20260310','NV01-32-20260310',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-03-10 18:55:38','2026-03-10 18:55:38',0.00,2,NULL,NULL,NULL,NULL),(33,2,NULL,NULL,NULL,'d2c34fee-5531-4936-b92b-6a09277920c9',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',33,'2026-04-13','22:10:57',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.385,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,35.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,35.00,35.00,35.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-33-20260413','NV01-33-20260413',NULL,NULL,NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-04-13 22:10:49','2026-04-13 22:10:49',0.00,2,NULL,NULL,NULL,NULL),(34,2,NULL,NULL,NULL,'90ca964a-1329-40ee-ae88-55fb9e0cc838',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',34,'2026-04-13','22:11:19',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.385,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,40.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,40.00,40.00,40.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-34-20260413','NV01-34-20260413',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-04-13 22:12:11','2026-04-13 22:12:11',0.00,2,NULL,NULL,NULL,NULL),(35,2,NULL,NULL,NULL,'8f18a3ac-bc50-4c52-869b-a2f5aedc0366',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',35,'2026-04-13','22:12:40',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.385,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,40.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,40.00,40.00,40.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-35-20260413','NV01-35-20260413',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-04-13 22:12:49','2026-04-13 22:12:49',0.00,2,NULL,NULL,NULL,NULL),(36,2,NULL,NULL,NULL,'2b08e3ba-11d7-4be6-8c35-da49b25d7c1d',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',36,'2026-04-13','22:13:19',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.385,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,40.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,40.00,40.00,40.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-36-20260413','NV01-36-20260413',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-04-13 22:13:21','2026-04-13 22:13:21',0.00,2,NULL,NULL,NULL,NULL),(37,2,NULL,NULL,NULL,'043c91d7-d1fe-4d67-ae7f-07c577ec3447',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',37,'2026-06-12','13:39:30',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.394,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,54.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,54.00,54.00,54.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-37-20260612','NV01-37-20260612',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-06-12 13:39:03','2026-06-12 13:39:03',0.00,2,NULL,NULL,NULL,NULL),(38,2,NULL,NULL,NULL,'ce827ef1-fa50-496b-a3b5-739bb2d31213',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',38,'2026-06-12','13:40:59',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.394,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,63.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,63.00,63.00,63.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-38-20260612','NV01-38-20260612',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-06-12 13:40:53','2026-06-12 13:40:53',0.00,2,NULL,NULL,NULL,NULL),(39,2,NULL,NULL,NULL,'8b0ddf92-dda1-493b-9f19-d6e73eef6dc5',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',39,'2026-06-12','13:41:44',1,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.394,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,71.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,71.00,71.00,71.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-39-20260612','NV01-39-20260612',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-06-12 13:41:16','2026-06-12 13:41:17',0.00,2,NULL,NULL,NULL,NULL),(40,2,NULL,NULL,NULL,'f1c88bfd-c34f-4d24-9b6b-a974d513c8ca',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',40,'2026-06-18','14:57:20',4,'{\"identity_document_type_id\":\"1\",\"identity_document_type\":{\"id\":\"1\",\"description\":\"DNI\"},\"number\":\"74355658\",\"name\":\"ESPIRILLA SARGENTO, JENIFFER LUZ\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.384,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,20.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,20.00,20.00,20.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-40-20260618','NV01-40-20260618',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-06-18 14:59:11','2026-06-18 14:59:11',0.00,2,NULL,NULL,NULL,NULL),(41,2,NULL,NULL,NULL,'c59faefa-248e-4fe9-94f8-76d80bd823d8',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"17\",\"department\":{\"id\":\"17\",\"description\":\"MADRE DE DIOS\"},\"province_id\":\"1701\",\"province\":{\"id\":\"1701\",\"description\":\"Tambopata\"},\"district_id\":\"170101\",\"district\":{\"id\":\"170101\",\"description\":\"Tambopata\"},\"urbanization\":null,\"address\":\"AV. CIRCUNVALACI\\u00d3N\",\"email\":\"admin@gmail.com\",\"telephone\":\"+51 928 355 472\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','NV','NV01',41,'2026-07-28','08:44:17',6,'{\"identity_document_type_id\":\"6\",\"identity_document_type\":{\"id\":\"6\",\"description\":\"RUC\"},\"number\":\"20610624511\",\"name\":\"DATHAN INGENIERIA Y CONSTRUCCION S.R.L.\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"05\",\"department\":{\"id\":\"05\",\"description\":\"AYACUCHO\"},\"province_id\":\"0501\",\"province\":{\"id\":\"0501\",\"description\":\"Huamanga\"},\"district_id\":\"050101\",\"district\":{\"id\":\"050101\",\"description\":\"Ayacucho\"},\"address\":\"MZ. H LT. 8 ASC. BASILIO AUQUI\",\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}','PEN','01',NULL,3.411,0,NULL,1,0,0,NULL,NULL,NULL,0.00,0.00,0.00,NULL,NULL,0.00,0.00,0.00,0.00,26.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,26.00,26.00,26.00,0,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'','NV01-41-20260728','NV01-41-20260728',NULL,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-07-28 08:53:16','2026-07-28 08:53:16',0.00,2,NULL,NULL,NULL,NULL);
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `sale_note_items` VALUES (1,1,130,'{\"stock\":10,\"id\":130,\"item_id\":130,\"full_description\":\"A000130 - CEFALOGEN Ceftriaxona 1GR (IM)\",\"name\":null,\"second_name\":null,\"description\":\"CEFALOGEN Ceftriaxona 1GR (IM)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000130\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"25.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"25.00\",\"aux_sale_unit_price\":\"25.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"25.00\",\"IdLoteSelected\":null}',1.0000,25.000000,'20',25.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',25.000000,25.00,0.00,0.00,25.00,'[]','[]','[]',NULL,742,NULL,NULL),(2,2,390,'{\"stock\":10,\"id\":390,\"item_id\":390,\"full_description\":\"A000390 - DICLOFENACO 75MG\\/3ML\",\"name\":null,\"second_name\":null,\"description\":\"DICLOFENACO 75MG\\/3ML\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000390\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"4.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"4.00\",\"aux_sale_unit_price\":\"4.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"4.00\",\"IdLoteSelected\":null}',1.0000,4.000000,'20',4.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',4.000000,4.00,0.00,0.00,4.00,'[]','[]','[]',NULL,743,NULL,NULL),(3,2,57,'{\"stock\":10,\"id\":57,\"item_id\":57,\"full_description\":\"A000057 - DEXAMETASONA VIA IM\\/IV\",\"name\":null,\"second_name\":null,\"description\":\"DEXAMETASONA VIA IM\\/IV\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000057\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"5.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"5.00\",\"aux_sale_unit_price\":\"5.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"5.00\",\"IdLoteSelected\":null}',1.0000,5.000000,'20',5.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',5.000000,5.00,0.00,0.00,5.00,'[]','[]','[]',NULL,744,NULL,NULL),(4,2,464,'{\"stock\":10,\"id\":464,\"item_id\":464,\"full_description\":\"A000464 - DOLO BENALGIN 1ML\\/2ML\",\"name\":null,\"second_name\":null,\"description\":\"DOLO BENALGIN 1ML\\/2ML\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000464\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,745,NULL,NULL),(5,3,742,'{\"stock\":0,\"id\":742,\"item_id\":742,\"full_description\":\"7750831020113 - GINGISONA PULVERIZACION BUCAL\",\"name\":null,\"second_name\":null,\"description\":\"GINGISONA PULVERIZACION BUCAL\",\"currency_type_id\":\"PEN\",\"internal_id\":\"7750831020113\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"35.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"35.00\",\"aux_sale_unit_price\":\"35.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"0.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"35.00\",\"IdLoteSelected\":null}',1.0000,35.000000,'20',35.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',35.000000,35.00,0.00,0.00,35.00,'[]','[]','[]',NULL,747,NULL,NULL),(6,4,573,'{\"stock\":10,\"id\":573,\"item_id\":573,\"full_description\":\"A000573 - CIPROFLOXACINO 500 mg TAB\",\"name\":null,\"second_name\":null,\"description\":\"CIPROFLOXACINO 500 mg TAB\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000573\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"0.70\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":\"10\",\"edit_sale_unit_price\":\"0.70\",\"aux_sale_unit_price\":\"0.70\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":6,\"unit_price\":\"0.70\",\"IdLoteSelected\":null}',10.0000,0.700000,'20',7.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',0.700000,7.00,0.00,0.00,7.00,'[]','[]','[]',NULL,748,NULL,NULL),(7,4,408,'{\"stock\":10,\"id\":408,\"item_id\":408,\"full_description\":\"A000408 - Repriman 50 MG TABLETA\",\"name\":null,\"second_name\":null,\"description\":\"Repriman 50 MG TABLETA\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000408\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"0.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":\"10\",\"edit_sale_unit_price\":\"0.50\",\"aux_sale_unit_price\":\"0.50\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"0.50\",\"IdLoteSelected\":null}',10.0000,0.500000,'20',5.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',0.500000,5.00,0.00,0.00,5.00,'[]','[]','[]',NULL,749,NULL,NULL),(8,4,285,'{\"stock\":10,\"id\":285,\"item_id\":285,\"full_description\":\"A000285 - REPRIMAN GOTAS\",\"name\":null,\"second_name\":null,\"description\":\"REPRIMAN GOTAS\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000285\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"15.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"15.00\",\"aux_sale_unit_price\":\"15.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"15.00\",\"IdLoteSelected\":null}',1.0000,15.000000,'20',15.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',15.000000,15.00,0.00,0.00,15.00,'[]','[]','[]',NULL,750,NULL,NULL),(9,4,103,'{\"stock\":10,\"id\":103,\"item_id\":103,\"full_description\":\"A000103 - DERMAGEN CREMA X 20GR\",\"name\":null,\"second_name\":null,\"description\":\"DERMAGEN CREMA X 20GR\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000103\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"18.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":\"2\",\"edit_sale_unit_price\":\"18.00\",\"aux_sale_unit_price\":\"18.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"18.00\",\"IdLoteSelected\":null}',2.0000,18.000000,'20',36.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',18.000000,36.00,0.00,0.00,36.00,'[]','[]','[]',NULL,751,NULL,NULL),(10,5,636,'{\"stock\":10,\"id\":636,\"item_id\":636,\"full_description\":\"A000636 - GARDIL-NITAZOXANIDA 500 mg\",\"name\":null,\"second_name\":null,\"description\":\"GARDIL-NITAZOXANIDA 500 mg\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000636\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"25.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"25.00\",\"aux_sale_unit_price\":\"25.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"25.00\",\"IdLoteSelected\":null}',1.0000,25.000000,'20',25.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',25.000000,25.00,0.00,0.00,25.00,'[]','[]','[]',NULL,752,NULL,NULL),(11,6,175,'{\"stock\":10,\"id\":175,\"item_id\":175,\"full_description\":\"A000175 - ABUBRON AB amoxi + ambroxol\",\"name\":null,\"second_name\":null,\"description\":\"ABUBRON AB amoxi + ambroxol\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000175\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.50\",\"aux_sale_unit_price\":\"2.50\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.50\",\"IdLoteSelected\":null}',1.0000,2.500000,'20',2.50,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.500000,2.50,0.00,0.00,2.50,'[]','[]','[]',NULL,754,NULL,NULL),(12,7,175,'{\"stock\":9,\"id\":175,\"item_id\":175,\"full_description\":\"A000175 - ABUBRON AB amoxi + ambroxol\",\"name\":null,\"second_name\":null,\"description\":\"ABUBRON AB amoxi + ambroxol\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000175\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":\"2\",\"edit_sale_unit_price\":\"2.50\",\"aux_sale_unit_price\":\"2.50\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"9.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.50\",\"IdLoteSelected\":null}',2.0000,2.500000,'20',5.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.500000,5.00,0.00,0.00,5.00,'[]','[]','[]',NULL,755,NULL,NULL),(13,8,527,'{\"stock\":10,\"id\":527,\"item_id\":527,\"full_description\":\"A000527 - MIGRADEL (DELFARMA)\",\"name\":null,\"second_name\":null,\"description\":\"MIGRADEL (DELFARMA)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000527\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"1.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"1.50\",\"aux_sale_unit_price\":\"1.50\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"1.50\",\"IdLoteSelected\":null}',2.0000,1.500000,'20',3.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.500000,3.00,0.00,0.00,3.00,'[]','[]','[]',NULL,756,NULL,NULL),(14,9,223,'{\"stock\":10,\"id\":223,\"item_id\":223,\"full_description\":\"A000223 - Dexamecor -dexametasona 4 mg\",\"name\":null,\"second_name\":null,\"description\":\"Dexamecor -dexametasona 4 mg\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000223\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"1.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":3,\"edit_sale_unit_price\":\"1.50\",\"aux_sale_unit_price\":\"1.50\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"1.50\",\"IdLoteSelected\":null}',3.0000,1.500000,'20',4.50,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.500000,4.50,0.00,0.00,4.50,'[]','[]','[]',NULL,757,NULL,NULL),(15,9,530,'{\"stock\":10,\"id\":530,\"item_id\":530,\"full_description\":\"A000530 - DR FLU (DROPESAC)\",\"name\":null,\"second_name\":null,\"description\":\"DR FLU (DROPESAC)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000530\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"1.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":4,\"edit_sale_unit_price\":\"1.50\",\"aux_sale_unit_price\":\"1.50\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"1.50\",\"IdLoteSelected\":null}',4.0000,1.500000,'20',6.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.500000,6.00,0.00,0.00,6.00,'[]','[]','[]',NULL,758,NULL,NULL),(16,10,164,'{\"stock\":10,\"id\":164,\"item_id\":164,\"full_description\":\"A000164 - POSTINOR 1\",\"name\":null,\"second_name\":null,\"description\":\"POSTINOR 1\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000164\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"25.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"25.00\",\"aux_sale_unit_price\":\"25.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"25.00\",\"IdLoteSelected\":null}',1.0000,25.000000,'20',25.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',25.000000,25.00,0.00,0.00,25.00,'[]','[]','[]',NULL,759,NULL,NULL),(17,11,164,'{\"stock\":9,\"id\":164,\"item_id\":164,\"full_description\":\"A000164 - POSTINOR 1\",\"name\":null,\"second_name\":null,\"description\":\"POSTINOR 1\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000164\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"25.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"25.00\",\"aux_sale_unit_price\":\"25.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"9.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"25.00\",\"IdLoteSelected\":null}',1.0000,25.000000,'20',25.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',25.000000,25.00,0.00,0.00,25.00,'[]','[]','[]',NULL,760,NULL,NULL),(18,12,223,'{\"stock\":14,\"id\":223,\"item_id\":223,\"full_description\":\"A000223 - DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"name\":null,\"second_name\":null,\"description\":\"DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000223\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"14.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',1.0000,2.000000,'20',2.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,2.00,0.00,0.00,2.00,'[]','[]','[]',NULL,854,NULL,NULL),(19,13,63,'{\"stock\":142,\"id\":63,\"item_id\":63,\"full_description\":\"A000063 - DOLO NEUROBION NF CAPSULA (CIFARMA)\",\"name\":null,\"second_name\":null,\"description\":\"DOLO NEUROBION NF CAPSULA (CIFARMA)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000063\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"4.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"4.00\",\"aux_sale_unit_price\":\"4.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"142.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"4.00\",\"IdLoteSelected\":null}',1.0000,4.000000,'20',4.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',4.000000,4.00,0.00,0.00,4.00,'[]','[]','[]',NULL,855,NULL,NULL),(20,14,787,'{\"stock\":77,\"id\":787,\"item_id\":787,\"full_description\":\"IBUCAL FORTE - IBUPROFENO 400 mg (DIPHASAC)\",\"name\":null,\"second_name\":null,\"description\":\"IBUCAL FORTE - IBUPROFENO 400 mg (DIPHASAC)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"1.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"1.50\",\"aux_sale_unit_price\":\"1.50\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"77.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"1.50\",\"IdLoteSelected\":null}',1.0000,1.500000,'20',1.50,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.500000,1.50,0.00,0.00,1.50,'[]','[]','[]',NULL,858,NULL,NULL),(21,14,782,'{\"stock\":52,\"id\":782,\"item_id\":782,\"full_description\":\"GINEPROX COMPOSITUM TAB (PHARMA-C)\",\"name\":null,\"second_name\":null,\"description\":\"GINEPROX COMPOSITUM TAB (PHARMA-C)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"52.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',1.0000,2.000000,'20',2.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,2.00,0.00,0.00,2.00,'[]','[]','[]',NULL,859,NULL,NULL),(22,14,781,'{\"stock\":24,\"id\":781,\"item_id\":781,\"full_description\":\"FLATUZYM ADVANCE CAP (IQFARMA)\",\"name\":null,\"second_name\":null,\"description\":\"FLATUZYM ADVANCE CAP (IQFARMA)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"24.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',1.0000,2.000000,'20',2.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,2.00,0.00,0.00,2.00,'[]','[]','[]',NULL,860,NULL,NULL),(23,14,552,'{\"stock\":29,\"id\":552,\"item_id\":552,\"full_description\":\"A000552 - BISMUTOL TAB MASTICABLES (TEVA)\",\"name\":null,\"second_name\":null,\"description\":\"BISMUTOL TAB MASTICABLES (TEVA)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000552\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"29.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',1.0000,2.000000,'20',2.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,2.00,0.00,0.00,2.00,'[]','[]','[]',NULL,861,NULL,NULL),(24,14,360,'{\"stock\":335,\"id\":360,\"item_id\":360,\"full_description\":\"A000360 - DOLOPARAMIDOL NF - PARACETA + IBU 500 + 150 mg COMP (MARKOS)\",\"name\":null,\"second_name\":null,\"description\":\"DOLOPARAMIDOL NF - PARACETA + IBU 500 + 150 mg COMP (MARKOS)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000360\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":4,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"335.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',4.0000,2.000000,'20',8.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,8.00,0.00,0.00,8.00,'[]','[]','[]',NULL,862,NULL,NULL),(25,15,223,'{\"stock\":12,\"id\":223,\"item_id\":223,\"full_description\":\"A000223 - DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"name\":null,\"second_name\":null,\"description\":\"DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000223\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":3,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"12.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',3.0000,2.000000,'20',6.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,6.00,0.00,0.00,6.00,'[]','[]','[]',NULL,863,NULL,NULL),(26,16,782,'{\"stock\":51,\"id\":782,\"item_id\":782,\"full_description\":\"GINEPROX COMPOSITUM TAB (PHARMA-C)\",\"name\":null,\"second_name\":null,\"description\":\"GINEPROX COMPOSITUM TAB (PHARMA-C)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"51.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',1.0000,2.000000,'20',2.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,2.00,0.00,0.00,2.00,'[]','[]','[]',NULL,864,NULL,NULL),(27,17,787,'{\"stock\":76,\"id\":787,\"item_id\":787,\"full_description\":\"IBUCAL FORTE - IBUPROFENO 400 mg (DIPHASAC)\",\"name\":null,\"second_name\":null,\"description\":\"IBUCAL FORTE - IBUPROFENO 400 mg (DIPHASAC)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"1.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":5,\"edit_sale_unit_price\":\"1.50\",\"aux_sale_unit_price\":\"1.50\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"76.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"1.50\",\"IdLoteSelected\":null}',5.0000,1.500000,'20',7.50,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.500000,7.50,0.00,0.00,7.50,'[]','[]','[]',NULL,865,NULL,NULL),(28,18,223,'{\"stock\":9,\"id\":223,\"item_id\":223,\"full_description\":\"A000223 - DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"name\":null,\"second_name\":null,\"description\":\"DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000223\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"9.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',1.0000,2.000000,'20',2.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,2.00,0.00,0.00,2.00,'[]','[]','[]',NULL,866,NULL,NULL),(29,18,360,'{\"stock\":331,\"id\":360,\"item_id\":360,\"full_description\":\"A000360 - DOLOPARAMIDOL NF - PARACETA + IBU 500 + 150 mg COMP (MARKOS)\",\"name\":null,\"second_name\":null,\"description\":\"DOLOPARAMIDOL NF - PARACETA + IBU 500 + 150 mg COMP (MARKOS)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000360\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"331.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',1.0000,2.000000,'20',2.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,2.00,0.00,0.00,2.00,'[]','[]','[]',NULL,867,NULL,NULL),(30,18,63,'{\"stock\":141,\"id\":63,\"item_id\":63,\"full_description\":\"A000063 - DOLO NEUROBION NF CAPSULA (CIFARMA)\",\"name\":null,\"second_name\":null,\"description\":\"DOLO NEUROBION NF CAPSULA (CIFARMA)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000063\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"4.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"4.00\",\"aux_sale_unit_price\":\"4.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"141.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"4.00\",\"IdLoteSelected\":null}',1.0000,4.000000,'20',4.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',4.000000,4.00,0.00,0.00,4.00,'[]','[]','[]',NULL,868,NULL,NULL),(31,19,360,'{\"stock\":330,\"id\":360,\"item_id\":360,\"full_description\":\"A000360 - DOLOPARAMIDOL NF - PARACETA + IBU 500 + 150 mg COMP (MARKOS)\",\"name\":null,\"second_name\":null,\"description\":\"DOLOPARAMIDOL NF - PARACETA + IBU 500 + 150 mg COMP (MARKOS)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000360\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"330.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',1.0000,2.000000,'20',2.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,2.00,0.00,0.00,2.00,'[]','[]','[]',NULL,869,NULL,NULL),(32,20,21,'{\"stock\":6,\"id\":21,\"item_id\":21,\"full_description\":\"A000021 - DOLOCORDRALAN EXTRA FORTE (ANSOLAT)\",\"name\":null,\"second_name\":null,\"description\":\"DOLOCORDRALAN EXTRA FORTE (ANSOLAT)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000021\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":4,\"edit_sale_unit_price\":\"2.50\",\"aux_sale_unit_price\":\"2.50\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"6.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.50\",\"IdLoteSelected\":null}',4.0000,2.500000,'20',10.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.500000,10.00,0.00,0.00,10.00,'[]','[]','[]',NULL,870,NULL,NULL),(33,21,650,'{\"stock\":3,\"id\":650,\"item_id\":650,\"full_description\":\"A000650 - VICK 44 JARABE x120 ml\",\"name\":null,\"second_name\":null,\"description\":\"VICK 44 JARABE x120 ml\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000650\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"25.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"25.00\",\"aux_sale_unit_price\":\"25.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"3.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"25.00\",\"IdLoteSelected\":null}',1.0000,25.000000,'20',25.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',25.000000,25.00,0.00,0.00,25.00,'[]','[]','[]',NULL,871,NULL,NULL),(34,22,223,'{\"stock\":8,\"id\":223,\"item_id\":223,\"full_description\":\"A000223 - DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"name\":null,\"second_name\":null,\"description\":\"DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000223\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"8.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',1.0000,2.000000,'20',2.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,2.00,0.00,0.00,2.00,'[]','[]','[]',NULL,872,NULL,NULL),(35,23,570,'{\"stock\":199,\"id\":570,\"item_id\":570,\"full_description\":\"A000570 - GRAVAMIN - DIMENHIDRINATO 50 mg (MEDIFARMA)\",\"name\":null,\"second_name\":null,\"description\":\"GRAVAMIN - DIMENHIDRINATO 50 mg (MEDIFARMA)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000570\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"1.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"1.50\",\"aux_sale_unit_price\":\"1.50\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"199.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"1.50\",\"IdLoteSelected\":null}',1.0000,1.500000,'20',1.50,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.500000,1.50,0.00,0.00,1.50,'[]','[]','[]',NULL,880,NULL,NULL),(36,23,223,'{\"stock\":7,\"id\":223,\"item_id\":223,\"full_description\":\"A000223 - DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"name\":null,\"second_name\":null,\"description\":\"DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000223\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"7.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',1.0000,2.000000,'20',2.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,2.00,0.00,0.00,2.00,'[]','[]','[]',NULL,881,NULL,NULL),(37,24,787,'{\"stock\":71,\"id\":787,\"item_id\":787,\"full_description\":\"IBUCAL FORTE - IBUPROFENO 400 mg (DIPHASAC)\",\"name\":null,\"second_name\":null,\"description\":\"IBUCAL FORTE - IBUPROFENO 400 mg (DIPHASAC)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"1.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"1.50\",\"aux_sale_unit_price\":\"1.50\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"71.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"1.50\",\"IdLoteSelected\":null}',1.0000,1.500000,'20',1.50,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.500000,1.50,0.00,0.00,1.50,'[]','[]','[]',NULL,882,NULL,NULL),(38,24,223,'{\"stock\":6,\"id\":223,\"item_id\":223,\"full_description\":\"A000223 - DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"name\":null,\"second_name\":null,\"description\":\"DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000223\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"6.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',1.0000,2.000000,'20',2.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,2.00,0.00,0.00,2.00,'[]','[]','[]',NULL,883,NULL,NULL),(39,24,790,'{\"stock\":15,\"id\":790,\"item_id\":790,\"full_description\":\"DOLO NEUROPRESS FORTE TAB (PHARMED)\",\"name\":null,\"second_name\":null,\"description\":\"DOLO NEUROPRESS FORTE TAB (PHARMED)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"15.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',2.0000,2.000000,'20',4.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,4.00,0.00,0.00,4.00,'[]','[]','[]',NULL,884,NULL,NULL),(40,25,780,'{\"stock\":136,\"id\":780,\"item_id\":780,\"full_description\":\"MAGACID - MAGALDRATO TAB MASTICA 800 + 40 mg  (MARKOS)\",\"name\":null,\"second_name\":null,\"description\":\"MAGACID - MAGALDRATO TAB MASTICA 800 + 40 mg  (MARKOS)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"1.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":4,\"edit_sale_unit_price\":\"1.50\",\"aux_sale_unit_price\":\"1.50\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"136.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"1.50\",\"IdLoteSelected\":null}',4.0000,1.500000,'20',6.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.500000,6.00,0.00,0.00,6.00,'[]','[]','[]',NULL,885,NULL,NULL),(41,26,223,'{\"stock\":5,\"id\":223,\"item_id\":223,\"full_description\":\"A000223 - DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"name\":null,\"second_name\":null,\"description\":\"DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000223\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"5.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',1.0000,2.000000,'20',2.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,2.00,0.00,0.00,2.00,'[]','[]','[]',NULL,886,NULL,NULL),(42,27,74,'{\"stock\":53,\"id\":74,\"item_id\":74,\"full_description\":\"A000074 - REFLUPRAZOL Esomeprazol 40 mg TAB (QM PHARMA)\",\"name\":null,\"second_name\":null,\"description\":\"REFLUPRAZOL Esomeprazol 40 mg TAB (QM PHARMA)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000074\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"3.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"3.00\",\"aux_sale_unit_price\":\"3.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"53.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"3.00\",\"IdLoteSelected\":null}',2.0000,3.000000,'20',6.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',3.000000,6.00,0.00,0.00,6.00,'[]','[]','[]',NULL,887,NULL,NULL),(43,27,360,'{\"stock\":319,\"id\":360,\"item_id\":360,\"full_description\":\"A000360 - DOLOPARAMIDOL NF - PARACETA + IBU 500 + 150 mg COMP (MARKOS)\",\"name\":null,\"second_name\":null,\"description\":\"DOLOPARAMIDOL NF - PARACETA + IBU 500 + 150 mg COMP (MARKOS)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000360\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":3,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"319.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',3.0000,2.000000,'20',6.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,6.00,0.00,0.00,6.00,'[]','[]','[]',NULL,888,NULL,NULL),(44,28,789,'{\"stock\":91,\"id\":789,\"item_id\":789,\"full_description\":\"APRONAX - NAPROXENO 550 mg TAB (BAYER)\",\"name\":null,\"second_name\":null,\"description\":\"APRONAX - NAPROXENO 550 mg TAB (BAYER)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":3,\"edit_sale_unit_price\":\"2.50\",\"aux_sale_unit_price\":\"2.50\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"91.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.50\",\"IdLoteSelected\":null}',3.0000,2.500000,'20',7.50,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.500000,7.50,0.00,0.00,7.50,'[]','[]','[]',NULL,896,NULL,NULL),(45,29,137,'{\"stock\":44,\"id\":137,\"item_id\":137,\"full_description\":\"A000137 - ASPIRINA 100mg TAB  (BAYER)\",\"name\":null,\"second_name\":null,\"description\":\"ASPIRINA 100mg TAB  (BAYER)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000137\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"1.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":5,\"edit_sale_unit_price\":\"1.00\",\"aux_sale_unit_price\":\"1.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"44.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"1.00\",\"IdLoteSelected\":null}',5.0000,1.000000,'20',5.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.000000,5.00,0.00,0.00,5.00,'[]','[]','[]',NULL,897,NULL,NULL),(46,30,325,'{\"stock\":4,\"id\":325,\"item_id\":325,\"full_description\":\"A000325 - Clorfenamina Maleato 2mg \\/ 5mL x 60 ml (PORTUGAL)\",\"name\":null,\"second_name\":null,\"description\":\"Clorfenamina Maleato 2mg \\/ 5mL x 60 ml (PORTUGAL)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000325\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"7.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"7.00\",\"aux_sale_unit_price\":\"7.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"4.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"7.00\",\"IdLoteSelected\":null}',2.0000,7.000000,'20',14.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',7.000000,14.00,0.00,0.00,14.00,'[]','[]','[]',NULL,898,NULL,NULL),(47,31,70,'{\"stock\":10,\"id\":70,\"item_id\":70,\"full_description\":\"A000070 - UROTAN Fenazopiridina\",\"name\":null,\"second_name\":null,\"description\":\"UROTAN Fenazopiridina\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000070\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":\"2\",\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',2.0000,2.000000,'20',4.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,4.00,0.00,0.00,4.00,'[]','[]','[]',NULL,908,NULL,NULL),(48,31,787,'{\"stock\":69,\"id\":787,\"item_id\":787,\"full_description\":\"IBUCAL FORTE - IBUPROFENO 400 mg (DIPHASAC)\",\"name\":null,\"second_name\":null,\"description\":\"IBUCAL FORTE - IBUPROFENO 400 mg (DIPHASAC)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"1.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":\"2\",\"edit_sale_unit_price\":\"1.50\",\"aux_sale_unit_price\":\"1.50\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"69.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"unit_price\":\"1.50\",\"IdLoteSelected\":null}',2.0000,1.500000,'20',3.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.500000,3.00,0.00,0.00,3.00,'[]','[]','[]',NULL,909,NULL,NULL),(49,32,781,'{\"stock\":22,\"id\":781,\"item_id\":781,\"full_description\":\"FLATUZYM ADVANCE CAP (IQFARMA)\",\"name\":null,\"second_name\":null,\"description\":\"FLATUZYM ADVANCE CAP (IQFARMA)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"22.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',1.0000,2.000000,'20',2.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,2.00,0.00,0.00,2.00,'[]','[]','[]',NULL,911,NULL,NULL),(50,32,780,'{\"stock\":132,\"id\":780,\"item_id\":780,\"full_description\":\"MAGACID - MAGALDRATO TAB MASTICA 800 + 40 mg  (MARKOS)\",\"name\":null,\"second_name\":null,\"description\":\"MAGACID - MAGALDRATO TAB MASTICA 800 + 40 mg  (MARKOS)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"1.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":4,\"edit_sale_unit_price\":\"1.50\",\"aux_sale_unit_price\":\"1.50\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"132.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"1.50\",\"IdLoteSelected\":null}',4.0000,1.500000,'20',6.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.500000,6.00,0.00,0.00,6.00,'[]','[]','[]',NULL,912,NULL,NULL),(51,33,301,'{\"stock\":1,\"id\":301,\"item_id\":301,\"full_description\":\"A000301 - ACI TIP MAGAL + SIMETI 400 + 30 mg\\/ 5 ml x 200 ml (MEGALABS)\",\"name\":null,\"second_name\":null,\"description\":\"ACI TIP MAGAL + SIMETI 400 + 30 mg\\/ 5 ml x 200 ml (MEGALABS)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000301\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":35,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"35.00\",\"aux_sale_unit_price\":\"35.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"1.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":0,\"unit_price\":35,\"IdLoteSelected\":null}',1.0000,35.000000,'20',35.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',35.000000,35.00,0.00,0.00,35.00,'[]','[]','[]',NULL,939,NULL,NULL),(52,34,223,'{\"stock\":-15,\"id\":223,\"item_id\":223,\"full_description\":\"A000223 - DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"name\":null,\"second_name\":null,\"description\":\"DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000223\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":2,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-15.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":0,\"unit_price\":2,\"IdLoteSelected\":null}',20.0000,2.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,940,NULL,NULL),(53,35,63,'{\"stock\":122,\"id\":63,\"item_id\":63,\"full_description\":\"A000063 - DOLO NEUROBION NF CAPSULA (CIFARMA)\",\"name\":null,\"second_name\":null,\"description\":\"DOLO NEUROBION NF CAPSULA (CIFARMA)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000063\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":4,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":11,\"edit_sale_unit_price\":\"4.00\",\"aux_sale_unit_price\":\"4.00\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"122.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":1,\"unit_price\":4,\"IdLoteSelected\":null}',10.0000,4.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',4.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,941,NULL,NULL),(54,36,21,'{\"stock\":-6,\"id\":21,\"item_id\":21,\"full_description\":\"A000021 - DOLOCORDRALAN EXTRA FORTE (ANSOLAT)\",\"name\":null,\"second_name\":null,\"description\":\"DOLOCORDRALAN EXTRA FORTE (ANSOLAT)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000021\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":2.5,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":16,\"edit_sale_unit_price\":\"2.50\",\"aux_sale_unit_price\":\"2.50\",\"image_url\":\"https:\\/\\/boticadiaz.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-6.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":0,\"unit_price\":2.5,\"IdLoteSelected\":null}',16.0000,2.500000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.500000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,942,NULL,NULL),(55,37,354,'{\"stock\":68,\"id\":354,\"item_id\":354,\"full_description\":\"A000354 - NIKZON TAB MASTICA (GENOMMA LAB)\",\"name\":null,\"second_name\":null,\"description\":\"NIKZON TAB MASTICA (GENOMMA LAB)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000354\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":2,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"68.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":null,\"item_id\":354,\"description\":\"Unidades\",\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":2,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"650240001314\",\"pricing_source\":\"base_unit_fallback\",\"pricing_status\":\"fallback\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"lot_status\":\"none\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":1,\"presentation\":{\"id\":null,\"item_id\":354,\"description\":\"Unidades\",\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":2,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"650240001314\",\"pricing_source\":\"base_unit_fallback\",\"pricing_status\":\"fallback\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}},\"unit_price\":2,\"IdLoteSelected\":null}',20.0000,2.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,983,NULL,NULL),(56,37,223,'{\"stock\":-35,\"id\":223,\"item_id\":223,\"full_description\":\"A000223 - DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"name\":null,\"second_name\":null,\"description\":\"DEXAMECOR - DEXAMETASONA 4 mg (LYAFARM)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000223\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":2,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-35.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":null,\"item_id\":223,\"description\":\"Unidades\",\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":2,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"763331546202\",\"pricing_source\":\"base_unit_fallback\",\"pricing_status\":\"fallback\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"lot_status\":\"none\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":0,\"presentation\":{\"id\":null,\"item_id\":223,\"description\":\"Unidades\",\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":2,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"763331546202\",\"pricing_source\":\"base_unit_fallback\",\"pricing_status\":\"fallback\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}},\"unit_price\":2,\"IdLoteSelected\":null}',7.0000,2.000000,'20',14.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,14.00,0.00,0.00,14.00,'[]','[]','[]',NULL,984,NULL,NULL),(57,38,655,'{\"stock\":4,\"id\":655,\"item_id\":655,\"full_description\":\"A000655 - DOLORAL FORTE-IBUPROFENO 200 mg\\/5 ml X 60 ml (INDUFAR)\",\"name\":null,\"second_name\":null,\"description\":\"DOLORAL FORTE-IBUPROFENO 200 mg\\/5 ml X 60 ml (INDUFAR)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000655\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":28,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"28.00\",\"aux_sale_unit_price\":\"28.00\",\"image_url\":\"https:\\/\\/boticadiaz.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"4.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":null,\"item_id\":655,\"description\":\"Unidades\",\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":28,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"7840653006300\",\"pricing_source\":\"base_unit_fallback\",\"pricing_status\":\"fallback\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"lot_status\":\"none\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":1,\"presentation\":{\"id\":null,\"item_id\":655,\"description\":\"Unidades\",\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":28,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"7840653006300\",\"pricing_source\":\"base_unit_fallback\",\"pricing_status\":\"fallback\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}},\"unit_price\":28,\"IdLoteSelected\":null}',1.0000,28.000000,'20',28.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',28.000000,28.00,0.00,0.00,28.00,'[]','[]','[]',NULL,989,NULL,NULL),(58,38,646,'{\"stock\":1,\"id\":646,\"item_id\":646,\"full_description\":\"A000646 - DOLORAL- IBUPROFENO SUSP 100 mg\\/5 ml x 60 ml (HERSIL)\",\"name\":null,\"second_name\":null,\"description\":\"DOLORAL- IBUPROFENO SUSP 100 mg\\/5 ml x 60 ml (HERSIL)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000646\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":18,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"18.00\",\"aux_sale_unit_price\":\"18.00\",\"image_url\":\"https:\\/\\/boticadiaz.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"1.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":null,\"item_id\":646,\"description\":\"Unidades\",\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":18,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"7757310446334\",\"pricing_source\":\"base_unit_fallback\",\"pricing_status\":\"fallback\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"lot_status\":\"none\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":0,\"presentation\":{\"id\":null,\"item_id\":646,\"description\":\"Unidades\",\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":18,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"7757310446334\",\"pricing_source\":\"base_unit_fallback\",\"pricing_status\":\"fallback\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}},\"unit_price\":18,\"IdLoteSelected\":null}',1.0000,18.000000,'20',18.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',18.000000,18.00,0.00,0.00,18.00,'[]','[]','[]',NULL,990,NULL,NULL),(59,38,286,'{\"stock\":10,\"id\":286,\"item_id\":286,\"full_description\":\"A000286 - Bronco AmoxiCLin amoxicilina +\",\"name\":null,\"second_name\":null,\"description\":\"Bronco AmoxiCLin amoxicilina +\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000286\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":2,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/boticadiaz.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":null,\"item_id\":286,\"description\":\"Unidades\",\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":2,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":null,\"pricing_source\":\"base_unit_fallback\",\"pricing_status\":\"fallback\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"lot_status\":\"none\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":4,\"presentation\":{\"id\":null,\"item_id\":286,\"description\":\"Unidades\",\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":2,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":null,\"pricing_source\":\"base_unit_fallback\",\"pricing_status\":\"fallback\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}},\"unit_price\":2,\"IdLoteSelected\":null}',1.0000,2.000000,'20',2.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,2.00,0.00,0.00,2.00,'[]','[]','[]',NULL,991,NULL,NULL),(60,38,47,'{\"stock\":2,\"id\":47,\"item_id\":47,\"full_description\":\"A000047 - AMOXI + AC CLAVU SUSP ORAL 250 mg + 62.5 mg\\/5 ml x 60 ml (PORTUGAL)\",\"name\":null,\"second_name\":null,\"description\":\"AMOXI + AC CLAVU SUSP ORAL 250 mg + 62.5 mg\\/5 ml x 60 ml (PORTUGAL)\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000047\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":15,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"15.00\",\"aux_sale_unit_price\":\"15.00\",\"image_url\":\"https:\\/\\/boticadiaz.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"2.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":null,\"item_id\":47,\"description\":\"Unidades\",\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":15,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"7750215007204\",\"pricing_source\":\"base_unit_fallback\",\"pricing_status\":\"fallback\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"lot_status\":\"none\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":1,\"presentation\":{\"id\":null,\"item_id\":47,\"description\":\"Unidades\",\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":15,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"7750215007204\",\"pricing_source\":\"base_unit_fallback\",\"pricing_status\":\"fallback\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}},\"unit_price\":15,\"IdLoteSelected\":null}',1.0000,15.000000,'20',15.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',15.000000,15.00,0.00,0.00,15.00,'[]','[]','[]',NULL,992,NULL,NULL),(61,39,773,'{\"stock\":5,\"id\":773,\"item_id\":773,\"full_description\":\"ZITROLAB - AZITROMICINA 200 mg\\/5 ml x 30 ml (LABOFAR)\",\"name\":null,\"second_name\":null,\"description\":\"ZITROLAB - AZITROMICINA 200 mg\\/5 ml x 30 ml (LABOFAR)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":23.5,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"23.50\",\"aux_sale_unit_price\":\"23.50\",\"image_url\":\"https:\\/\\/boticadiaz.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"5.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":null,\"item_id\":773,\"description\":\"Unidades\",\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":23.5,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"7753658002157\",\"pricing_source\":\"base_unit_fallback\",\"pricing_status\":\"fallback\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"lot_status\":\"none\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":4,\"presentation\":{\"id\":null,\"item_id\":773,\"description\":\"Unidades\",\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":23.5,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"7753658002157\",\"pricing_source\":\"base_unit_fallback\",\"pricing_status\":\"fallback\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}},\"unit_price\":23.5,\"IdLoteSelected\":null}',2.0000,23.500000,'20',47.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',23.500000,47.00,0.00,0.00,47.00,'[]','[]','[]',NULL,993,NULL,NULL),(62,39,774,'{\"stock\":1,\"id\":774,\"item_id\":774,\"full_description\":\"AZITROMAC - AZITROMICINA 200 mg\\/5 ml x 30 ml (DELFARMA)\",\"name\":null,\"second_name\":null,\"description\":\"AZITROMAC - AZITROMICINA 200 mg\\/5 ml x 30 ml (DELFARMA)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":24,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"24.00\",\"aux_sale_unit_price\":\"24.00\",\"image_url\":\"https:\\/\\/boticadiaz.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"1.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":null,\"item_id\":774,\"description\":\"Unidades\",\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":24,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"7752301000052\",\"pricing_source\":\"base_unit_fallback\",\"pricing_status\":\"fallback\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"lot_status\":\"none\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":5,\"presentation\":{\"id\":null,\"item_id\":774,\"description\":\"Unidades\",\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":24,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"7752301000052\",\"pricing_source\":\"base_unit_fallback\",\"pricing_status\":\"fallback\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}},\"unit_price\":24,\"IdLoteSelected\":null}',1.0000,24.000000,'20',24.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',24.000000,24.00,0.00,0.00,24.00,'[]','[]','[]',NULL,994,NULL,NULL),(63,40,799,'{\"stock\":5,\"id\":799,\"item_id\":799,\"full_description\":\"AMOXICILINA 250 MG \\/ 5 ML JBE ( FARMINDUSTRIA)\",\"name\":null,\"second_name\":null,\"description\":\"AMOXICILINA 250 MG \\/ 5 ML JBE ( FARMINDUSTRIA)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":10,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"10.00\",\"aux_sale_unit_price\":\"10.00\",\"image_url\":\"https:\\/\\/boticadiaz.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"5.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":7,\"description\":\"Unidad\",\"item_id\":799,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":10,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"7NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"lot_status\":\"none\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":10,\"presentation\":{\"id\":7,\"description\":\"Unidad\",\"item_id\":799,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":10,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"7NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]},\"unit_price\":10,\"IdLoteSelected\":null}',1.0000,10.000000,'20',10.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',10.000000,10.00,0.00,0.00,10.00,'[]','[]','[]',NULL,997,NULL,NULL),(64,40,798,'{\"stock\":5,\"id\":798,\"item_id\":798,\"full_description\":\"metronidazol jarabe 250 mg \\/ 5 ml (portugal)\",\"name\":null,\"second_name\":null,\"description\":\"metronidazol jarabe 250 mg \\/ 5 ml (portugal)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":10,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"10.00\",\"aux_sale_unit_price\":\"10.00\",\"image_url\":\"https:\\/\\/boticadiaz.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"5.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":6,\"description\":\"Unidad\",\"item_id\":798,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":10,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"6NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"lot_status\":\"none\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":6,\"presentation\":{\"id\":6,\"description\":\"Unidad\",\"item_id\":798,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":10,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"6NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]},\"unit_price\":10,\"IdLoteSelected\":null}',1.0000,10.000000,'20',10.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',10.000000,10.00,0.00,0.00,10.00,'[]','[]','[]',NULL,998,NULL,NULL),(65,41,808,'{\"stock\":1,\"id\":808,\"item_id\":808,\"full_description\":\"COLIRIO EYEMO X 8ML\",\"name\":null,\"second_name\":null,\"description\":\"COLIRIO EYEMO X 8ML\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":13,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"editable_sale_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"13.00\",\"aux_sale_unit_price\":\"13.00\",\"image_url\":\"https:\\/\\/boticadiaz.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"1.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":19,\"description\":\"Unidad\",\"item_id\":808,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":13,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"19NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"lot_status\":\"none\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"atc_name\":null,\"formula\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"is_vaccine\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":6,\"presentation\":{\"id\":19,\"description\":\"Unidad\",\"item_id\":808,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":13,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"19NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]},\"unit_price\":13,\"IdLoteSelected\":null}',2.0000,13.000000,'20',26.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',13.000000,26.00,0.00,0.00,26.00,'[]','[]','[]',NULL,1105,NULL,NULL);
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `sale_note_payments` VALUES (1,1,'2025-12-30','01',0,NULL,NULL,NULL,25.00,25.00),(2,2,'2025-12-31','01',0,NULL,NULL,NULL,1.00,49.00),(3,3,'2026-01-18','01',0,NULL,NULL,NULL,5.00,35.00),(4,4,'2026-01-20','01',0,NULL,NULL,NULL,NULL,63.00),(5,5,'2026-01-23','01',0,NULL,NULL,NULL,5.00,25.00),(6,6,'2026-02-01','01',0,NULL,NULL,NULL,NULL,2.50),(7,7,'2026-02-01','01',0,NULL,NULL,NULL,NULL,5.00),(8,8,'2026-02-01','01',0,NULL,NULL,NULL,7.00,3.00),(9,9,'2026-02-01','01',0,NULL,NULL,NULL,0.50,10.50),(10,10,'2026-02-14','01',0,NULL,NULL,NULL,NULL,25.00),(11,11,'2026-02-14','01',0,NULL,NULL,NULL,NULL,25.00),(12,12,'2026-03-05','01',0,NULL,NULL,NULL,NULL,2.00),(13,13,'2026-03-05','01',0,NULL,NULL,NULL,NULL,4.00),(14,14,'2026-03-06','01',0,NULL,NULL,NULL,0.50,15.50),(15,15,'2026-03-06','01',0,NULL,NULL,NULL,NULL,6.00),(16,16,'2026-03-06','01',0,NULL,NULL,NULL,NULL,2.00),(17,17,'2026-03-06','01',0,NULL,NULL,NULL,12.50,7.50),(18,18,'2026-03-06','01',0,NULL,NULL,NULL,2.00,8.00),(19,19,'2026-03-06','01',0,NULL,NULL,NULL,NULL,2.00),(20,20,'2026-03-06','01',0,NULL,NULL,NULL,10.00,10.00),(21,21,'2026-03-06','01',0,NULL,NULL,NULL,25.00,25.00),(22,22,'2026-03-06','01',0,NULL,NULL,NULL,NULL,2.00),(23,23,'2026-03-07','01',0,NULL,NULL,NULL,1.50,3.50),(24,24,'2026-03-07','01',0,NULL,NULL,NULL,2.50,7.50),(25,25,'2026-03-07','01',0,NULL,NULL,NULL,4.00,6.00),(26,26,'2026-03-07','01',0,NULL,NULL,NULL,NULL,2.00),(27,27,'2026-03-07','01',0,NULL,NULL,NULL,3.00,12.00),(28,28,'2026-03-08','01',0,NULL,NULL,NULL,2.50,7.50),(29,29,'2026-03-08','01',0,NULL,NULL,NULL,5.00,5.00),(30,30,'2026-03-08','01',0,NULL,NULL,NULL,6.00,14.00),(31,31,'2026-03-10','01',0,NULL,NULL,NULL,NULL,7.00),(32,32,'2026-03-10','01',0,NULL,NULL,NULL,2.00,8.00),(33,34,'2026-04-13','01',0,NULL,NULL,NULL,NULL,40.00),(34,35,'2026-04-13','01',0,NULL,NULL,NULL,NULL,40.00),(35,36,'2026-04-13','01',0,NULL,NULL,NULL,NULL,40.00),(36,37,'2026-06-12','01',0,NULL,NULL,NULL,NULL,54.00),(37,38,'2026-06-12','01',0,NULL,NULL,NULL,NULL,63.00),(38,39,'2026-06-12','01',0,NULL,NULL,NULL,NULL,71.00),(39,40,'2026-06-18','01',0,NULL,NULL,NULL,NULL,20.00),(40,41,'2026-07-28','01',0,NULL,NULL,NULL,NULL,26.00);
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `seller_point_ledger`
--

CREATE TABLE `seller_point_ledger` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `seller_id` int(10) unsigned NOT NULL,
  `cash_id` int(10) unsigned DEFAULT NULL,
  `shift_type` varchar(10) DEFAULT NULL,
  `sales_net` decimal(12,2) NOT NULL DEFAULT 0.00,
  `points` decimal(12,2) NOT NULL DEFAULT 0.00 COMMENT 'con signo: + earned / +-/ adjustment',
  `reason` varchar(20) NOT NULL DEFAULT 'earned',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `seller_point_ledger_seller_id_created_at_index` (`seller_id`,`created_at`),
  KEY `seller_point_ledger_seller_id_index` (`seller_id`),
  KEY `seller_point_ledger_cash_id_index` (`cash_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `seller_point_ledger`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `seller_reward`
--

CREATE TABLE `seller_reward` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `points_cost` decimal(12,2) NOT NULL DEFAULT 0.00,
  `stock` int(11) DEFAULT NULL COMMENT 'NULL = ilimitado',
  `active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `seller_reward_active_index` (`active`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `seller_reward`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `seller_reward_redemption`
--

CREATE TABLE `seller_reward_redemption` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `seller_id` int(10) unsigned NOT NULL,
  `seller_reward_id` int(10) unsigned NOT NULL,
  `reward_name` varchar(255) NOT NULL,
  `points_cost` decimal(12,2) NOT NULL DEFAULT 0.00,
  `created_by` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `seller_reward_redemption_seller_id_created_at_index` (`seller_id`,`created_at`),
  KEY `seller_reward_redemption_seller_id_index` (`seller_id`),
  KEY `seller_reward_redemption_seller_reward_id_index` (`seller_reward_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `seller_reward_redemption`
--

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `series` VALUES (3,1,'07','FC01',0,NULL,NULL),(4,1,'07','BC01',0,NULL,NULL),(5,1,'08','FD01',0,NULL,NULL),(6,1,'08','BD01',0,NULL,NULL),(7,1,'20','R001',0,NULL,NULL),(8,1,'09','T001',0,NULL,NULL),(9,1,'40','P001',0,NULL,NULL),(10,1,'80','NV01',0,NULL,NULL),(11,1,'04','L001',0,NULL,NULL),(12,1,'U2','NIA1',0,NULL,NULL),(13,1,'U3','NSA1',0,NULL,NULL),(14,1,'U4','NTA1',0,NULL,NULL),(16,1,'03','BA01',0,'2025-12-27 23:56:47','2025-12-27 23:56:47'),(17,1,'01','F001',0,'2025-12-28 00:00:35','2025-12-28 00:00:35');
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `series_configurations` VALUES (1,16,'03','BA01','131','2025-12-28 00:00:01','2025-12-28 00:00:01'),(2,17,'01','F001','5','2025-12-28 00:01:20','2025-12-28 00:01:20');
COMMIT;

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

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

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

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

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

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

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

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

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

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

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

--
-- Table structure for table `specialties`
--

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

--
-- Dumping data for table `specialties`
--

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

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

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

SET autocommit=0;
INSERT INTO `status_orders` VALUES (1,'Pago sin verificar','2025-12-27 23:47:06',NULL),(2,'Pago verificado','2025-12-27 23:47:06',NULL),(3,'Despachado','2025-12-27 23:47:06',NULL),(4,'Confirmado por el cliente','2025-12-27 23:47:06',NULL);
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

SET autocommit=0;
INSERT INTO `system_activity_logs` VALUES (1,NULL,'failed','2025-12-27','23:49:20',NULL,NULL,'179.6.80.165','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2025-12-27 23:49:20','2025-12-27 23:49:20'),(2,1,'login','2025-12-27','23:49:26',1,'App\\Models\\Tenant\\User','179.6.80.165','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2025-12-27 23:49:26','2025-12-27 23:49:26'),(3,1,'companies_soap_send_id','2025-12-27','23:52:21',1,'App\\Models\\Tenant\\Company','179.6.80.165','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2025-12-27 23:52:21','2025-12-27 23:52:21'),(4,1,'companies_soap_type_id','2025-12-27','23:52:21',1,'App\\Models\\Tenant\\Company','179.6.80.165','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2025-12-27 23:52:21','2025-12-27 23:52:21'),(5,1,'companies_soap_send_id','2025-12-27','23:54:27',1,'App\\Models\\Tenant\\Company','179.6.80.165','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2025-12-27 23:54:27','2025-12-27 23:54:27'),(6,1,'companies_soap_username','2025-12-27','23:54:27',1,'App\\Models\\Tenant\\Company','179.6.80.165','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2025-12-27 23:54:27','2025-12-27 23:54:27'),(7,1,'companies_soap_password','2025-12-27','23:54:27',1,'App\\Models\\Tenant\\Company','179.6.80.165','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2025-12-27 23:54:27','2025-12-27 23:54:27'),(8,1,'companies_certificate','2025-12-27','23:54:41',1,'App\\Models\\Tenant\\Company','179.6.80.165','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2025-12-27 23:54:41','2025-12-27 23:54:41'),(9,1,'logout','2025-12-28','00:26:24',1,'App\\Models\\Tenant\\User','179.6.80.165','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2025-12-28 00:26:24','2025-12-28 00:26:24'),(10,2,'login','2025-12-28','00:26:27',2,'App\\Models\\Tenant\\User','179.6.80.165','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2025-12-28 00:26:27','2025-12-28 00:26:27'),(11,2,'login','2025-12-29','22:45:08',2,'App\\Models\\Tenant\\User','45.231.32.149','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2025-12-29 22:45:08','2025-12-29 22:45:08'),(12,2,'login','2025-12-30','20:24:29',2,'App\\Models\\Tenant\\User','45.231.32.149','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2025-12-30 20:24:29','2025-12-30 20:24:29'),(13,2,'login','2025-12-30','22:56:38',2,'App\\Models\\Tenant\\User','45.231.32.149','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2025-12-30 22:56:38','2025-12-30 22:56:38'),(14,2,'login','2025-12-31','16:22:21',2,'App\\Models\\Tenant\\User','45.231.32.133','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2025-12-31 16:22:21','2025-12-31 16:22:21'),(15,2,'login','2025-12-31','21:40:27',2,'App\\Models\\Tenant\\User','45.231.32.133','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2025-12-31 21:40:27','2025-12-31 21:40:27'),(16,2,'login','2026-01-02','18:48:07',2,'App\\Models\\Tenant\\User','45.231.32.133','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-02 18:48:07','2026-01-02 18:48:07'),(17,2,'login','2026-01-02','18:49:52',2,'App\\Models\\Tenant\\User','45.231.32.133','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-02 18:49:52','2026-01-02 18:49:52'),(18,2,'login','2026-01-03','08:43:36',2,'App\\Models\\Tenant\\User','45.231.32.133','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-03 08:43:36','2026-01-03 08:43:36'),(19,2,'login','2026-01-04','11:02:44',2,'App\\Models\\Tenant\\User','45.231.32.133','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-04 11:02:44','2026-01-04 11:02:44'),(20,2,'login','2026-01-05','16:36:57',2,'App\\Models\\Tenant\\User','45.231.32.142','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-05 16:36:57','2026-01-05 16:36:57'),(21,2,'login','2026-01-07','20:26:04',2,'App\\Models\\Tenant\\User','45.231.32.146','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-07 20:26:04','2026-01-07 20:26:04'),(22,2,'login','2026-01-09','22:55:28',2,'App\\Models\\Tenant\\User','45.231.32.146','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-09 22:55:28','2026-01-09 22:55:28'),(23,2,'login','2026-01-12','21:13:26',2,'App\\Models\\Tenant\\User','45.231.32.146','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-12 21:13:26','2026-01-12 21:13:26'),(24,2,'logout','2026-01-12','22:48:24',2,'App\\Models\\Tenant\\User','45.231.32.146','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-12 22:48:24','2026-01-12 22:48:24'),(25,2,'login','2026-01-13','17:39:16',2,'App\\Models\\Tenant\\User','45.231.32.146','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-13 17:39:16','2026-01-13 17:39:16'),(26,2,'login','2026-01-13','22:55:40',2,'App\\Models\\Tenant\\User','45.231.32.146','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-13 22:55:40','2026-01-13 22:55:40'),(27,2,'login','2026-01-14','23:00:50',2,'App\\Models\\Tenant\\User','45.231.32.146','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-14 23:00:50','2026-01-14 23:00:50'),(28,2,'login','2026-01-15','22:12:14',2,'App\\Models\\Tenant\\User','45.231.32.146','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-15 22:12:14','2026-01-15 22:12:14'),(29,2,'login','2026-01-18','17:00:07',2,'App\\Models\\Tenant\\User','45.231.32.146','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-18 17:00:07','2026-01-18 17:00:07'),(30,2,'login','2026-01-18','22:58:39',2,'App\\Models\\Tenant\\User','45.231.32.146','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-18 22:58:39','2026-01-18 22:58:39'),(31,2,'logout','2026-01-18','22:58:55',2,'App\\Models\\Tenant\\User','45.231.32.146','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-18 22:58:55','2026-01-18 22:58:55'),(32,2,'login','2026-01-20','22:19:16',2,'App\\Models\\Tenant\\User','45.231.32.146','WebKit','desktop','Windows','10.0','Chrome','144.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-20 22:19:16','2026-01-20 22:19:16'),(33,2,'login','2026-01-23','17:40:16',2,'App\\Models\\Tenant\\User','45.231.32.133','WebKit','desktop','Windows','10.0','Chrome','144.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-23 17:40:16','2026-01-23 17:40:16'),(34,2,'login','2026-01-23','22:54:14',2,'App\\Models\\Tenant\\User','45.231.32.133','WebKit','desktop','Windows','10.0','Chrome','144.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-23 22:54:14','2026-01-23 22:54:14'),(35,2,'login','2026-01-26','22:56:01',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','144.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-26 22:56:01','2026-01-26 22:56:01'),(36,2,'login','2026-01-28','20:43:14',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','144.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-28 20:43:14','2026-01-28 20:43:14'),(37,2,'logout','2026-01-28','22:51:37',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','144.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-01-28 22:51:37','2026-01-28 22:51:37'),(38,2,'login','2026-02-01','10:48:47',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','144.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-02-01 10:48:47','2026-02-01 10:48:47'),(39,2,'login','2026-02-01','22:54:34',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','144.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-02-01 22:54:34','2026-02-01 22:54:34'),(40,2,'login','2026-02-08','09:19:02',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','144.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-02-08 09:19:02','2026-02-08 09:19:02'),(41,2,'login','2026-02-14','22:31:53',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','144.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-02-14 22:31:53','2026-02-14 22:31:53'),(42,2,'login','2026-02-17','22:38:32',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','144.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-02-17 22:38:32','2026-02-17 22:38:32'),(43,2,'login','2026-02-18','07:28:35',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','144.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-02-18 07:28:35','2026-02-18 07:28:35'),(44,2,'login','2026-02-20','11:06:05',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-02-20 11:06:05','2026-02-20 11:06:05'),(45,2,'login','2026-02-27','20:56:59',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-02-27 20:56:59','2026-02-27 20:56:59'),(46,2,'login','2026-03-01','15:24:31',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-01 15:24:31','2026-03-01 15:24:31'),(47,2,'login','2026-03-01','17:33:06',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-01 17:33:06','2026-03-01 17:33:06'),(48,2,'login','2026-03-01','22:54:35',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-01 22:54:35','2026-03-01 22:54:35'),(49,2,'login','2026-03-02','12:53:07',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-02 12:53:07','2026-03-02 12:53:07'),(50,2,'login','2026-03-02','23:00:33',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-02 23:00:33','2026-03-02 23:00:33'),(51,2,'login','2026-03-03','22:52:38',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-03 22:52:38','2026-03-03 22:52:38'),(52,2,'login','2026-03-04','07:28:19',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-04 07:28:19','2026-03-04 07:28:19'),(53,2,'login','2026-03-04','23:01:00',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-04 23:01:00','2026-03-04 23:01:00'),(54,2,'login','2026-03-05','10:27:15',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-05 10:27:15','2026-03-05 10:27:15'),(55,2,'login','2026-03-05','18:40:41',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-05 18:40:41','2026-03-05 18:40:41'),(56,2,'logout','2026-03-05','22:52:09',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-05 22:52:09','2026-03-05 22:52:09'),(57,2,'login','2026-03-06','08:07:31',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-06 08:07:31','2026-03-06 08:07:31'),(58,2,'login','2026-03-06','14:39:49',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-06 14:39:49','2026-03-06 14:39:49'),(59,2,'login','2026-03-06','19:04:23',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-06 19:04:23','2026-03-06 19:04:23'),(60,2,'login','2026-03-06','22:20:20',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-06 22:20:20','2026-03-06 22:20:20'),(61,2,'logout','2026-03-06','23:00:01',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-06 23:00:01','2026-03-06 23:00:01'),(62,2,'login','2026-03-07','08:22:31',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-07 08:22:31','2026-03-07 08:22:31'),(63,2,'login','2026-03-07','15:29:58',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-07 15:29:58','2026-03-07 15:29:58'),(64,2,'login','2026-03-07','18:16:10',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-07 18:16:10','2026-03-07 18:16:10'),(65,2,'logout','2026-03-07','22:59:02',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-07 22:59:02','2026-03-07 22:59:02'),(66,2,'login','2026-03-08','09:29:40',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-08 09:29:40','2026-03-08 09:29:40'),(67,2,'login','2026-03-08','13:56:17',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-08 13:56:17','2026-03-08 13:56:17'),(68,2,'login','2026-03-08','18:21:21',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-08 18:21:21','2026-03-08 18:21:21'),(69,2,'login','2026-03-08','22:56:59',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-08 22:56:59','2026-03-08 22:56:59'),(70,2,'logout','2026-03-08','22:57:20',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-08 22:57:20','2026-03-08 22:57:20'),(71,2,'login','2026-03-09','10:19:55',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-09 10:19:55','2026-03-09 10:19:55'),(72,2,'login','2026-03-09','13:59:50',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-09 13:59:50','2026-03-09 13:59:50'),(73,2,'login','2026-03-09','18:23:14',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-09 18:23:14','2026-03-09 18:23:14'),(74,2,'login','2026-03-09','22:56:16',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-09 22:56:16','2026-03-09 22:56:16'),(75,2,'login','2026-03-10','15:04:10',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-10 15:04:10','2026-03-10 15:04:10'),(76,2,'login','2026-03-10','18:54:29',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-10 18:54:29','2026-03-10 18:54:29'),(77,2,'login','2026-03-10','18:54:51',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-10 18:54:51','2026-03-10 18:54:51'),(78,2,'login','2026-03-11','08:26:11',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-11 08:26:11','2026-03-11 08:26:11'),(79,2,'login','2026-03-11','14:36:06',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-11 14:36:06','2026-03-11 14:36:06'),(80,2,'login','2026-03-11','22:20:11',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-11 22:20:11','2026-03-11 22:20:11'),(81,2,'login','2026-03-11','22:20:20',2,'App\\Models\\Tenant\\User','45.231.32.152','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-11 22:20:20','2026-03-11 22:20:20'),(82,2,'login','2026-03-12','07:58:16',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-12 07:58:16','2026-03-12 07:58:16'),(83,2,'login','2026-03-12','12:49:05',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-12 12:49:05','2026-03-12 12:49:05'),(84,2,'login','2026-03-12','15:26:06',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','145.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-12 15:26:06','2026-03-12 15:26:06'),(85,2,'login','2026-03-12','20:41:06',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-12 20:41:06','2026-03-12 20:41:06'),(86,2,'login','2026-03-13','22:38:03',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-13 22:38:03','2026-03-13 22:38:03'),(87,2,'logout','2026-03-13','22:38:17',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-13 22:38:17','2026-03-13 22:38:17'),(88,2,'login','2026-03-14','08:48:59',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-14 08:48:59','2026-03-14 08:48:59'),(89,2,'login','2026-03-14','22:56:49',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-14 22:56:49','2026-03-14 22:56:49'),(90,2,'login','2026-03-15','07:06:19',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-15 07:06:19','2026-03-15 07:06:19'),(91,2,'login','2026-03-17','20:03:16',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-17 20:03:16','2026-03-17 20:03:16'),(92,2,'login','2026-03-18','15:48:39',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-18 15:48:39','2026-03-18 15:48:39'),(93,2,'login','2026-03-18','22:55:33',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-18 22:55:33','2026-03-18 22:55:33'),(94,2,'login','2026-03-19','22:44:01',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-19 22:44:01','2026-03-19 22:44:01'),(95,2,'login','2026-03-20','15:26:37',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-20 15:26:37','2026-03-20 15:26:37'),(96,2,'login','2026-03-21','07:32:40',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-21 07:32:40','2026-03-21 07:32:40'),(97,2,'login','2026-03-21','21:24:26',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-21 21:24:26','2026-03-21 21:24:26'),(98,2,'login','2026-03-24','22:51:05',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-24 22:51:05','2026-03-24 22:51:05'),(99,2,'logout','2026-03-24','22:51:17',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-24 22:51:17','2026-03-24 22:51:17'),(100,2,'login','2026-03-25','22:44:19',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-25 22:44:19','2026-03-25 22:44:19'),(101,2,'login','2026-03-28','20:24:43',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-28 20:24:43','2026-03-28 20:24:43'),(102,2,'login','2026-03-31','23:04:47',2,'App\\Models\\Tenant\\User','45.231.32.169','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-03-31 23:04:47','2026-03-31 23:04:47'),(103,2,'login','2026-04-13','18:08:24',2,'App\\Models\\Tenant\\User','45.231.32.153','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-04-13 18:08:24','2026-04-13 18:08:24'),(104,2,'login','2026-04-14','07:55:09',2,'App\\Models\\Tenant\\User','45.231.32.153','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-04-14 07:55:09','2026-04-14 07:55:09'),(105,2,'login','2026-04-15','09:49:04',2,'App\\Models\\Tenant\\User','45.231.32.153','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-04-15 09:49:04','2026-04-15 09:49:04'),(106,2,'login','2026-04-16','09:10:52',2,'App\\Models\\Tenant\\User','45.231.32.190','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-04-16 09:10:52','2026-04-16 09:10:52'),(107,2,'login','2026-04-17','23:03:26',2,'App\\Models\\Tenant\\User','45.231.32.190','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-04-17 23:03:26','2026-04-17 23:03:26'),(108,2,'login','2026-04-18','08:05:20',2,'App\\Models\\Tenant\\User','45.231.32.190','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-04-18 08:05:20','2026-04-18 08:05:20'),(109,2,'login','2026-04-18','22:54:46',2,'App\\Models\\Tenant\\User','45.231.32.190','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-04-18 22:54:46','2026-04-18 22:54:46'),(110,2,'login','2026-04-20','17:26:54',2,'App\\Models\\Tenant\\User','45.231.32.190','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-04-20 17:26:54','2026-04-20 17:26:54'),(111,2,'login','2026-04-21','17:16:41',2,'App\\Models\\Tenant\\User','45.231.32.190','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-04-21 17:16:41','2026-04-21 17:16:41'),(112,2,'login','2026-04-22','22:45:18',2,'App\\Models\\Tenant\\User','45.231.32.190','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-04-22 22:45:18','2026-04-22 22:45:18'),(113,2,'login','2026-04-23','22:55:31',2,'App\\Models\\Tenant\\User','45.231.32.190','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-04-23 22:55:31','2026-04-23 22:55:31'),(114,2,'login','2026-04-25','11:24:09',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-04-25 11:24:09','2026-04-25 11:24:09'),(115,2,'login','2026-04-27','22:55:38',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-04-27 22:55:38','2026-04-27 22:55:38'),(116,2,'login','2026-04-30','08:35:36',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-04-30 08:35:36','2026-04-30 08:35:36'),(117,2,'login','2026-05-06','22:51:31',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-05-06 22:51:31','2026-05-06 22:51:31'),(118,2,'login','2026-05-08','22:57:44',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-05-08 22:57:44','2026-05-08 22:57:44'),(119,2,'failed','2026-05-19','10:01:49',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-05-19 10:01:49','2026-05-19 10:01:49'),(120,2,'login','2026-06-01','09:32:19',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-06-01 09:32:19','2026-06-01 09:32:19'),(121,2,'logout','2026-06-01','09:32:46',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-06-01 09:32:46','2026-06-01 09:32:46'),(122,2,'login','2026-06-01','09:33:23',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-06-01 09:33:23','2026-06-01 09:33:23'),(123,2,'login','2026-06-03','09:22:13',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-06-03 09:22:13','2026-06-03 09:22:13'),(124,2,'login','2026-06-06','07:31:35',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-06-06 07:31:35','2026-06-06 07:31:35'),(125,2,'login','2026-06-08','07:49:23',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-06-08 07:49:23','2026-06-08 07:49:23'),(126,2,'login','2026-06-10','16:40:20',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-06-10 16:40:20','2026-06-10 16:40:20'),(127,2,'login','2026-06-12','13:35:26',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-06-12 13:35:26','2026-06-12 13:35:26'),(128,2,'login','2026-06-14','09:25:35',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-06-14 09:25:35','2026-06-14 09:25:35'),(129,2,'login','2026-06-18','14:56:15',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-06-18 14:56:15','2026-06-18 14:56:15'),(130,2,'login','2026-06-21','14:00:53',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-06-21 14:00:53','2026-06-21 14:00:53'),(131,2,'login','2026-06-22','14:42:42',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-06-22 14:42:42','2026-06-22 14:42:42'),(132,2,'login','2026-06-25','08:49:55',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-06-25 08:49:55','2026-06-25 08:49:55'),(133,2,'login','2026-06-30','10:53:50',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-06-30 10:53:50','2026-06-30 10:53:50'),(134,2,'login','2026-07-01','09:32:39',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-07-01 09:32:39','2026-07-01 09:32:39'),(135,1,'failed','2026-07-02','22:13:39',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-02 22:13:39','2026-07-02 22:13:39'),(136,1,'login','2026-07-02','22:13:43',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-02 22:13:43','2026-07-02 22:13:43'),(137,2,'login','2026-07-16','09:25:44',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-07-16 09:25:44','2026-07-16 09:25:44'),(138,2,'inventory_created','2026-07-16','09:26:32',844,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 09:26:32','2026-07-16 09:26:32'),(139,2,'inventory_created','2026-07-16','10:04:05',845,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 10:04:05','2026-07-16 10:04:05'),(140,2,'login','2026-07-18','13:27:07',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-07-18 13:27:07','2026-07-18 13:27:07'),(141,2,'login','2026-07-21','07:41:22',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-07-21 07:41:22','2026-07-21 07:41:22'),(142,2,'inventory_created','2026-07-21','07:45:56',846,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 07:45:56','2026-07-21 07:45:56'),(143,2,'inventory_created','2026-07-21','07:46:53',847,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 07:46:53','2026-07-21 07:46:53'),(144,2,'login','2026-07-22','12:06:58',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-07-22 12:06:58','2026-07-22 12:06:58'),(145,2,'login','2026-07-23','09:50:43',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-07-23 09:50:43','2026-07-23 09:50:43'),(146,2,'inventory_created','2026-07-23','09:52:07',848,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'items',NULL,NULL,'2026-07-23 09:52:07','2026-07-23 09:52:07'),(147,2,'inventory_created','2026-07-23','09:54:16',849,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'items',NULL,NULL,'2026-07-23 09:54:16','2026-07-23 09:54:16'),(148,2,'inventory_created','2026-07-23','09:56:12',850,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'items',NULL,NULL,'2026-07-23 09:56:12','2026-07-23 09:56:12'),(149,2,'login','2026-07-26','08:13:54',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-07-26 08:13:54','2026-07-26 08:13:54'),(150,2,'login','2026-07-28','08:42:45',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-07-28 08:42:45','2026-07-28 08:42:45'),(151,2,'inventory_created','2026-07-28','08:48:19',851,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'items',NULL,NULL,'2026-07-28 08:48:19','2026-07-28 08:48:19'),(152,2,'login','2026-07-28','23:01:13',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-07-28 23:01:13','2026-07-28 23:01:13'),(153,2,'login','2026-07-29','09:21:13',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-07-29 09:21:13','2026-07-29 09:21:13'),(154,2,'login','2026-07-29','22:57:31',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-07-29 22:57:31','2026-07-29 22:57:31'),(155,2,'logout','2026-07-29','22:57:40',2,'App\\Models\\Tenant\\User','45.231.32.184','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MDD\",\"region_name\":\"Madre de Dios\",\"city_name\":\"Puerto Maldonado\",\"latitude\":\"-12.5895\",\"longitude\":\"-69.1995\",\"timezone\":\"America\\/Lima\"}','2026-07-29 22:57:40','2026-07-29 22:57:40');
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `system_activity_log_types` VALUES ('companies_certificate','Actualización del campo certificado en configuración de empresa'),('companies_name','Actualización del campo nombre en configuración de empresa'),('companies_number','Actualización del campo número en configuración de empresa'),('companies_soap_password','Actualización del campo SOAP Contraseña en configuración de empresa'),('companies_soap_send_id','Actualización del campo SOAP envío en configuración de empresa'),('companies_soap_type_id','Actualización del campo SOAP tipo en configuración de empresa'),('companies_soap_url','Actualización del campo SOAP url envío en configuración de empresa'),('companies_soap_username','Actualización del campo SOAP Usuario en configuración de empresa'),('contract_voided','Anulación de contrato'),('document_voided','Anulación de comprobante (boleta/factura)'),('expense_voided','Anulación de gasto'),('failed','Error de inicio de sesión'),('fixed_asset_purchase_voided','Anulación de compra de activo fijo'),('income_voided','Anulación de ingreso'),('inventory_created','Movimiento/ajuste de inventario'),('inventory_transfer_created','Traslado entre almacenes'),('level_module_access_error','Error de acceso al submódulo (no tiene permiso)'),('login','Iniciar sesión'),('login_lockout','Bloqueo de usuario por exceder límite de intentos permitidos al iniciar sesión'),('logout','Cerrar sesión'),('module_access_error','Error de acceso al módulo (no tiene permiso)'),('order_note_voided','Anulación de nota de pedido'),('payment_method_corrected','Corrección de método de pago'),('purchase_order_voided','Anulación de orden de compra'),('purchase_voided','Anulación de compra'),('quotation_voided','Anulación de cotización'),('sale_note_voided','Anulación de nota de venta');
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `user_mobile_establishments`
--

CREATE TABLE `user_mobile_establishments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `ume_user_establishment_unique` (`user_id`,`establishment_id`),
  KEY `user_mobile_establishments_establishment_id_foreign` (`establishment_id`),
  CONSTRAINT `user_mobile_establishments_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`) ON DELETE CASCADE,
  CONSTRAINT `user_mobile_establishments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `user_mobile_establishments`
--

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_appointments`
--

CREATE TABLE `vet_appointments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `pet_id` int(10) unsigned DEFAULT NULL,
  `owner_id` int(10) unsigned DEFAULT NULL,
  `veterinarian_id` int(10) unsigned DEFAULT NULL,
  `establishment_id` int(10) unsigned DEFAULT NULL,
  `scheduled_at` datetime NOT NULL,
  `duration_minutes` smallint(5) unsigned NOT NULL DEFAULT 30,
  `title` varchar(255) DEFAULT NULL,
  `reason` varchar(255) DEFAULT NULL,
  `status` varchar(255) NOT NULL DEFAULT 'scheduled',
  `notes` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vet_appointments_veterinarian_id_scheduled_at_index` (`veterinarian_id`,`scheduled_at`),
  KEY `vet_appointments_pet_id_index` (`pet_id`),
  KEY `vet_appointments_owner_id_index` (`owner_id`),
  KEY `vet_appointments_veterinarian_id_index` (`veterinarian_id`),
  KEY `vet_appointments_scheduled_at_index` (`scheduled_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vet_appointments`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_boardings`
--

CREATE TABLE `vet_boardings` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `pet_id` int(10) unsigned NOT NULL,
  `owner_id` int(10) unsigned DEFAULT NULL,
  `establishment_id` int(10) unsigned DEFAULT NULL,
  `check_in` date NOT NULL,
  `check_out` date DEFAULT NULL,
  `kennel` varchar(255) DEFAULT NULL,
  `daily_rate` decimal(10,2) NOT NULL DEFAULT 0.00,
  `status` varchar(255) NOT NULL DEFAULT 'active',
  `notes` text DEFAULT NULL,
  `document_id` int(10) unsigned DEFAULT NULL,
  `sale_note_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vet_boardings_status_check_in_index` (`status`,`check_in`),
  KEY `vet_boardings_pet_id_index` (`pet_id`),
  KEY `vet_boardings_owner_id_index` (`owner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vet_boardings`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_breeds`
--

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

--
-- Dumping data for table `vet_breeds`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_consultations`
--

CREATE TABLE `vet_consultations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `pet_id` int(10) unsigned NOT NULL,
  `veterinarian_id` int(10) unsigned DEFAULT NULL,
  `establishment_id` int(10) unsigned DEFAULT NULL,
  `consultation_date` date NOT NULL,
  `type` varchar(20) NOT NULL DEFAULT 'consulta',
  `reason` varchar(255) DEFAULT NULL,
  `weight` decimal(8,2) DEFAULT NULL,
  `temperature` decimal(5,2) DEFAULT NULL,
  `heart_rate` varchar(20) DEFAULT NULL,
  `resp_rate` varchar(20) DEFAULT NULL,
  `general_state` varchar(191) DEFAULT NULL,
  `diarrhea` tinyint(1) DEFAULT NULL,
  `diarrhea_note` varchar(191) DEFAULT NULL,
  `vaccination_status` varchar(20) DEFAULT NULL,
  `deworming_status` varchar(20) DEFAULT NULL,
  `anamnesis` text DEFAULT NULL,
  `diagnosis_text` text DEFAULT NULL,
  `prescription_cie10_id` int(10) unsigned DEFAULT NULL,
  `treatment` text DEFAULT NULL,
  `observations` text DEFAULT NULL,
  `document_id` int(10) unsigned DEFAULT NULL,
  `sale_note_id` int(10) unsigned DEFAULT NULL,
  `appointment_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vet_consultations_pet_id_consultation_date_index` (`pet_id`,`consultation_date`),
  KEY `vet_consultations_pet_id_index` (`pet_id`),
  KEY `vet_consultations_veterinarian_id_index` (`veterinarian_id`),
  KEY `vet_consultations_prescription_cie10_id_index` (`prescription_cie10_id`),
  KEY `vet_consultations_appointment_id_index` (`appointment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vet_consultations`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_consultation_attachments`
--

CREATE TABLE `vet_consultation_attachments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `consultation_id` int(10) unsigned NOT NULL,
  `name` varchar(191) NOT NULL,
  `path` varchar(255) NOT NULL,
  `mime` varchar(100) DEFAULT NULL,
  `kind` varchar(20) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vet_consultation_attachments_consultation_id_index` (`consultation_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vet_consultation_attachments`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_consultation_procedures`
--

CREATE TABLE `vet_consultation_procedures` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `consultation_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `name` varchar(191) NOT NULL,
  `quantity` decimal(12,2) NOT NULL DEFAULT 1.00,
  `unit_price` decimal(12,2) NOT NULL DEFAULT 0.00,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vet_consultation_procedures_consultation_id_index` (`consultation_id`),
  KEY `vet_consultation_procedures_item_id_index` (`item_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vet_consultation_procedures`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_memberships`
--

CREATE TABLE `vet_memberships` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `owner_id` int(10) unsigned NOT NULL,
  `pet_id` int(10) unsigned DEFAULT NULL,
  `plan_name` varchar(255) NOT NULL,
  `price` decimal(10,2) NOT NULL DEFAULT 0.00,
  `period` varchar(255) NOT NULL DEFAULT 'monthly',
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `status` varchar(255) NOT NULL DEFAULT 'active',
  `benefits` text DEFAULT NULL,
  `notes` text DEFAULT NULL,
  `document_id` int(10) unsigned DEFAULT NULL,
  `sale_note_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vet_memberships_status_end_date_index` (`status`,`end_date`),
  KEY `vet_memberships_owner_id_index` (`owner_id`),
  KEY `vet_memberships_pet_id_index` (`pet_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vet_memberships`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_notification_log`
--

CREATE TABLE `vet_notification_log` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `pet_id` int(10) unsigned DEFAULT NULL,
  `owner_id` int(10) unsigned DEFAULT NULL,
  `channel` varchar(20) NOT NULL,
  `destination` varchar(191) NOT NULL,
  `subject` varchar(191) DEFAULT NULL,
  `body` text NOT NULL,
  `ref_type` varchar(40) DEFAULT NULL,
  `ref_id` int(10) unsigned DEFAULT NULL,
  `status` varchar(20) NOT NULL,
  `error` text DEFAULT NULL,
  `sent_at` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vet_notification_log_ref_type_ref_id_index` (`ref_type`,`ref_id`),
  KEY `vet_notification_log_status_index` (`status`),
  KEY `vet_notification_log_pet_id_index` (`pet_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vet_notification_log`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_pets`
--

CREATE TABLE `vet_pets` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `owner_id` int(10) unsigned NOT NULL,
  `name` varchar(255) NOT NULL,
  `species` varchar(60) DEFAULT NULL,
  `species_id` int(10) unsigned DEFAULT NULL,
  `breed` varchar(120) DEFAULT NULL,
  `breed_id` int(10) unsigned DEFAULT NULL,
  `sex` varchar(20) DEFAULT NULL,
  `birthdate` date DEFAULT NULL,
  `weight` decimal(8,2) DEFAULT NULL,
  `color` varchar(60) DEFAULT NULL,
  `microchip` varchar(60) DEFAULT NULL,
  `sterilized` tinyint(1) DEFAULT NULL,
  `photo` varchar(255) DEFAULT NULL,
  `notes` text DEFAULT NULL,
  `allergies` text DEFAULT NULL,
  `chronic_conditions` text DEFAULT NULL,
  `active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vet_pets_owner_id_active_index` (`owner_id`,`active`),
  KEY `vet_pets_owner_id_index` (`owner_id`),
  KEY `vet_pets_species_id_index` (`species_id`),
  KEY `vet_pets_breed_id_index` (`breed_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vet_pets`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_prescriptions`
--

CREATE TABLE `vet_prescriptions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `pet_id` int(10) unsigned NOT NULL,
  `owner_id` int(10) unsigned DEFAULT NULL,
  `veterinarian_id` int(10) unsigned DEFAULT NULL,
  `consultation_id` int(10) unsigned DEFAULT NULL,
  `prescription_date` date NOT NULL,
  `notes` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vet_prescriptions_pet_id_prescription_date_index` (`pet_id`,`prescription_date`),
  KEY `vet_prescriptions_pet_id_index` (`pet_id`),
  KEY `vet_prescriptions_owner_id_index` (`owner_id`),
  KEY `vet_prescriptions_veterinarian_id_index` (`veterinarian_id`),
  KEY `vet_prescriptions_consultation_id_index` (`consultation_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vet_prescriptions`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_prescription_items`
--

CREATE TABLE `vet_prescription_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `prescription_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned DEFAULT NULL,
  `name` varchar(191) NOT NULL,
  `dosage` varchar(255) DEFAULT NULL,
  `route` varchar(255) DEFAULT NULL,
  `frequency` varchar(255) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `instructions` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vet_prescription_items_prescription_id_index` (`prescription_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vet_prescription_items`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_quotes`
--

CREATE TABLE `vet_quotes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `pet_id` int(10) unsigned NOT NULL,
  `owner_id` int(10) unsigned DEFAULT NULL,
  `veterinarian_id` int(10) unsigned DEFAULT NULL,
  `quote_date` date NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'draft',
  `notes` text DEFAULT NULL,
  `total` decimal(12,2) NOT NULL DEFAULT 0.00,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vet_quotes_pet_id_quote_date_index` (`pet_id`,`quote_date`),
  KEY `vet_quotes_pet_id_index` (`pet_id`),
  KEY `vet_quotes_owner_id_index` (`owner_id`),
  KEY `vet_quotes_veterinarian_id_index` (`veterinarian_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vet_quotes`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_quote_items`
--

CREATE TABLE `vet_quote_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `quote_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned DEFAULT NULL,
  `name` varchar(191) NOT NULL,
  `quantity` decimal(12,2) NOT NULL DEFAULT 1.00,
  `unit_price` decimal(12,2) NOT NULL DEFAULT 0.00,
  `subtotal` decimal(12,2) NOT NULL DEFAULT 0.00,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vet_quote_items_quote_id_index` (`quote_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vet_quote_items`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_species`
--

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

--
-- Dumping data for table `vet_species`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_vaccination_records`
--

CREATE TABLE `vet_vaccination_records` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `pet_id` int(10) unsigned NOT NULL,
  `type` varchar(20) NOT NULL DEFAULT 'vaccine',
  `item_id` int(10) unsigned DEFAULT NULL,
  `vaccine_name` varchar(255) NOT NULL,
  `applied_date` date DEFAULT NULL,
  `lot_code` varchar(60) DEFAULT NULL,
  `next_dose_date` date DEFAULT NULL,
  `veterinarian_id` int(10) unsigned DEFAULT NULL,
  `document_id` int(10) unsigned DEFAULT NULL,
  `sale_note_id` int(10) unsigned DEFAULT NULL,
  `observations` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vet_vaccination_records_pet_id_applied_date_index` (`pet_id`,`applied_date`),
  KEY `vet_vaccination_records_pet_id_index` (`pet_id`),
  KEY `vet_vaccination_records_item_id_index` (`item_id`),
  KEY `vet_vaccination_records_next_dose_date_index` (`next_dose_date`),
  KEY `vet_vaccination_records_veterinarian_id_index` (`veterinarian_id`),
  KEY `vet_vaccination_records_type_index` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vet_vaccination_records`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_vaccine_protocols`
--

CREATE TABLE `vet_vaccine_protocols` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `species_id` int(10) unsigned NOT NULL,
  `type` varchar(20) NOT NULL DEFAULT 'vaccine',
  `dose_name` varchar(191) NOT NULL,
  `offset_value` int(11) NOT NULL,
  `offset_unit` varchar(10) NOT NULL DEFAULT 'weeks',
  `offset_from` varchar(10) NOT NULL DEFAULT 'birth',
  `sort_order` int(11) NOT NULL DEFAULT 0,
  `active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vet_vaccine_protocols_species_id_sort_order_index` (`species_id`,`sort_order`),
  KEY `vet_vaccine_protocols_species_id_index` (`species_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vet_vaccine_protocols`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vet_veterinarians`
--

CREATE TABLE `vet_veterinarians` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `cmp` varchar(255) DEFAULT NULL,
  `specialty` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `user_id` int(10) unsigned DEFAULT NULL,
  `active` tinyint(1) NOT NULL DEFAULT 1,
  `work_days` varchar(20) DEFAULT NULL,
  `work_start` time DEFAULT NULL,
  `work_end` time DEFAULT NULL,
  `slot_minutes` int(10) unsigned DEFAULT 30,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vet_veterinarians_active_index` (`active`),
  KEY `vet_veterinarians_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vet_veterinarians`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vital_signs_parameters`
--

CREATE TABLE `vital_signs_parameters` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `specialty_id` int(10) unsigned NOT NULL,
  `paramter_name` varchar(255) NOT NULL,
  `unit` varchar(255) DEFAULT NULL,
  `type` varchar(255) DEFAULT NULL,
  `is_optional` tinyint(1) DEFAULT NULL,
  `order` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vsp_specialty_id` (`specialty_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vital_signs_parameters`
--

SET autocommit=0;
COMMIT;

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

--
-- Table structure for table `vital_signs_values`
--

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

--
-- Dumping data for table `vital_signs_values`
--

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `warehouses` VALUES (1,1,'Almacén Oficina Principal','2025-12-27 23:47:17','2025-12-27 23:47:17');
COMMIT;

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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


