YD_Event.Admin/YD_Event.Core/Entities/EventJudgeMessage.cs

91 lines
2.1 KiB
C#
Raw Normal View History

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