aboutsummaryrefslogtreecommitdiff
path: root/pkg/model
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/model')
-rw-r--r--pkg/model/users.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/pkg/model/users.go b/pkg/model/users.go
new file mode 100644
index 0000000..dfef67b
--- /dev/null
+++ b/pkg/model/users.go
@@ -0,0 +1,17 @@
+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"`
+}
+
+type UserRegistration struct {
+ Username string `json:"username"`
+ Password string `json:"password"`
+ Email string `json:"email"`
+}