@factor-wise/prisma-schema 2.0.30 → 2.0.32

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.30",
3
+ "version": "2.0.32",
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",
@@ -1124,11 +1124,13 @@ model eagreement {
1124
1124
  access_token String? @db.VarChar(100)
1125
1125
  isSigned Boolean @default(false)
1126
1126
  signedAt DateTime?
1127
- updated_at DateTime? @default(now())
1127
+ leads leads @relation(fields: [leadID], references: [leadID])
1128
+ updated_at DateTime @updatedAt
1128
1129
  createdAt DateTime @default(now())
1129
-
1130
+
1130
1131
 
1131
1132
  @@index([loanNo])
1133
+ @@index([leadID], map: "leadID")
1132
1134
  }
1133
1135
 
1134
1136
  /// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
@@ -1167,6 +1169,7 @@ model leads {
1167
1169
  kfs leads_kfs @default(ZERO)
1168
1170
  bureau_consent Int @default(0)
1169
1171
  emandatebypass Boolean? @default(false)
1172
+ videoKycBypass Boolean? @default(false)
1170
1173
  approvals approval[]
1171
1174
  bankstatement bankstatement[]
1172
1175
  callHistories callhistory[]
@@ -1180,6 +1183,8 @@ model leads {
1180
1183
  balanceHistory balance_history[]
1181
1184
  collectionFollowups collectionfollowup[]
1182
1185
  Payout Payout?
1186
+ videokyc videokyc?
1187
+ eagreement eagreement?
1183
1188
 
1184
1189
  @@index([customerID], map: "leadcustomerID")
1185
1190
  }
@@ -2225,6 +2230,8 @@ model videokyc {
2225
2230
  videoPath String?
2226
2231
  location String?
2227
2232
  latlongAddress String? @db.Text
2233
+ leads leads @relation(fields: [leadID], references: [leadID])
2234
+
2228
2235
 
2229
2236
  @@index([leadID], map: "fk_lead")
2230
2237
  }
@@ -2443,6 +2450,24 @@ model AIAgentCallLog {
2443
2450
  @@index([customerID])
2444
2451
  }
2445
2452
 
2453
+ model cibil_fetch_logs {
2454
+ id Int @id @default(autoincrement())
2455
+ leadID Int
2456
+ pan String
2457
+ bureau String
2458
+ request_payload Json?
2459
+ status String @default("PENDING")
2460
+ error_message String?
2461
+ createdAt DateTime @default(now())
2462
+ updatedAt DateTime @default(now())
2463
+
2464
+
2465
+ @@index([leadID])
2466
+ @@index([bureau])
2467
+ @@index([status])
2468
+ @@index([createdAt])
2469
+ }
2470
+
2446
2471
 
2447
2472
  enum usersgoogle_oauth_provider {
2448
2473
  google