设计文档提交
This commit is contained in:
parent
4fcabb2de3
commit
7a67a2bf69
Binary file not shown.
Binary file not shown.
53
doc/设计文档/数据库设计/mes-dv.sql
Normal file
53
doc/设计文档/数据库设计/mes-dv.sql
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
-- ----------------------------
|
||||||
|
-- 1、设备类型表
|
||||||
|
-- ----------------------------
|
||||||
|
drop table if exists dv_machinery_type;
|
||||||
|
create table dv_machinery_type (
|
||||||
|
machinery_type_id bigint(20) not null auto_increment comment '设备类型ID',
|
||||||
|
machinery_type_code varchar(64) not null comment '设备类型编码',
|
||||||
|
machinery_type_name varchar(255) not null comment '设备类型名称',
|
||||||
|
parent_type_id bigint(20) default 0 comment '父类型ID',
|
||||||
|
ancestors varchar(255) not null comment '所有父节点ID',
|
||||||
|
enable_flag char(1) default 'Y' not null comment '是否启用',
|
||||||
|
remark varchar(500) default '' comment '备注',
|
||||||
|
attr1 varchar(64) default null comment '预留字段1',
|
||||||
|
attr2 varchar(255) default null comment '预留字段2',
|
||||||
|
attr3 int(11) default 0 comment '预留字段3',
|
||||||
|
attr4 int(11) default 0 comment '预留字段4',
|
||||||
|
create_by varchar(64) default '' comment '创建者',
|
||||||
|
create_time datetime comment '创建时间',
|
||||||
|
update_by varchar(64) default '' comment '更新者',
|
||||||
|
update_time datetime comment '更新时间',
|
||||||
|
primary key (machinery_type_id)
|
||||||
|
) engine=innodb auto_increment=200 comment = '设备类型表';
|
||||||
|
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- 2、设备表
|
||||||
|
-- ----------------------------
|
||||||
|
drop table if exists dv_machinery;
|
||||||
|
create table dv_machinery (
|
||||||
|
machinery_id bigint(20) not null auto_increment comment '设备类型ID',
|
||||||
|
machinery_code varchar(64) not null comment '设备类型编码',
|
||||||
|
machinery_name varchar(255) not null comment '设备类型名称',
|
||||||
|
machinery_brand varchar(255) comment '品牌',
|
||||||
|
machinery_spec varchar(255) comment '规格型号',
|
||||||
|
machinery_type_id bigint(20) not null comment '设备类型ID',
|
||||||
|
machinery_type_code varchar(64) comment '设备类型编码',
|
||||||
|
machinery_type_name varchar(255) comment '设备类型名称',
|
||||||
|
workshop_id bigint(20) not null comment '所属车间ID',
|
||||||
|
workshop_code varchar(64) comment '所属车间编码',
|
||||||
|
workshop_name varchar(255) comment '所属车间名称',
|
||||||
|
status varchar(64) default 'STOP' not null comment '设备状态',
|
||||||
|
remark varchar(500) default '' comment '备注',
|
||||||
|
attr1 varchar(64) default null comment '预留字段1',
|
||||||
|
attr2 varchar(255) default null comment '预留字段2',
|
||||||
|
attr3 int(11) default 0 comment '预留字段3',
|
||||||
|
attr4 int(11) default 0 comment '预留字段4',
|
||||||
|
create_by varchar(64) default '' comment '创建者',
|
||||||
|
create_time datetime comment '创建时间',
|
||||||
|
update_by varchar(64) default '' comment '更新者',
|
||||||
|
update_time datetime comment '更新时间',
|
||||||
|
primary key (machinery_id)
|
||||||
|
) engine=innodb auto_increment=200 comment = '设备表';
|
||||||
|
|
@ -189,7 +189,7 @@ create table md_workshop (
|
|||||||
workshop_id bigint(20) not null auto_increment comment '车间ID',
|
workshop_id bigint(20) not null auto_increment comment '车间ID',
|
||||||
workshop_code varchar(64) not null comment '车间编码',
|
workshop_code varchar(64) not null comment '车间编码',
|
||||||
workshop_name varchar(255) not null comment '车间名称',
|
workshop_name varchar(255) not null comment '车间名称',
|
||||||
area double(12,2) default 'Y' not null comment '面积',
|
area double(12,2) comment '面积',
|
||||||
charge varchar(64) comment '负责人',
|
charge varchar(64) comment '负责人',
|
||||||
enable_flag char(1) default 'Y' not null comment '是否启用',
|
enable_flag char(1) default 'Y' not null comment '是否启用',
|
||||||
remark varchar(500) default '' comment '备注',
|
remark varchar(500) default '' comment '备注',
|
||||||
|
@ -46,4 +46,32 @@ create table wm_storage_location (
|
|||||||
) engine=innodb auto_increment=200 comment = '库区表';
|
) engine=innodb auto_increment=200 comment = '库区表';
|
||||||
|
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- 3、库位表
|
||||||
|
-- ----------------------------
|
||||||
|
drop table if exists wm_storage_area;
|
||||||
|
create table wm_storage_area (
|
||||||
|
area_id bigint(20) not null auto_increment comment '库位ID',
|
||||||
|
area_code varchar(64) not null comment '库位编码',
|
||||||
|
area_name varchar(255) not null comment '库位名称',
|
||||||
|
location_id bigint(20) not null comment '库区ID',
|
||||||
|
area double(8,2) comment '面积',
|
||||||
|
max_loa double(8,2) comment '最大载重量',
|
||||||
|
position_x int(11) comment '库位位置X',
|
||||||
|
position_y int(11) comment '库位位置y',
|
||||||
|
position_z int(11) comment '库位位置z',
|
||||||
|
enable_flag char(1) comment '是否启用',
|
||||||
|
remark varchar(500) default '' comment '备注',
|
||||||
|
attr1 varchar(64) default null comment '预留字段1',
|
||||||
|
attr2 varchar(255) default null comment '预留字段2',
|
||||||
|
attr3 int(11) default 0 comment '预留字段3',
|
||||||
|
attr4 int(11) default 0 comment '预留字段4',
|
||||||
|
create_by varchar(64) default '' comment '创建者',
|
||||||
|
create_time datetime comment '创建时间',
|
||||||
|
update_by varchar(64) default '' comment '更新者',
|
||||||
|
update_time datetime comment '更新时间',
|
||||||
|
primary key (area_id)
|
||||||
|
) engine=innodb auto_increment=200 comment = '库位表';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Binary file not shown.
@ -81,5 +81,6 @@ public class UserConstants
|
|||||||
*/
|
*/
|
||||||
public static final String ITEM_TYPE_CODE ="ITEM_TYPE_CODE";
|
public static final String ITEM_TYPE_CODE ="ITEM_TYPE_CODE";
|
||||||
public static final String ITEM_CODE ="ITEM_CODE";
|
public static final String ITEM_CODE ="ITEM_CODE";
|
||||||
|
public static final String MACHINERY_TYPE_CODE="MACHINERY_TYPE_CODE";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user