Warehouses
Overview
Warehouses, the users allowed to work in them, and bin locations.
Code map
| Piece | Path |
|---|---|
| Warehouse | src/modules/operations/warehouse |
| Bins | src/modules/operations/bin-location |
| Schema | 30-warehouse.prisma |
| Guard | WarehouseGuard in src/common/request |
Entities: Warehouse, UserWarehouse, BinLocation.
Enums observed: WarehouseType, StockOwnership, BinLocationType, BinLocationStatus, VelocityClass.
Business rules
Implementation behavior
WarehouseGuardconfines an authenticated user to warehouses allowed by membership.x-warehouse-idand 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.