<?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('barobill_members', function (Blueprint $table) {
            $table->enum('server_mode', ['test', 'production'])
                  ->default('test')
                  ->after('status')
                  ->comment('바로빌 서버 모드 (test: 테스트서버, production: 운영서버)');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('barobill_members', function (Blueprint $table) {
            $table->dropColumn('server_mode');
        });
    }
};
