MageSmith

📦 Magento_Swatches · engine innodb

eav_attribute_option_swatch

Magento Swatches table

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

flowchart LR
  c["eav_attribute_option_swatch"]:::center
  n0["store"]
  click n0 "/schema/table/store"
  n0 -- store_id --> c
  n1["eav_attribute_option"]
  click n1 "/schema/table/eav_attribute_option"
  n1 -- option_id --> c
  click c "/schema/table/eav_attribute_option_swatch"
  classDef center fill:#eef2ff,stroke:#6366f1,color:#3730a3,stroke-width:1.5px

Click a node to jump to that table.

Columns (5)

NameTypeNullDefaultComment
swatch_id PKint unsignednoSwatch ID
option_id int unsignednoOption ID
store_id smallint unsignednoStore ID
type smallint unsignednoSwatch type: 0 - text, 1 - visual color, 2 - visual image
value varchar(255) yesSwatch Value

Keys & indexes

Primary key: swatch_id

Unique

  • EAV_ATTRIBUTE_OPTION_SWATCH_STORE_ID_OPTION_ID (store_id, option_id)

Indexes

  • EAV_ATTRIBUTE_OPTION_SWATCH_SWATCH_ID (swatch_id) btree

References (2)