📦 Magento_Catalog · engine innodb
catalog_product_entity_media_gallery_value_to_entity
Link Media value to Product entity table
Neighbourhood (1-hop foreign-key graph — showing 2 of 2)
flowchart LR c["catalog_product_entity_media_gallery_value_to_entity"]:::center n0["catalog_product_entity_media_gallery"] click n0 "/schema/table/catalog_product_entity_media_gallery" n0 -- value_id --> c n1["catalog_product_entity"] click n1 "/schema/table/catalog_product_entity" n1 -- entity_id --> c click c "/schema/table/catalog_product_entity_media_gallery_value_to_entity" classDef center fill:#eef2ff,stroke:#6366f1,color:#3730a3,stroke-width:1.5px
Click a node to jump to that table.
Columns (2)
| Name | Type | Null | Default | Comment |
|---|---|---|---|---|
| value_id | int unsigned | no | Value media Entry ID | |
| entity_id | int unsigned | no | Product Entity ID |
Keys & indexes
Primary key: value_id, entity_id
References (2)
- value_id → catalog_product_entity_media_gallery .value_id (on delete CASCADE)
- entity_id → catalog_product_entity .entity_id (on delete CASCADE)