2024-08-12 00:15:16 -05:00
|
|
|
|
using LANCommander.SDK.Enums;
|
2023-08-17 19:55:46 -05:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
2024-08-04 18:44:33 -05:00
|
|
|
|
namespace LANCommander.Server.Data.Models
|
2023-08-17 19:55:46 -05:00
|
|
|
|
{
|
|
|
|
|
|
public class ServerConsole : BaseModel
|
|
|
|
|
|
{
|
|
|
|
|
|
public string Name { get; set; } = "";
|
|
|
|
|
|
public ServerConsoleType Type { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string Path { get; set; } = "";
|
|
|
|
|
|
|
|
|
|
|
|
public string Host { get; set; } = "";
|
2023-08-18 00:50:12 -05:00
|
|
|
|
public int? Port { get; set; }
|
2023-08-17 19:55:46 -05:00
|
|
|
|
|
|
|
|
|
|
// Change to a secure string at some point
|
|
|
|
|
|
public string Password { get; set; } = "";
|
|
|
|
|
|
|
|
|
|
|
|
public Guid? ServerId { get; set; }
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
|
[ForeignKey(nameof(ServerId))]
|
|
|
|
|
|
[InverseProperty("ServerConsoles")]
|
|
|
|
|
|
public virtual Server? Server { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|