-- Table structure for table `migration_configuration`
--

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

SET autocommit=0;
COMMIT;

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

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

CREATE TABLE `modules` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `value` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `order_menu` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=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','Farmacia',15,'2026-01-03 19:37:53','2026-01-03 19:37:53'),(20,'apps','Apps',13,NULL,NULL),(21,'suscription_app','Suscriptiones',16,NULL,NULL),(22,'production_app','Producción',17,NULL,NULL),(23,'restaurant_app','Restaurante',18,NULL,NULL),(24,'full_suscription_app','Suscripción Servicios SAAS',17,NULL,NULL),(25,'generate_link_app','Generador de link de pago',19,NULL,NULL),(26,'app_2_generator','Generador APP 2.0',20,NULL,NULL),(27,'guia','Guia de remisión',3,NULL,NULL),(28,'dashboard_doctor','Dashboard Doctor',21,NULL,NULL),(29,'dashboard_reception','Dashboard Recepción',22,NULL,NULL),(30,'appointments','Citas',23,NULL,NULL),(31,'patients','Pacientes',24,NULL,NULL),(32,'clinic_administration','Administración',25,NULL,NULL),(33,'laboratories','Laboratorio',7,NULL,NULL),(34,'clinica','Clínica',25,'2026-06-30 12:13:33','2026-06-30 12:13:33');
COMMIT;

-- Dumped table `modules` with 33 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=103 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

