using SqlSugar;
using Volo.Abp.Domain.Entities.Auditing;
using Yi.Framework.Core.Data;

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

/// <summary>
/// ai应用
/// </summary>
[SugarTable("Ai_App")]
public class AiAppAggregateRoot : FullAuditedAggregateRoot<Guid>, IOrderNum
{
    /// <summary>
    /// 应用名称
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 应用终结点
    /// </summary>
    public string Endpoint { get; set; }

    /// <summary>
    /// 额外url
    /// </summary>
    public string? ExtraUrl { get; set; }

    /// <summary>
    /// 应用key
    /// </summary>
    public string ApiKey { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int OrderNum { get; set; }

    /// <summary>
    /// ai模型
    /// </summary>
    [Navigate(NavigateType.OneToMany, nameof(AiModelEntity.AiAppId))]
    public List<AiModelEntity> AiModels { get; set; }
}