using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
///
/// 赛事证书表
///
[SugarTable("EventCertificate")]
public class EventCertificate : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime
{
///
/// 关联的成绩ID
///
public long ResultId { get; set; }
///
/// 关联的参赛记录ID
///
public long ParticipationRecordId { get; set; }
///
/// 关联的报名ID
///
public long RegistrationId { get; set; }
///
/// 赛事ID
///
public long EventId { get; set; }
///
/// 赛事项目ID
///
public long ProjectId { get; set; }
///
/// 关联的用户ID
///
public long UserId { get; set; }
///
/// 归属单位认证 ID(从 EventRegistration 继承)
///
[SugarColumn(IsNullable = true)]
public long? MerchantCertificationId { get; set; }
///
/// 参赛选手姓名
///
[SugarColumn(Length = 64)]
public string ParticipantName { get; set; }
///
/// 参赛组别
///
[SugarColumn(Length = 64)]
public string GroupName { get; set; }
///
/// 获奖等级:1-特等奖,2-一等奖,3-二等奖,4-三等奖,5-优秀奖
///
public int AwardLevel { get; set; }
///
/// 证书类型:1-冠军证书,2-亚军证书,3-季军证书,4-优胜证书,5-参与证书
///
public int CertificateType { get; set; }
///
/// 证书编号
///
[SugarColumn(Length = 64)]
public string CertificateNo { get; set; }
///
/// 证书模板ID
///
public long? TemplateId { get; set; }
///
/// 证书URL
///
[SugarColumn(Length = 256)]
public string CertificateUrl { get; set; }
///
/// 证书状态:0-未生成,1-已生成,2-已发放,3-已撤销
///
public int CertificateStatus { get; set; }
///
/// 生成时间
///
public DateTime? GeneratedTime { get; set; }
///
/// 发放时间
///
public DateTime? IssuedTime { get; set; }
///
/// 备注
///
[SugarColumn(ColumnDataType = "TEXT")]
public string? Remark { get; set; }
///
/// 标记删除
///
public bool DeleteMark { get; set; }
///
/// 创建人
///
public long CreatedUserId { get; set; }
///
/// 创建时间
///
public DateTime CreatedTime { get; set; }
///
/// 更新人
///
public long? UpdatedUserId { get; set; }
///
/// 更新时间
///
public DateTime? UpdatedTime { get; set; }
}