summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/models/session.go')
-rw-r--r--pkg/models/session.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/models/session.go b/pkg/models/session.go
new file mode 100644
index 0000000..b83da06
--- /dev/null
+++ b/pkg/models/session.go
@@ -0,0 +1,15 @@
+package models
+
+import (
+ "glsamaker/pkg/models/users"
+ "time"
+)
+
+type Session struct {
+ Id string `pg:",pk"`
+ UserId int64
+ User *users.User
+ SecondFactorMissing bool
+ IP string
+ Expires time.Time
+}