<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    public function up(): void
    {
        Schema::table('credencialesclientes', function (Blueprint $table) {
            $table->string('reset_token')->nullable()->after('token');
            $table->datetime('reset_expira_en')->nullable()->after('reset_token');
        });
    }

    public function down(): void
    {
        Schema::table('credencialesclientes', function (Blueprint $table) {
            $table->dropColumn(['reset_token', 'reset_expira_en']);
        });
    }
};
