This commit is contained in:
2020-12-17 20:23:11 +00:00
parent 0dda9346dd
commit ef3b8047d5
3 changed files with 33 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ namespace AyaNova.Models
[Required]
public string Name { get; set; }
public bool Active { get; set; }//USE AS COMPLETED FIELD IN UI BUT KEEP AS ACTIVE HERE
// public bool Active { get; set; }
public string Notes { get; set; }
public string Wiki { get; set; }
public string CustomFields { get; set; }
@@ -26,13 +26,20 @@ namespace AyaNova.Models
[Required]
public DateTime StartDate { get; set; }
[Required]
public DateTime EndDate { get; set; }
public DateTime StopDate { get; set; }
[Required]
public long UserId { get; set; }
/*
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.
*/
[MaxLength(12)]
public string Color { get; set; }
public Reminder()
{
Tags = new List<string>();
Color = "#ffffff";//white / no color is the default
}
[NotMapped, JsonIgnore]