using System; using System.Collections.Generic; namespace Workbench.Entity { public partial class StatusHistory { public StatusHistory() { InverseParent = new HashSet(); QueueDones = new HashSet(); QueueFaileds = new HashSet(); QueuePendings = new HashSet(); QueueProcessings = new HashSet(); } /// /// Record identifier. Primary key /// public long Id { get; set; } /// /// Reference to master (or group) record /// public long ParentId { get; set; } /// /// Record status (Pending-0,Assigned-1,Working-2,Success-3,Failed-4,Expired-5) /// public int Status { get; set; } /// /// Actual attempt counter to process task /// public int? Attempt { get; set; } /// /// Last error message /// public string? ErrorMessage { get; set; } /// /// Record created timestamp /// public DateTime Created { get; set; } public virtual StatusHistory Parent { get; set; } = null!; public virtual ICollection InverseParent { get; set; } public virtual ICollection QueueDones { get; set; } public virtual ICollection QueueFaileds { get; set; } public virtual ICollection QueuePendings { get; set; } public virtual ICollection QueueProcessings { get; set; } } }