Edit File: 2021_06_25_200905_create_payouts_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreatePayoutsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('payouts', function (Blueprint $table) { $table->increments('id'); $table->enum('status', [ "pending", "accepted","rejected" ])->default('pending'); $table->text('data')->nullable(); $table->text('message')->nullable(); $table->text('errors')->nullable(); $table->string('amount')->nullable()->default(0); $table->foreignId('user_id')->nullable()->constrained()->onDelete('set null'); $table->string('transaction_id')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('payouts'); } }
Back to File Manager