id(); $table->foreignIdFor(Application::class)->constrained()->cascadeOnDelete(); $table->string('name'); $table->string('branch'); $table->string('status')->default('pending'); $table->boolean('scheduler_enabled')->default(true); $table->foreignId('scheduler_target_service_id')->nullable(); $table->string('scheduler_mode')->default('single'); $table->json('build_config')->nullable(); $table->timestamps(); $table->unique(['application_id', 'name']); }); } public function down(): void { Schema::dropIfExists('environments'); } };