ke_junjie
2025-06-04 84620534eb627e95811b971a4b552b6a177829bf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System.ComponentModel.DataAnnotations.Schema;
 
namespace iWare.Wms.Core
{
    /// <summary>
    /// 通知公告用户表
    /// </summary>
    [Table("sys_notice_user")]
    [Comment("通知公告用户表")]
    public class SysNoticeUser : IEntity, IEntityTypeBuilder<SysNoticeUser>
    {
        /// <summary>
        /// 通知公告Id
        /// </summary>
        [Comment("通知公告Id")]
        public long NoticeId { get; set; }
 
        /// <summary>
        /// 用户Id
        /// </summary>
        [Comment("用户Id")]
        public long UserId { get; set; }
 
        /// <summary>
        /// 阅读时间
        /// </summary>
        [Comment("阅读时间")]
        public DateTimeOffset? ReadTime { get; set; }
 
        /// <summary>
        /// 状态(字典 0未读 1已读)
        /// </summary>
        [Comment("状态")]
        public NoticeUserStatus ReadStatus { get; set; }
 
        public void Configure(EntityTypeBuilder<SysNoticeUser> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
            entityBuilder.HasKey(c => new { c.NoticeId, c.UserId });
        }
    }
}