<?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('interviews', function (Blueprint $table) {
            // Başvuru olmadan görüşme planlandığında manuel kişi bilgisi
            $table->string('candidate_name')->nullable()->after('job_application_id');
            $table->string('candidate_email')->nullable()->after('candidate_name');
        });
    }

    public function down(): void
    {
        Schema::table('interviews', function (Blueprint $table) {
            $table->dropColumn(['candidate_name', 'candidate_email']);
        });
    }
};