<?php

use App\Database\Migrations\TenantMigration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends TenantMigration
{
    public function up()
    {
        Schema::table('users', function (Blueprint $table) {
            $table->boolean('first_login_completed')->default(false);
            $table->timestamp('first_login_at')->nullable()->after('first_login_completed');
        });
    }

    public function down()
    {
        Schema::table('users', function (Blueprint $table) {
            $table->dropColumn(['first_login_completed', 'first_login_at']);
        });
    }
};
