36 lines
787 B
C#
36 lines
787 B
C#
using SqlSugar;
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
|
|
namespace Yi.Framework.AiHub.Domain.Entities;
|
|
|
|
/// <summary>
|
|
/// 用量统计
|
|
/// </summary>
|
|
[SugarTable("Ai_UsageStatistics")]
|
|
public class UsageStatisticsAggregateRoot : FullAuditedAggregateRoot<Guid>
|
|
{
|
|
/// <summary>
|
|
/// 用户id
|
|
/// </summary>
|
|
public Guid UserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 哪个模型
|
|
/// </summary>
|
|
public string ModelId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 输入使用token使用
|
|
/// </summary>
|
|
public decimal InputTokens { get; set; }
|
|
|
|
/// <summary>
|
|
/// 输出使用token使用
|
|
/// </summary>
|
|
public decimal OutputTokens { get; set; }
|
|
|
|
/// <summary>
|
|
/// 对话次数
|
|
/// </summary>
|
|
public int Number { get; set; }
|
|
} |