PhoneToolMX/PhoneToolMX.Models/Models/Role.cs

18 lines
403 B
C#
Raw Normal View History

2023-10-18 04:55:10 +00:00
using Microsoft.AspNetCore.Identity;
using System.ComponentModel.DataAnnotations.Schema;
namespace PhoneToolMX.Models
{
public class Role : IdentityRole<string>
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public override string Id { get; set; }
public Role() { }
public Role(string name)
{
Name = name;
}
}
}