1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| --
-- Structure de la table `news`
--
CREATE TABLE `news` (
`id` int(10) unsigned NOT NULL auto_increment,
`title` varchar(50) NOT NULL,
`content` mediumtext NOT NULL,
`cat` tinyint(3) unsigned NOT NULL,
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) COMMENT='News du site';
-- --------------------------------------------------------
--
-- Structure de la table `react`
--
CREATE TABLE `react` (
`id` int(10) unsigned NOT NULL auto_increment,
`id_news` int(10) unsigned NOT NULL,
`user_name` varchar(20) NOT NULL,
`content` tinytext NOT NULL,
`ip` varchar(15) NOT NULL default '000.000.000.000',
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) COMMENT='Comentaires des news.'; |