-- Locator serial numbers are globally unique (not per-org), so a bare
-- devices/<serial>/log MQTT topic can identify the device without org context.

-- DropIndex
DROP INDEX "devices_orgId_serialNumber_key";

-- CreateIndex
CREATE UNIQUE INDEX "devices_serialNumber_key" ON "devices"("serialNumber");
