mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-05-25 16:34:05 +02:00
20 lines
469 B
C#
20 lines
469 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Phantom.Server.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!;
|
|
}
|
|
}
|