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 );