aboutsummaryrefslogtreecommitdiff
path: root/pkg/model
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-08 15:07:09 +0200
committerJulien Dessaux2021-09-08 15:08:16 +0200
commit33926a10a8729982b0e2353810c63f25d888b348 (patch)
tree690c6ec4bd82c12129c7d4ce53db9b5ba20c4127 /pkg/model
parentAdded logic to fetch train stops data if missing when starting the webserver (diff)
downloadtrains-33926a10a8729982b0e2353810c63f25d888b348.tar.gz
trains-33926a10a8729982b0e2353810c63f25d888b348.tar.bz2
trains-33926a10a8729982b0e2353810c63f25d888b348.zip
Removed useless user model code
Diffstat (limited to 'pkg/model')
-rw-r--r--pkg/model/users.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/pkg/model/users.go b/pkg/model/users.go
index 943d161..0edee32 100644
--- a/pkg/model/users.go
+++ b/pkg/model/users.go
@@ -3,11 +3,10 @@ package model
import "time"
type User struct {
- Id int `json:"id"`
- Username string `json:"username"`
- Email string `json:"email"`
- Created_at *time.Time `json:"created_at"`
- Last_login_at *time.Time `json:"last_login_at"`
+ Id int
+ Username string
+ Email string
+ CreatedAt *time.Time
}
type UserLogin struct {