Implemented db entities. Adjusted template default values

This commit is contained in:
2024-12-05 16:49:47 +01:00
parent 3392407890
commit 3b77b3df1e
21 changed files with 1385 additions and 75 deletions

View File

@@ -0,0 +1,23 @@
namespace MoonlightServers.ApiServer.Database.Entities;
public class Node
{
public int Id { get; set; }
// Relations
public List<Server> Servers { get; set; } = new();
public List<Allocation> Allocations { get; set; } = new();
// Meta
public string Name { get; set; }
// Connection details
public string Fqdn { get; set; }
public string Token { get; set; }
public int HttpPort { get; set; }
public int FtpPort { get; set; }
// Misc
public bool EnableTransparentMode { get; set; }
public bool EnableDynamicFirewall { get; set; }
}