Entity relationships
Model the records behind an order
Connect customers, orders and products, then show payment and delivery records.
Your editor remains in its original tab. Return opens your saved work here; edited copies are preserved.
When is this useful?
Use an entity-relationship diagram to discuss the information a system must keep and the relationships between records.
Read the example
This walkthrough describes the original catalogue example; your own document may differ.
Start with Customer and Order
A Customer places an Order. Identifier fields such as customer_id and order_id name the records; an order can refer back to its customer.
Understand Order line
Order line belongs to an Order and refers to a Product. Its quantity belongs to that particular order line, rather than to the product definition.
Follow payment and delivery
Order connects to Payment and Shipment. A Customer uses an Address, and a Shipment is delivered to an Address. Read the cardinalities on each actual connection to understand its allowed counts.
Open Entity relationships exampleMake one small change
Open the example, select Order line and inspect order_id, product_id and quantity. Rename a field to improve clarity, then undo.
Related diagram type
Ontology — a separately labelled companion guide.