CREATE TABLE `authentik_state` ( `integration_id` integer PRIMARY KEY NOT NULL, `version` text, `latest_version` text, `outdated` integer DEFAULT false NOT NULL, `workers` integer, `outposts` text DEFAULT '[]' NOT NULL, `certificates` text DEFAULT '[]' NOT NULL, `tokens` text DEFAULT '[]' NOT NULL, `failed_logins_24h` integer, `config_errors_24h` integer, `last_config_error` text, `updated_at` text NOT NULL, FOREIGN KEY (`integration_id`) REFERENCES `integrations`(`id`) ON UPDATE no action ON DELETE cascade );