@factor-wise/prisma-schema 2.0.18 → 2.0.19

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.18",
3
+ "version": "2.0.19",
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",
@@ -251,6 +251,7 @@ model approval {
251
251
  customerApproval approval_customerApproval @default(ZERO)
252
252
  employmentType String? @db.VarChar(50)
253
253
  disbursalaccountid Int?
254
+ disbursalAccount customeraccount? @relation(fields: [disbursalaccountid],references: [accountID])
254
255
  creditedUser lms_users? @relation("ApprovalCreditedByUser", fields: [creditedBy], references: [userID], map: "approval_creditedBy_fkey")
255
256
  lead leads @relation(fields: [leadID], references: [leadID])
256
257
  sanctionUser lms_users? @relation("ApprovalSanctionByUser", fields: [sanctionalloUID], references: [userID], map: "approval_sanctionBy_fkey")
@@ -754,6 +755,8 @@ model customeraccount {
754
755
  razorpay_fund_account_id String? @db.VarChar(50)
755
756
  customer customer? @relation(fields: [customerID], references: [customerID])
756
757
  customerapp customerapp? @relation(fields: [customerappId], references: [customerID], map: "fk_customeraccount_customerapp")
758
+ approval approval[]
759
+
757
760
 
758
761
  @@index([customerID], map: "customeraccount_customerID_fkey")
759
762
  @@index([customerappId], map: "fk_customeraccount_customerapp")