package models import "time" type Statistic struct { ID int64 `json:"id"` Date time.Time `json:"date"` User User `json:"user"` Quantity int `json:"quantity"` } type StatisticPost struct { Date time.Time `json:"date"` Quantity int64 `json:"quantity"` UserID int64 `json:"user_id"` } type WeeklyStatistic struct { Date string `json:"date"` Total int64 `json:"total"` } type DailyUserTotals struct { Name string `json:"name"` Total int64 `json:"total"` }