<?php

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

/**
 * PRC-1143 — konsolide şema: `client_custom_field_values` tablosunun TAM tanımı (tek dosya).
 */
return new class extends Migration
{
    public function up(): void
    {
        Schema::create('client_custom_field_values', function (Blueprint $t) {
            $t->id();
            $t->unsignedInteger('custom_field_id');
            $t->unsignedInteger('client_id');
            $t->text('field_value');
            $t->timestamp('created_at')->nullable();
            $t->timestamp('updated_at')->nullable();
        });
    }

    public function down(): void
    {
        Schema::dropIfExists('client_custom_field_values');
    }
};
