using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace OpenAuth.Repository.Domain
{
    ///<summary>
    ///即时消息表
    ///</summary>
    [SugarTable("im_msg")]
    public partial class ImMsg
    {
           public ImMsg(){


           }
           /// <summary>
           /// Desc:消息主键
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true)]
           public string MsgId {get;set;}

           /// <summary>
           /// Desc:发送者ID
           /// Default:NULL::character varying
           /// Nullable:True
           /// </summary>           
           public string SendUserid {get;set;}

           /// <summary>
           /// Desc:接收者ID
           /// Default:NULL::character varying
           /// Nullable:True
           /// </summary>           
           public string RecvUserid {get;set;}

           /// <summary>
           /// Desc:消息内容
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Content {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? CreateDate { get;set;}

           /// <summary>
           /// Desc:是否是系统消息 0 不是 1 是
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? Issystem {get;set;}

           /// <summary>
           /// Desc:内容id
           /// Default:NULL::character varying
           /// Nullable:True
           /// </summary>           
           public string ContentId {get;set;}

           /// <summary>
           /// Desc:消息是否已读 1 是 0 不是；系统消息起作用
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? IsRead {get;set;}

           /// <summary>
           /// Desc:是否删除1 是 0 不是
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? DeleteMark {get;set;}

           /// <summary>
           /// Desc:租户ID
           /// Default:NULL::character varying
           /// Nullable:True
           /// </summary>           
           public string TenantId {get;set;}

    }
}
