Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] Discuz! X2.5数据字典

[复制链接]
gdnyhl 发表于 2012-8-6 02:17:26 | 显示全部楼层 |阅读模式
  1. DROP TABLE IF EXISTS pre_common_admincp_cmenu;
  2. CREATE TABLE pre_common_admincp_cmenu (
  3. `id` SMALLINT(6) UNSIGNED NOT NULL AUTO_INCREMENT,
  4. `title` VARCHAR(255) NOT NULL COMMENT '菜单名称',
  5. `url` VARCHAR(255) NOT NULL COMMENT '菜单地址',
  6. `sort` TINYINT(1) NOT NULL DEFAULT '0' COMMENT '菜单类型,备用',
  7. `displayorder` TINYINT(3) NOT NULL COMMENT '显示顺序',
  8. `clicks` SMALLINT(6) UNSIGNED NOT NULL DEFAULT '1' COMMENT '点击数,备用',
  9. `uid` MEDIUMINT(8) UNSIGNED NOT NULL COMMENT '添加用户',
  10. `dateline` INT(10) UNSIGNED NOT NULL COMMENT '添加时间',
  11. PRIMARY KEY (`id`),
  12. KEY `uid` (`uid`),
  13. KEY `displayorder` (`displayorder`)
  14. ) ENGINE=MYISAM COMMENT='后台菜单收藏表';

  15. DROP TABLE IF EXISTS pre_common_admingroup;
  16. CREATE TABLE pre_common_admingroup (
  17. admingid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '所属管理员分组ID',
  18. alloweditpost tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许编辑帖子',
  19. alloweditpoll tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许编辑投票',
  20. allowstickthread tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许置顶主题',
  21. allowmodpost tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许审核帖子',
  22. allowdelpost tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许删除帖子',
  23. allowmassprune tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许批量删帖',
  24. allowrefund tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许强制退款',
  25. allowcensorword tinyint(1) NOT NULL DEFAULT '0' COMMENT '兼容性字段',
  26. allowviewip tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许查看IP',
  27. allowbanip tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许禁止IP',
  28. allowedituser tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许编辑用户',
  29. allowmoduser tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许审核用户',
  30. allowbanuser tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许禁止用户发言',
  31. allowbanvisituser tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许禁止用户访问',
  32. allowpostannounce tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许发布站点公告',
  33. allowviewlog tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许查看管理日志',
  34. allowbanpost tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许屏蔽帖子',
  35. supe_allowpushthread tinyint(1) NOT NULL DEFAULT '0' COMMENT '兼容性字段',
  36. allowhighlightthread tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许高亮主题',
  37. allowdigestthread tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许精华主题',
  38. allowrecommendthread tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许推荐主题',
  39. allowbumpthread tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许提升主题',
  40. allowclosethread tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许关闭主题',
  41. allowmovethread tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许移动主题',
  42. allowedittypethread tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许编辑主题分类',
  43. allowstampthread tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许添加主题图章',
  44. allowstamplist tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许添加主题图标',
  45. allowcopythread tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许复制主题',
  46. allowmergethread tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许合并主题',
  47. allowsplitthread tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许分割主题',
  48. allowrepairthread tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许修复主题',
  49. allowwarnpost tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许警告帖子',
  50. allowviewreport tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许查看用户报告',
  51. alloweditforum tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许编辑版块',
  52. allowremovereward tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许移除悬赏',
  53. allowedittrade tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许编辑商品',
  54. alloweditactivity tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理活动报名者',
  55. allowstickreply tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许置顶回帖',
  56. allowmanagearticle tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理所有文章',
  57. allowaddtopic tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许创建专题',
  58. allowmanagetopic tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理专题',
  59. allowdiy tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许DIY',
  60. allowclearrecycle tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许删除回收站的帖子',
  61. allowmanagetag tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理标签',
  62. alloweditusertag tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理用户标签',
  63. managefeed tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理动态(feed)',
  64. managedoing tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理记录',
  65. manageshare tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理分享',
  66. manageblog tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理日志',
  67. managealbum tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理相册',
  68. managecomment tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理评论',
  69. managemagiclog tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理道具记录',
  70. managereport tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理举报',
  71. managehotuser tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理推荐成员',
  72. managedefaultuser tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理推荐好友',
  73. managevideophoto tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理视频认证',
  74. managemagic tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理道具',
  75. manageclick tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理表态动作',
  76. allowmanagecollection tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许管理淘专辑',
  77. PRIMARY KEY (admingid)
  78. ) ENGINE=MyISAM COMMENT='管理组表';

  79. DROP TABLE IF EXISTS pre_common_adminnote;
  80. CREATE TABLE pre_common_adminnote (
  81. id mediumint(8) unsigned NOT NULL auto_increment COMMENT '后台留言id',
  82. admin varchar(15) NOT NULL default COMMENT '管理员姓名',
  83. access tinyint(3) NOT NULL default '0' COMMENT '哪组可以看到信息',
  84. adminid tinyint(3) NOT NULL default '0' COMMENT '管理员id',
  85. dateline int(10) unsigned NOT NULL default '0' COMMENT '发表时间',
  86. expiration int(10) unsigned NOT NULL default '0' COMMENT '过期时间',
  87. message text NOT NULL COMMENT '消息',
  88. PRIMARY KEY (id)
  89. ) ENGINE=MyISAM COMMENT='后台留言表';

  90. DROP TABLE IF EXISTS pre_common_advertisement;
  91. CREATE TABLE pre_common_advertisement (
  92. advid mediumint(8) unsigned NOT NULL auto_increment COMMENT '广告id',
  93. available tinyint(1) NOT NULL default '0' COMMENT '是否启用',
  94. `type` varchar(50) NOT NULL default '0' COMMENT '类型',
  95. displayorder tinyint(3) NOT NULL default '0' COMMENT '显示顺序',
  96. title varchar(255) NOT NULL default COMMENT '广告标题',
  97. targets text NOT NULL COMMENT '投放范围',
  98. parameters text NOT NULL COMMENT '参数\n序列化存放的数组数据',
  99. `code` text NOT NULL COMMENT '代码',
  100. starttime int(10) unsigned NOT NULL default '0' COMMENT '开始时间',
  101. endtime int(10) unsigned NOT NULL default '0' COMMENT '结束时间',
  102. PRIMARY KEY (advid)
  103. ) ENGINE=MyISAM COMMENT='广告数据表';

  104. DROP TABLE IF EXISTS pre_common_advertisement_custom;
  105. CREATE TABLE pre_common_advertisement_custom (
  106. `id` smallint(5) unsigned NOT NULL auto_increment COMMENT '自定义广告类型id',
  107. `name` varchar(255) NOT NULL COMMENT '名称',
  108. PRIMARY KEY (`id`),
  109. KEY `name` (`name`)
  110. ) ENGINE=MyISAM COMMENT='自定义广告数据表';

  111. DROP TABLE IF EXISTS pre_common_banned;
  112. CREATE TABLE pre_common_banned (
  113. id smallint(6) unsigned NOT NULL auto_increment COMMENT '禁止id',
  114. ip1 smallint(3) NOT NULL default '0' COMMENT 'IP分段1',
  115. ip2 smallint(3) NOT NULL default '0' COMMENT 'IP分段2',
  116. ip3 smallint(3) NOT NULL default '0' COMMENT 'IP分段3',
  117. ip4 smallint(3) NOT NULL default '0' COMMENT 'IP分段4',
  118. admin varchar(15) NOT NULL default COMMENT '管理员姓名',
  119. dateline int(10) unsigned NOT NULL default '0' COMMENT '禁止时间',
  120. expiration int(10) unsigned NOT NULL default '0' COMMENT '过期时间',
  121. PRIMARY KEY (id)
  122. ) ENGINE=MyISAM COMMENT='禁止访问表';

  123. DROP TABLE IF EXISTS pre_common_cache;
  124. CREATE TABLE pre_common_cache (
  125. cachekey varchar(255) NOT NULL default ,
  126. cachevalue mediumblob NOT NULL,
  127. dateline int(10) unsigned NOT NULL default '0',
  128. PRIMARY KEY (cachekey)
  129. ) ENGINE=MyISAM COMMENT='通用缓存表';

  130. DROP TABLE IF EXISTS pre_common_card;
  131. CREATE TABLE pre_common_card (
  132. id char(255) NOT NULL default COMMENT '生成的卡片号码',
  133. typeid smallint(6) unsigned NOT NULL default '1' COMMENT '卡片分类',
  134. maketype tinyint(1) NOT NULL default '0' COMMENT '卡片生成的方法',
  135. makeruid mediumint(8) unsigned NOT NULL default '0' COMMENT '卡片生成者uid',
  136. `price` mediumint(8) unsigned NOT NULL default '0' COMMENT '卡片面值',
  137. `extcreditskey` tinyint(1) NOT NULL default '0' COMMENT '充值积分种类',
  138. `extcreditsval` int(10) NOT NULL default '0' COMMENT '积分数额',
  139. `status` tinyint(1) unsigned NOT NULL default '1' COMMENT '卡片状态(位与):1:可用,2:已用',
  140. dateline int(10) unsigned NOT NULL default '0' COMMENT '卡片生成时间',
  141. cleardateline int(10) unsigned NOT NULL default '0' COMMENT '卡片清理时间',
  142. useddateline int(10) unsigned NOT NULL default '0' COMMENT '使用时间',
  143. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '使用者',
  144. PRIMARY KEY (id),
  145. KEY `dateline` (`dateline`)
  146. ) ENGINE=MyISAM COMMENT='充值卡密表';

  147. DROP TABLE IF EXISTS pre_common_card_log;
  148. CREATE TABLE pre_common_card_log (
  149. id smallint(6) NOT NULL auto_increment COMMENT '生成的卡片号码',
  150. `uid` mediumint(8) NOT NULL default '0' COMMENT '卡片生成者',
  151. `username` varchar(20) NOT NULL default COMMENT '卡片生成者',
  152. cardrule varchar(255) NOT NULL default COMMENT '卡片生成规则',
  153. `info` text NOT NULL COMMENT '卡片生成log',
  154. dateline INT(10) unsigned NOT NULL default '0' COMMENT '本次log生成时间',
  155. description mediumtext NOT NULL COMMENT '卡片描述',
  156. operation tinyint(1) NOT NULL default '0' COMMENT '操作动作(位与):1:生成,2:任务生成,4:删除,9:卡片过期',
  157. PRIMARY KEY (id),
  158. KEY `dateline` (`dateline`),
  159. KEY `operation_dateline` (`operation`, `dateline`)
  160. ) ENGINE=MyISAM COMMENT='充值卡密表';

  161. DROP TABLE IF EXISTS pre_common_card_type;
  162. CREATE TABLE pre_common_card_type (
  163. id smallint(6) NOT NULL auto_increment COMMENT '卡片分类ID',
  164. typename char(20) NOT NULL default COMMENT '分类名称',
  165. PRIMARY KEY (id)
  166. ) ENGINE=MyISAM COMMENT='卡片分类表';
  167. DROP TABLE IF EXISTS pre_common_credit_log;
  168. CREATE TABLE pre_common_credit_log (
  169. `uid` mediumint(8) unsigned NOT NULL default '0' COMMENT '所属用户uid',
  170. `operation` char(3) NOT NULL default COMMENT '操作类型',
  171. `relatedid` int(10) unsigned NOT NULL COMMENT '操作相关ID',
  172. `dateline` int(10) unsigned NOT NULL COMMENT '记录时间',
  173. `extcredits1` int(10) NOT NULL COMMENT '积分1变化值',
  174. `extcredits2` int(10) NOT NULL COMMENT '积分2变化值',
  175. `extcredits3` int(10) NOT NULL COMMENT '积分3变化值',
  176. `extcredits4` int(10) NOT NULL COMMENT '积分4变化值',
  177. `extcredits5` int(10) NOT NULL COMMENT '积分5变化值',
  178. `extcredits6` int(10) NOT NULL COMMENT '积分6变化值',
  179. `extcredits7` int(10) NOT NULL COMMENT '积分7变化值',
  180. `extcredits8` int(10) NOT NULL COMMENT '积分8变化值',
  181. KEY `uid` (`uid`),
  182. KEY `operation` (`operation`),
  183. KEY `relatedid` (`relatedid`),
  184. KEY `dateline` (`dateline`)
  185. ) ENGINE=MyISAM COMMENT='积分日志表';

  186. DROP TABLE IF EXISTS pre_common_credit_rule_log;
  187. CREATE TABLE pre_common_credit_rule_log (
  188. clid mediumint(8) unsigned NOT NULL auto_increment COMMENT '策略日志ID',
  189. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '策略日志所有者uid',
  190. rid mediumint(8) unsigned NOT NULL default '0' COMMENT '策略ID',
  191. fid mediumint(8) unsigned NOT NULL default '0' COMMENT '版块ID',
  192. total mediumint(8) unsigned NOT NULL default '0' COMMENT '策略被执行总次数',
  193. cyclenum mediumint(8) unsigned NOT NULL default '0' COMMENT '周期被执行次数',
  194. extcredits1 int(10) NOT NULL default '0' COMMENT '扩展1',
  195. extcredits2 int(10) NOT NULL default '0' COMMENT '扩展2',
  196. extcredits3 int(10) NOT NULL default '0' COMMENT '扩展3',
  197. extcredits4 int(10) NOT NULL default '0' COMMENT '扩展4',
  198. extcredits5 int(10) NOT NULL default '0' COMMENT '扩展5',
  199. extcredits6 int(10) NOT NULL default '0' COMMENT '扩展6',
  200. extcredits7 int(10) NOT NULL default '0' COMMENT '扩展7',
  201. extcredits8 int(10) NOT NULL default '0' COMMENT '扩展8',
  202. starttime int(10) unsigned NOT NULL default '0' COMMENT '周期开始时间',
  203. dateline int(10) unsigned NOT NULL default '0' COMMENT '策略最后执行时间',
  204. PRIMARY KEY (clid),
  205. KEY uid (uid,rid, fid),
  206. KEY dateline (dateline)
  207. ) ENGINE=MyISAM COMMENT='积分规则日志表';

  208. DROP TABLE IF EXISTS pre_common_credit_rule_log_field;
  209. CREATE TABLE pre_common_credit_rule_log_field (
  210. clid mediumint(8) unsigned NOT NULL default '0' COMMENT '策略日志ID',
  211. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '策略日志所有者uid',
  212. info text NOT NULL COMMENT '记录信息防重',
  213. `user` text NOT NULL COMMENT '记录用户防重',
  214. app text NOT NULL COMMENT '记录应用防重',
  215. PRIMARY KEY (uid, clid)
  216. ) ENGINE=MyISAM COMMENT='积分规则日志扩展表';

  217. DROP TABLE IF EXISTS pre_common_credit_rule;
  218. CREATE TABLE pre_common_credit_rule (
  219. rid mediumint(8) unsigned NOT NULL auto_increment COMMENT '规则ID',
  220. rulename varchar(20) NOT NULL default COMMENT '规则名称',
  221. `action` varchar(20) NOT NULL default COMMENT '规则action唯一KEY',
  222. cycletype tinyint(1) NOT NULL default '0' COMMENT '奖励周期0:一次;1:每天;2:整点;3:间隔分钟;4:不限;',
  223. cycletime int(10) NOT NULL default '0' COMMENT '间隔时间',
  224. rewardnum tinyint(2) NOT NULL default '1' COMMENT '奖励次数',
  225. norepeat tinyint(1) NOT NULL default '0' COMMENT '是否去重1:去重;0:不去重',
  226. extcredits1 int(10) NOT NULL default '0' COMMENT '扩展1',
  227. extcredits2 int(10) NOT NULL default '0' COMMENT '扩展2',
  228. extcredits3 int(10) NOT NULL default '0' COMMENT '扩展3',
  229. extcredits4 int(10) NOT NULL default '0' COMMENT '扩展4',
  230. extcredits5 int(10) NOT NULL default '0' COMMENT '扩展5',
  231. extcredits6 int(10) NOT NULL default '0' COMMENT '扩展6',
  232. extcredits7 int(10) NOT NULL default '0' COMMENT '扩展7',
  233. extcredits8 int(10) NOT NULL default '0' COMMENT '扩展8',
  234. fids text NOT NULL COMMENT '记录自定义策略版块ID',
  235. PRIMARY KEY (rid),
  236. UNIQUE KEY `action` (`action`)
  237. ) ENGINE=MyISAM COMMENT='积分规则表';

  238. DROP TABLE IF EXISTS pre_common_cron;
  239. CREATE TABLE pre_common_cron (
  240. cronid smallint(6) unsigned NOT NULL auto_increment COMMENT '计划任务id',
  241. available tinyint(1) NOT NULL default '0' COMMENT '是否启用',
  242. `type` enum('user','system') NOT NULL default 'user' COMMENT '类型',
  243. `name` char(50) NOT NULL default COMMENT '名称',
  244. filename char(50) NOT NULL default COMMENT '对应文件',
  245. lastrun int(10) unsigned NOT NULL default '0' COMMENT '上次执行时间',
  246. nextrun int(10) unsigned NOT NULL default '0' COMMENT '下次执行时间',
  247. weekday tinyint(1) NOT NULL default '0' COMMENT '周计划',
  248. `day` tinyint(2) NOT NULL default '0' COMMENT '日计划',
  249. `hour` tinyint(2) NOT NULL default '0' COMMENT '小时计划',
  250. `minute` char(36) NOT NULL default COMMENT '分计划',
  251. PRIMARY KEY (cronid),
  252. KEY nextrun (available,nextrun)
  253. ) ENGINE=MyISAM COMMENT='计划任务表';

  254. DROP TABLE IF EXISTS pre_common_domain;
  255. CREATE TABLE pre_common_domain (
  256. domain char(30) NOT NULL default COMMENT '域名前缀',
  257. domainroot char(60) NOT NULL default COMMENT '二级域名后缀',
  258. id mediumint(8) unsigned NOT NULL default '0' COMMENT '对应对象id',
  259. idtype char(15) NOT NULL default COMMENT '对应对象类型subarea:分区、forum:版块、home:个人空间、group:群组、topic:专题、channel:频道',
  260. PRIMARY KEY (id, idtype),
  261. KEY domain (domain, domainroot),
  262. KEY idtype (idtype)
  263. ) ENGINE=MyISAM COMMENT='二级域名表';

  264. DROP TABLE IF EXISTS pre_common_failedlogin;
  265. CREATE TABLE pre_common_failedlogin (
  266. ip char(15) NOT NULL default COMMENT '失败IP',
  267. username char(32) NOT NULL default COMMENT '失败时的用户名',
  268. count tinyint(1) unsigned NOT NULL default '0' COMMENT '尝试次数',
  269. lastupdate int(10) unsigned NOT NULL default '0' COMMENT '最后一次尝试时间',
  270. PRIMARY KEY (ip,username)
  271. ) ENGINE=MyISAM COMMENT='失败登录表';

  272. DROP TABLE IF EXISTS pre_common_friendlink;
  273. CREATE TABLE pre_common_friendlink (
  274. id smallint(6) unsigned NOT NULL auto_increment COMMENT 'id',
  275. displayorder tinyint(3) NOT NULL default '0' COMMENT '显示顺序,正序',
  276. `name` varchar(100) NOT NULL default COMMENT '名称',
  277. url varchar(255) NOT NULL default COMMENT 'url',
  278. description mediumtext NOT NULL COMMENT '解释说明',
  279. logo varchar(255) NOT NULL default COMMENT 'logo',
  280. `type` tinyint(3) NOT NULL default '0',
  281. PRIMARY KEY (id)
  282. ) ENGINE=MyISAM COMMENT='友情链接表';

  283. DROP TABLE IF EXISTS pre_common_relatedlink;
  284. CREATE TABLE pre_common_relatedlink (
  285. id smallint(6) unsigned NOT NULL auto_increment COMMENT 'id',
  286. `name` varchar(100) NOT NULL default COMMENT '名称',
  287. url varchar(255) NOT NULL default COMMENT 'url',
  288. `extent` tinyint(3) NOT NULL default '0',
  289. PRIMARY KEY (id)
  290. ) ENGINE=MyISAM COMMENT='关联链接表';

  291. DROP TABLE IF EXISTS pre_common_invite;
  292. CREATE TABLE pre_common_invite (
  293. id mediumint(8) unsigned NOT NULL auto_increment COMMENT 'ID',
  294. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '邀请人',
  295. `code` char(20) NOT NULL default COMMENT '邀请码',
  296. fuid mediumint(8) unsigned NOT NULL default '0' COMMENT '受邀人UID',
  297. fusername char(20) NOT NULL default COMMENT '受邀人姓名',
  298. `type` tinyint(1) NOT NULL default '0' COMMENT '邮件邀请 1是0否',
  299. email char(40) NOT NULL default COMMENT '邀请Email',
  300. inviteip char(15) NOT NULL default COMMENT '邀请IP',
  301. appid mediumint(8) unsigned NOT NULL default '0' COMMENT '应用ID',
  302. dateline int(10) unsigned NOT NULL default '0' COMMENT '邀请码生成时间',
  303. endtime int(10) unsigned NOT NULL default '0' COMMENT '邀请码结束时间',
  304. regdateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '注册时间',
  305. `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '邀请码状态',
  306. orderid char(32) NOT NULL default COMMENT '购买邀请码的订单号id',
  307. PRIMARY KEY (id),
  308. KEY uid (uid, dateline)
  309. ) ENGINE=MyISAM COMMENT='邀请表';

  310. DROP TABLE IF EXISTS pre_common_mailcron;
  311. CREATE TABLE pre_common_mailcron (
  312. cid mediumint(8) unsigned NOT NULL auto_increment,
  313. touid mediumint(8) unsigned NOT NULL default '0',
  314. email varchar(100) NOT NULL default ,
  315. sendtime int(10) unsigned NOT NULL default '0',
  316. PRIMARY KEY (cid),
  317. KEY sendtime (sendtime)
  318. ) ENGINE=MyISAM COMMENT='邮件计划任务表';

  319. DROP TABLE IF EXISTS pre_common_mailqueue;
  320. CREATE TABLE pre_common_mailqueue (
  321. qid mediumint(8) unsigned NOT NULL auto_increment,
  322. cid mediumint(8) unsigned NOT NULL default '0',
  323. `subject` text NOT NULL,
  324. message text NOT NULL,
  325. dateline int(10) unsigned NOT NULL default '0',
  326. PRIMARY KEY (qid),
  327. KEY mcid (cid,dateline)
  328. ) ENGINE=MyISAM COMMENT='邮件队列表';

  329. DROP TABLE IF EXISTS pre_common_member;
  330. CREATE TABLE pre_common_member (
  331. uid mediumint(8) unsigned NOT NULL auto_increment COMMENT '会员id',
  332. email char(40) NOT NULL default COMMENT '邮箱',
  333. username char(15) NOT NULL default COMMENT '用户名',
  334. `password` char(32) NOT NULL default COMMENT '密码',
  335. `status` tinyint(1) NOT NULL default '0' COMMENT '判断用户是否已经删除 需要discuz程序加判断,并增加整体清理的功能。原home字段为flag',
  336. emailstatus tinyint(1) NOT NULL default '0' COMMENT 'email是否经过验证 home字段为emailcheck',
  337. avatarstatus tinyint(1) NOT NULL default '0' COMMENT '是否有头像 home字段为avatar',
  338. videophotostatus tinyint(1) NOT NULL default '0' COMMENT '视频认证状态 home',
  339. adminid tinyint(1) NOT NULL default '0' COMMENT '管理员id',
  340. groupid smallint(6) unsigned NOT NULL default '0' COMMENT '会员组id',
  341. groupexpiry int(10) unsigned NOT NULL default '0' COMMENT '用户组有效期',
  342. extgroupids char(20) NOT NULL default COMMENT '扩展用户组',
  343. regdate int(10) unsigned NOT NULL default '0' COMMENT '注册时间',
  344. credits int(10) NOT NULL default '0' COMMENT '总积分',
  345. notifysound tinyint(1) NOT NULL default '0' COMMENT '短信声音',
  346. timeoffset char(4) NOT NULL default COMMENT '时区校正',
  347. newpm smallint(6) unsigned NOT NULL default '0' COMMENT '新短消息数量',
  348. newprompt smallint(6) unsigned NOT NULL default '0' COMMENT '新提醒数目',
  349. accessmasks tinyint(1) NOT NULL default '0' COMMENT '标志',
  350. allowadmincp tinyint(1) NOT NULL default '0' COMMENT '标志',
  351. onlyacceptfriendpm tinyint(1) NOT NULL default '0' COMMENT '是否只接收好友短消息',
  352. conisbind tinyint(1) unsigned NOT NULL default '0' COMMENT '用户是否绑定QC',
  353. PRIMARY KEY (uid),
  354. UNIQUE KEY `username` (`username`),
  355. KEY `email` (`email`),
  356. KEY `groupid` (`groupid`),
  357. KEY `conisbind` (`conisbind`)
  358. ) ENGINE=MyISAM COMMENT='用户主表';

  359. DROP TABLE IF EXISTS pre_common_member_count;
  360. CREATE TABLE pre_common_member_count (
  361. uid mediumint(8) unsigned NOT NULL COMMENT '会员id',
  362. extcredits1 int(10) NOT NULL default '0' COMMENT '声望',
  363. extcredits2 int(10) NOT NULL default '0' COMMENT '金钱',
  364. extcredits3 int(10) NOT NULL default '0' COMMENT '扩展',
  365. extcredits4 int(10) NOT NULL default '0' COMMENT '扩展',
  366. extcredits5 int(10) NOT NULL default '0' COMMENT '扩展',
  367. extcredits6 int(10) NOT NULL default '0' COMMENT '扩展',
  368. extcredits7 int(10) NOT NULL default '0' COMMENT '扩展',
  369. extcredits8 int(10) NOT NULL default '0' COMMENT '扩展',
  370. friends smallint(6) unsigned NOT NULL default '0' COMMENT '好友个数 home',
  371. posts mediumint(8) unsigned NOT NULL default '0' COMMENT '帖子数',
  372. threads mediumint(8) unsigned NOT NULL default '0' COMMENT '主题数',
  373. digestposts smallint(6) unsigned NOT NULL default '0' COMMENT '精华数',
  374. doings smallint(6) unsigned NOT NULL default '0' COMMENT '记录数',
  375. blogs smallint(6) unsigned NOT NULL default '0' COMMENT '日志数',
  376. albums smallint(6) unsigned NOT NULL default '0' COMMENT '相册数',
  377. sharings smallint(6) unsigned NOT NULL default '0' COMMENT '分享数',
  378. attachsize int(10) unsigned NOT NULL default '0' COMMENT '上传附件占用的空间 home',
  379. views mediumint(8) unsigned NOT NULL default '0' COMMENT '空间查看数',
  380. oltime smallint(6) unsigned NOT NULL default '0' COMMENT '在线时间',
  381. todayattachs smallint(6) unsigned NOT NULL default '0' COMMENT '当天上传附件数',
  382. todayattachsize int(10) unsigned NOT NULL default '0' COMMENT '当天上传附件容量',
  383. feeds mediumint(8) unsigned NOT NULL default '0' COMMENT '广播数',
  384. follower mediumint(8) unsigned NOT NULL default '0' COMMENT '听众数量',
  385. following mediumint(8) unsigned NOT NULL default '0' COMMENT '收听数量',
  386. newfollower mediumint(8) unsigned NOT NULL default '0' COMMENT '新增听众数量',
  387. PRIMARY KEY (uid),
  388. KEY posts (posts)
  389. ) ENGINE=MyISAM COMMENT='用户统计表';

  390. DROP TABLE IF EXISTS pre_common_member_field_forum;
  391. CREATE TABLE pre_common_member_field_forum (
  392. uid mediumint(8) unsigned NOT NULL COMMENT '会员id',
  393. publishfeed tinyint(3) NOT NULL default '0' COMMENT '用户自定义发送哪些类型的feed(原字段为customaddfeed)',
  394. customshow tinyint(1) unsigned NOT NULL default '26' COMMENT '自定义帖子显示模式',
  395. customstatus varchar(30) NOT NULL default COMMENT '自定义头衔',
  396. medals text NOT NULL COMMENT '勋章信息',
  397. sightml text NOT NULL COMMENT '签名',
  398. groupterms text NOT NULL COMMENT '公共用户组',
  399. authstr varchar(20) NOT NULL default COMMENT '找回密码验证串',
  400. groups mediumtext NOT NULL COMMENT '用户所有群组',
  401. attentiongroup varchar(255) NOT NULL default COMMENT '用户偏好',
  402. PRIMARY KEY (uid)
  403. ) ENGINE=MyISAM COMMENT='用户论坛字段表';

  404. DROP TABLE IF EXISTS pre_common_member_field_home;
  405. CREATE TABLE pre_common_member_field_home (
  406. uid mediumint(8) unsigned NOT NULL COMMENT '会员id',
  407. videophoto varchar(255) NOT NULL default COMMENT '视频认证照片地址 home',
  408. spacename varchar(255) NOT NULL default COMMENT '空间名称',
  409. spacedescription varchar(255) NOT NULL default COMMENT '空间简介',
  410. `domain` char(15) NOT NULL default COMMENT '空间绑定二级域名 home',
  411. addsize int(10) unsigned NOT NULL default '0' COMMENT '额外授予的上传空间 home',
  412. addfriend smallint(6) unsigned NOT NULL default '0' COMMENT '额外允许增加的好友数 home',
  413. menunum smallint(6) unsigned NOT NULL default '0' COMMENT '应用显示个数',
  414. theme varchar(20) NOT NULL default COMMENT '空间风格主题 home',
  415. spacecss text NOT NULL COMMENT '个人空间自定义css home',
  416. blockposition text NOT NULL COMMENT '个人空间自定义模块位置及相关参数 home',
  417. recentnote text NOT NULL COMMENT '最近一次行为记录',
  418. spacenote text NOT NULL COMMENT '最近一次twitter',
  419. privacy text NOT NULL COMMENT 'home隐私设置(注意要和论坛发feed等开关的设置结合)',
  420. feedfriend mediumtext NOT NULL COMMENT '接受feed的好友缓存',
  421. acceptemail text NOT NULL COMMENT '接受新通知邮件及设置邮件接收参数',
  422. magicgift text NOT NULL COMMENT '道具红包卡相关信息',
  423. stickblogs text NOT NULL COMMENT '置顶的日志ID',
  424. PRIMARY KEY (uid),
  425. KEY domain (domain)
  426. ) ENGINE=MyISAM COMMENT='用户家园字段表';

  427. DROP TABLE IF EXISTS pre_common_member_profile;
  428. CREATE TABLE pre_common_member_profile (
  429. uid mediumint(8) unsigned NOT NULL COMMENT '会员id',
  430. realname varchar(255) NOT NULL default COMMENT '实名',
  431. gender tinyint(1) NOT NULL default '0' COMMENT '性别\n(0:保密 1:男 2:女)',
  432. birthyear smallint(6) unsigned NOT NULL default '0',
  433. birthmonth tinyint(3) unsigned NOT NULL default '0',
  434. birthday tinyint(3) unsigned NOT NULL default '0',
  435. constellation varchar(255) NOT NULL default COMMENT '星座(根据生日自动计算)',
  436. zodiac varchar(255) NOT NULL default COMMENT '生肖(根据生日自动计算)',
  437. telephone varchar(255) NOT NULL default COMMENT '固定电话',
  438. mobile varchar(255) NOT NULL default COMMENT '手机',
  439. idcardtype varchar(255) NOT NULL default COMMENT '证件类型:身份证 护照 军官证等',
  440. idcard varchar(255) NOT NULL default COMMENT '证件号码',
  441. address varchar(255) NOT NULL default COMMENT '邮寄地址',
  442. zipcode varchar(255) NOT NULL default COMMENT '邮编',
  443. nationality varchar(255) NOT NULL default COMMENT '国籍',
  444. birthprovince varchar(255) NOT NULL default COMMENT '出生省份',
  445. birthcity varchar(255) NOT NULL default COMMENT '出生城市',
  446. birthdist varchar(20) NOT NULL default COMMENT '出生行政区/县',
  447. birthcommunity varchar(255) NOT NULL default COMMENT '出生小区',
  448. resideprovince varchar(255) NOT NULL default COMMENT '居住省份',
  449. residecity varchar(255) NOT NULL default COMMENT '居住城市',
  450. residedist varchar(20) NOT NULL default COMMENT '居住行政区/县',
  451. residecommunity varchar(255) NOT NULL default COMMENT '居住小区',
  452. residesuite varchar(255) NOT NULL default COMMENT '小区、写字楼门牌号',
  453. graduateschool varchar(255) NOT NULL default COMMENT '毕业学校',
  454. company varchar(255) NOT NULL default COMMENT ' 公司',
  455. education varchar(255) NOT NULL default COMMENT ' 学历',
  456. occupation varchar(255) NOT NULL default COMMENT ' 职业',
  457. `position` varchar(255) NOT NULL default COMMENT '职位',
  458. revenue varchar(255) NOT NULL default COMMENT ' 年收入',
  459. affectivestatus varchar(255) NOT NULL default COMMENT ' 情感状态',
  460. lookingfor varchar(255) NOT NULL default COMMENT ' 交友目的(交友类型)',
  461. bloodtype varchar(255) NOT NULL default COMMENT '血型',
  462. height varchar(255) NOT NULL default COMMENT ' 身高',
  463. weight varchar(255) NOT NULL default COMMENT ' 体重',
  464. alipay varchar(255) NOT NULL default COMMENT '支付宝帐号',
  465. icq varchar(255) NOT NULL default COMMENT 'ICQ',
  466. qq varchar(255) NOT NULL default COMMENT 'QQ',
  467. yahoo varchar(255) NOT NULL default COMMENT 'YAHOO',
  468. msn varchar(255) NOT NULL default COMMENT 'MSN',
  469. taobao varchar(255) NOT NULL default COMMENT '阿里旺旺',
  470. site varchar(255) NOT NULL default COMMENT '主页',
  471. bio text NOT NULL COMMENT '自我介绍 来自论坛bio字段',
  472. interest text NOT NULL COMMENT '兴趣爱好',
  473. field1 text NOT NULL COMMENT '自定义字段1',
  474. field2 text NOT NULL COMMENT '自定义字段2',
  475. field3 text NOT NULL COMMENT '自定义字段3',
  476. field4 text NOT NULL COMMENT '自定义字段4',
  477. field5 text NOT NULL COMMENT '自定义字段5',
  478. field6 text NOT NULL COMMENT '自定义字段6',
  479. field7 text NOT NULL COMMENT '自定义字段7',
  480. field8 text NOT NULL COMMENT '自定义字段8',
  481. PRIMARY KEY (uid)
  482. ) ENGINE=MyISAM COMMENT='用户栏目表';

  483. DROP TABLE IF EXISTS pre_common_member_status;
  484. CREATE TABLE pre_common_member_status (
  485. uid mediumint(8) unsigned NOT NULL COMMENT '会员id',
  486. regip char(15) NOT NULL default COMMENT '注册IP',
  487. lastip char(15) NOT NULL default COMMENT '最后登录IP',
  488. lastvisit int(10) unsigned NOT NULL default '0' COMMENT '最后访问',
  489. lastactivity int(10) unsigned NOT NULL default '0' COMMENT '最后活动',
  490. lastpost int(10) unsigned NOT NULL default '0' COMMENT '最后发表',
  491. lastsendmail int(10) unsigned NOT NULL default '0' COMMENT '上次发送email时间 home原字段为lastsend',
  492. invisible tinyint(1) NOT NULL default '0' COMMENT '是否隐身登录',
  493. buyercredit smallint(6) NOT NULL default '0' COMMENT '买家信用等级及积分',
  494. sellercredit smallint(6) NOT NULL default '0' COMMENT '卖家信用等级及积分',
  495. favtimes mediumint(8) unsigned NOT NULL default '0' COMMENT '个人空间收藏次数',
  496. sharetimes mediumint(8) unsigned NOT NULL default '0' COMMENT '个人空间分享次数',
  497. profileprogress tinyint(2) unsigned NOT NULL default '0' COMMENT '个人资料完成度',
  498. PRIMARY KEY (uid),
  499. KEY lastactivity (lastactivity, invisible)
  500. ) ENGINE=MyISAM COMMENT='用户状态表';

  501. DROP TABLE IF EXISTS pre_common_member_stat_field;
  502. CREATE TABLE pre_common_member_stat_field (
  503. optionid mediumint(8) unsigned NOT NULL auto_increment COMMENT '资料统计项 id',
  504. fieldid varchar(255) NOT NULL default COMMENT '资料项字段标志符',
  505. fieldvalue varchar(255) NOT NULL default COMMENT '字段值' ,
  506. hash varchar(255) NOT NULL default COMMENT '由fieldid和fieldvalue生成的hash',
  507. users mediumint(8) unsigned NOT NULL default '0' COMMENT '对应用户数',
  508. updatetime int(10) unsigned NOT NULL default '0' COMMENT '更新时间',
  509. PRIMARY KEY (optionid),
  510. KEY fieldid (fieldid)
  511. ) ENGINE=MyISAM COMMENT='用户资料统计项';

  512. DROP TABLE IF EXISTS pre_common_member_action_log;
  513. CREATE TABLE pre_common_member_action_log (
  514. id mediumint(8) unsigned NOT NULL auto_increment COMMENT '记录id',
  515. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户ID',
  516. `action` tinyint(5) NOT NULL default '0' COMMENT '操作代码',
  517. dateline int(10) unsigned NOT NULL default '0',
  518. PRIMARY KEY (id),
  519. KEY dateline (dateline, `action`, uid)
  520. ) ENGINE=MyISAM COMMENT='用户操作日志表';

  521. DROP TABLE IF EXISTS pre_home_follow;
  522. CREATE TABLE pre_home_follow (
  523. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户ID',
  524. username char(15) NOT NULL default COMMENT '用户名',
  525. followuid mediumint(8) unsigned NOT NULL default '0' COMMENT '被关注用户ID',
  526. fusername char(15) NOT NULL default COMMENT '被关注用户名称',
  527. bkname varchar(255) NOT NULL default COMMENT '用户备注',
  528. `status` tinyint(1) NOT NULL default '0' COMMENT '0:正常 1:特殊关注 -1:不能再关注此人',
  529. mutual tinyint(1) NOT NULL default '0' COMMENT '0:单向 1:已互相关注',
  530. dateline int(10) unsigned NOT NULL default '0',
  531. PRIMARY KEY (uid, followuid)
  532. ) ENGINE=MyISAM COMMENT='用户关注关系表';

  533. DROP TABLE IF EXISTS pre_home_follow_feed;
  534. CREATE TABLE pre_home_follow_feed (
  535. feedid mediumint(8) unsigned NOT NULL auto_increment COMMENT '自增id',
  536. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '被关注者ID',
  537. username varchar(15) NOT NULL default COMMENT '被关注用户名',
  538. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '帖子tid',
  539. note text NOT NULL COMMENT '转发理由',
  540. dateline int(10) unsigned NOT NULL default '0',
  541. PRIMARY KEY (feedid),
  542. KEY uid (uid, dateline)
  543. ) ENGINE=MyISAM COMMENT='被关注者事件表';

  544. DROP TABLE IF EXISTS pre_home_follow_feed_archiver;
  545. CREATE TABLE pre_home_follow_feed_archiver (
  546. feedid mediumint(8) unsigned NOT NULL auto_increment COMMENT '自增id',
  547. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '被关注者ID',
  548. username varchar(15) NOT NULL default COMMENT '被关注用户名',
  549. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '帖子tid',
  550. note text NOT NULL COMMENT '转发理由',
  551. dateline int(10) unsigned NOT NULL default '0',
  552. PRIMARY KEY (feedid),
  553. KEY uid (uid, dateline)
  554. ) ENGINE=MyISAM COMMENT='被关注者事件存档';

  555. DROP TABLE IF EXISTS pre_common_member_log;
  556. CREATE TABLE pre_common_member_log (
  557. uid mediumint(8) unsigned NOT NULL default '0',
  558. `action` char(10) NOT NULL default COMMENT 'add,update,delete',
  559. dateline int(10) unsigned NOT NULL default '0',
  560. PRIMARY KEY (uid)
  561. ) ENGINE=MyISAM COMMENT='漫游用户日志表';

  562. DROP TABLE IF EXISTS pre_common_member_verify;
  563. CREATE TABLE pre_common_member_verify (
  564. uid mediumint(8) unsigned NOT NULL COMMENT '会员id',
  565. verify1 tinyint(1) NOT NULL default '0' COMMENT '认证1: -1:被拒绝 0:待审核 1:审核通过',
  566. verify2 tinyint(1) NOT NULL default '0' COMMENT '认证2: -1:被拒绝 0:待审核 1:审核通过',
  567. verify3 tinyint(1) NOT NULL default '0' COMMENT '认证3: -1:被拒绝 0:待审核 1:审核通过',
  568. verify4 tinyint(1) NOT NULL default '0' COMMENT '认证4: -1:被拒绝 0:待审核 1:审核通过',
  569. verify5 tinyint(1) NOT NULL default '0' COMMENT '认证5: -1:被拒绝 0:待审核 1:审核通过',
  570. verify6 tinyint(1) NOT NULL default '0' COMMENT '实名认证: -1:被拒绝 0:待审核 1:审核通过',
  571. verify7 tinyint(1) NOT NULL default '0' COMMENT '视频认证: -1:被拒绝 0:待审核 1:审核通过',
  572. PRIMARY KEY (uid),
  573. KEY verify1 (verify1),
  574. KEY verify2 (verify2),
  575. KEY verify3 (verify3),
  576. KEY verify4 (verify4),
  577. KEY verify5 (verify5),
  578. KEY verify6 (verify6),
  579. KEY verify7 (verify7)
  580. ) ENGINE=MyISAM COMMENT='用户认证表';

  581. DROP TABLE IF EXISTS pre_common_member_verify_info;
  582. CREATE TABLE pre_common_member_verify_info (
  583. vid mediumint(8) unsigned NOT NULL auto_increment COMMENT '审核id',
  584. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  585. username varchar(30) NOT NULL default COMMENT '用户名',
  586. verifytype tinyint(1) NOT NULL default '0' COMMENT '审核类型0:资料审核, 1:认证1, 2:认证2, 3:认证3, 4:认证4, 5:认证5',
  587. flag tinyint(1) NOT NULL default '0' COMMENT '-1:被拒绝 0:待审核 1:审核通过',
  588. field text NOT NULL COMMENT '序列化存储变化值',
  589. dateline int(10) unsigned NOT NULL default '0' COMMENT '提交日期',
  590. PRIMARY KEY (vid),
  591. KEY verifytype (verifytype, flag),
  592. KEY uid (uid, verifytype, dateline)
  593. ) ENGINE=MyISAM COMMENT='个人信息修改审核';
  594. DROP TABLE IF EXISTS pre_common_member_profile_setting;
  595. CREATE TABLE pre_common_member_profile_setting (
  596. fieldid varchar(255) NOT NULL default COMMENT 'profile字段标志符',
  597. available tinyint(1) NOT NULL default '0' COMMENT '是否可用',
  598. invisible tinyint(1) NOT NULL default '0' COMMENT '是否隐藏',
  599. needverify tinyint(1) NOT NULL default '0' COMMENT '是否需要审核',
  600. title varchar(255) NOT NULL default COMMENT '栏目标题',
  601. description varchar(255) NOT NULL default COMMENT '解释说明',
  602. displayorder smallint(6) unsigned NOT NULL default '0' COMMENT '显示顺序',
  603. required tinyint(1) NOT NULL default '0' COMMENT '是否必填内容',
  604. unchangeable tinyint(1) NOT NULL default '0' COMMENT '不可修改',
  605. showincard tinyint(1) NOT NULL default '0' COMMENT '在名片中显示',
  606. showinthread tinyint(1) NOT NULL default '0' COMMENT '在帖子中显示',
  607. showinregister tinyint(1) NOT NULL default '0' COMMENT '是否在注册页面显示',
  608. allowsearch tinyint(1) NOT NULL default '0' COMMENT '是否可搜索',
  609. formtype varchar(255) NOT NULL COMMENT '表单元素类型',
  610. size smallint(6) unsigned NOT NULL default '0' COMMENT '内容最大长度',
  611. choices text NOT NULL COMMENT '选填内容',
  612. validate text NOT NULL COMMENT '验证数据的正则表达式',
  613. PRIMARY KEY (fieldid)
  614. ) ENGINE=MyISAM COMMENT='个人信息扩展表';

  615. DROP TABLE IF EXISTS pre_common_member_security;
  616. CREATE TABLE pre_common_member_security (
  617. securityid mediumint(8) unsigned NOT NULL auto_increment COMMENT '审核项id',
  618. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  619. username varchar(255) NOT NULL default COMMENT '用户名',
  620. fieldid varchar(255) NOT NULL default COMMENT 'profile字段标志符',
  621. oldvalue text NOT NULL COMMENT '旧的profile字段值',
  622. newvalue text NOT NULL COMMENT '新的profile字段值',
  623. dateline int(10) unsigned NOT NULL default '0' COMMENT '提交日期',
  624. PRIMARY KEY (securityid),
  625. KEY uid (uid, fieldid),
  626. KEY dateline (dateline)
  627. ) ENGINE=MyISAM COMMENT='个人信息修改审核';

  628. DROP TABLE IF EXISTS pre_common_member_validate;
  629. CREATE TABLE pre_common_member_validate (
  630. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  631. submitdate int(10) unsigned NOT NULL default '0' COMMENT '提交日期',
  632. moddate int(10) unsigned NOT NULL default '0' COMMENT '审核日期',
  633. admin varchar(15) NOT NULL default COMMENT '管理员名',
  634. submittimes tinyint(3) unsigned NOT NULL default '0' COMMENT '提交的次数',
  635. `status` tinyint(1) NOT NULL default '0' COMMENT '状态',
  636. message text NOT NULL COMMENT '注册原因',
  637. remark text NOT NULL COMMENT '管理员留言',
  638. PRIMARY KEY (uid),
  639. KEY `status` (`status`)
  640. ) ENGINE=MyISAM COMMENT='用户审核表';

  641. DROP TABLE IF EXISTS pre_common_member_crime;
  642. CREATE TABLE pre_common_member_crime (
  643. cid mediumint(8) unsigned NOT NULL auto_increment COMMENT '自增id',
  644. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '被惩罚操作的用户id',
  645. operatorid mediumint(8) unsigned NOT NULL default '0' COMMENT '进行惩罚操作的用户id',
  646. operator varchar(15) NOT NULL COMMENT '进行惩罚操作的用户名',
  647. `action` tinyint(5) NOT NULL COMMENT '惩罚行为',
  648. reason text NOT NULL COMMENT '惩罚理由',
  649. dateline int(10) unsigned NOT NULL default '0' COMMENT '惩罚操作时间',
  650. PRIMARY KEY (cid),
  651. KEY uid (uid,`action`,dateline)
  652. ) ENGINE=MyISAM COMMENT='用户惩罚操作表';
  653. DROP TABLE IF EXISTS pre_common_member_grouppm;
  654. CREATE TABLE pre_common_member_grouppm (
  655. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  656. gpmid smallint(6) unsigned NOT NULL auto_increment COMMENT '消息id',
  657. status tinyint(1) NOT NULL default '0' COMMENT '0=未读 1=已读 -1=删除',
  658. dateline int(10) unsigned NOT NULL default '0' COMMENT '阅读时间',
  659. PRIMARY KEY (uid, gpmid)
  660. ) ENGINE=MyISAM COMMENT='群发短消息用户记录表';

  661. DROP TABLE IF EXISTS pre_common_grouppm;
  662. CREATE TABLE pre_common_grouppm (
  663. id smallint(6) unsigned NOT NULL auto_increment COMMENT '消息id',
  664. authorid mediumint(8) unsigned NOT NULL default '0' COMMENT '作者id',
  665. author varchar(15) NOT NULL default COMMENT '作者姓名',
  666. dateline int(10) unsigned NOT NULL default '0' COMMENT '时间',
  667. message text NOT NULL COMMENT '消息',
  668. numbers mediumint(8) unsigned NOT NULL default '0' COMMENT '数量',
  669. PRIMARY KEY (id)
  670. ) ENGINE=MyISAM COMMENT='群发短消息表';

  671. DROP TABLE IF EXISTS pre_common_myapp;
  672. CREATE TABLE pre_common_myapp (
  673. appid mediumint(8) unsigned NOT NULL default '0' COMMENT '应用id',
  674. appname varchar(60) NOT NULL default COMMENT '应用名称',
  675. narrow tinyint(1) NOT NULL default '0' COMMENT '是否显示为窄的profile box',
  676. flag tinyint(1) NOT NULL default '0' COMMENT '应用状态(黑白名单、默认应用等)',
  677. version mediumint(8) unsigned NOT NULL default '0' COMMENT '应用版本号',
  678. userpanelarea tinyint(1) NOT NULL default '0' COMMENT 'userabout显示区域、1主区、2、副区、3应用区',
  679. canvastitle varchar(60) NOT NULL default COMMENT 'canvas页面标题',
  680. fullscreen tinyint(1) NOT NULL default '0' COMMENT '是否是全屏应用',
  681. displayuserpanel tinyint(1) NOT NULL default '0' COMMENT '是否显示应用右侧的用户菜单',
  682. displaymethod tinyint(1) NOT NULL default '0' COMMENT '显示方式(iframe/myml)',
  683. displayorder smallint(6) unsigned NOT NULL default '0' COMMENT '显示顺序',
  684. appstatus tinyint(2) NOT NULL default '0' COMMENT '标识应用1:新、2:热',
  685. iconstatus tinyint(2) NOT NULL default '0' COMMENT '应用图标是否已下载到本地。-1:失败;0:未下载;1:已下载',
  686. icondowntime int(10) unsigned NOT NULL default '0' COMMENT '应用图标下载到本地时间',
  687. PRIMARY KEY (appid),
  688. KEY flag (flag,displayorder)
  689. ) ENGINE=MyISAM COMMENT='漫游应用表';

  690. DROP TABLE IF EXISTS pre_common_myinvite;
  691. CREATE TABLE pre_common_myinvite (
  692. id mediumint(8) unsigned NOT NULL auto_increment COMMENT '邀请id',
  693. typename varchar(100) NOT NULL default COMMENT '邀请名称',
  694. appid mediumint(8) NOT NULL default '0' COMMENT '应用id',
  695. `type` tinyint(1) NOT NULL default '0' COMMENT '类型(request 邀请/invite 请求)',
  696. fromuid mediumint(8) unsigned NOT NULL default '0' COMMENT '邀请者id',
  697. touid mediumint(8) unsigned NOT NULL default '0' COMMENT '接收者id',
  698. myml text NOT NULL COMMENT '邀请内容',
  699. dateline int(10) unsigned NOT NULL default '0' COMMENT '发送邀请的时间戳',
  700. `hash` int(10) unsigned NOT NULL default '0' COMMENT 'hash标记',
  701. PRIMARY KEY (id),
  702. KEY `hash` (`hash`),
  703. KEY uid (touid,dateline)
  704. ) ENGINE=MyISAM COMMENT='用户邀请表';
复制代码
 楼主| gdnyhl 发表于 2012-8-6 02:18:01 | 显示全部楼层
  1. DROP TABLE IF EXISTS pre_common_nav;
  2. CREATE TABLE pre_common_nav (
  3. id smallint(6) unsigned NOT NULL auto_increment COMMENT '项目id',
  4. parentid smallint(6) unsigned NOT NULL default '0' COMMENT '父 id(navtype=0)',
  5. `name` varchar(255) NOT NULL COMMENT '导航名称',
  6. title varchar(255) NOT NULL COMMENT '导航说明',
  7. url varchar(255) NOT NULL COMMENT '导航链接',
  8. identifier varchar(255) NOT NULL COMMENT '链接标识/相关ID',
  9. target tinyint(1) NOT NULL default '0' COMMENT '目标框架\n(0:本窗口 1:新窗口)',
  10. `type` tinyint(1) NOT NULL default '0' COMMENT '类型 0 系统 1 自定义 3 插件 4 频道',
  11. available tinyint(1) NOT NULL default '0' COMMENT '是否可用',
  12. displayorder tinyint(3) NOT NULL COMMENT '显示顺序',
  13. highlight tinyint(1) NOT NULL default '0' COMMENT '样式(navtype=0)',
  14. `level` tinyint(1) NOT NULL default '0' COMMENT '使用等级\n(0:游客 1:会员 2:版主 3:管理员)',
  15. `subtype` tinyint(1) NOT NULL DEFAULT '0' COMMENT '二级导航样式(navtype=0) 顶部导航位置(navtype=4)',
  16. `subcols` tinyint(1) NOT NULL DEFAULT '0' COMMENT '横排一行显示的条目数(navtype=0)',
  17. `icon` varchar(255) NOT NULL COMMENT '图标地址(navtype=1、3)',
  18. `subname` varchar(255) NOT NULL COMMENT '副导航名称(navtype=1)',
  19. `suburl` varchar(255) NOT NULL COMMENT '副导航地址(navtype=1)',
  20. `navtype` tinyint(1) NOT NULL default '0' COMMENT '导航类型\n(0:主导航 1:底部导航 2:家园导航 3:快捷导航 4:顶部导航)',
  21. logo varchar(255) NOT NULL COMMENT '自定义 Logo',
  22. PRIMARY KEY (id),
  23. KEY `navtype` (`navtype`)
  24. ) ENGINE=MyISAM COMMENT='自定义导航栏表';
  25. DROP TABLE IF EXISTS pre_common_onlinetime;
  26. CREATE TABLE pre_common_onlinetime (
  27. uid mediumint(8) unsigned NOT NULL DEFAULT '0',
  28. thismonth smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '本月在线时间',
  29. total mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '总在线时间',
  30. lastupdate int(10) unsigned NOT NULL DEFAULT '0',
  31. PRIMARY KEY (uid)
  32. ) ENGINE=MyISAM COMMENT='在线时间表';

  33. DROP TABLE IF EXISTS pre_common_regip;
  34. CREATE TABLE pre_common_regip (
  35. ip char(15) NOT NULL default COMMENT 'IP地址',
  36. dateline int(10) unsigned NOT NULL default '0' COMMENT '限制时间',
  37. count smallint(6) NOT NULL default '0' COMMENT '限制数量',
  38. KEY ip (ip)
  39. ) ENGINE=MyISAM COMMENT='注册IP限制表';

  40. DROP TABLE IF EXISTS pre_common_secquestion;
  41. CREATE TABLE pre_common_secquestion (
  42. id smallint(6) unsigned NOT NULL auto_increment COMMENT '验证问题id',
  43. `type` tinyint(1) unsigned NOT NULL COMMENT '验证问题类型',
  44. question text NOT NULL COMMENT '验证问题',
  45. answer varchar(255) NOT NULL COMMENT '问题答案',
  46. PRIMARY KEY (id)
  47. ) ENGINE=MyISAM COMMENT='验证问题数据表';
  48. DROP TABLE IF EXISTS pre_common_session;
  49. CREATE TABLE pre_common_session (
  50. sid char(6) NOT NULL default COMMENT 'sid',
  51. ip1 tinyint(3) unsigned NOT NULL default '0' COMMENT 'IP段',
  52. ip2 tinyint(3) unsigned NOT NULL default '0' COMMENT 'IP段',
  53. ip3 tinyint(3) unsigned NOT NULL default '0' COMMENT 'IP段',
  54. ip4 tinyint(3) unsigned NOT NULL default '0' COMMENT 'IP段',
  55. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  56. username char(15) NOT NULL default COMMENT '会员名',
  57. groupid smallint(6) unsigned NOT NULL default '0' COMMENT '会员组',
  58. invisible tinyint(1) NOT NULL default '0' COMMENT '是否隐身登录',
  59. `action` tinyint(1) unsigned NOT NULL default '0' COMMENT '当前动作',
  60. lastactivity int(10) unsigned NOT NULL default '0' COMMENT '最后活动时间',
  61. lastolupdate int(10) unsigned NOT NULL default '0' COMMENT '在线时间最后更新',
  62. fid mediumint(8) unsigned NOT NULL default '0' COMMENT '论坛id',
  63. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  64. UNIQUE KEY sid (sid),
  65. KEY uid (uid)
  66. ) ENGINE=MEMORY COMMENT='会员认证表';

  67. DROP TABLE IF EXISTS pre_common_setting;
  68. CREATE TABLE pre_common_setting (
  69. skey varchar(255) NOT NULL default COMMENT '变量名',
  70. svalue text NOT NULL COMMENT '值',
  71. PRIMARY KEY (skey)
  72. ) ENGINE=MyISAM COMMENT='设置表';

  73. DROP TABLE IF EXISTS pre_common_smiley;
  74. CREATE TABLE pre_common_smiley (
  75. id smallint(6) unsigned NOT NULL auto_increment COMMENT '表情id',
  76. typeid smallint(6) unsigned NOT NULL COMMENT '表情分类 id',
  77. displayorder tinyint(1) NOT NULL default '0' COMMENT '显示顺序',
  78. `type` enum('smiley','stamp','stamplist') NOT NULL default 'smiley' COMMENT '类型',
  79. `code` varchar(30) NOT NULL default COMMENT '标记',
  80. url varchar(30) NOT NULL default COMMENT '路径',
  81. PRIMARY KEY (id),
  82. KEY `type` (`type`, displayorder)
  83. ) ENGINE=MyISAM COMMENT='表情表';

  84. DROP TABLE IF EXISTS pre_common_stat;
  85. CREATE TABLE pre_common_stat (
  86. daytime int(10) unsigned NOT NULL default '0' COMMENT '时间',
  87. login int(10) unsigned NOT NULL default '0' COMMENT '登陆',
  88. mobilelogin int(10) unsigned NOT NULL default '0' COMMENT '手机登陆',
  89. connectlogin int(10) unsigned NOT NULL default '0' COMMENT 'QQConnect登陆',
  90. register int(10) unsigned NOT NULL default '0' COMMENT '注册',
  91. invite int(10) unsigned NOT NULL default '0' COMMENT '邀请',
  92. appinvite int(10) unsigned NOT NULL default '0' COMMENT '应用邀请',
  93. doing int(10) unsigned NOT NULL default '0' COMMENT '记录',
  94. blog int(10) unsigned NOT NULL default '0' COMMENT '日志',
  95. pic int(10) unsigned NOT NULL default '0' COMMENT '图片',
  96. poll int(10) unsigned NOT NULL default '0' COMMENT '投票',
  97. activity int(10) unsigned NOT NULL default '0' COMMENT '活动',
  98. `share` int(10) unsigned NOT NULL default '0' COMMENT '分享',
  99. thread int(10) unsigned NOT NULL default '0' COMMENT '主题',
  100. docomment int(10) unsigned NOT NULL default '0' COMMENT '记录评论',
  101. blogcomment int(10) unsigned NOT NULL default '0' COMMENT '日志评论',
  102. piccomment int(10) unsigned NOT NULL default '0' COMMENT '图片评论',
  103. sharecomment int(10) unsigned NOT NULL default '0' COMMENT '分享评论',
  104. reward int(10) unsigned NOT NULL default '0' COMMENT '悬赏',
  105. debate int(10) unsigned NOT NULL default '0' COMMENT '辩论',
  106. trade int(10) unsigned NOT NULL default '0' COMMENT '商品',
  107. `group` int(10) unsigned NOT NULL default '0' COMMENT '群组',
  108. groupjoin int(10) unsigned NOT NULL default '0' COMMENT '参与群组',
  109. groupthread int(10) unsigned NOT NULL default '0' COMMENT '群组主题',
  110. grouppost int(10) unsigned NOT NULL default '0' COMMENT '群组回复',
  111. post int(10) unsigned NOT NULL default '0' COMMENT '主题回复',
  112. wall int(10) unsigned NOT NULL default '0' COMMENT '留言',
  113. poke int(10) unsigned NOT NULL default '0' COMMENT '打招呼',
  114. click int(10) unsigned NOT NULL default '0' COMMENT '表态',
  115. sendpm int(10) unsigned NOT NULL default '0' COMMENT '发送PM',
  116. friend int(10) unsigned NOT NULL default '0' COMMENT '成为好友',
  117. addfriend int(10) unsigned NOT NULL default '0' COMMENT '好友请求',
  118. PRIMARY KEY (daytime)
  119. ) ENGINE=MyISAM COMMENT='趋势统计';

  120. DROP TABLE IF EXISTS pre_common_statuser;
  121. CREATE TABLE pre_common_statuser (
  122. uid mediumint(8) unsigned NOT NULL default '0',
  123. daytime int(10) unsigned NOT NULL default '0',
  124. `type` char(20) NOT NULL default COMMENT '各种用户行为如:invite、register、login...',
  125. KEY uid (uid)
  126. ) ENGINE=MyISAM COMMENT='统计用户表';

  127. DROP TABLE IF EXISTS pre_common_style;
  128. CREATE TABLE pre_common_style (
  129. styleid smallint(6) unsigned NOT NULL auto_increment COMMENT '风格id',
  130. `name` varchar(20) NOT NULL default COMMENT '风格名称',
  131. available tinyint(1) NOT NULL default '1' COMMENT '风格是否可用',
  132. templateid smallint(6) unsigned NOT NULL default '0' COMMENT '对应模板id',
  133. extstyle varchar(255) NOT NULL default COMMENT '配色',
  134. PRIMARY KEY (styleid)
  135. ) ENGINE=MyISAM COMMENT='风格表';

  136. DROP TABLE IF EXISTS pre_common_stylevar;
  137. CREATE TABLE pre_common_stylevar (
  138. stylevarid smallint(6) unsigned NOT NULL auto_increment COMMENT '风格变量id',
  139. styleid smallint(6) unsigned NOT NULL default '0' COMMENT '风格id',
  140. variable text NOT NULL COMMENT '变量名',
  141. substitute text NOT NULL COMMENT '变量赋值',
  142. PRIMARY KEY (stylevarid),
  143. KEY styleid (styleid)
  144. ) ENGINE=MyISAM COMMENT='风格变量表';

  145. DROP TABLE IF EXISTS pre_common_syscache;
  146. CREATE TABLE pre_common_syscache (
  147. cname varchar(32) NOT NULL COMMENT '缓存名称',
  148. `ctype` tinyint(3) unsigned NOT NULL COMMENT '缓存类型 0=value, serialize=1',
  149. dateline int(10) unsigned NOT NULL COMMENT '缓存生成时间',
  150. `data` mediumblob NOT NULL COMMENT '缓存数据',
  151. PRIMARY KEY (cname)
  152. ) ENGINE=MyISAM COMMENT='缓存数据表';

  153. DROP TABLE IF EXISTS pre_common_template;
  154. CREATE TABLE pre_common_template (
  155. templateid smallint(6) unsigned NOT NULL auto_increment COMMENT '模板id',
  156. `name` varchar(30) NOT NULL default COMMENT '名称',
  157. `directory` varchar(100) NOT NULL default COMMENT '目录',
  158. copyright varchar(100) NOT NULL default COMMENT '版权',
  159. PRIMARY KEY (templateid)
  160. ) ENGINE=MyISAM COMMENT='模板表';

  161. DROP TABLE IF EXISTS pre_common_usergroup;
  162. CREATE TABLE pre_common_usergroup (
  163. groupid smallint(6) unsigned NOT NULL auto_increment COMMENT '会员组id',
  164. radminid tinyint(3) NOT NULL default '0' COMMENT '关联关管理组',
  165. `type` enum('system','special','member') NOT NULL default 'member' COMMENT '类型',
  166. system varchar(255) NOT NULL default 'private' COMMENT '会员是否可以自由进出',
  167. grouptitle varchar(255) NOT NULL default COMMENT '组头衔',
  168. creditshigher int(10) NOT NULL default '0' COMMENT '该组的积分上限',
  169. creditslower int(10) NOT NULL default '0' COMMENT '该组的积分下限',
  170. stars tinyint(3) NOT NULL default '0' COMMENT '星星数量',
  171. color varchar(255) NOT NULL default COMMENT '组头衔颜色',
  172. icon varchar(255) NOT NULL default ,
  173. allowvisit tinyint(1) NOT NULL default '0' COMMENT '允许访问',
  174. allowsendpm tinyint(1) NOT NULL default '1' COMMENT '是否允许发送短信息',
  175. allowinvite tinyint(1) NOT NULL default '0' COMMENT '允许使用邀请注册',
  176. allowmailinvite tinyint(1) NOT NULL default '0' COMMENT '允许通过论坛邮件系统发送邀请码',
  177. maxinvitenum tinyint(3) unsigned NOT NULL default '0' COMMENT '最大邀请码拥有数量',
  178. inviteprice smallint(6) unsigned NOT NULL default '0' COMMENT '邀请码购买价格',
  179. maxinviteday smallint(6) unsigned NOT NULL default '0' COMMENT '邀请码有效期',
  180. PRIMARY KEY (groupid),
  181. KEY creditsrange (creditshigher,creditslower)
  182. ) ENGINE=MyISAM COMMENT='用户组表';

  183. DROP TABLE IF EXISTS pre_common_usergroup_field;
  184. CREATE TABLE pre_common_usergroup_field (
  185. groupid smallint(6) unsigned NOT NULL COMMENT '会员组id',
  186. readaccess tinyint(3) unsigned NOT NULL default '0' COMMENT '阅读权限',
  187. allowpost tinyint(1) NOT NULL default '0' COMMENT '允许发帖',
  188. allowreply tinyint(1) NOT NULL default '0' COMMENT '允许回复',
  189. allowpostpoll tinyint(1) NOT NULL default '0' COMMENT '允许发表投票',
  190. allowpostreward tinyint(1) NOT NULL default '0' COMMENT '允许发表悬赏',
  191. allowposttrade tinyint(1) NOT NULL default '0' COMMENT '允许发表交易',
  192. allowpostactivity tinyint(1) NOT NULL default '0' COMMENT '允许发表活动',
  193. allowdirectpost tinyint(1) NOT NULL default '0' COMMENT '是否需要审核',
  194. allowgetattach tinyint(1) NOT NULL default '0' COMMENT '允许下载附件',
  195. allowgetimage tinyint(1) NOT NULL default '0' COMMENT '允许查看图片',
  196. allowpostattach tinyint(1) NOT NULL default '0' COMMENT '允许上传附件',
  197. allowpostimage tinyint(1) NOT NULL default '0' COMMENT '允许上传图片',
  198. allowvote tinyint(1) NOT NULL default '0' COMMENT '允许参与投票',
  199. allowsearch tinyint(1) NOT NULL default '0' COMMENT '允许搜索',
  200. allowcstatus tinyint(1) NOT NULL default '0' COMMENT '允许自定义头衔',
  201. allowinvisible tinyint(1) NOT NULL default '0' COMMENT '允许隐身登录',
  202. allowtransfer tinyint(1) NOT NULL default '0' COMMENT '允许积分转帐',
  203. allowsetreadperm tinyint(1) NOT NULL default '0' COMMENT '允许设置阅读权限',
  204. allowsetattachperm tinyint(1) NOT NULL default '0' COMMENT '允许设置附件权限',
  205. allowposttag tinyint(1) NOT NULL default '0' COMMENT '允许使用标签',
  206. allowhidecode tinyint(1) NOT NULL default '0' COMMENT '允许使用hide代码',
  207. allowhtml tinyint(1) NOT NULL default '0' COMMENT '允许使用html',
  208. allowanonymous tinyint(1) NOT NULL default '0' COMMENT '允许匿名发帖',
  209. allowsigbbcode tinyint(1) NOT NULL default '0' COMMENT '允许签名使用bbcode',
  210. allowsigimgcode tinyint(1) NOT NULL default '0' COMMENT '允许使用img',
  211. allowmagics tinyint(1) unsigned NOT NULL COMMENT '允许使用道具',
  212. disableperiodctrl tinyint(1) NOT NULL default '0' COMMENT '不受时间段限制',
  213. reasonpm tinyint(1) NOT NULL default '0' COMMENT '操作理由短信通知作者',
  214. maxprice smallint(6) unsigned NOT NULL default '0' COMMENT '主题最大售价',
  215. maxsigsize smallint(6) unsigned NOT NULL default '0' COMMENT '最大签名尺寸',
  216. maxattachsize int(10) unsigned NOT NULL default '0' COMMENT '最大附件尺寸',
  217. maxsizeperday int(10) unsigned NOT NULL default '0' COMMENT '每天最大附件总尺寸',
  218. maxthreadsperhour tinyint(3) unsigned NOT NULL default '0' COMMENT '每小时发主题数限制',
  219. maxpostsperhour tinyint(3) unsigned NOT NULL default '0' COMMENT '每小时发回帖数限制',
  220. attachextensions char(100) NOT NULL default COMMENT '允许发表的附件类型',
  221. raterange char(150) NOT NULL default COMMENT '评分范围',
  222. mintradeprice smallint(6) unsigned NOT NULL default '1' COMMENT '交易最小积分',
  223. maxtradeprice smallint(6) unsigned NOT NULL default '0' COMMENT '交易最大积分',
  224. minrewardprice smallint(6) unsigned NOT NULL default '1' COMMENT '悬赏最小积分',
  225. maxrewardprice smallint(6) unsigned NOT NULL default '0' COMMENT '悬赏最大积分',
  226. magicsdiscount tinyint(1) NOT NULL COMMENT '道具折扣',
  227. maxmagicsweight smallint(6) unsigned NOT NULL COMMENT '道具负载最大值',
  228. allowpostdebate tinyint(1) NOT NULL default '0' COMMENT '允许发表辩论',
  229. tradestick tinyint(1) unsigned NOT NULL COMMENT '可商品推荐数',
  230. exempt tinyint(1) unsigned NOT NULL COMMENT '用户组表达式',
  231. maxattachnum smallint(6) NOT NULL default '0' COMMENT '最大每天附件数量',
  232. allowposturl tinyint(1) NOT NULL default '3' COMMENT '是否允许发送含 url 内容',
  233. allowrecommend tinyint(1) unsigned NOT NULL default '1' COMMENT '是否允许评价主题',
  234. allowpostrushreply TINYINT(1) NOT NULL DEFAULT '0' COMMENT '允许发表抢楼帖',
  235. maxfriendnum smallint(6) unsigned NOT NULL default '0' COMMENT '最多好友数',
  236. maxspacesize int(10) unsigned NOT NULL default '0' COMMENT '空间大小',
  237. allowcomment tinyint(1) NOT NULL default '0' COMMENT '发表留言/评论',
  238. allowcommentarticle smallint(6) NOT NULL default '0' COMMENT '发表文章的评论',
  239. searchinterval smallint(6) unsigned NOT NULL default '0' COMMENT '两次搜索操作间隔',
  240. searchignore tinyint(1) NOT NULL default '0' COMMENT '是否免费搜索',
  241. allowblog tinyint(1) NOT NULL default '0' COMMENT '发表日志',
  242. allowdoing tinyint(1) NOT NULL default '0' COMMENT '发表记录',
  243. allowupload tinyint(1) NOT NULL default '0' COMMENT '上传图片',
  244. allowshare tinyint(1) NOT NULL default '0' COMMENT '发布分享',
  245. allowblogmod tinyint(1) unsigned NOT NULL default '0' COMMENT '发表日志需要审核',
  246. allowdoingmod tinyint(1) unsigned NOT NULL default '0' COMMENT '发表记录需要审核',
  247. allowuploadmod tinyint(1) unsigned NOT NULL default '0' COMMENT '上传图片需要审核',
  248. allowsharemod tinyint(1) unsigned NOT NULL default '0' COMMENT '发布分享需要审核',
  249. allowcss tinyint(1) NOT NULL default '0' COMMENT '允许自定义CSS',
  250. allowpoke tinyint(1) NOT NULL default '0' COMMENT '允许打招呼',
  251. allowfriend tinyint(1) NOT NULL default '0' COMMENT '允许加好友',
  252. allowclick tinyint(1) NOT NULL default '0' COMMENT '允许表态',
  253. allowmagic tinyint(1) NOT NULL default '0' COMMENT '允许使用道具',
  254. allowstat tinyint(1) NOT NULL default '0' COMMENT '允许查看趋势统计',
  255. allowstatdata tinyint(1) NOT NULL default '0' COMMENT '允许查看统计数据报表',
  256. videophotoignore tinyint(1) NOT NULL default '0' COMMENT '视频认证限制',
  257. allowviewvideophoto tinyint(1) NOT NULL default '0' COMMENT '允许查看视频认证',
  258. allowmyop tinyint(1) NOT NULL default '0' COMMENT '允许使用应用',
  259. magicdiscount tinyint(1) NOT NULL default '0' COMMENT '购买道具折扣',
  260. domainlength smallint(6) unsigned NOT NULL default '0' COMMENT '二级域名最短长度',
  261. seccode tinyint(1) NOT NULL default '1' COMMENT '发布操作需填验证码',
  262. disablepostctrl tinyint(1) NOT NULL DEFAULT '0' COMMENT '发表是否受防灌水限制',
  263. allowbuildgroup tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否允许建立群组,0为不允许',
  264. allowgroupdirectpost tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否允许直接在群组中发帖',
  265. allowgroupposturl tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否允许在群组中发站外URL',
  266. edittimelimit smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '编辑帖子时间限制',
  267. allowpostarticle tinyint(1) NOT NULL default '0' COMMENT '允许发布文章',
  268. allowdownlocalimg tinyint(1) NOT NULL default '0' COMMENT '允许下载本地图片',
  269. allowdownremoteimg tinyint(1) NOT NULL default '0' COMMENT '允许下载远程图片',
  270. allowpostarticlemod tinyint(1) unsigned NOT NULL default '0' COMMENT '发布文章是否需要审核',
  271. allowspacediyhtml tinyint(1) NOT NULL default '0' COMMENT '允许自定义模块使用HTML',
  272. allowspacediybbcode tinyint(1) NOT NULL default '0' COMMENT '允许自定义模块使用BBCODE',
  273. allowspacediyimgcode tinyint(1) NOT NULL default '0' COMMENT '允许自定义模块使用[img]',
  274. allowcommentpost tinyint(1) NOT NULL default '2' COMMENT '允许帖子点评 0:禁止 1:楼主 2:回复 3:All',
  275. allowcommentitem tinyint(1) NOT NULL default '0' COMMENT '允许发表点评观点',
  276. allowcommentreply tinyint(1) NOT NULL default '0' COMMENT '允许发表回复点评',
  277. allowreplycredit tinyint(1) NOT NULL default '0' COMMENT '允许设置回帖奖励',
  278. ignorecensor tinyint(1) unsigned NOT NULL default '0' COMMENT '是否忽略要审核的关键字',
  279. allowsendallpm tinyint(1) unsigned NOT NULL default '0' COMMENT '是否不受“只接收好友短消息”设置的限制',
  280. allowsendpmmaxnum smallint(6) unsigned NOT NULL default '0' COMMENT '24小时内允许发短消息的数量',
  281. maximagesize mediumint(8) unsigned NOT NULL default '0' COMMENT '相册中允许最大图片大小',
  282. allowmediacode tinyint(1) NOT NULL default '0' COMMENT '允许使用多媒体代码',
  283. allowat smallint(6) unsigned NOT NULL default '0' COMMENT '允许@用户 0:禁止 n:发帖时@的数量',
  284. allowsetpublishdate tinyint(1) unsigned NOT NULL default '0' COMMENT '允许定时发布主题',
  285. allowfollowcollection tinyint(1) unsigned NOT NULL default '0' COMMENT '允许关注淘专辑数',
  286. allowcommentcollection tinyint(1) unsigned NOT NULL default '0' COMMENT '允许评论淘专辑',
  287. allowcreatecollection smallint(6) unsigned NOT NULL default '0' COMMENT '允许创建淘专辑数',
  288. PRIMARY KEY (groupid)
  289. ) ENGINE=MyISAM COMMENT='会员用户组权限表';

  290. DROP TABLE IF EXISTS pre_common_word;
  291. CREATE TABLE pre_common_word (
  292. id smallint(6) unsigned NOT NULL auto_increment COMMENT '词汇id',
  293. admin varchar(15) NOT NULL default COMMENT '管理员名',
  294. type smallint(6) NOT NULL default '1' COMMENT '关键词分类',
  295. find varchar(255) NOT NULL default COMMENT '不良词语',
  296. replacement varchar(255) NOT NULL default COMMENT '替换内容',
  297. extra varchar(255) NOT NULL default ,
  298. PRIMARY KEY (id)
  299. ) ENGINE=MyISAM COMMENT='词语过滤表';

  300. DROP TABLE IF EXISTS pre_common_word_type;
  301. CREATE TABLE pre_common_word_type (
  302. id smallint(6) unsigned NOT NULL auto_increment COMMENT '词语过滤分类id',
  303. typename varchar(15) NOT NULL default COMMENT '分类名称',
  304. PRIMARY KEY (id)
  305. ) ENGINE=MyISAM COMMENT='词语过滤分类';

  306. DROP TABLE IF EXISTS pre_common_tag;
  307. CREATE TABLE pre_common_tag (
  308. tagid smallint(6) unsigned NOT NULL auto_increment COMMENT '标签id',
  309. tagname char(20) NOT NULL default COMMENT '标签名',
  310. status tinyint(1) NOT NULL default '0' COMMENT '显示状态\n(0:正常 1:关闭 2:推荐 3:用户标签)',
  311. PRIMARY KEY (tagid),
  312. KEY tagname (tagname),
  313. KEY status (status, tagid)
  314. ) ENGINE=MyISAM COMMENT='标签表';

  315. DROP TABLE IF EXISTS pre_common_tagitem;
  316. CREATE TABLE pre_common_tagitem (
  317. tagid smallint(6) unsigned NOT NULL default '0' COMMENT '标签id',
  318. itemid mediumint(8) unsigned NOT NULL default '0' COMMENT 'itemid',
  319. idtype char(10) NOT NULL default COMMENT '内容类型',
  320. UNIQUE KEY item (tagid, itemid, idtype),
  321. KEY idtype (idtype, itemid)
  322. ) ENGINE=MyISAM COMMENT='标签内容表';

  323. DROP TABLE IF EXISTS pre_forum_access;
  324. CREATE TABLE pre_forum_access (
  325. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  326. fid mediumint(8) unsigned NOT NULL default '0' COMMENT '论坛id',
  327. allowview tinyint(1) NOT NULL default '0' COMMENT '允许浏览',
  328. allowpost tinyint(1) NOT NULL default '0' COMMENT '允许发表',
  329. allowreply tinyint(1) NOT NULL default '0' COMMENT '允许回复',
  330. allowgetattach tinyint(1) NOT NULL default '0' COMMENT '允许下载附件',
  331. allowgetimage tinyint(1) NOT NULL default '0' COMMENT '允许查看图片',
  332. allowpostattach tinyint(1) NOT NULL default '0' COMMENT '允许上传附件',
  333. allowpostimage tinyint(1) NOT NULL default '0' COMMENT '允许上传图片',
  334. adminuser mediumint(8) unsigned NOT NULL default '0' COMMENT '管理员id',
  335. dateline int(10) unsigned NOT NULL default '0' COMMENT '时间',
  336. PRIMARY KEY (uid,fid),
  337. KEY listorder (fid,dateline)
  338. ) ENGINE=MyISAM COMMENT='访问权限表';

  339. DROP TABLE IF EXISTS pre_forum_activity;
  340. CREATE TABLE pre_forum_activity (
  341. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  342. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  343. aid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题图片id',
  344. cost mediumint(8) unsigned NOT NULL default '0' COMMENT '每人花销',
  345. starttimefrom int(10) unsigned NOT NULL default '0' COMMENT '开始时间',
  346. starttimeto int(10) unsigned NOT NULL default '0' COMMENT '结束时间',
  347. place varchar(255) NOT NULL default COMMENT '地点',
  348. class varchar(255) NOT NULL default COMMENT '类别',
  349. gender tinyint(1) NOT NULL default '0' COMMENT '性别',
  350. number smallint(5) unsigned NOT NULL default '0' COMMENT '人数',
  351. applynumber smallint(5) unsigned NOT NULL default '0' COMMENT '已参加人数',
  352. expiration int(10) unsigned NOT NULL default '0' COMMENT '报名截止日期',
  353. ufield TEXT NOT NULL COMMENT '用户定制项目',
  354. credit smallint(6) unsigned NOT NULL default '0' COMMENT '需消耗的积分',
  355. PRIMARY KEY (tid),
  356. KEY uid (uid,starttimefrom),
  357. KEY starttimefrom (starttimefrom),
  358. KEY expiration (expiration),
  359. KEY applynumber (applynumber)
  360. ) ENGINE=MyISAM COMMENT='活动表';

  361. DROP TABLE IF EXISTS pre_forum_activityapply;
  362. CREATE TABLE pre_forum_activityapply (
  363. applyid int(10) unsigned NOT NULL auto_increment COMMENT '申请id',
  364. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  365. username varchar(255) NOT NULL default COMMENT '用户名',
  366. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  367. message varchar(255) NOT NULL default COMMENT '消息',
  368. verified tinyint(1) NOT NULL default '0' COMMENT '是否审核通过\n(0:N 1:Y 2:需完善资料)',
  369. dateline int(10) unsigned NOT NULL default '0' COMMENT '申请时间',
  370. payment mediumint(8) NOT NULL default '0' COMMENT '每人花销',
  371. ufielddata TEXT NOT NULL COMMENT '用户定制项目数据',
  372. PRIMARY KEY (applyid),
  373. KEY uid (uid),
  374. KEY tid (tid),
  375. KEY dateline (tid,dateline)
  376. ) ENGINE=MyISAM COMMENT='活动申请表';

  377. DROP TABLE IF EXISTS pre_forum_announcement;
  378. CREATE TABLE pre_forum_announcement (
  379. id smallint(6) unsigned NOT NULL auto_increment COMMENT '公告id',
  380. author varchar(15) NOT NULL default COMMENT '作者姓名',
  381. `subject` varchar(255) NOT NULL default COMMENT '公告标题',
  382. `type` tinyint(1) NOT NULL default '0' COMMENT '公告类型\n(0:文字公告 1:网址链接)',
  383. displayorder tinyint(3) NOT NULL default '0' COMMENT '显示顺序',
  384. starttime int(10) unsigned NOT NULL default '0' COMMENT '开始时间',
  385. endtime int(10) unsigned NOT NULL default '0' COMMENT '结束时间',
  386. message text NOT NULL COMMENT '消息',
  387. groups text NOT NULL COMMENT '接受用户组',
  388. PRIMARY KEY (id),
  389. KEY timespan (starttime,endtime)
  390. ) ENGINE=MyISAM COMMENT='公告表';
  391. DROP TABLE IF EXISTS pre_forum_threadimage;
  392. CREATE TABLE pre_forum_threadimage (
  393. `tid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  394. attachment varchar(255) NOT NULL default COMMENT '服务器路径',
  395. remote tinyint(1) unsigned NOT NULL default '0' COMMENT '是否远程附件',
  396. KEY tid (tid)
  397. ) ENGINE=MyISAM COMMENT='主题图片表';

  398. DROP TABLE IF EXISTS pre_forum_attachment;
  399. CREATE TABLE pre_forum_attachment (
  400. aid mediumint(8) unsigned NOT NULL auto_increment COMMENT '附件id',
  401. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  402. pid int(10) unsigned NOT NULL default '0' COMMENT '帖子id',
  403. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  404. tableid tinyint(1) unsigned NOT NULL default '0' COMMENT '附件表id',
  405. downloads mediumint(8) NOT NULL default '0' COMMENT '下载次数',
  406. PRIMARY KEY (aid),
  407. KEY tid (tid),
  408. KEY pid (pid),
  409. KEY uid (uid)
  410. ) ENGINE=MyISAM COMMENT='附件索引表';
  411. DROP TABLE IF EXISTS pre_forum_attachment_exif;
  412. CREATE TABLE pre_forum_attachment_exif (
  413. aid mediumint(8) unsigned NOT NULL COMMENT '附件id',
  414. exif text NOT NULL COMMENT 'exif信息',
  415. PRIMARY KEY (aid)
  416. ) ENGINE=MyISAM COMMENT='Exif缓存表';
  417. DROP TABLE IF EXISTS pre_forum_attachment_unused;
  418. CREATE TABLE pre_forum_attachment_unused (
  419. aid mediumint(8) unsigned NOT NULL COMMENT '附件id',
  420. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  421. dateline int(10) unsigned NOT NULL default '0' COMMENT '上传时间',
  422. filename varchar(255) NOT NULL default COMMENT '原文件名',
  423. filesize int(10) unsigned NOT NULL default '0' COMMENT '文件大小',
  424. attachment varchar(255) NOT NULL default COMMENT '服务器路径',
  425. remote tinyint(1) unsigned NOT NULL default '0' COMMENT '是否远程附件',
  426. isimage tinyint(1) NOT NULL default '0' COMMENT '是否图片',
  427. width smallint(6) unsigned NOT NULL default '0' COMMENT '附件宽度',
  428. thumb tinyint(1) unsigned NOT NULL default '0' COMMENT '是否是缩率图',
  429. PRIMARY KEY (aid),
  430. KEY uid (uid)
  431. ) ENGINE=MyISAM COMMENT='未使用附件表';
  432. DROP TABLE IF EXISTS pre_forum_attachment_0;
  433. CREATE TABLE pre_forum_attachment_0 (
  434. aid mediumint(8) unsigned NOT NULL COMMENT '附件id',
  435. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  436. pid int(10) unsigned NOT NULL default '0' COMMENT '帖子id',
  437. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  438. dateline int(10) unsigned NOT NULL default '0' COMMENT '上传时间',
  439. filename varchar(255) NOT NULL default COMMENT '原文件名',
  440. filesize int(10) unsigned NOT NULL default '0' COMMENT '文件大小',
  441. attachment varchar(255) NOT NULL default COMMENT '服务器路径',
  442. remote tinyint(1) unsigned NOT NULL default '0' COMMENT '是否远程附件',
  443. description varchar(255) NOT NULL COMMENT '说明',
  444. readperm tinyint(3) unsigned NOT NULL default '0' COMMENT '阅读权限',
  445. price smallint(6) unsigned NOT NULL default '0' COMMENT '附件价格',
  446. isimage tinyint(1) NOT NULL default '0' COMMENT '是否图片',
  447. width smallint(6) unsigned NOT NULL default '0' COMMENT '附件宽度',
  448. thumb tinyint(1) unsigned NOT NULL default '0' COMMENT '是否是缩率图',
  449. picid mediumint(8) NOT NULL default '0' COMMENT '相册图片ID ',
  450. PRIMARY KEY (aid),
  451. KEY tid (tid),
  452. KEY pid (pid),
  453. KEY uid (uid)
  454. ) ENGINE=MyISAM COMMENT='附件表';
  455. DROP TABLE IF EXISTS pre_forum_attachment_1;
  456. CREATE TABLE pre_forum_attachment_1 (
  457. aid mediumint(8) unsigned NOT NULL COMMENT '附件id',
  458. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  459. pid int(10) unsigned NOT NULL default '0' COMMENT '帖子id',
  460. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  461. dateline int(10) unsigned NOT NULL default '0' COMMENT '上传时间',
  462. filename varchar(255) NOT NULL default COMMENT '原文件名',
  463. filesize int(10) unsigned NOT NULL default '0' COMMENT '文件大小',
  464. attachment varchar(255) NOT NULL default COMMENT '服务器路径',
  465. remote tinyint(1) unsigned NOT NULL default '0' COMMENT '是否远程附件',
  466. description varchar(255) NOT NULL COMMENT '说明',
  467. readperm tinyint(3) unsigned NOT NULL default '0' COMMENT '阅读权限',
  468. price smallint(6) unsigned NOT NULL default '0' COMMENT '附件价格',
  469. isimage tinyint(1) NOT NULL default '0' COMMENT '是否图片',
  470. width smallint(6) unsigned NOT NULL default '0' COMMENT '附件宽度',
  471. thumb tinyint(1) unsigned NOT NULL default '0' COMMENT '是否是缩率图',
  472. picid mediumint(8) NOT NULL default '0' COMMENT '相册图片ID ',
  473. PRIMARY KEY (aid),
  474. KEY tid (tid),
  475. KEY pid (pid),
  476. KEY uid (uid)
  477. ) ENGINE=MyISAM COMMENT='附件表';
  478. DROP TABLE IF EXISTS pre_forum_attachment_2;
  479. CREATE TABLE pre_forum_attachment_2 (
  480. aid mediumint(8) unsigned NOT NULL COMMENT '附件id',
  481. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  482. pid int(10) unsigned NOT NULL default '0' COMMENT '帖子id',
  483. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  484. dateline int(10) unsigned NOT NULL default '0' COMMENT '上传时间',
  485. filename varchar(255) NOT NULL default COMMENT '原文件名',
  486. filesize int(10) unsigned NOT NULL default '0' COMMENT '文件大小',
  487. attachment varchar(255) NOT NULL default COMMENT '服务器路径',
  488. remote tinyint(1) unsigned NOT NULL default '0' COMMENT '是否远程附件',
  489. description varchar(255) NOT NULL COMMENT '说明',
  490. readperm tinyint(3) unsigned NOT NULL default '0' COMMENT '阅读权限',
  491. price smallint(6) unsigned NOT NULL default '0' COMMENT '附件价格',
  492. isimage tinyint(1) NOT NULL default '0' COMMENT '是否图片',
  493. width smallint(6) unsigned NOT NULL default '0' COMMENT '附件宽度',
  494. thumb tinyint(1) unsigned NOT NULL default '0' COMMENT '是否是缩率图',
  495. picid mediumint(8) NOT NULL default '0' COMMENT '相册图片ID ',
  496. PRIMARY KEY (aid),
  497. KEY tid (tid),
  498. KEY pid (pid),
  499. KEY uid (uid)
  500. ) ENGINE=MyISAM COMMENT='附件表';
  501. DROP TABLE IF EXISTS pre_forum_attachment_3;
  502. CREATE TABLE pre_forum_attachment_3 (
  503. aid mediumint(8) unsigned NOT NULL COMMENT '附件id',
  504. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  505. pid int(10) unsigned NOT NULL default '0' COMMENT '帖子id',
  506. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  507. dateline int(10) unsigned NOT NULL default '0' COMMENT '上传时间',
  508. filename varchar(255) NOT NULL default COMMENT '原文件名',
  509. filesize int(10) unsigned NOT NULL default '0' COMMENT '文件大小',
  510. attachment varchar(255) NOT NULL default COMMENT '服务器路径',
  511. remote tinyint(1) unsigned NOT NULL default '0' COMMENT '是否远程附件',
  512. description varchar(255) NOT NULL COMMENT '说明',
  513. readperm tinyint(3) unsigned NOT NULL default '0' COMMENT '阅读权限',
  514. price smallint(6) unsigned NOT NULL default '0' COMMENT '附件价格',
  515. isimage tinyint(1) NOT NULL default '0' COMMENT '是否图片',
  516. width smallint(6) unsigned NOT NULL default '0' COMMENT '附件宽度',
  517. thumb tinyint(1) unsigned NOT NULL default '0' COMMENT '是否是缩率图',
  518. picid mediumint(8) NOT NULL default '0' COMMENT '相册图片ID ',
  519. PRIMARY KEY (aid),
  520. KEY tid (tid),
  521. KEY pid (pid),
  522. KEY uid (uid)
  523. ) ENGINE=MyISAM COMMENT='附件表';
  524. DROP TABLE IF EXISTS pre_forum_attachment_4;
  525. CREATE TABLE pre_forum_attachment_4 (
  526. aid mediumint(8) unsigned NOT NULL COMMENT '附件id',
  527. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  528. pid int(10) unsigned NOT NULL default '0' COMMENT '帖子id',
  529. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  530. dateline int(10) unsigned NOT NULL default '0' COMMENT '上传时间',
  531. filename varchar(255) NOT NULL default COMMENT '原文件名',
  532. filesize int(10) unsigned NOT NULL default '0' COMMENT '文件大小',
  533. attachment varchar(255) NOT NULL default COMMENT '服务器路径',
  534. remote tinyint(1) unsigned NOT NULL default '0' COMMENT '是否远程附件',
  535. description varchar(255) NOT NULL COMMENT '说明',
  536. readperm tinyint(3) unsigned NOT NULL default '0' COMMENT '阅读权限',
  537. price smallint(6) unsigned NOT NULL default '0' COMMENT '附件价格',
  538. isimage tinyint(1) NOT NULL default '0' COMMENT '是否图片',
  539. width smallint(6) unsigned NOT NULL default '0' COMMENT '附件宽度',
  540. thumb tinyint(1) unsigned NOT NULL default '0' COMMENT '是否是缩率图',
  541. picid mediumint(8) NOT NULL default '0' COMMENT '相册图片ID ',
  542. PRIMARY KEY (aid),
  543. KEY tid (tid),
  544. KEY pid (pid),
  545. KEY uid (uid)
  546. ) ENGINE=MyISAM COMMENT='附件表';
  547. DROP TABLE IF EXISTS pre_forum_attachment_5;
  548. CREATE TABLE pre_forum_attachment_5 (
  549. aid mediumint(8) unsigned NOT NULL COMMENT '附件id',
  550. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  551. pid int(10) unsigned NOT NULL default '0' COMMENT '帖子id',
  552. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  553. dateline int(10) unsigned NOT NULL default '0' COMMENT '上传时间',
  554. filename varchar(255) NOT NULL default COMMENT '原文件名',
  555. filesize int(10) unsigned NOT NULL default '0' COMMENT '文件大小',
  556. attachment varchar(255) NOT NULL default COMMENT '服务器路径',
  557. remote tinyint(1) unsigned NOT NULL default '0' COMMENT '是否远程附件',
  558. description varchar(255) NOT NULL COMMENT '说明',
  559. readperm tinyint(3) unsigned NOT NULL default '0' COMMENT '阅读权限',
  560. price smallint(6) unsigned NOT NULL default '0' COMMENT '附件价格',
  561. isimage tinyint(1) NOT NULL default '0' COMMENT '是否图片',
  562. width smallint(6) unsigned NOT NULL default '0' COMMENT '附件宽度',
  563. thumb tinyint(1) unsigned NOT NULL default '0' COMMENT '是否是缩率图',
  564. picid mediumint(8) NOT NULL default '0' COMMENT '相册图片ID ',
  565. PRIMARY KEY (aid),
  566. KEY tid (tid),
  567. KEY pid (pid),
  568. KEY uid (uid)
  569. ) ENGINE=MyISAM COMMENT='附件表';
  570. DROP TABLE IF EXISTS pre_forum_attachment_6;
  571. CREATE TABLE pre_forum_attachment_6 (
  572. aid mediumint(8) unsigned NOT NULL COMMENT '附件id',
  573. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  574. pid int(10) unsigned NOT NULL default '0' COMMENT '帖子id',
  575. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  576. dateline int(10) unsigned NOT NULL default '0' COMMENT '上传时间',
  577. filename varchar(255) NOT NULL default COMMENT '原文件名',
  578. filesize int(10) unsigned NOT NULL default '0' COMMENT '文件大小',
  579. attachment varchar(255) NOT NULL default COMMENT '服务器路径',
  580. remote tinyint(1) unsigned NOT NULL default '0' COMMENT '是否远程附件',
  581. description varchar(255) NOT NULL COMMENT '说明',
  582. readperm tinyint(3) unsigned NOT NULL default '0' COMMENT '阅读权限',
  583. price smallint(6) unsigned NOT NULL default '0' COMMENT '附件价格',
  584. isimage tinyint(1) NOT NULL default '0' COMMENT '是否图片',
  585. width smallint(6) unsigned NOT NULL default '0' COMMENT '附件宽度',
  586. thumb tinyint(1) unsigned NOT NULL default '0' COMMENT '是否是缩率图',
  587. picid mediumint(8) NOT NULL default '0' COMMENT '相册图片ID ',
  588. PRIMARY KEY (aid),
  589. KEY tid (tid),
  590. KEY pid (pid),
  591. KEY uid (uid)
  592. ) ENGINE=MyISAM COMMENT='附件表';
  593. DROP TABLE IF EXISTS pre_forum_attachment_7;
  594. CREATE TABLE pre_forum_attachment_7 (
  595. aid mediumint(8) unsigned NOT NULL COMMENT '附件id',
  596. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  597. pid int(10) unsigned NOT NULL default '0' COMMENT '帖子id',
  598. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  599. dateline int(10) unsigned NOT NULL default '0' COMMENT '上传时间',
  600. filename varchar(255) NOT NULL default COMMENT '原文件名',
  601. filesize int(10) unsigned NOT NULL default '0' COMMENT '文件大小',
  602. attachment varchar(255) NOT NULL default COMMENT '服务器路径',
  603. remote tinyint(1) unsigned NOT NULL default '0' COMMENT '是否远程附件',
  604. description varchar(255) NOT NULL COMMENT '说明',
  605. readperm tinyint(3) unsigned NOT NULL default '0' COMMENT '阅读权限',
  606. price smallint(6) unsigned NOT NULL default '0' COMMENT '附件价格',
  607. isimage tinyint(1) NOT NULL default '0' COMMENT '是否图片',
  608. width smallint(6) unsigned NOT NULL default '0' COMMENT '附件宽度',
  609. thumb tinyint(1) unsigned NOT NULL default '0' COMMENT '是否是缩率图',
  610. picid mediumint(8) NOT NULL default '0' COMMENT '相册图片ID ',
  611. PRIMARY KEY (aid),
  612. KEY tid (tid),
  613. KEY pid (pid),
  614. KEY uid (uid)
  615. ) ENGINE=MyISAM COMMENT='附件表';
  616. DROP TABLE IF EXISTS pre_forum_attachment_8;
  617. CREATE TABLE pre_forum_attachment_8 (
  618. aid mediumint(8) unsigned NOT NULL COMMENT '附件id',
  619. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  620. pid int(10) unsigned NOT NULL default '0' COMMENT '帖子id',
  621. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  622. dateline int(10) unsigned NOT NULL default '0' COMMENT '上传时间',
  623. filename varchar(255) NOT NULL default COMMENT '原文件名',
  624. filesize int(10) unsigned NOT NULL default '0' COMMENT '文件大小',
  625. attachment varchar(255) NOT NULL default COMMENT '服务器路径',
  626. remote tinyint(1) unsigned NOT NULL default '0' COMMENT '是否远程附件',
  627. description varchar(255) NOT NULL COMMENT '说明',
  628. readperm tinyint(3) unsigned NOT NULL default '0' COMMENT '阅读权限',
  629. price smallint(6) unsigned NOT NULL default '0' COMMENT '附件价格',
  630. isimage tinyint(1) NOT NULL default '0' COMMENT '是否图片',
  631. width smallint(6) unsigned NOT NULL default '0' COMMENT '附件宽度',
  632. thumb tinyint(1) unsigned NOT NULL default '0' COMMENT '是否是缩率图',
  633. picid mediumint(8) NOT NULL default '0' COMMENT '相册图片ID ',
  634. PRIMARY KEY (aid),
  635. KEY tid (tid),
  636. KEY pid (pid),
  637. KEY uid (uid)
  638. ) ENGINE=MyISAM COMMENT='附件表';
  639. DROP TABLE IF EXISTS pre_forum_attachment_9;
  640. CREATE TABLE pre_forum_attachment_9 (
  641. aid mediumint(8) unsigned NOT NULL COMMENT '附件id',
  642. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  643. pid int(10) unsigned NOT NULL default '0' COMMENT '帖子id',
  644. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  645. dateline int(10) unsigned NOT NULL default '0' COMMENT '上传时间',
  646. filename varchar(255) NOT NULL default COMMENT '原文件名',
  647. filesize int(10) unsigned NOT NULL default '0' COMMENT '文件大小',
  648. attachment varchar(255) NOT NULL default COMMENT '服务器路径',
  649. remote tinyint(1) unsigned NOT NULL default '0' COMMENT '是否远程附件',
  650. description varchar(255) NOT NULL COMMENT '说明',
  651. readperm tinyint(3) unsigned NOT NULL default '0' COMMENT '阅读权限',
  652. price smallint(6) unsigned NOT NULL default '0' COMMENT '附件价格',
  653. isimage tinyint(1) NOT NULL default '0' COMMENT '是否图片',
  654. width smallint(6) unsigned NOT NULL default '0' COMMENT '附件宽度',
  655. thumb tinyint(1) unsigned NOT NULL default '0' COMMENT '是否是缩率图',
  656. picid mediumint(8) NOT NULL default '0' COMMENT '相册图片ID ',
  657. PRIMARY KEY (aid),
  658. KEY tid (tid),
  659. KEY pid (pid),
  660. KEY uid (uid)
  661. ) ENGINE=MyISAM COMMENT='附件表';

  662. DROP TABLE IF EXISTS pre_forum_attachtype;
  663. CREATE TABLE pre_forum_attachtype (
  664. id smallint(6) unsigned NOT NULL auto_increment COMMENT '类型id',
  665. fid mediumint(8) unsigned NOT NULL default '0' COMMENT '论坛id',
  666. extension char(12) NOT NULL default COMMENT '扩展名',
  667. maxsize int(10) unsigned NOT NULL default '0' COMMENT '允许上传最大值',
  668. PRIMARY KEY (id),
  669. KEY fid (fid)
  670. ) ENGINE=MyISAM COMMENT='附件类型表';
