aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data.Models/Role.cs
blob: 259d8674e14ee00a8df0108afa87deb36dd9352a (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.Interfaces.Models;
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();
	}
}