summaryrefslogtreecommitdiff
path: root/pkg/model
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/model')
-rw-r--r--pkg/model/account.go3
-rw-r--r--pkg/model/settings.go7
2 files changed, 9 insertions, 1 deletions
diff --git a/pkg/model/account.go b/pkg/model/account.go
index 7a69685..5055943 100644
--- a/pkg/model/account.go
+++ b/pkg/model/account.go
@@ -2,6 +2,7 @@ package model
import (
"crypto/subtle"
+ "encoding/json"
"time"
"git.adyxax.org/adyxax/tfstated/pkg/helpers"
@@ -17,7 +18,7 @@ type Account struct {
IsAdmin bool
Created time.Time
LastLogin time.Time
- Settings any
+ Settings json.RawMessage
}
func (account *Account) CheckPassword(password string) bool {
diff --git a/pkg/model/settings.go b/pkg/model/settings.go
new file mode 100644
index 0000000..9da655b
--- /dev/null
+++ b/pkg/model/settings.go
@@ -0,0 +1,7 @@
+package model
+
+type SettingsContextKey struct{}
+
+type Settings struct {
+ LightMode bool `json:"light_mode"`
+}