1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-08-18 18:24:56 +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
2022-10-07 11:33:57 +02:00

22 lines
541 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Phantom.Common.Data;
namespace Phantom.Server.Database.Entities;
[Table("Agents", Schema = "agents")]
public sealed class AgentEntity {
[Key]
public Guid AgentGuid { get; set; }
public string Name { get; set; }
public ushort Version { get; set; }
public ushort MaxInstances { get; set; }
public RamAllocationUnits MaxMemory { get; set; }
internal AgentEntity(Guid agentGuid) {
AgentGuid = agentGuid;
Name = null!;
}
}