using System; using YD_Event.Core.Enum; using SqlSugar; namespace YD_Event.Core.Entities { /// /// 证书表 (Certificate) /// [SugarTable("Certificate")] public class Certificate : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability, ISortable { /// /// 证书名称 /// [SugarColumn(ColumnDescription = "证书名称", IsNullable = false)] public string Name { get; set; } /// /// 证书编码/唯一标识 /// [SugarColumn(ColumnDescription = "证书编码", IsNullable = false)] public string Code { get; set; } /// /// 证书模板ID /// [SugarColumn(ColumnDescription = "模板ID", IsNullable = false)] public long TemplateId { get; set; } /// /// 备注 /// [SugarColumn(ColumnDescription = "备注", IsNullable = true)] public string Remark { get; set; } /// /// 状态 (Enable/Disable) /// [SugarColumn(ColumnDescription = "状态", DefaultValue = "1")] public AvailabilityStatus Status { get; set; } /// /// 排序 /// [SugarColumn(ColumnDescription = "排序")] public int Sort { get; set; } /// /// 软删除 /// [SugarColumn(ColumnDescription = "软删除")] public bool DeleteMark { get; set; } /// /// 创建人ID /// [SugarColumn(ColumnDescription = "创建人ID")] public long CreatedUserId { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnDescription = "创建时间")] public DateTime CreatedTime { get; set; } /// /// 更新人ID /// [SugarColumn(ColumnDescription = "更新人ID", IsNullable = true)] public long? UpdatedUserId { get; set; } /// /// 更新时间 /// [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)] public DateTime? UpdatedTime { get; set; } } }