19 lines
584 B
C#
19 lines
584 B
C#
using FictionArchive.Common.Enums;
|
|
using FictionArchive.Service.Shared.Models;
|
|
|
|
namespace FictionArchive.Service.ReportingService.Models;
|
|
|
|
public class Job : BaseEntity<Guid>
|
|
{
|
|
public Guid? ParentJobId { get; set; }
|
|
public string JobType { get; set; } = null!;
|
|
public string DisplayName { get; set; } = null!;
|
|
public JobStatus Status { get; set; }
|
|
public string? ErrorMessage { get; set; }
|
|
public Dictionary<string, string>? Metadata { get; set; }
|
|
|
|
// Navigation
|
|
public Job? ParentJob { get; set; }
|
|
public List<Job> ChildJobs { get; set; } = [];
|
|
}
|