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

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

INSERT INTO `mobile_physical_count_events` VALUES
(1,3,NULL,1,24,NULL,NULL,NULL,1.0000,1.0000,1.0000,'manual',NULL,'2026-05-20 19:52:10'),
(2,3,NULL,1,24,NULL,NULL,NULL,1.0000,1.0000,1.0000,'manual',NULL,'2026-05-20 19:52:11'),
(3,5,2,1,23,NULL,7,NULL,1.0000,1.0000,1.0000,'manual',NULL,'2026-05-20 23:06:44'),
(4,5,2,1,23,NULL,7,NULL,1.0000,0.0000,0.0000,'submit','Conteo enviado a revision web.','2026-05-20 23:06:53'),
(5,5,2,1,23,NULL,7,NULL,1.0000,0.0000,0.0000,'request_correction','Conteo devuelto a correccion.','2026-05-20 23:07:34'),
(6,5,2,1,23,NULL,7,NULL,1.0000,0.0000,0.0000,'request_correction','Conteo devuelto a correccion.','2026-05-20 23:08:26'),
(7,1,3,1,24,NULL,8,NULL,1.0000,1.0000,1.0000,'manual',NULL,'2026-05-21 00:02:59'),
(8,3,NULL,1,24,NULL,NULL,NULL,1.0000,0.0000,-2.0000,'remove',NULL,'2026-05-21 14:09:20');
COMMIT;

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

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

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

INSERT INTO `mobile_physical_count_lines` VALUES
(2,5,23,NULL,7,'HR-A2','23|lot:7',1.0000,200.0000,-199.0000,NULL,1,NULL,1,'2026-05-20 23:06:44','2026-05-20 23:06:44','2026-05-20 23:06:44'),
(3,1,24,NULL,8,'ND-B1','24|lot:8',1.0000,70.0000,-69.0000,NULL,1,NULL,1,'2026-05-21 00:02:59','2026-05-21 00:02:59','2026-05-21 00:02:59');
COMMIT;

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

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

