from pydantic import Field
from pydantic_settings import BaseSettings

from .logger import LoggerConfig
from .server import ServerConfig, FinamConfig


class Config(BaseSettings):
    SERVER: ServerConfig = Field(default_factory=ServerConfig)
    LOGGER: LoggerConfig = Field(default_factory=LoggerConfig)
    FINAM: FinamConfig = Field(default_factory=FinamConfig)
