-- tb_recharge_order 新增 payment_config_id 列（用于支付回调时获取微信配置）
ALTER TABLE tb_recharge_order ADD COLUMN payment_config_id BIGINT;
COMMENT ON COLUMN tb_recharge_order.payment_config_id IS '支付配置ID(关联tb_wechat_config.id)';
CREATE INDEX idx_recharge_order_payment_config_id ON tb_recharge_order(payment_config_id) WHERE payment_config_id IS NOT NULL;