procbay-schema 1.0.171 → 1.0.174

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.
Files changed (148) hide show
  1. package/package.json +13 -22
  2. package/prisma/schema.prisma +4 -5
  3. package/scripts/sync-schemas.js +1 -5
  4. package/src/create-prisma-client.js +9 -49
  5. package/src/prisma/client.d.ts +1 -0
  6. package/src/prisma/client.js +4 -0
  7. package/src/prisma/default.d.ts +1 -0
  8. package/src/prisma/default.js +4 -0
  9. package/src/prisma/edge.d.ts +1 -0
  10. package/src/prisma/edge.js +2900 -0
  11. package/src/{generated/prisma/internal/prismaNamespaceBrowser.ts → prisma/index-browser.js} +980 -739
  12. package/src/prisma/index.d.ts +286683 -0
  13. package/src/prisma/index.js +2929 -2
  14. package/src/prisma/libquery_engine-darwin.dylib.node +0 -0
  15. package/src/prisma/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  16. package/src/prisma/package.json +140 -0
  17. package/src/prisma/query_engine-windows.dll.node +0 -0
  18. package/src/prisma/runtime/edge-esm.js +34 -0
  19. package/src/prisma/runtime/edge.js +34 -0
  20. package/src/prisma/runtime/index-browser.d.ts +370 -0
  21. package/src/prisma/runtime/index-browser.js +16 -0
  22. package/src/prisma/runtime/library.d.ts +3647 -0
  23. package/src/prisma/runtime/library.js +146 -0
  24. package/src/prisma/runtime/react-native.js +83 -0
  25. package/src/prisma/runtime/wasm.js +35 -0
  26. package/src/prisma/schema.prisma +3820 -0
  27. package/src/prisma/wasm.d.ts +1 -0
  28. package/src/prisma/wasm.js +2862 -0
  29. package/prisma.config.js +0 -19
  30. package/src/generated/prisma/browser.ts +0 -574
  31. package/src/generated/prisma/client.bundle.mjs +0 -6733
  32. package/src/generated/prisma/client.ts +0 -598
  33. package/src/generated/prisma/commonInputTypes.ts +0 -2911
  34. package/src/generated/prisma/enums.ts +0 -730
  35. package/src/generated/prisma/internal/class.ts +0 -1304
  36. package/src/generated/prisma/internal/prismaNamespace.ts +0 -12506
  37. package/src/generated/prisma/models/ActivityLog.ts +0 -1590
  38. package/src/generated/prisma/models/AdminAlert.ts +0 -1547
  39. package/src/generated/prisma/models/ApprovalCondition.ts +0 -2085
  40. package/src/generated/prisma/models/ApprovalDelegation.ts +0 -3057
  41. package/src/generated/prisma/models/ApprovalDelegationDelegate.ts +0 -1784
  42. package/src/generated/prisma/models/ApprovalHierarchy.ts +0 -3083
  43. package/src/generated/prisma/models/ApprovalJourney.ts +0 -2867
  44. package/src/generated/prisma/models/ApprovalLevel.ts +0 -2335
  45. package/src/generated/prisma/models/ApprovalLevelEscalation.ts +0 -2128
  46. package/src/generated/prisma/models/ApprovalLevelEscalationUser.ts +0 -1863
  47. package/src/generated/prisma/models/ApprovalLevelUser.ts +0 -1863
  48. package/src/generated/prisma/models/ApprovalManagement.ts +0 -1728
  49. package/src/generated/prisma/models/Attribute.ts +0 -2075
  50. package/src/generated/prisma/models/AttributeValue.ts +0 -1882
  51. package/src/generated/prisma/models/Bid.ts +0 -2719
  52. package/src/generated/prisma/models/BidLog.ts +0 -3560
  53. package/src/generated/prisma/models/BlanketPurchaseOrder.ts +0 -3527
  54. package/src/generated/prisma/models/BlanketPurchaseOrderItem.ts +0 -2532
  55. package/src/generated/prisma/models/BlanketPurchaseOrderRelease.ts +0 -2713
  56. package/src/generated/prisma/models/BoqEventItem.ts +0 -4056
  57. package/src/generated/prisma/models/Budget.ts +0 -1954
  58. package/src/generated/prisma/models/BudgetHold.ts +0 -1904
  59. package/src/generated/prisma/models/BusinessEntity.ts +0 -3901
  60. package/src/generated/prisma/models/BusinessEntityDepartment.ts +0 -2032
  61. package/src/generated/prisma/models/BusinessEntityLocation.ts +0 -1567
  62. package/src/generated/prisma/models/Catalogue.ts +0 -2081
  63. package/src/generated/prisma/models/CatalogueCart.ts +0 -2305
  64. package/src/generated/prisma/models/CatalogueVendor.ts +0 -2252
  65. package/src/generated/prisma/models/Category.ts +0 -3091
  66. package/src/generated/prisma/models/CategoryBudget.ts +0 -2690
  67. package/src/generated/prisma/models/City.ts +0 -2180
  68. package/src/generated/prisma/models/Cms.ts +0 -1492
  69. package/src/generated/prisma/models/ContactUs.ts +0 -1654
  70. package/src/generated/prisma/models/Conversation.ts +0 -2389
  71. package/src/generated/prisma/models/ConversationParticipant.ts +0 -1833
  72. package/src/generated/prisma/models/CounterOffer.ts +0 -2156
  73. package/src/generated/prisma/models/Country.ts +0 -3394
  74. package/src/generated/prisma/models/Currency.ts +0 -1642
  75. package/src/generated/prisma/models/CustomerNotification.ts +0 -1653
  76. package/src/generated/prisma/models/Department.ts +0 -2372
  77. package/src/generated/prisma/models/DepartmentBudget.ts +0 -2494
  78. package/src/generated/prisma/models/DynamicForm.ts +0 -2021
  79. package/src/generated/prisma/models/EmailTemplate.ts +0 -1516
  80. package/src/generated/prisma/models/Event.ts +0 -6819
  81. package/src/generated/prisma/models/EventConfigurations.ts +0 -1736
  82. package/src/generated/prisma/models/EventCriteria.ts +0 -2134
  83. package/src/generated/prisma/models/EventItems.ts +0 -2821
  84. package/src/generated/prisma/models/EventRfiForm.ts +0 -2020
  85. package/src/generated/prisma/models/EventRfiFormLog.ts +0 -2608
  86. package/src/generated/prisma/models/EventStrategies.ts +0 -1857
  87. package/src/generated/prisma/models/EventVendorCriteria.ts +0 -2186
  88. package/src/generated/prisma/models/EventVendors.ts +0 -3446
  89. package/src/generated/prisma/models/Expense.ts +0 -1625
  90. package/src/generated/prisma/models/ExportLog.ts +0 -1822
  91. package/src/generated/prisma/models/Faq.ts +0 -1753
  92. package/src/generated/prisma/models/FaqCategory.ts +0 -1610
  93. package/src/generated/prisma/models/FiscalYear.ts +0 -1460
  94. package/src/generated/prisma/models/FormMaster.ts +0 -1831
  95. package/src/generated/prisma/models/GRN.ts +0 -3354
  96. package/src/generated/prisma/models/GRNItem.ts +0 -2119
  97. package/src/generated/prisma/models/Industry.ts +0 -1642
  98. package/src/generated/prisma/models/Invoice.ts +0 -2949
  99. package/src/generated/prisma/models/InvoiceItem.ts +0 -2397
  100. package/src/generated/prisma/models/Item.ts +0 -10644
  101. package/src/generated/prisma/models/ItemAttribute.ts +0 -1750
  102. package/src/generated/prisma/models/ItemAttributeValue.ts +0 -1802
  103. package/src/generated/prisma/models/ItemDocument.ts +0 -1590
  104. package/src/generated/prisma/models/Location.ts +0 -2711
  105. package/src/generated/prisma/models/Message.ts +0 -2744
  106. package/src/generated/prisma/models/MessageRecipient.ts +0 -1759
  107. package/src/generated/prisma/models/Module.ts +0 -1630
  108. package/src/generated/prisma/models/Permission.ts +0 -1640
  109. package/src/generated/prisma/models/PurchaseIntake.ts +0 -4672
  110. package/src/generated/prisma/models/PurchaseIntakeItem.ts +0 -2366
  111. package/src/generated/prisma/models/PurchaseOrder.ts +0 -4012
  112. package/src/generated/prisma/models/PurchaseOrderActivityLog.ts +0 -1720
  113. package/src/generated/prisma/models/PurchaseOrderItem.ts +0 -2623
  114. package/src/generated/prisma/models/Quotation.ts +0 -3207
  115. package/src/generated/prisma/models/QuotationLog.ts +0 -3239
  116. package/src/generated/prisma/models/Region.ts +0 -1746
  117. package/src/generated/prisma/models/RequestedCatalogue.ts +0 -1618
  118. package/src/generated/prisma/models/RequestedCatalogueDetails.ts +0 -2252
  119. package/src/generated/prisma/models/Role.ts +0 -1907
  120. package/src/generated/prisma/models/RolePermission.ts +0 -1737
  121. package/src/generated/prisma/models/SendBack.ts +0 -1830
  122. package/src/generated/prisma/models/SerialNumberConfiguration.ts +0 -1254
  123. package/src/generated/prisma/models/SmtpConfig.ts +0 -1522
  124. package/src/generated/prisma/models/State.ts +0 -2174
  125. package/src/generated/prisma/models/Strategies.ts +0 -1791
  126. package/src/generated/prisma/models/SubModule.ts +0 -1450
  127. package/src/generated/prisma/models/Subregion.ts +0 -1870
  128. package/src/generated/prisma/models/SupportCategory.ts +0 -1712
  129. package/src/generated/prisma/models/SupportTicket.ts +0 -2478
  130. package/src/generated/prisma/models/SupportingDocument.ts +0 -2283
  131. package/src/generated/prisma/models/Template.ts +0 -2429
  132. package/src/generated/prisma/models/TemplateField.ts +0 -1916
  133. package/src/generated/prisma/models/TemplateStrategies.ts +0 -1614
  134. package/src/generated/prisma/models/TenantConfiguration.ts +0 -1694
  135. package/src/generated/prisma/models/TicketAssignment.ts +0 -1742
  136. package/src/generated/prisma/models/TicketHistory.ts +0 -1789
  137. package/src/generated/prisma/models/TicketReply.ts +0 -1640
  138. package/src/generated/prisma/models/Uom.ts +0 -1752
  139. package/src/generated/prisma/models/UomCategory.ts +0 -1558
  140. package/src/generated/prisma/models/UploadLog.ts +0 -1731
  141. package/src/generated/prisma/models/User.ts +0 -19397
  142. package/src/generated/prisma/models/UserDepartmentEntity.ts +0 -2099
  143. package/src/generated/prisma/models/UserEventConfiguration.ts +0 -1370
  144. package/src/generated/prisma/models/UserLoginActivity.ts +0 -1693
  145. package/src/generated/prisma/models/UserRole.ts +0 -1696
  146. package/src/generated/prisma/models/UserVendorSocketTokens.ts +0 -1450
  147. package/src/generated/prisma/models/VendorReference.ts +0 -1707
  148. package/src/generated/prisma/models.ts +0 -122
