procbay-schema 1.0.171 → 1.0.174

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