Page MenuHomePhorge

2019_09_17_102626_create_wallet_table.php
No OneTemporary

Authored By
Unknown
Size
980 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;
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, Apr 6, 3:18 AM (3 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
3a/f6/066cce2a0bb30d05394b79d260a2
Default Alt Text
2019_09_17_102626_create_wallet_table.php (980 B)

Event Timeline