aboutsummaryrefslogtreecommitdiff
path: root/api/lib
diff options
context:
space:
mode:
Diffstat (limited to 'api/lib')
-rw-r--r--api/lib/models.go41
1 files changed, 0 insertions, 41 deletions
diff --git a/api/lib/models.go b/api/lib/models.go
deleted file mode 100644
index f959519..0000000
--- a/api/lib/models.go
+++ /dev/null
@@ -1,41 +0,0 @@
1package models
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 User struct {
16 ID int64 `json:"-"`
17 Name string `json:"name"`
18 UUID uuid.UUID `json:"uuid"`
19 Password string `json:"-"`
20}
21
22type Token struct {
23 ID int64 `json:"-"`
24 UserID int64 `json:"user_id"`
25 Token string `json:"token"`
26 CreatedAt time.Time `json:"created_at"`
27 ExpiredAt time.Time `json:"expired_at"`
28}
29
30type Preference struct {
31 ID int64 `json:"-"`
32 Color string `json:"color"`
33 UserID int64 `json:"-"`
34 Size Size `json:"size"`
35}
36
37type Size struct {
38 ID int64 `json:"-"`
39 Size int64 `json:"size"`
40 Unit string `json:"unit"`
41}