1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-07-22 04:04:35 +02:00
Minecraft-Phantom-Panel/Controller/Phantom.Controller.Database/Entities/UserRoleEntity.cs

20 lines
472 B
C#

using System.ComponentModel.DataAnnotations.Schema;
namespace Phantom.Controller.Database.Entities;
[Table("UserRoles", Schema = "identity")]
public sealed class UserRoleEntity {
public Guid UserGuid { get; set; }
public Guid RoleGuid { get; set; }
public UserEntity User { get; set; }
public RoleEntity Role { get; set; }
public UserRoleEntity(Guid userGuid, Guid roleGuid) {
UserGuid = userGuid;
RoleGuid = roleGuid;
User = null!;
Role = null!;
}
}