@factor-wise/prisma-schema 2.0.110 → 2.0.112
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 +142 -114
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -641,86 +641,88 @@ model convoque_call_logs {
|
|
|
641
641
|
}
|
|
642
642
|
|
|
643
643
|
model customer {
|
|
644
|
-
customerID
|
|
645
|
-
name
|
|
646
|
-
firstName
|
|
647
|
-
middlename
|
|
648
|
-
lastName
|
|
649
|
-
fatherName
|
|
650
|
-
gender
|
|
651
|
-
dob
|
|
652
|
-
mobile
|
|
653
|
-
email
|
|
654
|
-
pancard
|
|
655
|
-
aadharNo
|
|
656
|
-
password
|
|
657
|
-
marrital
|
|
658
|
-
profile
|
|
659
|
-
otp
|
|
660
|
-
emailOtp
|
|
661
|
-
emailVerify
|
|
662
|
-
refreshToken
|
|
663
|
-
isVerified
|
|
664
|
-
employeeType
|
|
665
|
-
createdDate
|
|
666
|
-
industry
|
|
667
|
-
designation
|
|
668
|
-
working_since
|
|
669
|
-
salary_date
|
|
670
|
-
official_email
|
|
671
|
-
education
|
|
672
|
-
pan_cust_verified
|
|
673
|
-
dob_digit_match
|
|
674
|
-
razorpay_cust_id
|
|
675
|
-
reloaneligible
|
|
676
|
-
reloanremark
|
|
677
|
-
fraudcheck
|
|
678
|
-
updatedAt
|
|
679
|
-
customerappId
|
|
680
|
-
isBlocked
|
|
681
|
-
utmSource
|
|
682
|
-
alternateMobile
|
|
683
|
-
current_address
|
|
684
|
-
digioKid
|
|
685
|
-
digioToken
|
|
686
|
-
digioMobileNumber
|
|
687
|
-
kyc_at
|
|
688
|
-
is_onboarded
|
|
689
|
-
last_login
|
|
690
|
-
loanApplied
|
|
691
|
-
permanent_address
|
|
692
|
-
presalesassign
|
|
693
|
-
companyName
|
|
694
|
-
step
|
|
695
|
-
razorpay_contact_id
|
|
696
|
-
addresses
|
|
697
|
-
bankstatement
|
|
698
|
-
customerapp
|
|
699
|
-
accounts
|
|
700
|
-
document
|
|
701
|
-
employer
|
|
702
|
-
leads
|
|
703
|
-
reference
|
|
704
|
-
reloan_status
|
|
705
|
-
reminders
|
|
706
|
-
aiAgentCallLogs
|
|
707
|
-
employmentHistory
|
|
708
|
-
profileInfo
|
|
709
|
-
finb_logs
|
|
710
|
-
face_comparison
|
|
711
|
-
preoffer
|
|
712
|
-
customer_extended
|
|
713
|
-
criffsoftpull
|
|
714
|
-
credforge_bre_log
|
|
715
|
-
sms
|
|
716
|
-
contacts
|
|
717
|
-
apps
|
|
644
|
+
customerID Int @id @default(autoincrement())
|
|
645
|
+
name String? @db.VarChar(100)
|
|
646
|
+
firstName String? @db.VarChar(100)
|
|
647
|
+
middlename String? @db.VarChar(100)
|
|
648
|
+
lastName String? @db.VarChar(100)
|
|
649
|
+
fatherName String? @db.VarChar(100)
|
|
650
|
+
gender customer_gender? @default(NA)
|
|
651
|
+
dob DateTime? @db.Date
|
|
652
|
+
mobile BigInt
|
|
653
|
+
email String? @db.VarChar(100)
|
|
654
|
+
pancard String? @db.VarChar(100)
|
|
655
|
+
aadharNo BigInt?
|
|
656
|
+
password String @default("") @db.VarChar(20)
|
|
657
|
+
marrital String? @db.VarChar(10)
|
|
658
|
+
profile String? @db.VarChar(100)
|
|
659
|
+
otp String? @default("") @db.VarChar(20)
|
|
660
|
+
emailOtp String? @db.VarChar(10)
|
|
661
|
+
emailVerify Boolean? @default(false)
|
|
662
|
+
refreshToken String? @db.VarChar(100)
|
|
663
|
+
isVerified Boolean @default(dbgenerated("b'0'")) @db.Bit(1)
|
|
664
|
+
employeeType customer_employeeType?
|
|
665
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
666
|
+
industry String? @db.Text
|
|
667
|
+
designation String? @db.Text
|
|
668
|
+
working_since String? @db.Text
|
|
669
|
+
salary_date String? @db.Text
|
|
670
|
+
official_email String? @db.Text
|
|
671
|
+
education String? @db.Text
|
|
672
|
+
pan_cust_verified Int @default(0)
|
|
673
|
+
dob_digit_match customer_dob_digit_match?
|
|
674
|
+
razorpay_cust_id String? @db.VarChar(100)
|
|
675
|
+
reloaneligible customer_reloaneligible? @default(Approve)
|
|
676
|
+
reloanremark String? @db.VarChar(255)
|
|
677
|
+
fraudcheck Boolean? @default(false)
|
|
678
|
+
updatedAt DateTime? @default(now()) @updatedAt @db.Timestamp(0)
|
|
679
|
+
customerappId Int?
|
|
680
|
+
isBlocked Boolean @default(false)
|
|
681
|
+
utmSource String? @db.VarChar(256)
|
|
682
|
+
alternateMobile String? @db.VarChar(50)
|
|
683
|
+
current_address Json?
|
|
684
|
+
digioKid String?
|
|
685
|
+
digioToken String? @db.VarChar(100)
|
|
686
|
+
digioMobileNumber String?
|
|
687
|
+
kyc_at DateTime? @default(now()) @db.Timestamp(0)
|
|
688
|
+
is_onboarded Boolean @default(false)
|
|
689
|
+
last_login DateTime @default(now()) @db.Timestamp(0)
|
|
690
|
+
loanApplied Boolean @default(false)
|
|
691
|
+
permanent_address Json?
|
|
692
|
+
presalesassign Int?
|
|
693
|
+
companyName String? @db.Text
|
|
694
|
+
step String? @db.VarChar(255)
|
|
695
|
+
razorpay_contact_id String? @db.VarChar(100)
|
|
696
|
+
addresses address[]
|
|
697
|
+
bankstatement bankstatement[]
|
|
698
|
+
customerapp customerapp? @relation(fields: [customerappId], references: [customerID], map: "fk_customer_customerapp")
|
|
699
|
+
accounts customeraccount[]
|
|
700
|
+
document document[]
|
|
701
|
+
employer employer[]
|
|
702
|
+
leads leads[]
|
|
703
|
+
reference reference[]
|
|
704
|
+
reloan_status reloan_status[]
|
|
705
|
+
reminders reminders[]
|
|
706
|
+
aiAgentCallLogs AIAgentCallLog[]
|
|
707
|
+
employmentHistory employment_history[]
|
|
708
|
+
profileInfo profile_info[]
|
|
709
|
+
finb_logs finb_logs[]
|
|
710
|
+
face_comparison face_comparison[]
|
|
711
|
+
preoffer preoffer[]
|
|
712
|
+
customer_extended customer_extended?
|
|
713
|
+
criffsoftpull criffsoftpull[]
|
|
714
|
+
credforge_bre_log credforge_bre_log[]
|
|
715
|
+
sms customer_sms[]
|
|
716
|
+
contacts customer_contact[]
|
|
717
|
+
apps customer_app[]
|
|
718
718
|
credit_improve_customer credit_improve_customer?
|
|
719
719
|
|
|
720
720
|
customerDevices customer_devices[]
|
|
721
721
|
|
|
722
722
|
notifications customer_notifications[]
|
|
723
723
|
|
|
724
|
+
aiCallLogs ai_call_logs[]
|
|
725
|
+
|
|
724
726
|
@@index([mobile], map: "idx_customer_mobile")
|
|
725
727
|
@@index([email], map: "idx_customer_email")
|
|
726
728
|
@@index([pancard], map: "idx_customer_pancard")
|
|
@@ -770,6 +772,8 @@ model customer_extended {
|
|
|
770
772
|
locationType LocationType?
|
|
771
773
|
customer customer @relation(fields: [customerID], references: [customerID])
|
|
772
774
|
|
|
775
|
+
callLogs ai_call_logs[]
|
|
776
|
+
|
|
773
777
|
@@unique([customerID, locationType])
|
|
774
778
|
@@index([latitude, longitude])
|
|
775
779
|
}
|
|
@@ -1053,6 +1057,8 @@ model profile_info {
|
|
|
1053
1057
|
model preoffer {
|
|
1054
1058
|
id Int @id @default(autoincrement())
|
|
1055
1059
|
customerID Int
|
|
1060
|
+
type String
|
|
1061
|
+
status String
|
|
1056
1062
|
response Json?
|
|
1057
1063
|
customer customer @relation(fields: [customerID], references: [customerID])
|
|
1058
1064
|
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
@@ -2938,6 +2944,8 @@ model credit_improve_customer {
|
|
|
2938
2944
|
alternateMobile String? @db.VarChar(50)
|
|
2939
2945
|
current_address Json?
|
|
2940
2946
|
digioKid String?
|
|
2947
|
+
razorpay_cust_id String?
|
|
2948
|
+
razorpay_fund_id String?
|
|
2941
2949
|
digioToken String? @db.VarChar(100)
|
|
2942
2950
|
kyc_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2943
2951
|
is_onboarded Boolean @default(false)
|
|
@@ -3002,46 +3010,6 @@ model credit_improve_leads {
|
|
|
3002
3010
|
@@index([loanType], map: "idx_loanType")
|
|
3003
3011
|
}
|
|
3004
3012
|
|
|
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
3013
|
|
|
3046
3014
|
model credit_improve_approval {
|
|
3047
3015
|
approvalID Int @id @default(autoincrement())
|
|
@@ -3759,6 +3727,66 @@ model customer_notifications {
|
|
|
3759
3727
|
@@index([isRead])
|
|
3760
3728
|
}
|
|
3761
3729
|
|
|
3730
|
+
model ai_call_batches {
|
|
3731
|
+
id Int @id @default(autoincrement())
|
|
3732
|
+
batchId String @unique
|
|
3733
|
+
agent String?
|
|
3734
|
+
status String
|
|
3735
|
+
totalCalls Int
|
|
3736
|
+
completedCalls Int?
|
|
3737
|
+
failedCalls Int?
|
|
3738
|
+
createdAt DateTime @default(now())
|
|
3739
|
+
completedAt DateTime?
|
|
3740
|
+
|
|
3741
|
+
calls ai_call_logs[]
|
|
3742
|
+
|
|
3743
|
+
@@index([batchId])
|
|
3744
|
+
}
|
|
3745
|
+
|
|
3746
|
+
model ai_call_logs {
|
|
3747
|
+
id Int @id @default(autoincrement())
|
|
3748
|
+
callId String @unique
|
|
3749
|
+
batchId String
|
|
3750
|
+
customerID Int
|
|
3751
|
+
phoneNumber String
|
|
3752
|
+
status String
|
|
3753
|
+
duration Int?
|
|
3754
|
+
callStartedAt DateTime?
|
|
3755
|
+
completedAt DateTime?
|
|
3756
|
+
recordingUrl String?
|
|
3757
|
+
hangupCause String?
|
|
3758
|
+
agent String?
|
|
3759
|
+
createdAt DateTime @default(now())
|
|
3760
|
+
updatedAt DateTime @updatedAt
|
|
3761
|
+
|
|
3762
|
+
batch ai_call_batches @relation(fields: [batchId], references: [batchId], onDelete: Cascade)
|
|
3763
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
3764
|
+
aiCallAnalysis ai_call_analysis?
|
|
3765
|
+
customerExtended customer_extended? @relation(fields: [customer_extendedId], references: [id])
|
|
3766
|
+
customer_extendedId Int?
|
|
3767
|
+
|
|
3768
|
+
@@index([batchId])
|
|
3769
|
+
@@index([callId])
|
|
3770
|
+
@@index([phoneNumber])
|
|
3771
|
+
@@index([customerID])
|
|
3772
|
+
@@index([status])
|
|
3773
|
+
}
|
|
3774
|
+
|
|
3775
|
+
model ai_call_analysis {
|
|
3776
|
+
id Int @id @default(autoincrement())
|
|
3777
|
+
callId String @unique
|
|
3778
|
+
summary String? @db.Text
|
|
3779
|
+
tentativeDate DateTime?
|
|
3780
|
+
customerConfirmationStatus String?
|
|
3781
|
+
transcript Json?
|
|
3782
|
+
createdAt DateTime @default(now())
|
|
3783
|
+
updatedAt DateTime @updatedAt
|
|
3784
|
+
|
|
3785
|
+
call ai_call_logs @relation(fields: [callId], references: [callId], onDelete: Cascade)
|
|
3786
|
+
|
|
3787
|
+
@@index([callId])
|
|
3788
|
+
}
|
|
3789
|
+
|
|
3762
3790
|
enum LocationType {
|
|
3763
3791
|
login
|
|
3764
3792
|
leadCreation
|