aboutsummaryrefslogtreecommitdiff
path: root/api/lib
diff options
context:
space:
mode:
authorDoog <157747121+doogongithub@users.noreply.github.com>2024-02-24 20:08:35 -0500
committerDoog <157747121+doogongithub@users.noreply.github.com>2024-02-24 20:08:35 -0500
commite37c73e33a4aaf7fb8d25b5af03627f20bcda19f (patch)
tree277a534e826325e25f881e61e322b4e2e7ec94f9 /api/lib
parent3eafb413a48cde60dea8a7355ee621c6acca952f (diff)
add gitignore
Diffstat (limited to 'api/lib')
-rw-r--r--api/lib/models.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/api/lib/models.go b/api/lib/models.go
new file mode 100644
index 0000000..92e5703
--- /dev/null
+++ b/api/lib/models.go
@@ -0,0 +1,23 @@
1package models
2
3import "time"
4
5type Statistic struct {
6 ID int64 `json:"id"`
7 Date time.Time `json:"date"`
8 UserID int64 `json:"user_id"`
9 Quantity int `json:"quantity"`
10}
11
12type User struct {
13 ID int64
14 Name string
15}
16
17type Token struct {
18 ID int64
19 UserID int64
20 Token string
21 CreatedAt time.Time
22 ExpiredAt time.Time
23}