← Shopware 6.7.7.1

Shopware 6.7.7.1 customer

Columns

45 columns

Column Type Nullable Additional
id binary(16) NO Primary Key
auto_increment bigint 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
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
email varchar(254) NO Index
title varchar(100) YES
vat_ids json 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_sales_channel_ids json YES
birthday date YES
last_order_date datetime(3) YES
order_count int NO Default: 0
order_total_amount double YES Default: 0
custom_fields json 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 json YES
bound_sales_channel_id binary(16) YES Index Foreign Key → sales_channel.id
created_by_id binary(16) YES Index Foreign Key → user.id
updated_by_id binary(16) YES Index Foreign Key → user.id
account_type varchar(255) NO Default: private
review_count int NO Default: 0

Indexes

16 indexes

Index Name Columns Unique
fk.customer.bound_sales_channel_id bound_sales_channel_id No
fk.customer.created_by_id created_by_id No
fk.customer.customer_group_id customer_group_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
fk.customer.updated_by_id updated_by_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.email email No
idx.firstlogin first_login No
idx.lastlogin last_login No
PRIMARY id Yes
uniq.auto_increment auto_increment Yes

Relations (from this table)

7 relations

Local Field Foreign Table Foreign Field
bound_sales_channel_id sales_channel id
created_by_id user id
customer_group_id customer_group id
last_payment_method_id payment_method id
sales_channel_id sales_channel id
salutation_id salutation id
updated_by_id user id

Relations (to this table)

8 relations

Local Field Foreign Table Foreign Field
id customer_address customer_id
id customer_recovery customer_id
id customer_tag customer_id
id customer_wishlist customer_id
id order_customer customer_id
id product_review customer_id
id promotion_persona_customer customer_id
id sales_channel_api_context customer_id