-- prc_order_bill:增加套餐版本ID、套餐明细ID SET NAMES utf8mb4; ALTER TABLE prc_order_bill ADD COLUMN psv_id BIGINT DEFAULT NULL COMMENT '套餐版本ID,对应 prc_price_set_version.psv_id' AFTER customer_priceset_id, ADD COLUMN psd_id BIGINT DEFAULT NULL COMMENT '套餐明细ID,对应 prc_price_set_detail.psd_id' AFTER psv_id, ADD KEY idx_order_bill_psv (psv_id), ADD KEY idx_order_bill_psd (psd_id);