-- tb_order 新增 payment_config_id 列
ALTER TABLE tb_order ADD COLUMN payment_config_id BIGINT;
COMMENT ON COLUMN tb_order.payment_config_id IS '支付配置ID(关联tb_wechat_config.id)';
CREATE INDEX idx_order_payment_config_id ON tb_order(payment_config_id) WHERE payment_config_id IS NOT NULL;
