26 lines
714 B
C#
26 lines
714 B
C#
using Microsoft.AspNetCore.Identity;
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
using Microsoft.Extensions.Logging;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Marco.Pms.Model.Entitlements
|
|
{
|
|
public class ApplicationUser : IdentityUser
|
|
{
|
|
[Required]
|
|
public string Role { get; set; } // e.g. Admin, SiteManager, SkilledWorker, etc.
|
|
|
|
|
|
[DisplayName("TenantId")]
|
|
public int TenantId { get; set; }
|
|
|
|
public bool? IsRootUser { get; set; }
|
|
|
|
//[ValidateNever]
|
|
//[ForeignKey(nameof(TenantId))]
|
|
//public Tenant Tenant { get; set; }
|
|
}
|
|
}
|