using System; using System.Collections.Generic; namespace IM_API.Models; public partial class Message { public int Id { get; set; } /// /// 聊天类型 /// (0:私聊,1:群聊) /// public sbyte ChatType { get; set; } /// /// 消息类型 /// (0:文本,1:图片,2:语音,3:视频,4:文件,5:语音聊天,6:视频聊天) /// public sbyte MsgType { get; set; } /// /// 消息内容 /// public string Content { get; set; } = null!; /// /// 发送者 /// public int Sender { get; set; } /// /// 接收者(私聊为用户ID,群聊为群聊ID) /// public int Recipient { get; set; } /// /// 消息状态(0:已发送,1:已撤回) /// public sbyte State { get; set; } /// /// 发送时间 /// public DateTime Created { get; set; } /// /// 消息推送唯一标识符 /// public string StreamKey { get; set; } = null!; public virtual ICollection Conversations { get; set; } = new List(); public virtual ICollection Files { get; set; } = new List(); public virtual User SenderNavigation { get; set; } = null!; }