CREATE TABLE `prometheus_state` ( `integration_id` integer PRIMARY KEY NOT NULL, `version` text, `jobs` text, `down` text, `alerts` text, `updated_at` text NOT NULL, FOREIGN KEY (`integration_id`) REFERENCES `integrations`(`id`) ON UPDATE no action ON DELETE cascade );