mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-08-16 12: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
26 lines
729 B
C#
26 lines
729 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using Phantom.Common.Data;
|
|
|
|
namespace Phantom.Controller.Database.Entities;
|
|
|
|
[Table("Agents", Schema = "agents")]
|
|
[SuppressMessage("ReSharper", "AutoPropertyCanBeMadeGetOnly.Global")]
|
|
public sealed class AgentEntity {
|
|
[Key]
|
|
public Guid AgentGuid { get; init; }
|
|
|
|
public string Name { get; set; }
|
|
public ushort ProtocolVersion { get; set; }
|
|
public string BuildVersion { get; set; }
|
|
public ushort MaxInstances { get; set; }
|
|
public RamAllocationUnits MaxMemory { get; set; }
|
|
|
|
internal AgentEntity(Guid agentGuid) {
|
|
AgentGuid = agentGuid;
|
|
Name = null!;
|
|
BuildVersion = null!;
|
|
}
|
|
}
|