<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[Discuz7.2数据字典[2]]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[代码编程]]></category>
<pubDate>Wed, 15 Sep 2010 01:54:35 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	DROP TABLE IF EXISTS cdb_prompttype;<br/>CREATE TABLE cdb_prompttype (<br/>&nbsp;&nbsp; id SMALLINT(6) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '提醒类型id',<br/>&nbsp;&nbsp; key VARCHAR(255) NOT NULL DEFAULT '' COMMENT '提醒唯一标示符',<br/>&nbsp;&nbsp; name VARCHAR(255) NOT NULL DEFAULT '' COMMENT '提醒条目',<br/>&nbsp;&nbsp; script VARCHAR(255) NOT NULL DEFAULT '' COMMENT '外部提醒填写脚本url，内部提醒留空',<br/>&nbsp;&nbsp; PRIMARY KEY (`id`),<br/>&nbsp;&nbsp; UNIQUE KEY `key` (`key`)<br/>) TYPE=MyISAM COMMENT='提醒类型';<br/><br/>DROP TABLE IF EXISTS cdb_promptmsgs;<br/>CREATE TABLE cdb_promptmsgs (<br/>&nbsp;&nbsp; id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '提醒id',<br/>&nbsp;&nbsp; typeid SMALLINT(6) UNSIGNED NOT NULL DEFAULT '0' COMMENT '提醒类型id',<br/>&nbsp;&nbsp; uid MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0' COMMENT '会员id',<br/>&nbsp;&nbsp; extraid INTEGER(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '扩展id',<br/>&nbsp;&nbsp; new TINYINT(1) NOT NULL DEFAULT '0' COMMENT '是否未读',<br/>&nbsp;&nbsp; dateline INTEGER(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '时间',<br/>&nbsp;&nbsp; message TEXT NOT NULL COMMENT '提醒内容',<br/>&nbsp;&nbsp; actor TEXT NOT NULL COMMENT '相关人',<br/>&nbsp;&nbsp; PRIMARY KEY (`id`),<br/>&nbsp;&nbsp; KEY `uid` (`uid`, `typeid`),<br/>&nbsp;&nbsp; KEY `new` (`new`),<br/>&nbsp;&nbsp; KEY `dateline` (`dateline`),<br/>&nbsp;&nbsp; KEY `extraid` (`extraid`)<br/>) TYPE=MyISAM COMMENT='提醒数据';<br/><br/>DROP TABLE IF EXISTS cdb_ranks;<br/>CREATE TABLE cdb_ranks (<br/>&nbsp;&nbsp; rankid smallint(6) unsigned NOT NULL AUTO_INCREMENT COMMENT '级别id',<br/>&nbsp;&nbsp; ranktitle varchar(30) NOT NULL DEFAULT '' COMMENT '级别头衔',<br/>&nbsp;&nbsp; postshigher mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '发帖数阀值',<br/>&nbsp;&nbsp; stars tinyint(3) NOT NULL DEFAULT '0' COMMENT '星星数',<br/>&nbsp;&nbsp; color varchar(7) NOT NULL DEFAULT '' COMMENT '颜色',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (rankid)<br/>) TYPE=MyISAM COMMENT='级别表';<br/><br/>DROP TABLE IF EXISTS cdb_ratelog;<br/>CREATE TABLE cdb_ratelog (<br/>&nbsp;&nbsp; pid int(10) unsigned NOT NULL DEFAULT '0' COMMENT '帖子id',<br/>&nbsp;&nbsp; uid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '会员id',<br/>&nbsp;&nbsp; username char(15) NOT NULL DEFAULT '' COMMENT '会员名',<br/>&nbsp;&nbsp; extcredits tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '评分字段',<br/>&nbsp;&nbsp; dateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '评分时间',<br/>&nbsp;&nbsp; score smallint(6) NOT NULL DEFAULT '0' COMMENT '分数',<br/>&nbsp;&nbsp; reason char(40) NOT NULL DEFAULT '' COMMENT '操作理由',<br/>&nbsp;&nbsp; KEY pid (pid,dateline),<br/>&nbsp;&nbsp; KEY dateline (dateline)<br/>) TYPE=MyISAM COMMENT='帖子评分记录表';<br/><br/>DROP TABLE IF EXISTS cdb_regips;<br/>CREATE TABLE cdb_regips (<br/>&nbsp;&nbsp; ip char(15) NOT NULL DEFAULT '' COMMENT 'IP地址',<br/>&nbsp;&nbsp; dateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '限制时间',<br/>&nbsp;&nbsp; count smallint(6) NOT NULL DEFAULT '0' COMMENT '限制数量',<br/>&nbsp;&nbsp; KEY ip (ip)<br/>) TYPE=MyISAM COMMENT='注册IP限制表';<br/><br/>DROP TABLE IF EXISTS cdb_relatedthreads;<br/>CREATE TABLE cdb_relatedthreads (<br/>&nbsp;&nbsp; tid mediumint(8) NOT NULL DEFAULT '0' COMMENT '主题id',<br/>&nbsp;&nbsp; type enum('general','trade') NOT NULL DEFAULT 'general' COMMENT '关键词类型',<br/>&nbsp;&nbsp; expiration int(10) NOT NULL DEFAULT '0' COMMENT '过期时间',<br/>&nbsp;&nbsp; keywords varchar(255) NOT NULL DEFAULT '' COMMENT '关键字',<br/>&nbsp;&nbsp; relatedthreads text NOT NULL COMMENT '相关主题序列',<br/>&nbsp;&nbsp; PRIMARY KEY (tid,`type`)<br/>) TYPE=MyISAM COMMENT='相关主题表';<br/><br/>DROP TABLE IF EXISTS cdb_reportlog;<br/>CREATE TABLE cdb_reportlog (<br/>&nbsp;&nbsp; id int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',<br/>&nbsp;&nbsp; fid smallint(6) unsigned NOT NULL COMMENT '版块 fid',<br/>&nbsp;&nbsp; pid int(10) unsigned NOT NULL COMMENT '帖子 pid',<br/>&nbsp;&nbsp; uid mediumint(8) unsigned NOT NULL COMMENT '报告人 uid',<br/>&nbsp;&nbsp; username char(15) NOT NULL COMMENT '报告人 username',<br/>&nbsp;&nbsp; status tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '报告状态&#92;n(1:未处理 0:已处理)',<br/>&nbsp;&nbsp; type tinyint(1) NOT NULL COMMENT '报告类型&#92;n(1:推荐 -1:投诉)',<br/>&nbsp;&nbsp; reason char(40) NOT NULL COMMENT '报告原因',<br/>&nbsp;&nbsp; dateline int(10) unsigned NOT NULL COMMENT '报告时间',<br/>&nbsp;&nbsp; PRIMARY KEY (id),<br/>&nbsp;&nbsp; UNIQUE KEY pid (pid,uid),<br/>&nbsp;&nbsp; KEY dateline (fid,dateline)<br/>) TYPE=MyISAM COMMENT '相关主题序列';<br/><br/>DROP TABLE IF EXISTS cdb_request;<br/>CREATE TABLE cdb_request (<br/>&nbsp;&nbsp; variable varchar(32) NOT NULL DEFAULT '' COMMENT '变量名',<br/>&nbsp;&nbsp; value mediumtext NOT NULL COMMENT '值',<br/>&nbsp;&nbsp; type tinyint(1) NOT NULL COMMENT '调用类型',<br/>&nbsp;&nbsp; system tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否系统调用(无法删除的)',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (variable),<br/>&nbsp;&nbsp; KEY `type` (`type`)<br/>) TYPE=MyISAM COMMENT='数据调用表';<br/><br/>DROP TABLE IF EXISTS cdb_rewardlog;<br/>CREATE TABLE cdb_rewardlog (<br/>&nbsp;&nbsp; tid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '主题id',<br/>&nbsp;&nbsp; authorid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '作者id',<br/>&nbsp;&nbsp; answererid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '回答者id',<br/>&nbsp;&nbsp; dateline int(10) unsigned DEFAULT '0' COMMENT '悬赏发布时间',<br/>&nbsp;&nbsp; netamount int(10) unsigned NOT NULL DEFAULT '0' COMMENT '悬赏金额',<br/>&nbsp;&nbsp; KEY userid (authorid,answererid)<br/>) TYPE=MyISAM COMMENT='悬赏日志表';<br/><br/>DROP TABLE IF EXISTS cdb_rsscaches;<br/>CREATE TABLE cdb_rsscaches (<br/>&nbsp;&nbsp; lastupdate int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后更新时间',<br/>&nbsp;&nbsp; fid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '论坛id',<br/>&nbsp;&nbsp; tid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '主题id',<br/>&nbsp;&nbsp; dateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '发表时间',<br/>&nbsp;&nbsp; forum char(50) NOT NULL DEFAULT '' COMMENT '论坛名称',<br/>&nbsp;&nbsp; author char(15) NOT NULL DEFAULT '' COMMENT '作者',<br/>&nbsp;&nbsp; subject char(80) NOT NULL DEFAULT '' COMMENT '标题',<br/>&nbsp;&nbsp; description char(255) NOT NULL DEFAULT '' COMMENT '解释说明',<br/>&nbsp;&nbsp; UNIQUE KEY tid (tid),<br/>&nbsp;&nbsp; KEY fid (fid,dateline)<br/>) TYPE=MyISAM COMMENT='rss缓存表';<br/><br/>DROP TABLE IF EXISTS cdb_searchindex;<br/>CREATE TABLE cdb_searchindex (<br/>&nbsp;&nbsp; searchid int(10) unsigned NOT NULL auto_increment COMMENT '缓存id',<br/>&nbsp;&nbsp; keywords varchar(255) NOT NULL DEFAULT '' COMMENT '关键字',<br/>&nbsp;&nbsp; searchstring text NOT NULL COMMENT '查找字符串',<br/>&nbsp;&nbsp; useip varchar(15) NOT NULL DEFAULT '' COMMENT '搜索人IP',<br/>&nbsp;&nbsp; uid mediumint(10) unsigned NOT NULL DEFAULT '0' COMMENT '会员id',<br/>&nbsp;&nbsp; dateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '搜索时间',<br/>&nbsp;&nbsp; expiration int(10) unsigned NOT NULL DEFAULT '0' COMMENT '过期时间',<br/>&nbsp;&nbsp; threadsortid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '分类信息id',<br/>&nbsp;&nbsp; threads smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '主题数量',<br/>&nbsp;&nbsp; tids text NOT NULL COMMENT '主题id序列',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (searchid)<br/>) TYPE=MyISAM COMMENT='搜索缓存表';<br/><br/>DROP TABLE IF EXISTS cdb_sessions;<br/>CREATE TABLE cdb_sessions (<br/>&nbsp;&nbsp; sid char(6) binary NOT NULL DEFAULT '' COMMENT 'sid',<br/>&nbsp;&nbsp; ip1 tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'IP段',<br/>&nbsp;&nbsp; ip2 tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'IP段',<br/>&nbsp;&nbsp; ip3 tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'IP段',<br/>&nbsp;&nbsp; ip4 tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'IP段',<br/>&nbsp;&nbsp; uid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '会员id',<br/>&nbsp;&nbsp; username char(15) NOT NULL DEFAULT '' COMMENT '会员名',<br/>&nbsp;&nbsp; groupid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '会员组',<br/>&nbsp;&nbsp; styleid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '风格id',<br/>&nbsp;&nbsp; invisible tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否隐身登录',<br/>&nbsp;&nbsp; action tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '当前动作',<br/>&nbsp;&nbsp; lastactivity int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后活动时间',<br/>&nbsp;&nbsp; lastolupdate int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后更新时间',<br/>&nbsp;&nbsp; pageviews smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '页面访问量',<br/>&nbsp;&nbsp; seccode mediumint(6) unsigned NOT NULL DEFAULT '0' COMMENT '记录验证码',<br/>&nbsp;&nbsp; fid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '论坛id',<br/>&nbsp;&nbsp; tid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '主题id',<br/>&nbsp;&nbsp; bloguid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '正在浏览的文集',<br/>&nbsp;&nbsp; UNIQUE KEY sid (sid),<br/>&nbsp;&nbsp; KEY uid (uid),<br/>&nbsp;&nbsp; KEY bloguid (bloguid)<br/>) TYPE=HEAP COMMENT='会员认证表';<br/><br/>DROP TABLE IF EXISTS cdb_settings;<br/>CREATE TABLE cdb_settings (<br/>&nbsp;&nbsp; variable varchar(32) NOT NULL DEFAULT '' COMMENT '变量名',<br/>&nbsp;&nbsp; value text NOT NULL COMMENT '值',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (variable)<br/>) TYPE=MyISAM COMMENT='设置表';<br/><br/>DROP TABLE IF EXISTS cdb_smilies;<br/>CREATE TABLE cdb_smilies (<br/>&nbsp;&nbsp; id smallint(6) unsigned NOT NULL auto_increment COMMENT '表情id',<br/>&nbsp;&nbsp; typeid smallint(6) unsigned NOT NULL COMMENT '表情分类 id',<br/>&nbsp;&nbsp; displayorder tinyint(1) NOT NULL DEFAULT '0' COMMENT '显示顺序',<br/>&nbsp;&nbsp; type enum('smiley','icon') NOT NULL DEFAULT 'smiley' COMMENT '类型',<br/>&nbsp;&nbsp; code varchar(30) NOT NULL DEFAULT '' COMMENT '标记',<br/>&nbsp;&nbsp; url varchar(30) NOT NULL DEFAULT '' COMMENT '路径',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (id)<br/>) TYPE=MyISAM COMMENT='表情表';<br/><br/>DROP TABLE IF EXISTS cdb_spacecaches;<br/>CREATE TABLE cdb_spacecaches (<br/>&nbsp;&nbsp; uid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '用户 uid',<br/>&nbsp;&nbsp; variable varchar(20) NOT NULL COMMENT '缓存变量的名称',<br/>&nbsp;&nbsp; value text NOT NULL COMMENT '缓存变量的值',<br/>&nbsp;&nbsp; expiration int(10) unsigned NOT NULL DEFAULT '0' COMMENT '过期时间',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (uid,variable)<br/>) TYPE=MyISAM COMMENT='minispace缓存表';<br/><br/>DROP TABLE IF EXISTS cdb_stats;<br/>CREATE TABLE cdb_stats (<br/>&nbsp;&nbsp; type char(10) NOT NULL DEFAULT '' COMMENT '类型',<br/>&nbsp;&nbsp; variable char(10) NOT NULL DEFAULT '' COMMENT '变量名',<br/>&nbsp;&nbsp; count int(10) unsigned NOT NULL DEFAULT '0' COMMENT '数量',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (type,variable)<br/>) TYPE=MyISAM COMMENT='统计表';<br/><br/>DROP TABLE IF EXISTS cdb_statvars;<br/>CREATE TABLE cdb_statvars (<br/>&nbsp;&nbsp; type varchar(20) NOT NULL DEFAULT '' COMMENT '类型',<br/>&nbsp;&nbsp; variable varchar(20) NOT NULL DEFAULT '' COMMENT '变量名',<br/>&nbsp;&nbsp; value mediumtext NOT NULL COMMENT '值',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (type,variable)<br/>) TYPE=MyISAM COMMENT='统计变量表';<br/><br/>DROP TABLE IF EXISTS cdb_styles;<br/>CREATE TABLE cdb_styles (<br/>&nbsp;&nbsp; styleid smallint(6) unsigned NOT NULL auto_increment COMMENT '风格id',<br/>&nbsp;&nbsp; name varchar(20) NOT NULL DEFAULT '' COMMENT '风格名称',<br/>&nbsp;&nbsp; available tinyint(1) NOT NULL DEFAULT '1' COMMENT '风格是否可用',<br/>&nbsp;&nbsp; templateid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '对应模板id',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (styleid)<br/>) TYPE=MyISAM COMMENT='风格表';<br/><br/>DROP TABLE IF EXISTS cdb_stylevars;<br/>CREATE TABLE cdb_stylevars (<br/>&nbsp;&nbsp; stylevarid smallint(6) unsigned NOT NULL auto_increment COMMENT '风格变量id',<br/>&nbsp;&nbsp; styleid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '风格id',<br/>&nbsp;&nbsp; variable text NOT NULL COMMENT '变量名',<br/>&nbsp;&nbsp; substitute text NOT NULL COMMENT '变量赋值',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (stylevarid),<br/>&nbsp;&nbsp; KEY styleid (styleid)<br/>) TYPE=MyISAM COMMENT='风格变量表';<br/><br/>DROP TABLE IF EXISTS cdb_tags;<br/>CREATE TABLE cdb_tags (<br/>&nbsp;&nbsp; tagname char(20) NOT NULL COMMENT 'TAG名',<br/>&nbsp;&nbsp; closed tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否关闭',<br/>&nbsp;&nbsp; total mediumint(8) unsigned NOT NULL COMMENT '使用此TAG的总数',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (tagname),<br/>&nbsp;&nbsp; KEY total (total),<br/>&nbsp;&nbsp; KEY closed (closed)<br/>) TYPE=MyISAM COMMENT='论坛标签数据表';<br/><br/>DROP TABLE IF EXISTS cdb_tasks;<br/>CREATE TABLE cdb_tasks (<br/>&nbsp;&nbsp; taskid smallint(6) unsigned NOT NULL AUTO_INCREMENT,<br/>&nbsp;&nbsp; taskid smallint(6) unsigned NOT NULL auto_increment COMMENT '任务id',<br/>&nbsp;&nbsp; relatedtaskid smallint(6) unsigned NOT NULL default '0' COMMENT '依存任务id&#92;n必须完成依存任务才能申请该任务',<br/>&nbsp;&nbsp; available tinyint(1) NOT NULL default '0' COMMENT '是否启用',<br/>&nbsp;&nbsp; name varchar(50) NOT NULL default '' COMMENT '任务名称',<br/>&nbsp;&nbsp; description text NOT NULL COMMENT '任务描述',<br/>&nbsp;&nbsp; icon varchar(150) NOT NULL DEFAULT '' COMMENT '任务图标',<br/>&nbsp;&nbsp; applicants mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '已申请任务人次',<br/>&nbsp;&nbsp; achievers mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '已完成任务人次',<br/>&nbsp;&nbsp; tasklimits mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '允许申请并完成该任务的人次上限',<br/>&nbsp;&nbsp; applyperm text NOT NULL COMMENT '允许申请任务的用户组id, 格式: 1 2 3',<br/>&nbsp;&nbsp; scriptname varchar(50) NOT NULL DEFAULT '' COMMENT '任务脚本文件名',<br/>&nbsp;&nbsp; starttime int(10) unsigned NOT NULL DEFAULT '0' COMMENT '任务上线时间',<br/>&nbsp;&nbsp; endtime int(10) unsigned NOT NULL DEFAULT '0' COMMENT '任务下线时间',<br/>&nbsp;&nbsp; period int(10) unsigned NOT NULL DEFAULT '0' COMMENT '任务周期 单位：小时 默认为0表示一次性任务 设置为24即1天表示日常任务',<br/>&nbsp;&nbsp; reward enum('credit','magic','medal','invite','group') NOT NULL DEFAULT 'credit' COMMENT '奖励类型&#92;n(credit:积分 magic:道具 medal:勋章 invite:邀请码 group:特殊用户组)',<br/>&nbsp;&nbsp; prize varchar(15) NOT NULL DEFAULT '' COMMENT '奖品: 哪一个扩展积分, 道具id, 勋章id,邀请码有效期， 特殊用户组id',<br/>&nbsp;&nbsp; bonus int(10) NOT NULL DEFAULT '0' COMMENT '奖品数量/有效期: &#92;n积分数量, 道具数量, 勋章有效期, 邀请码数量，特殊用户组有效期',<br/>&nbsp;&nbsp; displayorder smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '显示顺序',<br/>&nbsp;&nbsp; version varchar(15) NOT NULL DEFAULT '' COMMENT '任务脚本版本号',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (taskid)<br/>) TYPE=MyISAM COMMENT='论坛任务表';<br/><br/>DROP TABLE IF EXISTS cdb_taskvars;<br/>CREATE TABLE cdb_taskvars (<br/>&nbsp;&nbsp; taskvarid mediumint(8) unsigned NOT NULL auto_increment COMMENT '任务变量id',<br/>&nbsp;&nbsp; taskid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '任务id',<br/>&nbsp;&nbsp; sort enum('apply','complete') NOT NULL DEFAULT 'complete' COMMENT '变量类别&#92;n(apply:申请任务条件 complete:完成任务条件)',<br/>&nbsp;&nbsp; name varchar(100) NOT NULL DEFAULT '' COMMENT '变量名称',<br/>&nbsp;&nbsp; description varchar(255) NOT NULL DEFAULT '' COMMENT '变量描述',<br/>&nbsp;&nbsp; variable varchar(40) NOT NULL DEFAULT '' COMMENT '变量名',<br/>&nbsp;&nbsp; type varchar(20) NOT NULL DEFAULT 'text' COMMENT '变量类型',<br/>&nbsp;&nbsp; value text NOT NULL COMMENT '变量值',<br/>&nbsp;&nbsp; extra text NOT NULL COMMENT '变量附加值',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (taskvarid),<br/>&nbsp;&nbsp; KEY taskid (taskid)<br/>) TYPE=MyISAM COMMENT='论坛任务设置表';<br/><br/>DROP TABLE IF EXISTS cdb_templates;<br/>CREATE TABLE cdb_templates (<br/>&nbsp;&nbsp; templateid smallint(6) unsigned NOT NULL auto_increment COMMENT '模板id',<br/>&nbsp;&nbsp; name varchar(30) NOT NULL DEFAULT '' COMMENT '名称',<br/>&nbsp;&nbsp; directory varchar(100) NOT NULL DEFAULT '' COMMENT '目录',<br/>&nbsp;&nbsp; copyright varchar(100) NOT NULL DEFAULT '' COMMENT '版权',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (templateid)<br/>) TYPE=MyISAM COMMENT='模版表';<br/><br/><br/>DROP TABLE IF EXISTS cdb_threads;<br/>CREATE TABLE cdb_threads (<br/>&nbsp;&nbsp; tid mediumint(8) unsigned NOT NULL auto_increment COMMENT '主题id',<br/>&nbsp;&nbsp; fid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '上级论坛',<br/>&nbsp;&nbsp; iconid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '图标',<br/>&nbsp;&nbsp; typeid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '主题分类id',<br/>&nbsp;&nbsp; sortid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '分类信息id',<br/>&nbsp;&nbsp; readperm tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '阅读权限',<br/>&nbsp;&nbsp; price smallint(6) NOT NULL DEFAULT '0' COMMENT '价格',<br/>&nbsp;&nbsp; author char(15) NOT NULL DEFAULT '' COMMENT '会员名',<br/>&nbsp;&nbsp; authorid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '会员id',<br/>&nbsp;&nbsp; subject char(80) NOT NULL DEFAULT '' COMMENT '标题',<br/>&nbsp;&nbsp; dateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '发表时间',<br/>&nbsp;&nbsp; lastpost int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后发表',<br/>&nbsp;&nbsp; lastposter char(15) NOT NULL DEFAULT '' COMMENT '最后发表人id',<br/>&nbsp;&nbsp; views int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',<br/>&nbsp;&nbsp; replies mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '回复次数',<br/>&nbsp;&nbsp; displayorder tinyint(1) NOT NULL DEFAULT '0' COMMENT '显示顺序',<br/>&nbsp;&nbsp; highlight tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否高亮',<br/>&nbsp;&nbsp; digest tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否精华',<br/>&nbsp;&nbsp; rate tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否评分',<br/>&nbsp;&nbsp; special tinyint(1) NOT NULL DEFAULT '0' COMMENT '特殊主题',<br/>&nbsp;&nbsp; attachment tinyint(1) NOT NULL DEFAULT '0' COMMENT '附件',<br/>&nbsp;&nbsp; moderated tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否被管理员改动',<br/>&nbsp;&nbsp; closed mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '是否关闭',<br/>&nbsp;&nbsp; itemid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT 'supe关联id',<br/>&nbsp;&nbsp; supe_pushstatus tinyint(1) NOT NULL DEFAULT '0' COMMENT 'supe推送状态',<br/><br/>&nbsp;&nbsp; recommends SMALLINT(6) NOT NULL DEFAULT '0' COMMENT '推荐指数',<br/>&nbsp;&nbsp; recommend_add SMALLINT(6) NOT NULL DEFAULT '0' COMMENT '支持人数',<br/>&nbsp;&nbsp; recommend_sub SMALLINT(6) NOT NULL DEFAULT '0' COMMENT '反对人数',<br/>&nbsp;&nbsp; heats INT(10) unsigned NOT NULL DEFAULT '0' COMMENT '主题热度值',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (tid),<br/>&nbsp;&nbsp; KEY digest (digest),<br/>&nbsp;&nbsp; KEY sortid (sortid),<br/>&nbsp;&nbsp; KEY displayorder (fid,displayorder,lastpost),<br/>&nbsp;&nbsp; KEY typeid (fid,typeid,displayorder,lastpost),<br/>&nbsp;&nbsp; KEY recommends (recommends),<br/>&nbsp;&nbsp; KEY heats (heats),<br/>&nbsp;&nbsp; KEY authorid (authorid)<br/><br/>) TYPE=MyISAM COMMENT='主题表';<br/>DROP TABLE IF EXISTS cdb_threadsmod;<br/>CREATE TABLE cdb_threadsmod (<br/>&nbsp;&nbsp; tid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '主题id',<br/>&nbsp;&nbsp; uid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '会员id',<br/>&nbsp;&nbsp; username char(15) NOT NULL DEFAULT '' COMMENT '会员名',<br/>&nbsp;&nbsp; dateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '操作时间',<br/>&nbsp;&nbsp; expiration int(10) unsigned NOT NULL DEFAULT '0' COMMENT '有效时间',<br/>&nbsp;&nbsp; action char(5) NOT NULL DEFAULT '' COMMENT '操作',<br/>&nbsp;&nbsp; status tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态',<br/>&nbsp;&nbsp; magicid smallint(6) unsigned NOT NULL COMMENT '使用道具id',<br/>&nbsp;&nbsp; KEY tid (tid,dateline),<br/>&nbsp;&nbsp; KEY expiration (expiration,status)<br/>) TYPE=MyISAM COMMENT='主题管理记录表';<br/><br/>DROP TABLE IF EXISTS cdb_threadtags;<br/>CREATE TABLE cdb_threadtags (<br/>&nbsp;&nbsp; tagname char(20) NOT NULL COMMENT '标签名称',<br/>&nbsp;&nbsp; tid int(10) unsigned NOT NULL COMMENT '标签对应主题id',<br/>&nbsp;&nbsp; KEY tagname (tagname),<br/>&nbsp;&nbsp; KEY tid (tid)<br/>) TYPE=MyISAM COMMENT='主题标签表';<br/><br/>DROP TABLE IF EXISTS cdb_threadtypes;<br/>CREATE TABLE cdb_threadtypes (<br/>&nbsp;&nbsp; typeid smallint(6) unsigned NOT NULL auto_increment COMMENT '主题分类id',<br/>&nbsp;&nbsp; displayorder smallint(6) NOT NULL DEFAULT '0' COMMENT '显示顺序',<br/>&nbsp;&nbsp; name varchar(255) NOT NULL DEFAULT '' COMMENT '名称',<br/>&nbsp;&nbsp; description varchar(255) NOT NULL DEFAULT '' COMMENT '解释说明',<br/>&nbsp;&nbsp; special smallint(6) NOT NULL DEFAULT '0' COMMENT '分类状态',<br/>&nbsp;&nbsp; modelid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '分类模型id',<br/>&nbsp;&nbsp; expiration tinyint(1) NOT NULL DEFAULT '0' COMMENT '分类有效期',<br/>&nbsp;&nbsp; template text NOT NULL COMMENT '分类信息模板',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (typeid)<br/>) TYPE=MyISAM COMMENT='主题分类表';<br/><br/>DROP TABLE IF EXISTS cdb_tradecomments;<br/>CREATE TABLE cdb_tradecomments (<br/>&nbsp;&nbsp; id mediumint(8) NOT NULL auto_increment COMMENT 'id',<br/>&nbsp;&nbsp; orderid char(32) NOT NULL COMMENT '订单 id',<br/>&nbsp;&nbsp; pid int(10) unsigned NOT NULL COMMENT '帖子 id',<br/>&nbsp;&nbsp; type tinyint(1) NOT NULL COMMENT '类型',<br/>&nbsp;&nbsp; raterid mediumint(8) unsigned NOT NULL COMMENT '评价方会员id',<br/>&nbsp;&nbsp; rater char(15) NOT NULL COMMENT '评价方用户名',<br/>&nbsp;&nbsp; rateeid mediumint(8) unsigned NOT NULL COMMENT '被评价方会员id',<br/>&nbsp;&nbsp; ratee char(15) NOT NULL COMMENT '被评价方用户名',<br/>&nbsp;&nbsp; message char(200) NOT NULL COMMENT '评价内容',<br/>&nbsp;&nbsp; explanation char(200) NOT NULL COMMENT '解释',<br/>&nbsp;&nbsp; score tinyint(1) NOT NULL COMMENT '评分',<br/>&nbsp;&nbsp; dateline int(10) unsigned NOT NULL COMMENT '评价时间',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (id),<br/>&nbsp;&nbsp; KEY raterid (raterid,type,dateline),<br/>&nbsp;&nbsp; KEY rateeid (rateeid,type,dateline),<br/>&nbsp;&nbsp; KEY orderid (orderid)<br/>) TYPE=MyISAM COMMENT='信用评价';<br/><br/>DROP TABLE IF EXISTS cdb_tradelog;<br/>CREATE TABLE cdb_tradelog (<br/>&nbsp;&nbsp; tid mediumint(8) unsigned NOT NULL COMMENT '主题id',<br/>&nbsp;&nbsp; pid int(10) unsigned NOT NULL COMMENT '帖子id',<br/>&nbsp;&nbsp; orderid varchar(32) NOT NULL COMMENT '订单号id',<br/>&nbsp;&nbsp; tradeno varchar(32) NOT NULL COMMENT '支付宝订单号',<br/>&nbsp;&nbsp; subject varchar(100) NOT NULL COMMENT '标题',<br/>&nbsp;&nbsp; price decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '价格',<br/>&nbsp;&nbsp; quality tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '成色',<br/>&nbsp;&nbsp; itemtype tinyint(1) NOT NULL DEFAULT '0' COMMENT '商品类型',<br/>&nbsp;&nbsp; number smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '数量',<br/>&nbsp;&nbsp; tax decimal(6,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '交易手续费',<br/>&nbsp;&nbsp; locus varchar(100) NOT NULL COMMENT '物品所在地',<br/>&nbsp;&nbsp; sellerid mediumint(8) unsigned NOT NULL COMMENT '卖家id',<br/>&nbsp;&nbsp; seller varchar(15) NOT NULL COMMENT '卖家名',<br/>&nbsp;&nbsp; selleraccount varchar(50) NOT NULL COMMENT '卖家交易帐号',<br/>&nbsp;&nbsp; buyerid mediumint(8) unsigned NOT NULL COMMENT '卖家id',<br/>&nbsp;&nbsp; buyer varchar(15) NOT NULL COMMENT '买家名',<br/>&nbsp;&nbsp; buyercontact varchar(50) NOT NULL COMMENT '买家联系方式',<br/>&nbsp;&nbsp; buyercredits smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '买家暂扣积分',<br/>&nbsp;&nbsp; buyermsg varchar(200) DEFAULT NULL COMMENT '买家留言',<br/>&nbsp;&nbsp; status tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态',<br/>&nbsp;&nbsp; lastupdate int(10) unsigned NOT NULL DEFAULT '0' COMMENT '状态最后更新',<br/>&nbsp;&nbsp; offline tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否离线交易',<br/>&nbsp;&nbsp; buyername varchar(50) NOT NULL COMMENT '买家姓名',<br/>&nbsp;&nbsp; buyerzip varchar(10) NOT NULL COMMENT '买家邮编',<br/>&nbsp;&nbsp; buyerphone varchar(20) NOT NULL COMMENT '买家电话',<br/>&nbsp;&nbsp; buyermobile varchar(20) NOT NULL COMMENT '买家手机',<br/>&nbsp;&nbsp; transport tinyint(1) NOT NULL DEFAULT '0' COMMENT '运输方式',<br/>&nbsp;&nbsp; transportfee smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '运输费用',<br/>&nbsp;&nbsp; baseprice decimal(8,2) NOT NULL COMMENT '商品原价',<br/>&nbsp;&nbsp; discount tinyint(1) NOT NULL DEFAULT '0' COMMENT '折扣',<br/>&nbsp;&nbsp; ratestatus tinyint(1) NOT NULL DEFAULT '0' COMMENT '评价状态',<br/>&nbsp;&nbsp; message text NOT NULL COMMENT '订单留言',<br/>&nbsp;&nbsp; credit int(10) unsigned NOT NULL DEFAULT '0' COMMENT '积分价格',<br/>&nbsp;&nbsp; basecredit int(10) unsigned NOT NULL DEFAULT '0' COMMENT '积分原价',<br/>&nbsp;&nbsp; UNIQUE KEY orderid (orderid),<br/>&nbsp;&nbsp; KEY sellerid (sellerid),<br/>&nbsp;&nbsp; KEY buyerid (buyerid),<br/>&nbsp;&nbsp; KEY status (status),<br/>&nbsp;&nbsp; KEY buyerlog (buyerid,status,lastupdate),<br/>&nbsp;&nbsp; KEY sellerlog (sellerid,status,lastupdate),<br/>&nbsp;&nbsp; KEY tid (tid,pid),<br/>&nbsp;&nbsp; KEY pid (pid)<br/>) TYPE=MyISAM COMMENT='交易记录表';<br/><br/>DROP TABLE IF EXISTS cdb_tradeoptionvars;<br/>CREATE TABLE cdb_tradeoptionvars (<br/>&nbsp;&nbsp; sortid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '商品分类信息id',<br/>&nbsp;&nbsp; pid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '商品分类信息数据对应分类帖子id',<br/>&nbsp;&nbsp; optionid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '商品分类信息数据对应选项id',<br/>&nbsp;&nbsp; value mediumtext NOT NULL COMMENT '商品分类信息数据',<br/>&nbsp;&nbsp; KEY sortid (sortid),<br/>&nbsp;&nbsp; KEY pid (pid)<br/>) TYPE=MyISAM COMMENT='商品分类信息设置项目数据表';<br/><br/>DROP TABLE IF EXISTS cdb_trades;<br/>CREATE TABLE cdb_trades (<br/>&nbsp;&nbsp; tid mediumint(8) unsigned NOT NULL COMMENT '主题id',<br/>&nbsp;&nbsp; pid int(10) unsigned NOT NULL COMMENT '帖子id',<br/>&nbsp;&nbsp; typeid smallint(6) unsigned NOT NULL COMMENT '主题分类id',<br/>&nbsp;&nbsp; sellerid mediumint(8) unsigned NOT NULL COMMENT '买家id',<br/>&nbsp;&nbsp; seller char(15) NOT NULL COMMENT '买家名',<br/>&nbsp;&nbsp; account char(50) NOT NULL COMMENT '买家帐号',<br/>&nbsp;&nbsp; subject char(100) NOT NULL COMMENT '标题',<br/>&nbsp;&nbsp; price decimal(8,2) NOT NULL COMMENT '价格',<br/>&nbsp;&nbsp; amount smallint(6) unsigned NOT NULL DEFAULT '1' COMMENT '数量',<br/>&nbsp;&nbsp; quality tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '成色',<br/>&nbsp;&nbsp; locus char(20) NOT NULL COMMENT '所在地',<br/>&nbsp;&nbsp; transport tinyint(1) NOT NULL DEFAULT '0' COMMENT '物流方式',<br/>&nbsp;&nbsp; ordinaryfee smallint(4) unsigned NOT NULL DEFAULT '0' COMMENT '平邮附加费',<br/>&nbsp;&nbsp; expressfee smallint(4) unsigned NOT NULL DEFAULT '0' COMMENT '快递附加费',<br/>&nbsp;&nbsp; emsfee smallint(4) unsigned NOT NULL DEFAULT '0' COMMENT 'EMS附加费',<br/>&nbsp;&nbsp; itemtype tinyint(1) NOT NULL DEFAULT '0' COMMENT '商品类型',<br/>&nbsp;&nbsp; dateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '交易时间',<br/>&nbsp;&nbsp; expiration int(10) unsigned NOT NULL DEFAULT '0' COMMENT '过期时间',<br/>&nbsp;&nbsp; lastbuyer char(15) NOT NULL COMMENT '最后买家用户名',<br/>&nbsp;&nbsp; lastupdate int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后交易时间',<br/>&nbsp;&nbsp; totalitems smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '总交易量',<br/>&nbsp;&nbsp; tradesum decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '总交易额',<br/>&nbsp;&nbsp; closed tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否关闭',<br/>&nbsp;&nbsp; aid mediumint(8) unsigned NOT NULL COMMENT '商品图片的 Aid',<br/>&nbsp;&nbsp; displayorder tinyint(1) NOT NULL COMMENT '显示顺序',<br/>&nbsp;&nbsp; costprice decimal(8,2) NOT NULL COMMENT '商品原价',<br/>&nbsp;&nbsp; credit int(10) unsigned NOT NULL DEFAULT '0' COMMENT '积分价格',<br/>&nbsp;&nbsp; costcredit int(10) unsigned NOT NULL DEFAULT '0' COMMENT '积分原价',<br/>&nbsp;&nbsp; credittradesum int(10) unsigned NOT NULL DEFAULT '0' COMMENT '总积分交易额',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (tid,pid),<br/>&nbsp;&nbsp; KEY sellerid (sellerid),<br/>&nbsp;&nbsp; KEY totalitems (totalitems),<br/>&nbsp;&nbsp; KEY tradesum (tradesum),<br/>&nbsp;&nbsp; KEY displayorder (tid,displayorder),<br/>&nbsp;&nbsp; KEY sellertrades (sellerid,tradesum,totalitems),<br/>&nbsp;&nbsp; KEY typeid (typeid),<br/>&nbsp;&nbsp; KEY credittradesum(credittradesum)<br/>) TYPE=MyISAM COMMENT='商品数据表';<br/><br/>DROP TABLE IF EXISTS cdb_typemodels;<br/>CREATE TABLE cdb_typemodels (<br/>&nbsp;&nbsp; id smallint(6) unsigned NOT NULL auto_increment COMMENT '分类模型id',<br/>&nbsp;&nbsp; name varchar(20) NOT NULL COMMENT '分类模型名称',<br/>&nbsp;&nbsp; displayorder tinyint(3) NOT NULL DEFAULT '0' COMMENT '分类模型顺序',<br/>&nbsp;&nbsp; type tinyint(1) NOT NULL DEFAULT '0' COMMENT '分类模型类型',<br/>&nbsp;&nbsp; options mediumtext NOT NULL COMMENT '分类模型系统项目',<br/>&nbsp;&nbsp; customoptions mediumtext NOT NULL COMMENT '分类模型自定义项目',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (id)<br/><br/>) TYPE=MyISAM COMMENT='分类信息模型表';<br/><br/>DROP TABLE IF EXISTS cdb_typeoptions;<br/>CREATE TABLE cdb_typeoptions (<br/>&nbsp;&nbsp; optionid smallint(6) unsigned NOT NULL auto_increment COMMENT '分类信息选项id',<br/>&nbsp;&nbsp; classid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '分类信息选项类别id',<br/>&nbsp;&nbsp; displayorder tinyint(3) NOT NULL DEFAULT '0' COMMENT '分类信息选项顺序',<br/>&nbsp;&nbsp; title varchar(100) NOT NULL DEFAULT '' COMMENT '分类信息选项名称',<br/>&nbsp;&nbsp; description varchar(255) NOT NULL DEFAULT '' COMMENT '分类信息选项描述',<br/>&nbsp;&nbsp; identifier varchar(40) NOT NULL DEFAULT '' COMMENT '分类信息选项标识',<br/>&nbsp;&nbsp; type varchar(20) NOT NULL DEFAULT '' COMMENT '分类信息选项类型',<br/>&nbsp;&nbsp; rules mediumtext NOT NULL COMMENT '分类信息选项规则',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (optionid),<br/>&nbsp;&nbsp; KEY classid (classid)<br/>) TYPE=MyISAM COMMENT='分类信息设置项目表';<br/><br/>DROP TABLE IF EXISTS cdb_typeoptionvars;<br/>CREATE TABLE cdb_typeoptionvars (<br/>&nbsp;&nbsp; sortid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '分类信息id',<br/>&nbsp;&nbsp; tid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '分类信息数据对应帖子id',<br/>&nbsp;&nbsp; optionid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '分类信息数据对应选项id',<br/>&nbsp;&nbsp; expiration int(10) unsigned NOT NULL DEFAULT '0' COMMENT '分类信息数据有效期',<br/>&nbsp;&nbsp; value mediumtext NOT NULL COMMENT '分类信息数据数值',<br/>&nbsp;&nbsp; KEY sortid (sortid),<br/>&nbsp;&nbsp; KEY tid (tid)<br/>) TYPE=MyISAM COMMENT='分类信息项目数据表';<br/><br/>DROP TABLE IF EXISTS cdb_typevars;<br/>CREATE TABLE cdb_typevars (<br/>&nbsp;&nbsp; sortid smallint(6) NOT NULL DEFAULT '0' COMMENT '分类信息id',<br/>&nbsp;&nbsp; optionid smallint(6) NOT NULL DEFAULT '0' COMMENT '分类信息对应项目id',<br/>&nbsp;&nbsp; available tinyint(1) NOT NULL DEFAULT '0' COMMENT '分类信息对应项目是否可用',<br/>&nbsp;&nbsp; required tinyint(1) NOT NULL DEFAULT '0' COMMENT '分类信息对应项目是否必填',<br/>&nbsp;&nbsp; unchangeable tinyint(1) NOT NULL DEFAULT '0' COMMENT '分类信息对应项目是否可修改',<br/>&nbsp;&nbsp; search tinyint(1) NOT NULL DEFAULT '0' COMMENT '分类信息对应项目是否可搜索',<br/>&nbsp;&nbsp; displayorder tinyint(3) NOT NULL DEFAULT '0' COMMENT '分类信息对应项目顺序',<br/>&nbsp;&nbsp; UNIQUE KEY optionid (sortid,optionid),<br/>&nbsp;&nbsp; KEY sortid (sortid)<br/>) TYPE=MyISAM COMMENT='分类信息对应项目表';<br/><br/>DROP TABLE IF EXISTS cdb_usergroups;<br/>CREATE TABLE cdb_usergroups (<br/>&nbsp;&nbsp; groupid smallint(6) unsigned NOT NULL auto_increment COMMENT '会员组id',<br/>&nbsp;&nbsp; radminid tinyint(3) NOT NULL DEFAULT '0' COMMENT '关联关管理组',<br/>&nbsp;&nbsp; type enum('system','special','member') NOT NULL DEFAULT 'member' COMMENT '类型',<br/>&nbsp;&nbsp; system char(8) NOT NULL DEFAULT 'private' COMMENT '会员是否可以自由进出',<br/>&nbsp;&nbsp; grouptitle char(30) NOT NULL DEFAULT '' COMMENT '组头衔',<br/>&nbsp;&nbsp; creditshigher int(10) NOT NULL DEFAULT '0' COMMENT '该组的积分上限',<br/>&nbsp;&nbsp; creditslower int(10) NOT NULL DEFAULT '0' COMMENT '该组的积分下限',<br/>&nbsp;&nbsp; stars tinyint(3) NOT NULL DEFAULT '0' COMMENT '星星数量',<br/>&nbsp;&nbsp; color char(7) NOT NULL DEFAULT '' COMMENT '组头衔颜色',<br/>&nbsp;&nbsp; groupavatar char(60) NOT NULL DEFAULT '' COMMENT '组头像图标',<br/>&nbsp;&nbsp; readaccess tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '阅读权限',<br/>&nbsp;&nbsp; allowvisit tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许访问',<br/>&nbsp;&nbsp; allowpost tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许发帖',<br/>&nbsp;&nbsp; allowreply tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许回复',<br/>&nbsp;&nbsp; allowpostpoll tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许发表投票',<br/>&nbsp;&nbsp; allowpostreward tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许发表悬赏',<br/>&nbsp;&nbsp; allowposttrade tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许发表交易',<br/>&nbsp;&nbsp; allowpostactivity tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许发表活动',<br/>&nbsp;&nbsp; allowdirectpost tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否需要审核',<br/>&nbsp;&nbsp; allowgetattach tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许下载附件',<br/>&nbsp;&nbsp; allowpostattach tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许上传附件',<br/>&nbsp;&nbsp; allowvote tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许参与投票',<br/>&nbsp;&nbsp; allowmultigroups tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许加入/离开公共用户组',<br/>&nbsp;&nbsp; allowsearch tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许搜索',<br/>&nbsp;&nbsp; allowcstatus tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许自定义头衔',<br/>&nbsp;&nbsp; allowuseblog tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许使用论坛文集',<br/>&nbsp;&nbsp; allowinvisible tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许隐身登录',<br/>&nbsp;&nbsp; allowtransfer tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许积分转帐',<br/>&nbsp;&nbsp; allowsetreadperm tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许设置阅读权限',<br/>&nbsp;&nbsp; allowsetattachperm tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许设置附件权限',<br/>&nbsp;&nbsp; allowhidecode tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许使用hide代码',<br/>&nbsp;&nbsp; allowhtml tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许使用html',<br/>&nbsp;&nbsp; allowcusbbcode tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许使用自定义bbocde',<br/>&nbsp;&nbsp; allowanonymous tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许匿名发帖',<br/>&nbsp;&nbsp; allownickname tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许使用昵称',<br/>&nbsp;&nbsp; allowsigbbcode tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许签名使用bbocde',<br/>&nbsp;&nbsp; allowsigimgcode tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许使用img',<br/>&nbsp;&nbsp; allowviewpro tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许查看会员资料',<br/>&nbsp;&nbsp; allowviewstats tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许查看统计数据',<br/>&nbsp;&nbsp; disableperiodctrl tinyint(1) NOT NULL DEFAULT '0' COMMENT '不受时间段限制',<br/>&nbsp;&nbsp; reasonpm tinyint(1) NOT NULL DEFAULT '0' COMMENT '操作理由短信通知作者',<br/>&nbsp;&nbsp; maxprice smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '主题最大售价',<br/>&nbsp;&nbsp; maxsigsize smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '最大签名尺寸',<br/>&nbsp;&nbsp; maxattachsize mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '最大附件尺寸',<br/>&nbsp;&nbsp; maxsizeperday int(10) unsigned NOT NULL DEFAULT '0' COMMENT '每天最大附件总尺寸',<br/>&nbsp;&nbsp; maxpostsperhour tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '每小时发帖数限制',<br/>&nbsp;&nbsp; attachextensions char(100) NOT NULL DEFAULT '' COMMENT '允许发表的附件类型',<br/>&nbsp;&nbsp; raterange char(150) NOT NULL DEFAULT '' COMMENT '评分范围',<br/>&nbsp;&nbsp; mintradeprice smallint(6) unsigned NOT NULL DEFAULT '1' COMMENT '交易最小积分',<br/>&nbsp;&nbsp; maxtradeprice smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '交易最大积分',<br/>&nbsp;&nbsp; minrewardprice smallint(6) unsigned NOT NULL DEFAULT '1' COMMENT '悬赏最小积分',<br/>&nbsp;&nbsp; maxrewardprice smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '悬赏最大积分',<br/>&nbsp;&nbsp; magicsdiscount tinyint(1) NOT NULL COMMENT '道具折扣',<br/>&nbsp;&nbsp; allowmagics tinyint(1) unsigned NOT NULL COMMENT '允许使用道具',<br/>&nbsp;&nbsp; maxmagicsweight smallint(6) unsigned NOT NULL COMMENT '道具负载最大值',<br/>&nbsp;&nbsp; allowbiobbcode tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '允许在自我介绍里面discuzcode标签',<br/>&nbsp;&nbsp; allowbioimgcode tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '允许在自我介绍里面img标签',<br/>&nbsp;&nbsp; maxbiosize smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '自我介绍最大字数限制',<br/>&nbsp;&nbsp; allowinvite tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许使用邀请注册',<br/>&nbsp;&nbsp; allowmailinvite tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许通过论坛邮件系统发送邀请码',<br/>&nbsp;&nbsp; maxinvitenum tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '最大邀请码拥有数量',<br/>&nbsp;&nbsp; inviteprice smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '邀请码购买价格',<br/>&nbsp;&nbsp; maxinviteday smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '邀请码有效期',<br/>&nbsp;&nbsp; allowpostdebate tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许发表辩论',<br/>&nbsp;&nbsp; tradestick tinyint(1) unsigned NOT NULL COMMENT '可商品推荐数',<br/>&nbsp;&nbsp; exempt tinyint(1) unsigned NOT NULL COMMENT '用户组表达式',<br/>&nbsp;&nbsp; allowsendpm tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否允许发送短信息',<br/>&nbsp;&nbsp; maxattachnum smallint(6) NOT NULL DEFAULT '0' COMMENT '最大每天附件数量',<br/>&nbsp;&nbsp; allowposturl tinyint(1) NOT NULL DEFAULT '3' COMMENT '是否允许发送含 url 内容',<br/>&nbsp;&nbsp; allowrecommend TINYINT(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否允许评价主题',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (groupid),<br/>&nbsp;&nbsp; KEY creditsrange (creditshigher,creditslower)<br/>) TYPE=MyISAM COMMENT='会员用户组表';<br/><br/>DROP TABLE IF EXISTS cdb_validating;<br/>CREATE TABLE cdb_validating (<br/>&nbsp;&nbsp; uid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '会员id',<br/>&nbsp;&nbsp; submitdate int(10) unsigned NOT NULL DEFAULT '0' COMMENT '提交日期',<br/>&nbsp;&nbsp; moddate int(10) unsigned NOT NULL DEFAULT '0' COMMENT '审核日期',<br/>&nbsp;&nbsp; admin varchar(15) NOT NULL DEFAULT '' COMMENT '管理员名',<br/>&nbsp;&nbsp; submittimes tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '提交的次数',<br/>&nbsp;&nbsp; status tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态',<br/>&nbsp;&nbsp; message text NOT NULL COMMENT '注册原因',<br/>&nbsp;&nbsp; remark text NOT NULL COMMENT '管理员留言',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (uid),<br/>&nbsp;&nbsp; KEY status (status)<br/>) TYPE=MyISAM COMMENT='用户审核表';<br/><br/>DROP TABLE IF EXISTS cdb_warnings;<br/>CREATE TABLE cdb_warnings (<br/>&nbsp;&nbsp; wid smallint(6) unsigned NOT NULL AUTO_INCREMENT COMMENT '记录id',<br/>&nbsp;&nbsp; pid int(10) unsigned NOT NULL COMMENT '帖子 pid',<br/>&nbsp;&nbsp; operatorid mediumint(8) unsigned NOT NULL COMMENT '警告者 Uid',<br/>&nbsp;&nbsp; operator char(15) NOT NULL COMMENT '警告者用户名',<br/>&nbsp;&nbsp; authorid mediumint(8) unsigned NOT NULL COMMENT '被警告者 uid',<br/>&nbsp;&nbsp; author char(15) NOT NULL COMMENT '被警告者用户名',<br/>&nbsp;&nbsp; dateline int(10) unsigned NOT NULL COMMENT '警告时间',<br/>&nbsp;&nbsp; reason char(40) NOT NULL COMMENT '警告原因',<br/>&nbsp;&nbsp; PRIMARY KEY (wid),<br/>&nbsp;&nbsp; UNIQUE KEY pid (pid),<br/>&nbsp;&nbsp; KEY authorid (authorid)<br/>) TYPE=MyISAM COMMENT='警告记录表';<br/><br/>DROP TABLE IF EXISTS cdb_words;<br/>CREATE TABLE cdb_words (<br/>&nbsp;&nbsp; id smallint(6) unsigned NOT NULL auto_increment COMMENT '词汇id',<br/>&nbsp;&nbsp; admin varchar(15) NOT NULL DEFAULT '' COMMENT '管理员名',<br/>&nbsp;&nbsp; find varchar(255) NOT NULL DEFAULT '' COMMENT '不良词语',<br/>&nbsp;&nbsp; replacement varchar(255) NOT NULL DEFAULT '' COMMENT '替换内容',<br/>&nbsp;&nbsp; extra varchar(255) NOT NULL DEFAULT '',<br/>&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp; (id)<br/>) TYPE=MyISAM COMMENT='词语过滤表';<br/><br/><br/><br/><br/>Tags - <a href="http://www.dzhope.com/tags/discuz/" rel="tag">discuz</a> , <a href="http://www.dzhope.com/tags/%25E6%2595%25B0%25E6%258D%25AE%25E5%25AD%2597%25E5%2585%25B8/" rel="tag">数据字典</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] Discuz7.2数据字典[2]]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>