<?php

/**
 * Configuración de Base de Datos
 */
return [
    'host' => $_ENV['DB_HOST'] ?? 'database',
    'port' => $_ENV['DB_PORT'] ?? '3306',
    'database' => $_ENV['DB_NAME'] ?? 'gestion_proyectos',
    'username' => $_ENV['DB_USER'] ?? 'admin',
    'password' => $_ENV['DB_PASS'] ?? 'admin_password',
    'charset' => 'utf8mb4',
    'options' => [
        PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
        PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
        PDO::ATTR_EMULATE_PREPARES => false,
    ],
];