from pathlib import Path
from pydantic_settings import BaseSettings

_HERE = Path(__file__).parent


class Settings(BaseSettings):
    SECRET_KEY: str = "change-me-generate-a-long-random-string"
    DATABASE_URL: str = "sqlite:////app/data/cloud.db"
    ACCESS_TOKEN_EXPIRE_MINUTES: int = 60
    ADMIN_USERNAME: str = "sysadmin"
    ADMIN_PASSWORD: str = "changeme"

    model_config = {"env_file": str(_HERE / ".env")}


settings = Settings()
