-- liquibase formatted sql
-- changeset enson:alter_pick_execution_issue_category_20251023

ALTER TABLE productprocessline 
ADD COLUMN bomProcessId INT ,
ADD COLUMN seqNo INT;

ALTER TABLE productprocessline
ADD CONSTRAINT fk_productprocessline_bomprocess 
FOREIGN KEY (bomProcessId) REFERENCES bom_process(id);

-- 添加索引

CREATE INDEX idx_productprocessline_bomprocess ON productprocessline(bomProcessId);
CREATE INDEX idx_productprocessline_seqno ON productprocessline(seqNo);