using System;
using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities
{
///
/// 证书实体类
///
public class Certificate : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability, ISortable
{
///
/// 证书名称
///
public string Name { get; set; }
///
/// 证书标题
///
public string Title { get; set; }
///
/// 发放规则
///
public string IssueRule { get; set; }
///
/// 颁发机构
///
public string Issuer { get; set; }
///
/// 有效期(天)
///
public int? ValidityDays { get; set; }
///
/// 备注
///
public string Remark { get; set; }
///
/// 证书模板类型:0-图片,1-PDF
///
public int TemplateType { get; set; }
///
/// 证书模板内容 (图片/PDF URL)
///
public string TemplateContent { get; set; }
///
/// 模板宽度 (px)
///
public int Width { get; set; }
///
/// 模板高度 (px)
///
public int Height { get; set; }
///
/// 占位符配置 (JSON)
///
[SugarColumn(ColumnDataType = "varchar(max)", IsJson = true)]
public string Placeholders { get; set; }
///
/// 二维码地址
///
public string QrCodeUrl { get; set; }
///
/// 可用状态
///
public AvailabilityStatus Status { get; set; }
///
/// 排序值(值越小越靠前)
///
public int Sort { get; set; }
///
/// 标记删除
///
public bool DeleteMark { get; set; }
///
/// 创建人ID
///
public long CreatedUserId { get; set; }
///
/// 创建时间
///
public DateTime CreatedTime { get; set; }
///
/// 更新人
///
public long? UpdatedUserId { get; set; }
///
/// 更新时间
///
public DateTime? UpdatedTime { get; set; }
}
}