<?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('trading_partners', function (Blueprint $table) {
            $table->string('trade_type', 20)->default('sales')->after('name')->comment('매출/매입 구분 (sales/purchase)');
        });
    }

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