---json
{
"description": "This article shows you how to create a Entity RelationShip Diagram.",
"name": "Entity RelationShip Diagram",
"page_id": "psggvh7pif191ft1dzczn",
"title": "How to create a Entity RelationShip Diagram with ComboStrap"
}
---
====== ComboStrap Diagram - Entity RelationShip Diagram (ERD) ======
===== About =====
The ''erd'' component is a [[diagram|diagram component]] that permits to create an ''Entity RelationShip Diagram''.
===== Example =====
* The markup
```dw
erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
```
* The output:
===== Syntax =====
The syntax is based on the [[https://mermaid-js.github.io/mermaid/#/entityRelationshipDiagram|Entity RelationShip Diagram Mermaid Definition]]
... Mermaid ERD definition ...
Mermaid offers a [[https://mermaid-js.github.io/mermaid-live-editor|live editor]] that you can use to validate and develop your diagrams.
This component is based on the [[docs:utility:mermaid|mermaid component]].