-- TableName pw_weibo_bind 用户微博绑定关系表
-- Created By phpwind@2011-3-28
-- Fields uid 用户id
-- Fields weibotype 绑定的微博类型
-- Fields info 绑定信息
DROP TABLE IF EXISTS pw_weibo_bind;
CREATE TABLE IF NOT EXISTS `pw_weibo_bind` (
`uid` int(10) unsigned NOT NULL default '0',
`weibotype` varchar(20) NOT NULL,
`info` text NOT NULL,
UNIQUE KEY `uid_weibotype` (`uid`,`weibotype`)
)
TYPE=MyISAM;
-- TableName pw_log_setting 日志配置表
-- Created By phpwind@2011-3-25
-- Fields id 主键ID
-- Fields vector 向量
-- Fields cipher 密钥
-- Fileds field1 扩展1
-- Fileds field2 扩展2
-- Fileds field3 扩展3
-- Fileds field4 扩展4
DROP TABLE IF EXISTS pw_log_setting;
CREATE TABLE pw_log_setting(
id int(10) unsigned not null auto_increment,
vector varchar(255) not null default '',
cipher varchar(255) not null default '',
field1 varchar(255) not null default '',
field2 varchar(255) not null default '',
field3 int(10) unsigned not null default '0',
field4 int(10) unsigned not null default '0',
primary key(id)
)ENGINE=MyISAM;
-- TableName pw_auth_certificate 证件认证表
-
- Created By zhangpeihong@2011-02-23
-- Fields id 主键ID
-- Fields uid 用户ID
-- Fields type 证件类型
-- Fields number 证件号码
-- Fields attach1 证件图片正面
-- Fields attach2 证件图片反面
-- Fields createtime 提交认证时间
-- Fields admintime 管理员操作时间
-- Fields state 审核状态
DROP TABLE IF EXISTS pw_auth_certificate;
CREATE TABLE IF NOT EXISTS `pw_auth_certificate` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uid` int(10) NOT NULL DEFAULT '0',
`type` tinyint(3) NOT NULL DEFAULT '0',
`number` char(32) NOT NULL DEFAULT '',
`attach1` varchar(80) NOT NULL DEFAULT '',
`attach2` varchar(80) NOT NULL DEFAULT '',
`createtime` int(10) NOT NULL DEFAULT '0',
`admintime` int(10) NOT NULL DEFAULT '0',
`state` tinyint(3) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `idx_uid` (`uid`),
KEY `idx_state` (`state`)
) ENGINE=MyISAM;
-- TableName pw_user_career 用户工作经历表
-- Created By phpwind@2010-12-28
-- Fields careerid 主键ID
-- Fields uid 用户uid
-- Fields companyid 公司ID
-- Fields starttime 开始时间
DROP TABLE IF EXISTS pw_user_career;
CREATE TABLE `pw_user_career` (
`careerid` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`uid` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`companyid` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`starttime` INT(11) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`careerid`),
KEY `idx_uid_companyid` (`uid`,`companyid`)
) ENGINE = MYISAM;
-- TableName pw_user_education 用
户教育经历表
-- Created By phpwind@2010-12-28
-- Fields educationid 主键ID
-
- Fields uid 用户uid
-- Fields schoolid 学校ID
-- Fields educationlevel 级别
-- Fields starttime 开始时间
DROP TABLE IF EXISTS pw_user_education;
CREATE TABLE `pw_user_education` (
`educationid` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`uid` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`schoolid` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`educationlevel` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`starttime` INT(11) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`educationid`),
KEY `idx_uid_schoolid` (`uid`,`schoolid`)
) ENGINE = MYISAM ;
-- TableName pw_company 公司表
-- Created By phpwind@2010-12-28
-- Fields companyid 主键ID
-- Fields companyname 名称
DROP TABLE IF EXISTS pw_company;
CREATE TABLE `pw_company` (
`companyid` int(11) unsigned NOT NULL AUTO_INCREMENT ,
`companyname` VARCHAR(60) NOT NULL DEFAULT '',
PRIMARY KEY (`companyid`),
UNIQUE KEY `idx_companyname` (`companyname`)
) ENGINE = MYISAM;
-- TableName pw_school 学校表
-- Created By phpwind@2010-12-28
-- Fields schoolid 主键ID
-- Fields name 名称
-- Fields areaid 地区ID
-- Fields type 分类 1大学2中学3小学
DROP TABLE IF EXISTS pw_school;
CREATE TABLE `pw_school` (
`schoolid` int(11) unsigned NOT NULL AUTO_INCREMENT,
`schoolname` VARCHAR(32) NOT NULL DEFAULT '',
`areaid` int(11) NOT NULL DEFAULT '0',
`type` tinyint(3) NOT NULL DEFAULT '0',
PRIMARY KEY (`schoolid`),
KEY `idx_areaid_type` (`areaid`,`type`)
) ENGINE = MYISAM;
-- TableName pw_threads_img 图酷贴表
-- Created By phpwind@2010-12-28
-- Fields tid 帖子ID
-- Fields fid 板块ID
-
- Fields tpcnum 主楼图片数
-- Fields totalnum 总图片数
-- Fields collectnum 收藏数
-- Fields cover 封面
DROP TABLE IF EXISTS pw_threads_img;
CREATE TABLE `pw_threads_img` (
`tid` int(10) unsigned NOT NULL,
`fid` smallint(6) unsigned NOT NULL DEFAULT '0',
`tpcnum` smallint(5) unsigned NOT NULL DEFAULT '0',
`totalnum` smallint(5) unsigned NOT NULL DEFAULT '0',
`collectnum` mediumint(8) unsigned NOT NULL DEFAULT '0',
`cover` varchar(80) NOT NULL DEFAULT '',
PRIMARY KEY (`tid`),
KEY `idx_fid_tid` (`fid`,`tid`),
KEY `idx_fid_totalnum` (`fid`,`totalnum`)
) ENGINE=MyISAM ;
-- TableName pw_areas 地区表
-- Created By phpwind@2010-12-28
-- Fields areaid 主键ID
-- Fields name 名称
-- Fields parentid 上级ID
-- Fields vieworder 排序
DROP TABLE IF EXISTS pw_areas;
CREATE TABLE `pw_areas` (
`areaid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL DEFAULT '',
`joinname` varchar(150) NOT NULL DEFAULT '',
`parentid` mediumint(8) unsigned NOT NULL DE
FAULT '0',
`vieworder` smallint(6) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`areaid`),
KEY `idx_name` (`name`),
KEY `idx_parentid_vieworder` (`parentid`,`vieworder`)
)
ENGINE=MyISAM ;
-- TableName pw_weibo_topics 话题
-- Created By phpwind@2010-12-28
-- Fields topicid 主键ID
-- Fields topicname 话题名称
-- Fields num 使用数量
-- Fields ifhot 是否允许热门话题
-- Fields crtime 创建时间
-- Fields lasttime 最后操作时间
DROP TABLE IF EXISTS pw_weibo_topics;
CREATE TABLE `pw_weibo_topics` (
`topicid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`topicname` varchar(255) NOT NULL DEFAULT '',
`num` int(10) unsigned NOT NULL DEFAULT '0',
`ifhot` tinyint(3) NOT NULL DEFAULT '1',
`crtime` int(10) NOT NULL DEFAULT '0',
`lasttime` int(10) NOT NULL DEFAULT '0',
PRIMARY KEY (`topicid`),
UNIQUE KEY `idx_topicname` (`topicname`),
KEY `idx_crtime_ifhot` (`crtime`,`ifhot`)
) ENGINE=MyISAM;
-- TableName pw_weibo_topicrelations 话题-新鲜事关系表
-
- Created By phpwind@2010-12-28
-- Fields topicid 话题ID
-- Fields mid 新鲜事ID
-- Fields crtime 创建时间
DROP TABLE IF EXISTS pw_weibo_topicrelations;
CREATE TABLE `pw_weibo_topicrelations` (
`topicid` int(10) unsigned NOT NULL DEFAULT '0',
`mid` int(10) unsigned NOT NULL DEFAULT '0',
`crtime` int(10) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `idx_topicid_mid` (`topicid`,`mid`),
KEY `idx_mid` (`mid`),
KEY `idx_crtime` (`crtime`)
) ENGINE=MyISAM;
-- TableName pw_weibo_topicattention 关注的话题
-- Created By phpwind@2010-12-28
-- Fields userid 用户ID
-- Fields topicid 话题ID
-- Fields crtime 创建时间
-- Fields lasttime 最后操作时间
DROP TABLE IF EXISTS pw_weibo_topicattention;
CREATE TABLE `pw_weibo_topicattention` (
`userid` int(10) unsigned NOT NULL DEFAULT '0',
`topicid` int(10) unsigned NOT NULL DEFAULT '0',
`crtime` int(10) unsigned NOT NULL DEFAULT '0',
`lasttime` int(10) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `idx_userid_topicid` (`userid`,`topicid`)
) ENGINE=MyISAM;
-- TableName pw_membertags_relations 用户标签
-- Created By phpwind@2010-12-28
-- Fields tagid 标签ID
-- Fields userid 用户ID
-- Fields crtime 创建时间
DROP TABLE IF EXISTS pw_membertags_relations;
CREATE TABLE `pw_membertags_relations` (
`tagid` int(10) unsigned NOT NULL DEFAULT '0',
`userid` int(10) unsigned NOT NULL DEFAULT '0',
`crtime` int(10) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `idx_tagid_userid` (`tagid`,`userid`),
KEY `idx_userid` (`userid`),
KEY `idx_crtime` (`crtime`)
) ENGINE=MyISAM;
-- TableName pw_membertags 个人标签表
--
Created By phpwind@2010-12-28
-
- Fields tagid 主键ID
-- Fields tagname 标签名
-- Fields num 使用数量
-- Fields ifhot 是否允许为热门标签
DROP TABLE IF EXISTS pw_membertags;
CREATE TABLE `pw_membertags` (
`tagid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`tagname` varchar(32) NOT NULL DEFAULT '',
`num` int(10) unsigned NOT NULL DEFAULT '0',
`ifhot` tinyint(3) NOT NULL DEFAULT '1',
PRIMARY KEY (`tagid`),
UNIQUE KEY `idx_tagname` (`tagname`),
KEY `idx_ifhot_num` (`ifhot`,`num`)
) ENGINE=MyISAM;
-- TableName pw_log_forums 组操作日志表
-- Created By phpwind@2010-01-21
-- Fields id 版块ID
-- Fields sid 版块ID
-- Fields operate 操作码
DROP TABLE IF EXISTS pw_log_forums;
CREATE TABLE pw_log_forums(
id int(10) unsigned not null auto_increment,
sid int(10) unsigned not null default '0',
operate tinyint(3) not null default '1',
modified_time int(10) unsigned not null default '0',
primary key(id),
unique key idx_sid_operate(sid,operate)
)ENGINE=MyISAM;
-- TableName pw_searchhotwords 热门关键字
-- Created By phpwind@2011-01-19
-- Fields id 主键ID
-- Fields keyword 关键字
-- Fields vieworder 显示顺序
-
- Fields fromtype 来源类型
-- Fields posttime 发表时间
-- Fields expire 有效时间
DROP TABLE IF EXISTS pw_searchhotwords;
CREATE TABLE IF NOT EXISTS `pw_searchhotwords` (
id mediumint(8) unsigned not null auto_increment,
keyword varchar(32) not null default '',
vieworder tinyint(3) not null default '0',
fromtype enum('custom','auto') not null default 'custom',
posttime int(10) unsigned not null default '0',
expire int(10) unsigned not null default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
-- TableName pw_hits_threads 帖子点击率表
-- Created By phpwind@2010-1-18
-- Fields tid 帖子id
-- Fields hits 点击数
DROP TABLE IF EXISTS pw_hits_threads;
CREATE TABLE pw_hits_threads (
tid int(10) unsigned NOT NULL DEFAULT '0',
hits int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (tid)
)
ENGINE=MyISAM;
-- TableName pw_cache_distribute 分布式缓存表
-- Created By phpwind@2011-01-11
-- Fields ckey key
-- Fields cvalue value
-- Fields expire 有效时间
DROP TABLE IF EXISTS pw_cache_distribute;
CREATE TABLE pw_cache_distribute (
ckey char(32) not null default '',
cvalue text not null,
typeid tinyint(3) not null default '0',
expire int(10) unsigned not null default '0',
primary key (ckey)
) ENGINE=MyISAM;
-- TableName pw_online_statistics 在线统计表
-- Created By phpwind@2010-12-08
-- Fields name 统计的名称
-- Fields value 统计的值
-- Fields lastupdate 最后统计时间
DROP TABLE IF EXISTS pw_online_statistics;
CREATE TABLE pw_online_st
atistics (
name char(30) NOT NULL DEFAULT '',
value int(10) unsigned NOT NULL DEFAULT '0',
lastupdate int(10) NOT NULL DEFAULT '0',
PRIMARY KEY (name)
) ENGINE=MyISAM;
-- TableName pw_online_guest 在线游客表
-- Created By phpwind@2010-12-08
-- Fields guestid 游客ID
-- Fields lastvisit 最后访问时间
-- Fields fid 版块id
-- Fields tid 帖子id
-
- Fields action 目前所处位置 index,thread,read,cate,mode,other
-- Fields ifhide 是否隐身
DROP TABLE IF EXISTS pw_online_guest;
CREATE TABLE pw_online_guest (
ip int(10) NOT NULL DEFAULT '0',
token tinyint unsigned NOT NULL DEFAULT '0',
lastvisit int(10) NOT NULL DEFAULT '0',
fid smallint(6) NOT NULL DEFAULT '0',
tid int(10) NOT NULL DEFAULT '0',
action tinyint(3) NOT NULL DEFAULT '0',
ifhide tinyint(1) NOT NULL DEFAULT '0',
primary key (ip, token),
KEY idx_ip(ip)
) ENGINE=MEMORY;
-- TableName pw_online_user 在线用户表
-- Created By phpwind@2010-12-08
-- Fields uid 用户ID
-- Fields username 用户名
-- Fields lastvisit 最后访问时间
-- Fields ip ip地址
-- Fields fid 版块id
-- Fields tid 帖子id
-
- Fields action 目前所处位置 index,thread,read,cate,mode,other
-- Fields ifhide 是否隐身
DROP TABLE IF EXISTS pw_online_user;
CREATE TABLE pw_online_user (
uid int(10) unsigned NOT NULL default '0',
username char(15) NOT NULL DEFAULT '',
lastvisit int(10) NOT NULL DEFAULT '0',
ip int(10) NOT NULL default '0',
fid smallint(6) unsigned NOT NULL DEFAULT '0',
tid int(10) unsigned NOT NULL DEFAULT '0',
groupid tinyint(3) NOT NULL DEFAULT '0',
action tinyint(3) NOT NULL DEFAULT '0',
ifhide tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (uid),
KEY idx_fid (fid)
) ENGINE=MEMORY;
-- TableName pw_searchadvert 搜索广告
-- Created By phpwind@2010-12-08
-- Fields id 主键ID
-- Fields keyword 关键词
-- Fields starttime 开始时间
-- Fields endtime 结束时间
-
- Fields code 代码块
-- Fields ifshow 是否启用
-- Fields orderby 顺序
-- Fields config 扩展配置
DROP TABLE IF EXISTS pw_searchadvert;
CREATE TABLE IF NOT EXISTS `pw_searchadvert` (
`id` mediumint(8) unsigned not null auto_increment,
`keyword` varchar(32) not null default '',
`starttime` int(10) unsigned not null default '0',
`endtime` int(10) unsigned not null default '0',
`code` text not null,
`ifshow` tinyint(3) unsigned not null default '0',
`orderby` tinyint(3) unsigned not null default '0',
`config` text not null,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
-- TableName pw_searchforum 搜索推荐版块
-- Created By phpwind@2010-12-08
-- Fields id 主键ID
-- Fields fid 版块id
-- Fields vieworder 排序
DROP TABLE IF EXIS
TS pw_searchforum;
CREATE TABLE IF NOT EXISTS `pw_searchforum` (
`id` smallint(6) unsigned not null auto_increment,
`fid` smallint(6) unsigned not null default '0',
`vieworder` smallint(6) not null default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
-- TableName pw_statistics_daily 统计表
-- Created By phpwind@2010-11-26
-- Fields id 主键ID
-- Fields name 统计名drop table if exists user
-
- Fields typeid 统计项ID
-- Fields date 统计日期
-- Fields value 统计值
-- Fields updatetime 统计更新时间
CREATE TABLE IF NOT EXISTS `pw_statistics_daily` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` char(32) NOT NULL DEFAULT '',
`typeid` int(6) UNSIGNED NOT NULL DEFAULT '0',
`date` date NOT NULL DEFAULT '0000-00-00',
`value` int(11) UNSIGNED NOT NULL DEFAULT '0',
`updatetime` int(11) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `idx_name_date_typeid` (`name`,`date`,`typeid`)
) ENGINE=MyISAM AUTO_INCREMENT=1 ;
-- TableName pw_searchstatistic 搜索统计表
-- Created By phpwind@2010-11-16
-- Fields id 主键ID
-- Fields keyword 关键词
-- Fields num 统计次数
-- Fields created_time 创建时间
DROP TABLE IF EXISTS pw_searchstatistic;
CREATE TABLE IF NOT EXISTS `pw_searchstatistic` (
`id` int(10) unsigned not null auto_increment,
`keyword` varchar(32) not null default '',
`num` mediumint(8) not null default '0',
`created_time` int(10) not null default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
-- TableName pw_attachdownload 版块下载附件扣除积分记录
-- Created By xufazhang@2010-11-8
-- Fields aid 附件编号
-- Fields uid 用户编号
-- Fields ctype 扣除积分类型
-
- Fields cost 扣除积分值
-- Fields createdate 扣除积分时间
CREATE TABLE IF NOT EXISTS `pw_attachdownload` (
`aid` int(10) unsigned NOT NULL,
`uid` int(10) unsigned NOT NULL,
`ctype` varchar(20) NOT NULL DEFAULT '0',
`cost` smallint(6) unsigned NOT NULL default '0',
`createdtime` int(10) NOT NULL DEFAULT '0',
PRIMARY KEY (`aid`,`uid`)
) ENGINE=MyISAM;
-- TableName pw_cache_members 缓存存储表
-
- Created By phpwind@2010-11-23
-- Fields ckey key
-- Fields cvalue value
-- Fields expire 有效时间
CREATE TABLE pw_cache_members(
ckey char(32) not null default '',
cvalue text not null,
expire int(10) unsigned not null default '0',
primary key (ckey)
)ENGINE=MyISAM;
-- TableName pw_delta_diarys 实时索引表-日志
-
- Created By phpwind@2010-11-20
-- Fields id 主键ID(如tid,uid,did,pid)
-- Fields state 状态 0/1(可自定义)
CREATE TABLE pw_delta_diarys(
id int(10) unsigned not null auto_increment,
state tinyint(3) unsigned not null default 0,
primary key (id)
)ENGINE=MyISAM;
-- TableName pw_delta_posts 实时索引表-回复
-- Crea
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论