Update migrations and fix a few bugs

This commit is contained in:
Patrick Barron
2020-05-26 21:20:55 -04:00
parent 7c823464bc
commit 46a0a2a601
5 changed files with 20 additions and 9 deletions

View File

@@ -2,6 +2,7 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
using System.Xml.Serialization;
using Jellyfin.Data.Enums;
namespace Jellyfin.Data.Entities
@@ -40,7 +41,7 @@ namespace Jellyfin.Data.Entities
/// <remarks>
/// Identity, Indexed, Required.
/// </remarks>
[JsonIgnore]
[XmlIgnore]
[Key]
[Required]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
@@ -49,6 +50,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Gets or sets the id of the associated user.
/// </summary>
[XmlIgnore]
[Required]
[ForeignKey("Id")]
public Guid UserId { get; protected set; }