28 lines
779 B
C#
28 lines
779 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; } = false;
|
|
|
|
public bool IsActive { get; set; } = true;
|
|
|
|
//[ValidateNever]
|
|
//[ForeignKey(nameof(TenantId))]
|
|
//public Tenant Tenant { get; set; }
|
|
}
|
|
}
|