collect and show mqtt state for nodes
This commit is contained in:
parent
511b894c78
commit
cfb6bf1f4d
4 changed files with 46 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue