using System.Text.Json; using NodaTime; namespace FictionArchive.Service.ReportingService.Models.Database; public class Job { public Guid Id { get; set; } public required string JobType { get; set; } public required string Status { get; set; } public string? CurrentStep { get; set; } public string? ErrorMessage { get; set; } public JsonDocument? Metadata { get; set; } public Instant CreatedTime { get; set; } public Instant UpdatedTime { get; set; } public Instant? CompletedTime { get; set; } public ICollection History { get; set; } = new List(); }