1 Star 0 Fork 0

taishi/blog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
blog.sql 2.96 KB
一键复制 编辑 原始数据 按行查看 历史
TIM 提交于 9年前 . add sql script
/*
Navicat MySQL Data Transfer
Source Server : 我的服务器
Source Server Version : 50173
Source Host : 127.0.0.1:3306
Source Database : blog
Target Server Type : MYSQL
Target Server Version : 50173
File Encoding : 65001
Date: 2016-11-28 10:30:44
*/
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,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 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=3 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 AUTO_INCREMENT=15 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=2 DEFAULT CHARSET=utf8;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/mygolang2016/blog.git
git@gitee.com:mygolang2016/blog.git
mygolang2016
blog
blog
master

搜索帮助