@factor-wise/prisma-schema 2.0.29 → 2.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisma/schema.prisma +43 -2
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -691,6 +691,7 @@ model customer {
|
|
|
691
691
|
reference reference[]
|
|
692
692
|
reloan_status reloan_status[]
|
|
693
693
|
reminders reminders[]
|
|
694
|
+
aiAgentCallLogs AIAgentCallLog[]
|
|
694
695
|
|
|
695
696
|
|
|
696
697
|
@@index([firstName], map: "firstName")
|
|
@@ -1123,11 +1124,13 @@ model eagreement {
|
|
|
1123
1124
|
access_token String? @db.VarChar(100)
|
|
1124
1125
|
isSigned Boolean @default(false)
|
|
1125
1126
|
signedAt DateTime?
|
|
1126
|
-
|
|
1127
|
+
leads leads @relation(fields: [leadID], references: [leadID])
|
|
1128
|
+
updated_at DateTime @updatedAt
|
|
1127
1129
|
createdAt DateTime @default(now())
|
|
1128
|
-
|
|
1130
|
+
|
|
1129
1131
|
|
|
1130
1132
|
@@index([loanNo])
|
|
1133
|
+
@@index([leadID], map: "leadID")
|
|
1131
1134
|
}
|
|
1132
1135
|
|
|
1133
1136
|
/// 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
|
|
@@ -1166,6 +1169,7 @@ model leads {
|
|
|
1166
1169
|
kfs leads_kfs @default(ZERO)
|
|
1167
1170
|
bureau_consent Int @default(0)
|
|
1168
1171
|
emandatebypass Boolean? @default(false)
|
|
1172
|
+
videoKycBypass Boolean? @default(false)
|
|
1169
1173
|
approvals approval[]
|
|
1170
1174
|
bankstatement bankstatement[]
|
|
1171
1175
|
callHistories callhistory[]
|
|
@@ -1179,6 +1183,8 @@ model leads {
|
|
|
1179
1183
|
balanceHistory balance_history[]
|
|
1180
1184
|
collectionFollowups collectionfollowup[]
|
|
1181
1185
|
Payout Payout?
|
|
1186
|
+
videokyc videokyc?
|
|
1187
|
+
eagreement eagreement?
|
|
1182
1188
|
|
|
1183
1189
|
@@index([customerID], map: "leadcustomerID")
|
|
1184
1190
|
}
|
|
@@ -2224,6 +2230,8 @@ model videokyc {
|
|
|
2224
2230
|
videoPath String?
|
|
2225
2231
|
location String?
|
|
2226
2232
|
latlongAddress String? @db.Text
|
|
2233
|
+
leads leads @relation(fields: [leadID], references: [leadID])
|
|
2234
|
+
|
|
2227
2235
|
|
|
2228
2236
|
@@index([leadID], map: "fk_lead")
|
|
2229
2237
|
}
|
|
@@ -2410,6 +2418,39 @@ model disbursement_requests {
|
|
|
2410
2418
|
created_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2411
2419
|
}
|
|
2412
2420
|
|
|
2421
|
+
model AIAgentCallLog {
|
|
2422
|
+
id String @id @default(cuid())
|
|
2423
|
+
customerID Int
|
|
2424
|
+
customerName String?
|
|
2425
|
+
mobile String
|
|
2426
|
+
campaignType String
|
|
2427
|
+
provider String @default("BOLNA")
|
|
2428
|
+
providerNumber String?
|
|
2429
|
+
bolnaAgentId String?
|
|
2430
|
+
bolnaExecutionId String? @unique
|
|
2431
|
+
status String @default("PENDING")
|
|
2432
|
+
callStatus String?
|
|
2433
|
+
hangupStatus String?
|
|
2434
|
+
transcript String? @db.LongText
|
|
2435
|
+
summary String? @db.LongText
|
|
2436
|
+
extractedData Json?
|
|
2437
|
+
errorMessage String? @db.Text
|
|
2438
|
+
durationSeconds Int?
|
|
2439
|
+
cost Float?
|
|
2440
|
+
scheduledFor DateTime?
|
|
2441
|
+
initiatedAt DateTime?
|
|
2442
|
+
completedAt DateTime?
|
|
2443
|
+
createdAt DateTime @default(now())
|
|
2444
|
+
updatedAt DateTime @updatedAt
|
|
2445
|
+
|
|
2446
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
2447
|
+
|
|
2448
|
+
@@unique([customerID, campaignType])
|
|
2449
|
+
@@index([campaignType, status, scheduledFor])
|
|
2450
|
+
@@index([customerID])
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
|
|
2413
2454
|
enum usersgoogle_oauth_provider {
|
|
2414
2455
|
google
|
|
2415
2456
|
facebook
|