namespace YD_Event.Core.Entities;
///
/// 裁判端消息表
///
[SugarTable("EventJudgeMessage")]
public class EventJudgeMessage : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime
{
///
/// 关联的赛事ID
///
public long EventId { get; set; }
///
/// 接收用户ID
///
public long ReceiverUserId { get; set; }
///
/// 接收裁判ID
///
public long RefereeId { get; set; }
///
/// 消息类型:1-成绩修正提醒,2-评分任务下发,3-重赛通知,9-系统通知
///
public int MessageType { get; set; }
///
/// 消息标题
///
[SugarColumn(Length = 128)]
public string Title { get; set; } = null!;
///
/// 消息内容
///
[SugarColumn(Length = 512)]
public string Content { get; set; } = null!;
///
/// 关联业务类型
///
[SugarColumn(Length = 32, IsNullable = true)]
public string? RelationType { get; set; }
///
/// 关联业务ID
///
[SugarColumn(IsNullable = true)]
public long? RelationId { get; set; }
///
/// 是否已读
///
public bool IsRead { get; set; }
///
/// 阅读时间
///
[SugarColumn(IsNullable = true)]
public DateTime? ReadTime { get; set; }
///
/// 标记删除
///
public bool DeleteMark { get; set; }
///
/// 创建人
///
public long CreatedUserId { get; set; }
///
/// 创建时间
///
public DateTime CreatedTime { get; set; }
///
/// 更新人
///
[SugarColumn(IsNullable = true)]
public long? UpdatedUserId { get; set; }
///
/// 更新时间
///
[SugarColumn(IsNullable = true)]
public DateTime? UpdatedTime { get; set; }
}