efiber-prisma-schema 1.16.1 → 2.0.0

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 (124) hide show
  1. package/index.d.ts +6 -1
  2. package/index.js +10 -1
  3. package/package.json +13 -5
  4. package/prisma/generated/browser.ts +559 -0
  5. package/prisma/generated/client.ts +581 -0
  6. package/prisma/generated/commonInputTypes.ts +1246 -0
  7. package/prisma/generated/enums.ts +188 -0
  8. package/prisma/generated/internal/class.ts +1260 -0
  9. package/prisma/generated/internal/prismaNamespace.ts +11532 -0
  10. package/prisma/generated/internal/prismaNamespaceBrowser.ts +2582 -0
  11. package/prisma/generated/models/AttributeDefinition.ts +1498 -0
  12. package/prisma/generated/models/AttributeValue.ts +1419 -0
  13. package/prisma/generated/models/Audit.ts +1725 -0
  14. package/prisma/generated/models/BillOfMaterial.ts +1934 -0
  15. package/prisma/generated/models/Building.ts +6130 -0
  16. package/prisma/generated/models/BuildingTemplate.ts +2912 -0
  17. package/prisma/generated/models/Cable.ts +10501 -0
  18. package/prisma/generated/models/CableAttachment.ts +1530 -0
  19. package/prisma/generated/models/CableAttributes.ts +2244 -0
  20. package/prisma/generated/models/CableTemplate.ts +3170 -0
  21. package/prisma/generated/models/CamusatClient.ts +2001 -0
  22. package/prisma/generated/models/CamusatCountry.ts +2425 -0
  23. package/prisma/generated/models/CentralOffice.ts +1921 -0
  24. package/prisma/generated/models/CentralOfficeTeam.ts +1620 -0
  25. package/prisma/generated/models/CentralOfficeUser.ts +1650 -0
  26. package/prisma/generated/models/Cluster.ts +10984 -0
  27. package/prisma/generated/models/ClusterComments.ts +1668 -0
  28. package/prisma/generated/models/ClusterNotes.ts +1703 -0
  29. package/prisma/generated/models/Conduit.ts +5119 -0
  30. package/prisma/generated/models/ConduitTemplate.ts +2940 -0
  31. package/prisma/generated/models/Country.ts +1795 -0
  32. package/prisma/generated/models/DispatchMaterial.ts +3070 -0
  33. package/prisma/generated/models/DispatchProject.ts +4179 -0
  34. package/prisma/generated/models/DispatchTeam.ts +3053 -0
  35. package/prisma/generated/models/Duct.ts +1813 -0
  36. package/prisma/generated/models/ElementNode.ts +4413 -0
  37. package/prisma/generated/models/ElementRelation.ts +1644 -0
  38. package/prisma/generated/models/EmailConfigurations.ts +3736 -0
  39. package/prisma/generated/models/EmailTemplates.ts +1739 -0
  40. package/prisma/generated/models/EmailsIncoming.ts +2010 -0
  41. package/prisma/generated/models/EmailsIncomingSample.ts +1503 -0
  42. package/prisma/generated/models/EmailsOutgoing.ts +1648 -0
  43. package/prisma/generated/models/FDTSRO.ts +6180 -0
  44. package/prisma/generated/models/FDTSROTemplate.ts +2912 -0
  45. package/prisma/generated/models/Feature.ts +1867 -0
  46. package/prisma/generated/models/FeatureType.ts +1430 -0
  47. package/prisma/generated/models/IntegrationReportTemplate.ts +1878 -0
  48. package/prisma/generated/models/Loop.ts +5271 -0
  49. package/prisma/generated/models/LoopTemplate.ts +2912 -0
  50. package/prisma/generated/models/MainProject.ts +1664 -0
  51. package/prisma/generated/models/Manhole.ts +5090 -0
  52. package/prisma/generated/models/ManholeTemplate.ts +2912 -0
  53. package/prisma/generated/models/MapElement.ts +3450 -0
  54. package/prisma/generated/models/MapElementTemplate.ts +2742 -0
  55. package/prisma/generated/models/Material.ts +1963 -0
  56. package/prisma/generated/models/MaterialBillOfMaterial.ts +1737 -0
  57. package/prisma/generated/models/MaterialChangeLog.ts +1454 -0
  58. package/prisma/generated/models/NetworkElement.ts +6891 -0
  59. package/prisma/generated/models/NetworkElementInstallation.ts +3320 -0
  60. package/prisma/generated/models/Notifications.ts +1563 -0
  61. package/prisma/generated/models/OptionSource.ts +1132 -0
  62. package/prisma/generated/models/PboFat.ts +8248 -0
  63. package/prisma/generated/models/PboFatAttributes.ts +2672 -0
  64. package/prisma/generated/models/PboFatTemplate.ts +3112 -0
  65. package/prisma/generated/models/Platform.ts +1759 -0
  66. package/prisma/generated/models/Pole.ts +5266 -0
  67. package/prisma/generated/models/PoleTemplate.ts +2912 -0
  68. package/prisma/generated/models/Position.ts +1490 -0
  69. package/prisma/generated/models/PreviousEquipment.ts +1881 -0
  70. package/prisma/generated/models/Project.ts +14893 -0
  71. package/prisma/generated/models/ProjectType.ts +1351 -0
  72. package/prisma/generated/models/ProjectWorkFlow.ts +1856 -0
  73. package/prisma/generated/models/ReportFormats.ts +1768 -0
  74. package/prisma/generated/models/ReportFormulaConfig.ts +1375 -0
  75. package/prisma/generated/models/ReportMetric.ts +1737 -0
  76. package/prisma/generated/models/ReportTable.ts +1498 -0
  77. package/prisma/generated/models/ReportVisualization.ts +1446 -0
  78. package/prisma/generated/models/Revision.ts +4653 -0
  79. package/prisma/generated/models/Role.ts +2960 -0
  80. package/prisma/generated/models/SFU.ts +5977 -0
  81. package/prisma/generated/models/SFUTemplate.ts +2912 -0
  82. package/prisma/generated/models/SpliceClosure.ts +6405 -0
  83. package/prisma/generated/models/SpliceClosureAttributes.ts +2172 -0
  84. package/prisma/generated/models/SpliceClosureTemplate.ts +3176 -0
  85. package/prisma/generated/models/Splitter.ts +1459 -0
  86. package/prisma/generated/models/StockMovement.ts +1589 -0
  87. package/prisma/generated/models/SubsidiaryMaterial.ts +2193 -0
  88. package/prisma/generated/models/SubsidiaryMaterialMovementLog.ts +1966 -0
  89. package/prisma/generated/models/Team.ts +2044 -0
  90. package/prisma/generated/models/TeamMaterial.ts +2193 -0
  91. package/prisma/generated/models/TeamMaterialMovementLog.ts +1966 -0
  92. package/prisma/generated/models/TeamPlatform.ts +1874 -0
  93. package/prisma/generated/models/TeamType.ts +1655 -0
  94. package/prisma/generated/models/Template.ts +1691 -0
  95. package/prisma/generated/models/TemplateComponent.ts +1995 -0
  96. package/prisma/generated/models/User.ts +25676 -0
  97. package/prisma/generated/models/WorkOrder.ts +5901 -0
  98. package/prisma/generated/models/WorkOrderActivityLog.ts +2126 -0
  99. package/prisma/generated/models/WorkOrderChannel.ts +1454 -0
  100. package/prisma/generated/models/WorkOrderComments.ts +1687 -0
  101. package/prisma/generated/models/WorkOrderEditLog.ts +1757 -0
  102. package/prisma/generated/models/WorkOrderMaterial.ts +1933 -0
  103. package/prisma/generated/models/WorkOrderPauses.ts +1454 -0
  104. package/prisma/generated/models/WorkOrderTask.ts +2220 -0
  105. package/prisma/generated/models/WorkOrderTaskData.ts +1244 -0
  106. package/prisma/generated/models/ZoneNro.ts +3926 -0
  107. package/prisma/generated/models/ZoneNroTemplate.ts +2966 -0
  108. package/prisma/generated/models/clientMaterial.ts +2193 -0
  109. package/prisma/generated/models/clientMaterialMovementLog.ts +1966 -0
  110. package/prisma/generated/models/ductTemplate.ts +1606 -0
  111. package/prisma/generated/models/installationSequence.ts +1708 -0
  112. package/prisma/generated/models/integrationProjectUserStatus.ts +1916 -0
  113. package/prisma/generated/models/integrationUserLocation.ts +1681 -0
  114. package/prisma/generated/models/problemCategorization.ts +1543 -0
  115. package/prisma/generated/models/projectPhaseLog.ts +1728 -0
  116. package/prisma/generated/models/qrCodeTag.ts +4978 -0
  117. package/prisma/generated/models/qrCodeTemplate.ts +6500 -0
  118. package/prisma/generated/models/ticketMaterialMovementLog.ts +1651 -0
  119. package/prisma/generated/models.ts +119 -0
  120. package/prisma/migrations/20251106101538_max_capacity_string/migration.sql +2 -0
  121. package/prisma/schema.prisma +3 -3
  122. package/prisma/seed.ts +33 -0
  123. package/prisma.config.ts +13 -0
  124. package/tsconfig.json +13 -0
