<?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;

// Full user schema
$cols = DB::select("SELECT column_name FROM information_schema.columns WHERE table_name='users' ORDER BY ordinal_position");
foreach ($cols as $c) echo "USER COL: {$c->column_name}\n";

// sessions table - does it have current team?
$scols = DB::select("SELECT column_name FROM information_schema.columns WHERE table_name='sessions' ORDER BY ordinal_position");
echo "\nSESSIONS COLS:\n";
foreach ($scols as $c) echo "  {$c->column_name}\n";