@@ -1,1954 +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 `Budget` 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 Budget
17
- *
18
- */
19
- export type BudgetModel = runtime.Types.Result.DefaultSelection<Prisma.$BudgetPayload>
20
-
21
- export type AggregateBudget = {
22
- _count: BudgetCountAggregateOutputType | null
23
- _avg: BudgetAvgAggregateOutputType | null
24
- _sum: BudgetSumAggregateOutputType | null
25
- _min: BudgetMinAggregateOutputType | null
26
- _max: BudgetMaxAggregateOutputType | null
27
- }
28
-
29
- export type BudgetAvgAggregateOutputType = {
30
- id: number | null
31
- initial_total_annual_budget: runtime.Decimal | null
32
- total_annual_budget: runtime.Decimal | null
33
- created_by: number | null
34
- updated_by: number | null
35
- deleted_by: number | null
36
- }
37
-
38
- export type BudgetSumAggregateOutputType = {
39
- id: number | null
40
- initial_total_annual_budget: runtime.Decimal | null
41
- total_annual_budget: runtime.Decimal | null
42
- created_by: number | null
43
- updated_by: number | null
44
- deleted_by: number | null
45
- }
46
-
47
- export type BudgetMinAggregateOutputType = {
48
- id: number | null
49
- uuid: string | null
50
- code: string | null
51
- company_name: string | null
52
- fiscal_year: string | null
53
- currency: string | null
54
- initial_total_annual_budget: runtime.Decimal | null
55
- total_annual_budget: runtime.Decimal | null
56
- description: string | null
57
- status: $Enums.BudgetStatus | null
58
- created_by: number | null
59
- created_at: Date | null
60
- updated_by: number | null
61
- updated_at: Date | null
62
- is_deleted: boolean | null
63
- deleted_at: Date | null
64
- deleted_by: number | null
65
- }
66
-
67
- export type BudgetMaxAggregateOutputType = {
68
- id: number | null
69
- uuid: string | null
70
- code: string | null
71
- company_name: string | null
72
- fiscal_year: string | null
73
- currency: string | null
74
- initial_total_annual_budget: runtime.Decimal | null
75
- total_annual_budget: runtime.Decimal | null
76
- description: string | null
77
- status: $Enums.BudgetStatus | null
78
- created_by: number | null
79
- created_at: Date | null
80
- updated_by: number | null
81
- updated_at: Date | null
82
- is_deleted: boolean | null
83
- deleted_at: Date | null
84
- deleted_by: number | null
85
- }
86
-
87
- export type BudgetCountAggregateOutputType = {
88
- id: number
89
- uuid: number
90
- code: number
91
- company_name: number
92
- fiscal_year: number
93
- currency: number
94
- initial_total_annual_budget: number
95
- total_annual_budget: number
96
- description: number
97
- status: number
98
- created_by: number
99
- created_at: number
100
- updated_by: number
101
- updated_at: number
102
- is_deleted: number
103
- deleted_at: number
104
- deleted_by: number
105
- _all: number
106
- }
107
-
108
-
109
- export type BudgetAvgAggregateInputType = {
110
- id?: true
111
- initial_total_annual_budget?: true
112
- total_annual_budget?: true
113
- created_by?: true
114
- updated_by?: true
115
- deleted_by?: true
116
- }
117
-
118
- export type BudgetSumAggregateInputType = {
119
- id?: true
120
- initial_total_annual_budget?: true
121
- total_annual_budget?: true
122
- created_by?: true
123
- updated_by?: true
124
- deleted_by?: true
125
- }
126
-
127
- export type BudgetMinAggregateInputType = {
128
- id?: true
129
- uuid?: true
130
- code?: true
131
- company_name?: true
132
- fiscal_year?: true
133
- currency?: true
134
- initial_total_annual_budget?: true
135
- total_annual_budget?: true
136
- description?: true
137
- status?: true
138
- created_by?: true
139
- created_at?: true
140
- updated_by?: true
141
- updated_at?: true
142
- is_deleted?: true
143
- deleted_at?: true
144
- deleted_by?: true
145
- }
146
-
147
- export type BudgetMaxAggregateInputType = {
148
- id?: true
149
- uuid?: true
150
- code?: true
151
- company_name?: true
152
- fiscal_year?: true
153
- currency?: true
154
- initial_total_annual_budget?: true
155
- total_annual_budget?: true
156
- description?: true
157
- status?: true
158
- created_by?: true
159
- created_at?: true
160
- updated_by?: true
161
- updated_at?: true
162
- is_deleted?: true
163
- deleted_at?: true
164
- deleted_by?: true
165
- }
166
-
167
- export type BudgetCountAggregateInputType = {
168
- id?: true
169
- uuid?: true
170
- code?: true
171
- company_name?: true
172
- fiscal_year?: true
173
- currency?: true
174
- initial_total_annual_budget?: true
175
- total_annual_budget?: true
176
- description?: true
177
- status?: true
178
- created_by?: true
179
- created_at?: true
180
- updated_by?: true
181
- updated_at?: true
182
- is_deleted?: true
183
- deleted_at?: true
184
- deleted_by?: true
185
- _all?: true
186
- }
187
-
188
- export type BudgetAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
189
- /**
190
- * Filter which Budget to aggregate.
191
- */
192
- where?: Prisma.BudgetWhereInput
193
- /**
194
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
195
- *
196
- * Determine the order of Budgets to fetch.
197
- */
198
- orderBy?: Prisma.BudgetOrderByWithRelationInput | Prisma.BudgetOrderByWithRelationInput[]
199
- /**
200
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
201
- *
202
- * Sets the start position
203
- */
204
- cursor?: Prisma.BudgetWhereUniqueInput
205
- /**
206
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
207
- *
208
- * Take `±n` Budgets from the position of the cursor.
209
- */
210
- take?: number
211
- /**
212
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
213
- *
214
- * Skip the first `n` Budgets.
215
- */
216
- skip?: number
217
- /**
218
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
219
- *
220
- * Count returned Budgets
221
- **/
222
- _count?: true | BudgetCountAggregateInputType
223
- /**
224
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
225
- *
226
- * Select which fields to average
227
- **/
228
- _avg?: BudgetAvgAggregateInputType
229
- /**
230
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
231
- *
232
- * Select which fields to sum
233
- **/
234
- _sum?: BudgetSumAggregateInputType
235
- /**
236
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
237
- *
238
- * Select which fields to find the minimum value
239
- **/
240
- _min?: BudgetMinAggregateInputType
241
- /**
242
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
243
- *
244
- * Select which fields to find the maximum value
245
- **/
246
- _max?: BudgetMaxAggregateInputType
247
- }
248
-
249
- export type GetBudgetAggregateType<T extends BudgetAggregateArgs> = {
250
- [P in keyof T & keyof AggregateBudget]: P extends '_count' | 'count'
251
- ? T[P] extends true
252
- ? number
253
- : Prisma.GetScalarType<T[P], AggregateBudget[P]>
254
- : Prisma.GetScalarType<T[P], AggregateBudget[P]>
255
- }
256
-
257
-
258
-
259
-
260
- export type BudgetGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
261
- where?: Prisma.BudgetWhereInput
262
- orderBy?: Prisma.BudgetOrderByWithAggregationInput | Prisma.BudgetOrderByWithAggregationInput[]
263
- by: Prisma.BudgetScalarFieldEnum[] | Prisma.BudgetScalarFieldEnum
264
- having?: Prisma.BudgetScalarWhereWithAggregatesInput
265
- take?: number
266
- skip?: number
267
- _count?: BudgetCountAggregateInputType | true
268
- _avg?: BudgetAvgAggregateInputType
269
- _sum?: BudgetSumAggregateInputType
270
- _min?: BudgetMinAggregateInputType
271
- _max?: BudgetMaxAggregateInputType
272
- }
273
-
274
- export type BudgetGroupByOutputType = {
275
- id: number
276
- uuid: string | null
277
- code: string | null
278
- company_name: string | null
279
- fiscal_year: string | null
280
- currency: string | null
281
- initial_total_annual_budget: runtime.Decimal | null
282
- total_annual_budget: runtime.Decimal | null
283
- description: string | null
284
- status: $Enums.BudgetStatus
285
- created_by: number | null
286
- created_at: Date
287
- updated_by: number | null
288
- updated_at: Date
289
- is_deleted: boolean
290
- deleted_at: Date | null
291
- deleted_by: number | null
292
- _count: BudgetCountAggregateOutputType | null
293
- _avg: BudgetAvgAggregateOutputType | null
294
- _sum: BudgetSumAggregateOutputType | null
295
- _min: BudgetMinAggregateOutputType | null
296
- _max: BudgetMaxAggregateOutputType | null
297
- }
298
-
299
- export type GetBudgetGroupByPayload<T extends BudgetGroupByArgs> = Prisma.PrismaPromise<
300
- Array<
301
- Prisma.PickEnumerable<BudgetGroupByOutputType, T['by']> &
302
- {
303
- [P in ((keyof T) & (keyof BudgetGroupByOutputType))]: P extends '_count'
304
- ? T[P] extends boolean
305
- ? number
306
- : Prisma.GetScalarType<T[P], BudgetGroupByOutputType[P]>
307
- : Prisma.GetScalarType<T[P], BudgetGroupByOutputType[P]>
308
- }
309
- >
310
- >
311
-
312
-
313
-
314
- export type BudgetWhereInput = {
315
- AND?: Prisma.BudgetWhereInput | Prisma.BudgetWhereInput[]
316
- OR?: Prisma.BudgetWhereInput[]
317
- NOT?: Prisma.BudgetWhereInput | Prisma.BudgetWhereInput[]
318
- id?: Prisma.IntFilter<"Budget"> | number
319
- uuid?: Prisma.StringNullableFilter<"Budget"> | string | null
320
- code?: Prisma.StringNullableFilter<"Budget"> | string | null
321
- company_name?: Prisma.StringNullableFilter<"Budget"> | string | null
322
- fiscal_year?: Prisma.StringNullableFilter<"Budget"> | string | null
323
- currency?: Prisma.StringNullableFilter<"Budget"> | string | null
324
- initial_total_annual_budget?: Prisma.DecimalNullableFilter<"Budget"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
325
- total_annual_budget?: Prisma.DecimalNullableFilter<"Budget"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
326
- description?: Prisma.StringNullableFilter<"Budget"> | string | null
327
- status?: Prisma.EnumBudgetStatusFilter<"Budget"> | $Enums.BudgetStatus
328
- created_by?: Prisma.IntNullableFilter<"Budget"> | number | null
329
- created_at?: Prisma.DateTimeFilter<"Budget"> | Date | string
330
- updated_by?: Prisma.IntNullableFilter<"Budget"> | number | null
331
- updated_at?: Prisma.DateTimeFilter<"Budget"> | Date | string
332
- is_deleted?: Prisma.BoolFilter<"Budget"> | boolean
333
- deleted_at?: Prisma.DateTimeNullableFilter<"Budget"> | Date | string | null
334
- deleted_by?: Prisma.IntNullableFilter<"Budget"> | number | null
335
- department_budgets?: Prisma.DepartmentBudgetListRelationFilter
336
- supporting_documents?: Prisma.SupportingDocumentListRelationFilter
337
- }
338
-
339
- export type BudgetOrderByWithRelationInput = {
340
- id?: Prisma.SortOrder
341
- uuid?: Prisma.SortOrderInput | Prisma.SortOrder
342
- code?: Prisma.SortOrderInput | Prisma.SortOrder
343
- company_name?: Prisma.SortOrderInput | Prisma.SortOrder
344
- fiscal_year?: Prisma.SortOrderInput | Prisma.SortOrder
345
- currency?: Prisma.SortOrderInput | Prisma.SortOrder
346
- initial_total_annual_budget?: Prisma.SortOrderInput | Prisma.SortOrder
347
- total_annual_budget?: Prisma.SortOrderInput | Prisma.SortOrder
348
- description?: Prisma.SortOrderInput | Prisma.SortOrder
349
- status?: Prisma.SortOrder
350
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
351
- created_at?: Prisma.SortOrder
352
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
353
- updated_at?: Prisma.SortOrder
354
- is_deleted?: Prisma.SortOrder
355
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
356
- deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
357
- department_budgets?: Prisma.DepartmentBudgetOrderByRelationAggregateInput
358
- supporting_documents?: Prisma.SupportingDocumentOrderByRelationAggregateInput
359
- }
360
-
361
- export type BudgetWhereUniqueInput = Prisma.AtLeast<{
362
- id?: number
363
- uuid?: string
364
- code?: string
365
- unique_budget_code_fiscal_year?: Prisma.BudgetUnique_budget_code_fiscal_yearCompoundUniqueInput
366
- AND?: Prisma.BudgetWhereInput | Prisma.BudgetWhereInput[]
367
- OR?: Prisma.BudgetWhereInput[]
368
- NOT?: Prisma.BudgetWhereInput | Prisma.BudgetWhereInput[]
369
- company_name?: Prisma.StringNullableFilter<"Budget"> | string | null
370
- fiscal_year?: Prisma.StringNullableFilter<"Budget"> | string | null
371
- currency?: Prisma.StringNullableFilter<"Budget"> | string | null
372
- initial_total_annual_budget?: Prisma.DecimalNullableFilter<"Budget"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
373
- total_annual_budget?: Prisma.DecimalNullableFilter<"Budget"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
374
- description?: Prisma.StringNullableFilter<"Budget"> | string | null
375
- status?: Prisma.EnumBudgetStatusFilter<"Budget"> | $Enums.BudgetStatus
376
- created_by?: Prisma.IntNullableFilter<"Budget"> | number | null
377
- created_at?: Prisma.DateTimeFilter<"Budget"> | Date | string
378
- updated_by?: Prisma.IntNullableFilter<"Budget"> | number | null
379
- updated_at?: Prisma.DateTimeFilter<"Budget"> | Date | string
380
- is_deleted?: Prisma.BoolFilter<"Budget"> | boolean
381
- deleted_at?: Prisma.DateTimeNullableFilter<"Budget"> | Date | string | null
382
- deleted_by?: Prisma.IntNullableFilter<"Budget"> | number | null
383
- department_budgets?: Prisma.DepartmentBudgetListRelationFilter
384
- supporting_documents?: Prisma.SupportingDocumentListRelationFilter
385
- }, "id" | "uuid" | "code" | "unique_budget_code_fiscal_year">
386
-
387
- export type BudgetOrderByWithAggregationInput = {
388
- id?: Prisma.SortOrder
389
- uuid?: Prisma.SortOrderInput | Prisma.SortOrder
390
- code?: Prisma.SortOrderInput | Prisma.SortOrder
391
- company_name?: Prisma.SortOrderInput | Prisma.SortOrder
392
- fiscal_year?: Prisma.SortOrderInput | Prisma.SortOrder
393
- currency?: Prisma.SortOrderInput | Prisma.SortOrder
394
- initial_total_annual_budget?: Prisma.SortOrderInput | Prisma.SortOrder
395
- total_annual_budget?: Prisma.SortOrderInput | Prisma.SortOrder
396
- description?: Prisma.SortOrderInput | Prisma.SortOrder
397
- status?: Prisma.SortOrder
398
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
399
- created_at?: Prisma.SortOrder
400
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
401
- updated_at?: Prisma.SortOrder
402
- is_deleted?: Prisma.SortOrder
403
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
404
- deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
405
- _count?: Prisma.BudgetCountOrderByAggregateInput
406
- _avg?: Prisma.BudgetAvgOrderByAggregateInput
407
- _max?: Prisma.BudgetMaxOrderByAggregateInput
408
- _min?: Prisma.BudgetMinOrderByAggregateInput
409
- _sum?: Prisma.BudgetSumOrderByAggregateInput
410
- }
411
-
412
- export type BudgetScalarWhereWithAggregatesInput = {
413
- AND?: Prisma.BudgetScalarWhereWithAggregatesInput | Prisma.BudgetScalarWhereWithAggregatesInput[]
414
- OR?: Prisma.BudgetScalarWhereWithAggregatesInput[]
415
- NOT?: Prisma.BudgetScalarWhereWithAggregatesInput | Prisma.BudgetScalarWhereWithAggregatesInput[]
416
- id?: Prisma.IntWithAggregatesFilter<"Budget"> | number
417
- uuid?: Prisma.StringNullableWithAggregatesFilter<"Budget"> | string | null
418
- code?: Prisma.StringNullableWithAggregatesFilter<"Budget"> | string | null
419
- company_name?: Prisma.StringNullableWithAggregatesFilter<"Budget"> | string | null
420
- fiscal_year?: Prisma.StringNullableWithAggregatesFilter<"Budget"> | string | null
421
- currency?: Prisma.StringNullableWithAggregatesFilter<"Budget"> | string | null
422
- initial_total_annual_budget?: Prisma.DecimalNullableWithAggregatesFilter<"Budget"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
423
- total_annual_budget?: Prisma.DecimalNullableWithAggregatesFilter<"Budget"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
424
- description?: Prisma.StringNullableWithAggregatesFilter<"Budget"> | string | null
425
- status?: Prisma.EnumBudgetStatusWithAggregatesFilter<"Budget"> | $Enums.BudgetStatus
426
- created_by?: Prisma.IntNullableWithAggregatesFilter<"Budget"> | number | null
427
- created_at?: Prisma.DateTimeWithAggregatesFilter<"Budget"> | Date | string
428
- updated_by?: Prisma.IntNullableWithAggregatesFilter<"Budget"> | number | null
429
- updated_at?: Prisma.DateTimeWithAggregatesFilter<"Budget"> | Date | string
430
- is_deleted?: Prisma.BoolWithAggregatesFilter<"Budget"> | boolean
431
- deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Budget"> | Date | string | null
432
- deleted_by?: Prisma.IntNullableWithAggregatesFilter<"Budget"> | number | null
433
- }
434
-
435
- export type BudgetCreateInput = {
436
- uuid?: string | null
437
- code?: string | null
438
- company_name?: string | null
439
- fiscal_year?: string | null
440
- currency?: string | null
441
- initial_total_annual_budget?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
442
- total_annual_budget?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
443
- description?: string | null
444
- status?: $Enums.BudgetStatus
445
- created_by?: number | null
446
- created_at?: Date | string
447
- updated_by?: number | null
448
- updated_at?: Date | string
449
- is_deleted?: boolean
450
- deleted_at?: Date | string | null
451
- deleted_by?: number | null
452
- department_budgets?: Prisma.DepartmentBudgetCreateNestedManyWithoutBudgetInput
453
- supporting_documents?: Prisma.SupportingDocumentCreateNestedManyWithoutBudgetInput
454
- }
455
-
456
- export type BudgetUncheckedCreateInput = {
457
- id?: number
458
- uuid?: string | null
459
- code?: string | null
460
- company_name?: string | null
461
- fiscal_year?: string | null
462
- currency?: string | null
463
- initial_total_annual_budget?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
464
- total_annual_budget?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
465
- description?: string | null
466
- status?: $Enums.BudgetStatus
467
- created_by?: number | null
468
- created_at?: Date | string
469
- updated_by?: number | null
470
- updated_at?: Date | string
471
- is_deleted?: boolean
472
- deleted_at?: Date | string | null
473
- deleted_by?: number | null
474
- department_budgets?: Prisma.DepartmentBudgetUncheckedCreateNestedManyWithoutBudgetInput
475
- supporting_documents?: Prisma.SupportingDocumentUncheckedCreateNestedManyWithoutBudgetInput
476
- }
477
-
478
- export type BudgetUpdateInput = {
479
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
480
- code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
481
- company_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
482
- fiscal_year?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
483
- currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
484
- initial_total_annual_budget?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
485
- total_annual_budget?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
486
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
487
- status?: Prisma.EnumBudgetStatusFieldUpdateOperationsInput | $Enums.BudgetStatus
488
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
489
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
490
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
491
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
492
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
493
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
494
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
495
- department_budgets?: Prisma.DepartmentBudgetUpdateManyWithoutBudgetNestedInput
496
- supporting_documents?: Prisma.SupportingDocumentUpdateManyWithoutBudgetNestedInput
497
- }
498
-
499
- export type BudgetUncheckedUpdateInput = {
500
- id?: Prisma.IntFieldUpdateOperationsInput | number
501
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
502
- code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
503
- company_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
504
- fiscal_year?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
505
- currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
506
- initial_total_annual_budget?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
507
- total_annual_budget?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
508
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
509
- status?: Prisma.EnumBudgetStatusFieldUpdateOperationsInput | $Enums.BudgetStatus
510
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
511
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
512
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
513
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
514
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
515
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
516
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
517
- department_budgets?: Prisma.DepartmentBudgetUncheckedUpdateManyWithoutBudgetNestedInput
518
- supporting_documents?: Prisma.SupportingDocumentUncheckedUpdateManyWithoutBudgetNestedInput
519
- }
520
-
521
- export type BudgetCreateManyInput = {
522
- id?: number
523
- uuid?: string | null
524
- code?: string | null
525
- company_name?: string | null
526
- fiscal_year?: string | null
527
- currency?: string | null
528
- initial_total_annual_budget?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
529
- total_annual_budget?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
530
- description?: string | null
531
- status?: $Enums.BudgetStatus
532
- created_by?: number | null
533
- created_at?: Date | string
534
- updated_by?: number | null
535
- updated_at?: Date | string
536
- is_deleted?: boolean
537
- deleted_at?: Date | string | null
538
- deleted_by?: number | null
539
- }
540
-
541
- export type BudgetUpdateManyMutationInput = {
542
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
543
- code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
544
- company_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
545
- fiscal_year?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
546
- currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
547
- initial_total_annual_budget?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
548
- total_annual_budget?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
549
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
550
- status?: Prisma.EnumBudgetStatusFieldUpdateOperationsInput | $Enums.BudgetStatus
551
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
552
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
553
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
554
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
555
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
556
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
557
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
558
- }
559
-
560
- export type BudgetUncheckedUpdateManyInput = {
561
- id?: Prisma.IntFieldUpdateOperationsInput | number
562
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
563
- code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
564
- company_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
565
- fiscal_year?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
566
- currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
567
- initial_total_annual_budget?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
568
- total_annual_budget?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
569
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
570
- status?: Prisma.EnumBudgetStatusFieldUpdateOperationsInput | $Enums.BudgetStatus
571
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
572
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
573
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
574
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
575
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
576
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
577
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
578
- }
579
-
580
- export type BudgetUnique_budget_code_fiscal_yearCompoundUniqueInput = {
581
- code: string
582
- fiscal_year: string
583
- }
584
-
585
- export type BudgetCountOrderByAggregateInput = {
586
- id?: Prisma.SortOrder
587
- uuid?: Prisma.SortOrder
588
- code?: Prisma.SortOrder
589
- company_name?: Prisma.SortOrder
590
- fiscal_year?: Prisma.SortOrder
591
- currency?: Prisma.SortOrder
592
- initial_total_annual_budget?: Prisma.SortOrder
593
- total_annual_budget?: Prisma.SortOrder
594
- description?: Prisma.SortOrder
595
- status?: Prisma.SortOrder
596
- created_by?: Prisma.SortOrder
597
- created_at?: Prisma.SortOrder
598
- updated_by?: Prisma.SortOrder
599
- updated_at?: Prisma.SortOrder
600
- is_deleted?: Prisma.SortOrder
601
- deleted_at?: Prisma.SortOrder
602
- deleted_by?: Prisma.SortOrder
603
- }
604
-
605
- export type BudgetAvgOrderByAggregateInput = {
606
- id?: Prisma.SortOrder
607
- initial_total_annual_budget?: Prisma.SortOrder
608
- total_annual_budget?: Prisma.SortOrder
609
- created_by?: Prisma.SortOrder
610
- updated_by?: Prisma.SortOrder
611
- deleted_by?: Prisma.SortOrder
612
- }
613
-
614
- export type BudgetMaxOrderByAggregateInput = {
615
- id?: Prisma.SortOrder
616
- uuid?: Prisma.SortOrder
617
- code?: Prisma.SortOrder
618
- company_name?: Prisma.SortOrder
619
- fiscal_year?: Prisma.SortOrder
620
- currency?: Prisma.SortOrder
621
- initial_total_annual_budget?: Prisma.SortOrder
622
- total_annual_budget?: Prisma.SortOrder
623
- description?: Prisma.SortOrder
624
- status?: Prisma.SortOrder
625
- created_by?: Prisma.SortOrder
626
- created_at?: Prisma.SortOrder
627
- updated_by?: Prisma.SortOrder
628
- updated_at?: Prisma.SortOrder
629
- is_deleted?: Prisma.SortOrder
630
- deleted_at?: Prisma.SortOrder
631
- deleted_by?: Prisma.SortOrder
632
- }
633
-
634
- export type BudgetMinOrderByAggregateInput = {
635
- id?: Prisma.SortOrder
636
- uuid?: Prisma.SortOrder
637
- code?: Prisma.SortOrder
638
- company_name?: Prisma.SortOrder
639
- fiscal_year?: Prisma.SortOrder
640
- currency?: Prisma.SortOrder
641
- initial_total_annual_budget?: Prisma.SortOrder
642
- total_annual_budget?: Prisma.SortOrder
643
- description?: Prisma.SortOrder
644
- status?: Prisma.SortOrder
645
- created_by?: Prisma.SortOrder
646
- created_at?: Prisma.SortOrder
647
- updated_by?: Prisma.SortOrder
648
- updated_at?: Prisma.SortOrder
649
- is_deleted?: Prisma.SortOrder
650
- deleted_at?: Prisma.SortOrder
651
- deleted_by?: Prisma.SortOrder
652
- }
653
-
654
- export type BudgetSumOrderByAggregateInput = {
655
- id?: Prisma.SortOrder
656
- initial_total_annual_budget?: Prisma.SortOrder
657
- total_annual_budget?: Prisma.SortOrder
658
- created_by?: Prisma.SortOrder
659
- updated_by?: Prisma.SortOrder
660
- deleted_by?: Prisma.SortOrder
661
- }
662
-
663
- export type BudgetNullableScalarRelationFilter = {
664
- is?: Prisma.BudgetWhereInput | null
665
- isNot?: Prisma.BudgetWhereInput | null
666
- }
667
-
668
- export type EnumBudgetStatusFieldUpdateOperationsInput = {
669
- set?: $Enums.BudgetStatus
670
- }
671
-
672
- export type BudgetCreateNestedOneWithoutDepartment_budgetsInput = {
673
- create?: Prisma.XOR<Prisma.BudgetCreateWithoutDepartment_budgetsInput, Prisma.BudgetUncheckedCreateWithoutDepartment_budgetsInput>
674
- connectOrCreate?: Prisma.BudgetCreateOrConnectWithoutDepartment_budgetsInput
675
- connect?: Prisma.BudgetWhereUniqueInput
676
- }
677
-
678
- export type BudgetUpdateOneWithoutDepartment_budgetsNestedInput = {
679
- create?: Prisma.XOR<Prisma.BudgetCreateWithoutDepartment_budgetsInput, Prisma.BudgetUncheckedCreateWithoutDepartment_budgetsInput>
680
- connectOrCreate?: Prisma.BudgetCreateOrConnectWithoutDepartment_budgetsInput
681
- upsert?: Prisma.BudgetUpsertWithoutDepartment_budgetsInput
682
- disconnect?: Prisma.BudgetWhereInput | boolean
683
- delete?: Prisma.BudgetWhereInput | boolean
684
- connect?: Prisma.BudgetWhereUniqueInput
685
- update?: Prisma.XOR<Prisma.XOR<Prisma.BudgetUpdateToOneWithWhereWithoutDepartment_budgetsInput, Prisma.BudgetUpdateWithoutDepartment_budgetsInput>, Prisma.BudgetUncheckedUpdateWithoutDepartment_budgetsInput>
686
- }
687
-
688
- export type BudgetCreateNestedOneWithoutSupporting_documentsInput = {
689
- create?: Prisma.XOR<Prisma.BudgetCreateWithoutSupporting_documentsInput, Prisma.BudgetUncheckedCreateWithoutSupporting_documentsInput>
690
- connectOrCreate?: Prisma.BudgetCreateOrConnectWithoutSupporting_documentsInput
691
- connect?: Prisma.BudgetWhereUniqueInput
692
- }
693
-
694
- export type BudgetUpdateOneWithoutSupporting_documentsNestedInput = {
695
- create?: Prisma.XOR<Prisma.BudgetCreateWithoutSupporting_documentsInput, Prisma.BudgetUncheckedCreateWithoutSupporting_documentsInput>
696
- connectOrCreate?: Prisma.BudgetCreateOrConnectWithoutSupporting_documentsInput
697
- upsert?: Prisma.BudgetUpsertWithoutSupporting_documentsInput
698
- disconnect?: Prisma.BudgetWhereInput | boolean
699
- delete?: Prisma.BudgetWhereInput | boolean
700
- connect?: Prisma.BudgetWhereUniqueInput
701
- update?: Prisma.XOR<Prisma.XOR<Prisma.BudgetUpdateToOneWithWhereWithoutSupporting_documentsInput, Prisma.BudgetUpdateWithoutSupporting_documentsInput>, Prisma.BudgetUncheckedUpdateWithoutSupporting_documentsInput>
702
- }
703
-
704
- export type BudgetCreateWithoutDepartment_budgetsInput = {
705
- uuid?: string | null
706
- code?: string | null
707
- company_name?: string | null
708
- fiscal_year?: string | null
709
- currency?: string | null
710
- initial_total_annual_budget?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
711
- total_annual_budget?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
712
- description?: string | null
713
- status?: $Enums.BudgetStatus
714
- created_by?: number | null
715
- created_at?: Date | string
716
- updated_by?: number | null
717
- updated_at?: Date | string
718
- is_deleted?: boolean
719
- deleted_at?: Date | string | null
720
- deleted_by?: number | null
721
- supporting_documents?: Prisma.SupportingDocumentCreateNestedManyWithoutBudgetInput
722
- }
723
-
724
- export type BudgetUncheckedCreateWithoutDepartment_budgetsInput = {
725
- id?: number
726
- uuid?: string | null
727
- code?: string | null
728
- company_name?: string | null
729
- fiscal_year?: string | null
730
- currency?: string | null
731
- initial_total_annual_budget?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
732
- total_annual_budget?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
733
- description?: string | null
734
- status?: $Enums.BudgetStatus
735
- created_by?: number | null
736
- created_at?: Date | string
737
- updated_by?: number | null
738
- updated_at?: Date | string
739
- is_deleted?: boolean
740
- deleted_at?: Date | string | null
741
- deleted_by?: number | null
742
- supporting_documents?: Prisma.SupportingDocumentUncheckedCreateNestedManyWithoutBudgetInput
743
- }
744
-
745
- export type BudgetCreateOrConnectWithoutDepartment_budgetsInput = {
746
- where: Prisma.BudgetWhereUniqueInput
747
- create: Prisma.XOR<Prisma.BudgetCreateWithoutDepartment_budgetsInput, Prisma.BudgetUncheckedCreateWithoutDepartment_budgetsInput>
748
- }
749
-
750
- export type BudgetUpsertWithoutDepartment_budgetsInput = {
751
- update: Prisma.XOR<Prisma.BudgetUpdateWithoutDepartment_budgetsInput, Prisma.BudgetUncheckedUpdateWithoutDepartment_budgetsInput>
752
- create: Prisma.XOR<Prisma.BudgetCreateWithoutDepartment_budgetsInput, Prisma.BudgetUncheckedCreateWithoutDepartment_budgetsInput>
753
- where?: Prisma.BudgetWhereInput
754
- }
755
-
756
- export type BudgetUpdateToOneWithWhereWithoutDepartment_budgetsInput = {
757
- where?: Prisma.BudgetWhereInput
758
- data: Prisma.XOR<Prisma.BudgetUpdateWithoutDepartment_budgetsInput, Prisma.BudgetUncheckedUpdateWithoutDepartment_budgetsInput>
759
- }
760
-
761
- export type BudgetUpdateWithoutDepartment_budgetsInput = {
762
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
763
- code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
764
- company_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
765
- fiscal_year?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
766
- currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
767
- initial_total_annual_budget?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
768
- total_annual_budget?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
769
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
770
- status?: Prisma.EnumBudgetStatusFieldUpdateOperationsInput | $Enums.BudgetStatus
771
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
772
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
773
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
774
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
775
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
776
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
777
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
778
- supporting_documents?: Prisma.SupportingDocumentUpdateManyWithoutBudgetNestedInput
779
- }
780
-
781
- export type BudgetUncheckedUpdateWithoutDepartment_budgetsInput = {
782
- id?: Prisma.IntFieldUpdateOperationsInput | number
783
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
784
- code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
785
- company_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
786
- fiscal_year?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
787
- currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
788
- initial_total_annual_budget?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
789
- total_annual_budget?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
790
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
791
- status?: Prisma.EnumBudgetStatusFieldUpdateOperationsInput | $Enums.BudgetStatus
792
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
793
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
794
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
795
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
796
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
797
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
798
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
799
- supporting_documents?: Prisma.SupportingDocumentUncheckedUpdateManyWithoutBudgetNestedInput
800
- }
801
-
802
- export type BudgetCreateWithoutSupporting_documentsInput = {
803
- uuid?: string | null
804
- code?: string | null
805
- company_name?: string | null
806
- fiscal_year?: string | null
807
- currency?: string | null
808
- initial_total_annual_budget?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
809
- total_annual_budget?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
810
- description?: string | null
811
- status?: $Enums.BudgetStatus
812
- created_by?: number | null
813
- created_at?: Date | string
814
- updated_by?: number | null
815
- updated_at?: Date | string
816
- is_deleted?: boolean
817
- deleted_at?: Date | string | null
818
- deleted_by?: number | null
819
- department_budgets?: Prisma.DepartmentBudgetCreateNestedManyWithoutBudgetInput
820
- }
821
-
822
- export type BudgetUncheckedCreateWithoutSupporting_documentsInput = {
823
- id?: number
824
- uuid?: string | null
825
- code?: string | null
826
- company_name?: string | null
827
- fiscal_year?: string | null
828
- currency?: string | null
829
- initial_total_annual_budget?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
830
- total_annual_budget?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
831
- description?: string | null
832
- status?: $Enums.BudgetStatus
833
- created_by?: number | null
834
- created_at?: Date | string
835
- updated_by?: number | null
836
- updated_at?: Date | string
837
- is_deleted?: boolean
838
- deleted_at?: Date | string | null
839
- deleted_by?: number | null
840
- department_budgets?: Prisma.DepartmentBudgetUncheckedCreateNestedManyWithoutBudgetInput
841
- }
842
-
843
- export type BudgetCreateOrConnectWithoutSupporting_documentsInput = {
844
- where: Prisma.BudgetWhereUniqueInput
845
- create: Prisma.XOR<Prisma.BudgetCreateWithoutSupporting_documentsInput, Prisma.BudgetUncheckedCreateWithoutSupporting_documentsInput>
846
- }
847
-
848
- export type BudgetUpsertWithoutSupporting_documentsInput = {
849
- update: Prisma.XOR<Prisma.BudgetUpdateWithoutSupporting_documentsInput, Prisma.BudgetUncheckedUpdateWithoutSupporting_documentsInput>
850
- create: Prisma.XOR<Prisma.BudgetCreateWithoutSupporting_documentsInput, Prisma.BudgetUncheckedCreateWithoutSupporting_documentsInput>
851
- where?: Prisma.BudgetWhereInput
852
- }
853
-
854
- export type BudgetUpdateToOneWithWhereWithoutSupporting_documentsInput = {
855
- where?: Prisma.BudgetWhereInput
856
- data: Prisma.XOR<Prisma.BudgetUpdateWithoutSupporting_documentsInput, Prisma.BudgetUncheckedUpdateWithoutSupporting_documentsInput>
857
- }
858
-
859
- export type BudgetUpdateWithoutSupporting_documentsInput = {
860
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
861
- code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
862
- company_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
863
- fiscal_year?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
864
- currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
865
- initial_total_annual_budget?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
866
- total_annual_budget?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
867
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
868
- status?: Prisma.EnumBudgetStatusFieldUpdateOperationsInput | $Enums.BudgetStatus
869
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
870
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
871
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
872
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
873
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
874
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
875
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
876
- department_budgets?: Prisma.DepartmentBudgetUpdateManyWithoutBudgetNestedInput
877
- }
878
-
879
- export type BudgetUncheckedUpdateWithoutSupporting_documentsInput = {
880
- id?: Prisma.IntFieldUpdateOperationsInput | number
881
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
882
- code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
883
- company_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
884
- fiscal_year?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
885
- currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
886
- initial_total_annual_budget?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
887
- total_annual_budget?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
888
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
889
- status?: Prisma.EnumBudgetStatusFieldUpdateOperationsInput | $Enums.BudgetStatus
890
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
891
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
892
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
893
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
894
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
895
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
896
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
897
- department_budgets?: Prisma.DepartmentBudgetUncheckedUpdateManyWithoutBudgetNestedInput
898
- }
899
-
900
-
901
- /**
902
- * Count Type BudgetCountOutputType
903
- */
904
-
905
- export type BudgetCountOutputType = {
906
- department_budgets: number
907
- supporting_documents: number
908
- }
909
-
910
- export type BudgetCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
911
- department_budgets?: boolean | BudgetCountOutputTypeCountDepartment_budgetsArgs
912
- supporting_documents?: boolean | BudgetCountOutputTypeCountSupporting_documentsArgs
913
- }
914
-
915
- /**
916
- * BudgetCountOutputType without action
917
- */
918
- export type BudgetCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
919
- /**
920
- * Select specific fields to fetch from the BudgetCountOutputType
921
- */
922
- select?: Prisma.BudgetCountOutputTypeSelect<ExtArgs> | null
923
- }
924
-
925
- /**
926
- * BudgetCountOutputType without action
927
- */
928
- export type BudgetCountOutputTypeCountDepartment_budgetsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
929
- where?: Prisma.DepartmentBudgetWhereInput
930
- }
931
-
932
- /**
933
- * BudgetCountOutputType without action
934
- */
935
- export type BudgetCountOutputTypeCountSupporting_documentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
936
- where?: Prisma.SupportingDocumentWhereInput
937
- }
938
-
939
-
940
- export type BudgetSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
941
- id?: boolean
942
- uuid?: boolean
943
- code?: boolean
944
- company_name?: boolean
945
- fiscal_year?: boolean
946
- currency?: boolean
947
- initial_total_annual_budget?: boolean
948
- total_annual_budget?: boolean
949
- description?: boolean
950
- status?: boolean
951
- created_by?: boolean
952
- created_at?: boolean
953
- updated_by?: boolean
954
- updated_at?: boolean
955
- is_deleted?: boolean
956
- deleted_at?: boolean
957
- deleted_by?: boolean
958
- department_budgets?: boolean | Prisma.Budget$department_budgetsArgs<ExtArgs>
959
- supporting_documents?: boolean | Prisma.Budget$supporting_documentsArgs<ExtArgs>
960
- _count?: boolean | Prisma.BudgetCountOutputTypeDefaultArgs<ExtArgs>
961
- }, ExtArgs["result"]["budget"]>
962
-
963
- export type BudgetSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
964
- id?: boolean
965
- uuid?: boolean
966
- code?: boolean
967
- company_name?: boolean
968
- fiscal_year?: boolean
969
- currency?: boolean
970
- initial_total_annual_budget?: boolean
971
- total_annual_budget?: boolean
972
- description?: boolean
973
- status?: boolean
974
- created_by?: boolean
975
- created_at?: boolean
976
- updated_by?: boolean
977
- updated_at?: boolean
978
- is_deleted?: boolean
979
- deleted_at?: boolean
980
- deleted_by?: boolean
981
- }, ExtArgs["result"]["budget"]>
982
-
983
- export type BudgetSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
984
- id?: boolean
985
- uuid?: boolean
986
- code?: boolean
987
- company_name?: boolean
988
- fiscal_year?: boolean
989
- currency?: boolean
990
- initial_total_annual_budget?: boolean
991
- total_annual_budget?: boolean
992
- description?: boolean
993
- status?: boolean
994
- created_by?: boolean
995
- created_at?: boolean
996
- updated_by?: boolean
997
- updated_at?: boolean
998
- is_deleted?: boolean
999
- deleted_at?: boolean
1000
- deleted_by?: boolean
1001
- }, ExtArgs["result"]["budget"]>
1002
-
1003
- export type BudgetSelectScalar = {
1004
- id?: boolean
1005
- uuid?: boolean
1006
- code?: boolean
1007
- company_name?: boolean
1008
- fiscal_year?: boolean
1009
- currency?: boolean
1010
- initial_total_annual_budget?: boolean
1011
- total_annual_budget?: boolean
1012
- description?: boolean
1013
- status?: boolean
1014
- created_by?: boolean
1015
- created_at?: boolean
1016
- updated_by?: boolean
1017
- updated_at?: boolean
1018
- is_deleted?: boolean
1019
- deleted_at?: boolean
1020
- deleted_by?: boolean
1021
- }
1022
-
1023
- export type BudgetOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "code" | "company_name" | "fiscal_year" | "currency" | "initial_total_annual_budget" | "total_annual_budget" | "description" | "status" | "created_by" | "created_at" | "updated_by" | "updated_at" | "is_deleted" | "deleted_at" | "deleted_by", ExtArgs["result"]["budget"]>
1024
- export type BudgetInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1025
- department_budgets?: boolean | Prisma.Budget$department_budgetsArgs<ExtArgs>
1026
- supporting_documents?: boolean | Prisma.Budget$supporting_documentsArgs<ExtArgs>
1027
- _count?: boolean | Prisma.BudgetCountOutputTypeDefaultArgs<ExtArgs>
1028
- }
1029
- export type BudgetIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
1030
- export type BudgetIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
1031
-
1032
- export type $BudgetPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1033
- name: "Budget"
1034
- objects: {
1035
- department_budgets: Prisma.$DepartmentBudgetPayload<ExtArgs>[]
1036
- supporting_documents: Prisma.$SupportingDocumentPayload<ExtArgs>[]
1037
- }
1038
- scalars: runtime.Types.Extensions.GetPayloadResult<{
1039
- id: number
1040
- uuid: string | null
1041
- code: string | null
1042
- company_name: string | null
1043
- fiscal_year: string | null
1044
- currency: string | null
1045
- initial_total_annual_budget: runtime.Decimal | null
1046
- total_annual_budget: runtime.Decimal | null
1047
- description: string | null
1048
- status: $Enums.BudgetStatus
1049
- created_by: number | null
1050
- created_at: Date
1051
- updated_by: number | null
1052
- updated_at: Date
1053
- is_deleted: boolean
1054
- deleted_at: Date | null
1055
- deleted_by: number | null
1056
- }, ExtArgs["result"]["budget"]>
1057
- composites: {}
1058
- }
1059
-
1060
- export type BudgetGetPayload<S extends boolean | null | undefined | BudgetDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$BudgetPayload, S>
1061
-
1062
- export type BudgetCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1063
- Omit<BudgetFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1064
- select?: BudgetCountAggregateInputType | true
1065
- }
1066
-
1067
- export interface BudgetDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1068
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Budget'], meta: { name: 'Budget' } }
1069
- /**
1070
- * Find zero or one Budget that matches the filter.
1071
- * @param {BudgetFindUniqueArgs} args - Arguments to find a Budget
1072
- * @example
1073
- * // Get one Budget
1074
- * const budget = await prisma.budget.findUnique({
1075
- * where: {
1076
- * // ... provide filter here
1077
- * }
1078
- * })
1079
- */
1080
- findUnique<T extends BudgetFindUniqueArgs>(args: Prisma.SelectSubset<T, BudgetFindUniqueArgs<ExtArgs>>): Prisma.Prisma__BudgetClient<runtime.Types.Result.GetResult<Prisma.$BudgetPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1081
-
1082
- /**
1083
- * Find one Budget that matches the filter or throw an error with `error.code='P2025'`
1084
- * if no matches were found.
1085
- * @param {BudgetFindUniqueOrThrowArgs} args - Arguments to find a Budget
1086
- * @example
1087
- * // Get one Budget
1088
- * const budget = await prisma.budget.findUniqueOrThrow({
1089
- * where: {
1090
- * // ... provide filter here
1091
- * }
1092
- * })
1093
- */
1094
- findUniqueOrThrow<T extends BudgetFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, BudgetFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__BudgetClient<runtime.Types.Result.GetResult<Prisma.$BudgetPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1095
-
1096
- /**
1097
- * Find the first Budget that matches the filter.
1098
- * Note, that providing `undefined` is treated as the value not being there.
1099
- * Read more here: https://pris.ly/d/null-undefined
1100
- * @param {BudgetFindFirstArgs} args - Arguments to find a Budget
1101
- * @example
1102
- * // Get one Budget
1103
- * const budget = await prisma.budget.findFirst({
1104
- * where: {
1105
- * // ... provide filter here
1106
- * }
1107
- * })
1108
- */
1109
- findFirst<T extends BudgetFindFirstArgs>(args?: Prisma.SelectSubset<T, BudgetFindFirstArgs<ExtArgs>>): Prisma.Prisma__BudgetClient<runtime.Types.Result.GetResult<Prisma.$BudgetPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1110
-
1111
- /**
1112
- * Find the first Budget that matches the filter or
1113
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1114
- * Note, that providing `undefined` is treated as the value not being there.
1115
- * Read more here: https://pris.ly/d/null-undefined
1116
- * @param {BudgetFindFirstOrThrowArgs} args - Arguments to find a Budget
1117
- * @example
1118
- * // Get one Budget
1119
- * const budget = await prisma.budget.findFirstOrThrow({
1120
- * where: {
1121
- * // ... provide filter here
1122
- * }
1123
- * })
1124
- */
1125
- findFirstOrThrow<T extends BudgetFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, BudgetFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__BudgetClient<runtime.Types.Result.GetResult<Prisma.$BudgetPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1126
-
1127
- /**
1128
- * Find zero or more Budgets that matches the filter.
1129
- * Note, that providing `undefined` is treated as the value not being there.
1130
- * Read more here: https://pris.ly/d/null-undefined
1131
- * @param {BudgetFindManyArgs} args - Arguments to filter and select certain fields only.
1132
- * @example
1133
- * // Get all Budgets
1134
- * const budgets = await prisma.budget.findMany()
1135
- *
1136
- * // Get first 10 Budgets
1137
- * const budgets = await prisma.budget.findMany({ take: 10 })
1138
- *
1139
- * // Only select the `id`
1140
- * const budgetWithIdOnly = await prisma.budget.findMany({ select: { id: true } })
1141
- *
1142
- */
1143
- findMany<T extends BudgetFindManyArgs>(args?: Prisma.SelectSubset<T, BudgetFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BudgetPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1144
-
1145
- /**
1146
- * Create a Budget.
1147
- * @param {BudgetCreateArgs} args - Arguments to create a Budget.
1148
- * @example
1149
- * // Create one Budget
1150
- * const Budget = await prisma.budget.create({
1151
- * data: {
1152
- * // ... data to create a Budget
1153
- * }
1154
- * })
1155
- *
1156
- */
1157
- create<T extends BudgetCreateArgs>(args: Prisma.SelectSubset<T, BudgetCreateArgs<ExtArgs>>): Prisma.Prisma__BudgetClient<runtime.Types.Result.GetResult<Prisma.$BudgetPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1158
-
1159
- /**
1160
- * Create many Budgets.
1161
- * @param {BudgetCreateManyArgs} args - Arguments to create many Budgets.
1162
- * @example
1163
- * // Create many Budgets
1164
- * const budget = await prisma.budget.createMany({
1165
- * data: [
1166
- * // ... provide data here
1167
- * ]
1168
- * })
1169
- *
1170
- */
1171
- createMany<T extends BudgetCreateManyArgs>(args?: Prisma.SelectSubset<T, BudgetCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1172
-
1173
- /**
1174
- * Create many Budgets and returns the data saved in the database.
1175
- * @param {BudgetCreateManyAndReturnArgs} args - Arguments to create many Budgets.
1176
- * @example
1177
- * // Create many Budgets
1178
- * const budget = await prisma.budget.createManyAndReturn({
1179
- * data: [
1180
- * // ... provide data here
1181
- * ]
1182
- * })
1183
- *
1184
- * // Create many Budgets and only return the `id`
1185
- * const budgetWithIdOnly = await prisma.budget.createManyAndReturn({
1186
- * select: { id: true },
1187
- * data: [
1188
- * // ... provide data here
1189
- * ]
1190
- * })
1191
- * Note, that providing `undefined` is treated as the value not being there.
1192
- * Read more here: https://pris.ly/d/null-undefined
1193
- *
1194
- */
1195
- createManyAndReturn<T extends BudgetCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, BudgetCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BudgetPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1196
-
1197
- /**
1198
- * Delete a Budget.
1199
- * @param {BudgetDeleteArgs} args - Arguments to delete one Budget.
1200
- * @example
1201
- * // Delete one Budget
1202
- * const Budget = await prisma.budget.delete({
1203
- * where: {
1204
- * // ... filter to delete one Budget
1205
- * }
1206
- * })
1207
- *
1208
- */
1209
- delete<T extends BudgetDeleteArgs>(args: Prisma.SelectSubset<T, BudgetDeleteArgs<ExtArgs>>): Prisma.Prisma__BudgetClient<runtime.Types.Result.GetResult<Prisma.$BudgetPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1210
-
1211
- /**
1212
- * Update one Budget.
1213
- * @param {BudgetUpdateArgs} args - Arguments to update one Budget.
1214
- * @example
1215
- * // Update one Budget
1216
- * const budget = await prisma.budget.update({
1217
- * where: {
1218
- * // ... provide filter here
1219
- * },
1220
- * data: {
1221
- * // ... provide data here
1222
- * }
1223
- * })
1224
- *
1225
- */
1226
- update<T extends BudgetUpdateArgs>(args: Prisma.SelectSubset<T, BudgetUpdateArgs<ExtArgs>>): Prisma.Prisma__BudgetClient<runtime.Types.Result.GetResult<Prisma.$BudgetPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1227
-
1228
- /**
1229
- * Delete zero or more Budgets.
1230
- * @param {BudgetDeleteManyArgs} args - Arguments to filter Budgets to delete.
1231
- * @example
1232
- * // Delete a few Budgets
1233
- * const { count } = await prisma.budget.deleteMany({
1234
- * where: {
1235
- * // ... provide filter here
1236
- * }
1237
- * })
1238
- *
1239
- */
1240
- deleteMany<T extends BudgetDeleteManyArgs>(args?: Prisma.SelectSubset<T, BudgetDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1241
-
1242
- /**
1243
- * Update zero or more Budgets.
1244
- * Note, that providing `undefined` is treated as the value not being there.
1245
- * Read more here: https://pris.ly/d/null-undefined
1246
- * @param {BudgetUpdateManyArgs} args - Arguments to update one or more rows.
1247
- * @example
1248
- * // Update many Budgets
1249
- * const budget = await prisma.budget.updateMany({
1250
- * where: {
1251
- * // ... provide filter here
1252
- * },
1253
- * data: {
1254
- * // ... provide data here
1255
- * }
1256
- * })
1257
- *
1258
- */
1259
- updateMany<T extends BudgetUpdateManyArgs>(args: Prisma.SelectSubset<T, BudgetUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1260
-
1261
- /**
1262
- * Update zero or more Budgets and returns the data updated in the database.
1263
- * @param {BudgetUpdateManyAndReturnArgs} args - Arguments to update many Budgets.
1264
- * @example
1265
- * // Update many Budgets
1266
- * const budget = await prisma.budget.updateManyAndReturn({
1267
- * where: {
1268
- * // ... provide filter here
1269
- * },
1270
- * data: [
1271
- * // ... provide data here
1272
- * ]
1273
- * })
1274
- *
1275
- * // Update zero or more Budgets and only return the `id`
1276
- * const budgetWithIdOnly = await prisma.budget.updateManyAndReturn({
1277
- * select: { id: true },
1278
- * where: {
1279
- * // ... provide filter here
1280
- * },
1281
- * data: [
1282
- * // ... provide data here
1283
- * ]
1284
- * })
1285
- * Note, that providing `undefined` is treated as the value not being there.
1286
- * Read more here: https://pris.ly/d/null-undefined
1287
- *
1288
- */
1289
- updateManyAndReturn<T extends BudgetUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, BudgetUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BudgetPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1290
-
1291
- /**
1292
- * Create or update one Budget.
1293
- * @param {BudgetUpsertArgs} args - Arguments to update or create a Budget.
1294
- * @example
1295
- * // Update or create a Budget
1296
- * const budget = await prisma.budget.upsert({
1297
- * create: {
1298
- * // ... data to create a Budget
1299
- * },
1300
- * update: {
1301
- * // ... in case it already exists, update
1302
- * },
1303
- * where: {
1304
- * // ... the filter for the Budget we want to update
1305
- * }
1306
- * })
1307
- */
1308
- upsert<T extends BudgetUpsertArgs>(args: Prisma.SelectSubset<T, BudgetUpsertArgs<ExtArgs>>): Prisma.Prisma__BudgetClient<runtime.Types.Result.GetResult<Prisma.$BudgetPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1309
-
1310
-
1311
- /**
1312
- * Count the number of Budgets.
1313
- * Note, that providing `undefined` is treated as the value not being there.
1314
- * Read more here: https://pris.ly/d/null-undefined
1315
- * @param {BudgetCountArgs} args - Arguments to filter Budgets to count.
1316
- * @example
1317
- * // Count the number of Budgets
1318
- * const count = await prisma.budget.count({
1319
- * where: {
1320
- * // ... the filter for the Budgets we want to count
1321
- * }
1322
- * })
1323
- **/
1324
- count<T extends BudgetCountArgs>(
1325
- args?: Prisma.Subset<T, BudgetCountArgs>,
1326
- ): Prisma.PrismaPromise<
1327
- T extends runtime.Types.Utils.Record<'select', any>
1328
- ? T['select'] extends true
1329
- ? number
1330
- : Prisma.GetScalarType<T['select'], BudgetCountAggregateOutputType>
1331
- : number
1332
- >
1333
-
1334
- /**
1335
- * Allows you to perform aggregations operations on a Budget.
1336
- * Note, that providing `undefined` is treated as the value not being there.
1337
- * Read more here: https://pris.ly/d/null-undefined
1338
- * @param {BudgetAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1339
- * @example
1340
- * // Ordered by age ascending
1341
- * // Where email contains prisma.io
1342
- * // Limited to the 10 users
1343
- * const aggregations = await prisma.user.aggregate({
1344
- * _avg: {
1345
- * age: true,
1346
- * },
1347
- * where: {
1348
- * email: {
1349
- * contains: "prisma.io",
1350
- * },
1351
- * },
1352
- * orderBy: {
1353
- * age: "asc",
1354
- * },
1355
- * take: 10,
1356
- * })
1357
- **/
1358
- aggregate<T extends BudgetAggregateArgs>(args: Prisma.Subset<T, BudgetAggregateArgs>): Prisma.PrismaPromise<GetBudgetAggregateType<T>>
1359
-
1360
- /**
1361
- * Group by Budget.
1362
- * Note, that providing `undefined` is treated as the value not being there.
1363
- * Read more here: https://pris.ly/d/null-undefined
1364
- * @param {BudgetGroupByArgs} args - Group by arguments.
1365
- * @example
1366
- * // Group by city, order by createdAt, get count
1367
- * const result = await prisma.user.groupBy({
1368
- * by: ['city', 'createdAt'],
1369
- * orderBy: {
1370
- * createdAt: true
1371
- * },
1372
- * _count: {
1373
- * _all: true
1374
- * },
1375
- * })
1376
- *
1377
- **/
1378
- groupBy<
1379
- T extends BudgetGroupByArgs,
1380
- HasSelectOrTake extends Prisma.Or<
1381
- Prisma.Extends<'skip', Prisma.Keys<T>>,
1382
- Prisma.Extends<'take', Prisma.Keys<T>>
1383
- >,
1384
- OrderByArg extends Prisma.True extends HasSelectOrTake
1385
- ? { orderBy: BudgetGroupByArgs['orderBy'] }
1386
- : { orderBy?: BudgetGroupByArgs['orderBy'] },
1387
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1388
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1389
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1390
- HavingFields extends Prisma.GetHavingFields<T['having']>,
1391
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1392
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1393
- InputErrors extends ByEmpty extends Prisma.True
1394
- ? `Error: "by" must not be empty.`
1395
- : HavingValid extends Prisma.False
1396
- ? {
1397
- [P in HavingFields]: P extends ByFields
1398
- ? never
1399
- : P extends string
1400
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1401
- : [
1402
- Error,
1403
- 'Field ',
1404
- P,
1405
- ` in "having" needs to be provided in "by"`,
1406
- ]
1407
- }[HavingFields]
1408
- : 'take' extends Prisma.Keys<T>
1409
- ? 'orderBy' extends Prisma.Keys<T>
1410
- ? ByValid extends Prisma.True
1411
- ? {}
1412
- : {
1413
- [P in OrderFields]: P extends ByFields
1414
- ? never
1415
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1416
- }[OrderFields]
1417
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1418
- : 'skip' extends Prisma.Keys<T>
1419
- ? 'orderBy' extends Prisma.Keys<T>
1420
- ? ByValid extends Prisma.True
1421
- ? {}
1422
- : {
1423
- [P in OrderFields]: P extends ByFields
1424
- ? never
1425
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1426
- }[OrderFields]
1427
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1428
- : ByValid extends Prisma.True
1429
- ? {}
1430
- : {
1431
- [P in OrderFields]: P extends ByFields
1432
- ? never
1433
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1434
- }[OrderFields]
1435
- >(args: Prisma.SubsetIntersection<T, BudgetGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBudgetGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1436
- /**
1437
- * Fields of the Budget model
1438
- */
1439
- readonly fields: BudgetFieldRefs;
1440
- }
1441
-
1442
- /**
1443
- * The delegate class that acts as a "Promise-like" for Budget.
1444
- * Why is this prefixed with `Prisma__`?
1445
- * Because we want to prevent naming conflicts as mentioned in
1446
- * https://github.com/prisma/prisma-client-js/issues/707
1447
- */
1448
- export interface Prisma__BudgetClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1449
- readonly [Symbol.toStringTag]: "PrismaPromise"
1450
- department_budgets<T extends Prisma.Budget$department_budgetsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Budget$department_budgetsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DepartmentBudgetPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1451
- supporting_documents<T extends Prisma.Budget$supporting_documentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Budget$supporting_documentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SupportingDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1452
- /**
1453
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1454
- * @param onfulfilled The callback to execute when the Promise is resolved.
1455
- * @param onrejected The callback to execute when the Promise is rejected.
1456
- * @returns A Promise for the completion of which ever callback is executed.
1457
- */
1458
- 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>
1459
- /**
1460
- * Attaches a callback for only the rejection of the Promise.
1461
- * @param onrejected The callback to execute when the Promise is rejected.
1462
- * @returns A Promise for the completion of the callback.
1463
- */
1464
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1465
- /**
1466
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1467
- * resolved value cannot be modified from the callback.
1468
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1469
- * @returns A Promise for the completion of the callback.
1470
- */
1471
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1472
- }
1473
-
1474
-
1475
-
1476
-
1477
- /**
1478
- * Fields of the Budget model
1479
- */
1480
- export interface BudgetFieldRefs {
1481
- readonly id: Prisma.FieldRef<"Budget", 'Int'>
1482
- readonly uuid: Prisma.FieldRef<"Budget", 'String'>
1483
- readonly code: Prisma.FieldRef<"Budget", 'String'>
1484
- readonly company_name: Prisma.FieldRef<"Budget", 'String'>
1485
- readonly fiscal_year: Prisma.FieldRef<"Budget", 'String'>
1486
- readonly currency: Prisma.FieldRef<"Budget", 'String'>
1487
- readonly initial_total_annual_budget: Prisma.FieldRef<"Budget", 'Decimal'>
1488
- readonly total_annual_budget: Prisma.FieldRef<"Budget", 'Decimal'>
1489
- readonly description: Prisma.FieldRef<"Budget", 'String'>
1490
- readonly status: Prisma.FieldRef<"Budget", 'BudgetStatus'>
1491
- readonly created_by: Prisma.FieldRef<"Budget", 'Int'>
1492
- readonly created_at: Prisma.FieldRef<"Budget", 'DateTime'>
1493
- readonly updated_by: Prisma.FieldRef<"Budget", 'Int'>
1494
- readonly updated_at: Prisma.FieldRef<"Budget", 'DateTime'>
1495
- readonly is_deleted: Prisma.FieldRef<"Budget", 'Boolean'>
1496
- readonly deleted_at: Prisma.FieldRef<"Budget", 'DateTime'>
1497
- readonly deleted_by: Prisma.FieldRef<"Budget", 'Int'>
1498
- }
1499
-
1500
-
1501
- // Custom InputTypes
1502
- /**
1503
- * Budget findUnique
1504
- */
1505
- export type BudgetFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1506
- /**
1507
- * Select specific fields to fetch from the Budget
1508
- */
1509
- select?: Prisma.BudgetSelect<ExtArgs> | null
1510
- /**
1511
- * Omit specific fields from the Budget
1512
- */
1513
- omit?: Prisma.BudgetOmit<ExtArgs> | null
1514
- /**
1515
- * Choose, which related nodes to fetch as well
1516
- */
1517
- include?: Prisma.BudgetInclude<ExtArgs> | null
1518
- /**
1519
- * Filter, which Budget to fetch.
1520
- */
1521
- where: Prisma.BudgetWhereUniqueInput
1522
- }
1523
-
1524
- /**
1525
- * Budget findUniqueOrThrow
1526
- */
1527
- export type BudgetFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1528
- /**
1529
- * Select specific fields to fetch from the Budget
1530
- */
1531
- select?: Prisma.BudgetSelect<ExtArgs> | null
1532
- /**
1533
- * Omit specific fields from the Budget
1534
- */
1535
- omit?: Prisma.BudgetOmit<ExtArgs> | null
1536
- /**
1537
- * Choose, which related nodes to fetch as well
1538
- */
1539
- include?: Prisma.BudgetInclude<ExtArgs> | null
1540
- /**
1541
- * Filter, which Budget to fetch.
1542
- */
1543
- where: Prisma.BudgetWhereUniqueInput
1544
- }
1545
-
1546
- /**
1547
- * Budget findFirst
1548
- */
1549
- export type BudgetFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1550
- /**
1551
- * Select specific fields to fetch from the Budget
1552
- */
1553
- select?: Prisma.BudgetSelect<ExtArgs> | null
1554
- /**
1555
- * Omit specific fields from the Budget
1556
- */
1557
- omit?: Prisma.BudgetOmit<ExtArgs> | null
1558
- /**
1559
- * Choose, which related nodes to fetch as well
1560
- */
1561
- include?: Prisma.BudgetInclude<ExtArgs> | null
1562
- /**
1563
- * Filter, which Budget to fetch.
1564
- */
1565
- where?: Prisma.BudgetWhereInput
1566
- /**
1567
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1568
- *
1569
- * Determine the order of Budgets to fetch.
1570
- */
1571
- orderBy?: Prisma.BudgetOrderByWithRelationInput | Prisma.BudgetOrderByWithRelationInput[]
1572
- /**
1573
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1574
- *
1575
- * Sets the position for searching for Budgets.
1576
- */
1577
- cursor?: Prisma.BudgetWhereUniqueInput
1578
- /**
1579
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1580
- *
1581
- * Take `±n` Budgets from the position of the cursor.
1582
- */
1583
- take?: number
1584
- /**
1585
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1586
- *
1587
- * Skip the first `n` Budgets.
1588
- */
1589
- skip?: number
1590
- /**
1591
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1592
- *
1593
- * Filter by unique combinations of Budgets.
1594
- */
1595
- distinct?: Prisma.BudgetScalarFieldEnum | Prisma.BudgetScalarFieldEnum[]
1596
- }
1597
-
1598
- /**
1599
- * Budget findFirstOrThrow
1600
- */
1601
- export type BudgetFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1602
- /**
1603
- * Select specific fields to fetch from the Budget
1604
- */
1605
- select?: Prisma.BudgetSelect<ExtArgs> | null
1606
- /**
1607
- * Omit specific fields from the Budget
1608
- */
1609
- omit?: Prisma.BudgetOmit<ExtArgs> | null
1610
- /**
1611
- * Choose, which related nodes to fetch as well
1612
- */
1613
- include?: Prisma.BudgetInclude<ExtArgs> | null
1614
- /**
1615
- * Filter, which Budget to fetch.
1616
- */
1617
- where?: Prisma.BudgetWhereInput
1618
- /**
1619
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1620
- *
1621
- * Determine the order of Budgets to fetch.
1622
- */
1623
- orderBy?: Prisma.BudgetOrderByWithRelationInput | Prisma.BudgetOrderByWithRelationInput[]
1624
- /**
1625
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1626
- *
1627
- * Sets the position for searching for Budgets.
1628
- */
1629
- cursor?: Prisma.BudgetWhereUniqueInput
1630
- /**
1631
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1632
- *
1633
- * Take `±n` Budgets from the position of the cursor.
1634
- */
1635
- take?: number
1636
- /**
1637
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1638
- *
1639
- * Skip the first `n` Budgets.
1640
- */
1641
- skip?: number
1642
- /**
1643
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1644
- *
1645
- * Filter by unique combinations of Budgets.
1646
- */
1647
- distinct?: Prisma.BudgetScalarFieldEnum | Prisma.BudgetScalarFieldEnum[]
1648
- }
1649
-
1650
- /**
1651
- * Budget findMany
1652
- */
1653
- export type BudgetFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1654
- /**
1655
- * Select specific fields to fetch from the Budget
1656
- */
1657
- select?: Prisma.BudgetSelect<ExtArgs> | null
1658
- /**
1659
- * Omit specific fields from the Budget
1660
- */
1661
- omit?: Prisma.BudgetOmit<ExtArgs> | null
1662
- /**
1663
- * Choose, which related nodes to fetch as well
1664
- */
1665
- include?: Prisma.BudgetInclude<ExtArgs> | null
1666
- /**
1667
- * Filter, which Budgets to fetch.
1668
- */
1669
- where?: Prisma.BudgetWhereInput
1670
- /**
1671
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1672
- *
1673
- * Determine the order of Budgets to fetch.
1674
- */
1675
- orderBy?: Prisma.BudgetOrderByWithRelationInput | Prisma.BudgetOrderByWithRelationInput[]
1676
- /**
1677
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1678
- *
1679
- * Sets the position for listing Budgets.
1680
- */
1681
- cursor?: Prisma.BudgetWhereUniqueInput
1682
- /**
1683
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1684
- *
1685
- * Take `±n` Budgets from the position of the cursor.
1686
- */
1687
- take?: number
1688
- /**
1689
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1690
- *
1691
- * Skip the first `n` Budgets.
1692
- */
1693
- skip?: number
1694
- /**
1695
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1696
- *
1697
- * Filter by unique combinations of Budgets.
1698
- */
1699
- distinct?: Prisma.BudgetScalarFieldEnum | Prisma.BudgetScalarFieldEnum[]
1700
- }
1701
-
1702
- /**
1703
- * Budget create
1704
- */
1705
- export type BudgetCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1706
- /**
1707
- * Select specific fields to fetch from the Budget
1708
- */
1709
- select?: Prisma.BudgetSelect<ExtArgs> | null
1710
- /**
1711
- * Omit specific fields from the Budget
1712
- */
1713
- omit?: Prisma.BudgetOmit<ExtArgs> | null
1714
- /**
1715
- * Choose, which related nodes to fetch as well
1716
- */
1717
- include?: Prisma.BudgetInclude<ExtArgs> | null
1718
- /**
1719
- * The data needed to create a Budget.
1720
- */
1721
- data: Prisma.XOR<Prisma.BudgetCreateInput, Prisma.BudgetUncheckedCreateInput>
1722
- }
1723
-
1724
- /**
1725
- * Budget createMany
1726
- */
1727
- export type BudgetCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1728
- /**
1729
- * The data used to create many Budgets.
1730
- */
1731
- data: Prisma.BudgetCreateManyInput | Prisma.BudgetCreateManyInput[]
1732
- skipDuplicates?: boolean
1733
- }
1734
-
1735
- /**
1736
- * Budget createManyAndReturn
1737
- */
1738
- export type BudgetCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1739
- /**
1740
- * Select specific fields to fetch from the Budget
1741
- */
1742
- select?: Prisma.BudgetSelectCreateManyAndReturn<ExtArgs> | null
1743
- /**
1744
- * Omit specific fields from the Budget
1745
- */
1746
- omit?: Prisma.BudgetOmit<ExtArgs> | null
1747
- /**
1748
- * The data used to create many Budgets.
1749
- */
1750
- data: Prisma.BudgetCreateManyInput | Prisma.BudgetCreateManyInput[]
1751
- skipDuplicates?: boolean
1752
- }
1753
-
1754
- /**
1755
- * Budget update
1756
- */
1757
- export type BudgetUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1758
- /**
1759
- * Select specific fields to fetch from the Budget
1760
- */
1761
- select?: Prisma.BudgetSelect<ExtArgs> | null
1762
- /**
1763
- * Omit specific fields from the Budget
1764
- */
1765
- omit?: Prisma.BudgetOmit<ExtArgs> | null
1766
- /**
1767
- * Choose, which related nodes to fetch as well
1768
- */
1769
- include?: Prisma.BudgetInclude<ExtArgs> | null
1770
- /**
1771
- * The data needed to update a Budget.
1772
- */
1773
- data: Prisma.XOR<Prisma.BudgetUpdateInput, Prisma.BudgetUncheckedUpdateInput>
1774
- /**
1775
- * Choose, which Budget to update.
1776
- */
1777
- where: Prisma.BudgetWhereUniqueInput
1778
- }
1779
-
1780
- /**
1781
- * Budget updateMany
1782
- */
1783
- export type BudgetUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1784
- /**
1785
- * The data used to update Budgets.
1786
- */
1787
- data: Prisma.XOR<Prisma.BudgetUpdateManyMutationInput, Prisma.BudgetUncheckedUpdateManyInput>
1788
- /**
1789
- * Filter which Budgets to update
1790
- */
1791
- where?: Prisma.BudgetWhereInput
1792
- /**
1793
- * Limit how many Budgets to update.
1794
- */
1795
- limit?: number
1796
- }
1797
-
1798
- /**
1799
- * Budget updateManyAndReturn
1800
- */
1801
- export type BudgetUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1802
- /**
1803
- * Select specific fields to fetch from the Budget
1804
- */
1805
- select?: Prisma.BudgetSelectUpdateManyAndReturn<ExtArgs> | null
1806
- /**
1807
- * Omit specific fields from the Budget
1808
- */
1809
- omit?: Prisma.BudgetOmit<ExtArgs> | null
1810
- /**
1811
- * The data used to update Budgets.
1812
- */
1813
- data: Prisma.XOR<Prisma.BudgetUpdateManyMutationInput, Prisma.BudgetUncheckedUpdateManyInput>
1814
- /**
1815
- * Filter which Budgets to update
1816
- */
1817
- where?: Prisma.BudgetWhereInput
1818
- /**
1819
- * Limit how many Budgets to update.
1820
- */
1821
- limit?: number
1822
- }
1823
-
1824
- /**
1825
- * Budget upsert
1826
- */
1827
- export type BudgetUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1828
- /**
1829
- * Select specific fields to fetch from the Budget
1830
- */
1831
- select?: Prisma.BudgetSelect<ExtArgs> | null
1832
- /**
1833
- * Omit specific fields from the Budget
1834
- */
1835
- omit?: Prisma.BudgetOmit<ExtArgs> | null
1836
- /**
1837
- * Choose, which related nodes to fetch as well
1838
- */
1839
- include?: Prisma.BudgetInclude<ExtArgs> | null
1840
- /**
1841
- * The filter to search for the Budget to update in case it exists.
1842
- */
1843
- where: Prisma.BudgetWhereUniqueInput
1844
- /**
1845
- * In case the Budget found by the `where` argument doesn't exist, create a new Budget with this data.
1846
- */
1847
- create: Prisma.XOR<Prisma.BudgetCreateInput, Prisma.BudgetUncheckedCreateInput>
1848
- /**
1849
- * In case the Budget was found with the provided `where` argument, update it with this data.
1850
- */
1851
- update: Prisma.XOR<Prisma.BudgetUpdateInput, Prisma.BudgetUncheckedUpdateInput>
1852
- }
1853
-
1854
- /**
1855
- * Budget delete
1856
- */
1857
- export type BudgetDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1858
- /**
1859
- * Select specific fields to fetch from the Budget
1860
- */
1861
- select?: Prisma.BudgetSelect<ExtArgs> | null
1862
- /**
1863
- * Omit specific fields from the Budget
1864
- */
1865
- omit?: Prisma.BudgetOmit<ExtArgs> | null
1866
- /**
1867
- * Choose, which related nodes to fetch as well
1868
- */
1869
- include?: Prisma.BudgetInclude<ExtArgs> | null
1870
- /**
1871
- * Filter which Budget to delete.
1872
- */
1873
- where: Prisma.BudgetWhereUniqueInput
1874
- }
1875
-
1876
- /**
1877
- * Budget deleteMany
1878
- */
1879
- export type BudgetDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1880
- /**
1881
- * Filter which Budgets to delete
1882
- */
1883
- where?: Prisma.BudgetWhereInput
1884
- /**
1885
- * Limit how many Budgets to delete.
1886
- */
1887
- limit?: number
1888
- }
1889
-
1890
- /**
1891
- * Budget.department_budgets
1892
- */
1893
- export type Budget$department_budgetsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1894
- /**
1895
- * Select specific fields to fetch from the DepartmentBudget
1896
- */
1897
- select?: Prisma.DepartmentBudgetSelect<ExtArgs> | null
1898
- /**
1899
- * Omit specific fields from the DepartmentBudget
1900
- */
1901
- omit?: Prisma.DepartmentBudgetOmit<ExtArgs> | null
1902
- /**
1903
- * Choose, which related nodes to fetch as well
1904
- */
1905
- include?: Prisma.DepartmentBudgetInclude<ExtArgs> | null
1906
- where?: Prisma.DepartmentBudgetWhereInput
1907
- orderBy?: Prisma.DepartmentBudgetOrderByWithRelationInput | Prisma.DepartmentBudgetOrderByWithRelationInput[]
1908
- cursor?: Prisma.DepartmentBudgetWhereUniqueInput
1909
- take?: number
1910
- skip?: number
1911
- distinct?: Prisma.DepartmentBudgetScalarFieldEnum | Prisma.DepartmentBudgetScalarFieldEnum[]
1912
- }
1913
-
1914
- /**
1915
- * Budget.supporting_documents
1916
- */
1917
- export type Budget$supporting_documentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1918
- /**
1919
- * Select specific fields to fetch from the SupportingDocument
1920
- */
1921
- select?: Prisma.SupportingDocumentSelect<ExtArgs> | null
1922
- /**
1923
- * Omit specific fields from the SupportingDocument
1924
- */
1925
- omit?: Prisma.SupportingDocumentOmit<ExtArgs> | null
1926
- /**
1927
- * Choose, which related nodes to fetch as well
1928
- */
1929
- include?: Prisma.SupportingDocumentInclude<ExtArgs> | null
1930
- where?: Prisma.SupportingDocumentWhereInput
1931
- orderBy?: Prisma.SupportingDocumentOrderByWithRelationInput | Prisma.SupportingDocumentOrderByWithRelationInput[]
1932
- cursor?: Prisma.SupportingDocumentWhereUniqueInput
1933
- take?: number
1934
- skip?: number
1935
- distinct?: Prisma.SupportingDocumentScalarFieldEnum | Prisma.SupportingDocumentScalarFieldEnum[]
1936
- }
1937
-
1938
- /**
1939
- * Budget without action
1940
- */
1941
- export type BudgetDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1942
- /**
1943
- * Select specific fields to fetch from the Budget
1944
- */
1945
- select?: Prisma.BudgetSelect<ExtArgs> | null
1946
- /**
1947
- * Omit specific fields from the Budget
1948
- */
1949
- omit?: Prisma.BudgetOmit<ExtArgs> | null
1950
- /**
1951
- * Choose, which related nodes to fetch as well
1952
- */
1953
- include?: Prisma.BudgetInclude<ExtArgs> | null
1954
- }