관리-도구
편집 파일: 2022_05_12_104247_create_wallet_transactions_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateWalletTransactionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('wallet_transactions', function (Blueprint $table) { $table->id(); $table->foreignId('user_id')->nullable(); $table->uuid('transaction_id'); $table->decimal('credit',24,3)->default(0); $table->decimal('debit',24,3)->default(0); $table->decimal('admin_bonus',24,3)->default(0); $table->decimal('balance',24,3)->default(0); $table->string('transaction_type',191)->nullable(); $table->string('reference',191)->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('wallet_transactions'); } }