<?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::create('tax_exemption_reasons', function (Blueprint $table) {
            $table->string('slug')->primary();
            $table->string('name');
            $table->text('invoice_text')->nullable();
            $table->boolean('requires_note')->default(false);
            $table->timestamps();
        });
    }

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