CREATE TABLE `uniform_resource_transform` (
`uniform_resource_transform_id` text PRIMARY KEY NOT NULL,
`uniform_resource_id` text NOT NULL,
`uri` text NOT NULL,
`content_digest` text NOT NULL,
`content` blob,
`nature` text,
`size_bytes` integer,
`elaboration` text,
`created_at` TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
`created_by` text DEFAULT 'UNKNOWN',
`updated_at` TIMESTAMPTZ,
`updated_by` text,
`deleted_at` TIMESTAMPTZ,
`deleted_by` text,
`activity_log` text,
FOREIGN KEY (`uniform_resource_id`) REFERENCES `uniform_resource`(`uniform_resource_id`) ON UPDATE no action ON DELETE no action,
CONSTRAINT "elaboration_check_valid_json" CHECK(json_valid("uniform_resource_transform"."elaboration") OR "uniform_resource_transform"."elaboration" IS NULL)
)