钱包流水新增资产信息
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m59s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m59s
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE tb_agent_wallet_transaction
|
||||
DROP COLUMN IF EXISTS asset_identifier,
|
||||
DROP COLUMN IF EXISTS asset_id,
|
||||
DROP COLUMN IF EXISTS asset_type;
|
||||
@@ -0,0 +1,10 @@
|
||||
-- 为代理钱包流水新增消费资产快照字段
|
||||
-- 仅新产生的套餐扣款流水在消费发生时写入,存量历史流水不回填。
|
||||
ALTER TABLE tb_agent_wallet_transaction
|
||||
ADD COLUMN IF NOT EXISTS asset_type VARCHAR(20) NOT NULL DEFAULT '',
|
||||
ADD COLUMN IF NOT EXISTS asset_id BIGINT NOT NULL DEFAULT 0,
|
||||
ADD COLUMN IF NOT EXISTS asset_identifier VARCHAR(100) NOT NULL DEFAULT '';
|
||||
|
||||
COMMENT ON COLUMN tb_agent_wallet_transaction.asset_type IS '消费资产类型快照:iot_card-物联网卡 | device-设备';
|
||||
COMMENT ON COLUMN tb_agent_wallet_transaction.asset_id IS '消费资产ID快照(卡ID或设备ID)';
|
||||
COMMENT ON COLUMN tb_agent_wallet_transaction.asset_identifier IS '消费资产标识快照(ICCID、IMEI或虚拟号)';
|
||||
Reference in New Issue
Block a user