<?php
require_once __DIR__ . '/../vendor/autoload.php';
$app = require_once __DIR__ . '/../bootstrap/app.php';
$app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();

use Illuminate\Support\Facades\DB;

echo "=== STRUCTURE TABLE DISPUTES ===\n\n";

$columns = DB::select("SHOW COLUMNS FROM disputes");
foreach ($columns as $col) {
    echo "- {$col->Field}: {$col->Type}";
    if ($col->Null === 'NO') echo " (NOT NULL)";
    if ($col->Default !== null) echo " DEFAULT '{$col->Default}'";
    echo "\n";
}
