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

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `persons` VALUES (1,'customers','0','99999999','Clientes - Varios',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,'2026-07-02 17:49:08','2026-07-02 17:49:08',1,0,NULL,0,NULL,NULL,0,'01',0.00,1);
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `person_types` VALUES (1,'Interno','2026-07-02 17:48:57','2026-07-02 17:48:57'),(2,'Distribuidor','2026-07-02 17:48:57','2026-07-02 17:48:57');
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `pharmacy_configurations` VALUES (1,1,0,'2026-07-03 08:42:05','2026-07-03 08:42:05');
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
INSERT INTO `report_configurations` VALUES (1,'tenant.reports.general_items.index','reports/general-items','Ventas - Reporte general de productos',0,'2026-07-02 17:49:07','2026-07-02 17:49:07'),(2,'tenant.reports.purchases.general_items.index','reports/purchases/general_items','Compras - Reporte general de productos',0,'2026-07-02 17:49:07','2026-07-02 17:49:07'),(3,'tenant.reports.purchases.index','reports/purchases','Compras - Compras totales',0,'2026-07-02 17:49:07','2026-07-02 17:49:07');
COMMIT;

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

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

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

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

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

SET autocommit=0;
COMMIT;

-- Dumped table `sale_note_items` with 0 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 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

SET autocommit=0;
COMMIT;

-- Dumped table `sale_note_payments` with 0 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-07-02 17:49:01',NULL),(2,'Pago verificado','2026-07-02 17:49:01',NULL),(3,'Despachado','2026-07-02 17:49:01',NULL),(4,'Confirmado por el cliente','2026-07-02 17:49:01',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 AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

SET autocommit=0;
INSERT INTO `summaries` VALUES (2,1,'a01cbbd7-a0f5-490c-9602-b4f5188cf2ea','02','05','1','2.0','2026-07-07','2026-07-03','RC-20260707-1','10739946404-RC-20260707-1','10739946404-RC-20260707-1','202621239851585',0,0,'{\"sent\":true,\"code\":\"0\",\"description\":\"PSE - El Comprobante RC-20260707-1, ha sido aceptado\",\"notes\":[],\"is_accepted\":true,\"status_code\":\"0\"}',0,NULL,NULL,0,0,NULL,'2026-07-07 14:19:15','2026-07-07 14:41:43');
COMMIT;

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

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

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

