mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-05-02 19:12:51 +08:00
39 lines
938 B
C#
39 lines
938 B
C#
namespace NetAdmin.Domain.DbMaps.Sys;
|
|
|
|
/// <summary>
|
|
/// 站内信-用户映射表
|
|
/// </summary>
|
|
[SqlIndex($"{Chars.FLG_DB_INDEX_PREFIX}{nameof(UserId)}_{nameof(SiteMsgId)}", $"{nameof(UserId)},{nameof(SiteMsgId)}", true)]
|
|
[Table(Name = Chars.FLG_DB_TABLE_NAME_PREFIX + nameof(Sys_SiteMsgUser))]
|
|
public record Sys_SiteMsgUser : ImmutableEntity
|
|
{
|
|
/// <summary>
|
|
/// 关联的站内信
|
|
/// </summary>
|
|
[CsvIgnore]
|
|
[JsonIgnore]
|
|
public Sys_SiteMsg SiteMsg { get; init; }
|
|
|
|
/// <summary>
|
|
/// 站内信编号
|
|
/// </summary>
|
|
[Column]
|
|
[CsvIgnore]
|
|
[JsonIgnore]
|
|
public long SiteMsgId { get; init; }
|
|
|
|
/// <summary>
|
|
/// 关联的用户
|
|
/// </summary>
|
|
[CsvIgnore]
|
|
[JsonIgnore]
|
|
public Sys_User User { get; init; }
|
|
|
|
/// <summary>
|
|
/// 用户编号
|
|
/// </summary>
|
|
[Column]
|
|
[CsvIgnore]
|
|
[JsonIgnore]
|
|
public long UserId { get; init; }
|
|
} |