@factor-wise/prisma-schema 2.0.50 → 2.0.51

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.50",
3
+ "version": "2.0.51",
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,12 +1226,12 @@ model leads {
1226
1226
  balanceHistory balance_history[]
1227
1227
  collectionFollowups collectionfollowup[]
1228
1228
  Payout Payout?
1229
- IciciPayout IciciPayout?
1230
1229
  videokyc videokyc?
1231
1230
  eagreement eagreement?
1232
1231
  employmentHistory employment_history[]
1233
1232
  profileInfo profile_info[]
1234
1233
  criffsoftpull criffsoftpull?
1234
+ icici_payout icici_payout[]
1235
1235
 
1236
1236
  @@index([customerID], map: "leadcustomerID")
1237
1237
  }
@@ -1660,34 +1660,49 @@ model PayoutDowntime {
1660
1660
  @@index([method, bank])
1661
1661
  }
1662
1662
 
1663
- model IciciPayout {
1663
+ model icici_payout {
1664
1664
  id Int @id @default(autoincrement())
1665
1665
  amount BigInt
1666
- status IciciPayoutStatus
1667
1666
  transRefNo String @unique
1668
1667
  bankRRN String?
1668
+ status iciciPayoutStatus
1669
1669
  actCode String?
1670
1670
  checkStatus String?
1671
1671
  responseMsg String?
1672
+ paymentRef String?
1673
+ checkAttempts Int @default(0)
1674
+ retryCount Int @default(0)
1675
+ nextCheckAt DateTime?
1676
+ lastCheckAt DateTime?
1677
+ expiresAt DateTime?
1678
+ isTerminal Boolean @default(false)
1679
+ isRetryable Boolean @default(false)
1680
+ needsStatusCheck Boolean @default(false)
1681
+ leadID Int
1682
+ lead leads @relation(fields: [leadID], references: [leadID])
1672
1683
  payload Json?
1673
1684
  response Json?
1674
1685
  error Json?
1675
- leadId Int @unique()
1676
- leads leads @relation(fields: [leadId], references: [leadID])
1677
-
1678
- isTerminal Boolean @default(false)
1679
1686
  createdAt DateTime @default(now())
1680
1687
  updatedAt DateTime @updatedAt
1681
- IciciPayoutLog IciciPayoutLog[]
1688
+ icici_Payoutlog icici_Payoutlog[]
1689
+
1690
+ @@index([status])
1691
+ @@index([nextCheckAt])
1692
+ @@index([transRefNo])
1693
+ @@index([paymentRef])
1682
1694
  }
1683
1695
 
1684
- model IciciPayoutLog {
1696
+ model icici_Payoutlog {
1685
1697
  id Int @id @default(autoincrement())
1686
1698
  payoutId Int
1687
- step String // REQUEST | RESPONSE | DECRYPTED | STATUS_CHECK | ERROR
1699
+ step String
1688
1700
  payload Json
1701
+ actCode String?
1702
+ message String?
1689
1703
  createdAt DateTime @default(now())
1690
- payout IciciPayout @relation(fields: [payoutId], references: [id])
1704
+ payout icici_payout @relation(fields: [payoutId], references: [id])
1705
+ @@index([payoutId])
1691
1706
  }
1692
1707
 
1693
1708
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
@@ -3056,12 +3071,10 @@ enum PayoutStatus {
3056
3071
  REVERSED
3057
3072
  }
3058
3073
 
3059
- enum IciciPayoutStatus {
3060
- INITIATED
3061
- PENDING
3074
+ enum iciciPayoutStatus {
3062
3075
  SUCCESS
3063
3076
  FAILED
3064
- UNKNOWN
3077
+ PENDING
3065
3078
  }
3066
3079
 
3067
3080
  enum bankanalysisStatus {