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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| customer_id | uuid | not null, references customers.id | |
| type | address_type | not null | |
| line1 | varchar(255) | not null | |
| line2 | varchar(255) | ||
| city | varchar(120) | not null | |
| region | varchar(120) | ||
| postal_code | varchar(20) | not null | |
| country_code | char(2) | not null | |
| is_default | boolean | not null |
Indexes (1)
(customer_id, type)
Relationships
customer_addresses.customer_idreferencescustomers.id