@@ -12,18 +12,24 @@ return new class extends Migration
1212 public function up(): void
1313 {
1414 Schema::create(config('users.eloquent.user_login.table', 'user_logins'), function (Blueprint $table) {
15- $table->id();
16- $table->unsignedBigInteger('user_id')->nullable();
17-
18- $table->string('type')->nullable();
19- $table->string('url')->nullable();
20- $table->string('referrer')->nullable();
21- $table->text('inputs')->nullable();
22- $table->string('user_agent')->nullable();
23- $table->string('ip_address')->nullable();
24- $table->string('hostname')->nullable();
15+ $table->id();
16+ $table->unsignedBigInteger('user_id')->nullable();
2517
26- $table->timestamps();
18+ $table->string('type')->nullable();
19+ $table->string('url')->nullable();
20+ $table->string('referrer')->nullable();
21+ $table->text('inputs')->nullable();
22+ $table->string('user_agent')->nullable();
23+ $table->string('ip_address')->nullable();
24+ $table->string('hostname')->nullable();
25+ $table->string('isp')->nullable();
26+ $table->string('org')->nullable();
27+ $table->string('city')->nullable();
28+ $table->string('region')->nullable();
29+ $table->string('country_code', 2)->nullable();
30+ $table->timestamp('created_at')->useCurrent();
31+ $table->timestamp('updated_at')->useCurrent();
32+ $table->timestamps();
2733 });
2834 }
2935
0 commit comments