Skip to content
Gallery
Diagrams and visualizations using Mermaid
Share
Explore
Diagrams and visualizations using Mermaid

icon picker
Entity Relationship

An entity–relationship model (or ER model) describes interrelated things of interest in a specific domain of knowledge.

Syntax


Theme:
default
CUSTOMER ||--o{ ORDER : places
CUSTOMER {
string name
string custNumber
string sector
}
ORDER ||--|{ LINE-ITEM : contains
ORDER {
int orderNumber
string deliveryAddress
}
LINE-ITEM {
string productCode
int quantity
float pricePerUnit
}

Attributes

CAR ||--o{ NAMED-DRIVER : allows
CAR {
string registrationNumber
string make
string model
}
PERSON ||--o{ NAMED-DRIVER : is
PERSON {
string firstName
string lastName
int age
}
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.