This commit is contained in:
2020-02-07 23:55:40 +00:00
parent bae4b862ab
commit 9c85b6c462
4 changed files with 96 additions and 89 deletions

View File

@@ -18,9 +18,16 @@ namespace AyaNova.Models
/// 8.5 for 8:30 time difference or 12.75 for 12:45 time differnce for example
/// </summary>
/// <value></value>
public decimal TimeZoneOffset { get; set; }
public int UiColor { get; set; }
//browser forced overrides
public string LanguageOverride { get; set; }
public string TimeZoneOverride { get; set; }
public string CurrencyName { get; set; }
public bool Hour12 { get; set; }
//relations
//https://docs.microsoft.com/en-us/ef/core/modeling/relationships#other-relationship-patterns
[JsonIgnore]//hide from being returned (as null anyway) in routes
@@ -31,7 +38,8 @@ namespace AyaNova.Models
public UserOptions()
{
TimeZoneOffset = 0;
CurrencyName = "USD";
Hour12 = true;
UiColor = 0;
}
}