CREATE TABLE `immich_state` ( `integration_id` integer PRIMARY KEY NOT NULL, `version` text, `latest_version` text, `update_available` integer DEFAULT false NOT NULL, `disk_size` integer, `disk_used` integer, `disk_percent` real, `photos` integer, `videos` integer, `usage_bytes` integer, `queues` text, `updated_at` text NOT NULL, FOREIGN KEY (`integration_id`) REFERENCES `integrations`(`id`) ON UPDATE no action ON DELETE cascade );