<?php

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

/**
 * PRC-752 — ClientProduct'a soft-delete. Biten (terminated) hizmet hesaptan
 * "kaldırılır" (soft-delete) — liste/sayımdan düşer ama geçmiş korunur,
 * geri alınabilir. Hard-delete orphan bug'ı da kapanır (satır kalır).
 */
return new class extends Migration
{
    public function up(): void
    {
        Schema::table('client_products', function (Blueprint $table) {
            $table->softDeletes();
        });
    }

    public function down(): void
    {
        Schema::table('client_products', function (Blueprint $table) {
            $table->dropSoftDeletes();
        });
    }
};
