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

📄 mysql_schema.sql

📁 很好的论坛php+mysql+linux
💻 SQL
📖 第 1 页 / 共 2 页
字号:
## phpBB2 - MySQL schema## $Id: mysql_schema.sql,v 1.35.2.8 2005/05/06 20:50:13 acydburn Exp $### Table structure for table 'phpbb_auth_access'#CREATE TABLE phpbb_auth_access (   group_id mediumint(8) DEFAULT '0' NOT NULL,   forum_id smallint(5) UNSIGNED DEFAULT '0' NOT NULL,   auth_view tinyint(1) DEFAULT '0' NOT NULL,   auth_read tinyint(1) DEFAULT '0' NOT NULL,   auth_post tinyint(1) DEFAULT '0' NOT NULL,   auth_reply tinyint(1) DEFAULT '0' NOT NULL,   auth_edit tinyint(1) DEFAULT '0' NOT NULL,   auth_delete tinyint(1) DEFAULT '0' NOT NULL,   auth_sticky tinyint(1) DEFAULT '0' NOT NULL,   auth_announce tinyint(1) DEFAULT '0' NOT NULL,   auth_vote tinyint(1) DEFAULT '0' NOT NULL,   auth_pollcreate tinyint(1) DEFAULT '0' NOT NULL,   auth_attachments tinyint(1) DEFAULT '0' NOT NULL,   auth_mod tinyint(1) DEFAULT '0' NOT NULL,   KEY group_id (group_id),   KEY forum_id (forum_id));## Table structure for table 'phpbb_user_group'#CREATE TABLE phpbb_user_group (   group_id mediumint(8) DEFAULT '0' NOT NULL,   user_id mediumint(8) DEFAULT '0' NOT NULL,   user_pending tinyint(1),   KEY group_id (group_id),   KEY user_id (user_id));## Table structure for table 'phpbb_groups'#CREATE TABLE phpbb_groups (   group_id mediumint(8) NOT NULL auto_increment,   group_type tinyint(4) DEFAULT '1' NOT NULL,   group_name varchar(40) NOT NULL,   group_description varchar(255) NOT NULL,   group_moderator mediumint(8) DEFAULT '0' NOT NULL,   group_single_user tinyint(1) DEFAULT '1' NOT NULL,   PRIMARY KEY (group_id),   KEY group_single_user (group_single_user));# --------------------------------------------------------## Table structure for table 'phpbb_banlist'#CREATE TABLE phpbb_banlist (   ban_id mediumint(8) UNSIGNED NOT NULL auto_increment,   ban_userid mediumint(8) NOT NULL,   ban_ip char(8) NOT NULL,   ban_email varchar(255),   PRIMARY KEY (ban_id),   KEY ban_ip_user_id (ban_ip, ban_userid));# --------------------------------------------------------## Table structure for table 'phpbb_categories'#CREATE TABLE phpbb_categories (   cat_id mediumint(8) UNSIGNED NOT NULL auto_increment,   cat_title varchar(100),   cat_order mediumint(8) UNSIGNED NOT NULL,   PRIMARY KEY (cat_id),   KEY cat_order (cat_order));# --------------------------------------------------------## Table structure for table 'phpbb_config'#CREATE TABLE phpbb_config (    config_name varchar(255) NOT NULL,    config_value varchar(255) NOT NULL,    PRIMARY KEY (config_name));# --------------------------------------------------------## Table structure for table 'phpbb_confirm'#CREATE TABLE phpbb_confirm (  confirm_id char(32) DEFAULT '' NOT NULL,  session_id char(32) DEFAULT '' NOT NULL,  code char(6) DEFAULT '' NOT NULL,   PRIMARY KEY  (session_id,confirm_id));# --------------------------------------------------------## Table structure for table 'phpbb_disallow'#CREATE TABLE phpbb_disallow (   disallow_id mediumint(8) UNSIGNED NOT NULL auto_increment,   disallow_username varchar(25) DEFAULT '' NOT NULL,   PRIMARY KEY (disallow_id));# --------------------------------------------------------## Table structure for table 'phpbb_forum_prune'#CREATE TABLE phpbb_forum_prune (   prune_id mediumint(8) UNSIGNED NOT NULL auto_increment,   forum_id smallint(5) UNSIGNED NOT NULL,   prune_days smallint(5) UNSIGNED NOT NULL,   prune_freq smallint(5) UNSIGNED NOT NULL,   PRIMARY KEY(prune_id),   KEY forum_id (forum_id));# --------------------------------------------------------## Table structure for table 'phpbb_forums'#CREATE TABLE phpbb_forums (   forum_id smallint(5) UNSIGNED NOT NULL,   cat_id mediumint(8) UNSIGNED NOT NULL,   forum_name varchar(150),   forum_desc text,   forum_status tinyint(4) DEFAULT '0' NOT NULL,   forum_order mediumint(8) UNSIGNED DEFAULT '1' NOT NULL,   forum_posts mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,   forum_topics mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,   forum_last_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,   prune_next int(11),   prune_enable tinyint(1) DEFAULT '0' NOT NULL,   auth_view tinyint(2) DEFAULT '0' NOT NULL,   auth_read tinyint(2) DEFAULT '0' NOT NULL,   auth_post tinyint(2) DEFAULT '0' NOT NULL,   auth_reply tinyint(2) DEFAULT '0' NOT NULL,   auth_edit tinyint(2) DEFAULT '0' NOT NULL,   auth_delete tinyint(2) DEFAULT '0' NOT NULL,   auth_sticky tinyint(2) DEFAULT '0' NOT NULL,   auth_announce tinyint(2) DEFAULT '0' NOT NULL,   auth_vote tinyint(2) DEFAULT '0' NOT NULL,   auth_pollcreate tinyint(2) DEFAULT '0' NOT NULL,   auth_attachments tinyint(2) DEFAULT '0' NOT NULL,   PRIMARY KEY (forum_id),   KEY forums_order (forum_order),   KEY cat_id (cat_id),   KEY forum_last_post_id (forum_last_post_id));# --------------------------------------------------------## Table structure for table 'phpbb_posts'#CREATE TABLE phpbb_posts (   post_id mediumint(8) UNSIGNED NOT NULL auto_increment,   topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,   forum_id smallint(5) UNSIGNED DEFAULT '0' NOT NULL,   poster_id mediumint(8) DEFAULT '0' NOT NULL,   post_time int(11) DEFAULT '0' NOT NULL,   poster_ip char(8) NOT NULL,   post_username varchar(25),   enable_bbcode tinyint(1) DEFAULT '1' NOT NULL,   enable_html tinyint(1) DEFAULT '0' NOT NULL,   enable_smilies tinyint(1) DEFAULT '1' NOT NULL,   enable_sig tinyint(1) DEFAULT '1' NOT NULL,   post_edit_time int(11),   post_edit_count smallint(5) UNSIGNED DEFAULT '0' NOT NULL,   PRIMARY KEY (post_id),   KEY forum_id (forum_id),   KEY topic_id (topic_id),   KEY poster_id (poster_id),   KEY post_time (post_time));# --------------------------------------------------------## Table structure for table 'phpbb_posts_text'#CREATE TABLE phpbb_posts_text (   post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,   bbcode_uid char(10) NOT NULL,   post_subject char(60),   post_text text,   PRIMARY KEY (post_id));# --------------------------------------------------------## Table structure for table 'phpbb_privmsgs'#CREATE TABLE phpbb_privmsgs (   privmsgs_id mediumint(8) UNSIGNED NOT NULL auto_increment,   privmsgs_type tinyint(4) DEFAULT '0' NOT NULL,   privmsgs_subject varchar(255) DEFAULT '0' NOT NULL,   privmsgs_from_userid mediumint(8) DEFAULT '0' NOT NULL,   privmsgs_to_userid mediumint(8) DEFAULT '0' NOT NULL,   privmsgs_date int(11) DEFAULT '0' NOT NULL,   privmsgs_ip char(8) NOT NULL,   privmsgs_enable_bbcode tinyint(1) DEFAULT '1' NOT NULL,   privmsgs_enable_html tinyint(1) DEFAULT '0' NOT NULL,   privmsgs_enable_smilies tinyint(1) DEFAULT '1' NOT NULL,   privmsgs_attach_sig tinyint(1) DEFAULT '1' NOT NULL,   PRIMARY KEY (privmsgs_id),   KEY privmsgs_from_userid (privmsgs_from_userid),   KEY privmsgs_to_userid (privmsgs_to_userid));# --------------------------------------------------------## Table structure for table 'phpbb_privmsgs_text'#CREATE TABLE phpbb_privmsgs_text (   privmsgs_text_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,   privmsgs_bbcode_uid char(10) DEFAULT '0' NOT NULL,   privmsgs_text text,   PRIMARY KEY (privmsgs_text_id));# --------------------------------------------------------## Table structure for table 'phpbb_ranks'#CREATE TABLE phpbb_ranks (   rank_id smallint(5) UNSIGNED NOT NULL auto_increment,   rank_title varchar(50) NOT NULL,   rank_min mediumint(8) DEFAULT '0' NOT NULL,   rank_special tinyint(1) DEFAULT '0',   rank_image varchar(255),   PRIMARY KEY (rank_id));# --------------------------------------------------------## Table structure for table `phpbb_search_results`#CREATE TABLE phpbb_search_results (  search_id int(11) UNSIGNED NOT NULL default '0',  session_id char(32) NOT NULL default '',  search_array text NOT NULL,  PRIMARY KEY  (search_id),  KEY session_id (session_id));# --------------------------------------------------------## Table structure for table `phpbb_search_wordlist`#CREATE TABLE phpbb_search_wordlist (  word_text varchar(50) binary NOT NULL default '',  word_id mediumint(8) UNSIGNED NOT NULL auto_increment,  word_common tinyint(1) unsigned NOT NULL default '0',  PRIMARY KEY (word_text),  KEY word_id (word_id));# --------------------------------------------------------## Table structure for table `phpbb_search_wordmatch`#CREATE TABLE phpbb_search_wordmatch (  post_id mediumint(8) UNSIGNED NOT NULL default '0',  word_id mediumint(8) UNSIGNED NOT NULL default '0',  title_match tinyint(1) NOT NULL default '0',

⌨️ 快捷键说明

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