Page MenuHomePhorge

2020_03_16_100000_create_payments.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

2020_03_16_100000_create_payments.php

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
// phpcs:ignore
class CreatePayments extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create(
'payments',
function (Blueprint $table) {
$table->string('id', 32)->primary();
$table->string('wallet_id', 36);
$table->string('status', 16);
$table->integer('amount');
$table->text('description');
$table->string('provider', 16);
$table->string('type', 16);
$table->timestamp('created_at')->useCurrent();
$table->timestamp('updated_at')->useCurrent();
$table->foreign('wallet_id')->references('id')->on('wallets')->onDelete('cascade');
}
);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('payments');
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Sep 7, 11:41 AM (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1314118
Default Alt Text
2020_03_16_100000_create_payments.php (1 KB)

Event Timeline