Because as long as I have no clear plan for how to manage multiple users per server it is better to keep it simple. Also some other tweaks to make edits appear in the list.
20 lines
751 B
C#
20 lines
751 B
C#
using System;
|
|
using Npgsql;
|
|
|
|
namespace pgLabII.Model;
|
|
|
|
// Pure persistence entity for EF Core: no UI dependencies, no ReactiveObject
|
|
public class ServerConfigurationEntity
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
public string Name { get; set; } = string.Empty;
|
|
public string Host { get; set; } = string.Empty;
|
|
public ushort Port { get; set; } = 5432;
|
|
public string InitialDatabase { get; set; } = string.Empty;
|
|
public SslMode SslMode { get; set; } = SslMode.Prefer;
|
|
public bool ColorEnabled { get; set; } = true;
|
|
public int ColorArgb { get; set; } = unchecked((int)0xFF_33_33_33); // default dark gray
|
|
public string UserName { get; set; } = "";
|
|
|
|
public string Password { get; set; } = "";
|
|
}
|