#
# Table structure for table `bans`
#
CREATE TABLE bans (
id int(10) unsigned NOT NULL auto_increment,
username varchar(200) default NULL,
ip varchar(255) default NULL,
email varchar(50) default NULL,
message varchar(255) default NULL,
expire int(10) unsigned default NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `categories`
#
CREATE TABLE categories (
id int(10) unsigned NOT NULL auto_increment,
cat_name varchar(80) NOT NULL default 'New Category',
disp_position int(10) NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `censoring`
#
CREATE TABLE censoring (
id int(10) unsigned NOT NULL auto_increment,
search_for varchar(60) NOT NULL default '',
replace_with varchar(60) NOT NULL default '',
PRIMARY KEY (id)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `config`
#
CREATE TABLE config (
conf_name varchar(255) NOT NULL default '',
conf_value text,
PRIMARY KEY (conf_name)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `forum_perms`
#
CREATE TABLE forum_perms (
group_id int(10) NOT NULL default '0',
forum_id int(10) NOT NULL default '0',
read_forum tinyint(1) NOT NULL default '1',
post_replies tinyint(1) NOT NULL default '1',
post_topics tinyint(1) NOT NULL default '1',
PRIMARY KEY (group_id,forum_id)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `forums`
#
CREATE TABLE forums (
id int(10) unsigned NOT NULL auto_increment,
forum_name varchar(80) NOT NULL default 'New forum',
forum_desc text,
redirect_url varchar(100) default NULL,
moderators text,
num_topics mediumint(8) unsigned NOT NULL default '0',
num_posts mediumint(8) unsigned NOT NULL default '0',
last_post int(10) unsigned default NULL,
last_post_id int(10) unsigned default NULL,
last_poster varchar(200) default NULL,
sort_by tinyint(1) NOT NULL default '0',
disp_position int(10) NOT NULL default '0',
cat_id int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `groups`
#
CREATE TABLE groups (
g_id int(10) unsigned NOT NULL auto_increment,
g_title varchar(50) NOT NULL default '',
g_user_title varchar(50) default NULL,
g_read_board tinyint(1) NOT NULL default '1',
g_post_replies tinyint(1) NOT NULL default '1',
g_post_topics tinyint(1) NOT NULL default '1',
g_post_polls tinyint(1) NOT NULL default '1',
g_edit_posts tinyint(1) NOT NULL default '1',
g_delete_posts tinyint(1) NOT NULL default '1',
g_delete_topics tinyint(1) NOT NULL default '1',
g_set_title tinyint(1) NOT NULL default '1',
g_search tinyint(1) NOT NULL default '1',
g_search_users tinyint(1) NOT NULL default '1',
g_edit_subjects_interval smallint(6) NOT NULL default '300',
g_post_flood smallint(6) NOT NULL default '30',
g_search_flood smallint(6) NOT NULL default '30',
PRIMARY KEY (g_id)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `online`
#
CREATE TABLE online (
user_id int(10) unsigned NOT NULL default '0',
ident varchar(200) NOT NULL default '',
logged int(10) unsigned NOT NULL default '0',
idle tinyint(1) NOT NULL default '0',
KEY online_user_id_idx (user_id)
) TYPE=HEAP;
# --------------------------------------------------------
#
# Table structure for table `posts`
#
CREATE TABLE posts (
id int(10) unsigned NOT NULL auto_increment,
poster varchar(200) NOT NULL default '',
poster_id int(10) unsigned NOT NULL default '1',
poster_ip varchar(15) default NULL,
poster_email varchar(50) default NULL,
message text NOT NULL,
hide_smilies tinyint(1) NOT NULL default '0',
posted int(10) unsigned NOT NULL default '0',
edited int(10) unsigned default NULL,
edited_by varchar(200) default NULL,
topic_id int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY posts_topic_id_idx (topic_id),
KEY posts_multi_idx (poster_id,topic_id)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `ranks`
#
CREATE TABLE ranks (
id int(10) unsigned NOT NULL auto_increment,
rank varchar(50) NOT NULL default '',
min_posts mediumint(8) unsigned NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `reports`
#
CREATE TABLE reports (
id int(10) unsigned NOT NULL auto_increment,
post_id int(10) unsigned NOT NULL default '0',
topic_id int(10) unsigned NOT NULL default '0',
forum_id int(10) unsigned NOT NULL default '0',
reported_by int(10) unsigned NOT NULL default '0',
created int(10) unsigned NOT NULL default '0',
message text NOT NULL,
zapped int(10) unsigned default NULL,
zapped_by int(10) unsigned default NULL,
PRIMARY KEY (id),
KEY reports_zapped_idx (zapped)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `search_cache`
#
CREATE TABLE search_cache (
id int(10) unsigned NOT NULL default '0',
ident varchar(200) NOT NULL default '',
search_data text NOT NULL,
PRIMARY KEY (id),
KEY search_cache_ident_idx (ident(8))
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `search_matches`
#
CREATE TABLE search_matches (
post_id int(10) unsigned NOT NULL default '0',
word_id mediumint(8) unsigned NOT NULL default '0',
subject_match tinyint(1) NOT NULL default '0',
KEY search_matches_word_id_idx (word_id),
KEY search_matches_post_id_idx (post_id)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `search_words`
#
CREATE TABLE search_words (
id mediumint(8) unsigned NOT NULL auto_increment,
word varchar(20) binary NOT NULL default '',
PRIMARY KEY (word),
KEY search_words_id_idx (id)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `subscriptions`
#
CREATE TABLE subscriptions (
user_id int(10) unsigned NOT NULL default '0',
topic_id int(10) unsigned NOT NULL default '0',
PRIMARY KEY (user_id,topic_id)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `topics`
#
CREATE TABLE topics (
id int(10) unsigned NOT NULL auto_increment,
poster varchar(200) NOT NULL default '',
subject varchar(255) NOT NULL default '',
posted int(10) unsigned NOT NULL default '0',
last_post int(10) unsigned NOT NULL default '0',
last_post_id int(10) unsigned NOT NULL default '0',
last_poster varchar(200) default NULL,
num_views mediumint(8) unsigned NOT NULL default '0',
num_replies mediumint(8) unsigned NOT NULL default '0',
closed tinyint(1) NOT NULL default '0',
sticky tinyint(1) NOT NULL default '0',
moved_to int(10) unsigned default NULL,
forum_id int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY topics_forum_id_idx (forum_id),
KEY topics_moved_to_idx (moved_to)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `users`
#
CREATE TABLE users (
id int(10) unsigned NOT NULL auto_increment,
group_id int(10) NOT NULL default '4',
username varchar(200) NOT NULL default '',
password varchar(40) NOT NULL default '',
email varchar(50) NOT NULL default '',
title varchar(50) default NULL,
realname varchar(40) default NULL,
url varchar(100) default NULL,
jabber varchar(75) default NULL,
icq varchar(12) default NULL,
msn varchar(50) default NULL,
aim varchar(30) default NULL,
yahoo varchar(30) default NULL,
location varchar(30) default NULL,
use_avatar tinyint(1) NOT NULL default '0',
signature text,
disp_topics tinyint(3) unsigned default NULL,
disp_posts tinyint(3) unsigned default NULL,
email_setting tinyint(1) NOT NULL default '1',
save_pass tinyint(1) NOT NULL default '1',
notify_with_post tinyint(1) NOT NULL default '0',
show_smilies tinyint(1) NOT NULL default '1',
show_img tinyint(1) NOT NULL default '1',
show_img_sig tinyint(1) NOT NULL default '1',
show_avatars tinyint(1) NOT NULL default '1',
show_sig tinyint(1) NOT NULL default '1',
timezone float NOT NULL default '0',
language varchar(25) NOT NULL default 'English',
style varchar(25) NOT NULL default 'Oxygen',
num_posts int(10) unsigned NOT NULL default '0',
last_post int(10) unsigned default NULL,
registered int(10) unsigned NOT NULL default '0',
registration_ip varchar(15) NOT NULL default '0.0.0.0',
last_visit int(10) unsigned NOT NULL default '0',
admin_note varchar(30) default NULL,
activate_string varchar(50) default NULL,
activate_key varchar(8) default NULL,
PRIMARY KEY (id),
KEY users_registered_idx (registered),
KEY users_username_idx (username(3))
) TYPE=MyISAM;