ERD Diagrams
Create Entity-Relationship Diagrams (ERDs) to model database structures and data relationships.
What is an ERD?
An Entity-Relationship Diagram visualizes:
- Entities: Database tables or objects
- Attributes: Properties of entities
- Relationships: How entities connect to each other
- Cardinality: The nature of relationships (one-to-one, one-to-many, etc.)
Creating an ERD
Adding Entities
- Use the Table shape from the shape library, or
- Use the Entity symbol from a database notation pack
Each entity typically contains:
- Entity name (header)
- Primary key field(s)
- Other attributes

Adding Relationships
- Select the Connector Tool
- Draw a line between related entities
- Set appropriate arrowheads for cardinality
Crow's Foot Notation
Crow's foot notation is the most common ERD style. It uses symbols at connector ends to show cardinality.
Cardinality Symbols
| Symbol | Meaning |
|---|---|
| ` | ` (single line) |
○ (circle) | Zero (optional) |
< or > (crow's foot) | Many |
Common Relationships
| Notation | Start | End | Meaning |
|---|---|---|---|
| One-to-One | ` | ` | ` |
| One-to-Many | ` | ` | < |
| Many-to-Many | < | > | Multiple relate to multiple |
| Zero-or-One | `○ | ` | ` |
| Zero-or-Many | ○< | ` | ` |
Applying Crow's Foot Arrowheads
- Select a connector between entities
- In the Inspector, open the Arrowheads section
- Choose crow's foot arrowheads:
- Crow foot open: Zero or many (○<)
- Crow foot closed: One or many (|<)
- Crow foot one: Exactly one (||)
Example ERD Workflow
Step 1: Identify Entities
For an e-commerce database:
- Customer
- Order
- Product
- OrderItem
Step 2: Define Attributes
Customer
- customer_id (PK)
- name
- phone
Order
- order_id (PK)
- customer_id (FK)
- order_date
- total
Step 3: Draw Entities
- Create a table shape for each entity
- Add entity names as headers
- List attributes inside each table
- Mark primary keys (PK) and foreign keys (FK)
Step 4: Add Relationships
- Draw connector from Customer to Order
- Set "one" end at Customer (|)
- Set "many" end at Order (<)
- This shows: one customer has many orders
Step 5: Label Relationships
Add text labels to connectors:
- "places" (Customer → Order)
- "contains" (Order → OrderItem)
- "is product in" (Product → OrderItem)

ERD Best Practices
Layout
- Keep related entities close together
- Use consistent entity sizing
- Align entities in a grid pattern
- Minimize crossing connectors
Naming
- Use singular nouns for entities (Customer, not Customers)
- Use consistent naming conventions (camelCase, snake_case)
- Label relationships with verbs
Documentation
- Include primary keys for all entities
- Show foreign keys clearly
- Consider adding data types
- Note any constraints
Tips
- Start on paper: Sketch your ERD before building in Diagrammix3
- Use auto-layout: Helps organize complex diagrams
- Group related entities: Creates logical sections
- Export for documentation: Include in technical specs and wikis
- Version control: Save iterations as your database evolves