aboutsummaryrefslogtreecommitdiff
path: root/api/internal/models/statistics.go
blob: 457e6a025103cf690bc4207ba10ae23733067829 (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:"-"`
	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"`
}