Files
zsxt_nbzs_h5/Api/Ewide.Core/Entity/SysNoticeUser.cs
2021-07-01 19:02:07 +08:00

48 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Ewide.Core
{
/// <summary>
/// 通知公告用户表
/// </summary>
[Table("sys_notice_user")]
[Comment("通知公告用户表")]
public class SysNoticeUser : DEntityBase
{
/// <summary>
/// 通知公告Id
/// </summary>
[Comment("通知公告Id")]
[Column("NoticeId", TypeName = "varchar(36)")]
public string NoticeId { get; set; }
/// <summary>
/// 用户Id
/// </summary>
[Comment("用户Id")]
[Column("UserId", TypeName = "varchar(36)")]
public string UserId { get; set; }
/// <summary>
/// 阅读时间
/// </summary>
[Comment("阅读时间")]
public DateTime? ReadTime { get; set; }
/// <summary>
/// 状态(字典 0未读 1已读
/// </summary>
[Comment("状态")]
public int ReadStatus { get; set; }
public void Configure(EntityTypeBuilder<SysNoticeUser> entityBuilder, DbContext dbContext, Type dbContextLocator)
{
entityBuilder.HasNoKey();
}
}
}