using Jiaowu.Api.Domain.Common;

namespace Jiaowu.Api.Domain.Academic;

public sealed class ExamSignInExportJob : EntityBase
{
    public Guid PlanId { get; set; }
    public ExamSignInExportJobStatus Status { get; set; } =
        ExamSignInExportJobStatus.Queued;
    public Guid? RequestedByUserId { get; set; }
    public string? FileName { get; set; }
    public byte[]? FileBytes { get; set; }
    public int FileSize { get; set; }
    public string? CurrentStep { get; set; }
    public string? ErrorMessage { get; set; }
    public DateTime? StartedAt { get; set; }
    public DateTime? CompletedAt { get; set; }
}

public enum ExamSignInExportJobStatus
{
    Queued = 1,
    Running = 2,
    Succeeded = 3,
    Failed = 4
}
