📦 Magento_Catalog · engine innodb
catalog_product_relation
Catalog Product Relation Table
Neighbourhood (1-hop foreign-key graph — showing 1 of 2)
flowchart LR c["catalog_product_relation"]:::center n0["catalog_product_entity"] click n0 "/schema/table/catalog_product_entity" n0 -- child_id --> c click c "/schema/table/catalog_product_relation" classDef center fill:#eef2ff,stroke:#6366f1,color:#3730a3,stroke-width:1.5px
Click a node to jump to that table.
Related tables (2)
Columns (2)
| Name | Type | Null | Default | Comment |
|---|---|---|---|---|
| parent_id | int unsigned | no | Parent ID | |
| child_id | int unsigned | no | Child ID |
Keys & indexes
Primary key: parent_id, child_id
Indexes
- CATALOG_PRODUCT_RELATION_CHILD_ID (child_id) btree
References (2)
- child_id → catalog_product_entity .entity_id (on delete CASCADE)
- parent_id → catalog_product_entity .entity_id (on delete CASCADE)