-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 06-10-2026 a las 11:55:32
-- Versión del servidor: 10.4.32-MariaDB
-- Versión de PHP: 8.2.12

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Base de datos: `funerprevision`
--

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `adm_cat_actividades_economicas`
--

CREATE TABLE `adm_cat_actividades_economicas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `codigo` varchar(20) NOT NULL,
  `descripcion` varchar(500) NOT NULL,
  `activo` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `adm_cat_sociedades`
--

CREATE TABLE `adm_cat_sociedades` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `codigo` varchar(20) DEFAULT NULL,
  `nombre` varchar(120) NOT NULL,
  `activo` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `adm_cat_tipos_contribuyente`
--

CREATE TABLE `adm_cat_tipos_contribuyente` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `codigo` varchar(30) NOT NULL,
  `nombre` varchar(80) NOT NULL,
  `activo` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `adm_empresas`
--

CREATE TABLE `adm_empresas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `codigo` varchar(20) NOT NULL,
  `nombre` varchar(200) NOT NULL,
  `mes_cierre` tinyint(3) UNSIGNED NOT NULL DEFAULT 12 COMMENT '1=Enero ... 12=Diciembre',
  `ciclo_inicio` date DEFAULT NULL,
  `ciclo_fin` date DEFAULT NULL,
  `ciclo_descripcion` varchar(120) DEFAULT NULL COMMENT 'Ej: 01 de Enero al 31 de Diciembre',
  `activo` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `adm_empresa_accionistas`
--

CREATE TABLE `adm_empresa_accionistas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `empresa_id` bigint(20) UNSIGNED NOT NULL,
  `nombre_apellido` varchar(200) NOT NULL,
  `rif_cedula` varchar(20) DEFAULT NULL,
  `comunes` decimal(18,2) NOT NULL DEFAULT 0.00,
  `preferentes` decimal(18,2) NOT NULL DEFAULT 0.00,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `adm_empresa_capitales`
--

CREATE TABLE `adm_empresa_capitales` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `empresa_id` bigint(20) UNSIGNED NOT NULL,
  `suscrito` decimal(18,2) NOT NULL DEFAULT 0.00,
  `pagado` decimal(18,2) NOT NULL DEFAULT 0.00,
  `al_inicio` decimal(18,2) NOT NULL DEFAULT 0.00,
  `acciones_preferentes` decimal(18,2) NOT NULL DEFAULT 0.00,
  `acciones_comunes` decimal(18,2) NOT NULL DEFAULT 0.00,
  `al_final` decimal(18,2) NOT NULL DEFAULT 0.00,
  `antes_ajuste` decimal(18,2) NOT NULL DEFAULT 0.00,
  `despues_ajuste` decimal(18,2) NOT NULL DEFAULT 0.00,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `adm_empresa_firmas`
--

CREATE TABLE `adm_empresa_firmas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `empresa_id` bigint(20) UNSIGNED NOT NULL,
  `imagen_path` varchar(500) DEFAULT NULL,
  `ancho_mm` smallint(5) UNSIGNED NOT NULL DEFAULT 40,
  `eje_y_mm` smallint(6) NOT NULL DEFAULT 0,
  `estado` varchar(20) NOT NULL DEFAULT 'Activo' COMMENT 'Activo | Inactivo',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `adm_empresa_integraciones`
--

CREATE TABLE `adm_empresa_integraciones` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `empresa_id` bigint(20) UNSIGNED NOT NULL,
  `cta_compras_cargo_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cta_compras_cargo_exentos_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cta_compras_cargo_igtf_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cta_compras_iva_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cta_compras_iva_retencion_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cta_compras_abono_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cta_compras_abono_pend_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cta_compras_retencion_islr_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cta_ventas_cargo_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cta_ventas_cargo_pend_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cta_ventas_iva_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cta_ventas_iva_retencion_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cta_ventas_abono_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cta_ventas_abono_exentos_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cta_ventas_abono_igtf_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cta_ventas_notas_credito_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `adm_empresa_ivas`
--

CREATE TABLE `adm_empresa_ivas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `empresa_id` bigint(20) UNSIGNED NOT NULL,
  `tipo_contribuyente_id` bigint(20) UNSIGNED DEFAULT NULL,
  `especial_desde` date DEFAULT NULL COMMENT 'C. especial desde',
  `frecuencia` varchar(40) DEFAULT NULL COMMENT 'Mensual, Quincenal, etc.',
  `tipo_transaccion` varchar(60) DEFAULT NULL,
  `numero_control` varchar(40) DEFAULT NULL COMMENT 'Solicitar, Manual, etc.',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `adm_empresa_juridicos`
--

CREATE TABLE `adm_empresa_juridicos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `empresa_id` bigint(20) UNSIGNED NOT NULL,
  `tip_persona` varchar(20) NOT NULL DEFAULT 'Juridica' COMMENT 'Juridica | Natural',
  `nacionalidad` varchar(40) DEFAULT 'Venezolano',
  `rif` varchar(20) DEFAULT NULL,
  `nit` varchar(30) DEFAULT NULL,
  `direccion` text DEFAULT NULL,
  `telefono` varchar(60) DEFAULT NULL,
  `correo` varchar(120) DEFAULT NULL,
  `rep_tip_persona` varchar(20) DEFAULT NULL,
  `rep_nacionalidad` varchar(40) DEFAULT NULL,
  `rep_rif_cedula` varchar(20) DEFAULT NULL,
  `rep_nombre` varchar(200) DEFAULT NULL,
  `rep_direccion` text DEFAULT NULL,
  `rep_telefono` varchar(60) DEFAULT NULL,
  `rep_correo` varchar(120) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `adm_empresa_mercantiles`
--

CREATE TABLE `adm_empresa_mercantiles` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `empresa_id` bigint(20) UNSIGNED NOT NULL,
  `sociedad_id` bigint(20) UNSIGNED DEFAULT NULL,
  `tip_actividad` varchar(40) DEFAULT NULL COMMENT 'Servicios, Comercio, etc.',
  `inicio_actividad` date DEFAULT NULL,
  `fecha_constitucion` date DEFAULT NULL,
  `num_registro` varchar(60) DEFAULT NULL,
  `fecha_registro` date DEFAULT NULL,
  `ofic_registro` varchar(120) DEFAULT NULL,
  `ciudad_registro` varchar(120) DEFAULT NULL,
  `domiciliado` tinyint(1) NOT NULL DEFAULT 1,
  `nacionalidad` varchar(40) DEFAULT 'Venezolano',
  `mayor_menor` varchar(40) DEFAULT NULL COMMENT 'Mayorista, Minorista, No Aplica',
  `impor_expor` varchar(40) DEFAULT NULL,
  `ag_retencion` tinyint(1) NOT NULL DEFAULT 0,
  `ag_perceptor` tinyint(1) NOT NULL DEFAULT 0,
  `act_principal_id` bigint(20) UNSIGNED DEFAULT NULL,
  `act_secundaria_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `adm_empresa_usuarios_bloqueo`
--

CREATE TABLE `adm_empresa_usuarios_bloqueo` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `empresa_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `adm_plan_cuentas`
--

CREATE TABLE `adm_plan_cuentas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `codigo` varchar(30) NOT NULL,
  `nombre` varchar(200) NOT NULL,
  `nivel` tinyint(3) UNSIGNED DEFAULT NULL,
  `tipo` varchar(40) DEFAULT NULL COMMENT 'activo, pasivo, patrimonio, ingreso, gasto',
  `permite_movimiento` tinyint(1) NOT NULL DEFAULT 1,
  `activo` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `almacenes`
--

