procbay-schema 1.0.171 → 1.0.175
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -22
- package/prisma/migrations/20260518124524_added_new_template_builder_changes/migration.sql +26 -0
- package/prisma/schema.prisma +17 -7
- package/scripts/sync-schemas.js +1 -5
- package/src/create-prisma-client.js +9 -49
- package/src/prisma/client.d.ts +1 -0
- package/src/prisma/client.js +4 -0
- package/src/prisma/default.d.ts +1 -0
- package/src/prisma/default.js +4 -0
- package/src/prisma/edge.d.ts +1 -0
- package/src/prisma/edge.js +2911 -0
- package/src/{generated/prisma/internal/prismaNamespaceBrowser.ts → prisma/index-browser.js} +991 -739
- package/src/prisma/index.d.ts +286785 -0
- package/src/prisma/index.js +2940 -2
- package/src/prisma/libquery_engine-darwin.dylib.node +0 -0
- package/src/prisma/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/src/prisma/package.json +140 -0
- package/src/prisma/query_engine-windows.dll.node +0 -0
- package/src/prisma/runtime/edge-esm.js +34 -0
- package/src/prisma/runtime/edge.js +34 -0
- package/src/prisma/runtime/index-browser.d.ts +370 -0
- package/src/prisma/runtime/index-browser.js +16 -0
- package/src/prisma/runtime/library.d.ts +3647 -0
- package/src/prisma/runtime/library.js +146 -0
- package/src/prisma/runtime/react-native.js +83 -0
- package/src/prisma/runtime/wasm.js +35 -0
- package/src/prisma/schema.prisma +3831 -0
- package/src/prisma/wasm.d.ts +1 -0
- package/src/prisma/wasm.js +2873 -0
- package/prisma/migrations/20260515130204_updated_user_approval_management_schema/migration.sql +0 -55
- package/prisma.config.js +0 -19
- package/src/generated/prisma/browser.ts +0 -574
- package/src/generated/prisma/client.bundle.mjs +0 -6733
- package/src/generated/prisma/client.ts +0 -598
- package/src/generated/prisma/commonInputTypes.ts +0 -2911
- package/src/generated/prisma/enums.ts +0 -730
- package/src/generated/prisma/internal/class.ts +0 -1304
- package/src/generated/prisma/internal/prismaNamespace.ts +0 -12506
- package/src/generated/prisma/models/ActivityLog.ts +0 -1590
- package/src/generated/prisma/models/AdminAlert.ts +0 -1547
- package/src/generated/prisma/models/ApprovalCondition.ts +0 -2085
- package/src/generated/prisma/models/ApprovalDelegation.ts +0 -3057
- package/src/generated/prisma/models/ApprovalDelegationDelegate.ts +0 -1784
- package/src/generated/prisma/models/ApprovalHierarchy.ts +0 -3083
- package/src/generated/prisma/models/ApprovalJourney.ts +0 -2867
- package/src/generated/prisma/models/ApprovalLevel.ts +0 -2335
- package/src/generated/prisma/models/ApprovalLevelEscalation.ts +0 -2128
- package/src/generated/prisma/models/ApprovalLevelEscalationUser.ts +0 -1863
- package/src/generated/prisma/models/ApprovalLevelUser.ts +0 -1863
- package/src/generated/prisma/models/ApprovalManagement.ts +0 -1728
- package/src/generated/prisma/models/Attribute.ts +0 -2075
- package/src/generated/prisma/models/AttributeValue.ts +0 -1882
- package/src/generated/prisma/models/Bid.ts +0 -2719
- package/src/generated/prisma/models/BidLog.ts +0 -3560
- package/src/generated/prisma/models/BlanketPurchaseOrder.ts +0 -3527
- package/src/generated/prisma/models/BlanketPurchaseOrderItem.ts +0 -2532
- package/src/generated/prisma/models/BlanketPurchaseOrderRelease.ts +0 -2713
- package/src/generated/prisma/models/BoqEventItem.ts +0 -4056
- package/src/generated/prisma/models/Budget.ts +0 -1954
- package/src/generated/prisma/models/BudgetHold.ts +0 -1904
- package/src/generated/prisma/models/BusinessEntity.ts +0 -3901
- package/src/generated/prisma/models/BusinessEntityDepartment.ts +0 -2032
- package/src/generated/prisma/models/BusinessEntityLocation.ts +0 -1567
- package/src/generated/prisma/models/Catalogue.ts +0 -2081
- package/src/generated/prisma/models/CatalogueCart.ts +0 -2305
- package/src/generated/prisma/models/CatalogueVendor.ts +0 -2252
- package/src/generated/prisma/models/Category.ts +0 -3091
- package/src/generated/prisma/models/CategoryBudget.ts +0 -2690
- package/src/generated/prisma/models/City.ts +0 -2180
- package/src/generated/prisma/models/Cms.ts +0 -1492
- package/src/generated/prisma/models/ContactUs.ts +0 -1654
- package/src/generated/prisma/models/Conversation.ts +0 -2389
- package/src/generated/prisma/models/ConversationParticipant.ts +0 -1833
- package/src/generated/prisma/models/CounterOffer.ts +0 -2156
- package/src/generated/prisma/models/Country.ts +0 -3394
- package/src/generated/prisma/models/Currency.ts +0 -1642
- package/src/generated/prisma/models/CustomerNotification.ts +0 -1653
- package/src/generated/prisma/models/Department.ts +0 -2372
- package/src/generated/prisma/models/DepartmentBudget.ts +0 -2494
- package/src/generated/prisma/models/DynamicForm.ts +0 -2021
- package/src/generated/prisma/models/EmailTemplate.ts +0 -1516
- package/src/generated/prisma/models/Event.ts +0 -6819
- package/src/generated/prisma/models/EventConfigurations.ts +0 -1736
- package/src/generated/prisma/models/EventCriteria.ts +0 -2134
- package/src/generated/prisma/models/EventItems.ts +0 -2821
- package/src/generated/prisma/models/EventRfiForm.ts +0 -2020
- package/src/generated/prisma/models/EventRfiFormLog.ts +0 -2608
- package/src/generated/prisma/models/EventStrategies.ts +0 -1857
- package/src/generated/prisma/models/EventVendorCriteria.ts +0 -2186
- package/src/generated/prisma/models/EventVendors.ts +0 -3446
- package/src/generated/prisma/models/Expense.ts +0 -1625
- package/src/generated/prisma/models/ExportLog.ts +0 -1822
- package/src/generated/prisma/models/Faq.ts +0 -1753
- package/src/generated/prisma/models/FaqCategory.ts +0 -1610
- package/src/generated/prisma/models/FiscalYear.ts +0 -1460
- package/src/generated/prisma/models/FormMaster.ts +0 -1831
- package/src/generated/prisma/models/GRN.ts +0 -3354
- package/src/generated/prisma/models/GRNItem.ts +0 -2119
- package/src/generated/prisma/models/Industry.ts +0 -1642
- package/src/generated/prisma/models/Invoice.ts +0 -2949
- package/src/generated/prisma/models/InvoiceItem.ts +0 -2397
- package/src/generated/prisma/models/Item.ts +0 -10644
- package/src/generated/prisma/models/ItemAttribute.ts +0 -1750
- package/src/generated/prisma/models/ItemAttributeValue.ts +0 -1802
- package/src/generated/prisma/models/ItemDocument.ts +0 -1590
- package/src/generated/prisma/models/Location.ts +0 -2711
- package/src/generated/prisma/models/Message.ts +0 -2744
- package/src/generated/prisma/models/MessageRecipient.ts +0 -1759
- package/src/generated/prisma/models/Module.ts +0 -1630
- package/src/generated/prisma/models/Permission.ts +0 -1640
- package/src/generated/prisma/models/PurchaseIntake.ts +0 -4672
- package/src/generated/prisma/models/PurchaseIntakeItem.ts +0 -2366
- package/src/generated/prisma/models/PurchaseOrder.ts +0 -4012
- package/src/generated/prisma/models/PurchaseOrderActivityLog.ts +0 -1720
- package/src/generated/prisma/models/PurchaseOrderItem.ts +0 -2623
- package/src/generated/prisma/models/Quotation.ts +0 -3207
- package/src/generated/prisma/models/QuotationLog.ts +0 -3239
- package/src/generated/prisma/models/Region.ts +0 -1746
- package/src/generated/prisma/models/RequestedCatalogue.ts +0 -1618
- package/src/generated/prisma/models/RequestedCatalogueDetails.ts +0 -2252
- package/src/generated/prisma/models/Role.ts +0 -1907
- package/src/generated/prisma/models/RolePermission.ts +0 -1737
- package/src/generated/prisma/models/SendBack.ts +0 -1830
- package/src/generated/prisma/models/SerialNumberConfiguration.ts +0 -1254
- package/src/generated/prisma/models/SmtpConfig.ts +0 -1522
- package/src/generated/prisma/models/State.ts +0 -2174
- package/src/generated/prisma/models/Strategies.ts +0 -1791
- package/src/generated/prisma/models/SubModule.ts +0 -1450
- package/src/generated/prisma/models/Subregion.ts +0 -1870
- package/src/generated/prisma/models/SupportCategory.ts +0 -1712
- package/src/generated/prisma/models/SupportTicket.ts +0 -2478
- package/src/generated/prisma/models/SupportingDocument.ts +0 -2283
- package/src/generated/prisma/models/Template.ts +0 -2429
- package/src/generated/prisma/models/TemplateField.ts +0 -1916
- package/src/generated/prisma/models/TemplateStrategies.ts +0 -1614
- package/src/generated/prisma/models/TenantConfiguration.ts +0 -1694
- package/src/generated/prisma/models/TicketAssignment.ts +0 -1742
- package/src/generated/prisma/models/TicketHistory.ts +0 -1789
- package/src/generated/prisma/models/TicketReply.ts +0 -1640
- package/src/generated/prisma/models/Uom.ts +0 -1752
- package/src/generated/prisma/models/UomCategory.ts +0 -1558
- package/src/generated/prisma/models/UploadLog.ts +0 -1731
- package/src/generated/prisma/models/User.ts +0 -19397
- package/src/generated/prisma/models/UserDepartmentEntity.ts +0 -2099
- package/src/generated/prisma/models/UserEventConfiguration.ts +0 -1370
- package/src/generated/prisma/models/UserLoginActivity.ts +0 -1693
- package/src/generated/prisma/models/UserRole.ts +0 -1696
- package/src/generated/prisma/models/UserVendorSocketTokens.ts +0 -1450
- package/src/generated/prisma/models/VendorReference.ts +0 -1707
- package/src/generated/prisma/models.ts +0 -122
|
@@ -1,2372 +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 `Department` 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 Department
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
export type DepartmentModel = runtime.Types.Result.DefaultSelection<Prisma.$DepartmentPayload>
|
|
20
|
-
|
|
21
|
-
export type AggregateDepartment = {
|
|
22
|
-
_count: DepartmentCountAggregateOutputType | null
|
|
23
|
-
_avg: DepartmentAvgAggregateOutputType | null
|
|
24
|
-
_sum: DepartmentSumAggregateOutputType | null
|
|
25
|
-
_min: DepartmentMinAggregateOutputType | null
|
|
26
|
-
_max: DepartmentMaxAggregateOutputType | null
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type DepartmentAvgAggregateOutputType = {
|
|
30
|
-
id: number | null
|
|
31
|
-
department_head: number | null
|
|
32
|
-
budget_manager: number | null
|
|
33
|
-
created_by: number | null
|
|
34
|
-
updated_by: number | null
|
|
35
|
-
deleted_by: number | null
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export type DepartmentSumAggregateOutputType = {
|
|
39
|
-
id: number | null
|
|
40
|
-
department_head: number | null
|
|
41
|
-
budget_manager: number | null
|
|
42
|
-
created_by: number | null
|
|
43
|
-
updated_by: number | null
|
|
44
|
-
deleted_by: number | null
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export type DepartmentMinAggregateOutputType = {
|
|
48
|
-
id: number | null
|
|
49
|
-
uuid: string | null
|
|
50
|
-
department_code: string | null
|
|
51
|
-
department_name: string | null
|
|
52
|
-
department_slug: string | null
|
|
53
|
-
department_head: number | null
|
|
54
|
-
budget_manager: number | null
|
|
55
|
-
description: string | null
|
|
56
|
-
is_active: boolean | null
|
|
57
|
-
created_at: Date | null
|
|
58
|
-
created_by: number | null
|
|
59
|
-
updated_at: Date | null
|
|
60
|
-
updated_by: number | null
|
|
61
|
-
is_deleted: boolean | null
|
|
62
|
-
deleted_at: Date | null
|
|
63
|
-
deleted_by: number | null
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export type DepartmentMaxAggregateOutputType = {
|
|
67
|
-
id: number | null
|
|
68
|
-
uuid: string | null
|
|
69
|
-
department_code: string | null
|
|
70
|
-
department_name: string | null
|
|
71
|
-
department_slug: string | null
|
|
72
|
-
department_head: number | null
|
|
73
|
-
budget_manager: number | null
|
|
74
|
-
description: string | null
|
|
75
|
-
is_active: boolean | null
|
|
76
|
-
created_at: Date | null
|
|
77
|
-
created_by: number | null
|
|
78
|
-
updated_at: Date | null
|
|
79
|
-
updated_by: number | null
|
|
80
|
-
is_deleted: boolean | null
|
|
81
|
-
deleted_at: Date | null
|
|
82
|
-
deleted_by: number | null
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export type DepartmentCountAggregateOutputType = {
|
|
86
|
-
id: number
|
|
87
|
-
uuid: number
|
|
88
|
-
department_code: number
|
|
89
|
-
department_name: number
|
|
90
|
-
department_slug: number
|
|
91
|
-
department_head: number
|
|
92
|
-
budget_manager: number
|
|
93
|
-
description: number
|
|
94
|
-
is_active: number
|
|
95
|
-
created_at: number
|
|
96
|
-
created_by: number
|
|
97
|
-
updated_at: number
|
|
98
|
-
updated_by: number
|
|
99
|
-
is_deleted: number
|
|
100
|
-
deleted_at: number
|
|
101
|
-
deleted_by: number
|
|
102
|
-
_all: number
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
export type DepartmentAvgAggregateInputType = {
|
|
107
|
-
id?: true
|
|
108
|
-
department_head?: true
|
|
109
|
-
budget_manager?: true
|
|
110
|
-
created_by?: true
|
|
111
|
-
updated_by?: true
|
|
112
|
-
deleted_by?: true
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export type DepartmentSumAggregateInputType = {
|
|
116
|
-
id?: true
|
|
117
|
-
department_head?: true
|
|
118
|
-
budget_manager?: true
|
|
119
|
-
created_by?: true
|
|
120
|
-
updated_by?: true
|
|
121
|
-
deleted_by?: true
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export type DepartmentMinAggregateInputType = {
|
|
125
|
-
id?: true
|
|
126
|
-
uuid?: true
|
|
127
|
-
department_code?: true
|
|
128
|
-
department_name?: true
|
|
129
|
-
department_slug?: true
|
|
130
|
-
department_head?: true
|
|
131
|
-
budget_manager?: true
|
|
132
|
-
description?: true
|
|
133
|
-
is_active?: true
|
|
134
|
-
created_at?: true
|
|
135
|
-
created_by?: true
|
|
136
|
-
updated_at?: true
|
|
137
|
-
updated_by?: true
|
|
138
|
-
is_deleted?: true
|
|
139
|
-
deleted_at?: true
|
|
140
|
-
deleted_by?: true
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export type DepartmentMaxAggregateInputType = {
|
|
144
|
-
id?: true
|
|
145
|
-
uuid?: true
|
|
146
|
-
department_code?: true
|
|
147
|
-
department_name?: true
|
|
148
|
-
department_slug?: true
|
|
149
|
-
department_head?: true
|
|
150
|
-
budget_manager?: true
|
|
151
|
-
description?: true
|
|
152
|
-
is_active?: true
|
|
153
|
-
created_at?: true
|
|
154
|
-
created_by?: true
|
|
155
|
-
updated_at?: true
|
|
156
|
-
updated_by?: true
|
|
157
|
-
is_deleted?: true
|
|
158
|
-
deleted_at?: true
|
|
159
|
-
deleted_by?: true
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export type DepartmentCountAggregateInputType = {
|
|
163
|
-
id?: true
|
|
164
|
-
uuid?: true
|
|
165
|
-
department_code?: true
|
|
166
|
-
department_name?: true
|
|
167
|
-
department_slug?: true
|
|
168
|
-
department_head?: true
|
|
169
|
-
budget_manager?: true
|
|
170
|
-
description?: true
|
|
171
|
-
is_active?: true
|
|
172
|
-
created_at?: true
|
|
173
|
-
created_by?: true
|
|
174
|
-
updated_at?: true
|
|
175
|
-
updated_by?: true
|
|
176
|
-
is_deleted?: true
|
|
177
|
-
deleted_at?: true
|
|
178
|
-
deleted_by?: true
|
|
179
|
-
_all?: true
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export type DepartmentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
183
|
-
/**
|
|
184
|
-
* Filter which Department to aggregate.
|
|
185
|
-
*/
|
|
186
|
-
where?: Prisma.DepartmentWhereInput
|
|
187
|
-
/**
|
|
188
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
189
|
-
*
|
|
190
|
-
* Determine the order of Departments to fetch.
|
|
191
|
-
*/
|
|
192
|
-
orderBy?: Prisma.DepartmentOrderByWithRelationInput | Prisma.DepartmentOrderByWithRelationInput[]
|
|
193
|
-
/**
|
|
194
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
195
|
-
*
|
|
196
|
-
* Sets the start position
|
|
197
|
-
*/
|
|
198
|
-
cursor?: Prisma.DepartmentWhereUniqueInput
|
|
199
|
-
/**
|
|
200
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
201
|
-
*
|
|
202
|
-
* Take `±n` Departments from the position of the cursor.
|
|
203
|
-
*/
|
|
204
|
-
take?: number
|
|
205
|
-
/**
|
|
206
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
207
|
-
*
|
|
208
|
-
* Skip the first `n` Departments.
|
|
209
|
-
*/
|
|
210
|
-
skip?: number
|
|
211
|
-
/**
|
|
212
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
213
|
-
*
|
|
214
|
-
* Count returned Departments
|
|
215
|
-
**/
|
|
216
|
-
_count?: true | DepartmentCountAggregateInputType
|
|
217
|
-
/**
|
|
218
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
219
|
-
*
|
|
220
|
-
* Select which fields to average
|
|
221
|
-
**/
|
|
222
|
-
_avg?: DepartmentAvgAggregateInputType
|
|
223
|
-
/**
|
|
224
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
225
|
-
*
|
|
226
|
-
* Select which fields to sum
|
|
227
|
-
**/
|
|
228
|
-
_sum?: DepartmentSumAggregateInputType
|
|
229
|
-
/**
|
|
230
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
231
|
-
*
|
|
232
|
-
* Select which fields to find the minimum value
|
|
233
|
-
**/
|
|
234
|
-
_min?: DepartmentMinAggregateInputType
|
|
235
|
-
/**
|
|
236
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
237
|
-
*
|
|
238
|
-
* Select which fields to find the maximum value
|
|
239
|
-
**/
|
|
240
|
-
_max?: DepartmentMaxAggregateInputType
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
export type GetDepartmentAggregateType<T extends DepartmentAggregateArgs> = {
|
|
244
|
-
[P in keyof T & keyof AggregateDepartment]: P extends '_count' | 'count'
|
|
245
|
-
? T[P] extends true
|
|
246
|
-
? number
|
|
247
|
-
: Prisma.GetScalarType<T[P], AggregateDepartment[P]>
|
|
248
|
-
: Prisma.GetScalarType<T[P], AggregateDepartment[P]>
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
export type DepartmentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
255
|
-
where?: Prisma.DepartmentWhereInput
|
|
256
|
-
orderBy?: Prisma.DepartmentOrderByWithAggregationInput | Prisma.DepartmentOrderByWithAggregationInput[]
|
|
257
|
-
by: Prisma.DepartmentScalarFieldEnum[] | Prisma.DepartmentScalarFieldEnum
|
|
258
|
-
having?: Prisma.DepartmentScalarWhereWithAggregatesInput
|
|
259
|
-
take?: number
|
|
260
|
-
skip?: number
|
|
261
|
-
_count?: DepartmentCountAggregateInputType | true
|
|
262
|
-
_avg?: DepartmentAvgAggregateInputType
|
|
263
|
-
_sum?: DepartmentSumAggregateInputType
|
|
264
|
-
_min?: DepartmentMinAggregateInputType
|
|
265
|
-
_max?: DepartmentMaxAggregateInputType
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export type DepartmentGroupByOutputType = {
|
|
269
|
-
id: number
|
|
270
|
-
uuid: string | null
|
|
271
|
-
department_code: string | null
|
|
272
|
-
department_name: string | null
|
|
273
|
-
department_slug: string | null
|
|
274
|
-
department_head: number | null
|
|
275
|
-
budget_manager: number | null
|
|
276
|
-
description: string | null
|
|
277
|
-
is_active: boolean
|
|
278
|
-
created_at: Date
|
|
279
|
-
created_by: number | null
|
|
280
|
-
updated_at: Date | null
|
|
281
|
-
updated_by: number | null
|
|
282
|
-
is_deleted: boolean
|
|
283
|
-
deleted_at: Date | null
|
|
284
|
-
deleted_by: number | null
|
|
285
|
-
_count: DepartmentCountAggregateOutputType | null
|
|
286
|
-
_avg: DepartmentAvgAggregateOutputType | null
|
|
287
|
-
_sum: DepartmentSumAggregateOutputType | null
|
|
288
|
-
_min: DepartmentMinAggregateOutputType | null
|
|
289
|
-
_max: DepartmentMaxAggregateOutputType | null
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
export type GetDepartmentGroupByPayload<T extends DepartmentGroupByArgs> = Prisma.PrismaPromise<
|
|
293
|
-
Array<
|
|
294
|
-
Prisma.PickEnumerable<DepartmentGroupByOutputType, T['by']> &
|
|
295
|
-
{
|
|
296
|
-
[P in ((keyof T) & (keyof DepartmentGroupByOutputType))]: P extends '_count'
|
|
297
|
-
? T[P] extends boolean
|
|
298
|
-
? number
|
|
299
|
-
: Prisma.GetScalarType<T[P], DepartmentGroupByOutputType[P]>
|
|
300
|
-
: Prisma.GetScalarType<T[P], DepartmentGroupByOutputType[P]>
|
|
301
|
-
}
|
|
302
|
-
>
|
|
303
|
-
>
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
export type DepartmentWhereInput = {
|
|
308
|
-
AND?: Prisma.DepartmentWhereInput | Prisma.DepartmentWhereInput[]
|
|
309
|
-
OR?: Prisma.DepartmentWhereInput[]
|
|
310
|
-
NOT?: Prisma.DepartmentWhereInput | Prisma.DepartmentWhereInput[]
|
|
311
|
-
id?: Prisma.IntFilter<"Department"> | number
|
|
312
|
-
uuid?: Prisma.StringNullableFilter<"Department"> | string | null
|
|
313
|
-
department_code?: Prisma.StringNullableFilter<"Department"> | string | null
|
|
314
|
-
department_name?: Prisma.StringNullableFilter<"Department"> | string | null
|
|
315
|
-
department_slug?: Prisma.StringNullableFilter<"Department"> | string | null
|
|
316
|
-
department_head?: Prisma.IntNullableFilter<"Department"> | number | null
|
|
317
|
-
budget_manager?: Prisma.IntNullableFilter<"Department"> | number | null
|
|
318
|
-
description?: Prisma.StringNullableFilter<"Department"> | string | null
|
|
319
|
-
is_active?: Prisma.BoolFilter<"Department"> | boolean
|
|
320
|
-
created_at?: Prisma.DateTimeFilter<"Department"> | Date | string
|
|
321
|
-
created_by?: Prisma.IntNullableFilter<"Department"> | number | null
|
|
322
|
-
updated_at?: Prisma.DateTimeNullableFilter<"Department"> | Date | string | null
|
|
323
|
-
updated_by?: Prisma.IntNullableFilter<"Department"> | number | null
|
|
324
|
-
is_deleted?: Prisma.BoolFilter<"Department"> | boolean
|
|
325
|
-
deleted_at?: Prisma.DateTimeNullableFilter<"Department"> | Date | string | null
|
|
326
|
-
deleted_by?: Prisma.IntNullableFilter<"Department"> | number | null
|
|
327
|
-
department_head_user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
|
328
|
-
budget_manager_user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
|
329
|
-
department_budget?: Prisma.DepartmentBudgetListRelationFilter
|
|
330
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentListRelationFilter
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
export type DepartmentOrderByWithRelationInput = {
|
|
334
|
-
id?: Prisma.SortOrder
|
|
335
|
-
uuid?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
336
|
-
department_code?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
337
|
-
department_name?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
338
|
-
department_slug?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
339
|
-
department_head?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
340
|
-
budget_manager?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
341
|
-
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
342
|
-
is_active?: Prisma.SortOrder
|
|
343
|
-
created_at?: Prisma.SortOrder
|
|
344
|
-
created_by?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
345
|
-
updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
346
|
-
updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
347
|
-
is_deleted?: Prisma.SortOrder
|
|
348
|
-
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
349
|
-
deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
350
|
-
department_head_user?: Prisma.UserOrderByWithRelationInput
|
|
351
|
-
budget_manager_user?: Prisma.UserOrderByWithRelationInput
|
|
352
|
-
department_budget?: Prisma.DepartmentBudgetOrderByRelationAggregateInput
|
|
353
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentOrderByRelationAggregateInput
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
export type DepartmentWhereUniqueInput = Prisma.AtLeast<{
|
|
357
|
-
id?: number
|
|
358
|
-
uuid?: string
|
|
359
|
-
department_code?: string
|
|
360
|
-
department_slug?: string
|
|
361
|
-
AND?: Prisma.DepartmentWhereInput | Prisma.DepartmentWhereInput[]
|
|
362
|
-
OR?: Prisma.DepartmentWhereInput[]
|
|
363
|
-
NOT?: Prisma.DepartmentWhereInput | Prisma.DepartmentWhereInput[]
|
|
364
|
-
department_name?: Prisma.StringNullableFilter<"Department"> | string | null
|
|
365
|
-
department_head?: Prisma.IntNullableFilter<"Department"> | number | null
|
|
366
|
-
budget_manager?: Prisma.IntNullableFilter<"Department"> | number | null
|
|
367
|
-
description?: Prisma.StringNullableFilter<"Department"> | string | null
|
|
368
|
-
is_active?: Prisma.BoolFilter<"Department"> | boolean
|
|
369
|
-
created_at?: Prisma.DateTimeFilter<"Department"> | Date | string
|
|
370
|
-
created_by?: Prisma.IntNullableFilter<"Department"> | number | null
|
|
371
|
-
updated_at?: Prisma.DateTimeNullableFilter<"Department"> | Date | string | null
|
|
372
|
-
updated_by?: Prisma.IntNullableFilter<"Department"> | number | null
|
|
373
|
-
is_deleted?: Prisma.BoolFilter<"Department"> | boolean
|
|
374
|
-
deleted_at?: Prisma.DateTimeNullableFilter<"Department"> | Date | string | null
|
|
375
|
-
deleted_by?: Prisma.IntNullableFilter<"Department"> | number | null
|
|
376
|
-
department_head_user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
|
377
|
-
budget_manager_user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
|
378
|
-
department_budget?: Prisma.DepartmentBudgetListRelationFilter
|
|
379
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentListRelationFilter
|
|
380
|
-
}, "id" | "uuid" | "department_code" | "department_slug">
|
|
381
|
-
|
|
382
|
-
export type DepartmentOrderByWithAggregationInput = {
|
|
383
|
-
id?: Prisma.SortOrder
|
|
384
|
-
uuid?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
385
|
-
department_code?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
386
|
-
department_name?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
387
|
-
department_slug?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
388
|
-
department_head?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
389
|
-
budget_manager?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
390
|
-
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
391
|
-
is_active?: Prisma.SortOrder
|
|
392
|
-
created_at?: Prisma.SortOrder
|
|
393
|
-
created_by?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
394
|
-
updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
395
|
-
updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
396
|
-
is_deleted?: Prisma.SortOrder
|
|
397
|
-
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
398
|
-
deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
399
|
-
_count?: Prisma.DepartmentCountOrderByAggregateInput
|
|
400
|
-
_avg?: Prisma.DepartmentAvgOrderByAggregateInput
|
|
401
|
-
_max?: Prisma.DepartmentMaxOrderByAggregateInput
|
|
402
|
-
_min?: Prisma.DepartmentMinOrderByAggregateInput
|
|
403
|
-
_sum?: Prisma.DepartmentSumOrderByAggregateInput
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
export type DepartmentScalarWhereWithAggregatesInput = {
|
|
407
|
-
AND?: Prisma.DepartmentScalarWhereWithAggregatesInput | Prisma.DepartmentScalarWhereWithAggregatesInput[]
|
|
408
|
-
OR?: Prisma.DepartmentScalarWhereWithAggregatesInput[]
|
|
409
|
-
NOT?: Prisma.DepartmentScalarWhereWithAggregatesInput | Prisma.DepartmentScalarWhereWithAggregatesInput[]
|
|
410
|
-
id?: Prisma.IntWithAggregatesFilter<"Department"> | number
|
|
411
|
-
uuid?: Prisma.StringNullableWithAggregatesFilter<"Department"> | string | null
|
|
412
|
-
department_code?: Prisma.StringNullableWithAggregatesFilter<"Department"> | string | null
|
|
413
|
-
department_name?: Prisma.StringNullableWithAggregatesFilter<"Department"> | string | null
|
|
414
|
-
department_slug?: Prisma.StringNullableWithAggregatesFilter<"Department"> | string | null
|
|
415
|
-
department_head?: Prisma.IntNullableWithAggregatesFilter<"Department"> | number | null
|
|
416
|
-
budget_manager?: Prisma.IntNullableWithAggregatesFilter<"Department"> | number | null
|
|
417
|
-
description?: Prisma.StringNullableWithAggregatesFilter<"Department"> | string | null
|
|
418
|
-
is_active?: Prisma.BoolWithAggregatesFilter<"Department"> | boolean
|
|
419
|
-
created_at?: Prisma.DateTimeWithAggregatesFilter<"Department"> | Date | string
|
|
420
|
-
created_by?: Prisma.IntNullableWithAggregatesFilter<"Department"> | number | null
|
|
421
|
-
updated_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Department"> | Date | string | null
|
|
422
|
-
updated_by?: Prisma.IntNullableWithAggregatesFilter<"Department"> | number | null
|
|
423
|
-
is_deleted?: Prisma.BoolWithAggregatesFilter<"Department"> | boolean
|
|
424
|
-
deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Department"> | Date | string | null
|
|
425
|
-
deleted_by?: Prisma.IntNullableWithAggregatesFilter<"Department"> | number | null
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
export type DepartmentCreateInput = {
|
|
429
|
-
uuid?: string | null
|
|
430
|
-
department_code?: string | null
|
|
431
|
-
department_name?: string | null
|
|
432
|
-
department_slug?: string | null
|
|
433
|
-
description?: string | null
|
|
434
|
-
is_active?: boolean
|
|
435
|
-
created_at?: Date | string
|
|
436
|
-
created_by?: number | null
|
|
437
|
-
updated_at?: Date | string | null
|
|
438
|
-
updated_by?: number | null
|
|
439
|
-
is_deleted?: boolean
|
|
440
|
-
deleted_at?: Date | string | null
|
|
441
|
-
deleted_by?: number | null
|
|
442
|
-
department_head_user?: Prisma.UserCreateNestedOneWithoutDepartment_headInput
|
|
443
|
-
budget_manager_user?: Prisma.UserCreateNestedOneWithoutBudget_managerInput
|
|
444
|
-
department_budget?: Prisma.DepartmentBudgetCreateNestedManyWithoutDepartmentInput
|
|
445
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentCreateNestedManyWithoutDepartmentInput
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
export type DepartmentUncheckedCreateInput = {
|
|
449
|
-
id?: number
|
|
450
|
-
uuid?: string | null
|
|
451
|
-
department_code?: string | null
|
|
452
|
-
department_name?: string | null
|
|
453
|
-
department_slug?: string | null
|
|
454
|
-
department_head?: number | null
|
|
455
|
-
budget_manager?: number | null
|
|
456
|
-
description?: string | null
|
|
457
|
-
is_active?: boolean
|
|
458
|
-
created_at?: Date | string
|
|
459
|
-
created_by?: number | null
|
|
460
|
-
updated_at?: Date | string | null
|
|
461
|
-
updated_by?: number | null
|
|
462
|
-
is_deleted?: boolean
|
|
463
|
-
deleted_at?: Date | string | null
|
|
464
|
-
deleted_by?: number | null
|
|
465
|
-
department_budget?: Prisma.DepartmentBudgetUncheckedCreateNestedManyWithoutDepartmentInput
|
|
466
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentUncheckedCreateNestedManyWithoutDepartmentInput
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
export type DepartmentUpdateInput = {
|
|
470
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
471
|
-
department_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
472
|
-
department_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
473
|
-
department_slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
474
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
475
|
-
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
476
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
477
|
-
created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
478
|
-
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
479
|
-
updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
480
|
-
is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
481
|
-
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
482
|
-
deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
483
|
-
department_head_user?: Prisma.UserUpdateOneWithoutDepartment_headNestedInput
|
|
484
|
-
budget_manager_user?: Prisma.UserUpdateOneWithoutBudget_managerNestedInput
|
|
485
|
-
department_budget?: Prisma.DepartmentBudgetUpdateManyWithoutDepartmentNestedInput
|
|
486
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentUpdateManyWithoutDepartmentNestedInput
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
export type DepartmentUncheckedUpdateInput = {
|
|
490
|
-
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
491
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
492
|
-
department_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
493
|
-
department_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
494
|
-
department_slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
495
|
-
department_head?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
496
|
-
budget_manager?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
497
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
498
|
-
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
499
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
500
|
-
created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
501
|
-
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
502
|
-
updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
503
|
-
is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
504
|
-
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
505
|
-
deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
506
|
-
department_budget?: Prisma.DepartmentBudgetUncheckedUpdateManyWithoutDepartmentNestedInput
|
|
507
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentUncheckedUpdateManyWithoutDepartmentNestedInput
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
export type DepartmentCreateManyInput = {
|
|
511
|
-
id?: number
|
|
512
|
-
uuid?: string | null
|
|
513
|
-
department_code?: string | null
|
|
514
|
-
department_name?: string | null
|
|
515
|
-
department_slug?: string | null
|
|
516
|
-
department_head?: number | null
|
|
517
|
-
budget_manager?: number | null
|
|
518
|
-
description?: string | null
|
|
519
|
-
is_active?: boolean
|
|
520
|
-
created_at?: Date | string
|
|
521
|
-
created_by?: number | null
|
|
522
|
-
updated_at?: Date | string | null
|
|
523
|
-
updated_by?: number | null
|
|
524
|
-
is_deleted?: boolean
|
|
525
|
-
deleted_at?: Date | string | null
|
|
526
|
-
deleted_by?: number | null
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
export type DepartmentUpdateManyMutationInput = {
|
|
530
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
531
|
-
department_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
532
|
-
department_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
533
|
-
department_slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
534
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
535
|
-
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
536
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
537
|
-
created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
538
|
-
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
539
|
-
updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
540
|
-
is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
541
|
-
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
542
|
-
deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
export type DepartmentUncheckedUpdateManyInput = {
|
|
546
|
-
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
547
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
548
|
-
department_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
549
|
-
department_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
550
|
-
department_slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
551
|
-
department_head?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
552
|
-
budget_manager?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
553
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
554
|
-
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
555
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
556
|
-
created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
557
|
-
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
558
|
-
updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
559
|
-
is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
560
|
-
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
561
|
-
deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
export type DepartmentListRelationFilter = {
|
|
565
|
-
every?: Prisma.DepartmentWhereInput
|
|
566
|
-
some?: Prisma.DepartmentWhereInput
|
|
567
|
-
none?: Prisma.DepartmentWhereInput
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
export type DepartmentOrderByRelationAggregateInput = {
|
|
571
|
-
_count?: Prisma.SortOrder
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
export type DepartmentCountOrderByAggregateInput = {
|
|
575
|
-
id?: Prisma.SortOrder
|
|
576
|
-
uuid?: Prisma.SortOrder
|
|
577
|
-
department_code?: Prisma.SortOrder
|
|
578
|
-
department_name?: Prisma.SortOrder
|
|
579
|
-
department_slug?: Prisma.SortOrder
|
|
580
|
-
department_head?: Prisma.SortOrder
|
|
581
|
-
budget_manager?: Prisma.SortOrder
|
|
582
|
-
description?: Prisma.SortOrder
|
|
583
|
-
is_active?: Prisma.SortOrder
|
|
584
|
-
created_at?: Prisma.SortOrder
|
|
585
|
-
created_by?: Prisma.SortOrder
|
|
586
|
-
updated_at?: Prisma.SortOrder
|
|
587
|
-
updated_by?: Prisma.SortOrder
|
|
588
|
-
is_deleted?: Prisma.SortOrder
|
|
589
|
-
deleted_at?: Prisma.SortOrder
|
|
590
|
-
deleted_by?: Prisma.SortOrder
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
export type DepartmentAvgOrderByAggregateInput = {
|
|
594
|
-
id?: Prisma.SortOrder
|
|
595
|
-
department_head?: Prisma.SortOrder
|
|
596
|
-
budget_manager?: Prisma.SortOrder
|
|
597
|
-
created_by?: Prisma.SortOrder
|
|
598
|
-
updated_by?: Prisma.SortOrder
|
|
599
|
-
deleted_by?: Prisma.SortOrder
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
export type DepartmentMaxOrderByAggregateInput = {
|
|
603
|
-
id?: Prisma.SortOrder
|
|
604
|
-
uuid?: Prisma.SortOrder
|
|
605
|
-
department_code?: Prisma.SortOrder
|
|
606
|
-
department_name?: Prisma.SortOrder
|
|
607
|
-
department_slug?: Prisma.SortOrder
|
|
608
|
-
department_head?: Prisma.SortOrder
|
|
609
|
-
budget_manager?: Prisma.SortOrder
|
|
610
|
-
description?: Prisma.SortOrder
|
|
611
|
-
is_active?: Prisma.SortOrder
|
|
612
|
-
created_at?: Prisma.SortOrder
|
|
613
|
-
created_by?: Prisma.SortOrder
|
|
614
|
-
updated_at?: Prisma.SortOrder
|
|
615
|
-
updated_by?: Prisma.SortOrder
|
|
616
|
-
is_deleted?: Prisma.SortOrder
|
|
617
|
-
deleted_at?: Prisma.SortOrder
|
|
618
|
-
deleted_by?: Prisma.SortOrder
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
export type DepartmentMinOrderByAggregateInput = {
|
|
622
|
-
id?: Prisma.SortOrder
|
|
623
|
-
uuid?: Prisma.SortOrder
|
|
624
|
-
department_code?: Prisma.SortOrder
|
|
625
|
-
department_name?: Prisma.SortOrder
|
|
626
|
-
department_slug?: Prisma.SortOrder
|
|
627
|
-
department_head?: Prisma.SortOrder
|
|
628
|
-
budget_manager?: Prisma.SortOrder
|
|
629
|
-
description?: Prisma.SortOrder
|
|
630
|
-
is_active?: Prisma.SortOrder
|
|
631
|
-
created_at?: Prisma.SortOrder
|
|
632
|
-
created_by?: Prisma.SortOrder
|
|
633
|
-
updated_at?: Prisma.SortOrder
|
|
634
|
-
updated_by?: Prisma.SortOrder
|
|
635
|
-
is_deleted?: Prisma.SortOrder
|
|
636
|
-
deleted_at?: Prisma.SortOrder
|
|
637
|
-
deleted_by?: Prisma.SortOrder
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
export type DepartmentSumOrderByAggregateInput = {
|
|
641
|
-
id?: Prisma.SortOrder
|
|
642
|
-
department_head?: Prisma.SortOrder
|
|
643
|
-
budget_manager?: Prisma.SortOrder
|
|
644
|
-
created_by?: Prisma.SortOrder
|
|
645
|
-
updated_by?: Prisma.SortOrder
|
|
646
|
-
deleted_by?: Prisma.SortOrder
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
export type DepartmentNullableScalarRelationFilter = {
|
|
650
|
-
is?: Prisma.DepartmentWhereInput | null
|
|
651
|
-
isNot?: Prisma.DepartmentWhereInput | null
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
export type DepartmentCreateNestedManyWithoutDepartment_head_userInput = {
|
|
655
|
-
create?: Prisma.XOR<Prisma.DepartmentCreateWithoutDepartment_head_userInput, Prisma.DepartmentUncheckedCreateWithoutDepartment_head_userInput> | Prisma.DepartmentCreateWithoutDepartment_head_userInput[] | Prisma.DepartmentUncheckedCreateWithoutDepartment_head_userInput[]
|
|
656
|
-
connectOrCreate?: Prisma.DepartmentCreateOrConnectWithoutDepartment_head_userInput | Prisma.DepartmentCreateOrConnectWithoutDepartment_head_userInput[]
|
|
657
|
-
createMany?: Prisma.DepartmentCreateManyDepartment_head_userInputEnvelope
|
|
658
|
-
connect?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
export type DepartmentCreateNestedManyWithoutBudget_manager_userInput = {
|
|
662
|
-
create?: Prisma.XOR<Prisma.DepartmentCreateWithoutBudget_manager_userInput, Prisma.DepartmentUncheckedCreateWithoutBudget_manager_userInput> | Prisma.DepartmentCreateWithoutBudget_manager_userInput[] | Prisma.DepartmentUncheckedCreateWithoutBudget_manager_userInput[]
|
|
663
|
-
connectOrCreate?: Prisma.DepartmentCreateOrConnectWithoutBudget_manager_userInput | Prisma.DepartmentCreateOrConnectWithoutBudget_manager_userInput[]
|
|
664
|
-
createMany?: Prisma.DepartmentCreateManyBudget_manager_userInputEnvelope
|
|
665
|
-
connect?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
export type DepartmentUncheckedCreateNestedManyWithoutDepartment_head_userInput = {
|
|
669
|
-
create?: Prisma.XOR<Prisma.DepartmentCreateWithoutDepartment_head_userInput, Prisma.DepartmentUncheckedCreateWithoutDepartment_head_userInput> | Prisma.DepartmentCreateWithoutDepartment_head_userInput[] | Prisma.DepartmentUncheckedCreateWithoutDepartment_head_userInput[]
|
|
670
|
-
connectOrCreate?: Prisma.DepartmentCreateOrConnectWithoutDepartment_head_userInput | Prisma.DepartmentCreateOrConnectWithoutDepartment_head_userInput[]
|
|
671
|
-
createMany?: Prisma.DepartmentCreateManyDepartment_head_userInputEnvelope
|
|
672
|
-
connect?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
export type DepartmentUncheckedCreateNestedManyWithoutBudget_manager_userInput = {
|
|
676
|
-
create?: Prisma.XOR<Prisma.DepartmentCreateWithoutBudget_manager_userInput, Prisma.DepartmentUncheckedCreateWithoutBudget_manager_userInput> | Prisma.DepartmentCreateWithoutBudget_manager_userInput[] | Prisma.DepartmentUncheckedCreateWithoutBudget_manager_userInput[]
|
|
677
|
-
connectOrCreate?: Prisma.DepartmentCreateOrConnectWithoutBudget_manager_userInput | Prisma.DepartmentCreateOrConnectWithoutBudget_manager_userInput[]
|
|
678
|
-
createMany?: Prisma.DepartmentCreateManyBudget_manager_userInputEnvelope
|
|
679
|
-
connect?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
export type DepartmentUpdateManyWithoutDepartment_head_userNestedInput = {
|
|
683
|
-
create?: Prisma.XOR<Prisma.DepartmentCreateWithoutDepartment_head_userInput, Prisma.DepartmentUncheckedCreateWithoutDepartment_head_userInput> | Prisma.DepartmentCreateWithoutDepartment_head_userInput[] | Prisma.DepartmentUncheckedCreateWithoutDepartment_head_userInput[]
|
|
684
|
-
connectOrCreate?: Prisma.DepartmentCreateOrConnectWithoutDepartment_head_userInput | Prisma.DepartmentCreateOrConnectWithoutDepartment_head_userInput[]
|
|
685
|
-
upsert?: Prisma.DepartmentUpsertWithWhereUniqueWithoutDepartment_head_userInput | Prisma.DepartmentUpsertWithWhereUniqueWithoutDepartment_head_userInput[]
|
|
686
|
-
createMany?: Prisma.DepartmentCreateManyDepartment_head_userInputEnvelope
|
|
687
|
-
set?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
688
|
-
disconnect?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
689
|
-
delete?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
690
|
-
connect?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
691
|
-
update?: Prisma.DepartmentUpdateWithWhereUniqueWithoutDepartment_head_userInput | Prisma.DepartmentUpdateWithWhereUniqueWithoutDepartment_head_userInput[]
|
|
692
|
-
updateMany?: Prisma.DepartmentUpdateManyWithWhereWithoutDepartment_head_userInput | Prisma.DepartmentUpdateManyWithWhereWithoutDepartment_head_userInput[]
|
|
693
|
-
deleteMany?: Prisma.DepartmentScalarWhereInput | Prisma.DepartmentScalarWhereInput[]
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
export type DepartmentUpdateManyWithoutBudget_manager_userNestedInput = {
|
|
697
|
-
create?: Prisma.XOR<Prisma.DepartmentCreateWithoutBudget_manager_userInput, Prisma.DepartmentUncheckedCreateWithoutBudget_manager_userInput> | Prisma.DepartmentCreateWithoutBudget_manager_userInput[] | Prisma.DepartmentUncheckedCreateWithoutBudget_manager_userInput[]
|
|
698
|
-
connectOrCreate?: Prisma.DepartmentCreateOrConnectWithoutBudget_manager_userInput | Prisma.DepartmentCreateOrConnectWithoutBudget_manager_userInput[]
|
|
699
|
-
upsert?: Prisma.DepartmentUpsertWithWhereUniqueWithoutBudget_manager_userInput | Prisma.DepartmentUpsertWithWhereUniqueWithoutBudget_manager_userInput[]
|
|
700
|
-
createMany?: Prisma.DepartmentCreateManyBudget_manager_userInputEnvelope
|
|
701
|
-
set?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
702
|
-
disconnect?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
703
|
-
delete?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
704
|
-
connect?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
705
|
-
update?: Prisma.DepartmentUpdateWithWhereUniqueWithoutBudget_manager_userInput | Prisma.DepartmentUpdateWithWhereUniqueWithoutBudget_manager_userInput[]
|
|
706
|
-
updateMany?: Prisma.DepartmentUpdateManyWithWhereWithoutBudget_manager_userInput | Prisma.DepartmentUpdateManyWithWhereWithoutBudget_manager_userInput[]
|
|
707
|
-
deleteMany?: Prisma.DepartmentScalarWhereInput | Prisma.DepartmentScalarWhereInput[]
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
export type DepartmentUncheckedUpdateManyWithoutDepartment_head_userNestedInput = {
|
|
711
|
-
create?: Prisma.XOR<Prisma.DepartmentCreateWithoutDepartment_head_userInput, Prisma.DepartmentUncheckedCreateWithoutDepartment_head_userInput> | Prisma.DepartmentCreateWithoutDepartment_head_userInput[] | Prisma.DepartmentUncheckedCreateWithoutDepartment_head_userInput[]
|
|
712
|
-
connectOrCreate?: Prisma.DepartmentCreateOrConnectWithoutDepartment_head_userInput | Prisma.DepartmentCreateOrConnectWithoutDepartment_head_userInput[]
|
|
713
|
-
upsert?: Prisma.DepartmentUpsertWithWhereUniqueWithoutDepartment_head_userInput | Prisma.DepartmentUpsertWithWhereUniqueWithoutDepartment_head_userInput[]
|
|
714
|
-
createMany?: Prisma.DepartmentCreateManyDepartment_head_userInputEnvelope
|
|
715
|
-
set?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
716
|
-
disconnect?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
717
|
-
delete?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
718
|
-
connect?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
719
|
-
update?: Prisma.DepartmentUpdateWithWhereUniqueWithoutDepartment_head_userInput | Prisma.DepartmentUpdateWithWhereUniqueWithoutDepartment_head_userInput[]
|
|
720
|
-
updateMany?: Prisma.DepartmentUpdateManyWithWhereWithoutDepartment_head_userInput | Prisma.DepartmentUpdateManyWithWhereWithoutDepartment_head_userInput[]
|
|
721
|
-
deleteMany?: Prisma.DepartmentScalarWhereInput | Prisma.DepartmentScalarWhereInput[]
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
export type DepartmentUncheckedUpdateManyWithoutBudget_manager_userNestedInput = {
|
|
725
|
-
create?: Prisma.XOR<Prisma.DepartmentCreateWithoutBudget_manager_userInput, Prisma.DepartmentUncheckedCreateWithoutBudget_manager_userInput> | Prisma.DepartmentCreateWithoutBudget_manager_userInput[] | Prisma.DepartmentUncheckedCreateWithoutBudget_manager_userInput[]
|
|
726
|
-
connectOrCreate?: Prisma.DepartmentCreateOrConnectWithoutBudget_manager_userInput | Prisma.DepartmentCreateOrConnectWithoutBudget_manager_userInput[]
|
|
727
|
-
upsert?: Prisma.DepartmentUpsertWithWhereUniqueWithoutBudget_manager_userInput | Prisma.DepartmentUpsertWithWhereUniqueWithoutBudget_manager_userInput[]
|
|
728
|
-
createMany?: Prisma.DepartmentCreateManyBudget_manager_userInputEnvelope
|
|
729
|
-
set?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
730
|
-
disconnect?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
731
|
-
delete?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
732
|
-
connect?: Prisma.DepartmentWhereUniqueInput | Prisma.DepartmentWhereUniqueInput[]
|
|
733
|
-
update?: Prisma.DepartmentUpdateWithWhereUniqueWithoutBudget_manager_userInput | Prisma.DepartmentUpdateWithWhereUniqueWithoutBudget_manager_userInput[]
|
|
734
|
-
updateMany?: Prisma.DepartmentUpdateManyWithWhereWithoutBudget_manager_userInput | Prisma.DepartmentUpdateManyWithWhereWithoutBudget_manager_userInput[]
|
|
735
|
-
deleteMany?: Prisma.DepartmentScalarWhereInput | Prisma.DepartmentScalarWhereInput[]
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
export type DepartmentCreateNestedOneWithoutBusiness_entity_departmentsInput = {
|
|
739
|
-
create?: Prisma.XOR<Prisma.DepartmentCreateWithoutBusiness_entity_departmentsInput, Prisma.DepartmentUncheckedCreateWithoutBusiness_entity_departmentsInput>
|
|
740
|
-
connectOrCreate?: Prisma.DepartmentCreateOrConnectWithoutBusiness_entity_departmentsInput
|
|
741
|
-
connect?: Prisma.DepartmentWhereUniqueInput
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
export type DepartmentUpdateOneWithoutBusiness_entity_departmentsNestedInput = {
|
|
745
|
-
create?: Prisma.XOR<Prisma.DepartmentCreateWithoutBusiness_entity_departmentsInput, Prisma.DepartmentUncheckedCreateWithoutBusiness_entity_departmentsInput>
|
|
746
|
-
connectOrCreate?: Prisma.DepartmentCreateOrConnectWithoutBusiness_entity_departmentsInput
|
|
747
|
-
upsert?: Prisma.DepartmentUpsertWithoutBusiness_entity_departmentsInput
|
|
748
|
-
disconnect?: Prisma.DepartmentWhereInput | boolean
|
|
749
|
-
delete?: Prisma.DepartmentWhereInput | boolean
|
|
750
|
-
connect?: Prisma.DepartmentWhereUniqueInput
|
|
751
|
-
update?: Prisma.XOR<Prisma.XOR<Prisma.DepartmentUpdateToOneWithWhereWithoutBusiness_entity_departmentsInput, Prisma.DepartmentUpdateWithoutBusiness_entity_departmentsInput>, Prisma.DepartmentUncheckedUpdateWithoutBusiness_entity_departmentsInput>
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
export type DepartmentCreateNestedOneWithoutDepartment_budgetInput = {
|
|
755
|
-
create?: Prisma.XOR<Prisma.DepartmentCreateWithoutDepartment_budgetInput, Prisma.DepartmentUncheckedCreateWithoutDepartment_budgetInput>
|
|
756
|
-
connectOrCreate?: Prisma.DepartmentCreateOrConnectWithoutDepartment_budgetInput
|
|
757
|
-
connect?: Prisma.DepartmentWhereUniqueInput
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
export type DepartmentUpdateOneWithoutDepartment_budgetNestedInput = {
|
|
761
|
-
create?: Prisma.XOR<Prisma.DepartmentCreateWithoutDepartment_budgetInput, Prisma.DepartmentUncheckedCreateWithoutDepartment_budgetInput>
|
|
762
|
-
connectOrCreate?: Prisma.DepartmentCreateOrConnectWithoutDepartment_budgetInput
|
|
763
|
-
upsert?: Prisma.DepartmentUpsertWithoutDepartment_budgetInput
|
|
764
|
-
disconnect?: Prisma.DepartmentWhereInput | boolean
|
|
765
|
-
delete?: Prisma.DepartmentWhereInput | boolean
|
|
766
|
-
connect?: Prisma.DepartmentWhereUniqueInput
|
|
767
|
-
update?: Prisma.XOR<Prisma.XOR<Prisma.DepartmentUpdateToOneWithWhereWithoutDepartment_budgetInput, Prisma.DepartmentUpdateWithoutDepartment_budgetInput>, Prisma.DepartmentUncheckedUpdateWithoutDepartment_budgetInput>
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
export type DepartmentCreateWithoutDepartment_head_userInput = {
|
|
771
|
-
uuid?: string | null
|
|
772
|
-
department_code?: string | null
|
|
773
|
-
department_name?: string | null
|
|
774
|
-
department_slug?: string | null
|
|
775
|
-
description?: string | null
|
|
776
|
-
is_active?: boolean
|
|
777
|
-
created_at?: Date | string
|
|
778
|
-
created_by?: number | null
|
|
779
|
-
updated_at?: Date | string | null
|
|
780
|
-
updated_by?: number | null
|
|
781
|
-
is_deleted?: boolean
|
|
782
|
-
deleted_at?: Date | string | null
|
|
783
|
-
deleted_by?: number | null
|
|
784
|
-
budget_manager_user?: Prisma.UserCreateNestedOneWithoutBudget_managerInput
|
|
785
|
-
department_budget?: Prisma.DepartmentBudgetCreateNestedManyWithoutDepartmentInput
|
|
786
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentCreateNestedManyWithoutDepartmentInput
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
export type DepartmentUncheckedCreateWithoutDepartment_head_userInput = {
|
|
790
|
-
id?: number
|
|
791
|
-
uuid?: string | null
|
|
792
|
-
department_code?: string | null
|
|
793
|
-
department_name?: string | null
|
|
794
|
-
department_slug?: string | null
|
|
795
|
-
budget_manager?: number | null
|
|
796
|
-
description?: string | null
|
|
797
|
-
is_active?: boolean
|
|
798
|
-
created_at?: Date | string
|
|
799
|
-
created_by?: number | null
|
|
800
|
-
updated_at?: Date | string | null
|
|
801
|
-
updated_by?: number | null
|
|
802
|
-
is_deleted?: boolean
|
|
803
|
-
deleted_at?: Date | string | null
|
|
804
|
-
deleted_by?: number | null
|
|
805
|
-
department_budget?: Prisma.DepartmentBudgetUncheckedCreateNestedManyWithoutDepartmentInput
|
|
806
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentUncheckedCreateNestedManyWithoutDepartmentInput
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
export type DepartmentCreateOrConnectWithoutDepartment_head_userInput = {
|
|
810
|
-
where: Prisma.DepartmentWhereUniqueInput
|
|
811
|
-
create: Prisma.XOR<Prisma.DepartmentCreateWithoutDepartment_head_userInput, Prisma.DepartmentUncheckedCreateWithoutDepartment_head_userInput>
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
export type DepartmentCreateManyDepartment_head_userInputEnvelope = {
|
|
815
|
-
data: Prisma.DepartmentCreateManyDepartment_head_userInput | Prisma.DepartmentCreateManyDepartment_head_userInput[]
|
|
816
|
-
skipDuplicates?: boolean
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
export type DepartmentCreateWithoutBudget_manager_userInput = {
|
|
820
|
-
uuid?: string | null
|
|
821
|
-
department_code?: string | null
|
|
822
|
-
department_name?: string | null
|
|
823
|
-
department_slug?: string | null
|
|
824
|
-
description?: string | null
|
|
825
|
-
is_active?: boolean
|
|
826
|
-
created_at?: Date | string
|
|
827
|
-
created_by?: number | null
|
|
828
|
-
updated_at?: Date | string | null
|
|
829
|
-
updated_by?: number | null
|
|
830
|
-
is_deleted?: boolean
|
|
831
|
-
deleted_at?: Date | string | null
|
|
832
|
-
deleted_by?: number | null
|
|
833
|
-
department_head_user?: Prisma.UserCreateNestedOneWithoutDepartment_headInput
|
|
834
|
-
department_budget?: Prisma.DepartmentBudgetCreateNestedManyWithoutDepartmentInput
|
|
835
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentCreateNestedManyWithoutDepartmentInput
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
export type DepartmentUncheckedCreateWithoutBudget_manager_userInput = {
|
|
839
|
-
id?: number
|
|
840
|
-
uuid?: string | null
|
|
841
|
-
department_code?: string | null
|
|
842
|
-
department_name?: string | null
|
|
843
|
-
department_slug?: string | null
|
|
844
|
-
department_head?: number | null
|
|
845
|
-
description?: string | null
|
|
846
|
-
is_active?: boolean
|
|
847
|
-
created_at?: Date | string
|
|
848
|
-
created_by?: number | null
|
|
849
|
-
updated_at?: Date | string | null
|
|
850
|
-
updated_by?: number | null
|
|
851
|
-
is_deleted?: boolean
|
|
852
|
-
deleted_at?: Date | string | null
|
|
853
|
-
deleted_by?: number | null
|
|
854
|
-
department_budget?: Prisma.DepartmentBudgetUncheckedCreateNestedManyWithoutDepartmentInput
|
|
855
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentUncheckedCreateNestedManyWithoutDepartmentInput
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
export type DepartmentCreateOrConnectWithoutBudget_manager_userInput = {
|
|
859
|
-
where: Prisma.DepartmentWhereUniqueInput
|
|
860
|
-
create: Prisma.XOR<Prisma.DepartmentCreateWithoutBudget_manager_userInput, Prisma.DepartmentUncheckedCreateWithoutBudget_manager_userInput>
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
export type DepartmentCreateManyBudget_manager_userInputEnvelope = {
|
|
864
|
-
data: Prisma.DepartmentCreateManyBudget_manager_userInput | Prisma.DepartmentCreateManyBudget_manager_userInput[]
|
|
865
|
-
skipDuplicates?: boolean
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
export type DepartmentUpsertWithWhereUniqueWithoutDepartment_head_userInput = {
|
|
869
|
-
where: Prisma.DepartmentWhereUniqueInput
|
|
870
|
-
update: Prisma.XOR<Prisma.DepartmentUpdateWithoutDepartment_head_userInput, Prisma.DepartmentUncheckedUpdateWithoutDepartment_head_userInput>
|
|
871
|
-
create: Prisma.XOR<Prisma.DepartmentCreateWithoutDepartment_head_userInput, Prisma.DepartmentUncheckedCreateWithoutDepartment_head_userInput>
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
export type DepartmentUpdateWithWhereUniqueWithoutDepartment_head_userInput = {
|
|
875
|
-
where: Prisma.DepartmentWhereUniqueInput
|
|
876
|
-
data: Prisma.XOR<Prisma.DepartmentUpdateWithoutDepartment_head_userInput, Prisma.DepartmentUncheckedUpdateWithoutDepartment_head_userInput>
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
export type DepartmentUpdateManyWithWhereWithoutDepartment_head_userInput = {
|
|
880
|
-
where: Prisma.DepartmentScalarWhereInput
|
|
881
|
-
data: Prisma.XOR<Prisma.DepartmentUpdateManyMutationInput, Prisma.DepartmentUncheckedUpdateManyWithoutDepartment_head_userInput>
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
export type DepartmentScalarWhereInput = {
|
|
885
|
-
AND?: Prisma.DepartmentScalarWhereInput | Prisma.DepartmentScalarWhereInput[]
|
|
886
|
-
OR?: Prisma.DepartmentScalarWhereInput[]
|
|
887
|
-
NOT?: Prisma.DepartmentScalarWhereInput | Prisma.DepartmentScalarWhereInput[]
|
|
888
|
-
id?: Prisma.IntFilter<"Department"> | number
|
|
889
|
-
uuid?: Prisma.StringNullableFilter<"Department"> | string | null
|
|
890
|
-
department_code?: Prisma.StringNullableFilter<"Department"> | string | null
|
|
891
|
-
department_name?: Prisma.StringNullableFilter<"Department"> | string | null
|
|
892
|
-
department_slug?: Prisma.StringNullableFilter<"Department"> | string | null
|
|
893
|
-
department_head?: Prisma.IntNullableFilter<"Department"> | number | null
|
|
894
|
-
budget_manager?: Prisma.IntNullableFilter<"Department"> | number | null
|
|
895
|
-
description?: Prisma.StringNullableFilter<"Department"> | string | null
|
|
896
|
-
is_active?: Prisma.BoolFilter<"Department"> | boolean
|
|
897
|
-
created_at?: Prisma.DateTimeFilter<"Department"> | Date | string
|
|
898
|
-
created_by?: Prisma.IntNullableFilter<"Department"> | number | null
|
|
899
|
-
updated_at?: Prisma.DateTimeNullableFilter<"Department"> | Date | string | null
|
|
900
|
-
updated_by?: Prisma.IntNullableFilter<"Department"> | number | null
|
|
901
|
-
is_deleted?: Prisma.BoolFilter<"Department"> | boolean
|
|
902
|
-
deleted_at?: Prisma.DateTimeNullableFilter<"Department"> | Date | string | null
|
|
903
|
-
deleted_by?: Prisma.IntNullableFilter<"Department"> | number | null
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
export type DepartmentUpsertWithWhereUniqueWithoutBudget_manager_userInput = {
|
|
907
|
-
where: Prisma.DepartmentWhereUniqueInput
|
|
908
|
-
update: Prisma.XOR<Prisma.DepartmentUpdateWithoutBudget_manager_userInput, Prisma.DepartmentUncheckedUpdateWithoutBudget_manager_userInput>
|
|
909
|
-
create: Prisma.XOR<Prisma.DepartmentCreateWithoutBudget_manager_userInput, Prisma.DepartmentUncheckedCreateWithoutBudget_manager_userInput>
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
export type DepartmentUpdateWithWhereUniqueWithoutBudget_manager_userInput = {
|
|
913
|
-
where: Prisma.DepartmentWhereUniqueInput
|
|
914
|
-
data: Prisma.XOR<Prisma.DepartmentUpdateWithoutBudget_manager_userInput, Prisma.DepartmentUncheckedUpdateWithoutBudget_manager_userInput>
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
export type DepartmentUpdateManyWithWhereWithoutBudget_manager_userInput = {
|
|
918
|
-
where: Prisma.DepartmentScalarWhereInput
|
|
919
|
-
data: Prisma.XOR<Prisma.DepartmentUpdateManyMutationInput, Prisma.DepartmentUncheckedUpdateManyWithoutBudget_manager_userInput>
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
export type DepartmentCreateWithoutBusiness_entity_departmentsInput = {
|
|
923
|
-
uuid?: string | null
|
|
924
|
-
department_code?: string | null
|
|
925
|
-
department_name?: string | null
|
|
926
|
-
department_slug?: string | null
|
|
927
|
-
description?: string | null
|
|
928
|
-
is_active?: boolean
|
|
929
|
-
created_at?: Date | string
|
|
930
|
-
created_by?: number | null
|
|
931
|
-
updated_at?: Date | string | null
|
|
932
|
-
updated_by?: number | null
|
|
933
|
-
is_deleted?: boolean
|
|
934
|
-
deleted_at?: Date | string | null
|
|
935
|
-
deleted_by?: number | null
|
|
936
|
-
department_head_user?: Prisma.UserCreateNestedOneWithoutDepartment_headInput
|
|
937
|
-
budget_manager_user?: Prisma.UserCreateNestedOneWithoutBudget_managerInput
|
|
938
|
-
department_budget?: Prisma.DepartmentBudgetCreateNestedManyWithoutDepartmentInput
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
export type DepartmentUncheckedCreateWithoutBusiness_entity_departmentsInput = {
|
|
942
|
-
id?: number
|
|
943
|
-
uuid?: string | null
|
|
944
|
-
department_code?: string | null
|
|
945
|
-
department_name?: string | null
|
|
946
|
-
department_slug?: string | null
|
|
947
|
-
department_head?: number | null
|
|
948
|
-
budget_manager?: number | null
|
|
949
|
-
description?: string | null
|
|
950
|
-
is_active?: boolean
|
|
951
|
-
created_at?: Date | string
|
|
952
|
-
created_by?: number | null
|
|
953
|
-
updated_at?: Date | string | null
|
|
954
|
-
updated_by?: number | null
|
|
955
|
-
is_deleted?: boolean
|
|
956
|
-
deleted_at?: Date | string | null
|
|
957
|
-
deleted_by?: number | null
|
|
958
|
-
department_budget?: Prisma.DepartmentBudgetUncheckedCreateNestedManyWithoutDepartmentInput
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
export type DepartmentCreateOrConnectWithoutBusiness_entity_departmentsInput = {
|
|
962
|
-
where: Prisma.DepartmentWhereUniqueInput
|
|
963
|
-
create: Prisma.XOR<Prisma.DepartmentCreateWithoutBusiness_entity_departmentsInput, Prisma.DepartmentUncheckedCreateWithoutBusiness_entity_departmentsInput>
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
export type DepartmentUpsertWithoutBusiness_entity_departmentsInput = {
|
|
967
|
-
update: Prisma.XOR<Prisma.DepartmentUpdateWithoutBusiness_entity_departmentsInput, Prisma.DepartmentUncheckedUpdateWithoutBusiness_entity_departmentsInput>
|
|
968
|
-
create: Prisma.XOR<Prisma.DepartmentCreateWithoutBusiness_entity_departmentsInput, Prisma.DepartmentUncheckedCreateWithoutBusiness_entity_departmentsInput>
|
|
969
|
-
where?: Prisma.DepartmentWhereInput
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
export type DepartmentUpdateToOneWithWhereWithoutBusiness_entity_departmentsInput = {
|
|
973
|
-
where?: Prisma.DepartmentWhereInput
|
|
974
|
-
data: Prisma.XOR<Prisma.DepartmentUpdateWithoutBusiness_entity_departmentsInput, Prisma.DepartmentUncheckedUpdateWithoutBusiness_entity_departmentsInput>
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
export type DepartmentUpdateWithoutBusiness_entity_departmentsInput = {
|
|
978
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
979
|
-
department_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
980
|
-
department_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
981
|
-
department_slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
982
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
983
|
-
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
984
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
985
|
-
created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
986
|
-
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
987
|
-
updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
988
|
-
is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
989
|
-
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
990
|
-
deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
991
|
-
department_head_user?: Prisma.UserUpdateOneWithoutDepartment_headNestedInput
|
|
992
|
-
budget_manager_user?: Prisma.UserUpdateOneWithoutBudget_managerNestedInput
|
|
993
|
-
department_budget?: Prisma.DepartmentBudgetUpdateManyWithoutDepartmentNestedInput
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
export type DepartmentUncheckedUpdateWithoutBusiness_entity_departmentsInput = {
|
|
997
|
-
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
998
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
999
|
-
department_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1000
|
-
department_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1001
|
-
department_slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1002
|
-
department_head?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1003
|
-
budget_manager?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1004
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1005
|
-
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1006
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1007
|
-
created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1008
|
-
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1009
|
-
updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1010
|
-
is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1011
|
-
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1012
|
-
deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1013
|
-
department_budget?: Prisma.DepartmentBudgetUncheckedUpdateManyWithoutDepartmentNestedInput
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
export type DepartmentCreateWithoutDepartment_budgetInput = {
|
|
1017
|
-
uuid?: string | null
|
|
1018
|
-
department_code?: string | null
|
|
1019
|
-
department_name?: string | null
|
|
1020
|
-
department_slug?: string | null
|
|
1021
|
-
description?: string | null
|
|
1022
|
-
is_active?: boolean
|
|
1023
|
-
created_at?: Date | string
|
|
1024
|
-
created_by?: number | null
|
|
1025
|
-
updated_at?: Date | string | null
|
|
1026
|
-
updated_by?: number | null
|
|
1027
|
-
is_deleted?: boolean
|
|
1028
|
-
deleted_at?: Date | string | null
|
|
1029
|
-
deleted_by?: number | null
|
|
1030
|
-
department_head_user?: Prisma.UserCreateNestedOneWithoutDepartment_headInput
|
|
1031
|
-
budget_manager_user?: Prisma.UserCreateNestedOneWithoutBudget_managerInput
|
|
1032
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentCreateNestedManyWithoutDepartmentInput
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
export type DepartmentUncheckedCreateWithoutDepartment_budgetInput = {
|
|
1036
|
-
id?: number
|
|
1037
|
-
uuid?: string | null
|
|
1038
|
-
department_code?: string | null
|
|
1039
|
-
department_name?: string | null
|
|
1040
|
-
department_slug?: string | null
|
|
1041
|
-
department_head?: number | null
|
|
1042
|
-
budget_manager?: number | null
|
|
1043
|
-
description?: string | null
|
|
1044
|
-
is_active?: boolean
|
|
1045
|
-
created_at?: Date | string
|
|
1046
|
-
created_by?: number | null
|
|
1047
|
-
updated_at?: Date | string | null
|
|
1048
|
-
updated_by?: number | null
|
|
1049
|
-
is_deleted?: boolean
|
|
1050
|
-
deleted_at?: Date | string | null
|
|
1051
|
-
deleted_by?: number | null
|
|
1052
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentUncheckedCreateNestedManyWithoutDepartmentInput
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
export type DepartmentCreateOrConnectWithoutDepartment_budgetInput = {
|
|
1056
|
-
where: Prisma.DepartmentWhereUniqueInput
|
|
1057
|
-
create: Prisma.XOR<Prisma.DepartmentCreateWithoutDepartment_budgetInput, Prisma.DepartmentUncheckedCreateWithoutDepartment_budgetInput>
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
|
-
export type DepartmentUpsertWithoutDepartment_budgetInput = {
|
|
1061
|
-
update: Prisma.XOR<Prisma.DepartmentUpdateWithoutDepartment_budgetInput, Prisma.DepartmentUncheckedUpdateWithoutDepartment_budgetInput>
|
|
1062
|
-
create: Prisma.XOR<Prisma.DepartmentCreateWithoutDepartment_budgetInput, Prisma.DepartmentUncheckedCreateWithoutDepartment_budgetInput>
|
|
1063
|
-
where?: Prisma.DepartmentWhereInput
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
export type DepartmentUpdateToOneWithWhereWithoutDepartment_budgetInput = {
|
|
1067
|
-
where?: Prisma.DepartmentWhereInput
|
|
1068
|
-
data: Prisma.XOR<Prisma.DepartmentUpdateWithoutDepartment_budgetInput, Prisma.DepartmentUncheckedUpdateWithoutDepartment_budgetInput>
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
export type DepartmentUpdateWithoutDepartment_budgetInput = {
|
|
1072
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1073
|
-
department_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1074
|
-
department_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1075
|
-
department_slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1076
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1077
|
-
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1078
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1079
|
-
created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1080
|
-
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1081
|
-
updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1082
|
-
is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1083
|
-
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1084
|
-
deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1085
|
-
department_head_user?: Prisma.UserUpdateOneWithoutDepartment_headNestedInput
|
|
1086
|
-
budget_manager_user?: Prisma.UserUpdateOneWithoutBudget_managerNestedInput
|
|
1087
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentUpdateManyWithoutDepartmentNestedInput
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
export type DepartmentUncheckedUpdateWithoutDepartment_budgetInput = {
|
|
1091
|
-
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1092
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1093
|
-
department_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1094
|
-
department_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1095
|
-
department_slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1096
|
-
department_head?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1097
|
-
budget_manager?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1098
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1099
|
-
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1100
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1101
|
-
created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1102
|
-
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1103
|
-
updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1104
|
-
is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1105
|
-
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1106
|
-
deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1107
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentUncheckedUpdateManyWithoutDepartmentNestedInput
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
export type DepartmentCreateManyDepartment_head_userInput = {
|
|
1111
|
-
id?: number
|
|
1112
|
-
uuid?: string | null
|
|
1113
|
-
department_code?: string | null
|
|
1114
|
-
department_name?: string | null
|
|
1115
|
-
department_slug?: string | null
|
|
1116
|
-
budget_manager?: number | null
|
|
1117
|
-
description?: string | null
|
|
1118
|
-
is_active?: boolean
|
|
1119
|
-
created_at?: Date | string
|
|
1120
|
-
created_by?: number | null
|
|
1121
|
-
updated_at?: Date | string | null
|
|
1122
|
-
updated_by?: number | null
|
|
1123
|
-
is_deleted?: boolean
|
|
1124
|
-
deleted_at?: Date | string | null
|
|
1125
|
-
deleted_by?: number | null
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
export type DepartmentCreateManyBudget_manager_userInput = {
|
|
1129
|
-
id?: number
|
|
1130
|
-
uuid?: string | null
|
|
1131
|
-
department_code?: string | null
|
|
1132
|
-
department_name?: string | null
|
|
1133
|
-
department_slug?: string | null
|
|
1134
|
-
department_head?: number | null
|
|
1135
|
-
description?: string | null
|
|
1136
|
-
is_active?: boolean
|
|
1137
|
-
created_at?: Date | string
|
|
1138
|
-
created_by?: number | null
|
|
1139
|
-
updated_at?: Date | string | null
|
|
1140
|
-
updated_by?: number | null
|
|
1141
|
-
is_deleted?: boolean
|
|
1142
|
-
deleted_at?: Date | string | null
|
|
1143
|
-
deleted_by?: number | null
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
export type DepartmentUpdateWithoutDepartment_head_userInput = {
|
|
1147
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1148
|
-
department_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1149
|
-
department_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1150
|
-
department_slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1151
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1152
|
-
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1153
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1154
|
-
created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1155
|
-
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1156
|
-
updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1157
|
-
is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1158
|
-
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1159
|
-
deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1160
|
-
budget_manager_user?: Prisma.UserUpdateOneWithoutBudget_managerNestedInput
|
|
1161
|
-
department_budget?: Prisma.DepartmentBudgetUpdateManyWithoutDepartmentNestedInput
|
|
1162
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentUpdateManyWithoutDepartmentNestedInput
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
export type DepartmentUncheckedUpdateWithoutDepartment_head_userInput = {
|
|
1166
|
-
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1167
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1168
|
-
department_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1169
|
-
department_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1170
|
-
department_slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1171
|
-
budget_manager?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1172
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1173
|
-
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1174
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1175
|
-
created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1176
|
-
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1177
|
-
updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1178
|
-
is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1179
|
-
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1180
|
-
deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1181
|
-
department_budget?: Prisma.DepartmentBudgetUncheckedUpdateManyWithoutDepartmentNestedInput
|
|
1182
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentUncheckedUpdateManyWithoutDepartmentNestedInput
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
export type DepartmentUncheckedUpdateManyWithoutDepartment_head_userInput = {
|
|
1186
|
-
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1187
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1188
|
-
department_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1189
|
-
department_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1190
|
-
department_slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1191
|
-
budget_manager?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1192
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1193
|
-
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1194
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1195
|
-
created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1196
|
-
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1197
|
-
updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1198
|
-
is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1199
|
-
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1200
|
-
deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
export type DepartmentUpdateWithoutBudget_manager_userInput = {
|
|
1204
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1205
|
-
department_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1206
|
-
department_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1207
|
-
department_slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1208
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1209
|
-
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1210
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1211
|
-
created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1212
|
-
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1213
|
-
updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1214
|
-
is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1215
|
-
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1216
|
-
deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1217
|
-
department_head_user?: Prisma.UserUpdateOneWithoutDepartment_headNestedInput
|
|
1218
|
-
department_budget?: Prisma.DepartmentBudgetUpdateManyWithoutDepartmentNestedInput
|
|
1219
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentUpdateManyWithoutDepartmentNestedInput
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
export type DepartmentUncheckedUpdateWithoutBudget_manager_userInput = {
|
|
1223
|
-
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1224
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1225
|
-
department_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1226
|
-
department_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1227
|
-
department_slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1228
|
-
department_head?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1229
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1230
|
-
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1231
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1232
|
-
created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1233
|
-
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1234
|
-
updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1235
|
-
is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1236
|
-
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1237
|
-
deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1238
|
-
department_budget?: Prisma.DepartmentBudgetUncheckedUpdateManyWithoutDepartmentNestedInput
|
|
1239
|
-
business_entity_departments?: Prisma.BusinessEntityDepartmentUncheckedUpdateManyWithoutDepartmentNestedInput
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
export type DepartmentUncheckedUpdateManyWithoutBudget_manager_userInput = {
|
|
1243
|
-
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1244
|
-
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1245
|
-
department_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1246
|
-
department_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1247
|
-
department_slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1248
|
-
department_head?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1249
|
-
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1250
|
-
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1251
|
-
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1252
|
-
created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1253
|
-
updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1254
|
-
updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1255
|
-
is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1256
|
-
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
1257
|
-
deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
/**
|
|
1262
|
-
* Count Type DepartmentCountOutputType
|
|
1263
|
-
*/
|
|
1264
|
-
|
|
1265
|
-
export type DepartmentCountOutputType = {
|
|
1266
|
-
department_budget: number
|
|
1267
|
-
business_entity_departments: number
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
export type DepartmentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1271
|
-
department_budget?: boolean | DepartmentCountOutputTypeCountDepartment_budgetArgs
|
|
1272
|
-
business_entity_departments?: boolean | DepartmentCountOutputTypeCountBusiness_entity_departmentsArgs
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
/**
|
|
1276
|
-
* DepartmentCountOutputType without action
|
|
1277
|
-
*/
|
|
1278
|
-
export type DepartmentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1279
|
-
/**
|
|
1280
|
-
* Select specific fields to fetch from the DepartmentCountOutputType
|
|
1281
|
-
*/
|
|
1282
|
-
select?: Prisma.DepartmentCountOutputTypeSelect<ExtArgs> | null
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
|
-
/**
|
|
1286
|
-
* DepartmentCountOutputType without action
|
|
1287
|
-
*/
|
|
1288
|
-
export type DepartmentCountOutputTypeCountDepartment_budgetArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1289
|
-
where?: Prisma.DepartmentBudgetWhereInput
|
|
1290
|
-
}
|
|
1291
|
-
|
|
1292
|
-
/**
|
|
1293
|
-
* DepartmentCountOutputType without action
|
|
1294
|
-
*/
|
|
1295
|
-
export type DepartmentCountOutputTypeCountBusiness_entity_departmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1296
|
-
where?: Prisma.BusinessEntityDepartmentWhereInput
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
export type DepartmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
1301
|
-
id?: boolean
|
|
1302
|
-
uuid?: boolean
|
|
1303
|
-
department_code?: boolean
|
|
1304
|
-
department_name?: boolean
|
|
1305
|
-
department_slug?: boolean
|
|
1306
|
-
department_head?: boolean
|
|
1307
|
-
budget_manager?: boolean
|
|
1308
|
-
description?: boolean
|
|
1309
|
-
is_active?: boolean
|
|
1310
|
-
created_at?: boolean
|
|
1311
|
-
created_by?: boolean
|
|
1312
|
-
updated_at?: boolean
|
|
1313
|
-
updated_by?: boolean
|
|
1314
|
-
is_deleted?: boolean
|
|
1315
|
-
deleted_at?: boolean
|
|
1316
|
-
deleted_by?: boolean
|
|
1317
|
-
department_head_user?: boolean | Prisma.Department$department_head_userArgs<ExtArgs>
|
|
1318
|
-
budget_manager_user?: boolean | Prisma.Department$budget_manager_userArgs<ExtArgs>
|
|
1319
|
-
department_budget?: boolean | Prisma.Department$department_budgetArgs<ExtArgs>
|
|
1320
|
-
business_entity_departments?: boolean | Prisma.Department$business_entity_departmentsArgs<ExtArgs>
|
|
1321
|
-
_count?: boolean | Prisma.DepartmentCountOutputTypeDefaultArgs<ExtArgs>
|
|
1322
|
-
}, ExtArgs["result"]["department"]>
|
|
1323
|
-
|
|
1324
|
-
export type DepartmentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
1325
|
-
id?: boolean
|
|
1326
|
-
uuid?: boolean
|
|
1327
|
-
department_code?: boolean
|
|
1328
|
-
department_name?: boolean
|
|
1329
|
-
department_slug?: boolean
|
|
1330
|
-
department_head?: boolean
|
|
1331
|
-
budget_manager?: boolean
|
|
1332
|
-
description?: boolean
|
|
1333
|
-
is_active?: boolean
|
|
1334
|
-
created_at?: boolean
|
|
1335
|
-
created_by?: boolean
|
|
1336
|
-
updated_at?: boolean
|
|
1337
|
-
updated_by?: boolean
|
|
1338
|
-
is_deleted?: boolean
|
|
1339
|
-
deleted_at?: boolean
|
|
1340
|
-
deleted_by?: boolean
|
|
1341
|
-
department_head_user?: boolean | Prisma.Department$department_head_userArgs<ExtArgs>
|
|
1342
|
-
budget_manager_user?: boolean | Prisma.Department$budget_manager_userArgs<ExtArgs>
|
|
1343
|
-
}, ExtArgs["result"]["department"]>
|
|
1344
|
-
|
|
1345
|
-
export type DepartmentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
1346
|
-
id?: boolean
|
|
1347
|
-
uuid?: boolean
|
|
1348
|
-
department_code?: boolean
|
|
1349
|
-
department_name?: boolean
|
|
1350
|
-
department_slug?: boolean
|
|
1351
|
-
department_head?: boolean
|
|
1352
|
-
budget_manager?: boolean
|
|
1353
|
-
description?: boolean
|
|
1354
|
-
is_active?: boolean
|
|
1355
|
-
created_at?: boolean
|
|
1356
|
-
created_by?: boolean
|
|
1357
|
-
updated_at?: boolean
|
|
1358
|
-
updated_by?: boolean
|
|
1359
|
-
is_deleted?: boolean
|
|
1360
|
-
deleted_at?: boolean
|
|
1361
|
-
deleted_by?: boolean
|
|
1362
|
-
department_head_user?: boolean | Prisma.Department$department_head_userArgs<ExtArgs>
|
|
1363
|
-
budget_manager_user?: boolean | Prisma.Department$budget_manager_userArgs<ExtArgs>
|
|
1364
|
-
}, ExtArgs["result"]["department"]>
|
|
1365
|
-
|
|
1366
|
-
export type DepartmentSelectScalar = {
|
|
1367
|
-
id?: boolean
|
|
1368
|
-
uuid?: boolean
|
|
1369
|
-
department_code?: boolean
|
|
1370
|
-
department_name?: boolean
|
|
1371
|
-
department_slug?: boolean
|
|
1372
|
-
department_head?: boolean
|
|
1373
|
-
budget_manager?: boolean
|
|
1374
|
-
description?: boolean
|
|
1375
|
-
is_active?: boolean
|
|
1376
|
-
created_at?: boolean
|
|
1377
|
-
created_by?: boolean
|
|
1378
|
-
updated_at?: boolean
|
|
1379
|
-
updated_by?: boolean
|
|
1380
|
-
is_deleted?: boolean
|
|
1381
|
-
deleted_at?: boolean
|
|
1382
|
-
deleted_by?: boolean
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
export type DepartmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "department_code" | "department_name" | "department_slug" | "department_head" | "budget_manager" | "description" | "is_active" | "created_at" | "created_by" | "updated_at" | "updated_by" | "is_deleted" | "deleted_at" | "deleted_by", ExtArgs["result"]["department"]>
|
|
1386
|
-
export type DepartmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1387
|
-
department_head_user?: boolean | Prisma.Department$department_head_userArgs<ExtArgs>
|
|
1388
|
-
budget_manager_user?: boolean | Prisma.Department$budget_manager_userArgs<ExtArgs>
|
|
1389
|
-
department_budget?: boolean | Prisma.Department$department_budgetArgs<ExtArgs>
|
|
1390
|
-
business_entity_departments?: boolean | Prisma.Department$business_entity_departmentsArgs<ExtArgs>
|
|
1391
|
-
_count?: boolean | Prisma.DepartmentCountOutputTypeDefaultArgs<ExtArgs>
|
|
1392
|
-
}
|
|
1393
|
-
export type DepartmentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1394
|
-
department_head_user?: boolean | Prisma.Department$department_head_userArgs<ExtArgs>
|
|
1395
|
-
budget_manager_user?: boolean | Prisma.Department$budget_manager_userArgs<ExtArgs>
|
|
1396
|
-
}
|
|
1397
|
-
export type DepartmentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1398
|
-
department_head_user?: boolean | Prisma.Department$department_head_userArgs<ExtArgs>
|
|
1399
|
-
budget_manager_user?: boolean | Prisma.Department$budget_manager_userArgs<ExtArgs>
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
export type $DepartmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1403
|
-
name: "Department"
|
|
1404
|
-
objects: {
|
|
1405
|
-
department_head_user: Prisma.$UserPayload<ExtArgs> | null
|
|
1406
|
-
budget_manager_user: Prisma.$UserPayload<ExtArgs> | null
|
|
1407
|
-
department_budget: Prisma.$DepartmentBudgetPayload<ExtArgs>[]
|
|
1408
|
-
business_entity_departments: Prisma.$BusinessEntityDepartmentPayload<ExtArgs>[]
|
|
1409
|
-
}
|
|
1410
|
-
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
1411
|
-
id: number
|
|
1412
|
-
uuid: string | null
|
|
1413
|
-
department_code: string | null
|
|
1414
|
-
department_name: string | null
|
|
1415
|
-
department_slug: string | null
|
|
1416
|
-
department_head: number | null
|
|
1417
|
-
budget_manager: number | null
|
|
1418
|
-
description: string | null
|
|
1419
|
-
is_active: boolean
|
|
1420
|
-
created_at: Date
|
|
1421
|
-
created_by: number | null
|
|
1422
|
-
updated_at: Date | null
|
|
1423
|
-
updated_by: number | null
|
|
1424
|
-
is_deleted: boolean
|
|
1425
|
-
deleted_at: Date | null
|
|
1426
|
-
deleted_by: number | null
|
|
1427
|
-
}, ExtArgs["result"]["department"]>
|
|
1428
|
-
composites: {}
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
export type DepartmentGetPayload<S extends boolean | null | undefined | DepartmentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DepartmentPayload, S>
|
|
1432
|
-
|
|
1433
|
-
export type DepartmentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
1434
|
-
Omit<DepartmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
1435
|
-
select?: DepartmentCountAggregateInputType | true
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
|
-
export interface DepartmentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
1439
|
-
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Department'], meta: { name: 'Department' } }
|
|
1440
|
-
/**
|
|
1441
|
-
* Find zero or one Department that matches the filter.
|
|
1442
|
-
* @param {DepartmentFindUniqueArgs} args - Arguments to find a Department
|
|
1443
|
-
* @example
|
|
1444
|
-
* // Get one Department
|
|
1445
|
-
* const department = await prisma.department.findUnique({
|
|
1446
|
-
* where: {
|
|
1447
|
-
* // ... provide filter here
|
|
1448
|
-
* }
|
|
1449
|
-
* })
|
|
1450
|
-
*/
|
|
1451
|
-
findUnique<T extends DepartmentFindUniqueArgs>(args: Prisma.SelectSubset<T, DepartmentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DepartmentClient<runtime.Types.Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1452
|
-
|
|
1453
|
-
/**
|
|
1454
|
-
* Find one Department that matches the filter or throw an error with `error.code='P2025'`
|
|
1455
|
-
* if no matches were found.
|
|
1456
|
-
* @param {DepartmentFindUniqueOrThrowArgs} args - Arguments to find a Department
|
|
1457
|
-
* @example
|
|
1458
|
-
* // Get one Department
|
|
1459
|
-
* const department = await prisma.department.findUniqueOrThrow({
|
|
1460
|
-
* where: {
|
|
1461
|
-
* // ... provide filter here
|
|
1462
|
-
* }
|
|
1463
|
-
* })
|
|
1464
|
-
*/
|
|
1465
|
-
findUniqueOrThrow<T extends DepartmentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DepartmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DepartmentClient<runtime.Types.Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1466
|
-
|
|
1467
|
-
/**
|
|
1468
|
-
* Find the first Department that matches the filter.
|
|
1469
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1470
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1471
|
-
* @param {DepartmentFindFirstArgs} args - Arguments to find a Department
|
|
1472
|
-
* @example
|
|
1473
|
-
* // Get one Department
|
|
1474
|
-
* const department = await prisma.department.findFirst({
|
|
1475
|
-
* where: {
|
|
1476
|
-
* // ... provide filter here
|
|
1477
|
-
* }
|
|
1478
|
-
* })
|
|
1479
|
-
*/
|
|
1480
|
-
findFirst<T extends DepartmentFindFirstArgs>(args?: Prisma.SelectSubset<T, DepartmentFindFirstArgs<ExtArgs>>): Prisma.Prisma__DepartmentClient<runtime.Types.Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1481
|
-
|
|
1482
|
-
/**
|
|
1483
|
-
* Find the first Department that matches the filter or
|
|
1484
|
-
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
1485
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1486
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1487
|
-
* @param {DepartmentFindFirstOrThrowArgs} args - Arguments to find a Department
|
|
1488
|
-
* @example
|
|
1489
|
-
* // Get one Department
|
|
1490
|
-
* const department = await prisma.department.findFirstOrThrow({
|
|
1491
|
-
* where: {
|
|
1492
|
-
* // ... provide filter here
|
|
1493
|
-
* }
|
|
1494
|
-
* })
|
|
1495
|
-
*/
|
|
1496
|
-
findFirstOrThrow<T extends DepartmentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DepartmentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DepartmentClient<runtime.Types.Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1497
|
-
|
|
1498
|
-
/**
|
|
1499
|
-
* Find zero or more Departments that matches the filter.
|
|
1500
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1501
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1502
|
-
* @param {DepartmentFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1503
|
-
* @example
|
|
1504
|
-
* // Get all Departments
|
|
1505
|
-
* const departments = await prisma.department.findMany()
|
|
1506
|
-
*
|
|
1507
|
-
* // Get first 10 Departments
|
|
1508
|
-
* const departments = await prisma.department.findMany({ take: 10 })
|
|
1509
|
-
*
|
|
1510
|
-
* // Only select the `id`
|
|
1511
|
-
* const departmentWithIdOnly = await prisma.department.findMany({ select: { id: true } })
|
|
1512
|
-
*
|
|
1513
|
-
*/
|
|
1514
|
-
findMany<T extends DepartmentFindManyArgs>(args?: Prisma.SelectSubset<T, DepartmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
1515
|
-
|
|
1516
|
-
/**
|
|
1517
|
-
* Create a Department.
|
|
1518
|
-
* @param {DepartmentCreateArgs} args - Arguments to create a Department.
|
|
1519
|
-
* @example
|
|
1520
|
-
* // Create one Department
|
|
1521
|
-
* const Department = await prisma.department.create({
|
|
1522
|
-
* data: {
|
|
1523
|
-
* // ... data to create a Department
|
|
1524
|
-
* }
|
|
1525
|
-
* })
|
|
1526
|
-
*
|
|
1527
|
-
*/
|
|
1528
|
-
create<T extends DepartmentCreateArgs>(args: Prisma.SelectSubset<T, DepartmentCreateArgs<ExtArgs>>): Prisma.Prisma__DepartmentClient<runtime.Types.Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1529
|
-
|
|
1530
|
-
/**
|
|
1531
|
-
* Create many Departments.
|
|
1532
|
-
* @param {DepartmentCreateManyArgs} args - Arguments to create many Departments.
|
|
1533
|
-
* @example
|
|
1534
|
-
* // Create many Departments
|
|
1535
|
-
* const department = await prisma.department.createMany({
|
|
1536
|
-
* data: [
|
|
1537
|
-
* // ... provide data here
|
|
1538
|
-
* ]
|
|
1539
|
-
* })
|
|
1540
|
-
*
|
|
1541
|
-
*/
|
|
1542
|
-
createMany<T extends DepartmentCreateManyArgs>(args?: Prisma.SelectSubset<T, DepartmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
1543
|
-
|
|
1544
|
-
/**
|
|
1545
|
-
* Create many Departments and returns the data saved in the database.
|
|
1546
|
-
* @param {DepartmentCreateManyAndReturnArgs} args - Arguments to create many Departments.
|
|
1547
|
-
* @example
|
|
1548
|
-
* // Create many Departments
|
|
1549
|
-
* const department = await prisma.department.createManyAndReturn({
|
|
1550
|
-
* data: [
|
|
1551
|
-
* // ... provide data here
|
|
1552
|
-
* ]
|
|
1553
|
-
* })
|
|
1554
|
-
*
|
|
1555
|
-
* // Create many Departments and only return the `id`
|
|
1556
|
-
* const departmentWithIdOnly = await prisma.department.createManyAndReturn({
|
|
1557
|
-
* select: { id: true },
|
|
1558
|
-
* data: [
|
|
1559
|
-
* // ... provide data here
|
|
1560
|
-
* ]
|
|
1561
|
-
* })
|
|
1562
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1563
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1564
|
-
*
|
|
1565
|
-
*/
|
|
1566
|
-
createManyAndReturn<T extends DepartmentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DepartmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
1567
|
-
|
|
1568
|
-
/**
|
|
1569
|
-
* Delete a Department.
|
|
1570
|
-
* @param {DepartmentDeleteArgs} args - Arguments to delete one Department.
|
|
1571
|
-
* @example
|
|
1572
|
-
* // Delete one Department
|
|
1573
|
-
* const Department = await prisma.department.delete({
|
|
1574
|
-
* where: {
|
|
1575
|
-
* // ... filter to delete one Department
|
|
1576
|
-
* }
|
|
1577
|
-
* })
|
|
1578
|
-
*
|
|
1579
|
-
*/
|
|
1580
|
-
delete<T extends DepartmentDeleteArgs>(args: Prisma.SelectSubset<T, DepartmentDeleteArgs<ExtArgs>>): Prisma.Prisma__DepartmentClient<runtime.Types.Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1581
|
-
|
|
1582
|
-
/**
|
|
1583
|
-
* Update one Department.
|
|
1584
|
-
* @param {DepartmentUpdateArgs} args - Arguments to update one Department.
|
|
1585
|
-
* @example
|
|
1586
|
-
* // Update one Department
|
|
1587
|
-
* const department = await prisma.department.update({
|
|
1588
|
-
* where: {
|
|
1589
|
-
* // ... provide filter here
|
|
1590
|
-
* },
|
|
1591
|
-
* data: {
|
|
1592
|
-
* // ... provide data here
|
|
1593
|
-
* }
|
|
1594
|
-
* })
|
|
1595
|
-
*
|
|
1596
|
-
*/
|
|
1597
|
-
update<T extends DepartmentUpdateArgs>(args: Prisma.SelectSubset<T, DepartmentUpdateArgs<ExtArgs>>): Prisma.Prisma__DepartmentClient<runtime.Types.Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1598
|
-
|
|
1599
|
-
/**
|
|
1600
|
-
* Delete zero or more Departments.
|
|
1601
|
-
* @param {DepartmentDeleteManyArgs} args - Arguments to filter Departments to delete.
|
|
1602
|
-
* @example
|
|
1603
|
-
* // Delete a few Departments
|
|
1604
|
-
* const { count } = await prisma.department.deleteMany({
|
|
1605
|
-
* where: {
|
|
1606
|
-
* // ... provide filter here
|
|
1607
|
-
* }
|
|
1608
|
-
* })
|
|
1609
|
-
*
|
|
1610
|
-
*/
|
|
1611
|
-
deleteMany<T extends DepartmentDeleteManyArgs>(args?: Prisma.SelectSubset<T, DepartmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
1612
|
-
|
|
1613
|
-
/**
|
|
1614
|
-
* Update zero or more Departments.
|
|
1615
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1616
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1617
|
-
* @param {DepartmentUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1618
|
-
* @example
|
|
1619
|
-
* // Update many Departments
|
|
1620
|
-
* const department = await prisma.department.updateMany({
|
|
1621
|
-
* where: {
|
|
1622
|
-
* // ... provide filter here
|
|
1623
|
-
* },
|
|
1624
|
-
* data: {
|
|
1625
|
-
* // ... provide data here
|
|
1626
|
-
* }
|
|
1627
|
-
* })
|
|
1628
|
-
*
|
|
1629
|
-
*/
|
|
1630
|
-
updateMany<T extends DepartmentUpdateManyArgs>(args: Prisma.SelectSubset<T, DepartmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
1631
|
-
|
|
1632
|
-
/**
|
|
1633
|
-
* Update zero or more Departments and returns the data updated in the database.
|
|
1634
|
-
* @param {DepartmentUpdateManyAndReturnArgs} args - Arguments to update many Departments.
|
|
1635
|
-
* @example
|
|
1636
|
-
* // Update many Departments
|
|
1637
|
-
* const department = await prisma.department.updateManyAndReturn({
|
|
1638
|
-
* where: {
|
|
1639
|
-
* // ... provide filter here
|
|
1640
|
-
* },
|
|
1641
|
-
* data: [
|
|
1642
|
-
* // ... provide data here
|
|
1643
|
-
* ]
|
|
1644
|
-
* })
|
|
1645
|
-
*
|
|
1646
|
-
* // Update zero or more Departments and only return the `id`
|
|
1647
|
-
* const departmentWithIdOnly = await prisma.department.updateManyAndReturn({
|
|
1648
|
-
* select: { id: true },
|
|
1649
|
-
* where: {
|
|
1650
|
-
* // ... provide filter here
|
|
1651
|
-
* },
|
|
1652
|
-
* data: [
|
|
1653
|
-
* // ... provide data here
|
|
1654
|
-
* ]
|
|
1655
|
-
* })
|
|
1656
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1657
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1658
|
-
*
|
|
1659
|
-
*/
|
|
1660
|
-
updateManyAndReturn<T extends DepartmentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DepartmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
1661
|
-
|
|
1662
|
-
/**
|
|
1663
|
-
* Create or update one Department.
|
|
1664
|
-
* @param {DepartmentUpsertArgs} args - Arguments to update or create a Department.
|
|
1665
|
-
* @example
|
|
1666
|
-
* // Update or create a Department
|
|
1667
|
-
* const department = await prisma.department.upsert({
|
|
1668
|
-
* create: {
|
|
1669
|
-
* // ... data to create a Department
|
|
1670
|
-
* },
|
|
1671
|
-
* update: {
|
|
1672
|
-
* // ... in case it already exists, update
|
|
1673
|
-
* },
|
|
1674
|
-
* where: {
|
|
1675
|
-
* // ... the filter for the Department we want to update
|
|
1676
|
-
* }
|
|
1677
|
-
* })
|
|
1678
|
-
*/
|
|
1679
|
-
upsert<T extends DepartmentUpsertArgs>(args: Prisma.SelectSubset<T, DepartmentUpsertArgs<ExtArgs>>): Prisma.Prisma__DepartmentClient<runtime.Types.Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
/**
|
|
1683
|
-
* Count the number of Departments.
|
|
1684
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1685
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1686
|
-
* @param {DepartmentCountArgs} args - Arguments to filter Departments to count.
|
|
1687
|
-
* @example
|
|
1688
|
-
* // Count the number of Departments
|
|
1689
|
-
* const count = await prisma.department.count({
|
|
1690
|
-
* where: {
|
|
1691
|
-
* // ... the filter for the Departments we want to count
|
|
1692
|
-
* }
|
|
1693
|
-
* })
|
|
1694
|
-
**/
|
|
1695
|
-
count<T extends DepartmentCountArgs>(
|
|
1696
|
-
args?: Prisma.Subset<T, DepartmentCountArgs>,
|
|
1697
|
-
): Prisma.PrismaPromise<
|
|
1698
|
-
T extends runtime.Types.Utils.Record<'select', any>
|
|
1699
|
-
? T['select'] extends true
|
|
1700
|
-
? number
|
|
1701
|
-
: Prisma.GetScalarType<T['select'], DepartmentCountAggregateOutputType>
|
|
1702
|
-
: number
|
|
1703
|
-
>
|
|
1704
|
-
|
|
1705
|
-
/**
|
|
1706
|
-
* Allows you to perform aggregations operations on a Department.
|
|
1707
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1708
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1709
|
-
* @param {DepartmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1710
|
-
* @example
|
|
1711
|
-
* // Ordered by age ascending
|
|
1712
|
-
* // Where email contains prisma.io
|
|
1713
|
-
* // Limited to the 10 users
|
|
1714
|
-
* const aggregations = await prisma.user.aggregate({
|
|
1715
|
-
* _avg: {
|
|
1716
|
-
* age: true,
|
|
1717
|
-
* },
|
|
1718
|
-
* where: {
|
|
1719
|
-
* email: {
|
|
1720
|
-
* contains: "prisma.io",
|
|
1721
|
-
* },
|
|
1722
|
-
* },
|
|
1723
|
-
* orderBy: {
|
|
1724
|
-
* age: "asc",
|
|
1725
|
-
* },
|
|
1726
|
-
* take: 10,
|
|
1727
|
-
* })
|
|
1728
|
-
**/
|
|
1729
|
-
aggregate<T extends DepartmentAggregateArgs>(args: Prisma.Subset<T, DepartmentAggregateArgs>): Prisma.PrismaPromise<GetDepartmentAggregateType<T>>
|
|
1730
|
-
|
|
1731
|
-
/**
|
|
1732
|
-
* Group by Department.
|
|
1733
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1734
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1735
|
-
* @param {DepartmentGroupByArgs} args - Group by arguments.
|
|
1736
|
-
* @example
|
|
1737
|
-
* // Group by city, order by createdAt, get count
|
|
1738
|
-
* const result = await prisma.user.groupBy({
|
|
1739
|
-
* by: ['city', 'createdAt'],
|
|
1740
|
-
* orderBy: {
|
|
1741
|
-
* createdAt: true
|
|
1742
|
-
* },
|
|
1743
|
-
* _count: {
|
|
1744
|
-
* _all: true
|
|
1745
|
-
* },
|
|
1746
|
-
* })
|
|
1747
|
-
*
|
|
1748
|
-
**/
|
|
1749
|
-
groupBy<
|
|
1750
|
-
T extends DepartmentGroupByArgs,
|
|
1751
|
-
HasSelectOrTake extends Prisma.Or<
|
|
1752
|
-
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
1753
|
-
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
1754
|
-
>,
|
|
1755
|
-
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
1756
|
-
? { orderBy: DepartmentGroupByArgs['orderBy'] }
|
|
1757
|
-
: { orderBy?: DepartmentGroupByArgs['orderBy'] },
|
|
1758
|
-
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
1759
|
-
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
1760
|
-
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
1761
|
-
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
1762
|
-
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
1763
|
-
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
1764
|
-
InputErrors extends ByEmpty extends Prisma.True
|
|
1765
|
-
? `Error: "by" must not be empty.`
|
|
1766
|
-
: HavingValid extends Prisma.False
|
|
1767
|
-
? {
|
|
1768
|
-
[P in HavingFields]: P extends ByFields
|
|
1769
|
-
? never
|
|
1770
|
-
: P extends string
|
|
1771
|
-
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
1772
|
-
: [
|
|
1773
|
-
Error,
|
|
1774
|
-
'Field ',
|
|
1775
|
-
P,
|
|
1776
|
-
` in "having" needs to be provided in "by"`,
|
|
1777
|
-
]
|
|
1778
|
-
}[HavingFields]
|
|
1779
|
-
: 'take' extends Prisma.Keys<T>
|
|
1780
|
-
? 'orderBy' extends Prisma.Keys<T>
|
|
1781
|
-
? ByValid extends Prisma.True
|
|
1782
|
-
? {}
|
|
1783
|
-
: {
|
|
1784
|
-
[P in OrderFields]: P extends ByFields
|
|
1785
|
-
? never
|
|
1786
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1787
|
-
}[OrderFields]
|
|
1788
|
-
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
1789
|
-
: 'skip' extends Prisma.Keys<T>
|
|
1790
|
-
? 'orderBy' extends Prisma.Keys<T>
|
|
1791
|
-
? ByValid extends Prisma.True
|
|
1792
|
-
? {}
|
|
1793
|
-
: {
|
|
1794
|
-
[P in OrderFields]: P extends ByFields
|
|
1795
|
-
? never
|
|
1796
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1797
|
-
}[OrderFields]
|
|
1798
|
-
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
1799
|
-
: ByValid extends Prisma.True
|
|
1800
|
-
? {}
|
|
1801
|
-
: {
|
|
1802
|
-
[P in OrderFields]: P extends ByFields
|
|
1803
|
-
? never
|
|
1804
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1805
|
-
}[OrderFields]
|
|
1806
|
-
>(args: Prisma.SubsetIntersection<T, DepartmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDepartmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
1807
|
-
/**
|
|
1808
|
-
* Fields of the Department model
|
|
1809
|
-
*/
|
|
1810
|
-
readonly fields: DepartmentFieldRefs;
|
|
1811
|
-
}
|
|
1812
|
-
|
|
1813
|
-
/**
|
|
1814
|
-
* The delegate class that acts as a "Promise-like" for Department.
|
|
1815
|
-
* Why is this prefixed with `Prisma__`?
|
|
1816
|
-
* Because we want to prevent naming conflicts as mentioned in
|
|
1817
|
-
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1818
|
-
*/
|
|
1819
|
-
export interface Prisma__DepartmentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1820
|
-
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1821
|
-
department_head_user<T extends Prisma.Department$department_head_userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Department$department_head_userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1822
|
-
budget_manager_user<T extends Prisma.Department$budget_manager_userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Department$budget_manager_userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1823
|
-
department_budget<T extends Prisma.Department$department_budgetArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Department$department_budgetArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DepartmentBudgetPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1824
|
-
business_entity_departments<T extends Prisma.Department$business_entity_departmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Department$business_entity_departmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BusinessEntityDepartmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1825
|
-
/**
|
|
1826
|
-
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1827
|
-
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1828
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1829
|
-
* @returns A Promise for the completion of which ever callback is executed.
|
|
1830
|
-
*/
|
|
1831
|
-
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>
|
|
1832
|
-
/**
|
|
1833
|
-
* Attaches a callback for only the rejection of the Promise.
|
|
1834
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1835
|
-
* @returns A Promise for the completion of the callback.
|
|
1836
|
-
*/
|
|
1837
|
-
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1838
|
-
/**
|
|
1839
|
-
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1840
|
-
* resolved value cannot be modified from the callback.
|
|
1841
|
-
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1842
|
-
* @returns A Promise for the completion of the callback.
|
|
1843
|
-
*/
|
|
1844
|
-
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1845
|
-
}
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
/**
|
|
1851
|
-
* Fields of the Department model
|
|
1852
|
-
*/
|
|
1853
|
-
export interface DepartmentFieldRefs {
|
|
1854
|
-
readonly id: Prisma.FieldRef<"Department", 'Int'>
|
|
1855
|
-
readonly uuid: Prisma.FieldRef<"Department", 'String'>
|
|
1856
|
-
readonly department_code: Prisma.FieldRef<"Department", 'String'>
|
|
1857
|
-
readonly department_name: Prisma.FieldRef<"Department", 'String'>
|
|
1858
|
-
readonly department_slug: Prisma.FieldRef<"Department", 'String'>
|
|
1859
|
-
readonly department_head: Prisma.FieldRef<"Department", 'Int'>
|
|
1860
|
-
readonly budget_manager: Prisma.FieldRef<"Department", 'Int'>
|
|
1861
|
-
readonly description: Prisma.FieldRef<"Department", 'String'>
|
|
1862
|
-
readonly is_active: Prisma.FieldRef<"Department", 'Boolean'>
|
|
1863
|
-
readonly created_at: Prisma.FieldRef<"Department", 'DateTime'>
|
|
1864
|
-
readonly created_by: Prisma.FieldRef<"Department", 'Int'>
|
|
1865
|
-
readonly updated_at: Prisma.FieldRef<"Department", 'DateTime'>
|
|
1866
|
-
readonly updated_by: Prisma.FieldRef<"Department", 'Int'>
|
|
1867
|
-
readonly is_deleted: Prisma.FieldRef<"Department", 'Boolean'>
|
|
1868
|
-
readonly deleted_at: Prisma.FieldRef<"Department", 'DateTime'>
|
|
1869
|
-
readonly deleted_by: Prisma.FieldRef<"Department", 'Int'>
|
|
1870
|
-
}
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
// Custom InputTypes
|
|
1874
|
-
/**
|
|
1875
|
-
* Department findUnique
|
|
1876
|
-
*/
|
|
1877
|
-
export type DepartmentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1878
|
-
/**
|
|
1879
|
-
* Select specific fields to fetch from the Department
|
|
1880
|
-
*/
|
|
1881
|
-
select?: Prisma.DepartmentSelect<ExtArgs> | null
|
|
1882
|
-
/**
|
|
1883
|
-
* Omit specific fields from the Department
|
|
1884
|
-
*/
|
|
1885
|
-
omit?: Prisma.DepartmentOmit<ExtArgs> | null
|
|
1886
|
-
/**
|
|
1887
|
-
* Choose, which related nodes to fetch as well
|
|
1888
|
-
*/
|
|
1889
|
-
include?: Prisma.DepartmentInclude<ExtArgs> | null
|
|
1890
|
-
/**
|
|
1891
|
-
* Filter, which Department to fetch.
|
|
1892
|
-
*/
|
|
1893
|
-
where: Prisma.DepartmentWhereUniqueInput
|
|
1894
|
-
}
|
|
1895
|
-
|
|
1896
|
-
/**
|
|
1897
|
-
* Department findUniqueOrThrow
|
|
1898
|
-
*/
|
|
1899
|
-
export type DepartmentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1900
|
-
/**
|
|
1901
|
-
* Select specific fields to fetch from the Department
|
|
1902
|
-
*/
|
|
1903
|
-
select?: Prisma.DepartmentSelect<ExtArgs> | null
|
|
1904
|
-
/**
|
|
1905
|
-
* Omit specific fields from the Department
|
|
1906
|
-
*/
|
|
1907
|
-
omit?: Prisma.DepartmentOmit<ExtArgs> | null
|
|
1908
|
-
/**
|
|
1909
|
-
* Choose, which related nodes to fetch as well
|
|
1910
|
-
*/
|
|
1911
|
-
include?: Prisma.DepartmentInclude<ExtArgs> | null
|
|
1912
|
-
/**
|
|
1913
|
-
* Filter, which Department to fetch.
|
|
1914
|
-
*/
|
|
1915
|
-
where: Prisma.DepartmentWhereUniqueInput
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
/**
|
|
1919
|
-
* Department findFirst
|
|
1920
|
-
*/
|
|
1921
|
-
export type DepartmentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1922
|
-
/**
|
|
1923
|
-
* Select specific fields to fetch from the Department
|
|
1924
|
-
*/
|
|
1925
|
-
select?: Prisma.DepartmentSelect<ExtArgs> | null
|
|
1926
|
-
/**
|
|
1927
|
-
* Omit specific fields from the Department
|
|
1928
|
-
*/
|
|
1929
|
-
omit?: Prisma.DepartmentOmit<ExtArgs> | null
|
|
1930
|
-
/**
|
|
1931
|
-
* Choose, which related nodes to fetch as well
|
|
1932
|
-
*/
|
|
1933
|
-
include?: Prisma.DepartmentInclude<ExtArgs> | null
|
|
1934
|
-
/**
|
|
1935
|
-
* Filter, which Department to fetch.
|
|
1936
|
-
*/
|
|
1937
|
-
where?: Prisma.DepartmentWhereInput
|
|
1938
|
-
/**
|
|
1939
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1940
|
-
*
|
|
1941
|
-
* Determine the order of Departments to fetch.
|
|
1942
|
-
*/
|
|
1943
|
-
orderBy?: Prisma.DepartmentOrderByWithRelationInput | Prisma.DepartmentOrderByWithRelationInput[]
|
|
1944
|
-
/**
|
|
1945
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1946
|
-
*
|
|
1947
|
-
* Sets the position for searching for Departments.
|
|
1948
|
-
*/
|
|
1949
|
-
cursor?: Prisma.DepartmentWhereUniqueInput
|
|
1950
|
-
/**
|
|
1951
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1952
|
-
*
|
|
1953
|
-
* Take `±n` Departments from the position of the cursor.
|
|
1954
|
-
*/
|
|
1955
|
-
take?: number
|
|
1956
|
-
/**
|
|
1957
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1958
|
-
*
|
|
1959
|
-
* Skip the first `n` Departments.
|
|
1960
|
-
*/
|
|
1961
|
-
skip?: number
|
|
1962
|
-
/**
|
|
1963
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1964
|
-
*
|
|
1965
|
-
* Filter by unique combinations of Departments.
|
|
1966
|
-
*/
|
|
1967
|
-
distinct?: Prisma.DepartmentScalarFieldEnum | Prisma.DepartmentScalarFieldEnum[]
|
|
1968
|
-
}
|
|
1969
|
-
|
|
1970
|
-
/**
|
|
1971
|
-
* Department findFirstOrThrow
|
|
1972
|
-
*/
|
|
1973
|
-
export type DepartmentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1974
|
-
/**
|
|
1975
|
-
* Select specific fields to fetch from the Department
|
|
1976
|
-
*/
|
|
1977
|
-
select?: Prisma.DepartmentSelect<ExtArgs> | null
|
|
1978
|
-
/**
|
|
1979
|
-
* Omit specific fields from the Department
|
|
1980
|
-
*/
|
|
1981
|
-
omit?: Prisma.DepartmentOmit<ExtArgs> | null
|
|
1982
|
-
/**
|
|
1983
|
-
* Choose, which related nodes to fetch as well
|
|
1984
|
-
*/
|
|
1985
|
-
include?: Prisma.DepartmentInclude<ExtArgs> | null
|
|
1986
|
-
/**
|
|
1987
|
-
* Filter, which Department to fetch.
|
|
1988
|
-
*/
|
|
1989
|
-
where?: Prisma.DepartmentWhereInput
|
|
1990
|
-
/**
|
|
1991
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1992
|
-
*
|
|
1993
|
-
* Determine the order of Departments to fetch.
|
|
1994
|
-
*/
|
|
1995
|
-
orderBy?: Prisma.DepartmentOrderByWithRelationInput | Prisma.DepartmentOrderByWithRelationInput[]
|
|
1996
|
-
/**
|
|
1997
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1998
|
-
*
|
|
1999
|
-
* Sets the position for searching for Departments.
|
|
2000
|
-
*/
|
|
2001
|
-
cursor?: Prisma.DepartmentWhereUniqueInput
|
|
2002
|
-
/**
|
|
2003
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2004
|
-
*
|
|
2005
|
-
* Take `±n` Departments from the position of the cursor.
|
|
2006
|
-
*/
|
|
2007
|
-
take?: number
|
|
2008
|
-
/**
|
|
2009
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2010
|
-
*
|
|
2011
|
-
* Skip the first `n` Departments.
|
|
2012
|
-
*/
|
|
2013
|
-
skip?: number
|
|
2014
|
-
/**
|
|
2015
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
2016
|
-
*
|
|
2017
|
-
* Filter by unique combinations of Departments.
|
|
2018
|
-
*/
|
|
2019
|
-
distinct?: Prisma.DepartmentScalarFieldEnum | Prisma.DepartmentScalarFieldEnum[]
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
/**
|
|
2023
|
-
* Department findMany
|
|
2024
|
-
*/
|
|
2025
|
-
export type DepartmentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2026
|
-
/**
|
|
2027
|
-
* Select specific fields to fetch from the Department
|
|
2028
|
-
*/
|
|
2029
|
-
select?: Prisma.DepartmentSelect<ExtArgs> | null
|
|
2030
|
-
/**
|
|
2031
|
-
* Omit specific fields from the Department
|
|
2032
|
-
*/
|
|
2033
|
-
omit?: Prisma.DepartmentOmit<ExtArgs> | null
|
|
2034
|
-
/**
|
|
2035
|
-
* Choose, which related nodes to fetch as well
|
|
2036
|
-
*/
|
|
2037
|
-
include?: Prisma.DepartmentInclude<ExtArgs> | null
|
|
2038
|
-
/**
|
|
2039
|
-
* Filter, which Departments to fetch.
|
|
2040
|
-
*/
|
|
2041
|
-
where?: Prisma.DepartmentWhereInput
|
|
2042
|
-
/**
|
|
2043
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
2044
|
-
*
|
|
2045
|
-
* Determine the order of Departments to fetch.
|
|
2046
|
-
*/
|
|
2047
|
-
orderBy?: Prisma.DepartmentOrderByWithRelationInput | Prisma.DepartmentOrderByWithRelationInput[]
|
|
2048
|
-
/**
|
|
2049
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
2050
|
-
*
|
|
2051
|
-
* Sets the position for listing Departments.
|
|
2052
|
-
*/
|
|
2053
|
-
cursor?: Prisma.DepartmentWhereUniqueInput
|
|
2054
|
-
/**
|
|
2055
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2056
|
-
*
|
|
2057
|
-
* Take `±n` Departments from the position of the cursor.
|
|
2058
|
-
*/
|
|
2059
|
-
take?: number
|
|
2060
|
-
/**
|
|
2061
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2062
|
-
*
|
|
2063
|
-
* Skip the first `n` Departments.
|
|
2064
|
-
*/
|
|
2065
|
-
skip?: number
|
|
2066
|
-
/**
|
|
2067
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
2068
|
-
*
|
|
2069
|
-
* Filter by unique combinations of Departments.
|
|
2070
|
-
*/
|
|
2071
|
-
distinct?: Prisma.DepartmentScalarFieldEnum | Prisma.DepartmentScalarFieldEnum[]
|
|
2072
|
-
}
|
|
2073
|
-
|
|
2074
|
-
/**
|
|
2075
|
-
* Department create
|
|
2076
|
-
*/
|
|
2077
|
-
export type DepartmentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2078
|
-
/**
|
|
2079
|
-
* Select specific fields to fetch from the Department
|
|
2080
|
-
*/
|
|
2081
|
-
select?: Prisma.DepartmentSelect<ExtArgs> | null
|
|
2082
|
-
/**
|
|
2083
|
-
* Omit specific fields from the Department
|
|
2084
|
-
*/
|
|
2085
|
-
omit?: Prisma.DepartmentOmit<ExtArgs> | null
|
|
2086
|
-
/**
|
|
2087
|
-
* Choose, which related nodes to fetch as well
|
|
2088
|
-
*/
|
|
2089
|
-
include?: Prisma.DepartmentInclude<ExtArgs> | null
|
|
2090
|
-
/**
|
|
2091
|
-
* The data needed to create a Department.
|
|
2092
|
-
*/
|
|
2093
|
-
data?: Prisma.XOR<Prisma.DepartmentCreateInput, Prisma.DepartmentUncheckedCreateInput>
|
|
2094
|
-
}
|
|
2095
|
-
|
|
2096
|
-
/**
|
|
2097
|
-
* Department createMany
|
|
2098
|
-
*/
|
|
2099
|
-
export type DepartmentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2100
|
-
/**
|
|
2101
|
-
* The data used to create many Departments.
|
|
2102
|
-
*/
|
|
2103
|
-
data: Prisma.DepartmentCreateManyInput | Prisma.DepartmentCreateManyInput[]
|
|
2104
|
-
skipDuplicates?: boolean
|
|
2105
|
-
}
|
|
2106
|
-
|
|
2107
|
-
/**
|
|
2108
|
-
* Department createManyAndReturn
|
|
2109
|
-
*/
|
|
2110
|
-
export type DepartmentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2111
|
-
/**
|
|
2112
|
-
* Select specific fields to fetch from the Department
|
|
2113
|
-
*/
|
|
2114
|
-
select?: Prisma.DepartmentSelectCreateManyAndReturn<ExtArgs> | null
|
|
2115
|
-
/**
|
|
2116
|
-
* Omit specific fields from the Department
|
|
2117
|
-
*/
|
|
2118
|
-
omit?: Prisma.DepartmentOmit<ExtArgs> | null
|
|
2119
|
-
/**
|
|
2120
|
-
* The data used to create many Departments.
|
|
2121
|
-
*/
|
|
2122
|
-
data: Prisma.DepartmentCreateManyInput | Prisma.DepartmentCreateManyInput[]
|
|
2123
|
-
skipDuplicates?: boolean
|
|
2124
|
-
/**
|
|
2125
|
-
* Choose, which related nodes to fetch as well
|
|
2126
|
-
*/
|
|
2127
|
-
include?: Prisma.DepartmentIncludeCreateManyAndReturn<ExtArgs> | null
|
|
2128
|
-
}
|
|
2129
|
-
|
|
2130
|
-
/**
|
|
2131
|
-
* Department update
|
|
2132
|
-
*/
|
|
2133
|
-
export type DepartmentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2134
|
-
/**
|
|
2135
|
-
* Select specific fields to fetch from the Department
|
|
2136
|
-
*/
|
|
2137
|
-
select?: Prisma.DepartmentSelect<ExtArgs> | null
|
|
2138
|
-
/**
|
|
2139
|
-
* Omit specific fields from the Department
|
|
2140
|
-
*/
|
|
2141
|
-
omit?: Prisma.DepartmentOmit<ExtArgs> | null
|
|
2142
|
-
/**
|
|
2143
|
-
* Choose, which related nodes to fetch as well
|
|
2144
|
-
*/
|
|
2145
|
-
include?: Prisma.DepartmentInclude<ExtArgs> | null
|
|
2146
|
-
/**
|
|
2147
|
-
* The data needed to update a Department.
|
|
2148
|
-
*/
|
|
2149
|
-
data: Prisma.XOR<Prisma.DepartmentUpdateInput, Prisma.DepartmentUncheckedUpdateInput>
|
|
2150
|
-
/**
|
|
2151
|
-
* Choose, which Department to update.
|
|
2152
|
-
*/
|
|
2153
|
-
where: Prisma.DepartmentWhereUniqueInput
|
|
2154
|
-
}
|
|
2155
|
-
|
|
2156
|
-
/**
|
|
2157
|
-
* Department updateMany
|
|
2158
|
-
*/
|
|
2159
|
-
export type DepartmentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2160
|
-
/**
|
|
2161
|
-
* The data used to update Departments.
|
|
2162
|
-
*/
|
|
2163
|
-
data: Prisma.XOR<Prisma.DepartmentUpdateManyMutationInput, Prisma.DepartmentUncheckedUpdateManyInput>
|
|
2164
|
-
/**
|
|
2165
|
-
* Filter which Departments to update
|
|
2166
|
-
*/
|
|
2167
|
-
where?: Prisma.DepartmentWhereInput
|
|
2168
|
-
/**
|
|
2169
|
-
* Limit how many Departments to update.
|
|
2170
|
-
*/
|
|
2171
|
-
limit?: number
|
|
2172
|
-
}
|
|
2173
|
-
|
|
2174
|
-
/**
|
|
2175
|
-
* Department updateManyAndReturn
|
|
2176
|
-
*/
|
|
2177
|
-
export type DepartmentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2178
|
-
/**
|
|
2179
|
-
* Select specific fields to fetch from the Department
|
|
2180
|
-
*/
|
|
2181
|
-
select?: Prisma.DepartmentSelectUpdateManyAndReturn<ExtArgs> | null
|
|
2182
|
-
/**
|
|
2183
|
-
* Omit specific fields from the Department
|
|
2184
|
-
*/
|
|
2185
|
-
omit?: Prisma.DepartmentOmit<ExtArgs> | null
|
|
2186
|
-
/**
|
|
2187
|
-
* The data used to update Departments.
|
|
2188
|
-
*/
|
|
2189
|
-
data: Prisma.XOR<Prisma.DepartmentUpdateManyMutationInput, Prisma.DepartmentUncheckedUpdateManyInput>
|
|
2190
|
-
/**
|
|
2191
|
-
* Filter which Departments to update
|
|
2192
|
-
*/
|
|
2193
|
-
where?: Prisma.DepartmentWhereInput
|
|
2194
|
-
/**
|
|
2195
|
-
* Limit how many Departments to update.
|
|
2196
|
-
*/
|
|
2197
|
-
limit?: number
|
|
2198
|
-
/**
|
|
2199
|
-
* Choose, which related nodes to fetch as well
|
|
2200
|
-
*/
|
|
2201
|
-
include?: Prisma.DepartmentIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
/**
|
|
2205
|
-
* Department upsert
|
|
2206
|
-
*/
|
|
2207
|
-
export type DepartmentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2208
|
-
/**
|
|
2209
|
-
* Select specific fields to fetch from the Department
|
|
2210
|
-
*/
|
|
2211
|
-
select?: Prisma.DepartmentSelect<ExtArgs> | null
|
|
2212
|
-
/**
|
|
2213
|
-
* Omit specific fields from the Department
|
|
2214
|
-
*/
|
|
2215
|
-
omit?: Prisma.DepartmentOmit<ExtArgs> | null
|
|
2216
|
-
/**
|
|
2217
|
-
* Choose, which related nodes to fetch as well
|
|
2218
|
-
*/
|
|
2219
|
-
include?: Prisma.DepartmentInclude<ExtArgs> | null
|
|
2220
|
-
/**
|
|
2221
|
-
* The filter to search for the Department to update in case it exists.
|
|
2222
|
-
*/
|
|
2223
|
-
where: Prisma.DepartmentWhereUniqueInput
|
|
2224
|
-
/**
|
|
2225
|
-
* In case the Department found by the `where` argument doesn't exist, create a new Department with this data.
|
|
2226
|
-
*/
|
|
2227
|
-
create: Prisma.XOR<Prisma.DepartmentCreateInput, Prisma.DepartmentUncheckedCreateInput>
|
|
2228
|
-
/**
|
|
2229
|
-
* In case the Department was found with the provided `where` argument, update it with this data.
|
|
2230
|
-
*/
|
|
2231
|
-
update: Prisma.XOR<Prisma.DepartmentUpdateInput, Prisma.DepartmentUncheckedUpdateInput>
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
|
-
/**
|
|
2235
|
-
* Department delete
|
|
2236
|
-
*/
|
|
2237
|
-
export type DepartmentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2238
|
-
/**
|
|
2239
|
-
* Select specific fields to fetch from the Department
|
|
2240
|
-
*/
|
|
2241
|
-
select?: Prisma.DepartmentSelect<ExtArgs> | null
|
|
2242
|
-
/**
|
|
2243
|
-
* Omit specific fields from the Department
|
|
2244
|
-
*/
|
|
2245
|
-
omit?: Prisma.DepartmentOmit<ExtArgs> | null
|
|
2246
|
-
/**
|
|
2247
|
-
* Choose, which related nodes to fetch as well
|
|
2248
|
-
*/
|
|
2249
|
-
include?: Prisma.DepartmentInclude<ExtArgs> | null
|
|
2250
|
-
/**
|
|
2251
|
-
* Filter which Department to delete.
|
|
2252
|
-
*/
|
|
2253
|
-
where: Prisma.DepartmentWhereUniqueInput
|
|
2254
|
-
}
|
|
2255
|
-
|
|
2256
|
-
/**
|
|
2257
|
-
* Department deleteMany
|
|
2258
|
-
*/
|
|
2259
|
-
export type DepartmentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2260
|
-
/**
|
|
2261
|
-
* Filter which Departments to delete
|
|
2262
|
-
*/
|
|
2263
|
-
where?: Prisma.DepartmentWhereInput
|
|
2264
|
-
/**
|
|
2265
|
-
* Limit how many Departments to delete.
|
|
2266
|
-
*/
|
|
2267
|
-
limit?: number
|
|
2268
|
-
}
|
|
2269
|
-
|
|
2270
|
-
/**
|
|
2271
|
-
* Department.department_head_user
|
|
2272
|
-
*/
|
|
2273
|
-
export type Department$department_head_userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2274
|
-
/**
|
|
2275
|
-
* Select specific fields to fetch from the User
|
|
2276
|
-
*/
|
|
2277
|
-
select?: Prisma.UserSelect<ExtArgs> | null
|
|
2278
|
-
/**
|
|
2279
|
-
* Omit specific fields from the User
|
|
2280
|
-
*/
|
|
2281
|
-
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
2282
|
-
/**
|
|
2283
|
-
* Choose, which related nodes to fetch as well
|
|
2284
|
-
*/
|
|
2285
|
-
include?: Prisma.UserInclude<ExtArgs> | null
|
|
2286
|
-
where?: Prisma.UserWhereInput
|
|
2287
|
-
}
|
|
2288
|
-
|
|
2289
|
-
/**
|
|
2290
|
-
* Department.budget_manager_user
|
|
2291
|
-
*/
|
|
2292
|
-
export type Department$budget_manager_userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2293
|
-
/**
|
|
2294
|
-
* Select specific fields to fetch from the User
|
|
2295
|
-
*/
|
|
2296
|
-
select?: Prisma.UserSelect<ExtArgs> | null
|
|
2297
|
-
/**
|
|
2298
|
-
* Omit specific fields from the User
|
|
2299
|
-
*/
|
|
2300
|
-
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
2301
|
-
/**
|
|
2302
|
-
* Choose, which related nodes to fetch as well
|
|
2303
|
-
*/
|
|
2304
|
-
include?: Prisma.UserInclude<ExtArgs> | null
|
|
2305
|
-
where?: Prisma.UserWhereInput
|
|
2306
|
-
}
|
|
2307
|
-
|
|
2308
|
-
/**
|
|
2309
|
-
* Department.department_budget
|
|
2310
|
-
*/
|
|
2311
|
-
export type Department$department_budgetArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2312
|
-
/**
|
|
2313
|
-
* Select specific fields to fetch from the DepartmentBudget
|
|
2314
|
-
*/
|
|
2315
|
-
select?: Prisma.DepartmentBudgetSelect<ExtArgs> | null
|
|
2316
|
-
/**
|
|
2317
|
-
* Omit specific fields from the DepartmentBudget
|
|
2318
|
-
*/
|
|
2319
|
-
omit?: Prisma.DepartmentBudgetOmit<ExtArgs> | null
|
|
2320
|
-
/**
|
|
2321
|
-
* Choose, which related nodes to fetch as well
|
|
2322
|
-
*/
|
|
2323
|
-
include?: Prisma.DepartmentBudgetInclude<ExtArgs> | null
|
|
2324
|
-
where?: Prisma.DepartmentBudgetWhereInput
|
|
2325
|
-
orderBy?: Prisma.DepartmentBudgetOrderByWithRelationInput | Prisma.DepartmentBudgetOrderByWithRelationInput[]
|
|
2326
|
-
cursor?: Prisma.DepartmentBudgetWhereUniqueInput
|
|
2327
|
-
take?: number
|
|
2328
|
-
skip?: number
|
|
2329
|
-
distinct?: Prisma.DepartmentBudgetScalarFieldEnum | Prisma.DepartmentBudgetScalarFieldEnum[]
|
|
2330
|
-
}
|
|
2331
|
-
|
|
2332
|
-
/**
|
|
2333
|
-
* Department.business_entity_departments
|
|
2334
|
-
*/
|
|
2335
|
-
export type Department$business_entity_departmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2336
|
-
/**
|
|
2337
|
-
* Select specific fields to fetch from the BusinessEntityDepartment
|
|
2338
|
-
*/
|
|
2339
|
-
select?: Prisma.BusinessEntityDepartmentSelect<ExtArgs> | null
|
|
2340
|
-
/**
|
|
2341
|
-
* Omit specific fields from the BusinessEntityDepartment
|
|
2342
|
-
*/
|
|
2343
|
-
omit?: Prisma.BusinessEntityDepartmentOmit<ExtArgs> | null
|
|
2344
|
-
/**
|
|
2345
|
-
* Choose, which related nodes to fetch as well
|
|
2346
|
-
*/
|
|
2347
|
-
include?: Prisma.BusinessEntityDepartmentInclude<ExtArgs> | null
|
|
2348
|
-
where?: Prisma.BusinessEntityDepartmentWhereInput
|
|
2349
|
-
orderBy?: Prisma.BusinessEntityDepartmentOrderByWithRelationInput | Prisma.BusinessEntityDepartmentOrderByWithRelationInput[]
|
|
2350
|
-
cursor?: Prisma.BusinessEntityDepartmentWhereUniqueInput
|
|
2351
|
-
take?: number
|
|
2352
|
-
skip?: number
|
|
2353
|
-
distinct?: Prisma.BusinessEntityDepartmentScalarFieldEnum | Prisma.BusinessEntityDepartmentScalarFieldEnum[]
|
|
2354
|
-
}
|
|
2355
|
-
|
|
2356
|
-
/**
|
|
2357
|
-
* Department without action
|
|
2358
|
-
*/
|
|
2359
|
-
export type DepartmentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2360
|
-
/**
|
|
2361
|
-
* Select specific fields to fetch from the Department
|
|
2362
|
-
*/
|
|
2363
|
-
select?: Prisma.DepartmentSelect<ExtArgs> | null
|
|
2364
|
-
/**
|
|
2365
|
-
* Omit specific fields from the Department
|
|
2366
|
-
*/
|
|
2367
|
-
omit?: Prisma.DepartmentOmit<ExtArgs> | null
|
|
2368
|
-
/**
|
|
2369
|
-
* Choose, which related nodes to fetch as well
|
|
2370
|
-
*/
|
|
2371
|
-
include?: Prisma.DepartmentInclude<ExtArgs> | null
|
|
2372
|
-
}
|