@factor-wise/prisma-schema 2.0.82 → 2.0.84

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.84",
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,22 +711,49 @@ 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 {
722
- id Int @id @default(autoincrement())
723
- customerID Int @unique
724
- isBtCase Boolean @default(false)
725
- attempts Int? @default(0)
726
- lastAttempt DateTime?
727
- latitude Decimal? @db.Decimal(10, 7)
728
- longitude Decimal? @db.Decimal(10, 7)
729
- customer customer @relation(fields: [customerID], references: [customerID])
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
+ selfieAttempts Int? @default(0)
756
+ customer customer @relation(fields: [customerID], references: [customerID])
730
757
 
731
758
  @@index([latitude, longitude])
732
759
  }
@@ -1306,7 +1333,19 @@ model leads {
1306
1333
  face_comparison face_comparison[]
1307
1334
  credforge_bre_log credforge_bre_log[]
1308
1335
 
1309
- @@index([customerID], map: "leadcustomerID")
1336
+ @@index([customerID], map: "idx_customerID")
1337
+ @@index([userID], map: "idx_userID")
1338
+ @@index([status], map: "idx_status")
1339
+ @@index([utmSource], map: "idx_utmSource")
1340
+ @@index([fbLeads], map: "idx_fbLeads")
1341
+ @@index([callAssign], map: "idx_callAssign")
1342
+ @@index([collectionUID], map: "idx_collectionUID")
1343
+ @@index([sanctionalloUID], map: "idx_sanctionalloUID")
1344
+ @@index([createdDate], map: "idx_createdDate")
1345
+ @@index([updatedAt], map: "idx_updatedAt")
1346
+ @@index([loanType], map: "idx_loanType")
1347
+ @@index([city], map: "idx_city")
1348
+ @@index([state], map: "idx_state")
1310
1349
  }
1311
1350
 
1312
1351
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
@@ -1480,6 +1519,36 @@ model loan {
1480
1519
  exported Boolean @default(false)
1481
1520
  disbursement_request disbursement_requests?
1482
1521
  lead leads @relation(fields: [leadID], references: [leadID])
1522
+
1523
+
1524
+ @@index([customerID], map: "idx_loan_customerID")
1525
+
1526
+ @@index([status], map: "idx_loan_status")
1527
+
1528
+ @@index([createdDate], map: "idx_loan_createdDate")
1529
+ @@index([updatedAt], map: "idx_loan_updatedAt")
1530
+
1531
+ @@index([pdDate], map: "idx_loan_pdDate")
1532
+
1533
+ @@index([disbursedBy], map: "idx_loan_disbursedBy")
1534
+
1535
+ @@index([exported], map: "idx_loan_exported")
1536
+
1537
+ @@index([allocate_date], map: "idx_loan_allocateDate")
1538
+
1539
+ @@index([accountNo], map: "idx_loan_accountNo")
1540
+
1541
+ @@index([bankIfsc], map: "idx_loan_bankIfsc")
1542
+
1543
+ @@index([status, createdDate], map: "idx_loan_status_created")
1544
+
1545
+ @@index([status, pdDate], map: "idx_loan_status_pdDate")
1546
+
1547
+ @@index([customerID, status], map: "idx_loan_customer_status")
1548
+
1549
+ @@index([exported, status], map: "idx_loan_export_status")
1550
+
1551
+ @@index([disbursedBy, status], map: "idx_loan_disbursedBy_status")
1483
1552
  }
1484
1553
 
1485
1554
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.