id(); $table -> string('payment_type_id')->nullable(); $table -> string('payment_method_id')->nullable(); $table -> string('status')->nullable(); $table -> string('monto')->nullable(); $table->unsignedBigInteger('usuario_id')->nullable(); $table->foreign('usuario_id') ->references('id') ->on('users') ->onDelete('cascade') ->onUpdate('cascade'); $table->unsignedBigInteger('saldo_id')->nullable(); $table->foreign('saldo_id') ->references('id') ->on('saldos') ->onDelete('cascade') ->onUpdate('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('recargas'); } };