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

21 lines
684 B
C#
Raw 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 ApplicationUser class
public class ApplicationUser : IdentityUser<int>, Tenants.IMultiTenant
{
[Column(Order = 100)]
public string? TenantUserName { 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;
}
}