<?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('barobill_card_transactions', function (Blueprint $table) {
            $table->boolean('is_manual')->default(false)->after('modified_tax')
                ->comment('수동 입력 여부 (true: 수동입력, false: 바로빌 API)');
        });
    }

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