用户表(cdb_members)
CREATE TABLE IF NOT EXISTS `cdb_members` (
`uid` mediumint(8) unsigned NOT NULL auto_increment COMMENT '用户ID号',
`username` char(15) NOT NULL default '' COMMENT '用户昵称',
`password` char(32) NOT NULL default '' COMMENT '用户密码',
`secques` char(8) NOT NULL default '' COMMENT '安全提问信息',
`gender` tinyint(1) NOT NULL default '0' COMMENT '性别',
`adminid` tinyint(1) NOT NULL default '0' COMMENT '管理组id(1管理员2总斑竹 3斑竹 0否 1特殊组)',
`groupid` smallint(6) unsigned NOT NULL default '0' COMMENT '用户组id',
`groupexpiry` int(10) unsigned NOT NULL default '0' COMMENT '用户组有效期',
`extgroupids` char(20) NOT NULL default '' COMMENT '扩展用户组',
`regip` char(15) NOT NULL default '' COMMENT '注册时ip记录',
`regdate` int(10) unsigned NOT NULL default '0' COMMENT '注册日期',
`lastip` char(15) NOT NULL default '' COMMENT '上次访问ip记录',
`lastvisit` int(10) unsigned NOT NULL default '0' COMMENT '上次访问日期',
`lastactivity` int(10) unsigned NOT NULL default '0' COMMENT '最后活动时间',
`lastpost` int(10) unsigned NOT NULL default '0' COMMENT '最后发表日期',
`posts` mediumint(8) unsigned NOT NULL default '0' COMMENT '发帖总数',
`digestposts` smallint(6) unsigned NOT NULL default '0' COMMENT '精华帖数',
`oltime` smallint(5) unsigned NOT NULL default '0' COMMENT '在线时间',
`pageviews` mediumint(8) unsigned NOT NULL default '0' COMMENT '页面访问量',
`credits` int(10) NOT NULL default '0' COMMENT '用户积分',
`extcredits1` int(10) NOT NULL default '0' COMMENT '预留扩展积分1',
`extcredits2` int(10) NOT NULL default '0' COMMENT '预留扩展积分2',
`extcredits3` int(10) NOT NULL default '0' COMMENT '预留扩展积分3',
`extcredits4` int(10) NOT NULL default '0' COMMENT '预留扩展积分4',
`extcredits5` int(10) NOT NULL default '0' COMMENT '预留扩展积分5',
`extcredits6` int(10) NOT NULL default '0' COMMENT '预留扩展积分6',
`extcredits7` int(10) NOT NULL default '0' COMMENT '预留扩展积分7',
`extcredits8` int(10) NOT NULL default '0' COMMENT '预留扩展积分8',
`email` char(40) NOT NULL default '' COMMENT '用户邮箱',
`bday` date NOT NULL default '0000-00-00' COMMENT '生日',
`sigstatus` tinyint(1) NOT NULL default '0' COMMENT '签名是否改动',
`tpp` tinyint(3) unsigned NOT NULL default '0' COMMENT '每页显示主题数',
`ppp` tinyint(3) unsigned NOT NULL default '0' COMMENT '每页显示帖子数',
`styleid` smallint(5) unsigned NOT NULL default '0' COMMENT '个性定义风格id',
`dateformat` tinyint(1) NOT NULL default '0' COMMENT '个性日期格式',
`timeformat` tinyint(1) NOT NULL default '0' COMMENT '个性时间格式',
`pmsound` tinyint(1) NOT NULL default '0' COMMENT '短消息提示音',
`showemail` tinyint(1) NOT NULL default '0' COMMENT '是否公开email地址',
`newsletter` tinyint(1) NOT NULL default '0' COMMENT '是否接受论坛通知',
`invisible` tinyint(1) NOT NULL default '0' COMMENT '是否隐身登录',
`timeoffset` char(4) NOT NULL default '' COMMENT '时区校正',
`prompt` tinyint(1) NOT NULL default '0' COMMENT '新短消息和进行中任务的提示信息',
`accessmasks` tinyint(1) NOT NULL default '0' COMMENT '权限屏蔽(见ACCESS表)',
`editormode` tinyint(1) unsigned NOT NULL default '2' COMMENT '编辑器模式模式',
`customshow` tinyint(1) unsigned NOT NULL default '26' COMMENT '自定义显示设置(图片+1,头像+3,签名+9,数值=前三项相加)',
`xspacestatus` tinyint(1) NOT NULL default '0' COMMENT 'XSPACE状态(SS相关)',
`customaddfeed` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`uid`),
UNIQUE KEY `username` (`username`),
KEY `email` (`email`),
KEY `groupid` (`groupid`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=4 ;
-- 表的结构 `cdb_access`
--
CREATE TABLE IF NOT EXISTS `cdb_access` (
`uid` mediumint(8) unsigned NOT NULL default '0' COMMENT '用户id',
`fid` smallint(5) unsigned NOT NULL default '0' COMMENT '论坛id',
`allowview` tinyint(1) NOT NULL default '0' COMMENT '允许浏览',
`allowpost` tinyint(1) NOT NULL default '0' COMMENT '允许发新帖',
`allowreply` tinyint(1) NOT NULL default '0' COMMENT '允许回复',
`allowgetattach` tinyint(1) NOT NULL default '0' COMMENT '允许下载附件',
`allowpostattach` tinyint(1) NOT NULL default '0' COMMENT '允许上传附件',
`adminuser` mediumint(8) unsigned NOT NULL default '0' COMMENT '编辑管理员ID',
`dateline` int(10) unsigned NOT NULL default '0' COMMENT '编辑时间',
PRIMARY KEY (`uid`,`fid`),
KEY `listorder` (`fid`,`dateline`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
-- 表的结构 `cdb_admingroups`
--
CREATE TABLE IF NOT EXISTS `cdb_admingroups` (
`admingid` smallint(5) unsigned NOT NULL default '0' COMMENT '用户组ID',
`alloweditpost` tinyint(1) NOT NULL default '0' COMMENT '允许编辑帖子',
`alloweditpoll` tinyint(1) NOT NULL default '0' COMMENT '允许编辑投票',
`allowstickthread` tinyint(1) NOT NULL default '0' COMMENT '允许固定主题',
`allowmodpost` tinyint(1) NOT NULL default '0' COMMENT '允许编辑帖子',
`allowdelpost` tinyint(1) NOT NULL default '0' COMMENT '允许删除帖子',
`allowmassprune` tinyint(1) NOT NULL default '0' COMMENT '允许批量删除帖子',
`allowrefund` tinyint(1) NOT NULL default '0' COMMENT '允许强制退款',
`allowcensorword` tinyint(1) NOT NULL default '0' COMMENT '允许过滤词语',
`allowviewip` tinyint(1) NOT NULL default '0' COMMENT '允许查看用户IP信息',
`allowbanip` tinyint(1) NOT NULL default '0' COMMENT '允许禁止IP',
`allowedituser` tinyint(1) NOT NULL default '0' COMMENT '允许编辑用户',
`allowmoduser` tinyint(1) NOT NULL default '0' COMMENT '允许审核用户',
`allowbanuser` tinyint(1) NOT NULL default '0' COMMENT '允许禁止用户访问',
`allowpostannounce` tinyint(1) NOT NULL default '0' COMMENT '允许发布公告',
`allowviewlog` tinyint(1) NOT NULL default '0' COMMENT '允许查看版主管理记录和用户评分记录',
`allowbanpost` tinyint(1) NOT NULL default '0' COMMENT '允许屏蔽帖子',
`disablepostctrl` tinyint(1) NOT NULL default '0' COMMENT '发贴不受限制(不受灌水预防和最大字数等)',
`supe_allowpushthread` tinyint(1) NOT NULL default '0' COMMENT '允许推送主题到SS',
PRIMARY KEY (`admingid`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;