Templates / erDiagram
Blog / CMS data model
Authors, posts, comments, and a many-to-many tag relationship — the canonical content schema.
Preview
Mermaid 11 renderer
Rendering preview...
Mermaid source
erDiagram
erDiagram
AUTHOR ||--o{ POST : writes
POST ||--o{ COMMENT : receives
POST }o--o{ TAG : "tagged with"
AUTHOR {
int id PK
string display_name
string email
}
POST {
int id PK
int author_id FK
string title
string slug
datetime published_at
}
COMMENT {
int id PK
int post_id FK
string author_name
string body
}
TAG {
int id PK
string name
}More templates
flowchartArchitecture
Microservices architecture
A service map with an API gateway, core services, and shared infrastructure. A solid starting point for README architecture sections.
sequenceDiagramProcess
User login sequence
A login flow with token issuance and a failure branch. Useful for documenting auth endpoints and session behavior.
stateDiagram-v2Process
Order state machine
Lifecycle states for an e-commerce order, from creation to fulfillment, with cancellation and refund paths.