Added database entities, started with node crud
This commit is contained in:
26
MoonlightServers.ApiServer/Database/Entities/Server.cs
Normal file
26
MoonlightServers.ApiServer/Database/Entities/Server.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
namespace MoonlightServers.ApiServer.Database.Entities;
|
||||
|
||||
public class Server
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public int Cpu { get; set; }
|
||||
public int Memory { get; set; }
|
||||
public int Disk { get; set; }
|
||||
|
||||
public string? OverrideStartupCommand { get; set; } = null;
|
||||
public string? OverrideDockerImage { get; set; } = null;
|
||||
|
||||
public bool VirtualDiskEnabled { get; set; } = false;
|
||||
|
||||
public Star Star { get; set; }
|
||||
public int DockerImageIndex { get; set; } = 0;
|
||||
|
||||
public Node Node { get; set; }
|
||||
public Network? Network { get; set; }
|
||||
public List<Allocation> Allocations { get; set; } = new();
|
||||
public List<ServerVariable> Variables { get; set; } = new();
|
||||
public List<Backup> Backups { get; set; } = new();
|
||||
}
|
||||
Reference in New Issue
Block a user