SET autocommit=0;
INSERT INTO `module_levels` VALUES (1,'new_document','Nuevo comprobante',1,'tenant.documents.create','/documents/create','NC',NULL,NULL),(2,'list_document','L. Comprobantes',1,NULL,NULL,NULL,NULL,NULL),(3,'document_not_sent','Doc. No enviados',1,NULL,NULL,NULL,NULL,NULL),(4,'document_contingengy','Doc. Contingencia',1,NULL,NULL,NULL,NULL,NULL),(5,'catalogs','Catálogos',1,NULL,NULL,NULL,NULL,NULL),(6,'summary_voided','Resúmenes y Anulaciones',1,NULL,NULL,NULL,NULL,NULL),(7,'quotations','Cotizaciones',1,NULL,NULL,NULL,NULL,NULL),(8,'sale_notes','Notas de Venta',1,'tenant.sale_notes.index','/sale-notes','NV',NULL,NULL),(9,'incentives','Comisiones',1,NULL,NULL,NULL,NULL,NULL),(10,'sale-opportunity','Oportunidad de venta',1,NULL,NULL,NULL,NULL,NULL),(11,'contracts','Contratos',1,NULL,NULL,NULL,NULL,NULL),(12,'order-note','Pedidos',1,'tenant.order_notes.index','/order-notes','PED',NULL,NULL),(13,'technical-service','Servicios de soporte técnico',1,NULL,NULL,NULL,NULL,NULL),(14,'regularize_shipping','CPE pendientes de rectificación',1,NULL,NULL,NULL,NULL,NULL),(15,'pos','Punto de venta',6,'tenant.pos.index','/pos','POS',NULL,NULL),(16,'cash','Caja chica POS',6,NULL,NULL,NULL,NULL,NULL),(17,'ecommerce','Ir a la tienda',10,NULL,NULL,NULL,NULL,NULL),(18,'ecommerce_orders','Pedidos',10,NULL,NULL,NULL,NULL,NULL),(19,'ecommerce_items','Productos tienda virtual',10,NULL,NULL,NULL,NULL,NULL),(20,'ecommerce_tags','Etiquetas',10,NULL,NULL,NULL,NULL,NULL),(21,'ecommerce_promotions','Promociones - Banners',10,NULL,NULL,NULL,NULL,NULL),(22,'ecommerce_settings','Configuración',10,NULL,NULL,NULL,NULL,NULL),(23,'items','Productos',17,'tenant.items.index','/items','PRO',NULL,NULL),(24,'items_packs','Packs',17,NULL,NULL,NULL,NULL,NULL),(25,'items_services','Servicios',17,NULL,NULL,NULL,NULL,NULL),(26,'items_categories','Categorías',17,NULL,NULL,NULL,NULL,NULL),(27,'items_brands','Marcas',17,NULL,NULL,NULL,NULL,NULL),(28,'items_lots','Series',17,NULL,NULL,NULL,NULL,NULL),(29,'clients','Clientes',18,NULL,NULL,NULL,NULL,NULL),(30,'clients_types','Tipos de clientes',18,NULL,NULL,NULL,NULL,NULL),(31,'purchases_create','Nueva Compra',2,'tenant.purchases.create','/purchases/create','NC',NULL,NULL),(32,'purchases_list','Listado',2,NULL,NULL,NULL,NULL,NULL),(33,'purchases_orders','Ordenes de compra',2,NULL,NULL,NULL,NULL,NULL),(34,'purchases_expenses','Gastos diversos',2,NULL,NULL,NULL,NULL,NULL),(35,'purchases_suppliers','Proveedores',2,NULL,NULL,NULL,NULL,NULL),(36,'purchases_quotations','Solicitar cotización',2,NULL,NULL,NULL,NULL,NULL),(37,'purchases_fixed_assets_items','Activos fijos - Ítems',2,NULL,NULL,NULL,NULL,NULL),(38,'purchases_fixed_assets_purchases','Activos fijos - Compras',2,NULL,NULL,NULL,NULL,NULL),(39,'inventory','Movimientos',8,'inventory.index','/inventory','INV',NULL,NULL),(40,'inventory_transfers','Traslados',8,NULL,NULL,NULL,NULL,NULL),(41,'inventory_devolutions','Devoluciones',8,NULL,NULL,NULL,NULL,NULL),(42,'inventory_report_kardex','Reporte kardex',8,NULL,NULL,NULL,NULL,NULL),(43,'inventory_report','Reporte inventario',8,NULL,NULL,NULL,NULL,NULL),(44,'inventory_report_valued_kardex','Kardex valorizado',8,NULL,NULL,NULL,NULL,'2026-01-03 19:37:59'),(45,'users','Usuarios',14,'tenant.users.index','/users','USR',NULL,NULL),(46,'users_establishments','Establecimientos',14,'tenant.establishments.index','/establishments','ES',NULL,NULL),(47,'advanced_retentions','Retenciones',3,NULL,NULL,NULL,NULL,NULL),(48,'advanced_dispatches','Guías de remisión',3,NULL,NULL,NULL,NULL,NULL),(49,'advanced_perceptions','Percepciones',3,NULL,NULL,NULL,NULL,NULL),(50,'advanced_order_forms','Ordenes de pedido',3,NULL,NULL,NULL,NULL,NULL),(51,'account_report','Exportar reporte',9,NULL,NULL,NULL,NULL,NULL),(52,'account_formats','Exportar formatos',9,NULL,NULL,NULL,NULL,NULL),(53,'account_summary','Reporte resumido - Ventas',9,NULL,NULL,NULL,NULL,NULL),(54,'finances_movements','Movimientos',12,NULL,NULL,NULL,NULL,NULL),(55,'finances_incomes','Ingresos',12,NULL,NULL,NULL,NULL,NULL),(56,'finances_unpaid','Cuentas por cobrar',12,NULL,NULL,NULL,NULL,NULL),(57,'finances_to_pay','Cuentas por pagar',12,NULL,NULL,NULL,NULL,NULL),(58,'finances_payments','Pagos',12,NULL,NULL,NULL,NULL,NULL),(59,'finances_balance','Balance',12,NULL,NULL,NULL,NULL,NULL),(60,'finances_payment_method_types','Ingresos y Egresos - M. Pago',12,NULL,NULL,NULL,NULL,NULL),(61,'account_users_settings','Configuración',11,NULL,NULL,NULL,NULL,NULL),(62,'account_users_list','Lista de pagos',11,NULL,NULL,NULL,NULL,NULL),(63,'hotels_reception','Recepción',15,NULL,NULL,NULL,NULL,NULL),(64,'hotels_rates','Tarifas',15,NULL,NULL,NULL,NULL,NULL),(65,'hotels_floors','Pisos',15,NULL,NULL,NULL,NULL,NULL),(66,'hotels_cats','Categorías',15,NULL,NULL,NULL,NULL,NULL),(67,'hotels_rooms','Habitaciones',15,NULL,NULL,NULL,NULL,NULL),(68,'documentary_offices','Oficinas',16,NULL,NULL,NULL,NULL,NULL),(69,'documentary_process','Procesos',16,NULL,NULL,NULL,NULL,NULL),(70,'documentary_documents','Tipos de documento',16,NULL,NULL,NULL,NULL,NULL),(71,'documentary_actions','Acciones',16,NULL,NULL,NULL,NULL,NULL),(72,'documentary_files','Expedientes',16,NULL,NULL,NULL,NULL,NULL),(73,'digemid','Productos',19,NULL,NULL,NULL,'2026-01-03 19:37:53','2026-01-03 19:37:53'),(74,'documentary_requirements','Requerimientos',16,NULL,NULL,NULL,'2026-01-03 19:37:53','2026-01-03 19:37:53'),(75,'inventory_item_extra_data','Datos extra de items',8,NULL,NULL,NULL,NULL,NULL),(76,'configuration_company','Empresa',5,'tenant.companies.create','/companies/create','ME',NULL,NULL),(77,'configuration_advance','Avanzado',5,NULL,NULL,NULL,NULL,NULL),(78,'configuration_visual','Visual',5,NULL,NULL,NULL,NULL,NULL),(79,'advanced_purchase_settlements','Liquidaciones de compra',3,NULL,NULL,NULL,NULL,NULL),(80,'suscription_app_client','Cliente',21,NULL,NULL,NULL,NULL,NULL),(81,'suscription_app_service','Servicio',21,NULL,NULL,NULL,NULL,NULL),(82,'suscription_app_payments','Pagos',21,NULL,NULL,NULL,NULL,NULL),(83,'suscription_app_plans','Planes',21,NULL,NULL,NULL,NULL,NULL),(84,'pos_garage','Venta rapida',6,NULL,NULL,NULL,NULL,NULL),(85,'digemid_health_report','Cumplimiento Regulatorio',19,'reports.compliance.index','/prescriptions/digemid/compliance','CUM','2026-06-30 11:55:41','2026-06-30 11:55:41'),(86,'digemid_doctors','Medicos',19,'tenant.prescriptions.doctors.index','/prescriptions/doctors','MED','2026-06-30 11:55:41','2026-06-30 11:55:41'),(87,'digemid_cie10','CIE 10',19,'tenant.prescriptions.cie10.index','/prescriptions/cie10','C10','2026-06-30 11:55:41','2026-06-30 11:55:41'),(88,'digemid_psychotropics_report','Reporte de Psicotropicos',19,'tenant.prescriptions.reports.index','/prescriptions/reports','RPS','2026-06-30 11:55:41','2026-06-30 11:55:41'),(89,'digemid_purchase_reception','Recepcion de productos farmaceuticos',19,'tenant.reports.purchases.format_09.index','/reports/purchases/format_09','RPF','2026-06-30 11:55:41','2026-06-30 11:55:41'),(90,'items_coupons','Cupones',17,NULL,NULL,NULL,'2026-06-30 11:55:41','2026-06-30 11:55:41'),(91,'veterinary','Veterinaria',28,NULL,NULL,NULL,'2026-06-30 11:55:44','2026-06-30 11:55:44'),(92,'vet_panel','Panel',28,NULL,NULL,NULL,'2026-06-30 11:55:45','2026-06-30 11:55:45'),(93,'vet_pets','Mascotas',28,NULL,NULL,NULL,'2026-06-30 11:55:45','2026-06-30 11:55:45'),(94,'vet_appointments','Citas / Agenda',28,NULL,NULL,NULL,'2026-06-30 11:55:45','2026-06-30 11:55:45'),(95,'vet_boardings','Hospedaje',28,NULL,NULL,NULL,'2026-06-30 11:55:45','2026-06-30 11:55:45'),(96,'vet_reminders','Recordatorios',28,NULL,NULL,NULL,'2026-06-30 11:55:45','2026-06-30 11:55:45'),(97,'vet_memberships','Membresías',28,NULL,NULL,NULL,'2026-06-30 11:55:45','2026-06-30 11:55:45'),(98,'vet_reports','Reportes',28,NULL,NULL,NULL,'2026-06-30 11:55:45','2026-06-30 11:55:45'),(99,'vet_settings','Configuración',28,NULL,NULL,NULL,'2026-06-30 11:55:45','2026-06-30 11:55:45'),(100,'clinica','Clínica',29,NULL,NULL,NULL,'2026-06-30 11:55:45','2026-06-30 11:55:45'),(101,'clinica','Clínica',34,NULL,NULL,NULL,'2026-06-30 12:13:33','2026-06-30 12:13:33'),(102,'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 102 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=389 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),(167,1,1),(168,2,1),(169,3,1),(170,4,1),(171,5,1),(172,6,1),(173,7,1),(174,8,1),(175,9,1),(176,10,1),(177,11,1),(178,12,1),(179,13,1),(180,14,1),(181,15,1),(182,16,1),(183,23,1),(184,24,1),(185,25,1),(186,26,1),(187,27,1),(188,28,1),(189,29,1),(190,30,1),(191,31,1),(192,32,1),(193,33,1),(194,34,1),(195,35,1),(196,36,1),(197,37,1),(198,38,1),(199,39,1),(200,40,1),(201,41,1),(202,42,1),(203,43,1),(204,44,1),(205,45,1),(206,46,1),(207,51,1),(208,52,1),(209,53,1),(210,54,1),(211,55,1),(212,56,1),(213,57,1),(214,58,1),(215,59,1),(216,60,1),(217,61,1),(218,62,1),(219,73,1),(220,75,1),(221,76,1),(222,77,1),(223,78,1),(278,1,4),(279,2,4),(280,3,4),(281,4,4),(282,5,4),(283,6,4),(284,7,4),(285,8,4),(286,9,4),(287,10,4),(288,11,4),(289,12,4),(290,13,4),(291,14,4),(292,1,5),(293,2,5),(294,3,5),(295,4,5),(296,5,5),(297,6,5),(298,7,5),(299,8,5),(300,9,5),(301,10,5),(302,11,5),(303,12,5),(304,13,5),(305,14,5),(306,1,5),(307,2,5),(308,3,5),(309,4,5),(310,5,5),(311,6,5),(312,7,5),(313,8,5),(314,9,5),(315,10,5),(316,11,5),(317,12,5),(318,13,5),(319,14,5),(320,15,5),(321,16,5),(322,73,5),(323,1,5),(324,2,5),(325,3,5),(326,4,5),(327,5,5),(328,6,5),(329,7,5),(330,8,5),(331,9,5),(332,10,5),(333,11,5),(334,12,5),(335,13,5),(336,14,5),(337,15,5),(338,16,5),(339,73,5),(357,1,5),(358,2,5),(359,3,5),(360,4,5),(361,5,5),(362,6,5),(363,7,5),(364,8,5),(365,9,5),(366,10,5),(367,11,5),(368,12,5),(369,13,5),(370,14,5),(371,15,5),(372,16,5),(373,51,5),(374,52,5),(375,53,5),(376,54,5),(377,55,5),(378,56,5),(379,57,5),(380,58,5),(381,59,5),(382,60,5),(383,73,5),(384,15,2),(385,16,2),(386,23,2),(387,25,2),(388,26,2);
COMMIT;

-- Dumped table `module_level_user` with 154 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=160 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

SET autocommit=0;
INSERT INTO `module_user` VALUES (24,29,2),(25,30,2),(26,31,2),(34,29,2),(35,30,2),(36,31,2),(45,29,2),(46,30,2),(47,31,2),(55,29,2),(56,30,2),(57,31,2),(59,1,1),(60,2,1),(61,4,1),(62,5,1),(63,6,1),(64,7,1),(65,8,1),(66,9,1),(67,11,1),(68,12,1),(69,14,1),(70,17,1),(71,18,1),(72,19,1),(73,28,1),(74,29,1),(75,30,1),(76,31,1),(77,32,1),(78,33,1),(86,29,2),(87,30,2),(88,31,2),(96,29,2),(97,30,2),(98,31,2),(100,28,3),(101,30,3),(102,31,3),(103,32,3),(104,28,3),(105,30,3),(106,31,3),(107,32,3),(108,28,3),(109,30,3),(110,31,3),(111,32,3),(112,1,4),(113,1,5),(114,28,6),(115,30,6),(116,31,6),(117,32,6),(118,28,6),(119,30,6),(120,31,6),(121,32,6),(122,1,5),(123,6,5),(124,4,5),(125,19,5),(126,1,5),(127,6,5),(128,4,5),(129,19,5),(130,28,6),(131,30,6),(132,31,6),(133,32,6),(136,29,2),(137,30,2),(138,31,2),(140,28,6),(141,30,6),(142,31,6),(143,32,6),(144,29,2),(145,30,2),(146,31,2),(147,1,5),(148,6,5),(149,4,5),(150,9,5),(151,12,5),(152,19,5),(153,32,5),(154,6,2),(155,29,2),(156,30,2),(157,31,2),(158,34,1),(159,17,2);
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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',
  PRIMARY KEY (`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),('02','Tarjeta de crédito',1,NULL,NULL,0,0,1,NULL),('03','Tarjeta de débito',1,NULL,NULL,0,0,1,NULL),('04','Transferencia',0,NULL,NULL,0,0,1,NULL),('05','Factura a 30 días',0,NULL,30,1,0,1,NULL),('06','Tarjeta crédito visa',1,3.68,NULL,0,0,1,NULL),('07','Contado contraentrega',0,NULL,NULL,0,0,1,NULL),('08','A 30 días',0,NULL,30,1,0,1,NULL),('09','Crédito',1,NULL,NULL,1,0,1,NULL),('10','Contado',0,NULL,NULL,0,1,1,NULL);
COMMIT;

-- Dumped table `payment_method_types` with 10 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 CHECK (json_valid(`payments`)),
  `series` varchar(255) NOT NULL,
  `exchange_rate` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`exchange_rate`)),
  `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 CHECK (json_valid(`contact`)),
  `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=263 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,'2026-01-03 19:37:58','2026-01-03 19:37:58',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(2,'customers','1','27697739','VILLANUEVA RUIZ, ROGELIO','1957-10-14','M',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-01-05 08:34:59','2026-01-05 08:34:59',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(3,'customers','1','46793248','ODALIS MALCA MALCA','1992-02-04','F',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-01-05 08:49:45','2026-01-05 08:49:45',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(4,'customers','1','46700842','MENDOZA VALLADOLID, RUT','1983-07-18','F',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-01-05 08:54:22','2026-01-05 08:54:22',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(5,'customers','1','33570153','LARA LEON, LIDIA','1952-03-29','F',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-01-05 09:06:20','2026-01-05 09:06:20',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(6,'customers','1','48355714','CENTURION ROJAS, LUZ ANA','1995-02-07','F',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-01-05 09:10:16','2026-01-05 09:10:16',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(7,'customers','1','44788798','ALFARO MIRANDA, EDINSON YONI','1980-07-29','M',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-01-05 09:12:07','2026-01-05 09:12:07',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(8,'customers','1','33670277','MIRANDA VILLEGAS, WILSON','1986-01-07','M',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-01-05 09:18:54','2026-01-05 09:18:54',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(9,'customers','1','92099021','Milton campos delgado','2020-11-07','M',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-01-05 10:43:15','2026-01-05 10:43:15',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(10,'customers','1','76305946','DELGADO CERNA, KATERINI MASSIEL','2003-03-15','F',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-01-05 10:43:59','2026-01-05 10:43:59',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(11,'customers','1','47640631','TORRES CHAQUILA, REYNER','1993-03-07','M',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-01-05 13:38:15','2026-01-05 13:38:15',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(12,'customers','1','03216963','LABAN REYES, ASUNCION','1966-10-10','F',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-01-05 16:12:25','2026-01-05 16:12:25',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(13,'customers','1','33588227','HERRERA QUIROZ, ROSALIA','1966-05-08','F',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-01-05 16:14:25','2026-01-05 16:14:25',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(14,'customers','1','45838080','SANCHEZ CONSTANTINO, ELFERES','1986-05-26','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'949023793',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-05 17:52:24','2026-01-05 17:52:24',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(15,'customers','1','76057339','PALOMINO VEGA, ANETTE','2000-09-12','M',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-01-05 19:25:18','2026-01-05 19:25:18',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(16,'customers','1','47059334','VASQUEZ VASQUEZ, CHERLI ARACELI','1991-05-07','F',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-01-05 19:50:58','2026-01-05 19:50:58',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(17,'customers','1','46142015','RISCO ABAD, PAOLA JACKELIN','1989-04-21','F',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-01-06 10:21:32','2026-01-06 10:21:32',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(18,'customers','1','46229928','SALAZAR CHILON, FREDY JHON','1990-04-11','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'955649435',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-06 15:06:59','2026-01-06 15:06:59',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(19,'customers','1','43268293','TORRES MERA, ALAN LELIS','1985-09-14','M',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-01-06 15:25:53','2026-01-06 15:25:53',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(20,'customers','1','47042951','MAS BACALLA, ALDO','1992-05-17','M',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-01-06 18:16:15','2026-01-06 18:16:15',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(21,'customers','1','92379785','Iker AMIR FLORES DIAZ','2021-05-28','M',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-01-07 13:33:10','2026-01-07 13:33:10',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(22,'customers','1','45219953','CHINGO OLIVERA, LOYDA','1987-03-11','F',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-01-07 15:41:31','2026-01-07 15:41:31',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(23,'customers','1','09510103','VEGA GONZALES, DOMINGO JESUS','1967-07-23','M',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-01-07 18:33:57','2026-01-07 18:33:57',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(24,'customers','1','33587266','VARGAS SANCHEZ, MARGARITA','1974-07-01','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'950293279',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-08 15:11:55','2026-01-08 15:11:55',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(25,'customers','1','26617043','VALDEZ DE SAMBRANO, MARIA CATALINA','1958-03-22','F',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-01-08 15:55:14','2026-01-08 15:55:14',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(26,'customers','1','41611135','CHINGO OLIVERA, NELSON','1978-01-02','M',NULL,NULL,NULL,'PE',NULL,'01','0107','010701',NULL,NULL,NULL,NULL,NULL,'901419866',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-08 16:10:37','2026-01-08 16:10:37',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(27,'customers','1','33584913','MONTENEGRO CARRASCO, MARINA','1954-03-04','M',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-01-08 16:12:53','2026-01-08 16:12:53',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(28,'customers','1','16473810','VERONA YAFAC, ROSA EDITH','1965-12-06','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'988321643',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-08 19:22:25','2026-01-08 19:22:25',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(29,'customers','1','43467542','CORONEL CARRANZA, SINDY ARACELY','1986-02-20','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'923456345',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-08 20:17:14','2026-01-08 20:17:14',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(30,'customers','1','27673320','DELGADO REQUEJO, TRIGIDIA MONICA','1956-11-22','F',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-01-09 08:21:26','2026-01-09 08:21:26',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(31,'customers','1','41862647','LINAREZ CHAVEZ, MANUEL','1983-04-02','M',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-01-09 08:25:39','2026-01-09 08:25:39',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(32,'customers','1','43473391','GIL VILLALOBOS, BARTOLOME','1986-01-20','M',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-01-10 20:35:32','2026-01-10 20:35:32',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(33,'customers','1','18821290','CHUQUIPOMA MARTINEZ, LUIS MANUEL','1962-09-11','M',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-01-11 13:15:39','2026-01-11 13:15:39',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(34,'customers','1','47671976','COLLANTES LINGAN, JARLIN ALY','1993-03-19','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'997206443',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-12 10:05:25','2026-01-12 10:05:25',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(35,'customers','1','41157142','CORONEL CARRANZA, FRANK','1978-07-04','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'949564230',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-13 07:06:05','2026-01-13 07:06:05',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(36,'customers','1','33564321','PORTILLA VELASQUEZ, ISABEL MARUJA','1963-02-11','F',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-01-14 11:10:43','2026-01-14 11:10:43',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(37,'customers','1','27748089','BECERRA CARRASCO, EDWAR','1975-08-19','M',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-01-14 20:48:54','2026-01-14 20:48:54',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(38,'customers','1','61655496','Leonel Sanchez Flores','2010-07-23','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'940487518',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-15 12:07:49','2026-01-15 12:07:49',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(39,'customers','1','44934159','SANCHEZ SANTA CRUZ, WILLIAN CESAR','1982-01-20','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'940487518',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-15 12:10:23','2026-01-15 12:10:23',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(40,'customers','1','63397108','Escarlet camily ramirez vela','2012-01-09','F',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-01-15 14:09:21','2026-01-15 14:09:21',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(41,'customers','1','72238372','VELA HURTADO, CARMELITA','1992-01-01','F',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-01-15 14:10:21','2026-01-15 14:10:21',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(42,'customers','1','33560819','GUERRERO CHUMACERO, CARLOS ELI','1952-11-11','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-16 13:59:24','2026-01-16 13:59:24',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(43,'customers','1','33561748','SALAZAR SAGASTIZABAL, MARIA DEL CARMEN','1951-07-20','F',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-01-16 18:07:34','2026-01-16 18:07:34',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(44,'customers','1','33593058','CUMBIA WAGIT, WALTER','1966-08-03','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'916419888',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-17 14:01:10','2026-01-17 14:01:10',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(45,'customers','1','42614960','VILLALOBOS GUERRERO, GABY MARILI','1981-10-19','F',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-01-17 15:12:58','2026-01-17 15:12:58',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(46,'customers','1','33567082','FERNANDEZ ROJAS, MARIA LUCY','1962-06-17','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'938666185',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-17 15:32:03','2026-01-17 15:32:03',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(47,'customers','1','33566135','MORALES VALVERDE, LUZ AMPARO','1960-03-09','F',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-01-17 18:14:44','2026-01-17 18:14:44',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(48,'customers','1','93835884','Eithan joan davila tuesta','2024-05-16','M',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-01-20 12:06:14','2026-01-20 12:06:14',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(49,'customers','1','73439325','TUESTA FLORES, KELLY RAQUEL','1998-03-27','F',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-01-20 12:08:11','2026-01-20 12:08:11',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(50,'customers','1','33585988','CHUQUILIN GOMEZ, JOVITA ISABEL','1969-11-19','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'955747645',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-20 14:08:17','2026-01-20 14:08:17',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(51,'customers','1','46866590','VILCHEZ CHUQUILIN, JESSICA CATALINA','1991-06-03','F',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-01-20 14:11:37','2026-01-20 14:11:37',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(52,'customers','1','16544782','SANTISTEBAN VALDERA, JOSE JORGE','1966-07-05','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'913917716',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-21 17:53:51','2026-01-21 17:53:51',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(53,'customers','1','32867296','ROJAS VALDIVIEZO, CARMEN ROSA','1957-04-05','F',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-01-21 18:51:35','2026-01-21 18:51:35',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(54,'customers','1','75313689','CASTAÑEDA TERRONES, JOISER ARACELY','1997-09-30','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'965476974',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-21 19:50:54','2026-01-21 19:50:54',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(55,'customers','1','33586633','VISLAO RODAS, MABI','1973-06-06','F',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-01-22 13:18:36','2026-01-22 13:18:36',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(56,'customers','1','33592103','MONTENEGRO VERA, HORTENCIA MARITIZ','1963-08-20','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'931407104 -966786395',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-22 13:27:18','2026-01-22 13:27:18',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(57,'customers','1','91238438','Zaid lavado delgado','2019-03-18','M',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-01-23 10:45:25','2026-01-23 10:45:25',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(58,'customers','1','44158112','LAVADO TRUJILLO, DANTE NOHEL','1986-09-12','M',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-01-23 10:46:02','2026-01-23 10:46:02',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(59,'customers','1','62004185','Leiter ivan pizango wachapa','2010-05-13','M',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-01-23 11:16:59','2026-01-23 11:16:59',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(60,'customers','1','44451789','WACHAPA IMPI, AYDA','1987-08-10','F',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-01-23 11:18:06','2026-01-23 11:18:06',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(61,'customers','1','33573673','CORDOVA SALAZAR, ELIGIO','1966-12-16','M',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-01-23 12:07:07','2026-01-23 12:07:07',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(62,'customers','1','41419966','CIEZA IRRAZABAL, FERNANDO','1981-04-29','M',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-01-24 19:10:02','2026-01-24 19:10:02',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(63,'customers','1','32771977','QUEZADA NECIOSUP, ANA NORA','1961-09-02','F',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-01-25 12:07:47','2026-01-25 12:07:47',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(64,'customers','1','32971649','QUEZADA NECIOSUP, JUAN CARLOS','1972-10-20','M',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-01-25 12:10:51','2026-01-25 12:10:51',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(65,'customers','1','33586592','MIRANDA ROMERO, OLGA','1970-04-20','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010206',NULL,NULL,NULL,NULL,NULL,'910585584',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-26 12:40:37','2026-01-26 12:40:37',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(66,'customers','1','33587597','MIRANDA ROMERO MARTA','1974-01-12','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010206',NULL,NULL,NULL,NULL,NULL,'910585584',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-26 12:44:06','2026-01-26 12:44:06',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(67,'customers','1','33562301','PAUCAR DE VASQUEZ, MARIA ELVIA','1945-04-04','F',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-01-26 14:56:05','2026-01-26 14:56:05',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(68,'customers','1','03383875','CHIROQUE MARCHENA, MARIA RICARDINA','1978-06-21','F',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-01-26 17:11:17','2026-01-26 17:11:17',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(69,'customers','1','41716906','VALLADOLID PEREZ, JANNETH DEL PILAR','1982-11-30','F',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-01-26 17:55:50','2026-01-26 17:55:50',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(70,'customers','1','27284941','JULCA GUEVARA, VILMA IRIS','1976-08-12','F',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-01-27 16:56:53','2026-01-27 16:56:53',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(71,'customers','1','27271078','CUCHUPOMA HORNA, CECILIO','1943-02-05','M',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-01-27 17:29:23','2026-01-27 17:29:23',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(72,'customers','1','40023274','COTRINA SALAZAR, AURORA','1978-11-20','F',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-01-27 17:33:45','2026-01-27 17:33:45',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(73,'customers','1','00000000','ANTIOLIDA VASQUEZ RAMIREZ','1948-04-17','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'918324321',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-28 11:09:25','2026-01-28 11:09:25',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(74,'customers','1','71817739','DIAZ VASQUEZ, VICTOR LEONARDO','1999-11-29','M',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-01-29 19:03:50','2026-01-29 19:03:50',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(75,'customers','1','72675556','ZÚÑIGA MONTENEGRO, FANNY ELIZABETH','1993-11-20','F',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-01-30 21:20:12','2026-01-30 21:20:12',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(76,'customers','1','16798635','SANCHEZ QUIROZ, KARINA JANNETH','1979-12-31','F',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-01-30 21:33:30','2026-01-30 21:33:30',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(77,'customers','1','44217558','GUEVARA ABANTO, ARMANDINA','1975-10-07','F',NULL,NULL,NULL,'PE',NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'930791807',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-02 14:07:04','2026-02-02 14:07:04',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(78,'customers','1','33580802','DEKENTAI SAMEKASH, JOSE','1957-09-05','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010205',NULL,NULL,NULL,NULL,NULL,'995500296',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-03 15:00:57','2026-02-03 15:00:57',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(79,'customers','1','27140117','OBANDO PRETEL, JUAN ANTONIO','1962-08-22','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'942821500',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-04 13:43:53','2026-02-04 13:43:53',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(80,'customers','1','43231469','LOPEZ LEONARDO, JULIA','1940-10-10','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'910262456',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-04 16:47:45','2026-02-04 16:47:45',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(81,'customers','1','47075070','UBILLUS VERONA, ERIKA LOURDES','1991-10-29','F',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-02-04 20:16:06','2026-02-04 20:16:06',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(82,'customers','1','27739740','CERNA PEREZ, EULALIA','1973-04-02','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'966811373',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-05 15:07:45','2026-02-05 15:07:45',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(83,'customers','1','45422724','CRUZ ORDINOLA, WILMER','1971-02-20','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'938269874',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-06 08:36:19','2026-02-06 08:36:19',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(84,'customers','1','33571752','PEREZ DE RAMIREZ, YNELDA','1959-06-09','F',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-02-06 15:11:24','2026-02-06 15:11:24',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(85,'customers','1','73533642','GUEVARA FERNANDEZ, JHOVER','1995-10-13','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'964949185',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-09 16:39:49','2026-02-09 16:39:49',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(86,'customers','1','33576096','VASQUEZ URIARTE, AMADO','1952-10-22','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'945202160',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-12 10:53:45','2026-02-12 10:53:45',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(87,'customers','1','33594953','MONDRAGON COTRINA, ANUNCIACION ABDON','1969-03-25','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'914925225',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-12 17:24:45','2026-02-12 17:24:45',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(88,'customers','1','33562307','REVILLA SALINAS, ANTONIO','1945-06-16','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-17 20:35:31','2026-02-17 20:35:31',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(89,'customers','1','18030270','REVILLA CORREA, SARA VIOLETA','1971-06-11','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-17 20:37:52','2026-02-17 20:37:52',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(90,'customers','1','93643844','Jesús Neira becerra','2023-12-07','M',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-02-18 11:01:41','2026-02-18 11:01:41',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(91,'customers','1','76626570','BECERRA BOBADILLA, LISET YULIT','2001-04-30','F',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-02-18 11:05:30','2026-02-18 11:05:30',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(92,'customers','1','33560040','MENDOZA JULCA, JUAN','1958-08-23','M',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-02-18 13:58:02','2026-02-18 13:58:02',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(93,'customers','1','41420631','RAMIREZ IRENE, SEGUNDO JUAN','1980-03-31','M',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-02-20 09:55:44','2026-02-20 09:55:44',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(94,'customers','1','27376164','DELGADO DE MEDINA, LUZ ARACELI','1953-08-08','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'999358688',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-21 17:34:00','2026-02-21 17:34:00',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(95,'customers','1','47187932','MACHACA YUJRA, AMALIA SONIA','1990-01-09','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-21 20:31:23','2026-02-21 20:31:23',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(96,'customers','1','93976768','VANIA ALESSIA SALDAÑA SEGURA','2024-09-13','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'924311447',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-23 10:31:46','2026-02-23 10:31:46',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(97,'customers','1','41687565','DIAZ HERRERA, SEGUNDO SALOMON','1979-04-02','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010206',NULL,NULL,NULL,NULL,NULL,'953304338',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-23 12:48:40','2026-02-23 12:48:40',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(98,'customers','1','33575604','NINAQUISPE LINGAN, FERNANDO','1953-08-08','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'945992194',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-23 13:26:47','2026-02-23 13:26:47',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(99,'customers','1','24698548','CCAHUANTICO MENDOZA, SEVERINA','1970-11-07','F',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-02-23 16:31:48','2026-02-23 16:31:48',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(100,'customers','1','04805622','ESPIRILLA MANYA, JOSE','2026-08-19','M',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-02-23 18:01:40','2026-02-23 18:01:40',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(101,'customers','1','43398039','LA TORRE CIEZA, GRIMALDO','1981-04-04','M',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-02-23 21:19:20','2026-02-23 21:19:20',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(102,'customers','1','75698596','DELGADO ROJAS, CARLOS MANUEL','2005-04-28','M',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-02-24 17:02:37','2026-02-24 17:02:37',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(103,'customers','1','74777720','ESPIRILLA CCAHUANTICO, JULISA','2003-08-13','F',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-02-24 17:10:54','2026-02-24 17:10:54',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(104,'customers','1','07484759','HUARIPATA HERRERA, JAVIER','1962-02-10','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'937343282',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-27 13:57:41','2026-02-27 13:57:41',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(105,'customers','1','19258927','FLORES PRETEL, JUDITH','1975-09-04','F',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-02-27 18:24:18','2026-02-27 18:24:18',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(106,'customers','1','41310295','VASQUEZ BURGA, JOSE RICARDO','1981-01-17','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'972823946',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-28 12:14:21','2026-02-28 12:14:21',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(107,'customers','1','15762004','GONZALES AÑORGA, CARLOS MAXIMO','1962-02-20','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'996518650',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-28 17:39:41','2026-02-28 17:39:41',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(108,'customers','1','33670023','HUAMAN MANAYAY, NATIVIDAD','1952-09-10','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-02 13:03:37','2026-03-02 13:03:37',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(109,'customers','1','33673012','ROJAS VERGARA, MIGUEL','1972-12-03','M',NULL,NULL,NULL,'PE',NULL,'01','0107',NULL,NULL,NULL,NULL,NULL,NULL,'941977074',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-02 16:06:26','2026-03-02 16:06:26',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(110,'customers','1','33674112','JULCA PALOMINO, BERTILDA','1953-03-20','F',NULL,NULL,NULL,'PE',NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'973422569',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-03 18:32:00','2026-03-03 18:32:00',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(111,'customers','1','16533515','MERINO BANCES, FLORENCIO GERMAN','1961-10-17','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'931200727',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-07 12:07:24','2026-03-07 12:07:24',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(112,'customers','1','33568399','BANCES ROMERO, JUAN JOSE','1960-12-03','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'900661587',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-10 11:17:30','2026-03-10 11:17:30',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(113,'customers','1','44386098','CABRERA PAISIG, SALOMON','1983-11-23','M',NULL,NULL,NULL,'PE',NULL,'01','0102',NULL,NULL,NULL,NULL,NULL,NULL,'918214152',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-10 12:59:28','2026-03-10 12:59:28',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(114,'customers','1','27416465','FERNANDEZ GALVEZ, JORGE','1972-07-22','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'942226061',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-10 13:02:40','2026-03-10 13:02:40',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(115,'customers','1','33584027','RAMIREZ SERRANO, CIRO ALFONSO','1945-08-01','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'931088526',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-10 20:17:58','2026-03-10 20:17:58',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(116,'customers','1','33567354','CAMPOS VASQUEZ, AUGUSTO','1957-09-01','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'941977628',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-10 20:21:41','2026-03-10 20:21:41',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(117,'customers','1','33568312','HIDALGO GUEVARA, HUMBERTO','1956-02-14','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'904356126',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-10 20:29:17','2026-03-10 20:29:17',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(118,'customers','1','45187585','CUBAS HERRERA, MARIA ELENA','1973-12-27','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010203',NULL,NULL,NULL,NULL,NULL,'996835243',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-12 13:42:41','2026-03-12 13:42:41',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(119,'customers','1','33567709','LEON GARCIA, LAURA','1949-11-17','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'945251112',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-12 17:41:29','2026-03-12 17:41:29',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(120,'customers','1','00000001','LIAM COLLAZOS SANCHEZ','2015-04-10','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-14 20:27:45','2026-03-14 20:27:45',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(121,'customers','1','43757793','SANCHEZ NUÑEZ, LILA','1986-05-20','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-14 20:28:26','2026-03-14 20:28:26',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(122,'customers','1','45323473','CORONEL RAFAEL, FLOR MIRIAM','1987-03-02','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010202',NULL,NULL,NULL,NULL,NULL,'951653975',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-17 16:34:34','2026-03-17 16:34:34',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(123,'customers','1','40359692','GUERRERO BERNAL, RUTH ELIZABETH','1979-08-20','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010206',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-18 17:27:35','2026-03-18 17:27:35',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(124,'customers','1','33565470','PERALTA LARA, DELICIA JUSTINA','1943-09-26','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'901144715',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-22 11:31:54','2026-03-22 11:31:54',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(125,'customers','1','60058020','ANASTACIO CASTRO, LUIS RAIHT','2006-01-25','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'966057097',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-23 09:37:58','2026-03-23 09:37:58',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(126,'customers','1','71338264','CRUZ RAMOS, KATHERINE YESSENIA','2026-04-22','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-23 15:16:45','2026-03-23 15:16:45',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(127,'customers','1','80293789','VELA PEREZ, ROGELIA','1962-09-16','F',NULL,NULL,NULL,'PE',NULL,'01','0102',NULL,NULL,NULL,NULL,NULL,NULL,'944869189',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-23 16:00:45','2026-03-23 16:00:45',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(128,'customers','1','75788051','OCUPA CARRASCO, JAIME OMAR','2000-12-12','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-24 13:58:57','2026-03-24 13:58:57',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(129,'customers','1','62064504','EVELYN TAPIA CHILON','2009-08-15','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010203',NULL,NULL,NULL,NULL,NULL,'926025388',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-25 13:58:44','2026-03-25 13:58:44',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(130,'customers','1','33590296','ALBERCA RIVERA, JOSE ANIBAL','1974-03-27','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'937353345',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-25 17:07:53','2026-03-25 17:07:53',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(131,'customers','1','42892481','CAMPOS JULCA, OLGA','1981-10-25','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'930675505',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-26 15:35:02','2026-03-26 15:35:02',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(132,'customers','1','80300131','JULCA PALOMINO, UMBELINA','1964-07-05','F',NULL,NULL,NULL,'PE',NULL,'01','0107','010705',NULL,NULL,NULL,NULL,NULL,'920243127',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-27 13:22:39','2026-03-27 13:22:39',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(133,'customers','1','43826709','CHINGO OLIVERA, NOEMI','1984-03-25','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-28 10:26:40','2026-03-28 10:26:40',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(134,'customers','1','33585855','MENDOZA TORRES, VILMA','1968-11-10','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010206',NULL,NULL,NULL,NULL,NULL,'962893045',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-28 13:46:57','2026-03-28 13:46:57',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(135,'customers','1','41518574','CAMPOS VARGAS, GUILLERMINA','1982-10-11','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'927229816',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-28 15:04:20','2026-03-28 15:04:20',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(136,'customers','1','33572367','RODRIGUEZ BECERRA, JORGE','1963-11-25','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'950629578',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-29 10:58:14','2026-03-29 10:58:14',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(137,'customers','1','33670798','CARHUATANTA MOSQUEDA, MARGOT','1969-09-04','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'945512375',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-29 12:09:21','2026-03-29 12:09:21',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(138,'customers','1','74499850','PANDURO VASQUEZ, LUTGER','1996-09-01','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-30 15:51:35','2026-03-30 15:51:35',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(139,'customers','1','47092714','MEJIA BURGA, DILSON JAMES','1990-06-10','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-30 18:59:26','2026-03-30 18:59:26',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(140,'customers','1','17547063','GUEVARA VALERA, CARLOS','1939-11-02','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-31 08:58:06','2026-03-31 08:58:06',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(141,'customers','1','41866892','CHAPOÑAN ALVAREZ, HILDA LISGOT','1983-05-14','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-31 17:58:32','2026-03-31 17:58:32',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(142,'customers','1','78338428','LEVY CHAPOÑAN ERIKA AYELETH','2013-11-25','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-31 18:01:05','2026-03-31 18:01:05',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(143,'customers','1','77072026','VERA INFANTE, HARRINSON SEBASTIAN','1999-12-27','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-31 18:03:06','2026-03-31 18:03:06',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(144,'customers','1','40762003','ZULUETA QUIROZ, SARITA MADAI','1980-10-17','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-31 18:35:16','2026-03-31 18:35:16',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(145,'customers','1','45592944','GUEVARA NAUCA, ROSABEL','1958-08-30','F',NULL,NULL,NULL,'PE',NULL,'01','0107','010703',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-06 10:39:41','2026-04-06 10:39:41',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(146,'customers','1','71499273','ALTAMIRANO TOCAS, WILIAN ABEL','1995-07-23','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'931826159',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-06 16:01:47','2026-04-06 16:01:47',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(147,'customers','1','42445579','LEON DIAZ, RICHARD CONSTANTINO','1979-03-30','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'978042567',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-08 21:07:43','2026-04-08 21:07:43',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(148,'customers','1','27713602','RIVERA MEDINA, JOSE HERMIGRANDO','1970-03-25','M',NULL,NULL,NULL,'PE',NULL,'01','0107','010701',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-10 19:47:07','2026-04-10 19:47:07',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(149,'customers','1','33670002','FERNANDEZ SILVA, ELSA','1967-10-05','F',NULL,NULL,NULL,'PE',NULL,'01','0107','010701',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-11 18:04:01','2026-04-11 18:04:01',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(150,'customers','1','72742436','RODRIGUEZ VERA, JHONATAN EDUARDO','1994-04-26','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-15 14:59:54','2026-04-15 14:59:54',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(151,'customers','1','33593203','FERNANDEZ DE FLORES, JUANA','1955-02-12','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'950371487',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-16 12:00:45','2026-04-16 12:00:45',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(152,'customers','1','01057599','SIAVICHAG MENDEZ LAURA','1993-10-24','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010202',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 15:00:38','2026-04-16 15:00:38',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(153,'customers','1','33333333','POLLO RAMOS JOSUE KALEC','2014-10-20','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',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 18:53:28','2026-04-16 18:53:28',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(154,'customers','1','93674906','Twist Printers, LLC','2024-01-05','M',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-17 12:41:07','2026-04-17 12:41:07',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(155,'customers','1','44298898','SOBERON LINARES, ROSA','1986-12-25','F',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-17 12:41:52','2026-04-17 12:41:52',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(156,'customers','1','75100970','RODRIGUEZ DIAZ, CINTHIA KATHERINE','2000-04-16','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'944559645',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-17 12:43:49','2026-04-17 12:43:49',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(157,'customers','1','33593092','FLORES SILVA, FLOR BILA','1975-05-30','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'937363016',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-17 14:01:17','2026-04-17 14:01:17',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(158,'customers','1','93674905','RICO SOBERON LIAM FABRICIO','2024-12-25','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'93674906',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-17 16:00:01','2026-04-17 16:00:01',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(159,'customers','1','79369358','LINO MENDOZA, ERNESTO ADHEMIR','2015-10-28','M',NULL,NULL,NULL,'PE',NULL,'01',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-18 17:33:14','2026-04-18 17:33:14',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(160,'customers','1','74696364','MENDOZA RIVERA, SALLY MAYLIN','1995-08-17','F',NULL,NULL,NULL,'PE',NULL,'01',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-18 17:34:04','2026-04-18 17:34:04',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(161,'customers','1','42922517','REQUEJO CORDOVA, SILVIA JANETH','1985-04-03','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-18 19:13:14','2026-04-18 19:13:14',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(162,'customers','1','80232892','ZORRILLA IDROGO, AMELIA','1964-01-20','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'917711615',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-20 14:22:21','2026-04-20 14:22:21',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(163,'customers','1','70550982','ARRASCUE IZQUIERDO, FANY GUISENIA','1996-01-01','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'989277624',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-20 21:05:47','2026-04-20 21:05:47',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(164,'customers','1','73536630','MANCHAY VILLANUEVA, ELIAS NILSON','1998-05-02','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'945055848',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-20 21:09:27','2026-04-20 21:09:27',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(165,'customers','1','76265467','DIAZ IRURETA, JARLY SANDER','2005-08-30','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-23 12:28:17','2026-04-23 12:28:17',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(166,'customers','1','33576668','SUAREZ HERRERA, NORMA NIMIA','1962-08-15','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-24 12:35:38','2026-04-24 12:35:38',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(167,'customers','1','41823218','FIGUEROA SUAREZ, ROSA YAKILYN','1983-06-11','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'977735580',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-25 14:49:20','2026-04-25 14:49:20',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(168,'customers','1','73634354','VASQUEZ OBLITAS, ELKIN PAUL','2002-04-26','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'973070602',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-25 16:38:47','2026-04-25 16:38:47',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(169,'customers','1','33584869','BECERRA VENTURA, FLORA','1966-10-16','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'988932141',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-27 12:40:39','2026-04-27 12:40:39',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(170,'customers','1','77515392','DANNA TERESA DE JESUS NOLASCO GIL','2011-12-26','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-28 18:03:33','2026-04-28 18:03:33',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(171,'customers','1','33675286','CHAVEZ GONZALES, EDELMIRA','1966-12-01','F',NULL,NULL,NULL,'PE',NULL,'01','0107','010701',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-28 19:13:08','2026-04-28 19:13:08',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(172,'customers','1','71104615','CASTRO GONZALES, NIDIA KATY','1995-11-25','F',NULL,NULL,NULL,'PE',NULL,'01','0107','010701',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-28 19:27:32','2026-04-28 19:27:32',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(173,'customers','1','70540866','JULCA MONDRAGON, PAUL ALFREDO','1992-01-29','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'980251825',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-29 14:11:17','2026-04-29 14:11:17',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(174,'customers','1','41721075','PAREDES TORRES, MAYRA','1983-02-12','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-29 15:55:03','2026-04-29 15:55:03',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(175,'customers','1','76787491','SANDOVAL MANSILLA, YASMIN TEODORA','2004-11-15','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'948208635',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-29 15:57:18','2026-04-29 15:57:18',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(176,'customers','1','47111236','VIGIL SANCHEZ, LOT','1992-04-22','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-29 17:58:12','2026-04-29 17:58:12',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(177,'customers','1','80659392','TUYASA TUNQUIA, AMANDA','1969-01-08','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'996066536',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-01 10:51:31','2026-05-01 10:51:31',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(178,'customers','1','42804694','MONTALVO SILVA, GASDALI JACQUELINE','1985-01-26','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'979727828',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-02 14:09:49','2026-05-02 14:09:49',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(179,'customers','1','76140811','MERA CIEZA, ABDIAS ELDER','2005-04-13','M',NULL,NULL,NULL,'PE',NULL,'01','0107','010701',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-02 20:55:34','2026-05-02 20:55:34',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(180,'customers','1','63107335','VASQUEZ ALARCON, DYLAN MATHIEUS JOSE','2012-05-29','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'915359879',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-05 15:21:00','2026-05-05 15:21:00',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(181,'customers','1','75776186','ESAMAT YAMPIS, YAMPAN EMELY','2005-07-15','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'929145482',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-05 16:44:45','2026-05-05 16:44:45',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(182,'customers','1','43033236','CUBAS ARRASCUE, MARIA MARIBEL','1982-08-20','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'924855174',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-06 16:24:08','2026-05-06 16:24:08',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(183,'customers','1','20112076','CANEZ ARANDA, NOE RAUL','1977-09-11','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'966299707',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-07 20:57:24','2026-05-07 20:57:24',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(184,'customers','1','17634706','SANCHEZ LLAUSE, JULIA','1952-03-24','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'978040276',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-12 12:13:16','2026-05-12 12:13:16',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(185,'customers','1','33573536','BARRETO PAZ, AMADA','1967-10-30','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-14 17:51:27','2026-05-14 17:51:27',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(186,'customers','1','33560241','VARGAS DIAZ, YNMER','1964-11-01','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'968018998',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-15 16:11:21','2026-05-15 16:11:21',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(187,'customers','1','33595545','CULQUI MONTENEGRO, ESCILDA','1969-01-12','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'995652633',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-16 09:21:42','2026-05-16 09:21:42',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(188,'customers','1','27698117','SANTA CRUZ FLORES, OSCAR','1936-06-02','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'985567971',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-16 14:09:20','2026-05-16 14:09:20',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(189,'customers','1','40243690','SANTA CRUZ FIGUEROA, DUVIA','1979-07-14','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'972522585',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-16 14:13:57','2026-05-16 14:13:57',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(190,'customers','1','80275503','NAVAL DIAZ, ANABEL','1978-04-15','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-17 12:16:41','2026-05-17 12:16:41',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(191,'customers','1','71447870','AYALA VELASQUEZ, CLEMEN MARLON','1991-05-28','M',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-05-20 12:10:17','2026-05-20 12:10:17',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(192,'customers','1','27706779','TAPIA DE MAYTA, SARA MARIA','1955-12-16','F',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-05-20 15:46:41','2026-05-20 15:46:41',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(193,'customers','1','44389820','GUEVARA MILIAN, JORGE LUIS','1987-05-03','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'956292332',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-20 20:31:38','2026-05-20 20:31:38',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(194,'customers','1','46379895','CASTRO CHAVEZ, ASTRID DORCAS','1989-12-07','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'910294001',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-21 13:43:51','2026-05-21 13:43:51',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(195,'customers','1','44564580','MENDOZA CHACHAPOYAS, ANNA MAGALY','1986-09-23','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'925782051',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-22 15:07:23','2026-05-22 15:07:23',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(196,'customers','1','80538265','CASTAÑEDA FLORES, AUREA LUCY','1974-05-10','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'943056042',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-23 11:15:29','2026-05-23 11:15:29',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(197,'customers','1','71447850','AYALA VELASQUEZ, ANGEL EDISON','2026-05-23','M',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-05-23 19:28:59','2026-05-23 19:28:59',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(198,'customers','1','33587332','CUBAS SANCHEZ, JOSE VALOIS','1960-11-20','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'995956607',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-25 10:38:33','2026-05-25 10:38:33',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(199,'customers','1','33582071','CORDOVA GARCIA, BENITO','1963-01-22','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'997852845',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-26 11:37:46','2026-05-26 11:37:46',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(200,'customers','1','28063904','CHOMBA ROJAS, MARIA ALEJANDRINA','1963-02-20','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'995902541',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-26 14:08:20','2026-05-26 14:08:20',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(201,'customers','1','33589031','VELARDE MUÑOZ, ANGEL SAMUEL','1973-08-05','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-26 15:00:28','2026-05-26 15:00:28',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(202,'customers','1','26635547','PACHECO RAMOS, MARIA ELVIRA','1964-03-16','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-26 20:38:05','2026-05-26 20:38:05',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(203,'customers','1','27080602','AYALA SALAZAR, CLEMENTE','2026-05-28','M',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-05-28 09:58:55','2026-05-28 09:58:55',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(204,'customers','1','72252060','RISCO GARCIA, DIANALY','1997-05-04','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-28 16:22:20','2026-05-28 16:22:20',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(205,'customers','1','33586399','SEGURA SANCHEZ, MARINA','1973-03-20','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'941970803',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-30 11:43:48','2026-05-30 11:43:48',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(206,'customers','1','43029501','MONTEZA RAMOS, ALINDOR','1984-06-28','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'952943208',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-30 18:25:22','2026-05-30 18:25:22',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(207,'customers','1','41570429','GUERRERO CARRILLO, YDA','1982-12-25','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-01 12:06:18','2026-06-01 12:06:18',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(208,'customers','1','72620676','LLAMO SANCHEZ, JOSE ENRRIQUE','2025-12-19','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'952790961',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-03 11:47:51','2026-06-03 11:47:51',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(209,'customers','1','33573076','CRUZ PARRA, CATALINO','1951-05-25','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-05 09:31:21','2026-06-05 09:31:21',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(210,'customers','1','41663586','LINGAN CUEVA, ELIZABETH','1981-12-29','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'970908291',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-05 17:17:07','2026-06-05 17:17:07',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(211,'customers','1','33673806','LINGAN DE CONSANCHILON, LUZ EDITA','1968-01-01','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'904226760',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-05 17:25:16','2026-06-05 17:25:16',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(212,'customers','1','73490569','FLORES FLORES, ULICES','1998-01-29','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010206',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-06 11:39:11','2026-06-06 11:39:11',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(213,'customers','1','42464035','RUPAY GIL, ZENOBIO','1981-07-22','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'947787953',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-06 15:30:08','2026-06-06 15:30:08',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(214,'customers','1','33566900','HUAYAN ROMERO, MILA EDISA','1968-10-14','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'957437647',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-06 15:34:30','2026-06-06 15:34:30',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(215,'customers','1','33572725','RAMIREZ TAPIA, FLOR DE MARIA','1967-06-20','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'920026166',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-08 12:45:45','2026-06-08 12:45:45',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(216,'customers','1','71711804','DE LA CRUZ CUBAS, JHEISON','2005-11-16','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'910072068',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-09 14:25:52','2026-06-09 14:25:52',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(217,'customers','1','33570911','BARDALES SUAREZ, ROSALINA','1961-04-08','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'913433289',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-10 10:01:18','2026-06-10 10:01:18',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(218,'customers','1','17555246','QUIROZ SOTERO, LIDA LUZ','1967-10-06','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'943694637',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-10 17:36:13','2026-06-10 17:36:13',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(219,'customers','1','73125544','URIOL CHAVEZ, JEFERSON ESMIT','2005-08-08','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'901080314',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-12 11:31:56','2026-06-12 11:31:56',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(220,'customers','1','46269167','PERALTA OLIVERA, EDGAR OMAR','1990-04-08','M',NULL,NULL,NULL,'PE',NULL,'06','0608','060801',NULL,NULL,NULL,NULL,NULL,'942055831',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-13 16:18:30','2026-06-13 16:18:30',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(221,'customers','1','45289392','SANCHEZ BURGOS, SARITA MARIELA','1988-04-04','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'917724875',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-16 16:31:03','2026-06-16 16:31:03',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(222,'customers','1','43779716','RIVERA DEQUENTEI, NILTON WILFREDO','1986-05-16','M',NULL,NULL,NULL,'PE',NULL,'01','0104','010401',NULL,NULL,NULL,NULL,NULL,'929335865',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-19 12:32:12','2026-06-19 12:32:12',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(223,'customers','1','47633104','YARIHUAMAN SANCHEZ, AMELLY PATRICIA','1992-01-24','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'935108311',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-20 21:20:04','2026-06-20 21:20:04',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(224,'customers','1','62496235','SEGURA RAMIREZ, BECXY KAORY','2011-02-23','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'932787182',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-24 10:52:40','2026-06-24 10:52:40',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(225,'customers','1','33654689','PORTOCARRERO PEREZ, TIMOTEO','1959-01-20','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010202',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-25 07:58:22','2026-06-25 07:58:22',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(226,'customers','1','33595937','FALCON GANOZA, LUIS JAVIER','2026-01-02','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-25 11:03:51','2026-06-25 11:03:51',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(227,'customers','1','22222222','RUIZ MEJIA MARCELINA','1936-01-24','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'921544882',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-25 13:56:52','2026-06-25 13:56:52',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(228,'customers','1','17539005','TAPIA HUERTAS, WILMER','1963-02-20','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'985467319',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-25 17:57:46','2026-06-25 17:57:46',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(229,'customers','1','48856773','PADILLA HUANCAS, FELICITA','1967-09-14','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'968766711',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-27 10:05:41','2026-06-27 10:05:41',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(230,'customers','1','71261393','PEREZ VARGAS, JOSSY CECILIA','2002-08-02','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-27 20:05:03','2026-06-27 20:05:03',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(231,'customers','1','91934932','Darian  garcia acuña','2020-07-18','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'994565915',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-30 19:07:45','2026-06-30 19:07:45',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(232,'customers','1','41437817','VALLEJOS VASQUEZ, ELICIA','1982-08-14','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9805505447',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-03 19:05:51','2026-07-03 19:05:51',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(233,'customers','1','79684976','MAGALLANES DE LA CRUZ, DANTE ALEXANDER','2016-05-26','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'939384446',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-04 11:16:26','2026-07-04 11:16:26',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(234,'customers','1','72184169','AMPUSH CAICHARO, JHONY AURELIO','1994-09-14','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'926118457',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-04 11:18:51','2026-07-04 11:18:51',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(235,'customers','1','73317351','JULCA CAYATOPA, JHIORDY HANS','1999-07-20','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-04 19:25:32','2026-07-04 19:25:32',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(236,'customers','1','71711803','DE LA CRUZ CUBAS, MERCY NORALY','1996-09-18','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'939384446',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-05 12:00:16','2026-07-05 12:00:16',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(237,'customers','1','43336390','SALAZAR DIAZ, MARITA','1983-09-22','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'941383860',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-06 13:55:47','2026-07-06 13:55:47',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(238,'customers','1','94415145','IVANA MIRELLA DIAZ GUEVARA','2025-10-14','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'906128293',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-06 15:19:33','2026-07-06 15:19:33',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(239,'customers','1','33561796','MERA BARRIOS, VILMA GAUDENCIA','1963-05-18','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-07 18:20:59','2026-07-07 18:20:59',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(240,'customers','1','44331927','AREVALO TARRILLO, BERBELINA','1961-01-02','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-08 16:26:28','2026-07-08 16:26:28',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(241,'customers','1','71998306','GOMEZ MEDINA, MARCOS','1991-03-08','M',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-10 20:41:21','2026-07-10 20:41:21',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(242,'customers','1','48743946','RAMIREZ LUCERO, ANTHONY ALEXANDER','1996-02-19','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'917341807',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-11 10:14:09','2026-07-11 10:14:09',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(243,'customers','1','33596845','ALVAREZ RODRIGUEZ, SILVIA','1972-10-07','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'949062065',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-11 13:23:03','2026-07-11 13:23:03',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(244,'customers','1','33587229','MONTEZA RAMOS, WILDER','1972-09-17','M',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-13 09:59:12','2026-07-13 09:59:12',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(245,'customers','1','80251519','ALVAREZ DIAZ, LUZ DORIS','1967-12-13','F',NULL,NULL,NULL,'PE',NULL,'01','0107','010701',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-13 11:12:14','2026-07-13 11:12:14',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(246,'customers','1','44368511','LOBATO RAMIREZ, DIONILA','1983-08-02','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'900118742',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-14 16:59:43','2026-07-14 16:59:43',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(247,'customers','1','80232362','SEJEKAM CHUMPI, VIRGILIO','1979-06-17','M',NULL,NULL,NULL,'PE',NULL,'01','0104','010401',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 13:45:06','2026-07-16 13:45:06',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(248,'customers','1','33595228','BARBOZA VASQUEZ DE FALCON, LADY MARINA','1974-06-18','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'954893774',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-17 17:54:12','2026-07-17 17:54:12',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(249,'customers','1','27737284','ALARCON TORRES, EDELMIRA','1952-11-01','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,'935784906',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-20 10:19:29','2026-07-20 10:19:29',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(250,'customers','1','47219527','MALCA AREVALO, HEINER','1991-02-15','M',NULL,NULL,NULL,'PE',NULL,'01',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-20 14:02:53','2026-07-20 14:02:53',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(251,'customers','1','33594086','MALCA DE MALCA, VILMA','1972-03-17','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'936987510',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-20 16:51:26','2026-07-20 16:51:26',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(252,'customers','1','20202020','Dilan Espinaque Arce','2026-07-10','M',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-20 18:51:02','2026-07-20 18:51:02',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(253,'customers','1','33676878','GUEVARA SANCHEZ, HILDA','1970-01-04','F',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-21 13:56:23','2026-07-21 13:56:23',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(254,'customers','1','70889158','ALVAREZ MONTEZA, MARICARMEN','1998-11-17','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-21 18:01:11','2026-07-21 18:01:11',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(255,'customers','1','16621797','LOPEZ TICLIAHUANCA, CELIA YANUARIA','1973-01-02','F',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-22 15:43:48','2026-07-22 15:43:48',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(256,'customers','1','73439327','SANCHEZ GUERRERO, JEAN BORIS','2001-01-07','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010206',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-22 20:24:49','2026-07-22 20:24:49',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(257,'customers','1','41745097','VASQUEZ MUÑOZ, DALILA','1979-01-28','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'949838012',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-23 13:18:27','2026-07-23 13:18:27',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(258,'customers','1','33586205','SEGURA SANCHEZ, FELIPE','1970-05-01','M',NULL,NULL,NULL,'PE',NULL,'01','0102','010201',NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-24 16:43:43','2026-07-24 16:43:43',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(259,'customers','1','27681399','MONTALVAN CAMIZAN, FELIPA','1957-08-24','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'901746101',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-25 10:30:13','2026-07-25 10:30:13',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(260,'customers','1','33566620','MALDONADO RAMIREZ, FLAVIO','1967-09-17','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'983066099',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-27 18:09:59','2026-07-27 18:09:59',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(261,'customers','1','78065445','LOZANO CUZMA, JOSUE LEONARDO','2013-04-10','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'900567511',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-27 18:15:14','2026-07-27 18:15:14',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),(262,'customers','1','33655314','RIMAPA SOSA, MARTHA PATRICIA','1968-08-20','F',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'920112265',0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-07-28 13:08:39','2026-07-28 13:08:39',1,0,NULL,0,NULL,NULL,0,'01',0.00,1);
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `person_types` VALUES (1,'Interno','2026-01-03 19:37:45','2026-01-03 19:37:45'),(2,'Distribuidor','2026-01-03 19:37:45','2026-01-03 19:37:45');
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `pharmacy_configurations` VALUES (1,1,0,'2026-01-05 09:24:31','2026-01-05 09:24:31');
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 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 AUTO_INCREMENT=70 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

SET autocommit=0;
INSERT INTO `prescription_cie10` VALUES (1,'M54.5','Lumbalgia','2026-01-05 16:17:57','2026-01-05 16:17:57'),(2,'M54.4','Ciatalgia','2026-01-05 16:18:33','2026-01-05 16:18:33'),(3,'M54.9','Dorsalgia','2026-01-05 16:19:05','2026-01-05 16:19:05'),(4,'M54.2','Cervicalgia','2026-01-05 16:19:24','2026-01-05 16:19:24'),(5,'M16.9','Coxartrosis','2026-01-05 16:20:13','2026-01-05 16:20:13'),(6,'M62.4','Contractura muscular','2026-01-05 17:06:17','2026-01-05 17:06:17'),(7,'M25.5','Dolor articular','2026-01-05 17:15:51','2026-01-05 17:15:51'),(8,'M17.9','Gonartrosis','2026-01-05 17:32:07','2026-01-05 17:32:07'),(9,'S52.4','Fractura de diáfisis de cúbito y radio','2026-01-05 17:41:46','2026-01-05 17:41:46'),(10,'M65.4','Tendinitis de Quervain (o tenosinovitis de la estiloides radial)','2026-01-05 17:54:29','2026-01-05 17:54:29'),(11,'S83.5','Esguince y distensión del ligamento cruzado de la rodilla','2026-01-05 18:40:31','2026-01-05 18:40:31'),(12,'M23.3','LESION DE MENISCO','2026-01-05 18:41:55','2026-01-05 18:41:55'),(13,'G57.6','Neuroma de Morton','2026-01-05 19:07:34','2026-01-05 19:07:34'),(14,'D17.9','Neoplasia lipomatosa benigna (lipoma)','2026-01-08 18:39:33','2026-01-08 18:39:33'),(15,'G51.0','Parálisis de Bell','2026-01-08 18:56:41','2026-01-08 18:56:41'),(16,'M92.6','Osteocondrosis juvenil (enfermedad de sever)','2026-01-16 18:09:59','2026-01-16 18:09:59'),(17,'S76.3','Distensión muslo posterior','2026-01-17 21:35:03','2026-01-17 21:35:03'),(18,'M75.9','Lesión de hombro, no especificado','2026-01-17 21:47:48','2026-01-17 21:47:48'),(19,'M81.0','Osteoporosis relacionada con la edad sin fractura','2026-01-17 22:01:17','2026-01-17 22:01:17'),(20,'Q65.8','Otras deformidades congénitas de la cadera','2026-01-20 16:23:41','2026-01-20 16:23:41'),(21,'S02.2','Fractura de huesos nasales','2026-01-23 16:43:05','2026-01-23 16:43:05'),(22,'G80.1','Diplejía espástica (miembros inferiores)','2026-01-23 16:51:26','2026-01-23 16:51:26'),(23,'A18.01','Tuberculosis de huesos y articulaciones (Mal de Pott)','2026-01-23 16:53:28','2026-01-23 16:53:28'),(24,'G56.2','Lesión del nervio cubital','2026-01-27 16:29:37','2026-01-27 16:29:37'),(25,'M77.1','Epicondilitis medial','2026-01-27 17:35:37','2026-01-27 17:35:37'),(26,'M77.0','Epicondilitis medial','2026-01-27 17:35:58','2026-01-27 17:35:58'),(27,'M77.1','Epicondilitis lateral','2026-01-27 17:36:38','2026-01-27 17:36:38'),(28,'G56.0','Síndrome del túnel carpiano','2026-01-27 17:37:52','2026-01-27 17:37:52'),(29,'M92.6','Osteocondrosis juvenil del tarso.','2026-01-27 20:52:09','2026-01-27 20:52:09'),(30,'M62.4','Contractura muscular','2026-01-27 21:01:31','2026-01-27 21:01:31'),(31,'M47.8','Espondilosis con artrosis de la columna lumbar','2026-01-28 15:49:40','2026-01-28 15:49:40'),(32,'M76.8','Otras entesopatías de miembro inferior','2026-02-04 16:55:49','2026-02-04 16:55:49'),(33,'G57.1','Meralgia parestesica','2026-02-06 19:48:31','2026-02-06 19:48:31'),(34,'M76.3','Síndrome del tendón del tensor de la fascia lata','2026-02-12 18:38:01','2026-02-12 18:38:01'),(35,'M21.4','Pie plano','2026-02-18 19:10:50','2026-02-18 19:10:50'),(36,'M21.0','Deformidad en valgo','2026-02-18 19:12:03','2026-02-18 19:12:03'),(37,'S82.4','Fractura de diáfisis de peroné','2026-02-20 19:33:11','2026-02-20 19:33:11'),(38,'G81.0','Hemiplejía flácida que afecta lado no especificado','2026-02-23 14:31:16','2026-02-23 14:31:16'),(39,'B02.9','Herpes zóster sin complicaciones','2026-02-24 19:04:31','2026-02-24 19:04:31'),(40,'I84.2','Hemorroides internas sin complicación','2026-02-24 19:27:08','2026-02-24 19:27:08'),(41,'M06.9','Artritis reumatoide, no especificada','2026-02-24 21:22:22','2026-02-24 21:22:22'),(42,'G61.0','Síndrome de Guillain-Barré','2026-02-28 15:01:45','2026-02-28 15:01:45'),(43,'G20.0','Parkinson idiopático','2026-03-10 21:12:20','2026-03-10 21:12:20'),(44,'G11.2','Ataxia cerebelosa de iniciación tardía','2026-03-10 21:19:30','2026-03-10 21:19:30'),(45,'M77.3','Espolón de calcáneo','2026-03-14 20:26:54','2026-03-14 20:26:54'),(46,'M06.9','Artritis reumatoide no especificada','2026-03-14 20:27:54','2026-03-14 20:27:54'),(47,'S76.1','Traumatismo del tendón y músculo cuádriceps','2026-03-25 20:58:32','2026-03-25 20:58:32'),(48,'S43,1','Luxación de la articulación acromioclavicular','2026-03-25 21:02:16','2026-03-25 21:02:16'),(49,'M53.3','Sacrococcigodinia/trastornos del coxis','2026-03-25 21:19:03','2026-03-25 21:19:03'),(50,'M65.3','Dedo en gatillo (tenosinovitis estenosante)','2026-04-10 20:22:03','2026-04-10 20:22:03'),(51,'S93.4','Esguince de tobillo','2026-04-16 20:03:18','2026-04-16 20:03:18'),(52,'M15.9','Poliartrosis no especificada','2026-04-17 18:51:52','2026-04-17 18:51:52'),(53,'S80.1','Contusión de otras partes y las no especificadas de la pierna','2026-04-22 18:45:05','2026-04-22 18:45:05'),(54,'S76.1','Lesión del músculo y tendón del cuádriceps','2026-04-24 20:49:28','2026-04-24 20:49:28'),(55,'M79.1','Mialgia','2026-04-29 19:41:54','2026-04-29 19:41:54'),(56,'M92.5','Osteocondrosis juvenil de tibia y peroné','2026-05-05 15:26:57','2026-05-05 15:26:57'),(57,'M51.1','Trastornos del disco lumbar y otros, con radiculopatía','2026-05-26 20:12:29','2026-05-26 20:12:29'),(58,'S22.3','fractura de costilla','2026-06-01 18:13:53','2026-06-01 18:13:53'),(59,'M72.2','Fibromatosis de la aponeurosis plantar','2026-06-01 18:37:19','2026-06-01 18:37:19'),(60,'L03.1','Celulitis de otras partes de los miembros','2026-06-01 18:40:43','2026-06-01 18:40:43'),(61,'M53.3','Trastornos sacrococcígeos, no clasificados bajo otro concepto','2026-06-05 18:00:17','2026-06-05 18:00:17'),(62,'S42.2','Fractura de la epífisis superior del húmero (Húmero proximal, cerca del hombro).','2026-06-15 18:47:22','2026-06-15 18:47:22'),(63,'S42.3','Fractura de la diáfisis del húmero (Tercio medio del hueso).','2026-06-15 18:48:07','2026-06-15 18:48:07'),(64,'S42.4','Fractura de la epífisis inferior del húmero (Húmero distal, cerca del codo)','2026-06-15 18:48:46','2026-06-15 18:48:46'),(65,'M22.4','Condromalacia de rótula, rodilla no especificada','2026-06-24 12:02:47','2026-06-24 12:02:47'),(66,'S86.0','Traumatismo o lesión del tendón de Aquiles (rotura, desgarro o esguince agudo)','2026-07-20 18:45:02','2026-07-20 18:45:02'),(67,'Q65,3','Subluxación congénita de la cadera, unilateral','2026-07-20 18:59:48','2026-07-20 18:59:48'),(68,'T93.1','Secuelas de fractura del fémur','2026-07-21 18:46:44','2026-07-21 18:46:44'),(69,'T92.1','Secuelas de fractura del brazo, que incluye el área del codo y antebrazo','2026-07-27 20:02:27','2026-07-27 20:02:27');
COMMIT;

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

--
-- Dumping data for table `procedures`
--

SET autocommit=0;
INSERT INTO `procedures` VALUES (1,'MQ1','Infiltración de acido hialuronico en el hombro',0,1,'2026-01-05 16:23:43','2026-01-05 16:23:43'),(2,'MQ2','Infiltración de acido hialuronico en el codo',0,1,'2026-01-05 16:24:13','2026-01-05 16:24:13'),(3,'MQ3','Infiltración de acido hialuronico en la muñeca',0,1,'2026-01-05 16:24:39','2026-01-05 16:24:39'),(4,'MQ4','Infiltración de acido hialuronico en la cadera',0,1,'2026-01-05 16:25:00','2026-01-05 16:25:00'),(5,'MQ5','Infiltración de acido hialuronico en la rodilla',0,1,'2026-01-05 16:25:22','2026-01-05 16:25:22'),(6,'MQ6','Infiltración de acido hialuronico en el Tobillo',0,1,'2026-01-05 16:25:40','2026-01-05 16:25:40'),(7,'MQ7','Infiltración de plasma en el hombro',0,1,'2026-01-05 16:26:20','2026-01-05 16:26:20'),(8,'MQ8','Infiltración de plasma en el Codo',0,1,'2026-01-05 16:26:43','2026-01-05 16:26:43'),(9,'MQ9','Infiltración de plasma en el la muñeca',0,1,'2026-01-05 16:27:07','2026-01-05 16:27:07'),(10,'MQ10','Infiltración de plasma en la cadera',0,1,'2026-01-05 16:36:42','2026-01-05 16:36:42'),(11,'MQ11','Infiltración de plasma en la rodilla',0,1,'2026-01-05 16:37:07','2026-01-05 16:37:07'),(12,'MQ12','Infiltración de plasma en el tobillo',0,1,'2026-01-05 16:37:32','2026-01-05 16:37:32'),(13,'MQ13','Infiltración de corticoide en el hombro',0,1,'2026-01-05 16:38:26','2026-01-05 16:38:26'),(14,'MQ14','Infiltración de plasma en el codo',0,1,'2026-01-05 16:38:45','2026-01-05 16:38:45'),(15,'MQ15','Infiltración de plasma en la muñeca',0,1,'2026-01-05 16:39:09','2026-01-05 16:39:09'),(16,'MQ16','Infiltración de corticoide en la cadera',0,1,'2026-01-05 16:40:00','2026-01-05 16:40:00'),(17,'MQ18','Infiltración de corticoide en la codo',0,1,'2026-01-05 16:41:39','2026-01-05 16:41:39'),(18,'MQ19','Infiltración de corticoide en la rodilla',0,1,'2026-01-05 16:42:13','2026-01-05 16:42:13'),(19,'MQ20','Infiltración de corticoide en el tobillo',0,1,'2026-01-05 16:42:36','2026-01-05 16:42:36'),(20,'MQ21','Infiltración de corticoide en neuroma de Morton',0,1,'2026-01-05 16:44:03','2026-01-05 16:44:03'),(21,'MQ22','Infiltración de corticoide en tendinitis de Quervain',0,1,'2026-01-05 16:44:55','2026-01-05 16:44:55'),(22,'MQ23','Infiltración de corticoide en la pata de ganso',0,1,'2026-01-05 16:45:32','2026-01-05 16:45:32'),(23,'MQ24','Infiltración de corticoide en dedo en gatillo',0,1,'2026-01-05 16:46:11','2026-01-05 16:46:11'),(24,'MQ25','Infiltración de corticoide en epicondilitis medial',0,1,'2026-01-05 16:46:40','2026-01-05 16:46:40'),(25,'MQ26','Infiltración de corticoide en epicondilitis lateral',0,1,'2026-01-05 16:47:07','2026-01-05 16:47:07'),(26,'MQ27','Infiltración de corticoide en ligamento lateral rodilla',0,1,'2026-01-05 16:49:42','2026-01-05 16:49:42'),(27,'MQ28','Infiltración de corticoide en ligamento lateral medial de la rodilla',0,1,'2026-01-05 16:50:21','2026-01-05 16:50:21'),(28,'MQ28','Infiltración de corticoide en espolón de calcáneo',0,1,'2026-01-05 16:51:44','2026-01-05 16:51:44'),(29,'MQ29','Infiltración de plasma en musculo gemelo',0,1,'2026-01-05 16:53:17','2026-01-05 16:53:17'),(30,'MQ30','Infiltración de plasma en tendón bíceps crural',0,1,'2026-01-05 16:53:58','2026-01-05 16:53:58'),(31,'MQ31','Infiltración de plasma en musculo isquiotibiales',0,1,'2026-01-05 16:54:46','2026-01-05 16:54:46'),(32,'MQ32','Infiltración de plasma en musculo trapecio',0,1,'2026-01-05 16:55:14','2026-01-05 16:55:14'),(33,'MQ33','Infiltración de plasma en musculo cuadriceps',0,1,'2026-01-05 16:55:49','2026-01-05 16:55:49'),(34,'MQ34','Infiltración de plasma en nervio ciático',0,1,'2026-01-05 16:57:11','2026-01-05 16:57:11'),(35,'MQ35','Punción seca',0,1,'2026-01-05 17:07:09','2026-01-05 17:07:09'),(36,'MQ36','Elongación musculo piramidal',0,1,'2026-01-05 17:07:47','2026-01-05 17:07:47'),(37,'MQ37','Ecografía musculoesquelética de hombro',0,1,'2026-01-05 17:20:29','2026-01-05 17:20:29'),(38,'MQ38','Ecografía musculoesquelética de codo',0,1,'2026-01-05 17:20:55','2026-01-05 17:20:55'),(39,'MQ39','Ecografía musculoesquelética de muñeca',0,1,'2026-01-05 17:21:16','2026-01-05 17:21:16'),(40,'MQ40','Ecografía musculoesquelética de la mano',0,1,'2026-01-05 17:21:43','2026-01-05 17:21:43'),(41,'MQ41','Ecografía musculoesquelética del dedo de la mano',0,1,'2026-01-05 17:22:23','2026-01-05 17:22:23'),(42,'MQ42','Ecografía musculoesquelética de la cadera',0,1,'2026-01-05 17:22:41','2026-01-05 17:22:41'),(43,'MQ43','Ecografía musculoesquelética de la rodilla',0,1,'2026-01-05 17:23:12','2026-01-05 17:23:12'),(44,'MQ44','Ecografía musculoesquelética del tobillo',0,1,'2026-01-05 17:23:36','2026-01-05 17:23:36'),(45,'MQ45','Ecografía musculoesquelética del pie',0,1,'2026-01-05 17:24:02','2026-01-05 17:24:02'),(46,'MQ46','Ecografía musculoesquelética del musculo gemelo',0,1,'2026-01-05 17:25:29','2026-01-05 17:25:29'),(47,'MQ47','Ecografía musculoesquelética del cuádriceps',0,1,'2026-01-05 17:25:57','2026-01-05 17:25:57'),(48,'MQ48','Ecografía musculoesquelética de isquiotibiales',0,1,'2026-01-05 17:26:29','2026-01-05 17:26:29'),(49,'MQ49','Ecografía musculoesquelética de Bíceps',0,1,'2026-01-05 17:27:21','2026-01-05 17:27:21'),(50,'MQ50','Ecografía musculoesquelética de tríceps',0,1,'2026-01-05 17:27:44','2026-01-05 17:27:44'),(51,'MQ51','Inmovilización con yeso de hombro',0,1,'2026-01-05 17:46:49','2026-01-05 17:46:49'),(52,'MQ52','Inmovilización con yeso de codo',0,1,'2026-01-05 17:47:08','2026-01-05 17:47:08'),(53,'MQ53','Inmovilización con yeso de antebrazo',0,1,'2026-01-05 17:47:39','2026-01-05 17:47:39'),(54,'MQ54','Inmovilización con yeso de muñeca',0,1,'2026-01-05 17:47:57','2026-01-05 17:47:57'),(55,'MQ55','Inmovilización con yeso de mano',0,1,'2026-01-05 17:48:18','2026-01-05 17:48:18'),(56,'MQ56','Inmovilización con yeso de cadera',0,1,'2026-01-05 17:48:43','2026-01-05 17:48:43'),(57,'MQ57','Inmovilización con yeso de muslo',0,1,'2026-01-05 17:49:07','2026-01-05 17:49:07'),(58,'MQ58','Inmovilización con yeso de rodilla',0,1,'2026-01-05 17:49:25','2026-01-05 17:49:25'),(59,'MQ59','Inmovilización con yeso de pierna',0,1,'2026-01-05 17:49:42','2026-01-05 17:49:42'),(60,'MQ60','Inmovilización con yeso de tobillo',0,1,'2026-01-05 17:50:02','2026-01-05 17:50:02'),(61,'MQ61','Inmovilización con yeso de pie',0,1,'2026-01-05 17:50:26','2026-01-05 17:50:26'),(62,'MQ62','Artrocentesis',0,1,'2026-01-05 18:51:23','2026-01-05 18:51:23'),(63,'MQ63','Terapia manual',0,1,'2026-01-05 20:46:41','2026-01-05 20:46:41'),(64,'MQ64','Punción seca',0,1,'2026-01-06 15:13:23','2026-01-06 15:13:23'),(65,'MQ65','Ecografía musculoesquelética de espalda',0,1,'2026-01-08 18:41:06','2026-01-08 18:41:06'),(66,'MQ66','Administración de medicamento',0,1,'2026-01-08 20:15:36','2026-01-08 20:15:36'),(67,'MQ67','Administración de vitamina B y C',0,1,'2026-01-08 20:16:27','2026-01-08 20:16:27'),(68,'MQ68','Ejercicios terapeuticos',0,1,'2026-01-16 18:51:35','2026-01-16 18:51:35'),(69,'MQ69','Fortalecimiento muscular',0,1,'2026-01-16 18:52:04','2026-01-16 18:52:04'),(70,'MQ70','Densitometría de cuerpo entero',0,1,'2026-01-17 22:06:09','2026-01-17 22:06:09'),(71,'MQ71','Evaluación fisioterapéutica',0,1,'2026-01-20 16:24:53','2026-01-20 16:24:53'),(72,'MQ72','Ultrasonido',0,1,'2026-01-31 13:22:54','2026-01-31 13:22:54'),(73,'MQ73','Electroterapia',0,1,'2026-01-31 13:23:13','2026-01-31 13:23:13'),(74,'MQ74','Zapato ortopédico',0,1,'2026-02-18 19:19:01','2026-02-18 19:19:01'),(75,'MQ75','Plasma rico en plaquetas sistémico',0,1,'2026-02-23 14:35:48','2026-02-23 14:35:48'),(76,'MQ76','Infiltración de corticoide síndrome túnel carpiano',0,1,'2026-02-23 17:06:48','2026-02-23 17:06:48'),(77,'MQ77','Infiltración de plasma cuadrado lumbar',0,1,'2026-03-10 21:25:54','2026-03-10 21:25:54'),(78,'MQ78','Ecografía musculoesquelética de la pierna',0,1,'2026-04-22 18:46:25','2026-04-22 18:46:25'),(79,'MQ79','Ecografía costal',0,1,'2026-06-01 18:17:31','2026-06-01 18:17:31'),(80,'MQ80','Infiltración de plasma en el cuadrado lumbar',0,1,'2026-06-09 14:40:22','2026-06-09 14:40:22'),(81,'MQ81','Infiltración de corticoide en articulación acromioclavicular',0,1,'2026-06-15 19:13:04','2026-06-15 19:13:04'),(82,'MQ82','Ecografía de tendón de Aquiles',1,1,'2026-07-20 18:50:26','2026-07-20 18:50:26'),(83,'MQ83','Crioterapia',1,1,'2026-07-20 18:55:41','2026-07-20 18:55:41'),(84,'MQ85','Rayos Infrarrojos',1,1,'2026-07-27 20:07:15','2026-07-27 20:07:15');
COMMIT;

-- Dumped table `procedures` with 84 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 CHECK (json_valid(`item_extra_data`)),
  `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,
  PRIMARY KEY (`id`),
  KEY `provinces_department_id_foreign` (`department_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 CHECK (json_valid(`supplier`)),
  `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 CHECK (json_valid(`charges`)),
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`discounts`)),
  `prepayments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`prepayments`)),
  `guides` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`guides`)),
  `related` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`related`)),
  `perception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`perception`)),
  `detraction` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`detraction`)),
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`legends`)),
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `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_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 CHECK (json_valid(`item`)),
  `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 CHECK (json_valid(`attributes`)),
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`discounts`)),
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`charges`)),
  `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 CHECK (json_valid(`supplier`)),
  `currency_type_id` varchar(255) NOT NULL,
  `exchange_rate_sale` decimal(13,3) NOT NULL,
  `total_prepayment` decimal(12,4) NOT NULL,
  `total_charge` decimal(12,4) NOT NULL,
  `total_discount` decimal(12,4) NOT NULL,
  `total_exportation` decimal(12,4) NOT NULL,
  `total_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxed` decimal(12,4) NOT NULL,
  `total_unaffected` decimal(12,4) NOT NULL,
  `total_exonerated` decimal(12,4) NOT NULL,
  `total_igv` decimal(12,4) NOT NULL,
  `total_base_isc` decimal(12,4) NOT NULL,
  `total_isc` decimal(12,4) NOT NULL,
  `total_base_other_taxes` decimal(12,4) NOT NULL,
  `total_other_taxes` decimal(12,4) NOT NULL,
  `total_taxes` decimal(12,4) NOT NULL,
  `total_value` decimal(12,4) NOT NULL,
  `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 CHECK (json_valid(`item`)),
  `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 CHECK (json_valid(`attributes`)),
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`discounts`)),
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`charges`)),
  PRIMARY KEY (`id`),
  KEY `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` int(10) 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_fee_id_foreign` FOREIGN KEY (`purchase_fee_id`) REFERENCES `purchase_fee` (`id`) ON DELETE SET NULL,
  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 CHECK (json_valid(`establishment`)),
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `prefix` varchar(255) NOT NULL,
  `date_of_issue` date NOT NULL,
  `time_of_issue` time NOT NULL,
  `suppliers` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`suppliers`)),
  `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 CHECK (json_valid(`item`)),
  `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 CHECK (json_valid(`item`)),
  `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 CHECK (json_valid(`establishment`)),
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `prefix` char(3) NOT NULL,
  `date_of_issue` date NOT NULL,
  `time_of_issue` time NOT NULL,
  `date_of_due` 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 CHECK (json_valid(`customer`)),
  `shipping_address` text DEFAULT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `payment_method_type_id` char(2) DEFAULT NULL,
  `exchange_rate_sale` decimal(13,3) NOT NULL,
  `total_prepayment` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exportation` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxed` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_unaffected` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exonerated` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_igv` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_igv_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_value` decimal(12,2) NOT NULL DEFAULT 0.00,
  `subtotal` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`charges`)),
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`discounts`)),
  `prepayments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`prepayments`)),
  `guides` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`guides`)),
  `related` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`related`)),
  `perception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`perception`)),
  `detraction` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`detraction`)),
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`legends`)),
  `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 AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

