Adjust ChapterRating Entity slightly

This commit is contained in:
Amelia 2025-04-26 16:32:13 +02:00
parent 4f3cb6a407
commit f85703eca2
No known key found for this signature in database
GPG key ID: D6D0ECE365407EAA
9 changed files with 25 additions and 18 deletions

View file

@ -1,16 +1,24 @@
using API.Entities.Enums;
using API.Services.Plus;
namespace API.Entities;
#nullable enable
public enum ReviewAuthority
{
User = 0,
Critic = 1,
}
public class AppUserChapterRating
{
public int Id { get; set; }
public float Rating { get; set; }
public bool HasBeenRated { get; set; }
public string? Review { get; set; }
public RatingProvider Provider {get; set; }
public ScrobbleProvider Provider { get; set; } = ScrobbleProvider.Kavita;
public ReviewAuthority Authority { get; set; } = ReviewAuthority.User;
public int SeriesId { get; set; }
public Series Series { get; set; } = null!;