@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factor-wise/prisma-schema",
3
- "version": "2.0.9",
3
+ "version": "2.0.11",
4
4
  "description": "Shared Prisma schema and generated client for Factor Wise projects",
5
5
  "main": "generated/client/index.js",
6
6
  "types": "generated/client/index.d.ts",
@@ -271,12 +271,19 @@ model appvedio {
271
271
  }
272
272
 
273
273
  model balance_history {
274
- id Int @id
275
- balance_date String? @db.Text
276
- disbused String? @db.LongText
277
- collection String? @db.LongText
278
- interest String? @db.LongText
279
- balance String? @db.LongText
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
  }