Edit File: 2022_01_18_082523_create_withdraw_reasons_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateWithdrawReasonsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('withdraw_reasons', function (Blueprint $table) { $table->id(); $table->string('reason')->nullable(); $table->foreignId('order_id')->constrained()->onDelete('cascade'); $table->foreignId('user_id')->constrained()->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('withdraw_reasons'); } }
Back to File Manager