@factor-wise/prisma-schema 2.0.10 → 2.0.12

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.10",
3
+ "version": "2.0.12",
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",
@@ -542,6 +542,9 @@ model collectionfollowup {
542
542
  reason String? @db.Text
543
543
  s3key String?
544
544
 
545
+ lead leads @relation(fields: [leadID], references: [leadID])
546
+
547
+
545
548
  @@index([leadID])
546
549
  @@index([loanNo])
547
550
  }
@@ -1167,6 +1170,7 @@ model leads {
1167
1170
  collectionUser lms_users? @relation("CollectionAssignedUser", fields: [collectionUID], references: [userID])
1168
1171
  sanctionUser lms_users @relation("SanctionAssignedUser", fields: [sanctionalloUID], references: [userID])
1169
1172
  balanceHistory balance_history[]
1173
+ collectionFollowups collectionfollowup[]
1170
1174
 
1171
1175
  @@index([customerID], map: "leadcustomerID")
1172
1176
  }
@@ -1339,6 +1343,7 @@ model loan {
1339
1343
  allocated_by String? @db.VarChar(64)
1340
1344
  acutalDisbursalAmount Int?
1341
1345
  exported Boolean @default(false)
1346
+ disbursement_request disbursement_requests?
1342
1347
  lead leads @relation(fields: [leadID], references: [leadID])
1343
1348
  }
1344
1349
 
@@ -2304,18 +2309,19 @@ model bankstatement {
2304
2309
  }
2305
2310
 
2306
2311
  model disbursement_requests {
2307
- id BigInt @id @default(autoincrement())
2308
- loanNo String @db.VarChar(50)
2309
- fund_account_id String @db.VarChar(50)
2310
- amount Decimal @db.Decimal(12, 2)
2312
+ id BigInt @id @default(autoincrement())
2313
+ loanId Int @unique()
2314
+ fund_account_id String @db.VarChar(50)
2315
+ amount Decimal @db.Decimal(12, 2)
2311
2316
  status disbursement_requests_status
2312
- razorpay_payout_id String? @db.VarChar(50)
2313
- action String? @db.VarChar(50)
2317
+ razorpay_payout_id String? @db.VarChar(50)
2318
+ action String? @db.VarChar(50)
2314
2319
  performed_by BigInt?
2315
2320
  payload Json?
2316
2321
  response Json?
2317
- updated_at DateTime? @default(now()) @db.Timestamp(0)
2318
- created_at DateTime? @default(now()) @db.Timestamp(0)
2322
+ loan loan @relation(fields: [loanId], references: [id])
2323
+ updated_at DateTime? @default(now()) @db.Timestamp(0)
2324
+ created_at DateTime? @default(now()) @db.Timestamp(0)
2319
2325
  }
2320
2326
 
2321
2327
  enum usersgoogle_oauth_provider {