Extend identity role model.

This commit is contained in:
2020-05-23 17:09:14 +01:00
parent 0f643e6164
commit dd1df010d7
7 changed files with 9411 additions and 1123 deletions

View File

@@ -0,0 +1,25 @@
using System;
using Microsoft.AspNetCore.Identity;
namespace Marechai.Database.Models
{
public class ApplicationRole : IdentityRole
{
public ApplicationRole() => Created = DateTime.UtcNow;
public ApplicationRole(string name) : base(name)
{
Description = name;
Created = DateTime.UtcNow;
}
public ApplicationRole(string name, string description) : base(name)
{
Description = description;
Created = DateTime.UtcNow;
}
public string Description { get; set; }
public DateTime Created { get; set; }
}
}