-- https://www.phpmyadmin.net/
--
-- Servidor: localhost
-- Tiempo de generación: 08-02-2023 a las 14:22:41
-- Versión del servidor: 10.3.35-MariaDB
-- Versión de PHP: 8.0.20

START TRANSACTION;



--
-- Base de datos: `ads_server`
--

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

--
-- Estructura de tabla para la tabla `almacen`
--

CREATE TABLE `almacen` (
  `id` int(11) NOT NULL,
  `filename` varchar(200) NOT NULL,
  `size` int(10) NOT NULL,
  `video_width` int(10) NOT NULL,
  `video_height` int(10) NOT NULL,
  `video_lenght` int(10) NOT NULL,
  `thumbnail` varchar(100) CHARACTER SET utf8 COLLATE utf8_spanish_ci NOT NULL,
  `user` varchar(20) NOT NULL,
  `date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

INSERT INTO `almacen` (`id`, `filename`, `size`, `video_width`, `video_height`, `video_lenght`, `thumbnail`, `user`, `date`) VALUES
(1, 'fibraOpica1152_20230125170804.mp4', 507, 1152, 768, 10, 'fibraOpica1152_20230125170804.jpg', 'admin', '2023-01-25'),
(2, 'fin1080_20230125170821.mp4', 3345, 1080, 1080, 10, 'fin1080_20230125170821.jpg', 'admin', '2023-01-25'),
(3, 'JoeVasconcellos768_20230125170856.mp4', 275, 768, 432, 10, 'JoeVasconcellos768_20230125170856.jpg', 'admin', '2023-01-25'),
(4, 'fluor1152_20230125172436.mp4', 527, 1152, 768, 10, 'fluor1152_20230125172436.jpg', 'admin', '2023-01-25'),
(5, 'Profesor rosa 22 de febrero_20230125172457.mp4', 259, 768, 432, 10, 'Profesor rosa 22 de febrero_20230125172457.jpg', 'admin', '2023-01-25'),
(6, '01_20230127001834.mp4', 425, 640, 360, 7, '01_20230127001834.jpg', 'admin', '2023-01-27'),
(7, '02_20230127001836.mp4', 1816, 768, 512, 10, '02_20230127001836.jpg', 'admin', '2023-01-27'),
(8, '03_20230127001838.mp4', 1555, 600, 400, 10, '03_20230127001838.jpg', 'admin', '2023-01-27'),
(9, '04_20230127001840.mp4', 1823, 600, 400, 10, '04_20230127001840.jpg', 'admin', '2023-01-27'),
(10, '05_20230127001841.mp4', 1607, 480, 384, 10, '05_20230127001841.jpg', 'admin', '2023-01-27'),
(11, 'A1_m4_20230127184852.mp4', 1246, 480, 854, 13, 'A1_m4_20230127184852.jpg', 'admin', '2023-01-27'),
(12, 'A3_m4_20230127184855.mp4', 430, 480, 854, 6, 'A3_m4_20230127184855.jpg', 'admin', '2023-01-27'),
(13, 'A7_m4_20230127184857.mp4', 1329, 480, 854, 15, 'A7_m4_20230127184857.jpg', 'admin', '2023-01-27');

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

--
-- Estructura de tabla para la tabla `listas`
--

CREATE TABLE `listas` (
  `id_lista` int(11) NOT NULL,
  `nombre_lista` varchar(200) NOT NULL,
  `videos_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `ultimo_usuario` varchar(200) NOT NULL,
  `creacion` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

INSERT INTO `listas` (`id_lista`, `nombre_lista`, `videos_id`, `ultimo_usuario`, `creacion`) VALUES
(1, 'Lst_Prueba_01', '[{\"id\":\"1\",\"filename\":\"fibraOpica1152_20230125170804.mp4\",\"thumbnail\":\"fibraOpica1152_20230125170804.jpg\"},{\"id\":\"7\",\"filename\":\"02_20230127001836.mp4\",\"thumbnail\":\"02_20230127001836.jpg\"},{\"id\":\"8\",\"filename\":\"03_20230127001838.mp4\",\"thumbnail\":\"03_20230127001838.jpg\"}]', 'admin', '2023-01-25'),
(2, 'Lst_Privada', '[{\"id\":\"13\",\"filename\":\"A7_m4_20230127184857.mp4\",\"thumbnail\":\"A7_m4_20230127184857.jpg\"},{\"id\":\"11\",\"filename\":\"A1_m4_20230127184852.mp4\",\"thumbnail\":\"A1_m4_20230127184852.jpg\"},{\"id\":\"12\",\"filename\":\"A3_m4_20230127184855.mp4\",\"thumbnail\":\"A3_m4_20230127184855.jpg\"}]', 'admin', '2023-01-27');

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

--
-- Estructura de tabla para la tabla `players`
--

CREATE TABLE `players` (
  `id` int(11) NOT NULL,
  `player_name` varchar(50) COLLATE utf8_spanish_ci NOT NULL,
  `lst_assoc` varchar(50) CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL,
  `res_x` int(5) NOT NULL,
  `res_y` int(5) NOT NULL,
  `x0` int(5) NOT NULL,
  `y0` int(5) NOT NULL,
  `hour_start` varchar(2) COLLATE utf8_spanish_ci NOT NULL,
  `min_start` varchar(2) COLLATE utf8_spanish_ci NOT NULL,
  `hour_end` varchar(2) COLLATE utf8_spanish_ci NOT NULL,
  `min_end` varchar(2) COLLATE utf8_spanish_ci NOT NULL,
  `datecreate` date NOT NULL,
  `user` varchar(20) COLLATE utf8_spanish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;

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

INSERT INTO `players` (`id`, `player_name`, `lst_assoc`, `res_x`, `res_y`, `x0`, `y0`, `hour_start`, `min_start`, `hour_end`, `min_end`, `datecreate`, `user`) VALUES
(1, 'Player_01', 'Lst_Prueba_01', 600, 400, 10, 10, '19', '15', '19', '30', '2023-01-25', 'admin');

--
-- Índices para tablas volcadas
--

--
-- Indices de la tabla `almacen`
--
ALTER TABLE `almacen`
  ADD PRIMARY KEY (`id`),
  ADD KEY `id` (`id`);

--
-- Indices de la tabla `listas`
--
ALTER TABLE `listas`
  ADD PRIMARY KEY (`id_lista`);

--
-- Indices de la tabla `players`
--
ALTER TABLE `players`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT de las tablas volcadas
--

--
-- AUTO_INCREMENT de la tabla `almacen`
--
ALTER TABLE `almacen`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT de la tabla `listas`
--
ALTER TABLE `listas`
  MODIFY `id_lista` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `players`
--
ALTER TABLE `players`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
COMMIT;

