-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix[backend]: FixIntegrations to replace claims-all with claimsfeed2
- Loading branch information
1 parent
f65083c
commit f066327
Showing
5 changed files
with
5,621 additions
and
4,924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
prisma/migrations/20240802000848_image_migration_aug_1_2024/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
-- CreateEnum | ||
ALTER TYPE "AuthType" ADD VALUE 'OAUTH'; | ||
|
||
-- CreateEnum | ||
CREATE TYPE "ValidationStatus" AS ENUM ('PENDING', 'COMPLETED', 'REJECTED', 'ABANDONED'); | ||
|
||
-- CreateEnum | ||
CREATE TYPE "ResponseStatus" AS ENUM ('GREEN', 'YELLOW', 'GREY', 'RED'); | ||
|
||
-- CreateTable | ||
CREATE TABLE "ClaimData" ( | ||
"id" SERIAL NOT NULL, | ||
"claimId" INTEGER NOT NULL, | ||
"name" TEXT NOT NULL, | ||
|
||
CONSTRAINT "ClaimData_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "Image" ( | ||
"id" SERIAL NOT NULL, | ||
"claimId" INTEGER NOT NULL, | ||
"url" TEXT NOT NULL, | ||
"digestMultibase" TEXT, | ||
"metadata" JSONB, | ||
"effectiveDate" TIMESTAMP(3) NOT NULL, | ||
"createdDate" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"owner" TEXT NOT NULL, | ||
"signature" TEXT NOT NULL, | ||
|
||
CONSTRAINT "Image_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "CandidUserInfo" ( | ||
"id" SERIAL NOT NULL, | ||
"claimId" INTEGER, | ||
"firstName" TEXT, | ||
"lastName" TEXT, | ||
"candid_entity_id" TEXT NOT NULL, | ||
"email" TEXT NOT NULL, | ||
"profileURL" TEXT NOT NULL, | ||
|
||
CONSTRAINT "CandidUserInfo_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "ValidationRequest" ( | ||
"id" SERIAL NOT NULL, | ||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"context" TEXT NOT NULL, | ||
"validatorName" TEXT NOT NULL, | ||
"validatorEmail" TEXT NOT NULL, | ||
"claimId" INTEGER NOT NULL, | ||
"validationClaimId" INTEGER, | ||
"validationStatus" "ValidationStatus" NOT NULL DEFAULT 'PENDING', | ||
"response" "ResponseStatus", | ||
"validationDate" TIMESTAMP(3), | ||
"statement" TEXT, | ||
|
||
CONSTRAINT "ValidationRequest_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "ClaimData_claimId_key" ON "ClaimData"("claimId"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "CandidUserInfo_claimId_key" ON "CandidUserInfo"("claimId"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "ValidationRequest_validationClaimId_key" ON "ValidationRequest"("validationClaimId"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.