@factor-wise/prisma-schema 2.0.18 → 2.0.20
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 +19 -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")
|
|
@@ -1583,6 +1586,21 @@ model PayoutStatusHistory {
|
|
|
1583
1586
|
payout Payout @relation(fields: [payoutId], references: [id])
|
|
1584
1587
|
}
|
|
1585
1588
|
|
|
1589
|
+
model PayoutDowntime {
|
|
1590
|
+
id String @id
|
|
1591
|
+
bank String?
|
|
1592
|
+
method String
|
|
1593
|
+
status String
|
|
1594
|
+
source String?
|
|
1595
|
+
begin Int
|
|
1596
|
+
end Int?
|
|
1597
|
+
scheduled Boolean
|
|
1598
|
+
createdAt DateTime @default(now())
|
|
1599
|
+
updatedAt DateTime @updatedAt
|
|
1600
|
+
|
|
1601
|
+
@@index([method, bank])
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1586
1604
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1587
1605
|
model penny_drop {
|
|
1588
1606
|
id Int
|
|
@@ -2687,6 +2705,7 @@ enum disbursement_requests_status {
|
|
|
2687
2705
|
|
|
2688
2706
|
enum PayoutStatus {
|
|
2689
2707
|
APPROVAL_PENDING
|
|
2708
|
+
HOLD
|
|
2690
2709
|
APPROVED
|
|
2691
2710
|
QUEUED
|
|
2692
2711
|
PENDING
|