id(); $table->foreignId('user_id')->constrained()->cascadeOnDelete(); $table->string('name'); // device_name del login $table->unsignedBigInteger('token_id')->nullable(); // id del personal_access_token actual $table->string('app_version')->nullable(); $table->timestamp('last_seen_at')->nullable(); $table->timestamps(); $table->unique(['user_id', 'name']); }); } public function down(): void { Schema::dropIfExists('devices'); } };