@factor-wise/prisma-schema 2.0.46 → 2.0.48

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.46",
3
+ "version": "2.0.48",
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",
@@ -1226,10 +1226,12 @@ model leads {
1226
1226
  balanceHistory balance_history[]
1227
1227
  collectionFollowups collectionfollowup[]
1228
1228
  Payout Payout?
1229
+ IciciPayout IciciPayout?
1229
1230
  videokyc videokyc?
1230
1231
  eagreement eagreement?
1231
1232
  employmentHistory employment_history[]
1232
1233
  profileInfo profile_info[]
1234
+ criffsoftpull criffsoftpull?
1233
1235
 
1234
1236
  @@index([customerID], map: "leadcustomerID")
1235
1237
  }
@@ -1658,6 +1660,36 @@ model PayoutDowntime {
1658
1660
  @@index([method, bank])
1659
1661
  }
1660
1662
 
1663
+ model IciciPayout {
1664
+ id Int @id @default(autoincrement())
1665
+ amount BigInt
1666
+ status IciciPayoutStatus
1667
+ transRefNo String @unique
1668
+ bankRRN String?
1669
+ actCode String?
1670
+ checkStatus String?
1671
+ responseMsg String?
1672
+ payload Json?
1673
+ response Json?
1674
+ error Json?
1675
+ leadId Int @unique()
1676
+ leads leads @relation(fields: [leadId], references: [leadID])
1677
+
1678
+ isTerminal Boolean @default(false)
1679
+ createdAt DateTime @default(now())
1680
+ updatedAt DateTime @updatedAt
1681
+ IciciPayoutLog IciciPayoutLog[]
1682
+ }
1683
+
1684
+ model IciciPayoutLog {
1685
+ id Int @id @default(autoincrement())
1686
+ payoutId Int
1687
+ step String // REQUEST | RESPONSE | DECRYPTED | STATUS_CHECK | ERROR
1688
+ payload Json
1689
+ createdAt DateTime @default(now())
1690
+ payout IciciPayout @relation(fields: [payoutId], references: [id])
1691
+ }
1692
+
1661
1693
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
1662
1694
  model penny_drop {
1663
1695
  id Int
@@ -2317,6 +2349,22 @@ model cibildata {
2317
2349
  @@index([leadID, createdAt], map: "idx_lead_createdAt")
2318
2350
  }
2319
2351
 
2352
+ model criffsoftpull{
2353
+ id Int @id @default(autoincrement())
2354
+ leadID Int @unique
2355
+ requestPayload Json
2356
+ responsePayload Json?
2357
+ status String @default("pending") @db.VarChar(50)
2358
+ createdAt DateTime? @default(now()) @db.Timestamp(0)
2359
+ updatedAt DateTime? @default(now()) @db.Timestamp(0)
2360
+
2361
+
2362
+ lead leads @relation(fields: [leadID], references: [leadID])
2363
+
2364
+ @@index([leadID])
2365
+ @@index([status])
2366
+ }
2367
+
2320
2368
  model loan_sequence {
2321
2369
  id Int @id @default(autoincrement())
2322
2370
  prefix String @unique(map: "uq_prefix") @db.VarChar(20)
@@ -3007,6 +3055,14 @@ enum PayoutStatus {
3007
3055
  REVERSED
3008
3056
  }
3009
3057
 
3058
+ enum IciciPayoutStatus {
3059
+ INITIATED
3060
+ PENDING
3061
+ SUCCESS
3062
+ FAILED
3063
+ UNKNOWN
3064
+ }
3065
+
3010
3066
  enum bankanalysisStatus {
3011
3067
  PENDING
3012
3068
  PROCESSING