Parent Directory
|
Revision Log
Revision 11 - (view) (download)
| 1 : | egutierrez | 11 | -- MySQL dump 10.13 Distrib 5.1.49, for debian-linux-gnu (x86_64) |
| 2 : | -- | ||
| 3 : | -- Host: localhost Database: recurso_educativo | ||
| 4 : | -- ------------------------------------------------------ | ||
| 5 : | -- Server version 5.1.49-3 | ||
| 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 `estado` | ||
| 20 : | -- | ||
| 21 : | |||
| 22 : | DROP TABLE IF EXISTS `estado`; | ||
| 23 : | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
| 24 : | /*!40101 SET character_set_client = utf8 */; | ||
| 25 : | CREATE TABLE `estado` ( | ||
| 26 : | `id_estado` int(11) NOT NULL, | ||
| 27 : | `nombre_estado` varchar(25) NOT NULL, | ||
| 28 : | `id_pais` int(11) NOT NULL, | ||
| 29 : | PRIMARY KEY (`id_estado`), | ||
| 30 : | KEY `id_pais` (`id_pais`) | ||
| 31 : | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| 32 : | /*!40101 SET character_set_client = @saved_cs_client */; | ||
| 33 : | |||
| 34 : | -- | ||
| 35 : | -- Dumping data for table `estado` | ||
| 36 : | -- | ||
| 37 : | |||
| 38 : | LOCK TABLES `estado` WRITE; | ||
| 39 : | /*!40000 ALTER TABLE `estado` DISABLE KEYS */; | ||
| 40 : | INSERT INTO `estado` VALUES (1,'Amazonas',1),(2,'Anzoátegui',1),(3,'Apure',1),(4,'Aragua',1),(5,'Barinas',1),(6,'BolÃvar',1),(7,'Carabobo',1),(8,'Cojedes',1),(9,'Delta Amacuro',1),(10,'Falcón',1),(11,'Guárico',1),(12,'Lara',1),(13,'Mérida',1),(14,'Miranda',1),(15,'Monagas',1),(16,'Nueva Esparta',1),(17,'Portuguesa',1),(18,'Sucre',1),(19,'Táchira',1),(20,'Trujillo',1),(21,'Vargas',1),(22,'Yaracuy',1),(23,'Zulia',1),(24,'Distrito Capital',1); | ||
| 41 : | /*!40000 ALTER TABLE `estado` ENABLE KEYS */; | ||
| 42 : | UNLOCK TABLES; | ||
| 43 : | |||
| 44 : | -- | ||
| 45 : | -- Table structure for table `formato_material` | ||
| 46 : | -- | ||
| 47 : | |||
| 48 : | DROP TABLE IF EXISTS `formato_material`; | ||
| 49 : | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
| 50 : | /*!40101 SET character_set_client = utf8 */; | ||
| 51 : | CREATE TABLE `formato_material` ( | ||
| 52 : | `id_formato_material` int(11) NOT NULL, | ||
| 53 : | `formato_material` varchar(20) NOT NULL, | ||
| 54 : | PRIMARY KEY (`id_formato_material`) | ||
| 55 : | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| 56 : | /*!40101 SET character_set_client = @saved_cs_client */; | ||
| 57 : | |||
| 58 : | -- | ||
| 59 : | -- Dumping data for table `formato_material` | ||
| 60 : | -- | ||
| 61 : | |||
| 62 : | LOCK TABLES `formato_material` WRITE; | ||
| 63 : | /*!40000 ALTER TABLE `formato_material` DISABLE KEYS */; | ||
| 64 : | INSERT INTO `formato_material` VALUES (1,'Documento Digital'),(2,'Video'),(3,'Software'),(4,'Audio'),(5,'Imagen'); | ||
| 65 : | /*!40000 ALTER TABLE `formato_material` ENABLE KEYS */; | ||
| 66 : | UNLOCK TABLES; | ||
| 67 : | |||
| 68 : | -- | ||
| 69 : | -- Table structure for table `instituto` | ||
| 70 : | -- | ||
| 71 : | |||
| 72 : | DROP TABLE IF EXISTS `instituto`; | ||
| 73 : | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
| 74 : | /*!40101 SET character_set_client = utf8 */; | ||
| 75 : | CREATE TABLE `instituto` ( | ||
| 76 : | `id_instituto` int(11) NOT NULL AUTO_INCREMENT, | ||
| 77 : | `nombre_instituto` varchar(60) NOT NULL, | ||
| 78 : | PRIMARY KEY (`id_instituto`) | ||
| 79 : | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| 80 : | /*!40101 SET character_set_client = @saved_cs_client */; | ||
| 81 : | |||
| 82 : | -- | ||
| 83 : | -- Dumping data for table `instituto` | ||
| 84 : | -- | ||
| 85 : | |||
| 86 : | LOCK TABLES `instituto` WRITE; | ||
| 87 : | /*!40000 ALTER TABLE `instituto` DISABLE KEYS */; | ||
| 88 : | /*!40000 ALTER TABLE `instituto` ENABLE KEYS */; | ||
| 89 : | UNLOCK TABLES; | ||
| 90 : | |||
| 91 : | -- | ||
| 92 : | -- Table structure for table `licencia` | ||
| 93 : | -- | ||
| 94 : | |||
| 95 : | DROP TABLE IF EXISTS `licencia`; | ||
| 96 : | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
| 97 : | /*!40101 SET character_set_client = utf8 */; | ||
| 98 : | CREATE TABLE `licencia` ( | ||
| 99 : | `id_licencia` int(11) NOT NULL, | ||
| 100 : | `tipo_licencia` varchar(25) NOT NULL, | ||
| 101 : | PRIMARY KEY (`id_licencia`) | ||
| 102 : | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| 103 : | /*!40101 SET character_set_client = @saved_cs_client */; | ||
| 104 : | |||
| 105 : | -- | ||
| 106 : | -- Dumping data for table `licencia` | ||
| 107 : | -- | ||
| 108 : | |||
| 109 : | LOCK TABLES `licencia` WRITE; | ||
| 110 : | /*!40000 ALTER TABLE `licencia` DISABLE KEYS */; | ||
| 111 : | INSERT INTO `licencia` VALUES (1,'Reconocimiento de Autor'),(2,'Obra Derivada'),(3,'Distribución Comercial'),(4,'Compartir Igual'); | ||
| 112 : | /*!40000 ALTER TABLE `licencia` ENABLE KEYS */; | ||
| 113 : | UNLOCK TABLES; | ||
| 114 : | |||
| 115 : | -- | ||
| 116 : | -- Table structure for table `nivel_educativo` | ||
| 117 : | -- | ||
| 118 : | |||
| 119 : | DROP TABLE IF EXISTS `nivel_educativo`; | ||
| 120 : | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
| 121 : | /*!40101 SET character_set_client = utf8 */; | ||
| 122 : | CREATE TABLE `nivel_educativo` ( | ||
| 123 : | `id_nivel_educ` int(11) NOT NULL, | ||
| 124 : | `nivel_educativo` varchar(45) NOT NULL, | ||
| 125 : | PRIMARY KEY (`id_nivel_educ`) | ||
| 126 : | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| 127 : | /*!40101 SET character_set_client = @saved_cs_client */; | ||
| 128 : | |||
| 129 : | -- | ||
| 130 : | -- Dumping data for table `nivel_educativo` | ||
| 131 : | -- | ||
| 132 : | |||
| 133 : | LOCK TABLES `nivel_educativo` WRITE; | ||
| 134 : | /*!40000 ALTER TABLE `nivel_educativo` DISABLE KEYS */; | ||
| 135 : | INSERT INTO `nivel_educativo` VALUES (1,'Educación Preescolar'),(2,'Primera Etapa de Educación Básica'),(3,'Segunda Etapa de Educación Básica'),(4,'Tercera Etapa de Educación Básica'),(5,'Educación Media Diversificada y Profesional'),(6,'Universitaria'),(7,'Postgrado'); | ||
| 136 : | /*!40000 ALTER TABLE `nivel_educativo` ENABLE KEYS */; | ||
| 137 : | UNLOCK TABLES; | ||
| 138 : | |||
| 139 : | -- | ||
| 140 : | -- Table structure for table `pais` | ||
| 141 : | -- | ||
| 142 : | |||
| 143 : | DROP TABLE IF EXISTS `pais`; | ||
| 144 : | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
| 145 : | /*!40101 SET character_set_client = utf8 */; | ||
| 146 : | CREATE TABLE `pais` ( | ||
| 147 : | `id_pais` int(11) NOT NULL, | ||
| 148 : | `nombre_pais` varchar(20) NOT NULL, | ||
| 149 : | PRIMARY KEY (`id_pais`) | ||
| 150 : | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| 151 : | /*!40101 SET character_set_client = @saved_cs_client */; | ||
| 152 : | |||
| 153 : | -- | ||
| 154 : | -- Dumping data for table `pais` | ||
| 155 : | -- | ||
| 156 : | |||
| 157 : | LOCK TABLES `pais` WRITE; | ||
| 158 : | /*!40000 ALTER TABLE `pais` DISABLE KEYS */; | ||
| 159 : | INSERT INTO `pais` VALUES (1,'Venezuela'); | ||
| 160 : | /*!40000 ALTER TABLE `pais` ENABLE KEYS */; | ||
| 161 : | UNLOCK TABLES; | ||
| 162 : | |||
| 163 : | -- | ||
| 164 : | -- Table structure for table `rea` | ||
| 165 : | -- | ||
| 166 : | |||
| 167 : | DROP TABLE IF EXISTS `rea`; | ||
| 168 : | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
| 169 : | /*!40101 SET character_set_client = utf8 */; | ||
| 170 : | CREATE TABLE `rea` ( | ||
| 171 : | `id_rea` int(11) NOT NULL AUTO_INCREMENT, | ||
| 172 : | `titulo` varchar(90) NOT NULL, | ||
| 173 : | `fecha_creacion` date NOT NULL, | ||
| 174 : | `id_tipo_material` int(11) NOT NULL, | ||
| 175 : | `id_formato_material` int(11) NOT NULL, | ||
| 176 : | `id_tipo_usurio` int(11) NOT NULL, | ||
| 177 : | PRIMARY KEY (`id_rea`), | ||
| 178 : | KEY `id_tipo_material` (`id_tipo_material`), | ||
| 179 : | KEY `id_tipo_usuario` (`id_tipo_usurio`), | ||
| 180 : | KEY `id_formato_material` (`id_formato_material`) | ||
| 181 : | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| 182 : | /*!40101 SET character_set_client = @saved_cs_client */; | ||
| 183 : | |||
| 184 : | -- | ||
| 185 : | -- Dumping data for table `rea` | ||
| 186 : | -- | ||
| 187 : | |||
| 188 : | LOCK TABLES `rea` WRITE; | ||
| 189 : | /*!40000 ALTER TABLE `rea` DISABLE KEYS */; | ||
| 190 : | /*!40000 ALTER TABLE `rea` ENABLE KEYS */; | ||
| 191 : | UNLOCK TABLES; | ||
| 192 : | |||
| 193 : | -- | ||
| 194 : | -- Table structure for table `relacion_instituto_estado` | ||
| 195 : | -- | ||
| 196 : | |||
| 197 : | DROP TABLE IF EXISTS `relacion_instituto_estado`; | ||
| 198 : | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
| 199 : | /*!40101 SET character_set_client = utf8 */; | ||
| 200 : | CREATE TABLE `relacion_instituto_estado` ( | ||
| 201 : | `id_instituto` int(11) NOT NULL, | ||
| 202 : | `id_estado` int(11) NOT NULL, | ||
| 203 : | KEY `id_instituto` (`id_instituto`), | ||
| 204 : | KEY `id_estado` (`id_estado`) | ||
| 205 : | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| 206 : | /*!40101 SET character_set_client = @saved_cs_client */; | ||
| 207 : | |||
| 208 : | -- | ||
| 209 : | -- Dumping data for table `relacion_instituto_estado` | ||
| 210 : | -- | ||
| 211 : | |||
| 212 : | LOCK TABLES `relacion_instituto_estado` WRITE; | ||
| 213 : | /*!40000 ALTER TABLE `relacion_instituto_estado` DISABLE KEYS */; | ||
| 214 : | /*!40000 ALTER TABLE `relacion_instituto_estado` ENABLE KEYS */; | ||
| 215 : | UNLOCK TABLES; | ||
| 216 : | |||
| 217 : | -- | ||
| 218 : | -- Table structure for table `relacion_rea_lic` | ||
| 219 : | -- | ||
| 220 : | |||
| 221 : | DROP TABLE IF EXISTS `relacion_rea_lic`; | ||
| 222 : | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
| 223 : | /*!40101 SET character_set_client = utf8 */; | ||
| 224 : | CREATE TABLE `relacion_rea_lic` ( | ||
| 225 : | `id_rea` int(11) NOT NULL, | ||
| 226 : | `id_licencia` int(11) NOT NULL, | ||
| 227 : | KEY `id_rea` (`id_rea`), | ||
| 228 : | KEY `id_licencia` (`id_licencia`) | ||
| 229 : | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| 230 : | /*!40101 SET character_set_client = @saved_cs_client */; | ||
| 231 : | |||
| 232 : | -- | ||
| 233 : | -- Dumping data for table `relacion_rea_lic` | ||
| 234 : | -- | ||
| 235 : | |||
| 236 : | LOCK TABLES `relacion_rea_lic` WRITE; | ||
| 237 : | /*!40000 ALTER TABLE `relacion_rea_lic` DISABLE KEYS */; | ||
| 238 : | /*!40000 ALTER TABLE `relacion_rea_lic` ENABLE KEYS */; | ||
| 239 : | UNLOCK TABLES; | ||
| 240 : | |||
| 241 : | -- | ||
| 242 : | -- Table structure for table `relacion_rea_ne` | ||
| 243 : | -- | ||
| 244 : | |||
| 245 : | DROP TABLE IF EXISTS `relacion_rea_ne`; | ||
| 246 : | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
| 247 : | /*!40101 SET character_set_client = utf8 */; | ||
| 248 : | CREATE TABLE `relacion_rea_ne` ( | ||
| 249 : | `id_rea` int(11) NOT NULL, | ||
| 250 : | `id_nivel_educ` int(11) NOT NULL, | ||
| 251 : | KEY `id_rea` (`id_rea`), | ||
| 252 : | KEY `id_nivel_educ` (`id_nivel_educ`) | ||
| 253 : | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| 254 : | /*!40101 SET character_set_client = @saved_cs_client */; | ||
| 255 : | |||
| 256 : | -- | ||
| 257 : | -- Dumping data for table `relacion_rea_ne` | ||
| 258 : | -- | ||
| 259 : | |||
| 260 : | LOCK TABLES `relacion_rea_ne` WRITE; | ||
| 261 : | /*!40000 ALTER TABLE `relacion_rea_ne` DISABLE KEYS */; | ||
| 262 : | /*!40000 ALTER TABLE `relacion_rea_ne` ENABLE KEYS */; | ||
| 263 : | UNLOCK TABLES; | ||
| 264 : | |||
| 265 : | -- | ||
| 266 : | -- Table structure for table `relacion_rea_tema` | ||
| 267 : | -- | ||
| 268 : | |||
| 269 : | DROP TABLE IF EXISTS `relacion_rea_tema`; | ||
| 270 : | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
| 271 : | /*!40101 SET character_set_client = utf8 */; | ||
| 272 : | CREATE TABLE `relacion_rea_tema` ( | ||
| 273 : | `id_rea` int(11) NOT NULL, | ||
| 274 : | `id_tema` int(11) NOT NULL, | ||
| 275 : | KEY `id_rea` (`id_rea`), | ||
| 276 : | KEY `id_tema` (`id_tema`) | ||
| 277 : | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| 278 : | /*!40101 SET character_set_client = @saved_cs_client */; | ||
| 279 : | |||
| 280 : | -- | ||
| 281 : | -- Dumping data for table `relacion_rea_tema` | ||
| 282 : | -- | ||
| 283 : | |||
| 284 : | LOCK TABLES `relacion_rea_tema` WRITE; | ||
| 285 : | /*!40000 ALTER TABLE `relacion_rea_tema` DISABLE KEYS */; | ||
| 286 : | /*!40000 ALTER TABLE `relacion_rea_tema` ENABLE KEYS */; | ||
| 287 : | UNLOCK TABLES; | ||
| 288 : | |||
| 289 : | -- | ||
| 290 : | -- Table structure for table `relacion_usuario_rea` | ||
| 291 : | -- | ||
| 292 : | |||
| 293 : | DROP TABLE IF EXISTS `relacion_usuario_rea`; | ||
| 294 : | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
| 295 : | /*!40101 SET character_set_client = utf8 */; | ||
| 296 : | CREATE TABLE `relacion_usuario_rea` ( | ||
| 297 : | `id_usuario` int(11) NOT NULL, | ||
| 298 : | `id_rea` int(11) NOT NULL, | ||
| 299 : | KEY `id_nombre_usuario` (`id_usuario`), | ||
| 300 : | KEY `id_rea` (`id_rea`) | ||
| 301 : | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| 302 : | /*!40101 SET character_set_client = @saved_cs_client */; | ||
| 303 : | |||
| 304 : | -- | ||
| 305 : | -- Dumping data for table `relacion_usuario_rea` | ||
| 306 : | -- | ||
| 307 : | |||
| 308 : | LOCK TABLES `relacion_usuario_rea` WRITE; | ||
| 309 : | /*!40000 ALTER TABLE `relacion_usuario_rea` DISABLE KEYS */; | ||
| 310 : | /*!40000 ALTER TABLE `relacion_usuario_rea` ENABLE KEYS */; | ||
| 311 : | UNLOCK TABLES; | ||
| 312 : | |||
| 313 : | -- | ||
| 314 : | -- Table structure for table `tema` | ||
| 315 : | -- | ||
| 316 : | |||
| 317 : | DROP TABLE IF EXISTS `tema`; | ||
| 318 : | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
| 319 : | /*!40101 SET character_set_client = utf8 */; | ||
| 320 : | CREATE TABLE `tema` ( | ||
| 321 : | `id_tema` int(11) NOT NULL AUTO_INCREMENT, | ||
| 322 : | `tema` varchar(25) NOT NULL, | ||
| 323 : | PRIMARY KEY (`id_tema`) | ||
| 324 : | ) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=latin1; | ||
| 325 : | /*!40101 SET character_set_client = @saved_cs_client */; | ||
| 326 : | |||
| 327 : | -- | ||
| 328 : | -- Dumping data for table `tema` | ||
| 329 : | -- | ||
| 330 : | |||
| 331 : | LOCK TABLES `tema` WRITE; | ||
| 332 : | /*!40000 ALTER TABLE `tema` DISABLE KEYS */; | ||
| 333 : | INSERT INTO `tema` VALUES (1,'Artes'),(2,'Ciencias'),(3,'Ciencias Sociales'),(4,'Ciencias de la Salud'),(5,'Negocios'),(6,'EconomÃa'),(7,'Arquitectura'),(8,'IngenierÃa'),(9,'TecnologÃa'),(10,'FilosofÃa'),(11,'Religión'),(12,'Leyes'),(13,'Historia'),(14,'Cultura Popular'),(15,'TecnologÃa Popular'),(16,'Ciencias de la Tierra'); | ||
| 334 : | /*!40000 ALTER TABLE `tema` ENABLE KEYS */; | ||
| 335 : | UNLOCK TABLES; | ||
| 336 : | |||
| 337 : | -- | ||
| 338 : | -- Table structure for table `tipo_material` | ||
| 339 : | -- | ||
| 340 : | |||
| 341 : | DROP TABLE IF EXISTS `tipo_material`; | ||
| 342 : | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
| 343 : | /*!40101 SET character_set_client = utf8 */; | ||
| 344 : | CREATE TABLE `tipo_material` ( | ||
| 345 : | `id_tipo_material` int(11) NOT NULL, | ||
| 346 : | `tipo_material` varchar(30) NOT NULL, | ||
| 347 : | PRIMARY KEY (`id_tipo_material`) | ||
| 348 : | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| 349 : | /*!40101 SET character_set_client = @saved_cs_client */; | ||
| 350 : | |||
| 351 : | -- | ||
| 352 : | -- Dumping data for table `tipo_material` | ||
| 353 : | -- | ||
| 354 : | |||
| 355 : | LOCK TABLES `tipo_material` WRITE; | ||
| 356 : | /*!40000 ALTER TABLE `tipo_material` DISABLE KEYS */; | ||
| 357 : | INSERT INTO `tipo_material` VALUES (1,'Documento'),(2,'Diapositivas'),(3,'Aplicación'),(4,'Curso'),(5,'Página Web'),(6,'Actividad de Aprendizaje'),(7,'Conferencia'),(8,'Congreso'),(9,'Documental'),(10,'Entrevista'),(11,'PelÃcula'),(12,'Programa Pregrabado'),(13,'Imagen'),(14,'BibliografÃa'),(15,'Blog'),(16,'Web Quest'),(17,'Presentación'); | ||
| 358 : | /*!40000 ALTER TABLE `tipo_material` ENABLE KEYS */; | ||
| 359 : | UNLOCK TABLES; | ||
| 360 : | |||
| 361 : | -- | ||
| 362 : | -- Table structure for table `tipo_usuario` | ||
| 363 : | -- | ||
| 364 : | |||
| 365 : | DROP TABLE IF EXISTS `tipo_usuario`; | ||
| 366 : | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
| 367 : | /*!40101 SET character_set_client = utf8 */; | ||
| 368 : | CREATE TABLE `tipo_usuario` ( | ||
| 369 : | `id_tipo_usurio` int(11) NOT NULL, | ||
| 370 : | `tipo_usuario` varchar(25) NOT NULL, | ||
| 371 : | PRIMARY KEY (`id_tipo_usurio`) | ||
| 372 : | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| 373 : | /*!40101 SET character_set_client = @saved_cs_client */; | ||
| 374 : | |||
| 375 : | -- | ||
| 376 : | -- Dumping data for table `tipo_usuario` | ||
| 377 : | -- | ||
| 378 : | |||
| 379 : | LOCK TABLES `tipo_usuario` WRITE; | ||
| 380 : | /*!40000 ALTER TABLE `tipo_usuario` DISABLE KEYS */; | ||
| 381 : | INSERT INTO `tipo_usuario` VALUES (1,'Estudiante'),(2,'Docente'),(3,'Autodidacta-Emprendedor'),(4,'Diseñador Instruccional'); | ||
| 382 : | /*!40000 ALTER TABLE `tipo_usuario` ENABLE KEYS */; | ||
| 383 : | UNLOCK TABLES; | ||
| 384 : | |||
| 385 : | -- | ||
| 386 : | -- Table structure for table `usuario` | ||
| 387 : | -- | ||
| 388 : | |||
| 389 : | DROP TABLE IF EXISTS `usuario`; | ||
| 390 : | /*!40101 SET @saved_cs_client = @@character_set_client */; | ||
| 391 : | /*!40101 SET character_set_client = utf8 */; | ||
| 392 : | CREATE TABLE `usuario` ( | ||
| 393 : | `id_usuario` int(11) NOT NULL AUTO_INCREMENT, | ||
| 394 : | `nombre_usuario` varchar(30) NOT NULL, | ||
| 395 : | `contrasenha` varchar(20) NOT NULL, | ||
| 396 : | `nombre_apellido` varchar(50) NOT NULL, | ||
| 397 : | `correo_electronico` varchar(80) NOT NULL, | ||
| 398 : | `sexo` char(1) NOT NULL, | ||
| 399 : | `fecha_nacimiento` date NOT NULL, | ||
| 400 : | `id_instituto` int(11) NOT NULL, | ||
| 401 : | `id_tipo_usurio` int(11) DEFAULT NULL, | ||
| 402 : | PRIMARY KEY (`id_usuario`), | ||
| 403 : | KEY `id_instituto` (`id_instituto`), | ||
| 404 : | KEY `id_tipo_usuario` (`id_tipo_usurio`) | ||
| 405 : | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| 406 : | /*!40101 SET character_set_client = @saved_cs_client */; | ||
| 407 : | |||
| 408 : | -- | ||
| 409 : | -- Dumping data for table `usuario` | ||
| 410 : | -- | ||
| 411 : | |||
| 412 : | LOCK TABLES `usuario` WRITE; | ||
| 413 : | /*!40000 ALTER TABLE `usuario` DISABLE KEYS */; | ||
| 414 : | /*!40000 ALTER TABLE `usuario` ENABLE KEYS */; | ||
| 415 : | UNLOCK TABLES; | ||
| 416 : | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
| 417 : | |||
| 418 : | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
| 419 : | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
| 420 : | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
| 421 : | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
| 422 : | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
| 423 : | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
| 424 : | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
| 425 : | |||
| 426 : | -- Dump completed on 2011-06-10 11:25:52 |
| root@fsl.cenditel.gob.ve | ViewVC Help |
| Powered by ViewVC 1.0.0 |