<?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('sales_partners', function (Blueprint $table) {
            $table->string('company_name', 100)->nullable()->after('notes')->comment('상호');
            $table->string('biz_no', 20)->nullable()->after('company_name')->comment('사업자등록번호');
            $table->string('address', 255)->nullable()->after('biz_no')->comment('주소');
        });
    }

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