blob: 55fc9fc4c668fb27e0c140beb9e50dba2c6e005d (
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 virtual HashSet<User> Users { get; set; } = new();
}
}
|