34 lines
919 B
C#
34 lines
919 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace DramaLing.Api.Models.Entities;
|
|
|
|
public class WordQueryUsageStats
|
|
{
|
|
[Key]
|
|
public Guid Id { get; set; }
|
|
|
|
[Required]
|
|
public Guid UserId { get; set; }
|
|
|
|
[Required]
|
|
public DateOnly Date { get; set; }
|
|
|
|
public int SentenceAnalysisCount { get; set; } = 0; // 句子分析次數
|
|
|
|
public int HighValueWordClicks { get; set; } = 0; // 高價值詞彙點擊(免費)
|
|
|
|
public int LowValueWordClicks { get; set; } = 0; // 低價值詞彙點擊(收費)
|
|
|
|
public int TotalApiCalls { get; set; } = 0; // 總 API 調用次數
|
|
|
|
public int UniqueWordsQueried { get; set; } = 0; // 查詢的獨特詞彙數
|
|
|
|
[Required]
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
[Required]
|
|
public DateTime UpdatedAt { get; set; }
|
|
|
|
// Navigation properties
|
|
public User User { get; set; } = null!;
|
|
} |