CREATE TABLE `auto_sync_settings` (
	`user_id` integer PRIMARY KEY NOT NULL,
	`lotw_enabled` integer DEFAULT false NOT NULL,
	`lotw_interval_hours` integer DEFAULT 24 NOT NULL,
	`lotw_last_sync_at` integer,
	`lotw_next_sync_at` integer,
	`dcl_enabled` integer DEFAULT false NOT NULL,
	`dcl_interval_hours` integer DEFAULT 24 NOT NULL,
	`dcl_last_sync_at` integer,
	`dcl_next_sync_at` integer,
	`created_at` integer NOT NULL,
	`updated_at` integer NOT NULL,
	FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action
);
--> statement-breakpoint
ALTER TABLE `users` ADD `is_super_admin` integer DEFAULT false NOT NULL;--> statement-breakpoint
ALTER TABLE `users` ADD `last_seen` integer;