[EDICIÓN FOROS] Base de datos "aprendeprogramacion" para importar
Posted by CHuLoYo on 2011-07-09 21:23
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 */;
CREATE TABLE IF NOT EXISTS `articulos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`idCategoria` int(3) NOT NULL,
`asunto` text NOT NULL,
`mensaje` text NOT NULL,
`fecha` datetime NOT NULL,
`valoracionBien` int(11) NOT NULL,
`valoracionMal` int(11) NOT NULL,
`lecturas` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `uid` (`uid`,`idCategoria`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `articulosCategorias` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`icono` text NOT NULL,
`nombre` text NOT NULL,
`descripcion` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
INSERT INTO `articulosCategorias` (`id`, `icono`, `nombre`, `descripcion`) VALUES
(1, 'estrella.png', 'Trucos', ''),
(2, 'idea.png', 'Idea', ''),
(3, 'problema.png', 'Problema', ''),
(4, 'tutorial.png', 'Tutorial', ''),
(5, 'sinicono.png', 'Otros / Sin clasificar', '');
CREATE TABLE `aprendeprogramacion`.`articulosComentarios` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`uid` INT NOT NULL ,
`comentario` TEXT NOT NULL ,
`fecha` DATETIME NOT NULL ,
INDEX ( `uid` )
) ENGINE = MYISAM ;
CREATE TABLE IF NOT EXISTS `creditos` (
`uid` int(11) NOT NULL,
`creditos` int(11) NOT NULL,
KEY `uid` (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `creditosActivaciones` (
`uid` int(11) NOT NULL,
`tipoInversion` int(11) NOT NULL,
`slots` int(11) NOT NULL,
`utilizado` int(6) NOT NULL,
KEY `uid` (`uid`,`tipoInversion`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `creditosHistorial` (
`uid` int(11) NOT NULL,
`tipo` int(1) NOT NULL,
`motivo` text NOT NULL,
`cantidad` int(5) NOT NULL,
`precio` double(11,2) DEFAULT NULL,
`idtransaccion` text,
`fecha` datetime NOT NULL,
`pagado` tinyint(1) NOT NULL,
KEY `uid` (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `creditosInversiones` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`titulo` text NOT NULL,
`descripcion` text NOT NULL,
`caracteristicas` text NOT NULL,
`creditos` int(11) NOT NULL,
`slots` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
INSERT INTO `creditosInversiones` (`id`, `titulo`, `descripcion`, `caracteristicas`, `creditos`, `slots`) VALUES
(1, 'Activar 5 favoritos', 'Activa 5 slots de favoritos para todas las secciones (foros, cursos, artículos). Podrás guardar 5 elementos del contenido indefinidamente para acceder fácilmente a él.', '» Podrás añadir 5 favoritos más.<br>\r\n» Seguimiento de comentarios personalizado<br>\r\n» Afecta a la sección Foros<br>\r\n» Afecta a la sección Artículos<br>\r\n» Afecta a la sección Cursos<br>\r\n» Afecta a la sección Pizarra<br>', 25, 5),
(2, 'Activar 10 favoritos', 'Activa 10 slots de favoritos para todas las secciones (foros, cursos, artículos). Podrás guardar 10 elementos del contenido indefinidamente para acceder fácilmente a él.', '» Podrás añadir 10 favoritos más.<br>\r\n» Seguimiento de comentarios personalizado<br>\r\n» Afecta a la sección Foros<br>\r\n» Afecta a la sección Artículos<br>\r\n» Afecta a la sección Cursos<br>\r\n» Afecta a la sección Pizarra<br>', 40, 10),
(3, 'Activar 1 bloc de notas', 'El bloc de notas cuenta con diferentes registros para guardar diferentes tipos de recordatorios. Con esta opción podrás añadir una página adicional a tu bloc de notas personal.', '» Activa una página adicional<br>\r\n» Editor gráfico WYSIWYG<br>\r\n» Orden personalizado<br>', 50, 1),
(4, 'Descarga PDF de 1 curso', 'Permite activar la descarga en PDF de todos los capítulos de un curso al que te encuentres suscrito. Al activar la descarga dispondrás de la activación de un curso, al que podrás acceder indefinidamente a su descarga.', '» Activa un curso personalizado para descarga<br>\r\n» Descarga de cada capítulo individual en PDF<br>\r\n» Descarga de cada ejercicio individual en PDF<br>\r\n» Acceso permanente a la descarga del curso seleccionado.', 75, 1),
(5, 'Quitar publicidad pequeña', 'Permite quitar indefinidamente la publicidad pequeña que se encuentra entre el contenido de las páginas.', '» Quita la publicidad permanentemente<br>\r\n» Afecta a la publicidad pequeña que aparece en los contenidos', 100, 1),
(6, 'Quitar publicidad superior', 'Permite quitar el banner publicitario superior indefinidamente.', '» Quita la publicidad permanentemente<br>\r\n» Afecta a la publicidad superior en banner horizontal', 200, 1);
CREATE TABLE IF NOT EXISTS `creditosInvertidos` (
`uid` int(11) NOT NULL,
`tipoInversion` text NOT NULL,
`cantidad` int(11) NOT NULL,
`fecha` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `forosCategorias` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nombre` text NOT NULL,
`descripcion` text NOT NULL,
`poseeSubcategorias` int(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `forosMensajes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`asunto` text NOT NULL,
`mensaje` text NOT NULL,
`fecha` datetime NOT NULL,
`lecturas` int(11) NOT NULL,
`cerrado` int(10) NOT NULL,
`idCategoria` int(4) NOT NULL,
`idSubcategoria` int(4) NOT NULL,
PRIMARY KEY (`id`),
KEY `uid` (`uid`,`idCategoria`,`idSubcategoria`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `forosRespuestas` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`idMensaje` int(11) NOT NULL,
`idCategoria` int(11) NOT NULL,
`idSubcategoria` int(11) NOT NULL,
`asunto` text NOT NULL,
`mensaje` text NOT NULL,
`fecha` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `uid` (`uid`,`idMensaje`),
KEY `idCategoria` (`idCategoria`),
KEY `idSubcategoria` (`idSubcategoria`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `forosSubcategorias` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nombre` text NOT NULL,
`descripcion` text NOT NULL,
`idCategoria` int(11) NOT NULL,
`icono` text,
PRIMARY KEY (`id`),
KEY `idCategoria` (`idCategoria`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `forosSuscripciones` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`idMensaje` int(11) NOT NULL,
`fecha` date NOT NULL,
`verificado` INT(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `usuarios` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`usuario` text NOT NULL,
`password` text NOT NULL,
`email` text NOT NULL,
`fechaRegistro` datetime NOT NULL,
`fechaUltimaEntrada` datetime NOT NULL,
`avatar` text NOT NULL,
`admin` tinyint(1) NOT NULL,
`confirmado` int(1) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
CREATE TABLE IF NOT EXISTS `usuariosDatos` (
`uid` int(11) NOT NULL,
`campo` text NOT NULL,
`valor` text NOT NULL,
PRIMARY KEY (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!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 */;
CREATE TABLE IF NOT EXISTS `articulos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`idCategoria` int(3) NOT NULL,
`asunto` text NOT NULL,
`mensaje` text NOT NULL,
`fecha` datetime NOT NULL,
`valoracionBien` int(11) NOT NULL,
`valoracionMal` int(11) NOT NULL,
`lecturas` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `uid` (`uid`,`idCategoria`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `articulosCategorias` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`icono` text NOT NULL,
`nombre` text NOT NULL,
`descripcion` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
INSERT INTO `articulosCategorias` (`id`, `icono`, `nombre`, `descripcion`) VALUES
(1, 'estrella.png', 'Trucos', ''),
(2, 'idea.png', 'Idea', ''),
(3, 'problema.png', 'Problema', ''),
(4, 'tutorial.png', 'Tutorial', ''),
(5, 'sinicono.png', 'Otros / Sin clasificar', '');
CREATE TABLE `aprendeprogramacion`.`articulosComentarios` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`uid` INT NOT NULL ,
`comentario` TEXT NOT NULL ,
`fecha` DATETIME NOT NULL ,
INDEX ( `uid` )
) ENGINE = MYISAM ;
CREATE TABLE IF NOT EXISTS `creditos` (
`uid` int(11) NOT NULL,
`creditos` int(11) NOT NULL,
KEY `uid` (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `creditosActivaciones` (
`uid` int(11) NOT NULL,
`tipoInversion` int(11) NOT NULL,
`slots` int(11) NOT NULL,
`utilizado` int(6) NOT NULL,
KEY `uid` (`uid`,`tipoInversion`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `creditosHistorial` (
`uid` int(11) NOT NULL,
`tipo` int(1) NOT NULL,
`motivo` text NOT NULL,
`cantidad` int(5) NOT NULL,
`precio` double(11,2) DEFAULT NULL,
`idtransaccion` text,
`fecha` datetime NOT NULL,
`pagado` tinyint(1) NOT NULL,
KEY `uid` (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `creditosInversiones` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`titulo` text NOT NULL,
`descripcion` text NOT NULL,
`caracteristicas` text NOT NULL,
`creditos` int(11) NOT NULL,
`slots` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
INSERT INTO `creditosInversiones` (`id`, `titulo`, `descripcion`, `caracteristicas`, `creditos`, `slots`) VALUES
(1, 'Activar 5 favoritos', 'Activa 5 slots de favoritos para todas las secciones (foros, cursos, artículos). Podrás guardar 5 elementos del contenido indefinidamente para acceder fácilmente a él.', '» Podrás añadir 5 favoritos más.<br>\r\n» Seguimiento de comentarios personalizado<br>\r\n» Afecta a la sección Foros<br>\r\n» Afecta a la sección Artículos<br>\r\n» Afecta a la sección Cursos<br>\r\n» Afecta a la sección Pizarra<br>', 25, 5),
(2, 'Activar 10 favoritos', 'Activa 10 slots de favoritos para todas las secciones (foros, cursos, artículos). Podrás guardar 10 elementos del contenido indefinidamente para acceder fácilmente a él.', '» Podrás añadir 10 favoritos más.<br>\r\n» Seguimiento de comentarios personalizado<br>\r\n» Afecta a la sección Foros<br>\r\n» Afecta a la sección Artículos<br>\r\n» Afecta a la sección Cursos<br>\r\n» Afecta a la sección Pizarra<br>', 40, 10),
(3, 'Activar 1 bloc de notas', 'El bloc de notas cuenta con diferentes registros para guardar diferentes tipos de recordatorios. Con esta opción podrás añadir una página adicional a tu bloc de notas personal.', '» Activa una página adicional<br>\r\n» Editor gráfico WYSIWYG<br>\r\n» Orden personalizado<br>', 50, 1),
(4, 'Descarga PDF de 1 curso', 'Permite activar la descarga en PDF de todos los capítulos de un curso al que te encuentres suscrito. Al activar la descarga dispondrás de la activación de un curso, al que podrás acceder indefinidamente a su descarga.', '» Activa un curso personalizado para descarga<br>\r\n» Descarga de cada capítulo individual en PDF<br>\r\n» Descarga de cada ejercicio individual en PDF<br>\r\n» Acceso permanente a la descarga del curso seleccionado.', 75, 1),
(5, 'Quitar publicidad pequeña', 'Permite quitar indefinidamente la publicidad pequeña que se encuentra entre el contenido de las páginas.', '» Quita la publicidad permanentemente<br>\r\n» Afecta a la publicidad pequeña que aparece en los contenidos', 100, 1),
(6, 'Quitar publicidad superior', 'Permite quitar el banner publicitario superior indefinidamente.', '» Quita la publicidad permanentemente<br>\r\n» Afecta a la publicidad superior en banner horizontal', 200, 1);
CREATE TABLE IF NOT EXISTS `creditosInvertidos` (
`uid` int(11) NOT NULL,
`tipoInversion` text NOT NULL,
`cantidad` int(11) NOT NULL,
`fecha` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `forosCategorias` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nombre` text NOT NULL,
`descripcion` text NOT NULL,
`poseeSubcategorias` int(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `forosMensajes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`asunto` text NOT NULL,
`mensaje` text NOT NULL,
`fecha` datetime NOT NULL,
`lecturas` int(11) NOT NULL,
`cerrado` int(10) NOT NULL,
`idCategoria` int(4) NOT NULL,
`idSubcategoria` int(4) NOT NULL,
PRIMARY KEY (`id`),
KEY `uid` (`uid`,`idCategoria`,`idSubcategoria`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `forosRespuestas` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`idMensaje` int(11) NOT NULL,
`idCategoria` int(11) NOT NULL,
`idSubcategoria` int(11) NOT NULL,
`asunto` text NOT NULL,
`mensaje` text NOT NULL,
`fecha` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `uid` (`uid`,`idMensaje`),
KEY `idCategoria` (`idCategoria`),
KEY `idSubcategoria` (`idSubcategoria`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `forosSubcategorias` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nombre` text NOT NULL,
`descripcion` text NOT NULL,
`idCategoria` int(11) NOT NULL,
`icono` text,
PRIMARY KEY (`id`),
KEY `idCategoria` (`idCategoria`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `forosSuscripciones` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`idMensaje` int(11) NOT NULL,
`fecha` date NOT NULL,
`verificado` INT(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `usuarios` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`usuario` text NOT NULL,
`password` text NOT NULL,
`email` text NOT NULL,
`fechaRegistro` datetime NOT NULL,
`fechaUltimaEntrada` datetime NOT NULL,
`avatar` text NOT NULL,
`admin` tinyint(1) NOT NULL,
`confirmado` int(1) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
CREATE TABLE IF NOT EXISTS `usuariosDatos` (
`uid` int(11) NOT NULL,
`campo` text NOT NULL,
`valor` text NOT NULL,
PRIMARY KEY (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Home / Developer API / Tour / Get a Project - Solutions for Bug & Issue Tracking, Collaboration Tools, Subversion Hosting, Git Hosting
Gap-dev is powered by Assembla.
0 Comments