SWDB
← Versions / 6.4.5.1 /

customer

Fields (42)

Name Type Null Key Default Extra
id binary(16) NO PRI NULL
auto_increment bigint(20) unsigned NO UNI NULL auto_increment
customer_group_id binary(16) NO MUL NULL
requested_customer_group_id binary(16) YES MUL NULL
default_payment_method_id binary(16) NO MUL NULL
sales_channel_id binary(16) NO MUL NULL
language_id binary(16) NO NULL
last_payment_method_id binary(16) YES MUL NULL
default_billing_address_id binary(16) NO MUL NULL
default_shipping_address_id binary(16) NO MUL NULL
customer_number varchar(255) NO NULL
salutation_id binary(16) YES MUL NULL
first_name varchar(255) NO NULL
last_name varchar(255) NO NULL
company varchar(255) YES NULL
password varchar(1024) YES NULL
legacy_password varchar(255) YES NULL
legacy_encoder varchar(255) YES NULL
email varchar(254) NO NULL
title varchar(100) YES NULL
vat_ids longtext YES NULL
active tinyint(1) NO 1
double_opt_in_registration tinyint(1) NO 0
double_opt_in_email_sent_date datetime(3) YES NULL
double_opt_in_confirm_date datetime(3) YES NULL
hash varchar(255) YES UNI NULL
guest tinyint(1) NO 0
first_login datetime(3) YES MUL NULL
last_login datetime(3) YES MUL NULL
newsletter tinyint(1) NO 0
birthday date YES NULL
last_order_date datetime(3) YES NULL
order_count int(5) NO 0
order_total_amount double YES 0
custom_fields longtext YES NULL
affiliate_code varchar(255) YES NULL
campaign_code varchar(255) YES NULL
created_at datetime(3) NO NULL
updated_at datetime(3) YES NULL
remote_address varchar(255) YES NULL
tag_ids longtext YES NULL
bound_sales_channel_id binary(16) YES MUL NULL

Indexes (14)

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 (6)

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

Referenced By (9)

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 id