-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove central-ledger prisma files and cacheMiddleWare * Update eventStore.prisma file and add transaction.prisma * Update mongodb connection * Add eventstore schema for testing changes * Update Transfer for new model * Add db connection for transaction collection * update: transaction.prisma model types * fix ime-271 fix transaction query * fix ime-271 payerParty and payeeParty data not showing --------- Co-authored-by: v3-Panwar-Ujjwal <[email protected]> Co-authored-by: Akhilesh Rawat <[email protected]>
- Loading branch information
1 parent
99a9794
commit 4412ef3
Showing
17 changed files
with
7,728 additions
and
1,997 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
datasource db { | ||
provider = "mongodb" | ||
url = "mongodb://localhost:27017/reporting" | ||
} | ||
generator client { | ||
provider = "prisma-client-js" | ||
output = "transaction" | ||
} | ||
|
||
model Transaction { | ||
id String @id @default(auto()) @map("_id") @db.ObjectId | ||
transferId String | ||
transactionId String | ||
sourceAmount Float | ||
sourceCurrency String | ||
targetAmount Float | ||
targetCurrency String | ||
transferState String | ||
transferStateChanges TransferStateChange[] | ||
transactionType String | ||
errorCode Int? | ||
transferSettlementWindowId Int | ||
payerDFSP String? | ||
payerDFSPProxy String? | ||
payeeDFSP String? | ||
payeeDFSPProxy String? | ||
positionChanges Json | ||
payerParty Json | ||
payeeParty Json | ||
quoteRequest Json | ||
transferTerms Json | ||
conversions Json | ||
createdAt DateTime @default(now()) | ||
lastUpdated DateTime? @updatedAt | ||
@@unique([transferId]) | ||
@@unique([transactionId]) | ||
@@index([transferState]) | ||
@@index([transactionType]) | ||
@@map("transfer") | ||
} | ||
|
||
model TransferStateChange { | ||
id String @id @default(auto()) @map("_id") @db.ObjectId | ||
transferState String | ||
dateTime DateTime | ||
reason String? | ||
transactionId String @db.ObjectId | ||
transaction Transaction @relation(fields: [transactionId], references: [id]) | ||
createdAt DateTime @default(now()) | ||
@@index([transferState]) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.