JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
Diagrams and visualizations using Mermaid
Diagrams and visualizations using Mermaid
More
Share
Explore
Diagrams and visualizations using Mermaid
Entity Relationship
An entity–relationship model (or ER model) describes interrelated things of interest in a specific domain of knowledge.
Syntax documentation
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
}
Syntax
Attributes
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.