using Microsoft.AspNetCore.Identity; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; namespace UserManagement.Data { public class Role : IdentityRole { public bool IsDeleted { get; set; } public DateTime CreatedDate { get; set; } public Guid? CreatedBy { get; set; } public DateTime ModifiedDate { get; set; } public Guid ModifiedBy { get; set; } public DateTime? DeletedDate { get; set; } public Guid? DeletedBy { get; set; } [ForeignKey("CreatedBy")] public User CreatedByUser { get; set; } [ForeignKey("ModifiedBy")] public User ModifiedByUser { get; set; } [ForeignKey("DeletedBy")] public User DeletedByUser { get; set; } public virtual ICollection UserRoles { get; set; } public virtual ICollection RoleClaims { get; set; } } }