@factor-wise/prisma-schema 2.0.45 → 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.45",
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",
@@ -951,7 +951,8 @@ model employment_history {
951
951
  id Int @id @default(autoincrement())
952
952
  leadID Int
953
953
  customerID Int
954
- employmentData Json?
954
+ employmentData Json?
955
+ uan String?
955
956
  status String @default("pending") @db.VarChar(50)
956
957
  createdDate DateTime @default(now()) @db.DateTime(0)
957
958
  updated_at DateTime @updatedAt
@@ -1225,6 +1226,7 @@ model leads {
1225
1226
  balanceHistory balance_history[]
1226
1227
  collectionFollowups collectionfollowup[]
1227
1228
  Payout Payout?
1229
+ IciciPayout IciciPayout?
1228
1230
  videokyc videokyc?
1229
1231
  eagreement eagreement?
1230
1232
  employmentHistory employment_history[]
@@ -1657,6 +1659,36 @@ model PayoutDowntime {
1657
1659
  @@index([method, bank])
1658
1660
  }
1659
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
+
1660
1692
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
1661
1693
  model penny_drop {
1662
1694
  id Int
@@ -3006,6 +3038,14 @@ enum PayoutStatus {
3006
3038
  REVERSED
3007
3039
  }
3008
3040
 
3041
+ enum IciciPayoutStatus {
3042
+ INITIATED
3043
+ PENDING
3044
+ SUCCESS
3045
+ FAILED
3046
+ UNKNOWN
3047
+ }
3048
+
3009
3049
  enum bankanalysisStatus {
3010
3050
  PENDING
3011
3051
  PROCESSING