From 7ef6f8b5b2fff11c46b075a919e0d72f4171b477 Mon Sep 17 00:00:00 2001 From: Golda Velez Date: Sat, 27 Jul 2024 23:18:06 -0700 Subject: [PATCH] Revert "Get candid changes into master" --- prisma/schema.prisma | 40 ++++++++++++++++------------------------ 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index eaf8c70..a421aae 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -155,30 +155,28 @@ model Image { // claimData ClaimData @relation(fields: [claimDataId], references: [id]) } + // this is for validator service model CandidUserInfo { - id Int @id @default(autoincrement()) - claimId Int? @unique - firstName String? - lastName String? - candid_entity_id String - email String - profileURL String + id Int @id @default(autoincrement()) + claimId Int? @unique + firstName String + lastName String + email String + profileURL String } model ValidationRequest { - id Int @id @default(autoincrement()) + id Int @id @default(autoincrement()) createdAt DateTime @default(now()) - context String - validatorName String - validatorEmail String - claimId Int @unique // the id of the candid user claim (the root claim) - validationClaimId Int? @unique // the id of validation claim - validationStatus ValidationStatus @default(PENDING) - response ResponseStatus? - validationDate DateTime? - statement String? + context String + validatorEmail String + claimId Int + validationStatus ValidationStatus @default(PENDING) + response Boolean? @default(false) + validationDate DateTime? + statement String? } enum ValidationStatus { @@ -195,13 +193,6 @@ enum IssuerIdType { URL } -enum ResponseStatus { - GREEN // approved - YELLOW // may wish to follow up - GREY // we do not have any information that they should actively be rejected - RED // should be rejected without further action. -} - enum HowKnown { FIRST_HAND SECOND_HAND @@ -215,3 +206,4 @@ enum HowKnown { OPINION OTHER } +