aboutsummaryrefslogtreecommitdiffhomepage
path: root/model/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/user.go')
-rw-r--r--model/user.go21
1 files changed, 11 insertions, 10 deletions
diff --git a/model/user.go b/model/user.go
index 6c537b2..fd19d9f 100644
--- a/model/user.go
+++ b/model/user.go
@@ -13,16 +13,17 @@ import (
// User represents a user in the system.
type User struct {
- ID int64 `json:"id"`
- Username string `json:"username"`
- Password string `json:"password,omitempty"`
- IsAdmin bool `json:"is_admin"`
- Theme string `json:"theme"`
- Language string `json:"language"`
- Timezone string `json:"timezone"`
- EntryDirection string `json:"entry_sorting_direction"`
- LastLoginAt *time.Time `json:"last_login_at,omitempty"`
- Extra map[string]string `json:"extra"`
+ ID int64 `json:"id"`
+ Username string `json:"username"`
+ Password string `json:"password,omitempty"`
+ IsAdmin bool `json:"is_admin"`
+ Theme string `json:"theme"`
+ Language string `json:"language"`
+ Timezone string `json:"timezone"`
+ EntryDirection string `json:"entry_sorting_direction"`
+ KeyboardShortcuts bool `json:"keyboard_shortcuts"`
+ LastLoginAt *time.Time `json:"last_login_at,omitempty"`
+ Extra map[string]string `json:"extra"`
}
// NewUser returns a new User.