@factor-wise/prisma-schema 2.0.122 → 2.0.124

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.122",
3
+ "version": "2.0.124",
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",
@@ -2971,6 +2971,7 @@ model credit_improve_customer {
2971
2971
  step String? @db.VarChar(255)
2972
2972
  customer customer @relation(fields: [customerID], references: [customerID])
2973
2973
  creaditImproveLeads credit_improve_leads[]
2974
+ creditImproveEsigns credit_improve_esign[]
2974
2975
 
2975
2976
  @@index([mobile], map: "idx_customer_mobile")
2976
2977
  @@index([pancard], map: "idx_customer_pancard")
@@ -3012,6 +3013,7 @@ model credit_improve_leads {
3012
3013
  creditImproveLoan credit_improve_loan?
3013
3014
  creditImproveCollections credit_improve_collection[] @relation("CreditImproveCollectionToLead")
3014
3015
  creditImprovePayout credit_improve_payout?
3016
+ creditImproveEsigns credit_improve_esign?
3015
3017
 
3016
3018
  @@index([customerID], map: "idx_customerID")
3017
3019
  @@index([status], map: "idx_status")
@@ -3156,6 +3158,29 @@ model credit_improve_PayoutStatusHistory {
3156
3158
  payout credit_improve_payout @relation(fields: [payoutId], references: [id])
3157
3159
  }
3158
3160
 
3161
+
3162
+ model credit_improve_esign {
3163
+ id Int @id @default(autoincrement())
3164
+ customerID Int
3165
+ leadID Int @unique
3166
+ documentHash String?
3167
+ documentUrl String?
3168
+ signedDocumentUrl String?
3169
+ signatureData String? @db.LongText
3170
+ status String @default("PENDING")
3171
+ consentAccepted Boolean @default(false)
3172
+ createdAt DateTime @default(now())
3173
+ signedAt DateTime?
3174
+ updatedAt DateTime @updatedAt
3175
+ ipAddress String?
3176
+ userAgent String?
3177
+ leads credit_improve_leads @relation(fields: [leadID], references: [leadID])
3178
+ customer credit_improve_customer @relation(fields: [customerID], references: [ID])
3179
+
3180
+ @@index([customerID])
3181
+ @@index([leadID])
3182
+ }
3183
+
3159
3184
  enum usersgoogle_oauth_provider {
3160
3185
  google
3161
3186
  facebook
@@ -3710,6 +3735,7 @@ model customer_devices {
3710
3735
  deviceId String
3711
3736
  deviceType DeviceType
3712
3737
  deviceToken String? @unique
3738
+ endpointArn String? @unique
3713
3739
  deviceName String?
3714
3740
  appVersion String?
3715
3741
  osVersion String?