id(); $table->string('name'); $table->string('internal_name'); $table->integer('size'); $table->string('extension'); $table->foreignId('contract_id') ->onUpdate('cascade') ->onDelete('cascade') ->constrained('contracts'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('documents'); } }