Skip to content
Snippets Groups Projects
2018_09_10_211659_create_deposits_table.php 892 B
Newer Older
beardedwarrior's avatar
beardedwarrior committed
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDepositsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('deposits', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('confirmations')->default(0);
            $table->unsignedInteger('subaddr_index');
beardedwarrior's avatar
beardedwarrior committed
            $table->string('amount');
            $table->dateTime('time_received');
beardedwarrior's avatar
beardedwarrior committed
            $table->string('tx_id');
            $table->unsignedInteger('block_received');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('deposits');
    }
}