<?php

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

/**
 * PRC-1143 — konsolide şema: `password_resets` tablosunun TAM tanımı (tek dosya).
 */
return new class extends Migration
{
    public function up(): void
    {
        Schema::create('password_resets', function (Blueprint $t) {
            $t->string('email', 255);
            $t->string('token', 255);
            $t->timestamp('created_at')->nullable();
            $t->index('email', 'password_resets_email_index');
        });
    }

    public function down(): void
    {
        Schema::dropIfExists('password_resets');
    }
};
