par
HunabKu » 29 mai 2013, 17:27
Voici :
CREATE TABLE `forum_categorie` (
`cat_id` int(11) not null auto_increment,
`cat_nom` varchar(30) CHARSET latin1 not null,
`cat_ordre` int(11) not null,
PRIMARY KEY (`cat_id`),
UNIQUE KEY (`cat_ordre`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5;
CREATE TABLE `forum_forum` (
`forum_id` int(11) not null auto_increment,
`forum_cat_id` mediumint(8) not null,
`forum_name` varchar(30) CHARSET latin1 not null,
`forum_desc` text CHARSET latin1 not null,
`forum_ordre` mediumint(8) not null,
`forum_last_post_id` int(11) not null,
`forum_topic` mediumint(8) not null,
`forum_post` mediumint(8) not null,
`forum_icon_lu` varchar(255),
`forum_icon_non_lu` varchar(255),
`auth_view` tinyint(4) not null,
`auth_post` tinyint(4) not null,
`auth_topic` tinyint(4) not null,
`auth_annonce` tinyint(4) not null,
`auth_modo` tinyint(4) not null,
PRIMARY KEY (`forum_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=17;
CREATE TABLE `forum_membres` (
`membre_id` int(11) not null auto_increment,
`membre_pseudo` varchar(30) CHARSET latin1 not null,
`membre_mdp` varchar(32) CHARSET latin1 not null,
`membre_email` varchar(250) CHARSET latin1 not null,
`membre_msn` varchar(250) CHARSET latin1 not null,
`membre_siteweb` varchar(100) CHARSET latin1 not null,
`membre_avatar` varchar(100) CHARSET latin1 not null,
`membre_signature` varchar(200) CHARSET latin1 not null,
`membre_localisation` varchar(100) CHARSET latin1 not null,
`membre_inscrit` int(11) not null,
`membre_derniere_visite` int(11) not null,
`membre_rang` tinyint(4) default '2',
`membre_post` int(11) not null,
PRIMARY KEY (`membre_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6;
CREATE TABLE `forum_post` (
`post_id` int(11) not null auto_increment,
`post_createur` int(11) not null,
`post_texte` text CHARSET latin1 not null,
`post_time` int(11) not null,
`topic_id` int(11) not null,
`post_forum_id` int(11) not null,
PRIMARY KEY (`post_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
CREATE TABLE `forum_topic` (
`topic_id` int(11) not null auto_increment,
`forum_id` int(11) not null,
`topic_titre` char(60) CHARSET latin1 not null,
`topic_createur` int(11) not null,
`topic_vu` mediumint(8) not null,
`topic_time` int(11) not null,
`topic_genre` varchar(30) CHARSET latin1 not null,
`topic_last_post` int(11) not null,
`topic_first_post` int(11) not null,
`topic_post` mediumint(8) not null,
PRIMARY KEY (`topic_id`),
UNIQUE KEY (`topic_last_post`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
CREATE TABLE `forum_topic_view` (
`tv_id` int(11) not null,
`tv_topic_id` int(11) not null,
`tv_forum_id` int(11) not null,
`tv_post_id` int(11) not null,
`tv_poste` enum('0','1') not null,
PRIMARY KEY (`tv_id`,`tv_topic_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
Merci d'avance.
Hunab Ku.
Voici :
[sql]
CREATE TABLE `forum_categorie` (
`cat_id` int(11) not null auto_increment,
`cat_nom` varchar(30) CHARSET latin1 not null,
`cat_ordre` int(11) not null,
PRIMARY KEY (`cat_id`),
UNIQUE KEY (`cat_ordre`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5;
CREATE TABLE `forum_forum` (
`forum_id` int(11) not null auto_increment,
`forum_cat_id` mediumint(8) not null,
`forum_name` varchar(30) CHARSET latin1 not null,
`forum_desc` text CHARSET latin1 not null,
`forum_ordre` mediumint(8) not null,
`forum_last_post_id` int(11) not null,
`forum_topic` mediumint(8) not null,
`forum_post` mediumint(8) not null,
`forum_icon_lu` varchar(255),
`forum_icon_non_lu` varchar(255),
`auth_view` tinyint(4) not null,
`auth_post` tinyint(4) not null,
`auth_topic` tinyint(4) not null,
`auth_annonce` tinyint(4) not null,
`auth_modo` tinyint(4) not null,
PRIMARY KEY (`forum_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=17;
CREATE TABLE `forum_membres` (
`membre_id` int(11) not null auto_increment,
`membre_pseudo` varchar(30) CHARSET latin1 not null,
`membre_mdp` varchar(32) CHARSET latin1 not null,
`membre_email` varchar(250) CHARSET latin1 not null,
`membre_msn` varchar(250) CHARSET latin1 not null,
`membre_siteweb` varchar(100) CHARSET latin1 not null,
`membre_avatar` varchar(100) CHARSET latin1 not null,
`membre_signature` varchar(200) CHARSET latin1 not null,
`membre_localisation` varchar(100) CHARSET latin1 not null,
`membre_inscrit` int(11) not null,
`membre_derniere_visite` int(11) not null,
`membre_rang` tinyint(4) default '2',
`membre_post` int(11) not null,
PRIMARY KEY (`membre_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6;
CREATE TABLE `forum_post` (
`post_id` int(11) not null auto_increment,
`post_createur` int(11) not null,
`post_texte` text CHARSET latin1 not null,
`post_time` int(11) not null,
`topic_id` int(11) not null,
`post_forum_id` int(11) not null,
PRIMARY KEY (`post_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
CREATE TABLE `forum_topic` (
`topic_id` int(11) not null auto_increment,
`forum_id` int(11) not null,
`topic_titre` char(60) CHARSET latin1 not null,
`topic_createur` int(11) not null,
`topic_vu` mediumint(8) not null,
`topic_time` int(11) not null,
`topic_genre` varchar(30) CHARSET latin1 not null,
`topic_last_post` int(11) not null,
`topic_first_post` int(11) not null,
`topic_post` mediumint(8) not null,
PRIMARY KEY (`topic_id`),
UNIQUE KEY (`topic_last_post`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
CREATE TABLE `forum_topic_view` (
`tv_id` int(11) not null,
`tv_topic_id` int(11) not null,
`tv_forum_id` int(11) not null,
`tv_post_id` int(11) not null,
`tv_poste` enum('0','1') not null,
PRIMARY KEY (`tv_id`,`tv_topic_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[/sql]
Merci d'avance.
Hunab Ku.