mall:完善商品分类的后端接口

This commit is contained in:
YunaiV
2022-07-30 19:37:31 +08:00
parent 1976571ae8
commit 6a0f713452
27 changed files with 556 additions and 723 deletions

View File

@@ -2,8 +2,7 @@ CREATE TABLE IF NOT EXISTS "product_category" (
"id" bigint(20) NOT NULL GENERATED BY DEFAULT AS IDENTITY,
"parent_id" bigint(20) NOT NULL,
"name" varchar(255) NOT NULL,
"icon" varchar(100),
"banner_url" varchar(255) NOT NULL,
"pic_url" varchar(255) NOT NULL,
"sort" int(11) NOT NULL,
"description" varchar(1024) NOT NULL,
"status" tinyint(4) NOT NULL,
@@ -12,7 +11,6 @@ CREATE TABLE IF NOT EXISTS "product_category" (
"updater" varchar(64) DEFAULT '',
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
"deleted" bit NOT NULL DEFAULT FALSE,
"tenant_id" bigint(20) NOT NULL,
PRIMARY KEY ("id")
) COMMENT '商品分类';
@@ -29,6 +27,5 @@ CREATE TABLE IF NOT EXISTS "product_brand" (
"updater" varchar(64) DEFAULT '',
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
"deleted" bit NOT NULL DEFAULT FALSE,
"tenant_id" bigint(20) NOT NULL,
PRIMARY KEY ("id")
) COMMENT '品牌';