This commit is contained in:
Taylor Otwell
2023-12-16 14:35:04 -06:00
parent b7ae61bb43
commit feded74d9e
4 changed files with 47 additions and 2 deletions

View File

@@ -26,6 +26,15 @@ return new class extends Migration
$table->string('token');
$table->timestamp('created_at')->nullable();
});
Schema::create('sessions', function (Blueprint $table) {
$table->string('id')->primary();
$table->foreignId('user_id')->nullable()->index();
$table->string('ip_address', 45)->nullable();
$table->text('user_agent')->nullable();
$table->longText('payload');
$table->integer('last_activity')->index();
});
}
/**
@@ -35,5 +44,6 @@ return new class extends Migration
{
Schema::dropIfExists('users');
Schema::dropIfExists('password_reset_tokens');
Schema::dropIfExists('sessions');
}
};