aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Models/Role.cs
blob: e63f007f047548d2e99ba58795bb0dc6154fc626 (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 List<User> Users { get; set; }
	}
}