File: /home/xedaptot/be.naniguide.com/database/migrations/2021_06_27_164858_job_monitor.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class JobMonitor extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('job_monitors', function (Blueprint $table) {
$table->id();
$table->uuid('uid');
$table->string('subject_name');
$table->bigInteger('subject_id');
$table->string('batch_id')->nullable();
$table->bigInteger('job_id')->nullable();
$table->string('job_type')->nullable();
$table->mediumText('error')->nullable();
$table->mediumText('data')->nullable();
$table->string('status')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('job_monitors');
}
}