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