@factor-wise/prisma-schema 2.0.14 → 2.0.16

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.14",
3
+ "version": "2.0.16",
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",
@@ -1171,6 +1171,7 @@ model leads {
1171
1171
  sanctionUser lms_users @relation("SanctionAssignedUser", fields: [sanctionalloUID], references: [userID])
1172
1172
  balanceHistory balance_history[]
1173
1173
  collectionFollowups collectionfollowup[]
1174
+ Payout Payout?
1174
1175
 
1175
1176
  @@index([customerID], map: "leadcustomerID")
1176
1177
  }
@@ -1536,11 +1537,13 @@ model payout_accounts_log {
1536
1537
 
1537
1538
  model Payout {
1538
1539
  id Int @id @default(autoincrement())
1539
- razorpayPayoutId String @unique
1540
+ razorpayPayoutId String? @unique
1540
1541
  fundAccountId String
1541
1542
  amount BigInt
1542
1543
  status PayoutStatus
1543
1544
  performed_by Int?
1545
+ payload Json?
1546
+ response Json?
1544
1547
  narration String?
1545
1548
  referenceId String?
1546
1549
  failureReason String?
@@ -1549,6 +1552,8 @@ model Payout {
1549
1552
  statusSource String?
1550
1553
  createdAtRzp BigInt?
1551
1554
  isTerminal Boolean @default(false)
1555
+ leadId Int @unique()
1556
+ leads leads @relation(fields: [leadId], references: [leadID])
1552
1557
  loanId Int @unique()
1553
1558
  loan loan @relation(fields: [loanId], references: [id])
1554
1559
  createdAt DateTime? @default(now()) @db.Timestamp(0)
@@ -2683,8 +2688,11 @@ enum disbursement_requests_status {
2683
2688
  }
2684
2689
 
2685
2690
  enum PayoutStatus {
2691
+ APPROVAL_PENDING
2686
2692
  QUEUED
2687
2693
  PENDING
2694
+ INITIATED
2695
+ UPDATED
2688
2696
  PROCESSING
2689
2697
  PROCESSED
2690
2698
  FAILED