-- phpMyAdmin SQL Dump
-- version 3.3.9.2
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Xerado en: 18 de Abr de 2011 ás 15:54
-- Versión do servidor: 5.1.56
-- Versión do PHP: 5.2.6

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";


/*!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 */;

--
-- Base de datos: `aprendep_db`
--

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_chat_conectados`
--

CREATE TABLE IF NOT EXISTS `gap_chat_conectados` (
  `user` text NOT NULL,
  `id_sala` int(11) NOT NULL,
  `fecha` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_chat_conversaciones`
--

CREATE TABLE IF NOT EXISTS `gap_chat_conversaciones` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` text NOT NULL,
  `sala` int(11) NOT NULL,
  `mensaje` text NOT NULL,
  `fecha` date NOT NULL,
  `hora` time NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6476 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_chat_salas`
--

CREATE TABLE IF NOT EXISTS `gap_chat_salas` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nombre` text NOT NULL,
  `user` text NOT NULL,
  `fecha` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=281 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_codigos_categorias`
--

CREATE TABLE IF NOT EXISTS `gap_codigos_categorias` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nombre` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_codigos_comentarios`
--

CREATE TABLE IF NOT EXISTS `gap_codigos_comentarios` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_proyecto` int(11) NOT NULL,
  `user` text NOT NULL,
  `comentario` text NOT NULL,
  `fecha` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=34 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_codigos_pizarra`
--

CREATE TABLE IF NOT EXISTS `gap_codigos_pizarra` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` text NOT NULL,
  `id_proyecto` int(11) NOT NULL,
  `entrada` text NOT NULL,
  `descripcion` text NOT NULL,
  `fuente` text NOT NULL,
  `fecha` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=56 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_codigos_proyectos`
--

CREATE TABLE IF NOT EXISTS `gap_codigos_proyectos` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` text NOT NULL,
  `texto` text NOT NULL,
  `asunto` text NOT NULL,
  `fecha` datetime NOT NULL,
  `binario` text NOT NULL,
  `fuente` text NOT NULL,
  `lecturas` int(11) NOT NULL,
  `votos` int(11) NOT NULL,
  `id_subcategoria` int(11) NOT NULL,
  `id_categoria` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=35 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_codigos_subcategorias`
--

CREATE TABLE IF NOT EXISTS `gap_codigos_subcategorias` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nombre` text NOT NULL,
  `descripcion` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_cursos_categorias`
--

CREATE TABLE IF NOT EXISTS `gap_cursos_categorias` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nombre` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_cursos_comentarios`
--

