mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-08-16 03:31:43 +02:00
.config
.run
.workdir
Agent
Common
Controller
Phantom.Controller
Phantom.Controller.Database
Converters
Entities
AgentEntity.cs
AuditLogEntity.cs
EventLogEntity.cs
InstanceEntity.cs
PermissionEntity.cs
RoleEntity.cs
RolePermissionEntity.cs
UserAgentAccessEntity.cs
UserEntity.cs
UserPermissionEntity.cs
UserRoleEntity.cs
Factories
Repositories
ApplicationDbContext.cs
DatabaseMigrator.cs
IDbContextProvider.cs
ILazyDbContext.cs
Phantom.Controller.Database.csproj
Phantom.Controller.Database.Postgres
Phantom.Controller.Minecraft
Phantom.Controller.Services
Docker
Utils
Web
.dockerignore
.gitattributes
.gitignore
AddMigration.bat
AddMigration.sh
Directory.Build.props
Directory.Build.targets
Dockerfile
LICENSE
Packages.props
PhantomPanel.sln
README.md
global.json
20 lines
476 B
C#
20 lines
476 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Phantom.Controller.Database.Entities;
|
|
|
|
[Table("UserRoles", Schema = "identity")]
|
|
public sealed class UserRoleEntity {
|
|
public Guid UserGuid { get; init; }
|
|
public Guid RoleGuid { get; init; }
|
|
|
|
public UserEntity User { get; init; }
|
|
public RoleEntity Role { get; init; }
|
|
|
|
public UserRoleEntity(Guid userGuid, Guid roleGuid) {
|
|
UserGuid = userGuid;
|
|
RoleGuid = roleGuid;
|
|
User = null!;
|
|
Role = null!;
|
|
}
|
|
}
|