using Khaemhat.Core.Entities; namespace Khaemhat.Core.Instance; /// /// One preference of one user (SPEC ยง10.6): theme, accent, menu state, dashboard layout, grid layouts... The value is /// a string, usually JSON for structured preferences. /// public abstract class UserSettingRecord : Entity { /// The user the preference belongs to. public long UserId { get; set; } /// The key, for example ui.theme or grid.parties.columns. public string Key { get; set; } = string.Empty; /// The value. public string? Value { get; set; } } /// A preference of an instance account (sys_user_settings): it follows the account in every company. public sealed class SystemUserSetting : UserSettingRecord; /// A preference of a company user (user_settings). public sealed class UserSetting : UserSettingRecord;