From 53acc6a5a784a85c6ec54221d6231f17672cb4ca Mon Sep 17 00:00:00 2001 From: Michal Feher Date: Thu, 23 Feb 2023 09:50:55 +0100 Subject: [PATCH] no message --- ...023_02_23_085040_create_sessions_table.php | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 be/database/migrations/2023_02_23_085040_create_sessions_table.php diff --git a/be/database/migrations/2023_02_23_085040_create_sessions_table.php b/be/database/migrations/2023_02_23_085040_create_sessions_table.php new file mode 100644 index 0000000..06c3e45 --- /dev/null +++ b/be/database/migrations/2023_02_23_085040_create_sessions_table.php @@ -0,0 +1,35 @@ +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. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('sessions'); + } +};