CREATE TABLE `adguard_state` ( `integration_id` integer PRIMARY KEY NOT NULL, `version` text, `running` integer DEFAULT true NOT NULL, `protection_enabled` integer DEFAULT true NOT NULL, `protection_off_since` text, `dns_port` integer DEFAULT 53 NOT NULL, `stats` text, `filters` text, `probe` text, `probe_fail_since` text, `updated_at` text NOT NULL, FOREIGN KEY (`integration_id`) REFERENCES `integrations`(`id`) ON UPDATE no action ON DELETE cascade ); --> statement-breakpoint CREATE TABLE `grafana_state` ( `integration_id` integer PRIMARY KEY NOT NULL, `version` text, `rules` text, `datasources` text, `updated_at` text NOT NULL, FOREIGN KEY (`integration_id`) REFERENCES `integrations`(`id`) ON UPDATE no action ON DELETE cascade );