import os
from pydantic_settings import BaseSettings
from pathlib import Path

class Settings(BaseSettings):
    database_url: str = "postgresql://dating_app_user:Aa123456@localhost:5432/dating_app"
    jwt_secret: str = "your-secret-key-change-in-production"
    jwt_expires_minutes: int = 1440
    media_dir: str = "./media"
    cors_origins: str = "http://localhost:5173,http://localhost:3000,http://localhost"
    
    class Config:
        env_file = os.path.join(os.path.dirname(os.path.dirname(__file__)), ".env")
        case_sensitive = False

settings = Settings()
