<?php
/**
 * Database Configuration
 * Update these values according to your hosting environment
 */
define('DB_HOST', 'localhost');
define('DB_NAME', 'adrieltech_stock_management_app');
define('DB_USER', 'adrieltech_stock_management_app');
define('DB_PASS', ';SWC,$3pNQ%]NprH');

// Application base settings
define('APP_NAME', 'Seder Core');
define('APP_URL', 'https://adrieltech.com/sedercore');
define('UPLOAD_DIR', __DIR__ . '/../uploads/');

date_default_timezone_set('Asia/Kolkata');

try {
    $pdo = new PDO(
        "mysql:host=" . DB_HOST . ";dbname=" . DB_NAME . ";charset=utf8mb4",
        DB_USER,
        DB_PASS,
        [
            PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
            PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
            PDO::ATTR_EMULATE_PREPARES => false,
        ]
    );
} catch (PDOException $e) {
    die("Database connection failed: " . $e->getMessage());
}
