namespace Admin.NET.Core; /// /// 系统通知公告用户表 /// [SugarTable(null, "系统通知公告用户表")] [SystemTable] public class SysNoticeUser { /// /// 通知公告Id /// [SugarColumn(ColumnDescription = "通知公告Id")] public long NoticeId { get; set; } /// /// 通知公告 /// [SugarColumn(IsIgnore = true)] [Navigate(NavigateType.OneToOne, nameof(NoticeId))] public SysNotice SysNotice { get; set; } /// /// 用户Id /// [SugarColumn(ColumnDescription = "用户Id")] public long UserId { get; set; } /// /// 阅读时间 /// [SugarColumn(ColumnDescription = "阅读时间")] public DateTime? ReadTime { get; set; } /// /// 状态(0未读 1已读) /// [SugarColumn(ColumnDescription = "状态(0未读 1已读)")] public NoticeUserStatusEnum ReadStatus { get; set; } = NoticeUserStatusEnum.UNREAD; }