ALTER TABLE `entities_relations` ADD `last_seen_run_id` text;--> statement-breakpoint
CREATE INDEX `idx_entities_relations_source_file_last_seen_run_id` ON `entities_relations` (`source_file`,`last_seen_run_id`);--> statement-breakpoint
ALTER TABLE `entities` ADD `last_seen_run_id` text;--> statement-breakpoint
CREATE INDEX `idx_entities_source_last_seen_run_id` ON `entities` (`source`,`last_seen_run_id`);