The scenario
A wholesale computer hardware distributor needs a class model that tracks products, suppliers, purchase orders, customers, sales orders, and warehouse inventory.
What is in this drawing
Read the decisions behind it.
01
Use composition for order-to-line relationships because line items cannot exist without their parent order.
02
Separate Product catalog entries from InventoryItem physical stock to support serialized hardware tracking.
03
Keep Supplier and Customer as independent aggregate roots linked to their respective purchase and sales orders.
Use when designing sales and inventory systems for hardware distributors, computer resellers, or electronics wholesalers.
More like this