Item
+String name+String SKU+String specification+int quantity
1
Shelf
+String shelfId+List locations
StockMovement
+String movementId+Item item+int quantity+Location fromLocation+Location toLocation+Date date+String type // \"上架\" or \"下架\"
*
UML类图-上架后库存变动举例
Warehouse
+String name+String location+List shelves
+addShelf(Shelf shelf)+removeShelf(Shelf shelf)
Location
+String locationId+Item item
InventoryRecord
+Item item+int quantity+String type // \"上架\" or \"下架\"+Date date