aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2021-03-18 15:37:36 -0400
committerPatrick Barron <barronpm@gmail.com>2021-03-25 19:51:27 -0400
commitf1cadb27d9d6ddbb2d42777e4c546a73bd5bcfe3 (patch)
tree929e24de27d1de573750a946f0e4eb46f5cf29f1
parent0a579e5bbd3c36e15d322ee5d30c8ef3331863bf (diff)
Add id properties for preferences and permissions
-rw-r--r--Jellyfin.Data/Entities/Permission.cs6
-rw-r--r--Jellyfin.Data/Entities/Preference.cs5
2 files changed, 11 insertions, 0 deletions
diff --git a/Jellyfin.Data/Entities/Permission.cs b/Jellyfin.Data/Entities/Permission.cs
index 005d1a10f..2c5894318 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;
@@ -34,6 +35,11 @@ namespace Jellyfin.Data.Entities
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>
/// <remarks>
diff --git a/Jellyfin.Data/Entities/Preference.cs b/Jellyfin.Data/Entities/Preference.cs
index 048caecee..a7d93f32c 100644
--- a/Jellyfin.Data/Entities/Preference.cs
+++ b/Jellyfin.Data/Entities/Preference.cs
@@ -33,6 +33,11 @@ namespace Jellyfin.Data.Entities
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>
/// <remarks>