2008-11-26 03:24:51 +00:00
|
|
|
CREATE TABLE forum (
|
|
|
|
`forum_id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`forum_name` varchar(250) NOT NULL default '',
|
|
|
|
`forum_description` text,
|
|
|
|
`forum_parent` int(10) unsigned NOT NULL default '0',
|
|
|
|
`forum_sub` int(10) unsigned NOT NULL default '0',
|
|
|
|
`forum_datestamp` int(10) unsigned NOT NULL default '0',
|
2008-11-26 14:32:43 +00:00
|
|
|
`forum_moderators` tinyint(3) unsigned NOT NULL default '0',
|
2008-11-26 03:24:51 +00:00
|
|
|
`forum_threads` int(10) unsigned NOT NULL default '0',
|
|
|
|
`forum_replies` int(10) unsigned NOT NULL default '0',
|
|
|
|
`forum_lastpost_user` int(10) unsigned default NULL,
|
|
|
|
`forum_lastpost_info` varchar(40) default NULL,
|
2008-11-26 14:32:43 +00:00
|
|
|
`forum_class` tinyint(3) unsigned NOT NULL default '0',
|
2008-11-26 03:24:51 +00:00
|
|
|
`forum_order` int(10) unsigned NOT NULL default '0',
|
2008-11-26 14:32:43 +00:00
|
|
|
`forum_postclass` tinyint(3) unsigned NOT NULL default '0',
|
|
|
|
`forum_threadclass` tinyint(3) unsigned NOT NULL default '0',
|
2008-11-26 03:24:51 +00:00
|
|
|
`forum_options` text,
|
|
|
|
PRIMARY KEY (`forum_id`),
|
|
|
|
KEY `forum_parent` (`forum_parent`),
|
|
|
|
KEY `forum_sub` (`forum_sub`)
|
2008-11-26 14:32:43 +00:00
|
|
|
) Type=MyISAM AUTO_INCREMENT=1;
|
2006-12-02 04:36:16 +00:00
|
|
|
|
2008-11-26 03:24:51 +00:00
|
|
|
CREATE TABLE forum_thread (
|
|
|
|
`thread_id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`thread_name` varchar(250) NOT NULL default '',
|
|
|
|
`thread_thread` text NOT NULL,
|
|
|
|
`thread_forum_id` int(10) unsigned NOT NULL default '0',
|
|
|
|
`thread_views` int(10) unsigned NOT NULL default '0',
|
|
|
|
`thread_active` tinyint(3) unsigned NOT NULL default '0',
|
|
|
|
`thread_lastpost` int(10) unsigned NOT NULL default '0',
|
|
|
|
`thread_s` tinyint(1) unsigned NOT NULL default '0',
|
2008-11-26 14:32:43 +00:00
|
|
|
`thread_lastuser` int(10) unsigned default NULL,
|
2008-11-26 03:24:51 +00:00
|
|
|
`thread_total_replies` int(10) unsigned NOT NULL default '0',
|
|
|
|
`thread_options` text,
|
|
|
|
PRIMARY KEY (`thread_id`),
|
|
|
|
KEY `thread_forum_id` (`thread_forum_id`),
|
|
|
|
KEY `thread_s` (`thread_s`),
|
|
|
|
KEY `thread_lastpost` (`thread_lastpost`)
|
|
|
|
) Type=MyISAM AUTO_INCREMENT=1 ;
|
|
|
|
|
|
|
|
CREATE TABLE forum_post (
|
|
|
|
`post_id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`post_entry` text NOT NULL,
|
2008-11-26 14:32:43 +00:00
|
|
|
`post_thread` int(10) unsigned default NULL,
|
|
|
|
`post_forum` int(10) unsigned default NULL,
|
2008-11-26 03:24:51 +00:00
|
|
|
`post_datestamp` int(10) unsigned NOT NULL default '0',
|
|
|
|
`post_user` int(10) unsigned NOT NULL,
|
|
|
|
`post_edit_datestamp` int(10) unsigned NOT NULL default '0',
|
|
|
|
`post_edit_user` int(10) unsigned NOT NULL,
|
|
|
|
`post_ip` varchar(45) NOT NULL,
|
2008-11-26 19:59:06 +00:00
|
|
|
`post_anon_name` varchar(30) NULL,
|
2008-11-26 14:32:43 +00:00
|
|
|
`post_attachments` text default NULL,
|
2008-11-26 03:24:51 +00:00
|
|
|
`post_options` text,
|
|
|
|
PRIMARY KEY (`post_id`),
|
|
|
|
KEY `post_ip` (`post_ip`),
|
|
|
|
KEY `post_thread` (`post_thread`),
|
2008-11-26 14:32:43 +00:00
|
|
|
KEY `post_forum` (`post_forum`),
|
2008-11-26 03:24:51 +00:00
|
|
|
KEY `post_datestamp` (`post_datestamp`),
|
|
|
|
KEY `post_user` (`post_user`)
|
|
|
|
) Type=MyISAM AUTO_INCREMENT=1 ;
|
|
|
|
|
|
|
|
CREATE TABLE forum_track (
|
|
|
|
`track_userid` int(10) unsigned NOT NULL,
|
2008-11-26 04:00:36 +00:00
|
|
|
`track_thread` int(10) unsigned NOT NULL,
|
2008-11-26 14:32:43 +00:00
|
|
|
PRIMARY KEY (`track_userid`,`track_thread`),
|
2008-11-26 03:24:51 +00:00
|
|
|
KEY `track_userid` (`track_userid`),
|
2008-11-26 04:00:36 +00:00
|
|
|
KEY `track_thread` (`track_thread`)
|
2008-11-26 03:24:51 +00:00
|
|
|
) Type=MyISAM;
|
2006-12-02 04:36:16 +00:00
|
|
|
|