Added database entities, started with node crud
This commit is contained in:
16
MoonlightServers.ApiServer/Database/Entities/Node.cs
Normal file
16
MoonlightServers.ApiServer/Database/Entities/Node.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user