-- Table structure for arf_area_factura
-- ----------------------------
CREATE TABLE `arf_area_factura`  (
  `arf_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de areas de facturación',
  `arf_codigo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Código del area - facturacion',
  `arf_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre del area facturacion',
  `arf_defecto` tinyint(4) NULL DEFAULT NULL COMMENT 'es area por defecto para facturar 1=si, 0 o null =no',
  `arf_estado` tinyint(4) NOT NULL COMMENT '0=inactivo, 1=activo',
  `arf_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `arf_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `arf_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `arf_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`arf_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Areas de facturación' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of arf_area_factura
-- ----------------------------
INSERT INTO `arf_area_factura` VALUES (1, '1', 'Casa Matriz', 1, 1, 1, '2019-05-08 13:33:19', 1, '2019-05-08 13:33:19');
INSERT INTO `arf_area_factura` VALUES (2, '2', 'Sucursal Santa Tecla', 0, 1, 1, '2019-05-08 13:34:44', 1, '2019-05-08 13:34:44');

-- ----------------------------
-- Table structure for arh_archivo
-- ----------------------------
CREATE TABLE `arh_archivo`  (
  `arh_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal del archivo',
  `arh_id_usu` int(11) NOT NULL COMMENT 'Llave principal de Usuario.(crea)',
  `arh_id_usu_actualiza` int(11) NOT NULL COMMENT 'Llave principal de Usuario. (actualiza)',
  `arh_id_tpa` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de tipo de archivo',
  `arh_id_uba` int(11) NOT NULL COMMENT 'Llave principal de ubicación',
  `arh_codigo` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Código',
  `arh_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre',
  `arh_descripcion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripcion del registro',
  `arh_url_archivo` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Url archivo.',
  `arh_size` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Tamanio de archivo',
  `arh_fecha` datetime NOT NULL COMMENT 'Fecha crea',
  `arh_fecha_actualiza` datetime NOT NULL COMMENT 'Fecha actualiza',
  `arh_comentario` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Comentarios del registro',
  `arh_keywords` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'palabras claves',
  `arh_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `arh_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `arh_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `arh_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `arh_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`arh_id`) USING BTREE,
  INDEX `fk_arh_id_tpa`(`arh_id_tpa` ASC) USING BTREE,
  INDEX `fk_arh_id_uba`(`arh_id_uba` ASC) USING BTREE,
  INDEX `fk_arh_id_usu`(`arh_id_usu` ASC) USING BTREE,
  INDEX `fk_arh_id_usu_actualiza`(`arh_id_usu_actualiza` ASC) USING BTREE,
  CONSTRAINT `fk_arh_id_tpa` FOREIGN KEY (`arh_id_tpa`) REFERENCES `tpa_tipo_archivo` (`tpa_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_arh_id_uba` FOREIGN KEY (`arh_id_uba`) REFERENCES `uba_ubicacion_archivo` (`uba_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_arh_id_usu` FOREIGN KEY (`arh_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_arh_id_usu_actualiza` FOREIGN KEY (`arh_id_usu_actualiza`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 32 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Archivos para la gestión documental' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of arh_archivo
-- ----------------------------
INSERT INTO `arh_archivo` VALUES (1, 1, 65, 1, 1, 'AR0001', 'Manual Word', '', 'Organigrama.pdf', 112.12, '2022-11-23 17:05:25', '2025-02-04 18:33:58', '', 'Nombre:Manual Word Descripcion:  ', 1, 1, '2022-11-23 17:05:25', 65, '2025-02-04 18:33:58');
INSERT INTO `arh_archivo` VALUES (2, 1, 1, 2, 1, 'AR0002', 'Catalogo MH 2025', '', 'Catalogos___Sistema_de_Transmision__2_.pdf', 1512.32, '2024-07-19 15:53:26', '2025-01-21 11:16:13', '', 'Nombre:Catalogo MH 2025 Descripcion:', 1, 1, '2024-07-19 15:53:26', 1, '2025-01-21 11:16:13');
INSERT INTO `arh_archivo` VALUES (3, 1, 1, 2, 1, 'AR0003', 'A', '', 'Catalogo_2021_WEB.jpg', 649.51, '2024-07-19 16:03:13', '2024-07-19 16:03:13', '', 'Nombre:A Descripcion:', 1, 1, '2024-07-19 16:03:13', 1, '2024-07-19 16:03:13');
INSERT INTO `arh_archivo` VALUES (4, 1, 1, 1, 1, 'AR0004', 'F987', '', '987.pdf', 161.44, '2024-07-19 16:18:01', '2024-07-19 16:18:01', '', 'Nombre:F987 Descripcion:', 1, 1, '2024-07-19 16:18:01', 1, '2024-07-19 16:18:01');
INSERT INTO `arh_archivo` VALUES (5, 1, 1, 1, 1, 'AR0005', 'Memo gobierno central ', 'Memo de prevencion de operaciones', 'Nota_Conceptual_del_programa_Mipyme_en_Linea.pdf', 500.70, '2024-08-01 14:16:32', '2024-08-01 14:16:32', '', 'Nombre:Memo gobierno central  Descripcion:Memo de prevencion de operaciones', 1, 1, '2024-08-01 14:16:32', 1, '2024-08-01 14:16:32');
INSERT INTO `arh_archivo` VALUES (6, 1, 1, 1, 1, 'AR0006', 'Manual de puestos', 'Manual de puestos', 'Guia_05_Limpieza_datos.pdf', 194.36, '2024-09-27 14:52:14', '2024-09-27 14:52:14', '', 'Nombre:Manual de puestos Descripcion:Manual de puestos', 1, 1, '2024-09-27 14:52:14', 1, '2024-09-27 14:52:14');
INSERT INTO `arh_archivo` VALUES (7, 1, 1, 2, 2, 'AR0007', 'Contrato de Proveedor XYz', '', 'facturacion_electronica.jpg', 44.18, '2024-10-23 13:57:24', '2024-10-23 13:57:24', '', 'Nombre:Contrato de Proveedor XYz Descripcion:', 1, 1, '2024-10-23 13:57:24', 1, '2024-10-23 13:57:24');
INSERT INTO `arh_archivo` VALUES (8, 1, 1, 1, 1, 'AR0008', 'Código de Comercio de Panamá', 'Recopilación de Leyes Comerciales', 'Codigo_de_Comercio.pdf', 16616.93, '2024-11-21 11:04:39', '2024-11-21 11:05:04', '', 'Nombre:Código de Comercio de Panamá Descripcion:Recopilación de Leyes Comerciales', 1, 1, '2024-11-21 11:04:39', 1, '2024-11-21 11:05:04');
INSERT INTO `arh_archivo` VALUES (9, 1, 1, 1, 1, 'AR0009', 'Manuales de usuario ERP', 'Recopilación de funcionalidades de los diferentes módulos del ERP', 'Manual_de_USuario_ERP.pdf', 24.37, '2024-11-21 11:10:31', '2024-11-21 11:10:31', '', 'Nombre:Manuales de usuario ERP Descripcion:Recopilación de funcionalidades de los diferentes módulos del ERP', 1, 1, '2024-11-21 11:10:31', 1, '2024-11-21 11:10:31');
INSERT INTO `arh_archivo` VALUES (10, 1, 1, 2, 1, 'AR0010', 'Archivo de leyes', 'Archivo de leyes', 'TDR.pdf', 6295.00, '2025-01-21 11:19:25', '2025-01-21 11:19:47', '', 'Nombre:Archivo de leyes Descripcion:Archivo de leyes ', 1, 1, '2025-01-21 11:19:25', 1, '2025-01-21 11:19:47');
INSERT INTO `arh_archivo` VALUES (11, 65, 65, 3, 1, 'AR0011', 'primera', '', '1.PNG', 156.73, '2025-01-28 17:21:47', '2025-01-28 17:21:47', '', 'Nombre:primera Descripcion:', 1, 65, '2025-01-28 17:21:47', 65, '2025-01-28 17:21:47');
INSERT INTO `arh_archivo` VALUES (12, 65, 65, 3, 4, 'AR0012', 'segunda', '', '2.PNG', 155.48, '2025-01-28 17:25:22', '2025-01-28 17:25:22', '', 'Nombre:segunda Descripcion:', 1, 65, '2025-01-28 17:25:22', 65, '2025-01-28 17:25:22');
INSERT INTO `arh_archivo` VALUES (13, 65, 65, 3, 4, 'AR0013', 'tercera', '', '3.PNG', 154.92, '2025-01-28 17:28:56', '2025-01-28 17:28:56', '', 'Nombre:tercera Descripcion:', 1, 65, '2025-01-28 17:28:56', 65, '2025-01-28 17:28:56');
INSERT INTO `arh_archivo` VALUES (14, 1, 1, 3, 4, 'AR0014', 'cuarta', 'cuarta', '4.PNG', 157.31, '2025-01-28 17:32:05', '2025-01-28 17:32:05', '', 'Nombre:cuarta Descripcion:cuarta', 1, 1, '2025-01-28 17:32:05', 1, '2025-01-28 17:32:05');
INSERT INTO `arh_archivo` VALUES (15, 1, 1, 3, 4, 'AR0015', 'quinta', '', '5.PNG', 153.69, '2025-01-28 17:41:03', '2025-01-28 17:41:03', '', 'Nombre:quinta Descripcion:', 1, 1, '2025-01-28 17:41:03', 1, '2025-01-28 17:41:03');
INSERT INTO `arh_archivo` VALUES (16, 1, 1, 3, 4, 'AR0016', 'Sexto', 'banco uno ', '1.PNG', 156.73, '2025-01-28 18:02:04', '2025-01-28 18:02:04', '', 'Nombre:Sexto Descripcion:banco uno ', 1, 1, '2025-01-28 18:02:04', 1, '2025-01-28 18:02:04');
INSERT INTO `arh_archivo` VALUES (17, 1, 1, 1, 9, 'AR0017', 'Manual Intranet', 'Manual de pruebas (Manual Intranet)', 'Intranet.pdf', 2015.16, '2025-02-10 14:41:34', '2025-02-10 14:41:34', '', 'Nombre:Manual Intranet Descripcion:Manual de pruebas (Manual Intranet)', 1, 1, '2025-02-10 14:41:34', 1, '2025-02-10 14:41:34');
INSERT INTO `arh_archivo` VALUES (18, 1, 1, 3, 10, 'AR0018', '169540288.png', '', '169540288.png', 22.18, '2025-02-18 09:18:49', '2025-02-18 09:18:49', '', 'Nombre:169540288.png Descripcion:', 1, 1, '2025-02-18 09:18:49', 1, '2025-02-18 09:18:49');
INSERT INTO `arh_archivo` VALUES (19, 1, 1, 3, 10, 'AR0019', '169540290', '', '169540290.png', 21.13, '2025-02-18 09:26:11', '2025-02-18 09:26:11', '', 'Nombre:169540290 Descripcion:', 1, 1, '2025-02-18 09:26:11', 1, '2025-02-18 09:26:11');
INSERT INTO `arh_archivo` VALUES (20, 1, 1, 3, 10, 'AR0020', '169540291', '', '169540291.png', 23.97, '2025-02-18 09:26:52', '2025-02-18 09:26:52', '', 'Nombre:169540291 Descripcion:', 1, 1, '2025-02-18 09:26:52', 1, '2025-02-18 09:26:52');
INSERT INTO `arh_archivo` VALUES (21, 1, 1, 3, 10, 'AR0021', '169540292', '', '169540292.png', 19.76, '2025-02-18 09:27:57', '2025-02-18 09:27:57', '', 'Nombre:169540292 Descripcion:', 1, 1, '2025-02-18 09:27:57', 1, '2025-02-18 09:27:57');
INSERT INTO `arh_archivo` VALUES (22, 1, 1, 3, 10, 'AR0022', '169540293', '', '169540293.png', 25.79, '2025-02-18 09:30:53', '2025-02-18 09:30:53', '', 'Nombre:169540293 Descripcion:', 1, 1, '2025-02-18 09:30:53', 1, '2025-02-18 09:30:53');
INSERT INTO `arh_archivo` VALUES (23, 1, 1, 3, 10, 'AR0023', '169540294', '', '169540294.png', 20.43, '2025-02-18 09:39:53', '2025-02-18 09:39:53', '', 'Nombre:169540294 Descripcion:', 1, 1, '2025-02-18 09:39:53', 1, '2025-02-18 09:39:53');
INSERT INTO `arh_archivo` VALUES (24, 1, 1, 3, 10, 'AR0024', '169540295', '', '169540295.png', 21.87, '2025-02-18 09:44:16', '2025-02-18 09:44:16', '', 'Nombre:169540295 Descripcion:', 1, 1, '2025-02-18 09:44:16', 1, '2025-02-18 09:44:16');
INSERT INTO `arh_archivo` VALUES (25, 1, 1, 3, 10, 'AR0025', 'Estado01', '', '169540288.png', 22.18, '2025-02-18 10:28:36', '2025-02-18 10:28:36', '', 'Nombre:Estado01 Descripcion:', 1, 1, '2025-02-18 10:28:36', 1, '2025-02-18 10:28:36');
INSERT INTO `arh_archivo` VALUES (26, 1, 1, 3, 10, 'AR0026', 'Estado02', '', '169540290.png', 21.13, '2025-02-18 10:35:59', '2025-02-18 10:35:59', '', 'Nombre:Estado02 Descripcion:', 1, 1, '2025-02-18 10:35:59', 1, '2025-02-18 10:35:59');
INSERT INTO `arh_archivo` VALUES (27, 1, 1, 3, 10, 'AR0027', 'Estado03', '', '169540291.png', 23.97, '2025-02-18 10:36:31', '2025-02-18 10:36:31', '', 'Nombre:Estado03 Descripcion:', 1, 1, '2025-02-18 10:36:31', 1, '2025-02-18 10:36:31');
INSERT INTO `arh_archivo` VALUES (28, 1, 1, 1, 7, 'AR0028', 'Ley 1', 'Ley 1(Test)', 'indicador_de_total_de_albergadas_segun_estado_civil.pdf', 162.85, '2025-02-20 17:27:14', '2025-02-20 17:27:14', '', 'Nombre:Ley 1 Descripcion:Ley 1(Test)', 1, 1, '2025-02-20 17:27:14', 1, '2025-02-20 17:27:14');
INSERT INTO `arh_archivo` VALUES (29, 1, 1, 1, 9, 'AR0029', 'Manual #20', 'Manual #20 No editable', 'Catalogos__Sistema_de_Transmision___1_1__1_.pdf', 8495.45, '2025-04-01 09:47:41', '2025-04-01 09:47:41', '', 'Nombre:Manual #20 Descripcion:Manual #20 No editable', 1, 1, '2025-04-01 09:47:41', 1, '2025-04-01 09:47:41');
INSERT INTO `arh_archivo` VALUES (30, 1, 1, 1, 9, 'AR0030', 'Ley07', 'Ley07', 'Manual__20__1_.pdf', 8495.45, '2025-04-07 16:55:30', '2025-04-07 16:55:30', '', 'Nombre:Ley07 Descripcion:Ley07', 1, 1, '2025-04-07 16:55:30', 1, '2025-04-07 16:55:30');
INSERT INTO `arh_archivo` VALUES (31, 1, 1, 1, 9, 'AR0031', 'Manual 220725', '', 'DUI.pdf', 776.85, '2025-07-22 09:56:04', '2025-07-22 09:56:04', '', 'Nombre:Manual 220725 Descripcion:', 1, 1, '2025-07-22 09:56:04', 1, '2025-07-22 09:56:04');

-- ----------------------------
-- Table structure for arp_area_resultadoxplaza
-- ----------------------------
CREATE TABLE `arp_area_resultadoxplaza`  (
  `arp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de are resultado plaza',
  `arp_id_are` int(11) NOT NULL COMMENT 'Id de Area (area de responsabilidad)',
  `arp_id_pot` int(11) NOT NULL COMMENT 'Llave principal de porcentajes de tiempo',
  `arp_id_acl` int(11) NOT NULL COMMENT 'Llave principal de clave de resultado',
  `arp_id_plz` int(11) NOT NULL COMMENT 'llave de primaria del registro',
  `arp_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=Activo, 0=Inactivo',
  `arp_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `arp_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `arp_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `arp_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`arp_id`) USING BTREE,
  INDEX `fk_arp_id_acl`(`arp_id_acl` ASC) USING BTREE,
  INDEX `fk_arp_id_are`(`arp_id_are` ASC) USING BTREE,
  INDEX `fk_arp_id_plz`(`arp_id_plz` ASC) USING BTREE,
  INDEX `fk_arp_id_pot`(`arp_id_pot` ASC) USING BTREE,
  CONSTRAINT `fk_arp_id_acl` FOREIGN KEY (`arp_id_acl`) REFERENCES `acl_area_clave_resultado` (`acl_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_arp_id_are` FOREIGN KEY (`arp_id_are`) REFERENCES `are_area` (`are_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_arp_id_plz` FOREIGN KEY (`arp_id_plz`) REFERENCES `plz_plaza` (`plz_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_arp_id_pot` FOREIGN KEY (`arp_id_pot`) REFERENCES `pot_porcentaje_tiempo` (`pot_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Areas de resultado por plaza' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of arp_area_resultadoxplaza
-- ----------------------------

-- ----------------------------
-- Table structure for ars_area_servicio
-- ----------------------------
CREATE TABLE `ars_area_servicio`  (
  `ars_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de Area servicio.',
  `ars_codigo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Código',
  `ars_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre',
  `ars_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Descripción general del registro',
  `ars_estado` tinyint(4) NOT NULL COMMENT 'Estado de registro 0=inactivo, 1=activo',
  `ars_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `ars_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `ars_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `ars_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`ars_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ars_area_servicio
-- ----------------------------
INSERT INTO `ars_area_servicio` VALUES (1, '0001', 'Unidad Financiera ', 'Unidad Financiera ', 1, 1, '2021-08-29 23:50:56', 1, '2021-08-29 23:50:56');
INSERT INTO `ars_area_servicio` VALUES (2, '002', 'Unidad de Proyectos', 'Unidad de Proyectos', 1, 1, '2021-08-29 23:50:56', 1, '2021-08-29 23:50:56');

-- ----------------------------
-- Table structure for art_articulo
-- ----------------------------
CREATE TABLE `art_articulo`  (
  `art_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de articulos',
  `art_id_tia` int(11) NOT NULL COMMENT 'Codigo de tipo de articulo',
  `art_id_cda` int(11) NULL DEFAULT NULL COMMENT 'llave principal de código arancelario',
  `art_id_tgr` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de tipo de agrupación',
  `art_id_sxb` int(11) NULL DEFAULT NULL COMMENT 'llave principal de sectores por bodega',
  `art_id_bod` int(11) NULL DEFAULT NULL COMMENT 'Codigo de bodega',
  `art_id_mrp` int(11) NULL DEFAULT NULL COMMENT 'Llave principal Marca',
  `art_id_ppr` int(11) NULL DEFAULT NULL COMMENT 'llave principal de presentacion producto',
  `art_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de articulo',
  `art_codigo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Codigo de articulo interno de la empresa',
  `art_codigo_barra` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Codigo de barra del artículo',
  `art_sinonimo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Nombre de articulo -como lo conocen-',
  `art_descripcion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripcion de articulo',
  `art_foto` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Ruta de foto de articulo',
  `art_minimo` int(11) NULL DEFAULT NULL COMMENT 'Alerta para minimo en existencia de articulo',
  `art_maximo` int(11) NULL DEFAULT NULL COMMENT 'Alerta para maxio de existencia',
  `art_fecha` datetime NOT NULL COMMENT 'Fecha de Creación del Registro',
  `art_tipo` tinyint(4) NOT NULL COMMENT 'Bandera para identificar el tipo de artículo, 0=Articulo, 1=Servicios',
  `art_aplica_serie` tinyint(4) NULL DEFAULT NULL COMMENT 'Bandera para aplicar series de productos',
  `art_combo` tinyint(4) NOT NULL COMMENT 'Aplica combo/agrupacion, 1=si, 0=no',
  `art_compra` tinyint(4) NOT NULL COMMENT 'Indicador de articulo para la compra',
  `art_inventario` tinyint(4) NOT NULL COMMENT 'Indicador de articulo inventariable',
  `art_venta` tinyint(4) NOT NULL COMMENT 'Indicador de articulo para la venta',
  `art_materia_prima` tinyint(4) NOT NULL COMMENT 'Indicador de articulo para materia prima',
  `art_gasto` tinyint(4) NOT NULL COMMENT 'Indicador de si el artículo es un gasto 1=si, 0=no',
  `art_costo` tinyint(4) NOT NULL COMMENT 'Indicador de articulo si es un costo, 1=si, 0=no',
  `art_produccion` tinyint(4) NOT NULL COMMENT 'Indicador de si el artículo es para producion 1=si, 0=no',
  `art_codigo_proveedor` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Codigo de barras del articulo por el proveedor',
  `art_precio_sugerido` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Precio sugerido',
  `art_total_materia_prima` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Total invertido en materia prima',
  `art_total_mano_obra` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Total invertido en mano de obra',
  `art_total_gastos` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Total invertidoen en gastos estimación',
  `art_total_presupuesto` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Total presupuestado',
  `art_observacion_presupuesto` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Observación presupuesto.',
  `art_aplica_cuota` tinyint(4) NULL DEFAULT NULL COMMENT 'Aplica cuotas, 1=si, 0 o null=no',
  `art_numero_cuota` int(11) NULL DEFAULT NULL COMMENT 'Numero de cuotas',
  `art_aplica_empaque` tinyint(4) NULL DEFAULT NULL COMMENT 'Es producto que aplica empacado, 1=si, 0 o null=no',
  `art_aplica_para_web` tinyint(4) NULL DEFAULT 0 COMMENT 'Es producto que aplica para la web 1=si, 0 o null=no',
  `art_anticipo` tinyint(4) NULL DEFAULT NULL COMMENT 'Indicador de si el artículo es un anticipo 1=si, 0 o null=no',
  `art_activo_fijo` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Indicador de articulo para activo fijo (1=si, 0=no)',
  `art_cantidad_prod_etapa` decimal(19, 2) NULL DEFAULT 1.00 COMMENT 'Cantidad de productos por configuración de etapas',
  `art_referencia_del_bien` int(11) NULL DEFAULT NULL COMMENT 'Número de referencia del bien, 1=Prod. terminado, 2=Prod Proceso, 3=Mat. Prima,4= Bien para la construccion',
  `art_referencia_en_libro` int(11) NULL DEFAULT NULL COMMENT 'Número de referencia en libros, 1=Costos, 2=Retaceos, 3=Compras locales',
  `art_id_cva_prod_etapa` int(11) NULL DEFAULT NULL COMMENT 'llave principal de conversión artículo (para conf. de etapas)',
  `art_componente` tinyint(4) NULL DEFAULT NULL COMMENT 'Aplica para artículo componente 1=SI 0 o null =NO',
  `art_consumo_max` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Consumo maximo',
  `art_dias_cobertura` int(255) NULL DEFAULT NULL COMMENT 'Dias cobertura',
  `art_stock_seguridad` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Stock de seguridad',
  `art_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro (1:Activo, 0:Inactivo)',
  `art_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `art_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `art_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `art_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`art_id`) USING BTREE,
  INDEX `fk_art_id_tia`(`art_id_tia` ASC) USING BTREE,
  INDEX `ix_art_nombre`(`art_nombre` ASC) USING BTREE,
  INDEX `fk_art_id_bod`(`art_id_bod` ASC) USING BTREE,
  INDEX `fk_art_id_sxb`(`art_id_sxb` ASC) USING BTREE,
  INDEX `fk_art_id_mrp`(`art_id_mrp` ASC) USING BTREE,
  INDEX `cod_articulo`(`art_codigo` ASC) USING BTREE,
  INDEX `nom_articulo`(`art_nombre` ASC) USING BTREE,
  INDEX `fk_art_id_ppr`(`art_id_ppr` ASC) USING BTREE,
  INDEX `fk_art_id_cva_prod_etapa`(`art_id_cva_prod_etapa` ASC) USING BTREE,
  CONSTRAINT `fk_art_id_bod` FOREIGN KEY (`art_id_bod`) REFERENCES `bod_bodega` (`bod_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_art_id_cva_prod_etapa` FOREIGN KEY (`art_id_cva_prod_etapa`) REFERENCES `cva_conversion_articulo` (`cva_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_art_id_mrp` FOREIGN KEY (`art_id_mrp`) REFERENCES `mrp_marca_producto` (`mrp_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_art_id_ppr` FOREIGN KEY (`art_id_ppr`) REFERENCES `ppr_presentacion_producto` (`ppr_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_art_id_sxb` FOREIGN KEY (`art_id_sxb`) REFERENCES `sxb_sectorxbodega` (`sxb_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_art_id_tia` FOREIGN KEY (`art_id_tia`) REFERENCES `tia_tipo_articulo` (`tia_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 141 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Catalogo de productos /Servicios' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of art_articulo
-- ----------------------------
INSERT INTO `art_articulo` VALUES (1, 410, NULL, NULL, NULL, NULL, 27, NULL, 'Leche condesada', '01', '', NULL, 'Leche condesada', NULL, NULL, NULL, '2023-01-09 11:08:39', 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, 0, 0, 0, 0, NULL, 1, 1, NULL, 0, 50.000000, 10, 16.666667, 1, 1, '2020-04-06 00:00:00', 1, '2023-01-09 11:08:39');
INSERT INTO `art_articulo` VALUES (2, 410, NULL, NULL, NULL, 1, 27, NULL, 'Leche deslactosada', '01 070', '', NULL, 'Leche deslactosada', NULL, NULL, NULL, '2023-01-31 12:58:17', 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, 0, 0, 0, 0, NULL, 1, 1, NULL, 0, 50.000000, 10, 16.666667, 1, 1, '2020-04-06 00:00:00', 1, '2023-01-31 12:58:17');
INSERT INTO `art_articulo` VALUES (3, 410, NULL, NULL, NULL, 8, 27, NULL, 'Leche en polvo', '011', '', '', 'Leche en polvo', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (4, 410, NULL, NULL, NULL, 1, 27, NULL, 'Leche evaporada', '011 070', '', '', 'Leche evaporada', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (5, 410, NULL, NULL, NULL, 8, 27, NULL, 'Leche light', '012', '', '', 'Leche light', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (6, 410, NULL, NULL, NULL, 1, 27, NULL, 'Leche pasteurizada', '012 070', '', '', 'Leche pasteurizada', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (7, 410, NULL, NULL, NULL, 8, 27, NULL, 'Leche saborizada', '02', '', '', 'Leche saborizada', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (8, 410, NULL, NULL, NULL, 1, 27, NULL, 'Leche semidescremada', '02 070', '', '', 'Leche semidescremada', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (9, 410, NULL, NULL, NULL, 8, 27, NULL, 'Crema', '038', '', '', 'Crema', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (10, 410, NULL, NULL, NULL, 1, 27, NULL, 'Yogurt', '038 070', '', '', 'Yogurt', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (11, 410, NULL, NULL, NULL, NULL, 27, NULL, 'Mantequilla', '04', '', NULL, 'Mantequilla', 'mantequilla.jpg', NULL, NULL, '2023-01-09 11:07:22', 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, 0, 0, 0, 0, NULL, 1, 1, NULL, 0, 50.000000, 10, 16.666667, 1, 1, '2020-04-06 00:00:00', 1, '2023-01-09 11:07:22');
INSERT INTO `art_articulo` VALUES (12, 410, NULL, NULL, NULL, 1, 27, NULL, 'Margarina', '04 070', '', '', 'Margarina', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (13, 410, NULL, NULL, NULL, 8, 27, NULL, 'Cuajada', '051', '', '', 'Cuajada', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (14, 410, NULL, NULL, NULL, 1, 27, NULL, 'Queso', '051 070', '', '', 'Queso', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (15, 410, NULL, NULL, NULL, 8, 27, NULL, 'Queso Americano', '055', '', '', 'Queso Americano', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (16, 410, NULL, NULL, NULL, 1, 27, NULL, 'Queso fresco', '055 070', '', '', 'Queso fresco', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (17, 410, NULL, NULL, NULL, 8, 27, NULL, 'Queso fundido', '060', '', '', 'Queso fundido', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (18, 410, NULL, NULL, NULL, 1, 27, NULL, 'Queso rayado', '060 070', '', '', 'Queso rayado', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (19, 410, NULL, NULL, NULL, 8, 27, NULL, 'Leche entera', '064', '', '', 'Leche entera', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (20, 410, NULL, NULL, NULL, 1, 27, NULL, 'Crema light', '064 070', '', '', 'Crema light', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (30, 409, NULL, NULL, NULL, 1, 27, NULL, 'Butifarra', '01', '', '', 'Butifarra', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (31, 409, NULL, NULL, NULL, 1, 27, NULL, 'Chorizo argentino', '01', '', '', 'Chorizo argentino', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (32, 409, NULL, NULL, NULL, 1, 27, NULL, 'Longaniza', '01', '', '', 'Longaniza', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (33, 409, NULL, NULL, NULL, 1, 27, NULL, 'Salami', '01', '', '', 'Salami', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (34, 409, NULL, NULL, NULL, 1, 27, NULL, 'Salchicha de Viena', '01', '', '', 'Salchicha de Viena', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (35, 409, NULL, NULL, NULL, 1, 27, NULL, 'Salchichón', '01', '', '', 'Salchichón', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (36, 409, NULL, NULL, NULL, 1, 27, NULL, 'Morcilla', '01', '', '', 'Morcilla', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (37, 409, NULL, NULL, NULL, 1, 27, NULL, 'Chorizo parrillero', '01', '', '', 'Chorizo parrillero', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (38, 409, NULL, NULL, NULL, 1, 27, NULL, 'Prosciutto', '01', '', '', 'Prosciutto', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (39, 409, NULL, NULL, NULL, 1, 27, NULL, 'Mortadella', '01', '', '', 'Mortadella', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (40, 409, NULL, NULL, NULL, 1, 27, NULL, 'Tocino', '01', '', '', 'Tocino', '', 100, 10000, '2020-04-06 00:00:00', 0, NULL, 0, 1, 0, 1, 0, 0, 1, 1, '', NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, 0, NULL, 1, 1, NULL, NULL, 50.000000, 10, 100.000000, 1, 1, '2020-04-06 00:00:00', 1, '2020-04-06 00:00:00');
INSERT INTO `art_articulo` VALUES (41, 416, 1, NULL, NULL, NULL, NULL, NULL, 'Brasier jp', '0008001', NULL, NULL, NULL, NULL, NULL, NULL, '2022-10-17 09:43:03', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2022-10-17 09:43:03', 1, '2022-10-17 09:43:03');
INSERT INTO `art_articulo` VALUES (42, 411, NULL, NULL, NULL, 1, NULL, NULL, 'Escobas de jardin', '0003001', NULL, NULL, NULL, NULL, NULL, NULL, '2022-11-15 14:43:39', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2022-11-15 14:43:39', 1, '2022-11-15 14:43:39');
INSERT INTO `art_articulo` VALUES (43, 411, NULL, NULL, NULL, NULL, NULL, NULL, 'Guantes de hule', '0003003', NULL, NULL, NULL, NULL, NULL, NULL, '2022-11-15 14:44:42', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2022-11-15 14:44:42', 1, '2022-11-15 14:44:42');
INSERT INTO `art_articulo` VALUES (44, 411, NULL, NULL, NULL, NULL, NULL, NULL, 'Jabón liquido', '0003005', NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-18 10:22:38', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2022-11-15 14:45:07', 1, '2023-08-18 10:22:38');
INSERT INTO `art_articulo` VALUES (45, 411, NULL, NULL, NULL, 1, NULL, NULL, 'Desinfectante Fabuloso', '0003007', NULL, NULL, NULL, 'fabuloso.png', NULL, NULL, '2022-11-15 15:22:34', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2022-11-15 15:20:02', 1, '2022-11-15 15:22:34');
INSERT INTO `art_articulo` VALUES (46, 418, NULL, NULL, NULL, 1, NULL, NULL, 'Lomo Rollizo sin Solomo', '0010001', NULL, NULL, NULL, 'lomo_rollizo_sin_solomo.jpeg', NULL, NULL, '2023-01-13 11:13:23', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-01-09 11:13:28', 1, '2023-01-13 11:13:23');
INSERT INTO `art_articulo` VALUES (47, 418, NULL, NULL, NULL, NULL, NULL, NULL, 'Puyazo', '0010003', NULL, NULL, 'Puyaso de res ', 'puyazo.jpg', NULL, NULL, '2023-01-31 13:08:06', 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-01-09 15:30:32', 1, '2023-01-31 13:08:06');
INSERT INTO `art_articulo` VALUES (48, 418, NULL, NULL, NULL, NULL, NULL, NULL, 'Carne para guisar', '0010005', NULL, NULL, 'Carne para guisar de res', 'guisar.jpg', NULL, NULL, '2023-01-09 15:53:44', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-01-09 15:37:26', 1, '2023-01-09 15:53:44');
INSERT INTO `art_articulo` VALUES (49, 418, NULL, NULL, NULL, NULL, NULL, NULL, 'Molida especial', '0010007', NULL, NULL, 'Carne de res molida especial', 'descarga.jpg', NULL, NULL, '2023-01-09 15:53:57', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-01-09 15:38:55', 1, '2023-01-09 15:53:57');
INSERT INTO `art_articulo` VALUES (50, 418, NULL, NULL, NULL, NULL, NULL, NULL, 'Hígado de res', '0010009', NULL, NULL, 'Hígado de res', 'descarga__1_.jpg', NULL, NULL, '2023-01-09 15:54:08', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, 2260, 0, NULL, NULL, 0.000000, 1, 1, '2023-01-09 15:40:13', 1, '2023-01-13 10:31:45');
INSERT INTO `art_articulo` VALUES (51, 418, NULL, NULL, NULL, NULL, NULL, NULL, 'Picado de res para tacos', '0010011', NULL, NULL, 'Picado de res para tacos', 'descarga__2_.jpg', NULL, NULL, '2023-01-09 15:54:20', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-01-09 15:41:18', 1, '2023-01-09 15:54:20');
INSERT INTO `art_articulo` VALUES (52, 418, NULL, NULL, NULL, NULL, NULL, NULL, 'Choquezuela', '0010013', NULL, NULL, 'Choquezuela de res', 'Choquezuela.jpg', NULL, NULL, '2023-01-13 12:02:35', 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, 2262, 0, NULL, NULL, 0.000000, 1, 1, '2023-01-09 15:42:39', 1, '2023-01-13 12:17:51');
INSERT INTO `art_articulo` VALUES (53, 418, NULL, NULL, NULL, NULL, NULL, NULL, 'Posta negra', '0010015', NULL, NULL, 'Posta negra de res ', 'Posta_negra.jpg', NULL, NULL, '2023-01-09 15:54:48', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-01-09 15:44:21', 1, '2023-01-09 15:54:48');
INSERT INTO `art_articulo` VALUES (54, 418, NULL, NULL, NULL, NULL, NULL, NULL, 'Costilla alta de res', '0010017', NULL, NULL, 'Costilla alta de res', 'Costilla_alta_de_res.jpg', NULL, NULL, '2023-01-09 15:54:59', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-01-09 15:47:46', 1, '2023-01-09 15:54:59');
INSERT INTO `art_articulo` VALUES (55, 418, NULL, NULL, NULL, NULL, NULL, NULL, 'Angelina ', '0010019', NULL, NULL, 'Angelina ', 'Angelina.jpg', NULL, NULL, '2023-01-09 15:55:11', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-01-09 15:50:50', 1, '2023-01-09 15:55:11');
INSERT INTO `art_articulo` VALUES (56, 418, NULL, NULL, NULL, NULL, NULL, NULL, 'Carne sin procesar', '0010021', NULL, NULL, NULL, NULL, NULL, NULL, '2023-01-13 10:18:44', 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-01-13 10:18:44', 1, '2023-01-13 10:18:44');
INSERT INTO `art_articulo` VALUES (57, 419, NULL, NULL, NULL, NULL, NULL, NULL, 'ENCUADERNADORA STAR+', '0011001', NULL, NULL, '\"Star PlusEncuadernadora 12 hojas de perforación con capacidad de 150 hojas simultáneas.\", \"Perforación: 12 hojasEncuadernado: 150 hojasVersiones: Manual Tipo Encuadernado: Arillo PlásticoGarantía: 2 años\"', 'Star_plus_LO.jpg', NULL, NULL, '2023-02-01 10:33:09', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-02-01 10:33:09', 1, '2023-02-01 10:33:09');
INSERT INTO `art_articulo` VALUES (58, 419, NULL, NULL, NULL, NULL, NULL, NULL, 'ENCUADERNADORA PULSAR +', '0011003', NULL, NULL, '\"Pulsar Encuadernadora 15 a 18 hojas de perforación con capacidad de 300 hojas simultáneas.\"', '2014_pulsar.jpg', NULL, NULL, '2023-02-01 10:39:29', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-02-01 10:39:29', 1, '2023-02-01 10:39:29');
INSERT INTO `art_articulo` VALUES (59, 419, NULL, NULL, NULL, NULL, NULL, NULL, 'ENCUADERNADORA GALAXY E', '0011005', NULL, NULL, '\"GalaxyEncuadernadora 25 hojas de perforación con capacidad de 500 hojas simultáneas.\"', '2014_Galaxy.jpg', NULL, NULL, '2023-02-01 10:43:36', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-02-01 10:43:36', 1, '2023-02-01 10:43:36');
INSERT INTO `art_articulo` VALUES (60, 419, NULL, NULL, NULL, NULL, NULL, NULL, 'GILLOTINA FUSION 120', '0011007', NULL, NULL, '\"FUSION 120Guillotina de 12 pulgadas con capacidad de corte 10 hojas simultaneas\"', 'guillo.jpg', NULL, NULL, '2023-02-01 10:44:46', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-02-01 10:44:46', 1, '2023-02-01 10:44:46');
INSERT INTO `art_articulo` VALUES (61, 419, NULL, NULL, NULL, NULL, NULL, NULL, 'MOUSEPAD I-SPIRE GRIS CON BLANCO', '0011009', NULL, NULL, 'MOUSEPAD I-SPIRE GRIS CON BLANCO', 'ISpire_WristRockerMousePadWhite.jpg', NULL, NULL, '2023-02-01 10:45:57', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-02-01 10:45:57', 1, '2023-02-01 10:45:57');
INSERT INTO `art_articulo` VALUES (62, 419, NULL, NULL, NULL, NULL, NULL, NULL, 'REPOSAMUÑECAS TECLADO I-SPIRE GRIS', '0011011', NULL, NULL, 'REPOSAMUÑECAS TECLADO I-SPIRE GRIS', 'teclado.jpg', NULL, NULL, '2023-02-01 10:52:18', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-02-01 10:52:18', 1, '2023-02-01 10:52:18');
INSERT INTO `art_articulo` VALUES (63, 419, NULL, NULL, NULL, NULL, NULL, NULL, 'SOPORTE MONITOR I-SPIRE', '0011013', NULL, NULL, 'SOPORTE MONITOR I-SPIRE', 'SOPORTE_MONITOR_I_SPIRE.jpg', NULL, NULL, '2023-02-01 10:55:08', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-02-01 10:55:08', 1, '2023-02-01 10:55:08');
INSERT INTO `art_articulo` VALUES (64, 419, NULL, NULL, NULL, NULL, NULL, NULL, 'CLASIFICADOR DE ACCESORIOS I-SPIRE', '0011015', NULL, NULL, 'CLASIFICADOR DE ACCESORIOS I-SPIRE', 'CLASIFICADOR_DE_ACCESORIOS_I_SPIRE.jpg', NULL, NULL, '2023-02-01 10:57:22', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-02-01 10:57:22', 1, '2023-02-01 10:57:22');
INSERT INTO `art_articulo` VALUES (65, 419, NULL, NULL, NULL, NULL, NULL, NULL, 'SUJETADOR PIZARRON PORTATIL I-SPIRE', '0011017', NULL, NULL, 'SUJETADOR PIZARRON PORTATIL I-SPIRE', 'SUJETADOR_PIZARRON_PORTATIL_I_SPIRE.jpg', NULL, NULL, '2023-02-01 10:58:41', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-02-01 10:58:41', 1, '2023-02-01 10:58:41');
INSERT INTO `art_articulo` VALUES (66, 419, NULL, NULL, NULL, NULL, NULL, NULL, 'SOPORTE TABLET ANTIDESLIZANTE I-SPIRE', '0011019', NULL, NULL, 'SOPORTE TABLET ANTIDESLIZANTE I-SPIRE', 'tablet.jpg', NULL, NULL, '2023-02-01 11:01:41', 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-02-01 11:01:41', 1, '2023-02-01 11:01:41');
INSERT INTO `art_articulo` VALUES (67, 423, NULL, NULL, NULL, 1, NULL, NULL, 'Examen endoscopia ', '0015001', NULL, NULL, NULL, 'endoscopia.png', NULL, NULL, '2023-05-19 11:16:58', 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-04-14 11:38:50', 1, '2023-05-19 11:16:58');
INSERT INTO `art_articulo` VALUES (68, 421, NULL, NULL, NULL, NULL, NULL, NULL, 'Desarrollo de software a la medida', '0013001', NULL, NULL, NULL, NULL, NULL, NULL, '2023-04-25 14:12:47', 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-04-25 14:06:58', 1, '2023-04-25 14:12:47');
INSERT INTO `art_articulo` VALUES (69, 421, NULL, NULL, NULL, NULL, NULL, NULL, 'Diseno de paginas Web', '0013003', NULL, NULL, NULL, NULL, NULL, NULL, '2024-08-14 12:18:17', 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-04-25 14:07:32', 1, '2024-08-14 12:18:17');
INSERT INTO `art_articulo` VALUES (70, 421, NULL, NULL, NULL, NULL, NULL, NULL, 'Satelite ERP', '0013005', NULL, NULL, NULL, NULL, NULL, NULL, '2024-09-20 10:47:27', 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-04-25 14:08:21', 1, '2024-09-20 10:47:27');
INSERT INTO `art_articulo` VALUES (71, 422, NULL, NULL, NULL, NULL, NULL, NULL, 'Comisión por desembolso de crédito', '0014001', NULL, NULL, NULL, NULL, NULL, NULL, '2023-05-12 08:09:44', 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-05-12 08:09:44', 1, '2023-05-12 08:09:44');
INSERT INTO `art_articulo` VALUES (72, 422, NULL, NULL, NULL, NULL, NULL, NULL, 'Venta de Chequeras', '0014003', NULL, NULL, NULL, NULL, NULL, NULL, '2023-05-12 08:10:57', 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-05-12 08:10:57', 1, '2023-05-12 08:10:57');
INSERT INTO `art_articulo` VALUES (73, 422, NULL, NULL, NULL, NULL, NULL, NULL, 'Intereses por mora', '0014005', NULL, NULL, NULL, NULL, NULL, NULL, '2023-05-12 08:11:49', 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-05-12 08:11:49', 1, '2023-05-12 08:11:49');
INSERT INTO `art_articulo` VALUES (74, 420, NULL, NULL, NULL, 1, 34, NULL, 'Abrelix', '0012003', NULL, NULL, 'Jarabe para el tratamiento sintomático de afecciones respiratorias', 'Screenshot_30.png', NULL, NULL, '2023-05-19 08:36:11', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-05-19 08:21:46', 1, '2023-05-19 08:36:11');
INSERT INTO `art_articulo` VALUES (75, 420, NULL, NULL, NULL, 1, 34, NULL, 'Agua Destilada Esteril', '0012005', NULL, NULL, 'Solvente para preparación de soluciones parentenales', NULL, NULL, NULL, '2023-05-19 08:25:58', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-05-19 08:25:58', 1, '2023-05-19 08:25:58');
INSERT INTO `art_articulo` VALUES (76, 420, NULL, NULL, NULL, 1, 34, NULL, 'Aluboro', '0012007', NULL, NULL, 'Alivio de las irritaciones menores de la piel', 'Screenshot_31.png', NULL, NULL, '2023-05-19 09:14:27', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-05-19 08:33:47', 1, '2023-05-19 09:14:27');
INSERT INTO `art_articulo` VALUES (77, 420, NULL, NULL, NULL, 1, 34, NULL, 'Irislosa 0.05%', '0012009', NULL, 'Lagrimas', 'Lagrimas artificiales', 'Screenshot_32.png', NULL, NULL, '2023-05-19 08:58:40', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-05-19 08:47:20', 1, '2023-05-19 08:58:40');
INSERT INTO `art_articulo` VALUES (78, 420, NULL, NULL, NULL, 1, 34, NULL, 'Locand 32mg', '0012011', NULL, NULL, 'Tratamiento de la hipertensión primaria', NULL, NULL, NULL, '2023-05-19 08:55:00', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-05-19 08:55:00', 1, '2023-05-19 08:55:00');
INSERT INTO `art_articulo` VALUES (79, 420, NULL, NULL, NULL, 1, 34, NULL, 'Sernox Compuesto', '0012013', NULL, NULL, 'Antiespasmódico y analgésico gastrointestinal', NULL, NULL, NULL, '2023-05-19 08:57:39', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-05-19 08:57:39', 1, '2023-05-19 08:57:39');
INSERT INTO `art_articulo` VALUES (80, 420, NULL, NULL, NULL, NULL, 34, NULL, 'Sudagrip', '0012015', NULL, NULL, NULL, 'sudagrip.jpg', NULL, NULL, '2023-10-23 12:05:56', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-05-23 11:06:42', 1, '2023-10-23 12:05:56');
INSERT INTO `art_articulo` VALUES (81, 420, NULL, NULL, NULL, 1, 34, NULL, 'Bronquilar', '0012017', NULL, NULL, 'Medicamento antitusivo', 'bronquilar.png', NULL, NULL, '2023-05-23 12:45:50', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-05-23 11:39:14', 1, '2023-05-23 12:45:50');
INSERT INTO `art_articulo` VALUES (82, 413, NULL, NULL, NULL, NULL, 22, NULL, 'Papel Bond', '0005001', NULL, NULL, NULL, 'papel_bond.jpg', NULL, NULL, '2023-05-24 11:31:20', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-05-24 11:22:34', 1, '2023-05-24 11:31:20');
INSERT INTO `art_articulo` VALUES (83, 424, NULL, NULL, NULL, NULL, 22, NULL, 'TV 25 ', '0016001', NULL, NULL, 'TV 25 Samsung Smart tv', 'smart_tv.jpg', NULL, NULL, '2023-05-26 11:30:56', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-05-26 11:02:59', 1, '2023-05-26 11:30:56');
INSERT INTO `art_articulo` VALUES (84, 425, NULL, NULL, NULL, 1, 35, NULL, 'Agua Tonica', 'BEB001', NULL, NULL, NULL, NULL, NULL, NULL, '2023-07-04 09:05:07', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, 1.75, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-07-04 09:05:07', 1, '2023-07-04 09:05:07');
INSERT INTO `art_articulo` VALUES (85, 425, NULL, NULL, NULL, 1, NULL, NULL, 'Cerveza Trois-Monts', 'BEB002', NULL, NULL, NULL, NULL, NULL, NULL, '2023-07-04 09:18:09', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, 2.75, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-07-04 09:18:09', 1, '2023-07-04 09:18:09');
INSERT INTO `art_articulo` VALUES (86, 425, NULL, NULL, NULL, 1, NULL, NULL, 'Gaseosa Barq\'s', 'BEB003', NULL, NULL, NULL, NULL, NULL, NULL, '2023-07-04 09:20:40', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, 1.75, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-07-04 09:20:40', 1, '2023-07-04 09:20:40');
INSERT INTO `art_articulo` VALUES (87, 425, NULL, NULL, NULL, 1, 2, NULL, 'Agua Tonica', 'BEB004', NULL, NULL, NULL, NULL, NULL, NULL, '2023-07-04 09:23:45', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, 1.25, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-07-04 09:23:45', 1, '2023-07-04 09:23:45');
INSERT INTO `art_articulo` VALUES (88, 425, NULL, NULL, NULL, 1, NULL, NULL, 'Cerveza Foster', 'BEB005', NULL, NULL, NULL, NULL, NULL, NULL, '2023-07-04 09:27:33', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, 2.25, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-07-04 09:27:33', 1, '2023-07-04 09:27:33');
INSERT INTO `art_articulo` VALUES (89, 425, NULL, NULL, NULL, 1, NULL, NULL, 'RC-Cola', 'BEB006', NULL, NULL, NULL, NULL, NULL, NULL, '2023-07-04 09:34:23', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, 1.00, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-07-04 09:34:23', 1, '2023-07-04 09:34:23');
INSERT INTO `art_articulo` VALUES (90, 420, NULL, NULL, NULL, 1, NULL, NULL, 'Jeringas', '0012018', NULL, NULL, NULL, NULL, NULL, NULL, '2023-10-04 13:48:38', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-10-04 13:36:14', 1, '2023-10-04 13:48:38');
INSERT INTO `art_articulo` VALUES (91, 420, NULL, NULL, NULL, 1, NULL, NULL, 'Gasas', '0012019', NULL, NULL, NULL, NULL, NULL, NULL, '2023-10-04 13:48:14', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-10-04 13:37:13', 1, '2023-10-04 13:48:14');
INSERT INTO `art_articulo` VALUES (92, 420, NULL, NULL, NULL, NULL, NULL, NULL, 'Grapas', '0012020', NULL, NULL, NULL, NULL, NULL, NULL, '2023-10-04 13:47:12', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-10-04 13:37:46', 1, '2023-10-04 13:47:12');
INSERT INTO `art_articulo` VALUES (93, 420, NULL, NULL, NULL, NULL, NULL, NULL, 'Paquete de intervecion', '0012021', NULL, NULL, NULL, NULL, NULL, NULL, '2023-10-04 13:47:49', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-10-04 13:38:30', 1, '2023-10-04 13:47:49');
INSERT INTO `art_articulo` VALUES (94, 420, NULL, NULL, NULL, NULL, NULL, NULL, 'Kit apendicitis', '0012022', NULL, NULL, NULL, NULL, NULL, NULL, '2023-10-04 13:41:17', 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-10-04 13:40:34', 1, '2023-10-04 13:41:17');
INSERT INTO `art_articulo` VALUES (95, 420, NULL, NULL, NULL, NULL, NULL, NULL, 'Bisturi', '0012023', NULL, NULL, NULL, NULL, NULL, NULL, '2023-10-04 13:51:23', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-10-04 13:51:06', 1, '2023-10-04 13:51:23');
INSERT INTO `art_articulo` VALUES (96, 431, NULL, NULL, NULL, 1, NULL, NULL, 'protesis rodilla', '0022005', NULL, NULL, NULL, 'protesis_rodilla2.jpg', NULL, NULL, '2024-08-09 11:31:36', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-10-04 16:19:12', 1, '2024-08-09 11:31:36');
INSERT INTO `art_articulo` VALUES (97, 426, NULL, NULL, NULL, NULL, NULL, NULL, 'AUTOCAD', '001800001', NULL, NULL, 'AUTOCAD', NULL, NULL, NULL, '2023-10-12 10:57:18', 1, NULL, 0, 0, 0, 1, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 1.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2023-10-12 10:57:18', 1, '2023-10-12 10:57:18');
INSERT INTO `art_articulo` VALUES (98, 426, NULL, NULL, NULL, NULL, NULL, NULL, 'PHOTOSHOP', '001800002', NULL, NULL, NULL, NULL, NULL, NULL, '2023-10-12 11:06:48', 1, NULL, 0, 0, 0, 1, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 1.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2023-10-12 11:06:48', 1, '2023-10-12 11:06:48');
INSERT INTO `art_articulo` VALUES (99, 427, NULL, NULL, NULL, 1, NULL, NULL, 'Aceite 20w50', '0019001', NULL, NULL, NULL, '20w50.jpg', NULL, NULL, '2024-02-08 10:04:08', 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-12-12 15:33:19', 1, '2024-02-08 10:04:08');
INSERT INTO `art_articulo` VALUES (100, 427, NULL, NULL, NULL, NULL, NULL, 1, 'Grasa Litica EP2 400 Gramos', '0019002', NULL, NULL, NULL, NULL, NULL, NULL, '2023-12-12 15:59:21', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2023-12-12 15:59:21', 1, '2023-12-12 15:59:21');
INSERT INTO `art_articulo` VALUES (101, 428, NULL, NULL, NULL, NULL, NULL, NULL, 'Libro Sistema operativos', '0020001', NULL, NULL, NULL, NULL, NULL, NULL, '2024-01-18 19:02:14', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-01-18 19:01:12', 1, '2024-01-18 19:02:14');
INSERT INTO `art_articulo` VALUES (102, 426, NULL, NULL, NULL, NULL, NULL, NULL, 'SISTEMA OPERATIVO 1', '001800003', NULL, NULL, NULL, NULL, NULL, NULL, '2024-01-18 19:19:23', 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-01-18 19:05:49', 1, '2024-01-18 19:19:23');
INSERT INTO `art_articulo` VALUES (103, 426, NULL, NULL, NULL, NULL, NULL, NULL, 'SISTEMA OPERATIVO II', '001800004', NULL, NULL, NULL, NULL, NULL, NULL, '2024-01-18 19:23:56', 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-01-18 19:16:13', 1, '2024-01-18 19:23:56');
INSERT INTO `art_articulo` VALUES (104, 426, NULL, NULL, NULL, NULL, NULL, NULL, 'Primer Grado', '001800005', NULL, NULL, NULL, NULL, NULL, NULL, '2024-01-18 20:55:08', 1, NULL, 0, 0, 0, 1, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 1.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2024-01-18 20:55:08', 1, '2024-01-18 20:55:08');
INSERT INTO `art_articulo` VALUES (105, 413, NULL, NULL, NULL, 1, NULL, NULL, 'SOBRES MANILA', '0005002', NULL, NULL, 'SOBRES MANILA', NULL, NULL, NULL, '2024-02-08 08:56:20', 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-02-08 08:43:40', 1, '2024-02-08 08:56:20');
INSERT INTO `art_articulo` VALUES (106, 429, NULL, NULL, NULL, NULL, NULL, NULL, 'Intereses corrientes', '1', NULL, NULL, NULL, NULL, NULL, NULL, '2024-04-12 14:51:20', 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-04-12 14:46:10', 1, '2024-04-12 14:51:20');
INSERT INTO `art_articulo` VALUES (107, 429, NULL, NULL, NULL, NULL, NULL, NULL, 'Dias Mora', '2', NULL, NULL, NULL, NULL, NULL, NULL, '2024-04-12 14:48:11', 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-04-12 14:48:11', 1, '2024-04-12 14:48:11');
INSERT INTO `art_articulo` VALUES (108, 422, NULL, NULL, NULL, NULL, NULL, NULL, 'Seguro de deuda', '3', NULL, NULL, NULL, NULL, NULL, NULL, '2024-04-12 14:55:46', 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-04-12 14:54:15', 1, '2024-04-12 14:55:46');
INSERT INTO `art_articulo` VALUES (109, 422, NULL, NULL, NULL, NULL, NULL, NULL, 'Credito Hipotecario', '4', NULL, NULL, NULL, NULL, NULL, NULL, '2024-04-12 15:10:13', 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-04-12 15:00:28', 1, '2024-04-12 15:10:13');
INSERT INTO `art_articulo` VALUES (110, 420, NULL, NULL, NULL, NULL, NULL, NULL, 'ACETAMINOFEN', '0012025', NULL, NULL, NULL, NULL, 10, 50, '2024-05-03 15:07:24', 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-05-03 15:07:24', 1, '2024-05-03 15:07:24');
INSERT INTO `art_articulo` VALUES (111, 422, NULL, NULL, NULL, NULL, NULL, NULL, 'Interes Corriente', '5', NULL, NULL, NULL, NULL, NULL, NULL, '2024-05-14 08:45:37', 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-05-14 08:44:04', 1, '2024-05-14 08:45:37');
INSERT INTO `art_articulo` VALUES (112, 431, NULL, NULL, NULL, 1, 30, NULL, 'Trasplante de cadera', '0022001', NULL, 'rodilla', 'Trasplante de rodilla', 'tv.jpg', NULL, NULL, '2024-05-20 09:52:32', 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-05-20 09:32:24', 1, '2024-05-20 09:52:32');
INSERT INTO `art_articulo` VALUES (113, 431, NULL, NULL, NULL, NULL, NULL, NULL, 'Vastago 0', '62001', NULL, NULL, NULL, NULL, NULL, NULL, '2024-05-20 10:15:05', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-05-20 09:50:20', 1, '2024-05-20 10:15:05');
INSERT INTO `art_articulo` VALUES (114, 431, NULL, NULL, NULL, NULL, NULL, NULL, 'copa acetabular', '0022003', NULL, NULL, NULL, NULL, NULL, NULL, '2024-05-20 09:51:02', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-05-20 09:51:02', 1, '2024-05-20 09:51:02');
INSERT INTO `art_articulo` VALUES (115, 431, NULL, NULL, NULL, 1, NULL, NULL, 'Inserto', '0022004', NULL, NULL, NULL, NULL, NULL, NULL, '2024-06-03 09:51:50', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-05-20 09:51:27', 1, '2024-06-03 09:51:50');
INSERT INTO `art_articulo` VALUES (116, 431, NULL, NULL, NULL, NULL, NULL, NULL, 'Vastago 1', '62002', NULL, NULL, NULL, NULL, NULL, NULL, '2024-05-20 10:15:41', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-05-20 10:15:41', 1, '2024-05-20 10:15:41');
INSERT INTO `art_articulo` VALUES (117, 431, NULL, NULL, NULL, NULL, NULL, NULL, 'vastago 3', '62003', NULL, NULL, NULL, NULL, NULL, NULL, '2024-05-20 10:16:05', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-05-20 10:16:05', 1, '2024-05-20 10:16:05');
INSERT INTO `art_articulo` VALUES (118, 434, NULL, NULL, NULL, NULL, NULL, NULL, 'Fletes', '0025001', NULL, NULL, NULL, NULL, NULL, NULL, '2024-06-03 09:50:50', 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-06-03 09:49:47', 1, '2024-06-03 09:50:50');
INSERT INTO `art_articulo` VALUES (119, 434, NULL, NULL, NULL, NULL, NULL, NULL, 'Almacenaje', '0025002', NULL, NULL, NULL, NULL, NULL, NULL, '2024-06-03 09:50:33', 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-06-03 09:50:33', 1, '2024-06-03 09:50:33');
INSERT INTO `art_articulo` VALUES (120, 427, NULL, NULL, NULL, NULL, NULL, NULL, 'Moticicleta Yamaha', '0019003', NULL, NULL, NULL, NULL, NULL, NULL, '2024-07-04 09:29:21', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 1, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-07-04 09:29:21', 1, '2024-07-04 09:29:21');
INSERT INTO `art_articulo` VALUES (121, 438, NULL, NULL, NULL, NULL, NULL, NULL, 'Pantalla acrilica lechosa', '0029001', NULL, NULL, NULL, NULL, NULL, NULL, '2024-10-10 10:18:54', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 1, NULL, NULL, 0.000000, 1, 1, '2024-10-10 10:18:54', 1, '2024-10-10 10:18:54');
INSERT INTO `art_articulo` VALUES (122, 438, NULL, NULL, NULL, NULL, NULL, NULL, 'Vinil translúcido', '0029002', NULL, NULL, NULL, NULL, NULL, NULL, '2024-10-10 10:21:28', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 1, NULL, NULL, 0.000000, 1, 1, '2024-10-10 10:21:28', 1, '2024-10-10 10:21:28');
INSERT INTO `art_articulo` VALUES (123, 438, NULL, NULL, NULL, NULL, NULL, NULL, 'Diodos Led', '0029003', NULL, NULL, NULL, NULL, NULL, NULL, '2024-10-10 10:22:27', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 1, NULL, NULL, 0.000000, 1, 1, '2024-10-10 10:22:27', 1, '2024-10-10 10:22:27');
INSERT INTO `art_articulo` VALUES (124, 438, NULL, NULL, NULL, NULL, NULL, NULL, 'Lamina Galvanizada', '0029004', NULL, NULL, NULL, NULL, NULL, NULL, '2024-10-10 10:23:23', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 1, NULL, NULL, 0.000000, 1, 1, '2024-10-10 10:23:23', 1, '2024-10-10 10:23:23');
INSERT INTO `art_articulo` VALUES (125, 438, NULL, NULL, NULL, NULL, NULL, NULL, 'Lamina acrílica ', '0029005', NULL, NULL, NULL, NULL, NULL, NULL, '2024-10-10 10:25:26', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 1, NULL, NULL, 0.000000, 1, 1, '2024-10-10 10:25:26', 1, '2024-10-10 10:25:26');
INSERT INTO `art_articulo` VALUES (126, 438, NULL, NULL, NULL, NULL, NULL, NULL, 'Logo en lámina acrílica pequeño', '0029006', NULL, NULL, NULL, NULL, NULL, NULL, '2024-10-10 12:32:16', 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-10-10 10:30:48', 1, '2024-10-10 12:32:16');
INSERT INTO `art_articulo` VALUES (127, 438, NULL, NULL, NULL, NULL, NULL, NULL, 'Letra encajuelada', '0029007', NULL, NULL, NULL, NULL, NULL, NULL, '2024-10-10 10:44:54', 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-10-10 10:37:33', 1, '2024-10-10 10:44:54');
INSERT INTO `art_articulo` VALUES (128, 438, NULL, NULL, NULL, NULL, NULL, NULL, 'Logo encajuelado pequeño', '0029008', NULL, NULL, NULL, NULL, NULL, NULL, '2024-10-10 10:45:06', 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-10-10 10:40:46', 1, '2024-10-10 10:45:06');
INSERT INTO `art_articulo` VALUES (129, 438, NULL, NULL, NULL, NULL, NULL, NULL, 'Logo encajuelado satinado', '0029009', NULL, NULL, NULL, NULL, NULL, NULL, '2024-10-10 10:45:18', 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-10-10 10:42:21', 1, '2024-10-10 10:45:18');
INSERT INTO `art_articulo` VALUES (130, 438, NULL, NULL, NULL, NULL, NULL, NULL, 'Servicio de Diseño', '0029010', NULL, NULL, NULL, NULL, NULL, NULL, '2024-10-10 12:23:42', 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-10-10 12:23:42', 1, '2024-10-10 12:23:42');
INSERT INTO `art_articulo` VALUES (131, 439, NULL, NULL, NULL, 1, NULL, NULL, 'Pintura  rojo brillante', '0030001', NULL, NULL, NULL, 'istockphoto_474055382_612x612.jpg', NULL, NULL, '2024-10-23 15:37:50', 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 50.00, NULL, NULL, 2372, 0, NULL, NULL, 0.000000, 1, 65, '2024-10-17 17:02:35', 1, '2024-10-23 16:20:43');
INSERT INTO `art_articulo` VALUES (132, 440, NULL, NULL, NULL, 1, NULL, NULL, 'Colorante rojo', '0031001', NULL, NULL, NULL, NULL, NULL, NULL, '2024-10-17 17:24:56', 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 65, '2024-10-17 17:24:56', 65, '2024-10-17 17:24:56');
INSERT INTO `art_articulo` VALUES (133, 440, NULL, NULL, NULL, 1, NULL, NULL, 'pintuta base', '0031002', NULL, NULL, NULL, NULL, NULL, NULL, '2024-10-17 17:25:33', 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 65, '2024-10-17 17:25:33', 65, '2024-10-17 17:25:33');
INSERT INTO `art_articulo` VALUES (134, 419, NULL, NULL, NULL, NULL, NULL, NULL, 'Silla Secretarial', '0011020', NULL, NULL, NULL, '20210802175418_Categorias_Mobiliario_y_Ergonomia_SILLA_DE_OFICINA_EJECUTIVA_NEUMATICO_SIN_BRAZOS_CON_ESPALDAR_ALTO_NEGRA_1649202108021754189573.jpg', NULL, NULL, '2024-10-23 10:53:56', 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 1, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-10-23 10:53:56', 1, '2024-10-23 10:53:56');
INSERT INTO `art_articulo` VALUES (135, 422, NULL, NULL, NULL, NULL, NULL, NULL, 'Servicios de consultoria financiera', '0014006', NULL, NULL, 'Servicios de consultoria financiera para empresas', NULL, NULL, NULL, '2024-11-11 12:53:59', 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 1, '2024-11-11 12:53:59', 1, '2024-11-11 12:53:59');
INSERT INTO `art_articulo` VALUES (136, 440, 3, NULL, NULL, NULL, 5, 1, 'Frijol', '0031003', NULL, 'Frijol', 'Sembraar frijol', NULL, NULL, NULL, '2025-01-15 13:10:27', 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, NULL, 10.00, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, 2377, 0, NULL, NULL, 0.000000, 1, 1, '2025-01-15 13:10:27', 1, '2025-01-15 13:10:27');
INSERT INTO `art_articulo` VALUES (137, 442, NULL, NULL, NULL, NULL, NULL, NULL, 'Bombas para fluidos', '0033001', NULL, NULL, NULL, NULL, NULL, NULL, '2025-02-24 12:07:26', 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, 2378, 0, NULL, NULL, 0.000000, 1, 65, '2025-02-24 08:46:31', 65, '2025-02-24 12:07:26');
INSERT INTO `art_articulo` VALUES (138, 443, NULL, NULL, NULL, NULL, NULL, NULL, 'Acero', '0034001', NULL, NULL, NULL, NULL, NULL, NULL, '2025-02-24 08:52:00', 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 65, '2025-02-24 08:52:00', 65, '2025-02-24 08:52:00');
INSERT INTO `art_articulo` VALUES (139, 443, NULL, NULL, NULL, NULL, NULL, NULL, 'Alumnio', '0034002', NULL, NULL, NULL, NULL, NULL, NULL, '2025-02-24 08:52:47', 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 65, '2025-02-24 08:52:47', 65, '2025-02-24 08:52:47');
INSERT INTO `art_articulo` VALUES (140, 443, NULL, NULL, NULL, NULL, NULL, NULL, 'Cobre', '0034003', NULL, NULL, NULL, NULL, NULL, NULL, '2025-02-24 10:07:07', 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 1.00, NULL, NULL, NULL, 0, NULL, NULL, 0.000000, 1, 65, '2025-02-24 08:53:11', 65, '2025-02-24 10:07:07');

-- ----------------------------
-- Table structure for asa_asistente_accionista
-- ----------------------------
CREATE TABLE `asa_asistente_accionista`  (
  `asa_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de asistente de accionista',
  `asa_id_acn` int(11) NOT NULL COMMENT 'Llave principal de Accionista',
  `asa_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre del  Accionista',
  `asa_telefono` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Telefono contacto',
  `asa_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=Activo, 0=Inactivo',
  `asa_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `asa_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `asa_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `asa_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`asa_id`) USING BTREE,
  INDEX `fk_asa_id_acn`(`asa_id_acn` ASC) USING BTREE,
  CONSTRAINT `fk_asa_id_acn` FOREIGN KEY (`asa_id_acn`) REFERENCES `acn_accionista` (`acn_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Asistente de Accionistas' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of asa_asistente_accionista
-- ----------------------------

-- ----------------------------
-- Table structure for ase_aseguradora
-- ----------------------------
CREATE TABLE `ase_aseguradora`  (
  `ase_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de aseguradora',
  `ase_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre',
  `ase_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripcion',
  `ase_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'estado del registro 1=activo, 0=inactivo',
  `ase_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `ase_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `ase_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `ase_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`ase_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Entidad - Aseguradoras' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ase_aseguradora
-- ----------------------------
INSERT INTO `ase_aseguradora` VALUES (1, 'SURA', '', 1, 1, '2023-06-28 11:16:59', 1, '2023-06-28 11:16:59');
INSERT INTO `ase_aseguradora` VALUES (2, 'ASESUIZA', '', 1, 1, '2023-06-28 11:17:23', 1, '2023-06-28 11:17:23');

-- ----------------------------
-- Table structure for asg_asistencia_grupo
-- ----------------------------
CREATE TABLE `asg_asistencia_grupo`  (
  `asg_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria de asistencia de grupo.',
  `asg_id_gra` int(11) NOT NULL COMMENT 'codigo de grupo academica',
  `asg_id_dct` int(11) NOT NULL COMMENT 'codigo de docente',
  `asg_fecha_asistencia` datetime NOT NULL COMMENT 'Fecha de asistencia.',
  `asg_observacion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Observación general del registro',
  `asg_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 0=inactivo, 1=activo',
  `asg_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `asg_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `asg_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `asg_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`asg_id`) USING BTREE,
  INDEX `fk_asg_id_dct`(`asg_id_dct` ASC) USING BTREE,
  INDEX `fk_asg_id_gra`(`asg_id_gra` ASC) USING BTREE,
  CONSTRAINT `fk_asg_id_dct` FOREIGN KEY (`asg_id_dct`) REFERENCES `dct_docente` (`dct_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_asg_id_gra` FOREIGN KEY (`asg_id_gra`) REFERENCES `gra_grupo_academico` (`gra_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of asg_asistencia_grupo
-- ----------------------------
INSERT INTO `asg_asistencia_grupo` VALUES (1, 2, 1, '2024-01-18 00:00:00', NULL, 1, 1, '2024-01-18 20:43:52', 1, '2024-01-18 20:43:52');

-- ----------------------------
-- Table structure for asm_asistente_miembro
-- ----------------------------
CREATE TABLE `asm_asistente_miembro`  (
  `asm_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de Asistente Miembro Junta',
  `asm_id_mij` int(11) NOT NULL COMMENT 'Llave principal de Accionista',
  `asm_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre del  Titular',
  `asm_telefono_contacto` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Telefono de contacto',
  `asm_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=Activo, 0=Inactivo',
  `asm_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `asm_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `asm_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `asm_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`asm_id`) USING BTREE,
  INDEX `fk_asm_id_mij`(`asm_id_mij` ASC) USING BTREE,
  CONSTRAINT `fk_asm_id_mij` FOREIGN KEY (`asm_id_mij`) REFERENCES `mij_miembro_junta` (`mij_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Asistente de miembro de junta' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of asm_asistente_miembro
-- ----------------------------

-- ----------------------------
-- Table structure for asv_asignacion_vehiculo
-- ----------------------------
CREATE TABLE `asv_asignacion_vehiculo`  (
  `asv_id` int(11) NOT NULL AUTO_INCREMENT,
  `asv_id_veh` int(11) NOT NULL,
  `asv_id_mot` int(11) NOT NULL,
  `asv_id_uni` int(11) NULL DEFAULT NULL,
  `asv_fecha` date NOT NULL,
  `asv_fecha_contrato` date NULL DEFAULT NULL,
  `asv_deposito` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Deposito por asignación de vehículo',
  `asv_cuota` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Cuota por asignación de vehículo',
  `asv_observacion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
  `asv_estado` tinyint(4) NOT NULL COMMENT '0=Fuera de servicio, 1=Abierto, 2=Sin asignar',
  `asv_usu_modificacion` int(11) NOT NULL,
  `asv_usu_creacion` int(11) NOT NULL,
  `asv_fecha_modificacion` datetime NOT NULL,
  `asv_fecha_creacion` datetime NOT NULL,
  PRIMARY KEY (`asv_id`) USING BTREE,
  INDEX `fk_asv_id_veh`(`asv_id_veh` ASC) USING BTREE,
  INDEX `fk_asv_id_mot`(`asv_id_mot` ASC) USING BTREE,
  INDEX `fk_asv_id_uni`(`asv_id_uni` ASC) USING BTREE,
  CONSTRAINT `fk_asv_id_mot` FOREIGN KEY (`asv_id_mot`) REFERENCES `mot_motorista` (`mot_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_asv_id_uni` FOREIGN KEY (`asv_id_uni`) REFERENCES `uni_unidad` (`uni_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_asv_id_veh` FOREIGN KEY (`asv_id_veh`) REFERENCES `veh_vehiculo` (`veh_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of asv_asignacion_vehiculo
-- ----------------------------
INSERT INTO `asv_asignacion_vehiculo` VALUES (1, 1, 1, NULL, '2023-01-01', '2023-01-27', NULL, NULL, NULL, 0, 1, 1, '2023-01-18 18:04:43', '2023-01-18 18:04:43');
INSERT INTO `asv_asignacion_vehiculo` VALUES (2, 1, 1, NULL, '2023-01-28', '2023-01-31', NULL, NULL, NULL, 0, 1, 1, '2023-01-18 18:07:32', '2023-01-18 18:07:32');
INSERT INTO `asv_asignacion_vehiculo` VALUES (3, 2, 2, NULL, '2023-01-01', '2023-01-10', NULL, NULL, NULL, 0, 1, 1, '2023-01-19 10:15:22', '2023-01-19 10:15:22');
INSERT INTO `asv_asignacion_vehiculo` VALUES (4, 2, 1, NULL, '2023-01-11', '2023-01-31', NULL, NULL, NULL, 1, 1, 1, '2023-01-19 10:15:34', '2023-01-19 10:15:34');
INSERT INTO `asv_asignacion_vehiculo` VALUES (5, 1, 2, NULL, '2024-02-01', '2024-02-11', NULL, NULL, NULL, 1, 1, 1, '2024-02-08 11:23:12', '2024-02-08 11:23:12');
INSERT INTO `asv_asignacion_vehiculo` VALUES (6, 3, 1, NULL, '2024-02-01', '2024-02-29', NULL, NULL, NULL, 0, 1, 1, '2024-02-08 12:32:55', '2024-02-08 12:32:55');
INSERT INTO `asv_asignacion_vehiculo` VALUES (7, 3, 2, NULL, '2024-07-11', '2024-07-11', NULL, NULL, NULL, 1, 1, 1, '2024-07-11 10:58:41', '2024-07-11 10:58:41');

-- ----------------------------
-- Table structure for atc_anexo_control_calidad
-- ----------------------------
CREATE TABLE `atc_anexo_control_calidad`  (
  `atc_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria de anexo por control de calidad',
  `atc_id_ccr` int(11) NOT NULL COMMENT 'Llave principal de Programacion de produccion',
  `atc_url` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Url del anexo',
  `atc_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre o referencia del anexo',
  `atc_fecha_registro` datetime NOT NULL COMMENT 'Fecha del registro',
  `atc_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 0=inactivo, 1=activo',
  `atc_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `atc_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `atc_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `atc_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`atc_id`) USING BTREE,
  INDEX `fk_atc_id_ccr`(`atc_id_ccr` ASC) USING BTREE,
  CONSTRAINT `fk_atc_id_ccr` FOREIGN KEY (`atc_id_ccr`) REFERENCES `ccr_control_calidad_orden` (`ccr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Anexos de control de calidad' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of atc_anexo_control_calidad
-- ----------------------------

-- ----------------------------
-- Table structure for atp_articulo_detalle_presupuesto
-- ----------------------------
CREATE TABLE `atp_articulo_detalle_presupuesto`  (
  `atp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de articulo por detalle presupuesto',
  `atp_id_art` int(11) NOT NULL COMMENT 'Llave principal de articulos',
  `atp_id_dps` int(11) NOT NULL COMMENT 'Llave principal de detalle de prusupuesto',
  `atp_estado` tinyint(4) NOT NULL COMMENT 'Estado de registro 0=inactivo, 1=activo',
  `atp_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `atp_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `atp_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `atp_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`atp_id`) USING BTREE,
  INDEX `fk_atp_id_art`(`atp_id_art` ASC) USING BTREE,
  INDEX `fk_atp_id_dps`(`atp_id_dps` ASC) USING BTREE,
  CONSTRAINT `fk_atp_id_art` FOREIGN KEY (`atp_id_art`) REFERENCES `art_articulo` (`art_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_atp_id_dps` FOREIGN KEY (`atp_id_dps`) REFERENCES `dps_detalle_presupuesto` (`dps_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Articulo por detalle de presupuesto' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of atp_articulo_detalle_presupuesto
-- ----------------------------

-- ----------------------------
-- Table structure for ats_anexo_traslado_plan
-- ----------------------------
CREATE TABLE `ats_anexo_traslado_plan`  (
  `ats_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria de anexo de traslado plan',
  `ats_id_tmp` int(11) NOT NULL COMMENT 'Llave principal traslado de plan de compra detalle presupuesto',
  `ats_url` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Url del anexo',
  `ats_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre o referencia del anexo',
  `ats_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 0=inactivo, 1=activo',
  `ats_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `ats_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `ats_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `ats_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`ats_id`) USING BTREE,
  INDEX `fk_ats_id_tmp`(`ats_id_tmp` ASC) USING BTREE,
  CONSTRAINT `fk_ats_id_tmp` FOREIGN KEY (`ats_id_tmp`) REFERENCES `tmp_traslado_monto_plan` (`tmp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'anexos del traslado plan' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ats_anexo_traslado_plan
-- ----------------------------

-- ----------------------------
-- Table structure for att_anticipo_transferencia
-- ----------------------------
CREATE TABLE `att_anticipo_transferencia`  (
  `att_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID Anticipo por Trasnferencia',
  `att_id_nta` int(11) NOT NULL COMMENT 'ID Nota de Abono',
  `att_id_dpv` int(11) NOT NULL COMMENT 'ID Documento Proveedor',
  `att_saldo_inicial` decimal(10, 2) NULL DEFAULT NULL COMMENT 'Saldo con el que viene la transferencia',
  `att_abono_dpv` decimal(10, 2) NULL DEFAULT NULL COMMENT 'Saldo con el que se abono el DPV',
  `att_saldo_pendiente` decimal(10, 2) NULL DEFAULT NULL COMMENT 'Saldo Pendiente de la Transferencia',
  `att_estado` int(11) NULL DEFAULT NULL COMMENT 'Estado, 0 = Inactivo, 1= Activo',
  `att_usu_creacion` int(11) NULL DEFAULT NULL COMMENT 'Usuario Creacion',
  `att_fecha_creacion` datetime NULL DEFAULT NULL COMMENT 'Fecha Creacion',
  `att_usu_mod` int(11) NOT NULL COMMENT 'Usuario Modificacion',
  `att_fecha_mod` datetime NULL DEFAULT NULL COMMENT 'Fecha Modificacion',
  PRIMARY KEY (`att_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of att_anticipo_transferencia
-- ----------------------------

-- ----------------------------
-- Table structure for aul_aula
-- ----------------------------
CREATE TABLE `aul_aula`  (
  `aul_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'codigo de aula',
  `aul_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'nombres de aula',
  `aul_ubicacion` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'ubicacion de aula',
  `aul_capacidad` int(11) NOT NULL COMMENT 'capacidad de alumnos en el aula',
  `aul_modalidad` tinyint(4) NULL DEFAULT 0 COMMENT '0=Presencial / 1= virtual',
  `aul_estado` tinyint(4) NOT NULL COMMENT '1=activo, 0=inactivo',
  `aul_usu_crea` int(11) NOT NULL COMMENT 'auditoria',
  `aul_fecha_crea` datetime NOT NULL COMMENT 'auditoria',
  `aul_usu_mod` int(11) NOT NULL COMMENT 'auditoria',
  `aul_fecha_mod` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`aul_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'aulas del centro educativo' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of aul_aula
-- ----------------------------
INSERT INTO `aul_aula` VALUES (1, 'SALA 1', NULL, 50, 0, 1, 1, '2023-10-12 11:38:40', 1, '2023-10-12 11:38:40');
INSERT INTO `aul_aula` VALUES (2, 'VIRTUAL ', NULL, 200, 0, 1, 1, '2023-10-12 11:38:53', 1, '2023-10-12 11:38:53');

-- ----------------------------
-- Table structure for avi_aviso
-- ----------------------------
CREATE TABLE `avi_aviso`  (
  `avi_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de aviso',
  `avi_id_usu` int(11) NOT NULL COMMENT 'Llave principal de Usuario.',
  `avi_codigo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Código de aviso',
  `avi_asunto` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Asunto',
  `avi_detalle` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Detalle',
  `avi_fecha_hasta` datetime NULL DEFAULT NULL COMMENT 'Fecha hasta',
  `avi_fecha_desde` datetime NULL DEFAULT NULL COMMENT 'Fecha desde',
  `avi_url_imagen` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Imagen aviso',
  `avi_fecha` datetime NOT NULL COMMENT 'Fecha de registro',
  `avi_publico` int(11) NULL DEFAULT NULL COMMENT 'Aviso para mostrar en intranet',
  `avi_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `avi_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `avi_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `avi_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `avi_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`avi_id`) USING BTREE,
  INDEX `fk_avi_id_usu`(`avi_id_usu` ASC) USING BTREE,
  CONSTRAINT `fk_avi_id_usu` FOREIGN KEY (`avi_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Gestión de avisos' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of avi_aviso
-- ----------------------------
INSERT INTO `avi_aviso` VALUES (1, 65, 'A0001', 'Celebracion del dia del programador', 'Ahora celebraremos el dia del programador', '2024-10-22 00:00:00', '2024-10-22 00:00:00', 'uploads/anx_avisos/dia_programador.jpeg', '2024-10-22 09:51:16', NULL, 1, 65, '2024-10-22 09:51:16', 65, '2024-10-22 09:51:16');
INSERT INTO `avi_aviso` VALUES (2, 65, 'A0002', 'Reunion general de programadores', 'Ahora tendremos la reunion general de programadores', '2024-10-22 00:00:00', '2024-10-22 00:00:00', '', '2024-10-22 09:52:06', NULL, 1, 65, '2024-10-22 09:52:06', 65, '2024-10-22 09:52:06');
INSERT INTO `avi_aviso` VALUES (3, 1, 'A0003', 'Celebracion del dia del Padre', 'Celebracion del dia del Padre', '2024-10-25 00:00:00', '2024-10-23 00:00:00', 'uploads/anx_avisos/FOTO_SUSANA_LOPEZ.jpg', '2024-10-23 13:52:39', NULL, 1, 1, '2024-10-23 13:52:39', 1, '2024-10-30 18:46:03');
INSERT INTO `avi_aviso` VALUES (4, 1, 'A0004', 'Bienvenidos a nuestra Intranet', 'Estimados colaboradores te damos una bienvenida\na nuestra Intranet para nuestra institución.', '2074-10-30 00:00:00', '2024-10-30 00:00:00', 'uploads/anx_avisos/headerLC.png', '2024-10-30 18:44:34', NULL, 1, 1, '2024-10-30 18:44:34', 1, '2024-10-30 18:46:19');
INSERT INTO `avi_aviso` VALUES (9, 1, 'A0005', 'Cena Navideña 2025', 'Te invitamos a disfrutar en familia la cena navideña 2025 el dia 15 de Diciembre, detalles en la invitacion', '2025-12-15 00:00:00', '2025-11-11 00:00:00', 'uploads/anx_avisos/NavidadInt.jpg', '2025-11-11 10:39:29', 1, 1, 1, '2025-11-11 10:39:29', 1, '2025-11-11 11:12:58');
INSERT INTO `avi_aviso` VALUES (10, 1, 'A0006', 'Celebracion de Fin de año', 'Fiesta de fin de año 28 de Diciembre', '2025-11-28 00:00:00', '2025-11-11 00:00:00', 'uploads/anx_avisos/cena_de_fin_de_ano_2_1024x678.jpg', '2025-11-11 10:48:54', 1, 1, 1, '2025-11-11 10:48:54', 1, '2025-11-11 10:52:48');

-- ----------------------------
-- Table structure for axa_anexoxactivo
-- ----------------------------
CREATE TABLE `axa_anexoxactivo`  (
  `axa_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal',
  `axa_id_act` int(11) NOT NULL COMMENT 'Codigo de Activo',
  `axa_id_anx` int(11) NOT NULL COMMENT 'Codigo de Anexo',
  `axa_estado` int(11) NOT NULL COMMENT 'Estado de registro',
  `axa_usu_mod` int(11) NOT NULL COMMENT 'Auditoria',
  `axa_fecha_mod` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`axa_id`) USING BTREE,
  INDEX `fk_axa_id_act`(`axa_id_act` ASC) USING BTREE,
  INDEX `fk_axa_id_anx`(`axa_id_anx` ASC) USING BTREE,
  CONSTRAINT `fk_axa_id_act` FOREIGN KEY (`axa_id_act`) REFERENCES `act_activo_fijo` (`act_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_axa_id_anx` FOREIGN KEY (`axa_id_anx`) REFERENCES `anx_anexo` (`anx_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axa_anexoxactivo
-- ----------------------------

-- ----------------------------
-- Table structure for axb_artxbod
-- ----------------------------
CREATE TABLE `axb_artxbod`  (
  `axb_id` int(11) NOT NULL,
  `axb_id_art` int(11) NULL DEFAULT NULL,
  `axb_id_bod` int(11) NULL DEFAULT NULL,
  `axb_minimo` decimal(19, 2) NULL DEFAULT NULL,
  `axb_maximo` decimal(19, 2) NULL DEFAULT NULL,
  PRIMARY KEY (`axb_id`) USING BTREE,
  INDEX `fk_axb_id_art`(`axb_id_art` ASC) USING BTREE,
  INDEX `fk_axb_id_bod`(`axb_id_bod` ASC) USING BTREE,
  CONSTRAINT `fk_axb_id_art` FOREIGN KEY (`axb_id_art`) REFERENCES `art_articulo` (`art_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axb_artxbod
-- ----------------------------
INSERT INTO `axb_artxbod` VALUES (1, NULL, NULL, NULL, NULL);
INSERT INTO `axb_artxbod` VALUES (2, 1, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (3, 2, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (4, 3, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (5, 4, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (6, 5, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (7, 6, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (8, 7, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (9, 8, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (10, 9, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (11, 10, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (12, 11, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (13, 12, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (14, 13, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (15, 14, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (16, 15, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (17, 16, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (18, 17, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (19, 18, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (20, 19, 1, 1.00, 1000.00);
INSERT INTO `axb_artxbod` VALUES (21, 20, 1, 1.00, 1000.00);

-- ----------------------------
-- Table structure for axc_articuloxcotizacion
-- ----------------------------
CREATE TABLE `axc_articuloxcotizacion`  (
  `axc_id` int(11) NOT NULL AUTO_INCREMENT,
  `axc_id_cot` int(11) NOT NULL,
  `axc_id_bod` int(11) NULL DEFAULT NULL COMMENT 'bodega de donde se extrajo el productod',
  `axc_id_lip` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de lista de precio (bitacora)',
  `axc_id_foa` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de formula',
  `axc_id_art` int(11) NOT NULL,
  `axc_id_cva` int(11) NULL DEFAULT NULL COMMENT 'llave principal de conversión artículo',
  `axc_descripcion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'descripcion del producto',
  `axc_precio` decimal(19, 6) NULL DEFAULT NULL COMMENT 'precio del producto',
  `axc_cantidad` decimal(19, 6) NOT NULL,
  `axc_impuesto` decimal(19, 6) NULL DEFAULT NULL COMMENT 'impuesto aplicado al producto',
  `axc_descuento` decimal(19, 6) NULL DEFAULT NULL COMMENT 'descuento aplicado al producto',
  `axc_subtotal` decimal(19, 6) NULL DEFAULT NULL COMMENT 'subtotal ',
  `axc_total` decimal(19, 6) NULL DEFAULT NULL COMMENT 'total',
  `axc_precio_sugerido_lista` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Precio sugerido que hala de la lista de precio. (como  bitacora/historial)',
  `axc_valor_formula` decimal(19, 6) NULL DEFAULT NULL COMMENT 'valor que la formula aplicada',
  `axc_precio_inventario` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Precio de costo segun los inventarios (peps o costo promedio)',
  `axc_personalizado` tinyint(4) NULL DEFAULT NULL COMMENT 'producto personalizado 1=si, 0 o null =no',
  `axc_cantidad_facturada` decimal(19, 6) NULL DEFAULT NULL COMMENT 'cantidad de producto facturado',
  `axc_cantidad_pendiente` decimal(19, 6) NULL DEFAULT NULL COMMENT 'cantidad de producto pendiente de facturar',
  `axc_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 1=activo, 0=inactivo',
  `axc_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `axc_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `axc_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `axc_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`axc_id`) USING BTREE,
  INDEX `fk_axc_id_art`(`axc_id_art` ASC) USING BTREE,
  INDEX `fk_axc_id_cot`(`axc_id_cot` ASC) USING BTREE,
  INDEX `fk_axc_id_cva`(`axc_id_cva` ASC) USING BTREE,
  INDEX `fk_axc_bod`(`axc_id_bod` ASC) USING BTREE,
  INDEX `fk_axc_id_lip`(`axc_id_lip` ASC) USING BTREE,
  CONSTRAINT `fk_axc_bod` FOREIGN KEY (`axc_id_bod`) REFERENCES `bod_bodega` (`bod_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_axc_id_art` FOREIGN KEY (`axc_id_art`) REFERENCES `art_articulo` (`art_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_axc_id_cva` FOREIGN KEY (`axc_id_cva`) REFERENCES `cva_conversion_articulo` (`cva_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_axc_id_lip` FOREIGN KEY (`axc_id_lip`) REFERENCES `lip_listado_precio` (`lip_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 41 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axc_articuloxcotizacion
-- ----------------------------
INSERT INTO `axc_articuloxcotizacion` VALUES (2, 14, NULL, NULL, NULL, 77, 72, 'Lija de agua Expert N100', 200.000000, 10.000000, 234.000000, 10.000000, 2000.000000, 2034.000000, NULL, NULL, 0.000000, 0, 0.000000, 10.000000, 1, 2, '2020-04-16 11:24:08', 1, '2020-07-02 16:50:39');
INSERT INTO `axc_articuloxcotizacion` VALUES (5, 16, NULL, 308, NULL, 47, 47, 'Brocha Estandar 2 1/2\"', 3.000000, 5.000000, 9.600000, 0.000000, 15.000000, 24.600000, 0.000000, NULL, 0.000000, 0, 0.000000, 5.000000, 1, 9, '2020-06-30 08:26:56', 9, '2020-06-30 08:47:27');
INSERT INTO `axc_articuloxcotizacion` VALUES (7, 17, NULL, NULL, NULL, 51, 51, 'Brocha Expert 3\"', 5.000000, 1.000000, 0.000000, 0.000000, 5.000000, 5.000000, NULL, NULL, 1.290000, 0, 1.000000, 0.000000, 1, 9, '2020-06-30 09:32:29', 9, '2020-06-30 09:33:26');
INSERT INTO `axc_articuloxcotizacion` VALUES (8, 17, NULL, 325, NULL, 53, 53, 'LIJA AGUA NORTON #320 O BRASILENA', 4.000000, 3.000000, 7.680000, 0.000000, 12.000000, 19.680000, 0.000000, NULL, 0.221200, 0, 3.000000, 0.000000, 1, 9, '2020-06-30 09:32:29', 9, '2020-06-30 09:33:26');
INSERT INTO `axc_articuloxcotizacion` VALUES (10, 17, NULL, 365, NULL, 73, 73, 'Set Std Expert 3 piezas', 4.000000, 2.000000, 5.120000, 0.000000, 8.000000, 13.120000, 0.000000, NULL, 1.469026, 0, 2.000000, 0.000000, 1, 9, '2020-06-30 09:32:29', 9, '2020-06-30 09:33:26');
INSERT INTO `axc_articuloxcotizacion` VALUES (30, 26, NULL, 9515, NULL, 2, 2, 'Leche deslactosada', 2.250000, 10.000000, 2.925000, 0.000000, 22.500000, 25.425000, 2.250000, NULL, NULL, 0, NULL, NULL, 1, 1, '2023-01-31 12:54:45', 1, '2023-01-31 12:54:45');
INSERT INTO `axc_articuloxcotizacion` VALUES (31, 27, NULL, NULL, NULL, 115, 2356, '', 350.000000, 90.000000, 3890.250000, 5.000000, 31500.000000, 33815.250000, 350.000000, NULL, 20.919813, 0, 0.000000, 90.000000, 1, 1, '2024-07-26 15:40:32', 1, '2024-07-26 15:40:32');
INSERT INTO `axc_articuloxcotizacion` VALUES (32, 27, NULL, 9573, NULL, 112, 2352, 'Trasplante de rodilla', 150.000000, 15.000000, 292.500000, 0.000000, 2250.000000, 2542.500000, 150.000000, NULL, 0.000000, 0, 0.000000, 15.000000, 1, 1, '2024-07-26 15:40:32', 1, '2024-07-26 15:40:32');
INSERT INTO `axc_articuloxcotizacion` VALUES (33, 27, NULL, 9580, NULL, 96, 2328, '', 455.000000, 25.000000, 1478.750000, 0.000000, 11375.000000, 12853.750000, 455.000000, NULL, 52.964732, 0, 0.000000, 25.000000, 1, 1, '2024-07-26 15:40:32', 1, '2024-07-26 15:40:32');
INSERT INTO `axc_articuloxcotizacion` VALUES (34, 28, NULL, NULL, NULL, 127, 2368, '', 25.000000, 1.000000, 3.250000, 0.000000, 25.000000, 28.250000, NULL, NULL, 5.000000, 0, 1.000000, 0.000000, 1, 1, '2024-10-10 13:08:27', 1, '2024-10-10 13:08:42');
INSERT INTO `axc_articuloxcotizacion` VALUES (35, 29, NULL, NULL, NULL, 126, 2367, '', 150.000000, 1.000000, 19.500000, 0.000000, 150.000000, 169.500000, NULL, NULL, 5.000000, 0, 1.000000, 0.000000, 1, 1, '2024-10-10 13:49:35', 1, '2024-10-10 13:53:14');
INSERT INTO `axc_articuloxcotizacion` VALUES (36, 29, NULL, NULL, NULL, 127, 2368, '', 30.000000, 1.000000, 3.510000, 10.000000, 30.000000, 30.510000, NULL, NULL, 5.000000, 0, 1.000000, 0.000000, 1, 1, '2024-10-10 13:49:35', 1, '2024-10-10 13:53:14');
INSERT INTO `axc_articuloxcotizacion` VALUES (37, 30, NULL, NULL, NULL, 131, 2372, '', 5.000000, 50.000000, 32.500000, 0.000000, 250.000000, 282.500000, NULL, NULL, 0.000000, 0, 0.000000, 50.000000, 1, 1, '2024-10-23 15:54:49', 1, '2024-10-23 15:55:06');
INSERT INTO `axc_articuloxcotizacion` VALUES (38, 31, NULL, NULL, NULL, 8, 8, 'Leche semidescremada', 1.000000, 100.000000, 13.000000, 0.000000, 100.000000, 113.000000, NULL, NULL, 0.000000, 0, 0.000000, 100.000000, 1, 1, '2024-12-17 11:17:53', 1, '2024-12-17 11:22:16');
INSERT INTO `axc_articuloxcotizacion` VALUES (39, 32, NULL, 9573, NULL, 112, 2352, 'Trasplante de rodilla', 150.000000, 100.000000, 1950.000000, 0.000000, 15000.000000, 16950.000000, 150.000000, NULL, 0.000000, 0, 0.000000, 100.000000, 1, 1, '2025-01-27 14:46:21', 1, '2025-01-27 14:54:59');
INSERT INTO `axc_articuloxcotizacion` VALUES (40, 32, NULL, 9573, NULL, 112, 2352, 'Trasplante de rodillaTrasplante de rodillaTrasplante de rodillaTrasplante de rodillaTrasplante de rodillaTrasplante de rodillaTrasplante de rodillaTrasplante de rodillaTrasplante de rodillaTrasplante de rodillaTrasplante de rodillaTrasplante de rodillaTrasplante de rodilla', 150.000000, 1.000000, 19.500000, 0.000000, 150.000000, 169.500000, 150.000000, NULL, 0.000000, 0, 0.000000, 1.000000, 1, 1, '2025-01-27 14:46:21', 1, '2025-01-27 14:54:59');

-- ----------------------------
-- Table structure for axd_anexo_descuento
-- ----------------------------
CREATE TABLE `axd_anexo_descuento`  (
  `axd_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de anexos por descuento',
  `axd_id_dss` int(11) NOT NULL COMMENT 'Identificador unico',
  `axd_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre del anexo',
  `axd_url` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Url de la ubicación del anexo',
  `axd_estado` int(11) NOT NULL COMMENT 'estado de registro',
  `axd_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `axd_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  `axd_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `axd_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`axd_id`) USING BTREE,
  INDEX `fk_axd_id_dss`(`axd_id_dss` ASC) USING BTREE,
  CONSTRAINT `fk_axd_id_dss` FOREIGN KEY (`axd_id_dss`) REFERENCES `dss_descuento` (`dss_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Anexo por descuento' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axd_anexo_descuento
-- ----------------------------

-- ----------------------------
-- Table structure for axe_activoxempleado
-- ----------------------------
CREATE TABLE `axe_activoxempleado`  (
  `axe_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Identificador unico',
  `axe_id_act` int(11) NOT NULL COMMENT 'Identificación Unica de Activo Fijo',
  `axe_id_are` int(11) NOT NULL COMMENT 'Id de Area',
  `axe_id_emp` int(11) NOT NULL COMMENT 'Identificación del Sistema para empleado',
  `axe_obs` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Observaciones del activo',
  `axe_fecha` datetime NOT NULL COMMENT 'Fecha del activo entregado',
  `axe_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Estado de la asignacion del activo por empleado 1 = activo, 0 = inactivo',
  `axe_use_mod` int(11) NOT NULL COMMENT 'Auditoria',
  `axe_fecha_mod` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`axe_id`) USING BTREE,
  INDEX `fk_axe_id_are`(`axe_id_are` ASC) USING BTREE,
  INDEX `fk_axe_id_act`(`axe_id_act` ASC) USING BTREE,
  INDEX `fk_axe_id_empleado`(`axe_id_emp` ASC) USING BTREE,
  CONSTRAINT `fk_axe_id_act` FOREIGN KEY (`axe_id_act`) REFERENCES `act_activo_fijo` (`act_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_axe_id_are` FOREIGN KEY (`axe_id_are`) REFERENCES `are_area` (`are_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_axe_id_empleado` FOREIGN KEY (`axe_id_emp`) REFERENCES `emp_empleado` (`emp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 31 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Activos que posee un empleado en un tiempo determinado' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axe_activoxempleado
-- ----------------------------
INSERT INTO `axe_activoxempleado` VALUES (1, 1, 7, 76, '', '2022-01-03 11:55:45', 1, 1, '2022-01-18 11:55:45');
INSERT INTO `axe_activoxempleado` VALUES (2, 2, 7, 76, '', '2022-01-03 11:55:45', 1, 1, '2022-01-18 11:55:45');
INSERT INTO `axe_activoxempleado` VALUES (3, 3, 7, 76, 'Observacion', '2022-01-18 12:16:59', 1, 1, '2022-01-18 12:16:59');
INSERT INTO `axe_activoxempleado` VALUES (5, 5, 7, 86, 'Se reasigno al Aux Ctble 1', '2023-01-18 17:34:13', 0, 1, '2024-02-08 09:39:11');
INSERT INTO `axe_activoxempleado` VALUES (6, 6, 7, 81, '', '2023-01-19 09:05:52', 0, 1, '2023-01-19 09:08:02');
INSERT INTO `axe_activoxempleado` VALUES (7, 6, 7, 76, '', '2023-01-19 09:08:02', 1, 1, '2023-01-19 09:08:02');
INSERT INTO `axe_activoxempleado` VALUES (8, 63, 7, 86, '', '2024-02-08 07:56:51', 0, 1, '2024-02-08 09:25:19');
INSERT INTO `axe_activoxempleado` VALUES (9, 63, 7, 92, '', '2024-02-08 09:25:19', 1, 1, '2024-02-08 09:25:19');
INSERT INTO `axe_activoxempleado` VALUES (11, 5, 7, 81, '', '2024-02-08 09:39:12', 1, 1, '2024-02-08 09:39:12');
INSERT INTO `axe_activoxempleado` VALUES (12, 4, 4, 2, 'se asigna af ', '2024-02-08 11:45:07', 0, 1, '2024-02-08 11:50:41');
INSERT INTO `axe_activoxempleado` VALUES (13, 4, 12, 78, 'asignado', '2024-02-08 11:50:41', 1, 1, '2024-02-08 11:50:41');
INSERT INTO `axe_activoxempleado` VALUES (14, 80, 3, 91, '', '2024-06-20 09:25:49', 0, 1, '2024-06-20 09:33:12');
INSERT INTO `axe_activoxempleado` VALUES (15, 80, 3, 46, '', '2024-05-31 09:33:12', 1, 1, '2024-06-20 09:33:12');
INSERT INTO `axe_activoxempleado` VALUES (16, 61, 7, 5, 'Se le asigna al Aux. contable 2                            ', '2024-07-04 10:18:07', 0, 1, '2024-07-04 10:21:52');
INSERT INTO `axe_activoxempleado` VALUES (17, 5, 7, 5, 'Se le asigna al Aux. contable 2                            ', '2024-07-04 10:18:07', 0, 1, '2024-09-27 13:54:54');
INSERT INTO `axe_activoxempleado` VALUES (18, 61, 4, 1, '', '2024-07-04 10:21:52', 1, 1, '2024-07-04 10:21:52');
INSERT INTO `axe_activoxempleado` VALUES (19, 5, 18, 25, 'Se entrego activo ', '2024-09-27 13:54:54', 1, 1, '2024-09-27 13:54:54');
INSERT INTO `axe_activoxempleado` VALUES (20, 86, 2, 93, '', '2024-10-23 11:13:19', 0, 1, '2024-10-23 11:14:36');
INSERT INTO `axe_activoxempleado` VALUES (21, 86, 2, 16, '', '2024-10-23 11:14:36', 1, 1, '2024-10-23 11:14:36');
INSERT INTO `axe_activoxempleado` VALUES (22, 150, 13, 8, '', '2024-10-23 11:31:07', 0, 1, '2024-10-23 11:31:50');
INSERT INTO `axe_activoxempleado` VALUES (23, 150, 2, 16, '', '2024-10-23 11:31:50', 0, 1, '2024-12-17 14:14:56');
INSERT INTO `axe_activoxempleado` VALUES (24, 161, 13, 8, '', '2024-12-10 15:22:59', 0, 1, '2024-12-10 15:24:28');
INSERT INTO `axe_activoxempleado` VALUES (25, 161, 12, 82, '', '2024-12-10 15:24:28', 1, 1, '2024-12-10 15:24:28');
INSERT INTO `axe_activoxempleado` VALUES (26, 114, 2, 16, '', '2024-12-16 14:08:56', 1, 1, '2024-12-17 14:08:56');
INSERT INTO `axe_activoxempleado` VALUES (27, 115, 2, 16, '', '2024-12-16 14:08:56', 1, 1, '2024-12-17 14:08:56');
INSERT INTO `axe_activoxempleado` VALUES (28, 150, 2, 93, '', '2024-12-17 14:14:56', 1, 1, '2024-12-17 14:14:56');
INSERT INTO `axe_activoxempleado` VALUES (29, 68, 7, 81, '', '2025-01-22 19:06:44', 1, 1, '2025-01-22 19:06:44');
INSERT INTO `axe_activoxempleado` VALUES (30, 119, 7, 81, '', '2025-01-22 19:06:44', 1, 1, '2025-01-22 19:06:44');

-- ----------------------------
-- Table structure for axe_anexoxempleado
-- ----------------------------
CREATE TABLE `axe_anexoxempleado`  (
  `axe_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Id de Anexo de Empleado',
  `axe_id_anx` int(11) NULL DEFAULT NULL,
  `axe_id_emp` int(11) NULL DEFAULT NULL,
  `axe_estado` tinyint(4) NULL DEFAULT NULL,
  `axe_usu_mod` int(11) NULL DEFAULT NULL,
  `axe_fecha_mod` datetime NULL DEFAULT NULL,
  PRIMARY KEY (`axe_id`) USING BTREE,
  INDEX `fk_axe_id_anx`(`axe_id_anx` ASC) USING BTREE,
  INDEX `fk_axe_id_emp`(`axe_id_emp` ASC) USING BTREE,
  CONSTRAINT `fk_axe_id_anx` FOREIGN KEY (`axe_id_anx`) REFERENCES `anx_anexo` (`anx_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_axe_id_emp` FOREIGN KEY (`axe_id_emp`) REFERENCES `emp_empleado` (`emp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 210 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axe_anexoxempleado
-- ----------------------------
INSERT INTO `axe_anexoxempleado` VALUES (1, 4, 1, 1, 1, '2019-07-10 09:35:00');
INSERT INTO `axe_anexoxempleado` VALUES (9, 14, 74, 1, 5, '2019-09-25 09:10:46');
INSERT INTO `axe_anexoxempleado` VALUES (10, 18, 70, 1, 5, '2019-10-08 19:13:09');
INSERT INTO `axe_anexoxempleado` VALUES (13, 21, 35, 1, 5, '2019-10-22 14:42:28');
INSERT INTO `axe_anexoxempleado` VALUES (14, 22, 2, 1, 5, '2020-05-16 11:19:55');
INSERT INTO `axe_anexoxempleado` VALUES (19, 27, 2, 1, 5, '2020-05-18 13:13:28');
INSERT INTO `axe_anexoxempleado` VALUES (20, 28, 2, 1, 5, '2020-05-18 13:13:28');
INSERT INTO `axe_anexoxempleado` VALUES (21, 29, 2, 1, 5, '2020-05-18 13:13:28');
INSERT INTO `axe_anexoxempleado` VALUES (22, 30, 2, 1, 5, '2020-05-18 13:13:28');
INSERT INTO `axe_anexoxempleado` VALUES (23, 31, 4, 1, 5, '2020-05-18 14:13:59');
INSERT INTO `axe_anexoxempleado` VALUES (24, 32, 4, 1, 5, '2020-05-18 14:13:59');
INSERT INTO `axe_anexoxempleado` VALUES (25, 33, 4, 1, 5, '2020-05-18 14:13:59');
INSERT INTO `axe_anexoxempleado` VALUES (26, 34, 4, 1, 5, '2020-05-18 14:13:59');
INSERT INTO `axe_anexoxempleado` VALUES (27, 35, 4, 1, 5, '2020-05-18 14:13:59');
INSERT INTO `axe_anexoxempleado` VALUES (28, 36, 4, 1, 5, '2020-05-18 14:13:59');
INSERT INTO `axe_anexoxempleado` VALUES (29, 37, 5, 1, 5, '2020-05-18 14:33:27');
INSERT INTO `axe_anexoxempleado` VALUES (30, 38, 5, 1, 5, '2020-05-18 14:33:27');
INSERT INTO `axe_anexoxempleado` VALUES (31, 39, 5, 1, 5, '2020-05-18 14:33:27');
INSERT INTO `axe_anexoxempleado` VALUES (32, 40, 6, 1, 5, '2020-05-18 15:00:01');
INSERT INTO `axe_anexoxempleado` VALUES (33, 41, 6, 1, 5, '2020-05-18 15:00:01');
INSERT INTO `axe_anexoxempleado` VALUES (34, 42, 6, 1, 5, '2020-05-18 15:00:01');
INSERT INTO `axe_anexoxempleado` VALUES (35, 43, 6, 1, 5, '2020-05-18 15:00:01');
INSERT INTO `axe_anexoxempleado` VALUES (36, 44, 8, 1, 5, '2020-05-18 16:02:27');
INSERT INTO `axe_anexoxempleado` VALUES (37, 45, 8, 1, 5, '2020-05-18 16:02:27');
INSERT INTO `axe_anexoxempleado` VALUES (38, 46, 8, 1, 5, '2020-05-18 16:02:27');
INSERT INTO `axe_anexoxempleado` VALUES (39, 47, 9, 1, 5, '2020-05-18 16:16:13');
INSERT INTO `axe_anexoxempleado` VALUES (40, 48, 9, 1, 5, '2020-05-18 16:16:13');
INSERT INTO `axe_anexoxempleado` VALUES (41, 49, 9, 1, 5, '2020-05-18 16:16:13');
INSERT INTO `axe_anexoxempleado` VALUES (42, 50, 9, 1, 5, '2020-05-18 16:16:13');
INSERT INTO `axe_anexoxempleado` VALUES (43, 51, 10, 1, 5, '2020-05-18 16:34:09');
INSERT INTO `axe_anexoxempleado` VALUES (44, 52, 10, 1, 5, '2020-05-18 16:34:09');
INSERT INTO `axe_anexoxempleado` VALUES (45, 53, 10, 1, 5, '2020-05-18 16:34:09');
INSERT INTO `axe_anexoxempleado` VALUES (46, 54, 10, 1, 5, '2020-05-18 16:34:09');
INSERT INTO `axe_anexoxempleado` VALUES (47, 55, 11, 1, 5, '2020-05-18 16:41:10');
INSERT INTO `axe_anexoxempleado` VALUES (48, 56, 11, 1, 5, '2020-05-18 16:41:10');
INSERT INTO `axe_anexoxempleado` VALUES (49, 57, 15, 1, 5, '2020-05-22 14:24:45');
INSERT INTO `axe_anexoxempleado` VALUES (50, 58, 15, 1, 5, '2020-05-22 14:24:45');
INSERT INTO `axe_anexoxempleado` VALUES (51, 59, 15, 1, 5, '2020-05-22 14:24:45');
INSERT INTO `axe_anexoxempleado` VALUES (52, 60, 15, 1, 5, '2020-05-22 14:24:45');
INSERT INTO `axe_anexoxempleado` VALUES (53, 61, 18, 1, 5, '2020-05-22 14:32:24');
INSERT INTO `axe_anexoxempleado` VALUES (54, 62, 18, 1, 5, '2020-05-22 14:32:24');
INSERT INTO `axe_anexoxempleado` VALUES (55, 63, 18, 1, 5, '2020-05-22 14:32:24');
INSERT INTO `axe_anexoxempleado` VALUES (56, 64, 18, 1, 5, '2020-05-22 14:32:24');
INSERT INTO `axe_anexoxempleado` VALUES (57, 65, 22, 1, 5, '2020-05-22 14:38:25');
INSERT INTO `axe_anexoxempleado` VALUES (58, 66, 22, 1, 5, '2020-05-22 14:38:25');
INSERT INTO `axe_anexoxempleado` VALUES (59, 67, 22, 1, 5, '2020-05-22 14:38:25');
INSERT INTO `axe_anexoxempleado` VALUES (60, 68, 22, 1, 5, '2020-05-22 14:38:25');
INSERT INTO `axe_anexoxempleado` VALUES (61, 69, 22, 1, 5, '2020-05-22 14:38:25');
INSERT INTO `axe_anexoxempleado` VALUES (67, 75, 23, 1, 5, '2020-05-22 14:50:13');
INSERT INTO `axe_anexoxempleado` VALUES (68, 76, 23, 1, 5, '2020-05-22 14:50:13');
INSERT INTO `axe_anexoxempleado` VALUES (69, 77, 23, 1, 5, '2020-05-22 14:50:13');
INSERT INTO `axe_anexoxempleado` VALUES (70, 78, 23, 1, 5, '2020-05-22 14:50:13');
INSERT INTO `axe_anexoxempleado` VALUES (71, 79, 24, 1, 5, '2020-05-22 15:04:44');
INSERT INTO `axe_anexoxempleado` VALUES (72, 80, 24, 1, 5, '2020-05-22 15:04:44');
INSERT INTO `axe_anexoxempleado` VALUES (73, 81, 24, 1, 5, '2020-05-22 15:04:44');
INSERT INTO `axe_anexoxempleado` VALUES (74, 82, 24, 1, 5, '2020-05-22 15:04:44');
INSERT INTO `axe_anexoxempleado` VALUES (75, 83, 24, 1, 5, '2020-05-22 15:04:44');
INSERT INTO `axe_anexoxempleado` VALUES (76, 84, 25, 1, 5, '2020-05-22 15:12:35');
INSERT INTO `axe_anexoxempleado` VALUES (77, 85, 25, 1, 5, '2020-05-22 15:12:35');
INSERT INTO `axe_anexoxempleado` VALUES (78, 86, 25, 1, 5, '2020-05-22 15:12:35');
INSERT INTO `axe_anexoxempleado` VALUES (79, 87, 25, 1, 5, '2020-05-22 15:12:35');
INSERT INTO `axe_anexoxempleado` VALUES (80, 88, 26, 1, 5, '2020-05-22 15:56:18');
INSERT INTO `axe_anexoxempleado` VALUES (81, 89, 26, 1, 5, '2020-05-22 15:56:18');
INSERT INTO `axe_anexoxempleado` VALUES (82, 90, 26, 1, 5, '2020-05-22 15:56:18');
INSERT INTO `axe_anexoxempleado` VALUES (83, 91, 26, 1, 5, '2020-05-22 15:56:18');
INSERT INTO `axe_anexoxempleado` VALUES (84, 92, 27, 1, 5, '2020-05-22 15:59:56');
INSERT INTO `axe_anexoxempleado` VALUES (85, 93, 27, 1, 5, '2020-05-22 15:59:56');
INSERT INTO `axe_anexoxempleado` VALUES (86, 94, 27, 1, 5, '2020-05-22 15:59:56');
INSERT INTO `axe_anexoxempleado` VALUES (87, 95, 27, 1, 5, '2020-05-22 15:59:56');
INSERT INTO `axe_anexoxempleado` VALUES (88, 96, 28, 1, 5, '2020-05-22 16:05:30');
INSERT INTO `axe_anexoxempleado` VALUES (89, 97, 28, 1, 5, '2020-05-22 16:05:30');
INSERT INTO `axe_anexoxempleado` VALUES (90, 98, 28, 1, 5, '2020-05-22 16:05:30');
INSERT INTO `axe_anexoxempleado` VALUES (91, 99, 28, 1, 5, '2020-05-22 16:05:30');
INSERT INTO `axe_anexoxempleado` VALUES (92, 100, 29, 1, 5, '2020-05-22 16:23:06');
INSERT INTO `axe_anexoxempleado` VALUES (93, 101, 29, 1, 5, '2020-05-22 16:23:06');
INSERT INTO `axe_anexoxempleado` VALUES (94, 102, 29, 1, 5, '2020-05-22 16:23:06');
INSERT INTO `axe_anexoxempleado` VALUES (95, 103, 29, 1, 5, '2020-05-22 16:23:06');
INSERT INTO `axe_anexoxempleado` VALUES (96, 104, 30, 1, 5, '2020-05-22 16:30:31');
INSERT INTO `axe_anexoxempleado` VALUES (97, 105, 30, 1, 5, '2020-05-22 16:30:31');
INSERT INTO `axe_anexoxempleado` VALUES (98, 106, 30, 1, 5, '2020-05-22 16:30:31');
INSERT INTO `axe_anexoxempleado` VALUES (99, 107, 30, 1, 5, '2020-05-22 16:30:31');
INSERT INTO `axe_anexoxempleado` VALUES (100, 108, 31, 1, 5, '2020-05-22 16:37:01');
INSERT INTO `axe_anexoxempleado` VALUES (101, 109, 31, 1, 5, '2020-05-22 16:37:01');
INSERT INTO `axe_anexoxempleado` VALUES (102, 110, 31, 1, 5, '2020-05-22 16:37:01');
INSERT INTO `axe_anexoxempleado` VALUES (103, 111, 31, 1, 5, '2020-05-22 16:37:01');
INSERT INTO `axe_anexoxempleado` VALUES (104, 112, 32, 1, 5, '2020-05-23 11:41:45');
INSERT INTO `axe_anexoxempleado` VALUES (105, 113, 32, 1, 5, '2020-05-23 11:41:45');
INSERT INTO `axe_anexoxempleado` VALUES (106, 114, 32, 1, 5, '2020-05-23 11:41:45');
INSERT INTO `axe_anexoxempleado` VALUES (107, 115, 32, 1, 5, '2020-05-23 11:41:45');
INSERT INTO `axe_anexoxempleado` VALUES (108, 116, 33, 1, 5, '2020-05-23 11:45:05');
INSERT INTO `axe_anexoxempleado` VALUES (109, 117, 33, 1, 5, '2020-05-23 11:45:05');
INSERT INTO `axe_anexoxempleado` VALUES (110, 118, 33, 1, 5, '2020-05-23 11:45:05');
INSERT INTO `axe_anexoxempleado` VALUES (111, 119, 33, 1, 5, '2020-05-23 11:45:05');
INSERT INTO `axe_anexoxempleado` VALUES (112, 120, 34, 1, 5, '2020-05-23 11:47:54');
INSERT INTO `axe_anexoxempleado` VALUES (113, 121, 34, 1, 5, '2020-05-23 11:47:54');
INSERT INTO `axe_anexoxempleado` VALUES (114, 122, 34, 1, 5, '2020-05-23 11:47:54');
INSERT INTO `axe_anexoxempleado` VALUES (115, 123, 34, 1, 5, '2020-05-23 11:47:54');
INSERT INTO `axe_anexoxempleado` VALUES (116, 124, 35, 1, 5, '2020-05-23 11:50:47');
INSERT INTO `axe_anexoxempleado` VALUES (117, 125, 35, 1, 5, '2020-05-23 11:50:47');
INSERT INTO `axe_anexoxempleado` VALUES (118, 126, 35, 1, 5, '2020-05-23 11:50:47');
INSERT INTO `axe_anexoxempleado` VALUES (119, 127, 35, 1, 5, '2020-05-23 11:50:47');
INSERT INTO `axe_anexoxempleado` VALUES (120, 128, 36, 1, 5, '2020-05-23 11:53:27');
INSERT INTO `axe_anexoxempleado` VALUES (121, 129, 36, 1, 5, '2020-05-23 11:53:27');
INSERT INTO `axe_anexoxempleado` VALUES (122, 130, 36, 1, 5, '2020-05-23 11:53:27');
INSERT INTO `axe_anexoxempleado` VALUES (123, 131, 36, 1, 5, '2020-05-23 11:53:27');
INSERT INTO `axe_anexoxempleado` VALUES (124, 132, 38, 1, 5, '2020-05-23 11:55:34');
INSERT INTO `axe_anexoxempleado` VALUES (125, 133, 38, 1, 5, '2020-05-23 11:55:34');
INSERT INTO `axe_anexoxempleado` VALUES (126, 134, 38, 1, 5, '2020-05-23 11:55:34');
INSERT INTO `axe_anexoxempleado` VALUES (127, 135, 39, 1, 5, '2020-05-23 12:01:12');
INSERT INTO `axe_anexoxempleado` VALUES (128, 136, 39, 1, 5, '2020-05-23 12:01:12');
INSERT INTO `axe_anexoxempleado` VALUES (129, 137, 39, 1, 5, '2020-05-23 12:01:12');
INSERT INTO `axe_anexoxempleado` VALUES (130, 138, 39, 1, 5, '2020-05-23 12:01:12');
INSERT INTO `axe_anexoxempleado` VALUES (131, 139, 39, 1, 5, '2020-05-23 12:01:12');
INSERT INTO `axe_anexoxempleado` VALUES (132, 140, 40, 1, 5, '2020-05-23 12:06:01');
INSERT INTO `axe_anexoxempleado` VALUES (133, 141, 40, 1, 5, '2020-05-23 12:06:01');
INSERT INTO `axe_anexoxempleado` VALUES (134, 142, 40, 1, 5, '2020-05-23 12:06:01');
INSERT INTO `axe_anexoxempleado` VALUES (135, 143, 40, 1, 5, '2020-05-23 12:06:01');
INSERT INTO `axe_anexoxempleado` VALUES (136, 144, 41, 1, 5, '2020-05-23 12:08:45');
INSERT INTO `axe_anexoxempleado` VALUES (137, 145, 41, 1, 5, '2020-05-23 12:08:45');
INSERT INTO `axe_anexoxempleado` VALUES (138, 146, 41, 1, 5, '2020-05-23 12:08:45');
INSERT INTO `axe_anexoxempleado` VALUES (139, 147, 41, 1, 5, '2020-05-23 12:08:45');
INSERT INTO `axe_anexoxempleado` VALUES (140, 148, 41, 1, 5, '2020-05-23 12:08:45');
INSERT INTO `axe_anexoxempleado` VALUES (141, 149, 42, 1, 5, '2020-05-23 12:11:05');
INSERT INTO `axe_anexoxempleado` VALUES (142, 150, 42, 1, 5, '2020-05-23 12:11:05');
INSERT INTO `axe_anexoxempleado` VALUES (143, 151, 42, 1, 5, '2020-05-23 12:11:05');
INSERT INTO `axe_anexoxempleado` VALUES (144, 152, 42, 1, 5, '2020-05-23 12:11:05');
INSERT INTO `axe_anexoxempleado` VALUES (145, 153, 43, 1, 5, '2020-05-23 12:14:18');
INSERT INTO `axe_anexoxempleado` VALUES (146, 154, 43, 1, 5, '2020-05-23 12:14:18');
INSERT INTO `axe_anexoxempleado` VALUES (147, 155, 43, 1, 5, '2020-05-23 12:14:18');
INSERT INTO `axe_anexoxempleado` VALUES (148, 156, 43, 1, 5, '2020-05-23 12:14:18');
INSERT INTO `axe_anexoxempleado` VALUES (149, 157, 44, 1, 5, '2020-05-23 12:16:28');
INSERT INTO `axe_anexoxempleado` VALUES (150, 158, 44, 1, 5, '2020-05-23 12:16:28');
INSERT INTO `axe_anexoxempleado` VALUES (151, 159, 44, 1, 5, '2020-05-23 12:16:28');
INSERT INTO `axe_anexoxempleado` VALUES (152, 160, 44, 1, 5, '2020-05-23 12:16:28');
INSERT INTO `axe_anexoxempleado` VALUES (153, 161, 45, 1, 5, '2020-05-23 12:18:51');
INSERT INTO `axe_anexoxempleado` VALUES (154, 162, 45, 1, 5, '2020-05-23 12:18:51');
INSERT INTO `axe_anexoxempleado` VALUES (155, 163, 45, 1, 5, '2020-05-23 12:18:51');
INSERT INTO `axe_anexoxempleado` VALUES (156, 164, 45, 1, 5, '2020-05-23 12:18:51');
INSERT INTO `axe_anexoxempleado` VALUES (157, 165, 46, 1, 5, '2020-05-23 12:22:36');
INSERT INTO `axe_anexoxempleado` VALUES (158, 166, 46, 1, 5, '2020-05-23 12:22:36');
INSERT INTO `axe_anexoxempleado` VALUES (159, 167, 46, 1, 5, '2020-05-23 12:22:36');
INSERT INTO `axe_anexoxempleado` VALUES (160, 168, 49, 1, 5, '2020-05-24 10:49:15');
INSERT INTO `axe_anexoxempleado` VALUES (161, 169, 49, 1, 5, '2020-05-24 10:49:15');
INSERT INTO `axe_anexoxempleado` VALUES (162, 170, 49, 1, 5, '2020-05-24 10:49:15');
INSERT INTO `axe_anexoxempleado` VALUES (163, 171, 49, 1, 5, '2020-05-24 10:49:15');
INSERT INTO `axe_anexoxempleado` VALUES (164, 172, 50, 1, 5, '2020-05-24 10:54:14');
INSERT INTO `axe_anexoxempleado` VALUES (165, 173, 52, 1, 5, '2020-05-24 11:00:09');
INSERT INTO `axe_anexoxempleado` VALUES (166, 174, 52, 1, 5, '2020-05-24 11:00:09');
INSERT INTO `axe_anexoxempleado` VALUES (167, 175, 52, 1, 5, '2020-05-24 11:00:09');
INSERT INTO `axe_anexoxempleado` VALUES (168, 176, 52, 1, 5, '2020-05-24 11:00:09');
INSERT INTO `axe_anexoxempleado` VALUES (169, 177, 53, 1, 5, '2020-05-24 11:00:42');
INSERT INTO `axe_anexoxempleado` VALUES (170, 178, 53, 1, 5, '2020-05-24 11:00:42');
INSERT INTO `axe_anexoxempleado` VALUES (171, 179, 53, 1, 5, '2020-05-24 11:00:42');
INSERT INTO `axe_anexoxempleado` VALUES (172, 180, 54, 1, 5, '2020-05-24 11:01:24');
INSERT INTO `axe_anexoxempleado` VALUES (173, 181, 54, 1, 5, '2020-05-24 11:01:24');
INSERT INTO `axe_anexoxempleado` VALUES (174, 182, 54, 1, 5, '2020-05-24 11:01:24');
INSERT INTO `axe_anexoxempleado` VALUES (175, 183, 54, 1, 5, '2020-05-24 11:01:24');
INSERT INTO `axe_anexoxempleado` VALUES (176, 184, 54, 1, 5, '2020-05-24 11:01:24');
INSERT INTO `axe_anexoxempleado` VALUES (177, 185, 55, 1, 5, '2020-05-24 11:01:59');
INSERT INTO `axe_anexoxempleado` VALUES (178, 186, 55, 1, 5, '2020-05-24 11:01:59');
INSERT INTO `axe_anexoxempleado` VALUES (179, 187, 55, 1, 5, '2020-05-24 11:01:59');
INSERT INTO `axe_anexoxempleado` VALUES (180, 188, 59, 1, 5, '2020-05-24 11:03:25');
INSERT INTO `axe_anexoxempleado` VALUES (181, 189, 59, 1, 5, '2020-05-24 11:03:25');
INSERT INTO `axe_anexoxempleado` VALUES (182, 190, 59, 1, 5, '2020-05-24 11:03:25');
INSERT INTO `axe_anexoxempleado` VALUES (183, 191, 37, 1, 5, '2020-05-24 12:10:13');
INSERT INTO `axe_anexoxempleado` VALUES (184, 192, 37, 1, 5, '2020-05-24 12:10:13');
INSERT INTO `axe_anexoxempleado` VALUES (185, 193, 37, 1, 5, '2020-05-24 12:10:13');
INSERT INTO `axe_anexoxempleado` VALUES (186, 194, 37, 1, 5, '2020-05-24 12:10:13');
INSERT INTO `axe_anexoxempleado` VALUES (187, 195, 70, 1, 5, '2020-05-24 16:56:03');
INSERT INTO `axe_anexoxempleado` VALUES (188, 196, 70, 1, 5, '2020-05-24 16:56:03');
INSERT INTO `axe_anexoxempleado` VALUES (189, 197, 70, 1, 5, '2020-05-24 16:56:03');
INSERT INTO `axe_anexoxempleado` VALUES (190, 198, 72, 1, 5, '2020-05-24 16:57:52');
INSERT INTO `axe_anexoxempleado` VALUES (191, 199, 72, 1, 5, '2020-05-24 16:57:52');
INSERT INTO `axe_anexoxempleado` VALUES (192, 200, 72, 1, 5, '2020-05-24 16:57:52');
INSERT INTO `axe_anexoxempleado` VALUES (193, 201, 72, 1, 5, '2020-05-24 16:57:52');
INSERT INTO `axe_anexoxempleado` VALUES (194, 202, 72, 1, 5, '2020-05-24 16:57:52');
INSERT INTO `axe_anexoxempleado` VALUES (195, 203, 76, 1, 5, '2020-05-24 16:58:58');
INSERT INTO `axe_anexoxempleado` VALUES (196, 204, 76, 1, 5, '2020-05-24 16:58:58');
INSERT INTO `axe_anexoxempleado` VALUES (199, 207, 80, 1, 5, '2020-05-24 17:03:36');
INSERT INTO `axe_anexoxempleado` VALUES (200, 208, 80, 1, 5, '2020-05-24 17:03:36');
INSERT INTO `axe_anexoxempleado` VALUES (201, 209, 77, 1, 5, '2020-06-12 11:33:33');
INSERT INTO `axe_anexoxempleado` VALUES (202, 210, 77, 1, 5, '2020-06-12 11:33:33');
INSERT INTO `axe_anexoxempleado` VALUES (203, 211, 77, 1, 5, '2020-06-12 11:33:33');
INSERT INTO `axe_anexoxempleado` VALUES (204, 212, 77, 1, 5, '2020-06-12 11:34:45');
INSERT INTO `axe_anexoxempleado` VALUES (205, 213, 31, 1, 1, '2024-01-10 09:54:56');
INSERT INTO `axe_anexoxempleado` VALUES (206, 214, 91, 1, 1, '2024-01-10 10:53:34');
INSERT INTO `axe_anexoxempleado` VALUES (207, 215, 92, 1, 1, '2024-01-17 08:50:04');
INSERT INTO `axe_anexoxempleado` VALUES (208, 216, 92, 1, 1, '2024-01-17 08:50:05');
INSERT INTO `axe_anexoxempleado` VALUES (209, 217, 92, 1, 1, '2024-01-17 08:50:05');

-- ----------------------------
-- Table structure for axf_accionesxflujo
-- ----------------------------
CREATE TABLE `axf_accionesxflujo`  (
  `axf_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave principal - acción por flujo',
  `axf_id_flu` int(11) NOT NULL COMMENT 'codigo de flujo',
  `axf_id_acc` int(11) NOT NULL COMMENT 'llave principal - acción',
  `axf_estado` int(11) NOT NULL COMMENT 'estado 1= activo, 0 = inactivo',
  `axf_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `axf_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `axf_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `axf_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`axf_id`) USING BTREE,
  INDEX `fk_axf_id_acc`(`axf_id_acc` ASC) USING BTREE,
  INDEX `fk_axf_id_flu`(`axf_id_flu` ASC) USING BTREE,
  CONSTRAINT `fk_axf_id_acc` FOREIGN KEY (`axf_id_acc`) REFERENCES `acc_accion` (`acc_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_axf_id_flu` FOREIGN KEY (`axf_id_flu`) REFERENCES `flu_flujo` (`flu_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 83 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'determinar que acciones pertenecen a que flujo' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axf_accionesxflujo
-- ----------------------------
INSERT INTO `axf_accionesxflujo` VALUES (1, 3, 1, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (2, 3, 2, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (3, 3, 3, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (4, 3, 4, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (5, 3, 5, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (6, 3, 6, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (7, 3, 7, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (8, 3, 8, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (9, 3, 9, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (10, 3, 10, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (11, 3, 11, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (12, 3, 12, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (13, 3, 13, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (14, 3, 14, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (15, 3, 15, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (16, 3, 16, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (17, 3, 17, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (18, 3, 18, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (19, 3, 20, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (20, 3, 21, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (21, 3, 22, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (22, 3, 23, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (23, 3, 24, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (24, 3, 25, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (25, 2, 1, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (26, 2, 2, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (27, 2, 3, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (28, 2, 4, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (29, 2, 5, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (30, 2, 6, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (31, 2, 7, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (32, 2, 8, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (33, 2, 9, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (34, 2, 10, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (35, 2, 11, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (36, 2, 12, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (37, 2, 13, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (38, 2, 14, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (39, 2, 15, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (40, 2, 16, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (41, 2, 17, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (42, 2, 18, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (43, 2, 20, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (44, 2, 21, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (45, 2, 22, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (46, 2, 23, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (47, 2, 24, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (48, 2, 25, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (49, 1, 1, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (50, 1, 2, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (51, 1, 3, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (52, 1, 4, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (53, 1, 5, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (54, 1, 6, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (55, 1, 7, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (56, 1, 8, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (57, 1, 9, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (58, 1, 10, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (59, 1, 11, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (60, 1, 12, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (61, 1, 13, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (62, 1, 14, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (63, 1, 15, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (64, 1, 16, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (65, 1, 17, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (66, 1, 18, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (67, 1, 20, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (68, 1, 21, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (69, 1, 22, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (70, 1, 23, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (71, 1, 24, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (72, 1, 25, 1, 1, 1, '2018-08-11 11:26:49', '2018-08-11 11:26:51');
INSERT INTO `axf_accionesxflujo` VALUES (73, 4, 30, 1, 1, 1, '2019-07-23 00:00:00', '2019-07-23 00:00:00');
INSERT INTO `axf_accionesxflujo` VALUES (74, 4, 31, 1, 1, 1, '2019-07-23 00:00:00', '2019-07-23 00:00:00');
INSERT INTO `axf_accionesxflujo` VALUES (75, 4, 32, 1, 1, 1, '2019-07-23 00:00:00', '2019-07-23 00:00:00');
INSERT INTO `axf_accionesxflujo` VALUES (76, 4, 33, 1, 1, 1, '2019-07-23 00:00:00', '2019-07-23 00:00:00');
INSERT INTO `axf_accionesxflujo` VALUES (77, 4, 34, 1, 1, 1, '2019-07-23 00:00:00', '2019-07-23 00:00:00');
INSERT INTO `axf_accionesxflujo` VALUES (78, 4, 1, 1, 1, 1, '2019-07-23 00:00:00', '2019-07-23 00:00:00');
INSERT INTO `axf_accionesxflujo` VALUES (79, 4, 12, 1, 1, 1, '2019-07-23 00:00:00', '2019-07-23 00:00:00');
INSERT INTO `axf_accionesxflujo` VALUES (80, 4, 15, 1, 1, 1, '2019-07-23 00:00:00', '2019-07-23 00:00:00');
INSERT INTO `axf_accionesxflujo` VALUES (81, 4, 24, 1, 1, 1, '2019-07-23 00:00:00', '2019-07-23 00:00:00');
INSERT INTO `axf_accionesxflujo` VALUES (82, 3, 35, 1, 1, 1, '2021-10-20 10:20:40', '2021-10-20 10:20:40');

-- ----------------------------
-- Table structure for axg_anexo_ingreso
-- ----------------------------
CREATE TABLE `axg_anexo_ingreso`  (
  `axg_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de anexos por Ingreso',
  `axg_id_inn` int(11) NOT NULL COMMENT 'Identificador Unico',
  `axg_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre del anexo',
  `axg_url` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Url de la ubicación del anexo',
  `axg_estado` int(11) NOT NULL COMMENT 'estado de registro',
  `axg_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `axg_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  `axg_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `axg_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`axg_id`) USING BTREE,
  INDEX `fk_axg_id_inn`(`axg_id_inn` ASC) USING BTREE,
  CONSTRAINT `fk_axg_id_inn` FOREIGN KEY (`axg_id_inn`) REFERENCES `inn_ingreso` (`inn_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Anexo por Ingreso' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axg_anexo_ingreso
-- ----------------------------

-- ----------------------------
-- Table structure for axh_anexo_ticket_heldesk
-- ----------------------------
CREATE TABLE `axh_anexo_ticket_heldesk`  (
  `axh_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal - Anexos por Ticket',
  `axh_id_tkh` int(11) NOT NULL COMMENT 'Llave principal - Ticket',
  `axh_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de anexo',
  `axh_url` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'URL de anexo',
  `axh_estado` tinyint(4) NOT NULL COMMENT 'Estado de registro',
  `axh_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoría',
  `axh_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `axh_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoría',
  `axh_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`axh_id`) USING BTREE,
  INDEX `fk_axh_id_tkh`(`axh_id_tkh` ASC) USING BTREE,
  CONSTRAINT `fk_axh_id_tkh` FOREIGN KEY (`axh_id_tkh`) REFERENCES `tkh_ticket_helpdesk` (`tkh_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Anexos por incidencia' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axh_anexo_ticket_heldesk
-- ----------------------------

-- ----------------------------
-- Table structure for axi_anexoxincidencia
-- ----------------------------
CREATE TABLE `axi_anexoxincidencia`  (
  `axi_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal - Anexos por Incidencia',
  `axi_id_inc` int(11) NOT NULL COMMENT 'Llave principal - Incidencias',
  `axi_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de anexo',
  `axi_url` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'URL de anexo',
  `axi_estado` tinyint(4) NOT NULL COMMENT 'Estado de registro',
  `axi_fecha_mod` datetime NOT NULL COMMENT 'Auditoría',
  `axi_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `axi_usu_mod` int(11) NOT NULL COMMENT 'Auditoría',
  `axi_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`axi_id`) USING BTREE,
  INDEX `fk_axi_id_inc`(`axi_id_inc` ASC) USING BTREE,
  CONSTRAINT `fk_axi_id_inc` FOREIGN KEY (`axi_id_inc`) REFERENCES `inc_incidencia` (`inc_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Anexos por incidencia' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axi_anexoxincidencia
-- ----------------------------
INSERT INTO `axi_anexoxincidencia` VALUES (1, 2, 'EVANTO', 'uploads/anx_pizarra/1707509223_EVANTO.PNG', 1, '2024-02-09 14:07:03', '2024-02-09 14:07:03', 1, 1);
INSERT INTO `axi_anexoxincidencia` VALUES (2, 3, 'tienda_online', 'uploads/anx_pizarra/1707509810_tienda_online.jpg', 1, '2024-02-09 14:16:50', '2024-02-09 14:16:50', 1, 1);
INSERT INTO `axi_anexoxincidencia` VALUES (3, 5, '0d784_listo', 'uploads/anx_pizarra/1707510539_0d784_listo.jpg', 1, '2024-02-09 14:28:59', '2024-02-09 14:28:59', 1, 1);
INSERT INTO `axi_anexoxincidencia` VALUES (4, 6, 'emblema_crs', 'uploads/anx_pizarra/1723813086_emblema_crs.png', 1, '2024-08-16 06:58:06', '2024-08-16 06:58:06', 1, 1);

-- ----------------------------
-- Table structure for axl_anexoxalumno
-- ----------------------------
CREATE TABLE `axl_anexoxalumno`  (
  `axl_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave primaria',
  `axl_id_alm` int(11) NOT NULL COMMENT 'llave primaria de Alumnos',
  `axl_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'nombre del anexo',
  `axl_url` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'url del anexo (ubicacion del archivo)',
  `axl_img_perfil` tinyint(4) NOT NULL COMMENT '1=es img perfil, 0=no es img de perfil',
  `axl_estado` tinyint(4) NOT NULL COMMENT 'estado del registro',
  `axl_usu_mod` int(11) NOT NULL COMMENT 'auditoria',
  `axl_fecha_mod` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`axl_id`) USING BTREE,
  INDEX `fk_axl_id_alm`(`axl_id_alm` ASC) USING BTREE,
  CONSTRAINT `fk_axl_id_alm` FOREIGN KEY (`axl_id_alm`) REFERENCES `alm_alumno` (`alm_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'anexos por alumno' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axl_anexoxalumno
-- ----------------------------

-- ----------------------------
-- Table structure for axm_articulo_matxarticulo_ord
-- ----------------------------
CREATE TABLE `axm_articulo_matxarticulo_ord`  (
  `axm_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Codigo de relacion aarticuloxarticulo_orden',
  `axm_id_axo` int(11) NOT NULL COMMENT 'Codigo de articulo primario',
  `axm_id_cva` int(11) NULL DEFAULT NULL COMMENT 'llave principal de conversión artículo',
  `axm_id_prv` int(11) NULL DEFAULT NULL COMMENT 'Llave primaria de proveedor',
  `axm_id_etp` int(11) NULL DEFAULT NULL COMMENT 'Codigo de etapa',
  `axm_id_art_materia` int(11) NOT NULL COMMENT 'Codigo de materia prima',
  `axm_cantidad` decimal(19, 6) NOT NULL COMMENT 'Cantidad de  articulo para materia pria',
  `axm_precio` decimal(19, 6) NOT NULL COMMENT 'Precio de materia prima',
  `axm_pendiente` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Cantidad pendiente de  articulo para materia prima',
  `axm_despachada` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Cantidad de  articulo despachada para materia prima',
  `axm_estimacion_porcentaje` tinyint(4) NULL DEFAULT NULL COMMENT 'Tomado en cuenta para estimación en base a porcentaje 1= si, 0 o null=no',
  `axm_devolucion` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Cantidad de materia prima devuelta',
  `axm_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro (1:Activo, 0:Inactivo)',
  `axm_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `axm_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `axm_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `axm_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`axm_id`) USING BTREE,
  INDEX `fk_axm_id_art_materia`(`axm_id_art_materia` ASC) USING BTREE,
  INDEX `fk_axm_id_axo`(`axm_id_axo` ASC) USING BTREE,
  INDEX `fk_axm_id_cva`(`axm_id_cva` ASC) USING BTREE,
  INDEX `fk_axm_id_prv`(`axm_id_prv` ASC) USING BTREE,
  INDEX `fk_axm_id_etp`(`axm_id_etp` ASC) USING BTREE,
  CONSTRAINT `fk_axm_id_axo` FOREIGN KEY (`axm_id_axo`) REFERENCES `axo_articuloxorden` (`axo_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_axm_id_cva` FOREIGN KEY (`axm_id_cva`) REFERENCES `cva_conversion_articulo` (`cva_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_axm_id_etp` FOREIGN KEY (`axm_id_etp`) REFERENCES `etp_etapa` (`etp_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_axm_id_prv` FOREIGN KEY (`axm_id_prv`) REFERENCES `prv_proveedor` (`prv_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Materia prima por articulo orden ' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axm_articulo_matxarticulo_ord
-- ----------------------------
INSERT INTO `axm_articulo_matxarticulo_ord` VALUES (1, 85, 2373, 668, 2, 132, 50.000000, 3.500000, NULL, NULL, 0, NULL, 1, 65, '2024-10-17 18:04:59', 65, '2024-10-17 18:04:59');
INSERT INTO `axm_articulo_matxarticulo_ord` VALUES (2, 85, 2374, 669, 2, 133, 20.000000, 2.500000, NULL, NULL, 0, NULL, 1, 65, '2024-10-17 18:04:59', 65, '2024-10-17 18:04:59');
INSERT INTO `axm_articulo_matxarticulo_ord` VALUES (3, 86, 2373, 668, 2, 132, 5.000000, 3.500000, NULL, NULL, 0, NULL, 1, 1, '2024-10-23 14:58:51', 1, '2024-10-23 14:58:51');
INSERT INTO `axm_articulo_matxarticulo_ord` VALUES (4, 86, 2374, 669, 2, 133, 2.000000, 2.500000, NULL, NULL, 0, NULL, 1, 1, '2024-10-23 14:58:51', 1, '2024-10-23 14:58:51');
INSERT INTO `axm_articulo_matxarticulo_ord` VALUES (5, 87, 2374, 669, 2, 133, 10.000000, 2.500000, NULL, NULL, 0, NULL, 1, 1, '2024-10-23 16:45:38', 1, '2024-10-23 16:45:38');
INSERT INTO `axm_articulo_matxarticulo_ord` VALUES (6, 87, 2373, NULL, 8, 132, 25.000000, 3.500000, NULL, NULL, 0, NULL, 1, 1, '2024-10-23 16:45:38', 1, '2024-10-23 16:45:38');
INSERT INTO `axm_articulo_matxarticulo_ord` VALUES (7, 91, 2379, 670, 45, 138, 500.000000, 1.000000, 500.000000, 0.000000, 0, NULL, 1, 1, '2025-02-24 09:52:32', 65, '2025-02-24 10:02:22');
INSERT INTO `axm_articulo_matxarticulo_ord` VALUES (8, 91, 2380, 28, 45, 139, 300.000000, 2.000000, 300.000000, 0.000000, 0, NULL, 1, 1, '2025-02-24 09:52:32', 65, '2025-02-24 10:02:22');
INSERT INTO `axm_articulo_matxarticulo_ord` VALUES (9, 91, 2381, 670, 45, 140, 200.000000, 3.000000, 200.000000, 0.000000, 0, NULL, 1, 1, '2025-02-24 09:52:32', 65, '2025-02-24 10:02:22');

-- ----------------------------
-- Table structure for axn_anexoxcliente
-- ----------------------------
CREATE TABLE `axn_anexoxcliente`  (
  `axn_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria - anexos por cliente',
  `axn_id_anx` int(11) NOT NULL COMMENT 'Llave primaria - Anexos',
  `axn_id_cli` int(11) NOT NULL COMMENT 'Llave primaria - Clientes',
  `axn_estado` tinyint(4) NOT NULL COMMENT 'Estado de registro',
  `axn_usu_mod` int(11) NOT NULL COMMENT 'Auditoria',
  `axn_fecha_mod` datetime NOT NULL COMMENT 'Auditoria',
  `axn_usu_crea` int(11) NOT NULL COMMENT 'auditoria',
  `axn_fecha_crea` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`axn_id`) USING BTREE,
  INDEX `fk_axn_id_anx`(`axn_id_anx` ASC) USING BTREE,
  INDEX `fk_axn_id_cli`(`axn_id_cli` ASC) USING BTREE,
  CONSTRAINT `fk_axn_id_anx` FOREIGN KEY (`axn_id_anx`) REFERENCES `anx_anexo` (`anx_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_axn_id_cli` FOREIGN KEY (`axn_id_cli`) REFERENCES `cli_cliente` (`cli_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Anexo por cliente' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axn_anexoxcliente
-- ----------------------------

-- ----------------------------
-- Table structure for axo_articuloxorden
-- ----------------------------
CREATE TABLE `axo_articuloxorden`  (
  `axo_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave princpal de orden de producción por artículo',
  `axo_id_ord` int(11) NOT NULL COMMENT 'Llave principal de Orden de producción',
  `axo_id_art` int(11) NOT NULL COMMENT 'Llave principal de Artículo',
  `axo_id_axc` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de artículo por cotización.',
  `axo_id_cva` int(11) NULL DEFAULT NULL COMMENT 'llave principal de conversión artículo',
  `axo_id_rea` int(11) NULL DEFAULT NULL COMMENT 'Llave Principal - Receta por Articulo',
  `axo_descripcion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'descripcion del producto',
  `axo_cantidad` decimal(19, 6) NOT NULL COMMENT 'Cantidad',
  `axo_total_materia_prima` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Total invertido en materia prima',
  `axo_total_mano_obra` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Total invertido en mano de obra',
  `axo_total_gastos` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Total invertidoen en gastos estimación',
  `axo_total` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Total presupuestado',
  `axo_observacion_presupuesto` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Observación del presupuesto',
  `axo_fecha_ejecucion` datetime NULL DEFAULT NULL COMMENT 'Fecha de ejecucion',
  `axo_estado` tinyint(4) NULL DEFAULT NULL COMMENT 'Estado del Registro 0=inactivo, 1=activo',
  `axo_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `axo_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  `axo_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `axo_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`axo_id`) USING BTREE,
  INDEX `fk_axo_id_art`(`axo_id_art` ASC) USING BTREE,
  INDEX `fk_axo_id_ord`(`axo_id_ord` ASC) USING BTREE,
  INDEX `fk_axo_id_axc`(`axo_id_axc` ASC) USING BTREE,
  INDEX `fk_axo_id_cva`(`axo_id_cva` ASC) USING BTREE,
  INDEX `fk_axo_id_rea`(`axo_id_rea` ASC) USING BTREE,
  CONSTRAINT `fk_axo_id_art` FOREIGN KEY (`axo_id_art`) REFERENCES `art_articulo` (`art_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_axo_id_axc` FOREIGN KEY (`axo_id_axc`) REFERENCES `axc_articuloxcotizacion` (`axc_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_axo_id_cva` FOREIGN KEY (`axo_id_cva`) REFERENCES `cva_conversion_articulo` (`cva_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_axo_id_ord` FOREIGN KEY (`axo_id_ord`) REFERENCES `ord_orden` (`ord_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_axo_id_rea` FOREIGN KEY (`axo_id_rea`) REFERENCES `rea_receta_articulo` (`rea_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 93 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Tabla de articulos por orden' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axo_articuloxorden
-- ----------------------------
INSERT INTO `axo_articuloxorden` VALUES (2, 2, 97, NULL, 97, NULL, 'Premia Esmalte Rojo 108 LC', 5.000000, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2019-10-07 11:11:00', 1, '2019-10-07 11:11:00');
INSERT INTO `axo_articuloxorden` VALUES (3, 3, 97, NULL, 97, NULL, 'Premia Esmalte Rojo 108 LC', 2.000000, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2019-10-07 11:46:01', 1, '2019-10-07 11:46:01');
INSERT INTO `axo_articuloxorden` VALUES (12, 12, 1, NULL, 1, NULL, NULL, 10000.000000, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2020-02-10 19:23:09', 1, '2020-02-10 19:23:09');
INSERT INTO `axo_articuloxorden` VALUES (13, 13, 7, NULL, 7, NULL, NULL, 1000.000000, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2020-02-10 19:23:09', 1, '2020-02-10 19:23:09');
INSERT INTO `axo_articuloxorden` VALUES (17, 17, 1, NULL, 1, NULL, 'Super Spray Water Clear', 200.000000, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, '2020-02-22 15:20:25', 1, '2020-02-22 15:20:25');
INSERT INTO `axo_articuloxorden` VALUES (82, 82, 11, NULL, 11, NULL, 'Mantequilla', 100.000000, NULL, NULL, 0.000000, 0.000000, NULL, NULL, 1, 1, '2021-10-01 09:07:20', 1, '2021-10-01 09:07:20');
INSERT INTO `axo_articuloxorden` VALUES (83, 85, 131, NULL, 2372, NULL, '', 100.000000, NULL, NULL, 0.000000, 0.000000, NULL, NULL, 1, 65, '2024-10-17 17:03:00', 65, '2024-10-17 17:03:00');
INSERT INTO `axo_articuloxorden` VALUES (84, 86, 131, NULL, 2372, NULL, 'ORDEN DE PROD CLIENTE', 200.000000, NULL, NULL, 0.000000, 0.000000, NULL, NULL, 1, 65, '2024-10-17 17:47:46', 65, '2024-10-17 17:47:46');
INSERT INTO `axo_articuloxorden` VALUES (85, 87, 131, NULL, 2372, 3, 'orden de cliente ', 100.000000, 225.000000, 0.000000, 0.000000, 225.000000, '', NULL, 1, 65, '2024-10-17 18:04:59', 65, '2024-10-17 17:59:55');
INSERT INTO `axo_articuloxorden` VALUES (86, 88, 131, NULL, 2372, 3, '', 10.000000, 22.500000, 0.000000, 0.000000, 22.500000, '', NULL, 1, 1, '2024-10-23 14:58:51', 1, '2024-10-23 14:56:49');
INSERT INTO `axo_articuloxorden` VALUES (87, 89, 131, 37, 2372, 3, '', 50.000000, 112.500000, 12.000000, 9.500000, 134.000000, '', NULL, 1, 1, '2024-10-23 16:45:38', 1, '2024-10-23 16:38:11');
INSERT INTO `axo_articuloxorden` VALUES (88, 90, 136, NULL, 2377, NULL, 'Sembraar frijol', 1.000000, NULL, NULL, 0.000000, 0.000000, NULL, NULL, 1, 65, '2025-01-17 19:33:34', 65, '2025-01-17 19:33:34');
INSERT INTO `axo_articuloxorden` VALUES (89, 92, 137, NULL, 2378, NULL, NULL, 500.000000, NULL, NULL, 0.000000, 0.000000, NULL, '2025-02-25 00:00:00', 1, 65, '2025-02-24 09:37:15', 65, '2025-02-24 09:18:37');
INSERT INTO `axo_articuloxorden` VALUES (90, 93, 137, NULL, 2378, NULL, NULL, 200.000000, NULL, NULL, 0.000000, 0.000000, NULL, NULL, 1, 65, '2025-02-24 09:51:40', 65, '2025-02-24 09:51:40');
INSERT INTO `axo_articuloxorden` VALUES (91, 94, 137, NULL, 2378, 4, '', 100.000000, 1700.000000, 5000.000000, 95.000000, 6795.000000, '', '2025-02-24 00:00:00', 1, 65, '2025-02-24 09:59:18', 1, '2025-02-24 09:52:32');
INSERT INTO `axo_articuloxorden` VALUES (92, 95, 137, NULL, 2378, NULL, NULL, 200.000000, NULL, NULL, 0.000000, 0.000000, NULL, NULL, 1, 1, '2025-02-24 13:04:43', 1, '2025-02-24 13:04:43');

-- ----------------------------
-- Table structure for axp_anexoxempleado
-- ----------------------------
CREATE TABLE `axp_anexoxempleado`  (
  `axp_id` int(11) NOT NULL,
  `axp_id_prv` int(11) NOT NULL,
  `axp_nombre` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `axp_url` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `axp_estado` tinyint(4) NOT NULL,
  `axp_fecha_mod` datetime NOT NULL,
  `axp_usu_mod` int(11) NOT NULL,
  PRIMARY KEY (`axp_id`) USING BTREE,
  INDEX `FK_id_prv_proveedor`(`axp_id_prv` ASC) USING BTREE,
  CONSTRAINT `FK_id_prv_proveedor` FOREIGN KEY (`axp_id_prv`) REFERENCES `prv_proveedor` (`prv_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axp_anexoxempleado
-- ----------------------------

-- ----------------------------
-- Table structure for axp_anexoxplaza
-- ----------------------------
CREATE TABLE `axp_anexoxplaza`  (
  `axp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave primaria',
  `axp_id_plz` int(11) NOT NULL COMMENT 'llave primaria de plz_plaza',
  `axp_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'nombre del anexo',
  `axp_url` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'url del anexo (ubicacion del archivo)',
  `axp_estado` tinyint(4) NOT NULL COMMENT 'estado del registro',
  `axp_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `axp_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `axp_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `axp_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`axp_id`) USING BTREE,
  INDEX `fk_axp_id_plz`(`axp_id_plz` ASC) USING BTREE,
  CONSTRAINT `fk_axp_id_plz` FOREIGN KEY (`axp_id_plz`) REFERENCES `plz_plaza` (`plz_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'anexos por plaza' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axp_anexoxplaza
-- ----------------------------

-- ----------------------------
-- Table structure for axp_anexoxpuesto
-- ----------------------------
CREATE TABLE `axp_anexoxpuesto`  (
  `axp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave primaria',
  `axp_id_pto` int(11) NOT NULL COMMENT 'llave primaria de pto_puesto',
  `axp_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'nombre del anexo',
  `axp_url` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'url del anexo (ubicacion del archivo)',
  `axp_estado` tinyint(4) NOT NULL COMMENT 'estado del registro',
  `axp_usu_mod` int(11) NOT NULL COMMENT 'auditoria',
  `axp_fecha_mod` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`axp_id`) USING BTREE,
  INDEX `fk_axp_id_pto`(`axp_id_pto` ASC) USING BTREE,
  CONSTRAINT `fk_axp_id_pto` FOREIGN KEY (`axp_id_pto`) REFERENCES `pto_puesto` (`pto_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'anexos por puesto' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axp_anexoxpuesto
-- ----------------------------

-- ----------------------------
-- Table structure for axp_articuloxproposito
-- ----------------------------
CREATE TABLE `axp_articuloxproposito`  (
  `axp_id` int(11) NOT NULL AUTO_INCREMENT,
  `axp_id_pra` int(11) NOT NULL,
  `axp_id_art` int(11) NOT NULL,
  PRIMARY KEY (`axp_id`) USING BTREE,
  INDEX `fk_axp_id_pra`(`axp_id_pra` ASC) USING BTREE,
  INDEX `fk_axp_id_art`(`axp_id_art` ASC) USING BTREE,
  CONSTRAINT `fk_axp_id_art` FOREIGN KEY (`axp_id_art`) REFERENCES `art_articulo` (`art_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_axp_id_pra` FOREIGN KEY (`axp_id_pra`) REFERENCES `pra_proposito_articulo` (`pra_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 axp_articuloxproposito
-- ----------------------------

-- ----------------------------
-- Table structure for axr_accionxrol_paso
-- ----------------------------
CREATE TABLE `axr_accionxrol_paso`  (
  `axr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave principal -relacion accion por rol',
  `axr_id_rxp` int(11) NOT NULL COMMENT 'codigo principal de relacion',
  `axr_id_acc` int(11) NOT NULL COMMENT 'codigo principal de relacion',
  `axr_estado` int(11) NOT NULL COMMENT 'estado de rol',
  `axr_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `axr_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `axr_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `axr_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`axr_id`) USING BTREE,
  INDEX `fk_axr_id_acc`(`axr_id_acc` ASC) USING BTREE,
  INDEX `fk_axr_id_rxp`(`axr_id_rxp` ASC) USING BTREE,
  CONSTRAINT `fk_axr_id_acc` FOREIGN KEY (`axr_id_acc`) REFERENCES `acc_accion` (`acc_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_axr_id_rxp` FOREIGN KEY (`axr_id_rxp`) REFERENCES `rxp_rolxpaso` (`rxp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 286 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'acciones que puede realizar cada rol' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axr_accionxrol_paso
-- ----------------------------
INSERT INTO `axr_accionxrol_paso` VALUES (18, 3, 8, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (19, 3, 13, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (24, 2, 3, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (25, 2, 5, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (26, 2, 13, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (83, 7, 14, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (84, 7, 21, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (107, 5, 2, 1, 92, 92, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (108, 5, 8, 1, 92, 92, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (109, 5, 10, 1, 92, 92, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (110, 5, 11, 1, 92, 92, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (111, 5, 13, 1, 92, 92, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (117, 9, 14, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (118, 9, 20, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (119, 9, 21, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (120, 9, 24, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (121, 6, 1, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (122, 6, 7, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (123, 6, 14, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (124, 6, 21, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (125, 6, 24, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (126, 13, 13, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (127, 13, 24, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (128, 13, 14, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (129, 14, 13, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (130, 14, 8, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (131, 15, 13, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (132, 15, 8, 1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
INSERT INTO `axr_accionxrol_paso` VALUES (167, 21, 31, 1, 1, 1, '2019-07-24 10:10:54', '2019-07-24 10:10:54');
INSERT INTO `axr_accionxrol_paso` VALUES (168, 21, 32, 1, 1, 1, '2019-07-24 10:10:54', '2019-07-24 10:10:54');
INSERT INTO `axr_accionxrol_paso` VALUES (169, 21, 33, 1, 1, 1, '2019-07-24 10:10:54', '2019-07-24 10:10:54');
INSERT INTO `axr_accionxrol_paso` VALUES (183, 25, 34, 1, 1, 1, '2019-07-24 10:36:56', '2019-07-24 10:36:56');
INSERT INTO `axr_accionxrol_paso` VALUES (184, 25, 33, 1, 1, 1, '2019-07-24 10:36:56', '2019-07-24 10:36:56');
INSERT INTO `axr_accionxrol_paso` VALUES (185, 26, 33, 1, 1, 1, '2019-07-24 10:37:10', '2019-07-24 10:37:10');
INSERT INTO `axr_accionxrol_paso` VALUES (199, 22, 32, 1, 1, 1, '2019-10-21 16:23:54', '2019-10-21 16:23:54');
INSERT INTO `axr_accionxrol_paso` VALUES (200, 22, 33, 1, 1, 1, '2019-10-21 16:23:54', '2019-10-21 16:23:54');
INSERT INTO `axr_accionxrol_paso` VALUES (201, 23, 32, 1, 1, 1, '2019-10-21 16:24:12', '2019-10-21 16:24:12');
INSERT INTO `axr_accionxrol_paso` VALUES (202, 23, 33, 1, 1, 1, '2019-10-21 16:24:12', '2019-10-21 16:24:12');
INSERT INTO `axr_accionxrol_paso` VALUES (203, 28, 32, 1, 1, 1, '2019-10-21 16:24:47', '2019-10-21 16:24:47');
INSERT INTO `axr_accionxrol_paso` VALUES (204, 28, 33, 1, 1, 1, '2019-10-21 16:24:47', '2019-10-21 16:24:47');
INSERT INTO `axr_accionxrol_paso` VALUES (207, 30, 32, 1, 1, 1, '2019-10-21 16:25:21', '2019-10-21 16:25:21');
INSERT INTO `axr_accionxrol_paso` VALUES (208, 30, 33, 1, 1, 1, '2019-10-21 16:25:21', '2019-10-21 16:25:21');
INSERT INTO `axr_accionxrol_paso` VALUES (209, 24, 32, 1, 1, 1, '2019-10-23 14:54:04', '2019-10-23 14:54:04');
INSERT INTO `axr_accionxrol_paso` VALUES (210, 24, 33, 1, 1, 1, '2019-10-23 14:54:04', '2019-10-23 14:54:04');
INSERT INTO `axr_accionxrol_paso` VALUES (211, 24, 34, 1, 1, 1, '2019-10-23 14:54:04', '2019-10-23 14:54:04');
INSERT INTO `axr_accionxrol_paso` VALUES (236, 33, 16, 1, 1, 1, '2021-08-24 15:31:07', '2021-08-24 15:31:07');
INSERT INTO `axr_accionxrol_paso` VALUES (237, 33, 7, 1, 1, 1, '2021-08-24 15:31:07', '2021-08-24 15:31:07');
INSERT INTO `axr_accionxrol_paso` VALUES (241, 35, 4, 1, 1, 1, '2021-08-24 15:33:08', '2021-08-24 15:33:08');
INSERT INTO `axr_accionxrol_paso` VALUES (242, 35, 21, 1, 1, 1, '2021-08-24 15:33:08', '2021-08-24 15:33:08');
INSERT INTO `axr_accionxrol_paso` VALUES (243, 35, 17, 1, 1, 1, '2021-08-24 15:33:08', '2021-08-24 15:33:08');
INSERT INTO `axr_accionxrol_paso` VALUES (247, 34, 4, 1, 1, 1, '2021-08-24 15:45:52', '2021-08-24 15:45:52');
INSERT INTO `axr_accionxrol_paso` VALUES (248, 34, 16, 1, 1, 1, '2021-08-24 15:45:52', '2021-08-24 15:45:52');
INSERT INTO `axr_accionxrol_paso` VALUES (249, 34, 18, 1, 1, 1, '2021-08-24 15:45:52', '2021-08-24 15:45:52');
INSERT INTO `axr_accionxrol_paso` VALUES (250, 34, 21, 1, 1, 1, '2021-08-24 15:45:52', '2021-08-24 15:45:52');
INSERT INTO `axr_accionxrol_paso` VALUES (267, 8, 1, 1, 1, 1, '2021-11-05 17:36:21', '2021-11-05 17:36:21');
INSERT INTO `axr_accionxrol_paso` VALUES (268, 8, 4, 1, 1, 1, '2021-11-05 17:36:21', '2021-11-05 17:36:21');
INSERT INTO `axr_accionxrol_paso` VALUES (269, 8, 6, 1, 1, 1, '2021-11-05 17:36:21', '2021-11-05 17:36:21');
INSERT INTO `axr_accionxrol_paso` VALUES (270, 8, 10, 1, 1, 1, '2021-11-05 17:36:21', '2021-11-05 17:36:21');
INSERT INTO `axr_accionxrol_paso` VALUES (271, 8, 12, 1, 1, 1, '2021-11-05 17:36:21', '2021-11-05 17:36:21');
INSERT INTO `axr_accionxrol_paso` VALUES (272, 8, 13, 1, 1, 1, '2021-11-05 17:36:21', '2021-11-05 17:36:21');
INSERT INTO `axr_accionxrol_paso` VALUES (273, 8, 14, 1, 1, 1, '2021-11-05 17:36:21', '2021-11-05 17:36:21');
INSERT INTO `axr_accionxrol_paso` VALUES (274, 8, 21, 1, 1, 1, '2021-11-05 17:36:21', '2021-11-05 17:36:21');
INSERT INTO `axr_accionxrol_paso` VALUES (278, 29, 32, 1, 1, 1, '2022-01-18 10:42:21', '2022-01-18 10:42:21');
INSERT INTO `axr_accionxrol_paso` VALUES (279, 29, 33, 1, 1, 1, '2022-01-18 10:42:21', '2022-01-18 10:42:21');
INSERT INTO `axr_accionxrol_paso` VALUES (280, 36, 4, 1, 1, 1, '2023-05-24 11:44:13', '2023-05-24 11:44:13');
INSERT INTO `axr_accionxrol_paso` VALUES (281, 36, 6, 1, 1, 1, '2023-05-24 11:44:13', '2023-05-24 11:44:13');
INSERT INTO `axr_accionxrol_paso` VALUES (282, 36, 17, 1, 1, 1, '2023-05-24 11:44:13', '2023-05-24 11:44:13');
INSERT INTO `axr_accionxrol_paso` VALUES (283, 36, 18, 1, 1, 1, '2023-05-24 11:44:13', '2023-05-24 11:44:13');
INSERT INTO `axr_accionxrol_paso` VALUES (284, 36, 21, 1, 1, 1, '2023-05-24 11:44:13', '2023-05-24 11:44:13');
INSERT INTO `axr_accionxrol_paso` VALUES (285, 36, 25, 1, 1, 1, '2023-05-24 11:44:13', '2023-05-24 11:44:13');

-- ----------------------------
-- Table structure for axr_anexos_promocion_nivelacion
-- ----------------------------
CREATE TABLE `axr_anexos_promocion_nivelacion`  (
  `axr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal',
  `axr_id_pps` int(11) NOT NULL COMMENT 'Llave de Promocion Nivelacion',
  `axr_nombre` varchar(150) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Nombre del archivo',
  `axr_url` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Ubicacion del archivo',
  `axr_estado` tinyint(4) NOT NULL COMMENT 'Estado 1-Activo 0-Inactivo',
  `axr_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `axr_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `axr_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `axr_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`axr_id`) USING BTREE,
  INDEX `fk_axr_id_pps`(`axr_id_pps` ASC) USING BTREE,
  CONSTRAINT `fk_axr_id_pps` FOREIGN KEY (`axr_id_pps`) REFERENCES `pps_promocion_plaza_salarioxemp` (`pps_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Anexos por promocion-nivelacion' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axr_anexos_promocion_nivelacion
-- ----------------------------

-- ----------------------------
-- Table structure for axr_articulo_materiaxarticulo
-- ----------------------------
CREATE TABLE `axr_articulo_materiaxarticulo`  (
  `axr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Codigo de relacion aarticuloxarticulo',
  `axr_id_axc` int(11) NOT NULL COMMENT 'Codigo de articulo primario',
  `axr_id_cva` int(11) NULL DEFAULT NULL COMMENT 'llave principal de conversión artículo',
  `axr_id_prv` int(11) NULL DEFAULT NULL COMMENT 'Llave primaria de proveedor',
  `axr_id_etp` int(11) NULL DEFAULT NULL COMMENT 'Codigo de etapa',
  `axr_id_art_materia` int(11) NOT NULL COMMENT 'Codigo de materia prima',
  `axr_cantidad` decimal(19, 6) NOT NULL COMMENT 'Cantidad de  articulo para materia pria',
  `axr_precio` decimal(19, 6) NOT NULL COMMENT 'Precio de materia prima',
  `axr_observacion` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Observaciones',
  `axr_estimacion_porcentaje` tinyint(4) NULL DEFAULT NULL COMMENT 'Tomado en cuenta para estimación en base a porcentaje 1= si, 0 o null=no',
  `axr_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro (1:Activo, 0:Inactivo)',
  `axr_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `axr_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `axr_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `axr_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`axr_id`) USING BTREE,
  INDEX `fk_axr_id_art_materia`(`axr_id_art_materia` ASC) USING BTREE,
  INDEX `fk_axr_id_axc`(`axr_id_axc` ASC) USING BTREE,
  INDEX `fk_axr_id_prv`(`axr_id_prv` ASC) USING BTREE,
  INDEX `fk_axr_id_etp`(`axr_id_etp` ASC) USING BTREE,
  CONSTRAINT `fk_axr_id_axc` FOREIGN KEY (`axr_id_axc`) REFERENCES `axc_articuloxcotizacion` (`axc_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_axr_id_etp` FOREIGN KEY (`axr_id_etp`) REFERENCES `etp_etapa` (`etp_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_axr_id_prv` FOREIGN KEY (`axr_id_prv`) REFERENCES `prv_proveedor` (`prv_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 axr_articulo_materiaxarticulo
-- ----------------------------

-- ----------------------------
-- Table structure for axs_activo_solicitud
-- ----------------------------
CREATE TABLE `axs_activo_solicitud`  (
  `axs_id` int(11) NOT NULL AUTO_INCREMENT,
  `axs_id_slt` int(11) NOT NULL COMMENT 'Llave con la solicitud',
  `axs_id_act` int(11) NOT NULL COMMENT 'Llave con el activo',
  `axs_estado` int(11) NULL DEFAULT NULL,
  `axs_fecha_cre` datetime NULL DEFAULT NULL,
  `axs_usu_crea` int(11) NULL DEFAULT NULL,
  `azs_usu_modifica` int(11) NULL DEFAULT NULL,
  `axs_fecha_modifica` datetime NULL DEFAULT NULL,
  PRIMARY KEY (`axs_id`) USING BTREE,
  INDEX `fk_axs_id_act`(`axs_id_act` ASC) USING BTREE,
  INDEX `fk_axs_id_slt`(`axs_id_slt` ASC) USING BTREE,
  CONSTRAINT `fk_axs_id_act` FOREIGN KEY (`axs_id_act`) REFERENCES `act_activo_fijo` (`act_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_axs_id_slt` FOREIGN KEY (`axs_id_slt`) REFERENCES `slt_solicitud_activos` (`slt_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axs_activo_solicitud
-- ----------------------------

-- ----------------------------
-- Table structure for axt_anexoxticket
-- ----------------------------
CREATE TABLE `axt_anexoxticket`  (
  `axt_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave principal de realacion',
  `axt_id_tkt` int(11) NOT NULL COMMENT 'codigo de ticket',
  `axt_id_anx` int(11) NOT NULL COMMENT 'codigo de anexo',
  `axt_estado` int(11) NOT NULL COMMENT 'estado de flujo',
  `axt_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `axt_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `axt_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `axt_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`axt_id`) USING BTREE,
  INDEX `fk_axt_id_anx`(`axt_id_anx` ASC) USING BTREE,
  INDEX `fk_axt_id_tkt`(`axt_id_tkt` ASC) USING BTREE,
  CONSTRAINT `fk_axt_id_anx` FOREIGN KEY (`axt_id_anx`) REFERENCES `anx_anexo` (`anx_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_axt_id_tkt` FOREIGN KEY (`axt_id_tkt`) REFERENCES `tkt_ticket` (`tkt_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'anexos por ticket' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axt_anexoxticket
-- ----------------------------

-- ----------------------------
-- Table structure for axu_agentexconfiguracion
-- ----------------------------
CREATE TABLE `axu_agentexconfiguracion`  (
  `axu_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal - Agentes por proyecto',
  `axu_id_cft` int(11) NOT NULL COMMENT 'Llave principal - Configuracion Ticket',
  `axu_id_usu` int(11) NOT NULL COMMENT 'Llave principal - Usuarios',
  `axu_estado` int(11) NOT NULL COMMENT 'Estado de flujo',
  `axu_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `axu_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `axu_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `axu_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`axu_id`) USING BTREE,
  INDEX `fk_axu_id_cft`(`axu_id_cft` ASC) USING BTREE,
  INDEX `fk_axu_id_usu`(`axu_id_usu` ASC) USING BTREE,
  CONSTRAINT `fk_axu_id_cft` FOREIGN KEY (`axu_id_cft`) REFERENCES `cft_configuracion_ticket` (`cft_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_axu_id_usu` FOREIGN KEY (`axu_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 = 'Agentes por Configuracion Ticket' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axu_agentexconfiguracion
-- ----------------------------

-- ----------------------------
-- Table structure for axv_anexoxvehiculo
-- ----------------------------
CREATE TABLE `axv_anexoxvehiculo`  (
  `axv_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave principal -relacion',
  `axv_id_veh` int(11) NOT NULL COMMENT 'llave principal - tipo de licencias',
  `axv_id_anx` int(11) NOT NULL COMMENT 'codigo de anexo',
  `axv_estado` int(11) NOT NULL COMMENT 'estado de registro',
  `axv_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `axv_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `axv_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `axv_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`axv_id`) USING BTREE,
  INDEX `fk_axv_id_anx`(`axv_id_anx` ASC) USING BTREE,
  INDEX `fk_axv_id_veh`(`axv_id_veh` ASC) USING BTREE,
  CONSTRAINT `fk_axv_id_anx` FOREIGN KEY (`axv_id_anx`) REFERENCES `anx_anexo` (`anx_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_axv_id_veh` FOREIGN KEY (`axv_id_veh`) REFERENCES `veh_vehiculo` (`veh_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'anexos por vehiculo' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axv_anexoxvehiculo
-- ----------------------------

-- ----------------------------
-- Table structure for axy_areas_x_proyecion
-- ----------------------------
CREATE TABLE `axy_areas_x_proyecion`  (
  `axy_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria',
  `axy_id_pyc` int(11) NOT NULL COMMENT 'Llave de Proyeccion',
  `axy_id_ard` int(11) NOT NULL COMMENT 'Llave del area academica',
  `axy_estado` tinyint(4) NOT NULL COMMENT 'Estado 1 Activo/0 Inactivo',
  `axy_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `axy_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `axy_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `axy_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`axy_id`) USING BTREE,
  INDEX `fk_axy_id_pyc`(`axy_id_pyc` ASC) USING BTREE,
  INDEX `fk_axy_id_ard`(`axy_id_ard` ASC) USING BTREE,
  CONSTRAINT `fk_axy_id_ard` FOREIGN KEY (`axy_id_ard`) REFERENCES `ard_area_academica` (`ard_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_axy_id_pyc` FOREIGN KEY (`axy_id_pyc`) REFERENCES `pyc_proyeccion` (`pyc_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axy_areas_x_proyecion
-- ----------------------------

-- ----------------------------
-- Table structure for axz_anexoxcotizacion
-- ----------------------------
CREATE TABLE `axz_anexoxcotizacion`  (
  `axz_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave principal de anexo por cotización',
  `axz_id_cot` int(11) NOT NULL COMMENT 'Codigo de la cotizacion',
  `axz_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'nombre o referencia del anexo',
  `axz_url` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'nombre del archivo',
  `axz_estado` int(11) NOT NULL COMMENT '0=inactivo, 1=activo',
  `axz_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `axz_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `axz_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `axz_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`axz_id`) USING BTREE,
  INDEX `fk_axz_id_cot`(`axz_id_cot` ASC) USING BTREE,
  CONSTRAINT `fk_axz_id_cot` FOREIGN KEY (`axz_id_cot`) REFERENCES `cot_cotizacion` (`cot_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Anexos por cotización.' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of axz_anexoxcotizacion
-- ----------------------------
INSERT INTO `axz_anexoxcotizacion` VALUES (1, 26, 'cotizacion jorge 23112022', '9ba26-ejemplo_cotizacion.pdf', 1, 1, '2022-11-23 17:13:49', 1, '2022-11-23 17:13:49');

-- ----------------------------
-- Table structure for ban_banco
-- ----------------------------
CREATE TABLE `ban_banco`  (
  `ban_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal  -  Banco',
  `ban_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Nombre del banco',
  `ban_contacto` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Contacto del banco',
  `ban_prefijo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
  `ban_sufijo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
  `ban_config_chq` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
  `ban_telefono` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Contacto del banco',
  `ban_observacion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Contacto del banco',
  `ban_estado` tinyint(4) NULL DEFAULT NULL,
  `ban_fecha_mod` datetime NULL DEFAULT NULL,
  `ban_usu_mod` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`ban_id`) USING BTREE,
  UNIQUE INDEX `uk_ban_nombre`(`ban_nombre` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ban_banco
-- ----------------------------
INSERT INTO `ban_banco` VALUES (1, 'Banco nacional (cheque)\r\n', NULL, NULL, NULL, NULL, NULL, NULL, 1, '2025-07-04 12:00:00', 1);

-- ----------------------------
-- Table structure for bfp_beneficio_puesto
-- ----------------------------
CREATE TABLE `bfp_beneficio_puesto`  (
  `bfp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de beneficios del puesto',
  `bfp_nombre` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre ',
  `bfp_descripcion` varchar(600) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripcion del beneficio',
  `bfp_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro',
  `bfp_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `bfp_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `bfp_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `bfp_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`bfp_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Beneficios a los puestos.' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of bfp_beneficio_puesto
-- ----------------------------
INSERT INTO `bfp_beneficio_puesto` VALUES (1, 'Prestaciones laborales de ley', NULL, 1, 22, '2019-02-26 01:43:15', 22, '2019-02-26 01:43:15');
INSERT INTO `bfp_beneficio_puesto` VALUES (2, 'SEGURO MEDICO', NULL, 1, 1, '2020-02-24 04:07:06', 1, '2020-02-24 04:07:06');
INSERT INTO `bfp_beneficio_puesto` VALUES (3, 'Canasta Alimenticia Basica', NULL, 1, 9, '2020-06-27 04:15:13', 9, '2020-06-27 04:15:13');
INSERT INTO `bfp_beneficio_puesto` VALUES (4, 'Seguro de vida', NULL, 1, 1, '2020-10-03 10:19:10', 1, '2020-10-03 10:19:10');

-- ----------------------------
-- Table structure for bit_bitacora
-- ----------------------------
CREATE TABLE `bit_bitacora`  (
  `bit_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'codigo principal de usuario',
  `bit_id_usu` int(11) NOT NULL COMMENT 'codigo principal de usuario',
  `bit_fecha_registro` datetime NOT NULL COMMENT 'fecha de accion',
  `bit_modificacion` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Json de los datos modificados',
  `bit_accion` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'accion ejecutada',
  `bit_tabla_modificada` varchar(500) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Tabla modificada',
  `bit_estado` int(11) NOT NULL COMMENT 'estado de registro ',
  `bit_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `bit_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `bit_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `bit_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`bit_id`) USING BTREE,
  INDEX `fk_bit_id_usu`(`bit_id_usu` ASC) USING BTREE,
  CONSTRAINT `fk_bit_id_usu` FOREIGN KEY (`bit_id_usu`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'bitacora de cambios' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of bit_bitacora
-- ----------------------------

-- ----------------------------
-- Table structure for bod_bodega
-- ----------------------------
CREATE TABLE `bod_bodega`  (
  `bod_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Codigo de bodega',
  `bod_id_suc` int(11) NULL DEFAULT NULL COMMENT 'id de Sucursal',
  `bod_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de bodega',
  `bod_ubicacion` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Ubicacion de bodega',
  `bod_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro',
  `bod_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `bod_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `bod_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `bod_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`bod_id`) USING BTREE,
  UNIQUE INDEX `ix_bod_nombre`(`bod_nombre` ASC) USING BTREE,
  INDEX `fk_bod_id_suc`(`bod_id_suc` ASC) USING BTREE,
  CONSTRAINT `fk_bod_id_suc` FOREIGN KEY (`bod_id_suc`) REFERENCES `suc_sucursal` (`suc_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of bod_bodega
-- ----------------------------
INSERT INTO `bod_bodega` VALUES (1, 1, 'Casa Matriz', 'San Salvador', 1, 1, '2019-11-15 00:00:00', 65, '2024-10-17 17:42:23');
INSERT INTO `bod_bodega` VALUES (2, 1, 'Sucursal Santa Tecla', 'Santa Tecla', 1, 1, '2019-11-15 00:00:00', 1, '2020-09-10 12:05:50');
INSERT INTO `bod_bodega` VALUES (3, 1, 'Sucursal Soyapango', 'Ciudad Mujer San Miguel', 1, 1, '2019-11-15 00:00:00', 1, '2024-07-16 11:43:17');
INSERT INTO `bod_bodega` VALUES (4, 1, 'Sucursal San Miguel', 'Soyapango', 1, 1, '2019-11-15 00:00:00', 9, '2020-05-21 18:13:31');
INSERT INTO `bod_bodega` VALUES (5, 1, 'Sucursal la Union ', NULL, 1, 1, '2022-01-12 09:10:17', 1, '2024-07-16 11:44:05');
INSERT INTO `bod_bodega` VALUES (6, 1, 'Sucursal Santa Ana', NULL, 1, 1, '2023-05-24 11:23:01', 1, '2024-05-03 15:08:24');
INSERT INTO `bod_bodega` VALUES (7, 1, 'Sucursal Sonsonate', NULL, 1, 1, '2024-07-09 09:52:06', 1, '2024-07-09 09:52:06');
INSERT INTO `bod_bodega` VALUES (8, 1, 'Sucursal Chalatenango', NULL, 1, 1, '2024-07-09 09:52:06', 1, '2024-07-09 09:52:06');

-- ----------------------------
-- Table structure for bta_bitacora_archivo
-- ----------------------------
CREATE TABLE `bta_bitacora_archivo`  (
  `bta_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de bitacora de archivo',
  `bta_id_arh` int(11) NOT NULL COMMENT 'Llave principal del archivo',
  `bta_id_usu` int(11) NOT NULL COMMENT 'Llave principal de Usuario.',
  `bta_comentario` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'comentario',
  `bta_fecha` datetime NOT NULL COMMENT 'Fecha registro',
  `bta_manual` tinyint(4) NULL DEFAULT NULL COMMENT 'si es bitacora manual 1=si, 0 o null =no (es desde sistema)',
  `bta_notificar_propietario` tinyint(4) NULL DEFAULT NULL COMMENT '1=si, 0 o null=no',
  `bta_estado` tinyint(4) NULL DEFAULT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `bta_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `bta_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `bta_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `bta_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`bta_id`) USING BTREE,
  INDEX `fk_bta_id_arh`(`bta_id_arh` ASC) USING BTREE,
  INDEX `fk_bta_id_usu`(`bta_id_usu` ASC) USING BTREE,
  CONSTRAINT `fk_bta_id_arh` FOREIGN KEY (`bta_id_arh`) REFERENCES `arh_archivo` (`arh_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_bta_id_usu` FOREIGN KEY (`bta_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 36 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Bitacora archivo.' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of bta_bitacora_archivo
-- ----------------------------
INSERT INTO `bta_bitacora_archivo` VALUES (1, 1, 1, 'Creado', '2022-11-23 17:05:25', 0, NULL, 1, 1, '2022-11-23 17:05:25', 1, '2022-11-23 17:05:25');
INSERT INTO `bta_bitacora_archivo` VALUES (2, 1, 1, 'Le falta colores al manual', '2022-11-23 17:09:35', 1, 1, 1, 1, '2022-11-23 17:09:35', 1, '2022-11-23 17:09:35');
INSERT INTO `bta_bitacora_archivo` VALUES (3, 2, 1, 'Creado', '2024-07-19 15:53:26', 0, NULL, 1, 1, '2024-07-19 15:53:26', 1, '2024-07-19 15:53:26');
INSERT INTO `bta_bitacora_archivo` VALUES (4, 3, 1, 'Creado', '2024-07-19 16:03:13', 0, NULL, 1, 1, '2024-07-19 16:03:13', 1, '2024-07-19 16:03:13');
INSERT INTO `bta_bitacora_archivo` VALUES (5, 4, 1, 'Creado', '2024-07-19 16:18:01', 0, NULL, 1, 1, '2024-07-19 16:18:01', 1, '2024-07-19 16:18:01');
INSERT INTO `bta_bitacora_archivo` VALUES (6, 2, 1, 'Revisado', '2024-07-22 10:21:58', 1, 1, 1, 1, '2024-07-22 10:21:58', 1, '2024-07-22 10:21:58');
INSERT INTO `bta_bitacora_archivo` VALUES (7, 5, 1, 'Creado', '2024-08-01 14:16:32', 0, NULL, 1, 1, '2024-08-01 14:16:32', 1, '2024-08-01 14:16:32');
INSERT INTO `bta_bitacora_archivo` VALUES (8, 6, 1, 'Creado', '2024-09-27 14:52:14', 0, NULL, 1, 1, '2024-09-27 14:52:14', 1, '2024-09-27 14:52:14');
INSERT INTO `bta_bitacora_archivo` VALUES (9, 6, 1, 'Favor revisar ', '2024-09-27 14:54:44', 1, 1, 1, 1, '2024-09-27 14:54:44', 1, '2024-09-27 14:54:44');
INSERT INTO `bta_bitacora_archivo` VALUES (10, 7, 1, 'Creado', '2024-10-23 13:57:24', 0, NULL, 1, 1, '2024-10-23 13:57:24', 1, '2024-10-23 13:57:24');
INSERT INTO `bta_bitacora_archivo` VALUES (11, 8, 1, 'Creado', '2024-11-21 11:04:40', 0, NULL, 1, 1, '2024-11-21 11:04:40', 1, '2024-11-21 11:04:40');
INSERT INTO `bta_bitacora_archivo` VALUES (12, 9, 1, 'Creado', '2024-11-21 11:10:31', 0, NULL, 1, 1, '2024-11-21 11:10:31', 1, '2024-11-21 11:10:31');
INSERT INTO `bta_bitacora_archivo` VALUES (13, 10, 1, 'Creado', '2025-01-21 11:19:25', 0, NULL, 1, 1, '2025-01-21 11:19:25', 1, '2025-01-21 11:19:25');
INSERT INTO `bta_bitacora_archivo` VALUES (14, 11, 65, 'Creado', '2025-01-28 17:21:47', 0, NULL, 1, 65, '2025-01-28 17:21:47', 65, '2025-01-28 17:21:47');
INSERT INTO `bta_bitacora_archivo` VALUES (15, 12, 65, 'Creado', '2025-01-28 17:25:22', 0, NULL, 1, 65, '2025-01-28 17:25:22', 65, '2025-01-28 17:25:22');
INSERT INTO `bta_bitacora_archivo` VALUES (16, 13, 65, 'Creado', '2025-01-28 17:28:56', 0, NULL, 1, 65, '2025-01-28 17:28:56', 65, '2025-01-28 17:28:56');
INSERT INTO `bta_bitacora_archivo` VALUES (17, 14, 1, 'Creado', '2025-01-28 17:32:05', 0, NULL, 1, 1, '2025-01-28 17:32:05', 1, '2025-01-28 17:32:05');
INSERT INTO `bta_bitacora_archivo` VALUES (18, 15, 1, 'Creado', '2025-01-28 17:41:03', 0, NULL, 1, 1, '2025-01-28 17:41:03', 1, '2025-01-28 17:41:03');
INSERT INTO `bta_bitacora_archivo` VALUES (19, 16, 1, 'Creado', '2025-01-28 18:02:04', 0, NULL, 1, 1, '2025-01-28 18:02:04', 1, '2025-01-28 18:02:04');
INSERT INTO `bta_bitacora_archivo` VALUES (20, 17, 1, 'Creado', '2025-02-10 14:41:34', 0, NULL, 1, 1, '2025-02-10 14:41:34', 1, '2025-02-10 14:41:34');
INSERT INTO `bta_bitacora_archivo` VALUES (21, 18, 1, 'Creado', '2025-02-18 09:18:49', 0, NULL, 1, 1, '2025-02-18 09:18:49', 1, '2025-02-18 09:18:49');
INSERT INTO `bta_bitacora_archivo` VALUES (22, 19, 1, 'Creado', '2025-02-18 09:26:11', 0, NULL, 1, 1, '2025-02-18 09:26:11', 1, '2025-02-18 09:26:11');
INSERT INTO `bta_bitacora_archivo` VALUES (23, 20, 1, 'Creado', '2025-02-18 09:26:52', 0, NULL, 1, 1, '2025-02-18 09:26:52', 1, '2025-02-18 09:26:52');
INSERT INTO `bta_bitacora_archivo` VALUES (24, 21, 1, 'Creado', '2025-02-18 09:27:57', 0, NULL, 1, 1, '2025-02-18 09:27:57', 1, '2025-02-18 09:27:57');
INSERT INTO `bta_bitacora_archivo` VALUES (25, 22, 1, 'Creado', '2025-02-18 09:30:53', 0, NULL, 1, 1, '2025-02-18 09:30:53', 1, '2025-02-18 09:30:53');
INSERT INTO `bta_bitacora_archivo` VALUES (26, 18, 1, 'imagen verificada', '2025-02-18 09:33:37', 1, 1, 1, 1, '2025-02-18 09:33:37', 1, '2025-02-18 09:33:37');
INSERT INTO `bta_bitacora_archivo` VALUES (27, 23, 1, 'Creado', '2025-02-18 09:39:53', 0, NULL, 1, 1, '2025-02-18 09:39:53', 1, '2025-02-18 09:39:53');
INSERT INTO `bta_bitacora_archivo` VALUES (28, 24, 1, 'Creado', '2025-02-18 09:44:16', 0, NULL, 1, 1, '2025-02-18 09:44:16', 1, '2025-02-18 09:44:16');
INSERT INTO `bta_bitacora_archivo` VALUES (29, 25, 1, 'Creado', '2025-02-18 10:28:36', 0, NULL, 1, 1, '2025-02-18 10:28:36', 1, '2025-02-18 10:28:36');
INSERT INTO `bta_bitacora_archivo` VALUES (30, 26, 1, 'Creado', '2025-02-18 10:35:59', 0, NULL, 1, 1, '2025-02-18 10:35:59', 1, '2025-02-18 10:35:59');
INSERT INTO `bta_bitacora_archivo` VALUES (31, 27, 1, 'Creado', '2025-02-18 10:36:31', 0, NULL, 1, 1, '2025-02-18 10:36:31', 1, '2025-02-18 10:36:31');
INSERT INTO `bta_bitacora_archivo` VALUES (32, 28, 1, 'Creado', '2025-02-20 17:27:15', 0, NULL, 1, 1, '2025-02-20 17:27:15', 1, '2025-02-20 17:27:15');
INSERT INTO `bta_bitacora_archivo` VALUES (33, 29, 1, 'Creado', '2025-04-01 09:47:41', 0, NULL, 1, 1, '2025-04-01 09:47:41', 1, '2025-04-01 09:47:41');
INSERT INTO `bta_bitacora_archivo` VALUES (34, 30, 1, 'Creado', '2025-04-07 16:55:30', 0, NULL, 1, 1, '2025-04-07 16:55:30', 1, '2025-04-07 16:55:30');
INSERT INTO `bta_bitacora_archivo` VALUES (35, 31, 1, 'Creado', '2025-07-22 09:56:05', 0, NULL, 1, 1, '2025-07-22 09:56:05', 1, '2025-07-22 09:56:05');

-- ----------------------------
-- Table structure for bxp_beneficioxpuesto
-- ----------------------------
CREATE TABLE `bxp_beneficioxpuesto`  (
  `bxp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de beneficios x puesto',
  `bxp_id_bfp` int(11) NOT NULL COMMENT 'Llave principal de beneficios del puesto',
  `bxp_id_pto` int(11) NOT NULL COMMENT 'Llave principal de puesto',
  `bxp_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro',
  `bxp_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `bxp_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `bxp_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `bxp_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`bxp_id`) USING BTREE,
  INDEX `fk_bxp_id_bfp`(`bxp_id_bfp` ASC) USING BTREE,
  INDEX `fk_bxp_id_pto`(`bxp_id_pto` ASC) USING BTREE,
  CONSTRAINT `fk_bxp_id_bfp` FOREIGN KEY (`bxp_id_bfp`) REFERENCES `bfp_beneficio_puesto` (`bfp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_bxp_id_pto` FOREIGN KEY (`bxp_id_pto`) REFERENCES `pto_puesto` (`pto_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'detalle de los Beneficios asociados al puesto.' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of bxp_beneficioxpuesto
-- ----------------------------
INSERT INTO `bxp_beneficioxpuesto` VALUES (1, 1, 19, 1, 1, '2019-03-01 10:44:30', 1, '2019-03-01 10:44:30');
INSERT INTO `bxp_beneficioxpuesto` VALUES (4, 1, 36, 1, 1, '2020-10-03 09:33:52', 1, '2020-10-03 09:33:52');
INSERT INTO `bxp_beneficioxpuesto` VALUES (5, 1, 37, 1, 1, '2020-10-03 09:42:03', 1, '2020-10-03 09:42:03');
INSERT INTO `bxp_beneficioxpuesto` VALUES (6, 1, 39, 1, 1, '2024-01-03 15:12:10', 1, '2024-01-03 15:12:10');
INSERT INTO `bxp_beneficioxpuesto` VALUES (7, 4, 39, 1, 1, '2024-01-03 15:12:10', 1, '2024-01-03 15:12:10');

-- ----------------------------
-- Table structure for cac_cartera_cliente
-- ----------------------------
CREATE TABLE `cac_cartera_cliente`  (
  `cac_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Codigo de cartera',
  `cac_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de cartera',
  `cac_estado` tinyint(4) NOT NULL COMMENT 'Estado de cartera',
  `cac_comision` decimal(11, 2) NULL DEFAULT NULL COMMENT 'porcentaje de comision.',
  `cac_usu_mod` int(11) NOT NULL COMMENT 'Ultimo usuario que modifico',
  `cac_fecha_mod` datetime NOT NULL COMMENT 'Ultima fecha de modificacion',
  PRIMARY KEY (`cac_id`) USING BTREE,
  UNIQUE INDEX `ix_cac_nombre`(`cac_nombre` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Cartera de cliente (Gobierno, Privado)' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of cac_cartera_cliente
-- ----------------------------
INSERT INTO `cac_cartera_cliente` VALUES (1, 'Comercio', 1, 20.00, 1, '2020-07-01 18:56:22');
INSERT INTO `cac_cartera_cliente` VALUES (2, 'San Salvador', 1, NULL, 1, '2022-02-14 14:28:57');
INSERT INTO `cac_cartera_cliente` VALUES (3, 'Sonsonate', 1, NULL, 1, '2022-02-14 14:28:57');
INSERT INTO `cac_cartera_cliente` VALUES (4, '5 Anos de graduado', 1, NULL, 1, '2022-02-14 15:24:04');
INSERT INTO `cac_cartera_cliente` VALUES (5, 'Recien graduado', 1, NULL, 1, '2022-02-14 15:24:41');
INSERT INTO `cac_cartera_cliente` VALUES (6, 'Graduados de la universidad Don Bosco', 1, NULL, 1, '2022-02-14 15:24:41');
INSERT INTO `cac_cartera_cliente` VALUES (7, 'Graduados de la universidad JMD', 1, NULL, 1, '2022-02-14 15:25:36');

-- ----------------------------
-- Table structure for cac_control_actual
-- ----------------------------
CREATE TABLE `cac_control_actual`  (
  `cac_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave Principal - Contorl actual',
  `cac_nombre` varchar(500) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Nombre del control',
  `cac_descripcion` varchar(1000) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Descripción del control',
  `cac_estado` int(11) NOT NULL COMMENT 'Estado del control',
  `cac_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `cac_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `cac_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `cac_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`cac_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of cac_control_actual
-- ----------------------------
INSERT INTO `cac_control_actual` VALUES (1, 'No hay controles', 'Inexistencia de acciones de control y de controles documentados y formalizados en la organización.', 1, 1, 1, '2023-03-08 17:22:14', '2023-09-12 13:16:43');
INSERT INTO `cac_control_actual` VALUES (2, 'Controles existentes, efectivos y documentados', 'Las acciones de control son efectivas y se cuenta con controles documentados y formalizados en la organización.', 1, 1, 1, '2023-03-08 17:22:14', '2023-09-12 13:18:30');

-- ----------------------------
-- Table structure for cad_cargo_adicional
-- ----------------------------
CREATE TABLE `cad_cargo_adicional`  (
  `cad_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal  - Cargos adicionales',
  `cad_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de cargo adicional',
  `cad_valor` decimal(19, 2) NOT NULL COMMENT 'Valor de cargo adicional',
  `cad_estado` int(11) NOT NULL COMMENT 'estado de registro',
  `cad_fecha_crea` datetime NOT NULL COMMENT 'auditoria',
  `cad_fecha_mod` datetime NOT NULL COMMENT 'auditoria',
  `cad_usu_crea` int(11) NOT NULL COMMENT 'auditoria',
  `cad_usu_mod` int(11) NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`cad_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'catalogo de cargos adicionales ' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of cad_cargo_adicional
-- ----------------------------

-- ----------------------------
-- Table structure for cae_componente_alergico_empleado
-- ----------------------------
CREATE TABLE `cae_componente_alergico_empleado`  (
  `cae_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de Componente alergico por empleado',
  `cae_id_coa` int(11) NOT NULL COMMENT 'Llave principal componente alergico',
  `cae_id_emp` int(11) NOT NULL COMMENT 'Id de Empleado',
  `cae_estado` int(11) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro, 0=inactivo, 1=activo',
  `cae_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `cae_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `cae_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `cae_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`cae_id`) USING BTREE,
  INDEX `fk_cae_id_coa`(`cae_id_coa` ASC) USING BTREE,
  INDEX `fk_cae_id_emp`(`cae_id_emp` ASC) USING BTREE,
  CONSTRAINT `fk_cae_id_coa` FOREIGN KEY (`cae_id_coa`) REFERENCES `coa_componente_alergico` (`coa_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_cae_id_emp` FOREIGN KEY (`cae_id_emp`) REFERENCES `emp_empleado` (`emp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Componentes alergicos por empleado' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of cae_componente_alergico_empleado
-- ----------------------------
INSERT INTO `cae_componente_alergico_empleado` VALUES (1, 1, 76, 1, '2019-10-19 08:46:54', 5, 1, '2024-08-23 16:29:18');
INSERT INTO `cae_componente_alergico_empleado` VALUES (2, 1, 94, 1, '2024-07-30 11:04:09', 49, 49, '2024-07-30 11:04:09');

-- ----------------------------
-- Table structure for caf_cargo_facturacion
-- ----------------------------
CREATE TABLE `caf_cargo_facturacion`  (
  `caf_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal  - Cargos facturacion por servicio',
  `caf_id_sxc` int(11) NOT NULL COMMENT 'Llave principal  - servicios por cliente',
  `caf_id_tcs` int(11) NOT NULL COMMENT 'Llave principal  - Cargos por servicio',
  `caf_fecha` datetime NOT NULL COMMENT 'Fecha efectiva del cargo',
  `caf_valor` decimal(19, 6) NOT NULL COMMENT 'Valor real del cargo adicional',
  `caf_impuesto` decimal(19, 6) NOT NULL COMMENT 'Impuesto de facturacion ',
  `caf_subtotal` decimal(19, 6) NOT NULL COMMENT 'Subtotal',
  `caf_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de cargo que se cobrara al cliente',
  `caf_sistema` int(11) NOT NULL COMMENT 'Bandera indicativa para cargo generado por sistema',
  `caf_numero_cuota` int(11) NULL DEFAULT NULL COMMENT 'Número de cuotas',
  `caf_monto_cuota` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Monto de cuotas',
  `caf_cuota_pagadas` int(11) NULL DEFAULT NULL COMMENT 'Número de cuotas pagadas',
  `caf_estado` int(11) NOT NULL COMMENT 'estado de registro',
  `caf_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `caf_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `caf_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `caf_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`caf_id`) USING BTREE,
  INDEX `fk_caf_id_cad`(`caf_id_tcs` ASC) USING BTREE,
  INDEX `fk_caf_id_sxc`(`caf_id_sxc` ASC) USING BTREE,
  CONSTRAINT `fk_caf_id_cad` FOREIGN KEY (`caf_id_tcs`) REFERENCES `tcs_tipo_cargo_servicio` (`tcs_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_caf_id_sxc` FOREIGN KEY (`caf_id_sxc`) REFERENCES `sxc_servicioxcliente` (`sxc_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Cargos facturacion por servicio' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of caf_cargo_facturacion
-- ----------------------------

-- ----------------------------
-- Table structure for cag_categoria_gestion
-- ----------------------------
CREATE TABLE `cag_categoria_gestion`  (
  `cag_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de categoria de gestión',
  `cag_codigo` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Código',
  `cag_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre',
  `cag_publico` int(11) NULL DEFAULT NULL COMMENT 'Distintivo para archivos accesibles publicamente',
  `cag_descripcion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripcion del registro',
  `cag_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `cag_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `cag_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `cag_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `cag_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`cag_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Categoria de gestión de documento' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of cag_categoria_gestion
-- ----------------------------
INSERT INTO `cag_categoria_gestion` VALUES (1, '1', 'General', NULL, NULL, 1, 1, '2022-11-23 17:00:15', 1, '2022-11-23 17:00:15');
INSERT INTO `cag_categoria_gestion` VALUES (2, '2', 'Reportes', NULL, NULL, 1, 1, '2022-11-23 17:00:25', 1, '2022-11-23 17:00:25');
INSERT INTO `cag_categoria_gestion` VALUES (3, '3', 'Leyes', NULL, 'Leyes', 1, 1, '2024-11-13 12:03:34', 1, '2024-11-13 12:03:34');
INSERT INTO `cag_categoria_gestion` VALUES (4, '4', 'Imagenes', NULL, NULL, 1, 65, '2025-01-28 17:19:33', 65, '2025-01-28 17:19:33');
INSERT INTO `cag_categoria_gestion` VALUES (5, '5', 'PUBLICA', 1, NULL, 1, 1, '2025-02-10 14:35:39', 1, '2025-02-10 14:35:39');
INSERT INTO `cag_categoria_gestion` VALUES (6, '6', 'Manifiestos', NULL, NULL, 1, 1, '2025-02-18 08:35:29', 1, '2025-02-18 08:35:29');
INSERT INTO `cag_categoria_gestion` VALUES (7, '7', 'Estados de cuenta', NULL, NULL, 1, 1, '2025-02-18 08:49:36', 1, '2025-02-18 08:49:36');

-- ----------------------------
-- Table structure for caj_caja
-- ----------------------------
CREATE TABLE `caj_caja`  (
  `caj_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria - Caja',
  `caj_id_suc` int(11) NULL DEFAULT NULL COMMENT 'Identificador de la sucursal',
  `caj_id_cec_defecto` int(11) NULL DEFAULT NULL COMMENT 'llave primaria centro de costos (defecto facturacion)',
  `caj_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de caja',
  `caj_estimado_facturacion` decimal(19, 2) NULL DEFAULT NULL COMMENT 'estimado de lo que se tiene que facturar',
  `caj_numero_registradora` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Numero de registro de la maquina emisora de tickets',
  `caj_codigo_fact_elect` varchar(4) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Codigo para identificar en facuracion electronica',
  `caj_estado` int(11) NOT NULL DEFAULT 1 COMMENT 'Estado de la caja',
  `caj_usu_mod` int(11) NOT NULL COMMENT 'Auditoria',
  `caj_fecha_mod` datetime NOT NULL COMMENT 'Auditoria',
  `caj_fecha_crea` datetime NOT NULL COMMENT 'auditoria',
  `caj_usu_crea` int(11) NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`caj_id`) USING BTREE,
  INDEX `fk_caj_id_cec_defecto`(`caj_id_cec_defecto` ASC) USING BTREE,
  INDEX `fk_caj_id_suc`(`caj_id_suc` ASC) USING BTREE,
  CONSTRAINT `fk_caj_id_cec_defecto` FOREIGN KEY (`caj_id_cec_defecto`) REFERENCES `cec_centro_costo` (`cec_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_caj_id_suc` FOREIGN KEY (`caj_id_suc`) REFERENCES `suc_sucursal` (`suc_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Catalogo de Cajas' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of caj_caja
-- ----------------------------
INSERT INTO `caj_caja` VALUES (1, 1, 1, 'Caja 1 Casa Matriz', NULL, NULL, 'P002', 1, 1, '2019-07-16 10:13:19', '2019-02-19 15:16:30', 1);
INSERT INTO `caj_caja` VALUES (2, 2, 1, 'Caja 2 Sucursal Santa Tecla', NULL, NULL, NULL, 1, 1, '2019-02-19 15:16:30', '2019-02-19 15:16:30', 1);
INSERT INTO `caj_caja` VALUES (3, 1, 1, 'Caja Créditos y Cobros', NULL, NULL, NULL, 1, 1, '2019-10-19 08:33:17', '2019-10-19 08:33:17', 1);
INSERT INTO `caj_caja` VALUES (4, 1, 1, 'CAJA FACTURACION', NULL, NULL, 'P003', 1, 1, '2021-05-06 09:40:07', '2021-05-06 09:40:07', 1);

-- ----------------------------
-- Table structure for cam_campania
-- ----------------------------
CREATE TABLE `cam_campania`  (
  `cam_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria de campania',
  `cam_id_usu` int(11) NOT NULL COMMENT 'Llave principal de Usuario. (crea el registro)',
  `cam_id_usu_anula` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de Usuario. (anula registro)',
  `cam_id_usu_autoriza` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de Usuario. (autoriza registro)',
  `cam_fecha_registro` datetime NOT NULL COMMENT 'Fecha de registro',
  `cam_codigo` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Código',
  `cam_nombre` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre',
  `cam_fecha_desde` datetime NULL DEFAULT NULL COMMENT 'Fecha desde',
  `cam_fecha_hasta` datetime NULL DEFAULT NULL COMMENT 'Fecha hasta',
  `cam_contenido` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Contenido',
  `cam_url` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Url archivo',
  `cam_fecha_anulacion` datetime NULL DEFAULT NULL COMMENT 'Fecha de anulación',
  `cam_observacion_anulacion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Observación de la anulación',
  `cam_fecha_autorizacion` datetime NULL DEFAULT NULL COMMENT 'Fecha de aurotización',
  `cam_observacion_autorizacion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Observación de autorización.',
  `cam_estado` int(11) NOT NULL COMMENT 'Estado de registro (1=activo, 0=inactivo)',
  `cam_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `cam_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `cam_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `cam_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`cam_id`) USING BTREE,
  INDEX `fk_cam_id_usu`(`cam_id_usu` ASC) USING BTREE,
  INDEX `fk_cam_id_usu_anula`(`cam_id_usu_anula` ASC) USING BTREE,
  INDEX `fk_cam_id_usu_autoriza`(`cam_id_usu_autoriza` ASC) USING BTREE,
  CONSTRAINT `fk_cam_id_usu` FOREIGN KEY (`cam_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_cam_id_usu_anula` FOREIGN KEY (`cam_id_usu_anula`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_cam_id_usu_autoriza` FOREIGN KEY (`cam_id_usu_autoriza`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Campania de martketing' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of cam_campania
-- ----------------------------
INSERT INTO `cam_campania` VALUES (1, 1, NULL, 1, '2019-10-25 16:03:39', 'OCT2019-001', 'PROMOCION DE OCTUBRE ', '2019-10-01 00:00:00', '2019-10-31 00:00:00', 'APROVECHA ESTE MES DE OCTUBRE NUESTRO FESTIVAL DE ANIVERSARIO CON UN 20% DE DESCUENTOS EN PRODUCTOS SELECCIONADOS', 'uploads/anx_cotizacion/', NULL, NULL, '2019-10-25 16:11:16', 'OK PROCEDE', 2, 1, '2019-10-25 16:03:39', 1, '2019-10-25 16:11:16');
INSERT INTO `cam_campania` VALUES (2, 9, NULL, 9, '2020-06-30 11:46:55', 'JUN2020-002', 'Promocion dia del Padre', '2020-06-01 00:00:00', '2025-06-30 00:00:00', 'Promocion dia del Padre', 'uploads/anx_cotizacion/', NULL, NULL, '2020-06-30 11:51:38', 'Ok', 2, 9, '2020-06-30 11:46:55', 9, '2020-06-30 11:51:38');
INSERT INTO `cam_campania` VALUES (3, 1, NULL, 1, '2020-07-01 18:34:45', 'JUL2020-003', 'campana pruebas', '2020-07-01 00:00:00', '2020-07-03 00:00:00', 'campana pruebas', 'uploads/anx_cotizacion/magicolor_pinsal.jpg', NULL, NULL, '2020-07-01 18:37:18', 'aprobada', 2, 1, '2020-07-01 18:34:45', 1, '2020-07-01 18:37:18');
INSERT INTO `cam_campania` VALUES (4, 1, NULL, 1, '2020-07-02 16:17:13', 'JUL2020-004', 'promocionales', '2020-07-02 00:00:00', '2020-07-02 00:00:00', 'promocionales', 'uploads/anx_cotizacion/gorra1.jpg', NULL, NULL, '2020-07-02 16:17:45', 'aprobada', 2, 1, '2020-07-02 16:17:13', 1, '2020-07-02 16:17:45');

-- ----------------------------
-- Table structure for can_canton
-- ----------------------------
CREATE TABLE `can_canton`  (
  `can_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Id de Caserio',
  `can_id_mun` int(11) NULL DEFAULT NULL COMMENT 'Llave primaria - entidad municipio',
  `can_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre',
  `can_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro (1:Activo, 0:Inactivo)',
  `can_usu_mod` int(11) NOT NULL COMMENT 'Auditoria',
  `can_fecha_mod` datetime NOT NULL COMMENT 'Auditoria',
  `can_usu_crea` int(11) NOT NULL,
  `can_fecha_crea` datetime NOT NULL,
  PRIMARY KEY (`can_id`) USING BTREE,
  INDEX `fk_can_id_mun`(`can_id_mun` ASC) USING BTREE,
  CONSTRAINT `can_canton_ibfk_1` FOREIGN KEY (`can_id_mun`) REFERENCES `mun_municipio` (`mun_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Cantones' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of can_canton
-- ----------------------------

-- ----------------------------
-- Table structure for cap_categoria_pregunta
-- ----------------------------
CREATE TABLE `cap_categoria_pregunta`  (
  `cap_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de categoria de pregunta',
  `cap_id_enc` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de encuesta',
  `cap_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'nombre de categoria',
  `cap_estado` int(11) NOT NULL COMMENT '1=activo, 0=inactivo',
  `cap_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `cap_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `cap_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `cap_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`cap_id`) USING BTREE,
  INDEX `fk_cap_id_enc`(`cap_id_enc` ASC) USING BTREE,
  CONSTRAINT `fk_cap_id_enc` FOREIGN KEY (`cap_id_enc`) REFERENCES `enc_encuesta` (`enc_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'categoria de pregunta.' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of cap_categoria_pregunta
-- ----------------------------

-- ----------------------------
-- Table structure for cap_componente_alergico_paciente
-- ----------------------------
CREATE TABLE `cap_componente_alergico_paciente`  (
  `cap_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de componente alergico paciente',
  `cap_id_coa` int(11) NOT NULL COMMENT 'Llave principal del componente alergico',
  `cap_id_epp` int(11) NOT NULL COMMENT 'Llave principal de Expediente de paciente',
  `cap_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'estado del registro 1=activo, 0=inactivo',
  `cap_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `cap_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `cap_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `cap_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`cap_id`) USING BTREE,
  INDEX `fk_cap_id_coa`(`cap_id_coa` ASC) USING BTREE,
  INDEX `fk_cap_id_epp`(`cap_id_epp` ASC) USING BTREE,
  CONSTRAINT `fk_cap_id_coa` FOREIGN KEY (`cap_id_coa`) REFERENCES `coa_componente_alergico` (`coa_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_cap_id_epp` FOREIGN KEY (`cap_id_epp`) REFERENCES `epp_expediente_paciente` (`epp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Entidad - Componentes alergicos por paciente' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of cap_componente_alergico_paciente
-- ----------------------------
INSERT INTO `cap_componente_alergico_paciente` VALUES (1, 1, 3, 1, 49, '2024-07-29 04:43:47', 49, '2024-07-29 04:43:47');

-- ----------------------------
-- Table structure for car_caracteristica
-- ----------------------------
CREATE TABLE `car_caracteristica`  (
  `car_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave  principal',
  `car_codigo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Código de caracteristica',
  `car_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de caracteristica',
  `car_descripcion` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripcion de caracteristica',
  `car_tipo` int(11) NOT NULL COMMENT 'Tipo de Caracteristica.\r\n1- Lista multiple\r\n2- Lista desplegable\r\n3- Numerico\r\n4- Decimal\r\n5- Texto\r\n6- Checkbox',
  `car_aplica_reporte` int(11) NULL DEFAULT NULL COMMENT 'Aplica para aparecer seleccionado en los reportes 1=si, 0=no',
  `car_usu_crea` int(11) NULL DEFAULT NULL COMMENT 'Auditoria',
  `car_fecha_crea` datetime NULL DEFAULT NULL COMMENT 'Auditoria',
  `car_estado` int(11) NOT NULL COMMENT 'Estado de registro',
  `car_usu_mod` int(11) NOT NULL COMMENT 'Auditoria',
  `car_fecha_mod` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`car_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 28 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Caracteristicas del activo fijo' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of car_caracteristica
-- ----------------------------
INSERT INTO `car_caracteristica` VALUES (1, '001', 'Viscosidad', 'Viscosidad', 5, NULL, 1, '2019-09-03 18:17:33', 1, 1, '2019-09-03 18:17:33');
INSERT INTO `car_caracteristica` VALUES (2, '002', 'PPG', 'PPG', 5, NULL, 1, '2019-09-03 18:17:55', 1, 1, '2019-09-03 18:17:55');
INSERT INTO `car_caracteristica` VALUES (3, '003', 'Cubrimiento', 'Cubrimiento', 5, NULL, 23, '2019-10-29 09:46:10', 1, 23, '2019-10-29 09:46:10');
INSERT INTO `car_caracteristica` VALUES (4, '004', 'Color', 'Color', 5, NULL, 1, '2019-09-03 18:18:33', 1, 1, '2019-09-03 18:18:33');
INSERT INTO `car_caracteristica` VALUES (5, '005', 'pH', 'pH', 5, NULL, 24, '2019-10-25 10:19:24', 1, 24, '2019-10-25 10:19:24');
INSERT INTO `car_caracteristica` VALUES (6, '006', 'Dureza', 'Dureza', 5, NULL, 1, '2019-09-03 18:18:54', 1, 1, '2019-09-03 18:18:54');
INSERT INTO `car_caracteristica` VALUES (7, '007', 'Brillo', 'Brillo', 5, NULL, 1, '2019-09-03 18:19:02', 1, 1, '2019-09-03 18:19:02');
INSERT INTO `car_caracteristica` VALUES (8, '008', 'Parroquia', 'Parroquia', 5, NULL, 1, '2021-08-23 18:05:33', 1, 1, '2021-08-23 18:05:33');
INSERT INTO `car_caracteristica` VALUES (9, '009', 'Tipo Plan', 'Tipo Plan', 2, NULL, 1, '2021-12-27 22:57:30', 1, 1, '2021-12-27 22:57:30');
INSERT INTO `car_caracteristica` VALUES (10, '010', 'Modelo', 'Modelo del Producto', 5, NULL, 1, '2021-12-27 23:17:36', 1, 1, '2021-12-27 23:17:36');
INSERT INTO `car_caracteristica` VALUES (11, '011', 'Tipo', '', 2, NULL, 1, '2021-12-28 07:41:22', 1, 1, '2021-12-28 07:41:22');
INSERT INTO `car_caracteristica` VALUES (12, '012', 'Marca', 'Marca', 5, 0, 1, '2022-01-18 11:31:04', 1, 1, '2022-01-18 11:31:04');
INSERT INTO `car_caracteristica` VALUES (13, '013', 'Serie', 'Serie', 5, 0, 1, '2022-01-18 11:31:29', 1, 1, '2022-01-18 11:31:29');
INSERT INTO `car_caracteristica` VALUES (14, '014', 'Perfil administración de empresas', 'Graduado', 1, NULL, 1, '2022-02-14 14:25:19', 1, 1, '2022-02-14 14:25:19');
INSERT INTO `car_caracteristica` VALUES (15, '015', 'Actitud Positiva', '', 5, NULL, 1, '2022-02-16 14:00:43', 1, 1, '2022-02-16 14:00:43');
INSERT INTO `car_caracteristica` VALUES (16, '016', 'Tipo de Motor', '', 5, 0, 1, '2023-01-19 09:01:44', 1, 1, '2023-01-19 09:01:44');
INSERT INTO `car_caracteristica` VALUES (17, '017', 'Presentación', 'Tipos de presentacion del producto', 2, NULL, 1, '2023-05-19 08:45:02', 1, 1, '2023-05-19 08:45:02');
INSERT INTO `car_caracteristica` VALUES (18, '018', 'Componentes', '', 5, NULL, 1, '2023-02-28 21:43:34', 1, 1, '2023-02-28 21:43:34');
INSERT INTO `car_caracteristica` VALUES (19, '019', 'Smart TV', '', 6, NULL, 1, '2023-05-26 11:07:35', 1, 1, '2023-05-26 11:07:35');
INSERT INTO `car_caracteristica` VALUES (20, '020', 'Pulgadas', '', 3, NULL, 1, '2023-05-26 11:07:45', 1, 1, '2023-05-26 11:07:45');
INSERT INTO `car_caracteristica` VALUES (21, '021', 'Plazo', 'Plazo', 3, NULL, 1, '2024-04-12 14:43:09', 1, 1, '2024-04-12 14:43:09');
INSERT INTO `car_caracteristica` VALUES (22, '022', 'Tipo de servicio', 'Tipo de servicio prestrado', 2, NULL, 1, '2024-05-23 15:27:35', 1, 1, '2024-05-23 15:27:35');
INSERT INTO `car_caracteristica` VALUES (23, '023', 'Paises', 'Paises destino', 2, NULL, 1, '2024-05-23 15:28:24', 1, 1, '2024-05-23 15:28:24');
INSERT INTO `car_caracteristica` VALUES (24, '024', 'Peso', '', 2, NULL, 1, '2024-05-23 15:29:12', 1, 1, '2024-05-23 15:29:12');
INSERT INTO `car_caracteristica` VALUES (25, '025', 'Motor', 'Numero de motor', 5, 0, 1, '2024-07-04 09:48:52', 1, 1, '2024-07-04 09:48:52');
INSERT INTO `car_caracteristica` VALUES (26, '026', 'Chasis', 'Numero de chasis VIN', 5, 0, 1, '2024-07-04 09:49:14', 1, 1, '2024-07-04 09:49:14');
INSERT INTO `car_caracteristica` VALUES (27, '027', 'Colores', 'Color vehiculo', 2, 0, 1, '2024-07-04 09:49:41', 1, 1, '2024-07-04 09:49:41');

-- ----------------------------
-- Table structure for cas_componente_alergico_solicitante
-- ----------------------------
CREATE TABLE `cas_componente_alergico_solicitante`  (
  `cas_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de componente alergico por solicitante',
  `cas_id_coa` int(11) NOT NULL COMMENT 'Llave principal del componente alergico',
  `cas_id_sle` int(11) NOT NULL COMMENT 'Llave principal de Solicitante Empleo',
  `cas_estado` int(11) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro, 0=inactivo, 1=activo',
  `cas_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `cas_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `cas_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `cas_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`cas_id`) USING BTREE,
  INDEX `fk_cas_id_coa`(`cas_id_coa` ASC) USING BTREE,
  INDEX `fk_cas_id_sle`(`cas_id_sle` ASC) USING BTREE,
  CONSTRAINT `fk_cas_id_coa` FOREIGN KEY (`cas_id_coa`) REFERENCES `coa_componente_alergico` (`coa_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_cas_id_sle` FOREIGN KEY (`cas_id_sle`) REFERENCES `sle_solicitante_empleo` (`sle_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'tabla que almacena n componente alergico de un solicitante e' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of cas_componente_alergico_solicitante
-- ----------------------------

-- ----------------------------
-- Table structure for cat_catalogo
-- ----------------------------
CREATE TABLE `cat_catalogo`  (
  `cat_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Identificador unico',
  `cat_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Nombre de la opción',
  `cat_desc` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripción del parametro',
  `cat_tipo` int(11) NOT NULL COMMENT 'Segmentación de los catalogos',
  `cat_padre` int(11) NOT NULL DEFAULT 0 COMMENT 'Padre de la opción. (jeraraquia)',
  `cat_sistema` tinyint(4) NULL DEFAULT 0 COMMENT 'Catalogo de sistema',
  `cat_hijo` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`cat_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Entidad - Catalogos' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of cat_catalogo
-- ----------------------------

-- ----------------------------
-- Table structure for cat_configuracion_accion_turno
-- ----------------------------
CREATE TABLE `cat_configuracion_accion_turno`  (
  `cat_id` int(11) NOT NULL AUTO_INCREMENT,
  `cat_id_tur` int(11) NOT NULL,
  `cat_tipo` int(11) NOT NULL COMMENT '1:Entarda 2: Salida',
  `cat_minutos` int(11) NOT NULL,
  `cat_aplicar_doble` int(11) NULL DEFAULT NULL COMMENT '0=No |1=Si Si aplica el conteo de minutos al doble',
  `cat_eventos_doble` tinyint(4) NULL DEFAULT NULL COMMENT 'Si aplica conteo doble a partir de X evento',
  `cat_id_tre` int(11) NULL DEFAULT NULL,
  `cat_estado` tinyint(4) NOT NULL,
  `cat_usu_mod` int(11) NOT NULL,
  `cat_fecha_mod` datetime NOT NULL,
  `cat_id_thf` int(255) NULL DEFAULT NULL COMMENT 'LLave Principal - Tipo de Hora Faltante',
  PRIMARY KEY (`cat_id`) USING BTREE,
  INDEX `fk_cat_id_tre_tipo_retraso`(`cat_id_tre` ASC) USING BTREE,
  INDEX `fk_cat_id_tur_turno`(`cat_id_tur` ASC) USING BTREE,
  INDEX `fk_cat_id_thf`(`cat_id_thf` ASC) USING BTREE,
  CONSTRAINT `fk_cat_id_thf` FOREIGN KEY (`cat_id_thf`) REFERENCES `thf_tipo_hora_faltante` (`thf_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_cat_id_tre_tipo_retraso` FOREIGN KEY (`cat_id_tre`) REFERENCES `tre_tipo_retraso` (`tre_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_cat_id_tur_turno` FOREIGN KEY (`cat_id_tur`) REFERENCES `tur_turno` (`tur_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of cat_configuracion_accion_turno
-- ----------------------------
INSERT INTO `cat_configuracion_accion_turno` VALUES (1, 2, 1, 60, NULL, NULL, NULL, 1, 1, '2024-02-02 10:57:05', 3);
INSERT INTO `cat_configuracion_accion_turno` VALUES (2, 2, 2, 60, NULL, NULL, NULL, 1, 1, '2024-02-02 10:57:05', 6);

-- ----------------------------
-- Table structure for cca_color_cabello
-- ----------------------------
CREATE TABLE `cca_color_cabello`  (
  `cca_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal del registro del color',
  `cca_codigo` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Campo para codigo del color',
  `cca_nombre` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Color de cabello',
  `cca_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro (0 = Inactivo y 1 = Activo )',
  `cca_usu_creacion` int(11) NOT NULL COMMENT 'Auditoría',
  `cca_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoría',
  `cca_fecha_creacion` datetime NOT NULL COMMENT 'Auditoría',
  `cca_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoría',
  PRIMARY KEY (`cca_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Tabla catalogo para registrar los tipos de color de cabello que pueden llegar a existir para un paciente' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of cca_color_cabello
-- ----------------------------

-- ----------------------------
-- Table structure for ccc_comparativo_cotizacion_compra
-- ----------------------------
CREATE TABLE `ccc_comparativo_cotizacion_compra`  (
  `ccc_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria de comparativo de cotizacion compra',
  `ccc_id_rxi` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de la requisición',
  `ccc_id_usu_crea` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de Usuario.',
  `ccc_id_usu_autoriza` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de Usuario.',
  `ccc_id_usu_rechaza` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de Usuario.',
  `ccc_id_flu` int(11) NULL DEFAULT NULL COMMENT 'codigo de flujo',
  `ccc_fecha` datetime NOT NULL COMMENT 'fecha comparativo',
  `ccc_fecha_inicio` datetime NOT NULL COMMENT 'fecha inicio de cotizaciones compra',
  `ccc_fecha_fin` datetime NOT NULL COMMENT 'fecha fin de cotizaciones compra',
  `ccc_observacion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Observaciones generales',
  `ccc_observacion_autoriza` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Observaciones autoriza',
  `ccc_observacion_rechaza` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Observaciones rechaza',
  `ccc_subtotal` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Total global',
  `ccc_descuento` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Total global descuento',
  `ccc_impuesto` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Total global impuesto',
  `ccc_total` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Total global',
  `ccc_enviado_aprobacion` tinyint(4) NOT NULL DEFAULT 0 COMMENT ' 0=No, 1=Si',
  `ccc_estado` tinyint(4) NOT NULL COMMENT '1 = Creada\n2 = Pendiente de Autorizacion\n3 = Autorizada\n4 = Rechazada\n5 = Anulada',
  `ccc_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `ccc_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `ccc_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `ccc_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`ccc_id`) USING BTREE,
  INDEX `fk_ccc_id_rxi`(`ccc_id_rxi` ASC) USING BTREE,
  INDEX `fk_ccc_id_usu_autoriza`(`ccc_id_usu_autoriza` ASC) USING BTREE,
  INDEX `fk_ccc_id_usu_crea`(`ccc_id_usu_crea` ASC) USING BTREE,
  INDEX `fk_ccc_id_usu_rechaza`(`ccc_id_usu_rechaza` ASC) USING BTREE,
  INDEX `fk_ccc_id_flu`(`ccc_id_flu` ASC) USING BTREE,
  CONSTRAINT `fk_ccc_id_flu` FOREIGN KEY (`ccc_id_flu`) REFERENCES `flu_flujo` (`flu_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_ccc_id_rxi` FOREIGN KEY (`ccc_id_rxi`) REFERENCES `rxi_requisicion_inventario` (`rxi_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_ccc_id_usu_autoriza` FOREIGN KEY (`ccc_id_usu_autoriza`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_ccc_id_usu_crea` FOREIGN KEY (`ccc_id_usu_crea`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_ccc_id_usu_rechaza` FOREIGN KEY (`ccc_id_usu_rechaza`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Comparar las cotizaciones de compra paradeterminar la opción' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ccc_comparativo_cotizacion_compra
-- ----------------------------
INSERT INTO `ccc_comparativo_cotizacion_compra` VALUES (1, 1, 1, NULL, NULL, 4, '2019-07-23 14:16:37', '2019-07-23 00:00:00', '2019-07-23 00:00:00', '', '', '', 200.000000, 0.000000, 0.000000, 200.000000, 0, 1, 1, '2019-07-23 14:16:37', 1, '2019-07-23 14:16:37');
INSERT INTO `ccc_comparativo_cotizacion_compra` VALUES (2, 1, 1, NULL, NULL, NULL, '2019-07-23 14:24:24', '2019-07-23 00:00:00', '2019-07-23 00:00:00', '', '', '', 350.000000, 0.000000, 0.000000, 350.000000, 0, 1, 1, '2019-07-23 14:24:24', 1, '2019-07-23 14:24:24');
INSERT INTO `ccc_comparativo_cotizacion_compra` VALUES (3, 1, 1, NULL, NULL, NULL, '2019-07-23 14:25:22', '2019-06-08 00:00:00', '2019-06-08 00:00:00', '', '', '', 110.000000, 0.000000, 14.300000, 124.300000, 0, 1, 1, '2019-07-23 14:25:22', 1, '2019-07-23 14:25:22');
INSERT INTO `ccc_comparativo_cotizacion_compra` VALUES (4, 1, 9, NULL, NULL, 4, '2019-07-24 09:26:52', '2019-07-24 00:00:00', '2019-07-24 00:00:00', '', '', '', 115.000000, 0.000000, 14.950000, 129.950000, 0, 2, 9, '2019-07-24 09:26:52', 9, '2019-07-24 09:46:33');
INSERT INTO `ccc_comparativo_cotizacion_compra` VALUES (5, 1, 1, 1, NULL, 4, '2019-10-21 10:00:46', '2019-10-21 00:00:00', '2019-10-21 00:00:00', '', '', '', 500.000000, 0.000000, 0.000000, 500.000000, 0, 3, 1, '2019-10-21 10:00:46', 1, '2019-10-21 16:25:43');
INSERT INTO `ccc_comparativo_cotizacion_compra` VALUES (6, 1, 1, 1, NULL, 4, '2019-10-23 14:41:30', '2019-10-23 00:00:00', '2019-10-23 00:00:00', '', '', '', 45.000000, 0.000000, 5.850000, 50.850000, 0, 3, 1, '2019-10-23 14:41:30', 1, '2019-10-23 14:54:45');
INSERT INTO `ccc_comparativo_cotizacion_compra` VALUES (7, 3, 1, 1, NULL, 4, '2020-02-25 13:16:36', '2020-02-25 00:00:00', '2020-02-25 00:00:00', '', '', '', 4525.000000, 0.000000, 588.250000, 5113.250000, 0, 3, 1, '2020-02-25 13:16:36', 1, '2020-02-25 13:20:26');
INSERT INTO `ccc_comparativo_cotizacion_compra` VALUES (8, 4, 33, 2, NULL, 4, '2020-06-29 14:38:30', '2020-06-29 00:00:00', '2020-06-29 00:00:00', '', '', '', 1494.170000, 0.000000, 0.000000, 0.000000, 0, 3, 33, '2020-06-29 14:38:30', 2, '2020-06-29 14:53:43');
INSERT INTO `ccc_comparativo_cotizacion_compra` VALUES (9, 1, 33, 9, NULL, 4, '2020-06-29 16:46:07', '2020-06-29 00:00:00', '2020-06-29 00:00:00', '', '', '', 1025.750000, 0.000000, 0.000000, 1025.750000, 0, 3, 33, '2020-06-29 16:46:07', 9, '2020-06-29 16:47:29');
INSERT INTO `ccc_comparativo_cotizacion_compra` VALUES (10, 7, 1, 1, NULL, 4, '2020-07-01 10:17:32', '2020-07-01 00:00:00', '2020-07-01 00:00:00', '', '', '', 604.300000, 0.000000, 64.910000, 669.210000, 0, 3, 1, '2020-07-01 10:17:32', 1, '2020-07-06 17:50:38');
INSERT INTO `ccc_comparativo_cotizacion_compra` VALUES (11, 1, 1, 1, NULL, 4, '2021-02-18 11:22:41', '2021-02-18 00:00:00', '2021-02-18 00:00:00', '', '', '', 27.000000, 0.000000, 0.000000, 27.000000, 0, 3, 1, '2021-02-18 11:22:41', 1, '2021-02-18 11:24:30');
INSERT INTO `ccc_comparativo_cotizacion_compra` VALUES (12, 8, 1, 1, NULL, 4, '2022-01-18 10:30:52', '2022-01-18 00:00:00', '2022-01-18 00:00:00', '', '', '', 106.250000, 0.000000, 13.810000, 120.060000, 0, 3, 1, '2022-01-18 10:30:52', 1, '2022-01-18 10:38:07');
INSERT INTO `ccc_comparativo_cotizacion_compra` VALUES (13, 9, 1, 1, NULL, 4, '2022-01-18 11:29:16', '2022-01-18 00:00:00', '2022-01-18 00:00:00', '', '', '', 500.000000, 0.000000, 65.000000, 565.000000, 0, 3, 1, '2022-01-18 11:29:16', 1, '2022-01-18 11:31:29');

-- ----------------------------
-- Table structure for cch_caja_chica
-- ----------------------------
CREATE TABLE `cch_caja_chica`  (
  `cch_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de caja chica',
  `cch_id_emp` int(11) NOT NULL COMMENT 'Id de Empleado',
  `cch_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre del caja chica',
  `cch_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripción general',
  `cch_sobregirar` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Sobregirar caja 1=si, 0=no',
  `cch_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `cch_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `cch_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `cch_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `cch_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`cch_id`) USING BTREE,
  INDEX `fk_cch_id_emp`(`cch_id_emp` ASC) USING BTREE,
  CONSTRAINT `fk_cch_id_emp` FOREIGN KEY (`cch_id_emp`) REFERENCES `emp_empleado` (`emp_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Caja chica' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of cch_caja_chica
-- ----------------------------
INSERT INTO `cch_caja_chica` VALUES (1, 44, 'Agencia Central', NULL, 0, 1, 1, '2023-05-12 10:16:19', 1, '2023-05-12 10:16:19');
INSERT INTO `cch_caja_chica` VALUES (2, 9, 'Transporte', 'caja chica transporte', 0, 1, 1, '2024-08-14 11:57:51', 1, '2024-08-14 11:57:51');

-- ----------------------------
-- Table structure for cci_control_cierre
-- ----------------------------
CREATE TABLE `cci_control_cierre`  (
  `cci_id` int(11) NOT NULL DEFAULT 0,
  `cci_id_usu` int(11) NULL DEFAULT NULL COMMENT 'ID Usuario',
  `cci_periodo` date NULL DEFAULT NULL COMMENT 'Periodo a calcular',
  `cci_fecha` datetime NULL DEFAULT NULL COMMENT 'Fecha de Ejecucion del cierre',
  `cci_obs` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Observaciones',
  `cci_fecha_mod` datetime NOT NULL COMMENT 'Auditoria',
  `cci_usu_mod` int(11) NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`cci_id`) USING BTREE,
  INDEX `FK_cci_id_usu`(`cci_id_usu` ASC) USING BTREE,
  CONSTRAINT `FK_cci_id_usu` FOREIGN KEY (`cci_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of cci_control_cierre
-- ----------------------------

-- ----------------------------
-- Table structure for ccm_corte_caja_mensual
-- ----------------------------
CREATE TABLE `ccm_corte_caja_mensual`  (
  `ccm_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de corte de caja mensual',
  `ccm_id_caj` int(11) NOT NULL COMMENT 'Llave primaria - Caja',
  `ccm_id_fac` int(11) NULL DEFAULT NULL COMMENT 'Llave  principal de facturacion (factura utilizada para la impresión del corte)',
  `ccm_id_cof_correlativo` int(11) NULL DEFAULT NULL COMMENT 'llave primaria- Correlativo de factura para el corte mensual',
  `ccm_usu_genera` int(11) NOT NULL COMMENT 'auditoria - usuario que generó corte',
  `ccm_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'descripción de corte',
  `ccm_fecha_desde` datetime NOT NULL COMMENT 'fecha desde ',
  `ccm_fecha_hasta` datetime NOT NULL COMMENT 'fecha desde ',
  `ccm_correlativo_corte` int(11) NULL DEFAULT NULL COMMENT 'numero de correlativo segun la serie.',
  `ccm_estado` tinyint(4) NOT NULL COMMENT '1=activo, 0=inactivo',
  `ccm_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `ccm_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `ccm_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `ccm_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`ccm_id`) USING BTREE,
  INDEX `fk_ccm_id_caj`(`ccm_id_caj` ASC) USING BTREE,
  INDEX `fk_ccm_id_fac`(`ccm_id_fac` ASC) USING BTREE,
  CONSTRAINT `fk_ccm_id_caj` FOREIGN KEY (`ccm_id_caj`) REFERENCES `caj_caja` (`caj_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_ccm_id_fac` FOREIGN KEY (`ccm_id_fac`) REFERENCES `fac_factura` (`fac_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Corte de caja mensual (z)' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ccm_corte_caja_mensual
-- ----------------------------
INSERT INTO `ccm_corte_caja_mensual` VALUES (1, 1, NULL, NULL, 4, 'Corte mensual', '2018-06-01 00:00:00', '2018-06-30 00:00:00', NULL, 1, 4, '2018-07-09 15:04:11', 4, '2018-07-09 15:04:11');
INSERT INTO `ccm_corte_caja_mensual` VALUES (2, 2, NULL, NULL, 4, 'Corte mensual', '2018-06-01 00:00:00', '2018-06-30 00:00:00', NULL, 1, 4, '2018-07-11 10:34:49', 4, '2018-07-11 10:34:49');
INSERT INTO `ccm_corte_caja_mensual` VALUES (3, 1, NULL, NULL, 4, 'Corte mensual', '2018-07-01 00:00:00', '2018-07-31 00:00:00', NULL, 1, 4, '2018-08-16 08:34:44', 4, '2018-08-16 08:34:44');
INSERT INTO `ccm_corte_caja_mensual` VALUES (4, 1, NULL, NULL, 1, 'Corte mensual', '2018-08-01 00:00:00', '2018-08-31 00:00:00', NULL, 1, 1, '2018-08-29 10:39:02', 1, '2018-08-29 10:39:02');
INSERT INTO `ccm_corte_caja_mensual` VALUES (5, 7, NULL, NULL, 1, 'Corte mensual', '2018-09-01 00:00:00', '2018-09-30 00:00:00', NULL, 1, 1, '2018-09-14 08:59:51', 1, '2018-09-14 08:59:51');
INSERT INTO `ccm_corte_caja_mensual` VALUES (6, 1, NULL, NULL, 8, 'Corte mensual', '2019-08-01 00:00:00', '2019-08-31 00:00:00', NULL, 1, 8, '2019-08-28 15:15:09', 8, '2019-08-28 15:15:09');
INSERT INTO `ccm_corte_caja_mensual` VALUES (7, 1, NULL, NULL, 8, 'Corte mensual', '2019-09-01 00:00:00', '2019-09-30 00:00:00', NULL, 1, 8, '2019-09-20 11:07:14', 8, '2019-09-20 11:07:14');
INSERT INTO `ccm_corte_caja_mensual` VALUES (8, 2, NULL, NULL, 8, 'Corte mensual', '2019-10-01 00:00:00', '2019-10-31 00:00:00', NULL, 1, 8, '2019-10-10 17:56:29', 8, '2019-10-10 17:56:29');
INSERT INTO `ccm_corte_caja_mensual` VALUES (9, 1, NULL, NULL, 8, 'Corte mensual', '2020-01-01 00:00:00', '2020-01-31 00:00:00', NULL, 1, 8, '2020-06-18 21:05:28', 8, '2020-06-18 21:05:28');
INSERT INTO `ccm_corte_caja_mensual` VALUES (10, 1, NULL, NULL, 1, 'Corte mensual', '2023-05-01 00:00:00', '2023-05-31 00:00:00', NULL, 1, 1, '2023-05-25 11:19:13', 1, '2023-05-25 11:19:13');

-- ----------------------------
-- Table structure for cco_cuenta_contable
-- ----------------------------
CREATE TABLE `cco_cuenta_contable`  (
  `cco_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Id CCO',
  `cco_id_cpr_egr` int(11) NULL DEFAULT NULL COMMENT 'Identificador unico',
  `cco_id_cpr_ing` int(11) NULL DEFAULT NULL COMMENT 'Identificador unico',
  `cco_codigo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Codigo Contable',
  `cco_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de la cuenta',
  `cco_padre` int(11) NULL DEFAULT NULL,
  `cco_deudor` tinyint(4) NOT NULL DEFAULT 0,
  `cco_acreedor` tinyint(4) NOT NULL DEFAULT 0,
  PRIMARY KEY (`cco_id`) USING BTREE,
  INDEX `FK_cco_x_cpr_egr`(`cco_id_cpr_egr` ASC) USING BTREE,
  INDEX `FK_cco_x_cpr_ing`(`cco_id_cpr_ing` ASC) USING BTREE,
  CONSTRAINT `cco_cuenta_contable_ibfk_1` FOREIGN KEY (`cco_id_cpr_egr`) REFERENCES `cpr_cuenta_presupuesto` (`cpr_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `cco_cuenta_contable_ibfk_2` FOREIGN KEY (`cco_id_cpr_ing`) REFERENCES `cpr_cuenta_presupuesto` (`cpr_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Cuenta Contable' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of cco_cuenta_contable
-- ----------------------------

-- ----------------------------
-- Table structure for ccp_concepto_partida
-- ----------------------------
CREATE TABLE `ccp_concepto_partida`  (
  `ccp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de capacitación por empleado',
  `ccp_codigo` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Codigo de concepto',
  `ccp_referencia_proceso` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripción y del modulo y el proceso en donde se utilizará',
  `ccp_descripcion_concepto` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Descripción concepto',
  `ccp_estado` int(11) NOT NULL COMMENT 'Estado de registro (1=activo, 0=inactivo)',
  `ccp_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `ccp_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `ccp_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `ccp_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`ccp_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Concepto predefinidos para las partidas contables.' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ccp_concepto_partida
-- ----------------------------
INSERT INTO `ccp_concepto_partida` VALUES (1, 'FAC-001', 'Facturacion - Venta de producto', 'Partida por venta de productos afecta inv', 1, 1, '2018-05-19 10:56:39', 1, '2018-05-19 10:56:39');
INSERT INTO `ccp_concepto_partida` VALUES (2, 'FAC-002', 'Facturacion - Venta de producto', 'Partida por venta de productos no afecta inv', 1, 1, '2018-05-19 10:56:39', 1, '2018-05-19 10:56:39');
INSERT INTO `ccp_concepto_partida` VALUES (3, 'FAC-003', 'Facturacion - Venta de producto', 'Partida por anulacion de factura', 1, 1, '2018-05-19 10:56:39', 1, '2018-05-19 10:56:39');
INSERT INTO `ccp_concepto_partida` VALUES (4, 'FAC-004', 'Facturacion - Venta de producto', 'Contrapartida por faturacion', 1, 1, '2018-05-19 10:56:39', 1, '2018-05-19 10:56:39');
INSERT INTO `ccp_concepto_partida` VALUES (5, 'INV-001', 'Inventario - Entrada de producto', 'Partida por entrada de producto', 1, 1, '2018-05-19 10:56:39', 1, '2018-05-19 10:56:39');
INSERT INTO `ccp_concepto_partida` VALUES (6, 'INV-002', 'Inventario - Traslado de producto', 'Partida por traslado de producto', 1, 1, '2018-05-19 10:56:39', 1, '2018-05-19 10:56:39');
INSERT INTO `ccp_concepto_partida` VALUES (7, 'INV-003', 'Inventario - Salida de producto', 'Partida por salida de producto', 1, 1, '2018-05-19 10:56:39', 1, '2018-05-19 10:56:39');
INSERT INTO `ccp_concepto_partida` VALUES (8, 'COM-001', 'Compras - Compra de producto doc. prov.', 'Partida entrada de producto doc. proveedor', 1, 1, '2018-05-19 10:56:39', 1, '2018-05-19 10:56:39');
INSERT INTO `ccp_concepto_partida` VALUES (9, 'COM-002', 'Compras - Compra de producto doc. prov. no afecta', 'Partida por compra de producto doc. prov. no afecta', 1, 1, '2018-05-19 10:56:39', 1, '2018-05-19 10:56:39');
INSERT INTO `ccp_concepto_partida` VALUES (10, 'CON-001', 'Contabilidad - Facturacion', 'Partida generada para el modulo de facturación', 1, 1, '2018-05-19 10:56:39', 1, '2018-05-22 09:32:59');
INSERT INTO `ccp_concepto_partida` VALUES (11, 'CON-002', 'Contabilidad - Inventario', 'Partida contabilidad Inventario', 1, 1, '2018-05-19 10:56:39', 1, '2018-05-19 10:56:39');
INSERT INTO `ccp_concepto_partida` VALUES (12, 'CON-003', 'Contabilidad - Pagos', 'Partida contabilidad Pagos', 1, 1, '2018-05-19 10:56:39', 1, '2018-05-19 10:56:39');
INSERT INTO `ccp_concepto_partida` VALUES (13, 'CON-004', 'Contabilidad - Compras', 'Partida contabilidad Compras', 1, 1, '2018-05-19 10:56:39', 1, '2018-05-19 10:56:39');
INSERT INTO `ccp_concepto_partida` VALUES (14, 'PLA-001', 'Planilla - Planilla', 'Partida contabilidad Planilla', 1, 1, '2018-05-19 10:56:39', 1, '2018-07-26 16:33:12');
INSERT INTO `ccp_concepto_partida` VALUES (15, 'BAN-001', 'Banco - Nota Abono', 'Partida banco nota de abono', 1, 1, '2018-05-19 10:56:39', 1, '2018-05-19 10:56:39');
INSERT INTO `ccp_concepto_partida` VALUES (16, 'BAN-002', 'Banco - Cheque', 'Partida banco cheque', 1, 1, '2018-05-19 10:56:39', 1, '2018-05-19 10:56:39');
INSERT INTO `ccp_concepto_partida` VALUES (17, 'CON-005', 'Contabilidad - Anticipos', 'Partida contabilidad Anticipos', 1, 1, '2018-09-04 08:47:47', 1, '2018-09-04 08:47:49');
INSERT INTO `ccp_concepto_partida` VALUES (18, 'COM-003', 'Compras - Caja chica', 'Partida contabilidad Caja Chica', 1, 1, '2018-09-04 08:47:47', 1, '2018-09-04 08:47:47');

-- ----------------------------
-- Table structure for ccr_control_calidad_orden
-- ----------------------------
CREATE TABLE `ccr_control_calidad_orden`  (
  `ccr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de Programacion de produccion',
  `ccr_id_usu` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de Usuario.',
  `ccr_id_ord` int(11) NOT NULL COMMENT 'Codigo de la orden',
  `ccr_fecha` datetime NULL DEFAULT NULL COMMENT 'Fecha',
  `ccr_hora_inicio` time NULL DEFAULT NULL COMMENT 'Hora inicio',
  `ccr_hora_fin` time NULL DEFAULT NULL COMMENT 'Hora fin',
  `ccr_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Comentario',
  `ccr_fecha_registro` datetime NOT NULL COMMENT 'Fecha del registro',
  `ccr_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 1=activo, 0=inactivo',
  `ccr_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `ccr_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `ccr_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `ccr_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`ccr_id`) USING BTREE,
  INDEX `fk_ccr_id_ord`(`ccr_id_ord` ASC) USING BTREE,
  INDEX `fk_ccr_id_usu`(`ccr_id_usu` ASC) USING BTREE,
  CONSTRAINT `fk_ccr_id_ord` FOREIGN KEY (`ccr_id_ord`) REFERENCES `ord_orden` (`ord_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_ccr_id_usu` FOREIGN KEY (`ccr_id_usu`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'control de calidad de la orden de produccion' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ccr_control_calidad_orden
-- ----------------------------
INSERT INTO `ccr_control_calidad_orden` VALUES (1, 1, 53, '2020-07-31 00:00:00', '06:25:00', '09:25:00', NULL, '2020-08-01 11:28:41', 1, 1, '2020-08-01 11:28:41', 1, '2020-08-01 11:28:41');
INSERT INTO `ccr_control_calidad_orden` VALUES (2, 1, 56, '2020-08-03 00:00:00', '10:12:00', '11:07:00', NULL, '2020-08-03 10:13:02', 1, 1, '2020-08-03 10:13:02', 1, '2020-08-03 10:13:02');
INSERT INTO `ccr_control_calidad_orden` VALUES (3, 1, 80, '2021-03-08 00:00:00', '17:29:00', '18:30:00', NULL, '2021-03-08 16:30:08', 1, 1, '2021-03-08 16:30:08', 1, '2021-03-08 16:30:08');
INSERT INTO `ccr_control_calidad_orden` VALUES (4, 1, 88, '2024-10-23 00:00:00', '15:30:00', '16:30:00', NULL, '2024-10-23 15:34:07', 1, 1, '2024-10-23 15:34:07', 1, '2024-10-23 15:34:07');
INSERT INTO `ccr_control_calidad_orden` VALUES (5, 1, 89, '2024-10-23 00:00:00', '17:00:00', '17:30:00', NULL, '2024-10-23 17:02:23', 1, 1, '2024-10-23 17:02:23', 1, '2024-10-23 17:02:23');
INSERT INTO `ccr_control_calidad_orden` VALUES (6, 1, 95, '2025-02-24 00:00:00', '20:15:00', '21:15:00', NULL, '2025-02-24 13:15:33', 1, 1, '2025-02-24 13:15:33', 1, '2025-02-24 13:15:33');

-- ----------------------------
-- Table structure for ccs_capacitacion_solicitante
-- ----------------------------
CREATE TABLE `ccs_capacitacion_solicitante`  (
  `ccs_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de capacitación por solicitante empleo',
  `ccs_id_sle` int(11) NOT NULL COMMENT 'Llave principal de Solicitante Empleo',
  `ccs_id_ese` int(11) NULL DEFAULT NULL COMMENT 'Llave principal del estado de estudio',
  `ccs_id_icp` int(11) NULL DEFAULT NULL COMMENT 'Llave principal del institucion que imparte capacitacion',
  `ccs_nombre` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Nombre de la capacitación',
  `ccs_duracion` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Duración de la capacitación (horas)',
  `ccs_costo_empresa` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Costo de la empresa',
  `ccs_costo_insaforp` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Costo de insaforp',
  `ccs_costo_proveedor` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Costo de proveedor',
  `ccs_fecha_inicio` datetime NULL DEFAULT NULL COMMENT 'Fecha de inicio',
  `ccs_fecha_fin` datetime NULL DEFAULT NULL COMMENT 'Fecha de fin',
  `ccs_estado` int(11) NOT NULL COMMENT 'Estado de registro (1=activo, 0=inactivo)',
  `ccs_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `ccs_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `ccs_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `ccs_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`ccs_id`) USING BTREE,
  INDEX `fk_ccs_id_ese`(`ccs_id_ese` ASC) USING BTREE,
  INDEX `fk_ccs_id_icp`(`ccs_id_icp` ASC) USING BTREE,
  INDEX `fk_ccs_id_sle`(`ccs_id_sle` ASC) USING BTREE,
  CONSTRAINT `fk_ccs_id_ese` FOREIGN KEY (`ccs_id_ese`) REFERENCES `ese_estado_estudio` (`ese_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_ccs_id_icp` FOREIGN KEY (`ccs_id_icp`) REFERENCES `icp_institucion_capacitacion` (`icp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_ccs_id_sle` FOREIGN KEY (`ccs_id_sle`) REFERENCES `sle_solicitante_empleo` (`sle_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Capacitación por solicitante de empleo' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ccs_capacitacion_solicitante
-- ----------------------------

-- ----------------------------
-- Table structure for ccv_cuota_contrato_proveedor
-- ----------------------------
CREATE TABLE `ccv_cuota_contrato_proveedor`  (
  `ccv_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria cuota por contrato proveedor',
  `ccv_id_dpv` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de documento proveedor',
  `ccv_id_cop` int(11) NULL DEFAULT NULL COMMENT 'Llave principal del contrato',
  `ccv_fecha_cuota` datetime NOT NULL COMMENT 'cuota a fin de mes',
  `ccv_facturado` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'facturado 1=si, 0=no',
  `ccv_monto` decimal(19, 4) NOT NULL COMMENT 'Monto',
  `ccv_impuesto` decimal(19, 4) NOT NULL DEFAULT 0.0000 COMMENT 'Monto impuesto',
  `ccv_total` decimal(19, 4) NOT NULL COMMENT 'total',
  `ccv_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 0=inactivo, 1=activo',
  `ccv_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `ccv_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `ccv_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `ccv_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`ccv_id`) USING BTREE,
  INDEX `fk_ccv_id_cop`(`ccv_id_cop` ASC) USING BTREE,
  INDEX `fk_ccv_id_dpv`(`ccv_id_dpv` ASC) USING BTREE,
  CONSTRAINT `fk_ccv_id_cop` FOREIGN KEY (`ccv_id_cop`) REFERENCES `cop_contrato_proveedor` (`cop_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_ccv_id_dpv` FOREIGN KEY (`ccv_id_dpv`) REFERENCES `dpv_documento_proveedor` (`dpv_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Cuotas por contrato proveedor.' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ccv_cuota_contrato_proveedor
-- ----------------------------
INSERT INTO `ccv_cuota_contrato_proveedor` VALUES (1, 437, 2, '2020-01-01 00:00:00', 1, 84.7458, 15.2542, 100.0000, 1, 1, '2020-07-06 17:45:38', 1, '2020-07-06 17:45:38');
INSERT INTO `ccv_cuota_contrato_proveedor` VALUES (2, 442, 2, '2020-02-01 00:00:00', 1, 84.7458, 15.2542, 100.0000, 1, 1, '2020-07-06 17:45:38', 1, '2020-07-06 17:45:38');
INSERT INTO `ccv_cuota_contrato_proveedor` VALUES (3, NULL, 2, '2020-03-01 00:00:00', 0, 84.7458, 15.2542, 100.0000, 1, 1, '2020-07-06 17:45:38', 1, '2020-07-06 17:45:38');
INSERT INTO `ccv_cuota_contrato_proveedor` VALUES (4, NULL, 2, '2020-04-01 00:00:00', 0, 84.7458, 15.2542, 100.0000, 1, 1, '2020-07-06 17:45:38', 1, '2020-07-06 17:45:38');
INSERT INTO `ccv_cuota_contrato_proveedor` VALUES (5, NULL, 2, '2020-05-01 00:00:00', 0, 84.7458, 15.2542, 100.0000, 1, 1, '2020-07-06 17:45:38', 1, '2020-07-06 17:45:38');
INSERT INTO `ccv_cuota_contrato_proveedor` VALUES (6, NULL, 2, '2020-06-01 00:00:00', 0, 84.7458, 15.2542, 100.0000, 1, 1, '2020-07-06 17:45:38', 1, '2020-07-06 17:45:38');
INSERT INTO `ccv_cuota_contrato_proveedor` VALUES (7, NULL, 2, '2020-07-01 00:00:00', 0, 84.7458, 15.2542, 100.0000, 1, 1, '2020-07-06 17:45:38', 1, '2020-07-06 17:45:38');
INSERT INTO `ccv_cuota_contrato_proveedor` VALUES (8, NULL, 2, '2020-08-01 00:00:00', 0, 84.7458, 15.2542, 100.0000, 1, 1, '2020-07-06 17:45:38', 1, '2020-07-06 17:45:38');
INSERT INTO `ccv_cuota_contrato_proveedor` VALUES (9, NULL, 2, '2020-09-01 00:00:00', 0, 84.7458, 15.2542, 100.0000, 1, 1, '2020-07-06 17:45:38', 1, '2020-07-06 17:45:38');
INSERT INTO `ccv_cuota_contrato_proveedor` VALUES (10, NULL, 2, '2020-10-01 00:00:00', 0, 84.7458, 15.2542, 100.0000, 1, 1, '2020-07-06 17:45:38', 1, '2020-07-06 17:45:38');
INSERT INTO `ccv_cuota_contrato_proveedor` VALUES (11, NULL, 2, '2020-11-01 00:00:00', 0, 84.7458, 15.2542, 100.0000, 1, 1, '2020-07-06 17:45:38', 1, '2020-07-06 17:45:38');
INSERT INTO `ccv_cuota_contrato_proveedor` VALUES (12, NULL, 2, '2020-12-01 00:00:00', 0, 84.7458, 15.2542, 100.0000, 1, 1, '2020-07-06 17:45:38', 1, '2020-07-06 17:45:38');

-- ----------------------------
-- Table structure for cda_codigo_arancelario
-- ----------------------------
CREATE TABLE `cda_codigo_arancelario`  (
  `cda_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave principal de código arancelario',
  `cda_codigo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Codigo',
  `cda_impuesto` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Impuesto',
  `cda_descripcion` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Nombre',
  `cda_estado` int(11) NOT NULL COMMENT '0=inactivo, 1=activo',
  `cda_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `cda_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  `cda_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `cda_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`cda_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of cda_codigo_arancelario
-- ----------------------------
INSERT INTO `cda_codigo_arancelario` VALUES (1, 'I.V.A. CREDITO FISCAL', 13.00, '13% SOBRE LAS COMPRAS NETAS', 1, 1, '2018-04-11 08:34:31', 1, '2018-04-11 08:34:31');
INSERT INTO `cda_codigo_arancelario` VALUES (2, 'I.V.A. DÉBITO FISCAL', 13.00, ' 13% SOBRE VENTAS NETAS', 1, 1, '2018-04-11 08:35:30', 1, '2018-04-11 08:35:30');
INSERT INTO `cda_codigo_arancelario` VALUES (3, 'RETENCIÓN DE IMPUESTO SOBRE RENTA', 10.00, 'RETENCIÓN DE RENTA ', 1, 1, '2018-04-11 08:35:30', 1, '2018-04-11 08:35:30');
INSERT INTO `cda_codigo_arancelario` VALUES (4, 'I.V.A. PERCEPCION', 1.00, '1% SOBRE COMPRAS GRANDES CONTRIBUYENTES', 1, 1, '2018-04-11 08:35:30', 1, '2018-04-11 08:35:30');
INSERT INTO `cda_codigo_arancelario` VALUES (5, 'I.V.A. RETENCIÓN ', 1.00, '1% DE RENTENCION DE VENTAS A GRANDES CONTRIBUYENTES', 1, 1, '2018-04-11 08:35:30', 1, '2018-04-11 08:35:30');

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