@factor-wise/prisma-schema 2.0.124 → 2.0.125
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 +7 -2
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -2658,7 +2658,7 @@ model cibildata {
|
|
|
2658
2658
|
model criffsoftpull {
|
|
2659
2659
|
id Int @id @default(autoincrement())
|
|
2660
2660
|
leadID Int? @unique
|
|
2661
|
-
customerID Int?
|
|
2661
|
+
customerID Int?
|
|
2662
2662
|
requestPayload Json
|
|
2663
2663
|
responsePayload Json?
|
|
2664
2664
|
status String @default("pending") @db.VarChar(50)
|
|
@@ -2670,6 +2670,8 @@ model criffsoftpull {
|
|
|
2670
2670
|
|
|
2671
2671
|
@@index([leadID])
|
|
2672
2672
|
@@index([status])
|
|
2673
|
+
@@index([customerID])
|
|
2674
|
+
@@index([customerID, leadID, createdAt], name: "idx_criffsoftpull_customer_lead_created")
|
|
2673
2675
|
}
|
|
2674
2676
|
|
|
2675
2677
|
model loan_sequence {
|
|
@@ -2924,12 +2926,15 @@ model credforge_bre_log {
|
|
|
2924
2926
|
responsePayload Json?
|
|
2925
2927
|
loanAmount Float?
|
|
2926
2928
|
status String?
|
|
2927
|
-
createdAt DateTime
|
|
2929
|
+
createdAt DateTime @default(now())
|
|
2928
2930
|
leads leads? @relation(fields: [leadID], references: [leadID])
|
|
2929
2931
|
customer customer? @relation(fields: [customerID], references: [customerID])
|
|
2930
2932
|
|
|
2931
2933
|
@@index([leadID])
|
|
2932
2934
|
@@index([status])
|
|
2935
|
+
@@index([customerID])
|
|
2936
|
+
@@index([customerID, workflowName, createdAt], name: "idx_bre_customer_workflow_created")
|
|
2937
|
+
|
|
2933
2938
|
}
|
|
2934
2939
|
|
|
2935
2940
|
|