← Shopware 6.4.19.0

Shopware 6.4.19.0 order_address

Snapshot of customer addresses at time of order (immutable copy, not linked to current address book).

Columns

22 columns

Column Type Nullable Additional
id binary(16) NO Primary Key
version_id binary(16) NO Primary Key
country_id binary(16) NO Index Foreign Key → country.id
country_state_id binary(16) YES Index Foreign Key → country_state.id
order_id binary(16) NO Index Foreign Key → order.id
order_version_id binary(16) NO Foreign Key → order.version_id
company varchar(255) YES
department varchar(255) YES
salutation_id binary(16) YES Index Foreign Key → salutation.id
title varchar(100) YES
first_name varchar(50) NO
last_name varchar(60) NO
street varchar(255) NO
zipcode varchar(50) NO
city varchar(70) NO
vat_id varchar(50) YES
phone_number varchar(40) YES
additional_address_line1 varchar(255) YES
additional_address_line2 varchar(255) YES
custom_fields longtext YES
created_at datetime(3) NO
updated_at datetime(3) YES

Indexes

5 indexes

Index Name Columns Unique
fk.order_address.country_id country_id No
fk.order_address.country_state_id country_state_id No
fk.order_address.order_id order_id,order_version_id No
fk.order_address.salutation_id salutation_id No
PRIMARY id,version_id Yes

Relations (from this table)

5 relations

Local Field Foreign Table Foreign Field
country_id country id
country_state_id country_state id
order_id order id
order_version_id order version_id
salutation_id salutation id