1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
using System; using Microsoft.AspNetCore.Identity; using System.ComponentModel.DataAnnotations.Schema; using System.Collections.Generic; namespace DevHive.Data.Models { [Table("Roles")] public class Role : IdentityRole<Guid> { public const string DefaultRole = "User"; public virtual List<User> Users { get; set; } } }