@factor-wise/prisma-schema 2.0.64 → 2.0.66
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 +99 -22
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -274,7 +274,7 @@ model appvedio {
|
|
|
274
274
|
|
|
275
275
|
model balance_history {
|
|
276
276
|
id Int @id @default(autoincrement())
|
|
277
|
-
leadID Int
|
|
277
|
+
leadID Int
|
|
278
278
|
customerID Int
|
|
279
279
|
balance_date DateTime? @default(now()) @db.Timestamp(0)
|
|
280
280
|
consentId String?
|
|
@@ -516,7 +516,7 @@ model collection {
|
|
|
516
516
|
orderID String @default("no") @db.VarChar(216)
|
|
517
517
|
excess_amount String? @db.Text
|
|
518
518
|
discount_waiver String? @db.Text
|
|
519
|
-
discount_waiver_amount Float?
|
|
519
|
+
discount_waiver_amount Float?
|
|
520
520
|
refund_utr_no String? @db.VarChar(256)
|
|
521
521
|
s3key String?
|
|
522
522
|
collectedByUser lms_users @relation("CollectionCollectedByUser", fields: [collectedBy], references: [userID])
|
|
@@ -673,7 +673,7 @@ model customer {
|
|
|
673
673
|
isBlocked Boolean @default(false)
|
|
674
674
|
utmSource String? @db.VarChar(256)
|
|
675
675
|
alternateMobile String? @db.VarChar(50)
|
|
676
|
-
current_address Json?
|
|
676
|
+
current_address Json?
|
|
677
677
|
digioKid String?
|
|
678
678
|
digioToken String? @db.VarChar(100)
|
|
679
679
|
digioMobileNumber String?
|
|
@@ -681,7 +681,7 @@ model customer {
|
|
|
681
681
|
is_onboarded Boolean @default(false)
|
|
682
682
|
last_login DateTime @default(now()) @db.Timestamp(0)
|
|
683
683
|
loanApplied Boolean @default(false)
|
|
684
|
-
permanent_address Json?
|
|
684
|
+
permanent_address Json?
|
|
685
685
|
presalesassign Int?
|
|
686
686
|
companyName String? @db.Text
|
|
687
687
|
step String? @db.VarChar(255)
|
|
@@ -702,6 +702,7 @@ model customer {
|
|
|
702
702
|
finb_logs finb_logs[]
|
|
703
703
|
face_comparison face_comparison[]
|
|
704
704
|
preoffer preoffer[]
|
|
705
|
+
customer_extended customer_extended?
|
|
705
706
|
|
|
706
707
|
|
|
707
708
|
@@index([firstName], map: "firstName")
|
|
@@ -711,6 +712,14 @@ model customer {
|
|
|
711
712
|
@@index([customerappId], map: "fk_customer_customerapp")
|
|
712
713
|
}
|
|
713
714
|
|
|
715
|
+
model customer_extended {
|
|
716
|
+
id Int @id @default(autoincrement())
|
|
717
|
+
customerID Int @unique
|
|
718
|
+
isBtCase Boolean @default(false)
|
|
719
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
720
|
+
|
|
721
|
+
}
|
|
722
|
+
|
|
714
723
|
model customer_credit_remarks {
|
|
715
724
|
id Int @id @default(autoincrement())
|
|
716
725
|
customerId Int
|
|
@@ -962,7 +971,7 @@ model employment_history {
|
|
|
962
971
|
lead leads @relation(fields: [leadID], references: [leadID], onDelete: Cascade)
|
|
963
972
|
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
964
973
|
|
|
965
|
-
|
|
974
|
+
|
|
966
975
|
@@index([leadID])
|
|
967
976
|
@@index([customerID])
|
|
968
977
|
@@index([status])
|
|
@@ -980,7 +989,7 @@ model profile_info {
|
|
|
980
989
|
lead leads @relation(fields: [leadID], references: [leadID], onDelete: Cascade)
|
|
981
990
|
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
982
991
|
|
|
983
|
-
|
|
992
|
+
|
|
984
993
|
@@index([leadID])
|
|
985
994
|
@@index([customerID])
|
|
986
995
|
@@index([status])
|
|
@@ -1008,7 +1017,7 @@ model finb_logs {
|
|
|
1008
1017
|
updated_at DateTime @updatedAt
|
|
1009
1018
|
customer customer @relation(fields: [customerID], references: [customerID])
|
|
1010
1019
|
|
|
1011
|
-
|
|
1020
|
+
|
|
1012
1021
|
@@index([customerID])
|
|
1013
1022
|
@@index([status])
|
|
1014
1023
|
@@index([type])
|
|
@@ -1032,7 +1041,7 @@ model face_comparison {
|
|
|
1032
1041
|
updatedAt DateTime @updatedAt
|
|
1033
1042
|
customer customer @relation(fields: [customerID], references: [customerID])
|
|
1034
1043
|
lead leads? @relation(fields: [leadID], references: [leadID])
|
|
1035
|
-
|
|
1044
|
+
|
|
1036
1045
|
@@index([customerID])
|
|
1037
1046
|
@@index([leadID])
|
|
1038
1047
|
}
|
|
@@ -1250,7 +1259,7 @@ model leads {
|
|
|
1250
1259
|
createdDate DateTime @default(now()) @db.Timestamp(0)
|
|
1251
1260
|
updatedAt DateTime @default(now()) @db.DateTime(0)
|
|
1252
1261
|
alloUID String @default("no") @db.VarChar(216)
|
|
1253
|
-
sanctionalloUID Int
|
|
1262
|
+
sanctionalloUID Int
|
|
1254
1263
|
sanctionAppID String @default("no") @db.VarChar(216)
|
|
1255
1264
|
entity_id String? @db.Text
|
|
1256
1265
|
field_officer_id String? @db.Text
|
|
@@ -1770,7 +1779,7 @@ model icici_payout {
|
|
|
1770
1779
|
model icici_Payoutlog {
|
|
1771
1780
|
id Int @id @default(autoincrement())
|
|
1772
1781
|
payoutId Int
|
|
1773
|
-
step String
|
|
1782
|
+
step String
|
|
1774
1783
|
payload Json
|
|
1775
1784
|
actCode String?
|
|
1776
1785
|
message String?
|
|
@@ -2445,7 +2454,7 @@ model cibildata {
|
|
|
2445
2454
|
response_pdf Json?
|
|
2446
2455
|
pdf_password String?
|
|
2447
2456
|
|
|
2448
|
-
|
|
2457
|
+
@@index([leadID], map: "idx_leadID")
|
|
2449
2458
|
@@index([status], map: "idx_status")
|
|
2450
2459
|
@@index([createdAt], map: "idx_createdAt")
|
|
2451
2460
|
@@index([leadID, status], map: "idx_lead_status")
|
|
@@ -2537,7 +2546,7 @@ model lms_users {
|
|
|
2537
2546
|
username String @unique(map: "username") @db.VarChar(100)
|
|
2538
2547
|
password String @db.VarChar(255)
|
|
2539
2548
|
otp String? @db.VarChar(255)
|
|
2540
|
-
attempts Int?
|
|
2549
|
+
attempts Int?
|
|
2541
2550
|
expire_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2542
2551
|
isVerified Boolean @default(false)
|
|
2543
2552
|
role String? @db.VarChar(50)
|
|
@@ -2567,7 +2576,7 @@ model lms_users_permissions {
|
|
|
2567
2576
|
users_permissions Json?
|
|
2568
2577
|
reports_sidebar Json?
|
|
2569
2578
|
reports_access Json?
|
|
2570
|
-
|
|
2579
|
+
|
|
2571
2580
|
created_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2572
2581
|
updated_at DateTime? @default(now()) @db.Timestamp(0)
|
|
2573
2582
|
lms_users lms_users @relation(fields: [user_id], references: [userID], onDelete: Cascade, onUpdate: NoAction, map: "lms_users_permissions_ibfk_1")
|
|
@@ -2682,7 +2691,7 @@ model cibil_fetch_logs {
|
|
|
2682
2691
|
status String @default("PENDING")
|
|
2683
2692
|
error_message String?
|
|
2684
2693
|
createdAt DateTime @default(now())
|
|
2685
|
-
updatedAt DateTime @updatedAt
|
|
2694
|
+
updatedAt DateTime @updatedAt
|
|
2686
2695
|
|
|
2687
2696
|
|
|
2688
2697
|
@@index([leadID])
|
|
@@ -2970,15 +2979,23 @@ model fi {
|
|
|
2970
2979
|
}
|
|
2971
2980
|
|
|
2972
2981
|
model vendors {
|
|
2973
|
-
id
|
|
2974
|
-
name
|
|
2975
|
-
clientId
|
|
2976
|
-
secretId
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2982
|
+
id Int @id @default(autoincrement()) @db.UnsignedInt
|
|
2983
|
+
name String @db.VarChar(255)
|
|
2984
|
+
clientId String @unique @db.VarChar(100)
|
|
2985
|
+
secretId String @db.VarChar(255)
|
|
2986
|
+
email String @unique @db.VarChar(255)
|
|
2987
|
+
password String @db.VarChar(255)
|
|
2988
|
+
tag String? @db.VarChar(100)
|
|
2989
|
+
percentage Float?
|
|
2990
|
+
isActive Boolean @default(true)
|
|
2991
|
+
otp String? @default("") @db.VarChar(20)
|
|
2992
|
+
createdAt DateTime @default(now())
|
|
2993
|
+
updatedAt DateTime @updatedAt
|
|
2994
|
+
createdBy Int @default(1)
|
|
2980
2995
|
|
|
2981
|
-
leads
|
|
2996
|
+
leads vendor_leads[]
|
|
2997
|
+
campaigns campaigns[]
|
|
2998
|
+
activityLogs activity_logs[]
|
|
2982
2999
|
}
|
|
2983
3000
|
|
|
2984
3001
|
model vendor_leads {
|
|
@@ -3068,6 +3085,66 @@ model sms {
|
|
|
3068
3085
|
createdAt DateTime @default(now())
|
|
3069
3086
|
}
|
|
3070
3087
|
|
|
3088
|
+
model activity_logs {
|
|
3089
|
+
id Int @id @default(autoincrement())
|
|
3090
|
+
userId Int @db.UnsignedInt
|
|
3091
|
+
apiCall String @map("api_call") @db.VarChar(255)
|
|
3092
|
+
payload Json
|
|
3093
|
+
changedPayload Json? @map("changed_payload")
|
|
3094
|
+
status status @default(ZERO)
|
|
3095
|
+
isDeleted Boolean @default(false)
|
|
3096
|
+
|
|
3097
|
+
createdAt DateTime @default(now())
|
|
3098
|
+
updatedAt DateTime @updatedAt
|
|
3099
|
+
|
|
3100
|
+
vendor vendors @relation(fields: [userId], references: [id])
|
|
3101
|
+
|
|
3102
|
+
@@index([userId])
|
|
3103
|
+
@@index([apiCall])
|
|
3104
|
+
@@index([status])
|
|
3105
|
+
@@map("activity_logs")
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
model click_logs {
|
|
3109
|
+
id Int @id @default(autoincrement()) @db.UnsignedInt
|
|
3110
|
+
campaignId String @db.VarChar(36)
|
|
3111
|
+
IP Json
|
|
3112
|
+
userAgent Json
|
|
3113
|
+
redirectLink String @db.Text
|
|
3114
|
+
status status @default(ZERO)
|
|
3115
|
+
isDeleted Boolean @default(false)
|
|
3116
|
+
createdAt DateTime @default(now())
|
|
3117
|
+
updatedAt DateTime @updatedAt
|
|
3118
|
+
|
|
3119
|
+
campaign campaigns @relation(fields: [campaignId], references: [campaignId])
|
|
3120
|
+
|
|
3121
|
+
@@index([campaignId])
|
|
3122
|
+
@@index([status])
|
|
3123
|
+
@@index([isDeleted])
|
|
3124
|
+
}
|
|
3125
|
+
|
|
3126
|
+
model campaigns {
|
|
3127
|
+
id Int @id @default(autoincrement()) @db.UnsignedInt
|
|
3128
|
+
campaignId String @unique @db.VarChar(36)
|
|
3129
|
+
name String @db.VarChar(255)
|
|
3130
|
+
status status @default(ZERO)
|
|
3131
|
+
createdAt DateTime @default(now())
|
|
3132
|
+
updatedAt DateTime @updatedAt
|
|
3133
|
+
|
|
3134
|
+
createdBy Int @db.UnsignedInt
|
|
3135
|
+
|
|
3136
|
+
vendor vendors @relation(fields: [createdBy], references: [id])
|
|
3137
|
+
|
|
3138
|
+
clickLogs click_logs[]
|
|
3139
|
+
|
|
3140
|
+
@@index([createdBy])
|
|
3141
|
+
}
|
|
3142
|
+
|
|
3143
|
+
enum status {
|
|
3144
|
+
ZERO @map("0")
|
|
3145
|
+
ONE @map("1")
|
|
3146
|
+
}
|
|
3147
|
+
|
|
3071
3148
|
enum fi_interactionStatus {
|
|
3072
3149
|
INITIATED
|
|
3073
3150
|
IN_PROCESS
|