zeroframework/Services/Identity/ZeroFramework.IdentityServer.API/IdentityStores/ApplicationRole.cs

21 lines
684 B
C#
Raw Permalink Normal View History

2023-12-05 09:22:48 +00:00
using Microsoft.AspNetCore.Identity;
using System.ComponentModel.DataAnnotations.Schema;
namespace ZeroFramework.IdentityServer.API.IdentityStores
{
// Add profile data for application users by adding properties to the ApplicationRole class
public class ApplicationRole : IdentityRole<int>, Tenants.IMultiTenant
{
[Column(Order = 100)]
public string? TenantRoleName { get; set; }
[Column(Order = 101)]
public Guid? TenantId { get; set; }
[Column(Order = 102)]
public string? DisplayName { get; set; }
[Column(Order = 103)]
public DateTimeOffset CreationTime { get; set; } = DateTimeOffset.Now;
}
}