Alias is not supported (in erDiagram)
Author: denilsonsaCreated Jun 16, 2026Updated Aug 29, 2026
According to the erDiagram documentation:
An alias can be added to an entity using square brackets. If provided, the alias will be showed in the diagram instead of the entity name.
erDiagram
p[Person] {
string firstName
string lastName
}
a["Customer Account"] {
string email
}
p ||--o| a : haserDiagram
p[Person] {
string firstName
string lastName
}
a["Customer Account"] {
string email
}
p ||--o| a : hasBut it doesn't work in beautiful mermaid
Untested: if aliases are supported in other kinds of diagrams. I only looked at Entity-Relationship diagram.
Source: lukilabs/beautiful-mermaid