aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Models/Role.cs
blob: 0e7dd9f365a13356490778abfdcd3f2d34d1af3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;
using Microsoft.AspNetCore.Identity;
using System.ComponentModel.DataAnnotations.Schema;
using System.Collections.Generic;

namespace DevHive.Data.Models
{
	[Table("Roles")]
	public class Role : IdentityRole<Guid>
	{
		public const string DefaultRole = "User";
		public const string AdminRole = "Admin";

		public virtual List<User> Users { get; set; }
	}
}