CREATE TABLE `kv` (
	`encoded_key` text PRIMARY KEY NOT NULL,
	`value` text NOT NULL,
	`expires_at` text,
	`created_at` text NOT NULL,
	`updated_at` text NOT NULL
);
--> statement-breakpoint
CREATE INDEX `idx_kv_encoded_key` ON `kv` (`encoded_key`);--> statement-breakpoint
CREATE INDEX `idx_kv_expires_at` ON `kv` (`expires_at`);--> statement-breakpoint
CREATE INDEX `idx_kv_encoded_key_expires_at` ON `kv` (`encoded_key`,`expires_at`);