📈 Magento_Reports · engine innodb
report_viewed_product_aggregated_monthly
Most Viewed Products Aggregated Monthly
Neighbourhood (1-hop foreign-key graph — showing 2 of 2)
flowchart LR c["report_viewed_product_aggregated_monthly"]:::center n0["store"] click n0 "/schema/table/store" n0 -- store_id --> c n1["catalog_product_entity"] click n1 "/schema/table/catalog_product_entity" n1 -- product_id --> c click c "/schema/table/report_viewed_product_aggregated_monthly" classDef center fill:#eef2ff,stroke:#6366f1,color:#3730a3,stroke-width:1.5px
Click a node to jump to that table.
Related tables (2)
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 |
| views_num | int | no | 0 | Number of Views |
| rating_pos | smallint unsigned | no | 0 | Rating Pos |
Keys & indexes
Primary key: id
Unique
- REPORT_VIEWED_PRD_AGGRED_MONTHLY_PERIOD_STORE_ID_PRD_ID (period, store_id, product_id)
Indexes
- REPORT_VIEWED_PRODUCT_AGGREGATED_MONTHLY_STORE_ID (store_id) btree
- REPORT_VIEWED_PRODUCT_AGGREGATED_MONTHLY_PRODUCT_ID (product_id) btree
References (2)
- store_id → store .store_id (on delete CASCADE)
- product_id → catalog_product_entity .entity_id (on delete CASCADE)