From e65bc07662cbc485ad30cf08fa3b1736d53b6031 Mon Sep 17 00:00:00 2001 From: Hankin Date: Fri, 27 Jun 2025 16:29:15 +0800 Subject: [PATCH] article --- 1750989232_create_article_category.up.sql | 7 +++++++ 1750989263_create_article.up.sql | 13 +++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 1750989232_create_article_category.up.sql create mode 100644 1750989263_create_article.up.sql diff --git a/1750989232_create_article_category.up.sql b/1750989232_create_article_category.up.sql new file mode 100644 index 0000000..44f2455 --- /dev/null +++ b/1750989232_create_article_category.up.sql @@ -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 = '文章分类'; \ No newline at end of file diff --git a/1750989263_create_article.up.sql b/1750989263_create_article.up.sql new file mode 100644 index 0000000..52b7399 --- /dev/null +++ b/1750989263_create_article.up.sql @@ -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 = '文章'; \ No newline at end of file