-- MySQL dump 10.13  Distrib 5.1.49, for debian-linux-gnu (x86_64)
--
-- Host: localhost    Database: recurso_educativo
-- ------------------------------------------------------
-- Server version	5.1.49-3

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!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 */;

--
-- Table structure for table `estado`
--

DROP TABLE IF EXISTS `estado`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `estado` (
  `id_estado` int(11) NOT NULL,
  `nombre_estado` varchar(25) NOT NULL,
  `id_pais` int(11) NOT NULL,
  PRIMARY KEY (`id_estado`),
  KEY `id_pais` (`id_pais`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `estado`
--

LOCK TABLES `estado` WRITE;
/*!40000 ALTER TABLE `estado` DISABLE KEYS */;
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);
/*!40000 ALTER TABLE `estado` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `formato_material`
--

DROP TABLE IF EXISTS `formato_material`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `formato_material` (
  `id_formato_material` int(11) NOT NULL,
  `formato_material` varchar(20) NOT NULL,
  PRIMARY KEY (`id_formato_material`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `formato_material`
--

LOCK TABLES `formato_material` WRITE;
/*!40000 ALTER TABLE `formato_material` DISABLE KEYS */;
INSERT INTO `formato_material` VALUES (1,'Documento Digital'),(2,'Video'),(3,'Software'),(4,'Audio'),(5,'Imagen');
/*!40000 ALTER TABLE `formato_material` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `instituto`
--

DROP TABLE IF EXISTS `instituto`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `instituto` (
  `id_instituto` int(11) NOT NULL AUTO_INCREMENT,
  `nombre_instituto` varchar(60) NOT NULL,
  PRIMARY KEY (`id_instituto`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `instituto`
--

LOCK TABLES `instituto` WRITE;
/*!40000 ALTER TABLE `instituto` DISABLE KEYS */;
/*!40000 ALTER TABLE `instituto` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `licencia`
--

DROP TABLE IF EXISTS `licencia`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `licencia` (
  `id_licencia` int(11) NOT NULL,
  `tipo_licencia` varchar(25) NOT NULL,
  PRIMARY KEY (`id_licencia`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `licencia`
--

LOCK TABLES `licencia` WRITE;
/*!40000 ALTER TABLE `licencia` DISABLE KEYS */;
INSERT INTO `licencia` VALUES (1,'Reconocimiento de Autor'),(2,'Obra Derivada'),(3,'DistribuciÃ³n Comercial'),(4,'Compartir Igual');
/*!40000 ALTER TABLE `licencia` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `nivel_educativo`
--

DROP TABLE IF EXISTS `nivel_educativo`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `nivel_educativo` (
  `id_nivel_educ` int(11) NOT NULL,
  `nivel_educativo` varchar(45) NOT NULL,
  PRIMARY KEY (`id_nivel_educ`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `nivel_educativo`
--

LOCK TABLES `nivel_educativo` WRITE;
/*!40000 ALTER TABLE `nivel_educativo` DISABLE KEYS */;
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');
/*!40000 ALTER TABLE `nivel_educativo` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `pais`
--

DROP TABLE IF EXISTS `pais`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pais` (
  `id_pais` int(11) NOT NULL,
  `nombre_pais` varchar(20) NOT NULL,
  PRIMARY KEY (`id_pais`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `pais`
--

LOCK TABLES `pais` WRITE;
/*!40000 ALTER TABLE `pais` DISABLE KEYS */;
INSERT INTO `pais` VALUES (1,'Venezuela');
/*!40000 ALTER TABLE `pais` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `rea`
--

DROP TABLE IF EXISTS `rea`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rea` (
  `id_rea` int(11) NOT NULL AUTO_INCREMENT,
  `titulo` varchar(90) NOT NULL,
  `fecha_creacion` date NOT NULL,
  `id_tipo_material` int(11) NOT NULL,
  `id_formato_material` int(11) NOT NULL,
  `id_tipo_usurio` int(11) NOT NULL,
  PRIMARY KEY (`id_rea`),
  KEY `id_tipo_material` (`id_tipo_material`),
  KEY `id_tipo_usuario` (`id_tipo_usurio`),
  KEY `id_formato_material` (`id_formato_material`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `rea`
--

LOCK TABLES `rea` WRITE;
/*!40000 ALTER TABLE `rea` DISABLE KEYS */;
/*!40000 ALTER TABLE `rea` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `relacion_instituto_estado`
--

DROP TABLE IF EXISTS `relacion_instituto_estado`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `relacion_instituto_estado` (
  `id_instituto` int(11) NOT NULL,
  `id_estado` int(11) NOT NULL,
  KEY `id_instituto` (`id_instituto`),
  KEY `id_estado` (`id_estado`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `relacion_instituto_estado`
--

LOCK TABLES `relacion_instituto_estado` WRITE;
/*!40000 ALTER TABLE `relacion_instituto_estado` DISABLE KEYS */;
/*!40000 ALTER TABLE `relacion_instituto_estado` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `relacion_rea_lic`
--

DROP TABLE IF EXISTS `relacion_rea_lic`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `relacion_rea_lic` (
  `id_rea` int(11) NOT NULL,
  `id_licencia` int(11) NOT NULL,
  KEY `id_rea` (`id_rea`),
  KEY `id_licencia` (`id_licencia`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `relacion_rea_lic`
--

LOCK TABLES `relacion_rea_lic` WRITE;
/*!40000 ALTER TABLE `relacion_rea_lic` DISABLE KEYS */;
/*!40000 ALTER TABLE `relacion_rea_lic` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `relacion_rea_ne`
--

DROP TABLE IF EXISTS `relacion_rea_ne`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `relacion_rea_ne` (
  `id_rea` int(11) NOT NULL,
  `id_nivel_educ` int(11) NOT NULL,
  KEY `id_rea` (`id_rea`),
  KEY `id_nivel_educ` (`id_nivel_educ`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `relacion_rea_ne`
--

LOCK TABLES `relacion_rea_ne` WRITE;
/*!40000 ALTER TABLE `relacion_rea_ne` DISABLE KEYS */;
/*!40000 ALTER TABLE `relacion_rea_ne` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `relacion_rea_tema`
--

DROP TABLE IF EXISTS `relacion_rea_tema`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `relacion_rea_tema` (
  `id_rea` int(11) NOT NULL,
  `id_tema` int(11) NOT NULL,
  KEY `id_rea` (`id_rea`),
  KEY `id_tema` (`id_tema`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `relacion_rea_tema`
--

LOCK TABLES `relacion_rea_tema` WRITE;
/*!40000 ALTER TABLE `relacion_rea_tema` DISABLE KEYS */;
/*!40000 ALTER TABLE `relacion_rea_tema` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `relacion_usuario_rea`
--

DROP TABLE IF EXISTS `relacion_usuario_rea`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `relacion_usuario_rea` (
  `id_usuario` int(11) NOT NULL,
  `id_rea` int(11) NOT NULL,
  KEY `id_nombre_usuario` (`id_usuario`),
  KEY `id_rea` (`id_rea`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `relacion_usuario_rea`
--

LOCK TABLES `relacion_usuario_rea` WRITE;
/*!40000 ALTER TABLE `relacion_usuario_rea` DISABLE KEYS */;
/*!40000 ALTER TABLE `relacion_usuario_rea` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tema`
--

DROP TABLE IF EXISTS `tema`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tema` (
  `id_tema` int(11) NOT NULL AUTO_INCREMENT,
  `tema` varchar(25) NOT NULL,
  PRIMARY KEY (`id_tema`)
) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tema`
--

LOCK TABLES `tema` WRITE;
/*!40000 ALTER TABLE `tema` DISABLE KEYS */;
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');
/*!40000 ALTER TABLE `tema` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tipo_material`
--

DROP TABLE IF EXISTS `tipo_material`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tipo_material` (
  `id_tipo_material` int(11) NOT NULL,
  `tipo_material` varchar(30) NOT NULL,
  PRIMARY KEY (`id_tipo_material`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tipo_material`
--

LOCK TABLES `tipo_material` WRITE;
/*!40000 ALTER TABLE `tipo_material` DISABLE KEYS */;
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');
/*!40000 ALTER TABLE `tipo_material` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tipo_usuario`
--

DROP TABLE IF EXISTS `tipo_usuario`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tipo_usuario` (
  `id_tipo_usurio` int(11) NOT NULL,
  `tipo_usuario` varchar(25) NOT NULL,
  PRIMARY KEY (`id_tipo_usurio`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tipo_usuario`
--

LOCK TABLES `tipo_usuario` WRITE;
/*!40000 ALTER TABLE `tipo_usuario` DISABLE KEYS */;
INSERT INTO `tipo_usuario` VALUES (1,'Estudiante'),(2,'Docente'),(3,'Autodidacta-Emprendedor'),(4,'DiseÃ±ador Instruccional');
/*!40000 ALTER TABLE `tipo_usuario` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `usuario`
--

DROP TABLE IF EXISTS `usuario`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `usuario` (
  `id_usuario` int(11) NOT NULL AUTO_INCREMENT,
  `nombre_usuario` varchar(30) NOT NULL,
  `contrasenha` varchar(20) NOT NULL,
  `nombre_apellido` varchar(50) NOT NULL,
  `correo_electronico` varchar(80) NOT NULL,
  `sexo` char(1) NOT NULL,
  `fecha_nacimiento` date NOT NULL,
  `id_instituto` int(11) NOT NULL,
  `id_tipo_usurio` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_usuario`),
  KEY `id_instituto` (`id_instituto`),
  KEY `id_tipo_usuario` (`id_tipo_usurio`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `usuario`
--

LOCK TABLES `usuario` WRITE;
/*!40000 ALTER TABLE `usuario` DISABLE KEYS */;
/*!40000 ALTER TABLE `usuario` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2011-06-10 11:25:52
