# app/modules/orders/config.py
"""
Module configuration.

Environment-based configuration using Pydantic Settings.
Settings are loaded from environment variables with ORDERS_ prefix.

Example:
    ORDERS_SETTING_NAME=value

Usage:
    from app.modules.orders.config import config
    value = config.setting_name
"""
from pydantic_settings import BaseSettings


class ModuleConfig(BaseSettings):
    """Configuration for orders module."""

    # Add module-specific settings here
    # Example:
    # api_timeout: int = 30
    # batch_size: int = 100

    model_config = {"env_prefix": "ORDERS_", "env_file": ".env", "extra": "ignore"}


# Export for auto-discovery
config_class = ModuleConfig
config = ModuleConfig()
