mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Extend identity role model.
This commit is contained in:
25
Marechai.Database/Models/ApplicationRole.cs
Normal file
25
Marechai.Database/Models/ApplicationRole.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user