refactor: 移除 IoT 卡未使用的价格字段
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m2s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m2s
- 移除 IotCard 模型的 cost_price 和 distribute_price 字段 - 移除 StandaloneIotCardResponse DTO 中对应的字段 - 添加数据库迁移文件 000066_remove_iot_card_price_fields - 更新 opencode.json 配置 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
7
migrations/000066_remove_iot_card_price_fields.down.sql
Normal file
7
migrations/000066_remove_iot_card_price_fields.down.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
-- 回滚:恢复 IoT 卡的成本价和分销价字段
|
||||
|
||||
ALTER TABLE tb_iot_card ADD COLUMN IF NOT EXISTS cost_price BIGINT DEFAULT 0;
|
||||
ALTER TABLE tb_iot_card ADD COLUMN IF NOT EXISTS distribute_price BIGINT DEFAULT 0;
|
||||
|
||||
COMMENT ON COLUMN tb_iot_card.cost_price IS '成本价(分为单位)';
|
||||
COMMENT ON COLUMN tb_iot_card.distribute_price IS '分销价(分为单位)';
|
||||
7
migrations/000066_remove_iot_card_price_fields.up.sql
Normal file
7
migrations/000066_remove_iot_card_price_fields.up.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
-- 移除 IoT 卡的成本价和分销价字段
|
||||
-- 这两个字段未被任何业务逻辑使用,实际的价格管理在套餐分配层面完成
|
||||
|
||||
ALTER TABLE tb_iot_card DROP COLUMN IF EXISTS cost_price;
|
||||
ALTER TABLE tb_iot_card DROP COLUMN IF EXISTS distribute_price;
|
||||
|
||||
COMMENT ON TABLE tb_iot_card IS 'IoT 卡表(移除了未使用的 cost_price 和 distribute_price 字段)';
|
||||
Reference in New Issue
Block a user