order_addresses table

The order_addresses table in the E-commerce Database Schema schema has 11 columns, keyed by id, with 1 foreign key to orders.

A frozen copy of the address at checkout. Editing the address book never rewrites shipping history.

Columns (11)

Columns of the order_addresses table
ColumnTypeConstraintsDescription
iduuidprimary key
order_iduuidnot null, references orders.id
typeaddress_typenot null
full_namevarchar(120)not null
line1varchar(255)not null
line2varchar(255)
cityvarchar(120)not null
regionvarchar(120)
postal_codevarchar(20)not null
country_codechar(2)not null
phonevarchar(32)

Indexes (1)

  • (order_id, type) unique

Relationships

  • order_addresses.order_id references orders.id