style:修改sql格式
This commit is contained in:
@@ -34,7 +34,8 @@ CREATE TABLE `tag_category`
|
||||
`is_category` boolean not null default true,
|
||||
`is_delete` boolean not null default false comment '该数据是否被删除'
|
||||
);
|
||||
--文章表
|
||||
|
||||
-- 文章表
|
||||
CREATE TABLE `article`
|
||||
(
|
||||
`a_id` bigint(20) primary key auto_increment,
|
||||
@@ -55,7 +56,8 @@ CREATE TABLE `article`
|
||||
foreign key (a_category_id) references tag_category (t_id),
|
||||
foreign key (a_author_id) references user (u_id)
|
||||
);
|
||||
--文章标签表
|
||||
|
||||
-- 文章标签表
|
||||
CREATE TABLE `article_tag`
|
||||
(
|
||||
`at_id` bigint(20) primary key auto_increment,
|
||||
@@ -65,7 +67,7 @@ CREATE TABLE `article_tag`
|
||||
foreign key (t_id) references tag_category (t_id)
|
||||
);
|
||||
|
||||
--评论/留言表
|
||||
-- 评论/留言表
|
||||
CREATE TABLE `comment`
|
||||
(
|
||||
`co_id` bigint(20) primary key auto_increment,
|
||||
@@ -79,6 +81,7 @@ CREATE TABLE `comment`
|
||||
foreign key (co_from_author_id) references user (u_id),
|
||||
foreign key (co_to_author_id) references user (u_id)
|
||||
);
|
||||
|
||||
-- 友站表
|
||||
CREATE TABLE `links`
|
||||
(
|
||||
@@ -92,6 +95,7 @@ CREATE TABLE `links`
|
||||
`l_email` varchar(255) comment '网站管理员的邮箱',
|
||||
`l_notification` boolean default false comment '是否通知了'
|
||||
);
|
||||
|
||||
-- 访客表
|
||||
CREATE TABLE `visitor`
|
||||
(
|
||||
@@ -102,7 +106,7 @@ CREATE TABLE `visitor`
|
||||
`is_delete` boolean not null default false comment '该数据是否被删除'
|
||||
);
|
||||
|
||||
--更新内容表
|
||||
-- 更新内容表
|
||||
CREATE TABLE `web_update`
|
||||
(
|
||||
`wu_id` int primary key auto_increment,
|
||||
|
||||
Reference in New Issue
Block a user