MageSmith

👤 Magento_Customer · engine innodb

customer_entity

Customer Entity

Neighbourhood (1-hop foreign-key graph — showing 6 of 26)

flowchart LR
  c["customer_entity"]:::center
  n0["store"]
  click n0 "/schema/table/store"
  n0 -- store_id --> c
  n1["store_website"]
  click n1 "/schema/table/store_website"
  n1 -- website_id --> c
  n2["sales_order"]
  click n2 "/schema/table/sales_order"
  c -- customer_id --> n2
  n3["customer_address_entity"]
  click n3 "/schema/table/customer_address_entity"
  c -- parent_id --> n3
  n4["catalog_compare_item"]
  click n4 "/schema/table/catalog_compare_item"
  c -- customer_id --> n4
  n5["product_alert_price"]
  click n5 "/schema/table/product_alert_price"
  c -- customer_id --> n5
  click c "/schema/table/customer_entity"
  classDef center fill:#eef2ff,stroke:#6366f1,color:#3730a3,stroke-width:1.5px

Click a node to jump to that table.

Columns (29)

NameTypeNullDefaultComment
entity_id PKint unsignednoEntity ID
website_id smallint unsignedyesWebsite ID
email varchar(255) yesEmail
group_id smallint unsignedno0Group ID
increment_id varchar(50) yesIncrement ID
store_id smallint unsignedyes0Store ID
created_at timestamp noCURRENT_TIMESTAMPCreated At
updated_at timestamp noCURRENT_TIMESTAMPUpdated At
is_active smallint unsignedno1Is Active
disable_auto_group_change smallint unsignedno0Disable automatic group change based on VAT ID
created_in varchar(255) yesCreated From
prefix varchar(40) yesName Prefix
firstname varchar(255) yesFirst Name
middlename varchar(255) yesMiddle Name/Initial
lastname varchar(255) yesLast Name
suffix varchar(40) yesName Suffix
dob date yesDate of Birth
password_hash varchar(128) yesPassword_hash
rp_token varchar(128) yesReset password token
rp_token_created_at datetime yesReset password token creation time
default_billing int unsignedyesDefault Billing Address
default_shipping int unsignedyesDefault Shipping Address
taxvat varchar(50) yesTax/VAT Number
confirmation varchar(64) yesIs Confirmed
gender smallint unsignedyesGender
failures_num smallint yes0Failure Number
first_failure timestamp yesFirst Failure
lock_expires timestamp yesLock Expiration Date
session_cutoff timestamp yesSession Cutoff Time

Keys & indexes

Primary key: entity_id

Unique

  • CUSTOMER_ENTITY_EMAIL_WEBSITE_ID (email, website_id)

Indexes

  • CUSTOMER_ENTITY_STORE_ID (store_id) btree
  • CUSTOMER_ENTITY_WEBSITE_ID (website_id) btree
  • CUSTOMER_ENTITY_FIRSTNAME (firstname) btree
  • CUSTOMER_ENTITY_LASTNAME (lastname) btree

References (2)

  • store_id store .store_id (on delete SET NULL)
  • website_id store_website .website_id (on delete SET NULL)

Referenced by (24)