article
This commit is contained in:
parent
8c254ca14a
commit
e65bc07662
7
1750989232_create_article_category.up.sql
Normal file
7
1750989232_create_article_category.up.sql
Normal file
@ -0,0 +1,7 @@
|
||||
CREATE TABLE `ufutx_article_category`(
|
||||
`id` bigint(20) UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(191) NOT NULL comment "名称",
|
||||
`sort` integer(11) default 0 comment "排序",
|
||||
`created_at` timestamp null default null,
|
||||
`updated_at` timestamp null default null
|
||||
) ENGINE = InnoDB COMMENT = '文章分类';
|
13
1750989263_create_article.up.sql
Normal file
13
1750989263_create_article.up.sql
Normal file
@ -0,0 +1,13 @@
|
||||
CREATE TABLE `ufutx_article` (
|
||||
`id` bigint(20) UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT,
|
||||
`category_id` integer(11) default null comment "分类id",
|
||||
`title` varchar(191) NOT NULL comment "标题",
|
||||
`pic` varchar(191) NOT NULL comment "图片",
|
||||
`publisher` varchar(191) NOT NULL comment "发布者",
|
||||
`content` LONGTEXT NOT NULL comment "内容",
|
||||
`is_show` tinyInt(3) default 0 comment "是否展示",
|
||||
`is_recommend` tinyInt(3) default 0 comment "是否推荐",
|
||||
`sort` integer(11) default 0 comment "排序",
|
||||
`created_at` timestamp null default null,
|
||||
`updated_at` timestamp null default null
|
||||
) ENGINE = InnoDB COMMENT = '文章';
|
Loading…
Reference in New Issue
Block a user