mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 08:23:28 -03:00
i have too much time.
Refactored BaseItem and UserData relation
This commit is contained in:
@@ -110,8 +110,6 @@ public class BaseItemEntity
|
||||
|
||||
public string? SeriesName { get; set; }
|
||||
|
||||
public string? UserDataKey { get; set; }
|
||||
|
||||
public string? SeasonName { get; set; }
|
||||
|
||||
public string? ExternalSeriesId { get; set; }
|
||||
|
||||
@@ -8,12 +8,6 @@ namespace Jellyfin.Data.Entities;
|
||||
/// </summary>
|
||||
public class UserData
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the key.
|
||||
/// </summary>
|
||||
/// <value>The key.</value>
|
||||
public required string Key { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the users 0-10 rating.
|
||||
/// </summary>
|
||||
@@ -69,13 +63,24 @@ public class UserData
|
||||
/// <value><c>null</c> if [likes] contains no value, <c>true</c> if [likes]; otherwise, <c>false</c>.</value>
|
||||
public bool? Likes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the key.
|
||||
/// </summary>
|
||||
/// <value>The key.</value>
|
||||
public required Guid ItemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the BaseItem.
|
||||
/// </summary>
|
||||
public required BaseItemEntity? Item { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the UserId.
|
||||
/// </summary>
|
||||
public Guid UserId { get; set; }
|
||||
public required Guid UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the User.
|
||||
/// </summary>
|
||||
public User? User { get; set; }
|
||||
public required User? User { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user