This commit is contained in:
2020-07-23 22:09:14 +00:00
parent 27a1883ace
commit 57921d9488
7 changed files with 16 additions and 9 deletions

View File

@@ -10,11 +10,11 @@ namespace AyaNova.Models
[Required]
public long TranslationId { get; set; }
//-------------
[EmailAddress]
public string EmailAddress { get; set; }
public bool CopyGeneralNotificationsToEmail { get; set; }//in addition to deliving general notification in-app, also send a copy to email address
/*
Hexadecimal notation: #RGB[A]
R (red), G (green), B (blue), and A (alpha) are hexadecimal characters (09, AF). A is optional. The three-digit notation (#RGB) is a shorter version of the six-digit form (#RRGGBB). For example, #f09 is the same color as #ff0099. Likewise, the four-digit RGB notation (#RGBA) is a shorter version of the eight-digit form (#RRGGBBAA). For example, #0f38 is the same color as #00ff3388.
@@ -29,6 +29,7 @@ namespace AyaNova.Models
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
@@ -42,6 +43,7 @@ namespace AyaNova.Models
CurrencyName = "USD";
Hour12 = true;
UiColor = "#000000";//black is the default
CopyGeneralNotificationsToEmail = false;
}
}