zeroframework/Services/Identity/ZeroFramework.IdentityServer.API/IdentityStores/ApplicationRole.cs
2023-12-05 17:22:48 +08:00

21 lines
684 B
C#

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;
}
}