Skip to main content
⚠️ Study project — an educational DDD exercise following real industry-standard patterns (the Site-Area-Zone-Aisle-Bay-Level-Position location-code hierarchy). Not a production system. Not affiliated with, endorsed by, or representative of the reference operator or any other company.

warehouse-systems · Generic Subdomain

Facility Layout

The system of record for where things physically are in the building — the warehouse map other contexts read but never write.

WH1Site-STORArea-AMBZone-A07Aisle-03Bay-02Level-BPosition

Coded location hierarchy

The industry-standard Site-Area-Zone-Aisle-Bay-Level-Position address, modelled as a value object with seven typed segments — never a free-text string, never an opaque id.

Chain of custody

Registering a slot resolves its Site → Zone → Aisle chain and rejects anything that does not land on existing, Active structure. No orphan locations, ever.

Placement rules

The guard that keeps ambient shelving out of the frozen zone — enforced once, at registration time, naming the exact rule it refused on. Every stored slot is legal by construction.

Draw the warehouse

Pre-ordered nested layout, an index-aligned 2D zone grid, and a server-rendered SVG floor plan. Renderable structure, not rows a client has to join and sort.

What it owns

  • Whether a coded location exists
  • Whether it is Active, under maintenance, or retired
  • Which kinds of storage are legal in which zones
  • Aisle walk order and direction, for travel-path planning

What it refuses to own

  • Stock, occupancy and reservations — that is inventory-storage
  • SKU master data (handling classification, unit dimensions and weight) — that is product-master
  • Tasks, assignments and dispatch — that is fulfillment-execution
  • Work release and flow balancing — that is wes-work-planning
  • Any write into another bounded context. Ever.