<?php
declare(strict_types=1);

use App\Core\Database;

return function (Database $db): void {
    $db->raw("
        ALTER TABLE transfer_requests
        ADD COLUMN source_companions_count INT UNSIGNED NULL AFTER new_membership_value,
        ADD COLUMN target_companions_count INT UNSIGNED NULL AFTER source_companions_count,
        ADD COLUMN companion_surcharge DECIMAL(15,2) NOT NULL DEFAULT 0.00 AFTER target_companions_count,
        ADD COLUMN companion_surcharge_breakdown TEXT NULL AFTER companion_surcharge
    ");
};
