@factor-wise/prisma-schema 2.0.35 → 2.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisma/schema.prisma +24 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -2399,6 +2399,7 @@ model bankstatement {
|
|
|
2399
2399
|
uploadedDate DateTime? @db.Date
|
|
2400
2400
|
analyser_data Json?
|
|
2401
2401
|
user_requirement Json?
|
|
2402
|
+
bank_analysis bank_analysis?
|
|
2402
2403
|
customer customer @relation(fields: [customerID], references: [customerID], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_1")
|
|
2403
2404
|
leads leads? @relation(fields: [leadID], references: [leadID], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_3")
|
|
2404
2405
|
|
|
@@ -2406,6 +2407,22 @@ model bankstatement {
|
|
|
2406
2407
|
@@index([customerID], map: "bankstatement_ibfk_1")
|
|
2407
2408
|
}
|
|
2408
2409
|
|
|
2410
|
+
model bank_analysis {
|
|
2411
|
+
id Int @id @default(autoincrement())
|
|
2412
|
+
statementId Int @unique
|
|
2413
|
+
customerID Int
|
|
2414
|
+
clienttrnxid String @unique
|
|
2415
|
+
analysisData Json?
|
|
2416
|
+
status bankanalysisStatus
|
|
2417
|
+
updated_at DateTime @updatedAt
|
|
2418
|
+
createdAt DateTime @default(now())
|
|
2419
|
+
bankstatement bankstatement @relation(fields: [statementId], references: [id])
|
|
2420
|
+
|
|
2421
|
+
@@index([statementId], map: "statementId")
|
|
2422
|
+
@@index([clienttrnxid], map: "clienttrnxid")
|
|
2423
|
+
@@index([customerID], map: "bankstatement_ibfk_1")
|
|
2424
|
+
}
|
|
2425
|
+
|
|
2409
2426
|
model disbursement_requests {
|
|
2410
2427
|
id BigInt @id @default(autoincrement())
|
|
2411
2428
|
loanId Int @unique()
|
|
@@ -2853,3 +2870,10 @@ enum PayoutStatus {
|
|
|
2853
2870
|
REJECTED
|
|
2854
2871
|
REVERSED
|
|
2855
2872
|
}
|
|
2873
|
+
|
|
2874
|
+
enum bankanalysisStatus {
|
|
2875
|
+
PENDING
|
|
2876
|
+
PROCESSING
|
|
2877
|
+
SUCCEEDED
|
|
2878
|
+
FAILED
|
|
2879
|
+
}
|