from pydantic_settings import BaseSettings, SettingsConfigDict class Settings(BaseSettings): """تنظیمات برنامه — از متغیرهای محیطی یا فایل .env خوانده می‌شود.""" model_config = SettingsConfigDict( env_file=".env", env_file_encoding="utf-8", extra="ignore", ) database_url: str = "postgresql+psycopg://postgres:postgres@localhost:5432/arameshplaza_api" secret_key: str = "dev-secret-change-me-in-production" algorithm: str = "HS256" access_token_expire_minutes: int = 1440 cors_origins: list[str] = ["*"] admin_username: str = "admin" admin_password: str = "aramesh123" settings = Settings()