id(); $table->foreignId('user_id')->constrained()->cascadeOnDelete(); $table->string('name', 128); $table->string('engine', 64)->default('llama.cpp'); $table->text('config_yaml')->comment('full harness args (YAML blob or argv list)'); $table->timestamps(); $table->unique(['user_id', 'name']); }); Schema::table('benchmark_runs', function (Blueprint $table) { $table->foreignId('config_id')->nullable()->after('gpu_source') ->constrained('server_configs')->nullOnDelete(); }); } public function down(): void { Schema::table('benchmark_runs', function (Blueprint $table) { $table->dropConstrainedForeignId('config_id'); }); Schema::dropIfExists('server_configs'); } };