CREATE TABLE `almacenes` (
  `id` bigint(20) NOT NULL,
  `nombre` varchar(100) NOT NULL,
  `direccion` varchar(255) NOT NULL,
  `telefonos` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `almacenes`
--

INSERT INTO `almacenes` (`id`, `nombre`, `direccion`, `telefonos`) VALUES
(1, 'ALMACEN PRINCIPAL OFICINA', 'UNARE', '02865236589');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `auditoria`
--

CREATE TABLE `auditoria` (
  `id` bigint(20) NOT NULL,
  `cedula` bigint(20) DEFAULT NULL,
  `usuario_sistema` varchar(100) DEFAULT NULL,
  `ip` varchar(30) DEFAULT NULL,
  `fecha` datetime DEFAULT NULL,
  `tipo_trans` varchar(100) DEFAULT NULL,
  `reg_afectado` varchar(100) DEFAULT NULL,
  `detalle_trans` text DEFAULT NULL,
  `forma` varchar(20) DEFAULT NULL,
  `hora` varchar(15) DEFAULT NULL,
  `datos_enviados` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `auditoria`
--

INSERT INTO `auditoria` (`id`, `cedula`, `usuario_sistema`, `ip`, `fecha`, `tipo_trans`, `reg_afectado`, `detalle_trans`, `forma`, `hora`, `datos_enviados`) VALUES
(1, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 08:28:10', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '08:28:10', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(2, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 08:29:35', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '08:29:35', 'document_type=V document_number=14557310'),
(3, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 10:25:13', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '10:25:13', 'document_type=V document_number=14557310'),
(4, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 15:21:30', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '15:21:30', 'document_type=V document_number=14557310'),
(5, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 15:49:18', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '15:49:18', 'document_type=V document_number=14557310'),
(6, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 15:52:04', 'REPORTE', 'pagos (1)', 'REGISTRO PAGO contrato=2 codpago=1', 'Pagos', '15:52:04', 'monto=70.00 iva=0.00'),
(7, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 15:52:43', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '15:52:43', 'document_type=V document_number=14557310'),
(8, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 15:53:55', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '15:53:55', 'document_type=V document_number=14557310'),
(9, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 15:56:29', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '15:56:29', 'document_type=V document_number=14557310'),
(10, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 16:14:33', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '16:14:33', 'document_type=V document_number=14557310'),
(11, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 16:19:25', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '16:19:25', 'document_type=V document_number=14557310'),
(12, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 16:37:35', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '16:37:35', 'document_type=V document_number=14557310'),
(13, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 16:38:54', 'REPORTE', 'clients (2)', 'CONSULTA CLIENTE document_type=V document_number=643140', 'Clientes', '16:38:54', 'document_type=V document_number=643140'),
(14, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 17:00:03', 'NUEVO', 'clients (1492) contracts (1485) telefonos (9) beneficiarios (4)', 'INSERT INTO clients ID 1492 NAME Manuel Diaz DOC V19557310 TIPO_SERVICIO Cremación | INSERT INTO contracts ID 1485 CONTRACT_NUMBER 2 SERVICE_TYPE Cremación | INSERT INTO telefonos ID 9 TELEFONOS 02125638596 UBICACION Habitación | INSERT INTO beneficiarios ID 4 CEDULA 95868745 NOMBRES Manuela Gutierrez', 'Clientes', '17:00:03', 'clients (1492 - V19557310 - Manuel Diaz - Cremación) - contracts (1485 - 2 - Cremación) - telefonos (9 - 02125638596 - Habitación) - beneficiarios (4 - 95868745 - Manuela Gutierrez)'),
(15, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 17:22:06', 'REPORTE', 'pagos (2)', 'REGISTRO PAGO contrato=2 codpago=2', 'Pagos', '17:22:06', 'monto=50.00 iva=0.00'),
(16, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 17:27:44', 'REPORTE', 'clients (1492)', 'CONSULTA CLIENTE document_type=V document_number=19557310', 'Clientes', '17:27:44', 'document_type=V document_number=19557310'),
(17, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 17:39:28', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '17:39:28', 'document_type=V document_number=14557310'),
(18, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 18:47:55', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '18:47:55', 'document_type=V document_number=14557310'),
(19, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 18:48:06', 'MODIFICO', 'clients (1491) contracts (1484) telefonos (5-7-8) beneficiarios (2-3)', 'UPDATE INTO clients ID 1491 NAME Jose Martinez DOC V14557310 TIPO_SERVICIO Sepultura | UPDATE INTO contracts ID 1484 CONTRACT_NUMBER 2 SERVICE_TYPE Sepultura | UPDATE INTO telefonos ID 5 TELEFONOS 02125638956 UBICACION Habitación | UPDATE INTO telefonos ID 7 TELEFONOS 04145236974 UBICACION Celular | UPDATE INTO telefonos ID 8 TELEFONOS 02125367482 UBICACION Trabajo | UPDATE INTO beneficiarios ID 2 CEDULA 16557310 NOMBRES Maria Arias | UPDATE INTO beneficiarios ID 3 CEDULA 15557310 NOMBRES Rafa Arias', 'Clientes', '18:48:06', 'clients (1491 - V14557310 - Jose Martinez - Sepultura) - contracts (1484 - 2 - Sepultura) - telefonos (5 - 02125638956 - Habitación) - telefonos (7 - 04145236974 - Celular) - telefonos (8 - 02125367482 - Trabajo) - beneficiarios (2 - 16557310 - Maria Arias) - beneficiarios (3 - 15557310 - Rafa Arias)'),
(20, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 18:48:24', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '18:48:24', 'document_type=V document_number=14557310'),
(21, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-09 19:11:19', 'REPORTE', 'clients (1492)', 'CONSULTA CLIENTE document_type=V document_number=19557310', 'Clientes', '19:11:19', 'document_type=V document_number=19557310'),
(22, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-10 06:19:26', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '06:19:26', 'document_type=V document_number=14557310'),
(23, 643140, 'daf2013MANUELANTONIOPEREZMENDEZ@gmail.com', '127.0.0.1', '2026-07-10 07:46:57', 'INICIO_SESION', 'users (1250)', 'INICIO DE SESION USUARIO daf2013MANUELANTONIOPEREZMENDEZ@gmail.com', 'Autenticacion', '07:46:57', 'users (1250 - daf2013MANUELANTONIOPEREZMENDEZ@gmail.com - MANUEL ANTONIO PEREZ MENDEZ)'),
(24, 643140, 'daf2013MANUELANTONIOPEREZMENDEZ@gmail.com', '127.0.0.1', '2026-07-10 07:47:36', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '07:47:36', 'document_type=V document_number=14557310'),
(25, 888888, 'daf2013MATERNIDADJGREGORIHERNANDEZ@gmail.com', '127.0.0.1', '2026-07-10 07:49:04', 'INICIO_SESION', 'users (1252)', 'INICIO DE SESION USUARIO daf2013MATERNIDADJGREGORIHERNANDEZ@gmail.com', 'Autenticacion', '07:49:04', 'users (1252 - daf2013MATERNIDADJGREGORIHERNANDEZ@gmail.com - MATERNIDAD J GREGORI HERNANDEZ)'),
(26, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-10 08:15:25', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '08:15:25', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(27, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-10 08:34:59', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '08:34:59', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(28, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-10 09:03:08', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '09:03:08', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(29, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-10 09:03:37', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '09:03:37', 'document_type=V document_number=14557310'),
(30, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-10 09:13:51', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '09:13:51', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(31, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-10 09:39:49', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '09:39:49', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(32, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-10 09:48:36', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '09:48:36', 'document_type=V document_number=14557310'),
(33, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-10 10:47:03', 'REPORTE', 'cobradores (1)', 'CREAR cobrador id=1 cedula=12667310', 'Cobradores', '10:47:03', 'nombres=Rafael Arias'),
(34, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-10 10:49:08', 'REPORTE', 'cobradores_clientes', 'ASIGNAR cliente id=1491 a cobrador id=1', 'Cobradores', '10:49:08', 'cliente=Jose Martinez cobrador=Rafael Arias'),
(35, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-10 12:14:43', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '12:14:43', 'document_type=V document_number=14557310'),
(36, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-10 14:00:31', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '14:00:31', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(37, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-10 19:20:17', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '19:20:17', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(38, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-11 05:43:05', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '05:43:05', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(39, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-11 05:45:05', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '05:45:05', 'document_type=V document_number=14557310'),
(40, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-11 12:22:09', 'REPORTE', 'clients (1492)', 'CONSULTA CLIENTE document_type=V document_number=19557310', 'Clientes', '12:22:09', 'document_type=V document_number=19557310'),
(41, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-11 12:51:15', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '12:51:15', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(42, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-11 13:27:35', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '13:27:35', 'document_type=V document_number=14557310'),
(43, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-11 13:29:14', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '13:29:14', 'document_type=V document_number=14557310'),
(44, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-11 13:51:27', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '13:51:27', 'document_type=V document_number=14557310'),
(45, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-11 13:52:15', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '13:52:15', 'document_type=V document_number=14557310'),
(46, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-11 15:14:04', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '15:14:04', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(47, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-11 15:22:52', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '15:22:52', 'document_type=V document_number=14557310'),
(48, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-11 15:44:34', 'REPORTE', 'clients (1492)', 'CONSULTA CLIENTE document_type=V document_number=19557310', 'Clientes', '15:44:34', 'document_type=V document_number=19557310'),
(49, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-11 15:54:21', 'REPORTE', 'clients (1492)', 'CONSULTA CLIENTE document_type=V document_number=19557310', 'Clientes', '15:54:21', 'document_type=V document_number=19557310'),
(50, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-11 16:15:44', 'REPORTE', 'cobradores_clientes', 'ASIGNAR cliente id=1492 a cobrador id=1', 'Cobradores', '16:15:44', 'cliente=Manuel Diaz cobrador=Rafael Arias'),
(51, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 10:48:41', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '10:48:41', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(52, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 10:50:06', 'REPORTE', 'clients (1492)', 'CONSULTA CLIENTE document_type=V document_number=19557310', 'Clientes', '10:50:06', 'document_type=V document_number=19557310'),
(53, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 11:34:06', 'NUEVO', 'clients (1493) contracts (1486) telefonos (10-11) beneficiarios (5)', 'INSERT INTO clients ID 1493 NAME Juan Gonzalez DOC V20557311 TIPO_SERVICIO Sepultura | INSERT INTO contracts ID 1486 CONTRACT_NUMBER 3 SERVICE_TYPE Sepultura | INSERT INTO telefonos ID 10 TELEFONOS 02125368974 UBICACION Habitación | INSERT INTO telefonos ID 11 TELEFONOS 04145268974 UBICACION Celular | INSERT INTO beneficiarios ID 5 CEDULA 22557310 NOMBRES Ana Marin', 'Clientes', '11:34:06', 'clients (1493 - V20557311 - Juan Gonzalez - Sepultura) - contracts (1486 - 3 - Sepultura) - telefonos (10 - 02125368974 - Habitación) - telefonos (11 - 04145268974 - Celular) - beneficiarios (5 - 22557310 - Ana Marin)'),
(54, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 12:44:11', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '12:44:11', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(55, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 15:56:55', 'REPORTE', 'clients (1493)', 'CONSULTA CLIENTE document_type=V document_number=20557311', 'Clientes', '15:56:55', 'document_type=V document_number=20557311'),
(56, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 16:12:55', 'REPORTE', 'clients (1493)', 'CONSULTA CLIENTE document_type=V document_number=20557311', 'Clientes', '16:12:55', 'document_type=V document_number=20557311'),
(57, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 16:14:28', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '16:14:28', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(58, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 16:14:55', 'REPORTE', 'clients (1493)', 'CONSULTA CLIENTE document_type=V document_number=20557311', 'Clientes', '16:14:55', 'document_type=V document_number=20557311'),
(59, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 16:38:43', 'REPORTE', 'pagos (3)', 'REGISTRO PAGO contrato=3 codpago=3', 'Pagos', '16:38:43', 'monto=152407.50 iva=0.00'),
(60, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 17:03:55', 'REPORTE', 'clients (1493)', 'CONSULTA CLIENTE document_type=V document_number=20557311', 'Clientes', '17:03:55', 'document_type=V document_number=20557311'),
(61, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 17:21:01', 'REPORTE', 'clients (1493)', 'CONSULTA CLIENTE document_type=V document_number=20557311', 'Clientes', '17:21:01', 'document_type=V document_number=20557311'),
(62, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 17:23:13', 'REPORTE', 'pagos (4)', 'REGISTRO PAGO contrato=3 codpago=4', 'Pagos', '17:23:13', 'monto=101605.00 iva=0.00'),
(63, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 18:01:05', 'REPORTE', 'clients (1493)', 'CONSULTA CLIENTE document_type=V document_number=20557311', 'Clientes', '18:01:05', 'document_type=V document_number=20557311'),
(64, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 18:30:57', 'REPORTE', 'clients (Activo=No)', 'REPORTE CLIENTES INACTIVOS total=0', 'Clientes', '18:30:57', 'total=0'),
(65, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 18:31:59', 'REPORTE', 'clients (1)', 'CONSULTA CLIENTE document_type=V document_number=555555', 'Clientes', '18:31:59', 'document_type=V document_number=555555'),
(66, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 18:38:03', 'REPORTE', 'clients (1)', 'CONSULTA CLIENTE document_type=V document_number=555555', 'Clientes', '18:38:03', 'document_type=V document_number=555555 tiposervicio=Sepultura regenerar=1'),
(67, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 18:40:16', 'REPORTE', 'clients (2)', 'CONSULTA CLIENTE document_type=V document_number=643140', 'Clientes', '18:40:16', 'document_type=V document_number=643140 tiposervicio=Cremación regenerar=1'),
(68, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 18:46:22', 'REPORTE', 'clients (1493)', 'CONSULTA CLIENTE document_type=V document_number=20557311', 'Clientes', '18:46:22', 'document_type=V document_number=20557311 tiposervicio=Sepultura regenerar=0'),
(69, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 18:52:55', 'REPORTE', 'clients (1493)', 'CONSULTA CLIENTE document_type=V document_number=20557311', 'Clientes', '18:52:55', 'document_type=V document_number=20557311 tiposervicio=Sepultura regenerar=0'),
(70, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 18:53:27', 'REPORTE', 'clients (Activo=No)', 'REPORTE CLIENTES INACTIVOS total=1', 'Clientes', '18:53:27', 'total=1'),
(71, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 18:55:58', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '18:55:58', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(72, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 18:59:59', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=1 reactivados=0', 'Clientes', '18:59:59', 'offset=0 limit=25'),
(73, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 19:01:47', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '19:01:47', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(74, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-15 19:01:56', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '19:01:56', 'offset=0 limit=25'),
(75, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 05:34:18', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '05:34:18', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(76, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 05:34:29', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '05:34:29', 'offset=0 limit=25'),
(77, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 05:39:21', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '05:39:21', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(78, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 05:39:30', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=2 reactivados=0', 'Clientes', '05:39:30', 'offset=0 limit=25'),
(79, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 05:39:40', 'REPORTE', 'clients (Activo=No)', 'REPORTE CLIENTES INACTIVOS total=2', 'Clientes', '05:39:40', 'total=2'),
(80, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 05:59:53', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '05:59:53', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(81, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:00:02', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:00:02', 'offset=0 limit=25'),
(82, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:01:58', 'REPORTE', 'clients (Activo=No)', 'REPORTE CLIENTES INACTIVOS total=0', 'Clientes', '06:01:58', 'total=0'),
(83, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:09:56', 'REPORTE', 'clients (Activo=Si)', 'REPORTE CLIENTES ACTIVOS total=5', 'Clientes', '06:09:56', 'total=5'),
(84, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:10:30', 'REPORTE', 'clients (Activo=No)', 'REPORTE CLIENTES INACTIVOS total=0', 'Clientes', '06:10:30', 'total=0'),
(85, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:22:39', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '06:22:39', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(86, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:22:46', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:22:46', 'offset=0 limit=25'),
(87, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:23:05', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:23:05', 'offset=0 limit=25'),
(88, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:23:22', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:23:22', 'offset=0 limit=25'),
(89, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:24:51', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '06:24:51', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(90, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:25:00', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:25:00', 'offset=0 limit=25'),
(91, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:25:09', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:25:09', 'offset=0 limit=25'),
(92, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:25:49', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:25:49', 'offset=0 limit=25'),
(93, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:26:57', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '06:26:57', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(94, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:27:06', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:27:06', 'offset=0 limit=25'),
(95, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:35:45', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:35:45', 'offset=0 limit=25'),
(96, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:38:03', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:38:03', 'offset=0 limit=25'),
(97, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:38:27', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '06:38:27', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(98, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 06:38:36', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:38:36', 'offset=0 limit=25'),
(99, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 11:29:41', 'REPORTE', 'ventas_puerta (1)', 'CREAR venta_puerta id=1 folio=125586', 'Ventas por puerta', '11:29:41', 'fallecido=Jose nuñez'),
(100, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 14:55:33', 'REPORTE', 'ventas_puerta_personal_servicios (1)', 'CREAR personal_servicio id=1 venta=1', 'Ventas por puerta', '14:55:33', 'tipo=Preparador nombre=jose manuel arias'),
(101, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 14:57:30', 'REPORTE', 'ventas_puerta_personal_servicios (2)', 'CREAR personal_servicio id=2 venta=1', 'Ventas por puerta', '14:57:30', 'tipo=Retirador Cuerpo nombre=Manuel Alvarez'),
(102, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 14:58:25', 'REPORTE', 'ventas_puerta_personal_servicios (3)', 'CREAR personal_servicio id=3 venta=1', 'Ventas por puerta', '14:58:25', 'tipo=Capillero nombre=Rafa Hernandez'),
(103, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 18:02:33', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '18:02:33', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(104, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 18:02:43', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '18:02:43', 'offset=0 limit=25'),
(105, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 18:04:04', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '18:04:04', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(106, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 18:04:13', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '18:04:13', 'offset=0 limit=25'),
(107, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 18:04:23', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '18:04:23', 'offset=0 limit=25'),
(108, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 18:05:05', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '18:05:05', 'offset=0 limit=25'),
(109, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 18:05:36', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '18:05:36', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(110, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 18:05:43', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '18:05:43', 'offset=0 limit=25'),
(111, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 18:06:37', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '18:06:37', 'offset=0 limit=25'),
(112, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 18:12:47', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '18:12:47', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(113, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-16 18:12:56', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '18:12:56', 'offset=0 limit=25'),
(114, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-17 14:58:35', 'REPORTE', 'ventas_puerta_pagos (1)', 'REGISTRO PAGO venta_puerta=1 folio=125586 codpago=1', 'Ventas por puerta', '14:58:35', 'monto=50921.50 iva=0.00'),
(115, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-17 15:09:04', 'REPORTE', 'ventas_puerta_pagos (2)', 'REGISTRO PAGO venta_puerta=1 folio=125586 codpago=2', 'Ventas por puerta', '15:09:04', 'monto=17735.25 iva=0.00'),
(116, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 05:33:45', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '05:33:45', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(117, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 05:33:54', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '05:33:54', 'offset=0 limit=25'),
(118, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 05:53:06', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '05:53:06', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(119, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 05:53:13', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '05:53:13', 'offset=0 limit=25'),
(120, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 05:53:33', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '05:53:33', 'offset=0 limit=25'),
(121, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 06:04:20', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:04:20', 'offset=0 limit=25'),
(122, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 06:06:52', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:06:52', 'offset=0 limit=25'),
(123, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 06:07:34', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '06:07:34', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(124, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 06:07:43', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:07:43', 'offset=0 limit=25'),
(125, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 06:07:56', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:07:56', 'offset=0 limit=25'),
(126, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 06:08:02', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:08:02', 'offset=0 limit=25'),
(127, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 06:11:12', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:11:12', 'offset=0 limit=25'),
(128, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 06:11:59', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:11:59', 'offset=0 limit=25'),
(129, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 06:16:25', 'REPORTE', 'tipo_consumibles (1)', 'CREAR tipo_consumible id=1 cod=MA001', 'Tipo productos', '06:16:25', 'categoria=MATERIAL DE COCINA descr=MATERIALES COMO PAPELERIA LAPICES ENTRE OTROS'),
(130, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 10:22:28', 'REPORTE', 'tipo_consumibles (1)', 'MODIFICAR tipo_consumible id=1 cod=MA001', 'Tipo productos', '10:22:28', 'categoria=MATERIAL DE COCINA descr=RESMA DE PAPEL TAMAÑO OFICIO'),
(131, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 10:54:44', 'REPORTE', 'proveedores (1)', 'CREAR proveedor cod=1 nombre=DISTRIBUIDORA MADEIRA', 'Proveedores', '10:54:44', 'rif=J-25368974 tribunal=P'),
(132, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 11:03:49', 'REPORTE', 'tipo_unidad (1)', 'CREAR tipo_unidad id=1 unidad=PAQUETE', 'Tipos de Unidad', '11:03:49', 'unidad=PAQUETE'),
(133, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 12:29:21', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '12:29:21', 'offset=0 limit=25'),
(134, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 12:36:54', 'REPORTE', 'almacenes (1)', 'CREAR almacen id=1 nombre=ALMACEN PRINCIPAL OFICINA', 'Almacenes', '12:36:54', 'direccion=UNARE'),
(135, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-18 12:59:50', 'REPORTE', 'estantes (1)', 'CREAR estante id=1 cod=MA001', 'Ubicaciones', '12:59:50', 'zona=OFICINA PB estante='),
(136, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 06:50:08', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '06:50:08', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(137, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 06:50:21', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '06:50:21', 'offset=0 limit=25'),
(138, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 08:18:40', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '08:18:40', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(139, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 08:18:56', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '08:18:56', 'offset=0 limit=25'),
(140, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 08:19:23', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '08:19:23', 'offset=0 limit=25'),
(141, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 08:19:29', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '08:19:29', 'offset=0 limit=25'),
(142, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 08:20:08', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '08:20:08', 'offset=0 limit=25'),
(143, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 08:26:25', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '08:26:25', 'offset=0 limit=25'),
(144, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 08:28:25', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '08:28:25', 'offset=0 limit=25'),
(145, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 08:39:09', 'REPORTE', 'movim_stock (1)', 'CREAR movimiento id=1 cod=MA001 nota=12026', 'Movimiento material', '08:39:09', 'cant=15 existencia=15'),
(146, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 09:25:49', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '09:25:49', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(147, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 09:26:02', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '09:26:02', 'offset=0 limit=25'),
(148, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 09:33:36', 'REPORTE', 'personas_deposito (1)', 'CREAR persona_deposito id=1 cedula=16558965', 'Personas Depósito', '09:33:36', 'nombre=JOSE PEREZ cargo=OPERADOR'),
(149, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 09:48:33', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '09:48:33', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(150, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 09:48:51', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '09:48:51', 'offset=0 limit=25'),
(151, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 09:49:40', 'REPORTE', 'clientes (1)', 'CREAR cliente cod=1 nombre=DEISY CARMONA', 'Clientes Inventario', '09:49:40', 'direccion=UNARE 1 telefonos=04145897458'),
(152, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 12:15:13', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '12:15:13', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(153, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 12:15:28', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '12:15:28', 'offset=0 limit=25'),
(154, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 12:38:56', 'REPORTE', 'solicitudes (1)', 'CREAR solicitud cod=1 oficio=256387-26', 'Solicitud Productos', '12:38:56', 'cliente=1 status=Deposito'),
(155, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 13:04:35', 'REPORTE', 'estantes (1)', 'MODIFICAR estante id=1 cod=MA001', 'Ubicaciones', '13:04:35', 'zona=OFICINA PB estante='),
(156, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 13:34:20', 'REPORTE', 'estantes (2)', 'CREAR estante id=2 cod=MA001', 'Ubicaciones', '13:34:20', 'zona=CUARTO 1 estante=RINCON LADO IZQUIERDO'),
(157, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 13:49:57', 'REPORTE', 'movim_stock (3)', 'CREAR movimiento id=3 cod=MA001 nota=524178', 'Movimiento material', '13:49:57', 'cant=15 existencia=29'),
(158, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 14:14:32', 'REPORTE', 'invt_consumibles (MA001)', 'ACTUALIZAR inventario cod=MA001 stock_entrega=5', 'Movimiento Material', '14:14:32', 'stock_minimo=5 stock_maximo=10'),
(159, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 14:26:46', 'REPORTE', 'clients (1492)', 'CONSULTA CLIENTE document_type=V document_number=19557310', 'Clientes', '14:26:46', 'document_type=V document_number=19557310 tiposervicio=Cremación regenerar=0'),
(160, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 16:43:01', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '16:43:01', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(161, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 16:43:59', 'REPORTE', 'clients (1492)', 'CONSULTA CLIENTE document_type=V document_number=19557310', 'Clientes', '16:43:59', 'document_type=V document_number=19557310 tiposervicio=Cremación regenerar=0'),
(162, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 16:44:29', 'REPORTE', 'clients (1493)', 'CONSULTA CLIENTE document_type=V document_number=20557311', 'Clientes', '16:44:29', 'document_type=V document_number=20557311 tiposervicio=Sepultura regenerar=0'),
(163, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 16:44:58', 'REPORTE', 'clients (1493)', 'CONSULTA CLIENTE document_type=V document_number=20557311', 'Clientes', '16:44:58', 'document_type=V document_number=20557311 tiposervicio=Sepultura regenerar=0'),
(164, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 16:45:27', 'REPORTE', 'clients (1492)', 'CONSULTA CLIENTE document_type=V document_number=19557310', 'Clientes', '16:45:27', 'document_type=V document_number=19557310 tiposervicio=Cremación regenerar=0'),
(165, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 16:45:54', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '16:45:54', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(166, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 16:46:13', 'MODIFICO', 'clients (1491) contracts (1484) telefonos (5-7-8) beneficiarios (2-3)', 'UPDATE INTO clients ID 1491 NAME Jose Martinez DOC V14557310 TIPO_SERVICIO Sepultura | UPDATE INTO contracts ID 1484 CONTRACT_NUMBER 2 SERVICE_TYPE Sepultura | UPDATE INTO telefonos ID 5 TELEFONOS 02125638956 UBICACION Habitación | UPDATE INTO telefonos ID 7 TELEFONOS 04145236974 UBICACION Celular | UPDATE INTO telefonos ID 8 TELEFONOS 02125367482 UBICACION Trabajo | UPDATE INTO beneficiarios ID 2 CEDULA 16557310 NOMBRES Maria Arias | UPDATE INTO beneficiarios ID 3 CEDULA 15557310 NOMBRES Rafa Arias', 'Clientes', '16:46:13', 'clients (1491 - V14557310 - Jose Martinez - Sepultura) - contracts (1484 - 2 - Sepultura) - telefonos (5 - 02125638956 - Habitación) - telefonos (7 - 04145236974 - Celular) - telefonos (8 - 02125367482 - Trabajo) - beneficiarios (2 - 16557310 - Maria Arias) - beneficiarios (3 - 15557310 - Rafa Arias)'),
(167, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 16:46:37', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '16:46:37', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(168, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 16:47:15', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '16:47:15', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(169, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 16:50:51', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '16:50:51', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(170, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 16:56:27', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '16:56:27', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(171, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 16:58:52', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '16:58:52', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(172, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 16:59:06', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '16:59:06', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(173, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 17:25:26', 'REPORTE', 'tipo_consumibles (2)', 'CREAR tipo_consumible id=2 cod=MB001', 'Tipo productos', '17:25:26', 'categoria=MATERIAL SEPULTURA CREMACION descr=COFRE'),
(174, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 17:34:13', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '17:34:13', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(175, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 17:39:06', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '17:39:06', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(176, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 18:02:57', 'REPORTE', 'estantes (3)', 'CREAR estante id=3 cod=MB001', 'Ubicaciones', '18:02:57', 'zona=GALPON 1 estante='),
(177, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 18:14:04', 'REPORTE', 'tipo_unidad (2)', 'CREAR tipo_unidad id=2 unidad=ATAUDES', 'Tipos de Unidad Medi', '18:14:04', 'unidad=ATAUDES'),
(178, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 18:15:38', 'REPORTE', 'movim_stock (4)', 'CREAR movimiento id=4 cod=MB001 nota=4587936', 'Movimiento material', '18:15:38', 'cant=150 existencia=150'),
(179, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 18:18:17', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '18:18:17', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(180, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 18:35:52', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '18:35:52', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(181, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 18:50:04', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '18:50:04', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(182, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-20 18:50:53', 'REPORTE', 'solicitudes (2)', 'CREAR solicitud cod=2 oficio=256341-26', 'Solicitud Productos', '18:50:53', 'cliente= funeral_client=1491 beneficiario= venta_puerta= status=Deposito'),
(183, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 07:19:03', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '07:19:03', 'offset=0 limit=25'),
(184, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 08:47:08', 'REPORTE', 'solicitudes (1)', 'ENTREGAR material solicitud cod=1', 'Solicitud Productos', '08:47:08', 'status=Despachado'),
(185, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 09:20:15', 'REPORTE', 'tipo_consumibles (3)', 'CREAR tipo_consumible id=3 cod=MC001', 'Tipo productos', '09:20:15', 'categoria=MATERIAL DE OFICINA descr=RESMA TAMAÑO CARTA'),
(186, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 09:20:54', 'REPORTE', 'tipo_consumibles (1)', 'MODIFICAR tipo_consumible id=1 cod=MA001', 'Tipo productos', '09:20:54', 'categoria=MATERIAL DE COCINA descr=CAFE'),
(187, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 09:22:17', 'REPORTE', 'tipo_consumibles (4)', 'CREAR tipo_consumible id=4 cod=MA002', 'Tipo productos', '09:22:17', 'categoria=MATERIAL DE COCINA descr=LECHE 1KG'),
(188, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 09:49:55', 'REPORTE', 'estantes (4)', 'CREAR estante id=4 cod=MA002', 'Ubicaciones', '09:49:55', 'zona=ESTANTE1 estante='),
(189, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 09:52:08', 'REPORTE', 'movim_stock (6)', 'CREAR movimiento id=6 cod=MA002 nota=859622', 'Movimiento material', '09:52:08', 'cant=2 existencia=2'),
(190, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 10:59:17', 'REPORTE', 'ubicasion_mat (5)', 'DESINCORPORAR vencido ubicacion=5 cod=MA002 cant=2', 'Movimiento Material', '10:59:17', 'movim_stock (7)'),
(191, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 12:21:41', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '12:21:41', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(192, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 12:21:56', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '12:21:56', 'offset=0 limit=25'),
(193, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 12:51:20', 'REPORTE', 'movim_stock (8)', 'CREAR movimiento id=8 cod=MA001 nota=52026', 'Movimiento material', '12:51:20', 'cant=2 existencia=27'),
(194, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 15:05:27', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '15:05:27', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(195, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 15:06:27', 'REPORTE', 'clients (1492)', 'CONSULTA CLIENTE document_type=V document_number=19557310', 'Clientes', '15:06:27', 'document_type=V document_number=19557310 tiposervicio=Cremación regenerar=0'),
(196, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 15:17:55', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '15:17:55', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(197, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 15:18:10', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '15:18:10', 'offset=0 limit=25'),
(198, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 15:45:57', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '15:45:57', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(199, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 15:46:13', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '15:46:13', 'offset=0 limit=25'),
(200, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 16:00:08', 'REPORTE', 'clients (1492)', 'CONSULTA CLIENTE document_type=V document_number=19557310', 'Clientes', '16:00:08', 'document_type=V document_number=19557310 tiposervicio=Cremación regenerar=0'),
(201, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 16:16:48', 'REPORTE', 'clients (Activo=Si)', 'REPORTE CLIENTES ACTIVOS total=5', 'Clientes', '16:16:48', 'total=5'),
(202, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 16:49:35', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '16:49:35', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(203, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 17:21:44', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '17:21:44', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(204, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 18:30:20', 'REPORTE', 'solicitudes (2)', 'MODIFICAR solicitud cod=2', 'Solicitud Productos', '18:30:20', 'status=Deposito'),
(205, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 19:46:18', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '19:46:18', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(206, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-21 19:46:31', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '19:46:31', 'offset=0 limit=25');
INSERT INTO `auditoria` (`id`, `cedula`, `usuario_sistema`, `ip`, `fecha`, `tipo_trans`, `reg_afectado`, `detalle_trans`, `forma`, `hora`, `datos_enviados`) VALUES
(207, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-22 05:32:32', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '05:32:32', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(208, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-22 05:32:50', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '05:32:50', 'offset=0 limit=25'),
(209, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-22 05:59:48', 'REPORTE', 'causa_deceso (1)', 'CREAR causa deceso id=1 descripcion=ACCIDENTE', 'Causa de deceso', '05:59:48', 'ACCIDENTE'),
(210, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-22 06:00:12', 'REPORTE', 'causa_deceso (1)', 'MODIFICAR causa deceso id=1 descripcion=NATURAL', 'Causa de deceso', '06:00:12', 'NATURAL'),
(211, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-22 06:00:28', 'REPORTE', 'causa_deceso (2)', 'CREAR causa deceso id=2 descripcion=ACCIDENTE', 'Causa de deceso', '06:00:28', 'ACCIDENTE'),
(212, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-22 06:42:38', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '06:42:38', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(213, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-22 07:08:14', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '07:08:14', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(214, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-22 07:10:37', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '07:10:37', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(215, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-22 07:11:05', 'MODIFICO', 'clients (1491) contracts (1484) telefonos (5-7-8) beneficiarios (2-3)', 'UPDATE INTO clients ID 1491 NAME Jose Martinez DOC V14557310 TIPO_SERVICIO Sepultura | UPDATE INTO contracts ID 1484 CONTRACT_NUMBER 2 SERVICE_TYPE Sepultura | UPDATE INTO telefonos ID 5 TELEFONOS 02125638956 UBICACION Habitación | UPDATE INTO telefonos ID 7 TELEFONOS 04145236974 UBICACION Celular | UPDATE INTO telefonos ID 8 TELEFONOS 02125367482 UBICACION Trabajo | UPDATE INTO beneficiarios ID 2 CEDULA 16557310 NOMBRES Maria Arias | UPDATE INTO beneficiarios ID 3 CEDULA 15557310 NOMBRES Rafa Arias', 'Clientes', '07:11:05', 'clients (1491 - V14557310 - Jose Martinez - Sepultura) - contracts (1484 - 2 - Sepultura) - telefonos (5 - 02125638956 - Habitación) - telefonos (7 - 04145236974 - Celular) - telefonos (8 - 02125367482 - Trabajo) - beneficiarios (2 - 16557310 - Maria Arias) - beneficiarios (3 - 15557310 - Rafa Arias)'),
(216, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-22 07:38:26', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '07:38:26', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(217, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-22 07:38:42', 'MODIFICO', 'clients (1491) contracts (1484) telefonos (5-7-8) beneficiarios (2-3)', 'UPDATE INTO clients ID 1491 NAME Jose Martinez DOC V14557310 TIPO_SERVICIO Sepultura | UPDATE INTO contracts ID 1484 CONTRACT_NUMBER 2 SERVICE_TYPE Sepultura | UPDATE INTO telefonos ID 5 TELEFONOS 02125638956 UBICACION Habitación | UPDATE INTO telefonos ID 7 TELEFONOS 04145236974 UBICACION Celular | UPDATE INTO telefonos ID 8 TELEFONOS 02125367482 UBICACION Trabajo | UPDATE INTO beneficiarios ID 2 CEDULA 16557310 NOMBRES Maria Arias | UPDATE INTO beneficiarios ID 3 CEDULA 15557310 NOMBRES Rafa Arias', 'Clientes', '07:38:42', 'clients (1491 - V14557310 - Jose Martinez - Sepultura) - contracts (1484 - 2 - Sepultura) - telefonos (5 - 02125638956 - Habitación) - telefonos (7 - 04145236974 - Celular) - telefonos (8 - 02125367482 - Trabajo) - beneficiarios (2 - 16557310 - Maria Arias) - beneficiarios (3 - 15557310 - Rafa Arias)'),
(218, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-22 07:44:51', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '07:44:51', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(219, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-31 05:17:23', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '05:17:23', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(220, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-31 05:17:36', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '05:17:36', 'offset=0 limit=25'),
(221, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-31 05:43:26', 'REPORTE', 'ventas_puerta_personal_servicios (2)', 'ACTUALIZAR personal_servicio id=2', 'Ventas por puerta', '05:43:26', 'tipo=Retirador Cuerpo nombre=Manuel Alvarez'),
(222, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-31 12:50:16', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '12:50:16', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(223, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-31 12:50:31', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '12:50:31', 'offset=0 limit=25'),
(224, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-31 12:55:47', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '12:55:47', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(225, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-07-31 14:49:40', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '14:49:40', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(226, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-08-01 18:18:42', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '18:18:42', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(227, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-08-01 18:19:01', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '18:19:01', 'offset=0 limit=25'),
(228, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-08-01 18:33:21', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '18:33:21', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(229, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-08-01 18:33:37', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '18:33:37', 'offset=0 limit=25'),
(230, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-08-01 18:47:16', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '18:47:16', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(231, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-08-01 18:58:31', 'REPORTE', 'pagos (5)', 'REGISTRO PAGO contrato=2 codpago=5', 'Pagos', '18:58:31', 'monto=52264.10 iva=8362.26'),
(232, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-08-05 10:48:50', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '10:48:50', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(233, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-08-05 10:49:04', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=0 reactivados=0', 'Clientes', '10:49:04', 'offset=0 limit=25'),
(234, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-08-05 10:52:19', 'REPORTE', 'clients (1491)', 'CONSULTA CLIENTE document_type=V document_number=14557310', 'Clientes', '10:52:19', 'document_type=V document_number=14557310 tiposervicio=Sepultura regenerar=0'),
(235, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-10-06 05:24:12', 'INICIO_SESION', 'users (1)', 'INICIO DE SESION USUARIO baezgregoric@gmail.com', 'Autenticacion', '05:24:12', 'users (1 - baezgregoric@gmail.com - Luis Mariano)'),
(236, 12557310, 'baezgregoric@gmail.com', '127.0.0.1', '2026-10-06 05:24:28', 'REPORTE', 'contracts', 'VERIFICACION INACTIVIDAD total=5 desactivados=3 reactivados=0', 'Clientes', '05:24:28', 'offset=0 limit=25');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `bancos`
--

CREATE TABLE `bancos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `codbanco` varchar(4) NOT NULL,
  `nombrebanco` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `bancos`
--

INSERT INTO `bancos` (`id`, `codbanco`, `nombrebanco`) VALUES
(1, '0102', '0102 - Banco de Venezuela'),
(2, '0104', '0104 - Venezolano de Crédito'),
(3, '0105', '0105 - Mercantil'),
(4, '0108', '0108 - Provincial'),
(5, '0114', '0114 - Bancaribe'),
(6, '0115', '0115 - Exterior'),
(7, '0116', '0116 - BOD'),
(8, '0134', '0134 - Banesco'),
(9, '0137', '0137 - Sofitasa'),
(10, '0138', '0138 - Banco Plaza'),
(11, '0151', '0151 - BFC'),
(12, '0156', '0156 - 100% Banco'),
(13, '0157', '0157 - Del Sur'),
(14, '0163', '0163 - Banco del Tesoro'),
(15, '0166', '0166 - Agrícola'),
(16, '0168', '0168 - Bancrecer'),
(17, '0169', '0169 - Mi Banco'),
(18, '0171', '0171 - Activo'),
(19, '0172', '0172 - Bancamiga'),
(20, '0174', '0174 - Banplus'),
(21, '0175', '0175 - Bicentenario'),
(22, '0177', '0177 - Banfanb'),
(23, '0191', '0191 - BNC');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `banks`
--

CREATE TABLE `banks` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `code` varchar(10) NOT NULL,
  `name` varchar(255) NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `supports_debit` tinyint(1) NOT NULL DEFAULT 0,
  `supports_transfer` tinyint(1) NOT NULL DEFAULT 1,
  `api_endpoint` varchar(255) DEFAULT NULL,
  `api_key` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `phone` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `banks`
--

INSERT INTO `banks` (`id`, `code`, `name`, `is_active`, `supports_debit`, `supports_transfer`, `api_endpoint`, `api_key`, `created_at`, `updated_at`, `phone`) VALUES
(2, '0102', 'BANCO DE VENEZUELA, SACA BANCO UNIVERSAL', 1, 1, 1, NULL, NULL, '2025-10-31 21:54:01', '2025-10-31 21:54:01', '0414-4254632 - 0424-3485982');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `bcv_rates`
--

CREATE TABLE `bcv_rates` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `rate` decimal(10,2) NOT NULL,
  `date` date NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `rate_euro` decimal(12,2) DEFAULT NULL,
  `rate_usdt` decimal(12,2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `bcv_rates`
--

INSERT INTO `bcv_rates` (`id`, `rate`, `date`, `is_active`, `created_at`, `updated_at`, `rate_euro`, `rate_usdt`) VALUES
(1, 224.37, '2025-11-04', 1, '2025-11-04 18:43:58', NULL, NULL, NULL),
(2, 226.13, '2025-11-05', 1, '2025-11-05 12:13:41', NULL, NULL, NULL),
(3, 227.56, '2025-11-06', 1, '2025-11-06 13:32:50', NULL, NULL, NULL),
(4, 228.48, '2025-11-07', 1, '2025-11-07 19:06:53', NULL, NULL, NULL),
(5, 231.04, '2025-11-10', 1, '2025-11-10 18:26:50', NULL, NULL, NULL),
(6, 231.09, '2025-11-11', 1, '2025-11-11 12:02:36', NULL, NULL, NULL),
(7, 233.05, '2025-11-12', 1, '2025-11-12 11:01:27', NULL, NULL, NULL),
(8, 234.00, '2025-11-13', 1, '2025-11-13 11:17:25', NULL, NULL, NULL),
(9, 234.87, '2025-11-14', 1, '2025-11-14 10:11:25', NULL, NULL, NULL),
(10, 236.46, '2025-11-17', 1, '2025-11-17 14:24:16', NULL, NULL, NULL),
(11, 237.78, '2025-11-19', 1, '2025-11-19 10:59:00', NULL, NULL, NULL),
(12, 240.33, '2025-11-20', 1, '2025-11-20 11:05:13', NULL, NULL, NULL),
(14, 241.58, '2025-11-21', 1, '2025-11-22 05:50:34', '2025-11-22 05:50:34', NULL, NULL),
(16, 241.58, '2025-11-22', 1, '2025-11-22 14:04:39', '2025-11-22 14:04:39', NULL, NULL),
(17, 243.11, '2025-11-23', 1, '2025-11-23 19:30:13', '2025-11-23 19:30:13', NULL, NULL),
(18, 243.11, '2025-11-24', 1, '2025-11-24 13:26:59', '2025-11-24 13:26:59', NULL, NULL),
(19, 243.11, '2025-11-25', 1, '2025-11-25 15:50:05', '2025-11-25 15:50:05', NULL, NULL),
(20, 243.11, '2025-11-26', 1, '2025-11-26 15:28:59', '2025-11-26 15:28:59', NULL, NULL),
(21, 257.93, '2025-12-06', 1, '2025-12-06 18:15:11', '2025-12-06 18:15:11', NULL, NULL),
(22, 257.93, '2025-12-07', 1, '2025-12-08 04:49:28', '2025-12-08 04:49:28', NULL, NULL),
(23, 254.87, '2025-12-08', 1, '2025-12-08 12:32:23', '2025-12-08 12:32:23', NULL, NULL),
(24, 257.93, '2025-12-09', 1, '2025-12-09 17:30:55', '2025-12-09 17:30:55', NULL, NULL),
(25, 265.07, '2025-12-11', 1, '2025-12-11 20:54:56', '2025-12-11 20:54:56', NULL, NULL),
(26, 267.75, '2025-12-12', 1, '2025-12-12 18:38:22', '2025-12-12 18:38:22', NULL, NULL),
(27, 270.79, '2025-12-14', 1, '2025-12-14 08:00:09', '2025-12-14 08:00:09', NULL, NULL),
(28, 304.68, '2026-01-05', 1, '2026-01-05 22:07:00', '2026-01-05 22:07:00', NULL, NULL),
(29, 311.88, '2026-01-07', 1, '2026-01-08 03:14:26', '2026-01-08 03:14:26', NULL, NULL),
(30, 344.51, '2026-01-17', 1, '2026-01-18 00:31:35', '2026-01-18 00:31:35', NULL, NULL),
(31, 402.33, '2026-02-20', 1, '2026-02-21 02:38:23', '2026-02-21 02:38:23', NULL, NULL),
(32, 402.33, '2026-02-21', 0, '2026-02-21 15:56:23', '2026-02-21 15:56:27', NULL, NULL),
(33, 402.33, '2026-02-21', 1, '2026-02-21 15:56:27', '2026-02-21 15:56:27', NULL, NULL),
(34, 405.35, '2026-02-22', 1, '2026-02-23 03:06:45', '2026-02-23 03:06:45', NULL, NULL),
(35, 405.35, '2026-02-23', 1, '2026-02-23 11:14:04', '2026-02-23 11:14:04', NULL, NULL),
(36, 414.05, '2026-02-26', 1, '2026-02-26 18:35:03', '2026-02-26 18:35:03', NULL, NULL),
(37, 417.36, '2026-02-27', 1, '2026-02-27 19:46:19', '2026-02-27 19:46:19', NULL, NULL),
(38, 419.99, '2026-02-28', 1, '2026-03-01 04:45:44', '2026-03-01 04:45:44', NULL, NULL),
(39, 419.99, '2026-03-02', 1, '2026-03-02 20:40:55', '2026-03-02 20:40:55', NULL, NULL),
(40, 419.99, '2026-03-03', 1, '2026-03-03 15:47:55', '2026-03-03 15:47:55', NULL, NULL),
(41, 421.88, '2026-03-04', 1, '2026-03-04 14:18:47', '2026-03-04 14:18:47', NULL, NULL),
(42, 427.93, '2026-03-05', 1, '2026-03-06 00:22:03', '2026-03-06 00:22:03', NULL, NULL),
(43, 431.01, '2026-03-06', 1, '2026-03-06 18:28:19', '2026-03-06 18:28:19', NULL, NULL),
(44, 433.17, '2026-03-07', 1, '2026-03-07 17:16:21', '2026-03-07 17:16:21', NULL, NULL),
(45, 433.17, '2026-03-09', 1, '2026-03-09 21:47:24', '2026-03-09 21:47:24', NULL, NULL),
(46, 436.24, '2026-03-10', 1, '2026-03-10 21:25:13', '2026-03-10 21:25:13', NULL, NULL),
(47, 446.80, '2026-03-14', 1, '2026-03-14 13:06:47', '2026-03-14 13:06:47', NULL, NULL),
(48, 446.80, '2026-03-16', 1, '2026-03-16 23:39:54', '2026-03-16 23:39:54', NULL, NULL),
(49, 451.51, '2026-03-19', 1, '2026-03-19 16:46:35', '2026-03-19 16:46:35', NULL, NULL),
(50, 459.45, '2026-03-24', 1, '2026-03-24 16:41:45', '2026-03-24 16:41:45', NULL, NULL),
(51, 462.67, '2026-03-25', 1, '2026-03-25 16:01:11', '2026-03-25 16:01:11', NULL, NULL),
(52, 466.60, '2026-03-26', 1, '2026-03-26 17:00:03', '2026-03-26 17:00:03', NULL, NULL),
(53, 473.87, '2026-03-31', 1, '2026-03-31 17:40:32', '2026-03-31 17:40:32', NULL, NULL),
(54, 473.92, '2026-04-01', 1, '2026-04-01 19:22:45', '2026-04-01 19:22:45', NULL, NULL),
(55, 474.06, '2026-04-06', 1, '2026-04-06 18:26:24', '2026-04-06 18:26:24', NULL, NULL),
(56, 474.53, '2026-04-07', 1, '2026-04-07 09:29:45', '2026-04-07 09:29:45', NULL, NULL),
(57, 475.01, '2026-04-08', 1, '2026-04-08 13:06:39', '2026-04-08 13:06:39', NULL, NULL),
(58, 475.96, '2026-04-09', 1, '2026-04-09 11:17:53', '2026-04-09 11:17:53', NULL, NULL),
(59, 476.43, '2026-04-10', 1, '2026-04-10 12:17:50', '2026-04-10 12:17:50', NULL, NULL),
(60, 476.43, '2026-04-11', 1, '2026-04-11 13:02:37', '2026-04-11 13:02:37', NULL, NULL),
(61, 477.15, '2026-04-13', 1, '2026-04-13 13:45:32', '2026-04-13 13:45:32', NULL, NULL),
(62, 477.63, '2026-04-14', 1, '2026-04-14 11:12:30', '2026-04-14 11:12:30', NULL, NULL),
(63, 478.58, '2026-04-15', 1, '2026-04-15 09:44:12', '2026-04-15 09:44:12', NULL, NULL),
(64, 479.78, '2026-04-16', 1, '2026-04-16 09:02:26', '2026-04-16 09:02:26', NULL, NULL),
(65, 480.26, '2026-04-17', 1, '2026-04-17 11:57:28', '2026-04-17 11:57:28', NULL, NULL),
(66, 480.26, '2026-04-18', 1, '2026-04-18 15:45:25', '2026-04-18 15:45:25', NULL, NULL),
(67, 480.26, '2026-04-19', 1, '2026-04-19 13:21:22', '2026-04-19 13:21:22', NULL, NULL),
(68, 481.22, '2026-04-20', 1, '2026-04-20 14:34:35', '2026-04-20 14:34:35', NULL, NULL),
(69, 482.76, '2026-04-22', 1, '2026-04-22 13:24:16', '2026-04-22 13:24:16', NULL, NULL),
(70, 483.87, '2026-04-24', 1, '2026-04-24 14:58:50', '2026-04-24 14:58:50', NULL, NULL),
(71, 483.87, '2026-04-25', 1, '2026-04-25 10:18:54', '2026-04-25 10:18:54', NULL, NULL),
(72, 483.87, '2026-04-26', 1, '2026-04-26 17:58:40', '2026-04-26 17:58:40', NULL, NULL),
(73, 484.74, '2026-04-27', 1, '2026-04-27 15:14:22', '2026-04-27 15:14:22', NULL, NULL),
(74, 485.23, '2026-04-28', 1, '2026-04-28 12:13:16', '2026-04-28 12:13:16', NULL, NULL),
(75, 486.20, '2026-04-29', 1, '2026-04-29 12:42:36', '2026-04-29 12:42:36', NULL, NULL),
(76, 487.12, '2026-04-30', 1, '2026-04-30 15:07:43', '2026-04-30 15:07:43', NULL, NULL),
(77, 487.12, '2026-05-01', 1, '2026-05-01 04:10:08', '2026-05-01 04:10:08', NULL, NULL),
(78, 487.12, '2026-05-02', 1, '2026-05-02 13:44:17', '2026-05-02 13:44:17', NULL, NULL),
(79, 487.12, '2026-05-03', 1, '2026-05-03 04:09:24', '2026-05-03 04:09:24', NULL, NULL),
(80, 489.55, '2026-05-04', 1, '2026-05-04 12:38:52', '2026-05-04 12:38:52', NULL, NULL),
(81, 490.04, '2026-05-05', 1, '2026-05-05 11:00:29', '2026-05-05 11:00:29', NULL, NULL),
(82, 494.11, '2026-05-06', 1, '2026-05-06 12:21:32', '2026-05-06 12:21:32', NULL, NULL),
(83, 496.83, '2026-05-07', 1, '2026-05-07 10:31:22', '2026-05-07 10:31:22', NULL, NULL),
(84, 499.86, '2026-05-08', 1, '2026-05-08 04:29:28', '2026-05-08 04:29:28', NULL, NULL),
(85, 499.86, '2026-05-09', 1, '2026-05-09 15:44:49', '2026-05-09 15:44:49', NULL, NULL),
(86, 499.86, '2026-05-10', 1, '2026-05-10 05:49:16', '2026-05-10 05:49:16', NULL, NULL),
(87, 500.46, '2026-05-11', 1, '2026-05-11 07:49:56', '2026-05-11 07:49:56', NULL, NULL),
(88, 504.91, '2026-05-12', 1, '2026-05-12 20:49:38', '2026-05-12 20:49:38', NULL, NULL),
(89, 508.60, '2026-05-13', 1, '2026-05-13 21:34:41', '2026-05-13 21:34:41', NULL, NULL),
(90, 510.79, '2026-05-14', 1, '2026-05-14 16:28:55', '2026-05-14 16:28:55', NULL, NULL),
(91, 515.18, '2026-05-15', 1, '2026-05-15 15:42:01', '2026-05-15 15:42:01', NULL, NULL),
(92, 515.18, '2026-05-16', 1, '2026-05-16 10:59:10', '2026-05-16 10:59:10', NULL, NULL),
(93, 515.18, '2026-05-17', 1, '2026-05-17 13:53:59', '2026-05-17 13:53:59', NULL, NULL),
(94, 515.18, '2026-05-18', 1, '2026-05-18 11:39:32', '2026-05-18 11:39:32', NULL, NULL),
(95, 517.96, '2026-05-19', 1, '2026-05-19 13:17:30', '2026-05-19 13:17:30', NULL, NULL),
(96, 520.91, '2026-05-20', 1, '2026-05-20 18:59:31', '2026-05-20 18:59:31', NULL, NULL),
(97, 523.68, '2026-05-21', 1, '2026-05-21 09:40:59', '2026-05-21 09:40:59', NULL, NULL),
(98, 526.87, '2026-05-22', 1, '2026-05-22 16:29:05', '2026-05-22 16:29:05', NULL, NULL),
(99, 526.87, '2026-05-23', 1, '2026-05-23 11:50:38', '2026-05-23 11:50:38', NULL, NULL),
(100, 526.87, '2026-05-24', 1, '2026-05-24 13:10:50', '2026-05-24 13:10:50', NULL, NULL),
(101, 530.50, '2026-05-25', 1, '2026-05-25 12:01:28', '2026-05-25 12:01:28', NULL, NULL),
(102, 535.39, '2026-05-26', 1, '2026-05-26 12:09:21', '2026-05-26 12:09:21', NULL, NULL),
(103, 540.04, '2026-05-27', 1, '2026-05-27 06:59:22', '2026-05-27 06:59:22', NULL, NULL),
(104, 544.58, '2026-05-28', 1, '2026-05-28 04:44:25', '2026-05-28 04:44:25', NULL, NULL),
(105, 549.37, '2026-05-29', 1, '2026-05-29 12:18:53', '2026-05-29 12:18:53', NULL, NULL),
(106, 549.37, '2026-05-30', 1, '2026-05-30 13:04:22', '2026-05-30 13:04:22', NULL, NULL),
(107, 549.37, '2026-05-31', 1, '2026-05-31 13:24:52', '2026-05-31 13:24:52', NULL, NULL),
(108, 554.43, '2026-06-01', 1, '2026-06-01 12:47:56', '2026-06-01 12:47:56', NULL, NULL),
(109, 557.97, '2026-06-02', 1, '2026-06-02 05:05:48', '2026-06-02 05:05:48', NULL, NULL),
(110, 558.64, '2026-06-03', 1, '2026-06-03 12:32:04', '2026-06-03 12:32:04', NULL, NULL),
(111, 560.38, '2026-06-04', 1, '2026-06-04 11:33:22', '2026-06-04 11:33:22', NULL, NULL),
(112, 563.29, '2026-06-05', 1, '2026-06-05 04:25:22', '2026-06-05 04:25:22', NULL, NULL),
(113, 563.29, '2026-06-06', 1, '2026-06-06 04:55:27', '2026-06-06 04:55:27', NULL, NULL),
(114, 563.29, '2026-06-07', 1, '2026-06-07 13:17:41', '2026-06-07 13:17:41', NULL, NULL),
(115, 563.29, '2026-06-08', 1, '2026-06-08 09:33:32', '2026-06-08 09:33:32', NULL, NULL),
(116, 567.68, '2026-06-09', 1, '2026-06-09 12:24:18', '2026-06-09 12:24:18', NULL, NULL),
(117, 572.68, '2026-06-10', 1, '2026-06-10 11:42:19', '2026-06-10 11:42:19', NULL, NULL),
(118, 577.55, '2026-06-11', 1, '2026-06-11 14:35:30', '2026-06-11 14:35:30', NULL, NULL),
(119, 577.55, '2026-06-12', 1, '2026-06-12 04:04:02', '2026-06-12 04:04:02', NULL, NULL),
(120, 582.69, '2026-06-13', 1, '2026-06-13 14:13:01', '2026-06-13 14:13:01', NULL, NULL),
(121, 582.69, '2026-06-14', 1, '2026-06-14 16:31:02', '2026-06-14 16:31:02', NULL, NULL),
(122, 587.41, '2026-06-15', 1, '2026-06-15 12:08:17', '2026-06-15 12:08:17', NULL, NULL),
(123, 592.52, '2026-06-16', 1, '2026-06-16 10:19:43', '2026-06-16 10:19:43', NULL, NULL),
(124, 596.78, '2026-06-17', 1, '2026-06-17 13:38:52', '2026-06-17 13:38:52', NULL, NULL),
(125, 602.33, '2026-06-18', 1, '2026-06-18 08:58:19', '2026-06-18 08:58:19', NULL, NULL),
(126, 607.39, '2026-06-19', 1, '2026-06-19 12:45:22', '2026-06-19 12:45:22', NULL, NULL),
(127, 607.39, '2026-06-20', 1, '2026-06-20 06:13:15', '2026-06-20 06:13:15', NULL, NULL),
(128, 607.39, '2026-06-21', 1, '2026-06-21 04:04:26', '2026-06-21 04:04:26', NULL, NULL),
(129, 612.43, '2026-06-22', 1, '2026-06-22 10:29:00', '2026-06-22 10:29:00', NULL, NULL),
(130, 617.64, '2026-06-23', 1, '2026-06-23 10:40:57', '2026-06-23 10:40:57', NULL, NULL),
(131, 617.64, '2026-06-24', 1, '2026-06-24 10:55:02', '2026-06-24 10:55:02', NULL, NULL),
(132, 621.53, '2026-06-25', 1, '2026-06-25 12:00:06', '2026-06-25 12:00:06', NULL, NULL),
(133, 622.21, '2026-06-26', 1, '2026-06-26 12:40:31', '2026-06-26 12:40:31', NULL, NULL),
(134, 622.21, '2026-06-27', 1, '2026-06-27 13:16:39', '2026-06-27 13:16:39', NULL, NULL),
(135, 622.21, '2026-06-28', 1, '2026-06-28 04:39:04', '2026-06-28 04:39:04', NULL, NULL),
(136, 622.21, '2026-06-29', 1, '2026-06-29 11:13:08', '2026-06-29 11:13:08', NULL, NULL),
(137, 623.02, '2026-06-30', 1, '2026-06-30 04:43:53', '2026-06-30 04:43:53', NULL, NULL),
(138, 685.94, '2026-07-07', 1, '2026-07-08 14:44:39', '2026-07-08 14:44:39', NULL, NULL),
(139, 685.94, '2026-07-08', 1, '2026-07-08 15:35:44', '2026-07-08 15:35:44', NULL, NULL),
(140, 700.22, '2026-07-09', 1, '2026-07-09 10:08:35', '2026-07-09 10:08:35', NULL, NULL),
(141, 709.69, '2026-07-10', 1, '2026-07-10 11:47:02', '2026-07-10 11:47:02', NULL, NULL),
(142, 709.69, '2026-07-11', 1, '2026-07-11 09:43:10', '2026-07-11 09:43:10', NULL, NULL),
(145, 725.75, '2026-07-15', 1, '2026-07-15 20:14:34', '2026-07-15 20:14:34', 830.63, 875.40),
(146, 727.45, '2026-07-16', 1, '2026-07-16 09:34:25', '2026-07-16 09:34:25', 832.25, 847.00),
(147, 732.48, '2026-07-18', 1, '2026-07-18 09:33:14', '2026-07-18 09:33:14', 838.07, 855.45),
(148, 736.93, '2026-07-20', 1, '2026-07-20 10:49:36', '2026-07-20 10:49:36', 843.20, 850.00),
(149, 737.23, '2026-07-21', 1, '2026-07-21 11:18:57', '2026-07-21 11:18:57', 840.71, 865.00),
(150, 737.23, '2026-07-22', 1, '2026-07-22 09:32:43', '2026-07-22 09:32:43', 840.86, 866.00),
(151, 746.63, '2026-07-31', 1, '2026-07-31 09:16:46', '2026-07-31 09:16:46', 858.98, 856.00),
(152, 746.63, '2026-08-01', 1, '2026-08-01 22:18:54', '2026-08-01 22:18:54', 858.98, 845.00),
(153, 755.16, '2026-08-05', 1, '2026-08-05 14:48:23', '2026-08-05 14:48:23', 870.04, 840.00),
(154, 755.90, '2026-08-06', 1, '2026-08-06 13:47:20', '2026-08-06 13:47:20', 872.84, 840.00),
(155, 872.39, '2026-10-06', 1, '2026-10-06 09:22:57', '2026-10-06 09:22:57', 977.22, 987.80);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `beneficiarios`
--

CREATE TABLE `beneficiarios` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `cedula_titular` varchar(255) NOT NULL,
  `cedula_beneficiario` varchar(255) NOT NULL,
  `nombres_apellidos` varchar(255) NOT NULL,
  `fecha_nac` date DEFAULT NULL,
  `sexo` enum('M','F') DEFAULT NULL,
  `parentesco` enum('CONYUGUE','HIJO','HIJA') DEFAULT NULL,
  `swfallecido` enum('SI','NO') NOT NULL DEFAULT 'NO',
  `swresponsable` enum('SI','NO') NOT NULL DEFAULT 'NO',
  `tiposervicio` enum('Sepultura','Cremación') DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `id_causadeceso` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `beneficiarios`
--

INSERT INTO `beneficiarios` (`id`, `cedula_titular`, `cedula_beneficiario`, `nombres_apellidos`, `fecha_nac`, `sexo`, `parentesco`, `swfallecido`, `swresponsable`, `tiposervicio`, `created_at`, `updated_at`, `id_causadeceso`) VALUES
(1, '555555', '13557311', 'Juan Carlos Blancos', '1980-07-16', 'M', 'HIJO', 'NO', 'NO', 'Sepultura', '2026-07-08 22:27:46', NULL, NULL),
(2, '14557310', '16557310', 'Maria Arias', '1997-03-04', 'F', 'CONYUGUE', 'NO', 'NO', 'Sepultura', '2026-07-08 23:29:57', '2026-07-08 23:29:57', NULL),
(3, '14557310', '15557310', 'Rafa Arias', '2002-06-21', 'M', 'HIJO', 'NO', 'NO', 'Sepultura', '2026-07-08 23:41:31', '2026-07-08 23:41:31', NULL),
(4, '19557310', '95868745', 'Manuela Gutierrez', '2000-02-16', 'F', 'CONYUGUE', 'NO', 'NO', 'Cremación', '2026-07-09 21:00:02', '2026-07-09 21:00:02', NULL),
(5, '20557311', '22557310', 'Ana Marin', '1991-10-15', 'F', 'CONYUGUE', 'NO', 'NO', 'Sepultura', '2026-07-15 15:34:06', '2026-07-15 15:34:06', NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `causa_deceso`
--

CREATE TABLE `causa_deceso` (
  `id` bigint(20) NOT NULL,
  `descripcion` varchar(255) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `causa_deceso`
--

INSERT INTO `causa_deceso` (`id`, `descripcion`, `created_at`, `updated_at`) VALUES
(1, 'NATURAL', '2026-07-22 09:59:48', '2026-07-22 10:00:12'),
(2, 'ACCIDENTE', '2026-07-22 10:00:28', '2026-07-22 10:00:28');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `clientes`
--

CREATE TABLE `clientes` (
  `cod_cliente` bigint(20) NOT NULL,
  `nombre` varchar(100) DEFAULT NULL,
  `direccion` varchar(255) DEFAULT NULL,
  `telefonos` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `clientes`
--

INSERT INTO `clientes` (`cod_cliente`, `nombre`, `direccion`, `telefonos`) VALUES
(1, 'DEISY CARMONA', 'UNARE 1', '04145897458');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `clients`
--

CREATE TABLE `clients` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `document_type` enum('V','E','J','P','G') NOT NULL,
  `document_number` varchar(255) NOT NULL,
  `email` varchar(255) DEFAULT NULL,
  `address` text DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `fecha_nac` date DEFAULT NULL,
  `sexo` enum('M','F') DEFAULT NULL,
  `swfallecido` enum('SI','NO') NOT NULL DEFAULT 'NO',
  `swresponsable` enum('SI','NO') NOT NULL DEFAULT 'NO',
  `tiposervicio` enum('Sepultura','Cremación') DEFAULT NULL,
  `id_causadeceso` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `clients`
--

INSERT INTO `clients` (`id`, `name`, `document_type`, `document_number`, `email`, `address`, `is_active`, `user_id`, `created_at`, `updated_at`, `fecha_nac`, `sexo`, `swfallecido`, `swresponsable`, `tiposervicio`, `id_causadeceso`) VALUES
(1, 'TRAILER GUARDIA NACIONAL KM10', 'V', '555555', 'daf2013TRAILERGUARDIANACIONALKM10@gmail.com', 'CALLE CALLE PRINCIPAL -, CASA Nº. PUNTO DE REFERENCIA: KM 10 AL LADO DE CHERRY', 0, 1249, '2026-03-04 16:52:24', '2026-10-06 09:24:28', NULL, 'M', 'NO', 'NO', 'Sepultura', NULL),
(2, 'MANUEL ANTONIO PEREZ MENDEZ', 'V', '643140', 'daf2013MANUELANTONIOPEREZMENDEZ@gmail.com', 'CALLE CALLE PRINCIPAL -, APARTAMENTO -. PUNTO DE REFERENCIA: KM 09 CRISTO REY CALLE COROMOTO', 0, 1250, '2026-03-04 16:52:51', '2026-10-06 09:24:28', NULL, 'M', 'NO', 'NO', 'Cremación', NULL),
(1491, 'Jose Martinez', 'V', '14557310', 'josemartinz@gmail.com', 'Alta vista av principal alta vista 1 apt cerro verde 1 piso 1 at 1A', 1, NULL, '2026-07-08 23:29:57', '2026-07-22 11:38:42', '1992-06-10', 'M', 'SI', 'SI', 'Sepultura', 2),
(1492, 'Manuel Diaz', 'V', '19557310', 'manueldia@gmail.com', 'Caracas', 0, NULL, '2026-07-09 21:00:02', '2026-10-06 09:24:28', '1999-02-17', 'M', 'NO', 'NO', 'Cremación', NULL),
(1493, 'Juan Gonzalez', 'V', '20557311', 'juangonzalez@gmail.com', 'Unare 1 urbanización las caiza', 1, NULL, '2026-07-15 15:34:06', '2026-07-15 22:50:38', '1978-06-15', 'M', 'NO', 'SI', 'Sepultura', NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `cobradores`
--

CREATE TABLE `cobradores` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `cedula` varchar(20) NOT NULL,
  `nombres_apellidos` varchar(100) NOT NULL,
  `fecha_nac` date DEFAULT NULL,
  `sexo` enum('M','F') DEFAULT NULL,
  `correo` varchar(100) DEFAULT NULL,
  `direccion` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `cobradores`
--

INSERT INTO `cobradores` (`id`, `cedula`, `nombres_apellidos`, `fecha_nac`, `sexo`, `correo`, `direccion`, `created_at`, `updated_at`) VALUES
(1, '12667310', 'Rafael Arias', '1995-11-24', 'M', 'rafaelarias@gmail.com', 'Unare carrera 1', '2026-07-10 14:47:03', '2026-07-10 14:47:03');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `cobradores_clientes`
--

CREATE TABLE `cobradores_clientes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `id_cobrador` bigint(20) UNSIGNED NOT NULL,
  `id_cliente` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `cobradores_clientes`
--

INSERT INTO `cobradores_clientes` (`id`, `id_cobrador`, `id_cliente`, `created_at`, `updated_at`) VALUES
(1, 1, 1491, '2026-07-10 14:49:08', '2026-07-10 14:49:08'),
(2, 1, 1492, '2026-07-11 20:15:44', '2026-07-11 20:15:44');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `contracts`
--

CREATE TABLE `contracts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `contract_number` varchar(255) NOT NULL,
  `client_id` bigint(20) UNSIGNED NOT NULL,
  `service_type` varchar(255) NOT NULL,
  `service_plan` varchar(255) NOT NULL,
  `monthly_amount` decimal(10,2) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date DEFAULT NULL,
  `status` enum('active','suspended','cancelled','expired') NOT NULL DEFAULT 'active',
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `contracts`
--

INSERT INTO `contracts` (`id`, `contract_number`, `client_id`, `service_type`, `service_plan`, `monthly_amount`, `start_date`, `end_date`, `status`, `is_active`, `created_at`, `updated_at`) VALUES
(1, '1', 1, 'Sepultura', 'Plan Base', 30.00, '2026-07-15', '2026-07-15', 'suspended', 0, '2026-07-15 16:52:27', '2026-10-06 09:24:28'),
(2, '1', 2, 'Cremación', 'Plan Base', 30.00, '2026-07-14', '2026-07-14', 'suspended', 0, '2026-07-15 16:52:54', '2026-10-06 09:24:28'),
(1484, '2', 1491, 'Sepultura', 'Plan Base', 0.00, '2026-07-22', NULL, 'active', 1, '2026-07-08 23:29:57', '2026-07-22 11:11:05'),
(1485, '2', 1492, 'Cremación', 'Plan Base', 0.00, '2026-07-09', NULL, 'suspended', 0, '2026-07-09 21:00:02', '2026-10-06 09:24:28'),
(1486, '3', 1493, 'Sepultura', 'Plan Base', 0.00, '2026-07-15', NULL, 'active', 1, '2026-07-15 15:34:06', '2026-07-15 22:50:38');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `cuentas`
--

CREATE TABLE `cuentas` (
  `codcuenta` bigint(20) UNSIGNED NOT NULL,
  `codcontrato` bigint(20) UNSIGNED NOT NULL,
  `pagado` decimal(12,2) NOT NULL DEFAULT 0.00,
  `deuda` decimal(12,2) NOT NULL DEFAULT 0.00,
  `montoapagar` decimal(12,2) NOT NULL DEFAULT 0.00,
  `codstatuscuenta` bigint(20) UNSIGNED NOT NULL,
  `codmotivocuenta` bigint(20) UNSIGNED NOT NULL,
  `descuento` decimal(12,2) NOT NULL DEFAULT 0.00,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `cuentas`
--

INSERT INTO `cuentas` (`codcuenta`, `codcontrato`, `pagado`, `deuda`, `montoapagar`, `codstatuscuenta`, `codmotivocuenta`, `descuento`, `created_at`, `updated_at`) VALUES
(1, 1484, 70.00, 0.00, 70.00, 2, 1, 0.00, '2026-07-09 19:52:04', '2026-07-09 19:52:04'),
(2, 1485, 50.00, 0.00, 50.00, 2, 1, 0.00, '2026-07-09 21:22:06', '2026-07-09 21:22:06'),
(3, 1486, 50802.50, 0.00, 50802.50, 2, 1, 0.00, '2026-07-15 20:38:42', '2026-07-15 20:38:42'),
(4, 1486, 50802.50, 0.00, 50802.50, 2, 2, 0.00, '2026-07-15 20:38:42', '2026-07-15 20:38:42'),
(5, 1486, 50802.50, 0.00, 50802.50, 2, 2, 0.00, '2026-07-15 20:38:43', '2026-07-15 20:38:43'),
(6, 1486, 50802.50, 0.00, 50802.50, 2, 2, 0.00, '2026-07-15 21:23:13', '2026-07-15 21:23:13'),
(7, 1486, 50802.50, 0.00, 50802.50, 2, 2, 0.00, '2026-07-15 21:23:13', '2026-07-15 21:23:13'),
(8, 1484, 52264.10, 0.00, 52264.10, 2, 2, 0.00, '2026-08-01 22:58:31', '2026-08-01 22:58:31');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `cuentaspagos`
--

CREATE TABLE `cuentaspagos` (
  `codcuentapago` bigint(20) UNSIGNED NOT NULL,
  `codpago` bigint(20) UNSIGNED NOT NULL,
  `codcuenta` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `fechamespago` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `cuentaspagos`
--

INSERT INTO `cuentaspagos` (`codcuentapago`, `codpago`, `codcuenta`, `created_at`, `updated_at`, `fechamespago`) VALUES
(1, 1, 1, '2026-07-09 19:52:04', '2026-07-09 19:52:04', '2026-07-09'),
(2, 2, 2, '2026-07-09 21:22:06', '2026-07-09 21:22:06', '2026-07-09'),
(3, 3, 3, '2026-07-15 20:38:43', '2026-07-15 20:38:43', '2026-07-15'),
(4, 3, 4, '2026-07-15 20:38:43', '2026-07-15 20:38:43', '2026-08-15'),
(5, 3, 5, '2026-07-15 20:38:43', '2026-07-15 20:38:43', '2026-09-15'),
(6, 4, 6, '2026-07-15 21:23:13', '2026-07-15 21:23:13', '2026-10-15'),
(7, 4, 7, '2026-07-15 21:23:13', '2026-07-15 21:23:13', '2026-11-15'),
(8, 5, 8, '2026-08-01 22:58:31', '2026-08-01 22:58:31', '2026-08-01');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `detallespagos`
--

CREATE TABLE `detallespagos` (
  `coddetallepago` bigint(20) UNSIGNED NOT NULL,
  `codformadepago` bigint(20) UNSIGNED NOT NULL,
  `montodetallepago` decimal(12,2) NOT NULL,
  `clavedebito` int(11) DEFAULT NULL,
  `codbancopago` bigint(20) UNSIGNED DEFAULT NULL,
  `numerodeposito` int(11) DEFAULT NULL,
  `nrotransferencia` int(11) DEFAULT NULL,
  `numerocheque` int(11) DEFAULT NULL,
  `claveconformacioncheque` varchar(50) DEFAULT NULL,
  `codpago` bigint(20) UNSIGNED NOT NULL,
  `observacion` varchar(255) DEFAULT NULL,
  `idusuario` bigint(20) UNSIGNED NOT NULL,
  `coddivisa` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `detallespagos`
--

INSERT INTO `detallespagos` (`coddetallepago`, `codformadepago`, `montodetallepago`, `clavedebito`, `codbancopago`, `numerodeposito`, `nrotransferencia`, `numerocheque`, `claveconformacioncheque`, `codpago`, `observacion`, `idusuario`, `coddivisa`, `created_at`, `updated_at`) VALUES
(1, 1, 70.00, NULL, 1, NULL, NULL, NULL, '525689', 1, NULL, 1, 140, '2026-07-09 19:52:04', '2026-07-09 19:52:04'),
(2, 3, 30.00, NULL, 3, NULL, NULL, NULL, '586956', 2, NULL, 1, 140, '2026-07-09 21:22:06', '2026-07-09 21:22:06'),
(3, 2, 10.00, NULL, 1, NULL, 253698745, NULL, NULL, 2, NULL, 1, 140, '2026-07-09 21:22:06', '2026-07-09 21:22:06'),
(4, 5, 10.00, NULL, NULL, NULL, NULL, NULL, NULL, 2, NULL, 1, 140, '2026-07-09 21:22:06', '2026-07-09 21:22:06'),
(5, 6, 20.00, NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, 1, 145, '2026-07-15 20:38:43', '2026-07-15 20:38:43'),
(6, 7, 30.00, NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, 1, 145, '2026-07-15 20:38:43', '2026-07-15 20:38:43'),
(7, 8, 25.00, NULL, NULL, NULL, NULL, NULL, '253698', 3, NULL, 1, 145, '2026-07-15 20:38:43', '2026-07-15 20:38:43'),
(8, 9, 50.00, NULL, NULL, NULL, NULL, NULL, '235687', 3, NULL, 1, 145, '2026-07-15 20:38:43', '2026-07-15 20:38:43'),
(9, 3, 51059.85, NULL, 1, NULL, NULL, NULL, '254178', 3, NULL, 1, 145, '2026-07-15 20:38:43', '2026-07-15 20:38:43'),
(10, 5, 45000.00, NULL, NULL, NULL, NULL, NULL, NULL, 4, NULL, 1, 145, '2026-07-15 21:23:13', '2026-07-15 21:23:13'),
(11, 1, 25000.00, NULL, 2, NULL, NULL, NULL, '562873', 4, NULL, 1, 145, '2026-07-15 21:23:13', '2026-07-15 21:23:13'),
(12, 4, 10000.00, NULL, 2, 25639874, NULL, NULL, NULL, 4, NULL, 1, 145, '2026-07-15 21:23:13', '2026-07-15 21:23:13'),
(13, 2, 21605.00, NULL, 2, NULL, 125897458, NULL, NULL, 4, NULL, 1, 145, '2026-07-15 21:23:13', '2026-07-15 21:23:13'),
(14, 1, 60626.36, NULL, 1, NULL, NULL, NULL, '256398', 5, NULL, 1, 152, '2026-08-01 22:58:31', '2026-08-01 22:58:31');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `enlace_bienes`
--

CREATE TABLE `enlace_bienes` (
  `id` bigint(20) NOT NULL,
  `cod_solicitud` bigint(20) DEFAULT NULL,
  `n_bienes` varchar(20) DEFAULT NULL,
  `cod_consumible` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `estantes`
--

CREATE TABLE `estantes` (
  `id` bigint(20) NOT NULL,
  `zona` text DEFAULT NULL,
  `ubicacion1` varchar(255) DEFAULT NULL,
  `ubicacion2` varchar(255) DEFAULT NULL,
  `ubicacion3` varchar(255) DEFAULT NULL,
  `capacidad` bigint(20) DEFAULT NULL,
  `cod_consumible` varchar(10) DEFAULT NULL,
  `dep_act` int(11) DEFAULT NULL,
  `minimo` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `estantes`
--

INSERT INTO `estantes` (`id`, `zona`, `ubicacion1`, `ubicacion2`, `ubicacion3`, `capacidad`, `cod_consumible`, `dep_act`, `minimo`) VALUES
(1, 'OFICINA PB', NULL, NULL, NULL, 50, 'MA001', 1, 5),
(2, 'CUARTO 1', 'RINCON LADO IZQUIERDO', NULL, NULL, 50, 'MA001', 1, 5),
(3, 'GALPON 1', NULL, NULL, NULL, 150, 'MB001', 1, 20),
(4, 'ESTANTE1', NULL, NULL, NULL, 15, 'MA002', 1, 5);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `estatusdecuentas`
--

CREATE TABLE `estatusdecuentas` (
  `codestatuscuenta` bigint(20) UNSIGNED NOT NULL,
  `descrestatuscuenta` varchar(50) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `estatusdecuentas`
--

INSERT INTO `estatusdecuentas` (`codestatuscuenta`, `descrestatuscuenta`, `created_at`, `updated_at`) VALUES
(1, 'PENDIENTE', '2026-07-09 16:56:18', NULL),
(2, 'CANCELADA', '2026-07-09 16:56:18', NULL),
(3, 'DEUDORA', '2026-07-09 16:57:54', NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `failed_jobs`
--

CREATE TABLE `failed_jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `uuid` varchar(255) NOT NULL,
  `connection` text NOT NULL,
  `queue` text NOT NULL,
  `payload` longtext NOT NULL,
  `exception` longtext NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `formasdepago`
--

CREATE TABLE `formasdepago` (
  `codformapago` bigint(20) UNSIGNED NOT NULL,
  `descrformapago` enum('Efectivo Bolivares','Efectivo Euro','Efectivo Divisa','Tarjeta de Débito','Depósito Bancario','Transferencia Electrónica','Pago Movil','Zelle','Binance USDT') NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `formasdepago`
--

INSERT INTO `formasdepago` (`codformapago`, `descrformapago`, `created_at`, `updated_at`) VALUES
(1, 'Tarjeta de Débito', '2026-07-09 17:26:39', NULL),
(2, 'Transferencia Electrónica', '2026-07-09 17:27:34', NULL),
(3, 'Pago Movil', '2026-07-09 17:27:34', NULL),
(4, 'Depósito Bancario', '2026-07-09 17:28:19', NULL),
(5, 'Efectivo Bolivares', '2026-07-09 17:28:19', NULL),
(6, 'Efectivo Divisa', '2026-07-09 17:29:44', NULL),
(7, 'Efectivo Euro', '2026-07-09 17:29:44', NULL),
(8, 'Zelle', '2026-07-11 19:19:35', NULL),
(9, 'Binance USDT', '2026-07-11 19:19:35', NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `hist_orden_compra`
--

CREATE TABLE `hist_orden_compra` (
  `id` bigint(20) NOT NULL,
  `nro_orden_compra` bigint(20) DEFAULT NULL,
  `fech_genr_compra` datetime DEFAULT NULL,
  `cod_consumible` varchar(10) DEFAULT NULL,
  `cant_requerida` bigint(20) DEFAULT NULL,
  `fech_sumin_prodct` datetime DEFAULT NULL,
  `cant_suministrada` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `hist_salid_estant_solct`
--

CREATE TABLE `hist_salid_estant_solct` (
  `id` bigint(20) NOT NULL,
  `cod_solicitud` bigint(20) DEFAULT NULL,
  `id_estantes` bigint(20) DEFAULT NULL,
  `cod_consumibles` varchar(10) DEFAULT NULL,
  `zona` text DEFAULT NULL,
  `estante` varchar(50) DEFAULT NULL,
  `rack` varchar(50) DEFAULT NULL,
  `nivel` varchar(50) DEFAULT NULL,
  `cantidad` bigint(20) DEFAULT NULL,
  `nro_trans` varchar(255) DEFAULT NULL,
  `fecha` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `hist_salid_estant_solct`
--

INSERT INTO `hist_salid_estant_solct` (`id`, `cod_solicitud`, `id_estantes`, `cod_consumibles`, `zona`, `estante`, `rack`, `nivel`, `cantidad`, `nro_trans`, `fecha`) VALUES
(1, 1, 1, 'MA001', 'OFICINA PB', NULL, NULL, NULL, 1, '1', '2026-07-20 12:38:56'),
(2, 2, 3, 'MB001', 'GALPON 1', NULL, NULL, NULL, 1, '2', '2026-07-20 18:50:53'),
(3, 0, 4, 'MA002', 'ESTANTE1', NULL, NULL, NULL, 2, 'DESINCORPORAR MATERIAL', '2026-07-21 10:59:17'),
(4, 0, 2, 'MA001', 'CUARTO 1', 'RINCON LADO IZQUIERDO', NULL, NULL, 2, 'DEVOLUCION PROVEEDOR', '2026-07-21 12:51:20');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `invoices`
--

CREATE TABLE `invoices` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `invoice_number` varchar(255) NOT NULL,
  `contract_id` bigint(20) UNSIGNED NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `pending_amount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `balance_please` decimal(12,2) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `due_date` date NOT NULL,
  `status` enum('pending','paid','overdue','cancelled') NOT NULL DEFAULT 'pending',
  `payment_date` timestamp NULL DEFAULT NULL,
  `reference_number` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `swoficina` int(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `invoices`
--

INSERT INTO `invoices` (`id`, `invoice_number`, `contract_id`, `amount`, `pending_amount`, `balance_please`, `description`, `due_date`, `status`, `payment_date`, `reference_number`, `created_at`, `updated_at`, `swoficina`) VALUES
(1108, '39714', 2, 30.00, 0.00, NULL, 'ptuera', '2026-04-14', 'paid', NULL, NULL, NULL, '2026-04-20 12:58:09', 2),
(2451, '42437', 2, 30.00, 0.00, NULL, 'ptuera', '2026-05-14', 'paid', '2026-05-29 17:00:00', NULL, NULL, '2026-05-29 17:00:00', 1),
(4968, '45294', 2, 30.00, 30.00, NULL, 'ptuera', '2026-06-14', 'pending', NULL, NULL, NULL, NULL, 0);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `invt_consumibles`
--

CREATE TABLE `invt_consumibles` (
  `id` bigint(20) NOT NULL,
  `cod_consumible` varchar(10) DEFAULT NULL,
  `cod_finanzas` varchar(20) DEFAULT NULL,
  `stock_minimo` bigint(20) DEFAULT NULL,
  `stock_maximo` bigint(20) DEFAULT NULL,
  `stock_entrega` bigint(20) DEFAULT NULL,
  `fech_ingreso` datetime DEFAULT NULL,
  `id_und_medida` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `invt_consumibles`
--

INSERT INTO `invt_consumibles` (`id`, `cod_consumible`, `cod_finanzas`, `stock_minimo`, `stock_maximo`, `stock_entrega`, `fech_ingreso`, `id_und_medida`) VALUES
(1, 'MA001', '52417893', 5, 10, 5, '2026-07-24 00:00:00', 1),
(2, 'MB001', '78451263', 20, 150, 1, '2026-07-20 00:00:00', 2),
(3, 'MA002', '528964', 3, 14, 1, '2026-07-21 00:00:00', 1);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `iva`
--

CREATE TABLE `iva` (
  `id` int(11) NOT NULL,
  `valor_iva` decimal(5,2) NOT NULL,
  `fecha_creacion` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `iva`
--

INSERT INTO `iva` (`id`, `valor_iva`, `fecha_creacion`) VALUES
(1, 16.00, '2026-08-01 18:21:11');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `menus`
--

CREATE TABLE `menus` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `nombre` varchar(255) NOT NULL,
  `ruta` varchar(255) NOT NULL,
  `icono` varchar(255) DEFAULT NULL,
  `orden` int(11) NOT NULL DEFAULT 0,
  `activo` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `menus`
--

INSERT INTO `menus` (`id`, `nombre`, `ruta`, `icono`, `orden`, `activo`, `created_at`, `updated_at`) VALUES
(1, 'Dashboard', '/dashboard', 'LayoutDashboard', 1, 1, '2026-07-08 17:42:32', '2026-07-08 17:42:32'),
(2, 'Cliente', '/clientes', 'Users', 2, 1, '2026-07-08 17:42:32', '2026-07-08 17:42:32'),
(3, 'Cobradores', '/cobradores', 'Briefcase', 4, 1, '2026-07-08 17:42:32', '2026-07-08 17:42:32'),
(4, 'Forma de pago', '/formas-pago', 'CreditCard', 5, 1, '2026-07-08 17:42:33', '2026-07-08 17:42:33'),
(5, 'Bancos', '/bancos', 'Landmark', 6, 1, '2026-07-08 17:42:33', '2026-07-08 17:42:33'),
(6, 'Reportes Cajas', '/reportes-cajas', 'FileText', 7, 1, '2026-07-08 17:42:33', '2026-07-08 17:42:33'),
(7, 'Auditoria', '/auditoria', 'ShieldCheck', 9, 1, '2026-07-08 17:42:33', '2026-07-08 17:42:33'),
(8, 'Usuarios', '/usuarios', 'UserCog', 10, 1, '2026-07-08 17:42:33', '2026-07-08 17:42:33'),
(9, 'Paquetes', '/paquetes', 'Package', 8, 1, '2026-07-10 13:31:18', NULL),
(10, 'Ventas por puerta', '/ventaspuerta', 'Store', 3, 1, '2026-07-16 10:16:04', NULL),
(11, 'Corte Inventario', '/inventarios/productos', 'Package', 20, 1, '2026-07-16 21:59:10', NULL),
(12, 'Tipos de Productos', '/inventarios/tipoproductos', 'Package', 21, 1, '2026-07-18 09:51:11', NULL),
(13, 'Proveedores', '/inventarios/proveedores', 'Package', 22, 1, '2026-07-18 14:36:25', NULL),
(14, 'Unidad Medida', '/inventarios/tipounidad', 'Package', 23, 1, '2026-07-18 14:36:25', NULL),
(15, 'Ubicaciones Productos', '/inventarios/ubicaciones', 'Package', 24, 1, '2026-07-18 14:36:25', NULL),
(16, 'Almacenes', '/inventarios/almacenes', 'Package', 25, 1, '2026-07-18 14:36:25', NULL),
(17, 'Movimientos Material', '/inventarios/movimientomaterial', 'Package', 26, 1, '2026-07-20 14:36:25', NULL),
(18, 'Personal Deposito', '/inventarios/personadeposito', 'Package', 27, 1, '2026-07-20 14:36:25', NULL),
(19, 'Clientes Productos', '/inventarios/clientesinventario', 'Package', 28, 1, '2026-07-20 14:36:25', NULL),
(20, 'Solicitud Productos', '/inventarios/solicitudproductos', 'Package', 29, 1, '2026-07-20 14:36:25', NULL),
(21, 'Causas Deceso', '/inventarios/causadeceso', 'Package', 11, 1, '2026-07-22 14:36:25', NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `migrations`
--

CREATE TABLE `migrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `migration` varchar(255) NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `migrations`
--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_reset_tokens_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(5, '2024_01_01_000005_create_banks_table', 2),
(6, '2024_01_01_000002_create_clients_table', 3),
(7, '2024_01_01_000003_create_contracts_table', 4),
(8, '2024_01_01_000004_create_invoices_table', 5),
(9, '2024_01_01_000006_create_payments_table', 6),
(10, '2024_01_01_000007_create_bcv_rates_table', 7),
(11, '2024_11_13_000000_add_pending_amount_to_invoices_table', 8),
(12, '2024_11_14_000000_add_balance_please_to_invoices_table', 9),
(13, '2026_07_08_091604_add_campos_extra_to_clients_table', 10),
(14, '2026_07_08_125452_add_campos_extra_to_roles_table', 11),
(15, '2026_07_08_130113_add_campos_extra_to_menus_table', 12),
(16, '2026_07_08_130250_add_campos_extra_to_permissions_table', 13),
(17, '2026_07_08_130405_add_campos_extra_to_role_menu_table', 14),
(18, '2026_07_08_130518_add_campos_extra_to_role_permission_table', 15),
(19, '2026_07_08_172300_create_telefonos_table', 16),
(20, '2026_07_08_173500_create_numerador_prevision_table', 17),
(21, '2026_07_08_173501_create_numerador_cremacion_table', 17),
(22, '2026_07_08_182200_create_beneficiarios_table', 18),
(23, '2026_07_09_150000_create_paquetes_table', 19),
(24, '2026_07_09_160000_create_pagos_table', 20),
(25, '2026_07_09_170000_create_estatusdecuentas_table', 21),
(26, '2026_07_09_170100_create_motivosdecuentas_table', 22),
(27, '2026_07_09_180000_create_cuentas_table', 23),
(28, '2026_07_09_190000_create_cuentaspagos_table', 24),
(29, '2026_07_09_200000_create_formasdepago_table', 25),
(30, '2026_07_09_210000_create_bancos_table', 26),
(31, '2026_07_09_211000_alter_bancos_table_use_id_as_primary_key', 27),
(32, '2026_07_09_212000_alter_bancos_codbanco_to_string', 28),
(33, '2026_07_09_220000_create_detallespagos_table', 29),
(34, '2026_07_10_100000_create_cobradores_table', 30),
(35, '2026_07_10_101000_create_telefonos_cobradores_table', 31),
(36, '2026_07_10_102000_create_cobradores_clientes_table', 32),
(37, '2026_07_15_210000_add_fechamespago_to_cuentaspagos_table', 33),
(38, '2026_07_16_110000_create_ventas_puerta_table', 34),
(39, '2026_07_16_120000_split_ventas_puerta_related_tables', 35),
(40, '2026_07_16_130000_create_ventas_puerta_pagos_tables', 36),
(41, '2026_07_16_140000_create_ventas_puerta_personal_servicios_table', 37),
(42, '2026_07_16_150000_add_factura_fields_to_ventas_puerta_pagos_table', 38),
(43, '2026_07_17_140000_remove_prevision_from_ventas_puerta_pagos_tipo_servicio', 39),
(44, '2026_07_21_184500_change_salida_hora_to_datetime_on_ventas_puerta_detalles_servicio', 40),
(45, '2026_09_23_100000_create_adm_cat_sociedades_table', 41),
(46, '2026_09_23_100100_create_adm_cat_actividades_economicas_table', 42),
(47, '2026_09_23_100200_create_adm_cat_tipos_contribuyente_table', 43),
(48, '2026_09_23_100300_create_adm_plan_cuentas_table', 44),
(49, '2026_09_23_100400_create_adm_empresas_table', 45),
(50, '2026_09_23_100500_create_adm_empresa_juridicos_table', 46),
(51, '2026_09_23_100600_create_adm_empresa_mercantiles_table', 47),
(52, '2026_09_23_100700_create_adm_empresa_capitales_table', 48),
(53, '2026_09_23_100800_create_adm_empresa_accionistas_table', 49),
(54, '2026_09_23_100900_create_adm_empresa_ivas_table', 50),
(55, '2026_09_23_101000_create_adm_empresa_integraciones_table', 51),
(56, '2026_09_23_101100_create_adm_empresa_firmas_table', 52),
(57, '2026_09_23_101200_create_adm_empresa_usuarios_bloqueo_table', 53);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `motivosdecuentas`
--

CREATE TABLE `motivosdecuentas` (
  `codmotivopago` bigint(20) UNSIGNED NOT NULL,
  `descrmotivopago` enum('Afiliación','Mensualidad','Venta') NOT NULL,
  `pagaiva` enum('SI','NO') NOT NULL DEFAULT 'NO',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `motivosdecuentas`
--

INSERT INTO `motivosdecuentas` (`codmotivopago`, `descrmotivopago`, `pagaiva`, `created_at`, `updated_at`) VALUES
(1, 'Afiliación', 'NO', '2026-07-09 16:59:25', NULL),
(2, 'Mensualidad', 'NO', '2026-07-09 16:59:25', NULL),
(3, 'Venta', 'NO', '2026-07-09 17:03:12', NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `movim_cons_recibido`
--

CREATE TABLE `movim_cons_recibido` (
  `id` bigint(20) NOT NULL,
  `cod_consumible` varchar(10) DEFAULT NULL,
  `nro_entrega` varchar(20) DEFAULT NULL,
  `id_und_medida` bigint(20) DEFAULT NULL,
  `cant_entrante` bigint(20) DEFAULT NULL,
  `costo_unidad` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `movim_cons_recibido`
--

INSERT INTO `movim_cons_recibido` (`id`, `cod_consumible`, `nro_entrega`, `id_und_medida`, `cant_entrante`, `costo_unidad`) VALUES
(1, 'MA001', '12026', 1, 15, '50'),
(2, 'MA001', '524178', 1, 15, '5'),
(3, 'MB001', '4587936', 2, 150, '75'),
(4, 'MA002', '859622', 1, 2, '5'),
(5, 'MA001', '52026', 1, 2, '5');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `movim_stock`
--

CREATE TABLE `movim_stock` (
  `id` bigint(20) NOT NULL,
  `cod_consumible` varchar(10) DEFAULT NULL,
  `fech_movimiento` datetime DEFAULT NULL,
  `nro_trans` text DEFAULT NULL,
  `entidad_trans` varchar(15) DEFAULT NULL,
  `entrada` bigint(20) DEFAULT NULL,
  `salida` bigint(20) DEFAULT NULL,
  `existencias` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `movim_stock`
--

INSERT INTO `movim_stock` (`id`, `cod_consumible`, `fech_movimiento`, `nro_trans`, `entidad_trans`, `entrada`, `salida`, `existencias`) VALUES
(1, 'MA001', '2026-07-20 08:39:09', '12026', '12026', 15, 0, 15),
(2, 'MA001', '2026-07-20 12:38:56', '1', '1', 0, 1, 14),
(3, 'MA001', '2026-07-20 13:49:57', '524178', '524178', 15, 0, 29),
(4, 'MB001', '2026-07-20 18:15:38', '4587936', '4587936', 150, 0, 150),
(5, 'MB001', '2026-07-20 18:50:53', '2', '2', 0, 1, 149),
(6, 'MA002', '2026-07-21 09:52:08', '859622', '859622', 2, 0, 2),
(7, 'MA002', '2026-07-21 10:59:17', 'MATERIAL DESINCORP', 'ADM.S', 0, 2, 0),
(8, 'MA001', '2026-07-21 12:51:20', 'DEVOLUCION PROVEEDOR DISTRIBUIDORA MADEIRA', '52026', 0, 2, 27);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mov_solicitudes`
--

CREATE TABLE `mov_solicitudes` (
  `id` bigint(20) NOT NULL,
  `cod_solicitud` bigint(20) DEFAULT NULL,
  `cod_consumible` varchar(10) DEFAULT NULL,
  `cant_solicitada` bigint(20) DEFAULT NULL,
  `cant_pendiente` bigint(20) DEFAULT NULL,
  `cant_despachada` bigint(20) DEFAULT NULL,
  `cod_cliente` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `mov_solicitudes`
--

INSERT INTO `mov_solicitudes` (`id`, `cod_solicitud`, `cod_consumible`, `cant_solicitada`, `cant_pendiente`, `cant_despachada`, `cod_cliente`) VALUES
(1, 1, 'MA001', 1, 0, 1, 1),
(2, 2, 'MB001', 1, 0, 1, NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `nota_entrega`
--

CREATE TABLE `nota_entrega` (
  `id` bigint(20) NOT NULL,
  `nro_entrega` varchar(20) DEFAULT NULL,
  `cod_proveedor` bigint(20) DEFAULT NULL,
  `fech_ingreso` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `nota_entrega`
--

INSERT INTO `nota_entrega` (`id`, `nro_entrega`, `cod_proveedor`, `fech_ingreso`) VALUES
(1, '12026', 1, '2026-07-24 00:00:00'),
(2, '524178', 1, '2026-07-20 00:00:00'),
(3, '4587936', 1, '2026-07-20 00:00:00'),
(4, '859622', 1, '2026-07-21 00:00:00'),
(5, '52026', 1, '2026-07-21 00:00:00');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `numerador_cremacion`
--

CREATE TABLE `numerador_cremacion` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `siguientenumero` int(11) NOT NULL,
  `estatussiguientenumero` tinyint(3) UNSIGNED NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `numerador_cremacion`
--

INSERT INTO `numerador_cremacion` (`id`, `siguientenumero`, `estatussiguientenumero`, `created_at`) VALUES
(1, 1, 3, '2026-07-08 21:48:45'),
(2, 2, 3, '2026-07-08 23:55:13'),
(3, 3, 2, '2026-07-11 17:28:51');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `numerador_prevision`
--

CREATE TABLE `numerador_prevision` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `siguientenumero` int(11) NOT NULL,
  `estatussiguientenumero` tinyint(3) UNSIGNED NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `numerador_prevision`
--

INSERT INTO `numerador_prevision` (`id`, `siguientenumero`, `estatussiguientenumero`, `created_at`) VALUES
(1, 1, 3, '2026-07-08 21:47:57'),
(2, 2, 3, '2026-07-08 23:16:51'),
(4, 3, 3, '2026-07-11 17:28:41'),
(5, 4, 2, '2026-07-15 22:31:59'),
(6, 5, 2, '2026-07-15 22:38:03');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `observ_ajustes`
--

CREATE TABLE `observ_ajustes` (
  `id` bigint(20) NOT NULL,
  `id_stock` bigint(20) DEFAULT NULL,
  `observacion` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `observ_consumible`
--

CREATE TABLE `observ_consumible` (
  `id` bigint(20) NOT NULL,
  `cod_consumible` varchar(10) DEFAULT NULL,
  `observacion` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `observ_desincoorporados`
--

CREATE TABLE `observ_desincoorporados` (
  `id` bigint(20) NOT NULL,
  `id_stock` bigint(20) DEFAULT NULL,
  `observacion` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `observ_desincoorporados`
--

INSERT INTO `observ_desincoorporados` (`id`, `id_stock`, `observacion`) VALUES
(1, 7, 'Material vencido desincorporado desde inventario.');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `observ_devolucion`
--

CREATE TABLE `observ_devolucion` (
  `id` bigint(20) NOT NULL,
  `nro_entrega` varchar(20) DEFAULT NULL,
  `observacion` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `observ_devolucion`
--

INSERT INTO `observ_devolucion` (`id`, `nro_entrega`, `observacion`) VALUES
(1, '52026', 'Material llego con humedad');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `observ_incorporacion`
--

CREATE TABLE `observ_incorporacion` (
  `id` bigint(20) NOT NULL,
  `id_stock` bigint(20) DEFAULT NULL,
  `observacion` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `pagos`
--

CREATE TABLE `pagos` (
  `codpago` bigint(20) UNSIGNED NOT NULL,
  `fechapago` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `monto` decimal(12,2) NOT NULL,
  `montoiva` decimal(12,2) NOT NULL DEFAULT 0.00,
  `observacion` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `pagos`
--

INSERT INTO `pagos` (`codpago`, `fechapago`, `monto`, `montoiva`, `observacion`, `created_at`, `updated_at`) VALUES
(1, '2026-07-09 19:52:04', 70.00, 0.00, 'Prueba del primer pago', '2026-07-09 19:52:04', '2026-07-09 19:52:04'),
(2, '2026-07-09 21:22:06', 50.00, 0.00, 'Pago en varios tipo', '2026-07-09 21:22:06', '2026-07-09 21:22:06'),
(3, '2026-07-15 20:38:43', 152407.50, 0.00, 'Prueba varios metodo de pagos', '2026-07-15 20:38:43', '2026-07-15 20:38:43'),
(4, '2026-07-15 21:23:13', 101605.00, 0.00, 'Otra prueba el mismo dia', '2026-07-15 21:23:13', '2026-07-15 21:23:13'),
(5, '2026-08-01 22:58:31', 52264.10, 8362.26, NULL, '2026-08-01 22:58:31', '2026-08-01 22:58:31');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `paquetes`
--

CREATE TABLE `paquetes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `descrpaquete` varchar(255) NOT NULL,
  `preciopaquete` decimal(12,2) NOT NULL,
  `tiposervicio` enum('Sepultura','Cremación') NOT NULL,
  `iva` enum('SI','NO') NOT NULL DEFAULT 'NO',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `paquetes`
--

INSERT INTO `paquetes` (`id`, `descrpaquete`, `preciopaquete`, `tiposervicio`, `iva`, `created_at`, `updated_at`) VALUES
(1, 'Incluye la preparación del cuerpo (tanatoestética/embalsamamiento), trámites legales (certificado de defunción), el traslado, la sala de velación, el ataúd, y el destino final: Sepultura.', 70.00, 'Sepultura', 'SI', '2026-07-09 14:53:41', NULL),
(2, 'Incluye la preparación del cuerpo (tanatoestética/embalsamamiento), trámites legales (certificado de defunción), el traslado, la sala de velación, el ataúd, y el destino final: Cremación.', 50.00, 'Cremación', 'NO', '2026-07-09 15:02:36', NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `password_reset_tokens`
--

CREATE TABLE `password_reset_tokens` (
  `email` varchar(255) NOT NULL,
  `token` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `payments`
--

CREATE TABLE `payments` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `payment_number` varchar(255) NOT NULL,
  `client_id` bigint(20) UNSIGNED NOT NULL,
  `contract_id` bigint(20) UNSIGNED NOT NULL,
  `invoice_id` bigint(20) UNSIGNED DEFAULT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `amount` decimal(10,2) NOT NULL,
  `payment_method` enum('debit','transfer','cash','mobile_payment') NOT NULL,
  `bank_id` bigint(20) UNSIGNED DEFAULT NULL,
  `reference_number` varchar(8) DEFAULT NULL,
  `phone_number` varchar(15) DEFAULT NULL,
  `document_type` enum('V','E','J','P','G') DEFAULT NULL,
  `document_number` varchar(10) DEFAULT NULL,
  `otp_code` varchar(8) DEFAULT NULL,
  `status` enum('pending','processing','completed','failed','cancelled') NOT NULL DEFAULT 'pending',
  `payment_date` timestamp NULL DEFAULT NULL,
  `processed_at` timestamp NULL DEFAULT NULL,
  `notes` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `permissions`
--

CREATE TABLE `permissions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `nombre` varchar(255) NOT NULL,
  `slug` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `permissions`
--

INSERT INTO `permissions` (`id`, `nombre`, `slug`, `created_at`, `updated_at`) VALUES
(1, 'Incluir Registro', 'registro.incluir', '2026-07-08 17:57:43', '2026-07-08 17:57:43'),
(2, 'Modificar Registro', 'registro.modificar', '2026-07-08 17:57:43', '2026-07-08 17:57:43'),
(3, 'Eliminar Registro', 'registro.eliminar', '2026-07-08 17:57:43', '2026-07-08 17:57:43'),
(4, 'Imprimir Reporte', 'registro.imprimir', '2026-07-08 17:57:43', '2026-07-08 17:57:43'),
(5, 'Asignar Claves', 'usuarios.claves', '2026-07-08 17:57:43', '2026-07-08 17:57:43');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `personal_access_tokens`
--

CREATE TABLE `personal_access_tokens` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `tokenable_type` varchar(255) NOT NULL,
  `tokenable_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `token` varchar(64) NOT NULL,
  `abilities` text DEFAULT NULL,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `expires_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `personas_deposito`
--

CREATE TABLE `personas_deposito` (
  `id` bigint(20) NOT NULL,
  `cedula` bigint(20) DEFAULT NULL,
  `nombre` varchar(50) DEFAULT NULL,
  `telefonos` varchar(50) DEFAULT NULL,
  `cargo` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `personas_deposito`
--

INSERT INTO `personas_deposito` (`id`, `cedula`, `nombre`, `telefonos`, `cargo`) VALUES
(1, 16558965, 'JOSE PEREZ', '04145283698', 'OPERADOR');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `proveedores`
--

CREATE TABLE `proveedores` (
  `cod_proveedor` bigint(20) NOT NULL,
  `rif` varchar(20) DEFAULT NULL,
  `proveedor` varchar(100) DEFAULT NULL,
  `direccion` varchar(255) DEFAULT NULL,
  `telefono` varchar(100) DEFAULT NULL,
  `fax` varchar(50) DEFAULT NULL,
  `e_mail` varchar(50) DEFAULT NULL,
  `tribunal` varchar(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `proveedores`
--

INSERT INTO `proveedores` (`cod_proveedor`, `rif`, `proveedor`, `direccion`, `telefono`, `fax`, `e_mail`, `tribunal`) VALUES
(1, 'J-25368974', 'DISTRIBUIDORA MADEIRA', 'CALLE PRINCIPAL', '02125234578', NULL, 'baezgregoric@gmail.com', 'P');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `resp_depost_despacho`
--

CREATE TABLE `resp_depost_despacho` (
  `id` bigint(20) NOT NULL,
  `cod_solicitud` bigint(20) DEFAULT NULL,
  `cedula` bigint(20) DEFAULT NULL,
  `cod_cliente` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `resp_depost_despacho`
--

INSERT INTO `resp_depost_despacho` (`id`, `cod_solicitud`, `cedula`, `cod_cliente`) VALUES
(1, 1, 16558965, 1),
(2, 2, 16558965, NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `roles`
--

CREATE TABLE `roles` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `nombre` varchar(255) NOT NULL,
  `descripcion` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `roles`
--

INSERT INTO `roles` (`id`, `nombre`, `descripcion`, `created_at`, `updated_at`) VALUES
(1, 'Administrador', 'Acceso total al sistema y administración de claves.', '2026-07-08 18:03:39', '2026-07-08 18:03:39'),
(2, 'Gestor de Operaciones', 'Acceso a operaciones, movimientos y mantenimientos. Sin gestión de claves.', '2026-07-08 18:03:39', '2026-07-08 18:03:39'),
(3, 'Gestor de Consultas', 'Acceso exclusivo a pantallas de consulta y reportes.', '2026-07-08 18:03:39', '2026-07-08 18:03:39');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `role_menu`
--

CREATE TABLE `role_menu` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `role_id` bigint(20) UNSIGNED NOT NULL,
  `menu_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `role_menu`
--

INSERT INTO `role_menu` (`id`, `role_id`, `menu_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, NULL, NULL),
(2, 1, 2, NULL, NULL),
(3, 1, 3, NULL, NULL),
(4, 1, 4, NULL, NULL),
(5, 1, 5, NULL, NULL),
(6, 1, 6, NULL, NULL),
(7, 1, 7, NULL, NULL),
(8, 1, 8, NULL, NULL),
(9, 2, 1, NULL, NULL),
(10, 2, 2, NULL, NULL),
(11, 2, 3, NULL, NULL),
(12, 2, 4, NULL, NULL),
(13, 2, 5, NULL, NULL),
(14, 2, 6, NULL, NULL),
(15, 3, 1, NULL, NULL),
(16, 3, 6, NULL, NULL),
(17, 1, 9, NULL, NULL),
(18, 1, 10, NULL, NULL),
(19, 1, 11, NULL, NULL),
(20, 1, 12, NULL, NULL),
(21, 1, 13, NULL, NULL),
(22, 1, 14, NULL, NULL),
(23, 1, 15, NULL, NULL),
(24, 1, 16, NULL, NULL),
(25, 1, 17, NULL, NULL),
(26, 1, 18, NULL, NULL),
(27, 1, 19, NULL, NULL),
(28, 1, 20, NULL, NULL),
(29, 1, 21, NULL, NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `role_permission`
--

CREATE TABLE `role_permission` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `role_id` bigint(20) UNSIGNED NOT NULL,
  `permission_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `role_permission`
--

INSERT INTO `role_permission` (`id`, `role_id`, `permission_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, NULL, NULL),
(3, 1, 3, NULL, NULL),
(5, 1, 5, NULL, NULL),
(6, 2, 1, NULL, NULL),
(7, 2, 2, NULL, NULL),
(8, 2, 4, NULL, NULL),
(9, 3, 4, NULL, NULL),
(10, 1, 4, NULL, NULL),
(11, 1, 2, NULL, NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `solicitudes`
--

CREATE TABLE `solicitudes` (
  `id` bigint(20) NOT NULL,
  `cod_solicitud` bigint(20) DEFAULT NULL,
  `cod_cliente` bigint(20) DEFAULT NULL,
  `fech_elaboracion` datetime DEFAULT NULL,
  `hora_elaboracion` varchar(10) DEFAULT NULL,
  `nro_oficio` varchar(15) DEFAULT NULL,
  `fech_entrega` datetime DEFAULT NULL,
  `hora_entrega` varchar(10) DEFAULT NULL,
  `cod_usuario` bigint(20) DEFAULT NULL,
  `status` varchar(10) DEFAULT NULL,
  `funeral_client_id` int(11) DEFAULT NULL,
  `beneficiario_id` int(11) DEFAULT NULL,
  `venta_puerta_id` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `solicitudes`
--

INSERT INTO `solicitudes` (`id`, `cod_solicitud`, `cod_cliente`, `fech_elaboracion`, `hora_elaboracion`, `nro_oficio`, `fech_entrega`, `hora_entrega`, `cod_usuario`, `status`, `funeral_client_id`, `beneficiario_id`, `venta_puerta_id`) VALUES
(1, 1, 1, '2026-07-20 12:38:56', '12:38:56', '256387-26', '2026-07-21 08:47:08', '08:47:08', 12557310, 'Despachado', NULL, NULL, NULL),
(2, 2, NULL, '2026-07-20 18:50:53', '18:50:53', '256341-26', NULL, NULL, 12557310, 'Deposito', 1491, NULL, NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `telefonos`
--

CREATE TABLE `telefonos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `id_cliente` bigint(20) UNSIGNED NOT NULL,
  `telefonos` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `ubicacion` enum('Celular','Habitación','Trabajo','Vecino') DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `telefonos`
--

INSERT INTO `telefonos` (`id`, `id_cliente`, `telefonos`, `created_at`, `updated_at`, `ubicacion`) VALUES
(1, 1, '02128568956', '2026-07-08 22:05:40', NULL, 'Habitación'),
(2, 1, '04145236589', '2026-07-08 22:05:40', NULL, 'Celular'),
(3, 2, '02128575478', '2026-07-08 22:07:07', NULL, 'Habitación'),
(4, 2, '04165235874', '2026-07-08 22:07:07', NULL, 'Celular'),
(5, 1491, '02125638956', '2026-07-08 23:29:57', '2026-07-08 23:29:57', 'Habitación'),
(7, 1491, '04145236974', '2026-07-09 11:09:16', '2026-07-09 11:09:16', 'Celular'),
(8, 1491, '02125367482', '2026-07-09 11:37:20', '2026-07-09 11:37:20', 'Trabajo'),
(9, 1492, '02125638596', '2026-07-09 21:00:02', '2026-07-09 21:00:02', 'Habitación'),
(10, 1493, '02125368974', '2026-07-15 15:34:06', '2026-07-15 15:34:06', 'Habitación'),
(11, 1493, '04145268974', '2026-07-15 15:34:06', '2026-07-15 15:34:06', 'Celular');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `telefonos_cobradores`
--

CREATE TABLE `telefonos_cobradores` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `id_cobrador` bigint(20) UNSIGNED NOT NULL,
  `telefonos` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `telefonos_cobradores`
--

INSERT INTO `telefonos_cobradores` (`id`, `id_cobrador`, `telefonos`, `created_at`, `updated_at`) VALUES
(1, 1, '02125638978', '2026-07-10 14:47:03', '2026-07-10 14:47:03'),
(2, 1, '04142568956', '2026-07-10 14:47:03', '2026-07-10 14:47:03');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `tipo_consumibles`
--

CREATE TABLE `tipo_consumibles` (
  `id` bigint(20) NOT NULL,
  `cod_consumible` varchar(10) DEFAULT NULL,
  `descripcion` varchar(255) DEFAULT NULL,
  `tipo_material` varchar(255) DEFAULT NULL,
  `swbienes` varchar(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `tipo_consumibles`
--

INSERT INTO `tipo_consumibles` (`id`, `cod_consumible`, `descripcion`, `tipo_material`, `swbienes`) VALUES
(1, 'MA001', 'CAFE', 'MATERIAL DE COCINA', '0'),
(2, 'MB001', 'COFRE', 'MATERIAL SEPULTURA CREMACION', '0'),
(3, 'MC001', 'RESMA TAMAÑO CARTA', 'MATERIAL DE OFICINA', '0'),
(4, 'MA002', 'LECHE 1KG', 'MATERIAL DE COCINA', '0');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `tipo_unidad`
--

CREATE TABLE `tipo_unidad` (
  `id_und_medida` bigint(20) NOT NULL,
  `unidad` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `tipo_unidad`
--

INSERT INTO `tipo_unidad` (`id_und_medida`, `unidad`) VALUES
(1, 'PAQUETE'),
(2, 'ATAUDES');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `tmpordencompra`
--

CREATE TABLE `tmpordencompra` (
  `id` bigint(20) NOT NULL,
  `cod_consumible` varchar(10) DEFAULT NULL,
  `existencias` bigint(20) DEFAULT NULL,
  `descripcion` varchar(255) DEFAULT NULL,
  `tipo_material` varchar(255) DEFAULT NULL,
  `stock_minimo` bigint(20) DEFAULT NULL,
  `stock_maximo` bigint(20) DEFAULT NULL,
  `unidad` varchar(100) DEFAULT NULL,
  `fech_movimiento` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `tmpresp_despachos`
--

CREATE TABLE `tmpresp_despachos` (
  `cedula` bigint(20) DEFAULT NULL,
  `nombre` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `tmpresp_despachos`
--

INSERT INTO `tmpresp_despachos` (`cedula`, `nombre`) VALUES
(16558965, 'JOSE PEREZ');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `tmp_salid_estant_solct`
--

CREATE TABLE `tmp_salid_estant_solct` (
  `cod_solicitud` bigint(20) DEFAULT NULL,
  `id_estantes` bigint(20) DEFAULT NULL,
  `cod_consumibles` varchar(10) DEFAULT NULL,
  `zona` text DEFAULT NULL,
  `estante` varchar(50) DEFAULT NULL,
  `rack` varchar(50) DEFAULT NULL,
  `nivel` varchar(50) DEFAULT NULL,
  `cantidad` bigint(20) DEFAULT NULL,
  `nro_trans` varchar(255) DEFAULT NULL,
  `fecha` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `tmp_salid_estant_solct`
--

INSERT INTO `tmp_salid_estant_solct` (`cod_solicitud`, `id_estantes`, `cod_consumibles`, `zona`, `estante`, `rack`, `nivel`, `cantidad`, `nro_trans`, `fecha`) VALUES
(2, 3, 'MB001', 'GALPON 1', NULL, NULL, NULL, 1, '2', '2026-07-20 18:50:53');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ubicasion_mat`
--

CREATE TABLE `ubicasion_mat` (
  `id` bigint(20) NOT NULL,
  `id_estantes` bigint(20) DEFAULT NULL,
  `fech_vencimiento` datetime DEFAULT NULL,
  `existencia` bigint(20) DEFAULT NULL,
  `id_cons_recibib` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `ubicasion_mat`
--

INSERT INTO `ubicasion_mat` (`id`, `id_estantes`, `fech_vencimiento`, `existencia`, `id_cons_recibib`) VALUES
(1, 1, NULL, 14, 1),
(2, 1, NULL, 10, 2),
(3, 2, NULL, 3, 2),
(4, 3, NULL, 149, 3);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `users`
--

CREATE TABLE `users` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `email` varchar(255) DEFAULT NULL,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `password` varchar(255) NOT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `document_type` enum('V','E','J','P','G') DEFAULT NULL,
  `document_number` varchar(255) DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `role` enum('admin','operator','viewer') NOT NULL DEFAULT 'operator',
  `remember_token` varchar(100) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `role_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `users`
--

INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `phone`, `document_type`, `document_number`, `is_active`, `role`, `remember_token`, `created_at`, `updated_at`, `role_id`) VALUES
(1, 'Luis Mariano', 'baezgregoric@gmail.com', NULL, '$2y$12$9/6ZQ8brspg1hnNypbsXUemXtHmgFas8VlEU.URgNQOuLxNj25RMe', NULL, 'V', '12557310', 1, 'admin', NULL, '2025-10-30 01:46:15', '2025-10-30 01:46:15', 1),
(1249, 'TRAILER GUARDIA NACIONAL KM10', 'daf2013TRAILERGUARDIANACIONALKM10@gmail.com', NULL, '$2y$12$9/6ZQ8brspg1hnNypbsXUemXtHmgFas8VlEU.URgNQOuLxNj25RMe', '04144749855', 'V', '555555', 1, 'operator', NULL, '2026-03-04 16:52:20', '2026-03-04 16:52:20', 1),
(1250, 'MANUEL ANTONIO PEREZ MENDEZ', 'daf2013MANUELANTONIOPEREZMENDEZ@gmail.com', NULL, '$2y$12$9/6ZQ8brspg1hnNypbsXUemXtHmgFas8VlEU.URgNQOuLxNj25RMe', '04241254981', 'V', '643140', 1, 'operator', NULL, '2026-03-04 16:52:49', '2026-03-04 16:52:49', 2),
(1251, 'JORDAN  DIAZ', 'daf2013JORDANDIAZ@gmail.com', NULL, '$2y$12$9/6ZQ8brspg1hnNypbsXUemXtHmgFas8VlEU.URgNQOuLxNj25RMe', '04141819381', 'V', '820151', 1, 'operator', NULL, '2026-03-04 16:52:59', '2026-03-04 16:52:59', 2),
(1252, 'MATERNIDAD J GREGORI HERNANDEZ', 'daf2013MATERNIDADJGREGORIHERNANDEZ@gmail.com', NULL, '$2y$12$9/6ZQ8brspg1hnNypbsXUemXtHmgFas8VlEU.URgNQOuLxNj25RMe', '04241706435', 'V', '888888', 1, 'operator', NULL, '2026-03-04 16:53:09', '2026-03-04 16:53:09', 3);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ventas_puerta`
--

CREATE TABLE `ventas_puerta` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `folio` varchar(50) DEFAULT NULL,
  `fallecido_nombre` varchar(150) NOT NULL,
  `fallecido_cedula` varchar(30) DEFAULT NULL,
  `fallecido_fecha_nac` date DEFAULT NULL,
  `fallecido_edad` smallint(5) UNSIGNED DEFAULT NULL,
  `causa_muerte` int(11) DEFAULT NULL,
  `nro_certificado_defuncion` varchar(100) DEFAULT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `ventas_puerta`
--

INSERT INTO `ventas_puerta` (`id`, `folio`, `fallecido_nombre`, `fallecido_cedula`, `fallecido_fecha_nac`, `fallecido_edad`, `causa_muerte`, `nro_certificado_defuncion`, `user_id`, `created_at`, `updated_at`) VALUES
(1, '125586', 'Jose nuñez', '26557311', '1995-02-15', 31, 1, '52457895588', 1, '2026-07-16 15:29:41', '2026-07-16 15:29:41');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ventas_puerta_cuentas`
--

CREATE TABLE `ventas_puerta_cuentas` (
  `codcuenta` bigint(20) UNSIGNED NOT NULL,
  `venta_puerta_id` bigint(20) UNSIGNED NOT NULL,
  `pagado` decimal(12,2) NOT NULL DEFAULT 0.00,
  `deuda` decimal(12,2) NOT NULL DEFAULT 0.00,
  `montoapagar` decimal(12,2) NOT NULL DEFAULT 0.00,
  `codstatuscuenta` bigint(20) UNSIGNED NOT NULL,
  `codmotivocuenta` bigint(20) UNSIGNED NOT NULL,
  `descuento` decimal(12,2) NOT NULL DEFAULT 0.00,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `ventas_puerta_cuentas`
--

INSERT INTO `ventas_puerta_cuentas` (`codcuenta`, `venta_puerta_id`, `pagado`, `deuda`, `montoapagar`, `codstatuscuenta`, `codmotivocuenta`, `descuento`, `created_at`, `updated_at`) VALUES
(1, 1, 33186.25, 17735.25, 50921.50, 3, 3, 0.00, '2026-07-17 18:58:34', '2026-07-17 18:58:34'),
(2, 1, 17735.25, 0.00, 17735.25, 2, 3, 0.00, '2026-07-17 19:09:04', '2026-07-17 19:09:04');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ventas_puerta_cuentaspagos`
--

CREATE TABLE `ventas_puerta_cuentaspagos` (
  `codcuentapago` bigint(20) UNSIGNED NOT NULL,
  `codpago` bigint(20) UNSIGNED NOT NULL,
  `codcuenta` bigint(20) UNSIGNED NOT NULL,
  `fechamespago` date DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `ventas_puerta_cuentaspagos`
--

INSERT INTO `ventas_puerta_cuentaspagos` (`codcuentapago`, `codpago`, `codcuenta`, `fechamespago`, `created_at`, `updated_at`) VALUES
(1, 1, 1, '2026-07-17', '2026-07-17 18:58:34', '2026-07-17 18:58:34'),
(2, 2, 2, '2026-07-17', '2026-07-17 19:09:04', '2026-07-17 19:09:04');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ventas_puerta_detallespagos`
--

CREATE TABLE `ventas_puerta_detallespagos` (
  `coddetallepago` bigint(20) UNSIGNED NOT NULL,
  `codformadepago` bigint(20) UNSIGNED NOT NULL,
  `montodetallepago` decimal(12,2) NOT NULL,
  `clavedebito` int(11) DEFAULT NULL,
  `codbancopago` bigint(20) UNSIGNED DEFAULT NULL,
  `numerodeposito` int(11) DEFAULT NULL,
  `nrotransferencia` int(11) DEFAULT NULL,
  `numerocheque` int(11) DEFAULT NULL,
  `claveconformacioncheque` varchar(50) DEFAULT NULL,
  `codpago` bigint(20) UNSIGNED NOT NULL,
  `observacion` varchar(255) DEFAULT NULL,
  `idusuario` bigint(20) UNSIGNED NOT NULL,
  `coddivisa` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `ventas_puerta_detallespagos`
--

INSERT INTO `ventas_puerta_detallespagos` (`coddetallepago`, `codformadepago`, `montodetallepago`, `clavedebito`, `codbancopago`, `numerodeposito`, `nrotransferencia`, `numerocheque`, `claveconformacioncheque`, `codpago`, `observacion`, `idusuario`, `coddivisa`, `created_at`, `updated_at`) VALUES
(1, 1, 15000.00, NULL, 1, NULL, NULL, NULL, '452369', 1, NULL, 1, 146, '2026-07-17 18:58:34', '2026-07-17 18:58:34'),
(2, 6, 25.00, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 1, 146, '2026-07-17 18:58:35', '2026-07-17 18:58:35'),
(3, 2, 17735.25, NULL, 8, NULL, 554878725, NULL, NULL, 2, NULL, 1, 146, '2026-07-17 19:09:04', '2026-07-17 19:09:04');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ventas_puerta_detalles_servicio`
--

CREATE TABLE `ventas_puerta_detalles_servicio` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `venta_puerta_id` bigint(20) UNSIGNED NOT NULL,
  `lugar_velacion` varchar(255) DEFAULT NULL,
  `domicilio` varchar(500) DEFAULT NULL,
  `ataud` varchar(255) DEFAULT NULL,
  `arreglo_floral` varchar(255) DEFAULT NULL,
  `lugar_retiro` varchar(255) DEFAULT NULL,
  `cementerio` varchar(255) DEFAULT NULL,
  `dia_velacion` date DEFAULT NULL,
  `salida_hora` datetime DEFAULT NULL,
  `observaciones` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `ventas_puerta_detalles_servicio`
--

INSERT INTO `ventas_puerta_detalles_servicio` (`id`, `venta_puerta_id`, `lugar_velacion`, `domicilio`, `ataud`, `arreglo_floral`, `lugar_retiro`, `cementerio`, `dia_velacion`, `salida_hora`, `observaciones`, `created_at`, `updated_at`) VALUES
(1, 1, 'En su vivienda', 'vivienda', '589588', 'SI', 'MORGUE HOSPITAL CENTRAL', 'del sur', '2026-07-17', '2026-07-21 15:30:00', 'Primera prueba de los registro de ventas', '2026-07-16 15:29:41', '2026-07-16 15:29:41');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ventas_puerta_pagos`
--

CREATE TABLE `ventas_puerta_pagos` (
  `codpago` bigint(20) UNSIGNED NOT NULL,
  `factura` varchar(50) DEFAULT NULL,
  `tipo_servicio` enum('POR PUERTA','ASEGURADO','OTRA FUNERARIA') DEFAULT NULL,
  `fechapago` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `monto` decimal(12,2) NOT NULL,
  `montoiva` decimal(12,2) NOT NULL DEFAULT 0.00,
  `monto_servicio_usd` decimal(12,2) DEFAULT NULL,
  `monto_servicio_bs` decimal(12,2) DEFAULT NULL,
  `de_contado` decimal(12,2) DEFAULT NULL,
  `abono` decimal(12,2) DEFAULT NULL,
  `restante` decimal(12,2) DEFAULT NULL,
  `observacion` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `ventas_puerta_pagos`
--

INSERT INTO `ventas_puerta_pagos` (`codpago`, `factura`, `tipo_servicio`, `fechapago`, `monto`, `montoiva`, `monto_servicio_usd`, `monto_servicio_bs`, `de_contado`, `abono`, `restante`, `observacion`, `created_at`, `updated_at`) VALUES
(1, '235689', 'POR PUERTA', '2026-07-17 19:18:22', 50921.50, 0.00, 70.00, 50921.50, 0.00, 33186.25, 17735.25, NULL, '2026-07-17 18:58:34', '2026-07-17 18:58:34'),
(2, '124578', 'POR PUERTA', '2026-07-17 19:18:34', 17735.25, 0.00, 24.38, 17735.25, 17735.25, 0.00, 0.00, 'Pago de saldo pendiente del abono #1', '2026-07-17 19:09:04', '2026-07-17 19:09:04');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ventas_puerta_personal_servicios`
--

CREATE TABLE `ventas_puerta_personal_servicios` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `venta_puerta_detalle_servicio_id` bigint(20) UNSIGNED NOT NULL,
  `document_type` enum('V','E','J','P','G') NOT NULL DEFAULT 'V',
  `cedula` int(11) NOT NULL,
  `nombres_apellidos` varchar(255) NOT NULL,
  `sexo` enum('M','F') DEFAULT NULL,
  `tipo_servicios` enum('Preparador','Retirador Cuerpo','Capillero') NOT NULL,
  `telefonos` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `placa_vehiculo` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `ventas_puerta_personal_servicios`
--

INSERT INTO `ventas_puerta_personal_servicios` (`id`, `venta_puerta_detalle_servicio_id`, `document_type`, `cedula`, `nombres_apellidos`, `sexo`, `tipo_servicios`, `telefonos`, `created_at`, `updated_at`, `placa_vehiculo`) VALUES
(1, 1, 'V', 235698574, 'jose manuel arias', 'M', 'Preparador', NULL, '2026-07-16 18:55:33', '2026-07-16 18:55:33', NULL),
(2, 1, 'V', 15558693, 'Manuel Alvarez', 'M', 'Retirador Cuerpo', '02125236589', '2026-07-16 18:57:30', '2026-07-31 09:43:26', 'AS589H1'),
(3, 1, 'V', 16856987, 'Rafa Hernandez', 'M', 'Capillero', NULL, '2026-07-16 18:58:25', '2026-07-16 18:58:25', NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ventas_puerta_responsables`
--

CREATE TABLE `ventas_puerta_responsables` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `venta_puerta_id` bigint(20) UNSIGNED NOT NULL,
  `nombre` varchar(150) DEFAULT NULL,
  `cedula` varchar(30) DEFAULT NULL,
  `direccion` varchar(500) DEFAULT NULL,
  `telefono_cantv` varchar(40) DEFAULT NULL,
  `telefono_celular` varchar(40) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Volcado de datos para la tabla `ventas_puerta_responsables`
--

INSERT INTO `ventas_puerta_responsables` (`id`, `venta_puerta_id`, `nombre`, `cedula`, `direccion`, `telefono_cantv`, `telefono_celular`, `created_at`, `updated_at`) VALUES
(1, 1, 'Manuel velazquez', '65896874', 'La pastora', '02125915263', '04125784196', '2026-07-16 15:29:41', '2026-07-16 15:29:41');

--
-- Índices para tablas volcadas
--

--
-- Indices de la tabla `adm_cat_actividades_economicas`
--
ALTER TABLE `adm_cat_actividades_economicas`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `adm_cat_actividades_economicas_codigo_unique` (`codigo`);

--
-- Indices de la tabla `adm_cat_sociedades`
--
ALTER TABLE `adm_cat_sociedades`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `adm_cat_sociedades_codigo_unique` (`codigo`);

--
-- Indices de la tabla `adm_cat_tipos_contribuyente`
--
ALTER TABLE `adm_cat_tipos_contribuyente`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `adm_cat_tipos_contribuyente_codigo_unique` (`codigo`);

--
-- Indices de la tabla `adm_empresas`
--
ALTER TABLE `adm_empresas`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `adm_empresas_codigo_unique` (`codigo`);

--
-- Indices de la tabla `adm_empresa_accionistas`
--
ALTER TABLE `adm_empresa_accionistas`
  ADD PRIMARY KEY (`id`),
  ADD KEY `adm_empresa_accionistas_empresa_id_index` (`empresa_id`);

--
-- Indices de la tabla `adm_empresa_capitales`
--
ALTER TABLE `adm_empresa_capitales`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `adm_empresa_capitales_empresa_id_unique` (`empresa_id`);

--
-- Indices de la tabla `adm_empresa_firmas`
--
ALTER TABLE `adm_empresa_firmas`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `adm_empresa_firmas_empresa_id_unique` (`empresa_id`);

--
-- Indices de la tabla `adm_empresa_integraciones`
--
ALTER TABLE `adm_empresa_integraciones`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `adm_empresa_integraciones_empresa_id_unique` (`empresa_id`),
  ADD KEY `adm_empresa_integraciones_cta_compras_cargo_id_foreign` (`cta_compras_cargo_id`),
  ADD KEY `adm_empresa_integraciones_cta_compras_cargo_exentos_id_foreign` (`cta_compras_cargo_exentos_id`),
  ADD KEY `adm_empresa_integraciones_cta_compras_cargo_igtf_id_foreign` (`cta_compras_cargo_igtf_id`),
  ADD KEY `adm_empresa_integraciones_cta_compras_iva_id_foreign` (`cta_compras_iva_id`),
  ADD KEY `adm_empresa_integraciones_cta_compras_iva_retencion_id_foreign` (`cta_compras_iva_retencion_id`),
  ADD KEY `adm_empresa_integraciones_cta_compras_abono_id_foreign` (`cta_compras_abono_id`),
  ADD KEY `adm_empresa_integraciones_cta_compras_abono_pend_id_foreign` (`cta_compras_abono_pend_id`),
  ADD KEY `adm_empresa_integraciones_cta_compras_retencion_islr_id_foreign` (`cta_compras_retencion_islr_id`),
  ADD KEY `adm_empresa_integraciones_cta_ventas_cargo_id_foreign` (`cta_ventas_cargo_id`),
  ADD KEY `adm_empresa_integraciones_cta_ventas_cargo_pend_id_foreign` (`cta_ventas_cargo_pend_id`),
  ADD KEY `adm_empresa_integraciones_cta_ventas_iva_id_foreign` (`cta_ventas_iva_id`),
  ADD KEY `adm_empresa_integraciones_cta_ventas_iva_retencion_id_foreign` (`cta_ventas_iva_retencion_id`),
  ADD KEY `adm_empresa_integraciones_cta_ventas_abono_id_foreign` (`cta_ventas_abono_id`),
  ADD KEY `adm_empresa_integraciones_cta_ventas_abono_exentos_id_foreign` (`cta_ventas_abono_exentos_id`),
  ADD KEY `adm_empresa_integraciones_cta_ventas_abono_igtf_id_foreign` (`cta_ventas_abono_igtf_id`),
  ADD KEY `adm_empresa_integraciones_cta_ventas_notas_credito_id_foreign` (`cta_ventas_notas_credito_id`);

--
-- Indices de la tabla `adm_empresa_ivas`
--
ALTER TABLE `adm_empresa_ivas`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `adm_empresa_ivas_empresa_id_unique` (`empresa_id`),
  ADD KEY `adm_empresa_ivas_tipo_contribuyente_id_foreign` (`tipo_contribuyente_id`);

--
-- Indices de la tabla `adm_empresa_juridicos`
--
ALTER TABLE `adm_empresa_juridicos`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `adm_empresa_juridicos_empresa_id_unique` (`empresa_id`);

--
-- Indices de la tabla `adm_empresa_mercantiles`
--
ALTER TABLE `adm_empresa_mercantiles`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `adm_empresa_mercantiles_empresa_id_unique` (`empresa_id`),
  ADD KEY `adm_empresa_mercantiles_sociedad_id_foreign` (`sociedad_id`),
  ADD KEY `adm_empresa_mercantiles_act_principal_id_foreign` (`act_principal_id`),
  ADD KEY `adm_empresa_mercantiles_act_secundaria_id_foreign` (`act_secundaria_id`);

--
-- Indices de la tabla `adm_empresa_usuarios_bloqueo`
--
ALTER TABLE `adm_empresa_usuarios_bloqueo`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `adm_emp_usr_bloqueo_unique` (`empresa_id`,`user_id`),
  ADD KEY `adm_empresa_usuarios_bloqueo_user_id_foreign` (`user_id`);

--
-- Indices de la tabla `adm_plan_cuentas`
--
ALTER TABLE `adm_plan_cuentas`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `adm_plan_cuentas_codigo_unique` (`codigo`);

--
-- Indices de la tabla `almacenes`
--
ALTER TABLE `almacenes`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `auditoria`
--
ALTER TABLE `auditoria`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `bancos`
--
ALTER TABLE `bancos`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bancos_codbanco_unique` (`codbanco`);

--
-- Indices de la tabla `banks`
--
ALTER TABLE `banks`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `banks_code_unique` (`code`);

--
-- Indices de la tabla `bcv_rates`
--
ALTER TABLE `bcv_rates`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bcv_rates_date_is_active_unique` (`date`,`is_active`);

--
-- Indices de la tabla `beneficiarios`
--
ALTER TABLE `beneficiarios`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `causa_deceso`
--
ALTER TABLE `causa_deceso`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `clientes`
--
ALTER TABLE `clientes`
  ADD PRIMARY KEY (`cod_cliente`);

--
-- Indices de la tabla `clients`
--
ALTER TABLE `clients`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `clients_document_type_document_number_unique` (`document_type`,`document_number`),
  ADD KEY `clients_user_id_foreign` (`user_id`);

--
-- Indices de la tabla `cobradores`
--
ALTER TABLE `cobradores`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `cobradores_cedula_unique` (`cedula`);

--
-- Indices de la tabla `cobradores_clientes`
--
ALTER TABLE `cobradores_clientes`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `cobradores_clientes_id_cobrador_id_cliente_unique` (`id_cobrador`,`id_cliente`),
  ADD KEY `cobradores_clientes_id_cliente_foreign` (`id_cliente`);

--
-- Indices de la tabla `contracts`
--
ALTER TABLE `contracts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `contracts_client_id_foreign` (`client_id`);

--
-- Indices de la tabla `cuentas`
--
ALTER TABLE `cuentas`
  ADD PRIMARY KEY (`codcuenta`),
  ADD KEY `cuentas_codcontrato_foreign` (`codcontrato`),
  ADD KEY `cuentas_codstatuscuenta_foreign` (`codstatuscuenta`),
  ADD KEY `cuentas_codmotivocuenta_foreign` (`codmotivocuenta`);

--
-- Indices de la tabla `cuentaspagos`
--
ALTER TABLE `cuentaspagos`
  ADD PRIMARY KEY (`codcuentapago`),
  ADD UNIQUE KEY `cuentaspagos_codpago_codcuenta_unique` (`codpago`,`codcuenta`),
  ADD KEY `cuentaspagos_codcuenta_foreign` (`codcuenta`);

--
-- Indices de la tabla `detallespagos`
--
ALTER TABLE `detallespagos`
  ADD PRIMARY KEY (`coddetallepago`),
  ADD KEY `detallespagos_codformadepago_foreign` (`codformadepago`),
  ADD KEY `detallespagos_codbancopago_foreign` (`codbancopago`),
  ADD KEY `detallespagos_codpago_foreign` (`codpago`),
  ADD KEY `detallespagos_idusuario_foreign` (`idusuario`),
  ADD KEY `detallespagos_coddivisa_foreign` (`coddivisa`);

--
-- Indices de la tabla `enlace_bienes`
--
ALTER TABLE `enlace_bienes`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `estantes`
--
ALTER TABLE `estantes`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `estatusdecuentas`
--
ALTER TABLE `estatusdecuentas`
  ADD PRIMARY KEY (`codestatuscuenta`);

--
-- Indices de la tabla `failed_jobs`
--
ALTER TABLE `failed_jobs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);

--
-- Indices de la tabla `formasdepago`
--
ALTER TABLE `formasdepago`
  ADD PRIMARY KEY (`codformapago`);

--
-- Indices de la tabla `hist_orden_compra`
--
ALTER TABLE `hist_orden_compra`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `hist_salid_estant_solct`
--
ALTER TABLE `hist_salid_estant_solct`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `invoices`
--
ALTER TABLE `invoices`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `invoices_invoice_number_unique` (`invoice_number`),
  ADD KEY `invoices_contract_id_foreign` (`contract_id`);

--
-- Indices de la tabla `invt_consumibles`
--
ALTER TABLE `invt_consumibles`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `iva`
--
ALTER TABLE `iva`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `menus`
--
ALTER TABLE `menus`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `migrations`
--
ALTER TABLE `migrations`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `motivosdecuentas`
--
ALTER TABLE `motivosdecuentas`
  ADD PRIMARY KEY (`codmotivopago`);

--
-- Indices de la tabla `movim_cons_recibido`
--
ALTER TABLE `movim_cons_recibido`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `movim_stock`
--
ALTER TABLE `movim_stock`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `mov_solicitudes`
--
ALTER TABLE `mov_solicitudes`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `nota_entrega`
--
ALTER TABLE `nota_entrega`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `numerador_cremacion`
--
ALTER TABLE `numerador_cremacion`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `numerador_prevision`
--
ALTER TABLE `numerador_prevision`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `observ_ajustes`
--
ALTER TABLE `observ_ajustes`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `observ_consumible`
--
ALTER TABLE `observ_consumible`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `observ_desincoorporados`
--
ALTER TABLE `observ_desincoorporados`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `observ_devolucion`
--
ALTER TABLE `observ_devolucion`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `observ_incorporacion`
--
ALTER TABLE `observ_incorporacion`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `pagos`
--
ALTER TABLE `pagos`
  ADD PRIMARY KEY (`codpago`);

--
-- Indices de la tabla `paquetes`
--
ALTER TABLE `paquetes`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `password_reset_tokens`
--
ALTER TABLE `password_reset_tokens`
  ADD PRIMARY KEY (`email`);

--
-- Indices de la tabla `payments`
--
ALTER TABLE `payments`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `payments_payment_number_unique` (`payment_number`),
  ADD KEY `payments_client_id_foreign` (`client_id`),
  ADD KEY `payments_contract_id_foreign` (`contract_id`),
  ADD KEY `payments_invoice_id_foreign` (`invoice_id`),
  ADD KEY `payments_user_id_foreign` (`user_id`),
  ADD KEY `payments_bank_id_foreign` (`bank_id`);

--
-- Indices de la tabla `permissions`
--
ALTER TABLE `permissions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `permissions_nombre_unique` (`nombre`),
  ADD UNIQUE KEY `permissions_slug_unique` (`slug`);

--
-- Indices de la tabla `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`);

--
-- Indices de la tabla `personas_deposito`
--
ALTER TABLE `personas_deposito`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `proveedores`
--
ALTER TABLE `proveedores`
  ADD PRIMARY KEY (`cod_proveedor`);

--
-- Indices de la tabla `resp_depost_despacho`
--
ALTER TABLE `resp_depost_despacho`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `roles_nombre_unique` (`nombre`);

--
-- Indices de la tabla `role_menu`
--
ALTER TABLE `role_menu`
  ADD PRIMARY KEY (`id`),
  ADD KEY `role_menu_role_id_foreign` (`role_id`),
  ADD KEY `role_menu_menu_id_foreign` (`menu_id`);

--
-- Indices de la tabla `role_permission`
--
ALTER TABLE `role_permission`
  ADD PRIMARY KEY (`id`),
  ADD KEY `role_permission_role_id_foreign` (`role_id`),
  ADD KEY `role_permission_permission_id_foreign` (`permission_id`);

--
-- Indices de la tabla `solicitudes`
--
ALTER TABLE `solicitudes`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `telefonos`
--
ALTER TABLE `telefonos`
  ADD PRIMARY KEY (`id`),
  ADD KEY `telefonos_id_cliente_foreign` (`id_cliente`);

--
-- Indices de la tabla `telefonos_cobradores`
--
ALTER TABLE `telefonos_cobradores`
  ADD PRIMARY KEY (`id`),
  ADD KEY `telefonos_cobradores_id_cobrador_foreign` (`id_cobrador`);

--
-- Indices de la tabla `tipo_consumibles`
--
ALTER TABLE `tipo_consumibles`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `tipo_unidad`
--
ALTER TABLE `tipo_unidad`
  ADD PRIMARY KEY (`id_und_medida`);

--
-- Indices de la tabla `tmpordencompra`
--
ALTER TABLE `tmpordencompra`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `ubicasion_mat`
--
ALTER TABLE `ubicasion_mat`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_email_unique` (`email`);

--
-- Indices de la tabla `ventas_puerta`
--
ALTER TABLE `ventas_puerta`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ventas_puerta_folio_index` (`folio`),
  ADD KEY `ventas_puerta_user_id_index` (`user_id`);

--
-- Indices de la tabla `ventas_puerta_cuentas`
--
ALTER TABLE `ventas_puerta_cuentas`
  ADD PRIMARY KEY (`codcuenta`),
  ADD KEY `ventas_puerta_cuentas_venta_puerta_id_foreign` (`venta_puerta_id`),
  ADD KEY `ventas_puerta_cuentas_codstatuscuenta_foreign` (`codstatuscuenta`),
  ADD KEY `ventas_puerta_cuentas_codmotivocuenta_foreign` (`codmotivocuenta`);

--
-- Indices de la tabla `ventas_puerta_cuentaspagos`
--
ALTER TABLE `ventas_puerta_cuentaspagos`
  ADD PRIMARY KEY (`codcuentapago`),
  ADD UNIQUE KEY `ventas_puerta_cuentaspagos_codpago_codcuenta_unique` (`codpago`,`codcuenta`),
  ADD KEY `ventas_puerta_cuentaspagos_codcuenta_foreign` (`codcuenta`);

--
-- Indices de la tabla `ventas_puerta_detallespagos`
--
ALTER TABLE `ventas_puerta_detallespagos`
  ADD PRIMARY KEY (`coddetallepago`),
  ADD KEY `ventas_puerta_detallespagos_codformadepago_foreign` (`codformadepago`),
  ADD KEY `ventas_puerta_detallespagos_codbancopago_foreign` (`codbancopago`),
  ADD KEY `ventas_puerta_detallespagos_codpago_foreign` (`codpago`),
  ADD KEY `ventas_puerta_detallespagos_idusuario_foreign` (`idusuario`),
  ADD KEY `ventas_puerta_detallespagos_coddivisa_foreign` (`coddivisa`);

--
-- Indices de la tabla `ventas_puerta_detalles_servicio`
--
ALTER TABLE `ventas_puerta_detalles_servicio`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `ventas_puerta_detalles_servicio_venta_puerta_id_unique` (`venta_puerta_id`);

--
-- Indices de la tabla `ventas_puerta_pagos`
--
ALTER TABLE `ventas_puerta_pagos`
  ADD PRIMARY KEY (`codpago`);

--
-- Indices de la tabla `ventas_puerta_personal_servicios`
--
ALTER TABLE `ventas_puerta_personal_servicios`
  ADD PRIMARY KEY (`id`),
  ADD KEY `vp_personal_detalle_idx` (`venta_puerta_detalle_servicio_id`);

--
-- Indices de la tabla `ventas_puerta_responsables`
--
ALTER TABLE `ventas_puerta_responsables`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `ventas_puerta_responsables_venta_puerta_id_unique` (`venta_puerta_id`);

--
-- AUTO_INCREMENT de las tablas volcadas
--

--
-- AUTO_INCREMENT de la tabla `adm_cat_actividades_economicas`
--
ALTER TABLE `adm_cat_actividades_economicas`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `adm_cat_sociedades`
--
ALTER TABLE `adm_cat_sociedades`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `adm_cat_tipos_contribuyente`
--
ALTER TABLE `adm_cat_tipos_contribuyente`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `adm_empresas`
--
ALTER TABLE `adm_empresas`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `adm_empresa_accionistas`
--
ALTER TABLE `adm_empresa_accionistas`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `adm_empresa_capitales`
--
ALTER TABLE `adm_empresa_capitales`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `adm_empresa_firmas`
--
ALTER TABLE `adm_empresa_firmas`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `adm_empresa_integraciones`
--
ALTER TABLE `adm_empresa_integraciones`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `adm_empresa_ivas`
--
ALTER TABLE `adm_empresa_ivas`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `adm_empresa_juridicos`
--
ALTER TABLE `adm_empresa_juridicos`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `adm_empresa_mercantiles`
--
ALTER TABLE `adm_empresa_mercantiles`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `adm_empresa_usuarios_bloqueo`
--
ALTER TABLE `adm_empresa_usuarios_bloqueo`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `adm_plan_cuentas`
--
ALTER TABLE `adm_plan_cuentas`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `almacenes`
--
ALTER TABLE `almacenes`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `auditoria`
--
ALTER TABLE `auditoria`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=237;

--
-- AUTO_INCREMENT de la tabla `bancos`
--
ALTER TABLE `bancos`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;

--
-- AUTO_INCREMENT de la tabla `banks`
--
ALTER TABLE `banks`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;

--
-- AUTO_INCREMENT de la tabla `bcv_rates`
--
ALTER TABLE `bcv_rates`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=156;

--
-- AUTO_INCREMENT de la tabla `beneficiarios`
--
ALTER TABLE `beneficiarios`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT de la tabla `causa_deceso`
--
ALTER TABLE `causa_deceso`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `clientes`
--
ALTER TABLE `clientes`
  MODIFY `cod_cliente` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `clients`
--
ALTER TABLE `clients`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1494;

--
-- AUTO_INCREMENT de la tabla `cobradores`
--
ALTER TABLE `cobradores`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `cobradores_clientes`
--
ALTER TABLE `cobradores_clientes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `contracts`
--
ALTER TABLE `contracts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1487;

--
-- AUTO_INCREMENT de la tabla `cuentas`
--
ALTER TABLE `cuentas`
  MODIFY `codcuenta` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT de la tabla `cuentaspagos`
--
ALTER TABLE `cuentaspagos`
  MODIFY `codcuentapago` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT de la tabla `detallespagos`
--
ALTER TABLE `detallespagos`
  MODIFY `coddetallepago` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT de la tabla `enlace_bienes`
--
ALTER TABLE `enlace_bienes`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `estantes`
--
ALTER TABLE `estantes`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT de la tabla `estatusdecuentas`
--
ALTER TABLE `estatusdecuentas`
  MODIFY `codestatuscuenta` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `formasdepago`
--
ALTER TABLE `formasdepago`
  MODIFY `codformapago` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT de la tabla `hist_orden_compra`
--
ALTER TABLE `hist_orden_compra`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `hist_salid_estant_solct`
--
ALTER TABLE `hist_salid_estant_solct`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT de la tabla `invoices`
--
ALTER TABLE `invoices`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6902;

--
-- AUTO_INCREMENT de la tabla `invt_consumibles`
--
ALTER TABLE `invt_consumibles`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `iva`
--
ALTER TABLE `iva`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `menus`
--
ALTER TABLE `menus`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;

--
-- AUTO_INCREMENT de la tabla `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=58;

--
-- AUTO_INCREMENT de la tabla `motivosdecuentas`
--
ALTER TABLE `motivosdecuentas`
  MODIFY `codmotivopago` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `movim_cons_recibido`
--
ALTER TABLE `movim_cons_recibido`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT de la tabla `movim_stock`
--
ALTER TABLE `movim_stock`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT de la tabla `mov_solicitudes`
--
ALTER TABLE `mov_solicitudes`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `nota_entrega`
--
ALTER TABLE `nota_entrega`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT de la tabla `numerador_cremacion`
--
ALTER TABLE `numerador_cremacion`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `numerador_prevision`
--
ALTER TABLE `numerador_prevision`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT de la tabla `observ_ajustes`
--
ALTER TABLE `observ_ajustes`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `observ_consumible`
--
ALTER TABLE `observ_consumible`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `observ_desincoorporados`
--
ALTER TABLE `observ_desincoorporados`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `observ_devolucion`
--
ALTER TABLE `observ_devolucion`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `observ_incorporacion`
--
ALTER TABLE `observ_incorporacion`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `pagos`
--
ALTER TABLE `pagos`
  MODIFY `codpago` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT de la tabla `paquetes`
--
ALTER TABLE `paquetes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `payments`
--
ALTER TABLE `payments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=784;

--
-- AUTO_INCREMENT de la tabla `permissions`
--
ALTER TABLE `permissions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT de la tabla `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `personas_deposito`
--
ALTER TABLE `personas_deposito`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `proveedores`
--
ALTER TABLE `proveedores`
  MODIFY `cod_proveedor` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `resp_depost_despacho`
--
ALTER TABLE `resp_depost_despacho`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `roles`
--
ALTER TABLE `roles`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `role_menu`
--
ALTER TABLE `role_menu`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;

--
-- AUTO_INCREMENT de la tabla `role_permission`
--
ALTER TABLE `role_permission`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT de la tabla `solicitudes`
--
ALTER TABLE `solicitudes`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `telefonos`
--
ALTER TABLE `telefonos`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT de la tabla `telefonos_cobradores`
--
ALTER TABLE `telefonos_cobradores`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `tipo_consumibles`
--
ALTER TABLE `tipo_consumibles`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT de la tabla `tipo_unidad`
--
ALTER TABLE `tipo_unidad`
  MODIFY `id_und_medida` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `tmpordencompra`
--
ALTER TABLE `tmpordencompra`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `ubicasion_mat`
--
ALTER TABLE `ubicasion_mat`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT de la tabla `users`
--
ALTER TABLE `users`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2739;

--
-- AUTO_INCREMENT de la tabla `ventas_puerta`
--
ALTER TABLE `ventas_puerta`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `ventas_puerta_cuentas`
--
ALTER TABLE `ventas_puerta_cuentas`
  MODIFY `codcuenta` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `ventas_puerta_cuentaspagos`
--
ALTER TABLE `ventas_puerta_cuentaspagos`
  MODIFY `codcuentapago` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `ventas_puerta_detallespagos`
--
ALTER TABLE `ventas_puerta_detallespagos`
  MODIFY `coddetallepago` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `ventas_puerta_detalles_servicio`
--
ALTER TABLE `ventas_puerta_detalles_servicio`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `ventas_puerta_pagos`
--
ALTER TABLE `ventas_puerta_pagos`
  MODIFY `codpago` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `ventas_puerta_personal_servicios`
--
ALTER TABLE `ventas_puerta_personal_servicios`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `ventas_puerta_responsables`
--
ALTER TABLE `ventas_puerta_responsables`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- Restricciones para tablas volcadas
--

--
-- Filtros para la tabla `adm_empresa_accionistas`
--
ALTER TABLE `adm_empresa_accionistas`
  ADD CONSTRAINT `adm_empresa_accionistas_empresa_id_foreign` FOREIGN KEY (`empresa_id`) REFERENCES `adm_empresas` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `adm_empresa_capitales`
--
ALTER TABLE `adm_empresa_capitales`
  ADD CONSTRAINT `adm_empresa_capitales_empresa_id_foreign` FOREIGN KEY (`empresa_id`) REFERENCES `adm_empresas` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `adm_empresa_firmas`
--
ALTER TABLE `adm_empresa_firmas`
  ADD CONSTRAINT `adm_empresa_firmas_empresa_id_foreign` FOREIGN KEY (`empresa_id`) REFERENCES `adm_empresas` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `adm_empresa_integraciones`
--
ALTER TABLE `adm_empresa_integraciones`
  ADD CONSTRAINT `adm_empresa_integraciones_cta_compras_abono_id_foreign` FOREIGN KEY (`cta_compras_abono_id`) REFERENCES `adm_plan_cuentas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_integraciones_cta_compras_abono_pend_id_foreign` FOREIGN KEY (`cta_compras_abono_pend_id`) REFERENCES `adm_plan_cuentas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_integraciones_cta_compras_cargo_exentos_id_foreign` FOREIGN KEY (`cta_compras_cargo_exentos_id`) REFERENCES `adm_plan_cuentas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_integraciones_cta_compras_cargo_id_foreign` FOREIGN KEY (`cta_compras_cargo_id`) REFERENCES `adm_plan_cuentas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_integraciones_cta_compras_cargo_igtf_id_foreign` FOREIGN KEY (`cta_compras_cargo_igtf_id`) REFERENCES `adm_plan_cuentas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_integraciones_cta_compras_iva_id_foreign` FOREIGN KEY (`cta_compras_iva_id`) REFERENCES `adm_plan_cuentas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_integraciones_cta_compras_iva_retencion_id_foreign` FOREIGN KEY (`cta_compras_iva_retencion_id`) REFERENCES `adm_plan_cuentas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_integraciones_cta_compras_retencion_islr_id_foreign` FOREIGN KEY (`cta_compras_retencion_islr_id`) REFERENCES `adm_plan_cuentas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_integraciones_cta_ventas_abono_exentos_id_foreign` FOREIGN KEY (`cta_ventas_abono_exentos_id`) REFERENCES `adm_plan_cuentas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_integraciones_cta_ventas_abono_id_foreign` FOREIGN KEY (`cta_ventas_abono_id`) REFERENCES `adm_plan_cuentas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_integraciones_cta_ventas_abono_igtf_id_foreign` FOREIGN KEY (`cta_ventas_abono_igtf_id`) REFERENCES `adm_plan_cuentas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_integraciones_cta_ventas_cargo_id_foreign` FOREIGN KEY (`cta_ventas_cargo_id`) REFERENCES `adm_plan_cuentas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_integraciones_cta_ventas_cargo_pend_id_foreign` FOREIGN KEY (`cta_ventas_cargo_pend_id`) REFERENCES `adm_plan_cuentas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_integraciones_cta_ventas_iva_id_foreign` FOREIGN KEY (`cta_ventas_iva_id`) REFERENCES `adm_plan_cuentas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_integraciones_cta_ventas_iva_retencion_id_foreign` FOREIGN KEY (`cta_ventas_iva_retencion_id`) REFERENCES `adm_plan_cuentas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_integraciones_cta_ventas_notas_credito_id_foreign` FOREIGN KEY (`cta_ventas_notas_credito_id`) REFERENCES `adm_plan_cuentas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_integraciones_empresa_id_foreign` FOREIGN KEY (`empresa_id`) REFERENCES `adm_empresas` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `adm_empresa_ivas`
--
ALTER TABLE `adm_empresa_ivas`
  ADD CONSTRAINT `adm_empresa_ivas_empresa_id_foreign` FOREIGN KEY (`empresa_id`) REFERENCES `adm_empresas` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `adm_empresa_ivas_tipo_contribuyente_id_foreign` FOREIGN KEY (`tipo_contribuyente_id`) REFERENCES `adm_cat_tipos_contribuyente` (`id`) ON DELETE SET NULL;

--
-- Filtros para la tabla `adm_empresa_juridicos`
--
ALTER TABLE `adm_empresa_juridicos`
  ADD CONSTRAINT `adm_empresa_juridicos_empresa_id_foreign` FOREIGN KEY (`empresa_id`) REFERENCES `adm_empresas` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `adm_empresa_mercantiles`
--
ALTER TABLE `adm_empresa_mercantiles`
  ADD CONSTRAINT `adm_empresa_mercantiles_act_principal_id_foreign` FOREIGN KEY (`act_principal_id`) REFERENCES `adm_cat_actividades_economicas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_mercantiles_act_secundaria_id_foreign` FOREIGN KEY (`act_secundaria_id`) REFERENCES `adm_cat_actividades_economicas` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `adm_empresa_mercantiles_empresa_id_foreign` FOREIGN KEY (`empresa_id`) REFERENCES `adm_empresas` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `adm_empresa_mercantiles_sociedad_id_foreign` FOREIGN KEY (`sociedad_id`) REFERENCES `adm_cat_sociedades` (`id`) ON DELETE SET NULL;

--
-- Filtros para la tabla `adm_empresa_usuarios_bloqueo`
--
ALTER TABLE `adm_empresa_usuarios_bloqueo`
  ADD CONSTRAINT `adm_empresa_usuarios_bloqueo_empresa_id_foreign` FOREIGN KEY (`empresa_id`) REFERENCES `adm_empresas` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `adm_empresa_usuarios_bloqueo_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `clients`
--
ALTER TABLE `clients`
  ADD CONSTRAINT `clients_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL;

--
-- Filtros para la tabla `cobradores_clientes`
--
ALTER TABLE `cobradores_clientes`
  ADD CONSTRAINT `cobradores_clientes_id_cliente_foreign` FOREIGN KEY (`id_cliente`) REFERENCES `clients` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `cobradores_clientes_id_cobrador_foreign` FOREIGN KEY (`id_cobrador`) REFERENCES `cobradores` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `contracts`
--
ALTER TABLE `contracts`
  ADD CONSTRAINT `contracts_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `cuentas`
--
ALTER TABLE `cuentas`
  ADD CONSTRAINT `cuentas_codcontrato_foreign` FOREIGN KEY (`codcontrato`) REFERENCES `contracts` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `cuentas_codmotivocuenta_foreign` FOREIGN KEY (`codmotivocuenta`) REFERENCES `motivosdecuentas` (`codmotivopago`),
  ADD CONSTRAINT `cuentas_codstatuscuenta_foreign` FOREIGN KEY (`codstatuscuenta`) REFERENCES `estatusdecuentas` (`codestatuscuenta`);

--
-- Filtros para la tabla `cuentaspagos`
--
ALTER TABLE `cuentaspagos`
  ADD CONSTRAINT `cuentaspagos_codcuenta_foreign` FOREIGN KEY (`codcuenta`) REFERENCES `cuentas` (`codcuenta`) ON DELETE CASCADE,
  ADD CONSTRAINT `cuentaspagos_codpago_foreign` FOREIGN KEY (`codpago`) REFERENCES `pagos` (`codpago`) ON DELETE CASCADE;

--
-- Filtros para la tabla `detallespagos`
--
ALTER TABLE `detallespagos`
  ADD CONSTRAINT `detallespagos_codbancopago_foreign` FOREIGN KEY (`codbancopago`) REFERENCES `bancos` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `detallespagos_coddivisa_foreign` FOREIGN KEY (`coddivisa`) REFERENCES `bcv_rates` (`id`),
  ADD CONSTRAINT `detallespagos_codformadepago_foreign` FOREIGN KEY (`codformadepago`) REFERENCES `formasdepago` (`codformapago`),
  ADD CONSTRAINT `detallespagos_codpago_foreign` FOREIGN KEY (`codpago`) REFERENCES `pagos` (`codpago`) ON DELETE CASCADE,
  ADD CONSTRAINT `detallespagos_idusuario_foreign` FOREIGN KEY (`idusuario`) REFERENCES `users` (`id`);

--
-- Filtros para la tabla `invoices`
--
ALTER TABLE `invoices`
  ADD CONSTRAINT `invoices_contract_id_foreign` FOREIGN KEY (`contract_id`) REFERENCES `contracts` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `payments`
--
ALTER TABLE `payments`
  ADD CONSTRAINT `payments_bank_id_foreign` FOREIGN KEY (`bank_id`) REFERENCES `banks` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `payments_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payments_contract_id_foreign` FOREIGN KEY (`contract_id`) REFERENCES `contracts` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payments_invoice_id_foreign` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `payments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL;

--
-- Filtros para la tabla `role_menu`
--
ALTER TABLE `role_menu`
  ADD CONSTRAINT `role_menu_menu_id_foreign` FOREIGN KEY (`menu_id`) REFERENCES `menus` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `role_menu_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `role_permission`
--
ALTER TABLE `role_permission`
  ADD CONSTRAINT `role_permission_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `role_permission_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `telefonos`
--
ALTER TABLE `telefonos`
  ADD CONSTRAINT `telefonos_id_cliente_foreign` FOREIGN KEY (`id_cliente`) REFERENCES `clients` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `telefonos_cobradores`
--
ALTER TABLE `telefonos_cobradores`
  ADD CONSTRAINT `telefonos_cobradores_id_cobrador_foreign` FOREIGN KEY (`id_cobrador`) REFERENCES `cobradores` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `ventas_puerta_cuentas`
--
ALTER TABLE `ventas_puerta_cuentas`
  ADD CONSTRAINT `ventas_puerta_cuentas_codmotivocuenta_foreign` FOREIGN KEY (`codmotivocuenta`) REFERENCES `motivosdecuentas` (`codmotivopago`),
  ADD CONSTRAINT `ventas_puerta_cuentas_codstatuscuenta_foreign` FOREIGN KEY (`codstatuscuenta`) REFERENCES `estatusdecuentas` (`codestatuscuenta`),
  ADD CONSTRAINT `ventas_puerta_cuentas_venta_puerta_id_foreign` FOREIGN KEY (`venta_puerta_id`) REFERENCES `ventas_puerta` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `ventas_puerta_cuentaspagos`
--
ALTER TABLE `ventas_puerta_cuentaspagos`
  ADD CONSTRAINT `ventas_puerta_cuentaspagos_codcuenta_foreign` FOREIGN KEY (`codcuenta`) REFERENCES `ventas_puerta_cuentas` (`codcuenta`) ON DELETE CASCADE,
  ADD CONSTRAINT `ventas_puerta_cuentaspagos_codpago_foreign` FOREIGN KEY (`codpago`) REFERENCES `ventas_puerta_pagos` (`codpago`) ON DELETE CASCADE;

--
-- Filtros para la tabla `ventas_puerta_detallespagos`
--
ALTER TABLE `ventas_puerta_detallespagos`
  ADD CONSTRAINT `ventas_puerta_detallespagos_codbancopago_foreign` FOREIGN KEY (`codbancopago`) REFERENCES `bancos` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `ventas_puerta_detallespagos_coddivisa_foreign` FOREIGN KEY (`coddivisa`) REFERENCES `bcv_rates` (`id`),
  ADD CONSTRAINT `ventas_puerta_detallespagos_codformadepago_foreign` FOREIGN KEY (`codformadepago`) REFERENCES `formasdepago` (`codformapago`),
  ADD CONSTRAINT `ventas_puerta_detallespagos_codpago_foreign` FOREIGN KEY (`codpago`) REFERENCES `ventas_puerta_pagos` (`codpago`) ON DELETE CASCADE,
  ADD CONSTRAINT `ventas_puerta_detallespagos_idusuario_foreign` FOREIGN KEY (`idusuario`) REFERENCES `users` (`id`);

--
-- Filtros para la tabla `ventas_puerta_detalles_servicio`
--
ALTER TABLE `ventas_puerta_detalles_servicio`
  ADD CONSTRAINT `ventas_puerta_detalles_servicio_venta_puerta_id_foreign` FOREIGN KEY (`venta_puerta_id`) REFERENCES `ventas_puerta` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `ventas_puerta_personal_servicios`
--
ALTER TABLE `ventas_puerta_personal_servicios`
  ADD CONSTRAINT `vp_personal_detalle_fk` FOREIGN KEY (`venta_puerta_detalle_servicio_id`) REFERENCES `ventas_puerta_detalles_servicio` (`id`) ON DELETE CASCADE;

--
-- Filtros para la tabla `ventas_puerta_responsables`
--
ALTER TABLE `ventas_puerta_responsables`
  ADD CONSTRAINT `ventas_puerta_responsables_venta_puerta_id_foreign` FOREIGN KEY (`venta_puerta_id`) REFERENCES `ventas_puerta` (`id`) ON DELETE CASCADE;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
