chore: add quantity stat

This commit is contained in:
2026-05-17 14:54:59 +02:00
parent 94fa9de6a7
commit a8696b12fa
4 changed files with 158 additions and 4 deletions
+10
View File
@@ -28,6 +28,16 @@ type HourRow struct {
Revenue float64 `gorm:"column:revenue"`
}
type QuantityBreakdownRow struct {
ProductID int `gorm:"column:product_id"`
ProductName string `gorm:"column:product_name"`
Quantity float64 `gorm:"column:quantity"`
OrderCount int `gorm:"column:order_count"`
TotalSold float64 `gorm:"column:total_sold"`
Revenue float64 `gorm:"column:revenue"`
CategoryColor string `gorm:"column:category_color"`
}
type DayRevenueRow struct {
Day time.Time `gorm:"column:day"`
Revenue float64 `gorm:"column:revenue"`