<?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::create('client_domain_fields', function (Blueprint $t) { $t->id(); $t->unsignedInteger('domain_id'); $t->string('field_key', 64); $t->string('value', 255); $t->timestamp('created_at')->nullable(); $t->timestamp('updated_at')->nullable(); $t->unique(['domain_id', 'field_key'], 'client_domain_fields_domain_key_unique'); }); } public function down(): void { Schema::dropIfExists('client_domain_fields'); } }; 