CREATE TABLE `ur_ingest_resource_path_rewrite_rule` (
`ur_ingest_resource_path_rewrite_rule_id` text PRIMARY KEY NOT NULL,
`namespace` text NOT NULL,
`regex` text NOT NULL,
`replace` text NOT NULL,
`priority` text,
`description` text,
`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,
CONSTRAINT "elaboration_check_valid_json" CHECK(json_valid("ur_ingest_resource_path_rewrite_rule"."elaboration") OR "ur_ingest_resource_path_rewrite_rule"."elaboration" IS NULL)
)