mirror of
https://repo.getmonero.org/AnonDev/xmrmemes.git
synced 2024-09-07 13:52:01 +00:00
37 lines
813 B
PHP
37 lines
813 B
PHP
|
<?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();
|
||
|
$table->bigInteger('height');
|
||
|
$table->boolean('is_sent')->default(0);
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('tips');
|
||
|
}
|
||
|
}
|