id(); $t->foreignId('user_id')->constrained()->cascadeOnDelete(); $t->string('name', 60); // "ESP32 del curro" $t->string('token', 64)->unique(); // token dedicado $t->string('hardware', 60)->default('esp32'); $t->string('firmware_version', 30)->nullable(); $t->timestamp('last_seen_at')->nullable(); $t->json('settings')->nullable(); // config del bot $t->timestamps(); }); } public function down(): void { Schema::dropIfExists('devices'); } };