复制代码
回复

使用道具 举报

 楼主| gdnyhl 发表于 2012-8-6 02:18:34 | 显示全部楼层
  1. DROP TABLE IF EXISTS pre_forum_bbcode;
  2. CREATE TABLE pre_forum_bbcode (
  3. id mediumint(8) unsigned NOT NULL auto_increment COMMENT '代码id',
  4. available tinyint(1) NOT NULL default '0' COMMENT '是否启用\n(0:不启用 1:启用但不显示 2:启用并显示)',
  5. tag varchar(100) NOT NULL default COMMENT '标签',
  6. icon varchar(255) NOT NULL COMMENT '图标',
  7. replacement text NOT NULL COMMENT '替换内容',
  8. example varchar(255) NOT NULL default COMMENT '例子',
  9. explanation text NOT NULL COMMENT '解释说明',
  10. params tinyint(1) unsigned NOT NULL default '1' COMMENT '参数个数',
  11. prompt text NOT NULL COMMENT '标签描述',
  12. nest tinyint(3) unsigned NOT NULL default '1' COMMENT '嵌套层次',
  13. displayorder tinyint(3) NOT NULL default '0' COMMENT '显示顺序',
  14. perm text NOT NULL COMMENT '有权使用的用户组',
  15. PRIMARY KEY (id)
  16. ) ENGINE=MyISAM COMMENT='Discuz! 代码表';

  17. DROP TABLE IF EXISTS pre_forum_creditslog;
  18. CREATE TABLE pre_forum_creditslog (
  19. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  20. fromto char(15) NOT NULL default COMMENT '来自/到',
  21. sendcredits tinyint(1) NOT NULL default '0' COMMENT '转出积分字段',
  22. receivecredits tinyint(1) NOT NULL default '0' COMMENT '接受积分字段',
  23. send int(10) unsigned NOT NULL default '0' COMMENT '转出积分',
  24. receive int(10) unsigned NOT NULL default '0' COMMENT '接受积分',
  25. dateline int(10) unsigned NOT NULL default '0' COMMENT '转帐日期',
  26. operation char(3) NOT NULL default COMMENT '操作',
  27. KEY uid (uid,dateline)
  28. ) ENGINE=MyISAM COMMENT='转帐记录表';

  29. DROP TABLE IF EXISTS pre_forum_debate;
  30. CREATE TABLE pre_forum_debate (
  31. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  32. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '发起人id',
  33. starttime int(10) unsigned NOT NULL default '0' COMMENT '开始时间',
  34. endtime int(10) unsigned NOT NULL default '0' COMMENT '结束时间',
  35. affirmdebaters mediumint(8) unsigned NOT NULL default '0' COMMENT '正方辩论人数',
  36. negadebaters mediumint(8) unsigned NOT NULL default '0' COMMENT '反方辩论人数',
  37. affirmvotes mediumint(8) unsigned NOT NULL default '0' COMMENT '正方得票数',
  38. negavotes mediumint(8) unsigned NOT NULL default '0' COMMENT '反方得票数',
  39. umpire varchar(15) NOT NULL default COMMENT '裁判用户名',
  40. winner tinyint(1) NOT NULL default '0' COMMENT '获胜方\n(0:平局 1:为正方 2:为反方)\n裁判评判结果',
  41. bestdebater varchar(50) NOT NULL default COMMENT '最佳辩手用户名',
  42. affirmpoint text NOT NULL COMMENT '正方观点',
  43. negapoint text NOT NULL COMMENT '反方观点',
  44. umpirepoint text NOT NULL COMMENT '裁判观点,裁判结束辩论时填写',
  45. affirmvoterids text NOT NULL COMMENT '正方投票人的 id 集合',
  46. negavoterids text NOT NULL COMMENT '反方投票人的 id 集合',
  47. affirmreplies mediumint(8) unsigned NOT NULL COMMENT '正方回复次数,用来翻页',
  48. negareplies mediumint(8) unsigned NOT NULL COMMENT '反方回复次数,用来翻页',
  49. PRIMARY KEY (tid),
  50. KEY uid (uid,starttime)
  51. ) ENGINE=MyISAM COMMENT='辩论主题表';

  52. DROP TABLE IF EXISTS pre_forum_debatepost;
  53. CREATE TABLE pre_forum_debatepost (
  54. pid int(10) unsigned NOT NULL default '0' COMMENT '帖子id',
  55. stand tinyint(1) NOT NULL default '0' COMMENT '立场\n(0:中立 1:正方 2:为反方)',
  56. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  57. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '发起人id',
  58. dateline int(10) unsigned NOT NULL default '0' COMMENT '发表的时间',
  59. voters mediumint(10) unsigned NOT NULL default '0' COMMENT '投票人数',
  60. voterids text NOT NULL COMMENT '投票人的 id 集合',
  61. PRIMARY KEY (pid),
  62. KEY pid (pid,stand),
  63. KEY tid (tid,uid)
  64. ) ENGINE=MyISAM COMMENT='辩论帖子表';

  65. DROP TABLE IF EXISTS pre_forum_faq;
  66. CREATE TABLE pre_forum_faq (
  67. id smallint(6) NOT NULL auto_increment COMMENT '帮助id',
  68. fpid smallint(6) unsigned NOT NULL default '0' COMMENT '帮助父id',
  69. displayorder tinyint(3) NOT NULL default '0' COMMENT '排序',
  70. identifier varchar(20) NOT NULL COMMENT '帮助标识',
  71. keyword varchar(50) NOT NULL COMMENT '帮助关键词',
  72. title varchar(50) NOT NULL COMMENT '帮助标题',
  73. message text NOT NULL COMMENT '帮助内容',
  74. PRIMARY KEY (id),
  75. KEY displayplay (displayorder)
  76. ) ENGINE=MyISAM COMMENT='论坛帮助表';

  77. DROP TABLE IF EXISTS pre_forum_postcache;
  78. CREATE TABLE pre_forum_postcache (
  79. pid int(10) unsigned NOT NULL,
  80. comment text NOT NULL COMMENT '点评内容缓存',
  81. rate text NOT NULL COMMENT '评分情况缓存',
  82. dateline int(10) unsigned NOT NULL DEFAULT '0',
  83. PRIMARY KEY (pid),
  84. KEY dateline (dateline)
  85. ) ENGINE=MyISAM COMMENT='论坛帖子缓存表';

  86. DROP TABLE IF EXISTS pre_home_favorite;
  87. CREATE TABLE pre_home_favorite (
  88. favid mediumint(8) unsigned NOT NULL auto_increment COMMENT '收藏id',
  89. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  90. id mediumint(8) unsigned NOT NULL default '0',
  91. idtype varchar(255) NOT NULL default ,
  92. spaceuid mediumint(8) unsigned NOT NULL default '0' COMMENT '空间会员id',
  93. title varchar(255) NOT NULL default COMMENT '标题',
  94. description text NOT NULL COMMENT '简介',
  95. dateline int(10) unsigned NOT NULL default '0',
  96. PRIMARY KEY (favid),
  97. KEY idtype (id,idtype),
  98. KEY uid (uid,idtype,dateline)
  99. ) ENGINE=MyISAM COMMENT='收藏表';

  100. DROP TABLE IF EXISTS pre_forum_forum;
  101. CREATE TABLE pre_forum_forum (
  102. fid mediumint(8) unsigned NOT NULL auto_increment COMMENT '论坛id',
  103. fup mediumint(8) unsigned NOT NULL default '0' COMMENT '上级论坛id',
  104. `type` enum('group','forum','sub') NOT NULL default 'forum' COMMENT '类型\n(group:分类 forum:普通论坛 sub:子论坛)',
  105. `name` char(50) NOT NULL default COMMENT '名称',
  106. `status` tinyint(1) NOT NULL default '0' COMMENT '显示状态\n(0:隐藏 1:正常 3:群组)',
  107. displayorder smallint(6) NOT NULL default '0' COMMENT '显示顺序',
  108. styleid smallint(6) unsigned NOT NULL default '0' COMMENT '风格id',
  109. threads mediumint(8) unsigned NOT NULL default '0' COMMENT '主题数量',
  110. posts mediumint(8) unsigned NOT NULL default '0' COMMENT '帖子数量',
  111. todayposts mediumint(8) unsigned NOT NULL default '0' COMMENT '今日发帖数量',
  112. lastpost char(110) NOT NULL default COMMENT '最后发表',
  113. domain char(15) NOT NULL default COMMENT '绑定的二级域名',
  114. allowsmilies tinyint(1) NOT NULL default '0' COMMENT '允许使用表情',
  115. allowhtml tinyint(1) NOT NULL default '0' COMMENT '允许使用html',
  116. allowbbcode tinyint(1) NOT NULL default '0' COMMENT '允许bbcode',
  117. allowimgcode tinyint(1) NOT NULL default '0' COMMENT '允许img',
  118. allowmediacode tinyint(1) NOT NULL default '0' COMMENT '允许使用多媒体代码',
  119. allowanonymous tinyint(1) NOT NULL default '0' COMMENT '允许匿名',
  120. allowpostspecial smallint(6) unsigned NOT NULL default '0' COMMENT '允许发表特殊主题',
  121. allowspecialonly tinyint(1) unsigned NOT NULL default '0' COMMENT '只允许发表特殊主题',
  122. allowappend tinyint(1) unsigned NOT NULL default '0' COMMENT '是否开启帖子补充',
  123. alloweditrules tinyint(1) NOT NULL default '0' COMMENT '允许版主修改论坛规则',
  124. allowfeed tinyint(1) NOT NULL default '1' COMMENT '允许推送动态,默认推送广播',
  125. allowside tinyint(1) NOT NULL default '0' COMMENT '显示边栏',
  126. recyclebin tinyint(1) NOT NULL default '0' COMMENT '是否启用回收站',
  127. modnewposts tinyint(1) NOT NULL default '0' COMMENT '是否审核发帖',
  128. jammer tinyint(1) NOT NULL default '0' COMMENT '是否启用干扰码',
  129. disablewatermark tinyint(1) NOT NULL default '0' COMMENT '是否图片附件增加水印',
  130. inheritedmod tinyint(1) NOT NULL default '0' COMMENT '本论坛或分类版主的权力继承到下级论坛',
  131. autoclose smallint(6) NOT NULL default '0' COMMENT '自动关闭主题',
  132. forumcolumns tinyint(3) unsigned NOT NULL default '0' COMMENT '增加论坛水平横排设置',
  133. catforumcolumns tinyint(3) unsigned NOT NULL default '0' COMMENT '增加分区版块水平横排设置',
  134. threadcaches tinyint(1) NOT NULL default '0' COMMENT '主题缓存功能设置',
  135. alloweditpost tinyint(1) unsigned NOT NULL default '1' COMMENT '允许编辑帖子',
  136. `simple` tinyint(1) unsigned NOT NULL default '0' COMMENT '只显示子版块',
  137. modworks tinyint(1) unsigned NOT NULL default '0' COMMENT '本版有待处理的管理事项',
  138. allowglobalstick tinyint(1) NOT NULL default '1' COMMENT '是否显示全局置顶',
  139. level smallint(6) NOT NULL default '0' COMMENT '群组等级',
  140. commoncredits int(10) unsigned NOT NULL default '0' COMMENT '群组公共积分',
  141. `archive` tinyint(1) NOT NULL default '0' COMMENT '是否有存档表',
  142. recommend smallint(6) unsigned NOT NULL default '0' COMMENT '推荐到的版块',
  143. favtimes mediumint(8) unsigned NOT NULL default '0' COMMENT '版块或群组的收藏次数',
  144. sharetimes mediumint(8) unsigned NOT NULL default '0' COMMENT '版块或群组的分享次数',
  145. disablethumb tinyint(1) NOT NULL default '0' COMMENT '是否添加缩略图',
  146. disablecollect tinyint(1) NOT NULL default '0' COMMENT '禁止淘帖',
  147. PRIMARY KEY (fid),
  148. KEY forum (`status`,`type`,displayorder),
  149. KEY fup_type (`fup`,`type`,displayorder),
  150. KEY fup (fup)
  151. ) ENGINE=MyISAM COMMENT='版块表';

  152. DROP TABLE IF EXISTS pre_forum_forumfield;
  153. CREATE TABLE pre_forum_forumfield (
  154. fid mediumint(8) unsigned NOT NULL default '0' COMMENT '版块id',
  155. description text NOT NULL COMMENT '解释说明',
  156. `password` varchar(12) NOT NULL default COMMENT '私密论坛密码',
  157. icon varchar(255) NOT NULL default COMMENT '图标',
  158. redirect varchar(255) NOT NULL default COMMENT 'URL转发',
  159. attachextensions varchar(255) NOT NULL default COMMENT '允许上传附件类型',
  160. creditspolicy mediumtext NOT NULL COMMENT '版块积分策略',
  161. formulaperm text NOT NULL COMMENT '版块权限表达式',
  162. moderators text NOT NULL COMMENT '版主列表,格式:admin',
  163. rules text NOT NULL COMMENT '版块规则',
  164. threadtypes text NOT NULL COMMENT '主题分类,序列化存放的设置,格式为一个数组',
  165. threadsorts text NOT NULL COMMENT '分类信息,序列化存放的设置,格式为一个数组',
  166. viewperm text NOT NULL COMMENT '阅读权限, 格式: 1 4 5',
  167. postperm text NOT NULL COMMENT '发表权限, 格式: 1 4 5',
  168. replyperm text NOT NULL COMMENT '回复权限, 格式: 1 4 5',
  169. getattachperm text NOT NULL COMMENT '下载附件权限, 格式: 1 4 5',
  170. postattachperm text NOT NULL COMMENT '上传附件权限, 格式: 1 4 5',
  171. postimageperm text NOT NULL COMMENT '上传图片权限, 格式: 1 4 5',
  172. spviewperm text NOT NULL COMMENT '不受限于版权权限表达式, 格式: 1 4 5',
  173. seotitle text NOT NULL COMMENT '版块seo标题',
  174. keywords text NOT NULL COMMENT '版块seo关键词',
  175. seodescription text NOT NULL COMMENT '版块seo描述',
  176. supe_pushsetting text NOT NULL COMMENT 'supe推送设置,序列化存放设置数据,格式为一个数组。',
  177. modrecommend text NOT NULL COMMENT '版主推荐规则',
  178. threadplugin text NOT NULL COMMENT '特殊主题插件数据',
  179. extra TEXT NOT NULL,
  180. jointype tinyint(1) NOT NULL default '0' COMMENT '加入群组方式 -1为关闭,0为公开, 2邀请',
  181. gviewperm tinyint(1) unsigned NOT NULL default '0' COMMENT '群组浏览权限 0:仅成员 1:所有用户',
  182. membernum smallint(6) unsigned NOT NULL default '0' COMMENT '群组成员数',
  183. dateline int(10) unsigned NOT NULL default '0' COMMENT '群组创建时间',
  184. lastupdate int(10) unsigned NOT NULL default '0' COMMENT '群组最后更新时间',
  185. activity int(10) unsigned NOT NULL default '0' COMMENT '群组活跃度',
  186. founderuid mediumint(8) unsigned NOT NULL default '0' COMMENT '群组创始人UID',
  187. foundername varchar(255) NOT NULL default COMMENT '群组创始人名称',
  188. banner varchar(255) NOT NULL default COMMENT '群组头图片',
  189. groupnum smallint(6) unsigned NOT NULL default '0' COMMENT '分类下的群组数量',
  190. commentitem TEXT NOT NULL,
  191. relatedgroup TEXT NOT NULL,
  192. picstyle tinyint(1) NOT NULL default '0' COMMENT '帖子列表是否以图片形式显示 0:否 1:是',
  193. widthauto tinyint(1) NOT NULL default '0' COMMENT '默认是否宽屏 0:全局 -1:宽屏 1:窄屏',
  194. PRIMARY KEY (fid),
  195. KEY membernum (membernum),
  196. KEY dateline (dateline),
  197. KEY lastupdate (lastupdate),
  198. KEY activity (activity)
  199. ) ENGINE=MyISAM COMMENT='版块扩展表';
  200. DROP TABLE IF EXISTS pre_forum_forum_threadtable;
  201. CREATE TABLE pre_forum_forum_threadtable (
  202. `fid` smallint(6) unsigned NOT NULL COMMENT '版块id',
  203. `threadtableid` smallint(6) unsigned NOT NULL COMMENT 'thread分区id',
  204. `threads` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '主题数',
  205. `posts` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '帖子数',
  206. PRIMARY KEY (`fid`,`threadtableid`)
  207. ) ENGINE=MyISAM COMMENT='版块存档信息';

  208. DROP TABLE IF EXISTS pre_forum_forumrecommend;
  209. CREATE TABLE pre_forum_forumrecommend (
  210. fid mediumint(8) unsigned NOT NULL default '0' COMMENT '版块id',
  211. tid mediumint(8) unsigned NOT NULL COMMENT '帖子id',
  212. typeid smallint(6) NOT NULL COMMENT '是否含有附件图片',
  213. displayorder tinyint(1) NOT NULL COMMENT '推荐顺序',
  214. `subject` char(80) NOT NULL COMMENT '推荐主题标题',
  215. author char(15) NOT NULL COMMENT '推荐主题作者',
  216. authorid mediumint(8) NOT NULL COMMENT '推荐主题作者id',
  217. moderatorid mediumint(8) NOT NULL COMMENT '推荐管理人员id',
  218. expiration int(10) unsigned NOT NULL COMMENT '推荐主题有效期',
  219. position tinyint(1) NOT NULL default '0' COMMENT '显示位置',
  220. highlight tinyint(1) NOT NULL default '0' COMMENT '高亮颜色',
  221. aid mediumint(8) unsigned NOT NULL default '0' COMMENT '附件ID',
  222. filename char(100) NOT NULL default COMMENT '附件文件',
  223. PRIMARY KEY (tid),
  224. KEY displayorder (fid,displayorder),
  225. KEY position (position)
  226. ) ENGINE=MyISAM COMMENT='版主推荐表';

  227. DROP TABLE IF EXISTS pre_forum_imagetype;
  228. CREATE TABLE pre_forum_imagetype (
  229. typeid smallint(6) unsigned NOT NULL auto_increment COMMENT '分类id',
  230. available tinyint(1) NOT NULL default '0' COMMENT '是否启用',
  231. `name` char(20) NOT NULL COMMENT '分类名称',
  232. `type` enum('smiley','icon','avatar') NOT NULL default 'smiley' COMMENT '分类类型\n(smiley:表情 icon:图标 avatar:头像)',
  233. displayorder tinyint(3) NOT NULL default '0' COMMENT '分类顺序',
  234. `directory` char(100) NOT NULL COMMENT '图片目录',
  235. PRIMARY KEY (typeid)
  236. ) ENGINE=MyISAM COMMENT='图片 表情 头像等 分类';

  237. DROP TABLE IF EXISTS pre_forum_medal;
  238. CREATE TABLE pre_forum_medal (
  239. medalid smallint(6) unsigned NOT NULL auto_increment COMMENT '勋章id',
  240. `name` varchar(50) NOT NULL default COMMENT '勋章名称',
  241. available tinyint(1) NOT NULL default '0' COMMENT '是否启用',
  242. image varchar(255) NOT NULL default COMMENT '勋章图片',
  243. `type` tinyint(1) NOT NULL default '0' COMMENT '勋章类型',
  244. displayorder tinyint(3) NOT NULL default '0' COMMENT '勋章显示顺序',
  245. description varchar(255) NOT NULL COMMENT '勋章描述',
  246. expiration smallint(6) unsigned NOT NULL default '0' COMMENT '勋章有效期',
  247. permission mediumtext NOT NULL COMMENT '勋章获得条件表达式',
  248. `credit` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '勋章购买使用积分',
  249. `price` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '勋章价格',
  250. PRIMARY KEY (medalid),
  251. KEY displayorder (displayorder),
  252. KEY `available` (`available`,`displayorder`)
  253. ) ENGINE=MyISAM COMMENT='勋章表';

  254. DROP TABLE IF EXISTS pre_forum_medallog;
  255. CREATE TABLE pre_forum_medallog (
  256. id mediumint(8) unsigned NOT NULL auto_increment COMMENT '记录id',
  257. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '勋章拥有着用户id',
  258. medalid smallint(6) unsigned NOT NULL default '0' COMMENT '勋章id',
  259. `type` tinyint(1) NOT NULL default '0' COMMENT '勋章类型id',
  260. dateline int(10) unsigned NOT NULL default '0' COMMENT '颁发时间id',
  261. expiration int(10) unsigned NOT NULL default '0' COMMENT '有效期id',
  262. `status` tinyint(1) NOT NULL default '0' COMMENT '勋章状态id',
  263. PRIMARY KEY (id),
  264. KEY `type` (`type`),
  265. KEY `status` (`status`,expiration),
  266. KEY uid (uid,medalid,`type`),
  267. KEY `dateline` (`dateline`)
  268. ) ENGINE=MyISAM COMMENT='勋章日志表';

  269. DROP TABLE IF EXISTS pre_common_member_magic;
  270. CREATE TABLE pre_common_member_magic (
  271. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户uid',
  272. magicid smallint(6) unsigned NOT NULL default '0' COMMENT '道具id',
  273. num smallint(6) unsigned NOT NULL default '0' COMMENT '拥有数量',
  274. PRIMARY KEY (uid,magicid)
  275. ) ENGINE=MyISAM COMMENT='用户道具数据表';

  276. DROP TABLE IF EXISTS pre_common_member_medal;
  277. CREATE TABLE pre_common_member_medal (
  278. uid mediumint(8) unsigned NOT NULL,
  279. medalid smallint(6) unsigned NOT NULL,
  280. PRIMARY KEY (uid,medalid)
  281. ) ENGINE=MyISAM COMMENT='用户勋章数据表';

  282. DROP TABLE IF EXISTS pre_forum_memberrecommend;
  283. CREATE TABLE pre_forum_memberrecommend (
  284. tid mediumint(8) unsigned NOT NULL COMMENT '主题ID',
  285. recommenduid mediumint(8) unsigned NOT NULL COMMENT '推荐会员ID',
  286. dateline int(10) unsigned NOT NULL COMMENT '推荐时间',
  287. KEY tid (tid),
  288. KEY uid (recommenduid)
  289. ) ENGINE=MyISAM COMMENT='用户推荐表';

  290. DROP TABLE IF EXISTS pre_forum_moderator;
  291. CREATE TABLE pre_forum_moderator (
  292. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  293. fid mediumint(8) unsigned NOT NULL default '0' COMMENT '论坛id',
  294. displayorder tinyint(3) NOT NULL default '0' COMMENT '显示顺序',
  295. inherited tinyint(1) NOT NULL default '0' COMMENT '是否继承',
  296. PRIMARY KEY (uid,fid)
  297. ) ENGINE=MyISAM COMMENT='版主表';

  298. DROP TABLE IF EXISTS pre_forum_modwork;
  299. CREATE TABLE pre_forum_modwork (
  300. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  301. modaction char(3) NOT NULL default COMMENT '动作',
  302. dateline date NOT NULL default '2006-01-01' COMMENT '时间段',
  303. count smallint(6) unsigned NOT NULL default '0' COMMENT '登录次数',
  304. posts smallint(6) unsigned NOT NULL default '0' COMMENT '发表数',
  305. KEY uid (uid,dateline)
  306. ) ENGINE=MyISAM COMMENT='论坛管理统计表';

  307. DROP TABLE IF EXISTS pre_common_mytask;
  308. CREATE TABLE pre_common_mytask (
  309. uid mediumint(8) unsigned NOT NULL COMMENT '用户Uid',
  310. username char(15) NOT NULL default COMMENT '用户名',
  311. taskid smallint(6) unsigned NOT NULL COMMENT '任务id',
  312. `status` tinyint(1) NOT NULL default '0' COMMENT '任务状态\n(-1:失败 0:进行中 1:已完成)',
  313. csc char(255) NOT NULL default COMMENT '任务进度',
  314. dateline int(10) unsigned NOT NULL default '0' COMMENT '申请任务时间',
  315. PRIMARY KEY (uid,taskid),
  316. KEY parter (taskid,dateline)
  317. ) ENGINE=MyISAM COMMENT='我的任务表';

  318. DROP TABLE IF EXISTS pre_forum_onlinelist;
  319. CREATE TABLE pre_forum_onlinelist (
  320. groupid smallint(6) unsigned NOT NULL default '0' COMMENT '会员组id',
  321. displayorder tinyint(3) NOT NULL default '0' COMMENT '显示顺序',
  322. title varchar(30) NOT NULL default COMMENT '组名称',
  323. url varchar(30) NOT NULL default COMMENT '图例URL'
  324. ) ENGINE=MyISAM COMMENT='在线列表定制';
