Add entities to domains
Once you have created your entities you can add them to your domains.
To add an entity to a domain, add the entity to the entities array in the domain's markdown file.
/domains/Orders/index.mdx
---
id: Orders
name: Orders
version: 1.0.0
entities:
- id: Order
version: 1.0.0
- id: OrderItem
version: 1.0.0
---
Your domain markdown...
Visualize domain entities
When a domain has entities assigned, EventCatalog can generate an entity map for that domain.
The entity map helps teams understand the domain model at a glance. It shows:
- The entities inside the domain
- The relationships between those entities
- Which entities are owned by the current domain
- Entities referenced from other domains
Entities that are referenced from another domain are shown as yellow.
