Log systems polling

This commit is contained in:
Deon George
2022-12-02 22:54:02 +11:00
parent d5d4a0d781
commit 170f5c87ed
5 changed files with 81 additions and 4 deletions

View File

@@ -0,0 +1,44 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('system_logs', function(Blueprint $table) {
$table->id();
$table->timestamps();
$table->bigInteger('system_id');
$table->foreign('system_id')->references('id')->on('systems');
$table->integer('items_sent')->nullable();
$table->integer('items_sent_size')->nullable();
$table->integer('items_recv')->nullable();
$table->integer('items_recv_size')->nullable();
$table->integer('sessiontime');
$table->integer('sessiontype');
$table->integer('result');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('system_logs');
}
};