feat: add configuration model
This commit is contained in:
parent
6ef661f2d4
commit
e0d744ca5a
2 changed files with 47 additions and 2 deletions
18
Models/ZIConfiguration.cs
Normal file
18
Models/ZIConfiguration.cs
Normal 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,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue