MageSmith

📈 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.

Columns (8)

NameTypeNullDefaultComment
id PKint unsignednoID
period date yesPeriod
store_id smallint unsignedyesStore ID
product_id int unsignedyesProduct ID
product_name varchar(255) yesProduct Name
product_price decimal no0Product Price
views_num int no0Number of Views
rating_pos smallint unsignedno0Rating 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)