using System;
using Predictalytics.Domain.Enums;

namespace Predictalytics.Domain.Entities;

public class BackgroundJob
{
    public int Id { get; set; }
    public JobType JobType { get; set; }
    public JobStatus Status { get; set; }
    
    public int? TraderId { get; set; }
    public Trader? Trader { get; set; }

    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
    public DateTime? StartedAt { get; set; }
    public DateTime? CompletedAt { get; set; }
    
    public string? ErrorMessage { get; set; }
}
