@factor-wise/prisma-schema 2.0.121 → 2.0.123
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 +24 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -1407,6 +1407,7 @@ model leads {
|
|
|
1407
1407
|
bureau_consent Int @default(0)
|
|
1408
1408
|
emandatebypass Boolean? @default(false)
|
|
1409
1409
|
videoKycBypass Boolean? @default(false)
|
|
1410
|
+
isAudit Boolean? @default(false)
|
|
1410
1411
|
loanType lead_loan_type @default(Payday)
|
|
1411
1412
|
approvals approval[]
|
|
1412
1413
|
bankstatement bankstatement[]
|
|
@@ -2970,6 +2971,7 @@ model credit_improve_customer {
|
|
|
2970
2971
|
step String? @db.VarChar(255)
|
|
2971
2972
|
customer customer @relation(fields: [customerID], references: [customerID])
|
|
2972
2973
|
creaditImproveLeads credit_improve_leads[]
|
|
2974
|
+
creditImproveEsigns credit_improve_esign[]
|
|
2973
2975
|
|
|
2974
2976
|
@@index([mobile], map: "idx_customer_mobile")
|
|
2975
2977
|
@@index([pancard], map: "idx_customer_pancard")
|
|
@@ -3011,6 +3013,7 @@ model credit_improve_leads {
|
|
|
3011
3013
|
creditImproveLoan credit_improve_loan?
|
|
3012
3014
|
creditImproveCollections credit_improve_collection[] @relation("CreditImproveCollectionToLead")
|
|
3013
3015
|
creditImprovePayout credit_improve_payout?
|
|
3016
|
+
creditImproveEsigns credit_improve_esign?
|
|
3014
3017
|
|
|
3015
3018
|
@@index([customerID], map: "idx_customerID")
|
|
3016
3019
|
@@index([status], map: "idx_status")
|
|
@@ -3155,6 +3158,27 @@ model credit_improve_PayoutStatusHistory {
|
|
|
3155
3158
|
payout credit_improve_payout @relation(fields: [payoutId], references: [id])
|
|
3156
3159
|
}
|
|
3157
3160
|
|
|
3161
|
+
model credit_improve_esign {
|
|
3162
|
+
id Int @id @default(autoincrement())
|
|
3163
|
+
customerID Int
|
|
3164
|
+
leadID Int @unique
|
|
3165
|
+
documentHash String?
|
|
3166
|
+
documentUrl String?
|
|
3167
|
+
signatureData String? @db.LongText
|
|
3168
|
+
status String @default("PENDING")
|
|
3169
|
+
consentAccepted Boolean @default(false)
|
|
3170
|
+
createdAt DateTime @default(now())
|
|
3171
|
+
signedAt DateTime?
|
|
3172
|
+
updatedAt DateTime @updatedAt
|
|
3173
|
+
ipAddress String?
|
|
3174
|
+
userAgent String?
|
|
3175
|
+
leads credit_improve_leads @relation(fields: [leadID], references: [leadID])
|
|
3176
|
+
customer credit_improve_customer @relation(fields: [customerID], references: [ID])
|
|
3177
|
+
|
|
3178
|
+
@@index([customerID])
|
|
3179
|
+
@@index([leadID])
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3158
3182
|
enum usersgoogle_oauth_provider {
|
|
3159
3183
|
google
|
|
3160
3184
|
facebook
|