customers table

The customers table in the E-commerce Database Schema schema has 6 columns, keyed by id. 8 columns in customer_addresses, wishlists, product_reviews, carts and 4 more reference it.

One row per shopper. Guest checkout still creates a customer, flagged by a null password elsewhere in your auth store.

Columns (6)

Columns of the customers table
ColumnTypeConstraintsDescription
iduuidprimary key
emailvarchar(255)unique, not null
full_namevarchar(120)
phonevarchar(32)
accepts_marketingbooleannot null
created_attimestamptznot null

Relationships