<?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('contact_message_attachments', function (Blueprint $table) {
            // Human "not evidence" flag — hides the attachment from the productive review list.
            $table->string('evidence_status')->nullable();
            $table->boolean('evidence_is_dsar_doc')->nullable()->after('evidence_status');
            $table->boolean('evidence_excluded')->default(false)->after('evidence_is_dsar_doc');
        });
    }

    public function down(): void
    {
        Schema::table('contact_message_attachments', function (Blueprint $table) {
            $table->dropColumn(['evidence_status', 'evidence_excluded', 'evidence_is_dsar_doc']);
        });
    }
};
