aboutsummaryrefslogtreecommitdiff
path: root/api/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/models.go')
-rw-r--r--api/models.go57
1 files changed, 0 insertions, 57 deletions
diff --git a/api/models.go b/api/models.go
deleted file mode 100644
index 0845d1d..0000000
--- a/api/models.go
+++ /dev/null
@@ -1,57 +0,0 @@
1package main
2
3import (
4 "time"
5 "github.com/google/uuid"
6)
7
8type Statistic struct {
9 ID int64 `json:"-"`
10 Date time.Time `json:"date"`
11 User User `json:"user"`
12 Quantity int `json:"quantity"`
13}
14
15type StatisticPost struct {
16 Date time.Time `json:"date"`
17 Quantity int64 `json:"quantity"`
18 UserID int64 `json:"user_id"`
19}
20
21type User struct {
22 ID int64 `json:"-"`
23 Name string `json:"name"`
24 UUID uuid.UUID `json:"uuid"`
25 Password string `json:"-"`
26}
27
28type Token struct {
29 ID int64 `json:"-"`
30 UserID int64 `json:"user_id"`
31 Token string `json:"token"`
32 CreatedAt time.Time `json:"created_at"`
33 ExpiredAt time.Time `json:"expired_at"`
34}
35
36type Preference struct {
37 ID int64 `json:"-"`
38 Color string `json:"color"`
39 UserID int64 `json:"-"`
40 Size Size `json:"size"`
41}
42
43type Size struct {
44 ID int64 `json:"-"`
45 Size int64 `json:"size"`
46 Unit string `json:"unit"`
47}
48
49type WeeklyStatistic struct {
50 Date string `json:"date"`
51 Total int64 `json:"total"`
52}
53
54type DailyUserTotals struct {
55 Name string `json:"name"`
56 Total int64 `json:"total"`
57} \ No newline at end of file