customer_addresses table

The customer_addresses table in the E-commerce Database Schema schema has 10 columns, keyed by id, with 1 foreign key to customers.

The customer address book. Orders do not point here, they copy it. See order_addresses.

Columns (10)

Columns of the customer_addresses table
ColumnTypeConstraintsDescription
iduuidprimary key
customer_iduuidnot null, references customers.id
typeaddress_typenot null
line1varchar(255)not null
line2varchar(255)
cityvarchar(120)not null
regionvarchar(120)
postal_codevarchar(20)not null
country_codechar(2)not null
is_defaultbooleannot null

Indexes (1)

  • (customer_id, type)

Relationships