namespace Admin.NET.Core.Ai.Entitys; /// /// 聊天摘要历史 /// [SugarTable("LLMChatSummaryHistory")] [IncreTable] [SugarIndex("index_UserId_{table}", nameof(UserId), OrderByType.Asc)] [SugarIndex("index_UniqueToken_{table}", nameof(UniqueToken), OrderByType.Asc)] public class LLMChatSummaryHistory:EntityBaseId { /// /// 用户ID /// [SugarColumn(ColumnDescription = "用户ID")] public long UserId { get; set; } /// /// 唯一标识 /// [SugarColumn(ColumnDescription = "唯一标识")] public string UniqueToken {get;set;} /// /// 摘要 /// [SugarColumn(ColumnDescription = "摘要",Length = 4000)] public string? Summary { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnDescription = "创建时间")] public long UtcCreateTime {get;set;} = DateTime.UtcNow.ToLong(); /// /// 聊天历史 /// [Navigate(NavigateType.OneToMany, nameof(LLMChatHistory.SummaryId))] public List? Histories { get; set; } }