CREATE TABLE "ur_ingest_resource_path_rewrite_rule" (
"ur_ingest_resource_path_rewrite_rule_id" VARCHAR PRIMARY KEY NOT NULL,
"namespace" TEXT NOT NULL,
"regex" TEXT NOT NULL,
"replace" TEXT NOT NULL,
"priority" TEXT,
"description" TEXT,
"elaboration" TEXT CHECK(json_valid(elaboration) OR elaboration IS NULL),
"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,
UNIQUE("namespace", "regex", "replace")
)