aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Entities/User.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-05-30 22:11:53 -0400
committerPatrick Barron <barronpm@gmail.com>2020-05-30 22:11:53 -0400
commit63344ec5fd309ed0e7f804003e2595f54885c3f1 (patch)
treea8a88e67c2af6a56bac56a336de41fa07419f5fb /Jellyfin.Data/Entities/User.cs
parente72fd88913fe2eed55b0171fc63e7d6622b0ebe5 (diff)
Remove unused portions of the user schema
Diffstat (limited to 'Jellyfin.Data/Entities/User.cs')
-rw-r--r--Jellyfin.Data/Entities/User.cs20
1 files changed, 12 insertions, 8 deletions
diff --git a/Jellyfin.Data/Entities/User.cs b/Jellyfin.Data/Entities/User.cs
index a6221a2490..f09b36bde0 100644
--- a/Jellyfin.Data/Entities/User.cs
+++ b/Jellyfin.Data/Entities/User.cs
@@ -47,11 +47,11 @@ namespace Jellyfin.Data.Entities
AuthenticationProviderId = authenticationProviderId;
PasswordResetProviderId = passwordResetProviderId;
- Groups = new HashSet<Group>();
+ AccessSchedules = new HashSet<AccessSchedule>();
+ // Groups = new HashSet<Group>();
Permissions = new HashSet<Permission>();
- ProviderMappings = new HashSet<ProviderMapping>();
Preferences = new HashSet<Preference>();
- AccessSchedules = new HashSet<AccessSchedule>();
+ // ProviderMappings = new HashSet<ProviderMapping>();
// Set default values
Id = Guid.NewGuid();
@@ -343,10 +343,17 @@ namespace Jellyfin.Data.Entities
*************************************************************************/
/// <summary>
+ /// Gets or sets the list of access schedules this user has.
+ /// </summary>
+ public virtual ICollection<AccessSchedule> AccessSchedules { get; protected set; }
+
+ /*
+ /// <summary>
/// Gets or sets the list of groups this user is a member of.
/// </summary>
[ForeignKey("Group_Groups_Guid")]
public virtual ICollection<Group> Groups { get; protected set; }
+ */
/// <summary>
/// Gets or sets the list of permissions this user has.
@@ -354,11 +361,13 @@ namespace Jellyfin.Data.Entities
[ForeignKey("Permission_Permissions_Guid")]
public virtual ICollection<Permission> Permissions { get; protected set; }
+ /*
/// <summary>
/// Gets or sets the list of provider mappings this user has.
/// </summary>
[ForeignKey("ProviderMapping_ProviderMappings_Id")]
public virtual ICollection<ProviderMapping> ProviderMappings { get; protected set; }
+ */
/// <summary>
/// Gets or sets the list of preferences this user has.
@@ -367,11 +376,6 @@ namespace Jellyfin.Data.Entities
public virtual ICollection<Preference> Preferences { get; protected set; }
/// <summary>
- /// Gets or sets the list of access schedules this user has.
- /// </summary>
- public virtual ICollection<AccessSchedule> AccessSchedules { get; protected set; }
-
- /// <summary>
/// Static create function (for use in LINQ queries, etc.)
/// </summary>
/// <param name="username">The username for the created user.</param>