From ff006c3d870a7b429f7f40463fe428ae161c7617 Mon Sep 17 00:00:00 2001 From: "JinLu.Yin" <411641505@qq.com> Date: Fri, 9 Sep 2022 23:21:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E7=AE=A1=E7=90=86=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=85=A5=E5=BA=93=E6=97=A5=E6=9C=9F=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/设计文档/数据库设计/mes-wm.sql | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/设计文档/数据库设计/mes-wm.sql b/doc/设计文档/数据库设计/mes-wm.sql index bccf48d..3ca8173 100644 --- a/doc/设计文档/数据库设计/mes-wm.sql +++ b/doc/设计文档/数据库设计/mes-wm.sql @@ -21,6 +21,8 @@ create table wm_warehouse ( primary key (warehouse_id) ) engine=innodb auto_increment=200 comment = '仓库表'; +--初始化一个虚拟的线边库 +insert into wm_warehouse (warehouse_code,warehouse_name,location,area,charge) values('XBK_VIRTUAL','线边库-虚拟',null,-1,null); -- ---------------------------- -- 2、库区表 @@ -45,6 +47,8 @@ create table wm_storage_location ( primary key (location_id) ) engine=innodb auto_increment=200 comment = '库区表'; +--初始化一个虚拟的线边库库区 +insert into wm_storage_location (location_code,location_name,warehouse_id,area,area_flag) values('XBKKQ_VIRTUAL','线边库库区-虚拟',200,-1,'Y'); -- ---------------------------- -- 3、库位表 @@ -74,6 +78,10 @@ create table wm_storage_area ( ) engine=innodb auto_increment=200 comment = '库位表'; +--初始化一个虚拟的线边库库位 +insert into wm_storage_area (area_code,area_name,location_id,area,enable_flag) values('XBKKW_VIRTUAL','线边库库位-虚拟',200,-1,'Y'); + + -- ---------------------------- -- 4、物料入库单表 -- ---------------------------- @@ -229,6 +237,7 @@ create table wm_material_stock ( vendor_name varchar(255) comment '供应商名称', vendor_nick varchar(64) comment '供应商简称', quantity_onhand double(12,2) comment '在库数量', + recpt_date datetime comment '入库时间', expire_date datetime comment '库存有效期', attr1 varchar(64) default null comment '预留字段1', attr2 varchar(255) default null comment '预留字段2',