@@ -0,0 +1,2960 @@
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.js"
13
+ import type * as Prisma from "../internal/prismaNamespace.js"
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
+ no: number | null
31
+ }
32
+
33
+ export type RoleSumAggregateOutputType = {
34
+ no: number | null
35
+ }
36
+
37
+ export type RoleMinAggregateOutputType = {
38
+ id: string | null
39
+ no: number | null
40
+ name: string | null
41
+ description: string | null
42
+ status: string | null
43
+ login: boolean | null
44
+ access_web: boolean | null
45
+ access_mobile: boolean | null
46
+ add_users: boolean | null
47
+ view_users: boolean | null
48
+ delete_users: boolean | null
49
+ view_requests: boolean | null
50
+ manage_requests: boolean | null
51
+ add_main_projects: boolean | null
52
+ view_main_projects: boolean | null
53
+ edit_main_projects: boolean | null
54
+ delete_main_projects: boolean | null
55
+ view_settings: boolean | null
56
+ view_audit: boolean | null
57
+ full_projects: boolean | null
58
+ add_projects: boolean | null
59
+ edit_projects: boolean | null
60
+ view_projects: boolean | null
61
+ delete_projects: boolean | null
62
+ add_sub_projects: boolean | null
63
+ manage_work_orders: boolean | null
64
+ full_teams: boolean | null
65
+ add_team: boolean | null
66
+ view_team: boolean | null
67
+ quality: boolean | null
68
+ dispatch_web_access: boolean | null
69
+ dispatch_mobile: boolean | null
70
+ dispatch_add_workorders: boolean | null
71
+ dispatch_view_workorders: boolean | null
72
+ dispatch_edit_workorders: boolean | null
73
+ dispatch_view_schedule: boolean | null
74
+ dispatch_add_teams: boolean | null
75
+ dispatch_view_teams: boolean | null
76
+ dispatch_edit_teams: boolean | null
77
+ dispatch_delete_teams: boolean | null
78
+ dispatch_view_projects: boolean | null
79
+ dispatch_edit_projects: boolean | null
80
+ dispatch_edit_materials: boolean | null
81
+ dispatch_view_materials: boolean | null
82
+ dispatch_add_materials: boolean | null
83
+ dispatch_delete_materials: boolean | null
84
+ dispatch_view_reports: boolean | null
85
+ dispatch_view_kpi: boolean | null
86
+ integration_web_access: boolean | null
87
+ integration_mobile: boolean | null
88
+ createdAt: Date | null
89
+ updatedAt: Date | null
90
+ deletedAt: Date | null
91
+ }
92
+
93
+ export type RoleMaxAggregateOutputType = {
94
+ id: string | null
95
+ no: number | null
96
+ name: string | null
97
+ description: string | null
98
+ status: string | null
99
+ login: boolean | null
100
+ access_web: boolean | null
101
+ access_mobile: boolean | null
102
+ add_users: boolean | null
103
+ view_users: boolean | null
104
+ delete_users: boolean | null
105
+ view_requests: boolean | null
106
+ manage_requests: boolean | null
107
+ add_main_projects: boolean | null
108
+ view_main_projects: boolean | null
109
+ edit_main_projects: boolean | null
110
+ delete_main_projects: boolean | null
111
+ view_settings: boolean | null
112
+ view_audit: boolean | null
113
+ full_projects: boolean | null
114
+ add_projects: boolean | null
115
+ edit_projects: boolean | null
116
+ view_projects: boolean | null
117
+ delete_projects: boolean | null
118
+ add_sub_projects: boolean | null
119
+ manage_work_orders: boolean | null
120
+ full_teams: boolean | null
121
+ add_team: boolean | null
122
+ view_team: boolean | null
123
+ quality: boolean | null
124
+ dispatch_web_access: boolean | null
125
+ dispatch_mobile: boolean | null
126
+ dispatch_add_workorders: boolean | null
127
+ dispatch_view_workorders: boolean | null
128
+ dispatch_edit_workorders: boolean | null
129
+ dispatch_view_schedule: boolean | null
130
+ dispatch_add_teams: boolean | null
131
+ dispatch_view_teams: boolean | null
132
+ dispatch_edit_teams: boolean | null
133
+ dispatch_delete_teams: boolean | null
134
+ dispatch_view_projects: boolean | null
135
+ dispatch_edit_projects: boolean | null
136
+ dispatch_edit_materials: boolean | null
137
+ dispatch_view_materials: boolean | null
138
+ dispatch_add_materials: boolean | null
139
+ dispatch_delete_materials: boolean | null
140
+ dispatch_view_reports: boolean | null
141
+ dispatch_view_kpi: boolean | null
142
+ integration_web_access: boolean | null
143
+ integration_mobile: boolean | null
144
+ createdAt: Date | null
145
+ updatedAt: Date | null
146
+ deletedAt: Date | null
147
+ }
148
+
149
+ export type RoleCountAggregateOutputType = {
150
+ id: number
151
+ no: number
152
+ name: number
153
+ description: number
154
+ status: number
155
+ countries: number
156
+ platforms: number
157
+ login: number
158
+ access_web: number
159
+ access_mobile: number
160
+ add_users: number
161
+ view_users: number
162
+ delete_users: number
163
+ view_requests: number
164
+ manage_requests: number
165
+ add_main_projects: number
166
+ view_main_projects: number
167
+ edit_main_projects: number
168
+ delete_main_projects: number
169
+ view_settings: number
170
+ view_audit: number
171
+ full_projects: number
172
+ add_projects: number
173
+ edit_projects: number
174
+ view_projects: number
175
+ delete_projects: number
176
+ add_sub_projects: number
177
+ manage_work_orders: number
178
+ full_teams: number
179
+ add_team: number
180
+ view_team: number
181
+ quality: number
182
+ dispatch_web_access: number
183
+ dispatch_mobile: number
184
+ dispatch_add_workorders: number
185
+ dispatch_view_workorders: number
186
+ dispatch_edit_workorders: number
187
+ dispatch_view_schedule: number
188
+ dispatch_add_teams: number
189
+ dispatch_view_teams: number
190
+ dispatch_edit_teams: number
191
+ dispatch_delete_teams: number
192
+ dispatch_view_projects: number
193
+ dispatch_edit_projects: number
194
+ dispatch_edit_materials: number
195
+ dispatch_view_materials: number
196
+ dispatch_add_materials: number
197
+ dispatch_delete_materials: number
198
+ dispatch_view_reports: number
199
+ dispatch_view_kpi: number
200
+ integration_web_access: number
201
+ integration_mobile: number
202
+ createdAt: number
203
+ updatedAt: number
204
+ deletedAt: number
205
+ _all: number
206
+ }
207
+
208
+
209
+ export type RoleAvgAggregateInputType = {
210
+ no?: true
211
+ }
212
+
213
+ export type RoleSumAggregateInputType = {
214
+ no?: true
215
+ }
216
+
217
+ export type RoleMinAggregateInputType = {
218
+ id?: true
219
+ no?: true
220
+ name?: true
221
+ description?: true
222
+ status?: true
223
+ login?: true
224
+ access_web?: true
225
+ access_mobile?: true
226
+ add_users?: true
227
+ view_users?: true
228
+ delete_users?: true
229
+ view_requests?: true
230
+ manage_requests?: true
231
+ add_main_projects?: true
232
+ view_main_projects?: true
233
+ edit_main_projects?: true
234
+ delete_main_projects?: true
235
+ view_settings?: true
236
+ view_audit?: true
237
+ full_projects?: true
238
+ add_projects?: true
239
+ edit_projects?: true
240
+ view_projects?: true
241
+ delete_projects?: true
242
+ add_sub_projects?: true
243
+ manage_work_orders?: true
244
+ full_teams?: true
245
+ add_team?: true
246
+ view_team?: true
247
+ quality?: true
248
+ dispatch_web_access?: true
249
+ dispatch_mobile?: true
250
+ dispatch_add_workorders?: true
251
+ dispatch_view_workorders?: true
252
+ dispatch_edit_workorders?: true
253
+ dispatch_view_schedule?: true
254
+ dispatch_add_teams?: true
255
+ dispatch_view_teams?: true
256
+ dispatch_edit_teams?: true
257
+ dispatch_delete_teams?: true
258
+ dispatch_view_projects?: true
259
+ dispatch_edit_projects?: true
260
+ dispatch_edit_materials?: true
261
+ dispatch_view_materials?: true
262
+ dispatch_add_materials?: true
263
+ dispatch_delete_materials?: true
264
+ dispatch_view_reports?: true
265
+ dispatch_view_kpi?: true
266
+ integration_web_access?: true
267
+ integration_mobile?: true
268
+ createdAt?: true
269
+ updatedAt?: true
270
+ deletedAt?: true
271
+ }
272
+
273
+ export type RoleMaxAggregateInputType = {
274
+ id?: true
275
+ no?: true
276
+ name?: true
277
+ description?: true
278
+ status?: true
279
+ login?: true
280
+ access_web?: true
281
+ access_mobile?: true
282
+ add_users?: true
283
+ view_users?: true
284
+ delete_users?: true
285
+ view_requests?: true
286
+ manage_requests?: true
287
+ add_main_projects?: true
288
+ view_main_projects?: true
289
+ edit_main_projects?: true
290
+ delete_main_projects?: true
291
+ view_settings?: true
292
+ view_audit?: true
293
+ full_projects?: true
294
+ add_projects?: true
295
+ edit_projects?: true
296
+ view_projects?: true
297
+ delete_projects?: true
298
+ add_sub_projects?: true
299
+ manage_work_orders?: true
300
+ full_teams?: true
301
+ add_team?: true
302
+ view_team?: true
303
+ quality?: true
304
+ dispatch_web_access?: true
305
+ dispatch_mobile?: true
306
+ dispatch_add_workorders?: true
307
+ dispatch_view_workorders?: true
308
+ dispatch_edit_workorders?: true
309
+ dispatch_view_schedule?: true
310
+ dispatch_add_teams?: true
311
+ dispatch_view_teams?: true
312
+ dispatch_edit_teams?: true
313
+ dispatch_delete_teams?: true
314
+ dispatch_view_projects?: true
315
+ dispatch_edit_projects?: true
316
+ dispatch_edit_materials?: true
317
+ dispatch_view_materials?: true
318
+ dispatch_add_materials?: true
319
+ dispatch_delete_materials?: true
320
+ dispatch_view_reports?: true
321
+ dispatch_view_kpi?: true
322
+ integration_web_access?: true
323
+ integration_mobile?: true
324
+ createdAt?: true
325
+ updatedAt?: true
326
+ deletedAt?: true
327
+ }
328
+
329
+ export type RoleCountAggregateInputType = {
330
+ id?: true
331
+ no?: true
332
+ name?: true
333
+ description?: true
334
+ status?: true
335
+ countries?: true
336
+ platforms?: true
337
+ login?: true
338
+ access_web?: true
339
+ access_mobile?: true
340
+ add_users?: true
341
+ view_users?: true
342
+ delete_users?: true
343
+ view_requests?: true
344
+ manage_requests?: true
345
+ add_main_projects?: true
346
+ view_main_projects?: true
347
+ edit_main_projects?: true
348
+ delete_main_projects?: true
349
+ view_settings?: true
350
+ view_audit?: true
351
+ full_projects?: true
352
+ add_projects?: true
353
+ edit_projects?: true
354
+ view_projects?: true
355
+ delete_projects?: true
356
+ add_sub_projects?: true
357
+ manage_work_orders?: true
358
+ full_teams?: true
359
+ add_team?: true
360
+ view_team?: true
361
+ quality?: true
362
+ dispatch_web_access?: true
363
+ dispatch_mobile?: true
364
+ dispatch_add_workorders?: true
365
+ dispatch_view_workorders?: true
366
+ dispatch_edit_workorders?: true
367
+ dispatch_view_schedule?: true
368
+ dispatch_add_teams?: true
369
+ dispatch_view_teams?: true
370
+ dispatch_edit_teams?: true
371
+ dispatch_delete_teams?: true
372
+ dispatch_view_projects?: true
373
+ dispatch_edit_projects?: true
374
+ dispatch_edit_materials?: true
375
+ dispatch_view_materials?: true
376
+ dispatch_add_materials?: true
377
+ dispatch_delete_materials?: true
378
+ dispatch_view_reports?: true
379
+ dispatch_view_kpi?: true
380
+ integration_web_access?: true
381
+ integration_mobile?: true
382
+ createdAt?: true
383
+ updatedAt?: true
384
+ deletedAt?: true
385
+ _all?: true
386
+ }
387
+
388
+ export type RoleAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
389
+ /**
390
+ * Filter which Role to aggregate.
391
+ */
392
+ where?: Prisma.RoleWhereInput
393
+ /**
394
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
395
+ *
396
+ * Determine the order of Roles to fetch.
397
+ */
398
+ orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[]
399
+ /**
400
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
401
+ *
402
+ * Sets the start position
403
+ */
404
+ cursor?: Prisma.RoleWhereUniqueInput
405
+ /**
406
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
407
+ *
408
+ * Take `±n` Roles from the position of the cursor.
409
+ */
410
+ take?: number
411
+ /**
412
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
413
+ *
414
+ * Skip the first `n` Roles.
415
+ */
416
+ skip?: number
417
+ /**
418
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
419
+ *
420
+ * Count returned Roles
421
+ **/
422
+ _count?: true | RoleCountAggregateInputType
423
+ /**
424
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
425
+ *
426
+ * Select which fields to average
427
+ **/
428
+ _avg?: RoleAvgAggregateInputType
429
+ /**
430
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
431
+ *
432
+ * Select which fields to sum
433
+ **/
434
+ _sum?: RoleSumAggregateInputType
435
+ /**
436
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
437
+ *
438
+ * Select which fields to find the minimum value
439
+ **/
440
+ _min?: RoleMinAggregateInputType
441
+ /**
442
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
443
+ *
444
+ * Select which fields to find the maximum value
445
+ **/
446
+ _max?: RoleMaxAggregateInputType
447
+ }
448
+
449
+ export type GetRoleAggregateType<T extends RoleAggregateArgs> = {
450
+ [P in keyof T & keyof AggregateRole]: P extends '_count' | 'count'
451
+ ? T[P] extends true
452
+ ? number
453
+ : Prisma.GetScalarType<T[P], AggregateRole[P]>
454
+ : Prisma.GetScalarType<T[P], AggregateRole[P]>
455
+ }
456
+
457
+
458
+
459
+
460
+ export type RoleGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
461
+ where?: Prisma.RoleWhereInput
462
+ orderBy?: Prisma.RoleOrderByWithAggregationInput | Prisma.RoleOrderByWithAggregationInput[]
463
+ by: Prisma.RoleScalarFieldEnum[] | Prisma.RoleScalarFieldEnum
464
+ having?: Prisma.RoleScalarWhereWithAggregatesInput
465
+ take?: number
466
+ skip?: number
467
+ _count?: RoleCountAggregateInputType | true
468
+ _avg?: RoleAvgAggregateInputType
469
+ _sum?: RoleSumAggregateInputType
470
+ _min?: RoleMinAggregateInputType
471
+ _max?: RoleMaxAggregateInputType
472
+ }
473
+
474
+ export type RoleGroupByOutputType = {
475
+ id: string
476
+ no: number
477
+ name: string
478
+ description: string | null
479
+ status: string
480
+ countries: runtime.JsonValue | null
481
+ platforms: runtime.JsonValue | null
482
+ login: boolean
483
+ access_web: boolean
484
+ access_mobile: boolean
485
+ add_users: boolean
486
+ view_users: boolean
487
+ delete_users: boolean
488
+ view_requests: boolean
489
+ manage_requests: boolean
490
+ add_main_projects: boolean
491
+ view_main_projects: boolean
492
+ edit_main_projects: boolean
493
+ delete_main_projects: boolean
494
+ view_settings: boolean
495
+ view_audit: boolean
496
+ full_projects: boolean
497
+ add_projects: boolean
498
+ edit_projects: boolean
499
+ view_projects: boolean
500
+ delete_projects: boolean
501
+ add_sub_projects: boolean
502
+ manage_work_orders: boolean
503
+ full_teams: boolean
504
+ add_team: boolean
505
+ view_team: boolean
506
+ quality: boolean
507
+ dispatch_web_access: boolean
508
+ dispatch_mobile: boolean
509
+ dispatch_add_workorders: boolean
510
+ dispatch_view_workorders: boolean
511
+ dispatch_edit_workorders: boolean
512
+ dispatch_view_schedule: boolean
513
+ dispatch_add_teams: boolean
514
+ dispatch_view_teams: boolean
515
+ dispatch_edit_teams: boolean
516
+ dispatch_delete_teams: boolean
517
+ dispatch_view_projects: boolean
518
+ dispatch_edit_projects: boolean
519
+ dispatch_edit_materials: boolean
520
+ dispatch_view_materials: boolean
521
+ dispatch_add_materials: boolean
522
+ dispatch_delete_materials: boolean
523
+ dispatch_view_reports: boolean
524
+ dispatch_view_kpi: boolean
525
+ integration_web_access: boolean
526
+ integration_mobile: boolean
527
+ createdAt: Date
528
+ updatedAt: Date
529
+ deletedAt: Date | null
530
+ _count: RoleCountAggregateOutputType | null
531
+ _avg: RoleAvgAggregateOutputType | null
532
+ _sum: RoleSumAggregateOutputType | null
533
+ _min: RoleMinAggregateOutputType | null
534
+ _max: RoleMaxAggregateOutputType | null
535
+ }
536
+
537
+ type GetRoleGroupByPayload<T extends RoleGroupByArgs> = Prisma.PrismaPromise<
538
+ Array<
539
+ Prisma.PickEnumerable<RoleGroupByOutputType, T['by']> &
540
+ {
541
+ [P in ((keyof T) & (keyof RoleGroupByOutputType))]: P extends '_count'
542
+ ? T[P] extends boolean
543
+ ? number
544
+ : Prisma.GetScalarType<T[P], RoleGroupByOutputType[P]>
545
+ : Prisma.GetScalarType<T[P], RoleGroupByOutputType[P]>
546
+ }
547
+ >
548
+ >
549
+
550
+
551
+
552
+ export type RoleWhereInput = {
553
+ AND?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[]
554
+ OR?: Prisma.RoleWhereInput[]
555
+ NOT?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[]
556
+ id?: Prisma.StringFilter<"Role"> | string
557
+ no?: Prisma.IntFilter<"Role"> | number
558
+ name?: Prisma.StringFilter<"Role"> | string
559
+ description?: Prisma.StringNullableFilter<"Role"> | string | null
560
+ status?: Prisma.StringFilter<"Role"> | string
561
+ countries?: Prisma.JsonNullableFilter<"Role">
562
+ platforms?: Prisma.JsonNullableFilter<"Role">
563
+ login?: Prisma.BoolFilter<"Role"> | boolean
564
+ access_web?: Prisma.BoolFilter<"Role"> | boolean
565
+ access_mobile?: Prisma.BoolFilter<"Role"> | boolean
566
+ add_users?: Prisma.BoolFilter<"Role"> | boolean
567
+ view_users?: Prisma.BoolFilter<"Role"> | boolean
568
+ delete_users?: Prisma.BoolFilter<"Role"> | boolean
569
+ view_requests?: Prisma.BoolFilter<"Role"> | boolean
570
+ manage_requests?: Prisma.BoolFilter<"Role"> | boolean
571
+ add_main_projects?: Prisma.BoolFilter<"Role"> | boolean
572
+ view_main_projects?: Prisma.BoolFilter<"Role"> | boolean
573
+ edit_main_projects?: Prisma.BoolFilter<"Role"> | boolean
574
+ delete_main_projects?: Prisma.BoolFilter<"Role"> | boolean
575
+ view_settings?: Prisma.BoolFilter<"Role"> | boolean
576
+ view_audit?: Prisma.BoolFilter<"Role"> | boolean
577
+ full_projects?: Prisma.BoolFilter<"Role"> | boolean
578
+ add_projects?: Prisma.BoolFilter<"Role"> | boolean
579
+ edit_projects?: Prisma.BoolFilter<"Role"> | boolean
580
+ view_projects?: Prisma.BoolFilter<"Role"> | boolean
581
+ delete_projects?: Prisma.BoolFilter<"Role"> | boolean
582
+ add_sub_projects?: Prisma.BoolFilter<"Role"> | boolean
583
+ manage_work_orders?: Prisma.BoolFilter<"Role"> | boolean
584
+ full_teams?: Prisma.BoolFilter<"Role"> | boolean
585
+ add_team?: Prisma.BoolFilter<"Role"> | boolean
586
+ view_team?: Prisma.BoolFilter<"Role"> | boolean
587
+ quality?: Prisma.BoolFilter<"Role"> | boolean
588
+ dispatch_web_access?: Prisma.BoolFilter<"Role"> | boolean
589
+ dispatch_mobile?: Prisma.BoolFilter<"Role"> | boolean
590
+ dispatch_add_workorders?: Prisma.BoolFilter<"Role"> | boolean
591
+ dispatch_view_workorders?: Prisma.BoolFilter<"Role"> | boolean
592
+ dispatch_edit_workorders?: Prisma.BoolFilter<"Role"> | boolean
593
+ dispatch_view_schedule?: Prisma.BoolFilter<"Role"> | boolean
594
+ dispatch_add_teams?: Prisma.BoolFilter<"Role"> | boolean
595
+ dispatch_view_teams?: Prisma.BoolFilter<"Role"> | boolean
596
+ dispatch_edit_teams?: Prisma.BoolFilter<"Role"> | boolean
597
+ dispatch_delete_teams?: Prisma.BoolFilter<"Role"> | boolean
598
+ dispatch_view_projects?: Prisma.BoolFilter<"Role"> | boolean
599
+ dispatch_edit_projects?: Prisma.BoolFilter<"Role"> | boolean
600
+ dispatch_edit_materials?: Prisma.BoolFilter<"Role"> | boolean
601
+ dispatch_view_materials?: Prisma.BoolFilter<"Role"> | boolean
602
+ dispatch_add_materials?: Prisma.BoolFilter<"Role"> | boolean
603
+ dispatch_delete_materials?: Prisma.BoolFilter<"Role"> | boolean
604
+ dispatch_view_reports?: Prisma.BoolFilter<"Role"> | boolean
605
+ dispatch_view_kpi?: Prisma.BoolFilter<"Role"> | boolean
606
+ integration_web_access?: Prisma.BoolFilter<"Role"> | boolean
607
+ integration_mobile?: Prisma.BoolFilter<"Role"> | boolean
608
+ createdAt?: Prisma.DateTimeFilter<"Role"> | Date | string
609
+ updatedAt?: Prisma.DateTimeFilter<"Role"> | Date | string
610
+ deletedAt?: Prisma.DateTimeNullableFilter<"Role"> | Date | string | null
611
+ User?: Prisma.UserListRelationFilter
612
+ }
613
+
614
+ export type RoleOrderByWithRelationInput = {
615
+ id?: Prisma.SortOrder
616
+ no?: Prisma.SortOrder
617
+ name?: Prisma.SortOrder
618
+ description?: Prisma.SortOrderInput | Prisma.SortOrder
619
+ status?: Prisma.SortOrder
620
+ countries?: Prisma.SortOrderInput | Prisma.SortOrder
621
+ platforms?: Prisma.SortOrderInput | Prisma.SortOrder
622
+ login?: Prisma.SortOrder
623
+ access_web?: Prisma.SortOrder
624
+ access_mobile?: Prisma.SortOrder
625
+ add_users?: Prisma.SortOrder
626
+ view_users?: Prisma.SortOrder
627
+ delete_users?: Prisma.SortOrder
628
+ view_requests?: Prisma.SortOrder
629
+ manage_requests?: Prisma.SortOrder
630
+ add_main_projects?: Prisma.SortOrder
631
+ view_main_projects?: Prisma.SortOrder
632
+ edit_main_projects?: Prisma.SortOrder
633
+ delete_main_projects?: Prisma.SortOrder
634
+ view_settings?: Prisma.SortOrder
635
+ view_audit?: Prisma.SortOrder
636
+ full_projects?: Prisma.SortOrder
637
+ add_projects?: Prisma.SortOrder
638
+ edit_projects?: Prisma.SortOrder
639
+ view_projects?: Prisma.SortOrder
640
+ delete_projects?: Prisma.SortOrder
641
+ add_sub_projects?: Prisma.SortOrder
642
+ manage_work_orders?: Prisma.SortOrder
643
+ full_teams?: Prisma.SortOrder
644
+ add_team?: Prisma.SortOrder
645
+ view_team?: Prisma.SortOrder
646
+ quality?: Prisma.SortOrder
647
+ dispatch_web_access?: Prisma.SortOrder
648
+ dispatch_mobile?: Prisma.SortOrder
649
+ dispatch_add_workorders?: Prisma.SortOrder
650
+ dispatch_view_workorders?: Prisma.SortOrder
651
+ dispatch_edit_workorders?: Prisma.SortOrder
652
+ dispatch_view_schedule?: Prisma.SortOrder
653
+ dispatch_add_teams?: Prisma.SortOrder
654
+ dispatch_view_teams?: Prisma.SortOrder
655
+ dispatch_edit_teams?: Prisma.SortOrder
656
+ dispatch_delete_teams?: Prisma.SortOrder
657
+ dispatch_view_projects?: Prisma.SortOrder
658
+ dispatch_edit_projects?: Prisma.SortOrder
659
+ dispatch_edit_materials?: Prisma.SortOrder
660
+ dispatch_view_materials?: Prisma.SortOrder
661
+ dispatch_add_materials?: Prisma.SortOrder
662
+ dispatch_delete_materials?: Prisma.SortOrder
663
+ dispatch_view_reports?: Prisma.SortOrder
664
+ dispatch_view_kpi?: Prisma.SortOrder
665
+ integration_web_access?: Prisma.SortOrder
666
+ integration_mobile?: Prisma.SortOrder
667
+ createdAt?: Prisma.SortOrder
668
+ updatedAt?: Prisma.SortOrder
669
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
670
+ User?: Prisma.UserOrderByRelationAggregateInput
671
+ }
672
+
673
+ export type RoleWhereUniqueInput = Prisma.AtLeast<{
674
+ id?: string
675
+ AND?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[]
676
+ OR?: Prisma.RoleWhereInput[]
677
+ NOT?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[]
678
+ no?: Prisma.IntFilter<"Role"> | number
679
+ name?: Prisma.StringFilter<"Role"> | string
680
+ description?: Prisma.StringNullableFilter<"Role"> | string | null
681
+ status?: Prisma.StringFilter<"Role"> | string
682
+ countries?: Prisma.JsonNullableFilter<"Role">
683
+ platforms?: Prisma.JsonNullableFilter<"Role">
684
+ login?: Prisma.BoolFilter<"Role"> | boolean
685
+ access_web?: Prisma.BoolFilter<"Role"> | boolean
686
+ access_mobile?: Prisma.BoolFilter<"Role"> | boolean
687
+ add_users?: Prisma.BoolFilter<"Role"> | boolean
688
+ view_users?: Prisma.BoolFilter<"Role"> | boolean
689
+ delete_users?: Prisma.BoolFilter<"Role"> | boolean
690
+ view_requests?: Prisma.BoolFilter<"Role"> | boolean
691
+ manage_requests?: Prisma.BoolFilter<"Role"> | boolean
692
+ add_main_projects?: Prisma.BoolFilter<"Role"> | boolean
693
+ view_main_projects?: Prisma.BoolFilter<"Role"> | boolean
694
+ edit_main_projects?: Prisma.BoolFilter<"Role"> | boolean
695
+ delete_main_projects?: Prisma.BoolFilter<"Role"> | boolean
696
+ view_settings?: Prisma.BoolFilter<"Role"> | boolean
697
+ view_audit?: Prisma.BoolFilter<"Role"> | boolean
698
+ full_projects?: Prisma.BoolFilter<"Role"> | boolean
699
+ add_projects?: Prisma.BoolFilter<"Role"> | boolean
700
+ edit_projects?: Prisma.BoolFilter<"Role"> | boolean
701
+ view_projects?: Prisma.BoolFilter<"Role"> | boolean
702
+ delete_projects?: Prisma.BoolFilter<"Role"> | boolean
703
+ add_sub_projects?: Prisma.BoolFilter<"Role"> | boolean
704
+ manage_work_orders?: Prisma.BoolFilter<"Role"> | boolean
705
+ full_teams?: Prisma.BoolFilter<"Role"> | boolean
706
+ add_team?: Prisma.BoolFilter<"Role"> | boolean
707
+ view_team?: Prisma.BoolFilter<"Role"> | boolean
708
+ quality?: Prisma.BoolFilter<"Role"> | boolean
709
+ dispatch_web_access?: Prisma.BoolFilter<"Role"> | boolean
710
+ dispatch_mobile?: Prisma.BoolFilter<"Role"> | boolean
711
+ dispatch_add_workorders?: Prisma.BoolFilter<"Role"> | boolean
712
+ dispatch_view_workorders?: Prisma.BoolFilter<"Role"> | boolean
713
+ dispatch_edit_workorders?: Prisma.BoolFilter<"Role"> | boolean
714
+ dispatch_view_schedule?: Prisma.BoolFilter<"Role"> | boolean
715
+ dispatch_add_teams?: Prisma.BoolFilter<"Role"> | boolean
716
+ dispatch_view_teams?: Prisma.BoolFilter<"Role"> | boolean
717
+ dispatch_edit_teams?: Prisma.BoolFilter<"Role"> | boolean
718
+ dispatch_delete_teams?: Prisma.BoolFilter<"Role"> | boolean
719
+ dispatch_view_projects?: Prisma.BoolFilter<"Role"> | boolean
720
+ dispatch_edit_projects?: Prisma.BoolFilter<"Role"> | boolean
721
+ dispatch_edit_materials?: Prisma.BoolFilter<"Role"> | boolean
722
+ dispatch_view_materials?: Prisma.BoolFilter<"Role"> | boolean
723
+ dispatch_add_materials?: Prisma.BoolFilter<"Role"> | boolean
724
+ dispatch_delete_materials?: Prisma.BoolFilter<"Role"> | boolean
725
+ dispatch_view_reports?: Prisma.BoolFilter<"Role"> | boolean
726
+ dispatch_view_kpi?: Prisma.BoolFilter<"Role"> | boolean
727
+ integration_web_access?: Prisma.BoolFilter<"Role"> | boolean
728
+ integration_mobile?: Prisma.BoolFilter<"Role"> | boolean
729
+ createdAt?: Prisma.DateTimeFilter<"Role"> | Date | string
730
+ updatedAt?: Prisma.DateTimeFilter<"Role"> | Date | string
731
+ deletedAt?: Prisma.DateTimeNullableFilter<"Role"> | Date | string | null
732
+ User?: Prisma.UserListRelationFilter
733
+ }, "id" | "id">
734
+
735
+ export type RoleOrderByWithAggregationInput = {
736
+ id?: Prisma.SortOrder
737
+ no?: Prisma.SortOrder
738
+ name?: Prisma.SortOrder
739
+ description?: Prisma.SortOrderInput | Prisma.SortOrder
740
+ status?: Prisma.SortOrder
741
+ countries?: Prisma.SortOrderInput | Prisma.SortOrder
742
+ platforms?: Prisma.SortOrderInput | Prisma.SortOrder
743
+ login?: Prisma.SortOrder
744
+ access_web?: Prisma.SortOrder
745
+ access_mobile?: Prisma.SortOrder
746
+ add_users?: Prisma.SortOrder
747
+ view_users?: Prisma.SortOrder
748
+ delete_users?: Prisma.SortOrder
749
+ view_requests?: Prisma.SortOrder
750
+ manage_requests?: Prisma.SortOrder
751
+ add_main_projects?: Prisma.SortOrder
752
+ view_main_projects?: Prisma.SortOrder
753
+ edit_main_projects?: Prisma.SortOrder
754
+ delete_main_projects?: Prisma.SortOrder
755
+ view_settings?: Prisma.SortOrder
756
+ view_audit?: Prisma.SortOrder
757
+ full_projects?: Prisma.SortOrder
758
+ add_projects?: Prisma.SortOrder
759
+ edit_projects?: Prisma.SortOrder
760
+ view_projects?: Prisma.SortOrder
761
+ delete_projects?: Prisma.SortOrder
762
+ add_sub_projects?: Prisma.SortOrder
763
+ manage_work_orders?: Prisma.SortOrder
764
+ full_teams?: Prisma.SortOrder
765
+ add_team?: Prisma.SortOrder
766
+ view_team?: Prisma.SortOrder
767
+ quality?: Prisma.SortOrder
768
+ dispatch_web_access?: Prisma.SortOrder
769
+ dispatch_mobile?: Prisma.SortOrder
770
+ dispatch_add_workorders?: Prisma.SortOrder
771
+ dispatch_view_workorders?: Prisma.SortOrder
772
+ dispatch_edit_workorders?: Prisma.SortOrder
773
+ dispatch_view_schedule?: Prisma.SortOrder
774
+ dispatch_add_teams?: Prisma.SortOrder
775
+ dispatch_view_teams?: Prisma.SortOrder
776
+ dispatch_edit_teams?: Prisma.SortOrder
777
+ dispatch_delete_teams?: Prisma.SortOrder
778
+ dispatch_view_projects?: Prisma.SortOrder
779
+ dispatch_edit_projects?: Prisma.SortOrder
780
+ dispatch_edit_materials?: Prisma.SortOrder
781
+ dispatch_view_materials?: Prisma.SortOrder
782
+ dispatch_add_materials?: Prisma.SortOrder
783
+ dispatch_delete_materials?: Prisma.SortOrder
784
+ dispatch_view_reports?: Prisma.SortOrder
785
+ dispatch_view_kpi?: Prisma.SortOrder
786
+ integration_web_access?: Prisma.SortOrder
787
+ integration_mobile?: Prisma.SortOrder
788
+ createdAt?: Prisma.SortOrder
789
+ updatedAt?: Prisma.SortOrder
790
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
791
+ _count?: Prisma.RoleCountOrderByAggregateInput
792
+ _avg?: Prisma.RoleAvgOrderByAggregateInput
793
+ _max?: Prisma.RoleMaxOrderByAggregateInput
794
+ _min?: Prisma.RoleMinOrderByAggregateInput
795
+ _sum?: Prisma.RoleSumOrderByAggregateInput
796
+ }
797
+
798
+ export type RoleScalarWhereWithAggregatesInput = {
799
+ AND?: Prisma.RoleScalarWhereWithAggregatesInput | Prisma.RoleScalarWhereWithAggregatesInput[]
800
+ OR?: Prisma.RoleScalarWhereWithAggregatesInput[]
801
+ NOT?: Prisma.RoleScalarWhereWithAggregatesInput | Prisma.RoleScalarWhereWithAggregatesInput[]
802
+ id?: Prisma.StringWithAggregatesFilter<"Role"> | string
803
+ no?: Prisma.IntWithAggregatesFilter<"Role"> | number
804
+ name?: Prisma.StringWithAggregatesFilter<"Role"> | string
805
+ description?: Prisma.StringNullableWithAggregatesFilter<"Role"> | string | null
806
+ status?: Prisma.StringWithAggregatesFilter<"Role"> | string
807
+ countries?: Prisma.JsonNullableWithAggregatesFilter<"Role">
808
+ platforms?: Prisma.JsonNullableWithAggregatesFilter<"Role">
809
+ login?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
810
+ access_web?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
811
+ access_mobile?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
812
+ add_users?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
813
+ view_users?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
814
+ delete_users?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
815
+ view_requests?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
816
+ manage_requests?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
817
+ add_main_projects?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
818
+ view_main_projects?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
819
+ edit_main_projects?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
820
+ delete_main_projects?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
821
+ view_settings?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
822
+ view_audit?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
823
+ full_projects?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
824
+ add_projects?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
825
+ edit_projects?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
826
+ view_projects?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
827
+ delete_projects?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
828
+ add_sub_projects?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
829
+ manage_work_orders?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
830
+ full_teams?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
831
+ add_team?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
832
+ view_team?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
833
+ quality?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
834
+ dispatch_web_access?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
835
+ dispatch_mobile?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
836
+ dispatch_add_workorders?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
837
+ dispatch_view_workorders?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
838
+ dispatch_edit_workorders?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
839
+ dispatch_view_schedule?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
840
+ dispatch_add_teams?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
841
+ dispatch_view_teams?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
842
+ dispatch_edit_teams?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
843
+ dispatch_delete_teams?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
844
+ dispatch_view_projects?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
845
+ dispatch_edit_projects?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
846
+ dispatch_edit_materials?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
847
+ dispatch_view_materials?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
848
+ dispatch_add_materials?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
849
+ dispatch_delete_materials?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
850
+ dispatch_view_reports?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
851
+ dispatch_view_kpi?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
852
+ integration_web_access?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
853
+ integration_mobile?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean
854
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Role"> | Date | string
855
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Role"> | Date | string
856
+ deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Role"> | Date | string | null
857
+ }
858
+
859
+ export type RoleCreateInput = {
860
+ id?: string
861
+ no?: number
862
+ name: string
863
+ description?: string | null
864
+ status?: string
865
+ countries?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
866
+ platforms?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
867
+ login?: boolean
868
+ access_web?: boolean
869
+ access_mobile?: boolean
870
+ add_users?: boolean
871
+ view_users?: boolean
872
+ delete_users?: boolean
873
+ view_requests?: boolean
874
+ manage_requests?: boolean
875
+ add_main_projects?: boolean
876
+ view_main_projects?: boolean
877
+ edit_main_projects?: boolean
878
+ delete_main_projects?: boolean
879
+ view_settings?: boolean
880
+ view_audit?: boolean
881
+ full_projects?: boolean
882
+ add_projects?: boolean
883
+ edit_projects?: boolean
884
+ view_projects?: boolean
885
+ delete_projects?: boolean
886
+ add_sub_projects?: boolean
887
+ manage_work_orders?: boolean
888
+ full_teams?: boolean
889
+ add_team?: boolean
890
+ view_team?: boolean
891
+ quality?: boolean
892
+ dispatch_web_access?: boolean
893
+ dispatch_mobile?: boolean
894
+ dispatch_add_workorders?: boolean
895
+ dispatch_view_workorders?: boolean
896
+ dispatch_edit_workorders?: boolean
897
+ dispatch_view_schedule?: boolean
898
+ dispatch_add_teams?: boolean
899
+ dispatch_view_teams?: boolean
900
+ dispatch_edit_teams?: boolean
901
+ dispatch_delete_teams?: boolean
902
+ dispatch_view_projects?: boolean
903
+ dispatch_edit_projects?: boolean
904
+ dispatch_edit_materials?: boolean
905
+ dispatch_view_materials?: boolean
906
+ dispatch_add_materials?: boolean
907
+ dispatch_delete_materials?: boolean
908
+ dispatch_view_reports?: boolean
909
+ dispatch_view_kpi?: boolean
910
+ integration_web_access?: boolean
911
+ integration_mobile?: boolean
912
+ createdAt?: Date | string
913
+ updatedAt?: Date | string
914
+ deletedAt?: Date | string | null
915
+ User?: Prisma.UserCreateNestedManyWithoutRoleInput
916
+ }
917
+
918
+ export type RoleUncheckedCreateInput = {
919
+ id?: string
920
+ no?: number
921
+ name: string
922
+ description?: string | null
923
+ status?: string
924
+ countries?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
925
+ platforms?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
926
+ login?: boolean
927
+ access_web?: boolean
928
+ access_mobile?: boolean
929
+ add_users?: boolean
930
+ view_users?: boolean
931
+ delete_users?: boolean
932
+ view_requests?: boolean
933
+ manage_requests?: boolean
934
+ add_main_projects?: boolean
935
+ view_main_projects?: boolean
936
+ edit_main_projects?: boolean
937
+ delete_main_projects?: boolean
938
+ view_settings?: boolean
939
+ view_audit?: boolean
940
+ full_projects?: boolean
941
+ add_projects?: boolean
942
+ edit_projects?: boolean
943
+ view_projects?: boolean
944
+ delete_projects?: boolean
945
+ add_sub_projects?: boolean
946
+ manage_work_orders?: boolean
947
+ full_teams?: boolean
948
+ add_team?: boolean
949
+ view_team?: boolean
950
+ quality?: boolean
951
+ dispatch_web_access?: boolean
952
+ dispatch_mobile?: boolean
953
+ dispatch_add_workorders?: boolean
954
+ dispatch_view_workorders?: boolean
955
+ dispatch_edit_workorders?: boolean
956
+ dispatch_view_schedule?: boolean
957
+ dispatch_add_teams?: boolean
958
+ dispatch_view_teams?: boolean
959
+ dispatch_edit_teams?: boolean
960
+ dispatch_delete_teams?: boolean
961
+ dispatch_view_projects?: boolean
962
+ dispatch_edit_projects?: boolean
963
+ dispatch_edit_materials?: boolean
964
+ dispatch_view_materials?: boolean
965
+ dispatch_add_materials?: boolean
966
+ dispatch_delete_materials?: boolean
967
+ dispatch_view_reports?: boolean
968
+ dispatch_view_kpi?: boolean
969
+ integration_web_access?: boolean
970
+ integration_mobile?: boolean
971
+ createdAt?: Date | string
972
+ updatedAt?: Date | string
973
+ deletedAt?: Date | string | null
974
+ User?: Prisma.UserUncheckedCreateNestedManyWithoutRoleInput
975
+ }
976
+
977
+ export type RoleUpdateInput = {
978
+ id?: Prisma.StringFieldUpdateOperationsInput | string
979
+ no?: Prisma.IntFieldUpdateOperationsInput | number
980
+ name?: Prisma.StringFieldUpdateOperationsInput | string
981
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
982
+ status?: Prisma.StringFieldUpdateOperationsInput | string
983
+ countries?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
984
+ platforms?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
985
+ login?: Prisma.BoolFieldUpdateOperationsInput | boolean
986
+ access_web?: Prisma.BoolFieldUpdateOperationsInput | boolean
987
+ access_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
988
+ add_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
989
+ view_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
990
+ delete_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
991
+ view_requests?: Prisma.BoolFieldUpdateOperationsInput | boolean
992
+ manage_requests?: Prisma.BoolFieldUpdateOperationsInput | boolean
993
+ add_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
994
+ view_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
995
+ edit_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
996
+ delete_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
997
+ view_settings?: Prisma.BoolFieldUpdateOperationsInput | boolean
998
+ view_audit?: Prisma.BoolFieldUpdateOperationsInput | boolean
999
+ full_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1000
+ add_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1001
+ edit_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1002
+ view_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1003
+ delete_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1004
+ add_sub_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1005
+ manage_work_orders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1006
+ full_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1007
+ add_team?: Prisma.BoolFieldUpdateOperationsInput | boolean
1008
+ view_team?: Prisma.BoolFieldUpdateOperationsInput | boolean
1009
+ quality?: Prisma.BoolFieldUpdateOperationsInput | boolean
1010
+ dispatch_web_access?: Prisma.BoolFieldUpdateOperationsInput | boolean
1011
+ dispatch_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1012
+ dispatch_add_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1013
+ dispatch_view_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1014
+ dispatch_edit_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1015
+ dispatch_view_schedule?: Prisma.BoolFieldUpdateOperationsInput | boolean
1016
+ dispatch_add_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1017
+ dispatch_view_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1018
+ dispatch_edit_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1019
+ dispatch_delete_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1020
+ dispatch_view_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1021
+ dispatch_edit_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1022
+ dispatch_edit_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1023
+ dispatch_view_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1024
+ dispatch_add_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1025
+ dispatch_delete_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1026
+ dispatch_view_reports?: Prisma.BoolFieldUpdateOperationsInput | boolean
1027
+ dispatch_view_kpi?: Prisma.BoolFieldUpdateOperationsInput | boolean
1028
+ integration_web_access?: Prisma.BoolFieldUpdateOperationsInput | boolean
1029
+ integration_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1030
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1031
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1032
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1033
+ User?: Prisma.UserUpdateManyWithoutRoleNestedInput
1034
+ }
1035
+
1036
+ export type RoleUncheckedUpdateInput = {
1037
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1038
+ no?: Prisma.IntFieldUpdateOperationsInput | number
1039
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1040
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1041
+ status?: Prisma.StringFieldUpdateOperationsInput | string
1042
+ countries?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1043
+ platforms?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1044
+ login?: Prisma.BoolFieldUpdateOperationsInput | boolean
1045
+ access_web?: Prisma.BoolFieldUpdateOperationsInput | boolean
1046
+ access_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1047
+ add_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
1048
+ view_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
1049
+ delete_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
1050
+ view_requests?: Prisma.BoolFieldUpdateOperationsInput | boolean
1051
+ manage_requests?: Prisma.BoolFieldUpdateOperationsInput | boolean
1052
+ add_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1053
+ view_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1054
+ edit_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1055
+ delete_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1056
+ view_settings?: Prisma.BoolFieldUpdateOperationsInput | boolean
1057
+ view_audit?: Prisma.BoolFieldUpdateOperationsInput | boolean
1058
+ full_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1059
+ add_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1060
+ edit_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1061
+ view_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1062
+ delete_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1063
+ add_sub_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1064
+ manage_work_orders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1065
+ full_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1066
+ add_team?: Prisma.BoolFieldUpdateOperationsInput | boolean
1067
+ view_team?: Prisma.BoolFieldUpdateOperationsInput | boolean
1068
+ quality?: Prisma.BoolFieldUpdateOperationsInput | boolean
1069
+ dispatch_web_access?: Prisma.BoolFieldUpdateOperationsInput | boolean
1070
+ dispatch_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1071
+ dispatch_add_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1072
+ dispatch_view_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1073
+ dispatch_edit_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1074
+ dispatch_view_schedule?: Prisma.BoolFieldUpdateOperationsInput | boolean
1075
+ dispatch_add_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1076
+ dispatch_view_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1077
+ dispatch_edit_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1078
+ dispatch_delete_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1079
+ dispatch_view_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1080
+ dispatch_edit_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1081
+ dispatch_edit_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1082
+ dispatch_view_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1083
+ dispatch_add_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1084
+ dispatch_delete_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1085
+ dispatch_view_reports?: Prisma.BoolFieldUpdateOperationsInput | boolean
1086
+ dispatch_view_kpi?: Prisma.BoolFieldUpdateOperationsInput | boolean
1087
+ integration_web_access?: Prisma.BoolFieldUpdateOperationsInput | boolean
1088
+ integration_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1089
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1090
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1091
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1092
+ User?: Prisma.UserUncheckedUpdateManyWithoutRoleNestedInput
1093
+ }
1094
+
1095
+ export type RoleCreateManyInput = {
1096
+ id?: string
1097
+ no?: number
1098
+ name: string
1099
+ description?: string | null
1100
+ status?: string
1101
+ countries?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1102
+ platforms?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1103
+ login?: boolean
1104
+ access_web?: boolean
1105
+ access_mobile?: boolean
1106
+ add_users?: boolean
1107
+ view_users?: boolean
1108
+ delete_users?: boolean
1109
+ view_requests?: boolean
1110
+ manage_requests?: boolean
1111
+ add_main_projects?: boolean
1112
+ view_main_projects?: boolean
1113
+ edit_main_projects?: boolean
1114
+ delete_main_projects?: boolean
1115
+ view_settings?: boolean
1116
+ view_audit?: boolean
1117
+ full_projects?: boolean
1118
+ add_projects?: boolean
1119
+ edit_projects?: boolean
1120
+ view_projects?: boolean
1121
+ delete_projects?: boolean
1122
+ add_sub_projects?: boolean
1123
+ manage_work_orders?: boolean
1124
+ full_teams?: boolean
1125
+ add_team?: boolean
1126
+ view_team?: boolean
1127
+ quality?: boolean
1128
+ dispatch_web_access?: boolean
1129
+ dispatch_mobile?: boolean
1130
+ dispatch_add_workorders?: boolean
1131
+ dispatch_view_workorders?: boolean
1132
+ dispatch_edit_workorders?: boolean
1133
+ dispatch_view_schedule?: boolean
1134
+ dispatch_add_teams?: boolean
1135
+ dispatch_view_teams?: boolean
1136
+ dispatch_edit_teams?: boolean
1137
+ dispatch_delete_teams?: boolean
1138
+ dispatch_view_projects?: boolean
1139
+ dispatch_edit_projects?: boolean
1140
+ dispatch_edit_materials?: boolean
1141
+ dispatch_view_materials?: boolean
1142
+ dispatch_add_materials?: boolean
1143
+ dispatch_delete_materials?: boolean
1144
+ dispatch_view_reports?: boolean
1145
+ dispatch_view_kpi?: boolean
1146
+ integration_web_access?: boolean
1147
+ integration_mobile?: boolean
1148
+ createdAt?: Date | string
1149
+ updatedAt?: Date | string
1150
+ deletedAt?: Date | string | null
1151
+ }
1152
+
1153
+ export type RoleUpdateManyMutationInput = {
1154
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1155
+ no?: Prisma.IntFieldUpdateOperationsInput | number
1156
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1157
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1158
+ status?: Prisma.StringFieldUpdateOperationsInput | string
1159
+ countries?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1160
+ platforms?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1161
+ login?: Prisma.BoolFieldUpdateOperationsInput | boolean
1162
+ access_web?: Prisma.BoolFieldUpdateOperationsInput | boolean
1163
+ access_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1164
+ add_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
1165
+ view_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
1166
+ delete_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
1167
+ view_requests?: Prisma.BoolFieldUpdateOperationsInput | boolean
1168
+ manage_requests?: Prisma.BoolFieldUpdateOperationsInput | boolean
1169
+ add_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1170
+ view_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1171
+ edit_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1172
+ delete_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1173
+ view_settings?: Prisma.BoolFieldUpdateOperationsInput | boolean
1174
+ view_audit?: Prisma.BoolFieldUpdateOperationsInput | boolean
1175
+ full_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1176
+ add_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1177
+ edit_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1178
+ view_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1179
+ delete_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1180
+ add_sub_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1181
+ manage_work_orders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1182
+ full_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1183
+ add_team?: Prisma.BoolFieldUpdateOperationsInput | boolean
1184
+ view_team?: Prisma.BoolFieldUpdateOperationsInput | boolean
1185
+ quality?: Prisma.BoolFieldUpdateOperationsInput | boolean
1186
+ dispatch_web_access?: Prisma.BoolFieldUpdateOperationsInput | boolean
1187
+ dispatch_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1188
+ dispatch_add_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1189
+ dispatch_view_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1190
+ dispatch_edit_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1191
+ dispatch_view_schedule?: Prisma.BoolFieldUpdateOperationsInput | boolean
1192
+ dispatch_add_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1193
+ dispatch_view_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1194
+ dispatch_edit_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1195
+ dispatch_delete_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1196
+ dispatch_view_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1197
+ dispatch_edit_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1198
+ dispatch_edit_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1199
+ dispatch_view_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1200
+ dispatch_add_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1201
+ dispatch_delete_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1202
+ dispatch_view_reports?: Prisma.BoolFieldUpdateOperationsInput | boolean
1203
+ dispatch_view_kpi?: Prisma.BoolFieldUpdateOperationsInput | boolean
1204
+ integration_web_access?: Prisma.BoolFieldUpdateOperationsInput | boolean
1205
+ integration_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1206
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1207
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1208
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1209
+ }
1210
+
1211
+ export type RoleUncheckedUpdateManyInput = {
1212
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1213
+ no?: Prisma.IntFieldUpdateOperationsInput | number
1214
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1215
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1216
+ status?: Prisma.StringFieldUpdateOperationsInput | string
1217
+ countries?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1218
+ platforms?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1219
+ login?: Prisma.BoolFieldUpdateOperationsInput | boolean
1220
+ access_web?: Prisma.BoolFieldUpdateOperationsInput | boolean
1221
+ access_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1222
+ add_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
1223
+ view_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
1224
+ delete_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
1225
+ view_requests?: Prisma.BoolFieldUpdateOperationsInput | boolean
1226
+ manage_requests?: Prisma.BoolFieldUpdateOperationsInput | boolean
1227
+ add_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1228
+ view_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1229
+ edit_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1230
+ delete_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1231
+ view_settings?: Prisma.BoolFieldUpdateOperationsInput | boolean
1232
+ view_audit?: Prisma.BoolFieldUpdateOperationsInput | boolean
1233
+ full_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1234
+ add_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1235
+ edit_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1236
+ view_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1237
+ delete_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1238
+ add_sub_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1239
+ manage_work_orders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1240
+ full_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1241
+ add_team?: Prisma.BoolFieldUpdateOperationsInput | boolean
1242
+ view_team?: Prisma.BoolFieldUpdateOperationsInput | boolean
1243
+ quality?: Prisma.BoolFieldUpdateOperationsInput | boolean
1244
+ dispatch_web_access?: Prisma.BoolFieldUpdateOperationsInput | boolean
1245
+ dispatch_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1246
+ dispatch_add_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1247
+ dispatch_view_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1248
+ dispatch_edit_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1249
+ dispatch_view_schedule?: Prisma.BoolFieldUpdateOperationsInput | boolean
1250
+ dispatch_add_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1251
+ dispatch_view_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1252
+ dispatch_edit_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1253
+ dispatch_delete_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1254
+ dispatch_view_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1255
+ dispatch_edit_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1256
+ dispatch_edit_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1257
+ dispatch_view_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1258
+ dispatch_add_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1259
+ dispatch_delete_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1260
+ dispatch_view_reports?: Prisma.BoolFieldUpdateOperationsInput | boolean
1261
+ dispatch_view_kpi?: Prisma.BoolFieldUpdateOperationsInput | boolean
1262
+ integration_web_access?: Prisma.BoolFieldUpdateOperationsInput | boolean
1263
+ integration_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1264
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1265
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1266
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1267
+ }
1268
+
1269
+ export type RoleCountOrderByAggregateInput = {
1270
+ id?: Prisma.SortOrder
1271
+ no?: Prisma.SortOrder
1272
+ name?: Prisma.SortOrder
1273
+ description?: Prisma.SortOrder
1274
+ status?: Prisma.SortOrder
1275
+ countries?: Prisma.SortOrder
1276
+ platforms?: Prisma.SortOrder
1277
+ login?: Prisma.SortOrder
1278
+ access_web?: Prisma.SortOrder
1279
+ access_mobile?: Prisma.SortOrder
1280
+ add_users?: Prisma.SortOrder
1281
+ view_users?: Prisma.SortOrder
1282
+ delete_users?: Prisma.SortOrder
1283
+ view_requests?: Prisma.SortOrder
1284
+ manage_requests?: Prisma.SortOrder
1285
+ add_main_projects?: Prisma.SortOrder
1286
+ view_main_projects?: Prisma.SortOrder
1287
+ edit_main_projects?: Prisma.SortOrder
1288
+ delete_main_projects?: Prisma.SortOrder
1289
+ view_settings?: Prisma.SortOrder
1290
+ view_audit?: Prisma.SortOrder
1291
+ full_projects?: Prisma.SortOrder
1292
+ add_projects?: Prisma.SortOrder
1293
+ edit_projects?: Prisma.SortOrder
1294
+ view_projects?: Prisma.SortOrder
1295
+ delete_projects?: Prisma.SortOrder
1296
+ add_sub_projects?: Prisma.SortOrder
1297
+ manage_work_orders?: Prisma.SortOrder
1298
+ full_teams?: Prisma.SortOrder
1299
+ add_team?: Prisma.SortOrder
1300
+ view_team?: Prisma.SortOrder
1301
+ quality?: Prisma.SortOrder
1302
+ dispatch_web_access?: Prisma.SortOrder
1303
+ dispatch_mobile?: Prisma.SortOrder
1304
+ dispatch_add_workorders?: Prisma.SortOrder
1305
+ dispatch_view_workorders?: Prisma.SortOrder
1306
+ dispatch_edit_workorders?: Prisma.SortOrder
1307
+ dispatch_view_schedule?: Prisma.SortOrder
1308
+ dispatch_add_teams?: Prisma.SortOrder
1309
+ dispatch_view_teams?: Prisma.SortOrder
1310
+ dispatch_edit_teams?: Prisma.SortOrder
1311
+ dispatch_delete_teams?: Prisma.SortOrder
1312
+ dispatch_view_projects?: Prisma.SortOrder
1313
+ dispatch_edit_projects?: Prisma.SortOrder
1314
+ dispatch_edit_materials?: Prisma.SortOrder
1315
+ dispatch_view_materials?: Prisma.SortOrder
1316
+ dispatch_add_materials?: Prisma.SortOrder
1317
+ dispatch_delete_materials?: Prisma.SortOrder
1318
+ dispatch_view_reports?: Prisma.SortOrder
1319
+ dispatch_view_kpi?: Prisma.SortOrder
1320
+ integration_web_access?: Prisma.SortOrder
1321
+ integration_mobile?: Prisma.SortOrder
1322
+ createdAt?: Prisma.SortOrder
1323
+ updatedAt?: Prisma.SortOrder
1324
+ deletedAt?: Prisma.SortOrder
1325
+ }
1326
+
1327
+ export type RoleAvgOrderByAggregateInput = {
1328
+ no?: Prisma.SortOrder
1329
+ }
1330
+
1331
+ export type RoleMaxOrderByAggregateInput = {
1332
+ id?: Prisma.SortOrder
1333
+ no?: Prisma.SortOrder
1334
+ name?: Prisma.SortOrder
1335
+ description?: Prisma.SortOrder
1336
+ status?: Prisma.SortOrder
1337
+ login?: Prisma.SortOrder
1338
+ access_web?: Prisma.SortOrder
1339
+ access_mobile?: Prisma.SortOrder
1340
+ add_users?: Prisma.SortOrder
1341
+ view_users?: Prisma.SortOrder
1342
+ delete_users?: Prisma.SortOrder
1343
+ view_requests?: Prisma.SortOrder
1344
+ manage_requests?: Prisma.SortOrder
1345
+ add_main_projects?: Prisma.SortOrder
1346
+ view_main_projects?: Prisma.SortOrder
1347
+ edit_main_projects?: Prisma.SortOrder
1348
+ delete_main_projects?: Prisma.SortOrder
1349
+ view_settings?: Prisma.SortOrder
1350
+ view_audit?: Prisma.SortOrder
1351
+ full_projects?: Prisma.SortOrder
1352
+ add_projects?: Prisma.SortOrder
1353
+ edit_projects?: Prisma.SortOrder
1354
+ view_projects?: Prisma.SortOrder
1355
+ delete_projects?: Prisma.SortOrder
1356
+ add_sub_projects?: Prisma.SortOrder
1357
+ manage_work_orders?: Prisma.SortOrder
1358
+ full_teams?: Prisma.SortOrder
1359
+ add_team?: Prisma.SortOrder
1360
+ view_team?: Prisma.SortOrder
1361
+ quality?: Prisma.SortOrder
1362
+ dispatch_web_access?: Prisma.SortOrder
1363
+ dispatch_mobile?: Prisma.SortOrder
1364
+ dispatch_add_workorders?: Prisma.SortOrder
1365
+ dispatch_view_workorders?: Prisma.SortOrder
1366
+ dispatch_edit_workorders?: Prisma.SortOrder
1367
+ dispatch_view_schedule?: Prisma.SortOrder
1368
+ dispatch_add_teams?: Prisma.SortOrder
1369
+ dispatch_view_teams?: Prisma.SortOrder
1370
+ dispatch_edit_teams?: Prisma.SortOrder
1371
+ dispatch_delete_teams?: Prisma.SortOrder
1372
+ dispatch_view_projects?: Prisma.SortOrder
1373
+ dispatch_edit_projects?: Prisma.SortOrder
1374
+ dispatch_edit_materials?: Prisma.SortOrder
1375
+ dispatch_view_materials?: Prisma.SortOrder
1376
+ dispatch_add_materials?: Prisma.SortOrder
1377
+ dispatch_delete_materials?: Prisma.SortOrder
1378
+ dispatch_view_reports?: Prisma.SortOrder
1379
+ dispatch_view_kpi?: Prisma.SortOrder
1380
+ integration_web_access?: Prisma.SortOrder
1381
+ integration_mobile?: Prisma.SortOrder
1382
+ createdAt?: Prisma.SortOrder
1383
+ updatedAt?: Prisma.SortOrder
1384
+ deletedAt?: Prisma.SortOrder
1385
+ }
1386
+
1387
+ export type RoleMinOrderByAggregateInput = {
1388
+ id?: Prisma.SortOrder
1389
+ no?: Prisma.SortOrder
1390
+ name?: Prisma.SortOrder
1391
+ description?: Prisma.SortOrder
1392
+ status?: Prisma.SortOrder
1393
+ login?: Prisma.SortOrder
1394
+ access_web?: Prisma.SortOrder
1395
+ access_mobile?: Prisma.SortOrder
1396
+ add_users?: Prisma.SortOrder
1397
+ view_users?: Prisma.SortOrder
1398
+ delete_users?: Prisma.SortOrder
1399
+ view_requests?: Prisma.SortOrder
1400
+ manage_requests?: Prisma.SortOrder
1401
+ add_main_projects?: Prisma.SortOrder
1402
+ view_main_projects?: Prisma.SortOrder
1403
+ edit_main_projects?: Prisma.SortOrder
1404
+ delete_main_projects?: Prisma.SortOrder
1405
+ view_settings?: Prisma.SortOrder
1406
+ view_audit?: Prisma.SortOrder
1407
+ full_projects?: Prisma.SortOrder
1408
+ add_projects?: Prisma.SortOrder
1409
+ edit_projects?: Prisma.SortOrder
1410
+ view_projects?: Prisma.SortOrder
1411
+ delete_projects?: Prisma.SortOrder
1412
+ add_sub_projects?: Prisma.SortOrder
1413
+ manage_work_orders?: Prisma.SortOrder
1414
+ full_teams?: Prisma.SortOrder
1415
+ add_team?: Prisma.SortOrder
1416
+ view_team?: Prisma.SortOrder
1417
+ quality?: Prisma.SortOrder
1418
+ dispatch_web_access?: Prisma.SortOrder
1419
+ dispatch_mobile?: Prisma.SortOrder
1420
+ dispatch_add_workorders?: Prisma.SortOrder
1421
+ dispatch_view_workorders?: Prisma.SortOrder
1422
+ dispatch_edit_workorders?: Prisma.SortOrder
1423
+ dispatch_view_schedule?: Prisma.SortOrder
1424
+ dispatch_add_teams?: Prisma.SortOrder
1425
+ dispatch_view_teams?: Prisma.SortOrder
1426
+ dispatch_edit_teams?: Prisma.SortOrder
1427
+ dispatch_delete_teams?: Prisma.SortOrder
1428
+ dispatch_view_projects?: Prisma.SortOrder
1429
+ dispatch_edit_projects?: Prisma.SortOrder
1430
+ dispatch_edit_materials?: Prisma.SortOrder
1431
+ dispatch_view_materials?: Prisma.SortOrder
1432
+ dispatch_add_materials?: Prisma.SortOrder
1433
+ dispatch_delete_materials?: Prisma.SortOrder
1434
+ dispatch_view_reports?: Prisma.SortOrder
1435
+ dispatch_view_kpi?: Prisma.SortOrder
1436
+ integration_web_access?: Prisma.SortOrder
1437
+ integration_mobile?: Prisma.SortOrder
1438
+ createdAt?: Prisma.SortOrder
1439
+ updatedAt?: Prisma.SortOrder
1440
+ deletedAt?: Prisma.SortOrder
1441
+ }
1442
+
1443
+ export type RoleSumOrderByAggregateInput = {
1444
+ no?: Prisma.SortOrder
1445
+ }
1446
+
1447
+ export type RoleNullableScalarRelationFilter = {
1448
+ is?: Prisma.RoleWhereInput | null
1449
+ isNot?: Prisma.RoleWhereInput | null
1450
+ }
1451
+
1452
+ export type BoolFieldUpdateOperationsInput = {
1453
+ set?: boolean
1454
+ }
1455
+
1456
+ export type RoleCreateNestedOneWithoutUserInput = {
1457
+ create?: Prisma.XOR<Prisma.RoleCreateWithoutUserInput, Prisma.RoleUncheckedCreateWithoutUserInput>
1458
+ connectOrCreate?: Prisma.RoleCreateOrConnectWithoutUserInput
1459
+ connect?: Prisma.RoleWhereUniqueInput
1460
+ }
1461
+
1462
+ export type RoleUpdateOneWithoutUserNestedInput = {
1463
+ create?: Prisma.XOR<Prisma.RoleCreateWithoutUserInput, Prisma.RoleUncheckedCreateWithoutUserInput>
1464
+ connectOrCreate?: Prisma.RoleCreateOrConnectWithoutUserInput
1465
+ upsert?: Prisma.RoleUpsertWithoutUserInput
1466
+ disconnect?: Prisma.RoleWhereInput | boolean
1467
+ delete?: Prisma.RoleWhereInput | boolean
1468
+ connect?: Prisma.RoleWhereUniqueInput
1469
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RoleUpdateToOneWithWhereWithoutUserInput, Prisma.RoleUpdateWithoutUserInput>, Prisma.RoleUncheckedUpdateWithoutUserInput>
1470
+ }
1471
+
1472
+ export type RoleCreateWithoutUserInput = {
1473
+ id?: string
1474
+ no?: number
1475
+ name: string
1476
+ description?: string | null
1477
+ status?: string
1478
+ countries?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1479
+ platforms?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1480
+ login?: boolean
1481
+ access_web?: boolean
1482
+ access_mobile?: boolean
1483
+ add_users?: boolean
1484
+ view_users?: boolean
1485
+ delete_users?: boolean
1486
+ view_requests?: boolean
1487
+ manage_requests?: boolean
1488
+ add_main_projects?: boolean
1489
+ view_main_projects?: boolean
1490
+ edit_main_projects?: boolean
1491
+ delete_main_projects?: boolean
1492
+ view_settings?: boolean
1493
+ view_audit?: boolean
1494
+ full_projects?: boolean
1495
+ add_projects?: boolean
1496
+ edit_projects?: boolean
1497
+ view_projects?: boolean
1498
+ delete_projects?: boolean
1499
+ add_sub_projects?: boolean
1500
+ manage_work_orders?: boolean
1501
+ full_teams?: boolean
1502
+ add_team?: boolean
1503
+ view_team?: boolean
1504
+ quality?: boolean
1505
+ dispatch_web_access?: boolean
1506
+ dispatch_mobile?: boolean
1507
+ dispatch_add_workorders?: boolean
1508
+ dispatch_view_workorders?: boolean
1509
+ dispatch_edit_workorders?: boolean
1510
+ dispatch_view_schedule?: boolean
1511
+ dispatch_add_teams?: boolean
1512
+ dispatch_view_teams?: boolean
1513
+ dispatch_edit_teams?: boolean
1514
+ dispatch_delete_teams?: boolean
1515
+ dispatch_view_projects?: boolean
1516
+ dispatch_edit_projects?: boolean
1517
+ dispatch_edit_materials?: boolean
1518
+ dispatch_view_materials?: boolean
1519
+ dispatch_add_materials?: boolean
1520
+ dispatch_delete_materials?: boolean
1521
+ dispatch_view_reports?: boolean
1522
+ dispatch_view_kpi?: boolean
1523
+ integration_web_access?: boolean
1524
+ integration_mobile?: boolean
1525
+ createdAt?: Date | string
1526
+ updatedAt?: Date | string
1527
+ deletedAt?: Date | string | null
1528
+ }
1529
+
1530
+ export type RoleUncheckedCreateWithoutUserInput = {
1531
+ id?: string
1532
+ no?: number
1533
+ name: string
1534
+ description?: string | null
1535
+ status?: string
1536
+ countries?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1537
+ platforms?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1538
+ login?: boolean
1539
+ access_web?: boolean
1540
+ access_mobile?: boolean
1541
+ add_users?: boolean
1542
+ view_users?: boolean
1543
+ delete_users?: boolean
1544
+ view_requests?: boolean
1545
+ manage_requests?: boolean
1546
+ add_main_projects?: boolean
1547
+ view_main_projects?: boolean
1548
+ edit_main_projects?: boolean
1549
+ delete_main_projects?: boolean
1550
+ view_settings?: boolean
1551
+ view_audit?: boolean
1552
+ full_projects?: boolean
1553
+ add_projects?: boolean
1554
+ edit_projects?: boolean
1555
+ view_projects?: boolean
1556
+ delete_projects?: boolean
1557
+ add_sub_projects?: boolean
1558
+ manage_work_orders?: boolean
1559
+ full_teams?: boolean
1560
+ add_team?: boolean
1561
+ view_team?: boolean
1562
+ quality?: boolean
1563
+ dispatch_web_access?: boolean
1564
+ dispatch_mobile?: boolean
1565
+ dispatch_add_workorders?: boolean
1566
+ dispatch_view_workorders?: boolean
1567
+ dispatch_edit_workorders?: boolean
1568
+ dispatch_view_schedule?: boolean
1569
+ dispatch_add_teams?: boolean
1570
+ dispatch_view_teams?: boolean
1571
+ dispatch_edit_teams?: boolean
1572
+ dispatch_delete_teams?: boolean
1573
+ dispatch_view_projects?: boolean
1574
+ dispatch_edit_projects?: boolean
1575
+ dispatch_edit_materials?: boolean
1576
+ dispatch_view_materials?: boolean
1577
+ dispatch_add_materials?: boolean
1578
+ dispatch_delete_materials?: boolean
1579
+ dispatch_view_reports?: boolean
1580
+ dispatch_view_kpi?: boolean
1581
+ integration_web_access?: boolean
1582
+ integration_mobile?: boolean
1583
+ createdAt?: Date | string
1584
+ updatedAt?: Date | string
1585
+ deletedAt?: Date | string | null
1586
+ }
1587
+
1588
+ export type RoleCreateOrConnectWithoutUserInput = {
1589
+ where: Prisma.RoleWhereUniqueInput
1590
+ create: Prisma.XOR<Prisma.RoleCreateWithoutUserInput, Prisma.RoleUncheckedCreateWithoutUserInput>
1591
+ }
1592
+
1593
+ export type RoleUpsertWithoutUserInput = {
1594
+ update: Prisma.XOR<Prisma.RoleUpdateWithoutUserInput, Prisma.RoleUncheckedUpdateWithoutUserInput>
1595
+ create: Prisma.XOR<Prisma.RoleCreateWithoutUserInput, Prisma.RoleUncheckedCreateWithoutUserInput>
1596
+ where?: Prisma.RoleWhereInput
1597
+ }
1598
+
1599
+ export type RoleUpdateToOneWithWhereWithoutUserInput = {
1600
+ where?: Prisma.RoleWhereInput
1601
+ data: Prisma.XOR<Prisma.RoleUpdateWithoutUserInput, Prisma.RoleUncheckedUpdateWithoutUserInput>
1602
+ }
1603
+
1604
+ export type RoleUpdateWithoutUserInput = {
1605
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1606
+ no?: Prisma.IntFieldUpdateOperationsInput | number
1607
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1608
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1609
+ status?: Prisma.StringFieldUpdateOperationsInput | string
1610
+ countries?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1611
+ platforms?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1612
+ login?: Prisma.BoolFieldUpdateOperationsInput | boolean
1613
+ access_web?: Prisma.BoolFieldUpdateOperationsInput | boolean
1614
+ access_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1615
+ add_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
1616
+ view_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
1617
+ delete_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
1618
+ view_requests?: Prisma.BoolFieldUpdateOperationsInput | boolean
1619
+ manage_requests?: Prisma.BoolFieldUpdateOperationsInput | boolean
1620
+ add_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1621
+ view_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1622
+ edit_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1623
+ delete_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1624
+ view_settings?: Prisma.BoolFieldUpdateOperationsInput | boolean
1625
+ view_audit?: Prisma.BoolFieldUpdateOperationsInput | boolean
1626
+ full_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1627
+ add_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1628
+ edit_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1629
+ view_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1630
+ delete_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1631
+ add_sub_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1632
+ manage_work_orders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1633
+ full_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1634
+ add_team?: Prisma.BoolFieldUpdateOperationsInput | boolean
1635
+ view_team?: Prisma.BoolFieldUpdateOperationsInput | boolean
1636
+ quality?: Prisma.BoolFieldUpdateOperationsInput | boolean
1637
+ dispatch_web_access?: Prisma.BoolFieldUpdateOperationsInput | boolean
1638
+ dispatch_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1639
+ dispatch_add_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1640
+ dispatch_view_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1641
+ dispatch_edit_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1642
+ dispatch_view_schedule?: Prisma.BoolFieldUpdateOperationsInput | boolean
1643
+ dispatch_add_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1644
+ dispatch_view_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1645
+ dispatch_edit_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1646
+ dispatch_delete_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1647
+ dispatch_view_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1648
+ dispatch_edit_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1649
+ dispatch_edit_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1650
+ dispatch_view_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1651
+ dispatch_add_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1652
+ dispatch_delete_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1653
+ dispatch_view_reports?: Prisma.BoolFieldUpdateOperationsInput | boolean
1654
+ dispatch_view_kpi?: Prisma.BoolFieldUpdateOperationsInput | boolean
1655
+ integration_web_access?: Prisma.BoolFieldUpdateOperationsInput | boolean
1656
+ integration_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1657
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1658
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1659
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1660
+ }
1661
+
1662
+ export type RoleUncheckedUpdateWithoutUserInput = {
1663
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1664
+ no?: Prisma.IntFieldUpdateOperationsInput | number
1665
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1666
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1667
+ status?: Prisma.StringFieldUpdateOperationsInput | string
1668
+ countries?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1669
+ platforms?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1670
+ login?: Prisma.BoolFieldUpdateOperationsInput | boolean
1671
+ access_web?: Prisma.BoolFieldUpdateOperationsInput | boolean
1672
+ access_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1673
+ add_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
1674
+ view_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
1675
+ delete_users?: Prisma.BoolFieldUpdateOperationsInput | boolean
1676
+ view_requests?: Prisma.BoolFieldUpdateOperationsInput | boolean
1677
+ manage_requests?: Prisma.BoolFieldUpdateOperationsInput | boolean
1678
+ add_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1679
+ view_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1680
+ edit_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1681
+ delete_main_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1682
+ view_settings?: Prisma.BoolFieldUpdateOperationsInput | boolean
1683
+ view_audit?: Prisma.BoolFieldUpdateOperationsInput | boolean
1684
+ full_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1685
+ add_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1686
+ edit_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1687
+ view_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1688
+ delete_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1689
+ add_sub_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1690
+ manage_work_orders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1691
+ full_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1692
+ add_team?: Prisma.BoolFieldUpdateOperationsInput | boolean
1693
+ view_team?: Prisma.BoolFieldUpdateOperationsInput | boolean
1694
+ quality?: Prisma.BoolFieldUpdateOperationsInput | boolean
1695
+ dispatch_web_access?: Prisma.BoolFieldUpdateOperationsInput | boolean
1696
+ dispatch_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1697
+ dispatch_add_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1698
+ dispatch_view_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1699
+ dispatch_edit_workorders?: Prisma.BoolFieldUpdateOperationsInput | boolean
1700
+ dispatch_view_schedule?: Prisma.BoolFieldUpdateOperationsInput | boolean
1701
+ dispatch_add_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1702
+ dispatch_view_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1703
+ dispatch_edit_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1704
+ dispatch_delete_teams?: Prisma.BoolFieldUpdateOperationsInput | boolean
1705
+ dispatch_view_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1706
+ dispatch_edit_projects?: Prisma.BoolFieldUpdateOperationsInput | boolean
1707
+ dispatch_edit_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1708
+ dispatch_view_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1709
+ dispatch_add_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1710
+ dispatch_delete_materials?: Prisma.BoolFieldUpdateOperationsInput | boolean
1711
+ dispatch_view_reports?: Prisma.BoolFieldUpdateOperationsInput | boolean
1712
+ dispatch_view_kpi?: Prisma.BoolFieldUpdateOperationsInput | boolean
1713
+ integration_web_access?: Prisma.BoolFieldUpdateOperationsInput | boolean
1714
+ integration_mobile?: Prisma.BoolFieldUpdateOperationsInput | boolean
1715
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1716
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1717
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1718
+ }
1719
+
1720
+
1721
+ /**
1722
+ * Count Type RoleCountOutputType
1723
+ */
1724
+
1725
+ export type RoleCountOutputType = {
1726
+ User: number
1727
+ }
1728
+
1729
+ export type RoleCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1730
+ User?: boolean | RoleCountOutputTypeCountUserArgs
1731
+ }
1732
+
1733
+ /**
1734
+ * RoleCountOutputType without action
1735
+ */
1736
+ export type RoleCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1737
+ /**
1738
+ * Select specific fields to fetch from the RoleCountOutputType
1739
+ */
1740
+ select?: Prisma.RoleCountOutputTypeSelect<ExtArgs> | null
1741
+ }
1742
+
1743
+ /**
1744
+ * RoleCountOutputType without action
1745
+ */
1746
+ export type RoleCountOutputTypeCountUserArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1747
+ where?: Prisma.UserWhereInput
1748
+ }
1749
+
1750
+
1751
+ export type RoleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1752
+ id?: boolean
1753
+ no?: boolean
1754
+ name?: boolean
1755
+ description?: boolean
1756
+ status?: boolean
1757
+ countries?: boolean
1758
+ platforms?: boolean
1759
+ login?: boolean
1760
+ access_web?: boolean
1761
+ access_mobile?: boolean
1762
+ add_users?: boolean
1763
+ view_users?: boolean
1764
+ delete_users?: boolean
1765
+ view_requests?: boolean
1766
+ manage_requests?: boolean
1767
+ add_main_projects?: boolean
1768
+ view_main_projects?: boolean
1769
+ edit_main_projects?: boolean
1770
+ delete_main_projects?: boolean
1771
+ view_settings?: boolean
1772
+ view_audit?: boolean
1773
+ full_projects?: boolean
1774
+ add_projects?: boolean
1775
+ edit_projects?: boolean
1776
+ view_projects?: boolean
1777
+ delete_projects?: boolean
1778
+ add_sub_projects?: boolean
1779
+ manage_work_orders?: boolean
1780
+ full_teams?: boolean
1781
+ add_team?: boolean
1782
+ view_team?: boolean
1783
+ quality?: boolean
1784
+ dispatch_web_access?: boolean
1785
+ dispatch_mobile?: boolean
1786
+ dispatch_add_workorders?: boolean
1787
+ dispatch_view_workorders?: boolean
1788
+ dispatch_edit_workorders?: boolean
1789
+ dispatch_view_schedule?: boolean
1790
+ dispatch_add_teams?: boolean
1791
+ dispatch_view_teams?: boolean
1792
+ dispatch_edit_teams?: boolean
1793
+ dispatch_delete_teams?: boolean
1794
+ dispatch_view_projects?: boolean
1795
+ dispatch_edit_projects?: boolean
1796
+ dispatch_edit_materials?: boolean
1797
+ dispatch_view_materials?: boolean
1798
+ dispatch_add_materials?: boolean
1799
+ dispatch_delete_materials?: boolean
1800
+ dispatch_view_reports?: boolean
1801
+ dispatch_view_kpi?: boolean
1802
+ integration_web_access?: boolean
1803
+ integration_mobile?: boolean
1804
+ createdAt?: boolean
1805
+ updatedAt?: boolean
1806
+ deletedAt?: boolean
1807
+ User?: boolean | Prisma.Role$UserArgs<ExtArgs>
1808
+ _count?: boolean | Prisma.RoleCountOutputTypeDefaultArgs<ExtArgs>
1809
+ }, ExtArgs["result"]["role"]>
1810
+
1811
+ export type RoleSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1812
+ id?: boolean
1813
+ no?: boolean
1814
+ name?: boolean
1815
+ description?: boolean
1816
+ status?: boolean
1817
+ countries?: boolean
1818
+ platforms?: boolean
1819
+ login?: boolean
1820
+ access_web?: boolean
1821
+ access_mobile?: boolean
1822
+ add_users?: boolean
1823
+ view_users?: boolean
1824
+ delete_users?: boolean
1825
+ view_requests?: boolean
1826
+ manage_requests?: boolean
1827
+ add_main_projects?: boolean
1828
+ view_main_projects?: boolean
1829
+ edit_main_projects?: boolean
1830
+ delete_main_projects?: boolean
1831
+ view_settings?: boolean
1832
+ view_audit?: boolean
1833
+ full_projects?: boolean
1834
+ add_projects?: boolean
1835
+ edit_projects?: boolean
1836
+ view_projects?: boolean
1837
+ delete_projects?: boolean
1838
+ add_sub_projects?: boolean
1839
+ manage_work_orders?: boolean
1840
+ full_teams?: boolean
1841
+ add_team?: boolean
1842
+ view_team?: boolean
1843
+ quality?: boolean
1844
+ dispatch_web_access?: boolean
1845
+ dispatch_mobile?: boolean
1846
+ dispatch_add_workorders?: boolean
1847
+ dispatch_view_workorders?: boolean
1848
+ dispatch_edit_workorders?: boolean
1849
+ dispatch_view_schedule?: boolean
1850
+ dispatch_add_teams?: boolean
1851
+ dispatch_view_teams?: boolean
1852
+ dispatch_edit_teams?: boolean
1853
+ dispatch_delete_teams?: boolean
1854
+ dispatch_view_projects?: boolean
1855
+ dispatch_edit_projects?: boolean
1856
+ dispatch_edit_materials?: boolean
1857
+ dispatch_view_materials?: boolean
1858
+ dispatch_add_materials?: boolean
1859
+ dispatch_delete_materials?: boolean
1860
+ dispatch_view_reports?: boolean
1861
+ dispatch_view_kpi?: boolean
1862
+ integration_web_access?: boolean
1863
+ integration_mobile?: boolean
1864
+ createdAt?: boolean
1865
+ updatedAt?: boolean
1866
+ deletedAt?: boolean
1867
+ }, ExtArgs["result"]["role"]>
1868
+
1869
+ export type RoleSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1870
+ id?: boolean
1871
+ no?: boolean
1872
+ name?: boolean
1873
+ description?: boolean
1874
+ status?: boolean
1875
+ countries?: boolean
1876
+ platforms?: boolean
1877
+ login?: boolean
1878
+ access_web?: boolean
1879
+ access_mobile?: boolean
1880
+ add_users?: boolean
1881
+ view_users?: boolean
1882
+ delete_users?: boolean
1883
+ view_requests?: boolean
1884
+ manage_requests?: boolean
1885
+ add_main_projects?: boolean
1886
+ view_main_projects?: boolean
1887
+ edit_main_projects?: boolean
1888
+ delete_main_projects?: boolean
1889
+ view_settings?: boolean
1890
+ view_audit?: boolean
1891
+ full_projects?: boolean
1892
+ add_projects?: boolean
1893
+ edit_projects?: boolean
1894
+ view_projects?: boolean
1895
+ delete_projects?: boolean
1896
+ add_sub_projects?: boolean
1897
+ manage_work_orders?: boolean
1898
+ full_teams?: boolean
1899
+ add_team?: boolean
1900
+ view_team?: boolean
1901
+ quality?: boolean
1902
+ dispatch_web_access?: boolean
1903
+ dispatch_mobile?: boolean
1904
+ dispatch_add_workorders?: boolean
1905
+ dispatch_view_workorders?: boolean
1906
+ dispatch_edit_workorders?: boolean
1907
+ dispatch_view_schedule?: boolean
1908
+ dispatch_add_teams?: boolean
1909
+ dispatch_view_teams?: boolean
1910
+ dispatch_edit_teams?: boolean
1911
+ dispatch_delete_teams?: boolean
1912
+ dispatch_view_projects?: boolean
1913
+ dispatch_edit_projects?: boolean
1914
+ dispatch_edit_materials?: boolean
1915
+ dispatch_view_materials?: boolean
1916
+ dispatch_add_materials?: boolean
1917
+ dispatch_delete_materials?: boolean
1918
+ dispatch_view_reports?: boolean
1919
+ dispatch_view_kpi?: boolean
1920
+ integration_web_access?: boolean
1921
+ integration_mobile?: boolean
1922
+ createdAt?: boolean
1923
+ updatedAt?: boolean
1924
+ deletedAt?: boolean
1925
+ }, ExtArgs["result"]["role"]>
1926
+
1927
+ export type RoleSelectScalar = {
1928
+ id?: boolean
1929
+ no?: boolean
1930
+ name?: boolean
1931
+ description?: boolean
1932
+ status?: boolean
1933
+ countries?: boolean
1934
+ platforms?: boolean
1935
+ login?: boolean
1936
+ access_web?: boolean
1937
+ access_mobile?: boolean
1938
+ add_users?: boolean
1939
+ view_users?: boolean
1940
+ delete_users?: boolean
1941
+ view_requests?: boolean
1942
+ manage_requests?: boolean
1943
+ add_main_projects?: boolean
1944
+ view_main_projects?: boolean
1945
+ edit_main_projects?: boolean
1946
+ delete_main_projects?: boolean
1947
+ view_settings?: boolean
1948
+ view_audit?: boolean
1949
+ full_projects?: boolean
1950
+ add_projects?: boolean
1951
+ edit_projects?: boolean
1952
+ view_projects?: boolean
1953
+ delete_projects?: boolean
1954
+ add_sub_projects?: boolean
1955
+ manage_work_orders?: boolean
1956
+ full_teams?: boolean
1957
+ add_team?: boolean
1958
+ view_team?: boolean
1959
+ quality?: boolean
1960
+ dispatch_web_access?: boolean
1961
+ dispatch_mobile?: boolean
1962
+ dispatch_add_workorders?: boolean
1963
+ dispatch_view_workorders?: boolean
1964
+ dispatch_edit_workorders?: boolean
1965
+ dispatch_view_schedule?: boolean
1966
+ dispatch_add_teams?: boolean
1967
+ dispatch_view_teams?: boolean
1968
+ dispatch_edit_teams?: boolean
1969
+ dispatch_delete_teams?: boolean
1970
+ dispatch_view_projects?: boolean
1971
+ dispatch_edit_projects?: boolean
1972
+ dispatch_edit_materials?: boolean
1973
+ dispatch_view_materials?: boolean
1974
+ dispatch_add_materials?: boolean
1975
+ dispatch_delete_materials?: boolean
1976
+ dispatch_view_reports?: boolean
1977
+ dispatch_view_kpi?: boolean
1978
+ integration_web_access?: boolean
1979
+ integration_mobile?: boolean
1980
+ createdAt?: boolean
1981
+ updatedAt?: boolean
1982
+ deletedAt?: boolean
1983
+ }
1984
+
1985
+ export type RoleOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "no" | "name" | "description" | "status" | "countries" | "platforms" | "login" | "access_web" | "access_mobile" | "add_users" | "view_users" | "delete_users" | "view_requests" | "manage_requests" | "add_main_projects" | "view_main_projects" | "edit_main_projects" | "delete_main_projects" | "view_settings" | "view_audit" | "full_projects" | "add_projects" | "edit_projects" | "view_projects" | "delete_projects" | "add_sub_projects" | "manage_work_orders" | "full_teams" | "add_team" | "view_team" | "quality" | "dispatch_web_access" | "dispatch_mobile" | "dispatch_add_workorders" | "dispatch_view_workorders" | "dispatch_edit_workorders" | "dispatch_view_schedule" | "dispatch_add_teams" | "dispatch_view_teams" | "dispatch_edit_teams" | "dispatch_delete_teams" | "dispatch_view_projects" | "dispatch_edit_projects" | "dispatch_edit_materials" | "dispatch_view_materials" | "dispatch_add_materials" | "dispatch_delete_materials" | "dispatch_view_reports" | "dispatch_view_kpi" | "integration_web_access" | "integration_mobile" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["role"]>
1986
+ export type RoleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1987
+ User?: boolean | Prisma.Role$UserArgs<ExtArgs>
1988
+ _count?: boolean | Prisma.RoleCountOutputTypeDefaultArgs<ExtArgs>
1989
+ }
1990
+ export type RoleIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
1991
+ export type RoleIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
1992
+
1993
+ export type $RolePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1994
+ name: "Role"
1995
+ objects: {
1996
+ User: Prisma.$UserPayload<ExtArgs>[]
1997
+ }
1998
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1999
+ id: string
2000
+ no: number
2001
+ name: string
2002
+ description: string | null
2003
+ status: string
2004
+ countries: runtime.JsonValue | null
2005
+ platforms: runtime.JsonValue | null
2006
+ login: boolean
2007
+ access_web: boolean
2008
+ access_mobile: boolean
2009
+ add_users: boolean
2010
+ view_users: boolean
2011
+ delete_users: boolean
2012
+ view_requests: boolean
2013
+ manage_requests: boolean
2014
+ add_main_projects: boolean
2015
+ view_main_projects: boolean
2016
+ edit_main_projects: boolean
2017
+ delete_main_projects: boolean
2018
+ view_settings: boolean
2019
+ view_audit: boolean
2020
+ full_projects: boolean
2021
+ add_projects: boolean
2022
+ edit_projects: boolean
2023
+ view_projects: boolean
2024
+ delete_projects: boolean
2025
+ add_sub_projects: boolean
2026
+ manage_work_orders: boolean
2027
+ full_teams: boolean
2028
+ add_team: boolean
2029
+ view_team: boolean
2030
+ quality: boolean
2031
+ dispatch_web_access: boolean
2032
+ dispatch_mobile: boolean
2033
+ dispatch_add_workorders: boolean
2034
+ dispatch_view_workorders: boolean
2035
+ dispatch_edit_workorders: boolean
2036
+ dispatch_view_schedule: boolean
2037
+ dispatch_add_teams: boolean
2038
+ dispatch_view_teams: boolean
2039
+ dispatch_edit_teams: boolean
2040
+ dispatch_delete_teams: boolean
2041
+ dispatch_view_projects: boolean
2042
+ dispatch_edit_projects: boolean
2043
+ dispatch_edit_materials: boolean
2044
+ dispatch_view_materials: boolean
2045
+ dispatch_add_materials: boolean
2046
+ dispatch_delete_materials: boolean
2047
+ dispatch_view_reports: boolean
2048
+ dispatch_view_kpi: boolean
2049
+ integration_web_access: boolean
2050
+ integration_mobile: boolean
2051
+ createdAt: Date
2052
+ updatedAt: Date
2053
+ deletedAt: Date | null
2054
+ }, ExtArgs["result"]["role"]>
2055
+ composites: {}
2056
+ }
2057
+
2058
+ export type RoleGetPayload<S extends boolean | null | undefined | RoleDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RolePayload, S>
2059
+
2060
+ export type RoleCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
2061
+ Omit<RoleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
2062
+ select?: RoleCountAggregateInputType | true
2063
+ }
2064
+
2065
+ export interface RoleDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
2066
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Role'], meta: { name: 'Role' } }
2067
+ /**
2068
+ * Find zero or one Role that matches the filter.
2069
+ * @param {RoleFindUniqueArgs} args - Arguments to find a Role
2070
+ * @example
2071
+ * // Get one Role
2072
+ * const role = await prisma.role.findUnique({
2073
+ * where: {
2074
+ * // ... provide filter here
2075
+ * }
2076
+ * })
2077
+ */
2078
+ 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>
2079
+
2080
+ /**
2081
+ * Find one Role that matches the filter or throw an error with `error.code='P2025'`
2082
+ * if no matches were found.
2083
+ * @param {RoleFindUniqueOrThrowArgs} args - Arguments to find a Role
2084
+ * @example
2085
+ * // Get one Role
2086
+ * const role = await prisma.role.findUniqueOrThrow({
2087
+ * where: {
2088
+ * // ... provide filter here
2089
+ * }
2090
+ * })
2091
+ */
2092
+ 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>
2093
+
2094
+ /**
2095
+ * Find the first Role that matches the filter.
2096
+ * Note, that providing `undefined` is treated as the value not being there.
2097
+ * Read more here: https://pris.ly/d/null-undefined
2098
+ * @param {RoleFindFirstArgs} args - Arguments to find a Role
2099
+ * @example
2100
+ * // Get one Role
2101
+ * const role = await prisma.role.findFirst({
2102
+ * where: {
2103
+ * // ... provide filter here
2104
+ * }
2105
+ * })
2106
+ */
2107
+ 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>
2108
+
2109
+ /**
2110
+ * Find the first Role that matches the filter or
2111
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
2112
+ * Note, that providing `undefined` is treated as the value not being there.
2113
+ * Read more here: https://pris.ly/d/null-undefined
2114
+ * @param {RoleFindFirstOrThrowArgs} args - Arguments to find a Role
2115
+ * @example
2116
+ * // Get one Role
2117
+ * const role = await prisma.role.findFirstOrThrow({
2118
+ * where: {
2119
+ * // ... provide filter here
2120
+ * }
2121
+ * })
2122
+ */
2123
+ 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>
2124
+
2125
+ /**
2126
+ * Find zero or more Roles that matches the filter.
2127
+ * Note, that providing `undefined` is treated as the value not being there.
2128
+ * Read more here: https://pris.ly/d/null-undefined
2129
+ * @param {RoleFindManyArgs} args - Arguments to filter and select certain fields only.
2130
+ * @example
2131
+ * // Get all Roles
2132
+ * const roles = await prisma.role.findMany()
2133
+ *
2134
+ * // Get first 10 Roles
2135
+ * const roles = await prisma.role.findMany({ take: 10 })
2136
+ *
2137
+ * // Only select the `id`
2138
+ * const roleWithIdOnly = await prisma.role.findMany({ select: { id: true } })
2139
+ *
2140
+ */
2141
+ findMany<T extends RoleFindManyArgs>(args?: Prisma.SelectSubset<T, RoleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
2142
+
2143
+ /**
2144
+ * Create a Role.
2145
+ * @param {RoleCreateArgs} args - Arguments to create a Role.
2146
+ * @example
2147
+ * // Create one Role
2148
+ * const Role = await prisma.role.create({
2149
+ * data: {
2150
+ * // ... data to create a Role
2151
+ * }
2152
+ * })
2153
+ *
2154
+ */
2155
+ 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>
2156
+
2157
+ /**
2158
+ * Create many Roles.
2159
+ * @param {RoleCreateManyArgs} args - Arguments to create many Roles.
2160
+ * @example
2161
+ * // Create many Roles
2162
+ * const role = await prisma.role.createMany({
2163
+ * data: [
2164
+ * // ... provide data here
2165
+ * ]
2166
+ * })
2167
+ *
2168
+ */
2169
+ createMany<T extends RoleCreateManyArgs>(args?: Prisma.SelectSubset<T, RoleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
2170
+
2171
+ /**
2172
+ * Create many Roles and returns the data saved in the database.
2173
+ * @param {RoleCreateManyAndReturnArgs} args - Arguments to create many Roles.
2174
+ * @example
2175
+ * // Create many Roles
2176
+ * const role = await prisma.role.createManyAndReturn({
2177
+ * data: [
2178
+ * // ... provide data here
2179
+ * ]
2180
+ * })
2181
+ *
2182
+ * // Create many Roles and only return the `id`
2183
+ * const roleWithIdOnly = await prisma.role.createManyAndReturn({
2184
+ * select: { id: true },
2185
+ * data: [
2186
+ * // ... provide data here
2187
+ * ]
2188
+ * })
2189
+ * Note, that providing `undefined` is treated as the value not being there.
2190
+ * Read more here: https://pris.ly/d/null-undefined
2191
+ *
2192
+ */
2193
+ createManyAndReturn<T extends RoleCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RoleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
2194
+
2195
+ /**
2196
+ * Delete a Role.
2197
+ * @param {RoleDeleteArgs} args - Arguments to delete one Role.
2198
+ * @example
2199
+ * // Delete one Role
2200
+ * const Role = await prisma.role.delete({
2201
+ * where: {
2202
+ * // ... filter to delete one Role
2203
+ * }
2204
+ * })
2205
+ *
2206
+ */
2207
+ 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>
2208
+
2209
+ /**
2210
+ * Update one Role.
2211
+ * @param {RoleUpdateArgs} args - Arguments to update one Role.
2212
+ * @example
2213
+ * // Update one Role
2214
+ * const role = await prisma.role.update({
2215
+ * where: {
2216
+ * // ... provide filter here
2217
+ * },
2218
+ * data: {
2219
+ * // ... provide data here
2220
+ * }
2221
+ * })
2222
+ *
2223
+ */
2224
+ 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>
2225
+
2226
+ /**
2227
+ * Delete zero or more Roles.
2228
+ * @param {RoleDeleteManyArgs} args - Arguments to filter Roles to delete.
2229
+ * @example
2230
+ * // Delete a few Roles
2231
+ * const { count } = await prisma.role.deleteMany({
2232
+ * where: {
2233
+ * // ... provide filter here
2234
+ * }
2235
+ * })
2236
+ *
2237
+ */
2238
+ deleteMany<T extends RoleDeleteManyArgs>(args?: Prisma.SelectSubset<T, RoleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
2239
+
2240
+ /**
2241
+ * Update zero or more Roles.
2242
+ * Note, that providing `undefined` is treated as the value not being there.
2243
+ * Read more here: https://pris.ly/d/null-undefined
2244
+ * @param {RoleUpdateManyArgs} args - Arguments to update one or more rows.
2245
+ * @example
2246
+ * // Update many Roles
2247
+ * const role = await prisma.role.updateMany({
2248
+ * where: {
2249
+ * // ... provide filter here
2250
+ * },
2251
+ * data: {
2252
+ * // ... provide data here
2253
+ * }
2254
+ * })
2255
+ *
2256
+ */
2257
+ updateMany<T extends RoleUpdateManyArgs>(args: Prisma.SelectSubset<T, RoleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
2258
+
2259
+ /**
2260
+ * Update zero or more Roles and returns the data updated in the database.
2261
+ * @param {RoleUpdateManyAndReturnArgs} args - Arguments to update many Roles.
2262
+ * @example
2263
+ * // Update many Roles
2264
+ * const role = await prisma.role.updateManyAndReturn({
2265
+ * where: {
2266
+ * // ... provide filter here
2267
+ * },
2268
+ * data: [
2269
+ * // ... provide data here
2270
+ * ]
2271
+ * })
2272
+ *
2273
+ * // Update zero or more Roles and only return the `id`
2274
+ * const roleWithIdOnly = await prisma.role.updateManyAndReturn({
2275
+ * select: { id: true },
2276
+ * where: {
2277
+ * // ... provide filter here
2278
+ * },
2279
+ * data: [
2280
+ * // ... provide data here
2281
+ * ]
2282
+ * })
2283
+ * Note, that providing `undefined` is treated as the value not being there.
2284
+ * Read more here: https://pris.ly/d/null-undefined
2285
+ *
2286
+ */
2287
+ updateManyAndReturn<T extends RoleUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RoleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
2288
+
2289
+ /**
2290
+ * Create or update one Role.
2291
+ * @param {RoleUpsertArgs} args - Arguments to update or create a Role.
2292
+ * @example
2293
+ * // Update or create a Role
2294
+ * const role = await prisma.role.upsert({
2295
+ * create: {
2296
+ * // ... data to create a Role
2297
+ * },
2298
+ * update: {
2299
+ * // ... in case it already exists, update
2300
+ * },
2301
+ * where: {
2302
+ * // ... the filter for the Role we want to update
2303
+ * }
2304
+ * })
2305
+ */
2306
+ 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>
2307
+
2308
+
2309
+ /**
2310
+ * Count the number of Roles.
2311
+ * Note, that providing `undefined` is treated as the value not being there.
2312
+ * Read more here: https://pris.ly/d/null-undefined
2313
+ * @param {RoleCountArgs} args - Arguments to filter Roles to count.
2314
+ * @example
2315
+ * // Count the number of Roles
2316
+ * const count = await prisma.role.count({
2317
+ * where: {
2318
+ * // ... the filter for the Roles we want to count
2319
+ * }
2320
+ * })
2321
+ **/
2322
+ count<T extends RoleCountArgs>(
2323
+ args?: Prisma.Subset<T, RoleCountArgs>,
2324
+ ): Prisma.PrismaPromise<
2325
+ T extends runtime.Types.Utils.Record<'select', any>
2326
+ ? T['select'] extends true
2327
+ ? number
2328
+ : Prisma.GetScalarType<T['select'], RoleCountAggregateOutputType>
2329
+ : number
2330
+ >
2331
+
2332
+ /**
2333
+ * Allows you to perform aggregations operations on a Role.
2334
+ * Note, that providing `undefined` is treated as the value not being there.
2335
+ * Read more here: https://pris.ly/d/null-undefined
2336
+ * @param {RoleAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
2337
+ * @example
2338
+ * // Ordered by age ascending
2339
+ * // Where email contains prisma.io
2340
+ * // Limited to the 10 users
2341
+ * const aggregations = await prisma.user.aggregate({
2342
+ * _avg: {
2343
+ * age: true,
2344
+ * },
2345
+ * where: {
2346
+ * email: {
2347
+ * contains: "prisma.io",
2348
+ * },
2349
+ * },
2350
+ * orderBy: {
2351
+ * age: "asc",
2352
+ * },
2353
+ * take: 10,
2354
+ * })
2355
+ **/
2356
+ aggregate<T extends RoleAggregateArgs>(args: Prisma.Subset<T, RoleAggregateArgs>): Prisma.PrismaPromise<GetRoleAggregateType<T>>
2357
+
2358
+ /**
2359
+ * Group by Role.
2360
+ * Note, that providing `undefined` is treated as the value not being there.
2361
+ * Read more here: https://pris.ly/d/null-undefined
2362
+ * @param {RoleGroupByArgs} args - Group by arguments.
2363
+ * @example
2364
+ * // Group by city, order by createdAt, get count
2365
+ * const result = await prisma.user.groupBy({
2366
+ * by: ['city', 'createdAt'],
2367
+ * orderBy: {
2368
+ * createdAt: true
2369
+ * },
2370
+ * _count: {
2371
+ * _all: true
2372
+ * },
2373
+ * })
2374
+ *
2375
+ **/
2376
+ groupBy<
2377
+ T extends RoleGroupByArgs,
2378
+ HasSelectOrTake extends Prisma.Or<
2379
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
2380
+ Prisma.Extends<'take', Prisma.Keys<T>>
2381
+ >,
2382
+ OrderByArg extends Prisma.True extends HasSelectOrTake
2383
+ ? { orderBy: RoleGroupByArgs['orderBy'] }
2384
+ : { orderBy?: RoleGroupByArgs['orderBy'] },
2385
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
2386
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
2387
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
2388
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
2389
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
2390
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
2391
+ InputErrors extends ByEmpty extends Prisma.True
2392
+ ? `Error: "by" must not be empty.`
2393
+ : HavingValid extends Prisma.False
2394
+ ? {
2395
+ [P in HavingFields]: P extends ByFields
2396
+ ? never
2397
+ : P extends string
2398
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
2399
+ : [
2400
+ Error,
2401
+ 'Field ',
2402
+ P,
2403
+ ` in "having" needs to be provided in "by"`,
2404
+ ]
2405
+ }[HavingFields]
2406
+ : 'take' extends Prisma.Keys<T>
2407
+ ? 'orderBy' extends Prisma.Keys<T>
2408
+ ? ByValid extends Prisma.True
2409
+ ? {}
2410
+ : {
2411
+ [P in OrderFields]: P extends ByFields
2412
+ ? never
2413
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
2414
+ }[OrderFields]
2415
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
2416
+ : 'skip' extends Prisma.Keys<T>
2417
+ ? 'orderBy' extends Prisma.Keys<T>
2418
+ ? ByValid extends Prisma.True
2419
+ ? {}
2420
+ : {
2421
+ [P in OrderFields]: P extends ByFields
2422
+ ? never
2423
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
2424
+ }[OrderFields]
2425
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
2426
+ : ByValid extends Prisma.True
2427
+ ? {}
2428
+ : {
2429
+ [P in OrderFields]: P extends ByFields
2430
+ ? never
2431
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
2432
+ }[OrderFields]
2433
+ >(args: Prisma.SubsetIntersection<T, RoleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRoleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
2434
+ /**
2435
+ * Fields of the Role model
2436
+ */
2437
+ readonly fields: RoleFieldRefs;
2438
+ }
2439
+
2440
+ /**
2441
+ * The delegate class that acts as a "Promise-like" for Role.
2442
+ * Why is this prefixed with `Prisma__`?
2443
+ * Because we want to prevent naming conflicts as mentioned in
2444
+ * https://github.com/prisma/prisma-client-js/issues/707
2445
+ */
2446
+ export interface Prisma__RoleClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
2447
+ readonly [Symbol.toStringTag]: "PrismaPromise"
2448
+ User<T extends Prisma.Role$UserArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Role$UserArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2449
+ /**
2450
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
2451
+ * @param onfulfilled The callback to execute when the Promise is resolved.
2452
+ * @param onrejected The callback to execute when the Promise is rejected.
2453
+ * @returns A Promise for the completion of which ever callback is executed.
2454
+ */
2455
+ 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>
2456
+ /**
2457
+ * Attaches a callback for only the rejection of the Promise.
2458
+ * @param onrejected The callback to execute when the Promise is rejected.
2459
+ * @returns A Promise for the completion of the callback.
2460
+ */
2461
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
2462
+ /**
2463
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
2464
+ * resolved value cannot be modified from the callback.
2465
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
2466
+ * @returns A Promise for the completion of the callback.
2467
+ */
2468
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
2469
+ }
2470
+
2471
+
2472
+
2473
+
2474
+ /**
2475
+ * Fields of the Role model
2476
+ */
2477
+ export interface RoleFieldRefs {
2478
+ readonly id: Prisma.FieldRef<"Role", 'String'>
2479
+ readonly no: Prisma.FieldRef<"Role", 'Int'>
2480
+ readonly name: Prisma.FieldRef<"Role", 'String'>
2481
+ readonly description: Prisma.FieldRef<"Role", 'String'>
2482
+ readonly status: Prisma.FieldRef<"Role", 'String'>
2483
+ readonly countries: Prisma.FieldRef<"Role", 'Json'>
2484
+ readonly platforms: Prisma.FieldRef<"Role", 'Json'>
2485
+ readonly login: Prisma.FieldRef<"Role", 'Boolean'>
2486
+ readonly access_web: Prisma.FieldRef<"Role", 'Boolean'>
2487
+ readonly access_mobile: Prisma.FieldRef<"Role", 'Boolean'>
2488
+ readonly add_users: Prisma.FieldRef<"Role", 'Boolean'>
2489
+ readonly view_users: Prisma.FieldRef<"Role", 'Boolean'>
2490
+ readonly delete_users: Prisma.FieldRef<"Role", 'Boolean'>
2491
+ readonly view_requests: Prisma.FieldRef<"Role", 'Boolean'>
2492
+ readonly manage_requests: Prisma.FieldRef<"Role", 'Boolean'>
2493
+ readonly add_main_projects: Prisma.FieldRef<"Role", 'Boolean'>
2494
+ readonly view_main_projects: Prisma.FieldRef<"Role", 'Boolean'>
2495
+ readonly edit_main_projects: Prisma.FieldRef<"Role", 'Boolean'>
2496
+ readonly delete_main_projects: Prisma.FieldRef<"Role", 'Boolean'>
2497
+ readonly view_settings: Prisma.FieldRef<"Role", 'Boolean'>
2498
+ readonly view_audit: Prisma.FieldRef<"Role", 'Boolean'>
2499
+ readonly full_projects: Prisma.FieldRef<"Role", 'Boolean'>
2500
+ readonly add_projects: Prisma.FieldRef<"Role", 'Boolean'>
2501
+ readonly edit_projects: Prisma.FieldRef<"Role", 'Boolean'>
2502
+ readonly view_projects: Prisma.FieldRef<"Role", 'Boolean'>
2503
+ readonly delete_projects: Prisma.FieldRef<"Role", 'Boolean'>
2504
+ readonly add_sub_projects: Prisma.FieldRef<"Role", 'Boolean'>
2505
+ readonly manage_work_orders: Prisma.FieldRef<"Role", 'Boolean'>
2506
+ readonly full_teams: Prisma.FieldRef<"Role", 'Boolean'>
2507
+ readonly add_team: Prisma.FieldRef<"Role", 'Boolean'>
2508
+ readonly view_team: Prisma.FieldRef<"Role", 'Boolean'>
2509
+ readonly quality: Prisma.FieldRef<"Role", 'Boolean'>
2510
+ readonly dispatch_web_access: Prisma.FieldRef<"Role", 'Boolean'>
2511
+ readonly dispatch_mobile: Prisma.FieldRef<"Role", 'Boolean'>
2512
+ readonly dispatch_add_workorders: Prisma.FieldRef<"Role", 'Boolean'>
2513
+ readonly dispatch_view_workorders: Prisma.FieldRef<"Role", 'Boolean'>
2514
+ readonly dispatch_edit_workorders: Prisma.FieldRef<"Role", 'Boolean'>
2515
+ readonly dispatch_view_schedule: Prisma.FieldRef<"Role", 'Boolean'>
2516
+ readonly dispatch_add_teams: Prisma.FieldRef<"Role", 'Boolean'>
2517
+ readonly dispatch_view_teams: Prisma.FieldRef<"Role", 'Boolean'>
2518
+ readonly dispatch_edit_teams: Prisma.FieldRef<"Role", 'Boolean'>
2519
+ readonly dispatch_delete_teams: Prisma.FieldRef<"Role", 'Boolean'>
2520
+ readonly dispatch_view_projects: Prisma.FieldRef<"Role", 'Boolean'>
2521
+ readonly dispatch_edit_projects: Prisma.FieldRef<"Role", 'Boolean'>
2522
+ readonly dispatch_edit_materials: Prisma.FieldRef<"Role", 'Boolean'>
2523
+ readonly dispatch_view_materials: Prisma.FieldRef<"Role", 'Boolean'>
2524
+ readonly dispatch_add_materials: Prisma.FieldRef<"Role", 'Boolean'>
2525
+ readonly dispatch_delete_materials: Prisma.FieldRef<"Role", 'Boolean'>
2526
+ readonly dispatch_view_reports: Prisma.FieldRef<"Role", 'Boolean'>
2527
+ readonly dispatch_view_kpi: Prisma.FieldRef<"Role", 'Boolean'>
2528
+ readonly integration_web_access: Prisma.FieldRef<"Role", 'Boolean'>
2529
+ readonly integration_mobile: Prisma.FieldRef<"Role", 'Boolean'>
2530
+ readonly createdAt: Prisma.FieldRef<"Role", 'DateTime'>
2531
+ readonly updatedAt: Prisma.FieldRef<"Role", 'DateTime'>
2532
+ readonly deletedAt: Prisma.FieldRef<"Role", 'DateTime'>
2533
+ }
2534
+
2535
+
2536
+ // Custom InputTypes
2537
+ /**
2538
+ * Role findUnique
2539
+ */
2540
+ export type RoleFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2541
+ /**
2542
+ * Select specific fields to fetch from the Role
2543
+ */
2544
+ select?: Prisma.RoleSelect<ExtArgs> | null
2545
+ /**
2546
+ * Omit specific fields from the Role
2547
+ */
2548
+ omit?: Prisma.RoleOmit<ExtArgs> | null
2549
+ /**
2550
+ * Choose, which related nodes to fetch as well
2551
+ */
2552
+ include?: Prisma.RoleInclude<ExtArgs> | null
2553
+ /**
2554
+ * Filter, which Role to fetch.
2555
+ */
2556
+ where: Prisma.RoleWhereUniqueInput
2557
+ }
2558
+
2559
+ /**
2560
+ * Role findUniqueOrThrow
2561
+ */
2562
+ export type RoleFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2563
+ /**
2564
+ * Select specific fields to fetch from the Role
2565
+ */
2566
+ select?: Prisma.RoleSelect<ExtArgs> | null
2567
+ /**
2568
+ * Omit specific fields from the Role
2569
+ */
2570
+ omit?: Prisma.RoleOmit<ExtArgs> | null
2571
+ /**
2572
+ * Choose, which related nodes to fetch as well
2573
+ */
2574
+ include?: Prisma.RoleInclude<ExtArgs> | null
2575
+ /**
2576
+ * Filter, which Role to fetch.
2577
+ */
2578
+ where: Prisma.RoleWhereUniqueInput
2579
+ }
2580
+
2581
+ /**
2582
+ * Role findFirst
2583
+ */
2584
+ export type RoleFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2585
+ /**
2586
+ * Select specific fields to fetch from the Role
2587
+ */
2588
+ select?: Prisma.RoleSelect<ExtArgs> | null
2589
+ /**
2590
+ * Omit specific fields from the Role
2591
+ */
2592
+ omit?: Prisma.RoleOmit<ExtArgs> | null
2593
+ /**
2594
+ * Choose, which related nodes to fetch as well
2595
+ */
2596
+ include?: Prisma.RoleInclude<ExtArgs> | null
2597
+ /**
2598
+ * Filter, which Role to fetch.
2599
+ */
2600
+ where?: Prisma.RoleWhereInput
2601
+ /**
2602
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2603
+ *
2604
+ * Determine the order of Roles to fetch.
2605
+ */
2606
+ orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[]
2607
+ /**
2608
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2609
+ *
2610
+ * Sets the position for searching for Roles.
2611
+ */
2612
+ cursor?: Prisma.RoleWhereUniqueInput
2613
+ /**
2614
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2615
+ *
2616
+ * Take `±n` Roles from the position of the cursor.
2617
+ */
2618
+ take?: number
2619
+ /**
2620
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2621
+ *
2622
+ * Skip the first `n` Roles.
2623
+ */
2624
+ skip?: number
2625
+ /**
2626
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2627
+ *
2628
+ * Filter by unique combinations of Roles.
2629
+ */
2630
+ distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[]
2631
+ }
2632
+
2633
+ /**
2634
+ * Role findFirstOrThrow
2635
+ */
2636
+ export type RoleFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2637
+ /**
2638
+ * Select specific fields to fetch from the Role
2639
+ */
2640
+ select?: Prisma.RoleSelect<ExtArgs> | null
2641
+ /**
2642
+ * Omit specific fields from the Role
2643
+ */
2644
+ omit?: Prisma.RoleOmit<ExtArgs> | null
2645
+ /**
2646
+ * Choose, which related nodes to fetch as well
2647
+ */
2648
+ include?: Prisma.RoleInclude<ExtArgs> | null
2649
+ /**
2650
+ * Filter, which Role to fetch.
2651
+ */
2652
+ where?: Prisma.RoleWhereInput
2653
+ /**
2654
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2655
+ *
2656
+ * Determine the order of Roles to fetch.
2657
+ */
2658
+ orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[]
2659
+ /**
2660
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2661
+ *
2662
+ * Sets the position for searching for Roles.
2663
+ */
2664
+ cursor?: Prisma.RoleWhereUniqueInput
2665
+ /**
2666
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2667
+ *
2668
+ * Take `±n` Roles from the position of the cursor.
2669
+ */
2670
+ take?: number
2671
+ /**
2672
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2673
+ *
2674
+ * Skip the first `n` Roles.
2675
+ */
2676
+ skip?: number
2677
+ /**
2678
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2679
+ *
2680
+ * Filter by unique combinations of Roles.
2681
+ */
2682
+ distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[]
2683
+ }
2684
+
2685
+ /**
2686
+ * Role findMany
2687
+ */
2688
+ export type RoleFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2689
+ /**
2690
+ * Select specific fields to fetch from the Role
2691
+ */
2692
+ select?: Prisma.RoleSelect<ExtArgs> | null
2693
+ /**
2694
+ * Omit specific fields from the Role
2695
+ */
2696
+ omit?: Prisma.RoleOmit<ExtArgs> | null
2697
+ /**
2698
+ * Choose, which related nodes to fetch as well
2699
+ */
2700
+ include?: Prisma.RoleInclude<ExtArgs> | null
2701
+ /**
2702
+ * Filter, which Roles to fetch.
2703
+ */
2704
+ where?: Prisma.RoleWhereInput
2705
+ /**
2706
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2707
+ *
2708
+ * Determine the order of Roles to fetch.
2709
+ */
2710
+ orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[]
2711
+ /**
2712
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2713
+ *
2714
+ * Sets the position for listing Roles.
2715
+ */
2716
+ cursor?: Prisma.RoleWhereUniqueInput
2717
+ /**
2718
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2719
+ *
2720
+ * Take `±n` Roles from the position of the cursor.
2721
+ */
2722
+ take?: number
2723
+ /**
2724
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2725
+ *
2726
+ * Skip the first `n` Roles.
2727
+ */
2728
+ skip?: number
2729
+ distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[]
2730
+ }
2731
+
2732
+ /**
2733
+ * Role create
2734
+ */
2735
+ export type RoleCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2736
+ /**
2737
+ * Select specific fields to fetch from the Role
2738
+ */
2739
+ select?: Prisma.RoleSelect<ExtArgs> | null
2740
+ /**
2741
+ * Omit specific fields from the Role
2742
+ */
2743
+ omit?: Prisma.RoleOmit<ExtArgs> | null
2744
+ /**
2745
+ * Choose, which related nodes to fetch as well
2746
+ */
2747
+ include?: Prisma.RoleInclude<ExtArgs> | null
2748
+ /**
2749
+ * The data needed to create a Role.
2750
+ */
2751
+ data: Prisma.XOR<Prisma.RoleCreateInput, Prisma.RoleUncheckedCreateInput>
2752
+ }
2753
+
2754
+ /**
2755
+ * Role createMany
2756
+ */
2757
+ export type RoleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2758
+ /**
2759
+ * The data used to create many Roles.
2760
+ */
2761
+ data: Prisma.RoleCreateManyInput | Prisma.RoleCreateManyInput[]
2762
+ skipDuplicates?: boolean
2763
+ }
2764
+
2765
+ /**
2766
+ * Role createManyAndReturn
2767
+ */
2768
+ export type RoleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2769
+ /**
2770
+ * Select specific fields to fetch from the Role
2771
+ */
2772
+ select?: Prisma.RoleSelectCreateManyAndReturn<ExtArgs> | null
2773
+ /**
2774
+ * Omit specific fields from the Role
2775
+ */
2776
+ omit?: Prisma.RoleOmit<ExtArgs> | null
2777
+ /**
2778
+ * The data used to create many Roles.
2779
+ */
2780
+ data: Prisma.RoleCreateManyInput | Prisma.RoleCreateManyInput[]
2781
+ skipDuplicates?: boolean
2782
+ }
2783
+
2784
+ /**
2785
+ * Role update
2786
+ */
2787
+ export type RoleUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2788
+ /**
2789
+ * Select specific fields to fetch from the Role
2790
+ */
2791
+ select?: Prisma.RoleSelect<ExtArgs> | null
2792
+ /**
2793
+ * Omit specific fields from the Role
2794
+ */
2795
+ omit?: Prisma.RoleOmit<ExtArgs> | null
2796
+ /**
2797
+ * Choose, which related nodes to fetch as well
2798
+ */
2799
+ include?: Prisma.RoleInclude<ExtArgs> | null
2800
+ /**
2801
+ * The data needed to update a Role.
2802
+ */
2803
+ data: Prisma.XOR<Prisma.RoleUpdateInput, Prisma.RoleUncheckedUpdateInput>
2804
+ /**
2805
+ * Choose, which Role to update.
2806
+ */
2807
+ where: Prisma.RoleWhereUniqueInput
2808
+ }
2809
+
2810
+ /**
2811
+ * Role updateMany
2812
+ */
2813
+ export type RoleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2814
+ /**
2815
+ * The data used to update Roles.
2816
+ */
2817
+ data: Prisma.XOR<Prisma.RoleUpdateManyMutationInput, Prisma.RoleUncheckedUpdateManyInput>
2818
+ /**
2819
+ * Filter which Roles to update
2820
+ */
2821
+ where?: Prisma.RoleWhereInput
2822
+ /**
2823
+ * Limit how many Roles to update.
2824
+ */
2825
+ limit?: number
2826
+ }
2827
+
2828
+ /**
2829
+ * Role updateManyAndReturn
2830
+ */
2831
+ export type RoleUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2832
+ /**
2833
+ * Select specific fields to fetch from the Role
2834
+ */
2835
+ select?: Prisma.RoleSelectUpdateManyAndReturn<ExtArgs> | null
2836
+ /**
2837
+ * Omit specific fields from the Role
2838
+ */
2839
+ omit?: Prisma.RoleOmit<ExtArgs> | null
2840
+ /**
2841
+ * The data used to update Roles.
2842
+ */
2843
+ data: Prisma.XOR<Prisma.RoleUpdateManyMutationInput, Prisma.RoleUncheckedUpdateManyInput>
2844
+ /**
2845
+ * Filter which Roles to update
2846
+ */
2847
+ where?: Prisma.RoleWhereInput
2848
+ /**
2849
+ * Limit how many Roles to update.
2850
+ */
2851
+ limit?: number
2852
+ }
2853
+
2854
+ /**
2855
+ * Role upsert
2856
+ */
2857
+ export type RoleUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2858
+ /**
2859
+ * Select specific fields to fetch from the Role
2860
+ */
2861
+ select?: Prisma.RoleSelect<ExtArgs> | null
2862
+ /**
2863
+ * Omit specific fields from the Role
2864
+ */
2865
+ omit?: Prisma.RoleOmit<ExtArgs> | null
2866
+ /**
2867
+ * Choose, which related nodes to fetch as well
2868
+ */
2869
+ include?: Prisma.RoleInclude<ExtArgs> | null
2870
+ /**
2871
+ * The filter to search for the Role to update in case it exists.
2872
+ */
2873
+ where: Prisma.RoleWhereUniqueInput
2874
+ /**
2875
+ * In case the Role found by the `where` argument doesn't exist, create a new Role with this data.
2876
+ */
2877
+ create: Prisma.XOR<Prisma.RoleCreateInput, Prisma.RoleUncheckedCreateInput>
2878
+ /**
2879
+ * In case the Role was found with the provided `where` argument, update it with this data.
2880
+ */
2881
+ update: Prisma.XOR<Prisma.RoleUpdateInput, Prisma.RoleUncheckedUpdateInput>
2882
+ }
2883
+
2884
+ /**
2885
+ * Role delete
2886
+ */
2887
+ export type RoleDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2888
+ /**
2889
+ * Select specific fields to fetch from the Role
2890
+ */
2891
+ select?: Prisma.RoleSelect<ExtArgs> | null
2892
+ /**
2893
+ * Omit specific fields from the Role
2894
+ */
2895
+ omit?: Prisma.RoleOmit<ExtArgs> | null
2896
+ /**
2897
+ * Choose, which related nodes to fetch as well
2898
+ */
2899
+ include?: Prisma.RoleInclude<ExtArgs> | null
2900
+ /**
2901
+ * Filter which Role to delete.
2902
+ */
2903
+ where: Prisma.RoleWhereUniqueInput
2904
+ }
2905
+
2906
+ /**
2907
+ * Role deleteMany
2908
+ */
2909
+ export type RoleDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2910
+ /**
2911
+ * Filter which Roles to delete
2912
+ */
2913
+ where?: Prisma.RoleWhereInput
2914
+ /**
2915
+ * Limit how many Roles to delete.
2916
+ */
2917
+ limit?: number
2918
+ }
2919
+
2920
+ /**
2921
+ * Role.User
2922
+ */
2923
+ export type Role$UserArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2924
+ /**
2925
+ * Select specific fields to fetch from the User
2926
+ */
2927
+ select?: Prisma.UserSelect<ExtArgs> | null
2928
+ /**
2929
+ * Omit specific fields from the User
2930
+ */
2931
+ omit?: Prisma.UserOmit<ExtArgs> | null
2932
+ /**
2933
+ * Choose, which related nodes to fetch as well
2934
+ */
2935
+ include?: Prisma.UserInclude<ExtArgs> | null
2936
+ where?: Prisma.UserWhereInput
2937
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
2938
+ cursor?: Prisma.UserWhereUniqueInput
2939
+ take?: number
2940
+ skip?: number
2941
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
2942
+ }
2943
+
2944
+ /**
2945
+ * Role without action
2946
+ */
2947
+ export type RoleDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2948
+ /**
2949
+ * Select specific fields to fetch from the Role
2950
+ */
2951
+ select?: Prisma.RoleSelect<ExtArgs> | null
2952
+ /**
2953
+ * Omit specific fields from the Role
2954
+ */
2955
+ omit?: Prisma.RoleOmit<ExtArgs> | null
2956
+ /**
2957
+ * Choose, which related nodes to fetch as well
2958
+ */
2959
+ include?: Prisma.RoleInclude<ExtArgs> | null
2960
+ }