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