Use this Mermaid ERD template to document the core entities in a SaaS product and make relationships easier to review before migration. Manage code and settings in one place, then export the result as SVG or PNG.
Copy this starting point, replace the labels with your own domain, and preview the result in the editor.
erDiagram
USER ||--o{ PROJECT : owns
PROJECT ||--o{ REVISION : keeps
USER ||--o{ FEATURE_USAGE : consumes
PROJECT {
string id PK
string ownerId
string title
boolean isPublic
}
REVISION {
string id PK
string projectId FK
string code
}It gives a shared view of accounts, projects, billing, and other entities before the schema becomes difficult to change.
Yes. Keep the first version focused, then add related entities when they clarify ownership or cardinality.
Mark primary and foreign keys clearly.
Use Mermaid cardinality symbols for each relationship.
erDiagram
USER ||--o{ PROJECT : owns
PROJECT ||--o{ REVISION : keeps
USER ||--o{ FEATURE_USAGE : consumes
PROJECT {
string id PK
string ownerId
string title
boolean isPublic
}
REVISION {
string id PK
string projectId FK
string code
}EXPLORE
Flowchart
Visualize processes, decisions, and system flows with connected nodes.
Sequence
Map requests, responses, and asynchronous events between services.
Class
Design domain objects, properties, methods, inheritance, and relationships.
ER
Document database entities, fields, relationships, and cardinality.
State
Show how an object or workflow changes state in response to events.
Mindmap
Organize ideas and subtopics hierarchically around a central theme.
Gantt
Plan projects with tasks, milestones, dependencies, and dates.
C4
Explain software architecture from system context to detailed components.
User Journey
Describe user actions, sentiment, and experience across a journey.
Pie Chart
Compare parts of a whole with a simple Mermaid pie chart.
Quadrant
Position items across two axes to compare priorities or trade-offs.
Requirement
Connect requirements, elements, and verification relationships.
GitGraph
Explain branches, commits, merges, and release paths visually.
Timeline
Present milestones and events in chronological order.
ZenUML
Write concise sequence diagrams for object interactions and messages.
Sankey
Show how quantities flow between sources, stages, and destinations.
XY Chart
Plot values across two axes to show trends and comparisons.
Block
Arrange system blocks and connections to explain structure at a glance.
Packet
Document the fields and bit layout of a network packet.
Kanban
Organize work into visual columns such as backlog, active, and done.
Architecture
Show cloud services, infrastructure groups, and their connections.
Radar
Compare multiple options across a consistent set of dimensions.
Treemap
Show hierarchical values as nested areas for quick comparison.
Bar Chart
Compare discrete values across categories with vertical bars.
Line Chart
Show change over time or across ordered values with a line.
Product decision flow
Map the decisions and feedback loops from idea review to launch.
Incident response process
Document detection, triage, mitigation, resolution, and review.
Authenticated API request
Show how a web app uses a Clerk session token to call an API.
Checkout sequence
Describe the steps between a shopper, checkout, payment, and fulfillment.
Project domain model
Model projects, revisions, comments, and collaborators as domain objects.
SaaS database ERD
Explore a simple relational model for accounts, projects, and billing.