|
|
@ -51,6 +51,7 @@ namespace Jellyfin.Data.Entities
|
|
|
|
PasswordResetProviderId = passwordResetProviderId;
|
|
|
|
PasswordResetProviderId = passwordResetProviderId;
|
|
|
|
|
|
|
|
|
|
|
|
AccessSchedules = new HashSet<AccessSchedule>();
|
|
|
|
AccessSchedules = new HashSet<AccessSchedule>();
|
|
|
|
|
|
|
|
DisplayPreferences = new HashSet<DisplayPreferences>();
|
|
|
|
ItemDisplayPreferences = new HashSet<ItemDisplayPreferences>();
|
|
|
|
ItemDisplayPreferences = new HashSet<ItemDisplayPreferences>();
|
|
|
|
// Groups = new HashSet<Group>();
|
|
|
|
// Groups = new HashSet<Group>();
|
|
|
|
Permissions = new HashSet<Permission>();
|
|
|
|
Permissions = new HashSet<Permission>();
|
|
|
@ -77,14 +78,6 @@ namespace Jellyfin.Data.Entities
|
|
|
|
AddDefaultPreferences();
|
|
|
|
AddDefaultPreferences();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Initializes a new instance of the <see cref="User"/> class.
|
|
|
|
|
|
|
|
/// Default constructor. Protected due to required properties, but present because EF needs it.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
protected User()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the Id of the user.
|
|
|
|
/// Gets or sets the Id of the user.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
@ -100,7 +93,6 @@ namespace Jellyfin.Data.Entities
|
|
|
|
/// <remarks>
|
|
|
|
/// <remarks>
|
|
|
|
/// Required, Max length = 255.
|
|
|
|
/// Required, Max length = 255.
|
|
|
|
/// </remarks>
|
|
|
|
/// </remarks>
|
|
|
|
[Required]
|
|
|
|
|
|
|
|
[MaxLength(255)]
|
|
|
|
[MaxLength(255)]
|
|
|
|
[StringLength(255)]
|
|
|
|
[StringLength(255)]
|
|
|
|
public string Username { get; set; }
|
|
|
|
public string Username { get; set; }
|
|
|
@ -113,7 +105,7 @@ namespace Jellyfin.Data.Entities
|
|
|
|
/// </remarks>
|
|
|
|
/// </remarks>
|
|
|
|
[MaxLength(65535)]
|
|
|
|
[MaxLength(65535)]
|
|
|
|
[StringLength(65535)]
|
|
|
|
[StringLength(65535)]
|
|
|
|
public string Password { get; set; }
|
|
|
|
public string? Password { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the user's easy password, or <c>null</c> if none is set.
|
|
|
|
/// Gets or sets the user's easy password, or <c>null</c> if none is set.
|
|
|
@ -123,7 +115,7 @@ namespace Jellyfin.Data.Entities
|
|
|
|
/// </remarks>
|
|
|
|
/// </remarks>
|
|
|
|
[MaxLength(65535)]
|
|
|
|
[MaxLength(65535)]
|
|
|
|
[StringLength(65535)]
|
|
|
|
[StringLength(65535)]
|
|
|
|
public string EasyPassword { get; set; }
|
|
|
|
public string? EasyPassword { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether the user must update their password.
|
|
|
|
/// Gets or sets a value indicating whether the user must update their password.
|
|
|
@ -141,7 +133,7 @@ namespace Jellyfin.Data.Entities
|
|
|
|
/// </remarks>
|
|
|
|
/// </remarks>
|
|
|
|
[MaxLength(255)]
|
|
|
|
[MaxLength(255)]
|
|
|
|
[StringLength(255)]
|
|
|
|
[StringLength(255)]
|
|
|
|
public string AudioLanguagePreference { get; set; }
|
|
|
|
public string? AudioLanguagePreference { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the authentication provider id.
|
|
|
|
/// Gets or sets the authentication provider id.
|
|
|
@ -149,7 +141,6 @@ namespace Jellyfin.Data.Entities
|
|
|
|
/// <remarks>
|
|
|
|
/// <remarks>
|
|
|
|
/// Required, Max length = 255.
|
|
|
|
/// Required, Max length = 255.
|
|
|
|
/// </remarks>
|
|
|
|
/// </remarks>
|
|
|
|
[Required]
|
|
|
|
|
|
|
|
[MaxLength(255)]
|
|
|
|
[MaxLength(255)]
|
|
|
|
[StringLength(255)]
|
|
|
|
[StringLength(255)]
|
|
|
|
public string AuthenticationProviderId { get; set; }
|
|
|
|
public string AuthenticationProviderId { get; set; }
|
|
|
@ -160,7 +151,6 @@ namespace Jellyfin.Data.Entities
|
|
|
|
/// <remarks>
|
|
|
|
/// <remarks>
|
|
|
|
/// Required, Max length = 255.
|
|
|
|
/// Required, Max length = 255.
|
|
|
|
/// </remarks>
|
|
|
|
/// </remarks>
|
|
|
|
[Required]
|
|
|
|
|
|
|
|
[MaxLength(255)]
|
|
|
|
[MaxLength(255)]
|
|
|
|
[StringLength(255)]
|
|
|
|
[StringLength(255)]
|
|
|
|
public string PasswordResetProviderId { get; set; }
|
|
|
|
public string PasswordResetProviderId { get; set; }
|
|
|
@ -217,7 +207,7 @@ namespace Jellyfin.Data.Entities
|
|
|
|
/// </remarks>
|
|
|
|
/// </remarks>
|
|
|
|
[MaxLength(255)]
|
|
|
|
[MaxLength(255)]
|
|
|
|
[StringLength(255)]
|
|
|
|
[StringLength(255)]
|
|
|
|
public string SubtitleLanguagePreference { get; set; }
|
|
|
|
public string? SubtitleLanguagePreference { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether missing episodes should be displayed.
|
|
|
|
/// Gets or sets a value indicating whether missing episodes should be displayed.
|
|
|
@ -312,7 +302,7 @@ namespace Jellyfin.Data.Entities
|
|
|
|
/// Gets or sets the user's profile image. Can be <c>null</c>.
|
|
|
|
/// Gets or sets the user's profile image. Can be <c>null</c>.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
// [ForeignKey("UserId")]
|
|
|
|
// [ForeignKey("UserId")]
|
|
|
|
public virtual ImageInfo ProfileImage { get; set; }
|
|
|
|
public virtual ImageInfo? ProfileImage { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the user's display preferences.
|
|
|
|
/// Gets or sets the user's display preferences.
|
|
|
@ -320,8 +310,7 @@ namespace Jellyfin.Data.Entities
|
|
|
|
/// <remarks>
|
|
|
|
/// <remarks>
|
|
|
|
/// Required.
|
|
|
|
/// Required.
|
|
|
|
/// </remarks>
|
|
|
|
/// </remarks>
|
|
|
|
[Required]
|
|
|
|
public virtual ICollection<DisplayPreferences> DisplayPreferences { get; set; }
|
|
|
|
public virtual DisplayPreferences DisplayPreferences { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the level of sync play permissions this user has.
|
|
|
|
/// Gets or sets the level of sync play permissions this user has.
|
|
|
|