会员:增加会员等级增删改查

This commit is contained in:
owen
2023-08-20 15:54:06 +08:00
parent 9eca965dd6
commit e2032e7e97
42 changed files with 1924 additions and 3 deletions

View File

@ -1,3 +1,4 @@
DELETE FROM "member_user";
DELETE FROM "member_address";
DELETE FROM "member_tag";
DELETE FROM "member_tag";
DELETE FROM "member_level";

View File

@ -44,4 +44,23 @@ CREATE TABLE IF NOT EXISTS "member_tag"
"deleted" bit NOT NULL DEFAULT FALSE,
"tenant_id" bigint NOT NULL default '0',
PRIMARY KEY ("id")
) COMMENT '会员标签';
) COMMENT '会员标签';
CREATE TABLE IF NOT EXISTS "member_level"
(
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
"name" varchar NOT NULL,
"experience" int NOT NULL,
"value" int NOT NULL,
"discount" int NOT NULL,
"icon" varchar NOT NULL,
"bg_url" 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 default '0',
"status" int NOT NULL,
PRIMARY KEY ("id")
) COMMENT '会员等级';