CREATE TABLE `dockhand_vulnerabilities` ( `integration_id` integer NOT NULL, `environment_id` integer NOT NULL, `environment_name` text NOT NULL, `critical` integer, `high` integer, `medium` integer, `low` integer, `images_scanned` integer, `total_images` integer, `findings` text DEFAULT '[]' NOT NULL, `updated_at` text NOT NULL, PRIMARY KEY(`integration_id`, `environment_id`), FOREIGN KEY (`integration_id`) REFERENCES `integrations`(`id`) ON UPDATE no action ON DELETE cascade );