-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Versión del servidor: 8.0.30 - MySQL Community Server - GPL
-- SO del servidor: Win64
-- HeidiSQL Versión: 12.1.0.6537
-- --------------------------------------------------------
/* !40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */ ;
/* !40101 SET NAMES utf8 */ ;
/* !50503 SET NAMES utf8mb4 */ ;
/* !40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */ ;
/* !40103 SET TIME_ZONE='+00:00' */ ;
/* !40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */ ;
/* !40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */ ;
/* !40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */ ;
-- Volcando estructura de base de datos para admision_2026
CREATE DATABASE IF NOT EXISTS ` admision_2026 ` /* !40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /* !80016 DEFAULT ENCRYPTION='N' */ ;
USE ` admision_2026 ` ;
-- Volcando estructura para tabla admision_2026.areas
CREATE TABLE IF NOT EXISTS ` areas ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` nombre ` varchar ( 100 ) NOT NULL ,
` codigo ` varchar ( 20 ) NOT NULL ,
` descripcion ` varchar ( 500 ) DEFAULT NULL ,
` activo ` tinyint ( 1 ) NOT NULL DEFAULT ' 1 ' ,
` created_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ,
` updated_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` codigo ` ( ` codigo ` ) ,
KEY ` idx_areas_activo ` ( ` activo ` ) ,
KEY ` idx_areas_codigo ` ( ` codigo ` )
) ENGINE = InnoDB AUTO_INCREMENT = 5 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ;
-- Volcando datos para la tabla admision_2026.areas: ~2 rows (aproximadamente)
DELETE FROM ` areas ` ;
INSERT INTO ` areas ` ( ` id ` , ` nombre ` , ` codigo ` , ` descripcion ` , ` activo ` , ` created_at ` , ` updated_at ` ) VALUES
( 3 , ' Biomedicas ' , ' BIO ' , NULL , 1 , ' 2026-02-13 21:37:24 ' , ' 2026-02-14 00:52:17 ' ) ,
( 4 , ' Ingenierias ' , ' ING ' , NULL , 1 , ' 2026-02-13 21:37:42 ' , ' 2026-02-14 00:52:15 ' ) ;
-- Volcando estructura para tabla admision_2026.areas_admision
CREATE TABLE IF NOT EXISTS ` areas_admision ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` nombre ` varchar ( 150 ) NOT NULL ,
` descripcion ` text ,
` created_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ,
` updated_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
PRIMARY KEY ( ` id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ;
-- Volcando datos para la tabla admision_2026.areas_admision: ~0 rows (aproximadamente)
DELETE FROM ` areas_admision ` ;
-- Volcando estructura para tabla admision_2026.area_curso
CREATE TABLE IF NOT EXISTS ` area_curso ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` area_id ` bigint unsigned NOT NULL ,
` curso_id ` bigint unsigned NOT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) USING BTREE ,
KEY ` fk_area_curso_area ` ( ` area_id ` ) USING BTREE ,
KEY ` fk_area_curso_curso ` ( ` curso_id ` ) USING BTREE ,
CONSTRAINT ` fk_area_curso_area ` FOREIGN KEY ( ` area_id ` ) REFERENCES ` areas ` ( ` id ` ) ON DELETE CASCADE ,
CONSTRAINT ` fk_area_curso_curso ` FOREIGN KEY ( ` curso_id ` ) REFERENCES ` cursos ` ( ` id ` ) ON DELETE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 9 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ;
-- Volcando datos para la tabla admision_2026.area_curso: ~4 rows (aproximadamente)
DELETE FROM ` area_curso ` ;
INSERT INTO ` area_curso ` ( ` id ` , ` area_id ` , ` curso_id ` , ` created_at ` , ` updated_at ` ) VALUES
( 5 , 4 , 4 , ' 2026-02-13 21:43:34 ' , ' 2026-02-13 21:43:34 ' ) ,
( 6 , 4 , 3 , ' 2026-02-13 21:43:34 ' , ' 2026-02-13 21:43:34 ' ) ,
( 7 , 3 , 4 , ' 2026-02-13 21:43:36 ' , ' 2026-02-13 21:43:36 ' ) ,
( 8 , 3 , 3 , ' 2026-02-13 21:43:36 ' , ' 2026-02-13 21:43:36 ' ) ;
-- Volcando estructura para tabla admision_2026.area_proceso
CREATE TABLE IF NOT EXISTS ` area_proceso ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` area_id ` bigint unsigned NOT NULL ,
` proceso_id ` bigint unsigned NOT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` area_proceso_unique ` ( ` area_id ` , ` proceso_id ` ) ,
KEY ` fk_area_proceso_proceso ` ( ` proceso_id ` ) ,
CONSTRAINT ` fk_area_proceso_area ` FOREIGN KEY ( ` area_id ` ) REFERENCES ` areas ` ( ` id ` ) ON DELETE CASCADE ,
CONSTRAINT ` fk_area_proceso_proceso ` FOREIGN KEY ( ` proceso_id ` ) REFERENCES ` procesos ` ( ` id ` ) ON DELETE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 5 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.area_proceso: ~2 rows (aproximadamente)
DELETE FROM ` area_proceso ` ;
INSERT INTO ` area_proceso ` ( ` id ` , ` area_id ` , ` proceso_id ` , ` created_at ` , ` updated_at ` ) VALUES
( 3 , 4 , 2 , ' 2026-02-13 21:43:29 ' , ' 2026-02-13 21:43:29 ' ) ,
( 4 , 3 , 2 , ' 2026-02-13 21:43:32 ' , ' 2026-02-13 21:43:32 ' ) ;
-- Volcando estructura para tabla admision_2026.cache
CREATE TABLE IF NOT EXISTS ` cache ` (
` key ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` value ` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` expiration ` int NOT NULL ,
PRIMARY KEY ( ` key ` ) ,
KEY ` cache_expiration_index ` ( ` expiration ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.cache: ~0 rows (aproximadamente)
DELETE FROM ` cache ` ;
-- Volcando estructura para tabla admision_2026.cache_locks
CREATE TABLE IF NOT EXISTS ` cache_locks ` (
` key ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` owner ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` expiration ` int NOT NULL ,
PRIMARY KEY ( ` key ` ) ,
KEY ` cache_locks_expiration_index ` ( ` expiration ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.cache_locks: ~0 rows (aproximadamente)
DELETE FROM ` cache_locks ` ;
-- Volcando estructura para tabla admision_2026.calificaciones
CREATE TABLE IF NOT EXISTS ` calificaciones ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` nombre ` varchar ( 100 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` puntos_correcta ` decimal ( 5 , 2 ) NOT NULL DEFAULT ' 10.00 ' ,
` puntos_incorrecta ` decimal ( 5 , 2 ) NOT NULL DEFAULT ' 0.00 ' ,
` puntos_nula ` decimal ( 5 , 2 ) NOT NULL DEFAULT ' 0.00 ' ,
` puntaje_maximo ` decimal ( 8 , 2 ) NOT NULL DEFAULT ' 1000.00 ' ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.calificaciones: ~0 rows (aproximadamente)
DELETE FROM ` calificaciones ` ;
INSERT INTO ` calificaciones ` ( ` id ` , ` nombre ` , ` puntos_correcta ` , ` puntos_incorrecta ` , ` puntos_nula ` , ` puntaje_maximo ` , ` created_at ` , ` updated_at ` ) VALUES
( 1 , ' preu ' , 10 . 00 , 0 . 00 , 0 . 00 , 1000 . 00 , NULL , NULL ) ;
-- Volcando estructura para tabla admision_2026.cursos
CREATE TABLE IF NOT EXISTS ` cursos ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` nombre ` varchar ( 100 ) NOT NULL ,
` codigo ` varchar ( 20 ) NOT NULL ,
` descripcion ` varchar ( 500 ) DEFAULT NULL ,
` activo ` tinyint ( 1 ) NOT NULL DEFAULT ' 1 ' ,
` created_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ,
` updated_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` codigo ` ( ` codigo ` ) ,
KEY ` idx_cursos_activo ` ( ` activo ` ) ,
KEY ` idx_cursos_codigo ` ( ` codigo ` )
) ENGINE = InnoDB AUTO_INCREMENT = 5 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ;
-- Volcando datos para la tabla admision_2026.cursos: ~2 rows (aproximadamente)
DELETE FROM ` cursos ` ;
INSERT INTO ` cursos ` ( ` id ` , ` nombre ` , ` codigo ` , ` descripcion ` , ` activo ` , ` created_at ` , ` updated_at ` ) VALUES
( 3 , ' Matematica ' , ' MAT ' , NULL , 1 , ' 2026-02-13 21:38:06 ' , ' 2026-02-13 21:38:06 ' ) ,
( 4 , ' Comunicacion ' , ' COM ' , NULL , 1 , ' 2026-02-13 21:38:19 ' , ' 2026-02-13 21:38:19 ' ) ;
-- Volcando estructura para tabla admision_2026.examenes
CREATE TABLE IF NOT EXISTS ` examenes ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` postulante_id ` bigint unsigned NOT NULL ,
` area_proceso_id ` bigint unsigned NOT NULL ,
` pagado ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` tipo_pago ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` pago_id ` decimal ( 20 , 6 ) DEFAULT ' 0.000000 ' ,
` intentos ` int NOT NULL DEFAULT ' 0 ' ,
` estado ` varchar ( 30 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ' pendiente ' ,
` hora_inicio ` timestamp NULL DEFAULT NULL ,
` hora_fin ` timestamp NULL DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) USING BTREE ,
KEY ` examenes_postulante_id_foreign ` ( ` postulante_id ` ) USING BTREE ,
KEY ` examenes_area_proceso_id_foreign ` ( ` area_proceso_id ` ) USING BTREE ,
KEY ` examenes_estado_index ` ( ` estado ` ) ,
CONSTRAINT ` examenes_area_proceso_id_foreign ` FOREIGN KEY ( ` area_proceso_id ` ) REFERENCES ` area_proceso ` ( ` id ` ) ON DELETE CASCADE ,
CONSTRAINT ` examenes_postulante_id_foreign ` FOREIGN KEY ( ` postulante_id ` ) REFERENCES ` postulantes ` ( ` id ` ) ON DELETE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 22 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.examenes: ~0 rows (aproximadamente)
DELETE FROM ` examenes ` ;
INSERT INTO ` examenes ` ( ` id ` , ` postulante_id ` , ` area_proceso_id ` , ` pagado ` , ` tipo_pago ` , ` pago_id ` , ` intentos ` , ` estado ` , ` hora_inicio ` , ` hora_fin ` , ` created_at ` , ` updated_at ` ) VALUES
( 21 , 6 , 4 , 0 , NULL , NULL , 1 , ' calificado ' , ' 2026-02-17 18:42:13 ' , ' 2026-02-17 18:42:25 ' , ' 2026-02-17 18:42:11 ' , ' 2026-02-17 18:42:19 ' ) ;
-- Volcando estructura para tabla admision_2026.failed_jobs
CREATE TABLE IF NOT EXISTS ` failed_jobs ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` uuid ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` connection ` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` queue ` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` payload ` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` exception ` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` failed_at ` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` failed_jobs_uuid_unique ` ( ` uuid ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.failed_jobs: ~0 rows (aproximadamente)
DELETE FROM ` failed_jobs ` ;
-- Volcando estructura para tabla admision_2026.jobs
CREATE TABLE IF NOT EXISTS ` jobs ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` queue ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` payload ` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` attempts ` tinyint unsigned NOT NULL ,
` reserved_at ` int unsigned DEFAULT NULL ,
` available_at ` int unsigned NOT NULL ,
` created_at ` int unsigned NOT NULL ,
PRIMARY KEY ( ` id ` ) ,
KEY ` jobs_queue_index ` ( ` queue ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.jobs: ~0 rows (aproximadamente)
DELETE FROM ` jobs ` ;
-- Volcando estructura para tabla admision_2026.job_batches
CREATE TABLE IF NOT EXISTS ` job_batches ` (
` id ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` name ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` total_jobs ` int NOT NULL ,
` pending_jobs ` int NOT NULL ,
` failed_jobs ` int NOT NULL ,
` failed_job_ids ` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` options ` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ,
` cancelled_at ` int DEFAULT NULL ,
` created_at ` int NOT NULL ,
` finished_at ` int DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.job_batches: ~0 rows (aproximadamente)
DELETE FROM ` job_batches ` ;
-- Volcando estructura para tabla admision_2026.migrations
CREATE TABLE IF NOT EXISTS ` migrations ` (
` id ` int unsigned NOT NULL AUTO_INCREMENT ,
` migration ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` batch ` int NOT NULL ,
PRIMARY KEY ( ` id ` )
) ENGINE = InnoDB AUTO_INCREMENT = 6 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.migrations: ~7 rows (aproximadamente)
DELETE FROM ` migrations ` ;
INSERT INTO ` migrations ` ( ` migration ` , ` batch ` ) VALUES
( ' 0001_01_01_000000_create_users_table ' , 1 ) ,
( ' 0001_01_01_000001_create_cache_table ' , 1 ) ,
( ' 0001_01_01_000002_create_jobs_table ' , 1 ) ,
( ' 2026_01_27_132900_create_personal_access_tokens_table ' , 1 ) ,
( ' 2026_01_27_133609_create_permission_tables ' , 1 ) ,
( ' 2026_02_15_051618_fix_unique_constraint_proceso_admision_detalles ' , 1 ) ,
( ' 2026_02_20_000001_create_proceso_admision_resultado_archivos_table ' , 2 ) ;
-- Volcando estructura para tabla admision_2026.model_has_permissions
CREATE TABLE IF NOT EXISTS ` model_has_permissions ` (
` permission_id ` bigint unsigned NOT NULL ,
` model_type ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` model_id ` bigint unsigned NOT NULL ,
PRIMARY KEY ( ` permission_id ` , ` model_id ` , ` model_type ` ) ,
KEY ` model_has_permissions_model_id_model_type_index ` ( ` model_id ` , ` model_type ` ) ,
CONSTRAINT ` model_has_permissions_permission_id_foreign ` FOREIGN KEY ( ` permission_id ` ) REFERENCES ` permissions ` ( ` id ` ) ON DELETE CASCADE
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.model_has_permissions: ~0 rows (aproximadamente)
DELETE FROM ` model_has_permissions ` ;
-- Volcando estructura para tabla admision_2026.model_has_roles
CREATE TABLE IF NOT EXISTS ` model_has_roles ` (
` role_id ` bigint unsigned NOT NULL ,
` model_type ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` model_id ` bigint unsigned NOT NULL ,
PRIMARY KEY ( ` role_id ` , ` model_id ` , ` model_type ` ) ,
KEY ` model_has_roles_model_id_model_type_index ` ( ` model_id ` , ` model_type ` ) ,
CONSTRAINT ` model_has_roles_role_id_foreign ` FOREIGN KEY ( ` role_id ` ) REFERENCES ` roles ` ( ` id ` ) ON DELETE CASCADE
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.model_has_roles: ~0 rows (aproximadamente)
DELETE FROM ` model_has_roles ` ;
INSERT INTO ` model_has_roles ` ( ` role_id ` , ` model_type ` , ` model_id ` ) VALUES
( 5 , ' App\\Models\\User ' , 5 ) ;
-- Volcando estructura para tabla admision_2026.noticias
CREATE TABLE IF NOT EXISTS ` noticias ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` titulo ` varchar ( 220 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` slug ` varchar ( 260 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` descripcion_corta ` varchar ( 500 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` contenido ` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ,
` categoria ` varchar ( 80 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ' General ' ,
` tag_color ` varchar ( 30 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` imagen_path ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` imagen_url ` varchar ( 600 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` link_url ` varchar ( 600 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` link_texto ` varchar ( 120 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT ' Leer más ' ,
` fecha_publicacion ` datetime DEFAULT NULL ,
` publicado ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` destacado ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` orden ` int NOT NULL DEFAULT ' 0 ' ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
` deleted_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` uq_noticias_slug ` ( ` slug ` ) ,
KEY ` idx_noticias_publicado_fecha ` ( ` publicado ` , ` fecha_publicacion ` ) ,
KEY ` idx_noticias_categoria ` ( ` categoria ` ) ,
KEY ` idx_noticias_destacado ` ( ` destacado ` ) ,
KEY ` idx_noticias_deleted ` ( ` deleted_at ` )
) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.noticias: ~1 rows (aproximadamente)
DELETE FROM ` noticias ` ;
INSERT INTO ` noticias ` ( ` id ` , ` titulo ` , ` slug ` , ` descripcion_corta ` , ` contenido ` , ` categoria ` , ` tag_color ` , ` imagen_path ` , ` imagen_url ` , ` link_url ` , ` link_texto ` , ` fecha_publicacion ` , ` publicado ` , ` destacado ` , ` orden ` , ` created_at ` , ` updated_at ` , ` deleted_at ` ) VALUES
( 3 , ' noticia 1 ' , ' noticia-1 ' , ' descripcion corta ' , ' contenido extenso de la noticia ' , ' noticias ' , ' blue ' , ' noticias/KzNdtcm035xM8NQwFad4VDbB3cEoqEfDTdQmwG9Z.png ' , NULL , NULL , ' Leer más ' , ' 2026-02-17 14:51:01 ' , 1 , 1 , 0 , ' 2026-02-17 19:51:49 ' , ' 2026-02-17 19:51:49 ' , NULL ) ;
-- Volcando estructura para tabla admision_2026.pagos
CREATE TABLE IF NOT EXISTS ` pagos ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` postulante_id ` bigint unsigned NOT NULL ,
` tipo_pago ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` codigo_pago ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` utilizado ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` monto ` decimal ( 10 , 2 ) NOT NULL ,
` original_date ` timestamp NULL DEFAULT NULL ,
` confirmed_date ` timestamp NULL DEFAULT NULL ,
` fecha_pago ` timestamp NULL DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) USING BTREE ,
UNIQUE KEY ` pagos_codigo_pago_unique ` ( ` codigo_pago ` ) USING BTREE ,
KEY ` pagos_postulante_id_foreign ` ( ` postulante_id ` ) USING BTREE ,
CONSTRAINT ` pagos_postulante_id_foreign ` FOREIGN KEY ( ` postulante_id ` ) REFERENCES ` postulantes ` ( ` id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.pagos: ~0 rows (aproximadamente)
DELETE FROM ` pagos ` ;
-- Volcando estructura para tabla admision_2026.password_reset_tokens
CREATE TABLE IF NOT EXISTS ` password_reset_tokens ` (
` email ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` token ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` email ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.password_reset_tokens: ~0 rows (aproximadamente)
DELETE FROM ` password_reset_tokens ` ;
-- Volcando estructura para tabla admision_2026.permissions
CREATE TABLE IF NOT EXISTS ` permissions ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` guard_name ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` permissions_name_guard_name_unique ` ( ` name ` , ` guard_name ` )
) ENGINE = InnoDB AUTO_INCREMENT = 9 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.permissions: ~4 rows (aproximadamente)
DELETE FROM ` permissions ` ;
INSERT INTO ` permissions ` ( ` id ` , ` name ` , ` guard_name ` , ` created_at ` , ` updated_at ` ) VALUES
( 1 , ' ver-preguntas ' , ' web ' , ' 2026-02-13 21:27:26 ' , ' 2026-02-13 21:27:26 ' ) ,
( 2 , ' crear-preguntas ' , ' web ' , ' 2026-02-13 21:27:26 ' , ' 2026-02-13 21:27:26 ' ) ,
( 3 , ' editar-preguntas ' , ' web ' , ' 2026-02-13 21:27:26 ' , ' 2026-02-13 21:27:26 ' ) ,
( 4 , ' eliminar-preguntas ' , ' web ' , ' 2026-02-13 21:27:26 ' , ' 2026-02-13 21:27:26 ' ) ,
( 5 , ' ver-cursos ' , ' web ' , ' 2026-02-13 21:27:26 ' , ' 2026-02-13 21:27:26 ' ) ,
( 6 , ' crear-cursos ' , ' web ' , ' 2026-02-13 21:27:26 ' , ' 2026-02-13 21:27:26 ' ) ,
( 7 , ' editar-cursos ' , ' web ' , ' 2026-02-13 21:27:26 ' , ' 2026-02-13 21:27:26 ' ) ,
( 8 , ' eliminar-cursos ' , ' web ' , ' 2026-02-13 21:27:26 ' , ' 2026-02-13 21:27:26 ' ) ;
-- Volcando estructura para tabla admision_2026.personal_access_tokens
CREATE TABLE IF NOT EXISTS ` personal_access_tokens ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` tokenable_type ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` tokenable_id ` bigint unsigned NOT NULL ,
` name ` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` token ` varchar ( 64 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` abilities ` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ,
` last_used_at ` timestamp NULL DEFAULT NULL ,
` expires_at ` timestamp NULL DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` personal_access_tokens_token_unique ` ( ` token ` ) ,
KEY ` personal_access_tokens_tokenable_type_tokenable_id_index ` ( ` tokenable_type ` , ` tokenable_id ` ) ,
KEY ` personal_access_tokens_expires_at_index ` ( ` expires_at ` )
) ENGINE = InnoDB AUTO_INCREMENT = 75 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.personal_access_tokens: ~3 rows (aproximadamente)
DELETE FROM ` personal_access_tokens ` ;
INSERT INTO ` personal_access_tokens ` ( ` id ` , ` tokenable_type ` , ` tokenable_id ` , ` name ` , ` token ` , ` abilities ` , ` last_used_at ` , ` expires_at ` , ` created_at ` , ` updated_at ` ) VALUES
( 46 , ' App\\Models\\User ' , 2 , ' api_token ' , ' dc172c99f9d46ff643b75db1fce280cf28ca2184ccc31576bf170e5abe5c0bbe ' , ' ["*"] ' , ' 2026-02-13 21:33:51 ' , ' 2026-02-14 09:33:46 ' , ' 2026-02-13 21:33:46 ' , ' 2026-02-13 21:33:51 ' ) ;
-- Volcando estructura para tabla admision_2026.postulantes
CREATE TABLE IF NOT EXISTS ` postulantes ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) NOT NULL ,
` email ` varchar ( 255 ) NOT NULL ,
` password ` varchar ( 255 ) NOT NULL ,
` dni ` varchar ( 20 ) NOT NULL ,
` device_id ` varchar ( 100 ) DEFAULT NULL ,
` last_activity ` timestamp NULL DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ,
` updated_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` email ` ( ` email ` ) ,
UNIQUE KEY ` dni ` ( ` dni ` )
) ENGINE = InnoDB AUTO_INCREMENT = 7 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ;
-- Volcando datos para la tabla admision_2026.postulantes: ~0 rows (aproximadamente)
DELETE FROM ` postulantes ` ;
INSERT INTO ` postulantes ` ( ` id ` , ` name ` , ` email ` , ` password ` , ` dni ` , ` device_id ` , ` last_activity ` , ` created_at ` , ` updated_at ` ) VALUES
( 6 , ' Elmer Yujra Condori ' , ' elmer26@gmail.com ' , ' $2y$12$wqDpRA9Ek6mKjsnBWAOvlOn0yUdWV1eln1MaLmuZptWorTvEWG6t6 ' , ' 73903851 ' , NULL , NULL , ' 2026-02-13 18:40:08 ' , ' 2026-02-17 19:02:44 ' ) ;
-- Volcando estructura para tabla admision_2026.preguntas
CREATE TABLE IF NOT EXISTS ` preguntas ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` curso_id ` bigint unsigned NOT NULL ,
` enunciado ` longtext NOT NULL ,
` enunciado_adicional ` longtext ,
` opciones ` json DEFAULT NULL ,
` respuesta_correcta ` longtext ,
` explicacion ` longtext ,
` imagenes_explicacion ` json DEFAULT NULL ,
` imagenes ` json DEFAULT NULL ,
` nivel_dificultad ` varchar ( 20 ) DEFAULT NULL ,
` activo ` tinyint ( 1 ) NOT NULL DEFAULT ' 1 ' ,
` created_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ,
` updated_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
PRIMARY KEY ( ` id ` ) ,
KEY ` idx_preguntas_curso ` ( ` curso_id ` ) ,
KEY ` idx_preguntas_activo ` ( ` activo ` ) ,
CONSTRAINT ` fk_preguntas_curso ` FOREIGN KEY ( ` curso_id ` ) REFERENCES ` cursos ` ( ` id ` ) ON DELETE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 14 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ;
-- Volcando datos para la tabla admision_2026.preguntas: ~7 rows (aproximadamente)
DELETE FROM ` preguntas ` ;
INSERT INTO ` preguntas ` ( ` id ` , ` curso_id ` , ` enunciado ` , ` enunciado_adicional ` , ` opciones ` , ` respuesta_correcta ` , ` explicacion ` , ` imagenes_explicacion ` , ` imagenes ` , ` nivel_dificultad ` , ` activo ` , ` created_at ` , ` updated_at ` ) VALUES
( 7 , 4 , ' $$ 2x + 7 = 19 $$ ' , ' $$ 2x + 7 = 19 $$ ' , ' ["$$ 2x + 7 = 19 $$", "$$ 2x + 7 ="] ' , ' $$ 2x + 7 = ' , ' $$ 2x + 7 = 19 $$ ' , ' [] ' , ' [] ' , ' medio ' , 1 , ' 2026-02-13 21:40:16 ' , ' 2026-02-13 21:40:16 ' ) ,
( 8 , 4 , ' Resolver la siguiente integral:\r\n$$\r\n\\int_0^2 x^3\\,dx = \\left[\\frac{x^4}{4}\\right]_0^2 = \\frac{16}{4} = 4\r\n$$ ' , ' Resolver la siguiente integral:\r\n$$\r\n\\int_0^2 x^3\\,dx = \\left[\\frac{x^4}{4}\\right]_0^2 = \\frac{16}{4} = 4\r\n$$ ' , ' ["FEWEFWEFWEFW", "FEEFW"] ' , ' FEEFW ' , ' FEWEFWFEEFWResolver la siguiente integral:\r\n$$\r\n\\int_0^2 x^3\\,dx = \\left[\\frac{x^4}{4}\\right]_0^2 = \\frac{16}{4} = 4\r\n$$ ' , ' [] ' , ' ["http://127.0.0.1:8000/storage/preguntas/enunciados/7eiL0SNx7z4EpgfK8PNxe09ocxt0GBR8O7dddPVq.png"] ' , ' medio ' , 1 , ' 2026-02-13 21:41:34 ' , ' 2026-02-16 08:00:54 ' ) ,
( 9 , 4 , ' FEWEFWEFWEFWEFWEFW ' , NULL , ' ["$$ \\\\int_0^2 x^3 \\\\, dx $$", "$$ \\\\int_0^2 x^3 \\\\,$$"] ' , ' $$ \\int_0^2 x^3 \\,$$ ' , ' FEEFWEFW ' , ' [] ' , ' [] ' , ' medio ' , 1 , ' 2026-02-13 21:41:55 ' , ' 2026-02-16 08:02:02 ' ) ,
( 10 , 4 , ' Resolver la siguiente integral:\r\n$$\r\n\\int_0^2 x^3\\,dx = \\left[\\frac{x^4}{4}\\right]_0^2 = \\frac{16}{4} = 4\r\n$$ ' , ' twtwewteWETTWEtwe ' , ' ["twetwe", "wttwe", "Resolver la siguiente integral:\\n$$\\n\\\\int_0^2 x^3\\\\,dx = \\\\left[\\\\frac{x^4}{4}\\\\right]_0^2 = \\\\frac{16}{4} = 4\\n$$"] ' , ' wttwe ' , ' twtwtwtWETWTEWTEW ' , ' [] ' , ' ["http://127.0.0.1:8000/storage/preguntas/enunciados/y26OCN43bCkYNXbK7mx5i675diFvKkD0alAw0Eqo.png"] ' , ' medio ' , 1 , ' 2026-02-13 21:42:11 ' , ' 2026-02-16 08:01:10 ' ) ,
( 11 , 3 , ' WTTWWTETWTWEETW ' , ' TWEETWETWTWE ' , ' ["TEWETW", "ETWETWTWE", "TWETW"] ' , ' TWETW ' , ' ETWETWETW ' , ' [] ' , ' [] ' , ' medio ' , 1 , ' 2026-02-13 21:42:43 ' , ' 2026-02-13 21:42:43 ' ) ,
( 12 , 3 , ' RWWRRWERWE ' , ' FWEFWEWEFFWE ' , ' ["FWEEFWEFW", "FEWEFW", "FEWEFWEFW"] ' , ' FEWEFWEFW ' , ' FWFWEFWEFEW ' , ' [] ' , ' [] ' , ' medio ' , 1 , ' 2026-02-13 21:42:58 ' , ' 2026-02-13 21:42:58 ' ) ,
( 13 , 3 , ' EFWEFWEFWEFW ' , ' FEWFEW ' , ' ["EFWEFWEW", "EFWEFWEE", "EFWEFW"] ' , ' EFWEFW ' , ' EFWEFW ' , ' [] ' , ' [] ' , ' medio ' , 1 , ' 2026-02-13 21:43:21 ' , ' 2026-02-13 21:43:21 ' ) ;
-- Volcando estructura para tabla admision_2026.preguntas_asignadas
CREATE TABLE IF NOT EXISTS ` preguntas_asignadas ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` examen_id ` bigint unsigned NOT NULL ,
` pregunta_id ` bigint unsigned NOT NULL ,
` orden ` int NOT NULL ,
` respuesta_usuario ` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT ' Clave elegida (A, B, C, D) o texto si es abierta ' ,
` es_correcta ` tinyint ( 1 ) NOT NULL DEFAULT ' 2 ' COMMENT ' 1 correcta, 0 incorrecta, 2 blanco ' ,
` estado ` enum ( ' pendiente ' , ' respondida ' , ' anulada ' ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ' pendiente ' ,
` puntaje ` decimal ( 5 , 2 ) NOT NULL DEFAULT ' 0.00 ' ,
` respondida_at ` timestamp NULL DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ,
` updated_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
PRIMARY KEY ( ` id ` ) USING BTREE ,
KEY ` idx_preg_asig_examen ` ( ` examen_id ` ) USING BTREE ,
KEY ` idx_preg_asig_pregunta ` ( ` pregunta_id ` ) USING BTREE ,
KEY ` idx_preg_asig_estado ` ( ` estado ` ) USING BTREE ,
CONSTRAINT ` fk_preg_asig_examen ` FOREIGN KEY ( ` examen_id ` ) REFERENCES ` examenes ` ( ` id ` ) ON DELETE CASCADE ,
CONSTRAINT ` fk_preg_asig_pregunta ` FOREIGN KEY ( ` pregunta_id ` ) REFERENCES ` preguntas ` ( ` id ` ) ON DELETE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 48 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.preguntas_asignadas: ~3 rows (aproximadamente)
DELETE FROM ` preguntas_asignadas ` ;
INSERT INTO ` preguntas_asignadas ` ( ` id ` , ` examen_id ` , ` pregunta_id ` , ` orden ` , ` respuesta_usuario ` , ` es_correcta ` , ` estado ` , ` puntaje ` , ` respondida_at ` , ` created_at ` , ` updated_at ` ) VALUES
( 45 , 21 , 11 , 1 , ' TEWETW ' , 0 , ' respondida ' , 0 . 00 , ' 2026-02-17 18:42:15 ' , ' 2026-02-17 18:42:12 ' , ' 2026-02-17 18:42:25 ' ) ,
( 46 , 21 , 13 , 2 , ' EFWEFWEW ' , 0 , ' respondida ' , 0 . 00 , ' 2026-02-17 18:42:17 ' , ' 2026-02-17 18:42:13 ' , ' 2026-02-17 18:42:25 ' ) ,
( 47 , 21 , 9 , 3 , ' $$ \\int_0^2 x^3 \\, dx $$ ' , 0 , ' respondida ' , 0 . 00 , ' 2026-02-17 18:42:19 ' , ' 2026-02-17 18:42:13 ' , ' 2026-02-17 18:42:25 ' ) ;
-- Volcando estructura para tabla admision_2026.procesos
CREATE TABLE IF NOT EXISTS ` procesos ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` nombre ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` descripcion ` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ,
` estado ` varchar ( 30 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ' borrador ' ,
` duracion ` int NOT NULL COMMENT ' Duración total en minutos ' ,
` intentos_maximos ` int DEFAULT ' 1 ' ,
` requiere_pago ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` precio ` decimal ( 8 , 2 ) DEFAULT NULL ,
` calificacion_id ` bigint unsigned DEFAULT NULL ,
` slug ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` tipo_simulacro ` varchar ( 50 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ' simulacro | test | practica ' ,
` tipo_proceso ` varchar ( 50 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ' admision | preuniversitario | universitario ' ,
` activo ` tinyint ( 1 ) NOT NULL DEFAULT ' 1 ' ,
` publico ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` fecha_inicio ` datetime DEFAULT NULL ,
` fecha_fin ` datetime DEFAULT NULL ,
` tiempo_por_pregunta ` int DEFAULT NULL COMMENT ' Segundos por pregunta ' ,
` cantidad_pregunta ` int DEFAULT ' 10 ' ,
` created_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ,
` updated_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` slug ` ( ` slug ` ) ,
KEY ` idx_examenes_estado ` ( ` estado ` ) ,
KEY ` idx_examenes_activo ` ( ` activo ` ) ,
KEY ` idx_examenes_publico ` ( ` publico ` ) ,
KEY ` idx_examenes_tipo_simulacro ` ( ` tipo_simulacro ` ) ,
KEY ` idx_examenes_tipo_proceso ` ( ` tipo_proceso ` )
) ENGINE = InnoDB AUTO_INCREMENT = 3 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.procesos: ~1 rows (aproximadamente)
DELETE FROM ` procesos ` ;
INSERT INTO ` procesos ` ( ` id ` , ` nombre ` , ` descripcion ` , ` estado ` , ` duracion ` , ` intentos_maximos ` , ` requiere_pago ` , ` precio ` , ` calificacion_id ` , ` slug ` , ` tipo_simulacro ` , ` tipo_proceso ` , ` activo ` , ` publico ` , ` fecha_inicio ` , ` fecha_fin ` , ` tiempo_por_pregunta ` , ` cantidad_pregunta ` , ` created_at ` , ` updated_at ` ) VALUES
( 2 , ' test1 ' , ' prueba de admision ' , ' borrador ' , 5 , 1 , 0 , NULL , 1 , ' test1-698f5330e6eb2 ' , ' admision ' , ' test ' , 1 , 1 , NULL , NULL , NULL , 10 , ' 2026-02-13 21:37:04 ' , ' 2026-02-17 13:42:01 ' ) ;
-- Volcando estructura para tabla admision_2026.procesos_admision
CREATE TABLE IF NOT EXISTS ` procesos_admision ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` titulo ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` subtitulo ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` descripcion ` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ,
` slug ` varchar ( 120 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` tipo_proceso ` varchar ( 60 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` modalidad ` varchar ( 50 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` publicado ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` fecha_publicacion ` datetime DEFAULT NULL ,
` fecha_inicio_preinscripcion ` datetime DEFAULT NULL ,
` fecha_fin_preinscripcion ` datetime DEFAULT NULL ,
` fecha_inicio_inscripcion ` datetime DEFAULT NULL ,
` fecha_fin_inscripcion ` datetime DEFAULT NULL ,
` fecha_examen1 ` datetime DEFAULT NULL ,
` fecha_examen2 ` datetime DEFAULT NULL ,
` fecha_resultados ` datetime DEFAULT NULL ,
` fecha_inicio_biometrico ` datetime DEFAULT NULL ,
` fecha_fin_biometrico ` datetime DEFAULT NULL ,
` imagen_path ` varchar ( 500 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` banner_path ` varchar ( 500 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` brochure_path ` varchar ( 500 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` link_preinscripcion ` varchar ( 500 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` link_inscripcion ` varchar ( 500 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` link_resultados ` varchar ( 500 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` link_reglamento ` varchar ( 500 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` estado ` enum ( ' nuevo ' , ' publicado ' , ' en_proceso ' , ' finalizado ' , ' cancelado ' ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ' nuevo ' ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` uq_procesos_slug ` ( ` slug ` ) ,
KEY ` idx_procesos_publico ` ( ` publicado ` , ` estado ` ) ,
KEY ` idx_procesos_fechas ` ( ` fecha_inicio_inscripcion ` , ` fecha_examen1 ` )
) ENGINE = InnoDB AUTO_INCREMENT = 3 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.procesos_admision: ~0 rows (aproximadamente)
DELETE FROM ` procesos_admision ` ;
-- Volcando estructura para tabla admision_2026.proceso_admision_detalles
CREATE TABLE IF NOT EXISTS ` proceso_admision_detalles ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` proceso_admision_id ` bigint unsigned NOT NULL ,
` tipo ` enum ( ' requisitos ' , ' pagos ' , ' vacantes ' , ' cronograma ' ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` titulo_detalle ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` descripcion ` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ,
` listas ` json DEFAULT NULL ,
` meta ` json DEFAULT NULL ,
` url ` varchar ( 500 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` imagen_path ` varchar ( 500 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` imagen_path_2 ` varchar ( 500 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
KEY ` idx_detalles_lookup ` ( ` proceso_admision_id ` , ` tipo ` ) ,
CONSTRAINT ` fk_detalles_proceso ` FOREIGN KEY ( ` proceso_admision_id ` ) REFERENCES ` procesos_admision ` ( ` id ` ) ON DELETE CASCADE ,
CONSTRAINT ` proceso_admision_detalles_chk_1 ` CHECK ( json_valid ( ` listas ` ) ) ,
CONSTRAINT ` proceso_admision_detalles_chk_2 ` CHECK ( json_valid ( ` meta ` ) )
) ENGINE = InnoDB AUTO_INCREMENT = 9 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.proceso_admision_detalles: ~4 rows (aproximadamente)
DELETE FROM ` proceso_admision_detalles ` ;
-- Volcando estructura para tabla admision_2026.proceso_admision_resultado_archivos
CREATE TABLE IF NOT EXISTS ` proceso_admision_resultado_archivos ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` proceso_admision_id ` bigint unsigned NOT NULL ,
` nombre ` varchar ( 255 ) COLLATE utf8mb4_unicode_ci NOT NULL ,
` file_path ` varchar ( 255 ) COLLATE utf8mb4_unicode_ci NOT NULL ,
` orden ` tinyint unsigned NOT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` uniq_proceso_orden ` ( ` proceso_admision_id ` , ` orden ` ) ,
CONSTRAINT ` proceso_admision_resultado_archivos_proceso_admision_id_foreign ` FOREIGN KEY ( ` proceso_admision_id ` ) REFERENCES ` procesos_admision ` ( ` id ` ) ON DELETE CASCADE
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.proceso_admision_resultado_archivos: ~0 rows (aproximadamente)
DELETE FROM ` proceso_admision_resultado_archivos ` ;
-- Volcando estructura para tabla admision_2026.reglas_area_proceso
CREATE TABLE IF NOT EXISTS ` reglas_area_proceso ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` area_proceso_id ` bigint unsigned NOT NULL ,
` curso_id ` bigint unsigned NOT NULL ,
` cantidad_preguntas ` int NOT NULL DEFAULT ' 0 ' ,
` orden ` int NOT NULL DEFAULT ' 1 ' ,
` nivel_dificultad ` varchar ( 50 ) DEFAULT ' medio ' ,
` ponderacion ` decimal ( 5 , 2 ) DEFAULT ' 0.00 ' ,
` created_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ,
` updated_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
PRIMARY KEY ( ` id ` ) ,
KEY ` area_proceso_id ` ( ` area_proceso_id ` ) ,
KEY ` curso_id ` ( ` curso_id ` ) ,
CONSTRAINT ` reglas_area_proceso_ibfk_1 ` FOREIGN KEY ( ` area_proceso_id ` ) REFERENCES ` area_proceso ` ( ` id ` ) ,
CONSTRAINT ` reglas_area_proceso_ibfk_2 ` FOREIGN KEY ( ` curso_id ` ) REFERENCES ` cursos ` ( ` id ` )
) ENGINE = InnoDB AUTO_INCREMENT = 16 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ;
-- Volcando datos para la tabla admision_2026.reglas_area_proceso: ~0 rows (aproximadamente)
DELETE FROM ` reglas_area_proceso ` ;
INSERT INTO ` reglas_area_proceso ` ( ` id ` , ` area_proceso_id ` , ` curso_id ` , ` cantidad_preguntas ` , ` orden ` , ` nivel_dificultad ` , ` ponderacion ` , ` created_at ` , ` updated_at ` ) VALUES
( 10 , 3 , 4 , 1 , 1 , ' medio ' , 5 . 00 , ' 2026-02-13 21:46:46 ' , ' 2026-02-13 21:46:46 ' ) ,
( 11 , 3 , 3 , 2 , 2 , ' medio ' , 5 . 00 , ' 2026-02-13 21:47:33 ' , ' 2026-02-13 21:47:33 ' ) ,
( 14 , 4 , 3 , 2 , 1 , ' medio ' , 5 . 00 , ' 2026-02-13 21:48:33 ' , ' 2026-02-13 21:48:33 ' ) ,
( 15 , 4 , 4 , 1 , 2 , ' medio ' , 5 . 00 , ' 2026-02-13 21:48:33 ' , ' 2026-02-13 21:48:33 ' ) ;
-- Volcando estructura para tabla admision_2026.resultados_admision
CREATE TABLE IF NOT EXISTS ` resultados_admision ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` dni ` varchar ( 20 ) NOT NULL ,
` paterno ` varchar ( 100 ) NOT NULL ,
` materno ` varchar ( 100 ) NOT NULL ,
` nombres ` varchar ( 150 ) NOT NULL ,
` puntaje ` decimal ( 6 , 2 ) DEFAULT ' 0.00 ' ,
` vocacional ` decimal ( 6 , 2 ) DEFAULT ' 0.00 ' ,
` apto ` enum ( ' SI ' , ' NO ' ) DEFAULT ' NO ' ,
` obs ` text ,
` desprograma ` tinyint ( 1 ) DEFAULT ' 0 ' ,
` idproceso ` bigint unsigned NOT NULL ,
` idearea ` bigint unsigned NOT NULL ,
` litho ` varchar ( 50 ) DEFAULT NULL ,
` numlectura ` varchar ( 50 ) DEFAULT NULL ,
` tipo ` varchar ( 50 ) DEFAULT NULL ,
` calificar ` tinyint ( 1 ) DEFAULT ' 1 ' ,
` aula ` varchar ( 50 ) DEFAULT NULL ,
` respuestas ` json DEFAULT NULL ,
` puesto ` int DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ,
` updated_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
PRIMARY KEY ( ` id ` ) ,
KEY ` idx_dni ` ( ` dni ` ) ,
KEY ` idx_proceso ` ( ` idproceso ` ) ,
KEY ` idx_area ` ( ` idearea ` ) ,
CONSTRAINT ` fk_resultado_area_admision ` FOREIGN KEY ( ` idearea ` ) REFERENCES ` areas_admision ` ( ` id ` ) ON DELETE CASCADE ,
CONSTRAINT ` fk_resultado_proceso_admision ` FOREIGN KEY ( ` idproceso ` ) REFERENCES ` procesos_admision ` ( ` id ` ) ON DELETE CASCADE
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ;
-- Volcando datos para la tabla admision_2026.resultados_admision: ~0 rows (aproximadamente)
DELETE FROM ` resultados_admision ` ;
-- Volcando estructura para tabla admision_2026.resultados_admision_carga
CREATE TABLE IF NOT EXISTS ` resultados_admision_carga ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` dni ` varchar ( 20 ) DEFAULT NULL ,
` paterno ` varchar ( 100 ) DEFAULT NULL ,
` materno ` varchar ( 100 ) DEFAULT NULL ,
` nombres ` varchar ( 150 ) DEFAULT NULL ,
` idproceso ` bigint unsigned NOT NULL ,
` idearea ` bigint unsigned NOT NULL ,
` apto ` char ( 20 ) DEFAULT NULL ,
` puntaje_total ` decimal ( 8 , 2 ) DEFAULT NULL ,
` puesto ` int DEFAULT NULL ,
` correctas_aritmetica ` int DEFAULT NULL ,
` blancas_aritmetica ` int DEFAULT NULL ,
` puntaje_aritmetica ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_aritmetica ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_algebra ` int DEFAULT NULL ,
` blancas_algebra ` int DEFAULT NULL ,
` puntaje_algebra ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_algebra ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_geometria ` int DEFAULT NULL ,
` blancas_geometria ` int DEFAULT NULL ,
` puntaje_geometria ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_geometria ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_trigonometria ` int DEFAULT NULL ,
` blancas_trigonometria ` int DEFAULT NULL ,
` puntaje_trigonometria ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_trigonometria ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_fisica ` int DEFAULT NULL ,
` blancas_fisica ` int DEFAULT NULL ,
` puntaje_fisica ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_fisica ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_quimica ` int DEFAULT NULL ,
` blancas_quimica ` int DEFAULT NULL ,
` puntaje_quimica ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_quimica ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_biologia_anatomia ` int DEFAULT NULL ,
` blancas_biologia_anatomia ` int DEFAULT NULL ,
` puntaje_biologia_anatomia ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_biologia_anatomia ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_psicologia_filosofia ` int DEFAULT NULL ,
` blancas_psicologia_filosofia ` int DEFAULT NULL ,
` puntaje_psicologia_filosofia ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_psicologia_filosofia ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_geografia ` int DEFAULT NULL ,
` blancas_geografia ` int DEFAULT NULL ,
` puntaje_geografia ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_geografia ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_historia ` int DEFAULT NULL ,
` blancas_historia ` int DEFAULT NULL ,
` puntaje_historia ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_historia ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_educacion_civica ` int DEFAULT NULL ,
` blancas_educacion_civica ` int DEFAULT NULL ,
` puntaje_educacion_civica ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_educacion_civica ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_economia ` int DEFAULT NULL ,
` blancas_economia ` int DEFAULT NULL ,
` puntaje_economia ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_economia ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_comunicacion ` int DEFAULT NULL ,
` blancas_comunicacion ` int DEFAULT NULL ,
` puntaje_comunicacion ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_comunicacion ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_literatura ` int DEFAULT NULL ,
` blancas_literatura ` int DEFAULT NULL ,
` puntaje_literatura ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_literatura ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_razonamiento_matematico ` int DEFAULT NULL ,
` blancas_razonamiento_matematico ` int DEFAULT NULL ,
` puntaje_razonamiento_matematico ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_razonamiento_matematico ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_razonamiento_verbal ` int DEFAULT NULL ,
` blancas_razonamiento_verbal ` int DEFAULT NULL ,
` puntaje_razonamiento_verbal ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_razonamiento_verbal ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_ingles ` int DEFAULT NULL ,
` blancas_ingles ` int DEFAULT NULL ,
` puntaje_ingles ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_ingles ` decimal ( 5 , 2 ) DEFAULT NULL ,
` correctas_quechua_aimara ` int DEFAULT NULL ,
` blancas_quechua_aimara ` int DEFAULT NULL ,
` puntaje_quechua_aimara ` decimal ( 6 , 2 ) DEFAULT NULL ,
` porcentaje_quechua_aimara ` decimal ( 5 , 2 ) DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ,
PRIMARY KEY ( ` id ` ) ,
KEY ` idx_dni ` ( ` dni ` ) ,
KEY ` idx_proceso_area ` ( ` idproceso ` , ` idearea ` ) ,
KEY ` fk_carga_area ` ( ` idearea ` ) ,
CONSTRAINT ` fk_carga_area ` FOREIGN KEY ( ` idearea ` ) REFERENCES ` areas_admision ` ( ` id ` ) ON DELETE CASCADE ,
CONSTRAINT ` fk_carga_proceso ` FOREIGN KEY ( ` idproceso ` ) REFERENCES ` procesos_admision ` ( ` id ` ) ON DELETE CASCADE
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ;
-- Volcando datos para la tabla admision_2026.resultados_admision_carga: ~0 rows (aproximadamente)
DELETE FROM ` resultados_admision_carga ` ;
-- Volcando estructura para tabla admision_2026.resultados_examenes
CREATE TABLE IF NOT EXISTS ` resultados_examenes ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` postulante_id ` bigint unsigned NOT NULL ,
` examen_id ` bigint unsigned NOT NULL ,
` total_puntos ` decimal ( 8 , 3 ) NOT NULL ,
` correctas_por_curso ` json NOT NULL ,
` incorrectas_por_curso ` json DEFAULT NULL ,
` preguntas_totales_por_curso ` json DEFAULT NULL ,
` total_correctas ` int NOT NULL ,
` total_incorrectas ` int NOT NULL ,
` total_nulas ` int NOT NULL ,
` porcentaje_correctas ` double ( 5 , 2 ) NOT NULL ,
` calificacion_sobre_20 ` double ( 5 , 2 ) NOT NULL ,
` orden_merito ` int DEFAULT NULL ,
` probabilidad_ingreso ` float DEFAULT NULL ,
` programa_recomendado ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) USING BTREE ,
KEY ` resultados_examenes_postulante_id_foreign ` ( ` postulante_id ` ) USING BTREE ,
KEY ` resultados_examenes_examen_id_foreign ` ( ` examen_id ` ) USING BTREE ,
CONSTRAINT ` resultados_examenes_examen_id_foreign ` FOREIGN KEY ( ` examen_id ` ) REFERENCES ` examenes ` ( ` id ` ) ON DELETE CASCADE ,
CONSTRAINT ` resultados_examenes_postulante_id_foreign ` FOREIGN KEY ( ` postulante_id ` ) REFERENCES ` postulantes ` ( ` id ` ) ON DELETE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 12 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.resultados_examenes: ~0 rows (aproximadamente)
DELETE FROM ` resultados_examenes ` ;
INSERT INTO ` resultados_examenes ` ( ` id ` , ` postulante_id ` , ` examen_id ` , ` total_puntos ` , ` correctas_por_curso ` , ` incorrectas_por_curso ` , ` preguntas_totales_por_curso ` , ` total_correctas ` , ` total_incorrectas ` , ` total_nulas ` , ` porcentaje_correctas ` , ` calificacion_sobre_20 ` , ` orden_merito ` , ` probabilidad_ingreso ` , ` programa_recomendado ` , ` created_at ` , ` updated_at ` ) VALUES
( 11 , 6 , 21 , 0 . 000 , ' {"Matematica": "0 de 2", "Comunicacion": "0 de 1"} ' , ' {"Matematica": 2, "Comunicacion": 1} ' , ' {"Matematica": 2, "Comunicacion": 1} ' , 0 , 3 , 0 , 0 . 00 , 0 . 00 , 1 , NULL , NULL , ' 2026-02-17 18:42:25 ' , ' 2026-02-17 18:42:25 ' ) ;
-- Volcando estructura para tabla admision_2026.roles
CREATE TABLE IF NOT EXISTS ` roles ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` guard_name ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` roles_name_guard_name_unique ` ( ` name ` , ` guard_name ` )
) ENGINE = InnoDB AUTO_INCREMENT = 7 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.roles: ~0 rows (aproximadamente)
DELETE FROM ` roles ` ;
INSERT INTO ` roles ` ( ` id ` , ` name ` , ` guard_name ` , ` created_at ` , ` updated_at ` ) VALUES
( 4 , ' usuario ' , ' web ' , ' 2026-02-13 21:27:26 ' , ' 2026-02-13 21:27:26 ' ) ,
( 5 , ' administrador ' , ' web ' , ' 2026-02-13 21:27:26 ' , ' 2026-02-13 21:27:26 ' ) ,
( 6 , ' superadmin ' , ' web ' , ' 2026-02-13 21:27:26 ' , ' 2026-02-13 21:27:26 ' ) ;
-- Volcando estructura para tabla admision_2026.role_has_permissions
CREATE TABLE IF NOT EXISTS ` role_has_permissions ` (
` permission_id ` bigint unsigned NOT NULL ,
` role_id ` bigint unsigned NOT NULL ,
PRIMARY KEY ( ` permission_id ` , ` role_id ` ) ,
KEY ` role_has_permissions_role_id_foreign ` ( ` role_id ` ) ,
CONSTRAINT ` role_has_permissions_permission_id_foreign ` FOREIGN KEY ( ` permission_id ` ) REFERENCES ` permissions ` ( ` id ` ) ON DELETE CASCADE ,
CONSTRAINT ` role_has_permissions_role_id_foreign ` FOREIGN KEY ( ` role_id ` ) REFERENCES ` roles ` ( ` id ` ) ON DELETE CASCADE
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.role_has_permissions: ~0 rows (aproximadamente)
DELETE FROM ` role_has_permissions ` ;
INSERT INTO ` role_has_permissions ` ( ` permission_id ` , ` role_id ` ) VALUES
( 1 , 5 ) ,
( 2 , 5 ) ,
( 3 , 5 ) ,
( 4 , 5 ) ,
( 5 , 5 ) ,
( 6 , 5 ) ,
( 7 , 5 ) ,
( 8 , 5 ) ,
( 1 , 6 ) ,
( 2 , 6 ) ,
( 3 , 6 ) ,
( 4 , 6 ) ,
( 5 , 6 ) ,
( 6 , 6 ) ,
( 7 , 6 ) ,
( 8 , 6 ) ;
-- Volcando estructura para tabla admision_2026.sessions
CREATE TABLE IF NOT EXISTS ` sessions ` (
` id ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` user_id ` bigint unsigned DEFAULT NULL ,
` ip_address ` varchar ( 45 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` user_agent ` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ,
` payload ` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` last_activity ` int NOT NULL ,
PRIMARY KEY ( ` id ` ) ,
KEY ` sessions_user_id_index ` ( ` user_id ` ) ,
KEY ` sessions_last_activity_index ` ( ` last_activity ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.sessions: ~0 rows (aproximadamente)
DELETE FROM ` sessions ` ;
-- Volcando estructura para tabla admision_2026.users
CREATE TABLE IF NOT EXISTS ` users ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` email ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` email_verified_at ` timestamp NULL DEFAULT NULL ,
` password ` varchar ( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ,
` remember_token ` varchar ( 100 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` users_email_unique ` ( ` email ` )
) ENGINE = InnoDB AUTO_INCREMENT = 6 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- Volcando datos para la tabla admision_2026.users: ~1 rows (aproximadamente)
DELETE FROM ` users ` ;
INSERT INTO ` users ` ( ` id ` , ` name ` , ` email ` , ` email_verified_at ` , ` password ` , ` remember_token ` , ` created_at ` , ` updated_at ` ) VALUES
( 5 , ' Elmer Admin ' , ' elmer20@gmail.com ' , NULL , ' $2y$12$dFWOcwAPv3v3oQzeO/JJbOyP7IgfI6uMSk3XIpWYTOSNxMf9WhqFm ' , NULL , ' 2026-02-13 21:36:09 ' , ' 2026-02-13 21:36:09 ' ) ;
/* !40103 SET TIME_ZONE=IFNULL(@OLD_TIME_ZONE, 'system') */ ;
/* !40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */ ;
/* !40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */ ;
/* !40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */ ;
/* !40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */ ;