33 lines
781 B
C#
33 lines
781 B
C#
using System.Collections.Generic;
|
|
using zero.Core.Attributes;
|
|
using zero.Core.Identity;
|
|
|
|
namespace zero.Core.Entities
|
|
{
|
|
public class BackofficeUserRole : ZeroEntity, IBackofficeUserRole, IZeroDbConventions
|
|
{
|
|
/// <inheritdoc/>
|
|
public string Description { get; set; }
|
|
|
|
/// <inheritdoc/>
|
|
public string Icon { get; set; }
|
|
|
|
/// <inheritdoc/>
|
|
public List<IUserClaim> Claims { get; set; } = new List<IUserClaim>();
|
|
}
|
|
|
|
|
|
[Collection("Roles")]
|
|
public interface IBackofficeUserRole : IZeroEntity, IZeroDbConventions, IIdentityUserRole
|
|
{
|
|
/// <summary>
|
|
/// Additional description
|
|
/// </summary>
|
|
string Description { get; set; }
|
|
|
|
/// <summary>
|
|
/// Displayed icon alongside name
|
|
/// </summary>
|
|
string Icon { get; set; }
|
|
}
|
|
} |