Unify ChapterRating with Rating
This commit is contained in:
parent
a9e2937651
commit
f29c63c6c4
34 changed files with 266 additions and 679 deletions
|
|
@ -1,34 +0,0 @@
|
|||
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 ScrobbleProvider Provider { get; set; } = ScrobbleProvider.Kavita;
|
||||
public ReviewAuthority Authority { get; set; } = ReviewAuthority.User;
|
||||
|
||||
public int SeriesId { get; set; }
|
||||
public Series Series { get; set; } = null!;
|
||||
|
||||
public int ChapterId { get; set; }
|
||||
public Chapter Chapter { get; set; } = null!;
|
||||
|
||||
public int VolumeId { get; set; }
|
||||
public Volume Volume { get; set; } = null!;
|
||||
|
||||
public int AppUserId { get; set; }
|
||||
public AppUser AppUser { get; set; } = null!;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue