Sort by Average Rating and Big Want to Read fix (#2672)
This commit is contained in:
parent
03e7d38482
commit
1fd72ada36
42 changed files with 3552 additions and 105 deletions
|
|
@ -31,7 +31,7 @@ public class AppUser : IdentityUser<int>, IHasConcurrencyToken
|
|||
/// <summary>
|
||||
/// A list of Series the user want's to read
|
||||
/// </summary>
|
||||
public ICollection<Series> WantToRead { get; set; } = null!;
|
||||
public ICollection<AppUserWantToRead> WantToRead { get; set; } = null!;
|
||||
/// <summary>
|
||||
/// A list of Devices which allows the user to send files to
|
||||
/// </summary>
|
||||
|
|
|
|||
20
API/Entities/AppUserWantToRead.cs
Normal file
20
API/Entities/AppUserWantToRead.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
namespace API.Entities;
|
||||
|
||||
public class AppUserWantToRead
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public required int SeriesId { get; set; }
|
||||
public virtual Series Series { get; set; }
|
||||
|
||||
|
||||
// Relationships
|
||||
/// <summary>
|
||||
/// Navigational Property for EF. Links to a unique AppUser
|
||||
/// </summary>
|
||||
public AppUser AppUser { get; set; } = null!;
|
||||
/// <summary>
|
||||
/// User this table of content belongs to
|
||||
/// </summary>
|
||||
public int AppUserId { get; set; }
|
||||
}
|
||||
14
API/Entities/ManualMigrationHistory.cs
Normal file
14
API/Entities/ManualMigrationHistory.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
|
||||
namespace API.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// This will track manual migrations so that I can use simple selects to check if a Manual Migration is needed
|
||||
/// </summary>
|
||||
public class ManualMigrationHistory
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string ProductVersion { get; set; }
|
||||
public required string Name { get; set; }
|
||||
public DateTime RanAt { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue