@factor-wise/prisma-schema 2.0.35 → 2.0.36

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factor-wise/prisma-schema",
3
- "version": "2.0.35",
3
+ "version": "2.0.36",
4
4
  "description": "Shared Prisma schema and generated client for Factor Wise projects",
5
5
  "main": "generated/client/index.js",
6
6
  "types": "generated/client/index.d.ts",
@@ -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,21 @@ 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
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([customerID], map: "bankstatement_ibfk_1")
2423
+ }
2424
+
2409
2425
  model disbursement_requests {
2410
2426
  id BigInt @id @default(autoincrement())
2411
2427
  loanId Int @unique()
@@ -2853,3 +2869,10 @@ enum PayoutStatus {
2853
2869
  REJECTED
2854
2870
  REVERSED
2855
2871
  }
2872
+
2873
+ enum bankanalysisStatus {
2874
+ PENDING
2875
+ PROCESSING
2876
+ SUCCEEDED
2877
+ FAILED
2878
+ }