log count of logged in users in Database (#13137)

* log count of logged in users in Database

* .

* rewrite Code

* create hrSystem Table

* .

* .

* db adjustments

* adjust db Table

* .

* adjust db Table

* table redesign

* .

* .
This commit is contained in:
SourceDoctor
2021-10-02 01:58:26 +02:00
committed by GitHub
parent a828bb00c3
commit f47410e426
5 changed files with 69 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateHrSystemTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('hrSystem', function (Blueprint $table) {
$table->increments('hrSystem_id');
$table->unsignedInteger('device_id')->index();
$table->integer('hrSystemNumUsers')->default(0);
$table->integer('hrSystemProcesses')->default(0);
$table->integer('hrSystemMaxProcesses')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('hrSystem');
}
}