Files
portal-api/database/migrations/2024_05_10_090436_staff_online.php

36 lines
766 B
PHP

<?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('staff_online',function (Blueprint $table) {
$table->id();
$table->string('sessions_id')->nullable();
$table->integer('user_id')->default(0)->index();
$table->integer('last_visited')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('staff_online');
}
};