@factor-wise/prisma-schema 2.0.93 → 2.0.95

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.93",
3
+ "version": "2.0.95",
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",
@@ -714,6 +714,7 @@ model customer {
714
714
  sms customer_sms[]
715
715
  contacts customer_contact[]
716
716
  apps customer_app[]
717
+ credit_improve_customer credit_improve_customer?
717
718
 
718
719
 
719
720
 
@@ -1079,7 +1080,7 @@ model facebook_lead {
1079
1080
 
1080
1081
  model face_comparison {
1081
1082
  id Int @id @default(autoincrement())
1082
- leadID Int
1083
+ leadID Int?
1083
1084
  customerID Int
1084
1085
  sourceImage String @db.VarChar(255)
1085
1086
  targetImage String @db.VarChar(255)
@@ -2843,7 +2844,8 @@ model credforge_bre_log {
2843
2844
 
2844
2845
 
2845
2846
  model credit_improve_customer {
2846
- customerID Int @id @default(autoincrement())
2847
+ ID Int @id @default(autoincrement())
2848
+ customerID Int @unique()
2847
2849
  name String? @db.VarChar(100)
2848
2850
  firstName String? @db.VarChar(100)
2849
2851
  middlename String? @db.VarChar(100)
@@ -2870,10 +2872,12 @@ model credit_improve_customer {
2870
2872
  digioToken String? @db.VarChar(100)
2871
2873
  kyc_at DateTime? @default(now()) @db.Timestamp(0)
2872
2874
  is_onboarded Boolean @default(false)
2875
+ document Json?
2873
2876
  last_login DateTime @default(now()) @db.Timestamp(0)
2874
2877
  loanApplied Boolean @default(false)
2875
2878
  permanent_address Json?
2876
2879
  step String? @db.VarChar(255)
2880
+ customer customer @relation(fields: [customerID], references: [customerID])
2877
2881
 
2878
2882
 
2879
2883
  creaditImproveLeads creadit_improve_leads[]
@@ -2907,7 +2911,7 @@ model creadit_improve_leads {
2907
2911
  sanctionalloUID Int
2908
2912
  loanType lead_loan_type @default(improve_credit)
2909
2913
 
2910
- customer credit_improve_customer? @relation(fields: [customerID], references: [customerID])
2914
+ customer credit_improve_customer? @relation(fields: [customerID], references: [ID])
2911
2915
  creditApprovals credit_improve_approval[] @relation("CreditImproveApprovalToLead")
2912
2916
  creditImproveLoan credit_improve_loan?
2913
2917
  creditImproveCollections credit_improve_collection[] @relation("CreditImproveCollectionToLead")