@factor-wise/prisma-schema 2.0.28 → 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 +35 -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")
|
|
@@ -2332,6 +2333,7 @@ model lms_users {
|
|
|
2332
2333
|
password String @db.VarChar(255)
|
|
2333
2334
|
role String? @db.VarChar(50)
|
|
2334
2335
|
status String? @default("Active") @db.VarChar(20)
|
|
2336
|
+
session_id String? @db.VarChar(255)
|
|
2335
2337
|
created_by String? @db.VarChar(100)
|
|
2336
2338
|
created_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2337
2339
|
updated_at DateTime? @default(now()) @db.Timestamp(0)
|
|
@@ -2409,6 +2411,39 @@ model disbursement_requests {
|
|
|
2409
2411
|
created_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2410
2412
|
}
|
|
2411
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
|
+
|
|
2412
2447
|
enum usersgoogle_oauth_provider {
|
|
2413
2448
|
google
|
|
2414
2449
|
facebook
|