clrghouz/database/migrations/2022_11_26_042014_sessionlog.php

45 lines
950 B
PHP
Raw Permalink Normal View History

2022-12-02 11:54:02 +00:00
<?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');
}
};