@factor-wise/prisma-schema 2.0.82 → 2.0.83

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.82",
3
+ "version": "2.0.83",
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",
@@ -711,11 +711,37 @@ model customer {
711
711
 
712
712
 
713
713
 
714
- @@index([firstName], map: "firstName")
715
- @@index([firstName], map: "firstName_2")
714
+ @@index([mobile], map: "idx_customer_mobile")
715
+ @@index([email], map: "idx_customer_email")
716
+ @@index([pancard], map: "idx_customer_pancard")
717
+ @@index([aadharNo], map: "idx_customer_aadhar")
718
+
719
+ @@index([createdDate], map: "idx_customer_createdDate")
720
+ @@index([updatedAt], map: "idx_customer_updatedAt")
716
721
  @@index([last_login], map: "idx_customer_lastLogin")
722
+
723
+ @@index([isVerified], map: "idx_customer_isVerified")
724
+ @@index([isBlocked], map: "idx_customer_isBlocked")
717
725
  @@index([loanApplied], map: "idx_customer_loanApplied")
718
- @@index([customerappId], map: "fk_customer_customerapp")
726
+
727
+ @@index([utmSource], map: "idx_customer_utmSource")
728
+ @@index([employeeType], map: "idx_customer_employeeType")
729
+ @@index([reloaneligible], map: "idx_customer_reloan")
730
+
731
+ @@index([customerappId], map: "idx_customer_customerapp")
732
+ @@index([presalesassign], map: "idx_customer_presalesassign")
733
+
734
+ @@index([digioKid], map: "idx_customer_digioKid")
735
+
736
+ @@index([firstName], map: "idx_customer_firstName")
737
+ @@index([lastName], map: "idx_customer_lastName")
738
+
739
+ @@index([mobile, createdDate], map: "idx_mobile_created")
740
+ @@index([pancard, createdDate], map: "idx_pan_created")
741
+ @@index([isVerified, isBlocked], map: "idx_verified_blocked")
742
+ @@index([loanApplied, createdDate], map: "idx_loanApplied_created")
743
+ @@index([utmSource, createdDate], map: "idx_source_created")
744
+
719
745
  }
720
746
 
721
747
  model customer_extended {
@@ -1306,7 +1332,19 @@ model leads {
1306
1332
  face_comparison face_comparison[]
1307
1333
  credforge_bre_log credforge_bre_log[]
1308
1334
 
1309
- @@index([customerID], map: "leadcustomerID")
1335
+ @@index([customerID], map: "idx_customerID")
1336
+ @@index([userID], map: "idx_userID")
1337
+ @@index([status], map: "idx_status")
1338
+ @@index([utmSource], map: "idx_utmSource")
1339
+ @@index([fbLeads], map: "idx_fbLeads")
1340
+ @@index([callAssign], map: "idx_callAssign")
1341
+ @@index([collectionUID], map: "idx_collectionUID")
1342
+ @@index([sanctionalloUID], map: "idx_sanctionalloUID")
1343
+ @@index([createdDate], map: "idx_createdDate")
1344
+ @@index([updatedAt], map: "idx_updatedAt")
1345
+ @@index([loanType], map: "idx_loanType")
1346
+ @@index([city], map: "idx_city")
1347
+ @@index([state], map: "idx_state")
1310
1348
  }
1311
1349
 
1312
1350
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
@@ -1480,6 +1518,36 @@ model loan {
1480
1518
  exported Boolean @default(false)
1481
1519
  disbursement_request disbursement_requests?
1482
1520
  lead leads @relation(fields: [leadID], references: [leadID])
1521
+
1522
+
1523
+ @@index([customerID], map: "idx_loan_customerID")
1524
+
1525
+ @@index([status], map: "idx_loan_status")
1526
+
1527
+ @@index([createdDate], map: "idx_loan_createdDate")
1528
+ @@index([updatedAt], map: "idx_loan_updatedAt")
1529
+
1530
+ @@index([pdDate], map: "idx_loan_pdDate")
1531
+
1532
+ @@index([disbursedBy], map: "idx_loan_disbursedBy")
1533
+
1534
+ @@index([exported], map: "idx_loan_exported")
1535
+
1536
+ @@index([allocate_date], map: "idx_loan_allocateDate")
1537
+
1538
+ @@index([accountNo], map: "idx_loan_accountNo")
1539
+
1540
+ @@index([bankIfsc], map: "idx_loan_bankIfsc")
1541
+
1542
+ @@index([status, createdDate], map: "idx_loan_status_created")
1543
+
1544
+ @@index([status, pdDate], map: "idx_loan_status_pdDate")
1545
+
1546
+ @@index([customerID, status], map: "idx_loan_customer_status")
1547
+
1548
+ @@index([exported, status], map: "idx_loan_export_status")
1549
+
1550
+ @@index([disbursedBy, status], map: "idx_loan_disbursedBy_status")
1483
1551
  }
1484
1552
 
1485
1553
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.