Implemented db entities. Adjusted template default values
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; }
|
||||
|
||||
// Relations
|
||||
public Star Star { get; set; }
|
||||
public Node Node { get; set; }
|
||||
public List<Allocation> Allocations { get; set; } = new();
|
||||
|
||||
// Meta
|
||||
public string Name { get; set; }
|
||||
public int OwnerId { get; set; }
|
||||
|
||||
// Star specific stuff
|
||||
public string? StartupOverride { get; set; }
|
||||
public int DockerImageIndex { get; set; }
|
||||
|
||||
// Resources and limits
|
||||
public int Cpu { get; set; }
|
||||
public int Memory { get; set; }
|
||||
public int Disk { get; set; }
|
||||
public bool UseVirtualDisk { get; set; }
|
||||
public int Bandwidth { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user