# 质量检验表增加生产工单id，用于排产下达时预生成第一道工序质检单（此时无报工id）
alter table quality_inspect
    add column work_order_id bigint null comment '生产工单id(排产下达预生成质检单用)' after product_main_id;

create index idx_quality_inspect_work_order_id on quality_inspect (work_order_id);
