@factor-wise/prisma-schema 2.0.109 → 2.0.111
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 -40
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -1053,6 +1053,8 @@ model profile_info {
|
|
|
1053
1053
|
model preoffer {
|
|
1054
1054
|
id Int @id @default(autoincrement())
|
|
1055
1055
|
customerID Int
|
|
1056
|
+
type String
|
|
1057
|
+
status String
|
|
1056
1058
|
response Json?
|
|
1057
1059
|
customer customer @relation(fields: [customerID], references: [customerID])
|
|
1058
1060
|
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
@@ -2938,6 +2940,8 @@ model credit_improve_customer {
|
|
|
2938
2940
|
alternateMobile String? @db.VarChar(50)
|
|
2939
2941
|
current_address Json?
|
|
2940
2942
|
digioKid String?
|
|
2943
|
+
razorpay_cust_id String?
|
|
2944
|
+
razorpay_fund_id String?
|
|
2941
2945
|
digioToken String? @db.VarChar(100)
|
|
2942
2946
|
kyc_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2943
2947
|
is_onboarded Boolean @default(false)
|
|
@@ -3002,46 +3006,6 @@ model credit_improve_leads {
|
|
|
3002
3006
|
@@index([loanType], map: "idx_loanType")
|
|
3003
3007
|
}
|
|
3004
3008
|
|
|
3005
|
-
model creadit_improve_leads {
|
|
3006
|
-
leadID Int @id @default(autoincrement())
|
|
3007
|
-
customerID Int?
|
|
3008
|
-
|
|
3009
|
-
purpose String? @db.VarChar(255)
|
|
3010
|
-
loanRequeried Float @default(500)
|
|
3011
|
-
status leads_status
|
|
3012
|
-
utmSource String @default("Website") @db.VarChar(100)
|
|
3013
|
-
fbLeads String?
|
|
3014
|
-
ip String
|
|
3015
|
-
callAssign Int
|
|
3016
|
-
creditAssign Int
|
|
3017
|
-
collectionUID Int?
|
|
3018
|
-
createdDate DateTime @default(now()) @db.Timestamp(0)
|
|
3019
|
-
updatedAt DateTime @default(now()) @db.DateTime(0)
|
|
3020
|
-
sanctionalloUID Int
|
|
3021
|
-
loanType lead_loan_type @default(improve_credit)
|
|
3022
|
-
consentOtp String?
|
|
3023
|
-
consentVerify Boolean @default(false)
|
|
3024
|
-
consentAt DateTime? @default(now()) @db.Timestamp(0)
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
// customer credit_improve_customer @relation(fields: [customerID], references: [ID])
|
|
3029
|
-
// creditApprovals credit_improve_approval @relation("CreditImproveApprovalToLead")
|
|
3030
|
-
// creditImproveLoan credit_improve_loan?
|
|
3031
|
-
// creditImproveCollections credit_improve_collection[] @relation("CreditImproveCollectionToLead")
|
|
3032
|
-
// creditImprovePayout credit_improve_payout?
|
|
3033
|
-
|
|
3034
|
-
@@index([customerID], map: "idx_customerID")
|
|
3035
|
-
@@index([status], map: "idx_status")
|
|
3036
|
-
@@index([utmSource], map: "idx_utmSource")
|
|
3037
|
-
@@index([fbLeads], map: "idx_fbLeads")
|
|
3038
|
-
@@index([callAssign], map: "idx_callAssign")
|
|
3039
|
-
@@index([collectionUID], map: "idx_collectionUID")
|
|
3040
|
-
@@index([sanctionalloUID], map: "idx_sanctionalloUID")
|
|
3041
|
-
@@index([createdDate], map: "idx_createdDate")
|
|
3042
|
-
@@index([updatedAt], map: "idx_updatedAt")
|
|
3043
|
-
@@index([loanType], map: "idx_loanType")
|
|
3044
|
-
}
|
|
3045
3009
|
|
|
3046
3010
|
model credit_improve_approval {
|
|
3047
3011
|
approvalID Int @id @default(autoincrement())
|
|
@@ -3748,6 +3712,7 @@ model customer_notifications {
|
|
|
3748
3712
|
data Json?
|
|
3749
3713
|
status NotificationStatus @default(PENDING)
|
|
3750
3714
|
failureReason String? @db.VarChar(255)
|
|
3715
|
+
isRead Boolean @default(false)
|
|
3751
3716
|
createdAt DateTime @default(now())
|
|
3752
3717
|
updatedAt DateTime @updatedAt
|
|
3753
3718
|
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
@@ -3755,6 +3720,7 @@ model customer_notifications {
|
|
|
3755
3720
|
@@index([customerID])
|
|
3756
3721
|
@@index([status])
|
|
3757
3722
|
@@index([type])
|
|
3723
|
+
@@index([isRead])
|
|
3758
3724
|
}
|
|
3759
3725
|
|
|
3760
3726
|
enum LocationType {
|