Files
GreenHomeBack/src/GreenHome.Domain/UsageCounter.cs

22 lines
702 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace GreenHome.Domain;
/// <summary>
/// مصرف هر کاربر در هر روز (تعداد SMS، تماس صوتی، query AI و توکن AI).
/// </summary>
public sealed class UsageCounter
{
public int Id { get; set; }
public int UserId { get; set; }
public User User { get; set; } = null!;
/// <summary>
/// تاریخ (فقط date). روز از DateTime.UtcNow مشتق می‌شود تا با Timestampهای Utc هم‌خوان باشد.
/// </summary>
public DateOnly Date { get; set; }
public int SmsCount { get; set; }
public int VoiceCallCount { get; set; }
public int AiQueryCount { get; set; }
public int AiTokenCount { get; set; }
}