Kavita/API/Entities/Progress/AppUserReadingHistory.cs
Joe Milazzo e1f421ccc0
Stats Page Overhaul (#4292)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
2025-12-19 12:23:55 -08:00

30 lines
749 B
C#

using System;
using System.Collections.Generic;
using API.DTOs.Progress;
using Microsoft.EntityFrameworkCore;
namespace API.Entities.Progress;
/// <summary>
/// Represents a single day's worth of Reading Sessions
/// </summary>
[Index(nameof(DateUtc), IsUnique = true)]
public class AppUserReadingHistory
{
public int Id { get; set; }
public DateTime DateUtc { get; set; }
public DateTime CreatedUtc { get; set; }
/// <summary>
/// JSON Column
/// </summary>
public DailyReadingDataDto Data { get; set; }
/// <summary>
/// JSON Column
/// </summary>
public IList<ClientInfoData> ClientInfoUsed { get; set; }
public int AppUserId { get; set; }
public virtual AppUser AppUser { get; set; }
}