(1657,178,7,'{\"stock\":93,\"id\":7,\"item_id\":7,\"full_description\":\"60062 - UROPOL FORTE F 200 mg\",\"name\":\"UROPOL FORTE F Tableta Recubierta 200 mg\",\"second_name\":null,\"description\":\"UROPOL FORTE F 200 mg - HERSIL S.A.C. LABORATORIOS INDUSTRIALES FARMACEUTICOS\",\"currency_type_id\":\"PEN\",\"internal_id\":\"60062\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":2.5,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"editable_sale_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.50\",\"aux_sale_unit_price\":\"2.50\",\"image_url\":\"https:\\/\\/medic.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"93.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":11,\"description\":\"Unidad\",\"item_id\":7,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":2.5,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"11NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]}],\"category\":null,\"brand\":\"HERSIL S.A.C. LABORATORIOS INDUSTRIALES FARMACEUTICOS\",\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[{\"id\":7,\"code\":\"2500105\",\"quantity\":96,\"date_of_due\":\"2027-05-31\",\"checked\":false,\"compromise_quantity\":0}],\"lot_status\":\"ok\",\"active_principle\":\"FENAZOPIRIDINA CLORHIDRATO\",\"payWithPoints\":false,\"generic\":0,\"location\":null,\"atc_name\":null,\"formula\":\"Tableta Recubierta\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"is_vaccine\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":0,\"presentation\":{\"id\":11,\"description\":\"Unidad\",\"item_id\":7,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":2.5,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"11NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]},\"unit_price\":2.5,\"IdLoteSelected\":7}',1.0000,2.500000,'20',2.50,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.500000,2.50,0.00,0.00,2.50,'[]','[]','[]',NULL,2638,NULL,NULL),(1658,178,330,'{\"stock\":1,\"id\":330,\"item_id\":330,\"full_description\":\"50392 - NOTIZOL B\",\"name\":\"NOTIZOL B 1 g + 0.1 g + 0.05 g\",\"second_name\":null,\"description\":\"NOTIZOL B - LABORATORIOS SIEGFRIED S.A.C.\",\"currency_type_id\":\"PEN\",\"internal_id\":\"50392\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":11,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"editable_sale_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"11.00\",\"aux_sale_unit_price\":\"11.00\",\"image_url\":\"https:\\/\\/medic.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"1.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":584,\"description\":\"Unidad\",\"item_id\":330,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":11,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"584NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]}],\"category\":null,\"brand\":\"LABORATORIOS SIEGFRIED S.A.C.\",\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[{\"id\":330,\"code\":\"2024575\",\"quantity\":1,\"date_of_due\":\"2027-02-28\",\"checked\":false,\"compromise_quantity\":0}],\"lot_status\":\"ok\",\"active_principle\":\"BETAMETASONA DIPROPIONATO + CLOTRIMAZOL + GENTAMICINA SULFATO\",\"payWithPoints\":false,\"generic\":0,\"location\":null,\"atc_name\":null,\"formula\":\"Crema\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"is_vaccine\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":0,\"presentation\":{\"id\":584,\"description\":\"Unidad\",\"item_id\":330,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":11,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"584NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]},\"unit_price\":11,\"IdLoteSelected\":330}',1.0000,11.000000,'20',11.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',11.000000,11.00,0.00,0.00,11.00,'[]','[]','[]',NULL,2639,NULL,NULL),(1659,178,256,'{\"stock\":24,\"id\":256,\"item_id\":256,\"full_description\":\"48366 - METRONIDAZOL 500 mg\",\"name\":\"METRONIDAZOL 500 mg\",\"second_name\":null,\"description\":\"METRONIDAZOL 500 mg - LABORATORIOS PORTUGAL S.R.L.\",\"currency_type_id\":\"PEN\",\"internal_id\":\"48366\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":0.2,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"editable_sale_price\":false,\"aux_quantity\":25,\"edit_sale_unit_price\":\"0.20\",\"aux_sale_unit_price\":\"0.20\",\"image_url\":\"https:\\/\\/medic.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"24.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":424,\"description\":\"Unidad\",\"item_id\":256,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":0.2,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"424NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]}],\"category\":null,\"brand\":\"LABORATORIOS PORTUGAL S.R.L.\",\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[{\"id\":256,\"code\":\"2072275\",\"quantity\":24,\"date_of_due\":\"2028-07-31\",\"checked\":false,\"compromise_quantity\":0}],\"lot_status\":\"ok\",\"active_principle\":\"METRONIDAZOL\",\"payWithPoints\":false,\"generic\":0,\"location\":null,\"atc_name\":null,\"formula\":\"Tableta\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"is_vaccine\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":0,\"presentation\":{\"id\":424,\"description\":\"Unidad\",\"item_id\":256,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":0.2,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"424NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]},\"unit_price\":0.2,\"IdLoteSelected\":256}',20.0000,0.200000,'20',4.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',0.200000,4.00,0.00,0.00,4.00,'[]','[]','[]',NULL,2640,NULL,NULL),(1660,178,76,'{\"stock\":5,\"id\":76,\"item_id\":76,\"full_description\":\"51137 - SILDEMAX Tableta Recubierta 100 mg\",\"name\":\"SILDEMAX Tableta Recubierta 100 mg\",\"second_name\":null,\"description\":\"SILDEMAX Tableta Recubierta 100 mg - LABORATORIOS PORTUGAL S.R.L.\",\"currency_type_id\":\"PEN\",\"internal_id\":\"51137\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":4,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"editable_sale_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"4.00\",\"aux_sale_unit_price\":\"4.00\",\"image_url\":\"https:\\/\\/medic.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"5.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":93,\"description\":\"Unidad\",\"item_id\":76,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":4,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"93NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]}],\"category\":null,\"brand\":\"LABORATORIOS PORTUGAL S.R.L.\",\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[{\"id\":73,\"code\":\"2087705\",\"quantity\":8,\"date_of_due\":\"2028-08-31\",\"checked\":false,\"compromise_quantity\":0}],\"lot_status\":\"ok\",\"active_principle\":\"SILDENAFILO CITRATO\",\"payWithPoints\":false,\"generic\":0,\"location\":null,\"atc_name\":null,\"formula\":\"Tableta Recubierta\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"is_vaccine\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":0,\"presentation\":{\"id\":93,\"description\":\"Unidad\",\"item_id\":76,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":4,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"93NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]},\"unit_price\":4,\"IdLoteSelected\":73}',1.0000,4.000000,'20',4.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',4.000000,4.00,0.00,0.00,4.00,'[]','[]','[]',NULL,2641,NULL,NULL),(1661,178,715,'{\"stock\":55,\"id\":715,\"item_id\":715,\"full_description\":\"JERINGA HIPODERMICA ESTERIL 21GX11\\/2\\\" 5ml\\/cc\",\"name\":null,\"second_name\":null,\"description\":\"JERINGA HIPODERMICA ESTERIL 21GX11\\/2\\\" 5ml\\/cc\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":0.5,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"editable_sale_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"0.50\",\"aux_sale_unit_price\":\"0.50\",\"image_url\":\"https:\\/\\/medic.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"55.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":969,\"description\":\"Unidad\",\"item_id\":715,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":0.5,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"969NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[{\"id\":727,\"code\":\"20250528\",\"quantity\":56,\"date_of_due\":\"2030-12-31\",\"checked\":false,\"compromise_quantity\":0}],\"lot_status\":\"ok\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"atc_name\":null,\"formula\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"is_vaccine\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":4,\"presentation\":{\"id\":969,\"description\":\"Unidad\",\"item_id\":715,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":0.5,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"969NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]},\"unit_price\":0.5,\"IdLoteSelected\":727}',1.0000,0.500000,'20',0.50,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',0.500000,0.50,0.00,0.00,0.50,'[]','[]','[]',NULL,2642,NULL,NULL),(1662,178,757,'{\"stock\":72,\"id\":757,\"item_id\":757,\"full_description\":\"AMPOLLA DICLOFENACO 75MG\\/3ML\",\"name\":null,\"second_name\":null,\"description\":\"AMPOLLA DICLOFENACO 75MG\\/3ML\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":2,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"editable_sale_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/medic.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"72.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":1011,\"description\":\"Unidad\",\"item_id\":757,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":2,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"1011NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[{\"id\":771,\"code\":\"250209\",\"quantity\":72,\"date_of_due\":\"2028-02-29\",\"checked\":false,\"compromise_quantity\":0}],\"lot_status\":\"ok\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"atc_name\":null,\"formula\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"is_vaccine\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":1,\"presentation\":{\"id\":1011,\"description\":\"Unidad\",\"item_id\":757,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":2,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"1011NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]},\"unit_price\":2,\"IdLoteSelected\":771}',1.0000,2.000000,'20',2.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,2.00,0.00,0.00,2.00,'[]','[]','[]',NULL,2643,NULL,NULL),(1663,178,748,'{\"stock\":68,\"id\":748,\"item_id\":748,\"full_description\":\"AMPOLLA DEXAMETASONA 4MG\\/2ML\",\"name\":null,\"second_name\":null,\"description\":\"AMPOLLA DEXAMETASONA 4MG\\/2ML\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":3,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"editable_sale_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"3.00\",\"aux_sale_unit_price\":\"3.00\",\"image_url\":\"https:\\/\\/medic.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"68.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":1002,\"description\":\"Unidad\",\"item_id\":748,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":3,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"1002NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[{\"id\":761,\"code\":\"57250402\",\"quantity\":68,\"date_of_due\":\"2028-04-30\",\"checked\":false,\"compromise_quantity\":0}],\"lot_status\":\"ok\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"atc_name\":null,\"formula\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"is_vaccine\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":4,\"presentation\":{\"id\":1002,\"description\":\"Unidad\",\"item_id\":748,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":3,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"1002NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]},\"unit_price\":3,\"IdLoteSelected\":761}',1.0000,3.000000,'20',3.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',3.000000,3.00,0.00,0.00,3.00,'[]','[]','[]',NULL,2644,NULL,NULL),(1664,178,260,'{\"stock\":59,\"id\":260,\"item_id\":260,\"full_description\":\"51133 - LEVOFLOXACINO 500 mg\",\"name\":\"LEVOFLOXACINO 500 mg\",\"second_name\":null,\"description\":\"LEVOFLOXACINO 500 mg - LABORATORIOS PORTUGAL S.R.L.\",\"currency_type_id\":\"PEN\",\"internal_id\":\"51133\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":2,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"editable_sale_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/medic.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"59.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":436,\"description\":\"Unidad\",\"item_id\":260,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":2,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"436NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]}],\"category\":null,\"brand\":\"LABORATORIOS PORTUGAL S.R.L.\",\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[{\"id\":260,\"code\":\"2092494\",\"quantity\":61,\"date_of_due\":\"2027-09-30\",\"checked\":false,\"compromise_quantity\":0}],\"lot_status\":\"ok\",\"active_principle\":\"LEVOFLOXACINO HEMIHIDRATO\",\"payWithPoints\":false,\"generic\":0,\"location\":null,\"atc_name\":null,\"formula\":\"Tableta Recubierta\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"is_vaccine\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":1,\"presentation\":{\"id\":436,\"description\":\"Unidad\",\"item_id\":260,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":2,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"436NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]},\"unit_price\":2,\"IdLoteSelected\":260}',1.0000,2.000000,'20',2.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,2.00,0.00,0.00,2.00,'[]','[]','[]',NULL,2645,NULL,NULL),(1665,178,312,'{\"stock\":6,\"id\":312,\"item_id\":312,\"full_description\":\"37573 - DICLOFENACO 1 %\",\"name\":\"DICLOFENACO 1 %\",\"second_name\":null,\"description\":\"DICLOFENACO 1 % - FARMINDUSTRIA S.A.\",\"currency_type_id\":\"PEN\",\"internal_id\":\"37573\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":6.5,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"editable_sale_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"6.50\",\"aux_sale_unit_price\":\"6.50\",\"image_url\":\"https:\\/\\/medic.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"6.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":566,\"description\":\"Unidad\",\"item_id\":312,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":6.5,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"566NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]}],\"category\":null,\"brand\":\"FARMINDUSTRIA S.A.\",\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[{\"id\":312,\"code\":\"20531066\",\"quantity\":6,\"date_of_due\":\"2028-05-31\",\"checked\":false,\"compromise_quantity\":0}],\"lot_status\":\"ok\",\"active_principle\":\"DICLOFENACO SODICO\",\"payWithPoints\":false,\"generic\":0,\"location\":null,\"atc_name\":null,\"formula\":\"Gel\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"is_vaccine\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":2,\"presentation\":{\"id\":566,\"description\":\"Unidad\",\"item_id\":312,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":6.5,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"566NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]},\"unit_price\":6.5,\"IdLoteSelected\":312}',1.0000,6.500000,'20',6.50,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',6.500000,6.50,0.00,0.00,6.50,'[]','[]','[]',NULL,2646,NULL,NULL),(1666,178,212,'{\"stock\":54,\"id\":212,\"item_id\":212,\"full_description\":\"HEPABIONTA FORTE\",\"name\":null,\"second_name\":null,\"description\":\"HEPABIONTA FORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":3,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"editable_sale_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"3.00\",\"aux_sale_unit_price\":\"3.00\",\"image_url\":\"https:\\/\\/medic.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"54.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":354,\"description\":\"Unidad\",\"item_id\":212,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":3,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"354NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[{\"id\":208,\"code\":\"217425\",\"quantity\":62,\"date_of_due\":\"2028-09-30\",\"checked\":false,\"compromise_quantity\":0}],\"lot_status\":\"ok\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"atc_name\":null,\"formula\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"is_vaccine\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":1,\"presentation\":{\"id\":354,\"description\":\"Unidad\",\"item_id\":212,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":3,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"354NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]},\"unit_price\":3,\"IdLoteSelected\":208}',4.0000,3.000000,'20',12.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',3.000000,12.00,0.00,0.00,12.00,'[]','[]','[]',NULL,2647,NULL,NULL),(1667,178,351,'{\"stock\":28,\"id\":351,\"item_id\":351,\"full_description\":\"HISOPOS TUINIES BEBE\",\"name\":null,\"second_name\":null,\"description\":\"HISOPOS TUINIES BEBE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":1.5,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"editable_sale_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"1.50\",\"aux_sale_unit_price\":\"1.50\",\"image_url\":\"https:\\/\\/medic.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"28.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":605,\"description\":\"Unidad\",\"item_id\":351,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":1.5,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"605NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[{\"id\":352,\"code\":\"20230925\",\"quantity\":28,\"date_of_due\":\"2028-09-30\",\"checked\":false,\"compromise_quantity\":0}],\"lot_status\":\"ok\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"atc_name\":null,\"formula\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"is_vaccine\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":0,\"presentation\":{\"id\":605,\"description\":\"Unidad\",\"item_id\":351,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":1.5,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"605NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]},\"unit_price\":1.5,\"IdLoteSelected\":352}',1.0000,1.500000,'20',1.50,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.500000,1.50,0.00,0.00,1.50,'[]','[]','[]',NULL,2648,NULL,NULL),(1668,178,659,'{\"stock\":1,\"id\":659,\"item_id\":659,\"full_description\":\"CORTA U\\u00d1AS ADULTO\",\"name\":null,\"second_name\":null,\"description\":\"CORTA U\\u00d1AS ADULTO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":3,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"editable_sale_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"3.00\",\"aux_sale_unit_price\":\"3.00\",\"image_url\":\"https:\\/\\/medic.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"1.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":913,\"description\":\"Unidad\",\"item_id\":659,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":3,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"913NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"lot_status\":\"none\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"atc_name\":null,\"formula\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"is_vaccine\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":2,\"presentation\":{\"id\":913,\"description\":\"Unidad\",\"item_id\":659,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":3,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"913NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]},\"unit_price\":3,\"IdLoteSelected\":null}',1.0000,3.000000,'20',3.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',3.000000,3.00,0.00,0.00,3.00,'[]','[]','[]',NULL,2649,NULL,NULL),(1669,179,733,'{\"stock\":6,\"id\":733,\"item_id\":733,\"full_description\":\"ALCOHOL MEDICNAL 70\\u00ba  120ML\",\"name\":null,\"second_name\":null,\"description\":\"ALCOHOL MEDICNAL 70\\u00ba  120ML\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":3,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"editable_sale_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"3.00\",\"aux_sale_unit_price\":\"3.00\",\"image_url\":\"https:\\/\\/medic.sysfarma.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_id\":1,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"6.0000\",\"is_current_warehouse\":true}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":987,\"description\":\"Unidad\",\"item_id\":733,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":3,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"987NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[{\"id\":746,\"code\":\"2030786\",\"quantity\":7,\"date_of_due\":\"2031-03-31\",\"checked\":false,\"compromise_quantity\":0}],\"lot_status\":\"ok\",\"active_principle\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"atc_name\":null,\"formula\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"is_vaccine\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":2,\"presentation\":{\"id\":987,\"description\":\"Unidad\",\"item_id\":733,\"unit_type_id\":\"NIU\",\"quantity_unit\":1,\"price1\":3,\"price2\":0,\"price3\":0,\"price_default\":1,\"barcode\":\"987NIU1\",\"deleted_at\":null,\"pricing_source\":\"master_template\",\"pricing_status\":\"master\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"},\"warehouse_prices\":[]},\"unit_price\":3,\"IdLoteSelected\":746}',1.0000,3.000000,'20',3.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',3.000000,3.00,0.00,0.00,3.00,'[]','[]','[]',NULL,2650,NULL,NULL);
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `sale_note_payments` VALUES (1,1,'2026-06-26','01',0,NULL,NULL,NULL,NULL,4.00),(2,2,'2026-06-26','01',0,NULL,NULL,NULL,NULL,3.00),(3,3,'2026-06-26','01',0,NULL,NULL,NULL,NULL,2.00),(4,4,'2026-06-26','01',0,NULL,NULL,NULL,NULL,46.00),(5,5,'2026-06-26','02',0,NULL,NULL,NULL,NULL,3.00),(6,5,'2026-06-26','01',0,NULL,NULL,NULL,NULL,9.00),(7,6,'2026-06-26','01',0,NULL,NULL,NULL,NULL,14.50),(8,7,'2026-06-26','01',0,NULL,NULL,NULL,NULL,17.50),(9,8,'2026-06-26','01',0,NULL,NULL,NULL,NULL,13.00),(10,9,'2026-06-26','01',0,NULL,NULL,NULL,NULL,14.00),(11,10,'2026-06-26','01',0,NULL,NULL,NULL,NULL,3.00),(12,11,'2026-06-26','01',0,NULL,NULL,NULL,NULL,3.00),(13,12,'2026-06-27','01',0,NULL,NULL,NULL,NULL,22.00),(14,13,'2026-06-27','01',0,NULL,NULL,NULL,NULL,18.50),(15,13,'2026-06-27','02',0,NULL,NULL,NULL,NULL,3.00),(16,14,'2026-06-27','01',0,NULL,NULL,NULL,NULL,85.50),(17,15,'2026-06-27','01',0,NULL,NULL,NULL,NULL,14.00),(18,16,'2026-06-28','01',0,NULL,NULL,NULL,NULL,4.00),(19,17,'2026-06-28','01',0,NULL,NULL,NULL,NULL,3.00),(20,18,'2026-06-28','01',0,NULL,NULL,NULL,NULL,60.50),(21,19,'2026-06-28','02',0,NULL,NULL,NULL,NULL,2.00),(22,20,'2026-06-28','01',0,NULL,NULL,NULL,NULL,7.50),(23,21,'2026-06-28','01',0,NULL,NULL,NULL,NULL,10.00),(24,22,'2026-06-28','01',0,NULL,NULL,NULL,NULL,8.00),(25,23,'2026-06-28','01',0,NULL,NULL,NULL,NULL,2.50),(26,24,'2026-06-28','01',0,NULL,NULL,NULL,NULL,2.00),(27,25,'2026-06-28','01',0,NULL,NULL,NULL,NULL,4.00),(28,26,'2026-06-28','02',0,NULL,NULL,NULL,NULL,7.00),(29,27,'2026-06-28','01',0,NULL,NULL,NULL,NULL,3.00),(30,28,'2026-06-28','01',0,NULL,NULL,NULL,NULL,33.50),(31,29,'2026-06-28','02',0,NULL,NULL,NULL,NULL,13.00),(32,30,'2026-06-28','01',0,NULL,NULL,NULL,NULL,4.00),(33,31,'2026-06-28','01',0,NULL,NULL,NULL,NULL,3.00),(34,32,'2026-06-28','01',0,NULL,NULL,NULL,NULL,2.00),(35,33,'2026-06-29','01',0,NULL,NULL,NULL,NULL,15.50),(36,34,'2026-06-29','01',0,NULL,NULL,NULL,NULL,18.00),(37,35,'2026-06-29','01',0,NULL,NULL,NULL,NULL,16.50),(38,36,'2026-06-29','02',0,NULL,NULL,NULL,NULL,3.00),(39,37,'2026-06-29','01',0,NULL,NULL,NULL,NULL,2.00),(40,38,'2026-06-29','01',0,NULL,NULL,NULL,NULL,1.50),(41,39,'2026-06-29','01',0,NULL,NULL,NULL,NULL,1.00),(42,40,'2026-06-29','01',0,NULL,NULL,NULL,NULL,2.50),(43,41,'2026-06-29','01',0,NULL,NULL,NULL,NULL,5.00),(44,42,'2026-06-29','01',0,NULL,NULL,NULL,NULL,3.00),(45,43,'2026-06-29','02',0,NULL,NULL,NULL,NULL,13.50),(46,43,'2026-06-29','01',0,NULL,NULL,NULL,NULL,66.50),(47,44,'2026-06-29','01',0,NULL,NULL,NULL,NULL,5.50),(48,45,'2026-06-30','01',0,NULL,NULL,NULL,NULL,40.50),(49,46,'2026-06-30','01',0,NULL,NULL,NULL,NULL,12.50),(50,47,'2026-06-30','01',0,NULL,NULL,NULL,NULL,2.00),(51,48,'2026-06-30','01',0,NULL,NULL,NULL,NULL,24.00),(52,49,'2026-06-30','01',0,NULL,NULL,NULL,NULL,0.50),(53,50,'2026-06-30','01',0,NULL,NULL,NULL,NULL,0.50),(54,51,'2026-06-30','01',0,NULL,NULL,NULL,NULL,2.00),(55,52,'2026-06-30','02',0,NULL,NULL,NULL,NULL,13.00),(56,53,'2026-06-30','02',0,NULL,NULL,NULL,NULL,3.00),(57,54,'2026-06-30','02',0,NULL,NULL,NULL,NULL,22.60),(58,54,'2026-06-30','01',0,NULL,NULL,NULL,NULL,61.00),(59,55,'2026-06-30','02',0,NULL,NULL,NULL,NULL,9.60),(60,55,'2026-06-30','01',0,NULL,NULL,NULL,NULL,19.00),(61,56,'2026-06-30','01',0,NULL,NULL,NULL,NULL,2.00),(62,57,'2026-07-01','01',0,NULL,NULL,NULL,NULL,1.50),(63,58,'2026-07-01','02',0,NULL,NULL,NULL,NULL,2.00),(64,59,'2026-07-01','01',0,NULL,NULL,NULL,NULL,24.00),(65,60,'2026-07-01','02',0,NULL,NULL,NULL,NULL,23.00),(66,61,'2026-07-01','01',0,NULL,NULL,NULL,NULL,2.00),(67,62,'2026-07-01','01',0,NULL,NULL,NULL,NULL,14.50),(68,63,'2026-07-01','02',0,NULL,NULL,NULL,NULL,3.00),(69,64,'2026-07-01','01',0,NULL,NULL,NULL,NULL,2.00),(70,65,'2026-07-01','01',0,NULL,NULL,NULL,NULL,8.00),(71,66,'2026-07-01','01',0,NULL,NULL,NULL,NULL,2.00),(72,67,'2026-07-01','02',0,NULL,NULL,NULL,NULL,2.00),(73,68,'2026-07-01','01',0,NULL,NULL,NULL,NULL,5.00),(74,69,'2026-07-01','02',0,NULL,NULL,NULL,NULL,2.00),(75,70,'2026-07-01','01',0,NULL,NULL,NULL,NULL,1.50),(76,71,'2026-07-01','01',0,NULL,NULL,NULL,NULL,33.50),(77,71,'2026-07-01','02',0,NULL,NULL,NULL,NULL,24.00),(78,72,'2026-07-01','02',0,NULL,NULL,NULL,NULL,4.50),(79,72,'2026-07-01','01',0,NULL,NULL,NULL,NULL,77.00),(80,73,'2026-07-02','02',0,NULL,NULL,NULL,NULL,61.00),(81,73,'2026-07-02','01',0,NULL,NULL,NULL,NULL,24.50),(82,74,'2026-07-02','02',0,NULL,NULL,NULL,NULL,4.00),(83,75,'2026-07-02','01',0,NULL,NULL,NULL,NULL,50.30),(84,76,'2026-07-02','01',0,NULL,NULL,NULL,NULL,13.50),(85,77,'2026-07-02','01',0,NULL,NULL,NULL,NULL,9.00),(86,78,'2026-07-02','01',0,NULL,NULL,NULL,NULL,12.00),(87,79,'2026-07-02','01',0,NULL,NULL,NULL,NULL,2.00),(88,80,'2026-07-02','01',0,NULL,NULL,NULL,NULL,14.50),(89,81,'2026-07-02','02',0,NULL,NULL,NULL,NULL,10.50),(90,82,'2026-07-02','01',0,NULL,NULL,NULL,NULL,7.50),(91,83,'2026-07-02','02',0,NULL,NULL,NULL,NULL,12.00),(92,84,'2026-07-02','02',0,NULL,NULL,NULL,NULL,0.70),(93,85,'2026-07-02','01',0,NULL,NULL,NULL,NULL,4.00),(94,86,'2026-07-03','01',0,NULL,NULL,NULL,NULL,4.50),(95,87,'2026-07-03','02',0,NULL,NULL,NULL,NULL,18.00),(96,88,'2026-07-03','01',0,NULL,NULL,NULL,NULL,7.00),(97,89,'2026-07-03','02',0,NULL,NULL,NULL,NULL,2.50),(98,90,'2026-07-03','01',0,NULL,NULL,NULL,NULL,13.50),(99,91,'2026-07-03','02',0,NULL,NULL,NULL,NULL,2.00),(100,92,'2026-07-03','01',0,NULL,NULL,NULL,NULL,15.00),(101,93,'2026-07-03','02',0,NULL,NULL,NULL,NULL,19.00),(102,94,'2026-07-03','01',0,NULL,NULL,NULL,NULL,19.00),(103,95,'2026-07-03','02',0,NULL,NULL,NULL,NULL,2.50),(104,96,'2026-07-03','01',0,NULL,NULL,NULL,NULL,4.00),(105,97,'2026-07-03','02',0,NULL,NULL,NULL,NULL,6.00),(106,98,'2026-07-03','01',0,NULL,NULL,NULL,NULL,9.00),(107,99,'2026-07-03','02',0,NULL,NULL,NULL,NULL,17.00),(108,100,'2026-07-03','01',0,NULL,NULL,NULL,NULL,16.50),(109,101,'2026-07-03','01',0,NULL,NULL,NULL,NULL,35.50),(110,102,'2026-07-03','01',0,NULL,NULL,NULL,NULL,23.50),(111,103,'2026-07-04','01',0,NULL,NULL,NULL,NULL,52.00),(112,104,'2026-07-04','02',0,NULL,NULL,NULL,NULL,1.00),(113,105,'2026-07-04','01',0,NULL,NULL,NULL,NULL,6.00),(114,106,'2026-07-04','01',0,NULL,NULL,NULL,NULL,2.00),(115,107,'2026-07-04','02',0,NULL,NULL,NULL,NULL,41.50),(116,107,'2026-07-04','01',0,NULL,NULL,NULL,NULL,212.50),(117,108,'2026-07-05','01',0,NULL,NULL,NULL,NULL,1.50),(118,109,'2026-07-05','02',0,NULL,NULL,NULL,NULL,21.50),(119,109,'2026-07-05','01',0,NULL,NULL,NULL,NULL,142.00),(120,110,'2026-07-06','02',0,NULL,NULL,NULL,NULL,8.00),(121,111,'2026-07-06','01',0,NULL,NULL,NULL,NULL,3.50),(122,112,'2026-07-06','02',0,NULL,NULL,NULL,NULL,4.50),(123,113,'2026-07-06','01',0,NULL,NULL,NULL,NULL,31.50),(124,114,'2026-07-06','02',0,NULL,NULL,NULL,NULL,12.00),(125,115,'2026-07-06','01',0,NULL,NULL,NULL,NULL,50.00),(126,116,'2026-07-06','02',0,NULL,NULL,NULL,NULL,7.50),(127,117,'2026-07-06','01',0,NULL,NULL,NULL,NULL,29.20),(128,118,'2026-07-06','01',0,NULL,NULL,NULL,NULL,5.00),(129,119,'2026-07-06','01',0,NULL,NULL,NULL,NULL,4.50),(130,120,'2026-07-06','01',0,NULL,NULL,NULL,NULL,2.50),(131,121,'2026-07-06','01',0,NULL,NULL,NULL,NULL,2.50),(132,122,'2026-07-06','02',0,NULL,NULL,NULL,NULL,18.00),(133,122,'2026-07-06','01',0,NULL,NULL,NULL,NULL,64.20),(134,123,'2026-07-07','01',0,NULL,NULL,NULL,NULL,76.80),(135,123,'2026-07-07','02',0,NULL,NULL,NULL,NULL,6.00),(136,124,'2026-07-07','01',0,NULL,NULL,NULL,NULL,16.50),(137,125,'2026-07-07','02',0,NULL,NULL,NULL,NULL,64.00),(138,125,'2026-07-07','01',0,NULL,NULL,NULL,NULL,66.70),(139,126,'2026-07-08','01',0,NULL,NULL,NULL,NULL,55.70),(140,126,'2026-07-08','02',0,NULL,NULL,NULL,NULL,40.80),(141,127,'2026-07-08','02',0,NULL,NULL,NULL,NULL,27.00),(142,127,'2026-07-08','01',0,NULL,NULL,NULL,NULL,82.40),(143,128,'2026-07-09','02',0,NULL,NULL,NULL,NULL,9.00),(144,128,'2026-07-09','01',0,NULL,NULL,NULL,NULL,33.00),(145,129,'2026-07-09','01',0,NULL,NULL,NULL,NULL,92.90),(146,129,'2026-07-09','02',0,NULL,NULL,NULL,NULL,68.00),(147,130,'2026-07-10','01',0,NULL,NULL,NULL,NULL,86.00),(148,130,'2026-07-10','02',0,NULL,NULL,NULL,NULL,65.20),(149,131,'2026-07-10','01',0,NULL,NULL,NULL,NULL,73.00),(150,131,'2026-07-10','02',0,NULL,NULL,NULL,NULL,10.50),(151,132,'2026-07-11','02',0,NULL,NULL,NULL,NULL,9.50),(152,132,'2026-07-11','01',0,NULL,NULL,NULL,NULL,45.00),(153,133,'2026-07-11','01',0,NULL,NULL,NULL,NULL,76.00),(154,133,'2026-07-11','02',0,NULL,NULL,NULL,NULL,23.50),(155,134,'2026-07-12','01',0,NULL,NULL,NULL,NULL,118.80),(156,134,'2026-07-12','02',0,NULL,NULL,NULL,NULL,8.50),(157,135,'2026-07-13','01',0,NULL,NULL,NULL,NULL,82.00),(158,135,'2026-07-13','02',0,NULL,NULL,NULL,NULL,34.70),(159,136,'2026-07-13','02',0,NULL,NULL,NULL,NULL,20.50),(160,136,'2026-07-13','01',0,NULL,NULL,NULL,NULL,73.50),(161,137,'2026-07-14','01',0,NULL,NULL,NULL,NULL,56.50),(162,138,'2026-07-14','02',0,NULL,NULL,NULL,NULL,7.50),(163,139,'2026-07-14','02',0,NULL,NULL,NULL,NULL,16.50),(164,139,'2026-07-14','01',0,NULL,NULL,NULL,NULL,141.00),(165,140,'2026-07-14','01',0,NULL,NULL,NULL,NULL,5.00),(166,141,'2026-07-15','01',0,NULL,NULL,NULL,NULL,33.50),(167,142,'2026-07-15','02',0,NULL,NULL,NULL,NULL,23.00),(168,143,'2026-07-15','01',0,NULL,NULL,NULL,NULL,12.50),(169,143,'2026-07-15','02',0,NULL,NULL,NULL,NULL,1.00),(170,144,'2026-07-15','02',0,NULL,NULL,NULL,NULL,10.50),(171,144,'2026-07-15','01',0,NULL,NULL,NULL,NULL,87.50),(172,145,'2026-07-16','01',0,NULL,NULL,NULL,NULL,56.50),(173,145,'2026-07-16','02',0,NULL,NULL,NULL,NULL,27.70),(174,146,'2026-07-16','02',0,NULL,NULL,NULL,NULL,53.50),(175,146,'2026-07-16','01',0,NULL,NULL,NULL,NULL,70.00),(176,147,'2026-07-17','01',0,NULL,NULL,NULL,NULL,87.30),(177,147,'2026-07-17','02',0,NULL,NULL,NULL,NULL,21.00),(178,148,'2026-07-17','01',0,NULL,NULL,NULL,NULL,3.00),(179,149,'2026-07-18','02',0,NULL,NULL,NULL,NULL,11.50),(180,149,'2026-07-18','01',0,NULL,NULL,NULL,NULL,75.20),(181,150,'2026-07-18','01',0,NULL,NULL,NULL,NULL,38.50),(182,151,'2026-07-18','02',0,NULL,NULL,NULL,NULL,23.00),(183,152,'2026-07-18','01',0,NULL,NULL,NULL,NULL,1.00),(184,153,'2026-07-18','02',0,NULL,NULL,NULL,NULL,5.00),(185,154,'2026-07-18','01',0,NULL,NULL,NULL,NULL,23.50),(186,155,'2026-07-18','02',0,NULL,NULL,NULL,NULL,15.00),(187,156,'2026-07-18','01',0,NULL,NULL,NULL,NULL,3.00),(188,157,'2026-07-18','02',0,NULL,NULL,NULL,NULL,1.00),(189,158,'2026-07-18','01',0,NULL,NULL,NULL,NULL,66.80),(190,159,'2026-07-18','01',0,NULL,NULL,NULL,NULL,4.00),(191,160,'2026-07-18','01',0,NULL,NULL,NULL,NULL,8.50),(192,161,'2026-07-19','02',0,NULL,NULL,NULL,NULL,28.50),(193,161,'2026-07-19','01',0,NULL,NULL,NULL,NULL,116.30),(194,162,'2026-07-20','02',0,NULL,NULL,NULL,NULL,21.50),(195,162,'2026-07-20','01',0,NULL,NULL,NULL,NULL,29.00),(196,163,'2026-07-20','02',0,NULL,NULL,NULL,NULL,32.00),(197,163,'2026-07-20','01',0,NULL,NULL,NULL,NULL,57.00),(198,164,'2026-07-21','02',0,NULL,NULL,NULL,NULL,11.50),(199,164,'2026-07-21','01',0,NULL,NULL,NULL,NULL,43.30),(200,165,'2026-07-21','01',0,NULL,NULL,NULL,NULL,92.70),(201,165,'2026-07-21','02',0,NULL,NULL,NULL,NULL,63.00),(202,166,'2026-07-22','01',0,NULL,NULL,NULL,NULL,99.50),(203,166,'2026-07-22','02',0,NULL,NULL,NULL,NULL,9.50),(204,167,'2026-07-23','01',0,NULL,NULL,NULL,NULL,33.30),(205,167,'2026-07-23','02',0,NULL,NULL,NULL,NULL,16.00),(206,168,'2026-07-23','02',0,NULL,NULL,NULL,NULL,33.50),(207,168,'2026-07-23','01',0,NULL,NULL,NULL,NULL,99.70),(208,169,'2026-07-24','01',0,NULL,NULL,NULL,NULL,9.00),(209,170,'2026-07-24','01',0,NULL,NULL,NULL,NULL,59.00),(210,170,'2026-07-24','02',0,NULL,NULL,NULL,NULL,2.00),(211,171,'2026-07-25','02',0,NULL,NULL,NULL,NULL,39.00),(212,171,'2026-07-25','01',0,NULL,NULL,NULL,NULL,131.00),(213,172,'2026-07-26','02',0,NULL,NULL,NULL,NULL,36.00),(214,172,'2026-07-26','01',0,NULL,NULL,NULL,NULL,152.10),(215,173,'2026-07-26','01',0,NULL,NULL,NULL,NULL,2.00),(216,174,'2026-07-27','02',0,NULL,NULL,NULL,NULL,21.00),(217,174,'2026-07-27','01',0,NULL,NULL,NULL,NULL,175.00),(218,175,'2026-07-28','01',0,NULL,NULL,NULL,NULL,51.00),(219,176,'2026-07-28','01',0,NULL,NULL,NULL,NULL,4.00),(220,177,'2026-07-28','02',0,NULL,NULL,NULL,NULL,16.00),(221,177,'2026-07-28','01',0,NULL,NULL,NULL,NULL,67.00),(222,178,'2026-07-29','02',0,NULL,NULL,NULL,NULL,11.00),(223,178,'2026-07-29','01',0,NULL,NULL,NULL,NULL,101.00),(224,179,'2026-07-29','01',0,NULL,NULL,NULL,NULL,3.00);
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `series` VALUES (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;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

CREATE TABLE `suscription_plans` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cat_period_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con el periodo de tiempo',
  `name` text NOT NULL COMMENT 'Nombre del plan',
  `description` longtext NOT NULL COMMENT 'Descripcion del plan',
  `total` float DEFAULT 0 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` float DEFAULT 0,
  `total_prepayment` float DEFAULT 0,
  `total_charge` float DEFAULT 0,
  `total_discount` float DEFAULT 0,
  `total_exportation` float DEFAULT 0,
  `total_free` float DEFAULT 0,
  `total_taxed` float DEFAULT 0,
  `total_unaffected` float DEFAULT 0,
  `total_exonerated` float DEFAULT 0,
  `total_igv` float DEFAULT 0,
  `total_igv_free` float DEFAULT 0,
  `total_base_isc` float DEFAULT 0,
  `total_isc` float DEFAULT 0,
  `total_base_other_taxes` float DEFAULT 0,
  `total_other_taxes` float DEFAULT 0,
  `total_taxes` float DEFAULT 0,
  `total_value` float DEFAULT 0,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`charges`)),
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`attributes`)),
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`discounts`)),
  `prepayments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`prepayments`)),
  `related` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`related`)),
  `perception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`perception`)),
  `detraction` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`detraction`)),
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`legends`)),
  `terms_condition` longtext DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

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

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

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

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

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

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

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

CREATE TABLE `system_activity_logs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `system_activity_log_type_id` varchar(255) DEFAULT NULL,
  `date` date NOT NULL,
  `time` time NOT NULL,
  `origin_id` int(11) DEFAULT NULL,
  `origin_type` varchar(255) DEFAULT NULL,
  `ip` varchar(255) DEFAULT NULL,
  `device_name` varchar(255) DEFAULT NULL,
  `device_type` varchar(255) DEFAULT NULL,
  `platform_name` varchar(255) DEFAULT NULL,
  `platform_version` varchar(255) DEFAULT NULL,
  `browser_name` varchar(255) DEFAULT NULL,
  `browser_version` varchar(255) DEFAULT NULL,
  `request_email` varchar(255) DEFAULT NULL,
  `route` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `location` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`location`)),
  `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=291 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

SET autocommit=0;
INSERT INTO `system_activity_logs` VALUES (1,1,'login','2026-06-20','11:27:54',1,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 11:27:54','2026-06-20 11:27:54'),(2,1,'logout','2026-06-20','12:22:08',1,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 12:22:08','2026-06-20 12:22:08'),(3,1,'login','2026-06-20','12:22:28',1,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 12:22:28','2026-06-20 12:22:28'),(4,1,'login','2026-06-20','17:27:20',1,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 17:27:20','2026-06-20 17:27:20'),(5,1,'logout','2026-06-20','17:29:45',1,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 17:29:45','2026-06-20 17:29:45'),(6,2,'login','2026-06-20','17:30:00',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 17:30:00','2026-06-20 17:30:00'),(7,2,'login','2026-06-20','17:30:12',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 17:30:12','2026-06-20 17:30:12'),(8,2,'module_access_error','2026-06-20','17:30:13',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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 17:30:13','2026-06-20 17:30:13'),(9,NULL,'failed','2026-06-20','17:31:09',NULL,NULL,'179.6.81.8','WebKit','desktop','Linux','0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2026-06-20 17:31:09','2026-06-20 17:31:09'),(10,1,'login','2026-06-20','17:31:23',1,'App\\Models\\Tenant\\User','179.6.81.8','WebKit','desktop','Linux','0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2026-06-20 17:31:23','2026-06-20 17:31:23'),(11,2,'logout','2026-06-20','17:54:08',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 17:54:08','2026-06-20 17:54:08'),(12,1,'login','2026-06-20','17:54:14',1,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 17:54:14','2026-06-20 17:54:14'),(13,1,'login','2026-06-20','17:59:09',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 17:59:09','2026-06-20 17:59:09'),(14,1,'logout','2026-06-20','18:07:21',1,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 18:07:21','2026-06-20 18:07:21'),(15,2,'login','2026-06-20','18:07:33',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 18:07:33','2026-06-20 18:07:33'),(16,2,'module_access_error','2026-06-20','18:07:34',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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 18:07:34','2026-06-20 18:07:34'),(17,2,'logout','2026-06-20','19:03:08',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 19:03:08','2026-06-20 19:03:08'),(18,1,'login','2026-06-20','19:03:14',1,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 19:03:14','2026-06-20 19:03:14'),(19,1,'logout','2026-06-20','19:07:44',1,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 19:07:44','2026-06-20 19:07:44'),(20,2,'login','2026-06-20','19:08:03',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 19:08:03','2026-06-20 19:08:03'),(21,2,'module_access_error','2026-06-20','19:08:04',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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 19:08:04','2026-06-20 19:08:04'),(22,2,'logout','2026-06-20','19:08:21',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-20 19:08:21','2026-06-20 19:08:21'),(23,1,'login','2026-06-21','01:58:17',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-21 01:58:17','2026-06-21 01:58:17'),(24,2,'login','2026-06-21','07:53:04',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-21 07:53:04','2026-06-21 07:53:04'),(25,2,'module_access_error','2026-06-21','07:53:04',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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 07:53:04','2026-06-21 07:53:04'),(26,2,'logout','2026-06-21','13:09:50',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-21 13:09:50','2026-06-21 13:09:50'),(27,NULL,'failed','2026-06-21','18:42:02',NULL,NULL,'179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-21 18:42:02','2026-06-21 18:42:02'),(28,1,'login','2026-06-21','18:42:13',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-21 18:42:13','2026-06-21 18:42:13'),(29,1,'level_module_access_error','2026-06-21','18:46:33',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'prescriptions/digemid',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 18:46:33','2026-06-21 18:46:33'),(30,2,'login','2026-06-22','07:33:54',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-22 07:33:54','2026-06-22 07:33:54'),(31,2,'module_access_error','2026-06-22','07:33:54',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-22 07:33:54','2026-06-22 07:33:54'),(32,2,'module_access_error','2026-06-22','07:37:13',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-22 07:37:13','2026-06-22 07:37:13'),(33,2,'module_access_error','2026-06-22','10:48:27',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-22 10:48:27','2026-06-22 10:48:27'),(34,2,'module_access_error','2026-06-22','15:30:34',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-22 15:30:34','2026-06-22 15:30:34'),(35,1,'login','2026-06-22','16:25:09',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-22 16:25:09','2026-06-22 16:25:09'),(36,2,'logout','2026-06-22','21:16:39',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-22 21:16:39','2026-06-22 21:16:39'),(37,NULL,'failed','2026-06-22','23:06:49',NULL,NULL,'179.6.26.113','WebKit','desktop','Linux','0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-22 23:06:49','2026-06-22 23:06:49'),(38,1,'login','2026-06-22','23:07:17',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Linux','0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-22 23:07:17','2026-06-22 23:07:17'),(39,2,'login','2026-06-23','15:26:10',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-23 15:26:10','2026-06-23 15:26:10'),(40,2,'module_access_error','2026-06-23','15:26:11',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-23 15:26:11','2026-06-23 15:26:11'),(41,2,'logout','2026-06-23','22:43:59',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-23 22:43:59','2026-06-23 22:43:59'),(42,2,'login','2026-06-24','07:27:10',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-24 07:27:10','2026-06-24 07:27:10'),(43,2,'module_access_error','2026-06-24','07:27:11',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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 07:27:11','2026-06-24 07:27:11'),(44,2,'logout','2026-06-24','20:31:28',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-24 20:31:28','2026-06-24 20:31:28'),(45,3,'login','2026-06-26','09:36:27',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 09:36:27','2026-06-26 09:36:27'),(46,3,'module_access_error','2026-06-26','09:36:27',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-26 09:36:27','2026-06-26 09:36:27'),(47,3,'logout','2026-06-26','09:36:56',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 09:36:56','2026-06-26 09:36:56'),(48,2,'failed','2026-06-26','09:37:04',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 09:37:04','2026-06-26 09:37:04'),(49,2,'login','2026-06-26','09:37:11',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 09:37:11','2026-06-26 09:37:11'),(50,2,'module_access_error','2026-06-26','09:37:12',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-26 09:37:12','2026-06-26 09:37:12'),(51,2,'logout','2026-06-26','09:40:17',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 09:40:17','2026-06-26 09:40:17'),(52,2,'login','2026-06-26','09:40:27',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 09:40:27','2026-06-26 09:40:27'),(53,2,'module_access_error','2026-06-26','09:40:27',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-26 09:40:27','2026-06-26 09:40:27'),(54,2,'logout','2026-06-26','09:40:48',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 09:40:48','2026-06-26 09:40:48'),(55,2,'login','2026-06-26','09:41:02',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 09:41:02','2026-06-26 09:41:02'),(56,2,'module_access_error','2026-06-26','09:41:03',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-26 09:41:03','2026-06-26 09:41:03'),(57,2,'logout','2026-06-26','09:45:03',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 09:45:03','2026-06-26 09:45:03'),(58,3,'login','2026-06-26','09:45:13',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 09:45:13','2026-06-26 09:45:13'),(59,3,'module_access_error','2026-06-26','09:45:14',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-26 09:45:14','2026-06-26 09:45:14'),(60,3,'logout','2026-06-26','09:48:02',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 09:48:02','2026-06-26 09:48:02'),(61,1,'login','2026-06-26','09:48:10',1,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 09:48:10','2026-06-26 09:48:10'),(62,1,'logout','2026-06-26','09:57:40',1,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 09:57:40','2026-06-26 09:57:40'),(63,3,'login','2026-06-26','09:58:03',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 09:58:03','2026-06-26 09:58:03'),(64,3,'module_access_error','2026-06-26','09:58:04',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-26 09:58:04','2026-06-26 09:58:04'),(65,3,'module_access_error','2026-06-26','10:10:03',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-26 10:10:03','2026-06-26 10:10:03'),(66,3,'logout','2026-06-26','11:24:11',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 11:24:11','2026-06-26 11:24:11'),(67,3,'login','2026-06-26','11:24:21',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 11:24:21','2026-06-26 11:24:21'),(68,3,'module_access_error','2026-06-26','11:24:21',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-26 11:24:21','2026-06-26 11:24:21'),(69,3,'module_access_error','2026-06-26','11:25:46',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents/create',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-26 11:25:46','2026-06-26 11:25:46'),(70,3,'module_access_error','2026-06-26','11:25:51',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents/create',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-26 11:25:51','2026-06-26 11:25:51'),(71,3,'logout','2026-06-26','19:49:39',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-26 19:49:39','2026-06-26 19:49:39'),(72,3,'login','2026-06-27','07:25:05',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-27 07:25:05','2026-06-27 07:25:05'),(73,3,'module_access_error','2026-06-27','07:25:06',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-27 07:25:06','2026-06-27 07:25:06'),(74,3,'logout','2026-06-27','15:00:05',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-27 15:00:05','2026-06-27 15:00:05'),(75,2,'login','2026-06-28','07:03:28',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-28 07:03:28','2026-06-28 07:03:28'),(76,2,'module_access_error','2026-06-28','07:03:28',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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 07:03:28','2026-06-28 07:03:28'),(77,2,'logout','2026-06-28','20:01:27',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-28 20:01:27','2026-06-28 20:01:27'),(78,2,'login','2026-06-29','07:21:23',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-29 07:21:23','2026-06-29 07:21:23'),(79,2,'module_access_error','2026-06-29','07:21:23',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-29 07:21:23','2026-06-29 07:21:23'),(80,2,'logout','2026-06-29','15:00:54',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-29 15:00:54','2026-06-29 15:00:54'),(81,3,'login','2026-06-29','15:03:13',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-29 15:03:13','2026-06-29 15:03:13'),(82,3,'module_access_error','2026-06-29','15:03:13',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-29 15:03:13','2026-06-29 15:03:13'),(83,3,'logout','2026-06-29','22:56:31',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-29 22:56:31','2026-06-29 22:56:31'),(84,2,'login','2026-06-30','07:19:43',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-30 07:19:43','2026-06-30 07:19:43'),(85,2,'module_access_error','2026-06-30','07:19:44',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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 07:19:44','2026-06-30 07:19:44'),(86,2,'logout','2026-06-30','15:03:25',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-30 15:03:25','2026-06-30 15:03:25'),(87,3,'login','2026-06-30','15:03:59',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-30 15:03:59','2026-06-30 15:03:59'),(88,3,'module_access_error','2026-06-30','15:04:00',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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 15:04:00','2026-06-30 15:04:00'),(89,3,'module_access_error','2026-06-30','22:51:18',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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 22:51:18','2026-06-30 22:51:18'),(90,3,'logout','2026-06-30','22:51:27',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-06-30 22:51:27','2026-06-30 22:51:27'),(91,2,'login','2026-07-01','07:31:59',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-01 07:31:59','2026-07-01 07:31:59'),(92,2,'module_access_error','2026-07-01','07:32:00',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-01 07:32:00','2026-07-01 07:32:00'),(93,2,'module_access_error','2026-07-01','14:09:28',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents/create',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-01 14:09:28','2026-07-01 14:09:28'),(94,2,'logout','2026-07-01','15:00:32',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-01 15:00:32','2026-07-01 15:00:32'),(95,3,'login','2026-07-01','15:04:38',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-01 15:04:38','2026-07-01 15:04:38'),(96,3,'module_access_error','2026-07-01','15:04:38',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-01 15:04:38','2026-07-01 15:04:38'),(97,NULL,'failed','2026-07-01','19:08:24',NULL,NULL,'179.6.81.200','WebKit','phone','AndroidOS','10','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2026-07-01 19:08:24','2026-07-01 19:08:24'),(98,NULL,'failed','2026-07-01','19:08:35',NULL,NULL,'179.6.81.200','WebKit','phone','AndroidOS','10','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2026-07-01 19:08:35','2026-07-01 19:08:35'),(99,1,'login','2026-07-01','19:08:50',1,'App\\Models\\Tenant\\User','179.6.81.200','WebKit','phone','AndroidOS','10','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LAL\",\"region_name\":\"La Libertad\",\"city_name\":\"Trujillo\",\"latitude\":\"-8.1191\",\"longitude\":\"-79.0355\",\"timezone\":\"America\\/Lima\"}','2026-07-01 19:08:50','2026-07-01 19:08:50'),(100,4,'login','2026-07-01','19:12:26',4,'App\\Models\\Tenant\\User','200.106.93.152','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-01 19:12:26','2026-07-01 19:12:26'),(101,4,'logout','2026-07-01','19:20:28',4,'App\\Models\\Tenant\\User','200.106.93.152','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-01 19:20:28','2026-07-01 19:20:28'),(102,4,'login','2026-07-01','19:20:31',4,'App\\Models\\Tenant\\User','200.106.93.152','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-01 19:20:31','2026-07-01 19:20:31'),(103,3,'logout','2026-07-01','22:57:35',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-01 22:57:35','2026-07-01 22:57:35'),(104,3,'failed','2026-07-02','07:12:49',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-02 07:12:49','2026-07-02 07:12:49'),(105,3,'login','2026-07-02','07:12:57',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-02 07:12:57','2026-07-02 07:12:57'),(106,3,'module_access_error','2026-07-02','07:12:57',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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 07:12:57','2026-07-02 07:12:57'),(107,3,'logout','2026-07-02','15:06:17',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-02 15:06:17','2026-07-02 15:06:17'),(108,2,'login','2026-07-02','15:06:30',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-02 15:06:30','2026-07-02 15:06:30'),(109,2,'module_access_error','2026-07-02','15:06:30',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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 15:06:30','2026-07-02 15:06:30'),(110,1,'login','2026-07-02','22:26:02',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-02 22:26:02','2026-07-02 22:26:02'),(111,2,'logout','2026-07-02','23:00:11',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-02 23:00:11','2026-07-02 23:00:11'),(112,2,'login','2026-07-03','07:25:13',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-03 07:25:13','2026-07-03 07:25:13'),(113,2,'module_access_error','2026-07-03','07:25:14',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-03 07:25:14','2026-07-03 07:25:14'),(114,2,'logout','2026-07-03','20:00:46',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-03 20:00:46','2026-07-03 20:00:46'),(115,2,'login','2026-07-04','07:14:25',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-04 07:14:25','2026-07-04 07:14:25'),(116,2,'module_access_error','2026-07-04','07:14:26',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-04 07:14:26','2026-07-04 07:14:26'),(117,2,'logout','2026-07-04','15:00:42',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-04 15:00:42','2026-07-04 15:00:42'),(118,3,'login','2026-07-04','15:01:26',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-04 15:01:26','2026-07-04 15:01:26'),(119,3,'module_access_error','2026-07-04','15:01:27',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-04 15:01:27','2026-07-04 15:01:27'),(120,1,'login','2026-07-04','16:05:24',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-04 16:05:24','2026-07-04 16:05:24'),(121,1,'companies_soap_username','2026-07-04','16:06:25',1,'App\\Models\\Tenant\\Company','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-04 16:06:25','2026-07-04 16:06:25'),(122,1,'companies_soap_password','2026-07-04','16:06:25',1,'App\\Models\\Tenant\\Company','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-04 16:06:25','2026-07-04 16:06:25'),(123,1,'companies_soap_type_id','2026-07-04','16:06:27',1,'App\\Models\\Tenant\\Company','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-04 16:06:27','2026-07-04 16:06:27'),(124,3,'logout','2026-07-04','23:16:22',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-04 23:16:22','2026-07-04 23:16:22'),(125,3,'login','2026-07-05','07:08:13',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-05 07:08:13','2026-07-05 07:08:13'),(126,3,'module_access_error','2026-07-05','07:08:14',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-05 07:08:14','2026-07-05 07:08:14'),(127,3,'logout','2026-07-05','19:59:44',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-05 19:59:44','2026-07-05 19:59:44'),(128,2,'login','2026-07-06','07:22:13',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-06 07:22:13','2026-07-06 07:22:13'),(129,2,'module_access_error','2026-07-06','07:22:14',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-06 07:22:14','2026-07-06 07:22:14'),(130,2,'logout','2026-07-06','15:00:11',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-06 15:00:11','2026-07-06 15:00:11'),(131,3,'login','2026-07-06','15:00:37',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-06 15:00:37','2026-07-06 15:00:37'),(132,3,'module_access_error','2026-07-06','15:00:37',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-06 15:00:37','2026-07-06 15:00:37'),(133,3,'logout','2026-07-06','22:53:58',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-06 22:53:58','2026-07-06 22:53:58'),(134,2,'login','2026-07-07','07:15:23',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-07 07:15:23','2026-07-07 07:15:23'),(135,2,'module_access_error','2026-07-07','07:15:23',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-07 07:15:23','2026-07-07 07:15:23'),(136,2,'logout','2026-07-07','15:08:09',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-07 15:08:09','2026-07-07 15:08:09'),(137,3,'login','2026-07-07','15:22:52',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-07 15:22:52','2026-07-07 15:22:52'),(138,3,'module_access_error','2026-07-07','15:22:53',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,'documents',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-07 15:22:53','2026-07-07 15:22:53'),(139,3,'logout','2026-07-07','22:53:39',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','149.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-07 22:53:39','2026-07-07 22:53:39'),(140,2,'login','2026-07-08','07:23:50',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-08 07:23:50','2026-07-08 07:23:50'),(141,2,'module_access_error','2026-07-08','07:23:50',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-08 07:23:50','2026-07-08 07:23:50'),(142,2,'logout','2026-07-08','15:00:42',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-08 15:00:42','2026-07-08 15:00:42'),(143,3,'login','2026-07-08','15:00:54',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-08 15:00:54','2026-07-08 15:00:54'),(144,3,'module_access_error','2026-07-08','15:00:55',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-08 15:00:55','2026-07-08 15:00:55'),(145,3,'module_access_error','2026-07-08','20:06:40',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-08 20:06:40','2026-07-08 20:06:40'),(146,3,'logout','2026-07-08','22:48:40',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-08 22:48:40','2026-07-08 22:48:40'),(147,3,'login','2026-07-09','07:16:07',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-09 07:16:07','2026-07-09 07:16:07'),(148,3,'module_access_error','2026-07-09','07:16:07',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-09 07:16:07','2026-07-09 07:16:07'),(149,3,'logout','2026-07-09','15:06:59',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-09 15:06:59','2026-07-09 15:06:59'),(150,2,'login','2026-07-09','15:07:24',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-09 15:07:24','2026-07-09 15:07:24'),(151,2,'module_access_error','2026-07-09','15:07:25',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-09 15:07:25','2026-07-09 15:07:25'),(152,2,'logout','2026-07-09','22:58:41',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-09 22:58:41','2026-07-09 22:58:41'),(153,2,'login','2026-07-10','07:23:23',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-10 07:23:23','2026-07-10 07:23:23'),(154,2,'module_access_error','2026-07-10','07:23:23',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-10 07:23:23','2026-07-10 07:23:23'),(155,1,'login','2026-07-10','09:37:29',1,'App\\Models\\Tenant\\User','179.6.26.113','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-10 09:37:29','2026-07-10 09:37:29'),(156,2,'logout','2026-07-10','19:53:30',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-10 19:53:30','2026-07-10 19:53:30'),(157,3,'login','2026-07-11','07:09:19',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-11 07:09:19','2026-07-11 07:09:19'),(158,3,'module_access_error','2026-07-11','07:09:19',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-11 07:09:19','2026-07-11 07:09:19'),(159,3,'logout','2026-07-11','15:18:40',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-11 15:18:40','2026-07-11 15:18:40'),(160,2,'login','2026-07-11','15:19:11',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-11 15:19:11','2026-07-11 15:19:11'),(161,2,'module_access_error','2026-07-11','15:19:12',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-11 15:19:12','2026-07-11 15:19:12'),(162,2,'logout','2026-07-11','22:57:19',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-11 22:57:19','2026-07-11 22:57:19'),(163,3,'login','2026-07-12','08:17:25',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-12 08:17:25','2026-07-12 08:17:25'),(164,3,'module_access_error','2026-07-12','08:17:26',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-12 08:17:26','2026-07-12 08:17:26'),(165,3,'logout','2026-07-12','20:23:14',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-12 20:23:14','2026-07-12 20:23:14'),(166,2,'login','2026-07-13','07:20:29',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-13 07:20:29','2026-07-13 07:20:29'),(167,2,'module_access_error','2026-07-13','07:20:29',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-13 07:20:29','2026-07-13 07:20:29'),(168,2,'logout','2026-07-13','15:01:32',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-13 15:01:32','2026-07-13 15:01:32'),(169,3,'login','2026-07-13','15:08:25',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-13 15:08:25','2026-07-13 15:08:25'),(170,3,'module_access_error','2026-07-13','15:08:25',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-13 15:08:25','2026-07-13 15:08:25'),(171,3,'logout','2026-07-13','22:52:37',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-13 22:52:37','2026-07-13 22:52:37'),(172,2,'login','2026-07-14','07:20:22',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-14 07:20:22','2026-07-14 07:20:22'),(173,2,'module_access_error','2026-07-14','07:20:23',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-14 07:20:23','2026-07-14 07:20:23'),(174,2,'logout','2026-07-14','15:00:44',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-14 15:00:44','2026-07-14 15:00:44'),(175,3,'login','2026-07-14','15:02:02',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-14 15:02:02','2026-07-14 15:02:02'),(176,3,'module_access_error','2026-07-14','15:02:02',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-14 15:02:02','2026-07-14 15:02:02'),(177,3,'logout','2026-07-14','23:07:20',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-14 23:07:20','2026-07-14 23:07:20'),(178,2,'login','2026-07-15','07:30:24',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-15 07:30:24','2026-07-15 07:30:24'),(179,2,'module_access_error','2026-07-15','07:30:24',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-15 07:30:24','2026-07-15 07:30:24'),(180,2,'module_access_error','2026-07-15','13:19:49',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-15 13:19:49','2026-07-15 13:19:49'),(181,2,'logout','2026-07-15','14:45:47',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-15 14:45:47','2026-07-15 14:45:47'),(182,3,'login','2026-07-15','14:46:16',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-15 14:46:16','2026-07-15 14:46:16'),(183,3,'module_access_error','2026-07-15','14:46:17',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-15 14:46:17','2026-07-15 14:46:17'),(184,3,'logout','2026-07-15','22:56:42',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-15 22:56:42','2026-07-15 22:56:42'),(185,2,'login','2026-07-16','07:17:04',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-16 07:17:04','2026-07-16 07:17:04'),(186,2,'module_access_error','2026-07-16','07:17:04',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-16 07:17:04','2026-07-16 07:17:04'),(187,2,'logout','2026-07-16','14:58:49',2,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-16 14:58:49','2026-07-16 14:58:49'),(188,3,'login','2026-07-16','16:00:17',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-16 16:00:17','2026-07-16 16:00:17'),(189,3,'module_access_error','2026-07-16','16:00:18',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-16 16:00:18','2026-07-16 16:00:18'),(190,3,'module_access_error','2026-07-16','18:46:24',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-16 18:46:24','2026-07-16 18:46:24'),(191,3,'logout','2026-07-16','22:57:40',3,'App\\Models\\Tenant\\User','179.6.26.223','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-16 22:57:40','2026-07-16 22:57:40'),(192,2,'login','2026-07-17','14:37:03',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-17 14:37:03','2026-07-17 14:37:03'),(193,2,'module_access_error','2026-07-17','14:37:03',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-17 14:37:04','2026-07-17 14:37:04'),(194,2,'logout','2026-07-17','20:01:14',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-17 20:01:14','2026-07-17 20:01:14'),(195,3,'login','2026-07-18','07:17:04',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-18 07:17:04','2026-07-18 07:17:04'),(196,3,'module_access_error','2026-07-18','07:17:04',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-18 07:17:04','2026-07-18 07:17:04'),(197,3,'logout','2026-07-18','15:55:23',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-18 15:55:23','2026-07-18 15:55:23'),(198,2,'login','2026-07-18','16:27:14',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-18 16:27:14','2026-07-18 16:27:14'),(199,2,'module_access_error','2026-07-18','16:27:15',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-18 16:27:15','2026-07-18 16:27:15'),(200,2,'logout','2026-07-18','23:00:14',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-18 23:00:14','2026-07-18 23:00:14'),(201,3,'login','2026-07-19','07:10:04',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-19 07:10:04','2026-07-19 07:10:04'),(202,3,'module_access_error','2026-07-19','07:10:05',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-19 07:10:05','2026-07-19 07:10:05'),(203,3,'logout','2026-07-19','19:55:13',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-19 19:55:13','2026-07-19 19:55:13'),(204,2,'login','2026-07-20','07:24:54',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-20 07:24:54','2026-07-20 07:24:54'),(205,2,'module_access_error','2026-07-20','07:24:55',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-20 07:24:55','2026-07-20 07:24:55'),(206,2,'logout','2026-07-20','15:01:11',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-20 15:01:11','2026-07-20 15:01:11'),(207,3,'login','2026-07-20','15:08:54',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-20 15:08:54','2026-07-20 15:08:54'),(208,3,'module_access_error','2026-07-20','15:08:55',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-20 15:08:55','2026-07-20 15:08:55'),(209,3,'logout','2026-07-20','22:56:08',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-20 22:56:08','2026-07-20 22:56:08'),(210,2,'login','2026-07-21','08:28:33',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-21 08:28:33','2026-07-21 08:28:33'),(211,2,'module_access_error','2026-07-21','08:28:34',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-21 08:28:34','2026-07-21 08:28:34'),(212,2,'module_access_error','2026-07-21','11:32:48',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-21 11:32:48','2026-07-21 11:32:48'),(213,2,'logout','2026-07-21','15:01:47',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-21 15:01:47','2026-07-21 15:01:47'),(214,3,'login','2026-07-21','15:04:34',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-21 15:04:34','2026-07-21 15:04:34'),(215,3,'module_access_error','2026-07-21','15:04:34',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-21 15:04:34','2026-07-21 15:04:34'),(216,3,'logout','2026-07-21','15:05:12',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-21 15:05:12','2026-07-21 15:05:12'),(217,3,'login','2026-07-21','15:05:20',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-21 15:05:20','2026-07-21 15:05:20'),(218,3,'module_access_error','2026-07-21','15:05:21',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-21 15:05:21','2026-07-21 15:05:21'),(219,3,'logout','2026-07-21','23:01:52',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-21 23:01:52','2026-07-21 23:01:52'),(220,2,'login','2026-07-22','07:36:02',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-22 07:36:02','2026-07-22 07:36:02'),(221,2,'module_access_error','2026-07-22','07:36:03',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-22 07:36:03','2026-07-22 07:36:03'),(222,2,'inventory_created','2026-07-22','08:08:36',967,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'inventory/transaction',NULL,NULL,'2026-07-22 08:08:36','2026-07-22 08:08:36'),(223,2,'inventory_created','2026-07-22','08:08:56',968,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'inventory/transaction',NULL,NULL,'2026-07-22 08:08:56','2026-07-22 08:08:56'),(224,2,'inventory_created','2026-07-22','08:09:30',969,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'inventory/transaction',NULL,NULL,'2026-07-22 08:09:30','2026-07-22 08:09:30'),(225,2,'inventory_created','2026-07-22','08:09:51',970,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'inventory/transaction',NULL,NULL,'2026-07-22 08:09:51','2026-07-22 08:09:51'),(226,2,'module_access_error','2026-07-22','19:53:16',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-22 19:53:16','2026-07-22 19:53:16'),(227,2,'logout','2026-07-22','19:53:56',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-22 19:53:56','2026-07-22 19:53:56'),(228,2,'login','2026-07-23','07:27:23',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-23 07:27:23','2026-07-23 07:27:23'),(229,2,'module_access_error','2026-07-23','07:27:24',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-23 07:27:24','2026-07-23 07:27:24'),(230,2,'logout','2026-07-23','14:56:32',2,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-23 14:56:32','2026-07-23 14:56:32'),(231,3,'login','2026-07-23','14:58:19',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-23 14:58:19','2026-07-23 14:58:19'),(232,3,'module_access_error','2026-07-23','14:58:19',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-23 14:58:19','2026-07-23 14:58:19'),(233,3,'logout','2026-07-23','23:08:41',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-23 23:08:41','2026-07-23 23:08:41'),(234,3,'login','2026-07-24','15:15:32',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-24 15:15:32','2026-07-24 15:15:32'),(235,3,'module_access_error','2026-07-24','15:15:33',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-24 15:15:33','2026-07-24 15:15:33'),(236,3,'module_access_error','2026-07-24','15:28:02',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-24 15:28:02','2026-07-24 15:28:02'),(237,3,'logout','2026-07-24','23:03:04',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-24 23:03:04','2026-07-24 23:03:04'),(238,3,'login','2026-07-25','08:43:15',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-25 08:43:15','2026-07-25 08:43:15'),(239,3,'module_access_error','2026-07-25','08:43:15',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-25 08:43:15','2026-07-25 08:43:15'),(240,3,'module_access_error','2026-07-25','14:23:23',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-25 14:23:23','2026-07-25 14:23:23'),(241,3,'inventory_created','2026-07-25','16:11:17',971,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'inventory/transaction',NULL,NULL,'2026-07-25 16:11:17','2026-07-25 16:11:17'),(242,3,'inventory_created','2026-07-25','16:13:40',972,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'inventory/transaction',NULL,NULL,'2026-07-25 16:13:40','2026-07-25 16:13:40'),(243,3,'inventory_created','2026-07-25','16:15:08',973,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'inventory/transaction',NULL,NULL,'2026-07-25 16:15:08','2026-07-25 16:15:08'),(244,3,'inventory_created','2026-07-25','16:15:52',974,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'inventory/transaction',NULL,NULL,'2026-07-25 16:15:52','2026-07-25 16:15:52'),(245,3,'inventory_created','2026-07-25','16:16:21',975,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'inventory/transaction',NULL,NULL,'2026-07-25 16:16:21','2026-07-25 16:16:21'),(246,3,'inventory_created','2026-07-25','16:16:59',976,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'inventory/transaction',NULL,NULL,'2026-07-25 16:16:59','2026-07-25 16:16:59'),(247,3,'inventory_created','2026-07-25','16:17:57',977,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'inventory/transaction',NULL,NULL,'2026-07-25 16:17:57','2026-07-25 16:17:57'),(248,3,'inventory_created','2026-07-25','16:19:05',978,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'inventory/transaction',NULL,NULL,'2026-07-25 16:19:05','2026-07-25 16:19:05'),(249,3,'inventory_created','2026-07-25','16:20:53',979,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-25 16:20:53','2026-07-25 16:20:53'),(250,3,'inventory_created','2026-07-25','16:24:21',980,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-25 16:24:21','2026-07-25 16:24:21'),(251,3,'inventory_created','2026-07-25','16:27:40',981,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-25 16:27:40','2026-07-25 16:27:40'),(252,3,'logout','2026-07-25','20:11:03',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-25 20:11:03','2026-07-25 20:11:03'),(253,3,'login','2026-07-26','09:46:06',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-26 09:46:06','2026-07-26 09:46:06'),(254,3,'module_access_error','2026-07-26','09:46:07',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-26 09:46:07','2026-07-26 09:46:07'),(255,3,'module_access_error','2026-07-26','10:25:58',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-26 10:25:58','2026-07-26 10:25:58'),(256,3,'logout','2026-07-26','20:19:55',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-26 20:19:55','2026-07-26 20:19:55'),(257,3,'login','2026-07-27','15:30:54',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-27 15:30:54','2026-07-27 15:30:54'),(258,3,'module_access_error','2026-07-27','15:30:54',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-27 15:30:54','2026-07-27 15:30:54'),(259,3,'logout','2026-07-27','23:00:50',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-27 23:00:50','2026-07-27 23:00:50'),(260,3,'login','2026-07-28','15:08:04',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-28 15:08:04','2026-07-28 15:08:04'),(261,3,'module_access_error','2026-07-28','15:08:04',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-28 15:08:04','2026-07-28 15:08:04'),(262,3,'module_access_error','2026-07-28','19:08:53',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-28 19:08:53','2026-07-28 19:08:53'),(263,NULL,'failed','2026-07-28','19:19:19',NULL,NULL,'155.103.69.82','Macintosh','desktop','OS X','10_10_5','Chrome','45.0.2454.85',NULL,NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"New York\",\"latitude\":\"40.7126\",\"longitude\":\"-74.0066\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:19:19','2026-07-28 19:19:19'),(264,NULL,'failed','2026-07-28','19:19:19',NULL,NULL,'192.210.150.196','WebKit','desktop','Windows','6.1','Chrome','42.0.2311.90',NULL,NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"Buffalo\",\"latitude\":\"42.8864\",\"longitude\":\"-78.8784\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:19:19','2026-07-28 19:19:19'),(265,NULL,'failed','2026-07-28','19:19:25',NULL,NULL,'192.210.150.196','WebKit','desktop','Windows','6.1','Chrome','42.0.2311.90',NULL,NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"Buffalo\",\"latitude\":\"42.8864\",\"longitude\":\"-78.8784\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:19:25','2026-07-28 19:19:25'),(266,NULL,'failed','2026-07-28','19:19:33',NULL,NULL,'155.103.69.82','Macintosh','desktop','OS X','10_10_5','Chrome','45.0.2454.85',NULL,NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"New York\",\"latitude\":\"40.7126\",\"longitude\":\"-74.0066\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:19:33','2026-07-28 19:19:33'),(267,NULL,'failed','2026-07-28','19:19:50',NULL,NULL,'155.103.69.82','Macintosh','desktop','OS X','10_10_5','Chrome','45.0.2454.85',NULL,NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"New York\",\"latitude\":\"40.7126\",\"longitude\":\"-74.0066\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:19:50','2026-07-28 19:19:50'),(268,NULL,'failed','2026-07-28','19:19:52',NULL,NULL,'192.210.150.196','WebKit','desktop','Windows','6.1','Chrome','42.0.2311.90',NULL,NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"Buffalo\",\"latitude\":\"42.8864\",\"longitude\":\"-78.8784\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:19:52','2026-07-28 19:19:52'),(269,NULL,'login_lockout','2026-07-28','19:19:59',NULL,NULL,'192.210.150.196','WebKit','desktop','Windows','6.1','Chrome','42.0.2311.90','lmixpypx@immenseignite.info',NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"Buffalo\",\"latitude\":\"42.8864\",\"longitude\":\"-78.8784\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:19:59','2026-07-28 19:19:59'),(270,NULL,'login_lockout','2026-07-28','19:20:00',NULL,NULL,'192.210.150.196','WebKit','desktop','Windows','6.1','Chrome','42.0.2311.90','lmixpypx@immenseignite.info',NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"Buffalo\",\"latitude\":\"42.8864\",\"longitude\":\"-78.8784\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:20:00','2026-07-28 19:20:00'),(271,NULL,'login_lockout','2026-07-28','19:20:00',NULL,NULL,'192.210.150.196','WebKit','desktop','Windows','6.1','Chrome','42.0.2311.90','lmixpypx@immenseignite.info',NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"Buffalo\",\"latitude\":\"42.8864\",\"longitude\":\"-78.8784\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:20:00','2026-07-28 19:20:00'),(272,NULL,'login_lockout','2026-07-28','19:20:01',NULL,NULL,'192.210.150.196','WebKit','desktop','Windows','6.1','Chrome','42.0.2311.90','lmixpypx@immenseignite.info',NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"Buffalo\",\"latitude\":\"42.8864\",\"longitude\":\"-78.8784\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:20:01','2026-07-28 19:20:01'),(273,NULL,'login_lockout','2026-07-28','19:20:06',NULL,NULL,'155.103.69.82','Macintosh','desktop','OS X','10_10_5','Chrome','45.0.2454.85','gsrymiwg@immenseignite.info',NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"New York\",\"latitude\":\"40.7126\",\"longitude\":\"-74.0066\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:20:06','2026-07-28 19:20:06'),(274,NULL,'login_lockout','2026-07-28','19:20:07',NULL,NULL,'192.210.150.196','WebKit','desktop','Windows','6.1','Chrome','42.0.2311.90','lmixpypx@immenseignite.info',NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"Buffalo\",\"latitude\":\"42.8864\",\"longitude\":\"-78.8784\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:20:07','2026-07-28 19:20:07'),(275,NULL,'login_lockout','2026-07-28','19:20:14',NULL,NULL,'192.210.150.196','WebKit','desktop','Windows','6.1','Chrome','42.0.2311.90','lmixpypx@immenseignite.info',NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"Buffalo\",\"latitude\":\"42.8864\",\"longitude\":\"-78.8784\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:20:14','2026-07-28 19:20:14'),(276,NULL,'login_lockout','2026-07-28','19:20:20',NULL,NULL,'155.103.69.82','Macintosh','desktop','OS X','10_10_5','Chrome','45.0.2454.85','gsrymiwg@immenseignite.info',NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"New York\",\"latitude\":\"40.7126\",\"longitude\":\"-74.0066\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:20:20','2026-07-28 19:20:20'),(277,NULL,'login_lockout','2026-07-28','19:20:29',NULL,NULL,'192.210.150.196','WebKit','desktop','Windows','6.1','Chrome','42.0.2311.90','lmixpypx@immenseignite.info',NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"Buffalo\",\"latitude\":\"42.8864\",\"longitude\":\"-78.8784\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:20:29','2026-07-28 19:20:29'),(278,NULL,'login_lockout','2026-07-28','19:20:33',NULL,NULL,'192.210.150.196','WebKit','desktop','Windows','6.1','Chrome','42.0.2311.90','lmixpypx@immenseignite.info',NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"Buffalo\",\"latitude\":\"42.8864\",\"longitude\":\"-78.8784\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:20:33','2026-07-28 19:20:33'),(279,NULL,'login_lockout','2026-07-28','19:20:35',NULL,NULL,'155.103.69.82','Macintosh','desktop','OS X','10_10_5','Chrome','45.0.2454.85','gsrymiwg@immenseignite.info',NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"New York\",\"latitude\":\"40.7126\",\"longitude\":\"-74.0066\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:20:35','2026-07-28 19:20:35'),(280,NULL,'login_lockout','2026-07-28','19:20:51',NULL,NULL,'155.103.69.82','Macintosh','desktop','OS X','10_10_5','Chrome','45.0.2454.85','gsrymiwg@immenseignite.info',NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"New York\",\"latitude\":\"40.7126\",\"longitude\":\"-74.0066\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:20:51','2026-07-28 19:20:51'),(281,NULL,'login_lockout','2026-07-28','19:21:07',NULL,NULL,'155.103.69.82','Macintosh','desktop','OS X','10_10_5','Chrome','45.0.2454.85','gsrymiwg@immenseignite.info',NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"New York\",\"latitude\":\"40.7126\",\"longitude\":\"-74.0066\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:21:07','2026-07-28 19:21:07'),(282,NULL,'login_lockout','2026-07-28','19:21:26',NULL,NULL,'155.103.69.82','Macintosh','desktop','OS X','10_10_5','Chrome','45.0.2454.85','gsrymiwg@immenseignite.info',NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"New York\",\"latitude\":\"40.7126\",\"longitude\":\"-74.0066\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:21:26','2026-07-28 19:21:26'),(283,NULL,'login_lockout','2026-07-28','19:21:43',NULL,NULL,'155.103.69.82','Macintosh','desktop','OS X','10_10_5','Chrome','45.0.2454.85','gsrymiwg@immenseignite.info',NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"New York\",\"latitude\":\"40.7126\",\"longitude\":\"-74.0066\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:21:43','2026-07-28 19:21:43'),(284,NULL,'login_lockout','2026-07-28','19:22:00',NULL,NULL,'155.103.69.82','Macintosh','desktop','OS X','10_10_5','Chrome','45.0.2454.85','gsrymiwg@immenseignite.info',NULL,NULL,'{\"country_name\":\"United States\",\"country_code\":\"US\",\"region_code\":\"NY\",\"region_name\":\"New York\",\"city_name\":\"New York\",\"latitude\":\"40.7126\",\"longitude\":\"-74.0066\",\"timezone\":\"America\\/New_York\"}','2026-07-28 19:22:00','2026-07-28 19:22:00'),(285,3,'logout','2026-07-28','22:57:01',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-28 22:57:01','2026-07-28 22:57:01'),(286,3,'login','2026-07-29','15:11:56',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-29 15:11:56','2026-07-29 15:11:56'),(287,3,'module_access_error','2026-07-29','15:11:56',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-29 15:11:56','2026-07-29 15:11:56'),(288,3,'logout','2026-07-29','23:07:37',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-29 23:07:37','2026-07-29 23:07:37'),(289,3,'login','2026-07-30','15:09:32',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,NULL,NULL,'{\"country_name\":\"Peru\",\"country_code\":\"PE\",\"region_code\":\"LMA\",\"region_name\":\"Lima Province\",\"city_name\":\"Lima\",\"latitude\":\"-12.046\",\"longitude\":\"-77.0305\",\"timezone\":\"America\\/Lima\"}','2026-07-30 15:09:32','2026-07-30 15:09:32'),(290,3,'module_access_error','2026-07-30','15:09:32',3,'App\\Models\\Tenant\\User','179.6.26.238','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'documents',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-30 15:09:32','2026-07-30 15:09:32');
COMMIT;

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

CREATE TABLE `user_rel_suscription_plans` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con usuario',
  `suscription_plan_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con planes de suscripcion',
  `cat_period_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con el periodo de tiempo',
  `items` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'Pega los items relacionados a modo de standar' CHECK (json_valid(`items`)),
  `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 CHECK (json_valid(`customer`)),
  `parent_customer_id` int(10) unsigned DEFAULT 0,
  `parent_customer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`parent_customer`)),
  `children_customer_id` int(10) unsigned DEFAULT 0,
  `children_customer` longtext 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` float DEFAULT 0,
  `total_prepayment` float DEFAULT 0,
  `total_charge` float DEFAULT 0,
  `total_discount` float DEFAULT 0,
  `total_exportation` float DEFAULT 0,
  `total_free` float DEFAULT 0,
  `total_taxed` float DEFAULT 0,
  `total_unaffected` float DEFAULT 0,
  `total_exonerated` float DEFAULT 0,
  `total_igv` float DEFAULT 0,
  `total_igv_free` float DEFAULT 0,
  `total_base_isc` float DEFAULT 0,
  `total_isc` float DEFAULT 0,
  `total_base_other_taxes` float DEFAULT 0,
  `total_other_taxes` float DEFAULT 0,
  `total_taxes` float DEFAULT 0,
  `total_value` float DEFAULT 0,
  `total` decimal(12,2) DEFAULT 0.00,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`charges`)),
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`attributes`)),
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`discounts`)),
  `prepayments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`prepayments`)),
  `related` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`related`)),
  `perception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`perception`)),
  `detraction` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`detraction`)),
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`legends`)),
  `terms_condition` longtext DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `grade` text DEFAULT NULL COMMENT 'Grado designado - utilizado en matricula',
  `section` text DEFAULT NULL COMMENT 'Seccion designado - utilizado en matricula',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `warehouses` VALUES (1,1,'Almacén Oficina Principal','2026-06-19 18:59:35','2026-06-19 18:59:35');
COMMIT;

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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


