<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('laporan_admin_kredit', function (Blueprint $table) {
            $table->text('keterangan')->nullable()->comment('Keterangan tambahan untuk laporan admin kredit');
            $table->string('kolektibilitas', 10)->nullable()->comment('Status kolektibilitas kredit');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('laporan_admin_kredit', function (Blueprint $table) {
            $table->dropColumn(['keterangan', 'kolektibilitas']);
        });
    }
};
