string('echomail_id'); $table->integer('address_id'); $table->foreign('address_id')->references('id')->on('addresses'); $table->datetime('export_date'); $table->datetime('sent_date')->nullable(); $table->unique(['address_id','echomail_id']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('address_echomail'); } }