@factor-wise/prisma-schema 2.0.7 → 2.0.8
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 +8 -1
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])
|
|
@@ -1134,7 +1135,7 @@ model leads {
|
|
|
1134
1135
|
collectionUID Int?
|
|
1135
1136
|
createdDate DateTime @default(now()) @db.Timestamp(0)
|
|
1136
1137
|
alloUID String @default("no") @db.VarChar(216)
|
|
1137
|
-
sanctionalloUID
|
|
1138
|
+
sanctionalloUID Int
|
|
1138
1139
|
sanctionAppID String @default("no") @db.VarChar(216)
|
|
1139
1140
|
entity_id String? @db.Text
|
|
1140
1141
|
field_officer_id String? @db.Text
|
|
@@ -1152,6 +1153,9 @@ model leads {
|
|
|
1152
1153
|
collections collection[]
|
|
1153
1154
|
customer customer? @relation(fields: [customerID], references: [customerID])
|
|
1154
1155
|
loan loan?
|
|
1156
|
+
callAssignUser lms_users @relation("CallAssignedUser", fields: [callAssign], references: [userID])
|
|
1157
|
+
collectionUser lms_users? @relation("CollectionAssignedUser", fields: [collectionUID], references: [userID])
|
|
1158
|
+
sanctionUser lms_users @relation("SanctionAssignedUser", fields: [sanctionalloUID], references: [userID])
|
|
1155
1159
|
|
|
1156
1160
|
@@index([customerID], map: "leadcustomerID")
|
|
1157
1161
|
}
|
|
@@ -2238,6 +2242,9 @@ model lms_users {
|
|
|
2238
2242
|
collectionsStatusUpdated collection[] @relation("CollectionStatusUpdatedByUser")
|
|
2239
2243
|
lms_users_permissions lms_users_permissions?
|
|
2240
2244
|
reference reference[]
|
|
2245
|
+
callAssignedLeads leads[] @relation("CallAssignedUser")
|
|
2246
|
+
sanctionedLeads leads[] @relation("SanctionAssignedUser")
|
|
2247
|
+
collectionAssignedLeads leads[] @relation("CollectionAssignedUser")
|
|
2241
2248
|
}
|
|
2242
2249
|
|
|
2243
2250
|
model lms_users_permissions {
|