@factor-wise/prisma-schema 2.0.84 → 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.84",
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
@@ -1346,6 +1352,7 @@ model leads {
1346
1352
  @@index([loanType], map: "idx_loanType")
1347
1353
  @@index([city], map: "idx_city")
1348
1354
  @@index([state], map: "idx_state")
1355
+ @@index([customerID, leadID], map: "idx_leads_customer_lead")
1349
1356
  }
1350
1357
 
1351
1358
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
@@ -1523,6 +1530,8 @@ model loan {
1523
1530
 
1524
1531
  @@index([customerID], map: "idx_loan_customerID")
1525
1532
 
1533
+ @@index([loanID], map: "idx_loan_loanID")
1534
+
1526
1535
  @@index([status], map: "idx_loan_status")
1527
1536
 
1528
1537
  @@index([createdDate], map: "idx_loan_createdDate")