diff --git a/apps/api-gateway/src/connection/connection.controller.ts b/apps/api-gateway/src/connection/connection.controller.ts
index 7e1d04c14..8c598a292 100644
--- a/apps/api-gateway/src/connection/connection.controller.ts
+++ b/apps/api-gateway/src/connection/connection.controller.ts
@@ -165,10 +165,10 @@ export class ConnectionController {
@ApiResponse({ status: 200, description: 'Success', type: AuthTokenResponse })
async getConnectionWebhook(
@Body() connectionDto: ConnectionDto,
- @Param('id') id: number,
+ @Param('id') id: string,
@Res() res: Response
): Promise
Date: 24, 25, 26 November 2023 | Place: Cidco Exhibition Centre, Navi Mumbai, India
- Blockchain-based certificate issued using "credebl.id", by Blockster Labs Pvt. Ltd.
+ Blockchain-based certificate issued using credebl.id, by Blockster Labs Pvt. Ltd.
diff --git a/apps/user/templates/participant-template.ts b/apps/user/templates/participant-template.ts
index 25399510f..75b4f0cac 100644
--- a/apps/user/templates/participant-template.ts
+++ b/apps/user/templates/participant-template.ts
@@ -83,7 +83,7 @@ export class ParticipantTemplate {
exceptional memory skills demonstrated during the competition.
Date: 24, 25, 26 November 2023 | Place: Cidco Exhibition Centre, Navi Mumbai, India
- Blockchain-based certificate issued using "credebl.id", by Blockster Labs Pvt. Ltd.
+ Blockchain-based certificate issued using credebl.id, by Blockster Labs Pvt. Ltd.
diff --git a/apps/user/templates/winner-template.ts b/apps/user/templates/winner-template.ts
index f38aea4df..49526e6da 100644
--- a/apps/user/templates/winner-template.ts
+++ b/apps/user/templates/winner-template.ts
@@ -87,7 +87,7 @@ export class WinnerTemplate {
exceptional memory skills demonstrated during the competition.
Date: 24, 25, 26 November 2023 | Place: Cidco Exhibition Centre, Navi Mumbai, India
- Blockchain-based certificate issued using "credebl.id", by Blockster Labs Pvt. Ltd.
+ Blockchain-based certificate issued using credebl.id, by Blockster Labs Pvt. Ltd.
diff --git a/apps/user/templates/world-record-template.ts b/apps/user/templates/world-record-template.ts
index 3df9edcb4..70f9b8d36 100644
--- a/apps/user/templates/world-record-template.ts
+++ b/apps/user/templates/world-record-template.ts
@@ -85,7 +85,7 @@ export class WorldRecordTemplate {
exceptional memory skills demonstrated during the competition.
Date: 24, 25, 26 November 2023 | Place: Cidco Exhibition Centre, Navi Mumbai, India
- Blockchain-based certificate issued using "credebl.id", by Blockster Labs Pvt. Ltd.
+ Blockchain-based certificate issued using credebl.id, by Blockster Labs Pvt. Ltd.
diff --git a/libs/prisma-service/prisma/migrations/20231124163136_ledger_network_url/migration.sql b/libs/prisma-service/prisma/migrations/20231124163136_ledger_network_url/migration.sql
new file mode 100644
index 000000000..afef77bcd
--- /dev/null
+++ b/libs/prisma-service/prisma/migrations/20231124163136_ledger_network_url/migration.sql
@@ -0,0 +1,48 @@
+/*
+ Warnings:
+
+ - You are about to drop the column `autoAcceptConnection` on the `connections` table. All the data in the column will be lost.
+ - You are about to drop the column `orgDid` on the `connections` table. All the data in the column will be lost.
+ - You are about to drop the column `outOfBandId` on the `connections` table. All the data in the column will be lost.
+ - You are about to drop the column `theirLabel` on the `connections` table. All the data in the column will be lost.
+ - You are about to drop the column `credentialAttributes` on the `credentials` table. All the data in the column will be lost.
+ - You are about to drop the column `protocolVersion` on the `credentials` table. All the data in the column will be lost.
+
+*/
+-- DropForeignKey
+ALTER TABLE "connections" DROP CONSTRAINT "connections_orgId_fkey";
+
+-- DropForeignKey
+ALTER TABLE "credentials" DROP CONSTRAINT "credentials_orgId_fkey";
+
+-- DropForeignKey
+ALTER TABLE "presentations" DROP CONSTRAINT "presentations_orgId_fkey";
+
+-- AlterTable
+ALTER TABLE "connections" DROP COLUMN "autoAcceptConnection",
+DROP COLUMN "orgDid",
+DROP COLUMN "outOfBandId",
+DROP COLUMN "theirLabel",
+ALTER COLUMN "orgId" DROP NOT NULL;
+
+-- AlterTable
+ALTER TABLE "credentials" DROP COLUMN "credentialAttributes",
+DROP COLUMN "protocolVersion",
+ADD COLUMN "credentialExchangeId" TEXT NOT NULL DEFAULT '',
+ADD COLUMN "state" TEXT NOT NULL DEFAULT '',
+ALTER COLUMN "orgId" DROP NOT NULL;
+
+-- AlterTable
+ALTER TABLE "ledgers" ADD COLUMN "networkUrl" VARCHAR;
+
+-- AlterTable
+ALTER TABLE "presentations" ALTER COLUMN "orgId" DROP NOT NULL;
+
+-- AddForeignKey
+ALTER TABLE "connections" ADD CONSTRAINT "connections_orgId_fkey" FOREIGN KEY ("orgId") REFERENCES "organisation"("id") ON DELETE SET NULL ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "credentials" ADD CONSTRAINT "credentials_orgId_fkey" FOREIGN KEY ("orgId") REFERENCES "organisation"("id") ON DELETE SET NULL ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "presentations" ADD CONSTRAINT "presentations_orgId_fkey" FOREIGN KEY ("orgId") REFERENCES "organisation"("id") ON DELETE SET NULL ON UPDATE CASCADE;
diff --git a/libs/prisma-service/prisma/schema.prisma b/libs/prisma-service/prisma/schema.prisma
index f3747dca8..24e1ea358 100644
--- a/libs/prisma-service/prisma/schema.prisma
+++ b/libs/prisma-service/prisma/schema.prisma
@@ -206,6 +206,7 @@ model ledgers {
registerDIDEndpoint String @db.VarChar
registerDIDPayload Json?
indyNamespace String? @db.VarChar
+ networkUrl String? @db.VarChar
org_agents org_agents[]
schema schema[]
}
@@ -275,47 +276,43 @@ model agent_invitations {
}
model connections {
- id String @id @default(uuid()) @db.Uuid
- createDateTime DateTime @default(now()) @db.Timestamptz(6)
- createdBy String @db.Uuid
- lastChangedDateTime DateTime @default(now()) @db.Timestamptz(6)
- lastChangedBy String @db.Uuid
- connectionId String @unique
- state String
- orgDid String
- theirLabel String
- autoAcceptConnection Boolean
- outOfBandId String
- orgId String @db.Uuid
- organisation organisation @relation(fields: [orgId], references: [id])
+ id String @id @default(uuid()) @db.Uuid
+ createDateTime DateTime @default(now()) @db.Timestamptz(6)
+ createdBy String @db.Uuid
+ lastChangedDateTime DateTime @default(now()) @db.Timestamptz(6)
+ lastChangedBy String @db.Uuid
+ connectionId String @unique
+ state String
+ orgId String? @db.Uuid
+ organisation organisation? @relation(fields: [orgId], references: [id])
}
model credentials {
- id String @id @default(uuid()) @db.Uuid
- createDateTime DateTime @default(now()) @db.Timestamptz(6)
- createdBy String @db.Uuid
- lastChangedDateTime DateTime @default(now()) @db.Timestamptz(6)
- lastChangedBy String @db.Uuid
+ id String @id @default(uuid()) @db.Uuid
+ createDateTime DateTime @default(now()) @db.Timestamptz(6)
+ createdBy String @db.Uuid
+ lastChangedDateTime DateTime @default(now()) @db.Timestamptz(6)
+ lastChangedBy String @db.Uuid
connectionId String?
- threadId String @unique
- protocolVersion String?
- credentialAttributes Json[]
- orgId String @db.Uuid
- organisation organisation @relation(fields: [orgId], references: [id])
+ threadId String @unique
+ credentialExchangeId String @default("")
+ state String @default("")
+ orgId String? @db.Uuid
+ organisation organisation? @relation(fields: [orgId], references: [id])
}
model presentations {
- id String @id @default(uuid()) @db.Uuid
- createDateTime DateTime @default(now()) @db.Timestamptz(6)
- createdBy String @db.Uuid
- lastChangedDateTime DateTime @default(now()) @db.Timestamptz(6)
- lastChangedBy String @db.Uuid
+ id String @id @default(uuid()) @db.Uuid
+ createDateTime DateTime @default(now()) @db.Timestamptz(6)
+ createdBy String @db.Uuid
+ lastChangedDateTime DateTime @default(now()) @db.Timestamptz(6)
+ lastChangedBy String @db.Uuid
connectionId String?
state String?
- threadId String @unique
+ threadId String @unique
isVerified Boolean?
- orgId String @db.Uuid
- organisation organisation @relation(fields: [orgId], references: [id])
+ orgId String? @db.Uuid
+ organisation organisation? @relation(fields: [orgId], references: [id])
}
model ecosystem_roles {
@@ -433,7 +430,7 @@ model file_upload {
deletedAt DateTime? @db.Timestamp(6)
file_data file_data[]
organisation organisation? @relation(fields: [orgId], references: [id])
- orgId String? @db.Uuid
+ orgId String? @db.Uuid
}
model file_data {