2021-11-20 13:52:28 +01:00
|
|
|
namespace zero.Identity;
|
2021-11-19 16:11:12 +01:00
|
|
|
|
2021-11-23 22:56:22 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// A zero user can access the zero API and backoffice by granting the necessary permissions
|
|
|
|
|
/// </summary>
|
2021-11-19 16:11:12 +01:00
|
|
|
[RavenCollection("Users")]
|
2021-11-23 22:56:22 +01:00
|
|
|
public class ZeroUser : ZeroIdentityUser
|
2021-11-19 16:11:12 +01:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Application the user registered in
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string AppId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Currently selected app id for the backoffice
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string CurrentAppId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Super user
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsSuper { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Avatar image
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string AvatarId { get; set; }
|
|
|
|
|
}
|