Shopware 6.4.4.0 customer
Core customer records — accounts, credentials, default addresses, group assignment, and status.
Columns
| Column | Type | Nullable | Additional |
|---|---|---|---|
| id | binary(16) | NO | Primary Key |
| auto_increment | bigint(20) unsigned | NO | Unique, auto_increment |
| customer_group_id | binary(16) | NO | Index Foreign Key → customer_group.id |
| requested_customer_group_id | binary(16) | YES | Index |
| default_payment_method_id | binary(16) | NO | Index Foreign Key → payment_method.id |
| sales_channel_id | binary(16) | NO | Index Foreign Key → sales_channel.id |
| language_id | binary(16) | NO | |
| last_payment_method_id | binary(16) | YES | Index Foreign Key → payment_method.id |
| default_billing_address_id | binary(16) | NO | Index |
| default_shipping_address_id | binary(16) | NO | Index |
| customer_number | varchar(255) | NO | |
| salutation_id | binary(16) | YES | Index Foreign Key → salutation.id |
| first_name | varchar(255) | NO | |
| last_name | varchar(255) | NO | |
| company | varchar(255) | YES | |
| password | varchar(1024) | YES | |
| legacy_password | varchar(255) | YES | |
| legacy_encoder | varchar(255) | YES | |
| varchar(254) | NO | ||
| title | varchar(100) | YES | |
| vat_ids | longtext | YES | |
| active | tinyint(1) | NO | Default: 1 |
| double_opt_in_registration | tinyint(1) | NO | Default: 0 |
| double_opt_in_email_sent_date | datetime(3) | YES | |
| double_opt_in_confirm_date | datetime(3) | YES | |
| hash | varchar(255) | YES | Unique |
| guest | tinyint(1) | NO | Default: 0 |
| first_login | datetime(3) | YES | Index |
| last_login | datetime(3) | YES | Index |
| newsletter | tinyint(1) | NO | Default: 0 |
| birthday | date | YES | |
| last_order_date | datetime(3) | YES | |
| order_count | int(5) | NO | Default: 0 |
| order_total_amount | double | YES | Default: 0 |
| custom_fields | longtext | YES | |
| affiliate_code | varchar(255) | YES | |
| campaign_code | varchar(255) | YES | |
| created_at | datetime(3) | NO | |
| updated_at | datetime(3) | YES | |
| remote_address | varchar(255) | YES | |
| tag_ids | longtext | YES | |
| bound_sales_channel_id | binary(16) | YES | Index Foreign Key → sales_channel.id |
Indexes
| Index Name | Columns | Unique |
|---|---|---|
| fk.customer.bound_sales_channel_id | bound_sales_channel_id | No |
| fk.customer.customer_group_id | customer_group_id | No |
| fk.customer.default_payment_method_id | default_payment_method_id | No |
| fk.customer.last_payment_method_id | last_payment_method_id | No |
| fk.customer.requested_customer_group_id | requested_customer_group_id | No |
| fk.customer.sales_channel_id | sales_channel_id | No |
| fk.customer.salutation_id | salutation_id | No |
| hash | hash | Yes |
| idx.customer.default_billing_address_id | default_billing_address_id | No |
| idx.customer.default_shipping_address_id | default_shipping_address_id | No |
| idx.firstlogin | first_login | No |
| idx.lastlogin | last_login | No |
| PRIMARY | id | Yes |
| uniq.auto_increment | auto_increment | Yes |
Relations (from this table)
| Local Field | Foreign Table | Foreign Field |
|---|---|---|
| bound_sales_channel_id | sales_channel | id |
| customer_group_id | customer_group | id |
| default_payment_method_id | payment_method | id |
| last_payment_method_id | payment_method | id |
| sales_channel_id | sales_channel | id |
| salutation_id | salutation | id |
Relations (to this table)
| Local Field | Foreign Table | Foreign Field |
|---|---|---|
| id | cart | customer_id |
| id | customer_address | customer_id |
| id | order_customer | customer_id |
| id | promotion_persona_customer | customer_id |
| id | customer_wishlist | customer_id |
| id | customer_tag | customer_id |
| id | customer_recovery | customer_id |
| id | product_review | customer_id |
| id | sales_channel_api_context | customer_id |
