-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Servidor: localhost
-- Tiempo de generación: 15-06-2020 a las 21:44:42
-- Versión del servidor: 8.0.20-0ubuntu0.20.04.1
-- Versión de PHP: 7.4.3

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
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: `azar_dev`
--

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

--
-- Estructura de tabla para la tabla `monitoreo_quiniela_individual`
--

CREATE TABLE `monitoreo_quiniela_individual` (
  `idmonito` int NOT NULL,
  `jugada_m` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `jugada_abre` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `loteria_m` int NOT NULL,
  `usuario` int NOT NULL,
  `suma` float NOT NULL,
  `cantidad` int NOT NULL,
  `fecha_apert` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fecha_actualizacion` datetime NOT NULL,
  `dia_jugada` date NOT NULL,
  `quiniela` tinyint(1) NOT NULL DEFAULT '0',
  `pale` tinyint(1) NOT NULL DEFAULT '0',
  `tripleta` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Índices para tablas volcadas
--

--
-- Indices de la tabla `monitoreo_quiniela_individual`
--
ALTER TABLE `monitoreo_quiniela_individual`
  ADD PRIMARY KEY (`idmonito`),
  ADD KEY `jugada_m` (`jugada_m`),
  ADD KEY `loteria_m` (`loteria_m`),
  ADD KEY `dia_jugada` (`dia_jugada`),
  ADD KEY `usuario` (`usuario`);

--
-- AUTO_INCREMENT de las tablas volcadas
--

--
-- AUTO_INCREMENT de la tabla `monitoreo_quiniela_individual`
--
ALTER TABLE `monitoreo_quiniela_individual`
  MODIFY `idmonito` int NOT NULL AUTO_INCREMENT;

--
-- Restricciones para tablas volcadas
--

--
-- Filtros para la tabla `monitoreo_quiniela_individual`
--
ALTER TABLE `monitoreo_quiniela_individual`
  ADD CONSTRAINT `monitoreo_quiniela_individual_ibfk_1` FOREIGN KEY (`loteria_m`) REFERENCES `loterias_azar` (`idloteria`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  ADD CONSTRAINT `monitoreo_quiniela_individual_ibfk_2` FOREIGN KEY (`usuario`) REFERENCES `usuarios_azar` (`idusuario`) ON DELETE RESTRICT ON UPDATE RESTRICT;
COMMIT;

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