小改
This commit is contained in:
@@ -16,19 +16,10 @@ create table wms_stock
|
||||
update_time datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '更新时间',
|
||||
update_by varchar(50) null comment '更新人',
|
||||
constraint fk_stock_warehouse
|
||||
foreign key (warehouse_id) references wms_warehouse (warehouse_id),
|
||||
constraint fk_stock_raw_material
|
||||
foreign key (raw_material_id) references wms_raw_material (raw_material_id),
|
||||
constraint fk_stock_coil
|
||||
foreign key (coil_id) references wms_material_coil (coil_id)
|
||||
foreign key (warehouse_id) references wms_warehouse (warehouse_id)
|
||||
)
|
||||
comment '库存表:原材料-钢卷-库区的存放关系' charset = utf8mb4;
|
||||
|
||||
create index idx_stock_raw_material
|
||||
on wms_stock (raw_material_id);
|
||||
|
||||
create index idx_stock_coil
|
||||
on wms_stock (coil_id);
|
||||
|
||||
create index idx_stock_warehouse
|
||||
on wms_stock (warehouse_id);
|
||||
|
||||
Reference in New Issue
Block a user