CREATE TABLE `sync_jobs` (
	`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
	`user_id` integer NOT NULL,
	`status` text NOT NULL,
	`type` text NOT NULL,
	`started_at` integer,
	`completed_at` integer,
	`result` text,
	`error` text,
	`created_at` integer NOT NULL,
	FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action
);
--> statement-breakpoint
ALTER TABLE `qsos` ADD `my_darc_dok` text;--> statement-breakpoint
ALTER TABLE `qsos` ADD `darc_dok` text;--> statement-breakpoint
ALTER TABLE `qsos` ADD `dcl_qsl_rdate` text;--> statement-breakpoint
ALTER TABLE `qsos` ADD `dcl_qsl_rstatus` text;--> statement-breakpoint
ALTER TABLE `users` ADD `dcl_api_key` text;