Add id properties for preferences and permissions

This commit is contained in:
Patrick Barron 2021-03-18 15:37:36 -04:00
parent 0a579e5bbd
commit f1cadb27d9
2 changed files with 11 additions and 0 deletions

View File

@ -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>

View File

@ -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>