increments('id'); $table->unsignedInteger('account_id'); $table->string('original_filename'); $table->string('new_filename'); $table->integer('filesize')->nullable(); $table->string('mime_type')->nullable(); $table->timestamps(); $table->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('photos'); } }