/* Navicat MySQL Data Transfer Source Server : lc Source Server Version : 50730 Source Host : localhost:3306 Source Database : taoler Target Server Type : MYSQL Target Server Version : 50730 File Encoding : 65001 Date: 2021-02-01 15:15:36 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for tao_admin -- ---------------------------- DROP TABLE IF EXISTS `tao_admin`; CREATE TABLE `tao_admin` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(20) NOT NULL DEFAULT '' COMMENT '管理员账户', `nickname` varchar(20) NOT NULL DEFAULT '' COMMENT '昵称', `password` varchar(32) NOT NULL DEFAULT '' COMMENT '密码', `email` varchar(30) NOT NULL DEFAULT '' COMMENT '邮箱', `mobile` varchar(11) NOT NULL DEFAULT '' COMMENT '手机号', `sex` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0女1男', `status` enum('1','0','-1') NOT NULL DEFAULT '0' COMMENT '1启用0待审-1禁用', `auth_group_id` smallint(1) NOT NULL DEFAULT '0' COMMENT '1超级管理员0是普通管理员', `remarks` varchar(255) NOT NULL DEFAULT '' COMMENT '备注', `last_login_ip` varchar(70) NOT NULL DEFAULT '' COMMENT '最后登录IP', `last_login_time` int(11) NOT NULL DEFAULT '0' COMMENT '最后登录时间', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间', `delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '软删除', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of tao_admin -- ---------------------------- INSERT INTO `tao_admin` VALUES ('1', 'admin', '管理员', '95d6f8d0d0c3b45e5dbe4057da1b149e', 'taoler@qq.com', '13812345678', '1', '1', '1', '2021 TaoLer!', '127.0.0.1', '1612162986', '1579053025', '1578986600', '0'); -- ---------------------------- -- Table structure for tao_article -- ---------------------------- DROP TABLE IF EXISTS `tao_article`; CREATE TABLE `tao_article` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户ID', `title` varchar(50) NOT NULL COMMENT '标题', `content` text NOT NULL COMMENT '内容', `status` enum('0','-1','1') NOT NULL DEFAULT '1' COMMENT '状态1显示0待审-1禁止', `cate_id` int(11) NOT NULL COMMENT '分类id', `user_id` int(11) NOT NULL COMMENT '用户id', `goods_detail_id` int DEFAULT NULL COMMENT '商品ID', `is_top` enum('0','1') NOT NULL DEFAULT '0' COMMENT '置顶1否0', `is_hot` enum('0','1') NOT NULL DEFAULT '0' COMMENT '推荐1否0', `is_reply` enum('1','0') NOT NULL DEFAULT '1' COMMENT '0禁评1可评', `has_img` enum('1','0') NOT NULL DEFAULT '0' COMMENT '1有图0无图', `has_video` enum('1','0') NOT NULL DEFAULT '0' COMMENT '1有视频0无', `has_audio` enum('1','0') NOT NULL DEFAULT '0' COMMENT '1有音频0无', `pv` int(11) NOT NULL DEFAULT '0' COMMENT '浏览量', `jie` enum('1','0') NOT NULL DEFAULT '0' COMMENT '0未结1已结', `upzip` varchar(70) DEFAULT NULL COMMENT '文章附件', `downloads` int(5) NOT NULL DEFAULT '0' COMMENT '下载量', `keywords` varchar(255) DEFAULT NULL COMMENT '关键词', `description` text NOT NULL COMMENT 'seo描述', `read_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '阅读权限0开放1回复可读2密码可读3私密', `art_pass` varchar(6) DEFAULT NULL COMMENT '文章加密密码', `title_color` varchar(10) DEFAULT NULL COMMENT '标题颜色', `title_font` varchar(20) DEFAULT NULL COMMENT '标题字形', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间', `delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间', PRIMARY KEY (`id`), KEY `user_id` (`user_id`) USING BTREE COMMENT '文章的用户索引', KEY `cate_id` (`cate_id`) USING BTREE COMMENT '文章分类索引' ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='文章表'; -- ---------------------------- -- Records of tao_article -- ---------------------------- -- ---------------------------- -- Table structure for tao_auth_group -- ---------------------------- DROP TABLE IF EXISTS `tao_auth_group`; CREATE TABLE `tao_auth_group` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '角色ID', `title` varchar(100) NOT NULL DEFAULT '' COMMENT '角色名称', `rules` varchar(500) NOT NULL DEFAULT '' COMMENT '拥有权限', `limits` varchar(255) NOT NULL DEFAULT '' COMMENT '权限范围', `descr` varchar(255) NOT NULL DEFAULT '' COMMENT '权限描述', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '角色状态1可用0禁止', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间', `delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='用户组权限表'; -- ---------------------------- -- Records of tao_auth_group -- ---------------------------- INSERT INTO `tao_auth_group` VALUES ('1', '超级管理员', '5,15,21,22,62,63,23,17,27,28,64,16,24,26,25,4,20,32,33,34,14,29,30,31,1,65,6,35,36,37,38,7,39,40,41,42,8,43,44,45,66,9,47,48,49,50,46,67,2,10,51,11,18,52,54,55,19,56,57,58,59,60,53,3,12,13', '管理所有的管理员', '所有权限', '1', '0', '1578984825', '0'); INSERT INTO `tao_auth_group` VALUES ('2', '管理员', '5,15,21,22,62,63,23,17,27,28,64,16,24,26,25,1,65,6,35,36,37,38,67,3,12,13', '所有列表的管理', '普通管理员', '1', '0', '1578984832', '0'); INSERT INTO `tao_auth_group` VALUES ('3', '帖子管理', '5,15,21,22,62,63,23,17,27,28,64,16,24,26,25', '负责帖子的审核', '文章专员', '1', '0', '1578980219', '0'); INSERT INTO `tao_auth_group` VALUES ('4', '网站维护', '2,10,51,11,18,52,54,55,19,56,57,58,59,60,53,3,12,13', '对数据进行统计', '网站维护', '1', '0', '1578980364', '0'); -- ---------------------------- -- Table structure for tao_auth_group_access -- ---------------------------- DROP TABLE IF EXISTS `tao_auth_group_access`; CREATE TABLE `tao_auth_group_access` ( `id` int(2) NOT NULL AUTO_INCREMENT COMMENT '用户组id', `uid` int(11) unsigned NOT NULL, `group_id` int(8) unsigned NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '用户权限组状态0禁止1正常', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间', PRIMARY KEY (`id`), KEY `uid` (`uid`), KEY `group_id` (`group_id`), KEY `uid_group_id` (`uid`,`group_id`) USING BTREE ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='用户组明细表'; -- ---------------------------- -- Table structure for tao_auth_group_copy -- ---------------------------- DROP TABLE IF EXISTS `tao_auth_group_copy`; CREATE TABLE `tao_auth_group_copy` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '角色ID', `title` varchar(100) NOT NULL DEFAULT '' COMMENT '角色名称', `rules` char(255) NOT NULL DEFAULT '', `limits` varchar(255) NOT NULL DEFAULT '' COMMENT '权限范围', `descr` varchar(255) NOT NULL DEFAULT '' COMMENT '权限描述', `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '角色状态1可用0禁止', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间', `delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='用户角色表'; -- ---------------------------- -- Records of tao_auth_group_copy -- ---------------------------- INSERT INTO `tao_auth_group_copy` VALUES ('1', '超级管理员', '5,15,21,22,62,63,23,17,27,28,64,16,24,26,25,4,20,32,33,34,14,29,30,31,1,65,6,35,36,37,38,7,39,40,41,42,8,43,44,45,66,9,47,48,49,50,46,67,2,10,51,11,18,52,54,55,19,56,57,58,59,60,53,3,12,13', '管理所有的管理员', '所有权限', '1', '0', '1578984825', '0'); INSERT INTO `tao_auth_group_copy` VALUES ('2', '管理员', '5,15,21,22,62,63,23,17,27,28,64,16,24,26,25,1,65,6,35,36,37,38,67,3,12,13', '所有列表的管理', '普通管理员', '1', '0', '1578984832', '0'); INSERT INTO `tao_auth_group_copy` VALUES ('3', '帖子管理', '5,15,21,22,62,63,23,17,27,28,64,16,24,26,25', '负责帖子的审核', '文章专员', '1', '0', '1578980219', '0'); INSERT INTO `tao_auth_group_copy` VALUES ('4', '网站维护', '5,15,21,22,62,63,23,17,27,28,64,16,24,26,25,90,2,10,51,11,18,52,54,55,19,56,57,58,59,60,53,3,12,13', '对数据进行统计', '网站维护', '1', '0', '1588065032', '0'); -- ---------------------------- -- Table structure for tao_auth_rule -- ---------------------------- DROP TABLE IF EXISTS `tao_auth_rule`; CREATE TABLE `tao_auth_rule` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '权限主键ID', `name` char(80) NOT NULL DEFAULT '' COMMENT '权限名称', `title` char(20) NOT NULL DEFAULT '' COMMENT '权限标题', `etitle` varchar(100) NOT NULL DEFAULT '' COMMENT '英文权限标题', `type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '类型', `status` enum('1','0') NOT NULL DEFAULT '1' COMMENT '菜单1启用,0禁用', `pid` smallint(5) NOT NULL DEFAULT '0' COMMENT '父级ID', `level` tinyint(1) NOT NULL DEFAULT '1' COMMENT '菜单层级', `icon` varchar(50) NOT NULL DEFAULT '' COMMENT '图标', `ishidden` enum('1','0','-1') NOT NULL DEFAULT '1' COMMENT '0隐藏,1显示-1其它', `sort` tinyint(4) NOT NULL DEFAULT '50' COMMENT '排序', `condition` char(100) NOT NULL DEFAULT '', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间', `delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=MyISAM AUTO_INCREMENT=97 DEFAULT CHARSET=utf8 COMMENT='权限表'; -- ---------------------------- -- Records of tao_auth_rule -- ---------------------------- INSERT INTO `tao_auth_rule` VALUES ('1', 'admin', '管理', '', '1', '1', '0', '0', 'layui-icon-user', '1', '5', '', '0', '1635757559', '0'); INSERT INTO `tao_auth_rule` VALUES ('2', 'set', '设置', '', '1', '1', '0', '0', 'layui-icon-set', '1', '6', '', '0', '1635757571', '0'); INSERT INTO `tao_auth_rule` VALUES ('3', 'administrator', '账户', '', '1', '1', '0', '0', 'layui-icon-username', '1', '7', '', '0', '1635757594', '0'); INSERT INTO `tao_auth_rule` VALUES ('4', 'app', '应用', '', '1', '1', '0', '0', 'layui-icon-app', '1', '4', '', '0', '1635757536', '0'); INSERT INTO `tao_auth_rule` VALUES ('5', 'article', '内容', '', '1', '1', '0', '0', 'layui-icon-read', '1', '1', '', '0', '1635757294', '0'); INSERT INTO `tao_auth_rule` VALUES ('6', 'User/list', '用户管理', '', '1', '1', '1', '1', '', '1', '1', '', '0', '1578901015', '0'); INSERT INTO `tao_auth_rule` VALUES ('7', 'Admin/index', '管理员', '', '1', '1', '1', '1', '', '1', '6', '', '0', '1578901133', '0'); INSERT INTO `tao_auth_rule` VALUES ('8', 'AuthGroup/list', '角色管理', '', '1', '1', '1', '1', '', '1', '11', '', '0', '1578901282', '0'); INSERT INTO `tao_auth_rule` VALUES ('9', 'AuthRule/index', '权限菜单', '', '1', '1', '2', '1', '', '1', '16', '', '0', '1611998671', '0'); INSERT INTO `tao_auth_rule` VALUES ('10', 'Set/index', '网站设置', '', '1', '1', '2', '1', '', '1', '1', '', '0', '0', '0'); INSERT INTO `tao_auth_rule` VALUES ('11', 'Set/server', '综合服务', '', '1', '1', '2', '1', '', '1', '3', '', '0', '0', '0'); INSERT INTO `tao_auth_rule` VALUES ('12', 'Admin/info', '基本资料', '', '1', '1', '3', '1', '', '1', '50', '', '0', '1578980034', '0'); INSERT INTO `tao_auth_rule` VALUES ('13', 'Admin/repass', '修改密码', '', '1', '1', '3', '1', '', '1', '51', '', '0', '1578980034', '0'); INSERT INTO `tao_auth_rule` VALUES ('15', 'Forum/list', '帖子管理', '', '1', '1', '5', '1', '', '1', '1', '', '0', '1578902605', '0'); INSERT INTO `tao_auth_rule` VALUES ('16', 'Forum/tags', '分类管理', '', '1', '1', '5', '1', '', '1', '11', '', '0', '1578904950', '0'); INSERT INTO `tao_auth_rule` VALUES ('17', 'Forum/replys', '评论管理', '', '1', '1', '5', '1', '', '1', '7', '', '0', '1578904590', '0'); INSERT INTO `tao_auth_rule` VALUES ('18', 'Slider/index', '链接投放', '', '1', '1', '93', '1', '', '1', '4', '', '0', '1611999603', '0'); INSERT INTO `tao_auth_rule` VALUES ('19', 'Upgrade/index', '系统升级', '', '1', '1', '2', '1', '', '1', '8', '', '0', '0', '0'); INSERT INTO `tao_auth_rule` VALUES ('21', 'Forum/listform', '编辑帖子', '', '1', '1', '15', '2', '', '0', '2', '', '0', '1611997428', '0'); INSERT INTO `tao_auth_rule` VALUES ('22', 'Forum/listdel', '删除帖子', '', '1', '1', '15', '2', '', '0', '3', '', '0', '1611997448', '0'); INSERT INTO `tao_auth_rule` VALUES ('23', 'Forum/check', '审核帖子', '', '1', '1', '15', '2', '', '0', '6', '', '0', '1611997474', '0'); INSERT INTO `tao_auth_rule` VALUES ('24', 'Forum/addtags', '添加分类', '', '1', '1', '16', '2', '', '0', '12', '', '0', '1611997513', '0'); INSERT INTO `tao_auth_rule` VALUES ('25', 'Forum/tagsform', '编辑分类', '', '1', '1', '16', '2', '', '0', '14', '', '0', '1611997535', '0'); INSERT INTO `tao_auth_rule` VALUES ('26', 'Forum/tagsdelete', '删除分类', '', '1', '1', '16', '2', '', '0', '13', '', '0', '1611997523', '0'); INSERT INTO `tao_auth_rule` VALUES ('27', 'Forum/replysform', '编辑评论', '', '1', '1', '17', '2', '', '0', '8', '', '0', '1611997484', '0'); INSERT INTO `tao_auth_rule` VALUES ('28', 'Forum/redel', '删除评论', '', '1', '1', '17', '2', '', '0', '9', '', '0', '1611997494', '0'); INSERT INTO `tao_auth_rule` VALUES ('35', 'User/userForm', '添加用户', '', '1', '1', '6', '2', '', '0', '2', '', '0', '1611997673', '0'); INSERT INTO `tao_auth_rule` VALUES ('36', 'User/userEdit', '编辑用户', '', '1', '1', '6', '2', '', '0', '3', '', '0', '1611997690', '0'); INSERT INTO `tao_auth_rule` VALUES ('37', 'User/delete', '删除用户', '', '1', '1', '6', '2', '', '0', '4', '', '0', '1611997701', '0'); INSERT INTO `tao_auth_rule` VALUES ('38', 'User/check', '审核用户', '', '1', '1', '6', '2', '', '0', '5', '', '0', '1611997713', '0'); INSERT INTO `tao_auth_rule` VALUES ('39', 'Admin/add', '添加管理员', '', '1', '1', '7', '2', '', '0', '7', '', '0', '1611997732', '0'); INSERT INTO `tao_auth_rule` VALUES ('40', 'Admin/edit', '编辑管理员', '', '1', '1', '7', '2', '', '0', '8', '', '0', '1611997747', '0'); INSERT INTO `tao_auth_rule` VALUES ('41', 'Admin/delete', '删除管理员', '', '1', '1', '7', '2', '', '0', '9', '', '0', '1611997760', '0'); INSERT INTO `tao_auth_rule` VALUES ('42', 'Admin/check', '审核管理员', '', '1', '1', '7', '2', '', '0', '10', '', '0', '1611997772', '0'); INSERT INTO `tao_auth_rule` VALUES ('43', 'AuthGroup/roleAdd', '添加角色', '', '1', '1', '8', '2', '', '0', '12', '', '0', '1611997790', '0'); INSERT INTO `tao_auth_rule` VALUES ('44', 'AuthGroup/roleEdit', '编辑角色', '', '1', '1', '8', '2', '', '0', '13', '', '0', '1611997805', '0'); INSERT INTO `tao_auth_rule` VALUES ('45', 'AuthGroup/roledel', '删除角色', '', '1', '1', '8', '2', '', '0', '14', '', '0', '1611997820', '0'); INSERT INTO `tao_auth_rule` VALUES ('46', 'AuthRule/add', '添加权限', '', '1', '1', '9', '2', '', '0', '21', '', '0', '1611997901', '0'); INSERT INTO `tao_auth_rule` VALUES ('47', 'AuthRule/edit', '编辑权限', '', '1', '1', '9', '2', '', '0', '17', '', '0', '1611997849', '0'); INSERT INTO `tao_auth_rule` VALUES ('48', 'AuthRule/delete', '删除权限', '', '1', '1', '9', '2', '', '0', '18', '', '0', '1611997869', '0'); INSERT INTO `tao_auth_rule` VALUES ('49', 'AuthRule/check', '审核权限', '', '1', '1', '9', '2', '', '0', '19', '', '0', '1611997884', '0'); INSERT INTO `tao_auth_rule` VALUES ('50', 'AuthRule/menushow', '菜单权限', '', '1', '1', '9', '2', '', '0', '20', '', '0', '1611997929', '0'); INSERT INTO `tao_auth_rule` VALUES ('51', 'Set/upload', '上传logo', '', '1', '1', '10', '2', '', '0', '2', '', '0', '1611998097', '0'); INSERT INTO `tao_auth_rule` VALUES ('52', 'Slider/add', '添加链接', '', '1', '1', '18', '2', '', '0', '5', '', '0', '1611998128', '0'); INSERT INTO `tao_auth_rule` VALUES ('53', 'Slider/edit', '编辑链接', '', '1', '1', '18', '2', '', '0', '14', '', '0', '1611998263', '0'); INSERT INTO `tao_auth_rule` VALUES ('54', 'Slider/delete', '删除链接', '', '1', '1', '18', '2', '', '0', '6', '', '0', '1611998141', '0'); INSERT INTO `tao_auth_rule` VALUES ('55', 'Slider/uploadimg', '上传链接图片', '', '1', '1', '18', '2', '', '0', '7', '', '0', '1611998156', '0'); INSERT INTO `tao_auth_rule` VALUES ('56', 'Upgrade/key', '设置key', '', '1', '1', '19', '2', '', '0', '9', '', '0', '1611998178', '0'); INSERT INTO `tao_auth_rule` VALUES ('57', 'Upgrade/keyedit', '修改key', '', '1', '1', '19', '2', '', '0', '10', '', '0', '1611998192', '0'); INSERT INTO `tao_auth_rule` VALUES ('58', 'Upgrade/check', '升级检测', '', '1', '1', '19', '2', '', '0', '11', '', '0', '1611998214', '0'); INSERT INTO `tao_auth_rule` VALUES ('59', 'Upgrade/upload', '自动升级', '', '1', '1', '19', '2', '', '0', '12', '', '0', '1611998230', '0'); INSERT INTO `tao_auth_rule` VALUES ('60', 'Upgrade/uploadzip', '上传升级包', '', '1', '1', '19', '2', '', '0', '13', '', '0', '1611998245', '0'); INSERT INTO `tao_auth_rule` VALUES ('62', 'Forum/top', '置顶帖子', '', '1', '1', '15', '2', '', '0', '4', '', '0', '1611997455', '0'); INSERT INTO `tao_auth_rule` VALUES ('63', 'Forum/hot', '加精帖子', '', '1', '1', '15', '2', '', '0', '5', '', '0', '1611997465', '0'); INSERT INTO `tao_auth_rule` VALUES ('64', 'Froum/recheck', '审核评论', '', '1', '1', '17', '2', '', '0', '10', '', '0', '1611997503', '0'); INSERT INTO `tao_auth_rule` VALUES ('65', 'User/uploadImg', '上传用户头像', '', '1', '1', '6', '2', '', '0', '0', '', '0', '1611997661', '0'); INSERT INTO `tao_auth_rule` VALUES ('66', 'AuthGroup/check', '审核角色', '', '1', '1', '8', '2', '', '0', '15', '', '0', '1611997835', '0'); INSERT INTO `tao_auth_rule` VALUES ('67', 'Sign/signRule', '签到规则', '', '1', '1', '11', '2', '', '0', '15', '', '1585547595', '1611998427', '0'); INSERT INTO `tao_auth_rule` VALUES ('68', 'Sign/add', '添加签到', '', '1', '1', '11', '2', '', '0', '16', '', '1585547705', '1611998444', '0'); INSERT INTO `tao_auth_rule` VALUES ('69', 'Sign/signEdit', '编辑签到', '', '1', '1', '11', '2', '', '0', '17', '', '1585547774', '1611998457', '0'); INSERT INTO `tao_auth_rule` VALUES ('70', 'Sign/delete', '删除签到', '', '1', '1', '11', '2', '', '0', '18', '', '1585547817', '1611998470', '0'); INSERT INTO `tao_auth_rule` VALUES ('71', 'Vip/vipRule', '用户等级', '', '1', '1', '11', '2', '', '0', '19', '', '1585547921', '1611998481', '0'); INSERT INTO `tao_auth_rule` VALUES ('72', 'Vip/add', '添加vip等级', '', '1', '1', '11', '2', '', '0', '20', '', '1585547981', '1611998492', '0'); INSERT INTO `tao_auth_rule` VALUES ('73', 'Vip/vipEdit', '编辑vip等级', '', '1', '1', '11', '2', '', '0', '21', '', '1585548029', '1611998556', '0'); INSERT INTO `tao_auth_rule` VALUES ('74', 'Vip/delete', '删除vip等级', '', '1', '1', '11', '2', '', '0', '22', '', '1585548077', '1611998503', '0'); INSERT INTO `tao_auth_rule` VALUES ('75', 'Set/email', '邮箱设置', '', '1', '1', '10', '2', '', '0', '23', '', '1585548143', '1611998372', '0'); INSERT INTO `tao_auth_rule` VALUES ('76', 'Notice/index', '发布通知', '', '1', '1', '4', '1', '', '1', '10', '', '1585618141', '0', '0'); INSERT INTO `tao_auth_rule` VALUES ('77', 'Notice/add', '添加通知', '', '1', '1', '76', '2', '', '0', '11', '', '1585663336', '1611997580', '0'); INSERT INTO `tao_auth_rule` VALUES ('78', 'Notice/edit', '编辑通知', '', '1', '1', '76', '2', '', '0', '12', '', '1585663366', '1611997590', '0'); INSERT INTO `tao_auth_rule` VALUES ('79', 'Notice/delete', '删除通知', '', '1', '1', '76', '2', '', '0', '13', '', '1585663412', '1611997601', '0'); INSERT INTO `tao_auth_rule` VALUES ('83', 'AuthAccess/index', '管理员权限', '', '1', '1', '1', '1', '', '1', '22', '', '1585794015', '0', '0'); INSERT INTO `tao_auth_rule` VALUES ('84', 'AuthAccess/add', '添加管理员权限', '', '1', '1', '83', '2', '', '0', '23', '', '1585806544', '1611998012', '0'); INSERT INTO `tao_auth_rule` VALUES ('85', 'AuthAccess/edit', '编辑管理员权限', '', '1', '1', '83', '2', '', '0', '24', '', '1585806592', '1611998030', '0'); INSERT INTO `tao_auth_rule` VALUES ('86', 'AuthAccess/delete', '删除管理员权限', '', '1', '1', '83', '2', '', '0', '25', '', '1585806620', '1611998046', '0'); INSERT INTO `tao_auth_rule` VALUES ('87', 'AuthAccess/check', '审核管理员权限', '', '1', '1', '83', '2', '', '0', '26', '', '1585806653', '1611998060', '0'); INSERT INTO `tao_auth_rule` VALUES ('88', 'Set/website', '网站信息保存', '', '1', '1', '10', '2', '', '0', '24', '', '1585819936', '1611998395', '0'); INSERT INTO `tao_auth_rule` VALUES ('89', 'User/auth', '设置超级用户', '', '1', '1', '6', '2', '', '0', '22', '', '1578984801', '1611997990', '0'); INSERT INTO `tao_auth_rule` VALUES ('90', 'Forum/tagshot', '开启热点', '', '1', '1', '16', '2', '', '0', '15', '', '1585841826', '1611997546', '0'); INSERT INTO `tao_auth_rule` VALUES ('91', 'Admin/infoSet', '资料设置', '', '1', '1', '12', '2', '', '0', '62', '', '1586245669', '1611998517', '0'); INSERT INTO `tao_auth_rule` VALUES ('92', 'Admin/repassSet', '密码设置', '', '1', '1', '13', '2', '', '0', '64', '', '1586245727', '1611998534', '0'); INSERT INTO `tao_auth_rule` VALUES ('93', 'servers', '服务', '', '1', '1', '0', '0', 'layui-icon-cols', '1', '3', '', '1611286515', '1635757525', '0'); INSERT INTO `tao_auth_rule` VALUES ('94', 'Database/index', '数据备份', '', '1', '1', '93', '1', '', '1', '9', '', '1611897141', '1611902589', '0'); INSERT INTO `tao_auth_rule` VALUES ('95', 'Database/backup', '进行备份', '', '1', '1', '94', '2', '', '0', '10', '', '1611897285', '1611902610', '0'); INSERT INTO `tao_auth_rule` VALUES ('96', 'Database/delete', '备份删除', '', '1', '1', '94', '2', '', '0', '0', '', '1611902429', '0', '0'); INSERT INTO `tao_auth_rule` VALUES ('97', 'addons', '插件', '', '1', '1', '0', '0', 'layui-icon-flag', '1', '2', '', '1635757328', '1635757632', '0'); INSERT INTO `tao_auth_rule` VALUES ('98', 'Addons/index', '插件市场', '', '1', '1', '97', '1', '', '1', '0', '', '1635757426', '0', '0'); INSERT INTO `tao_auth_rule` VALUES ('99', 'Addons/addonsList', '插件列表', '', '1', '1', '98', '2', '', '-1', '0', '', '1638775199', '0', '0'); INSERT INTO `tao_auth_rule` VALUES ('111','Seo/index','SEO', '', '1','1','0','0','layui-icon-component','1','7','','1649829142','0','0'); INSERT INTO `tao_auth_rule` VALUES ('112', 'Tag/index', 'Tag设置', '', '1', '1', '5', '1', '', '1', '16', '', '1652053762', '1652053830', '0'); -- ---------------------------- -- Table structure for tao_cate -- ---------------------------- DROP TABLE IF EXISTS `tao_cate`; CREATE TABLE `tao_cate` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id', `catename` varchar(20) NOT NULL COMMENT '导航名称', `ename` varchar(20) NOT NULL DEFAULT '' COMMENT '分类别名', `detpl` varchar(20) NOT NULL COMMENT '详情模板', `icon` varchar(50) DEFAULT NULL COMMENT '图标', `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序', `status` enum('0','1') NOT NULL DEFAULT '1' COMMENT '状态1启用0禁用', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0帖子1文章', `desc` varchar(255) NOT NULL, `is_hot` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否是热点', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `updata_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间', `delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间', PRIMARY KEY (`id`), KEY `ename` (`ename`) COMMENT '英文名称索引' ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='分类表'; -- ---------------------------- -- Records of tao_cate -- ---------------------------- INSERT INTO `tao_cate` VALUES ('1', '提问', 'ask', 'ask', 'layui-icon-help', '1', '1', '0', 'TaoLer社区提问专栏1', '0', '0', '0', '0'); INSERT INTO `tao_cate` VALUES ('2', '分享', 'share', 'posts', 'layui-icon-share', '2', '1', '0', '', '0', '0', '0', '0'); INSERT INTO `tao_cate` VALUES ('3', '讨论', 'talk', 'posts', 'layui-icon-dialogue', '3', '1', '0', '', '1', '0', '0', '0'); -- ---------------------------- -- Table structure for tao_collection -- ---------------------------- DROP TABLE IF EXISTS `tao_collection`; CREATE TABLE `tao_collection` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', `article_id` int(11) NOT NULL COMMENT '文章id', `user_id` int(11) NOT NULL COMMENT '用户id', `auther` varchar(20) NOT NULL COMMENT '作者', `collect_title` varchar(80) NOT NULL COMMENT '收藏帖子标题', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='文章收藏表'; -- ---------------------------- -- Table structure for tao_comment -- ---------------------------- DROP TABLE IF EXISTS `tao_comment`; CREATE TABLE `tao_comment` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '评论id', `content` text COLLATE utf8mb4_general_ci NOT NULL COMMENT '评论', `article_id` int(11) NOT NULL COMMENT '文章id', `user_id` int(11) NOT NULL COMMENT '评论用户', `zan` tinyint(4) NOT NULL DEFAULT '0' COMMENT '赞', `cai` enum('1','0') NOT NULL DEFAULT '0' COMMENT '0求解1采纳', `status` enum('0','-1','1') NOT NULL DEFAULT '1' COMMENT '1通过0待审-1禁止', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间', `delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间', PRIMARY KEY (`id`), KEY `aiticle_id` (`article_id`) USING BTREE COMMENT '文章评论索引', KEY `user_id` (`user_id`) USING BTREE COMMENT '评论用户索引' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='评论表'; -- ---------------------------- -- Records of tao_comment -- ---------------------------- INSERT INTO `tao_comment` VALUES ('1', 'https://www.aieok.com', '1', '1', '0', '0', '1', '1555127897', '1578977505', '1578977505'); -- ---------------------------- -- Table structure for tao_cunsult -- ---------------------------- DROP TABLE IF EXISTS `tao_cunsult`; CREATE TABLE `tao_cunsult` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` tinyint(2) NOT NULL COMMENT '问题类型1问题资讯2提交BUG', `title` varchar(30) NOT NULL DEFAULT '' COMMENT '问题', `content` tinytext NOT NULL COMMENT '内容', `poster` tinyint(4) NOT NULL COMMENT '发送人ID', `create_time` int(10) NOT NULL DEFAULT '0' COMMENT '创建时间', `delete_time` int(10) NOT NULL DEFAULT '0' COMMENT '删除时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='反馈表'; -- ---------------------------- -- Table structure for tao_friend_link -- ---------------------------- DROP TABLE IF EXISTS `tao_friend_link`; CREATE TABLE `tao_friend_link` ( `id` int(2) unsigned NOT NULL AUTO_INCREMENT COMMENT '友情链接id', `linkname` varchar(10) NOT NULL COMMENT '链接名称', `linksrc` varchar(60) NOT NULL COMMENT '链接地址', `linkimg` varchar(60) NOT NULL COMMENT '链接图片', `creat_time` int(10) NOT NULL COMMENT '创建时间', `update_time` int(10) NOT NULL COMMENT '更新时间', `delete_time` int(10) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='友情链接'; -- ---------------------------- -- Records of tao_friend_link -- ---------------------------- INSERT INTO `tao_friend_link` VALUES ('1', 'taobao', 'https://www.taobao.com', '', '0', '0', '0'); INSERT INTO `tao_friend_link` VALUES ('2', 'baidu', 'https://www.baidu.com', '', '0', '0', '0'); INSERT INTO `tao_friend_link` VALUES ('3', 'tensent', 'https://www.qq.com', '', '0', '0', '0'); -- ---------------------------- -- Table structure for tao_mail_server -- ---------------------------- DROP TABLE IF EXISTS `tao_mail_server`; CREATE TABLE `tao_mail_server` ( `id` int(11) NOT NULL AUTO_INCREMENT, `mail` varchar(50) NOT NULL COMMENT '邮箱设置', `host` varchar(50) NOT NULL COMMENT '邮箱服务地址', `port` smallint(3) NOT NULL COMMENT '邮箱端口', `nickname` varchar(20) NOT NULL DEFAULT '' COMMENT '昵称', `password` varchar(16) NOT NULL COMMENT '邮箱密码', `active` tinyint(1) NOT NULL DEFAULT '0' COMMENT '邮箱服务1激活0未激活', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='邮件服务器配置表'; -- ---------------------------- -- Records of tao_mail_server -- ---------------------------- INSERT INTO `tao_mail_server` VALUES ('1', 'xxxx@aliyun.com', 'smtp.aliyun.com', '25', 'user', '123456', '0', '0'); -- ---------------------------- -- Table structure for tao_message -- ---------------------------- DROP TABLE IF EXISTS `tao_message`; CREATE TABLE `tao_message` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '消息ID', `title` varchar(255) NOT NULL COMMENT '消息标题', `content` text COMMENT '消息内容', `user_id` int(11) NOT NULL COMMENT '发送人ID', `link` varchar(255) DEFAULT NULL COMMENT '链接', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息类型0系统消息1普通消息', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间', `delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='消息表'; -- ---------------------------- -- Table structure for tao_message_to -- ---------------------------- DROP TABLE IF EXISTS `tao_message_to`; CREATE TABLE `tao_message_to` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '消息ID', `send_id` int(11) NOT NULL COMMENT '发送人ID', `receve_id` int(11) NOT NULL COMMENT '接收人ID', `message_id` varchar(255) NOT NULL COMMENT '消息标题', `message_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息类型0系统消息1普通消息', `is_read` tinyint(1) NOT NULL DEFAULT '0' COMMENT '消息状态', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间', `delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='消息详细表'; -- -- 表的结构 `tao_push_jscode` -- DROP TABLE IF EXISTS `tao_push_jscode`; CREATE TABLE `tao_push_jscode` ( `id` int(2) NOT NULL AUTO_INCREMENT COMMENT '自增ID', `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '平台名', `jscode` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'js代码', `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1push2taglink', `create_time` int NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int NOT NULL DEFAULT '0' COMMENT '更新时间', `delete_time` int NOT NULL DEFAULT '0' COMMENT '删除时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='站长平台自动推送js代码'; -- ---------------------------- -- Table structure for tao_slider -- ---------------------------- DROP TABLE IF EXISTS `tao_slider`; CREATE TABLE `tao_slider` ( `id` int(2) NOT NULL AUTO_INCREMENT COMMENT '自增ID', `slid_name` varchar(30) NOT NULL COMMENT '幻灯名', `slid_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '类型', `slid_img` varchar(70) NOT NULL DEFAULT '' COMMENT '幻灯图片地址', `slid_href` varchar(255) NOT NULL DEFAULT '' COMMENT '链接', `slid_color` varchar(10) NOT NULL DEFAULT '' COMMENT '广告块颜色', `slid_start` int(11) NOT NULL DEFAULT '0' COMMENT '开始时间', `slid_over` int(11) NOT NULL DEFAULT '0' COMMENT '结束时间', `slid_status` enum('1','0') NOT NULL DEFAULT '1' COMMENT '1投放0仓库', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间', `delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of tao_slider -- ---------------------------- INSERT INTO `tao_slider` VALUES ('1', 'CODING', '1', '/storage/slider/F1.jpg', '#', '', '1574870400', '1575043200', '1', '0', '0', '0'); INSERT INTO `tao_slider` VALUES ('2', '通用右栏底部广告', '2', '/storage/slider/20200101/851c0b88a72590293bcb45454bdce056.jpg', 'https://www.aieok.com', '', '1571155200', '1609344000', '1', '0', '0', '0'); -- ---------------------------- -- Table structure for tao_system -- ---------------------------- DROP TABLE IF EXISTS `tao_system`; CREATE TABLE `tao_system` ( `id` tinyint(2) NOT NULL AUTO_INCREMENT COMMENT '主键', `webname` varchar(20) NOT NULL COMMENT '网站名称', `webtitle` varchar(30) NOT NULL, `domain` varchar(50) NOT NULL, `template` varchar(30) NOT NULL DEFAULT '' COMMENT '模板', `logo` varchar(70) NOT NULL DEFAULT '' COMMENT '网站logo', `m_logo` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '/static/res/images/logo-m.png' COMMENT '移动端logo', `cache` tinyint(5) NOT NULL DEFAULT '0' COMMENT '缓存时间分钟', `upsize` int(5) NOT NULL DEFAULT '0' COMMENT '上传文件大小KB', `uptype` varchar(255) NOT NULL DEFAULT '0' COMMENT '上传文件类型', `copyright` varchar(100) NOT NULL DEFAULT '' COMMENT '版权', `keywords` tinytext NOT NULL COMMENT '网站关键字', `descript` text NOT NULL COMMENT '网站描述', `state` tinytext CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '网站声明', `is_open` enum('0','1') NOT NULL DEFAULT '1' COMMENT '是否开启站点1开启0关闭', `is_comment` enum('0','1') NOT NULL DEFAULT '1' COMMENT '是否开启评论1开启0关闭', `is_reg` enum('0','1') NOT NULL DEFAULT '1' COMMENT '是否开放注册1开启0禁止', `icp` varchar(50) NOT NULL DEFAULT '' COMMENT '备案', `showlist` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '统计代码', `blackname` varchar(255) NOT NULL COMMENT '注册黑名单', `sys_version_num` varchar(5) NOT NULL COMMENT '系统版本', `key` varchar(60) DEFAULT NULL COMMENT 'key', `clevel` tinyint(1) NOT NULL DEFAULT '0', `api_url` varchar(80) NOT NULL COMMENT 'api', `base_url` varchar(50) NOT NULL DEFAULT '', `upcheck_url` varchar(255) NOT NULL COMMENT '版本检测', `upgrade_url` varchar(255) NOT NULL COMMENT '升级地址', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='系统配置表'; -- ---------------------------- -- Records of tao_system -- ---------------------------- INSERT INTO `tao_system` VALUES (1, 'TaoLer', 'TaoLer社区-www.aieok.com', 'www.tp6.com', 'taoler', '/storage/logo/logo.png', '/static/res/images/logo-m.png', 10, 2048, 'image:png|gif|jpg|jpeg,application:zip|rar|docx,video:mp4,audio:mp3|m4a|mp4,zip:zip,application/msword:docx', 'TaoLer', 'TaoLer,轻社区系统,bbs,论坛,Thinkphp6,layui,fly模板,', '这是一个Taoler轻社区论坛系统', '网站声明:如果转载,请联系本站管理员。否则一切后果自行承担。', '1', '1', '1', '0.0.0.0-1', '', '管理员|admin|审核员|超级|垃圾', '1.6.3', '', 0, 'http://api.aieok.com', 'http://api.aieok.com/v1/cy', 'http://api.aieok.com/v1/upload/check', 'http://api.aieok.com/v1/upload/api', 1641004619, 1652345050); DROP TABLE IF EXISTS `tao_tag`; CREATE TABLE `tao_tag` ( `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'tag自增id', `name` varchar(20) NOT NULL COMMENT '名称', `ename` varchar(20) NOT NULL COMMENT '英文名', `keywords` varchar(255) NOT NULL COMMENT '关键词', `description` text NOT NULL COMMENT '摘要', `title` varchar(100) NOT NULL COMMENT '标签', `create_time` int NOT NULL COMMENT '创建时间', `update_time` int NOT NULL COMMENT '更新时间', PRIMARY KEY (`id`), KEY `ename` (`ename`) USING BTREE COMMENT 'ename查询tag索引' ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='文章tag表'; DROP TABLE IF EXISTS `tao_taglist`; CREATE TABLE `tao_taglist` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标签列表id', `tag_id` int NOT NULL COMMENT '标签id', `article_id` int NOT NULL COMMENT '文章id', `create_time` int NOT NULL COMMENT '创建时间', PRIMARY KEY (`id`), KEY `tag_id` (`tag_id`) USING BTREE COMMENT 'tagID索引', KEY `article_id` (`article_id`) USING BTREE COMMENT '文章ID查询索引' ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='tag详细列表'; -- ---------------------------- -- Table structure for tao_user -- ---------------------------- DROP TABLE IF EXISTS `tao_user`; CREATE TABLE `tao_user` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户ID', `name` varchar(16) NOT NULL COMMENT '用户名', `password` varchar(32) NOT NULL COMMENT '密码', `phone` varchar(11) NOT NULL DEFAULT '' COMMENT '手机', `email` varchar(50) NOT NULL DEFAULT '' COMMENT '邮箱', `active` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1激活账户0未激活', `nickname` varchar(16) NOT NULL DEFAULT '' COMMENT '昵称', `city` varchar(50) NOT NULL DEFAULT '' COMMENT '归属地', `sex` enum('0','1') NOT NULL DEFAULT '0' COMMENT '性别0男1女', `sign` varchar(255) NOT NULL DEFAULT '' COMMENT '签名', `user_img` varchar(150) NOT NULL DEFAULT '' COMMENT '头像', `auth` enum('1','0') NOT NULL DEFAULT '0' COMMENT '管理员权限0普通1超级', `point` int(11) NOT NULL DEFAULT '0' COMMENT '积分', `area_id` int(11) DEFAULT NULL COMMENT '用户所属区域ID', `status` enum('1','0','-1') NOT NULL DEFAULT '1' COMMENT '1启用0待审-1禁用', `vip` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'vip', `last_login_ip` varchar(70) NOT NULL DEFAULT '0' COMMENT '最后登陆ip', `last_login_time` int(11) NOT NULL DEFAULT '0' COMMENT '最后登陆时间', `login_error_num` tinyint(1) NOT NULL DEFAULT '0' COMMENT '登陆错误次数', `login_error_time` int(11) NOT NULL DEFAULT '0' COMMENT '登陆错误时间', `login_error_lock` tinyint(1) NOT NULL DEFAULT '0' COMMENT '登陆锁定0正常1锁定', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', `delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间', PRIMARY KEY (`id`), KEY `name` (`name`) USING BTREE COMMENT '用户名查询用户索引', KEY `email` (`email`) USING BTREE COMMENT 'email查询用户索引' ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of tao_user -- ---------------------------- INSERT INTO `tao_user` VALUES ('1', 'admin', '95d6f8d0d0c3b45e5dbe4057da1b149e', '2147483647', 'admin@qq.com', '0', '管理员', '北京市', '1', '这是一个社区系统', '/static/res/images/avatar/00.jpg', '1', '0', '1', '1', '0', '127.0.0.1', '0', '0', '0', '0', '1579053025', '1578469091', '0'); -- ---------------------------- -- Table structure for tao_user_area -- ---------------------------- DROP TABLE IF EXISTS `tao_user_area`; CREATE TABLE `tao_user_area` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id', `area` varchar(10) NOT NULL COMMENT '所属区域', `asing` varchar(2) NOT NULL COMMENT '区域简称', `create_time` int(11) NOT NULL DEFAULT '0', `update_time` int(11) NOT NULL DEFAULT '0', `delete_time` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of tao_user_area -- ---------------------------- INSERT INTO `tao_user_area` VALUES ('1', '北京', '京', '0', '0', '0'); INSERT INTO `tao_user_area` VALUES ('2', '上海', '沪', '0', '0', '0'); INSERT INTO `tao_user_area` VALUES ('3', '广州', '广', '0', '0', '0'); INSERT INTO `tao_user_area` VALUES ('4', '深圳', '深', '0', '0', '0'); -- ---------------------------- -- Table structure for tao_user_sign -- ---------------------------- DROP TABLE IF EXISTS `tao_user_sign`; CREATE TABLE `tao_user_sign` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `uid` int(11) unsigned NOT NULL COMMENT '用户id', `days` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '连续签到的天数', `is_share` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否分享过', `is_sign` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否签到过', `stime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '签到的时间', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='用户签到表'; -- ---------------------------- -- Records of tao_user_sign -- ---------------------------- -- ---------------------------- -- Table structure for tao_user_signrule -- ---------------------------- DROP TABLE IF EXISTS `tao_user_signrule`; CREATE TABLE `tao_user_signrule` ( `id` int(2) unsigned NOT NULL AUTO_INCREMENT, `days` int(5) unsigned NOT NULL DEFAULT '0' COMMENT '连续天数', `score` int(3) unsigned NOT NULL DEFAULT '0' COMMENT '积分', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '升级时间', `delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='用户签到积分规则'; -- ---------------------------- -- Records of tao_user_signrule -- ---------------------------- INSERT INTO `tao_user_signrule` VALUES ('1', '1', '2', '0', '0', '0'); INSERT INTO `tao_user_signrule` VALUES ('2', '3', '3', '0', '0', '0'); INSERT INTO `tao_user_signrule` VALUES ('3', '5', '5', '0', '0', '0'); -- ---------------------------- -- Table structure for tao_user_viprule -- ---------------------------- DROP TABLE IF EXISTS `tao_user_viprule`; CREATE TABLE `tao_user_viprule` ( `id` int(2) NOT NULL AUTO_INCREMENT COMMENT '用户等级ID', `score` varchar(255) NOT NULL DEFAULT '0' COMMENT '积分区间', `vip` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'vip等级', `nick` varchar(20) DEFAULT NULL COMMENT '认证昵称', `rules` varchar(255) DEFAULT NULL COMMENT '权限', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '升级时间', `delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of tao_user_viprule -- ---------------------------- INSERT INTO `tao_user_viprule` VALUES ('1', '0-99', '0', '游民', '', '1585476523', '1585544577', '0'); INSERT INTO `tao_user_viprule` VALUES ('2', '100-299', '1', '富农', '', '1585476551', '1585546376', '0'); INSERT INTO `tao_user_viprule` VALUES ('3', '300-500', '2', '地主', '', '1585545450', '1585546241', '0'); INSERT INTO `tao_user_viprule` VALUES ('4', '501-699', '3', '土豪', '', '1585545542', '1585569657', '0'); -- ---------------------------- -- Table structure for tao_user_zan -- ---------------------------- DROP TABLE IF EXISTS `tao_user_zan`; CREATE TABLE `tao_user_zan` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '点赞主键id', `article_id` int DEFAULT NULL COMMENT '文章id', `comment_id` int(11) NOT NULL COMMENT '评论id', `user_id` int(11) NOT NULL COMMENT '用户id', `type` tinyint NOT NULL DEFAULT '2' COMMENT '1文章点赞2评论点赞', `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '点赞时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;