Skip to content

Commit

Permalink
refactor: bulk issuance file data model (#264)
Browse files Browse the repository at this point in the history
* refactored file data model for status

Signed-off-by: Nishad <nishad.shirsat@ayanworks.com>

* refactored file data model for credentials

Signed-off-by: Nishad <nishad.shirsat@ayanworks.com>

---------

Signed-off-by: Nishad <nishad.shirsat@ayanworks.com>
  • Loading branch information
nishad-ayanworks authored and KulkarniShashank committed Sep 10, 2024
1 parent f18704b commit c63635f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- AlterTable
ALTER TABLE "file_data" ADD COLUMN "credDefId" TEXT,
ADD COLUMN "schemaId" TEXT,
ADD COLUMN "status" BOOLEAN NOT NULL DEFAULT false;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "file_data" ADD COLUMN "credential_data" JSONB;
4 changes: 4 additions & 0 deletions libs/prisma-service/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -451,4 +451,8 @@ model file_data {
deletedAt DateTime? @db.Timestamp(6)
fileUploadId String
fileUpload file_upload @relation(fields: [fileUploadId], references: [id])
schemaId String?
credDefId String?
status Boolean @default(false)
credential_data Json?
}

0 comments on commit c63635f

Please sign in to comment.