复制代码
回复

使用道具 举报

 楼主| gdnyhl 发表于 2012-8-6 02:19:00 | 显示全部楼层
  1. DROP TABLE IF EXISTS pre_forum_order;
  2. CREATE TABLE pre_forum_order (
  3. orderid char(32) NOT NULL default COMMENT '订单号id',
  4. `status` char(3) NOT NULL default COMMENT '状态',
  5. buyer char(50) NOT NULL default COMMENT '购买者姓名',
  6. admin char(15) NOT NULL default COMMENT '补单管理员姓名',
  7. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '购买者id',
  8. amount int(10) unsigned NOT NULL default '0' COMMENT '数量',
  9. price float(7,2) unsigned NOT NULL default '0.00' COMMENT '价格',
  10. submitdate int(10) unsigned NOT NULL default '0' COMMENT '提交日期',
  11. confirmdate int(10) unsigned NOT NULL default '0' COMMENT '确认日期',
  12. email char(40) NOT NULL default COMMENT '购买时的Email',
  13. ip char(15) NOT NULL default COMMENT '购买时的IP',
  14. UNIQUE KEY orderid (orderid),
  15. KEY submitdate (submitdate),
  16. KEY uid (uid,submitdate)
  17. ) ENGINE=MyISAM COMMENT='订单信息表';

  18. DROP TABLE IF EXISTS pre_forum_groupfield;
  19. CREATE TABLE pre_forum_groupfield (
  20. fid mediumint(8) unsigned NOT NULL default '0' COMMENT '群组关联fid',
  21. privacy tinyint(1) unsigned NOT NULL default '0' COMMENT '群组隐私设置',
  22. dateline int(10) unsigned NOT NULL default '0' COMMENT '缓存生成时间',
  23. type varchar(255) NOT NULL COMMENT '缓存类型',
  24. data text NOT NULL COMMENT '缓存数据',
  25. UNIQUE KEY types (fid,type),
  26. KEY fid (fid),
  27. KEY type (type)
  28. ) ENGINE = MyISAM COMMENT='群组扩展信息缓存';

  29. DROP TABLE IF EXISTS pre_forum_groupinvite;
  30. CREATE TABLE pre_forum_groupinvite (
  31. fid MEDIUMINT( 8 ) UNSIGNED NOT NULL default '0' COMMENT '群组id',
  32. uid MEDIUMINT( 8 ) UNSIGNED NOT NULL default '0' COMMENT '邀请人id',
  33. inviteuid MEDIUMINT( 8 ) UNSIGNED NOT NULL default '0' COMMENT '被邀请人id',
  34. dateline INT( 10 ) UNSIGNED NOT NULL default '0' COMMENT '邀请时间',
  35. UNIQUE KEY ids (fid,inviteuid),
  36. KEY dateline (dateline)
  37. ) ENGINE = MYISAM COMMENT='群组邀请';

  38. DROP TABLE IF EXISTS pre_forum_groupuser;
  39. CREATE TABLE pre_forum_groupuser (
  40. fid MEDIUMINT( 8 ) UNSIGNED NOT NULL default '0' COMMENT '群组关联fid',
  41. uid MEDIUMINT( 8 ) UNSIGNED NOT NULL default '0' COMMENT '成员id',
  42. username CHAR( 15 ) NOT NULL COMMENT '成员名',
  43. level TINYINT( 3 ) UNSIGNED NOT NULL default '0' COMMENT '成员等级\n(0:待审核 1:群主 2:副群主 3:明星成员 4:普通成员)',
  44. threads MEDIUMINT( 8 ) UNSIGNED NOT NULL default '0' COMMENT '成员主题数',
  45. replies MEDIUMINT( 8 ) UNSIGNED NOT NULL default '0' COMMENT '成员回复数',
  46. joindateline INT( 10 ) UNSIGNED NOT NULL default '0' COMMENT '成员加入群组时间',
  47. lastupdate INT( 10 ) UNSIGNED NOT NULL default '0' COMMENT '成员最后活动时间',
  48. privacy TINYINT( 1 ) UNSIGNED NOT NULL default '0' COMMENT '成员隐私设置',
  49. PRIMARY KEY (fid,uid),
  50. KEY uid_lastupdate (uid,lastupdate),
  51. KEY userlist (fid,level,lastupdate)
  52. ) ENGINE = MYISAM COMMENT='群组成员';

  53. DROP TABLE IF EXISTS pre_common_plugin;
  54. CREATE TABLE pre_common_plugin (
  55. pluginid smallint(6) unsigned NOT NULL auto_increment COMMENT '插件id',
  56. available tinyint(1) NOT NULL default '0' COMMENT '是否启用',
  57. adminid tinyint(1) unsigned NOT NULL default '0' COMMENT '管理员id',
  58. `name` varchar(40) NOT NULL default COMMENT '名称',
  59. identifier varchar(40) NOT NULL default COMMENT '唯一标识符',
  60. description varchar(255) NOT NULL default COMMENT '解释说明',
  61. datatables varchar(255) NOT NULL default COMMENT '插件数据表',
  62. `directory` varchar(100) NOT NULL default COMMENT '插件目录',
  63. copyright varchar(100) NOT NULL default COMMENT '版权信息',
  64. modules text NOT NULL COMMENT '插件信息',
  65. version varchar(20) NOT NULL default COMMENT '插件版本',
  66. PRIMARY KEY (pluginid),
  67. UNIQUE KEY identifier (identifier)
  68. ) ENGINE=MyISAM COMMENT='插件表';

  69. DROP TABLE IF EXISTS pre_common_pluginvar;
  70. CREATE TABLE pre_common_pluginvar (
  71. pluginvarid mediumint(8) unsigned NOT NULL auto_increment COMMENT '插件变量id',
  72. pluginid smallint(6) unsigned NOT NULL default '0' COMMENT '插件id',
  73. displayorder tinyint(3) NOT NULL default '0' COMMENT '显示顺序',
  74. title varchar(100) NOT NULL default COMMENT '名称',
  75. description varchar(255) NOT NULL default COMMENT '解释说明',
  76. variable varchar(40) NOT NULL default COMMENT '变量名',
  77. `type` varchar(20) NOT NULL default 'text' COMMENT '类型',
  78. `value` text NOT NULL COMMENT '值',
  79. extra text NOT NULL COMMENT '附加',
  80. PRIMARY KEY (pluginvarid),
  81. KEY pluginid (pluginid)
  82. ) ENGINE=MyISAM COMMENT='插件变量表';

  83. DROP TABLE IF EXISTS pre_forum_thread_moderate;
  84. CREATE TABLE pre_forum_thread_moderate (
  85. id int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'ID',
  86. status tinyint(3) NOT NULL default '0' COMMENT '状态 0 审核中,1 已忽略',
  87. `dateline` int(10) unsigned NOT NULL DEFAULT '0',
  88. PRIMARY KEY (id),
  89. KEY status (status, dateline)
  90. ) ENGINE=MyISAM COMMENT='主题审核数据表';

  91. DROP TABLE IF EXISTS pre_forum_post_moderate;
  92. CREATE TABLE pre_forum_post_moderate (
  93. id int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'ID',
  94. status tinyint(3) NOT NULL default '0' COMMENT '状态 0 审核中,1 已忽略',
  95. `dateline` int(10) unsigned NOT NULL DEFAULT '0',
  96. PRIMARY KEY (id),
  97. KEY status (status, dateline)
  98. ) ENGINE=MyISAM COMMENT='帖子审核数据表';

  99. DROP TABLE IF EXISTS pre_home_blog_moderate;
  100. CREATE TABLE pre_home_blog_moderate (
  101. id int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'ID',
  102. status tinyint(3) NOT NULL default '0' COMMENT '状态 0 审核中,1 已忽略',
  103. `dateline` int(10) unsigned NOT NULL DEFAULT '0',
  104. PRIMARY KEY (id),
  105. KEY status (status, dateline)
  106. ) ENGINE=MyISAM COMMENT='日志审核数据表';

  107. DROP TABLE IF EXISTS pre_home_pic_moderate;
  108. CREATE TABLE pre_home_pic_moderate (
  109. id int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'ID',
  110. status tinyint(3) NOT NULL default '0' COMMENT '状态 0 审核中,1 已忽略',
  111. `dateline` int(10) unsigned NOT NULL DEFAULT '0',
  112. PRIMARY KEY (id),
  113. KEY status (status, dateline)
  114. ) ENGINE=MyISAM COMMENT='图片审核数据表';

  115. DROP TABLE IF EXISTS pre_home_doing_moderate;
  116. CREATE TABLE pre_home_doing_moderate (
  117. id int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'ID',
  118. status tinyint(3) NOT NULL default '0' COMMENT '状态 0 审核中,1 已忽略',
  119. `dateline` int(10) unsigned NOT NULL DEFAULT '0',
  120. PRIMARY KEY (id),
  121. KEY status (status, dateline)
  122. ) ENGINE=MyISAM COMMENT='记录审核数据表';

  123. DROP TABLE IF EXISTS pre_home_share_moderate;
  124. CREATE TABLE pre_home_share_moderate (
  125. id int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'ID',
  126. status tinyint(3) NOT NULL default '0' COMMENT '状态 0 审核中,1 已忽略',
  127. `dateline` int(10) unsigned NOT NULL DEFAULT '0',
  128. PRIMARY KEY (id),
  129. KEY status (status, dateline)
  130. ) ENGINE=MyISAM COMMENT='分享审核数据表';

  131. DROP TABLE IF EXISTS pre_portal_article_moderate;
  132. CREATE TABLE pre_portal_article_moderate (
  133. id int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'ID',
  134. status tinyint(3) NOT NULL default '0' COMMENT '状态 0 审核中,1 已忽略',
  135. `dateline` int(10) unsigned NOT NULL DEFAULT '0',
  136. PRIMARY KEY (id),
  137. KEY status (status, dateline)
  138. ) ENGINE=MyISAM COMMENT='文章审核数据表';

  139. DROP TABLE IF EXISTS pre_home_comment_moderate;
  140. CREATE TABLE pre_home_comment_moderate (
  141. id int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'ID',
  142. idtype varchar(15) NOT NULL default COMMENT 'ID类型',
  143. status tinyint(3) NOT NULL default '0' COMMENT '状态 0 审核中,1 已忽略',
  144. `dateline` int(10) unsigned NOT NULL DEFAULT '0',
  145. PRIMARY KEY (id),
  146. KEY idtype (idtype, status, dateline)
  147. ) ENGINE=MyISAM COMMENT='家园评论审核数据表';

  148. DROP TABLE IF EXISTS pre_portal_comment_moderate;
  149. CREATE TABLE pre_portal_comment_moderate (
  150. id int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'ID',
  151. idtype varchar(15) NOT NULL default COMMENT 'ID类型',
  152. status tinyint(3) NOT NULL default '0' COMMENT '状态 0 审核中,1 已忽略',
  153. `dateline` int(10) unsigned NOT NULL DEFAULT '0',
  154. PRIMARY KEY (id),
  155. KEY idtype (idtype, status, dateline)
  156. ) ENGINE=MyISAM COMMENT='文章/专题评论审核数据表';

  157. DROP TABLE IF EXISTS pre_forum_postlog;
  158. CREATE TABLE pre_forum_postlog (
  159. `pid` int(10) unsigned NOT NULL DEFAULT '0',
  160. `tid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  161. `fid` smallint(6) unsigned NOT NULL DEFAULT '0',
  162. `uid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  163. `action` char(10) NOT NULL DEFAULT ,
  164. `dateline` int(10) unsigned NOT NULL DEFAULT '0',
  165. PRIMARY KEY (pid, tid),
  166. KEY fid (fid),
  167. KEY uid (uid),
  168. KEY dateline (dateline)
  169. ) ENGINE=MyISAM COMMENT='漫游帖子日志';

  170. DROP TABLE IF EXISTS pre_forum_threadlog;
  171. CREATE TABLE pre_forum_threadlog (
  172. `tid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  173. `fid` smallint(6) unsigned NOT NULL DEFAULT '0',
  174. `uid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  175. `otherid` smallint(6) unsigned NOT NULL DEFAULT '0',
  176. `action` char(10) NOT NULL,
  177. `expiry` int(10) unsigned NOT NULL DEFAULT '0',
  178. `dateline` int(10) unsigned NOT NULL DEFAULT '0',
  179. PRIMARY KEY (tid,fid,uid),
  180. KEY dateline (dateline)
  181. ) ENGINE=MyISAM COMMENT='漫游主题日志';

  182. DROP TABLE IF EXISTS pre_forum_threadpreview;
  183. CREATE TABLE pre_forum_threadpreview (
  184. tid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '主题ID',
  185. relay int(10) unsigned NOT NULL default '0' COMMENT '转播次数',
  186. content text NOT NULL COMMENT '主题内容预览',
  187. PRIMARY KEY (tid)
  188. ) ENGINE=MyISAM COMMENT='服务于广播';

  189. DROP TABLE IF EXISTS pre_forum_poll;
  190. CREATE TABLE pre_forum_poll (
  191. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  192. overt tinyint(1) NOT NULL default '0' COMMENT '是否公开投票参与人',
  193. multiple tinyint(1) NOT NULL default '0' COMMENT '是否多选',
  194. visible tinyint(1) NOT NULL default '0' COMMENT '是否投票后可见',
  195. maxchoices tinyint(3) unsigned NOT NULL default '0' COMMENT '最大可选项数',
  196. expiration int(10) unsigned NOT NULL default '0' COMMENT '过期时间',
  197. pollpreview varchar(255) NOT NULL default COMMENT '选项内容前两项预览',
  198. voters mediumint(8) unsigned NOT NULL default '0' COMMENT '投票人数',
  199. PRIMARY KEY (tid)
  200. ) ENGINE=MyISAM COMMENT='投票表';

  201. DROP TABLE IF EXISTS pre_forum_pollvoter;
  202. CREATE TABLE pre_forum_pollvoter (
  203. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  204. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  205. username varchar(15) NOT NULL default COMMENT '会员名',
  206. `options` text NOT NULL COMMENT '选项 \t 分隔',
  207. dateline int(10) unsigned NOT NULL default '0' COMMENT '发表时间',
  208. KEY tid (tid),
  209. KEY uid (uid, dateline)
  210. ) ENGINE=MyISAM COMMENT='投票用户表';

  211. DROP TABLE IF EXISTS pre_forum_polloption;
  212. CREATE TABLE pre_forum_polloption (
  213. polloptionid int(10) unsigned NOT NULL auto_increment COMMENT '选项id',
  214. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  215. votes mediumint(8) unsigned NOT NULL default '0' COMMENT '票数',
  216. displayorder tinyint(3) NOT NULL default '0' COMMENT '显示顺序',
  217. polloption varchar(80) NOT NULL default COMMENT '选项内容',
  218. voterids mediumtext NOT NULL COMMENT '投票人id',
  219. PRIMARY KEY (polloptionid),
  220. KEY tid (tid,displayorder)
  221. ) ENGINE=MyISAM COMMENT='投票选项表';

  222. DROP TABLE IF EXISTS pre_forum_post;
  223. CREATE TABLE pre_forum_post (
  224. pid int(10) unsigned NOT NULL COMMENT '帖子id',
  225. fid mediumint(8) unsigned NOT NULL default '0' COMMENT '论坛id',
  226. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  227. `first` tinyint(1) NOT NULL default '0' COMMENT '是否是首贴',
  228. author varchar(15) NOT NULL default COMMENT '作者姓名',
  229. authorid mediumint(8) unsigned NOT NULL default '0' COMMENT '作者id',
  230. `subject` varchar(80) NOT NULL default COMMENT '标题',
  231. dateline int(10) unsigned NOT NULL default '0' COMMENT '发表时间',
  232. message mediumtext NOT NULL COMMENT '消息',
  233. useip varchar(15) NOT NULL default COMMENT '发帖者IP',
  234. invisible tinyint(1) NOT NULL default '0' COMMENT '是否通过审核',
  235. anonymous tinyint(1) NOT NULL default '0' COMMENT '是否匿名',
  236. usesig tinyint(1) NOT NULL default '0' COMMENT '是否启用签名',
  237. htmlon tinyint(1) NOT NULL default '0' COMMENT '是否允许HTML',
  238. bbcodeoff tinyint(1) NOT NULL default '0' COMMENT '是否关闭BBCODE',
  239. smileyoff tinyint(1) NOT NULL default '0' COMMENT '是否关闭表情',
  240. parseurloff tinyint(1) NOT NULL default '0' COMMENT '是否允许粘贴URL',
  241. attachment tinyint(1) NOT NULL default '0' COMMENT '附件',
  242. rate smallint(6) NOT NULL default '0' COMMENT '评分分数',
  243. ratetimes tinyint(3) unsigned NOT NULL default '0' COMMENT '评分次数',
  244. `status` int(10) NOT NULL default '0' COMMENT '帖子状态',
  245. tags varchar(255) NOT NULL default '0' COMMENT '新增字段,用于存放tag',
  246. `comment` tinyint(1) NOT NULL default '0' COMMENT '是否存在点评',
  247. replycredit int(10) NOT NULL default '0' COMMENT '回帖获得积分记录',
  248. `position` int(8) unsigned NOT NULL auto_increment COMMENT '帖子位置信息',
  249. PRIMARY KEY (tid, `position`),
  250. KEY fid (fid),
  251. KEY authorid (authorid,invisible),
  252. KEY dateline (dateline),
  253. KEY invisible (invisible),
  254. KEY displayorder (tid,invisible,dateline),
  255. KEY `first` (tid,`first`),
  256. UNIQUE KEY pid (pid)
  257. ) ENGINE=MyISAM COMMENT='帖子表';
  258. DROP TABLE IF EXISTS pre_forum_postcomment;
  259. CREATE TABLE pre_forum_postcomment (
  260. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  261. `tid` mediumint(8) unsigned NOT NULL default '0' COMMENT '主题ID',
  262. `pid` int(10) unsigned NOT NULL default '0' COMMENT '帖子ID',
  263. `author` varchar(15) NOT NULL default COMMENT '作者',
  264. `authorid` mediumint(8) NOT NULL default '0' COMMENT '作者ID x1.5以后:0为游客 -1为观点',
  265. `dateline` int(10) unsigned NOT NULL default '0' COMMENT '时间',
  266. `comment` varchar(255) NOT NULL default COMMENT '点评内容',
  267. `score` tinyint(1) NOT NULL default '0' COMMENT '是否包含点评观点',
  268. `useip` varchar(15) NOT NULL default COMMENT '发帖者IP',
  269. `rpid` int(10) unsigned NOT NULL default '0' COMMENT '关联的帖子ID',
  270. PRIMARY KEY (`id`),
  271. KEY `tid` (`tid`),
  272. KEY authorid (authorid),
  273. KEY score (score),
  274. KEY rpid (rpid),
  275. KEY `pid` (`pid`,`dateline`)
  276. ) ENGINE=MyISAM COMMENT='点评帖子表';
