mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
chore: add "user_configs"
db table (#16564)
This commit is contained in:
@ -54,9 +54,11 @@ type ReducedUser struct {
|
||||
UpdatedAt time.Time `json:"updated_at" table:"updated at" format:"date-time"`
|
||||
LastSeenAt time.Time `json:"last_seen_at" format:"date-time"`
|
||||
|
||||
Status UserStatus `json:"status" table:"status" enums:"active,suspended"`
|
||||
LoginType LoginType `json:"login_type"`
|
||||
ThemePreference string `json:"theme_preference"`
|
||||
Status UserStatus `json:"status" table:"status" enums:"active,suspended"`
|
||||
LoginType LoginType `json:"login_type"`
|
||||
// Deprecated: this value should be retrieved from
|
||||
// `codersdk.UserPreferenceSettings` instead.
|
||||
ThemePreference string `json:"theme_preference,omitempty"`
|
||||
}
|
||||
|
||||
// User represents a user in Coder.
|
||||
@ -187,6 +189,10 @@ type ValidateUserPasswordResponse struct {
|
||||
Details string `json:"details"`
|
||||
}
|
||||
|
||||
type UserAppearanceSettings struct {
|
||||
ThemePreference string `json:"theme_preference"`
|
||||
}
|
||||
|
||||
type UpdateUserAppearanceSettingsRequest struct {
|
||||
ThemePreference string `json:"theme_preference" validate:"required"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user