@factor-wise/prisma-schema 2.0.76 → 2.0.78
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 +17 -4
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -703,6 +703,9 @@ model customer {
|
|
|
703
703
|
face_comparison face_comparison[]
|
|
704
704
|
preoffer preoffer[]
|
|
705
705
|
customer_extended customer_extended?
|
|
706
|
+
criffsoftpull criffsoftpull[]
|
|
707
|
+
credforge_bre_log credforge_bre_log[]
|
|
708
|
+
|
|
706
709
|
|
|
707
710
|
|
|
708
711
|
@@index([firstName], map: "firstName")
|
|
@@ -1272,6 +1275,7 @@ model leads {
|
|
|
1272
1275
|
bureau_consent Int @default(0)
|
|
1273
1276
|
emandatebypass Boolean? @default(false)
|
|
1274
1277
|
videoKycBypass Boolean? @default(false)
|
|
1278
|
+
loanType lead_loan_type @default(Payday)
|
|
1275
1279
|
approvals approval[]
|
|
1276
1280
|
bankstatement bankstatement[]
|
|
1277
1281
|
callHistories callhistory[]
|
|
@@ -2465,7 +2469,8 @@ model cibildata {
|
|
|
2465
2469
|
|
|
2466
2470
|
model criffsoftpull{
|
|
2467
2471
|
id Int @id @default(autoincrement())
|
|
2468
|
-
leadID Int
|
|
2472
|
+
leadID Int? @unique
|
|
2473
|
+
customerID Int?
|
|
2469
2474
|
requestPayload Json
|
|
2470
2475
|
responsePayload Json?
|
|
2471
2476
|
status String @default("pending") @db.VarChar(50)
|
|
@@ -2473,7 +2478,8 @@ model criffsoftpull{
|
|
|
2473
2478
|
updatedAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2474
2479
|
|
|
2475
2480
|
|
|
2476
|
-
|
|
2481
|
+
lead leads? @relation(fields: [leadID], references: [leadID])
|
|
2482
|
+
customer customer? @relation(fields: [customerID], references: [customerID])
|
|
2477
2483
|
|
|
2478
2484
|
@@index([leadID])
|
|
2479
2485
|
@@index([status])
|
|
@@ -2722,14 +2728,16 @@ model criff_test {
|
|
|
2722
2728
|
|
|
2723
2729
|
model credforge_bre_log {
|
|
2724
2730
|
id Int @id @default(autoincrement())
|
|
2725
|
-
leadID Int
|
|
2731
|
+
leadID Int? @unique
|
|
2732
|
+
customerID Int?
|
|
2726
2733
|
workflowName String
|
|
2727
2734
|
requestPayload Json
|
|
2728
2735
|
responsePayload Json?
|
|
2729
2736
|
loanAmount Float?
|
|
2730
2737
|
status String?
|
|
2731
2738
|
createdAt DateTime @default(now())
|
|
2732
|
-
leads leads @relation(fields: [leadID], references: [leadID])
|
|
2739
|
+
leads leads? @relation(fields: [leadID], references: [leadID])
|
|
2740
|
+
customer customer? @relation(fields: [customerID], references: [customerID])
|
|
2733
2741
|
|
|
2734
2742
|
@@index([leadID])
|
|
2735
2743
|
@@index([status])
|
|
@@ -2890,6 +2898,11 @@ enum leads_status {
|
|
|
2890
2898
|
Bank_Update_Hold @map("Bank Update Hold")
|
|
2891
2899
|
}
|
|
2892
2900
|
|
|
2901
|
+
enum lead_loan_type {
|
|
2902
|
+
Payday
|
|
2903
|
+
improve_credit @map("Improve Credit")
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2893
2906
|
enum leads2_status {
|
|
2894
2907
|
Fresh_Lead @map("Fresh Lead")
|
|
2895
2908
|
Callback
|