blob: 7dceb3a2726c82d19962d9d321bb3683e20e56e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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"`
}
|