@factor-wise/prisma-schema 2.0.61 → 2.0.63

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.61",
3
+ "version": "2.0.63",
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",
@@ -700,6 +700,7 @@ model customer {
700
700
  employmentHistory employment_history[]
701
701
  profileInfo profile_info[]
702
702
  finb_logs finb_logs[]
703
+ face_comparison face_comparison[]
703
704
 
704
705
 
705
706
  @@index([firstName], map: "firstName")
@@ -1006,6 +1007,24 @@ model facebook_lead {
1006
1007
  lead_data String @db.LongText
1007
1008
  }
1008
1009
 
1010
+ model face_comparison {
1011
+ id Int @id @default(autoincrement())
1012
+ leadID Int
1013
+ customerID Int
1014
+ sourceImage String @db.VarChar(255)
1015
+ targetImage String @db.VarChar(255)
1016
+ similarity Float?
1017
+ confidence Float?
1018
+ isMatch Boolean @default(false)
1019
+ createdAt DateTime @default(now())
1020
+ updatedAt DateTime @updatedAt
1021
+ customer customer @relation(fields: [customerID], references: [customerID])
1022
+ lead leads? @relation(fields: [leadID], references: [leadID])
1023
+
1024
+ @@index([customerID])
1025
+ @@index([leadID])
1026
+ }
1027
+
1009
1028
  model reminders {
1010
1029
  id Int @id @default(autoincrement())
1011
1030
  customerID Int
@@ -1251,6 +1270,7 @@ model leads {
1251
1270
  profileInfo profile_info[]
1252
1271
  criffsoftpull criffsoftpull?
1253
1272
  icici_payout icici_payout[]
1273
+ face_comparison face_comparison[]
1254
1274
 
1255
1275
  @@index([customerID], map: "leadcustomerID")
1256
1276
  }
@@ -1622,6 +1642,21 @@ model payout_accounts_log {
1622
1642
  @@ignore
1623
1643
  }
1624
1644
 
1645
+ model PaymentIdempotency {
1646
+ id Int @id @default(autoincrement())
1647
+ idempotencyKey String @unique
1648
+ paymentId String
1649
+ gateway String
1650
+ status String // PROCESSING | SUCCESS | FAILED
1651
+ requestPayload Json?
1652
+ responsePayload Json?
1653
+
1654
+ createdAt DateTime @default(now())
1655
+ updatedAt DateTime @updatedAt
1656
+
1657
+ @@index([paymentId])
1658
+ }
1659
+
1625
1660
  model Payout {
1626
1661
  id Int @id @default(autoincrement())
1627
1662
  razorpayPayoutId String? @unique