📦 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.
Related tables (2)
Columns (5)
| Name | Type | Null | Default | Comment |
|---|---|---|---|---|
| swatch_id PK | int unsigned | no | Swatch ID | |
| option_id | int unsigned | no | Option ID | |
| store_id | smallint unsigned | no | Store ID | |
| type | smallint unsigned | no | Swatch type: 0 - text, 1 - visual color, 2 - visual image | |
| value | varchar(255) | yes | Swatch 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)
- store_id → store .store_id (on delete CASCADE)
- option_id → eav_attribute_option .option_id (on delete CASCADE)