collect and show mqtt state for nodes

This commit is contained in:
liamcottle
2024-03-31 18:05:31 +13:00
parent 511b894c78
commit cfb6bf1f4d
4 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE `nodes` ADD COLUMN `mqtt_connection_state` VARCHAR(191) NULL,
ADD COLUMN `mqtt_connection_state_updated_at` DATETIME(3) NULL;

View File

@ -36,6 +36,9 @@ model Node {
neighbours Json?
neighbours_updated_at DateTime?
mqtt_connection_state String?
mqtt_connection_state_updated_at DateTime?
created_at DateTime @default(now())
updated_at DateTime @default(now()) @updatedAt