Skip to content
Weave templates

Entity-Relationship Diagram

Database ERD using class-box shape for entities + attributes.

Template previewWeave
Rendering…

Make it your own.

{
  "nodes": [
    { "id":"cu","type":"class-box","label":"Customer\nid: uuid (PK)\nemail: text\ncreated_at: ts","x":40,"y":40,"w":200,"h":120 },
    { "id":"or","type":"class-box","label":"Order\nid: uuid (PK)\ncustomer_id: uuid (FK)\ntotal: numeric\nstatus: text","x":320,"y":40,"w":210,"h":140,"fill":"#fef3c7" },
    { "id":"li","type":"class-box","label":"LineItem\nid: uuid (PK)\norder_id: uuid (FK)\nsku: text\nqty: int\nprice: numeric","x":600,"y":40,"w":210,"h":160 },
    { "id":"pr","type":"class-box","label":"Product\nsku: text (PK)\nname: text\nlist_price: numeric","x":600,"y":240,"w":210,"h":120,"fill":"#dcfce7" }
  ],
  "edges": [
    { "id":"a","source":"cu","target":"or","label":"1..*" },
    { "id":"b","source":"or","target":"li","label":"1..*" },
    { "id":"c","source":"li","target":"pr","label":"sku" }
  ]
}