OwlCyberSecurity - MANAGER
Edit File: 2024_09_10_140017_create_withdraw_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('withdraw', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('user_id')->nullable(); $table->bigInteger('amount')->default(0); $table->tinyInteger('is_check')->default(0); $table->tinyInteger('tax')->default(0); $table->tinyInteger('pay_done')->default(0); $table->text('description')->nullable(); $table->text('Bank_account_number')->nullable(); $table->timestamps(); $table->softDeletes(); $table->foreign('user_id')->references('id')->on('users')->onDelete('set null'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('withdraw'); } };