<?php
require_once 'config/database.php';

try {
    // Insert default card dimension settings
    $settings = [
        ['id_card_width', '320px'],
        ['id_card_height', '500px']
    ];
    
    $stmt = $pdo->prepare("INSERT INTO site_settings (`key`, `value`) VALUES (?, ?) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`)");
    
    foreach ($settings as $setting) {
        $stmt->execute($setting);
    }
    
    echo "ID card dimension settings updated successfully!\n";
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
?>