Blame Identity/Webenv/App/phpBB/3.0.4/install/schemas/mysql_40_schema.sql

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