bigIncrements('id'); $table->unsignedBigInteger('photo_id'); $table->string('storage_path'); $table->string('b2_file_id'); $table->timestamps(); $table->foreign('photo_id') ->references('id')->on('photos') ->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('backblaze_b2_file_id_caches'); } }