Page MenuHomePhorge

2019_09_17_102626_create_wallet_table.php
No OneTemporary

Authored By
Unknown
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
Sun, Apr 5, 9:48 PM (3 w, 16 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
08/bd/b2d37b658620e893f094cf6ff1f6
Default Alt Text
2019_09_17_102626_create_wallet_table.php (996 B)

Event Timeline