@factor-wise/prisma-schema 2.0.9 → 2.0.11
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 +18 -6
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -271,12 +271,19 @@ model appvedio {
|
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
model balance_history {
|
|
274
|
-
id
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
274
|
+
id Int @id @default(autoincrement())
|
|
275
|
+
leadID Int
|
|
276
|
+
customerID Int
|
|
277
|
+
balance_date DateTime? @default(now()) @db.Timestamp(0)
|
|
278
|
+
consentId String?
|
|
279
|
+
txnId String?
|
|
280
|
+
responsePayload Json?
|
|
281
|
+
createdAt DateTime? @default(now()) @db.Timestamp(0)
|
|
282
|
+
updatedAt DateTime? @default(now()) @db.Timestamp(0)
|
|
283
|
+
|
|
284
|
+
lead leads @relation(fields: [leadID], references: [leadID], onDelete: Cascade)
|
|
285
|
+
|
|
286
|
+
@@index([leadID])
|
|
280
287
|
}
|
|
281
288
|
|
|
282
289
|
model bank_ifsc {
|
|
@@ -535,6 +542,9 @@ model collectionfollowup {
|
|
|
535
542
|
reason String? @db.Text
|
|
536
543
|
s3key String?
|
|
537
544
|
|
|
545
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
546
|
+
|
|
547
|
+
|
|
538
548
|
@@index([leadID])
|
|
539
549
|
@@index([loanNo])
|
|
540
550
|
}
|
|
@@ -1159,6 +1169,8 @@ model leads {
|
|
|
1159
1169
|
callAssignUser lms_users @relation("CallAssignedUser", fields: [callAssign], references: [userID])
|
|
1160
1170
|
collectionUser lms_users? @relation("CollectionAssignedUser", fields: [collectionUID], references: [userID])
|
|
1161
1171
|
sanctionUser lms_users @relation("SanctionAssignedUser", fields: [sanctionalloUID], references: [userID])
|
|
1172
|
+
balanceHistory balance_history[]
|
|
1173
|
+
collectionFollowups collectionfollowup[]
|
|
1162
1174
|
|
|
1163
1175
|
@@index([customerID], map: "leadcustomerID")
|
|
1164
1176
|
}
|