<?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('job_postings', function (Blueprint $table) {
            $table->string('custom_application_form_path')->nullable()->after('cover_image');
            $table->string('custom_application_form_name')->nullable()->after('custom_application_form_path');
            $table->text('required_documents')->nullable()->after('custom_application_form_name');
        });
    }

    public function down(): void
    {
        Schema::table('job_postings', function (Blueprint $table) {
            $table->dropColumn(['custom_application_form_path', 'custom_application_form_name', 'required_documents']);
        });
    }
};