Add user preferences for theme and font size.

Persist per-account UI settings so the dashboard can restore default light/dark mode and font size on login.
This commit is contained in:
2026-08-16 07:28:58 +03:30
parent 3348ca5798
commit b4ca5678bf
+12
View File
@@ -114,6 +114,18 @@ const userSchema = new mongoose.Schema({
adminNotes: { adminNotes: {
type: [String], type: [String],
default: [] default: []
},
preferences: {
theme: {
type: String,
enum: ['light', 'dark', 'system'],
default: 'system'
},
fontSize: {
type: String,
enum: ['small', 'medium', 'large'],
default: 'medium'
}
} }
}, { }, {
timestamps: true timestamps: true