Skip to main content

Warehouses

Overview​

Warehouses, the users allowed to work in them, and bin locations.

Code map​

PiecePath
Warehousesrc/modules/operations/warehouse
Binssrc/modules/operations/bin-location
Schema30-warehouse.prisma
GuardWarehouseGuard in src/common/request

Entities: Warehouse, UserWarehouse, BinLocation.

Enums observed: WarehouseType, StockOwnership, BinLocationType, BinLocationStatus, VelocityClass.

Business rules​

Implementation behavior

WarehouseGuard confines an authenticated user to warehouses allowed by membership. x-warehouse-id and warehouse ids in the route, query, or body can only narrow that set. The guard returns true when there is no user.

Status

Enforced by the guard.

Commercial meaning of StockOwnership (seller versus tenant) is unknown.

API surface​

Warehouse and bin-location controllers. The floor app selects a warehouse inside the confined set. It cannot grant itself another warehouse by sending a header.

Workflows​

Fulfillment, Inventory, Authentication.