File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed
common/src/response-messages
migrations/20250724161232_added_connection_for_credentials_with_connection_table Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,9 @@ export class IssuanceRepository {
121
121
schemaId : string ;
122
122
state : string ;
123
123
orgId : string ;
124
+ connections : {
125
+ theirLabel : string ;
126
+ } ;
124
127
} [ ] ;
125
128
} > {
126
129
try {
@@ -144,7 +147,12 @@ export class IssuanceRepository {
144
147
orgId : true ,
145
148
state : true ,
146
149
schemaId : true ,
147
- connectionId : true
150
+ connectionId : true ,
151
+ connections : {
152
+ select : {
153
+ theirLabel : true
154
+ }
155
+ }
148
156
} ,
149
157
orderBy : {
150
158
[ issuedCredentialsSearchCriteria ?. sortField ] :
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export const ResponseMessages = {
79
79
updateUserRoles : 'User roles updated successfully' ,
80
80
delete : 'Organization deleted successfully' ,
81
81
orgInvitationDeleted : 'Organization invitation deleted successfully' ,
82
- orgCredentials : 'Organization credentials created successfully' ,
82
+ orgCredentials : 'Client credentials created successfully' ,
83
83
fetchedOrgCredentials : 'Organization credentials fetched successfully' ,
84
84
clientCredentials : 'Client credentials fetched successfully' ,
85
85
deleteCredentials : 'Organization client credentials deleted' ,
Original file line number Diff line number Diff line change
1
+ -- AddForeignKey
2
+ ALTER TABLE " credentials" ADD CONSTRAINT " credentials_connectionId_fkey" FOREIGN KEY (" connectionId" ) REFERENCES " connections" (" connectionId" ) ON DELETE SET NULL ON UPDATE CASCADE;
Original file line number Diff line number Diff line change @@ -326,6 +326,7 @@ model connections {
326
326
orgId String ? @db.Uuid
327
327
organisation organisation ? @relation (fields : [orgId ] , references : [id ] )
328
328
presentations presentations []
329
+ credentials credentials []
329
330
}
330
331
331
332
model credentials {
@@ -342,6 +343,7 @@ model credentials {
342
343
credDefId String @default (" " )
343
344
orgId String ? @db.Uuid
344
345
organisation organisation ? @relation (fields : [orgId ] , references : [id ] )
346
+ connections connections ? @relation (fields : [connectionId ] , references : [connectionId ] )
345
347
}
346
348
347
349
model presentations {
@@ -530,4 +532,4 @@ model client_aliases {
530
532
lastChangedDateTime DateTime @default (now () ) @db.Timestamptz (6 )
531
533
clientAlias String ?
532
534
clientUrl String
533
- }
535
+ }
You can’t perform that action at this time.
0 commit comments