<?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::create('client_custom_field_values', function (Blueprint $table) {
            $table->id();
            $table->unsignedInteger('custom_field_id'); // ClientCustomField ile ilişkilendirilecek
            $table->unsignedInteger('client_id'); // Client ile ilişkilendirilecek
            $table->text('field_value'); // Custom field'a ait değer
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('client_custom_field_values');
    }
};
