-- Table structure for tra_translado
-- ----------------------------
CREATE TABLE `tra_translado`  (
  `tra_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal del translado',
  `tra_id_moi_sal` int(11) NOT NULL COMMENT 'Id movimiento de salida',
  `tra_id_trp` int(11) NULL DEFAULT NULL COMMENT 'Llave principal del translado pendiente',
  `tra_id_moi_ent` int(11) NOT NULL COMMENT 'Id movimiento de entrada',
  `tra_fecha_translado` datetime NOT NULL COMMENT 'Fecha del translado',
  `tra_descripcion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
  `tra_id_tip` int(11) NULL DEFAULT NULL,
  `tra_correlativo` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'correlativo del translado',
  `tra_estado` int(11) NOT NULL COMMENT '0=inactivo, 1=activo',
  `tra_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `tra_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `tra_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `tra_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`tra_id`) USING BTREE,
  INDEX `fk_tra_id_trp`(`tra_id_trp` ASC) USING BTREE,
  CONSTRAINT `fk_tra_id_trp` FOREIGN KEY (`tra_id_trp`) REFERENCES `trp_traslado_pendiente` (`trp_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Translados de inventario' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of tra_translado
-- ----------------------------
INSERT INTO `tra_translado` VALUES (1, 6, NULL, 7, '2022-01-18 11:56:59', NULL, 3, '00001', 1, 1, '2022-01-18 11:56:59', 1, '2022-01-18 11:56:59');
INSERT INTO `tra_translado` VALUES (2, 17, NULL, 18, '2023-01-13 11:24:49', NULL, 3, '00002', 1, 1, '2023-01-13 11:24:49', 1, '2023-01-13 11:24:49');
INSERT INTO `tra_translado` VALUES (3, 26, NULL, 27, '2023-05-19 09:25:37', NULL, 3, '00003', 1, 1, '2023-05-19 09:25:38', 1, '2023-05-19 09:25:38');
INSERT INTO `tra_translado` VALUES (4, 43, NULL, 44, '2023-05-26 11:36:21', 'Traslado abastecimiento', 3, '00004', 1, 1, '2023-05-26 11:36:21', 1, '2023-05-26 11:36:21');
INSERT INTO `tra_translado` VALUES (5, 85, NULL, 86, '2024-06-19 10:55:50', NULL, 3, '00005', 1, 1, '2024-06-19 10:55:50', 1, '2024-06-19 10:55:50');
INSERT INTO `tra_translado` VALUES (6, 87, NULL, 88, '2024-06-19 10:55:51', NULL, 3, '00006', 1, 1, '2024-06-19 10:55:51', 1, '2024-06-19 10:55:51');
INSERT INTO `tra_translado` VALUES (7, 95, NULL, 96, '2024-07-02 09:56:48', NULL, 3, '00007', 1, 1, '2024-07-02 09:56:48', 1, '2024-07-02 09:56:48');
INSERT INTO `tra_translado` VALUES (8, 144, NULL, 145, '2024-07-16 11:35:12', NULL, 3, '00008', 1, 1, '2024-07-16 11:35:12', 1, '2024-07-16 11:35:12');
INSERT INTO `tra_translado` VALUES (9, 148, NULL, 149, '2024-07-29 10:46:10', 'traslado por abastecimiento', 3, '00009', 1, 1, '2024-07-29 10:46:10', 1, '2024-07-29 10:46:10');
INSERT INTO `tra_translado` VALUES (10, 214, NULL, 215, '2024-08-14 11:41:22', NULL, 3, '00010', 1, 1, '2024-08-14 11:41:22', 1, '2024-08-14 11:41:22');
INSERT INTO `tra_translado` VALUES (11, 240, NULL, 241, '2024-09-27 14:33:37', NULL, 3, '00011', 1, 1, '2024-09-27 14:33:37', 1, '2024-09-27 14:33:37');

-- ----------------------------
-- Table structure for trc_traccion
-- ----------------------------
CREATE TABLE `trc_traccion`  (
  `trc_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave principal - tipos para traccion',
  `trc_nombre` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'nombre de tipo traccion',
  `trc_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `trc_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `trc_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `trc_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  `trc_estado` int(11) NOT NULL COMMENT 'estado de registro',
  PRIMARY KEY (`trc_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'catalogo de tipos de vehiculos' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of trc_traccion
-- ----------------------------
INSERT INTO `trc_traccion` VALUES (1, 'Trasera estandar', 1, 1, '2023-01-18 23:31:31', '2023-01-18 23:31:31', 1);
INSERT INTO `trc_traccion` VALUES (2, 'AWD', 1, 1, '2023-01-18 23:31:38', '2023-01-18 23:31:38', 1);

-- ----------------------------
-- Table structure for trd_tipo_area_academica
-- ----------------------------
CREATE TABLE `trd_tipo_area_academica`  (
  `trd_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de tipo dearea académica',
  `trd_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de Tipo',
  `trd_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripción del registro',
  `trd_es_curso_libre` tinyint(4) NULL DEFAULT NULL COMMENT 'Flag para indicar si es o no curso libre el tipo de area',
  `trd_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 1=activo, 0=inactivo',
  `trd_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `trd_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `trd_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `trd_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`trd_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of trd_tipo_area_academica
-- ----------------------------

-- ----------------------------
-- Table structure for tre_tipo_retraso
-- ----------------------------
CREATE TABLE `tre_tipo_retraso`  (
  `tre_id` int(11) NOT NULL AUTO_INCREMENT,
  `tre_nombre` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `tre_estado` tinyint(4) NOT NULL,
  `tre_fecha_mod` datetime NOT NULL,
  `tre_usu_mod` int(11) NOT NULL,
  PRIMARY KEY (`tre_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of tre_tipo_retraso
-- ----------------------------
INSERT INTO `tre_tipo_retraso` VALUES (1, 'Accidente en el trayecto', 1, '2023-05-03 21:56:56', 1);
INSERT INTO `tre_tipo_retraso` VALUES (2, 'Tráfico extremo', 1, '2023-05-03 21:58:53', 1);
INSERT INTO `tre_tipo_retraso` VALUES (3, 'Permiso anticipado', 1, '2023-05-03 21:59:06', 1);

-- ----------------------------
-- Table structure for trf_tarifa
-- ----------------------------
CREATE TABLE `trf_tarifa`  (
  `trf_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal  -Tarifas',
  `trf_id_pln` int(11) NOT NULL COMMENT 'Llave principal  - Planes/promociones',
  `trf_id_dia_desde` int(11) NULL DEFAULT NULL COMMENT 'Llave principal - dias (inicio de plan)',
  `trf_id_dia_hasta` int(11) NULL DEFAULT NULL COMMENT 'Llave principal - dias (Fin de plan)',
  `trf_id_ppa` int(11) NULL DEFAULT NULL COMMENT 'Llave principal  - destinos/paises',
  `trf_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'nombre de Tarifa',
  `trf_costo` decimal(19, 2) NOT NULL COMMENT 'Costo de tarifa',
  `trf_desde` datetime NOT NULL COMMENT 'Fecha de inicio de vigencia',
  `trf_hasta` datetime NULL DEFAULT NULL COMMENT 'Fecha de fon de vigencia',
  `trf_desde_minuto` int(11) NULL DEFAULT NULL COMMENT 'Minutos inicio de tarifa',
  `trf_hasta_minuto` int(11) NULL DEFAULT NULL COMMENT 'Minutos fin de tarifa',
  `trf_desde_horario` time NULL DEFAULT NULL COMMENT 'día de la semana vigente',
  `trf_hasta_horario` time NULL DEFAULT NULL COMMENT 'día de la semana vigente',
  `trf_estado` int(11) NOT NULL COMMENT 'estado de registro',
  `trf_fecha_crea` datetime NOT NULL COMMENT 'auditoria',
  `trf_fecha_mod` datetime NOT NULL COMMENT 'auditoria',
  `trf_usu_crea` int(11) NOT NULL COMMENT 'auditoria',
  `trf_usu_mod` int(11) NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`trf_id`) USING BTREE,
  INDEX `FK_fk_trf_dia_desde`(`trf_id_dia_desde` ASC) USING BTREE,
  INDEX `fk_trf_dia_desde`(`trf_id_dia_hasta` ASC) USING BTREE,
  INDEX `fk_trf_id_pln`(`trf_id_pln` ASC) USING BTREE,
  INDEX `fk_trf_id_ppa`(`trf_id_ppa` ASC) USING BTREE,
  CONSTRAINT `FK_fk_trf_dia_desde` FOREIGN KEY (`trf_id_dia_desde`) REFERENCES `dia_dia` (`dia_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_trf_dia_desde` FOREIGN KEY (`trf_id_dia_hasta`) REFERENCES `dia_dia` (`dia_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_trf_id_pln` FOREIGN KEY (`trf_id_pln`) REFERENCES `pln_plan_promocion` (`pln_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_trf_id_ppa` FOREIGN KEY (`trf_id_ppa`) REFERENCES `ppa_parametro_pais` (`ppa_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Tabla de tarifas' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of trf_tarifa
-- ----------------------------

-- ----------------------------
-- Table structure for tri_tipo_riesgo
-- ----------------------------
CREATE TABLE `tri_tipo_riesgo`  (
  `tri_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de tipo de riesgo',
  `tri_nombre` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre del tipo de riesgo',
  `tri_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `tri_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `tri_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `tri_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `tri_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`tri_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Tipos de riesgo' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of tri_tipo_riesgo
-- ----------------------------
INSERT INTO `tri_tipo_riesgo` VALUES (1, 'Riesgo Electrico', 1, 1, '2019-09-10 10:19:22', 1, '2019-09-10 10:19:22');
INSERT INTO `tri_tipo_riesgo` VALUES (2, 'Fisico', 1, 1, '2019-10-09 00:00:00', 1, '2019-10-09 00:00:00');
INSERT INTO `tri_tipo_riesgo` VALUES (3, 'Quimico', 1, 1, '2019-10-09 00:00:00', 1, '2019-10-09 00:00:00');
INSERT INTO `tri_tipo_riesgo` VALUES (4, 'Biologico', 1, 1, '2019-10-09 00:00:00', 1, '2019-10-09 00:00:00');
INSERT INTO `tri_tipo_riesgo` VALUES (5, 'Ergonomico', 1, 1, '2019-10-09 00:00:00', 1, '2019-10-09 00:00:00');
INSERT INTO `tri_tipo_riesgo` VALUES (6, 'Mecanico', 1, 1, '2019-10-09 00:00:00', 1, '2019-10-09 00:00:00');
INSERT INTO `tri_tipo_riesgo` VALUES (7, 'PsicoSocial', 1, 1, '2019-10-09 00:00:00', 1, '2019-10-09 00:00:00');

-- ----------------------------
-- Table structure for trl_traslado_alumno
-- ----------------------------
CREATE TABLE `trl_traslado_alumno`  (
  `trl_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria traslado de alumno',
  `trl_id_alm` int(11) NOT NULL COMMENT 'Llave principal - Alumnos',
  `trl_id_lxp_origen` int(11) NOT NULL COMMENT 'Llave primaria - Pensum por alumno (grupo anteior)',
  `trl_id_lxp_destino` int(11) NOT NULL COMMENT 'Llave primaria - Pensum por alumno',
  `trl_fecha_traslado` datetime NOT NULL COMMENT 'Fecha de traslado',
  `trl_observacion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Observaciones del traslado (opcional)',
  `trl_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 0=inactivo, 1=activo',
  `trl_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `trl_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `trl_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `trl_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`trl_id`) USING BTREE,
  INDEX `fk_trl_id_alm`(`trl_id_alm` ASC) USING BTREE,
  INDEX `fk_trl_id_lxp_origen`(`trl_id_lxp_origen` ASC) USING BTREE,
  INDEX `fk_trl_id_lxp_destino`(`trl_id_lxp_destino` ASC) USING BTREE,
  CONSTRAINT `fk_trl_id_alm` FOREIGN KEY (`trl_id_alm`) REFERENCES `alm_alumno` (`alm_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_trl_id_lxp_destino` FOREIGN KEY (`trl_id_lxp_destino`) REFERENCES `lxp_alumnoxpensum` (`lxp_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_trl_id_lxp_origen` FOREIGN KEY (`trl_id_lxp_origen`) REFERENCES `lxp_alumnoxpensum` (`lxp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of trl_traslado_alumno
-- ----------------------------

-- ----------------------------
-- Table structure for trm_transmision
-- ----------------------------
CREATE TABLE `trm_transmision`  (
  `trm_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave principal - tipos de transmisión',
  `trm_nombre` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'nombre de tipo transmisión',
  `trm_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `trm_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `trm_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `trm_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  `trm_estado` int(11) NOT NULL COMMENT 'estado de registro',
  PRIMARY KEY (`trm_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'catalogo de tipos de transmision' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of trm_transmision
-- ----------------------------
INSERT INTO `trm_transmision` VALUES (1, 'Automatica', 1, 1, '2023-01-18 23:30:50', '2023-01-18 23:30:50', 1);
INSERT INTO `trm_transmision` VALUES (2, 'Standar o Manual', 1, 1, '2023-01-18 23:31:00', '2023-01-18 23:31:00', 1);

-- ----------------------------
-- Table structure for trp_traslado_pendiente
-- ----------------------------
CREATE TABLE `trp_traslado_pendiente`  (
  `trp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal del translado pendiente',
  `trp_id_tip` int(11) NOT NULL COMMENT 'Codigo de movimiento',
  `trp_id_rxi` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de la requisición',
  `trp_id_prv` int(11) NULL DEFAULT NULL COMMENT 'Llave primaria de proveedor',
  `trp_id_bod_origen` int(11) NOT NULL COMMENT 'Codigo de bodega origen',
  `trp_id_bod_destino` int(11) NOT NULL COMMENT 'Codigo de bodega',
  `trp_id_usu` int(11) NOT NULL COMMENT 'Llave principal de Usuario. (quien genera el registro)',
  `trp_id_usu_autoriza` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de Usuario.',
  `trp_id_usu_anula` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de Usuario.',
  `trp_fecha_registro` datetime NOT NULL COMMENT 'Fecha de registro',
  `trp_fecha_traslado` datetime NOT NULL COMMENT 'Fecha del translado',
  `trp_documento` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Documento',
  `trp_descripcion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripcion',
  `trp_motivo_prestamo` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Motivo de prestamo',
  `trp_fecha_prestamo` datetime NULL DEFAULT NULL COMMENT 'Fecha de prestamo',
  `trp_correlativo` int(11) NULL DEFAULT NULL COMMENT 'correlativo del traslado',
  `trp_fecha_anula` datetime NULL DEFAULT NULL COMMENT 'Fecha de anulacion',
  `trp_fecha_autoriza` datetime NULL DEFAULT NULL COMMENT 'Fecha de autorizacion',
  `trp_aplica_prestamo` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Flag para indicar que aplica prestamo 1=si, 0=no',
  `trp_descripcion_autoriza` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripcion Autoriza',
  `trp_descripcion_anula` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripcion anula',
  `trp_estado_traslado` int(11) NOT NULL DEFAULT 1 COMMENT '0=inactivo/anulado, 1=activo/pendiente, 2=autorizado.',
  `trp_estado` int(11) NOT NULL COMMENT '0=inactivo, 1=activo',
  `trp_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `trp_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `trp_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `trp_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`trp_id`) USING BTREE,
  INDEX `fk_trp_id_bod_destino`(`trp_id_bod_destino` ASC) USING BTREE,
  INDEX `fk_trp_id_bod_origen`(`trp_id_bod_origen` ASC) USING BTREE,
  INDEX `fk_trp_id_prv`(`trp_id_prv` ASC) USING BTREE,
  INDEX `fk_trp_id_tip`(`trp_id_tip` ASC) USING BTREE,
  INDEX `fk_trp_id_usu`(`trp_id_usu` ASC) USING BTREE,
  INDEX `fk_trp_id_usu_anulacion`(`trp_id_usu_anula` ASC) USING BTREE,
  INDEX `fk_trp_id_usu_autoriza`(`trp_id_usu_autoriza` ASC) USING BTREE,
  CONSTRAINT `fk_trp_id_bod_destino` FOREIGN KEY (`trp_id_bod_destino`) REFERENCES `bod_bodega` (`bod_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_trp_id_bod_origen` FOREIGN KEY (`trp_id_bod_origen`) REFERENCES `bod_bodega` (`bod_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_trp_id_prv` FOREIGN KEY (`trp_id_prv`) REFERENCES `prv_proveedor` (`prv_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_trp_id_tip` FOREIGN KEY (`trp_id_tip`) REFERENCES `tip_tipo_proceso` (`tip_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_trp_id_usu` FOREIGN KEY (`trp_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_trp_id_usu_anulacion` FOREIGN KEY (`trp_id_usu_anula`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_trp_id_usu_autoriza` FOREIGN KEY (`trp_id_usu_autoriza`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Translados de inventario pendiente de autorización' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of trp_traslado_pendiente
-- ----------------------------

-- ----------------------------
-- Table structure for trr_tipo_referencia
-- ----------------------------
CREATE TABLE `trr_tipo_referencia`  (
  `trr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de tipo de referencia',
  `trr_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre del tipo de referencia',
  `trr_descripcion` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'descripción',
  `trr_estado` int(11) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro, 0=inactivo, 1=activo',
  `trr_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `trr_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `trr_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `trr_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`trr_id`) USING BTREE,
  INDEX `tpl_nombre_planilla`(`trr_nombre` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of trr_tipo_referencia
-- ----------------------------
INSERT INTO `trr_tipo_referencia` VALUES (1, 'Ref. Familiar', 'Ref. Familiar', 1, '2019-09-19 18:56:20', 5, 5, '2019-09-19 18:56:20');
INSERT INTO `trr_tipo_referencia` VALUES (2, 'Ref. Amigos', 'Ref. Amigos', 1, '2019-09-19 18:56:20', 5, 5, '2019-09-19 18:56:20');
INSERT INTO `trr_tipo_referencia` VALUES (3, 'Ref. Personal', 'Ref. Personal', 1, '2019-09-19 18:56:20', 5, 5, '2019-09-19 18:56:20');
INSERT INTO `trr_tipo_referencia` VALUES (4, 'Ref. Laboral', 'Ref. Laboral', 1, '2019-09-19 18:56:20', 5, 5, '2019-09-19 18:56:20');

-- ----------------------------
-- Table structure for trs_tipo_resolucion
-- ----------------------------
CREATE TABLE `trs_tipo_resolucion`  (
  `trs_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de Tipo de Resolucion',
  `trs_codigo` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Campo para el codigo del Tipo de Resolucion',
  `trs_nombre` varchar(500) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Campo para el nombre del Tipo de Resolucion',
  `trs_estado` int(11) NOT NULL COMMENT 'Estado de registro (1=activo, 0=inactivo)',
  `trs_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `trs_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `trs_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `trs_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`trs_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Tabla para registrar los tipo de resolucion' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of trs_tipo_resolucion
-- ----------------------------
INSERT INTO `trs_tipo_resolucion` VALUES (1, '2', 'Por Duelo', 1, 1, '2025-06-21 09:43:19', 1, '2025-06-21 09:43:19');
INSERT INTO `trs_tipo_resolucion` VALUES (2, NULL, 'Por Asignacion Cargo', 1, 1, '2025-07-01 00:00:00', 1, '2025-07-01 00:00:00');
INSERT INTO `trs_tipo_resolucion` VALUES (3, NULL, 'Conceder Vacaciones', 1, 1, '2025-07-01 00:00:00', 1, '2025-07-01 00:00:00');
INSERT INTO `trs_tipo_resolucion` VALUES (4, '3', 'Aceptar Renuncia', 1, 1, '2025-07-01 00:00:00', 1, '2025-07-01 00:00:00');
INSERT INTO `trs_tipo_resolucion` VALUES (5, NULL, 'Conceder Licencia', 1, 1, '2025-07-01 00:00:00', 1, '2025-07-01 00:00:00');
INSERT INTO `trs_tipo_resolucion` VALUES (6, NULL, 'Notificacion de Destitución', 1, 1, '2025-07-01 00:00:00', 1, '2025-07-01 00:00:00');

-- ----------------------------
-- Table structure for try_trayecto
-- ----------------------------
CREATE TABLE `try_trayecto`  (
  `try_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Identificador unico',
  `try_id_tab` int(11) NOT NULL COMMENT 'Identificador de tabla relacionada',
  `try_id_use` int(11) NULL DEFAULT NULL COMMENT 'ID del usuario',
  `try_id_pas` int(11) NULL DEFAULT NULL COMMENT 'Paso',
  `try_registro_id` int(11) NOT NULL DEFAULT 0 COMMENT 'Identificador unico del registro',
  `try_fecha_inicio` datetime NOT NULL COMMENT 'Fecha de realización de la accion',
  `try_fecha_fin` datetime NOT NULL COMMENT 'Fecha de realización de la accion',
  `try_aceptado` int(11) NOT NULL DEFAULT 0 COMMENT '1- Pendiente\r\n            2- aceptado\r\n            3- Denegado\r\n            ',
  `try_obs` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Observaciones producidas por el usuario',
  PRIMARY KEY (`try_id`) USING BTREE,
  INDEX `FK_try_x_pas`(`try_id_pas` ASC) USING BTREE,
  INDEX `FK_try_x_tab`(`try_id_tab` ASC) USING BTREE,
  INDEX `FK_try_x_users`(`try_id_use` ASC) USING BTREE,
  CONSTRAINT `FK_try_x_pas` FOREIGN KEY (`try_id_pas`) REFERENCES `pas_paso` (`pas_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `FK_try_x_tab` FOREIGN KEY (`try_id_tab`) REFERENCES `tab_tabla` (`tab_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `FK_try_x_users` FOREIGN KEY (`try_id_use`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Registro de tareas realizadas' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of try_trayecto
-- ----------------------------

-- ----------------------------
-- Table structure for tsg_tipo_seguimiento
-- ----------------------------
CREATE TABLE `tsg_tipo_seguimiento`  (
  `tsg_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Id de tipo de Seguimiento',
  `tsg_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Tipo de Segimiento',
  `tsg_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro(1:Activo, 0:Inactivo, -1:Eliminado)',
  PRIMARY KEY (`tsg_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of tsg_tipo_seguimiento
-- ----------------------------
INSERT INTO `tsg_tipo_seguimiento` VALUES (1, 'Llamada Telefónica', 1);
INSERT INTO `tsg_tipo_seguimiento` VALUES (2, 'Envio de Correo', 1);
INSERT INTO `tsg_tipo_seguimiento` VALUES (3, 'Redes Sociales', 1);
INSERT INTO `tsg_tipo_seguimiento` VALUES (4, 'Visita', 1);

-- ----------------------------
-- Table structure for tsl_telefono_solicitante
-- ----------------------------
CREATE TABLE `tsl_telefono_solicitante`  (
  `tsl_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de correo por solicitante',
  `tsl_id_sle` int(11) NOT NULL COMMENT 'Llave principal de Solicitante Empleo',
  `tsl_id_tit` int(11) NULL DEFAULT NULL COMMENT 'Llave primaria - Tipo de Telefono',
  `tsl_numero` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'telefono',
  `tsl_estado` int(11) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro, 0=inactivo, 1=activo',
  `tsl_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `tsl_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `tsl_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `tsl_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`tsl_id`) USING BTREE,
  INDEX `fk_tsl_id_sle`(`tsl_id_sle` ASC) USING BTREE,
  INDEX `fk_tsl_id_tit`(`tsl_id_tit` ASC) USING BTREE,
  CONSTRAINT `fk_tsl_id_sle` FOREIGN KEY (`tsl_id_sle`) REFERENCES `sle_solicitante_empleo` (`sle_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_tsl_id_tit` FOREIGN KEY (`tsl_id_tit`) REFERENCES `tit_tipo_telefono` (`tit_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'tabla que almacena n telefonos de un solicitante de empleo' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of tsl_telefono_solicitante
-- ----------------------------

-- ----------------------------
-- Table structure for tsm_tipo_sol_mantto
-- ----------------------------
CREATE TABLE `tsm_tipo_sol_mantto`  (
  `tsm_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal - Tipos de solicitudes de mantto',
  `tsm_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de solicitud de mantto',
  `tsm_estado` int(11) NOT NULL COMMENT 'Estado de registro',
  `tsm_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `tsm_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `tsm_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `tsm_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`tsm_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Catalogo de tipos de solicitudes de mantto (Llantas, mannto)' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of tsm_tipo_sol_mantto
-- ----------------------------
INSERT INTO `tsm_tipo_sol_mantto` VALUES (1, 'Servicios Preventivos', 1, 1, 1, '2023-01-19 00:26:47', '2023-01-19 00:26:47');
INSERT INTO `tsm_tipo_sol_mantto` VALUES (2, 'Fallas Generales', 1, 1, 1, '2023-01-19 00:26:56', '2023-01-19 00:26:56');

-- ----------------------------
-- Table structure for tsr_tipo_sange
-- ----------------------------
CREATE TABLE `tsr_tipo_sange`  (
  `tsr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de tipo de sangre',
  `tsr_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre',
  `tsr_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripcion del registro',
  `tsr_estado` int(11) NOT NULL COMMENT 'Estado de registro (1=activo, 0=inactivo)',
  `tsr_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `tsr_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `tsr_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `tsr_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`tsr_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of tsr_tipo_sange
-- ----------------------------

-- ----------------------------
-- Table structure for tsr_tipo_sangre
-- ----------------------------
CREATE TABLE `tsr_tipo_sangre`  (
  `tsr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de tipo de sangre',
  `tsr_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre',
  `tsr_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripcion del registro',
  `tsr_estado` int(11) NOT NULL COMMENT 'Estado de registro (1=activo, 0=inactivo)',
  `tsr_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `tsr_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `tsr_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `tsr_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`tsr_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of tsr_tipo_sangre
-- ----------------------------
INSERT INTO `tsr_tipo_sangre` VALUES (1, 'O RH+', NULL, 1, 1, '2023-06-28 11:24:50', 1, '2023-06-28 11:24:50');
INSERT INTO `tsr_tipo_sangre` VALUES (2, 'A RH+', NULL, 1, 1, '2023-06-28 11:24:50', 1, '2023-06-28 11:24:50');

-- ----------------------------
-- Table structure for ttb_tipo_transact_bancaria
-- ----------------------------
CREATE TABLE `ttb_tipo_transact_bancaria`  (
  `ttb_id` int(11) NOT NULL AUTO_INCREMENT,
  `ttb_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de transaccion',
  `ttb_deposito` tinyint(4) NOT NULL COMMENT 'indicador de Deposito (aumenta cuenta)',
  `ttb_retiro` tinyint(4) NOT NULL COMMENT 'Indicador de Retiro (disminuye cuenta)',
  `ttb_transferencia` tinyint(4) NOT NULL COMMENT 'Transferencia entre cuentas',
  `ttb_id_ttb_deposito` int(11) NULL DEFAULT NULL COMMENT 'Indicador de deposito si es transferencia',
  `ttb_id_ttb_retiro` int(11) NULL DEFAULT NULL COMMENT 'Indicador de retiro si es transferencia',
  `ttb_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Estado de registro',
  `ttb_usu_mod` int(1) NOT NULL COMMENT 'Auditoria',
  `ttb_fecha_mod` datetime NOT NULL COMMENT 'Auditoria',
  `ttb_cheque` tinyint(4) NOT NULL COMMENT 'Marcador de transaccion con cheque',
  PRIMARY KEY (`ttb_id`) USING BTREE,
  INDEX `fk_ttb_id_ttb_deposito`(`ttb_id_ttb_deposito` ASC) USING BTREE,
  INDEX `fk_ttb_id_ttb_retiro`(`ttb_id_ttb_retiro` ASC) USING BTREE,
  CONSTRAINT `fk_ttb_id_ttb_deposito` FOREIGN KEY (`ttb_id_ttb_deposito`) REFERENCES `ttb_tipo_transact_bancaria` (`ttb_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_ttb_id_ttb_retiro` FOREIGN KEY (`ttb_id_ttb_retiro`) REFERENCES `ttb_tipo_transact_bancaria` (`ttb_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Tipo de transaccion bancaria' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ttb_tipo_transact_bancaria
-- ----------------------------
INSERT INTO `ttb_tipo_transact_bancaria` VALUES (1, 'Deposito', 1, 0, 0, NULL, NULL, 1, 1, '2015-07-02 05:28:32', 0);
INSERT INTO `ttb_tipo_transact_bancaria` VALUES (2, 'Retiro', 0, 1, 0, NULL, NULL, 1, 1, '2015-07-02 05:28:59', 0);
INSERT INTO `ttb_tipo_transact_bancaria` VALUES (3, 'Transferencia', 0, 0, 1, 1, 2, 1, 1, '2015-07-02 05:28:59', 0);
INSERT INTO `ttb_tipo_transact_bancaria` VALUES (4, 'Operaciones cheques', 0, 0, 0, 5, 6, 1, 1, '2015-07-13 11:00:30', 1);
INSERT INTO `ttb_tipo_transact_bancaria` VALUES (5, 'Anulacion de cheque', 0, 0, 0, NULL, NULL, 1, 1, '2015-07-13 11:01:46', 0);
INSERT INTO `ttb_tipo_transact_bancaria` VALUES (6, 'Salida por cheque', 0, 1, 0, NULL, NULL, 1, 1, '2015-07-13 00:00:00', 0);
INSERT INTO `ttb_tipo_transact_bancaria` VALUES (7, 'Pago por Transferencia', 0, 1, 0, NULL, NULL, 1, 1, '2018-07-27 00:00:00', 0);
INSERT INTO `ttb_tipo_transact_bancaria` VALUES (8, 'Remesa', 1, 0, 0, NULL, NULL, 1, 1, '0000-00-00 00:00:00', 0);
INSERT INTO `ttb_tipo_transact_bancaria` VALUES (9, 'Traslado de Fondos', 0, 0, 1, NULL, NULL, 1, 0, '0000-00-00 00:00:00', 0);
INSERT INTO `ttb_tipo_transact_bancaria` VALUES (10, 'Comisiones Bancarias', 0, 1, 0, NULL, NULL, 1, 0, '0000-00-00 00:00:00', 0);
INSERT INTO `ttb_tipo_transact_bancaria` VALUES (11, 'Nota de Cargo', 0, 1, 0, NULL, NULL, 1, 0, '0000-00-00 00:00:00', 0);
INSERT INTO `ttb_tipo_transact_bancaria` VALUES (12, 'Pagos', 0, 1, 0, NULL, NULL, 1, 0, '0000-00-00 00:00:00', 0);

-- ----------------------------
-- Table structure for ttm_tipo_tratamiento
-- ----------------------------
CREATE TABLE `ttm_tipo_tratamiento`  (
  `ttm_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de tipo de tratamiento',
  `ttm_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de tipo de tratamiento',
  `ttm_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripción general del registro',
  `ttm_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `ttm_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `ttm_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `ttm_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `ttm_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`ttm_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Tipos de tratamiento' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ttm_tipo_tratamiento
-- ----------------------------

-- ----------------------------
-- Table structure for ttr_tipo_transporte
-- ----------------------------
CREATE TABLE `ttr_tipo_transporte`  (
  `ttr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de tipo de transporte',
  `ttr_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre del tipo de transporte',
  `ttr_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripción general del registro',
  `ttr_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `ttr_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `ttr_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `ttr_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `ttr_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`ttr_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Tipos de transporte' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ttr_tipo_transporte
-- ----------------------------
INSERT INTO `ttr_tipo_transporte` VALUES (1, 'Bimodal ', 'maritimo y terrestre', 1, 10, '2019-06-06 16:51:35', 10, '2019-06-06 16:51:35');
INSERT INTO `ttr_tipo_transporte` VALUES (2, 'Terrestre', 'Terrestre', 1, 33, '2020-04-16 09:46:20', 33, '2020-04-16 09:46:20');
INSERT INTO `ttr_tipo_transporte` VALUES (3, 'Maritimo', 'Maritimo', 1, 33, '2020-04-16 09:46:20', 33, '2020-04-16 09:46:20');
INSERT INTO `ttr_tipo_transporte` VALUES (4, 'Aereo', 'Aereo', 1, 33, '2020-04-16 09:46:44', 33, '2020-04-16 09:46:44');

-- ----------------------------
-- Table structure for tur_turno
-- ----------------------------
CREATE TABLE `tur_turno`  (
  `tur_id` int(11) NOT NULL AUTO_INCREMENT,
  `tur_id_tiu` int(11) NULL DEFAULT NULL COMMENT 'Llave de tipo de turno',
  `tur_nombre` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `tur_descuento_automatico` tinyint(4) NOT NULL,
  `tur_permite_traslape` tinyint(4) NULL DEFAULT 0 COMMENT '1=si/0=no Permite horarios de mas de 1 dia',
  `tur_descripcion` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'descripcion de registro',
  `tur_estado` tinyint(4) NOT NULL,
  `tur_fecha_mod` datetime NOT NULL,
  `tur_usu_mod` int(11) NOT NULL,
  PRIMARY KEY (`tur_id`) USING BTREE,
  INDEX `fk_tur_id_tiu`(`tur_id_tiu` ASC) USING BTREE,
  CONSTRAINT `fk_tur_id_tiu` FOREIGN KEY (`tur_id_tiu`) REFERENCES `tiu_tipo_turno` (`tiu_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of tur_turno
-- ----------------------------
INSERT INTO `tur_turno` VALUES (1, NULL, 'Personal administrativo', 1, 0, 'Personal administrativo', 1, '2022-06-10 12:43:56', 1);
INSERT INTO `tur_turno` VALUES (2, NULL, 'Oficina', 0, 0, '', 1, '2023-05-03 22:48:49', 1);
INSERT INTO `tur_turno` VALUES (3, NULL, 'Turno Medico Vespertino', 0, 0, 'Turno Medico Vespertino', 1, '2024-02-21 14:52:17', 1);
INSERT INTO `tur_turno` VALUES (4, NULL, 'Turno Medico Nocturno', 0, 0, '', 1, '2024-02-21 15:53:28', 1);

-- ----------------------------
-- Table structure for tvh_tipo_vehiculo
-- ----------------------------
CREATE TABLE `tvh_tipo_vehiculo`  (
  `tvh_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave principal - tipos para vehiculos',
  `tvh_nombre` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'nombre de tipo',
  `tvh_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `tvh_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `tvh_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `tvh_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  `tvh_estado` int(11) NOT NULL COMMENT 'estado de registro',
  PRIMARY KEY (`tvh_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'catalogo de tipos de vehiculos' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of tvh_tipo_vehiculo
-- ----------------------------
INSERT INTO `tvh_tipo_vehiculo` VALUES (1, 'Sedan', 1, 1, '2023-01-18 18:03:01', '2023-01-18 18:03:01', 1);
INSERT INTO `tvh_tipo_vehiculo` VALUES (2, 'Microbus', 1, 1, '2023-01-18 18:03:07', '2023-01-18 18:03:07', 1);

-- ----------------------------
-- Table structure for txa_telefonoxalumno
-- ----------------------------
CREATE TABLE `txa_telefonoxalumno`  (
  `txa_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id del registro',
  `txa_id_tit` int(11) NOT NULL COMMENT 'id del tipo de telefono',
  `txa_id_alm` int(11) NOT NULL COMMENT 'id del alumno al que pertenece el telefono',
  `txa_numero` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'número de teléfono',
  `txa_estado` int(11) NOT NULL COMMENT 'estado 1=activo, 0=inactivo',
  `txa_usu_mod` int(11) NOT NULL COMMENT 'auditoria',
  `txa_fecha_mod` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`txa_id`) USING BTREE,
  INDEX `fk_txa_id_tit`(`txa_id_tit` ASC) USING BTREE,
  INDEX `fk_txa_id_alm`(`txa_id_alm` ASC) USING BTREE,
  CONSTRAINT `fk_txa_id_alm` FOREIGN KEY (`txa_id_alm`) REFERENCES `alm_alumno` (`alm_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_txa_id_tit` FOREIGN KEY (`txa_id_tit`) REFERENCES `tit_tipo_telefono` (`tit_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'tabla en donde se almancenarán los telefonos del alumno' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of txa_telefonoxalumno
-- ----------------------------

-- ----------------------------
-- Table structure for txc_telefonoxcliente
-- ----------------------------
CREATE TABLE `txc_telefonoxcliente`  (
  `txc_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria - Id del registro',
  `txc_id_cli` int(11) NULL DEFAULT NULL COMMENT 'Llave primaria - Clientes',
  `txc_id_tit` int(11) NULL DEFAULT NULL COMMENT 'Llave primaria - Tipo de Telefono',
  `txc_numero` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'número de teléfono',
  `txc_estado` int(11) NOT NULL COMMENT 'estado 1=activo, 0=inactivo',
  `txc_usu_mod` int(11) NOT NULL COMMENT 'auditoria',
  `txc_fecha_mod` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`txc_id`) USING BTREE,
  INDEX `fk_txc_id_cli`(`txc_id_cli` ASC) USING BTREE,
  INDEX `fk_txc_id_tit`(`txc_id_tit` ASC) USING BTREE,
  CONSTRAINT `fk_txc_id_cli` FOREIGN KEY (`txc_id_cli`) REFERENCES `cli_cliente` (`cli_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_txc_id_tit` FOREIGN KEY (`txc_id_tit`) REFERENCES `tit_tipo_telefono` (`tit_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1019 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Tabla para telefonos de clientes' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of txc_telefonoxcliente
-- ----------------------------
INSERT INTO `txc_telefonoxcliente` VALUES (4, 5, 4, '2444-1770', 1, 7, '2020-03-26 09:04:17');
INSERT INTO `txc_telefonoxcliente` VALUES (147, 4, 2, '2661-4090', 1, 7, '2020-04-13 08:59:35');
INSERT INTO `txc_telefonoxcliente` VALUES (148, 6, 2, '2239-5000', 1, 7, '2020-04-13 09:02:55');
INSERT INTO `txc_telefonoxcliente` VALUES (150, 9, 2, '2331-3286', 1, 7, '2020-04-13 09:17:25');
INSERT INTO `txc_telefonoxcliente` VALUES (151, 10, 2, '2222-5452', 1, 7, '2020-04-13 09:19:00');
INSERT INTO `txc_telefonoxcliente` VALUES (152, 11, 2, '2662-1217', 1, 7, '2020-04-13 09:21:33');
INSERT INTO `txc_telefonoxcliente` VALUES (154, 15, 5, '7360-9482', 1, 7, '2020-04-13 09:28:25');
INSERT INTO `txc_telefonoxcliente` VALUES (156, 18, 2, '2500-1713', 1, 7, '2020-04-13 09:33:18');
INSERT INTO `txc_telefonoxcliente` VALUES (158, 20, 2, '2293-3244', 1, 7, '2020-04-13 09:40:45');
INSERT INTO `txc_telefonoxcliente` VALUES (944, 3, 3, '2536-4400', 1, 7, '2020-06-09 09:57:26');
INSERT INTO `txc_telefonoxcliente` VALUES (945, 12, 2, '2281-2022', 1, 1, '2021-12-27 22:47:38');
INSERT INTO `txc_telefonoxcliente` VALUES (946, 17, 2, '2447-8033', 1, 1, '2021-12-27 23:24:41');
INSERT INTO `txc_telefonoxcliente` VALUES (947, 19, 2, '2382-3232', 1, 1, '2021-12-27 23:25:07');
INSERT INTO `txc_telefonoxcliente` VALUES (950, 24, 3, '2222-2222', 1, 1, '2022-03-02 11:40:41');
INSERT INTO `txc_telefonoxcliente` VALUES (955, 2, 3, '2451-0638', 1, 1, '2023-05-25 11:04:08');
INSERT INTO `txc_telefonoxcliente` VALUES (956, 21, 5, '7777-7777', 1, 1, '2023-07-31 11:27:21');
INSERT INTO `txc_telefonoxcliente` VALUES (957, 34, 3, '2222-2222', 1, 1, '2024-05-20 09:00:13');
INSERT INTO `txc_telefonoxcliente` VALUES (958, 34, 5, '7777-7777', 1, 1, '2024-05-20 09:00:13');
INSERT INTO `txc_telefonoxcliente` VALUES (960, 36, 1, '2267-6500 isdem', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (961, 38, 1, '7731-4368', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (962, 39, 1, '79876336', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (963, 40, 1, '0', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (964, 41, 1, '77971731', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (965, 42, 1, '70529862', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (966, 43, 1, '61971843', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (967, 44, 1, '69313855', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (968, 45, 1, '70395045', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (969, 47, 1, '79664416', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (970, 48, 1, '77590125', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (971, 50, 1, '64563584', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (972, 51, 1, '7687-6833', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (973, 53, 1, '7326-4048', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (974, 54, 1, '0', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (975, 55, 1, '60516408', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (976, 56, 1, '2447-0089 (tío, Jose Martinez)', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (977, 57, 1, '6191-1209', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (978, 58, 1, '78225024', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (989, 71, 1, '63008425', 1, 1, '2024-07-11 15:40:11');
INSERT INTO `txc_telefonoxcliente` VALUES (990, 73, 1, '74892611', 1, 1, '2024-07-11 15:40:11');
INSERT INTO `txc_telefonoxcliente` VALUES (991, 74, 1, '7330-7603', 1, 1, '2024-07-11 15:40:11');
INSERT INTO `txc_telefonoxcliente` VALUES (992, 75, 1, '68651557', 1, 1, '2024-07-11 15:40:11');
INSERT INTO `txc_telefonoxcliente` VALUES (993, 76, 1, '76829068', 1, 1, '2024-07-11 15:40:11');
INSERT INTO `txc_telefonoxcliente` VALUES (994, 77, 1, '7967-6820', 1, 1, '2024-07-11 15:40:11');
INSERT INTO `txc_telefonoxcliente` VALUES (995, 78, 1, '70296358', 1, 1, '2024-07-11 15:40:11');
INSERT INTO `txc_telefonoxcliente` VALUES (996, 79, 1, '0', 1, 1, '2024-07-11 15:40:11');
INSERT INTO `txc_telefonoxcliente` VALUES (997, 80, 1, '0', 1, 1, '2024-07-11 15:40:11');
INSERT INTO `txc_telefonoxcliente` VALUES (998, 81, 1, '24480872', 1, 1, '2024-07-11 15:40:11');
INSERT INTO `txc_telefonoxcliente` VALUES (1000, 35, 5, '7551-1671', 1, 1, '2024-06-12 15:31:37');
INSERT INTO `txc_telefonoxcliente` VALUES (1003, 82, 4, '2255-4411', 1, 1, '2024-06-12 16:10:05');
INSERT INTO `txc_telefonoxcliente` VALUES (1006, 83, 1, '71139123', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (1007, 84, 1, '7823-6514', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (1008, 85, 1, '76950088', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (1009, 86, 1, '78481629', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (1010, 88, 1, '78425529', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (1011, 89, 1, '76051906', 1, 1, '2024-07-11 15:40:11');
INSERT INTO `txc_telefonoxcliente` VALUES (1012, 90, 1, '77137890', 1, 1, '2024-07-11 15:40:11');
INSERT INTO `txc_telefonoxcliente` VALUES (1013, 91, 1, '7639-2067', 1, 1, '2024-07-11 15:40:11');
INSERT INTO `txc_telefonoxcliente` VALUES (1014, 92, 1, '76417367', 1, 1, '2024-07-11 15:40:11');
INSERT INTO `txc_telefonoxcliente` VALUES (1015, 66, 1, '71286024', 1, 1, '2024-07-11 15:40:10');
INSERT INTO `txc_telefonoxcliente` VALUES (1016, 22, 5, '7777-7777', 1, 1, '2024-07-17 09:14:23');
INSERT INTO `txc_telefonoxcliente` VALUES (1017, 101, 2, '2222-2222', 1, 1, '2024-11-11 13:05:07');
INSERT INTO `txc_telefonoxcliente` VALUES (1018, 103, 3, '2207-5000', 1, 1, '2025-01-13 21:01:12');

-- ----------------------------
-- Table structure for txc_tipo_consultaxconsultorio
-- ----------------------------
CREATE TABLE `txc_tipo_consultaxconsultorio`  (
  `txc_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal',
  `txc_id_con` int(11) NOT NULL COMMENT 'Llave principal de consultorio',
  `txc_id_tcm` int(11) NOT NULL COMMENT 'Llave principal de tipo consulta',
  `txc_estado` int(11) NULL DEFAULT NULL COMMENT 'Estado de registro',
  `txc_usu_creacion` int(11) NULL DEFAULT NULL COMMENT 'Auditoria',
  `txc_fecha_creacion` datetime NULL DEFAULT NULL COMMENT 'Auditoria',
  `txc_usu_modificacion` int(11) NULL DEFAULT NULL COMMENT 'Auditoria',
  `txc_fecha_modificacion` datetime NULL DEFAULT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`txc_id`) USING BTREE,
  INDEX `fk_txc_id_con`(`txc_id_con` ASC) USING BTREE,
  INDEX `fk_txc_id_tcm`(`txc_id_tcm` ASC) USING BTREE,
  CONSTRAINT `fk_txc_id_con` FOREIGN KEY (`txc_id_con`) REFERENCES `con_consultorio` (`con_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_txc_id_tcm` FOREIGN KEY (`txc_id_tcm`) REFERENCES `tcm_tipo_consulta_medica` (`tcm_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of txc_tipo_consultaxconsultorio
-- ----------------------------

-- ----------------------------
-- Table structure for txd_tipo_contactoxdirectorio_cont
-- ----------------------------
CREATE TABLE `txd_tipo_contactoxdirectorio_cont`  (
  `txd_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de tipo medio por directorio contacto',
  `txd_id_drn` int(11) NOT NULL COMMENT 'Llave principal directorio contactos.',
  `txd_id_tmc` int(11) NOT NULL COMMENT 'Id de Medio de Contacto',
  `txd_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 1=activo, 0=inactivo',
  `txd_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `txd_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `txd_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `txd_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`txd_id`) USING BTREE,
  INDEX `fk_txd_id_drn`(`txd_id_drn` ASC) USING BTREE,
  INDEX `fk_txd_id_tmc`(`txd_id_tmc` ASC) USING BTREE,
  CONSTRAINT `fk_txd_id_drn` FOREIGN KEY (`txd_id_drn`) REFERENCES `drn_directorio_contacto` (`drn_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_txd_id_tmc` FOREIGN KEY (`txd_id_tmc`) REFERENCES `tmc_tipo_medio` (`tmc_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Medios de contacto directorio cliente' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of txd_tipo_contactoxdirectorio_cont
-- ----------------------------
INSERT INTO `txd_tipo_contactoxdirectorio_cont` VALUES (1, 2, 2, 1, 1, '2019-10-25 15:42:01', 1, '2019-10-25 15:42:01');
INSERT INTO `txd_tipo_contactoxdirectorio_cont` VALUES (2, 2, 3, 1, 1, '2019-10-25 15:42:01', 1, '2019-10-25 15:42:01');
INSERT INTO `txd_tipo_contactoxdirectorio_cont` VALUES (3, 3, 2, 1, 9, '2020-05-28 14:23:32', 9, '2020-05-28 14:23:32');
INSERT INTO `txd_tipo_contactoxdirectorio_cont` VALUES (4, 3, 1, 1, 9, '2020-05-28 14:23:32', 9, '2020-05-28 14:23:32');
INSERT INTO `txd_tipo_contactoxdirectorio_cont` VALUES (6, 4, 2, 1, 1, '2020-07-01 18:38:24', 1, '2020-07-01 18:38:24');
INSERT INTO `txd_tipo_contactoxdirectorio_cont` VALUES (7, 6, 2, 1, 18, '2020-07-06 09:23:16', 18, '2020-07-06 09:23:16');
INSERT INTO `txd_tipo_contactoxdirectorio_cont` VALUES (8, 6, 5, 1, 18, '2020-07-06 09:23:16', 18, '2020-07-06 09:23:16');
INSERT INTO `txd_tipo_contactoxdirectorio_cont` VALUES (9, 6, 1, 1, 18, '2020-07-06 09:23:16', 18, '2020-07-06 09:23:16');

-- ----------------------------
-- Table structure for txe_tipo_planillaxempleado
-- ----------------------------
CREATE TABLE `txe_tipo_planillaxempleado`  (
  `txe_id` int(11) NOT NULL AUTO_INCREMENT,
  `txe_id_tpl` int(11) NULL DEFAULT NULL,
  `txe_id_emp` int(11) NULL DEFAULT NULL COMMENT 'Identificación del Sistema para empleado',
  `txe_id_cnt` int(11) NULL DEFAULT NULL COMMENT 'Llave principal  - Cuenta contable',
  `txe_estado` tinyint(4) NULL DEFAULT 1 COMMENT 'Estado del Registro 0=inactivo, 1=activo',
  `txe_usu_creacion` int(11) NULL DEFAULT NULL COMMENT 'Auditoria',
  `txe_fecha_creacion` datetime NULL DEFAULT current_timestamp() COMMENT 'Auditoria',
  `txe_usu_modificacion` int(11) NULL DEFAULT NULL COMMENT 'Auditoria',
  `txe_fecha_modificacion` datetime NULL DEFAULT current_timestamp() COMMENT 'Auditoria',
  PRIMARY KEY (`txe_id`) USING BTREE,
  INDEX `fk_txe_x_emp`(`txe_id_emp` ASC) USING BTREE,
  INDEX `fk_txe_x_tpl`(`txe_id_tpl` ASC) USING BTREE,
  INDEX `fk_txe_id_cnt`(`txe_id_cnt` ASC) USING BTREE,
  CONSTRAINT `fk_txe_id_cnt` FOREIGN KEY (`txe_id_cnt`) REFERENCES `cnt_cuenta_contable` (`cnt_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_txe_x_emp` FOREIGN KEY (`txe_id_emp`) REFERENCES `emp_empleado` (`emp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_txe_x_tpl` FOREIGN KEY (`txe_id_tpl`) REFERENCES `tpl_tipo_planilla` (`tpl_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1299 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of txe_tipo_planillaxempleado
-- ----------------------------
INSERT INTO `txe_tipo_planillaxempleado` VALUES (12, 1, 20, NULL, 0, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (36, 1, 48, NULL, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (53, 3, 20, NULL, 0, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (77, 3, 48, NULL, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (94, 4, 20, NULL, 0, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (118, 4, 48, NULL, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (135, 5, 20, NULL, 0, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (159, 5, 48, NULL, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (176, 6, 20, NULL, 0, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (200, 6, 48, NULL, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (585, 1, 10, NULL, 1, NULL, '2020-05-19 00:34:19', NULL, '2020-05-19 00:34:19');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (586, 3, 10, NULL, 1, NULL, '2020-05-19 00:34:19', NULL, '2020-05-19 00:34:19');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (587, 5, 10, NULL, 1, NULL, '2020-05-19 00:34:19', NULL, '2020-05-19 00:34:19');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (588, 6, 10, NULL, 1, NULL, '2020-05-19 00:34:19', NULL, '2020-05-19 00:34:19');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (594, 1, 11, NULL, 1, NULL, '2020-05-19 00:41:10', NULL, '2020-05-19 00:41:10');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (595, 3, 11, NULL, 1, NULL, '2020-05-19 00:41:10', NULL, '2020-05-19 00:41:10');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (596, 4, 11, NULL, 1, NULL, '2020-05-19 00:41:10', NULL, '2020-05-19 00:41:10');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (597, 5, 11, NULL, 1, NULL, '2020-05-19 00:41:10', NULL, '2020-05-19 00:41:10');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (598, 6, 11, NULL, 1, NULL, '2020-05-19 00:41:10', NULL, '2020-05-19 00:41:10');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (704, 1, 18, NULL, 1, NULL, '2020-05-22 23:36:02', NULL, '2020-05-22 23:36:02');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (705, 3, 18, NULL, 1, NULL, '2020-05-22 23:36:02', NULL, '2020-05-22 23:36:02');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (706, 4, 18, NULL, 1, NULL, '2020-05-22 23:36:02', NULL, '2020-05-22 23:36:02');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (707, 5, 18, NULL, 1, NULL, '2020-05-22 23:36:02', NULL, '2020-05-22 23:36:02');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (708, 6, 18, NULL, 1, NULL, '2020-05-22 23:36:02', NULL, '2020-05-22 23:36:02');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (714, 1, 23, NULL, 1, NULL, '2020-05-22 23:38:39', NULL, '2020-05-22 23:38:39');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (715, 3, 23, NULL, 1, NULL, '2020-05-22 23:38:39', NULL, '2020-05-22 23:38:39');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (716, 4, 23, NULL, 1, NULL, '2020-05-22 23:38:39', NULL, '2020-05-22 23:38:39');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (717, 5, 23, NULL, 1, NULL, '2020-05-22 23:38:39', NULL, '2020-05-22 23:38:39');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (718, 6, 23, NULL, 1, NULL, '2020-05-22 23:38:39', NULL, '2020-05-22 23:38:39');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (724, 1, 25, NULL, 1, NULL, '2020-05-22 23:41:43', NULL, '2020-05-22 23:41:43');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (725, 3, 25, NULL, 1, NULL, '2020-05-22 23:41:43', NULL, '2020-05-22 23:41:43');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (726, 4, 25, NULL, 1, NULL, '2020-05-22 23:41:43', NULL, '2020-05-22 23:41:43');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (727, 5, 25, NULL, 1, NULL, '2020-05-22 23:41:43', NULL, '2020-05-22 23:41:43');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (728, 6, 25, NULL, 1, NULL, '2020-05-22 23:41:43', NULL, '2020-05-22 23:41:43');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (774, 1, 26, NULL, 1, NULL, '2020-05-23 00:17:07', NULL, '2020-05-23 00:17:07');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (775, 3, 26, NULL, 1, NULL, '2020-05-23 00:17:07', NULL, '2020-05-23 00:17:07');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (776, 4, 26, NULL, 1, NULL, '2020-05-23 00:17:07', NULL, '2020-05-23 00:17:07');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (777, 5, 26, NULL, 1, NULL, '2020-05-23 00:17:07', NULL, '2020-05-23 00:17:07');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (778, 6, 26, NULL, 1, NULL, '2020-05-23 00:17:07', NULL, '2020-05-23 00:17:07');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (779, 1, 27, NULL, 1, NULL, '2020-05-23 00:18:11', NULL, '2020-05-23 00:18:11');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (780, 3, 27, NULL, 1, NULL, '2020-05-23 00:18:11', NULL, '2020-05-23 00:18:11');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (781, 4, 27, NULL, 1, NULL, '2020-05-23 00:18:11', NULL, '2020-05-23 00:18:11');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (782, 5, 27, NULL, 1, NULL, '2020-05-23 00:18:11', NULL, '2020-05-23 00:18:11');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (783, 6, 27, NULL, 1, NULL, '2020-05-23 00:18:11', NULL, '2020-05-23 00:18:11');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (784, 1, 28, NULL, 1, NULL, '2020-05-23 00:18:55', NULL, '2020-05-23 00:18:55');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (785, 3, 28, NULL, 1, NULL, '2020-05-23 00:18:55', NULL, '2020-05-23 00:18:55');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (786, 4, 28, NULL, 1, NULL, '2020-05-23 00:18:55', NULL, '2020-05-23 00:18:55');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (787, 5, 28, NULL, 1, NULL, '2020-05-23 00:18:55', NULL, '2020-05-23 00:18:55');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (788, 6, 28, NULL, 1, NULL, '2020-05-23 00:18:55', NULL, '2020-05-23 00:18:55');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (794, 1, 29, NULL, 1, NULL, '2020-05-23 00:23:06', NULL, '2020-05-23 00:23:06');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (795, 3, 29, NULL, 1, NULL, '2020-05-23 00:23:06', NULL, '2020-05-23 00:23:06');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (796, 4, 29, NULL, 1, NULL, '2020-05-23 00:23:06', NULL, '2020-05-23 00:23:06');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (797, 5, 29, NULL, 1, NULL, '2020-05-23 00:23:06', NULL, '2020-05-23 00:23:06');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (798, 6, 29, NULL, 1, NULL, '2020-05-23 00:23:06', NULL, '2020-05-23 00:23:06');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (809, 1, 30, NULL, 1, NULL, '2020-05-23 00:30:31', NULL, '2020-05-23 00:30:31');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (810, 3, 30, NULL, 1, NULL, '2020-05-23 00:30:31', NULL, '2020-05-23 00:30:31');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (811, 4, 30, NULL, 1, NULL, '2020-05-23 00:30:31', NULL, '2020-05-23 00:30:31');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (812, 5, 30, NULL, 1, NULL, '2020-05-23 00:30:31', NULL, '2020-05-23 00:30:31');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (813, 6, 30, NULL, 1, NULL, '2020-05-23 00:30:31', NULL, '2020-05-23 00:30:31');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (849, 1, 32, NULL, 1, NULL, '2020-05-23 19:43:16', NULL, '2020-05-23 19:43:16');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (850, 3, 32, NULL, 1, NULL, '2020-05-23 19:43:16', NULL, '2020-05-23 19:43:16');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (851, 4, 32, NULL, 1, NULL, '2020-05-23 19:43:16', NULL, '2020-05-23 19:43:16');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (852, 5, 32, NULL, 1, NULL, '2020-05-23 19:43:16', NULL, '2020-05-23 19:43:16');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (853, 6, 32, NULL, 1, NULL, '2020-05-23 19:43:16', NULL, '2020-05-23 19:43:16');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (859, 1, 33, NULL, 1, NULL, '2020-05-23 19:45:05', NULL, '2020-05-23 19:45:05');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (860, 3, 33, NULL, 1, NULL, '2020-05-23 19:45:05', NULL, '2020-05-23 19:45:05');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (861, 4, 33, NULL, 1, NULL, '2020-05-23 19:45:05', NULL, '2020-05-23 19:45:05');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (862, 5, 33, NULL, 1, NULL, '2020-05-23 19:45:05', NULL, '2020-05-23 19:45:05');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (863, 6, 33, NULL, 1, NULL, '2020-05-23 19:45:05', NULL, '2020-05-23 19:45:05');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (874, 1, 34, NULL, 1, NULL, '2020-05-23 19:47:54', NULL, '2020-05-23 19:47:54');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (875, 3, 34, NULL, 1, NULL, '2020-05-23 19:47:54', NULL, '2020-05-23 19:47:54');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (876, 4, 34, NULL, 1, NULL, '2020-05-23 19:47:54', NULL, '2020-05-23 19:47:54');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (877, 5, 34, NULL, 1, NULL, '2020-05-23 19:47:54', NULL, '2020-05-23 19:47:54');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (878, 6, 34, NULL, 1, NULL, '2020-05-23 19:47:54', NULL, '2020-05-23 19:47:54');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (884, 1, 35, NULL, 1, NULL, '2020-05-23 19:50:47', NULL, '2020-05-23 19:50:47');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (885, 3, 35, NULL, 1, NULL, '2020-05-23 19:50:47', NULL, '2020-05-23 19:50:47');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (886, 4, 35, NULL, 1, NULL, '2020-05-23 19:50:47', NULL, '2020-05-23 19:50:47');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (887, 5, 35, NULL, 1, NULL, '2020-05-23 19:50:47', NULL, '2020-05-23 19:50:47');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (888, 6, 35, NULL, 1, NULL, '2020-05-23 19:50:47', NULL, '2020-05-23 19:50:47');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (899, 1, 36, NULL, 1, NULL, '2020-05-23 19:53:27', NULL, '2020-05-23 19:53:27');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (900, 3, 36, NULL, 1, NULL, '2020-05-23 19:53:27', NULL, '2020-05-23 19:53:27');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (901, 4, 36, NULL, 1, NULL, '2020-05-23 19:53:27', NULL, '2020-05-23 19:53:27');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (902, 5, 36, NULL, 1, NULL, '2020-05-23 19:53:27', NULL, '2020-05-23 19:53:27');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (903, 6, 36, NULL, 1, NULL, '2020-05-23 19:53:27', NULL, '2020-05-23 19:53:27');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (909, 1, 38, NULL, 1, NULL, '2020-05-23 19:55:34', NULL, '2020-05-23 19:55:34');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (910, 3, 38, NULL, 1, NULL, '2020-05-23 19:55:34', NULL, '2020-05-23 19:55:34');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (911, 4, 38, NULL, 1, NULL, '2020-05-23 19:55:34', NULL, '2020-05-23 19:55:34');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (912, 5, 38, NULL, 1, NULL, '2020-05-23 19:55:34', NULL, '2020-05-23 19:55:34');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (913, 6, 38, NULL, 1, NULL, '2020-05-23 19:55:34', NULL, '2020-05-23 19:55:34');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (919, 1, 39, NULL, 1, NULL, '2020-05-23 20:01:12', NULL, '2020-05-23 20:01:12');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (920, 3, 39, NULL, 1, NULL, '2020-05-23 20:01:12', NULL, '2020-05-23 20:01:12');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (921, 4, 39, NULL, 1, NULL, '2020-05-23 20:01:12', NULL, '2020-05-23 20:01:12');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (922, 5, 39, NULL, 1, NULL, '2020-05-23 20:01:12', NULL, '2020-05-23 20:01:12');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (923, 6, 39, NULL, 1, NULL, '2020-05-23 20:01:12', NULL, '2020-05-23 20:01:12');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (949, 1, 41, NULL, 1, NULL, '2020-05-23 20:08:45', NULL, '2020-05-23 20:08:45');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (950, 3, 41, NULL, 1, NULL, '2020-05-23 20:08:45', NULL, '2020-05-23 20:08:45');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (951, 4, 41, NULL, 1, NULL, '2020-05-23 20:08:45', NULL, '2020-05-23 20:08:45');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (952, 5, 41, NULL, 1, NULL, '2020-05-23 20:08:45', NULL, '2020-05-23 20:08:45');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (953, 6, 41, NULL, 1, NULL, '2020-05-23 20:08:45', NULL, '2020-05-23 20:08:45');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (959, 1, 42, NULL, 1, NULL, '2020-05-23 20:11:05', NULL, '2020-05-23 20:11:05');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (960, 3, 42, NULL, 1, NULL, '2020-05-23 20:11:05', NULL, '2020-05-23 20:11:05');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (961, 4, 42, NULL, 1, NULL, '2020-05-23 20:11:05', NULL, '2020-05-23 20:11:05');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (962, 5, 42, NULL, 1, NULL, '2020-05-23 20:11:05', NULL, '2020-05-23 20:11:05');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (963, 6, 42, NULL, 1, NULL, '2020-05-23 20:11:05', NULL, '2020-05-23 20:11:05');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (974, 1, 43, NULL, 1, NULL, '2020-05-23 20:14:17', NULL, '2020-05-23 20:14:17');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (975, 3, 43, NULL, 1, NULL, '2020-05-23 20:14:17', NULL, '2020-05-23 20:14:17');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (976, 4, 43, NULL, 1, NULL, '2020-05-23 20:14:17', NULL, '2020-05-23 20:14:17');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (977, 5, 43, NULL, 1, NULL, '2020-05-23 20:14:17', NULL, '2020-05-23 20:14:17');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (978, 6, 43, NULL, 1, NULL, '2020-05-23 20:14:18', NULL, '2020-05-23 20:14:18');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (989, 1, 44, NULL, 1, NULL, '2020-05-23 20:16:28', NULL, '2020-05-23 20:16:28');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (990, 3, 44, NULL, 1, NULL, '2020-05-23 20:16:28', NULL, '2020-05-23 20:16:28');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (991, 4, 44, NULL, 1, NULL, '2020-05-23 20:16:28', NULL, '2020-05-23 20:16:28');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (992, 5, 44, NULL, 1, NULL, '2020-05-23 20:16:28', NULL, '2020-05-23 20:16:28');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (993, 6, 44, NULL, 1, NULL, '2020-05-23 20:16:28', NULL, '2020-05-23 20:16:28');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1004, 1, 50, NULL, 1, NULL, '2020-05-24 18:54:14', NULL, '2020-05-24 18:54:14');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1005, 3, 50, NULL, 1, NULL, '2020-05-24 18:54:14', NULL, '2020-05-24 18:54:14');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1006, 4, 50, NULL, 1, NULL, '2020-05-24 18:54:14', NULL, '2020-05-24 18:54:14');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1007, 5, 50, NULL, 1, NULL, '2020-05-24 18:54:14', NULL, '2020-05-24 18:54:14');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1008, 6, 50, NULL, 1, NULL, '2020-05-24 18:54:14', NULL, '2020-05-24 18:54:14');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1024, 1, 51, NULL, 1, NULL, '2020-05-24 18:59:14', NULL, '2020-05-24 18:59:14');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1025, 3, 51, NULL, 1, NULL, '2020-05-24 18:59:14', NULL, '2020-05-24 18:59:14');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1026, 4, 51, NULL, 1, NULL, '2020-05-24 18:59:14', NULL, '2020-05-24 18:59:14');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1027, 5, 51, NULL, 1, NULL, '2020-05-24 18:59:14', NULL, '2020-05-24 18:59:14');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1028, 6, 51, NULL, 1, NULL, '2020-05-24 18:59:14', NULL, '2020-05-24 18:59:14');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1029, 2, 52, NULL, 1, NULL, '2020-05-24 19:00:09', NULL, '2020-05-24 19:00:09');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1030, 2, 53, NULL, 1, NULL, '2020-05-24 19:00:42', NULL, '2020-05-24 19:00:42');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1061, 1, 79, NULL, 1, NULL, '2020-05-24 19:42:22', NULL, '2020-05-24 19:42:22');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1062, 3, 79, NULL, 1, NULL, '2020-05-24 19:42:22', NULL, '2020-05-24 19:42:22');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1063, 4, 79, NULL, 1, NULL, '2020-05-24 19:42:22', NULL, '2020-05-24 19:42:22');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1064, 5, 79, NULL, 1, NULL, '2020-05-24 19:42:22', NULL, '2020-05-24 19:42:22');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1065, 6, 79, NULL, 1, NULL, '2020-05-24 19:42:22', NULL, '2020-05-24 19:42:22');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1081, 1, 37, NULL, 1, NULL, '2020-05-24 20:10:13', NULL, '2020-05-24 20:10:13');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1082, 3, 37, NULL, 1, NULL, '2020-05-24 20:10:13', NULL, '2020-05-24 20:10:13');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1083, 4, 37, NULL, 1, NULL, '2020-05-24 20:10:13', NULL, '2020-05-24 20:10:13');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1084, 5, 37, NULL, 1, NULL, '2020-05-24 20:10:13', NULL, '2020-05-24 20:10:13');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1085, 6, 37, NULL, 1, NULL, '2020-05-24 20:10:13', NULL, '2020-05-24 20:10:13');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1111, 3, 49, NULL, 1, 32, '2020-06-22 09:31:14', 32, '2020-06-22 09:31:14');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1112, 5, 49, NULL, 1, 32, '2020-06-22 09:31:25', 32, '2020-06-22 09:31:25');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1113, 6, 49, NULL, 1, 32, '2020-06-22 09:31:34', 32, '2020-06-22 09:31:34');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1114, 1, 49, NULL, 1, 32, '2020-06-22 09:31:43', 32, '2020-06-22 09:31:43');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1115, 4, 49, NULL, 1, 32, '2020-06-22 09:31:54', 32, '2020-06-22 09:31:54');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1127, 1, 70, NULL, 1, NULL, '2020-06-22 18:20:30', NULL, '2020-06-22 18:20:30');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1128, 3, 70, NULL, 1, NULL, '2020-06-22 18:20:30', NULL, '2020-06-22 18:20:30');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1129, 4, 70, NULL, 1, NULL, '2020-06-22 18:20:30', NULL, '2020-06-22 18:20:30');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1130, 5, 70, NULL, 1, NULL, '2020-06-22 18:20:30', NULL, '2020-06-22 18:20:30');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1131, 6, 70, NULL, 1, NULL, '2020-06-22 18:20:30', NULL, '2020-06-22 18:20:30');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1142, 1, 8, NULL, 1, NULL, '2020-06-28 23:08:56', NULL, '2020-06-28 23:08:56');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1143, 3, 8, NULL, 1, NULL, '2020-06-28 23:08:56', NULL, '2020-06-28 23:08:56');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1144, 4, 8, NULL, 1, NULL, '2020-06-28 23:08:56', NULL, '2020-06-28 23:08:56');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1145, 5, 8, NULL, 1, NULL, '2020-06-28 23:08:56', NULL, '2020-06-28 23:08:56');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1146, 6, 8, NULL, 1, NULL, '2020-06-28 23:08:56', NULL, '2020-06-28 23:08:56');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1147, 1, 6, NULL, 1, NULL, '2020-06-28 23:09:39', NULL, '2020-06-28 23:09:39');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1148, 3, 6, NULL, 1, NULL, '2020-06-28 23:09:39', NULL, '2020-06-28 23:09:39');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1149, 4, 6, NULL, 1, NULL, '2020-06-28 23:09:39', NULL, '2020-06-28 23:09:39');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1150, 5, 6, NULL, 1, NULL, '2020-06-28 23:09:39', NULL, '2020-06-28 23:09:39');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1151, 6, 6, NULL, 1, NULL, '2020-06-28 23:09:39', NULL, '2020-06-28 23:09:39');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1152, 1, 4, NULL, 1, NULL, '2020-09-02 20:08:40', NULL, '2020-09-02 20:08:40');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1153, 3, 4, NULL, 1, NULL, '2020-09-02 20:08:40', NULL, '2020-09-02 20:08:40');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1154, 4, 4, NULL, 1, NULL, '2020-09-02 20:08:40', NULL, '2020-09-02 20:08:40');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1155, 5, 4, NULL, 1, NULL, '2020-09-02 20:08:40', NULL, '2020-09-02 20:08:40');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1156, 6, 4, NULL, 1, NULL, '2020-09-02 20:08:40', NULL, '2020-09-02 20:08:40');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1157, 1, 24, NULL, 1, NULL, '2020-09-03 00:50:45', NULL, '2020-09-03 00:50:45');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1158, 3, 24, NULL, 1, NULL, '2020-09-03 00:50:45', NULL, '2020-09-03 00:50:45');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1159, 4, 24, NULL, 1, NULL, '2020-09-03 00:50:45', NULL, '2020-09-03 00:50:45');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1160, 5, 24, NULL, 1, NULL, '2020-09-03 00:50:45', NULL, '2020-09-03 00:50:45');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1161, 6, 24, NULL, 1, NULL, '2020-09-03 00:50:45', NULL, '2020-09-03 00:50:45');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1167, 1, 2, NULL, 1, NULL, '2020-09-03 01:20:34', NULL, '2020-09-03 01:20:34');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1168, 3, 2, NULL, 1, NULL, '2020-09-03 01:20:34', NULL, '2020-09-03 01:20:34');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1169, 4, 2, NULL, 1, NULL, '2020-09-03 01:20:34', NULL, '2020-09-03 01:20:34');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1170, 5, 2, NULL, 1, NULL, '2020-09-03 01:20:34', NULL, '2020-09-03 01:20:34');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1171, 6, 2, NULL, 1, NULL, '2020-09-03 01:20:34', NULL, '2020-09-03 01:20:34');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1172, 1, 72, NULL, 1, NULL, '2020-09-07 20:34:00', NULL, '2020-09-07 20:34:00');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1173, 3, 72, NULL, 1, NULL, '2020-09-07 20:34:00', NULL, '2020-09-07 20:34:00');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1174, 4, 72, NULL, 1, NULL, '2020-09-07 20:34:00', NULL, '2020-09-07 20:34:00');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1175, 5, 72, NULL, 1, NULL, '2020-09-07 20:34:00', NULL, '2020-09-07 20:34:00');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1176, 6, 72, NULL, 1, NULL, '2020-09-07 20:34:00', NULL, '2020-09-07 20:34:00');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1180, 1, 85, NULL, 0, NULL, '2020-09-10 16:45:12', NULL, '2020-09-10 16:45:12');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1181, 4, 85, NULL, 0, NULL, '2020-09-10 16:45:12', NULL, '2020-09-10 16:45:12');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1182, 6, 85, NULL, 0, NULL, '2020-09-10 16:45:12', NULL, '2020-09-10 16:45:12');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1183, 6, 75, NULL, 1, NULL, '2020-10-03 17:48:06', NULL, '2020-10-03 17:48:06');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1184, 1, 87, NULL, 1, NULL, '2020-11-03 20:32:59', NULL, '2020-11-03 20:32:59');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1185, 1, 86, NULL, 1, NULL, '2020-11-03 20:45:21', NULL, '2020-11-03 20:45:21');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1191, 1, 31, NULL, 1, NULL, '2024-01-10 16:54:56', NULL, '2024-01-10 16:54:56');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1192, 3, 31, NULL, 1, NULL, '2024-01-10 16:54:56', NULL, '2024-01-10 16:54:56');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1193, 4, 31, NULL, 1, NULL, '2024-01-10 16:54:56', NULL, '2024-01-10 16:54:56');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1194, 5, 31, NULL, 1, NULL, '2024-01-10 16:54:56', NULL, '2024-01-10 16:54:56');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1195, 6, 31, NULL, 1, NULL, '2024-01-10 16:54:56', NULL, '2024-01-10 16:54:56');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1196, 6, 91, NULL, 1, NULL, '2024-01-10 17:53:34', NULL, '2024-01-10 17:53:34');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1197, 1, 9, NULL, 1, NULL, '2024-01-17 16:15:14', NULL, '2024-01-17 16:15:14');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1198, 3, 9, NULL, 1, NULL, '2024-01-17 16:15:14', NULL, '2024-01-17 16:15:14');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1199, 5, 9, NULL, 1, NULL, '2024-01-17 16:15:14', NULL, '2024-01-17 16:15:14');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1200, 6, 9, NULL, 1, NULL, '2024-01-17 16:15:14', NULL, '2024-01-17 16:15:14');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1207, 3, 90, NULL, 1, NULL, '2024-02-02 16:49:32', NULL, '2024-02-02 16:49:32');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1208, 6, 90, NULL, 1, NULL, '2024-02-02 16:49:32', NULL, '2024-02-02 16:49:32');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1214, 1, 15, NULL, 1, NULL, '2024-08-24 00:28:41', NULL, '2024-08-24 00:28:41');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1215, 3, 15, NULL, 1, NULL, '2024-08-24 00:28:41', NULL, '2024-08-24 00:28:41');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1216, 4, 15, NULL, 1, NULL, '2024-08-24 00:28:41', NULL, '2024-08-24 00:28:41');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1217, 5, 15, NULL, 1, NULL, '2024-08-24 00:28:41', NULL, '2024-08-24 00:28:41');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1218, 6, 15, NULL, 1, NULL, '2024-08-24 00:28:41', NULL, '2024-08-24 00:28:41');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1219, 1, 76, NULL, 1, NULL, '2024-08-24 00:29:18', NULL, '2024-08-24 00:29:18');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1220, 3, 76, NULL, 1, NULL, '2024-08-24 00:29:18', NULL, '2024-08-24 00:29:18');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1221, 4, 76, NULL, 1, NULL, '2024-08-24 00:29:18', NULL, '2024-08-24 00:29:18');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1222, 5, 76, NULL, 1, NULL, '2024-08-24 00:29:18', NULL, '2024-08-24 00:29:18');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1223, 6, 76, NULL, 1, NULL, '2024-08-24 00:29:18', NULL, '2024-08-24 00:29:18');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1229, 1, 84, NULL, 1, NULL, '2024-08-24 00:30:58', NULL, '2024-08-24 00:30:58');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1230, 3, 84, NULL, 1, NULL, '2024-08-24 00:30:58', NULL, '2024-08-24 00:30:58');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1231, 4, 84, NULL, 1, NULL, '2024-08-24 00:30:58', NULL, '2024-08-24 00:30:58');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1232, 5, 84, NULL, 1, NULL, '2024-08-24 00:30:58', NULL, '2024-08-24 00:30:58');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1233, 6, 84, NULL, 1, NULL, '2024-08-24 00:30:58', NULL, '2024-08-24 00:30:58');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1234, 6, 95, NULL, 1, NULL, '2024-11-13 17:46:28', NULL, '2024-11-13 17:46:28');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1235, 6, 3, NULL, 1, NULL, '2024-11-20 17:20:02', NULL, '2024-11-20 17:20:02');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1244, 1, 40, NULL, 1, NULL, '2025-04-07 16:49:31', NULL, '2025-04-07 16:49:31');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1245, 3, 40, NULL, 1, NULL, '2025-04-07 16:49:31', NULL, '2025-04-07 16:49:31');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1246, 4, 40, NULL, 1, NULL, '2025-04-07 16:49:31', NULL, '2025-04-07 16:49:31');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1247, 5, 40, NULL, 1, NULL, '2025-04-07 16:49:31', NULL, '2025-04-07 16:49:31');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1248, 6, 40, NULL, 1, NULL, '2025-04-07 16:49:31', NULL, '2025-04-07 16:49:31');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1249, 1, 5, NULL, 1, NULL, '2025-07-13 19:01:52', NULL, '2025-07-13 19:01:52');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1250, 3, 5, NULL, 1, NULL, '2025-07-13 19:01:52', NULL, '2025-07-13 19:01:52');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1251, 5, 5, NULL, 1, NULL, '2025-07-13 19:01:52', NULL, '2025-07-13 19:01:52');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1252, 6, 5, NULL, 1, NULL, '2025-07-13 19:01:52', NULL, '2025-07-13 19:01:52');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1275, 1, 77, NULL, 1, NULL, '2025-07-22 08:55:41', NULL, '2025-07-22 08:55:41');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1276, 3, 77, NULL, 1, NULL, '2025-07-22 08:55:41', NULL, '2025-07-22 08:55:41');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1277, 4, 77, NULL, 1, NULL, '2025-07-22 08:55:41', NULL, '2025-07-22 08:55:41');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1278, 5, 77, NULL, 1, NULL, '2025-07-22 08:55:41', NULL, '2025-07-22 08:55:41');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1279, 6, 77, NULL, 1, NULL, '2025-07-22 08:55:41', NULL, '2025-07-22 08:55:41');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1280, 1, 22, NULL, 1, NULL, '2025-07-22 09:55:41', NULL, '2025-07-22 09:55:41');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1281, 3, 22, NULL, 1, NULL, '2025-07-22 09:55:41', NULL, '2025-07-22 09:55:41');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1282, 4, 22, NULL, 1, NULL, '2025-07-22 09:55:41', NULL, '2025-07-22 09:55:41');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1283, 5, 22, NULL, 1, NULL, '2025-07-22 09:55:41', NULL, '2025-07-22 09:55:41');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1284, 6, 22, NULL, 1, NULL, '2025-07-22 09:55:41', NULL, '2025-07-22 09:55:41');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1285, 1, 1, NULL, 1, NULL, '2025-08-18 09:41:44', NULL, '2025-08-18 09:41:44');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1286, 3, 1, NULL, 1, NULL, '2025-08-18 09:41:44', NULL, '2025-08-18 09:41:44');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1287, 4, 1, NULL, 1, NULL, '2025-08-18 09:41:44', NULL, '2025-08-18 09:41:44');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1288, 6, 1, NULL, 1, NULL, '2025-08-18 09:41:44', NULL, '2025-08-18 09:41:44');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1294, 1, 78, NULL, 1, NULL, '2025-11-13 16:56:31', NULL, '2025-11-13 16:56:31');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1295, 3, 78, NULL, 1, NULL, '2025-11-13 16:56:31', NULL, '2025-11-13 16:56:31');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1296, 4, 78, NULL, 1, NULL, '2025-11-13 16:56:31', NULL, '2025-11-13 16:56:31');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1297, 5, 78, NULL, 1, NULL, '2025-11-13 16:56:31', NULL, '2025-11-13 16:56:31');
INSERT INTO `txe_tipo_planillaxempleado` VALUES (1298, 6, 78, NULL, 1, NULL, '2025-11-13 16:56:31', NULL, '2025-11-13 16:56:31');

