@factor-wise/prisma-schema 2.0.40 → 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 +103 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -2494,6 +2494,20 @@ model cibil_fetch_logs {
|
|
|
2494
2494
|
@@index([createdAt])
|
|
2495
2495
|
}
|
|
2496
2496
|
|
|
2497
|
+
model criff_test {
|
|
2498
|
+
id Int @id @default(autoincrement())
|
|
2499
|
+
leadID Int
|
|
2500
|
+
domain String @db.VarChar(50)
|
|
2501
|
+
criff Json
|
|
2502
|
+
|
|
2503
|
+
createdAt DateTime @default(now()) @db.Timestamp(0)
|
|
2504
|
+
updatedAt DateTime @updatedAt @db.Timestamp(0)
|
|
2505
|
+
|
|
2506
|
+
@@unique([leadID, domain])
|
|
2507
|
+
@@index([leadID])
|
|
2508
|
+
@@index([domain])
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2497
2511
|
|
|
2498
2512
|
enum usersgoogle_oauth_provider {
|
|
2499
2513
|
google
|
|
@@ -2757,6 +2771,80 @@ model fi {
|
|
|
2757
2771
|
@@unique([leadID, sourceDomain], map: "uniq_lead_source")
|
|
2758
2772
|
}
|
|
2759
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
|
+
|
|
2760
2848
|
|
|
2761
2849
|
enum fi_bucket {
|
|
2762
2850
|
BUCKET_10_30 @map("10-30")
|
|
@@ -2881,4 +2969,19 @@ enum bankanalysisStatus {
|
|
|
2881
2969
|
PROCESSING
|
|
2882
2970
|
SUCCEEDED
|
|
2883
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
|
|
2884
2987
|
}
|