This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user