using SqlSugar;
using System.ComponentModel;
using XF.Domain.Repository;

namespace Hotline.Orders
{
    /// <summary>
    /// 撤销件
    /// </summary>
    [Description("撤销件")]
	[SugarIndex("index_revocation_orderId", nameof(OrderRevocation.OrderId), OrderByType.Desc)]
	public class OrderRevocation : CreationEntity
    {
        /// <summary>
        /// 工单编号（冗余）
        /// </summary>
        public string? No { get; set; }

        /// <summary>
        /// 工单ID
        /// </summary>
        public string OrderId { get; set; }

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

        /// <summary>
        /// 撤销原因
        /// </summary>
        public string RevocationReason { get; set; }

        /// <summary>
        /// 是否发送撤销短信
        /// </summary>
        public bool IsSendSms { get; set; }
    }
}
