namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps; /// /// 聊天记录表 /// [EntityDescription(FieldIgnored = true)] public class T_Chat : DefaultEntityV4 { /// /// 聊天内容 => 备注: 聊天内容 /// public Int32 UserId { get; set; } /// /// 消息内容 => 备注: 消息内容 /// public string? Content { get; set; } /// /// 发送时间 => 备注: 发送时间 /// public DateTime TimeStamp { get; set; } /// /// 创建时间 => 备注: 创建时间 /// public DateTime CreateTime { get; set; } /// /// 更新时间 => 备注: 更新时间 /// public DateTime UpdateTime { get; set; } /// /// 输入token => 备注: 输入token /// public Int32 Input_tokens { get; set; } /// /// 输出token => 备注: 输出token /// public Int32 Output_tokens { get; set; } /// /// 人物表Id => 备注: 人物表Id /// public Int32 CharacterId { get; set; } /// /// 角色 => 备注: user/assistant /// public string? Role { get; set; } /// /// 会话Id => 备注: SessionId /// public Guid SessionId { get; set; } /// /// 发送消息 => 备注: 发送消息,天 /// public Int64 SendDateDay { get; set; } /// /// 发送消息时间戳 => 备注: 发送消息时间戳 /// public Int64 SendMessageDay { get; set; } /// /// 消息状态 => 备注: 0正常,1重新生成,2 删除 /// public Int32 Type { get; set; } /// /// 消息类型 => 备注: 聊天返回的消息的类型 /// public string? ClaudeType { get; set; } /// /// ClaudeId => 备注: 聊天返回的Id /// public string? ClaudeId { get; set; } /// /// 人物模型 => 备注: 人物模型,聊天返回的模型 /// public string? ClaudeModel { get; set; } /// /// 总Tokens => 备注: 消耗的token /// public Int32? Tokens { get; set; } }