CREATE TABLE `fragnet_power_log` ( `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `integration_id` integer NOT NULL, `server_id` text NOT NULL, `server_name` text NOT NULL, `at` text NOT NULL, `kind` text NOT NULL, `detail` text, `by` text, FOREIGN KEY (`integration_id`) REFERENCES `integrations`(`id`) ON UPDATE no action ON DELETE cascade ); --> statement-breakpoint CREATE INDEX `fragnet_power_log_idx` ON `fragnet_power_log` (`integration_id`,`server_id`,`at`);