@regincap/prisma-schema 0.0.0-stage → 1.0.1
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/README.md +108 -2
- package/package.json +33 -4
- package/prisma/schema.prisma +4243 -0
|
@@ -0,0 +1,4243 @@
|
|
|
1
|
+
generator client {
|
|
2
|
+
provider = "prisma-client-js"
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
datasource db {
|
|
6
|
+
provider = "mysql"
|
|
7
|
+
url = env("DATABASE_URL")
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
model address {
|
|
11
|
+
addressID Int @id @default(autoincrement())
|
|
12
|
+
customerID Int?
|
|
13
|
+
type address_type?
|
|
14
|
+
address String?
|
|
15
|
+
city String?
|
|
16
|
+
state String?
|
|
17
|
+
pincode BigInt?
|
|
18
|
+
status address_status @default(Not_Verified)
|
|
19
|
+
verifiedBy Int @default(1)
|
|
20
|
+
createdDate DateTime @db.DateTime(0)
|
|
21
|
+
address2 String? @db.Text
|
|
22
|
+
landmark String? @db.Text
|
|
23
|
+
area String? @db.Text
|
|
24
|
+
region String? @db.Text
|
|
25
|
+
fetchedBy String?
|
|
26
|
+
kyc_current_add String? @db.Text
|
|
27
|
+
kyc_permanent_add String? @db.Text
|
|
28
|
+
customerappId Int?
|
|
29
|
+
customer customer? @relation(fields: [customerID], references: [customerID], map: "fk_address_customer")
|
|
30
|
+
customerapp customerapp? @relation(fields: [customerappId], references: [customerID], map: "fk_address_customerapp")
|
|
31
|
+
|
|
32
|
+
@@index([customerID], map: "addresscontactID")
|
|
33
|
+
@@index([customerappId], map: "fk_address_customerapp")
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
model alternative_contact {
|
|
37
|
+
referenceID Int @id @default(autoincrement())
|
|
38
|
+
customerID Int
|
|
39
|
+
leadID Int
|
|
40
|
+
contactNo String @db.VarChar(256)
|
|
41
|
+
contType String? @db.VarChar(256)
|
|
42
|
+
ctype String @db.VarChar(256)
|
|
43
|
+
createdBy Int @default(1)
|
|
44
|
+
status String? @db.VarChar(256)
|
|
45
|
+
createdDate DateTime? @default(now()) @db.DateTime(0)
|
|
46
|
+
|
|
47
|
+
@@index([customerID], map: "referencecontactID")
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
model api_req_res_logs {
|
|
51
|
+
id Int @id
|
|
52
|
+
customerID String? @db.VarChar(100)
|
|
53
|
+
mobile String? @db.VarChar(100)
|
|
54
|
+
api_request String? @db.Text
|
|
55
|
+
api_response String? @db.Text
|
|
56
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
57
|
+
status String? @db.VarChar(2)
|
|
58
|
+
message String? @db.Text
|
|
59
|
+
api_name String? @db.Text
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
63
|
+
model app_lead {
|
|
64
|
+
customerID Int @id
|
|
65
|
+
name String? @db.VarChar(100)
|
|
66
|
+
firstName String? @db.VarChar(100)
|
|
67
|
+
middlename String? @db.VarChar(100)
|
|
68
|
+
lastName String? @db.VarChar(100)
|
|
69
|
+
gender app_lead_gender @default(NA)
|
|
70
|
+
dob String? @db.Text
|
|
71
|
+
mobile BigInt?
|
|
72
|
+
email String? @db.VarChar(100)
|
|
73
|
+
pancard String? @db.VarChar(100)
|
|
74
|
+
aadharNo BigInt
|
|
75
|
+
password String?
|
|
76
|
+
marrital String? @db.VarChar(10)
|
|
77
|
+
profile String? @db.VarChar(100)
|
|
78
|
+
otp String? @default("") @db.VarChar(20)
|
|
79
|
+
isVerified Boolean @default(dbgenerated("b'0'")) @db.Bit(1)
|
|
80
|
+
employeeType String? @db.VarChar(216)
|
|
81
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
82
|
+
loanRequeried Float?
|
|
83
|
+
purposeloan String? @db.VarChar(256)
|
|
84
|
+
companyName String @db.VarChar(256)
|
|
85
|
+
companyAddress String? @db.VarChar(512)
|
|
86
|
+
monthlyIncome Float?
|
|
87
|
+
salaryMode String? @db.VarChar(216)
|
|
88
|
+
residenceType String? @db.VarChar(256)
|
|
89
|
+
residenceAddress String? @db.VarChar(512)
|
|
90
|
+
device String @default("apps") @db.VarChar(256)
|
|
91
|
+
uid String? @db.VarChar(256)
|
|
92
|
+
step String? @db.VarChar(256)
|
|
93
|
+
state String? @db.VarChar(256)
|
|
94
|
+
city String? @db.VarChar(256)
|
|
95
|
+
pincode String? @db.VarChar(256)
|
|
96
|
+
utmSource String? @db.VarChar(256)
|
|
97
|
+
status String? @db.VarChar(256)
|
|
98
|
+
lead_status Int @default(0)
|
|
99
|
+
new_form Int @default(0)
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
model app_track {
|
|
103
|
+
id Int @id
|
|
104
|
+
mobile String @db.VarChar(16)
|
|
105
|
+
type_page String @db.Text
|
|
106
|
+
stayDate DateTime @default(now()) @db.DateTime(0)
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
model appcallback {
|
|
110
|
+
id Int @id
|
|
111
|
+
customerID String @db.VarChar(256)
|
|
112
|
+
mobile String @db.VarChar(256)
|
|
113
|
+
name String @db.VarChar(256)
|
|
114
|
+
des String @db.MediumText
|
|
115
|
+
creadated_date DateTime @db.DateTime(0)
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
model appcustloanlog {
|
|
119
|
+
id Int @id
|
|
120
|
+
customerID String? @db.VarChar(216)
|
|
121
|
+
mobile String @default("") @db.VarChar(100)
|
|
122
|
+
name String? @db.VarChar(100)
|
|
123
|
+
conatctDetails String? @db.LongText
|
|
124
|
+
createddate DateTime? @default(now()) @db.DateTime(0)
|
|
125
|
+
type String @default("") @db.VarChar(512)
|
|
126
|
+
utmSource String? @db.VarChar(256)
|
|
127
|
+
IsRooted String @default("false") @db.VarChar(256)
|
|
128
|
+
|
|
129
|
+
@@index([mobile], map: "mobile")
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
model appcustloanlog1 {
|
|
133
|
+
id Int @id
|
|
134
|
+
customerID String @db.VarChar(216)
|
|
135
|
+
mobile String @db.VarChar(100)
|
|
136
|
+
name String? @db.VarChar(100)
|
|
137
|
+
conatctDetails String? @db.LongText
|
|
138
|
+
createddate DateTime @db.DateTime(0)
|
|
139
|
+
type String @db.VarChar(512)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
model appcustloanlog21 {
|
|
143
|
+
id Int @id
|
|
144
|
+
customerID String @db.VarChar(216)
|
|
145
|
+
mobile String @db.VarChar(100)
|
|
146
|
+
name String? @db.VarChar(100)
|
|
147
|
+
conatctDetails String? @db.LongText
|
|
148
|
+
createddate DateTime @db.DateTime(0)
|
|
149
|
+
type String @db.VarChar(512)
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
model appcustloanlog21042023 {
|
|
153
|
+
id Int @id
|
|
154
|
+
customerID String @db.VarChar(216)
|
|
155
|
+
mobile String @db.VarChar(100)
|
|
156
|
+
name String? @db.VarChar(100)
|
|
157
|
+
conatctDetails String? @db.LongText
|
|
158
|
+
createddate DateTime @db.DateTime(0)
|
|
159
|
+
type String @db.VarChar(512)
|
|
160
|
+
|
|
161
|
+
@@index([mobile], map: "mobile")
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
model appcustloanlog23 {
|
|
165
|
+
id Int @id
|
|
166
|
+
customerID String? @db.VarChar(216)
|
|
167
|
+
mobile String @default("") @db.VarChar(100)
|
|
168
|
+
name String? @db.VarChar(100)
|
|
169
|
+
conatctDetails String? @db.LongText
|
|
170
|
+
createddate DateTime @default(dbgenerated("'0000-00-00 00:00:00'")) @db.DateTime(0)
|
|
171
|
+
type String @default("") @db.VarChar(512)
|
|
172
|
+
utmSource String? @db.VarChar(256)
|
|
173
|
+
IsRooted String @default("false") @db.VarChar(256)
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
model appcustlocation {
|
|
177
|
+
locID Int @id
|
|
178
|
+
customerID String @db.VarChar(216)
|
|
179
|
+
name String? @db.VarChar(216)
|
|
180
|
+
mobile String? @db.VarChar(216)
|
|
181
|
+
longitude String @db.VarChar(216)
|
|
182
|
+
latitude String? @db.VarChar(216)
|
|
183
|
+
completeAddress String @db.LongText
|
|
184
|
+
conatctDetails String? @db.LongText
|
|
185
|
+
createddate DateTime @default(now()) @db.DateTime(0)
|
|
186
|
+
app_deviceID String? @db.LongText
|
|
187
|
+
utmSource String? @db.VarChar(256)
|
|
188
|
+
IsRooted String @default("false") @db.VarChar(256)
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
model appid_login {
|
|
192
|
+
id Int @id
|
|
193
|
+
customerID String @db.VarChar(256)
|
|
194
|
+
mobile String @db.VarChar(256)
|
|
195
|
+
appID String @db.VarChar(512)
|
|
196
|
+
credatedDate DateTime @db.DateTime(0)
|
|
197
|
+
imei String @db.VarChar(256)
|
|
198
|
+
access_token String?
|
|
199
|
+
last_login DateTime @db.DateTime(0)
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
model appreqdoc {
|
|
203
|
+
vid Int @id
|
|
204
|
+
customerID String @db.VarChar(216)
|
|
205
|
+
leadID String @db.VarChar(216)
|
|
206
|
+
docname String @db.VarChar(215)
|
|
207
|
+
vSize String @db.VarChar(216)
|
|
208
|
+
viFile String @db.VarChar(216)
|
|
209
|
+
vUrl String @db.VarChar(216)
|
|
210
|
+
credated_date String @db.VarChar(216)
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
model approval {
|
|
214
|
+
approvalID Int @id @default(autoincrement())
|
|
215
|
+
customerID Int?
|
|
216
|
+
leadID Int
|
|
217
|
+
loanType Int @default(0)
|
|
218
|
+
productType String?
|
|
219
|
+
branch String
|
|
220
|
+
loanAmtApproved Float @default(0)
|
|
221
|
+
tenure Int
|
|
222
|
+
roi Float
|
|
223
|
+
repayDate DateTime @db.Date
|
|
224
|
+
adminFee Float
|
|
225
|
+
plateFormFee Float? @default(0)
|
|
226
|
+
convinineceFee Float? @default(0)
|
|
227
|
+
creditRiskAnalisys Float? @default(0)
|
|
228
|
+
GstOfAdminFee Float? @default(0)
|
|
229
|
+
alternateMobile String @db.VarChar(20)
|
|
230
|
+
officialEmail String @db.VarChar(100)
|
|
231
|
+
monthlyIncome Float @default(0)
|
|
232
|
+
cibil Int
|
|
233
|
+
activeLoans Int @default(0)
|
|
234
|
+
activePL Int @default(0)
|
|
235
|
+
activeHL Int @default(0)
|
|
236
|
+
activeCC Int @default(0)
|
|
237
|
+
activePaydayLoan Int @default(0)
|
|
238
|
+
outstandingAmount Float @default(0)
|
|
239
|
+
monthlyObligation Float @default(0)
|
|
240
|
+
status approval_status
|
|
241
|
+
formNo String?
|
|
242
|
+
employed String?
|
|
243
|
+
remark String?
|
|
244
|
+
loanRequirePurpose String?
|
|
245
|
+
creditedBy Int?
|
|
246
|
+
rejectionReason String?
|
|
247
|
+
documentr String? @db.VarChar(512)
|
|
248
|
+
redFlag String?
|
|
249
|
+
approvedDate DateTime? @db.Date
|
|
250
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
251
|
+
updatedAt DateTime @default(now()) @db.DateTime(0)
|
|
252
|
+
sanctionalloUID Int?
|
|
253
|
+
customerApproval approval_customerApproval @default(ZERO)
|
|
254
|
+
employmentType String? @db.VarChar(50)
|
|
255
|
+
disbursalaccountid Int?
|
|
256
|
+
disbursalAccount customeraccount? @relation(fields: [disbursalaccountid], references: [accountID])
|
|
257
|
+
creditedUser lms_users? @relation("ApprovalCreditedByUser", fields: [creditedBy], references: [userID], map: "approval_creditedBy_fkey")
|
|
258
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
259
|
+
sanctionUser lms_users? @relation("ApprovalSanctionByUser", fields: [sanctionalloUID], references: [userID], map: "approval_sanctionBy_fkey")
|
|
260
|
+
|
|
261
|
+
@@index([leadID], map: "approval_leadID_fkey")
|
|
262
|
+
@@index([creditedBy], map: "approval_creditedBy_lms_fkey")
|
|
263
|
+
@@index([sanctionalloUID], map: "approval_sanctionBy_lms_fkey")
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
model appvedio {
|
|
267
|
+
vid Int @id
|
|
268
|
+
customerID String @db.VarChar(216)
|
|
269
|
+
leadID String @db.VarChar(216)
|
|
270
|
+
vSize String @db.VarChar(216)
|
|
271
|
+
viFile String @db.VarChar(216)
|
|
272
|
+
vUrl String @db.VarChar(216)
|
|
273
|
+
credated_date String @db.VarChar(216)
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
model AutoDebitLog {
|
|
277
|
+
id Int @id @default(autoincrement())
|
|
278
|
+
customerID Int
|
|
279
|
+
leadID Int
|
|
280
|
+
loanNo String? @db.VarChar(64)
|
|
281
|
+
repayDate DateTime @db.Date
|
|
282
|
+
attemptNo Int
|
|
283
|
+
slot String @db.VarChar(32)
|
|
284
|
+
amount Decimal @db.Decimal(15, 2)
|
|
285
|
+
status String @db.VarChar(32)
|
|
286
|
+
transactionId String? @db.VarChar(100)
|
|
287
|
+
mandateId String? @db.VarChar(100)
|
|
288
|
+
idempotencyKey String? @db.VarChar(191)
|
|
289
|
+
requestPayload Json?
|
|
290
|
+
responsePayload Json?
|
|
291
|
+
errorMessage String? @db.Text
|
|
292
|
+
createdAt DateTime @default(now()) @db.DateTime(0)
|
|
293
|
+
updatedAt DateTime @default(now()) @db.Timestamp(0)
|
|
294
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
295
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
296
|
+
|
|
297
|
+
@@index([customerID], map: "idx_auto_debit_customer")
|
|
298
|
+
@@index([leadID, repayDate], map: "idx_auto_debit_lead_date")
|
|
299
|
+
@@index([transactionId], map: "idx_auto_debit_txn")
|
|
300
|
+
@@map("auto_debit_log")
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
model balance_history {
|
|
304
|
+
id Int @id @default(autoincrement())
|
|
305
|
+
leadID Int
|
|
306
|
+
customerID Int
|
|
307
|
+
balance_date DateTime? @default(now()) @db.Timestamp(0)
|
|
308
|
+
consentId String?
|
|
309
|
+
txnId String?
|
|
310
|
+
responsePayload Json?
|
|
311
|
+
createdAt DateTime? @default(now()) @db.Timestamp(0)
|
|
312
|
+
updatedAt DateTime? @default(now()) @db.Timestamp(0)
|
|
313
|
+
|
|
314
|
+
lead leads @relation(fields: [leadID], references: [leadID], onDelete: Cascade)
|
|
315
|
+
|
|
316
|
+
@@index([leadID])
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
model bank_ifsc {
|
|
320
|
+
id Int @id
|
|
321
|
+
BANK String? @db.VarChar(57)
|
|
322
|
+
IFSC String? @db.VarChar(11)
|
|
323
|
+
BRANCH String? @db.VarChar(87)
|
|
324
|
+
CENTRE String? @db.VarChar(48)
|
|
325
|
+
DISTRICT String? @db.VarChar(48)
|
|
326
|
+
STATE String? @db.VarChar(40)
|
|
327
|
+
ADDRESS String? @db.VarChar(208)
|
|
328
|
+
CONTACT String? @db.VarChar(21)
|
|
329
|
+
IMPS String? @db.VarChar(5)
|
|
330
|
+
RTGS String? @db.VarChar(5)
|
|
331
|
+
CITY String? @db.VarChar(48)
|
|
332
|
+
ISO3166 String? @db.VarChar(7)
|
|
333
|
+
NEFT String? @db.VarChar(5)
|
|
334
|
+
MICR String? @db.VarChar(9)
|
|
335
|
+
UPI String? @db.VarChar(5)
|
|
336
|
+
SWIFT String
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
340
|
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
341
|
+
model banks {
|
|
342
|
+
bank_id BigInt
|
|
343
|
+
bank String
|
|
344
|
+
ifsc String
|
|
345
|
+
branch String
|
|
346
|
+
address String
|
|
347
|
+
contact BigInt
|
|
348
|
+
city String
|
|
349
|
+
district String
|
|
350
|
+
state String
|
|
351
|
+
status banks_status @default(ONE)
|
|
352
|
+
|
|
353
|
+
@@ignore
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
model blacklistcustomer {
|
|
357
|
+
id Int @id
|
|
358
|
+
email String @unique(map: "email")
|
|
359
|
+
mobile String @unique(map: "mobile")
|
|
360
|
+
credated_date DateTime @default(now()) @db.Timestamp(0)
|
|
361
|
+
uid String @db.VarChar(216)
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
model blacklistcustomerleadlog {
|
|
365
|
+
customerID Int @id
|
|
366
|
+
name String? @db.VarChar(100)
|
|
367
|
+
firstName String? @db.VarChar(100)
|
|
368
|
+
middlename String? @db.VarChar(100)
|
|
369
|
+
lastName String? @db.VarChar(100)
|
|
370
|
+
gender blacklistcustomerleadlog_gender @default(NA)
|
|
371
|
+
dob DateTime @db.Date
|
|
372
|
+
mobile BigInt
|
|
373
|
+
email String @db.VarChar(100)
|
|
374
|
+
pancard String? @db.VarChar(100)
|
|
375
|
+
aadharNo BigInt
|
|
376
|
+
employeeType blacklistcustomerleadlog_employeeType
|
|
377
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
378
|
+
loanRequeried Float
|
|
379
|
+
companyName String @db.VarChar(256)
|
|
380
|
+
monthlyIncome Float
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
model branch {
|
|
384
|
+
branch_id Int @id
|
|
385
|
+
branch String
|
|
386
|
+
code String
|
|
387
|
+
status Boolean @default(dbgenerated("b'0'")) @db.Bit(1)
|
|
388
|
+
state String
|
|
389
|
+
created_on DateTime @default(now()) @db.DateTime(0)
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
model bulk_emandate {
|
|
393
|
+
id Int @id
|
|
394
|
+
leadID Int
|
|
395
|
+
add_uid Int
|
|
396
|
+
bulk_uid Int
|
|
397
|
+
add_date DateTime @default(now()) @db.DateTime(0)
|
|
398
|
+
bulk_date DateTime @default(now()) @db.DateTime(0)
|
|
399
|
+
status Int @default(0)
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
model callhistory {
|
|
403
|
+
callHistoryID Int @id @default(autoincrement())
|
|
404
|
+
customerID Int
|
|
405
|
+
leadID Int
|
|
406
|
+
callType String
|
|
407
|
+
status String
|
|
408
|
+
noteli String @db.VarChar(512)
|
|
409
|
+
remark String
|
|
410
|
+
callbackTime DateTime? @db.Date
|
|
411
|
+
calledBy Int
|
|
412
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
413
|
+
calledByUser lms_users @relation(fields: [calledBy], references: [userID])
|
|
414
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
415
|
+
|
|
416
|
+
@@index([calledBy], map: "callhistory_calledBy_fkey")
|
|
417
|
+
@@index([leadID], map: "callhistory_leadID_fkey")
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
model callhistoryapp {
|
|
421
|
+
callHistoryID Int @id @default(autoincrement())
|
|
422
|
+
customerID Int
|
|
423
|
+
uid String @db.VarChar(256)
|
|
424
|
+
mobile String @db.VarChar(16)
|
|
425
|
+
callType String
|
|
426
|
+
status String
|
|
427
|
+
noteli String @db.VarChar(512)
|
|
428
|
+
remark String
|
|
429
|
+
callbackTime DateTime? @db.Date
|
|
430
|
+
calledBy Int
|
|
431
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
model callhistorylogs {
|
|
435
|
+
callHistoryID Int @id @default(autoincrement())
|
|
436
|
+
customerID Int
|
|
437
|
+
leadID Int
|
|
438
|
+
callType String
|
|
439
|
+
status String
|
|
440
|
+
appAmount String? @db.VarChar(216)
|
|
441
|
+
noteli String @db.VarChar(512)
|
|
442
|
+
remark String
|
|
443
|
+
callbackTime DateTime? @db.Date
|
|
444
|
+
calledBy Int?
|
|
445
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
446
|
+
calledByUser lms_users? @relation(fields: [calledBy], references: [userID])
|
|
447
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
448
|
+
|
|
449
|
+
@@index([calledBy], map: "callhistorylogs_calledBy_fkey")
|
|
450
|
+
@@index([leadID], map: "callhistorylogs_leadID_fkey")
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
model credit_remarks {
|
|
454
|
+
id Int @id @default(autoincrement())
|
|
455
|
+
leadID Int
|
|
456
|
+
userID Int
|
|
457
|
+
remark String @db.VarChar(1000)
|
|
458
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
459
|
+
|
|
460
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
461
|
+
user lms_users @relation(fields: [userID], references: [userID])
|
|
462
|
+
|
|
463
|
+
@@index([leadID], map: "credit_remarks_leadID_fkey")
|
|
464
|
+
@@index([userID], map: "credit_remarks_userID_fkey")
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
model cashfree_emcharge {
|
|
468
|
+
id Int @id
|
|
469
|
+
cfmID String @db.VarChar(256)
|
|
470
|
+
leadID String @db.VarChar(256)
|
|
471
|
+
customerID String @db.VarChar(256)
|
|
472
|
+
paymentId String @db.VarChar(256)
|
|
473
|
+
cfOrderId String @db.VarChar(256)
|
|
474
|
+
referenceId String @db.VarChar(256)
|
|
475
|
+
subReferenceId String @db.VarChar(256)
|
|
476
|
+
currency String @db.VarChar(256)
|
|
477
|
+
amount Float @default(0)
|
|
478
|
+
cycle String @db.VarChar(256)
|
|
479
|
+
status String @db.VarChar(256)
|
|
480
|
+
addedOn DateTime @db.DateTime(0)
|
|
481
|
+
retryAttempts String @db.VarChar(256)
|
|
482
|
+
remarks String @db.VarChar(256)
|
|
483
|
+
failureReason String @db.VarChar(256)
|
|
484
|
+
scheduledOn DateTime @db.Date
|
|
485
|
+
initiatedOn DateTime @db.Date
|
|
486
|
+
merchantTxnId String @db.VarChar(256)
|
|
487
|
+
updatedDate DateTime @db.DateTime(0)
|
|
488
|
+
uid String @db.VarChar(256)
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
model cashfree_mandate {
|
|
492
|
+
cfmID Int @id
|
|
493
|
+
leadID Int
|
|
494
|
+
customerID Int
|
|
495
|
+
PlanID String @db.VarChar(50)
|
|
496
|
+
subscriptionId String?
|
|
497
|
+
authLink String?
|
|
498
|
+
subReferenceId String?
|
|
499
|
+
subStatus String?
|
|
500
|
+
mode String?
|
|
501
|
+
status String?
|
|
502
|
+
firstChargeDate DateTime? @db.Date
|
|
503
|
+
bankAccountNumber String?
|
|
504
|
+
bankAccountHolder String?
|
|
505
|
+
umrn String?
|
|
506
|
+
createddate DateTime @db.DateTime(0)
|
|
507
|
+
accountNo String? @db.VarChar(256)
|
|
508
|
+
accountType String? @db.VarChar(256)
|
|
509
|
+
ifsc String? @db.VarChar(256)
|
|
510
|
+
api_response String? @db.LongText
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
model cibil_test_data {
|
|
514
|
+
id Int @id
|
|
515
|
+
Name1 String @db.Text
|
|
516
|
+
Name2 String? @db.Text
|
|
517
|
+
Gender String? @db.Text
|
|
518
|
+
DOB String? @db.Text
|
|
519
|
+
Telephone String? @db.Text
|
|
520
|
+
ID_Type String? @db.Text
|
|
521
|
+
pancard String? @db.Text
|
|
522
|
+
Add_line1 String? @db.Text
|
|
523
|
+
City String? @db.Text
|
|
524
|
+
State_code String? @db.Text
|
|
525
|
+
PIN_Code String? @db.Text
|
|
526
|
+
api_response String? @db.Text
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
model cities {
|
|
530
|
+
cityID Int @id @default(autoincrement())
|
|
531
|
+
stateID Int
|
|
532
|
+
cityName String @db.VarChar(255)
|
|
533
|
+
status String @default("0") @db.VarChar(16)
|
|
534
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
535
|
+
|
|
536
|
+
@@index([stateID], map: "citystateID")
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
model collection {
|
|
540
|
+
collectionID Int @id @default(autoincrement())
|
|
541
|
+
customerID String? @db.VarChar(50)
|
|
542
|
+
leadID Int
|
|
543
|
+
loanNo String
|
|
544
|
+
collectedAmount Float
|
|
545
|
+
penaltyAmount Float?
|
|
546
|
+
collectedMode collection_collectedMode @default(NA)
|
|
547
|
+
collectedDate DateTime @db.Date
|
|
548
|
+
referenceNo String
|
|
549
|
+
discountAmount Float @default(0)
|
|
550
|
+
settlemenAmount Float @default(0)
|
|
551
|
+
status collection_status
|
|
552
|
+
remark String
|
|
553
|
+
collectedBy Int
|
|
554
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
555
|
+
collectionStatus String @default("Approved") @db.VarChar(216)
|
|
556
|
+
collectionStatusby Int?
|
|
557
|
+
approvedDate DateTime? @db.DateTime(0)
|
|
558
|
+
orderID String @default("no") @db.VarChar(216)
|
|
559
|
+
excess_amount String? @db.Text
|
|
560
|
+
discount_waiver String? @db.Text
|
|
561
|
+
discount_waiver_amount Float?
|
|
562
|
+
refund_utr_no String? @db.VarChar(256)
|
|
563
|
+
s3key String?
|
|
564
|
+
collectedByUser lms_users @relation("CollectionCollectedByUser", fields: [collectedBy], references: [userID])
|
|
565
|
+
statusUpdatedByUser lms_users? @relation("CollectionStatusUpdatedByUser", fields: [collectionStatusby], references: [userID])
|
|
566
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
567
|
+
|
|
568
|
+
@@index([leadID], map: "leadID")
|
|
569
|
+
@@index([collectedBy])
|
|
570
|
+
@@index([collectionStatusby])
|
|
571
|
+
@@index([collectionStatus, status], map: "idx_collection_status")
|
|
572
|
+
@@index([collectedDate], map: "idx_collection_date")
|
|
573
|
+
@@index([createdDate], map: "idx_collection_created")
|
|
574
|
+
@@index([collectionStatus, status, collectedDate], map: "idx_collection_export")
|
|
575
|
+
@@index([leadID, collectedDate], map: "idx_collection_lead_date")
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
579
|
+
model collectionfollowup {
|
|
580
|
+
reviewID Int @id @default(autoincrement())
|
|
581
|
+
customerID Int
|
|
582
|
+
leadID Int
|
|
583
|
+
loanNo String @db.VarChar(50)
|
|
584
|
+
followType String @db.VarChar(216)
|
|
585
|
+
StatusType String @db.VarChar(256)
|
|
586
|
+
statusTypeDate String? @db.Text
|
|
587
|
+
remark String @db.Text
|
|
588
|
+
createdBy Int
|
|
589
|
+
createdDate DateTime @default(now()) @db.Timestamp(0)
|
|
590
|
+
followup_type Int @default(0)
|
|
591
|
+
reason String? @db.Text
|
|
592
|
+
s3key String?
|
|
593
|
+
|
|
594
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
595
|
+
|
|
596
|
+
@@index([leadID])
|
|
597
|
+
@@index([loanNo])
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
model collectionrefund {
|
|
601
|
+
refID Int @id
|
|
602
|
+
collectionID String @db.VarChar(256)
|
|
603
|
+
leadID String @db.VarChar(256)
|
|
604
|
+
refundAmount Float @db.Float
|
|
605
|
+
refundDate DateTime @db.Date
|
|
606
|
+
utrNo String @db.VarChar(256)
|
|
607
|
+
changeStatus String @db.VarChar(256)
|
|
608
|
+
uid String @db.VarChar(256)
|
|
609
|
+
remark String @db.VarChar(256)
|
|
610
|
+
refundApproved String @db.VarChar(256)
|
|
611
|
+
refundApprovedDate DateTime @db.DateTime(0)
|
|
612
|
+
credatedDate DateTime @db.DateTime(0)
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
model company_payout_accounts {
|
|
616
|
+
id Int @id
|
|
617
|
+
name String @default("") @db.VarChar(64)
|
|
618
|
+
account_number String @default("") @db.VarChar(28)
|
|
619
|
+
selected company_payout_accounts_selected @default(ZERO)
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
model complaint {
|
|
623
|
+
id Int @id
|
|
624
|
+
complaintid Int
|
|
625
|
+
name String
|
|
626
|
+
email String
|
|
627
|
+
mobile String @db.VarChar(100)
|
|
628
|
+
complaint_type String
|
|
629
|
+
complaint_detail String?
|
|
630
|
+
additional_comment String?
|
|
631
|
+
follow_up_preference String?
|
|
632
|
+
supporting_document String?
|
|
633
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
634
|
+
status String?
|
|
635
|
+
revert String?
|
|
636
|
+
assigned_to String
|
|
637
|
+
assigned_by String
|
|
638
|
+
date_of_assigning String
|
|
639
|
+
date_of_revert String
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
model contactus {
|
|
643
|
+
contactId Int @id
|
|
644
|
+
name String
|
|
645
|
+
phone String
|
|
646
|
+
email String
|
|
647
|
+
message String @db.Text
|
|
648
|
+
status contactus_status
|
|
649
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
650
|
+
subject String? @db.VarChar(150)
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
model convoque_call_logs {
|
|
654
|
+
id Int @id
|
|
655
|
+
lead_id Int? @default(0)
|
|
656
|
+
mobile_no String?
|
|
657
|
+
user_id Int @default(0)
|
|
658
|
+
api_type String? @db.Text
|
|
659
|
+
api_trace_id String? @db.Text
|
|
660
|
+
api_message String? @db.Text
|
|
661
|
+
api_status String? @db.Text
|
|
662
|
+
api_response String? @db.LongText
|
|
663
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
664
|
+
status Int @default(0)
|
|
665
|
+
src String? @db.Text
|
|
666
|
+
customer_no String? @db.Text
|
|
667
|
+
call_start_time String? @db.Text
|
|
668
|
+
call_end_time String? @db.Text
|
|
669
|
+
agent_ring_time String? @db.Text
|
|
670
|
+
agent_talk_time String? @db.Text
|
|
671
|
+
call_status String? @db.Text
|
|
672
|
+
hangup_cause String? @db.Text
|
|
673
|
+
hangup_text String? @db.Text
|
|
674
|
+
unique_id String? @db.Text
|
|
675
|
+
callback_created_at String? @db.Text
|
|
676
|
+
|
|
677
|
+
@@index([lead_id], map: "lead_id")
|
|
678
|
+
@@index([mobile_no], map: "mobile_no")
|
|
679
|
+
@@index([user_id], map: "user_id")
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
model customer {
|
|
683
|
+
customerID Int @id @default(autoincrement())
|
|
684
|
+
name String? @db.VarChar(100)
|
|
685
|
+
firstName String? @db.VarChar(100)
|
|
686
|
+
middlename String? @db.VarChar(100)
|
|
687
|
+
lastName String? @db.VarChar(100)
|
|
688
|
+
fatherName String? @db.VarChar(100)
|
|
689
|
+
gender customer_gender? @default(NA)
|
|
690
|
+
dob DateTime? @db.Date
|
|
691
|
+
mobile BigInt
|
|
692
|
+
email String? @db.VarChar(100)
|
|
693
|
+
pancard String? @db.VarChar(100)
|
|
694
|
+
aadharNo BigInt?
|
|
695
|
+
password String @default("") @db.VarChar(20)
|
|
696
|
+
marrital String? @db.VarChar(10)
|
|
697
|
+
profile String? @db.VarChar(100)
|
|
698
|
+
otp String? @default("") @db.VarChar(20)
|
|
699
|
+
emailOtp String? @db.VarChar(10)
|
|
700
|
+
emailVerify Boolean? @default(false)
|
|
701
|
+
refreshToken String? @db.VarChar(100)
|
|
702
|
+
isVerified Boolean @default(dbgenerated("b'0'")) @db.Bit(1)
|
|
703
|
+
employeeType customer_employeeType?
|
|
704
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
705
|
+
industry String? @db.Text
|
|
706
|
+
designation String? @db.Text
|
|
707
|
+
working_since String? @db.Text
|
|
708
|
+
salary_date String? @db.Text
|
|
709
|
+
official_email String? @db.Text
|
|
710
|
+
education String? @db.Text
|
|
711
|
+
pan_cust_verified Int @default(0)
|
|
712
|
+
dob_digit_match customer_dob_digit_match?
|
|
713
|
+
razorpay_cust_id String? @db.VarChar(100)
|
|
714
|
+
reloaneligible customer_reloaneligible? @default(Approve)
|
|
715
|
+
reloanremark String? @db.VarChar(255)
|
|
716
|
+
fraudcheck Boolean? @default(false)
|
|
717
|
+
updatedAt DateTime? @default(now()) @updatedAt @db.Timestamp(0)
|
|
718
|
+
customerappId Int?
|
|
719
|
+
isBlocked Boolean @default(false)
|
|
720
|
+
utmSource String? @db.VarChar(256)
|
|
721
|
+
utmMedium String? @db.VarChar(256)
|
|
722
|
+
utmCampaign String? @db.VarChar(256)
|
|
723
|
+
alternateMobile String? @db.VarChar(50)
|
|
724
|
+
current_address Json?
|
|
725
|
+
digioKid String?
|
|
726
|
+
digioToken String? @db.VarChar(100)
|
|
727
|
+
digioMobileNumber String?
|
|
728
|
+
kyc_at DateTime? @default(now()) @db.Timestamp(0)
|
|
729
|
+
is_onboarded Boolean @default(false)
|
|
730
|
+
last_login DateTime? @default(now()) @db.Timestamp(0)
|
|
731
|
+
loanApplied Boolean @default(false)
|
|
732
|
+
permanent_address Json?
|
|
733
|
+
presalesassign Int?
|
|
734
|
+
companyName String? @db.Text
|
|
735
|
+
step String? @db.VarChar(255)
|
|
736
|
+
razorpay_contact_id String? @db.VarChar(100)
|
|
737
|
+
autoDebit Boolean @default(false)
|
|
738
|
+
addresses address[]
|
|
739
|
+
bankstatement bankstatement[]
|
|
740
|
+
customerapp customerapp? @relation(fields: [customerappId], references: [customerID], map: "fk_customer_customerapp")
|
|
741
|
+
accounts customeraccount[]
|
|
742
|
+
document document[]
|
|
743
|
+
employer employer[]
|
|
744
|
+
leads leads[]
|
|
745
|
+
reference reference[]
|
|
746
|
+
reloan_status reloan_status[]
|
|
747
|
+
reminders reminders[]
|
|
748
|
+
aiAgentCallLogs AIAgentCallLog[]
|
|
749
|
+
employmentHistory employment_history[]
|
|
750
|
+
profileInfo profile_info[]
|
|
751
|
+
finb_logs finb_logs[]
|
|
752
|
+
face_comparison face_comparison[]
|
|
753
|
+
preoffer preoffer[]
|
|
754
|
+
customer_extended customer_extended?
|
|
755
|
+
criffsoftpull criffsoftpull[]
|
|
756
|
+
credforge_bre_log credforge_bre_log[]
|
|
757
|
+
sms customer_sms[]
|
|
758
|
+
contacts customer_contact[]
|
|
759
|
+
apps customer_app[]
|
|
760
|
+
smartping_call_log smartping_call_log[]
|
|
761
|
+
credit_improve_customer credit_improve_customer?
|
|
762
|
+
customerDevices customer_devices[]
|
|
763
|
+
notifications customer_notifications[]
|
|
764
|
+
aiCallLogs ai_call_logs[]
|
|
765
|
+
customerLocations customer_locations[]
|
|
766
|
+
customerCampaignAttributions customer_campaign_attribution[]
|
|
767
|
+
hyperverge_verification hyperverge_verification?
|
|
768
|
+
AutoDebitLog AutoDebitLog[]
|
|
769
|
+
presalesUser lms_users? @relation("CustomerPresalesAssign",fields: [presalesassign],references: [userID],onDelete: SetNull,onUpdate: Cascade)
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
@@index([mobile], map: "idx_customer_mobile")
|
|
773
|
+
@@index([email], map: "idx_customer_email")
|
|
774
|
+
@@index([pancard], map: "idx_customer_pancard")
|
|
775
|
+
@@index([aadharNo], map: "idx_customer_aadhar")
|
|
776
|
+
@@index([createdDate], map: "idx_customer_createdDate")
|
|
777
|
+
@@index([updatedAt], map: "idx_customer_updatedAt")
|
|
778
|
+
@@index([last_login], map: "idx_customer_lastLogin")
|
|
779
|
+
@@index([isVerified], map: "idx_customer_isVerified")
|
|
780
|
+
@@index([isBlocked], map: "idx_customer_isBlocked")
|
|
781
|
+
@@index([loanApplied], map: "idx_customer_loanApplied")
|
|
782
|
+
@@index([utmSource], map: "idx_customer_utmSource")
|
|
783
|
+
@@index([employeeType], map: "idx_customer_employeeType")
|
|
784
|
+
@@index([reloaneligible], map: "idx_customer_reloan")
|
|
785
|
+
@@index([customerappId], map: "idx_customer_customerapp")
|
|
786
|
+
@@index([presalesassign], map: "idx_customer_presalesassign")
|
|
787
|
+
@@index([digioKid], map: "idx_customer_digioKid")
|
|
788
|
+
@@index([firstName], map: "idx_customer_firstName")
|
|
789
|
+
@@index([lastName], map: "idx_customer_lastName")
|
|
790
|
+
@@index([mobile, createdDate], map: "idx_mobile_created")
|
|
791
|
+
@@index([pancard, createdDate], map: "idx_pan_created")
|
|
792
|
+
@@index([isVerified, isBlocked], map: "idx_verified_blocked")
|
|
793
|
+
@@index([loanApplied, createdDate], map: "idx_loanApplied_created")
|
|
794
|
+
@@index([utmSource, createdDate], map: "idx_source_created")
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
model customer_extended {
|
|
798
|
+
id Int @id @default(autoincrement())
|
|
799
|
+
customerID Int @unique
|
|
800
|
+
isBtCase Boolean @default(false)
|
|
801
|
+
attempts Int? @default(0)
|
|
802
|
+
lastAttempt DateTime?
|
|
803
|
+
verifyAttempts Int? @default(0)
|
|
804
|
+
verifyLastAttempt DateTime?
|
|
805
|
+
otpExpiresAt DateTime?
|
|
806
|
+
selfieAttempts Int? @default(0)
|
|
807
|
+
kidGenerateAt DateTime? @default(now()) @db.DateTime(0)
|
|
808
|
+
loanRequired Int @default(0)
|
|
809
|
+
firstOtpVerifyAt DateTime?
|
|
810
|
+
loanPurpose String? @db.VarChar(255)
|
|
811
|
+
salaryMode String? @db.VarChar(100)
|
|
812
|
+
|
|
813
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
model customer_locations {
|
|
817
|
+
id Int @id @default(autoincrement())
|
|
818
|
+
customerID Int
|
|
819
|
+
latitude Decimal @db.Decimal(10, 7)
|
|
820
|
+
longitude Decimal @db.Decimal(10, 7)
|
|
821
|
+
locationType LocationType
|
|
822
|
+
createdAt DateTime @default(now())
|
|
823
|
+
updatedAt DateTime @updatedAt
|
|
824
|
+
latlongAddress String?
|
|
825
|
+
|
|
826
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
827
|
+
|
|
828
|
+
@@unique([customerID, locationType])
|
|
829
|
+
@@index([customerID])
|
|
830
|
+
@@index([latitude, longitude])
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
model customer_calling_remarks {
|
|
834
|
+
id Int @id @default(autoincrement())
|
|
835
|
+
leadID Int
|
|
836
|
+
callingRemark String @db.Text
|
|
837
|
+
createdBy Int
|
|
838
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
839
|
+
|
|
840
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
841
|
+
createdByUser lms_users @relation(fields: [createdBy], references: [userID])
|
|
842
|
+
|
|
843
|
+
@@index([leadID], map: "customer_credit_remarks_leadID_fkey")
|
|
844
|
+
@@index([createdBy], map: "customer_credit_remarks_createdBy_fkey")
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
848
|
+
model customer_name_match {
|
|
849
|
+
id Int @id
|
|
850
|
+
lead_id Int @default(0)
|
|
851
|
+
customer_id Int @default(0)
|
|
852
|
+
mobile_no String?
|
|
853
|
+
type String? @db.Text
|
|
854
|
+
first_name String? @db.Text
|
|
855
|
+
second_name String? @db.Text
|
|
856
|
+
percentage String? @db.Text
|
|
857
|
+
percentage_data String? @db.Text
|
|
858
|
+
status Int @default(0)
|
|
859
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
860
|
+
|
|
861
|
+
@@index([customer_id], map: "customer_id")
|
|
862
|
+
@@index([lead_id], map: "lead_id")
|
|
863
|
+
@@index([mobile_no], map: "mobile_no")
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
model customer_salary {
|
|
867
|
+
id Int @id
|
|
868
|
+
customerID Int
|
|
869
|
+
salary_date String? @db.Text
|
|
870
|
+
particulars String? @db.Text
|
|
871
|
+
amount String? @db.Text
|
|
872
|
+
createdBy Int
|
|
873
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
model customeraccount {
|
|
877
|
+
accountID Int @id @default(autoincrement())
|
|
878
|
+
leadID Int?
|
|
879
|
+
customerID Int?
|
|
880
|
+
accountNo String @db.VarChar(100)
|
|
881
|
+
accountType String @db.VarChar(100)
|
|
882
|
+
bankIfsc String @db.VarChar(100)
|
|
883
|
+
bank String
|
|
884
|
+
bankBranch String
|
|
885
|
+
ip String? @db.VarChar(100)
|
|
886
|
+
credatedBy Int
|
|
887
|
+
status customeraccount_status
|
|
888
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
889
|
+
bank_holder_name String? @db.Text
|
|
890
|
+
customerappId Int?
|
|
891
|
+
isPrimary Boolean @default(false)
|
|
892
|
+
razorpay_fund_account_id String? @db.VarChar(50)
|
|
893
|
+
customer customer? @relation(fields: [customerID], references: [customerID])
|
|
894
|
+
customerapp customerapp? @relation(fields: [customerappId], references: [customerID], map: "fk_customeraccount_customerapp")
|
|
895
|
+
approval approval[]
|
|
896
|
+
|
|
897
|
+
@@index([customerID], map: "customeraccount_customerID_fkey")
|
|
898
|
+
@@index([customerappId], map: "fk_customeraccount_customerapp")
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
model custumer_lead_log {
|
|
902
|
+
id Int @id
|
|
903
|
+
lead_id BigInt?
|
|
904
|
+
customer_id BigInt?
|
|
905
|
+
log_data String? @db.LongText
|
|
906
|
+
created_date DateTime @default(now()) @db.Timestamp(0)
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
model deviceconnectfinbox {
|
|
910
|
+
documentID Int @id
|
|
911
|
+
customerID String @db.VarChar(256)
|
|
912
|
+
leadID String @db.VarChar(256)
|
|
913
|
+
tokenID String @unique(map: "entityID")
|
|
914
|
+
verifiedDate DateTime? @db.DateTime(0)
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
model dialerlead {
|
|
918
|
+
id Int @id
|
|
919
|
+
customerID String @db.VarChar(256)
|
|
920
|
+
leadID String @db.VarChar(256)
|
|
921
|
+
name String @db.VarChar(256)
|
|
922
|
+
mobile String @db.VarChar(256)
|
|
923
|
+
email String @db.VarChar(256)
|
|
924
|
+
city String @db.VarChar(256)
|
|
925
|
+
credated_date DateTime @db.DateTime(0)
|
|
926
|
+
status String? @db.VarChar(256)
|
|
927
|
+
|
|
928
|
+
@@index([city(length: 250)], map: "city")
|
|
929
|
+
@@index([email(length: 250)], map: "email")
|
|
930
|
+
@@index([mobile(length: 250)], map: "mobile")
|
|
931
|
+
@@index([name(length: 250)], map: "name")
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
model disblogs {
|
|
935
|
+
id Int @id
|
|
936
|
+
customerID String @db.VarChar(216)
|
|
937
|
+
leadID String @db.VarChar(216)
|
|
938
|
+
emApp String @db.VarChar(216)
|
|
939
|
+
offVisit String @db.VarChar(216)
|
|
940
|
+
andr String @db.VarChar(216)
|
|
941
|
+
blo_r String @db.VarChar(215)
|
|
942
|
+
uid String @db.VarChar(216)
|
|
943
|
+
createdDate DateTime @db.DateTime(0)
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
model document {
|
|
947
|
+
documentID Int @id @default(autoincrement())
|
|
948
|
+
customerID Int?
|
|
949
|
+
documentType String
|
|
950
|
+
documentFile String
|
|
951
|
+
pushData Json?
|
|
952
|
+
password String? @db.VarChar(200)
|
|
953
|
+
status document_status @default(Pending)
|
|
954
|
+
verifiedBy Int @default(1)
|
|
955
|
+
verifiedDate DateTime? @db.Date
|
|
956
|
+
uploadBy Int
|
|
957
|
+
uploadedDate DateTime @default(now()) @db.DateTime(0)
|
|
958
|
+
type String? @db.Text
|
|
959
|
+
location String? @db.VarChar(255)
|
|
960
|
+
customerappId Int?
|
|
961
|
+
customer customer? @relation(fields: [customerID], references: [customerID], map: "fk_document_customer")
|
|
962
|
+
customerapp customerapp? @relation(fields: [customerappId], references: [customerID], map: "fk_document_customerapp")
|
|
963
|
+
|
|
964
|
+
@@index([customerID], map: "customerID")
|
|
965
|
+
@@index([customerappId], map: "fk_document_customerapp")
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
model documentfinbox {
|
|
969
|
+
documentID Int @id
|
|
970
|
+
customerID String @db.VarChar(256)
|
|
971
|
+
leadID String @db.VarChar(256)
|
|
972
|
+
entityID String @db.VarChar(256)
|
|
973
|
+
type String @db.VarChar(256)
|
|
974
|
+
statement_id String @db.VarChar(256)
|
|
975
|
+
documentType String
|
|
976
|
+
documentFile String @db.LongText
|
|
977
|
+
verifiedBy String @db.VarChar(256)
|
|
978
|
+
status String @default("Verified") @db.VarChar(256)
|
|
979
|
+
verifiedDate DateTime? @db.DateTime(0)
|
|
980
|
+
uid Int?
|
|
981
|
+
aa_check String? @db.Text
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
model documentfinbox1 {
|
|
985
|
+
documentID Int @id
|
|
986
|
+
customerID String @db.VarChar(256)
|
|
987
|
+
leadID String @db.VarChar(256)
|
|
988
|
+
entityID String @unique(map: "entityID")
|
|
989
|
+
type String @db.VarChar(256)
|
|
990
|
+
statement_id String @db.VarChar(256)
|
|
991
|
+
documentType String
|
|
992
|
+
documentFile String @db.LongText
|
|
993
|
+
verifiedBy String @db.VarChar(256)
|
|
994
|
+
status String @default("Verified") @db.VarChar(256)
|
|
995
|
+
verifiedDate DateTime? @db.DateTime(0)
|
|
996
|
+
uid Int?
|
|
997
|
+
aa_check String? @db.Text
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
model documentfinboxlog {
|
|
1001
|
+
id Int @id
|
|
1002
|
+
documentID Int
|
|
1003
|
+
entity_id String? @db.Text
|
|
1004
|
+
api_response String? @db.LongText
|
|
1005
|
+
api_type String? @db.Text
|
|
1006
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
1007
|
+
status Int @default(0)
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
model e_sign {
|
|
1011
|
+
e_sign_id Int @id @default(autoincrement())
|
|
1012
|
+
lead_id Int
|
|
1013
|
+
customerID String @db.VarChar(216)
|
|
1014
|
+
document_id String
|
|
1015
|
+
name String
|
|
1016
|
+
mobile String @db.VarChar(20)
|
|
1017
|
+
file_name String
|
|
1018
|
+
status String @db.VarChar(50)
|
|
1019
|
+
aggrement_file String
|
|
1020
|
+
expire_on DateTime? @db.DateTime(0)
|
|
1021
|
+
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
1022
|
+
devices String @db.VarChar(216)
|
|
1023
|
+
ip_add String @db.VarChar(216)
|
|
1024
|
+
latmap String? @db.VarChar(256)
|
|
1025
|
+
longmap String? @db.VarChar(256)
|
|
1026
|
+
address String? @db.MediumText
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
model emis {
|
|
1030
|
+
emiId Int @id
|
|
1031
|
+
customerID Int
|
|
1032
|
+
leadID Int
|
|
1033
|
+
repaymentDate DateTime? @db.Date
|
|
1034
|
+
paymentDate DateTime? @db.DateTime(0)
|
|
1035
|
+
Interest Float
|
|
1036
|
+
beginning_Balance Float
|
|
1037
|
+
principle_balance Float
|
|
1038
|
+
total_Payment Float
|
|
1039
|
+
ending_Balance Float
|
|
1040
|
+
status String @db.VarChar(100)
|
|
1041
|
+
closedby Int?
|
|
1042
|
+
date_time DateTime @db.DateTime(0)
|
|
1043
|
+
uid String @db.VarChar(215)
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
model employer {
|
|
1047
|
+
employerID Int @id @default(autoincrement())
|
|
1048
|
+
customerID Int?
|
|
1049
|
+
employerName String?
|
|
1050
|
+
empEmail String?
|
|
1051
|
+
empDob String?
|
|
1052
|
+
empSalary String?
|
|
1053
|
+
employeeType customer_employeeType?
|
|
1054
|
+
salaryMode String?
|
|
1055
|
+
empDesignation String?
|
|
1056
|
+
empWorkIndustry String?
|
|
1057
|
+
employment String?
|
|
1058
|
+
totalExperience String? @default("0-6 Months")
|
|
1059
|
+
currentCompany String? @default("0-6 Months")
|
|
1060
|
+
address String?
|
|
1061
|
+
city String?
|
|
1062
|
+
state String?
|
|
1063
|
+
pincode BigInt?
|
|
1064
|
+
status employer_status @default(Not_Verified)
|
|
1065
|
+
verifiedBy Int @default(1)
|
|
1066
|
+
createdDate DateTime @db.DateTime(0)
|
|
1067
|
+
customerappId Int?
|
|
1068
|
+
customer customer? @relation(fields: [customerID], references: [customerID], map: "fk_employer_customer")
|
|
1069
|
+
customerapp customerapp? @relation(fields: [customerappId], references: [customerID], map: "fk_employer_customerapp")
|
|
1070
|
+
|
|
1071
|
+
@@index([customerID], map: "customerID")
|
|
1072
|
+
@@index([customerappId])
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
model employment_history {
|
|
1076
|
+
id Int @id @default(autoincrement())
|
|
1077
|
+
leadID Int
|
|
1078
|
+
customerID Int
|
|
1079
|
+
employmentData Json?
|
|
1080
|
+
uan String?
|
|
1081
|
+
status String @default("pending") @db.VarChar(50)
|
|
1082
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1083
|
+
updated_at DateTime @updatedAt
|
|
1084
|
+
lead leads @relation(fields: [leadID], references: [leadID], onDelete: Cascade)
|
|
1085
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
1086
|
+
|
|
1087
|
+
@@index([leadID])
|
|
1088
|
+
@@index([customerID])
|
|
1089
|
+
@@index([status])
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
model profile_info {
|
|
1093
|
+
id Int @id @default(autoincrement())
|
|
1094
|
+
leadID Int
|
|
1095
|
+
customerID Int
|
|
1096
|
+
profileData Json?
|
|
1097
|
+
status String @default("pending") @db.VarChar(50)
|
|
1098
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1099
|
+
updated_at DateTime @updatedAt
|
|
1100
|
+
lead leads @relation(fields: [leadID], references: [leadID], onDelete: Cascade)
|
|
1101
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
1102
|
+
|
|
1103
|
+
@@index([leadID])
|
|
1104
|
+
@@index([customerID])
|
|
1105
|
+
@@index([status])
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
model preoffer {
|
|
1109
|
+
id Int @id @default(autoincrement())
|
|
1110
|
+
customerID Int
|
|
1111
|
+
type String
|
|
1112
|
+
status String
|
|
1113
|
+
response Json?
|
|
1114
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
1115
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1116
|
+
updated_at DateTime @updatedAt
|
|
1117
|
+
|
|
1118
|
+
@@index([customerID, type])
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
model finb_logs {
|
|
1122
|
+
id Int @id @default(autoincrement())
|
|
1123
|
+
customerID Int
|
|
1124
|
+
pan String?
|
|
1125
|
+
response Json?
|
|
1126
|
+
type String
|
|
1127
|
+
status String @default("pending") @db.VarChar(50)
|
|
1128
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1129
|
+
updated_at DateTime @updatedAt
|
|
1130
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
1131
|
+
|
|
1132
|
+
@@index([customerID])
|
|
1133
|
+
@@index([status])
|
|
1134
|
+
@@index([type])
|
|
1135
|
+
@@index([pan, type, customerID])
|
|
1136
|
+
@@index([pan])
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
model facebook_lead {
|
|
1140
|
+
id Int @id
|
|
1141
|
+
lead_data String @db.LongText
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
model face_comparison {
|
|
1145
|
+
id Int @id @default(autoincrement())
|
|
1146
|
+
leadID Int?
|
|
1147
|
+
customerID Int
|
|
1148
|
+
sourceImage String @db.VarChar(255)
|
|
1149
|
+
targetImage String @db.VarChar(255)
|
|
1150
|
+
similarity Float?
|
|
1151
|
+
confidence Float?
|
|
1152
|
+
isMatch Boolean @default(false)
|
|
1153
|
+
createdAt DateTime @default(now())
|
|
1154
|
+
updatedAt DateTime @updatedAt
|
|
1155
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
1156
|
+
lead leads? @relation(fields: [leadID], references: [leadID])
|
|
1157
|
+
|
|
1158
|
+
@@index([customerID])
|
|
1159
|
+
@@index([leadID])
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
model hyperverge_verification {
|
|
1163
|
+
id Int @id @default(autoincrement())
|
|
1164
|
+
customerID Int @unique()
|
|
1165
|
+
transactionId String @db.VarChar(100)
|
|
1166
|
+
status String? @db.VarChar(50)
|
|
1167
|
+
livenessAction String? @db.VarChar(50)
|
|
1168
|
+
faceMatchAction String? @db.VarChar(50)
|
|
1169
|
+
livenessImage String? @db.VarChar(500)
|
|
1170
|
+
flags Json?
|
|
1171
|
+
failureReason Json?
|
|
1172
|
+
requestId String? @db.VarChar(150)
|
|
1173
|
+
createdAt DateTime @default(now())
|
|
1174
|
+
updatedAt DateTime @updatedAt
|
|
1175
|
+
|
|
1176
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
1177
|
+
|
|
1178
|
+
@@unique([transactionId, customerID])
|
|
1179
|
+
@@index([customerID])
|
|
1180
|
+
@@index([status])
|
|
1181
|
+
@@index([createdAt])
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
model reminders {
|
|
1185
|
+
id Int @id @default(autoincrement())
|
|
1186
|
+
customerID Int
|
|
1187
|
+
type reminders_type
|
|
1188
|
+
channel reminders_channel
|
|
1189
|
+
message String @db.Text
|
|
1190
|
+
sentAt DateTime @default(now()) @db.DateTime(0)
|
|
1191
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade, map: "fk_customer_reminder")
|
|
1192
|
+
|
|
1193
|
+
@@index([customerID, type], map: "idx_customer_type")
|
|
1194
|
+
@@index([sentAt], map: "idx_sentAt")
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
model emandates {
|
|
1198
|
+
id Int @id @default(autoincrement()) @db.UnsignedInt
|
|
1199
|
+
order_id String @unique(map: "uniq_order") @db.VarChar(100)
|
|
1200
|
+
payment_id String? @db.VarChar(100)
|
|
1201
|
+
customerID String? @db.VarChar(100)
|
|
1202
|
+
leadID String @db.VarChar(100)
|
|
1203
|
+
razorpay_customer_id String? @db.VarChar(100)
|
|
1204
|
+
token_id String? @db.VarChar(100)
|
|
1205
|
+
auth_type String? @db.VarChar(50)
|
|
1206
|
+
bank_account String? @db.VarChar(50)
|
|
1207
|
+
ifsc String? @db.VarChar(20)
|
|
1208
|
+
status String? @db.VarChar(50)
|
|
1209
|
+
amount Decimal? @db.Decimal(10, 2)
|
|
1210
|
+
currency String? @default("INR") @db.VarChar(10)
|
|
1211
|
+
response_json Json?
|
|
1212
|
+
created_at DateTime? @default(now()) @db.DateTime(0)
|
|
1213
|
+
updated_at DateTime? @default(now()) @db.DateTime(0)
|
|
1214
|
+
emandate_charge emandate_charge[]
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
model easebuzz_emandates {
|
|
1218
|
+
id Int @id @default(autoincrement())
|
|
1219
|
+
|
|
1220
|
+
leadID Int @unique
|
|
1221
|
+
customerID Int
|
|
1222
|
+
|
|
1223
|
+
access_key String? @db.VarChar(255)
|
|
1224
|
+
|
|
1225
|
+
transaction_id String @unique @db.VarChar(100)
|
|
1226
|
+
request_id String @unique @db.VarChar(100)
|
|
1227
|
+
mandate_id String? @db.VarChar(100)
|
|
1228
|
+
|
|
1229
|
+
// Customer
|
|
1230
|
+
customer_email String? @db.VarChar(255)
|
|
1231
|
+
customer_phone String? @db.VarChar(20)
|
|
1232
|
+
|
|
1233
|
+
// Bank
|
|
1234
|
+
account_holder_name String? @db.VarChar(255)
|
|
1235
|
+
account_number String? @db.VarChar(100)
|
|
1236
|
+
account_type String? @db.VarChar(50)
|
|
1237
|
+
ifsc String? @db.VarChar(20)
|
|
1238
|
+
bank_code String? @db.VarChar(20)
|
|
1239
|
+
|
|
1240
|
+
mandate_type String? @db.VarChar(50)
|
|
1241
|
+
auth_mode String? @db.VarChar(50)
|
|
1242
|
+
|
|
1243
|
+
amount Decimal? @db.Decimal(15, 2)
|
|
1244
|
+
|
|
1245
|
+
frequency String? @db.VarChar(30)
|
|
1246
|
+
|
|
1247
|
+
start_date DateTime?
|
|
1248
|
+
end_date DateTime?
|
|
1249
|
+
|
|
1250
|
+
status String? @db.VarChar(50)
|
|
1251
|
+
sub_status String? @db.VarChar(50)
|
|
1252
|
+
|
|
1253
|
+
umrn String? @db.VarChar(100)
|
|
1254
|
+
bank_reference_number String? @db.VarChar(100)
|
|
1255
|
+
|
|
1256
|
+
authorization String? @db.Text
|
|
1257
|
+
|
|
1258
|
+
response_code String? @db.VarChar(100)
|
|
1259
|
+
response_message String? @db.Text
|
|
1260
|
+
|
|
1261
|
+
response_html String? @db.Text
|
|
1262
|
+
webhook_json Json?
|
|
1263
|
+
consent Json?
|
|
1264
|
+
|
|
1265
|
+
created_at DateTime @default(now())
|
|
1266
|
+
updated_at DateTime @updatedAt
|
|
1267
|
+
|
|
1268
|
+
lead leads? @relation(fields: [leadID], references: [leadID])
|
|
1269
|
+
|
|
1270
|
+
//charges easebuzz_emandate_charge[]
|
|
1271
|
+
|
|
1272
|
+
@@index([leadID])
|
|
1273
|
+
@@index([customerID])
|
|
1274
|
+
@@index([transaction_id])
|
|
1275
|
+
@@index([status])
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
model cibildata_archive {
|
|
1279
|
+
id Int @id @default(autoincrement())
|
|
1280
|
+
leadID Int
|
|
1281
|
+
requestPayload Json
|
|
1282
|
+
responsePayload Json?
|
|
1283
|
+
status String @default("pending") @db.VarChar(50)
|
|
1284
|
+
createdAt DateTime @default(now()) @db.Timestamp(0)
|
|
1285
|
+
updatedAt DateTime @default(now()) @db.Timestamp(0)
|
|
1286
|
+
|
|
1287
|
+
@@index([leadID], map: "leadID")
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
model finbox_aa_dow_st {
|
|
1291
|
+
id Int @id
|
|
1292
|
+
customerID Int
|
|
1293
|
+
leadID Int
|
|
1294
|
+
entID String @db.Text
|
|
1295
|
+
consent_id String @db.Text
|
|
1296
|
+
date_time_range_from DateTime @db.Date
|
|
1297
|
+
date_time_range_to DateTime @db.Date
|
|
1298
|
+
statement_id String @db.Text
|
|
1299
|
+
status String @db.Text
|
|
1300
|
+
st_response String @db.LongText
|
|
1301
|
+
message String @db.Text
|
|
1302
|
+
entity_id String @db.Text
|
|
1303
|
+
credated_date DateTime @default(now()) @db.DateTime(0)
|
|
1304
|
+
f_response String @db.LongText
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
model finbox_aa_validity {
|
|
1308
|
+
id Int @id
|
|
1309
|
+
customerID Int
|
|
1310
|
+
leadID Int
|
|
1311
|
+
entityID String @db.VarChar(256)
|
|
1312
|
+
consent_id String @db.Text
|
|
1313
|
+
bank_name String @db.Text
|
|
1314
|
+
consent_start String @db.Text
|
|
1315
|
+
consent_expiry String @db.Text
|
|
1316
|
+
masked_account_number String @db.Text
|
|
1317
|
+
tenure_month_count String @db.Text
|
|
1318
|
+
frequency_unit String @db.Text
|
|
1319
|
+
frequency_value String @db.Text
|
|
1320
|
+
created_date DateTime @db.DateTime(0)
|
|
1321
|
+
uid Int
|
|
1322
|
+
api_response String @db.LongText
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
model finbox_client_url {
|
|
1326
|
+
id Int @id
|
|
1327
|
+
leadID String @db.VarChar(256)
|
|
1328
|
+
customerID String @db.VarChar(256)
|
|
1329
|
+
url String @db.Text
|
|
1330
|
+
uid String @db.Text
|
|
1331
|
+
credated_date DateTime? @default(now()) @db.DateTime(0)
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
model finbox_device_conn_status {
|
|
1335
|
+
id Int @id
|
|
1336
|
+
fet_name String @db.Text
|
|
1337
|
+
des String @db.Text
|
|
1338
|
+
type String @db.Text
|
|
1339
|
+
status String @db.VarChar(256)
|
|
1340
|
+
credatedDate DateTime @default(now()) @db.Timestamp(0)
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
model flow_screen_map {
|
|
1344
|
+
id Int @id
|
|
1345
|
+
stage Int?
|
|
1346
|
+
flow String? @db.VarChar(16)
|
|
1347
|
+
screen_name String? @db.VarChar(48)
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
model flow_screen_map_older {
|
|
1351
|
+
id Int @id
|
|
1352
|
+
stage String? @db.VarChar(5)
|
|
1353
|
+
flow String? @db.VarChar(16)
|
|
1354
|
+
screen_name String? @db.VarChar(48)
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
model ivrstatus {
|
|
1358
|
+
id Int @id @default(autoincrement())
|
|
1359
|
+
ivrstageName String @db.VarChar(256)
|
|
1360
|
+
ivrurl String @db.VarChar(256)
|
|
1361
|
+
type String @db.VarChar(256)
|
|
1362
|
+
iconCode String @default("no") @db.VarChar(216)
|
|
1363
|
+
status String @db.VarChar(256)
|
|
1364
|
+
credatedDate DateTime @default(now()) @db.Timestamp(0)
|
|
1365
|
+
squence Int @default(0)
|
|
1366
|
+
appmsg String @db.LongText
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1370
|
+
model lead_assign {
|
|
1371
|
+
id Int
|
|
1372
|
+
array_index Int
|
|
1373
|
+
creditAssign Int
|
|
1374
|
+
callAssign Int
|
|
1375
|
+
|
|
1376
|
+
@@ignore
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1380
|
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
1381
|
+
model lead_chat {
|
|
1382
|
+
id Int
|
|
1383
|
+
leadID Int
|
|
1384
|
+
agent_id Int @default(0)
|
|
1385
|
+
customer_reply Int @default(0)
|
|
1386
|
+
customer_number String? @db.Text
|
|
1387
|
+
message String? @db.LongText
|
|
1388
|
+
messgae_json String? @db.LongText
|
|
1389
|
+
status Int @default(0)
|
|
1390
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
1391
|
+
api_request String? @db.LongText
|
|
1392
|
+
api_response String? @db.LongText
|
|
1393
|
+
message_id String? @db.Text
|
|
1394
|
+
msg_seen Int @default(0)
|
|
1395
|
+
document_type String? @db.Text
|
|
1396
|
+
cron_msg_send Int @default(0)
|
|
1397
|
+
|
|
1398
|
+
@@ignore
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1402
|
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
1403
|
+
model lead_chat_template {
|
|
1404
|
+
id Int
|
|
1405
|
+
type Int @default(1)
|
|
1406
|
+
template_title String? @db.Text
|
|
1407
|
+
template_msg String? @db.LongText
|
|
1408
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
1409
|
+
is_dynamic Int @default(0)
|
|
1410
|
+
|
|
1411
|
+
@@ignore
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
model eagreement {
|
|
1415
|
+
id Int @id @default(autoincrement())
|
|
1416
|
+
leadID Int @unique
|
|
1417
|
+
loanNo String @db.VarChar(100)
|
|
1418
|
+
document_id String @db.VarChar(100)
|
|
1419
|
+
status String @db.VarChar(100)
|
|
1420
|
+
file_name String @db.VarChar(100)
|
|
1421
|
+
access_token String? @db.VarChar(100)
|
|
1422
|
+
isSigned Boolean @default(false)
|
|
1423
|
+
signedAt DateTime?
|
|
1424
|
+
leads leads @relation(fields: [leadID], references: [leadID])
|
|
1425
|
+
updated_at DateTime @updatedAt
|
|
1426
|
+
createdAt DateTime @default(now())
|
|
1427
|
+
|
|
1428
|
+
@@index([loanNo])
|
|
1429
|
+
@@index([leadID], map: "leadID")
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
1433
|
+
model leads {
|
|
1434
|
+
leadID Int @id @default(autoincrement())
|
|
1435
|
+
customerID Int?
|
|
1436
|
+
userID Int?
|
|
1437
|
+
purpose String? @db.VarChar(255)
|
|
1438
|
+
loanRequeried Float @default(10000)
|
|
1439
|
+
tenure Int @default(5)
|
|
1440
|
+
monthlyIncome Float?
|
|
1441
|
+
salaryMode String? @db.VarChar(200)
|
|
1442
|
+
city String? @db.VarChar(255)
|
|
1443
|
+
state String?
|
|
1444
|
+
pincode BigInt?
|
|
1445
|
+
status leads_status
|
|
1446
|
+
utmSource String @default("Website") @db.VarChar(100)
|
|
1447
|
+
fbLeads String?
|
|
1448
|
+
domainName String?
|
|
1449
|
+
commingLeadsDate String?
|
|
1450
|
+
ip String
|
|
1451
|
+
callAssign Int
|
|
1452
|
+
creditAssign Int
|
|
1453
|
+
collectionUID Int?
|
|
1454
|
+
createdDate DateTime @default(now()) @db.Timestamp(0)
|
|
1455
|
+
updatedAt DateTime @default(now()) @db.DateTime(0)
|
|
1456
|
+
alloUID String @default("no") @db.VarChar(216)
|
|
1457
|
+
sanctionalloUID Int
|
|
1458
|
+
sanctionAppID String @default("no") @db.VarChar(216)
|
|
1459
|
+
entity_id String? @db.Text
|
|
1460
|
+
field_officer_id String? @db.Text
|
|
1461
|
+
field_officer_assign_date String? @db.Text
|
|
1462
|
+
field_officer_lead_status Int @default(0)
|
|
1463
|
+
em_id BigInt?
|
|
1464
|
+
step String? @db.Text
|
|
1465
|
+
kfs leads_kfs @default(ZERO)
|
|
1466
|
+
bureau_consent Int @default(0)
|
|
1467
|
+
emandatebypass Boolean? @default(false)
|
|
1468
|
+
videoKycBypass Boolean? @default(false)
|
|
1469
|
+
isAudit Boolean? @default(false)
|
|
1470
|
+
loanType lead_loan_type @default(Payday)
|
|
1471
|
+
approvals approval[]
|
|
1472
|
+
bankstatement bankstatement[]
|
|
1473
|
+
callHistories callhistory[]
|
|
1474
|
+
callhistorylogs callhistorylogs[]
|
|
1475
|
+
notifications notifications[]
|
|
1476
|
+
collections collection[]
|
|
1477
|
+
customer customer? @relation(fields: [customerID], references: [customerID])
|
|
1478
|
+
loan loan?
|
|
1479
|
+
callAssignUser lms_users @relation("CallAssignedUser", fields: [callAssign], references: [userID])
|
|
1480
|
+
collectionUser lms_users? @relation("CollectionAssignedUser", fields: [collectionUID], references: [userID])
|
|
1481
|
+
sanctionUser lms_users @relation("SanctionAssignedUser", fields: [sanctionalloUID], references: [userID])
|
|
1482
|
+
balanceHistory balance_history[]
|
|
1483
|
+
collectionFollowups collectionfollowup[]
|
|
1484
|
+
Payout Payout?
|
|
1485
|
+
easebuzz_emandates easebuzz_emandates?
|
|
1486
|
+
videokyc videokyc?
|
|
1487
|
+
eagreement eagreement?
|
|
1488
|
+
employmentHistory employment_history[]
|
|
1489
|
+
profileInfo profile_info[]
|
|
1490
|
+
criffsoftpull criffsoftpull?
|
|
1491
|
+
icici_payout icici_payout[]
|
|
1492
|
+
face_comparison face_comparison[]
|
|
1493
|
+
credforge_bre_log credforge_bre_log[]
|
|
1494
|
+
aiCallLogs ai_call_logs[]
|
|
1495
|
+
creditRemarks credit_remarks[]
|
|
1496
|
+
customercallingremarks customer_calling_remarks[]
|
|
1497
|
+
AutoDebitLog AutoDebitLog[]
|
|
1498
|
+
|
|
1499
|
+
@@index([customerID], map: "idx_customerID")
|
|
1500
|
+
@@index([userID], map: "idx_userID")
|
|
1501
|
+
@@index([status], map: "idx_status")
|
|
1502
|
+
@@index([utmSource], map: "idx_utmSource")
|
|
1503
|
+
@@index([fbLeads], map: "idx_fbLeads")
|
|
1504
|
+
@@index([callAssign], map: "idx_callAssign")
|
|
1505
|
+
@@index([collectionUID], map: "idx_collectionUID")
|
|
1506
|
+
@@index([sanctionalloUID], map: "idx_sanctionalloUID")
|
|
1507
|
+
@@index([createdDate], map: "idx_createdDate")
|
|
1508
|
+
@@index([updatedAt], map: "idx_updatedAt")
|
|
1509
|
+
@@index([loanType], map: "idx_loanType")
|
|
1510
|
+
@@index([city], map: "idx_city")
|
|
1511
|
+
@@index([state], map: "idx_state")
|
|
1512
|
+
@@index([customerID, leadID], map: "idx_leads_customer_lead")
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1516
|
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
1517
|
+
model leads2 {
|
|
1518
|
+
leadID Int
|
|
1519
|
+
customerID Int
|
|
1520
|
+
userID Int?
|
|
1521
|
+
purpose String
|
|
1522
|
+
loanRequeried Float @default(10000)
|
|
1523
|
+
tenure Int @default(5)
|
|
1524
|
+
monthlyIncome Float
|
|
1525
|
+
salaryMode String? @db.VarChar(200)
|
|
1526
|
+
city String
|
|
1527
|
+
state String?
|
|
1528
|
+
pincode BigInt
|
|
1529
|
+
status leads2_status
|
|
1530
|
+
utmSource String @default("Website") @db.VarChar(100)
|
|
1531
|
+
fbLeads String?
|
|
1532
|
+
domainName String?
|
|
1533
|
+
commingLeadsDate String?
|
|
1534
|
+
ip String
|
|
1535
|
+
callAssign Int
|
|
1536
|
+
creditAssign Int
|
|
1537
|
+
createdDate DateTime @default(now()) @db.Timestamp(0)
|
|
1538
|
+
alloUID String @default("no") @db.VarChar(216)
|
|
1539
|
+
sanctionalloUID String @default("no") @db.VarChar(216)
|
|
1540
|
+
sanctionAppID String @default("no") @db.VarChar(216)
|
|
1541
|
+
entity_id String? @db.Text
|
|
1542
|
+
field_officer_id String? @db.Text
|
|
1543
|
+
field_officer_assign_date String? @db.Text
|
|
1544
|
+
field_officer_lead_status Int @default(0)
|
|
1545
|
+
step String? @db.Text
|
|
1546
|
+
kfs leads2_kfs @default(ZERO)
|
|
1547
|
+
|
|
1548
|
+
@@ignore
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1552
|
+
model leads_agent_collection {
|
|
1553
|
+
id Int
|
|
1554
|
+
leadID Int
|
|
1555
|
+
agent_id Int
|
|
1556
|
+
collectionID Int
|
|
1557
|
+
collectedAmount String? @db.Text
|
|
1558
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
1559
|
+
|
|
1560
|
+
@@ignore
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
1564
|
+
model leads_api_log {
|
|
1565
|
+
id Int @id @default(autoincrement())
|
|
1566
|
+
leadID String?
|
|
1567
|
+
api_supplier Int @default(0)
|
|
1568
|
+
api_type String?
|
|
1569
|
+
api_endpoint_url String? @db.Text
|
|
1570
|
+
api_headers String? @db.Text
|
|
1571
|
+
api_method String? @db.Text
|
|
1572
|
+
api_request String? @db.Text
|
|
1573
|
+
api_response String? @db.LongText
|
|
1574
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
1575
|
+
status Int @db.TinyInt
|
|
1576
|
+
customerID Int @default(0)
|
|
1577
|
+
mobile_no String?
|
|
1578
|
+
pancard String?
|
|
1579
|
+
updated_at String?
|
|
1580
|
+
pan_name String?
|
|
1581
|
+
aadharNo String?
|
|
1582
|
+
code String? @db.Text
|
|
1583
|
+
state String? @db.Text
|
|
1584
|
+
entity_id String? @db.Text
|
|
1585
|
+
sync_id String? @db.Text
|
|
1586
|
+
sync_result String? @db.Text
|
|
1587
|
+
sync_data String? @db.Text
|
|
1588
|
+
amount String? @db.Text
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1592
|
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
1593
|
+
model leads_auto_status {
|
|
1594
|
+
id Int
|
|
1595
|
+
type Int @default(0)
|
|
1596
|
+
agent_id Int? @default(0)
|
|
1597
|
+
lead_ids String? @db.LongText
|
|
1598
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
1599
|
+
|
|
1600
|
+
@@ignore
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1604
|
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
1605
|
+
model leads_field_officer {
|
|
1606
|
+
id Int
|
|
1607
|
+
type Int @default(0)
|
|
1608
|
+
leadID Int @default(0)
|
|
1609
|
+
assigner_user_id Int @default(0)
|
|
1610
|
+
field_officer_id String? @db.Text
|
|
1611
|
+
field_officer_assign_date String? @db.Text
|
|
1612
|
+
other_data String? @db.LongText
|
|
1613
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
1614
|
+
selfie_with_customer String? @db.Text
|
|
1615
|
+
customer_house_photo String? @db.Text
|
|
1616
|
+
video String? @db.Text
|
|
1617
|
+
payment_mode String? @db.Text
|
|
1618
|
+
collected_amount Int? @default(0)
|
|
1619
|
+
next_visit_date String? @db.Text
|
|
1620
|
+
next_visit_time String? @db.Text
|
|
1621
|
+
ptp_date String? @db.Text
|
|
1622
|
+
ptp_time String? @db.Text
|
|
1623
|
+
customer_found_status String? @db.Text
|
|
1624
|
+
status Int @default(0)
|
|
1625
|
+
|
|
1626
|
+
@@ignore
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
model legal_notices {
|
|
1630
|
+
notice_id Int @id @default(autoincrement())
|
|
1631
|
+
loanNo String @db.VarChar(50)
|
|
1632
|
+
leadID Int
|
|
1633
|
+
customerID Int
|
|
1634
|
+
notice_type String? @default("First Warning") @db.VarChar(100)
|
|
1635
|
+
notice_subject String?
|
|
1636
|
+
notice_content String? @db.Text
|
|
1637
|
+
customer_name_at_generation String?
|
|
1638
|
+
customer_address_at_generation String? @db.Text
|
|
1639
|
+
generated_date DateTime? @default(now()) @db.DateTime(0)
|
|
1640
|
+
sent_date DateTime? @db.DateTime(0)
|
|
1641
|
+
status String? @default("Draft") @db.VarChar(50)
|
|
1642
|
+
sent_by_user_id Int?
|
|
1643
|
+
remarks String? @db.Text
|
|
1644
|
+
|
|
1645
|
+
@@index([customerID], map: "customerID")
|
|
1646
|
+
@@index([leadID], map: "leadID")
|
|
1647
|
+
@@index([loanNo], map: "loanNo")
|
|
1648
|
+
@@index([sent_date], map: "sent_date")
|
|
1649
|
+
@@index([status], map: "status")
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1653
|
+
model loan {
|
|
1654
|
+
id Int @id @default(autoincrement())
|
|
1655
|
+
loanID Int
|
|
1656
|
+
leadID Int @unique
|
|
1657
|
+
loanNo String @unique
|
|
1658
|
+
customerID Int?
|
|
1659
|
+
disbursalAmount Float
|
|
1660
|
+
disbursalDate String? @db.Text
|
|
1661
|
+
disbursalTime DateTime @default(dbgenerated("'00:00:00'")) @db.Time(0)
|
|
1662
|
+
disbursalRefrenceNo String?
|
|
1663
|
+
accountNo String @db.VarChar(100)
|
|
1664
|
+
accountType String @db.VarChar(100)
|
|
1665
|
+
bankIfsc String @db.VarChar(100)
|
|
1666
|
+
bank String
|
|
1667
|
+
bankBranch String
|
|
1668
|
+
chequeDetails String
|
|
1669
|
+
pdDate DateTime @db.Date
|
|
1670
|
+
pdDoneBy String @db.VarChar(100)
|
|
1671
|
+
deduction Float @default(0)
|
|
1672
|
+
remarks String
|
|
1673
|
+
status loan_status
|
|
1674
|
+
rejReason String? @db.VarChar(256)
|
|
1675
|
+
companyAccountNo String @default("")
|
|
1676
|
+
ip String @db.VarChar(100)
|
|
1677
|
+
disbursedBy Int?
|
|
1678
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1679
|
+
updatedAt DateTime @default(now()) @db.DateTime(0)
|
|
1680
|
+
allocate_date DateTime? @default(now()) @db.DateTime(0)
|
|
1681
|
+
allocated_by String? @db.VarChar(64)
|
|
1682
|
+
acutalDisbursalAmount Int?
|
|
1683
|
+
exported Boolean @default(false)
|
|
1684
|
+
disbursement_request disbursement_requests?
|
|
1685
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
1686
|
+
|
|
1687
|
+
@@index([customerID], map: "idx_loan_customerID")
|
|
1688
|
+
@@index([loanID], map: "idx_loan_loanID")
|
|
1689
|
+
@@index([status], map: "idx_loan_status")
|
|
1690
|
+
@@index([createdDate], map: "idx_loan_createdDate")
|
|
1691
|
+
@@index([updatedAt], map: "idx_loan_updatedAt")
|
|
1692
|
+
@@index([pdDate], map: "idx_loan_pdDate")
|
|
1693
|
+
@@index([disbursedBy], map: "idx_loan_disbursedBy")
|
|
1694
|
+
@@index([exported], map: "idx_loan_exported")
|
|
1695
|
+
@@index([allocate_date], map: "idx_loan_allocateDate")
|
|
1696
|
+
@@index([accountNo], map: "idx_loan_accountNo")
|
|
1697
|
+
@@index([bankIfsc], map: "idx_loan_bankIfsc")
|
|
1698
|
+
@@index([status, createdDate], map: "idx_loan_status_created")
|
|
1699
|
+
@@index([status, pdDate], map: "idx_loan_status_pdDate")
|
|
1700
|
+
@@index([customerID, status], map: "idx_loan_customer_status")
|
|
1701
|
+
@@index([exported, status], map: "idx_loan_export_status")
|
|
1702
|
+
@@index([disbursedBy, status], map: "idx_loan_disbursedBy_status")
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1706
|
+
model loan_ac_remove_logs {
|
|
1707
|
+
loanID Int
|
|
1708
|
+
leadID Int
|
|
1709
|
+
loanNo String
|
|
1710
|
+
customerID Int
|
|
1711
|
+
disbursalAmount Float
|
|
1712
|
+
disbursalDate String? @db.Text
|
|
1713
|
+
disbursalTime DateTime @default(dbgenerated("'00:00:00'")) @db.Time(0)
|
|
1714
|
+
disbursalRefrenceNo String?
|
|
1715
|
+
accountNo String @db.VarChar(100)
|
|
1716
|
+
accountType String @db.VarChar(100)
|
|
1717
|
+
bankIfsc String @db.VarChar(100)
|
|
1718
|
+
bank String
|
|
1719
|
+
bankBranch String
|
|
1720
|
+
chequeDetails String
|
|
1721
|
+
pdDate DateTime @db.Date
|
|
1722
|
+
pdDoneBy String @db.VarChar(100)
|
|
1723
|
+
deduction Float @default(0)
|
|
1724
|
+
remarks String
|
|
1725
|
+
status loan_ac_remove_logs_status
|
|
1726
|
+
rejReason String? @db.VarChar(256)
|
|
1727
|
+
companyAccountNo String @default("")
|
|
1728
|
+
ip String @db.VarChar(100)
|
|
1729
|
+
disbursedBy Int
|
|
1730
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1731
|
+
remove_date DateTime @default(now()) @db.DateTime(0)
|
|
1732
|
+
remove_by String @db.VarChar(64)
|
|
1733
|
+
remove_resons String @db.LongText
|
|
1734
|
+
|
|
1735
|
+
@@ignore
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1739
|
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
1740
|
+
model loan_account_type {
|
|
1741
|
+
id Int
|
|
1742
|
+
type Int @default(1)
|
|
1743
|
+
code String? @db.Text
|
|
1744
|
+
name String? @db.Text
|
|
1745
|
+
description String? @db.Text
|
|
1746
|
+
predicted_data String? @db.Text
|
|
1747
|
+
|
|
1748
|
+
@@ignore
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1752
|
+
model loan_disdate_chlogs {
|
|
1753
|
+
id Int
|
|
1754
|
+
leadID String @db.VarChar(216)
|
|
1755
|
+
customerID String @db.VarChar(216)
|
|
1756
|
+
loanNo String @db.VarChar(256)
|
|
1757
|
+
disbursalDate DateTime @db.Date
|
|
1758
|
+
disbursalRefrenceNo String @db.Text
|
|
1759
|
+
remarks String @db.LongText
|
|
1760
|
+
uid Int
|
|
1761
|
+
credatedDate DateTime @default(now()) @db.DateTime(0)
|
|
1762
|
+
|
|
1763
|
+
@@ignore
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1767
|
+
model loan_type {
|
|
1768
|
+
id Int
|
|
1769
|
+
name String? @db.Text
|
|
1770
|
+
status Int @default(1)
|
|
1771
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
1772
|
+
|
|
1773
|
+
@@ignore
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1777
|
+
model loginlogs {
|
|
1778
|
+
id Int
|
|
1779
|
+
userID String @db.VarChar(256)
|
|
1780
|
+
name String @db.VarChar(256)
|
|
1781
|
+
email String @db.VarChar(256)
|
|
1782
|
+
ip String @db.VarChar(256)
|
|
1783
|
+
loginStart DateTime @default(now()) @db.DateTime(0)
|
|
1784
|
+
loginEnd DateTime? @db.DateTime(0)
|
|
1785
|
+
|
|
1786
|
+
@@ignore
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1790
|
+
model mobile_token {
|
|
1791
|
+
id Int
|
|
1792
|
+
customerID String @db.VarChar(256)
|
|
1793
|
+
mobile String @db.VarChar(256)
|
|
1794
|
+
appID String @db.VarChar(512)
|
|
1795
|
+
credatedDate DateTime @db.DateTime(0)
|
|
1796
|
+
imei String @db.VarChar(256)
|
|
1797
|
+
access_token String
|
|
1798
|
+
last_login DateTime @db.DateTime(0)
|
|
1799
|
+
|
|
1800
|
+
@@ignore
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1804
|
+
model notification_admin {
|
|
1805
|
+
id Int
|
|
1806
|
+
title String? @db.Text
|
|
1807
|
+
description String? @db.Text
|
|
1808
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
1809
|
+
|
|
1810
|
+
@@ignore
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
model notifications {
|
|
1814
|
+
notificationID Int @id @default(autoincrement())
|
|
1815
|
+
customerID Int
|
|
1816
|
+
leadID Int
|
|
1817
|
+
sender_email String? @db.VarChar(50)
|
|
1818
|
+
notification String @db.Text
|
|
1819
|
+
type String?
|
|
1820
|
+
subject String?
|
|
1821
|
+
senderUser Int?
|
|
1822
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1823
|
+
mtype String @default("crm") @db.VarChar(216)
|
|
1824
|
+
uid String? @db.VarChar(64)
|
|
1825
|
+
otp String? @db.Text
|
|
1826
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
1827
|
+
|
|
1828
|
+
@@index([leadID])
|
|
1829
|
+
@@index([createdDate])
|
|
1830
|
+
@@index([type])
|
|
1831
|
+
@@index([leadID, createdDate])
|
|
1832
|
+
@@index([leadID, type])
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1836
|
+
model onlinepayment {
|
|
1837
|
+
pID Int
|
|
1838
|
+
name String @db.VarChar(300)
|
|
1839
|
+
email String @db.VarChar(300)
|
|
1840
|
+
phone String @db.VarChar(20)
|
|
1841
|
+
service String @default("hindustancapital") @db.VarChar(300)
|
|
1842
|
+
typeProduct String @db.VarChar(300)
|
|
1843
|
+
toValue String @db.VarChar(300)
|
|
1844
|
+
message String @db.VarChar(300)
|
|
1845
|
+
razorpayOrderId String @db.VarChar(300)
|
|
1846
|
+
razorpayPaymentId String @db.VarChar(300)
|
|
1847
|
+
paymentStatus String @db.VarChar(300)
|
|
1848
|
+
makerstamp DateTime @db.DateTime(0)
|
|
1849
|
+
updatestamp DateTime @db.DateTime(0)
|
|
1850
|
+
status String @default("no") @db.VarChar(216)
|
|
1851
|
+
approved_id Int @default(0)
|
|
1852
|
+
paymentType String @default("Payment Getway") @db.VarChar(216)
|
|
1853
|
+
method String @default("upi") @db.VarChar(216)
|
|
1854
|
+
leadID String? @db.VarChar(216)
|
|
1855
|
+
device String @default("web") @db.VarChar(216)
|
|
1856
|
+
error_reason String? @db.Text
|
|
1857
|
+
|
|
1858
|
+
@@ignore
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1862
|
+
model onlinepaymentlog {
|
|
1863
|
+
id Int
|
|
1864
|
+
pID String @db.VarChar(216)
|
|
1865
|
+
razorpayOrderId String @db.VarChar(216)
|
|
1866
|
+
razorpayPaymentId String @db.VarChar(216)
|
|
1867
|
+
paymentStatus String @db.VarChar(216)
|
|
1868
|
+
createdDate DateTime @db.DateTime(0)
|
|
1869
|
+
|
|
1870
|
+
@@ignore
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1874
|
+
model paydaypendingdata {
|
|
1875
|
+
pID Int
|
|
1876
|
+
loanID String @db.VarChar(216)
|
|
1877
|
+
appLoan Float @default(0)
|
|
1878
|
+
repayAmount String @db.VarChar(216)
|
|
1879
|
+
repaydate DateTime @db.Date
|
|
1880
|
+
remaingCollection String @db.VarChar(216)
|
|
1881
|
+
totalCollection String @db.VarChar(216)
|
|
1882
|
+
rand String @db.VarChar(216)
|
|
1883
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1884
|
+
|
|
1885
|
+
@@ignore
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1889
|
+
model payout_accounts_log {
|
|
1890
|
+
id Int
|
|
1891
|
+
log String @default("") @db.VarChar(256)
|
|
1892
|
+
log_created DateTime @default(now()) @db.DateTime(0)
|
|
1893
|
+
user_id Int?
|
|
1894
|
+
|
|
1895
|
+
@@ignore
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
model PaymentIdempotency {
|
|
1899
|
+
id Int @id @default(autoincrement())
|
|
1900
|
+
idempotencyKey String @unique
|
|
1901
|
+
paymentId String
|
|
1902
|
+
gateway String
|
|
1903
|
+
status String // PROCESSING | SUCCESS | FAILED
|
|
1904
|
+
requestPayload Json?
|
|
1905
|
+
responsePayload Json?
|
|
1906
|
+
|
|
1907
|
+
createdAt DateTime @default(now())
|
|
1908
|
+
updatedAt DateTime @updatedAt
|
|
1909
|
+
|
|
1910
|
+
@@index([paymentId])
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
model Payout {
|
|
1914
|
+
id Int @id @default(autoincrement())
|
|
1915
|
+
razorpayPayoutId String? @unique
|
|
1916
|
+
fundAccountId String
|
|
1917
|
+
amount BigInt
|
|
1918
|
+
status PayoutStatus
|
|
1919
|
+
performed_by Int?
|
|
1920
|
+
payload Json?
|
|
1921
|
+
response Json?
|
|
1922
|
+
narration String?
|
|
1923
|
+
referenceId String?
|
|
1924
|
+
failureReason String?
|
|
1925
|
+
statusReason String?
|
|
1926
|
+
statusDescription String?
|
|
1927
|
+
statusSource String?
|
|
1928
|
+
createdAtRzp BigInt?
|
|
1929
|
+
isTerminal Boolean @default(false)
|
|
1930
|
+
leadId Int @unique()
|
|
1931
|
+
leads leads @relation(fields: [leadId], references: [leadID])
|
|
1932
|
+
|
|
1933
|
+
createdAt DateTime? @default(now()) @db.Timestamp(0)
|
|
1934
|
+
updatedAt DateTime @updatedAt
|
|
1935
|
+
|
|
1936
|
+
webhookLogs PayoutWebhookLog[]
|
|
1937
|
+
statusHistory PayoutStatusHistory[]
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
model PayoutWebhookLog {
|
|
1941
|
+
id Int @id @default(autoincrement())
|
|
1942
|
+
eventId String?
|
|
1943
|
+
eventType String
|
|
1944
|
+
payload Json
|
|
1945
|
+
payoutId Int?
|
|
1946
|
+
createdAt DateTime @default(now())
|
|
1947
|
+
|
|
1948
|
+
payout Payout? @relation(fields: [payoutId], references: [id])
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
model PayoutStatusHistory {
|
|
1952
|
+
id Int @id @default(autoincrement())
|
|
1953
|
+
payoutId Int
|
|
1954
|
+
oldStatus PayoutStatus?
|
|
1955
|
+
newStatus PayoutStatus
|
|
1956
|
+
performed_by Int?
|
|
1957
|
+
createdAt DateTime @default(now())
|
|
1958
|
+
|
|
1959
|
+
payout Payout @relation(fields: [payoutId], references: [id])
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
model PayoutDowntime {
|
|
1963
|
+
id String @id
|
|
1964
|
+
bank String?
|
|
1965
|
+
method String
|
|
1966
|
+
status String
|
|
1967
|
+
source String?
|
|
1968
|
+
begin Int
|
|
1969
|
+
end Int?
|
|
1970
|
+
scheduled Boolean
|
|
1971
|
+
createdAt DateTime @default(now())
|
|
1972
|
+
updatedAt DateTime @updatedAt
|
|
1973
|
+
|
|
1974
|
+
@@index([method, bank])
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
model icici_payout {
|
|
1978
|
+
id Int @id @default(autoincrement())
|
|
1979
|
+
amount BigInt
|
|
1980
|
+
transRefNo String?
|
|
1981
|
+
bankRRN String?
|
|
1982
|
+
status iciciPayoutStatus
|
|
1983
|
+
actCode String?
|
|
1984
|
+
checkStatus String?
|
|
1985
|
+
responseMsg String?
|
|
1986
|
+
paymentRef String @unique
|
|
1987
|
+
checkAttempts Int @default(0)
|
|
1988
|
+
retryCount Int @default(0)
|
|
1989
|
+
nextCheckAt DateTime?
|
|
1990
|
+
lastCheckAt DateTime?
|
|
1991
|
+
expiresAt DateTime?
|
|
1992
|
+
isTerminal Boolean @default(false)
|
|
1993
|
+
isRetryable Boolean @default(false)
|
|
1994
|
+
needsStatusCheck Boolean @default(false)
|
|
1995
|
+
leadID Int
|
|
1996
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
1997
|
+
payload Json?
|
|
1998
|
+
response Json?
|
|
1999
|
+
error Json?
|
|
2000
|
+
createdAt DateTime @default(now())
|
|
2001
|
+
updatedAt DateTime @updatedAt
|
|
2002
|
+
icici_Payoutlog icici_Payoutlog[]
|
|
2003
|
+
|
|
2004
|
+
@@index([status])
|
|
2005
|
+
@@index([nextCheckAt])
|
|
2006
|
+
@@index([transRefNo])
|
|
2007
|
+
@@index([paymentRef])
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
model icici_Payoutlog {
|
|
2011
|
+
id Int @id @default(autoincrement())
|
|
2012
|
+
payoutId Int
|
|
2013
|
+
step String
|
|
2014
|
+
payload Json
|
|
2015
|
+
actCode String?
|
|
2016
|
+
message String?
|
|
2017
|
+
createdAt DateTime @default(now())
|
|
2018
|
+
payout icici_payout @relation(fields: [payoutId], references: [id])
|
|
2019
|
+
|
|
2020
|
+
@@index([payoutId])
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2024
|
+
model penny_drop {
|
|
2025
|
+
id Int
|
|
2026
|
+
customerID String @db.VarChar(256)
|
|
2027
|
+
p_id String @db.VarChar(256)
|
|
2028
|
+
leadID String @db.VarChar(256)
|
|
2029
|
+
name String @db.VarChar(256)
|
|
2030
|
+
ifsc String @db.VarChar(256)
|
|
2031
|
+
bank_name String @db.VarChar(256)
|
|
2032
|
+
account_number String @db.VarChar(256)
|
|
2033
|
+
account_status String? @db.VarChar(256)
|
|
2034
|
+
registered_name String? @db.VarChar(256)
|
|
2035
|
+
credated_date DateTime @default(now()) @db.DateTime(0)
|
|
2036
|
+
logs String @db.LongText
|
|
2037
|
+
penny_status String @db.VarChar(256)
|
|
2038
|
+
uid String @db.VarChar(256)
|
|
2039
|
+
|
|
2040
|
+
@@ignore
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2044
|
+
model pincode {
|
|
2045
|
+
id BigInt @id @default(autoincrement())
|
|
2046
|
+
pincode String @db.VarChar(10)
|
|
2047
|
+
circlename String? @db.VarChar(100)
|
|
2048
|
+
regionname String? @db.VarChar(100)
|
|
2049
|
+
divisionname String? @db.VarChar(50)
|
|
2050
|
+
officename String? @db.VarChar(50)
|
|
2051
|
+
officetype String? @db.VarChar(50)
|
|
2052
|
+
delivery String? @db.VarChar(50)
|
|
2053
|
+
district String? @db.VarChar(50)
|
|
2054
|
+
statename String? @db.VarChar(50)
|
|
2055
|
+
latitude String? @db.VarChar(50)
|
|
2056
|
+
longitude String? @db.VarChar(50)
|
|
2057
|
+
type String? @db.VarChar(50)
|
|
2058
|
+
riskStatus String? @db.VarChar(20)
|
|
2059
|
+
riskEligibleFlag String? @db.VarChar(20)
|
|
2060
|
+
eligibleSince String? @db.VarChar(20)
|
|
2061
|
+
isActive Boolean @default(false)
|
|
2062
|
+
createdAt DateTime @default(now())
|
|
2063
|
+
updatedAt DateTime @updatedAt
|
|
2064
|
+
|
|
2065
|
+
@@unique([pincode])
|
|
2066
|
+
@@index([pincode, isActive, district, statename])
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
|
|
2070
|
+
model indianpincode {
|
|
2071
|
+
id BigInt @id @default(autoincrement())
|
|
2072
|
+
pincode String @db.VarChar(10)
|
|
2073
|
+
circlename String? @db.VarChar(100)
|
|
2074
|
+
regionname String? @db.VarChar(100)
|
|
2075
|
+
divisionname String? @db.VarChar(50)
|
|
2076
|
+
officename String? @db.VarChar(50)
|
|
2077
|
+
officetype String? @db.VarChar(50)
|
|
2078
|
+
delivery String? @db.VarChar(50)
|
|
2079
|
+
district String? @db.VarChar(50)
|
|
2080
|
+
statename String? @db.VarChar(50)
|
|
2081
|
+
latitude String? @db.VarChar(50)
|
|
2082
|
+
longitude String? @db.VarChar(50)
|
|
2083
|
+
type String? @db.VarChar(50)
|
|
2084
|
+
riskStatus String? @db.VarChar(20)
|
|
2085
|
+
riskEligibleFlag String? @db.VarChar(20)
|
|
2086
|
+
eligibleSince String? @db.VarChar(20)
|
|
2087
|
+
isActive Boolean @default(false)
|
|
2088
|
+
createdAt DateTime @default(now())
|
|
2089
|
+
updatedAt DateTime @updatedAt
|
|
2090
|
+
|
|
2091
|
+
@@unique([pincode])
|
|
2092
|
+
@@index([pincode, isActive, district, statename])
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2096
|
+
model ramblog {
|
|
2097
|
+
id Int
|
|
2098
|
+
title String @db.VarChar(256)
|
|
2099
|
+
des String @db.LongText
|
|
2100
|
+
rating Int @default(3)
|
|
2101
|
+
Type String @db.VarChar(512)
|
|
2102
|
+
image String @db.VarChar(256)
|
|
2103
|
+
status String @db.VarChar(256)
|
|
2104
|
+
url String @db.VarChar(256)
|
|
2105
|
+
credatedDate DateTime @db.DateTime(0)
|
|
2106
|
+
|
|
2107
|
+
@@ignore
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2111
|
+
model razorpay_emch_queue {
|
|
2112
|
+
id Int
|
|
2113
|
+
emID Int
|
|
2114
|
+
inv_id String @db.Text
|
|
2115
|
+
leadID Int
|
|
2116
|
+
customerID Int
|
|
2117
|
+
ch_amount Float
|
|
2118
|
+
uid Int
|
|
2119
|
+
status String @default("no") @db.VarChar(512)
|
|
2120
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
2121
|
+
|
|
2122
|
+
@@ignore
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2126
|
+
model razorpay_emorder {
|
|
2127
|
+
id Int
|
|
2128
|
+
emID String @db.VarChar(216)
|
|
2129
|
+
customerID String @db.VarChar(216)
|
|
2130
|
+
leadID String @db.VarChar(216)
|
|
2131
|
+
orderID String @db.VarChar(216)
|
|
2132
|
+
entity String @db.VarChar(216)
|
|
2133
|
+
amount String @db.VarChar(216)
|
|
2134
|
+
amount_paid String? @db.VarChar(216)
|
|
2135
|
+
amount_due String? @db.VarChar(216)
|
|
2136
|
+
currency String @db.VarChar(216)
|
|
2137
|
+
receipt String @db.VarChar(216)
|
|
2138
|
+
remarks String @db.VarChar(512)
|
|
2139
|
+
status String @db.VarChar(216)
|
|
2140
|
+
notes_key_1 String @db.VarChar(216)
|
|
2141
|
+
razorpay_payment_id String @db.VarChar(216)
|
|
2142
|
+
razorpay_order_id String @db.VarChar(216)
|
|
2143
|
+
razorpay_signature String @db.VarChar(216)
|
|
2144
|
+
tokenID String @db.VarChar(216)
|
|
2145
|
+
uid String @db.VarChar(216)
|
|
2146
|
+
createdDate DateTime @db.DateTime(0)
|
|
2147
|
+
|
|
2148
|
+
@@ignore
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2152
|
+
model razorpay_mandate {
|
|
2153
|
+
id Int @id @default(autoincrement())
|
|
2154
|
+
customerID String @db.VarChar(256)
|
|
2155
|
+
accountNo String @db.VarChar(216)
|
|
2156
|
+
accountType String @db.VarChar(216)
|
|
2157
|
+
bank String @db.VarChar(216)
|
|
2158
|
+
ifsc String @db.VarChar(216)
|
|
2159
|
+
leadID String @db.VarChar(256)
|
|
2160
|
+
inv_id String @db.VarChar(256)
|
|
2161
|
+
entity String @db.VarChar(256)
|
|
2162
|
+
receipt String @db.VarChar(256)
|
|
2163
|
+
invoice_number String @db.VarChar(256)
|
|
2164
|
+
customer_id String @db.VarChar(256)
|
|
2165
|
+
cust_name String @db.VarChar(256)
|
|
2166
|
+
cust_email String @db.VarChar(256)
|
|
2167
|
+
cust_contact String @db.VarChar(256)
|
|
2168
|
+
order_id String @db.VarChar(256)
|
|
2169
|
+
status String @db.VarChar(256)
|
|
2170
|
+
sms_status String @db.VarChar(256)
|
|
2171
|
+
email_status String @db.VarChar(256)
|
|
2172
|
+
short_url String @db.VarChar(256)
|
|
2173
|
+
type String @db.VarChar(256)
|
|
2174
|
+
credated_date String @db.VarChar(216)
|
|
2175
|
+
uid String @db.VarChar(216)
|
|
2176
|
+
devices String @default("ramfin-corp") @db.VarChar(216)
|
|
2177
|
+
etype String @db.VarChar(216)
|
|
2178
|
+
token_id String @default("no") @db.VarChar(216)
|
|
2179
|
+
emMaxamount String? @db.VarChar(256)
|
|
2180
|
+
confirmed_bank Int @default(0) @db.TinyInt
|
|
2181
|
+
res_response String? @db.LongText
|
|
2182
|
+
createdAt DateTime @default(now()) @db.Timestamp(0)
|
|
2183
|
+
updatedAt DateTime @default(now()) @db.Timestamp(0)
|
|
2184
|
+
|
|
2185
|
+
@@ignore
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2189
|
+
model razorpay_mandate_status {
|
|
2190
|
+
id Int
|
|
2191
|
+
emID String @db.VarChar(256)
|
|
2192
|
+
leadID String @db.VarChar(216)
|
|
2193
|
+
customer_id String @db.VarChar(216)
|
|
2194
|
+
inv_id String @db.VarChar(216)
|
|
2195
|
+
emstatus String @db.VarChar(126)
|
|
2196
|
+
credated_date DateTime @default(now()) @db.DateTime(0)
|
|
2197
|
+
tokenID String @default("webhook") @db.VarChar(216)
|
|
2198
|
+
accountNo String? @db.VarChar(216)
|
|
2199
|
+
accountType String? @db.VarChar(216)
|
|
2200
|
+
bank String? @db.VarChar(216)
|
|
2201
|
+
ifsc String? @db.VarChar(216)
|
|
2202
|
+
|
|
2203
|
+
@@ignore
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2207
|
+
model razorpay_payout_accounts {
|
|
2208
|
+
payaccID Int
|
|
2209
|
+
customerID String @db.VarChar(256)
|
|
2210
|
+
leadID String @db.VarChar(256)
|
|
2211
|
+
acc_id String @db.VarChar(256)
|
|
2212
|
+
entity String @db.VarChar(256)
|
|
2213
|
+
contact_id String @db.VarChar(256)
|
|
2214
|
+
account_type String @db.VarChar(256)
|
|
2215
|
+
ifsc String @db.VarChar(256)
|
|
2216
|
+
bank_name String @db.VarChar(256)
|
|
2217
|
+
name String @db.VarChar(256)
|
|
2218
|
+
account_number String @db.VarChar(256)
|
|
2219
|
+
active String @db.VarChar(256)
|
|
2220
|
+
batch_id String @db.VarChar(256)
|
|
2221
|
+
createdDate String @db.VarChar(256)
|
|
2222
|
+
uid String @db.VarChar(256)
|
|
2223
|
+
|
|
2224
|
+
@@ignore
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2228
|
+
model razorpay_payout_contacts {
|
|
2229
|
+
payoutID Int
|
|
2230
|
+
customerID String @db.VarChar(216)
|
|
2231
|
+
leadID String @db.VarChar(216)
|
|
2232
|
+
cont_id String @db.VarChar(256)
|
|
2233
|
+
cont_entity String @db.VarChar(256)
|
|
2234
|
+
cont_name String @db.VarChar(256)
|
|
2235
|
+
cont_contact String @db.VarChar(256)
|
|
2236
|
+
cont_email String @db.VarChar(256)
|
|
2237
|
+
cont_type String @db.VarChar(256)
|
|
2238
|
+
cont_reference_id String @db.VarChar(256)
|
|
2239
|
+
cont_batch_id String @db.VarChar(256)
|
|
2240
|
+
cont_active String @db.VarChar(256)
|
|
2241
|
+
cont_notes_key_1 String @db.VarChar(256)
|
|
2242
|
+
cont_notes_key_2 String @db.VarChar(256)
|
|
2243
|
+
createdDate DateTime @db.DateTime(0)
|
|
2244
|
+
uid String @db.VarChar(216)
|
|
2245
|
+
|
|
2246
|
+
@@ignore
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2250
|
+
model razorpay_payout_disbured_amount {
|
|
2251
|
+
disID Int
|
|
2252
|
+
disbDate DateTime @db.Date
|
|
2253
|
+
id String @db.VarChar(256)
|
|
2254
|
+
entity String @db.VarChar(256)
|
|
2255
|
+
fund_account_id String @db.VarChar(256)
|
|
2256
|
+
amount String @db.VarChar(256)
|
|
2257
|
+
currency String @db.VarChar(256)
|
|
2258
|
+
notes_key_1 String @db.VarChar(256)
|
|
2259
|
+
notes_key_2 String @db.VarChar(256)
|
|
2260
|
+
fees String @db.VarChar(256)
|
|
2261
|
+
tax String @db.VarChar(256)
|
|
2262
|
+
status String @db.VarChar(256)
|
|
2263
|
+
utr String @db.VarChar(256)
|
|
2264
|
+
mode String @db.VarChar(256)
|
|
2265
|
+
purpose String @db.VarChar(256)
|
|
2266
|
+
reference_id String @db.VarChar(256)
|
|
2267
|
+
narration String @db.VarChar(256)
|
|
2268
|
+
batch_id String @db.VarChar(256)
|
|
2269
|
+
description String @db.VarChar(256)
|
|
2270
|
+
source String @db.VarChar(256)
|
|
2271
|
+
reason String @db.VarChar(256)
|
|
2272
|
+
merchant_id String @db.VarChar(216)
|
|
2273
|
+
status_details_id String @db.VarChar(216)
|
|
2274
|
+
customerID String @db.VarChar(256)
|
|
2275
|
+
leadID String @db.VarChar(256)
|
|
2276
|
+
credatedDate DateTime @db.DateTime(0)
|
|
2277
|
+
failure_reason String @db.VarChar(512)
|
|
2278
|
+
uid String @db.VarChar(216)
|
|
2279
|
+
reamrk String @db.MediumText
|
|
2280
|
+
api_log String? @db.LongText
|
|
2281
|
+
bank_changed Int @default(0) @db.TinyInt
|
|
2282
|
+
|
|
2283
|
+
@@ignore
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2287
|
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
2288
|
+
model reference {
|
|
2289
|
+
referenceID Int @id @default(autoincrement()) @db.UnsignedInt
|
|
2290
|
+
customerID Int
|
|
2291
|
+
relation String
|
|
2292
|
+
name String
|
|
2293
|
+
address String?
|
|
2294
|
+
city String?
|
|
2295
|
+
state String?
|
|
2296
|
+
pincode BigInt?
|
|
2297
|
+
contactNo String @db.VarChar(20)
|
|
2298
|
+
createdBy Int @default(1)
|
|
2299
|
+
createdDate DateTime? @default(now()) @db.DateTime(0)
|
|
2300
|
+
name_contact String? @db.Text
|
|
2301
|
+
reference_verify Int @default(0)
|
|
2302
|
+
is_verified Boolean @default(dbgenerated("b'0'")) @db.Bit(1)
|
|
2303
|
+
recording String? @db.Text
|
|
2304
|
+
createdByUser lms_users @relation(fields: [createdBy], references: [userID])
|
|
2305
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
2306
|
+
|
|
2307
|
+
@@index([createdBy], map: "reference_createdBy_fkey")
|
|
2308
|
+
@@index([customerID], map: "reference_customerID_fkey")
|
|
2309
|
+
@@index([contactNo])
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2313
|
+
model repaydate_holiday {
|
|
2314
|
+
id Int
|
|
2315
|
+
repaydate String? @db.Text
|
|
2316
|
+
|
|
2317
|
+
@@ignore
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2321
|
+
model review {
|
|
2322
|
+
reviewID Int
|
|
2323
|
+
customerID Int
|
|
2324
|
+
leadID Int
|
|
2325
|
+
loanNo String @db.VarChar(50)
|
|
2326
|
+
customerRemarks String @db.Text
|
|
2327
|
+
createdBy Int
|
|
2328
|
+
createdDate DateTime @default(now()) @db.Timestamp(0)
|
|
2329
|
+
|
|
2330
|
+
@@ignore
|
|
2331
|
+
}
|
|
2332
|
+
|
|
2333
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2334
|
+
model rj_api {
|
|
2335
|
+
unique_id Int
|
|
2336
|
+
mobile_number String @db.VarChar(18)
|
|
2337
|
+
message String @db.Text
|
|
2338
|
+
device_id String @db.Text
|
|
2339
|
+
IsRooted String @default("false") @db.VarChar(256)
|
|
2340
|
+
credated_date DateTime @db.DateTime(0)
|
|
2341
|
+
|
|
2342
|
+
@@ignore
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2346
|
+
model setting {
|
|
2347
|
+
id Int
|
|
2348
|
+
setting_type String? @db.Text
|
|
2349
|
+
rule String? @db.LongText
|
|
2350
|
+
|
|
2351
|
+
@@ignore
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
model settings {
|
|
2355
|
+
key String @id
|
|
2356
|
+
value String?
|
|
2357
|
+
userIds Json
|
|
2358
|
+
}
|
|
2359
|
+
|
|
2360
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2361
|
+
model states {
|
|
2362
|
+
stateID Int
|
|
2363
|
+
stateName String
|
|
2364
|
+
status Boolean @default(dbgenerated("b'1'")) @db.Bit(1)
|
|
2365
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
2366
|
+
code String @default("0") @db.VarChar(11)
|
|
2367
|
+
cibil_state_code String? @db.Text
|
|
2368
|
+
|
|
2369
|
+
@@ignore
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2373
|
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
2374
|
+
model third_party_recharge {
|
|
2375
|
+
id Int
|
|
2376
|
+
api_supplier Int @default(0)
|
|
2377
|
+
api_type String? @db.Text
|
|
2378
|
+
is_recharge_required Int @default(0)
|
|
2379
|
+
|
|
2380
|
+
@@ignore
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2384
|
+
model tl_tellecaller {
|
|
2385
|
+
id Int
|
|
2386
|
+
tl_id Int
|
|
2387
|
+
tellecaller_id Int
|
|
2388
|
+
|
|
2389
|
+
@@ignore
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2393
|
+
model tl_tellecaller_lead_assign {
|
|
2394
|
+
id Int
|
|
2395
|
+
tellecaller_id Int
|
|
2396
|
+
month String? @db.Text
|
|
2397
|
+
year String? @db.Text
|
|
2398
|
+
lead_id String? @db.Text
|
|
2399
|
+
target_amount String? @db.Text
|
|
2400
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
2401
|
+
|
|
2402
|
+
@@ignore
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2406
|
+
model user_ip_details {
|
|
2407
|
+
id Int
|
|
2408
|
+
ip String @db.VarChar(256)
|
|
2409
|
+
status String @db.VarChar(256)
|
|
2410
|
+
credated_date DateTime @default(now()) @db.DateTime(0)
|
|
2411
|
+
|
|
2412
|
+
@@ignore
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2416
|
+
model users {
|
|
2417
|
+
userID Int @id @default(autoincrement())
|
|
2418
|
+
name String @db.VarChar(100)
|
|
2419
|
+
email String
|
|
2420
|
+
mobile String @db.VarChar(20)
|
|
2421
|
+
did_no String? @db.VarChar(36)
|
|
2422
|
+
branch String
|
|
2423
|
+
userName String
|
|
2424
|
+
password String
|
|
2425
|
+
role users_role
|
|
2426
|
+
status users_status @default(Active)
|
|
2427
|
+
createdBy Int
|
|
2428
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
2429
|
+
accessPer String @db.MediumText
|
|
2430
|
+
utype String @default("ramfin-corp") @db.VarChar(216)
|
|
2431
|
+
firebase_token String? @db.Text
|
|
2432
|
+
device_token String? @db.Text
|
|
2433
|
+
lip String @default("no") @db.VarChar(64)
|
|
2434
|
+
convoque_login_id String? @db.Text
|
|
2435
|
+
convoque_exten String? @db.Text
|
|
2436
|
+
reloan_status reloan_status[]
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2439
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2440
|
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
2441
|
+
model users_lat_long {
|
|
2442
|
+
id Int
|
|
2443
|
+
user_id Int
|
|
2444
|
+
data_date String? @db.Text
|
|
2445
|
+
data String? @db.LongText
|
|
2446
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
2447
|
+
updated_at DateTime @default(now()) @db.DateTime(0)
|
|
2448
|
+
type Int @default(0)
|
|
2449
|
+
|
|
2450
|
+
@@ignore
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2454
|
+
model usersgoogle {
|
|
2455
|
+
id Int @db.UnsignedInt
|
|
2456
|
+
oauth_provider usersgoogle_oauth_provider @default(google)
|
|
2457
|
+
oauth_uid String? @db.VarChar(50)
|
|
2458
|
+
first_name String? @db.VarChar(225)
|
|
2459
|
+
last_name String? @db.VarChar(225)
|
|
2460
|
+
email String?
|
|
2461
|
+
gender String? @db.VarChar(10)
|
|
2462
|
+
picture String?
|
|
2463
|
+
created DateTime @db.DateTime(0)
|
|
2464
|
+
|
|
2465
|
+
@@ignore
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
model video_kyc {
|
|
2469
|
+
id Int @id @default(autoincrement())
|
|
2470
|
+
lead_id String @db.VarChar(50)
|
|
2471
|
+
customerID String @db.VarChar(50)
|
|
2472
|
+
mobile String @db.VarChar(20)
|
|
2473
|
+
reference_id String? @db.VarChar(100)
|
|
2474
|
+
transaction_id String? @db.VarChar(100)
|
|
2475
|
+
status String? @db.VarChar(50)
|
|
2476
|
+
request_id String? @db.VarChar(100)
|
|
2477
|
+
deeplink_url String? @db.Text
|
|
2478
|
+
created_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2482
|
+
model virtualaccount {
|
|
2483
|
+
accID Int
|
|
2484
|
+
customerID String @db.VarChar(256)
|
|
2485
|
+
leadID String @db.VarChar(256)
|
|
2486
|
+
accounID String @db.VarChar(256)
|
|
2487
|
+
name String @db.VarChar(256)
|
|
2488
|
+
customer_id String @db.VarChar(256)
|
|
2489
|
+
recid String @db.VarChar(256)
|
|
2490
|
+
entity String @db.VarChar(256)
|
|
2491
|
+
ifsc String @db.VarChar(256)
|
|
2492
|
+
bankName String @db.VarChar(256)
|
|
2493
|
+
recName String @db.VarChar(256)
|
|
2494
|
+
account_number String @db.VarChar(256)
|
|
2495
|
+
credatedDate DateTime @db.DateTime(0)
|
|
2496
|
+
uid String @db.VarChar(216)
|
|
2497
|
+
|
|
2498
|
+
@@ignore
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2502
|
+
model virtualcustomer {
|
|
2503
|
+
vcID Int
|
|
2504
|
+
customerID Int
|
|
2505
|
+
leadID Int
|
|
2506
|
+
custID String @db.VarChar(256)
|
|
2507
|
+
custName String @db.VarChar(256)
|
|
2508
|
+
custEmail String @db.VarChar(256)
|
|
2509
|
+
custMobile String @db.VarChar(20)
|
|
2510
|
+
custPan String @db.VarChar(256)
|
|
2511
|
+
credatedDate DateTime @db.DateTime(0)
|
|
2512
|
+
uid String @db.VarChar(216)
|
|
2513
|
+
|
|
2514
|
+
@@ignore
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2518
|
+
model virtualqr {
|
|
2519
|
+
vqrID Int
|
|
2520
|
+
customerID String @db.VarChar(256)
|
|
2521
|
+
leadID String @db.VarChar(256)
|
|
2522
|
+
qrid String @db.VarChar(256)
|
|
2523
|
+
name String @db.VarChar(256)
|
|
2524
|
+
qrUsage String @db.VarChar(256)
|
|
2525
|
+
type String @db.VarChar(256)
|
|
2526
|
+
image_url String @db.VarChar(512)
|
|
2527
|
+
payment_amount String @db.VarChar(256)
|
|
2528
|
+
status String @db.VarChar(256)
|
|
2529
|
+
description String @db.VarChar(256)
|
|
2530
|
+
fixed_amount String @default("false") @db.VarChar(256)
|
|
2531
|
+
customer_id String @db.VarChar(256)
|
|
2532
|
+
purpose String @db.VarChar(256)
|
|
2533
|
+
credatedDate DateTime @db.DateTime(0)
|
|
2534
|
+
uid String @db.VarChar(256)
|
|
2535
|
+
|
|
2536
|
+
@@ignore
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2540
|
+
model web_amount_d {
|
|
2541
|
+
id Int
|
|
2542
|
+
amount String @db.VarChar(256)
|
|
2543
|
+
status Int @default(0)
|
|
2544
|
+
credated_date DateTime @default(now()) @db.DateTime(0)
|
|
2545
|
+
|
|
2546
|
+
@@ignore
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2550
|
+
model website_amount {
|
|
2551
|
+
amID Int
|
|
2552
|
+
amount String @db.VarChar(64)
|
|
2553
|
+
status String @default("0") @db.VarChar(16)
|
|
2554
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
2555
|
+
|
|
2556
|
+
@@ignore
|
|
2557
|
+
}
|
|
2558
|
+
|
|
2559
|
+
model bps_logs {
|
|
2560
|
+
logID Int @id @default(autoincrement())
|
|
2561
|
+
loanID String? @db.VarChar(50)
|
|
2562
|
+
leadID String? @db.VarChar(50)
|
|
2563
|
+
customerID String @db.VarChar(50)
|
|
2564
|
+
loanNo String? @db.VarChar(50)
|
|
2565
|
+
billertxnReferenceId String @unique(map: "billertxnReferenceId")
|
|
2566
|
+
amount Decimal? @db.Decimal(10, 2)
|
|
2567
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
2568
|
+
updatedDate DateTime @default(now()) @db.DateTime(0)
|
|
2569
|
+
}
|
|
2570
|
+
|
|
2571
|
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
2572
|
+
model customerapp {
|
|
2573
|
+
customerID Int @id @default(autoincrement())
|
|
2574
|
+
name String? @db.VarChar(100)
|
|
2575
|
+
firstName String? @db.VarChar(100)
|
|
2576
|
+
middlename String? @db.VarChar(100)
|
|
2577
|
+
lastName String? @db.VarChar(100)
|
|
2578
|
+
fatherName String? @db.VarChar(100)
|
|
2579
|
+
gender customerapp_gender @default(NA)
|
|
2580
|
+
dob String? @db.Text
|
|
2581
|
+
mobile BigInt?
|
|
2582
|
+
alternateMobile String? @db.VarChar(50)
|
|
2583
|
+
email String? @db.VarChar(100)
|
|
2584
|
+
pancard String? @db.VarChar(100)
|
|
2585
|
+
aadharNo BigInt?
|
|
2586
|
+
digioKid String?
|
|
2587
|
+
digioMobileNumber String?
|
|
2588
|
+
permanent_address String? @db.Text
|
|
2589
|
+
current_address String? @db.Text
|
|
2590
|
+
password String?
|
|
2591
|
+
marrital String? @db.VarChar(10)
|
|
2592
|
+
last_login DateTime @default(now()) @db.Timestamp(0)
|
|
2593
|
+
loanApplied Boolean
|
|
2594
|
+
is_onboarded Boolean?
|
|
2595
|
+
profile String? @db.VarChar(100)
|
|
2596
|
+
otp String? @default("") @db.VarChar(20)
|
|
2597
|
+
isVerified Boolean @default(dbgenerated("b'0'")) @db.Bit(1)
|
|
2598
|
+
employeeType String? @db.VarChar(216)
|
|
2599
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
2600
|
+
loanRequeried Float?
|
|
2601
|
+
purposeloan String? @db.VarChar(256)
|
|
2602
|
+
companyName String? @db.VarChar(256)
|
|
2603
|
+
companyAddress String? @db.VarChar(512)
|
|
2604
|
+
monthlyIncome Float?
|
|
2605
|
+
salaryMode String? @db.VarChar(216)
|
|
2606
|
+
residenceType String? @db.VarChar(256)
|
|
2607
|
+
residenceAddress String? @db.VarChar(512)
|
|
2608
|
+
device String @default("apps") @db.VarChar(256)
|
|
2609
|
+
uid String? @db.VarChar(256)
|
|
2610
|
+
step String? @db.VarChar(255)
|
|
2611
|
+
state String? @db.VarChar(256)
|
|
2612
|
+
city String? @db.VarChar(256)
|
|
2613
|
+
pincode String? @db.VarChar(256)
|
|
2614
|
+
utmSource String? @db.VarChar(256)
|
|
2615
|
+
status String? @db.VarChar(256)
|
|
2616
|
+
lead_status Int @default(0)
|
|
2617
|
+
new_form Int @default(0)
|
|
2618
|
+
remark String? @db.MediumText
|
|
2619
|
+
bank_name String? @db.Text
|
|
2620
|
+
bank_ifsc String? @db.Text
|
|
2621
|
+
bank_account_no String? @db.Text
|
|
2622
|
+
bank_holder_name String? @db.Text
|
|
2623
|
+
residenceAddress2 String? @db.Text
|
|
2624
|
+
landmark String? @db.Text
|
|
2625
|
+
area String? @db.Text
|
|
2626
|
+
industry String? @db.Text
|
|
2627
|
+
designation String? @db.Text
|
|
2628
|
+
working_since String? @db.Text
|
|
2629
|
+
salary_date String? @db.Text
|
|
2630
|
+
official_email String? @db.Text
|
|
2631
|
+
education String? @db.Text
|
|
2632
|
+
pan_cust_verified Int @default(0)
|
|
2633
|
+
dob_digit_match customerapp_dob_digit_match?
|
|
2634
|
+
bureau_consent Int @default(0)
|
|
2635
|
+
token String?
|
|
2636
|
+
presalesassign Int
|
|
2637
|
+
address address[]
|
|
2638
|
+
customer customer[]
|
|
2639
|
+
customeraccount customeraccount[]
|
|
2640
|
+
document document[]
|
|
2641
|
+
employer employer[]
|
|
2642
|
+
|
|
2643
|
+
@@index([mobile], map: "mobile")
|
|
2644
|
+
@@index([last_login], map: "idx_customer_lastLogin")
|
|
2645
|
+
@@index([loanApplied], map: "idx_customer_loanApplied")
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
model disbursal_exports {
|
|
2649
|
+
id Int @id @default(autoincrement())
|
|
2650
|
+
export_hash String @db.Text
|
|
2651
|
+
created_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2654
|
+
model exported_disbursals {
|
|
2655
|
+
id Int @id @default(autoincrement())
|
|
2656
|
+
loanNo String @unique(map: "loanNo")
|
|
2657
|
+
customerID String
|
|
2658
|
+
leadID String
|
|
2659
|
+
exportDate DateTime? @default(now()) @db.DateTime(0)
|
|
2660
|
+
exportedBy Int?
|
|
2661
|
+
|
|
2662
|
+
@@index([loanNo], map: "loanNo_2")
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
model videokyc {
|
|
2666
|
+
id Int @id @default(autoincrement())
|
|
2667
|
+
leadID Int @unique
|
|
2668
|
+
status String @db.VarChar(50)
|
|
2669
|
+
completedAt DateTime? @db.DateTime(0)
|
|
2670
|
+
createdAt DateTime @default(now()) @db.DateTime(0)
|
|
2671
|
+
updatedAt DateTime @default(now()) @db.DateTime(0)
|
|
2672
|
+
videoPath String?
|
|
2673
|
+
location String?
|
|
2674
|
+
latlongAddress String? @db.Text
|
|
2675
|
+
leads leads @relation(fields: [leadID], references: [leadID])
|
|
2676
|
+
|
|
2677
|
+
@@index([leadID], map: "fk_lead")
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
model account_agg {
|
|
2681
|
+
id Int @id @default(autoincrement())
|
|
2682
|
+
customerId Int?
|
|
2683
|
+
mobileNumber String @db.VarChar(15)
|
|
2684
|
+
clienttrnxid String? @db.VarChar(100)
|
|
2685
|
+
txnid String? @db.VarChar(100)
|
|
2686
|
+
redirectionurl String? @db.Text
|
|
2687
|
+
consentStatus String? @db.VarChar(50)
|
|
2688
|
+
consentId String? @db.VarChar(100)
|
|
2689
|
+
consentStatusUpdatedAt DateTime? @db.DateTime(0)
|
|
2690
|
+
pushData Json?
|
|
2691
|
+
pushDataReceivedAt DateTime? @db.DateTime(0)
|
|
2692
|
+
createdAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2693
|
+
processed_data Json?
|
|
2694
|
+
latest_bankstatement Int?
|
|
2695
|
+
|
|
2696
|
+
@@index([customerId])
|
|
2697
|
+
@@index([mobileNumber])
|
|
2698
|
+
@@index([clienttrnxid])
|
|
2699
|
+
@@index([txnid])
|
|
2700
|
+
@@index([consentId])
|
|
2701
|
+
@@index([consentStatus])
|
|
2702
|
+
@@index([createdAt])
|
|
2703
|
+
@@index([pushDataReceivedAt])
|
|
2704
|
+
// composite indexes (VERY useful)
|
|
2705
|
+
@@index([customerId, consentStatus])
|
|
2706
|
+
@@index([mobileNumber, createdAt])
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
model cibildata {
|
|
2710
|
+
id Int @id @default(autoincrement())
|
|
2711
|
+
leadID Int
|
|
2712
|
+
requestPayload Json
|
|
2713
|
+
responsePayload Json?
|
|
2714
|
+
status String @default("pending") @db.VarChar(50)
|
|
2715
|
+
createdAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2716
|
+
updatedAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2717
|
+
analyser_data Json?
|
|
2718
|
+
response_pdf Json?
|
|
2719
|
+
pdf_password String?
|
|
2720
|
+
|
|
2721
|
+
@@index([leadID], map: "idx_leadID")
|
|
2722
|
+
@@index([status], map: "idx_status")
|
|
2723
|
+
@@index([createdAt], map: "idx_createdAt")
|
|
2724
|
+
@@index([leadID, status], map: "idx_lead_status")
|
|
2725
|
+
@@index([leadID, createdAt], map: "idx_lead_createdAt")
|
|
2726
|
+
}
|
|
2727
|
+
|
|
2728
|
+
model criffsoftpull {
|
|
2729
|
+
id Int @id @default(autoincrement())
|
|
2730
|
+
leadID Int? @unique
|
|
2731
|
+
customerID Int?
|
|
2732
|
+
requestPayload Json
|
|
2733
|
+
responsePayload Json?
|
|
2734
|
+
status String @default("pending") @db.VarChar(50)
|
|
2735
|
+
createdAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2736
|
+
updatedAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2737
|
+
|
|
2738
|
+
lead leads? @relation(fields: [leadID], references: [leadID])
|
|
2739
|
+
customer customer? @relation(fields: [customerID], references: [customerID])
|
|
2740
|
+
|
|
2741
|
+
@@index([leadID])
|
|
2742
|
+
@@index([status])
|
|
2743
|
+
@@index([customerID])
|
|
2744
|
+
@@index([customerID, leadID, createdAt], name: "idx_criffsoftpull_customer_lead_created")
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
model loan_sequence {
|
|
2748
|
+
id Int @id @default(autoincrement())
|
|
2749
|
+
prefix String @unique(map: "uq_prefix") @db.VarChar(20)
|
|
2750
|
+
last_no Int @default(0)
|
|
2751
|
+
date DateTime? @db.Date
|
|
2752
|
+
createdAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2753
|
+
updatedAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
model disbursal_export {
|
|
2757
|
+
id Int @id @default(autoincrement())
|
|
2758
|
+
customerID String @db.VarChar(255)
|
|
2759
|
+
leadID String @db.VarChar(255)
|
|
2760
|
+
export_date DateTime @default(now()) @db.DateTime(0)
|
|
2761
|
+
|
|
2762
|
+
@@unique([customerID, leadID], map: "idx_customer_lead")
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
model digitmoney_leads {
|
|
2766
|
+
id Int @id @default(autoincrement()) @db.UnsignedInt
|
|
2767
|
+
name String? @db.VarChar(255)
|
|
2768
|
+
mobile String? @unique(map: "uniq_lead_id") @db.VarChar(20)
|
|
2769
|
+
pancard String? @db.VarChar(20)
|
|
2770
|
+
email String? @db.VarChar(255)
|
|
2771
|
+
pincode String? @db.VarChar(10)
|
|
2772
|
+
monthly_income Decimal? @db.Decimal(15, 2)
|
|
2773
|
+
gender String? @db.VarChar(10)
|
|
2774
|
+
dob String? @db.VarChar(10)
|
|
2775
|
+
profession String? @db.VarChar(100)
|
|
2776
|
+
lead_id String? @db.VarChar(100)
|
|
2777
|
+
lead_type digitmoney_leads_lead_type?
|
|
2778
|
+
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
2779
|
+
updated_at DateTime @default(now()) @db.Timestamp(0)
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
model oldcrmdata {
|
|
2783
|
+
id Int @id @default(autoincrement())
|
|
2784
|
+
pan String? @db.VarChar(11)
|
|
2785
|
+
last_outstanding String? @db.VarChar(12)
|
|
2786
|
+
loan_count String? @db.VarChar(10)
|
|
2787
|
+
last_disburse String? @db.VarChar(18)
|
|
2788
|
+
last_repay String? @db.VarChar(18)
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2791
|
+
model reloan_status {
|
|
2792
|
+
id Int @id @default(autoincrement())
|
|
2793
|
+
customerID Int
|
|
2794
|
+
status reloan_status_status
|
|
2795
|
+
remark String? @db.VarChar(255)
|
|
2796
|
+
collectionUserId Int?
|
|
2797
|
+
last_leadID Int @unique(map: "last_leadID")
|
|
2798
|
+
createdAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2799
|
+
updatedAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2800
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: NoAction, onUpdate: NoAction, map: "fk_reloan_customer")
|
|
2801
|
+
users users? @relation(fields: [collectionUserId], references: [userID], onDelete: NoAction, onUpdate: NoAction, map: "fk_reloan_user")
|
|
2802
|
+
|
|
2803
|
+
@@index([customerID], map: "fk_reloan_customer")
|
|
2804
|
+
@@index([collectionUserId], map: "fk_reloan_user")
|
|
2805
|
+
}
|
|
2806
|
+
|
|
2807
|
+
model lms_users {
|
|
2808
|
+
userID Int @id @unique(map: "userID") @default(autoincrement())
|
|
2809
|
+
name String @db.VarChar(100)
|
|
2810
|
+
email String @unique(map: "email") @db.VarChar(150)
|
|
2811
|
+
mobile_number String? @db.VarChar(15)
|
|
2812
|
+
branch String? @db.VarChar(100)
|
|
2813
|
+
username String @unique(map: "username") @db.VarChar(100)
|
|
2814
|
+
password String @db.VarChar(255)
|
|
2815
|
+
otp String? @db.VarChar(255)
|
|
2816
|
+
attempts Int?
|
|
2817
|
+
expire_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2818
|
+
lock_until DateTime? @db.Timestamp(0)
|
|
2819
|
+
isVerified Boolean @default(false)
|
|
2820
|
+
role String? @db.VarChar(50)
|
|
2821
|
+
status String? @default("Active") @db.VarChar(20)
|
|
2822
|
+
session_id String? @db.VarChar(255)
|
|
2823
|
+
profile_image String? @db.Text
|
|
2824
|
+
face_descriptor Json?
|
|
2825
|
+
face_auth_bypass Boolean @default(false)
|
|
2826
|
+
created_by String? @db.VarChar(100)
|
|
2827
|
+
created_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2828
|
+
updated_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2829
|
+
approvalsCredited approval[] @relation("ApprovalCreditedByUser")
|
|
2830
|
+
approvalsSanctioned approval[] @relation("ApprovalSanctionByUser")
|
|
2831
|
+
callhistory callhistory[]
|
|
2832
|
+
callhistorylogs callhistorylogs[]
|
|
2833
|
+
collectionsCollected collection[] @relation("CollectionCollectedByUser")
|
|
2834
|
+
collectionsStatusUpdated collection[] @relation("CollectionStatusUpdatedByUser")
|
|
2835
|
+
lms_users_permissions lms_users_permissions?
|
|
2836
|
+
reference reference[]
|
|
2837
|
+
callAssignedLeads leads[] @relation("CallAssignedUser")
|
|
2838
|
+
sanctionedLeads leads[] @relation("SanctionAssignedUser")
|
|
2839
|
+
collectionAssignedLeads leads[] @relation("CollectionAssignedUser")
|
|
2840
|
+
paymentDatesCreated payment_block_dates[] @relation("UserCreatedPaymentDates")
|
|
2841
|
+
paymentDatesUpdated payment_block_dates[] @relation("UserUpdatedPaymentDates")
|
|
2842
|
+
creditRemarks credit_remarks[]
|
|
2843
|
+
customercallingremarks customer_calling_remarks[]
|
|
2844
|
+
smartping_call_log smartping_call_log[]
|
|
2845
|
+
assignedCustomers customer[] @relation("CustomerPresalesAssign")
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
model lms_users_permissions {
|
|
2849
|
+
id BigInt @id @default(autoincrement()) @db.UnsignedBigInt
|
|
2850
|
+
user_id Int @unique
|
|
2851
|
+
sidebar_access Json?
|
|
2852
|
+
profile_access Json?
|
|
2853
|
+
users_permissions Json?
|
|
2854
|
+
reports_sidebar Json?
|
|
2855
|
+
reports_access Json?
|
|
2856
|
+
|
|
2857
|
+
created_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2858
|
+
updated_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2859
|
+
lms_users lms_users @relation(fields: [user_id], references: [userID], onDelete: Cascade, onUpdate: NoAction, map: "lms_users_permissions_ibfk_1")
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
model emandate_charge {
|
|
2863
|
+
id Int @id @default(autoincrement()) @db.UnsignedInt
|
|
2864
|
+
emandate_id Int @db.UnsignedInt
|
|
2865
|
+
order_id String @db.VarChar(255)
|
|
2866
|
+
amount Decimal @db.Decimal(15, 2)
|
|
2867
|
+
razorpay_payment_id String? @db.VarChar(255)
|
|
2868
|
+
response Json?
|
|
2869
|
+
created_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2870
|
+
updated_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2871
|
+
emandates emandates @relation(fields: [emandate_id], references: [id], onDelete: Cascade, map: "fk_emandate_charge_emandate")
|
|
2872
|
+
|
|
2873
|
+
@@index([emandate_id], map: "fk_emandate_charge_emandate")
|
|
2874
|
+
}
|
|
2875
|
+
|
|
2876
|
+
model bankstatement {
|
|
2877
|
+
id Int @id @default(autoincrement())
|
|
2878
|
+
customerID Int
|
|
2879
|
+
leadID Int?
|
|
2880
|
+
pushData Json?
|
|
2881
|
+
documentFile String? @db.VarChar(255)
|
|
2882
|
+
password String? @db.VarChar(255)
|
|
2883
|
+
status Boolean? @default(false)
|
|
2884
|
+
verifiedBy Int?
|
|
2885
|
+
verifiedDate DateTime? @db.Date
|
|
2886
|
+
uploadBy Int?
|
|
2887
|
+
uploadedDate DateTime? @db.Date
|
|
2888
|
+
analyser_data Json?
|
|
2889
|
+
user_requirement Json?
|
|
2890
|
+
bank_analysis bank_analysis?
|
|
2891
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_1")
|
|
2892
|
+
leads leads? @relation(fields: [leadID], references: [leadID], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_3")
|
|
2893
|
+
|
|
2894
|
+
@@index([leadID], map: "leadID")
|
|
2895
|
+
@@index([customerID], map: "bankstatement_ibfk_1")
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
model bank_analysis {
|
|
2899
|
+
id Int @id @default(autoincrement())
|
|
2900
|
+
statementId Int @unique
|
|
2901
|
+
customerID Int
|
|
2902
|
+
clienttrnxid String @unique
|
|
2903
|
+
analysisData Json?
|
|
2904
|
+
status bankanalysisStatus
|
|
2905
|
+
updated_at DateTime @updatedAt
|
|
2906
|
+
createdAt DateTime @default(now())
|
|
2907
|
+
bankstatement bankstatement @relation(fields: [statementId], references: [id])
|
|
2908
|
+
|
|
2909
|
+
@@index([statementId], map: "statementId")
|
|
2910
|
+
@@index([clienttrnxid], map: "clienttrnxid")
|
|
2911
|
+
@@index([customerID], map: "bankstatement_ibfk_1")
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
model disbursement_requests {
|
|
2915
|
+
id BigInt @id @default(autoincrement())
|
|
2916
|
+
loanId Int @unique()
|
|
2917
|
+
fund_account_id String @db.VarChar(50)
|
|
2918
|
+
amount Decimal @db.Decimal(12, 2)
|
|
2919
|
+
status disbursement_requests_status
|
|
2920
|
+
razorpay_payout_id String? @db.VarChar(50)
|
|
2921
|
+
action String? @db.VarChar(50)
|
|
2922
|
+
performed_by BigInt?
|
|
2923
|
+
payload Json?
|
|
2924
|
+
response Json?
|
|
2925
|
+
loan loan @relation(fields: [loanId], references: [id])
|
|
2926
|
+
updated_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2927
|
+
created_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
model AIAgentCallLog {
|
|
2931
|
+
id String @id @default(cuid())
|
|
2932
|
+
customerID Int
|
|
2933
|
+
customerName String?
|
|
2934
|
+
mobile String
|
|
2935
|
+
campaignType String
|
|
2936
|
+
provider String @default("BOLNA")
|
|
2937
|
+
providerNumber String?
|
|
2938
|
+
bolnaAgentId String?
|
|
2939
|
+
bolnaExecutionId String? @unique
|
|
2940
|
+
status String @default("PENDING")
|
|
2941
|
+
callStatus String?
|
|
2942
|
+
hangupStatus String?
|
|
2943
|
+
transcript String? @db.LongText
|
|
2944
|
+
summary String? @db.LongText
|
|
2945
|
+
extractedData Json?
|
|
2946
|
+
errorMessage String? @db.Text
|
|
2947
|
+
durationSeconds Int?
|
|
2948
|
+
cost Float?
|
|
2949
|
+
scheduledFor DateTime?
|
|
2950
|
+
initiatedAt DateTime?
|
|
2951
|
+
completedAt DateTime?
|
|
2952
|
+
createdAt DateTime @default(now())
|
|
2953
|
+
updatedAt DateTime @updatedAt
|
|
2954
|
+
|
|
2955
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
2956
|
+
|
|
2957
|
+
@@unique([customerID, campaignType])
|
|
2958
|
+
@@index([campaignType, status, scheduledFor])
|
|
2959
|
+
@@index([customerID])
|
|
2960
|
+
}
|
|
2961
|
+
|
|
2962
|
+
model cibil_fetch_logs {
|
|
2963
|
+
id Int @id @default(autoincrement())
|
|
2964
|
+
leadID Int
|
|
2965
|
+
pan String
|
|
2966
|
+
bureau String
|
|
2967
|
+
request_payload Json?
|
|
2968
|
+
status String @default("PENDING")
|
|
2969
|
+
error_message String?
|
|
2970
|
+
createdAt DateTime @default(now())
|
|
2971
|
+
updatedAt DateTime @updatedAt
|
|
2972
|
+
|
|
2973
|
+
@@index([leadID])
|
|
2974
|
+
@@index([bureau])
|
|
2975
|
+
@@index([status])
|
|
2976
|
+
@@index([createdAt])
|
|
2977
|
+
}
|
|
2978
|
+
|
|
2979
|
+
model criff_test {
|
|
2980
|
+
id Int @id @default(autoincrement())
|
|
2981
|
+
leadID Int
|
|
2982
|
+
domain String @db.VarChar(50)
|
|
2983
|
+
criff Json
|
|
2984
|
+
|
|
2985
|
+
createdAt DateTime @default(now()) @db.Timestamp(0)
|
|
2986
|
+
updatedAt DateTime @updatedAt @db.Timestamp(0)
|
|
2987
|
+
|
|
2988
|
+
@@unique([leadID, domain])
|
|
2989
|
+
@@index([leadID])
|
|
2990
|
+
@@index([domain])
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
model credforge_bre_log {
|
|
2994
|
+
id Int @id @default(autoincrement())
|
|
2995
|
+
leadID Int?
|
|
2996
|
+
customerID Int?
|
|
2997
|
+
workflowName String
|
|
2998
|
+
requestPayload Json
|
|
2999
|
+
responsePayload Json?
|
|
3000
|
+
loanAmount Float?
|
|
3001
|
+
status String?
|
|
3002
|
+
reason String?
|
|
3003
|
+
decile Int?
|
|
3004
|
+
internalReason String?
|
|
3005
|
+
createdAt DateTime @default(now())
|
|
3006
|
+
leads leads? @relation(fields: [leadID], references: [leadID])
|
|
3007
|
+
customer customer? @relation(fields: [customerID], references: [customerID])
|
|
3008
|
+
|
|
3009
|
+
@@index([leadID])
|
|
3010
|
+
@@index([status])
|
|
3011
|
+
@@index([customerID])
|
|
3012
|
+
@@index([decile])
|
|
3013
|
+
@@index([customerID, workflowName, createdAt], name: "idx_bre_customer_workflow_created")
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
model credit_improve_customer {
|
|
3017
|
+
ID Int @id @default(autoincrement())
|
|
3018
|
+
customerID Int @unique()
|
|
3019
|
+
name String? @db.VarChar(100)
|
|
3020
|
+
firstName String? @db.VarChar(100)
|
|
3021
|
+
middlename String? @db.VarChar(100)
|
|
3022
|
+
lastName String? @db.VarChar(100)
|
|
3023
|
+
fatherName String? @db.VarChar(100)
|
|
3024
|
+
gender customer_gender? @default(NA)
|
|
3025
|
+
dob DateTime? @db.Date
|
|
3026
|
+
mobile BigInt
|
|
3027
|
+
email String? @db.VarChar(100)
|
|
3028
|
+
pancard String? @db.VarChar(100)
|
|
3029
|
+
aadharNo BigInt?
|
|
3030
|
+
otp String? @default("") @db.VarChar(20)
|
|
3031
|
+
emailOtp String? @db.VarChar(10)
|
|
3032
|
+
emailVerify Boolean? @default(false)
|
|
3033
|
+
refreshToken String? @db.VarChar(100)
|
|
3034
|
+
isVerified Boolean @default(dbgenerated("b'0'")) @db.Bit(1)
|
|
3035
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
3036
|
+
pan_cust_verified Int @default(0)
|
|
3037
|
+
updatedAt DateTime? @default(now()) @updatedAt @db.Timestamp(0)
|
|
3038
|
+
utmSource String? @db.VarChar(256)
|
|
3039
|
+
alternateMobile String? @db.VarChar(50)
|
|
3040
|
+
current_address Json?
|
|
3041
|
+
digioKid String?
|
|
3042
|
+
razorpay_cust_id String?
|
|
3043
|
+
razorpay_fund_id String?
|
|
3044
|
+
digioToken String? @db.VarChar(100)
|
|
3045
|
+
kyc_at DateTime? @default(now()) @db.Timestamp(0)
|
|
3046
|
+
is_onboarded Boolean @default(false)
|
|
3047
|
+
document Json?
|
|
3048
|
+
last_login DateTime @default(now()) @db.Timestamp(0)
|
|
3049
|
+
loanApplied Boolean @default(false)
|
|
3050
|
+
permanent_address Json?
|
|
3051
|
+
step String? @db.VarChar(255)
|
|
3052
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
3053
|
+
creaditImproveLeads credit_improve_leads[]
|
|
3054
|
+
creditImproveEsigns credit_improve_esign[]
|
|
3055
|
+
|
|
3056
|
+
@@index([mobile], map: "idx_customer_mobile")
|
|
3057
|
+
@@index([pancard], map: "idx_customer_pancard")
|
|
3058
|
+
@@index([aadharNo], map: "idx_customer_aadhar")
|
|
3059
|
+
@@index([createdDate], map: "idx_customer_createdDate")
|
|
3060
|
+
@@index([utmSource], map: "idx_customer_utmSource")
|
|
3061
|
+
@@index([mobile, createdDate], map: "idx_mobile_created")
|
|
3062
|
+
@@index([pancard, createdDate], map: "idx_pan_created")
|
|
3063
|
+
@@index([utmSource, createdDate], map: "idx_source_created")
|
|
3064
|
+
}
|
|
3065
|
+
|
|
3066
|
+
model credit_improve_leads {
|
|
3067
|
+
leadID Int @id @default(autoincrement())
|
|
3068
|
+
customerID Int
|
|
3069
|
+
|
|
3070
|
+
purpose String? @db.VarChar(255)
|
|
3071
|
+
loanRequeried Float @default(500)
|
|
3072
|
+
status leads_status
|
|
3073
|
+
utmSource String @default("Website") @db.VarChar(100)
|
|
3074
|
+
fbLeads String?
|
|
3075
|
+
ip String
|
|
3076
|
+
callAssign Int
|
|
3077
|
+
creditAssign Int
|
|
3078
|
+
collectionUID Int?
|
|
3079
|
+
createdDate DateTime @default(now()) @db.Timestamp(0)
|
|
3080
|
+
updatedAt DateTime @default(now()) @db.DateTime(0)
|
|
3081
|
+
sanctionalloUID Int
|
|
3082
|
+
loanType lead_loan_type @default(improve_credit)
|
|
3083
|
+
consentOtp String?
|
|
3084
|
+
consentVerify Boolean @default(false)
|
|
3085
|
+
consentAt DateTime? @default(now()) @db.Timestamp(0)
|
|
3086
|
+
|
|
3087
|
+
customer credit_improve_customer @relation(fields: [customerID], references: [ID])
|
|
3088
|
+
creditApprovals credit_improve_approval[] @relation("CreditImproveApprovalToLead")
|
|
3089
|
+
creditImproveLoan credit_improve_loan?
|
|
3090
|
+
creditImproveCollections credit_improve_collection[] @relation("CreditImproveCollectionToLead")
|
|
3091
|
+
creditImprovePayout credit_improve_payout?
|
|
3092
|
+
creditImproveEsigns credit_improve_esign?
|
|
3093
|
+
|
|
3094
|
+
@@index([customerID], map: "idx_customerID")
|
|
3095
|
+
@@index([status], map: "idx_status")
|
|
3096
|
+
@@index([utmSource], map: "idx_utmSource")
|
|
3097
|
+
@@index([fbLeads], map: "idx_fbLeads")
|
|
3098
|
+
@@index([callAssign], map: "idx_callAssign")
|
|
3099
|
+
@@index([collectionUID], map: "idx_collectionUID")
|
|
3100
|
+
@@index([sanctionalloUID], map: "idx_sanctionalloUID")
|
|
3101
|
+
@@index([createdDate], map: "idx_createdDate")
|
|
3102
|
+
@@index([updatedAt], map: "idx_updatedAt")
|
|
3103
|
+
@@index([loanType], map: "idx_loanType")
|
|
3104
|
+
}
|
|
3105
|
+
|
|
3106
|
+
model credit_improve_approval {
|
|
3107
|
+
approvalID Int @id @default(autoincrement())
|
|
3108
|
+
customerID Int?
|
|
3109
|
+
leadID Int
|
|
3110
|
+
loanType Int @default(0)
|
|
3111
|
+
productType String?
|
|
3112
|
+
branch String
|
|
3113
|
+
loanAmtApproved Float @default(0)
|
|
3114
|
+
tenure Int
|
|
3115
|
+
roi Float
|
|
3116
|
+
repayDate DateTime @db.Date
|
|
3117
|
+
adminFee Float
|
|
3118
|
+
plateFormFee Float? @default(0)
|
|
3119
|
+
creditRiskAnalisys Float? @default(0)
|
|
3120
|
+
GstOfAdminFee Float? @default(0)
|
|
3121
|
+
alternateMobile String @db.VarChar(20)
|
|
3122
|
+
officialEmail String @db.VarChar(100)
|
|
3123
|
+
monthlyIncome Float @default(0)
|
|
3124
|
+
cibil Int
|
|
3125
|
+
activePaydayLoan Int @default(0)
|
|
3126
|
+
status approval_status
|
|
3127
|
+
remark String?
|
|
3128
|
+
loanRequirePurpose String?
|
|
3129
|
+
creditedBy Int?
|
|
3130
|
+
rejectionReason String?
|
|
3131
|
+
redFlag String?
|
|
3132
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
3133
|
+
updatedAt DateTime @default(now()) @db.DateTime(0)
|
|
3134
|
+
customerApproval approval_customerApproval @default(ZERO)
|
|
3135
|
+
|
|
3136
|
+
creditLead credit_improve_leads @relation("CreditImproveApprovalToLead", fields: [leadID], references: [leadID])
|
|
3137
|
+
|
|
3138
|
+
@@index([leadID])
|
|
3139
|
+
}
|
|
3140
|
+
|
|
3141
|
+
model credit_improve_loan {
|
|
3142
|
+
id Int @id @default(autoincrement())
|
|
3143
|
+
leadID Int @unique
|
|
3144
|
+
loanNo String @unique
|
|
3145
|
+
customerID Int?
|
|
3146
|
+
disbursalAmount Float
|
|
3147
|
+
disbursalDate String? @db.Text
|
|
3148
|
+
disbursalTime DateTime @default(dbgenerated("'00:00:00'")) @db.Time(0)
|
|
3149
|
+
disbursalRefrenceNo String?
|
|
3150
|
+
accountNo String @db.VarChar(100)
|
|
3151
|
+
accountType String @db.VarChar(100)
|
|
3152
|
+
bankIfsc String @db.VarChar(100)
|
|
3153
|
+
bank String
|
|
3154
|
+
bankBranch String
|
|
3155
|
+
pdDate DateTime @db.Date
|
|
3156
|
+
pdDoneBy String @db.VarChar(100)
|
|
3157
|
+
deduction Float @default(0)
|
|
3158
|
+
remarks String
|
|
3159
|
+
status loan_status
|
|
3160
|
+
rejReason String? @db.VarChar(256)
|
|
3161
|
+
ip String @db.VarChar(100)
|
|
3162
|
+
disbursedBy Int?
|
|
3163
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
3164
|
+
updatedAt DateTime @default(now()) @db.DateTime(0)
|
|
3165
|
+
|
|
3166
|
+
lead credit_improve_leads @relation(fields: [leadID], references: [leadID])
|
|
3167
|
+
|
|
3168
|
+
@@index([customerID])
|
|
3169
|
+
@@index([status])
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
model credit_improve_collection {
|
|
3173
|
+
collectionID Int @id @default(autoincrement())
|
|
3174
|
+
customerID String? @db.VarChar(50)
|
|
3175
|
+
leadID Int
|
|
3176
|
+
loanNo String
|
|
3177
|
+
|
|
3178
|
+
collectedAmount Float
|
|
3179
|
+
penaltyAmount Float?
|
|
3180
|
+
collectedMode collection_collectedMode @default(NA)
|
|
3181
|
+
collectedDate DateTime @db.Date
|
|
3182
|
+
referenceNo String
|
|
3183
|
+
discountAmount Float @default(0)
|
|
3184
|
+
settlemenAmount Float @default(0)
|
|
3185
|
+
status collection_status
|
|
3186
|
+
remark String
|
|
3187
|
+
collectedBy Int
|
|
3188
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
3189
|
+
|
|
3190
|
+
collectionStatus String @default("Approved") @db.VarChar(216)
|
|
3191
|
+
collectionStatusby Int?
|
|
3192
|
+
approvedDate DateTime? @db.DateTime(0)
|
|
3193
|
+
|
|
3194
|
+
creditLead credit_improve_leads @relation("CreditImproveCollectionToLead", fields: [leadID], references: [leadID])
|
|
3195
|
+
|
|
3196
|
+
@@index([leadID])
|
|
3197
|
+
}
|
|
3198
|
+
|
|
3199
|
+
model credit_improve_payout {
|
|
3200
|
+
id Int @id @default(autoincrement())
|
|
3201
|
+
razorpayPayoutId String? @unique
|
|
3202
|
+
fundAccountId String
|
|
3203
|
+
amount BigInt
|
|
3204
|
+
status PayoutStatus
|
|
3205
|
+
performed_by Int?
|
|
3206
|
+
payload Json?
|
|
3207
|
+
response Json?
|
|
3208
|
+
narration String?
|
|
3209
|
+
referenceId String?
|
|
3210
|
+
failureReason String?
|
|
3211
|
+
statusReason String?
|
|
3212
|
+
statusDescription String?
|
|
3213
|
+
statusSource String?
|
|
3214
|
+
createdAtRzp BigInt?
|
|
3215
|
+
isTerminal Boolean @default(false)
|
|
3216
|
+
leadId Int @unique()
|
|
3217
|
+
credit_leads credit_improve_leads @relation(fields: [leadId], references: [leadID])
|
|
3218
|
+
|
|
3219
|
+
createdAt DateTime? @default(now()) @db.Timestamp(0)
|
|
3220
|
+
updatedAt DateTime @updatedAt
|
|
3221
|
+
|
|
3222
|
+
statusHistory credit_improve_PayoutStatusHistory[]
|
|
3223
|
+
}
|
|
3224
|
+
|
|
3225
|
+
model credit_improve_PayoutStatusHistory {
|
|
3226
|
+
id Int @id @default(autoincrement())
|
|
3227
|
+
payoutId Int
|
|
3228
|
+
oldStatus PayoutStatus?
|
|
3229
|
+
newStatus PayoutStatus
|
|
3230
|
+
performed_by Int?
|
|
3231
|
+
createdAt DateTime @default(now())
|
|
3232
|
+
|
|
3233
|
+
payout credit_improve_payout @relation(fields: [payoutId], references: [id])
|
|
3234
|
+
}
|
|
3235
|
+
|
|
3236
|
+
model credit_improve_esign {
|
|
3237
|
+
id Int @id @default(autoincrement())
|
|
3238
|
+
customerID Int
|
|
3239
|
+
leadID Int @unique
|
|
3240
|
+
documentHash String?
|
|
3241
|
+
documentUrl String?
|
|
3242
|
+
signedDocumentUrl String?
|
|
3243
|
+
signatureData String? @db.LongText
|
|
3244
|
+
status String @default("PENDING")
|
|
3245
|
+
consentAccepted Boolean @default(false)
|
|
3246
|
+
createdAt DateTime @default(now())
|
|
3247
|
+
signedAt DateTime?
|
|
3248
|
+
updatedAt DateTime @updatedAt
|
|
3249
|
+
ipAddress String?
|
|
3250
|
+
userAgent String?
|
|
3251
|
+
leads credit_improve_leads @relation(fields: [leadID], references: [leadID])
|
|
3252
|
+
customer credit_improve_customer @relation(fields: [customerID], references: [ID])
|
|
3253
|
+
|
|
3254
|
+
@@index([customerID])
|
|
3255
|
+
@@index([leadID])
|
|
3256
|
+
}
|
|
3257
|
+
|
|
3258
|
+
enum usersgoogle_oauth_provider {
|
|
3259
|
+
google
|
|
3260
|
+
facebook
|
|
3261
|
+
twitter
|
|
3262
|
+
linkedin
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
enum address_type {
|
|
3266
|
+
Permanent_Address @map("Permanent Address")
|
|
3267
|
+
Current_Address @map("Current Address")
|
|
3268
|
+
Rent
|
|
3269
|
+
Owned
|
|
3270
|
+
}
|
|
3271
|
+
|
|
3272
|
+
enum company_payout_accounts_selected {
|
|
3273
|
+
ZERO @map("0")
|
|
3274
|
+
ONE @map("1")
|
|
3275
|
+
}
|
|
3276
|
+
|
|
3277
|
+
enum app_lead_gender {
|
|
3278
|
+
Male
|
|
3279
|
+
Female
|
|
3280
|
+
NA
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3283
|
+
enum blacklistcustomerleadlog_gender {
|
|
3284
|
+
Male
|
|
3285
|
+
Female
|
|
3286
|
+
NA
|
|
3287
|
+
}
|
|
3288
|
+
|
|
3289
|
+
enum customer_gender {
|
|
3290
|
+
Male
|
|
3291
|
+
Female
|
|
3292
|
+
NA
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
enum document_status {
|
|
3296
|
+
Verified
|
|
3297
|
+
Pending
|
|
3298
|
+
Rejected
|
|
3299
|
+
}
|
|
3300
|
+
|
|
3301
|
+
enum collection_collectedMode {
|
|
3302
|
+
Account
|
|
3303
|
+
UPI
|
|
3304
|
+
Cash
|
|
3305
|
+
PayTM
|
|
3306
|
+
E_Mandate @map("E-Mandate")
|
|
3307
|
+
Payment_Getway @map("Payment Getway")
|
|
3308
|
+
HYPTO_Bank__Virtual_A_c @map("HYPTO Bank- Virtual A/c")
|
|
3309
|
+
Razorpay_Bank @map("Razorpay Bank")
|
|
3310
|
+
RAZORPAY_PAYMENT_GATEWAY @map("RAZORPAY PAYMENT GATEWAY")
|
|
3311
|
+
EASEBUZZ_PAYMENT_GATEWAY @map("EASEBUZZ PAYMENT GATEWAY")
|
|
3312
|
+
GOOGLE_PAY @map("GOOGLE PAY")
|
|
3313
|
+
CASHFREE_PAYMENT_GATEWAY @map("CASHFREE PAYMENT GATEWAY")
|
|
3314
|
+
ICICI_BANK_1435 @map("ICICI BANK-1435")
|
|
3315
|
+
ICICI_BANK_7788 @map("ICICI BANK-7788")
|
|
3316
|
+
CUB
|
|
3317
|
+
IDBI_Bank_4213 @map("IDBI Bank-4213")
|
|
3318
|
+
SOUTH_INDIAN_4754 @map("SOUTH INDIAN-4754")
|
|
3319
|
+
CSB_BANK_5000 @map("CSB BANK-5000")
|
|
3320
|
+
INDUSIND_BANK_9999 @map("INDUSIND BANK-9999")
|
|
3321
|
+
BHARAT_SONI_PAYTM @map("BHARAT SONI PAYTM")
|
|
3322
|
+
NA
|
|
3323
|
+
TEMP_8483 @map("TEMP-8483")
|
|
3324
|
+
DISCOUNT
|
|
3325
|
+
IDFC
|
|
3326
|
+
}
|
|
3327
|
+
|
|
3328
|
+
enum address_status {
|
|
3329
|
+
Verified
|
|
3330
|
+
Not_Verified @map("Not Verified")
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3333
|
+
enum users_role {
|
|
3334
|
+
Admin
|
|
3335
|
+
Calling_Team @map("Calling Team")
|
|
3336
|
+
Credit_Team @map("Credit Team")
|
|
3337
|
+
Disbursal_Team @map("Disbursal Team")
|
|
3338
|
+
Collection_Team @map("Collection Team")
|
|
3339
|
+
Accounts
|
|
3340
|
+
PD_Team @map("PD Team")
|
|
3341
|
+
MIS_Team @map("MIS Team")
|
|
3342
|
+
CA
|
|
3343
|
+
Field_Officer @map("Field Officer")
|
|
3344
|
+
Collection_Third @map("Collection Third")
|
|
3345
|
+
}
|
|
3346
|
+
|
|
3347
|
+
enum banks_status {
|
|
3348
|
+
ZERO @map("0")
|
|
3349
|
+
ONE @map("1")
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
enum users_status {
|
|
3353
|
+
Active
|
|
3354
|
+
In_Active @map("In Active")
|
|
3355
|
+
}
|
|
3356
|
+
|
|
3357
|
+
enum customeraccount_status {
|
|
3358
|
+
Verified
|
|
3359
|
+
Not_Verified @map("Not Verified")
|
|
3360
|
+
}
|
|
3361
|
+
|
|
3362
|
+
enum blacklistcustomerleadlog_employeeType {
|
|
3363
|
+
Salaried
|
|
3364
|
+
Self_Employee @map("Self Employee")
|
|
3365
|
+
Professional
|
|
3366
|
+
Not_Employed @map("Not Employed")
|
|
3367
|
+
}
|
|
3368
|
+
|
|
3369
|
+
enum collection_status {
|
|
3370
|
+
Closed
|
|
3371
|
+
Part_Payment @map("Part Payment")
|
|
3372
|
+
Settlement
|
|
3373
|
+
EMI_Closed @map("EMI Closed")
|
|
3374
|
+
}
|
|
3375
|
+
|
|
3376
|
+
enum leads_status {
|
|
3377
|
+
Fresh_Lead @map("Fresh Lead")
|
|
3378
|
+
Callback
|
|
3379
|
+
Interested
|
|
3380
|
+
Not_Interested @map("Not Interested")
|
|
3381
|
+
Wrong_Number @map("Wrong Number")
|
|
3382
|
+
Document_Received @map("Document Received")
|
|
3383
|
+
Approved
|
|
3384
|
+
Hold
|
|
3385
|
+
Disbursal_Sheet_Send @map("Disbursal Sheet Send")
|
|
3386
|
+
Disbursed
|
|
3387
|
+
Closed
|
|
3388
|
+
Part_Payment @map("Part Payment")
|
|
3389
|
+
Settlement
|
|
3390
|
+
Incomplete_Documents @map("Incomplete Documents")
|
|
3391
|
+
DNC
|
|
3392
|
+
Rejected
|
|
3393
|
+
Not_Eligible @map("Not Eligible")
|
|
3394
|
+
Duplicate
|
|
3395
|
+
Other
|
|
3396
|
+
No_Answer @map("No Answer")
|
|
3397
|
+
EMI_Paid @map("EMI Paid")
|
|
3398
|
+
Less_Salary @map("Less Salary")
|
|
3399
|
+
Out_of_Range @map("Out of Range")
|
|
3400
|
+
EMI_PRECLOSE @map("EMI PRECLOSE")
|
|
3401
|
+
Bank_Update_Rejected @map("Bank Update Rejected")
|
|
3402
|
+
Approved_Process @map("Approved Process")
|
|
3403
|
+
Rejected_Process @map("Rejected Process")
|
|
3404
|
+
Hold_Process @map("Hold Process")
|
|
3405
|
+
Not_Required @map("Not Required")
|
|
3406
|
+
Not_Required_Process @map("Not Required Process")
|
|
3407
|
+
Blacklisted
|
|
3408
|
+
Disbursal_Approved @map("Disbursal Approved")
|
|
3409
|
+
Bank_Update_Hold @map("Bank Update Hold")
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
enum lead_loan_type {
|
|
3413
|
+
Payday
|
|
3414
|
+
improve_credit @map("Improve Credit")
|
|
3415
|
+
}
|
|
3416
|
+
|
|
3417
|
+
enum leads2_status {
|
|
3418
|
+
Fresh_Lead @map("Fresh Lead")
|
|
3419
|
+
Callback
|
|
3420
|
+
Interested
|
|
3421
|
+
Not_Interested @map("Not Interested")
|
|
3422
|
+
Wrong_Number @map("Wrong Number")
|
|
3423
|
+
Document_Received @map("Document Received")
|
|
3424
|
+
Approved
|
|
3425
|
+
Hold
|
|
3426
|
+
Disbursal_Sheet_Send @map("Disbursal Sheet Send")
|
|
3427
|
+
Disbursed
|
|
3428
|
+
Closed
|
|
3429
|
+
Part_Payment @map("Part Payment")
|
|
3430
|
+
Settlement
|
|
3431
|
+
Incomplete_Documents @map("Incomplete Documents")
|
|
3432
|
+
DNC
|
|
3433
|
+
Rejected
|
|
3434
|
+
Not_Eligible @map("Not Eligible")
|
|
3435
|
+
Duplicate
|
|
3436
|
+
Other
|
|
3437
|
+
No_Answer @map("No Answer")
|
|
3438
|
+
EMI_Paid @map("EMI Paid")
|
|
3439
|
+
Less_Salary @map("Less Salary")
|
|
3440
|
+
Out_of_Range @map("Out of Range")
|
|
3441
|
+
EMI_PRECLOSE @map("EMI PRECLOSE")
|
|
3442
|
+
Bank_Update_Rejected @map("Bank Update Rejected")
|
|
3443
|
+
Approved_Process @map("Approved Process")
|
|
3444
|
+
Rejected_Process @map("Rejected Process")
|
|
3445
|
+
Hold_Process @map("Hold Process")
|
|
3446
|
+
Not_Required @map("Not Required")
|
|
3447
|
+
Not_Required_Process @map("Not Required Process")
|
|
3448
|
+
Blacklisted
|
|
3449
|
+
Disbursal_Approved @map("Disbursal Approved")
|
|
3450
|
+
Bank_Update_Hold @map("Bank Update Hold")
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
enum employer_status {
|
|
3454
|
+
Verified
|
|
3455
|
+
Not_Verified @map("Not Verified")
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3458
|
+
enum customer_employeeType {
|
|
3459
|
+
Salaried
|
|
3460
|
+
Self_Employee @map("Self Employee")
|
|
3461
|
+
Professional
|
|
3462
|
+
Not_Employed @map("Not Employed")
|
|
3463
|
+
NA
|
|
3464
|
+
}
|
|
3465
|
+
|
|
3466
|
+
enum loan_status {
|
|
3467
|
+
Disbursed
|
|
3468
|
+
Disbursal_Sheet_Send @map("Disbursal Sheet Send")
|
|
3469
|
+
Failed
|
|
3470
|
+
Refund
|
|
3471
|
+
Bank_Update_Rejected @map("Bank Update Rejected")
|
|
3472
|
+
Disbursal_Approved @map("Disbursal Approved")
|
|
3473
|
+
Bank_Update_Hold @map("Bank Update Hold")
|
|
3474
|
+
}
|
|
3475
|
+
|
|
3476
|
+
enum loan_ac_remove_logs_status {
|
|
3477
|
+
Disbursed
|
|
3478
|
+
Disbursal_Sheet_Send @map("Disbursal Sheet Send")
|
|
3479
|
+
Failed
|
|
3480
|
+
Refund
|
|
3481
|
+
Bank_Update_Rejected @map("Bank Update Rejected")
|
|
3482
|
+
Disbursal_Approved @map("Disbursal Approved")
|
|
3483
|
+
}
|
|
3484
|
+
|
|
3485
|
+
enum customer_dob_digit_match {
|
|
3486
|
+
ZERO @map("0")
|
|
3487
|
+
ONE @map("1")
|
|
3488
|
+
}
|
|
3489
|
+
|
|
3490
|
+
enum approval_status {
|
|
3491
|
+
Approved
|
|
3492
|
+
Rejected
|
|
3493
|
+
Hold
|
|
3494
|
+
Approved_Process @map("Approved Process")
|
|
3495
|
+
Rejected_Process @map("Rejected Process")
|
|
3496
|
+
Hold_Process @map("Hold Process")
|
|
3497
|
+
Not_Required @map("Not Required")
|
|
3498
|
+
Not_Required_Process @map("Not Required Process")
|
|
3499
|
+
}
|
|
3500
|
+
|
|
3501
|
+
model fi {
|
|
3502
|
+
fiID Int @id @default(autoincrement())
|
|
3503
|
+
leadID Int
|
|
3504
|
+
customerID Int?
|
|
3505
|
+
bucket fi_bucket?
|
|
3506
|
+
overdueDays Int?
|
|
3507
|
+
interactionStatus fi_interactionStatus @default(INITIATED)
|
|
3508
|
+
latestNoticeType String? @db.VarChar(50)
|
|
3509
|
+
lastNoticeSentAt DateTime?
|
|
3510
|
+
caseClosed Boolean @default(false)
|
|
3511
|
+
caseClosedAt DateTime?
|
|
3512
|
+
createdAt DateTime @default(now())
|
|
3513
|
+
updatedAt DateTime @updatedAt
|
|
3514
|
+
assignedUserID Int?
|
|
3515
|
+
loanAmtApproved Int?
|
|
3516
|
+
sourceDomain String @db.VarChar(50)
|
|
3517
|
+
city String? @db.VarChar(100)
|
|
3518
|
+
remark String? @db.Text
|
|
3519
|
+
followupStatus String? @db.VarChar(50)
|
|
3520
|
+
selfie String? @db.VarChar(500)
|
|
3521
|
+
visitAddress String? @db.VarChar(255)
|
|
3522
|
+
|
|
3523
|
+
@@unique([leadID, sourceDomain], map: "uniq_lead_source")
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
model vendors {
|
|
3527
|
+
id Int @id @default(autoincrement()) @db.UnsignedInt
|
|
3528
|
+
name String @db.VarChar(255)
|
|
3529
|
+
clientId String @unique @db.VarChar(100)
|
|
3530
|
+
secretId String @db.VarChar(255)
|
|
3531
|
+
email String @unique @db.VarChar(255)
|
|
3532
|
+
password String @db.VarChar(255)
|
|
3533
|
+
tag String? @db.VarChar(100)
|
|
3534
|
+
companyName String? @db.VarChar(100)
|
|
3535
|
+
|
|
3536
|
+
commissionType commission_type?
|
|
3537
|
+
commissionValue Float?
|
|
3538
|
+
|
|
3539
|
+
isActive Boolean @default(true)
|
|
3540
|
+
otp String? @default("") @db.VarChar(20)
|
|
3541
|
+
createdAt DateTime @default(now())
|
|
3542
|
+
updatedAt DateTime @updatedAt
|
|
3543
|
+
createdBy Int @default(1)
|
|
3544
|
+
|
|
3545
|
+
parentId Int? @db.UnsignedInt
|
|
3546
|
+
parent vendors? @relation("VendorHierarchy", fields: [parentId], references: [id])
|
|
3547
|
+
children vendors[] @relation("VendorHierarchy")
|
|
3548
|
+
|
|
3549
|
+
roleId Int?
|
|
3550
|
+
role dsa_roles? @relation(fields: [roleId], references: [id])
|
|
3551
|
+
|
|
3552
|
+
leads vendor_leads[]
|
|
3553
|
+
campaignsOwned campaigns[] @relation("CampaignVendor")
|
|
3554
|
+
campaignsCreated campaigns[] @relation("CampaignCreator")
|
|
3555
|
+
activityLogs activity_logs[]
|
|
3556
|
+
|
|
3557
|
+
slabs vendor_commission_slabs[]
|
|
3558
|
+
leadPricing vendor_lead_pricing[]
|
|
3559
|
+
customerCampaignAttributions customer_campaign_attribution[]
|
|
3560
|
+
}
|
|
3561
|
+
|
|
3562
|
+
model vendor_commission_slabs {
|
|
3563
|
+
id Int @id @default(autoincrement())
|
|
3564
|
+
vendorId Int @db.UnsignedInt
|
|
3565
|
+
|
|
3566
|
+
from Int
|
|
3567
|
+
to Int
|
|
3568
|
+
value Float
|
|
3569
|
+
createdAt DateTime @default(now())
|
|
3570
|
+
updatedAt DateTime @updatedAt
|
|
3571
|
+
|
|
3572
|
+
vendor vendors @relation(fields: [vendorId], references: [id])
|
|
3573
|
+
}
|
|
3574
|
+
|
|
3575
|
+
model vendor_lead_pricing {
|
|
3576
|
+
id Int @id @default(autoincrement())
|
|
3577
|
+
vendorId Int @db.UnsignedInt
|
|
3578
|
+
|
|
3579
|
+
leadId Int
|
|
3580
|
+
amount Float
|
|
3581
|
+
createdAt DateTime @default(now())
|
|
3582
|
+
updatedAt DateTime @updatedAt
|
|
3583
|
+
|
|
3584
|
+
vendor vendors @relation(fields: [vendorId], references: [id])
|
|
3585
|
+
}
|
|
3586
|
+
|
|
3587
|
+
model vendor_leads {
|
|
3588
|
+
id Int @id @default(autoincrement()) @db.UnsignedInt
|
|
3589
|
+
|
|
3590
|
+
vendorId Int @db.UnsignedInt
|
|
3591
|
+
vendor vendors @relation(fields: [vendorId], references: [id])
|
|
3592
|
+
|
|
3593
|
+
name String? @db.VarChar(255)
|
|
3594
|
+
mobile String @db.VarChar(20)
|
|
3595
|
+
pancard String? @unique
|
|
3596
|
+
email String? @db.VarChar(255)
|
|
3597
|
+
pincode String? @db.VarChar(10)
|
|
3598
|
+
monthly_income Decimal? @db.Decimal(15, 2)
|
|
3599
|
+
gender String? @db.VarChar(10)
|
|
3600
|
+
dob String? @db.VarChar(10)
|
|
3601
|
+
profession String? @db.VarChar(100)
|
|
3602
|
+
|
|
3603
|
+
lead_id String? @db.VarChar(100)
|
|
3604
|
+
lead_type LeadType?
|
|
3605
|
+
|
|
3606
|
+
status LeadStatus @default(NEW)
|
|
3607
|
+
sub_status String? @db.VarChar(100)
|
|
3608
|
+
remark String? @db.Text
|
|
3609
|
+
|
|
3610
|
+
isConverted Boolean @default(false)
|
|
3611
|
+
convertedAt DateTime?
|
|
3612
|
+
|
|
3613
|
+
assignedTo Int?
|
|
3614
|
+
|
|
3615
|
+
followUpDate DateTime?
|
|
3616
|
+
lastCallAt DateTime?
|
|
3617
|
+
|
|
3618
|
+
source String? @db.VarChar(100)
|
|
3619
|
+
batchId String? @db.VarChar(100)
|
|
3620
|
+
|
|
3621
|
+
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
3622
|
+
updated_at DateTime @updatedAt @db.Timestamp(0)
|
|
3623
|
+
|
|
3624
|
+
callLogs call_logs[]
|
|
3625
|
+
|
|
3626
|
+
@@unique([vendorId, mobile])
|
|
3627
|
+
@@unique([vendorId, pancard])
|
|
3628
|
+
@@index([vendorId])
|
|
3629
|
+
@@index([mobile])
|
|
3630
|
+
@@index([status])
|
|
3631
|
+
@@index([assignedTo])
|
|
3632
|
+
}
|
|
3633
|
+
|
|
3634
|
+
model call_logs {
|
|
3635
|
+
id Int @id @default(autoincrement())
|
|
3636
|
+
leadId Int @db.UnsignedInt
|
|
3637
|
+
lead vendor_leads @relation(fields: [leadId], references: [id])
|
|
3638
|
+
agentId Int? @db.UnsignedInt
|
|
3639
|
+
status LeadStatus?
|
|
3640
|
+
sub_status String? @db.VarChar(100)
|
|
3641
|
+
remark String? @db.Text
|
|
3642
|
+
createdAt DateTime @default(now())
|
|
3643
|
+
|
|
3644
|
+
@@index([leadId])
|
|
3645
|
+
@@index([agentId])
|
|
3646
|
+
}
|
|
3647
|
+
|
|
3648
|
+
enum fi_bucket {
|
|
3649
|
+
BUCKET_10_30 @map("10-30")
|
|
3650
|
+
BUCKET_31_60 @map("31-60")
|
|
3651
|
+
BUCKET_61_75 @map("61-75")
|
|
3652
|
+
BUCKET_76_90 @map("76-90")
|
|
3653
|
+
BUCKET_90_PLUS @map("90+")
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
model sms {
|
|
3657
|
+
id Int @id @default(autoincrement())
|
|
3658
|
+
leadID String @db.VarChar(50)
|
|
3659
|
+
customerID Int
|
|
3660
|
+
customerName String @db.VarChar(255)
|
|
3661
|
+
mobile String @db.VarChar(20)
|
|
3662
|
+
loanAmtApproved Decimal @db.Decimal(15, 2)
|
|
3663
|
+
customerCity String? @db.VarChar(100)
|
|
3664
|
+
smsDate DateTime @db.Date
|
|
3665
|
+
smsTime DateTime @db.Time(0)
|
|
3666
|
+
sourceDomain String @db.VarChar(50)
|
|
3667
|
+
createdAt DateTime @default(now())
|
|
3668
|
+
}
|
|
3669
|
+
|
|
3670
|
+
model smartping_call_log {
|
|
3671
|
+
id BigInt @id @default(autoincrement())
|
|
3672
|
+
|
|
3673
|
+
customerID Int
|
|
3674
|
+
userID Int
|
|
3675
|
+
|
|
3676
|
+
disposition String? @db.VarChar(100)
|
|
3677
|
+
remark String? @db.Text
|
|
3678
|
+
startStamp DateTime?
|
|
3679
|
+
endStamp DateTime?
|
|
3680
|
+
direction String? @db.VarChar(50)
|
|
3681
|
+
didNumber String? @db.VarChar(30)
|
|
3682
|
+
customerNumber String? @db.VarChar(30)
|
|
3683
|
+
|
|
3684
|
+
duration Int?
|
|
3685
|
+
hangupCause String? @db.VarChar(100)
|
|
3686
|
+
disconnectBy String? @db.VarChar(100)
|
|
3687
|
+
|
|
3688
|
+
recordingFile String? @db.Text
|
|
3689
|
+
|
|
3690
|
+
campaignName String? @db.VarChar(255)
|
|
3691
|
+
username String? @db.VarChar(100)
|
|
3692
|
+
agentName String? @db.VarChar(255)
|
|
3693
|
+
agentNumber String? @db.VarChar(50)
|
|
3694
|
+
|
|
3695
|
+
customerName String? @db.VarChar(255)
|
|
3696
|
+
queueName String? @db.VarChar(255)
|
|
3697
|
+
sourceNumber String? @db.VarChar(30)
|
|
3698
|
+
|
|
3699
|
+
createdAt DateTime @default(now())
|
|
3700
|
+
updatedAt DateTime @updatedAt
|
|
3701
|
+
|
|
3702
|
+
lms_user lms_users @relation(fields: [userID], references: [userID])
|
|
3703
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
3704
|
+
|
|
3705
|
+
@@index([queueName])
|
|
3706
|
+
@@index([campaignName])
|
|
3707
|
+
@@index([userID])
|
|
3708
|
+
@@index([customerID])
|
|
3709
|
+
}
|
|
3710
|
+
|
|
3711
|
+
model activity_logs {
|
|
3712
|
+
id Int @id @default(autoincrement())
|
|
3713
|
+
userId Int @db.UnsignedInt
|
|
3714
|
+
apiCall String @map("api_call") @db.VarChar(255)
|
|
3715
|
+
payload Json
|
|
3716
|
+
changedPayload Json? @map("changed_payload")
|
|
3717
|
+
status status @default(ZERO)
|
|
3718
|
+
isDeleted Boolean @default(false)
|
|
3719
|
+
|
|
3720
|
+
createdAt DateTime @default(now())
|
|
3721
|
+
updatedAt DateTime @updatedAt
|
|
3722
|
+
|
|
3723
|
+
vendor vendors @relation(fields: [userId], references: [id])
|
|
3724
|
+
|
|
3725
|
+
@@index([userId])
|
|
3726
|
+
@@index([apiCall])
|
|
3727
|
+
@@index([status])
|
|
3728
|
+
@@map("activity_logs")
|
|
3729
|
+
}
|
|
3730
|
+
|
|
3731
|
+
model click_logs {
|
|
3732
|
+
id Int @id @default(autoincrement()) @db.UnsignedInt
|
|
3733
|
+
campaignId Int @db.UnsignedInt
|
|
3734
|
+
IP Json
|
|
3735
|
+
userAgent Json
|
|
3736
|
+
redirectLink String @db.Text
|
|
3737
|
+
status status @default(ZERO)
|
|
3738
|
+
isDeleted Boolean @default(false)
|
|
3739
|
+
createdAt DateTime @default(now())
|
|
3740
|
+
updatedAt DateTime @updatedAt
|
|
3741
|
+
|
|
3742
|
+
campaign campaigns @relation(fields: [campaignId], references: [id])
|
|
3743
|
+
|
|
3744
|
+
@@index([campaignId])
|
|
3745
|
+
@@index([status])
|
|
3746
|
+
@@index([isDeleted])
|
|
3747
|
+
}
|
|
3748
|
+
|
|
3749
|
+
model campaigns {
|
|
3750
|
+
id Int @id @default(autoincrement()) @db.UnsignedInt
|
|
3751
|
+
name String @unique @db.VarChar(255)
|
|
3752
|
+
status status @default(ZERO)
|
|
3753
|
+
createdAt DateTime @default(now())
|
|
3754
|
+
updatedAt DateTime @updatedAt
|
|
3755
|
+
|
|
3756
|
+
createdBy Int @db.UnsignedInt
|
|
3757
|
+
vendorId Int? @db.UnsignedInt
|
|
3758
|
+
|
|
3759
|
+
vendor vendors? @relation("CampaignVendor", fields: [vendorId], references: [id])
|
|
3760
|
+
creator vendors @relation("CampaignCreator", fields: [createdBy], references: [id])
|
|
3761
|
+
|
|
3762
|
+
clickLogs click_logs[]
|
|
3763
|
+
customerCampaignAttributions customer_campaign_attribution[]
|
|
3764
|
+
|
|
3765
|
+
@@index([vendorId])
|
|
3766
|
+
@@index([createdBy])
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3769
|
+
model customer_sms {
|
|
3770
|
+
id Int @id @default(autoincrement())
|
|
3771
|
+
sender String
|
|
3772
|
+
body String
|
|
3773
|
+
timestamp BigInt
|
|
3774
|
+
type String
|
|
3775
|
+
customerID Int
|
|
3776
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
3777
|
+
updated_at DateTime @updatedAt
|
|
3778
|
+
|
|
3779
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
3780
|
+
}
|
|
3781
|
+
|
|
3782
|
+
model customer_contact {
|
|
3783
|
+
id Int @id @default(autoincrement())
|
|
3784
|
+
name String
|
|
3785
|
+
phone String @unique
|
|
3786
|
+
customerID Int
|
|
3787
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
3788
|
+
updated_at DateTime @updatedAt
|
|
3789
|
+
|
|
3790
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
3791
|
+
}
|
|
3792
|
+
|
|
3793
|
+
model customer_app {
|
|
3794
|
+
id Int @id @default(autoincrement())
|
|
3795
|
+
appName String
|
|
3796
|
+
packageName String @unique
|
|
3797
|
+
versionName String
|
|
3798
|
+
customerID Int
|
|
3799
|
+
created_at DateTime @default(now()) @db.DateTime(0)
|
|
3800
|
+
updated_at DateTime @updatedAt
|
|
3801
|
+
|
|
3802
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
model dsa_permissions {
|
|
3806
|
+
id Int @id @default(autoincrement())
|
|
3807
|
+
module String
|
|
3808
|
+
name String @unique
|
|
3809
|
+
description String?
|
|
3810
|
+
|
|
3811
|
+
createdAt DateTime @default(now())
|
|
3812
|
+
updatedAt DateTime @updatedAt
|
|
3813
|
+
|
|
3814
|
+
@@index([module])
|
|
3815
|
+
}
|
|
3816
|
+
|
|
3817
|
+
model dsa_roles {
|
|
3818
|
+
id Int @id @default(autoincrement())
|
|
3819
|
+
name String @unique
|
|
3820
|
+
description String?
|
|
3821
|
+
|
|
3822
|
+
permissionIds Json
|
|
3823
|
+
|
|
3824
|
+
isActive Boolean @default(true)
|
|
3825
|
+
|
|
3826
|
+
createdAt DateTime @default(now())
|
|
3827
|
+
updatedAt DateTime @updatedAt
|
|
3828
|
+
|
|
3829
|
+
vendors vendors[]
|
|
3830
|
+
}
|
|
3831
|
+
|
|
3832
|
+
model payment_block_dates {
|
|
3833
|
+
id Int @id @default(autoincrement())
|
|
3834
|
+
date DateTime @db.Date
|
|
3835
|
+
reason String? @db.VarChar(255)
|
|
3836
|
+
isActive Boolean @default(true)
|
|
3837
|
+
|
|
3838
|
+
createdById Int?
|
|
3839
|
+
updatedById Int?
|
|
3840
|
+
|
|
3841
|
+
createdBy lms_users? @relation("UserCreatedPaymentDates", fields: [createdById], references: [userID])
|
|
3842
|
+
updatedBy lms_users? @relation("UserUpdatedPaymentDates", fields: [updatedById], references: [userID])
|
|
3843
|
+
|
|
3844
|
+
createdAt DateTime @default(now())
|
|
3845
|
+
updatedAt DateTime @updatedAt
|
|
3846
|
+
|
|
3847
|
+
@@unique([date])
|
|
3848
|
+
@@index([createdById])
|
|
3849
|
+
}
|
|
3850
|
+
|
|
3851
|
+
model customer_devices {
|
|
3852
|
+
id Int @id @default(autoincrement())
|
|
3853
|
+
customerID Int
|
|
3854
|
+
deviceId String
|
|
3855
|
+
deviceType DeviceType
|
|
3856
|
+
deviceToken String? @unique
|
|
3857
|
+
endpointArn String? @unique
|
|
3858
|
+
deviceName String?
|
|
3859
|
+
appVersion String?
|
|
3860
|
+
osVersion String?
|
|
3861
|
+
ipAddress String?
|
|
3862
|
+
createdAt DateTime @default(now())
|
|
3863
|
+
updatedAt DateTime @updatedAt
|
|
3864
|
+
|
|
3865
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
3866
|
+
|
|
3867
|
+
@@unique([customerID, deviceId])
|
|
3868
|
+
@@index([customerID])
|
|
3869
|
+
@@index([deviceToken])
|
|
3870
|
+
}
|
|
3871
|
+
|
|
3872
|
+
model customer_notifications {
|
|
3873
|
+
id Int @id @default(autoincrement())
|
|
3874
|
+
customerID Int
|
|
3875
|
+
type String @db.VarChar(100)
|
|
3876
|
+
title String @db.VarChar(255)
|
|
3877
|
+
body String @db.Text
|
|
3878
|
+
data Json?
|
|
3879
|
+
status NotificationStatus @default(PENDING)
|
|
3880
|
+
failureReason String? @db.VarChar(255)
|
|
3881
|
+
isRead Boolean @default(false)
|
|
3882
|
+
createdAt DateTime @default(now())
|
|
3883
|
+
updatedAt DateTime @updatedAt
|
|
3884
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
3885
|
+
|
|
3886
|
+
@@index([customerID])
|
|
3887
|
+
@@index([status])
|
|
3888
|
+
@@index([type])
|
|
3889
|
+
@@index([isRead])
|
|
3890
|
+
}
|
|
3891
|
+
|
|
3892
|
+
model ai_call_batches {
|
|
3893
|
+
id Int @id @default(autoincrement())
|
|
3894
|
+
batchId String @unique
|
|
3895
|
+
agent String?
|
|
3896
|
+
status String
|
|
3897
|
+
totalCalls Int
|
|
3898
|
+
completedCalls Int?
|
|
3899
|
+
failedCalls Int?
|
|
3900
|
+
createdAt DateTime @default(now())
|
|
3901
|
+
completedAt DateTime?
|
|
3902
|
+
|
|
3903
|
+
calls ai_call_logs[]
|
|
3904
|
+
|
|
3905
|
+
@@index([batchId])
|
|
3906
|
+
}
|
|
3907
|
+
|
|
3908
|
+
model ai_call_logs {
|
|
3909
|
+
id Int @id @default(autoincrement())
|
|
3910
|
+
callId String @unique
|
|
3911
|
+
batchId String
|
|
3912
|
+
customerID Int
|
|
3913
|
+
phoneNumber String
|
|
3914
|
+
status String
|
|
3915
|
+
duration Int?
|
|
3916
|
+
callStartedAt DateTime?
|
|
3917
|
+
completedAt DateTime?
|
|
3918
|
+
recordingUrl String?
|
|
3919
|
+
hangupCause String?
|
|
3920
|
+
agent String?
|
|
3921
|
+
createdAt DateTime @default(now())
|
|
3922
|
+
updatedAt DateTime @updatedAt
|
|
3923
|
+
|
|
3924
|
+
batch ai_call_batches @relation(fields: [batchId], references: [batchId], onDelete: Cascade)
|
|
3925
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
3926
|
+
aiCallAnalysis ai_call_analysis?
|
|
3927
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
3928
|
+
leadID Int
|
|
3929
|
+
|
|
3930
|
+
@@index([batchId])
|
|
3931
|
+
@@index([callId])
|
|
3932
|
+
@@index([phoneNumber])
|
|
3933
|
+
@@index([customerID])
|
|
3934
|
+
@@index([status])
|
|
3935
|
+
}
|
|
3936
|
+
|
|
3937
|
+
model ai_call_analysis {
|
|
3938
|
+
id Int @id @default(autoincrement())
|
|
3939
|
+
callId String @unique
|
|
3940
|
+
summary String? @db.Text
|
|
3941
|
+
tentativeDate DateTime?
|
|
3942
|
+
customerConfirmationStatus String?
|
|
3943
|
+
transcript Json?
|
|
3944
|
+
createdAt DateTime @default(now())
|
|
3945
|
+
updatedAt DateTime @updatedAt
|
|
3946
|
+
|
|
3947
|
+
call ai_call_logs @relation(fields: [callId], references: [callId], onDelete: Cascade)
|
|
3948
|
+
|
|
3949
|
+
@@index([callId])
|
|
3950
|
+
}
|
|
3951
|
+
|
|
3952
|
+
model customer_campaign_attribution {
|
|
3953
|
+
id Int @id @default(autoincrement()) @db.UnsignedInt
|
|
3954
|
+
customerId Int
|
|
3955
|
+
vendorId Int? @db.UnsignedInt
|
|
3956
|
+
campaignId Int? @db.UnsignedInt
|
|
3957
|
+
parentTag String? @db.VarChar(100)
|
|
3958
|
+
utmSource String? @db.VarChar(256)
|
|
3959
|
+
utmMedium String? @db.VarChar(256)
|
|
3960
|
+
utmCampaign String? @db.VarChar(256)
|
|
3961
|
+
|
|
3962
|
+
customer customer @relation(fields: [customerId], references: [customerID], onDelete: Cascade)
|
|
3963
|
+
vendor vendors? @relation(fields: [vendorId], references: [id])
|
|
3964
|
+
campaign campaigns? @relation(fields: [campaignId], references: [id])
|
|
3965
|
+
|
|
3966
|
+
createdAt DateTime @default(now())
|
|
3967
|
+
updatedAt DateTime @updatedAt
|
|
3968
|
+
|
|
3969
|
+
@@index([customerId])
|
|
3970
|
+
@@index([vendorId])
|
|
3971
|
+
@@index([campaignId])
|
|
3972
|
+
@@index([parentTag])
|
|
3973
|
+
@@index([utmSource])
|
|
3974
|
+
@@index([vendorId, createdAt])
|
|
3975
|
+
@@index([campaignId, createdAt])
|
|
3976
|
+
@@index([parentTag, createdAt])
|
|
3977
|
+
}
|
|
3978
|
+
|
|
3979
|
+
enum LocationType {
|
|
3980
|
+
login
|
|
3981
|
+
leadCreation
|
|
3982
|
+
leadRejection
|
|
3983
|
+
selfie
|
|
3984
|
+
eSign
|
|
3985
|
+
}
|
|
3986
|
+
|
|
3987
|
+
enum NotificationStatus {
|
|
3988
|
+
PENDING
|
|
3989
|
+
SENT
|
|
3990
|
+
FAILED
|
|
3991
|
+
}
|
|
3992
|
+
|
|
3993
|
+
enum DeviceType {
|
|
3994
|
+
web
|
|
3995
|
+
android
|
|
3996
|
+
ios
|
|
3997
|
+
}
|
|
3998
|
+
|
|
3999
|
+
enum commission_type {
|
|
4000
|
+
PERCENTAGE // % based
|
|
4001
|
+
FIXED // per lead fixed amount
|
|
4002
|
+
SLAB // slab based
|
|
4003
|
+
CUSTOM_LEAD // per lead custom pricing
|
|
4004
|
+
}
|
|
4005
|
+
|
|
4006
|
+
enum status {
|
|
4007
|
+
ZERO @map("0")
|
|
4008
|
+
ONE @map("1")
|
|
4009
|
+
}
|
|
4010
|
+
|
|
4011
|
+
enum fi_interactionStatus {
|
|
4012
|
+
INITIATED
|
|
4013
|
+
IN_PROCESS
|
|
4014
|
+
COMPLETED
|
|
4015
|
+
}
|
|
4016
|
+
|
|
4017
|
+
enum leads2_kfs {
|
|
4018
|
+
ZERO @map("0")
|
|
4019
|
+
ONE @map("1")
|
|
4020
|
+
}
|
|
4021
|
+
|
|
4022
|
+
enum leads_kfs {
|
|
4023
|
+
ZERO @map("0")
|
|
4024
|
+
ONE @map("1")
|
|
4025
|
+
}
|
|
4026
|
+
|
|
4027
|
+
enum approval_customerApproval {
|
|
4028
|
+
ZERO @map("0")
|
|
4029
|
+
ONE @map("1")
|
|
4030
|
+
}
|
|
4031
|
+
|
|
4032
|
+
enum contactus_status {
|
|
4033
|
+
Active
|
|
4034
|
+
In_Active @map("In Active")
|
|
4035
|
+
EMPTY_ENUM_VALUE @map("")
|
|
4036
|
+
}
|
|
4037
|
+
|
|
4038
|
+
enum customerapp_gender {
|
|
4039
|
+
Male
|
|
4040
|
+
Female
|
|
4041
|
+
NA
|
|
4042
|
+
}
|
|
4043
|
+
|
|
4044
|
+
enum customerapp_dob_digit_match {
|
|
4045
|
+
ZERO @map("0")
|
|
4046
|
+
ONE @map("1")
|
|
4047
|
+
}
|
|
4048
|
+
|
|
4049
|
+
enum digitmoney_leads_lead_type {
|
|
4050
|
+
P1
|
|
4051
|
+
P2
|
|
4052
|
+
}
|
|
4053
|
+
|
|
4054
|
+
enum reminders_type {
|
|
4055
|
+
REMINDER_30M
|
|
4056
|
+
REMINDER_2H
|
|
4057
|
+
APPLICATION_CONF
|
|
4058
|
+
}
|
|
4059
|
+
|
|
4060
|
+
enum reminders_channel {
|
|
4061
|
+
SMS
|
|
4062
|
+
EMAIL
|
|
4063
|
+
WHATSAPP
|
|
4064
|
+
AICALL
|
|
4065
|
+
ALL
|
|
4066
|
+
}
|
|
4067
|
+
|
|
4068
|
+
enum reloan_status_status {
|
|
4069
|
+
Approve
|
|
4070
|
+
Reject
|
|
4071
|
+
Not_Now @map("Not Now")
|
|
4072
|
+
Applied
|
|
4073
|
+
}
|
|
4074
|
+
|
|
4075
|
+
enum customer_reloaneligible {
|
|
4076
|
+
Approve
|
|
4077
|
+
Reject
|
|
4078
|
+
Applied
|
|
4079
|
+
Pending
|
|
4080
|
+
}
|
|
4081
|
+
|
|
4082
|
+
enum disbursement_requests_status {
|
|
4083
|
+
PENDING_APPROVAL
|
|
4084
|
+
APPROVED
|
|
4085
|
+
PAYOUT_INITIATED
|
|
4086
|
+
PAID
|
|
4087
|
+
FAILED
|
|
4088
|
+
REVERSED
|
|
4089
|
+
}
|
|
4090
|
+
|
|
4091
|
+
enum PayoutStatus {
|
|
4092
|
+
APPROVAL_PENDING
|
|
4093
|
+
HOLD
|
|
4094
|
+
APPROVED
|
|
4095
|
+
QUEUED
|
|
4096
|
+
PENDING
|
|
4097
|
+
INITIATED
|
|
4098
|
+
UPDATED
|
|
4099
|
+
PROCESSING
|
|
4100
|
+
PROCESSED
|
|
4101
|
+
FAILED
|
|
4102
|
+
REJECTED
|
|
4103
|
+
REVERSED
|
|
4104
|
+
}
|
|
4105
|
+
|
|
4106
|
+
enum iciciPayoutStatus {
|
|
4107
|
+
SUCCESS
|
|
4108
|
+
FAILED
|
|
4109
|
+
PENDING
|
|
4110
|
+
}
|
|
4111
|
+
|
|
4112
|
+
enum bankanalysisStatus {
|
|
4113
|
+
PENDING
|
|
4114
|
+
PROCESSING
|
|
4115
|
+
SUCCEEDED
|
|
4116
|
+
FAILED
|
|
4117
|
+
}
|
|
4118
|
+
|
|
4119
|
+
enum LeadType {
|
|
4120
|
+
v1
|
|
4121
|
+
v2
|
|
4122
|
+
v3
|
|
4123
|
+
}
|
|
4124
|
+
|
|
4125
|
+
enum LeadStatus {
|
|
4126
|
+
NEW
|
|
4127
|
+
CONTACTED
|
|
4128
|
+
FOLLOW_UP
|
|
4129
|
+
QUALIFIED
|
|
4130
|
+
REJECTED
|
|
4131
|
+
CONVERTED
|
|
4132
|
+
}
|
|
4133
|
+
|
|
4134
|
+
|
|
4135
|
+
model JourneySmsEvent {
|
|
4136
|
+
id BigInt @id @default(autoincrement()) @db.UnsignedBigInt
|
|
4137
|
+
tenantDomain String @map("tenant_domain") @db.VarChar(255)
|
|
4138
|
+
customerID Int @map("customer_id")
|
|
4139
|
+
leadID Int? @map("lead_id")
|
|
4140
|
+
eventType String @map("event_type") @db.VarChar(64)
|
|
4141
|
+
eventPayload Json? @map("event_payload")
|
|
4142
|
+
idempotencyKey String @unique @map("idempotency_key") @db.VarChar(191)
|
|
4143
|
+
processingStatus String @default("PENDING") @map("processing_status") @db.VarChar(32)
|
|
4144
|
+
createdAt DateTime @default(now()) @map("created_at") @db.DateTime(3)
|
|
4145
|
+
processedAt DateTime? @map("processed_at") @db.DateTime(3)
|
|
4146
|
+
|
|
4147
|
+
jobs JourneySmsJob[]
|
|
4148
|
+
|
|
4149
|
+
@@index([customerID, eventType])
|
|
4150
|
+
@@index([processingStatus, createdAt])
|
|
4151
|
+
@@map("journey_sms_event")
|
|
4152
|
+
}
|
|
4153
|
+
|
|
4154
|
+
model JourneySmsRule {
|
|
4155
|
+
id Int @id @default(autoincrement())
|
|
4156
|
+
tenantDomain String @default("*") @map("tenant_domain") @db.VarChar(255)
|
|
4157
|
+
category String @db.VarChar(64)
|
|
4158
|
+
stage String? @db.VarChar(64)
|
|
4159
|
+
triggerType String @map("trigger_type") @db.VarChar(32)
|
|
4160
|
+
delayMinutes Int @default(0) @map("delay_minutes")
|
|
4161
|
+
templateCode String @map("template_code") @db.VarChar(64)
|
|
4162
|
+
isActive Boolean @default(true) @map("is_active")
|
|
4163
|
+
priority Int @default(100)
|
|
4164
|
+
frequencyLimit Int? @map("frequency_limit")
|
|
4165
|
+
configuration Json? @map("configuration")
|
|
4166
|
+
createdAt DateTime @default(now()) @map("created_at") @db.DateTime(3)
|
|
4167
|
+
updatedAt DateTime @updatedAt @map("updated_at") @db.DateTime(3)
|
|
4168
|
+
|
|
4169
|
+
jobs JourneySmsJob[]
|
|
4170
|
+
|
|
4171
|
+
@@index([category, stage, triggerType, isActive])
|
|
4172
|
+
@@index([tenantDomain, isActive])
|
|
4173
|
+
@@map("journey_sms_rule")
|
|
4174
|
+
}
|
|
4175
|
+
|
|
4176
|
+
model JourneySmsTemplate {
|
|
4177
|
+
id Int @id @default(autoincrement())
|
|
4178
|
+
templateCode String @unique @map("template_code") @db.VarChar(64)
|
|
4179
|
+
category String @db.VarChar(64)
|
|
4180
|
+
language String @default("en") @db.VarChar(8)
|
|
4181
|
+
message String @db.Text
|
|
4182
|
+
dltTemplateId String? @map("dlt_template_id") @db.VarChar(64)
|
|
4183
|
+
isActive Boolean @default(true) @map("is_active")
|
|
4184
|
+
createdAt DateTime @default(now()) @map("created_at") @db.DateTime(3)
|
|
4185
|
+
updatedAt DateTime @updatedAt @map("updated_at") @db.DateTime(3)
|
|
4186
|
+
|
|
4187
|
+
@@index([category, isActive])
|
|
4188
|
+
@@map("journey_sms_template")
|
|
4189
|
+
}
|
|
4190
|
+
|
|
4191
|
+
model JourneySmsJob {
|
|
4192
|
+
id BigInt @id @default(autoincrement()) @db.UnsignedBigInt
|
|
4193
|
+
tenantDomain String @map("tenant_domain") @db.VarChar(255)
|
|
4194
|
+
customerID Int @map("customer_id")
|
|
4195
|
+
leadID Int? @map("lead_id")
|
|
4196
|
+
eventId BigInt? @map("event_id") @db.UnsignedBigInt
|
|
4197
|
+
ruleId Int? @map("rule_id")
|
|
4198
|
+
templateCode String @map("template_code") @db.VarChar(64)
|
|
4199
|
+
notificationType String @map("notification_type") @db.VarChar(64)
|
|
4200
|
+
scheduledAt DateTime @map("scheduled_at") @db.DateTime(3)
|
|
4201
|
+
status String @default("PENDING") @db.VarChar(32)
|
|
4202
|
+
retryCount Int @default(0) @map("retry_count")
|
|
4203
|
+
idempotencyKey String @unique @map("idempotency_key") @db.VarChar(191)
|
|
4204
|
+
bullJobId String? @map("bull_job_id") @db.VarChar(128)
|
|
4205
|
+
lastError String? @map("last_error") @db.VarChar(512)
|
|
4206
|
+
createdAt DateTime @default(now()) @map("created_at") @db.DateTime(3)
|
|
4207
|
+
updatedAt DateTime @updatedAt @map("updated_at") @db.DateTime(3)
|
|
4208
|
+
|
|
4209
|
+
event JourneySmsEvent? @relation(fields: [eventId], references: [id], onDelete: SetNull)
|
|
4210
|
+
rule JourneySmsRule? @relation(fields: [ruleId], references: [id], onDelete: SetNull)
|
|
4211
|
+
logs JourneySmsLog[]
|
|
4212
|
+
|
|
4213
|
+
@@index([status, scheduledAt])
|
|
4214
|
+
@@index([customerID, notificationType, status])
|
|
4215
|
+
@@index([leadID, status])
|
|
4216
|
+
@@map("journey_sms_job")
|
|
4217
|
+
}
|
|
4218
|
+
|
|
4219
|
+
model JourneySmsLog {
|
|
4220
|
+
id BigInt @id @default(autoincrement()) @db.UnsignedBigInt
|
|
4221
|
+
customerID Int @map("customer_id")
|
|
4222
|
+
leadID Int? @map("lead_id")
|
|
4223
|
+
notificationJobId BigInt? @map("notification_job_id") @db.UnsignedBigInt
|
|
4224
|
+
mobileNumber String @map("mobile_number") @db.VarChar(20)
|
|
4225
|
+
templateCode String @map("template_code") @db.VarChar(64)
|
|
4226
|
+
message String @db.Text
|
|
4227
|
+
provider String @db.VarChar(32)
|
|
4228
|
+
providerMessageId String? @map("provider_message_id") @db.VarChar(128)
|
|
4229
|
+
providerResponse Json? @map("provider_response")
|
|
4230
|
+
status String @db.VarChar(32)
|
|
4231
|
+
failureReason String? @map("failure_reason") @db.VarChar(512)
|
|
4232
|
+
sentAt DateTime? @map("sent_at") @db.DateTime(3)
|
|
4233
|
+
deliveredAt DateTime? @map("delivered_at") @db.DateTime(3)
|
|
4234
|
+
createdAt DateTime @default(now()) @map("created_at") @db.DateTime(3)
|
|
4235
|
+
|
|
4236
|
+
job JourneySmsJob? @relation(fields: [notificationJobId], references: [id], onDelete: SetNull)
|
|
4237
|
+
|
|
4238
|
+
@@index([customerID, templateCode, createdAt])
|
|
4239
|
+
@@index([providerMessageId])
|
|
4240
|
+
@@index([status, createdAt])
|
|
4241
|
+
@@map("journey_sms_log")
|
|
4242
|
+
}
|
|
4243
|
+
|