Ombi/src/Ombi.Store/Entities/OmbiUser.cs
Jamie.Rees 36d93d5a9d #1456 Started on the User Importer
Also added the remember me button
2017-09-14 14:08:07 +01:00

18 lines
No EOL
533 B
C#

using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.AspNetCore.Identity;
namespace Ombi.Store.Entities
{
public class OmbiUser : IdentityUser
{
public string Alias { get; set; }
public UserType UserType { get; set; }
/// <summary>
/// This will be the unique Plex/Emby user id reference
/// </summary>
public string ProviderUserId { get; set; }
[NotMapped]
public string UserAlias => string.IsNullOrEmpty(Alias) ? UserName : Alias;
}
}