<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateWithdrawalsTable extends Migration
{
public function up()
{
Schema::create('withdrawals', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('txn_id')->nullable();
$table->integer('user')->nullable();
$table->string('uname')->nullable();
$table->string('amount')->nullable();
$table->string('to_deduct')->nullable();
$table->string('status')->nullable();
$table->string('payment_mode')->nullable();
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('withdrawals');
}
}