⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sqlite_schema.sql

📁 通过基于Windows的图形化界面
💻 SQL
📖 第 1 页 / 共 3 页
字号:
CREATE INDEX phpbb_log_log_type ON phpbb_log (log_type);CREATE INDEX phpbb_log_forum_id ON phpbb_log (forum_id);CREATE INDEX phpbb_log_topic_id ON phpbb_log (topic_id);CREATE INDEX phpbb_log_reportee_id ON phpbb_log (reportee_id);CREATE INDEX phpbb_log_user_id ON phpbb_log (user_id);# Table: 'phpbb_moderator_cache'CREATE TABLE phpbb_moderator_cache (	forum_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	username varchar(255) NOT NULL DEFAULT '',	group_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	group_name varchar(255) NOT NULL DEFAULT '',	display_on_index INTEGER UNSIGNED NOT NULL DEFAULT '1');CREATE INDEX phpbb_moderator_cache_disp_idx ON phpbb_moderator_cache (display_on_index);CREATE INDEX phpbb_moderator_cache_forum_id ON phpbb_moderator_cache (forum_id);# Table: 'phpbb_modules'CREATE TABLE phpbb_modules (	module_id INTEGER PRIMARY KEY NOT NULL ,	module_enabled INTEGER UNSIGNED NOT NULL DEFAULT '1',	module_display INTEGER UNSIGNED NOT NULL DEFAULT '1',	module_basename varchar(255) NOT NULL DEFAULT '',	module_class varchar(10) NOT NULL DEFAULT '',	parent_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	left_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	right_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	module_langname varchar(255) NOT NULL DEFAULT '',	module_mode varchar(255) NOT NULL DEFAULT '',	module_auth varchar(255) NOT NULL DEFAULT '');CREATE INDEX phpbb_modules_left_right_id ON phpbb_modules (left_id, right_id);CREATE INDEX phpbb_modules_module_enabled ON phpbb_modules (module_enabled);CREATE INDEX phpbb_modules_class_left_id ON phpbb_modules (module_class, left_id);# Table: 'phpbb_poll_options'CREATE TABLE phpbb_poll_options (	poll_option_id tinyint(4) NOT NULL DEFAULT '0',	topic_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	poll_option_text text(65535) NOT NULL DEFAULT '',	poll_option_total INTEGER UNSIGNED NOT NULL DEFAULT '0');CREATE INDEX phpbb_poll_options_poll_opt_id ON phpbb_poll_options (poll_option_id);CREATE INDEX phpbb_poll_options_topic_id ON phpbb_poll_options (topic_id);# Table: 'phpbb_poll_votes'CREATE TABLE phpbb_poll_votes (	topic_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	poll_option_id tinyint(4) NOT NULL DEFAULT '0',	vote_user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	vote_user_ip varchar(40) NOT NULL DEFAULT '');CREATE INDEX phpbb_poll_votes_topic_id ON phpbb_poll_votes (topic_id);CREATE INDEX phpbb_poll_votes_vote_user_id ON phpbb_poll_votes (vote_user_id);CREATE INDEX phpbb_poll_votes_vote_user_ip ON phpbb_poll_votes (vote_user_ip);# Table: 'phpbb_posts'CREATE TABLE phpbb_posts (	post_id INTEGER PRIMARY KEY NOT NULL ,	topic_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	forum_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	poster_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	icon_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	poster_ip varchar(40) NOT NULL DEFAULT '',	post_time INTEGER UNSIGNED NOT NULL DEFAULT '0',	post_approved INTEGER UNSIGNED NOT NULL DEFAULT '1',	post_reported INTEGER UNSIGNED NOT NULL DEFAULT '0',	enable_bbcode INTEGER UNSIGNED NOT NULL DEFAULT '1',	enable_smilies INTEGER UNSIGNED NOT NULL DEFAULT '1',	enable_magic_url INTEGER UNSIGNED NOT NULL DEFAULT '1',	enable_sig INTEGER UNSIGNED NOT NULL DEFAULT '1',	post_username varchar(255) NOT NULL DEFAULT '',	post_subject text(65535) NOT NULL DEFAULT '',	post_text mediumtext(16777215) NOT NULL DEFAULT '',	post_checksum varchar(32) NOT NULL DEFAULT '',	post_attachment INTEGER UNSIGNED NOT NULL DEFAULT '0',	bbcode_bitfield varchar(255) NOT NULL DEFAULT '',	bbcode_uid varchar(5) NOT NULL DEFAULT '',	post_postcount INTEGER UNSIGNED NOT NULL DEFAULT '1',	post_edit_time INTEGER UNSIGNED NOT NULL DEFAULT '0',	post_edit_reason text(65535) NOT NULL DEFAULT '',	post_edit_user INTEGER UNSIGNED NOT NULL DEFAULT '0',	post_edit_count INTEGER UNSIGNED NOT NULL DEFAULT '0',	post_edit_locked INTEGER UNSIGNED NOT NULL DEFAULT '0');CREATE INDEX phpbb_posts_forum_id ON phpbb_posts (forum_id);CREATE INDEX phpbb_posts_topic_id ON phpbb_posts (topic_id);CREATE INDEX phpbb_posts_poster_ip ON phpbb_posts (poster_ip);CREATE INDEX phpbb_posts_poster_id ON phpbb_posts (poster_id);CREATE INDEX phpbb_posts_post_approved ON phpbb_posts (post_approved);CREATE INDEX phpbb_posts_tid_post_time ON phpbb_posts (topic_id, post_time);# Table: 'phpbb_privmsgs'CREATE TABLE phpbb_privmsgs (	msg_id INTEGER PRIMARY KEY NOT NULL ,	root_level INTEGER UNSIGNED NOT NULL DEFAULT '0',	author_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	icon_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	author_ip varchar(40) NOT NULL DEFAULT '',	message_time INTEGER UNSIGNED NOT NULL DEFAULT '0',	enable_bbcode INTEGER UNSIGNED NOT NULL DEFAULT '1',	enable_smilies INTEGER UNSIGNED NOT NULL DEFAULT '1',	enable_magic_url INTEGER UNSIGNED NOT NULL DEFAULT '1',	enable_sig INTEGER UNSIGNED NOT NULL DEFAULT '1',	message_subject text(65535) NOT NULL DEFAULT '',	message_text mediumtext(16777215) NOT NULL DEFAULT '',	message_edit_reason text(65535) NOT NULL DEFAULT '',	message_edit_user INTEGER UNSIGNED NOT NULL DEFAULT '0',	message_attachment INTEGER UNSIGNED NOT NULL DEFAULT '0',	bbcode_bitfield varchar(255) NOT NULL DEFAULT '',	bbcode_uid varchar(5) NOT NULL DEFAULT '',	message_edit_time INTEGER UNSIGNED NOT NULL DEFAULT '0',	message_edit_count INTEGER UNSIGNED NOT NULL DEFAULT '0',	to_address text(65535) NOT NULL DEFAULT '',	bcc_address text(65535) NOT NULL DEFAULT '');CREATE INDEX phpbb_privmsgs_author_ip ON phpbb_privmsgs (author_ip);CREATE INDEX phpbb_privmsgs_message_time ON phpbb_privmsgs (message_time);CREATE INDEX phpbb_privmsgs_author_id ON phpbb_privmsgs (author_id);CREATE INDEX phpbb_privmsgs_root_level ON phpbb_privmsgs (root_level);# Table: 'phpbb_privmsgs_folder'CREATE TABLE phpbb_privmsgs_folder (	folder_id INTEGER PRIMARY KEY NOT NULL ,	user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	folder_name varchar(255) NOT NULL DEFAULT '',	pm_count INTEGER UNSIGNED NOT NULL DEFAULT '0');CREATE INDEX phpbb_privmsgs_folder_user_id ON phpbb_privmsgs_folder (user_id);# Table: 'phpbb_privmsgs_rules'CREATE TABLE phpbb_privmsgs_rules (	rule_id INTEGER PRIMARY KEY NOT NULL ,	user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	rule_check INTEGER UNSIGNED NOT NULL DEFAULT '0',	rule_connection INTEGER UNSIGNED NOT NULL DEFAULT '0',	rule_string varchar(255) NOT NULL DEFAULT '',	rule_user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	rule_group_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	rule_action INTEGER UNSIGNED NOT NULL DEFAULT '0',	rule_folder_id int(11) NOT NULL DEFAULT '0');CREATE INDEX phpbb_privmsgs_rules_user_id ON phpbb_privmsgs_rules (user_id);# Table: 'phpbb_privmsgs_to'CREATE TABLE phpbb_privmsgs_to (	msg_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	author_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	pm_deleted INTEGER UNSIGNED NOT NULL DEFAULT '0',	pm_new INTEGER UNSIGNED NOT NULL DEFAULT '1',	pm_unread INTEGER UNSIGNED NOT NULL DEFAULT '1',	pm_replied INTEGER UNSIGNED NOT NULL DEFAULT '0',	pm_marked INTEGER UNSIGNED NOT NULL DEFAULT '0',	pm_forwarded INTEGER UNSIGNED NOT NULL DEFAULT '0',	folder_id int(11) NOT NULL DEFAULT '0');CREATE INDEX phpbb_privmsgs_to_msg_id ON phpbb_privmsgs_to (msg_id);CREATE INDEX phpbb_privmsgs_to_author_id ON phpbb_privmsgs_to (author_id);CREATE INDEX phpbb_privmsgs_to_usr_flder_id ON phpbb_privmsgs_to (user_id, folder_id);# Table: 'phpbb_profile_fields'CREATE TABLE phpbb_profile_fields (	field_id INTEGER PRIMARY KEY NOT NULL ,	field_name varchar(255) NOT NULL DEFAULT '',	field_type tinyint(4) NOT NULL DEFAULT '0',	field_ident varchar(20) NOT NULL DEFAULT '',	field_length varchar(20) NOT NULL DEFAULT '',	field_minlen varchar(255) NOT NULL DEFAULT '',	field_maxlen varchar(255) NOT NULL DEFAULT '',	field_novalue varchar(255) NOT NULL DEFAULT '',	field_default_value varchar(255) NOT NULL DEFAULT '',	field_validation varchar(20) NOT NULL DEFAULT '',	field_required INTEGER UNSIGNED NOT NULL DEFAULT '0',	field_show_on_reg INTEGER UNSIGNED NOT NULL DEFAULT '0',	field_hide INTEGER UNSIGNED NOT NULL DEFAULT '0',	field_no_view INTEGER UNSIGNED NOT NULL DEFAULT '0',	field_active INTEGER UNSIGNED NOT NULL DEFAULT '0',	field_order INTEGER UNSIGNED NOT NULL DEFAULT '0');CREATE INDEX phpbb_profile_fields_fld_type ON phpbb_profile_fields (field_type);CREATE INDEX phpbb_profile_fields_fld_ordr ON phpbb_profile_fields (field_order);# Table: 'phpbb_profile_fields_data'CREATE TABLE phpbb_profile_fields_data (	user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	PRIMARY KEY (user_id));# Table: 'phpbb_profile_fields_lang'CREATE TABLE phpbb_profile_fields_lang (	field_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	lang_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	option_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	field_type tinyint(4) NOT NULL DEFAULT '0',	lang_value varchar(255) NOT NULL DEFAULT '',	PRIMARY KEY (field_id, lang_id, option_id));# Table: 'phpbb_profile_lang'CREATE TABLE phpbb_profile_lang (	field_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	lang_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	lang_name varchar(255) NOT NULL DEFAULT '',	lang_explain text(65535) NOT NULL DEFAULT '',	lang_default_value varchar(255) NOT NULL DEFAULT '',	PRIMARY KEY (field_id, lang_id));# Table: 'phpbb_ranks'CREATE TABLE phpbb_ranks (	rank_id INTEGER PRIMARY KEY NOT NULL ,	rank_title varchar(255) NOT NULL DEFAULT '',	rank_min INTEGER UNSIGNED NOT NULL DEFAULT '0',	rank_special INTEGER UNSIGNED NOT NULL DEFAULT '0',	rank_image varchar(255) NOT NULL DEFAULT '');# Table: 'phpbb_reports'CREATE TABLE phpbb_reports (	report_id INTEGER PRIMARY KEY NOT NULL ,	reason_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	post_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	user_notify INTEGER UNSIGNED NOT NULL DEFAULT '0',	report_closed INTEGER UNSIGNED NOT NULL DEFAULT '0',	report_time INTEGER UNSIGNED NOT NULL DEFAULT '0',	report_text mediumtext(16777215) NOT NULL DEFAULT '');# Table: 'phpbb_reports_reasons'CREATE TABLE phpbb_reports_reasons (	reason_id INTEGER PRIMARY KEY NOT NULL ,	reason_title varchar(255) NOT NULL DEFAULT '',	reason_description mediumtext(16777215) NOT NULL DEFAULT '',	reason_order INTEGER UNSIGNED NOT NULL DEFAULT '0');# Table: 'phpbb_search_results'CREATE TABLE phpbb_search_results (	search_key varchar(32) NOT NULL DEFAULT '',	search_time INTEGER UNSIGNED NOT NULL DEFAULT '0',	search_keywords mediumtext(16777215) NOT NULL DEFAULT '',	search_authors mediumtext(16777215) NOT NULL DEFAULT '',	PRIMARY KEY (search_key));# Table: 'phpbb_search_wordlist'CREATE TABLE phpbb_search_wordlist (	word_id INTEGER PRIMARY KEY NOT NULL ,	word_text varchar(255) NOT NULL DEFAULT '',	word_common INTEGER UNSIGNED NOT NULL DEFAULT '0');CREATE UNIQUE INDEX phpbb_search_wordlist_wrd_txt ON phpbb_search_wordlist (word_text);# Table: 'phpbb_search_wordmatch'CREATE TABLE phpbb_search_wordmatch (	post_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	word_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	title_match INTEGER UNSIGNED NOT NULL DEFAULT '0');CREATE INDEX phpbb_search_wordmatch_word_id ON phpbb_search_wordmatch (word_id);CREATE INDEX phpbb_search_wordmatch_post_id ON phpbb_search_wordmatch (post_id);# Table: 'phpbb_sessions'CREATE TABLE phpbb_sessions (	session_id char(32) NOT NULL DEFAULT '',	session_user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	session_last_visit INTEGER UNSIGNED NOT NULL DEFAULT '0',	session_start INTEGER UNSIGNED NOT NULL DEFAULT '0',	session_time INTEGER UNSIGNED NOT NULL DEFAULT '0',	session_ip varchar(40) NOT NULL DEFAULT '',	session_browser varchar(150) NOT NULL DEFAULT '',	session_forwarded_for varchar(255) NOT NULL DEFAULT '',	session_page varchar(255) NOT NULL DEFAULT '',	session_viewonline INTEGER UNSIGNED NOT NULL DEFAULT '1',	session_autologin INTEGER UNSIGNED NOT NULL DEFAULT '0',	session_admin INTEGER UNSIGNED NOT NULL DEFAULT '0',	PRIMARY KEY (session_id));CREATE INDEX phpbb_sessions_session_time ON phpbb_sessions (session_time);CREATE INDEX phpbb_sessions_session_user_id ON phpbb_sessions (session_user_id);# Table: 'phpbb_sessions_keys'CREATE TABLE phpbb_sessions_keys (	key_id char(32) NOT NULL DEFAULT '',	user_id INTEGER UNSIGNED NOT NULL DEFAULT '0',	last_ip varchar(40) NOT NULL DEFAULT '',	last_login INTEGER UNSIGNED NOT NULL DEFAULT '0',	PRIMARY KEY (key_id, user_id));CREATE INDEX phpbb_sessions_keys_last_login ON phpbb_sessions_keys (last_login);# Table: 'phpbb_sitelist'CREATE TABLE phpbb_sitelist (	site_id INTEGER PRIMARY KEY NOT NULL ,	site_ip varchar(40) NOT NULL DEFAULT '',	site_hostname varchar(255) NOT NULL DEFAULT '',	ip_exclude INTEGER UNSIGNED NOT NULL DEFAULT '0');# Table: 'phpbb_smilies'CREATE TABLE phpbb_smilies (	smiley_id INTEGER PRIMARY KEY NOT NULL ,	code varchar(50) NOT NULL DEFAULT '',	emotion varchar(50) NOT NULL DEFAULT '',	smiley_url varchar(50) NOT NULL DEFAULT '',	smiley_width INTEGER UNSIGNED NOT NULL DEFAULT '0',	smiley_height INTEGER UNSIGNED NOT NULL DEFAULT '0',	smiley_order INTEGER UNSIGNED NOT NULL DEFAULT '0',	display_on_posting INTEGER UNSIGNED NOT NULL DEFAULT '1');CREATE INDEX phpbb_smilies_display_on_post ON phpbb_smilies (display_on_posting);# Table: 'phpbb_styles'CREATE TABLE phpbb_styles (	style_id INTEGER PRIMARY KEY NOT NULL ,	style_name varchar(255) NOT NULL DEFAULT '',	style_copyright varchar(255) NOT NULL DEFAULT '',	style_active INTEGER UNSIGNED NOT NULL DEFAULT '1',	template_id tinyint(4) NOT NULL DEFAULT '0',	theme_id tinyint(4) NOT NULL DEFAULT '0',	imageset_id tinyint(4) NOT NULL DEFAULT '0'

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -