<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('clients', function (Blueprint $table) {
            $table->string('business_no', 20)->nullable()->after('address')->comment('사업자등록번호');
            $table->string('business_type', 50)->nullable()->after('business_no')->comment('업태');
            $table->string('business_item', 100)->nullable()->after('business_type')->comment('업종');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('clients', function (Blueprint $table) {
            $table->dropColumn(['business_no', 'business_type', 'business_item']);
        });
    }
};
