D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
almahero.online
/
database
/
migrations
/
Filename :
2022_04_27_124958_create_withdraws_table.php
back
Copy
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('withdraws', function (Blueprint $table) { $table->id(); $table->uuid('uuid')->unique(); $table->bigInteger('user_id'); $table->string('transection_id', 80); $table->decimal('amount')->default(0.00); $table->string('payment_method', 100)->nullable(); $table->mediumText('note', 100)->nullable(); $table->tinyInteger('status')->default(0)->comment('0=pending, 1=complete, 2=rejected'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('withdraws'); } };