-- 回滚：删除 is_standalone 列和相关触发器

DROP TRIGGER IF EXISTS trg_device_sim_binding_soft_delete ON tb_device_sim_binding;
DROP TRIGGER IF EXISTS trg_device_sim_binding_standalone ON tb_device_sim_binding;
DROP FUNCTION IF EXISTS fn_update_card_standalone_on_soft_delete();
DROP FUNCTION IF EXISTS fn_update_card_standalone_on_bind();
DROP INDEX IF EXISTS idx_iot_card_standalone_shop_status_created;
DROP INDEX IF EXISTS idx_iot_card_standalone_shop_created;
ALTER TABLE tb_iot_card DROP COLUMN IF EXISTS is_standalone;
