You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.2 KiB
47 lines
1.2 KiB
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Wood.Entity.SystemManage
|
|
{
|
|
/// <summary>
|
|
/// 用户消息关系实体
|
|
/// </summary>
|
|
[SugarTable("SysUserMessage", "用户消息关系实体")]
|
|
public class UserMessageEntity : EntityCreateBase
|
|
{
|
|
/// <summary>
|
|
/// 接收用户ID(关联用户表主键)
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "接收用户ID")]
|
|
public long UserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 消息ID(关联消息主表)
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "消息ID")]
|
|
public long MessageId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 阅读状态(true-已读,false-未读)
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "阅读状态")]
|
|
public bool IsRead { get; set; }
|
|
|
|
/// <summary>
|
|
/// 阅读时间(可为空,未读时无值)
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "阅读时间",IsNullable =true)]
|
|
public DateTime? ReadTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 导航属性 - 关联的消息主体(OneToOne 一对一关系)
|
|
/// </summary>
|
|
[Navigate(NavigateType.OneToOne, nameof(MessageId))]
|
|
public MessageEntity? Message { get; set; }
|
|
}
|
|
|
|
}
|
|
|