aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Entities
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-05-26 21:20:55 -0400
committerPatrick Barron <barronpm@gmail.com>2020-05-26 21:20:55 -0400
commit46a0a2a6011bbeaf92af45f9478dda8608ab2c6a (patch)
treea389883d96001ef1427488f3104daeeeea22760e /Jellyfin.Data/Entities
parent7c823464bca70570f2f53f8af6913e53d385b784 (diff)
Update migrations and fix a few bugs
Diffstat (limited to 'Jellyfin.Data/Entities')
-rw-r--r--Jellyfin.Data/Entities/AccessSchedule.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Jellyfin.Data/Entities/AccessSchedule.cs b/Jellyfin.Data/Entities/AccessSchedule.cs
index 4248a34c9c..15c4e4cded 100644
--- a/Jellyfin.Data/Entities/AccessSchedule.cs
+++ b/Jellyfin.Data/Entities/AccessSchedule.cs
@@ -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; }