mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-06-05 14:25:17 -04:00
Progress Overhaul + Profile Page and a LOT more! (#4262)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com> Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using API.Entities.Interfaces;
|
||||
using API.Services.Reading;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace API.Entities.Progress;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a reading session for a user. See <see cref="ReadingSessionService"/>
|
||||
/// </summary>
|
||||
[Index(nameof(IsActive), IsUnique = false)]
|
||||
public class AppUserReadingSession : IEntityDate
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateTime StartTime { get; set; }
|
||||
public DateTime StartTimeUtc { get; set; }
|
||||
public DateTime? EndTime { get; set; }
|
||||
public DateTime? EndTimeUtc { get; set; }
|
||||
public bool IsActive { get; set; } = true;
|
||||
/// <summary>
|
||||
/// Actual activity data recorded during the session
|
||||
/// </summary>
|
||||
public IList<AppUserReadingSessionActivityData> ActivityData { get; set; }
|
||||
public DateTime Created { get; set; }
|
||||
public DateTime CreatedUtc { get; set; }
|
||||
public DateTime LastModified { get; set; }
|
||||
public DateTime LastModifiedUtc { get; set; }
|
||||
|
||||
|
||||
public int AppUserId { get; set; }
|
||||
public virtual AppUser AppUser { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user