Template
Simple data model
Entity relationship sketch for users, folders, and diagrams.
erDiagramArranged layout included
Start from this entity-relationship template when documenting a SaaS data model: users own folders and diagrams, folders contain diagrams, and favorites link users to diagrams.
Attribute blocks show primary keys and foreign keys so you can extend the schema without redrawing from scratch.
Open in SayDiagram to rearrange entities on the Arrange canvas or export for design tools.
Mermaid source
erDiagram
USER ||--o{ FOLDER : owns
USER ||--o{ DIAGRAM : owns
FOLDER ||--o{ DIAGRAM : contains
USER }o..o{ DIAGRAM : favorites
USER {
string id PK
string email UK
}
FOLDER {
string id PK
string name
}
DIAGRAM {
string id PK
string folderId FK
string title
string visibility
}