summaryrefslogtreecommitdiff
path: root/pkg/models/user.go
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-08-18 13:29:54 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-08-18 13:29:54 +0300
commitfd70f95224374d23157ee7c0357733102cd0df53 (patch)
treee490c12e021cedaf211b292d5d623baa32a673fc /pkg/models/user.go
initialHEADmaster
Diffstat (limited to 'pkg/models/user.go')
-rw-r--r--pkg/models/user.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/pkg/models/user.go b/pkg/models/user.go
new file mode 100644
index 0000000..5eacd7e
--- /dev/null
+++ b/pkg/models/user.go
@@ -0,0 +1,17 @@
+package models
+
+import (
+ "encoding/gob"
+
+ "go.neonxp.ru/objectid"
+)
+
+func init() {
+ gob.Register(new(User))
+}
+
+type User struct {
+ ID objectid.ID `json:"id"`
+ Email string `json:"email"`
+ Password []byte `json:"password"`
+}