⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
work
/
database
/
migrations
/
View File Name :
2023_11_09_081405_create_user_wallet_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. * * @return void */ public function up() { if (!Schema::hasColumn('user', 'credit_balance')) { Schema::table('users', function (Blueprint $table) { $table->decimal('credit_balance',10)->nullable(); }); } Schema::create('credit_transactions', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('user_id'); $table->unsignedBigInteger('payment_id')->nullable(); $table->unsignedBigInteger('ref_id')->nullable(); $table->string('type',30)->nullable(); $table->decimal('amount',10)->nullable(); $table->text('meta')->nullable(); $table->string('status',30)->nullable(); $table->softDeletes(); $table->bigInteger('create_user')->nullable(); $table->bigInteger('update_user')->nullable(); $table->index('user_id'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('user_wallet'); } };