-- ----------------------------
-- Table structure for txe_turnoxempleado
-- ----------------------------
CREATE TABLE `txe_turnoxempleado`  (
  `txe_id` int(11) NOT NULL AUTO_INCREMENT,
  `txe_id_tur` int(11) NOT NULL,
  `txe_id_emp` int(11) NOT NULL,
  `txe_id_tiu` int(11) NULL DEFAULT NULL,
  `txe_desde` date NOT NULL,
  `txe_hasta` date NULL DEFAULT NULL,
  `txe_indefinido` tinyint(4) NOT NULL,
  `txe_adicional` tinyint(4) NOT NULL,
  `txe_estado` tinyint(4) NOT NULL,
  `txe_usu_mod` int(11) NOT NULL,
  `txe_fecha_mod` datetime NOT NULL,
  PRIMARY KEY (`txe_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of txe_turnoxempleado
-- ----------------------------
INSERT INTO `txe_turnoxempleado` VALUES (1, 1, 1, 1, '2022-01-01', NULL, 1, 0, 1, 1, '2022-06-10 12:45:09');
INSERT INTO `txe_turnoxempleado` VALUES (2, 3, 8, 3, '2024-02-01', '2024-12-31', 0, 0, 1, 1, '2024-02-21 14:53:57');
INSERT INTO `txe_turnoxempleado` VALUES (3, 2, 6, 1, '2023-01-01', NULL, 1, 0, 1, 1, '2023-05-03 23:00:07');
INSERT INTO `txe_turnoxempleado` VALUES (4, 2, 3, NULL, '2023-01-01', NULL, 1, 0, 1, 1, '2023-05-04 08:14:51');
INSERT INTO `txe_turnoxempleado` VALUES (5, 1, 4, NULL, '2023-03-01', NULL, 1, 0, 1, 1, '2023-05-04 09:01:27');
INSERT INTO `txe_turnoxempleado` VALUES (6, 2, 16, NULL, '2024-01-29', '2024-02-02', 0, 0, 1, 1, '2024-01-25 11:15:00');
INSERT INTO `txe_turnoxempleado` VALUES (7, 2, 86, 1, '2023-01-01', NULL, 1, 0, 1, 1, '2024-01-25 11:38:07');
INSERT INTO `txe_turnoxempleado` VALUES (8, 3, 2, 3, '2024-04-01', '2024-04-30', 0, 0, 1, 1, '2024-04-29 11:23:02');
INSERT INTO `txe_turnoxempleado` VALUES (9, 3, 2, NULL, '2024-08-01', NULL, 1, 0, 1, 1, '2024-07-29 12:26:52');

-- ----------------------------
-- Table structure for txm_telefonoxempleado
-- ----------------------------
CREATE TABLE `txm_telefonoxempleado`  (
  `txm_id` int(11) NOT NULL AUTO_INCREMENT,
  `txm_id_tel` int(11) NOT NULL,
  `txm_id_emp` int(11) NOT NULL,
  PRIMARY KEY (`txm_id`) USING BTREE,
  INDEX `fk_txm_id_emp`(`txm_id_emp` ASC) USING BTREE,
  INDEX `fk_txm_id_tel`(`txm_id_tel` ASC) USING BTREE,
  CONSTRAINT `fk_txm_id_emp` FOREIGN KEY (`txm_id_emp`) REFERENCES `emp_empleado` (`emp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_txm_id_tel` FOREIGN KEY (`txm_id_tel`) REFERENCES `tel_telefono` (`tel_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 82 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of txm_telefonoxempleado
-- ----------------------------
INSERT INTO `txm_telefonoxempleado` VALUES (1, 1, 48);
INSERT INTO `txm_telefonoxempleado` VALUES (3, 3, 67);
INSERT INTO `txm_telefonoxempleado` VALUES (4, 4, 68);
INSERT INTO `txm_telefonoxempleado` VALUES (5, 5, 68);
INSERT INTO `txm_telefonoxempleado` VALUES (6, 6, 70);
INSERT INTO `txm_telefonoxempleado` VALUES (8, 8, 70);
INSERT INTO `txm_telefonoxempleado` VALUES (10, 10, 29);
INSERT INTO `txm_telefonoxempleado` VALUES (12, 12, 71);
INSERT INTO `txm_telefonoxempleado` VALUES (13, 13, 71);
INSERT INTO `txm_telefonoxempleado` VALUES (14, 14, 72);
INSERT INTO `txm_telefonoxempleado` VALUES (15, 15, 72);
INSERT INTO `txm_telefonoxempleado` VALUES (16, 16, 73);
INSERT INTO `txm_telefonoxempleado` VALUES (17, 17, 73);
INSERT INTO `txm_telefonoxempleado` VALUES (18, 18, 35);
INSERT INTO `txm_telefonoxempleado` VALUES (20, 20, 74);
INSERT INTO `txm_telefonoxempleado` VALUES (21, 21, 76);
INSERT INTO `txm_telefonoxempleado` VALUES (22, 22, 1);
INSERT INTO `txm_telefonoxempleado` VALUES (23, 23, 2);
INSERT INTO `txm_telefonoxempleado` VALUES (24, 24, 2);
INSERT INTO `txm_telefonoxempleado` VALUES (25, 25, 2);
INSERT INTO `txm_telefonoxempleado` VALUES (26, 26, 4);
INSERT INTO `txm_telefonoxempleado` VALUES (27, 27, 4);
INSERT INTO `txm_telefonoxempleado` VALUES (28, 28, 6);
INSERT INTO `txm_telefonoxempleado` VALUES (29, 29, 8);
INSERT INTO `txm_telefonoxempleado` VALUES (30, 30, 8);
INSERT INTO `txm_telefonoxempleado` VALUES (31, 31, 9);
INSERT INTO `txm_telefonoxempleado` VALUES (32, 32, 10);
INSERT INTO `txm_telefonoxempleado` VALUES (33, 33, 15);
INSERT INTO `txm_telefonoxempleado` VALUES (34, 34, 18);
INSERT INTO `txm_telefonoxempleado` VALUES (35, 35, 22);
INSERT INTO `txm_telefonoxempleado` VALUES (36, 36, 23);
INSERT INTO `txm_telefonoxempleado` VALUES (37, 37, 24);
INSERT INTO `txm_telefonoxempleado` VALUES (38, 38, 25);
INSERT INTO `txm_telefonoxempleado` VALUES (39, 39, 26);
INSERT INTO `txm_telefonoxempleado` VALUES (40, 40, 27);
INSERT INTO `txm_telefonoxempleado` VALUES (41, 41, 28);
INSERT INTO `txm_telefonoxempleado` VALUES (42, 42, 30);
INSERT INTO `txm_telefonoxempleado` VALUES (43, 43, 31);
INSERT INTO `txm_telefonoxempleado` VALUES (44, 44, 32);
INSERT INTO `txm_telefonoxempleado` VALUES (45, 45, 33);
INSERT INTO `txm_telefonoxempleado` VALUES (46, 46, 34);
INSERT INTO `txm_telefonoxempleado` VALUES (47, 47, 36);
INSERT INTO `txm_telefonoxempleado` VALUES (48, 48, 40);
INSERT INTO `txm_telefonoxempleado` VALUES (49, 49, 41);
INSERT INTO `txm_telefonoxempleado` VALUES (50, 50, 43);
INSERT INTO `txm_telefonoxempleado` VALUES (51, 51, 44);
INSERT INTO `txm_telefonoxempleado` VALUES (52, 52, 45);
INSERT INTO `txm_telefonoxempleado` VALUES (53, 53, 46);
INSERT INTO `txm_telefonoxempleado` VALUES (54, 54, 49);
INSERT INTO `txm_telefonoxempleado` VALUES (55, 55, 50);
INSERT INTO `txm_telefonoxempleado` VALUES (56, 56, 51);
INSERT INTO `txm_telefonoxempleado` VALUES (57, 57, 76);
INSERT INTO `txm_telefonoxempleado` VALUES (58, 58, 77);
INSERT INTO `txm_telefonoxempleado` VALUES (59, 59, 79);
INSERT INTO `txm_telefonoxempleado` VALUES (60, 60, 80);
INSERT INTO `txm_telefonoxempleado` VALUES (61, 61, 81);
INSERT INTO `txm_telefonoxempleado` VALUES (62, 62, 82);
INSERT INTO `txm_telefonoxempleado` VALUES (63, 63, 83);
INSERT INTO `txm_telefonoxempleado` VALUES (64, 64, 37);
INSERT INTO `txm_telefonoxempleado` VALUES (65, 65, 85);
INSERT INTO `txm_telefonoxempleado` VALUES (66, 66, 86);
INSERT INTO `txm_telefonoxempleado` VALUES (67, 67, 87);
INSERT INTO `txm_telefonoxempleado` VALUES (68, 68, 91);
INSERT INTO `txm_telefonoxempleado` VALUES (69, 69, 91);
INSERT INTO `txm_telefonoxempleado` VALUES (70, 70, 1);
INSERT INTO `txm_telefonoxempleado` VALUES (71, 71, 94);
INSERT INTO `txm_telefonoxempleado` VALUES (72, 72, 95);
INSERT INTO `txm_telefonoxempleado` VALUES (73, 73, 96);
INSERT INTO `txm_telefonoxempleado` VALUES (74, 74, 40);
INSERT INTO `txm_telefonoxempleado` VALUES (75, 75, 77);
INSERT INTO `txm_telefonoxempleado` VALUES (76, 76, 13);
INSERT INTO `txm_telefonoxempleado` VALUES (77, 77, 13);
INSERT INTO `txm_telefonoxempleado` VALUES (78, 78, 4195);
INSERT INTO `txm_telefonoxempleado` VALUES (79, 79, 4210);
INSERT INTO `txm_telefonoxempleado` VALUES (80, 80, 78);
INSERT INTO `txm_telefonoxempleado` VALUES (81, 81, 4216);

-- ----------------------------
-- Table structure for txr_tipo_constanciaxempresa
-- ----------------------------
CREATE TABLE `txr_tipo_constanciaxempresa`  (
  `txr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave Principal - Tipo de constancia por empresa',
  `txr_id_tpo` int(11) NULL DEFAULT NULL COMMENT 'Llave Principal - Tipo de Formato de constancia',
  `txr_id_emr` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de empresa',
  `txr_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro',
  `txr_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `txr_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `txr_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `txr_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`txr_id`) USING BTREE,
  INDEX `fk_txr_id_emr`(`txr_id_emr` ASC) USING BTREE,
  INDEX `fk_txr_id_tpo`(`txr_id_tpo` ASC) USING BTREE,
  CONSTRAINT `fk_txr_id_emr` FOREIGN KEY (`txr_id_emr`) REFERENCES `emr_empresa` (`emr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_txr_id_tpo` FOREIGN KEY (`txr_id_tpo`) REFERENCES `tpo_tipo_constancia` (`tpo_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Vínculación de empresas por areas' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of txr_tipo_constanciaxempresa
-- ----------------------------

-- ----------------------------
-- Table structure for txr_tipo_partidaxreporte
-- ----------------------------
CREATE TABLE `txr_tipo_partidaxreporte`  (
  `txr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal  -  Tipo de partida por reporte',
  `txr_id_rep` int(11) NOT NULL COMMENT 'Llave principal  -  Reportes contables',
  `txr_id_tpd` int(11) NOT NULL COMMENT 'Llave principal  - Tipos de partidas',
  `txr_estado` int(11) NOT NULL COMMENT 'Estado de registro (1=activo, 0=inactivo)',
  `txr_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `txr_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `txr_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `txr_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`txr_id`) USING BTREE,
  INDEX `fk_txr_id_rep`(`txr_id_rep` ASC) USING BTREE,
  INDEX `fk_txr_id_tpd`(`txr_id_tpd` ASC) USING BTREE,
  CONSTRAINT `fk_txr_id_rep` FOREIGN KEY (`txr_id_rep`) REFERENCES `rep_reporte_contable` (`rep_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_txr_id_tpd` FOREIGN KEY (`txr_id_tpd`) REFERENCES `tpd_tipo_partida` (`tpd_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Tipo de partida por reporte contable' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of txr_tipo_partidaxreporte
-- ----------------------------

-- ----------------------------
-- Table structure for txt_tabla_llamadaxtipo_medio
-- ----------------------------
CREATE TABLE `txt_tabla_llamadaxtipo_medio`  (
  `txt_id` int(11) NOT NULL AUTO_INCREMENT,
  `txt_id_tbl` int(11) NOT NULL,
  `txt_id_tmc` int(11) NOT NULL,
  PRIMARY KEY (`txt_id`) USING BTREE,
  INDEX `FK_tbl_tabla_llamada`(`txt_id_tbl` ASC) USING BTREE,
  INDEX `FK_tmc_tipo_medio`(`txt_id_tmc` ASC) USING BTREE,
  CONSTRAINT `FK_tbl_tabla_llamada` FOREIGN KEY (`txt_id_tbl`) REFERENCES `tbl_tabla_llamadas` (`tbl_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `FK_tmc_tipo_medio` FOREIGN KEY (`txt_id_tmc`) REFERENCES `tmc_tipo_medio` (`tmc_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of txt_tabla_llamadaxtipo_medio
-- ----------------------------

-- ----------------------------
-- Table structure for txt_tipo_planillaxtipo_isr
-- ----------------------------
CREATE TABLE `txt_tipo_planillaxtipo_isr`  (
  `txt_id` int(11) NOT NULL AUTO_INCREMENT,
  `txt_id_tpl` int(11) NULL DEFAULT NULL,
  `txt_id_tis` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`txt_id`) USING BTREE,
  INDEX `fk_txt_x_tis`(`txt_id_tis` ASC) USING BTREE,
  INDEX `fk_txt_x_tpl`(`txt_id_tpl` ASC) USING BTREE,
  CONSTRAINT `fk_txt_x_tis` FOREIGN KEY (`txt_id_tis`) REFERENCES `tis_tipo_isr` (`tis_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_txt_x_tpl` FOREIGN KEY (`txt_id_tpl`) REFERENCES `tpl_tipo_planilla` (`tpl_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of txt_tipo_planillaxtipo_isr
-- ----------------------------
INSERT INTO `txt_tipo_planillaxtipo_isr` VALUES (1, 3, 6);
INSERT INTO `txt_tipo_planillaxtipo_isr` VALUES (2, 3, 5);
INSERT INTO `txt_tipo_planillaxtipo_isr` VALUES (3, 6, 1);
INSERT INTO `txt_tipo_planillaxtipo_isr` VALUES (4, 6, 4);
INSERT INTO `txt_tipo_planillaxtipo_isr` VALUES (5, 6, 5);
INSERT INTO `txt_tipo_planillaxtipo_isr` VALUES (6, 1, 2);
INSERT INTO `txt_tipo_planillaxtipo_isr` VALUES (7, 1, 4);
INSERT INTO `txt_tipo_planillaxtipo_isr` VALUES (8, 1, 5);
INSERT INTO `txt_tipo_planillaxtipo_isr` VALUES (13, 9, 1);
INSERT INTO `txt_tipo_planillaxtipo_isr` VALUES (16, 8, 3);
INSERT INTO `txt_tipo_planillaxtipo_isr` VALUES (17, 8, 4);

-- ----------------------------
-- Table structure for uba_ubicacion_activo
-- ----------------------------
CREATE TABLE `uba_ubicacion_activo`  (
  `uba_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID Ubicacion Activo',
  `uba_codigo` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Codigo Ubicacion',
  `uba_nombre` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Nombre Ubicacion',
  `uba_estado` int(11) NULL DEFAULT NULL COMMENT 'Estado Ubicacion',
  `uba_user_crea` int(11) NULL DEFAULT NULL COMMENT 'Usuario Creacion, 0 - Inactivo 1- Activo',
  `uba_fecha_crea` datetime NULL DEFAULT NULL COMMENT 'Fecha Creacion',
  `uba_user_mod` int(11) NULL DEFAULT NULL COMMENT 'Usuario Modificacion',
  `uba_fecha_mod` datetime NULL DEFAULT NULL COMMENT 'Fecha Modificacion',
  PRIMARY KEY (`uba_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of uba_ubicacion_activo
-- ----------------------------

-- ----------------------------
-- Table structure for uba_ubicacion_archivo
-- ----------------------------
CREATE TABLE `uba_ubicacion_archivo`  (
  `uba_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de ubicación',
  `uba_id_padre` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de ubicación (padre)',
  `uba_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre',
  `uba_nombre_clean` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Nombre limpio',
  `uba_ruta` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'ruta',
  `uba_descripcion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripcion del registro',
  `uba_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `uba_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `uba_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `uba_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `uba_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`uba_id`) USING BTREE,
  INDEX `fk_uba_id_padre`(`uba_id_padre` ASC) USING BTREE,
  CONSTRAINT `fk_uba_id_padre` FOREIGN KEY (`uba_id_padre`) REFERENCES `uba_ubicacion_archivo` (`uba_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Ubicación de archivos.' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of uba_ubicacion_archivo
-- ----------------------------
INSERT INTO `uba_ubicacion_archivo` VALUES (1, NULL, 'Repositorio 1', 'Repositorio_1', 'uploads/archivos_modulo_gestion/Repositorio_1', NULL, 1, 1, '2022-11-23 17:01:09', 1, '2022-11-23 17:01:09');
INSERT INTO `uba_ubicacion_archivo` VALUES (2, NULL, 'Contratos', 'Contratos', 'uploads/archivos_modulo_gestion/Contratos', NULL, 1, 1, '2024-10-23 13:56:31', 1, '2024-10-23 13:56:31');
INSERT INTO `uba_ubicacion_archivo` VALUES (3, NULL, 'test', 'test', 'uploads/facturacion/facturacionelectronica/test', NULL, 1, 65, '2024-11-20 19:17:20', 65, '2024-11-20 19:17:20');
INSERT INTO `uba_ubicacion_archivo` VALUES (4, NULL, 'Imagenes', 'Imagenes', 'uploads/uploads/archivos_modulo_gestion/Imagenes', NULL, 1, 65, '2025-01-28 17:17:48', 65, '2025-01-28 17:17:48');
INSERT INTO `uba_ubicacion_archivo` VALUES (5, NULL, 'test', 'test', 'uploads/uploads/archivos_modulo_gestion/test', NULL, 1, 1, '2025-01-29 12:17:16', 1, '2025-01-29 12:17:16');
INSERT INTO `uba_ubicacion_archivo` VALUES (6, NULL, 'INTRANET', 'INTRANET', 'uploads/archivos_modulo_gestion/INTRANET', NULL, 1, 1, '2025-02-10 14:37:27', 1, '2025-02-10 14:37:27');
INSERT INTO `uba_ubicacion_archivo` VALUES (7, 6, 'Leyes', 'Leyes', 'uploads/archivos_modulo_gestion/INTRANET/Leyes', NULL, 1, 1, '2025-02-10 14:37:59', 1, '2025-02-10 14:37:59');
INSERT INTO `uba_ubicacion_archivo` VALUES (8, 6, 'Formularios', 'Formularios', 'uploads/archivos_modulo_gestion/INTRANET/Formularios', NULL, 1, 1, '2025-02-10 14:37:59', 1, '2025-02-10 14:37:59');
INSERT INTO `uba_ubicacion_archivo` VALUES (9, 6, 'Manuales', 'Manuales', 'uploads/archivos_modulo_gestion/INTRANET/Manuales', NULL, 1, 1, '2025-02-10 14:37:59', 1, '2025-02-10 14:37:59');
INSERT INTO `uba_ubicacion_archivo` VALUES (10, NULL, 'BancoAgricola', 'BancoAgricola', 'uploads/archivos_modulo_gestion/BancoAgricola', NULL, 1, 1, '2025-02-18 08:39:33', 1, '2025-02-18 08:39:33');
INSERT INTO `uba_ubicacion_archivo` VALUES (11, NULL, 'Raiz1', 'Raiz1', 'uploads/archivos_modulo_gestion/Raiz1', NULL, 1, 1, '2025-02-20 17:28:22', 1, '2025-02-20 17:28:22');
INSERT INTO `uba_ubicacion_archivo` VALUES (12, 11, 'Raiz2', 'Raiz2', 'uploads/archivos_modulo_gestion/Raiz1/Raiz2', NULL, 1, 1, '2025-02-20 17:28:50', 1, '2025-02-20 17:28:50');
INSERT INTO `uba_ubicacion_archivo` VALUES (13, 12, 'Raiz3', 'Raiz3', 'uploads/archivos_modulo_gestion/Raiz1//Raiz2/Raiz3', NULL, 1, 1, '2025-02-20 17:29:01', 1, '2025-02-20 17:29:01');

-- ----------------------------
-- Table structure for ubi_ubicacion
-- ----------------------------
CREATE TABLE `ubi_ubicacion`  (
  `ubi_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Identificación unico',
  `ubi_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '' COMMENT 'Nombre de la ubicacion',
  `ubi_estado` tinyint(4) NOT NULL COMMENT 'estado del registro',
  `ubi_usu_mod` int(11) NOT NULL COMMENT 'auditoria',
  `ubi_fecha_mod` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`ubi_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Ubicacion de activos fijos' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ubi_ubicacion
-- ----------------------------
INSERT INTO `ubi_ubicacion` VALUES (1, 'Gerencias', 1, 1, '2019-02-19 15:16:30');
INSERT INTO `ubi_ubicacion` VALUES (2, 'Oficinas Compras', 1, 1, '2019-02-19 15:16:30');
INSERT INTO `ubi_ubicacion` VALUES (3, 'Informatica', 1, 1, '2019-02-19 15:16:30');
INSERT INTO `ubi_ubicacion` VALUES (4, 'Oficinas Administrativas', 1, 1, '2019-02-19 15:16:30');
INSERT INTO `ubi_ubicacion` VALUES (5, 'Almacenamiento PT', 1, 1, '2019-02-19 15:16:30');
INSERT INTO `ubi_ubicacion` VALUES (6, 'Oficinas Produccion y Laboratorio', 1, 1, '2019-02-19 15:16:30');
INSERT INTO `ubi_ubicacion` VALUES (7, 'Planta de Produccion', 1, 1, '2019-02-19 15:16:30');
INSERT INTO `ubi_ubicacion` VALUES (8, 'Planta de Aerosoles', 1, 1, '2019-02-19 15:16:30');
INSERT INTO `ubi_ubicacion` VALUES (9, 'Taller de Mantenimiento', 1, 1, '2019-02-19 15:16:30');
INSERT INTO `ubi_ubicacion` VALUES (10, 'Almacenamiento MP', 1, 1, '2019-02-19 15:16:30');
INSERT INTO `ubi_ubicacion` VALUES (11, 'Santa Tecla', 1, 1, '2019-10-09 00:00:00');
INSERT INTO `ubi_ubicacion` VALUES (12, 'Ventas', 1, 1, '2019-10-09 00:00:00');
INSERT INTO `ubi_ubicacion` VALUES (13, 'Santa Tecla', 1, 1, '2020-03-31 00:00:00');
INSERT INTO `ubi_ubicacion` VALUES (14, 'Externo', 1, 1, '2020-03-31 00:00:00');

-- ----------------------------
-- Table structure for ubp_ubicacion_plaza
-- ----------------------------
CREATE TABLE `ubp_ubicacion_plaza`  (
  `ubp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de ubicación de plaza',
  `ubp_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de ubicación para la plaza',
  `ubp_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `ubp_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `ubp_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `ubp_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `ubp_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`ubp_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Ubicaciones de plazas' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ubp_ubicacion_plaza
-- ----------------------------
INSERT INTO `ubp_ubicacion_plaza` VALUES (1, 'Gerencias', 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `ubp_ubicacion_plaza` VALUES (2, 'Oficinas Compras', 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `ubp_ubicacion_plaza` VALUES (3, 'Informatica', 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `ubp_ubicacion_plaza` VALUES (4, 'Oficinas Administrativas', 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `ubp_ubicacion_plaza` VALUES (5, 'Almacenamiento PT', 1, 1, '2019-02-19 15:16:30', 0, '2019-02-19 15:16:30');
INSERT INTO `ubp_ubicacion_plaza` VALUES (6, 'Oficinas Produccion y Laboratorio', 1, 1, '2019-02-19 15:16:30', 0, '2019-02-19 15:16:30');
INSERT INTO `ubp_ubicacion_plaza` VALUES (7, 'Planta de Produccion', 1, 1, '2019-02-19 15:16:30', 0, '2019-02-19 15:16:30');
INSERT INTO `ubp_ubicacion_plaza` VALUES (8, 'Planta de Aerosoles', 1, 1, '2019-02-19 15:16:30', 0, '2019-02-19 15:16:30');
INSERT INTO `ubp_ubicacion_plaza` VALUES (9, 'Taller de Mantenimiento', 1, 1, '2019-02-19 15:16:30', 0, '2019-02-19 15:16:30');
INSERT INTO `ubp_ubicacion_plaza` VALUES (10, 'Almacenamiento MP', 1, 1, '2019-02-19 15:16:30', 0, '2019-02-19 15:16:30');
INSERT INTO `ubp_ubicacion_plaza` VALUES (11, 'Santa Tecla', 1, 1, '2019-10-09 00:00:00', 1, '2019-10-09 00:00:00');
INSERT INTO `ubp_ubicacion_plaza` VALUES (12, 'Ventas', 1, 1, '2019-10-09 00:00:00', 1, '2019-10-09 00:00:00');
INSERT INTO `ubp_ubicacion_plaza` VALUES (13, 'Santa Tecla', 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `ubp_ubicacion_plaza` VALUES (14, 'Externo', 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');

-- ----------------------------
-- Table structure for ubt_ubicacion_tarea
-- ----------------------------
CREATE TABLE `ubt_ubicacion_tarea`  (
  `ubt_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'codigo de ubicacion',
  `ubt_nombre` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'nombre de ubicacion',
  `ubt_estado` int(11) NOT NULL COMMENT 'estado de registro',
  `ubt_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `ubt_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `ubt_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `ubt_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`ubt_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'catalogo de ubicaciones/destinos  de tarea' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ubt_ubicacion_tarea
-- ----------------------------
INSERT INTO `ubt_ubicacion_tarea` VALUES (1, 'Santa Ana', 1, 1, 1, '2023-01-18 17:58:30', '2023-01-18 17:58:30');
INSERT INTO `ubt_ubicacion_tarea` VALUES (2, 'San Miguel', 1, 1, 1, '2023-01-18 17:58:39', '2023-01-18 17:58:39');

-- ----------------------------
-- Table structure for udp_usuarioxdetalle_presupuesto
-- ----------------------------
CREATE TABLE `udp_usuarioxdetalle_presupuesto`  (
  `udp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de usuario por detalle presupuesto',
  `udp_id_usu` int(11) NOT NULL COMMENT 'Llave principal de Usuario.',
  `udp_id_dps` int(11) NOT NULL COMMENT 'Llave principal de detalle de prusupuesto',
  `udp_estado` tinyint(4) NOT NULL COMMENT 'Estado de registro 0=inactivo, 1=activo',
  `udp_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `udp_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `udp_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `udp_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`udp_id`) USING BTREE,
  INDEX `fk_udp_id_dps`(`udp_id_dps` ASC) USING BTREE,
  INDEX `fk_udp_id_usu`(`udp_id_usu` ASC) USING BTREE,
  CONSTRAINT `fk_udp_id_dps` FOREIGN KEY (`udp_id_dps`) REFERENCES `dps_detalle_presupuesto` (`dps_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_udp_id_usu` FOREIGN KEY (`udp_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Usuario por detalle de presupuesto' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of udp_usuarioxdetalle_presupuesto
-- ----------------------------
INSERT INTO `udp_usuarioxdetalle_presupuesto` VALUES (1, 1, 1, 1, 1, '2022-01-07 16:26:34', 1, '2022-01-07 16:26:34');
INSERT INTO `udp_usuarioxdetalle_presupuesto` VALUES (2, 1, 2, 1, 1, '2025-02-24 16:42:23', 1, '2025-02-24 16:42:23');

-- ----------------------------
-- Table structure for uhp_uso_horas_permisos
-- ----------------------------
CREATE TABLE `uhp_uso_horas_permisos`  (
  `uhp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal',
  `uhp_id_hxe` int(11) NOT NULL COMMENT 'Llave principal Permiso (horasXempleado)',
  `uhp_id_thf` int(11) NOT NULL COMMENT 'Llave principal Tipo de permiso',
  `uhp_numero_horas` decimal(19, 2) NOT NULL COMMENT 'Cantidad en Horas a consumir',
  `uhp_fecha_desde` date NOT NULL COMMENT 'Fecha que inicia el permiso',
  `uhp_fecha_hasta` date NULL DEFAULT NULL COMMENT 'Fecha que termina el permiso',
  `uhp_hora_inicio` time NULL DEFAULT NULL COMMENT 'Hora que inicia el permiso',
  `uhp_hora_fin` time NULL DEFAULT NULL COMMENT 'Hora en que termina el permiso',
  `uhp_autorizado` tinyint(4) NULL DEFAULT NULL COMMENT 'Permiso autorizado 1=si/0=no',
  `uhp_usu_autorizo` int(11) NULL DEFAULT NULL COMMENT 'Usuario que autorizo',
  `uhp_fecha_autorizacion` datetime NULL DEFAULT NULL COMMENT 'Fecha/hora de autorizacion',
  `uhp_observaciones` varchar(1000) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Comentario al autorizar / rechazar',
  `uhp_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo/0=inactivo',
  `uhp_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `uhp_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `uhp_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `uhp_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`uhp_id`) USING BTREE,
  INDEX `fk_uhp_id_hxe`(`uhp_id_hxe` ASC) USING BTREE,
  INDEX `fk_uhp_id_thf`(`uhp_id_thf` ASC) USING BTREE,
  CONSTRAINT `fk_uhp_id_hxe` FOREIGN KEY (`uhp_id_hxe`) REFERENCES `hxe_hora_extraxempleado` (`hxe_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_uhp_id_thf` FOREIGN KEY (`uhp_id_thf`) REFERENCES `thf_tipo_hora_faltante` (`thf_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 21 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Registro del consumo del tiempo asignado por tipo de permiso' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of uhp_uso_horas_permisos
-- ----------------------------
INSERT INTO `uhp_uso_horas_permisos` VALUES (1, 29, 1, 16.00, '2024-08-01', '2024-08-02', NULL, NULL, 0, NULL, NULL, NULL, 1, 1, '2024-08-01 13:50:46', 1, '2024-08-01 13:50:46');
INSERT INTO `uhp_uso_horas_permisos` VALUES (2, 31, 1, 8.00, '2024-09-03', '2024-09-03', NULL, NULL, 0, NULL, NULL, NULL, 1, 1, '2024-08-23 15:10:55', 1, '2024-08-23 15:10:55');
INSERT INTO `uhp_uso_horas_permisos` VALUES (3, 33, 5, 8.00, '2024-11-21', '2024-11-21', NULL, NULL, 1, 1, '2024-11-20 09:51:04', 'Se aprueba', 1, 1, '2024-11-20 09:49:14', 1, '2024-11-20 09:51:04');
INSERT INTO `uhp_uso_horas_permisos` VALUES (4, 34, 3, 2.00, '2024-12-18', '2024-12-18', '08:00:00', '10:00:00', 0, NULL, NULL, NULL, 1, 1, '2024-12-17 13:49:07', 1, '2024-12-17 13:49:07');
INSERT INTO `uhp_uso_horas_permisos` VALUES (5, 36, 1, 32.00, '2025-02-10', '2025-02-13', NULL, NULL, 0, NULL, NULL, NULL, 1, 1, '2025-02-13 12:05:56', 1, '2025-02-13 12:05:56');
INSERT INTO `uhp_uso_horas_permisos` VALUES (6, 37, 8, 16.00, '2025-07-24', '2025-07-25', NULL, NULL, 0, NULL, NULL, NULL, 1, 1, '2025-07-21 11:10:58', 1, '2025-07-21 11:10:58');
INSERT INTO `uhp_uso_horas_permisos` VALUES (7, 38, 8, 16.00, '2025-07-24', '2025-07-25', NULL, NULL, 1, 1, '2025-07-21 15:55:23', 'APROBADO', 1, 1, '2025-07-21 15:52:53', 1, '2025-07-21 15:55:23');
INSERT INTO `uhp_uso_horas_permisos` VALUES (8, 39, 7, 2.00, '2025-07-28', '2025-07-28', '08:00:00', '10:00:00', 1, 1, '2025-07-21 16:55:58', 'OK', 1, 1, '2025-07-21 16:55:02', 1, '2025-07-21 16:55:58');
INSERT INTO `uhp_uso_horas_permisos` VALUES (9, 40, 1, 4.00, '2025-07-22', '2025-07-22', '12:00:00', '16:00:00', 1, 1, '2025-07-22 10:41:44', 'Aprobado', 1, 1, '2025-07-22 10:41:03', 1, '2025-07-22 10:41:44');
INSERT INTO `uhp_uso_horas_permisos` VALUES (10, 41, 9, 16.00, '2025-07-24', '2025-07-25', NULL, NULL, 1, 1, '2025-07-22 10:58:55', 'OK', 1, 1, '2025-07-22 10:57:26', 1, '2025-07-22 10:58:55');
INSERT INTO `uhp_uso_horas_permisos` VALUES (11, 42, 7, 1.00, '2025-07-25', '2025-07-25', '16:00:00', '17:00:00', 1, 1, '2025-07-22 11:16:49', 'OK', 1, 1, '2025-07-22 11:16:21', 1, '2025-07-22 11:16:49');
INSERT INTO `uhp_uso_horas_permisos` VALUES (12, 43, 13, 2.00, '2025-08-04', '2025-08-04', '08:00:00', '10:00:00', 0, NULL, NULL, 'no se puede', 0, 1, '2025-08-18 08:10:03', 1, '2025-08-18 08:33:20');
INSERT INTO `uhp_uso_horas_permisos` VALUES (13, 44, 12, 1.00, '2025-08-12', '2025-08-12', '08:00:00', '09:00:00', 1, 1, '2025-08-18 08:33:52', 'ok', 1, 1, '2025-08-18 08:20:41', 1, '2025-08-18 08:33:52');
INSERT INTO `uhp_uso_horas_permisos` VALUES (14, 45, 13, 2.00, '2025-08-15', '2025-08-15', '15:00:00', '17:00:00', 1, 1, '2025-08-18 08:33:36', 'ok', 1, 1, '2025-08-18 08:21:15', 1, '2025-08-18 08:33:36');
INSERT INTO `uhp_uso_horas_permisos` VALUES (15, 46, 13, 4.00, '2025-08-22', '2025-08-22', '13:00:00', '17:00:00', 1, 1, '2025-08-18 09:50:51', 'Se aprueba en fecha 18-8-2025', 1, 1, '2025-08-18 09:49:20', 1, '2025-08-18 09:50:51');
INSERT INTO `uhp_uso_horas_permisos` VALUES (16, 47, 13, 3.50, '2025-08-20', '2025-08-20', '08:30:00', '12:00:00', 1, 1, '2025-08-20 15:22:17', 'Aprobado por jefe inmediato', 1, 1, '2025-08-20 15:21:02', 1, '2025-08-20 15:22:17');
INSERT INTO `uhp_uso_horas_permisos` VALUES (17, 48, 6, 4.00, '2025-11-15', '2025-11-15', '08:30:00', '12:30:00', 1, 1, '2025-11-13 11:37:03', 'ok', 1, 1, '2025-11-13 11:30:38', 1, '2025-11-13 11:37:03');
INSERT INTO `uhp_uso_horas_permisos` VALUES (18, 49, 10, 120.00, '2025-12-01', '2025-12-15', NULL, NULL, 1, 1, '2025-11-13 11:37:16', 'ok', 1, 1, '2025-11-13 11:31:45', 1, '2025-11-13 11:37:16');
INSERT INTO `uhp_uso_horas_permisos` VALUES (19, 50, 8, 4.00, '2025-11-13', '2025-11-13', '08:00:00', '12:00:00', 1, 1, '2025-11-13 11:44:18', 'Aprobado', 1, 1, '2025-11-13 11:43:45', 1, '2025-11-13 11:44:18');
INSERT INTO `uhp_uso_horas_permisos` VALUES (20, 51, 10, 5.00, '2025-11-13', '2025-11-13', '15:47:00', '20:47:00', 1, 1, '2025-11-13 11:49:27', '--', 1, 1, '2025-11-13 11:48:31', 1, '2025-11-13 11:49:27');

-- ----------------------------
-- Table structure for uni_unidad
-- ----------------------------
CREATE TABLE `uni_unidad`  (
  `uni_id` int(11) NOT NULL AUTO_INCREMENT,
  `uni_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `uni_descripcion` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
  `uni_estado` tinyint(4) NOT NULL,
  `uni_usu_creacion` int(11) NOT NULL,
  `uni_usu_modificacion` int(11) NOT NULL,
  `uni_fecha_creacion` datetime NOT NULL,
  `uni_fecha_modificacion` datetime NOT NULL,
  PRIMARY KEY (`uni_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of uni_unidad
-- ----------------------------

-- ----------------------------
-- Table structure for unm_unidad_modulo
-- ----------------------------
CREATE TABLE `unm_unidad_modulo`  (
  `unm_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria del registro',
  `unm_codigo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Codigo de la unidad',
  `unm_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de la unidad',
  `unm_estado` int(11) NOT NULL COMMENT 'estado 1=activo, 0=inactivo',
  `unm_usu_creacion` int(11) NOT NULL COMMENT 'Auditoría',
  `unm_fecha_creacion` datetime NOT NULL COMMENT 'Auditoría',
  `unm_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoría',
  `unm_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoría',
  PRIMARY KEY (`unm_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Unidades Modulos' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of unm_unidad_modulo
-- ----------------------------

-- ----------------------------
-- Table structure for unp_unidad_presupuestaria
-- ----------------------------
CREATE TABLE `unp_unidad_presupuestaria`  (
  `unp_id` int(11) NOT NULL AUTO_INCREMENT,
  `unp_codigo` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
  `unp_nombre` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  `unp_estado` tinyint(4) NOT NULL,
  `unp_usu_creacion` int(11) NOT NULL,
  `unp_usu_modifiacion` int(11) NOT NULL,
  `unp_fecha_creacion` datetime NOT NULL,
  `unp_fecha_modificacion` datetime NOT NULL,
  PRIMARY KEY (`unp_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of unp_unidad_presupuestaria
-- ----------------------------

-- ----------------------------
-- Table structure for usc_usuario_sucursal
-- ----------------------------
CREATE TABLE `usc_usuario_sucursal`  (
  `usc_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de  usuario por sucursal',
  `usc_id_suc` int(11) NOT NULL COMMENT 'Identificador de la sucursal',
  `usc_id_usu` int(11) NOT NULL COMMENT 'Llave principal de Usuario.',
  `usc_defecto` tinyint(4) NOT NULL COMMENT 'es sucusal por defecto 1=si, 0 o null = no',
  `usc_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `usc_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `usc_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `usc_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `usc_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`usc_id`) USING BTREE,
  INDEX `fk_usc_id_suc`(`usc_id_suc` ASC) USING BTREE,
  INDEX `fk_usc_id_usu`(`usc_id_usu` ASC) USING BTREE,
  CONSTRAINT `fk_usc_id_suc` FOREIGN KEY (`usc_id_suc`) REFERENCES `suc_sucursal` (`suc_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_usc_id_usu` FOREIGN KEY (`usc_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 157 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Usuarios por sucursal' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of usc_usuario_sucursal
-- ----------------------------
INSERT INTO `usc_usuario_sucursal` VALUES (2, 1, 32, 1, 1, 1, '2019-10-07 12:00:00', 1, '2019-10-07 12:00:00');
INSERT INTO `usc_usuario_sucursal` VALUES (6, 1, 4, 1, 1, 1, '2019-10-07 12:00:00', 1, '2019-10-07 12:00:00');
INSERT INTO `usc_usuario_sucursal` VALUES (8, 1, 7, 1, 1, 1, '2019-10-07 12:00:00', 1, '2019-10-07 12:00:00');
INSERT INTO `usc_usuario_sucursal` VALUES (11, 1, 10, 1, 1, 1, '2019-10-07 12:00:00', 1, '2019-10-07 12:00:00');
INSERT INTO `usc_usuario_sucursal` VALUES (12, 1, 11, 1, 1, 1, '2019-10-07 12:00:00', 1, '2019-10-07 12:00:00');
INSERT INTO `usc_usuario_sucursal` VALUES (13, 1, 12, 1, 1, 1, '2019-10-07 12:00:00', 1, '2019-10-07 12:00:00');
INSERT INTO `usc_usuario_sucursal` VALUES (14, 1, 13, 1, 1, 1, '2019-10-07 12:00:00', 1, '2019-10-07 12:00:00');
INSERT INTO `usc_usuario_sucursal` VALUES (15, 1, 14, 1, 1, 1, '2019-10-07 12:00:00', 1, '2019-10-07 12:00:00');
INSERT INTO `usc_usuario_sucursal` VALUES (16, 1, 15, 1, 1, 1, '2019-10-07 12:00:00', 1, '2019-10-07 12:00:00');
INSERT INTO `usc_usuario_sucursal` VALUES (26, 1, 25, 1, 1, 1, '2019-10-07 12:00:00', 1, '2019-10-07 12:00:00');
INSERT INTO `usc_usuario_sucursal` VALUES (27, 1, 26, 1, 1, 1, '2019-10-07 12:00:00', 1, '2019-10-07 12:00:00');
INSERT INTO `usc_usuario_sucursal` VALUES (28, 1, 27, 1, 1, 1, '2019-10-07 12:00:00', 1, '2019-10-07 12:00:00');
INSERT INTO `usc_usuario_sucursal` VALUES (30, 1, 29, 1, 1, 1, '2019-10-07 12:00:00', 1, '2019-10-07 12:00:00');
INSERT INTO `usc_usuario_sucursal` VALUES (32, 1, 31, 1, 1, 1, '2019-10-07 12:00:00', 1, '2019-10-07 12:00:00');
INSERT INTO `usc_usuario_sucursal` VALUES (34, 1, 34, 1, 1, 1, '2019-10-07 12:00:00', 1, '2019-10-07 12:00:00');
INSERT INTO `usc_usuario_sucursal` VALUES (35, 1, 35, 1, 1, 1, '2019-10-07 12:00:00', 1, '2019-10-07 12:00:00');
INSERT INTO `usc_usuario_sucursal` VALUES (44, 1, 30, 1, 1, 1, '2019-10-21 01:53:36', 1, '2019-10-21 01:53:36');
INSERT INTO `usc_usuario_sucursal` VALUES (52, 1, 16, 0, 1, 9, '2020-03-31 10:04:47', 9, '2020-03-31 10:04:47');
INSERT INTO `usc_usuario_sucursal` VALUES (54, 1, 17, 0, 1, 9, '2020-03-31 10:08:56', 9, '2020-03-31 10:08:56');
INSERT INTO `usc_usuario_sucursal` VALUES (55, 1, 36, 0, 1, 9, '2020-03-31 10:10:40', 9, '2020-03-31 10:10:40');
INSERT INTO `usc_usuario_sucursal` VALUES (59, 1, 21, 0, 1, 9, '2020-04-14 04:29:55', 9, '2020-04-14 04:29:55');
INSERT INTO `usc_usuario_sucursal` VALUES (73, 1, 20, 0, 1, 9, '2020-04-16 10:46:48', 9, '2020-04-16 10:46:48');
INSERT INTO `usc_usuario_sucursal` VALUES (76, 1, 8, 0, 1, 9, '2020-04-18 11:42:41', 9, '2020-04-18 11:42:41');
INSERT INTO `usc_usuario_sucursal` VALUES (77, 1, 22, 0, 1, 9, '2020-04-24 10:03:57', 9, '2020-04-24 10:03:57');
INSERT INTO `usc_usuario_sucursal` VALUES (78, 1, 23, 0, 1, 9, '2020-04-24 12:56:55', 9, '2020-04-24 12:56:55');
INSERT INTO `usc_usuario_sucursal` VALUES (80, 1, 24, 0, 1, 9, '2020-04-24 03:39:16', 9, '2020-04-24 03:39:16');
INSERT INTO `usc_usuario_sucursal` VALUES (83, 1, 3, 0, 1, 9, '2020-04-25 09:25:39', 9, '2020-04-25 09:25:39');
INSERT INTO `usc_usuario_sucursal` VALUES (88, 1, 6, 0, 1, 9, '2020-04-29 10:58:33', 9, '2020-04-29 10:58:33');
INSERT INTO `usc_usuario_sucursal` VALUES (89, 1, 5, 0, 1, 9, '2020-05-02 10:28:30', 9, '2020-05-02 10:28:30');
INSERT INTO `usc_usuario_sucursal` VALUES (90, 1, 28, 0, 1, 9, '2020-05-07 03:18:53', 9, '2020-05-07 03:18:53');
INSERT INTO `usc_usuario_sucursal` VALUES (91, 1, 19, 0, 1, 9, '2020-05-27 03:52:58', 9, '2020-05-27 03:52:58');
INSERT INTO `usc_usuario_sucursal` VALUES (96, 1, 33, 0, 1, 9, '2020-06-24 02:06:11', 9, '2020-06-24 02:06:11');
INSERT INTO `usc_usuario_sucursal` VALUES (99, 1, 9, 0, 1, 9, '2020-06-29 02:52:31', 9, '2020-06-29 02:52:31');
INSERT INTO `usc_usuario_sucursal` VALUES (101, 1, 18, 0, 1, 9, '2020-07-05 09:08:31', 9, '2020-07-05 09:08:31');
INSERT INTO `usc_usuario_sucursal` VALUES (103, 1, 37, 0, 1, 1, '2020-07-06 05:15:28', 1, '2020-07-06 05:15:28');
INSERT INTO `usc_usuario_sucursal` VALUES (105, 2, 38, 1, 1, 1, '2020-09-10 11:59:16', 1, '2020-09-10 11:59:16');
INSERT INTO `usc_usuario_sucursal` VALUES (106, 1, 39, 0, 1, 1, '2020-10-12 05:20:01', 1, '2020-10-12 05:20:01');
INSERT INTO `usc_usuario_sucursal` VALUES (108, 1, 41, 0, 1, 1, '2020-10-12 05:21:02', 1, '2020-10-12 05:21:02');
INSERT INTO `usc_usuario_sucursal` VALUES (109, 1, 42, 1, 1, 1, '2020-10-12 05:21:23', 1, '2020-10-12 05:21:23');
INSERT INTO `usc_usuario_sucursal` VALUES (110, 1, 43, 1, 1, 1, '2020-10-12 05:21:59', 1, '2020-10-12 05:21:59');
INSERT INTO `usc_usuario_sucursal` VALUES (111, 1, 44, 0, 1, 1, '2020-10-12 05:22:31', 1, '2020-10-12 05:22:31');
INSERT INTO `usc_usuario_sucursal` VALUES (112, 1, 45, 0, 1, 1, '2020-10-12 05:23:15', 1, '2020-10-12 05:23:15');
INSERT INTO `usc_usuario_sucursal` VALUES (113, 1, 46, 0, 1, 1, '2020-10-12 05:23:36', 1, '2020-10-12 05:23:36');
INSERT INTO `usc_usuario_sucursal` VALUES (114, 1, 47, 0, 1, 1, '2020-10-12 05:23:52', 1, '2020-10-12 05:23:52');
INSERT INTO `usc_usuario_sucursal` VALUES (115, 1, 48, 0, 1, 1, '2020-10-12 05:24:15', 1, '2020-10-12 05:24:15');
INSERT INTO `usc_usuario_sucursal` VALUES (117, 1, 50, 0, 1, 1, '2021-08-16 07:27:33', 1, '2021-08-16 07:27:33');
INSERT INTO `usc_usuario_sucursal` VALUES (118, 3, 51, 0, 1, 1, '2021-08-17 08:17:58', 1, '2021-08-17 08:17:58');
INSERT INTO `usc_usuario_sucursal` VALUES (119, 3, 52, 0, 1, 1, '2021-08-17 08:39:30', 1, '2021-08-17 08:39:30');
INSERT INTO `usc_usuario_sucursal` VALUES (120, 3, 53, 0, 1, 1, '2021-08-17 09:02:10', 1, '2021-08-17 09:02:10');
INSERT INTO `usc_usuario_sucursal` VALUES (122, 1, 55, 1, 1, 55, '2022-06-02 01:45:54', 55, '2022-06-02 01:45:54');
INSERT INTO `usc_usuario_sucursal` VALUES (123, 1, 56, 0, 1, 1, '2023-03-08 09:51:21', 1, '2023-03-08 09:51:21');
INSERT INTO `usc_usuario_sucursal` VALUES (124, 1, 54, 0, 1, 1, '2023-03-09 05:16:14', 1, '2023-03-09 05:16:14');
INSERT INTO `usc_usuario_sucursal` VALUES (125, 1, 57, 0, 1, 1, '2023-03-09 05:26:42', 1, '2023-03-09 05:26:42');
INSERT INTO `usc_usuario_sucursal` VALUES (126, 1, 58, 0, 1, 1, '2023-03-09 05:29:40', 1, '2023-03-09 05:29:40');
INSERT INTO `usc_usuario_sucursal` VALUES (136, 1, 62, 0, 1, 1, '2024-01-30 04:16:32', 1, '2024-01-30 04:16:32');
INSERT INTO `usc_usuario_sucursal` VALUES (141, 1, 2, 0, 1, 1, '2024-07-26 03:28:28', 1, '2024-07-26 03:28:28');
INSERT INTO `usc_usuario_sucursal` VALUES (142, 1, 59, 0, 1, 1, '2024-07-27 12:28:21', 1, '2024-07-27 12:28:21');
INSERT INTO `usc_usuario_sucursal` VALUES (145, 1, 63, 0, 1, 49, '2024-07-29 04:23:53', 49, '2024-07-29 04:23:53');
INSERT INTO `usc_usuario_sucursal` VALUES (147, 1, 49, 0, 1, 49, '2024-07-30 08:29:56', 49, '2024-07-30 08:29:56');
INSERT INTO `usc_usuario_sucursal` VALUES (148, 1, 64, 0, 1, 1, '2024-08-30 06:12:00', 1, '2024-08-30 06:12:00');
INSERT INTO `usc_usuario_sucursal` VALUES (149, 1, 67, 0, 1, 1, '2024-12-18 02:12:21', 1, '2024-12-18 02:12:21');
INSERT INTO `usc_usuario_sucursal` VALUES (150, 1, 68, 0, 1, 1, '2024-12-18 02:19:06', 1, '2024-12-18 02:19:06');
INSERT INTO `usc_usuario_sucursal` VALUES (151, 1, 69, 0, 1, 1, '2025-04-11 10:32:00', 1, '2025-04-11 10:32:00');
INSERT INTO `usc_usuario_sucursal` VALUES (154, 1, 40, 0, 1, 1, '2025-08-18 09:45:23', 1, '2025-08-18 09:45:23');
INSERT INTO `usc_usuario_sucursal` VALUES (155, 1, 1, 0, 1, 1, '2025-08-18 03:01:51', 1, '2025-08-18 03:01:51');
INSERT INTO `usc_usuario_sucursal` VALUES (156, 1, 70, 0, 1, 1, '2025-08-19 05:05:30', 1, '2025-08-19 05:05:30');

-- ----------------------------
-- Table structure for user_autologin
-- ----------------------------
CREATE TABLE `user_autologin`  (
  `key_id` char(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `user_id` int(11) NOT NULL DEFAULT 0,
  `user_agent` varchar(150) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NULL DEFAULT NULL,
  `last_ip` varchar(40) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NULL DEFAULT NULL,
  `last_login` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`key_id`, `user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb3 COLLATE = utf8mb3_bin ROW_FORMAT = Compact;

-- ----------------------------
-- Records of user_autologin
-- ----------------------------

-- ----------------------------
-- Table structure for user_profiles
-- ----------------------------
CREATE TABLE `user_profiles`  (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `country` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NULL DEFAULT NULL,
  `website` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb3 COLLATE = utf8mb3_bin ROW_FORMAT = Compact;

-- ----------------------------
-- Records of user_profiles
-- ----------------------------

-- ----------------------------
-- Table structure for users
-- ----------------------------
CREATE TABLE `users`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NULL DEFAULT NULL,
  `password` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NULL DEFAULT NULL,
  `email` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NULL DEFAULT NULL,
  `activated` tinyint(1) NOT NULL DEFAULT 1,
  `banned` tinyint(1) NOT NULL DEFAULT 0,
  `ban_reason` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NULL DEFAULT NULL,
  `new_password_key` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NULL DEFAULT NULL,
  `new_password_requested` datetime NULL DEFAULT NULL,
  `new_email` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NULL DEFAULT NULL,
  `new_email_key` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NULL DEFAULT NULL,
  `last_ip` varchar(40) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NULL DEFAULT NULL,
  `last_login` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `usu_id_emp` int(11) NULL DEFAULT NULL,
  `usu_actualiza_contrasena` datetime NULL DEFAULT NULL COMMENT 'Ultima fecha de actualizacion de contraseña',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uk_username`(`username` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 71 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_bin COMMENT = 'Usuarios' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of users
-- ----------------------------
INSERT INTO `users` VALUES (1, 'admin', '$2a$08$V4nv/WCBbYazRnSxkG6V2O5xoyZFVMu8CEoHjRb8r9r4c26EJdQ6a', 'byron.beltran@gruposatelite.net', 1, 0, NULL, NULL, NULL, NULL, NULL, '190.150.38.126', '2025-11-17 09:30:31', '2019-02-19 15:16:30', '2025-11-17 09:30:31', 9, '2025-02-18 08:46:18');
INSERT INTO `users` VALUES (2, 'user01', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', '', 0, 1, '', NULL, NULL, '', '', '190.57.9.101', '2020-06-29 14:44:08', '2019-02-19 15:16:30', '2024-07-26 09:28:28', 1, NULL);
INSERT INTO `users` VALUES (3, 'user02', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '168.243.196.26', '2020-08-18 08:53:50', '2019-02-19 15:16:30', '2020-10-12 10:43:41', 2, NULL);
INSERT INTO `users` VALUES (4, 'user03', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '172.16.4.45', '2019-06-10 16:11:24', '2019-02-19 15:16:30', '2020-10-12 10:43:42', 3, NULL);
INSERT INTO `users` VALUES (5, 'user04', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '168.243.196.26', '2020-09-02 14:36:14', '2019-02-19 15:16:30', '2020-10-12 10:43:42', 4, NULL);
INSERT INTO `users` VALUES (6, 'user05', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '168.243.196.26', '2020-08-26 08:42:11', '2019-02-19 15:16:30', '2020-10-12 10:43:42', 81, NULL);
INSERT INTO `users` VALUES (7, 'user06', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '168.243.196.26', '2020-08-17 15:52:15', '2019-02-19 15:16:30', '2020-10-12 10:43:42', 6, NULL);
INSERT INTO `users` VALUES (8, 'user07', '$2a$08$2wqTaCCDqUV7upMKzhJim.uAtTeJUdaYsP64ts3gnxfOzWSblzopa', NULL, 0, 1, '', NULL, NULL, '', '', '168.243.196.26', '2020-07-15 09:55:22', '2019-02-19 15:16:30', '2023-03-09 11:23:30', NULL, '2020-06-18 16:40:07');
INSERT INTO `users` VALUES (9, 'user08', '$2a$08$3z8wjCNwJLs9mdTDHlOTYuT84UFMNzpdCo0BCV72fKa8vqTy3zVgu', NULL, 0, 1, '', NULL, NULL, '', '', '168.243.196.26', '2020-09-07 09:31:19', '2019-02-19 15:16:30', '2020-10-12 10:43:42', 8, '2019-07-23 14:42:42');
INSERT INTO `users` VALUES (10, 'user09', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '172.16.4.98', '2019-07-15 15:19:51', '2019-02-19 15:16:30', '2020-10-12 10:43:42', 13, NULL);
INSERT INTO `users` VALUES (11, 'user10', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', '', '0000-00-00 00:00:00', '', '', '', '0000-00-00 00:00:00', '2019-02-19 15:16:30', '2020-10-12 10:43:42', 14, NULL);
INSERT INTO `users` VALUES (12, 'user11', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', '', '0000-00-00 00:00:00', '', '', '', '0000-00-00 00:00:00', '2019-02-19 15:16:30', '2020-10-12 10:43:42', 15, NULL);
INSERT INTO `users` VALUES (13, 'user12', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '172.16.4.20', '2019-04-30 11:03:40', '2019-02-19 15:16:30', '2020-10-12 10:43:43', 16, '2019-04-29 16:16:32');
INSERT INTO `users` VALUES (14, 'user13', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', '', '0000-00-00 00:00:00', '', '', '', '0000-00-00 00:00:00', '2019-02-19 15:16:30', '2020-10-12 10:43:43', 17, NULL);
INSERT INTO `users` VALUES (15, 'user14', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '168.243.196.26', '2020-09-03 09:11:32', '2019-02-19 15:16:30', '2020-10-12 10:43:43', 18, NULL);
INSERT INTO `users` VALUES (16, 'user15', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '190.57.86.104', '2020-04-17 16:26:17', '2019-02-19 15:16:30', '2020-10-12 10:43:43', 77, NULL);
INSERT INTO `users` VALUES (17, 'user16', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '190.86.20.207', '2020-07-08 01:09:05', '2019-02-19 15:16:30', '2020-10-12 10:43:43', 83, NULL);
INSERT INTO `users` VALUES (18, 'user17', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '190.57.85.191', '2020-07-28 17:00:48', '2019-02-19 15:16:30', '2020-10-12 10:43:43', 72, NULL);
INSERT INTO `users` VALUES (19, 'user18', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '190.57.9.11', '2020-06-30 10:57:23', '2019-02-19 15:16:30', '2020-10-12 10:43:43', 71, NULL);
INSERT INTO `users` VALUES (20, 'user19', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '190.86.96.172', '2020-07-28 09:08:34', '2019-02-19 15:16:30', '2020-10-12 10:43:43', 23, NULL);
INSERT INTO `users` VALUES (21, 'user20', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '190.57.10.188', '2020-04-16 10:35:31', '2019-02-19 15:16:30', '2020-10-12 10:43:43', 24, NULL);
INSERT INTO `users` VALUES (22, 'user21', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '190.57.11.33', '2020-04-24 10:04:29', '2019-02-19 15:16:30', '2020-10-12 10:43:43', 31, NULL);
INSERT INTO `users` VALUES (23, 'user22', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '172.16.4.78', '2019-10-29 09:26:33', '2019-02-19 15:16:30', '2020-10-12 10:43:44', 32, NULL);
INSERT INTO `users` VALUES (24, 'user23', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', NULL, NULL, '', '', '172.16.4.75', '2019-10-25 10:18:45', '2019-02-19 15:16:30', '2020-10-12 10:43:44', 33, NULL);
INSERT INTO `users` VALUES (25, 'user24', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', '', '0000-00-00 00:00:00', '', '', '', '0000-00-00 00:00:00', '2019-02-19 15:16:30', '2020-10-12 10:43:44', 37, NULL);
INSERT INTO `users` VALUES (26, 'user25', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', '', '0000-00-00 00:00:00', '', '', '', '0000-00-00 00:00:00', '2019-02-19 15:16:30', '2020-10-12 10:43:44', 40, NULL);
INSERT INTO `users` VALUES (27, 'user26', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', '', '0000-00-00 00:00:00', '', '', '', '0000-00-00 00:00:00', '2019-02-19 15:16:30', '2020-10-12 10:43:44', 41, NULL);
INSERT INTO `users` VALUES (28, 'user27', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', '', '0000-00-00 00:00:00', '', '', '', '0000-00-00 00:00:00', '2019-02-19 15:16:30', '2020-10-12 10:43:44', 42, NULL);
INSERT INTO `users` VALUES (29, 'user28', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', '', '0000-00-00 00:00:00', '', '', '', '0000-00-00 00:00:00', '2019-02-19 15:16:30', '2020-10-12 10:43:44', 43, NULL);
INSERT INTO `users` VALUES (30, 'user29', '$2a$08$oHZd9fCDPd5TjodRfWIULON/Oxbv70JXfjoySl2BzQpfVor0BNc9m', NULL, 0, 1, '', NULL, NULL, '', '', '172.16.4.56', '2019-07-24 10:14:12', '2019-02-19 15:16:30', '2020-10-12 10:43:44', 46, '2019-07-24 09:42:50');
INSERT INTO `users` VALUES (31, 'user30', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, '', '', '0000-00-00 00:00:00', '', '', '', '0000-00-00 00:00:00', '2019-02-19 15:16:30', '2020-10-12 10:43:44', 47, NULL);
INSERT INTO `users` VALUES (32, 'user31', '$2a$08$s5MSESnBVlv8kBFyv5YE5enhltN/l3rCY78btXHmr/wajVB3LBrV.', NULL, 0, 1, NULL, NULL, NULL, NULL, NULL, '168.243.196.26', '2020-09-09 10:09:16', '2019-08-12 10:03:33', '2020-10-12 10:43:45', 68, '2020-09-09 10:08:44');
INSERT INTO `users` VALUES (33, 'user32', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, NULL, NULL, NULL, NULL, NULL, '190.86.109.40', '2020-06-30 09:28:31', '2019-08-12 10:04:29', '2020-10-12 10:43:45', 82, NULL);
INSERT INTO `users` VALUES (34, 'user33', '$2a$08$F7F2gc05z7W0NVgxGkkUNuXBpo.wOv/MGs3LHaSRoZUoXHSrh2AUK', NULL, 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2020-10-12 10:43:45', NULL, NULL);
INSERT INTO `users` VALUES (35, 'user34', '$2a$08$avokBGQxJDe5RrPD3A1Ct.RmFDzbaJHGat4Miz/qJgWvrkYqLbgoq', NULL, 0, 1, NULL, NULL, NULL, NULL, NULL, '190.57.9.11', '2020-06-30 11:03:12', '2019-08-29 15:53:49', '2020-10-12 10:43:45', 70, NULL);
INSERT INTO `users` VALUES (36, 'user35', '$2a$08$V6PlCIbuFY9XQL7/cXlcq.Jc6fqhN4Y8QcHX.WXRH9zYoVAcXkg2K', NULL, 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, '0000-00-00 00:00:00', '2020-03-31 10:10:40', '2020-10-12 10:43:45', 80, NULL);
INSERT INTO `users` VALUES (37, 'user36', '$2a$08$kJ3fbv8zYmWBmTj0T6rUYOPmuHfl.fm4VdtrnqrwdbFZqNtoNXo5e', NULL, 0, 1, NULL, NULL, NULL, NULL, NULL, '201.247.205.140', '2020-07-06 17:16:37', '2020-07-06 17:10:37', '2020-10-12 10:43:45', 10, NULL);
INSERT INTO `users` VALUES (38, 'user37', '$2a$08$eqgcTSisLXzpOr0evaiuZ.kjj9gBCEBT7iAvclujrbnnWGY4cjWam', NULL, 0, 1, NULL, NULL, NULL, NULL, NULL, '201.247.107.9', '2020-09-10 12:06:23', '2020-09-10 11:59:16', '2022-10-05 05:52:03', NULL, '2022-10-05 11:52:03');
INSERT INTO `users` VALUES (39, 'aby_otero', '$2a$08$n3qbBRwJGaITIkU2vnnZX.Q8GCWbUVmkK23nM3.7g3lDe18JUkv8S', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '201.247.107.9', '2020-10-27 08:02:02', '2020-10-12 16:55:05', '2020-10-27 02:02:02', NULL, NULL);
INSERT INTO `users` VALUES (40, 'delmy_renderos', '$2a$08$n3qbBRwJGaITIkU2vnnZX.Q8GCWbUVmkK23nM3.7g3lDe18JUkv8S', '', 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, '2020-10-12 16:55:05', '2020-10-12 16:55:05', '2025-08-18 03:45:22', NULL, '2020-10-12 16:59:40');
INSERT INTO `users` VALUES (41, 'ismael_araujo', '$2a$08$n3qbBRwJGaITIkU2vnnZX.Q8GCWbUVmkK23nM3.7g3lDe18JUkv8S', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '201.247.107.9', '2021-01-07 07:49:03', '2020-10-12 16:55:05', '2021-01-07 01:49:03', NULL, NULL);
INSERT INTO `users` VALUES (42, 'douglas_molina', '$2a$08$n3qbBRwJGaITIkU2vnnZX.Q8GCWbUVmkK23nM3.7g3lDe18JUkv8S', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '201.247.107.9', '2021-01-07 08:45:15', '2020-10-12 16:55:05', '2021-01-07 02:45:15', NULL, NULL);
INSERT INTO `users` VALUES (43, 'nelson_hidalgo', '$2a$08$n3qbBRwJGaITIkU2vnnZX.Q8GCWbUVmkK23nM3.7g3lDe18JUkv8S', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '201.247.107.9', '2021-01-07 07:12:04', '2020-10-12 16:55:05', '2021-01-07 01:12:04', NULL, NULL);
INSERT INTO `users` VALUES (44, 'melvin_cerna', '$2a$08$n3qbBRwJGaITIkU2vnnZX.Q8GCWbUVmkK23nM3.7g3lDe18JUkv8S', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '201.247.107.9', '2021-01-06 15:12:15', '2020-10-12 16:55:05', '2021-01-06 09:12:15', NULL, NULL);
INSERT INTO `users` VALUES (45, 'edgardo_mojica', '$2a$08$n3qbBRwJGaITIkU2vnnZX.Q8GCWbUVmkK23nM3.7g3lDe18JUkv8S', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '190.86.109.183', '2020-10-15 23:45:56', '2020-10-12 16:55:05', '2020-10-15 17:45:56', NULL, NULL);
INSERT INTO `users` VALUES (46, 'jorge_chavez', '$2a$08$n3qbBRwJGaITIkU2vnnZX.Q8GCWbUVmkK23nM3.7g3lDe18JUkv8S', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '201.247.107.9', '2020-10-16 08:19:11', '2020-10-12 16:55:05', '2020-10-16 02:19:11', NULL, NULL);
INSERT INTO `users` VALUES (47, 'marina_villalta', '$2a$08$n3qbBRwJGaITIkU2vnnZX.Q8GCWbUVmkK23nM3.7g3lDe18JUkv8S', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '201.247.107.9', '2022-02-22 08:58:41', '2020-10-12 16:55:05', '2022-02-22 02:58:41', NULL, NULL);
INSERT INTO `users` VALUES (48, 'horacio_rodriguez', '$2a$08$9VWTW6KbZYDChAE2/e8Qn.ObGIu/KQ4JSv4lSCxB/oIaArv32b5fm', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '201.247.107.9', '2020-10-26 11:48:49', '2020-10-12 16:55:05', '2022-10-05 05:53:07', NULL, '2022-10-05 11:53:07');
INSERT INTO `users` VALUES (49, 'demo', '$2a$08$ucSG5u6BddIOr.rVJuM9WeoU4BflfuO3z5D2B5pO1Hzqa6uJ7GHtq', 'dolma.valladares@gmail.com', 1, 0, NULL, NULL, NULL, NULL, NULL, '190.62.87.46', '2024-07-30 10:51:58', '2021-06-18 09:22:02', '2024-07-30 12:51:58', 12, '2024-07-29 15:25:00');
INSERT INTO `users` VALUES (50, 'roxana.abrego', '$2a$08$i4TDClI9cJDvQEufP5.VSu5Gahww/.fQ2BOddZ0t/Rnjzo/mrlXgK', 'roxymendoza72@gmail.com', 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, '0000-00-00 00:00:00', '2021-08-16 19:27:33', '2021-08-16 05:27:33', NULL, NULL);
INSERT INTO `users` VALUES (51, 'carolina.valladares', '$2a$08$X9X3IT5VffdkDq0wdM6ZsuRp4ZnyAsos5vaFv8YmBnTX/rGkFeIyC', 'carolina.valladares@gruposatelite.net', 1, 0, NULL, NULL, NULL, NULL, NULL, '138.186.250.222', '2024-03-20 14:52:59', '2021-08-17 20:17:58', '2024-03-20 15:52:59', NULL, NULL);
INSERT INTO `users` VALUES (52, 'karla.delgado', '$2a$08$LpD6ETPR2uiCpzcYU9c23uZTomSLFxV8/9UCDn89PsvWpFPWMmbwO', 'marianadelga2021@gmail.com', 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, '0000-00-00 00:00:00', '2021-08-17 20:39:30', '2021-08-17 06:39:30', NULL, NULL);
INSERT INTO `users` VALUES (53, 'ricardo.guardado', '$2a$08$dLy0oII0mQ9KePUv2FmhgeCF1EHrLg5Pj0idxu7hHhTzyBTEblUcm', 'ricardojoseguardado@gmail.com', 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, '0000-00-00 00:00:00', '2021-08-17 21:02:10', '2021-08-17 07:02:10', NULL, NULL);
INSERT INTO `users` VALUES (54, 'facturacion', '$2a$08$X73HnnIisr15lr4fkIUTveOPWLux8VJ2QCO8I0yW7s40tsShNImje', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '190.150.170.177', '2024-11-11 13:38:47', '2021-09-30 18:04:25', '2024-11-11 14:38:47', 49, '2024-11-11 13:26:12');
INSERT INTO `users` VALUES (55, 'jacob.seat', '$2a$08$DeCOMWaIVx.LZJGNFwnmEO8F4up7m9ym.1SclEWPxPIZjZfxuSV8a', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '190.86.33.101', '2022-06-02 13:45:54', '2022-06-02 13:45:33', '2022-06-02 07:45:54', 55, NULL);
INSERT INTO `users` VALUES (56, 'demo.erp', '$2a$08$dHOAZfL1iPbKPOygMete3OoOgAjBfnZSWSOcx0XWvhe2M/RKnleuG', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '190.86.107.35', '2023-03-08 22:07:05', '2023-03-08 21:51:21', '2023-03-08 16:07:05', 88, NULL);
INSERT INTO `users` VALUES (57, 'facturacion2', '$2a$08$k6okZC/sfuqIDiMfQtTwn.yod2aEyvSoM2lVUd60DxbMQUrHQt7Ci', '', 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, '0000-00-00 00:00:00', '2023-03-09 17:26:42', '2023-03-09 04:26:42', 76, NULL);
INSERT INTO `users` VALUES (58, 'factura_gsat', '$2a$08$UETJ2f3zcF83yoVdOAVPfO59G6TYRCggXcMiGOBpKa9NzizhRVGrO', '', 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, '0000-00-00 00:00:00', '2023-03-09 17:29:40', '2023-03-09 04:29:40', 89, NULL);
INSERT INTO `users` VALUES (59, 'juan.francia@wedoknowledge.com', '$2a$08$RyqyrD.iIyn36gAd2.fM/em8WsDlMgXy4cjRkgPtDKJyelrrlsMAK', 'juan.francia@wedoknowledge.com', 1, 0, NULL, NULL, NULL, NULL, NULL, '190.62.19.3', '2025-02-06 19:32:50', '2023-06-15 01:52:38', '2025-02-06 20:33:25', 84, '2025-02-06 19:33:25');
INSERT INTO `users` VALUES (60, 'A001', '$2a$08$3h4TpedbkIAeSDM5Wj4f3e4Ol0DQpc03KtRp78oKvOkO/m2vMabYK', NULL, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, '0000-00-00 00:00:00', '2023-06-28 11:39:18', '2023-06-28 05:39:18', NULL, NULL);
INSERT INTO `users` VALUES (61, 'JL001', '$2a$08$hA/QOxRjWuB5PmhOoSr0MO.spUIh5X8Zv2AFcogFTCTDq4lU5SFHO', NULL, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, '0000-00-00 00:00:00', '2024-01-23 09:25:03', '2024-01-23 03:25:03', NULL, NULL);
INSERT INTO `users` VALUES (62, 'hugo_valencia', '$2a$08$J3cqMF5oNhrvK/TlDzqqxej0CANTRSG63LI7XERzDaT6nKgIlyBca', 'dolma.valladares@gmail.com', 1, 0, NULL, NULL, NULL, NULL, NULL, '190.150.106.142', '2024-06-03 13:41:30', '2024-01-30 16:16:32', '2024-07-29 17:23:27', NULL, '2024-07-29 15:23:27');
INSERT INTO `users` VALUES (63, 'Salud', '$2a$08$n0KGoOWljtymyX42xHE8DejiX71/WrEnfZl4.upHdFwPgVXgYCDWK', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '190.62.87.46', '2024-07-29 16:27:21', '2024-07-29 16:23:53', '2024-07-29 18:27:21', 93, NULL);
INSERT INTO `users` VALUES (64, 'byron.beltran', '$2a$08$QgSMFQllt/WAvKyJGO8/weehxlOtEw4LUXL76WS4BQRE.69fnEPge', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '190.150.121.76', '2024-09-01 23:24:07', '2024-08-30 18:12:00', '2024-09-02 01:24:07', NULL, NULL);
INSERT INTO `users` VALUES (65, 'rigoberto.alvarenga', '$2a$08$sSZmE.JHO3/TWyWtc.NJT.MhYXTlhUpTYzyFAOAm4hcnrExlHWvve', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '190.150.105.69', '2025-02-25 12:00:42', '2024-08-30 18:12:00', '2025-02-25 13:00:42', NULL, NULL);
INSERT INTO `users` VALUES (66, 'raul.escalante', '$2a$08$aevXnS9wMyW.t/LjOBeWtew2t2XAvjsgGgW5uWBTZ8GUD.bpJGTEi', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '190.150.146.37', '2024-09-16 14:31:01', '2024-09-16 13:26:36', '2024-09-16 16:31:41', NULL, '2024-09-16 14:31:41');
INSERT INTO `users` VALUES (67, 'alquima_clientes', '$2a$08$CoWSEO530Wc9i3aOWPFxAuzAcvRzLaHGnzwK5fEUvkEisohU2uaUK', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '190.150.67.41', '2024-12-18 14:13:04', '2024-12-18 14:12:21', '2024-12-18 15:13:04', NULL, NULL);
INSERT INTO `users` VALUES (68, 'alquima_supervisor', '$2a$08$05Suw/zvnuWEp8bl5ODP7u.LYYY6Nn3lt5wqHVVjY/AOpxzbX51ju', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '190.86.189.30', '2024-12-18 15:12:07', '2024-12-18 14:19:06', '2024-12-18 16:12:07', NULL, NULL);
INSERT INTO `users` VALUES (69, 'yaribel.vargas', '$2a$08$D94jitHXKCVRmcA4ZP3wH.NJmPH0GJFdOzqaTOICKpzqz8fgW/3KK', '', 1, 0, NULL, NULL, NULL, NULL, NULL, '186.33.13.34', '2025-11-19 11:16:19', '2025-04-11 10:32:00', '2025-11-19 11:16:19', NULL, '2025-07-11 17:23:40');
INSERT INTO `users` VALUES (70, 'jrodriguez', '$2a$08$G0O5QdtS4FCkr4TbSt3l1OzIQfJP/Wr47HbkuB2MCS7CLLSAw5Ruu', 'jose02guillermo98@gmail.com', 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, '0000-00-00 00:00:00', '2025-08-19 17:05:30', '2025-08-19 11:05:30', 4216, NULL);

-- ----------------------------
-- Table structure for usv_usuario_evento
-- ----------------------------
CREATE TABLE `usv_usuario_evento`  (
  `usv_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de usuario de evento',
  `usv_id_evn` int(11) NOT NULL COMMENT 'Llave principal de evento',
  `usv_id_usu` int(11) NOT NULL COMMENT 'Llave principal de Usuario.',
  `usv_confirmado` tinyint(4) NULL DEFAULT NULL COMMENT 'Usuario confirmado de asistencia 1=si, 0 =no, null = si ni no',
  `usv_fecha_confirmacion` datetime NULL DEFAULT NULL COMMENT 'Fecha de confirmación',
  `usv_correo_enviado` tinyint(4) NULL DEFAULT NULL COMMENT '1=se envio el correo con éxito, 0=no enviado',
  `usv_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `usv_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `usv_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `usv_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `usv_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  `usv_usuario_adicional` tinyint(4) NULL DEFAULT NULL COMMENT 'Usuario adicional al Rol',
  PRIMARY KEY (`usv_id`) USING BTREE,
  INDEX `fk_usv_id_evn`(`usv_id_evn` ASC) USING BTREE,
  INDEX `fk_usv_id_usu`(`usv_id_usu` ASC) USING BTREE,
  CONSTRAINT `fk_usv_id_evn` FOREIGN KEY (`usv_id_evn`) REFERENCES `evn_evento` (`evn_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_usv_id_usu` FOREIGN KEY (`usv_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 46 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Usuario participantes del evento' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of usv_usuario_evento
-- ----------------------------
INSERT INTO `usv_usuario_evento` VALUES (9, 1, 30, 0, NULL, 0, 1, 1, '2024-10-22 10:58:04', 1, '2024-10-22 10:58:04', NULL);
INSERT INTO `usv_usuario_evento` VALUES (10, 1, 9, 0, NULL, 0, 1, 1, '2024-10-22 10:58:04', 1, '2024-10-22 10:58:04', NULL);
INSERT INTO `usv_usuario_evento` VALUES (11, 1, 1, 0, NULL, 0, 1, 1, '2024-10-22 10:58:04', 1, '2024-10-22 10:58:04', NULL);
INSERT INTO `usv_usuario_evento` VALUES (12, 1, 2, 0, NULL, 0, 1, 1, '2024-10-22 10:58:04', 1, '2024-10-22 10:58:04', NULL);
INSERT INTO `usv_usuario_evento` VALUES (13, 2, 30, 0, NULL, 0, 1, 1, '2024-10-22 10:59:00', 1, '2024-10-22 10:59:00', NULL);
INSERT INTO `usv_usuario_evento` VALUES (14, 2, 9, 0, NULL, 0, 1, 1, '2024-10-22 10:59:00', 1, '2024-10-22 10:59:00', NULL);
INSERT INTO `usv_usuario_evento` VALUES (15, 2, 1, 0, NULL, 0, 1, 1, '2024-10-22 10:59:00', 1, '2024-10-22 10:59:00', NULL);
INSERT INTO `usv_usuario_evento` VALUES (16, 2, 2, 0, NULL, 0, 1, 1, '2024-10-22 10:59:00', 1, '2024-10-22 10:59:00', NULL);
INSERT INTO `usv_usuario_evento` VALUES (17, 3, 30, 0, NULL, 0, 1, 1, '2024-11-18 22:28:09', 1, '2024-11-18 22:28:09', NULL);
INSERT INTO `usv_usuario_evento` VALUES (18, 3, 9, 0, NULL, 0, 1, 1, '2024-11-18 22:28:09', 1, '2024-11-18 22:28:09', NULL);
INSERT INTO `usv_usuario_evento` VALUES (19, 3, 1, 0, NULL, 0, 1, 1, '2024-11-18 22:28:09', 1, '2024-11-18 22:28:09', NULL);
INSERT INTO `usv_usuario_evento` VALUES (20, 3, 2, 0, NULL, 0, 1, 1, '2024-11-18 22:28:09', 1, '2024-11-18 22:28:09', NULL);
INSERT INTO `usv_usuario_evento` VALUES (21, 6, 30, 0, NULL, 0, 1, 1, '2025-02-20 17:19:38', 1, '2025-02-20 17:19:38', NULL);
INSERT INTO `usv_usuario_evento` VALUES (22, 6, 9, 0, NULL, 0, 1, 1, '2025-02-20 17:19:38', 1, '2025-02-20 17:19:38', NULL);
INSERT INTO `usv_usuario_evento` VALUES (23, 6, 1, 0, NULL, 0, 1, 1, '2025-02-20 17:19:38', 1, '2025-02-20 17:19:38', NULL);
INSERT INTO `usv_usuario_evento` VALUES (24, 6, 2, 0, NULL, 0, 1, 1, '2025-02-20 17:19:38', 1, '2025-02-20 17:19:38', NULL);
INSERT INTO `usv_usuario_evento` VALUES (25, 7, 30, 0, NULL, 0, 1, 1, '2025-04-07 16:44:17', 1, '2025-04-07 16:44:17', NULL);
INSERT INTO `usv_usuario_evento` VALUES (26, 7, 9, 0, NULL, 0, 1, 1, '2025-04-07 16:44:17', 1, '2025-04-07 16:44:17', NULL);
INSERT INTO `usv_usuario_evento` VALUES (27, 7, 1, 0, NULL, 0, 1, 1, '2025-04-07 16:44:17', 1, '2025-04-07 16:44:17', NULL);
INSERT INTO `usv_usuario_evento` VALUES (28, 7, 2, 0, NULL, 0, 1, 1, '2025-04-07 16:44:17', 1, '2025-04-07 16:44:17', NULL);
INSERT INTO `usv_usuario_evento` VALUES (29, 8, 30, 0, NULL, 0, 1, 69, '2025-07-22 09:17:55', 69, '2025-07-22 09:17:55', NULL);
INSERT INTO `usv_usuario_evento` VALUES (30, 8, 2, 0, NULL, 0, 1, 69, '2025-07-22 09:17:55', 69, '2025-07-22 09:17:55', NULL);
INSERT INTO `usv_usuario_evento` VALUES (31, 8, 1, 0, NULL, 0, 1, 69, '2025-07-22 09:17:55', 69, '2025-07-22 09:17:55', NULL);
INSERT INTO `usv_usuario_evento` VALUES (32, 11, 30, 0, NULL, 0, 1, 1, '2025-08-18 09:38:39', 1, '2025-08-18 09:38:39', NULL);
INSERT INTO `usv_usuario_evento` VALUES (33, 11, 2, 0, NULL, 0, 1, 1, '2025-08-18 09:38:39', 1, '2025-08-18 09:38:39', NULL);
INSERT INTO `usv_usuario_evento` VALUES (34, 11, 1, 0, NULL, 0, 1, 1, '2025-08-18 09:38:39', 1, '2025-08-18 09:38:39', NULL);
INSERT INTO `usv_usuario_evento` VALUES (35, 12, 30, 0, NULL, 0, 1, 1, '2025-08-19 14:29:57', 1, '2025-08-19 14:29:57', NULL);
INSERT INTO `usv_usuario_evento` VALUES (36, 12, 2, 0, NULL, 0, 1, 1, '2025-08-19 14:29:57', 1, '2025-08-19 14:29:57', NULL);
INSERT INTO `usv_usuario_evento` VALUES (37, 12, 1, 0, NULL, 0, 1, 1, '2025-08-19 14:29:57', 1, '2025-08-19 14:29:57', NULL);
INSERT INTO `usv_usuario_evento` VALUES (38, 13, 30, 0, NULL, 0, 1, 1, '2025-08-19 14:52:19', 1, '2025-08-19 14:52:19', NULL);
INSERT INTO `usv_usuario_evento` VALUES (39, 13, 2, 0, NULL, 0, 1, 1, '2025-08-19 14:52:19', 1, '2025-08-19 14:52:19', NULL);
INSERT INTO `usv_usuario_evento` VALUES (40, 13, 1, 0, NULL, 0, 1, 1, '2025-08-19 14:52:19', 1, '2025-08-19 14:52:19', NULL);
INSERT INTO `usv_usuario_evento` VALUES (41, 14, 70, 0, NULL, 1, 1, 1, '2025-08-19 17:06:34', 1, '2025-08-19 17:06:34', NULL);
INSERT INTO `usv_usuario_evento` VALUES (42, 15, 30, 0, NULL, 1, 1, 1, '2025-08-19 17:18:04', 1, '2025-08-19 17:18:04', NULL);
INSERT INTO `usv_usuario_evento` VALUES (43, 15, 2, 0, NULL, 1, 1, 1, '2025-08-19 17:18:04', 1, '2025-08-19 17:18:04', NULL);
INSERT INTO `usv_usuario_evento` VALUES (44, 15, 1, 0, NULL, 1, 1, 1, '2025-08-19 17:18:04', 1, '2025-08-19 17:18:04', NULL);
INSERT INTO `usv_usuario_evento` VALUES (45, 16, 70, 0, NULL, 1, 1, 1, '2025-08-19 17:18:52', 1, '2025-08-19 17:18:52', NULL);

-- ----------------------------
-- Table structure for uxa_usuarioxactividad_general
-- ----------------------------
CREATE TABLE `uxa_usuarioxactividad_general`  (
  `uxa_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de Usuario por Actividad general',
  `uxa_id_acg` int(11) NOT NULL COMMENT 'Llave principal de Actividad general',
  `uxa_id_usu` int(11) NOT NULL COMMENT 'Llave principal de Usuario.',
  `uxa_estado` tinyint(4) NOT NULL COMMENT 'Estado de registro 0=inactivo, 1=activo',
  `uxa_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `uxa_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `uxa_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `uxa_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`uxa_id`) USING BTREE,
  INDEX `fk_uxa_id_acg`(`uxa_id_acg` ASC) USING BTREE,
  INDEX `fk_uxa_id_usu`(`uxa_id_usu` ASC) USING BTREE,
  CONSTRAINT `fk_uxa_id_acg` FOREIGN KEY (`uxa_id_acg`) REFERENCES `acg_actividad_general` (`acg_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_uxa_id_usu` FOREIGN KEY (`uxa_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Usuarios por Actividades Generales' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of uxa_usuarioxactividad_general
-- ----------------------------
INSERT INTO `uxa_usuarioxactividad_general` VALUES (1, 1, 1, 1, 1, '2022-01-07 16:24:34', 1, '2022-01-07 16:24:34');

-- ----------------------------
-- Table structure for uxb_usuarioxbodega
-- ----------------------------
CREATE TABLE `uxb_usuarioxbodega`  (
  `uxb_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Id de Relación',
  `uxb_id_usu` int(11) NOT NULL,
  `uxb_id_bod` int(11) NOT NULL,
  `uxb_defecto` int(11) NULL DEFAULT NULL COMMENT 'Flag de bodega por defecto para cajero (1=es por defecto)',
  `uxb_usu_mod` tinyint(4) NULL DEFAULT NULL,
  `uxb_fecha_mod` datetime NULL DEFAULT NULL,
  PRIMARY KEY (`uxb_id`) USING BTREE,
  INDEX `fk_uxb_id_usu`(`uxb_id_usu` ASC) USING BTREE,
  INDEX `fk_uxb_id_bod`(`uxb_id_bod` ASC) USING BTREE,
  CONSTRAINT `fk_uxb_id_bod` FOREIGN KEY (`uxb_id_bod`) REFERENCES `bod_bodega` (`bod_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_uxb_id_usu` FOREIGN KEY (`uxb_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 689 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of uxb_usuarioxbodega
-- ----------------------------
INSERT INTO `uxb_usuarioxbodega` VALUES (1, 1, 1, 1, 1, '2023-07-04 09:45:32');
INSERT INTO `uxb_usuarioxbodega` VALUES (2, 1, 2, 0, 7, '2020-04-18 09:05:10');
INSERT INTO `uxb_usuarioxbodega` VALUES (3, 1, 3, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (4, 1, 4, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (5, 1, 5, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (6, 1, 6, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (9, 1, 9, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (10, 1, 10, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (11, 1, 11, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (12, 1, 12, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (13, 1, 13, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (14, 1, 14, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (15, 1, 15, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (16, 1, 16, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (17, 1, 17, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (18, 1, 18, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (19, 1, 19, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (20, 2, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (21, 2, 2, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (22, 2, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (23, 2, 4, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (28, 2, 9, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (29, 2, 10, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (30, 2, 11, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (31, 2, 12, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (32, 2, 13, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (33, 2, 14, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (34, 2, 15, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (35, 2, 16, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (36, 2, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (37, 2, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (38, 2, 19, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (39, 3, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (40, 3, 2, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (41, 3, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (42, 3, 4, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (47, 3, 9, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (48, 3, 10, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (49, 3, 11, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (50, 3, 12, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (51, 3, 13, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (52, 3, 14, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (53, 3, 15, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (54, 3, 16, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (55, 3, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (56, 3, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (57, 3, 19, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (60, 4, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (74, 4, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (75, 4, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (77, 5, 1, 0, 7, '2020-04-18 09:06:10');
INSERT INTO `uxb_usuarioxbodega` VALUES (78, 5, 2, 0, 5, '2020-06-05 11:17:44');
INSERT INTO `uxb_usuarioxbodega` VALUES (79, 5, 3, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (80, 5, 4, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (85, 5, 9, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (86, 5, 10, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (87, 5, 11, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (88, 5, 12, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (89, 5, 13, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (90, 5, 14, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (91, 5, 15, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (92, 5, 16, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (93, 5, 17, 1, 5, '2020-06-30 09:36:06');
INSERT INTO `uxb_usuarioxbodega` VALUES (94, 5, 18, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (95, 5, 19, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (96, 6, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (97, 6, 2, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (98, 6, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (99, 6, 4, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (104, 6, 9, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (105, 6, 10, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (106, 6, 11, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (107, 6, 12, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (108, 6, 13, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (109, 6, 14, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (110, 6, 15, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (111, 6, 16, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (112, 6, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (113, 6, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (114, 6, 19, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (115, 7, 1, 1, 7, '2020-04-18 09:05:59');
INSERT INTO `uxb_usuarioxbodega` VALUES (116, 7, 2, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (117, 7, 3, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (118, 7, 4, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (127, 7, 13, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (128, 7, 14, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (129, 7, 15, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (130, 7, 16, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (131, 7, 17, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (132, 7, 18, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (134, 8, 1, 1, 8, '2020-06-05 15:25:08');
INSERT INTO `uxb_usuarioxbodega` VALUES (135, 8, 2, 0, 8, '2020-05-30 15:46:28');
INSERT INTO `uxb_usuarioxbodega` VALUES (136, 8, 3, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (137, 8, 4, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (142, 8, 9, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (144, 8, 11, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (146, 8, 13, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (147, 8, 14, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (148, 8, 15, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (149, 8, 16, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (150, 8, 17, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (151, 8, 18, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (152, 8, 19, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (153, 9, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (154, 9, 2, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (155, 9, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (156, 9, 4, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (161, 9, 9, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (162, 9, 10, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (163, 9, 11, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (164, 9, 12, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (165, 9, 13, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (166, 9, 14, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (167, 9, 15, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (168, 9, 16, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (169, 9, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (170, 9, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (171, 9, 19, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (174, 10, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (188, 10, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (189, 10, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (193, 11, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (207, 11, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (208, 11, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (210, 12, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (211, 12, 2, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (212, 12, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (226, 12, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (227, 12, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (231, 13, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (245, 13, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (246, 13, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (248, 14, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (249, 14, 2, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (250, 14, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (260, 14, 13, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (261, 14, 14, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (262, 14, 15, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (263, 14, 16, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (264, 14, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (265, 14, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (267, 15, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (268, 15, 2, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (269, 15, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (270, 15, 4, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (279, 15, 13, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (280, 15, 14, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (281, 15, 15, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (282, 15, 16, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (283, 15, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (284, 15, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (286, 16, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (287, 16, 2, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (288, 16, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (302, 16, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (303, 16, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (305, 17, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (306, 17, 2, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (307, 17, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (316, 17, 12, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (321, 17, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (322, 17, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (324, 18, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (325, 18, 2, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (326, 18, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (336, 18, 13, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (337, 18, 14, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (338, 18, 15, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (339, 18, 16, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (340, 18, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (341, 18, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (343, 19, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (344, 19, 2, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (345, 19, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (346, 19, 4, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (357, 19, 15, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (358, 19, 16, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (359, 19, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (360, 19, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (361, 19, 19, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (362, 20, 1, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (363, 20, 2, 1, 8, '2020-05-27 18:23:47');
INSERT INTO `uxb_usuarioxbodega` VALUES (364, 20, 3, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (378, 20, 17, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (379, 20, 18, 0, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (381, 21, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (382, 21, 2, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (383, 21, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (384, 21, 4, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (389, 21, 9, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (390, 21, 10, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (391, 21, 11, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (392, 21, 12, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (393, 21, 13, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (394, 21, 14, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (395, 21, 15, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (396, 21, 16, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (397, 21, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (398, 21, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (399, 21, 19, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (400, 22, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (402, 22, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (403, 22, 4, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (408, 22, 9, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (409, 22, 10, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (410, 22, 11, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (411, 22, 12, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (416, 22, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (417, 22, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (418, 22, 19, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (419, 23, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (421, 23, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (422, 23, 4, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (427, 23, 9, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (428, 23, 10, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (429, 23, 11, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (430, 23, 12, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (431, 23, 13, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (435, 23, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (436, 23, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (438, 24, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (440, 24, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (441, 24, 4, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (446, 24, 9, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (447, 24, 10, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (448, 24, 11, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (449, 24, 12, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (454, 24, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (455, 24, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (459, 25, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (473, 25, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (474, 25, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (478, 26, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (492, 26, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (493, 26, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (497, 27, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (503, 27, 9, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (511, 27, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (512, 27, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (516, 28, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (522, 28, 9, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (524, 28, 11, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (525, 28, 12, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (530, 28, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (531, 28, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (535, 29, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (546, 29, 14, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (547, 29, 15, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (549, 29, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (550, 29, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (552, 30, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (553, 30, 2, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (554, 30, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (555, 30, 4, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (560, 30, 9, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (561, 30, 10, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (562, 30, 11, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (563, 30, 12, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (564, 30, 13, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (565, 30, 14, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (566, 30, 15, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (567, 30, 16, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (568, 30, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (569, 30, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (570, 30, 19, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (573, 31, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (587, 31, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (588, 31, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (590, 32, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (591, 32, 2, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (592, 32, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (593, 32, 4, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (598, 32, 9, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (599, 32, 10, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (600, 32, 11, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (601, 32, 12, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (602, 32, 13, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (603, 32, 14, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (604, 32, 15, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (605, 32, 16, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (606, 32, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (607, 32, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (608, 32, 19, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (609, 33, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (611, 33, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (612, 33, 4, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (617, 33, 9, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (625, 33, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (626, 33, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (630, 34, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (644, 34, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (645, 34, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (647, 35, 1, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (648, 35, 2, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (649, 35, 3, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (650, 35, 4, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (659, 35, 13, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (660, 35, 14, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (661, 35, 15, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (662, 35, 16, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (663, 35, 17, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (664, 35, 18, NULL, 1, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (666, 1, 26, 0, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (667, 5, 26, 0, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (668, 6, 26, NULL, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (669, 32, 26, NULL, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (670, 30, 26, NULL, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (671, 9, 26, NULL, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (672, 21, 26, NULL, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (673, 28, 26, NULL, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (674, 2, 26, NULL, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (675, 19, 14, NULL, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (676, 19, 13, NULL, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (677, 1, 20, 0, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (678, 38, 2, NULL, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (679, 39, 27, NULL, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (680, 1, 27, 0, 1, '2021-05-06 11:04:21');
INSERT INTO `uxb_usuarioxbodega` VALUES (681, 40, 28, NULL, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (682, 1, 28, 0, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (683, 40, 29, NULL, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (684, 1, 29, 0, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (685, 51, 6, NULL, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (686, 40, 6, NULL, NULL, NULL);
INSERT INTO `uxb_usuarioxbodega` VALUES (687, 49, 6, 0, 1, '2024-05-03 15:08:38');
INSERT INTO `uxb_usuarioxbodega` VALUES (688, 65, 1, 0, 65, '2024-10-17 17:42:29');

-- ----------------------------
-- Table structure for uxc_usuarioxcaja
-- ----------------------------
CREATE TABLE `uxc_usuarioxcaja`  (
  `uxc_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Id de Asignacion de Caja',
  `uxc_id_caj` int(11) NOT NULL COMMENT 'Llave primaria - Entidad Caja',
  `uxc_id_cof_correlativo` int(11) NULL DEFAULT NULL COMMENT 'llave primaria- Correlativo de factura para el corte.',
  `uxc_id_usu` int(11) NOT NULL COMMENT 'Id de Usuario',
  `uxc_id_pct` int(11) NULL DEFAULT NULL COMMENT 'Llave principal  - Partida contable',
  `uxc_fecha` datetime NOT NULL COMMENT 'Fecha de Creación de Registro',
  `uxc_fecha_proceso` date NOT NULL COMMENT 'Fecha que aplica la asignacion',
  `uxc_tipo` int(11) NOT NULL COMMENT 'Tipo de Proceso(1:Apertura, 2:Corte, 3:Cierre)',
  `uxc_sec` int(11) NOT NULL DEFAULT 1 COMMENT 'Secuencial de Operacion',
  `uxc_monto` decimal(19, 2) NOT NULL COMMENT 'Monto del Proceso',
  `uxc_total_facturado` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Total facturado',
  `uxc_fac_utilizada` int(11) NULL DEFAULT NULL COMMENT 'Numero de facturas utilizadas',
  `uxc_pdf_corte` int(11) NULL DEFAULT NULL COMMENT 'Se generó pdf de corte para cinta de auditoria 1=si, 0=no',
  `uxc_url_pdf_corte` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Url pdf corte',
  `uxc_correlativo_corte` int(11) NULL DEFAULT NULL COMMENT 'numero de correlativo segun la serie.',
  `uxc_id_fac` int(11) NULL DEFAULT NULL COMMENT 'Llave  principal de facturacion (factura corte)',
  `uxc_fecha_utiliza` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Fecha sugerir en factura 0=corte, 1=fecha actual',
  `uxc_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro (1:Activo, 0:Anulado)',
  `uxc_usu_mod` int(11) NOT NULL COMMENT 'Auditoria',
  `uxc_fecha_mod` datetime NOT NULL COMMENT 'Auditoria',
  `uxc_fecha_crea` datetime NOT NULL COMMENT 'auditoria',
  `uxc_usu_crea` int(11) NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`uxc_id`) USING BTREE,
  INDEX `fk_uxc_id_caj`(`uxc_id_caj` ASC) USING BTREE,
  INDEX `fk_uxc_id_fac`(`uxc_id_fac` ASC) USING BTREE,
  CONSTRAINT `fk_uxc_id_caj` FOREIGN KEY (`uxc_id_caj`) REFERENCES `caj_caja` (`caj_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_uxc_id_fac` FOREIGN KEY (`uxc_id_fac`) REFERENCES `fac_factura` (`fac_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 188 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Control de Apertura y Cierre de Caja' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of uxc_usuarioxcaja
-- ----------------------------
INSERT INTO `uxc_usuarioxcaja` VALUES (1, 1, NULL, 8, NULL, '2020-05-20 16:22:19', '2020-01-03', 1, 1, 0.00, 3391.41, 24, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-20 23:29:48', '2020-05-20 04:22:19', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (2, 1, NULL, 8, NULL, '2020-05-20 23:29:48', '2020-01-03', 2, 2, 3391.42, 0.00, 0, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-20 23:30:07', '2020-05-20 11:29:48', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (3, 1, NULL, 8, NULL, '2020-05-20 23:30:07', '2020-01-03', 3, 3, 3391.42, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-20 23:30:07', '2020-05-20 11:30:07', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (4, 2, NULL, 20, NULL, '2020-05-22 15:32:32', '2020-01-03', 1, 1, 0.00, 0.00, 0, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-22 15:45:45', '2020-05-22 03:32:32', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (5, 2, NULL, 20, NULL, '2020-05-22 15:45:45', '2020-01-03', 2, 2, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-22 15:45:45', '2020-05-22 03:45:45', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (6, 2, NULL, 8, NULL, '2020-05-22 15:46:43', '2020-01-03', 1, 3, 0.00, 310.14, 16, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-25 18:04:56', '2020-05-22 03:46:43', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (7, 2, NULL, 8, NULL, '2020-05-25 18:04:56', '2020-01-03', 2, 4, 310.14, 0.00, 0, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-25 18:05:14', '2020-05-25 06:04:56', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (8, 2, NULL, 8, NULL, '2020-05-25 18:05:14', '2020-01-03', 3, 5, 310.14, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-25 18:05:14', '2020-05-25 06:05:14', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (9, 1, NULL, 8, NULL, '2020-05-25 18:07:16', '2020-01-04', 1, 4, 0.00, 12474.71, 38, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-27 18:22:06', '2020-05-25 06:07:16', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (10, 1, NULL, 8, NULL, '2020-05-27 18:22:06', '2020-01-04', 3, 5, 12474.69, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-27 18:22:06', '2020-05-27 06:22:06', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (11, 2, NULL, 8, NULL, '2020-05-27 18:23:06', '2020-01-04', 1, 6, 0.00, 179.95, 15, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-27 18:48:43', '2020-05-27 06:23:06', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (12, 2, NULL, 8, NULL, '2020-05-27 18:48:43', '2020-01-04', 3, 7, 179.97, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-27 18:48:43', '2020-05-27 06:48:43', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (13, 1, NULL, 8, NULL, '2020-05-27 18:49:24', '2020-01-06', 1, 6, 0.00, 9108.06, 28, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-27 21:31:37', '2020-05-27 06:49:24', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (14, 1, NULL, 8, NULL, '2020-05-27 21:31:37', '2020-01-06', 3, 7, 9108.09, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-27 21:31:37', '2020-05-27 09:31:37', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (15, 2, NULL, 8, NULL, '2020-05-27 21:32:12', '2020-01-06', 1, 8, 0.00, 408.38, 23, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-27 22:36:39', '2020-05-27 09:32:12', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (16, 2, NULL, 8, NULL, '2020-05-27 22:36:39', '2020-01-06', 3, 9, 408.37, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-27 22:36:39', '2020-05-27 10:36:39', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (17, 1, NULL, 8, NULL, '2020-05-27 22:42:14', '2020-01-07', 1, 8, 0.00, 10769.49, 34, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-28 17:44:33', '2020-05-27 10:42:14', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (18, 1, NULL, 8, NULL, '2020-05-28 17:44:33', '2020-01-07', 3, 9, 10769.45, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-28 17:44:33', '2020-05-28 05:44:33', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (19, 2, NULL, 8, NULL, '2020-05-28 17:45:06', '2020-01-07', 1, 10, 0.00, 387.00, 18, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-28 18:26:42', '2020-05-28 05:45:06', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (20, 2, NULL, 8, NULL, '2020-05-28 18:26:42', '2020-01-07', 3, 11, 387.01, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-28 18:26:42', '2020-05-28 06:26:42', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (21, 1, NULL, 8, NULL, '2020-05-28 18:28:52', '2020-01-08', 1, 10, 0.00, 369.26, 8, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-28 18:49:22', '2020-05-28 06:28:52', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (22, 1, NULL, 8, NULL, '2020-05-28 18:49:22', '2020-01-08', 3, 11, 369.26, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-28 18:49:22', '2020-05-28 06:49:22', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (23, 2, NULL, 8, NULL, '2020-05-28 18:51:11', '2020-01-08', 1, 12, 0.00, 248.11, 12, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-28 19:25:55', '2020-05-28 06:51:11', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (24, 2, NULL, 8, NULL, '2020-05-28 19:25:55', '2020-01-08', 3, 13, 248.12, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-28 19:25:55', '2020-05-28 07:25:55', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (25, 1, NULL, 8, NULL, '2020-05-28 19:28:06', '2020-01-09', 1, 12, 0.00, 7561.65, 28, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-30 15:20:41', '2020-05-28 07:28:06', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (26, 1, NULL, 8, NULL, '2020-05-30 15:20:40', '2020-01-09', 3, 13, 7561.66, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-30 15:20:40', '2020-05-30 03:20:40', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (27, 2, NULL, 8, NULL, '2020-05-30 15:20:57', '2020-05-30', 1, 14, 0.00, 0.00, 0, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-30 15:22:55', '2020-05-30 03:20:57', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (28, 2, NULL, 8, NULL, '2020-05-30 15:22:55', '2020-05-30', 3, 15, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-30 15:22:55', '2020-05-30 03:22:55', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (29, 2, NULL, 8, NULL, '2020-05-30 15:23:22', '2020-01-09', 1, 16, 0.00, 244.54, 19, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-30 16:45:52', '2020-05-30 03:23:22', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (30, 2, NULL, 8, NULL, '2020-05-30 16:45:52', '2020-01-09', 2, 17, 244.56, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-30 16:45:52', '2020-05-30 04:45:52', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (31, 1, NULL, 8, NULL, '2020-05-30 16:47:25', '2020-01-10', 1, 14, 0.00, 0.00, 0, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-30 16:54:47', '2020-05-30 04:47:25', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (32, 1, NULL, 8, NULL, '2020-05-30 16:54:47', '2020-01-10', 2, 15, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-05-30 16:54:47', '2020-05-30 04:54:47', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (33, 2, NULL, 1, NULL, '2020-06-01 08:13:36', '2020-01-09', 1, 18, 244.56, 0.00, 0, NULL, NULL, NULL, NULL, 0, 0, 1, '2020-06-01 08:19:51', '2020-06-01 08:13:36', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (34, 2, NULL, 1, NULL, '2020-06-01 08:19:51', '2020-01-09', 2, 19, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2020-06-01 08:19:51', '2020-06-01 08:19:51', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (35, 2, NULL, 8, NULL, '2020-06-01 19:16:17', '2020-01-09', 1, 20, 0.00, 425.57, 10, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-02 17:28:15', '2020-06-01 07:16:17', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (36, 2, NULL, 8, NULL, '2020-06-02 17:28:15', '2020-01-09', 3, 21, 425.56, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-02 17:28:15', '2020-06-02 05:28:15', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (37, 2, NULL, 5, NULL, '2020-06-03 15:19:50', '2020-01-10', 1, 22, 0.00, 380.18, 19, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-05 10:51:01', '2020-06-03 03:19:50', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (38, 2, NULL, 5, NULL, '2020-06-05 10:51:01', '2020-01-10', 3, 23, 380.20, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-05 10:51:01', '2020-06-05 10:51:01', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (39, 2, NULL, 5, NULL, '2020-06-05 10:55:04', '2020-01-11', 1, 24, 0.00, 260.92, 11, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-05 13:16:42', '2020-06-05 10:55:04', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (40, 2, NULL, 5, NULL, '2020-06-05 13:16:42', '2020-01-11', 3, 25, 260.93, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-05 13:16:42', '2020-06-05 01:16:42', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (41, 2, NULL, 5, NULL, '2020-06-05 13:18:00', '2020-01-13', 1, 26, 0.00, 182.72, 16, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-05 16:43:36', '2020-06-05 01:18:00', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (42, 1, NULL, 8, NULL, '2020-06-05 15:19:08', '2020-01-10', 1, 16, 0.00, 1977.38, 16, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-05 16:03:45', '2020-06-05 03:19:08', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (43, 1, NULL, 8, NULL, '2020-06-05 16:03:45', '2020-01-10', 3, 17, 1977.40, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-05 16:03:45', '2020-06-05 04:03:45', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (44, 1, NULL, 8, NULL, '2020-06-05 16:06:39', '2020-01-11', 1, 18, 0.00, 2100.80, 24, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-05 20:57:24', '2020-06-05 04:06:39', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (45, 2, NULL, 5, NULL, '2020-06-05 16:43:36', '2020-01-13', 3, 27, 182.73, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-05 16:43:36', '2020-06-05 04:43:36', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (46, 2, NULL, 5, NULL, '2020-06-05 16:44:25', '2020-01-14', 1, 28, 0.00, 453.62, 29, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-05 19:13:28', '2020-06-05 04:44:25', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (47, 2, NULL, 5, NULL, '2020-06-05 19:13:28', '2020-01-14', 3, 29, 453.61, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-05 19:13:28', '2020-06-05 07:13:28', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (48, 2, NULL, 5, NULL, '2020-06-05 19:14:02', '2020-01-15', 1, 30, 0.00, 321.17, 17, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-05 19:57:02', '2020-06-05 07:14:02', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (49, 2, NULL, 5, NULL, '2020-06-05 19:57:02', '2020-01-15', 3, 31, 321.17, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-05 19:57:02', '2020-06-05 07:57:02', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (50, 2, NULL, 5, NULL, '2020-06-05 19:58:12', '2020-01-16', 1, 32, 0.00, 410.53, 18, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-05 21:27:07', '2020-06-05 07:58:12', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (51, 1, NULL, 8, NULL, '2020-06-05 20:57:24', '2020-01-11', 3, 19, 2100.79, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-05 20:57:24', '2020-06-05 08:57:24', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (52, 1, NULL, 8, NULL, '2020-06-05 20:58:00', '2020-01-13', 1, 20, 0.00, 9350.54, 29, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-06 13:03:03', '2020-06-05 08:58:00', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (53, 2, NULL, 5, NULL, '2020-06-05 21:27:07', '2020-01-16', 3, 33, 410.53, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-05 21:27:07', '2020-06-05 09:27:07', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (54, 2, NULL, 5, NULL, '2020-06-06 11:35:57', '2020-01-17', 1, 34, 0.00, 505.46, 20, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-06 14:06:39', '2020-06-06 11:35:57', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (55, 1, NULL, 8, NULL, '2020-06-06 13:03:03', '2020-01-13', 3, 21, 9350.54, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-06 13:03:03', '2020-06-06 01:03:03', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (56, 1, NULL, 8, NULL, '2020-06-06 13:03:54', '2020-01-14', 1, 22, 0.00, 7213.51, 40, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-07 18:42:54', '2020-06-06 01:03:54', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (57, 2, NULL, 5, NULL, '2020-06-06 14:06:39', '2020-01-17', 3, 35, 505.48, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-06 14:06:39', '2020-06-06 02:06:39', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (58, 2, NULL, 5, NULL, '2020-06-06 14:07:14', '2020-01-18', 1, 36, 0.00, 433.91, 11, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-06 14:51:09', '2020-06-06 02:07:14', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (59, 2, NULL, 5, NULL, '2020-06-06 14:51:09', '2020-01-18', 3, 37, 433.90, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-06 14:51:09', '2020-06-06 02:51:09', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (60, 2, NULL, 5, NULL, '2020-06-06 14:51:57', '2020-01-20', 1, 38, 0.00, 432.39, 19, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-06 15:14:09', '2020-06-06 02:51:57', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (61, 2, NULL, 5, NULL, '2020-06-06 15:14:09', '2020-01-20', 3, 39, 432.40, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-06 15:14:09', '2020-06-06 03:14:09', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (62, 2, NULL, 5, NULL, '2020-06-06 15:14:47', '2020-01-21', 1, 40, 0.00, 450.01, 20, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-06 15:56:57', '2020-06-06 03:14:47', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (63, 2, NULL, 5, NULL, '2020-06-06 15:56:57', '2020-01-21', 3, 41, 450.03, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-06 15:56:57', '2020-06-06 03:56:57', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (64, 2, NULL, 5, NULL, '2020-06-06 15:57:26', '2020-01-22', 1, 42, 0.00, 162.26, 16, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-06 16:10:57', '2020-06-06 03:57:26', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (65, 2, NULL, 5, NULL, '2020-06-06 16:10:57', '2020-01-22', 3, 43, 162.27, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-06 16:10:57', '2020-06-06 04:10:57', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (66, 2, NULL, 5, NULL, '2020-06-06 16:11:17', '2020-01-23', 1, 44, 0.00, 436.10, 14, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-06 16:28:47', '2020-06-06 04:11:17', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (67, 3, NULL, 7, NULL, '2020-06-06 16:26:01', '2020-01-13', 1, 1, 0.00, 0.00, 2, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-09 19:04:57', '2020-06-06 04:26:01', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (68, 2, NULL, 5, NULL, '2020-06-06 16:28:47', '2020-01-23', 3, 45, 436.10, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-06 16:28:47', '2020-06-06 04:28:47', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (69, 2, NULL, 5, NULL, '2020-06-06 16:30:23', '2020-01-24', 1, 46, 0.00, 402.19, 16, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-06 17:01:14', '2020-06-06 04:30:23', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (70, 2, NULL, 5, NULL, '2020-06-06 17:01:14', '2020-01-24', 3, 47, 402.21, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-06 17:01:14', '2020-06-06 05:01:14', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (71, 2, NULL, 5, NULL, '2020-06-06 17:01:36', '2020-01-25', 1, 48, 0.00, 377.49, 17, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-07 16:00:17', '2020-06-06 05:01:36', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (72, 2, NULL, 5, NULL, '2020-06-07 16:00:17', '2020-01-25', 3, 49, 377.50, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-07 16:00:17', '2020-06-07 04:00:17', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (73, 2, NULL, 5, NULL, '2020-06-07 16:00:48', '2020-01-27', 1, 50, 0.00, 223.01, 17, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-07 16:32:35', '2020-06-07 04:00:48', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (74, 2, NULL, 5, NULL, '2020-06-07 16:32:35', '2020-01-27', 3, 51, 223.02, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-07 16:32:35', '2020-06-07 04:32:35', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (75, 2, NULL, 5, NULL, '2020-06-07 16:33:36', '2020-01-28', 1, 52, 0.00, 187.29, 15, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-07 16:54:52', '2020-06-07 04:33:36', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (76, 2, NULL, 5, NULL, '2020-06-07 16:54:52', '2020-01-28', 2, 53, 187.30, 0.00, 0, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-07 16:55:16', '2020-06-07 04:54:52', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (77, 2, NULL, 5, NULL, '2020-06-07 16:55:16', '2020-01-28', 3, 54, 187.30, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-07 16:55:16', '2020-06-07 04:55:16', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (78, 2, NULL, 5, NULL, '2020-06-07 16:55:44', '2020-01-29', 1, 55, 0.00, 169.01, 19, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-07 17:51:17', '2020-06-07 04:55:44', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (79, 2, NULL, 5, NULL, '2020-06-07 17:51:17', '2020-01-29', 3, 56, 169.01, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-07 17:51:17', '2020-06-07 05:51:17', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (80, 2, NULL, 5, NULL, '2020-06-07 17:51:38', '2020-01-30', 1, 57, 0.00, 325.39, 17, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-07 18:14:01', '2020-06-07 05:51:38', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (81, 2, NULL, 5, NULL, '2020-06-07 18:14:00', '2020-01-30', 3, 58, 325.39, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-07 18:14:00', '2020-06-07 06:14:00', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (82, 2, NULL, 5, NULL, '2020-06-07 18:14:25', '2020-01-31', 1, 59, 0.00, 360.51, 19, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-07 18:39:36', '2020-06-07 06:14:25', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (83, 2, NULL, 5, NULL, '2020-06-07 18:39:36', '2020-01-31', 3, 60, 360.51, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 5, '2020-06-07 18:39:36', '2020-06-07 06:39:36', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (84, 1, NULL, 8, NULL, '2020-06-07 18:42:54', '2020-01-14', 3, 23, 7213.54, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-07 18:42:54', '2020-06-07 06:42:54', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (85, 1, NULL, 8, NULL, '2020-06-07 18:43:25', '2020-01-15', 1, 24, 0.00, 2143.87, 19, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-08 18:38:18', '2020-06-07 06:43:25', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (86, 1, NULL, 8, NULL, '2020-06-08 18:38:18', '2020-01-15', 3, 25, 2143.89, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-08 18:38:18', '2020-06-08 06:38:18', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (87, 1, NULL, 8, NULL, '2020-06-08 18:38:40', '2020-01-16', 1, 26, 0.00, 24649.53, 41, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-08 21:48:02', '2020-06-08 06:38:40', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (88, 1, NULL, 8, NULL, '2020-06-08 21:48:02', '2020-01-16', 3, 27, 24649.51, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-08 21:48:02', '2020-06-08 09:48:02', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (89, 1, NULL, 8, NULL, '2020-06-08 21:49:46', '2020-01-17', 1, 28, 0.00, 17903.11, 13, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-09 21:26:34', '2020-06-08 09:49:46', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (90, 3, NULL, 7, NULL, '2020-06-09 19:04:57', '2020-01-13', 3, 2, -36.34, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-09 19:04:57', '2020-06-09 07:04:57', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (91, 3, NULL, 7, NULL, '2020-06-09 19:05:28', '2020-01-15', 1, 3, 0.00, 0.00, 0, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-19 08:08:55', '2020-06-09 07:05:28', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (92, 1, NULL, 8, NULL, '2020-06-09 21:26:34', '2020-01-17', 3, 29, 17903.12, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-09 21:26:34', '2020-06-09 09:26:34', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (93, 1, NULL, 8, NULL, '2020-06-09 21:26:59', '2020-01-18', 1, 30, 0.00, 906.56, 10, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-09 22:21:14', '2020-06-09 09:26:59', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (94, 1, NULL, 8, NULL, '2020-06-09 22:21:14', '2020-01-18', 3, 31, 906.58, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-09 22:21:14', '2020-06-09 10:21:14', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (95, 1, NULL, 8, NULL, '2020-06-09 22:21:43', '2020-01-20', 1, 32, 0.00, 4306.66, 35, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-09 23:18:49', '2020-06-09 10:21:43', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (96, 1, NULL, 8, NULL, '2020-06-09 23:18:49', '2020-01-20', 3, 33, 4306.68, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-09 23:18:49', '2020-06-09 11:18:49', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (97, 1, NULL, 8, NULL, '2020-06-11 15:21:56', '2020-01-21', 1, 34, 0.00, 19878.67, 46, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-12 15:54:30', '2020-06-11 03:21:56', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (98, 1, NULL, 8, NULL, '2020-06-12 15:54:30', '2020-01-21', 3, 35, 19878.68, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-12 15:54:30', '2020-06-12 03:54:30', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (99, 1, NULL, 8, NULL, '2020-06-12 15:55:02', '2020-01-22', 1, 36, 0.00, 43021.19, 17, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-12 18:19:30', '2020-06-12 03:55:02', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (100, 1, NULL, 8, NULL, '2020-06-12 18:19:30', '2020-01-22', 3, 37, 43021.21, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-12 18:19:30', '2020-06-12 06:19:30', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (101, 1, NULL, 8, NULL, '2020-06-12 18:21:33', '2020-01-23', 1, 38, 0.00, 9944.04, 38, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-15 21:44:05', '2020-06-12 06:21:33', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (102, 1, NULL, 8, NULL, '2020-06-15 21:44:05', '2020-01-23', 3, 39, 9944.03, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-15 21:44:05', '2020-06-15 09:44:05', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (103, 1, NULL, 8, NULL, '2020-06-16 21:25:56', '2020-01-24', 1, 40, 0.00, 10441.14, 20, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-18 17:02:32', '2020-06-16 09:25:56', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (104, 1, NULL, 8, NULL, '2020-06-18 17:02:32', '2020-01-24', 3, 41, 10441.15, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-18 17:02:32', '2020-06-18 05:02:32', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (105, 1, NULL, 8, NULL, '2020-06-18 17:08:43', '2020-01-25', 1, 42, 0.00, 1310.14, 7, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-18 18:26:04', '2020-06-18 05:08:43', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (106, 1, NULL, 8, NULL, '2020-06-18 18:26:04', '2020-01-25', 3, 43, 1310.15, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-18 18:26:04', '2020-06-18 06:26:04', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (107, 1, NULL, 8, NULL, '2020-06-18 18:27:46', '2020-01-27', 1, 44, 0.00, 6709.87, 27, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-19 18:22:10', '2020-06-18 06:27:46', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (108, 3, NULL, 7, NULL, '2020-06-19 08:08:55', '2020-01-15', 3, 4, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-19 08:08:55', '2020-06-19 08:08:55', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (109, 3, NULL, 7, NULL, '2020-06-19 08:09:12', '2020-01-17', 1, 5, 0.00, 0.00, 2, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-19 08:12:03', '2020-06-19 08:09:12', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (110, 3, NULL, 7, NULL, '2020-06-19 08:12:03', '2020-01-17', 3, 6, -57.63, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-19 08:12:03', '2020-06-19 08:12:03', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (111, 3, NULL, 7, NULL, '2020-06-19 08:12:24', '2020-01-20', 1, 7, 0.00, 0.00, 1, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-19 08:14:12', '2020-06-19 08:12:24', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (112, 3, NULL, 7, NULL, '2020-06-19 08:14:12', '2020-01-20', 3, 8, -36.61, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-19 08:14:12', '2020-06-19 08:14:12', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (113, 3, NULL, 7, NULL, '2020-06-19 08:14:29', '2020-01-22', 1, 9, 0.00, 0.00, 1, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-19 08:16:27', '2020-06-19 08:14:29', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (114, 3, NULL, 7, NULL, '2020-06-19 08:16:27', '2020-01-22', 3, 10, -50.65, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-19 08:16:27', '2020-06-19 08:16:27', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (115, 3, NULL, 7, NULL, '2020-06-19 08:16:44', '2020-01-23', 1, 11, 0.00, 0.00, 2, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-19 08:24:02', '2020-06-19 08:16:44', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (116, 3, NULL, 7, NULL, '2020-06-19 08:24:02', '2020-01-23', 3, 12, -153.07, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-19 08:24:02', '2020-06-19 08:24:02', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (117, 3, NULL, 7, NULL, '2020-06-19 08:25:11', '2020-01-27', 1, 13, 0.00, 0.00, 2, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-19 08:29:29', '2020-06-19 08:25:11', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (118, 3, NULL, 7, NULL, '2020-06-19 08:29:29', '2020-01-27', 3, 14, -146.43, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-19 08:29:29', '2020-06-19 08:29:29', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (119, 3, NULL, 7, NULL, '2020-06-19 08:30:02', '2020-01-28', 1, 15, 0.00, 0.00, 2, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-19 08:35:02', '2020-06-19 08:30:02', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (120, 3, NULL, 7, NULL, '2020-06-19 08:35:02', '2020-01-28', 3, 16, -8967.75, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-19 08:35:02', '2020-06-19 08:35:02', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (121, 3, NULL, 7, NULL, '2020-06-19 08:35:22', '2020-01-30', 1, 17, 0.00, 0.00, 1, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-19 08:36:38', '2020-06-19 08:35:22', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (122, 3, NULL, 7, NULL, '2020-06-19 08:36:38', '2020-01-30', 3, 18, -51.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-19 08:36:38', '2020-06-19 08:36:38', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (123, 3, NULL, 7, NULL, '2020-06-19 08:36:54', '2020-01-31', 1, 19, 0.00, 0.00, 1, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-26 16:30:59', '2020-06-19 08:36:54', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (124, 1, NULL, 8, NULL, '2020-06-19 18:22:10', '2020-01-27', 3, 45, 6709.89, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-19 18:22:10', '2020-06-19 06:22:10', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (125, 1, NULL, 8, NULL, '2020-06-19 18:22:59', '2020-01-28', 1, 46, 0.00, 23783.42, 24, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-19 21:56:57', '2020-06-19 06:22:59', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (126, 1, NULL, 8, NULL, '2020-06-19 21:56:57', '2020-01-28', 3, 47, 23783.43, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-19 21:56:57', '2020-06-19 09:56:57', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (127, 1, NULL, 8, NULL, '2020-06-19 21:57:15', '2020-01-29', 1, 48, 0.00, 9973.46, 23, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-20 12:18:37', '2020-06-19 09:57:15', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (128, 1, NULL, 8, NULL, '2020-06-20 12:18:37', '2020-01-29', 3, 49, 9973.46, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-20 12:18:37', '2020-06-20 12:18:37', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (129, 1, NULL, 8, NULL, '2020-06-20 12:19:08', '2020-01-30', 1, 50, 0.00, 3657.48, 19, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-20 15:36:14', '2020-06-20 12:19:08', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (130, 1, NULL, 8, NULL, '2020-06-20 15:36:14', '2020-01-30', 3, 51, 3657.48, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-20 15:36:14', '2020-06-20 03:36:14', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (131, 1, NULL, 8, NULL, '2020-06-20 15:36:40', '2020-01-31', 1, 52, 0.00, 16769.34, 55, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-20 21:02:37', '2020-06-20 03:36:40', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (132, 1, NULL, 8, NULL, '2020-06-20 21:02:37', '2020-01-31', 3, 53, 16769.34, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-20 21:02:37', '2020-06-20 09:02:37', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (133, 3, NULL, 7, NULL, '2020-06-26 16:30:59', '2020-01-31', 3, 20, -120.41, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 7, '2020-06-26 16:30:59', '2020-06-26 04:30:59', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (134, 3, NULL, 7, NULL, '2020-06-26 16:31:52', '2020-01-01', 1, 21, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, 1, 7, '2020-06-26 16:31:52', '2020-06-26 04:31:52', 7);
INSERT INTO `uxc_usuarioxcaja` VALUES (135, 1, NULL, 5, NULL, '2020-06-30 08:49:29', '2020-06-30', 1, 54, 0.00, 1986.24, 2, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-30 11:26:18', '2020-06-30 08:49:29', 5);
INSERT INTO `uxc_usuarioxcaja` VALUES (136, 1, NULL, 5, NULL, '2020-06-30 11:26:18', '2020-06-30', 3, 55, 1986.24, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-06-30 11:26:18', '2020-06-30 11:26:18', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (137, 1, NULL, 8, NULL, '2020-06-30 11:27:58', '2020-07-01', 1, 56, 0.00, 1722.12, 1, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-07-13 09:42:21', '2020-06-30 11:27:58', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (138, 2, NULL, 1, NULL, '2020-07-02 17:05:35', '2020-07-01', 3, 61, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, 1, 1, '2020-07-02 17:05:35', '2020-07-02 05:05:35', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (139, 1, NULL, 8, NULL, '2020-07-13 09:42:20', '2020-07-01', 2, 57, 1722.12, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-07-13 09:42:20', '2020-07-13 09:42:20', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (140, 1, NULL, 8, NULL, '2020-07-13 09:42:30', '2020-07-01', 1, 58, 1722.12, 0.00, 0, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-07-14 09:55:20', '2020-07-13 09:42:30', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (141, 1, NULL, 8, NULL, '2020-07-14 09:55:20', '2020-07-01', 3, 59, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-07-14 09:55:20', '2020-07-14 09:55:20', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (142, 1, NULL, 8, NULL, '2020-07-14 09:57:26', '2020-07-14', 3, 60, 0.00, 0.00, 0, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-07-15 09:55:48', '2020-07-14 09:57:26', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (143, 1, NULL, 8, NULL, '2020-07-15 09:55:47', '2020-07-14', 3, 61, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-07-15 09:55:47', '2020-07-15 09:55:47', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (144, 1, NULL, 8, NULL, '2020-07-15 09:56:47', '2020-07-15', 3, 62, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 8, '2020-07-15 09:56:47', '2020-07-15 09:56:47', 8);
INSERT INTO `uxc_usuarioxcaja` VALUES (145, 1, NULL, 1, NULL, '2021-02-17 09:07:36', '2021-02-17', 1, 63, 0.00, 0.00, 0, NULL, NULL, NULL, NULL, 0, 0, 1, '2021-02-18 10:55:32', '2021-02-17 09:07:36', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (146, 1, NULL, 1, NULL, '2021-02-18 10:55:32', '2021-02-17', 2, 64, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2021-02-18 10:55:32', '2021-02-18 10:55:32', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (147, 1, NULL, 1, NULL, '2021-02-18 10:55:59', '2021-02-17', 1, 65, 0.00, 85.16, 1, NULL, NULL, NULL, NULL, 0, 0, 1, '2021-02-18 10:59:33', '2021-02-18 10:55:59', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (148, 1, NULL, 1, NULL, '2021-02-18 10:59:33', '2021-02-17', 3, 66, 85.16, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2021-02-18 10:59:33', '2021-02-18 10:59:33', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (149, 1, NULL, 1, NULL, '2021-02-18 10:59:54', '2021-02-18', 1, 67, 0.00, 2348.09, 6, NULL, NULL, NULL, NULL, 0, 0, 1, '2021-05-06 09:48:11', '2021-02-18 10:59:54', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (150, 1, NULL, 1, NULL, '2021-05-06 09:48:10', '2021-02-18', 3, 68, 2348.09, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2021-05-06 09:48:10', '2021-05-06 09:48:10', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (151, 4, NULL, 1, NULL, '2021-05-06 09:48:27', '2021-05-06', 1, 1, 0.00, 5730795.00, 100, NULL, NULL, NULL, NULL, 0, 0, 1, '2023-01-13 10:11:03', '2021-05-06 09:48:27', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (152, 1, NULL, 8, NULL, '2021-09-30 18:06:39', '2021-09-30', 1, 69, 0.00, 0.00, 0, NULL, NULL, NULL, NULL, 0, 0, 1, '2022-03-30 11:07:28', '2021-09-30 06:06:39', 54);
INSERT INTO `uxc_usuarioxcaja` VALUES (153, 1, NULL, 8, NULL, '2022-03-30 11:07:27', '2021-09-30', 2, 70, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2022-03-30 11:07:27', '2022-03-30 11:07:27', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (154, 1, NULL, 8, NULL, '2022-03-30 11:08:16', '2022-03-30', 1, 71, 0.00, 0.00, 0, NULL, NULL, NULL, NULL, 0, 0, 54, '2023-03-09 17:14:25', '2022-03-30 11:08:16', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (155, 4, NULL, 1, NULL, '2023-01-13 10:11:03', '2021-05-06', 3, 2, 5730795.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2023-01-13 10:11:03', '2023-01-13 10:11:03', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (156, 4, NULL, 1, NULL, '2023-01-13 10:11:18', '2023-01-13', 1, 3, 0.00, 1267.86, 4, NULL, NULL, NULL, NULL, 0, 0, 1, '2023-03-09 17:27:07', '2023-01-13 10:11:18', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (157, 1, NULL, 8, NULL, '2023-03-09 17:14:25', '2022-03-30', 2, 72, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 54, '2023-03-09 17:14:25', '2023-03-09 05:14:25', 54);
INSERT INTO `uxc_usuarioxcaja` VALUES (158, 1, NULL, 54, NULL, '2023-03-09 17:16:29', '2023-03-09', 2, 73, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 54, '2023-03-09 17:16:29', '2023-03-09 05:16:29', 54);
INSERT INTO `uxc_usuarioxcaja` VALUES (159, 1, NULL, 54, NULL, '2023-03-09 17:22:40', '2023-03-09', 1, 74, 0.00, 14.96, 7, NULL, NULL, NULL, NULL, 0, 0, 54, '2023-04-25 14:01:52', '2023-03-09 05:22:40', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (160, 4, NULL, 1, NULL, '2023-03-09 17:27:06', '2023-01-13', 3, 4, 1267.86, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2023-03-09 17:27:06', '2023-03-09 05:27:06', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (161, 1, NULL, 54, NULL, '2023-04-25 14:01:51', '2023-03-09', 3, 75, 14.95, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 54, '2023-04-25 14:01:51', '2023-04-25 02:01:51', 54);
INSERT INTO `uxc_usuarioxcaja` VALUES (162, 1, NULL, 54, NULL, '2023-04-25 14:02:17', '2023-04-25', 1, 76, 0.00, 5932.50, 2, NULL, NULL, NULL, NULL, 0, 0, 1, '2023-05-12 08:18:45', '2023-04-25 02:02:17', 54);
INSERT INTO `uxc_usuarioxcaja` VALUES (163, 1, NULL, 54, NULL, '2023-05-12 08:18:44', '2023-04-25', 3, 77, 5932.50, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2023-05-12 08:18:44', '2023-05-12 08:18:44', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (164, 1, NULL, 1, NULL, '2023-05-12 08:20:09', '2023-05-12', 1, 78, 0.00, 94.98, 8, NULL, NULL, NULL, NULL, 0, 0, 1, '2023-05-25 11:17:58', '2023-05-12 08:20:09', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (165, 1, NULL, 1, NULL, '2023-05-25 11:17:58', '2023-05-12', 3, 79, 94.98, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2023-05-25 11:17:58', '2023-05-25 11:17:58', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (166, 1, NULL, 1, NULL, '2023-05-25 11:20:37', '2023-05-26', 1, 80, 100.00, 65.26, 5, NULL, NULL, NULL, NULL, 0, 0, 1, '2023-05-25 11:29:57', '2023-05-25 11:20:37', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (167, 1, NULL, 1, NULL, '2023-05-25 11:29:57', '2023-05-26', 2, 81, 65.26, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2023-05-25 11:29:57', '2023-05-25 11:29:57', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (168, 1, NULL, 1, NULL, '2023-05-25 11:51:35', '2023-05-25', 1, 82, 65.26, 107.97, 7, NULL, NULL, NULL, NULL, 0, 0, 1, '2023-07-04 09:53:12', '2023-05-25 11:51:35', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (169, 1, NULL, 1, NULL, '2023-07-04 09:53:12', '2023-05-25', 3, 83, 121.76, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2023-07-04 09:53:12', '2023-07-04 09:53:12', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (170, 1, NULL, 1, NULL, '2023-07-04 09:53:29', '2023-07-04', 1, 84, 0.00, 20.91, 2, NULL, NULL, NULL, NULL, 0, 0, 1, '2023-07-31 11:31:24', '2023-07-04 09:53:29', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (171, 1, NULL, 1, NULL, '2023-07-31 11:31:24', '2023-07-04', 2, 85, 20.91, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2023-07-31 11:31:24', '2023-07-31 11:31:24', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (172, 1, NULL, 1, NULL, '2023-07-31 11:31:36', '2023-07-31', 1, 86, 20.91, 16574.92, 22, NULL, NULL, NULL, NULL, 0, 0, 1, '2024-05-11 10:15:16', '2023-07-31 11:31:36', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (173, 1, NULL, 1, NULL, '2024-05-11 10:15:16', '2023-07-31', 3, 87, 16574.95, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2024-05-11 10:15:16', '2024-05-11 10:15:16', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (174, 1, NULL, 1, NULL, '2024-05-11 10:19:17', '2024-05-11', 1, 88, 0.00, 346.03, 13, NULL, NULL, NULL, NULL, 1, 0, 1, '2024-05-14 08:46:12', '2024-05-11 10:19:17', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (175, 1, NULL, 1, NULL, '2024-05-14 08:46:12', '2024-05-11', 3, 89, 317.55, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2024-05-14 08:46:12', '2024-05-14 08:46:12', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (176, 1, NULL, 1, NULL, '2024-05-14 08:46:27', '2024-05-14', 1, 90, 0.00, 386.58, 11, NULL, NULL, NULL, NULL, 0, 0, 1, '2024-05-20 07:45:23', '2024-05-14 08:46:27', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (177, 1, NULL, 1, NULL, '2024-05-20 07:45:23', '2024-05-14', 2, 91, 386.58, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2024-05-20 07:45:23', '2024-05-20 07:45:23', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (178, 1, NULL, 1, NULL, '2024-05-20 07:45:36', '2024-05-20', 1, 92, 386.58, 1827.26, 31, NULL, NULL, NULL, NULL, 0, 0, 1, '2024-06-12 15:22:40', '2024-05-20 07:45:36', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (179, 1, NULL, 1, NULL, '2024-06-12 15:22:39', '2024-05-20', 2, 93, 2053.25, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2024-06-12 15:22:39', '2024-06-12 03:22:39', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (180, 1, NULL, 1, NULL, '2024-06-12 15:22:55', '2024-06-12', 1, 94, 2053.25, 17106.57, 102, NULL, NULL, NULL, NULL, 1, 0, 1, '2024-08-19 18:29:53', '2024-06-12 03:22:55', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (181, 1, NULL, 1, NULL, '2024-08-19 18:29:53', '2024-06-12', 2, 95, 17106.57, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2024-08-19 18:29:53', '2024-08-19 06:29:53', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (182, 1, NULL, 1, NULL, '2024-08-20 16:49:41', '2024-08-20', 1, 96, 17106.57, 5260.15, 2, NULL, NULL, NULL, NULL, 0, 0, 1, '2024-08-30 08:28:30', '2024-08-20 04:49:41', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (183, 1, NULL, 1, NULL, '2024-08-30 08:28:30', '2024-08-20', 3, 97, 5260.15, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2024-08-30 08:28:30', '2024-08-30 08:28:30', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (184, 1, NULL, 1, NULL, '2024-08-30 08:28:41', '2024-08-30', 1, 98, 0.00, 1235.01, 14, NULL, NULL, NULL, NULL, 0, 0, 1, '2024-10-08 18:01:08', '2024-08-30 08:28:41', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (185, 1, NULL, 1, NULL, '2024-10-08 18:01:08', '2024-08-30', 2, 99, 1231.64, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 1, '2024-10-08 18:01:08', '2024-10-08 06:01:08', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (186, 1, NULL, 1, NULL, '2024-10-08 18:01:18', '2024-10-08', 1, 100, 1231.64, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, '2024-10-08 18:01:18', '2024-10-08 06:01:18', 1);
INSERT INTO `uxc_usuarioxcaja` VALUES (187, 4, NULL, 54, NULL, '2024-11-11 13:40:58', '2024-11-11', 1, 5, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 54, '2024-11-11 13:40:58', '2024-11-11 01:40:58', 54);

-- ----------------------------
-- Table structure for uxe_usuarioxempresa
-- ----------------------------
CREATE TABLE `uxe_usuarioxempresa`  (
  `uxe_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de usuario por empresa',
  `uxe_id_emr` int(11) NOT NULL COMMENT 'Llave principal de empresa',
  `uxe_id_usu` int(11) NOT NULL COMMENT 'Llave principal de Usuario.',
  `uxe_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro',
  `uxe_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `uxe_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `uxe_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `uxe_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`uxe_id`) USING BTREE,
  INDEX `uxe_id_emr`(`uxe_id_emr` ASC) USING BTREE,
  INDEX `uxe_id_usu`(`uxe_id_usu` ASC) USING BTREE,
  CONSTRAINT `uxe_id_emr` FOREIGN KEY (`uxe_id_emr`) REFERENCES `emr_empresa` (`emr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `uxe_id_usu` FOREIGN KEY (`uxe_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 181 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of uxe_usuarioxempresa
-- ----------------------------
INSERT INTO `uxe_usuarioxempresa` VALUES (5, 1, 4, 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `uxe_usuarioxempresa` VALUES (8, 1, 7, 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `uxe_usuarioxempresa` VALUES (11, 1, 10, 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `uxe_usuarioxempresa` VALUES (12, 1, 11, 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `uxe_usuarioxempresa` VALUES (13, 1, 12, 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `uxe_usuarioxempresa` VALUES (15, 1, 14, 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `uxe_usuarioxempresa` VALUES (16, 1, 15, 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `uxe_usuarioxempresa` VALUES (26, 1, 25, 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `uxe_usuarioxempresa` VALUES (27, 1, 26, 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `uxe_usuarioxempresa` VALUES (28, 1, 27, 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `uxe_usuarioxempresa` VALUES (30, 1, 29, 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `uxe_usuarioxempresa` VALUES (32, 1, 31, 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `uxe_usuarioxempresa` VALUES (44, 1, 13, 1, 1, '2019-08-12 10:04:58', 1, '2019-08-12 10:04:58');
INSERT INTO `uxe_usuarioxempresa` VALUES (45, 1, 32, 1, 1, '2019-08-12 10:05:15', 1, '2019-08-12 10:05:15');
INSERT INTO `uxe_usuarioxempresa` VALUES (54, 1, 35, 1, 1, '2019-08-29 15:53:49', 1, '2019-08-29 15:53:49');
INSERT INTO `uxe_usuarioxempresa` VALUES (65, 1, 30, 1, 1, '2019-10-21 13:53:36', 1, '2019-10-21 13:53:36');
INSERT INTO `uxe_usuarioxempresa` VALUES (73, 1, 16, 1, 9, '2020-03-31 10:04:47', 9, '2020-03-31 10:04:47');
INSERT INTO `uxe_usuarioxempresa` VALUES (75, 1, 17, 1, 9, '2020-03-31 10:08:56', 9, '2020-03-31 10:08:56');
INSERT INTO `uxe_usuarioxempresa` VALUES (76, 1, 36, 1, 9, '2020-03-31 10:10:40', 9, '2020-03-31 10:10:40');
INSERT INTO `uxe_usuarioxempresa` VALUES (80, 1, 21, 1, 9, '2020-04-14 16:29:55', 9, '2020-04-14 16:29:55');
INSERT INTO `uxe_usuarioxempresa` VALUES (94, 1, 20, 1, 9, '2020-04-16 10:46:48', 9, '2020-04-16 10:46:48');
INSERT INTO `uxe_usuarioxempresa` VALUES (97, 1, 8, 1, 9, '2020-04-18 11:42:41', 9, '2020-04-18 11:42:41');
INSERT INTO `uxe_usuarioxempresa` VALUES (98, 1, 22, 1, 9, '2020-04-24 10:03:57', 9, '2020-04-24 10:03:57');
INSERT INTO `uxe_usuarioxempresa` VALUES (99, 1, 23, 1, 9, '2020-04-24 12:56:55', 9, '2020-04-24 12:56:55');
INSERT INTO `uxe_usuarioxempresa` VALUES (101, 1, 24, 1, 9, '2020-04-24 15:39:16', 9, '2020-04-24 15:39:16');
INSERT INTO `uxe_usuarioxempresa` VALUES (104, 1, 3, 1, 9, '2020-04-25 09:25:39', 9, '2020-04-25 09:25:39');
INSERT INTO `uxe_usuarioxempresa` VALUES (109, 1, 6, 1, 9, '2020-04-29 10:58:33', 9, '2020-04-29 10:58:33');
INSERT INTO `uxe_usuarioxempresa` VALUES (110, 1, 5, 1, 9, '2020-05-02 10:28:30', 9, '2020-05-02 10:28:30');
INSERT INTO `uxe_usuarioxempresa` VALUES (111, 1, 28, 1, 9, '2020-05-07 15:18:53', 9, '2020-05-07 15:18:53');
INSERT INTO `uxe_usuarioxempresa` VALUES (112, 1, 19, 1, 9, '2020-05-27 15:52:58', 9, '2020-05-27 15:52:58');
INSERT INTO `uxe_usuarioxempresa` VALUES (117, 1, 33, 1, 9, '2020-06-24 14:06:11', 9, '2020-06-24 14:06:11');
INSERT INTO `uxe_usuarioxempresa` VALUES (120, 1, 9, 1, 9, '2020-06-29 14:52:31', 9, '2020-06-29 14:52:31');
INSERT INTO `uxe_usuarioxempresa` VALUES (122, 1, 18, 1, 9, '2020-07-05 21:08:31', 9, '2020-07-05 21:08:31');
INSERT INTO `uxe_usuarioxempresa` VALUES (124, 1, 37, 1, 1, '2020-07-06 17:15:28', 1, '2020-07-06 17:15:28');
INSERT INTO `uxe_usuarioxempresa` VALUES (126, 1, 38, 1, 1, '2020-09-10 11:59:16', 1, '2020-09-10 11:59:16');
INSERT INTO `uxe_usuarioxempresa` VALUES (127, 1, 39, 1, 1, '2020-10-12 17:20:01', 1, '2020-10-12 17:20:01');
INSERT INTO `uxe_usuarioxempresa` VALUES (129, 1, 41, 1, 1, '2020-10-12 17:21:02', 1, '2020-10-12 17:21:02');
INSERT INTO `uxe_usuarioxempresa` VALUES (130, 1, 42, 1, 1, '2020-10-12 17:21:23', 1, '2020-10-12 17:21:23');
INSERT INTO `uxe_usuarioxempresa` VALUES (131, 1, 43, 1, 1, '2020-10-12 17:21:59', 1, '2020-10-12 17:21:59');
INSERT INTO `uxe_usuarioxempresa` VALUES (132, 1, 44, 1, 1, '2020-10-12 17:22:31', 1, '2020-10-12 17:22:31');
INSERT INTO `uxe_usuarioxempresa` VALUES (133, 1, 45, 1, 1, '2020-10-12 17:23:15', 1, '2020-10-12 17:23:15');
INSERT INTO `uxe_usuarioxempresa` VALUES (134, 1, 46, 1, 1, '2020-10-12 17:23:36', 1, '2020-10-12 17:23:36');
INSERT INTO `uxe_usuarioxempresa` VALUES (135, 1, 47, 1, 1, '2020-10-12 17:23:52', 1, '2020-10-12 17:23:52');
INSERT INTO `uxe_usuarioxempresa` VALUES (136, 1, 48, 1, 1, '2020-10-12 17:24:15', 1, '2020-10-12 17:24:15');
INSERT INTO `uxe_usuarioxempresa` VALUES (138, 1, 50, 1, 1, '2021-08-16 19:27:33', 1, '2021-08-16 19:27:33');
INSERT INTO `uxe_usuarioxempresa` VALUES (139, 1, 51, 1, 1, '2021-08-17 20:17:58', 1, '2021-08-17 20:17:58');
INSERT INTO `uxe_usuarioxempresa` VALUES (140, 1, 52, 1, 1, '2021-08-17 20:39:30', 1, '2021-08-17 20:39:30');
INSERT INTO `uxe_usuarioxempresa` VALUES (141, 1, 53, 1, 1, '2021-08-17 21:02:10', 1, '2021-08-17 21:02:10');
INSERT INTO `uxe_usuarioxempresa` VALUES (143, 1, 55, 1, 1, '2022-06-02 13:45:33', 1, '2022-06-02 13:45:33');
INSERT INTO `uxe_usuarioxempresa` VALUES (144, 1, 56, 1, 1, '2023-03-08 21:51:21', 1, '2023-03-08 21:51:21');
INSERT INTO `uxe_usuarioxempresa` VALUES (145, 1, 54, 1, 1, '2023-03-09 17:16:14', 1, '2023-03-09 17:16:14');
INSERT INTO `uxe_usuarioxempresa` VALUES (146, 1, 57, 1, 1, '2023-03-09 17:26:42', 1, '2023-03-09 17:26:42');
INSERT INTO `uxe_usuarioxempresa` VALUES (147, 1, 58, 1, 1, '2023-03-09 17:29:40', 1, '2023-03-09 17:29:40');
INSERT INTO `uxe_usuarioxempresa` VALUES (156, 1, 62, 1, 1, '2024-01-30 16:16:32', 1, '2024-01-30 16:16:32');
INSERT INTO `uxe_usuarioxempresa` VALUES (161, 1, 2, 1, 1, '2024-07-26 15:28:28', 1, '2024-07-26 15:28:28');
INSERT INTO `uxe_usuarioxempresa` VALUES (162, 1, 59, 1, 1, '2024-07-27 12:28:21', 1, '2024-07-27 12:28:21');
INSERT INTO `uxe_usuarioxempresa` VALUES (165, 1, 63, 1, 49, '2024-07-29 16:23:53', 49, '2024-07-29 16:23:53');
INSERT INTO `uxe_usuarioxempresa` VALUES (167, 1, 49, 1, 49, '2024-07-30 08:29:56', 49, '2024-07-30 08:29:56');
INSERT INTO `uxe_usuarioxempresa` VALUES (168, 1, 64, 1, 1, '2024-08-30 18:12:00', 1, '2024-08-30 18:12:00');
INSERT INTO `uxe_usuarioxempresa` VALUES (171, 1, 66, 1, 1, '2024-09-16 13:27:10', 1, '2024-09-16 13:27:10');
INSERT INTO `uxe_usuarioxempresa` VALUES (172, 1, 65, 1, 1, '2024-10-22 11:39:40', 1, '2024-10-22 11:39:40');
INSERT INTO `uxe_usuarioxempresa` VALUES (173, 1, 67, 1, 1, '2024-12-18 14:12:21', 1, '2024-12-18 14:12:21');
INSERT INTO `uxe_usuarioxempresa` VALUES (174, 1, 68, 1, 1, '2024-12-18 14:19:06', 1, '2024-12-18 14:19:06');
INSERT INTO `uxe_usuarioxempresa` VALUES (175, 1, 69, 1, 1, '2025-04-11 10:32:00', 1, '2025-04-11 10:32:00');
INSERT INTO `uxe_usuarioxempresa` VALUES (178, 1, 40, 1, 1, '2025-08-18 09:45:23', 1, '2025-08-18 09:45:23');
INSERT INTO `uxe_usuarioxempresa` VALUES (179, 1, 1, 1, 1, '2025-08-18 15:01:51', 1, '2025-08-18 15:01:51');
INSERT INTO `uxe_usuarioxempresa` VALUES (180, 1, 70, 1, 1, '2025-08-19 17:05:30', 1, '2025-08-19 17:05:30');

-- ----------------------------
-- Table structure for uxg_uni_grupo
-- ----------------------------
CREATE TABLE `uxg_uni_grupo`  (
  `uxg_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Identificador único',
  `uxg_id_gra` int(11) NOT NULL COMMENT 'codigo de grupo academica',
  `uxg_id_unm` int(11) NOT NULL COMMENT 'Llave primaria del registro',
  `uxg_estado` int(11) NOT NULL COMMENT 'estado 1=activo, 0=inactivo',
  `uxg_usu_creacion` int(11) NOT NULL COMMENT 'Auditoría',
  `uxg_fecha_creacion` datetime NOT NULL COMMENT 'Auditoría',
  `uxg_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoría',
  `uxg_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoría',
  PRIMARY KEY (`uxg_id`) USING BTREE,
  INDEX `fk_uxg_id_gra`(`uxg_id_gra` ASC) USING BTREE,
  INDEX `fk_uxg_id_unm`(`uxg_id_unm` ASC) USING BTREE,
  CONSTRAINT `fk_uxg_id_gra` FOREIGN KEY (`uxg_id_gra`) REFERENCES `gra_grupo_academico` (`gra_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_uxg_id_unm` FOREIGN KEY (`uxg_id_unm`) REFERENCES `unm_unidad_modulo` (`unm_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Unidades por grupo' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of uxg_uni_grupo
-- ----------------------------

-- ----------------------------
-- Table structure for uxm_unidadxmodulo
-- ----------------------------
CREATE TABLE `uxm_unidadxmodulo`  (
  `uxm_id` int(11) NOT NULL AUTO_INCREMENT,
  `uxm_id_unm` int(11) NOT NULL COMMENT 'Llave primaria del registro unidad modulo',
  `uxm_id_mod` int(11) NOT NULL COMMENT 'codigo de modulo',
  `uxm_estado` int(11) NOT NULL COMMENT 'estado 1=activo, 0=inactivo',
  `uxm_usu_creacion` int(11) NOT NULL COMMENT 'Auditoría',
  `uxm_fecha_creacion` datetime NOT NULL COMMENT 'Auditoría',
  `uxm_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoría',
  `uxm_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoría',
  PRIMARY KEY (`uxm_id`) USING BTREE,
  INDEX `fk_uxm_id_mod`(`uxm_id_mod` ASC) USING BTREE,
  INDEX `fk_uxm_id_unm`(`uxm_id_unm` ASC) USING BTREE,
  CONSTRAINT `fk_uxm_id_mod` FOREIGN KEY (`uxm_id_mod`) REFERENCES `mod_modulo` (`mod_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_uxm_id_unm` FOREIGN KEY (`uxm_id_unm`) REFERENCES `unm_unidad_modulo` (`unm_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Unidades que se impartiran para un modulo/materia' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of uxm_unidadxmodulo
-- ----------------------------

-- ----------------------------
-- Table structure for uxo_usuarioxconfiguracion
-- ----------------------------
CREATE TABLE `uxo_usuarioxconfiguracion`  (
  `uxo_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal - Usuarios por proyecto',
  `uxo_id_cft` int(11) NOT NULL COMMENT 'Llave principal - Configuracion Ticket',
  `uxo_id_usu` int(11) NOT NULL COMMENT 'Llave principal - Usuarios',
  `uxo_estado` int(11) NOT NULL COMMENT 'Estado de flujo',
  `uxo_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `uxo_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `uxo_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `uxo_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`uxo_id`) USING BTREE,
  INDEX `fk_uxo_id_cft`(`uxo_id_cft` ASC) USING BTREE,
  INDEX `fk_uxo_id_usu`(`uxo_id_usu` ASC) USING BTREE,
  CONSTRAINT `fk_uxo_id_cft` FOREIGN KEY (`uxo_id_cft`) REFERENCES `cft_configuracion_ticket` (`cft_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_uxo_id_usu` FOREIGN KEY (`uxo_id_usu`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Usuarios por configuracion Ticket' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of uxo_usuarioxconfiguracion
-- ----------------------------

-- ----------------------------
-- Table structure for uxp_usuarioxproyecto
-- ----------------------------
CREATE TABLE `uxp_usuarioxproyecto`  (
  `uxp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal - Usuarios por proyecto',
  `uxp_id_pry` int(11) NOT NULL COMMENT 'Llave principal - Proyectos',
  `uxp_id_usu` int(11) NOT NULL COMMENT 'Llave principal - Usuarios',
  `uxp_estado` int(11) NOT NULL COMMENT 'Estado de flujo',
  `uxp_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `uxp_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `uxp_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `uxp_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`uxp_id`) USING BTREE,
  INDEX `fk_uxp_id_pry`(`uxp_id_pry` ASC) USING BTREE,
  INDEX `fk_uxp_id_usu`(`uxp_id_usu` ASC) USING BTREE,
  CONSTRAINT `fk_uxp_id_pry` FOREIGN KEY (`uxp_id_pry`) REFERENCES `pry_proyecto` (`pry_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_uxp_id_usu` FOREIGN KEY (`uxp_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 60 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Usuarios por proyecto' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of uxp_usuarioxproyecto
-- ----------------------------
INSERT INTO `uxp_usuarioxproyecto` VALUES (38, 2, 1, 1, 1, 1, '2024-02-09 12:43:01', '2024-02-09 12:43:01');
INSERT INTO `uxp_usuarioxproyecto` VALUES (39, 2, 50, 1, 1, 1, '2024-02-09 12:43:01', '2024-02-09 12:43:01');
INSERT INTO `uxp_usuarioxproyecto` VALUES (40, 2, 51, 1, 1, 1, '2024-02-09 12:43:01', '2024-02-09 12:43:01');
INSERT INTO `uxp_usuarioxproyecto` VALUES (41, 2, 52, 1, 1, 1, '2024-02-09 12:43:01', '2024-02-09 12:43:01');
INSERT INTO `uxp_usuarioxproyecto` VALUES (42, 2, 53, 1, 1, 1, '2024-02-09 12:43:01', '2024-02-09 12:43:01');
INSERT INTO `uxp_usuarioxproyecto` VALUES (50, 3, 1, 1, 1, 1, '2024-08-16 06:56:42', '2024-08-16 06:56:42');
INSERT INTO `uxp_usuarioxproyecto` VALUES (51, 3, 40, 1, 1, 1, '2024-08-16 06:56:42', '2024-08-16 06:56:42');
INSERT INTO `uxp_usuarioxproyecto` VALUES (52, 3, 42, 1, 1, 1, '2024-08-16 06:56:42', '2024-08-16 06:56:42');
INSERT INTO `uxp_usuarioxproyecto` VALUES (53, 3, 51, 1, 1, 1, '2024-08-16 06:56:42', '2024-08-16 06:56:42');
INSERT INTO `uxp_usuarioxproyecto` VALUES (54, 3, 56, 1, 1, 1, '2024-08-16 06:56:42', '2024-08-16 06:56:42');
INSERT INTO `uxp_usuarioxproyecto` VALUES (55, 1, 1, 1, 1, 1, '2024-09-27 14:39:45', '2024-09-27 14:39:45');
INSERT INTO `uxp_usuarioxproyecto` VALUES (56, 1, 50, 1, 1, 1, '2024-09-27 14:39:45', '2024-09-27 14:39:45');
INSERT INTO `uxp_usuarioxproyecto` VALUES (57, 1, 51, 1, 1, 1, '2024-09-27 14:39:45', '2024-09-27 14:39:45');
INSERT INTO `uxp_usuarioxproyecto` VALUES (58, 1, 52, 1, 1, 1, '2024-09-27 14:39:45', '2024-09-27 14:39:45');
INSERT INTO `uxp_usuarioxproyecto` VALUES (59, 1, 53, 1, 1, 1, '2024-09-27 14:39:45', '2024-09-27 14:39:45');

-- ----------------------------
-- Table structure for uxr_usuarioxrol
-- ----------------------------
CREATE TABLE `uxr_usuarioxrol`  (
  `uxr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Codigo de relacion ',
  `uxr_id_usu` int(11) NOT NULL COMMENT 'Codigo de usuario',
  `uxr_id_rol` int(11) NOT NULL COMMENT 'Codigo de rol',
  PRIMARY KEY (`uxr_id`) USING BTREE,
  INDEX `fk_uxr_id_usu`(`uxr_id_usu` ASC) USING BTREE,
  INDEX `fk_uxr_id_rol`(`uxr_id_rol` ASC) USING BTREE,
  CONSTRAINT `uxr_usuarioxrol_ibfk_1` FOREIGN KEY (`uxr_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `uxr_usuarioxrol_ibfk_2` FOREIGN KEY (`uxr_id_rol`) REFERENCES `rol_rol` (`rol_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 451 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_spanish_ci COMMENT = 'Usuarios por Rol' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of uxr_usuarioxrol
-- ----------------------------
INSERT INTO `uxr_usuarioxrol` VALUES (3, 7, 2);
INSERT INTO `uxr_usuarioxrol` VALUES (12, 7, 11);
INSERT INTO `uxr_usuarioxrol` VALUES (14, 12, 12);
INSERT INTO `uxr_usuarioxrol` VALUES (15, 14, 12);
INSERT INTO `uxr_usuarioxrol` VALUES (16, 15, 12);
INSERT INTO `uxr_usuarioxrol` VALUES (26, 32, 6);
INSERT INTO `uxr_usuarioxrol` VALUES (46, 35, 22);
INSERT INTO `uxr_usuarioxrol` VALUES (89, 30, 1);
INSERT INTO `uxr_usuarioxrol` VALUES (90, 30, 4);
INSERT INTO `uxr_usuarioxrol` VALUES (91, 30, 20);
INSERT INTO `uxr_usuarioxrol` VALUES (109, 16, 12);
INSERT INTO `uxr_usuarioxrol` VALUES (111, 17, 12);
INSERT INTO `uxr_usuarioxrol` VALUES (112, 36, 12);
INSERT INTO `uxr_usuarioxrol` VALUES (120, 21, 14);
INSERT INTO `uxr_usuarioxrol` VALUES (162, 20, 2);
INSERT INTO `uxr_usuarioxrol` VALUES (163, 20, 3);
INSERT INTO `uxr_usuarioxrol` VALUES (164, 20, 10);
INSERT INTO `uxr_usuarioxrol` VALUES (170, 8, 2);
INSERT INTO `uxr_usuarioxrol` VALUES (171, 8, 23);
INSERT INTO `uxr_usuarioxrol` VALUES (172, 8, 28);
INSERT INTO `uxr_usuarioxrol` VALUES (173, 22, 29);
INSERT INTO `uxr_usuarioxrol` VALUES (174, 23, 31);
INSERT INTO `uxr_usuarioxrol` VALUES (180, 24, 32);
INSERT INTO `uxr_usuarioxrol` VALUES (185, 3, 7);
INSERT INTO `uxr_usuarioxrol` VALUES (186, 3, 33);
INSERT INTO `uxr_usuarioxrol` VALUES (196, 6, 9);
INSERT INTO `uxr_usuarioxrol` VALUES (197, 6, 13);
INSERT INTO `uxr_usuarioxrol` VALUES (198, 6, 21);
INSERT INTO `uxr_usuarioxrol` VALUES (199, 6, 24);
INSERT INTO `uxr_usuarioxrol` VALUES (200, 6, 25);
INSERT INTO `uxr_usuarioxrol` VALUES (201, 6, 26);
INSERT INTO `uxr_usuarioxrol` VALUES (202, 5, 2);
INSERT INTO `uxr_usuarioxrol` VALUES (203, 5, 7);
INSERT INTO `uxr_usuarioxrol` VALUES (204, 5, 24);
INSERT INTO `uxr_usuarioxrol` VALUES (205, 5, 27);
INSERT INTO `uxr_usuarioxrol` VALUES (206, 5, 35);
INSERT INTO `uxr_usuarioxrol` VALUES (207, 28, 30);
INSERT INTO `uxr_usuarioxrol` VALUES (208, 19, 4);
INSERT INTO `uxr_usuarioxrol` VALUES (209, 19, 18);
INSERT INTO `uxr_usuarioxrol` VALUES (224, 33, 3);
INSERT INTO `uxr_usuarioxrol` VALUES (225, 33, 15);
INSERT INTO `uxr_usuarioxrol` VALUES (234, 9, 1);
INSERT INTO `uxr_usuarioxrol` VALUES (235, 9, 4);
INSERT INTO `uxr_usuarioxrol` VALUES (236, 9, 20);
INSERT INTO `uxr_usuarioxrol` VALUES (239, 18, 12);
INSERT INTO `uxr_usuarioxrol` VALUES (241, 37, 12);
INSERT INTO `uxr_usuarioxrol` VALUES (250, 38, 27);
INSERT INTO `uxr_usuarioxrol` VALUES (251, 39, 7);
INSERT INTO `uxr_usuarioxrol` VALUES (254, 41, 6);
INSERT INTO `uxr_usuarioxrol` VALUES (255, 42, 7);
INSERT INTO `uxr_usuarioxrol` VALUES (256, 42, 36);
INSERT INTO `uxr_usuarioxrol` VALUES (257, 43, 6);
INSERT INTO `uxr_usuarioxrol` VALUES (258, 43, 11);
INSERT INTO `uxr_usuarioxrol` VALUES (259, 43, 21);
INSERT INTO `uxr_usuarioxrol` VALUES (260, 44, 6);
INSERT INTO `uxr_usuarioxrol` VALUES (261, 44, 27);
INSERT INTO `uxr_usuarioxrol` VALUES (262, 45, 5);
INSERT INTO `uxr_usuarioxrol` VALUES (263, 46, 5);
INSERT INTO `uxr_usuarioxrol` VALUES (264, 47, 5);
INSERT INTO `uxr_usuarioxrol` VALUES (265, 48, 5);
INSERT INTO `uxr_usuarioxrol` VALUES (273, 50, 37);
INSERT INTO `uxr_usuarioxrol` VALUES (274, 51, 37);
INSERT INTO `uxr_usuarioxrol` VALUES (275, 52, 37);
INSERT INTO `uxr_usuarioxrol` VALUES (276, 53, 37);
INSERT INTO `uxr_usuarioxrol` VALUES (278, 55, 38);
INSERT INTO `uxr_usuarioxrol` VALUES (279, 56, 37);
INSERT INTO `uxr_usuarioxrol` VALUES (280, 54, 10);
INSERT INTO `uxr_usuarioxrol` VALUES (281, 57, 10);
INSERT INTO `uxr_usuarioxrol` VALUES (282, 58, 10);
INSERT INTO `uxr_usuarioxrol` VALUES (306, 60, 21);
INSERT INTO `uxr_usuarioxrol` VALUES (376, 61, 21);
INSERT INTO `uxr_usuarioxrol` VALUES (377, 62, 2);
INSERT INTO `uxr_usuarioxrol` VALUES (378, 62, 6);
INSERT INTO `uxr_usuarioxrol` VALUES (379, 62, 10);
INSERT INTO `uxr_usuarioxrol` VALUES (388, 2, 1);
INSERT INTO `uxr_usuarioxrol` VALUES (389, 2, 4);
INSERT INTO `uxr_usuarioxrol` VALUES (390, 2, 20);
INSERT INTO `uxr_usuarioxrol` VALUES (391, 59, 12);
INSERT INTO `uxr_usuarioxrol` VALUES (392, 59, 34);
INSERT INTO `uxr_usuarioxrol` VALUES (415, 63, 2);
INSERT INTO `uxr_usuarioxrol` VALUES (428, 49, 40);
INSERT INTO `uxr_usuarioxrol` VALUES (429, 64, 1);
INSERT INTO `uxr_usuarioxrol` VALUES (434, 66, 1);
INSERT INTO `uxr_usuarioxrol` VALUES (435, 66, 4);
INSERT INTO `uxr_usuarioxrol` VALUES (436, 66, 5);
INSERT INTO `uxr_usuarioxrol` VALUES (437, 66, 18);
INSERT INTO `uxr_usuarioxrol` VALUES (438, 65, 1);
INSERT INTO `uxr_usuarioxrol` VALUES (439, 65, 3);
INSERT INTO `uxr_usuarioxrol` VALUES (440, 65, 6);
INSERT INTO `uxr_usuarioxrol` VALUES (441, 67, 41);
INSERT INTO `uxr_usuarioxrol` VALUES (442, 68, 42);
INSERT INTO `uxr_usuarioxrol` VALUES (443, 69, 1);
INSERT INTO `uxr_usuarioxrol` VALUES (446, 40, 4);
INSERT INTO `uxr_usuarioxrol` VALUES (447, 40, 7);
INSERT INTO `uxr_usuarioxrol` VALUES (448, 40, 36);
INSERT INTO `uxr_usuarioxrol` VALUES (449, 1, 1);
INSERT INTO `uxr_usuarioxrol` VALUES (450, 70, 43);

-- ----------------------------
-- Table structure for uxt_ubicaxticket
-- ----------------------------
CREATE TABLE `uxt_ubicaxticket`  (
  `uxt_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave principal - relacion  ubicacion por ticket',
  `uxt_id_ubt` int(11) NOT NULL COMMENT 'codigo de ubicacion',
  `uxt_id_dtt` int(11) NOT NULL COMMENT 'llave principal - detalle de ticket',
  `uxt_estado` int(11) NOT NULL COMMENT 'estado de registro',
  `uxt_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `uxt_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `uxt_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `uxt_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`uxt_id`) USING BTREE,
  INDEX `fk_uxt_id_dtt`(`uxt_id_dtt` ASC) USING BTREE,
  INDEX `fk_uxt_id_ubt`(`uxt_id_ubt` ASC) USING BTREE,
  CONSTRAINT `fk_uxt_id_dtt` FOREIGN KEY (`uxt_id_dtt`) REFERENCES `dtt_detalle_ticket_trans` (`dtt_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_uxt_id_ubt` FOREIGN KEY (`uxt_id_ubt`) REFERENCES `ubt_ubicacion_tarea` (`ubt_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'ubicaciones/destinos por ticket' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of uxt_ubicaxticket
-- ----------------------------
INSERT INTO `uxt_ubicaxticket` VALUES (1, 2, 1, 1, 1, 1, '2023-01-19 00:34:21', '2023-01-19 00:34:21');
INSERT INTO `uxt_ubicaxticket` VALUES (2, 1, 2, 1, 1, 1, '2023-01-19 10:28:52', '2023-01-19 10:28:52');
INSERT INTO `uxt_ubicaxticket` VALUES (3, 2, 3, 1, 1, 1, '2023-01-19 10:38:37', '2023-01-19 10:38:37');
INSERT INTO `uxt_ubicaxticket` VALUES (4, 1, 3, 1, 1, 1, '2023-01-19 10:38:37', '2023-01-19 10:38:37');
INSERT INTO `uxt_ubicaxticket` VALUES (5, 1, 4, 1, 1, 1, '2024-02-08 11:43:05', '2024-02-08 11:43:05');
INSERT INTO `uxt_ubicaxticket` VALUES (6, 2, 5, 1, 1, 1, '2024-02-08 12:44:46', '2024-02-08 12:44:46');
INSERT INTO `uxt_ubicaxticket` VALUES (7, 1, 5, 1, 1, 1, '2024-02-08 12:44:46', '2024-02-08 12:44:46');

-- ----------------------------
-- Table structure for vac_vacacion
-- ----------------------------
CREATE TABLE `vac_vacacion`  (
  `vac_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Codigo de periodo de vacacion por empleado',
  `vac_id_emp` int(11) NOT NULL COMMENT 'Codigo de empleado',
  `vac_id_prv` int(11) NOT NULL COMMENT 'Codigo interno de periodo (2014-2015)',
  `vac_dia_ganado` int(11) NOT NULL COMMENT 'Dias de vacaciones ganadas',
  `vac_dia_gozado` int(11) NOT NULL COMMENT 'Dias de vacaciones gozadas',
  `vac_estado` tinyint(4) NOT NULL COMMENT 'Estado de registro',
  `vac_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `vac_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `vac_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `vac_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`vac_id`) USING BTREE,
  INDEX `fk_vac_id_emp`(`vac_id_emp` ASC) USING BTREE,
  INDEX `fk_periodo_vacacion`(`vac_id_prv` ASC) USING BTREE,
  CONSTRAINT `fk_periodo_vacacion` FOREIGN KEY (`vac_id_prv`) REFERENCES `prv_periodo_vacacion` (`prv_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_vac_id_emp` FOREIGN KEY (`vac_id_emp`) REFERENCES `emp_empleado` (`emp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 940 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Periodos de vacaciones por empleado' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of vac_vacacion
-- ----------------------------
INSERT INTO `vac_vacacion` VALUES (283, 1, 8, 15, 15, 0, 1, '2020-09-07 10:51:43', 1, '2024-01-25 10:25:47');
INSERT INTO `vac_vacacion` VALUES (284, 2, 8, 15, 15, 0, 1, '2020-09-07 10:51:43', 1, '2024-08-01 14:28:45');
INSERT INTO `vac_vacacion` VALUES (285, 4, 8, 15, 15, 0, 1, '2020-09-07 10:51:43', 1, '2024-07-19 17:02:10');
INSERT INTO `vac_vacacion` VALUES (286, 6, 8, 15, 10, 1, 1, '2020-09-07 10:51:43', 1, '2024-12-17 14:20:44');
INSERT INTO `vac_vacacion` VALUES (287, 8, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (288, 9, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (289, 10, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (290, 11, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (291, 12, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (292, 15, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (293, 18, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (294, 22, 8, 15, 4, 1, 1, '2020-09-07 10:51:43', 1, '2025-08-20 16:58:27');
INSERT INTO `vac_vacacion` VALUES (295, 23, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (296, 24, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (297, 25, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (298, 26, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (299, 27, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (300, 28, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (301, 29, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (302, 30, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (303, 31, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (304, 32, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (305, 33, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (306, 34, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (307, 35, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (308, 36, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (309, 37, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (310, 38, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (311, 39, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (312, 40, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (313, 41, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (314, 42, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (315, 43, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (316, 44, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (317, 45, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (318, 46, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (319, 47, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (320, 48, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (321, 49, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (322, 50, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (323, 51, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (324, 52, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (325, 53, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (326, 54, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (327, 56, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (328, 57, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (329, 59, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (330, 69, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (331, 71, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (332, 72, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (333, 73, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (334, 75, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (335, 79, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (336, 80, 8, 15, 0, 1, 1, '2020-09-07 10:51:43', 1, '2020-09-07 10:51:43');
INSERT INTO `vac_vacacion` VALUES (337, 1, 9, 7, 6, 1, 1, '2024-01-25 10:22:51', 1, '2024-07-19 16:54:35');
INSERT INTO `vac_vacacion` VALUES (338, 2, 9, 7, 7, 0, 1, '2024-01-25 10:22:51', 1, '2024-11-20 09:39:20');
INSERT INTO `vac_vacacion` VALUES (339, 3, 9, 7, 5, 1, 1, '2024-01-25 10:22:51', 1, '2024-08-23 15:18:50');
INSERT INTO `vac_vacacion` VALUES (340, 4, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (341, 6, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (342, 8, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (343, 9, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (344, 10, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (345, 11, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (346, 12, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (347, 15, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (348, 16, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (349, 18, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (350, 22, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (351, 23, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (352, 24, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (353, 25, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (354, 26, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (355, 27, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (356, 28, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (357, 29, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (358, 30, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (359, 31, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (360, 32, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (361, 33, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (362, 34, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (363, 35, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (364, 36, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (365, 37, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (366, 38, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (367, 39, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (368, 40, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (369, 41, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (370, 42, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (371, 43, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (372, 44, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (373, 45, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (374, 46, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (375, 47, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (376, 48, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (377, 49, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (378, 50, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (379, 51, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (380, 52, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (381, 53, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (382, 54, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (383, 56, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (384, 57, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (385, 59, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (386, 69, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (387, 70, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (388, 71, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (389, 72, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (390, 73, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (391, 75, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (392, 76, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (393, 77, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (394, 79, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (395, 80, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (396, 81, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (397, 82, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (398, 83, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (399, 84, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (400, 86, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (401, 87, 9, 7, 0, 1, 1, '2024-01-25 10:22:51', 1, '2024-01-25 10:22:51');
INSERT INTO `vac_vacacion` VALUES (402, 5, 10, 30, 15, 1, 1, '2025-07-13 19:03:29', 1, '2025-07-16 11:24:39');
INSERT INTO `vac_vacacion` VALUES (403, 1, 10, 30, 0, 1, 1, '2025-07-16 11:22:48', 1, '2025-07-16 11:22:48');
INSERT INTO `vac_vacacion` VALUES (404, 2, 10, 30, 30, 0, 1, '2025-07-16 11:22:48', 1, '2025-07-21 13:56:12');
INSERT INTO `vac_vacacion` VALUES (405, 3, 10, 30, 0, 1, 1, '2025-07-16 11:22:48', 1, '2025-07-16 11:22:48');
INSERT INTO `vac_vacacion` VALUES (406, 4, 10, 30, 0, 1, 1, '2025-07-16 11:22:48', 1, '2025-07-16 11:22:48');
INSERT INTO `vac_vacacion` VALUES (407, 11, 10, 30, 0, 1, 1, '2025-07-16 11:22:48', 1, '2025-07-16 11:22:48');
INSERT INTO `vac_vacacion` VALUES (537, 1, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (538, 2, 11, 30, 30, 0, 1, '2025-07-21 13:54:03', 1, '2025-11-13 11:28:57');
INSERT INTO `vac_vacacion` VALUES (539, 3, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (540, 4, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (541, 5, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (542, 11, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (543, 13, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (544, 18, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (546, 22, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (547, 23, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (548, 24, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (549, 30, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (550, 31, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (551, 32, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (552, 33, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (553, 34, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (554, 35, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (555, 37, 11, 30, 0, 1, 1, '2025-07-21 13:54:03', 1, '2025-07-21 13:54:03');
INSERT INTO `vac_vacacion` VALUES (556, 38, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (557, 39, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (558, 40, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (559, 41, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (560, 44, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (561, 45, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (562, 46, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (563, 48, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (564, 51, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (565, 52, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (566, 53, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (567, 55, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (568, 56, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (569, 57, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (570, 59, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (571, 61, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (572, 66, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (573, 67, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (574, 68, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (575, 70, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (576, 71, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (577, 72, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (578, 74, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (579, 76, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (580, 77, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (581, 78, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (582, 81, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (583, 82, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (584, 83, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (585, 84, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (586, 85, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (587, 87, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (588, 89, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (589, 93, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (590, 94, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (591, 96, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (592, 101, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (593, 103, 11, 30, 0, 1, 1, '2025-07-21 13:54:04', 1, '2025-07-21 13:54:04');
INSERT INTO `vac_vacacion` VALUES (594, 107, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (595, 110, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (596, 115, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (597, 116, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (598, 117, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (599, 120, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (600, 133, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (601, 136, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (602, 141, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (603, 142, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (604, 161, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (605, 164, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (606, 176, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (607, 178, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (608, 179, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (609, 182, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (610, 183, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (611, 184, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (612, 185, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (613, 189, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (614, 192, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (615, 194, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (616, 195, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (617, 200, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (618, 201, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (619, 203, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (620, 204, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (621, 207, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (622, 208, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (623, 212, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (624, 217, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (625, 218, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (626, 219, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (627, 221, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (628, 223, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (629, 224, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (630, 225, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (631, 228, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (632, 229, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (633, 232, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (634, 233, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (635, 234, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (636, 235, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (637, 236, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (638, 237, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (639, 240, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (640, 249, 11, 30, 0, 1, 1, '2025-07-21 13:54:05', 1, '2025-07-21 13:54:05');
INSERT INTO `vac_vacacion` VALUES (641, 250, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (642, 251, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (643, 252, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (644, 253, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (645, 256, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (646, 258, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (647, 259, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (648, 270, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (649, 272, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (650, 273, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (651, 274, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (652, 275, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (653, 277, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (654, 312, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (655, 315, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (656, 2001, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (657, 2011, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (658, 2022, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (659, 2074, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (660, 2081, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (661, 2082, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (662, 2083, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (663, 2104, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (664, 2112, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (665, 2113, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (666, 2131, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (667, 2134, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (668, 2135, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (669, 2138, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (670, 2139, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (671, 4158, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (672, 4168, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (673, 4215, 11, 30, 0, 1, 1, '2025-07-21 13:54:06', 1, '2025-07-21 13:54:06');
INSERT INTO `vac_vacacion` VALUES (675, 13, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (676, 18, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (677, 21, 10, 30, 30, 0, 1, '2025-08-13 14:20:07', 1, '2025-08-18 08:29:26');
INSERT INTO `vac_vacacion` VALUES (678, 22, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (679, 23, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (680, 24, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (681, 30, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (682, 31, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (683, 32, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (684, 33, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (685, 34, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (686, 35, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (687, 38, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (688, 39, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (689, 40, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (690, 41, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (691, 44, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (692, 45, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (693, 46, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (694, 48, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (695, 51, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (696, 52, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (697, 53, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (698, 55, 10, 30, 0, 1, 1, '2025-08-13 14:20:07', 1, '2025-08-13 14:20:07');
INSERT INTO `vac_vacacion` VALUES (699, 56, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (700, 59, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (701, 61, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (702, 66, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (703, 67, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (704, 68, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (705, 71, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (706, 72, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (707, 74, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (708, 76, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (709, 77, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (710, 78, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (711, 81, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (712, 82, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (713, 83, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (714, 84, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (715, 85, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (716, 87, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (717, 89, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (718, 93, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (719, 94, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (720, 96, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (721, 101, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (722, 103, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (723, 107, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (724, 110, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (725, 115, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (726, 116, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (727, 117, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (728, 120, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (729, 133, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (730, 136, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (731, 141, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (732, 161, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (733, 164, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (734, 176, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (735, 178, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (736, 179, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (737, 182, 10, 30, 0, 1, 1, '2025-08-13 14:20:08', 1, '2025-08-13 14:20:08');
INSERT INTO `vac_vacacion` VALUES (738, 183, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (739, 184, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (740, 185, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (741, 189, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (742, 192, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (743, 194, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (744, 195, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (745, 200, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (746, 201, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (747, 203, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (748, 204, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (749, 207, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (750, 208, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (751, 212, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (752, 217, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (753, 218, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (754, 219, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (755, 221, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (756, 223, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (757, 224, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (758, 225, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (759, 228, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (760, 232, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (761, 233, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (762, 234, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (763, 235, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (764, 236, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (765, 237, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (766, 240, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (767, 249, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (768, 250, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (769, 251, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (770, 252, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (771, 253, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (772, 256, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (773, 258, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (774, 259, 10, 30, 0, 1, 1, '2025-08-13 14:20:09', 1, '2025-08-13 14:20:09');
INSERT INTO `vac_vacacion` VALUES (775, 270, 10, 30, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (776, 272, 10, 30, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (777, 273, 10, 30, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (778, 274, 10, 30, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (779, 275, 10, 30, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (780, 277, 10, 30, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (781, 312, 10, 30, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (782, 2001, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (783, 2011, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (784, 2022, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (785, 2074, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (786, 2081, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (787, 2082, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (788, 2083, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (789, 2104, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (790, 2112, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (791, 2113, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (792, 2131, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (793, 2134, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (794, 2135, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (795, 2138, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (796, 2139, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (797, 4158, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (798, 4168, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (799, 4215, 10, 29, 0, 1, 1, '2025-08-13 14:20:10', 1, '2025-08-13 14:20:10');
INSERT INTO `vac_vacacion` VALUES (800, 1, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (801, 2, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (802, 3, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (803, 4, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (804, 9, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (805, 11, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (806, 13, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (807, 18, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (808, 23, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (809, 24, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (810, 30, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (811, 31, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (812, 32, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (813, 33, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (814, 34, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (815, 35, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (816, 37, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (817, 38, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (818, 39, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (819, 40, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (820, 41, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (821, 44, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (822, 45, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (823, 46, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (824, 48, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (825, 49, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (826, 51, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (827, 52, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (828, 53, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (829, 55, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (830, 56, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (831, 57, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (832, 59, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (833, 61, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (834, 66, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (835, 67, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (836, 68, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (837, 70, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (838, 71, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (839, 72, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (840, 74, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (841, 76, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (842, 77, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (843, 78, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (844, 81, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (845, 82, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (846, 83, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (847, 84, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (848, 85, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (849, 87, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (850, 89, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (851, 93, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (852, 94, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (853, 96, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (854, 101, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (855, 103, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (856, 107, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (857, 110, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (858, 115, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (859, 116, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (860, 120, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (861, 133, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (862, 136, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (863, 141, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (864, 161, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (865, 164, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (866, 168, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (867, 176, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (868, 178, 12, 30, 0, 1, 1, '2025-11-13 11:26:28', 1, '2025-11-13 11:26:28');
INSERT INTO `vac_vacacion` VALUES (869, 179, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (870, 182, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (871, 183, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (872, 184, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (873, 185, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (874, 188, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (875, 189, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (876, 192, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (877, 194, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (878, 195, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (879, 200, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (880, 201, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (881, 203, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (882, 204, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (883, 207, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (884, 208, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (885, 212, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (886, 217, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (887, 218, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (888, 219, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (889, 221, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (890, 222, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (891, 223, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (892, 224, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (893, 225, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (894, 228, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (895, 229, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (896, 230, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (897, 232, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (898, 233, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (899, 234, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (900, 235, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (901, 236, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (902, 237, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (903, 239, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (904, 240, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (905, 249, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (906, 250, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (907, 251, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (908, 252, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (909, 253, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (910, 256, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (911, 258, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (912, 259, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (913, 270, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (914, 272, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (915, 273, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (916, 274, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (917, 275, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (918, 276, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (919, 277, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (920, 312, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (921, 315, 12, 30, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (922, 2001, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (923, 2011, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (924, 2022, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (925, 2074, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (926, 2081, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (927, 2082, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (928, 2083, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (929, 2104, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (930, 2112, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (931, 2113, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (932, 2131, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (933, 2134, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (934, 2135, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (935, 2138, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (936, 2139, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (937, 4158, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (938, 4168, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');
INSERT INTO `vac_vacacion` VALUES (939, 4215, 12, 29, 0, 1, 1, '2025-11-13 11:26:29', 1, '2025-11-13 11:26:29');

-- ----------------------------
-- Table structure for val_vale
-- ----------------------------
CREATE TABLE `val_vale`  (
  `val_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave primaria de contrato',
  `val_id_srv` int(11) NOT NULL COMMENT 'llave principal - serie vales',
  `val_numero` int(11) NOT NULL COMMENT 'número de vale',
  `val_estado` int(11) NOT NULL COMMENT 'estado de registro',
  `val_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `val_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  `val_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `val_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`val_id`) USING BTREE,
  INDEX `fk_fk_val_id_srv`(`val_id_srv` ASC) USING BTREE,
  CONSTRAINT `fk_fk_val_id_srv` FOREIGN KEY (`val_id_srv`) REFERENCES `srv_serie_vale` (`srv_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'vales de combustible' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of val_vale
-- ----------------------------

-- ----------------------------
-- Table structure for vao_variable_constancia
-- ----------------------------
CREATE TABLE `vao_variable_constancia`  (
  `vao_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave Principal - Variable de Constancia',
  `vao_nombre` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Nombre de variable de constancia',
  `vao_descripcion` varchar(1000) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Descripción de la variable',
  `vao_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro',
  `vao_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `vao_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `vao_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `vao_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`vao_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Catalogo de Variables de constancia' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of vao_variable_constancia
-- ----------------------------

-- ----------------------------
-- Table structure for veh_vehiculo
-- ----------------------------
CREATE TABLE `veh_vehiculo`  (
  `veh_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave principal - tipo de licencias',
  `veh_id_mrv` int(11) NULL DEFAULT NULL,
  `veh_id_mdv` int(11) NULL DEFAULT NULL COMMENT 'llave principal - modelos para vehiculos',
  `veh_id_tvh` int(11) NULL DEFAULT NULL COMMENT 'llave principal - tipos para vehiculos',
  `veh_id_tpm` int(11) NULL DEFAULT NULL COMMENT 'llave principal - tipos de motores',
  `veh_id_clv` int(11) NULL DEFAULT NULL COMMENT 'llave principal - colores vehiculos',
  `veh_id_trm` int(11) NULL DEFAULT NULL COMMENT 'llave principal - tipos de transmisión',
  `veh_id_trc` int(11) NULL DEFAULT NULL COMMENT 'llave principal - tipos para traccion',
  `veh_id_tpl` int(11) NULL DEFAULT NULL COMMENT 'llave principal - tipos de llantas',
  `veh_id_tpc` int(11) NULL DEFAULT NULL COMMENT 'llave principal - tipos de combustible',
  `veh_id_cfv` int(11) NULL DEFAULT NULL COMMENT 'llave principal - clasificacion de vehiculos',
  `veh_id_stv` int(11) NULL DEFAULT NULL,
  `veh_id_cms` int(11) NULL DEFAULT NULL COMMENT 'Llave primaria de Compania de seguro',
  `veh_id_tpf` int(11) NULL DEFAULT NULL COMMENT 'Llave principal - Tipo de fondo',
  `veh_placa` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'nombre de tipo de licencia',
  `veh_ano` int(11) NULL DEFAULT NULL COMMENT 'ano de fabricación',
  `veh_capacidad` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'capacidad del vehiculo',
  `veh_num_llantas` int(11) NULL DEFAULT NULL COMMENT 'numero de llantas',
  `veh_chasis` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'numero de chasis',
  `veh_vin` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'numero de vin',
  `veh_motor` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'numero de motor',
  `veh_vencimiento_tar` date NULL DEFAULT NULL COMMENT 'vencimiento de la tarjeta',
  `veh_observacion` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'observaciones',
  `veh_activo_fijo` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'codigo de activo fijo',
  `veh_fotografia` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'fotografía de vehiculo',
  `veh_poliza_seguro` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Poliza de seguro',
  `veh_fecha_vence_seguro` datetime NULL DEFAULT NULL COMMENT 'Vence seguro',
  `veh_id_emp` int(11) NULL DEFAULT NULL COMMENT 'Llave principal -  Empleado (responsable)',
  `veh_id_ach` int(11) NULL DEFAULT NULL COMMENT 'Llave principal - Aceite de vehículo',
  `veh_gps` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Identificador de GPS',
  `veh_tel_gps` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Teléfono de GPS',
  `veh_estado` int(11) NOT NULL COMMENT 'estado de registro',
  `veh_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `veh_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `veh_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `veh_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`veh_id`) USING BTREE,
  INDEX `fk_fk_veh_id_cfv`(`veh_id_cfv` ASC) USING BTREE,
  INDEX `fk_veh_id_clv`(`veh_id_clv` ASC) USING BTREE,
  INDEX `fk_veh_id_mdv`(`veh_id_mdv` ASC) USING BTREE,
  INDEX `fk_fk_veh_id_tpc`(`veh_id_tpc` ASC) USING BTREE,
  INDEX `fk_fk_veh_id_tpl`(`veh_id_tpl` ASC) USING BTREE,
  INDEX `fk_veh_id_tpm`(`veh_id_tpm` ASC) USING BTREE,
  INDEX `fk_veh_id_trc`(`veh_id_trc` ASC) USING BTREE,
  INDEX `fk_fk_veh_id_trm`(`veh_id_trm` ASC) USING BTREE,
  INDEX `fk_veh_id_tvh`(`veh_id_tvh` ASC) USING BTREE,
  INDEX `fk_fk_veh_id_mrv`(`veh_id_mrv` ASC) USING BTREE,
  INDEX `fk_veh_id_stv`(`veh_id_stv` ASC) USING BTREE,
  INDEX `fk_veh_id_tpf`(`veh_id_tpf` ASC) USING BTREE,
  INDEX `fk_veh_id_cms`(`veh_id_cms` ASC) USING BTREE,
  INDEX `fk_veh_id_emp`(`veh_id_emp` ASC) USING BTREE,
  INDEX `fk_veh_id_ach`(`veh_id_ach` ASC) USING BTREE,
  CONSTRAINT `fk_fk_veh_id_cfv` FOREIGN KEY (`veh_id_cfv`) REFERENCES `cfv_clasif_vehiculo` (`cfv_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_fk_veh_id_mrv` FOREIGN KEY (`veh_id_mrv`) REFERENCES `mrv_marca` (`mrv_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_fk_veh_id_tpc` FOREIGN KEY (`veh_id_tpc`) REFERENCES `tpc_tipo_combustible` (`tpc_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_fk_veh_id_tpl` FOREIGN KEY (`veh_id_tpl`) REFERENCES `tpl_tipo_llanta` (`tpl_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_fk_veh_id_trm` FOREIGN KEY (`veh_id_trm`) REFERENCES `trm_transmision` (`trm_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_veh_id_ach` FOREIGN KEY (`veh_id_ach`) REFERENCES `ach_aceite_vehiculo` (`ach_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_veh_id_clv` FOREIGN KEY (`veh_id_clv`) REFERENCES `clv_color_vehiculo` (`clv_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_veh_id_cms` FOREIGN KEY (`veh_id_cms`) REFERENCES `cms_compania_seguro` (`cms_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_veh_id_emp` FOREIGN KEY (`veh_id_emp`) REFERENCES `emp_empleado` (`emp_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_veh_id_mdv` FOREIGN KEY (`veh_id_mdv`) REFERENCES `mdv_modelo_veh` (`mdv_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_veh_id_stv` FOREIGN KEY (`veh_id_stv`) REFERENCES `stv_status_vehiculo` (`stv_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_veh_id_tpf` FOREIGN KEY (`veh_id_tpf`) REFERENCES `tpf_tipo_fondo` (`tpf_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_veh_id_tpm` FOREIGN KEY (`veh_id_tpm`) REFERENCES `tpm_tipo_motor` (`tpm_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_veh_id_trc` FOREIGN KEY (`veh_id_trc`) REFERENCES `trc_traccion` (`trc_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_veh_id_tvh` FOREIGN KEY (`veh_id_tvh`) REFERENCES `tvh_tipo_vehiculo` (`tvh_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'catalogo de vehiculos' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of veh_vehiculo
-- ----------------------------
INSERT INTO `veh_vehiculo` VALUES (1, 3, 6, 1, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 'P32a', 2014, NULL, NULL, NULL, NULL, NULL, '2023-01-18', NULL, NULL, NULL, NULL, '2023-01-18 00:00:00', 85, NULL, NULL, NULL, 1, 1, 1, '2023-01-18 18:03:39', '2023-01-18 18:03:39');
INSERT INTO `veh_vehiculo` VALUES (2, 5, 7, 2, NULL, 6, NULL, NULL, NULL, 2, NULL, NULL, NULL, NULL, 'MB287000', 2017, '12', NULL, NULL, NULL, NULL, '2023-01-18', NULL, NULL, '737eb-hiace.jpg', NULL, '2023-01-18 00:00:00', 1, NULL, NULL, NULL, 1, 1, 1, '2023-01-18 23:20:54', '2024-07-11 10:57:58');
INSERT INTO `veh_vehiculo` VALUES (3, 3, 6, 1, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 2, 'P882244', NULL, NULL, NULL, NULL, NULL, NULL, '2024-02-08', NULL, NULL, NULL, NULL, '2024-02-08 00:00:00', NULL, NULL, NULL, NULL, 1, 1, 1, '2024-02-08 11:46:32', '2024-02-08 11:46:32');

-- ----------------------------
-- Table structure for ven_vendedor
-- ----------------------------
CREATE TABLE `ven_vendedor`  (
  `ven_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'codigo de vendedor',
  `ven_id_usu` int(11) NOT NULL COMMENT 'codigo de usuario de ingreso sistema',
  `ven_codigo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `ven_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombres de vendedor',
  `ven_apellidos` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Apellidos de vendedor',
  `ven_meta_cotizado` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Meta de cotizaciones',
  `ven_meta_ventas` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Meta de ventas',
  `ven_numero_visitas` int(11) NULL DEFAULT NULL COMMENT 'Numero de visitas diarias',
  `ven_telefono` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
  `ven_email` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Email de vendedor',
  `ven_venta_minima` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Ventas minimas',
  `ven_venta_maxima` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Ventas maximas',
  `ven_estado` tinyint(4) NOT NULL COMMENT 'Estado de vendedor',
  `ven_usu_mod` int(11) NOT NULL COMMENT 'Ultimo usuario que modifico',
  `ven_fecha_mod` datetime NOT NULL COMMENT 'Ultima fecha de modificacion',
  PRIMARY KEY (`ven_id`) USING BTREE,
  INDEX `fk_id_usu`(`ven_id_usu` ASC) USING BTREE,
  CONSTRAINT `fk_id_usu` FOREIGN KEY (`ven_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 21 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Catalogo de vendedores' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ven_vendedor
-- ----------------------------
INSERT INTO `ven_vendedor` VALUES (1, 1, 'TEMP', 'Susana', 'Quevedo', NULL, NULL, NULL, NULL, '', NULL, NULL, 1, 1, '2019-10-08 12:00:00');
INSERT INTO `ven_vendedor` VALUES (2, 2, 'RA1', 'Mario', 'Alvarenga', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2021-12-28 07:49:16');
INSERT INTO `ven_vendedor` VALUES (3, 15, 'MK18', 'Michael', 'Godoy', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2021-12-28 07:48:07');
INSERT INTO `ven_vendedor` VALUES (4, 4, 'AJ3', 'Aiden', 'Sanchez', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2021-12-28 07:47:31');
INSERT INTO `ven_vendedor` VALUES (5, 1, 'LS9', 'Liam', 'Seat', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2021-12-28 07:47:18');
INSERT INTO `ven_vendedor` VALUES (6, 20, '23', 'Salvador ', 'Salazar', NULL, NULL, NULL, NULL, '', NULL, NULL, 1, 9, '2020-06-25 22:29:36');
INSERT INTO `ven_vendedor` VALUES (7, 17, '83', 'Roberto ', 'Cruz', NULL, NULL, NULL, NULL, '', NULL, NULL, 1, 9, '2020-06-25 22:30:26');
INSERT INTO `ven_vendedor` VALUES (8, 12, 'ET15', 'Ethan', 'Torres', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2021-12-28 07:47:38');
INSERT INTO `ven_vendedor` VALUES (9, 9, 'EF8', 'Emily', 'Ferrari', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2021-12-28 07:49:06');
INSERT INTO `ven_vendedor` VALUES (10, 2, 'RA1', 'Alexander', 'Alvarenga', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2021-12-28 07:47:44');
INSERT INTO `ven_vendedor` VALUES (11, 1, 'LS9', 'Liam', 'Sanchez', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2021-12-28 07:48:40');
INSERT INTO `ven_vendedor` VALUES (13, 1, 'LS9', 'Roberto ', 'Cruz', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 1, '2021-12-28 07:48:49');
INSERT INTO `ven_vendedor` VALUES (14, 1, '0001', 'Rina Beatriz', 'Batres', NULL, NULL, NULL, NULL, '', NULL, NULL, 0, 9, '2020-03-31 10:18:07');
INSERT INTO `ven_vendedor` VALUES (15, 16, 'DD72', 'Daniel', 'Dodge', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2021-12-28 07:48:00');
INSERT INTO `ven_vendedor` VALUES (16, 36, 'AK75', 'Ava', 'Kia', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2021-12-28 07:48:22');
INSERT INTO `ven_vendedor` VALUES (17, 17, 'ML78', 'Michael', 'Lexus', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2021-12-28 07:48:58');
INSERT INTO `ven_vendedor` VALUES (18, 28, 'WL42', 'William', 'Lotus', NULL, NULL, NULL, '2264-8310', 'guillermp@gmail.com', NULL, NULL, 1, 1, '2022-02-16 14:47:30');
INSERT INTO `ven_vendedor` VALUES (19, 59, 'MC79', 'Michael', 'Chrysler', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2024-07-29 13:05:52');
INSERT INTO `ven_vendedor` VALUES (20, 20, 'MC20', 'Ventas', 'Casa', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2024-10-01 00:00:00');

-- ----------------------------
-- Table structure for vep_vestimenta_paciente
-- ----------------------------
CREATE TABLE `vep_vestimenta_paciente`  (
  `vep_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de',
  `vep_id_epp` int(11) NOT NULL COMMENT 'Llave primaria del paciente desconocido que le pertence la descripcion',
  `vep_id_ves` int(11) NOT NULL COMMENT 'Llave primaria del tipo de vestimenta que lleva el paciente',
  `vep_id_clv` int(11) NOT NULL COMMENT 'Llave primaria del color de la vestimenta a colocar',
  `vep_descripcion` varchar(500) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Campo para agregar una breve descripcion de la vestimenta adiciconal al color y al tipo',
  `vep_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro (0 = Inactivo y 1 = Activo )',
  `vep_usu_creacion` int(11) NOT NULL COMMENT 'Auditoría',
  `vep_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoría',
  `vep_fecha_creacion` datetime NOT NULL COMMENT 'Auditoría',
  `vep_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoría',
  PRIMARY KEY (`vep_id`) USING BTREE,
  INDEX `fk_vep_id_clv`(`vep_id_clv` ASC) USING BTREE,
  INDEX `fk_vep_id_epp`(`vep_id_epp` ASC) USING BTREE,
  INDEX `fk_vep_id_ves`(`vep_id_ves` ASC) USING BTREE,
  CONSTRAINT `fk_vep_id_clv` FOREIGN KEY (`vep_id_clv`) REFERENCES `clv_color_vestimenta` (`clv_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_vep_id_epp` FOREIGN KEY (`vep_id_epp`) REFERENCES `epp_expediente_paciente` (`epp_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_vep_id_ves` FOREIGN KEY (`vep_id_ves`) REFERENCES `ves_vestimenta` (`ves_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Tabla para registrar la vestimenta que lleva el paciente' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of vep_vestimenta_paciente
-- ----------------------------

-- ----------------------------
-- Table structure for ves_vestimenta
-- ----------------------------
CREATE TABLE `ves_vestimenta`  (
  `ves_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal del registro del tipode la vestimenta a registrar',
  `ves_vestimenta` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Campo para registrar el nombre del tipo de vestimenta',
  `ves_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro (0 = Inactivo y 1 = Activo )',
  `ves_usu_creacion` int(11) NOT NULL COMMENT 'Auditoría',
  `ves_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoría',
  `ves_fecha_creacion` datetime NOT NULL COMMENT 'Auditoría',
  `ves_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoría',
  PRIMARY KEY (`ves_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Tabla catalogo para registrar los diferentes tipo de vestimenta para el paciente' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ves_vestimenta
-- ----------------------------

-- ----------------------------
-- Table structure for vrl_valores_lista
-- ----------------------------
CREATE TABLE `vrl_valores_lista`  (
  `vrl_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave principal de valor de item de lista',
  `vrl_id_car` int(11) NOT NULL COMMENT 'Llave  principal de la caracteristica.',
  `vrl_valor` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Valor de la opción',
  `vrl_precio_valor` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Precio del valor de la opción',
  `vrl_estado` int(11) NOT NULL COMMENT '0=inactivo, 1=activo',
  `vrl_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `vrl_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  `vrl_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `vrl_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`vrl_id`) USING BTREE,
  INDEX `fk_vrl_id_car`(`vrl_id_car` ASC) USING BTREE,
  CONSTRAINT `fk_vrl_id_car` FOREIGN KEY (`vrl_id_car`) REFERENCES `car_caracteristica` (`car_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 41 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of vrl_valores_lista
-- ----------------------------
INSERT INTO `vrl_valores_lista` VALUES (1, 9, 'Mensual', NULL, 1, 1, '2021-12-27 22:57:30', 1, '2021-12-27 22:57:30');
INSERT INTO `vrl_valores_lista` VALUES (2, 9, 'Semestral', NULL, 1, 1, '2021-12-27 22:57:30', 1, '2021-12-27 22:57:30');
INSERT INTO `vrl_valores_lista` VALUES (3, 9, 'Anual', NULL, 1, 1, '2021-12-27 22:57:30', 1, '2021-12-27 22:57:30');
INSERT INTO `vrl_valores_lista` VALUES (4, 11, 'Básica', NULL, 1, 1, '2021-12-28 07:41:22', 1, '2021-12-28 07:41:22');
INSERT INTO `vrl_valores_lista` VALUES (5, 11, 'Mediana', NULL, 1, 1, '2021-12-28 07:41:22', 1, '2021-12-28 07:41:22');
INSERT INTO `vrl_valores_lista` VALUES (6, 11, 'Grande', NULL, 1, 1, '2021-12-28 07:41:22', 1, '2021-12-28 07:41:22');
INSERT INTO `vrl_valores_lista` VALUES (7, 11, 'Gourmet 25', NULL, 1, 1, '2021-12-28 07:41:22', 1, '2021-12-28 07:41:22');
INSERT INTO `vrl_valores_lista` VALUES (8, 11, 'Gourmet 45', NULL, 1, 1, '2021-12-28 07:41:22', 1, '2021-12-28 07:41:22');
INSERT INTO `vrl_valores_lista` VALUES (9, 11, 'Gourmet 85', NULL, 1, 1, '2021-12-28 07:41:22', 1, '2021-12-28 07:41:22');
INSERT INTO `vrl_valores_lista` VALUES (12, 14, '500', NULL, 1, 1, '2022-02-14 14:25:19', 1, '2022-02-14 14:25:19');
INSERT INTO `vrl_valores_lista` VALUES (22, 17, 'Pastillas', NULL, 1, 1, '2023-05-19 08:45:02', 1, '2023-05-19 08:45:02');
INSERT INTO `vrl_valores_lista` VALUES (23, 17, 'Jarabe', NULL, 1, 1, '2023-05-19 08:45:02', 1, '2023-05-19 08:45:02');
INSERT INTO `vrl_valores_lista` VALUES (24, 17, 'Inyectable', NULL, 1, 1, '2023-05-19 08:45:02', 1, '2023-05-19 08:45:02');
INSERT INTO `vrl_valores_lista` VALUES (25, 17, 'Bebibles', NULL, 1, 1, '2023-05-19 08:45:02', 1, '2023-05-19 08:45:02');
INSERT INTO `vrl_valores_lista` VALUES (26, 17, 'Sobre', NULL, 1, 1, '2023-05-19 08:45:02', 1, '2023-05-19 08:45:02');
INSERT INTO `vrl_valores_lista` VALUES (27, 17, 'Gotas', NULL, 1, 1, '2023-05-19 08:45:02', 1, '2023-05-19 08:45:02');
INSERT INTO `vrl_valores_lista` VALUES (28, 22, 'Estandar', NULL, 1, 1, '2024-05-23 15:27:35', 1, '2024-05-23 15:27:35');
INSERT INTO `vrl_valores_lista` VALUES (29, 22, 'Express', NULL, 1, 1, '2024-05-23 15:27:35', 1, '2024-05-23 15:27:35');
INSERT INTO `vrl_valores_lista` VALUES (30, 23, 'El Salvador', NULL, 1, 1, '2024-05-23 15:28:24', 1, '2024-05-23 15:28:24');
INSERT INTO `vrl_valores_lista` VALUES (31, 23, 'Honduras', NULL, 1, 1, '2024-05-23 15:28:24', 1, '2024-05-23 15:28:24');
INSERT INTO `vrl_valores_lista` VALUES (32, 23, 'Nicaragua', NULL, 1, 1, '2024-05-23 15:28:24', 1, '2024-05-23 15:28:24');
INSERT INTO `vrl_valores_lista` VALUES (33, 23, 'Costa Rica', NULL, 1, 1, '2024-05-23 15:28:24', 1, '2024-05-23 15:28:24');
INSERT INTO `vrl_valores_lista` VALUES (34, 23, 'Panama', NULL, 1, 1, '2024-05-23 15:28:24', 1, '2024-05-23 15:28:24');
INSERT INTO `vrl_valores_lista` VALUES (35, 24, '1-3 Lb', NULL, 1, 1, '2024-05-23 15:29:12', 1, '2024-05-23 15:29:12');
INSERT INTO `vrl_valores_lista` VALUES (36, 24, '3-5 Lb', NULL, 1, 1, '2024-05-23 15:29:12', 1, '2024-05-23 15:29:12');
INSERT INTO `vrl_valores_lista` VALUES (37, 24, '5-10 Lb', NULL, 1, 1, '2024-05-23 15:29:12', 1, '2024-05-23 15:29:12');
INSERT INTO `vrl_valores_lista` VALUES (38, 27, 'Azul', NULL, 1, 1, '2024-07-04 09:49:41', 1, '2024-07-04 09:49:41');
INSERT INTO `vrl_valores_lista` VALUES (39, 27, 'Negro', NULL, 1, 1, '2024-07-04 09:49:41', 1, '2024-07-04 09:49:41');
INSERT INTO `vrl_valores_lista` VALUES (40, 27, 'Rojo', NULL, 1, 1, '2024-07-04 09:49:41', 1, '2024-07-04 09:49:41');

-- ----------------------------
-- Table structure for vxc_valesxgestion_comb
-- ----------------------------
CREATE TABLE `vxc_valesxgestion_comb`  (
  `vxc_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria - Relacion  Vales por gestion combustible',
  `vxc_id_gtc` int(11) NULL DEFAULT NULL COMMENT 'Llave principal - Gestion de combustible',
  `vxc_id_srv` int(11) NULL DEFAULT NULL COMMENT 'Llave principal - serie vales',
  `vxc_inicio` int(11) NULL DEFAULT NULL COMMENT 'Inicio de vales',
  `vxc_fin` int(11) NULL DEFAULT NULL COMMENT 'Fin de vales',
  `vxc_estado` int(11) NOT NULL COMMENT 'Estado de registro',
  `vxc_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `vxc_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  `vxc_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `vxc_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `vxc_monto` decimal(19, 2) NOT NULL COMMENT 'Monto de vale combustible',
  PRIMARY KEY (`vxc_id`) USING BTREE,
  INDEX `fk_vxc_id_gtc`(`vxc_id_gtc` ASC) USING BTREE,
  INDEX `FK_reference_62`(`vxc_id_srv` ASC) USING BTREE,
  CONSTRAINT `FK_reference_62` FOREIGN KEY (`vxc_id_srv`) REFERENCES `srv_serie_vale` (`srv_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_vxc_id_gtc` FOREIGN KEY (`vxc_id_gtc`) REFERENCES `gtc_gestion_combustible` (`gtc_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'vales por gestion de combustible' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of vxc_valesxgestion_comb
-- ----------------------------
INSERT INTO `vxc_valesxgestion_comb` VALUES (2, 1, 1, 1, 5, 1, '2023-01-19 10:40:41', '2023-01-19 10:40:41', 1, 1, 25.00);
INSERT INTO `vxc_valesxgestion_comb` VALUES (3, 2, 1, 6, 6, 1, '2023-01-19 10:52:14', '2023-01-19 10:52:14', 1, 1, 22.50);
INSERT INTO `vxc_valesxgestion_comb` VALUES (5, 3, 1, 7, 7, 1, '2024-02-27 00:42:03', '2024-02-27 00:42:03', 1, 1, 500.00);

-- ----------------------------
-- Table structure for vxg_valexgestion_trans
-- ----------------------------
CREATE TABLE `vxg_valexgestion_trans`  (
  `vxg_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria - Vales por gestion',
  `vxg_id_gtr` int(11) NOT NULL COMMENT 'Llave principal - Gestion de transporte',
  `vxg_id_srv` int(11) NULL DEFAULT NULL COMMENT 'Llave principal - serie vales',
  `vxg_inicio` int(11) NULL DEFAULT NULL COMMENT 'Inicio de vales',
  `vxg_fin` int(11) NULL DEFAULT NULL COMMENT 'Fin de vales',
  `vxg_estado` int(11) NOT NULL COMMENT 'Estado de registro',
  `vxg_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `vxg_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  `vxg_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `vxg_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`vxg_id`) USING BTREE,
  INDEX `fk_vxg_id_gtr`(`vxg_id_gtr` ASC) USING BTREE,
  INDEX `FK_reference_61`(`vxg_id_srv` ASC) USING BTREE,
  CONSTRAINT `FK_reference_61` FOREIGN KEY (`vxg_id_srv`) REFERENCES `srv_serie_vale` (`srv_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_vxg_id_gtr` FOREIGN KEY (`vxg_id_gtr`) REFERENCES `gtr_gestion_transporte` (`gtr_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'vales de combustible por gestion de solicitud de transporte' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of vxg_valexgestion_trans
-- ----------------------------

-- ----------------------------
-- Table structure for vxl_eventoxrol
-- ----------------------------
CREATE TABLE `vxl_eventoxrol`  (
  `vxl_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de evento por rol',
  `vxl_id_evn` int(11) NOT NULL COMMENT 'Llave principal de evento',
  `vxl_id_rol` int(11) NOT NULL COMMENT 'Codigo de Rol',
  `vxl_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `vxl_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `vxl_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `vxl_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `vxl_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`vxl_id`) USING BTREE,
  INDEX `fk_vxl_id_evn`(`vxl_id_evn` ASC) USING BTREE,
  INDEX `fk_vxl_id_rol`(`vxl_id_rol` ASC) USING BTREE,
  CONSTRAINT `fk_vxl_id_evn` FOREIGN KEY (`vxl_id_evn`) REFERENCES `evn_evento` (`evn_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_vxl_id_rol` FOREIGN KEY (`vxl_id_rol`) REFERENCES `rol_rol` (`rol_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Evento  por rol.' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of vxl_eventoxrol
-- ----------------------------
INSERT INTO `vxl_eventoxrol` VALUES (7, 1, 1, 1, 1, '2024-10-22 10:58:04', 1, '2024-10-22 10:58:04');
INSERT INTO `vxl_eventoxrol` VALUES (8, 2, 1, 1, 1, '2024-10-22 10:59:00', 1, '2024-10-22 10:59:00');
INSERT INTO `vxl_eventoxrol` VALUES (9, 3, 1, 1, 1, '2024-11-18 22:28:09', 1, '2024-11-18 22:28:09');
INSERT INTO `vxl_eventoxrol` VALUES (11, 6, 1, 1, 1, '2025-02-24 14:51:17', 1, '2025-02-24 14:51:17');
INSERT INTO `vxl_eventoxrol` VALUES (12, 7, 1, 1, 1, '2025-04-07 16:44:17', 1, '2025-04-07 16:44:17');
INSERT INTO `vxl_eventoxrol` VALUES (13, 8, 1, 1, 69, '2025-07-22 09:17:55', 69, '2025-07-22 09:17:55');
INSERT INTO `vxl_eventoxrol` VALUES (14, 11, 1, 1, 1, '2025-08-18 09:38:39', 1, '2025-08-18 09:38:39');
INSERT INTO `vxl_eventoxrol` VALUES (15, 12, 1, 1, 1, '2025-08-19 14:29:57', 1, '2025-08-19 14:29:57');
INSERT INTO `vxl_eventoxrol` VALUES (16, 13, 1, 1, 1, '2025-08-19 14:52:19', 1, '2025-08-19 14:52:19');
INSERT INTO `vxl_eventoxrol` VALUES (17, 14, 43, 1, 1, '2025-08-19 17:06:34', 1, '2025-08-19 17:06:34');
INSERT INTO `vxl_eventoxrol` VALUES (18, 15, 1, 1, 1, '2025-08-19 17:18:04', 1, '2025-08-19 17:18:04');
INSERT INTO `vxl_eventoxrol` VALUES (19, 16, 43, 1, 1, '2025-08-19 17:18:52', 1, '2025-08-19 17:18:52');

-- ----------------------------
-- Table structure for vxr_avisoxrol
-- ----------------------------
CREATE TABLE `vxr_avisoxrol`  (
  `vxr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de aviso por rol',
  `vxr_id_avi` int(11) NOT NULL COMMENT 'Llave principal de aviso',
  `vxr_id_rol` int(11) NOT NULL COMMENT 'Codigo de Rol',
  `vxr_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `vxr_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `vxr_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `vxr_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `vxr_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`vxr_id`) USING BTREE,
  INDEX `fk_vxr_id_avi`(`vxr_id_avi` ASC) USING BTREE,
  INDEX `fk_vxr_id_rol`(`vxr_id_rol` ASC) USING BTREE,
  CONSTRAINT `fk_vxr_id_avi` FOREIGN KEY (`vxr_id_avi`) REFERENCES `avi_aviso` (`avi_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_vxr_id_rol` FOREIGN KEY (`vxr_id_rol`) REFERENCES `rol_rol` (`rol_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Avisos por rol.' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of vxr_avisoxrol
-- ----------------------------
INSERT INTO `vxr_avisoxrol` VALUES (1, 1, 1, 1, 65, '2024-10-22 09:51:16', 65, '2024-10-22 09:51:16');
INSERT INTO `vxr_avisoxrol` VALUES (2, 2, 1, 1, 65, '2024-10-22 09:52:06', 65, '2024-10-22 09:52:06');
INSERT INTO `vxr_avisoxrol` VALUES (4, 3, 1, 1, 1, '2024-10-30 18:46:03', 1, '2024-10-30 18:46:03');
INSERT INTO `vxr_avisoxrol` VALUES (5, 4, 1, 1, 1, '2024-10-30 18:46:19', 1, '2024-10-30 18:46:19');
INSERT INTO `vxr_avisoxrol` VALUES (17, 9, 1, 1, 1, '2025-11-11 11:12:58', 1, '2025-11-11 11:12:58');

-- ----------------------------
-- Table structure for vxs_vendedorxsupervisor
-- ----------------------------
CREATE TABLE `vxs_vendedorxsupervisor`  (
  `vxs_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Codigo de relacion ',
  `vxs_id_sup` int(11) NULL DEFAULT NULL COMMENT 'codigo de supervisor',
  `vxs_id_ven` int(11) NULL DEFAULT NULL COMMENT 'codigo de vendedor',
  PRIMARY KEY (`vxs_id`) USING BTREE,
  INDEX `fk_vxs_id_sup`(`vxs_id_sup` ASC) USING BTREE,
  INDEX `fk_vxs_id_ven`(`vxs_id_ven` ASC) USING BTREE,
  CONSTRAINT `fk_vxs_id_sup` FOREIGN KEY (`vxs_id_sup`) REFERENCES `sup_supervisor` (`sup_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_vxs_id_ven` FOREIGN KEY (`vxs_id_ven`) REFERENCES `ven_vendedor` (`ven_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 235 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Vendedores por supervisor' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of vxs_vendedorxsupervisor
-- ----------------------------
INSERT INTO `vxs_vendedorxsupervisor` VALUES (142, 7, 7);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (143, 7, 6);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (149, 6, 7);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (150, 6, 6);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (156, 2, 7);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (157, 2, 6);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (163, 3, 7);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (164, 3, 6);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (172, 1, 4);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (173, 3, 8);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (174, 2, 8);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (175, 6, 8);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (176, 1, 8);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (177, 7, 8);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (182, 3, 15);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (183, 2, 15);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (184, 6, 15);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (185, 7, 15);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (186, 3, 3);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (187, 2, 3);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (188, 6, 3);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (189, 1, 3);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (190, 7, 3);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (199, 3, 16);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (200, 2, 16);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (201, 6, 16);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (202, 7, 16);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (204, 1, 11);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (205, 3, 17);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (206, 2, 17);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (207, 6, 17);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (208, 7, 17);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (209, 1, 2);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (211, 8, 9);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (212, 5, 18);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (219, 9, 6);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (220, 9, 7);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (221, 9, 4);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (222, 9, 16);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (223, 9, 15);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (224, 9, 9);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (225, 9, 8);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (226, 9, 5);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (227, 9, 11);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (228, 9, 19);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (229, 9, 3);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (230, 9, 17);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (231, 9, 10);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (232, 9, 2);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (233, 9, 1);
INSERT INTO `vxs_vendedorxsupervisor` VALUES (234, 9, 18);

-- ----------------------------
-- Table structure for vxt_variablextipo_constancia
-- ----------------------------
CREATE TABLE `vxt_variablextipo_constancia`  (
  `vxt_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave Principal - Variable por Tipo de Constancia',
  `vxt_id_tpo` int(11) NOT NULL COMMENT 'Llave Principal - Tipo de Formato de constancia',
  `vxt_id_vao` int(11) NOT NULL COMMENT 'Llave Principal - Variable de Constancia',
  `vxt_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro',
  `vxt_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `vxt_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `vxt_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `vxt_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`vxt_id`) USING BTREE,
  INDEX `fk_vxt_id_tpo`(`vxt_id_tpo` ASC) USING BTREE,
  INDEX `fk_vxt_id_vao`(`vxt_id_vao` ASC) USING BTREE,
  CONSTRAINT `fk_vxt_id_tpo` FOREIGN KEY (`vxt_id_tpo`) REFERENCES `tpo_tipo_constancia` (`tpo_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_vxt_id_vao` FOREIGN KEY (`vxt_id_vao`) REFERENCES `vao_variable_constancia` (`vao_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Catalogo de Variables de constancia' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of vxt_variablextipo_constancia
-- ----------------------------

-- ----------------------------
-- Table structure for zod_zona_departamento
-- ----------------------------
CREATE TABLE `zod_zona_departamento`  (
  `zod_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de zona de departamento',
  `zod_id_dep` int(11) NOT NULL COMMENT 'Llave primaria - entidad departamento',
  `zod_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre Zona de departamento',
  `zod_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 1=activo, 0=inactivo',
  `zod_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `zod_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `zod_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `zod_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`zod_id`) USING BTREE,
  INDEX `fk_zod_id_dep`(`zod_id_dep` ASC) USING BTREE,
  CONSTRAINT `fk_zod_id_dep` FOREIGN KEY (`zod_id_dep`) REFERENCES `dep_departamento` (`dep_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of zod_zona_departamento
-- ----------------------------
INSERT INTO `zod_zona_departamento` VALUES (1, 1, 'Occidental', 1, 1, '2020-07-02 12:00:00', 1, '2020-07-02 12:00:00');
INSERT INTO `zod_zona_departamento` VALUES (2, 2, 'Occidental', 1, 1, '2020-07-02 12:00:00', 1, '2020-07-02 12:00:00');
INSERT INTO `zod_zona_departamento` VALUES (3, 3, 'Occidental', 1, 1, '2020-07-02 12:00:00', 1, '2020-07-02 12:00:00');
INSERT INTO `zod_zona_departamento` VALUES (4, 4, 'Occidental', 1, 1, '2020-07-02 12:00:00', 1, '2020-07-02 12:00:00');
INSERT INTO `zod_zona_departamento` VALUES (5, 5, 'Oriental', 1, 1, '2020-07-02 12:00:00', 1, '2020-07-02 12:00:00');
INSERT INTO `zod_zona_departamento` VALUES (6, 6, 'Oriental', 1, 1, '2020-07-02 12:00:00', 1, '2020-07-02 12:00:00');
INSERT INTO `zod_zona_departamento` VALUES (7, 7, 'Oriental', 1, 1, '2020-07-02 12:00:00', 1, '2020-07-02 12:00:00');
INSERT INTO `zod_zona_departamento` VALUES (8, 8, 'Paracentral', 1, 1, '2020-07-02 12:00:00', 1, '2020-07-02 12:00:00');
INSERT INTO `zod_zona_departamento` VALUES (9, 9, 'Paracentral', 1, 1, '2020-07-02 12:00:00', 1, '2020-07-02 12:00:00');
INSERT INTO `zod_zona_departamento` VALUES (10, 10, 'Paracentral', 1, 1, '2020-07-02 12:00:00', 1, '2020-07-02 12:00:00');
INSERT INTO `zod_zona_departamento` VALUES (11, 11, 'Centro 1', 1, 1, '2020-07-02 12:00:00', 1, '2020-07-02 12:00:00');
INSERT INTO `zod_zona_departamento` VALUES (12, 12, 'Centro 1', 1, 1, '2020-07-02 12:00:00', 1, '2020-07-02 12:00:00');
INSERT INTO `zod_zona_departamento` VALUES (13, 13, 'Centro 2', 1, 1, '2020-07-02 12:00:00', 1, '2020-07-02 12:00:00');
INSERT INTO `zod_zona_departamento` VALUES (14, 14, 'Centro 2', 1, 1, '2020-07-02 12:00:00', 1, '2020-07-02 12:00:00');

-- ----------------------------
-- Table structure for zog_zona_geografica
-- ----------------------------
CREATE TABLE `zog_zona_geografica`  (
  `zog_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de zona geografica',
  `zog_nombre` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre ',
  `zog_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `zog_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `zog_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `zog_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `zog_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`zog_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of zog_zona_geografica
-- ----------------------------
INSERT INTO `zog_zona_geografica` VALUES (1, 'Occidental', 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `zog_zona_geografica` VALUES (2, 'Central', 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `zog_zona_geografica` VALUES (3, 'Oriental', 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `zog_zona_geografica` VALUES (4, 'Paracentral', 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `zog_zona_geografica` VALUES (5, 'Centro 1', 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `zog_zona_geografica` VALUES (6, 'Centro 2', 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');

-- ----------------------------
-- Table structure for zon_zona
-- ----------------------------
CREATE TABLE `zon_zona`  (
  `zon_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de zona',
  `zon_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de zona',
  `zon_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripción general del registro',
  `zon_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `zon_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `zon_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `zon_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `zon_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`zon_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Zonas (rural, urbana etc )' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of zon_zona
-- ----------------------------
INSERT INTO `zon_zona` VALUES (1, 'Occidental', 'Occidental', 1, 1, '2019-04-01 00:00:00', 1, '2019-04-01 00:00:00');
INSERT INTO `zon_zona` VALUES (2, 'Central', 'Central', 1, 1, '2019-04-01 00:00:00', 1, '2019-04-01 00:00:00');
INSERT INTO `zon_zona` VALUES (3, 'Oriental', 'Oriental', 1, 1, '2019-04-01 00:00:00', 1, '2019-04-01 00:00:00');
INSERT INTO `zon_zona` VALUES (4, 'Paracentral', 'Paracentral', 1, 1, '2019-04-01 00:00:00', 1, '2019-04-01 00:00:00');
INSERT INTO `zon_zona` VALUES (5, 'Centro 1', 'Centro 1', 1, 1, '2019-04-01 00:00:00', 1, '2019-04-01 00:00:00');
INSERT INTO `zon_zona` VALUES (6, 'Centro 2', 'Centro 2', 1, 1, '2019-04-01 00:00:00', 1, '2019-04-01 00:00:00');

-- ----------------------------
-- View structure for vw_activos
-- ----------------------------
DROP VIEW IF EXISTS `vw_activos`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY INVOKER VIEW `vw_activos` AS select `act_activo_fijo`.`act_id` AS `act_id`,`tac_tipo_activofijo`.`tac_id` AS `tac_id`,`axe_activoxempleado`.`axe_id_emp` AS `emp_id`,`tac_tipo_activofijo`.`tac_nombre` AS `tipo`,`grp_grupo`.`grp_nombre` AS `grupo`,`tad_tipo_adquisicion`.`tad_nombre` AS `adquisicion`,`act_activo_fijo`.`act_codigo` AS `codigo`,`act_activo_fijo`.`act_nombre` AS `nombre`,`act_activo_fijo`.`act_estado` AS `estado`,avg(`act_activo_fijo`.`act_valor_compra` - ifnull(`act_activo_fijo`.`act_valor_dep`,0)) AS `monto`,sum(`dep_depreciacion`.`dep_monto`) AS `valor`,`emp_empleado`.`emp_nombre` + ' ' + `emp_empleado`.`emp_apellido` AS `empleado`,`ubi_ubicacion`.`ubi_nombre` AS `oficina` from (((((((`act_activo_fijo` join `tac_tipo_activofijo` on(`act_activo_fijo`.`act_id_tac` = `tac_tipo_activofijo`.`tac_id`)) left join `tad_tipo_adquisicion` on(`act_activo_fijo`.`act_id_tad` = `tad_tipo_adquisicion`.`tad_id`)) left join `grp_grupo` on(`act_activo_fijo`.`act_id_grp` = `grp_grupo`.`grp_id`)) left join `axe_activoxempleado` on(`axe_activoxempleado`.`axe_id_act` = `act_activo_fijo`.`act_id` and `axe_activoxempleado`.`axe_estado` = 1)) left join `dep_depreciacion` on(`dep_depreciacion`.`dep_id_act` = `act_activo_fijo`.`act_id`)) left join `emp_empleado` on(`axe_activoxempleado`.`axe_id_emp` = `emp_empleado`.`emp_id`)) left join `ubi_ubicacion` on(`ubi_ubicacion`.`ubi_id` = `emp_empleado`.`emp_id_ubi`)) group by `act_activo_fijo`.`act_id`,`tac_tipo_activofijo`.`tac_id`,`axe_activoxempleado`.`axe_id_emp`,`tac_tipo_activofijo`.`tac_nombre`,`grp_grupo`.`grp_nombre`,`tad_tipo_adquisicion`.`tad_nombre`,`act_activo_fijo`.`act_codigo`,`act_activo_fijo`.`act_nombre`,`act_activo_fijo`.`act_estado`,`emp_empleado`.`emp_nombre` + ' ' + `emp_empleado`.`emp_apellido`,`ubi_ubicacion`.`ubi_nombre`;

-- ----------------------------
-- View structure for vw_bi_articulo
-- ----------------------------
DROP VIEW IF EXISTS `vw_bi_articulo`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `vw_bi_articulo` AS select `art_articulo`.`art_id` AS `art_id`,`art_articulo`.`art_codigo` AS `art_codigo`,`art_articulo`.`art_id_tia` AS `art_id_tia`,`art_articulo`.`art_nombre` AS `art_nombre`,`art_articulo`.`art_minimo` AS `art_minimo`,`art_articulo`.`art_maximo` AS `art_maximo` from `art_articulo`;

-- ----------------------------
-- View structure for vw_bi_cliente
-- ----------------------------
DROP VIEW IF EXISTS `vw_bi_cliente`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `vw_bi_cliente` AS select `cli_cliente`.`cli_id` AS `cli_id`,if(`cli_cliente`.`cli_personeria` = 1,concat(`cli_cliente`.`cli_nombre`,`cli_cliente`.`cli_apellido`),`cli_cliente`.`cli_apellido`) AS `cli_nombre`,`cli_cliente`.`cli_id_pai` AS `cli_id_pai`,`cli_cliente`.`cli_personeria` AS `cli_personeria`,`cli_cliente`.`cli_direccion` AS `cli_direccion`,`cli_cliente`.`cli_id_mun` AS `cli_id_mun`,`cli_cliente`.`cli_fecha_registro` AS `cli_fecha_registro`,`cli_cliente`.`cli_id_ven` AS `cli_id_ven` from `cli_cliente`;

-- ----------------------------
-- View structure for vw_bi_cotizaciones
-- ----------------------------
DROP VIEW IF EXISTS `vw_bi_cotizaciones`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `vw_bi_cotizaciones` AS select `cot_cotizacion`.`cot_id` AS `cot_id`,`cot_cotizacion`.`cot_codigo` AS `cot_codigo`,`cot_cotizacion`.`cot_concepto` AS `cot_concepto`,cast(`cot_cotizacion`.`cot_fecha_pres` as date) AS `cot_fecha_pres`,`cot_cotizacion`.`cot_fecha_cierre` AS `cot_fecha_cierre`,`cot_cotizacion`.`cot_estado` AS `cot_estado`,`cot_cotizacion`.`cot_subtotal` AS `cot_subtotal`,`cot_cotizacion`.`cot_impuesto` AS `cot_impuesto`,`cot_cotizacion`.`cot_total` AS `cot_total`,`cot_cotizacion`.`cot_id_ven` AS `cot_id_ven`,`cot_cotizacion`.`cot_id_cli` AS `cot_id_cli`,`axc_articuloxcotizacion`.`axc_id_art` AS `axc_id_art`,`axc_articuloxcotizacion`.`axc_cantidad` AS `axc_cantidad`,`axc_articuloxcotizacion`.`axc_descripcion` AS `axc_descripcion`,`axc_articuloxcotizacion`.`axc_precio` AS `axc_precio`,`axc_articuloxcotizacion`.`axc_subtotal` AS `axc_subtotal`,`axc_articuloxcotizacion`.`axc_impuesto` AS `axc_impuesto`,`axc_articuloxcotizacion`.`axc_total` AS `axc_total`,`est_estado_cotizacion`.`est_nombre` AS `est_nombre`,`etc_etapa_cotizacion`.`etc_nombre` AS `etc_nombre` from (((`cot_cotizacion` join `axc_articuloxcotizacion` on(`axc_articuloxcotizacion`.`axc_id_cot` = `cot_cotizacion`.`cot_id`)) join `est_estado_cotizacion` on(`est_estado_cotizacion`.`est_id` = `cot_cotizacion`.`cot_id_est`)) left join `etc_etapa_cotizacion` on(`etc_etapa_cotizacion`.`etc_id` = `cot_cotizacion`.`cot_id_etc`)) where `cot_cotizacion`.`cot_estado` <> 0;

-- ----------------------------
-- View structure for vw_bi_departamento_geo
-- ----------------------------
DROP VIEW IF EXISTS `vw_bi_departamento_geo`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `vw_bi_departamento_geo` AS select `dep_departamento`.`dep_id` AS `dep_id`,`dep_departamento`.`dep_id_pai` AS `dep_id_pai`,`dep_departamento`.`dep_nombre` AS `dep_nombre` from `dep_departamento`;

-- ----------------------------
-- View structure for vw_bi_det_facturacion
-- ----------------------------
DROP VIEW IF EXISTS `vw_bi_det_facturacion`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `vw_bi_det_facturacion` AS select `def_detalle_fact`.`def_id` AS `def_id`,`def_detalle_fact`.`def_id_fac` AS `def_id_fac`,`def_detalle_fact`.`def_id_art` AS `def_id_art`,`def_detalle_fact`.`def_cantidad` AS `def_cantidad`,`def_detalle_fact`.`def_precio` AS `def_precio`,`def_detalle_fact`.`def_subtotal` AS `def_subtotal`,`def_detalle_fact`.`def_descuento` AS `def_descuento`,`def_detalle_fact`.`def_impuesto` AS `def_impuesto` from `def_detalle_fact`;

-- ----------------------------
-- View structure for vw_bi_facturacion
-- ----------------------------
DROP VIEW IF EXISTS `vw_bi_facturacion`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `vw_bi_facturacion` AS select `fac_factura`.`fac_id` AS `fac_id`,`fac_factura`.`fac_id_cli` AS `fac_id_cli`,`fac_factura`.`fac_id_ven` AS `fac_id_ven`,`fac_factura`.`fac_id_suc` AS `fac_id_suc`,`fac_factura`.`fac_fecha_fact` AS `fac_fecha_fact`,`fac_factura`.`fac_id_tpg` AS `fac_id_tpg`,`fac_factura`.`fac_id_tif` AS `fac_id_tif`,`fac_factura`.`fac_subtotal` AS `fac_subtotal`,`fac_factura`.`fac_impuesto` AS `fac_impuesto`,`fac_factura`.`fac_total` AS `fac_total` from `fac_factura`;

-- ----------------------------
-- View structure for vw_bi_municipio
-- ----------------------------
DROP VIEW IF EXISTS `vw_bi_municipio`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `vw_bi_municipio` AS select `mun_municipio`.`mun_id` AS `mun_id`,`mun_municipio`.`mun_id_dep` AS `mun_id_dep`,`mun_municipio`.`mun_nombre` AS `mun_nombre` from `mun_municipio`;

-- ----------------------------
-- View structure for vw_bi_pais
-- ----------------------------
DROP VIEW IF EXISTS `vw_bi_pais`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `vw_bi_pais` AS select `pai_pais`.`pai_id` AS `pai_id`,`pai_pais`.`pai_nombre` AS `pai_nombre`,`pai_pais`.`pai_nacionalidad` AS `pai_nacionalidad` from `pai_pais`;

-- ----------------------------
-- View structure for vw_bi_planillas
-- ----------------------------
DROP VIEW IF EXISTS `vw_bi_planillas`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `vw_bi_planillas` AS select `pla_planilla`.`pla_id` AS `pla_id`,`pla_planilla`.`pla_codigo` AS `pla_codigo`,`pla_planilla`.`pla_fecha_inicio` AS `pla_fecha_inicio`,`pla_planilla`.`pla_fecha_fin` AS `pla_fecha_fin`,`pla_planilla`.`pla_estado` AS `pla_estado`,`tpl_tipo_planilla`.`tpl_nombre` AS `tpl_nombre`,(select sum(`ddi_detalle_ingreso`.`ddi_valor`) from `ddi_detalle_ingreso` where `ddi_detalle_ingreso`.`ddi_id_pla` = `pla_planilla`.`pla_id`) AS `ingresos`,(select sum(`ddd_detalle_descuento`.`ddd_valor`) from `ddd_detalle_descuento` where `ddd_detalle_descuento`.`ddd_id_pla` = `pla_planilla`.`pla_id`) AS `descuentos`,(select sum(`ddi_detalle_ingreso`.`ddi_valor`) from `ddi_detalle_ingreso` where `ddi_detalle_ingreso`.`ddi_id_pla` = `pla_planilla`.`pla_id`) - (select sum(`ddd_detalle_descuento`.`ddd_valor`) from `ddd_detalle_descuento` where `ddd_detalle_descuento`.`ddd_id_pla` = `pla_planilla`.`pla_id`) AS `liquido` from (`pla_planilla` join `tpl_tipo_planilla` on(`tpl_tipo_planilla`.`tpl_id` = `pla_planilla`.`pla_id_tpl`));

-- ----------------------------
-- View structure for vw_bi_sucursal
-- ----------------------------
DROP VIEW IF EXISTS `vw_bi_sucursal`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `vw_bi_sucursal` AS select `suc_sucursal`.`suc_id` AS `suc_id`,`suc_sucursal`.`suc_codigo` AS `suc_codigo`,`suc_sucursal`.`suc_id_mun` AS `suc_id_mun`,`suc_sucursal`.`suc_nombre` AS `suc_nombre`,`suc_sucursal`.`suc_direccion` AS `suc_direccion` from `suc_sucursal`;

-- ----------------------------
-- View structure for vw_bi_tipo_articulo
-- ----------------------------
DROP VIEW IF EXISTS `vw_bi_tipo_articulo`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `vw_bi_tipo_articulo` AS select `tia_tipo_articulo`.`tia_id` AS `tia_id`,`tia_tipo_articulo`.`tia_nombre` AS `tia_nombre` from `tia_tipo_articulo`;

-- ----------------------------
-- View structure for vw_bi_tipo_pago
-- ----------------------------
DROP VIEW IF EXISTS `vw_bi_tipo_pago`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `vw_bi_tipo_pago` AS select `tpg_tipo_pago`.`tpg_id` AS `tpg_id`,`tpg_tipo_pago`.`tpg_nombre` AS `tpg_nombre` from `tpg_tipo_pago`;

-- ----------------------------
-- View structure for vw_bi_vendedor
-- ----------------------------
DROP VIEW IF EXISTS `vw_bi_vendedor`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `vw_bi_vendedor` AS select `ven_vendedor`.`ven_id` AS `ven_id`,concat(`ven_vendedor`.`ven_nombre`,' ',`ven_vendedor`.`ven_apellidos`) AS `vendedor`,`ven_vendedor`.`ven_meta_cotizado` AS `ven_meta_cotizado`,`ven_vendedor`.`ven_meta_ventas` AS `ven_meta_ventas` from `ven_vendedor`;

