id(); $table->foreignId('user_id')->nullable()->constrained()->onDelete('cascade'); $table->string('fingerprint')->unique(); $table->timestamp('last_seen_at')->nullable(); $table->timestamps(); }); } public function down() { Schema::dropIfExists('devices'); } };