<?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('corporate_card_prepayments', function (Blueprint $table) {
            $table->json('items')->nullable()->comment('결제 항목 [{date, amount, description}]')->after('memo');
        });
    }

    public function down(): void
    {
        Schema::table('corporate_card_prepayments', function (Blueprint $table) {
            $table->dropColumn('items');
        });
    }
};
