<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateRefundTransactionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('refund_transactions', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('order_id')->nullable();
$table->string('payment_for')->nullable();
$table->unsignedBigInteger('payer_id')->nullable();
$table->unsignedBigInteger('payment_receiver_id')->nullable();
$table->string('paid_by')->nullable();
$table->string('paid_to')->nullable();
$table->string('payment_method')->nullable();
$table->string('payment_status')->nullable();
$table->float('amount')->nullable();
$table->string('transaction_type')->nullable();
$table->unsignedBigInteger('order_details_id')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('refund_transactions');
}
}