namespace DexDemoBackend;

public class AppConfig
{
    public string DbHost { get; init; } = default!;
    public string DbPort { get; init; } = default!;
    public string DbName { get; init; } = default!;
    public string DbUser { get; init; } = default!;
    public string DbPassword { get; init; } = default!;
    public string Issuer { get; init; } = default!;
    public bool InsecureDevMode { get; init; }
    public string? InsecureDevEmail { get; init; }
    
    public string ConnectionString => 
        $"Host={DbHost};Port={DbPort};Database={DbName};Username={DbUser};Password={DbPassword}";
}

