Three read-only integrations, each with a monitoring page, alerts, maintenance silencing and held-when-unreadable handling. Nextcloud: database needing upgrade (critical), maintenance mode, and the data disk running low; users, files and app updates with an admin app password. NetBox: no background worker running, counts, and a list of the servers this app manages that have no address in NetBox (a list, not an alert). n8n: an active workflow whose last run failed, clearing when it next succeeds. Disk messages for Immich, Paperless and Nextcloud now use the same units as the pages that show them. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
36 lines
1.2 KiB
SQL
36 lines
1.2 KiB
SQL
CREATE TABLE `n8n_state` (
|
|
`integration_id` integer PRIMARY KEY NOT NULL,
|
|
`workflows` text DEFAULT '[]' NOT NULL,
|
|
`executions_known` integer DEFAULT false NOT NULL,
|
|
`updated_at` text NOT NULL,
|
|
FOREIGN KEY (`integration_id`) REFERENCES `integrations`(`id`) ON UPDATE no action ON DELETE cascade
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE TABLE `netbox_state` (
|
|
`integration_id` integer PRIMARY KEY NOT NULL,
|
|
`version` text,
|
|
`workers_running` integer,
|
|
`devices` integer,
|
|
`virtual_machines` integer,
|
|
`prefixes` integer,
|
|
`ip_addresses` integer,
|
|
`ips` text,
|
|
`updated_at` text NOT NULL,
|
|
FOREIGN KEY (`integration_id`) REFERENCES `integrations`(`id`) ON UPDATE no action ON DELETE cascade
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE TABLE `nextcloud_state` (
|
|
`integration_id` integer PRIMARY KEY NOT NULL,
|
|
`version` text,
|
|
`maintenance` integer DEFAULT false NOT NULL,
|
|
`needs_upgrade` integer DEFAULT false NOT NULL,
|
|
`detail` integer DEFAULT false NOT NULL,
|
|
`free_bytes` integer,
|
|
`users` integer,
|
|
`files` integer,
|
|
`active_24h` integer,
|
|
`app_updates` integer,
|
|
`updated_at` text NOT NULL,
|
|
FOREIGN KEY (`integration_id`) REFERENCES `integrations`(`id`) ON UPDATE no action ON DELETE cascade
|
|
);
|