代码拉取完成,页面将自动刷新
/*
Navicat Premium Data Transfer
Source Server : 47.97.116.9
Source Server Type : MySQL
Source Server Version : 50728
Source Host : 47.97.116.9:3306
Source Schema : blog
Target Server Type : MySQL
Target Server Version : 50728
File Encoding : 65001
Date: 01/12/2019 22:01:02
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for comments
-- ----------------------------
DROP TABLE IF EXISTS `comments`;
CREATE TABLE `comments` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_at` timestamp(0) NULL DEFAULT NULL COMMENT '更新时间',
`user_id` int(10) UNSIGNED NULL DEFAULT NULL,
`content` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '内容',
`post_id` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '文章id',
`read_state` tinyint(1) NULL DEFAULT 0 COMMENT '阅读状态',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 54 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '评论数据表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for links
-- ----------------------------
DROP TABLE IF EXISTS `links`;
CREATE TABLE `links` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_at` timestamp(0) NULL DEFAULT NULL COMMENT '更新时间',
`deleted_at` timestamp(0) NULL DEFAULT NULL,
`name` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '名称',
`url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '地址',
`sort` int(11) NULL DEFAULT 0 COMMENT '排序',
`view` int(11) NULL DEFAULT 0 COMMENT '访问次数',
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_links_deleted_at`(`deleted_at`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户订阅数据表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for pages
-- ----------------------------
DROP TABLE IF EXISTS `pages`;
CREATE TABLE `pages` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_at` timestamp(0) NULL DEFAULT NULL COMMENT '更新时间',
`title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标题',
`body` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '主题',
`view` int(11) NULL DEFAULT 0 COMMENT '查看计数',
`is_published` tinyint(1) NULL DEFAULT 0 COMMENT '查看计数',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '分页' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for post_tags
-- ----------------------------
DROP TABLE IF EXISTS `post_tags`;
CREATE TABLE `post_tags` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_at` timestamp(0) NULL DEFAULT NULL COMMENT '更新时间',
`post_id` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '文章id',
`tag_id` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '标签id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = ' 标签 帖子 中间表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of post_tags
-- ----------------------------
-- ----------------------------
-- Table structure for posts
-- ----------------------------
DROP TABLE IF EXISTS `posts`;
CREATE TABLE `posts` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_at` timestamp(0) NULL DEFAULT NULL COMMENT '更新时间',
`title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标题',
`body` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '主体',
`view` int(11) NULL DEFAULT 0 COMMENT '浏览次数',
`is_published` tinyint(1) NULL DEFAULT 0 COMMENT '是否发表',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '帖子' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of posts
-- ----------------------------
-- ----------------------------
-- Table structure for smms_files
-- ----------------------------
DROP TABLE IF EXISTS `smms_files`;
CREATE TABLE `smms_files` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_at` timestamp(0) NULL DEFAULT NULL COMMENT '更新时间',
`file_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`store_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`size` int(11) NULL DEFAULT NULL,
`width` int(11) NULL DEFAULT NULL,
`height` int(11) NULL DEFAULT NULL,
`hash` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`delete` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`path` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for subscribers
-- ----------------------------
DROP TABLE IF EXISTS `subscribers`;
CREATE TABLE `subscribers` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_at` timestamp(0) NULL DEFAULT NULL COMMENT '更新时间',
`deleted_at` timestamp(0) NULL DEFAULT NULL,
`email` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`verify_state` tinyint(1) NULL DEFAULT 0 COMMENT '验证状态',
`subscribe_state` tinyint(1) NULL DEFAULT 1 COMMENT '订阅状态',
`out_time` timestamp(0) NULL DEFAULT NULL COMMENT '过期时间',
`secret_key` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '秘钥',
`signature` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '签名',
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_subscribers_deleted_at`(`deleted_at`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户订阅 数据表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tags
-- ----------------------------
DROP TABLE IF EXISTS `tags`;
CREATE TABLE `tags` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_at` timestamp(0) NULL DEFAULT NULL COMMENT '更新时间',
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标签名称',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '标签 数据表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tags
-- ----------------------------
-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_at` timestamp(0) NULL DEFAULT NULL COMMENT '更新时间',
`deleted_at` timestamp(0) NULL DEFAULT NULL,
`email` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '邮箱',
`telephone` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '手机号码',
`password` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '密码',
`verify_state` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '邮箱验证状态',
`secret_key` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '密钥',
`out_time` timestamp(0) NULL DEFAULT NULL COMMENT '过期时间',
`github_login_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'github唯一标识',
`github_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'github地址',
`is_admin` tinyint(1) NULL DEFAULT 0 COMMENT '是否是管理员',
`avatar_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '头像链接',
`nick_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '昵称',
`lock_state` tinyint(1) NULL DEFAULT 0 COMMENT '锁定状态',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uix_users_email`(`email`) USING BTREE,
UNIQUE INDEX `uix_users_telephone`(`telephone`) USING BTREE,
UNIQUE INDEX `uix_users_github_login_id`(`github_login_id`) USING BTREE,
INDEX `idx_users_deleted_at`(`deleted_at`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 32 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户 数据表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of users
-- ----------------------------
SET FOREIGN_KEY_CHECKS = 1;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。