-- liquibase formatted sql
-- changeset enson:alter_pick_execution_issue_category_20251023

ALTER TABLE productprocess 
ADD COLUMN bomId INT COMMENT 'BOM ID';

ALTER TABLE productprocess
ADD CONSTRAINT fk_productprocess_bom 
FOREIGN KEY (bomId) REFERENCES bom(id);

-- 添加索引
CREATE INDEX idx_productprocess_bom ON productprocess(bomId);