NewNew templates for Slides, Sites, Dashboards, Forms and more.See all templates
ERDFree

ER Diagram Examples: E-commerce Database

A 9-table online store schema: customers, catalog, orders, payments, shipments and reviews with PKs and FKs.

  • Opens in ERD
  • Edit by hand or with AI
Use this template Fill it in with AI Free on every plan · opens in ERD
E-commerce Database ER DiagramScroll inside to see it all · Expand for full screen
Online store ER diagram with 9 tables, keys and relationships
Whole diagram

WHAT'S INSIDE

What's in the E-commerce Database ER Diagram template

  • Customers and addresses (one-to-many)
  • Categories with a self-referencing parent_id, and products
  • Orders, order items, payments and shipments
  • Reviews linking customers and products
  • Primary keys, foreign keys and column types on every table

HOW TO USE IT

Three steps in ERD.

  1. 01

    Use the template

    Click Use this template. It opens as your own copy in ERD, ready to edit.

  2. 02

    Fit it to your data

    Add or change tables and columns, or ask AI to add a table.

  3. 03

    Share it

    Share the diagram with your team for review.

FAQ

Questions about this template

What tables does an e-commerce database need?

At minimum customers, products, orders and order items; most stores add addresses, categories, payments, shipments and reviews, as this example does.

Can I export it as SQL?

Yes. ERD boards can export the tables as a .sql file.

Can I add tables?

Yes. Add a table in the ERD panel or ask the AI, for example to add coupons or wishlists.

SIMILAR TEMPLATES

More ERD like this

All ERD templates

MORE ERD TEMPLATES

Database diagrams for real apps, ready to edit.