@factor-wise/prisma-schema 2.0.94 → 2.0.96
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 +36 -2
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -714,6 +714,7 @@ model customer {
|
|
|
714
714
|
sms customer_sms[]
|
|
715
715
|
contacts customer_contact[]
|
|
716
716
|
apps customer_app[]
|
|
717
|
+
credit_improve_customer credit_improve_customer?
|
|
717
718
|
|
|
718
719
|
|
|
719
720
|
|
|
@@ -1128,6 +1129,30 @@ model emandates {
|
|
|
1128
1129
|
emandate_charge emandate_charge[]
|
|
1129
1130
|
}
|
|
1130
1131
|
|
|
1132
|
+
|
|
1133
|
+
model Easebuzz_Mandate {
|
|
1134
|
+
|
|
1135
|
+
id Int @id @default(autoincrement()) @db.UnsignedInt
|
|
1136
|
+
transactionId String @unique
|
|
1137
|
+
leadID Int @unique
|
|
1138
|
+
requestId String?
|
|
1139
|
+
accessKey String?
|
|
1140
|
+
mandateId String?
|
|
1141
|
+
amount Decimal
|
|
1142
|
+
frequency String
|
|
1143
|
+
authMode String
|
|
1144
|
+
mandateType String
|
|
1145
|
+
status String
|
|
1146
|
+
htmlGenerated Boolean @default(false)
|
|
1147
|
+
webhookPayload Json?
|
|
1148
|
+
createdAt DateTime @default(now())
|
|
1149
|
+
updatedAt DateTime @updatedAt
|
|
1150
|
+
|
|
1151
|
+
lead leads? @relation(fields: [leadID], references: [leadID])
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1131
1156
|
model cibildata_archive {
|
|
1132
1157
|
id Int @id @default(autoincrement())
|
|
1133
1158
|
leadID Int
|
|
@@ -1335,6 +1360,7 @@ model leads {
|
|
|
1335
1360
|
balanceHistory balance_history[]
|
|
1336
1361
|
collectionFollowups collectionfollowup[]
|
|
1337
1362
|
Payout Payout?
|
|
1363
|
+
Easebuzz_Mandate Easebuzz_Mandate?
|
|
1338
1364
|
videokyc videokyc?
|
|
1339
1365
|
eagreement eagreement?
|
|
1340
1366
|
employmentHistory employment_history[]
|
|
@@ -2843,7 +2869,8 @@ model credforge_bre_log {
|
|
|
2843
2869
|
|
|
2844
2870
|
|
|
2845
2871
|
model credit_improve_customer {
|
|
2846
|
-
|
|
2872
|
+
ID Int @id @default(autoincrement())
|
|
2873
|
+
customerID Int @unique()
|
|
2847
2874
|
name String? @db.VarChar(100)
|
|
2848
2875
|
firstName String? @db.VarChar(100)
|
|
2849
2876
|
middlename String? @db.VarChar(100)
|
|
@@ -2870,10 +2897,12 @@ model credit_improve_customer {
|
|
|
2870
2897
|
digioToken String? @db.VarChar(100)
|
|
2871
2898
|
kyc_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2872
2899
|
is_onboarded Boolean @default(false)
|
|
2900
|
+
document Json?
|
|
2873
2901
|
last_login DateTime @default(now()) @db.Timestamp(0)
|
|
2874
2902
|
loanApplied Boolean @default(false)
|
|
2875
2903
|
permanent_address Json?
|
|
2876
2904
|
step String? @db.VarChar(255)
|
|
2905
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
2877
2906
|
|
|
2878
2907
|
|
|
2879
2908
|
creaditImproveLeads creadit_improve_leads[]
|
|
@@ -2906,8 +2935,13 @@ model creadit_improve_leads {
|
|
|
2906
2935
|
updatedAt DateTime @default(now()) @db.DateTime(0)
|
|
2907
2936
|
sanctionalloUID Int
|
|
2908
2937
|
loanType lead_loan_type @default(improve_credit)
|
|
2938
|
+
consentOtp String?
|
|
2939
|
+
consentVerify Boolean @default(false)
|
|
2940
|
+
consentAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2941
|
+
|
|
2942
|
+
|
|
2909
2943
|
|
|
2910
|
-
customer credit_improve_customer? @relation(fields: [customerID], references: [
|
|
2944
|
+
customer credit_improve_customer? @relation(fields: [customerID], references: [ID])
|
|
2911
2945
|
creditApprovals credit_improve_approval[] @relation("CreditImproveApprovalToLead")
|
|
2912
2946
|
creditImproveLoan credit_improve_loan?
|
|
2913
2947
|
creditImproveCollections credit_improve_collection[] @relation("CreditImproveCollectionToLead")
|