功能:
推荐小说
我的消息
我的关注管理
我的书架管理
最近阅读管理
我的评论管理
个人信息管理
修改密码
小说列表
小说目录
小说内容
小说评价
小说催更
小说评分
小说排行
小说推荐票
章节点赞
数据库分析
小说分类表
DROP TABLE IF EXISTS `jp_category`;
CREATE TABLE `jp_category` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '分类ID',
`title` varchar(50) NOT NULL DEFAULT '' COMMENT '标题',
`pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '上级分类ID',
`sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序(同级有效)',
`meta_title` varchar(50) NOT NULL DEFAULT '' COMMENT 'SEO的网页标题',
`meta_keywords` varchar(255) NOT NULL DEFAULT '' COMMENT '关键字',
`meta_description` varchar(255) NOT NULL DEFAULT '' COMMENT '描述',
`icon` varchar(255) NOT NULL DEFAULT '' COMMENT '图标',
`template_index` varchar(100) DEFAULT NULL COMMENT '频道页模板',
`template_detail` varchar(100) DEFAULT NULL COMMENT '详情页模板',
`template_filter` varchar(100) DEFAULT NULL COMMENT '筛选页模板',
`link` varchar(255) NOT NULL DEFAULT '' COMMENT '外链地址',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`status` tinyint(3) NOT NULL DEFAULT '1' COMMENT '数据状态',
`type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '分类模型',
PRIMARY KEY (`id`),
KEY `pid` (`pid`)
) ENGINE=MyISAM AUTO_INCREMENT=42 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='分类表';
小说列表
-- ----------------------------
-- Table structure for jp_novel
-- ----------------------------
DROP TABLE IF EXISTS `jp_novel`;
CREATE TABLE `jp_novel` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`category` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '所属分类',
`title` char(80) NOT NULL DEFAULT '' COMMENT '名称',
`author` char(120) DEFAULT NULL COMMENT '作者',
`pic` varchar(255) DEFAULT NULL COMMENT '图片',
`content` text COMMENT '说明',
`tag` varchar(255) DEFAULT NULL COMMENT '标签',
`up` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '顶',
`down` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '踩',
`hits` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '浏览数量',
`rating` char(10) NOT NULL DEFAULT '0' COMMENT '评分',
`rating_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '评分人数',
`serialize` tinyint(2) DEFAULT '0' COMMENT '连载',
`favorites` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '收藏',
`position` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '推荐位',
`template` varchar(100) DEFAULT NULL COMMENT '模板',
`link` varchar(255) DEFAULT NULL COMMENT '外链地址',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`reurl` char(255) DEFAULT NULL COMMENT '来源',
`status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态',
`hits_day` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '日浏览',
`hits_week` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '周浏览',
`hits_month` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '月浏览',
`hits_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '浏览时间',
`word` int(11) DEFAULT '0' COMMENT '字数',
`recommend` int(11) DEFAULT '0' COMMENT '推荐票',
PRIMARY KEY (`id`),
KEY `title` (`title`),
KEY `reurl` (`reurl`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='小说表';
小说章节表
-- ----------------------------
-- Table structure for jp_novel_chapter
-- ----------------------------
DROP TABLE IF EXISTS `jp_novel_chapter`;
CREATE TABLE `jp_novel_chapter` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`novel_id` int(11) unsigned NOT NULL DEFAULT '0',
`source` varchar(255) NOT NULL DEFAULT '' COMMENT '源名称',
`chapter` longtext COMMENT '内容',
`status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态',
`reurl` char(255) DEFAULT NULL COMMENT '来源',
`collect_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '采集id',
`run_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '运行时间',
PRIMARY KEY (`id`),
KEY `novel_id` (`novel_id`),
KEY `status` (`status`),
KEY `collect_id` (`collect_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='小说章节';
小说用户评论表
DROP TABLE IF EXISTS `jp_comment`;
CREATE TABLE `jp_comment` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`content` text NOT NULL,
`create_time` int(11) unsigned NOT NULL DEFAULT '0',
`uid` int(11) unsigned NOT NULL DEFAULT '0',
`status` tinyint(2) NOT NULL DEFAULT '1',
`up` int(11) unsigned DEFAULT '0',
`pid` int(11) unsigned DEFAULT '0',
`mid` int(11) unsigned DEFAULT '0',
`type` char(10) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='评论表';
用户表
-- ----------------------------
-- Table structure for jp_user
-- ----------------------------
DROP TABLE IF EXISTS `jp_user`;
CREATE TABLE `jp_user` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID',
`username` char(64) DEFAULT '' COMMENT '用户帐号',
`email` char(32) NOT NULL DEFAULT '' COMMENT '用户邮箱',
`password` char(32) NOT NULL COMMENT '密码',
`sex` int(10) unsigned DEFAULT '0' COMMENT '用户的性别,值为1时是男性,值为2时是女性,值为0时是未知',
`province` char(20) DEFAULT NULL COMMENT '用户个人资料填写的省份',
`city` char(20) DEFAULT NULL COMMENT '普通用户个人资料填写的城市',
`country` char(20) DEFAULT NULL COMMENT '国家,如中国为CN',
`headimgurl` varchar(255) DEFAULT NULL COMMENT '头像',
`introduce` varchar(255) DEFAULT NULL COMMENT '介绍',
`status` tinyint(3) NOT NULL DEFAULT '0' COMMENT '用户状态',
`login` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '登录次数',
`login_ip` bigint(20) NOT NULL DEFAULT '0' COMMENT '最后登录IP',
`login_time` int(11) unsigned DEFAULT '0' COMMENT '最后登录时间',
`exp` int(11) DEFAULT '0' COMMENT '经验',
`integral` int(11) NOT NULL DEFAULT '0' COMMENT '积分',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`recommend` tinyint(3) DEFAULT '0' COMMENT '推荐票',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户表';
用户书架表
DROP TABLE IF EXISTS `jp_bookshelf`;
CREATE TABLE `jp_bookshelf` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
`novel_id` int(11) unsigned NOT NULL DEFAULT '0',
`chapter_id` int(11) unsigned NOT NULL DEFAULT '0',
`chapter_key` char(20) DEFAULT NULL,
`status` tinyint(3) NOT NULL DEFAULT '1' COMMENT '数据状态',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户书架';
用户消息表
DROP TABLE IF EXISTS `jp_message`;
CREATE TABLE `jp_message` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`content` text NOT NULL,
`create_time` int(11) unsigned NOT NULL DEFAULT '0',
`uid` int(11) unsigned NOT NULL DEFAULT '0',
`status` tinyint(2) NOT NULL DEFAULT '1',
`up` int(11) unsigned DEFAULT '0',
`pid` int(11) unsigned DEFAULT '0',
`mid` int(11) unsigned DEFAULT '0',
`type` char(10) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='消息表';
程序员交流qq群:782974737 点击加入