-- Dumped table `summary_documents` with 1 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=379 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-07-02','17:56:03',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 17:56:03','2026-07-02 17:56:03'),(2,NULL,'failed','2026-07-02','17:58:31',NULL,NULL,'38.56.111.246','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.0467\",\"longitude\":\"-77.0431\",\"timezone\":\"America\\/Lima\"}','2026-07-02 17:58:31','2026-07-02 17:58:31'),(3,2,'login','2026-07-02','17:58:49',2,'App\\Models\\Tenant\\User','38.56.111.246','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.0467\",\"longitude\":\"-77.0431\",\"timezone\":\"America\\/Lima\"}','2026-07-02 17:58:49','2026-07-02 17:58:49'),(4,2,'logout','2026-07-02','18:29:17',2,'App\\Models\\Tenant\\User','38.56.111.246','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.0467\",\"longitude\":\"-77.0431\",\"timezone\":\"America\\/Lima\"}','2026-07-02 18:29:17','2026-07-02 18:29:17'),(5,2,'login','2026-07-02','18:29:44',2,'App\\Models\\Tenant\\User','38.56.111.246','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.0467\",\"longitude\":\"-77.0431\",\"timezone\":\"America\\/Lima\"}','2026-07-02 18:29:44','2026-07-02 18:29:44'),(6,2,'login','2026-07-03','08:35:33',2,'App\\Models\\Tenant\\User','38.56.111.246','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.0467\",\"longitude\":\"-77.0431\",\"timezone\":\"America\\/Lima\"}','2026-07-03 08:35:33','2026-07-03 08:35:33'),(7,1,'login','2026-07-04','15:49: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-07-04 15:49:17','2026-07-04 15:49:17'),(8,1,'companies_soap_username','2026-07-04','15:56:14',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 15:56:14','2026-07-04 15:56:14'),(9,1,'companies_soap_password','2026-07-04','15:56:14',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 15:56:14','2026-07-04 15:56:14'),(10,1,'companies_soap_username','2026-07-04','15:57:09',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 15:57:09','2026-07-04 15:57:09'),(11,1,'companies_soap_type_id','2026-07-04','15:57:14',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 15:57:14','2026-07-04 15:57:14'),(12,1,'login','2026-07-07','13:41:25',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-07 13:41:25','2026-07-07 13:41:25'),(13,1,'login','2026-07-10','09:38:14',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:38:14','2026-07-10 09:38:14'),(14,2,'login','2026-07-16','18:43:43',2,'App\\Models\\Tenant\\User','38.56.111.246','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.0467\",\"longitude\":\"-77.0431\",\"timezone\":\"America\\/Lima\"}','2026-07-16 18:43:43','2026-07-16 18:43:43'),(15,2,'inventory_created','2026-07-16','18:47:53',34,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 18:47:53','2026-07-16 18:47:53'),(16,2,'inventory_created','2026-07-16','18:49:45',35,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 18:49:45','2026-07-16 18:49:45'),(17,2,'inventory_created','2026-07-16','18:50:27',36,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 18:50:27','2026-07-16 18:50:27'),(18,2,'inventory_created','2026-07-16','18:50:55',37,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 18:50:55','2026-07-16 18:50:55'),(19,2,'inventory_created','2026-07-16','18:51:44',38,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 18:51:44','2026-07-16 18:51:44'),(20,2,'inventory_created','2026-07-16','18:52:29',39,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 18:52:29','2026-07-16 18:52:29'),(21,2,'inventory_created','2026-07-16','18:53:25',40,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 18:53:25','2026-07-16 18:53:25'),(22,2,'inventory_created','2026-07-16','18:54:40',41,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 18:54:40','2026-07-16 18:54:40'),(23,2,'inventory_created','2026-07-16','18:55:21',42,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 18:55:21','2026-07-16 18:55:21'),(24,2,'inventory_created','2026-07-16','18:56:42',43,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 18:56:42','2026-07-16 18:56:42'),(25,2,'inventory_created','2026-07-16','18:57:26',44,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 18:57:26','2026-07-16 18:57:26'),(26,2,'inventory_created','2026-07-16','18:58:25',45,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 18:58:25','2026-07-16 18:58:25'),(27,2,'inventory_created','2026-07-16','18:59:00',46,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 18:59:00','2026-07-16 18:59:00'),(28,2,'inventory_created','2026-07-16','18:59:17',47,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 18:59:17','2026-07-16 18:59:17'),(29,2,'inventory_created','2026-07-16','18:59:59',48,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 18:59:59','2026-07-16 18:59:59'),(30,2,'inventory_created','2026-07-16','19:00:38',49,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:00:38','2026-07-16 19:00:38'),(31,2,'inventory_created','2026-07-16','19:01:38',50,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:01:38','2026-07-16 19:01:38'),(32,2,'inventory_created','2026-07-16','19:03:09',51,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:03:09','2026-07-16 19:03:09'),(33,2,'inventory_created','2026-07-16','19:03:58',52,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:03:58','2026-07-16 19:03:58'),(34,2,'inventory_created','2026-07-16','19:04:57',53,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:04:57','2026-07-16 19:04:57'),(35,2,'inventory_created','2026-07-16','19:05:32',54,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:05:32','2026-07-16 19:05:32'),(36,2,'inventory_created','2026-07-16','19:07:23',55,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:07:23','2026-07-16 19:07:23'),(37,2,'inventory_created','2026-07-16','19:08:30',56,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:08:30','2026-07-16 19:08:30'),(38,2,'inventory_created','2026-07-16','19:10:42',57,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:10:42','2026-07-16 19:10:42'),(39,2,'inventory_created','2026-07-16','19:11:34',58,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:11:34','2026-07-16 19:11:34'),(40,2,'inventory_created','2026-07-16','19:12:44',59,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:12:44','2026-07-16 19:12:44'),(41,2,'inventory_created','2026-07-16','19:13:05',60,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:13:05','2026-07-16 19:13:05'),(42,2,'inventory_created','2026-07-16','19:13:41',61,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:13:41','2026-07-16 19:13:41'),(43,2,'inventory_created','2026-07-16','19:14:13',62,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:14:13','2026-07-16 19:14:13'),(44,2,'inventory_created','2026-07-16','19:14:42',63,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:14:42','2026-07-16 19:14:42'),(45,2,'inventory_created','2026-07-16','19:15:51',64,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:15:51','2026-07-16 19:15:51'),(46,2,'inventory_created','2026-07-16','19:16:31',65,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:16:31','2026-07-16 19:16:31'),(47,2,'inventory_created','2026-07-16','19:17:22',66,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:17:22','2026-07-16 19:17:22'),(48,2,'inventory_created','2026-07-16','19:17:59',67,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:17:59','2026-07-16 19:17:59'),(49,2,'inventory_created','2026-07-16','19:19:06',68,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:19:06','2026-07-16 19:19:06'),(50,2,'inventory_created','2026-07-16','19:20:33',69,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:20:33','2026-07-16 19:20:33'),(51,2,'inventory_created','2026-07-16','19:28:26',70,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:28:26','2026-07-16 19:28:26'),(52,2,'inventory_created','2026-07-16','19:29:17',71,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:29:17','2026-07-16 19:29:17'),(53,2,'inventory_created','2026-07-16','19:29:42',72,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:29:42','2026-07-16 19:29:42'),(54,2,'inventory_created','2026-07-16','19:30:17',73,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:30:17','2026-07-16 19:30:17'),(55,2,'inventory_created','2026-07-16','19:31:36',74,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:31:36','2026-07-16 19:31:36'),(56,2,'inventory_created','2026-07-16','19:31:49',75,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:31:49','2026-07-16 19:31:49'),(57,2,'inventory_created','2026-07-16','19:32:16',76,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:32:16','2026-07-16 19:32:16'),(58,2,'inventory_created','2026-07-16','19:33:27',77,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:33:27','2026-07-16 19:33:27'),(59,2,'inventory_created','2026-07-16','19:34:08',78,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:34:08','2026-07-16 19:34:08'),(60,2,'inventory_created','2026-07-16','19:34:54',79,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:34:54','2026-07-16 19:34:54'),(61,2,'inventory_created','2026-07-16','19:35:19',80,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:35:19','2026-07-16 19:35:19'),(62,2,'inventory_created','2026-07-16','19:36:58',81,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:36:58','2026-07-16 19:36:58'),(63,2,'inventory_created','2026-07-16','19:37:48',82,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:37:48','2026-07-16 19:37:48'),(64,2,'inventory_created','2026-07-16','19:38:38',83,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:38:38','2026-07-16 19:38:38'),(65,2,'inventory_created','2026-07-16','19:39:33',84,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:39:33','2026-07-16 19:39:33'),(66,2,'inventory_created','2026-07-16','19:40:52',85,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:40:52','2026-07-16 19:40:52'),(67,2,'inventory_created','2026-07-16','19:41:33',86,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:41:33','2026-07-16 19:41:33'),(68,2,'inventory_created','2026-07-16','19:42:09',87,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:42:09','2026-07-16 19:42:09'),(69,2,'inventory_created','2026-07-16','19:42:48',88,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:42:48','2026-07-16 19:42:48'),(70,2,'inventory_created','2026-07-16','19:44:41',89,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:44:41','2026-07-16 19:44:41'),(71,2,'inventory_created','2026-07-16','19:45:30',90,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:45:30','2026-07-16 19:45:30'),(72,2,'inventory_created','2026-07-16','19:54:43',91,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:54:43','2026-07-16 19:54:43'),(73,2,'inventory_created','2026-07-16','19:55:12',92,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:55:12','2026-07-16 19:55:12'),(74,2,'inventory_created','2026-07-16','19:56:37',93,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 19:56:37','2026-07-16 19:56:37'),(75,2,'inventory_created','2026-07-16','20:01:49',94,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:01:49','2026-07-16 20:01:49'),(76,2,'inventory_created','2026-07-16','20:04:12',95,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:04:12','2026-07-16 20:04:12'),(77,2,'inventory_created','2026-07-16','20:04:58',96,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:04:58','2026-07-16 20:04:58'),(78,2,'inventory_created','2026-07-16','20:05:16',97,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:05:16','2026-07-16 20:05:16'),(79,2,'inventory_created','2026-07-16','20:05:44',98,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:05:44','2026-07-16 20:05:44'),(80,2,'inventory_created','2026-07-16','20:06:04',99,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:06:04','2026-07-16 20:06:04'),(81,2,'inventory_created','2026-07-16','20:07:18',100,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:07:18','2026-07-16 20:07:18'),(82,2,'inventory_created','2026-07-16','20:07:52',101,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:07:52','2026-07-16 20:07:52'),(83,2,'inventory_created','2026-07-16','20:08:48',102,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:08:48','2026-07-16 20:08:48'),(84,2,'inventory_created','2026-07-16','20:09:33',103,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:09:33','2026-07-16 20:09:33'),(85,2,'inventory_created','2026-07-16','20:09:46',104,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:09:46','2026-07-16 20:09:46'),(86,2,'inventory_created','2026-07-16','20:10:51',105,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:10:51','2026-07-16 20:10:51'),(87,2,'inventory_created','2026-07-16','20:11:29',106,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:11:29','2026-07-16 20:11:29'),(88,2,'inventory_created','2026-07-16','20:12:52',107,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:12:52','2026-07-16 20:12:52'),(89,2,'inventory_created','2026-07-16','20:13:23',108,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:13:23','2026-07-16 20:13:23'),(90,2,'inventory_created','2026-07-16','20:14:29',109,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:14:29','2026-07-16 20:14:29'),(91,2,'inventory_created','2026-07-16','20:15:09',110,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:15:09','2026-07-16 20:15:09'),(92,2,'inventory_created','2026-07-16','20:15:46',111,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:15:46','2026-07-16 20:15:46'),(93,2,'inventory_created','2026-07-16','20:16:48',112,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:16:48','2026-07-16 20:16:48'),(94,2,'inventory_created','2026-07-16','20:17:34',113,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:17:34','2026-07-16 20:17:34'),(95,2,'inventory_created','2026-07-16','20:18:39',114,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:18:39','2026-07-16 20:18:39'),(96,2,'inventory_created','2026-07-16','20:19:20',115,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:19:20','2026-07-16 20:19:20'),(97,2,'inventory_created','2026-07-16','20:20:47',116,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:20:47','2026-07-16 20:20:47'),(98,2,'inventory_created','2026-07-16','20:21:47',117,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:21:47','2026-07-16 20:21:47'),(99,2,'inventory_created','2026-07-16','20:22:32',118,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:22:32','2026-07-16 20:22:32'),(100,2,'inventory_created','2026-07-16','20:23:16',119,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:23:16','2026-07-16 20:23:16'),(101,2,'inventory_created','2026-07-16','20:24:15',120,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:24:15','2026-07-16 20:24:15'),(102,2,'inventory_created','2026-07-16','20:25:08',121,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:25:08','2026-07-16 20:25:08'),(103,2,'inventory_created','2026-07-16','20:25:49',122,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-16 20:25:49','2026-07-16 20:25:49'),(104,2,'login','2026-07-17','17:10:40',2,'App\\Models\\Tenant\\User','38.56.111.246','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 17:10:40','2026-07-17 17:10:40'),(105,2,'inventory_created','2026-07-17','17:17:15',123,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:17:15','2026-07-17 17:17:15'),(106,2,'inventory_created','2026-07-17','17:17:41',124,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:17:41','2026-07-17 17:17:41'),(107,2,'inventory_created','2026-07-17','17:18:56',125,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:18:56','2026-07-17 17:18:56'),(108,2,'inventory_created','2026-07-17','17:19:47',126,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:19:47','2026-07-17 17:19:47'),(109,2,'inventory_created','2026-07-17','17:20:16',127,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:20:16','2026-07-17 17:20:16'),(110,2,'inventory_created','2026-07-17','17:21:31',128,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:21:31','2026-07-17 17:21:31'),(111,2,'inventory_created','2026-07-17','17:22:00',129,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:22:00','2026-07-17 17:22:00'),(112,2,'inventory_created','2026-07-17','17:22:52',130,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:22:52','2026-07-17 17:22:52'),(113,2,'inventory_created','2026-07-17','17:23:19',131,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:23:19','2026-07-17 17:23:19'),(114,2,'inventory_created','2026-07-17','17:24:08',132,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:24:08','2026-07-17 17:24:08'),(115,2,'inventory_created','2026-07-17','17:24:45',133,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:24:45','2026-07-17 17:24:45'),(116,2,'inventory_created','2026-07-17','17:29:59',134,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:29:59','2026-07-17 17:29:59'),(117,2,'inventory_created','2026-07-17','17:30:30',135,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:30:30','2026-07-17 17:30:30'),(118,2,'inventory_created','2026-07-17','17:32:15',136,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:32:15','2026-07-17 17:32:15'),(119,2,'inventory_created','2026-07-17','17:32:45',137,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:32:45','2026-07-17 17:32:45'),(120,2,'inventory_created','2026-07-17','17:35:45',138,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:35:45','2026-07-17 17:35:45'),(121,2,'inventory_created','2026-07-17','17:38:08',139,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:38:08','2026-07-17 17:38:08'),(122,2,'inventory_created','2026-07-17','17:42:18',140,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:42:18','2026-07-17 17:42:18'),(123,2,'inventory_created','2026-07-17','17:42:46',141,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:42:46','2026-07-17 17:42:46'),(124,2,'inventory_created','2026-07-17','17:43:17',142,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:43:17','2026-07-17 17:43:17'),(125,2,'inventory_created','2026-07-17','17:44:37',143,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:44:37','2026-07-17 17:44:37'),(126,2,'inventory_created','2026-07-17','17:45:08',144,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:45:08','2026-07-17 17:45:08'),(127,2,'inventory_created','2026-07-17','17:45:43',145,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:45:43','2026-07-17 17:45:43'),(128,2,'inventory_created','2026-07-17','17:46:37',146,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:46:37','2026-07-17 17:46:37'),(129,2,'inventory_created','2026-07-17','17:47:53',147,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:47:53','2026-07-17 17:47:53'),(130,2,'inventory_created','2026-07-17','17:52:43',148,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:52:43','2026-07-17 17:52:43'),(131,2,'inventory_created','2026-07-17','17:53:11',149,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:53:11','2026-07-17 17:53:11'),(132,2,'inventory_created','2026-07-17','17:56:09',150,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:56:09','2026-07-17 17:56:09'),(133,2,'inventory_created','2026-07-17','17:56:49',151,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:56:49','2026-07-17 17:56:49'),(134,2,'inventory_created','2026-07-17','17:57:47',152,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:57:47','2026-07-17 17:57:47'),(135,2,'inventory_created','2026-07-17','17:58:40',153,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:58:40','2026-07-17 17:58:40'),(136,2,'inventory_created','2026-07-17','17:59:43',154,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 17:59:43','2026-07-17 17:59:43'),(137,2,'inventory_created','2026-07-17','18:04:52',155,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 18:04:52','2026-07-17 18:04:52'),(138,2,'inventory_created','2026-07-17','18:05:39',156,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 18:05:39','2026-07-17 18:05:39'),(139,2,'inventory_created','2026-07-17','18:06:20',157,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 18:06:20','2026-07-17 18:06:20'),(140,2,'inventory_created','2026-07-17','18:06:55',158,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 18:06:55','2026-07-17 18:06:55'),(141,2,'inventory_created','2026-07-17','18:07:36',159,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 18:07:36','2026-07-17 18:07:36'),(142,2,'inventory_created','2026-07-17','18:08:08',160,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 18:08:08','2026-07-17 18:08:08'),(143,2,'inventory_created','2026-07-17','18:08:59',161,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 18:08:59','2026-07-17 18:08:59'),(144,2,'inventory_created','2026-07-17','18:09:31',162,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 18:09:31','2026-07-17 18:09:31'),(145,2,'inventory_created','2026-07-17','18:10:05',163,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 18:10:05','2026-07-17 18:10:05'),(146,2,'inventory_created','2026-07-17','18:10:56',164,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 18:10:56','2026-07-17 18:10:56'),(147,2,'inventory_created','2026-07-17','18:34:28',165,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 18:34:28','2026-07-17 18:34:28'),(148,2,'inventory_created','2026-07-17','18:37:56',166,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 18:37:56','2026-07-17 18:37:56'),(149,2,'inventory_created','2026-07-17','18:39:05',167,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 18:39:05','2026-07-17 18:39:05'),(150,2,'inventory_created','2026-07-17','18:41:05',168,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 18:41:05','2026-07-17 18:41:05'),(151,2,'inventory_created','2026-07-17','18:42:23',169,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 18:42:23','2026-07-17 18:42:23'),(152,2,'inventory_created','2026-07-17','18:45:50',170,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 18:45:50','2026-07-17 18:45:50'),(153,2,'inventory_created','2026-07-17','19:11:20',171,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:11:20','2026-07-17 19:11:20'),(154,2,'inventory_created','2026-07-17','19:30:00',172,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:30:00','2026-07-17 19:30:00'),(155,2,'inventory_created','2026-07-17','19:30:25',173,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:30:25','2026-07-17 19:30:25'),(156,2,'inventory_created','2026-07-17','19:32:19',174,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:32:19','2026-07-17 19:32:19'),(157,2,'inventory_created','2026-07-17','19:33:02',175,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:33:02','2026-07-17 19:33:02'),(158,2,'inventory_created','2026-07-17','19:33:43',176,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:33:43','2026-07-17 19:33:43'),(159,2,'inventory_created','2026-07-17','19:34:19',177,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:34:19','2026-07-17 19:34:19'),(160,2,'inventory_created','2026-07-17','19:35:14',178,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:35:14','2026-07-17 19:35:14'),(161,2,'inventory_created','2026-07-17','19:36:08',179,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:36:08','2026-07-17 19:36:08'),(162,2,'inventory_created','2026-07-17','19:36:50',180,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:36:50','2026-07-17 19:36:50'),(163,2,'inventory_created','2026-07-17','19:37:49',181,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:37:49','2026-07-17 19:37:49'),(164,2,'inventory_created','2026-07-17','19:38:16',182,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:38:16','2026-07-17 19:38:16'),(165,2,'inventory_created','2026-07-17','19:39:02',183,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:39:02','2026-07-17 19:39:02'),(166,2,'inventory_created','2026-07-17','19:40:15',184,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:40:15','2026-07-17 19:40:15'),(167,2,'inventory_created','2026-07-17','19:40:41',185,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:40:41','2026-07-17 19:40:41'),(168,2,'inventory_created','2026-07-17','19:41:28',186,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:41:28','2026-07-17 19:41:28'),(169,2,'inventory_created','2026-07-17','19:42:15',187,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:42:15','2026-07-17 19:42:15'),(170,2,'inventory_created','2026-07-17','19:42:44',188,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:42:44','2026-07-17 19:42:44'),(171,2,'inventory_created','2026-07-17','19:43:30',189,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:43:30','2026-07-17 19:43:30'),(172,2,'inventory_created','2026-07-17','19:44:15',190,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:44:15','2026-07-17 19:44:15'),(173,2,'inventory_created','2026-07-17','19:45:10',191,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:45:10','2026-07-17 19:45:10'),(174,2,'inventory_created','2026-07-17','19:49:21',192,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-17 19:49:21','2026-07-17 19:49:21'),(175,2,'login','2026-07-19','10:28:34',2,'App\\Models\\Tenant\\User','38.56.111.246','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 10:28:34','2026-07-19 10:28:34'),(176,2,'inventory_created','2026-07-19','10:29:43',193,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:29:43','2026-07-19 10:29:43'),(177,2,'inventory_created','2026-07-19','10:30:45',194,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:30:45','2026-07-19 10:30:45'),(178,2,'inventory_created','2026-07-19','10:31:46',195,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:31:46','2026-07-19 10:31:46'),(179,2,'inventory_created','2026-07-19','10:32:36',196,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:32:36','2026-07-19 10:32:36'),(180,2,'inventory_created','2026-07-19','10:33:08',197,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:33:08','2026-07-19 10:33:08'),(181,2,'inventory_created','2026-07-19','10:34:08',198,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:34:08','2026-07-19 10:34:08'),(182,2,'inventory_created','2026-07-19','10:34:26',199,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:34:26','2026-07-19 10:34:26'),(183,2,'inventory_created','2026-07-19','10:35:34',200,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:35:34','2026-07-19 10:35:34'),(184,2,'inventory_created','2026-07-19','10:37:08',201,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:37:08','2026-07-19 10:37:08'),(185,2,'inventory_created','2026-07-19','10:40:10',202,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:40:10','2026-07-19 10:40:10'),(186,2,'inventory_created','2026-07-19','10:40:29',203,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:40:29','2026-07-19 10:40:29'),(187,2,'inventory_created','2026-07-19','10:41:09',204,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:41:09','2026-07-19 10:41:09'),(188,2,'inventory_created','2026-07-19','10:41:32',205,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:41:32','2026-07-19 10:41:32'),(189,2,'inventory_created','2026-07-19','10:42:45',206,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:42:45','2026-07-19 10:42:45'),(190,2,'inventory_created','2026-07-19','10:43:13',207,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:43:13','2026-07-19 10:43:13'),(191,2,'inventory_created','2026-07-19','10:56:45',208,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:56:45','2026-07-19 10:56:45'),(192,2,'inventory_created','2026-07-19','10:57:12',209,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 10:57:12','2026-07-19 10:57:12'),(193,2,'inventory_created','2026-07-19','11:05:57',210,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:05:57','2026-07-19 11:05:57'),(194,2,'inventory_created','2026-07-19','11:07:15',211,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:07:15','2026-07-19 11:07:15'),(195,2,'inventory_created','2026-07-19','11:08:50',212,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:08:50','2026-07-19 11:08:50'),(196,2,'inventory_created','2026-07-19','11:10:55',213,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:10:55','2026-07-19 11:10:55'),(197,2,'inventory_created','2026-07-19','11:11:46',214,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:11:46','2026-07-19 11:11:46'),(198,2,'inventory_created','2026-07-19','11:13:04',215,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:13:04','2026-07-19 11:13:04'),(199,2,'inventory_created','2026-07-19','11:14:25',216,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:14:25','2026-07-19 11:14:25'),(200,2,'inventory_created','2026-07-19','11:15:34',217,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:15:34','2026-07-19 11:15:34'),(201,2,'inventory_created','2026-07-19','11:16:34',218,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:16:34','2026-07-19 11:16:34'),(202,2,'inventory_created','2026-07-19','11:17:16',219,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:17:16','2026-07-19 11:17:16'),(203,2,'inventory_created','2026-07-19','11:21:08',220,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:21:08','2026-07-19 11:21:08'),(204,2,'inventory_created','2026-07-19','11:22:04',221,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:22:04','2026-07-19 11:22:04'),(205,2,'inventory_created','2026-07-19','11:22:29',222,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:22:29','2026-07-19 11:22:29'),(206,2,'inventory_created','2026-07-19','11:23:55',223,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:23:55','2026-07-19 11:23:55'),(207,2,'inventory_created','2026-07-19','11:26:37',224,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:26:37','2026-07-19 11:26:37'),(208,2,'inventory_created','2026-07-19','11:28:52',225,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:28:52','2026-07-19 11:28:52'),(209,2,'inventory_created','2026-07-19','11:33:11',226,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:33:11','2026-07-19 11:33:11'),(210,2,'inventory_created','2026-07-19','11:38:12',227,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 11:38:12','2026-07-19 11:38:12'),(211,2,'inventory_created','2026-07-19','18:57:47',228,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 18:57:47','2026-07-19 18:57:47'),(212,2,'inventory_created','2026-07-19','18:58:34',229,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 18:58:34','2026-07-19 18:58:34'),(213,2,'inventory_created','2026-07-19','18:59:39',230,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 18:59:39','2026-07-19 18:59:39'),(214,2,'inventory_created','2026-07-19','19:00:15',231,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:00:15','2026-07-19 19:00:15'),(215,2,'inventory_created','2026-07-19','19:04:59',232,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:04:59','2026-07-19 19:04:59'),(216,2,'inventory_created','2026-07-19','19:05:52',233,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:05:52','2026-07-19 19:05:52'),(217,2,'inventory_created','2026-07-19','19:07:09',234,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:07:09','2026-07-19 19:07:09'),(218,2,'inventory_created','2026-07-19','19:07:51',235,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:07:51','2026-07-19 19:07:51'),(219,2,'inventory_created','2026-07-19','19:09:04',236,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:09:04','2026-07-19 19:09:04'),(220,2,'inventory_created','2026-07-19','19:10:22',237,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:10:22','2026-07-19 19:10:22'),(221,2,'inventory_created','2026-07-19','19:13:50',238,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:13:50','2026-07-19 19:13:50'),(222,2,'inventory_created','2026-07-19','19:15:12',239,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:15:12','2026-07-19 19:15:12'),(223,2,'inventory_created','2026-07-19','19:16:13',240,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:16:13','2026-07-19 19:16:13'),(224,2,'inventory_created','2026-07-19','19:18:39',241,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:18:39','2026-07-19 19:18:39'),(225,2,'inventory_created','2026-07-19','19:19:41',242,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:19:41','2026-07-19 19:19:41'),(226,2,'inventory_created','2026-07-19','19:21:15',243,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:21:15','2026-07-19 19:21:15'),(227,2,'inventory_created','2026-07-19','19:21:56',244,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:21:56','2026-07-19 19:21:56'),(228,2,'inventory_created','2026-07-19','19:23:38',245,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:23:38','2026-07-19 19:23:38'),(229,2,'inventory_created','2026-07-19','19:25:34',246,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:25:34','2026-07-19 19:25:34'),(230,2,'inventory_created','2026-07-19','19:26:09',247,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:26:09','2026-07-19 19:26:09'),(231,2,'inventory_created','2026-07-19','19:29:15',248,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:29:15','2026-07-19 19:29:15'),(232,2,'inventory_created','2026-07-19','19:32:12',249,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-19 19:32:12','2026-07-19 19:32:12'),(233,2,'login','2026-07-21','15:35:46',2,'App\\Models\\Tenant\\User','38.56.111.246','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:35:46','2026-07-21 15:35:46'),(234,2,'inventory_created','2026-07-21','15:42:02',250,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 15:42:02','2026-07-21 15:42:02'),(235,2,'inventory_created','2026-07-21','15:44:29',251,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 15:44:29','2026-07-21 15:44:29'),(236,2,'inventory_created','2026-07-21','15:47:55',252,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 15:47:55','2026-07-21 15:47:55'),(237,2,'inventory_created','2026-07-21','15:48:49',253,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 15:48:49','2026-07-21 15:48:49'),(238,2,'inventory_created','2026-07-21','15:49:19',254,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 15:49:19','2026-07-21 15:49:19'),(239,2,'inventory_created','2026-07-21','15:50:27',255,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 15:50:27','2026-07-21 15:50:27'),(240,2,'inventory_created','2026-07-21','15:51:38',256,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 15:51:38','2026-07-21 15:51:38'),(241,2,'inventory_created','2026-07-21','15:53:57',257,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 15:53:57','2026-07-21 15:53:57'),(242,2,'inventory_created','2026-07-21','15:54:48',258,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 15:54:48','2026-07-21 15:54:48'),(243,2,'inventory_created','2026-07-21','15:56:02',259,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 15:56:02','2026-07-21 15:56:02'),(244,2,'inventory_created','2026-07-21','15:56:21',260,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 15:56:21','2026-07-21 15:56:21'),(245,2,'inventory_created','2026-07-21','15:56:40',261,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 15:56:40','2026-07-21 15:56:40'),(246,2,'inventory_created','2026-07-21','15:58:41',262,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 15:58:41','2026-07-21 15:58:41'),(247,2,'inventory_created','2026-07-21','15:59:07',263,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 15:59:07','2026-07-21 15:59:07'),(248,2,'inventory_created','2026-07-21','16:00:45',264,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:00:45','2026-07-21 16:00:45'),(249,2,'inventory_created','2026-07-21','16:01:39',265,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:01:39','2026-07-21 16:01:39'),(250,2,'inventory_created','2026-07-21','16:01:57',266,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:01:57','2026-07-21 16:01:57'),(251,2,'inventory_created','2026-07-21','16:02:39',267,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:02:39','2026-07-21 16:02:39'),(252,2,'inventory_created','2026-07-21','16:03:05',268,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:03:05','2026-07-21 16:03:05'),(253,2,'inventory_created','2026-07-21','16:03:31',269,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:03:31','2026-07-21 16:03:31'),(254,2,'inventory_created','2026-07-21','16:04:07',270,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:04:07','2026-07-21 16:04:07'),(255,2,'inventory_created','2026-07-21','16:04:39',271,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:04:39','2026-07-21 16:04:39'),(256,2,'inventory_created','2026-07-21','16:05:12',272,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:05:12','2026-07-21 16:05:12'),(257,2,'inventory_created','2026-07-21','16:05:49',273,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:05:49','2026-07-21 16:05:49'),(258,2,'inventory_created','2026-07-21','16:06:32',274,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:06:32','2026-07-21 16:06:32'),(259,2,'inventory_created','2026-07-21','16:07:13',275,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:07:13','2026-07-21 16:07:13'),(260,2,'inventory_created','2026-07-21','16:07:33',276,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:07:33','2026-07-21 16:07:33'),(261,2,'inventory_created','2026-07-21','16:08:04',277,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:08:04','2026-07-21 16:08:04'),(262,2,'inventory_created','2026-07-21','16:10:03',278,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:10:03','2026-07-21 16:10:03'),(263,2,'inventory_created','2026-07-21','16:10:38',279,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:10:38','2026-07-21 16:10:38'),(264,2,'inventory_created','2026-07-21','16:11:25',280,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:11:25','2026-07-21 16:11:25'),(265,2,'inventory_created','2026-07-21','16:13:19',281,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:13:19','2026-07-21 16:13:19'),(266,2,'inventory_created','2026-07-21','16:15:33',282,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:15:33','2026-07-21 16:15:33'),(267,2,'inventory_created','2026-07-21','16:16:14',283,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:16:14','2026-07-21 16:16:14'),(268,2,'inventory_created','2026-07-21','16:16:30',284,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:16:30','2026-07-21 16:16:30'),(269,2,'inventory_created','2026-07-21','16:17:04',285,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:17:04','2026-07-21 16:17:04'),(270,2,'inventory_created','2026-07-21','16:18:55',286,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:18:55','2026-07-21 16:18:55'),(271,2,'inventory_created','2026-07-21','16:19:52',287,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:19:52','2026-07-21 16:19:52'),(272,2,'inventory_created','2026-07-21','16:20:59',288,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:20:59','2026-07-21 16:20:59'),(273,2,'inventory_created','2026-07-21','16:22:02',289,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:22:02','2026-07-21 16:22:02'),(274,2,'inventory_created','2026-07-21','16:23:11',290,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:23:11','2026-07-21 16:23:11'),(275,2,'inventory_created','2026-07-21','16:25:09',291,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:25:09','2026-07-21 16:25:09'),(276,2,'inventory_created','2026-07-21','16:26:45',292,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:26:45','2026-07-21 16:26:45'),(277,2,'inventory_created','2026-07-21','16:27:58',293,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:27:58','2026-07-21 16:27:58'),(278,2,'inventory_created','2026-07-21','16:28:54',294,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:28:54','2026-07-21 16:28:54'),(279,2,'inventory_created','2026-07-21','16:29:47',295,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:29:47','2026-07-21 16:29:47'),(280,2,'inventory_created','2026-07-21','16:30:57',296,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:30:57','2026-07-21 16:30:57'),(281,2,'inventory_created','2026-07-21','16:32:36',297,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:32:36','2026-07-21 16:32:36'),(282,2,'inventory_created','2026-07-21','16:33:32',298,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:33:32','2026-07-21 16:33:32'),(283,2,'inventory_created','2026-07-21','16:34:39',299,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:34:39','2026-07-21 16:34:39'),(284,2,'inventory_created','2026-07-21','16:36:33',300,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:36:33','2026-07-21 16:36:33'),(285,2,'inventory_created','2026-07-21','16:37:28',301,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:37:28','2026-07-21 16:37:28'),(286,2,'inventory_created','2026-07-21','16:38:22',302,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:38:22','2026-07-21 16:38:22'),(287,2,'inventory_created','2026-07-21','16:39:24',303,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:39:24','2026-07-21 16:39:24'),(288,2,'inventory_created','2026-07-21','16:39:54',304,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:39:54','2026-07-21 16:39:54'),(289,2,'inventory_created','2026-07-21','16:40:38',305,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:40:38','2026-07-21 16:40:38'),(290,2,'inventory_created','2026-07-21','16:49:05',306,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:49:05','2026-07-21 16:49:05'),(291,2,'inventory_created','2026-07-21','16:49:39',307,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:49:39','2026-07-21 16:49:39'),(292,2,'inventory_created','2026-07-21','16:51:33',308,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:51:33','2026-07-21 16:51:33'),(293,2,'inventory_created','2026-07-21','16:53:06',309,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:53:06','2026-07-21 16:53:06'),(294,2,'inventory_created','2026-07-21','16:54:23',310,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:54:23','2026-07-21 16:54:23'),(295,2,'inventory_created','2026-07-21','16:55:51',311,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:55:51','2026-07-21 16:55:51'),(296,2,'inventory_created','2026-07-21','16:56:40',312,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:56:40','2026-07-21 16:56:40'),(297,2,'inventory_created','2026-07-21','16:57:55',313,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:57:55','2026-07-21 16:57:55'),(298,2,'inventory_created','2026-07-21','16:59:08',314,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 16:59:08','2026-07-21 16:59:08'),(299,2,'inventory_created','2026-07-21','17:10:51',315,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:10:51','2026-07-21 17:10:51'),(300,2,'inventory_created','2026-07-21','17:14:38',316,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:14:38','2026-07-21 17:14:38'),(301,2,'inventory_created','2026-07-21','17:15:53',317,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:15:53','2026-07-21 17:15:53'),(302,2,'inventory_created','2026-07-21','17:17:07',318,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:17:07','2026-07-21 17:17:07'),(303,2,'inventory_created','2026-07-21','17:19:13',319,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:19:13','2026-07-21 17:19:13'),(304,2,'inventory_created','2026-07-21','17:19:56',320,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:19:56','2026-07-21 17:19:56'),(305,2,'inventory_created','2026-07-21','17:22:49',321,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:22:49','2026-07-21 17:22:49'),(306,2,'inventory_created','2026-07-21','17:23:55',322,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:23:55','2026-07-21 17:23:55'),(307,2,'inventory_created','2026-07-21','17:26:09',323,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:26:09','2026-07-21 17:26:09'),(308,2,'inventory_created','2026-07-21','17:28:53',324,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:28:53','2026-07-21 17:28:53'),(309,2,'inventory_created','2026-07-21','17:30:19',325,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:30:19','2026-07-21 17:30:19'),(310,2,'inventory_created','2026-07-21','17:34:24',326,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:34:24','2026-07-21 17:34:24'),(311,2,'inventory_created','2026-07-21','17:35:18',327,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:35:18','2026-07-21 17:35:18'),(312,2,'inventory_created','2026-07-21','17:36:49',328,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:36:49','2026-07-21 17:36:49'),(313,2,'inventory_created','2026-07-21','17:37:28',329,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:37:28','2026-07-21 17:37:28'),(314,2,'inventory_created','2026-07-21','17:39:43',330,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:39:43','2026-07-21 17:39:43'),(315,2,'inventory_created','2026-07-21','17:40:15',331,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:40:15','2026-07-21 17:40:15'),(316,2,'inventory_created','2026-07-21','17:42:13',332,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:42:13','2026-07-21 17:42:13'),(317,2,'inventory_created','2026-07-21','17:43:13',333,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:43:13','2026-07-21 17:43:13'),(318,2,'inventory_created','2026-07-21','17:43:32',334,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:43:32','2026-07-21 17:43:32'),(319,2,'inventory_created','2026-07-21','17:43:57',335,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:43:57','2026-07-21 17:43:57'),(320,2,'inventory_created','2026-07-21','17:45:26',336,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:45:26','2026-07-21 17:45:26'),(321,2,'inventory_created','2026-07-21','17:46:25',337,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:46:25','2026-07-21 17:46:25'),(322,2,'inventory_created','2026-07-21','17:47:40',338,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:47:40','2026-07-21 17:47:40'),(323,2,'inventory_created','2026-07-21','17:49:10',339,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:49:10','2026-07-21 17:49:10'),(324,2,'inventory_created','2026-07-21','17:50:53',340,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:50:53','2026-07-21 17:50:53'),(325,2,'inventory_created','2026-07-21','17:51:48',341,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:51:48','2026-07-21 17:51:48'),(326,2,'inventory_created','2026-07-21','17:52:50',342,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:52:50','2026-07-21 17:52:50'),(327,2,'inventory_created','2026-07-21','17:55:58',343,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:55:58','2026-07-21 17:55:58'),(328,2,'inventory_created','2026-07-21','17:56:23',344,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:56:23','2026-07-21 17:56:23'),(329,2,'inventory_created','2026-07-21','17:57:29',345,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:57:29','2026-07-21 17:57:29'),(330,2,'inventory_created','2026-07-21','17:58:05',346,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:58:05','2026-07-21 17:58:05'),(331,2,'inventory_created','2026-07-21','17:58:56',347,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:58:56','2026-07-21 17:58:56'),(332,2,'inventory_created','2026-07-21','17:59:13',348,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:59:13','2026-07-21 17:59:13'),(333,2,'inventory_created','2026-07-21','17:59:30',349,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:59:30','2026-07-21 17:59:30'),(334,2,'inventory_created','2026-07-21','17:59:56',350,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 17:59:56','2026-07-21 17:59:56'),(335,2,'inventory_created','2026-07-21','18:00:42',351,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:00:42','2026-07-21 18:00:42'),(336,2,'inventory_created','2026-07-21','18:01:46',352,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:01:46','2026-07-21 18:01:46'),(337,2,'inventory_created','2026-07-21','18:02:22',353,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:02:22','2026-07-21 18:02:22'),(338,2,'inventory_created','2026-07-21','18:02:50',354,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:02:50','2026-07-21 18:02:50'),(339,2,'inventory_created','2026-07-21','18:03:23',355,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:03:23','2026-07-21 18:03:23'),(340,2,'inventory_created','2026-07-21','18:04:44',356,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:04:44','2026-07-21 18:04:44'),(341,2,'inventory_created','2026-07-21','18:05:13',357,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:05:13','2026-07-21 18:05:13'),(342,2,'inventory_created','2026-07-21','18:37:00',358,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:37:00','2026-07-21 18:37:00'),(343,2,'inventory_created','2026-07-21','18:37:47',359,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:37:47','2026-07-21 18:37:47'),(344,2,'inventory_created','2026-07-21','18:39:59',360,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:39:59','2026-07-21 18:39:59'),(345,2,'inventory_created','2026-07-21','18:41:42',361,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:41:42','2026-07-21 18:41:42'),(346,2,'inventory_created','2026-07-21','18:42:25',362,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:42:25','2026-07-21 18:42:25'),(347,2,'inventory_created','2026-07-21','18:43:14',363,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:43:14','2026-07-21 18:43:14'),(348,2,'inventory_created','2026-07-21','18:43:57',364,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:43:57','2026-07-21 18:43:57'),(349,2,'inventory_created','2026-07-21','18:44:59',365,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:44:59','2026-07-21 18:44:59'),(350,2,'inventory_created','2026-07-21','18:45:18',366,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:45:18','2026-07-21 18:45:18'),(351,2,'inventory_created','2026-07-21','18:45:58',367,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:45:58','2026-07-21 18:45:58'),(352,2,'inventory_created','2026-07-21','18:46:24',368,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:46:24','2026-07-21 18:46:24'),(353,2,'inventory_created','2026-07-21','18:46:58',369,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:46:58','2026-07-21 18:46:58'),(354,2,'inventory_created','2026-07-21','18:49:24',370,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:49:24','2026-07-21 18:49:24'),(355,2,'inventory_created','2026-07-21','18:51:26',371,'Modules\\Inventory\\Models\\Inventory','172.18.0.1','WebKit','desktop','Windows','10.0','Chrome','150.0.0.0',NULL,'items',NULL,NULL,'2026-07-21 18:51:26','2026-07-21 18:51:26'),(356,NULL,'failed','2026-07-28','13:19:48',NULL,NULL,'192.210.150.199','0','desktop','OpenBSD','0','Firefox','28.0',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 13:19:48','2026-07-28 13:19:48'),(357,NULL,'failed','2026-07-28','13:19:54',NULL,NULL,'198.46.154.21','WebKit','desktop','Windows','5.1','Chrome','43.0.2357.130',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 13:19:54','2026-07-28 13:19:54'),(358,NULL,'failed','2026-07-28','13:19:58',NULL,NULL,'192.210.150.199','0','desktop','OpenBSD','0','Firefox','28.0',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 13:19:58','2026-07-28 13:19:58'),(359,NULL,'failed','2026-07-28','13:20:10',NULL,NULL,'192.210.150.199','0','desktop','OpenBSD','0','Firefox','28.0',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 13:20:10','2026-07-28 13:20:10'),(360,NULL,'failed','2026-07-28','13:20:14',NULL,NULL,'198.46.154.21','WebKit','desktop','Windows','5.1','Chrome','43.0.2357.130',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 13:20:14','2026-07-28 13:20:14'),(361,NULL,'failed','2026-07-28','13:20:16',NULL,NULL,'198.46.154.21','WebKit','desktop','Windows','5.1','Chrome','43.0.2357.130',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 13:20:16','2026-07-28 13:20:16'),(362,NULL,'login_lockout','2026-07-28','13:20:23',NULL,NULL,'192.210.150.199','0','desktop','OpenBSD','0','Firefox','28.0','djpqqvtt@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 13:20:23','2026-07-28 13:20:23'),(363,NULL,'login_lockout','2026-07-28','13:20:27',NULL,NULL,'198.46.154.21','WebKit','desktop','Windows','5.1','Chrome','43.0.2357.130','mooouzwl@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 13:20:27','2026-07-28 13:20:27'),(364,NULL,'login_lockout','2026-07-28','13:20:27',NULL,NULL,'192.210.150.199','0','desktop','OpenBSD','0','Firefox','28.0','djpqqvtt@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 13:20:27','2026-07-28 13:20:27'),(365,NULL,'login_lockout','2026-07-28','13:20:35',NULL,NULL,'192.210.150.199','0','desktop','OpenBSD','0','Firefox','28.0','djpqqvtt@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 13:20:35','2026-07-28 13:20:35'),(366,NULL,'login_lockout','2026-07-28','13:20:38',NULL,NULL,'192.210.150.199','0','desktop','OpenBSD','0','Firefox','28.0','djpqqvtt@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 13:20:38','2026-07-28 13:20:38'),(367,NULL,'login_lockout','2026-07-28','13:20:39',NULL,NULL,'192.210.150.199','0','desktop','OpenBSD','0','Firefox','28.0','djpqqvtt@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 13:20:39','2026-07-28 13:20:39'),(368,NULL,'login_lockout','2026-07-28','13:20:39',NULL,NULL,'192.210.150.199','0','desktop','OpenBSD','0','Firefox','28.0','djpqqvtt@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 13:20:39','2026-07-28 13:20:39'),(369,NULL,'login_lockout','2026-07-28','13:20:40',NULL,NULL,'192.210.150.199','0','desktop','OpenBSD','0','Firefox','28.0','djpqqvtt@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 13:20:40','2026-07-28 13:20:40'),(370,NULL,'login_lockout','2026-07-28','13:20:40',NULL,NULL,'192.210.150.199','0','desktop','OpenBSD','0','Firefox','28.0','djpqqvtt@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 13:20:40','2026-07-28 13:20:40'),(371,NULL,'login_lockout','2026-07-28','13:20:42',NULL,NULL,'198.46.154.21','WebKit','desktop','Windows','5.1','Chrome','43.0.2357.130','mooouzwl@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 13:20:42','2026-07-28 13:20:42'),(372,NULL,'login_lockout','2026-07-28','13:20:46',NULL,NULL,'198.46.154.21','WebKit','desktop','Windows','5.1','Chrome','43.0.2357.130','mooouzwl@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 13:20:46','2026-07-28 13:20:46'),(373,NULL,'login_lockout','2026-07-28','13:20:50',NULL,NULL,'198.46.154.21','WebKit','desktop','Windows','5.1','Chrome','43.0.2357.130','mooouzwl@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 13:20:50','2026-07-28 13:20:50'),(374,NULL,'login_lockout','2026-07-28','13:20:51',NULL,NULL,'198.46.154.21','WebKit','desktop','Windows','5.1','Chrome','43.0.2357.130','mooouzwl@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 13:20:51','2026-07-28 13:20:51'),(375,NULL,'login_lockout','2026-07-28','13:20:52',NULL,NULL,'198.46.154.21','WebKit','desktop','Windows','5.1','Chrome','43.0.2357.130','mooouzwl@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 13:20:52','2026-07-28 13:20:52'),(376,NULL,'login_lockout','2026-07-28','13:20:56',NULL,NULL,'198.46.154.21','WebKit','desktop','Windows','5.1','Chrome','43.0.2357.130','mooouzwl@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 13:20:56','2026-07-28 13:20:56'),(377,NULL,'login_lockout','2026-07-28','13:21:14',NULL,NULL,'198.46.154.21','WebKit','desktop','Windows','5.1','Chrome','43.0.2357.130','mooouzwl@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 13:21:14','2026-07-28 13:21:14'),(378,1,'login','2026-07-30','17:09:26',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-30 17:09:26','2026-07-30 17:09:26');
COMMIT;

-- Dumped table `system_activity_logs` with 378 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 3 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-07-02 17:49:16','2026-07-02 17:49:16');
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)
--


