1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
CREATE TABLE IF NOT EXISTS `categories` (
`Id_categorie` smallint(255) unsigned NOT NULL AUTO_INCREMENT,
`nom` varchar(255) NOT NULL,
`parent` smallint(255) unsigned NOT NULL,
PRIMARY KEY (`Id_categorie`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
--
-- Contenu de la table `categories`
--
INSERT INTO `categories` (`Id_categorie`, `nom`, `parent`) VALUES
(1, 'Actus', 0),
(2, 'commune', 1),
(3, 'Informatique', 1),
(4, 'sports', 1),
(5, 'chantiers', 2),
(6, 'voierie', 2),
(7, 'Brèves', 1),
(8, 'Formulaires', 0),
(9, 'demande de congés', 8);
(9, 'demande d\'intervention, 8) |
Partager