CREATE TABLE `knowledge_facts` (
	`id` text PRIMARY KEY NOT NULL,
	`createdAt` integer NOT NULL,
	`updatedAt` integer NOT NULL,
	`domain` text NOT NULL,
	`ecosystem` text NOT NULL,
	`key` text NOT NULL,
	`payloadJson` text NOT NULL,
	`sourceUrl` text,
	`sourceKind` text NOT NULL,
	`fetchedAt` integer NOT NULL
);
--> statement-breakpoint
CREATE UNIQUE INDEX `knowledge_facts_domain_ecosystem_key` ON `knowledge_facts` (`domain`,`ecosystem`,`key`);