feat: add configuration model

This commit is contained in:
cswimr 2024-12-31 19:01:25 -05:00
parent 6ef661f2d4
commit e0d744ca5a
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
2 changed files with 47 additions and 2 deletions

18
Models/ZIConfiguration.cs Normal file
View file

@ -0,0 +1,18 @@
namespace ZenithInfo.Models
{
public class ZIConfiguration
{
public required string GlobalToken { get; init; }
public string? DatabaseConnectionString { get; init; } = null;
public DatabaseTypes DatabaseType { get; init; } = DatabaseTypes.Memory;
public bool UseSentry { get; init; } = true;
public bool UseSwagger { get; init; } = true;
public bool LogRequests { get; init; } = true;
}
public enum DatabaseTypes
{
Memory,
PostgresSQL,
}
}