from pydantic_settings import BaseSettings class Settings(BaseSettings): """Application settings loaded from environment variables.""" DATABASE_URL: str = "postgresql+asyncpg://budget:budget@db:5432/budget_tracker" SECRET_KEY: str = "change-me-in-production" ACCESS_TOKEN_EXPIRE_MINUTES: int = 15 REFRESH_TOKEN_EXPIRE_DAYS: int = 7 CORS_ORIGINS: list[str] = ["http://localhost:5173"] DEBUG: bool = False model_config = {"env_file": ".env", "env_file_encoding": "utf-8"} settings = Settings()