1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-08-16 21:31:45 +02:00
Files
.config
.run
.workdir
Agent
Common
Docker
Server
Phantom.Server
Phantom.Server.Database
Converters
Entities
AgentEntity.cs
InstanceEntity.cs
Factories
ApplicationDbContext.cs
DatabaseProvider.cs
Phantom.Server.Database.csproj
Phantom.Server.Database.Postgres
Phantom.Server.Rpc
Phantom.Server.Services
Phantom.Server.Web
Phantom.Server.Web.Bootstrap
Phantom.Server.Web.Components
Utils
.gitattributes
.gitignore
AddMigration.bat
AddMigration.sh
PhantomPanel.sln
global.json

32 lines
984 B
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.Server.Database.Entities;
[Table("Instances", Schema = "agents")]
[SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public sealed class InstanceEntity {
[Key]
public Guid InstanceGuid { get; set; }
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 bool LaunchAutomatically { get; set; }
internal InstanceEntity(Guid instanceGuid) {
InstanceGuid = instanceGuid;
InstanceName = null!;
MinecraftVersion = null!;
}
}