1
0
mirror of https://github.com/akpaevj/onecmonitor.git synced 2026-06-15 21:32:34 +02:00
Files

27 lines
736 B
C#

using Microsoft.EntityFrameworkCore;
namespace OneSwiss.Server.Models;
public class ConfigurationRepository : DatabaseObject
{
public Guid InternalId { get; set; }
public string Name { get; set; }
public string Host { get; set; }
public int Port { get; set; }
public bool Deleted { get; set; }
public Guid AgentId { get; set; }
public Guid? CredentialsId { get; set; }
public int LastReadVersion { get; set; }
public Agent Agent { get; set; }
[DeleteBehavior(DeleteBehavior.SetNull)]
public Credentials? Credentials { get; set; }
public List<ConfigurationRepositoryUser> Users { get; set; }
public override string ToString()
{
return $"{Host}:{Port}/{Name}";
}
}