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

try {
    $sql1 = "ALTER TABLE users ADD COLUMN turnover_required DECIMAL(15,2) DEFAULT 0.00 AFTER cfd_withdraw_threshold";
    $sql2 = "ALTER TABLE users ADD COLUMN turnover_completed DECIMAL(15,2) DEFAULT 0.00 AFTER turnover_required";
    
    dbQuery($sql1);
    echo "Added turnover_required column.\n";
    
    dbQuery($sql2);
    echo "Added turnover_completed column.\n";
    
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
