using DS.Module.Core;
using DS.Module.Core.Data;
using SqlSugar;
namespace DS.WMS.Core.Op.Entity.TaskInteraction
{
///
/// 任务邮件发送配置
///
[SugarTable("business_task_mail", "任务邮件发送配置")]
public class BusinessTaskMail : BaseModelV2
{
///
/// 任务类型
///
[SugarColumn(ColumnDescription = "任务类型", IsNullable = false)]
public TaskBaseTypeEnum TaskType { get; set; }
///
/// 任务状态
///
[SugarColumn(ColumnDescription = "任务状态", IsNullable = false)]
public TaskStatusEnum TaskStatus { get; set; }
///
/// 主题
///
[SugarColumn(ColumnDescription = "主题", Length = 200, IsNullable = false)]
public string Title { get; set; } = string.Empty;
///
/// 内容
///
[SugarColumn(ColumnDescription = "内容", ColumnDataType = "text", IsNullable = false)]
public string Content { get; set; } = string.Empty;
///
/// 客户名称
///
[SugarColumn(ColumnDescription = "客户名称", Length = 200, IsNullable = true)]
public string? CustomerName { get; set; }
///
/// 机构ID
///
[SugarColumn(ColumnDescription = "机构ID", IsNullable = false)]
public long OrgId { get; set; }
///
/// 接收人设置
///
[Navigate(NavigateType.OneToOne, nameof(Id))]
public BusinessTaskMailReceiver? Receiver { get; set; }
///
/// 发送人设置
///
[Navigate(NavigateType.OneToOne, nameof(Id))]
public BusinessTaskMailSender? Sender { get; set; }
///
/// 附件设置
///
[Navigate(NavigateType.OneToMany, nameof(BusinessTaskMailAttachment.TaskMailId))]
public List? Attachments { get; set; }
}
}