@factor-wise/prisma-schema 2.0.29 → 2.0.30
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 +34 -0
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")
|
|
@@ -2410,6 +2411,39 @@ model disbursement_requests {
|
|
|
2410
2411
|
created_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2411
2412
|
}
|
|
2412
2413
|
|
|
2414
|
+
model AIAgentCallLog {
|
|
2415
|
+
id String @id @default(cuid())
|
|
2416
|
+
customerID Int
|
|
2417
|
+
customerName String?
|
|
2418
|
+
mobile String
|
|
2419
|
+
campaignType String
|
|
2420
|
+
provider String @default("BOLNA")
|
|
2421
|
+
providerNumber String?
|
|
2422
|
+
bolnaAgentId String?
|
|
2423
|
+
bolnaExecutionId String? @unique
|
|
2424
|
+
status String @default("PENDING")
|
|
2425
|
+
callStatus String?
|
|
2426
|
+
hangupStatus String?
|
|
2427
|
+
transcript String? @db.LongText
|
|
2428
|
+
summary String? @db.LongText
|
|
2429
|
+
extractedData Json?
|
|
2430
|
+
errorMessage String? @db.Text
|
|
2431
|
+
durationSeconds Int?
|
|
2432
|
+
cost Float?
|
|
2433
|
+
scheduledFor DateTime?
|
|
2434
|
+
initiatedAt DateTime?
|
|
2435
|
+
completedAt DateTime?
|
|
2436
|
+
createdAt DateTime @default(now())
|
|
2437
|
+
updatedAt DateTime @updatedAt
|
|
2438
|
+
|
|
2439
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
2440
|
+
|
|
2441
|
+
@@unique([customerID, campaignType])
|
|
2442
|
+
@@index([campaignType, status, scheduledFor])
|
|
2443
|
+
@@index([customerID])
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
|
|
2413
2447
|
enum usersgoogle_oauth_provider {
|
|
2414
2448
|
google
|
|
2415
2449
|
facebook
|