diff --git a/doc/设计文档/数据库设计/mes-wm.sql b/doc/设计文档/数据库设计/mes-wm.sql index 8018dd7..7213367 100644 --- a/doc/设计文档/数据库设计/mes-wm.sql +++ b/doc/设计文档/数据库设计/mes-wm.sql @@ -113,6 +113,8 @@ create table wm_transaction ( transaction_date datetime comment '事务日期', related_transaction_id bigint(20) comment '关联的事务ID', erp_date datetime comment 'ERP账期', + workorder_id bigint(20) comment '生产工单ID', + workorder_code varchar(64) comment '生产工单编号', recpt_date datetime comment '接收日期', expire_date datetime comment '库存有效期', attr1 varchar(64) default null comment '预留字段1', @@ -157,7 +159,6 @@ create table wm_material_stock ( quantity_onhand double(12,2) comment '在库数量', workorder_id bigint(20) comment '生产工单ID', workorder_code varchar(64) comment '生产工单编号', - workorder_name varchar(255) comment '生产工单名称', recpt_date datetime comment '入库时间', expire_date datetime comment '库存有效期', attr1 varchar(64) default null comment '预留字段1',