id(); $table->unsignedBigInteger('user_id'); $table->foreignId('airflow_id')->constrained('airflows')->onDelete('cascade'); $table->string('name'); $table->string('description')->nullable(); $table->string('file_path'); $table->enum('status', ['pending', 'approved', 'rejected'])->default('pending'); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('dags'); } };