trade: 分销业务 - 佣金提现后台管理

This commit is contained in:
owen 2023-09-19 22:20:32 +08:00
parent 32e1fc66ce
commit e22c577f7a
2 changed files with 27 additions and 1 deletions

View File

@ -4,3 +4,4 @@ DELETE FROM trade_after_sale;
DELETE FROM trade_after_sale_log; DELETE FROM trade_after_sale_log;
DELETE FROM trade_brokerage_user; DELETE FROM trade_brokerage_user;
DELETE FROM trade_brokerage_record; DELETE FROM trade_brokerage_record;
DELETE FROM "trade_brokerage_withdraw";

View File

@ -163,4 +163,29 @@ CREATE TABLE IF NOT EXISTS "trade_brokerage_record"
"deleted" bit NOT NULL DEFAULT FALSE, "deleted" bit NOT NULL DEFAULT FALSE,
"tenant_id" bigint not null default '0', "tenant_id" bigint not null default '0',
PRIMARY KEY ("id") PRIMARY KEY ("id")
) COMMENT '佣金记录'; ) COMMENT '佣金记录';
CREATE TABLE IF NOT EXISTS "trade_brokerage_withdraw"
(
"id" int NOT NULL GENERATED BY DEFAULT AS IDENTITY,
"user_id" bigint NOT NULL,
"price" int NOT NULL,
"fee_price" int NOT NULL,
"total_price" int NOT NULL,
"type" varchar NOT NULL,
"name" varchar,
"account_no" varchar,
"bank_name" varchar,
"bank_address" varchar,
"account_qr_code_url" varchar,
"status" varchar NOT NULL,
"audit_reason" varchar,
"audit_time" varchar,
"remark" varchar,
"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',
PRIMARY KEY ("id")
) COMMENT '佣金提现';