From 725c86f4344886fea3eb576c8ff67f736382da9e Mon Sep 17 00:00:00 2001 From: Hank Date: Fri, 23 May 2025 21:21:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=A3=9CsessionDB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...025_05_22_183622_create_sessions_table.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 database/migrations/2025_05_22_183622_create_sessions_table.php diff --git a/database/migrations/2025_05_22_183622_create_sessions_table.php b/database/migrations/2025_05_22_183622_create_sessions_table.php new file mode 100644 index 0000000..f60625b --- /dev/null +++ b/database/migrations/2025_05_22_183622_create_sessions_table.php @@ -0,0 +1,31 @@ +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(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('sessions'); + } +};