<?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('sales_tenant_managements', function (Blueprint $table) {
            // 본사 진행 상태
            $table->string('hq_status', 20)->default('pending')->after('manager_progress')
                ->comment('본사 진행 상태: pending, review, planning, coding, dev_test, dev_done, int_test, handover');

            // 수당 지급 상태
            $table->string('incentive_status', 20)->default('pending')->after('hq_status')
                ->comment('수당 지급 상태: pending, eligible, paid');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('sales_tenant_managements', function (Blueprint $table) {
            $table->dropColumn(['hq_status', 'incentive_status']);
        });
    }
};
