Blame Scripts/Php/Newbb2Phpbb/schemas/phpBB3_mysql_41_schema.sql

878a2b
#
878a2b
# $Id: mysql_41_schema.sql 9129 2008-11-27 13:44:24Z acydburn $
878a2b
#
878a2b
878a2b
# Table: 'phpbb_attachments'
878a2b
CREATE TABLE phpbb_attachments (
878a2b
	attach_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	post_msg_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	in_message tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	is_orphan tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	physical_filename varchar(255) DEFAULT '' NOT NULL,
878a2b
	real_filename varchar(255) DEFAULT '' NOT NULL,
878a2b
	download_count mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	attach_comment text NOT NULL,
878a2b
	extension varchar(100) DEFAULT '' NOT NULL,
878a2b
	mimetype varchar(100) DEFAULT '' NOT NULL,
878a2b
	filesize int(20) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	filetime int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	thumbnail tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (attach_id),
878a2b
	KEY filetime (filetime),
878a2b
	KEY post_msg_id (post_msg_id),
878a2b
	KEY topic_id (topic_id),
878a2b
	KEY poster_id (poster_id),
878a2b
	KEY is_orphan (is_orphan)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_acl_groups'
878a2b
CREATE TABLE phpbb_acl_groups (
878a2b
	group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	auth_option_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	auth_role_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	auth_setting tinyint(2) DEFAULT '0' NOT NULL,
878a2b
	KEY group_id (group_id),
878a2b
	KEY auth_opt_id (auth_option_id),
878a2b
	KEY auth_role_id (auth_role_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_acl_options'
878a2b
CREATE TABLE phpbb_acl_options (
878a2b
	auth_option_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	auth_option varchar(50) DEFAULT '' NOT NULL,
878a2b
	is_global tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	is_local tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	founder_only tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (auth_option_id),
878a2b
	KEY auth_option (auth_option)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_acl_roles'
878a2b
CREATE TABLE phpbb_acl_roles (
878a2b
	role_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	role_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	role_description text NOT NULL,
878a2b
	role_type varchar(10) DEFAULT '' NOT NULL,
878a2b
	role_order smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (role_id),
878a2b
	KEY role_type (role_type),
878a2b
	KEY role_order (role_order)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_acl_roles_data'
878a2b
CREATE TABLE phpbb_acl_roles_data (
878a2b
	role_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	auth_option_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	auth_setting tinyint(2) DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (role_id, auth_option_id),
878a2b
	KEY ath_op_id (auth_option_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_acl_users'
878a2b
CREATE TABLE phpbb_acl_users (
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	auth_option_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	auth_role_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	auth_setting tinyint(2) DEFAULT '0' NOT NULL,
878a2b
	KEY user_id (user_id),
878a2b
	KEY auth_option_id (auth_option_id),
878a2b
	KEY auth_role_id (auth_role_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_banlist'
878a2b
CREATE TABLE phpbb_banlist (
878a2b
	ban_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	ban_userid mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	ban_ip varchar(40) DEFAULT '' NOT NULL,
878a2b
	ban_email varchar(100) DEFAULT '' NOT NULL,
878a2b
	ban_start int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	ban_end int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	ban_exclude tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	ban_reason varchar(255) DEFAULT '' NOT NULL,
878a2b
	ban_give_reason varchar(255) DEFAULT '' NOT NULL,
878a2b
	PRIMARY KEY (ban_id),
878a2b
	KEY ban_end (ban_end),
878a2b
	KEY ban_user (ban_userid, ban_exclude),
878a2b
	KEY ban_email (ban_email, ban_exclude),
878a2b
	KEY ban_ip (ban_ip, ban_exclude)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_bbcodes'
878a2b
CREATE TABLE phpbb_bbcodes (
878a2b
	bbcode_id tinyint(3) DEFAULT '0' NOT NULL,
878a2b
	bbcode_tag varchar(16) DEFAULT '' NOT NULL,
878a2b
	bbcode_helpline varchar(255) DEFAULT '' NOT NULL,
878a2b
	display_on_posting tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	bbcode_match text NOT NULL,
878a2b
	bbcode_tpl mediumtext NOT NULL,
878a2b
	first_pass_match mediumtext NOT NULL,
878a2b
	first_pass_replace mediumtext NOT NULL,
878a2b
	second_pass_match mediumtext NOT NULL,
878a2b
	second_pass_replace mediumtext NOT NULL,
878a2b
	PRIMARY KEY (bbcode_id),
878a2b
	KEY display_on_post (display_on_posting)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_bookmarks'
878a2b
CREATE TABLE phpbb_bookmarks (
878a2b
	topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (topic_id, user_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_bots'
878a2b
CREATE TABLE phpbb_bots (
878a2b
	bot_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	bot_active tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	bot_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	bot_agent varchar(255) DEFAULT '' NOT NULL,
878a2b
	bot_ip varchar(255) DEFAULT '' NOT NULL,
878a2b
	PRIMARY KEY (bot_id),
878a2b
	KEY bot_active (bot_active)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_config'
878a2b
CREATE TABLE phpbb_config (
878a2b
	config_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	config_value varchar(255) DEFAULT '' NOT NULL,
878a2b
	is_dynamic tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (config_name),
878a2b
	KEY is_dynamic (is_dynamic)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_confirm'
878a2b
CREATE TABLE phpbb_confirm (
878a2b
	confirm_id char(32) DEFAULT '' NOT NULL,
878a2b
	session_id char(32) DEFAULT '' NOT NULL,
878a2b
	confirm_type tinyint(3) DEFAULT '0' NOT NULL,
878a2b
	code varchar(8) DEFAULT '' NOT NULL,
878a2b
	seed int(10) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (session_id, confirm_id),
878a2b
	KEY confirm_type (confirm_type)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_disallow'
878a2b
CREATE TABLE phpbb_disallow (
878a2b
	disallow_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	disallow_username varchar(255) DEFAULT '' NOT NULL,
878a2b
	PRIMARY KEY (disallow_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_drafts'
878a2b
CREATE TABLE phpbb_drafts (
878a2b
	draft_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	save_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	draft_subject varchar(255) DEFAULT '' NOT NULL,
878a2b
	draft_message mediumtext NOT NULL,
878a2b
	PRIMARY KEY (draft_id),
878a2b
	KEY save_time (save_time)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_extensions'
878a2b
CREATE TABLE phpbb_extensions (
878a2b
	extension_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	extension varchar(100) DEFAULT '' NOT NULL,
878a2b
	PRIMARY KEY (extension_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_extension_groups'
878a2b
CREATE TABLE phpbb_extension_groups (
878a2b
	group_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	group_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	cat_id tinyint(2) DEFAULT '0' NOT NULL,
878a2b
	allow_group tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	download_mode tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	upload_icon varchar(255) DEFAULT '' NOT NULL,
878a2b
	max_filesize int(20) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	allowed_forums text NOT NULL,
878a2b
	allow_in_pm tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (group_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_forums'
878a2b
CREATE TABLE phpbb_forums (
878a2b
	forum_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	parent_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	left_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	right_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	forum_parents mediumtext NOT NULL,
878a2b
	forum_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	forum_desc text NOT NULL,
878a2b
	forum_desc_bitfield varchar(255) DEFAULT '' NOT NULL,
878a2b
	forum_desc_options int(11) UNSIGNED DEFAULT '7' NOT NULL,
878a2b
	forum_desc_uid varchar(8) DEFAULT '' NOT NULL,
878a2b
	forum_link varchar(255) DEFAULT '' NOT NULL,
878a2b
	forum_password varchar(40) DEFAULT '' NOT NULL,
878a2b
	forum_style mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	forum_image varchar(255) DEFAULT '' NOT NULL,
878a2b
	forum_rules text NOT NULL,
878a2b
	forum_rules_link varchar(255) DEFAULT '' NOT NULL,
878a2b
	forum_rules_bitfield varchar(255) DEFAULT '' NOT NULL,
878a2b
	forum_rules_options int(11) UNSIGNED DEFAULT '7' NOT NULL,
878a2b
	forum_rules_uid varchar(8) DEFAULT '' NOT NULL,
878a2b
	forum_topics_per_page tinyint(4) DEFAULT '0' NOT NULL,
878a2b
	forum_type tinyint(4) DEFAULT '0' NOT NULL,
878a2b
	forum_status tinyint(4) DEFAULT '0' NOT NULL,
878a2b
	forum_posts mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	forum_topics mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	forum_topics_real mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	forum_last_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	forum_last_poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	forum_last_post_subject varchar(255) DEFAULT '' NOT NULL,
878a2b
	forum_last_post_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	forum_last_poster_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	forum_last_poster_colour varchar(6) DEFAULT '' NOT NULL,
878a2b
	forum_flags tinyint(4) DEFAULT '32' NOT NULL,
878a2b
	display_subforum_list tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	display_on_index tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	enable_indexing tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	enable_icons tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	enable_prune tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	prune_next int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	prune_days mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	prune_viewed mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	prune_freq mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (forum_id),
878a2b
	KEY left_right_id (left_id, right_id),
878a2b
	KEY forum_lastpost_id (forum_last_post_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_forums_access'
878a2b
CREATE TABLE phpbb_forums_access (
878a2b
	forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	session_id char(32) DEFAULT '' NOT NULL,
878a2b
	PRIMARY KEY (forum_id, user_id, session_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_forums_track'
878a2b
CREATE TABLE phpbb_forums_track (
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	mark_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (user_id, forum_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_forums_watch'
878a2b
CREATE TABLE phpbb_forums_watch (
878a2b
	forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	notify_status tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	KEY forum_id (forum_id),
878a2b
	KEY user_id (user_id),
878a2b
	KEY notify_stat (notify_status)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_groups'
878a2b
CREATE TABLE phpbb_groups (
878a2b
	group_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	group_type tinyint(4) DEFAULT '1' NOT NULL,
878a2b
	group_founder_manage tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	group_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	group_desc text NOT NULL,
878a2b
	group_desc_bitfield varchar(255) DEFAULT '' NOT NULL,
878a2b
	group_desc_options int(11) UNSIGNED DEFAULT '7' NOT NULL,
878a2b
	group_desc_uid varchar(8) DEFAULT '' NOT NULL,
878a2b
	group_display tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	group_avatar varchar(255) DEFAULT '' NOT NULL,
878a2b
	group_avatar_type tinyint(2) DEFAULT '0' NOT NULL,
878a2b
	group_avatar_width smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	group_avatar_height smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	group_rank mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	group_colour varchar(6) DEFAULT '' NOT NULL,
878a2b
	group_sig_chars mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	group_receive_pm tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	group_message_limit mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	group_max_recipients mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	group_legend tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	PRIMARY KEY (group_id),
878a2b
	KEY group_legend_name (group_legend, group_name)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_icons'
878a2b
CREATE TABLE phpbb_icons (
878a2b
	icons_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	icons_url varchar(255) DEFAULT '' NOT NULL,
878a2b
	icons_width tinyint(4) DEFAULT '0' NOT NULL,
878a2b
	icons_height tinyint(4) DEFAULT '0' NOT NULL,
878a2b
	icons_order mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	display_on_posting tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	PRIMARY KEY (icons_id),
878a2b
	KEY display_on_posting (display_on_posting)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_lang'
878a2b
CREATE TABLE phpbb_lang (
878a2b
	lang_id tinyint(4) NOT NULL auto_increment,
878a2b
	lang_iso varchar(30) DEFAULT '' NOT NULL,
878a2b
	lang_dir varchar(30) DEFAULT '' NOT NULL,
878a2b
	lang_english_name varchar(100) DEFAULT '' NOT NULL,
878a2b
	lang_local_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	lang_author varchar(255) DEFAULT '' NOT NULL,
878a2b
	PRIMARY KEY (lang_id),
878a2b
	KEY lang_iso (lang_iso)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_log'
878a2b
CREATE TABLE phpbb_log (
878a2b
	log_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	log_type tinyint(4) DEFAULT '0' NOT NULL,
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	reportee_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	log_ip varchar(40) DEFAULT '' NOT NULL,
878a2b
	log_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	log_operation text NOT NULL,
878a2b
	log_data mediumtext NOT NULL,
878a2b
	PRIMARY KEY (log_id),
878a2b
	KEY log_type (log_type),
878a2b
	KEY forum_id (forum_id),
878a2b
	KEY topic_id (topic_id),
878a2b
	KEY reportee_id (reportee_id),
878a2b
	KEY user_id (user_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_moderator_cache'
878a2b
CREATE TABLE phpbb_moderator_cache (
878a2b
	forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	username varchar(255) DEFAULT '' NOT NULL,
878a2b
	group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	group_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	display_on_index tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	KEY disp_idx (display_on_index),
878a2b
	KEY forum_id (forum_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_modules'
878a2b
CREATE TABLE phpbb_modules (
878a2b
	module_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	module_enabled tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	module_display tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	module_basename varchar(255) DEFAULT '' NOT NULL,
878a2b
	module_class varchar(10) DEFAULT '' NOT NULL,
878a2b
	parent_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	left_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	right_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	module_langname varchar(255) DEFAULT '' NOT NULL,
878a2b
	module_mode varchar(255) DEFAULT '' NOT NULL,
878a2b
	module_auth varchar(255) DEFAULT '' NOT NULL,
878a2b
	PRIMARY KEY (module_id),
878a2b
	KEY left_right_id (left_id, right_id),
878a2b
	KEY module_enabled (module_enabled),
878a2b
	KEY class_left_id (module_class, left_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_poll_options'
878a2b
CREATE TABLE phpbb_poll_options (
878a2b
	poll_option_id tinyint(4) DEFAULT '0' NOT NULL,
878a2b
	topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	poll_option_text text NOT NULL,
878a2b
	poll_option_total mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	KEY poll_opt_id (poll_option_id),
878a2b
	KEY topic_id (topic_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_poll_votes'
878a2b
CREATE TABLE phpbb_poll_votes (
878a2b
	topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	poll_option_id tinyint(4) DEFAULT '0' NOT NULL,
878a2b
	vote_user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	vote_user_ip varchar(40) DEFAULT '' NOT NULL,
878a2b
	KEY topic_id (topic_id),
878a2b
	KEY vote_user_id (vote_user_id),
878a2b
	KEY vote_user_ip (vote_user_ip)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_posts'
878a2b
CREATE TABLE phpbb_posts (
878a2b
	post_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	icon_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	poster_ip varchar(40) DEFAULT '' NOT NULL,
878a2b
	post_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	post_approved tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	post_reported tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	enable_bbcode tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	enable_smilies tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	enable_magic_url tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	enable_sig tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	post_username varchar(255) DEFAULT '' NOT NULL,
878a2b
	post_subject varchar(255) DEFAULT '' NOT NULL COLLATE utf8_unicode_ci,
878a2b
	post_text mediumtext NOT NULL,
878a2b
	post_checksum varchar(32) DEFAULT '' NOT NULL,
878a2b
	post_attachment tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	bbcode_bitfield varchar(255) DEFAULT '' NOT NULL,
878a2b
	bbcode_uid varchar(8) DEFAULT '' NOT NULL,
878a2b
	post_postcount tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	post_edit_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	post_edit_reason varchar(255) DEFAULT '' NOT NULL,
878a2b
	post_edit_user mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	post_edit_count smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	post_edit_locked tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (post_id),
878a2b
	KEY forum_id (forum_id),
878a2b
	KEY topic_id (topic_id),
878a2b
	KEY poster_ip (poster_ip),
878a2b
	KEY poster_id (poster_id),
878a2b
	KEY post_approved (post_approved),
878a2b
	KEY tid_post_time (topic_id, post_time)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_privmsgs'
878a2b
CREATE TABLE phpbb_privmsgs (
878a2b
	msg_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	root_level mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	author_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	icon_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	author_ip varchar(40) DEFAULT '' NOT NULL,
878a2b
	message_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	enable_bbcode tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	enable_smilies tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	enable_magic_url tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	enable_sig tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	message_subject varchar(255) DEFAULT '' NOT NULL,
878a2b
	message_text mediumtext NOT NULL,
878a2b
	message_edit_reason varchar(255) DEFAULT '' NOT NULL,
878a2b
	message_edit_user mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	message_attachment tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	bbcode_bitfield varchar(255) DEFAULT '' NOT NULL,
878a2b
	bbcode_uid varchar(8) DEFAULT '' NOT NULL,
878a2b
	message_edit_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	message_edit_count smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	to_address text NOT NULL,
878a2b
	bcc_address text NOT NULL,
878a2b
	PRIMARY KEY (msg_id),
878a2b
	KEY author_ip (author_ip),
878a2b
	KEY message_time (message_time),
878a2b
	KEY author_id (author_id),
878a2b
	KEY root_level (root_level)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_privmsgs_folder'
878a2b
CREATE TABLE phpbb_privmsgs_folder (
878a2b
	folder_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	folder_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	pm_count mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (folder_id),
878a2b
	KEY user_id (user_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_privmsgs_rules'
878a2b
CREATE TABLE phpbb_privmsgs_rules (
878a2b
	rule_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	rule_check mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	rule_connection mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	rule_string varchar(255) DEFAULT '' NOT NULL,
878a2b
	rule_user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	rule_group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	rule_action mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	rule_folder_id int(11) DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (rule_id),
878a2b
	KEY user_id (user_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_privmsgs_to'
878a2b
CREATE TABLE phpbb_privmsgs_to (
878a2b
	msg_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	author_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	pm_deleted tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	pm_new tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	pm_unread tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	pm_replied tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	pm_marked tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	pm_forwarded tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	folder_id int(11) DEFAULT '0' NOT NULL,
878a2b
	KEY msg_id (msg_id),
878a2b
	KEY author_id (author_id),
878a2b
	KEY usr_flder_id (user_id, folder_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_profile_fields'
878a2b
CREATE TABLE phpbb_profile_fields (
878a2b
	field_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	field_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	field_type tinyint(4) DEFAULT '0' NOT NULL,
878a2b
	field_ident varchar(20) DEFAULT '' NOT NULL,
878a2b
	field_length varchar(20) DEFAULT '' NOT NULL,
878a2b
	field_minlen varchar(255) DEFAULT '' NOT NULL,
878a2b
	field_maxlen varchar(255) DEFAULT '' NOT NULL,
878a2b
	field_novalue varchar(255) DEFAULT '' NOT NULL,
878a2b
	field_default_value varchar(255) DEFAULT '' NOT NULL,
878a2b
	field_validation varchar(20) DEFAULT '' NOT NULL,
878a2b
	field_required tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	field_show_on_reg tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	field_show_profile tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	field_hide tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	field_no_view tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	field_active tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	field_order mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (field_id),
878a2b
	KEY fld_type (field_type),
878a2b
	KEY fld_ordr (field_order)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_profile_fields_data'
878a2b
CREATE TABLE phpbb_profile_fields_data (
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (user_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_profile_fields_lang'
878a2b
CREATE TABLE phpbb_profile_fields_lang (
878a2b
	field_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	lang_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	option_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	field_type tinyint(4) DEFAULT '0' NOT NULL,
878a2b
	lang_value varchar(255) DEFAULT '' NOT NULL,
878a2b
	PRIMARY KEY (field_id, lang_id, option_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_profile_lang'
878a2b
CREATE TABLE phpbb_profile_lang (
878a2b
	field_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	lang_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	lang_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	lang_explain text NOT NULL,
878a2b
	lang_default_value varchar(255) DEFAULT '' NOT NULL,
878a2b
	PRIMARY KEY (field_id, lang_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_ranks'
878a2b
CREATE TABLE phpbb_ranks (
878a2b
	rank_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	rank_title varchar(255) DEFAULT '' NOT NULL,
878a2b
	rank_min mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	rank_special tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	rank_image varchar(255) DEFAULT '' NOT NULL,
878a2b
	PRIMARY KEY (rank_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_reports'
878a2b
CREATE TABLE phpbb_reports (
878a2b
	report_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	reason_id smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_notify tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	report_closed tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	report_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	report_text mediumtext NOT NULL,
878a2b
	PRIMARY KEY (report_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_reports_reasons'
878a2b
CREATE TABLE phpbb_reports_reasons (
878a2b
	reason_id smallint(4) UNSIGNED NOT NULL auto_increment,
878a2b
	reason_title varchar(255) DEFAULT '' NOT NULL,
878a2b
	reason_description mediumtext NOT NULL,
878a2b
	reason_order smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (reason_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_search_results'
878a2b
CREATE TABLE phpbb_search_results (
878a2b
	search_key varchar(32) DEFAULT '' NOT NULL,
878a2b
	search_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	search_keywords mediumtext NOT NULL,
878a2b
	search_authors mediumtext NOT NULL,
878a2b
	PRIMARY KEY (search_key)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_search_wordlist'
878a2b
CREATE TABLE phpbb_search_wordlist (
878a2b
	word_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	word_text varchar(255) DEFAULT '' NOT NULL,
878a2b
	word_common tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	word_count mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (word_id),
878a2b
	UNIQUE wrd_txt (word_text),
878a2b
	KEY wrd_cnt (word_count)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_search_wordmatch'
878a2b
CREATE TABLE phpbb_search_wordmatch (
878a2b
	post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	word_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	title_match tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	UNIQUE unq_mtch (word_id, post_id, title_match),
878a2b
	KEY word_id (word_id),
878a2b
	KEY post_id (post_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_sessions'
878a2b
CREATE TABLE phpbb_sessions (
878a2b
	session_id char(32) DEFAULT '' NOT NULL,
878a2b
	session_user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	session_forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	session_last_visit int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	session_start int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	session_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	session_ip varchar(40) DEFAULT '' NOT NULL,
878a2b
	session_browser varchar(150) DEFAULT '' NOT NULL,
878a2b
	session_forwarded_for varchar(255) DEFAULT '' NOT NULL,
878a2b
	session_page varchar(255) DEFAULT '' NOT NULL,
878a2b
	session_viewonline tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	session_autologin tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	session_admin tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (session_id),
878a2b
	KEY session_time (session_time),
878a2b
	KEY session_user_id (session_user_id),
878a2b
	KEY session_fid (session_forum_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_sessions_keys'
878a2b
CREATE TABLE phpbb_sessions_keys (
878a2b
	key_id char(32) DEFAULT '' NOT NULL,
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	last_ip varchar(40) DEFAULT '' NOT NULL,
878a2b
	last_login int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (key_id, user_id),
878a2b
	KEY last_login (last_login)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_sitelist'
878a2b
CREATE TABLE phpbb_sitelist (
878a2b
	site_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	site_ip varchar(40) DEFAULT '' NOT NULL,
878a2b
	site_hostname varchar(255) DEFAULT '' NOT NULL,
878a2b
	ip_exclude tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (site_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_smilies'
878a2b
CREATE TABLE phpbb_smilies (
878a2b
	smiley_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	code varchar(50) DEFAULT '' NOT NULL,
878a2b
	emotion varchar(50) DEFAULT '' NOT NULL,
878a2b
	smiley_url varchar(50) DEFAULT '' NOT NULL,
878a2b
	smiley_width smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	smiley_height smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	smiley_order mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	display_on_posting tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	PRIMARY KEY (smiley_id),
878a2b
	KEY display_on_post (display_on_posting)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_styles'
878a2b
CREATE TABLE phpbb_styles (
878a2b
	style_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	style_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	style_copyright varchar(255) DEFAULT '' NOT NULL,
878a2b
	style_active tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	template_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	theme_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	imageset_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (style_id),
878a2b
	UNIQUE style_name (style_name),
878a2b
	KEY template_id (template_id),
878a2b
	KEY theme_id (theme_id),
878a2b
	KEY imageset_id (imageset_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_styles_template'
878a2b
CREATE TABLE phpbb_styles_template (
878a2b
	template_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	template_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	template_copyright varchar(255) DEFAULT '' NOT NULL,
878a2b
	template_path varchar(100) DEFAULT '' NOT NULL,
878a2b
	bbcode_bitfield varchar(255) DEFAULT 'kNg=' NOT NULL,
878a2b
	template_storedb tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	template_inherits_id int(4) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	template_inherit_path varchar(255) DEFAULT '' NOT NULL,
878a2b
	PRIMARY KEY (template_id),
878a2b
	UNIQUE tmplte_nm (template_name)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_styles_template_data'
878a2b
CREATE TABLE phpbb_styles_template_data (
878a2b
	template_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	template_filename varchar(100) DEFAULT '' NOT NULL,
878a2b
	template_included text NOT NULL,
878a2b
	template_mtime int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	template_data mediumtext NOT NULL,
878a2b
	KEY tid (template_id),
878a2b
	KEY tfn (template_filename)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_styles_theme'
878a2b
CREATE TABLE phpbb_styles_theme (
878a2b
	theme_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	theme_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	theme_copyright varchar(255) DEFAULT '' NOT NULL,
878a2b
	theme_path varchar(100) DEFAULT '' NOT NULL,
878a2b
	theme_storedb tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	theme_mtime int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	theme_data mediumtext NOT NULL,
878a2b
	PRIMARY KEY (theme_id),
878a2b
	UNIQUE theme_name (theme_name)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_styles_imageset'
878a2b
CREATE TABLE phpbb_styles_imageset (
878a2b
	imageset_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	imageset_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	imageset_copyright varchar(255) DEFAULT '' NOT NULL,
878a2b
	imageset_path varchar(100) DEFAULT '' NOT NULL,
878a2b
	PRIMARY KEY (imageset_id),
878a2b
	UNIQUE imgset_nm (imageset_name)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_styles_imageset_data'
878a2b
CREATE TABLE phpbb_styles_imageset_data (
878a2b
	image_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	image_name varchar(200) DEFAULT '' NOT NULL,
878a2b
	image_filename varchar(200) DEFAULT '' NOT NULL,
878a2b
	image_lang varchar(30) DEFAULT '' NOT NULL,
878a2b
	image_height smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	image_width smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	imageset_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (image_id),
878a2b
	KEY i_d (imageset_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_topics'
878a2b
CREATE TABLE phpbb_topics (
878a2b
	topic_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	icon_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_attachment tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_approved tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	topic_reported tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_title varchar(255) DEFAULT '' NOT NULL COLLATE utf8_unicode_ci,
878a2b
	topic_poster mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_time_limit int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_views mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_replies mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_replies_real mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_status tinyint(3) DEFAULT '0' NOT NULL,
878a2b
	topic_type tinyint(3) DEFAULT '0' NOT NULL,
878a2b
	topic_first_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_first_poster_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	topic_first_poster_colour varchar(6) DEFAULT '' NOT NULL,
878a2b
	topic_last_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_last_poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_last_poster_name varchar(255) DEFAULT '' NOT NULL,
878a2b
	topic_last_poster_colour varchar(6) DEFAULT '' NOT NULL,
878a2b
	topic_last_post_subject varchar(255) DEFAULT '' NOT NULL,
878a2b
	topic_last_post_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_last_view_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_moved_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_bumped tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_bumper mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	poll_title varchar(255) DEFAULT '' NOT NULL,
878a2b
	poll_start int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	poll_length int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	poll_max_options tinyint(4) DEFAULT '1' NOT NULL,
878a2b
	poll_last_vote int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	poll_vote_change tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (topic_id),
878a2b
	KEY forum_id (forum_id),
878a2b
	KEY forum_id_type (forum_id, topic_type),
878a2b
	KEY last_post_time (topic_last_post_time),
878a2b
	KEY topic_approved (topic_approved),
878a2b
	KEY forum_appr_last (forum_id, topic_approved, topic_last_post_id),
878a2b
	KEY fid_time_moved (forum_id, topic_last_post_time, topic_moved_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_topics_track'
878a2b
CREATE TABLE phpbb_topics_track (
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	mark_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (user_id, topic_id),
878a2b
	KEY forum_id (forum_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_topics_posted'
878a2b
CREATE TABLE phpbb_topics_posted (
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	topic_posted tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (user_id, topic_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_topics_watch'
878a2b
CREATE TABLE phpbb_topics_watch (
878a2b
	topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	notify_status tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	KEY topic_id (topic_id),
878a2b
	KEY user_id (user_id),
878a2b
	KEY notify_stat (notify_status)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_user_group'
878a2b
CREATE TABLE phpbb_user_group (
878a2b
	group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	group_leader tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_pending tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	KEY group_id (group_id),
878a2b
	KEY user_id (user_id),
878a2b
	KEY group_leader (group_leader)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_users'
878a2b
CREATE TABLE phpbb_users (
878a2b
	user_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	user_type tinyint(2) DEFAULT '0' NOT NULL,
878a2b
	group_id mediumint(8) UNSIGNED DEFAULT '3' NOT NULL,
878a2b
	user_permissions mediumtext NOT NULL,
878a2b
	user_perm_from mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_ip varchar(40) DEFAULT '' NOT NULL,
878a2b
	user_regdate int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	username varchar(255) DEFAULT '' NOT NULL,
878a2b
	username_clean varchar(255) DEFAULT '' NOT NULL,
878a2b
	user_password varchar(40) DEFAULT '' NOT NULL,
878a2b
	user_passchg int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_pass_convert tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_email varchar(100) DEFAULT '' NOT NULL,
878a2b
	user_email_hash bigint(20) DEFAULT '0' NOT NULL,
878a2b
	user_birthday varchar(10) DEFAULT '' NOT NULL,
878a2b
	user_lastvisit int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_lastmark int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_lastpost_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_lastpage varchar(200) DEFAULT '' NOT NULL,
878a2b
	user_last_confirm_key varchar(10) DEFAULT '' NOT NULL,
878a2b
	user_last_search int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_warnings tinyint(4) DEFAULT '0' NOT NULL,
878a2b
	user_last_warning int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_login_attempts tinyint(4) DEFAULT '0' NOT NULL,
878a2b
	user_inactive_reason tinyint(2) DEFAULT '0' NOT NULL,
878a2b
	user_inactive_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_posts mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_lang varchar(30) DEFAULT '' NOT NULL,
878a2b
	user_timezone decimal(5,2) DEFAULT '0' NOT NULL,
878a2b
	user_dst tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_dateformat varchar(30) DEFAULT 'd M Y H:i' NOT NULL,
878a2b
	user_style mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_rank mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_colour varchar(6) DEFAULT '' NOT NULL,
878a2b
	user_new_privmsg int(4) DEFAULT '0' NOT NULL,
878a2b
	user_unread_privmsg int(4) DEFAULT '0' NOT NULL,
878a2b
	user_last_privmsg int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_message_rules tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_full_folder int(11) DEFAULT '-3' NOT NULL,
878a2b
	user_emailtime int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_topic_show_days smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_topic_sortby_type varchar(1) DEFAULT 't' NOT NULL,
878a2b
	user_topic_sortby_dir varchar(1) DEFAULT 'd' NOT NULL,
878a2b
	user_post_show_days smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_post_sortby_type varchar(1) DEFAULT 't' NOT NULL,
878a2b
	user_post_sortby_dir varchar(1) DEFAULT 'a' NOT NULL,
878a2b
	user_notify tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_notify_pm tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	user_notify_type tinyint(4) DEFAULT '0' NOT NULL,
878a2b
	user_allow_pm tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	user_allow_viewonline tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	user_allow_viewemail tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	user_allow_massemail tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
878a2b
	user_options int(11) UNSIGNED DEFAULT '895' NOT NULL,
878a2b
	user_avatar varchar(255) DEFAULT '' NOT NULL,
878a2b
	user_avatar_type tinyint(2) DEFAULT '0' NOT NULL,
878a2b
	user_avatar_width smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_avatar_height smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	user_sig mediumtext NOT NULL,
878a2b
	user_sig_bbcode_uid varchar(8) DEFAULT '' NOT NULL,
878a2b
	user_sig_bbcode_bitfield varchar(255) DEFAULT '' NOT NULL,
878a2b
	user_from varchar(100) DEFAULT '' NOT NULL,
878a2b
	user_icq varchar(15) DEFAULT '' NOT NULL,
878a2b
	user_aim varchar(255) DEFAULT '' NOT NULL,
878a2b
	user_yim varchar(255) DEFAULT '' NOT NULL,
878a2b
	user_msnm varchar(255) DEFAULT '' NOT NULL,
878a2b
	user_jabber varchar(255) DEFAULT '' NOT NULL,
878a2b
	user_website varchar(200) DEFAULT '' NOT NULL,
878a2b
	user_occ text NOT NULL,
878a2b
	user_interests text NOT NULL,
878a2b
	user_actkey varchar(32) DEFAULT '' NOT NULL,
878a2b
	user_newpasswd varchar(40) DEFAULT '' NOT NULL,
878a2b
	user_form_salt varchar(32) DEFAULT '' NOT NULL,
878a2b
	PRIMARY KEY (user_id),
878a2b
	KEY user_birthday (user_birthday),
878a2b
	KEY user_email_hash (user_email_hash),
878a2b
	KEY user_type (user_type),
878a2b
	UNIQUE username_clean (username_clean)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_warnings'
878a2b
CREATE TABLE phpbb_warnings (
878a2b
	warning_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	log_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	warning_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (warning_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_words'
878a2b
CREATE TABLE phpbb_words (
878a2b
	word_id mediumint(8) UNSIGNED NOT NULL auto_increment,
878a2b
	word varchar(255) DEFAULT '' NOT NULL,
878a2b
	replacement varchar(255) DEFAULT '' NOT NULL,
878a2b
	PRIMARY KEY (word_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b
878a2b
# Table: 'phpbb_zebra'
878a2b
CREATE TABLE phpbb_zebra (
878a2b
	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	zebra_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	friend tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	foe tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
878a2b
	PRIMARY KEY (user_id, zebra_id)
878a2b
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
878a2b
878a2b