increments('id'); $table->unsignedInteger('user_id'); $table->unsignedBigInteger('realm_id'); $table->longtext('access_token'); $table->datetime('access_token_expires_at'); $table->string('refresh_token'); $table->datetime('refresh_token_expires_at'); $table->timestamps(); $table->foreign('user_id') ->references('id') ->on('users') ->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('quickbooks_token'); } }