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