<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateBankAccountsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('bank_accounts', function(Blueprint $table) { $table->increments('id'); $table->integer('bank_id'); $table->morphs('owner'); $table->string('agency'); $table->string('account_number'); $table->string('account_type'); $table->string('account_holder'); $table->string('document_holder'); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('bank_accounts'); } }