Files
BMS/bms-back/sql/price/order_bill_psv_psd_alter.sql
T
2026-09-21 17:46:21 +08:00

9 lines
430 B
SQL

-- 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);