CREATE TABLE `image_blobs` (
	`id` text NOT NULL,
	`user_id` text NOT NULL,
	`mime_type` text NOT NULL,
	`content_hash` text NOT NULL,
	`data` blob NOT NULL,
	`updated_at` text NOT NULL,
	`deleted_at` text,
	`version` integer DEFAULT 1 NOT NULL,
	PRIMARY KEY(`id`, `user_id`)
);
--> statement-breakpoint
CREATE INDEX `image_blobs_user_id_idx` ON `image_blobs` (`user_id`);--> statement-breakpoint
CREATE INDEX `image_blobs_content_hash_idx` ON `image_blobs` (`content_hash`);