CREATE TABLE IF NOT EXISTS `gap_cursos_comentarios` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `donde` text NOT NULL,
  `user` text NOT NULL,
  `comentario` text NOT NULL,
  `fecha` datetime NOT NULL,
  `id_entrada` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=437 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_cursos_ejercicios`
--

CREATE TABLE IF NOT EXISTS `gap_cursos_ejercicios` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_categoria` int(11) NOT NULL,
  `id_lenguaje` int(11) NOT NULL,
  `user` text NOT NULL,
  `asunto` text NOT NULL,
  `problema` text NOT NULL,
  `solucion` text NOT NULL,
  `votos` int(11) NOT NULL,
  `lecturas` int(11) NOT NULL,
  `adjunto` text NOT NULL,
  `fecha` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=70 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_cursos_guardados`
--

CREATE TABLE IF NOT EXISTS `gap_cursos_guardados` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` text NOT NULL,
  `lenguaje` int(11) NOT NULL,
  `asunto` text NOT NULL,
  `texto` text NOT NULL,
  `adjunto` text NOT NULL,
  `fecha` date NOT NULL,
  `donde` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_cursos_soluciones`
--

CREATE TABLE IF NOT EXISTS `gap_cursos_soluciones` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_ejercicio` int(11) NOT NULL,
  `user` text NOT NULL,
  `fecha` date NOT NULL,
  `puntuacion` int(11) NOT NULL,
  `solucion` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=165 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_cursos_subcategorias`
--

CREATE TABLE IF NOT EXISTS `gap_cursos_subcategorias` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_categoria` int(11) NOT NULL,
  `nombre` text NOT NULL,
  `descripcion` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=24 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_cursos_suscripciones`
--

CREATE TABLE IF NOT EXISTS `gap_cursos_suscripciones` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` text NOT NULL,
  `id_curso` int(11) NOT NULL,
  `id_categoria` int(11) NOT NULL,
  `fecha` date NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=128 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_cursos_tutoriales`
--

CREATE TABLE IF NOT EXISTS `gap_cursos_tutoriales` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_categoria` int(11) NOT NULL,
  `id_lenguaje` int(11) NOT NULL,
  `user` text NOT NULL,
  `asunto` text NOT NULL,
  `texto` text NOT NULL,
  `votos` int(11) NOT NULL,
  `lecturas` int(11) NOT NULL,
  `adjunto` text NOT NULL,
  `fecha` datetime NOT NULL,
  PRIMARY KEY (`id`),
  FULLTEXT KEY `mezclas` (`asunto`,`texto`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=140 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_cursos_visitas`
--

CREATE TABLE IF NOT EXISTS `gap_cursos_visitas` (
  `user` text COLLATE latin1_spanish_ci NOT NULL,
  `elemento` int(11) NOT NULL,
  `ultima_visita` date NOT NULL,
  `tipo` text COLLATE latin1_spanish_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_spanish_ci;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_foro_categorias`
--

CREATE TABLE IF NOT EXISTS `gap_foro_categorias` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nombre` text NOT NULL,
  `descripcion` text NOT NULL,
  `subcategoria` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_foro_mensajes`
--

CREATE TABLE IF NOT EXISTS `gap_foro_mensajes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_categoria` int(11) NOT NULL,
  `id_subcategoria` int(11) NOT NULL,
  `user` text NOT NULL,
  `asunto` text NOT NULL,
  `mensaje` text NOT NULL,
  `fecha` datetime NOT NULL,
  `fecha_mod` datetime NOT NULL,
  `ultMsg` text NOT NULL,
  `lecturas` int(11) NOT NULL,
  `cerrado` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  FULLTEXT KEY `asunto` (`asunto`,`mensaje`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=396 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_foro_respuestas`
--

CREATE TABLE IF NOT EXISTS `gap_foro_respuestas` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_mensaje` int(11) NOT NULL,
  `id_categoria` int(11) NOT NULL,
  `id_subcategoria` int(11) NOT NULL,
  `user` text NOT NULL,
  `asunto` text NOT NULL,
  `mensaje` text NOT NULL,
  `fecha` datetime NOT NULL,
  PRIMARY KEY (`id`),
  FULLTEXT KEY `asunto` (`asunto`,`mensaje`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2174 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_foro_subcategorias`
--

CREATE TABLE IF NOT EXISTS `gap_foro_subcategorias` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_categoria` int(11) NOT NULL,
  `nombre` text NOT NULL,
  `descripcion` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=24 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_foro_suscripciones`
--

CREATE TABLE IF NOT EXISTS `gap_foro_suscripciones` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` text NOT NULL,
  `entrada` int(11) NOT NULL,
  `fecha` date NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=556 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_juego_adjuntos`
--

CREATE TABLE IF NOT EXISTS `gap_juego_adjuntos` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idmensaje` int(11) NOT NULL,
  `user` text COLLATE latin1_spanish_ci NOT NULL,
  `equipo` int(11) NOT NULL,
  `fichero` text COLLATE latin1_spanish_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 COLLATE=latin1_spanish_ci AUTO_INCREMENT=7 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_juego_discusion_mensajes`
--

CREATE TABLE IF NOT EXISTS `gap_juego_discusion_mensajes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` text NOT NULL,
  `equipo` int(11) NOT NULL,
  `destino` int(11) NOT NULL,
  `asunto` text NOT NULL,
  `mensaje` text NOT NULL,
  `fecha` datetime NOT NULL,
  `ultMsg` datetime NOT NULL,
  `icono` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=36 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_juego_discusion_mensajes_leidos`
--

CREATE TABLE IF NOT EXISTS `gap_juego_discusion_mensajes_leidos` (
  `user` text NOT NULL,
  `idmensaje` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_juego_discusion_respuestas`
--

CREATE TABLE IF NOT EXISTS `gap_juego_discusion_respuestas` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idmensaje` int(11) NOT NULL,
  `user` text NOT NULL,
  `mensaje` text NOT NULL,
  `fecha` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=185 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_juego_discusion_respuestas_leidos`
--

CREATE TABLE IF NOT EXISTS `gap_juego_discusion_respuestas_leidos` (
  `user` text NOT NULL,
  `idmensaje` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_juego_equipos`
--

CREATE TABLE IF NOT EXISTS `gap_juego_equipos` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nombre` text NOT NULL,
  `descripcion` text NOT NULL,
  `color` text NOT NULL,
  `lider` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_juego_integrantes`
--

CREATE TABLE IF NOT EXISTS `gap_juego_integrantes` (
  `user` text NOT NULL,
  `equipo` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_mp_carpetas`
--

CREATE TABLE IF NOT EXISTS `gap_mp_carpetas` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nombre` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_mp_mensajes`
--

CREATE TABLE IF NOT EXISTS `gap_mp_mensajes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `carpeta` int(11) NOT NULL,
  `user` text NOT NULL,
  `destino` text NOT NULL,
  `asunto` text NOT NULL,
  `mensaje` text NOT NULL,
  `fecha` datetime NOT NULL,
  `leido` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2855 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_tutoriales_categorias`
--

CREATE TABLE IF NOT EXISTS `gap_tutoriales_categorias` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nombre` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=22 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_tutoriales_comentarios`
--

CREATE TABLE IF NOT EXISTS `gap_tutoriales_comentarios` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `donde` text NOT NULL,
  `user` text NOT NULL,
  `comentario` text NOT NULL,
  `fecha` datetime NOT NULL,
  `id_entrada` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=229 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_tutoriales_guardados`
--

CREATE TABLE IF NOT EXISTS `gap_tutoriales_guardados` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` text NOT NULL,
  `id_categoria` int(11) NOT NULL,
  `asunto` text NOT NULL,
  `texto` text NOT NULL,
  `adjunto` text,
  `fecha` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_tutoriales_lohice`
--

CREATE TABLE IF NOT EXISTS `gap_tutoriales_lohice` (
  `user` text NOT NULL,
  `id_ejercicio` int(11) NOT NULL,
  `fecha` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_tutoriales_problemas`
--

CREATE TABLE IF NOT EXISTS `gap_tutoriales_problemas` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_categoria` int(11) NOT NULL,
  `user` text NOT NULL,
  `asunto` text NOT NULL,
  `problema` text NOT NULL,
  `solucion` text NOT NULL,
  `votos` int(11) NOT NULL,
  `lecturas` int(11) NOT NULL,
  `adjunto` text NOT NULL,
  `fecha` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=52 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_tutoriales_tutoriales`
--

CREATE TABLE IF NOT EXISTS `gap_tutoriales_tutoriales` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_categoria` int(11) NOT NULL,
  `id_lenguaje` int(11) NOT NULL,
  `user` text NOT NULL,
  `asunto` text NOT NULL,
  `texto` text NOT NULL,
  `votos` int(11) NOT NULL,
  `lecturas` int(11) NOT NULL,
  `adjunto` text NOT NULL,
  `fecha` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=88 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_users`
--

CREATE TABLE IF NOT EXISTS `gap_users` (
  `user` text NOT NULL,
  `pass` text NOT NULL,
  `nombre` text NOT NULL,
  `apellidos` text NOT NULL,
  `fechareg` datetime NOT NULL,
  `fechaultent` datetime NOT NULL,
  `email` text NOT NULL,
  `avatar` text NOT NULL,
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `log` tinyint(1) NOT NULL,
  `fecha_nacimiento` date NOT NULL,
  `conocimientos` text NOT NULL,
  `acercademi` text NOT NULL,
  `firma` text NOT NULL,
  `nacionalidad` text NOT NULL,
  `ultVisita` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=322 ;

-- --------------------------------------------------------

--
-- Estrutura da táboa `gap_votos`
--

CREATE TABLE IF NOT EXISTS `gap_votos` (
  `user` text NOT NULL,
  `seccion` text NOT NULL,
  `entrada` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
