efiber-prisma-schema 1.16.2 → 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 (123) 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/schema.prisma +2 -2
  121. package/prisma/seed.ts +33 -0
  122. package/prisma.config.ts +13 -0
  123. package/tsconfig.json +13 -0
@@ -0,0 +1,1687 @@
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 `WorkOrderComments` 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 WorkOrderComments
17
+ *
18
+ */
19
+ export type WorkOrderCommentsModel = runtime.Types.Result.DefaultSelection<Prisma.$WorkOrderCommentsPayload>
20
+
21
+ export type AggregateWorkOrderComments = {
22
+ _count: WorkOrderCommentsCountAggregateOutputType | null
23
+ _avg: WorkOrderCommentsAvgAggregateOutputType | null
24
+ _sum: WorkOrderCommentsSumAggregateOutputType | null
25
+ _min: WorkOrderCommentsMinAggregateOutputType | null
26
+ _max: WorkOrderCommentsMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type WorkOrderCommentsAvgAggregateOutputType = {
30
+ no: number | null
31
+ }
32
+
33
+ export type WorkOrderCommentsSumAggregateOutputType = {
34
+ no: number | null
35
+ }
36
+
37
+ export type WorkOrderCommentsMinAggregateOutputType = {
38
+ id: string | null
39
+ no: number | null
40
+ comment: string | null
41
+ hasAttachment: boolean | null
42
+ attachment: string | null
43
+ createdAt: Date | null
44
+ updatedAt: Date | null
45
+ workOrderId: string | null
46
+ createdById: string | null
47
+ }
48
+
49
+ export type WorkOrderCommentsMaxAggregateOutputType = {
50
+ id: string | null
51
+ no: number | null
52
+ comment: string | null
53
+ hasAttachment: boolean | null
54
+ attachment: string | null
55
+ createdAt: Date | null
56
+ updatedAt: Date | null
57
+ workOrderId: string | null
58
+ createdById: string | null
59
+ }
60
+
61
+ export type WorkOrderCommentsCountAggregateOutputType = {
62
+ id: number
63
+ no: number
64
+ comment: number
65
+ hasAttachment: number
66
+ attachment: number
67
+ createdAt: number
68
+ updatedAt: number
69
+ workOrderId: number
70
+ createdById: number
71
+ _all: number
72
+ }
73
+
74
+
75
+ export type WorkOrderCommentsAvgAggregateInputType = {
76
+ no?: true
77
+ }
78
+
79
+ export type WorkOrderCommentsSumAggregateInputType = {
80
+ no?: true
81
+ }
82
+
83
+ export type WorkOrderCommentsMinAggregateInputType = {
84
+ id?: true
85
+ no?: true
86
+ comment?: true
87
+ hasAttachment?: true
88
+ attachment?: true
89
+ createdAt?: true
90
+ updatedAt?: true
91
+ workOrderId?: true
92
+ createdById?: true
93
+ }
94
+
95
+ export type WorkOrderCommentsMaxAggregateInputType = {
96
+ id?: true
97
+ no?: true
98
+ comment?: true
99
+ hasAttachment?: true
100
+ attachment?: true
101
+ createdAt?: true
102
+ updatedAt?: true
103
+ workOrderId?: true
104
+ createdById?: true
105
+ }
106
+
107
+ export type WorkOrderCommentsCountAggregateInputType = {
108
+ id?: true
109
+ no?: true
110
+ comment?: true
111
+ hasAttachment?: true
112
+ attachment?: true
113
+ createdAt?: true
114
+ updatedAt?: true
115
+ workOrderId?: true
116
+ createdById?: true
117
+ _all?: true
118
+ }
119
+
120
+ export type WorkOrderCommentsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
121
+ /**
122
+ * Filter which WorkOrderComments to aggregate.
123
+ */
124
+ where?: Prisma.WorkOrderCommentsWhereInput
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
127
+ *
128
+ * Determine the order of WorkOrderComments to fetch.
129
+ */
130
+ orderBy?: Prisma.WorkOrderCommentsOrderByWithRelationInput | Prisma.WorkOrderCommentsOrderByWithRelationInput[]
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
133
+ *
134
+ * Sets the start position
135
+ */
136
+ cursor?: Prisma.WorkOrderCommentsWhereUniqueInput
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
139
+ *
140
+ * Take `±n` WorkOrderComments from the position of the cursor.
141
+ */
142
+ take?: number
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
145
+ *
146
+ * Skip the first `n` WorkOrderComments.
147
+ */
148
+ skip?: number
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
151
+ *
152
+ * Count returned WorkOrderComments
153
+ **/
154
+ _count?: true | WorkOrderCommentsCountAggregateInputType
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
157
+ *
158
+ * Select which fields to average
159
+ **/
160
+ _avg?: WorkOrderCommentsAvgAggregateInputType
161
+ /**
162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
163
+ *
164
+ * Select which fields to sum
165
+ **/
166
+ _sum?: WorkOrderCommentsSumAggregateInputType
167
+ /**
168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
169
+ *
170
+ * Select which fields to find the minimum value
171
+ **/
172
+ _min?: WorkOrderCommentsMinAggregateInputType
173
+ /**
174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
175
+ *
176
+ * Select which fields to find the maximum value
177
+ **/
178
+ _max?: WorkOrderCommentsMaxAggregateInputType
179
+ }
180
+
181
+ export type GetWorkOrderCommentsAggregateType<T extends WorkOrderCommentsAggregateArgs> = {
182
+ [P in keyof T & keyof AggregateWorkOrderComments]: P extends '_count' | 'count'
183
+ ? T[P] extends true
184
+ ? number
185
+ : Prisma.GetScalarType<T[P], AggregateWorkOrderComments[P]>
186
+ : Prisma.GetScalarType<T[P], AggregateWorkOrderComments[P]>
187
+ }
188
+
189
+
190
+
191
+
192
+ export type WorkOrderCommentsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
193
+ where?: Prisma.WorkOrderCommentsWhereInput
194
+ orderBy?: Prisma.WorkOrderCommentsOrderByWithAggregationInput | Prisma.WorkOrderCommentsOrderByWithAggregationInput[]
195
+ by: Prisma.WorkOrderCommentsScalarFieldEnum[] | Prisma.WorkOrderCommentsScalarFieldEnum
196
+ having?: Prisma.WorkOrderCommentsScalarWhereWithAggregatesInput
197
+ take?: number
198
+ skip?: number
199
+ _count?: WorkOrderCommentsCountAggregateInputType | true
200
+ _avg?: WorkOrderCommentsAvgAggregateInputType
201
+ _sum?: WorkOrderCommentsSumAggregateInputType
202
+ _min?: WorkOrderCommentsMinAggregateInputType
203
+ _max?: WorkOrderCommentsMaxAggregateInputType
204
+ }
205
+
206
+ export type WorkOrderCommentsGroupByOutputType = {
207
+ id: string
208
+ no: number
209
+ comment: string
210
+ hasAttachment: boolean
211
+ attachment: string | null
212
+ createdAt: Date
213
+ updatedAt: Date
214
+ workOrderId: string
215
+ createdById: string | null
216
+ _count: WorkOrderCommentsCountAggregateOutputType | null
217
+ _avg: WorkOrderCommentsAvgAggregateOutputType | null
218
+ _sum: WorkOrderCommentsSumAggregateOutputType | null
219
+ _min: WorkOrderCommentsMinAggregateOutputType | null
220
+ _max: WorkOrderCommentsMaxAggregateOutputType | null
221
+ }
222
+
223
+ type GetWorkOrderCommentsGroupByPayload<T extends WorkOrderCommentsGroupByArgs> = Prisma.PrismaPromise<
224
+ Array<
225
+ Prisma.PickEnumerable<WorkOrderCommentsGroupByOutputType, T['by']> &
226
+ {
227
+ [P in ((keyof T) & (keyof WorkOrderCommentsGroupByOutputType))]: P extends '_count'
228
+ ? T[P] extends boolean
229
+ ? number
230
+ : Prisma.GetScalarType<T[P], WorkOrderCommentsGroupByOutputType[P]>
231
+ : Prisma.GetScalarType<T[P], WorkOrderCommentsGroupByOutputType[P]>
232
+ }
233
+ >
234
+ >
235
+
236
+
237
+
238
+ export type WorkOrderCommentsWhereInput = {
239
+ AND?: Prisma.WorkOrderCommentsWhereInput | Prisma.WorkOrderCommentsWhereInput[]
240
+ OR?: Prisma.WorkOrderCommentsWhereInput[]
241
+ NOT?: Prisma.WorkOrderCommentsWhereInput | Prisma.WorkOrderCommentsWhereInput[]
242
+ id?: Prisma.StringFilter<"WorkOrderComments"> | string
243
+ no?: Prisma.IntFilter<"WorkOrderComments"> | number
244
+ comment?: Prisma.StringFilter<"WorkOrderComments"> | string
245
+ hasAttachment?: Prisma.BoolFilter<"WorkOrderComments"> | boolean
246
+ attachment?: Prisma.StringNullableFilter<"WorkOrderComments"> | string | null
247
+ createdAt?: Prisma.DateTimeFilter<"WorkOrderComments"> | Date | string
248
+ updatedAt?: Prisma.DateTimeFilter<"WorkOrderComments"> | Date | string
249
+ workOrderId?: Prisma.StringFilter<"WorkOrderComments"> | string
250
+ createdById?: Prisma.StringNullableFilter<"WorkOrderComments"> | string | null
251
+ workOrder?: Prisma.XOR<Prisma.WorkOrderScalarRelationFilter, Prisma.WorkOrderWhereInput>
252
+ createdBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
253
+ }
254
+
255
+ export type WorkOrderCommentsOrderByWithRelationInput = {
256
+ id?: Prisma.SortOrder
257
+ no?: Prisma.SortOrder
258
+ comment?: Prisma.SortOrder
259
+ hasAttachment?: Prisma.SortOrder
260
+ attachment?: Prisma.SortOrderInput | Prisma.SortOrder
261
+ createdAt?: Prisma.SortOrder
262
+ updatedAt?: Prisma.SortOrder
263
+ workOrderId?: Prisma.SortOrder
264
+ createdById?: Prisma.SortOrderInput | Prisma.SortOrder
265
+ workOrder?: Prisma.WorkOrderOrderByWithRelationInput
266
+ createdBy?: Prisma.UserOrderByWithRelationInput
267
+ }
268
+
269
+ export type WorkOrderCommentsWhereUniqueInput = Prisma.AtLeast<{
270
+ id?: string
271
+ AND?: Prisma.WorkOrderCommentsWhereInput | Prisma.WorkOrderCommentsWhereInput[]
272
+ OR?: Prisma.WorkOrderCommentsWhereInput[]
273
+ NOT?: Prisma.WorkOrderCommentsWhereInput | Prisma.WorkOrderCommentsWhereInput[]
274
+ no?: Prisma.IntFilter<"WorkOrderComments"> | number
275
+ comment?: Prisma.StringFilter<"WorkOrderComments"> | string
276
+ hasAttachment?: Prisma.BoolFilter<"WorkOrderComments"> | boolean
277
+ attachment?: Prisma.StringNullableFilter<"WorkOrderComments"> | string | null
278
+ createdAt?: Prisma.DateTimeFilter<"WorkOrderComments"> | Date | string
279
+ updatedAt?: Prisma.DateTimeFilter<"WorkOrderComments"> | Date | string
280
+ workOrderId?: Prisma.StringFilter<"WorkOrderComments"> | string
281
+ createdById?: Prisma.StringNullableFilter<"WorkOrderComments"> | string | null
282
+ workOrder?: Prisma.XOR<Prisma.WorkOrderScalarRelationFilter, Prisma.WorkOrderWhereInput>
283
+ createdBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
284
+ }, "id" | "id">
285
+
286
+ export type WorkOrderCommentsOrderByWithAggregationInput = {
287
+ id?: Prisma.SortOrder
288
+ no?: Prisma.SortOrder
289
+ comment?: Prisma.SortOrder
290
+ hasAttachment?: Prisma.SortOrder
291
+ attachment?: Prisma.SortOrderInput | Prisma.SortOrder
292
+ createdAt?: Prisma.SortOrder
293
+ updatedAt?: Prisma.SortOrder
294
+ workOrderId?: Prisma.SortOrder
295
+ createdById?: Prisma.SortOrderInput | Prisma.SortOrder
296
+ _count?: Prisma.WorkOrderCommentsCountOrderByAggregateInput
297
+ _avg?: Prisma.WorkOrderCommentsAvgOrderByAggregateInput
298
+ _max?: Prisma.WorkOrderCommentsMaxOrderByAggregateInput
299
+ _min?: Prisma.WorkOrderCommentsMinOrderByAggregateInput
300
+ _sum?: Prisma.WorkOrderCommentsSumOrderByAggregateInput
301
+ }
302
+
303
+ export type WorkOrderCommentsScalarWhereWithAggregatesInput = {
304
+ AND?: Prisma.WorkOrderCommentsScalarWhereWithAggregatesInput | Prisma.WorkOrderCommentsScalarWhereWithAggregatesInput[]
305
+ OR?: Prisma.WorkOrderCommentsScalarWhereWithAggregatesInput[]
306
+ NOT?: Prisma.WorkOrderCommentsScalarWhereWithAggregatesInput | Prisma.WorkOrderCommentsScalarWhereWithAggregatesInput[]
307
+ id?: Prisma.StringWithAggregatesFilter<"WorkOrderComments"> | string
308
+ no?: Prisma.IntWithAggregatesFilter<"WorkOrderComments"> | number
309
+ comment?: Prisma.StringWithAggregatesFilter<"WorkOrderComments"> | string
310
+ hasAttachment?: Prisma.BoolWithAggregatesFilter<"WorkOrderComments"> | boolean
311
+ attachment?: Prisma.StringNullableWithAggregatesFilter<"WorkOrderComments"> | string | null
312
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"WorkOrderComments"> | Date | string
313
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"WorkOrderComments"> | Date | string
314
+ workOrderId?: Prisma.StringWithAggregatesFilter<"WorkOrderComments"> | string
315
+ createdById?: Prisma.StringNullableWithAggregatesFilter<"WorkOrderComments"> | string | null
316
+ }
317
+
318
+ export type WorkOrderCommentsCreateInput = {
319
+ id?: string
320
+ no?: number
321
+ comment: string
322
+ hasAttachment?: boolean
323
+ attachment?: string | null
324
+ createdAt?: Date | string
325
+ updatedAt?: Date | string
326
+ workOrder: Prisma.WorkOrderCreateNestedOneWithoutWorkOrderCommentsInput
327
+ createdBy?: Prisma.UserCreateNestedOneWithoutWorkOrderCommentsInput
328
+ }
329
+
330
+ export type WorkOrderCommentsUncheckedCreateInput = {
331
+ id?: string
332
+ no?: number
333
+ comment: string
334
+ hasAttachment?: boolean
335
+ attachment?: string | null
336
+ createdAt?: Date | string
337
+ updatedAt?: Date | string
338
+ workOrderId: string
339
+ createdById?: string | null
340
+ }
341
+
342
+ export type WorkOrderCommentsUpdateInput = {
343
+ id?: Prisma.StringFieldUpdateOperationsInput | string
344
+ no?: Prisma.IntFieldUpdateOperationsInput | number
345
+ comment?: Prisma.StringFieldUpdateOperationsInput | string
346
+ hasAttachment?: Prisma.BoolFieldUpdateOperationsInput | boolean
347
+ attachment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
348
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
349
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
350
+ workOrder?: Prisma.WorkOrderUpdateOneRequiredWithoutWorkOrderCommentsNestedInput
351
+ createdBy?: Prisma.UserUpdateOneWithoutWorkOrderCommentsNestedInput
352
+ }
353
+
354
+ export type WorkOrderCommentsUncheckedUpdateInput = {
355
+ id?: Prisma.StringFieldUpdateOperationsInput | string
356
+ no?: Prisma.IntFieldUpdateOperationsInput | number
357
+ comment?: Prisma.StringFieldUpdateOperationsInput | string
358
+ hasAttachment?: Prisma.BoolFieldUpdateOperationsInput | boolean
359
+ attachment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
360
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
361
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
362
+ workOrderId?: Prisma.StringFieldUpdateOperationsInput | string
363
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
364
+ }
365
+
366
+ export type WorkOrderCommentsCreateManyInput = {
367
+ id?: string
368
+ no?: number
369
+ comment: string
370
+ hasAttachment?: boolean
371
+ attachment?: string | null
372
+ createdAt?: Date | string
373
+ updatedAt?: Date | string
374
+ workOrderId: string
375
+ createdById?: string | null
376
+ }
377
+
378
+ export type WorkOrderCommentsUpdateManyMutationInput = {
379
+ id?: Prisma.StringFieldUpdateOperationsInput | string
380
+ no?: Prisma.IntFieldUpdateOperationsInput | number
381
+ comment?: Prisma.StringFieldUpdateOperationsInput | string
382
+ hasAttachment?: Prisma.BoolFieldUpdateOperationsInput | boolean
383
+ attachment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
384
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
385
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
386
+ }
387
+
388
+ export type WorkOrderCommentsUncheckedUpdateManyInput = {
389
+ id?: Prisma.StringFieldUpdateOperationsInput | string
390
+ no?: Prisma.IntFieldUpdateOperationsInput | number
391
+ comment?: Prisma.StringFieldUpdateOperationsInput | string
392
+ hasAttachment?: Prisma.BoolFieldUpdateOperationsInput | boolean
393
+ attachment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
394
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
395
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
396
+ workOrderId?: Prisma.StringFieldUpdateOperationsInput | string
397
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
398
+ }
399
+
400
+ export type WorkOrderCommentsListRelationFilter = {
401
+ every?: Prisma.WorkOrderCommentsWhereInput
402
+ some?: Prisma.WorkOrderCommentsWhereInput
403
+ none?: Prisma.WorkOrderCommentsWhereInput
404
+ }
405
+
406
+ export type WorkOrderCommentsOrderByRelationAggregateInput = {
407
+ _count?: Prisma.SortOrder
408
+ }
409
+
410
+ export type WorkOrderCommentsCountOrderByAggregateInput = {
411
+ id?: Prisma.SortOrder
412
+ no?: Prisma.SortOrder
413
+ comment?: Prisma.SortOrder
414
+ hasAttachment?: Prisma.SortOrder
415
+ attachment?: Prisma.SortOrder
416
+ createdAt?: Prisma.SortOrder
417
+ updatedAt?: Prisma.SortOrder
418
+ workOrderId?: Prisma.SortOrder
419
+ createdById?: Prisma.SortOrder
420
+ }
421
+
422
+ export type WorkOrderCommentsAvgOrderByAggregateInput = {
423
+ no?: Prisma.SortOrder
424
+ }
425
+
426
+ export type WorkOrderCommentsMaxOrderByAggregateInput = {
427
+ id?: Prisma.SortOrder
428
+ no?: Prisma.SortOrder
429
+ comment?: Prisma.SortOrder
430
+ hasAttachment?: Prisma.SortOrder
431
+ attachment?: Prisma.SortOrder
432
+ createdAt?: Prisma.SortOrder
433
+ updatedAt?: Prisma.SortOrder
434
+ workOrderId?: Prisma.SortOrder
435
+ createdById?: Prisma.SortOrder
436
+ }
437
+
438
+ export type WorkOrderCommentsMinOrderByAggregateInput = {
439
+ id?: Prisma.SortOrder
440
+ no?: Prisma.SortOrder
441
+ comment?: Prisma.SortOrder
442
+ hasAttachment?: Prisma.SortOrder
443
+ attachment?: Prisma.SortOrder
444
+ createdAt?: Prisma.SortOrder
445
+ updatedAt?: Prisma.SortOrder
446
+ workOrderId?: Prisma.SortOrder
447
+ createdById?: Prisma.SortOrder
448
+ }
449
+
450
+ export type WorkOrderCommentsSumOrderByAggregateInput = {
451
+ no?: Prisma.SortOrder
452
+ }
453
+
454
+ export type WorkOrderCommentsCreateNestedManyWithoutCreatedByInput = {
455
+ create?: Prisma.XOR<Prisma.WorkOrderCommentsCreateWithoutCreatedByInput, Prisma.WorkOrderCommentsUncheckedCreateWithoutCreatedByInput> | Prisma.WorkOrderCommentsCreateWithoutCreatedByInput[] | Prisma.WorkOrderCommentsUncheckedCreateWithoutCreatedByInput[]
456
+ connectOrCreate?: Prisma.WorkOrderCommentsCreateOrConnectWithoutCreatedByInput | Prisma.WorkOrderCommentsCreateOrConnectWithoutCreatedByInput[]
457
+ createMany?: Prisma.WorkOrderCommentsCreateManyCreatedByInputEnvelope
458
+ connect?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
459
+ }
460
+
461
+ export type WorkOrderCommentsUncheckedCreateNestedManyWithoutCreatedByInput = {
462
+ create?: Prisma.XOR<Prisma.WorkOrderCommentsCreateWithoutCreatedByInput, Prisma.WorkOrderCommentsUncheckedCreateWithoutCreatedByInput> | Prisma.WorkOrderCommentsCreateWithoutCreatedByInput[] | Prisma.WorkOrderCommentsUncheckedCreateWithoutCreatedByInput[]
463
+ connectOrCreate?: Prisma.WorkOrderCommentsCreateOrConnectWithoutCreatedByInput | Prisma.WorkOrderCommentsCreateOrConnectWithoutCreatedByInput[]
464
+ createMany?: Prisma.WorkOrderCommentsCreateManyCreatedByInputEnvelope
465
+ connect?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
466
+ }
467
+
468
+ export type WorkOrderCommentsUpdateManyWithoutCreatedByNestedInput = {
469
+ create?: Prisma.XOR<Prisma.WorkOrderCommentsCreateWithoutCreatedByInput, Prisma.WorkOrderCommentsUncheckedCreateWithoutCreatedByInput> | Prisma.WorkOrderCommentsCreateWithoutCreatedByInput[] | Prisma.WorkOrderCommentsUncheckedCreateWithoutCreatedByInput[]
470
+ connectOrCreate?: Prisma.WorkOrderCommentsCreateOrConnectWithoutCreatedByInput | Prisma.WorkOrderCommentsCreateOrConnectWithoutCreatedByInput[]
471
+ upsert?: Prisma.WorkOrderCommentsUpsertWithWhereUniqueWithoutCreatedByInput | Prisma.WorkOrderCommentsUpsertWithWhereUniqueWithoutCreatedByInput[]
472
+ createMany?: Prisma.WorkOrderCommentsCreateManyCreatedByInputEnvelope
473
+ set?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
474
+ disconnect?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
475
+ delete?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
476
+ connect?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
477
+ update?: Prisma.WorkOrderCommentsUpdateWithWhereUniqueWithoutCreatedByInput | Prisma.WorkOrderCommentsUpdateWithWhereUniqueWithoutCreatedByInput[]
478
+ updateMany?: Prisma.WorkOrderCommentsUpdateManyWithWhereWithoutCreatedByInput | Prisma.WorkOrderCommentsUpdateManyWithWhereWithoutCreatedByInput[]
479
+ deleteMany?: Prisma.WorkOrderCommentsScalarWhereInput | Prisma.WorkOrderCommentsScalarWhereInput[]
480
+ }
481
+
482
+ export type WorkOrderCommentsUncheckedUpdateManyWithoutCreatedByNestedInput = {
483
+ create?: Prisma.XOR<Prisma.WorkOrderCommentsCreateWithoutCreatedByInput, Prisma.WorkOrderCommentsUncheckedCreateWithoutCreatedByInput> | Prisma.WorkOrderCommentsCreateWithoutCreatedByInput[] | Prisma.WorkOrderCommentsUncheckedCreateWithoutCreatedByInput[]
484
+ connectOrCreate?: Prisma.WorkOrderCommentsCreateOrConnectWithoutCreatedByInput | Prisma.WorkOrderCommentsCreateOrConnectWithoutCreatedByInput[]
485
+ upsert?: Prisma.WorkOrderCommentsUpsertWithWhereUniqueWithoutCreatedByInput | Prisma.WorkOrderCommentsUpsertWithWhereUniqueWithoutCreatedByInput[]
486
+ createMany?: Prisma.WorkOrderCommentsCreateManyCreatedByInputEnvelope
487
+ set?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
488
+ disconnect?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
489
+ delete?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
490
+ connect?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
491
+ update?: Prisma.WorkOrderCommentsUpdateWithWhereUniqueWithoutCreatedByInput | Prisma.WorkOrderCommentsUpdateWithWhereUniqueWithoutCreatedByInput[]
492
+ updateMany?: Prisma.WorkOrderCommentsUpdateManyWithWhereWithoutCreatedByInput | Prisma.WorkOrderCommentsUpdateManyWithWhereWithoutCreatedByInput[]
493
+ deleteMany?: Prisma.WorkOrderCommentsScalarWhereInput | Prisma.WorkOrderCommentsScalarWhereInput[]
494
+ }
495
+
496
+ export type WorkOrderCommentsCreateNestedManyWithoutWorkOrderInput = {
497
+ create?: Prisma.XOR<Prisma.WorkOrderCommentsCreateWithoutWorkOrderInput, Prisma.WorkOrderCommentsUncheckedCreateWithoutWorkOrderInput> | Prisma.WorkOrderCommentsCreateWithoutWorkOrderInput[] | Prisma.WorkOrderCommentsUncheckedCreateWithoutWorkOrderInput[]
498
+ connectOrCreate?: Prisma.WorkOrderCommentsCreateOrConnectWithoutWorkOrderInput | Prisma.WorkOrderCommentsCreateOrConnectWithoutWorkOrderInput[]
499
+ createMany?: Prisma.WorkOrderCommentsCreateManyWorkOrderInputEnvelope
500
+ connect?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
501
+ }
502
+
503
+ export type WorkOrderCommentsUncheckedCreateNestedManyWithoutWorkOrderInput = {
504
+ create?: Prisma.XOR<Prisma.WorkOrderCommentsCreateWithoutWorkOrderInput, Prisma.WorkOrderCommentsUncheckedCreateWithoutWorkOrderInput> | Prisma.WorkOrderCommentsCreateWithoutWorkOrderInput[] | Prisma.WorkOrderCommentsUncheckedCreateWithoutWorkOrderInput[]
505
+ connectOrCreate?: Prisma.WorkOrderCommentsCreateOrConnectWithoutWorkOrderInput | Prisma.WorkOrderCommentsCreateOrConnectWithoutWorkOrderInput[]
506
+ createMany?: Prisma.WorkOrderCommentsCreateManyWorkOrderInputEnvelope
507
+ connect?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
508
+ }
509
+
510
+ export type WorkOrderCommentsUpdateManyWithoutWorkOrderNestedInput = {
511
+ create?: Prisma.XOR<Prisma.WorkOrderCommentsCreateWithoutWorkOrderInput, Prisma.WorkOrderCommentsUncheckedCreateWithoutWorkOrderInput> | Prisma.WorkOrderCommentsCreateWithoutWorkOrderInput[] | Prisma.WorkOrderCommentsUncheckedCreateWithoutWorkOrderInput[]
512
+ connectOrCreate?: Prisma.WorkOrderCommentsCreateOrConnectWithoutWorkOrderInput | Prisma.WorkOrderCommentsCreateOrConnectWithoutWorkOrderInput[]
513
+ upsert?: Prisma.WorkOrderCommentsUpsertWithWhereUniqueWithoutWorkOrderInput | Prisma.WorkOrderCommentsUpsertWithWhereUniqueWithoutWorkOrderInput[]
514
+ createMany?: Prisma.WorkOrderCommentsCreateManyWorkOrderInputEnvelope
515
+ set?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
516
+ disconnect?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
517
+ delete?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
518
+ connect?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
519
+ update?: Prisma.WorkOrderCommentsUpdateWithWhereUniqueWithoutWorkOrderInput | Prisma.WorkOrderCommentsUpdateWithWhereUniqueWithoutWorkOrderInput[]
520
+ updateMany?: Prisma.WorkOrderCommentsUpdateManyWithWhereWithoutWorkOrderInput | Prisma.WorkOrderCommentsUpdateManyWithWhereWithoutWorkOrderInput[]
521
+ deleteMany?: Prisma.WorkOrderCommentsScalarWhereInput | Prisma.WorkOrderCommentsScalarWhereInput[]
522
+ }
523
+
524
+ export type WorkOrderCommentsUncheckedUpdateManyWithoutWorkOrderNestedInput = {
525
+ create?: Prisma.XOR<Prisma.WorkOrderCommentsCreateWithoutWorkOrderInput, Prisma.WorkOrderCommentsUncheckedCreateWithoutWorkOrderInput> | Prisma.WorkOrderCommentsCreateWithoutWorkOrderInput[] | Prisma.WorkOrderCommentsUncheckedCreateWithoutWorkOrderInput[]
526
+ connectOrCreate?: Prisma.WorkOrderCommentsCreateOrConnectWithoutWorkOrderInput | Prisma.WorkOrderCommentsCreateOrConnectWithoutWorkOrderInput[]
527
+ upsert?: Prisma.WorkOrderCommentsUpsertWithWhereUniqueWithoutWorkOrderInput | Prisma.WorkOrderCommentsUpsertWithWhereUniqueWithoutWorkOrderInput[]
528
+ createMany?: Prisma.WorkOrderCommentsCreateManyWorkOrderInputEnvelope
529
+ set?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
530
+ disconnect?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
531
+ delete?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
532
+ connect?: Prisma.WorkOrderCommentsWhereUniqueInput | Prisma.WorkOrderCommentsWhereUniqueInput[]
533
+ update?: Prisma.WorkOrderCommentsUpdateWithWhereUniqueWithoutWorkOrderInput | Prisma.WorkOrderCommentsUpdateWithWhereUniqueWithoutWorkOrderInput[]
534
+ updateMany?: Prisma.WorkOrderCommentsUpdateManyWithWhereWithoutWorkOrderInput | Prisma.WorkOrderCommentsUpdateManyWithWhereWithoutWorkOrderInput[]
535
+ deleteMany?: Prisma.WorkOrderCommentsScalarWhereInput | Prisma.WorkOrderCommentsScalarWhereInput[]
536
+ }
537
+
538
+ export type WorkOrderCommentsCreateWithoutCreatedByInput = {
539
+ id?: string
540
+ no?: number
541
+ comment: string
542
+ hasAttachment?: boolean
543
+ attachment?: string | null
544
+ createdAt?: Date | string
545
+ updatedAt?: Date | string
546
+ workOrder: Prisma.WorkOrderCreateNestedOneWithoutWorkOrderCommentsInput
547
+ }
548
+
549
+ export type WorkOrderCommentsUncheckedCreateWithoutCreatedByInput = {
550
+ id?: string
551
+ no?: number
552
+ comment: string
553
+ hasAttachment?: boolean
554
+ attachment?: string | null
555
+ createdAt?: Date | string
556
+ updatedAt?: Date | string
557
+ workOrderId: string
558
+ }
559
+
560
+ export type WorkOrderCommentsCreateOrConnectWithoutCreatedByInput = {
561
+ where: Prisma.WorkOrderCommentsWhereUniqueInput
562
+ create: Prisma.XOR<Prisma.WorkOrderCommentsCreateWithoutCreatedByInput, Prisma.WorkOrderCommentsUncheckedCreateWithoutCreatedByInput>
563
+ }
564
+
565
+ export type WorkOrderCommentsCreateManyCreatedByInputEnvelope = {
566
+ data: Prisma.WorkOrderCommentsCreateManyCreatedByInput | Prisma.WorkOrderCommentsCreateManyCreatedByInput[]
567
+ skipDuplicates?: boolean
568
+ }
569
+
570
+ export type WorkOrderCommentsUpsertWithWhereUniqueWithoutCreatedByInput = {
571
+ where: Prisma.WorkOrderCommentsWhereUniqueInput
572
+ update: Prisma.XOR<Prisma.WorkOrderCommentsUpdateWithoutCreatedByInput, Prisma.WorkOrderCommentsUncheckedUpdateWithoutCreatedByInput>
573
+ create: Prisma.XOR<Prisma.WorkOrderCommentsCreateWithoutCreatedByInput, Prisma.WorkOrderCommentsUncheckedCreateWithoutCreatedByInput>
574
+ }
575
+
576
+ export type WorkOrderCommentsUpdateWithWhereUniqueWithoutCreatedByInput = {
577
+ where: Prisma.WorkOrderCommentsWhereUniqueInput
578
+ data: Prisma.XOR<Prisma.WorkOrderCommentsUpdateWithoutCreatedByInput, Prisma.WorkOrderCommentsUncheckedUpdateWithoutCreatedByInput>
579
+ }
580
+
581
+ export type WorkOrderCommentsUpdateManyWithWhereWithoutCreatedByInput = {
582
+ where: Prisma.WorkOrderCommentsScalarWhereInput
583
+ data: Prisma.XOR<Prisma.WorkOrderCommentsUpdateManyMutationInput, Prisma.WorkOrderCommentsUncheckedUpdateManyWithoutCreatedByInput>
584
+ }
585
+
586
+ export type WorkOrderCommentsScalarWhereInput = {
587
+ AND?: Prisma.WorkOrderCommentsScalarWhereInput | Prisma.WorkOrderCommentsScalarWhereInput[]
588
+ OR?: Prisma.WorkOrderCommentsScalarWhereInput[]
589
+ NOT?: Prisma.WorkOrderCommentsScalarWhereInput | Prisma.WorkOrderCommentsScalarWhereInput[]
590
+ id?: Prisma.StringFilter<"WorkOrderComments"> | string
591
+ no?: Prisma.IntFilter<"WorkOrderComments"> | number
592
+ comment?: Prisma.StringFilter<"WorkOrderComments"> | string
593
+ hasAttachment?: Prisma.BoolFilter<"WorkOrderComments"> | boolean
594
+ attachment?: Prisma.StringNullableFilter<"WorkOrderComments"> | string | null
595
+ createdAt?: Prisma.DateTimeFilter<"WorkOrderComments"> | Date | string
596
+ updatedAt?: Prisma.DateTimeFilter<"WorkOrderComments"> | Date | string
597
+ workOrderId?: Prisma.StringFilter<"WorkOrderComments"> | string
598
+ createdById?: Prisma.StringNullableFilter<"WorkOrderComments"> | string | null
599
+ }
600
+
601
+ export type WorkOrderCommentsCreateWithoutWorkOrderInput = {
602
+ id?: string
603
+ no?: number
604
+ comment: string
605
+ hasAttachment?: boolean
606
+ attachment?: string | null
607
+ createdAt?: Date | string
608
+ updatedAt?: Date | string
609
+ createdBy?: Prisma.UserCreateNestedOneWithoutWorkOrderCommentsInput
610
+ }
611
+
612
+ export type WorkOrderCommentsUncheckedCreateWithoutWorkOrderInput = {
613
+ id?: string
614
+ no?: number
615
+ comment: string
616
+ hasAttachment?: boolean
617
+ attachment?: string | null
618
+ createdAt?: Date | string
619
+ updatedAt?: Date | string
620
+ createdById?: string | null
621
+ }
622
+
623
+ export type WorkOrderCommentsCreateOrConnectWithoutWorkOrderInput = {
624
+ where: Prisma.WorkOrderCommentsWhereUniqueInput
625
+ create: Prisma.XOR<Prisma.WorkOrderCommentsCreateWithoutWorkOrderInput, Prisma.WorkOrderCommentsUncheckedCreateWithoutWorkOrderInput>
626
+ }
627
+
628
+ export type WorkOrderCommentsCreateManyWorkOrderInputEnvelope = {
629
+ data: Prisma.WorkOrderCommentsCreateManyWorkOrderInput | Prisma.WorkOrderCommentsCreateManyWorkOrderInput[]
630
+ skipDuplicates?: boolean
631
+ }
632
+
633
+ export type WorkOrderCommentsUpsertWithWhereUniqueWithoutWorkOrderInput = {
634
+ where: Prisma.WorkOrderCommentsWhereUniqueInput
635
+ update: Prisma.XOR<Prisma.WorkOrderCommentsUpdateWithoutWorkOrderInput, Prisma.WorkOrderCommentsUncheckedUpdateWithoutWorkOrderInput>
636
+ create: Prisma.XOR<Prisma.WorkOrderCommentsCreateWithoutWorkOrderInput, Prisma.WorkOrderCommentsUncheckedCreateWithoutWorkOrderInput>
637
+ }
638
+
639
+ export type WorkOrderCommentsUpdateWithWhereUniqueWithoutWorkOrderInput = {
640
+ where: Prisma.WorkOrderCommentsWhereUniqueInput
641
+ data: Prisma.XOR<Prisma.WorkOrderCommentsUpdateWithoutWorkOrderInput, Prisma.WorkOrderCommentsUncheckedUpdateWithoutWorkOrderInput>
642
+ }
643
+
644
+ export type WorkOrderCommentsUpdateManyWithWhereWithoutWorkOrderInput = {
645
+ where: Prisma.WorkOrderCommentsScalarWhereInput
646
+ data: Prisma.XOR<Prisma.WorkOrderCommentsUpdateManyMutationInput, Prisma.WorkOrderCommentsUncheckedUpdateManyWithoutWorkOrderInput>
647
+ }
648
+
649
+ export type WorkOrderCommentsCreateManyCreatedByInput = {
650
+ id?: string
651
+ no?: number
652
+ comment: string
653
+ hasAttachment?: boolean
654
+ attachment?: string | null
655
+ createdAt?: Date | string
656
+ updatedAt?: Date | string
657
+ workOrderId: string
658
+ }
659
+
660
+ export type WorkOrderCommentsUpdateWithoutCreatedByInput = {
661
+ id?: Prisma.StringFieldUpdateOperationsInput | string
662
+ no?: Prisma.IntFieldUpdateOperationsInput | number
663
+ comment?: Prisma.StringFieldUpdateOperationsInput | string
664
+ hasAttachment?: Prisma.BoolFieldUpdateOperationsInput | boolean
665
+ attachment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
666
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
667
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
668
+ workOrder?: Prisma.WorkOrderUpdateOneRequiredWithoutWorkOrderCommentsNestedInput
669
+ }
670
+
671
+ export type WorkOrderCommentsUncheckedUpdateWithoutCreatedByInput = {
672
+ id?: Prisma.StringFieldUpdateOperationsInput | string
673
+ no?: Prisma.IntFieldUpdateOperationsInput | number
674
+ comment?: Prisma.StringFieldUpdateOperationsInput | string
675
+ hasAttachment?: Prisma.BoolFieldUpdateOperationsInput | boolean
676
+ attachment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
677
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
678
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
679
+ workOrderId?: Prisma.StringFieldUpdateOperationsInput | string
680
+ }
681
+
682
+ export type WorkOrderCommentsUncheckedUpdateManyWithoutCreatedByInput = {
683
+ id?: Prisma.StringFieldUpdateOperationsInput | string
684
+ no?: Prisma.IntFieldUpdateOperationsInput | number
685
+ comment?: Prisma.StringFieldUpdateOperationsInput | string
686
+ hasAttachment?: Prisma.BoolFieldUpdateOperationsInput | boolean
687
+ attachment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
688
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
689
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
690
+ workOrderId?: Prisma.StringFieldUpdateOperationsInput | string
691
+ }
692
+
693
+ export type WorkOrderCommentsCreateManyWorkOrderInput = {
694
+ id?: string
695
+ no?: number
696
+ comment: string
697
+ hasAttachment?: boolean
698
+ attachment?: string | null
699
+ createdAt?: Date | string
700
+ updatedAt?: Date | string
701
+ createdById?: string | null
702
+ }
703
+
704
+ export type WorkOrderCommentsUpdateWithoutWorkOrderInput = {
705
+ id?: Prisma.StringFieldUpdateOperationsInput | string
706
+ no?: Prisma.IntFieldUpdateOperationsInput | number
707
+ comment?: Prisma.StringFieldUpdateOperationsInput | string
708
+ hasAttachment?: Prisma.BoolFieldUpdateOperationsInput | boolean
709
+ attachment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
710
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
711
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
712
+ createdBy?: Prisma.UserUpdateOneWithoutWorkOrderCommentsNestedInput
713
+ }
714
+
715
+ export type WorkOrderCommentsUncheckedUpdateWithoutWorkOrderInput = {
716
+ id?: Prisma.StringFieldUpdateOperationsInput | string
717
+ no?: Prisma.IntFieldUpdateOperationsInput | number
718
+ comment?: Prisma.StringFieldUpdateOperationsInput | string
719
+ hasAttachment?: Prisma.BoolFieldUpdateOperationsInput | boolean
720
+ attachment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
721
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
722
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
723
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
724
+ }
725
+
726
+ export type WorkOrderCommentsUncheckedUpdateManyWithoutWorkOrderInput = {
727
+ id?: Prisma.StringFieldUpdateOperationsInput | string
728
+ no?: Prisma.IntFieldUpdateOperationsInput | number
729
+ comment?: Prisma.StringFieldUpdateOperationsInput | string
730
+ hasAttachment?: Prisma.BoolFieldUpdateOperationsInput | boolean
731
+ attachment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
732
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
733
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
734
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
735
+ }
736
+
737
+
738
+
739
+ export type WorkOrderCommentsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
740
+ id?: boolean
741
+ no?: boolean
742
+ comment?: boolean
743
+ hasAttachment?: boolean
744
+ attachment?: boolean
745
+ createdAt?: boolean
746
+ updatedAt?: boolean
747
+ workOrderId?: boolean
748
+ createdById?: boolean
749
+ workOrder?: boolean | Prisma.WorkOrderDefaultArgs<ExtArgs>
750
+ createdBy?: boolean | Prisma.WorkOrderComments$createdByArgs<ExtArgs>
751
+ }, ExtArgs["result"]["workOrderComments"]>
752
+
753
+ export type WorkOrderCommentsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
754
+ id?: boolean
755
+ no?: boolean
756
+ comment?: boolean
757
+ hasAttachment?: boolean
758
+ attachment?: boolean
759
+ createdAt?: boolean
760
+ updatedAt?: boolean
761
+ workOrderId?: boolean
762
+ createdById?: boolean
763
+ workOrder?: boolean | Prisma.WorkOrderDefaultArgs<ExtArgs>
764
+ createdBy?: boolean | Prisma.WorkOrderComments$createdByArgs<ExtArgs>
765
+ }, ExtArgs["result"]["workOrderComments"]>
766
+
767
+ export type WorkOrderCommentsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
768
+ id?: boolean
769
+ no?: boolean
770
+ comment?: boolean
771
+ hasAttachment?: boolean
772
+ attachment?: boolean
773
+ createdAt?: boolean
774
+ updatedAt?: boolean
775
+ workOrderId?: boolean
776
+ createdById?: boolean
777
+ workOrder?: boolean | Prisma.WorkOrderDefaultArgs<ExtArgs>
778
+ createdBy?: boolean | Prisma.WorkOrderComments$createdByArgs<ExtArgs>
779
+ }, ExtArgs["result"]["workOrderComments"]>
780
+
781
+ export type WorkOrderCommentsSelectScalar = {
782
+ id?: boolean
783
+ no?: boolean
784
+ comment?: boolean
785
+ hasAttachment?: boolean
786
+ attachment?: boolean
787
+ createdAt?: boolean
788
+ updatedAt?: boolean
789
+ workOrderId?: boolean
790
+ createdById?: boolean
791
+ }
792
+
793
+ export type WorkOrderCommentsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "no" | "comment" | "hasAttachment" | "attachment" | "createdAt" | "updatedAt" | "workOrderId" | "createdById", ExtArgs["result"]["workOrderComments"]>
794
+ export type WorkOrderCommentsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
795
+ workOrder?: boolean | Prisma.WorkOrderDefaultArgs<ExtArgs>
796
+ createdBy?: boolean | Prisma.WorkOrderComments$createdByArgs<ExtArgs>
797
+ }
798
+ export type WorkOrderCommentsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
799
+ workOrder?: boolean | Prisma.WorkOrderDefaultArgs<ExtArgs>
800
+ createdBy?: boolean | Prisma.WorkOrderComments$createdByArgs<ExtArgs>
801
+ }
802
+ export type WorkOrderCommentsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
803
+ workOrder?: boolean | Prisma.WorkOrderDefaultArgs<ExtArgs>
804
+ createdBy?: boolean | Prisma.WorkOrderComments$createdByArgs<ExtArgs>
805
+ }
806
+
807
+ export type $WorkOrderCommentsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
808
+ name: "WorkOrderComments"
809
+ objects: {
810
+ workOrder: Prisma.$WorkOrderPayload<ExtArgs>
811
+ createdBy: Prisma.$UserPayload<ExtArgs> | null
812
+ }
813
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
814
+ id: string
815
+ no: number
816
+ comment: string
817
+ hasAttachment: boolean
818
+ attachment: string | null
819
+ createdAt: Date
820
+ updatedAt: Date
821
+ workOrderId: string
822
+ createdById: string | null
823
+ }, ExtArgs["result"]["workOrderComments"]>
824
+ composites: {}
825
+ }
826
+
827
+ export type WorkOrderCommentsGetPayload<S extends boolean | null | undefined | WorkOrderCommentsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$WorkOrderCommentsPayload, S>
828
+
829
+ export type WorkOrderCommentsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
830
+ Omit<WorkOrderCommentsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
831
+ select?: WorkOrderCommentsCountAggregateInputType | true
832
+ }
833
+
834
+ export interface WorkOrderCommentsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
835
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['WorkOrderComments'], meta: { name: 'WorkOrderComments' } }
836
+ /**
837
+ * Find zero or one WorkOrderComments that matches the filter.
838
+ * @param {WorkOrderCommentsFindUniqueArgs} args - Arguments to find a WorkOrderComments
839
+ * @example
840
+ * // Get one WorkOrderComments
841
+ * const workOrderComments = await prisma.workOrderComments.findUnique({
842
+ * where: {
843
+ * // ... provide filter here
844
+ * }
845
+ * })
846
+ */
847
+ findUnique<T extends WorkOrderCommentsFindUniqueArgs>(args: Prisma.SelectSubset<T, WorkOrderCommentsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__WorkOrderCommentsClient<runtime.Types.Result.GetResult<Prisma.$WorkOrderCommentsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
848
+
849
+ /**
850
+ * Find one WorkOrderComments that matches the filter or throw an error with `error.code='P2025'`
851
+ * if no matches were found.
852
+ * @param {WorkOrderCommentsFindUniqueOrThrowArgs} args - Arguments to find a WorkOrderComments
853
+ * @example
854
+ * // Get one WorkOrderComments
855
+ * const workOrderComments = await prisma.workOrderComments.findUniqueOrThrow({
856
+ * where: {
857
+ * // ... provide filter here
858
+ * }
859
+ * })
860
+ */
861
+ findUniqueOrThrow<T extends WorkOrderCommentsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, WorkOrderCommentsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkOrderCommentsClient<runtime.Types.Result.GetResult<Prisma.$WorkOrderCommentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
862
+
863
+ /**
864
+ * Find the first WorkOrderComments that matches the filter.
865
+ * Note, that providing `undefined` is treated as the value not being there.
866
+ * Read more here: https://pris.ly/d/null-undefined
867
+ * @param {WorkOrderCommentsFindFirstArgs} args - Arguments to find a WorkOrderComments
868
+ * @example
869
+ * // Get one WorkOrderComments
870
+ * const workOrderComments = await prisma.workOrderComments.findFirst({
871
+ * where: {
872
+ * // ... provide filter here
873
+ * }
874
+ * })
875
+ */
876
+ findFirst<T extends WorkOrderCommentsFindFirstArgs>(args?: Prisma.SelectSubset<T, WorkOrderCommentsFindFirstArgs<ExtArgs>>): Prisma.Prisma__WorkOrderCommentsClient<runtime.Types.Result.GetResult<Prisma.$WorkOrderCommentsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
877
+
878
+ /**
879
+ * Find the first WorkOrderComments that matches the filter or
880
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
881
+ * Note, that providing `undefined` is treated as the value not being there.
882
+ * Read more here: https://pris.ly/d/null-undefined
883
+ * @param {WorkOrderCommentsFindFirstOrThrowArgs} args - Arguments to find a WorkOrderComments
884
+ * @example
885
+ * // Get one WorkOrderComments
886
+ * const workOrderComments = await prisma.workOrderComments.findFirstOrThrow({
887
+ * where: {
888
+ * // ... provide filter here
889
+ * }
890
+ * })
891
+ */
892
+ findFirstOrThrow<T extends WorkOrderCommentsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, WorkOrderCommentsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkOrderCommentsClient<runtime.Types.Result.GetResult<Prisma.$WorkOrderCommentsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
893
+
894
+ /**
895
+ * Find zero or more WorkOrderComments that matches the filter.
896
+ * Note, that providing `undefined` is treated as the value not being there.
897
+ * Read more here: https://pris.ly/d/null-undefined
898
+ * @param {WorkOrderCommentsFindManyArgs} args - Arguments to filter and select certain fields only.
899
+ * @example
900
+ * // Get all WorkOrderComments
901
+ * const workOrderComments = await prisma.workOrderComments.findMany()
902
+ *
903
+ * // Get first 10 WorkOrderComments
904
+ * const workOrderComments = await prisma.workOrderComments.findMany({ take: 10 })
905
+ *
906
+ * // Only select the `id`
907
+ * const workOrderCommentsWithIdOnly = await prisma.workOrderComments.findMany({ select: { id: true } })
908
+ *
909
+ */
910
+ findMany<T extends WorkOrderCommentsFindManyArgs>(args?: Prisma.SelectSubset<T, WorkOrderCommentsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkOrderCommentsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
911
+
912
+ /**
913
+ * Create a WorkOrderComments.
914
+ * @param {WorkOrderCommentsCreateArgs} args - Arguments to create a WorkOrderComments.
915
+ * @example
916
+ * // Create one WorkOrderComments
917
+ * const WorkOrderComments = await prisma.workOrderComments.create({
918
+ * data: {
919
+ * // ... data to create a WorkOrderComments
920
+ * }
921
+ * })
922
+ *
923
+ */
924
+ create<T extends WorkOrderCommentsCreateArgs>(args: Prisma.SelectSubset<T, WorkOrderCommentsCreateArgs<ExtArgs>>): Prisma.Prisma__WorkOrderCommentsClient<runtime.Types.Result.GetResult<Prisma.$WorkOrderCommentsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
925
+
926
+ /**
927
+ * Create many WorkOrderComments.
928
+ * @param {WorkOrderCommentsCreateManyArgs} args - Arguments to create many WorkOrderComments.
929
+ * @example
930
+ * // Create many WorkOrderComments
931
+ * const workOrderComments = await prisma.workOrderComments.createMany({
932
+ * data: [
933
+ * // ... provide data here
934
+ * ]
935
+ * })
936
+ *
937
+ */
938
+ createMany<T extends WorkOrderCommentsCreateManyArgs>(args?: Prisma.SelectSubset<T, WorkOrderCommentsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
939
+
940
+ /**
941
+ * Create many WorkOrderComments and returns the data saved in the database.
942
+ * @param {WorkOrderCommentsCreateManyAndReturnArgs} args - Arguments to create many WorkOrderComments.
943
+ * @example
944
+ * // Create many WorkOrderComments
945
+ * const workOrderComments = await prisma.workOrderComments.createManyAndReturn({
946
+ * data: [
947
+ * // ... provide data here
948
+ * ]
949
+ * })
950
+ *
951
+ * // Create many WorkOrderComments and only return the `id`
952
+ * const workOrderCommentsWithIdOnly = await prisma.workOrderComments.createManyAndReturn({
953
+ * select: { id: true },
954
+ * data: [
955
+ * // ... provide data here
956
+ * ]
957
+ * })
958
+ * Note, that providing `undefined` is treated as the value not being there.
959
+ * Read more here: https://pris.ly/d/null-undefined
960
+ *
961
+ */
962
+ createManyAndReturn<T extends WorkOrderCommentsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, WorkOrderCommentsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkOrderCommentsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
963
+
964
+ /**
965
+ * Delete a WorkOrderComments.
966
+ * @param {WorkOrderCommentsDeleteArgs} args - Arguments to delete one WorkOrderComments.
967
+ * @example
968
+ * // Delete one WorkOrderComments
969
+ * const WorkOrderComments = await prisma.workOrderComments.delete({
970
+ * where: {
971
+ * // ... filter to delete one WorkOrderComments
972
+ * }
973
+ * })
974
+ *
975
+ */
976
+ delete<T extends WorkOrderCommentsDeleteArgs>(args: Prisma.SelectSubset<T, WorkOrderCommentsDeleteArgs<ExtArgs>>): Prisma.Prisma__WorkOrderCommentsClient<runtime.Types.Result.GetResult<Prisma.$WorkOrderCommentsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
977
+
978
+ /**
979
+ * Update one WorkOrderComments.
980
+ * @param {WorkOrderCommentsUpdateArgs} args - Arguments to update one WorkOrderComments.
981
+ * @example
982
+ * // Update one WorkOrderComments
983
+ * const workOrderComments = await prisma.workOrderComments.update({
984
+ * where: {
985
+ * // ... provide filter here
986
+ * },
987
+ * data: {
988
+ * // ... provide data here
989
+ * }
990
+ * })
991
+ *
992
+ */
993
+ update<T extends WorkOrderCommentsUpdateArgs>(args: Prisma.SelectSubset<T, WorkOrderCommentsUpdateArgs<ExtArgs>>): Prisma.Prisma__WorkOrderCommentsClient<runtime.Types.Result.GetResult<Prisma.$WorkOrderCommentsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
994
+
995
+ /**
996
+ * Delete zero or more WorkOrderComments.
997
+ * @param {WorkOrderCommentsDeleteManyArgs} args - Arguments to filter WorkOrderComments to delete.
998
+ * @example
999
+ * // Delete a few WorkOrderComments
1000
+ * const { count } = await prisma.workOrderComments.deleteMany({
1001
+ * where: {
1002
+ * // ... provide filter here
1003
+ * }
1004
+ * })
1005
+ *
1006
+ */
1007
+ deleteMany<T extends WorkOrderCommentsDeleteManyArgs>(args?: Prisma.SelectSubset<T, WorkOrderCommentsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1008
+
1009
+ /**
1010
+ * Update zero or more WorkOrderComments.
1011
+ * Note, that providing `undefined` is treated as the value not being there.
1012
+ * Read more here: https://pris.ly/d/null-undefined
1013
+ * @param {WorkOrderCommentsUpdateManyArgs} args - Arguments to update one or more rows.
1014
+ * @example
1015
+ * // Update many WorkOrderComments
1016
+ * const workOrderComments = await prisma.workOrderComments.updateMany({
1017
+ * where: {
1018
+ * // ... provide filter here
1019
+ * },
1020
+ * data: {
1021
+ * // ... provide data here
1022
+ * }
1023
+ * })
1024
+ *
1025
+ */
1026
+ updateMany<T extends WorkOrderCommentsUpdateManyArgs>(args: Prisma.SelectSubset<T, WorkOrderCommentsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1027
+
1028
+ /**
1029
+ * Update zero or more WorkOrderComments and returns the data updated in the database.
1030
+ * @param {WorkOrderCommentsUpdateManyAndReturnArgs} args - Arguments to update many WorkOrderComments.
1031
+ * @example
1032
+ * // Update many WorkOrderComments
1033
+ * const workOrderComments = await prisma.workOrderComments.updateManyAndReturn({
1034
+ * where: {
1035
+ * // ... provide filter here
1036
+ * },
1037
+ * data: [
1038
+ * // ... provide data here
1039
+ * ]
1040
+ * })
1041
+ *
1042
+ * // Update zero or more WorkOrderComments and only return the `id`
1043
+ * const workOrderCommentsWithIdOnly = await prisma.workOrderComments.updateManyAndReturn({
1044
+ * select: { id: true },
1045
+ * where: {
1046
+ * // ... provide filter here
1047
+ * },
1048
+ * data: [
1049
+ * // ... provide data here
1050
+ * ]
1051
+ * })
1052
+ * Note, that providing `undefined` is treated as the value not being there.
1053
+ * Read more here: https://pris.ly/d/null-undefined
1054
+ *
1055
+ */
1056
+ updateManyAndReturn<T extends WorkOrderCommentsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, WorkOrderCommentsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkOrderCommentsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1057
+
1058
+ /**
1059
+ * Create or update one WorkOrderComments.
1060
+ * @param {WorkOrderCommentsUpsertArgs} args - Arguments to update or create a WorkOrderComments.
1061
+ * @example
1062
+ * // Update or create a WorkOrderComments
1063
+ * const workOrderComments = await prisma.workOrderComments.upsert({
1064
+ * create: {
1065
+ * // ... data to create a WorkOrderComments
1066
+ * },
1067
+ * update: {
1068
+ * // ... in case it already exists, update
1069
+ * },
1070
+ * where: {
1071
+ * // ... the filter for the WorkOrderComments we want to update
1072
+ * }
1073
+ * })
1074
+ */
1075
+ upsert<T extends WorkOrderCommentsUpsertArgs>(args: Prisma.SelectSubset<T, WorkOrderCommentsUpsertArgs<ExtArgs>>): Prisma.Prisma__WorkOrderCommentsClient<runtime.Types.Result.GetResult<Prisma.$WorkOrderCommentsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1076
+
1077
+
1078
+ /**
1079
+ * Count the number of WorkOrderComments.
1080
+ * Note, that providing `undefined` is treated as the value not being there.
1081
+ * Read more here: https://pris.ly/d/null-undefined
1082
+ * @param {WorkOrderCommentsCountArgs} args - Arguments to filter WorkOrderComments to count.
1083
+ * @example
1084
+ * // Count the number of WorkOrderComments
1085
+ * const count = await prisma.workOrderComments.count({
1086
+ * where: {
1087
+ * // ... the filter for the WorkOrderComments we want to count
1088
+ * }
1089
+ * })
1090
+ **/
1091
+ count<T extends WorkOrderCommentsCountArgs>(
1092
+ args?: Prisma.Subset<T, WorkOrderCommentsCountArgs>,
1093
+ ): Prisma.PrismaPromise<
1094
+ T extends runtime.Types.Utils.Record<'select', any>
1095
+ ? T['select'] extends true
1096
+ ? number
1097
+ : Prisma.GetScalarType<T['select'], WorkOrderCommentsCountAggregateOutputType>
1098
+ : number
1099
+ >
1100
+
1101
+ /**
1102
+ * Allows you to perform aggregations operations on a WorkOrderComments.
1103
+ * Note, that providing `undefined` is treated as the value not being there.
1104
+ * Read more here: https://pris.ly/d/null-undefined
1105
+ * @param {WorkOrderCommentsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1106
+ * @example
1107
+ * // Ordered by age ascending
1108
+ * // Where email contains prisma.io
1109
+ * // Limited to the 10 users
1110
+ * const aggregations = await prisma.user.aggregate({
1111
+ * _avg: {
1112
+ * age: true,
1113
+ * },
1114
+ * where: {
1115
+ * email: {
1116
+ * contains: "prisma.io",
1117
+ * },
1118
+ * },
1119
+ * orderBy: {
1120
+ * age: "asc",
1121
+ * },
1122
+ * take: 10,
1123
+ * })
1124
+ **/
1125
+ aggregate<T extends WorkOrderCommentsAggregateArgs>(args: Prisma.Subset<T, WorkOrderCommentsAggregateArgs>): Prisma.PrismaPromise<GetWorkOrderCommentsAggregateType<T>>
1126
+
1127
+ /**
1128
+ * Group by WorkOrderComments.
1129
+ * Note, that providing `undefined` is treated as the value not being there.
1130
+ * Read more here: https://pris.ly/d/null-undefined
1131
+ * @param {WorkOrderCommentsGroupByArgs} args - Group by arguments.
1132
+ * @example
1133
+ * // Group by city, order by createdAt, get count
1134
+ * const result = await prisma.user.groupBy({
1135
+ * by: ['city', 'createdAt'],
1136
+ * orderBy: {
1137
+ * createdAt: true
1138
+ * },
1139
+ * _count: {
1140
+ * _all: true
1141
+ * },
1142
+ * })
1143
+ *
1144
+ **/
1145
+ groupBy<
1146
+ T extends WorkOrderCommentsGroupByArgs,
1147
+ HasSelectOrTake extends Prisma.Or<
1148
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1149
+ Prisma.Extends<'take', Prisma.Keys<T>>
1150
+ >,
1151
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1152
+ ? { orderBy: WorkOrderCommentsGroupByArgs['orderBy'] }
1153
+ : { orderBy?: WorkOrderCommentsGroupByArgs['orderBy'] },
1154
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1155
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1156
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1157
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1158
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1159
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1160
+ InputErrors extends ByEmpty extends Prisma.True
1161
+ ? `Error: "by" must not be empty.`
1162
+ : HavingValid extends Prisma.False
1163
+ ? {
1164
+ [P in HavingFields]: P extends ByFields
1165
+ ? never
1166
+ : P extends string
1167
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1168
+ : [
1169
+ Error,
1170
+ 'Field ',
1171
+ P,
1172
+ ` in "having" needs to be provided in "by"`,
1173
+ ]
1174
+ }[HavingFields]
1175
+ : 'take' extends Prisma.Keys<T>
1176
+ ? 'orderBy' extends Prisma.Keys<T>
1177
+ ? ByValid extends Prisma.True
1178
+ ? {}
1179
+ : {
1180
+ [P in OrderFields]: P extends ByFields
1181
+ ? never
1182
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1183
+ }[OrderFields]
1184
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1185
+ : 'skip' extends Prisma.Keys<T>
1186
+ ? 'orderBy' extends Prisma.Keys<T>
1187
+ ? ByValid extends Prisma.True
1188
+ ? {}
1189
+ : {
1190
+ [P in OrderFields]: P extends ByFields
1191
+ ? never
1192
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1193
+ }[OrderFields]
1194
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1195
+ : ByValid extends Prisma.True
1196
+ ? {}
1197
+ : {
1198
+ [P in OrderFields]: P extends ByFields
1199
+ ? never
1200
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1201
+ }[OrderFields]
1202
+ >(args: Prisma.SubsetIntersection<T, WorkOrderCommentsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkOrderCommentsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1203
+ /**
1204
+ * Fields of the WorkOrderComments model
1205
+ */
1206
+ readonly fields: WorkOrderCommentsFieldRefs;
1207
+ }
1208
+
1209
+ /**
1210
+ * The delegate class that acts as a "Promise-like" for WorkOrderComments.
1211
+ * Why is this prefixed with `Prisma__`?
1212
+ * Because we want to prevent naming conflicts as mentioned in
1213
+ * https://github.com/prisma/prisma-client-js/issues/707
1214
+ */
1215
+ export interface Prisma__WorkOrderCommentsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1216
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1217
+ workOrder<T extends Prisma.WorkOrderDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WorkOrderDefaultArgs<ExtArgs>>): Prisma.Prisma__WorkOrderClient<runtime.Types.Result.GetResult<Prisma.$WorkOrderPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1218
+ createdBy<T extends Prisma.WorkOrderComments$createdByArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WorkOrderComments$createdByArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1219
+ /**
1220
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1221
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1222
+ * @param onrejected The callback to execute when the Promise is rejected.
1223
+ * @returns A Promise for the completion of which ever callback is executed.
1224
+ */
1225
+ 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>
1226
+ /**
1227
+ * Attaches a callback for only the rejection of the Promise.
1228
+ * @param onrejected The callback to execute when the Promise is rejected.
1229
+ * @returns A Promise for the completion of the callback.
1230
+ */
1231
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1232
+ /**
1233
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1234
+ * resolved value cannot be modified from the callback.
1235
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1236
+ * @returns A Promise for the completion of the callback.
1237
+ */
1238
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1239
+ }
1240
+
1241
+
1242
+
1243
+
1244
+ /**
1245
+ * Fields of the WorkOrderComments model
1246
+ */
1247
+ export interface WorkOrderCommentsFieldRefs {
1248
+ readonly id: Prisma.FieldRef<"WorkOrderComments", 'String'>
1249
+ readonly no: Prisma.FieldRef<"WorkOrderComments", 'Int'>
1250
+ readonly comment: Prisma.FieldRef<"WorkOrderComments", 'String'>
1251
+ readonly hasAttachment: Prisma.FieldRef<"WorkOrderComments", 'Boolean'>
1252
+ readonly attachment: Prisma.FieldRef<"WorkOrderComments", 'String'>
1253
+ readonly createdAt: Prisma.FieldRef<"WorkOrderComments", 'DateTime'>
1254
+ readonly updatedAt: Prisma.FieldRef<"WorkOrderComments", 'DateTime'>
1255
+ readonly workOrderId: Prisma.FieldRef<"WorkOrderComments", 'String'>
1256
+ readonly createdById: Prisma.FieldRef<"WorkOrderComments", 'String'>
1257
+ }
1258
+
1259
+
1260
+ // Custom InputTypes
1261
+ /**
1262
+ * WorkOrderComments findUnique
1263
+ */
1264
+ export type WorkOrderCommentsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1265
+ /**
1266
+ * Select specific fields to fetch from the WorkOrderComments
1267
+ */
1268
+ select?: Prisma.WorkOrderCommentsSelect<ExtArgs> | null
1269
+ /**
1270
+ * Omit specific fields from the WorkOrderComments
1271
+ */
1272
+ omit?: Prisma.WorkOrderCommentsOmit<ExtArgs> | null
1273
+ /**
1274
+ * Choose, which related nodes to fetch as well
1275
+ */
1276
+ include?: Prisma.WorkOrderCommentsInclude<ExtArgs> | null
1277
+ /**
1278
+ * Filter, which WorkOrderComments to fetch.
1279
+ */
1280
+ where: Prisma.WorkOrderCommentsWhereUniqueInput
1281
+ }
1282
+
1283
+ /**
1284
+ * WorkOrderComments findUniqueOrThrow
1285
+ */
1286
+ export type WorkOrderCommentsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1287
+ /**
1288
+ * Select specific fields to fetch from the WorkOrderComments
1289
+ */
1290
+ select?: Prisma.WorkOrderCommentsSelect<ExtArgs> | null
1291
+ /**
1292
+ * Omit specific fields from the WorkOrderComments
1293
+ */
1294
+ omit?: Prisma.WorkOrderCommentsOmit<ExtArgs> | null
1295
+ /**
1296
+ * Choose, which related nodes to fetch as well
1297
+ */
1298
+ include?: Prisma.WorkOrderCommentsInclude<ExtArgs> | null
1299
+ /**
1300
+ * Filter, which WorkOrderComments to fetch.
1301
+ */
1302
+ where: Prisma.WorkOrderCommentsWhereUniqueInput
1303
+ }
1304
+
1305
+ /**
1306
+ * WorkOrderComments findFirst
1307
+ */
1308
+ export type WorkOrderCommentsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1309
+ /**
1310
+ * Select specific fields to fetch from the WorkOrderComments
1311
+ */
1312
+ select?: Prisma.WorkOrderCommentsSelect<ExtArgs> | null
1313
+ /**
1314
+ * Omit specific fields from the WorkOrderComments
1315
+ */
1316
+ omit?: Prisma.WorkOrderCommentsOmit<ExtArgs> | null
1317
+ /**
1318
+ * Choose, which related nodes to fetch as well
1319
+ */
1320
+ include?: Prisma.WorkOrderCommentsInclude<ExtArgs> | null
1321
+ /**
1322
+ * Filter, which WorkOrderComments to fetch.
1323
+ */
1324
+ where?: Prisma.WorkOrderCommentsWhereInput
1325
+ /**
1326
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1327
+ *
1328
+ * Determine the order of WorkOrderComments to fetch.
1329
+ */
1330
+ orderBy?: Prisma.WorkOrderCommentsOrderByWithRelationInput | Prisma.WorkOrderCommentsOrderByWithRelationInput[]
1331
+ /**
1332
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1333
+ *
1334
+ * Sets the position for searching for WorkOrderComments.
1335
+ */
1336
+ cursor?: Prisma.WorkOrderCommentsWhereUniqueInput
1337
+ /**
1338
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1339
+ *
1340
+ * Take `±n` WorkOrderComments from the position of the cursor.
1341
+ */
1342
+ take?: number
1343
+ /**
1344
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1345
+ *
1346
+ * Skip the first `n` WorkOrderComments.
1347
+ */
1348
+ skip?: number
1349
+ /**
1350
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1351
+ *
1352
+ * Filter by unique combinations of WorkOrderComments.
1353
+ */
1354
+ distinct?: Prisma.WorkOrderCommentsScalarFieldEnum | Prisma.WorkOrderCommentsScalarFieldEnum[]
1355
+ }
1356
+
1357
+ /**
1358
+ * WorkOrderComments findFirstOrThrow
1359
+ */
1360
+ export type WorkOrderCommentsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1361
+ /**
1362
+ * Select specific fields to fetch from the WorkOrderComments
1363
+ */
1364
+ select?: Prisma.WorkOrderCommentsSelect<ExtArgs> | null
1365
+ /**
1366
+ * Omit specific fields from the WorkOrderComments
1367
+ */
1368
+ omit?: Prisma.WorkOrderCommentsOmit<ExtArgs> | null
1369
+ /**
1370
+ * Choose, which related nodes to fetch as well
1371
+ */
1372
+ include?: Prisma.WorkOrderCommentsInclude<ExtArgs> | null
1373
+ /**
1374
+ * Filter, which WorkOrderComments to fetch.
1375
+ */
1376
+ where?: Prisma.WorkOrderCommentsWhereInput
1377
+ /**
1378
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1379
+ *
1380
+ * Determine the order of WorkOrderComments to fetch.
1381
+ */
1382
+ orderBy?: Prisma.WorkOrderCommentsOrderByWithRelationInput | Prisma.WorkOrderCommentsOrderByWithRelationInput[]
1383
+ /**
1384
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1385
+ *
1386
+ * Sets the position for searching for WorkOrderComments.
1387
+ */
1388
+ cursor?: Prisma.WorkOrderCommentsWhereUniqueInput
1389
+ /**
1390
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1391
+ *
1392
+ * Take `±n` WorkOrderComments from the position of the cursor.
1393
+ */
1394
+ take?: number
1395
+ /**
1396
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1397
+ *
1398
+ * Skip the first `n` WorkOrderComments.
1399
+ */
1400
+ skip?: number
1401
+ /**
1402
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1403
+ *
1404
+ * Filter by unique combinations of WorkOrderComments.
1405
+ */
1406
+ distinct?: Prisma.WorkOrderCommentsScalarFieldEnum | Prisma.WorkOrderCommentsScalarFieldEnum[]
1407
+ }
1408
+
1409
+ /**
1410
+ * WorkOrderComments findMany
1411
+ */
1412
+ export type WorkOrderCommentsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1413
+ /**
1414
+ * Select specific fields to fetch from the WorkOrderComments
1415
+ */
1416
+ select?: Prisma.WorkOrderCommentsSelect<ExtArgs> | null
1417
+ /**
1418
+ * Omit specific fields from the WorkOrderComments
1419
+ */
1420
+ omit?: Prisma.WorkOrderCommentsOmit<ExtArgs> | null
1421
+ /**
1422
+ * Choose, which related nodes to fetch as well
1423
+ */
1424
+ include?: Prisma.WorkOrderCommentsInclude<ExtArgs> | null
1425
+ /**
1426
+ * Filter, which WorkOrderComments to fetch.
1427
+ */
1428
+ where?: Prisma.WorkOrderCommentsWhereInput
1429
+ /**
1430
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1431
+ *
1432
+ * Determine the order of WorkOrderComments to fetch.
1433
+ */
1434
+ orderBy?: Prisma.WorkOrderCommentsOrderByWithRelationInput | Prisma.WorkOrderCommentsOrderByWithRelationInput[]
1435
+ /**
1436
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1437
+ *
1438
+ * Sets the position for listing WorkOrderComments.
1439
+ */
1440
+ cursor?: Prisma.WorkOrderCommentsWhereUniqueInput
1441
+ /**
1442
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1443
+ *
1444
+ * Take `±n` WorkOrderComments from the position of the cursor.
1445
+ */
1446
+ take?: number
1447
+ /**
1448
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1449
+ *
1450
+ * Skip the first `n` WorkOrderComments.
1451
+ */
1452
+ skip?: number
1453
+ distinct?: Prisma.WorkOrderCommentsScalarFieldEnum | Prisma.WorkOrderCommentsScalarFieldEnum[]
1454
+ }
1455
+
1456
+ /**
1457
+ * WorkOrderComments create
1458
+ */
1459
+ export type WorkOrderCommentsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1460
+ /**
1461
+ * Select specific fields to fetch from the WorkOrderComments
1462
+ */
1463
+ select?: Prisma.WorkOrderCommentsSelect<ExtArgs> | null
1464
+ /**
1465
+ * Omit specific fields from the WorkOrderComments
1466
+ */
1467
+ omit?: Prisma.WorkOrderCommentsOmit<ExtArgs> | null
1468
+ /**
1469
+ * Choose, which related nodes to fetch as well
1470
+ */
1471
+ include?: Prisma.WorkOrderCommentsInclude<ExtArgs> | null
1472
+ /**
1473
+ * The data needed to create a WorkOrderComments.
1474
+ */
1475
+ data: Prisma.XOR<Prisma.WorkOrderCommentsCreateInput, Prisma.WorkOrderCommentsUncheckedCreateInput>
1476
+ }
1477
+
1478
+ /**
1479
+ * WorkOrderComments createMany
1480
+ */
1481
+ export type WorkOrderCommentsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1482
+ /**
1483
+ * The data used to create many WorkOrderComments.
1484
+ */
1485
+ data: Prisma.WorkOrderCommentsCreateManyInput | Prisma.WorkOrderCommentsCreateManyInput[]
1486
+ skipDuplicates?: boolean
1487
+ }
1488
+
1489
+ /**
1490
+ * WorkOrderComments createManyAndReturn
1491
+ */
1492
+ export type WorkOrderCommentsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1493
+ /**
1494
+ * Select specific fields to fetch from the WorkOrderComments
1495
+ */
1496
+ select?: Prisma.WorkOrderCommentsSelectCreateManyAndReturn<ExtArgs> | null
1497
+ /**
1498
+ * Omit specific fields from the WorkOrderComments
1499
+ */
1500
+ omit?: Prisma.WorkOrderCommentsOmit<ExtArgs> | null
1501
+ /**
1502
+ * The data used to create many WorkOrderComments.
1503
+ */
1504
+ data: Prisma.WorkOrderCommentsCreateManyInput | Prisma.WorkOrderCommentsCreateManyInput[]
1505
+ skipDuplicates?: boolean
1506
+ /**
1507
+ * Choose, which related nodes to fetch as well
1508
+ */
1509
+ include?: Prisma.WorkOrderCommentsIncludeCreateManyAndReturn<ExtArgs> | null
1510
+ }
1511
+
1512
+ /**
1513
+ * WorkOrderComments update
1514
+ */
1515
+ export type WorkOrderCommentsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1516
+ /**
1517
+ * Select specific fields to fetch from the WorkOrderComments
1518
+ */
1519
+ select?: Prisma.WorkOrderCommentsSelect<ExtArgs> | null
1520
+ /**
1521
+ * Omit specific fields from the WorkOrderComments
1522
+ */
1523
+ omit?: Prisma.WorkOrderCommentsOmit<ExtArgs> | null
1524
+ /**
1525
+ * Choose, which related nodes to fetch as well
1526
+ */
1527
+ include?: Prisma.WorkOrderCommentsInclude<ExtArgs> | null
1528
+ /**
1529
+ * The data needed to update a WorkOrderComments.
1530
+ */
1531
+ data: Prisma.XOR<Prisma.WorkOrderCommentsUpdateInput, Prisma.WorkOrderCommentsUncheckedUpdateInput>
1532
+ /**
1533
+ * Choose, which WorkOrderComments to update.
1534
+ */
1535
+ where: Prisma.WorkOrderCommentsWhereUniqueInput
1536
+ }
1537
+
1538
+ /**
1539
+ * WorkOrderComments updateMany
1540
+ */
1541
+ export type WorkOrderCommentsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1542
+ /**
1543
+ * The data used to update WorkOrderComments.
1544
+ */
1545
+ data: Prisma.XOR<Prisma.WorkOrderCommentsUpdateManyMutationInput, Prisma.WorkOrderCommentsUncheckedUpdateManyInput>
1546
+ /**
1547
+ * Filter which WorkOrderComments to update
1548
+ */
1549
+ where?: Prisma.WorkOrderCommentsWhereInput
1550
+ /**
1551
+ * Limit how many WorkOrderComments to update.
1552
+ */
1553
+ limit?: number
1554
+ }
1555
+
1556
+ /**
1557
+ * WorkOrderComments updateManyAndReturn
1558
+ */
1559
+ export type WorkOrderCommentsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1560
+ /**
1561
+ * Select specific fields to fetch from the WorkOrderComments
1562
+ */
1563
+ select?: Prisma.WorkOrderCommentsSelectUpdateManyAndReturn<ExtArgs> | null
1564
+ /**
1565
+ * Omit specific fields from the WorkOrderComments
1566
+ */
1567
+ omit?: Prisma.WorkOrderCommentsOmit<ExtArgs> | null
1568
+ /**
1569
+ * The data used to update WorkOrderComments.
1570
+ */
1571
+ data: Prisma.XOR<Prisma.WorkOrderCommentsUpdateManyMutationInput, Prisma.WorkOrderCommentsUncheckedUpdateManyInput>
1572
+ /**
1573
+ * Filter which WorkOrderComments to update
1574
+ */
1575
+ where?: Prisma.WorkOrderCommentsWhereInput
1576
+ /**
1577
+ * Limit how many WorkOrderComments to update.
1578
+ */
1579
+ limit?: number
1580
+ /**
1581
+ * Choose, which related nodes to fetch as well
1582
+ */
1583
+ include?: Prisma.WorkOrderCommentsIncludeUpdateManyAndReturn<ExtArgs> | null
1584
+ }
1585
+
1586
+ /**
1587
+ * WorkOrderComments upsert
1588
+ */
1589
+ export type WorkOrderCommentsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1590
+ /**
1591
+ * Select specific fields to fetch from the WorkOrderComments
1592
+ */
1593
+ select?: Prisma.WorkOrderCommentsSelect<ExtArgs> | null
1594
+ /**
1595
+ * Omit specific fields from the WorkOrderComments
1596
+ */
1597
+ omit?: Prisma.WorkOrderCommentsOmit<ExtArgs> | null
1598
+ /**
1599
+ * Choose, which related nodes to fetch as well
1600
+ */
1601
+ include?: Prisma.WorkOrderCommentsInclude<ExtArgs> | null
1602
+ /**
1603
+ * The filter to search for the WorkOrderComments to update in case it exists.
1604
+ */
1605
+ where: Prisma.WorkOrderCommentsWhereUniqueInput
1606
+ /**
1607
+ * In case the WorkOrderComments found by the `where` argument doesn't exist, create a new WorkOrderComments with this data.
1608
+ */
1609
+ create: Prisma.XOR<Prisma.WorkOrderCommentsCreateInput, Prisma.WorkOrderCommentsUncheckedCreateInput>
1610
+ /**
1611
+ * In case the WorkOrderComments was found with the provided `where` argument, update it with this data.
1612
+ */
1613
+ update: Prisma.XOR<Prisma.WorkOrderCommentsUpdateInput, Prisma.WorkOrderCommentsUncheckedUpdateInput>
1614
+ }
1615
+
1616
+ /**
1617
+ * WorkOrderComments delete
1618
+ */
1619
+ export type WorkOrderCommentsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1620
+ /**
1621
+ * Select specific fields to fetch from the WorkOrderComments
1622
+ */
1623
+ select?: Prisma.WorkOrderCommentsSelect<ExtArgs> | null
1624
+ /**
1625
+ * Omit specific fields from the WorkOrderComments
1626
+ */
1627
+ omit?: Prisma.WorkOrderCommentsOmit<ExtArgs> | null
1628
+ /**
1629
+ * Choose, which related nodes to fetch as well
1630
+ */
1631
+ include?: Prisma.WorkOrderCommentsInclude<ExtArgs> | null
1632
+ /**
1633
+ * Filter which WorkOrderComments to delete.
1634
+ */
1635
+ where: Prisma.WorkOrderCommentsWhereUniqueInput
1636
+ }
1637
+
1638
+ /**
1639
+ * WorkOrderComments deleteMany
1640
+ */
1641
+ export type WorkOrderCommentsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1642
+ /**
1643
+ * Filter which WorkOrderComments to delete
1644
+ */
1645
+ where?: Prisma.WorkOrderCommentsWhereInput
1646
+ /**
1647
+ * Limit how many WorkOrderComments to delete.
1648
+ */
1649
+ limit?: number
1650
+ }
1651
+
1652
+ /**
1653
+ * WorkOrderComments.createdBy
1654
+ */
1655
+ export type WorkOrderComments$createdByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1656
+ /**
1657
+ * Select specific fields to fetch from the User
1658
+ */
1659
+ select?: Prisma.UserSelect<ExtArgs> | null
1660
+ /**
1661
+ * Omit specific fields from the User
1662
+ */
1663
+ omit?: Prisma.UserOmit<ExtArgs> | null
1664
+ /**
1665
+ * Choose, which related nodes to fetch as well
1666
+ */
1667
+ include?: Prisma.UserInclude<ExtArgs> | null
1668
+ where?: Prisma.UserWhereInput
1669
+ }
1670
+
1671
+ /**
1672
+ * WorkOrderComments without action
1673
+ */
1674
+ export type WorkOrderCommentsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1675
+ /**
1676
+ * Select specific fields to fetch from the WorkOrderComments
1677
+ */
1678
+ select?: Prisma.WorkOrderCommentsSelect<ExtArgs> | null
1679
+ /**
1680
+ * Omit specific fields from the WorkOrderComments
1681
+ */
1682
+ omit?: Prisma.WorkOrderCommentsOmit<ExtArgs> | null
1683
+ /**
1684
+ * Choose, which related nodes to fetch as well
1685
+ */
1686
+ include?: Prisma.WorkOrderCommentsInclude<ExtArgs> | null
1687
+ }