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; } /// /// This will be the unique Plex/Emby user id reference /// public string ProviderUserId { get; set; } [NotMapped] public string UserAlias => string.IsNullOrEmpty(Alias) ? UserName : Alias; } }