@factor-wise/prisma-schema 2.0.112 → 2.0.113

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factor-wise/prisma-schema",
3
- "version": "2.0.112",
3
+ "version": "2.0.113",
4
4
  "description": "Shared Prisma schema and generated client for Factor Wise projects",
5
5
  "main": "generated/client/index.js",
6
6
  "types": "generated/client/index.d.ts",
@@ -772,8 +772,6 @@ model customer_extended {
772
772
  locationType LocationType?
773
773
  customer customer @relation(fields: [customerID], references: [customerID])
774
774
 
775
- callLogs ai_call_logs[]
776
-
777
775
  @@unique([customerID, locationType])
778
776
  @@index([latitude, longitude])
779
777
  }
@@ -1419,6 +1417,8 @@ model leads {
1419
1417
  icici_payout icici_payout[]
1420
1418
  face_comparison face_comparison[]
1421
1419
  credforge_bre_log credforge_bre_log[]
1420
+ aiCallBatches ai_call_batches[]
1421
+ aiCallLogs ai_call_logs[]
1422
1422
 
1423
1423
  @@index([customerID], map: "idx_customerID")
1424
1424
  @@index([userID], map: "idx_userID")
@@ -3729,6 +3729,7 @@ model customer_notifications {
3729
3729
 
3730
3730
  model ai_call_batches {
3731
3731
  id Int @id @default(autoincrement())
3732
+ leadID Int
3732
3733
  batchId String @unique
3733
3734
  agent String?
3734
3735
  status String
@@ -3738,6 +3739,8 @@ model ai_call_batches {
3738
3739
  createdAt DateTime @default(now())
3739
3740
  completedAt DateTime?
3740
3741
 
3742
+ lead leads @relation(fields: [leadID], references: [leadID])
3743
+
3741
3744
  calls ai_call_logs[]
3742
3745
 
3743
3746
  @@index([batchId])
@@ -3762,8 +3765,8 @@ model ai_call_logs {
3762
3765
  batch ai_call_batches @relation(fields: [batchId], references: [batchId], onDelete: Cascade)
3763
3766
  customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
3764
3767
  aiCallAnalysis ai_call_analysis?
3765
- customerExtended customer_extended? @relation(fields: [customer_extendedId], references: [id])
3766
- customer_extendedId Int?
3768
+ lead leads @relation(fields: [leadID], references: [leadID])
3769
+ leadID Int
3767
3770
 
3768
3771
  @@index([batchId])
3769
3772
  @@index([callId])