LANCommander.PlaynitePlugin/LANCommander/Data/Models/ServerConsole.cs
2023-08-18 00:50:12 -05:00

26 lines
757 B
C#

using LANCommander.Data.Enums;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
{
public class ServerConsole : BaseModel
{
public string Name { get; set; } = "";
public ServerConsoleType Type { get; set; }
public string Path { get; set; } = "";
public string Host { get; set; } = "";
public int? Port { get; set; }
// 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; }
}
}