diff --git a/libs/prisma-service/prisma/migrations/20231116112146_status_file_data/migration.sql b/libs/prisma-service/prisma/migrations/20231116112146_status_file_data/migration.sql new file mode 100644 index 000000000..164da6ee3 --- /dev/null +++ b/libs/prisma-service/prisma/migrations/20231116112146_status_file_data/migration.sql @@ -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; diff --git a/libs/prisma-service/prisma/migrations/20231116114452_credentials_file_data/migration.sql b/libs/prisma-service/prisma/migrations/20231116114452_credentials_file_data/migration.sql new file mode 100644 index 000000000..48452a863 --- /dev/null +++ b/libs/prisma-service/prisma/migrations/20231116114452_credentials_file_data/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "file_data" ADD COLUMN "credential_data" JSONB; diff --git a/libs/prisma-service/prisma/schema.prisma b/libs/prisma-service/prisma/schema.prisma index fcef6ebce..84bee79d9 100644 --- a/libs/prisma-service/prisma/schema.prisma +++ b/libs/prisma-service/prisma/schema.prisma @@ -442,4 +442,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? }