Pick the right diagram type
Flowcharts aren't always the answer — sequence for request/response, state for lifecycles, ER for data.
View source
sequenceDiagram
participant U as User
participant API
participant DB as Postgres
U->>API: POST /login
API->>DB: SELECT user
DB-->>API: row
API-->>U: 200 + session