feat:钱包规则代码生成

This commit is contained in:
dzc committed 2025-03-30 18:24:14 +08:00
1 parent bb80b19925
commit 00e53e3f4d
17 files changed
+323 -16

No files matched your search

+47
View File
@@ -173,6 +173,53 @@ CREATE TABLE wallet_type
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='钱包类型';
-- ----------------------------
-- Table structure for wallet_rule_join
-- ----------------------------
DROP TABLE IF EXISTS wallet_rule_join;
CREATE TABLE wallet_rule_join
(
id BIGINT(19) not null comment '主键',
source_wallet_type_id BIGINT(19) not null comment '源钱包类型id',
target_wallet_type_id BIGINT(19) not null comment '目标钱包类型id',
balance_multiple int DEFAULT 0 NOT NULL COMMENT '钱包转换百分比',
status VARCHAR(64) default '0' not null comment '是否启用',
create_by varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
create_time datetime DEFAULT NULL COMMENT '创建时间',
update_by varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '修改人',
update_time datetime DEFAULT NULL COMMENT '修改时间',
del_flag char(1) COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标记',
tenant_id bigint DEFAULT NULL COMMENT '租户ID',
PRIMARY KEY (id)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_general_ci COMMENT = '钱包规则配置';
-- ----------------------------
-- Table structure for wallet_rule_transaction
-- ----------------------------
DROP TABLE IF EXISTS wallet_rule_transaction;
CREATE TABLE wallet_rule_transaction
(
id BIGINT(19) not null comment '主键',
source_wallet_id BIGINT(19) not null comment '源钱包id',
target_wallet_id BIGINT(19) not null comment '目标钱包id',
source_wallet_balance int not null comment '源钱包余额',
target_wallet_balance int not null comment '目标钱包余额',
balance int DEFAULT 0 NOT NULL COMMENT '转换金额',
after_balance int DEFAULT 0 NOT NULL COMMENT '转换后的金额',
balance_multiple int DEFAULT 0 NOT NULL COMMENT '钱包转换百分比',
status VARCHAR(64) default '0' not null comment '是否启用',
create_by varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
create_time datetime DEFAULT NULL COMMENT '创建时间',
update_by varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '修改人',
update_time datetime DEFAULT NULL COMMENT '修改时间',
del_flag char(1) COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标记',
tenant_id bigint DEFAULT NULL COMMENT '租户ID',
PRIMARY KEY (id)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_general_ci COMMENT = '钱包转账记录';
-- ----------------------------
-- Table structure for wallet_active