bigIncrements('id'); $table->unsignedBigInteger('user_id'); $table->unsignedBigInteger('requisites_id'); $table->unsignedBigInteger('point_id')->nullable(); $table->decimal('amount', 15, 2); $table->string('status')->default('pending'); $table->text('description')->nullable(); $table->text('history_payment_details')->nullable(); $table->timestamps(); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('withdrawals'); } }