procbay-schema 1.0.171 → 1.0.175
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 +13 -22
- package/prisma/migrations/20260518124524_added_new_template_builder_changes/migration.sql +26 -0
- package/prisma/schema.prisma +17 -7
- package/scripts/sync-schemas.js +1 -5
- package/src/create-prisma-client.js +9 -49
- package/src/prisma/client.d.ts +1 -0
- package/src/prisma/client.js +4 -0
- package/src/prisma/default.d.ts +1 -0
- package/src/prisma/default.js +4 -0
- package/src/prisma/edge.d.ts +1 -0
- package/src/prisma/edge.js +2911 -0
- package/src/{generated/prisma/internal/prismaNamespaceBrowser.ts → prisma/index-browser.js} +991 -739
- package/src/prisma/index.d.ts +286785 -0
- package/src/prisma/index.js +2940 -2
- package/src/prisma/libquery_engine-darwin.dylib.node +0 -0
- package/src/prisma/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/src/prisma/package.json +140 -0
- package/src/prisma/query_engine-windows.dll.node +0 -0
- package/src/prisma/runtime/edge-esm.js +34 -0
- package/src/prisma/runtime/edge.js +34 -0
- package/src/prisma/runtime/index-browser.d.ts +370 -0
- package/src/prisma/runtime/index-browser.js +16 -0
- package/src/prisma/runtime/library.d.ts +3647 -0
- package/src/prisma/runtime/library.js +146 -0
- package/src/prisma/runtime/react-native.js +83 -0
- package/src/prisma/runtime/wasm.js +35 -0
- package/src/prisma/schema.prisma +3831 -0
- package/src/prisma/wasm.d.ts +1 -0
- package/src/prisma/wasm.js +2873 -0
- package/prisma/migrations/20260515130204_updated_user_approval_management_schema/migration.sql +0 -55
- package/prisma.config.js +0 -19
- package/src/generated/prisma/browser.ts +0 -574
- package/src/generated/prisma/client.bundle.mjs +0 -6733
- package/src/generated/prisma/client.ts +0 -598
- package/src/generated/prisma/commonInputTypes.ts +0 -2911
- package/src/generated/prisma/enums.ts +0 -730
- package/src/generated/prisma/internal/class.ts +0 -1304
- package/src/generated/prisma/internal/prismaNamespace.ts +0 -12506
- package/src/generated/prisma/models/ActivityLog.ts +0 -1590
- package/src/generated/prisma/models/AdminAlert.ts +0 -1547
- package/src/generated/prisma/models/ApprovalCondition.ts +0 -2085
- package/src/generated/prisma/models/ApprovalDelegation.ts +0 -3057
- package/src/generated/prisma/models/ApprovalDelegationDelegate.ts +0 -1784
- package/src/generated/prisma/models/ApprovalHierarchy.ts +0 -3083
- package/src/generated/prisma/models/ApprovalJourney.ts +0 -2867
- package/src/generated/prisma/models/ApprovalLevel.ts +0 -2335
- package/src/generated/prisma/models/ApprovalLevelEscalation.ts +0 -2128
- package/src/generated/prisma/models/ApprovalLevelEscalationUser.ts +0 -1863
- package/src/generated/prisma/models/ApprovalLevelUser.ts +0 -1863
- package/src/generated/prisma/models/ApprovalManagement.ts +0 -1728
- package/src/generated/prisma/models/Attribute.ts +0 -2075
- package/src/generated/prisma/models/AttributeValue.ts +0 -1882
- package/src/generated/prisma/models/Bid.ts +0 -2719
- package/src/generated/prisma/models/BidLog.ts +0 -3560
- package/src/generated/prisma/models/BlanketPurchaseOrder.ts +0 -3527
- package/src/generated/prisma/models/BlanketPurchaseOrderItem.ts +0 -2532
- package/src/generated/prisma/models/BlanketPurchaseOrderRelease.ts +0 -2713
- package/src/generated/prisma/models/BoqEventItem.ts +0 -4056
- package/src/generated/prisma/models/Budget.ts +0 -1954
- package/src/generated/prisma/models/BudgetHold.ts +0 -1904
- package/src/generated/prisma/models/BusinessEntity.ts +0 -3901
- package/src/generated/prisma/models/BusinessEntityDepartment.ts +0 -2032
- package/src/generated/prisma/models/BusinessEntityLocation.ts +0 -1567
- package/src/generated/prisma/models/Catalogue.ts +0 -2081
- package/src/generated/prisma/models/CatalogueCart.ts +0 -2305
- package/src/generated/prisma/models/CatalogueVendor.ts +0 -2252
- package/src/generated/prisma/models/Category.ts +0 -3091
- package/src/generated/prisma/models/CategoryBudget.ts +0 -2690
- package/src/generated/prisma/models/City.ts +0 -2180
- package/src/generated/prisma/models/Cms.ts +0 -1492
- package/src/generated/prisma/models/ContactUs.ts +0 -1654
- package/src/generated/prisma/models/Conversation.ts +0 -2389
- package/src/generated/prisma/models/ConversationParticipant.ts +0 -1833
- package/src/generated/prisma/models/CounterOffer.ts +0 -2156
- package/src/generated/prisma/models/Country.ts +0 -3394
- package/src/generated/prisma/models/Currency.ts +0 -1642
- package/src/generated/prisma/models/CustomerNotification.ts +0 -1653
- package/src/generated/prisma/models/Department.ts +0 -2372
- package/src/generated/prisma/models/DepartmentBudget.ts +0 -2494
- package/src/generated/prisma/models/DynamicForm.ts +0 -2021
- package/src/generated/prisma/models/EmailTemplate.ts +0 -1516
- package/src/generated/prisma/models/Event.ts +0 -6819
- package/src/generated/prisma/models/EventConfigurations.ts +0 -1736
- package/src/generated/prisma/models/EventCriteria.ts +0 -2134
- package/src/generated/prisma/models/EventItems.ts +0 -2821
- package/src/generated/prisma/models/EventRfiForm.ts +0 -2020
- package/src/generated/prisma/models/EventRfiFormLog.ts +0 -2608
- package/src/generated/prisma/models/EventStrategies.ts +0 -1857
- package/src/generated/prisma/models/EventVendorCriteria.ts +0 -2186
- package/src/generated/prisma/models/EventVendors.ts +0 -3446
- package/src/generated/prisma/models/Expense.ts +0 -1625
- package/src/generated/prisma/models/ExportLog.ts +0 -1822
- package/src/generated/prisma/models/Faq.ts +0 -1753
- package/src/generated/prisma/models/FaqCategory.ts +0 -1610
- package/src/generated/prisma/models/FiscalYear.ts +0 -1460
- package/src/generated/prisma/models/FormMaster.ts +0 -1831
- package/src/generated/prisma/models/GRN.ts +0 -3354
- package/src/generated/prisma/models/GRNItem.ts +0 -2119
- package/src/generated/prisma/models/Industry.ts +0 -1642
- package/src/generated/prisma/models/Invoice.ts +0 -2949
- package/src/generated/prisma/models/InvoiceItem.ts +0 -2397
- package/src/generated/prisma/models/Item.ts +0 -10644
- package/src/generated/prisma/models/ItemAttribute.ts +0 -1750
- package/src/generated/prisma/models/ItemAttributeValue.ts +0 -1802
- package/src/generated/prisma/models/ItemDocument.ts +0 -1590
- package/src/generated/prisma/models/Location.ts +0 -2711
- package/src/generated/prisma/models/Message.ts +0 -2744
- package/src/generated/prisma/models/MessageRecipient.ts +0 -1759
- package/src/generated/prisma/models/Module.ts +0 -1630
- package/src/generated/prisma/models/Permission.ts +0 -1640
- package/src/generated/prisma/models/PurchaseIntake.ts +0 -4672
- package/src/generated/prisma/models/PurchaseIntakeItem.ts +0 -2366
- package/src/generated/prisma/models/PurchaseOrder.ts +0 -4012
- package/src/generated/prisma/models/PurchaseOrderActivityLog.ts +0 -1720
- package/src/generated/prisma/models/PurchaseOrderItem.ts +0 -2623
- package/src/generated/prisma/models/Quotation.ts +0 -3207
- package/src/generated/prisma/models/QuotationLog.ts +0 -3239
- package/src/generated/prisma/models/Region.ts +0 -1746
- package/src/generated/prisma/models/RequestedCatalogue.ts +0 -1618
- package/src/generated/prisma/models/RequestedCatalogueDetails.ts +0 -2252
- package/src/generated/prisma/models/Role.ts +0 -1907
- package/src/generated/prisma/models/RolePermission.ts +0 -1737
- package/src/generated/prisma/models/SendBack.ts +0 -1830
- package/src/generated/prisma/models/SerialNumberConfiguration.ts +0 -1254
- package/src/generated/prisma/models/SmtpConfig.ts +0 -1522
- package/src/generated/prisma/models/State.ts +0 -2174
- package/src/generated/prisma/models/Strategies.ts +0 -1791
- package/src/generated/prisma/models/SubModule.ts +0 -1450
- package/src/generated/prisma/models/Subregion.ts +0 -1870
- package/src/generated/prisma/models/SupportCategory.ts +0 -1712
- package/src/generated/prisma/models/SupportTicket.ts +0 -2478
- package/src/generated/prisma/models/SupportingDocument.ts +0 -2283
- package/src/generated/prisma/models/Template.ts +0 -2429
- package/src/generated/prisma/models/TemplateField.ts +0 -1916
- package/src/generated/prisma/models/TemplateStrategies.ts +0 -1614
- package/src/generated/prisma/models/TenantConfiguration.ts +0 -1694
- package/src/generated/prisma/models/TicketAssignment.ts +0 -1742
- package/src/generated/prisma/models/TicketHistory.ts +0 -1789
- package/src/generated/prisma/models/TicketReply.ts +0 -1640
- package/src/generated/prisma/models/Uom.ts +0 -1752
- package/src/generated/prisma/models/UomCategory.ts +0 -1558
- package/src/generated/prisma/models/UploadLog.ts +0 -1731
- package/src/generated/prisma/models/User.ts +0 -19397
- package/src/generated/prisma/models/UserDepartmentEntity.ts +0 -2099
- package/src/generated/prisma/models/UserEventConfiguration.ts +0 -1370
- package/src/generated/prisma/models/UserLoginActivity.ts +0 -1693
- package/src/generated/prisma/models/UserRole.ts +0 -1696
- package/src/generated/prisma/models/UserVendorSocketTokens.ts +0 -1450
- package/src/generated/prisma/models/VendorReference.ts +0 -1707
- package/src/generated/prisma/models.ts +0 -122
|
@@ -1,1625 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// biome-ignore-all lint: generated file
|
|
5
|
-
// @ts-nocheck
|
|
6
|
-
/*
|
|
7
|
-
* This file exports the `Expense` model and its related types.
|
|
8
|
-
*
|
|
9
|
-
* 🟢 You can import this file directly.
|
|
10
|
-
*/
|
|
11
|
-
import type * as runtime from "@prisma/client/runtime/client"
|
|
12
|
-
import type * as $Enums from "../enums.ts"
|
|
13
|
-
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Model Expense
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
export type ExpenseModel = runtime.Types.Result.DefaultSelection<Prisma.$ExpensePayload>
|
|
20
|
-
|
|
21
|
-
export type AggregateExpense = {
|
|
22
|
-
_count: ExpenseCountAggregateOutputType | null
|
|
23
|
-
_avg: ExpenseAvgAggregateOutputType | null
|
|
24
|
-
_sum: ExpenseSumAggregateOutputType | null
|
|
25
|
-
_min: ExpenseMinAggregateOutputType | null
|
|
26
|
-
_max: ExpenseMaxAggregateOutputType | null
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type ExpenseAvgAggregateOutputType = {
|
|
30
|
-
id: number | null
|
|
31
|
-
category_budget_id: number | null
|
|
32
|
-
amount: runtime.Decimal | null
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export type ExpenseSumAggregateOutputType = {
|
|
36
|
-
id: number | null
|
|
37
|
-
category_budget_id: number | null
|
|
38
|
-
amount: runtime.Decimal | null
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export type ExpenseMinAggregateOutputType = {
|
|
42
|
-
id: number | null
|
|
43
|
-
uuid: string | null
|
|
44
|
-
category_budget_id: number | null
|
|
45
|
-
amount: runtime.Decimal | null
|
|
46
|
-
description: string | null
|
|
47
|
-
expense_date: Date | null
|
|
48
|
-
receipt_number: string | null
|
|
49
|
-
vendor_name: string | null
|
|
50
|
-
notes: string | null
|
|
51
|
-
created_at: Date | null
|
|
52
|
-
updated_at: Date | null
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export type ExpenseMaxAggregateOutputType = {
|
|
56
|
-
id: number | null
|
|
57
|
-
uuid: string | null
|
|
58
|
-
category_budget_id: number | null
|
|
59
|
-
amount: runtime.Decimal | null
|
|
60
|
-
description: string | null
|
|
61
|
-
expense_date: Date | null
|
|
62
|
-
receipt_number: string | null
|
|
63
|
-
vendor_name: string | null
|
|
64
|
-
notes: string | null
|
|
65
|
-
created_at: Date | null
|
|
66
|
-
updated_at: Date | null
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export type ExpenseCountAggregateOutputType = {
|
|
70
|
-
id: number
|
|
71
|
-
uuid: number
|
|
72
|
-
category_budget_id: number
|
|
73
|
-
amount: number
|
|
74
|
-
description: number
|
|
75
|
-
expense_date: number
|
|
76
|
-
receipt_number: number
|
|
77
|
-
vendor_name: number
|
|
78
|
-
notes: number
|
|
79
|
-
created_at: number
|
|
80
|
-
updated_at: number
|
|
81
|
-
_all: number
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
export type ExpenseAvgAggregateInputType = {
|
|
86
|
-
id?: true
|
|
87
|
-
category_budget_id?: true
|
|
88
|
-
amount?: true
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export type ExpenseSumAggregateInputType = {
|
|
92
|
-
id?: true
|
|
93
|
-
category_budget_id?: true
|
|
94
|
-
amount?: true
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export type ExpenseMinAggregateInputType = {
|
|
98
|
-
id?: true
|
|
99
|
-
uuid?: true
|
|
100
|
-
category_budget_id?: true
|
|
101
|
-
amount?: true
|
|
102
|
-
description?: true
|
|
103
|
-
expense_date?: true
|
|
104
|
-
receipt_number?: true
|
|
105
|
-
vendor_name?: true
|
|
106
|
-
notes?: true
|
|
107
|
-
created_at?: true
|
|
108
|
-
updated_at?: true
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export type ExpenseMaxAggregateInputType = {
|
|
112
|
-
id?: true
|
|
113
|
-
uuid?: true
|
|
114
|
-
category_budget_id?: true
|
|
115
|
-
amount?: true
|
|
116
|
-
description?: true
|
|
117
|
-
expense_date?: true
|
|
118
|
-
receipt_number?: true
|
|
119
|
-
vendor_name?: true
|
|
120
|
-
notes?: true
|
|
121
|
-
created_at?: true
|
|
122
|
-
updated_at?: true
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export type ExpenseCountAggregateInputType = {
|
|
126
|
-
id?: true
|
|
127
|
-
uuid?: true
|
|
128
|
-
category_budget_id?: true
|
|
129
|
-
amount?: true
|
|
130
|
-
description?: true
|
|
131
|
-
expense_date?: true
|
|
132
|
-
receipt_number?: true
|
|
133
|
-
vendor_name?: true
|
|
134
|
-
notes?: true
|
|
135
|
-
created_at?: true
|
|
136
|
-
updated_at?: true
|
|
137
|
-
_all?: true
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export type ExpenseAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
141
|
-
/**
|
|
142
|
-
* Filter which Expense to aggregate.
|
|
143
|
-
*/
|
|
144
|
-
where?: Prisma.ExpenseWhereInput
|
|
145
|
-
/**
|
|
146
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
147
|
-
*
|
|
148
|
-
* Determine the order of Expenses to fetch.
|
|
149
|
-
*/
|
|
150
|
-
orderBy?: Prisma.ExpenseOrderByWithRelationInput | Prisma.ExpenseOrderByWithRelationInput[]
|
|
151
|
-
/**
|
|
152
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
153
|
-
*
|
|
154
|
-
* Sets the start position
|
|
155
|
-
*/
|
|
156
|
-
cursor?: Prisma.ExpenseWhereUniqueInput
|
|
157
|
-
/**
|
|
158
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
159
|
-
*
|
|
160
|
-
* Take `±n` Expenses from the position of the cursor.
|
|
161
|
-
*/
|
|
162
|
-
take?: number
|
|
163
|
-
/**
|
|
164
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
165
|
-
*
|
|
166
|
-
* Skip the first `n` Expenses.
|
|
167
|
-
*/
|
|
168
|
-
skip?: number
|
|
169
|
-
/**
|
|
170
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
171
|
-
*
|
|
172
|
-
* Count returned Expenses
|
|
173
|
-
**/
|
|
174
|
-
_count?: true | ExpenseCountAggregateInputType
|
|
175
|
-
/**
|
|
176
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
177
|
-
*
|
|
178
|
-
* Select which fields to average
|
|
179
|
-
**/
|
|
180
|
-
_avg?: ExpenseAvgAggregateInputType
|
|
181
|
-
/**
|
|
182
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
183
|
-
*
|
|
184
|
-
* Select which fields to sum
|
|
185
|
-
**/
|
|
186
|
-
_sum?: ExpenseSumAggregateInputType
|
|
187
|
-
/**
|
|
188
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
189
|
-
*
|
|
190
|
-
* Select which fields to find the minimum value
|
|
191
|
-
**/
|
|
192
|
-
_min?: ExpenseMinAggregateInputType
|
|
193
|
-
/**
|
|
194
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
195
|
-
*
|
|
196
|
-
* Select which fields to find the maximum value
|
|
197
|
-
**/
|
|
198
|
-
_max?: ExpenseMaxAggregateInputType
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
export type GetExpenseAggregateType<T extends ExpenseAggregateArgs> = {
|
|
202
|
-
[P in keyof T & keyof AggregateExpense]: P extends '_count' | 'count'
|
|
203
|
-
? T[P] extends true
|
|
204
|
-
? number
|
|
205
|
-
: Prisma.GetScalarType<T[P], AggregateExpense[P]>
|
|
206
|
-
: Prisma.GetScalarType<T[P], AggregateExpense[P]>
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
export type ExpenseGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
213
|
-
where?: Prisma.ExpenseWhereInput
|
|
214
|
-
orderBy?: Prisma.ExpenseOrderByWithAggregationInput | Prisma.ExpenseOrderByWithAggregationInput[]
|
|
215
|
-
by: Prisma.ExpenseScalarFieldEnum[] | Prisma.ExpenseScalarFieldEnum
|
|
216
|
-
having?: Prisma.ExpenseScalarWhereWithAggregatesInput
|
|
217
|
-
take?: number
|
|
218
|
-
skip?: number
|
|
219
|
-
_count?: ExpenseCountAggregateInputType | true
|
|
220
|
-
_avg?: ExpenseAvgAggregateInputType
|
|
221
|
-
_sum?: ExpenseSumAggregateInputType
|
|
222
|
-
_min?: ExpenseMinAggregateInputType
|
|
223
|
-
_max?: ExpenseMaxAggregateInputType
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export type ExpenseGroupByOutputType = {
|
|
227
|
-
id: number
|
|
228
|
-
uuid: string | null
|
|
229
|
-
category_budget_id: number | null
|
|
230
|
-
amount: runtime.Decimal
|
|
231
|
-
description: string | null
|
|
232
|
-
expense_date: Date | null
|
|
233
|
-
receipt_number: string | null
|
|
234
|
-
vendor_name: string | null
|
|
235
|
-
notes: string | null
|
|
236
|
-
created_at: Date
|
|
237
|
-
updated_at: Date
|
|
238
|
-
_count: ExpenseCountAggregateOutputType | null
|
|
239
|
-
_avg: ExpenseAvgAggregateOutputType | null
|
|
240
|
-
_sum: ExpenseSumAggregateOutputType | null
|
|
241
|
-
_min: ExpenseMinAggregateOutputType | null
|
|
242
|
-
_max: ExpenseMaxAggregateOutputType | null
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
export type GetExpenseGroupByPayload<T extends ExpenseGroupByArgs> = Prisma.PrismaPromise<
|
|
246
|
-
Array<
|
|
247
|
-
Prisma.PickEnumerable<ExpenseGroupByOutputType, T['by']> &
|
|
248
|
-
{
|
|
249
|
-
[P in ((keyof T) & (keyof ExpenseGroupByOutputType))]: P extends '_count'
|
|
250
|
-
? T[P] extends boolean
|
|
251
|
-
? number
|
|
252
|
-
: Prisma.GetScalarType<T[P], ExpenseGroupByOutputType[P]>
|
|
253
|
-
: Prisma.GetScalarType<T[P], ExpenseGroupByOutputType[P]>
|
|
254
|
-
}
|
|
255
|
-
>
|
|
256
|
-
>
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
export type ExpenseWhereInput = {
|
|
261
|
-
AND?: Prisma.ExpenseWhereInput | Prisma.ExpenseWhereInput[]
|
|
262
|
-
OR?: Prisma.ExpenseWhereInput[]
|
|
263
|
-
NOT?: Prisma.ExpenseWhereInput | Prisma.ExpenseWhereInput[]
|
|
264
|
-
id?: Prisma.IntFilter<"Expense"> | number
|
|
265
|
-
uuid?: Prisma.StringNullableFilter<"Expense"> | string | null
|
|
266
|
-
category_budget_id?: Prisma.IntNullableFilter<"Expense"> | number | null
|
|
267
|
-
amount?: Prisma.DecimalFilter<"Expense"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
268
|
-
description?: Prisma.StringNullableFilter<"Expense"> | string | null
|
|
269
|
-
expense_date?: Prisma.DateTimeNullableFilter<"Expense"> | Date | string | null
|
|
270
|
-
receipt_number?: Prisma.StringNullableFilter<"Expense"> | string | null
|
|
271
|
-
vendor_name?: Prisma.StringNullableFilter<"Expense"> | string | null
|
|
272
|
-
notes?: Prisma.StringNullableFilter<"Expense"> | string | null
|
|
273
|
-
created_at?: Prisma.DateTimeFilter<"Expense"> | Date | string
|
|
274
|
-
updated_at?: Prisma.DateTimeFilter<"Expense"> | Date | string
|
|
275
|
-
category_budget?: Prisma.XOR<Prisma.CategoryBudgetNullableScalarRelationFilter, Prisma.CategoryBudgetWhereInput> | null
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
export type ExpenseOrderByWithRelationInput = {
|
|
279
|
-
id?: Prisma.SortOrder
|
|
280
|
-
uuid?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
281
|
-
category_budget_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
282
|
-
amount?: Prisma.SortOrder
|
|
283
|
-
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
284
|
-
expense_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
285
|
-
receipt_number?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
286
|
-
vendor_name?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
287
|
-
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
288
|
-
created_at?: Prisma.SortOrder
|
|
289
|
-
updated_at?: Prisma.SortOrder
|
|
290
|
-
category_budget?: Prisma.CategoryBudgetOrderByWithRelationInput
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
export type ExpenseWhereUniqueInput = Prisma.AtLeast<{
|
|
294
|
-
id?: number
|
|
295
|
-
uuid?: string
|
|
296
|
-
AND?: Prisma.ExpenseWhereInput | Prisma.ExpenseWhereInput[]
|
|
297
|
-
OR?: Prisma.ExpenseWhereInput[]
|
|
298
|
-
NOT?: Prisma.ExpenseWhereInput | Prisma.ExpenseWhereInput[]
|
|
299
|
-
category_budget_id?: Prisma.IntNullableFilter<"Expense"> | number | null
|
|
300
|
-
amount?: Prisma.DecimalFilter<"Expense"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
301
|
-
description?: Prisma.StringNullableFilter<"Expense"> | string | null
|
|
302
|
-
expense_date?: Prisma.DateTimeNullableFilter<"Expense"> | Date | string | null
|
|
303
|
-
receipt_number?: Prisma.StringNullableFilter<"Expense"> | string | null
|
|
304
|
-
vendor_name?: Prisma.StringNullableFilter<"Expense"> | string | null
|
|
305
|
-
notes?: Prisma.StringNullableFilter<"Expense"> | string | null
|
|
306
|
-
created_at?: Prisma.DateTimeFilter<"Expense"> | Date | string
|
|
307
|
-
updated_at?: Prisma.DateTimeFilter<"Expense"> | Date | string
|
|
308
|
-
category_budget?: Prisma.XOR<Prisma.CategoryBudgetNullableScalarRelationFilter, Prisma.CategoryBudgetWhereInput> | null
|
|
309
|
-
}, "id" | "uuid">
|
|
310
|
-
|
|
311
|
-
export type ExpenseOrderByWithAggregationInput = {
|
|
312
|
-
id?: Prisma.SortOrder
|
|
313
|
-
uuid?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
314
|
-
category_budget_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
315
|
-
amount?: Prisma.SortOrder
|
|
316
|
-
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
317
|
-
expense_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
318
|
-
receipt_number?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
319
|
-
vendor_name?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
320
|
-
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
321
|
-
created_at?: Prisma.SortOrder
|
|
322
|
-
updated_at?: Prisma.SortOrder
|
|
323
|
-
_count?: Prisma.ExpenseCountOrderByAggregateInput
|
|
324
|
-
_avg?: Prisma.ExpenseAvgOrderByAggregateInput
|
|
325
|
-
_max?: Prisma.ExpenseMaxOrderByAggregateInput
|
|
326
|
-
_min?: Prisma.ExpenseMinOrderByAggregateInput
|
|
327
|
-
_sum?: Prisma.ExpenseSumOrderByAggregateInput
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
export type ExpenseScalarWhereWithAggregatesInput = {
|
|
331
|
-
AND?: Prisma.ExpenseScalarWhereWithAggregatesInput | Prisma.ExpenseScalarWhereWithAggregatesInput[]
|
|
332
|
-
OR?: Prisma.ExpenseScalarWhereWithAggregatesInput[]
|
|
333
|
-
NOT?: Prisma.ExpenseScalarWhereWithAggregatesInput | Prisma.ExpenseScalarWhereWithAggregatesInput[]
|
|
334
|
-
id?: Prisma.IntWithAggregatesFilter<"Expense"> | number
|
|
335
|
-
uuid?: Prisma.StringNullableWithAggregatesFilter<"Expense"> | string | null
|
|
336
|
-
category_budget_id?: Prisma.IntNullableWithAggregatesFilter<"Expense"> | number | null
|
|
337
|
-
amount?: Prisma.DecimalWithAggregatesFilter<"Expense"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
338
|
-
description?: Prisma.StringNullableWithAggregatesFilter<"Expense"> | string | null
|
|
339
|
-
expense_date?: Prisma.DateTimeNullableWithAggregatesFilter<"Expense"> | Date | string | null
|
|
340
|
-
receipt_number?: Prisma.StringNullableWithAggregatesFilter<"Expense"> | string | null
|
|
341
|
-
vendor_name?: Prisma.StringNullableWithAggregatesFilter<"Expense"> | string | null
|
|
342
|
-
notes?: Prisma.StringNullableWithAggregatesFilter<"Expense"> | string | null
|
|
343
|
-
created_at?: Prisma.DateTimeWithAggregatesFilter<"Expense"> | Date | string
|
|
344
|
-
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Expense"> | Date | string
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
export type ExpenseCreateInput = {
|
|
348
|
-
uuid?: string | null
|
|
349
|
-
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
350
|
-
description?: string | null
|
|
351
|
-
expense_date?: Date | string | null
|
|
352
|
-
receipt_number?: string | null
|
|
353
|
-
vendor_name?: string | null
|
|
354
|
-
notes?: string | null
|
|
355
|
-
created_at?: Date | string
|
|
356
|
-
updated_at?: Date | string
|
|
357
|
-
category_budget?: Prisma.CategoryBudgetCreateNestedOneWithoutExpensesInput
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
export type ExpenseUncheckedCreateInput = {
|
|
361
|
-
id?: number
|
|
362
|
-
uuid?: string | null
|
|
363
|
-
category_budget_id?: number | null
|
|
364
|
-
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
365
|
-
description?: string | null
|
|
366
|
-
expense_date?: Date | string | null
|
|
367
|
-
receipt_number?: string | null
|
|
368
|
-
vendor_name?: string | null
|
|
369
|
-
notes?: string | null
|
|
370
|
-
created_at?: Date | string
|
|
371
|
-
updated_at?: Date | string
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
export type ExpenseUpdateInput = {
|
|
375
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
376
|
-
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
377
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
378
|
-
expense_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
379
|
-
receipt_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
380
|
-
vendor_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
381
|
-
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
382
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
383
|
-
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
384
|
-
category_budget?: Prisma.CategoryBudgetUpdateOneWithoutExpensesNestedInput
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
export type ExpenseUncheckedUpdateInput = {
|
|
388
|
-
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
389
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
390
|
-
category_budget_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
391
|
-
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
392
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
393
|
-
expense_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
394
|
-
receipt_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
395
|
-
vendor_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
396
|
-
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
397
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
398
|
-
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
export type ExpenseCreateManyInput = {
|
|
402
|
-
id?: number
|
|
403
|
-
uuid?: string | null
|
|
404
|
-
category_budget_id?: number | null
|
|
405
|
-
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
406
|
-
description?: string | null
|
|
407
|
-
expense_date?: Date | string | null
|
|
408
|
-
receipt_number?: string | null
|
|
409
|
-
vendor_name?: string | null
|
|
410
|
-
notes?: string | null
|
|
411
|
-
created_at?: Date | string
|
|
412
|
-
updated_at?: Date | string
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
export type ExpenseUpdateManyMutationInput = {
|
|
416
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
417
|
-
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
418
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
419
|
-
expense_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
420
|
-
receipt_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
421
|
-
vendor_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
422
|
-
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
423
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
424
|
-
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
export type ExpenseUncheckedUpdateManyInput = {
|
|
428
|
-
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
429
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
430
|
-
category_budget_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
431
|
-
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
432
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
433
|
-
expense_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
434
|
-
receipt_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
435
|
-
vendor_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
436
|
-
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
437
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
438
|
-
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
export type ExpenseListRelationFilter = {
|
|
442
|
-
every?: Prisma.ExpenseWhereInput
|
|
443
|
-
some?: Prisma.ExpenseWhereInput
|
|
444
|
-
none?: Prisma.ExpenseWhereInput
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
export type ExpenseOrderByRelationAggregateInput = {
|
|
448
|
-
_count?: Prisma.SortOrder
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
export type ExpenseCountOrderByAggregateInput = {
|
|
452
|
-
id?: Prisma.SortOrder
|
|
453
|
-
uuid?: Prisma.SortOrder
|
|
454
|
-
category_budget_id?: Prisma.SortOrder
|
|
455
|
-
amount?: Prisma.SortOrder
|
|
456
|
-
description?: Prisma.SortOrder
|
|
457
|
-
expense_date?: Prisma.SortOrder
|
|
458
|
-
receipt_number?: Prisma.SortOrder
|
|
459
|
-
vendor_name?: Prisma.SortOrder
|
|
460
|
-
notes?: Prisma.SortOrder
|
|
461
|
-
created_at?: Prisma.SortOrder
|
|
462
|
-
updated_at?: Prisma.SortOrder
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
export type ExpenseAvgOrderByAggregateInput = {
|
|
466
|
-
id?: Prisma.SortOrder
|
|
467
|
-
category_budget_id?: Prisma.SortOrder
|
|
468
|
-
amount?: Prisma.SortOrder
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
export type ExpenseMaxOrderByAggregateInput = {
|
|
472
|
-
id?: Prisma.SortOrder
|
|
473
|
-
uuid?: Prisma.SortOrder
|
|
474
|
-
category_budget_id?: Prisma.SortOrder
|
|
475
|
-
amount?: Prisma.SortOrder
|
|
476
|
-
description?: Prisma.SortOrder
|
|
477
|
-
expense_date?: Prisma.SortOrder
|
|
478
|
-
receipt_number?: Prisma.SortOrder
|
|
479
|
-
vendor_name?: Prisma.SortOrder
|
|
480
|
-
notes?: Prisma.SortOrder
|
|
481
|
-
created_at?: Prisma.SortOrder
|
|
482
|
-
updated_at?: Prisma.SortOrder
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
export type ExpenseMinOrderByAggregateInput = {
|
|
486
|
-
id?: Prisma.SortOrder
|
|
487
|
-
uuid?: Prisma.SortOrder
|
|
488
|
-
category_budget_id?: Prisma.SortOrder
|
|
489
|
-
amount?: Prisma.SortOrder
|
|
490
|
-
description?: Prisma.SortOrder
|
|
491
|
-
expense_date?: Prisma.SortOrder
|
|
492
|
-
receipt_number?: Prisma.SortOrder
|
|
493
|
-
vendor_name?: Prisma.SortOrder
|
|
494
|
-
notes?: Prisma.SortOrder
|
|
495
|
-
created_at?: Prisma.SortOrder
|
|
496
|
-
updated_at?: Prisma.SortOrder
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
export type ExpenseSumOrderByAggregateInput = {
|
|
500
|
-
id?: Prisma.SortOrder
|
|
501
|
-
category_budget_id?: Prisma.SortOrder
|
|
502
|
-
amount?: Prisma.SortOrder
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
export type ExpenseCreateNestedManyWithoutCategory_budgetInput = {
|
|
506
|
-
create?: Prisma.XOR<Prisma.ExpenseCreateWithoutCategory_budgetInput, Prisma.ExpenseUncheckedCreateWithoutCategory_budgetInput> | Prisma.ExpenseCreateWithoutCategory_budgetInput[] | Prisma.ExpenseUncheckedCreateWithoutCategory_budgetInput[]
|
|
507
|
-
connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutCategory_budgetInput | Prisma.ExpenseCreateOrConnectWithoutCategory_budgetInput[]
|
|
508
|
-
createMany?: Prisma.ExpenseCreateManyCategory_budgetInputEnvelope
|
|
509
|
-
connect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[]
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
export type ExpenseUncheckedCreateNestedManyWithoutCategory_budgetInput = {
|
|
513
|
-
create?: Prisma.XOR<Prisma.ExpenseCreateWithoutCategory_budgetInput, Prisma.ExpenseUncheckedCreateWithoutCategory_budgetInput> | Prisma.ExpenseCreateWithoutCategory_budgetInput[] | Prisma.ExpenseUncheckedCreateWithoutCategory_budgetInput[]
|
|
514
|
-
connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutCategory_budgetInput | Prisma.ExpenseCreateOrConnectWithoutCategory_budgetInput[]
|
|
515
|
-
createMany?: Prisma.ExpenseCreateManyCategory_budgetInputEnvelope
|
|
516
|
-
connect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[]
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
export type ExpenseUpdateManyWithoutCategory_budgetNestedInput = {
|
|
520
|
-
create?: Prisma.XOR<Prisma.ExpenseCreateWithoutCategory_budgetInput, Prisma.ExpenseUncheckedCreateWithoutCategory_budgetInput> | Prisma.ExpenseCreateWithoutCategory_budgetInput[] | Prisma.ExpenseUncheckedCreateWithoutCategory_budgetInput[]
|
|
521
|
-
connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutCategory_budgetInput | Prisma.ExpenseCreateOrConnectWithoutCategory_budgetInput[]
|
|
522
|
-
upsert?: Prisma.ExpenseUpsertWithWhereUniqueWithoutCategory_budgetInput | Prisma.ExpenseUpsertWithWhereUniqueWithoutCategory_budgetInput[]
|
|
523
|
-
createMany?: Prisma.ExpenseCreateManyCategory_budgetInputEnvelope
|
|
524
|
-
set?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[]
|
|
525
|
-
disconnect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[]
|
|
526
|
-
delete?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[]
|
|
527
|
-
connect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[]
|
|
528
|
-
update?: Prisma.ExpenseUpdateWithWhereUniqueWithoutCategory_budgetInput | Prisma.ExpenseUpdateWithWhereUniqueWithoutCategory_budgetInput[]
|
|
529
|
-
updateMany?: Prisma.ExpenseUpdateManyWithWhereWithoutCategory_budgetInput | Prisma.ExpenseUpdateManyWithWhereWithoutCategory_budgetInput[]
|
|
530
|
-
deleteMany?: Prisma.ExpenseScalarWhereInput | Prisma.ExpenseScalarWhereInput[]
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
export type ExpenseUncheckedUpdateManyWithoutCategory_budgetNestedInput = {
|
|
534
|
-
create?: Prisma.XOR<Prisma.ExpenseCreateWithoutCategory_budgetInput, Prisma.ExpenseUncheckedCreateWithoutCategory_budgetInput> | Prisma.ExpenseCreateWithoutCategory_budgetInput[] | Prisma.ExpenseUncheckedCreateWithoutCategory_budgetInput[]
|
|
535
|
-
connectOrCreate?: Prisma.ExpenseCreateOrConnectWithoutCategory_budgetInput | Prisma.ExpenseCreateOrConnectWithoutCategory_budgetInput[]
|
|
536
|
-
upsert?: Prisma.ExpenseUpsertWithWhereUniqueWithoutCategory_budgetInput | Prisma.ExpenseUpsertWithWhereUniqueWithoutCategory_budgetInput[]
|
|
537
|
-
createMany?: Prisma.ExpenseCreateManyCategory_budgetInputEnvelope
|
|
538
|
-
set?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[]
|
|
539
|
-
disconnect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[]
|
|
540
|
-
delete?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[]
|
|
541
|
-
connect?: Prisma.ExpenseWhereUniqueInput | Prisma.ExpenseWhereUniqueInput[]
|
|
542
|
-
update?: Prisma.ExpenseUpdateWithWhereUniqueWithoutCategory_budgetInput | Prisma.ExpenseUpdateWithWhereUniqueWithoutCategory_budgetInput[]
|
|
543
|
-
updateMany?: Prisma.ExpenseUpdateManyWithWhereWithoutCategory_budgetInput | Prisma.ExpenseUpdateManyWithWhereWithoutCategory_budgetInput[]
|
|
544
|
-
deleteMany?: Prisma.ExpenseScalarWhereInput | Prisma.ExpenseScalarWhereInput[]
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
export type ExpenseCreateWithoutCategory_budgetInput = {
|
|
548
|
-
uuid?: string | null
|
|
549
|
-
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
550
|
-
description?: string | null
|
|
551
|
-
expense_date?: Date | string | null
|
|
552
|
-
receipt_number?: string | null
|
|
553
|
-
vendor_name?: string | null
|
|
554
|
-
notes?: string | null
|
|
555
|
-
created_at?: Date | string
|
|
556
|
-
updated_at?: Date | string
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
export type ExpenseUncheckedCreateWithoutCategory_budgetInput = {
|
|
560
|
-
id?: number
|
|
561
|
-
uuid?: string | null
|
|
562
|
-
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
563
|
-
description?: string | null
|
|
564
|
-
expense_date?: Date | string | null
|
|
565
|
-
receipt_number?: string | null
|
|
566
|
-
vendor_name?: string | null
|
|
567
|
-
notes?: string | null
|
|
568
|
-
created_at?: Date | string
|
|
569
|
-
updated_at?: Date | string
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
export type ExpenseCreateOrConnectWithoutCategory_budgetInput = {
|
|
573
|
-
where: Prisma.ExpenseWhereUniqueInput
|
|
574
|
-
create: Prisma.XOR<Prisma.ExpenseCreateWithoutCategory_budgetInput, Prisma.ExpenseUncheckedCreateWithoutCategory_budgetInput>
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
export type ExpenseCreateManyCategory_budgetInputEnvelope = {
|
|
578
|
-
data: Prisma.ExpenseCreateManyCategory_budgetInput | Prisma.ExpenseCreateManyCategory_budgetInput[]
|
|
579
|
-
skipDuplicates?: boolean
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
export type ExpenseUpsertWithWhereUniqueWithoutCategory_budgetInput = {
|
|
583
|
-
where: Prisma.ExpenseWhereUniqueInput
|
|
584
|
-
update: Prisma.XOR<Prisma.ExpenseUpdateWithoutCategory_budgetInput, Prisma.ExpenseUncheckedUpdateWithoutCategory_budgetInput>
|
|
585
|
-
create: Prisma.XOR<Prisma.ExpenseCreateWithoutCategory_budgetInput, Prisma.ExpenseUncheckedCreateWithoutCategory_budgetInput>
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
export type ExpenseUpdateWithWhereUniqueWithoutCategory_budgetInput = {
|
|
589
|
-
where: Prisma.ExpenseWhereUniqueInput
|
|
590
|
-
data: Prisma.XOR<Prisma.ExpenseUpdateWithoutCategory_budgetInput, Prisma.ExpenseUncheckedUpdateWithoutCategory_budgetInput>
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
export type ExpenseUpdateManyWithWhereWithoutCategory_budgetInput = {
|
|
594
|
-
where: Prisma.ExpenseScalarWhereInput
|
|
595
|
-
data: Prisma.XOR<Prisma.ExpenseUpdateManyMutationInput, Prisma.ExpenseUncheckedUpdateManyWithoutCategory_budgetInput>
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
export type ExpenseScalarWhereInput = {
|
|
599
|
-
AND?: Prisma.ExpenseScalarWhereInput | Prisma.ExpenseScalarWhereInput[]
|
|
600
|
-
OR?: Prisma.ExpenseScalarWhereInput[]
|
|
601
|
-
NOT?: Prisma.ExpenseScalarWhereInput | Prisma.ExpenseScalarWhereInput[]
|
|
602
|
-
id?: Prisma.IntFilter<"Expense"> | number
|
|
603
|
-
uuid?: Prisma.StringNullableFilter<"Expense"> | string | null
|
|
604
|
-
category_budget_id?: Prisma.IntNullableFilter<"Expense"> | number | null
|
|
605
|
-
amount?: Prisma.DecimalFilter<"Expense"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
606
|
-
description?: Prisma.StringNullableFilter<"Expense"> | string | null
|
|
607
|
-
expense_date?: Prisma.DateTimeNullableFilter<"Expense"> | Date | string | null
|
|
608
|
-
receipt_number?: Prisma.StringNullableFilter<"Expense"> | string | null
|
|
609
|
-
vendor_name?: Prisma.StringNullableFilter<"Expense"> | string | null
|
|
610
|
-
notes?: Prisma.StringNullableFilter<"Expense"> | string | null
|
|
611
|
-
created_at?: Prisma.DateTimeFilter<"Expense"> | Date | string
|
|
612
|
-
updated_at?: Prisma.DateTimeFilter<"Expense"> | Date | string
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
export type ExpenseCreateManyCategory_budgetInput = {
|
|
616
|
-
id?: number
|
|
617
|
-
uuid?: string | null
|
|
618
|
-
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
619
|
-
description?: string | null
|
|
620
|
-
expense_date?: Date | string | null
|
|
621
|
-
receipt_number?: string | null
|
|
622
|
-
vendor_name?: string | null
|
|
623
|
-
notes?: string | null
|
|
624
|
-
created_at?: Date | string
|
|
625
|
-
updated_at?: Date | string
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
export type ExpenseUpdateWithoutCategory_budgetInput = {
|
|
629
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
630
|
-
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
631
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
632
|
-
expense_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
633
|
-
receipt_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
634
|
-
vendor_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
635
|
-
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
636
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
637
|
-
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
export type ExpenseUncheckedUpdateWithoutCategory_budgetInput = {
|
|
641
|
-
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
642
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
643
|
-
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
644
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
645
|
-
expense_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
646
|
-
receipt_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
647
|
-
vendor_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
648
|
-
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
649
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
650
|
-
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
export type ExpenseUncheckedUpdateManyWithoutCategory_budgetInput = {
|
|
654
|
-
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
655
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
656
|
-
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
657
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
658
|
-
expense_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
659
|
-
receipt_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
660
|
-
vendor_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
661
|
-
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
662
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
663
|
-
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
export type ExpenseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
669
|
-
id?: boolean
|
|
670
|
-
uuid?: boolean
|
|
671
|
-
category_budget_id?: boolean
|
|
672
|
-
amount?: boolean
|
|
673
|
-
description?: boolean
|
|
674
|
-
expense_date?: boolean
|
|
675
|
-
receipt_number?: boolean
|
|
676
|
-
vendor_name?: boolean
|
|
677
|
-
notes?: boolean
|
|
678
|
-
created_at?: boolean
|
|
679
|
-
updated_at?: boolean
|
|
680
|
-
category_budget?: boolean | Prisma.Expense$category_budgetArgs<ExtArgs>
|
|
681
|
-
}, ExtArgs["result"]["expense"]>
|
|
682
|
-
|
|
683
|
-
export type ExpenseSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
684
|
-
id?: boolean
|
|
685
|
-
uuid?: boolean
|
|
686
|
-
category_budget_id?: boolean
|
|
687
|
-
amount?: boolean
|
|
688
|
-
description?: boolean
|
|
689
|
-
expense_date?: boolean
|
|
690
|
-
receipt_number?: boolean
|
|
691
|
-
vendor_name?: boolean
|
|
692
|
-
notes?: boolean
|
|
693
|
-
created_at?: boolean
|
|
694
|
-
updated_at?: boolean
|
|
695
|
-
category_budget?: boolean | Prisma.Expense$category_budgetArgs<ExtArgs>
|
|
696
|
-
}, ExtArgs["result"]["expense"]>
|
|
697
|
-
|
|
698
|
-
export type ExpenseSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
699
|
-
id?: boolean
|
|
700
|
-
uuid?: boolean
|
|
701
|
-
category_budget_id?: boolean
|
|
702
|
-
amount?: boolean
|
|
703
|
-
description?: boolean
|
|
704
|
-
expense_date?: boolean
|
|
705
|
-
receipt_number?: boolean
|
|
706
|
-
vendor_name?: boolean
|
|
707
|
-
notes?: boolean
|
|
708
|
-
created_at?: boolean
|
|
709
|
-
updated_at?: boolean
|
|
710
|
-
category_budget?: boolean | Prisma.Expense$category_budgetArgs<ExtArgs>
|
|
711
|
-
}, ExtArgs["result"]["expense"]>
|
|
712
|
-
|
|
713
|
-
export type ExpenseSelectScalar = {
|
|
714
|
-
id?: boolean
|
|
715
|
-
uuid?: boolean
|
|
716
|
-
category_budget_id?: boolean
|
|
717
|
-
amount?: boolean
|
|
718
|
-
description?: boolean
|
|
719
|
-
expense_date?: boolean
|
|
720
|
-
receipt_number?: boolean
|
|
721
|
-
vendor_name?: boolean
|
|
722
|
-
notes?: boolean
|
|
723
|
-
created_at?: boolean
|
|
724
|
-
updated_at?: boolean
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
export type ExpenseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "category_budget_id" | "amount" | "description" | "expense_date" | "receipt_number" | "vendor_name" | "notes" | "created_at" | "updated_at", ExtArgs["result"]["expense"]>
|
|
728
|
-
export type ExpenseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
729
|
-
category_budget?: boolean | Prisma.Expense$category_budgetArgs<ExtArgs>
|
|
730
|
-
}
|
|
731
|
-
export type ExpenseIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
732
|
-
category_budget?: boolean | Prisma.Expense$category_budgetArgs<ExtArgs>
|
|
733
|
-
}
|
|
734
|
-
export type ExpenseIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
735
|
-
category_budget?: boolean | Prisma.Expense$category_budgetArgs<ExtArgs>
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
export type $ExpensePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
739
|
-
name: "Expense"
|
|
740
|
-
objects: {
|
|
741
|
-
category_budget: Prisma.$CategoryBudgetPayload<ExtArgs> | null
|
|
742
|
-
}
|
|
743
|
-
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
744
|
-
id: number
|
|
745
|
-
uuid: string | null
|
|
746
|
-
category_budget_id: number | null
|
|
747
|
-
amount: runtime.Decimal
|
|
748
|
-
description: string | null
|
|
749
|
-
expense_date: Date | null
|
|
750
|
-
receipt_number: string | null
|
|
751
|
-
vendor_name: string | null
|
|
752
|
-
notes: string | null
|
|
753
|
-
created_at: Date
|
|
754
|
-
updated_at: Date
|
|
755
|
-
}, ExtArgs["result"]["expense"]>
|
|
756
|
-
composites: {}
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
export type ExpenseGetPayload<S extends boolean | null | undefined | ExpenseDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ExpensePayload, S>
|
|
760
|
-
|
|
761
|
-
export type ExpenseCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
762
|
-
Omit<ExpenseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
763
|
-
select?: ExpenseCountAggregateInputType | true
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
export interface ExpenseDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
767
|
-
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Expense'], meta: { name: 'Expense' } }
|
|
768
|
-
/**
|
|
769
|
-
* Find zero or one Expense that matches the filter.
|
|
770
|
-
* @param {ExpenseFindUniqueArgs} args - Arguments to find a Expense
|
|
771
|
-
* @example
|
|
772
|
-
* // Get one Expense
|
|
773
|
-
* const expense = await prisma.expense.findUnique({
|
|
774
|
-
* where: {
|
|
775
|
-
* // ... provide filter here
|
|
776
|
-
* }
|
|
777
|
-
* })
|
|
778
|
-
*/
|
|
779
|
-
findUnique<T extends ExpenseFindUniqueArgs>(args: Prisma.SelectSubset<T, ExpenseFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ExpenseClient<runtime.Types.Result.GetResult<Prisma.$ExpensePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
780
|
-
|
|
781
|
-
/**
|
|
782
|
-
* Find one Expense that matches the filter or throw an error with `error.code='P2025'`
|
|
783
|
-
* if no matches were found.
|
|
784
|
-
* @param {ExpenseFindUniqueOrThrowArgs} args - Arguments to find a Expense
|
|
785
|
-
* @example
|
|
786
|
-
* // Get one Expense
|
|
787
|
-
* const expense = await prisma.expense.findUniqueOrThrow({
|
|
788
|
-
* where: {
|
|
789
|
-
* // ... provide filter here
|
|
790
|
-
* }
|
|
791
|
-
* })
|
|
792
|
-
*/
|
|
793
|
-
findUniqueOrThrow<T extends ExpenseFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ExpenseFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ExpenseClient<runtime.Types.Result.GetResult<Prisma.$ExpensePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
794
|
-
|
|
795
|
-
/**
|
|
796
|
-
* Find the first Expense that matches the filter.
|
|
797
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
798
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
799
|
-
* @param {ExpenseFindFirstArgs} args - Arguments to find a Expense
|
|
800
|
-
* @example
|
|
801
|
-
* // Get one Expense
|
|
802
|
-
* const expense = await prisma.expense.findFirst({
|
|
803
|
-
* where: {
|
|
804
|
-
* // ... provide filter here
|
|
805
|
-
* }
|
|
806
|
-
* })
|
|
807
|
-
*/
|
|
808
|
-
findFirst<T extends ExpenseFindFirstArgs>(args?: Prisma.SelectSubset<T, ExpenseFindFirstArgs<ExtArgs>>): Prisma.Prisma__ExpenseClient<runtime.Types.Result.GetResult<Prisma.$ExpensePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
809
|
-
|
|
810
|
-
/**
|
|
811
|
-
* Find the first Expense that matches the filter or
|
|
812
|
-
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
813
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
814
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
815
|
-
* @param {ExpenseFindFirstOrThrowArgs} args - Arguments to find a Expense
|
|
816
|
-
* @example
|
|
817
|
-
* // Get one Expense
|
|
818
|
-
* const expense = await prisma.expense.findFirstOrThrow({
|
|
819
|
-
* where: {
|
|
820
|
-
* // ... provide filter here
|
|
821
|
-
* }
|
|
822
|
-
* })
|
|
823
|
-
*/
|
|
824
|
-
findFirstOrThrow<T extends ExpenseFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ExpenseFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ExpenseClient<runtime.Types.Result.GetResult<Prisma.$ExpensePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
825
|
-
|
|
826
|
-
/**
|
|
827
|
-
* Find zero or more Expenses that matches the filter.
|
|
828
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
829
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
830
|
-
* @param {ExpenseFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
831
|
-
* @example
|
|
832
|
-
* // Get all Expenses
|
|
833
|
-
* const expenses = await prisma.expense.findMany()
|
|
834
|
-
*
|
|
835
|
-
* // Get first 10 Expenses
|
|
836
|
-
* const expenses = await prisma.expense.findMany({ take: 10 })
|
|
837
|
-
*
|
|
838
|
-
* // Only select the `id`
|
|
839
|
-
* const expenseWithIdOnly = await prisma.expense.findMany({ select: { id: true } })
|
|
840
|
-
*
|
|
841
|
-
*/
|
|
842
|
-
findMany<T extends ExpenseFindManyArgs>(args?: Prisma.SelectSubset<T, ExpenseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ExpensePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
843
|
-
|
|
844
|
-
/**
|
|
845
|
-
* Create a Expense.
|
|
846
|
-
* @param {ExpenseCreateArgs} args - Arguments to create a Expense.
|
|
847
|
-
* @example
|
|
848
|
-
* // Create one Expense
|
|
849
|
-
* const Expense = await prisma.expense.create({
|
|
850
|
-
* data: {
|
|
851
|
-
* // ... data to create a Expense
|
|
852
|
-
* }
|
|
853
|
-
* })
|
|
854
|
-
*
|
|
855
|
-
*/
|
|
856
|
-
create<T extends ExpenseCreateArgs>(args: Prisma.SelectSubset<T, ExpenseCreateArgs<ExtArgs>>): Prisma.Prisma__ExpenseClient<runtime.Types.Result.GetResult<Prisma.$ExpensePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
857
|
-
|
|
858
|
-
/**
|
|
859
|
-
* Create many Expenses.
|
|
860
|
-
* @param {ExpenseCreateManyArgs} args - Arguments to create many Expenses.
|
|
861
|
-
* @example
|
|
862
|
-
* // Create many Expenses
|
|
863
|
-
* const expense = await prisma.expense.createMany({
|
|
864
|
-
* data: [
|
|
865
|
-
* // ... provide data here
|
|
866
|
-
* ]
|
|
867
|
-
* })
|
|
868
|
-
*
|
|
869
|
-
*/
|
|
870
|
-
createMany<T extends ExpenseCreateManyArgs>(args?: Prisma.SelectSubset<T, ExpenseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
871
|
-
|
|
872
|
-
/**
|
|
873
|
-
* Create many Expenses and returns the data saved in the database.
|
|
874
|
-
* @param {ExpenseCreateManyAndReturnArgs} args - Arguments to create many Expenses.
|
|
875
|
-
* @example
|
|
876
|
-
* // Create many Expenses
|
|
877
|
-
* const expense = await prisma.expense.createManyAndReturn({
|
|
878
|
-
* data: [
|
|
879
|
-
* // ... provide data here
|
|
880
|
-
* ]
|
|
881
|
-
* })
|
|
882
|
-
*
|
|
883
|
-
* // Create many Expenses and only return the `id`
|
|
884
|
-
* const expenseWithIdOnly = await prisma.expense.createManyAndReturn({
|
|
885
|
-
* select: { id: true },
|
|
886
|
-
* data: [
|
|
887
|
-
* // ... provide data here
|
|
888
|
-
* ]
|
|
889
|
-
* })
|
|
890
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
891
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
892
|
-
*
|
|
893
|
-
*/
|
|
894
|
-
createManyAndReturn<T extends ExpenseCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ExpenseCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ExpensePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
895
|
-
|
|
896
|
-
/**
|
|
897
|
-
* Delete a Expense.
|
|
898
|
-
* @param {ExpenseDeleteArgs} args - Arguments to delete one Expense.
|
|
899
|
-
* @example
|
|
900
|
-
* // Delete one Expense
|
|
901
|
-
* const Expense = await prisma.expense.delete({
|
|
902
|
-
* where: {
|
|
903
|
-
* // ... filter to delete one Expense
|
|
904
|
-
* }
|
|
905
|
-
* })
|
|
906
|
-
*
|
|
907
|
-
*/
|
|
908
|
-
delete<T extends ExpenseDeleteArgs>(args: Prisma.SelectSubset<T, ExpenseDeleteArgs<ExtArgs>>): Prisma.Prisma__ExpenseClient<runtime.Types.Result.GetResult<Prisma.$ExpensePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
909
|
-
|
|
910
|
-
/**
|
|
911
|
-
* Update one Expense.
|
|
912
|
-
* @param {ExpenseUpdateArgs} args - Arguments to update one Expense.
|
|
913
|
-
* @example
|
|
914
|
-
* // Update one Expense
|
|
915
|
-
* const expense = await prisma.expense.update({
|
|
916
|
-
* where: {
|
|
917
|
-
* // ... provide filter here
|
|
918
|
-
* },
|
|
919
|
-
* data: {
|
|
920
|
-
* // ... provide data here
|
|
921
|
-
* }
|
|
922
|
-
* })
|
|
923
|
-
*
|
|
924
|
-
*/
|
|
925
|
-
update<T extends ExpenseUpdateArgs>(args: Prisma.SelectSubset<T, ExpenseUpdateArgs<ExtArgs>>): Prisma.Prisma__ExpenseClient<runtime.Types.Result.GetResult<Prisma.$ExpensePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
926
|
-
|
|
927
|
-
/**
|
|
928
|
-
* Delete zero or more Expenses.
|
|
929
|
-
* @param {ExpenseDeleteManyArgs} args - Arguments to filter Expenses to delete.
|
|
930
|
-
* @example
|
|
931
|
-
* // Delete a few Expenses
|
|
932
|
-
* const { count } = await prisma.expense.deleteMany({
|
|
933
|
-
* where: {
|
|
934
|
-
* // ... provide filter here
|
|
935
|
-
* }
|
|
936
|
-
* })
|
|
937
|
-
*
|
|
938
|
-
*/
|
|
939
|
-
deleteMany<T extends ExpenseDeleteManyArgs>(args?: Prisma.SelectSubset<T, ExpenseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
940
|
-
|
|
941
|
-
/**
|
|
942
|
-
* Update zero or more Expenses.
|
|
943
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
944
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
945
|
-
* @param {ExpenseUpdateManyArgs} args - Arguments to update one or more rows.
|
|
946
|
-
* @example
|
|
947
|
-
* // Update many Expenses
|
|
948
|
-
* const expense = await prisma.expense.updateMany({
|
|
949
|
-
* where: {
|
|
950
|
-
* // ... provide filter here
|
|
951
|
-
* },
|
|
952
|
-
* data: {
|
|
953
|
-
* // ... provide data here
|
|
954
|
-
* }
|
|
955
|
-
* })
|
|
956
|
-
*
|
|
957
|
-
*/
|
|
958
|
-
updateMany<T extends ExpenseUpdateManyArgs>(args: Prisma.SelectSubset<T, ExpenseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
959
|
-
|
|
960
|
-
/**
|
|
961
|
-
* Update zero or more Expenses and returns the data updated in the database.
|
|
962
|
-
* @param {ExpenseUpdateManyAndReturnArgs} args - Arguments to update many Expenses.
|
|
963
|
-
* @example
|
|
964
|
-
* // Update many Expenses
|
|
965
|
-
* const expense = await prisma.expense.updateManyAndReturn({
|
|
966
|
-
* where: {
|
|
967
|
-
* // ... provide filter here
|
|
968
|
-
* },
|
|
969
|
-
* data: [
|
|
970
|
-
* // ... provide data here
|
|
971
|
-
* ]
|
|
972
|
-
* })
|
|
973
|
-
*
|
|
974
|
-
* // Update zero or more Expenses and only return the `id`
|
|
975
|
-
* const expenseWithIdOnly = await prisma.expense.updateManyAndReturn({
|
|
976
|
-
* select: { id: true },
|
|
977
|
-
* where: {
|
|
978
|
-
* // ... provide filter here
|
|
979
|
-
* },
|
|
980
|
-
* data: [
|
|
981
|
-
* // ... provide data here
|
|
982
|
-
* ]
|
|
983
|
-
* })
|
|
984
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
985
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
986
|
-
*
|
|
987
|
-
*/
|
|
988
|
-
updateManyAndReturn<T extends ExpenseUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ExpenseUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ExpensePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
989
|
-
|
|
990
|
-
/**
|
|
991
|
-
* Create or update one Expense.
|
|
992
|
-
* @param {ExpenseUpsertArgs} args - Arguments to update or create a Expense.
|
|
993
|
-
* @example
|
|
994
|
-
* // Update or create a Expense
|
|
995
|
-
* const expense = await prisma.expense.upsert({
|
|
996
|
-
* create: {
|
|
997
|
-
* // ... data to create a Expense
|
|
998
|
-
* },
|
|
999
|
-
* update: {
|
|
1000
|
-
* // ... in case it already exists, update
|
|
1001
|
-
* },
|
|
1002
|
-
* where: {
|
|
1003
|
-
* // ... the filter for the Expense we want to update
|
|
1004
|
-
* }
|
|
1005
|
-
* })
|
|
1006
|
-
*/
|
|
1007
|
-
upsert<T extends ExpenseUpsertArgs>(args: Prisma.SelectSubset<T, ExpenseUpsertArgs<ExtArgs>>): Prisma.Prisma__ExpenseClient<runtime.Types.Result.GetResult<Prisma.$ExpensePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
/**
|
|
1011
|
-
* Count the number of Expenses.
|
|
1012
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1013
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1014
|
-
* @param {ExpenseCountArgs} args - Arguments to filter Expenses to count.
|
|
1015
|
-
* @example
|
|
1016
|
-
* // Count the number of Expenses
|
|
1017
|
-
* const count = await prisma.expense.count({
|
|
1018
|
-
* where: {
|
|
1019
|
-
* // ... the filter for the Expenses we want to count
|
|
1020
|
-
* }
|
|
1021
|
-
* })
|
|
1022
|
-
**/
|
|
1023
|
-
count<T extends ExpenseCountArgs>(
|
|
1024
|
-
args?: Prisma.Subset<T, ExpenseCountArgs>,
|
|
1025
|
-
): Prisma.PrismaPromise<
|
|
1026
|
-
T extends runtime.Types.Utils.Record<'select', any>
|
|
1027
|
-
? T['select'] extends true
|
|
1028
|
-
? number
|
|
1029
|
-
: Prisma.GetScalarType<T['select'], ExpenseCountAggregateOutputType>
|
|
1030
|
-
: number
|
|
1031
|
-
>
|
|
1032
|
-
|
|
1033
|
-
/**
|
|
1034
|
-
* Allows you to perform aggregations operations on a Expense.
|
|
1035
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1036
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1037
|
-
* @param {ExpenseAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1038
|
-
* @example
|
|
1039
|
-
* // Ordered by age ascending
|
|
1040
|
-
* // Where email contains prisma.io
|
|
1041
|
-
* // Limited to the 10 users
|
|
1042
|
-
* const aggregations = await prisma.user.aggregate({
|
|
1043
|
-
* _avg: {
|
|
1044
|
-
* age: true,
|
|
1045
|
-
* },
|
|
1046
|
-
* where: {
|
|
1047
|
-
* email: {
|
|
1048
|
-
* contains: "prisma.io",
|
|
1049
|
-
* },
|
|
1050
|
-
* },
|
|
1051
|
-
* orderBy: {
|
|
1052
|
-
* age: "asc",
|
|
1053
|
-
* },
|
|
1054
|
-
* take: 10,
|
|
1055
|
-
* })
|
|
1056
|
-
**/
|
|
1057
|
-
aggregate<T extends ExpenseAggregateArgs>(args: Prisma.Subset<T, ExpenseAggregateArgs>): Prisma.PrismaPromise<GetExpenseAggregateType<T>>
|
|
1058
|
-
|
|
1059
|
-
/**
|
|
1060
|
-
* Group by Expense.
|
|
1061
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1062
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1063
|
-
* @param {ExpenseGroupByArgs} args - Group by arguments.
|
|
1064
|
-
* @example
|
|
1065
|
-
* // Group by city, order by createdAt, get count
|
|
1066
|
-
* const result = await prisma.user.groupBy({
|
|
1067
|
-
* by: ['city', 'createdAt'],
|
|
1068
|
-
* orderBy: {
|
|
1069
|
-
* createdAt: true
|
|
1070
|
-
* },
|
|
1071
|
-
* _count: {
|
|
1072
|
-
* _all: true
|
|
1073
|
-
* },
|
|
1074
|
-
* })
|
|
1075
|
-
*
|
|
1076
|
-
**/
|
|
1077
|
-
groupBy<
|
|
1078
|
-
T extends ExpenseGroupByArgs,
|
|
1079
|
-
HasSelectOrTake extends Prisma.Or<
|
|
1080
|
-
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
1081
|
-
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
1082
|
-
>,
|
|
1083
|
-
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
1084
|
-
? { orderBy: ExpenseGroupByArgs['orderBy'] }
|
|
1085
|
-
: { orderBy?: ExpenseGroupByArgs['orderBy'] },
|
|
1086
|
-
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
1087
|
-
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
1088
|
-
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
1089
|
-
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
1090
|
-
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
1091
|
-
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
1092
|
-
InputErrors extends ByEmpty extends Prisma.True
|
|
1093
|
-
? `Error: "by" must not be empty.`
|
|
1094
|
-
: HavingValid extends Prisma.False
|
|
1095
|
-
? {
|
|
1096
|
-
[P in HavingFields]: P extends ByFields
|
|
1097
|
-
? never
|
|
1098
|
-
: P extends string
|
|
1099
|
-
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
1100
|
-
: [
|
|
1101
|
-
Error,
|
|
1102
|
-
'Field ',
|
|
1103
|
-
P,
|
|
1104
|
-
` in "having" needs to be provided in "by"`,
|
|
1105
|
-
]
|
|
1106
|
-
}[HavingFields]
|
|
1107
|
-
: 'take' extends Prisma.Keys<T>
|
|
1108
|
-
? 'orderBy' extends Prisma.Keys<T>
|
|
1109
|
-
? ByValid extends Prisma.True
|
|
1110
|
-
? {}
|
|
1111
|
-
: {
|
|
1112
|
-
[P in OrderFields]: P extends ByFields
|
|
1113
|
-
? never
|
|
1114
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1115
|
-
}[OrderFields]
|
|
1116
|
-
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
1117
|
-
: 'skip' extends Prisma.Keys<T>
|
|
1118
|
-
? 'orderBy' extends Prisma.Keys<T>
|
|
1119
|
-
? ByValid extends Prisma.True
|
|
1120
|
-
? {}
|
|
1121
|
-
: {
|
|
1122
|
-
[P in OrderFields]: P extends ByFields
|
|
1123
|
-
? never
|
|
1124
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1125
|
-
}[OrderFields]
|
|
1126
|
-
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
1127
|
-
: ByValid extends Prisma.True
|
|
1128
|
-
? {}
|
|
1129
|
-
: {
|
|
1130
|
-
[P in OrderFields]: P extends ByFields
|
|
1131
|
-
? never
|
|
1132
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1133
|
-
}[OrderFields]
|
|
1134
|
-
>(args: Prisma.SubsetIntersection<T, ExpenseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetExpenseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
1135
|
-
/**
|
|
1136
|
-
* Fields of the Expense model
|
|
1137
|
-
*/
|
|
1138
|
-
readonly fields: ExpenseFieldRefs;
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
/**
|
|
1142
|
-
* The delegate class that acts as a "Promise-like" for Expense.
|
|
1143
|
-
* Why is this prefixed with `Prisma__`?
|
|
1144
|
-
* Because we want to prevent naming conflicts as mentioned in
|
|
1145
|
-
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1146
|
-
*/
|
|
1147
|
-
export interface Prisma__ExpenseClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1148
|
-
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1149
|
-
category_budget<T extends Prisma.Expense$category_budgetArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Expense$category_budgetArgs<ExtArgs>>): Prisma.Prisma__CategoryBudgetClient<runtime.Types.Result.GetResult<Prisma.$CategoryBudgetPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1150
|
-
/**
|
|
1151
|
-
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1152
|
-
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1153
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1154
|
-
* @returns A Promise for the completion of which ever callback is executed.
|
|
1155
|
-
*/
|
|
1156
|
-
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
1157
|
-
/**
|
|
1158
|
-
* Attaches a callback for only the rejection of the Promise.
|
|
1159
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1160
|
-
* @returns A Promise for the completion of the callback.
|
|
1161
|
-
*/
|
|
1162
|
-
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1163
|
-
/**
|
|
1164
|
-
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1165
|
-
* resolved value cannot be modified from the callback.
|
|
1166
|
-
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1167
|
-
* @returns A Promise for the completion of the callback.
|
|
1168
|
-
*/
|
|
1169
|
-
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
/**
|
|
1176
|
-
* Fields of the Expense model
|
|
1177
|
-
*/
|
|
1178
|
-
export interface ExpenseFieldRefs {
|
|
1179
|
-
readonly id: Prisma.FieldRef<"Expense", 'Int'>
|
|
1180
|
-
readonly uuid: Prisma.FieldRef<"Expense", 'String'>
|
|
1181
|
-
readonly category_budget_id: Prisma.FieldRef<"Expense", 'Int'>
|
|
1182
|
-
readonly amount: Prisma.FieldRef<"Expense", 'Decimal'>
|
|
1183
|
-
readonly description: Prisma.FieldRef<"Expense", 'String'>
|
|
1184
|
-
readonly expense_date: Prisma.FieldRef<"Expense", 'DateTime'>
|
|
1185
|
-
readonly receipt_number: Prisma.FieldRef<"Expense", 'String'>
|
|
1186
|
-
readonly vendor_name: Prisma.FieldRef<"Expense", 'String'>
|
|
1187
|
-
readonly notes: Prisma.FieldRef<"Expense", 'String'>
|
|
1188
|
-
readonly created_at: Prisma.FieldRef<"Expense", 'DateTime'>
|
|
1189
|
-
readonly updated_at: Prisma.FieldRef<"Expense", 'DateTime'>
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
// Custom InputTypes
|
|
1194
|
-
/**
|
|
1195
|
-
* Expense findUnique
|
|
1196
|
-
*/
|
|
1197
|
-
export type ExpenseFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1198
|
-
/**
|
|
1199
|
-
* Select specific fields to fetch from the Expense
|
|
1200
|
-
*/
|
|
1201
|
-
select?: Prisma.ExpenseSelect<ExtArgs> | null
|
|
1202
|
-
/**
|
|
1203
|
-
* Omit specific fields from the Expense
|
|
1204
|
-
*/
|
|
1205
|
-
omit?: Prisma.ExpenseOmit<ExtArgs> | null
|
|
1206
|
-
/**
|
|
1207
|
-
* Choose, which related nodes to fetch as well
|
|
1208
|
-
*/
|
|
1209
|
-
include?: Prisma.ExpenseInclude<ExtArgs> | null
|
|
1210
|
-
/**
|
|
1211
|
-
* Filter, which Expense to fetch.
|
|
1212
|
-
*/
|
|
1213
|
-
where: Prisma.ExpenseWhereUniqueInput
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
/**
|
|
1217
|
-
* Expense findUniqueOrThrow
|
|
1218
|
-
*/
|
|
1219
|
-
export type ExpenseFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1220
|
-
/**
|
|
1221
|
-
* Select specific fields to fetch from the Expense
|
|
1222
|
-
*/
|
|
1223
|
-
select?: Prisma.ExpenseSelect<ExtArgs> | null
|
|
1224
|
-
/**
|
|
1225
|
-
* Omit specific fields from the Expense
|
|
1226
|
-
*/
|
|
1227
|
-
omit?: Prisma.ExpenseOmit<ExtArgs> | null
|
|
1228
|
-
/**
|
|
1229
|
-
* Choose, which related nodes to fetch as well
|
|
1230
|
-
*/
|
|
1231
|
-
include?: Prisma.ExpenseInclude<ExtArgs> | null
|
|
1232
|
-
/**
|
|
1233
|
-
* Filter, which Expense to fetch.
|
|
1234
|
-
*/
|
|
1235
|
-
where: Prisma.ExpenseWhereUniqueInput
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
/**
|
|
1239
|
-
* Expense findFirst
|
|
1240
|
-
*/
|
|
1241
|
-
export type ExpenseFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1242
|
-
/**
|
|
1243
|
-
* Select specific fields to fetch from the Expense
|
|
1244
|
-
*/
|
|
1245
|
-
select?: Prisma.ExpenseSelect<ExtArgs> | null
|
|
1246
|
-
/**
|
|
1247
|
-
* Omit specific fields from the Expense
|
|
1248
|
-
*/
|
|
1249
|
-
omit?: Prisma.ExpenseOmit<ExtArgs> | null
|
|
1250
|
-
/**
|
|
1251
|
-
* Choose, which related nodes to fetch as well
|
|
1252
|
-
*/
|
|
1253
|
-
include?: Prisma.ExpenseInclude<ExtArgs> | null
|
|
1254
|
-
/**
|
|
1255
|
-
* Filter, which Expense to fetch.
|
|
1256
|
-
*/
|
|
1257
|
-
where?: Prisma.ExpenseWhereInput
|
|
1258
|
-
/**
|
|
1259
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1260
|
-
*
|
|
1261
|
-
* Determine the order of Expenses to fetch.
|
|
1262
|
-
*/
|
|
1263
|
-
orderBy?: Prisma.ExpenseOrderByWithRelationInput | Prisma.ExpenseOrderByWithRelationInput[]
|
|
1264
|
-
/**
|
|
1265
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1266
|
-
*
|
|
1267
|
-
* Sets the position for searching for Expenses.
|
|
1268
|
-
*/
|
|
1269
|
-
cursor?: Prisma.ExpenseWhereUniqueInput
|
|
1270
|
-
/**
|
|
1271
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1272
|
-
*
|
|
1273
|
-
* Take `±n` Expenses from the position of the cursor.
|
|
1274
|
-
*/
|
|
1275
|
-
take?: number
|
|
1276
|
-
/**
|
|
1277
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1278
|
-
*
|
|
1279
|
-
* Skip the first `n` Expenses.
|
|
1280
|
-
*/
|
|
1281
|
-
skip?: number
|
|
1282
|
-
/**
|
|
1283
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1284
|
-
*
|
|
1285
|
-
* Filter by unique combinations of Expenses.
|
|
1286
|
-
*/
|
|
1287
|
-
distinct?: Prisma.ExpenseScalarFieldEnum | Prisma.ExpenseScalarFieldEnum[]
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
/**
|
|
1291
|
-
* Expense findFirstOrThrow
|
|
1292
|
-
*/
|
|
1293
|
-
export type ExpenseFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1294
|
-
/**
|
|
1295
|
-
* Select specific fields to fetch from the Expense
|
|
1296
|
-
*/
|
|
1297
|
-
select?: Prisma.ExpenseSelect<ExtArgs> | null
|
|
1298
|
-
/**
|
|
1299
|
-
* Omit specific fields from the Expense
|
|
1300
|
-
*/
|
|
1301
|
-
omit?: Prisma.ExpenseOmit<ExtArgs> | null
|
|
1302
|
-
/**
|
|
1303
|
-
* Choose, which related nodes to fetch as well
|
|
1304
|
-
*/
|
|
1305
|
-
include?: Prisma.ExpenseInclude<ExtArgs> | null
|
|
1306
|
-
/**
|
|
1307
|
-
* Filter, which Expense to fetch.
|
|
1308
|
-
*/
|
|
1309
|
-
where?: Prisma.ExpenseWhereInput
|
|
1310
|
-
/**
|
|
1311
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1312
|
-
*
|
|
1313
|
-
* Determine the order of Expenses to fetch.
|
|
1314
|
-
*/
|
|
1315
|
-
orderBy?: Prisma.ExpenseOrderByWithRelationInput | Prisma.ExpenseOrderByWithRelationInput[]
|
|
1316
|
-
/**
|
|
1317
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1318
|
-
*
|
|
1319
|
-
* Sets the position for searching for Expenses.
|
|
1320
|
-
*/
|
|
1321
|
-
cursor?: Prisma.ExpenseWhereUniqueInput
|
|
1322
|
-
/**
|
|
1323
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1324
|
-
*
|
|
1325
|
-
* Take `±n` Expenses from the position of the cursor.
|
|
1326
|
-
*/
|
|
1327
|
-
take?: number
|
|
1328
|
-
/**
|
|
1329
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1330
|
-
*
|
|
1331
|
-
* Skip the first `n` Expenses.
|
|
1332
|
-
*/
|
|
1333
|
-
skip?: number
|
|
1334
|
-
/**
|
|
1335
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1336
|
-
*
|
|
1337
|
-
* Filter by unique combinations of Expenses.
|
|
1338
|
-
*/
|
|
1339
|
-
distinct?: Prisma.ExpenseScalarFieldEnum | Prisma.ExpenseScalarFieldEnum[]
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
|
-
/**
|
|
1343
|
-
* Expense findMany
|
|
1344
|
-
*/
|
|
1345
|
-
export type ExpenseFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1346
|
-
/**
|
|
1347
|
-
* Select specific fields to fetch from the Expense
|
|
1348
|
-
*/
|
|
1349
|
-
select?: Prisma.ExpenseSelect<ExtArgs> | null
|
|
1350
|
-
/**
|
|
1351
|
-
* Omit specific fields from the Expense
|
|
1352
|
-
*/
|
|
1353
|
-
omit?: Prisma.ExpenseOmit<ExtArgs> | null
|
|
1354
|
-
/**
|
|
1355
|
-
* Choose, which related nodes to fetch as well
|
|
1356
|
-
*/
|
|
1357
|
-
include?: Prisma.ExpenseInclude<ExtArgs> | null
|
|
1358
|
-
/**
|
|
1359
|
-
* Filter, which Expenses to fetch.
|
|
1360
|
-
*/
|
|
1361
|
-
where?: Prisma.ExpenseWhereInput
|
|
1362
|
-
/**
|
|
1363
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1364
|
-
*
|
|
1365
|
-
* Determine the order of Expenses to fetch.
|
|
1366
|
-
*/
|
|
1367
|
-
orderBy?: Prisma.ExpenseOrderByWithRelationInput | Prisma.ExpenseOrderByWithRelationInput[]
|
|
1368
|
-
/**
|
|
1369
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1370
|
-
*
|
|
1371
|
-
* Sets the position for listing Expenses.
|
|
1372
|
-
*/
|
|
1373
|
-
cursor?: Prisma.ExpenseWhereUniqueInput
|
|
1374
|
-
/**
|
|
1375
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1376
|
-
*
|
|
1377
|
-
* Take `±n` Expenses from the position of the cursor.
|
|
1378
|
-
*/
|
|
1379
|
-
take?: number
|
|
1380
|
-
/**
|
|
1381
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1382
|
-
*
|
|
1383
|
-
* Skip the first `n` Expenses.
|
|
1384
|
-
*/
|
|
1385
|
-
skip?: number
|
|
1386
|
-
/**
|
|
1387
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1388
|
-
*
|
|
1389
|
-
* Filter by unique combinations of Expenses.
|
|
1390
|
-
*/
|
|
1391
|
-
distinct?: Prisma.ExpenseScalarFieldEnum | Prisma.ExpenseScalarFieldEnum[]
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
/**
|
|
1395
|
-
* Expense create
|
|
1396
|
-
*/
|
|
1397
|
-
export type ExpenseCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1398
|
-
/**
|
|
1399
|
-
* Select specific fields to fetch from the Expense
|
|
1400
|
-
*/
|
|
1401
|
-
select?: Prisma.ExpenseSelect<ExtArgs> | null
|
|
1402
|
-
/**
|
|
1403
|
-
* Omit specific fields from the Expense
|
|
1404
|
-
*/
|
|
1405
|
-
omit?: Prisma.ExpenseOmit<ExtArgs> | null
|
|
1406
|
-
/**
|
|
1407
|
-
* Choose, which related nodes to fetch as well
|
|
1408
|
-
*/
|
|
1409
|
-
include?: Prisma.ExpenseInclude<ExtArgs> | null
|
|
1410
|
-
/**
|
|
1411
|
-
* The data needed to create a Expense.
|
|
1412
|
-
*/
|
|
1413
|
-
data: Prisma.XOR<Prisma.ExpenseCreateInput, Prisma.ExpenseUncheckedCreateInput>
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
/**
|
|
1417
|
-
* Expense createMany
|
|
1418
|
-
*/
|
|
1419
|
-
export type ExpenseCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1420
|
-
/**
|
|
1421
|
-
* The data used to create many Expenses.
|
|
1422
|
-
*/
|
|
1423
|
-
data: Prisma.ExpenseCreateManyInput | Prisma.ExpenseCreateManyInput[]
|
|
1424
|
-
skipDuplicates?: boolean
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
/**
|
|
1428
|
-
* Expense createManyAndReturn
|
|
1429
|
-
*/
|
|
1430
|
-
export type ExpenseCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1431
|
-
/**
|
|
1432
|
-
* Select specific fields to fetch from the Expense
|
|
1433
|
-
*/
|
|
1434
|
-
select?: Prisma.ExpenseSelectCreateManyAndReturn<ExtArgs> | null
|
|
1435
|
-
/**
|
|
1436
|
-
* Omit specific fields from the Expense
|
|
1437
|
-
*/
|
|
1438
|
-
omit?: Prisma.ExpenseOmit<ExtArgs> | null
|
|
1439
|
-
/**
|
|
1440
|
-
* The data used to create many Expenses.
|
|
1441
|
-
*/
|
|
1442
|
-
data: Prisma.ExpenseCreateManyInput | Prisma.ExpenseCreateManyInput[]
|
|
1443
|
-
skipDuplicates?: boolean
|
|
1444
|
-
/**
|
|
1445
|
-
* Choose, which related nodes to fetch as well
|
|
1446
|
-
*/
|
|
1447
|
-
include?: Prisma.ExpenseIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
/**
|
|
1451
|
-
* Expense update
|
|
1452
|
-
*/
|
|
1453
|
-
export type ExpenseUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1454
|
-
/**
|
|
1455
|
-
* Select specific fields to fetch from the Expense
|
|
1456
|
-
*/
|
|
1457
|
-
select?: Prisma.ExpenseSelect<ExtArgs> | null
|
|
1458
|
-
/**
|
|
1459
|
-
* Omit specific fields from the Expense
|
|
1460
|
-
*/
|
|
1461
|
-
omit?: Prisma.ExpenseOmit<ExtArgs> | null
|
|
1462
|
-
/**
|
|
1463
|
-
* Choose, which related nodes to fetch as well
|
|
1464
|
-
*/
|
|
1465
|
-
include?: Prisma.ExpenseInclude<ExtArgs> | null
|
|
1466
|
-
/**
|
|
1467
|
-
* The data needed to update a Expense.
|
|
1468
|
-
*/
|
|
1469
|
-
data: Prisma.XOR<Prisma.ExpenseUpdateInput, Prisma.ExpenseUncheckedUpdateInput>
|
|
1470
|
-
/**
|
|
1471
|
-
* Choose, which Expense to update.
|
|
1472
|
-
*/
|
|
1473
|
-
where: Prisma.ExpenseWhereUniqueInput
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
/**
|
|
1477
|
-
* Expense updateMany
|
|
1478
|
-
*/
|
|
1479
|
-
export type ExpenseUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1480
|
-
/**
|
|
1481
|
-
* The data used to update Expenses.
|
|
1482
|
-
*/
|
|
1483
|
-
data: Prisma.XOR<Prisma.ExpenseUpdateManyMutationInput, Prisma.ExpenseUncheckedUpdateManyInput>
|
|
1484
|
-
/**
|
|
1485
|
-
* Filter which Expenses to update
|
|
1486
|
-
*/
|
|
1487
|
-
where?: Prisma.ExpenseWhereInput
|
|
1488
|
-
/**
|
|
1489
|
-
* Limit how many Expenses to update.
|
|
1490
|
-
*/
|
|
1491
|
-
limit?: number
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
/**
|
|
1495
|
-
* Expense updateManyAndReturn
|
|
1496
|
-
*/
|
|
1497
|
-
export type ExpenseUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1498
|
-
/**
|
|
1499
|
-
* Select specific fields to fetch from the Expense
|
|
1500
|
-
*/
|
|
1501
|
-
select?: Prisma.ExpenseSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1502
|
-
/**
|
|
1503
|
-
* Omit specific fields from the Expense
|
|
1504
|
-
*/
|
|
1505
|
-
omit?: Prisma.ExpenseOmit<ExtArgs> | null
|
|
1506
|
-
/**
|
|
1507
|
-
* The data used to update Expenses.
|
|
1508
|
-
*/
|
|
1509
|
-
data: Prisma.XOR<Prisma.ExpenseUpdateManyMutationInput, Prisma.ExpenseUncheckedUpdateManyInput>
|
|
1510
|
-
/**
|
|
1511
|
-
* Filter which Expenses to update
|
|
1512
|
-
*/
|
|
1513
|
-
where?: Prisma.ExpenseWhereInput
|
|
1514
|
-
/**
|
|
1515
|
-
* Limit how many Expenses to update.
|
|
1516
|
-
*/
|
|
1517
|
-
limit?: number
|
|
1518
|
-
/**
|
|
1519
|
-
* Choose, which related nodes to fetch as well
|
|
1520
|
-
*/
|
|
1521
|
-
include?: Prisma.ExpenseIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
/**
|
|
1525
|
-
* Expense upsert
|
|
1526
|
-
*/
|
|
1527
|
-
export type ExpenseUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1528
|
-
/**
|
|
1529
|
-
* Select specific fields to fetch from the Expense
|
|
1530
|
-
*/
|
|
1531
|
-
select?: Prisma.ExpenseSelect<ExtArgs> | null
|
|
1532
|
-
/**
|
|
1533
|
-
* Omit specific fields from the Expense
|
|
1534
|
-
*/
|
|
1535
|
-
omit?: Prisma.ExpenseOmit<ExtArgs> | null
|
|
1536
|
-
/**
|
|
1537
|
-
* Choose, which related nodes to fetch as well
|
|
1538
|
-
*/
|
|
1539
|
-
include?: Prisma.ExpenseInclude<ExtArgs> | null
|
|
1540
|
-
/**
|
|
1541
|
-
* The filter to search for the Expense to update in case it exists.
|
|
1542
|
-
*/
|
|
1543
|
-
where: Prisma.ExpenseWhereUniqueInput
|
|
1544
|
-
/**
|
|
1545
|
-
* In case the Expense found by the `where` argument doesn't exist, create a new Expense with this data.
|
|
1546
|
-
*/
|
|
1547
|
-
create: Prisma.XOR<Prisma.ExpenseCreateInput, Prisma.ExpenseUncheckedCreateInput>
|
|
1548
|
-
/**
|
|
1549
|
-
* In case the Expense was found with the provided `where` argument, update it with this data.
|
|
1550
|
-
*/
|
|
1551
|
-
update: Prisma.XOR<Prisma.ExpenseUpdateInput, Prisma.ExpenseUncheckedUpdateInput>
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
|
-
/**
|
|
1555
|
-
* Expense delete
|
|
1556
|
-
*/
|
|
1557
|
-
export type ExpenseDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1558
|
-
/**
|
|
1559
|
-
* Select specific fields to fetch from the Expense
|
|
1560
|
-
*/
|
|
1561
|
-
select?: Prisma.ExpenseSelect<ExtArgs> | null
|
|
1562
|
-
/**
|
|
1563
|
-
* Omit specific fields from the Expense
|
|
1564
|
-
*/
|
|
1565
|
-
omit?: Prisma.ExpenseOmit<ExtArgs> | null
|
|
1566
|
-
/**
|
|
1567
|
-
* Choose, which related nodes to fetch as well
|
|
1568
|
-
*/
|
|
1569
|
-
include?: Prisma.ExpenseInclude<ExtArgs> | null
|
|
1570
|
-
/**
|
|
1571
|
-
* Filter which Expense to delete.
|
|
1572
|
-
*/
|
|
1573
|
-
where: Prisma.ExpenseWhereUniqueInput
|
|
1574
|
-
}
|
|
1575
|
-
|
|
1576
|
-
/**
|
|
1577
|
-
* Expense deleteMany
|
|
1578
|
-
*/
|
|
1579
|
-
export type ExpenseDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1580
|
-
/**
|
|
1581
|
-
* Filter which Expenses to delete
|
|
1582
|
-
*/
|
|
1583
|
-
where?: Prisma.ExpenseWhereInput
|
|
1584
|
-
/**
|
|
1585
|
-
* Limit how many Expenses to delete.
|
|
1586
|
-
*/
|
|
1587
|
-
limit?: number
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
/**
|
|
1591
|
-
* Expense.category_budget
|
|
1592
|
-
*/
|
|
1593
|
-
export type Expense$category_budgetArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1594
|
-
/**
|
|
1595
|
-
* Select specific fields to fetch from the CategoryBudget
|
|
1596
|
-
*/
|
|
1597
|
-
select?: Prisma.CategoryBudgetSelect<ExtArgs> | null
|
|
1598
|
-
/**
|
|
1599
|
-
* Omit specific fields from the CategoryBudget
|
|
1600
|
-
*/
|
|
1601
|
-
omit?: Prisma.CategoryBudgetOmit<ExtArgs> | null
|
|
1602
|
-
/**
|
|
1603
|
-
* Choose, which related nodes to fetch as well
|
|
1604
|
-
*/
|
|
1605
|
-
include?: Prisma.CategoryBudgetInclude<ExtArgs> | null
|
|
1606
|
-
where?: Prisma.CategoryBudgetWhereInput
|
|
1607
|
-
}
|
|
1608
|
-
|
|
1609
|
-
/**
|
|
1610
|
-
* Expense without action
|
|
1611
|
-
*/
|
|
1612
|
-
export type ExpenseDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1613
|
-
/**
|
|
1614
|
-
* Select specific fields to fetch from the Expense
|
|
1615
|
-
*/
|
|
1616
|
-
select?: Prisma.ExpenseSelect<ExtArgs> | null
|
|
1617
|
-
/**
|
|
1618
|
-
* Omit specific fields from the Expense
|
|
1619
|
-
*/
|
|
1620
|
-
omit?: Prisma.ExpenseOmit<ExtArgs> | null
|
|
1621
|
-
/**
|
|
1622
|
-
* Choose, which related nodes to fetch as well
|
|
1623
|
-
*/
|
|
1624
|
-
include?: Prisma.ExpenseInclude<ExtArgs> | null
|
|
1625
|
-
}
|