Add id properties for preferences and permissions
This commit is contained in:
parent
0a579e5bbd
commit
f1cadb27d9
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user