
//--------------------------------------------------------------------
//     此代码由T4模板自动生成  byzhouhang 20210918
//	   生成时间 2022-02-15 11:55:43 
//     对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
using IRaCIS.Core.Domain.Share;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
    ///<summary>
    ///EmailNoticeConfig
    ///</summary>
    [Table("EmailNoticeConfig")]
    public class EmailNoticeConfig : Entity, IAuditUpdate, IAuditAdd
    {


        /// <summary>
        /// CreateTime
        /// </summary>
        [Required]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// CreateUserId
        /// </summary>
        [Required]
        public Guid CreateUserId { get; set; }

        /// <summary>
        /// UpdateUserId
        /// </summary>
        [Required]
        public Guid UpdateUserId { get; set; }


        [Required]
        public Guid ScenarioId { get; set; }


        [ForeignKey("ScenarioId")]
        public SystemBasicData Scenario { get; set; }

        /// <summary>
        /// UpdateTime
        /// </summary>
        [Required]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// Title
        /// </summary>
        [Required]
        public string Title { get; set; } = String.Empty;

        /// <summary>
        /// Body
        /// </summary>
        [Required]
        public string Body { get; set; } = String.Empty;

        /// <summary>
        /// FromEmail
        /// </summary>
        [Required]
        public string FromEmail { get; set; } = String.Empty;

        /// <summary>
        /// ReceiveEmail
        /// </summary>
        [Required]
        public string ReceiveEmail { get; set; } = String.Empty;

        /// <summary>
        /// CopyEmail
        /// </summary>
        [Required]
        public string CopyEmail { get; set; } = String.Empty;

        /// <summary>
        /// IsReturnRequired
        /// </summary>
        [Required]
        public bool IsReturnRequired { get; set; }

        /// <summary>
        /// IsUrgent
        /// </summary>
        [Required]
        public bool IsUrgent { get; set; }

        /// <summary>
        /// IsEnable
        /// </summary>
        [Required]
        public bool IsEnable { get; set; }


        public string AuthorizationCode { get; set; } = String.Empty;

        public string Code { get; set; } = String.Empty;

        public bool IsAutoSend { get; set; }

    }

}
