The Free Software Media System - Server Backend & API
Add id properties for preferences and permissions
Patrick Barronf1cadb27d9d6
diff --git a/Jellyfin.Data/Entities/Permission.cs b/Jellyfin.Data/Entities/Permission.csindex 005d1a10f2..2c58943181 100644--- a/Jellyfin.Data/Entities/Permission.cs+++ b/Jellyfin.Data/Entities/Permission.cs@@ -1,5 +1,6 @@#pragma warning disable CA1711 // Identifiers should not have incorrect suffix+using System;using System.ComponentModel.DataAnnotations;using System.ComponentModel.DataAnnotations.Schema;using Jellyfin.Data.Enums;@@ -33,6 +34,11 @@ namespace Jellyfin.Data.Entities[DatabaseGenerated(DatabaseGeneratedOption.Identity)]public int Id { get; private set; }+ /// <summary>+ /// Gets or sets the id of the associated user.+ /// </summary>+ public Guid UserId { get; set; }+/// <summary>/// Gets the type of this permission./// </summary>diff --git a/Jellyfin.Data/Entities/Preference.cs b/Jellyfin.Data/Entities/Preference.csindex 048caeceef..a7d93f32c6 100644--- a/Jellyfin.Data/Entities/Preference.cs+++ b/Jellyfin.Data/Entities/Preference.cs@@ -32,6 +32,11 @@ namespace Jellyfin.Data.Entities[DatabaseGenerated(DatabaseGeneratedOption.Identity)]public int Id { get; private set; }+ /// <summary>+ /// Gets or sets the id of the associated user.+ /// </summary>+ public Guid UserId { get; set; }+/// <summary>/// Gets the type of this preference./// </summary>