 
 INSERT INTO `mortals` (`id_usuario`) VALUES
 (5200),
-(5503),
-(5505);
+(5501),
+(5505),
+(5508);
+
+-- --------------------------------------------------------
+
+--
+-- Estructura de tabla para la tabla `sub_temas_ticket`
+--
+
+DROP TABLE IF EXISTS `sub_temas_ticket`;
+CREATE TABLE `sub_temas_ticket` (
+  `id` int(11) NOT NULL,
+  `nombre` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
+  `id_tema` int(11) NOT NULL
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
+
+--
+-- Volcado de datos para la tabla `sub_temas_ticket`
+--
+
+INSERT INTO `sub_temas_ticket` (`id`, `nombre`, `id_tema`) VALUES
+(1, 'Pantalla', 1),
+(2, 'Impresora', 1),
+(3, 'Office', 2),
+(4, 'Outlook', 2),
+(5, '41', 2),
+(6, '42', 1),
+(7, '1', 46),
+(8, '2', 47),
+(9, '2', 48),
+(10, '2', 49),
+(11, '2', 50),
+(12, '2', 2),
+(13, '2', 2),
+(14, 'Algo mas', 2),
+(15, 'Algo mas', 2),
+(16, 'Focos', 1),
+(17, 'Un tema nuevo', 2),
+(18, 'Un tema nuevo', 2);
 
 -- --------------------------------------------------------
 

ALTER TABLE `llamadas`
  MODIFY `id_llamada` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT de la tabla `tickets`
--
ALTER TABLE `tickets`
  MODIFY `id_ticket` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55;
--
-- AUTO_INCREMENT de la tabla `ticket_sus`
--
ALTER TABLE `ticket_sus`
  MODIFY `id_ticketSU` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;
--
-- AUTO_INCREMENT de la tabla `users`
--
ALTER TABLE `users`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5508;
/*!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 */;

--

INSERT INTO `ticket_sus` (`id_ticketSU`, `id_SU`, `id_ticket`, `porcentaje`, `prioridad`) VALUES
(9, 5504, 17, 0, NULL),
(13, 5504, 28, 0, NULL),
(38, 5504, 53, 0, NULL),
(39, 5504, 54, 0, NULL),
(40, 5504, 55, 0, NULL),
(41, 5504, 56, 0, NULL),
(42, 5504, 57, 0, NULL),
(43, 5504, 58, 0, NULL),
(44, 5504, 59, 0, NULL),
(45, 5504, 60, 0, NULL),
(46, 5504, 61, 0, NULL),
(47, 5504, 62, 0, NULL),
(48, 5504, 63, 0, NULL),
(49, 5504, 64, 0, NULL),
(50, 5504, 65, 0, NULL),
(51, 5504, 66, 0, NULL),
(52, 5504, 67, 0, NULL),
(53, 5504, 68, 0, NULL),
(54, 5504, 69, 0, NULL),
(55, 5504, 70, 0, NULL),
(56, 5504, 71, 0, 'alto');

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

--
-- Estructura de tabla para la tabla `ticket_tiene_tema`
--

DROP TABLE IF EXISTS `ticket_tiene_tema`;
CREATE TABLE `ticket_tiene_tema` (
  `id_ticketSU` int(11) NOT NULL,
  `idTema` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `ticket_tiene_tema` (`id_ticketSU`, `idTema`) VALUES
(41, 5),
(42, 6),
(56, 18),
(56, 18),
(56, 18),
(46, 7),
(47, 8),
(48, 9),
(49, 10),
(50, 11),
(51, 12),
(52, 13),
(53, 14),
(54, 15),
(55, 16),
(56, 18);

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

