Blame Identity/Models/Html/phpBB/3.0.4/install/schemas/mysql_40_schema.sql

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