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