MageSmith

🛒 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)

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
qty_ordered decimal no0Qty Ordered
rating_pos smallint unsignedno0Rating 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)