Page MenuHomePhorge

2019_09_17_102627_wallet_controllers.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

2019_09_17_102627_wallet_controllers.php

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
// phpcs:ignore
class WalletControllers extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create(
'user_accounts',
function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('user_id');
$table->string('wallet_id', 36);
$table->timestamp('created_at')->useCurrent();
$table->timestamp('updated_at')->useCurrent();
$table->unique(['user_id', 'wallet_id']);
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
$table->foreign('wallet_id')->references('id')->on('wallets')->onDelete('cascade');
}
);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('user_accounts');
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Aug 17, 11:25 AM (12 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1229667
Default Alt Text
2019_09_17_102627_wallet_controllers.php (1 KB)

Event Timeline