🌐 English

Home › Guides

ERD basics: enough to read one

An ERD (entity-relationship diagram) shows which tables a database has and how they connect.

Key terms

Relationships

If one user can have many orders, that's one-to-many (1:N): the orders table has an FK (user_id) pointing to the user's PK. When both sides can have many — orders and products — it's many-to-many (N:M), resolved with a join table (order_items) into two one-to-many relationships.

In crow's foot notation, the three-pronged end means “many” and the double bar means “one”.