From 722e857ea49f68e7a89779eef5a1737fbc754564 Mon Sep 17 00:00:00 2001 From: pranalidhanavade Date: Mon, 4 May 2026 12:18:32 +0530 Subject: [PATCH] fix: migration related issue for oid4vc schema Signed-off-by: pranalidhanavade --- libs/prisma-service/prisma/schema.prisma | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/prisma-service/prisma/schema.prisma b/libs/prisma-service/prisma/schema.prisma index 8e5766d27..8b5a3a795 100755 --- a/libs/prisma-service/prisma/schema.prisma +++ b/libs/prisma-service/prisma/schema.prisma @@ -600,7 +600,7 @@ model oidc_issuer { orgId String? @db.Uuid isPrimary Boolean @default(false) - organisation organisation? @relation(fields: [orgId], references: [id]) + organisation organisation? @relation(fields: [orgId], references: [id], onDelete: SetNull) @@index([orgAgentId]) } @@ -620,8 +620,8 @@ model oid4vc_credentials { issuedCredentials String[] publicIssuerId String - organisation organisation? @relation(fields: [orgId], references: [id]) - + organisation organisation? @relation(fields: [orgId], references: [id], onDelete: SetNull) + @@index([credentialConfigurationIds], type: Gin) } @@ -667,7 +667,7 @@ model issued_oid4vc_credentials { updatedAt DateTime @updatedAt statusListUri String - organisation organisation? @relation(fields: [orgId], references: [id]) + organisation organisation? @relation(fields: [orgId], references: [id], onDelete: SetNull) @@index([orgId, issuanceSessionId]) }