@factor-wise/prisma-schema 2.0.41 → 2.0.43
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 +91 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -650,6 +650,8 @@ model customer {
|
|
|
650
650
|
marrital String? @db.VarChar(10)
|
|
651
651
|
profile String? @db.VarChar(100)
|
|
652
652
|
otp String? @default("") @db.VarChar(20)
|
|
653
|
+
emailOtp String? @db.VarChar(10)
|
|
654
|
+
emailVerify Boolean? @default(false)
|
|
653
655
|
refreshToken String? @db.VarChar(100)
|
|
654
656
|
isVerified Boolean @default(dbgenerated("b'0'")) @db.Bit(1)
|
|
655
657
|
employeeType customer_employeeType?
|
|
@@ -2771,6 +2773,80 @@ model fi {
|
|
|
2771
2773
|
@@unique([leadID, sourceDomain], map: "uniq_lead_source")
|
|
2772
2774
|
}
|
|
2773
2775
|
|
|
2776
|
+
model vendors {
|
|
2777
|
+
id Int @id @default(autoincrement()) @db.UnsignedInt
|
|
2778
|
+
name String @db.VarChar(255)
|
|
2779
|
+
clientId String @unique @db.VarChar(100)
|
|
2780
|
+
secretId String @db.VarChar(255)
|
|
2781
|
+
isActive Boolean @default(true)
|
|
2782
|
+
createdAt DateTime @default(now())
|
|
2783
|
+
updatedAt DateTime @updatedAt
|
|
2784
|
+
|
|
2785
|
+
leads vendor_leads[]
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2788
|
+
model vendor_leads {
|
|
2789
|
+
id Int @id @default(autoincrement()) @db.UnsignedInt
|
|
2790
|
+
|
|
2791
|
+
vendorId Int @db.UnsignedInt
|
|
2792
|
+
vendor vendors @relation(fields: [vendorId], references: [id])
|
|
2793
|
+
|
|
2794
|
+
name String? @db.VarChar(255)
|
|
2795
|
+
mobile String @db.VarChar(20)
|
|
2796
|
+
pancard String? @db.VarChar(20)
|
|
2797
|
+
email String? @db.VarChar(255)
|
|
2798
|
+
pincode String? @db.VarChar(10)
|
|
2799
|
+
monthly_income Decimal? @db.Decimal(15, 2)
|
|
2800
|
+
gender String? @db.VarChar(10)
|
|
2801
|
+
dob String? @db.VarChar(10)
|
|
2802
|
+
profession String? @db.VarChar(100)
|
|
2803
|
+
|
|
2804
|
+
lead_id String? @db.VarChar(100)
|
|
2805
|
+
lead_type LeadType?
|
|
2806
|
+
|
|
2807
|
+
status LeadStatus @default(NEW)
|
|
2808
|
+
sub_status String? @db.VarChar(100)
|
|
2809
|
+
remark String? @db.Text
|
|
2810
|
+
|
|
2811
|
+
isConverted Boolean @default(false)
|
|
2812
|
+
convertedAt DateTime?
|
|
2813
|
+
|
|
2814
|
+
assignedTo Int?
|
|
2815
|
+
|
|
2816
|
+
followUpDate DateTime?
|
|
2817
|
+
lastCallAt DateTime?
|
|
2818
|
+
|
|
2819
|
+
source String? @db.VarChar(100)
|
|
2820
|
+
batchId String? @db.VarChar(100)
|
|
2821
|
+
|
|
2822
|
+
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
2823
|
+
updated_at DateTime @updatedAt @db.Timestamp(0)
|
|
2824
|
+
|
|
2825
|
+
callLogs call_logs[]
|
|
2826
|
+
|
|
2827
|
+
@@unique([vendorId, mobile])
|
|
2828
|
+
@@index([vendorId])
|
|
2829
|
+
@@index([mobile])
|
|
2830
|
+
@@index([status])
|
|
2831
|
+
@@index([assignedTo])
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
|
|
2835
|
+
model call_logs {
|
|
2836
|
+
id Int @id @default(autoincrement())
|
|
2837
|
+
leadId Int @db.UnsignedInt
|
|
2838
|
+
lead vendor_leads @relation(fields: [leadId], references: [id])
|
|
2839
|
+
agentId Int? @db.UnsignedInt
|
|
2840
|
+
status LeadStatus?
|
|
2841
|
+
sub_status String? @db.VarChar(100)
|
|
2842
|
+
remark String? @db.Text
|
|
2843
|
+
createdAt DateTime @default(now())
|
|
2844
|
+
|
|
2845
|
+
@@index([leadId])
|
|
2846
|
+
@@index([agentId])
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
|
|
2774
2850
|
|
|
2775
2851
|
enum fi_bucket {
|
|
2776
2852
|
BUCKET_10_30 @map("10-30")
|
|
@@ -2895,4 +2971,19 @@ enum bankanalysisStatus {
|
|
|
2895
2971
|
PROCESSING
|
|
2896
2972
|
SUCCEEDED
|
|
2897
2973
|
FAILED
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
enum LeadType {
|
|
2977
|
+
v1
|
|
2978
|
+
v2
|
|
2979
|
+
v3
|
|
2980
|
+
}
|
|
2981
|
+
|
|
2982
|
+
enum LeadStatus {
|
|
2983
|
+
NEW
|
|
2984
|
+
CONTACTED
|
|
2985
|
+
FOLLOW_UP
|
|
2986
|
+
QUALIFIED
|
|
2987
|
+
REJECTED
|
|
2988
|
+
CONVERTED
|
|
2898
2989
|
}
|