Files
jobtrackingapp/JobTrackerApi/Models/AiUsageRecord.cs
T
cesnimda 134aac7bcf
CI and Deploy / test (pull_request) Successful in 5m19s
CI and Deploy / deploy (pull_request) Has been skipped
feat(ai): centralize durable usage
Add a content-free usage ledger with legacy backfill. Reserve Workspace and durable Strategy/CV work before execution so deleted history or duplicate admission cannot reset limits.
2026-08-15 20:03:06 +02:00

16 lines
582 B
C#

namespace JobTrackerApi.Models;
public sealed class AiUsageRecord
{
public long Id { get; set; }
public string OwnerUserId { get; set; } = string.Empty;
public string SourceType { get; set; } = string.Empty;
public string SourceId { get; set; } = string.Empty;
public string TaskType { get; set; } = string.Empty;
public int CallCount { get; set; } = 1;
public int InputCharacterCount { get; set; }
public int OutputCharacterCount { get; set; }
public int EstimatedTokenCount { get; set; }
public DateTimeOffset CreatedAtUtc { get; set; }
}