<?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('ceo', 50)->nullable()->after('biz_no')->comment('대표자');
            $table->string('address', 255)->nullable()->after('email')->comment('주소');
        });
    }

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