2021-07-16 06:35:54 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
|
|
|
|
class CreateTipsTable extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('tips', function (Blueprint $table) {
|
|
|
|
$table->id();
|
|
|
|
$table->foreignId('address_id')->constrained();
|
|
|
|
$table->bigInteger('amount');
|
|
|
|
$table->string('txid')->unique();
|
2021-07-27 02:39:11 +00:00
|
|
|
$table->boolean('is_deposit');
|
2021-07-16 06:35:54 +00:00
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('tips');
|
|
|
|
}
|
|
|
|
}
|