using SqlSugar;
using Volo.Abp.Domain.Entities.Auditing;
using Yi.Framework.AiHub.Domain.Shared.Enums;

namespace Yi.Framework.AiHub.Domain.Entities.Chat;

[SugarTable("Ai_Session")]
[SugarIndex($"index_{{table}}_{nameof(UserId)}",$"{nameof(UserId)}", OrderByType.Asc)]
public class SessionAggregateRoot : FullAuditedAggregateRoot<Guid>
{
    public Guid UserId { get; set; }
    public string SessionTitle { get; set; }

    [SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString)]
    public string SessionContent { get; set; }
    public string? Remark { get; set; }

    /// <summary>
    /// 会话类型：0-普通聊天，1-Agent智能体
    /// </summary>
    public SessionTypeEnum SessionType { get; set; } = SessionTypeEnum.Chat;
}