This commit is contained in:
2020-12-17 01:09:54 +00:00
parent 7c0421bb1c
commit 6fcd7f5481
3 changed files with 329 additions and 12 deletions

View File

@@ -17,21 +17,32 @@ namespace AyaNova.Models
[Required]
public string Name { get; set; }
public bool Active { get; set; }
// public bool Active { get; set; }//USE AS COMPLETED FIELD IN UI BUT KEEP AS ACTIVE HERE
public string Notes { get; set; }
public string Wiki { get; set; }
public string CustomFields { get; set; }
public List<string> Tags { get; set; }
public DateTime? DateStarted { get; set; }
public DateTime? DateCompleted { get; set; }
public long? ReviewOverseerId { get; set; }
public string AccountNumber { get; set; }
public DateTime DueDate { get; set; }
public DateTime? CompletedDate { get; set; }
public long? UserId { get; set; }
[Required]
public long ObjectId { get; set; }
[Required]
public AyaType ObjectType { get; set; }//int
[NotMapped]
public bool OverDue
{
get
{
return (DueDate > DateTime.UtcNow);
}
}
public Review()
{
Tags = new List<string>();
DateStarted = DateTime.UtcNow;
}
[NotMapped, JsonIgnore]