Templates / erDiagram
Customer churn prediction data model
Usage events feeding a computed churn probability score per customer.
Preview
Mermaid 11 renderer
Rendering preview...
Mermaid source
erDiagram
erDiagram
CUSTOMER ||--o{ USAGE_EVENT : generates
CUSTOMER ||--|| CHURN_SCORE : "scored by"
CUSTOMER {
int id PK
string plan
date signup_date
}
USAGE_EVENT {
int id PK
int customer_id FK
string event_type
datetime occurred_at
}
CHURN_SCORE {
int customer_id PK
float probability
datetime computed_at
}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.