diff --git a/backend/app/Auth/SessionModel.php b/backend/app/Auth/SessionModel.php index 75e87e3..0b5092c 100644 --- a/backend/app/Auth/SessionModel.php +++ b/backend/app/Auth/SessionModel.php @@ -27,7 +27,7 @@ use Illuminate\Database\Eloquent\Model; ])] class SessionModel extends Model { - protected $table = 'auth_sessions'; + protected $table = 'sessions'; protected $primaryKey = 'token'; diff --git a/backend/database/migrations/2026_07_31_000000_create_auth_sessions_table.php b/backend/database/migrations/2026_07_31_000000_create_sessions_table.php similarity index 81% rename from backend/database/migrations/2026_07_31_000000_create_auth_sessions_table.php rename to backend/database/migrations/2026_07_31_000000_create_sessions_table.php index 995c147..687d9fb 100644 --- a/backend/database/migrations/2026_07_31_000000_create_auth_sessions_table.php +++ b/backend/database/migrations/2026_07_31_000000_create_sessions_table.php @@ -8,7 +8,7 @@ return new class extends Migration { public function up(): void { - Schema::create('auth_sessions', function (Blueprint $table): void { + Schema::create('sessions', function (Blueprint $table): void { $table->string('token', 64)->primary(); $table->foreignId('user_id') ->constrained('users') @@ -20,6 +20,6 @@ return new class extends Migration public function down(): void { - Schema::dropIfExists('auth_sessions'); + Schema::dropIfExists('sessions'); } };