using Common.Enum; using Entity.Base; using SqlSugar; namespace Entity.DbModel.System { /// /// 系统通知公告用户表 /// [SugarTable("sys_notice_user")] public partial class SysNoticeUser : EntityBaseId { /// /// 通知公告Id /// [SugarColumn(ColumnName = "notice_id")] public long NoticeId { get; set; } /// /// 通知公告 /// [Navigate(NavigateType.OneToOne, nameof(NoticeId))] [SugarColumn(ColumnName = "sys_notice")] public SysNotice SysNotice { get; set; } /// /// 用户Id /// [SugarColumn(ColumnName = "user_id")] public long UserId { get; set; } /// /// 阅读时间 /// [SugarColumn(ColumnName = "read_time")] public DateTime? ReadTime { get; set; } /// /// 状态(0未读 1已读) /// [SugarColumn(ColumnDescription = "状态(0未读 1已读)", ColumnName = "read_status")] public NoticeUserStatusEnum ReadStatus { get; set; } = NoticeUserStatusEnum.UNREAD; } }