diff options
author | Doog <157747121+doogongithub@users.noreply.github.com> | 2024-02-24 20:08:35 -0500 |
---|---|---|
committer | Doog <157747121+doogongithub@users.noreply.github.com> | 2024-02-24 20:08:35 -0500 |
commit | e37c73e33a4aaf7fb8d25b5af03627f20bcda19f (patch) | |
tree | 277a534e826325e25f881e61e322b4e2e7ec94f9 /api/lib | |
parent | 3eafb413a48cde60dea8a7355ee621c6acca952f (diff) |
add gitignore
Diffstat (limited to 'api/lib')
-rw-r--r-- | api/lib/models.go | 23 |
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 @@ | |||
1 | package models | ||
2 | |||
3 | import "time" | ||
4 | |||
5 | type 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 | |||
12 | type User struct { | ||
13 | ID int64 | ||
14 | Name string | ||
15 | } | ||
16 | |||
17 | type Token struct { | ||
18 | ID int64 | ||
19 | UserID int64 | ||
20 | Token string | ||
21 | CreatedAt time.Time | ||
22 | ExpiredAt time.Time | ||
23 | } | ||