From e37c73e33a4aaf7fb8d25b5af03627f20bcda19f Mon Sep 17 00:00:00 2001 From: Doog <157747121+doogongithub@users.noreply.github.com> Date: Sat, 24 Feb 2024 20:08:35 -0500 Subject: add gitignore --- api/lib/models.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 api/lib/models.go (limited to 'api/lib') 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 @@ +package models + +import "time" + +type Statistic struct { + ID int64 `json:"id"` + Date time.Time `json:"date"` + UserID int64 `json:"user_id"` + Quantity int `json:"quantity"` +} + +type User struct { + ID int64 + Name string +} + +type Token struct { + ID int64 + UserID int64 + Token string + CreatedAt time.Time + ExpiredAt time.Time +} -- cgit v1.1