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