INSERT INTO `mobile_physical_counts` VALUES
(1,1,1,1,'draft',NULL,'2026-05-20 18:48:23',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2026-05-20 18:48:23','2026-05-20 18:48:23'),
(2,1,1,1,'draft',NULL,'2026-05-20 19:05:58',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2026-05-20 19:05:58','2026-05-20 19:05:58'),
(3,1,1,1,'draft',NULL,'2026-05-20 19:51:53',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2026-05-20 19:51:53','2026-05-20 19:51:53'),
(4,1,1,1,'draft',NULL,'2026-05-20 19:55:28',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2026-05-20 19:55:28','2026-05-20 19:55:28'),
(5,1,1,1,'draft',NULL,'2026-05-20 22:52:29',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2026-05-20 22:52:29','2026-05-20 23:07:34'),
(6,1,1,1,'draft',NULL,'2026-05-20 23:54:40',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2026-05-20 23:54:40','2026-05-20 23:54:40');
COMMIT;

--
-- Dumping data for table `mobile_push_devices`
--

COMMIT;

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

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

INSERT INTO `module_level_user` VALUES
(1,76,0),
(2,77,0),
(3,78,0),
(307,1,7),
(308,2,7),
(309,3,7),
(310,4,7),
(311,5,7),
(312,6,7),
(313,7,7),
(314,8,7),
(315,9,7),
(316,10,7),
(317,11,7),
(318,12,7),
(319,13,7),
(320,14,7),
(321,15,7),
(322,16,7),
(323,17,7),
(324,18,7),
(325,19,7),
(326,20,7),
(327,21,7),
(328,22,7),
(329,23,7),
(330,24,7),
(331,25,7),
(332,26,7),
(333,27,7),
(334,28,7),
(335,90,7),
(336,29,7),
(337,30,7),
(338,31,7),
(339,32,7),
(340,33,7),
(341,34,7),
(342,35,7),
(343,36,7),
(344,37,7),
(345,38,7),
(346,85,7),
(347,86,7),
(348,87,7),
(349,88,7),
(350,89,7),
(351,1,1),
(352,2,1),
(353,3,1),
(354,4,1),
(355,5,1),
(356,6,1),
(357,7,1),
(358,8,1),
(359,9,1),
(360,10,1),
(361,11,1),
(362,12,1),
(363,13,1),
(364,14,1),
(365,15,1),
(366,16,1),
(367,17,1),
(368,18,1),
(369,19,1),
(370,20,1),
(371,21,1),
(372,22,1),
(373,23,1),
(374,24,1),
(375,25,1),
(376,26,1),
(377,27,1),
(378,28,1),
(379,29,1),
(380,30,1),
(381,31,1),
(382,32,1),
(383,33,1),
(384,34,1),
(385,35,1),
(386,36,1),
(387,37,1),
(388,38,1),
(389,39,1),
(390,40,1),
(391,41,1),
(392,42,1),
(393,43,1),
(394,44,1),
(395,45,1),
(396,46,1),
(397,47,1),
(399,49,1),
(400,50,1),
(401,51,1),
(402,52,1),
(403,53,1),
(404,54,1),
(405,55,1),
(406,56,1),
(407,57,1),
(408,58,1),
(409,59,1),
(410,60,1),
(411,61,1),
(412,62,1),
(413,75,1),
(414,76,1),
(415,77,1),
(416,78,1),
(417,79,1),
(418,85,1),
(419,86,1),
(420,87,1),
(421,88,1),
(422,89,1),
(423,90,1);
COMMIT;

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

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

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

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

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

INSERT INTO `module_user` VALUES
(32,7,2),
(33,7,3),
(34,7,4),
(35,7,5),
(36,7,6),
(37,7,3),
(90,1,7),
(91,6,7),
(92,10,7),
(93,17,7),
(94,18,7),
(95,2,7),
(96,4,7),
(97,19,7),
(98,1,1),
(99,2,1),
(100,3,1),
(101,4,1),
(102,5,1),
(103,6,1),
(104,7,1),
(105,8,1),
(106,9,1),
(107,10,1),
(108,11,1),
(109,12,1),
(110,14,1),
(111,17,1),
(112,18,1),
(113,19,1),
(114,20,1),
(115,27,1);
COMMIT;

--
-- 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`
--

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

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

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

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

COMMIT;

--
-- 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`
--

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

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

INSERT INTO `orders` VALUES
(1,'a564b27d-fcc9-4619-b348-2dad0b06abb9','{\"codigo_tipo_documento_identidad\":\"1\",\"numero_documento\":\"71447870\",\"apellidos_y_nombres_o_razon_social\":\"Administrador\",\"codigo_pais\":\"PE\",\"ubigeo\":\"150101\",\"direccion\":\"san roque 512\",\"correo_electronico\":\"admin@gmail.com\",\"telefono\":\"928159302\",\"identity_document_type_id\":\"1\"}','direccion 1','[{\"id\":23,\"name\":\"Paracetamol demo alta rotacion\",\"active_principle\":null,\"description\":\"Paracetamol demo alta rotacion\",\"text_filter\":null,\"model\":null,\"factory_code\":null,\"barcode\":\"DEMO-PHARM-HIGH\",\"technical_specifications\":null,\"item_type_id\":\"01\",\"internal_id\":\"DEMO-PHARM-HIGH\",\"item_code\":null,\"date_of_due\":null,\"account_id\":null,\"item_code_gs1\":null,\"unit_type_id\":\"NIU\",\"currency_type_id\":\"PEN\",\"sale_unit_price\":\"1.00\",\"purchase_has_igv\":true,\"has_igv\":true,\"subject_to_detraction\":false,\"purchase_unit_price\":0.4,\"has_isc\":0,\"restrict_sale_cpe\":false,\"exchange_points\":false,\"quantity_of_points\":0,\"commission_amount\":null,\"line\":null,\"commission_type\":null,\"amount_plastic_bag_taxes\":\"0.10\",\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"suggested_price\":\"0.00\",\"purchase_has_isc\":false,\"purchase_system_isc_type_id\":null,\"purchase_percentage_isc\":\"0.00\",\"sale_affectation_igv_type_id\":\"10\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":0,\"sale_unit_price_set\":null,\"is_set\":0,\"favorite\":false,\"category_id\":1,\"brand_id\":1,\"image\":\"imagen-no-disponible.jpg\",\"image_medium\":\"imagen-no-disponible.jpg\",\"image_small\":\"imagen-no-disponible.jpg\",\"stock\":\"197.0000\",\"stock_min\":\"2.00\",\"has_plastic_bag_taxes\":0,\"lot_code\":null,\"lots_enabled\":1,\"series_enabled\":0,\"percentage_of_profit\":\"0.00\",\"has_perception\":0,\"percentage_perception\":null,\"attributes\":null,\"active\":1,\"web_platform_id\":null,\"created_at\":\"2026-05-10T04:19:54.000000Z\",\"updated_at\":\"2026-05-10T06:37:51.000000Z\",\"warehouse_id\":null,\"owner_warehouse_id\":null,\"status\":1,\"apply_store\":1,\"apply_restaurant\":0,\"code\":null,\"concentration\":null,\"formula\":null,\"drug_code\":null,\"points\":null,\"cod_digemid\":null,\"sanitary\":null,\"requires_prescription\":0,\"generic\":0,\"location_id\":null,\"is_for_production\":false,\"second_name\":null,\"item_type\":{\"id\":\"01\",\"description\":\"Producto\"},\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"currency_type\":{\"id\":\"PEN\",\"active\":1,\"symbol\":\"S\\/\",\"description\":\"Soles\"},\"warehouses\":[{\"id\":23,\"item_id\":23,\"warehouse_id\":1,\"stock\":\"200.0000\",\"created_at\":\"2026-05-10T04:19:54.000000Z\",\"updated_at\":\"2026-05-10T06:32:23.000000Z\",\"warehouse\":{\"id\":1,\"establishment_id\":1,\"description\":\"Almac\\u00e9n Oficina Principal\",\"created_at\":\"2025-12-27T16:51:17.000000Z\",\"updated_at\":\"2025-12-27T16:51:17.000000Z\"}}],\"item_unit_types\":[{\"id\":25,\"description\":\"Unidad\",\"item_id\":23,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":1,\"price2\":0.94,\"price3\":0.9,\"price_default\":1,\"barcode\":\"DEMO-PHARM-HIGH-NIU\",\"deleted_at\":null,\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}},{\"id\":26,\"description\":\"Bl?ster x10\",\"item_id\":23,\"unit_type_id\":\"BL\",\"quantity_unit\":10,\"price1\":10,\"price2\":9.4,\"price3\":9,\"price_default\":0,\"barcode\":\"DEMO-PHARM-HIGH-BL10\",\"deleted_at\":null,\"unit_type\":{\"id\":\"BL\",\"active\":1,\"symbol\":null,\"description\":\"Bl\\u00edster\"}},{\"id\":27,\"description\":\"Caja x100\",\"item_id\":23,\"unit_type_id\":\"BX\",\"quantity_unit\":100,\"price1\":100,\"price2\":94,\"price3\":90,\"price_default\":0,\"barcode\":\"DEMO-PHARM-HIGH-BX100\",\"deleted_at\":null,\"unit_type\":{\"id\":\"BX\",\"active\":1,\"symbol\":null,\"description\":\"Caja\"}}],\"tags\":[],\"item_lots\":[],\"cantidad\":1,\"sub_total\":\"1.00\",\"exchange_rate_sale\":null}]',1.00,'efectivo',NULL,NULL,1,'{\"acciones\":{\"enviar_email\":true,\"formato_pdf\":\"a4\"},\"serie_documento\":null,\"numero_documento\":\"#\",\"fecha_de_emision\":\"2026-05-20\",\"hora_de_emision\":\"11:30:09\",\"codigo_tipo_operacion\":\"0101\",\"codigo_tipo_documento\":\"80\",\"codigo_tipo_moneda\":\"PEN\",\"fecha_de_vencimiento\":\"2026-05-20\",\"datos_del_cliente_o_receptor\":{\"codigo_tipo_documento_identidad\":\"1\",\"numero_documento\":\"71447870\",\"apellidos_y_nombres_o_razon_social\":\"Administrador\",\"codigo_pais\":\"PE\",\"ubigeo\":\"150101\",\"direccion\":\"san roque 512\",\"correo_electronico\":\"admin@gmail.com\",\"telefono\":\"928159302\",\"identity_document_type_id\":\"1\"},\"totales\":{\"total_exportacion\":0,\"total_operaciones_gravadas\":\"0.85\",\"total_operaciones_inafectas\":0,\"total_operaciones_exoneradas\":\"0.00\",\"total_operaciones_gratuitas\":0,\"total_igv\":\"0.15\",\"total_impuestos\":\"0.15\",\"total_valor\":\"0.85\",\"total_venta\":\"1.00\"},\"items\":[{\"codigo_interno\":\"DEMO-PHARM-HIGH\",\"descripcion\":\"Paracetamol demo alta rotacion\",\"codigo_producto_sunat\":null,\"unidad_de_medida\":\"NIU\",\"cantidad\":1,\"valor_unitario\":0.8474576271186441,\"codigo_tipo_precio\":\"01\",\"precio_unitario\":\"1.00\",\"codigo_tipo_afectacion_igv\":\"10\",\"total_base_igv\":0.8474576271186441,\"porcentaje_igv\":18,\"total_igv\":0.15254237288135586,\"total_impuestos\":0.15254237288135586,\"total_valor_item\":0.8474576271186441,\"total_item\":1,\"actualizar_descripcion\":false,\"nombre_producto_pdf\":null}]}','2026-05-20 11:30:49','2026-05-20 11:30:49',NULL,0),
(2,'57abbb38-ce7b-4ff4-a6e3-7c698ac0d1c4','{\"codigo_tipo_documento_identidad\":\"1\",\"numero_documento\":\"70199427\",\"apellidos_y_nombres_o_razon_social\":\"Administrador\",\"codigo_pais\":\"PE\",\"ubigeo\":\"150101\",\"direccion\":\"san roque 512\",\"correo_electronico\":\"admin@gmail.com\",\"telefono\":\"928159302\",\"identity_document_type_id\":\"1\"}','direccion 1','[{\"id\":27,\"name\":\"DEXAMETAN Tableta 4 mg\",\"active_principle\":\"deporte\",\"description\":\"DEXAMETAN Tableta 4 mg\",\"text_filter\":null,\"model\":null,\"factory_code\":null,\"barcode\":\"46536\",\"technical_specifications\":null,\"item_type_id\":\"01\",\"internal_id\":\"46536\",\"item_code\":null,\"date_of_due\":null,\"account_id\":null,\"item_code_gs1\":null,\"unit_type_id\":\"NIU\",\"currency_type_id\":\"PEN\",\"sale_unit_price\":\"8.00\",\"purchase_has_igv\":true,\"has_igv\":true,\"subject_to_detraction\":false,\"purchase_unit_price\":4,\"has_isc\":0,\"restrict_sale_cpe\":false,\"exchange_points\":false,\"quantity_of_points\":0,\"commission_amount\":null,\"line\":null,\"commission_type\":null,\"amount_plastic_bag_taxes\":\"0.10\",\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"suggested_price\":\"0.00\",\"purchase_has_isc\":false,\"purchase_system_isc_type_id\":null,\"purchase_percentage_isc\":\"0.00\",\"sale_affectation_igv_type_id\":\"10\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":0,\"sale_unit_price_set\":null,\"is_set\":0,\"favorite\":false,\"category_id\":1,\"brand_id\":8,\"image\":\"imagen-no-disponible.jpg\",\"image_medium\":\"imagen-no-disponible.jpg\",\"image_small\":\"imagen-no-disponible.jpg\",\"stock\":\"6.0000\",\"stock_min\":\"2.00\",\"has_plastic_bag_taxes\":0,\"lot_code\":null,\"lots_enabled\":1,\"series_enabled\":0,\"percentage_of_profit\":\"0.00\",\"has_perception\":0,\"percentage_perception\":null,\"attributes\":[],\"active\":1,\"web_platform_id\":null,\"created_at\":\"2026-05-10T04:19:54.000000Z\",\"updated_at\":\"2026-06-21T03:08:49.000000Z\",\"warehouse_id\":null,\"owner_warehouse_id\":null,\"status\":1,\"apply_store\":1,\"apply_restaurant\":0,\"code\":46536,\"concentration\":\"4 mg\",\"formula\":\"Tableta\",\"drug_code\":null,\"points\":null,\"cod_digemid\":\"46536\",\"sanitary\":\"EN05515\",\"condition_storage\":\"< 25C\\u00b0\",\"requires_prescription\":0,\"generic\":0,\"location_id\":null,\"is_for_production\":false,\"second_name\":null,\"item_type\":{\"id\":\"01\",\"description\":\"Producto\"},\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"currency_type\":{\"id\":\"PEN\",\"active\":1,\"symbol\":\"S\\/\",\"description\":\"Soles\"},\"warehouses\":[{\"id\":27,\"item_id\":27,\"warehouse_id\":1,\"stock\":\"6.0000\",\"created_at\":\"2026-05-10T04:19:54.000000Z\",\"updated_at\":\"2026-06-21T03:08:49.000000Z\",\"warehouse\":{\"id\":1,\"establishment_id\":1,\"description\":\"Almac\\u00e9n Oficina Principal\",\"created_at\":\"2025-12-27T16:51:17.000000Z\",\"updated_at\":\"2025-12-27T16:51:17.000000Z\"}}],\"item_unit_types\":[{\"id\":37,\"description\":\"Unidad\",\"item_id\":27,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":8,\"price2\":7.52,\"price3\":7.2,\"price_default\":1,\"barcode\":\"DEMO-PHARM-STOCKOUT-NIU\",\"deleted_at\":null,\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}},{\"id\":38,\"description\":\"Bl?ster x10\",\"item_id\":27,\"unit_type_id\":\"BL\",\"quantity_unit\":10,\"price1\":80,\"price2\":75.2,\"price3\":72,\"price_default\":0,\"barcode\":\"DEMO-PHARM-STOCKOUT-BL10\",\"deleted_at\":null,\"unit_type\":{\"id\":\"BL\",\"active\":1,\"symbol\":null,\"description\":\"Bl\\u00edster\"}},{\"id\":39,\"description\":\"Caja x100\",\"item_id\":27,\"unit_type_id\":\"BX\",\"quantity_unit\":100,\"price1\":800,\"price2\":752,\"price3\":720,\"price_default\":0,\"barcode\":\"DEMO-PHARM-STOCKOUT-BX100\",\"deleted_at\":null,\"unit_type\":{\"id\":\"BX\",\"active\":1,\"symbol\":null,\"description\":\"Caja\"}},{\"id\":43,\"description\":\"Caja\",\"item_id\":27,\"unit_type_id\":\"BX\",\"quantity_unit\":100,\"price1\":0,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"43BX100\",\"deleted_at\":null,\"unit_type\":{\"id\":\"BX\",\"active\":1,\"symbol\":null,\"description\":\"Caja\"}},{\"id\":44,\"description\":\"Bl\\u00edster\",\"item_id\":27,\"unit_type_id\":\"BL\",\"quantity_unit\":10,\"price1\":0,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"44BL10\",\"deleted_at\":null,\"unit_type\":{\"id\":\"BL\",\"active\":1,\"symbol\":null,\"description\":\"Bl\\u00edster\"}},{\"id\":45,\"description\":\"Unidad\",\"item_id\":27,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":0,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"45NIU1\",\"deleted_at\":null,\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}}],\"tags\":[],\"item_lots\":[],\"cantidad\":1,\"sub_total\":\"8.00\",\"exchange_rate_sale\":null}]',8.00,'efectivo',NULL,NULL,1,'{\"acciones\":{\"enviar_email\":true,\"formato_pdf\":\"a4\"},\"serie_documento\":\"B001\",\"numero_documento\":\"#\",\"fecha_de_emision\":\"2026-06-25\",\"hora_de_emision\":\"12:51:48\",\"codigo_tipo_operacion\":\"0101\",\"codigo_tipo_documento\":\"03\",\"codigo_tipo_moneda\":\"PEN\",\"fecha_de_vencimiento\":\"2026-06-25\",\"datos_del_cliente_o_receptor\":{\"codigo_tipo_documento_identidad\":\"1\",\"numero_documento\":\"70199427\",\"apellidos_y_nombres_o_razon_social\":\"Administrador\",\"codigo_pais\":\"PE\",\"ubigeo\":\"150101\",\"direccion\":\"san roque 512\",\"correo_electronico\":\"admin@gmail.com\",\"telefono\":\"928159302\",\"identity_document_type_id\":\"1\"},\"totales\":{\"total_exportacion\":0,\"total_operaciones_gravadas\":\"6.78\",\"total_operaciones_inafectas\":0,\"total_operaciones_exoneradas\":\"0.00\",\"total_operaciones_gratuitas\":0,\"total_igv\":\"1.22\",\"total_impuestos\":\"1.22\",\"total_valor\":\"6.78\",\"total_venta\":\"8.00\"},\"items\":[{\"codigo_interno\":\"46536\",\"descripcion\":\"DEXAMETAN Tableta 4 mg\",\"codigo_producto_sunat\":null,\"unidad_de_medida\":\"NIU\",\"cantidad\":1,\"valor_unitario\":6.779661016949153,\"codigo_tipo_precio\":\"01\",\"precio_unitario\":\"8.00\",\"codigo_tipo_afectacion_igv\":\"10\",\"total_base_igv\":6.779661016949153,\"porcentaje_igv\":18,\"total_igv\":1.2203389830508469,\"total_impuestos\":1.2203389830508469,\"total_valor_item\":6.779661016949153,\"total_item\":8,\"actualizar_descripcion\":false,\"nombre_producto_pdf\":null}]}','2026-06-25 12:52:19','2026-06-25 12:52:19',NULL,0);
COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

--
-- 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`
--

COMMIT;

--
-- Dumping data for table `password_resets`
--

COMMIT;

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

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

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

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

--
-- Dumping data for table `payment_configurations`
--

COMMIT;

--
-- 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`
--

COMMIT;

--
-- 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`
--

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

--
-- 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`
--

COMMIT;

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

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

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

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

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

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

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

COMMIT;

--
-- Dumping data for table `perceptions`
--

COMMIT;

--
-- 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`
--

COMMIT;

--
-- 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`
--

COMMIT;

--
-- 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`
--

INSERT INTO `person_types` VALUES
(1,'Interno','2025-12-27 11:51:00','2025-12-27 11:51:00'),
(2,'Distribuidor','2025-12-27 11:51:00','2025-12-27 11:51:00');
COMMIT;

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

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

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

INSERT INTO `persons` VALUES
(1,'customers','0','99999999','Clientes - Varios',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'15','1501','150101',NULL,'-',NULL,NULL,NULL,NULL,0.00,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,'2025-12-27 11:51:14','2026-04-12 23:00:06',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(3,'customers','1','52321443','QA Cliente E2E 52321443',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'15','1501','150101',NULL,'QA Address 52321443',NULL,NULL,'qa.e2e.customer.52321443@example.com',NULL,0.00,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,'2026-04-12 22:53:49','2026-04-12 22:53:49',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(4,'customers','1','52652385','QA Cliente E2E 52652385',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'15','1501','150101',NULL,'QA Address 52652385',NULL,NULL,'qa.e2e.customer.52652385@example.com',NULL,0.00,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,'2026-04-12 22:59:19','2026-04-12 22:59:19',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(5,'customers','1','54796677','QA Cliente E2E 54796677',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'15','1501','150101',NULL,'QA Address 54796677',NULL,NULL,'qa.e2e.customer.54796677@example.com',NULL,0.00,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,'2026-04-12 23:35:03','2026-04-12 23:35:03',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(6,'customers','1','88822771','QA Cliente E2E 88822771',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'15','1501','150101',NULL,'QA Address 88822771',NULL,NULL,'qa.e2e.customer.88822771@example.com',NULL,0.00,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,'2026-04-13 09:02:09','2026-04-13 09:02:09',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(7,'customers','1','75478910','VEGA SALAZAR, JEAN CLAUDE',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-04-13 23:17:23','2026-04-13 23:17:23',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(8,'customers','6','10754789102','VEGA SALAZAR JEAN CLAUDE',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-04-13 23:17:48','2026-04-13 23:17:48',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(9,'suppliers','6','10754789102','VEGA SALAZAR JEAN CLAUDE',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-04-13 23:55:35','2026-04-13 23:55:35',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(10,'suppliers','6','20999999991','Proveedor Demo Farmacia',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'15','1501','150101',NULL,'Direccion demo proveedor',NULL,NULL,NULL,NULL,0.00,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,'2026-05-09 23:19:54','2026-05-09 23:19:54',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(11,'customers','1','70999999','Cliente Demo Farmacia',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'15','1501','150101',NULL,'Direccion demo cliente',NULL,NULL,NULL,NULL,0.00,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,'2026-05-09 23:19:54','2026-05-09 23:19:54',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(12,'customers','1','70000001','Cliente Mostrador Demo',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'15','1501','150101',NULL,'Lima Demo',NULL,NULL,'mostrador.demo@softlte.org.pe',NULL,0.00,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,'2026-05-10 01:31:14','2026-05-10 01:31:14',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(13,'customers','6','20111111111','Botica Mayorista Demo SAC',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'15','1501','150101',NULL,'Lima Demo',NULL,NULL,'mayorista.demo@softlte.org.pe',NULL,0.00,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,'2026-05-10 01:31:14','2026-05-10 01:31:14',1,0,NULL,0,NULL,NULL,0,'01',0.00,2),
(14,'customers','6','20444444444','Cl?nica Convenio Demo SAC',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'15','1501','150101',NULL,'Lima Demo',NULL,NULL,'convenio.demo@softlte.org.pe',NULL,0.00,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,'2026-05-10 01:31:14','2026-05-10 01:31:14',1,0,NULL,0,NULL,NULL,0,'01',0.00,3),
(15,'suppliers','6','20608557190','FP MAYORISTA S.A.C.',NULL,NULL,'QUIMICA SUIZA',NULL,'01FF0400032582','PE',NULL,'15','1501','150115',NULL,'CAL. VICTOR ALZAMORA NRO. 147','HABIDO','ACTIVO',NULL,NULL,0.00,0,2,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-04 18:57:36','2026-06-04 18:57:36',1,0,NULL,0,NULL,NULL,0,'01',0.00,1);
COMMIT;

--
-- 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`
--

INSERT INTO `pharmacy_configurations` VALUES
(1,1,0,'2026-04-01 09:10:57','2026-04-01 09:10:57');
COMMIT;

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

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

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

COMMIT;

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

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

COMMIT;

--
-- 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`
--

COMMIT;

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

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

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

COMMIT;

--
-- 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`
--

COMMIT;

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

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

INSERT INTO `prescription_prescriptions` VALUES
(1,13,28,34,1,NULL,4,'55555','2026-05-12',NULL,'555',NULL,'555',1,1,'2026-05-11 17:46:03','2026-05-11 17:46:03'),
(2,13,24,31,1,NULL,4,'55555','2026-05-12',NULL,'555',NULL,'555',1,1,'2026-05-11 17:46:03','2026-05-11 17:46:03');
COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

--
-- 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`
--

COMMIT;

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

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

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

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;

--
-- 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`
--

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

INSERT INTO `purchase_payments` VALUES
(1,16,NULL,'2026-04-15','01',0,NULL,NULL,5.00),
(2,17,NULL,'2026-04-15','01',0,NULL,NULL,2.00),
(3,17,NULL,'2026-04-15','01',0,NULL,NULL,3.00),
(4,1,NULL,'2026-05-19','01',0,NULL,NULL,8.00);
COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

--
-- 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`
--

COMMIT;

--
-- Dumping data for table `purchase_settlements`
--

COMMIT;

--
-- 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`
--

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

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

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

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

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

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

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

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

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

COMMIT;

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

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

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

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

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

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

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

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

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

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

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

COMMIT;

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

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

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

COMMIT;

--
-- Dumping data for table `retentions`
--

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

INSERT INTO `sale_note_payments` VALUES
(2,2,'2026-04-13','01',0,NULL,NULL,NULL,NULL,8.00),
(3,3,'2026-04-13','01',0,NULL,NULL,NULL,NULL,8.00),
(4,4,'2026-04-13','01',0,NULL,NULL,NULL,NULL,8.00),
(5,5,'2026-04-13','01',0,NULL,NULL,NULL,NULL,8.00),
(6,6,'2026-04-13','01',0,NULL,NULL,NULL,NULL,10.00),
(7,7,'2026-04-13','01',0,NULL,NULL,NULL,NULL,10.00),
(8,8,'2026-04-13','01',0,NULL,NULL,NULL,NULL,25.00),
(9,9,'2026-04-14','01',0,NULL,NULL,NULL,NULL,6.00),
(10,10,'2026-04-14','01',0,NULL,NULL,NULL,NULL,6.00),
(11,11,'2026-04-14','01',0,NULL,NULL,NULL,NULL,14.00),
(14,1,'2026-06-20','01',0,NULL,NULL,NULL,NULL,50.55);
COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

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

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

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

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

COMMIT;

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

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

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

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

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

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

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

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

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

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

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

COMMIT;

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

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

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

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

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

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

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

INSERT INTO `status_orders` VALUES
(1,'Pago sin verificar','2025-12-27 11:51:06',NULL),
(2,'Pago verificado','2025-12-27 11:51:06',NULL),
(3,'Despachado','2025-12-27 11:51:06',NULL),
(4,'Confirmado por el cliente','2025-12-27 11:51:06',NULL);
COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

INSERT INTO `system_activity_logs` VALUES
(1,1,'login','2025-12-27','11:52:05',1,'App\\Models\\Tenant\\User','201.230.205.217','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2025-12-27 11:52:05','2025-12-27 11:52:05'),
(2,1,'login','2025-12-29','16:26:37',1,'App\\Models\\Tenant\\User','201.230.205.217','WebKit','desktop','Windows','10.0','Chrome','143.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2025-12-29 16:26:37','2025-12-29 16:26:37'),
(3,NULL,'failed','2026-04-01','09:10:27',NULL,NULL,'181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 09:10:27','2026-04-01 09:10:27'),
(4,NULL,'failed','2026-04-01','09:10:36',NULL,NULL,'181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 09:10:36','2026-04-01 09:10:36'),
(5,1,'login','2026-04-01','09:10:46',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 09:10:46','2026-04-01 09:10:46'),
(6,1,'logout','2026-04-01','09:26:31',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 09:26:31','2026-04-01 09:26:31'),
(7,1,'logout','2026-04-01','09:26:31',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 09:26:31','2026-04-01 09:26:31'),
(8,1,'login','2026-04-01','10:06:06',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 10:06:06','2026-04-01 10:06:06'),
(9,1,'login','2026-04-01','14:36:17',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 14:36:17','2026-04-01 14:36:17'),
(10,1,'logout','2026-04-01','14:43:27',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 14:43:27','2026-04-01 14:43:27'),
(11,1,'logout','2026-04-01','14:43:27',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 14:43:27','2026-04-01 14:43:27'),
(12,1,'login','2026-04-01','16:39:48',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 16:39:48','2026-04-01 16:39:48'),
(13,1,'logout','2026-04-01','16:43:05',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 16:43:05','2026-04-01 16:43:05'),
(14,1,'login','2026-04-01','17:22:47',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 17:22:47','2026-04-01 17:22:47'),
(15,1,'logout','2026-04-01','17:27:09',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 17:27:09','2026-04-01 17:27:09'),
(16,1,'login','2026-04-01','17:30:40',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 17:30:40','2026-04-01 17:30:40'),
(17,1,'login','2026-04-01','17:33:53',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 17:33:53','2026-04-01 17:33:53'),
(18,1,'login','2026-04-01','17:34:24',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 17:34:24','2026-04-01 17:34:24'),
(19,1,'login','2026-04-01','17:35:01',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 17:35:01','2026-04-01 17:35:01'),
(20,1,'login','2026-04-01','17:35:35',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 17:35:35','2026-04-01 17:35:35'),
(21,1,'login','2026-04-01','17:36:09',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 17:36:09','2026-04-01 17:36:09'),
(22,1,'login','2026-04-01','17:36:44',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 17:36:44','2026-04-01 17:36:44'),
(23,1,'login','2026-04-01','17:42:23',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 17:42:23','2026-04-01 17:42:23'),
(24,1,'login','2026-04-01','17:43:49',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 17:43:49','2026-04-01 17:43:49'),
(25,1,'logout','2026-04-01','18:03:15',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 18:03:15','2026-04-01 18:03:15'),
(26,1,'login','2026-04-01','18:03:30',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 18:03:30','2026-04-01 18:03:30'),
(27,1,'login','2026-04-01','22:47:50',1,'App\\Models\\Tenant\\User','181.176.43.217','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.77008\",\"longitude\":\"-79.8549\",\"timezone\":\"America\\/Lima\"}','2026-04-01 22:47:50','2026-04-01 22:47:50'),
(28,1,'login','2026-04-02','08:19:58',1,'App\\Models\\Tenant\\User','181.176.42.225','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LOR\",\"region_name\":\"Loreto\",\"city_name\":\"Yurimaguas\",\"latitude\":\"-5.90181\",\"longitude\":\"-76.1223\",\"timezone\":\"America\\/Lima\"}','2026-04-02 08:19:58','2026-04-02 08:19:58'),
(29,1,'login','2026-04-02','10:02:26',1,'App\\Models\\Tenant\\User','181.176.42.225','WebKit','desktop','Windows','10.0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LOR\",\"region_name\":\"Loreto\",\"city_name\":\"Yurimaguas\",\"latitude\":\"-5.90181\",\"longitude\":\"-76.1223\",\"timezone\":\"America\\/Lima\"}','2026-04-02 10:02:26','2026-04-02 10:02:26'),
(30,1,'login','2026-04-10','23:46:01',1,'App\\Models\\Tenant\\User','181.176.43.55','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Ja\\u00e9n\",\"latitude\":\"-5.70729\",\"longitude\":\"-78.8079\",\"timezone\":\"America\\/Lima\"}','2026-04-10 23:46:01','2026-04-10 23:46:01'),
(31,1,'login','2026-04-12','09:17:07',1,'App\\Models\\Tenant\\User','181.176.110.147','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-04-12 09:17:07','2026-04-12 09:17:07'),
(32,1,'login','2026-04-12','09:20:46',1,'App\\Models\\Tenant\\User','181.176.110.147','0','desktop','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-04-12 09:20:46','2026-04-12 09:20:46'),
(33,1,'login','2026-04-12','13:49:05',1,'App\\Models\\Tenant\\User','181.176.105.76','WebKit','desktop','Linux','0','Chrome','146.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-04-12 13:49:05','2026-04-12 13:49:05'),
(34,1,'login','2026-04-12','21:57:45',1,'App\\Models\\Tenant\\User','181.176.42.25','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"El Porvenir\",\"latitude\":\"-8.08333\",\"longitude\":\"-79\",\"timezone\":\"America\\/Lima\"}','2026-04-12 21:57:45','2026-04-12 21:57:45'),
(35,1,'login','2026-04-12','22:04:53',1,'App\\Models\\Tenant\\User','181.176.42.25','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"El Porvenir\",\"latitude\":\"-8.08333\",\"longitude\":\"-79\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:04:53','2026-04-12 22:04:53'),
(36,1,'login','2026-04-12','22:05:09',1,'App\\Models\\Tenant\\User','181.176.42.25','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"El Porvenir\",\"latitude\":\"-8.08333\",\"longitude\":\"-79\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:05:09','2026-04-12 22:05:09'),
(37,1,'login','2026-04-12','22:36:56',1,'App\\Models\\Tenant\\User','181.176.45.0','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:36:56','2026-04-12 22:36:56'),
(38,1,'login','2026-04-12','22:37:02',1,'App\\Models\\Tenant\\User','181.176.45.0','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:37:02','2026-04-12 22:37:02'),
(39,1,'login','2026-04-12','22:37:46',1,'App\\Models\\Tenant\\User','181.176.45.0','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:37:46','2026-04-12 22:37:46'),
(40,1,'login','2026-04-12','22:37:47',1,'App\\Models\\Tenant\\User','181.176.45.0','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:37:47','2026-04-12 22:37:47'),
(41,1,'login','2026-04-12','22:37:54',1,'App\\Models\\Tenant\\User','181.176.45.0','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:37:54','2026-04-12 22:37:54'),
(42,1,'login','2026-04-12','22:38:50',1,'App\\Models\\Tenant\\User','181.176.45.0','0','desktop','Windows','10.0','Mozilla','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:38:50','2026-04-12 22:38:50'),
(43,1,'login','2026-04-12','22:51:59',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:51:59','2026-04-12 22:51:59'),
(44,1,'login','2026-04-12','22:51:59',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:51:59','2026-04-12 22:51:59'),
(45,1,'login','2026-04-12','22:51:59',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:51:59','2026-04-12 22:51:59'),
(46,1,'login','2026-04-12','22:51:59',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:51:59','2026-04-12 22:51:59'),
(47,1,'login','2026-04-12','22:53:55',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:53:55','2026-04-12 22:53:55'),
(48,1,'login','2026-04-12','22:53:59',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:53:59','2026-04-12 22:53:59'),
(49,1,'login','2026-04-12','22:54:01',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:54:01','2026-04-12 22:54:01'),
(50,1,'login','2026-04-12','22:54:02',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:54:02','2026-04-12 22:54:02'),
(51,1,'login','2026-04-12','22:55:00',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:55:00','2026-04-12 22:55:00'),
(52,1,'login','2026-04-12','22:55:12',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:55:12','2026-04-12 22:55:12'),
(53,1,'login','2026-04-12','22:55:29',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:55:29','2026-04-12 22:55:29'),
(54,1,'login','2026-04-12','22:55:29',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:55:29','2026-04-12 22:55:29'),
(55,1,'login','2026-04-12','22:55:29',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:55:29','2026-04-12 22:55:29'),
(56,1,'login','2026-04-12','22:55:52',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:55:52','2026-04-12 22:55:52'),
(57,1,'login','2026-04-12','22:56:25',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:56:25','2026-04-12 22:56:25'),
(58,1,'login','2026-04-12','22:56:32',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:56:32','2026-04-12 22:56:32'),
(59,1,'login','2026-04-12','22:56:37',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:56:37','2026-04-12 22:56:37'),
(60,1,'login','2026-04-12','22:57:10',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:57:10','2026-04-12 22:57:10'),
(61,1,'login','2026-04-12','22:57:42',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:57:42','2026-04-12 22:57:42'),
(62,1,'login','2026-04-12','22:57:42',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:57:42','2026-04-12 22:57:42'),
(63,1,'login','2026-04-12','22:57:43',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:57:43','2026-04-12 22:57:43'),
(64,1,'login','2026-04-12','22:57:43',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:57:43','2026-04-12 22:57:43'),
(65,1,'login','2026-04-12','22:59:14',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:59:14','2026-04-12 22:59:14'),
(66,1,'login','2026-04-12','22:59:16',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:59:16','2026-04-12 22:59:16'),
(67,1,'login','2026-04-12','22:59:23',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:59:23','2026-04-12 22:59:23'),
(68,1,'login','2026-04-12','22:59:24',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 22:59:24','2026-04-12 22:59:24'),
(69,1,'login','2026-04-12','23:00:01',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:00:01','2026-04-12 23:00:01'),
(70,1,'login','2026-04-12','23:00:13',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:00:13','2026-04-12 23:00:13'),
(71,1,'login','2026-04-12','23:00:14',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:00:14','2026-04-12 23:00:14'),
(72,1,'login','2026-04-12','23:00:17',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:00:17','2026-04-12 23:00:17'),
(73,1,'login','2026-04-12','23:00:21',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:00:21','2026-04-12 23:00:21'),
(74,1,'login','2026-04-12','23:00:28',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:00:28','2026-04-12 23:00:28'),
(75,1,'login','2026-04-12','23:00:50',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:00:50','2026-04-12 23:00:50'),
(76,1,'login','2026-04-12','23:01:06',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:01:06','2026-04-12 23:01:06'),
(77,1,'login','2026-04-12','23:01:06',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:01:06','2026-04-12 23:01:06'),
(78,1,'login','2026-04-12','23:01:21',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:01:21','2026-04-12 23:01:21'),
(79,1,'login','2026-04-12','23:01:47',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:01:47','2026-04-12 23:01:47'),
(80,1,'login','2026-04-12','23:01:48',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:01:48','2026-04-12 23:01:48'),
(81,1,'login','2026-04-12','23:02:02',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:02:02','2026-04-12 23:02:02'),
(82,1,'login','2026-04-12','23:02:30',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:02:30','2026-04-12 23:02:30'),
(83,1,'login','2026-04-12','23:02:30',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:02:30','2026-04-12 23:02:30'),
(84,1,'login','2026-04-12','23:02:35',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:02:35','2026-04-12 23:02:35'),
(85,1,'login','2026-04-12','23:02:41',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:02:41','2026-04-12 23:02:41'),
(86,1,'login','2026-04-12','23:03:14',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:03:14','2026-04-12 23:03:14'),
(87,1,'login','2026-04-12','23:03:36',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:03:36','2026-04-12 23:03:36'),
(88,1,'login','2026-04-12','23:03:40',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:03:40','2026-04-12 23:03:40'),
(89,1,'login','2026-04-12','23:03:45',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:03:45','2026-04-12 23:03:45'),
(90,1,'login','2026-04-12','23:04:14',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:04:14','2026-04-12 23:04:14'),
(91,1,'login','2026-04-12','23:04:20',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:04:20','2026-04-12 23:04:20'),
(92,1,'login','2026-04-12','23:04:35',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:04:35','2026-04-12 23:04:35'),
(93,1,'login','2026-04-12','23:04:54',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:04:54','2026-04-12 23:04:54'),
(94,1,'login','2026-04-12','23:04:57',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:04:57','2026-04-12 23:04:57'),
(95,1,'login','2026-04-12','23:05:17',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:05:17','2026-04-12 23:05:17'),
(96,1,'login','2026-04-12','23:05:30',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:05:30','2026-04-12 23:05:30'),
(97,1,'login','2026-04-12','23:05:36',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:05:36','2026-04-12 23:05:36'),
(98,1,'login','2026-04-12','23:05:53',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:05:53','2026-04-12 23:05:53'),
(99,1,'login','2026-04-12','23:06:03',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:06:03','2026-04-12 23:06:03'),
(100,1,'login','2026-04-12','23:06:12',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:06:12','2026-04-12 23:06:12'),
(101,1,'login','2026-04-12','23:06:28',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:06:28','2026-04-12 23:06:28'),
(102,1,'login','2026-04-12','23:06:31',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:06:31','2026-04-12 23:06:31'),
(103,1,'login','2026-04-12','23:06:33',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:06:33','2026-04-12 23:06:33'),
(104,1,'login','2026-04-12','23:06:46',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:06:46','2026-04-12 23:06:46'),
(105,1,'login','2026-04-12','23:07:03',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:07:03','2026-04-12 23:07:03'),
(106,1,'login','2026-04-12','23:07:14',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:07:14','2026-04-12 23:07:14'),
(107,1,'login','2026-04-12','23:07:16',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:07:16','2026-04-12 23:07:16'),
(108,1,'login','2026-04-12','23:07:46',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:07:46','2026-04-12 23:07:46'),
(109,1,'login','2026-04-12','23:07:55',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:07:55','2026-04-12 23:07:55'),
(110,1,'login','2026-04-12','23:08:04',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:08:04','2026-04-12 23:08:04'),
(111,1,'login','2026-04-12','23:08:27',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:08:27','2026-04-12 23:08:27'),
(112,1,'login','2026-04-12','23:08:28',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:08:28','2026-04-12 23:08:28'),
(113,1,'login','2026-04-12','23:08:41',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:08:41','2026-04-12 23:08:41'),
(114,1,'login','2026-04-12','23:09:02',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:09:02','2026-04-12 23:09:02'),
(115,1,'login','2026-04-12','23:09:03',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:09:03','2026-04-12 23:09:03'),
(116,1,'login','2026-04-12','23:09:37',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:09:37','2026-04-12 23:09:37'),
(117,1,'login','2026-04-12','23:09:37',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:09:37','2026-04-12 23:09:37'),
(118,1,'login','2026-04-12','23:10:10',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:10:10','2026-04-12 23:10:10'),
(119,1,'login','2026-04-12','23:10:12',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:10:12','2026-04-12 23:10:12'),
(120,1,'login','2026-04-12','23:10:47',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:10:47','2026-04-12 23:10:47'),
(121,1,'login','2026-04-12','23:10:47',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:10:47','2026-04-12 23:10:47'),
(122,1,'login','2026-04-12','23:11:19',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:11:19','2026-04-12 23:11:19'),
(123,1,'login','2026-04-12','23:11:19',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:11:19','2026-04-12 23:11:19'),
(124,1,'login','2026-04-12','23:11:52',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:11:52','2026-04-12 23:11:52'),
(125,1,'login','2026-04-12','23:11:54',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:11:54','2026-04-12 23:11:54'),
(126,1,'login','2026-04-12','23:12:21',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":null,\"country_code\":\"PE\",\"region_code\":null,\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1160\",\"longitude\":\"-79.0300\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:12:21','2026-04-12 23:12:21'),
(127,1,'login','2026-04-12','23:12:24',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:12:24','2026-04-12 23:12:24'),
(128,1,'login','2026-04-12','23:12:55',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:12:55','2026-04-12 23:12:55'),
(129,1,'login','2026-04-12','23:12:58',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:12:58','2026-04-12 23:12:58'),
(130,1,'login','2026-04-12','23:13:26',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:13:26','2026-04-12 23:13:26'),
(131,1,'login','2026-04-12','23:13:31',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:13:31','2026-04-12 23:13:31'),
(132,1,'login','2026-04-12','23:13:56',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:13:56','2026-04-12 23:13:56'),
(133,1,'login','2026-04-12','23:14:13',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:14:13','2026-04-12 23:14:13'),
(134,1,'login','2026-04-12','23:14:23',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:14:23','2026-04-12 23:14:23'),
(135,1,'login','2026-04-12','23:14:37',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:14:37','2026-04-12 23:14:37'),
(136,1,'login','2026-04-12','23:14:52',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:14:52','2026-04-12 23:14:52'),
(137,1,'login','2026-04-12','23:15:05',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:15:05','2026-04-12 23:15:05'),
(138,1,'login','2026-04-12','23:15:17',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:15:17','2026-04-12 23:15:17'),
(139,1,'login','2026-04-12','23:15:31',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:15:31','2026-04-12 23:15:31'),
(140,1,'login','2026-04-12','23:15:43',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:15:43','2026-04-12 23:15:43'),
(141,1,'login','2026-04-12','23:16:02',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:16:02','2026-04-12 23:16:02'),
(142,1,'login','2026-04-12','23:16:33',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:16:33','2026-04-12 23:16:33'),
(143,1,'login','2026-04-12','23:17:00',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:17:00','2026-04-12 23:17:00'),
(144,1,'login','2026-04-12','23:17:24',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:17:24','2026-04-12 23:17:24'),
(145,1,'login','2026-04-12','23:17:54',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:17:54','2026-04-12 23:17:54'),
(146,1,'login','2026-04-12','23:18:07',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:18:07','2026-04-12 23:18:07'),
(147,1,'login','2026-04-12','23:18:34',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:18:34','2026-04-12 23:18:34'),
(148,1,'login','2026-04-12','23:18:59',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:18:59','2026-04-12 23:18:59'),
(149,1,'login','2026-04-12','23:19:25',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:19:25','2026-04-12 23:19:25'),
(150,1,'login','2026-04-12','23:19:52',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:19:52','2026-04-12 23:19:52'),
(151,1,'login','2026-04-12','23:20:16',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:20:16','2026-04-12 23:20:16'),
(152,1,'login','2026-04-12','23:20:41',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:20:41','2026-04-12 23:20:41'),
(153,1,'login','2026-04-12','23:21:09',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:21:09','2026-04-12 23:21:09'),
(154,1,'login','2026-04-12','23:21:36',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:21:36','2026-04-12 23:21:36'),
(155,1,'login','2026-04-12','23:22:04',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:22:04','2026-04-12 23:22:04'),
(156,1,'login','2026-04-12','23:22:39',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:22:39','2026-04-12 23:22:39'),
(157,1,'login','2026-04-12','23:23:03',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:23:03','2026-04-12 23:23:03'),
(158,1,'login','2026-04-12','23:24:08',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:24:08','2026-04-12 23:24:08'),
(159,1,'login','2026-04-12','23:24:32',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:24:32','2026-04-12 23:24:32'),
(160,1,'login','2026-04-12','23:24:59',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:24:59','2026-04-12 23:24:59'),
(161,1,'login','2026-04-12','23:25:26',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:25:26','2026-04-12 23:25:26'),
(162,1,'login','2026-04-12','23:25:56',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:25:56','2026-04-12 23:25:56'),
(163,1,'login','2026-04-12','23:26:25',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:26:25','2026-04-12 23:26:25'),
(164,1,'login','2026-04-12','23:26:51',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:26:51','2026-04-12 23:26:51'),
(165,1,'login','2026-04-12','23:27:18',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:27:18','2026-04-12 23:27:18'),
(166,1,'login','2026-04-12','23:27:44',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:27:44','2026-04-12 23:27:44'),
(167,1,'login','2026-04-12','23:28:07',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:28:07','2026-04-12 23:28:07'),
(168,1,'login','2026-04-12','23:28:34',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:28:34','2026-04-12 23:28:34'),
(169,1,'login','2026-04-12','23:29:00',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:29:00','2026-04-12 23:29:00'),
(170,1,'login','2026-04-12','23:29:40',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:29:40','2026-04-12 23:29:40'),
(171,1,'login','2026-04-12','23:30:06',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:30:06','2026-04-12 23:30:06'),
(172,1,'login','2026-04-12','23:30:30',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:30:30','2026-04-12 23:30:30'),
(173,1,'login','2026-04-12','23:30:56',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:30:56','2026-04-12 23:30:56'),
(174,1,'login','2026-04-12','23:31:22',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:31:22','2026-04-12 23:31:22'),
(175,1,'login','2026-04-12','23:32:02',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:32:02','2026-04-12 23:32:02'),
(176,1,'login','2026-04-12','23:32:29',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:32:29','2026-04-12 23:32:29'),
(177,1,'login','2026-04-12','23:32:53',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:32:53','2026-04-12 23:32:53'),
(178,1,'login','2026-04-12','23:33:17',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:33:17','2026-04-12 23:33:17'),
(179,1,'login','2026-04-12','23:33:46',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:33:46','2026-04-12 23:33:46'),
(180,1,'login','2026-04-12','23:34:12',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:34:12','2026-04-12 23:34:12'),
(181,1,'login','2026-04-12','23:34:36',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:34:36','2026-04-12 23:34:36'),
(182,1,'login','2026-04-12','23:35:04',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:35:04','2026-04-12 23:35:04'),
(183,1,'login','2026-04-12','23:35:28',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:35:28','2026-04-12 23:35:28'),
(184,1,'login','2026-04-12','23:35:31',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:35:31','2026-04-12 23:35:31'),
(185,1,'login','2026-04-12','23:35:57',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:35:57','2026-04-12 23:35:57'),
(186,1,'login','2026-04-12','23:36:24',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:36:24','2026-04-12 23:36:24'),
(187,1,'login','2026-04-12','23:36:50',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:36:50','2026-04-12 23:36:50'),
(188,1,'login','2026-04-12','23:36:53',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:36:53','2026-04-12 23:36:53'),
(189,1,'login','2026-04-12','23:37:19',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:37:19','2026-04-12 23:37:19'),
(190,1,'login','2026-04-12','23:37:47',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:37:47','2026-04-12 23:37:47'),
(191,1,'login','2026-04-12','23:38:12',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:38:12','2026-04-12 23:38:12'),
(192,1,'login','2026-04-12','23:38:41',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:38:41','2026-04-12 23:38:41'),
(193,1,'login','2026-04-12','23:39:07',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:39:07','2026-04-12 23:39:07'),
(194,1,'login','2026-04-12','23:39:32',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:39:32','2026-04-12 23:39:32'),
(195,1,'login','2026-04-12','23:40:17',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:40:17','2026-04-12 23:40:17'),
(196,1,'login','2026-04-12','23:40:42',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:40:42','2026-04-12 23:40:42'),
(197,1,'login','2026-04-12','23:42:59',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:42:59','2026-04-12 23:42:59'),
(198,1,'login','2026-04-12','23:43:26',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:43:26','2026-04-12 23:43:26'),
(199,1,'login','2026-04-12','23:43:52',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:43:52','2026-04-12 23:43:52'),
(200,1,'login','2026-04-12','23:44:18',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:44:18','2026-04-12 23:44:18'),
(201,1,'login','2026-04-12','23:44:42',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:44:42','2026-04-12 23:44:42'),
(202,1,'login','2026-04-12','23:45:07',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:45:07','2026-04-12 23:45:07'),
(203,1,'login','2026-04-12','23:45:31',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:45:31','2026-04-12 23:45:31'),
(204,1,'login','2026-04-12','23:45:58',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:45:58','2026-04-12 23:45:58'),
(205,1,'login','2026-04-12','23:46:25',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:46:25','2026-04-12 23:46:25'),
(206,1,'login','2026-04-12','23:46:49',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:46:49','2026-04-12 23:46:49'),
(207,1,'login','2026-04-12','23:47:17',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:47:17','2026-04-12 23:47:17'),
(208,1,'login','2026-04-12','23:47:44',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:47:44','2026-04-12 23:47:44'),
(209,1,'login','2026-04-12','23:48:12',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:48:12','2026-04-12 23:48:12'),
(210,1,'login','2026-04-12','23:48:37',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:48:37','2026-04-12 23:48:37'),
(211,1,'login','2026-04-12','23:49:04',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:49:04','2026-04-12 23:49:04'),
(212,1,'login','2026-04-12','23:49:29',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:49:29','2026-04-12 23:49:29'),
(213,1,'login','2026-04-12','23:49:55',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:49:55','2026-04-12 23:49:55'),
(214,1,'login','2026-04-12','23:50:21',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:50:21','2026-04-12 23:50:21'),
(215,1,'login','2026-04-12','23:50:47',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:50:47','2026-04-12 23:50:47'),
(216,1,'login','2026-04-12','23:51:11',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:51:11','2026-04-12 23:51:11'),
(217,1,'login','2026-04-12','23:51:45',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:51:45','2026-04-12 23:51:45'),
(218,1,'login','2026-04-12','23:52:11',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:52:11','2026-04-12 23:52:11'),
(219,1,'login','2026-04-12','23:52:36',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:52:36','2026-04-12 23:52:36'),
(220,1,'login','2026-04-12','23:52:59',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:52:59','2026-04-12 23:52:59'),
(221,1,'login','2026-04-12','23:53:26',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:53:26','2026-04-12 23:53:26'),
(222,1,'login','2026-04-12','23:53:52',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:53:52','2026-04-12 23:53:52'),
(223,1,'login','2026-04-12','23:54:16',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:54:16','2026-04-12 23:54:16'),
(224,1,'login','2026-04-12','23:54:41',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:54:41','2026-04-12 23:54:41'),
(225,1,'login','2026-04-12','23:55:08',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:55:08','2026-04-12 23:55:08'),
(226,1,'login','2026-04-12','23:55:34',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:55:34','2026-04-12 23:55:34'),
(227,1,'login','2026-04-12','23:56:01',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:56:01','2026-04-12 23:56:01'),
(228,1,'login','2026-04-12','23:56:26',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:56:26','2026-04-12 23:56:26'),
(229,1,'login','2026-04-12','23:56:55',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:56:55','2026-04-12 23:56:55'),
(230,1,'login','2026-04-12','23:57:19',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:57:19','2026-04-12 23:57:19'),
(231,1,'login','2026-04-12','23:57:45',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:57:45','2026-04-12 23:57:45'),
(232,1,'login','2026-04-12','23:58:11',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:58:11','2026-04-12 23:58:11'),
(233,1,'login','2026-04-12','23:58:37',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:58:37','2026-04-12 23:58:37'),
(234,1,'login','2026-04-12','23:59:03',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:59:03','2026-04-12 23:59:03'),
(235,1,'login','2026-04-12','23:59:28',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:59:28','2026-04-12 23:59:28'),
(236,1,'login','2026-04-12','23:59:54',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-12 23:59:54','2026-04-12 23:59:54'),
(237,1,'login','2026-04-13','00:00:18',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:00:18','2026-04-13 00:00:18'),
(238,1,'login','2026-04-13','00:00:44',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:00:44','2026-04-13 00:00:44'),
(239,1,'login','2026-04-13','00:01:10',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:01:10','2026-04-13 00:01:10'),
(240,1,'login','2026-04-13','00:01:35',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:01:35','2026-04-13 00:01:35'),
(241,1,'login','2026-04-13','00:02:00',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:02:00','2026-04-13 00:02:00'),
(242,1,'login','2026-04-13','00:02:25',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:02:25','2026-04-13 00:02:25'),
(243,1,'login','2026-04-13','00:02:51',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:02:51','2026-04-13 00:02:51'),
(244,1,'login','2026-04-13','00:03:16',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:03:16','2026-04-13 00:03:16'),
(245,1,'login','2026-04-13','00:03:42',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:03:42','2026-04-13 00:03:42'),
(246,1,'login','2026-04-13','00:04:07',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:04:07','2026-04-13 00:04:07'),
(247,1,'login','2026-04-13','00:04:32',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:04:32','2026-04-13 00:04:32'),
(248,1,'login','2026-04-13','00:04:57',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:04:57','2026-04-13 00:04:57'),
(249,1,'login','2026-04-13','00:05:22',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:05:22','2026-04-13 00:05:22'),
(250,1,'login','2026-04-13','00:05:46',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:05:46','2026-04-13 00:05:46'),
(251,1,'login','2026-04-13','00:06:12',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:06:12','2026-04-13 00:06:12'),
(252,1,'login','2026-04-13','00:06:36',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:06:36','2026-04-13 00:06:36'),
(253,1,'login','2026-04-13','00:07:03',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:07:03','2026-04-13 00:07:03'),
(254,1,'login','2026-04-13','00:07:29',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:07:29','2026-04-13 00:07:29'),
(255,1,'login','2026-04-13','00:07:56',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:07:56','2026-04-13 00:07:56'),
(256,1,'login','2026-04-13','00:10:13',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:10:13','2026-04-13 00:10:13'),
(257,1,'login','2026-04-13','00:10:37',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:10:37','2026-04-13 00:10:37'),
(258,1,'login','2026-04-13','00:10:59',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:10:59','2026-04-13 00:10:59'),
(259,1,'login','2026-04-13','00:11:20',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:11:20','2026-04-13 00:11:20'),
(260,1,'login','2026-04-13','00:11:42',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:11:42','2026-04-13 00:11:42'),
(261,1,'login','2026-04-13','00:12:01',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:12:01','2026-04-13 00:12:01'),
(262,1,'login','2026-04-13','00:12:05',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:12:05','2026-04-13 00:12:05'),
(263,1,'login','2026-04-13','00:12:27',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:12:27','2026-04-13 00:12:27'),
(264,1,'login','2026-04-13','00:12:51',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:12:51','2026-04-13 00:12:51'),
(265,1,'login','2026-04-13','00:13:12',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:13:12','2026-04-13 00:13:12'),
(266,1,'login','2026-04-13','00:13:36',1,'App\\Models\\Tenant\\User','181.176.45.0','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Santa Rosa\",\"latitude\":\"-6.75772\",\"longitude\":\"-79.8275\",\"timezone\":\"America\\/Lima\"}','2026-04-13 00:13:36','2026-04-13 00:13:36'),
(267,1,'login','2026-04-13','08:56:59',1,'App\\Models\\Tenant\\User','181.176.45.4','0','desktop','Windows','10.0','Mozilla','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 08:56:59','2026-04-13 08:56:59'),
(268,1,'login','2026-04-13','08:57:15',1,'App\\Models\\Tenant\\User','181.176.45.4','0','desktop','Windows','10.0','Mozilla','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 08:57:15','2026-04-13 08:57:15'),
(269,1,'login','2026-04-13','08:58:02',1,'App\\Models\\Tenant\\User','181.176.45.4','0','desktop','Windows','10.0','Mozilla','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 08:58:02','2026-04-13 08:58:02'),
(270,1,'login','2026-04-13','08:58:14',1,'App\\Models\\Tenant\\User','181.176.45.4','0','desktop','Windows','10.0','Mozilla','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 08:58:14','2026-04-13 08:58:14'),
(271,1,'login','2026-04-13','08:58:49',1,'App\\Models\\Tenant\\User','181.176.45.4','0','desktop','Windows','10.0','Mozilla','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 08:58:49','2026-04-13 08:58:49'),
(272,1,'login','2026-04-13','08:59:20',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 08:59:20','2026-04-13 08:59:20'),
(273,1,'login','2026-04-13','08:59:46',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 08:59:46','2026-04-13 08:59:46'),
(274,1,'login','2026-04-13','09:00:10',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:00:10','2026-04-13 09:00:10'),
(275,1,'login','2026-04-13','09:00:32',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:00:32','2026-04-13 09:00:32'),
(276,1,'login','2026-04-13','09:01:00',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:01:00','2026-04-13 09:01:00'),
(277,1,'login','2026-04-13','09:01:24',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:01:24','2026-04-13 09:01:24'),
(278,1,'login','2026-04-13','09:01:47',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:01:47','2026-04-13 09:01:47'),
(279,1,'login','2026-04-13','09:02:10',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:02:10','2026-04-13 09:02:10'),
(280,1,'login','2026-04-13','09:02:31',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:02:31','2026-04-13 09:02:31'),
(281,1,'login','2026-04-13','09:02:35',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:02:35','2026-04-13 09:02:35'),
(282,1,'login','2026-04-13','09:02:57',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:02:57','2026-04-13 09:02:57'),
(283,1,'login','2026-04-13','09:03:21',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:03:21','2026-04-13 09:03:21'),
(284,1,'login','2026-04-13','09:03:42',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:03:42','2026-04-13 09:03:42'),
(285,1,'login','2026-04-13','09:03:46',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:03:46','2026-04-13 09:03:46'),
(286,1,'login','2026-04-13','09:04:10',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:04:10','2026-04-13 09:04:10'),
(287,1,'login','2026-04-13','09:04:33',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:04:33','2026-04-13 09:04:33'),
(288,1,'login','2026-04-13','09:04:58',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:04:58','2026-04-13 09:04:58'),
(289,1,'login','2026-04-13','09:05:22',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:05:22','2026-04-13 09:05:22'),
(290,1,'login','2026-04-13','09:05:44',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:05:44','2026-04-13 09:05:44'),
(291,1,'login','2026-04-13','09:06:08',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:06:08','2026-04-13 09:06:08'),
(292,1,'login','2026-04-13','09:06:56',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:06:56','2026-04-13 09:06:56'),
(293,1,'login','2026-04-13','09:07:21',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:07:21','2026-04-13 09:07:21'),
(294,1,'login','2026-04-13','09:09:37',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:09:37','2026-04-13 09:09:37'),
(295,1,'login','2026-04-13','09:10:00',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:10:00','2026-04-13 09:10:00'),
(296,1,'login','2026-04-13','09:10:22',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:10:22','2026-04-13 09:10:22'),
(297,1,'login','2026-04-13','09:10:44',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:10:44','2026-04-13 09:10:44'),
(298,1,'login','2026-04-13','09:11:08',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:11:08','2026-04-13 09:11:08'),
(299,1,'login','2026-04-13','09:11:29',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:11:29','2026-04-13 09:11:29'),
(300,1,'login','2026-04-13','09:11:50',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:11:50','2026-04-13 09:11:50'),
(301,1,'login','2026-04-13','09:12:12',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:12:12','2026-04-13 09:12:12'),
(302,1,'login','2026-04-13','09:12:37',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:12:37','2026-04-13 09:12:37'),
(303,1,'login','2026-04-13','09:12:59',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:12:59','2026-04-13 09:12:59'),
(304,1,'login','2026-04-13','09:13:24',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:13:24','2026-04-13 09:13:24'),
(305,1,'login','2026-04-13','09:13:50',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:13:50','2026-04-13 09:13:50'),
(306,1,'login','2026-04-13','09:14:13',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:14:13','2026-04-13 09:14:13'),
(307,1,'login','2026-04-13','09:14:35',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:14:35','2026-04-13 09:14:35'),
(308,1,'login','2026-04-13','09:14:59',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:14:59','2026-04-13 09:14:59'),
(309,1,'login','2026-04-13','09:15:22',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:15:22','2026-04-13 09:15:22'),
(310,1,'login','2026-04-13','09:15:45',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:15:45','2026-04-13 09:15:45'),
(311,1,'login','2026-04-13','09:16:09',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:16:09','2026-04-13 09:16:09'),
(312,1,'login','2026-04-13','09:16:44',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:16:44','2026-04-13 09:16:44'),
(313,1,'login','2026-04-13','09:17:10',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:17:10','2026-04-13 09:17:10'),
(314,1,'login','2026-04-13','09:17:44',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:17:44','2026-04-13 09:17:44'),
(315,1,'login','2026-04-13','09:18:07',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:18:07','2026-04-13 09:18:07'),
(316,1,'login','2026-04-13','09:18:33',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:18:33','2026-04-13 09:18:33'),
(317,1,'login','2026-04-13','09:18:57',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:18:57','2026-04-13 09:18:57'),
(318,1,'login','2026-04-13','09:19:20',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:19:20','2026-04-13 09:19:20'),
(319,1,'login','2026-04-13','09:19:44',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:19:44','2026-04-13 09:19:44'),
(320,1,'login','2026-04-13','09:20:07',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:20:07','2026-04-13 09:20:07'),
(321,1,'login','2026-04-13','09:20:30',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:20:30','2026-04-13 09:20:30'),
(322,1,'login','2026-04-13','09:20:53',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:20:53','2026-04-13 09:20:53'),
(323,1,'login','2026-04-13','09:21:17',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:21:17','2026-04-13 09:21:17'),
(324,1,'login','2026-04-13','09:21:39',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:21:39','2026-04-13 09:21:39'),
(325,1,'login','2026-04-13','09:22:03',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:22:03','2026-04-13 09:22:03'),
(326,1,'login','2026-04-13','09:22:50',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:22:50','2026-04-13 09:22:50'),
(327,1,'login','2026-04-13','09:23:34',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:23:34','2026-04-13 09:23:34'),
(328,1,'login','2026-04-13','09:23:58',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:23:58','2026-04-13 09:23:58'),
(329,1,'login','2026-04-13','09:24:23',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:24:23','2026-04-13 09:24:23'),
(330,1,'login','2026-04-13','09:24:45',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:24:45','2026-04-13 09:24:45'),
(331,1,'login','2026-04-13','09:25:09',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:25:09','2026-04-13 09:25:09'),
(332,1,'login','2026-04-13','09:25:32',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:25:32','2026-04-13 09:25:32'),
(333,1,'login','2026-04-13','09:25:55',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:25:55','2026-04-13 09:25:55'),
(334,1,'login','2026-04-13','09:26:19',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:26:19','2026-04-13 09:26:19'),
(335,1,'login','2026-04-13','09:26:42',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:26:42','2026-04-13 09:26:42'),
(336,1,'login','2026-04-13','09:27:05',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:27:05','2026-04-13 09:27:05'),
(337,1,'login','2026-04-13','09:27:28',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:27:28','2026-04-13 09:27:28'),
(338,1,'login','2026-04-13','09:27:53',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:27:53','2026-04-13 09:27:53'),
(339,1,'login','2026-04-13','09:28:15',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:28:15','2026-04-13 09:28:15'),
(340,1,'login','2026-04-13','09:28:40',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:28:40','2026-04-13 09:28:40'),
(341,1,'login','2026-04-13','09:29:04',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:29:04','2026-04-13 09:29:04'),
(342,1,'login','2026-04-13','09:29:27',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:29:27','2026-04-13 09:29:27'),
(343,1,'login','2026-04-13','09:29:52',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:29:52','2026-04-13 09:29:52'),
(344,1,'login','2026-04-13','09:30:16',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:30:16','2026-04-13 09:30:16'),
(345,1,'login','2026-04-13','09:30:39',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:30:39','2026-04-13 09:30:39'),
(346,1,'login','2026-04-13','09:31:02',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:31:02','2026-04-13 09:31:02'),
(347,1,'login','2026-04-13','09:31:28',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:31:28','2026-04-13 09:31:28'),
(348,1,'login','2026-04-13','09:31:51',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:31:51','2026-04-13 09:31:51'),
(349,1,'login','2026-04-13','09:32:15',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:32:15','2026-04-13 09:32:15'),
(350,1,'login','2026-04-13','09:32:42',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:32:42','2026-04-13 09:32:42'),
(351,1,'login','2026-04-13','09:33:08',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:33:08','2026-04-13 09:33:08'),
(352,1,'login','2026-04-13','09:33:33',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:33:33','2026-04-13 09:33:33'),
(353,1,'login','2026-04-13','09:35:52',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:35:52','2026-04-13 09:35:52'),
(354,1,'login','2026-04-13','09:36:18',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:36:18','2026-04-13 09:36:18'),
(355,1,'login','2026-04-13','09:36:41',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:36:41','2026-04-13 09:36:41'),
(356,1,'login','2026-04-13','09:37:05',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:37:05','2026-04-13 09:37:05'),
(357,1,'login','2026-04-13','09:37:29',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:37:29','2026-04-13 09:37:29'),
(358,1,'login','2026-04-13','09:37:50',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:37:50','2026-04-13 09:37:50'),
(359,1,'login','2026-04-13','09:37:54',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:37:54','2026-04-13 09:37:54'),
(360,1,'login','2026-04-13','09:38:28',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:38:28','2026-04-13 09:38:28'),
(361,1,'login','2026-04-13','09:38:51',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:38:51','2026-04-13 09:38:51'),
(362,1,'login','2026-04-13','09:39:14',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:39:14','2026-04-13 09:39:14'),
(363,1,'login','2026-04-13','09:39:40',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:39:40','2026-04-13 09:39:40'),
(364,1,'login','2026-04-13','09:41:26',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:41:26','2026-04-13 09:41:26'),
(365,1,'login','2026-04-13','09:42:12',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:42:12','2026-04-13 09:42:12'),
(366,1,'login','2026-04-13','09:44:30',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:44:30','2026-04-13 09:44:30'),
(367,1,'login','2026-04-13','09:45:00',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:45:00','2026-04-13 09:45:00'),
(368,1,'login','2026-04-13','09:45:23',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 09:45:23','2026-04-13 09:45:23'),
(369,1,'login','2026-04-13','10:44:53',1,'App\\Models\\Tenant\\User','181.176.45.4','0','desktop','Windows','10.0','Mozilla','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 10:44:53','2026-04-13 10:44:53'),
(370,1,'login','2026-04-13','11:28:02',1,'App\\Models\\Tenant\\User','181.176.45.4','0','desktop','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 11:28:02','2026-04-13 11:28:02'),
(371,1,'login','2026-04-13','12:00:16',1,'App\\Models\\Tenant\\User','181.176.45.4','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 12:00:16','2026-04-13 12:00:16'),
(372,1,'login','2026-04-13','17:46:16',1,'App\\Models\\Tenant\\User','181.176.45.4','0','desktop','Windows','10.0','Mozilla','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 17:46:16','2026-04-13 17:46:16'),
(373,1,'login','2026-04-13','19:17:00',1,'App\\Models\\Tenant\\User','181.176.45.4','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 19:17:00','2026-04-13 19:17:00'),
(374,1,'login','2026-04-13','19:22:52',1,'App\\Models\\Tenant\\User','181.176.45.4','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 19:22:52','2026-04-13 19:22:52'),
(375,1,'login','2026-04-13','19:25:14',1,'App\\Models\\Tenant\\User','181.176.45.4','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 19:25:14','2026-04-13 19:25:14'),
(376,1,'login','2026-04-13','19:35:54',1,'App\\Models\\Tenant\\User','181.176.45.4','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 19:35:54','2026-04-13 19:35:54'),
(377,1,'login','2026-04-13','19:40:23',1,'App\\Models\\Tenant\\User','181.176.45.4','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 19:40:23','2026-04-13 19:40:23'),
(378,1,'login','2026-04-13','19:40:33',1,'App\\Models\\Tenant\\User','181.176.45.4','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 19:40:33','2026-04-13 19:40:33'),
(379,1,'login','2026-04-13','21:25:02',1,'App\\Models\\Tenant\\User','181.176.45.4','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 21:25:02','2026-04-13 21:25:02'),
(380,1,'login','2026-04-13','21:26:33',1,'App\\Models\\Tenant\\User','181.176.45.4','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 21:26:33','2026-04-13 21:26:33'),
(381,1,'login','2026-04-13','21:36:06',1,'App\\Models\\Tenant\\User','181.176.45.4','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 21:36:06','2026-04-13 21:36:06'),
(382,1,'login','2026-04-13','22:37:18',1,'App\\Models\\Tenant\\User','181.176.45.4','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 22:37:18','2026-04-13 22:37:18'),
(383,1,'login','2026-04-13','22:37:34',1,'App\\Models\\Tenant\\User','181.176.45.4','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"AMA\",\"region_name\":\"Amazonas\",\"city_name\":\"Chiriaco\",\"latitude\":\"-5.16\",\"longitude\":\"-78.2889\",\"timezone\":\"America\\/Lima\"}','2026-04-13 22:37:34','2026-04-13 22:37:34'),
(384,1,'login','2026-04-14','01:56:59',1,'App\\Models\\Tenant\\User','181.176.45.74','0','desktop','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"La Soledad\",\"latitude\":\"-8.02806\",\"longitude\":\"-77.4742\",\"timezone\":\"America\\/Lima\"}','2026-04-14 01:56:59','2026-04-14 01:56:59'),
(385,1,'login','2026-04-14','09:48:23',1,'App\\Models\\Tenant\\User','181.176.43.4','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Ja\\u00e9n\",\"latitude\":\"-5.70729\",\"longitude\":\"-78.8079\",\"timezone\":\"America\\/Lima\"}','2026-04-14 09:48:23','2026-04-14 09:48:23'),
(386,1,'login','2026-04-14','10:37:51',1,'App\\Models\\Tenant\\User','181.176.43.4','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Ja\\u00e9n\",\"latitude\":\"-5.70729\",\"longitude\":\"-78.8079\",\"timezone\":\"America\\/Lima\"}','2026-04-14 10:37:51','2026-04-14 10:37:51'),
(387,1,'login','2026-04-14','12:46:46',1,'App\\Models\\Tenant\\User','181.176.43.4','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Ja\\u00e9n\",\"latitude\":\"-5.70729\",\"longitude\":\"-78.8079\",\"timezone\":\"America\\/Lima\"}','2026-04-14 12:46:46','2026-04-14 12:46:46'),
(388,3,'login','2026-04-14','13:29:47',3,'App\\Models\\Tenant\\User','181.176.43.4','0','desktop','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Ja\\u00e9n\",\"latitude\":\"-5.70729\",\"longitude\":\"-78.8079\",\"timezone\":\"America\\/Lima\"}','2026-04-14 13:29:47','2026-04-14 13:29:47'),
(389,1,'login','2026-04-14','13:34:04',1,'App\\Models\\Tenant\\User','181.176.43.4','0','desktop','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Ja\\u00e9n\",\"latitude\":\"-5.70729\",\"longitude\":\"-78.8079\",\"timezone\":\"America\\/Lima\"}','2026-04-14 13:34:04','2026-04-14 13:34:04'),
(390,1,'login','2026-04-14','13:38:35',1,'App\\Models\\Tenant\\User','181.176.43.4','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Ja\\u00e9n\",\"latitude\":\"-5.70729\",\"longitude\":\"-78.8079\",\"timezone\":\"America\\/Lima\"}','2026-04-14 13:38:35','2026-04-14 13:38:35'),
(391,1,'login','2026-04-14','17:48:23',1,'App\\Models\\Tenant\\User','181.176.44.26','0','desktop','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"MOQ\",\"region_name\":\"Moquegua Department\",\"city_name\":\"Ilo\",\"latitude\":\"-17.6318\",\"longitude\":\"-71.3411\",\"timezone\":\"America\\/Lima\"}','2026-04-14 17:48:23','2026-04-14 17:48:23'),
(392,1,'login','2026-04-15','02:01:19',1,'App\\Models\\Tenant\\User','181.176.42.81','0','desktop','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"PIU\",\"region_name\":\"Piura\",\"city_name\":\"M\\u00e1ncora\",\"latitude\":\"-4.10778\",\"longitude\":\"-81.0475\",\"timezone\":\"America\\/Lima\"}','2026-04-15 02:01:19','2026-04-15 02:01:19'),
(393,1,'login','2026-04-15','02:57:00',1,'App\\Models\\Tenant\\User','181.176.42.81','0','desktop','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"PIU\",\"region_name\":\"Piura\",\"city_name\":\"M\\u00e1ncora\",\"latitude\":\"-4.10778\",\"longitude\":\"-81.0475\",\"timezone\":\"America\\/Lima\"}','2026-04-15 02:57:00','2026-04-15 02:57:00'),
(394,1,'login','2026-04-15','03:00:43',1,'App\\Models\\Tenant\\User','181.176.42.81','0','robot','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"PIU\",\"region_name\":\"Piura\",\"city_name\":\"M\\u00e1ncora\",\"latitude\":\"-4.10778\",\"longitude\":\"-81.0475\",\"timezone\":\"America\\/Lima\"}','2026-04-15 03:00:43','2026-04-15 03:00:43'),
(395,1,'login','2026-04-15','09:07:43',1,'App\\Models\\Tenant\\User','181.176.42.81','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"PIU\",\"region_name\":\"Piura\",\"city_name\":\"M\\u00e1ncora\",\"latitude\":\"-4.10778\",\"longitude\":\"-81.0475\",\"timezone\":\"America\\/Lima\"}','2026-04-15 09:07:43','2026-04-15 09:07:43'),
(396,1,'login','2026-04-15','13:50:17',1,'App\\Models\\Tenant\\User','181.176.44.208','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"PIU\",\"region_name\":\"Piura\",\"city_name\":\"Miraflores\",\"latitude\":\"-5.1652\",\"longitude\":\"-80.6138\",\"timezone\":\"America\\/Lima\"}','2026-04-15 13:50:17','2026-04-15 13:50:17'),
(397,1,'login','2026-04-15','17:22:24',1,'App\\Models\\Tenant\\User','181.176.44.208','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"PIU\",\"region_name\":\"Piura\",\"city_name\":\"Miraflores\",\"latitude\":\"-5.1652\",\"longitude\":\"-80.6138\",\"timezone\":\"America\\/Lima\"}','2026-04-15 17:22:24','2026-04-15 17:22:24'),
(398,1,'login','2026-04-16','08:53:52',1,'App\\Models\\Tenant\\User','181.176.40.180','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.16378\",\"longitude\":\"-78.5003\",\"timezone\":\"America\\/Lima\"}','2026-04-16 08:53:52','2026-04-16 08:53:52'),
(399,1,'login','2026-04-16','19:44:32',1,'App\\Models\\Tenant\\User','181.176.106.154','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-04-16 19:44:32','2026-04-16 19:44:32'),
(400,1,'login','2026-04-17','21:44:18',1,'App\\Models\\Tenant\\User','181.176.41.69','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.11599\",\"longitude\":\"-79.03\",\"timezone\":\"America\\/Lima\"}','2026-04-17 21:44:18','2026-04-17 21:44:18'),
(401,1,'login','2026-05-05','20:26:47',1,'App\\Models\\Tenant\\User','181.176.42.92','0','desktop','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"El Porvenir\",\"latitude\":\"-8.08333\",\"longitude\":\"-79\",\"timezone\":\"America\\/Lima\"}','2026-05-05 20:26:47','2026-05-05 20:26:47'),
(402,1,'login','2026-05-06','17:37:20',1,'App\\Models\\Tenant\\User','181.176.42.92','0','desktop','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"El Porvenir\",\"latitude\":\"-8.08333\",\"longitude\":\"-79\",\"timezone\":\"America\\/Lima\"}','2026-05-06 17:37:20','2026-05-06 17:37:20'),
(403,1,'login','2026-05-06','17:52:45',1,'App\\Models\\Tenant\\User','181.176.42.92','0','desktop','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"El Porvenir\",\"latitude\":\"-8.08333\",\"longitude\":\"-79\",\"timezone\":\"America\\/Lima\"}','2026-05-06 17:52:45','2026-05-06 17:52:45'),
(404,1,'login','2026-05-06','19:18:58',1,'App\\Models\\Tenant\\User','181.176.45.118','0','desktop','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Zapotal\",\"latitude\":\"-5.39844\",\"longitude\":\"-78.7048\",\"timezone\":\"America\\/Lima\"}','2026-05-06 19:18:58','2026-05-06 19:18:58'),
(405,1,'login','2026-05-06','19:21:52',1,'App\\Models\\Tenant\\User','181.176.45.118','0','desktop','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Zapotal\",\"latitude\":\"-5.39844\",\"longitude\":\"-78.7048\",\"timezone\":\"America\\/Lima\"}','2026-05-06 19:21:52','2026-05-06 19:21:52'),
(406,1,'login','2026-05-06','19:34:19',1,'App\\Models\\Tenant\\User','181.176.45.118','0','desktop','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Zapotal\",\"latitude\":\"-5.39844\",\"longitude\":\"-78.7048\",\"timezone\":\"America\\/Lima\"}','2026-05-06 19:34:19','2026-05-06 19:34:19'),
(407,1,'failed','2026-05-10','01:41:03',1,'App\\Models\\Tenant\\User','179.6.65.235','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-10 01:41:03','2026-05-10 01:41:03'),
(408,1,'login','2026-05-10','01:41:22',1,'App\\Models\\Tenant\\User','179.6.65.235','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-10 01:41:22','2026-05-10 01:41:22'),
(409,7,'login','2026-05-10','01:52:59',7,'App\\Models\\Tenant\\User','179.6.65.235','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-10 01:52:59','2026-05-10 01:52:59'),
(410,1,'failed','2026-05-10','19:04:54',1,'App\\Models\\Tenant\\User','179.6.65.58','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-10 19:04:54','2026-05-10 19:04:54'),
(411,1,'login','2026-05-10','19:05:08',1,'App\\Models\\Tenant\\User','179.6.65.58','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-10 19:05:08','2026-05-10 19:05:08'),
(412,1,'login','2026-05-10','19:06:16',1,'App\\Models\\Tenant\\User','179.6.65.58','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-10 19:06:16','2026-05-10 19:06:16'),
(413,1,'login','2026-05-10','20:44:55',1,'App\\Models\\Tenant\\User','179.6.55.39','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.163\",\"longitude\":\"-78.5008\",\"timezone\":\"America\\/Lima\"}','2026-05-10 20:44:55','2026-05-10 20:44:55'),
(414,1,'login','2026-05-11','09:02:57',1,'App\\Models\\Tenant\\User','179.6.67.53','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-11 09:02:57','2026-05-11 09:02:57'),
(415,1,'module_access_error','2026-05-11','09:03:24',1,'App\\Models\\Tenant\\User','179.6.67.53','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,'companies/create','{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-11 09:03:24','2026-05-11 09:03:24'),
(416,1,'module_access_error','2026-05-11','09:03:47',1,'App\\Models\\Tenant\\User','179.6.67.53','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,'companies/create','{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-11 09:03:47','2026-05-11 09:03:47'),
(417,1,'login','2026-05-11','17:39:58',1,'App\\Models\\Tenant\\User','179.6.55.39','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.163\",\"longitude\":\"-78.5008\",\"timezone\":\"America\\/Lima\"}','2026-05-11 17:39:58','2026-05-11 17:39:58'),
(418,1,'logout','2026-05-11','17:48:00',1,'App\\Models\\Tenant\\User','179.6.55.39','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.163\",\"longitude\":\"-78.5008\",\"timezone\":\"America\\/Lima\"}','2026-05-11 17:48:00','2026-05-11 17:48:00'),
(419,1,'login','2026-05-11','19:24:11',1,'App\\Models\\Tenant\\User','179.6.55.39','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.163\",\"longitude\":\"-78.5008\",\"timezone\":\"America\\/Lima\"}','2026-05-11 19:24:11','2026-05-11 19:24:11'),
(420,1,'logout','2026-05-11','19:36:55',1,'App\\Models\\Tenant\\User','179.6.55.39','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.163\",\"longitude\":\"-78.5008\",\"timezone\":\"America\\/Lima\"}','2026-05-11 19:36:55','2026-05-11 19:36:55'),
(421,1,'login','2026-05-11','19:38:09',1,'App\\Models\\Tenant\\User','179.6.55.39','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.163\",\"longitude\":\"-78.5008\",\"timezone\":\"America\\/Lima\"}','2026-05-11 19:38:09','2026-05-11 19:38:09'),
(422,1,'login','2026-05-13','02:42:24',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-13 02:42:24','2026-05-13 02:42:24'),
(423,NULL,'failed','2026-05-15','22:15:59',NULL,NULL,'148.222.229.133','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"TAC\",\"region_name\":\"Tacna\",\"city_name\":\"Tacna\",\"latitude\":\"-18.0147\",\"longitude\":\"-70.2536\",\"timezone\":\"America\\/Lima\"}','2026-05-15 22:15:59','2026-05-15 22:15:59'),
(424,NULL,'failed','2026-05-15','22:16:03',NULL,NULL,'148.222.229.133','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"TAC\",\"region_name\":\"Tacna\",\"city_name\":\"Tacna\",\"latitude\":\"-18.0147\",\"longitude\":\"-70.2536\",\"timezone\":\"America\\/Lima\"}','2026-05-15 22:16:03','2026-05-15 22:16:03'),
(425,NULL,'failed','2026-05-15','22:16:06',NULL,NULL,'148.222.229.133','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"TAC\",\"region_name\":\"Tacna\",\"city_name\":\"Tacna\",\"latitude\":\"-18.0147\",\"longitude\":\"-70.2536\",\"timezone\":\"America\\/Lima\"}','2026-05-15 22:16:06','2026-05-15 22:16:06'),
(426,NULL,'failed','2026-05-16','09:36:38',NULL,NULL,'181.67.82.146','WebKit','phone','AndroidOS','10','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.163\",\"longitude\":\"-78.5008\",\"timezone\":\"America\\/Lima\"}','2026-05-16 09:36:38','2026-05-16 09:36:38'),
(427,1,'failed','2026-05-16','23:11:27',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-16 23:11:27','2026-05-16 23:11:27'),
(428,1,'login','2026-05-16','23:11:31',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-16 23:11:31','2026-05-16 23:11:31'),
(429,1,'login','2026-05-17','00:21:23',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-17 00:21:23','2026-05-17 00:21:23'),
(430,1,'login','2026-05-17','00:23:31',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-17 00:23:31','2026-05-17 00:23:31'),
(431,1,'login','2026-05-17','00:24:29',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-17 00:24:29','2026-05-17 00:24:29'),
(432,1,'login','2026-05-17','00:25:10',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-17 00:25:10','2026-05-17 00:25:10'),
(433,1,'login','2026-05-17','00:25:28',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-17 00:25:28','2026-05-17 00:25:28'),
(434,1,'login','2026-05-17','00:47:11',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-17 00:47:11','2026-05-17 00:47:11'),
(435,1,'login','2026-05-17','00:47:43',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','robot','Windows','10.0','Chrome','145.0.7632.6',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-17 00:47:43','2026-05-17 00:47:43'),
(436,1,'module_access_error','2026-05-17','01:11:21',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,'advanced','{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-17 01:11:21','2026-05-17 01:11:21'),
(437,1,'login','2026-05-19','19:05:40',1,'App\\Models\\Tenant\\User','179.6.165.65','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 19:05:40','2026-05-19 19:05:40'),
(438,1,'logout','2026-05-19','19:30:06',1,'App\\Models\\Tenant\\User','179.6.165.65','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 19:30:06','2026-05-19 19:30:06'),
(439,1,'login','2026-05-19','19:30:26',1,'App\\Models\\Tenant\\User','179.6.165.65','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 19:30:26','2026-05-19 19:30:26'),
(440,1,'failed','2026-05-19','19:40:41',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-19 19:40:41','2026-05-19 19:40:41'),
(441,1,'login','2026-05-19','19:40:48',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-19 19:40:48','2026-05-19 19:40:48'),
(442,1,'logout','2026-05-19','19:43:26',1,'App\\Models\\Tenant\\User','179.6.165.65','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 19:43:26','2026-05-19 19:43:26'),
(443,NULL,'failed','2026-05-19','19:45:15',NULL,NULL,'179.6.145.241','iPhone','phone','iOS','26_4_2','Chrome','148.0.7778.166',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 19:45:15','2026-05-19 19:45:15'),
(444,1,'failed','2026-05-19','19:45:52',1,'App\\Models\\Tenant\\User','179.6.145.241','iPhone','phone','iOS','26_4_2','Chrome','148.0.7778.166',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 19:45:52','2026-05-19 19:45:52'),
(445,1,'failed','2026-05-19','19:46:12',1,'App\\Models\\Tenant\\User','179.6.145.241','iPhone','phone','iOS','26_4_2','Chrome','148.0.7778.166',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 19:46:12','2026-05-19 19:46:12'),
(446,1,'failed','2026-05-19','19:46:48',1,'App\\Models\\Tenant\\User','179.6.145.241','iPhone','phone','iOS','26_4_2','Chrome','148.0.7778.166',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 19:46:48','2026-05-19 19:46:48'),
(447,1,'failed','2026-05-19','20:07:40',1,'App\\Models\\Tenant\\User','179.6.145.241','iPhone','phone','iOS','26_4_2','Chrome','148.0.7778.166',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 20:07:40','2026-05-19 20:07:40'),
(448,1,'failed','2026-05-19','20:08:01',1,'App\\Models\\Tenant\\User','179.6.145.241','iPhone','phone','iOS','26_4_2','Chrome','148.0.7778.166',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 20:08:01','2026-05-19 20:08:01'),
(449,1,'failed','2026-05-19','20:27:32',1,'App\\Models\\Tenant\\User','132.184.160.76','WebKit','phone','AndroidOS','10','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 20:27:32','2026-05-19 20:27:32'),
(450,NULL,'failed','2026-05-19','20:27:53',NULL,NULL,'132.184.160.76','WebKit','phone','AndroidOS','10','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 20:27:53','2026-05-19 20:27:53'),
(451,1,'login','2026-05-19','22:48:46',1,'App\\Models\\Tenant\\User','179.6.165.65','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 22:48:46','2026-05-19 22:48:46'),
(452,1,'logout','2026-05-19','22:49:29',1,'App\\Models\\Tenant\\User','179.6.165.65','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 22:49:29','2026-05-19 22:49:29'),
(453,1,'login','2026-05-19','22:50:15',1,'App\\Models\\Tenant\\User','38.255.105.116','WebKit','phone','AndroidOS','10','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 22:50:15','2026-05-19 22:50:15'),
(454,1,'login','2026-05-19','22:50:35',1,'App\\Models\\Tenant\\User','179.6.165.65','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 22:50:35','2026-05-19 22:50:35'),
(455,1,'module_access_error','2026-05-19','22:56:13',1,'App\\Models\\Tenant\\User','179.6.165.65','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,'companies/create','{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 22:56:13','2026-05-19 22:56:13'),
(456,1,'login','2026-05-19','23:15:59',1,'App\\Models\\Tenant\\User','179.6.165.65','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-19 23:15:59','2026-05-19 23:15:59'),
(457,1,'login','2026-05-20','08:48:01',1,'App\\Models\\Tenant\\User','190.236.76.137','Macintosh','desktop','OS X','10_15_7','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-05-20 08:48:01','2026-05-20 08:48:01'),
(458,1,'login','2026-05-20','10:31:48',1,'App\\Models\\Tenant\\User','179.6.26.113','0','desktop','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-20 10:31:48','2026-05-20 10:31:48'),
(459,1,'login','2026-05-20','11:15:27',1,'App\\Models\\Tenant\\User','38.226.150.148','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.163\",\"longitude\":\"-78.5008\",\"timezone\":\"America\\/Lima\"}','2026-05-20 11:15:27','2026-05-20 11:15:27'),
(460,1,'logout','2026-05-20','11:19:10',1,'App\\Models\\Tenant\\User','38.226.150.148','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.163\",\"longitude\":\"-78.5008\",\"timezone\":\"America\\/Lima\"}','2026-05-20 11:19:10','2026-05-20 11:19:10'),
(461,1,'login','2026-05-20','11:19:20',1,'App\\Models\\Tenant\\User','38.226.150.148','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.163\",\"longitude\":\"-78.5008\",\"timezone\":\"America\\/Lima\"}','2026-05-20 11:19:20','2026-05-20 11:19:20'),
(462,1,'login','2026-05-20','17:15:53',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-20 17:15:53','2026-05-20 17:15:53'),
(463,1,'login','2026-05-20','18:52:03',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-20 18:52:03','2026-05-20 18:52:03'),
(464,1,'login','2026-05-20','22:55:31',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-20 22:55:31','2026-05-20 22:55:31'),
(465,1,'login','2026-05-21','10:32:00',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','phone','AndroidOS','10','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-21 10:32:00','2026-05-21 10:32:00'),
(466,1,'login','2026-05-21','14:08:42',1,'App\\Models\\Tenant\\User','179.6.26.113','0','desktop','0','0','0','0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-21 14:08:42','2026-05-21 14:08:42'),
(467,1,'login','2026-05-21','18:51:58',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-05-21 18:51:58','2026-05-21 18:51:58'),
(468,1,'login','2026-05-22','10:01:39',1,'App\\Models\\Tenant\\User','38.226.150.148','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.163\",\"longitude\":\"-78.5008\",\"timezone\":\"America\\/Lima\"}','2026-05-22 10:01:39','2026-05-22 10:01:39'),
(469,1,'login','2026-05-23','19:03:31',1,'App\\Models\\Tenant\\User','38.226.150.148','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.163\",\"longitude\":\"-78.5008\",\"timezone\":\"America\\/Lima\"}','2026-05-23 19:03:31','2026-05-23 19:03:31'),
(470,1,'login','2026-05-24','07:24:16',1,'App\\Models\\Tenant\\User','38.226.150.148','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.163\",\"longitude\":\"-78.5008\",\"timezone\":\"America\\/Lima\"}','2026-05-24 07:24:16','2026-05-24 07:24:16'),
(471,1,'login','2026-05-24','07:24:16',1,'App\\Models\\Tenant\\User','38.226.150.148','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.163\",\"longitude\":\"-78.5008\",\"timezone\":\"America\\/Lima\"}','2026-05-24 07:24:16','2026-05-24 07:24:16'),
(472,NULL,'failed','2026-06-04','16:27:49',NULL,NULL,'179.6.144.73','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-06-04 16:27:49','2026-06-04 16:27:49'),
(473,1,'login','2026-06-04','18:17:06',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-04 18:17:06','2026-06-04 18:17:06'),
(474,NULL,'failed','2026-06-04','18:17:54',NULL,NULL,'190.239.193.23','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2026-06-04 18:17:54','2026-06-04 18:17:54'),
(475,NULL,'failed','2026-06-04','18:18:06',NULL,NULL,'190.239.193.23','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2026-06-04 18:18:06','2026-06-04 18:18:06'),
(476,1,'login','2026-06-04','18:37:05',1,'App\\Models\\Tenant\\User','179.7.180.95','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-06-04 18:37:05','2026-06-04 18:37:05'),
(477,1,'login','2026-06-04','18:53:07',1,'App\\Models\\Tenant\\User','179.6.144.73','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-06-04 18:53:07','2026-06-04 18:53:07'),
(478,1,'logout','2026-06-04','19:10:09',1,'App\\Models\\Tenant\\User','179.7.180.95','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-06-04 19:10:09','2026-06-04 19:10:09'),
(479,1,'module_access_error','2026-06-04','19:37:46',1,'App\\Models\\Tenant\\User','179.6.144.73','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,'companies/create','{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-06-04 19:37:46','2026-06-04 19:37:46'),
(480,1,'logout','2026-06-04','20:53:21',1,'App\\Models\\Tenant\\User','179.6.144.73','WebKit','desktop','Windows','10.0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-06-04 20:53:21','2026-06-04 20:53:21'),
(481,1,'login','2026-06-07','13:14:55',1,'App\\Models\\Tenant\\User','179.6.66.57','WebKit','phone','AndroidOS','10','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-07 13:14:55','2026-06-07 13:14:55'),
(482,1,'login','2026-06-10','17:54:17',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-10 17:54:17','2026-06-10 17:54:17'),
(483,1,'login','2026-06-10','20:50:30',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-10 20:50:30','2026-06-10 20:50:30'),
(484,1,'module_access_error','2026-06-10','20:50:37',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'advanced','{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-10 20:50:37','2026-06-10 20:50:37'),
(485,1,'module_access_error','2026-06-10','20:50:50',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'advanced','{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-10 20:50:50','2026-06-10 20:50:50'),
(486,1,'module_access_error','2026-06-10','20:51:19',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'advanced','{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-10 20:51:19','2026-06-10 20:51:19'),
(487,1,'login','2026-06-11','09:51:09',1,'App\\Models\\Tenant\\User','201.240.240.54','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"PUN\",\"region_name\":\"Puno\",\"city_name\":\"Juliaca\",\"latitude\":\"-15.4991\",\"longitude\":\"-70.1339\",\"timezone\":\"America\\/Lima\"}','2026-06-11 09:51:09','2026-06-11 09:51:09'),
(488,1,'login','2026-06-12','14:13:06',1,'App\\Models\\Tenant\\User','201.240.240.54','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"PUN\",\"region_name\":\"Puno\",\"city_name\":\"Juliaca\",\"latitude\":\"-15.4991\",\"longitude\":\"-70.1339\",\"timezone\":\"America\\/Lima\"}','2026-06-12 14:13:06','2026-06-12 14:13:06'),
(489,1,'login','2026-06-13','09:53:21',1,'App\\Models\\Tenant\\User','201.240.240.54','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"PUN\",\"region_name\":\"Puno\",\"city_name\":\"Juliaca\",\"latitude\":\"-15.4991\",\"longitude\":\"-70.1339\",\"timezone\":\"America\\/Lima\"}','2026-06-13 09:53:21','2026-06-13 09:53:21'),
(490,1,'login','2026-06-13','11:14:23',1,'App\\Models\\Tenant\\User','201.240.240.54','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"PUN\",\"region_name\":\"Puno\",\"city_name\":\"Juliaca\",\"latitude\":\"-15.4991\",\"longitude\":\"-70.1339\",\"timezone\":\"America\\/Lima\"}','2026-06-13 11:14:23','2026-06-13 11:14:23'),
(491,NULL,'failed','2026-06-13','14:51:08',NULL,NULL,'132.184.160.167','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ARE\",\"region_name\":\"Arequipa\",\"city_name\":\"Arequipa\",\"latitude\":\"-16.4014\",\"longitude\":\"-71.5343\",\"timezone\":\"America\\/Lima\"}','2026-06-13 14:51:08','2026-06-13 14:51:08'),
(492,1,'login','2026-06-14','00:37:42',1,'App\\Models\\Tenant\\User','213.173.36.229','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima\",\"city_name\":\"Lima\",\"latitude\":\"-12.0491\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-14 00:37:42','2026-06-14 00:37:42'),
(493,1,'login','2026-06-14','03:58:37',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-14 03:58:37','2026-06-14 03:58:37'),
(494,1,'login','2026-06-14','11:32:19',1,'App\\Models\\Tenant\\User','213.173.36.229','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima\",\"city_name\":\"Lima\",\"latitude\":\"-12.0491\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-14 11:32:19','2026-06-14 11:32:19'),
(495,1,'login','2026-06-15','00:05:56',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-15 00:05:56','2026-06-15 00:05:56'),
(496,1,'logout','2026-06-15','03:56:20',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-15 03:56:20','2026-06-15 03:56:20'),
(497,1,'login','2026-06-15','03:56:24',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-15 03:56:24','2026-06-15 03:56:24'),
(498,1,'login','2026-06-16','13:33:20',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-16 13:33:20','2026-06-16 13:33:20'),
(499,NULL,'failed','2026-06-16','21:11:57',NULL,NULL,'179.6.26.240','WebKit','desktop','Windows','10.0','Edge','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-16 21:11:57','2026-06-16 21:11:57'),
(500,1,'login','2026-06-16','21:12:09',1,'App\\Models\\Tenant\\User','179.6.26.240','WebKit','desktop','Windows','10.0','Edge','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-16 21:12:09','2026-06-16 21:12:09'),
(501,1,'login','2026-06-17','19:45:00',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-17 19:45:00','2026-06-17 19:45:00'),
(502,NULL,'failed','2026-06-17','22:52:48',NULL,NULL,'38.250.131.64','WebKit','desktop','Windows','10.0','Edge','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.7711\",\"longitude\":\"-79.8431\",\"timezone\":\"America\\/Lima\"}','2026-06-17 22:52:48','2026-06-17 22:52:48'),
(503,1,'login','2026-06-18','12:06:29',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-18 12:06:29','2026-06-18 12:06:29'),
(504,1,'login','2026-06-18','17:23:45',1,'App\\Models\\Tenant\\User','201.240.240.54','WebKit','desktop','Windows','10.0','Chrome','109.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"PUN\",\"region_name\":\"Puno\",\"city_name\":\"Juliaca\",\"latitude\":\"-15.4991\",\"longitude\":\"-70.1339\",\"timezone\":\"America\\/Lima\"}','2026-06-18 17:23:45','2026-06-18 17:23:45'),
(505,1,'login','2026-06-19','03:32:29',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-19 03:32:29','2026-06-19 03:32:29'),
(506,1,'logout','2026-06-19','03:43:53',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-19 03:43:53','2026-06-19 03:43:53'),
(507,1,'login','2026-06-19','03:43:56',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-19 03:43:56','2026-06-19 03:43:56'),
(508,1,'logout','2026-06-19','03:45:26',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-19 03:45:26','2026-06-19 03:45:26'),
(509,1,'login','2026-06-19','03:45:56',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-19 03:45:56','2026-06-19 03:45:56'),
(510,1,'login','2026-06-19','03:58:53',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-19 03:58:53','2026-06-19 03:58:53'),
(511,1,'login','2026-06-19','09:01:32',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-19 09:01:32','2026-06-19 09:01:32'),
(512,1,'login','2026-06-19','12:02:20',1,'App\\Models\\Tenant\\User','179.6.80.151','WebKit','phone','AndroidOS','10','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2026-06-19 12:02:20','2026-06-19 12:02:20'),
(513,1,'login','2026-06-19','23:59:52',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-19 23:59:52','2026-06-19 23:59:52'),
(514,1,'login','2026-06-20','00:30:24',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','robot','Windows','10.0','Chrome','148.0.7778.96',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 00:30:24','2026-06-20 00:30:24'),
(515,1,'login','2026-06-20','00:33:41',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','robot','Windows','10.0','Chrome','148.0.7778.96',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 00:33:41','2026-06-20 00:33:41'),
(516,1,'login','2026-06-20','00:35:08',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','robot','Windows','10.0','Chrome','148.0.7778.96',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 00:35:08','2026-06-20 00:35:08'),
(517,1,'login','2026-06-20','00:38:27',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','robot','Windows','10.0','Chrome','148.0.7778.96',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 00:38:27','2026-06-20 00:38:27'),
(518,1,'login','2026-06-20','00:40:26',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','robot','Windows','10.0','Chrome','148.0.7778.96',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 00:40:26','2026-06-20 00:40:26'),
(519,1,'login','2026-06-20','00:56:42',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 00:56:42','2026-06-20 00:56:42'),
(520,NULL,'failed','2026-06-20','16:08:41',NULL,NULL,'38.56.219.64','WebKit','desktop','Windows','10.0','Edge','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.7711\",\"longitude\":\"-79.8431\",\"timezone\":\"America\\/Lima\"}','2026-06-20 16:08:41','2026-06-20 16:08:41'),
(521,1,'failed','2026-06-20','16:08:51',1,'App\\Models\\Tenant\\User','38.56.219.64','WebKit','desktop','Windows','10.0','Edge','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAM\",\"region_name\":\"Lambayeque\",\"city_name\":\"Chiclayo\",\"latitude\":\"-6.7711\",\"longitude\":\"-79.8431\",\"timezone\":\"America\\/Lima\"}','2026-06-20 16:08:51','2026-06-20 16:08:51'),
(522,1,'login','2026-06-20','22:01:25',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 22:01:25','2026-06-20 22:01:25'),
(523,1,'login','2026-06-20','22:49:49',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 22:49:49','2026-06-20 22:49:49'),
(524,1,'login','2026-06-21','11:47:21',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-21 11:47:21','2026-06-21 11:47:21'),
(525,1,'login','2026-06-24','13:54:04',1,'App\\Models\\Tenant\\User','179.6.54.218','WebKit','desktop','Windows','10.0','Chrome','147.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.163\",\"longitude\":\"-78.5008\",\"timezone\":\"America\\/Lima\"}','2026-06-24 13:54:04','2026-06-24 13:54:04'),
(526,NULL,'failed','2026-06-24','15:36:29',NULL,NULL,'179.6.23.97','WebKit','desktop','Windows','10.0','Edge','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-24 15:36:29','2026-06-24 15:36:29'),
(527,1,'login','2026-06-24','16:39:43',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-24 16:39:43','2026-06-24 16:39:43'),
(528,1,'login','2026-06-24','20:17:38',1,'App\\Models\\Tenant\\User','179.6.81.62','WebKit','desktop','Linux','0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2026-06-24 20:17:38','2026-06-24 20:17:38'),
(529,1,'login','2026-06-25','12:25:04',1,'App\\Models\\Tenant\\User','200.62.246.146','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-25 12:25:04','2026-06-25 12:25:04'),
(530,1,'logout','2026-06-25','12:49:53',1,'App\\Models\\Tenant\\User','200.62.246.146','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-25 12:49:53','2026-06-25 12:49:53'),
(531,1,'login','2026-06-25','12:50:26',1,'App\\Models\\Tenant\\User','200.62.246.146','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-25 12:50:26','2026-06-25 12:50:26'),
(532,1,'login','2026-06-27','15:27:34',1,'App\\Models\\Tenant\\User','179.7.85.119','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Otuto\",\"latitude\":\"-7.51594\",\"longitude\":\"-78.0693\",\"timezone\":\"America\\/Lima\"}','2026-06-27 15:27:34','2026-06-27 15:27:34'),
(533,1,'login','2026-06-28','02:18:58',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-28 02:18:58','2026-06-28 02:18:58'),
(534,1,'login','2026-06-28','15:50:13',1,'App\\Models\\Tenant\\User','179.7.84.141','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cajamarca\",\"latitude\":\"-7.16378\",\"longitude\":\"-78.5003\",\"timezone\":\"America\\/Lima\"}','2026-06-28 15:50:13','2026-06-28 15:50:13'),
(535,1,'login','2026-06-28','21:04:57',1,'App\\Models\\Tenant\\User','200.215.251.109','WebKit','phone','AndroidOS','10','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LIM\",\"region_name\":\"Lima region\",\"city_name\":\"San Juan de Lurigancho\",\"latitude\":\"-12.0064\",\"longitude\":\"-77.0139\",\"timezone\":\"America\\/Lima\"}','2026-06-28 21:04:57','2026-06-28 21:04:57'),
(536,NULL,'failed','2026-06-29','13:37:52',NULL,NULL,'45.170.50.70','WebKit','desktop','Windows','10.0','Edge','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"PIU\",\"region_name\":\"Piura\",\"city_name\":\"Sullana\",\"latitude\":\"-4.9017\",\"longitude\":\"-80.6887\",\"timezone\":\"America\\/Lima\"}','2026-06-29 13:37:52','2026-06-29 13:37:52'),
(537,1,'login','2026-06-30','11:44:57',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-30 11:44:57','2026-06-30 11:44:57'),
(538,NULL,'failed','2026-06-30','12:51:35',NULL,NULL,'38.25.28.236','WebKit','desktop','Windows','10.0','Edge','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LIM\",\"region_name\":\"Lima region\",\"city_name\":\"Santa Anita - Los Ficus\",\"latitude\":\"-12.0505\",\"longitude\":\"-76.9734\",\"timezone\":\"America\\/Lima\"}','2026-06-30 12:51:35','2026-06-30 12:51:35'),
(539,1,'login','2026-06-30','13:05:35',1,'App\\Models\\Tenant\\User','179.6.6.250','WebKit','desktop','Linux','0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"HUV\",\"region_name\":\"Huancavelica\",\"city_name\":\"Pampas\",\"latitude\":\"-12.3988\",\"longitude\":\"-74.8685\",\"timezone\":\"America\\/Lima\"}','2026-06-30 13:05:35','2026-06-30 13:05:35'),
(540,1,'login','2026-06-30','16:23:39',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-30 16:23:39','2026-06-30 16:23:39'),
(541,NULL,'failed','2026-06-30','22:16:47',NULL,NULL,'181.67.122.208','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"ICA\",\"region_name\":\"Ica\",\"city_name\":\"Ica\",\"latitude\":\"-14.0641\",\"longitude\":\"-75.7292\",\"timezone\":\"America\\/Lima\"}','2026-06-30 22:16:47','2026-06-30 22:16:47'),
(542,1,'login','2026-07-01','01:51:39',1,'App\\Models\\Tenant\\User','179.6.6.250','WebKit','phone','AndroidOS','10','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"HUV\",\"region_name\":\"Huancavelica\",\"city_name\":\"Pampas\",\"latitude\":\"-12.3988\",\"longitude\":\"-74.8685\",\"timezone\":\"America\\/Lima\"}','2026-07-01 01:51:39','2026-07-01 01:51:39'),
(543,NULL,'failed','2026-07-02','09:11:56',NULL,NULL,'190.239.28.70','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-02 09:11:56','2026-07-02 09:11:56'),
(544,NULL,'failed','2026-07-02','09:12:03',NULL,NULL,'190.239.28.70','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-02 09:12:03','2026-07-02 09:12:03'),
(545,1,'login','2026-07-02','11:46:54',1,'App\\Models\\Tenant\\User','179.7.84.227','WebKit','desktop','Linux','0','Chrome','148.0.0.0',NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"CAJ\",\"region_name\":\"Cajamarca Department\",\"city_name\":\"Cerrillo\",\"latitude\":\"-7.12716\",\"longitude\":\"-78.4893\",\"timezone\":\"America\\/Lima\"}','2026-07-02 11:46:54','2026-07-02 11:46:54');
COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

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

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

INSERT INTO `user_mobile_establishments` VALUES
(1,1,1,'2026-05-06 17:37:20','2026-05-06 17:37:20');
COMMIT;

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

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

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

COMMIT;

--
-- Dumping data for table `users`
--

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

COMMIT;

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

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

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

INSERT INTO `warehouses` VALUES
(1,1,'Almacén Oficina Principal','2025-12-27 11:51:17','2025-12-27 11:51:17'),
(2,2,'Almacén - sucursal','2026-05-20 17:16:41','2026-05-20 17:16:41');
COMMIT;

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

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

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

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

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

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

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

COMMIT;

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

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

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

COMMIT;


