mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-23 19:42:51 +01:00
23 lines
506 B
C#
23 lines
506 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Phantom.Common.Data.Web.Users;
|
|
|
|
namespace Phantom.Controller.Database.Entities;
|
|
|
|
[Table("Roles", Schema = "identity")]
|
|
public sealed class RoleEntity {
|
|
[Key]
|
|
public Guid RoleGuid { get; init; }
|
|
|
|
public string Name { get; init; }
|
|
|
|
public RoleEntity(Guid roleGuid, string name) {
|
|
RoleGuid = roleGuid;
|
|
Name = name;
|
|
}
|
|
|
|
public RoleInfo ToRoleInfo() {
|
|
return new RoleInfo(RoleGuid, Name);
|
|
}
|
|
}
|