Careeroza
ER Modeling
Entity-Relationship Model
Design starts on paper with an ER model: the things (entities) the system stores, their properties (attributes), and how they relate (relationships).
| Concept | Becomes | Example |
|---|---|---|
| Entity | a table | Customer, Order, Product |
| Attribute | a column | CustomerName, OrderDate |
| Identifier | primary key | CustomerID |
| Relationship | foreign key or junction table | a Customer places Orders |
Design Process
- Collect requirements: what questions must the data answer?
- Identify entities and their attributes.
- Define relationships and cardinality (1:1, 1:N, M:N).
- Choose primary keys; add foreign keys.
- Normalize to 3NF.
- Add constraints, indexes; denormalize only where measured.