Entity Relationship Diagrams
What is an entity relationship diagram
- Used to model relationships among entities such as database tables
- Each entity contains an entity name and attributes (e.g. a table containing table name and fields)
- Each attribute can have an attribute name, type, and metadata (e.g.
id string pk) - Full syntax documentation found here
How to insert a new entity relationship diagram (see how)
- Click on the "+" button or
/shortcut on the canvas - Select "Diagram as Code" from the menu
- Select "Entity Relationship" from the menu
How to edit an entity relationship diagram (see how)
Eraser's entity relationship diagrams are created and edited in code form, a concept we call Diagram-as-Code
Double-click on the diagram to open the code editor
Each line of code represents a message or a statement
- Try adding a new table with:
subfolders { id string parentFolderId string }- Try adding a new relationship with: oo oo
subfolders.parentFolderId > folder.id
- Click on the "Syntax Help" button or "Documentation" to learn more
Drawing canvas
Entity Relationship Diagram