· 8 years ago · Dec 13, 2017, 09:54 PM
1-- MySQL dump 10.13 Distrib 5.7.20, for Linux (i686)
2--
3-- Host: localhost Database: banco_datos
4-- ------------------------------------------------------
5-- Server version 5.7.20-0ubuntu0.17.10.1
6
7/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10/*!40101 SET NAMES utf8 */;
11/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12/*!40103 SET TIME_ZONE='+00:00' */;
13/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17
18--
19-- Table structure for table `antecedentes`
20--
21
22DROP TABLE IF EXISTS `antecedentes`;
23/*!40101 SET @saved_cs_client = @@character_set_client */;
24/*!40101 SET character_set_client = utf8 */;
25CREATE TABLE `antecedentes` (
26 `id` int(10) NOT NULL AUTO_INCREMENT,
27 `id_aspirante` int(10) NOT NULL,
28 `id_area` int(10) NOT NULL,
29 `anio` varchar(4) DEFAULT NULL,
30 `semestre` varchar(10) DEFAULT NULL,
31 `tipo_profesor` varchar(20) NOT NULL,
32 `codigo_profesor` varchar(20) DEFAULT NULL,
33 `dedicacion` varchar(20) DEFAULT NULL,
34 `docencia_superior` tinyint(1) DEFAULT NULL,
35 `certificaciones_evaluacion` json DEFAULT NULL,
36 PRIMARY KEY (`id`),
37 KEY `id_aspirante` (`id_aspirante`),
38 KEY `id_area` (`id_area`),
39 CONSTRAINT `antecedentes_ibfk_1` FOREIGN KEY (`id_aspirante`) REFERENCES `usuarios` (`id`),
40 CONSTRAINT `antecedentes_ibfk_2` FOREIGN KEY (`id_area`) REFERENCES `areas` (`id`)
41) ENGINE=InnoDB DEFAULT CHARSET=utf8;
42/*!40101 SET character_set_client = @saved_cs_client */;
43
44--
45-- Dumping data for table `antecedentes`
46--
47
48LOCK TABLES `antecedentes` WRITE;
49/*!40000 ALTER TABLE `antecedentes` DISABLE KEYS */;
50/*!40000 ALTER TABLE `antecedentes` ENABLE KEYS */;
51UNLOCK TABLES;
52
53--
54-- Table structure for table `areas`
55--
56
57DROP TABLE IF EXISTS `areas`;
58/*!40101 SET @saved_cs_client = @@character_set_client */;
59/*!40101 SET character_set_client = utf8 */;
60CREATE TABLE `areas` (
61 `id` int(10) NOT NULL AUTO_INCREMENT,
62 `id_departamento` int(10) NOT NULL,
63 `codigo` varchar(20) DEFAULT NULL,
64 `nombre` varchar(100) DEFAULT NULL,
65 PRIMARY KEY (`id`),
66 KEY `id_departamento` (`id_departamento`),
67 CONSTRAINT `areas_ibfk_1` FOREIGN KEY (`id_departamento`) REFERENCES `departamentos` (`id`)
68) ENGINE=InnoDB DEFAULT CHARSET=utf8;
69/*!40101 SET character_set_client = @saved_cs_client */;
70
71--
72-- Dumping data for table `areas`
73--
74
75LOCK TABLES `areas` WRITE;
76/*!40000 ALTER TABLE `areas` DISABLE KEYS */;
77/*!40000 ALTER TABLE `areas` ENABLE KEYS */;
78UNLOCK TABLES;
79
80--
81-- Table structure for table `departamentos`
82--
83
84DROP TABLE IF EXISTS `departamentos`;
85/*!40101 SET @saved_cs_client = @@character_set_client */;
86/*!40101 SET character_set_client = utf8 */;
87CREATE TABLE `departamentos` (
88 `id` int(10) NOT NULL AUTO_INCREMENT,
89 `id_facultad` int(10) NOT NULL,
90 `codigo` varchar(20) DEFAULT NULL,
91 `nombre` varchar(100) DEFAULT NULL,
92 PRIMARY KEY (`id`),
93 KEY `id_facultad` (`id_facultad`),
94 CONSTRAINT `departamentos_ibfk_1` FOREIGN KEY (`id_facultad`) REFERENCES `facultades` (`id`)
95) ENGINE=InnoDB DEFAULT CHARSET=utf8;
96/*!40101 SET character_set_client = @saved_cs_client */;
97
98--
99-- Dumping data for table `departamentos`
100--
101
102LOCK TABLES `departamentos` WRITE;
103/*!40000 ALTER TABLE `departamentos` DISABLE KEYS */;
104/*!40000 ALTER TABLE `departamentos` ENABLE KEYS */;
105UNLOCK TABLES;
106
107--
108-- Table structure for table `ejecutorias`
109--
110
111DROP TABLE IF EXISTS `ejecutorias`;
112/*!40101 SET @saved_cs_client = @@character_set_client */;
113/*!40101 SET character_set_client = utf8 */;
114CREATE TABLE `ejecutorias` (
115 `id` int(10) NOT NULL AUTO_INCREMENT,
116 `nombre` varchar(100) DEFAULT NULL,
117 PRIMARY KEY (`id`)
118) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8;
119/*!40101 SET character_set_client = @saved_cs_client */;
120
121--
122-- Dumping data for table `ejecutorias`
123--
124
125LOCK TABLES `ejecutorias` WRITE;
126/*!40000 ALTER TABLE `ejecutorias` DISABLE KEYS */;
127INSERT INTO `ejecutorias` VALUES (1,'Perfeccionamiento Académico'),(2,'EstadÃa postdoctoral'),(3,'Investigaciones'),(4,'Proyectos'),(5,'Publicaciones en revistas, periódicos, boletines y gacetas'),(6,'Libros'),(7,'Folletos'),(8,'Apuntes'),(9,'MonografÃas y Ensayos'),(10,'Material didáctico y de Apoyo docente'),(11,'Programas de Estudio'),(12,'Conferencias o disertaciones'),(13,'Ponencias'),(14,'Seminarios extracurriculares o diplomados dictados'),(15,'Traducciones'),(16,'Estudios de Factibilidad, asesorÃas, planos, etc'),(17,'Poemarios, libretos teatrales, recitales, dirección, etc'),(18,'Exposiciones'),(19,'Premios internacionales y nacionales'),(20,'Labor administrativa');
128/*!40000 ALTER TABLE `ejecutorias` ENABLE KEYS */;
129UNLOCK TABLES;
130
131--
132-- Table structure for table `evaluacionesProfesor`
133--
134
135DROP TABLE IF EXISTS `evaluacionesProfesor`;
136/*!40101 SET @saved_cs_client = @@character_set_client */;
137/*!40101 SET character_set_client = utf8 */;
138CREATE TABLE `evaluacionesProfesor` (
139 `id` int(10) NOT NULL AUTO_INCREMENT,
140 `id_participacion` int(10) NOT NULL,
141 `id_comisionado` int(10) DEFAULT NULL,
142 `numero_certificacion` varchar(20) DEFAULT NULL,
143 `descripcion` varchar(50) DEFAULT NULL,
144 `conocimiento` float DEFAULT NULL,
145 PRIMARY KEY (`id`),
146 KEY `id_participacion` (`id_participacion`),
147 KEY `id_comisionado` (`id_comisionado`),
148 CONSTRAINT `evaluacionesProfesor_ibfk_1` FOREIGN KEY (`id_participacion`) REFERENCES `participaciones` (`id`),
149 CONSTRAINT `evaluacionesProfesor_ibfk_2` FOREIGN KEY (`id_comisionado`) REFERENCES `usuarios` (`id`)
150) ENGINE=InnoDB DEFAULT CHARSET=utf8;
151/*!40101 SET character_set_client = @saved_cs_client */;
152
153--
154-- Dumping data for table `evaluacionesProfesor`
155--
156
157LOCK TABLES `evaluacionesProfesor` WRITE;
158/*!40000 ALTER TABLE `evaluacionesProfesor` DISABLE KEYS */;
159/*!40000 ALTER TABLE `evaluacionesProfesor` ENABLE KEYS */;
160UNLOCK TABLES;
161
162--
163-- Table structure for table `experienciasOtras`
164--
165
166DROP TABLE IF EXISTS `experienciasOtras`;
167/*!40101 SET @saved_cs_client = @@character_set_client */;
168/*!40101 SET character_set_client = utf8 */;
169CREATE TABLE `experienciasOtras` (
170 `id` int(10) NOT NULL AUTO_INCREMENT,
171 `nombre` varchar(100) DEFAULT NULL,
172 PRIMARY KEY (`id`)
173) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
174/*!40101 SET character_set_client = @saved_cs_client */;
175
176--
177-- Dumping data for table `experienciasOtras`
178--
179
180LOCK TABLES `experienciasOtras` WRITE;
181/*!40000 ALTER TABLE `experienciasOtras` DISABLE KEYS */;
182INSERT INTO `experienciasOtras` VALUES (1,'Profesor Tiempo Completo'),(2,'Profesor Tiempo Parcial'),(3,'Asistente Tiempo Completo'),(4,'Asistente Tiempo Parcial');
183/*!40000 ALTER TABLE `experienciasOtras` ENABLE KEYS */;
184UNLOCK TABLES;
185
186--
187-- Table structure for table `experienciasProfesionales`
188--
189
190DROP TABLE IF EXISTS `experienciasProfesionales`;
191/*!40101 SET @saved_cs_client = @@character_set_client */;
192/*!40101 SET character_set_client = utf8 */;
193CREATE TABLE `experienciasProfesionales` (
194 `id` int(10) NOT NULL AUTO_INCREMENT,
195 `id_participacion` int(10) NOT NULL,
196 `id_comisionado` int(10) DEFAULT NULL,
197 `numero_certificacion` varchar(20) DEFAULT NULL,
198 `institucion` varchar(100) DEFAULT NULL,
199 `cargo` varchar(50) DEFAULT NULL,
200 `anio` varchar(4) DEFAULT NULL,
201 `conocimiento` float DEFAULT NULL,
202 `afin` float DEFAULT NULL,
203 `cultural` float DEFAULT NULL,
204 `observacion` varchar(50) DEFAULT NULL,
205 PRIMARY KEY (`id`),
206 KEY `id_participacion` (`id_participacion`),
207 KEY `id_comisionado` (`id_comisionado`),
208 CONSTRAINT `experienciasProfesionales_ibfk_1` FOREIGN KEY (`id_participacion`) REFERENCES `participaciones` (`id`),
209 CONSTRAINT `experienciasProfesionales_ibfk_2` FOREIGN KEY (`id_comisionado`) REFERENCES `usuarios` (`id`)
210) ENGINE=InnoDB DEFAULT CHARSET=utf8;
211/*!40101 SET character_set_client = @saved_cs_client */;
212
213--
214-- Dumping data for table `experienciasProfesionales`
215--
216
217LOCK TABLES `experienciasProfesionales` WRITE;
218/*!40000 ALTER TABLE `experienciasProfesionales` DISABLE KEYS */;
219/*!40000 ALTER TABLE `experienciasProfesionales` ENABLE KEYS */;
220UNLOCK TABLES;
221
222--
223-- Table structure for table `experienciasUp`
224--
225
226DROP TABLE IF EXISTS `experienciasUp`;
227/*!40101 SET @saved_cs_client = @@character_set_client */;
228/*!40101 SET character_set_client = utf8 */;
229CREATE TABLE `experienciasUp` (
230 `id` int(10) NOT NULL AUTO_INCREMENT,
231 `nombre` varchar(100) DEFAULT NULL,
232 PRIMARY KEY (`id`)
233) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
234/*!40101 SET character_set_client = @saved_cs_client */;
235
236--
237-- Dumping data for table `experienciasUp`
238--
239
240LOCK TABLES `experienciasUp` WRITE;
241/*!40000 ALTER TABLE `experienciasUp` DISABLE KEYS */;
242INSERT INTO `experienciasUp` VALUES (1,'Profesor Especial Tiempo Completo'),(2,'Profesor Especial Tiempo Parcial'),(3,'Profesor Asistente Tiempo Completo'),(4,'Profesor Asistente Tiempo Parcial');
243/*!40000 ALTER TABLE `experienciasUp` ENABLE KEYS */;
244UNLOCK TABLES;
245
246--
247-- Table structure for table `facultades`
248--
249
250DROP TABLE IF EXISTS `facultades`;
251/*!40101 SET @saved_cs_client = @@character_set_client */;
252/*!40101 SET character_set_client = utf8 */;
253CREATE TABLE `facultades` (
254 `id` int(10) NOT NULL AUTO_INCREMENT,
255 `id_sede` int(10) NOT NULL,
256 `codigo` varchar(20) DEFAULT NULL,
257 `nombre` varchar(100) DEFAULT NULL,
258 PRIMARY KEY (`id`),
259 KEY `id_sede` (`id_sede`),
260 CONSTRAINT `facultades_ibfk_1` FOREIGN KEY (`id_sede`) REFERENCES `sedes` (`id`)
261) ENGINE=InnoDB DEFAULT CHARSET=utf8;
262/*!40101 SET character_set_client = @saved_cs_client */;
263
264--
265-- Dumping data for table `facultades`
266--
267
268LOCK TABLES `facultades` WRITE;
269/*!40000 ALTER TABLE `facultades` DISABLE KEYS */;
270/*!40000 ALTER TABLE `facultades` ENABLE KEYS */;
271UNLOCK TABLES;
272
273--
274-- Table structure for table `ofertas`
275--
276
277DROP TABLE IF EXISTS `ofertas`;
278/*!40101 SET @saved_cs_client = @@character_set_client */;
279/*!40101 SET character_set_client = utf8 */;
280CREATE TABLE `ofertas` (
281 `id` int(10) NOT NULL AUTO_INCREMENT,
282 `id_area` int(10) NOT NULL,
283 `tipo_profesor` varchar(20) NOT NULL,
284 `extraordinaria` tinyint(1) DEFAULT '0',
285 PRIMARY KEY (`id`),
286 KEY `id_area` (`id_area`),
287 CONSTRAINT `ofertas_ibfk_1` FOREIGN KEY (`id_area`) REFERENCES `areas` (`id`)
288) ENGINE=InnoDB DEFAULT CHARSET=utf8;
289/*!40101 SET character_set_client = @saved_cs_client */;
290
291--
292-- Dumping data for table `ofertas`
293--
294
295LOCK TABLES `ofertas` WRITE;
296/*!40000 ALTER TABLE `ofertas` DISABLE KEYS */;
297/*!40000 ALTER TABLE `ofertas` ENABLE KEYS */;
298UNLOCK TABLES;
299
300--
301-- Table structure for table `participaciones`
302--
303
304DROP TABLE IF EXISTS `participaciones`;
305/*!40101 SET @saved_cs_client = @@character_set_client */;
306/*!40101 SET character_set_client = utf8 */;
307CREATE TABLE `participaciones` (
308 `id` int(10) NOT NULL AUTO_INCREMENT,
309 `id_aspirante` int(10) NOT NULL,
310 `id_oferta` int(10) NOT NULL,
311 `id_secretario` int(10) DEFAULT NULL,
312 `tipo_profesor` varchar(20) DEFAULT NULL,
313 `habilitada` tinyint(1) DEFAULT '0',
314 `estado` varchar(20) NOT NULL,
315 `observacion` varchar(200) DEFAULT NULL,
316 `documentos` json DEFAULT NULL,
317 `fecha_registro` date DEFAULT NULL,
318 `fecha_modificacion` date DEFAULT NULL,
319 `fecha_habilitacion` date DEFAULT NULL,
320 PRIMARY KEY (`id`),
321 KEY `id_aspirante` (`id_aspirante`),
322 KEY `id_oferta` (`id_oferta`),
323 KEY `id_secretario` (`id_secretario`),
324 CONSTRAINT `participaciones_ibfk_1` FOREIGN KEY (`id_aspirante`) REFERENCES `usuarios` (`id`),
325 CONSTRAINT `participaciones_ibfk_2` FOREIGN KEY (`id_oferta`) REFERENCES `ofertas` (`id`),
326 CONSTRAINT `participaciones_ibfk_3` FOREIGN KEY (`id_secretario`) REFERENCES `usuarios` (`id`)
327) ENGINE=InnoDB DEFAULT CHARSET=utf8;
328/*!40101 SET character_set_client = @saved_cs_client */;
329
330--
331-- Dumping data for table `participaciones`
332--
333
334LOCK TABLES `participaciones` WRITE;
335/*!40000 ALTER TABLE `participaciones` DISABLE KEYS */;
336/*!40000 ALTER TABLE `participaciones` ENABLE KEYS */;
337UNLOCK TABLES;
338
339--
340-- Table structure for table `participaciones_ejecutorias`
341--
342
343DROP TABLE IF EXISTS `participaciones_ejecutorias`;
344/*!40101 SET @saved_cs_client = @@character_set_client */;
345/*!40101 SET character_set_client = utf8 */;
346CREATE TABLE `participaciones_ejecutorias` (
347 `id` int(10) NOT NULL AUTO_INCREMENT,
348 `id_participacion` int(10) NOT NULL,
349 `id_ejecutoria` int(10) NOT NULL,
350 `id_comisionado` int(10) DEFAULT NULL,
351 `numero_certificacion` varchar(20) DEFAULT NULL,
352 `descripcion` varchar(20) DEFAULT NULL,
353 `conocimiento` float DEFAULT NULL,
354 `afin` float DEFAULT NULL,
355 `cultural` float DEFAULT NULL,
356 `observacion` varchar(50) DEFAULT NULL,
357 PRIMARY KEY (`id`),
358 KEY `id_participacion` (`id_participacion`),
359 KEY `id_ejecutoria` (`id_ejecutoria`),
360 KEY `id_comisionado` (`id_comisionado`),
361 CONSTRAINT `participaciones_ejecutorias_ibfk_1` FOREIGN KEY (`id_participacion`) REFERENCES `participaciones` (`id`),
362 CONSTRAINT `participaciones_ejecutorias_ibfk_2` FOREIGN KEY (`id_ejecutoria`) REFERENCES `ejecutorias` (`id`),
363 CONSTRAINT `participaciones_ejecutorias_ibfk_3` FOREIGN KEY (`id_comisionado`) REFERENCES `usuarios` (`id`)
364) ENGINE=InnoDB DEFAULT CHARSET=utf8;
365/*!40101 SET character_set_client = @saved_cs_client */;
366
367--
368-- Dumping data for table `participaciones_ejecutorias`
369--
370
371LOCK TABLES `participaciones_ejecutorias` WRITE;
372/*!40000 ALTER TABLE `participaciones_ejecutorias` DISABLE KEYS */;
373/*!40000 ALTER TABLE `participaciones_ejecutorias` ENABLE KEYS */;
374UNLOCK TABLES;
375
376--
377-- Table structure for table `participaciones_experienciasOtras`
378--
379
380DROP TABLE IF EXISTS `participaciones_experienciasOtras`;
381/*!40101 SET @saved_cs_client = @@character_set_client */;
382/*!40101 SET character_set_client = utf8 */;
383CREATE TABLE `participaciones_experienciasOtras` (
384 `id` int(10) NOT NULL AUTO_INCREMENT,
385 `id_participacion` int(10) NOT NULL,
386 `id_experienciaOtras` int(10) NOT NULL,
387 `id_comisionado` int(10) DEFAULT NULL,
388 `numero_certificacion` varchar(20) DEFAULT NULL,
389 `conocimiento` float DEFAULT NULL,
390 `afin` float DEFAULT NULL,
391 `cultural` float DEFAULT NULL,
392 `observacion` varchar(50) DEFAULT NULL,
393 PRIMARY KEY (`id`),
394 KEY `id_participacion` (`id_participacion`),
395 KEY `id_experienciaOtras` (`id_experienciaOtras`),
396 KEY `id_comisionado` (`id_comisionado`),
397 CONSTRAINT `participaciones_experienciasOtras_ibfk_1` FOREIGN KEY (`id_participacion`) REFERENCES `participaciones` (`id`),
398 CONSTRAINT `participaciones_experienciasOtras_ibfk_2` FOREIGN KEY (`id_experienciaOtras`) REFERENCES `experienciasOtras` (`id`),
399 CONSTRAINT `participaciones_experienciasOtras_ibfk_3` FOREIGN KEY (`id_comisionado`) REFERENCES `usuarios` (`id`)
400) ENGINE=InnoDB DEFAULT CHARSET=utf8;
401/*!40101 SET character_set_client = @saved_cs_client */;
402
403--
404-- Dumping data for table `participaciones_experienciasOtras`
405--
406
407LOCK TABLES `participaciones_experienciasOtras` WRITE;
408/*!40000 ALTER TABLE `participaciones_experienciasOtras` DISABLE KEYS */;
409/*!40000 ALTER TABLE `participaciones_experienciasOtras` ENABLE KEYS */;
410UNLOCK TABLES;
411
412--
413-- Table structure for table `participaciones_experienciasUp`
414--
415
416DROP TABLE IF EXISTS `participaciones_experienciasUp`;
417/*!40101 SET @saved_cs_client = @@character_set_client */;
418/*!40101 SET character_set_client = utf8 */;
419CREATE TABLE `participaciones_experienciasUp` (
420 `id` int(10) NOT NULL AUTO_INCREMENT,
421 `id_participacion` int(10) NOT NULL,
422 `id_experienciaUp` int(10) NOT NULL,
423 `id_comisionado` int(10) DEFAULT NULL,
424 `numero_certificacion` varchar(20) DEFAULT NULL,
425 `conocimiento` float DEFAULT NULL,
426 `afin` float DEFAULT NULL,
427 `cultural` float DEFAULT NULL,
428 `observacion` varchar(50) DEFAULT NULL,
429 PRIMARY KEY (`id`),
430 KEY `id_participacion` (`id_participacion`),
431 KEY `id_experienciaUp` (`id_experienciaUp`),
432 KEY `id_comisionado` (`id_comisionado`),
433 CONSTRAINT `participaciones_experienciasUp_ibfk_1` FOREIGN KEY (`id_participacion`) REFERENCES `participaciones` (`id`),
434 CONSTRAINT `participaciones_experienciasUp_ibfk_2` FOREIGN KEY (`id_experienciaUp`) REFERENCES `experienciasUp` (`id`),
435 CONSTRAINT `participaciones_experienciasUp_ibfk_3` FOREIGN KEY (`id_comisionado`) REFERENCES `usuarios` (`id`)
436) ENGINE=InnoDB DEFAULT CHARSET=utf8;
437/*!40101 SET character_set_client = @saved_cs_client */;
438
439--
440-- Dumping data for table `participaciones_experienciasUp`
441--
442
443LOCK TABLES `participaciones_experienciasUp` WRITE;
444/*!40000 ALTER TABLE `participaciones_experienciasUp` DISABLE KEYS */;
445/*!40000 ALTER TABLE `participaciones_experienciasUp` ENABLE KEYS */;
446UNLOCK TABLES;
447
448--
449-- Table structure for table `participaciones_titulos`
450--
451
452DROP TABLE IF EXISTS `participaciones_titulos`;
453/*!40101 SET @saved_cs_client = @@character_set_client */;
454/*!40101 SET character_set_client = utf8 */;
455CREATE TABLE `participaciones_titulos` (
456 `id` int(10) NOT NULL AUTO_INCREMENT,
457 `id_participacion` int(10) NOT NULL,
458 `id_titulo` int(10) NOT NULL,
459 `id_comisionado` int(10) DEFAULT NULL,
460 `numero_certificacion` varchar(20) DEFAULT NULL,
461 `descripcion` varchar(20) DEFAULT NULL,
462 `conocimiento` float DEFAULT NULL,
463 `afin` float DEFAULT NULL,
464 `cultural` float DEFAULT NULL,
465 `observacion` varchar(50) DEFAULT NULL,
466 PRIMARY KEY (`id`),
467 KEY `id_participacion` (`id_participacion`),
468 KEY `id_titulo` (`id_titulo`),
469 KEY `id_comisionado` (`id_comisionado`),
470 CONSTRAINT `participaciones_titulos_ibfk_1` FOREIGN KEY (`id_participacion`) REFERENCES `participaciones` (`id`),
471 CONSTRAINT `participaciones_titulos_ibfk_2` FOREIGN KEY (`id_titulo`) REFERENCES `titulos` (`id`),
472 CONSTRAINT `participaciones_titulos_ibfk_3` FOREIGN KEY (`id_comisionado`) REFERENCES `usuarios` (`id`)
473) ENGINE=InnoDB DEFAULT CHARSET=utf8;
474/*!40101 SET character_set_client = @saved_cs_client */;
475
476--
477-- Dumping data for table `participaciones_titulos`
478--
479
480LOCK TABLES `participaciones_titulos` WRITE;
481/*!40000 ALTER TABLE `participaciones_titulos` DISABLE KEYS */;
482/*!40000 ALTER TABLE `participaciones_titulos` ENABLE KEYS */;
483UNLOCK TABLES;
484
485--
486-- Table structure for table `sedes`
487--
488
489DROP TABLE IF EXISTS `sedes`;
490/*!40101 SET @saved_cs_client = @@character_set_client */;
491/*!40101 SET character_set_client = utf8 */;
492CREATE TABLE `sedes` (
493 `id` int(10) NOT NULL AUTO_INCREMENT,
494 `codigo` varchar(20) NOT NULL,
495 `nombre` varchar(100) DEFAULT NULL,
496 PRIMARY KEY (`id`)
497) ENGINE=InnoDB DEFAULT CHARSET=utf8;
498/*!40101 SET character_set_client = @saved_cs_client */;
499
500--
501-- Dumping data for table `sedes`
502--
503
504LOCK TABLES `sedes` WRITE;
505/*!40000 ALTER TABLE `sedes` DISABLE KEYS */;
506/*!40000 ALTER TABLE `sedes` ENABLE KEYS */;
507UNLOCK TABLES;
508
509--
510-- Table structure for table `titulos`
511--
512
513DROP TABLE IF EXISTS `titulos`;
514/*!40101 SET @saved_cs_client = @@character_set_client */;
515/*!40101 SET character_set_client = utf8 */;
516CREATE TABLE `titulos` (
517 `id` int(10) NOT NULL AUTO_INCREMENT,
518 `nombre` varchar(100) DEFAULT NULL,
519 PRIMARY KEY (`id`)
520) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
521/*!40101 SET character_set_client = @saved_cs_client */;
522
523--
524-- Dumping data for table `titulos`
525--
526
527LOCK TABLES `titulos` WRITE;
528/*!40000 ALTER TABLE `titulos` DISABLE KEYS */;
529INSERT INTO `titulos` VALUES (1,'TÃtulo Básico'),(2,'Doctorado'),(3,'MaestrÃa'),(4,'Créditos completos de Doctorado o MaestrÃa'),(5,'Especializaciones a nivel de Postgrado'),(6,'TÃtulos en Docencia Superior, o Didáctica de la Especialidad'),(7,'Otros Créditos de Postgrado'),(8,'Otras Licenciaturas'),(9,'TÃtulos Técnicos, Profesorados');
530/*!40000 ALTER TABLE `titulos` ENABLE KEYS */;
531UNLOCK TABLES;
532
533--
534-- Table structure for table `usuarios`
535--
536
537DROP TABLE IF EXISTS `usuarios`;
538/*!40101 SET @saved_cs_client = @@character_set_client */;
539/*!40101 SET character_set_client = utf8 */;
540CREATE TABLE `usuarios` (
541 `id` int(10) NOT NULL AUTO_INCREMENT,
542 `tipo_usuario` varchar(20) NOT NULL,
543 `cedula` varchar(20) NOT NULL,
544 `contrasenia` varchar(200) NOT NULL,
545 `nombres` varchar(50) DEFAULT NULL,
546 `apellidos` varchar(50) DEFAULT NULL,
547 `correo` varchar(50) DEFAULT NULL,
548 `tel_fijo` varchar(10) DEFAULT NULL,
549 `tel_celular` varchar(11) DEFAULT NULL,
550 `direccion` varchar(100) DEFAULT NULL,
551 `fecha_registro` date DEFAULT NULL,
552 `fecha_modificacion` date DEFAULT NULL,
553 PRIMARY KEY (`id`),
554 UNIQUE KEY `cedula` (`cedula`)
555) ENGINE=InnoDB DEFAULT CHARSET=utf8;
556/*!40101 SET character_set_client = @saved_cs_client */;
557
558--
559-- Dumping data for table `usuarios`
560--
561
562LOCK TABLES `usuarios` WRITE;
563/*!40000 ALTER TABLE `usuarios` DISABLE KEYS */;
564/*!40000 ALTER TABLE `usuarios` ENABLE KEYS */;
565UNLOCK TABLES;
566
567--
568-- Table structure for table `usuarios_areas`
569--
570
571DROP TABLE IF EXISTS `usuarios_areas`;
572/*!40101 SET @saved_cs_client = @@character_set_client */;
573/*!40101 SET character_set_client = utf8 */;
574CREATE TABLE `usuarios_areas` (
575 `id` int(10) NOT NULL AUTO_INCREMENT,
576 `id_usuario` int(10) NOT NULL,
577 `id_area` int(10) NOT NULL,
578 PRIMARY KEY (`id`),
579 KEY `id_usuario` (`id_usuario`),
580 KEY `id_area` (`id_area`),
581 CONSTRAINT `usuarios_areas_ibfk_1` FOREIGN KEY (`id_usuario`) REFERENCES `usuarios` (`id`),
582 CONSTRAINT `usuarios_areas_ibfk_2` FOREIGN KEY (`id_area`) REFERENCES `areas` (`id`)
583) ENGINE=InnoDB DEFAULT CHARSET=utf8;
584/*!40101 SET character_set_client = @saved_cs_client */;
585
586--
587-- Dumping data for table `usuarios_areas`
588--
589
590LOCK TABLES `usuarios_areas` WRITE;
591/*!40000 ALTER TABLE `usuarios_areas` DISABLE KEYS */;
592/*!40000 ALTER TABLE `usuarios_areas` ENABLE KEYS */;
593UNLOCK TABLES;
594
595--
596-- Table structure for table `usuarios_departamentos`
597--
598
599DROP TABLE IF EXISTS `usuarios_departamentos`;
600/*!40101 SET @saved_cs_client = @@character_set_client */;
601/*!40101 SET character_set_client = utf8 */;
602CREATE TABLE `usuarios_departamentos` (
603 `id` int(10) NOT NULL AUTO_INCREMENT,
604 `id_usuario` int(10) NOT NULL,
605 `id_departamento` int(10) NOT NULL,
606 PRIMARY KEY (`id`),
607 KEY `id_usuario` (`id_usuario`),
608 KEY `id_departamento` (`id_departamento`),
609 CONSTRAINT `usuarios_departamentos_ibfk_1` FOREIGN KEY (`id_usuario`) REFERENCES `usuarios` (`id`),
610 CONSTRAINT `usuarios_departamentos_ibfk_2` FOREIGN KEY (`id_departamento`) REFERENCES `departamentos` (`id`)
611) ENGINE=InnoDB DEFAULT CHARSET=utf8;
612/*!40101 SET character_set_client = @saved_cs_client */;
613
614--
615-- Dumping data for table `usuarios_departamentos`
616--
617
618LOCK TABLES `usuarios_departamentos` WRITE;
619/*!40000 ALTER TABLE `usuarios_departamentos` DISABLE KEYS */;
620/*!40000 ALTER TABLE `usuarios_departamentos` ENABLE KEYS */;
621UNLOCK TABLES;
622
623--
624-- Table structure for table `usuarios_facultades`
625--
626
627DROP TABLE IF EXISTS `usuarios_facultades`;
628/*!40101 SET @saved_cs_client = @@character_set_client */;
629/*!40101 SET character_set_client = utf8 */;
630CREATE TABLE `usuarios_facultades` (
631 `id` int(10) NOT NULL AUTO_INCREMENT,
632 `id_usuario` int(10) NOT NULL,
633 `id_facultad` int(10) NOT NULL,
634 PRIMARY KEY (`id`),
635 KEY `id_usuario` (`id_usuario`),
636 KEY `id_facultad` (`id_facultad`),
637 CONSTRAINT `usuarios_facultades_ibfk_1` FOREIGN KEY (`id_usuario`) REFERENCES `usuarios` (`id`),
638 CONSTRAINT `usuarios_facultades_ibfk_2` FOREIGN KEY (`id_facultad`) REFERENCES `facultades` (`id`)
639) ENGINE=InnoDB DEFAULT CHARSET=utf8;
640/*!40101 SET character_set_client = @saved_cs_client */;
641
642--
643-- Dumping data for table `usuarios_facultades`
644--
645
646LOCK TABLES `usuarios_facultades` WRITE;
647/*!40000 ALTER TABLE `usuarios_facultades` DISABLE KEYS */;
648/*!40000 ALTER TABLE `usuarios_facultades` ENABLE KEYS */;
649UNLOCK TABLES;
650
651--
652-- Table structure for table `usuarios_sedes`
653--
654
655DROP TABLE IF EXISTS `usuarios_sedes`;
656/*!40101 SET @saved_cs_client = @@character_set_client */;
657/*!40101 SET character_set_client = utf8 */;
658CREATE TABLE `usuarios_sedes` (
659 `id` int(10) NOT NULL AUTO_INCREMENT,
660 `id_usuario` int(10) NOT NULL,
661 `id_sede` int(10) NOT NULL,
662 PRIMARY KEY (`id`),
663 KEY `id_usuario` (`id_usuario`),
664 KEY `id_sede` (`id_sede`),
665 CONSTRAINT `usuarios_sedes_ibfk_1` FOREIGN KEY (`id_usuario`) REFERENCES `usuarios` (`id`),
666 CONSTRAINT `usuarios_sedes_ibfk_2` FOREIGN KEY (`id_sede`) REFERENCES `sedes` (`id`)
667) ENGINE=InnoDB DEFAULT CHARSET=utf8;
668/*!40101 SET character_set_client = @saved_cs_client */;
669
670--
671-- Dumping data for table `usuarios_sedes`
672--
673
674LOCK TABLES `usuarios_sedes` WRITE;
675/*!40000 ALTER TABLE `usuarios_sedes` DISABLE KEYS */;
676/*!40000 ALTER TABLE `usuarios_sedes` ENABLE KEYS */;
677UNLOCK TABLES;
678
679--
680-- Dumping routines for database 'banco_datos'
681--
682/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
683
684/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
685/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
686/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
687/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
688/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
689/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
690/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
691
692-- Dump completed on 2017-12-13 16:46:28