-- phpMyAdmin SQL Dump
-- version 3.4.10.1deb1
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 22-04-2014 a las 18:13:59
-- Versión del servidor: 5.5.35
-- Versión de PHP: 5.3.10-1ubuntu3.11
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!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: `portal`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `anuncios`
--
CREATE TABLE IF NOT EXISTS `anuncios` (
`ID` int(10) NOT NULL,
`TITULO` varchar(50) COLLATE utf8_spanish_ci NOT NULL,
`DESCRIPCION` varchar(500) COLLATE utf8_spanish_ci NOT NULL,
`TARIFA` varchar(15) COLLATE utf8_spanish_ci NOT NULL,
`WEB` varchar(100) COLLATE utf8_spanish_ci NOT NULL,
`FECHA_INI`
date NOT
NULL, `FECHA_FIN`
date NOT
NULL, `CATEGORIA` varchar(20) COLLATE utf8_spanish_ci NOT NULL,
`MAPA` varchar(1000) COLLATE utf8_spanish_ci NOT NULL,
`DIRECCION` varchar(50) COLLATE utf8_spanish_ci NOT NULL,
`USUARIO` int(8) NOT NULL,
`FACEBOOK` varchar(70) COLLATE utf8_spanish_ci NOT NULL,
`TWITTER` varchar(70) COLLATE utf8_spanish_ci NOT NULL,
`GOOGLE` varchar(70) COLLATE utf8_spanish_ci NOT NULL,
PRIMARY
KEY (`TITULO`
,`USUARIO`
)) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
--
-- Volcado de datos para la tabla `anuncios`
--
INSERT INTO `anuncios` (`ID`, `TITULO`, `DESCRIPCION`, `TARIFA`, `WEB`, `FECHA_INI`, `FECHA_FIN`, `CATEGORIA`, `MAPA`, `DIRECCION`, `USUARIO`, `FACEBOOK`, `TWITTER`, `GOOGLE`) VALUES
(1398089916, 'perro3', 'perro1 bonito', 'basico', '', '2014-04-21', '2015-04-21', 'RESTAURANTES', '', 'perro', 25600083, '', '', ''),
(1398089905, 'perro2', 'perro1 bonito', 'basico', '', '2014-04-21', '2015-04-21', 'HOTELES', '', 'perro', 25600083, '', '', ''),
(1398089887, 'perro1', 'perro1 bonito', 'basico', '', '2014-04-21', '2015-04-21', 'HOTELES', '', 'perro', 25600083, '', '', ''),
(1398109055, 'perro4', 'perro4', 'basico', '', '2014-04-21', '2015-04-21', 'HOTELES', '', 'kjiu', 11111111, '', '', ''),
(1398109097, 'gap2', 'das', 'basico', '', '2014-04-21', '2015-04-21', 'HOTELES', '', 'fds', 11111111, '', '', '');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `categorias`
--
CREATE TABLE IF NOT EXISTS `categorias` (
`ID` int(2) NOT NULL AUTO_INCREMENT,
`NOMBRE` varchar(20) COLLATE utf8_spanish_ci NOT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci AUTO_INCREMENT=3 ;
--
-- Volcado de datos para la tabla `categorias`
--
INSERT INTO `categorias` (`ID`, `NOMBRE`) VALUES
(1, 'HOTELES'),
(2, 'RESTAURANTES');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `comentarios`
--
CREATE TABLE IF NOT EXISTS `comentarios` (
`DNI_USUARIO` int(8) NOT NULL,
`ID_ANUNCIO` int(5) NOT NULL,
`COMENTARIO` varchar(200) COLLATE utf8_spanish_ci NOT NULL,
PRIMARY
KEY (`DNI_USUARIO`
,`ID_ANUNCIO`
,`COMENTARIO`
)) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `imagenes`
--
CREATE TABLE IF NOT EXISTS `imagenes` (
`ID_ANUNCIO` int(10) NOT NULL,
`NOMBRE` varchar(40) COLLATE utf8_spanish_ci NOT NULL,
PRIMARY
KEY (`ID_ANUNCIO`
,`NOMBRE`
)) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
--
-- Volcado de datos para la tabla `imagenes`
--
INSERT INTO `imagenes` (`ID_ANUNCIO`, `NOMBRE`) VALUES
(1398089887, 'perro.jpg'),
(1398089905, 'perro2.jpg'),
(1398089916, 'perro tres.jpg'),
(1398109055, 'perro4.jpg'),
(1398109097, 'ga2.jpg');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `noticias`
--
CREATE TABLE IF NOT EXISTS `noticias` (
`TITULO` varchar(50) COLLATE utf8_spanish_ci NOT NULL,
`TEXTO` varchar(2000) COLLATE utf8_spanish_ci NOT NULL,
`IMAGEN` varchar(40) COLLATE utf8_spanish_ci DEFAULT NULL,
`FUENTE` varchar(200) COLLATE utf8_spanish_ci DEFAULT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `usuarios`
--
CREATE TABLE IF NOT EXISTS `usuarios` (
`DNI` int(8) NOT NULL,
`USUARIO` varchar(15) COLLATE utf8_spanish_ci NOT NULL,
`PASSWORD` varchar(40) COLLATE utf8_spanish_ci NOT NULL,
`EMAIL` varchar(50) COLLATE utf8_spanish_ci NOT NULL,
`NOMBRE` varchar(30) CHARACTER SET ucs2 COLLATE ucs2_spanish_ci NOT NULL,
`APELLIDOS` varchar(40) COLLATE utf8_spanish_ci NOT NULL,
`DIRECCION` varchar(100) COLLATE utf8_spanish_ci NOT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
--
-- Volcado de datos para la tabla `usuarios`
--
INSERT INTO `usuarios` (`DNI`, `USUARIO`, `PASSWORD`, `EMAIL`, `NOMBRE`, `APELLIDOS`, `DIRECCION`) VALUES
(25600083, 'prueba', '711383a59fda05336fd2ccf70c8059d1523eb41a', '[email protected]', 'PEPE', 'JIMENEZ RUIZ', 'c/cantos n15'), (11111111, 'antonio', '356a192b7913b04c54574d18c28d46e6395428ab', '[email protected]', '', '', '');
/*!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 */;