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

use Illuminate\Support\Facades\DB;

// Move the csc-eifelgreen project from team 0 to team 1 (admin's personal team)
$updated = DB::table('projects')->where('uuid', 'thuyxeybqpsqybkh6ggfsand')->update(['team_id' => 1]);
echo "PROJECT_MOVED: {$updated}\n";

// Verify
$p = DB::table('projects')->where('uuid', 'thuyxeybqpsqybkh6ggfsand')->first();
echo "PROJECT team_id now: {$p->team_id}\n";

// Check environments also reference the project (they don't have team_id directly)
echo "DONE\n";
