Discuz! X2.5数据库字典(转)
lookingfor varchar(255) NOT NULL default COMMENT ' 交友目的(交友类型)',
bloodtype varchar(255) NOT NULL default COMMENT '血型',
height varchar(255) NOT NULL default COMMENT ' 身高',
weight varchar(255) NOT NULL default COMMENT ' 体重',
alipay varchar(255) NOT NULL default COMMENT '支付宝帐号',
icq varchar(255) NOT NULL default COMMENT 'ICQ',
qq varchar(255) NOT NULL default COMMENT 'QQ',
yahoo varchar(255) NOT NULL default COMMENT 'YAHOO',
msn varchar(255) NOT NULL default COMMENT 'MSN',
taobao varchar(255) NOT NULL default COMMENT '阿里旺旺',
site varchar(255) NOT NULL default COMMENT '主页',
bio text NOT NULL COMMENT '自我介绍来自论坛bio字段',
interest text NOT NULL COMMENT '兴趣爱好',
field1 text NOT NULL COMMENT '自定义字段1',
field2 text NOT NULL COMMENT '自定义字段2',
field3 text NOT NULL COMMENT '自定义字段3',
field4 text NOT NULL COMMENT '自定义字段4',
field5 text NOT NULL COMMENT '自定义字段5',
field6 text NOT NULL COMMENT '自定义字段6',
field7 text NOT NULL COMMENT '自定义字段7',
field8 text NOT NULL COMMENT '自定义字段8',
PRIMARY KEY (uid)
) ENGINE=MyISAM COMMENT='用户栏目表';
DROP TABLE IF EXISTS pre_common_member_status;
CREATE TABLE pre_common_member_status (
uid mediumint(8) unsigned NOT NULL COMMENT '会员id',
regip char(15) NOT NULL default COMMENT '注册IP',
lastip char(15) NOT NULL default COMMENT '最后登录IP',
lastvisit int(10) unsigned NOT NULL default '0' COMMENT '最后访问',
lastactivity int(10) unsigned NOT NULL default '0' COMMENT '最后活动',
lastpost int(10) unsigned NOT NULL default '0' COMMENT '最后发表',
lastsendmail int(10) unsigned NOT NULL default '0' COMMENT '上次发送email时间 home原字段为lastsend',
invisible tinyint(1) NOT NULL default '0' COMMENT '是否隐身登录',
buyercredit smallint(6) NOT NULL default '0' COMMENT '买家信用等级及积分',
sellercredit smallint(6) NOT NULL default '0' COMMENT '卖家信用等级及积分',
favtimes mediumint(8) unsigned NOT NULL default '0' COMMENT '个人空间收藏次数',
sharetimes mediumint(8) unsigned NOT NULL default '0' COMMENT '个人空间分享次数',
profileprogress tinyint(2) unsigned NOT NULL default '0' COMMENT '个人资料完成度',
PRIMARY KEY (uid),
KEY lastactivity (lastactivity, invisible)
) ENGINE=MyISAM COMMENT='用户状态表';
DROP TABLE IF EXISTS pre_common_member_stat_field;
CREATE TABLE pre_common_member_stat_field (
optionid mediumint(8) unsigned NOT NULL auto_increment COMMENT '资料统计项 id',
fieldid varchar(255) NOT NULL default COMMENT '资料项字段标志符',
fieldvalue varchar(255) NOT NULL default COMMENT '字段值' ,
hash varchar(255) NOT NULL default COMMENT '由fieldid和fieldvalue生成的hash',
users mediumint(8) unsigned NOT NULL default '0' COMMENT '对应用户数',
updatetime int(10) unsigned NOT NULL default '0' COMMENT '更新时间',
PRIMARY KEY (optionid),
KEY fieldid (fieldid)
) ENGINE=MyISAM COMMENT='用户资料统计项';
DROP TABLE IF EXISTS pre_common_member_action_log;
CREATE TABLE pre_common_member_action_log (
id mediumint(8) unsigned NOT NULL auto_increment COMMENT '记录id',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户ID',
`action` tinyint(5) NOT NULL default '0' COMMENT '操作代码',
dateline int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY dateline (dateline, `action`, uid)
) ENGINE=MyISAM COMMENT='用户操作日志表';
DROP TABLE IF EXISTS pre_home_follow;
CREATE TABLE pre_home_follow (
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户ID',
username char(15) NOT NULL default COMMENT '用户名',
followuid mediumint(8) unsigned NOT NULL default '0' COMMENT '被关注用户ID',
fusername char(15) NOT NULL default COMMENT '被关注用户名称',
bkname varchar(255) NOT NULL default COMMENT '用户备注',
`status` tinyint(1) NOT NULL default '0' COMMENT '0:正常 1:特殊关注 -1:不能再关注此人',
mutual tinyint(1) NOT NULL default '0' COMMENT '0:单向 1:已互相关注',
dateline int(10) unsigned NOT NULL default '0',
PRIMARY KEY (uid, followuid)
) ENGINE=MyISAM COMMENT='用户关注关系表';
DROP TABLE IF EXISTS pre_home_follow_feed;
CREATE TABLE pre_home_follow_feed (
feedid mediumint(8) unsigned NOT NULL auto_increment COMMENT '自增id',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '被关注者ID',
username varchar(15) NOT NULL default COMMENT '被关注用户名',
tid mediumint(8) unsigned NOT NULL default '0' COMMENT '帖子tid',
note text NOT NULL COMMENT '转发理由',
dateline int(10) unsigned NOT NULL default '0',
PRIMARY KEY (feedid),
KEY uid (uid, dateline)
) ENGINE=MyISAM COMMENT='被关注者事件表';
DROP TABLE IF EXISTS pre_home_follow_feed_archiver;
CREATE TABLE pre_home_follow_feed_archiver (
feedid mediumint(8) unsigned NOT NULL auto_increment COMMENT '自增id',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '被关注者ID',
username varchar(15) NOT NULL default COMMENT '被关注用户名',
tid mediumint(8) unsigned NOT NULL default '0' COMMENT '帖子tid',
note text NOT NULL COMMENT '转发理由',
dateline int(10) unsigned NOT NULL default '0',
PRIMARY KEY (feedid),
KEY uid (uid, dateline)
) ENGINE=MyISAM COMMENT='被关注者事件存档';
DROP TABLE IF EXISTS pre_common_member_log;
CREATE TABLE pre_common_member_log (
uid mediumint(8) unsigned NOT NULL default '0',
`action` char(10) NOT NULL default COMMENT 'add,update,delete',
dateline int(10) unsigned NOT NULL default '0',
PRIMARY KEY (uid)
) ENGINE=MyISAM COMMENT='漫游用户日志表';
DROP TABLE IF EXISTS pre_common_member_verify;
CREATE TABLE pre_common_member_verify (
uid mediumint(8) unsigned NOT NULL COMMENT '会员id',
verify1 tinyint(1) NOT NULL default '0' COMMENT '认证1: -1:被拒绝 0:待审核 1:审核通过',
verify2 tinyint(1) NOT NULL default '0' COMMENT '认证2: -1:被拒绝 0:待审核 1:审核通过',
verify3 tinyint(1) NOT NULL default '0' COMMENT '认证3: -1:被拒绝 0:待审核 1:审核通过',
verify4 tinyint(1) NOT NULL default '0' COMMENT '认证4: -1:被拒绝 0:待审核 1:审核通过',
verify5 tinyint(1) NOT NULL default '0' COMMENT '认证5: -1:被拒绝 0:待审核 1:审核通过',
verify6 tinyint(1) NOT NULL default '0' COMMENT '实名认证: -1:被拒绝 0:待审核 1:审核通过',
verify7 tinyint(1) NOT NULL default '0' COMMENT '视频认证: -1:被拒绝 0:待审核 1:审核通过',
PRIMARY KEY (uid),
KEY verify1 (verify1),
KEY verify2 (verify2),
KEY verify3 (verify3),
KEY verify4 (verify4),
KEY verify5 (verify5),
KEY verify6 (verify6),
KEY verify7 (verify7)
) ENGINE=MyISAM COMMENT='用户认证表';
DROP TABLE IF EXISTS pre_common_member_verify_info;
CREATE TABLE pre_common_member_verify_info (
vid mediumint(8) unsigned NOT NULL auto_increment COMMENT '审核id',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
username varchar(30) NOT NULL default COMMENT '用户名',
verifytype tinyint(1) NOT NULL default '0' COMMENT '审核类型0:资料审核, 1:认证1, 2:认证2, 3:认证3, 4:认证4, 5:认证5',
flag tinyint(1) NOT NULL default '0' COMMENT '-1:被拒绝 0:待审核 1:审核通过',
field text NOT NULL COMMENT '序列化存储变化值',
dateline int(10) unsigned NOT NULL default '0' COMMENT '提交日期',
PRIMARY KEY (vid),
KEY verifytype (verifytype, flag),
KEY uid (uid, verifytype, dateline)
) ENGINE=MyISAM COMMENT='个人信息修改审核';
DROP TABLE IF EXISTS pre_common_member_profile_setting;
CREATE TABLE pre_common_member_profile_setting (
fieldid varchar(255) NOT NULL default COMMENT 'profile字段标志符',
available tinyint(1) NOT NULL default '0' COMMENT '是否可用',
invisible tinyint(1) NOT NULL default '0' COMMENT '是否隐藏',
needverify tinyint(1) NOT NULL default '0' COMMENT '是否需要审核',
title varchar(255) NOT NULL default COMMENT '栏目标题',
description varchar(255) NOT NULL default COMMENT '解释说明',
displayorder smallint(6) unsigned NOT NULL default '0' COMMENT '显示顺序',
required tinyint(1) NOT NULL default '0' COMMENT '是否必填内容',
unchangeable tinyint(1) NOT NULL default '0' COMMENT '不可修改',
showincard tinyint(1) NOT NULL default '0' COMMENT '在名片中显示',
showinthread tinyint(1) NOT NULL default '0' COMMENT '在帖子中显示',
showinregister tinyint(1) NOT NULL default '0' COMMENT '是否在注册页面显示',
allowsearch tinyint(1) NOT NULL default '0' COMMENT '是否可搜索',
formtype varchar(255) NOT NULL COMMENT '表单元素类型',
size smallint(6) unsigned NOT NULL default '0' COMMENT '内容最大长度',
choices text NOT NULL COMMENT '选填内容',
validate text NOT NULL COMMENT '验证数据的正则表达式',
PRIMARY KEY (fieldid)
) ENGINE=MyISAM COMMENT='个人信息扩展表';
DROP TABLE IF EXISTS pre_common_member_security;
CREATE TABLE pre_common_member_security (
securityid mediumint(8) unsigned NOT NULL auto_increment COMMENT '审核项id',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
username varchar(255) NOT NULL default COMMENT '用户名',
fieldid varchar(255) NOT NULL default COMMENT 'profile字段标志符',
oldvalue text NOT NULL COMMENT '旧的profile字段值',
newvalue text NOT NULL COMMENT '新的profile字段值',
dateline int(10) unsigned NOT NULL default '0' COMMENT '提交日期',
PRIMARY KEY (securityid),
KEY uid (uid, fieldid),
KEY dateline (dateline)
) ENGINE=MyISAM COMMENT='个人信息修改审核';
DROP TABLE IF EXISTS pre_common_member_validate;
CREATE TABLE pre_common_member_validate (
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
submitdate int(10) unsigned NOT NULL default '0' COMMENT '提交日期',
moddate int(10) unsigned NOT NULL default '0' COMMENT '审核日期',
admin varchar(15) NOT NULL default COMMENT '管理员名',
submittimes tinyint(3) unsigned NOT NULL default '0' COMMENT '提交的次数',
`status` tinyint(1) NOT NULL default '0' COMMENT '状态',
message text NOT NULL COMMENT '注册原因',
remark text NOT NULL COMMENT '管理员留言',
PRIMARY KEY (uid),
KEY `status` (`status`)
) ENGINE=MyISAM COMMENT='用户审核表';
DROP TABLE IF EXISTS pre_common_member_crime;
CREATE TABLE pre_common_member_crime (
cid mediumint(8) unsigned NOT NULL auto_increment COMMENT '自增id',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '被惩罚操作的用户id',
operatorid mediumint(8) unsigned NOT NULL default '0' COMMENT '进行惩罚操作的用户id',
operator varchar(15) NOT NULL COMMENT '进行惩罚操作的用户名',
`action` tinyint(5) NOT NULL COMMENT '惩罚行为',
reason text NOT NULL COMMENT '惩罚理由',
dateline int(10) unsigned NOT NULL default '0' COMMENT '惩罚操作时间',
PRIMARY KEY (cid),
KEY uid (uid,`action`,dateline)
) ENGINE=MyISAM COMMENT='用户惩罚操作表';
DROP TABLE IF EXISTS pre_common_member_grouppm;
CREATE TABLE pre_common_member_grouppm (
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
gpmid smallint(6) unsigned NOT NULL auto_increment COMMENT '消息id',
status tinyint(1) NOT NULL default '0' COMMENT '0=未读 1=已读 -1=删除',
dateline int(10) unsigned NOT NULL default '0' COMMENT '阅读时间',
PRIMARY KEY (uid, gpmid)
) ENGINE=MyISAM COMMENT='群发短消息用户记录表';
DROP TABLE IF EXISTS pre_common_grouppm;
CREATE TABLE pre_common_grouppm (
id smallint(6) unsigned NOT NULL auto_increment COMMENT '消息id',
authorid mediumint(8) unsigned NOT NULL default '0' COMMENT '作者id',
author varchar(15) NOT NULL default COMMENT '作者姓名',
dateline int(10) unsigned NOT NULL default '0' COMMENT '时间',
message text NOT NULL COMMENT '消息',
numbers mediumint(8) unsigned NOT NULL default '0' COMMENT '数量',
PRIMARY KEY (id)
) ENGINE=MyISAM COMMENT='群发短消息表';
DROP TABLE IF EXISTS pre_common_myapp;
CREATE TABLE pre_common_myapp (
appid mediumint(8) unsigned NOT NULL default '0' COMMENT '应用id',
appname varchar(60) NOT NULL default COMMENT '应用名称',
narrow tinyint(1) NOT NULL default '0' COMMENT '是否显示为窄的profile box',
flag tinyint(1) NOT NULL default '0' COMMENT '应用状态(黑白名单、默认应用等)',
version mediumint(8) unsigned NOT NULL default '0' COMMENT '应用版本号',
userpanelarea tinyint(1) NOT NULL default '0' COMMENT 'userabout显示区域、1主区、2、副区、3应用区',
canvastitle varchar(60) NOT NULL default COMMENT 'canvas页面标题',
fullscreen tinyint(1) NOT NULL default '0' COMMENT '是否是全屏应用',
displayuserpanel tinyint(1) NOT NULL default '0' COMMENT '是否显示应用右侧的用户菜单',
displaymethod tinyint(1) NOT NULL default '0' COMMENT '显示方式(iframe/myml)',
displayorder smallint(6) unsigned NOT NULL default '0' COMMENT '显示顺序',
appstatus tinyint(2) NOT NULL default '0' COMMENT '标识应用1:新、2:热',
iconstatus tinyint(2) NOT NULL default '0' COMMENT '应用图标是否已下载到本地。-1:失败;0:未下载;1:已下载',
icondowntime int(10) unsigned NOT NULL default '0' COMMENT '应用图标下载到本地时间',
PRIMARY KEY (appid),
KEY flag (flag,displayorder)
) ENGINE=MyISAM COMMENT='漫游应用表';
DROP TABLE IF EXISTS pre_common_myinvite;
CREATE TABLE pre_common_myinvite (
id mediumint(8) unsigned NOT NULL auto_increment COMMENT '邀请id',
typename varchar(100) NOT NULL default COMMENT '邀请名称',
appid mediumint(8) NOT NULL default '0' COMMENT '应用id',
`type` tinyint(1) NOT NULL default '0' COMMENT '类型(request 邀请/invite 请求)',
fromuid mediumint(8) unsigned NOT NULL default '0' COMMENT '邀请者id',
touid mediumint(8) unsigned NOT NULL default '0' COMMENT '接收者id',
myml text NOT NULL COMMENT '邀请内容',
dateline int(10) unsigned NOT NULL default '0' COMMENT '发送邀请的时间戳',
`hash` int(10) unsigned NOT NULL default '0' COMMENT 'hash标记',
PRIMARY KEY (id),
KEY `hash` (`hash`),
KEY uid (touid,dateline)
) ENGINE=MyISAM COMMENT='用户邀请表';
DROP TABLE IF EXISTS pre_common_nav;
CREATE TABLE pre_common_nav (
id smallint(6) unsigned NOT NULL auto_increment COMMENT '项目id',
parentid smallint(6) unsigned NOT NULL default '0' COMMENT '父 id(navtype=0)',
`name` varchar(255) NOT NULL COMMENT '导航名称',
title varchar(255) NOT NULL COMMENT '导航说明',
url varchar(255) NOT NULL COMMENT '导航链接',
identifier varchar(255) NOT NULL COMMENT '链接标识/相关ID',
target tinyint(1) NOT NULL default '0' COMMENT '目标框架\n(0:本窗口 1:新窗口)',
`type` tinyint(1) NOT NULL default '0' COMMENT '类型 0 系统 1 自定义 3 插件 4 频道',
available tinyint(1) NOT NULL default '0' COMMENT '是否可用',
displayorder tinyint(3) NOT NULL COMMENT '显示顺序',
highlight tinyint(1) NOT NULL default '0' COMMENT '样式(navtype=0)',
`level` tinyint(1) NOT NULL default '0' COMMENT '使用等级\n(0:游客 1:会员 2:版主 3:管理员)',
`subtype` tinyint(1) NOT NULL DEFAULT '0' COMMENT '二级导航样式(navtype=0) 顶部导航位置(navtype=4)',
`subcols` tinyint(1) NOT NULL DEFAULT '0' COMMENT '横排一行显示的条目数(navtype=0)',
`icon` varchar(255) NOT NULL COMMENT '图标地址(navtype=1、3)',
`subname` varchar(255) NOT NULL COMMENT '副导航名称(navtype=1)',
`suburl` varchar(255) NOT NULL COMMENT '副导航地址(navtype=1)',
`navtype` tinyint(1) NOT NULL default '0' COMMENT '导航类型\n(0:主导航 1:底部导航 2:家园导航 3:快捷导航 4:顶部导航)',
logo varchar(255) NOT NULL COMMENT '自定义 Logo',
PRIMARY KEY (id),
KEY `navtype` (`navtype`)
) ENGINE=MyISAM COMMENT='自定义导航栏表';
DROP TABLE IF EXISTS pre_common_onlinetime;
CREATE TABLE pre_common_onlinetime (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
thismonth smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '本月在线时间',
total mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '总在线时间',
lastupdate int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid)
) ENGINE=MyISAM COMMENT='在线时间表';
DROP TABLE IF EXISTS pre_common_regip;
CREATE TABLE pre_common_regip (
ip char(15) NOT NULL default COMMENT 'IP地址',
dateline int(10) unsigned NOT NULL default '0' COMMENT '限制时间',
count smallint(6) NOT NULL default '0' COMMENT '限制数量',
KEY ip (ip)
) ENGINE=MyISAM COMMENT='注册IP限制表';
DROP TABLE IF EXISTS pre_common_secquestion;
CREATE TABLE pre_common_secquestion (
id smallint(6) unsigned NOT NULL auto_increment COMMENT '验证问题id',
`type` tinyint(1) unsigned NOT NULL COMMENT '验证问题类型',
question text NOT NULL COMMENT '验证问题',
answer varchar(255) NOT NULL COMMENT '问题答案',
PRIMARY KEY (id)
) ENGINE=MyISAM COMMENT='验证问题数据表';
DROP TABLE IF EXISTS pre_common_session;
CREATE TABLE pre_common_session (
sid char(6) NOT NULL default COMMENT 'sid',
ip1 tinyint(3) unsigned NOT NULL default '0' COMMENT 'IP段',
ip2 tinyint(3) unsigned NOT NULL default '0' COMMENT 'IP段',
ip3 tinyint(3) unsigned NOT NULL default '0' COMMENT 'IP段',
ip4 tinyint(3) unsigned NOT NULL default '0' COMMENT 'IP段',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
username char(15) NOT NULL default COMMENT '会员名',
groupid smallint(6) unsigned NOT NULL default '0' COMMENT '会员组',
invisible tinyint(1) NOT NULL default '0' COMMENT '是否隐身登录',
`action` tinyint(1) unsigned NOT NULL default '0' COMMENT '当前动作',
lastactivity int(10) unsigned NOT NULL default '0' COMMENT '最后活动时间',
lastolupdate int(10) unsigned NOT NULL default '0' COMMENT '在线时间最后更新',
fid mediumint(8) unsigned NOT NULL default '0' COMMENT '论坛id',
tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
UNIQUE KEY sid (sid),
KEY uid (uid)
) ENGINE=MEMORY COMMENT='会员认证表';
DROP TABLE IF EXISTS pre_common_setting;
CREATE TABLE pre_common_setting (
skey varchar(255) NOT NULL default COMMENT '变量名',
svalue text NOT NULL COMMENT '值',
PRIMARY KEY (skey)
) ENGINE=MyISAM COMMENT='设置表';
DROP TABLE IF EXISTS pre_common_smiley;
CREATE TABLE pre_common_smiley (
id smallint(6) unsigned NOT NULL auto_increment COMMENT '表情id',
typeid smallint(6) unsigned NOT NULL COMMENT '表情分类 id',
displayorder tinyint(1) NOT NULL default '0' COMMENT '显示顺序',
`type` enum('smiley','stamp','stamplist') NOT NULL default 'smiley' COMMENT '类型',
`code` varchar(30) NOT NULL default COMMENT '标记',
url varchar(30) NOT NULL default COMMENT '路径',
PRIMARY KEY (id),
KEY `type` (`type`, displayorder)
) ENGINE=MyISAM COMMENT='表情表';
DROP TABLE IF EXISTS pre_common_stat;
CREATE TABLE pre_common_stat (
daytime int(10) unsigned NOT NULL default '0' COMMENT '时间',
login int(10) unsigned NOT NULL default '0' COMMENT '登陆',
mobilelogin int(10) unsigned NOT NULL default '0' COMMENT '手机登陆',
connectlogin int(10) unsigned NOT NULL default '0' COMMENT 'QQConnect登陆',
register int(10) unsigned NOT NULL default '0' COMMENT '注册',
invite int(10) unsigned NOT NULL default '0' COMMENT '邀请',
appinvite int(10) unsigned NOT NULL default '0' COMMENT '应用邀请',
doing int(10) unsigned NOT NULL default '0' COMMENT '记录',
blog int(10) unsigned NOT NULL default '0' COMMENT '日志',
pic int(10) unsigned NOT NULL default '0' COMMENT '图片',
poll int(10) unsigned NOT NULL default '0' COMMENT '投票',
activity int(10) unsigned NOT NULL default '0' COMMENT '活动',
`share` int(10) unsigned NOT NULL default '0' COMMENT '分享',
thread int(10) unsigned NOT NULL default '0' COMMENT '主题',
docomment int(10) unsigned NOT NULL default '0' COMMENT '记录评论',
blogcomment int(10) unsigned NOT NULL default '0' COMMENT '日志评论',
piccomment int(10) unsigned NOT NULL default '0' COMMENT '图片评论',
sharecomment int(10) unsigned NOT NULL default '0' COMMENT '分享评论',
reward int(10) unsigned NOT NULL default '0' COMMENT '悬赏',
debate int(10) unsigned NOT NULL default '0' COMMENT '辩论',
trade int(10) unsigned NOT NULL default '0' COMMENT '商品',
`group` int(10) unsigned NOT NULL default '0' COMMENT '群组',
groupjoin int(10) unsigned NOT NULL default '0' COMMENT '参与群组',
groupthread int(10) unsigned NOT NULL default '0' COMMENT '群组主题',
grouppost int(10) unsigned NOT NULL default '0' COMMENT '群组回复',
post int(10) unsigned NOT NULL default '0' COMMENT '主题回复',
wall int(10) unsigned NOT NULL default '0' COMMENT '留言',
poke int(10) unsigned NOT NULL default '0' COMMENT '打招呼',
click int(10) unsigned NOT NULL default '0' COMMENT '表态',
sendpm int(10) unsigned NOT NULL default '0' COMMENT '发送PM',
friend int(10) unsigned NOT NULL default '0' COMMENT '成为好友',
addfriend int(10) unsigned NOT NULL default '0' COMMENT '好友请求',
PRIMARY KEY (daytime)
) ENGINE=MyISAM COMMENT='趋势统计';
DROP TABLE IF EXISTS pre_common_statuser;
CREATE TABLE pre_common_statuser (
uid mediumint(8) unsigned NOT NULL default '0',
daytime int(10) unsigned NOT NULL default '0',
`type` char(20) NOT NULL default COMMENT '各种用户行为如:invite、register、login...',
KEY uid (uid)
) ENGINE=MyISAM COMMENT='统计用户表';
DROP TABLE IF EXISTS pre_common_style;
CREATE TABLE pre_common_style (
styleid smallint(6) unsigned NOT NULL auto_increment COMMENT '风格id',
`name` varchar(20) NOT NULL default COMMENT '风格名称',
available tinyint(1) NOT NULL default '1' COMMENT '风格是否可用',
templateid smallint(6) unsigned NOT NULL default '0' COMMENT '对应模板id',
extstyle varchar(255) NOT NULL default COMMENT '配色',
PRIMARY KEY (styleid)
) ENGINE=MyISAM COMMENT='风格表';
DROP TABLE IF EXISTS pre_common_stylevar;
CREATE TABLE pre_common_stylevar (
stylevarid smallint(6) unsigned NOT NULL auto_increment COMMENT '风格变量id',
styleid smallint(6) unsigned NOT NULL default '0' COMMENT '风格id',
variable text NOT NULL COMMENT '变量名',
substitute text NOT NULL COMMENT '变量赋值',
PRIMARY KEY (stylevarid),
KEY styleid (styleid)
) ENGINE=MyISAM COMMENT='风格变量表';
DROP TABLE IF EXISTS pre_common_syscache;
CREATE TABLE pre_common_syscache (
cname varchar(32) NOT NULL COMMENT '缓存名称',
`ctype` tinyint(3) unsigned NOT NULL COMMENT '缓存类型 0=value, serialize=1',
dateline int(10) unsigned NOT NULL COMMENT '缓存生成时间',
`data` mediumblob NOT NULL COMMENT '缓存数据',
PRIMARY KEY (cname)
) ENGINE=MyISAM COMMENT='缓存数据表';
DROP TABLE IF EXISTS pre_common_template;
CREATE TABLE pre_common_template (
templateid smallint(6) unsigned NOT NULL auto_increment COMMENT '模板id',
`name` varchar(30) NOT NULL default COMMENT '名称',
`directory` varchar(100) NOT NULL default COMMENT '目录',
copyright varchar(100) NOT NULL default COMMENT '版权',
PRIMARY KEY (templateid)
) ENGINE=MyISAM COMMENT='模板表';
DROP TABLE IF EXISTS pre_common_usergroup;
CREATE TABLE pre_common_usergroup (
groupid smallint(6) unsigned NOT NULL auto_increment COMMENT '会员组id',
radminid tinyint(3) NOT NULL default '0' COMMENT '关联关管理组',
`type` enum('system','special','member') NOT NULL default 'member' COMMENT '类型',
system varchar(255) NOT NULL default 'private' COMMENT '会员是否可以自由进出',
grouptitle varchar(255) NOT NULL default COMMENT '组头衔',
creditshigher int(10) NOT NULL default '0' COMMENT '该组的积分上限',
creditslower int(10) NOT NULL default '0' COMMENT '该组的积分下限',
stars tinyint(3) NOT NULL default '0' COMMENT '星星数量',
color varchar(255) NOT NULL default COMMENT '组头衔颜色',
icon varchar(255) NOT NULL default ,
allowvisit tinyint(1) NOT NULL default '0' COMMENT '允许访问',
allowsendpm tinyint(1) NOT NULL default '1' COMMENT '是否允许发送短信息',
allowinvite tinyint(1) NOT NULL default '0' COMMENT '允许使用邀请注册',
allowmailinvite tinyint(1) NOT NULL default '0' COMMENT '允许通过论坛邮件系统发送邀请码',
maxinvitenum tinyint(3) unsigned NOT NULL default '0' COMMENT '最大邀请码拥有数量',
inviteprice smallint(6) unsigned NOT NULL default '0' COMMENT '邀请码购买价格',
maxinviteday smallint(6) unsigned NOT NULL default '0' COMMENT '邀请码有效期',
PRIMARY KEY (groupid),
KEY creditsrange (creditshigher,creditslower)
) ENGINE=MyISAM COMMENT='用户组表';
DROP TABLE IF EXISTS pre_common_usergroup_field;
CREATE TABLE pre_common_usergroup_field (
groupid smallint(6) unsigned NOT NULL COMMENT '会员组id',
readaccess tinyint(3) unsigned NOT NULL default '0' COMMENT '阅读权限',
allowpost tinyint(1) NOT NULL default '0' COMMENT '允许发帖',
allowreply tinyint(1) NOT NULL default '0' COMMENT '允许回复',
allowpostpoll tinyint(1) NOT NULL default '0' COMMENT '允许发表投票',
allowpostreward tinyint(1) NOT NULL default '0' COMMENT '允许发表悬赏',
allowposttrade tinyint(1) NOT NULL default '0' COMMENT '允许发表交易',
allowpostactivity tinyint(1) NOT NULL default '0' COMMENT '允许发表活动',
allowdirectpost tinyint(1) NOT NULL default '0' COMMENT '是否需要审核',
allowgetattach tinyint(1) NOT NULL default '0' COMMENT '允许下载附件',
allowgetimage tinyint(1) NOT NULL default '0' COMMENT '允许查看图片',
allowpostattach tinyint(1) NOT NULL default '0' COMMENT '允许上传附件',
allowpostimage tinyint(1) NOT NULL default '0' COMMENT '允许上传图片',
allowvote tinyint(1) NOT NULL default '0' COMMENT '允许参与投票',
allowsearch tinyint(1) NOT NULL default '0' COMMENT '允许搜索',
allowcstatus tinyint(1) NOT NULL default '0' COMMENT '允许自定义头衔',
allowinvisible tinyint(1) NOT NULL default '0' COMMENT '允许隐身登录',
allowtransfer tinyint(1) NOT NULL default '0' COMMENT '允许积分转帐',
allowsetreadperm tinyint(1) NOT NULL default '0' COMMENT '允许设置阅读权限',
allowsetattachperm tinyint(1) NOT NULL default '0' COMMENT '允许设置附件权限',
allowposttag tinyint(1) NOT NULL default '0' COMMENT '允许使用标签',
allowhidecode tinyint(1) NOT NULL default '0' COMMENT '允许使用hide代码',
allowhtml tinyint(1) NOT NULL default '0' COMMENT '允许使用html',
allowanonymous tinyint(1) NOT NULL default '0' COMMENT '允许匿名发帖',
allowsigbbcode tinyint(1) NOT NULL default '0' COMMENT '允许签名使用bbcode',
allowsigimgcode tinyint(1) NOT NULL default '0' COMMENT '允许使用img',
allowmagics tinyint(1) unsigned NOT NULL COMMENT '允许使用道具',
disableperiodctrl tinyint(1) NOT NULL default '0' COMMENT '不受时间段限制',
reasonpm tinyint(1) NOT NULL default '0' COMMENT '操作理由短信通知作者',
maxprice smallint(6) unsigned NOT NULL default '0' COMMENT '主题最大售价',
maxsigsize smallint(6) unsigned NOT NULL default '0' COMMENT '最大签名尺寸',
maxattachsize int(10) unsigned NOT NULL default '0' COMMENT '最大附件尺寸',
maxsizeperday int(10) unsigned NOT NULL default '0' COMMENT '每天最大附件总尺寸',
maxthreadsperhour tinyint(3) unsigned NOT NULL default '0' COMMENT '每小时发主题数限制',
maxpostsperhour tinyint(3) unsigned NOT NULL default '0' COMMENT '每小时发回帖数限制',
attachextensions char(100) NOT NULL default COMMENT '允许发表的附件类型',
raterange char(150) NOT NULL default COMMENT '评分范围',
mintradeprice smallint(6) unsigned NOT NULL default '1' COMMENT '交易最小积分',
maxtradeprice smallint(6) unsigned NOT NULL default '0' COMMENT '交易最大积分',
minrewardprice smallint(6) unsigned NOT NULL default '1' COMMENT '悬赏最小积分',
maxrewardprice smallint(6) unsigned NOT NULL default '0' COMMENT '悬赏最大积分',
magicsdiscount tinyint(1) NOT NULL COMMENT '道具折扣',
maxmagicsweight smallint(6) unsigned NOT NULL COMMENT '道具负载最大值',
allowpostdebate tinyint(1) NOT NULL default '0' COMMENT '允许发表辩论',
tradestick tinyint(1) unsigned NOT NULL COMMENT '可商品推荐数',
exempt tinyint(1) unsigned NOT NULL COMMENT '用户组表达式',
maxattachnum smallint(6) NOT NULL default '0' COMMENT '最大每天附件数量',
allowposturl tinyint(1) NOT NULL default '3' COMMENT '是否允许发送含 url 内容',
allowrecommend tinyint(1) unsigned NOT NULL default '1' COMMENT '是否允许评价主题',
allowpostrushreply TINYINT(1) NOT NULL DEFAULT '0' COMMENT '允许发表抢楼帖',
maxfriendnum smallint(6) unsigned NOT NULL default '0' COMMENT '最多好友数',
maxspacesize int(10) unsigned NOT NULL default '0' COMMENT '空间大小',
allowcomment tinyint(1) NOT NULL default '0' COMMENT '发表留言/评论',
allowcommentarticle smallint(6) NOT NULL default '0' COMMENT '发表文章的评论',
searchinterval smallint(6) unsigned NOT NULL default '0' COMMENT '两次搜索操作间隔',
searchignore tinyint(1) NOT NULL default '0' COMMENT '是否免费搜索',
allowblog tinyint(1) NOT NULL default '0' COMMENT '发表日志',
allowdoing tinyint(1) NOT NULL default '0' COMMENT '发表记录',
allowupload tinyint(1) NOT NULL default '0' COMMENT '上传图片',
allowshare tinyint(1) NOT NULL default '0' COMMENT '发布分享',
allowblogmod tinyint(1) unsigned NOT NULL default '0' COMMENT '发表日志需要审核',
allowdoingmod tinyint(1) unsigned NOT NULL default '0' COMMENT '发表记录需要审核',
allowuploadmod tinyint(1) unsigned NOT NULL default '0' COMMENT '上传图片需要审核',
allowsharemod tinyint(1) unsigned NOT NULL default '0' COMMENT '发布分享需要审核',
allowcss tinyint(1) NOT NULL default '0' COMMENT '允许自定义CSS',
allowpoke tinyint(1) NOT NULL default '0' COMMENT '允许打招呼',
allowfriend tinyint(1) NOT NULL default '0' COMMENT '允许加好友',
allowclick tinyint(1) NOT NULL default '0' COMMENT '允许表态',
allowmagic tinyint(1) NOT NULL default '0' COMMENT '允许使用道具',
allowstat tinyint(1) NOT NULL default '0' COMMENT '允许查看趋势统计',
allowstatdata tinyint(1) NOT NULL default '0' COMMENT '允许查看统计数据报表',
videophotoignore tinyint(1) NOT NULL default '0' COMMENT '视频认证限制',
allowviewvideophoto tinyint(1) NOT NULL default '0' COMMENT '允许查看视频认证',
allowmyop tinyint(1) NOT NULL default '0' COMMENT '允许使用应用',
magicdiscount tinyint(1) NOT NULL default '0' COMMENT '购买道具折扣',
domainlength smallint(6) unsigned NOT NULL default '0' COMMENT '二级域名最短长度',
seccode tinyint(1) NOT NULL default '1' COMMENT '发布操作需填验证码',
disablepostctrl tinyint(1) NOT NULL DEFAULT '0' COMMENT '发表是否受防灌水限制',
allowbuildgroup tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否允许建立群组,0为不允许',
allowgroupdirectpost tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否允许直接在群组中发帖',
allowgroupposturl tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否允许在群组中发站外URL',
edittimelimit smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '编辑帖子时间限制',
allowpostarticle tinyint(1) NOT NULL default '0' COMMENT '允许发布文章',
allowdownlocalimg tinyint(1) NOT NULL default '0' COMMENT '允许下载本地图片',
allowdownremoteimg tinyint(1) NOT NULL default '0' COMMENT '允许下载远程图片',
allowpostarticlemod tinyint(1) unsigned NOT NULL default '0' COMMENT '发布文章是否需要审核',
allowspacediyhtml tinyint(1) NOT NULL default '0' COMMENT '允许自定义模块使用HTML',
allowspacediybbcode tinyint(1) NOT NULL default '0' COMMENT '允许自定义模块使用BBCODE',
allowspacediyimgcode tinyint(1) NOT NULL default '0' COMMENT '允许自定义模块使用[img]',
allowcommentpost tinyint(1) NOT NULL default '2' COMMENT '允许帖子点评 0:禁止 1:楼主 2:回复 3:All',
allowcommentitem tinyint(1) NOT NULL default '0' COMMENT '允许发表点评观点',
allowcommentreply tinyint(1) NOT NULL default '0' COMMENT '允许发表回复点评',
allowreplycredit tinyint(1) NOT NULL default '0' COMMENT '允许设置回帖奖励',
ignorecensor tinyint(1) unsigned NOT NULL default '0' COMMENT '是否忽略要审核的关键字',
allowsendallpm tinyint(1) unsigned NOT NULL default '0' COMMENT '是否不受“只接收好友短消息”设置的限制',
allowsendpmmaxnum smallint(6) unsigned NOT NULL default '0' COMMENT '24小时内允许发短消息的数量',
maximagesize mediumint(8) unsigned NOT NULL default '0' COMMENT '相册中允许最大图片大小',
allowmediacode tinyint(1) NOT NULL default '0' COMMENT '允许使用多媒体代码',
allowat smallint(6) unsigned NOT NULL default '0' COMMENT '允许@用户 0:禁止 n:发帖时@的数量',
allowsetpublishdate tinyint(1) unsigned NOT NULL default '0' COMMENT '允许定时发布主题',
allowfollowcollection tinyint(1) unsigned NOT NULL default '0' COMMENT '允许关注淘专辑数',
allowcommentcollection tinyint(1) unsigned NOT NULL default '0' COMMENT '允许评论淘专辑',
allowcreatecollection smallint(6) unsigned NOT NULL default '0' COMMENT '允许创建淘专辑数',
PRIMARY KEY (groupid)
) ENGINE=MyISAM COMMENT='会员用户组权限表';
DROP TABLE IF EXISTS pre_common_word;
CREATE TABLE pre_common_word (
id smallint(6) unsigned NOT NULL auto_increment COMMENT '词汇id',
admin varchar(15) NOT NULL default COMMENT '管理员名',
type smallint(6) NOT NULL default '1' COMMENT '关键词分类',
find varchar(255) NOT NULL default COMMENT '不良词语',
replacement varchar(255) NOT NULL default COMMENT '替换内容',
extra varchar(255) NOT NULL default ,
PRIMARY KEY (id)
) ENGINE=MyISAM COMMENT='词语过滤表';
DROP TABLE IF EXISTS pre_common_word_type;
CREATE TABLE pre_common_word_type (
id smallint(6) unsigned NOT NULL auto_increment COMMENT '词语过滤分类id',
typename varchar(15) NOT NULL default COMMENT '分类名称',
PRIMARY KEY (id)
) ENGINE=MyISAM COMMENT='词语过滤分类';
DROP TABLE IF EXISTS pre_common_tag;
CREATE TABLE pre_common_tag (
tagid smallint(6) unsigned NOT NULL auto_increment COMMENT '标签id',
tagname char(20) NOT NULL default COMMENT '标签名',
status tinyint(1) NOT NULL default '0' COMMENT '显示状态\n(0:正常 1:关闭 2:推荐 3:用户标签)',
PRIMARY KEY (tagid),
KEY tagname (tagname),
KEY status (status, tagid)
) ENGINE=MyISAM COMMENT='标签表';
DROP TABLE IF EXISTS pre_common_tagitem;
CREATE TABLE pre_common_tagitem (
tagid smallint(6) unsigned NOT NULL default '0' COMMENT '标签id',
itemid mediumint(8) unsigned NOT NULL default '0' COMMENT 'itemid',
idtype char(10) NOT NULL default COMMENT '内容类型',
UNIQUE KEY item (tagid, itemid, idtype),
KEY idtype (idtype, itemid)
) ENGINE=MyISAM COMMENT='标签内容表';
DROP TABLE IF EXISTS pre_forum_access;
CREATE TABLE pre_forum_access (
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
fid mediumint(8) unsigned NOT NULL default '0' COMMENT '论坛id',
allowview tinyint(1) NOT NULL default '0' COMMENT '允许浏览',
allowpost tinyint(1) NOT NULL default '0' COMMENT '允许发表',
allowreply tinyint(1) NOT NULL default '0' COMMENT '允许回复',
allowgetattach tinyint(1) NOT NULL default '0' COMMENT '允许下载附件',
allowgetimage tinyint(1) NOT NULL default '0' COMMENT '允许查看图片',
allowpostattach tinyint(1) NOT NULL default '0' COMMENT '允许上传附件',
allowpostimage tinyint(1) NOT NULL default '0' COMMENT '允许上传图片',
adminuser mediumint(8) unsigned NOT NULL default '0' COMMENT '管理员id',
dateline int(10) unsigned NOT NULL default '0' COMMENT '时间',
PRIMARY KEY (uid,fid),
KEY listorder (fid,dateline)
) ENGINE=MyISAM COMMENT='访问权限表';
DROP TABLE IF EXISTS pre_forum_activity;
CREATE TABLE pre_forum_activity (
tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
aid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题图片id',
cost mediumint(8) unsigned NOT NULL default '0' COMMENT '每人花销',
starttimefrom int(10) unsigned NOT NULL default '0' COMMENT '开始时间',
starttimeto int(10) unsigned NOT NULL default '0' COMMENT '结束时间',
place varchar(255) NOT NULL default COMMENT '地点',
class varchar(255) NOT NULL default COMMENT '类别',
gender tinyint(1) NOT NULL default '0' COMMENT '性别',
number smallint(5) unsigned NOT NULL default '0' COMMENT '人数',
applynumber smallint(5) unsigned NOT NULL default '0' COMMENT '已参加人数',
expiration int(10) unsigned NOT NULL default '0' COMMENT '报名截止日期',
ufield TEXT NOT NULL COMMENT '用户定制项目',
credit smallint(6) unsigned NOT NULL default '0' COMMENT '需消耗的积分',
PRIMARY KEY (tid),
KEY uid (uid,starttimefrom),
KEY starttimefrom (starttimefrom),
KEY expiration (expiration),
KEY applynumber (applynumber)
) ENGINE=MyISAM COMMENT='活动表';
DROP TABLE IF EXISTS pre_forum_activityapply;
CREATE TABLE pre_forum_activityapply (
applyid int(10) unsigned NOT NULL auto_increment COMMENT '申请id',
tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
username varchar(255) NOT NULL default COMMENT '用户名',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
message varchar(255) NOT NULL default COMMENT '消息',
verified tinyint(1) NOT NULL default '0' COMMENT '是否审核通过\n(0:N 1:Y 2:需完善资料)',
dateline int(10) unsigned NOT NULL default '0' COMMENT '申请时间',
payment mediumint(8) NOT NULL default '0' COMMENT '每人花销',
ufielddata TEXT NOT NULL COMMENT '用户定制项目数据',
PRIMARY KEY (applyid),
KEY uid (uid),
KEY tid (tid),
KEY dateline (tid,dateline)
) ENGINE=MyISAM COMMENT='活动申请表';
lookingfor varchar(255) NOT NULL default COMMENT ' 交友目的(交友类型)',
bloodtype varchar(255) NOT NULL default COMMENT '血型',
height varchar(255) NOT NULL default COMMENT ' 身高',
weight varchar(255) NOT NULL default COMMENT ' 体重',
alipay varchar(255) NOT NULL default COMMENT '支付宝帐号',
icq varchar(255) NOT NULL default COMMENT 'ICQ',
qq varchar(255) NOT NULL default COMMENT 'QQ',
yahoo varchar(255) NOT NULL default COMMENT 'YAHOO',
msn varchar(255) NOT NULL default COMMENT 'MSN',
taobao varchar(255) NOT NULL default COMMENT '阿里旺旺',
site varchar(255) NOT NULL default COMMENT '主页',
bio text NOT NULL COMMENT '自我介绍来自论坛bio字段',
interest text NOT NULL COMMENT '兴趣爱好',
field1 text NOT NULL COMMENT '自定义字段1',
field2 text NOT NULL COMMENT '自定义字段2',
field3 text NOT NULL COMMENT '自定义字段3',
field4 text NOT NULL COMMENT '自定义字段4',
field5 text NOT NULL COMMENT '自定义字段5',
field6 text NOT NULL COMMENT '自定义字段6',
field7 text NOT NULL COMMENT '自定义字段7',
field8 text NOT NULL COMMENT '自定义字段8',
PRIMARY KEY (uid)
) ENGINE=MyISAM COMMENT='用户栏目表';
DROP TABLE IF EXISTS pre_common_member_status;
CREATE TABLE pre_common_member_status (
uid mediumint(8) unsigned NOT NULL COMMENT '会员id',
regip char(15) NOT NULL default COMMENT '注册IP',
lastip char(15) NOT NULL default COMMENT '最后登录IP',
lastvisit int(10) unsigned NOT NULL default '0' COMMENT '最后访问',
lastactivity int(10) unsigned NOT NULL default '0' COMMENT '最后活动',
lastpost int(10) unsigned NOT NULL default '0' COMMENT '最后发表',
lastsendmail int(10) unsigned NOT NULL default '0' COMMENT '上次发送email时间 home原字段为lastsend',
invisible tinyint(1) NOT NULL default '0' COMMENT '是否隐身登录',
buyercredit smallint(6) NOT NULL default '0' COMMENT '买家信用等级及积分',
sellercredit smallint(6) NOT NULL default '0' COMMENT '卖家信用等级及积分',
favtimes mediumint(8) unsigned NOT NULL default '0' COMMENT '个人空间收藏次数',
sharetimes mediumint(8) unsigned NOT NULL default '0' COMMENT '个人空间分享次数',
profileprogress tinyint(2) unsigned NOT NULL default '0' COMMENT '个人资料完成度',
PRIMARY KEY (uid),
KEY lastactivity (lastactivity, invisible)
) ENGINE=MyISAM COMMENT='用户状态表';
DROP TABLE IF EXISTS pre_common_member_stat_field;
CREATE TABLE pre_common_member_stat_field (
optionid mediumint(8) unsigned NOT NULL auto_increment COMMENT '资料统计项 id',
fieldid varchar(255) NOT NULL default COMMENT '资料项字段标志符',
fieldvalue varchar(255) NOT NULL default COMMENT '字段值' ,
hash varchar(255) NOT NULL default COMMENT '由fieldid和fieldvalue生成的hash',
users mediumint(8) unsigned NOT NULL default '0' COMMENT '对应用户数',
updatetime int(10) unsigned NOT NULL default '0' COMMENT '更新时间',
PRIMARY KEY (optionid),
KEY fieldid (fieldid)
) ENGINE=MyISAM COMMENT='用户资料统计项';
DROP TABLE IF EXISTS pre_common_member_action_log;
CREATE TABLE pre_common_member_action_log (
id mediumint(8) unsigned NOT NULL auto_increment COMMENT '记录id',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户ID',
`action` tinyint(5) NOT NULL default '0' COMMENT '操作代码',
dateline int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY dateline (dateline, `action`, uid)
) ENGINE=MyISAM COMMENT='用户操作日志表';
DROP TABLE IF EXISTS pre_home_follow;
CREATE TABLE pre_home_follow (
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户ID',
username char(15) NOT NULL default COMMENT '用户名',
followuid mediumint(8) unsigned NOT NULL default '0' COMMENT '被关注用户ID',
fusername char(15) NOT NULL default COMMENT '被关注用户名称',
bkname varchar(255) NOT NULL default COMMENT '用户备注',
`status` tinyint(1) NOT NULL default '0' COMMENT '0:正常 1:特殊关注 -1:不能再关注此人',
mutual tinyint(1) NOT NULL default '0' COMMENT '0:单向 1:已互相关注',
dateline int(10) unsigned NOT NULL default '0',
PRIMARY KEY (uid, followuid)
) ENGINE=MyISAM COMMENT='用户关注关系表';
DROP TABLE IF EXISTS pre_home_follow_feed;
CREATE TABLE pre_home_follow_feed (
feedid mediumint(8) unsigned NOT NULL auto_increment COMMENT '自增id',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '被关注者ID',
username varchar(15) NOT NULL default COMMENT '被关注用户名',
tid mediumint(8) unsigned NOT NULL default '0' COMMENT '帖子tid',
note text NOT NULL COMMENT '转发理由',
dateline int(10) unsigned NOT NULL default '0',
PRIMARY KEY (feedid),
KEY uid (uid, dateline)
) ENGINE=MyISAM COMMENT='被关注者事件表';
DROP TABLE IF EXISTS pre_home_follow_feed_archiver;
CREATE TABLE pre_home_follow_feed_archiver (
feedid mediumint(8) unsigned NOT NULL auto_increment COMMENT '自增id',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '被关注者ID',
username varchar(15) NOT NULL default COMMENT '被关注用户名',
tid mediumint(8) unsigned NOT NULL default '0' COMMENT '帖子tid',
note text NOT NULL COMMENT '转发理由',
dateline int(10) unsigned NOT NULL default '0',
PRIMARY KEY (feedid),
KEY uid (uid, dateline)
) ENGINE=MyISAM COMMENT='被关注者事件存档';
DROP TABLE IF EXISTS pre_common_member_log;
CREATE TABLE pre_common_member_log (
uid mediumint(8) unsigned NOT NULL default '0',
`action` char(10) NOT NULL default COMMENT 'add,update,delete',
dateline int(10) unsigned NOT NULL default '0',
PRIMARY KEY (uid)
) ENGINE=MyISAM COMMENT='漫游用户日志表';
DROP TABLE IF EXISTS pre_common_member_verify;
CREATE TABLE pre_common_member_verify (
uid mediumint(8) unsigned NOT NULL COMMENT '会员id',
verify1 tinyint(1) NOT NULL default '0' COMMENT '认证1: -1:被拒绝 0:待审核 1:审核通过',
verify2 tinyint(1) NOT NULL default '0' COMMENT '认证2: -1:被拒绝 0:待审核 1:审核通过',
verify3 tinyint(1) NOT NULL default '0' COMMENT '认证3: -1:被拒绝 0:待审核 1:审核通过',
verify4 tinyint(1) NOT NULL default '0' COMMENT '认证4: -1:被拒绝 0:待审核 1:审核通过',
verify5 tinyint(1) NOT NULL default '0' COMMENT '认证5: -1:被拒绝 0:待审核 1:审核通过',
verify6 tinyint(1) NOT NULL default '0' COMMENT '实名认证: -1:被拒绝 0:待审核 1:审核通过',
verify7 tinyint(1) NOT NULL default '0' COMMENT '视频认证: -1:被拒绝 0:待审核 1:审核通过',
PRIMARY KEY (uid),
KEY verify1 (verify1),
KEY verify2 (verify2),
KEY verify3 (verify3),
KEY verify4 (verify4),
KEY verify5 (verify5),
KEY verify6 (verify6),
KEY verify7 (verify7)
) ENGINE=MyISAM COMMENT='用户认证表';
DROP TABLE IF EXISTS pre_common_member_verify_info;
CREATE TABLE pre_common_member_verify_info (
vid mediumint(8) unsigned NOT NULL auto_increment COMMENT '审核id',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
username varchar(30) NOT NULL default COMMENT '用户名',
verifytype tinyint(1) NOT NULL default '0' COMMENT '审核类型0:资料审核, 1:认证1, 2:认证2, 3:认证3, 4:认证4, 5:认证5',
flag tinyint(1) NOT NULL default '0' COMMENT '-1:被拒绝 0:待审核 1:审核通过',
field text NOT NULL COMMENT '序列化存储变化值',
dateline int(10) unsigned NOT NULL default '0' COMMENT '提交日期',
PRIMARY KEY (vid),
KEY verifytype (verifytype, flag),
KEY uid (uid, verifytype, dateline)
) ENGINE=MyISAM COMMENT='个人信息修改审核';
DROP TABLE IF EXISTS pre_common_member_profile_setting;
CREATE TABLE pre_common_member_profile_setting (
fieldid varchar(255) NOT NULL default COMMENT 'profile字段标志符',
available tinyint(1) NOT NULL default '0' COMMENT '是否可用',
invisible tinyint(1) NOT NULL default '0' COMMENT '是否隐藏',
needverify tinyint(1) NOT NULL default '0' COMMENT '是否需要审核',
title varchar(255) NOT NULL default COMMENT '栏目标题',
description varchar(255) NOT NULL default COMMENT '解释说明',
displayorder smallint(6) unsigned NOT NULL default '0' COMMENT '显示顺序',
required tinyint(1) NOT NULL default '0' COMMENT '是否必填内容',
unchangeable tinyint(1) NOT NULL default '0' COMMENT '不可修改',
showincard tinyint(1) NOT NULL default '0' COMMENT '在名片中显示',
showinthread tinyint(1) NOT NULL default '0' COMMENT '在帖子中显示',
showinregister tinyint(1) NOT NULL default '0' COMMENT '是否在注册页面显示',
allowsearch tinyint(1) NOT NULL default '0' COMMENT '是否可搜索',
formtype varchar(255) NOT NULL COMMENT '表单元素类型',
size smallint(6) unsigned NOT NULL default '0' COMMENT '内容最大长度',
choices text NOT NULL COMMENT '选填内容',
validate text NOT NULL COMMENT '验证数据的正则表达式',
PRIMARY KEY (fieldid)
) ENGINE=MyISAM COMMENT='个人信息扩展表';
DROP TABLE IF EXISTS pre_common_member_security;
CREATE TABLE pre_common_member_security (
securityid mediumint(8) unsigned NOT NULL auto_increment COMMENT '审核项id',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
username varchar(255) NOT NULL default COMMENT '用户名',
fieldid varchar(255) NOT NULL default COMMENT 'profile字段标志符',
oldvalue text NOT NULL COMMENT '旧的profile字段值',
newvalue text NOT NULL COMMENT '新的profile字段值',
dateline int(10) unsigned NOT NULL default '0' COMMENT '提交日期',
PRIMARY KEY (securityid),
KEY uid (uid, fieldid),
KEY dateline (dateline)
) ENGINE=MyISAM COMMENT='个人信息修改审核';
DROP TABLE IF EXISTS pre_common_member_validate;
CREATE TABLE pre_common_member_validate (
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
submitdate int(10) unsigned NOT NULL default '0' COMMENT '提交日期',
moddate int(10) unsigned NOT NULL default '0' COMMENT '审核日期',
admin varchar(15) NOT NULL default COMMENT '管理员名',
submittimes tinyint(3) unsigned NOT NULL default '0' COMMENT '提交的次数',
`status` tinyint(1) NOT NULL default '0' COMMENT '状态',
message text NOT NULL COMMENT '注册原因',
remark text NOT NULL COMMENT '管理员留言',
PRIMARY KEY (uid),
KEY `status` (`status`)
) ENGINE=MyISAM COMMENT='用户审核表';
DROP TABLE IF EXISTS pre_common_member_crime;
CREATE TABLE pre_common_member_crime (
cid mediumint(8) unsigned NOT NULL auto_increment COMMENT '自增id',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '被惩罚操作的用户id',
operatorid mediumint(8) unsigned NOT NULL default '0' COMMENT '进行惩罚操作的用户id',
operator varchar(15) NOT NULL COMMENT '进行惩罚操作的用户名',
`action` tinyint(5) NOT NULL COMMENT '惩罚行为',
reason text NOT NULL COMMENT '惩罚理由',
dateline int(10) unsigned NOT NULL default '0' COMMENT '惩罚操作时间',
PRIMARY KEY (cid),
KEY uid (uid,`action`,dateline)
) ENGINE=MyISAM COMMENT='用户惩罚操作表';
DROP TABLE IF EXISTS pre_common_member_grouppm;
CREATE TABLE pre_common_member_grouppm (
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
gpmid smallint(6) unsigned NOT NULL auto_increment COMMENT '消息id',
status tinyint(1) NOT NULL default '0' COMMENT '0=未读 1=已读 -1=删除',
dateline int(10) unsigned NOT NULL default '0' COMMENT '阅读时间',
PRIMARY KEY (uid, gpmid)
) ENGINE=MyISAM COMMENT='群发短消息用户记录表';
DROP TABLE IF EXISTS pre_common_grouppm;
CREATE TABLE pre_common_grouppm (
id smallint(6) unsigned NOT NULL auto_increment COMMENT '消息id',
authorid mediumint(8) unsigned NOT NULL default '0' COMMENT '作者id',
author varchar(15) NOT NULL default COMMENT '作者姓名',
dateline int(10) unsigned NOT NULL default '0' COMMENT '时间',
message text NOT NULL COMMENT '消息',
numbers mediumint(8) unsigned NOT NULL default '0' COMMENT '数量',
PRIMARY KEY (id)
) ENGINE=MyISAM COMMENT='群发短消息表';
DROP TABLE IF EXISTS pre_common_myapp;
CREATE TABLE pre_common_myapp (
appid mediumint(8) unsigned NOT NULL default '0' COMMENT '应用id',
appname varchar(60) NOT NULL default COMMENT '应用名称',
narrow tinyint(1) NOT NULL default '0' COMMENT '是否显示为窄的profile box',
flag tinyint(1) NOT NULL default '0' COMMENT '应用状态(黑白名单、默认应用等)',
version mediumint(8) unsigned NOT NULL default '0' COMMENT '应用版本号',
userpanelarea tinyint(1) NOT NULL default '0' COMMENT 'userabout显示区域、1主区、2、副区、3应用区',
canvastitle varchar(60) NOT NULL default COMMENT 'canvas页面标题',
fullscreen tinyint(1) NOT NULL default '0' COMMENT '是否是全屏应用',
displayuserpanel tinyint(1) NOT NULL default '0' COMMENT '是否显示应用右侧的用户菜单',
displaymethod tinyint(1) NOT NULL default '0' COMMENT '显示方式(iframe/myml)',
displayorder smallint(6) unsigned NOT NULL default '0' COMMENT '显示顺序',
appstatus tinyint(2) NOT NULL default '0' COMMENT '标识应用1:新、2:热',
iconstatus tinyint(2) NOT NULL default '0' COMMENT '应用图标是否已下载到本地。-1:失败;0:未下载;1:已下载',
icondowntime int(10) unsigned NOT NULL default '0' COMMENT '应用图标下载到本地时间',
PRIMARY KEY (appid),
KEY flag (flag,displayorder)
) ENGINE=MyISAM COMMENT='漫游应用表';
DROP TABLE IF EXISTS pre_common_myinvite;
CREATE TABLE pre_common_myinvite (
id mediumint(8) unsigned NOT NULL auto_increment COMMENT '邀请id',
typename varchar(100) NOT NULL default COMMENT '邀请名称',
appid mediumint(8) NOT NULL default '0' COMMENT '应用id',
`type` tinyint(1) NOT NULL default '0' COMMENT '类型(request 邀请/invite 请求)',
fromuid mediumint(8) unsigned NOT NULL default '0' COMMENT '邀请者id',
touid mediumint(8) unsigned NOT NULL default '0' COMMENT '接收者id',
myml text NOT NULL COMMENT '邀请内容',
dateline int(10) unsigned NOT NULL default '0' COMMENT '发送邀请的时间戳',
`hash` int(10) unsigned NOT NULL default '0' COMMENT 'hash标记',
PRIMARY KEY (id),
KEY `hash` (`hash`),
KEY uid (touid,dateline)
) ENGINE=MyISAM COMMENT='用户邀请表';
DROP TABLE IF EXISTS pre_common_nav;
CREATE TABLE pre_common_nav (
id smallint(6) unsigned NOT NULL auto_increment COMMENT '项目id',
parentid smallint(6) unsigned NOT NULL default '0' COMMENT '父 id(navtype=0)',
`name` varchar(255) NOT NULL COMMENT '导航名称',
title varchar(255) NOT NULL COMMENT '导航说明',
url varchar(255) NOT NULL COMMENT '导航链接',
identifier varchar(255) NOT NULL COMMENT '链接标识/相关ID',
target tinyint(1) NOT NULL default '0' COMMENT '目标框架\n(0:本窗口 1:新窗口)',
`type` tinyint(1) NOT NULL default '0' COMMENT '类型 0 系统 1 自定义 3 插件 4 频道',
available tinyint(1) NOT NULL default '0' COMMENT '是否可用',
displayorder tinyint(3) NOT NULL COMMENT '显示顺序',
highlight tinyint(1) NOT NULL default '0' COMMENT '样式(navtype=0)',
`level` tinyint(1) NOT NULL default '0' COMMENT '使用等级\n(0:游客 1:会员 2:版主 3:管理员)',
`subtype` tinyint(1) NOT NULL DEFAULT '0' COMMENT '二级导航样式(navtype=0) 顶部导航位置(navtype=4)',
`subcols` tinyint(1) NOT NULL DEFAULT '0' COMMENT '横排一行显示的条目数(navtype=0)',
`icon` varchar(255) NOT NULL COMMENT '图标地址(navtype=1、3)',
`subname` varchar(255) NOT NULL COMMENT '副导航名称(navtype=1)',
`suburl` varchar(255) NOT NULL COMMENT '副导航地址(navtype=1)',
`navtype` tinyint(1) NOT NULL default '0' COMMENT '导航类型\n(0:主导航 1:底部导航 2:家园导航 3:快捷导航 4:顶部导航)',
logo varchar(255) NOT NULL COMMENT '自定义 Logo',
PRIMARY KEY (id),
KEY `navtype` (`navtype`)
) ENGINE=MyISAM COMMENT='自定义导航栏表';
DROP TABLE IF EXISTS pre_common_onlinetime;
CREATE TABLE pre_common_onlinetime (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
thismonth smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '本月在线时间',
total mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '总在线时间',
lastupdate int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid)
) ENGINE=MyISAM COMMENT='在线时间表';
DROP TABLE IF EXISTS pre_common_regip;
CREATE TABLE pre_common_regip (
ip char(15) NOT NULL default COMMENT 'IP地址',
dateline int(10) unsigned NOT NULL default '0' COMMENT '限制时间',
count smallint(6) NOT NULL default '0' COMMENT '限制数量',
KEY ip (ip)
) ENGINE=MyISAM COMMENT='注册IP限制表';
DROP TABLE IF EXISTS pre_common_secquestion;
CREATE TABLE pre_common_secquestion (
id smallint(6) unsigned NOT NULL auto_increment COMMENT '验证问题id',
`type` tinyint(1) unsigned NOT NULL COMMENT '验证问题类型',
question text NOT NULL COMMENT '验证问题',
answer varchar(255) NOT NULL COMMENT '问题答案',
PRIMARY KEY (id)
) ENGINE=MyISAM COMMENT='验证问题数据表';
DROP TABLE IF EXISTS pre_common_session;
CREATE TABLE pre_common_session (
sid char(6) NOT NULL default COMMENT 'sid',
ip1 tinyint(3) unsigned NOT NULL default '0' COMMENT 'IP段',
ip2 tinyint(3) unsigned NOT NULL default '0' COMMENT 'IP段',
ip3 tinyint(3) unsigned NOT NULL default '0' COMMENT 'IP段',
ip4 tinyint(3) unsigned NOT NULL default '0' COMMENT 'IP段',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
username char(15) NOT NULL default COMMENT '会员名',
groupid smallint(6) unsigned NOT NULL default '0' COMMENT '会员组',
invisible tinyint(1) NOT NULL default '0' COMMENT '是否隐身登录',
`action` tinyint(1) unsigned NOT NULL default '0' COMMENT '当前动作',
lastactivity int(10) unsigned NOT NULL default '0' COMMENT '最后活动时间',
lastolupdate int(10) unsigned NOT NULL default '0' COMMENT '在线时间最后更新',
fid mediumint(8) unsigned NOT NULL default '0' COMMENT '论坛id',
tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
UNIQUE KEY sid (sid),
KEY uid (uid)
) ENGINE=MEMORY COMMENT='会员认证表';
DROP TABLE IF EXISTS pre_common_setting;
CREATE TABLE pre_common_setting (
skey varchar(255) NOT NULL default COMMENT '变量名',
svalue text NOT NULL COMMENT '值',
PRIMARY KEY (skey)
) ENGINE=MyISAM COMMENT='设置表';
DROP TABLE IF EXISTS pre_common_smiley;
CREATE TABLE pre_common_smiley (
id smallint(6) unsigned NOT NULL auto_increment COMMENT '表情id',
typeid smallint(6) unsigned NOT NULL COMMENT '表情分类 id',
displayorder tinyint(1) NOT NULL default '0' COMMENT '显示顺序',
`type` enum('smiley','stamp','stamplist') NOT NULL default 'smiley' COMMENT '类型',
`code` varchar(30) NOT NULL default COMMENT '标记',
url varchar(30) NOT NULL default COMMENT '路径',
PRIMARY KEY (id),
KEY `type` (`type`, displayorder)
) ENGINE=MyISAM COMMENT='表情表';
DROP TABLE IF EXISTS pre_common_stat;
CREATE TABLE pre_common_stat (
daytime int(10) unsigned NOT NULL default '0' COMMENT '时间',
login int(10) unsigned NOT NULL default '0' COMMENT '登陆',
mobilelogin int(10) unsigned NOT NULL default '0' COMMENT '手机登陆',
connectlogin int(10) unsigned NOT NULL default '0' COMMENT 'QQConnect登陆',
register int(10) unsigned NOT NULL default '0' COMMENT '注册',
invite int(10) unsigned NOT NULL default '0' COMMENT '邀请',
appinvite int(10) unsigned NOT NULL default '0' COMMENT '应用邀请',
doing int(10) unsigned NOT NULL default '0' COMMENT '记录',
blog int(10) unsigned NOT NULL default '0' COMMENT '日志',
pic int(10) unsigned NOT NULL default '0' COMMENT '图片',
poll int(10) unsigned NOT NULL default '0' COMMENT '投票',
activity int(10) unsigned NOT NULL default '0' COMMENT '活动',
`share` int(10) unsigned NOT NULL default '0' COMMENT '分享',
thread int(10) unsigned NOT NULL default '0' COMMENT '主题',
docomment int(10) unsigned NOT NULL default '0' COMMENT '记录评论',
blogcomment int(10) unsigned NOT NULL default '0' COMMENT '日志评论',
piccomment int(10) unsigned NOT NULL default '0' COMMENT '图片评论',
sharecomment int(10) unsigned NOT NULL default '0' COMMENT '分享评论',
reward int(10) unsigned NOT NULL default '0' COMMENT '悬赏',
debate int(10) unsigned NOT NULL default '0' COMMENT '辩论',
trade int(10) unsigned NOT NULL default '0' COMMENT '商品',
`group` int(10) unsigned NOT NULL default '0' COMMENT '群组',
groupjoin int(10) unsigned NOT NULL default '0' COMMENT '参与群组',
groupthread int(10) unsigned NOT NULL default '0' COMMENT '群组主题',
grouppost int(10) unsigned NOT NULL default '0' COMMENT '群组回复',
post int(10) unsigned NOT NULL default '0' COMMENT '主题回复',
wall int(10) unsigned NOT NULL default '0' COMMENT '留言',
poke int(10) unsigned NOT NULL default '0' COMMENT '打招呼',
click int(10) unsigned NOT NULL default '0' COMMENT '表态',
sendpm int(10) unsigned NOT NULL default '0' COMMENT '发送PM',
friend int(10) unsigned NOT NULL default '0' COMMENT '成为好友',
addfriend int(10) unsigned NOT NULL default '0' COMMENT '好友请求',
PRIMARY KEY (daytime)
) ENGINE=MyISAM COMMENT='趋势统计';
DROP TABLE IF EXISTS pre_common_statuser;
CREATE TABLE pre_common_statuser (
uid mediumint(8) unsigned NOT NULL default '0',
daytime int(10) unsigned NOT NULL default '0',
`type` char(20) NOT NULL default COMMENT '各种用户行为如:invite、register、login...',
KEY uid (uid)
) ENGINE=MyISAM COMMENT='统计用户表';
DROP TABLE IF EXISTS pre_common_style;
CREATE TABLE pre_common_style (
styleid smallint(6) unsigned NOT NULL auto_increment COMMENT '风格id',
`name` varchar(20) NOT NULL default COMMENT '风格名称',
available tinyint(1) NOT NULL default '1' COMMENT '风格是否可用',
templateid smallint(6) unsigned NOT NULL default '0' COMMENT '对应模板id',
extstyle varchar(255) NOT NULL default COMMENT '配色',
PRIMARY KEY (styleid)
) ENGINE=MyISAM COMMENT='风格表';
DROP TABLE IF EXISTS pre_common_stylevar;
CREATE TABLE pre_common_stylevar (
stylevarid smallint(6) unsigned NOT NULL auto_increment COMMENT '风格变量id',
styleid smallint(6) unsigned NOT NULL default '0' COMMENT '风格id',
variable text NOT NULL COMMENT '变量名',
substitute text NOT NULL COMMENT '变量赋值',
PRIMARY KEY (stylevarid),
KEY styleid (styleid)
) ENGINE=MyISAM COMMENT='风格变量表';
DROP TABLE IF EXISTS pre_common_syscache;
CREATE TABLE pre_common_syscache (
cname varchar(32) NOT NULL COMMENT '缓存名称',
`ctype` tinyint(3) unsigned NOT NULL COMMENT '缓存类型 0=value, serialize=1',
dateline int(10) unsigned NOT NULL COMMENT '缓存生成时间',
`data` mediumblob NOT NULL COMMENT '缓存数据',
PRIMARY KEY (cname)
) ENGINE=MyISAM COMMENT='缓存数据表';
DROP TABLE IF EXISTS pre_common_template;
CREATE TABLE pre_common_template (
templateid smallint(6) unsigned NOT NULL auto_increment COMMENT '模板id',
`name` varchar(30) NOT NULL default COMMENT '名称',
`directory` varchar(100) NOT NULL default COMMENT '目录',
copyright varchar(100) NOT NULL default COMMENT '版权',
PRIMARY KEY (templateid)
) ENGINE=MyISAM COMMENT='模板表';
DROP TABLE IF EXISTS pre_common_usergroup;
CREATE TABLE pre_common_usergroup (
groupid smallint(6) unsigned NOT NULL auto_increment COMMENT '会员组id',
radminid tinyint(3) NOT NULL default '0' COMMENT '关联关管理组',
`type` enum('system','special','member') NOT NULL default 'member' COMMENT '类型',
system varchar(255) NOT NULL default 'private' COMMENT '会员是否可以自由进出',
grouptitle varchar(255) NOT NULL default COMMENT '组头衔',
creditshigher int(10) NOT NULL default '0' COMMENT '该组的积分上限',
creditslower int(10) NOT NULL default '0' COMMENT '该组的积分下限',
stars tinyint(3) NOT NULL default '0' COMMENT '星星数量',
color varchar(255) NOT NULL default COMMENT '组头衔颜色',
icon varchar(255) NOT NULL default ,
allowvisit tinyint(1) NOT NULL default '0' COMMENT '允许访问',
allowsendpm tinyint(1) NOT NULL default '1' COMMENT '是否允许发送短信息',
allowinvite tinyint(1) NOT NULL default '0' COMMENT '允许使用邀请注册',
allowmailinvite tinyint(1) NOT NULL default '0' COMMENT '允许通过论坛邮件系统发送邀请码',
maxinvitenum tinyint(3) unsigned NOT NULL default '0' COMMENT '最大邀请码拥有数量',
inviteprice smallint(6) unsigned NOT NULL default '0' COMMENT '邀请码购买价格',
maxinviteday smallint(6) unsigned NOT NULL default '0' COMMENT '邀请码有效期',
PRIMARY KEY (groupid),
KEY creditsrange (creditshigher,creditslower)
) ENGINE=MyISAM COMMENT='用户组表';
DROP TABLE IF EXISTS pre_common_usergroup_field;
CREATE TABLE pre_common_usergroup_field (
groupid smallint(6) unsigned NOT NULL COMMENT '会员组id',
readaccess tinyint(3) unsigned NOT NULL default '0' COMMENT '阅读权限',
allowpost tinyint(1) NOT NULL default '0' COMMENT '允许发帖',
allowreply tinyint(1) NOT NULL default '0' COMMENT '允许回复',
allowpostpoll tinyint(1) NOT NULL default '0' COMMENT '允许发表投票',
allowpostreward tinyint(1) NOT NULL default '0' COMMENT '允许发表悬赏',
allowposttrade tinyint(1) NOT NULL default '0' COMMENT '允许发表交易',
allowpostactivity tinyint(1) NOT NULL default '0' COMMENT '允许发表活动',
allowdirectpost tinyint(1) NOT NULL default '0' COMMENT '是否需要审核',
allowgetattach tinyint(1) NOT NULL default '0' COMMENT '允许下载附件',
allowgetimage tinyint(1) NOT NULL default '0' COMMENT '允许查看图片',
allowpostattach tinyint(1) NOT NULL default '0' COMMENT '允许上传附件',
allowpostimage tinyint(1) NOT NULL default '0' COMMENT '允许上传图片',
allowvote tinyint(1) NOT NULL default '0' COMMENT '允许参与投票',
allowsearch tinyint(1) NOT NULL default '0' COMMENT '允许搜索',
allowcstatus tinyint(1) NOT NULL default '0' COMMENT '允许自定义头衔',
allowinvisible tinyint(1) NOT NULL default '0' COMMENT '允许隐身登录',
allowtransfer tinyint(1) NOT NULL default '0' COMMENT '允许积分转帐',
allowsetreadperm tinyint(1) NOT NULL default '0' COMMENT '允许设置阅读权限',
allowsetattachperm tinyint(1) NOT NULL default '0' COMMENT '允许设置附件权限',
allowposttag tinyint(1) NOT NULL default '0' COMMENT '允许使用标签',
allowhidecode tinyint(1) NOT NULL default '0' COMMENT '允许使用hide代码',
allowhtml tinyint(1) NOT NULL default '0' COMMENT '允许使用html',
allowanonymous tinyint(1) NOT NULL default '0' COMMENT '允许匿名发帖',
allowsigbbcode tinyint(1) NOT NULL default '0' COMMENT '允许签名使用bbcode',
allowsigimgcode tinyint(1) NOT NULL default '0' COMMENT '允许使用img',
allowmagics tinyint(1) unsigned NOT NULL COMMENT '允许使用道具',
disableperiodctrl tinyint(1) NOT NULL default '0' COMMENT '不受时间段限制',
reasonpm tinyint(1) NOT NULL default '0' COMMENT '操作理由短信通知作者',
maxprice smallint(6) unsigned NOT NULL default '0' COMMENT '主题最大售价',
maxsigsize smallint(6) unsigned NOT NULL default '0' COMMENT '最大签名尺寸',
maxattachsize int(10) unsigned NOT NULL default '0' COMMENT '最大附件尺寸',
maxsizeperday int(10) unsigned NOT NULL default '0' COMMENT '每天最大附件总尺寸',
maxthreadsperhour tinyint(3) unsigned NOT NULL default '0' COMMENT '每小时发主题数限制',
maxpostsperhour tinyint(3) unsigned NOT NULL default '0' COMMENT '每小时发回帖数限制',
attachextensions char(100) NOT NULL default COMMENT '允许发表的附件类型',
raterange char(150) NOT NULL default COMMENT '评分范围',
mintradeprice smallint(6) unsigned NOT NULL default '1' COMMENT '交易最小积分',
maxtradeprice smallint(6) unsigned NOT NULL default '0' COMMENT '交易最大积分',
minrewardprice smallint(6) unsigned NOT NULL default '1' COMMENT '悬赏最小积分',
maxrewardprice smallint(6) unsigned NOT NULL default '0' COMMENT '悬赏最大积分',
magicsdiscount tinyint(1) NOT NULL COMMENT '道具折扣',
maxmagicsweight smallint(6) unsigned NOT NULL COMMENT '道具负载最大值',
allowpostdebate tinyint(1) NOT NULL default '0' COMMENT '允许发表辩论',
tradestick tinyint(1) unsigned NOT NULL COMMENT '可商品推荐数',
exempt tinyint(1) unsigned NOT NULL COMMENT '用户组表达式',
maxattachnum smallint(6) NOT NULL default '0' COMMENT '最大每天附件数量',
allowposturl tinyint(1) NOT NULL default '3' COMMENT '是否允许发送含 url 内容',
allowrecommend tinyint(1) unsigned NOT NULL default '1' COMMENT '是否允许评价主题',
allowpostrushreply TINYINT(1) NOT NULL DEFAULT '0' COMMENT '允许发表抢楼帖',
maxfriendnum smallint(6) unsigned NOT NULL default '0' COMMENT '最多好友数',
maxspacesize int(10) unsigned NOT NULL default '0' COMMENT '空间大小',
allowcomment tinyint(1) NOT NULL default '0' COMMENT '发表留言/评论',
allowcommentarticle smallint(6) NOT NULL default '0' COMMENT '发表文章的评论',
searchinterval smallint(6) unsigned NOT NULL default '0' COMMENT '两次搜索操作间隔',
searchignore tinyint(1) NOT NULL default '0' COMMENT '是否免费搜索',
allowblog tinyint(1) NOT NULL default '0' COMMENT '发表日志',
allowdoing tinyint(1) NOT NULL default '0' COMMENT '发表记录',
allowupload tinyint(1) NOT NULL default '0' COMMENT '上传图片',
allowshare tinyint(1) NOT NULL default '0' COMMENT '发布分享',
allowblogmod tinyint(1) unsigned NOT NULL default '0' COMMENT '发表日志需要审核',
allowdoingmod tinyint(1) unsigned NOT NULL default '0' COMMENT '发表记录需要审核',
allowuploadmod tinyint(1) unsigned NOT NULL default '0' COMMENT '上传图片需要审核',
allowsharemod tinyint(1) unsigned NOT NULL default '0' COMMENT '发布分享需要审核',
allowcss tinyint(1) NOT NULL default '0' COMMENT '允许自定义CSS',
allowpoke tinyint(1) NOT NULL default '0' COMMENT '允许打招呼',
allowfriend tinyint(1) NOT NULL default '0' COMMENT '允许加好友',
allowclick tinyint(1) NOT NULL default '0' COMMENT '允许表态',
allowmagic tinyint(1) NOT NULL default '0' COMMENT '允许使用道具',
allowstat tinyint(1) NOT NULL default '0' COMMENT '允许查看趋势统计',
allowstatdata tinyint(1) NOT NULL default '0' COMMENT '允许查看统计数据报表',
videophotoignore tinyint(1) NOT NULL default '0' COMMENT '视频认证限制',
allowviewvideophoto tinyint(1) NOT NULL default '0' COMMENT '允许查看视频认证',
allowmyop tinyint(1) NOT NULL default '0' COMMENT '允许使用应用',
magicdiscount tinyint(1) NOT NULL default '0' COMMENT '购买道具折扣',
domainlength smallint(6) unsigned NOT NULL default '0' COMMENT '二级域名最短长度',
seccode tinyint(1) NOT NULL default '1' COMMENT '发布操作需填验证码',
disablepostctrl tinyint(1) NOT NULL DEFAULT '0' COMMENT '发表是否受防灌水限制',
allowbuildgroup tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否允许建立群组,0为不允许',
allowgroupdirectpost tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否允许直接在群组中发帖',
allowgroupposturl tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否允许在群组中发站外URL',
edittimelimit smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '编辑帖子时间限制',
allowpostarticle tinyint(1) NOT NULL default '0' COMMENT '允许发布文章',
allowdownlocalimg tinyint(1) NOT NULL default '0' COMMENT '允许下载本地图片',
allowdownremoteimg tinyint(1) NOT NULL default '0' COMMENT '允许下载远程图片',
allowpostarticlemod tinyint(1) unsigned NOT NULL default '0' COMMENT '发布文章是否需要审核',
allowspacediyhtml tinyint(1) NOT NULL default '0' COMMENT '允许自定义模块使用HTML',
allowspacediybbcode tinyint(1) NOT NULL default '0' COMMENT '允许自定义模块使用BBCODE',
allowspacediyimgcode tinyint(1) NOT NULL default '0' COMMENT '允许自定义模块使用[img]',
allowcommentpost tinyint(1) NOT NULL default '2' COMMENT '允许帖子点评 0:禁止 1:楼主 2:回复 3:All',
allowcommentitem tinyint(1) NOT NULL default '0' COMMENT '允许发表点评观点',
allowcommentreply tinyint(1) NOT NULL default '0' COMMENT '允许发表回复点评',
allowreplycredit tinyint(1) NOT NULL default '0' COMMENT '允许设置回帖奖励',
ignorecensor tinyint(1) unsigned NOT NULL default '0' COMMENT '是否忽略要审核的关键字',
allowsendallpm tinyint(1) unsigned NOT NULL default '0' COMMENT '是否不受“只接收好友短消息”设置的限制',
allowsendpmmaxnum smallint(6) unsigned NOT NULL default '0' COMMENT '24小时内允许发短消息的数量',
maximagesize mediumint(8) unsigned NOT NULL default '0' COMMENT '相册中允许最大图片大小',
allowmediacode tinyint(1) NOT NULL default '0' COMMENT '允许使用多媒体代码',
allowat smallint(6) unsigned NOT NULL default '0' COMMENT '允许@用户 0:禁止 n:发帖时@的数量',
allowsetpublishdate tinyint(1) unsigned NOT NULL default '0' COMMENT '允许定时发布主题',
allowfollowcollection tinyint(1) unsigned NOT NULL default '0' COMMENT '允许关注淘专辑数',
allowcommentcollection tinyint(1) unsigned NOT NULL default '0' COMMENT '允许评论淘专辑',
allowcreatecollection smallint(6) unsigned NOT NULL default '0' COMMENT '允许创建淘专辑数',
PRIMARY KEY (groupid)
) ENGINE=MyISAM COMMENT='会员用户组权限表';
DROP TABLE IF EXISTS pre_common_word;
CREATE TABLE pre_common_word (
id smallint(6) unsigned NOT NULL auto_increment COMMENT '词汇id',
admin varchar(15) NOT NULL default COMMENT '管理员名',
type smallint(6) NOT NULL default '1' COMMENT '关键词分类',
find varchar(255) NOT NULL default COMMENT '不良词语',
replacement varchar(255) NOT NULL default COMMENT '替换内容',
extra varchar(255) NOT NULL default ,
PRIMARY KEY (id)
) ENGINE=MyISAM COMMENT='词语过滤表';
DROP TABLE IF EXISTS pre_common_word_type;
CREATE TABLE pre_common_word_type (
id smallint(6) unsigned NOT NULL auto_increment COMMENT '词语过滤分类id',
typename varchar(15) NOT NULL default COMMENT '分类名称',
PRIMARY KEY (id)
) ENGINE=MyISAM COMMENT='词语过滤分类';
DROP TABLE IF EXISTS pre_common_tag;
CREATE TABLE pre_common_tag (
tagid smallint(6) unsigned NOT NULL auto_increment COMMENT '标签id',
tagname char(20) NOT NULL default COMMENT '标签名',
status tinyint(1) NOT NULL default '0' COMMENT '显示状态\n(0:正常 1:关闭 2:推荐 3:用户标签)',
PRIMARY KEY (tagid),
KEY tagname (tagname),
KEY status (status, tagid)
) ENGINE=MyISAM COMMENT='标签表';
DROP TABLE IF EXISTS pre_common_tagitem;
CREATE TABLE pre_common_tagitem (
tagid smallint(6) unsigned NOT NULL default '0' COMMENT '标签id',
itemid mediumint(8) unsigned NOT NULL default '0' COMMENT 'itemid',
idtype char(10) NOT NULL default COMMENT '内容类型',
UNIQUE KEY item (tagid, itemid, idtype),
KEY idtype (idtype, itemid)
) ENGINE=MyISAM COMMENT='标签内容表';
DROP TABLE IF EXISTS pre_forum_access;
CREATE TABLE pre_forum_access (
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
fid mediumint(8) unsigned NOT NULL default '0' COMMENT '论坛id',
allowview tinyint(1) NOT NULL default '0' COMMENT '允许浏览',
allowpost tinyint(1) NOT NULL default '0' COMMENT '允许发表',
allowreply tinyint(1) NOT NULL default '0' COMMENT '允许回复',
allowgetattach tinyint(1) NOT NULL default '0' COMMENT '允许下载附件',
allowgetimage tinyint(1) NOT NULL default '0' COMMENT '允许查看图片',
allowpostattach tinyint(1) NOT NULL default '0' COMMENT '允许上传附件',
allowpostimage tinyint(1) NOT NULL default '0' COMMENT '允许上传图片',
adminuser mediumint(8) unsigned NOT NULL default '0' COMMENT '管理员id',
dateline int(10) unsigned NOT NULL default '0' COMMENT '时间',
PRIMARY KEY (uid,fid),
KEY listorder (fid,dateline)
) ENGINE=MyISAM COMMENT='访问权限表';
DROP TABLE IF EXISTS pre_forum_activity;
CREATE TABLE pre_forum_activity (
tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
aid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题图片id',
cost mediumint(8) unsigned NOT NULL default '0' COMMENT '每人花销',
starttimefrom int(10) unsigned NOT NULL default '0' COMMENT '开始时间',
starttimeto int(10) unsigned NOT NULL default '0' COMMENT '结束时间',
place varchar(255) NOT NULL default COMMENT '地点',
class varchar(255) NOT NULL default COMMENT '类别',
gender tinyint(1) NOT NULL default '0' COMMENT '性别',
number smallint(5) unsigned NOT NULL default '0' COMMENT '人数',
applynumber smallint(5) unsigned NOT NULL default '0' COMMENT '已参加人数',
expiration int(10) unsigned NOT NULL default '0' COMMENT '报名截止日期',
ufield TEXT NOT NULL COMMENT '用户定制项目',
credit smallint(6) unsigned NOT NULL default '0' COMMENT '需消耗的积分',
PRIMARY KEY (tid),
KEY uid (uid,starttimefrom),
KEY starttimefrom (starttimefrom),
KEY expiration (expiration),
KEY applynumber (applynumber)
) ENGINE=MyISAM COMMENT='活动表';
DROP TABLE IF EXISTS pre_forum_activityapply;
CREATE TABLE pre_forum_activityapply (
applyid int(10) unsigned NOT NULL auto_increment COMMENT '申请id',
tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
username varchar(255) NOT NULL default COMMENT '用户名',
uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
message varchar(255) NOT NULL default COMMENT '消息',
verified tinyint(1) NOT NULL default '0' COMMENT '是否审核通过\n(0:N 1:Y 2:需完善资料)',
dateline int(10) unsigned NOT NULL default '0' COMMENT '申请时间',
payment mediumint(8) NOT NULL default '0' COMMENT '每人花销',
ufielddata TEXT NOT NULL COMMENT '用户定制项目数据',
PRIMARY KEY (applyid),
KEY uid (uid),
KEY tid (tid),
KEY dateline (tid,dateline)
) ENGINE=MyISAM COMMENT='活动申请表';
Discuz! X2.5数据库字典(转)的更多相关文章
- Discuz! X2.5数据库字典【转载】
DROP TABLE IF EXISTS pre_common_admincp_cmenu; CREATE TABLE pre_common_admincp_cmenu ( `id` SMALLINT ...
- phpcms V9 整合 Discuz! X2 教程
整合原理: UCenter 作服务端:phpsso 与 Discuz! 分别作 UCenter 的客户端应用:phpsso 与 Discuz! 通过 UCenter 发生交互. phpcms 通过 p ...
- Discuz!X2大附件上传插件-Xproer.HttpUploader6
插件代码(github):https://github.com/1269085759/up6-discuz 插件代码(coding):https://coding.net/u/xproer/p/up6 ...
- 网站博客更换主机空间搬家:Discuz! X2.5老鹰主机搬家全过程
http://www.freehao123.com/discuz-x2-5-banjia/由于我放在hawkhost老鹰主机主机的部落论坛就要到期了,而老鹰主机的续费价格却是按照原价来的,没有任何优惠 ...
- 解决ngnix服务器上的Discuz!x2.5 Upload Error:413错误
1.修改php.ini sudo nano /etc/php5/fpm/php.ini #打开php.ini找到并修改以下的参数,目的是修改上传限制 max_execution_time = 900 ...
- 自动生成数据库字典(sql2008)
每次做项目的时候都要做数据字典,这种重复的工作实在很是痛苦,于是广找资料,终于完成了自动生成数据库字典的工作,废话少说,上代码. 存储过程: SET ANSI_NULLS ON GO SET QUOT ...
- Discuz! X2.5判断会员登录状态及外部调用注册登录框
Discuz! X2.5判断会员登录状态及外部调用注册登录框 有关discuz论坛会员信息,收集的一些资料: 用dedecms+discuz做了个门户加论坛形式的网站,但是dedecms顶部目前只能q ...
- 简单的3个SQL视图搞定所有SqlServer数据库字典
网上有很多SQL SERVER数据库字典的SQL语句,七零八落,我在工作整理了一下思路,总结SQL代码如下.数据库字典包括表结构(分2K和2005).索引和主键.外键.约束.视图.函数.存储过程.触发 ...
- destoon 深度整合discuz x2 UC 之免邮箱二次验证
destoon中member/my.php,信息发布入口处判断是否已在dx中做了验证,如果已经验证,则不再提示验证,否则其中dt的验证页面. 在home.php.php. group.php. for ...
随机推荐
- 物理引擎Havok教程(一)搭建开发环境
物理引擎Havok教程(一)搭建开发环境 网上关于Havok的教程实在不多,并且Havok学习起来还是有一定难度的,所以这里写了一个系列教程,希望可以帮到读者.这是第一期. 一.Havok物理引擎简单 ...
- Scriptcase演示程序,现在,他们使用SC多么简单的开发系统
Scriptcase它内置了一批成熟的业务系统,我们的系统的一部分已经完成和功能微调,在互联网上.检查每个人Scriptcase如何简单可以加速的功能模块的发展. 访问 http://www.phps ...
- Sql数据类型转换
一.ASCII码值与字符间转换 1.ASCII()与CHAR() ASCII()返回字符表达式最左端字符的ASCII 码值.在ASCII()函数中,纯数字的字符串可不用''括起来,但含其 ...
- 【C++实现】HeadFirst策略模式设计模式
策略模式定义了算法家族.分别封装起来.让它们之间能够相互替换,此模式让算法的变化独立于使用算法的客户. Head First设计模式中介绍策略模式时以Duck类作为样例.当中用flyBehavior和 ...
- CSS hack 如何区分所有IE浏览器和非IE浏览器
网上方法很多,例如,测试后得出以下结论,多余的话不说了,直入主题: 1.所有的推理IE浏览器 正解:此写法仅仅被lE浏览器识别,非IE浏览器不识别. <!--[if IE]> <st ...
- C#5.0新特性
C#5.0新特性 C#5.0最大的新特性,莫过于Async和Parallel. 以往我们为了让用户界面保持相应,我们可以直接使用异步委托或是System.Threading命名空间中的成员,但Syst ...
- .Net2.0 --Winform结合WebBrowser控件和Socket老技术来实现另类Push~
原文:.Net2.0 --Winform结合WebBrowser控件和Socket老技术来实现另类Push~ 目前的企业级开发比较流行的是Web2.0技术,但是由于Web技术基于请求--响应的交互模式 ...
- zoj 3822 Domination(dp)
题目链接:zoj 3822 Domination 题目大意:给定一个N∗M的棋盘,每次任选一个位置放置一枚棋子,直到每行每列上都至少有一枚棋子,问放置棋子个数的期望. 解题思路:大白书上概率那一张有一 ...
- Factorization Machines 学习笔记(二)模型方程
近期学习了一种叫做 Factorization Machines(简称 FM)的算法,它可对随意的实值向量进行预測.其主要长处包含: 1) 可用于高度稀疏数据场景:2) 具有线性的计算复杂度.本文 ...
- C语言库函数大全及应用实例三
原文:C语言库函数大全及应用实例三 [编程资料]C语言库函数大全及应用实例三 函数名: ecvt 功 能: 把一个浮点数转换为字符串 用 法: char ecvt(double value, int ...