using MadRunFabric.Common;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace MadRunFabric.Model.TestUserTypeApi
{
   public  class T_Msg_Chat_Map : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }
        /// <summary>
        /// 消息主键id编号
        /// </summary>
        public string chatid { get; set; }
        /// <summary>
        /// 消息来源
        /// </summary>
        public string  fromuserid { get; set; }

        /// <summary>
        /// 消息发送给谁
        /// </summary>
        public string  touserid { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime createtime { get; set; }
        /// <summary>
        /// 是否查看过 0未查看 1查看过
        /// </summary>
        public int isread { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public int isdelete { get; set; }
    }
}
