🛒 Magento_Sales · engine innodb
sales_bestsellers_aggregated_yearly
Sales Bestsellers Aggregated Yearly
Neighbourhood (1-hop foreign-key graph — showing 1 of 1)
flowchart LR c["sales_bestsellers_aggregated_yearly"]:::center n0["store"] click n0 "/schema/table/store" n0 -- store_id --> c click c "/schema/table/sales_bestsellers_aggregated_yearly" classDef center fill:#eef2ff,stroke:#6366f1,color:#3730a3,stroke-width:1.5px
Click a node to jump to that table.
Related tables (1)
Columns (8)
| Name | Type | Null | Default | Comment |
|---|---|---|---|---|
| id PK | int unsigned | no | ID | |
| period | date | yes | Period | |
| store_id | smallint unsigned | yes | Store ID | |
| product_id | int unsigned | yes | Product ID | |
| product_name | varchar(255) | yes | Product Name | |
| product_price | decimal | no | 0 | Product Price |
| qty_ordered | decimal | no | 0 | Qty Ordered |
| rating_pos | smallint unsigned | no | 0 | Rating Pos |
Keys & indexes
Primary key: id
Unique
- SALES_BESTSELLERS_AGGREGATED_YEARLY_PERIOD_STORE_ID_PRODUCT_ID (period, store_id, product_id)
Indexes
- SALES_BESTSELLERS_AGGREGATED_YEARLY_STORE_ID (store_id) btree
- SALES_BESTSELLERS_AGGREGATED_YEARLY_PRODUCT_ID (product_id) btree
References (1)
- store_id → store .store_id (on delete CASCADE)