skip to content
Posts · July 2026

Regarding diagrams


Mermaid diagrams are very useful tools, not only on software design, also on websites, where they can be rendered and seen quickly to provide a first initial idea or a deeper understanding of things.

erDiagram
EMPLOYEE {
SERIAL id
INTEGER employee_id
VARCHAR name
}
WORK_LOCATION {
SERIAL id
VARCHAR code
VARCHAR address
}
EMPLOYEE }|--|| WORK_LOCATION : ""

That should be it! You can even do C4:

C4Container
title System
Enterprise_Boundary(ebo0, "SYSTEM") {
Person(user, "User", "System User")
System_Boundary(system, "PROGRAM_SYSTEM") {
System(front, "FRONTEND")
System(back, "BACKEND")
SystemDb(db, "DBMS", "Database")
}
Rel(user, front, "")
Rel(front, back, "HTTP")
Rel(back, db, "HTTP")
}