using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAuth.Repository.Domain
{
    /// <summary>
    /// 任务表
    /// </summary>
    [SugarTable("lasa_task")]
    public class LasaTask
    {
        /// <summary>
        /// id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "Id")]
        public string Id { get; set; }

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

        /// <summary>
        /// 任务类型
        /// </summary>
        public int TaskType { get; set; }

        /// <summary>
        /// 执行机场
        /// </summary>
        public string TaskDronePort { get; set; }

        /// <summary>
        /// 机场航线
        /// </summary>
        public string TaskAirLine { get; set; }

        /// <summary>
        /// 返航高度
        /// </summary>
        public int ReturnAltitude { get; set; }

        /// <summary>
        /// 返航失控动作
        /// </summary>
        public string LossOfControlAction { get; set; }

        /// <summary>
        /// 续飞模式
        /// </summary>
        public string ContinuationMode { get; set; }

        /// <summary>
        /// AI巡检
        /// </summary>
        public string AIInspection { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 周期公式
        /// </summary>
        public string PeriodicFormula { get; set; }

        /// <summary>
        /// 航线id
        /// </summary>
        public string AirLineId { get; set; }
        public long CreateId { get; set; }
        public DateTime? CreateTime { get; set; }
        
        public int WaylinePrecisionType { get; set; }

        // todo 关联openjob id 
    }
}