· 9 years ago · Oct 03, 2016, 12:32 AM
1CREATE TABLE IF NOT EXISTS `tipoalerta` (
2 `id` int(9) NOT NULL AUTO_INCREMENT COMMENT 'Es la cantidad de tipo de alertas que pueden haber',
3 `tipo` varchar(20) NOT NULL COMMENT 'Registra el tipo de alerta',
4 PRIMARY KEY (`id`),
5 KEY `tipo` (`tipo`)
6) ENGINE=InnoDB DEFAULT CHARSET=latin1;
7
8INSERT INTO `tipoalerta` (`id`, `tipo`) VALUES (1, 'Accidente');
9INSERT INTO `tipoalerta` (`id`, `tipo`) VALUES (2, 'Atraso');
10INSERT INTO `tipoalerta` (`id`, `tipo`) VALUES (3, 'Otros');