SET autocommit=0;
INSERT INTO `quotations` VALUES (1,3,3,'e9d5b452-3180-4ec8-9f80-5f5b4492b77a',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"01\",\"department\":{\"id\":\"01\",\"description\":\"AMAZONAS\"},\"province_id\":\"0102\",\"province\":{\"id\":\"0102\",\"description\":\"Bagua\"},\"district_id\":\"010201\",\"district\":{\"id\":\"010201\",\"description\":\"Bagua\"},\"urbanization\":null,\"address\":\"Av. 28 de Julio 499\",\"email\":\"mqn@gmail.com\",\"telephone\":\"+51 996 685 350\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','COT','2026-05-20','11:05:17','2026-05-20',NULL,2,'{\"identity_document_type_id\":\"1\",\"identity_document_type\":{\"id\":\"1\",\"description\":\"DNI\"},\"number\":\"27697739\",\"name\":\"VILLANUEVA RUIZ, ROGELIO\",\"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}}',NULL,'PEN',NULL,3.431,0.00,0.00,0.00,0.00,0.00,0.00,0.00,220.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,220.00,220.00,220.00,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'COT-1-20260520',NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-05-20 11:08:38','2026-05-20 11:08:38',NULL),(2,1,1,'67b8ce83-60d9-4eac-b9a2-9a3b1346f721',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"01\",\"department\":{\"id\":\"01\",\"description\":\"AMAZONAS\"},\"province_id\":\"0102\",\"province\":{\"id\":\"0102\",\"description\":\"Bagua\"},\"district_id\":\"010201\",\"district\":{\"id\":\"010201\",\"description\":\"Bagua\"},\"urbanization\":null,\"address\":\"Av. 28 de Julio 499\",\"email\":\"mqn@gmail.com\",\"telephone\":\"+51 996 685 350\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','COT','2026-05-20','13:06:27',NULL,NULL,146,'{\"identity_document_type_id\":\"1\",\"identity_document_type\":{\"id\":\"1\",\"description\":\"DNI\"},\"number\":\"71499273\",\"name\":\"ALTAMIRANO TOCAS, WILIAN ABEL\",\"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\":\"931826159\",\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}',NULL,'PEN','10',3.431,0.00,0.00,0.00,0.00,0.00,0.00,0.00,190.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,190.00,190.00,190.00,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'COT-2-20260520',NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-05-20 13:07:14','2026-05-20 13:07:14',NULL),(3,3,3,'57747e6c-2a15-421d-a162-b325e4dc5ff6',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"01\",\"department\":{\"id\":\"01\",\"description\":\"AMAZONAS\"},\"province_id\":\"0102\",\"province\":{\"id\":\"0102\",\"description\":\"Bagua\"},\"district_id\":\"010201\",\"district\":{\"id\":\"010201\",\"description\":\"Bagua\"},\"urbanization\":null,\"address\":\"Av. 28 de Julio 499\",\"email\":\"mqn@gmail.com\",\"telephone\":\"+51 996 685 350\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','COT','2026-05-20','15:21:44','2026-05-20',NULL,151,'{\"identity_document_type_id\":\"1\",\"identity_document_type\":{\"id\":\"1\",\"description\":\"DNI\"},\"number\":\"33593203\",\"name\":\"FERNANDEZ DE FLORES, JUANA\",\"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\":\"950371487\",\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}',NULL,'PEN',NULL,3.431,0.00,0.00,0.00,0.00,0.00,0.00,0.00,150.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,150.00,150.00,150.00,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'COT-3-20260520',NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-05-20 15:27:33','2026-05-20 15:27:33',NULL),(4,6,6,'79bee17f-c600-4819-a230-069bad786f9c',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"01\",\"department\":{\"id\":\"01\",\"description\":\"AMAZONAS\"},\"province_id\":\"0102\",\"province\":{\"id\":\"0102\",\"description\":\"Bagua\"},\"district_id\":\"010201\",\"district\":{\"id\":\"010201\",\"description\":\"Bagua\"},\"urbanization\":null,\"address\":\"Av. 28 de Julio 499\",\"email\":\"mqn@gmail.com\",\"telephone\":\"+51 996 685 350\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','COT','2026-05-28','10:02:34','2026-05-28',NULL,203,'{\"identity_document_type_id\":\"1\",\"identity_document_type\":{\"id\":\"1\",\"description\":\"DNI\"},\"number\":\"27080602\",\"name\":\"AYALA SALAZAR, CLEMENTE\",\"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}}',NULL,'PEN',NULL,3.421,0.00,0.00,0.00,0.00,0.00,0.00,0.00,151.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,151.00,151.00,151.00,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'COT-4-20260528',NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-05-28 10:04:38','2026-05-28 10:04:38',NULL),(5,5,5,'53d9147b-be2d-4100-ab3e-cec28c8c572b',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"01\",\"department\":{\"id\":\"01\",\"description\":\"AMAZONAS\"},\"province_id\":\"0102\",\"province\":{\"id\":\"0102\",\"description\":\"Bagua\"},\"district_id\":\"010201\",\"district\":{\"id\":\"010201\",\"description\":\"Bagua\"},\"urbanization\":null,\"address\":\"Av. 28 de Julio 499\",\"email\":\"mqn@gmail.com\",\"telephone\":\"+51 996 685 350\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','COT','2026-05-28','10:08:49',NULL,NULL,203,'{\"identity_document_type_id\":\"1\",\"identity_document_type\":{\"id\":\"1\",\"description\":\"DNI\"},\"number\":\"27080602\",\"name\":\"AYALA SALAZAR, CLEMENTE\",\"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}}',NULL,'PEN','10',3.421,0.00,0.00,0.00,0.00,0.00,0.00,0.00,150.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,150.00,150.00,150.00,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'COT-5-20260528',NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-05-28 10:09:50','2026-05-28 10:09:50',NULL),(6,6,6,'45bc17c9-cc3a-48d3-9b9d-e422b6668022',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"01\",\"department\":{\"id\":\"01\",\"description\":\"AMAZONAS\"},\"province_id\":\"0102\",\"province\":{\"id\":\"0102\",\"description\":\"Bagua\"},\"district_id\":\"010201\",\"district\":{\"id\":\"010201\",\"description\":\"Bagua\"},\"urbanization\":null,\"address\":\"Av. 28 de Julio 499\",\"email\":\"mqn@gmail.com\",\"telephone\":\"+51 996 685 350\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','COT','2026-05-28','10:27:42','2026-05-28',NULL,146,'{\"identity_document_type_id\":\"1\",\"identity_document_type\":{\"id\":\"1\",\"description\":\"DNI\"},\"number\":\"71499273\",\"name\":\"ALTAMIRANO TOCAS, WILIAN ABEL\",\"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\":\"931826159\",\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}',NULL,'PEN',NULL,3.421,0.00,0.00,0.00,0.00,0.00,156.78,0.00,0.00,28.22,0.00,0.00,0.00,0.00,0.00,28.22,156.78,185.00,185.00,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'COT-6-20260528',NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-05-28 10:28:22','2026-05-28 10:28:22',NULL),(7,3,3,'5edac08b-756a-4aca-a7f3-fdb08418886c',1,'{\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"01\",\"department\":{\"id\":\"01\",\"description\":\"AMAZONAS\"},\"province_id\":\"0102\",\"province\":{\"id\":\"0102\",\"description\":\"Bagua\"},\"district_id\":\"010201\",\"district\":{\"id\":\"010201\",\"description\":\"Bagua\"},\"urbanization\":null,\"address\":\"Av. 28 de Julio 499\",\"email\":\"mqn@gmail.com\",\"telephone\":\"+51 996 685 350\",\"code\":\"0000\",\"trade_address\":null,\"web_address\":null,\"aditional_information\":null,\"logo\":null}','02','01','COT','2026-06-29','20:45:38','2026-06-29',NULL,230,'{\"identity_document_type_id\":\"1\",\"identity_document_type\":{\"id\":\"1\",\"description\":\"DNI\"},\"number\":\"71261393\",\"name\":\"PEREZ VARGAS, JOSSY CECILIA\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":\"01\",\"department\":{\"id\":\"01\",\"description\":\"AMAZONAS\"},\"province_id\":\"0102\",\"province\":{\"id\":\"0102\",\"description\":\"Bagua\"},\"district_id\":\"010201\",\"district\":{\"id\":\"010201\",\"description\":\"Bagua\"},\"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}}',NULL,'PEN',NULL,1.000,0.00,0.00,0.00,0.00,0.00,0.00,0.00,320.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,320.00,320.00,320.00,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'COT-7-20260629',NULL,NULL,NULL,NULL,NULL,0,NULL,'2026-06-29 20:45:35','2026-06-29 20:45:35',NULL);
COMMIT;

-- Dumped table `quotations` with 7 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 CHECK (json_valid(`item`)),
  `quantity` decimal(12,4) NOT NULL,
  `unit_value` decimal(16,6) NOT NULL,
  `affectation_igv_type_id` varchar(255) NOT NULL,
  `total_base_igv` decimal(12,2) NOT NULL,
  `percentage_igv` decimal(12,2) NOT NULL,
  `total_igv` decimal(12,2) NOT NULL,
  `system_isc_type_id` varchar(255) DEFAULT NULL,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL,
  `price_type_id` varchar(255) NOT NULL,
  `unit_price` decimal(16,6) NOT NULL,
  `total_value` decimal(12,2) NOT NULL,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`attributes`)),
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`discounts`)),
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`charges`)),
  `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 AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

SET autocommit=0;
INSERT INTO `quotation_items` VALUES (1,1,68,'{\"id\":68,\"lots\":[],\"brand\":null,\"extra\":{\"colors\":null,\"CatItemSize\":null,\"CatItemStatus\":null,\"CatItemMoldCavity\":null,\"CatItemMoldProperty\":null,\"CatItemUnitBusiness\":null,\"CatItemProductFamily\":null,\"CatItemUnitsPerPackage\":null,\"CatItemPackageMeasurement\":null},\"model\":null,\"stock\":\"29.0000\",\"colors\":[],\"is_set\":false,\"points\":null,\"barcode\":\"000000000001\",\"has_igv\":true,\"has_isc\":false,\"category\":null,\"lot_code\":null,\"item_code\":null,\"attributes\":[],\"lots_group\":[],\"unit_price\":\"40.0000\",\"warehouses\":[{\"stock\":\"29.0000\",\"checked\":true,\"warehouse_id\":1,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\"}],\"CatItemSize\":[],\"date_of_due\":[],\"description\":\"Administraci\\\\u00f3n de medicamentos 4\",\"internal_id\":null,\"text_filter\":null,\"factory_code\":null,\"lots_enabled\":true,\"presentation\":[],\"unit_type_id\":\"NIU\",\"CatItemStatus\":[],\"payWithPoints\":false,\"percentage_isc\":\"0.00\",\"series_enabled\":false,\"stock_by_extra\":{\"total\":null,\"colors\":{\"total\":null,\"detailed\":[]},\"CatItemSize\":{\"total\":null,\"detailed\":[]},\"CatItemStatus\":{\"total\":null,\"detailed\":[]},\"CatItemMoldCavity\":{\"total\":null,\"detailed\":[]},\"CatItemMoldProperty\":{\"total\":null,\"detailed\":[]},\"CatItemUnitBusiness\":{\"total\":null,\"detailed\":[]},\"CatItemProductFamily\":{\"total\":null,\"detailed\":[]},\"CatItemUnitsPerPackage\":{\"total\":null,\"detailed\":[]},\"CatItemPackageMeasurement\":{\"total\":null,\"detailed\":[]}},\"exchange_points\":false,\"extra_attr_name\":\"Tiempo de entrega\",\"item_unit_types\":[],\"sale_unit_price\":\"40.0000\",\"currency_type_id\":\"PEN\",\"extra_attr_value\":null,\"full_description\":\"Administraci\\\\u00f3n de medicamentos 4\",\"name_product_pdf\":null,\"purchase_has_igv\":true,\"CatItemMoldCavity\":[],\"is_for_production\":false,\"restrict_sale_cpe\":false,\"calculate_quantity\":false,\"quantity_of_points\":0,\"system_isc_type_id\":null,\"CatItemMoldProperty\":[],\"CatItemUnitBusiness\":[],\"purchase_unit_price\":0,\"purchase_unit_value\":0,\"CatItemProductFamily\":[],\"currency_type_symbol\":\"S\\\\/\",\"exchanged_for_points\":false,\"has_plastic_bag_taxes\":false,\"original_unit_type_id\":\"NIU\",\"subject_to_detraction\":false,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\",\"CatItemUnitsPerPackage\":[],\"amount_plastic_bag_taxes\":\"0.10\",\"used_points_for_exchange\":null,\"CatItemPackageMeasurement\":[],\"sale_affectation_igv_type\":{\"id\":\"20\",\"free\":0,\"active\":1,\"description\":\"Inafecto - Operaci\\\\u00f3n Onerosa\",\"exportation\":0},\"change_free_affectation_igv\":false,\"sale_affectation_igv_type_id\":\"20\",\"original_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\"}',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,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,0,NULL),(2,1,63,'{\"id\":63,\"lots\":[],\"brand\":null,\"extra\":{\"colors\":null,\"CatItemSize\":null,\"CatItemStatus\":null,\"CatItemMoldCavity\":null,\"CatItemMoldProperty\":null,\"CatItemUnitBusiness\":null,\"CatItemProductFamily\":null,\"CatItemUnitsPerPackage\":null,\"CatItemPackageMeasurement\":null},\"model\":null,\"stock\":\"-5.0000\",\"colors\":[],\"is_set\":false,\"points\":null,\"barcode\":\"000000000001\",\"has_igv\":true,\"has_isc\":false,\"category\":null,\"lot_code\":null,\"item_code\":null,\"attributes\":[],\"lots_group\":[],\"unit_price\":\"30.0000\",\"warehouses\":[{\"stock\":\"-5.0000\",\"checked\":true,\"warehouse_id\":1,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\"}],\"CatItemSize\":[],\"date_of_due\":[],\"description\":\"Administraci\\\\u00f3n de medicamento 3\",\"internal_id\":null,\"text_filter\":null,\"factory_code\":null,\"lots_enabled\":true,\"presentation\":[],\"unit_type_id\":\"NIU\",\"CatItemStatus\":[],\"payWithPoints\":false,\"percentage_isc\":\"0.00\",\"series_enabled\":false,\"stock_by_extra\":{\"total\":null,\"colors\":{\"total\":null,\"detailed\":[]},\"CatItemSize\":{\"total\":null,\"detailed\":[]},\"CatItemStatus\":{\"total\":null,\"detailed\":[]},\"CatItemMoldCavity\":{\"total\":null,\"detailed\":[]},\"CatItemMoldProperty\":{\"total\":null,\"detailed\":[]},\"CatItemUnitBusiness\":{\"total\":null,\"detailed\":[]},\"CatItemProductFamily\":{\"total\":null,\"detailed\":[]},\"CatItemUnitsPerPackage\":{\"total\":null,\"detailed\":[]},\"CatItemPackageMeasurement\":{\"total\":null,\"detailed\":[]}},\"exchange_points\":false,\"extra_attr_name\":\"Tiempo de entrega\",\"item_unit_types\":[],\"sale_unit_price\":\"30.0000\",\"currency_type_id\":\"PEN\",\"extra_attr_value\":null,\"full_description\":\"Administraci\\\\u00f3n de medicamento 3\",\"name_product_pdf\":null,\"purchase_has_igv\":true,\"CatItemMoldCavity\":[],\"is_for_production\":false,\"restrict_sale_cpe\":false,\"calculate_quantity\":false,\"quantity_of_points\":0,\"system_isc_type_id\":null,\"CatItemMoldProperty\":[],\"CatItemUnitBusiness\":[],\"purchase_unit_price\":0,\"purchase_unit_value\":0,\"CatItemProductFamily\":[],\"currency_type_symbol\":\"S\\\\/\",\"exchanged_for_points\":false,\"has_plastic_bag_taxes\":false,\"original_unit_type_id\":\"NIU\",\"subject_to_detraction\":false,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\",\"CatItemUnitsPerPackage\":[],\"amount_plastic_bag_taxes\":\"0.10\",\"used_points_for_exchange\":null,\"CatItemPackageMeasurement\":[],\"sale_affectation_igv_type\":{\"id\":\"20\",\"free\":0,\"active\":1,\"description\":\"Inafecto - Operaci\\\\u00f3n Onerosa\",\"exportation\":0},\"change_free_affectation_igv\":false,\"sale_affectation_igv_type_id\":\"20\",\"original_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\"}',1.0000,30.000000,'20',30.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',30.000000,30.00,0.00,0.00,30.00,'[]','[]','[]',NULL,0,NULL),(3,1,123,'{\"id\":123,\"lots\":[],\"brand\":null,\"extra\":{\"colors\":null,\"CatItemSize\":null,\"CatItemStatus\":null,\"CatItemMoldCavity\":null,\"CatItemMoldProperty\":null,\"CatItemUnitBusiness\":null,\"CatItemProductFamily\":null,\"CatItemUnitsPerPackage\":null,\"CatItemPackageMeasurement\":null},\"model\":null,\"stock\":\"4.0000\",\"colors\":[],\"is_set\":false,\"points\":null,\"barcode\":\"000000000001\",\"has_igv\":true,\"has_isc\":false,\"category\":null,\"lot_code\":null,\"item_code\":null,\"attributes\":[],\"lots_group\":[],\"unit_price\":\"150.0000\",\"warehouses\":[{\"stock\":\"4.0000\",\"checked\":true,\"warehouse_id\":1,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\"}],\"CatItemSize\":[],\"date_of_due\":[],\"description\":\"Acido hialorunico en capsula\",\"internal_id\":null,\"text_filter\":null,\"factory_code\":null,\"lots_enabled\":true,\"presentation\":[],\"unit_type_id\":\"NIU\",\"CatItemStatus\":[],\"payWithPoints\":false,\"percentage_isc\":\"0.00\",\"series_enabled\":false,\"stock_by_extra\":{\"total\":null,\"colors\":{\"total\":null,\"detailed\":[]},\"CatItemSize\":{\"total\":null,\"detailed\":[]},\"CatItemStatus\":{\"total\":null,\"detailed\":[]},\"CatItemMoldCavity\":{\"total\":null,\"detailed\":[]},\"CatItemMoldProperty\":{\"total\":null,\"detailed\":[]},\"CatItemUnitBusiness\":{\"total\":null,\"detailed\":[]},\"CatItemProductFamily\":{\"total\":null,\"detailed\":[]},\"CatItemUnitsPerPackage\":{\"total\":null,\"detailed\":[]},\"CatItemPackageMeasurement\":{\"total\":null,\"detailed\":[]}},\"exchange_points\":false,\"extra_attr_name\":\"Tiempo de entrega\",\"item_unit_types\":[],\"sale_unit_price\":\"150.0000\",\"currency_type_id\":\"PEN\",\"extra_attr_value\":null,\"full_description\":\"Acido hialorunico en capsula\",\"name_product_pdf\":null,\"purchase_has_igv\":true,\"CatItemMoldCavity\":[],\"is_for_production\":false,\"restrict_sale_cpe\":false,\"calculate_quantity\":false,\"quantity_of_points\":0,\"system_isc_type_id\":null,\"CatItemMoldProperty\":[],\"CatItemUnitBusiness\":[],\"purchase_unit_price\":0,\"purchase_unit_value\":0,\"CatItemProductFamily\":[],\"currency_type_symbol\":\"S\\\\/\",\"exchanged_for_points\":false,\"has_plastic_bag_taxes\":false,\"original_unit_type_id\":\"NIU\",\"subject_to_detraction\":false,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\",\"CatItemUnitsPerPackage\":[],\"amount_plastic_bag_taxes\":\"0.10\",\"used_points_for_exchange\":null,\"CatItemPackageMeasurement\":[],\"sale_affectation_igv_type\":{\"id\":\"20\",\"free\":0,\"active\":1,\"description\":\"Inafecto - Operaci\\\\u00f3n Onerosa\",\"exportation\":0},\"change_free_affectation_igv\":false,\"sale_affectation_igv_type_id\":\"20\",\"original_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\"}',1.0000,150.000000,'20',150.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',150.000000,150.00,0.00,0.00,150.00,'[]','[]','[]',NULL,0,NULL),(4,2,123,'{\"id\":123,\"item_code\":null,\"full_description\":\"Acido hialorunico en capsula -\",\"model\":null,\"brand\":null,\"text_filter\":null,\"stock_by_extra\":{\"total\":null,\"CatItemStatus\":{\"detailed\":[],\"total\":null},\"CatItemUnitBusiness\":{\"detailed\":[],\"total\":null},\"CatItemMoldCavity\":{\"detailed\":[],\"total\":null},\"CatItemPackageMeasurement\":{\"detailed\":[],\"total\":null},\"CatItemUnitsPerPackage\":{\"detailed\":[],\"total\":null},\"CatItemMoldProperty\":{\"detailed\":[],\"total\":null},\"CatItemProductFamily\":{\"detailed\":[],\"total\":null},\"colors\":{\"detailed\":[],\"total\":null},\"CatItemSize\":{\"detailed\":[],\"total\":null}},\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\",\"extra\":{\"colors\":null,\"CatItemUnitsPerPackage\":null,\"CatItemMoldProperty\":null,\"CatItemProductFamily\":null,\"CatItemMoldCavity\":null,\"CatItemPackageMeasurement\":null,\"CatItemStatus\":null,\"CatItemSize\":null,\"CatItemUnitBusiness\":null},\"category\":null,\"stock\":\"4.0000\",\"internal_id\":null,\"description\":\"Acido hialorunico en capsula\",\"currency_type_id\":\"PEN\",\"currency_type_symbol\":\"S\\\\/\",\"has_igv\":true,\"sale_unit_price\":\"150.0000\",\"purchase_has_igv\":true,\"purchase_unit_value\":0,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"original_unit_type_id\":\"NIU\",\"sale_affectation_igv_type\":{\"id\":\"20\",\"active\":1,\"exportation\":0,\"free\":0,\"description\":\"Exonerado - Operaci\\\\u00f3n Onerosa\"},\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"colors\":[],\"CatItemUnitsPerPackage\":[],\"CatItemMoldProperty\":[],\"CatItemProductFamily\":[],\"CatItemMoldCavity\":[],\"CatItemPackageMeasurement\":[],\"CatItemStatus\":[],\"CatItemSize\":[],\"CatItemUnitBusiness\":[],\"item_unit_types\":[],\"warehouses\":[{\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\",\"stock\":\"4.0000\",\"warehouse_id\":1,\"checked\":true}],\"attributes\":null,\"lots_group\":[],\"lots\":[],\"lots_enabled\":false,\"series_enabled\":false,\"is_set\":false,\"lot_code\":null,\"date_of_due\":null,\"barcode\":\"000000000123\",\"change_free_affectation_igv\":false,\"original_affectation_igv_type_id\":\"20\",\"payWithPoints\":false,\"points\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"is_for_production\":false,\"subject_to_detraction\":false,\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"factory_code\":null,\"restrict_sale_cpe\":false,\"name_product_pdf\":null,\"unit_price\":\"150.0000\",\"extra_attr_name\":\"Tiempo de entrega\",\"extra_attr_value\":null,\"presentation\":[]}',1.0000,150.000000,'20',150.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',150.000000,150.00,0.00,0.00,150.00,'[]','[]','[]',NULL,NULL,NULL),(5,2,68,'{\"id\":68,\"item_code\":null,\"full_description\":\"Administraci\\\\u00f3n de medicamentos 4 -\",\"model\":null,\"brand\":null,\"text_filter\":null,\"stock_by_extra\":{\"total\":-2,\"CatItemStatus\":{\"detailed\":[],\"total\":null},\"CatItemUnitBusiness\":{\"detailed\":[],\"total\":null},\"CatItemMoldCavity\":{\"detailed\":[],\"total\":null},\"CatItemPackageMeasurement\":{\"detailed\":[],\"total\":null},\"CatItemUnitsPerPackage\":{\"detailed\":[],\"total\":null},\"CatItemMoldProperty\":{\"detailed\":[],\"total\":null},\"CatItemProductFamily\":{\"detailed\":[],\"total\":null},\"colors\":{\"detailed\":[],\"total\":null},\"CatItemSize\":{\"detailed\":[],\"total\":null}},\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\",\"extra\":{\"colors\":null,\"CatItemUnitsPerPackage\":null,\"CatItemMoldProperty\":null,\"CatItemProductFamily\":null,\"CatItemMoldCavity\":null,\"CatItemPackageMeasurement\":null,\"CatItemStatus\":null,\"CatItemSize\":null,\"CatItemUnitBusiness\":null},\"category\":null,\"stock\":\"29.0000\",\"internal_id\":null,\"description\":\"Administraci\\\\u00f3n de medicamentos 4\",\"currency_type_id\":\"PEN\",\"currency_type_symbol\":\"S\\\\/\",\"has_igv\":true,\"sale_unit_price\":\"40.0000\",\"purchase_has_igv\":true,\"purchase_unit_value\":0,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"original_unit_type_id\":\"NIU\",\"sale_affectation_igv_type\":{\"id\":\"20\",\"active\":1,\"exportation\":0,\"free\":0,\"description\":\"Exonerado - Operaci\\\\u00f3n Onerosa\"},\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"colors\":[],\"CatItemUnitsPerPackage\":[],\"CatItemMoldProperty\":[],\"CatItemProductFamily\":[],\"CatItemMoldCavity\":[],\"CatItemPackageMeasurement\":[],\"CatItemStatus\":[],\"CatItemSize\":[],\"CatItemUnitBusiness\":[],\"item_unit_types\":[],\"warehouses\":[{\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\",\"stock\":\"29.0000\",\"warehouse_id\":1,\"checked\":true}],\"attributes\":[],\"lots_group\":[],\"lots\":[],\"lots_enabled\":false,\"series_enabled\":false,\"is_set\":false,\"lot_code\":null,\"date_of_due\":null,\"barcode\":\"000000000068\",\"change_free_affectation_igv\":false,\"original_affectation_igv_type_id\":\"20\",\"payWithPoints\":false,\"points\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"is_for_production\":false,\"subject_to_detraction\":false,\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"factory_code\":null,\"restrict_sale_cpe\":false,\"name_product_pdf\":null,\"unit_price\":\"40.0000\",\"extra_attr_name\":\"Tiempo de entrega\",\"extra_attr_value\":null,\"presentation\":[]}',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,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,NULL,NULL),(6,3,123,'{\"id\":123,\"lots\":[],\"brand\":null,\"extra\":{\"colors\":null,\"CatItemSize\":null,\"CatItemStatus\":null,\"CatItemMoldCavity\":null,\"CatItemMoldProperty\":null,\"CatItemUnitBusiness\":null,\"CatItemProductFamily\":null,\"CatItemUnitsPerPackage\":null,\"CatItemPackageMeasurement\":null},\"model\":null,\"stock\":\"4.0000\",\"colors\":[],\"is_set\":false,\"points\":null,\"barcode\":\"000000000001\",\"has_igv\":true,\"has_isc\":false,\"category\":null,\"lot_code\":null,\"item_code\":null,\"attributes\":[],\"lots_group\":[],\"unit_price\":\"150.0000\",\"warehouses\":[{\"stock\":\"4.0000\",\"checked\":true,\"warehouse_id\":1,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\"}],\"CatItemSize\":[],\"date_of_due\":[],\"description\":\"Acido hialorunico en capsula\",\"internal_id\":null,\"text_filter\":null,\"factory_code\":null,\"lots_enabled\":true,\"presentation\":[],\"unit_type_id\":\"NIU\",\"CatItemStatus\":[],\"payWithPoints\":false,\"percentage_isc\":\"0.00\",\"series_enabled\":false,\"stock_by_extra\":{\"total\":null,\"colors\":{\"total\":null,\"detailed\":[]},\"CatItemSize\":{\"total\":null,\"detailed\":[]},\"CatItemStatus\":{\"total\":null,\"detailed\":[]},\"CatItemMoldCavity\":{\"total\":null,\"detailed\":[]},\"CatItemMoldProperty\":{\"total\":null,\"detailed\":[]},\"CatItemUnitBusiness\":{\"total\":null,\"detailed\":[]},\"CatItemProductFamily\":{\"total\":null,\"detailed\":[]},\"CatItemUnitsPerPackage\":{\"total\":null,\"detailed\":[]},\"CatItemPackageMeasurement\":{\"total\":null,\"detailed\":[]}},\"exchange_points\":false,\"extra_attr_name\":\"Tiempo de entrega\",\"item_unit_types\":[],\"sale_unit_price\":\"150.0000\",\"currency_type_id\":\"PEN\",\"extra_attr_value\":null,\"full_description\":\"Acido hialorunico en capsula\",\"name_product_pdf\":null,\"purchase_has_igv\":true,\"CatItemMoldCavity\":[],\"is_for_production\":false,\"restrict_sale_cpe\":false,\"calculate_quantity\":false,\"quantity_of_points\":0,\"system_isc_type_id\":null,\"CatItemMoldProperty\":[],\"CatItemUnitBusiness\":[],\"purchase_unit_price\":0,\"purchase_unit_value\":0,\"CatItemProductFamily\":[],\"currency_type_symbol\":\"S\\\\/\",\"exchanged_for_points\":false,\"has_plastic_bag_taxes\":false,\"original_unit_type_id\":\"NIU\",\"subject_to_detraction\":false,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\",\"CatItemUnitsPerPackage\":[],\"amount_plastic_bag_taxes\":\"0.10\",\"used_points_for_exchange\":null,\"CatItemPackageMeasurement\":[],\"sale_affectation_igv_type\":{\"id\":\"20\",\"free\":0,\"active\":1,\"description\":\"Inafecto - Operaci\\\\u00f3n Onerosa\",\"exportation\":0},\"change_free_affectation_igv\":false,\"sale_affectation_igv_type_id\":\"20\",\"original_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\"}',1.0000,150.000000,'20',150.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',150.000000,150.00,0.00,0.00,150.00,'[]','[]','[]',NULL,0,NULL),(7,4,298,'{\"id\":298,\"lots\":[],\"brand\":null,\"extra\":{\"colors\":null,\"CatItemSize\":null,\"CatItemStatus\":null,\"CatItemMoldCavity\":null,\"CatItemMoldProperty\":null,\"CatItemUnitBusiness\":null,\"CatItemProductFamily\":null,\"CatItemUnitsPerPackage\":null,\"CatItemPackageMeasurement\":null},\"model\":null,\"stock\":\"-1.0000\",\"colors\":[],\"is_set\":false,\"points\":null,\"barcode\":\"000000000001\",\"has_igv\":true,\"has_isc\":false,\"category\":null,\"lot_code\":null,\"item_code\":null,\"attributes\":[],\"lots_group\":[],\"unit_price\":\"1.0000\",\"warehouses\":[{\"stock\":\"-1.0000\",\"checked\":true,\"warehouse_id\":1,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\"}],\"CatItemSize\":[],\"date_of_due\":[],\"description\":\"control\",\"internal_id\":null,\"text_filter\":null,\"factory_code\":null,\"lots_enabled\":true,\"presentation\":[],\"unit_type_id\":\"NIU\",\"CatItemStatus\":[],\"payWithPoints\":false,\"percentage_isc\":\"0.00\",\"series_enabled\":false,\"stock_by_extra\":{\"total\":null,\"colors\":{\"total\":null,\"detailed\":[]},\"CatItemSize\":{\"total\":null,\"detailed\":[]},\"CatItemStatus\":{\"total\":null,\"detailed\":[]},\"CatItemMoldCavity\":{\"total\":null,\"detailed\":[]},\"CatItemMoldProperty\":{\"total\":null,\"detailed\":[]},\"CatItemUnitBusiness\":{\"total\":null,\"detailed\":[]},\"CatItemProductFamily\":{\"total\":null,\"detailed\":[]},\"CatItemUnitsPerPackage\":{\"total\":null,\"detailed\":[]},\"CatItemPackageMeasurement\":{\"total\":null,\"detailed\":[]}},\"exchange_points\":false,\"extra_attr_name\":\"Tiempo de entrega\",\"item_unit_types\":[],\"sale_unit_price\":\"1.0000\",\"currency_type_id\":\"PEN\",\"extra_attr_value\":null,\"full_description\":\"control\",\"name_product_pdf\":null,\"purchase_has_igv\":true,\"CatItemMoldCavity\":[],\"is_for_production\":false,\"restrict_sale_cpe\":false,\"calculate_quantity\":false,\"quantity_of_points\":0,\"system_isc_type_id\":null,\"CatItemMoldProperty\":[],\"CatItemUnitBusiness\":[],\"purchase_unit_price\":0,\"purchase_unit_value\":0,\"CatItemProductFamily\":[],\"currency_type_symbol\":\"S\\\\/\",\"exchanged_for_points\":false,\"has_plastic_bag_taxes\":false,\"original_unit_type_id\":\"NIU\",\"subject_to_detraction\":false,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\",\"CatItemUnitsPerPackage\":[],\"amount_plastic_bag_taxes\":\"0.10\",\"used_points_for_exchange\":null,\"CatItemPackageMeasurement\":[],\"sale_affectation_igv_type\":{\"id\":\"20\",\"free\":0,\"active\":1,\"description\":\"Inafecto - Operaci\\\\u00f3n Onerosa\",\"exportation\":0},\"change_free_affectation_igv\":false,\"sale_affectation_igv_type_id\":\"20\",\"original_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\"}',1.0000,1.000000,'20',1.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.000000,1.00,0.00,0.00,1.00,'[]','[]','[]',NULL,0,NULL),(8,4,123,'{\"id\":123,\"lots\":[],\"brand\":null,\"extra\":{\"colors\":null,\"CatItemSize\":null,\"CatItemStatus\":null,\"CatItemMoldCavity\":null,\"CatItemMoldProperty\":null,\"CatItemUnitBusiness\":null,\"CatItemProductFamily\":null,\"CatItemUnitsPerPackage\":null,\"CatItemPackageMeasurement\":null},\"model\":null,\"stock\":\"4.0000\",\"colors\":[],\"is_set\":false,\"points\":null,\"barcode\":\"000000000001\",\"has_igv\":true,\"has_isc\":false,\"category\":null,\"lot_code\":null,\"item_code\":null,\"attributes\":[],\"lots_group\":[],\"unit_price\":\"150.0000\",\"warehouses\":[{\"stock\":\"4.0000\",\"checked\":true,\"warehouse_id\":1,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\"}],\"CatItemSize\":[],\"date_of_due\":[],\"description\":\"Acido hialorunico en capsula\",\"internal_id\":null,\"text_filter\":null,\"factory_code\":null,\"lots_enabled\":true,\"presentation\":[],\"unit_type_id\":\"NIU\",\"CatItemStatus\":[],\"payWithPoints\":false,\"percentage_isc\":\"0.00\",\"series_enabled\":false,\"stock_by_extra\":{\"total\":null,\"colors\":{\"total\":null,\"detailed\":[]},\"CatItemSize\":{\"total\":null,\"detailed\":[]},\"CatItemStatus\":{\"total\":null,\"detailed\":[]},\"CatItemMoldCavity\":{\"total\":null,\"detailed\":[]},\"CatItemMoldProperty\":{\"total\":null,\"detailed\":[]},\"CatItemUnitBusiness\":{\"total\":null,\"detailed\":[]},\"CatItemProductFamily\":{\"total\":null,\"detailed\":[]},\"CatItemUnitsPerPackage\":{\"total\":null,\"detailed\":[]},\"CatItemPackageMeasurement\":{\"total\":null,\"detailed\":[]}},\"exchange_points\":false,\"extra_attr_name\":\"Tiempo de entrega\",\"item_unit_types\":[],\"sale_unit_price\":\"150.0000\",\"currency_type_id\":\"PEN\",\"extra_attr_value\":null,\"full_description\":\"Acido hialorunico en capsula\",\"name_product_pdf\":null,\"purchase_has_igv\":true,\"CatItemMoldCavity\":[],\"is_for_production\":false,\"restrict_sale_cpe\":false,\"calculate_quantity\":false,\"quantity_of_points\":0,\"system_isc_type_id\":null,\"CatItemMoldProperty\":[],\"CatItemUnitBusiness\":[],\"purchase_unit_price\":0,\"purchase_unit_value\":0,\"CatItemProductFamily\":[],\"currency_type_symbol\":\"S\\\\/\",\"exchanged_for_points\":false,\"has_plastic_bag_taxes\":false,\"original_unit_type_id\":\"NIU\",\"subject_to_detraction\":false,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\",\"CatItemUnitsPerPackage\":[],\"amount_plastic_bag_taxes\":\"0.10\",\"used_points_for_exchange\":null,\"CatItemPackageMeasurement\":[],\"sale_affectation_igv_type\":{\"id\":\"20\",\"free\":0,\"active\":1,\"description\":\"Inafecto - Operaci\\\\u00f3n Onerosa\",\"exportation\":0},\"change_free_affectation_igv\":false,\"sale_affectation_igv_type_id\":\"20\",\"original_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\"}',1.0000,150.000000,'20',150.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',150.000000,150.00,0.00,0.00,150.00,'[]','[]','[]',NULL,0,NULL),(9,5,123,'{\"id\":123,\"item_code\":null,\"full_description\":\"Acido hialorunico en capsula -\",\"model\":null,\"brand\":null,\"text_filter\":null,\"stock_by_extra\":{\"total\":null,\"CatItemStatus\":{\"detailed\":[],\"total\":null},\"CatItemUnitBusiness\":{\"detailed\":[],\"total\":null},\"CatItemMoldCavity\":{\"detailed\":[],\"total\":null},\"CatItemPackageMeasurement\":{\"detailed\":[],\"total\":null},\"CatItemUnitsPerPackage\":{\"detailed\":[],\"total\":null},\"CatItemMoldProperty\":{\"detailed\":[],\"total\":null},\"CatItemProductFamily\":{\"detailed\":[],\"total\":null},\"colors\":{\"detailed\":[],\"total\":null},\"CatItemSize\":{\"detailed\":[],\"total\":null}},\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\",\"extra\":{\"colors\":null,\"CatItemUnitsPerPackage\":null,\"CatItemMoldProperty\":null,\"CatItemProductFamily\":null,\"CatItemMoldCavity\":null,\"CatItemPackageMeasurement\":null,\"CatItemStatus\":null,\"CatItemSize\":null,\"CatItemUnitBusiness\":null},\"category\":null,\"stock\":\"4.0000\",\"internal_id\":null,\"description\":\"Acido hialorunico en capsula\",\"currency_type_id\":\"PEN\",\"currency_type_symbol\":\"S\\\\/\",\"has_igv\":true,\"sale_unit_price\":\"150.0000\",\"purchase_has_igv\":true,\"purchase_unit_value\":0,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"original_unit_type_id\":\"NIU\",\"sale_affectation_igv_type\":{\"id\":\"20\",\"active\":1,\"exportation\":0,\"free\":0,\"description\":\"Exonerado - Operaci\\\\u00f3n Onerosa\"},\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"colors\":[],\"CatItemUnitsPerPackage\":[],\"CatItemMoldProperty\":[],\"CatItemProductFamily\":[],\"CatItemMoldCavity\":[],\"CatItemPackageMeasurement\":[],\"CatItemStatus\":[],\"CatItemSize\":[],\"CatItemUnitBusiness\":[],\"item_unit_types\":[],\"warehouses\":[{\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\",\"stock\":\"4.0000\",\"warehouse_id\":1,\"checked\":true}],\"attributes\":null,\"lots_group\":[],\"lots\":[],\"lots_enabled\":false,\"series_enabled\":false,\"is_set\":false,\"lot_code\":null,\"date_of_due\":null,\"barcode\":\"000000000123\",\"change_free_affectation_igv\":false,\"original_affectation_igv_type_id\":\"20\",\"payWithPoints\":false,\"points\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"is_for_production\":false,\"subject_to_detraction\":false,\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"factory_code\":null,\"restrict_sale_cpe\":false,\"name_product_pdf\":null,\"unit_price\":\"150.0000\",\"extra_attr_name\":\"Tiempo de entrega\",\"extra_attr_value\":null,\"presentation\":[]}',1.0000,150.000000,'20',150.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',150.000000,150.00,0.00,0.00,150.00,'[]','[]','[]',NULL,NULL,NULL),(10,6,33,'{\"id\":33,\"lots\":[],\"brand\":null,\"extra\":{\"colors\":null,\"CatItemSize\":null,\"CatItemStatus\":null,\"CatItemMoldCavity\":null,\"CatItemMoldProperty\":null,\"CatItemUnitBusiness\":null,\"CatItemProductFamily\":null,\"CatItemUnitsPerPackage\":null,\"CatItemPackageMeasurement\":null},\"model\":null,\"stock\":\"1.0000\",\"colors\":[],\"is_set\":false,\"points\":null,\"barcode\":\"000000000001\",\"has_igv\":true,\"has_isc\":false,\"category\":null,\"lot_code\":null,\"item_code\":null,\"attributes\":[],\"lots_group\":[],\"unit_price\":\"150.0000\",\"warehouses\":[{\"stock\":\"1.0000\",\"checked\":true,\"warehouse_id\":1,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\"}],\"CatItemSize\":[],\"date_of_due\":[],\"description\":\"Col\\\\u00e1geno Hidrolizado\",\"internal_id\":null,\"text_filter\":null,\"factory_code\":null,\"lots_enabled\":true,\"presentation\":[],\"unit_type_id\":\"NIU\",\"CatItemStatus\":[],\"payWithPoints\":false,\"percentage_isc\":\"0.00\",\"series_enabled\":false,\"stock_by_extra\":{\"total\":null,\"colors\":{\"total\":null,\"detailed\":[]},\"CatItemSize\":{\"total\":null,\"detailed\":[]},\"CatItemStatus\":{\"total\":null,\"detailed\":[]},\"CatItemMoldCavity\":{\"total\":null,\"detailed\":[]},\"CatItemMoldProperty\":{\"total\":null,\"detailed\":[]},\"CatItemUnitBusiness\":{\"total\":null,\"detailed\":[]},\"CatItemProductFamily\":{\"total\":null,\"detailed\":[]},\"CatItemUnitsPerPackage\":{\"total\":null,\"detailed\":[]},\"CatItemPackageMeasurement\":{\"total\":null,\"detailed\":[]}},\"exchange_points\":false,\"extra_attr_name\":\"Tiempo de entrega\",\"item_unit_types\":[],\"sale_unit_price\":\"150.0000\",\"currency_type_id\":\"PEN\",\"extra_attr_value\":null,\"full_description\":\"Col\\\\u00e1geno Hidrolizado\",\"name_product_pdf\":null,\"purchase_has_igv\":true,\"CatItemMoldCavity\":[],\"is_for_production\":false,\"restrict_sale_cpe\":false,\"calculate_quantity\":false,\"quantity_of_points\":0,\"system_isc_type_id\":null,\"CatItemMoldProperty\":[],\"CatItemUnitBusiness\":[],\"purchase_unit_price\":0,\"purchase_unit_value\":0,\"CatItemProductFamily\":[],\"currency_type_symbol\":\"S\\\\/\",\"exchanged_for_points\":false,\"has_plastic_bag_taxes\":false,\"original_unit_type_id\":\"NIU\",\"subject_to_detraction\":false,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\",\"CatItemUnitsPerPackage\":[],\"amount_plastic_bag_taxes\":\"0.10\",\"used_points_for_exchange\":null,\"CatItemPackageMeasurement\":[],\"sale_affectation_igv_type\":{\"id\":\"10\",\"free\":0,\"active\":1,\"description\":\"Inafecto - Operaci\\\\u00f3n Onerosa\",\"exportation\":0},\"change_free_affectation_igv\":false,\"sale_affectation_igv_type_id\":\"10\",\"original_affectation_igv_type_id\":\"10\",\"purchase_affectation_igv_type_id\":\"10\"}',1.0000,127.118644,'10',127.12,18.00,22.88,NULL,0.00,0.00,0.00,0.00,0.00,0.00,22.88,'01',150.000000,127.12,0.00,0.00,150.00,'[]','[]','[]',NULL,0,NULL),(11,6,26,'{\"id\":26,\"lots\":[],\"brand\":null,\"extra\":{\"colors\":null,\"CatItemSize\":null,\"CatItemStatus\":null,\"CatItemMoldCavity\":null,\"CatItemMoldProperty\":null,\"CatItemUnitBusiness\":null,\"CatItemProductFamily\":null,\"CatItemUnitsPerPackage\":null,\"CatItemPackageMeasurement\":null},\"model\":null,\"stock\":\"3.0000\",\"colors\":[],\"is_set\":false,\"points\":null,\"barcode\":\"000000000001\",\"has_igv\":true,\"has_isc\":false,\"category\":null,\"lot_code\":null,\"item_code\":null,\"attributes\":[],\"lots_group\":[],\"unit_price\":\"35.0000\",\"warehouses\":[{\"stock\":\"3.0000\",\"checked\":true,\"warehouse_id\":1,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\"}],\"CatItemSize\":[],\"date_of_due\":[],\"description\":\"Collarin\",\"internal_id\":null,\"text_filter\":null,\"factory_code\":null,\"lots_enabled\":true,\"presentation\":[],\"unit_type_id\":\"NIU\",\"CatItemStatus\":[],\"payWithPoints\":false,\"percentage_isc\":\"0.00\",\"series_enabled\":false,\"stock_by_extra\":{\"total\":null,\"colors\":{\"total\":null,\"detailed\":[]},\"CatItemSize\":{\"total\":null,\"detailed\":[]},\"CatItemStatus\":{\"total\":null,\"detailed\":[]},\"CatItemMoldCavity\":{\"total\":null,\"detailed\":[]},\"CatItemMoldProperty\":{\"total\":null,\"detailed\":[]},\"CatItemUnitBusiness\":{\"total\":null,\"detailed\":[]},\"CatItemProductFamily\":{\"total\":null,\"detailed\":[]},\"CatItemUnitsPerPackage\":{\"total\":null,\"detailed\":[]},\"CatItemPackageMeasurement\":{\"total\":null,\"detailed\":[]}},\"exchange_points\":false,\"extra_attr_name\":\"Tiempo de entrega\",\"item_unit_types\":[],\"sale_unit_price\":\"35.0000\",\"currency_type_id\":\"PEN\",\"extra_attr_value\":null,\"full_description\":\"Collarin\",\"name_product_pdf\":null,\"purchase_has_igv\":true,\"CatItemMoldCavity\":[],\"is_for_production\":false,\"restrict_sale_cpe\":false,\"calculate_quantity\":false,\"quantity_of_points\":0,\"system_isc_type_id\":null,\"CatItemMoldProperty\":[],\"CatItemUnitBusiness\":[],\"purchase_unit_price\":0,\"purchase_unit_value\":0,\"CatItemProductFamily\":[],\"currency_type_symbol\":\"S\\\\/\",\"exchanged_for_points\":false,\"has_plastic_bag_taxes\":false,\"original_unit_type_id\":\"NIU\",\"subject_to_detraction\":false,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\",\"CatItemUnitsPerPackage\":[],\"amount_plastic_bag_taxes\":\"0.10\",\"used_points_for_exchange\":null,\"CatItemPackageMeasurement\":[],\"sale_affectation_igv_type\":{\"id\":\"10\",\"free\":0,\"active\":1,\"description\":\"Inafecto - Operaci\\\\u00f3n Onerosa\",\"exportation\":0},\"change_free_affectation_igv\":false,\"sale_affectation_igv_type_id\":\"10\",\"original_affectation_igv_type_id\":\"10\",\"purchase_affectation_igv_type_id\":\"10\"}',1.0000,29.661017,'10',29.66,18.00,5.34,NULL,0.00,0.00,0.00,0.00,0.00,0.00,5.34,'01',35.000000,29.66,0.00,0.00,35.00,'[]','[]','[]',NULL,0,NULL),(12,7,131,'{\"id\":131,\"lots\":[],\"brand\":null,\"extra\":{\"colors\":null,\"CatItemSize\":null,\"CatItemStatus\":null,\"CatItemMoldCavity\":null,\"CatItemMoldProperty\":null,\"CatItemUnitBusiness\":null,\"CatItemProductFamily\":null,\"CatItemUnitsPerPackage\":null,\"CatItemPackageMeasurement\":null},\"model\":null,\"stock\":\"-5.0000\",\"colors\":[],\"is_set\":false,\"points\":null,\"barcode\":\"000000000001\",\"has_igv\":true,\"has_isc\":false,\"category\":null,\"lot_code\":null,\"item_code\":null,\"attributes\":[],\"lots_group\":[],\"unit_price\":\"170.0000\",\"warehouses\":[{\"stock\":\"-5.0000\",\"checked\":true,\"warehouse_id\":1,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\"}],\"CatItemSize\":[],\"date_of_due\":[],\"description\":\"Administraci\\\\u00f3n de medicamento 17\",\"internal_id\":null,\"text_filter\":null,\"factory_code\":null,\"lots_enabled\":true,\"presentation\":[],\"unit_type_id\":\"NIU\",\"CatItemStatus\":[],\"payWithPoints\":false,\"percentage_isc\":\"0.00\",\"series_enabled\":false,\"stock_by_extra\":{\"total\":null,\"colors\":{\"total\":null,\"detailed\":[]},\"CatItemSize\":{\"total\":null,\"detailed\":[]},\"CatItemStatus\":{\"total\":null,\"detailed\":[]},\"CatItemMoldCavity\":{\"total\":null,\"detailed\":[]},\"CatItemMoldProperty\":{\"total\":null,\"detailed\":[]},\"CatItemUnitBusiness\":{\"total\":null,\"detailed\":[]},\"CatItemProductFamily\":{\"total\":null,\"detailed\":[]},\"CatItemUnitsPerPackage\":{\"total\":null,\"detailed\":[]},\"CatItemPackageMeasurement\":{\"total\":null,\"detailed\":[]}},\"exchange_points\":false,\"extra_attr_name\":\"Tiempo de entrega\",\"item_unit_types\":[],\"sale_unit_price\":\"170.0000\",\"currency_type_id\":\"PEN\",\"extra_attr_value\":null,\"full_description\":\"Administraci\\\\u00f3n de medicamento 17\",\"name_product_pdf\":null,\"purchase_has_igv\":true,\"CatItemMoldCavity\":[],\"is_for_production\":false,\"restrict_sale_cpe\":false,\"calculate_quantity\":false,\"quantity_of_points\":0,\"system_isc_type_id\":null,\"CatItemMoldProperty\":[],\"CatItemUnitBusiness\":[],\"purchase_unit_price\":0,\"purchase_unit_value\":0,\"CatItemProductFamily\":[],\"currency_type_symbol\":\"S\\\\/\",\"exchanged_for_points\":false,\"has_plastic_bag_taxes\":false,\"original_unit_type_id\":\"NIU\",\"subject_to_detraction\":false,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\",\"CatItemUnitsPerPackage\":[],\"amount_plastic_bag_taxes\":\"0.10\",\"used_points_for_exchange\":null,\"CatItemPackageMeasurement\":[],\"sale_affectation_igv_type\":{\"id\":\"20\",\"free\":0,\"active\":1,\"description\":\"Inafecto - Operaci\\\\u00f3n Onerosa\",\"exportation\":0},\"change_free_affectation_igv\":false,\"sale_affectation_igv_type_id\":\"20\",\"original_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\"}',1.0000,170.000000,'20',170.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',170.000000,170.00,0.00,0.00,170.00,'[]','[]','[]',NULL,0,NULL),(13,7,123,'{\"id\":123,\"lots\":[],\"brand\":null,\"extra\":{\"colors\":null,\"CatItemSize\":null,\"CatItemStatus\":null,\"CatItemMoldCavity\":null,\"CatItemMoldProperty\":null,\"CatItemUnitBusiness\":null,\"CatItemProductFamily\":null,\"CatItemUnitsPerPackage\":null,\"CatItemPackageMeasurement\":null},\"model\":null,\"stock\":\"4.0000\",\"colors\":[],\"is_set\":false,\"points\":null,\"barcode\":\"000000000001\",\"has_igv\":true,\"has_isc\":false,\"category\":null,\"lot_code\":null,\"item_code\":null,\"attributes\":[],\"lots_group\":[],\"unit_price\":\"150.0000\",\"warehouses\":[{\"stock\":\"4.0000\",\"checked\":true,\"warehouse_id\":1,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\"}],\"CatItemSize\":[],\"date_of_due\":[],\"description\":\"Acido hialorunico en capsula\",\"internal_id\":null,\"text_filter\":null,\"factory_code\":null,\"lots_enabled\":true,\"presentation\":[],\"unit_type_id\":\"NIU\",\"CatItemStatus\":[],\"payWithPoints\":false,\"percentage_isc\":\"0.00\",\"series_enabled\":false,\"stock_by_extra\":{\"total\":null,\"colors\":{\"total\":null,\"detailed\":[]},\"CatItemSize\":{\"total\":null,\"detailed\":[]},\"CatItemStatus\":{\"total\":null,\"detailed\":[]},\"CatItemMoldCavity\":{\"total\":null,\"detailed\":[]},\"CatItemMoldProperty\":{\"total\":null,\"detailed\":[]},\"CatItemUnitBusiness\":{\"total\":null,\"detailed\":[]},\"CatItemProductFamily\":{\"total\":null,\"detailed\":[]},\"CatItemUnitsPerPackage\":{\"total\":null,\"detailed\":[]},\"CatItemPackageMeasurement\":{\"total\":null,\"detailed\":[]}},\"exchange_points\":false,\"extra_attr_name\":\"Tiempo de entrega\",\"item_unit_types\":[],\"sale_unit_price\":\"150.0000\",\"currency_type_id\":\"PEN\",\"extra_attr_value\":null,\"full_description\":\"Acido hialorunico en capsula\",\"name_product_pdf\":null,\"purchase_has_igv\":true,\"CatItemMoldCavity\":[],\"is_for_production\":false,\"restrict_sale_cpe\":false,\"calculate_quantity\":false,\"quantity_of_points\":0,\"system_isc_type_id\":null,\"CatItemMoldProperty\":[],\"CatItemUnitBusiness\":[],\"purchase_unit_price\":0,\"purchase_unit_value\":0,\"CatItemProductFamily\":[],\"currency_type_symbol\":\"S\\\\/\",\"exchanged_for_points\":false,\"has_plastic_bag_taxes\":false,\"original_unit_type_id\":\"NIU\",\"subject_to_detraction\":false,\"warehouse_description\":\"Almac\\\\u00e9n Oficina Principal\",\"CatItemUnitsPerPackage\":[],\"amount_plastic_bag_taxes\":\"0.10\",\"used_points_for_exchange\":null,\"CatItemPackageMeasurement\":[],\"sale_affectation_igv_type\":{\"id\":\"20\",\"free\":0,\"active\":1,\"description\":\"Inafecto - Operaci\\\\u00f3n Onerosa\",\"exportation\":0},\"change_free_affectation_igv\":false,\"sale_affectation_igv_type_id\":\"20\",\"original_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\"}',1.0000,150.000000,'20',150.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',150.000000,150.00,0.00,0.00,150.00,'[]','[]','[]',NULL,0,NULL);
COMMIT;

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

--
