代码拉取完成,页面将自动刷新
/*
Navicat MySQL Data Transfer
Source Server : mysql本地连接
Source Server Version : 50624
Source Host : localhost:3306
Source Database : blog
Target Server Type : MYSQL
Target Server Version : 50624
File Encoding : 65001
Date: 2017-01-17 16:37:35
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for blog
-- ----------------------------
DROP TABLE IF EXISTS `blog`;
CREATE TABLE `blog` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`title` varchar(500) DEFAULT NULL,
`subject` text,
`content` text,
`keywords` varchar(100) DEFAULT NULL,
`create_time` timestamp NULL DEFAULT NULL,
`last_modify_time` timestamp NULL DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`category_id` int(11) DEFAULT NULL,
`personal` tinyint(4) DEFAULT NULL,
`author` varchar(50) DEFAULT NULL,
`source_url` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=133 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for blog_statistics
-- ----------------------------
DROP TABLE IF EXISTS `blog_statistics`;
CREATE TABLE `blog_statistics` (
`blog_id` bigint(20) NOT NULL,
`comment_count` int(11) DEFAULT NULL,
`view_count` int(11) DEFAULT NULL,
`like_count` int(11) DEFAULT NULL,
PRIMARY KEY (`blog_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for category
-- ----------------------------
DROP TABLE IF EXISTS `category`;
CREATE TABLE `category` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL,
`sort_index` int(11) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for comment
-- ----------------------------
DROP TABLE IF EXISTS `comment`;
CREATE TABLE `comment` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`comment` text,
`create_time` datetime DEFAULT NULL,
`blog_id` bigint(20) DEFAULT NULL,
`pid` bigint(20) DEFAULT NULL,
`level` tinyint(4) DEFAULT NULL,
`type` tinyint(4) DEFAULT NULL,
`replyer_id` bigint(20) DEFAULT NULL,
`receiver_id` bigint(20) DEFAULT NULL,
`status` tinyint(4) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`account` varchar(50) NOT NULL,
`password` varchar(255) NOT NULL,
`name` varchar(50) DEFAULT NULL,
`head` varchar(255) DEFAULT NULL,
`home_url` varchar(255) DEFAULT NULL,
`phone` varchar(20) DEFAULT NULL,
`email` varchar(50) DEFAULT NULL,
`qq` varchar(20) DEFAULT NULL,
`admin` tinyint(4) DEFAULT NULL,
`ip` varchar(50) DEFAULT NULL,
`last_login_ip` varchar(50) DEFAULT NULL,
`last_login_time` datetime DEFAULT NULL,
`status` tinyint(4) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。