Files
mixtape/zero.Core/Entities/User/UserRole.cs
T
2020-10-05 15:10:40 +02:00

37 lines
883 B
C#

using System.Collections.Generic;
using zero.Core.Attributes;
namespace zero.Core.Entities
{
public class UserRole : ZeroEntity, IUserRole, IZeroDbConventions
{
/// <inheritdoc/>
public string Description { get; set; }
/// <inheritdoc/>
public string Icon { get; set; }
/// <inheritdoc/>
public List<IUserClaim> Claims { get; set; } = new List<IUserClaim>();
}
[Collection("UserRoles")]
public interface IUserRole : IZeroEntity, IAppAwareShareableEntity, IZeroDbConventions
{
/// <summary>
/// Additional description
/// </summary>
string Description { get; set; }
/// <summary>
/// Displayed icon alongside name
/// </summary>
string Icon { get; set; }
/// <summary>
/// The user's claims, for use in claims-based authentication.
/// </summary>
List<IUserClaim> Claims { get; set; }
}
}