@factor-wise/prisma-schema 2.0.7 → 2.0.9
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 +20 -10
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -533,6 +533,7 @@ model collectionfollowup {
|
|
|
533
533
|
createdDate DateTime @default(now()) @db.Timestamp(0)
|
|
534
534
|
followup_type Int @default(0)
|
|
535
535
|
reason String? @db.Text
|
|
536
|
+
s3key String?
|
|
536
537
|
|
|
537
538
|
@@index([leadID])
|
|
538
539
|
@@index([loanNo])
|
|
@@ -666,6 +667,7 @@ model customer {
|
|
|
666
667
|
permanent_address String? @db.Text
|
|
667
668
|
presalesassign Int?
|
|
668
669
|
companyName String? @db.Text
|
|
670
|
+
step String? @db.VarChar(255)
|
|
669
671
|
razorpay_contact_id String? @db.VarChar(100)
|
|
670
672
|
addresses address[]
|
|
671
673
|
bankstatement bankstatement[]
|
|
@@ -726,14 +728,14 @@ model customer_salary {
|
|
|
726
728
|
|
|
727
729
|
model customeraccount {
|
|
728
730
|
accountID Int @id @default(autoincrement())
|
|
729
|
-
leadID Int
|
|
731
|
+
leadID Int?
|
|
730
732
|
customerID Int?
|
|
731
733
|
accountNo String @db.VarChar(100)
|
|
732
734
|
accountType String @db.VarChar(100)
|
|
733
735
|
bankIfsc String @db.VarChar(100)
|
|
734
736
|
bank String
|
|
735
737
|
bankBranch String
|
|
736
|
-
ip String @db.VarChar(100)
|
|
738
|
+
ip String? @db.VarChar(100)
|
|
737
739
|
credatedBy Int
|
|
738
740
|
status customeraccount_status
|
|
739
741
|
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
@@ -895,19 +897,21 @@ model emis {
|
|
|
895
897
|
model employer {
|
|
896
898
|
employerID Int @id @default(autoincrement())
|
|
897
899
|
customerID Int?
|
|
898
|
-
employerName String
|
|
900
|
+
employerName String?
|
|
899
901
|
empEmail String?
|
|
900
902
|
empDob String?
|
|
901
903
|
empSalary String?
|
|
904
|
+
employeeType customer_employeeType?
|
|
905
|
+
salaryMode String?
|
|
902
906
|
empDesignation String?
|
|
903
907
|
empWorkIndustry String?
|
|
904
908
|
employment String?
|
|
905
|
-
totalExperience String @default("0-6 Months")
|
|
906
|
-
currentCompany String @default("0-6 Months")
|
|
907
|
-
address String
|
|
908
|
-
city String
|
|
909
|
-
state String
|
|
910
|
-
pincode BigInt
|
|
909
|
+
totalExperience String? @default("0-6 Months")
|
|
910
|
+
currentCompany String? @default("0-6 Months")
|
|
911
|
+
address String?
|
|
912
|
+
city String?
|
|
913
|
+
state String?
|
|
914
|
+
pincode BigInt?
|
|
911
915
|
status employer_status @default(Not_Verified)
|
|
912
916
|
verifiedBy Int @default(1)
|
|
913
917
|
createdDate DateTime @db.DateTime(0)
|
|
@@ -1134,7 +1138,7 @@ model leads {
|
|
|
1134
1138
|
collectionUID Int?
|
|
1135
1139
|
createdDate DateTime @default(now()) @db.Timestamp(0)
|
|
1136
1140
|
alloUID String @default("no") @db.VarChar(216)
|
|
1137
|
-
sanctionalloUID
|
|
1141
|
+
sanctionalloUID Int
|
|
1138
1142
|
sanctionAppID String @default("no") @db.VarChar(216)
|
|
1139
1143
|
entity_id String? @db.Text
|
|
1140
1144
|
field_officer_id String? @db.Text
|
|
@@ -1152,6 +1156,9 @@ model leads {
|
|
|
1152
1156
|
collections collection[]
|
|
1153
1157
|
customer customer? @relation(fields: [customerID], references: [customerID])
|
|
1154
1158
|
loan loan?
|
|
1159
|
+
callAssignUser lms_users @relation("CallAssignedUser", fields: [callAssign], references: [userID])
|
|
1160
|
+
collectionUser lms_users? @relation("CollectionAssignedUser", fields: [collectionUID], references: [userID])
|
|
1161
|
+
sanctionUser lms_users @relation("SanctionAssignedUser", fields: [sanctionalloUID], references: [userID])
|
|
1155
1162
|
|
|
1156
1163
|
@@index([customerID], map: "leadcustomerID")
|
|
1157
1164
|
}
|
|
@@ -2238,6 +2245,9 @@ model lms_users {
|
|
|
2238
2245
|
collectionsStatusUpdated collection[] @relation("CollectionStatusUpdatedByUser")
|
|
2239
2246
|
lms_users_permissions lms_users_permissions?
|
|
2240
2247
|
reference reference[]
|
|
2248
|
+
callAssignedLeads leads[] @relation("CallAssignedUser")
|
|
2249
|
+
sanctionedLeads leads[] @relation("SanctionAssignedUser")
|
|
2250
|
+
collectionAssignedLeads leads[] @relation("CollectionAssignedUser")
|
|
2241
2251
|
}
|
|
2242
2252
|
|
|
2243
2253
|
model lms_users_permissions {
|