using SqlSugar; using System.ComponentModel.DataAnnotations; namespace DMS.Infrastructure.Entities { /// /// 邮件模板数据库实体 /// [SugarTable("email_templates")] public class DbEmailTemplate { /// /// 模板ID /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public int Id { get; set; } /// /// 模板名称 /// [SugarColumn(Length = 100)] public string Name { get; set; } /// /// 模板代码(唯一标识) /// [SugarColumn(Length = 50)] public string Code { get; set; } /// /// 模板主题 /// [SugarColumn(Length = 500)] public string Subject { get; set; } /// /// 模板内容 /// [SugarColumn(Length = 4000)] public string Body { get; set; } /// /// 是否为HTML格式 /// public bool IsHtml { get; set; } = true; /// /// 是否启用 /// public bool IsActive { get; set; } = true; /// /// 创建时间 /// public DateTime CreatedAt { get; set; } = DateTime.Now; /// /// 更新时间 /// public DateTime UpdatedAt { get; set; } = DateTime.Now; } }