mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-24 04:42:56 +01:00
22 lines
541 B
C#
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!;
|
|
}
|
|
}
|