Shopware 6.7.7.1 category
Columns
| Column | Type | Nullable | Additional |
|---|---|---|---|
| id | binary(16) | NO | Primary Key |
| version_id | binary(16) | NO | Primary Key |
| auto_increment | int | NO | Unique, auto_increment |
| parent_id | binary(16) | YES | Index Foreign Key → category.id |
| parent_version_id | binary(16) | YES | Foreign Key → category.version_id |
| media_id | binary(16) | YES | Index Foreign Key → media.id |
| cms_page_id | binary(16) | YES | Index Foreign Key → cms_page.id |
| cms_page_version_id | binary(16) | NO | Default: 0x0FA91CE3E96A4BC2BE4BD9CE752C3425 Foreign Key → cms_page.version_id |
| product_stream_id | binary(16) | YES | Index Foreign Key → product_stream.id |
| product_assignment_type | varchar(32) | NO | Default: product |
| path | longtext | YES | |
| after_category_id | binary(16) | YES | Index Foreign Key → category.id |
| after_category_version_id | binary(16) | YES | Foreign Key → category.version_id |
| level | int unsigned | NO | Index, Default: 1 |
| active | tinyint(1) | NO | Default: 1 |
| child_count | int unsigned | NO | Default: 0 |
| display_nested_products | tinyint unsigned | NO | Default: 1 |
| visible | tinyint unsigned | NO | Default: 1 |
| type | varchar(32) | NO | |
| created_at | datetime(3) | NO | |
| updated_at | datetime(3) | YES | |
| custom_entity_type_id | binary(16) | YES | Index Foreign Key → custom_entity.id |
Indexes
| Index Name | Columns | Unique |
|---|---|---|
| auto_increment | auto_increment | Yes |
| fk.category.after_category_id | after_category_id,after_category_version_id | No |
| fk.category.cms_page_id | cms_page_id,cms_page_version_id | No |
| fk.category.custom_entity_type_id | custom_entity_type_id | No |
| fk.category.media_id | media_id | No |
| fk.category.parent_id | parent_id,parent_version_id | No |
| fk.category.product_stream_id | product_stream_id | No |
| idx.level | level | No |
| PRIMARY | id,version_id | Yes |
Relations (from this table)
| Local Field | Foreign Table | Foreign Field |
|---|---|---|
| after_category_id | category | id |
| after_category_version_id | category | version_id |
| cms_page_id | cms_page | id |
| cms_page_version_id | cms_page | version_id |
| custom_entity_type_id | custom_entity | id |
| media_id | media | id |
| parent_id | category | id |
| parent_version_id | category | version_id |
| product_stream_id | product_stream | id |
Relations (to this table)
| Local Field | Foreign Table | Foreign Field |
|---|---|---|
| id | category | after_category_id |
| version_id | category | after_category_version_id |
| id | category | parent_id |
| version_id | category | parent_version_id |
| id | category_tag | category_id |
| version_id | category_tag | category_version_id |
| id | category_translation | category_id |
| version_id | category_translation | category_version_id |
| id | main_category | category_id |
| version_id | main_category | category_version_id |
| id | product_category | category_id |
| version_id | product_category | category_version_id |
| id | product_category_tree | category_id |
| version_id | product_category_tree | category_version_id |
| id | sales_channel | footer_category_id |
| version_id | sales_channel | footer_category_version_id |
| id | sales_channel | navigation_category_id |
| version_id | sales_channel | navigation_category_version_id |
| id | sales_channel | service_category_id |
| version_id | sales_channel | service_category_version_id |
