@factor-wise/prisma-schema 2.0.9 → 2.0.10

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.10",
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 {
@@ -1159,6 +1166,7 @@ model leads {
1159
1166
  callAssignUser lms_users @relation("CallAssignedUser", fields: [callAssign], references: [userID])
1160
1167
  collectionUser lms_users? @relation("CollectionAssignedUser", fields: [collectionUID], references: [userID])
1161
1168
  sanctionUser lms_users @relation("SanctionAssignedUser", fields: [sanctionalloUID], references: [userID])
1169
+ balanceHistory balance_history[]
1162
1170
 
1163
1171
  @@index([customerID], map: "leadcustomerID")
1164
1172
  }