-- 为代理充值记录添加支付配置ID字段
ALTER TABLE tb_agent_recharge_record ADD COLUMN payment_config_id BIGINT;
COMMENT ON COLUMN tb_agent_recharge_record.payment_config_id IS '支付配置ID(关联tb_wechat_config.id)';
CREATE INDEX idx_agent_recharge_payment_config_id ON tb_agent_recharge_record(payment_config_id) WHERE payment_config_id IS NOT NULL;
