using dy.net.model.dto; using SqlSugar; namespace dy.net.model.entity { [SugarTable(TableName = "dy_email_notification_settings")] public sealed class EmailNotificationSettings { [SugarColumn(IsPrimaryKey = true, Length = 50)] public string Id { get; set; } = "default"; public bool Enabled { get; set; } [SugarColumn(Length = 500, IsNullable = true)] public string Host { get; set; } public int Port { get; set; } = 465; public EmailSecurityMode SecurityMode { get; set; } = EmailSecurityMode.SslOnConnect; [SugarColumn(Length = 500, IsNullable = true)] public string UserName { get; set; } [SugarColumn(Length = -1, IsNullable = true)] public string ProtectedPassword { get; set; } [SugarColumn(Length = 500, IsNullable = true)] public string FromAddress { get; set; } [SugarColumn(Length = 200, IsNullable = true)] public string FromName { get; set; } [SugarColumn(Length = 4000, IsNullable = true)] public string Recipients { get; set; } [SugarColumn(IsNullable = true)] public DateTime? LastTestedAt { get; set; } [SugarColumn(Length = 1000, IsNullable = true)] public string LastTestMessage { get; set; } } }