@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 +1 -1
- package/prisma/schema.prisma +3 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -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")
|