bigIncrements('iid'); $table->unsignedBigInteger('item_uid'); $table->string('bezeichnung'); $table->timestamp('wann'); $table->string('wo'); $table->unsignedBigInteger('eid'); $table->unsignedBigInteger('cid'); $table->timestamps(); $table->softDeletes(); $table->unique(['eid', 'item_uid']); $table->foreign('eid')->references('eid')->on('events'); $table->foreign('cid')->references('cid')->on('containers'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('items'); } }