Skip to content

Commit 9ca809a

Browse files
author
shimh-develop
committed
文档
1 parent d0bcc22 commit 9ca809a

40 files changed

+245
-249
lines changed

blog-api/src/main/java/com/shimh/BlogApiApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ public class BlogApiApplication {
88

99
public static void main(String[] args) {
1010
SpringApplication app = new SpringApplication(BlogApiApplication.class);
11-
app.run(args);
11+
app.run(args);
1212
}
1313
}

blog-api/src/main/resources/sql/blog-data.sql

Lines changed: 86 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
/*
2+
Navicat MySQL Data Transfer
3+
4+
Source Server : r
5+
Source Server Version : 50131
6+
Source Host : localhost:3306
7+
Source Database : blog
8+
9+
Target Server Type : MYSQL
10+
Target Server Version : 50131
11+
File Encoding : 65001
12+
13+
Date: 2018-02-01 15:21:04
14+
*/
15+
16+
SET FOREIGN_KEY_CHECKS=0;
17+
18+
-- ----------------------------
19+
-- Table structure for me_article
20+
-- ----------------------------
21+
DROP TABLE IF EXISTS `me_article`;
22+
CREATE TABLE `me_article` (
23+
`id` int(11) NOT NULL AUTO_INCREMENT,
24+
`comment_counts` int(11) DEFAULT NULL,
25+
`create_date` datetime DEFAULT NULL,
26+
`summary` varchar(100) DEFAULT NULL,
27+
`title` varchar(64) DEFAULT NULL,
28+
`view_counts` int(11) DEFAULT NULL,
29+
`weight` int(11) NOT NULL,
30+
`author_id` bigint(20) DEFAULT NULL,
31+
`body_id` bigint(20) DEFAULT NULL,
32+
`category_id` int(11) DEFAULT NULL,
33+
PRIMARY KEY (`id`),
34+
KEY `FKndx2m69302cso79y66yxiju4h` (`author_id`),
35+
KEY `FKrd11pjsmueckfrh9gs7bc6374` (`body_id`),
36+
KEY `FKjrn3ua4xmiulp8raj7m9d2xk6` (`category_id`),
37+
CONSTRAINT `FKjrn3ua4xmiulp8raj7m9d2xk6` FOREIGN KEY (`category_id`) REFERENCES `me_category` (`id`),
38+
CONSTRAINT `FKndx2m69302cso79y66yxiju4h` FOREIGN KEY (`author_id`) REFERENCES `sys_user` (`id`),
39+
CONSTRAINT `FKrd11pjsmueckfrh9gs7bc6374` FOREIGN KEY (`body_id`) REFERENCES `me_article_body` (`id`)
40+
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
41+
42+
-- ----------------------------
43+
-- Table structure for me_article_body
44+
-- ----------------------------
45+
DROP TABLE IF EXISTS `me_article_body`;
46+
CREATE TABLE `me_article_body` (
47+
`id` bigint(20) NOT NULL AUTO_INCREMENT,
48+
`content` longtext,
49+
`content_html` longtext,
50+
PRIMARY KEY (`id`)
51+
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;
52+
53+
-- ----------------------------
54+
-- Table structure for me_article_tag
55+
-- ----------------------------
56+
DROP TABLE IF EXISTS `me_article_tag`;
57+
CREATE TABLE `me_article_tag` (
58+
`article_id` int(11) NOT NULL,
59+
`tag_id` int(11) NOT NULL,
60+
KEY `FK2s65pu9coxh7w16s8jycih79w` (`tag_id`),
61+
KEY `FKsmysra6pt3ehcvts18q2h4409` (`article_id`),
62+
CONSTRAINT `FKsmysra6pt3ehcvts18q2h4409` FOREIGN KEY (`article_id`) REFERENCES `me_article` (`id`),
63+
CONSTRAINT `FK2s65pu9coxh7w16s8jycih79w` FOREIGN KEY (`tag_id`) REFERENCES `me_tag` (`id`)
64+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
65+
66+
-- ----------------------------
67+
-- Table structure for me_category
68+
-- ----------------------------
69+
DROP TABLE IF EXISTS `me_category`;
70+
CREATE TABLE `me_category` (
71+
`id` int(11) NOT NULL AUTO_INCREMENT,
72+
`avatar` varchar(255) DEFAULT NULL,
73+
`categoryname` varchar(255) DEFAULT NULL,
74+
`description` varchar(255) DEFAULT NULL,
75+
PRIMARY KEY (`id`)
76+
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
77+
78+
-- ----------------------------
79+
-- Table structure for me_comment
80+
-- ----------------------------
81+
DROP TABLE IF EXISTS `me_comment`;
82+
CREATE TABLE `me_comment` (
83+
`id` int(11) NOT NULL AUTO_INCREMENT,
84+
`content` varchar(255) DEFAULT NULL,
85+
`create_date` datetime DEFAULT NULL,
86+
`article_id` int(11) DEFAULT NULL,
87+
`author_id` bigint(20) DEFAULT NULL,
88+
PRIMARY KEY (`id`),
89+
KEY `FKecq0fuo9k0lnmea6r01vfhiok` (`article_id`),
90+
KEY `FKkvuyh6ih7dt1rfqhwsjomsa6i` (`author_id`),
91+
CONSTRAINT `FKkvuyh6ih7dt1rfqhwsjomsa6i` FOREIGN KEY (`author_id`) REFERENCES `sys_user` (`id`),
92+
CONSTRAINT `FKecq0fuo9k0lnmea6r01vfhiok` FOREIGN KEY (`article_id`) REFERENCES `me_article` (`id`)
93+
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;
94+
95+
-- ----------------------------
96+
-- Table structure for me_tag
97+
-- ----------------------------
98+
DROP TABLE IF EXISTS `me_tag`;
99+
CREATE TABLE `me_tag` (
100+
`id` int(11) NOT NULL AUTO_INCREMENT,
101+
`avatar` varchar(255) DEFAULT NULL,
102+
`tagname` varchar(255) DEFAULT NULL,
103+
PRIMARY KEY (`id`)
104+
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
105+
106+
-- ----------------------------
107+
-- Table structure for sys_user
108+
-- ----------------------------
109+
DROP TABLE IF EXISTS `sys_user`;
110+
CREATE TABLE `sys_user` (
111+
`id` bigint(20) NOT NULL AUTO_INCREMENT,
112+
`account` varchar(64) DEFAULT NULL,
113+
`admin` bit(1) DEFAULT NULL,
114+
`avatar` varchar(255) DEFAULT NULL,
115+
`create_date` datetime DEFAULT NULL,
116+
`deleted` bit(1) DEFAULT NULL,
117+
`email` varchar(128) DEFAULT NULL,
118+
`last_login` datetime DEFAULT NULL,
119+
`mobile_phone_number` varchar(20) DEFAULT NULL,
120+
`nickname` varchar(255) DEFAULT NULL,
121+
`password` varchar(64) DEFAULT NULL,
122+
`salt` varchar(255) DEFAULT NULL,
123+
`status` varchar(255) DEFAULT NULL,
124+
PRIMARY KEY (`id`),
125+
UNIQUE KEY `UK_awpog86ljqwb89aqa1c5gvdrd` (`account`),
126+
UNIQUE KEY `UK_ahtq5ew3v0kt1n7hf1sgp7p8l` (`email`)
127+
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;

blog-api/src/main/resources/sql/blog.sql

Lines changed: 0 additions & 177 deletions
This file was deleted.

blog-api/src/main/resources/static/css/app.a81ee99c4141486242c0e6e157479792.css renamed to blog-api/src/main/resources/static/css/app.113ca18bb99dea8cf02f79693b05bc4b.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blog-api/src/main/resources/static/css/app.113ca18bb99dea8cf02f79693b05bc4b.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blog-api/src/main/resources/static/css/app.a81ee99c4141486242c0e6e157479792.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.
-16.6 KB
Binary file not shown.

blog-api/src/main/resources/static/index.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

blog-api/src/main/resources/static/js/1.10c70a504a399932751f.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blog-api/src/main/resources/static/js/1.5809155403b933968eec.js.map renamed to blog-api/src/main/resources/static/js/1.10c70a504a399932751f.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blog-api/src/main/resources/static/js/1.5809155403b933968eec.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)