@ -1,59 +1,19 @@
-- --------------------------------------------------------
-- 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
-- --------------------------------------------------------
mysqldump : [ Warning ] Using a password on the command line interface can be insecure .
/* !40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */ ;
/* !40101 SET NAMES utf8 */ ;
/* !40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */ ;
/* !40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */ ;
/* !50503 SET NAMES utf8mb4 */ ;
/* !40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */ ;
/* !40103 SET TIME_ZONE='+00:00' */ ;
/* !40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */ ;
/* !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
DROP DATABASE IF EXISTS ` 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
DROP TABLE IF EXISTS ` 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 = 3 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.areas_admision
DROP TABLE IF EXISTS ` 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 ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.area_curso
DROP TABLE IF EXISTS ` area_curso ` ;
CREATE TABLE IF NOT EXISTS ` area_curso ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` area_curso ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` area_id ` bigint unsigned NOT NULL ,
` curso_id ` bigint unsigned NOT NULL ,
@ -65,12 +25,11 @@ CREATE TABLE IF NOT EXISTS `area_curso` (
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 = 5 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.area_proceso
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` area_proceso ` ;
CREATE TABLE IF NOT EXISTS ` area_proceso ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` area_proceso ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` area_id ` bigint unsigned NOT NULL ,
` proceso_id ` bigint unsigned NOT NULL ,
@ -82,36 +41,62 @@ CREATE TABLE IF NOT EXISTS `area_proceso` (
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 = 3 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.cache
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` areas ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 = 3 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` areas_admision ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` cache ` ;
CREATE TABLE IF NOT EXISTS ` cache ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.cache_locks
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` cache_locks ` ;
CREATE TABLE IF NOT EXISTS ` cache_locks ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.cursos
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` cursos ` ;
CREATE TABLE IF NOT EXISTS ` cursos ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` cursos ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` nombre ` varchar ( 100 ) NOT NULL ,
` codigo ` varchar ( 20 ) NOT NULL ,
@ -124,12 +109,11 @@ CREATE TABLE IF NOT EXISTS `cursos` (
KEY ` idx_cursos_activo ` ( ` activo ` ) ,
KEY ` idx_cursos_codigo ` ( ` codigo ` )
) ENGINE = InnoDB AUTO_INCREMENT = 3 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.examenes
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` examenes ` ;
CREATE TABLE IF NOT EXISTS ` examenes ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` examenes ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` postulante_id ` bigint unsigned NOT NULL ,
` area_proceso_id ` bigint unsigned NOT NULL ,
@ -146,12 +130,11 @@ CREATE TABLE IF NOT EXISTS `examenes` (
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 = 9 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.failed_jobs
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` failed_jobs ` ;
CREATE TABLE IF NOT EXISTS ` failed_jobs ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ,
@ -162,28 +145,11 @@ CREATE TABLE IF NOT EXISTS `failed_jobs` (
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` failed_jobs_uuid_unique ` ( ` uuid ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.jobs
DROP TABLE IF EXISTS ` 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 ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.job_batches
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` job_batches ` ;
CREATE TABLE IF NOT EXISTS ` job_batches ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ,
@ -196,23 +162,45 @@ CREATE TABLE IF NOT EXISTS `job_batches` (
` finished_at ` int DEFAULT NULL ,
PRIMARY KEY ( ` id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.migrations
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` jobs ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` migrations ` ;
CREATE TABLE IF NOT EXISTS ` migrations ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ;
) ENGINE = InnoDB AUTO_INCREMENT = 12 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
-- La exportación de datos fue deseleccionada.
INSERT INTO ` migrations ` VALUES
( 1 , ' 0001_01_01_000000_create_users_table ' , 1 ) ,
( 2 , ' 0001_01_01_000001_create_cache_table ' , 1 ) ,
( 3 , ' 0001_01_01_000002_create_jobs_table ' , 1 ) ,
( 4 , ' 2026_01_27_132900_create_personal_access_tokens_table ' , 1 ) ,
( 5 , ' 2026_01_27_133609_create_permission_tables ' , 1 ) ,
( 6 , ' 2026_02_15_051618_fix_unique_constraint_proceso_admision_detalles ' , 2 ) ;
-- Volcando estructura para tabla admision_2026.model_has_permissions
DROP TABLE IF EXISTS ` model_has_permissions ` ;
CREATE TABLE IF NOT EXISTS ` model_has_permissions ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ,
@ -220,12 +208,11 @@ CREATE TABLE IF NOT EXISTS `model_has_permissions` (
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 ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.model_has_roles
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` model_has_roles ` ;
CREATE TABLE IF NOT EXISTS ` model_has_roles ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ,
@ -233,12 +220,11 @@ CREATE TABLE IF NOT EXISTS `model_has_roles` (
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 ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.pagos
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` pagos ` ;
CREATE TABLE IF NOT EXISTS ` pagos ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ,
@ -255,23 +241,21 @@ CREATE TABLE IF NOT EXISTS `pagos` (
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 ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.password_reset_tokens
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` password_reset_tokens ` ;
CREATE TABLE IF NOT EXISTS ` password_reset_tokens ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.permissions
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` permissions ` ;
CREATE TABLE IF NOT EXISTS ` permissions ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ,
@ -279,13 +263,12 @@ CREATE TABLE IF NOT EXISTS `permissions` (
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` permissions_name_guard_name_unique ` ( ` name ` , ` guard_name ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.personal_access_tokens
) ENGINE = InnoDB AUTO_INCREMENT = 9 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` personal_access_tokens ` ;
CREATE TABLE IF NOT EXISTS ` personal_access_tokens ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ,
@ -300,13 +283,12 @@ CREATE TABLE IF NOT EXISTS `personal_access_tokens` (
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 = 37 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.postulantes
) ENGINE = InnoDB AUTO_INCREMENT = 41 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` postulantes ` ;
CREATE TABLE IF NOT EXISTS ` postulantes ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` postulantes ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 255 ) NOT NULL ,
` email ` varchar ( 255 ) NOT NULL ,
@ -320,12 +302,11 @@ CREATE TABLE IF NOT EXISTS `postulantes` (
UNIQUE KEY ` email ` ( ` email ` ) ,
UNIQUE KEY ` dni ` ( ` dni ` )
) ENGINE = InnoDB AUTO_INCREMENT = 6 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.preguntas
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` preguntas ` ;
CREATE TABLE IF NOT EXISTS ` preguntas ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` preguntas ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` curso_id ` bigint unsigned NOT NULL ,
` enunciado ` longtext NOT NULL ,
@ -344,19 +325,18 @@ CREATE TABLE IF NOT EXISTS `preguntas` (
KEY ` idx_preguntas_activo ` ( ` activo ` ) ,
CONSTRAINT ` fk_preguntas_curso ` FOREIGN KEY ( ` curso_id ` ) REFERENCES ` cursos ` ( ` id ` ) ON DELETE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 7 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.preguntas_asignadas
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` preguntas_asignadas ` ;
CREATE TABLE IF NOT EXISTS ` preguntas_asignadas ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ` varchar ( 20 ) C OLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT ' Clave elegida (A, B, C, D) o texto si es abierta ' ,
` respuesta_usuario ` varchar ( 20 ) C HARACTER SET utf8mb4 C OLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT ' Clave elegida (A, B, C, D) o texto si es abierta ' ,
` es_correcta ` tinyint ( 1 ) DEFAULT NULL COMMENT ' 1 correcta, 0 incorrecta, NULL no respondida ' ,
` estado ` enum ( ' pendiente ' , ' respondida ' , ' anulada ' ) C OLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ' pendiente ' ,
` estado ` enum ( ' pendiente ' , ' respondida ' , ' anulada ' ) C HARACTER SET utf8mb4 C OLLATE 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 ,
@ -368,12 +348,35 @@ CREATE TABLE IF NOT EXISTS `preguntas_asignadas` (
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 = 9 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.procesos
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` proceso_admision_detalles ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ` ) ,
UNIQUE KEY ` uq_proceso_tipo ` ( ` proceso_admision_id ` , ` tipo ` ) ,
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 ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` procesos ` ;
CREATE TABLE IF NOT EXISTS ` procesos ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ,
@ -402,19 +405,18 @@ CREATE TABLE IF NOT EXISTS `procesos` (
KEY ` idx_examenes_tipo_simulacro ` ( ` tipo_simulacro ` ) ,
KEY ` idx_examenes_tipo_proceso ` ( ` tipo_proceso ` )
) ENGINE = InnoDB AUTO_INCREMENT = 2 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.procesos_admision
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` procesos_admision ` ;
CREATE TABLE IF NOT EXISTS ` procesos_admision ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` procesos_admision ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` titulo ` varchar ( 255 ) COLLATE utf8mb4_unicode_ci NOT NULL ,
` subtitulo ` varchar ( 255 ) C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` descripcion ` text C OLLATE utf8mb4_unicode_ci ,
` slug ` varchar ( 120 ) C OLLATE utf8mb4_unicode_ci NOT NULL ,
` tipo_proceso ` varchar ( 60 ) C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` modalidad ` varchar ( 50 ) C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` titulo ` varchar ( 255 ) C HARACTER SET utf8mb4 C OLLATE utf8mb4_unicode_ci NOT NULL ,
` subtitulo ` varchar ( 255 ) C HARACTER SET utf8mb4 C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` descripcion ` text C HARACTER SET utf8mb4 C OLLATE utf8mb4_unicode_ci ,
` slug ` varchar ( 120 ) C HARACTER SET utf8mb4 C OLLATE utf8mb4_unicode_ci NOT NULL ,
` tipo_proceso ` varchar ( 60 ) C HARACTER SET utf8mb4 C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` modalidad ` varchar ( 50 ) C HARACTER SET utf8mb4 C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` publicado ` tinyint ( 1 ) NOT NULL DEFAULT ' 0 ' ,
` fecha_publicacion ` datetime DEFAULT NULL ,
` fecha_inicio_preinscripcion ` datetime DEFAULT NULL ,
@ -426,52 +428,26 @@ CREATE TABLE IF NOT EXISTS `procesos_admision` (
` fecha_resultados ` datetime DEFAULT NULL ,
` fecha_inicio_biometrico ` datetime DEFAULT NULL ,
` fecha_fin_biometrico ` datetime DEFAULT NULL ,
` imagen_path ` varchar ( 500 ) C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` banner_path ` varchar ( 500 ) C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` brochure_path ` varchar ( 500 ) C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` link_preinscripcion ` varchar ( 500 ) C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` link_inscripcion ` varchar ( 500 ) C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` link_resultados ` varchar ( 500 ) C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` link_reglamento ` varchar ( 500 ) C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` estado ` enum ( ' nuevo ' , ' publicado ' , ' en_proceso ' , ' finalizado ' , ' cancelado ' ) C OLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ' nuevo ' ,
` imagen_path ` varchar ( 500 ) C HARACTER SET utf8mb4 C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` banner_path ` varchar ( 500 ) C HARACTER SET utf8mb4 C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` brochure_path ` varchar ( 500 ) C HARACTER SET utf8mb4 C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` link_preinscripcion ` varchar ( 500 ) C HARACTER SET utf8mb4 C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` link_inscripcion ` varchar ( 500 ) C HARACTER SET utf8mb4 C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` link_resultados ` varchar ( 500 ) C HARACTER SET utf8mb4 C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` link_reglamento ` varchar ( 500 ) C HARACTER SET utf8mb4 C OLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` estado ` enum ( ' nuevo ' , ' publicado ' , ' en_proceso ' , ' finalizado ' , ' cancelado ' ) C HARACTER SET utf8mb4 C OLLATE 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 = 2 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.proceso_admision_detalles
DROP TABLE IF EXISTS ` 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 ' ) COLLATE utf8mb4_unicode_ci NOT NULL ,
` titulo_detalle ` varchar ( 255 ) COLLATE utf8mb4_unicode_ci NOT NULL ,
` descripcion ` text COLLATE utf8mb4_unicode_ci ,
` listas ` json DEFAULT NULL ,
` meta ` json DEFAULT NULL ,
` url ` varchar ( 500 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` imagen_path ` varchar ( 500 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` imagen_path_2 ` varchar ( 500 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
` created_at ` timestamp NULL DEFAULT NULL ,
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` uq_proceso_modalidad_tipo ` ( ` proceso_admision_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 = 2 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.reglas_area_proceso
) ENGINE = InnoDB AUTO_INCREMENT = 3 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` reglas_area_proceso ` ;
CREATE TABLE IF NOT EXISTS ` reglas_area_proceso ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` reglas_area_proceso ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` area_proceso_id ` bigint unsigned NOT NULL ,
` curso_id ` bigint unsigned NOT NULL ,
@ -487,12 +463,11 @@ CREATE TABLE IF NOT EXISTS `reglas_area_proceso` (
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 = 8 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.resultados_admision
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` resultados_admision ` ;
CREATE TABLE IF NOT EXISTS ` resultados_admision ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` resultados_admision ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` dni ` varchar ( 20 ) NOT NULL ,
` paterno ` varchar ( 100 ) NOT NULL ,
@ -521,12 +496,11 @@ CREATE TABLE IF NOT EXISTS `resultados_admision` (
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 ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.resultados_admision_carga
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` resultados_admision_carga ` ;
CREATE TABLE IF NOT EXISTS ` resultados_admision_carga ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` resultados_admision_carga ` (
` id ` bigint unsigned NOT NULL AUTO_INCREMENT ,
` dni ` varchar ( 20 ) DEFAULT NULL ,
` paterno ` varchar ( 100 ) DEFAULT NULL ,
@ -617,26 +591,11 @@ CREATE TABLE IF NOT EXISTS `resultados_admision_carga` (
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 ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.roles
DROP TABLE IF EXISTS ` 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 = 4 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.role_has_permissions
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` role_has_permissions ` ;
CREATE TABLE IF NOT EXISTS ` role_has_permissions ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` role_has_permissions ` (
` permission_id ` bigint unsigned NOT NULL ,
` role_id ` bigint unsigned NOT NULL ,
PRIMARY KEY ( ` permission_id ` , ` role_id ` ) ,
@ -644,12 +603,24 @@ CREATE TABLE IF NOT EXISTS `role_has_permissions` (
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 ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.sessions
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` roles ` ;
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` sessions ` ;
CREATE TABLE IF NOT EXISTS ` sessions ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ,
@ -660,12 +631,11 @@ CREATE TABLE IF NOT EXISTS `sessions` (
KEY ` sessions_user_id_index ` ( ` user_id ` ) ,
KEY ` sessions_last_activity_index ` ( ` last_activity ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla admision_2026.users
/* !40101 SET character_set_client = @saved_cs_client */ ;
DROP TABLE IF EXISTS ` users ` ;
CREATE TABLE IF NOT EXISTS ` users ` (
/* !40101 SET @saved_cs_client = @@character_set_client */ ;
/* !50503 SET character_set_client = utf8mb4 */ ;
CREATE TABLE ` 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 ,
@ -676,12 +646,15 @@ CREATE TABLE IF NOT EXISTS `users` (
` updated_at ` timestamp NULL DEFAULT NULL ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` users_email_unique ` ( ` email ` )
) ENGINE = InnoDB AUTO_INCREMENT = 2 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
-- La exportación de datos fue deseleccionada.
) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ;
/* !40101 SET character_set_client = @saved_cs_client */ ;
/* !40103 SET TIME_ZONE=@OLD_TIME_ZONE */ ;
/* !4010 3 SET TIME_ZONE=IFNULL(@OLD_TIME_ZONE, 'system') */ ;
/* !40 101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */ ;
/* !40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */ ;
/* !4010 1 SET SQL_MODE=@OLD_SQL_MODE */ ;
/* !40 014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */ ;
/* !40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */ ;
/* !40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */ ;
/* !40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */ ;
/* !40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */ ;
/* !40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */ ;
/* !40111 SET SQL_NOTES=@OLD_SQL_NOTES */ ;