@factor-wise/prisma-schema 2.0.94 → 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 +1 -1
- package/prisma/schema.prisma +6 -2
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -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
|
|
|
@@ -2843,7 +2844,8 @@ model credforge_bre_log {
|
|
|
2843
2844
|
|
|
2844
2845
|
|
|
2845
2846
|
model credit_improve_customer {
|
|
2846
|
-
|
|
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: [
|
|
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")
|