using Hotline.Share.Enums.Push;
using SqlSugar;
using XF.Domain.Repository;

namespace Hotline.Push
{
    public class BatchSmsTask : CreationEntity
    {
        /// <summary>
        /// 任务名称
        /// </summary>
        public string TaskName { get; set; }

        /// <summary>
        /// 任务状态
        /// </summary>
        public ESmsTaskState SmsTaskState { get; set; }

        [SugarColumn(ColumnDataType = "varchar(8000)")]
        public string Content { get; set; }

        /// <summary>
        /// 短信总数
        /// </summary>
        public int SmsCount{ get; set; }

        /// <summary>
        /// 计划发送时间
        /// </summary>
        public DateTime PlanSendTime { get; set; }

        [Navigate(NavigateType.OneToMany,nameof(BatchSmsTaskDetail.TaskId))]
        public List<BatchSmsTaskDetail> BatchSmsTaskDetails { get; set; }

    }
}
