@factor-wise/prisma-schema 2.0.16 → 2.0.18

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.16",
3
+ "version": "2.0.18",
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",
@@ -1345,7 +1345,6 @@ model loan {
1345
1345
  acutalDisbursalAmount Int?
1346
1346
  exported Boolean @default(false)
1347
1347
  disbursement_request disbursement_requests?
1348
- Payout Payout?
1349
1348
  lead leads @relation(fields: [leadID], references: [leadID])
1350
1349
  }
1351
1350
 
@@ -1554,8 +1553,7 @@ model Payout {
1554
1553
  isTerminal Boolean @default(false)
1555
1554
  leadId Int @unique()
1556
1555
  leads leads @relation(fields: [leadId], references: [leadID])
1557
- loanId Int @unique()
1558
- loan loan @relation(fields: [loanId], references: [id])
1556
+
1559
1557
  createdAt DateTime? @default(now()) @db.Timestamp(0)
1560
1558
  updatedAt DateTime @updatedAt
1561
1559
 
@@ -2689,6 +2687,7 @@ enum disbursement_requests_status {
2689
2687
 
2690
2688
  enum PayoutStatus {
2691
2689
  APPROVAL_PENDING
2690
+ APPROVED
2692
2691
  QUEUED
2693
2692
  PENDING
2694
2693
  INITIATED