@factor-wise/prisma-schema 2.0.83 → 2.0.85

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.83",
3
+ "version": "2.0.85",
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",
@@ -526,6 +526,12 @@ model collection {
526
526
  @@index([leadID], map: "leadID")
527
527
  @@index([collectedBy])
528
528
  @@index([collectionStatusby])
529
+
530
+ @@index([collectionStatus, status], map: "idx_collection_status")
531
+ @@index([collectedDate], map: "idx_collection_date")
532
+ @@index([createdDate], map: "idx_collection_created")
533
+ @@index([collectionStatus, status, collectedDate], map: "idx_collection_export")
534
+ @@index([leadID, collectedDate], map: "idx_collection_lead_date")
529
535
  }
530
536
 
531
537
  /// 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
@@ -745,14 +751,15 @@ model customer {
745
751
  }
746
752
 
747
753
  model customer_extended {
748
- id Int @id @default(autoincrement())
749
- customerID Int @unique
750
- isBtCase Boolean @default(false)
751
- attempts Int? @default(0)
752
- lastAttempt DateTime?
753
- latitude Decimal? @db.Decimal(10, 7)
754
- longitude Decimal? @db.Decimal(10, 7)
755
- customer customer @relation(fields: [customerID], references: [customerID])
754
+ id Int @id @default(autoincrement())
755
+ customerID Int @unique
756
+ isBtCase Boolean @default(false)
757
+ attempts Int? @default(0)
758
+ lastAttempt DateTime?
759
+ latitude Decimal? @db.Decimal(10, 7)
760
+ longitude Decimal? @db.Decimal(10, 7)
761
+ selfieAttempts Int? @default(0)
762
+ customer customer @relation(fields: [customerID], references: [customerID])
756
763
 
757
764
  @@index([latitude, longitude])
758
765
  }
@@ -1345,6 +1352,7 @@ model leads {
1345
1352
  @@index([loanType], map: "idx_loanType")
1346
1353
  @@index([city], map: "idx_city")
1347
1354
  @@index([state], map: "idx_state")
1355
+ @@index([customerID, leadID], map: "idx_leads_customer_lead")
1348
1356
  }
1349
1357
 
1350
1358
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
@@ -1522,6 +1530,8 @@ model loan {
1522
1530
 
1523
1531
  @@index([customerID], map: "idx_loan_customerID")
1524
1532
 
1533
+ @@index([loanID], map: "idx_loan_loanID")
1534
+
1525
1535
  @@index([status], map: "idx_loan_status")
1526
1536
 
1527
1537
  @@index([createdDate], map: "idx_loan_createdDate")