diff --git a/config/database.php b/config/database.php index eefae2f..83d564f 100644 --- a/config/database.php +++ b/config/database.php @@ -47,7 +47,7 @@ return [ 'url' => env('DB_URL'), 'host' => env('DB_HOST', 'db_mysql'), 'port' => env('DB_PORT', '3306'), - 'database' => env('DB_DATABASE', 'unioil-database'), + 'database' => env('DB_DATABASE', 'armie-database'), 'username' => env('DB_USERNAME', 'rootuser'), 'password' => env('DB_PASSWORD', 'password'), 'unix_socket' => env('DB_SOCKET', ''), diff --git a/database/migrations/2025_05_22_025247_create_sessions_table.php b/database/migrations/2025_05_22_025247_create_sessions_table.php new file mode 100644 index 0000000..f60625b --- /dev/null +++ b/database/migrations/2025_05_22_025247_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'); + } +}; diff --git a/docker-compose.yml b/docker-compose.yml index 2231486..fc46792 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,11 +24,11 @@ services: retries: 10 networks: - frontend-network - - unioil-mobile-api_backend-network + - unioil-loyalty-app_backend-network environment: - DB_HOST=db_mysql - DB_PORT=3306 - - DB_DATABASE=unioil-database + - DB_DATABASE=armie-database - DB_USERNAME=rootuser - DB_PASSWORD=password - CACHE_DRIVER=file @@ -55,10 +55,10 @@ services: retries: 5 networks: - frontend-network - - unioil-mobile-api_backend-network + - unioil-loyalty-app_backend-network networks: frontend-network: driver: bridge - unioil-mobile-api_backend-network: + unioil-loyalty-app_backend-network: external: true