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.

54 lines
1.9 KiB

using FreeSql.DataAnnotations;
namespace Znyc.CloudCar.Model.Entities
{
/// <summary>
/// 站内消息表
/// </summary>
[Table(Name = "message")]
public class MessageEntity : EntityBase
{
/// <summary>
/// 发送者Id
/// </summary>
public long SendId { get; set; }
/// <summary>
/// 组Id(不涉及组消息可不用)
/// </summary>
public long GroupId { get; set; }
/// <summary>
/// 消息内容
/// </summary>
[Column(StringLength = 255)]
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Content”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
public string Content { get; set; }
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Content”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
/// <summary>
/// 发送时间
/// </summary>
[Column(Position = -1, ServerTime = DateTimeKind.Local)]
public DateTime SendTime { get; set; }
/// <summary>
/// 设备Id
/// </summary>
public long EquipmentId { get; set; }
/// <summary>
/// 设备标题
/// </summary>
public string EquipmentTitle { get; set; }
/// <summary>
/// 消息标题
/// </summary>
[Column(StringLength = 15)]
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“MessageTitle”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
public string MessageTitle { get; set; }
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“MessageTitle”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
}
}