@factor-wise/prisma-schema 2.0.11 → 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.11",
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",
@@ -1343,6 +1343,7 @@ model loan {
1343
1343
  allocated_by String? @db.VarChar(64)
1344
1344
  acutalDisbursalAmount Int?
1345
1345
  exported Boolean @default(false)
1346
+ disbursement_request disbursement_requests?
1346
1347
  lead leads @relation(fields: [leadID], references: [leadID])
1347
1348
  }
1348
1349
 
@@ -2308,18 +2309,19 @@ model bankstatement {
2308
2309
  }
2309
2310
 
2310
2311
  model disbursement_requests {
2311
- id BigInt @id @default(autoincrement())
2312
- loanNo String @db.VarChar(50)
2313
- fund_account_id String @db.VarChar(50)
2314
- 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)
2315
2316
  status disbursement_requests_status
2316
- razorpay_payout_id String? @db.VarChar(50)
2317
- action String? @db.VarChar(50)
2317
+ razorpay_payout_id String? @db.VarChar(50)
2318
+ action String? @db.VarChar(50)
2318
2319
  performed_by BigInt?
2319
2320
  payload Json?
2320
2321
  response Json?
2321
- updated_at DateTime? @default(now()) @db.Timestamp(0)
2322
- 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)
2323
2325
  }
2324
2326
 
2325
2327
  enum usersgoogle_oauth_provider {