using SqlSugar;

namespace OpenAuth.Repository.Domain
{
    /// <summary>
    /// 任务历史记录实体类
    /// </summary>
    [SugarTable("lasa_task_history")]
    public class LasaTaskHistory
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "Id")]
        public string Id { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        public string TaskName { get; set; }

        /// <summary>
        /// 任务状态 0-待执行任务 1-任务执行中 2-任务执行失败 5-任务成功
        /// </summary>
        public short? Status { get; set; }

        /// <summary>
        /// 任务id
        /// </summary>
        public string TaskId { get; set; }

        /// <summary>
        /// 任务执行时间
        /// </summary>
        public System.DateTime? ExecuteTime { get; set; }

        /// <summary>
        /// 任务完成时间
        /// </summary>
        public System.DateTime? CompletedTime { get; set; }

        /// <summary>
        /// 执行时长（秒）
        /// </summary>
        public long? ActualExecuteDuration { get; set; }

        /// <summary>
        /// 期望文件数量
        /// </summary>
        public int? ExpectedFileCount { get; set; }

        /// <summary>
        /// 已上传文件数量
        /// </summary>
        public int? UploadedFileCount { get; set; }

        /// <summary>
        /// 失败原因
        /// </summary>
        public string Reason { get; set; }

        /// <summary>
        /// 任务id 大疆使用
        /// </summary>
        public string FlightId { get; set; }

        /// <summary>
        /// 部级任务id
        /// </summary>
        public string ExternalTaskId { get; set; }

        /// <summary>
        /// 断点信息
        /// </summary>
        public string BreakPoint { get; set; }
    }
}