复制代码
回复

使用道具 举报

 楼主| gdnyhl 发表于 2012-8-6 02:19:40 | 显示全部楼层
  1. DROP TABLE IF EXISTS pre_forum_post_location;
  2. CREATE TABLE pre_forum_post_location (
  3. `pid` int(10) unsigned NOT NULL DEFAULT '0',
  4. `tid` mediumint(8) unsigned DEFAULT '0',
  5. `uid` mediumint(8) unsigned DEFAULT '0',
  6. `mapx` varchar(255) NOT NULL,
  7. `mapy` varchar(255) NOT NULL,
  8. `location` varchar(255) NOT NULL,
  9. PRIMARY KEY (`pid`),
  10. KEY `tid` (`tid`),
  11. KEY `uid` (`uid`)
  12. ) ENGINE=MyISAM COMMENT='帖子地理位置表';
  13. DROP TABLE IF EXISTS pre_forum_post_tableid;
  14. CREATE TABLE pre_forum_post_tableid (
  15. `pid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Post ID',
  16. PRIMARY KEY (`pid`)
  17. ) ENGINE=MyISAM COMMENT='post分表协调表';

  18. DROP TABLE IF EXISTS pre_forum_poststick;
  19. CREATE TABLE pre_forum_poststick (
  20. `tid` mediumint(8) unsigned NOT NULL,
  21. `pid` int(10) unsigned NOT NULL,
  22. `position` int(10) unsigned NOT NULL,
  23. `dateline` int(10) unsigned NOT NULL,
  24. PRIMARY KEY (`tid`,`pid`),
  25. KEY `dateline` (`tid`,`dateline`)
  26. ) ENGINE=MyISAM COMMENT='回帖置顶表';

  27. DROP TABLE IF EXISTS pre_forum_promotion;
  28. CREATE TABLE pre_forum_promotion (
  29. ip char(15) NOT NULL default COMMENT 'IP地址',
  30. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  31. username char(15) NOT NULL default COMMENT '会员名',
  32. PRIMARY KEY (ip)
  33. ) ENGINE=MyISAM COMMENT='论坛推广';

  34. DROP TABLE IF EXISTS pre_forum_ratelog;
  35. CREATE TABLE pre_forum_ratelog (
  36. pid int(10) unsigned NOT NULL default '0' COMMENT '帖子id',
  37. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  38. username char(15) NOT NULL default COMMENT '会员名',
  39. extcredits tinyint(1) unsigned NOT NULL default '0' COMMENT '评分字段',
  40. dateline int(10) unsigned NOT NULL default '0' COMMENT '评分时间',
  41. score smallint(6) NOT NULL default '0' COMMENT '分数',
  42. reason char(40) NOT NULL default COMMENT '操作理由',
  43. KEY pid (pid,dateline),
  44. KEY dateline (dateline),
  45. KEY uid (uid)
  46. ) ENGINE=MyISAM COMMENT='帖子评分记录表';

  47. DROP TABLE IF EXISTS pre_forum_relatedthread;
  48. CREATE TABLE pre_forum_relatedthread (
  49. tid mediumint(8) NOT NULL default '0' COMMENT '主题id',
  50. `type` enum('general','trade') NOT NULL default 'general' COMMENT '关键词类型',
  51. expiration int(10) NOT NULL default '0' COMMENT '过期时间',
  52. keywords varchar(255) NOT NULL default COMMENT '关键字',
  53. relatedthreads text NOT NULL COMMENT '相关主题序列',
  54. PRIMARY KEY (tid,`type`)
  55. ) ENGINE=MyISAM COMMENT='相关主题表';

  56. DROP TABLE IF EXISTS pre_forum_rsscache;
  57. CREATE TABLE pre_forum_rsscache (
  58. lastupdate int(10) unsigned NOT NULL default '0' COMMENT '最后更新时间',
  59. fid mediumint(8) unsigned NOT NULL default '0' COMMENT '论坛id',
  60. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  61. dateline int(10) unsigned NOT NULL default '0' COMMENT '发表时间',
  62. forum char(50) NOT NULL default COMMENT '论坛名称',
  63. author char(15) NOT NULL default COMMENT '作者',
  64. `subject` char(80) NOT NULL default COMMENT '标题',
  65. description char(255) NOT NULL default COMMENT '解释说明',
  66. guidetype char(10) NOT NULL default COMMENT '导读中的类型',
  67. UNIQUE KEY tid (tid),
  68. KEY fid (fid,dateline)
  69. ) ENGINE=MyISAM COMMENT='rss缓存表';

  70. DROP TABLE IF EXISTS pre_forum_replycredit;
  71. CREATE TABLE pre_forum_replycredit (
  72. tid mediumint(6) unsigned NOT NULL COMMENT '主题tid',
  73. extcredits mediumint(6) unsigned NOT NULL DEFAULT '0' COMMENT '单次回复奖励额度',
  74. extcreditstype tinyint(1) NOT NULL DEFAULT '0' COMMENT '本规则下奖励积分的类型',
  75. times smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '回复奖励次数',
  76. membertimes smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '单个用户参与次数',
  77. random tinyint(1) NOT NULL DEFAULT '0' COMMENT '用户设置的回帖奖励几率',
  78. PRIMARY KEY (tid)
  79. ) ENGINE=MyISAM COMMENT='主题回帖获得积分规则表';

  80. DROP TABLE IF EXISTS pre_common_searchindex;
  81. CREATE TABLE pre_common_searchindex (
  82. searchid int(10) unsigned NOT NULL auto_increment COMMENT '缓存id',
  83. srchmod tinyint(3) unsigned NOT NULL COMMENT 'mod模块',
  84. keywords varchar(255) NOT NULL default COMMENT '关键字',
  85. searchstring text NOT NULL COMMENT '查找字符串',
  86. useip varchar(15) NOT NULL default COMMENT '搜索人IP',
  87. uid mediumint(10) unsigned NOT NULL default '0' COMMENT '会员id',
  88. dateline int(10) unsigned NOT NULL default '0' COMMENT '搜索时间',
  89. expiration int(10) unsigned NOT NULL default '0' COMMENT '过期时间',
  90. threadsortid smallint(6) unsigned NOT NULL default '0' COMMENT '分类信息id',
  91. num smallint(6) unsigned NOT NULL default '0' COMMENT '主题数量',
  92. ids text NOT NULL COMMENT '主题id序列',
  93. PRIMARY KEY (searchid),
  94. KEY srchmod (srchmod)
  95. ) ENGINE=MyISAM COMMENT='搜索缓存表';
  96. DROP TABLE IF EXISTS pre_common_sphinxcounter;
  97. CREATE TABLE pre_common_sphinxcounter (
  98. `indexid` tinyint(1) NOT NULL,
  99. `maxid` int(10) NOT NULL,
  100. PRIMARY KEY (`indexid`)
  101. ) ENGINE=MyISAM COMMENT='Sphinx 增量索引记录表';

  102. DROP TABLE IF EXISTS pre_forum_spacecache;
  103. CREATE TABLE pre_forum_spacecache (
  104. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户 uid',
  105. variable varchar(20) NOT NULL COMMENT '缓存变量的名称',
  106. `value` text NOT NULL COMMENT '缓存变量的值',
  107. expiration int(10) unsigned NOT NULL default '0' COMMENT '过期时间',
  108. PRIMARY KEY (uid,variable)
  109. ) ENGINE=MyISAM COMMENT='minispace缓存表';
  110. DROP TABLE IF EXISTS pre_forum_statlog;
  111. CREATE TABLE pre_forum_statlog (
  112. `logdate` date NOT NULL COMMENT '日志日期',
  113. `fid` mediumint(8) unsigned NOT NULL COMMENT '版块ID',
  114. `type` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '记录类型
  115. `value` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '记录值',
  116. PRIMARY KEY (`logdate`,`fid`)
  117. ) ENGINE=MyISAM COMMENT='版块统计日志表';

  118. DROP TABLE IF EXISTS pre_common_task;
  119. CREATE TABLE pre_common_task (
  120. taskid smallint(6) unsigned NOT NULL auto_increment COMMENT '任务id',
  121. relatedtaskid smallint(6) unsigned NOT NULL default '0' COMMENT '依存任务id\n必须完成依存任务才能申请该任务',
  122. available tinyint(1) NOT NULL default '0' COMMENT '是否启用',
  123. `name` varchar(50) NOT NULL default COMMENT '任务名称',
  124. description text NOT NULL COMMENT '任务描述',
  125. icon varchar(150) NOT NULL default COMMENT '任务图标',
  126. applicants mediumint(8) unsigned NOT NULL default '0' COMMENT '已申请任务人次',
  127. achievers mediumint(8) unsigned NOT NULL default '0' COMMENT '已完成任务人次',
  128. tasklimits mediumint(8) unsigned NOT NULL default '0' COMMENT '允许申请并完成该任务的人次上限',
  129. applyperm text NOT NULL COMMENT '允许申请任务的用户组id, 格式: 1 2 3',
  130. scriptname varchar(50) NOT NULL default COMMENT '任务脚本文件名',
  131. starttime int(10) unsigned NOT NULL default '0' COMMENT '任务上线时间',
  132. endtime int(10) unsigned NOT NULL default '0' COMMENT '任务下线时间',
  133. period int(10) unsigned NOT NULL default '0' COMMENT '任务周期 单位:小时 默认为0表示一次性任务 设置为24即1天表示日常任务',
  134. periodtype tinyint(1) NOT NULL default '0' COMMENT '任务间隔周期单位 0:小时 1:天 2:周 3:月',
  135. reward enum('credit','magic','medal','invite','group') NOT NULL default 'credit' COMMENT '奖励类型\n(credit:积分 magic:道具 medal:勋章 invite:邀请码 group:特殊用户组)',
  136. prize varchar(15) NOT NULL default COMMENT '奖品: 哪一个扩展积分, 道具id, 勋章id,邀请码有效期, 特殊用户组id',
  137. bonus int(10) NOT NULL default '0' COMMENT '奖品数量/有效期: \n积分数量, 道具数量, 勋章有效期, 邀请码数量,特殊用户组有效期',
  138. displayorder smallint(6) unsigned NOT NULL default '0' COMMENT '显示顺序',
  139. version varchar(15) NOT NULL default COMMENT '任务脚本版本号',
  140. PRIMARY KEY (taskid)
  141. ) ENGINE=MyISAM COMMENT='论坛任务表';

  142. DROP TABLE IF EXISTS pre_common_taskvar;
  143. CREATE TABLE pre_common_taskvar (
  144. taskvarid mediumint(8) unsigned NOT NULL auto_increment COMMENT '任务变量id',
  145. taskid smallint(6) unsigned NOT NULL default '0' COMMENT '任务id',
  146. sort enum('apply','complete') NOT NULL default 'complete' COMMENT '变量类别\n(apply:申请任务条件 complete:完成任务条件)',
  147. `name` varchar(100) NOT NULL default COMMENT '变量名称',
  148. description varchar(255) NOT NULL default COMMENT '变量描述',
  149. variable varchar(40) NOT NULL default COMMENT '变量名',
  150. `type` varchar(20) NOT NULL default 'text' COMMENT '变量类型',
  151. `value` text NOT NULL COMMENT '变量值',
  152. PRIMARY KEY (taskvarid),
  153. KEY taskid (taskid)
  154. ) ENGINE=MyISAM COMMENT='论坛任务设置表';

  155. DROP TABLE IF EXISTS pre_forum_thread;
  156. CREATE TABLE pre_forum_thread (
  157. tid mediumint(8) unsigned NOT NULL auto_increment COMMENT '主题id',
  158. fid mediumint(8) unsigned NOT NULL default '0' COMMENT '上级论坛',
  159. posttableid smallint(6) unsigned NOT NULL default '0' COMMENT '帖子表ID',
  160. typeid smallint(6) unsigned NOT NULL default '0' COMMENT '主题分类id',
  161. sortid smallint(6) unsigned NOT NULL default '0' COMMENT '分类信息id',
  162. readperm tinyint(3) unsigned NOT NULL default '0' COMMENT '阅读权限',
  163. price smallint(6) NOT NULL default '0' COMMENT '价格',
  164. author char(15) NOT NULL default COMMENT '会员名',
  165. authorid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  166. `subject` char(80) NOT NULL default COMMENT '标题',
  167. dateline int(10) unsigned NOT NULL default '0' COMMENT '发表时间',
  168. lastpost int(10) unsigned NOT NULL default '0' COMMENT '最后发表',
  169. lastposter char(15) NOT NULL default COMMENT '最后发表人id',
  170. views int(10) unsigned NOT NULL default '0' COMMENT '浏览次数',
  171. replies mediumint(8) unsigned NOT NULL default '0' COMMENT '回复次数',
  172. displayorder tinyint(1) NOT NULL default '0' COMMENT '显示顺序',
  173. highlight tinyint(1) NOT NULL default '0' COMMENT '是否高亮',
  174. digest tinyint(1) NOT NULL default '0' COMMENT '是否精华',
  175. rate tinyint(1) NOT NULL default '0' COMMENT '是否评分',
  176. special tinyint(1) NOT NULL default '0' COMMENT '特殊主题,1:投票;2:商品;3:悬赏;4:活动;5:辩论贴;127:插件相关',
  177. attachment tinyint(1) NOT NULL default '0' COMMENT '附件,0无附件 1普通附件 2有图片附件',
  178. moderated tinyint(1) NOT NULL default '0' COMMENT '是否被管理员改动',
  179. closed mediumint(8) unsigned NOT NULL default '0' COMMENT '是否关闭',
  180. stickreply tinyint(1) unsigned NOT NULL default '0' COMMENT '是否有回帖置顶',
  181. recommends smallint(6) NOT NULL default '0' COMMENT '推荐指数',
  182. recommend_add smallint(6) NOT NULL default '0' COMMENT '支持人数',
  183. recommend_sub smallint(6) NOT NULL default '0' COMMENT '反对人数',
  184. heats int(10) unsigned NOT NULL default '0' COMMENT '主题热度值',
  185. status smallint(6) unsigned NOT NULL default '0' ,
  186. isgroup tinyint(1) NOT NULL default '0' COMMENT '是否为群组帖子',
  187. favtimes mediumint(8) NOT NULL default '0' COMMENT '主题收藏次数',
  188. sharetimes mediumint(8) NOT NULL default '0' COMMENT '主题分享次数',
  189. `stamp` tinyint(3) NOT NULL default '-1' COMMENT '主题图章',
  190. `icon` tinyint(3) NOT NULL default '-1' COMMENT '主题图标',
  191. pushedaid mediumint(8) NOT NULL default '0' COMMENT '被推送到的文章aid',
  192. cover smallint(6) NOT NULL default '0' COMMENT '主题封面 负数:远程 正数:本地 0:无封面',
  193. replycredit smallint(6) NOT NULL default '0' COMMENT '回帖奖励积分主题记录积分值',
  194. relatebytag char(255) NOT NULL default '0' COMMENT '根据帖子标签取的相关主题id (time /t tid,...)',
  195. maxposition int(8) unsigned NOT NULL default '0' COMMENT '最大回帖位置信息',
  196. PRIMARY KEY (tid),
  197. KEY digest (digest),
  198. KEY sortid (sortid),
  199. KEY displayorder (fid,displayorder,lastpost),
  200. KEY typeid (fid,typeid,displayorder,lastpost),
  201. KEY recommends (recommends),
  202. KEY heats (heats),
  203. KEY authorid (authorid),
  204. KEY isgroup (isgroup, lastpost),
  205. KEY special (special)
  206. ) ENGINE=MyISAM COMMENT='主题表';

  207. DROP TABLE IF EXISTS pre_forum_threadaddviews;
  208. CREATE TABLE pre_forum_threadaddviews (
  209. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  210. addviews int(10) unsigned NOT NULL default '0' COMMENT '浏览次数',
  211. PRIMARY KEY (tid)
  212. ) ENGINE=MyISAM COMMENT='主题查看数延时更新表';

  213. DROP TABLE IF EXISTS pre_forum_threaddisablepos;
  214. CREATE TABLE pre_forum_threaddisablepos (
  215. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  216. PRIMARY KEY (tid)
  217. ) ENGINE=MEMORY COMMENT='主题有楼层不准确时不使用position查询';

  218. DROP TABLE IF EXISTS pre_forum_threadclosed;
  219. CREATE TABLE pre_forum_threadclosed (
  220. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '对应源主题',
  221. redirect mediumint(8) unsigned NOT NULL default '0' COMMENT '保留的指向 tid',
  222. PRIMARY KEY (tid)
  223. ) ENGINE=MyISAM COMMENT='主题转移后保留的指向记录';

  224. DROP TABLE IF EXISTS pre_forum_threadmod;
  225. CREATE TABLE pre_forum_threadmod (
  226. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  227. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  228. username char(15) NOT NULL default COMMENT '会员名',
  229. dateline int(10) unsigned NOT NULL default '0' COMMENT '操作时间',
  230. expiration int(10) unsigned NOT NULL default '0' COMMENT '有效时间',
  231. `action` char(5) NOT NULL default COMMENT '操作',
  232. `status` tinyint(1) NOT NULL default '0' COMMENT '状态',
  233. magicid smallint(6) unsigned NOT NULL COMMENT '使用道具id',
  234. `stamp` TINYINT(3) NOT NULL COMMENT '主题图章/图标 ID',
  235. reason char(40) NOT NULL DEFAULT COMMENT '操作原因',
  236. KEY tid (tid,dateline),
  237. KEY expiration (expiration,`status`)
  238. ) ENGINE=MyISAM COMMENT='主题管理记录表';

  239. DROP TABLE IF EXISTS pre_forum_threadpartake;
  240. CREATE TABLE pre_forum_threadpartake (
  241. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  242. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  243. dateline int(10) unsigned NOT NULL default '0' COMMENT '参与时间',
  244. KEY tid (tid,uid)
  245. ) ENGINE=MyISAM COMMENT='主题参与者记录表';

  246. DROP TABLE IF EXISTS pre_forum_threadrush;
  247. CREATE TABLE pre_forum_threadrush (
  248. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',
  249. stopfloor mediumint(8) unsigned NOT NULL default '0' COMMENT '截止楼层',
  250. starttimefrom int(10) unsigned NOT NULL default '0' COMMENT '开始时间',
  251. starttimeto int(10) unsigned NOT NULL default '0' COMMENT '结束时间',
  252. rewardfloor text NOT NULL default COMMENT '奖励楼层',
  253. creditlimit int(10) NOT NULL default '-996' COMMENT '积分下限',
  254. PRIMARY KEY (tid)
  255. ) ENGINE=MyISAM COMMENT='抢楼设置表';

  256. DROP TABLE IF EXISTS pre_forum_threadtype;
  257. CREATE TABLE pre_forum_threadtype (
  258. typeid smallint(6) unsigned NOT NULL auto_increment COMMENT '分类信息id',
  259. `fid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  260. displayorder smallint(6) NOT NULL default '0' COMMENT '显示顺序',
  261. `name` varchar(255) NOT NULL default COMMENT '名称',
  262. description varchar(255) NOT NULL default COMMENT '解释说明',
  263. `icon` varchar(255) NOT NULL default COMMENT '分类图标URL',
  264. special smallint(6) NOT NULL default '0' COMMENT '分类状态',
  265. modelid smallint(6) unsigned NOT NULL default '0' COMMENT '分类模型id',
  266. expiration tinyint(1) NOT NULL default '0' COMMENT '分类有效期',
  267. template text NOT NULL COMMENT '分类信息内容模板',
  268. stemplate text NOT NULL COMMENT '分类信息主题模板',
  269. ptemplate text NOT NULL COMMENT '分类信息发帖模板',
  270. btemplate text NOT NULL COMMENT '分类信息模块调用模板',
  271. PRIMARY KEY (typeid)
  272. ) ENGINE=MyISAM COMMENT='分类信息表';

  273. DROP TABLE IF EXISTS pre_forum_trade;
  274. CREATE TABLE pre_forum_trade (
  275. tid mediumint(8) unsigned NOT NULL COMMENT '主题id',
  276. pid int(10) unsigned NOT NULL COMMENT '帖子id',
  277. typeid smallint(6) unsigned NOT NULL COMMENT '主题分类id',
  278. sellerid mediumint(8) unsigned NOT NULL COMMENT '卖家id',
  279. seller char(15) NOT NULL COMMENT '卖家名',
  280. account char(50) NOT NULL COMMENT '卖家帐号',
  281. tenpayaccount char(20) NOT NULL default COMMENT '卖家财付通账号',
  282. `subject` char(100) NOT NULL COMMENT '标题',
  283. price decimal(8,2) NOT NULL COMMENT '价格',
  284. amount smallint(6) unsigned NOT NULL default '1' COMMENT '数量',
  285. quality tinyint(1) unsigned NOT NULL default '0' COMMENT '成色',
  286. locus char(20) NOT NULL COMMENT '所在地',
  287. transport tinyint(1) NOT NULL default '0' COMMENT '物流方式',
  288. ordinaryfee smallint(4) unsigned NOT NULL default '0' COMMENT '平邮附加费',
  289. expressfee smallint(4) unsigned NOT NULL default '0' COMMENT '快递附加费',
  290. emsfee smallint(4) unsigned NOT NULL default '0' COMMENT 'EMS附加费',
  291. itemtype tinyint(1) NOT NULL default '0' COMMENT '商品类型',
  292. dateline int(10) unsigned NOT NULL default '0' COMMENT '交易时间',
  293. expiration int(10) unsigned NOT NULL default '0' COMMENT '过期时间',
  294. lastbuyer char(15) NOT NULL COMMENT '最后买家用户名',
  295. lastupdate int(10) unsigned NOT NULL default '0' COMMENT '最后交易时间',
  296. totalitems smallint(5) unsigned NOT NULL default '0' COMMENT '总交易量',
  297. tradesum decimal(8,2) NOT NULL default '0.00' COMMENT '总交易额',
  298. closed tinyint(1) NOT NULL default '0' COMMENT '是否关闭',
  299. aid mediumint(8) unsigned NOT NULL COMMENT '商品图片的 Aid',
  300. displayorder tinyint(1) NOT NULL COMMENT '显示顺序',
  301. costprice decimal(8,2) NOT NULL COMMENT '商品原价',
  302. credit int(10) unsigned NOT NULL default '0' COMMENT '积分价格',
  303. costcredit int(10) unsigned NOT NULL default '0' COMMENT '积分原价',
  304. credittradesum int(10) unsigned NOT NULL default '0' COMMENT '总积分交易额',
  305. PRIMARY KEY (tid,pid),
  306. KEY pid (pid),
  307. KEY sellerid (sellerid),
  308. KEY totalitems (totalitems),
  309. KEY tradesum (tradesum),
  310. KEY displayorder (tid,displayorder),
  311. KEY sellertrades (sellerid,tradesum,totalitems),
  312. KEY typeid (typeid),
  313. KEY credittradesum (credittradesum),
  314. KEY expiration (expiration)
  315. ) ENGINE=MyISAM COMMENT='商品数据表';
  316. DROP TABLE IF EXISTS pre_forum_threadclass;
  317. CREATE TABLE pre_forum_threadclass (
  318. `typeid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '分类ID',
  319. `fid` mediumint(8) unsigned NOT NULL COMMENT '所属版块ID',
  320. `name` varchar(255) NOT NULL COMMENT '分类名称',
  321. `displayorder` mediumint(9) NOT NULL COMMENT '显示顺序',
  322. `icon` varchar(255) NOT NULL COMMENT '分类图标URL',
  323. `moderators` tinyint(1) NOT NULL default '0' COMMENT '仅管理者可用',
  324. PRIMARY KEY (`typeid`),
  325. KEY fid (fid, displayorder)
  326. ) ENGINE=MyISAM COMMENT='主题分类表';

  327. DROP TABLE IF EXISTS pre_forum_tradecomment;
  328. CREATE TABLE pre_forum_tradecomment (
  329. id mediumint(8) NOT NULL auto_increment COMMENT 'id',
  330. orderid char(32) NOT NULL COMMENT '订单 id',
  331. pid int(10) unsigned NOT NULL COMMENT '帖子 id',
  332. `type` tinyint(1) NOT NULL COMMENT '类型',
  333. raterid mediumint(8) unsigned NOT NULL COMMENT '评价方会员id',
  334. rater char(15) NOT NULL COMMENT '评价方用户名',
  335. rateeid mediumint(8) unsigned NOT NULL COMMENT '被评价方会员id',
  336. ratee char(15) NOT NULL COMMENT '被评价方用户名',
  337. message char(200) NOT NULL COMMENT '评价内容',
  338. explanation char(200) NOT NULL COMMENT '解释',
  339. score tinyint(1) NOT NULL COMMENT '评分',
  340. dateline int(10) unsigned NOT NULL COMMENT '评价时间',
  341. PRIMARY KEY (id),
  342. KEY raterid (raterid,`type`,dateline),
  343. KEY rateeid (rateeid,`type`,dateline),
  344. KEY orderid (orderid)
  345. ) ENGINE=MyISAM COMMENT='信用评价';

  346. DROP TABLE IF EXISTS pre_forum_tradelog;
  347. CREATE TABLE pre_forum_tradelog (
  348. tid mediumint(8) unsigned NOT NULL COMMENT '主题id',
  349. pid int(10) unsigned NOT NULL COMMENT '帖子id',
  350. orderid varchar(32) NOT NULL COMMENT '订单号id',
  351. tradeno varchar(32) NOT NULL COMMENT '支付宝订单号',
  352. paytype tinyint(1) unsigned NOT NULL default '0' COMMENT '在线支付方式',
  353. `subject` varchar(100) NOT NULL COMMENT '标题',
  354. price decimal(8,2) NOT NULL default '0.00' COMMENT '价格',
  355. quality tinyint(1) unsigned NOT NULL default '0' COMMENT '成色',
  356. itemtype tinyint(1) NOT NULL default '0' COMMENT '商品类型',
  357. number smallint(5) unsigned NOT NULL default '0' COMMENT '数量',
  358. tax decimal(6,2) unsigned NOT NULL default '0.00' COMMENT '交易手续费',
  359. locus varchar(100) NOT NULL COMMENT '物品所在地',
  360. sellerid mediumint(8) unsigned NOT NULL COMMENT '卖家id',
  361. seller varchar(15) NOT NULL COMMENT '卖家名',
  362. selleraccount varchar(50) NOT NULL COMMENT '卖家交易帐号',
  363. tenpayaccount varchar(20) NOT NULL default '0' COMMENT '卖家财付通账号',
  364. buyerid mediumint(8) unsigned NOT NULL COMMENT '买家id',
  365. buyer varchar(15) NOT NULL COMMENT '买家名',
  366. buyercontact varchar(50) NOT NULL COMMENT '买家联系方式',
  367. buyercredits smallint(5) unsigned NOT NULL default '0' COMMENT '买家暂扣积分',
  368. buyermsg varchar(200) default NULL COMMENT '买家留言',
  369. `status` tinyint(1) NOT NULL default '0' COMMENT '状态',
  370. lastupdate int(10) unsigned NOT NULL default '0' COMMENT '状态最后更新',
  371. offline tinyint(1) NOT NULL default '0' COMMENT '是否离线交易',
  372. buyername varchar(50) NOT NULL COMMENT '买家姓名',
  373. buyerzip varchar(10) NOT NULL COMMENT '买家邮编',
  374. buyerphone varchar(20) NOT NULL COMMENT '买家电话',
  375. buyermobile varchar(20) NOT NULL COMMENT '买家手机',
  376. transport tinyint(1) NOT NULL default '0' COMMENT '运输方式',
  377. transportfee smallint(6) unsigned NOT NULL default '0' COMMENT '运输费用',
  378. baseprice decimal(8,2) NOT NULL COMMENT '商品原价',
  379. discount tinyint(1) NOT NULL default '0' COMMENT '折扣',
  380. ratestatus tinyint(1) NOT NULL default '0' COMMENT '评价状态',
  381. message text NOT NULL COMMENT '订单留言',
  382. credit int(10) unsigned NOT NULL default '0' COMMENT '积分价格',
  383. basecredit int(10) unsigned NOT NULL default '0' COMMENT '积分原价',
  384. UNIQUE KEY orderid (orderid),
  385. KEY sellerid (sellerid),
  386. KEY buyerid (buyerid),
  387. KEY `status` (`status`),
  388. KEY buyerlog (buyerid,`status`,lastupdate),
  389. KEY sellerlog (sellerid,`status`,lastupdate),
  390. KEY tid (tid,pid),
  391. KEY pid (pid)
  392. ) ENGINE=MyISAM COMMENT='交易记录表';

  393. DROP TABLE IF EXISTS pre_forum_typeoption;
  394. CREATE TABLE pre_forum_typeoption (
  395. optionid smallint(6) unsigned NOT NULL AUTO_INCREMENT COMMENT '分类信息项目ID',
  396. classid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '分类信息上级项目ID',
  397. displayorder tinyint(3) NOT NULL DEFAULT '0' COMMENT '分类信息排序',
  398. expiration tinyint(1) NOT NULL COMMENT '分类信息项目是否受有效期限制',
  399. protect varchar(255) NOT NULL COMMENT '分类信息项目是否是保护项目',
  400. title varchar(255) NOT NULL DEFAULT COMMENT '分类信息项目标题',
  401. description varchar(255) NOT NULL DEFAULT COMMENT '分类信息项目描述',
  402. identifier varchar(255) NOT NULL DEFAULT COMMENT '分类信息项目标识',
  403. `type` varchar(255) NOT NULL DEFAULT COMMENT '分类信息项目类型',
  404. unit varchar(255) NOT NULL COMMENT '分类信息项目单位',
  405. rules mediumtext NOT NULL COMMENT '分类信息项目规则',
  406. permprompt mediumtext NOT NULL COMMENT '分类信息项目权限提示',
  407. PRIMARY KEY (optionid),
  408. KEY classid (classid)
  409. ) ENGINE=MyISAM COMMENT='分类信息设置项目表';

  410. DROP TABLE IF EXISTS pre_forum_typeoptionvar;
  411. CREATE TABLE pre_forum_typeoptionvar (
  412. sortid smallint(6) unsigned NOT NULL default '0' COMMENT '分类信息id',
  413. tid mediumint(8) unsigned NOT NULL default '0' COMMENT '分类信息数据对应帖子id',
  414. fid mediumint(8) unsigned NOT NULL default '0' COMMENT '分类信息数据对应帖子板块id',
  415. optionid smallint(6) unsigned NOT NULL default '0' COMMENT '分类信息数据对应选项id',
  416. expiration int(10) unsigned NOT NULL default '0' COMMENT '分类信息数据有效期',
  417. `value` mediumtext NOT NULL COMMENT '分类信息数据数值',
  418. KEY sortid (sortid),
  419. KEY tid (tid),
  420. KEY fid (fid)
  421. ) ENGINE=MyISAM COMMENT='分类信息项目数据表';
复制代码
回复

使用道具 举报

 楼主| gdnyhl 发表于 2012-8-6 02:20:26 | 显示全部楼层
  1. DROP TABLE IF EXISTS pre_forum_typevar;
  2. CREATE TABLE pre_forum_typevar (
  3. sortid smallint(6) NOT NULL default '0' COMMENT '分类信息id',
  4. optionid smallint(6) NOT NULL default '0' COMMENT '分类信息对应项目id',
  5. available tinyint(1) NOT NULL default '0' COMMENT '分类信息对应项目是否可用',
  6. required tinyint(1) NOT NULL default '0' COMMENT '分类信息对应项目是否必填',
  7. unchangeable tinyint(1) NOT NULL default '0' COMMENT '分类信息对应项目是否可修改',
  8. search tinyint(1) NOT NULL default '0' COMMENT '分类信息对应项目是否可搜索',
  9. displayorder tinyint(3) NOT NULL default '0' COMMENT '分类信息对应项目顺序',
  10. subjectshow TINYINT(1) NOT NULL DEFAULT '0',
  11. UNIQUE KEY optionid (sortid,optionid),
  12. KEY sortid (sortid)
  13. ) ENGINE=MyISAM COMMENT='分类信息对应项目表';

  14. DROP TABLE IF EXISTS pre_forum_warning;
  15. CREATE TABLE pre_forum_warning (
  16. wid smallint(6) unsigned NOT NULL auto_increment COMMENT '记录id',
  17. pid int(10) unsigned NOT NULL COMMENT '帖子 pid',
  18. operatorid mediumint(8) unsigned NOT NULL COMMENT '警告者 Uid',
  19. operator char(15) NOT NULL COMMENT '警告者用户名',
  20. authorid mediumint(8) unsigned NOT NULL COMMENT '被警告者 uid',
  21. author char(15) NOT NULL COMMENT '被警告者用户名',
  22. dateline int(10) unsigned NOT NULL COMMENT '警告时间',
  23. reason char(40) NOT NULL COMMENT '警告原因',
  24. PRIMARY KEY (wid),
  25. UNIQUE KEY pid (pid),
  26. KEY authorid (authorid)
  27. ) ENGINE=MyISAM COMMENT='警告记录表';

  28. DROP TABLE IF EXISTS pre_home_album;
  29. CREATE TABLE pre_home_album (
  30. albumid mediumint(8) unsigned NOT NULL auto_increment COMMENT '相册ID ',
  31. albumname varchar(50) NOT NULL default COMMENT '相册名字',
  32. catid smallint(6) unsigned NOT NULL default '0' COMMENT '相册系统分类',
  33. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '相册用户ID ',
  34. username varchar(15) NOT NULL default COMMENT '相册用户名',
  35. dateline int(10) unsigned NOT NULL default '0' COMMENT '相册建立时间戳',
  36. updatetime int(10) unsigned NOT NULL default '0' COMMENT '相册最后修改时间戳',
  37. picnum smallint(6) unsigned NOT NULL default '0' COMMENT '相册照片数量',
  38. pic varchar(60) NOT NULL default COMMENT '相册封面照片',
  39. picflag tinyint(1) NOT NULL default '0' COMMENT '相册是否有图片',
  40. friend tinyint(1) NOT NULL default '0' COMMENT '相册隐私设置:"0"全站用户可见,"1"为全好友可见,"2"为仅指定的好友可见,"3"为仅自己可见,"4"为凭密码查看 ',
  41. `password` varchar(10) NOT NULL default COMMENT '相册密码',
  42. target_ids text NOT NULL COMMENT '允许查看相册的用户ID,多个用户ID用"m"间隔 ',
  43. favtimes mediumint(8) unsigned NOT NULL COMMENT '相册收藏次数',
  44. sharetimes mediumint(8) unsigned NOT NULL COMMENT '相册分享次数',
  45. depict text NOT NULL COMMENT '相册描述 ',
  46. PRIMARY KEY (albumid),
  47. KEY uid (uid,updatetime),
  48. KEY updatetime (updatetime)
  49. ) ENGINE=MyISAM COMMENT='相册表';

  50. DROP TABLE IF EXISTS pre_home_appcreditlog;
  51. CREATE TABLE pre_home_appcreditlog (
  52. logid mediumint(8) unsigned NOT NULL auto_increment COMMENT '序列id',
  53. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户id',
  54. appid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户名',
  55. appname varchar(60) NOT NULL default COMMENT '应用名称',
  56. `type` tinyint(1) NOT NULL default '0' COMMENT '积分转入转出类型',
  57. credit mediumint(8) unsigned NOT NULL default '0' COMMENT '积分数',
  58. note text NOT NULL COMMENT '备注',
  59. dateline int(10) unsigned NOT NULL default '0' COMMENT '操作时间',
  60. PRIMARY KEY (logid),
  61. KEY uid (uid,dateline),
  62. KEY appid (appid)
  63. ) ENGINE=MyISAM COMMENT='漫游应用积分操作记录表';

  64. DROP TABLE IF EXISTS pre_home_blacklist;
  65. CREATE TABLE pre_home_blacklist (
  66. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户ID ',
  67. buid mediumint(8) unsigned NOT NULL default '0' COMMENT '被屏蔽的用户ID ',
  68. dateline int(10) unsigned NOT NULL default '0' COMMENT '被屏蔽的时间戳',
  69. PRIMARY KEY (uid,buid),
  70. KEY uid (uid,dateline)
  71. ) ENGINE=MyISAM COMMENT='屏蔽黑名单表';

  72. DROP TABLE IF EXISTS pre_common_block;
  73. CREATE TABLE pre_common_block (
  74. bid mediumint(8) unsigned NOT NULL auto_increment COMMENT '模块ID',
  75. blockclass varchar(255) NOT NULL default '0' COMMENT '模块分类 article/pic/member/board/poll',
  76. blocktype tinyint(1) NOT NULL default '0' COMMENT '调用类型 0为模板调用 1为js调用',
  77. `name` varchar(255) NOT NULL default COMMENT '模块标名称',
  78. title text NOT NULL COMMENT '模块标题名',
  79. classname varchar(255) NOT NULL default COMMENT '指定样式class',
  80. summary text NOT NULL COMMENT '模块自定义内容',
  81. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '创建者用户ID ',
  82. username varchar(255) NOT NULL default COMMENT '创建者用户名',
  83. styleid smallint(6) unsigned NOT NULL default '0' COMMENT '模块风格ID',
  84. blockstyle text NOT NULL COMMENT '自定义风格',
  85. picwidth smallint(6) unsigned NOT NULL default '0' COMMENT '显示图片长度',
  86. picheight smallint(6) unsigned NOT NULL default '0' COMMENT '显示图片宽度',
  87. target varchar(255) NOT NULL default COMMENT '模块链接打开方式: _blank, _self, _top',
  88. dateformat varchar(255) NOT NULL default COMMENT '时间格式: H:i; u; Y-m-d等',
  89. dateuformat tinyint(1) NOT NULL default '0' COMMENT '是否使用个性化时间格式',
  90. script varchar(255) NOT NULL default COMMENT '模块获取数据脚本名',
  91. param text NOT NULL COMMENT '模块参数配置序列化存储',
  92. shownum smallint(6) unsigned NOT NULL default '0' COMMENT '获取数据数目',
  93. cachetime int(10) NOT NULL default '0' COMMENT '模块缓存更新时间间隔',
  94. cachetimerange char(5) NOT NULL default COMMENT '模块缓存更新时间区间',
  95. punctualupdate tinyint(1) NOT NULL default '0' COMMENT '是否严格按照缓存时间更新(忽略优化)',
  96. hidedisplay tinyint(1) NOT NULL default '0' COMMENT '是否屏蔽输出',
  97. dateline int(10) unsigned NOT NULL default '0' COMMENT '模块缓存创建时间戳',
  98. notinherited tinyint(1) NOT NULL default '0' COMMENT '是否继承所在页面权限',
  99. isblank tinyint(1) NOT NULL default '0' COMMENT '是否为空白模块,只显示准送数据',
  100. PRIMARY KEY (bid)
  101. ) ENGINE=MyISAM COMMENT='模块表';

  102. DROP TABLE IF EXISTS pre_common_block_style;
  103. CREATE TABLE pre_common_block_style (
  104. styleid smallint(6) unsigned NOT NULL auto_increment COMMENT '模块样式ID',
  105. blockclass varchar(255) NOT NULL default COMMENT '模块分类',
  106. `name` varchar(255) NOT NULL default COMMENT '样式名称',
  107. template text NOT NULL COMMENT '样式模板',
  108. `hash` varchar(255) NOT NULL default COMMENT '样式hash(blockclass + template)',
  109. getpic tinyint(1) NOT NULL default '0' COMMENT '是否需要获取pic数据',
  110. getsummary tinyint(1) NOT NULL default '0' COMMENT '是否需要获取summary数据',
  111. makethumb tinyint(1) NOT NULL default '0' COMMENT '是否需要block设置缩略图',
  112. settarget tinyint(1) NOT NULL default '0' COMMENT '是否需要设置链接打开方式',
  113. `fields` text NOT NULL COMMENT '模板中用到的模块分类字段',
  114. moreurl tinyint(1) NOT NULL default '0' COMMENT '是否有更多链接',
  115. PRIMARY KEY (styleid),
  116. KEY `hash` (`hash`),
  117. KEY `blockclass` (`blockclass`)
  118. ) ENGINE=MyISAM COMMENT='模块模板表';

  119. DROP TABLE IF EXISTS pre_common_block_item;
  120. CREATE TABLE pre_common_block_item (
  121. itemid int(10) unsigned NOT NULL auto_increment COMMENT '信息ID',
  122. bid mediumint(8) unsigned NOT NULL default '0' COMMENT '模块ID',
  123. id int(10) unsigned NOT NULL default '0' COMMENT '来源ID',
  124. idtype varchar(255) NOT NULL default COMMENT '来源ID TYPE,手工添加数据为rand',
  125. itemtype tinyint(1) NOT NULL default '0' COMMENT '信息类型 0为自动 1为手工输入 2已编辑',
  126. title varchar(255) NOT NULL default COMMENT '信息标题名',
  127. url varchar(255) NOT NULL default COMMENT '信息链接地址',
  128. pic varchar(255) NOT NULL default COMMENT '信息图片',
  129. picflag tinyint(1) NOT NULL default '0' COMMENT '图片类型 0为url 1为本地 2 为ftp远程',
  130. makethumb tinyint(1) NOT NULL default '0' COMMENT '是否已生成缩略图 1:生成成功; 2:生成失败',
  131. thumbpath varchar(255) NOT NULL default COMMENT '缩略图地址',
  132. summary text NOT NULL COMMENT '信息摘要',
  133. showstyle text NOT NULL COMMENT '显示样式',
  134. related text NOT NULL COMMENT '相关链接',
  135. `fields` text NOT NULL COMMENT '信息附属num/author/authorid/dateline',
  136. displayorder smallint(6) NOT NULL default '0' COMMENT '显示顺序',
  137. startdate int(10) unsigned NOT NULL default '0' COMMENT '开始时间戳',
  138. enddate int(10) unsigned NOT NULL default '0' COMMENT '结束时间戳',
  139. PRIMARY KEY (itemid),
  140. KEY bid (bid)
  141. ) ENGINE=MyISAM COMMENT='模块数据表';

  142. DROP TABLE IF EXISTS pre_common_block_pic;
  143. CREATE TABLE pre_common_block_pic (
  144. picid int(10) unsigned NOT NULL auto_increment COMMENT '图片ID',
  145. bid mediumint(8) unsigned NOT NULL default '0' COMMENT '模块ID',
  146. itemid int(10) unsigned NOT NULL default '0' COMMENT '信息ID',
  147. pic varchar(255) NOT NULL default COMMENT '信息图片',
  148. picflag tinyint(1) NOT NULL default '0' COMMENT '图片类型 0为本地 1为ftp远程',
  149. `type` tinyint(1) NOT NULL default '0' COMMENT '信息类型 0为模块缩略图 1为上传的图',
  150. PRIMARY KEY (picid),
  151. KEY bid (bid,itemid)
  152. ) ENGINE=MyISAM COMMENT='模块使用图片表';

  153. DROP TABLE IF EXISTS pre_common_block_item_data;
  154. CREATE TABLE pre_common_block_item_data (
  155. dataid int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '推荐信息ID',
  156. bid mediumint(8) unsigned NOT NULL default '0' COMMENT '模块ID',
  157. id int(10) unsigned NOT NULL default '0' COMMENT '来源ID',
  158. idtype varchar(255) NOT NULL default COMMENT '来源ID TYPE',
  159. itemtype tinyint(1) NOT NULL default '0' COMMENT '信息类型 0为自动 1为手工输入 3推荐数据',
  160. title varchar(255) NOT NULL default COMMENT '信息标题名',
  161. url varchar(255) NOT NULL default COMMENT '信息链接地址',
  162. pic varchar(255) NOT NULL default COMMENT '信息图片',
  163. picflag tinyint(1) NOT NULL default '0' COMMENT '图片类型 0为url 1为本地 2 为ftp远程',
  164. makethumb tinyint(1) NOT NULL default '0' COMMENT '是否已生成缩略图',
  165. summary text NOT NULL COMMENT '信息摘要',
  166. showstyle text NOT NULL COMMENT '显示样式',
  167. related text NOT NULL COMMENT '相关链接',
  168. `fields` text NOT NULL COMMENT '信息附属num/author/authorid/dateline',
  169. displayorder smallint(6) NOT NULL default '0' COMMENT '显示顺序',
  170. startdate int(10) unsigned NOT NULL default '0' COMMENT '开始时间戳',
  171. enddate int(10) unsigned NOT NULL default '0' COMMENT '结束时间戳',
  172. uid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '推荐者 UID',
  173. username varchar(255) NOT NULL DEFAULT COMMENT '推荐者用户名',
  174. dateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '推荐日期',
  175. isverified tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否已通过审核',
  176. verifiedtime int(10) unsigned NOT NULL DEFAULT '0' COMMENT '通过审核日期',
  177. stickgrade tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '置顶等级: 0~10',
  178. PRIMARY KEY (dataid),
  179. KEY bid (bid, stickgrade, verifiedtime)
  180. ) ENGINE=MyISAM COMMENT='模块推荐信息表';

  181. DROP TABLE IF EXISTS pre_common_block_xml;
  182. CREATE TABLE pre_common_block_xml (
  183. `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  184. `name` varchar(255) NOT NULL COMMENT 'XML扩展 名称',
  185. `version` varchar(255) NOT NULL COMMENT 'XML扩展 版本',
  186. `url` varchar(255) NOT NULL COMMENT 'XML扩展 URL',
  187. `clientid` varchar(255) NOT NULL COMMENT '客户端ID',
  188. `key` varchar(255) NOT NULL COMMENT '通信密钥',
  189. `signtype` varchar(255) NOT NULL COMMENT '签名的加密方式:目前只支持MD5方式,空为不使用签名,直接使用通信密钥',
  190. `data` text NOT NULL COMMENT 'XML扩展 数据',
  191. PRIMARY KEY (`id`)
  192. ) ENGINE=MyISAM COMMENT='模块 XML 扩展类数据表';

  193. DROP TABLE IF EXISTS pre_common_block_favorite;
  194. CREATE TABLE pre_common_block_favorite (
  195. favid mediumint(8) unsigned NOT NULL auto_increment COMMENT '收藏id',
  196. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  197. bid mediumint(8) unsigned NOT NULL default '0' COMMENT '模块id',
  198. dateline int(10) unsigned NOT NULL default '0' COMMENT '收藏时间',
  199. PRIMARY KEY (favid),
  200. KEY uid (uid,dateline)
  201. ) ENGINE=MyISAM COMMENT='模块收藏表';

  202. DROP TABLE IF EXISTS pre_home_blog;
  203. CREATE TABLE pre_home_blog (
  204. blogid mediumint(8) unsigned NOT NULL auto_increment COMMENT '日志ID',
  205. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '日志所属用户ID ',
  206. username char(15) NOT NULL default COMMENT '日志所属用户名',
  207. `subject` char(80) NOT NULL default COMMENT '日志标题',
  208. classid smallint(6) unsigned NOT NULL default '0' COMMENT '个人分类id',
  209. catid smallint(6) unsigned NOT NULL default '0' COMMENT '系统分类id',
  210. viewnum mediumint(8) unsigned NOT NULL default '0' COMMENT '日志查看数',
  211. replynum mediumint(8) unsigned NOT NULL default '0' COMMENT '日志回复数',
  212. hot mediumint(8) unsigned NOT NULL default '0' COMMENT '热度',
  213. dateline int(10) unsigned NOT NULL default '0' COMMENT '日志发布时间',
  214. picflag tinyint(1) NOT NULL default '0' COMMENT '日志是否有图片',
  215. noreply tinyint(1) NOT NULL default '0' COMMENT '是否允许评论:"0"为允许,"1"为不允许 ',
  216. friend tinyint(1) NOT NULL default '0' COMMENT '日志隐私设置:"0"为全站用户可见,"1"为全好友可见,"2"为仅指定的好友可见,"3"为仅自己可见,"4"为凭密码查看 ',
  217. `password` char(10) NOT NULL default COMMENT '日志密码',
  218. favtimes mediumint(8) unsigned NOT NULL default '0' COMMENT '日志收藏次数',
  219. sharetimes mediumint(8) unsigned NOT NULL default '0' COMMENT '日志分享次数',
  220. `status` tinyint(1) unsigned NOT NULL default '0' COMMENT 'blog状态 1-审核',
  221. click1 smallint(6) unsigned NOT NULL default '0' COMMENT '表态1 id',
  222. click2 smallint(6) unsigned NOT NULL default '0' COMMENT '表态2 id',
  223. click3 smallint(6) unsigned NOT NULL default '0' COMMENT '表态3 id',
  224. click4 smallint(6) unsigned NOT NULL default '0' COMMENT '表态4 id',
  225. click5 smallint(6) unsigned NOT NULL default '0' COMMENT '表态5 id',
  226. click6 smallint(6) unsigned NOT NULL default '0' COMMENT '表态6 id',
  227. click7 smallint(6) unsigned NOT NULL default '0' COMMENT '表态7 id',
  228. click8 smallint(6) unsigned NOT NULL default '0' COMMENT '表态8 id',
  229. PRIMARY KEY (blogid),
  230. KEY uid (uid,dateline),
  231. KEY hot (hot),
  232. KEY dateline (dateline)
  233. ) ENGINE=MyISAM COMMENT='日志表';
