# Entity Relationship (ER) Diagram

<figure><img src="https://3167488510-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN5Oxfr1ogoEGQMX2dzNM%2Fuploads%2F06bnFZzfuNmrLal3e9d5%2Fimage.png?alt=media&#x26;token=f75ed597-bd60-4cd9-956c-fa265fef8fa8" alt=""><figcaption></figcaption></figure>

* ER model is the **blueprint** of a database
* Graphical tool for modeling data
* ER Diagrams are translatable into **relational tables**
* **Relationships** between entities can be 1-1 (one to one), 1-N (one to many), or N-M (many to many)
* **Primary Key** identifies an instance of the entity. Unique, never changing, never null.
* **Foreign Key** is used to link two tables together, can be replicated, can be null.
