营销活动: 新增文章管理

This commit is contained in:
puhui999
2023-10-15 16:16:41 +08:00
parent a47ab32800
commit 55eed1377a
21 changed files with 971 additions and 11 deletions

View File

@@ -8,3 +8,5 @@ DELETE FROM "promotion_seckill_config";
DELETE FROM "promotion_combination_activity";
DELETE
FROM "promotion_article_category";
DELETE
FROM "promotion_article";

View File

@@ -196,4 +196,28 @@ CREATE TABLE IF NOT EXISTS "promotion_article_category"
"deleted" bit NOT NULL DEFAULT FALSE,
"tenant_id" bigint NOT NULL,
PRIMARY KEY ("id")
) COMMENT '文章分类表';
) COMMENT '文章分类表';
CREATE TABLE IF NOT EXISTS "promotion_article"
(
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
"category_id" bigint NOT NULL,
"title" varchar NOT NULL,
"author" varchar,
"pic_url" varchar NOT NULL,
"introduction" varchar,
"browse_count" varchar,
"sort" int NOT NULL,
"status" int NOT NULL,
"spu_id" bigint NOT NULL,
"recommend_hot" bit NOT NULL,
"recommend_banner" bit NOT NULL,
"content" varchar NOT NULL,
"creator" varchar DEFAULT '',
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updater" varchar DEFAULT '',
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
"deleted" bit NOT NULL DEFAULT FALSE,
"tenant_id" bigint NOT NULL,
PRIMARY KEY ("id")
) COMMENT '文章管理表';