mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-26 08:55:07 +08:00
promotion:完善优惠劵模板的单元测试、禁用功能
This commit is contained in:
@ -16,4 +16,33 @@ CREATE TABLE IF NOT EXISTS "market_activity" (
|
||||
"deleted" bit NOT NULL DEFAULT FALSE,
|
||||
"tenant_id" bigint(20) NOT NULL,
|
||||
PRIMARY KEY ("id")
|
||||
) COMMENT '促销活动';
|
||||
) COMMENT '促销活动';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "promotion_coupon_template" (
|
||||
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
|
||||
"name" varchar NOT NULL,
|
||||
"status" int NOT NULL,
|
||||
"total_count" int NOT NULL,
|
||||
"take_limit_count" int NOT NULL,
|
||||
"take_type" int NOT NULL,
|
||||
"use_price" int NOT NULL,
|
||||
"product_scope" int NOT NULL,
|
||||
"product_spu_ids" varchar,
|
||||
"validity_type" int NOT NULL,
|
||||
"valid_start_time" datetime,
|
||||
"valid_end_time" datetime,
|
||||
"fixed_start_term" int,
|
||||
"fixed_end_term" int,
|
||||
"discount_type" int NOT NULL,
|
||||
"discount_percent" int,
|
||||
"discount_price" int,
|
||||
"discount_limit_price" int,
|
||||
"take_count" int NOT NULL DEFAULT 0,
|
||||
"use_count" int NOT NULL DEFAULT 0,
|
||||
"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,
|
||||
PRIMARY KEY ("id")
|
||||
) COMMENT '优惠劵模板';
|
||||
|
Reference in New Issue
Block a user