using DS.Module.Core; using DS.Module.Core.Data; using SqlSugar; namespace DS.WMS.Core.Code.Entity { /// /// 用户邮箱账户 /// [SugarTable("code_user_email", "用户邮箱账户")] public class CodeUserEmail : BaseModel { /// /// 邮箱账号 /// [SugarColumn(ColumnDescription = "邮箱账号", Length = 100, IsNullable = true)] public string MailAccount { get; set; } /// /// 发件显示名 /// [SugarColumn(ColumnDescription = "发件显示名", Length = 50, IsNullable = true)] public string? ShowName { get; set; } /// /// 密码 /// [SugarColumn(ColumnDescription = "密码", Length = 50, IsNullable = true)] public string Password { get; set; } /// /// 收件服务器 /// [SugarColumn(ColumnDescription = "收件服务器", Length = 50, IsNullable = true)] public string ReceiveServer { get; set; } /// /// 使用IMAP4 /// [SugarColumn(ColumnDescription = "使用IMAP4", IsNullable = true,DefaultValue ="0")] public bool? UseImap { get; set; } /// /// 收件端口 /// [SugarColumn(ColumnDescription = "收件端口", Length = 50, IsNullable = true, DefaultValue = "0")] public int? ReceivePort { get; set; } /// /// 收件SSL /// [SugarColumn(ColumnDescription = "收件SSL", IsNullable = true, DefaultValue = "0")] public bool? ReceiveSSL { get; set; } /// /// 发件服务器 /// [SugarColumn(ColumnDescription = "发件服务器", Length = 50, IsNullable = true)] public string SmtpServer { get; set; } /// /// 发件端口 /// [SugarColumn(ColumnDescription = "发件端口", Length = 50, IsNullable = true, DefaultValue = "0")] public int? SmtpPort { get; set; } /// /// 发件SSL /// [SugarColumn(ColumnDescription = "发件SSL", IsNullable = true, DefaultValue = "0")] public bool? SmtpSSL { get; set; } /// /// 状态 0启用 1禁用 /// [SugarColumn(ColumnDescription = "状态", DefaultValue = "0")] public StatusEnum? Status { get; set; } = StatusEnum.Enable; /// /// 是否为公司账号 /// [SugarColumn(ColumnDescription = "是否为公司账号", DefaultValue = "0")] public bool IsCompany { get; set; } = false; } }