Kavita/API/Entities/Progress/AppUserReadingHistory.cs
Joe Milazzo 53a7e690a1
Almost there (#4343)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
2026-01-12 15:29:55 -08:00

30 lines
705 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; }
/// <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; }
}