<?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('shipment_vehicle_dispatches', function (Blueprint $table) {
            $table->json('options')->nullable()->after('remarks')
                ->comment('추가 속성 (dispatch_no, status, freight_cost_type, supply_amount, vat, total_amount, writer)');
        });
    }

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