@factor-wise/prisma-schema 2.0.14 → 2.0.15
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 +1 -1
- package/prisma/schema.prisma +8 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -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
|
}
|
|
@@ -1541,6 +1542,8 @@ model Payout {
|
|
|
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
|