@factor-wise/prisma-schema 2.0.89 → 2.0.91

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.89",
3
+ "version": "2.0.91",
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",
@@ -762,6 +762,7 @@ model customer_extended {
762
762
  latitude Decimal? @db.Decimal(10, 7)
763
763
  longitude Decimal? @db.Decimal(10, 7)
764
764
  selfieAttempts Int? @default(0)
765
+ isNeedReKyc Boolean? @default(false)
765
766
  customer customer @relation(fields: [customerID], references: [customerID])
766
767
 
767
768
  @@index([latitude, longitude])
@@ -2841,6 +2842,183 @@ model credforge_bre_log {
2841
2842
  }
2842
2843
 
2843
2844
 
2845
+ model credit_improve_customer {
2846
+ customerID Int @id @default(autoincrement())
2847
+ name String? @db.VarChar(100)
2848
+ firstName String? @db.VarChar(100)
2849
+ middlename String? @db.VarChar(100)
2850
+ lastName String? @db.VarChar(100)
2851
+ fatherName String? @db.VarChar(100)
2852
+ gender customer_gender? @default(NA)
2853
+ dob DateTime? @db.Date
2854
+ mobile BigInt
2855
+ email String? @db.VarChar(100)
2856
+ pancard String? @db.VarChar(100)
2857
+ aadharNo BigInt?
2858
+ otp String? @default("") @db.VarChar(20)
2859
+ emailOtp String? @db.VarChar(10)
2860
+ emailVerify Boolean? @default(false)
2861
+ refreshToken String? @db.VarChar(100)
2862
+ isVerified Boolean @default(dbgenerated("b'0'")) @db.Bit(1)
2863
+ createdDate DateTime @default(now()) @db.DateTime(0)
2864
+ pan_cust_verified Int @default(0)
2865
+ updatedAt DateTime? @default(now()) @updatedAt @db.Timestamp(0)
2866
+ utmSource String? @db.VarChar(256)
2867
+ alternateMobile String? @db.VarChar(50)
2868
+ current_address Json?
2869
+ digioKid String?
2870
+ digioToken String? @db.VarChar(100)
2871
+ kyc_at DateTime? @default(now()) @db.Timestamp(0)
2872
+ is_onboarded Boolean @default(false)
2873
+ last_login DateTime @default(now()) @db.Timestamp(0)
2874
+ loanApplied Boolean @default(false)
2875
+ permanent_address Json?
2876
+ step String? @db.VarChar(255)
2877
+
2878
+
2879
+ creaditImproveLeads creadit_improve_leads[]
2880
+ @@index([mobile], map: "idx_customer_mobile")
2881
+ @@index([pancard], map: "idx_customer_pancard")
2882
+ @@index([aadharNo], map: "idx_customer_aadhar")
2883
+ @@index([createdDate], map: "idx_customer_createdDate")
2884
+ @@index([utmSource], map: "idx_customer_utmSource")
2885
+ @@index([mobile, createdDate], map: "idx_mobile_created")
2886
+ @@index([pancard, createdDate], map: "idx_pan_created")
2887
+ @@index([utmSource, createdDate], map: "idx_source_created")
2888
+ }
2889
+
2890
+
2891
+
2892
+ model creadit_improve_leads {
2893
+ leadID Int @id @default(autoincrement())
2894
+ customerID Int?
2895
+
2896
+ purpose String? @db.VarChar(255)
2897
+ loanRequeried Float @default(500)
2898
+ status leads_status
2899
+ utmSource String @default("Website") @db.VarChar(100)
2900
+ fbLeads String?
2901
+ ip String
2902
+ callAssign Int
2903
+ creditAssign Int
2904
+ collectionUID Int?
2905
+ createdDate DateTime @default(now()) @db.Timestamp(0)
2906
+ updatedAt DateTime @default(now()) @db.DateTime(0)
2907
+ sanctionalloUID Int
2908
+ loanType lead_loan_type @default(improve_credit)
2909
+
2910
+ customer credit_improve_customer? @relation(fields: [customerID], references: [customerID])
2911
+ creditApprovals credit_improve_approval[] @relation("CreditImproveApprovalToLead")
2912
+ creditImproveLoan credit_improve_loan?
2913
+ creditImproveCollections credit_improve_collection[] @relation("CreditImproveCollectionToLead")
2914
+
2915
+
2916
+ @@index([customerID], map: "idx_customerID")
2917
+ @@index([status], map: "idx_status")
2918
+ @@index([utmSource], map: "idx_utmSource")
2919
+ @@index([fbLeads], map: "idx_fbLeads")
2920
+ @@index([callAssign], map: "idx_callAssign")
2921
+ @@index([collectionUID], map: "idx_collectionUID")
2922
+ @@index([sanctionalloUID], map: "idx_sanctionalloUID")
2923
+ @@index([createdDate], map: "idx_createdDate")
2924
+ @@index([updatedAt], map: "idx_updatedAt")
2925
+ @@index([loanType], map: "idx_loanType")
2926
+ }
2927
+
2928
+ model credit_improve_approval {
2929
+ approvalID Int @id @default(autoincrement())
2930
+ customerID Int?
2931
+ leadID Int
2932
+ loanType Int @default(0)
2933
+ productType String?
2934
+ branch String
2935
+ loanAmtApproved Float @default(0)
2936
+ tenure Int
2937
+ roi Float
2938
+ repayDate DateTime @db.Date
2939
+ adminFee Float
2940
+ plateFormFee Float? @default(0)
2941
+ creditRiskAnalisys Float? @default(0)
2942
+ GstOfAdminFee Float? @default(0)
2943
+ alternateMobile String @db.VarChar(20)
2944
+ officialEmail String @db.VarChar(100)
2945
+ monthlyIncome Float @default(0)
2946
+ cibil Int
2947
+ activePaydayLoan Int @default(0)
2948
+ status approval_status
2949
+ remark String?
2950
+ loanRequirePurpose String?
2951
+ creditedBy Int?
2952
+ rejectionReason String?
2953
+ redFlag String?
2954
+ createdDate DateTime @default(now()) @db.DateTime(0)
2955
+ updatedAt DateTime @default(now()) @db.DateTime(0)
2956
+ customerApproval approval_customerApproval @default(ZERO)
2957
+
2958
+ creditLead creadit_improve_leads @relation("CreditImproveApprovalToLead", fields: [leadID], references: [leadID])
2959
+
2960
+ @@index([leadID])
2961
+ }
2962
+
2963
+ model credit_improve_loan {
2964
+ id Int @id @default(autoincrement())
2965
+ leadID Int @unique
2966
+ loanNo String @unique
2967
+ customerID Int?
2968
+ disbursalAmount Float
2969
+ disbursalDate String? @db.Text
2970
+ disbursalTime DateTime @default(dbgenerated("'00:00:00'")) @db.Time(0)
2971
+ disbursalRefrenceNo String?
2972
+ accountNo String @db.VarChar(100)
2973
+ accountType String @db.VarChar(100)
2974
+ bankIfsc String @db.VarChar(100)
2975
+ bank String
2976
+ bankBranch String
2977
+ pdDate DateTime @db.Date
2978
+ pdDoneBy String @db.VarChar(100)
2979
+ deduction Float @default(0)
2980
+ remarks String
2981
+ status loan_status
2982
+ rejReason String? @db.VarChar(256)
2983
+ ip String @db.VarChar(100)
2984
+ disbursedBy Int?
2985
+ createdDate DateTime @default(now()) @db.DateTime(0)
2986
+ updatedAt DateTime @default(now()) @db.DateTime(0)
2987
+
2988
+ lead creadit_improve_leads @relation(fields: [leadID], references: [leadID])
2989
+
2990
+ @@index([customerID])
2991
+ @@index([status])
2992
+ }
2993
+
2994
+ model credit_improve_collection {
2995
+ collectionID Int @id @default(autoincrement())
2996
+ customerID String? @db.VarChar(50)
2997
+ leadID Int
2998
+ loanNo String
2999
+
3000
+ collectedAmount Float
3001
+ penaltyAmount Float?
3002
+ collectedMode collection_collectedMode @default(NA)
3003
+ collectedDate DateTime @db.Date
3004
+ referenceNo String
3005
+ discountAmount Float @default(0)
3006
+ settlemenAmount Float @default(0)
3007
+ status collection_status
3008
+ remark String
3009
+ collectedBy Int
3010
+ createdDate DateTime @default(now()) @db.DateTime(0)
3011
+
3012
+ collectionStatus String @default("Approved") @db.VarChar(216)
3013
+ collectionStatusby Int?
3014
+ approvedDate DateTime? @db.DateTime(0)
3015
+
3016
+ creditLead creadit_improve_leads @relation("CreditImproveCollectionToLead", fields: [leadID], references: [leadID])
3017
+
3018
+ @@index([leadID])
3019
+ }
3020
+
3021
+
2844
3022
  enum usersgoogle_oauth_provider {
2845
3023
  google
2846
3024
  facebook