复制代码
回复

使用道具 举报

 楼主| gdnyhl 发表于 2012-8-6 02:20:51 | 显示全部楼层
  1. DROP TABLE IF EXISTS pre_home_blogfield;
  2. CREATE TABLE pre_home_blogfield (
  3. blogid mediumint(8) unsigned NOT NULL default '0' COMMENT '日志id',
  4. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '日志所属用户ID ',
  5. pic varchar(255) NOT NULL default COMMENT '标题图片',
  6. tag varchar(255) NOT NULL default COMMENT '日志TAG ',
  7. message mediumtext NOT NULL COMMENT '日志内容',
  8. postip varchar(255) NOT NULL default COMMENT '发表日志的IP ',
  9. related text NOT NULL COMMENT '相关日志的数据信息',
  10. relatedtime int(10) unsigned NOT NULL default '0' COMMENT '相关日志产生时间戳',
  11. target_ids text NOT NULL COMMENT '允许查看日志的用户ID多个ID以","间隔 ',
  12. hotuser text NOT NULL COMMENT '热点用户',
  13. magiccolor tinyint(6) NOT NULL default '0' COMMENT '道具彩色灯id',
  14. magicpaper tinyint(6) NOT NULL default '0' COMMENT '道具信纸id',
  15. pushedaid mediumint(8) NOT NULL default '0' COMMENT '被推送到的文章aid',
  16. PRIMARY KEY (blogid),
  17. KEY uid (uid)
  18. ) ENGINE=MyISAM COMMENT='日志字段表';

  19. DROP TABLE IF EXISTS pre_home_class;
  20. CREATE TABLE pre_home_class (
  21. classid mediumint(8) unsigned NOT NULL auto_increment COMMENT '个人分类id',
  22. classname char(40) NOT NULL default COMMENT '分类名称',
  23. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '分类所属用户ID ',
  24. dateline int(10) unsigned NOT NULL default '0' COMMENT '分类创建时间戳',
  25. PRIMARY KEY (classid),
  26. KEY uid (uid)
  27. ) ENGINE=MyISAM COMMENT='日志个人分类表';

  28. DROP TABLE IF EXISTS pre_home_click;
  29. CREATE TABLE pre_home_click (
  30. clickid smallint(6) unsigned NOT NULL auto_increment COMMENT '表态ID',
  31. `name` char(50) NOT NULL default COMMENT '表态名称',
  32. icon char(100) NOT NULL default COMMENT '表态图标',
  33. idtype char(15) NOT NULL default COMMENT '表态类型',
  34. available tinyint(1) unsigned NOT NULL default '0' COMMENT '是否有效',
  35. displayorder tinyint(6) unsigned NOT NULL default '0' COMMENT '排序',
  36. PRIMARY KEY (clickid),
  37. KEY idtype (idtype, displayorder)
  38. ) ENGINE=MyISAM COMMENT='表态动作';

  39. DROP TABLE IF EXISTS pre_home_clickuser;
  40. CREATE TABLE pre_home_clickuser (
  41. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '表态用户id',
  42. username varchar(15) NOT NULL default COMMENT '表态用户名',
  43. id mediumint(8) unsigned NOT NULL default '0' COMMENT '作用对象id',
  44. idtype varchar(15) NOT NULL default COMMENT '作用对象id类型',
  45. clickid smallint(6) unsigned NOT NULL default '0' COMMENT '表态id',
  46. dateline int(10) unsigned NOT NULL default '0' COMMENT '发表表态时间戳',
  47. KEY id (id,idtype,dateline),
  48. KEY uid (uid,idtype,dateline)
  49. ) ENGINE=MyISAM COMMENT='用户表态表';

  50. DROP TABLE IF EXISTS pre_home_comment;
  51. CREATE TABLE pre_home_comment (
  52. cid mediumint(8) unsigned NOT NULL auto_increment COMMENT '评论id',
  53. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '发表评论的用户id',
  54. id mediumint(8) unsigned NOT NULL default '0' COMMENT '评论对象id',
  55. idtype varchar(20) NOT NULL default COMMENT '评论对象的id类型:blogid,picid,uid',
  56. authorid mediumint(8) unsigned NOT NULL default '0' COMMENT '若为回复,回复作者用户ID ',
  57. author varchar(15) NOT NULL default COMMENT '若为回复,回复作者用户名 ',
  58. ip varchar(20) NOT NULL default COMMENT '评论IP ',
  59. dateline int(10) unsigned NOT NULL default '0' COMMENT '评论时间戳',
  60. message text NOT NULL COMMENT '评论内容',
  61. magicflicker tinyint(1) NOT NULL default '0' COMMENT '是否使用了道具彩虹炫',
  62. status tinyint(1) NOT NULL default '0' COMMENT '评论状态 1-审核',
  63. PRIMARY KEY (cid),
  64. KEY authorid (authorid,idtype),
  65. KEY id (id,idtype,dateline)
  66. ) ENGINE=MyISAM COMMENT='用户评论表';

  67. DROP TABLE IF EXISTS pre_home_docomment;
  68. CREATE TABLE pre_home_docomment (
  69. id int(10) unsigned NOT NULL auto_increment COMMENT '记录回复id',
  70. upid int(10) unsigned NOT NULL default '0' COMMENT '上级记录回复id',
  71. doid mediumint(8) unsigned NOT NULL default '0' COMMENT '所评论的记录id',
  72. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '发布记录者用户id',
  73. username varchar(15) NOT NULL default COMMENT '发布记录者用户名',
  74. dateline int(10) unsigned NOT NULL default '0' COMMENT '记录回复时间戳',
  75. message text NOT NULL COMMENT '记录回复内容',
  76. ip varchar(20) NOT NULL default COMMENT '发布记录ip',
  77. grade smallint(6) unsigned NOT NULL default '0' COMMENT '记录回复的层级',
  78. PRIMARY KEY (id),
  79. KEY doid (doid,dateline),
  80. KEY dateline (dateline)
  81. ) ENGINE=MyISAM COMMENT='用户记录回复表';

  82. DROP TABLE IF EXISTS pre_home_doing;
  83. CREATE TABLE pre_home_doing (
  84. doid mediumint(8) unsigned NOT NULL auto_increment COMMENT '记录id',
  85. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '记录发布者用户id',
  86. username varchar(15) NOT NULL default COMMENT '记录发布者用户名',
  87. `from` varchar(20) NOT NULL default COMMENT '记录的发表来源',
  88. dateline int(10) unsigned NOT NULL default '0' COMMENT '记录发布时间戳',
  89. message text NOT NULL COMMENT '记录内容',
  90. ip varchar(20) NOT NULL default COMMENT '记录发布ip',
  91. replynum int(10) unsigned NOT NULL default '0' COMMENT '记录回复数',
  92. status tinyint(1) unsigned NOT NULL default '0' COMMENT '记录状态 1-审核',
  93. PRIMARY KEY (doid),
  94. KEY uid (uid,dateline),
  95. KEY dateline (dateline)
  96. ) ENGINE=MyISAM COMMENT='用户记录表';

  97. DROP TABLE IF EXISTS pre_home_feed;
  98. CREATE TABLE pre_home_feed (
  99. feedid int(10) unsigned NOT NULL auto_increment COMMENT 'feed的ID ',
  100. appid smallint(6) unsigned NOT NULL default '0' COMMENT '应用程序ID ',
  101. icon varchar(30) NOT NULL default COMMENT 'feed图标 ',
  102. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '产生feed的用户ID ',
  103. username varchar(15) NOT NULL default COMMENT '产生feed的用户名 ',
  104. dateline int(10) unsigned NOT NULL default '0' COMMENT 'feed产生时间戳 ',
  105. friend tinyint(1) NOT NULL default '0' COMMENT '产生feed信息的隐私设置 ',
  106. hash_template varchar(32) NOT NULL default COMMENT '模板hash:md5(title_template"\t"body_template) ',
  107. hash_data varchar(32) NOT NULL default COMMENT '数据内容hash:md5(title_templat"\t"title_data"\t"body_template"\t"body_data) ',
  108. title_template text NOT NULL COMMENT 'feed标题模板 ',
  109. title_data text NOT NULL COMMENT 'feed标题 ',
  110. body_template text NOT NULL COMMENT 'feed内容模板 ',
  111. body_data text NOT NULL COMMENT 'feed内容 ',
  112. body_general text NOT NULL COMMENT '用户填写的信息 ',
  113. image_1 varchar(255) NOT NULL default COMMENT 'feed图1',
  114. image_1_link varchar(255) NOT NULL default COMMENT 'feed图片链接1',
  115. image_2 varchar(255) NOT NULL default COMMENT 'feed图片2',
  116. image_2_link varchar(255) NOT NULL default COMMENT 'feed图片链接2',
  117. image_3 varchar(255) NOT NULL default COMMENT 'feed图片3',
  118. image_3_link varchar(255) NOT NULL default COMMENT 'feed图片链接3',
  119. image_4 varchar(255) NOT NULL default COMMENT 'feed图片4',
  120. image_4_link varchar(255) NOT NULL default COMMENT 'feed图片链接4',
  121. target_ids text NOT NULL COMMENT '产生feed信息允许查看的好友ID ',
  122. id mediumint(8) unsigned NOT NULL default '0' COMMENT 'feed对应对象id',
  123. idtype varchar(15) NOT NULL default COMMENT 'feed对应对象类型',
  124. hot mediumint(8) unsigned NOT NULL default '0' COMMENT '热度',
  125. PRIMARY KEY (feedid),
  126. KEY uid (uid,dateline),
  127. KEY dateline (dateline),
  128. KEY hot (hot),
  129. KEY id (id,idtype)
  130. ) ENGINE=MyISAM COMMENT='站点feed表';

  131. DROP TABLE IF EXISTS pre_home_feed_app;
  132. CREATE TABLE pre_home_feed_app (
  133. feedid int(10) unsigned NOT NULL auto_increment COMMENT '应用feed id',
  134. appid smallint(6) unsigned NOT NULL default '0' COMMENT '应用程序ID',
  135. icon varchar(30) NOT NULL default COMMENT 'feed图标 ',
  136. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '产生feed的用户ID ',
  137. username varchar(15) NOT NULL default COMMENT '产生feed的用户名 ',
  138. dateline int(10) unsigned NOT NULL default '0' COMMENT 'feed产生时间戳 ',
  139. friend tinyint(1) NOT NULL default '0' COMMENT '产生feed信息的隐私设置 ',
  140. hash_template varchar(32) NOT NULL default COMMENT '模板hash:md5(title_template"\t"body_template) ',
  141. hash_data varchar(32) NOT NULL default COMMENT '数据内容hash:md5(title_templat"\t"title_data"\t"body_template"\t"body_data) ',
  142. title_template text NOT NULL COMMENT 'feed标题模板 ',
  143. title_data text NOT NULL COMMENT 'feed标题 ',
  144. body_template text NOT NULL COMMENT 'feed内容模板 ',
  145. body_data text NOT NULL COMMENT 'feed内容 ',
  146. body_general text NOT NULL COMMENT '用户填写的信息 ',
  147. image_1 varchar(255) NOT NULL default COMMENT 'feed图1',
  148. image_1_link varchar(255) NOT NULL default COMMENT 'feed图片链接1',
  149. image_2 varchar(255) NOT NULL default COMMENT 'feed图片2',
  150. image_2_link varchar(255) NOT NULL default COMMENT 'feed图片链接2',
  151. image_3 varchar(255) NOT NULL default COMMENT 'feed图片3',
  152. image_3_link varchar(255) NOT NULL default COMMENT 'feed图片链接3',
  153. image_4 varchar(255) NOT NULL default COMMENT 'feed图片4',
  154. image_4_link varchar(255) NOT NULL default COMMENT 'feed图片链接4',
  155. target_ids text NOT NULL COMMENT '产生feed信息允许查看的好友ID ',
  156. PRIMARY KEY (feedid),
  157. KEY uid (uid,dateline),
  158. KEY dateline (dateline)
  159. ) ENGINE=MyISAM COMMENT='应该feed表';

  160. DROP TABLE IF EXISTS pre_home_friend;
  161. CREATE TABLE pre_home_friend (
  162. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户ID ',
  163. fuid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户好友ID ',
  164. fusername varchar(15) NOT NULL default COMMENT '用户好友名',
  165. gid smallint(6) unsigned NOT NULL default '0' COMMENT '好友所在的好友组ID ',
  166. num mediumint(8) unsigned NOT NULL default '0' COMMENT '好友之间的任务关系数',
  167. dateline int(10) unsigned NOT NULL default '0' COMMENT '加好友的时间戳',
  168. note varchar(255) NOT NULL default COMMENT '好友备注',
  169. PRIMARY KEY (uid,fuid),
  170. KEY fuid (fuid),
  171. KEY `uid` (uid,num,dateline)
  172. ) ENGINE=MyISAM COMMENT='用户好友表';

  173. DROP TABLE IF EXISTS pre_home_friend_request;
  174. CREATE TABLE pre_home_friend_request (
  175. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户ID ',
  176. fuid mediumint(8) unsigned NOT NULL default '0' COMMENT '被请求用户ID ',
  177. fusername char(15) NOT NULL default COMMENT '被请求用户名称',
  178. gid smallint(6) unsigned NOT NULL default '0' COMMENT '好友所在的好友组ID ',
  179. note char(60) NOT NULL default COMMENT '申请附言',
  180. dateline int(10) unsigned NOT NULL default '0' COMMENT '请求好友时间戳',
  181. PRIMARY KEY (uid,fuid),
  182. KEY fuid (fuid),
  183. KEY `dateline` (uid, dateline)
  184. ) ENGINE=MyISAM COMMENT='申请好友表';

  185. DROP TABLE IF EXISTS pre_home_friendlog;
  186. CREATE TABLE pre_home_friendlog (
  187. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户ID ',
  188. fuid mediumint(8) unsigned NOT NULL default '0' COMMENT '好友用户ID ',
  189. `action` varchar(10) NOT NULL default COMMENT '好友动作:"add"添加,"update"更新 ',
  190. dateline int(10) unsigned NOT NULL default '0' COMMENT '好友动作时间',
  191. PRIMARY KEY (uid,fuid)
  192. ) ENGINE=MyISAM COMMENT='用户好友动作日志表';

  193. DROP TABLE IF EXISTS pre_common_magiclog;
  194. CREATE TABLE pre_common_magiclog (
  195. uid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
  196. magicid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '道具id',
  197. action tinyint(1) NOT NULL DEFAULT '0' COMMENT '操作动作 1 购买 2 使用 3 赠送',
  198. dateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '操作时间',
  199. amount smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '操作数量',
  200. credit tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '操作积分',
  201. price mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '操作价格',
  202. `targetid` int(10) unsigned NOT NULL DEFAULT '0',
  203. `idtype` char(6) DEFAULT NULL,
  204. targetuid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '道具目标uid',
  205. KEY uid (uid,dateline),
  206. KEY `action` (`action`),
  207. KEY targetuid (targetuid,dateline),
  208. KEY magicid (magicid,dateline)
  209. ) ENGINE=MyISAM COMMENT='道具日志表';

  210. DROP TABLE IF EXISTS pre_common_magic;
  211. CREATE TABLE pre_common_magic (
  212. magicid smallint(6) unsigned NOT NULL AUTO_INCREMENT COMMENT '道具id',
  213. available tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否可用',
  214. name varchar(50) NOT NULL COMMENT '名称',
  215. identifier varchar(40) NOT NULL COMMENT '唯一标识',
  216. description varchar(255) NOT NULL COMMENT '描述',
  217. displayorder tinyint(3) NOT NULL DEFAULT '0' COMMENT '顺序',
  218. credit tinyint(1) NOT NULL DEFAULT '0' COMMENT '使用的积分',
  219. price mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '价格',
  220. num smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '数量',
  221. salevolume smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '销售量',
  222. supplytype tinyint(1) NOT NULL DEFAULT '0' COMMENT '自动补货类型',
  223. supplynum smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '自动补货数量',
  224. useperoid tinyint(1) NOT NULL DEFAULT '0' COMMENT '使用周期',
  225. usenum smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '周期使用数量',
  226. weight tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '重量',
  227. magicperm text NOT NULL COMMENT '权限',
  228. useevent tinyint(1) NOT NULL DEFAULT '0' COMMENT '0:只在特定环境使用 1:可以在道具中心使用',
  229. PRIMARY KEY (magicid),
  230. UNIQUE KEY identifier (identifier),
  231. KEY displayorder (available,displayorder)
  232. ) ENGINE=MyISAM COMMENT='道具数据表';

  233. DROP TABLE IF EXISTS pre_home_notification;
  234. CREATE TABLE pre_home_notification (
  235. id mediumint(8) unsigned NOT NULL auto_increment COMMENT '通知ID ',
  236. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '通知用户ID ',
  237. `type` varchar(20) NOT NULL default COMMENT '通知类型:"doing"记录,"friend"好友请求,"sharenotice"好友分享,"post"话题回复, ',
  238. `new` tinyint(1) NOT NULL default '0' COMMENT '通知是否为新:"1"为新通知,"0"为通知已读 ',
  239. authorid mediumint(8) unsigned NOT NULL default '0' COMMENT '作者用户ID ',
  240. author varchar(15) NOT NULL default COMMENT '用户名',
  241. note text NOT NULL COMMENT '通知内容',
  242. dateline int(10) unsigned NOT NULL default '0' COMMENT '通知产生的时间戳',
  243. from_id mediumint(8) unsigned NOT NULL default '0' COMMENT '来源对象id',
  244. from_idtype varchar(20) NOT NULL default COMMENT '来源对象类型',
  245. from_num mediumint(8) unsigned NOT NULL default '0' COMMENT '来源量',
  246. PRIMARY KEY (id),
  247. KEY uid (uid,new,dateline),
  248. KEY from_id (from_id,from_idtype)
  249. ) ENGINE=MyISAM COMMENT='通知表';

  250. DROP TABLE IF EXISTS pre_home_pic;
  251. CREATE TABLE pre_home_pic (
  252. picid mediumint(8) NOT NULL auto_increment COMMENT '图片ID ',
  253. albumid mediumint(8) unsigned NOT NULL default '0' COMMENT '图片所属相册ID ',
  254. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '图片所属用户ID ',
  255. username varchar(15) NOT NULL default COMMENT '图片所属用户名',
  256. dateline int(10) unsigned NOT NULL default '0' COMMENT '图片上传时间戳',
  257. postip varchar(255) NOT NULL default COMMENT '图片上传ip',
  258. filename varchar(255) NOT NULL default COMMENT '图片文件名',
  259. title varchar(255) NOT NULL default COMMENT '图片标题',
  260. `type` varchar(255) NOT NULL default COMMENT '图片类型',
  261. size int(10) unsigned NOT NULL default '0' COMMENT '图片大小',
  262. filepath varchar(255) NOT NULL default COMMENT '图片路径',
  263. thumb tinyint(1) NOT NULL default '0' COMMENT '是否有缩略图',
  264. remote tinyint(1) NOT NULL default '0' COMMENT '是否有远程图片0:home本地图片,1:home远程图片,2:论坛本地图片,3论坛远程图片',
  265. hot mediumint(8) unsigned NOT NULL default '0' COMMENT '热度',
  266. sharetimes mediumint(8) unsigned NOT NULL default '0' COMMENT '图片分享次数',
  267. click1 smallint(6) unsigned NOT NULL default '0' COMMENT '表态1 id',
  268. click2 smallint(6) unsigned NOT NULL default '0' COMMENT '表态2 id',
  269. click3 smallint(6) unsigned NOT NULL default '0' COMMENT '表态3 id',
  270. click4 smallint(6) unsigned NOT NULL default '0' COMMENT '表态4 id',
  271. click5 smallint(6) unsigned NOT NULL default '0' COMMENT '表态5 id',
  272. click6 smallint(6) unsigned NOT NULL default '0' COMMENT '表态6 id',
  273. click7 smallint(6) unsigned NOT NULL default '0' COMMENT '表态7 id',
  274. click8 smallint(6) unsigned NOT NULL default '0' COMMENT '表态8 id',
  275. magicframe tinyint(6) NOT NULL default '0' COMMENT '道具使用相框id',
  276. status tinyint(1) unsigned NOT NULL default '0' COMMENT '图片状态 1-审核',
  277. PRIMARY KEY (picid),
  278. KEY uid (uid),
  279. KEY albumid (albumid,dateline)
  280. ) ENGINE=MyISAM COMMENT='家园图片表';

  281. DROP TABLE IF EXISTS pre_home_picfield;
  282. CREATE TABLE pre_home_picfield (
  283. picid mediumint(8) unsigned NOT NULL default '0' COMMENT '图片id',
  284. hotuser text NOT NULL COMMENT '图片对应热点用户',
  285. PRIMARY KEY (picid)
  286. ) ENGINE=MyISAM COMMENT='家园图片拓展表';

  287. DROP TABLE IF EXISTS pre_home_poke;
  288. CREATE TABLE pre_home_poke (
  289. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '接招呼的用户ID ',
  290. fromuid mediumint(8) unsigned NOT NULL default '0' COMMENT '打招呼的用户ID ',
  291. fromusername varchar(15) NOT NULL default COMMENT '打招呼的用户名 ',
  292. note varchar(255) NOT NULL default COMMENT '招呼内容',
  293. dateline int(10) unsigned NOT NULL default '0' COMMENT '打招呼时间戳',
  294. iconid smallint(6) unsigned NOT NULL default '0' COMMENT '招呼图标',
  295. PRIMARY KEY (uid,fromuid),
  296. KEY uid (uid,dateline)
  297. ) ENGINE=MyISAM COMMENT='用户招呼表';

  298. DROP TABLE IF EXISTS pre_home_pokearchive;
  299. CREATE TABLE pre_home_pokearchive (
  300. pid mediumint(8) NOT NULL auto_increment COMMENT '招呼历史id',
  301. pokeuid int(10) unsigned NOT NULL default '0' COMMENT 'uid + fromuid',
  302. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '目标用户ID',
  303. fromuid mediumint(8) unsigned NOT NULL default '0' COMMENT '发起用户ID',
  304. note varchar(255) NOT NULL default COMMENT '招呼内容',
  305. dateline int(10) unsigned NOT NULL default '0' COMMENT '招呼时间戳',
  306. iconid smallint(6) unsigned NOT NULL default '0' COMMENT '招呼图标',
  307. PRIMARY KEY (pid),
  308. KEY pokeuid (pokeuid)
  309. ) ENGINE=MyISAM COMMENT='用户招呼存档表';

  310. DROP TABLE IF EXISTS pre_home_share;
  311. CREATE TABLE pre_home_share (
  312. sid mediumint(8) unsigned NOT NULL auto_increment COMMENT '分享id',
  313. itemid mediumint(8) unsigned NOT NULL COMMENT '相关条目的ID',
  314. `type` varchar(30) NOT NULL default COMMENT '分享类型',
  315. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '分享者用户id',
  316. username varchar(15) NOT NULL default COMMENT '分享者用户名',
  317. fromuid mediumint(8) unsigned NOT NULL default '0' COMMENT '被分享者用户ID',
  318. dateline int(10) unsigned NOT NULL default '0' COMMENT '分享时间戳',
  319. title_template text NOT NULL COMMENT '分享标题模板',
  320. body_template text NOT NULL COMMENT '分享内容模板',
  321. body_data text NOT NULL COMMENT '分享内容数据',
  322. body_general text NOT NULL COMMENT '分享说明',
  323. image varchar(255) NOT NULL default COMMENT '分享的图片',
  324. image_link varchar(255) NOT NULL default COMMENT '分享的图片链接',
  325. hot mediumint(8) unsigned NOT NULL default '0' COMMENT '热度',
  326. hotuser text NOT NULL COMMENT '相关热点用户',
  327. status tinyint(1) NOT NULL COMMENT '分享条目状态 1-审核',
  328. PRIMARY KEY (sid),
  329. KEY uid (uid,dateline),
  330. KEY hot (hot),
  331. KEY dateline (dateline)
  332. ) ENGINE=MyISAM COMMENT='用户分享表';

  333. DROP TABLE IF EXISTS pre_home_show;
  334. CREATE TABLE pre_home_show (
  335. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '我要上榜用户id',
  336. username varchar(15) NOT NULL default COMMENT '我要上榜用户名',
  337. unitprice int(10) unsigned NOT NULL default '1' COMMENT '单次访问单价',
  338. credit int(10) unsigned NOT NULL default '0' COMMENT '上榜总积分',
  339. note varchar(100) NOT NULL default COMMENT '上榜宣言',
  340. PRIMARY KEY (uid),
  341. KEY unitprice (unitprice),
  342. KEY credit (credit)
  343. ) ENGINE=MyISAM COMMENT='用户上榜表';

  344. DROP TABLE IF EXISTS pre_home_userapp;
  345. CREATE TABLE pre_home_userapp (
  346. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '使用应用的用户ID ',
  347. appid mediumint(8) unsigned NOT NULL default '0' COMMENT '应用ID ',
  348. appname varchar(60) NOT NULL default COMMENT '应用名',
  349. privacy tinyint(1) NOT NULL default '0' COMMENT '应用是否公开',
  350. allowsidenav tinyint(1) NOT NULL default '0' COMMENT '是否在开始菜单中显示',
  351. allowfeed tinyint(1) NOT NULL default '0' COMMENT '是否允许应用产生feed ',
  352. allowprofilelink tinyint(1) NOT NULL default '0' COMMENT '时都允许在首页显示连接',
  353. narrow tinyint(1) NOT NULL default '0' COMMENT '是否在个人空间左边显示',
  354. menuorder smallint(6) NOT NULL default '0' COMMENT '菜单顺序',
  355. displayorder smallint(6) NOT NULL default '0' COMMENT '显示顺序',
  356. KEY uid (uid,appid),
  357. KEY menuorder (uid,menuorder),
  358. KEY displayorder (uid,displayorder)
  359. ) ENGINE=MyISAM COMMENT='用户使用应用表';

  360. DROP TABLE IF EXISTS pre_home_userappfield;
  361. CREATE TABLE pre_home_userappfield (
  362. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '使用应用的用户id',
  363. appid mediumint(8) unsigned NOT NULL default '0' COMMENT '应用id',
  364. profilelink text NOT NULL COMMENT '应用链接',
  365. myml text NOT NULL COMMENT 'myml格式的首页显示信息',
  366. KEY uid (uid,appid)
  367. ) ENGINE=MyISAM COMMENT='用户使用应用扩展表';

  368. DROP TABLE IF EXISTS pre_home_visitor;
  369. CREATE TABLE pre_home_visitor (
  370. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '受访者用户id',
  371. vuid mediumint(8) unsigned NOT NULL default '0' COMMENT '访问者用户id',
  372. vusername char(15) NOT NULL default COMMENT '访问者用户名',
  373. dateline int(10) unsigned NOT NULL default '0' COMMENT '访问时间戳',
  374. PRIMARY KEY (uid,vuid),
  375. KEY vuid (vuid),
  376. KEY dateline (dateline)
  377. ) ENGINE=MyISAM COMMENT='空间访问日志表';

  378. DROP TABLE IF EXISTS pre_portal_article_title;
  379. CREATE TABLE pre_portal_article_title (
  380. aid mediumint(8) unsigned NOT NULL auto_increment COMMENT '文章ID',
  381. catid mediumint(8) unsigned NOT NULL default '0' COMMENT '栏目id',
  382. bid mediumint(8) unsigned NOT NULL default '0' COMMENT '模块id',
  383. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户id',
  384. username varchar(255) NOT NULL default COMMENT '用户名',
  385. title varchar(255) NOT NULL default COMMENT '标题',
  386. highlight varchar(255) NOT NULL default COMMENT '标题样式',
  387. author varchar(255) NOT NULL default COMMENT '原作者',
  388. `from` varchar(255) NOT NULL default COMMENT '来源',
  389. fromurl varchar(255) NOT NULL default COMMENT '来源URL',
  390. url varchar(255) NOT NULL default COMMENT '访问URL',
  391. summary varchar(255) NOT NULL default COMMENT '摘要',
  392. pic varchar(255) NOT NULL default COMMENT '封面图片',
  393. thumb tinyint(1) NOT NULL default '0' COMMENT '封面图片是否缩略',
  394. remote tinyint(1) NOT NULL default '0' COMMENT '封面图片是否远程',
  395. id int(10) unsigned NOT NULL default '0' COMMENT '来源ID',
  396. idtype varchar(255) NOT NULL default COMMENT '来源ID类型',
  397. contents smallint(6) NOT NULL default '0' COMMENT '内容分页数',
  398. allowcomment tinyint(1) NOT NULL default '0' COMMENT '是否允许评论',
  399. owncomment tinyint(1) NOT NULL default '0' COMMENT '对于推送过来的文章:1,使用文章评论;0,同步原主题/日志的帖子/评论',
  400. click1 smallint(6) unsigned NOT NULL default '0' COMMENT '表态1 id',
  401. click2 smallint(6) unsigned NOT NULL default '0' COMMENT '表态2 id',
  402. click3 smallint(6) unsigned NOT NULL default '0' COMMENT '表态3 id',
  403. click4 smallint(6) unsigned NOT NULL default '0' COMMENT '表态4 id',
  404. click5 smallint(6) unsigned NOT NULL default '0' COMMENT '表态5 id',
  405. click6 smallint(6) unsigned NOT NULL default '0' COMMENT '表态6 id',
  406. click7 smallint(6) unsigned NOT NULL default '0' COMMENT '表态7 id',
  407. click8 smallint(6) unsigned NOT NULL default '0' COMMENT '表态8 id',
  408. tag tinyint(8) unsigned NOT NULL DEFAULT '0' COMMENT '文章属性,共八位',
  409. dateline int(10) unsigned NOT NULL default '0' COMMENT '添加时间',
  410. status tinyint(1) unsigned NOT NULL default '0' COMMENT '文章状态 0-已审核 1-需要审核 2-已忽略',
  411. showinnernav tinyint(1) unsigned NOT NULL default '0' COMMENT '是否显示分页导航',
  412. PRIMARY KEY (aid),
  413. KEY catid (catid,dateline)
  414. ) ENGINE=MyISAM COMMENT='门户文章标题表';

  415. DROP TABLE IF EXISTS pre_portal_article_content;
  416. CREATE TABLE pre_portal_article_content (
  417. cid int(10) unsigned NOT NULL auto_increment COMMENT '内容ID',
  418. aid mediumint(8) unsigned NOT NULL default '0' COMMENT '文章ID',
  419. id int(10) unsigned NOT NULL default '0' COMMENT '来源ID',
  420. idtype varchar(255) NOT NULL default COMMENT '来源ID类型',
  421. title varchar(255) NOT NULL default COMMENT '标题',
  422. content text NOT NULL COMMENT '文章内容',
  423. pageorder smallint(6) unsigned NOT NULL default '0' COMMENT '分页排序',
  424. dateline int(10) unsigned NOT NULL default '0' COMMENT '添加时间',
  425. PRIMARY KEY (cid),
  426. KEY aid (aid,pageorder),
  427. KEY pageorder (pageorder)
  428. ) ENGINE=MyISAM COMMENT='门户文章内容表';

  429. DROP TABLE IF EXISTS pre_portal_article_count;
  430. CREATE TABLE pre_portal_article_count (
  431. aid mediumint(8) unsigned NOT NULL default '0' COMMENT '文章ID',
  432. catid mediumint(8) unsigned NOT NULL default '0' COMMENT '栏目id',
  433. viewnum mediumint(8) unsigned NOT NULL default '0' COMMENT '查看数',
  434. commentnum mediumint(8) unsigned NOT NULL default '0' COMMENT '评论数',
  435. favtimes mediumint(8) unsigned NOT NULL default '0' COMMENT '文章收藏次数',
  436. sharetimes mediumint(8) unsigned NOT NULL default '0' COMMENT '文章分享次数',
  437. PRIMARY KEY (aid)
  438. ) ENGINE=MyISAM COMMENT='门户文章统计数据表';

  439. DROP TABLE IF EXISTS pre_portal_article_trash;
  440. CREATE TABLE pre_portal_article_trash (
  441. aid mediumint(8) unsigned NOT NULL default '0' COMMENT '垃圾文章ID',
  442. content text NOT NULL COMMENT '文章数据的seriallize存储',
  443. PRIMARY KEY (aid)
  444. ) ENGINE=MyISAM COMMENT='门户文章回收站表';

  445. DROP TABLE IF EXISTS pre_portal_comment;
  446. CREATE TABLE pre_portal_comment (
  447. cid mediumint(8) unsigned NOT NULL auto_increment COMMENT '评论id',
  448. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '发表评论的用户id',
  449. username varchar(255) NOT NULL default COMMENT '发表评论的用户名',
  450. id mediumint(8) unsigned NOT NULL default '0' COMMENT '评论对象id',
  451. idtype varchar(20) NOT NULL default COMMENT '评论对象的id类型:aid,topicid',
  452. postip varchar(255) NOT NULL default COMMENT '评论IP ',
  453. dateline int(10) unsigned NOT NULL default '0' COMMENT '评论时间戳',
  454. status tinyint(1) unsigned NOT NULL default '0' COMMENT '评论状态 1-审核',
  455. message text NOT NULL COMMENT '评论内容',
  456. PRIMARY KEY (cid),
  457. KEY idtype (id,idtype,dateline)
  458. ) ENGINE=MyISAM COMMENT='门户评论表';

  459. DROP TABLE IF EXISTS pre_portal_rsscache;
  460. CREATE TABLE pre_portal_rsscache (
  461. lastupdate int(10) unsigned NOT NULL default '0' COMMENT '最后更新时间',
  462. catid mediumint(8) unsigned NOT NULL default '0' COMMENT '文章分类id',
  463. aid mediumint(8) unsigned NOT NULL default '0' COMMENT '文章id',
  464. dateline int(10) unsigned NOT NULL default '0' COMMENT '发表时间',
  465. catname char(50) NOT NULL default COMMENT '分类名称',
  466. author char(15) NOT NULL default COMMENT '作者',
  467. subject char(80) NOT NULL default COMMENT '标题',
  468. description char(255) NOT NULL default COMMENT '解释说明',
  469. UNIQUE KEY aid (aid),
  470. KEY catid (catid,dateline)
  471. ) ENGINE=MyISAM COMMENT='文章rss缓存表';

  472. DROP TABLE IF EXISTS pre_portal_topic;
  473. CREATE TABLE pre_portal_topic (
  474. topicid mediumint(8) unsigned NOT NULL auto_increment COMMENT '专题ID',
  475. title varchar(255) NOT NULL default COMMENT '专题标题',
  476. name varchar(255) NOT NULL default COMMENT '静态化名称',
  477. `domain` varchar(255) NOT NULL DEFAULT COMMENT '二级域名',
  478. summary text NOT NULL COMMENT '专题介绍',
  479. keyword text NOT NULL COMMENT 'SEO 关键字',
  480. cover varchar(255) NOT NULL default COMMENT '专题封面',
  481. picflag tinyint(1) NOT NULL default '0' COMMENT '图片类型 0为url 1为本地 2 为ftp远程',
  482. primaltplname varchar(255) NOT NULL default COMMENT '原模板地址',
  483. useheader tinyint(1) NOT NULL default '0' COMMENT '是否使用网站导航内容',
  484. usefooter tinyint(1) NOT NULL default '0' COMMENT '是否使用网站尾部信息',
  485. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '创建者UID',
  486. username varchar(255) NOT NULL default COMMENT '创建者用户名',
  487. viewnum mediumint(8) unsigned NOT NULL default '0' COMMENT '查看数',
  488. dateline int(10) unsigned NOT NULL default '0' COMMENT '创建时间',
  489. closed tinyint(1) NOT NULL default '0' COMMENT '是否关闭状态',
  490. allowcomment tinyint(1) NOT NULL default '0' COMMENT '是否允许评论',
  491. commentnum mediumint(8) unsigned NOT NULL default '0' COMMENT '评论数',
  492. PRIMARY KEY (topicid),
  493. KEY name (name)
  494. ) ENGINE=MyISAM COMMENT='门户专题表';

  495. DROP TABLE IF EXISTS pre_portal_topic_pic;
  496. CREATE TABLE pre_portal_topic_pic (
  497. picid mediumint(8) NOT NULL auto_increment COMMENT '图片ID ',
  498. topicid mediumint(8) unsigned NOT NULL default '0' COMMENT '图片所属专题ID ',
  499. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '图片所属用户ID ',
  500. username varchar(15) NOT NULL default COMMENT '图片所属用户名',
  501. dateline int(10) unsigned NOT NULL default '0' COMMENT '图片上传时间戳',
  502. filename varchar(255) NOT NULL default COMMENT '图片文件名',
  503. title varchar(255) NOT NULL default COMMENT '图片标题',
  504. size int(10) unsigned NOT NULL default '0' COMMENT '图片大小',
  505. filepath varchar(255) NOT NULL default COMMENT '图片路径',
  506. thumb tinyint(1) NOT NULL default '0' COMMENT '是否有缩略图',
  507. remote tinyint(1) NOT NULL default '0' COMMENT '是否有远程图片',
  508. PRIMARY KEY (picid),
  509. KEY topicid (topicid)
  510. ) ENGINE=MyISAM COMMENT='门户专题图片表';

  511. DROP TABLE IF EXISTS pre_common_diy_data;
  512. CREATE TABLE pre_common_diy_data (
  513. targettplname varchar(100) NOT NULL default COMMENT '目标模板文件名',
  514. tpldirectory varchar(80) NOT NULL default COMMENT '原模板所在目录',
  515. primaltplname varchar(255) NOT NULL default COMMENT '原模板文件名',
  516. diycontent mediumtext NOT NULL COMMENT 'DIY的内容',
  517. `name` varchar(255) NOT NULL default COMMENT '目标模板页面名称',
  518. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  519. username varchar(15) NOT NULL default COMMENT '用户名',
  520. dateline int(10) unsigned NOT NULL default '0' COMMENT '更新时间',
  521. PRIMARY KEY (targettplname, tpldirectory)
  522. ) ENGINE=MyISAM COMMENT='DIY模板页面数据的存档表';

  523. DROP TABLE IF EXISTS pre_common_template_block;
  524. CREATE TABLE pre_common_template_block (
  525. targettplname varchar(100) NOT NULL default COMMENT '目标模板文件名',
  526. tpldirectory varchar(80) NOT NULL default COMMENT '原模板所在目录',
  527. bid mediumint(8) unsigned NOT NULL default '0' COMMENT '模块ID',
  528. PRIMARY KEY (targettplname, tpldirectory, bid),
  529. KEY bid (bid)
  530. ) ENGINE=MyISAM COMMENT='模板页面和模块的关联表';
  531. DROP TABLE IF EXISTS pre_common_template_permission;
  532. CREATE TABLE pre_common_template_permission (
  533. targettplname varchar(100) NOT NULL DEFAULT COMMENT '目标模板',
  534. uid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
  535. allowmanage tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许管理',
  536. allowrecommend tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许推荐',
  537. needverify tinyint(1) NOT NULL DEFAULT '0' COMMENT '推荐需要审核',
  538. inheritedtplname varchar(255) NOT NULL DEFAULT COMMENT '继承自的模板名称',
  539. PRIMARY KEY (targettplname,uid),
  540. KEY uid (uid)
  541. ) ENGINE=MyISAM COMMENT='DIY模板页面权限表';

  542. DROP TABLE IF EXISTS pre_common_block_permission;
  543. CREATE TABLE pre_common_block_permission (
  544. bid mediumint(8) unsigned NOT NULL default '0' COMMENT '模块ID',
  545. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  546. allowmanage tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许管理',
  547. allowrecommend tinyint(1) NOT NULL DEFAULT '0' COMMENT '允许推荐',
  548. needverify tinyint(1) NOT NULL DEFAULT '0' COMMENT '推荐需要审核',
  549. inheritedtplname varchar(255) NOT NULL DEFAULT COMMENT '继承自的模板名称',
  550. PRIMARY KEY (bid, uid),
  551. KEY uid (uid)
  552. ) ENGINE=MyISAM COMMENT='模块权限表';

  553. DROP TABLE IF EXISTS pre_portal_category_permission;
  554. CREATE TABLE pre_portal_category_permission (
  555. catid mediumint(8) unsigned NOT NULL default '0' COMMENT '分类ID',
  556. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  557. allowpublish tinyint(1) NOT NULL default '0' COMMENT '允许发布文章',
  558. allowmanage tinyint(1) NOT NULL default '0' COMMENT '允许管理文章',
  559. inheritedcatid mediumint(8) NOT NULL DEFAULT '0' COMMENT '继承自的频道ID',
  560. PRIMARY KEY (catid, uid),
  561. KEY uid (uid)
  562. ) ENGINE=MyISAM COMMENT='文章分类权限表';

  563. DROP TABLE IF EXISTS pre_portal_category;
  564. CREATE TABLE pre_portal_category (
  565. catid mediumint(8) unsigned NOT NULL auto_increment COMMENT '栏目id',
  566. upid mediumint(8) unsigned NOT NULL default '0' COMMENT '上级栏目id',
  567. catname varchar(255) NOT NULL default COMMENT '标题',
  568. articles mediumint(8) unsigned NOT NULL default '0' COMMENT '文章数',
  569. allowcomment tinyint(1) NOT NULL default '1' COMMENT '是否允许评论',
  570. displayorder smallint(6) NOT NULL default '0' COMMENT '显示顺序',
  571. notinheritedarticle tinyint(1) NOT NULL default '0' COMMENT '是否不继承上级文章管理权限',
  572. notinheritedblock tinyint(1) NOT NULL default '0' COMMENT '是否不继承上级DIY页面和模块权限',
  573. `domain` varchar(255) NOT NULL DEFAULT COMMENT '二级域名',
  574. url varchar(255) NOT NULL DEFAULT COMMENT '自定义链接',
  575. uid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '创建者ID',
  576. username varchar(255) NOT NULL DEFAULT COMMENT '创建者用户名',
  577. dateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  578. closed tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否关闭',
  579. shownav tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否在导航显示',
  580. description text NOT NULL COMMENT '分类介绍 SEO描述',
  581. seotitle text NOT NULL COMMENT 'SEO 标题',
  582. keyword text NOT NULL COMMENT 'SEO 关键字',
  583. primaltplname varchar(255) NOT NULL default COMMENT '列表页原模板地址',
  584. articleprimaltplname varchar(255) NOT NULL default COMMENT '文章页原模板地址',
  585. disallowpublish tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否禁止发布文章',
  586. foldername varchar(255) NOT NULL DEFAULT COMMENT '文件夹名称',
  587. notshowarticlesummay varchar(255) NOT NULL DEFAULT COMMENT '文章内容页是否不显示摘要',
  588. perpage smallint(6) NOT NULL default '0' COMMENT '列表每页显示文章数',
  589. maxpages smallint(6) NOT NULL default '0' COMMENT '列表最大分页数',
  590. PRIMARY KEY (catid)
  591. ) ENGINE=MyISAM COMMENT='门户 文章栏目表';
  592. DROP TABLE IF EXISTS pre_common_process;
  593. CREATE TABLE pre_common_process (
  594. processid char(32) NOT NULL COMMENT '锁名称的md5',
  595. expiry int(10) DEFAULT NULL COMMENT '锁的过期时间',
  596. extra int(10) DEFAULT NULL COMMENT '锁的附属信息',
  597. PRIMARY KEY (processid),
  598. KEY expiry (expiry)
  599. ) ENGINE=MEMORY COMMENT='进程锁管理';
  600. DROP TABLE IF EXISTS pre_common_admincp_group;
  601. CREATE TABLE pre_common_admincp_group (
  602. cpgroupid smallint(6) unsigned NOT NULL AUTO_INCREMENT COMMENT '后台组id',
  603. cpgroupname varchar(255) NOT NULL COMMENT '后台组名称',
  604. PRIMARY KEY (cpgroupid)
  605. ) ENGINE=MyISAM COMMENT='后台管理组';
  606. DROP TABLE IF EXISTS pre_common_admincp_member;
  607. CREATE TABLE pre_common_admincp_member (
  608. uid int(10) unsigned NOT NULL COMMENT '成员uid',
  609. cpgroupid int(10) unsigned NOT NULL COMMENT '成员组id',
  610. customperm text NOT NULL COMMENT '自定义管理权限',
  611. PRIMARY KEY (uid)
  612. ) ENGINE=MyISAM COMMENT='后台管理成员';
  613. DROP TABLE IF EXISTS pre_common_admincp_perm;
  614. CREATE TABLE pre_common_admincp_perm (
  615. cpgroupid smallint(6) unsigned NOT NULL COMMENT '后台组id',
  616. perm varchar(255) NOT NULL COMMENT '后台组权限',
  617. UNIQUE KEY cpgroupperm (cpgroupid,perm)
  618. ) ENGINE=MyISAM COMMENT='后台权限表';
  619. DROP TABLE IF EXISTS pre_common_admincp_session;
  620. CREATE TABLE pre_common_admincp_session (
  621. uid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
  622. adminid smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '管理组id',
  623. panel tinyint(1) NOT NULL DEFAULT '0' COMMENT '面板位置',
  624. ip varchar(15) NOT NULL DEFAULT COMMENT 'IP',
  625. dateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后动作时间',
  626. errorcount tinyint(1) NOT NULL DEFAULT '0' COMMENT '登录错误次数',
  627. storage mediumtext NOT NULL COMMENT '临时内容存储',
  628. PRIMARY KEY (uid,panel)
  629. ) ENGINE=MyISAM COMMENT='后台session表';

  630. DROP TABLE IF EXISTS pre_portal_attachment;
  631. CREATE TABLE pre_portal_attachment (
  632. attachid mediumint(8) unsigned NOT NULL auto_increment COMMENT '附件id',
  633. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  634. dateline int(10) unsigned NOT NULL default '0' COMMENT '上传时间',
  635. filename varchar(255) NOT NULL default COMMENT '原文件名',
  636. filetype varchar(255) NOT NULL default COMMENT '文件类型',
  637. filesize int(10) unsigned NOT NULL default '0' COMMENT '文件大小',
  638. attachment varchar(255) NOT NULL default COMMENT '服务器路径',
  639. isimage tinyint(1) NOT NULL default '0' COMMENT '是否图片',
  640. thumb tinyint(1) unsigned NOT NULL default '0' COMMENT '是否是缩率图',
  641. remote tinyint(1) unsigned NOT NULL default '0' COMMENT '是否远程附件',
  642. aid mediumint(8) unsigned NOT NULL default '0' COMMENT '文章id',
  643. PRIMARY KEY (attachid),
  644. KEY aid (aid,attachid)
  645. ) ENGINE=MyISAM COMMENT='门户文章附件表';

  646. DROP TABLE IF EXISTS pre_portal_article_related;
  647. CREATE TABLE pre_portal_article_related (
  648. aid mediumint(8) unsigned NOT NULL auto_increment COMMENT '文章ID',
  649. raid mediumint(8) unsigned NOT NULL default '0' COMMENT '相关文章ID',
  650. displayorder mediumint(8) unsigned NOT NULL default '0' COMMENT '显示顺序',
  651. PRIMARY KEY (aid,raid),
  652. KEY aid (aid,displayorder)
  653. ) ENGINE=MyISAM COMMENT='门户相关文章';

  654. DROP TABLE IF EXISTS pre_home_specialuser;
  655. CREATE TABLE pre_home_specialuser (
  656. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '用户ID',
  657. username varchar(15) NOT NULL default COMMENT '用户名',
  658. status tinyint(1) unsigned NOT NULL default '0' COMMENT '用户类型0为推荐用户1为默认好友',
  659. dateline int(10) NOT NULL default '0' COMMENT '设置时间',
  660. reason text NOT NULL COMMENT '操作原因',
  661. opuid mediumint(8) unsigned NOT NULL default '0' COMMENT '操作者用户ID',
  662. opusername varchar(15) NOT NULL default COMMENT '操作者用户名',
  663. displayorder mediumint(8) unsigned NOT NULL default '0' COMMENT '显示顺序',
  664. KEY uid (uid,status),
  665. KEY displayorder (status,displayorder)
  666. ) ENGINE=MyISAM COMMENT='特殊用户表';

  667. DROP TABLE IF EXISTS pre_common_district;
  668. CREATE TABLE pre_common_district (
  669. id mediumint(8) unsigned NOT NULL auto_increment COMMENT '地区ID',
  670. `name` varchar(255) NOT NULL default COMMENT '地区名称',
  671. `level` tinyint(4) unsigned NOT NULL default '0' COMMENT '地区等级:1,省级;2,市级;3,县级;4,乡镇',
  672. usetype tinyint(1) unsigned NOT NULL default '0' COMMENT '使用对象:0:都不启用; 1:出生地; 2:居住地; 3:都启用',
  673. upid mediumint(8) unsigned NOT NULL default '0' COMMENT '上级地区ID',
  674. displayorder smallint(6) NOT NULL default '0' COMMENT '显示顺序',
  675. PRIMARY KEY (id),
  676. KEY upid (upid,displayorder)
  677. ) ENGINE=MyISAM COMMENT='地区表';

  678. DROP TABLE IF EXISTS pre_forum_grouplevel;
  679. CREATE TABLE pre_forum_grouplevel (
  680. levelid smallint(6) unsigned NOT NULL auto_increment COMMENT '等级ID',
  681. `type` enum('special','default') NOT NULL default 'default' COMMENT '类型',
  682. leveltitle varchar(255) NOT NULL default COMMENT '群组等级名称',
  683. creditshigher int(10) NOT NULL default '0' COMMENT '该等级的积分上限',
  684. creditslower int(10) NOT NULL default '0' COMMENT '该等级的积分下限',
  685. icon varchar(255) NOT NULL default COMMENT '等级图标',
  686. creditspolicy text NOT NULL COMMENT '积分策略',
  687. postpolicy text NOT NULL COMMENT '帖子策略',
  688. specialswitch text NOT NULL COMMENT '特殊开能开关',
  689. PRIMARY KEY (levelid),
  690. KEY creditsrange (creditshigher,creditslower)
  691. ) ENGINE=MyISAM COMMENT='群组等级表';
  692. DROP TABLE IF EXISTS pre_forum_groupcreditslog;
  693. CREATE TABLE pre_forum_groupcreditslog (
  694. fid mediumint(8) unsigned NOT NULL COMMENT '群组ID',
  695. uid mediumint(8) unsigned NOT NULL COMMENT '成员UID',
  696. logdate int(8) NOT NULL default '0' COMMENT '日期/20100308',
  697. PRIMARY KEY (fid,uid,logdate)
  698. ) ENGINE=MyISAM COMMENT='群组积分日志表';

  699. DROP TABLE IF EXISTS pre_home_blog_category;
  700. CREATE TABLE pre_home_blog_category (
  701. catid mediumint(8) unsigned NOT NULL auto_increment COMMENT '栏目id',
  702. upid mediumint(8) unsigned NOT NULL default '0' COMMENT '上级栏目id',
  703. catname varchar(255) NOT NULL default COMMENT '标题',
  704. num mediumint(8) unsigned NOT NULL default '0' COMMENT '日志数',
  705. displayorder smallint(6) NOT NULL default '0' COMMENT '显示顺序',
  706. PRIMARY KEY (catid)
  707. ) ENGINE=MyISAM COMMENT='日志系统栏目';

  708. DROP TABLE IF EXISTS pre_home_album_category;
  709. CREATE TABLE pre_home_album_category (
  710. catid mediumint(8) unsigned NOT NULL auto_increment COMMENT '栏目id',
  711. upid mediumint(8) unsigned NOT NULL default '0' COMMENT '上级栏目id',
  712. catname varchar(255) NOT NULL default COMMENT '标题',
  713. num mediumint(8) unsigned NOT NULL default '0' COMMENT '相册数',
  714. displayorder smallint(6) NOT NULL default '0' COMMENT '显示顺序',
  715. PRIMARY KEY (catid)
  716. ) ENGINE=MyISAM COMMENT='相册系统栏目';

  717. DROP TABLE IF EXISTS pre_common_report;
  718. CREATE TABLE pre_common_report (
  719. id mediumint(8) unsigned NOT NULL auto_increment COMMENT '记录id',
  720. urlkey char(32) NOT NULL default COMMENT '地址md5',
  721. url varchar(255) NOT NULL default COMMENT '地址',
  722. message text NOT NULL COMMENT '举报理由',
  723. uid mediumint(8) unsigned NOT NULL default '0' COMMENT '会员id',
  724. username varchar(15) NOT NULL default COMMENT '用户名',
  725. dateline int(10) unsigned NOT NULL default '0' COMMENT '举报时间',
  726. num smallint(6) unsigned NOT NULL default '1' COMMENT '举报次数',
  727. opuid mediumint(8) unsigned NOT NULL default '0' COMMENT '管理员id',
  728. opname varchar(15) NOT NULL default COMMENT '管理员姓名',
  729. optime int(10) unsigned NOT NULL default '0' COMMENT '处理时间',
  730. opresult varchar(255) NOT NULL default COMMENT '对举报人的奖惩',
  731. fid mediumint(8) unsigned NOT NULL default '0' COMMENT '论坛id',
  732. PRIMARY KEY (id),
  733. KEY urlkey (urlkey),
  734. KEY fid (fid)
  735. ) ENGINE=MyISAM COMMENT='用户举报表';

  736. DROP TABLE IF EXISTS pre_common_patch;
  737. CREATE TABLE pre_common_patch (
  738. serial varchar(10) NOT NULL default COMMENT '漏洞编号',
  739. rule text NOT NULL COMMENT '修补规则',
  740. note text NOT NULL COMMENT '漏洞说明',
  741. `status` tinyint(1) NOT NULL default '0' COMMENT '修补状态',
  742. dateline int(10) unsigned NOT NULL default '0' COMMENT '漏洞发布时间',
  743. PRIMARY KEY (serial)
  744. ) ENGINE=MyISAM COMMENT='漏洞补丁表';

  745. DROP TABLE IF EXISTS pre_forum_collection;
  746. CREATE TABLE pre_forum_collection (
  747. ctid mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '专辑ID',
  748. uid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
  749. username varchar(15) NOT NULL DEFAULT COMMENT '用户名',
  750. `name` varchar(50) NOT NULL DEFAULT COMMENT '专辑名',
  751. dateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  752. follownum mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '订阅数',
  753. threadnum mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '主题数',
  754. commentnum mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '评论数',
  755. `desc` varchar(255) NOT NULL DEFAULT COMMENT '简介',
  756. lastupdate int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后变动时间',
  757. rate float NOT NULL DEFAULT '0' COMMENT '评分',
  758. ratenum mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '评分次数',
  759. lastpost mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '最后主题ID',
  760. lastsubject varchar(80) NOT NULL DEFAULT COMMENT '最后主题标题',
  761. lastposttime int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后主题时间',
  762. lastposter varchar(15) NOT NULL DEFAULT COMMENT '最后主题发帖者',
  763. lastvisit int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建者最后访问',
  764. `keyword` varchar(255) NOT NULL DEFAULT COMMENT '专辑关键词',
  765. PRIMARY KEY (ctid),
  766. KEY dateline (dateline),
  767. KEY hotcollection (threadnum,lastupdate),
  768. KEY follownum (follownum)
  769. ) ENGINE=MyISAM COMMENT='淘帖专辑表';

  770. DROP TABLE IF EXISTS pre_forum_collectioncomment;
  771. CREATE TABLE pre_forum_collectioncomment (
  772. cid mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '评论ID',
  773. ctid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '专辑ID',
  774. uid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
  775. username varchar(15) NOT NULL DEFAULT COMMENT '用户名',
  776. message text NOT NULL COMMENT '评论内容',
  777. dateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '评论时间',
  778. useip varchar(16) NOT NULL DEFAULT COMMENT 'IP地址',
  779. rate float NOT NULL DEFAULT '0' COMMENT '评分',
  780. PRIMARY KEY (cid),
  781. KEY ctid (ctid,dateline),
  782. KEY userrate (ctid,uid,rate)
  783. ) ENGINE=MyISAM COMMENT='淘帖评论表';

  784. DROP TABLE IF EXISTS pre_forum_collectionfollow;
  785. CREATE TABLE pre_forum_collectionfollow (
  786. uid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
  787. username char(15) NOT NULL DEFAULT COMMENT '用户名',
  788. ctid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '专辑ID',
  789. dateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '关注时间',
  790. lastvisit int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后访问专辑时间',
  791. PRIMARY KEY (uid,ctid),
  792. KEY ctid (ctid,dateline)
  793. ) ENGINE=MyISAM COMMENT='淘帖关注表';

  794. DROP TABLE IF EXISTS pre_forum_collectioninvite;
  795. CREATE TABLE pre_forum_collectioninvite (
  796. ctid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '专辑ID',
  797. uid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '邀请合作者ID',
  798. dateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '邀请时间',
  799. PRIMARY KEY (ctid,uid),
  800. KEY dateline (dateline)
  801. ) ENGINE=MyISAM COMMENT='邀请管理淘专辑';

  802. DROP TABLE IF EXISTS pre_forum_collectionrelated;
  803. CREATE TABLE pre_forum_collectionrelated (
  804. tid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '主题ID',
  805. collection text NOT NULL COMMENT '专辑列表',
  806. PRIMARY KEY (tid)
  807. ) ENGINE=MyISAM COMMENT='淘帖主题被收入专辑表';

  808. DROP TABLE IF EXISTS pre_forum_collectionteamworker;
  809. CREATE TABLE pre_forum_collectionteamworker (
  810. ctid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '专辑ID',
  811. uid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '合作者ID',
  812. `name` varchar(50) NOT NULL DEFAULT COMMENT '专辑名',
  813. username varchar(15) NOT NULL DEFAULT COMMENT '用户名',
  814. lastvisit int(8) unsigned NOT NULL DEFAULT '0' COMMENT '最后访问专辑时间',
  815. PRIMARY KEY (ctid,uid)
  816. ) ENGINE=MyISAM COMMENT='淘帖合作编辑表';

  817. DROP TABLE IF EXISTS pre_forum_collectionthread;
  818. CREATE TABLE pre_forum_collectionthread (
  819. ctid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '专辑ID',
  820. tid mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '专辑内主题ID',
  821. dateline int(10) unsigned NOT NULL DEFAULT '0' COMMENT '主题日期',
  822. reason varchar(255) NOT NULL DEFAULT COMMENT '推荐理由',
  823. PRIMARY KEY (ctid,tid),
  824. KEY ctid (ctid,dateline)
  825. ) ENGINE=MyISAM COMMENT='淘帖包含主题表';
复制代码
回复

使用道具 举报

12153556 发表于 2012-8-6 09:36:44 | 显示全部楼层
不错,有了这些字典,可以很方便的解决问题
回复

使用道具 举报

┑伈随风飞ⅹ 发表于 2012-8-6 10:16:19 | 显示全部楼层
收藏一个
回复

使用道具 举报

zhengweisk 发表于 2012-9-8 17:52:42 | 显示全部楼层
kkkkkkkkkkkkkk
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-24 16:26 , Processed in 0.045670 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表