-- CreateTable
CREATE TABLE "pr_code_context_hash_cache" (
    "id" SERIAL NOT NULL,
    "repo" TEXT NOT NULL,
    "owner" TEXT NOT NULL,
    "pr_number" INTEGER NOT NULL,
    "context_hash" TEXT NOT NULL,
    "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "updated_at" TIMESTAMP(3) NOT NULL,

    CONSTRAINT "pr_code_context_hash_cache_pkey" PRIMARY KEY ("id")
);

-- CreateIndex
CREATE UNIQUE INDEX "pr_code_context_hash_cache_repo_owner_pr_number_context_has_key" ON "pr_code_context_hash_cache"("repo", "owner", "pr_number", "context_hash");
