using System; using SqlSugar; namespace YD_Event.Core.Entities { /// /// 证书占位符表 (CertificatePlaceholder) /// [SugarTable("CertificatePlaceholder")] public class CertificatePlaceholder : Entity, ISoftDelete, ISortable, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime { /// /// 模板ID (关联 CertificateTemplate) /// [SugarColumn(ColumnDescription = "模板ID", IsNullable = false)] public long TemplateId { get; set; } /// /// 占位符键名 (如: UserName, CourseName) /// [SugarColumn(ColumnDescription = "占位符键名", IsNullable = false)] public string PlaceholderKey { get; set; } /// /// 占位符显示名称 /// [SugarColumn(ColumnDescription = "占位符显示名称", IsNullable = true)] public string DisplayName { get; set; } /// /// 占位符类型: Text/Image/QRCode/Date /// [SugarColumn(ColumnDescription = "占位符类型", IsNullable = false, DefaultValue = "Text")] public string PlaceholderType { get; set; } /// /// 默认值 /// [SugarColumn(ColumnDescription = "默认值", IsNullable = true)] public string DefaultValue { get; set; } /// /// 是否必填 /// [SugarColumn(ColumnDescription = "是否必填", DefaultValue = "0")] public bool IsRequired { get; set; } /// /// 验证正则表达式 /// [SugarColumn(ColumnDescription = "验证正则表达式", IsNullable = true)] public string ValidationRule { get; set; } /// /// 描述信息 /// [SugarColumn(ColumnDescription = "描述信息", IsNullable = true)] public string Description { get; set; } /// /// 排序 /// [SugarColumn(ColumnDescription = "排序")] public int Sort { get; set; } /// /// 软删除 /// [SugarColumn(ColumnDescription = "软删除")] public bool DeleteMark { get; set; } [SugarColumn(ColumnDescription = "创建人ID")] public long CreatedUserId { get; set; } [SugarColumn(ColumnDescription = "创建时间")] public DateTime CreatedTime { get; set; } [SugarColumn(ColumnDescription = "修改人ID", IsNullable = true)] public long? UpdatedUserId { get; set; } [SugarColumn(ColumnDescription = "修改时间", IsNullable = true)] public DateTime? UpdatedTime { get; set; } } }