id(); $table->unsignedBigInteger('resource_id')->nullable(); $table->foreign('resource_id')->nullable()->references('id')->on('resources')->onUpdate('cascade')->onDelete('cascade'); $table->string('document_type')->nullable(); $table->string('name')->nullable(); $table->text('description')->nullable(); $table->string('file')->nullable(); $table->boolean('enabled')->default(1); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('resource_documents'); } };