Skip to main content

ERD

ERD creates entity-relationship diagrams from entities, attributes, and cardinalities.

Use this type​

Use ERD for compact relational models and domain data models.

Source format​

The source format is ERD text. Enter the source in the diagram.zip editor.

Syntax essentials​

  • Put an entity name in square brackets.
  • Put each attribute below its entity.
  • Use * for a key attribute.
  • Use a relationship line with cardinality markers.

Example​

[User]
*id
name

[Diagram]
*id
+user_id

[User] 1--* [Diagram]

The rendered view uses a complete project example for this diagram type.

Rendered exampleDrag to pan. Use the wheel or controls to zoom.
100%
This view uses the live diagram.zip renderer.

Upstream reference​

ERD documentation