1 Star 0 Fork 0

李阿飞 / blog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
blog.sql 2.99 KB
一键复制 编辑 原始数据 按行查看 历史
TIM 提交于 2017-01-17 16:38 . sql modify
/*
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;
Java
1
https://gitee.com/Leeafei/blog.git
git@gitee.com:Leeafei/blog.git
Leeafei
blog
blog
master

搜索帮助