@factor-wise/prisma-schema 2.0.78 → 2.0.80

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.78",
3
+ "version": "2.0.80",
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",
@@ -960,7 +960,7 @@ model employer {
960
960
  customerapp customerapp? @relation(fields: [customerappId], references: [customerID], map: "fk_employer_customerapp")
961
961
 
962
962
  @@index([customerID], map: "customerID")
963
- @@index([customerappId], map: "fk_employer_customerapp")
963
+ @@index([customerappId])
964
964
  }
965
965
 
966
966
  model employment_history {
@@ -1297,7 +1297,7 @@ model leads {
1297
1297
  criffsoftpull criffsoftpull?
1298
1298
  icici_payout icici_payout[]
1299
1299
  face_comparison face_comparison[]
1300
- credforge_bre_log credforge_bre_log?
1300
+ credforge_bre_log credforge_bre_log[]
1301
1301
 
1302
1302
  @@index([customerID], map: "leadcustomerID")
1303
1303
  }
@@ -1816,20 +1816,28 @@ model penny_drop {
1816
1816
 
1817
1817
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
1818
1818
  model pincode {
1819
- id BigInt @id @default(autoincrement())
1820
- pincode String @db.VarChar(10)
1821
- cityName String? @db.VarChar(100)
1822
- state String? @db.VarChar(100)
1823
- geoTag String? @db.VarChar(20)
1824
- geography String? @db.VarChar(50)
1825
- cityTier String? @db.VarChar(20)
1826
- isActive Boolean @default(true)
1827
- serviceable Boolean @default(true)
1828
- createdAt DateTime @default(now())
1829
- updatedAt DateTime @updatedAt
1819
+ id BigInt @id @default(autoincrement())
1820
+ pincode String @db.VarChar(10)
1821
+ circlename String? @db.VarChar(100)
1822
+ regionname String? @db.VarChar(100)
1823
+ divisionname String? @db.VarChar(20)
1824
+ officename String? @db.VarChar(50)
1825
+ officetype String? @db.VarChar(20)
1826
+ delivery String? @db.VarChar(20)
1827
+ district String? @db.VarChar(20)
1828
+ statename String? @db.VarChar(20)
1829
+ latitude String? @db.VarChar(20)
1830
+ longitude String? @db.VarChar(20)
1831
+ type String? @db.VarChar(20)
1832
+ riskStatus String? @db.VarChar(20)
1833
+ riskEligibleFlag String? @db.VarChar(20)
1834
+ eligibleSince String? @db.VarChar(20)
1835
+ isActive Boolean @default(false)
1836
+ createdAt DateTime @default(now())
1837
+ updatedAt DateTime @updatedAt
1830
1838
 
1831
1839
  @@unique([pincode])
1832
- @@index([pincode, isActive, serviceable])
1840
+ @@index([pincode, isActive, district, statename])
1833
1841
  }
1834
1842
 
1835
1843
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
@@ -2467,7 +2475,7 @@ model cibildata {
2467
2475
  @@index([leadID, createdAt], map: "idx_lead_createdAt")
2468
2476
  }
2469
2477
 
2470
- model criffsoftpull{
2478
+ model criffsoftpull {
2471
2479
  id Int @id @default(autoincrement())
2472
2480
  leadID Int? @unique
2473
2481
  customerID Int?
@@ -2477,9 +2485,8 @@ model criffsoftpull{
2477
2485
  createdAt DateTime? @default(now()) @db.Timestamp(0)
2478
2486
  updatedAt DateTime? @default(now()) @db.Timestamp(0)
2479
2487
 
2480
-
2481
- lead leads? @relation(fields: [leadID], references: [leadID])
2482
- customer customer? @relation(fields: [customerID], references: [customerID])
2488
+ lead leads? @relation(fields: [leadID], references: [leadID])
2489
+ customer customer? @relation(fields: [customerID], references: [customerID])
2483
2490
 
2484
2491
  @@index([leadID])
2485
2492
  @@index([status])
@@ -2728,7 +2735,7 @@ model criff_test {
2728
2735
 
2729
2736
  model credforge_bre_log {
2730
2737
  id Int @id @default(autoincrement())
2731
- leadID Int? @unique
2738
+ leadID Int?
2732
2739
  customerID Int?
2733
2740
  workflowName String
2734
2741
  requestPayload Json
@@ -2737,7 +2744,7 @@ model credforge_bre_log {
2737
2744
  status String?
2738
2745
  createdAt DateTime @default(now())
2739
2746
  leads leads? @relation(fields: [leadID], references: [leadID])
2740
- customer customer? @relation(fields: [customerID], references: [customerID])
2747
+ customer customer? @relation(fields: [customerID], references: [customerID])
2741
2748
 
2742
2749
  @@index([leadID])
2743
2750
  @@index([status])