using System;

namespace CloudGaming.Model.DbSqlServer.Db_Phone;

/// <summary>
/// 用户消息表
/// </summary>
public partial class T_User_Messages: MultiTenantEntity
{
    public T_User_Messages() { }

    /// <summary>
    /// 主键
    /// </summary>
    public virtual int Id { get; set; }

    /// <summary>
    /// 对应用户的Id
    /// </summary>
    public virtual int UserId { get; set; }

     /// <summary>
    /// 所属租户
    /// </summary>
    public override Guid TenantId { get; set; }
         
    /// <summary>
    /// 消息类型
    /// </summary>
    public virtual string MessageType { get; set; } = null!;

    /// <summary>
    /// 消息标题
    /// </summary>
    public virtual string Title { get; set; } = null!;

    /// <summary>
    /// 消息内容
    /// </summary>
    public virtual string Content { get; set; } = null!;

    /// <summary>
    /// 是否已读
    /// </summary>
    public virtual bool IsRead { get; set; }

    /// <summary>
    /// 已读时间
    /// </summary>
    public virtual DateTime? ReadAt { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public virtual DateTime CreateAt { get; set; }

    /// <summary>
    /// 系统消息Id
    /// </summary>
    public virtual int SystemId { get; set; }

    /// <summary>
    /// 消息发送时间
    /// </summary>
    public virtual DateTime SendAt { get; set; }
}
