Issue#32 Database Update + Systemanpassung an neue Parameter
This commit is contained in:
@@ -5,32 +5,33 @@ namespace Watcher.Models;
|
||||
|
||||
public class Server
|
||||
{
|
||||
// System Infos
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; } = string.Empty;
|
||||
[Required]
|
||||
public required string Name { get; set; }
|
||||
|
||||
public string IPAddress { get; set; } = string.Empty;
|
||||
public required string IPAddress { get; set; }
|
||||
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
public required string Type { get; set; }
|
||||
|
||||
// z.B. "VPS", "standalone", "VM", etc.
|
||||
public string Type { get; set; } = "VPS";
|
||||
public string? Description { get; set; } = String.Empty;
|
||||
|
||||
public Boolean IsOnline { get; set; } = false;
|
||||
|
||||
public DateTime LastSeen { get; set; }
|
||||
|
||||
public string? Description { get; set; }
|
||||
|
||||
// Hardware Infos
|
||||
public string? CpuType { get; set; } = string.Empty;
|
||||
public int CpuCores { get; set; }
|
||||
public int CpuCores { get; set; } = 0;
|
||||
public string? GpuType { get; set; } = string.Empty;
|
||||
public double RamSize { get; set; }
|
||||
public double RamSize { get; set; } = 0;
|
||||
|
||||
|
||||
// Database
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
|
||||
public Boolean IsOnline { get; set; } = false;
|
||||
|
||||
public DateTime LastSeen { get; set; }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user