"""
Configuration de l'application MAESTRO
"""
from pydantic_settings import BaseSettings
from typing import List


class Settings(BaseSettings):
    """Configuration globale de l'application"""
    
    # Base de données
    DATABASE_URL: str = "sqlite:///./maestro.db"  # ← MODIFIÉ
    
    # Sécurité
    SECRET_KEY: str = "votre_cle_secrete_a_changer_en_production_minimum_32_caracteres"
    ALGORITHM: str = "HS256"
    ACCESS_TOKEN_EXPIRE_MINUTES: int = 1440  # 24 heures
    
    # Application
    APP_NAME: str = "MAESTRO"
    APP_VERSION: str = "1.0.0"
    DEBUG: bool = True
    
    # CORS
    ALLOWED_ORIGINS: List[str] = [
        "http://localhost:3000",
        "http://localhost:8000",
        "http://127.0.0.1:3000",
        "http://127.0.0.1:8000"
    ]
    
    class Config:
        env_file = ".env"
        case_sensitive = True


settings = Settings()