diff --git a/doc/设计文档/数据库设计/mes-pro.sql b/doc/设计文档/数据库设计/mes-pro.sql index fec77e5..76de2d7 100644 --- a/doc/设计文档/数据库设计/mes-pro.sql +++ b/doc/设计文档/数据库设计/mes-pro.sql @@ -20,6 +20,7 @@ create table pro_workorder ( client_id bigint(20) comment '客户ID', client_code varchar(64) comment '客户编码', client_name varchar(255) comment '客户名称', + batch_code varchar(64) comment '批次号', request_date datetime not null comment '需求日期', parent_id bigint(20) default 0 not null comment '父工单', ancestors varchar(500) not null comment '所有父节点ID', @@ -203,7 +204,7 @@ create table pro_route_product_bom ( record_id bigint(20) not null auto_increment comment '记录ID', route_id bigint(20) not null comment '工艺路线ID', process_id bigint(20) not null comment '工序ID', - product_id bigint(20) not null comment '产品物料ID', + product_id bigint(20) not null comment '产品BOM中的唯一ID', item_id bigint(20) not null comment '产品物料ID', item_code varchar(64) not null comment '产品物料编码', item_name varchar(255) not null comment '产品物料名称',