@factor-wise/prisma-schema 2.0.46 → 2.0.47

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.47",
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,6 +1226,7 @@ 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[]
@@ -1658,6 +1659,36 @@ model PayoutDowntime {
1658
1659
  @@index([method, bank])
1659
1660
  }
1660
1661
 
1662
+ model IciciPayout {
1663
+ id Int @id @default(autoincrement())
1664
+ amount BigInt
1665
+ status IciciPayoutStatus
1666
+ transRefNo String @unique
1667
+ bankRRN String?
1668
+ actCode String?
1669
+ checkStatus String?
1670
+ responseMsg String?
1671
+ payload Json?
1672
+ response Json?
1673
+ error Json?
1674
+ leadId Int @unique()
1675
+ leads leads @relation(fields: [leadId], references: [leadID])
1676
+
1677
+ isTerminal Boolean @default(false)
1678
+ createdAt DateTime @default(now())
1679
+ updatedAt DateTime @updatedAt
1680
+ IciciPayoutLog IciciPayoutLog[]
1681
+ }
1682
+
1683
+ model IciciPayoutLog {
1684
+ id Int @id @default(autoincrement())
1685
+ payoutId Int
1686
+ step String // REQUEST | RESPONSE | DECRYPTED | STATUS_CHECK | ERROR
1687
+ payload Json
1688
+ createdAt DateTime @default(now())
1689
+ payout IciciPayout @relation(fields: [payoutId], references: [id])
1690
+ }
1691
+
1661
1692
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
1662
1693
  model penny_drop {
1663
1694
  id Int
@@ -3007,6 +3038,14 @@ enum PayoutStatus {
3007
3038
  REVERSED
3008
3039
  }
3009
3040
 
3041
+ enum IciciPayoutStatus {
3042
+ INITIATED
3043
+ PENDING
3044
+ SUCCESS
3045
+ FAILED
3046
+ UNKNOWN
3047
+ }
3048
+
3010
3049
  enum bankanalysisStatus {
3011
3050
  PENDING
3012
3051
  PROCESSING