ER: Entity with Attributes

An entity with typed attributes and `PK`/`FK`/`UK` key badges.

er-entity-with-attributes.mmd
erDiagram
  CUSTOMER {
    int id PK
    string name
    string email UK
    date created_at
  }
Output
ER diagram, Zombie Mermaid CUSTOMER PK int id string name UK string email date created_at

More ER diagram examples