-- phpMyAdmin SQL Dump
-- version 4.4.10
-- http://www.phpmyadmin.net
--
-- Servidor: bbddsrv18.dondominio.com
-- Tiempo de generación: 06-01-2017 a las 22:52:55
-- Versión del servidor: 5.5.53-0+deb8u1
-- Versión de PHP: 5.4.45-0+deb7u6

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

--
-- Base de datos: `ddb88288`
--

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

--
-- Estructura de tabla para la tabla `Deportistas`
--

CREATE TABLE IF NOT EXISTS `Deportistas` (
  `Id` varchar(10) COLLATE utf8_spanish_ci NOT NULL,
  `IdEntrenador` varchar(10) COLLATE utf8_spanish_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;

--
-- Volcado de datos para la tabla `Deportistas`
--

INSERT INTO `Deportistas` (`Id`, `IdEntrenador`) VALUES
('13', '11'),
('8', '11'),
('18', '0'),
('19', '0'),
('20', '0'),
('21', '0'),
('24', '0'),
('25', '0'),
('26', '0'),
('27', '0'),
('28', '0'),
('29', '0');

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

--
-- Estructura de tabla para la tabla `Entrenadores`
--

CREATE TABLE IF NOT EXISTS `Entrenadores` (
  `Id` varchar(10) COLLATE utf8_spanish_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;

--
-- Volcado de datos para la tabla `Entrenadores`
--

INSERT INTO `Entrenadores` (`Id`) VALUES
('11'),
('17'),
('22'),
('23');

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

--
-- Estructura de tabla para la tabla `Macrociclos`
--

CREATE TABLE IF NOT EXISTS `Macrociclos` (
  `IdMacrociclo` mediumint(10) NOT NULL,
  `Nombre` varchar(25) CHARACTER SET utf8 COLLATE utf8_spanish_ci NOT NULL,
  `Tipo` varchar(3) CHARACTER SET utf8 COLLATE utf8_spanish_ci NOT NULL,
  `Desde` date NOT NULL,
  `Hasta` date NOT NULL,
  `idDeportista` mediumint(10) NOT NULL,
  `idEntrenador` mediumint(10) NOT NULL
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;

--
-- Volcado de datos para la tabla `Macrociclos`
--

INSERT INTO `Macrociclos` (`IdMacrociclo`, `Nombre`, `Tipo`, `Desde`, `Hasta`, `idDeportista`, `idEntrenador`) VALUES
(1, 'Spartan Race 2017', 'REG', '2017-01-01', '2017-07-19', 8, 11),
(2, 'Mud Race', 'ATR', '2017-05-01', '2017-09-03', 8, 11),
(3, 'Mud race 2015', 'ATR', '2016-02-01', '2016-05-10', 13, 11),
(4, 'Prueba 1', 'ATR', '2017-01-01', '2017-03-31', 11, 13),
(7, 'Prueba pasada', 'ATR', '2014-01-06', '2015-01-06', 8, 11),
(6, 'Prueba 3', 'ACE', '2017-01-07', '2017-03-06', 8, 11),
(8, 'Actual 1', 'ACE', '2017-01-06', '2017-09-06', 13, 11),
(9, 'Prueba 4', 'ACE', '2017-01-06', '2017-02-06', 18, 11),
(10, 'Prueba pasado 2', 'ACE', '2014-01-06', '2016-01-06', 18, 11),
(11, 'Futuro', 'ACE', '2017-02-06', '2017-06-06', 18, 11),
(12, 'Futuro 2', 'ACE', '2017-06-06', '2018-01-06', 18, 11),
(13, 'Prueba 5', 'ATR', '2017-01-06', '2017-04-06', 13, 11);

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

--
-- Estructura de tabla para la tabla `Usuarios`
--

CREATE TABLE IF NOT EXISTS `Usuarios` (
  `IdUsuario` mediumint(10) NOT NULL,
  `Tipo` varchar(1) CHARACTER SET latin1 NOT NULL COMMENT ' E=Entrenador, D=Deportista, X=no activada la cuenta',
  `IdEntrenador` mediumint(10) NOT NULL DEFAULT '-1',
  `Nombre` varchar(30) CHARACTER SET latin1 NOT NULL,
  `Apellidos` varchar(30) CHARACTER SET latin1 NOT NULL,
  `Alias` varchar(10) CHARACTER SET latin1 NOT NULL,
  `Telefono` varchar(12) CHARACTER SET latin1 NOT NULL,
  `Mail` varchar(30) CHARACTER SET latin1 NOT NULL,
  `Password` varchar(50) CHARACTER SET latin1 NOT NULL,
  `Genero` varchar(1) COLLATE utf8_spanish_ci NOT NULL,
  `CP` varchar(5) COLLATE utf8_spanish_ci NOT NULL,
  `Edad` mediumint(3) NOT NULL
) ENGINE=MyISAM AUTO_INCREMENT=30 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;

--
-- Volcado de datos para la tabla `Usuarios`
--

INSERT INTO `Usuarios` (`IdUsuario`, `Tipo`, `IdEntrenador`, `Nombre`, `Apellidos`, `Alias`, `Telefono`, `Mail`, `Password`, `Genero`, `CP`, `Edad`) VALUES
(8, 'D', 11, 'Celestino', 'Rey', 'Celestino', '649946662', 'celestino.rey@gmail.com', '7829bfe1642f11e57fcba2695e73f01b', '', '', 0),
(11, 'E', -1, 'Jorge', 'Rey', 'Jorge', '654013676', 'jreymota@gmail.com', 'ad7edee56f808d3bcc51772604fa6207', '', '', 0),
(17, 'E', -1, 'Tino', 'Rey', 'Tino', '649946662', 'creylopez@yahoo.es', '7829bfe1642f11e57fcba2695e73f01b', '', '', 0),
(13, 'D', 11, 'Maricruz', 'Mota', 'Maricruz', '658228129', 'motagarrido@gmail.com', 'ca4553fbc5fa4c74484f318d8c176752', '', '', 0),
(18, 'D', 11, 'John', 'Doe', 'John', '666555777', 'john.doe@hotmail.com', '827ccb0eea8a706c4c34a16891f84e7b', '', '', 0),
(19, 'D', 17, 'Jane', 'Doe', 'Jane', '666777888', 'jane.doe@hotmail.com', '827ccb0eea8a706c4c34a16891f84e7b', '', '', 0),
(20, 'D', -1, 'Juan', 'Mart&iacute;nez', 'Juan', '666777999', 'jmartinez@yahoo.com', '827ccb0eea8a706c4c34a16891f84e7b', '', '', 0),
(22, 'E', -1, 'Nuestro', 'Equipo de Entrenadores', 'Nuestro', '000000000', 'king.bernard.b@gmail.com', '827ccb0eea8a706c4c34a16891f84e7b', '', '', 0),
(23, 'E', -1, 'Susana', 'Moral', 'Susana', '666666777', 'susana.m@hotmeil.com', '827ccb0eea8a706c4c34a16891f84e7b', '', '', 0),
(24, 'D', -1, 'Alberto', 'Rey', 'Alberto', '666999888', 'albertor@yimail.com', '827ccb0eea8a706c4c34a16891f84e7b', 'H', '', 0),
(25, 'D', -1, 'Javier', 'Perez', 'Javier', '666444555', 'jperez@yaju.es', '827ccb0eea8a706c4c34a16891f84e7b', 'M', '', 0),
(26, 'D', -1, 'Rafael', 'Korisco', 'Rafael', '666111222', 'korisco.r@mehtro.es', '827ccb0eea8a706c4c34a16891f84e7b', 'H', '', 0),
(27, 'D', -1, 'Veronica', 'Alcaniz', 'Veronica', '1234567', 'veroalca@hachepe.com', '827ccb0eea8a706c4c34a16891f84e7b', 'H', '', 0),
(28, 'D', -1, 'Frank', 'Corner', 'Frank', '555666777', 'frank.corner@esquina.co', '827ccb0eea8a706c4c34a16891f84e7b', 'H', '', 0),
(29, 'D', -1, 'Julius', 'Caesar', 'Julius', '1234', 'jcaesar@rome.ant', '827ccb0eea8a706c4c34a16891f84e7b', 'H', '', 0);

--
-- Índices para tablas volcadas
--

--
-- Indices de la tabla `Deportistas`
--
ALTER TABLE `Deportistas`
  ADD PRIMARY KEY (`Id`);

--
-- Indices de la tabla `Entrenadores`
--
ALTER TABLE `Entrenadores`
  ADD PRIMARY KEY (`Id`);

--
-- Indices de la tabla `Macrociclos`
--
ALTER TABLE `Macrociclos`
  ADD PRIMARY KEY (`IdMacrociclo`);

--
-- Indices de la tabla `Usuarios`
--
ALTER TABLE `Usuarios`
  ADD PRIMARY KEY (`IdUsuario`);

--
-- AUTO_INCREMENT de las tablas volcadas
--

--
-- AUTO_INCREMENT de la tabla `Macrociclos`
--
ALTER TABLE `Macrociclos`
  MODIFY `IdMacrociclo` mediumint(10) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT de la tabla `Usuarios`
--
ALTER TABLE `Usuarios`
  MODIFY `IdUsuario` mediumint(10) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=30;
/*!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 */;
