Recreated project with project template
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
namespace MoonlightServers.ApiServer.Database.Entities;
|
||||
|
||||
public class Allocation
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string IpAddress { get; set; } = "0.0.0.0";
|
||||
public int Port { get; set; }
|
||||
|
||||
public Server? Server { get; set; }
|
||||
public Node Node { get; set; }
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
using MoonlightServers.Shared.Enums;
|
||||
|
||||
namespace MoonlightServers.ApiServer.Database.Entities;
|
||||
|
||||
public class Backup
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
public BackupState State { get; set; }
|
||||
|
||||
public long Size { get; set; }
|
||||
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
public DateTime FinishedAt { get; set; } = DateTime.UtcNow;
|
||||
|
||||
public Server Server { get; set; }
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
namespace MoonlightServers.ApiServer.Database.Entities;
|
||||
|
||||
public class Network
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public Node Node { get; set; }
|
||||
public List<Server> Servers { get; set; } = new();
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
namespace MoonlightServers.ApiServer.Database.Entities;
|
||||
|
||||
public class Node
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Fqdn { get; set; }
|
||||
public int ApiPort { get; set; }
|
||||
public string Token { get; set; }
|
||||
public bool SslEnabled { get; set; }
|
||||
|
||||
public List<Allocation> Allocations { get; set; } = new();
|
||||
public List<Server> Servers { get; set; } = new();
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
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();
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
namespace MoonlightServers.ApiServer.Database.Entities;
|
||||
|
||||
public class ServerVariable
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Key { get; set; }
|
||||
public string Value { get; set; }
|
||||
|
||||
public Server Server { get; set; }
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
namespace MoonlightServers.ApiServer.Database.Entities;
|
||||
|
||||
public class Star
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
public string Author { get; set; }
|
||||
|
||||
public string? DonationUrl { get; set; }
|
||||
public string? UpdateUrl { get; set; }
|
||||
|
||||
public string StartupCommand { get; set; }
|
||||
public string StopCommand { get; set; }
|
||||
public string OnlineDetection { get; set; }
|
||||
|
||||
public string InstallShell { get; set; }
|
||||
public string InstallDockerImage { get; set; }
|
||||
public string InstallScript { get; set; }
|
||||
public int RequiredAllocations { get; set; }
|
||||
|
||||
public string ParseConfiguration { get; set; }
|
||||
|
||||
public int DefaultDockerImageIndex { get; set; }
|
||||
public bool AllowDockerImageChanging { get; set; }
|
||||
|
||||
public List<StarVariable> Variables { get; set; } = new();
|
||||
public List<StarDockerImage> DockerImages { get; set; } = new();
|
||||
|
||||
public StarFolder? Folder { get; set; }
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
namespace MoonlightServers.ApiServer.Database.Entities;
|
||||
|
||||
public class StarDockerImage
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Identifier { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
public bool AutoPulling { get; set; } = true;
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace MoonlightServers.ApiServer.Database.Entities;
|
||||
|
||||
public class StarFolder
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public List<Star> Stars { get; set; } = new();
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
using MoonlightServers.Shared.Enums;
|
||||
|
||||
namespace MoonlightServers.ApiServer.Database.Entities;
|
||||
|
||||
public class StarVariable
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Key { get; set; }
|
||||
public string DefaultValue { get; set; }
|
||||
|
||||
public string DisplayName { get; set; }
|
||||
public string Description { get; set; }
|
||||
|
||||
public bool AllowViewing { get; set; } = false;
|
||||
public bool AllowEditing { get; set; } = false;
|
||||
|
||||
public string? Filter { get; set; }
|
||||
public StarVariableType Type { get; set; } = StarVariableType.Text;
|
||||
}
|
||||
Reference in New Issue
Block a user