mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-08-21 15:54:06 +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
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
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using Phantom.Common.Data;
|
|
using Phantom.Common.Data.Minecraft;
|
|
|
|
namespace Phantom.Controller.Database.Entities;
|
|
|
|
[Table("Instances", Schema = "agents")]
|
|
[SuppressMessage("ReSharper", "AutoPropertyCanBeMadeGetOnly.Global")]
|
|
[SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
|
|
public sealed class InstanceEntity {
|
|
[Key]
|
|
public Guid InstanceGuid { get; init; }
|
|
|
|
public Guid AgentGuid { get; set; }
|
|
|
|
public string InstanceName { get; set; }
|
|
public ushort ServerPort { get; set; }
|
|
public ushort RconPort { get; set; }
|
|
public string MinecraftVersion { get; set; }
|
|
public MinecraftServerKind MinecraftServerKind { get; set; }
|
|
public RamAllocationUnits MemoryAllocation { get; set; }
|
|
public Guid JavaRuntimeGuid { get; set; }
|
|
public string JvmArguments { get; set; }
|
|
public bool LaunchAutomatically { get; set; }
|
|
|
|
internal InstanceEntity(Guid instanceGuid) {
|
|
InstanceGuid = instanceGuid;
|
|
InstanceName = null!;
|
|
MinecraftVersion = null!;
|
|
JvmArguments = string.Empty;
|
|
}
|
|
}
|