id(); $table->foreignId('parent_id')->nullable()->constrained('operations')->nullOnDelete(); $table->string('hash')->unique(); $table->string('kind')->default('service_deploy'); $table->morphs('target'); // server, service, etc. $table->string('status'); $table->dateTime('started_at')->nullable(); $table->dateTime('finished_at')->nullable(); $table->timestamps(); }); } public function down(): void { Schema::dropIfExists('operations'); } };