using Hotline.Orders;
using Hotline.Share.Enums.Early;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XF.Domain.Repository;

namespace Hotline.Early
{
    public class EarlyWarningOrderDetail:CreationEntity
    {
        /// <summary>
        /// 工单ID
        /// </summary>
        public string OrderId { get; set; }

        /// <summary>
        /// 工单
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(OrderId))]
        public Order Order { get; set; }

        /// <summary>
        /// 工单内容快照
        /// </summary>
        public string OrderContent { get; set; }

        /// <summary>
        /// 工单标题快照
        /// </summary>
        public string OrderTitle { get; set; }

        /// <summary>
        /// 敏感标签
        /// </summary>
        [SugarColumn(ColumnDataType = "json", IsJson = true, IsNullable = true, ColumnDescription = "敏感标签")]
        public List<string>? Sensitive { get; set; }

        /// <summary>
        /// 工单推送状态
        /// </summary>
        public EOrderPushStatus OrderPushStatus { get; set; }

        /// <summary>
        /// 预警ID
        /// </summary>
        public string EarlyWarningOrderId { get; set; }
    }
}
