@factor-wise/prisma-schema 2.0.123 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factor-wise/prisma-schema",
3
- "version": "2.0.123",
3
+ "version": "2.0.125",
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",
@@ -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 @default(now())
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
 
@@ -3158,12 +3163,14 @@ model credit_improve_PayoutStatusHistory {
3158
3163
  payout credit_improve_payout @relation(fields: [payoutId], references: [id])
3159
3164
  }
3160
3165
 
3166
+
3161
3167
  model credit_improve_esign {
3162
3168
  id Int @id @default(autoincrement())
3163
3169
  customerID Int
3164
3170
  leadID Int @unique
3165
3171
  documentHash String?
3166
3172
  documentUrl String?
3173
+ signedDocumentUrl String?
3167
3174
  signatureData String? @db.LongText
3168
3175
  status String @default("PENDING")
3169
3176
  consentAccepted Boolean @default(false)
@@ -3733,6 +3740,7 @@ model customer_devices {
3733
3740
  deviceId String
3734
3741
  deviceType DeviceType
3735
3742
  deviceToken String? @unique
3743
+ endpointArn String? @unique
3736
3744
  deviceName String?
3737
3745
  appVersion String?
3738
3746
  osVersion String?