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