Entity-relationship diagram of an online shop

This entity-relationship diagram models the data of an online shop. A customer places orders and has addresses, each order contains order items that refer to products, and each order is paid by a payment. Every table lists its columns with types and marks primary and foreign keys.

Free to start in your browser. Nothing to install.

Entity-relationship diagram
The Entity-relationship diagram template in FlowShape

What's in it

  • Six tables in the shop schema
  • Columns with types, such as total numeric(10,2) and placed_at timestamptz
  • Primary and foreign keys marked; order_item has a two-column key
  • Five relationships in crow's-foot notation: places, contains, appears in, has, paid by

ERData model

Good for

  • Designing a database schema before writing migrations
  • Documenting an existing database for new developers
  • Discussing keys and relationships in a design review

An entity-relationship diagram (ERD) shows tables, their columns and how they relate. Crow's-foot notation marks how many rows on each side of a relationship can be linked.

Make it yours

Every shape is editable

Rename, move, restyle or delete anything. Connectors stay attached when shapes move.

In your browser

FlowShape runs in Edge, Chrome or any modern browser. Nothing to install.

Export when you need to

Word, PDF, PowerPoint and Visio (.vsdx).

Start from this template