Page MenuHomePhorge

2019_09_17_102626_create_wallet_table.php
No OneTemporary

Size
996 B
Referenced Files
None
Subscribers
None

2019_09_17_102626_create_wallet_table.php

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
// phpcs:ignore
class CreateWalletTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create(
'wallets',
function (Blueprint $table) {
$table->string('id', 36);
$table->string('description', 128)->nullable();
$table->string('currency', 4);
$table->integer('balance');
$table->bigInteger('user_id');
$table->primary('id');
$table->index('user_id');
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
}
);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('wallets');
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Sep 28, 10:16 PM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1455050
Default Alt Text
2019_09_17_102626_create_wallet_table.php (996 B)

Event Timeline