using System;

namespace Kavita.Models.DTOs.Jobs;

public sealed record JobDto
{
    /// <summary>
    /// Job Id
    /// </summary>
    public string Id { get; set; } = default!;
    /// <summary>
    /// Human Readable title for the Job
    /// </summary>
    public string Title { get; set; } = default!;
    /// <summary>
    /// When the job was created
    /// </summary>
    public DateTime? CreatedAtUtc { get; set; }
    /// <summary>
    /// Last time the job was run
    /// </summary>
    public DateTime? LastExecutionUtc { get; set; }
    public string Cron { get; set; } = default!;
}
