efiber-prisma-schema 1.16.2 → 2.0.1

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 +12 -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,1963 @@
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 `Material` 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 Material
17
+ *
18
+ */
19
+ export type MaterialModel = runtime.Types.Result.DefaultSelection<Prisma.$MaterialPayload>
20
+
21
+ export type AggregateMaterial = {
22
+ _count: MaterialCountAggregateOutputType | null
23
+ _avg: MaterialAvgAggregateOutputType | null
24
+ _sum: MaterialSumAggregateOutputType | null
25
+ _min: MaterialMinAggregateOutputType | null
26
+ _max: MaterialMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type MaterialAvgAggregateOutputType = {
30
+ no: number | null
31
+ }
32
+
33
+ export type MaterialSumAggregateOutputType = {
34
+ no: number | null
35
+ }
36
+
37
+ export type MaterialMinAggregateOutputType = {
38
+ id: string | null
39
+ no: number | null
40
+ name: string | null
41
+ code: string | null
42
+ description: string | null
43
+ unit: string | null
44
+ status: string | null
45
+ createdAt: Date | null
46
+ updatedAt: Date | null
47
+ deletedAt: Date | null
48
+ }
49
+
50
+ export type MaterialMaxAggregateOutputType = {
51
+ id: string | null
52
+ no: number | null
53
+ name: string | null
54
+ code: string | null
55
+ description: string | null
56
+ unit: string | null
57
+ status: string | null
58
+ createdAt: Date | null
59
+ updatedAt: Date | null
60
+ deletedAt: Date | null
61
+ }
62
+
63
+ export type MaterialCountAggregateOutputType = {
64
+ id: number
65
+ no: number
66
+ name: number
67
+ code: number
68
+ description: number
69
+ unit: number
70
+ status: number
71
+ createdAt: number
72
+ updatedAt: number
73
+ deletedAt: number
74
+ _all: number
75
+ }
76
+
77
+
78
+ export type MaterialAvgAggregateInputType = {
79
+ no?: true
80
+ }
81
+
82
+ export type MaterialSumAggregateInputType = {
83
+ no?: true
84
+ }
85
+
86
+ export type MaterialMinAggregateInputType = {
87
+ id?: true
88
+ no?: true
89
+ name?: true
90
+ code?: true
91
+ description?: true
92
+ unit?: true
93
+ status?: true
94
+ createdAt?: true
95
+ updatedAt?: true
96
+ deletedAt?: true
97
+ }
98
+
99
+ export type MaterialMaxAggregateInputType = {
100
+ id?: true
101
+ no?: true
102
+ name?: true
103
+ code?: true
104
+ description?: true
105
+ unit?: true
106
+ status?: true
107
+ createdAt?: true
108
+ updatedAt?: true
109
+ deletedAt?: true
110
+ }
111
+
112
+ export type MaterialCountAggregateInputType = {
113
+ id?: true
114
+ no?: true
115
+ name?: true
116
+ code?: true
117
+ description?: true
118
+ unit?: true
119
+ status?: true
120
+ createdAt?: true
121
+ updatedAt?: true
122
+ deletedAt?: true
123
+ _all?: true
124
+ }
125
+
126
+ export type MaterialAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
127
+ /**
128
+ * Filter which Material to aggregate.
129
+ */
130
+ where?: Prisma.MaterialWhereInput
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
133
+ *
134
+ * Determine the order of Materials to fetch.
135
+ */
136
+ orderBy?: Prisma.MaterialOrderByWithRelationInput | Prisma.MaterialOrderByWithRelationInput[]
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
139
+ *
140
+ * Sets the start position
141
+ */
142
+ cursor?: Prisma.MaterialWhereUniqueInput
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
145
+ *
146
+ * Take `±n` Materials from the position of the cursor.
147
+ */
148
+ take?: number
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
151
+ *
152
+ * Skip the first `n` Materials.
153
+ */
154
+ skip?: number
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
157
+ *
158
+ * Count returned Materials
159
+ **/
160
+ _count?: true | MaterialCountAggregateInputType
161
+ /**
162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
163
+ *
164
+ * Select which fields to average
165
+ **/
166
+ _avg?: MaterialAvgAggregateInputType
167
+ /**
168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
169
+ *
170
+ * Select which fields to sum
171
+ **/
172
+ _sum?: MaterialSumAggregateInputType
173
+ /**
174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
175
+ *
176
+ * Select which fields to find the minimum value
177
+ **/
178
+ _min?: MaterialMinAggregateInputType
179
+ /**
180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
181
+ *
182
+ * Select which fields to find the maximum value
183
+ **/
184
+ _max?: MaterialMaxAggregateInputType
185
+ }
186
+
187
+ export type GetMaterialAggregateType<T extends MaterialAggregateArgs> = {
188
+ [P in keyof T & keyof AggregateMaterial]: P extends '_count' | 'count'
189
+ ? T[P] extends true
190
+ ? number
191
+ : Prisma.GetScalarType<T[P], AggregateMaterial[P]>
192
+ : Prisma.GetScalarType<T[P], AggregateMaterial[P]>
193
+ }
194
+
195
+
196
+
197
+
198
+ export type MaterialGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
199
+ where?: Prisma.MaterialWhereInput
200
+ orderBy?: Prisma.MaterialOrderByWithAggregationInput | Prisma.MaterialOrderByWithAggregationInput[]
201
+ by: Prisma.MaterialScalarFieldEnum[] | Prisma.MaterialScalarFieldEnum
202
+ having?: Prisma.MaterialScalarWhereWithAggregatesInput
203
+ take?: number
204
+ skip?: number
205
+ _count?: MaterialCountAggregateInputType | true
206
+ _avg?: MaterialAvgAggregateInputType
207
+ _sum?: MaterialSumAggregateInputType
208
+ _min?: MaterialMinAggregateInputType
209
+ _max?: MaterialMaxAggregateInputType
210
+ }
211
+
212
+ export type MaterialGroupByOutputType = {
213
+ id: string
214
+ no: number
215
+ name: string
216
+ code: string
217
+ description: string | null
218
+ unit: string
219
+ status: string
220
+ createdAt: Date
221
+ updatedAt: Date
222
+ deletedAt: Date | null
223
+ _count: MaterialCountAggregateOutputType | null
224
+ _avg: MaterialAvgAggregateOutputType | null
225
+ _sum: MaterialSumAggregateOutputType | null
226
+ _min: MaterialMinAggregateOutputType | null
227
+ _max: MaterialMaxAggregateOutputType | null
228
+ }
229
+
230
+ type GetMaterialGroupByPayload<T extends MaterialGroupByArgs> = Prisma.PrismaPromise<
231
+ Array<
232
+ Prisma.PickEnumerable<MaterialGroupByOutputType, T['by']> &
233
+ {
234
+ [P in ((keyof T) & (keyof MaterialGroupByOutputType))]: P extends '_count'
235
+ ? T[P] extends boolean
236
+ ? number
237
+ : Prisma.GetScalarType<T[P], MaterialGroupByOutputType[P]>
238
+ : Prisma.GetScalarType<T[P], MaterialGroupByOutputType[P]>
239
+ }
240
+ >
241
+ >
242
+
243
+
244
+
245
+ export type MaterialWhereInput = {
246
+ AND?: Prisma.MaterialWhereInput | Prisma.MaterialWhereInput[]
247
+ OR?: Prisma.MaterialWhereInput[]
248
+ NOT?: Prisma.MaterialWhereInput | Prisma.MaterialWhereInput[]
249
+ id?: Prisma.StringFilter<"Material"> | string
250
+ no?: Prisma.IntFilter<"Material"> | number
251
+ name?: Prisma.StringFilter<"Material"> | string
252
+ code?: Prisma.StringFilter<"Material"> | string
253
+ description?: Prisma.StringNullableFilter<"Material"> | string | null
254
+ unit?: Prisma.StringFilter<"Material"> | string
255
+ status?: Prisma.StringFilter<"Material"> | string
256
+ createdAt?: Prisma.DateTimeFilter<"Material"> | Date | string
257
+ updatedAt?: Prisma.DateTimeFilter<"Material"> | Date | string
258
+ deletedAt?: Prisma.DateTimeNullableFilter<"Material"> | Date | string | null
259
+ billOfMaterial?: Prisma.MaterialBillOfMaterialListRelationFilter
260
+ pboFatAttributes?: Prisma.PboFatAttributesListRelationFilter
261
+ cableAttributes?: Prisma.CableAttributesListRelationFilter
262
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesListRelationFilter
263
+ }
264
+
265
+ export type MaterialOrderByWithRelationInput = {
266
+ id?: Prisma.SortOrder
267
+ no?: Prisma.SortOrder
268
+ name?: Prisma.SortOrder
269
+ code?: Prisma.SortOrder
270
+ description?: Prisma.SortOrderInput | Prisma.SortOrder
271
+ unit?: Prisma.SortOrder
272
+ status?: Prisma.SortOrder
273
+ createdAt?: Prisma.SortOrder
274
+ updatedAt?: Prisma.SortOrder
275
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
276
+ billOfMaterial?: Prisma.MaterialBillOfMaterialOrderByRelationAggregateInput
277
+ pboFatAttributes?: Prisma.PboFatAttributesOrderByRelationAggregateInput
278
+ cableAttributes?: Prisma.CableAttributesOrderByRelationAggregateInput
279
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesOrderByRelationAggregateInput
280
+ }
281
+
282
+ export type MaterialWhereUniqueInput = Prisma.AtLeast<{
283
+ id?: string
284
+ AND?: Prisma.MaterialWhereInput | Prisma.MaterialWhereInput[]
285
+ OR?: Prisma.MaterialWhereInput[]
286
+ NOT?: Prisma.MaterialWhereInput | Prisma.MaterialWhereInput[]
287
+ no?: Prisma.IntFilter<"Material"> | number
288
+ name?: Prisma.StringFilter<"Material"> | string
289
+ code?: Prisma.StringFilter<"Material"> | string
290
+ description?: Prisma.StringNullableFilter<"Material"> | string | null
291
+ unit?: Prisma.StringFilter<"Material"> | string
292
+ status?: Prisma.StringFilter<"Material"> | string
293
+ createdAt?: Prisma.DateTimeFilter<"Material"> | Date | string
294
+ updatedAt?: Prisma.DateTimeFilter<"Material"> | Date | string
295
+ deletedAt?: Prisma.DateTimeNullableFilter<"Material"> | Date | string | null
296
+ billOfMaterial?: Prisma.MaterialBillOfMaterialListRelationFilter
297
+ pboFatAttributes?: Prisma.PboFatAttributesListRelationFilter
298
+ cableAttributes?: Prisma.CableAttributesListRelationFilter
299
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesListRelationFilter
300
+ }, "id" | "id">
301
+
302
+ export type MaterialOrderByWithAggregationInput = {
303
+ id?: Prisma.SortOrder
304
+ no?: Prisma.SortOrder
305
+ name?: Prisma.SortOrder
306
+ code?: Prisma.SortOrder
307
+ description?: Prisma.SortOrderInput | Prisma.SortOrder
308
+ unit?: Prisma.SortOrder
309
+ status?: Prisma.SortOrder
310
+ createdAt?: Prisma.SortOrder
311
+ updatedAt?: Prisma.SortOrder
312
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
313
+ _count?: Prisma.MaterialCountOrderByAggregateInput
314
+ _avg?: Prisma.MaterialAvgOrderByAggregateInput
315
+ _max?: Prisma.MaterialMaxOrderByAggregateInput
316
+ _min?: Prisma.MaterialMinOrderByAggregateInput
317
+ _sum?: Prisma.MaterialSumOrderByAggregateInput
318
+ }
319
+
320
+ export type MaterialScalarWhereWithAggregatesInput = {
321
+ AND?: Prisma.MaterialScalarWhereWithAggregatesInput | Prisma.MaterialScalarWhereWithAggregatesInput[]
322
+ OR?: Prisma.MaterialScalarWhereWithAggregatesInput[]
323
+ NOT?: Prisma.MaterialScalarWhereWithAggregatesInput | Prisma.MaterialScalarWhereWithAggregatesInput[]
324
+ id?: Prisma.StringWithAggregatesFilter<"Material"> | string
325
+ no?: Prisma.IntWithAggregatesFilter<"Material"> | number
326
+ name?: Prisma.StringWithAggregatesFilter<"Material"> | string
327
+ code?: Prisma.StringWithAggregatesFilter<"Material"> | string
328
+ description?: Prisma.StringNullableWithAggregatesFilter<"Material"> | string | null
329
+ unit?: Prisma.StringWithAggregatesFilter<"Material"> | string
330
+ status?: Prisma.StringWithAggregatesFilter<"Material"> | string
331
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Material"> | Date | string
332
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Material"> | Date | string
333
+ deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Material"> | Date | string | null
334
+ }
335
+
336
+ export type MaterialCreateInput = {
337
+ id?: string
338
+ no?: number
339
+ name: string
340
+ code: string
341
+ description?: string | null
342
+ unit: string
343
+ status?: string
344
+ createdAt?: Date | string
345
+ updatedAt?: Date | string
346
+ deletedAt?: Date | string | null
347
+ billOfMaterial?: Prisma.MaterialBillOfMaterialCreateNestedManyWithoutMaterialInput
348
+ pboFatAttributes?: Prisma.PboFatAttributesCreateNestedManyWithoutMaterialInput
349
+ cableAttributes?: Prisma.CableAttributesCreateNestedManyWithoutMaterialInput
350
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesCreateNestedManyWithoutMaterialInput
351
+ }
352
+
353
+ export type MaterialUncheckedCreateInput = {
354
+ id?: string
355
+ no?: number
356
+ name: string
357
+ code: string
358
+ description?: string | null
359
+ unit: string
360
+ status?: string
361
+ createdAt?: Date | string
362
+ updatedAt?: Date | string
363
+ deletedAt?: Date | string | null
364
+ billOfMaterial?: Prisma.MaterialBillOfMaterialUncheckedCreateNestedManyWithoutMaterialInput
365
+ pboFatAttributes?: Prisma.PboFatAttributesUncheckedCreateNestedManyWithoutMaterialInput
366
+ cableAttributes?: Prisma.CableAttributesUncheckedCreateNestedManyWithoutMaterialInput
367
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesUncheckedCreateNestedManyWithoutMaterialInput
368
+ }
369
+
370
+ export type MaterialUpdateInput = {
371
+ id?: Prisma.StringFieldUpdateOperationsInput | string
372
+ no?: Prisma.IntFieldUpdateOperationsInput | number
373
+ name?: Prisma.StringFieldUpdateOperationsInput | string
374
+ code?: Prisma.StringFieldUpdateOperationsInput | string
375
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
376
+ unit?: Prisma.StringFieldUpdateOperationsInput | string
377
+ status?: Prisma.StringFieldUpdateOperationsInput | string
378
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
379
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
380
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
381
+ billOfMaterial?: Prisma.MaterialBillOfMaterialUpdateManyWithoutMaterialNestedInput
382
+ pboFatAttributes?: Prisma.PboFatAttributesUpdateManyWithoutMaterialNestedInput
383
+ cableAttributes?: Prisma.CableAttributesUpdateManyWithoutMaterialNestedInput
384
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesUpdateManyWithoutMaterialNestedInput
385
+ }
386
+
387
+ export type MaterialUncheckedUpdateInput = {
388
+ id?: Prisma.StringFieldUpdateOperationsInput | string
389
+ no?: Prisma.IntFieldUpdateOperationsInput | number
390
+ name?: Prisma.StringFieldUpdateOperationsInput | string
391
+ code?: Prisma.StringFieldUpdateOperationsInput | string
392
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
393
+ unit?: Prisma.StringFieldUpdateOperationsInput | string
394
+ status?: Prisma.StringFieldUpdateOperationsInput | string
395
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
396
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
397
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
398
+ billOfMaterial?: Prisma.MaterialBillOfMaterialUncheckedUpdateManyWithoutMaterialNestedInput
399
+ pboFatAttributes?: Prisma.PboFatAttributesUncheckedUpdateManyWithoutMaterialNestedInput
400
+ cableAttributes?: Prisma.CableAttributesUncheckedUpdateManyWithoutMaterialNestedInput
401
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesUncheckedUpdateManyWithoutMaterialNestedInput
402
+ }
403
+
404
+ export type MaterialCreateManyInput = {
405
+ id?: string
406
+ no?: number
407
+ name: string
408
+ code: string
409
+ description?: string | null
410
+ unit: string
411
+ status?: string
412
+ createdAt?: Date | string
413
+ updatedAt?: Date | string
414
+ deletedAt?: Date | string | null
415
+ }
416
+
417
+ export type MaterialUpdateManyMutationInput = {
418
+ id?: Prisma.StringFieldUpdateOperationsInput | string
419
+ no?: Prisma.IntFieldUpdateOperationsInput | number
420
+ name?: Prisma.StringFieldUpdateOperationsInput | string
421
+ code?: Prisma.StringFieldUpdateOperationsInput | string
422
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
423
+ unit?: Prisma.StringFieldUpdateOperationsInput | string
424
+ status?: Prisma.StringFieldUpdateOperationsInput | string
425
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
426
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
427
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
428
+ }
429
+
430
+ export type MaterialUncheckedUpdateManyInput = {
431
+ id?: Prisma.StringFieldUpdateOperationsInput | string
432
+ no?: Prisma.IntFieldUpdateOperationsInput | number
433
+ name?: Prisma.StringFieldUpdateOperationsInput | string
434
+ code?: Prisma.StringFieldUpdateOperationsInput | string
435
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
436
+ unit?: Prisma.StringFieldUpdateOperationsInput | string
437
+ status?: Prisma.StringFieldUpdateOperationsInput | string
438
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
439
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
440
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
441
+ }
442
+
443
+ export type MaterialCountOrderByAggregateInput = {
444
+ id?: Prisma.SortOrder
445
+ no?: Prisma.SortOrder
446
+ name?: Prisma.SortOrder
447
+ code?: Prisma.SortOrder
448
+ description?: Prisma.SortOrder
449
+ unit?: Prisma.SortOrder
450
+ status?: Prisma.SortOrder
451
+ createdAt?: Prisma.SortOrder
452
+ updatedAt?: Prisma.SortOrder
453
+ deletedAt?: Prisma.SortOrder
454
+ }
455
+
456
+ export type MaterialAvgOrderByAggregateInput = {
457
+ no?: Prisma.SortOrder
458
+ }
459
+
460
+ export type MaterialMaxOrderByAggregateInput = {
461
+ id?: Prisma.SortOrder
462
+ no?: Prisma.SortOrder
463
+ name?: Prisma.SortOrder
464
+ code?: Prisma.SortOrder
465
+ description?: Prisma.SortOrder
466
+ unit?: Prisma.SortOrder
467
+ status?: Prisma.SortOrder
468
+ createdAt?: Prisma.SortOrder
469
+ updatedAt?: Prisma.SortOrder
470
+ deletedAt?: Prisma.SortOrder
471
+ }
472
+
473
+ export type MaterialMinOrderByAggregateInput = {
474
+ id?: Prisma.SortOrder
475
+ no?: Prisma.SortOrder
476
+ name?: Prisma.SortOrder
477
+ code?: Prisma.SortOrder
478
+ description?: Prisma.SortOrder
479
+ unit?: Prisma.SortOrder
480
+ status?: Prisma.SortOrder
481
+ createdAt?: Prisma.SortOrder
482
+ updatedAt?: Prisma.SortOrder
483
+ deletedAt?: Prisma.SortOrder
484
+ }
485
+
486
+ export type MaterialSumOrderByAggregateInput = {
487
+ no?: Prisma.SortOrder
488
+ }
489
+
490
+ export type MaterialScalarRelationFilter = {
491
+ is?: Prisma.MaterialWhereInput
492
+ isNot?: Prisma.MaterialWhereInput
493
+ }
494
+
495
+ export type MaterialNullableScalarRelationFilter = {
496
+ is?: Prisma.MaterialWhereInput | null
497
+ isNot?: Prisma.MaterialWhereInput | null
498
+ }
499
+
500
+ export type MaterialCreateNestedOneWithoutBillOfMaterialInput = {
501
+ create?: Prisma.XOR<Prisma.MaterialCreateWithoutBillOfMaterialInput, Prisma.MaterialUncheckedCreateWithoutBillOfMaterialInput>
502
+ connectOrCreate?: Prisma.MaterialCreateOrConnectWithoutBillOfMaterialInput
503
+ connect?: Prisma.MaterialWhereUniqueInput
504
+ }
505
+
506
+ export type MaterialUpdateOneRequiredWithoutBillOfMaterialNestedInput = {
507
+ create?: Prisma.XOR<Prisma.MaterialCreateWithoutBillOfMaterialInput, Prisma.MaterialUncheckedCreateWithoutBillOfMaterialInput>
508
+ connectOrCreate?: Prisma.MaterialCreateOrConnectWithoutBillOfMaterialInput
509
+ upsert?: Prisma.MaterialUpsertWithoutBillOfMaterialInput
510
+ connect?: Prisma.MaterialWhereUniqueInput
511
+ update?: Prisma.XOR<Prisma.XOR<Prisma.MaterialUpdateToOneWithWhereWithoutBillOfMaterialInput, Prisma.MaterialUpdateWithoutBillOfMaterialInput>, Prisma.MaterialUncheckedUpdateWithoutBillOfMaterialInput>
512
+ }
513
+
514
+ export type MaterialCreateNestedOneWithoutCableAttributesInput = {
515
+ create?: Prisma.XOR<Prisma.MaterialCreateWithoutCableAttributesInput, Prisma.MaterialUncheckedCreateWithoutCableAttributesInput>
516
+ connectOrCreate?: Prisma.MaterialCreateOrConnectWithoutCableAttributesInput
517
+ connect?: Prisma.MaterialWhereUniqueInput
518
+ }
519
+
520
+ export type MaterialUpdateOneWithoutCableAttributesNestedInput = {
521
+ create?: Prisma.XOR<Prisma.MaterialCreateWithoutCableAttributesInput, Prisma.MaterialUncheckedCreateWithoutCableAttributesInput>
522
+ connectOrCreate?: Prisma.MaterialCreateOrConnectWithoutCableAttributesInput
523
+ upsert?: Prisma.MaterialUpsertWithoutCableAttributesInput
524
+ disconnect?: Prisma.MaterialWhereInput | boolean
525
+ delete?: Prisma.MaterialWhereInput | boolean
526
+ connect?: Prisma.MaterialWhereUniqueInput
527
+ update?: Prisma.XOR<Prisma.XOR<Prisma.MaterialUpdateToOneWithWhereWithoutCableAttributesInput, Prisma.MaterialUpdateWithoutCableAttributesInput>, Prisma.MaterialUncheckedUpdateWithoutCableAttributesInput>
528
+ }
529
+
530
+ export type MaterialCreateNestedOneWithoutPboFatAttributesInput = {
531
+ create?: Prisma.XOR<Prisma.MaterialCreateWithoutPboFatAttributesInput, Prisma.MaterialUncheckedCreateWithoutPboFatAttributesInput>
532
+ connectOrCreate?: Prisma.MaterialCreateOrConnectWithoutPboFatAttributesInput
533
+ connect?: Prisma.MaterialWhereUniqueInput
534
+ }
535
+
536
+ export type MaterialUpdateOneWithoutPboFatAttributesNestedInput = {
537
+ create?: Prisma.XOR<Prisma.MaterialCreateWithoutPboFatAttributesInput, Prisma.MaterialUncheckedCreateWithoutPboFatAttributesInput>
538
+ connectOrCreate?: Prisma.MaterialCreateOrConnectWithoutPboFatAttributesInput
539
+ upsert?: Prisma.MaterialUpsertWithoutPboFatAttributesInput
540
+ disconnect?: Prisma.MaterialWhereInput | boolean
541
+ delete?: Prisma.MaterialWhereInput | boolean
542
+ connect?: Prisma.MaterialWhereUniqueInput
543
+ update?: Prisma.XOR<Prisma.XOR<Prisma.MaterialUpdateToOneWithWhereWithoutPboFatAttributesInput, Prisma.MaterialUpdateWithoutPboFatAttributesInput>, Prisma.MaterialUncheckedUpdateWithoutPboFatAttributesInput>
544
+ }
545
+
546
+ export type MaterialCreateNestedOneWithoutSpliceClosureAttributesInput = {
547
+ create?: Prisma.XOR<Prisma.MaterialCreateWithoutSpliceClosureAttributesInput, Prisma.MaterialUncheckedCreateWithoutSpliceClosureAttributesInput>
548
+ connectOrCreate?: Prisma.MaterialCreateOrConnectWithoutSpliceClosureAttributesInput
549
+ connect?: Prisma.MaterialWhereUniqueInput
550
+ }
551
+
552
+ export type MaterialUpdateOneWithoutSpliceClosureAttributesNestedInput = {
553
+ create?: Prisma.XOR<Prisma.MaterialCreateWithoutSpliceClosureAttributesInput, Prisma.MaterialUncheckedCreateWithoutSpliceClosureAttributesInput>
554
+ connectOrCreate?: Prisma.MaterialCreateOrConnectWithoutSpliceClosureAttributesInput
555
+ upsert?: Prisma.MaterialUpsertWithoutSpliceClosureAttributesInput
556
+ disconnect?: Prisma.MaterialWhereInput | boolean
557
+ delete?: Prisma.MaterialWhereInput | boolean
558
+ connect?: Prisma.MaterialWhereUniqueInput
559
+ update?: Prisma.XOR<Prisma.XOR<Prisma.MaterialUpdateToOneWithWhereWithoutSpliceClosureAttributesInput, Prisma.MaterialUpdateWithoutSpliceClosureAttributesInput>, Prisma.MaterialUncheckedUpdateWithoutSpliceClosureAttributesInput>
560
+ }
561
+
562
+ export type MaterialCreateWithoutBillOfMaterialInput = {
563
+ id?: string
564
+ no?: number
565
+ name: string
566
+ code: string
567
+ description?: string | null
568
+ unit: string
569
+ status?: string
570
+ createdAt?: Date | string
571
+ updatedAt?: Date | string
572
+ deletedAt?: Date | string | null
573
+ pboFatAttributes?: Prisma.PboFatAttributesCreateNestedManyWithoutMaterialInput
574
+ cableAttributes?: Prisma.CableAttributesCreateNestedManyWithoutMaterialInput
575
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesCreateNestedManyWithoutMaterialInput
576
+ }
577
+
578
+ export type MaterialUncheckedCreateWithoutBillOfMaterialInput = {
579
+ id?: string
580
+ no?: number
581
+ name: string
582
+ code: string
583
+ description?: string | null
584
+ unit: string
585
+ status?: string
586
+ createdAt?: Date | string
587
+ updatedAt?: Date | string
588
+ deletedAt?: Date | string | null
589
+ pboFatAttributes?: Prisma.PboFatAttributesUncheckedCreateNestedManyWithoutMaterialInput
590
+ cableAttributes?: Prisma.CableAttributesUncheckedCreateNestedManyWithoutMaterialInput
591
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesUncheckedCreateNestedManyWithoutMaterialInput
592
+ }
593
+
594
+ export type MaterialCreateOrConnectWithoutBillOfMaterialInput = {
595
+ where: Prisma.MaterialWhereUniqueInput
596
+ create: Prisma.XOR<Prisma.MaterialCreateWithoutBillOfMaterialInput, Prisma.MaterialUncheckedCreateWithoutBillOfMaterialInput>
597
+ }
598
+
599
+ export type MaterialUpsertWithoutBillOfMaterialInput = {
600
+ update: Prisma.XOR<Prisma.MaterialUpdateWithoutBillOfMaterialInput, Prisma.MaterialUncheckedUpdateWithoutBillOfMaterialInput>
601
+ create: Prisma.XOR<Prisma.MaterialCreateWithoutBillOfMaterialInput, Prisma.MaterialUncheckedCreateWithoutBillOfMaterialInput>
602
+ where?: Prisma.MaterialWhereInput
603
+ }
604
+
605
+ export type MaterialUpdateToOneWithWhereWithoutBillOfMaterialInput = {
606
+ where?: Prisma.MaterialWhereInput
607
+ data: Prisma.XOR<Prisma.MaterialUpdateWithoutBillOfMaterialInput, Prisma.MaterialUncheckedUpdateWithoutBillOfMaterialInput>
608
+ }
609
+
610
+ export type MaterialUpdateWithoutBillOfMaterialInput = {
611
+ id?: Prisma.StringFieldUpdateOperationsInput | string
612
+ no?: Prisma.IntFieldUpdateOperationsInput | number
613
+ name?: Prisma.StringFieldUpdateOperationsInput | string
614
+ code?: Prisma.StringFieldUpdateOperationsInput | string
615
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
616
+ unit?: Prisma.StringFieldUpdateOperationsInput | string
617
+ status?: Prisma.StringFieldUpdateOperationsInput | string
618
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
619
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
620
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
621
+ pboFatAttributes?: Prisma.PboFatAttributesUpdateManyWithoutMaterialNestedInput
622
+ cableAttributes?: Prisma.CableAttributesUpdateManyWithoutMaterialNestedInput
623
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesUpdateManyWithoutMaterialNestedInput
624
+ }
625
+
626
+ export type MaterialUncheckedUpdateWithoutBillOfMaterialInput = {
627
+ id?: Prisma.StringFieldUpdateOperationsInput | string
628
+ no?: Prisma.IntFieldUpdateOperationsInput | number
629
+ name?: Prisma.StringFieldUpdateOperationsInput | string
630
+ code?: Prisma.StringFieldUpdateOperationsInput | string
631
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
632
+ unit?: Prisma.StringFieldUpdateOperationsInput | string
633
+ status?: Prisma.StringFieldUpdateOperationsInput | string
634
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
635
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
636
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
637
+ pboFatAttributes?: Prisma.PboFatAttributesUncheckedUpdateManyWithoutMaterialNestedInput
638
+ cableAttributes?: Prisma.CableAttributesUncheckedUpdateManyWithoutMaterialNestedInput
639
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesUncheckedUpdateManyWithoutMaterialNestedInput
640
+ }
641
+
642
+ export type MaterialCreateWithoutCableAttributesInput = {
643
+ id?: string
644
+ no?: number
645
+ name: string
646
+ code: string
647
+ description?: string | null
648
+ unit: string
649
+ status?: string
650
+ createdAt?: Date | string
651
+ updatedAt?: Date | string
652
+ deletedAt?: Date | string | null
653
+ billOfMaterial?: Prisma.MaterialBillOfMaterialCreateNestedManyWithoutMaterialInput
654
+ pboFatAttributes?: Prisma.PboFatAttributesCreateNestedManyWithoutMaterialInput
655
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesCreateNestedManyWithoutMaterialInput
656
+ }
657
+
658
+ export type MaterialUncheckedCreateWithoutCableAttributesInput = {
659
+ id?: string
660
+ no?: number
661
+ name: string
662
+ code: string
663
+ description?: string | null
664
+ unit: string
665
+ status?: string
666
+ createdAt?: Date | string
667
+ updatedAt?: Date | string
668
+ deletedAt?: Date | string | null
669
+ billOfMaterial?: Prisma.MaterialBillOfMaterialUncheckedCreateNestedManyWithoutMaterialInput
670
+ pboFatAttributes?: Prisma.PboFatAttributesUncheckedCreateNestedManyWithoutMaterialInput
671
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesUncheckedCreateNestedManyWithoutMaterialInput
672
+ }
673
+
674
+ export type MaterialCreateOrConnectWithoutCableAttributesInput = {
675
+ where: Prisma.MaterialWhereUniqueInput
676
+ create: Prisma.XOR<Prisma.MaterialCreateWithoutCableAttributesInput, Prisma.MaterialUncheckedCreateWithoutCableAttributesInput>
677
+ }
678
+
679
+ export type MaterialUpsertWithoutCableAttributesInput = {
680
+ update: Prisma.XOR<Prisma.MaterialUpdateWithoutCableAttributesInput, Prisma.MaterialUncheckedUpdateWithoutCableAttributesInput>
681
+ create: Prisma.XOR<Prisma.MaterialCreateWithoutCableAttributesInput, Prisma.MaterialUncheckedCreateWithoutCableAttributesInput>
682
+ where?: Prisma.MaterialWhereInput
683
+ }
684
+
685
+ export type MaterialUpdateToOneWithWhereWithoutCableAttributesInput = {
686
+ where?: Prisma.MaterialWhereInput
687
+ data: Prisma.XOR<Prisma.MaterialUpdateWithoutCableAttributesInput, Prisma.MaterialUncheckedUpdateWithoutCableAttributesInput>
688
+ }
689
+
690
+ export type MaterialUpdateWithoutCableAttributesInput = {
691
+ id?: Prisma.StringFieldUpdateOperationsInput | string
692
+ no?: Prisma.IntFieldUpdateOperationsInput | number
693
+ name?: Prisma.StringFieldUpdateOperationsInput | string
694
+ code?: Prisma.StringFieldUpdateOperationsInput | string
695
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
696
+ unit?: Prisma.StringFieldUpdateOperationsInput | string
697
+ status?: Prisma.StringFieldUpdateOperationsInput | string
698
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
699
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
700
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
701
+ billOfMaterial?: Prisma.MaterialBillOfMaterialUpdateManyWithoutMaterialNestedInput
702
+ pboFatAttributes?: Prisma.PboFatAttributesUpdateManyWithoutMaterialNestedInput
703
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesUpdateManyWithoutMaterialNestedInput
704
+ }
705
+
706
+ export type MaterialUncheckedUpdateWithoutCableAttributesInput = {
707
+ id?: Prisma.StringFieldUpdateOperationsInput | string
708
+ no?: Prisma.IntFieldUpdateOperationsInput | number
709
+ name?: Prisma.StringFieldUpdateOperationsInput | string
710
+ code?: Prisma.StringFieldUpdateOperationsInput | string
711
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
712
+ unit?: Prisma.StringFieldUpdateOperationsInput | string
713
+ status?: Prisma.StringFieldUpdateOperationsInput | string
714
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
715
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
716
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
717
+ billOfMaterial?: Prisma.MaterialBillOfMaterialUncheckedUpdateManyWithoutMaterialNestedInput
718
+ pboFatAttributes?: Prisma.PboFatAttributesUncheckedUpdateManyWithoutMaterialNestedInput
719
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesUncheckedUpdateManyWithoutMaterialNestedInput
720
+ }
721
+
722
+ export type MaterialCreateWithoutPboFatAttributesInput = {
723
+ id?: string
724
+ no?: number
725
+ name: string
726
+ code: string
727
+ description?: string | null
728
+ unit: string
729
+ status?: string
730
+ createdAt?: Date | string
731
+ updatedAt?: Date | string
732
+ deletedAt?: Date | string | null
733
+ billOfMaterial?: Prisma.MaterialBillOfMaterialCreateNestedManyWithoutMaterialInput
734
+ cableAttributes?: Prisma.CableAttributesCreateNestedManyWithoutMaterialInput
735
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesCreateNestedManyWithoutMaterialInput
736
+ }
737
+
738
+ export type MaterialUncheckedCreateWithoutPboFatAttributesInput = {
739
+ id?: string
740
+ no?: number
741
+ name: string
742
+ code: string
743
+ description?: string | null
744
+ unit: string
745
+ status?: string
746
+ createdAt?: Date | string
747
+ updatedAt?: Date | string
748
+ deletedAt?: Date | string | null
749
+ billOfMaterial?: Prisma.MaterialBillOfMaterialUncheckedCreateNestedManyWithoutMaterialInput
750
+ cableAttributes?: Prisma.CableAttributesUncheckedCreateNestedManyWithoutMaterialInput
751
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesUncheckedCreateNestedManyWithoutMaterialInput
752
+ }
753
+
754
+ export type MaterialCreateOrConnectWithoutPboFatAttributesInput = {
755
+ where: Prisma.MaterialWhereUniqueInput
756
+ create: Prisma.XOR<Prisma.MaterialCreateWithoutPboFatAttributesInput, Prisma.MaterialUncheckedCreateWithoutPboFatAttributesInput>
757
+ }
758
+
759
+ export type MaterialUpsertWithoutPboFatAttributesInput = {
760
+ update: Prisma.XOR<Prisma.MaterialUpdateWithoutPboFatAttributesInput, Prisma.MaterialUncheckedUpdateWithoutPboFatAttributesInput>
761
+ create: Prisma.XOR<Prisma.MaterialCreateWithoutPboFatAttributesInput, Prisma.MaterialUncheckedCreateWithoutPboFatAttributesInput>
762
+ where?: Prisma.MaterialWhereInput
763
+ }
764
+
765
+ export type MaterialUpdateToOneWithWhereWithoutPboFatAttributesInput = {
766
+ where?: Prisma.MaterialWhereInput
767
+ data: Prisma.XOR<Prisma.MaterialUpdateWithoutPboFatAttributesInput, Prisma.MaterialUncheckedUpdateWithoutPboFatAttributesInput>
768
+ }
769
+
770
+ export type MaterialUpdateWithoutPboFatAttributesInput = {
771
+ id?: Prisma.StringFieldUpdateOperationsInput | string
772
+ no?: Prisma.IntFieldUpdateOperationsInput | number
773
+ name?: Prisma.StringFieldUpdateOperationsInput | string
774
+ code?: Prisma.StringFieldUpdateOperationsInput | string
775
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
776
+ unit?: Prisma.StringFieldUpdateOperationsInput | string
777
+ status?: Prisma.StringFieldUpdateOperationsInput | string
778
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
779
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
780
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
781
+ billOfMaterial?: Prisma.MaterialBillOfMaterialUpdateManyWithoutMaterialNestedInput
782
+ cableAttributes?: Prisma.CableAttributesUpdateManyWithoutMaterialNestedInput
783
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesUpdateManyWithoutMaterialNestedInput
784
+ }
785
+
786
+ export type MaterialUncheckedUpdateWithoutPboFatAttributesInput = {
787
+ id?: Prisma.StringFieldUpdateOperationsInput | string
788
+ no?: Prisma.IntFieldUpdateOperationsInput | number
789
+ name?: Prisma.StringFieldUpdateOperationsInput | string
790
+ code?: Prisma.StringFieldUpdateOperationsInput | string
791
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
792
+ unit?: Prisma.StringFieldUpdateOperationsInput | string
793
+ status?: Prisma.StringFieldUpdateOperationsInput | string
794
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
795
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
796
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
797
+ billOfMaterial?: Prisma.MaterialBillOfMaterialUncheckedUpdateManyWithoutMaterialNestedInput
798
+ cableAttributes?: Prisma.CableAttributesUncheckedUpdateManyWithoutMaterialNestedInput
799
+ spliceClosureAttributes?: Prisma.SpliceClosureAttributesUncheckedUpdateManyWithoutMaterialNestedInput
800
+ }
801
+
802
+ export type MaterialCreateWithoutSpliceClosureAttributesInput = {
803
+ id?: string
804
+ no?: number
805
+ name: string
806
+ code: string
807
+ description?: string | null
808
+ unit: string
809
+ status?: string
810
+ createdAt?: Date | string
811
+ updatedAt?: Date | string
812
+ deletedAt?: Date | string | null
813
+ billOfMaterial?: Prisma.MaterialBillOfMaterialCreateNestedManyWithoutMaterialInput
814
+ pboFatAttributes?: Prisma.PboFatAttributesCreateNestedManyWithoutMaterialInput
815
+ cableAttributes?: Prisma.CableAttributesCreateNestedManyWithoutMaterialInput
816
+ }
817
+
818
+ export type MaterialUncheckedCreateWithoutSpliceClosureAttributesInput = {
819
+ id?: string
820
+ no?: number
821
+ name: string
822
+ code: string
823
+ description?: string | null
824
+ unit: string
825
+ status?: string
826
+ createdAt?: Date | string
827
+ updatedAt?: Date | string
828
+ deletedAt?: Date | string | null
829
+ billOfMaterial?: Prisma.MaterialBillOfMaterialUncheckedCreateNestedManyWithoutMaterialInput
830
+ pboFatAttributes?: Prisma.PboFatAttributesUncheckedCreateNestedManyWithoutMaterialInput
831
+ cableAttributes?: Prisma.CableAttributesUncheckedCreateNestedManyWithoutMaterialInput
832
+ }
833
+
834
+ export type MaterialCreateOrConnectWithoutSpliceClosureAttributesInput = {
835
+ where: Prisma.MaterialWhereUniqueInput
836
+ create: Prisma.XOR<Prisma.MaterialCreateWithoutSpliceClosureAttributesInput, Prisma.MaterialUncheckedCreateWithoutSpliceClosureAttributesInput>
837
+ }
838
+
839
+ export type MaterialUpsertWithoutSpliceClosureAttributesInput = {
840
+ update: Prisma.XOR<Prisma.MaterialUpdateWithoutSpliceClosureAttributesInput, Prisma.MaterialUncheckedUpdateWithoutSpliceClosureAttributesInput>
841
+ create: Prisma.XOR<Prisma.MaterialCreateWithoutSpliceClosureAttributesInput, Prisma.MaterialUncheckedCreateWithoutSpliceClosureAttributesInput>
842
+ where?: Prisma.MaterialWhereInput
843
+ }
844
+
845
+ export type MaterialUpdateToOneWithWhereWithoutSpliceClosureAttributesInput = {
846
+ where?: Prisma.MaterialWhereInput
847
+ data: Prisma.XOR<Prisma.MaterialUpdateWithoutSpliceClosureAttributesInput, Prisma.MaterialUncheckedUpdateWithoutSpliceClosureAttributesInput>
848
+ }
849
+
850
+ export type MaterialUpdateWithoutSpliceClosureAttributesInput = {
851
+ id?: Prisma.StringFieldUpdateOperationsInput | string
852
+ no?: Prisma.IntFieldUpdateOperationsInput | number
853
+ name?: Prisma.StringFieldUpdateOperationsInput | string
854
+ code?: Prisma.StringFieldUpdateOperationsInput | string
855
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
856
+ unit?: Prisma.StringFieldUpdateOperationsInput | string
857
+ status?: Prisma.StringFieldUpdateOperationsInput | string
858
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
859
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
860
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
861
+ billOfMaterial?: Prisma.MaterialBillOfMaterialUpdateManyWithoutMaterialNestedInput
862
+ pboFatAttributes?: Prisma.PboFatAttributesUpdateManyWithoutMaterialNestedInput
863
+ cableAttributes?: Prisma.CableAttributesUpdateManyWithoutMaterialNestedInput
864
+ }
865
+
866
+ export type MaterialUncheckedUpdateWithoutSpliceClosureAttributesInput = {
867
+ id?: Prisma.StringFieldUpdateOperationsInput | string
868
+ no?: Prisma.IntFieldUpdateOperationsInput | number
869
+ name?: Prisma.StringFieldUpdateOperationsInput | string
870
+ code?: Prisma.StringFieldUpdateOperationsInput | string
871
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
872
+ unit?: Prisma.StringFieldUpdateOperationsInput | string
873
+ status?: Prisma.StringFieldUpdateOperationsInput | string
874
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
875
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
876
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
877
+ billOfMaterial?: Prisma.MaterialBillOfMaterialUncheckedUpdateManyWithoutMaterialNestedInput
878
+ pboFatAttributes?: Prisma.PboFatAttributesUncheckedUpdateManyWithoutMaterialNestedInput
879
+ cableAttributes?: Prisma.CableAttributesUncheckedUpdateManyWithoutMaterialNestedInput
880
+ }
881
+
882
+
883
+ /**
884
+ * Count Type MaterialCountOutputType
885
+ */
886
+
887
+ export type MaterialCountOutputType = {
888
+ billOfMaterial: number
889
+ pboFatAttributes: number
890
+ cableAttributes: number
891
+ spliceClosureAttributes: number
892
+ }
893
+
894
+ export type MaterialCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
895
+ billOfMaterial?: boolean | MaterialCountOutputTypeCountBillOfMaterialArgs
896
+ pboFatAttributes?: boolean | MaterialCountOutputTypeCountPboFatAttributesArgs
897
+ cableAttributes?: boolean | MaterialCountOutputTypeCountCableAttributesArgs
898
+ spliceClosureAttributes?: boolean | MaterialCountOutputTypeCountSpliceClosureAttributesArgs
899
+ }
900
+
901
+ /**
902
+ * MaterialCountOutputType without action
903
+ */
904
+ export type MaterialCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
905
+ /**
906
+ * Select specific fields to fetch from the MaterialCountOutputType
907
+ */
908
+ select?: Prisma.MaterialCountOutputTypeSelect<ExtArgs> | null
909
+ }
910
+
911
+ /**
912
+ * MaterialCountOutputType without action
913
+ */
914
+ export type MaterialCountOutputTypeCountBillOfMaterialArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
915
+ where?: Prisma.MaterialBillOfMaterialWhereInput
916
+ }
917
+
918
+ /**
919
+ * MaterialCountOutputType without action
920
+ */
921
+ export type MaterialCountOutputTypeCountPboFatAttributesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
922
+ where?: Prisma.PboFatAttributesWhereInput
923
+ }
924
+
925
+ /**
926
+ * MaterialCountOutputType without action
927
+ */
928
+ export type MaterialCountOutputTypeCountCableAttributesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
929
+ where?: Prisma.CableAttributesWhereInput
930
+ }
931
+
932
+ /**
933
+ * MaterialCountOutputType without action
934
+ */
935
+ export type MaterialCountOutputTypeCountSpliceClosureAttributesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
936
+ where?: Prisma.SpliceClosureAttributesWhereInput
937
+ }
938
+
939
+
940
+ export type MaterialSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
941
+ id?: boolean
942
+ no?: boolean
943
+ name?: boolean
944
+ code?: boolean
945
+ description?: boolean
946
+ unit?: boolean
947
+ status?: boolean
948
+ createdAt?: boolean
949
+ updatedAt?: boolean
950
+ deletedAt?: boolean
951
+ billOfMaterial?: boolean | Prisma.Material$billOfMaterialArgs<ExtArgs>
952
+ pboFatAttributes?: boolean | Prisma.Material$pboFatAttributesArgs<ExtArgs>
953
+ cableAttributes?: boolean | Prisma.Material$cableAttributesArgs<ExtArgs>
954
+ spliceClosureAttributes?: boolean | Prisma.Material$spliceClosureAttributesArgs<ExtArgs>
955
+ _count?: boolean | Prisma.MaterialCountOutputTypeDefaultArgs<ExtArgs>
956
+ }, ExtArgs["result"]["material"]>
957
+
958
+ export type MaterialSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
959
+ id?: boolean
960
+ no?: boolean
961
+ name?: boolean
962
+ code?: boolean
963
+ description?: boolean
964
+ unit?: boolean
965
+ status?: boolean
966
+ createdAt?: boolean
967
+ updatedAt?: boolean
968
+ deletedAt?: boolean
969
+ }, ExtArgs["result"]["material"]>
970
+
971
+ export type MaterialSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
972
+ id?: boolean
973
+ no?: boolean
974
+ name?: boolean
975
+ code?: boolean
976
+ description?: boolean
977
+ unit?: boolean
978
+ status?: boolean
979
+ createdAt?: boolean
980
+ updatedAt?: boolean
981
+ deletedAt?: boolean
982
+ }, ExtArgs["result"]["material"]>
983
+
984
+ export type MaterialSelectScalar = {
985
+ id?: boolean
986
+ no?: boolean
987
+ name?: boolean
988
+ code?: boolean
989
+ description?: boolean
990
+ unit?: boolean
991
+ status?: boolean
992
+ createdAt?: boolean
993
+ updatedAt?: boolean
994
+ deletedAt?: boolean
995
+ }
996
+
997
+ export type MaterialOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "no" | "name" | "code" | "description" | "unit" | "status" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["material"]>
998
+ export type MaterialInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
999
+ billOfMaterial?: boolean | Prisma.Material$billOfMaterialArgs<ExtArgs>
1000
+ pboFatAttributes?: boolean | Prisma.Material$pboFatAttributesArgs<ExtArgs>
1001
+ cableAttributes?: boolean | Prisma.Material$cableAttributesArgs<ExtArgs>
1002
+ spliceClosureAttributes?: boolean | Prisma.Material$spliceClosureAttributesArgs<ExtArgs>
1003
+ _count?: boolean | Prisma.MaterialCountOutputTypeDefaultArgs<ExtArgs>
1004
+ }
1005
+ export type MaterialIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
1006
+ export type MaterialIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
1007
+
1008
+ export type $MaterialPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1009
+ name: "Material"
1010
+ objects: {
1011
+ billOfMaterial: Prisma.$MaterialBillOfMaterialPayload<ExtArgs>[]
1012
+ pboFatAttributes: Prisma.$PboFatAttributesPayload<ExtArgs>[]
1013
+ cableAttributes: Prisma.$CableAttributesPayload<ExtArgs>[]
1014
+ spliceClosureAttributes: Prisma.$SpliceClosureAttributesPayload<ExtArgs>[]
1015
+ }
1016
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1017
+ id: string
1018
+ no: number
1019
+ name: string
1020
+ code: string
1021
+ description: string | null
1022
+ unit: string
1023
+ status: string
1024
+ createdAt: Date
1025
+ updatedAt: Date
1026
+ deletedAt: Date | null
1027
+ }, ExtArgs["result"]["material"]>
1028
+ composites: {}
1029
+ }
1030
+
1031
+ export type MaterialGetPayload<S extends boolean | null | undefined | MaterialDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MaterialPayload, S>
1032
+
1033
+ export type MaterialCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1034
+ Omit<MaterialFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1035
+ select?: MaterialCountAggregateInputType | true
1036
+ }
1037
+
1038
+ export interface MaterialDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1039
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Material'], meta: { name: 'Material' } }
1040
+ /**
1041
+ * Find zero or one Material that matches the filter.
1042
+ * @param {MaterialFindUniqueArgs} args - Arguments to find a Material
1043
+ * @example
1044
+ * // Get one Material
1045
+ * const material = await prisma.material.findUnique({
1046
+ * where: {
1047
+ * // ... provide filter here
1048
+ * }
1049
+ * })
1050
+ */
1051
+ findUnique<T extends MaterialFindUniqueArgs>(args: Prisma.SelectSubset<T, MaterialFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MaterialClient<runtime.Types.Result.GetResult<Prisma.$MaterialPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1052
+
1053
+ /**
1054
+ * Find one Material that matches the filter or throw an error with `error.code='P2025'`
1055
+ * if no matches were found.
1056
+ * @param {MaterialFindUniqueOrThrowArgs} args - Arguments to find a Material
1057
+ * @example
1058
+ * // Get one Material
1059
+ * const material = await prisma.material.findUniqueOrThrow({
1060
+ * where: {
1061
+ * // ... provide filter here
1062
+ * }
1063
+ * })
1064
+ */
1065
+ findUniqueOrThrow<T extends MaterialFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MaterialFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MaterialClient<runtime.Types.Result.GetResult<Prisma.$MaterialPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1066
+
1067
+ /**
1068
+ * Find the first Material that matches the filter.
1069
+ * Note, that providing `undefined` is treated as the value not being there.
1070
+ * Read more here: https://pris.ly/d/null-undefined
1071
+ * @param {MaterialFindFirstArgs} args - Arguments to find a Material
1072
+ * @example
1073
+ * // Get one Material
1074
+ * const material = await prisma.material.findFirst({
1075
+ * where: {
1076
+ * // ... provide filter here
1077
+ * }
1078
+ * })
1079
+ */
1080
+ findFirst<T extends MaterialFindFirstArgs>(args?: Prisma.SelectSubset<T, MaterialFindFirstArgs<ExtArgs>>): Prisma.Prisma__MaterialClient<runtime.Types.Result.GetResult<Prisma.$MaterialPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1081
+
1082
+ /**
1083
+ * Find the first Material that matches the filter or
1084
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1085
+ * Note, that providing `undefined` is treated as the value not being there.
1086
+ * Read more here: https://pris.ly/d/null-undefined
1087
+ * @param {MaterialFindFirstOrThrowArgs} args - Arguments to find a Material
1088
+ * @example
1089
+ * // Get one Material
1090
+ * const material = await prisma.material.findFirstOrThrow({
1091
+ * where: {
1092
+ * // ... provide filter here
1093
+ * }
1094
+ * })
1095
+ */
1096
+ findFirstOrThrow<T extends MaterialFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MaterialFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MaterialClient<runtime.Types.Result.GetResult<Prisma.$MaterialPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1097
+
1098
+ /**
1099
+ * Find zero or more Materials that matches the filter.
1100
+ * Note, that providing `undefined` is treated as the value not being there.
1101
+ * Read more here: https://pris.ly/d/null-undefined
1102
+ * @param {MaterialFindManyArgs} args - Arguments to filter and select certain fields only.
1103
+ * @example
1104
+ * // Get all Materials
1105
+ * const materials = await prisma.material.findMany()
1106
+ *
1107
+ * // Get first 10 Materials
1108
+ * const materials = await prisma.material.findMany({ take: 10 })
1109
+ *
1110
+ * // Only select the `id`
1111
+ * const materialWithIdOnly = await prisma.material.findMany({ select: { id: true } })
1112
+ *
1113
+ */
1114
+ findMany<T extends MaterialFindManyArgs>(args?: Prisma.SelectSubset<T, MaterialFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MaterialPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1115
+
1116
+ /**
1117
+ * Create a Material.
1118
+ * @param {MaterialCreateArgs} args - Arguments to create a Material.
1119
+ * @example
1120
+ * // Create one Material
1121
+ * const Material = await prisma.material.create({
1122
+ * data: {
1123
+ * // ... data to create a Material
1124
+ * }
1125
+ * })
1126
+ *
1127
+ */
1128
+ create<T extends MaterialCreateArgs>(args: Prisma.SelectSubset<T, MaterialCreateArgs<ExtArgs>>): Prisma.Prisma__MaterialClient<runtime.Types.Result.GetResult<Prisma.$MaterialPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1129
+
1130
+ /**
1131
+ * Create many Materials.
1132
+ * @param {MaterialCreateManyArgs} args - Arguments to create many Materials.
1133
+ * @example
1134
+ * // Create many Materials
1135
+ * const material = await prisma.material.createMany({
1136
+ * data: [
1137
+ * // ... provide data here
1138
+ * ]
1139
+ * })
1140
+ *
1141
+ */
1142
+ createMany<T extends MaterialCreateManyArgs>(args?: Prisma.SelectSubset<T, MaterialCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1143
+
1144
+ /**
1145
+ * Create many Materials and returns the data saved in the database.
1146
+ * @param {MaterialCreateManyAndReturnArgs} args - Arguments to create many Materials.
1147
+ * @example
1148
+ * // Create many Materials
1149
+ * const material = await prisma.material.createManyAndReturn({
1150
+ * data: [
1151
+ * // ... provide data here
1152
+ * ]
1153
+ * })
1154
+ *
1155
+ * // Create many Materials and only return the `id`
1156
+ * const materialWithIdOnly = await prisma.material.createManyAndReturn({
1157
+ * select: { id: true },
1158
+ * data: [
1159
+ * // ... provide data here
1160
+ * ]
1161
+ * })
1162
+ * Note, that providing `undefined` is treated as the value not being there.
1163
+ * Read more here: https://pris.ly/d/null-undefined
1164
+ *
1165
+ */
1166
+ createManyAndReturn<T extends MaterialCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MaterialCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MaterialPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1167
+
1168
+ /**
1169
+ * Delete a Material.
1170
+ * @param {MaterialDeleteArgs} args - Arguments to delete one Material.
1171
+ * @example
1172
+ * // Delete one Material
1173
+ * const Material = await prisma.material.delete({
1174
+ * where: {
1175
+ * // ... filter to delete one Material
1176
+ * }
1177
+ * })
1178
+ *
1179
+ */
1180
+ delete<T extends MaterialDeleteArgs>(args: Prisma.SelectSubset<T, MaterialDeleteArgs<ExtArgs>>): Prisma.Prisma__MaterialClient<runtime.Types.Result.GetResult<Prisma.$MaterialPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1181
+
1182
+ /**
1183
+ * Update one Material.
1184
+ * @param {MaterialUpdateArgs} args - Arguments to update one Material.
1185
+ * @example
1186
+ * // Update one Material
1187
+ * const material = await prisma.material.update({
1188
+ * where: {
1189
+ * // ... provide filter here
1190
+ * },
1191
+ * data: {
1192
+ * // ... provide data here
1193
+ * }
1194
+ * })
1195
+ *
1196
+ */
1197
+ update<T extends MaterialUpdateArgs>(args: Prisma.SelectSubset<T, MaterialUpdateArgs<ExtArgs>>): Prisma.Prisma__MaterialClient<runtime.Types.Result.GetResult<Prisma.$MaterialPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1198
+
1199
+ /**
1200
+ * Delete zero or more Materials.
1201
+ * @param {MaterialDeleteManyArgs} args - Arguments to filter Materials to delete.
1202
+ * @example
1203
+ * // Delete a few Materials
1204
+ * const { count } = await prisma.material.deleteMany({
1205
+ * where: {
1206
+ * // ... provide filter here
1207
+ * }
1208
+ * })
1209
+ *
1210
+ */
1211
+ deleteMany<T extends MaterialDeleteManyArgs>(args?: Prisma.SelectSubset<T, MaterialDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1212
+
1213
+ /**
1214
+ * Update zero or more Materials.
1215
+ * Note, that providing `undefined` is treated as the value not being there.
1216
+ * Read more here: https://pris.ly/d/null-undefined
1217
+ * @param {MaterialUpdateManyArgs} args - Arguments to update one or more rows.
1218
+ * @example
1219
+ * // Update many Materials
1220
+ * const material = await prisma.material.updateMany({
1221
+ * where: {
1222
+ * // ... provide filter here
1223
+ * },
1224
+ * data: {
1225
+ * // ... provide data here
1226
+ * }
1227
+ * })
1228
+ *
1229
+ */
1230
+ updateMany<T extends MaterialUpdateManyArgs>(args: Prisma.SelectSubset<T, MaterialUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1231
+
1232
+ /**
1233
+ * Update zero or more Materials and returns the data updated in the database.
1234
+ * @param {MaterialUpdateManyAndReturnArgs} args - Arguments to update many Materials.
1235
+ * @example
1236
+ * // Update many Materials
1237
+ * const material = await prisma.material.updateManyAndReturn({
1238
+ * where: {
1239
+ * // ... provide filter here
1240
+ * },
1241
+ * data: [
1242
+ * // ... provide data here
1243
+ * ]
1244
+ * })
1245
+ *
1246
+ * // Update zero or more Materials and only return the `id`
1247
+ * const materialWithIdOnly = await prisma.material.updateManyAndReturn({
1248
+ * select: { id: true },
1249
+ * where: {
1250
+ * // ... provide filter here
1251
+ * },
1252
+ * data: [
1253
+ * // ... provide data here
1254
+ * ]
1255
+ * })
1256
+ * Note, that providing `undefined` is treated as the value not being there.
1257
+ * Read more here: https://pris.ly/d/null-undefined
1258
+ *
1259
+ */
1260
+ updateManyAndReturn<T extends MaterialUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MaterialUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MaterialPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1261
+
1262
+ /**
1263
+ * Create or update one Material.
1264
+ * @param {MaterialUpsertArgs} args - Arguments to update or create a Material.
1265
+ * @example
1266
+ * // Update or create a Material
1267
+ * const material = await prisma.material.upsert({
1268
+ * create: {
1269
+ * // ... data to create a Material
1270
+ * },
1271
+ * update: {
1272
+ * // ... in case it already exists, update
1273
+ * },
1274
+ * where: {
1275
+ * // ... the filter for the Material we want to update
1276
+ * }
1277
+ * })
1278
+ */
1279
+ upsert<T extends MaterialUpsertArgs>(args: Prisma.SelectSubset<T, MaterialUpsertArgs<ExtArgs>>): Prisma.Prisma__MaterialClient<runtime.Types.Result.GetResult<Prisma.$MaterialPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1280
+
1281
+
1282
+ /**
1283
+ * Count the number of Materials.
1284
+ * Note, that providing `undefined` is treated as the value not being there.
1285
+ * Read more here: https://pris.ly/d/null-undefined
1286
+ * @param {MaterialCountArgs} args - Arguments to filter Materials to count.
1287
+ * @example
1288
+ * // Count the number of Materials
1289
+ * const count = await prisma.material.count({
1290
+ * where: {
1291
+ * // ... the filter for the Materials we want to count
1292
+ * }
1293
+ * })
1294
+ **/
1295
+ count<T extends MaterialCountArgs>(
1296
+ args?: Prisma.Subset<T, MaterialCountArgs>,
1297
+ ): Prisma.PrismaPromise<
1298
+ T extends runtime.Types.Utils.Record<'select', any>
1299
+ ? T['select'] extends true
1300
+ ? number
1301
+ : Prisma.GetScalarType<T['select'], MaterialCountAggregateOutputType>
1302
+ : number
1303
+ >
1304
+
1305
+ /**
1306
+ * Allows you to perform aggregations operations on a Material.
1307
+ * Note, that providing `undefined` is treated as the value not being there.
1308
+ * Read more here: https://pris.ly/d/null-undefined
1309
+ * @param {MaterialAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1310
+ * @example
1311
+ * // Ordered by age ascending
1312
+ * // Where email contains prisma.io
1313
+ * // Limited to the 10 users
1314
+ * const aggregations = await prisma.user.aggregate({
1315
+ * _avg: {
1316
+ * age: true,
1317
+ * },
1318
+ * where: {
1319
+ * email: {
1320
+ * contains: "prisma.io",
1321
+ * },
1322
+ * },
1323
+ * orderBy: {
1324
+ * age: "asc",
1325
+ * },
1326
+ * take: 10,
1327
+ * })
1328
+ **/
1329
+ aggregate<T extends MaterialAggregateArgs>(args: Prisma.Subset<T, MaterialAggregateArgs>): Prisma.PrismaPromise<GetMaterialAggregateType<T>>
1330
+
1331
+ /**
1332
+ * Group by Material.
1333
+ * Note, that providing `undefined` is treated as the value not being there.
1334
+ * Read more here: https://pris.ly/d/null-undefined
1335
+ * @param {MaterialGroupByArgs} args - Group by arguments.
1336
+ * @example
1337
+ * // Group by city, order by createdAt, get count
1338
+ * const result = await prisma.user.groupBy({
1339
+ * by: ['city', 'createdAt'],
1340
+ * orderBy: {
1341
+ * createdAt: true
1342
+ * },
1343
+ * _count: {
1344
+ * _all: true
1345
+ * },
1346
+ * })
1347
+ *
1348
+ **/
1349
+ groupBy<
1350
+ T extends MaterialGroupByArgs,
1351
+ HasSelectOrTake extends Prisma.Or<
1352
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1353
+ Prisma.Extends<'take', Prisma.Keys<T>>
1354
+ >,
1355
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1356
+ ? { orderBy: MaterialGroupByArgs['orderBy'] }
1357
+ : { orderBy?: MaterialGroupByArgs['orderBy'] },
1358
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1359
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1360
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1361
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1362
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1363
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1364
+ InputErrors extends ByEmpty extends Prisma.True
1365
+ ? `Error: "by" must not be empty.`
1366
+ : HavingValid extends Prisma.False
1367
+ ? {
1368
+ [P in HavingFields]: P extends ByFields
1369
+ ? never
1370
+ : P extends string
1371
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1372
+ : [
1373
+ Error,
1374
+ 'Field ',
1375
+ P,
1376
+ ` in "having" needs to be provided in "by"`,
1377
+ ]
1378
+ }[HavingFields]
1379
+ : 'take' extends Prisma.Keys<T>
1380
+ ? 'orderBy' extends Prisma.Keys<T>
1381
+ ? ByValid extends Prisma.True
1382
+ ? {}
1383
+ : {
1384
+ [P in OrderFields]: P extends ByFields
1385
+ ? never
1386
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1387
+ }[OrderFields]
1388
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1389
+ : 'skip' extends Prisma.Keys<T>
1390
+ ? 'orderBy' extends Prisma.Keys<T>
1391
+ ? ByValid extends Prisma.True
1392
+ ? {}
1393
+ : {
1394
+ [P in OrderFields]: P extends ByFields
1395
+ ? never
1396
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1397
+ }[OrderFields]
1398
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1399
+ : ByValid extends Prisma.True
1400
+ ? {}
1401
+ : {
1402
+ [P in OrderFields]: P extends ByFields
1403
+ ? never
1404
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1405
+ }[OrderFields]
1406
+ >(args: Prisma.SubsetIntersection<T, MaterialGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMaterialGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1407
+ /**
1408
+ * Fields of the Material model
1409
+ */
1410
+ readonly fields: MaterialFieldRefs;
1411
+ }
1412
+
1413
+ /**
1414
+ * The delegate class that acts as a "Promise-like" for Material.
1415
+ * Why is this prefixed with `Prisma__`?
1416
+ * Because we want to prevent naming conflicts as mentioned in
1417
+ * https://github.com/prisma/prisma-client-js/issues/707
1418
+ */
1419
+ export interface Prisma__MaterialClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1420
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1421
+ billOfMaterial<T extends Prisma.Material$billOfMaterialArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Material$billOfMaterialArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MaterialBillOfMaterialPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1422
+ pboFatAttributes<T extends Prisma.Material$pboFatAttributesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Material$pboFatAttributesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PboFatAttributesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1423
+ cableAttributes<T extends Prisma.Material$cableAttributesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Material$cableAttributesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CableAttributesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1424
+ spliceClosureAttributes<T extends Prisma.Material$spliceClosureAttributesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Material$spliceClosureAttributesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SpliceClosureAttributesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1425
+ /**
1426
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1427
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1428
+ * @param onrejected The callback to execute when the Promise is rejected.
1429
+ * @returns A Promise for the completion of which ever callback is executed.
1430
+ */
1431
+ 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>
1432
+ /**
1433
+ * Attaches a callback for only the rejection of the Promise.
1434
+ * @param onrejected The callback to execute when the Promise is rejected.
1435
+ * @returns A Promise for the completion of the callback.
1436
+ */
1437
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1438
+ /**
1439
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1440
+ * resolved value cannot be modified from the callback.
1441
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1442
+ * @returns A Promise for the completion of the callback.
1443
+ */
1444
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1445
+ }
1446
+
1447
+
1448
+
1449
+
1450
+ /**
1451
+ * Fields of the Material model
1452
+ */
1453
+ export interface MaterialFieldRefs {
1454
+ readonly id: Prisma.FieldRef<"Material", 'String'>
1455
+ readonly no: Prisma.FieldRef<"Material", 'Int'>
1456
+ readonly name: Prisma.FieldRef<"Material", 'String'>
1457
+ readonly code: Prisma.FieldRef<"Material", 'String'>
1458
+ readonly description: Prisma.FieldRef<"Material", 'String'>
1459
+ readonly unit: Prisma.FieldRef<"Material", 'String'>
1460
+ readonly status: Prisma.FieldRef<"Material", 'String'>
1461
+ readonly createdAt: Prisma.FieldRef<"Material", 'DateTime'>
1462
+ readonly updatedAt: Prisma.FieldRef<"Material", 'DateTime'>
1463
+ readonly deletedAt: Prisma.FieldRef<"Material", 'DateTime'>
1464
+ }
1465
+
1466
+
1467
+ // Custom InputTypes
1468
+ /**
1469
+ * Material findUnique
1470
+ */
1471
+ export type MaterialFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1472
+ /**
1473
+ * Select specific fields to fetch from the Material
1474
+ */
1475
+ select?: Prisma.MaterialSelect<ExtArgs> | null
1476
+ /**
1477
+ * Omit specific fields from the Material
1478
+ */
1479
+ omit?: Prisma.MaterialOmit<ExtArgs> | null
1480
+ /**
1481
+ * Choose, which related nodes to fetch as well
1482
+ */
1483
+ include?: Prisma.MaterialInclude<ExtArgs> | null
1484
+ /**
1485
+ * Filter, which Material to fetch.
1486
+ */
1487
+ where: Prisma.MaterialWhereUniqueInput
1488
+ }
1489
+
1490
+ /**
1491
+ * Material findUniqueOrThrow
1492
+ */
1493
+ export type MaterialFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1494
+ /**
1495
+ * Select specific fields to fetch from the Material
1496
+ */
1497
+ select?: Prisma.MaterialSelect<ExtArgs> | null
1498
+ /**
1499
+ * Omit specific fields from the Material
1500
+ */
1501
+ omit?: Prisma.MaterialOmit<ExtArgs> | null
1502
+ /**
1503
+ * Choose, which related nodes to fetch as well
1504
+ */
1505
+ include?: Prisma.MaterialInclude<ExtArgs> | null
1506
+ /**
1507
+ * Filter, which Material to fetch.
1508
+ */
1509
+ where: Prisma.MaterialWhereUniqueInput
1510
+ }
1511
+
1512
+ /**
1513
+ * Material findFirst
1514
+ */
1515
+ export type MaterialFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1516
+ /**
1517
+ * Select specific fields to fetch from the Material
1518
+ */
1519
+ select?: Prisma.MaterialSelect<ExtArgs> | null
1520
+ /**
1521
+ * Omit specific fields from the Material
1522
+ */
1523
+ omit?: Prisma.MaterialOmit<ExtArgs> | null
1524
+ /**
1525
+ * Choose, which related nodes to fetch as well
1526
+ */
1527
+ include?: Prisma.MaterialInclude<ExtArgs> | null
1528
+ /**
1529
+ * Filter, which Material to fetch.
1530
+ */
1531
+ where?: Prisma.MaterialWhereInput
1532
+ /**
1533
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1534
+ *
1535
+ * Determine the order of Materials to fetch.
1536
+ */
1537
+ orderBy?: Prisma.MaterialOrderByWithRelationInput | Prisma.MaterialOrderByWithRelationInput[]
1538
+ /**
1539
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1540
+ *
1541
+ * Sets the position for searching for Materials.
1542
+ */
1543
+ cursor?: Prisma.MaterialWhereUniqueInput
1544
+ /**
1545
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1546
+ *
1547
+ * Take `±n` Materials from the position of the cursor.
1548
+ */
1549
+ take?: number
1550
+ /**
1551
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1552
+ *
1553
+ * Skip the first `n` Materials.
1554
+ */
1555
+ skip?: number
1556
+ /**
1557
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1558
+ *
1559
+ * Filter by unique combinations of Materials.
1560
+ */
1561
+ distinct?: Prisma.MaterialScalarFieldEnum | Prisma.MaterialScalarFieldEnum[]
1562
+ }
1563
+
1564
+ /**
1565
+ * Material findFirstOrThrow
1566
+ */
1567
+ export type MaterialFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1568
+ /**
1569
+ * Select specific fields to fetch from the Material
1570
+ */
1571
+ select?: Prisma.MaterialSelect<ExtArgs> | null
1572
+ /**
1573
+ * Omit specific fields from the Material
1574
+ */
1575
+ omit?: Prisma.MaterialOmit<ExtArgs> | null
1576
+ /**
1577
+ * Choose, which related nodes to fetch as well
1578
+ */
1579
+ include?: Prisma.MaterialInclude<ExtArgs> | null
1580
+ /**
1581
+ * Filter, which Material to fetch.
1582
+ */
1583
+ where?: Prisma.MaterialWhereInput
1584
+ /**
1585
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1586
+ *
1587
+ * Determine the order of Materials to fetch.
1588
+ */
1589
+ orderBy?: Prisma.MaterialOrderByWithRelationInput | Prisma.MaterialOrderByWithRelationInput[]
1590
+ /**
1591
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1592
+ *
1593
+ * Sets the position for searching for Materials.
1594
+ */
1595
+ cursor?: Prisma.MaterialWhereUniqueInput
1596
+ /**
1597
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1598
+ *
1599
+ * Take `±n` Materials from the position of the cursor.
1600
+ */
1601
+ take?: number
1602
+ /**
1603
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1604
+ *
1605
+ * Skip the first `n` Materials.
1606
+ */
1607
+ skip?: number
1608
+ /**
1609
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1610
+ *
1611
+ * Filter by unique combinations of Materials.
1612
+ */
1613
+ distinct?: Prisma.MaterialScalarFieldEnum | Prisma.MaterialScalarFieldEnum[]
1614
+ }
1615
+
1616
+ /**
1617
+ * Material findMany
1618
+ */
1619
+ export type MaterialFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1620
+ /**
1621
+ * Select specific fields to fetch from the Material
1622
+ */
1623
+ select?: Prisma.MaterialSelect<ExtArgs> | null
1624
+ /**
1625
+ * Omit specific fields from the Material
1626
+ */
1627
+ omit?: Prisma.MaterialOmit<ExtArgs> | null
1628
+ /**
1629
+ * Choose, which related nodes to fetch as well
1630
+ */
1631
+ include?: Prisma.MaterialInclude<ExtArgs> | null
1632
+ /**
1633
+ * Filter, which Materials to fetch.
1634
+ */
1635
+ where?: Prisma.MaterialWhereInput
1636
+ /**
1637
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1638
+ *
1639
+ * Determine the order of Materials to fetch.
1640
+ */
1641
+ orderBy?: Prisma.MaterialOrderByWithRelationInput | Prisma.MaterialOrderByWithRelationInput[]
1642
+ /**
1643
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1644
+ *
1645
+ * Sets the position for listing Materials.
1646
+ */
1647
+ cursor?: Prisma.MaterialWhereUniqueInput
1648
+ /**
1649
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1650
+ *
1651
+ * Take `±n` Materials from the position of the cursor.
1652
+ */
1653
+ take?: number
1654
+ /**
1655
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1656
+ *
1657
+ * Skip the first `n` Materials.
1658
+ */
1659
+ skip?: number
1660
+ distinct?: Prisma.MaterialScalarFieldEnum | Prisma.MaterialScalarFieldEnum[]
1661
+ }
1662
+
1663
+ /**
1664
+ * Material create
1665
+ */
1666
+ export type MaterialCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1667
+ /**
1668
+ * Select specific fields to fetch from the Material
1669
+ */
1670
+ select?: Prisma.MaterialSelect<ExtArgs> | null
1671
+ /**
1672
+ * Omit specific fields from the Material
1673
+ */
1674
+ omit?: Prisma.MaterialOmit<ExtArgs> | null
1675
+ /**
1676
+ * Choose, which related nodes to fetch as well
1677
+ */
1678
+ include?: Prisma.MaterialInclude<ExtArgs> | null
1679
+ /**
1680
+ * The data needed to create a Material.
1681
+ */
1682
+ data: Prisma.XOR<Prisma.MaterialCreateInput, Prisma.MaterialUncheckedCreateInput>
1683
+ }
1684
+
1685
+ /**
1686
+ * Material createMany
1687
+ */
1688
+ export type MaterialCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1689
+ /**
1690
+ * The data used to create many Materials.
1691
+ */
1692
+ data: Prisma.MaterialCreateManyInput | Prisma.MaterialCreateManyInput[]
1693
+ skipDuplicates?: boolean
1694
+ }
1695
+
1696
+ /**
1697
+ * Material createManyAndReturn
1698
+ */
1699
+ export type MaterialCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1700
+ /**
1701
+ * Select specific fields to fetch from the Material
1702
+ */
1703
+ select?: Prisma.MaterialSelectCreateManyAndReturn<ExtArgs> | null
1704
+ /**
1705
+ * Omit specific fields from the Material
1706
+ */
1707
+ omit?: Prisma.MaterialOmit<ExtArgs> | null
1708
+ /**
1709
+ * The data used to create many Materials.
1710
+ */
1711
+ data: Prisma.MaterialCreateManyInput | Prisma.MaterialCreateManyInput[]
1712
+ skipDuplicates?: boolean
1713
+ }
1714
+
1715
+ /**
1716
+ * Material update
1717
+ */
1718
+ export type MaterialUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1719
+ /**
1720
+ * Select specific fields to fetch from the Material
1721
+ */
1722
+ select?: Prisma.MaterialSelect<ExtArgs> | null
1723
+ /**
1724
+ * Omit specific fields from the Material
1725
+ */
1726
+ omit?: Prisma.MaterialOmit<ExtArgs> | null
1727
+ /**
1728
+ * Choose, which related nodes to fetch as well
1729
+ */
1730
+ include?: Prisma.MaterialInclude<ExtArgs> | null
1731
+ /**
1732
+ * The data needed to update a Material.
1733
+ */
1734
+ data: Prisma.XOR<Prisma.MaterialUpdateInput, Prisma.MaterialUncheckedUpdateInput>
1735
+ /**
1736
+ * Choose, which Material to update.
1737
+ */
1738
+ where: Prisma.MaterialWhereUniqueInput
1739
+ }
1740
+
1741
+ /**
1742
+ * Material updateMany
1743
+ */
1744
+ export type MaterialUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1745
+ /**
1746
+ * The data used to update Materials.
1747
+ */
1748
+ data: Prisma.XOR<Prisma.MaterialUpdateManyMutationInput, Prisma.MaterialUncheckedUpdateManyInput>
1749
+ /**
1750
+ * Filter which Materials to update
1751
+ */
1752
+ where?: Prisma.MaterialWhereInput
1753
+ /**
1754
+ * Limit how many Materials to update.
1755
+ */
1756
+ limit?: number
1757
+ }
1758
+
1759
+ /**
1760
+ * Material updateManyAndReturn
1761
+ */
1762
+ export type MaterialUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1763
+ /**
1764
+ * Select specific fields to fetch from the Material
1765
+ */
1766
+ select?: Prisma.MaterialSelectUpdateManyAndReturn<ExtArgs> | null
1767
+ /**
1768
+ * Omit specific fields from the Material
1769
+ */
1770
+ omit?: Prisma.MaterialOmit<ExtArgs> | null
1771
+ /**
1772
+ * The data used to update Materials.
1773
+ */
1774
+ data: Prisma.XOR<Prisma.MaterialUpdateManyMutationInput, Prisma.MaterialUncheckedUpdateManyInput>
1775
+ /**
1776
+ * Filter which Materials to update
1777
+ */
1778
+ where?: Prisma.MaterialWhereInput
1779
+ /**
1780
+ * Limit how many Materials to update.
1781
+ */
1782
+ limit?: number
1783
+ }
1784
+
1785
+ /**
1786
+ * Material upsert
1787
+ */
1788
+ export type MaterialUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1789
+ /**
1790
+ * Select specific fields to fetch from the Material
1791
+ */
1792
+ select?: Prisma.MaterialSelect<ExtArgs> | null
1793
+ /**
1794
+ * Omit specific fields from the Material
1795
+ */
1796
+ omit?: Prisma.MaterialOmit<ExtArgs> | null
1797
+ /**
1798
+ * Choose, which related nodes to fetch as well
1799
+ */
1800
+ include?: Prisma.MaterialInclude<ExtArgs> | null
1801
+ /**
1802
+ * The filter to search for the Material to update in case it exists.
1803
+ */
1804
+ where: Prisma.MaterialWhereUniqueInput
1805
+ /**
1806
+ * In case the Material found by the `where` argument doesn't exist, create a new Material with this data.
1807
+ */
1808
+ create: Prisma.XOR<Prisma.MaterialCreateInput, Prisma.MaterialUncheckedCreateInput>
1809
+ /**
1810
+ * In case the Material was found with the provided `where` argument, update it with this data.
1811
+ */
1812
+ update: Prisma.XOR<Prisma.MaterialUpdateInput, Prisma.MaterialUncheckedUpdateInput>
1813
+ }
1814
+
1815
+ /**
1816
+ * Material delete
1817
+ */
1818
+ export type MaterialDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1819
+ /**
1820
+ * Select specific fields to fetch from the Material
1821
+ */
1822
+ select?: Prisma.MaterialSelect<ExtArgs> | null
1823
+ /**
1824
+ * Omit specific fields from the Material
1825
+ */
1826
+ omit?: Prisma.MaterialOmit<ExtArgs> | null
1827
+ /**
1828
+ * Choose, which related nodes to fetch as well
1829
+ */
1830
+ include?: Prisma.MaterialInclude<ExtArgs> | null
1831
+ /**
1832
+ * Filter which Material to delete.
1833
+ */
1834
+ where: Prisma.MaterialWhereUniqueInput
1835
+ }
1836
+
1837
+ /**
1838
+ * Material deleteMany
1839
+ */
1840
+ export type MaterialDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1841
+ /**
1842
+ * Filter which Materials to delete
1843
+ */
1844
+ where?: Prisma.MaterialWhereInput
1845
+ /**
1846
+ * Limit how many Materials to delete.
1847
+ */
1848
+ limit?: number
1849
+ }
1850
+
1851
+ /**
1852
+ * Material.billOfMaterial
1853
+ */
1854
+ export type Material$billOfMaterialArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1855
+ /**
1856
+ * Select specific fields to fetch from the MaterialBillOfMaterial
1857
+ */
1858
+ select?: Prisma.MaterialBillOfMaterialSelect<ExtArgs> | null
1859
+ /**
1860
+ * Omit specific fields from the MaterialBillOfMaterial
1861
+ */
1862
+ omit?: Prisma.MaterialBillOfMaterialOmit<ExtArgs> | null
1863
+ /**
1864
+ * Choose, which related nodes to fetch as well
1865
+ */
1866
+ include?: Prisma.MaterialBillOfMaterialInclude<ExtArgs> | null
1867
+ where?: Prisma.MaterialBillOfMaterialWhereInput
1868
+ orderBy?: Prisma.MaterialBillOfMaterialOrderByWithRelationInput | Prisma.MaterialBillOfMaterialOrderByWithRelationInput[]
1869
+ cursor?: Prisma.MaterialBillOfMaterialWhereUniqueInput
1870
+ take?: number
1871
+ skip?: number
1872
+ distinct?: Prisma.MaterialBillOfMaterialScalarFieldEnum | Prisma.MaterialBillOfMaterialScalarFieldEnum[]
1873
+ }
1874
+
1875
+ /**
1876
+ * Material.pboFatAttributes
1877
+ */
1878
+ export type Material$pboFatAttributesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1879
+ /**
1880
+ * Select specific fields to fetch from the PboFatAttributes
1881
+ */
1882
+ select?: Prisma.PboFatAttributesSelect<ExtArgs> | null
1883
+ /**
1884
+ * Omit specific fields from the PboFatAttributes
1885
+ */
1886
+ omit?: Prisma.PboFatAttributesOmit<ExtArgs> | null
1887
+ /**
1888
+ * Choose, which related nodes to fetch as well
1889
+ */
1890
+ include?: Prisma.PboFatAttributesInclude<ExtArgs> | null
1891
+ where?: Prisma.PboFatAttributesWhereInput
1892
+ orderBy?: Prisma.PboFatAttributesOrderByWithRelationInput | Prisma.PboFatAttributesOrderByWithRelationInput[]
1893
+ cursor?: Prisma.PboFatAttributesWhereUniqueInput
1894
+ take?: number
1895
+ skip?: number
1896
+ distinct?: Prisma.PboFatAttributesScalarFieldEnum | Prisma.PboFatAttributesScalarFieldEnum[]
1897
+ }
1898
+
1899
+ /**
1900
+ * Material.cableAttributes
1901
+ */
1902
+ export type Material$cableAttributesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1903
+ /**
1904
+ * Select specific fields to fetch from the CableAttributes
1905
+ */
1906
+ select?: Prisma.CableAttributesSelect<ExtArgs> | null
1907
+ /**
1908
+ * Omit specific fields from the CableAttributes
1909
+ */
1910
+ omit?: Prisma.CableAttributesOmit<ExtArgs> | null
1911
+ /**
1912
+ * Choose, which related nodes to fetch as well
1913
+ */
1914
+ include?: Prisma.CableAttributesInclude<ExtArgs> | null
1915
+ where?: Prisma.CableAttributesWhereInput
1916
+ orderBy?: Prisma.CableAttributesOrderByWithRelationInput | Prisma.CableAttributesOrderByWithRelationInput[]
1917
+ cursor?: Prisma.CableAttributesWhereUniqueInput
1918
+ take?: number
1919
+ skip?: number
1920
+ distinct?: Prisma.CableAttributesScalarFieldEnum | Prisma.CableAttributesScalarFieldEnum[]
1921
+ }
1922
+
1923
+ /**
1924
+ * Material.spliceClosureAttributes
1925
+ */
1926
+ export type Material$spliceClosureAttributesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1927
+ /**
1928
+ * Select specific fields to fetch from the SpliceClosureAttributes
1929
+ */
1930
+ select?: Prisma.SpliceClosureAttributesSelect<ExtArgs> | null
1931
+ /**
1932
+ * Omit specific fields from the SpliceClosureAttributes
1933
+ */
1934
+ omit?: Prisma.SpliceClosureAttributesOmit<ExtArgs> | null
1935
+ /**
1936
+ * Choose, which related nodes to fetch as well
1937
+ */
1938
+ include?: Prisma.SpliceClosureAttributesInclude<ExtArgs> | null
1939
+ where?: Prisma.SpliceClosureAttributesWhereInput
1940
+ orderBy?: Prisma.SpliceClosureAttributesOrderByWithRelationInput | Prisma.SpliceClosureAttributesOrderByWithRelationInput[]
1941
+ cursor?: Prisma.SpliceClosureAttributesWhereUniqueInput
1942
+ take?: number
1943
+ skip?: number
1944
+ distinct?: Prisma.SpliceClosureAttributesScalarFieldEnum | Prisma.SpliceClosureAttributesScalarFieldEnum[]
1945
+ }
1946
+
1947
+ /**
1948
+ * Material without action
1949
+ */
1950
+ export type MaterialDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1951
+ /**
1952
+ * Select specific fields to fetch from the Material
1953
+ */
1954
+ select?: Prisma.MaterialSelect<ExtArgs> | null
1955
+ /**
1956
+ * Omit specific fields from the Material
1957
+ */
1958
+ omit?: Prisma.MaterialOmit<ExtArgs> | null
1959
+ /**
1960
+ * Choose, which related nodes to fetch as well
1961
+ */
1962
+ include?: Prisma.MaterialInclude<ExtArgs> | null
1963
+ }