Of course, it makes sense to use roles for this purpose, but that means you can assign multiple roles. therefore, the user can be a Teacher and a Student, but it can happen.
If you want to add additional properties to the role class, this will be done in the same way as for the user. Create your own version of Role as follows:
public class ApplicationRole : IdentityRole { public string bool CanJuggle { get; set; } }
And you will need the RoleManager class:
public class ApplicationRoleManager : RoleManager<ApplicationRole> { public ApplicationRoleManager(IRoleStore<ApplicationRole> store) : base(store) { } //snip }
And don't forget that your context should change:
public class YourContext : IdentityDbContext<ApplicationUser, ApplicationRole, string, IdentityUserLogin, IdentityUserRole, IdentityUserClaim> {
Think that covers all relevant parts.
source share