3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5 use Illuminate\Support\Facades\Schema;
7 return new class extends Migration
16 Schema::create('sessions', function (Blueprint $table) {
17 $table->string('id')->unique();
18 $table->integer('user_id')->nullable();
19 $table->string('ip_address', 45)->nullable();
20 $table->text('user_agent')->nullable();
21 $table->text('payload');
22 $table->integer('last_activity');
27 * Reverse the migrations.
31 public function down()
33 Schema::dropIfExists('sessions');