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.
- package/index.d.ts +6 -1
- package/index.js +10 -1
- package/package.json +12 -5
- package/prisma/generated/browser.ts +559 -0
- package/prisma/generated/client.ts +581 -0
- package/prisma/generated/commonInputTypes.ts +1246 -0
- package/prisma/generated/enums.ts +188 -0
- package/prisma/generated/internal/class.ts +1260 -0
- package/prisma/generated/internal/prismaNamespace.ts +11532 -0
- package/prisma/generated/internal/prismaNamespaceBrowser.ts +2582 -0
- package/prisma/generated/models/AttributeDefinition.ts +1498 -0
- package/prisma/generated/models/AttributeValue.ts +1419 -0
- package/prisma/generated/models/Audit.ts +1725 -0
- package/prisma/generated/models/BillOfMaterial.ts +1934 -0
- package/prisma/generated/models/Building.ts +6130 -0
- package/prisma/generated/models/BuildingTemplate.ts +2912 -0
- package/prisma/generated/models/Cable.ts +10501 -0
- package/prisma/generated/models/CableAttachment.ts +1530 -0
- package/prisma/generated/models/CableAttributes.ts +2244 -0
- package/prisma/generated/models/CableTemplate.ts +3170 -0
- package/prisma/generated/models/CamusatClient.ts +2001 -0
- package/prisma/generated/models/CamusatCountry.ts +2425 -0
- package/prisma/generated/models/CentralOffice.ts +1921 -0
- package/prisma/generated/models/CentralOfficeTeam.ts +1620 -0
- package/prisma/generated/models/CentralOfficeUser.ts +1650 -0
- package/prisma/generated/models/Cluster.ts +10984 -0
- package/prisma/generated/models/ClusterComments.ts +1668 -0
- package/prisma/generated/models/ClusterNotes.ts +1703 -0
- package/prisma/generated/models/Conduit.ts +5119 -0
- package/prisma/generated/models/ConduitTemplate.ts +2940 -0
- package/prisma/generated/models/Country.ts +1795 -0
- package/prisma/generated/models/DispatchMaterial.ts +3070 -0
- package/prisma/generated/models/DispatchProject.ts +4179 -0
- package/prisma/generated/models/DispatchTeam.ts +3053 -0
- package/prisma/generated/models/Duct.ts +1813 -0
- package/prisma/generated/models/ElementNode.ts +4413 -0
- package/prisma/generated/models/ElementRelation.ts +1644 -0
- package/prisma/generated/models/EmailConfigurations.ts +3736 -0
- package/prisma/generated/models/EmailTemplates.ts +1739 -0
- package/prisma/generated/models/EmailsIncoming.ts +2010 -0
- package/prisma/generated/models/EmailsIncomingSample.ts +1503 -0
- package/prisma/generated/models/EmailsOutgoing.ts +1648 -0
- package/prisma/generated/models/FDTSRO.ts +6180 -0
- package/prisma/generated/models/FDTSROTemplate.ts +2912 -0
- package/prisma/generated/models/Feature.ts +1867 -0
- package/prisma/generated/models/FeatureType.ts +1430 -0
- package/prisma/generated/models/IntegrationReportTemplate.ts +1878 -0
- package/prisma/generated/models/Loop.ts +5271 -0
- package/prisma/generated/models/LoopTemplate.ts +2912 -0
- package/prisma/generated/models/MainProject.ts +1664 -0
- package/prisma/generated/models/Manhole.ts +5090 -0
- package/prisma/generated/models/ManholeTemplate.ts +2912 -0
- package/prisma/generated/models/MapElement.ts +3450 -0
- package/prisma/generated/models/MapElementTemplate.ts +2742 -0
- package/prisma/generated/models/Material.ts +1963 -0
- package/prisma/generated/models/MaterialBillOfMaterial.ts +1737 -0
- package/prisma/generated/models/MaterialChangeLog.ts +1454 -0
- package/prisma/generated/models/NetworkElement.ts +6891 -0
- package/prisma/generated/models/NetworkElementInstallation.ts +3320 -0
- package/prisma/generated/models/Notifications.ts +1563 -0
- package/prisma/generated/models/OptionSource.ts +1132 -0
- package/prisma/generated/models/PboFat.ts +8248 -0
- package/prisma/generated/models/PboFatAttributes.ts +2672 -0
- package/prisma/generated/models/PboFatTemplate.ts +3112 -0
- package/prisma/generated/models/Platform.ts +1759 -0
- package/prisma/generated/models/Pole.ts +5266 -0
- package/prisma/generated/models/PoleTemplate.ts +2912 -0
- package/prisma/generated/models/Position.ts +1490 -0
- package/prisma/generated/models/PreviousEquipment.ts +1881 -0
- package/prisma/generated/models/Project.ts +14893 -0
- package/prisma/generated/models/ProjectType.ts +1351 -0
- package/prisma/generated/models/ProjectWorkFlow.ts +1856 -0
- package/prisma/generated/models/ReportFormats.ts +1768 -0
- package/prisma/generated/models/ReportFormulaConfig.ts +1375 -0
- package/prisma/generated/models/ReportMetric.ts +1737 -0
- package/prisma/generated/models/ReportTable.ts +1498 -0
- package/prisma/generated/models/ReportVisualization.ts +1446 -0
- package/prisma/generated/models/Revision.ts +4653 -0
- package/prisma/generated/models/Role.ts +2960 -0
- package/prisma/generated/models/SFU.ts +5977 -0
- package/prisma/generated/models/SFUTemplate.ts +2912 -0
- package/prisma/generated/models/SpliceClosure.ts +6405 -0
- package/prisma/generated/models/SpliceClosureAttributes.ts +2172 -0
- package/prisma/generated/models/SpliceClosureTemplate.ts +3176 -0
- package/prisma/generated/models/Splitter.ts +1459 -0
- package/prisma/generated/models/StockMovement.ts +1589 -0
- package/prisma/generated/models/SubsidiaryMaterial.ts +2193 -0
- package/prisma/generated/models/SubsidiaryMaterialMovementLog.ts +1966 -0
- package/prisma/generated/models/Team.ts +2044 -0
- package/prisma/generated/models/TeamMaterial.ts +2193 -0
- package/prisma/generated/models/TeamMaterialMovementLog.ts +1966 -0
- package/prisma/generated/models/TeamPlatform.ts +1874 -0
- package/prisma/generated/models/TeamType.ts +1655 -0
- package/prisma/generated/models/Template.ts +1691 -0
- package/prisma/generated/models/TemplateComponent.ts +1995 -0
- package/prisma/generated/models/User.ts +25676 -0
- package/prisma/generated/models/WorkOrder.ts +5901 -0
- package/prisma/generated/models/WorkOrderActivityLog.ts +2126 -0
- package/prisma/generated/models/WorkOrderChannel.ts +1454 -0
- package/prisma/generated/models/WorkOrderComments.ts +1687 -0
- package/prisma/generated/models/WorkOrderEditLog.ts +1757 -0
- package/prisma/generated/models/WorkOrderMaterial.ts +1933 -0
- package/prisma/generated/models/WorkOrderPauses.ts +1454 -0
- package/prisma/generated/models/WorkOrderTask.ts +2220 -0
- package/prisma/generated/models/WorkOrderTaskData.ts +1244 -0
- package/prisma/generated/models/ZoneNro.ts +3926 -0
- package/prisma/generated/models/ZoneNroTemplate.ts +2966 -0
- package/prisma/generated/models/clientMaterial.ts +2193 -0
- package/prisma/generated/models/clientMaterialMovementLog.ts +1966 -0
- package/prisma/generated/models/ductTemplate.ts +1606 -0
- package/prisma/generated/models/installationSequence.ts +1708 -0
- package/prisma/generated/models/integrationProjectUserStatus.ts +1916 -0
- package/prisma/generated/models/integrationUserLocation.ts +1681 -0
- package/prisma/generated/models/problemCategorization.ts +1543 -0
- package/prisma/generated/models/projectPhaseLog.ts +1728 -0
- package/prisma/generated/models/qrCodeTag.ts +4978 -0
- package/prisma/generated/models/qrCodeTemplate.ts +6500 -0
- package/prisma/generated/models/ticketMaterialMovementLog.ts +1651 -0
- package/prisma/generated/models.ts +119 -0
- package/prisma/schema.prisma +2 -2
- package/prisma/seed.ts +33 -0
- package/prisma.config.ts +13 -0
- package/tsconfig.json +13 -0
|
@@ -0,0 +1,1530 @@
|
|
|
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 `CableAttachment` 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 CableAttachment
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type CableAttachmentModel = runtime.Types.Result.DefaultSelection<Prisma.$CableAttachmentPayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateCableAttachment = {
|
|
22
|
+
_count: CableAttachmentCountAggregateOutputType | null
|
|
23
|
+
_avg: CableAttachmentAvgAggregateOutputType | null
|
|
24
|
+
_sum: CableAttachmentSumAggregateOutputType | null
|
|
25
|
+
_min: CableAttachmentMinAggregateOutputType | null
|
|
26
|
+
_max: CableAttachmentMaxAggregateOutputType | null
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type CableAttachmentAvgAggregateOutputType = {
|
|
30
|
+
no: number | null
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type CableAttachmentSumAggregateOutputType = {
|
|
34
|
+
no: number | null
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type CableAttachmentMinAggregateOutputType = {
|
|
38
|
+
id: string | null
|
|
39
|
+
no: number | null
|
|
40
|
+
cableId: string | null
|
|
41
|
+
targetType: string | null
|
|
42
|
+
targetId: string | null
|
|
43
|
+
role: $Enums.CableAttachmentRole | null
|
|
44
|
+
createdAt: Date | null
|
|
45
|
+
updatedAt: Date | null
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type CableAttachmentMaxAggregateOutputType = {
|
|
49
|
+
id: string | null
|
|
50
|
+
no: number | null
|
|
51
|
+
cableId: string | null
|
|
52
|
+
targetType: string | null
|
|
53
|
+
targetId: string | null
|
|
54
|
+
role: $Enums.CableAttachmentRole | null
|
|
55
|
+
createdAt: Date | null
|
|
56
|
+
updatedAt: Date | null
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type CableAttachmentCountAggregateOutputType = {
|
|
60
|
+
id: number
|
|
61
|
+
no: number
|
|
62
|
+
cableId: number
|
|
63
|
+
targetType: number
|
|
64
|
+
targetId: number
|
|
65
|
+
role: number
|
|
66
|
+
metadata: number
|
|
67
|
+
createdAt: number
|
|
68
|
+
updatedAt: number
|
|
69
|
+
_all: number
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
export type CableAttachmentAvgAggregateInputType = {
|
|
74
|
+
no?: true
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type CableAttachmentSumAggregateInputType = {
|
|
78
|
+
no?: true
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type CableAttachmentMinAggregateInputType = {
|
|
82
|
+
id?: true
|
|
83
|
+
no?: true
|
|
84
|
+
cableId?: true
|
|
85
|
+
targetType?: true
|
|
86
|
+
targetId?: true
|
|
87
|
+
role?: true
|
|
88
|
+
createdAt?: true
|
|
89
|
+
updatedAt?: true
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type CableAttachmentMaxAggregateInputType = {
|
|
93
|
+
id?: true
|
|
94
|
+
no?: true
|
|
95
|
+
cableId?: true
|
|
96
|
+
targetType?: true
|
|
97
|
+
targetId?: true
|
|
98
|
+
role?: true
|
|
99
|
+
createdAt?: true
|
|
100
|
+
updatedAt?: true
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export type CableAttachmentCountAggregateInputType = {
|
|
104
|
+
id?: true
|
|
105
|
+
no?: true
|
|
106
|
+
cableId?: true
|
|
107
|
+
targetType?: true
|
|
108
|
+
targetId?: true
|
|
109
|
+
role?: true
|
|
110
|
+
metadata?: true
|
|
111
|
+
createdAt?: true
|
|
112
|
+
updatedAt?: true
|
|
113
|
+
_all?: true
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type CableAttachmentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
117
|
+
/**
|
|
118
|
+
* Filter which CableAttachment to aggregate.
|
|
119
|
+
*/
|
|
120
|
+
where?: Prisma.CableAttachmentWhereInput
|
|
121
|
+
/**
|
|
122
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
123
|
+
*
|
|
124
|
+
* Determine the order of CableAttachments to fetch.
|
|
125
|
+
*/
|
|
126
|
+
orderBy?: Prisma.CableAttachmentOrderByWithRelationInput | Prisma.CableAttachmentOrderByWithRelationInput[]
|
|
127
|
+
/**
|
|
128
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
129
|
+
*
|
|
130
|
+
* Sets the start position
|
|
131
|
+
*/
|
|
132
|
+
cursor?: Prisma.CableAttachmentWhereUniqueInput
|
|
133
|
+
/**
|
|
134
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
135
|
+
*
|
|
136
|
+
* Take `±n` CableAttachments from the position of the cursor.
|
|
137
|
+
*/
|
|
138
|
+
take?: number
|
|
139
|
+
/**
|
|
140
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
141
|
+
*
|
|
142
|
+
* Skip the first `n` CableAttachments.
|
|
143
|
+
*/
|
|
144
|
+
skip?: number
|
|
145
|
+
/**
|
|
146
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
147
|
+
*
|
|
148
|
+
* Count returned CableAttachments
|
|
149
|
+
**/
|
|
150
|
+
_count?: true | CableAttachmentCountAggregateInputType
|
|
151
|
+
/**
|
|
152
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
153
|
+
*
|
|
154
|
+
* Select which fields to average
|
|
155
|
+
**/
|
|
156
|
+
_avg?: CableAttachmentAvgAggregateInputType
|
|
157
|
+
/**
|
|
158
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
159
|
+
*
|
|
160
|
+
* Select which fields to sum
|
|
161
|
+
**/
|
|
162
|
+
_sum?: CableAttachmentSumAggregateInputType
|
|
163
|
+
/**
|
|
164
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
165
|
+
*
|
|
166
|
+
* Select which fields to find the minimum value
|
|
167
|
+
**/
|
|
168
|
+
_min?: CableAttachmentMinAggregateInputType
|
|
169
|
+
/**
|
|
170
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
171
|
+
*
|
|
172
|
+
* Select which fields to find the maximum value
|
|
173
|
+
**/
|
|
174
|
+
_max?: CableAttachmentMaxAggregateInputType
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export type GetCableAttachmentAggregateType<T extends CableAttachmentAggregateArgs> = {
|
|
178
|
+
[P in keyof T & keyof AggregateCableAttachment]: P extends '_count' | 'count'
|
|
179
|
+
? T[P] extends true
|
|
180
|
+
? number
|
|
181
|
+
: Prisma.GetScalarType<T[P], AggregateCableAttachment[P]>
|
|
182
|
+
: Prisma.GetScalarType<T[P], AggregateCableAttachment[P]>
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
export type CableAttachmentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
189
|
+
where?: Prisma.CableAttachmentWhereInput
|
|
190
|
+
orderBy?: Prisma.CableAttachmentOrderByWithAggregationInput | Prisma.CableAttachmentOrderByWithAggregationInput[]
|
|
191
|
+
by: Prisma.CableAttachmentScalarFieldEnum[] | Prisma.CableAttachmentScalarFieldEnum
|
|
192
|
+
having?: Prisma.CableAttachmentScalarWhereWithAggregatesInput
|
|
193
|
+
take?: number
|
|
194
|
+
skip?: number
|
|
195
|
+
_count?: CableAttachmentCountAggregateInputType | true
|
|
196
|
+
_avg?: CableAttachmentAvgAggregateInputType
|
|
197
|
+
_sum?: CableAttachmentSumAggregateInputType
|
|
198
|
+
_min?: CableAttachmentMinAggregateInputType
|
|
199
|
+
_max?: CableAttachmentMaxAggregateInputType
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export type CableAttachmentGroupByOutputType = {
|
|
203
|
+
id: string
|
|
204
|
+
no: number
|
|
205
|
+
cableId: string
|
|
206
|
+
targetType: string
|
|
207
|
+
targetId: string
|
|
208
|
+
role: $Enums.CableAttachmentRole
|
|
209
|
+
metadata: runtime.JsonValue | null
|
|
210
|
+
createdAt: Date
|
|
211
|
+
updatedAt: Date
|
|
212
|
+
_count: CableAttachmentCountAggregateOutputType | null
|
|
213
|
+
_avg: CableAttachmentAvgAggregateOutputType | null
|
|
214
|
+
_sum: CableAttachmentSumAggregateOutputType | null
|
|
215
|
+
_min: CableAttachmentMinAggregateOutputType | null
|
|
216
|
+
_max: CableAttachmentMaxAggregateOutputType | null
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
type GetCableAttachmentGroupByPayload<T extends CableAttachmentGroupByArgs> = Prisma.PrismaPromise<
|
|
220
|
+
Array<
|
|
221
|
+
Prisma.PickEnumerable<CableAttachmentGroupByOutputType, T['by']> &
|
|
222
|
+
{
|
|
223
|
+
[P in ((keyof T) & (keyof CableAttachmentGroupByOutputType))]: P extends '_count'
|
|
224
|
+
? T[P] extends boolean
|
|
225
|
+
? number
|
|
226
|
+
: Prisma.GetScalarType<T[P], CableAttachmentGroupByOutputType[P]>
|
|
227
|
+
: Prisma.GetScalarType<T[P], CableAttachmentGroupByOutputType[P]>
|
|
228
|
+
}
|
|
229
|
+
>
|
|
230
|
+
>
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
export type CableAttachmentWhereInput = {
|
|
235
|
+
AND?: Prisma.CableAttachmentWhereInput | Prisma.CableAttachmentWhereInput[]
|
|
236
|
+
OR?: Prisma.CableAttachmentWhereInput[]
|
|
237
|
+
NOT?: Prisma.CableAttachmentWhereInput | Prisma.CableAttachmentWhereInput[]
|
|
238
|
+
id?: Prisma.StringFilter<"CableAttachment"> | string
|
|
239
|
+
no?: Prisma.IntFilter<"CableAttachment"> | number
|
|
240
|
+
cableId?: Prisma.StringFilter<"CableAttachment"> | string
|
|
241
|
+
targetType?: Prisma.StringFilter<"CableAttachment"> | string
|
|
242
|
+
targetId?: Prisma.StringFilter<"CableAttachment"> | string
|
|
243
|
+
role?: Prisma.EnumCableAttachmentRoleFilter<"CableAttachment"> | $Enums.CableAttachmentRole
|
|
244
|
+
metadata?: Prisma.JsonNullableFilter<"CableAttachment">
|
|
245
|
+
createdAt?: Prisma.DateTimeFilter<"CableAttachment"> | Date | string
|
|
246
|
+
updatedAt?: Prisma.DateTimeFilter<"CableAttachment"> | Date | string
|
|
247
|
+
cable?: Prisma.XOR<Prisma.CableScalarRelationFilter, Prisma.CableWhereInput>
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export type CableAttachmentOrderByWithRelationInput = {
|
|
251
|
+
id?: Prisma.SortOrder
|
|
252
|
+
no?: Prisma.SortOrder
|
|
253
|
+
cableId?: Prisma.SortOrder
|
|
254
|
+
targetType?: Prisma.SortOrder
|
|
255
|
+
targetId?: Prisma.SortOrder
|
|
256
|
+
role?: Prisma.SortOrder
|
|
257
|
+
metadata?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
258
|
+
createdAt?: Prisma.SortOrder
|
|
259
|
+
updatedAt?: Prisma.SortOrder
|
|
260
|
+
cable?: Prisma.CableOrderByWithRelationInput
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export type CableAttachmentWhereUniqueInput = Prisma.AtLeast<{
|
|
264
|
+
id?: string
|
|
265
|
+
cableId_targetType_targetId_role?: Prisma.CableAttachmentCableIdTargetTypeTargetIdRoleCompoundUniqueInput
|
|
266
|
+
AND?: Prisma.CableAttachmentWhereInput | Prisma.CableAttachmentWhereInput[]
|
|
267
|
+
OR?: Prisma.CableAttachmentWhereInput[]
|
|
268
|
+
NOT?: Prisma.CableAttachmentWhereInput | Prisma.CableAttachmentWhereInput[]
|
|
269
|
+
no?: Prisma.IntFilter<"CableAttachment"> | number
|
|
270
|
+
cableId?: Prisma.StringFilter<"CableAttachment"> | string
|
|
271
|
+
targetType?: Prisma.StringFilter<"CableAttachment"> | string
|
|
272
|
+
targetId?: Prisma.StringFilter<"CableAttachment"> | string
|
|
273
|
+
role?: Prisma.EnumCableAttachmentRoleFilter<"CableAttachment"> | $Enums.CableAttachmentRole
|
|
274
|
+
metadata?: Prisma.JsonNullableFilter<"CableAttachment">
|
|
275
|
+
createdAt?: Prisma.DateTimeFilter<"CableAttachment"> | Date | string
|
|
276
|
+
updatedAt?: Prisma.DateTimeFilter<"CableAttachment"> | Date | string
|
|
277
|
+
cable?: Prisma.XOR<Prisma.CableScalarRelationFilter, Prisma.CableWhereInput>
|
|
278
|
+
}, "id" | "id" | "cableId_targetType_targetId_role">
|
|
279
|
+
|
|
280
|
+
export type CableAttachmentOrderByWithAggregationInput = {
|
|
281
|
+
id?: Prisma.SortOrder
|
|
282
|
+
no?: Prisma.SortOrder
|
|
283
|
+
cableId?: Prisma.SortOrder
|
|
284
|
+
targetType?: Prisma.SortOrder
|
|
285
|
+
targetId?: Prisma.SortOrder
|
|
286
|
+
role?: Prisma.SortOrder
|
|
287
|
+
metadata?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
288
|
+
createdAt?: Prisma.SortOrder
|
|
289
|
+
updatedAt?: Prisma.SortOrder
|
|
290
|
+
_count?: Prisma.CableAttachmentCountOrderByAggregateInput
|
|
291
|
+
_avg?: Prisma.CableAttachmentAvgOrderByAggregateInput
|
|
292
|
+
_max?: Prisma.CableAttachmentMaxOrderByAggregateInput
|
|
293
|
+
_min?: Prisma.CableAttachmentMinOrderByAggregateInput
|
|
294
|
+
_sum?: Prisma.CableAttachmentSumOrderByAggregateInput
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export type CableAttachmentScalarWhereWithAggregatesInput = {
|
|
298
|
+
AND?: Prisma.CableAttachmentScalarWhereWithAggregatesInput | Prisma.CableAttachmentScalarWhereWithAggregatesInput[]
|
|
299
|
+
OR?: Prisma.CableAttachmentScalarWhereWithAggregatesInput[]
|
|
300
|
+
NOT?: Prisma.CableAttachmentScalarWhereWithAggregatesInput | Prisma.CableAttachmentScalarWhereWithAggregatesInput[]
|
|
301
|
+
id?: Prisma.StringWithAggregatesFilter<"CableAttachment"> | string
|
|
302
|
+
no?: Prisma.IntWithAggregatesFilter<"CableAttachment"> | number
|
|
303
|
+
cableId?: Prisma.StringWithAggregatesFilter<"CableAttachment"> | string
|
|
304
|
+
targetType?: Prisma.StringWithAggregatesFilter<"CableAttachment"> | string
|
|
305
|
+
targetId?: Prisma.StringWithAggregatesFilter<"CableAttachment"> | string
|
|
306
|
+
role?: Prisma.EnumCableAttachmentRoleWithAggregatesFilter<"CableAttachment"> | $Enums.CableAttachmentRole
|
|
307
|
+
metadata?: Prisma.JsonNullableWithAggregatesFilter<"CableAttachment">
|
|
308
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"CableAttachment"> | Date | string
|
|
309
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CableAttachment"> | Date | string
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export type CableAttachmentCreateInput = {
|
|
313
|
+
id?: string
|
|
314
|
+
no?: number
|
|
315
|
+
targetType: string
|
|
316
|
+
targetId: string
|
|
317
|
+
role: $Enums.CableAttachmentRole
|
|
318
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
319
|
+
createdAt?: Date | string
|
|
320
|
+
updatedAt?: Date | string
|
|
321
|
+
cable: Prisma.CableCreateNestedOneWithoutCableAttachmentsInput
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export type CableAttachmentUncheckedCreateInput = {
|
|
325
|
+
id?: string
|
|
326
|
+
no?: number
|
|
327
|
+
cableId: string
|
|
328
|
+
targetType: string
|
|
329
|
+
targetId: string
|
|
330
|
+
role: $Enums.CableAttachmentRole
|
|
331
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
332
|
+
createdAt?: Date | string
|
|
333
|
+
updatedAt?: Date | string
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export type CableAttachmentUpdateInput = {
|
|
337
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
338
|
+
no?: Prisma.IntFieldUpdateOperationsInput | number
|
|
339
|
+
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
340
|
+
targetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
341
|
+
role?: Prisma.EnumCableAttachmentRoleFieldUpdateOperationsInput | $Enums.CableAttachmentRole
|
|
342
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
343
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
344
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
345
|
+
cable?: Prisma.CableUpdateOneRequiredWithoutCableAttachmentsNestedInput
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export type CableAttachmentUncheckedUpdateInput = {
|
|
349
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
350
|
+
no?: Prisma.IntFieldUpdateOperationsInput | number
|
|
351
|
+
cableId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
352
|
+
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
353
|
+
targetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
354
|
+
role?: Prisma.EnumCableAttachmentRoleFieldUpdateOperationsInput | $Enums.CableAttachmentRole
|
|
355
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
356
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
357
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export type CableAttachmentCreateManyInput = {
|
|
361
|
+
id?: string
|
|
362
|
+
no?: number
|
|
363
|
+
cableId: string
|
|
364
|
+
targetType: string
|
|
365
|
+
targetId: string
|
|
366
|
+
role: $Enums.CableAttachmentRole
|
|
367
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
368
|
+
createdAt?: Date | string
|
|
369
|
+
updatedAt?: Date | string
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export type CableAttachmentUpdateManyMutationInput = {
|
|
373
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
374
|
+
no?: Prisma.IntFieldUpdateOperationsInput | number
|
|
375
|
+
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
376
|
+
targetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
377
|
+
role?: Prisma.EnumCableAttachmentRoleFieldUpdateOperationsInput | $Enums.CableAttachmentRole
|
|
378
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
379
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
380
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export type CableAttachmentUncheckedUpdateManyInput = {
|
|
384
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
385
|
+
no?: Prisma.IntFieldUpdateOperationsInput | number
|
|
386
|
+
cableId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
387
|
+
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
388
|
+
targetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
389
|
+
role?: Prisma.EnumCableAttachmentRoleFieldUpdateOperationsInput | $Enums.CableAttachmentRole
|
|
390
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
391
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
392
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export type CableAttachmentListRelationFilter = {
|
|
396
|
+
every?: Prisma.CableAttachmentWhereInput
|
|
397
|
+
some?: Prisma.CableAttachmentWhereInput
|
|
398
|
+
none?: Prisma.CableAttachmentWhereInput
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export type CableAttachmentOrderByRelationAggregateInput = {
|
|
402
|
+
_count?: Prisma.SortOrder
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export type CableAttachmentCableIdTargetTypeTargetIdRoleCompoundUniqueInput = {
|
|
406
|
+
cableId: string
|
|
407
|
+
targetType: string
|
|
408
|
+
targetId: string
|
|
409
|
+
role: $Enums.CableAttachmentRole
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export type CableAttachmentCountOrderByAggregateInput = {
|
|
413
|
+
id?: Prisma.SortOrder
|
|
414
|
+
no?: Prisma.SortOrder
|
|
415
|
+
cableId?: Prisma.SortOrder
|
|
416
|
+
targetType?: Prisma.SortOrder
|
|
417
|
+
targetId?: Prisma.SortOrder
|
|
418
|
+
role?: Prisma.SortOrder
|
|
419
|
+
metadata?: Prisma.SortOrder
|
|
420
|
+
createdAt?: Prisma.SortOrder
|
|
421
|
+
updatedAt?: Prisma.SortOrder
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export type CableAttachmentAvgOrderByAggregateInput = {
|
|
425
|
+
no?: Prisma.SortOrder
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
export type CableAttachmentMaxOrderByAggregateInput = {
|
|
429
|
+
id?: Prisma.SortOrder
|
|
430
|
+
no?: Prisma.SortOrder
|
|
431
|
+
cableId?: Prisma.SortOrder
|
|
432
|
+
targetType?: Prisma.SortOrder
|
|
433
|
+
targetId?: Prisma.SortOrder
|
|
434
|
+
role?: Prisma.SortOrder
|
|
435
|
+
createdAt?: Prisma.SortOrder
|
|
436
|
+
updatedAt?: Prisma.SortOrder
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export type CableAttachmentMinOrderByAggregateInput = {
|
|
440
|
+
id?: Prisma.SortOrder
|
|
441
|
+
no?: Prisma.SortOrder
|
|
442
|
+
cableId?: Prisma.SortOrder
|
|
443
|
+
targetType?: Prisma.SortOrder
|
|
444
|
+
targetId?: Prisma.SortOrder
|
|
445
|
+
role?: Prisma.SortOrder
|
|
446
|
+
createdAt?: Prisma.SortOrder
|
|
447
|
+
updatedAt?: Prisma.SortOrder
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
export type CableAttachmentSumOrderByAggregateInput = {
|
|
451
|
+
no?: Prisma.SortOrder
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export type CableAttachmentCreateNestedManyWithoutCableInput = {
|
|
455
|
+
create?: Prisma.XOR<Prisma.CableAttachmentCreateWithoutCableInput, Prisma.CableAttachmentUncheckedCreateWithoutCableInput> | Prisma.CableAttachmentCreateWithoutCableInput[] | Prisma.CableAttachmentUncheckedCreateWithoutCableInput[]
|
|
456
|
+
connectOrCreate?: Prisma.CableAttachmentCreateOrConnectWithoutCableInput | Prisma.CableAttachmentCreateOrConnectWithoutCableInput[]
|
|
457
|
+
createMany?: Prisma.CableAttachmentCreateManyCableInputEnvelope
|
|
458
|
+
connect?: Prisma.CableAttachmentWhereUniqueInput | Prisma.CableAttachmentWhereUniqueInput[]
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
export type CableAttachmentUncheckedCreateNestedManyWithoutCableInput = {
|
|
462
|
+
create?: Prisma.XOR<Prisma.CableAttachmentCreateWithoutCableInput, Prisma.CableAttachmentUncheckedCreateWithoutCableInput> | Prisma.CableAttachmentCreateWithoutCableInput[] | Prisma.CableAttachmentUncheckedCreateWithoutCableInput[]
|
|
463
|
+
connectOrCreate?: Prisma.CableAttachmentCreateOrConnectWithoutCableInput | Prisma.CableAttachmentCreateOrConnectWithoutCableInput[]
|
|
464
|
+
createMany?: Prisma.CableAttachmentCreateManyCableInputEnvelope
|
|
465
|
+
connect?: Prisma.CableAttachmentWhereUniqueInput | Prisma.CableAttachmentWhereUniqueInput[]
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
export type CableAttachmentUpdateManyWithoutCableNestedInput = {
|
|
469
|
+
create?: Prisma.XOR<Prisma.CableAttachmentCreateWithoutCableInput, Prisma.CableAttachmentUncheckedCreateWithoutCableInput> | Prisma.CableAttachmentCreateWithoutCableInput[] | Prisma.CableAttachmentUncheckedCreateWithoutCableInput[]
|
|
470
|
+
connectOrCreate?: Prisma.CableAttachmentCreateOrConnectWithoutCableInput | Prisma.CableAttachmentCreateOrConnectWithoutCableInput[]
|
|
471
|
+
upsert?: Prisma.CableAttachmentUpsertWithWhereUniqueWithoutCableInput | Prisma.CableAttachmentUpsertWithWhereUniqueWithoutCableInput[]
|
|
472
|
+
createMany?: Prisma.CableAttachmentCreateManyCableInputEnvelope
|
|
473
|
+
set?: Prisma.CableAttachmentWhereUniqueInput | Prisma.CableAttachmentWhereUniqueInput[]
|
|
474
|
+
disconnect?: Prisma.CableAttachmentWhereUniqueInput | Prisma.CableAttachmentWhereUniqueInput[]
|
|
475
|
+
delete?: Prisma.CableAttachmentWhereUniqueInput | Prisma.CableAttachmentWhereUniqueInput[]
|
|
476
|
+
connect?: Prisma.CableAttachmentWhereUniqueInput | Prisma.CableAttachmentWhereUniqueInput[]
|
|
477
|
+
update?: Prisma.CableAttachmentUpdateWithWhereUniqueWithoutCableInput | Prisma.CableAttachmentUpdateWithWhereUniqueWithoutCableInput[]
|
|
478
|
+
updateMany?: Prisma.CableAttachmentUpdateManyWithWhereWithoutCableInput | Prisma.CableAttachmentUpdateManyWithWhereWithoutCableInput[]
|
|
479
|
+
deleteMany?: Prisma.CableAttachmentScalarWhereInput | Prisma.CableAttachmentScalarWhereInput[]
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
export type CableAttachmentUncheckedUpdateManyWithoutCableNestedInput = {
|
|
483
|
+
create?: Prisma.XOR<Prisma.CableAttachmentCreateWithoutCableInput, Prisma.CableAttachmentUncheckedCreateWithoutCableInput> | Prisma.CableAttachmentCreateWithoutCableInput[] | Prisma.CableAttachmentUncheckedCreateWithoutCableInput[]
|
|
484
|
+
connectOrCreate?: Prisma.CableAttachmentCreateOrConnectWithoutCableInput | Prisma.CableAttachmentCreateOrConnectWithoutCableInput[]
|
|
485
|
+
upsert?: Prisma.CableAttachmentUpsertWithWhereUniqueWithoutCableInput | Prisma.CableAttachmentUpsertWithWhereUniqueWithoutCableInput[]
|
|
486
|
+
createMany?: Prisma.CableAttachmentCreateManyCableInputEnvelope
|
|
487
|
+
set?: Prisma.CableAttachmentWhereUniqueInput | Prisma.CableAttachmentWhereUniqueInput[]
|
|
488
|
+
disconnect?: Prisma.CableAttachmentWhereUniqueInput | Prisma.CableAttachmentWhereUniqueInput[]
|
|
489
|
+
delete?: Prisma.CableAttachmentWhereUniqueInput | Prisma.CableAttachmentWhereUniqueInput[]
|
|
490
|
+
connect?: Prisma.CableAttachmentWhereUniqueInput | Prisma.CableAttachmentWhereUniqueInput[]
|
|
491
|
+
update?: Prisma.CableAttachmentUpdateWithWhereUniqueWithoutCableInput | Prisma.CableAttachmentUpdateWithWhereUniqueWithoutCableInput[]
|
|
492
|
+
updateMany?: Prisma.CableAttachmentUpdateManyWithWhereWithoutCableInput | Prisma.CableAttachmentUpdateManyWithWhereWithoutCableInput[]
|
|
493
|
+
deleteMany?: Prisma.CableAttachmentScalarWhereInput | Prisma.CableAttachmentScalarWhereInput[]
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
export type EnumCableAttachmentRoleFieldUpdateOperationsInput = {
|
|
497
|
+
set?: $Enums.CableAttachmentRole
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
export type CableAttachmentCreateWithoutCableInput = {
|
|
501
|
+
id?: string
|
|
502
|
+
no?: number
|
|
503
|
+
targetType: string
|
|
504
|
+
targetId: string
|
|
505
|
+
role: $Enums.CableAttachmentRole
|
|
506
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
507
|
+
createdAt?: Date | string
|
|
508
|
+
updatedAt?: Date | string
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export type CableAttachmentUncheckedCreateWithoutCableInput = {
|
|
512
|
+
id?: string
|
|
513
|
+
no?: number
|
|
514
|
+
targetType: string
|
|
515
|
+
targetId: string
|
|
516
|
+
role: $Enums.CableAttachmentRole
|
|
517
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
518
|
+
createdAt?: Date | string
|
|
519
|
+
updatedAt?: Date | string
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
export type CableAttachmentCreateOrConnectWithoutCableInput = {
|
|
523
|
+
where: Prisma.CableAttachmentWhereUniqueInput
|
|
524
|
+
create: Prisma.XOR<Prisma.CableAttachmentCreateWithoutCableInput, Prisma.CableAttachmentUncheckedCreateWithoutCableInput>
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
export type CableAttachmentCreateManyCableInputEnvelope = {
|
|
528
|
+
data: Prisma.CableAttachmentCreateManyCableInput | Prisma.CableAttachmentCreateManyCableInput[]
|
|
529
|
+
skipDuplicates?: boolean
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export type CableAttachmentUpsertWithWhereUniqueWithoutCableInput = {
|
|
533
|
+
where: Prisma.CableAttachmentWhereUniqueInput
|
|
534
|
+
update: Prisma.XOR<Prisma.CableAttachmentUpdateWithoutCableInput, Prisma.CableAttachmentUncheckedUpdateWithoutCableInput>
|
|
535
|
+
create: Prisma.XOR<Prisma.CableAttachmentCreateWithoutCableInput, Prisma.CableAttachmentUncheckedCreateWithoutCableInput>
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export type CableAttachmentUpdateWithWhereUniqueWithoutCableInput = {
|
|
539
|
+
where: Prisma.CableAttachmentWhereUniqueInput
|
|
540
|
+
data: Prisma.XOR<Prisma.CableAttachmentUpdateWithoutCableInput, Prisma.CableAttachmentUncheckedUpdateWithoutCableInput>
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
export type CableAttachmentUpdateManyWithWhereWithoutCableInput = {
|
|
544
|
+
where: Prisma.CableAttachmentScalarWhereInput
|
|
545
|
+
data: Prisma.XOR<Prisma.CableAttachmentUpdateManyMutationInput, Prisma.CableAttachmentUncheckedUpdateManyWithoutCableInput>
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
export type CableAttachmentScalarWhereInput = {
|
|
549
|
+
AND?: Prisma.CableAttachmentScalarWhereInput | Prisma.CableAttachmentScalarWhereInput[]
|
|
550
|
+
OR?: Prisma.CableAttachmentScalarWhereInput[]
|
|
551
|
+
NOT?: Prisma.CableAttachmentScalarWhereInput | Prisma.CableAttachmentScalarWhereInput[]
|
|
552
|
+
id?: Prisma.StringFilter<"CableAttachment"> | string
|
|
553
|
+
no?: Prisma.IntFilter<"CableAttachment"> | number
|
|
554
|
+
cableId?: Prisma.StringFilter<"CableAttachment"> | string
|
|
555
|
+
targetType?: Prisma.StringFilter<"CableAttachment"> | string
|
|
556
|
+
targetId?: Prisma.StringFilter<"CableAttachment"> | string
|
|
557
|
+
role?: Prisma.EnumCableAttachmentRoleFilter<"CableAttachment"> | $Enums.CableAttachmentRole
|
|
558
|
+
metadata?: Prisma.JsonNullableFilter<"CableAttachment">
|
|
559
|
+
createdAt?: Prisma.DateTimeFilter<"CableAttachment"> | Date | string
|
|
560
|
+
updatedAt?: Prisma.DateTimeFilter<"CableAttachment"> | Date | string
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
export type CableAttachmentCreateManyCableInput = {
|
|
564
|
+
id?: string
|
|
565
|
+
no?: number
|
|
566
|
+
targetType: string
|
|
567
|
+
targetId: string
|
|
568
|
+
role: $Enums.CableAttachmentRole
|
|
569
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
570
|
+
createdAt?: Date | string
|
|
571
|
+
updatedAt?: Date | string
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
export type CableAttachmentUpdateWithoutCableInput = {
|
|
575
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
576
|
+
no?: Prisma.IntFieldUpdateOperationsInput | number
|
|
577
|
+
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
578
|
+
targetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
579
|
+
role?: Prisma.EnumCableAttachmentRoleFieldUpdateOperationsInput | $Enums.CableAttachmentRole
|
|
580
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
581
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
582
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export type CableAttachmentUncheckedUpdateWithoutCableInput = {
|
|
586
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
587
|
+
no?: Prisma.IntFieldUpdateOperationsInput | number
|
|
588
|
+
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
589
|
+
targetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
590
|
+
role?: Prisma.EnumCableAttachmentRoleFieldUpdateOperationsInput | $Enums.CableAttachmentRole
|
|
591
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
592
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
593
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
export type CableAttachmentUncheckedUpdateManyWithoutCableInput = {
|
|
597
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
598
|
+
no?: Prisma.IntFieldUpdateOperationsInput | number
|
|
599
|
+
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
600
|
+
targetId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
601
|
+
role?: Prisma.EnumCableAttachmentRoleFieldUpdateOperationsInput | $Enums.CableAttachmentRole
|
|
602
|
+
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
603
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
604
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
export type CableAttachmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
610
|
+
id?: boolean
|
|
611
|
+
no?: boolean
|
|
612
|
+
cableId?: boolean
|
|
613
|
+
targetType?: boolean
|
|
614
|
+
targetId?: boolean
|
|
615
|
+
role?: boolean
|
|
616
|
+
metadata?: boolean
|
|
617
|
+
createdAt?: boolean
|
|
618
|
+
updatedAt?: boolean
|
|
619
|
+
cable?: boolean | Prisma.CableDefaultArgs<ExtArgs>
|
|
620
|
+
}, ExtArgs["result"]["cableAttachment"]>
|
|
621
|
+
|
|
622
|
+
export type CableAttachmentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
623
|
+
id?: boolean
|
|
624
|
+
no?: boolean
|
|
625
|
+
cableId?: boolean
|
|
626
|
+
targetType?: boolean
|
|
627
|
+
targetId?: boolean
|
|
628
|
+
role?: boolean
|
|
629
|
+
metadata?: boolean
|
|
630
|
+
createdAt?: boolean
|
|
631
|
+
updatedAt?: boolean
|
|
632
|
+
cable?: boolean | Prisma.CableDefaultArgs<ExtArgs>
|
|
633
|
+
}, ExtArgs["result"]["cableAttachment"]>
|
|
634
|
+
|
|
635
|
+
export type CableAttachmentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
636
|
+
id?: boolean
|
|
637
|
+
no?: boolean
|
|
638
|
+
cableId?: boolean
|
|
639
|
+
targetType?: boolean
|
|
640
|
+
targetId?: boolean
|
|
641
|
+
role?: boolean
|
|
642
|
+
metadata?: boolean
|
|
643
|
+
createdAt?: boolean
|
|
644
|
+
updatedAt?: boolean
|
|
645
|
+
cable?: boolean | Prisma.CableDefaultArgs<ExtArgs>
|
|
646
|
+
}, ExtArgs["result"]["cableAttachment"]>
|
|
647
|
+
|
|
648
|
+
export type CableAttachmentSelectScalar = {
|
|
649
|
+
id?: boolean
|
|
650
|
+
no?: boolean
|
|
651
|
+
cableId?: boolean
|
|
652
|
+
targetType?: boolean
|
|
653
|
+
targetId?: boolean
|
|
654
|
+
role?: boolean
|
|
655
|
+
metadata?: boolean
|
|
656
|
+
createdAt?: boolean
|
|
657
|
+
updatedAt?: boolean
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
export type CableAttachmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "no" | "cableId" | "targetType" | "targetId" | "role" | "metadata" | "createdAt" | "updatedAt", ExtArgs["result"]["cableAttachment"]>
|
|
661
|
+
export type CableAttachmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
662
|
+
cable?: boolean | Prisma.CableDefaultArgs<ExtArgs>
|
|
663
|
+
}
|
|
664
|
+
export type CableAttachmentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
665
|
+
cable?: boolean | Prisma.CableDefaultArgs<ExtArgs>
|
|
666
|
+
}
|
|
667
|
+
export type CableAttachmentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
668
|
+
cable?: boolean | Prisma.CableDefaultArgs<ExtArgs>
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
export type $CableAttachmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
672
|
+
name: "CableAttachment"
|
|
673
|
+
objects: {
|
|
674
|
+
cable: Prisma.$CablePayload<ExtArgs>
|
|
675
|
+
}
|
|
676
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
677
|
+
id: string
|
|
678
|
+
no: number
|
|
679
|
+
cableId: string
|
|
680
|
+
targetType: string
|
|
681
|
+
targetId: string
|
|
682
|
+
role: $Enums.CableAttachmentRole
|
|
683
|
+
metadata: runtime.JsonValue | null
|
|
684
|
+
createdAt: Date
|
|
685
|
+
updatedAt: Date
|
|
686
|
+
}, ExtArgs["result"]["cableAttachment"]>
|
|
687
|
+
composites: {}
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
export type CableAttachmentGetPayload<S extends boolean | null | undefined | CableAttachmentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CableAttachmentPayload, S>
|
|
691
|
+
|
|
692
|
+
export type CableAttachmentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
693
|
+
Omit<CableAttachmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
694
|
+
select?: CableAttachmentCountAggregateInputType | true
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export interface CableAttachmentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
698
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CableAttachment'], meta: { name: 'CableAttachment' } }
|
|
699
|
+
/**
|
|
700
|
+
* Find zero or one CableAttachment that matches the filter.
|
|
701
|
+
* @param {CableAttachmentFindUniqueArgs} args - Arguments to find a CableAttachment
|
|
702
|
+
* @example
|
|
703
|
+
* // Get one CableAttachment
|
|
704
|
+
* const cableAttachment = await prisma.cableAttachment.findUnique({
|
|
705
|
+
* where: {
|
|
706
|
+
* // ... provide filter here
|
|
707
|
+
* }
|
|
708
|
+
* })
|
|
709
|
+
*/
|
|
710
|
+
findUnique<T extends CableAttachmentFindUniqueArgs>(args: Prisma.SelectSubset<T, CableAttachmentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CableAttachmentClient<runtime.Types.Result.GetResult<Prisma.$CableAttachmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Find one CableAttachment that matches the filter or throw an error with `error.code='P2025'`
|
|
714
|
+
* if no matches were found.
|
|
715
|
+
* @param {CableAttachmentFindUniqueOrThrowArgs} args - Arguments to find a CableAttachment
|
|
716
|
+
* @example
|
|
717
|
+
* // Get one CableAttachment
|
|
718
|
+
* const cableAttachment = await prisma.cableAttachment.findUniqueOrThrow({
|
|
719
|
+
* where: {
|
|
720
|
+
* // ... provide filter here
|
|
721
|
+
* }
|
|
722
|
+
* })
|
|
723
|
+
*/
|
|
724
|
+
findUniqueOrThrow<T extends CableAttachmentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CableAttachmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CableAttachmentClient<runtime.Types.Result.GetResult<Prisma.$CableAttachmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Find the first CableAttachment that matches the filter.
|
|
728
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
729
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
730
|
+
* @param {CableAttachmentFindFirstArgs} args - Arguments to find a CableAttachment
|
|
731
|
+
* @example
|
|
732
|
+
* // Get one CableAttachment
|
|
733
|
+
* const cableAttachment = await prisma.cableAttachment.findFirst({
|
|
734
|
+
* where: {
|
|
735
|
+
* // ... provide filter here
|
|
736
|
+
* }
|
|
737
|
+
* })
|
|
738
|
+
*/
|
|
739
|
+
findFirst<T extends CableAttachmentFindFirstArgs>(args?: Prisma.SelectSubset<T, CableAttachmentFindFirstArgs<ExtArgs>>): Prisma.Prisma__CableAttachmentClient<runtime.Types.Result.GetResult<Prisma.$CableAttachmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* Find the first CableAttachment that matches the filter or
|
|
743
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
744
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
745
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
746
|
+
* @param {CableAttachmentFindFirstOrThrowArgs} args - Arguments to find a CableAttachment
|
|
747
|
+
* @example
|
|
748
|
+
* // Get one CableAttachment
|
|
749
|
+
* const cableAttachment = await prisma.cableAttachment.findFirstOrThrow({
|
|
750
|
+
* where: {
|
|
751
|
+
* // ... provide filter here
|
|
752
|
+
* }
|
|
753
|
+
* })
|
|
754
|
+
*/
|
|
755
|
+
findFirstOrThrow<T extends CableAttachmentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CableAttachmentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CableAttachmentClient<runtime.Types.Result.GetResult<Prisma.$CableAttachmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Find zero or more CableAttachments that matches the filter.
|
|
759
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
760
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
761
|
+
* @param {CableAttachmentFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
762
|
+
* @example
|
|
763
|
+
* // Get all CableAttachments
|
|
764
|
+
* const cableAttachments = await prisma.cableAttachment.findMany()
|
|
765
|
+
*
|
|
766
|
+
* // Get first 10 CableAttachments
|
|
767
|
+
* const cableAttachments = await prisma.cableAttachment.findMany({ take: 10 })
|
|
768
|
+
*
|
|
769
|
+
* // Only select the `id`
|
|
770
|
+
* const cableAttachmentWithIdOnly = await prisma.cableAttachment.findMany({ select: { id: true } })
|
|
771
|
+
*
|
|
772
|
+
*/
|
|
773
|
+
findMany<T extends CableAttachmentFindManyArgs>(args?: Prisma.SelectSubset<T, CableAttachmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CableAttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* Create a CableAttachment.
|
|
777
|
+
* @param {CableAttachmentCreateArgs} args - Arguments to create a CableAttachment.
|
|
778
|
+
* @example
|
|
779
|
+
* // Create one CableAttachment
|
|
780
|
+
* const CableAttachment = await prisma.cableAttachment.create({
|
|
781
|
+
* data: {
|
|
782
|
+
* // ... data to create a CableAttachment
|
|
783
|
+
* }
|
|
784
|
+
* })
|
|
785
|
+
*
|
|
786
|
+
*/
|
|
787
|
+
create<T extends CableAttachmentCreateArgs>(args: Prisma.SelectSubset<T, CableAttachmentCreateArgs<ExtArgs>>): Prisma.Prisma__CableAttachmentClient<runtime.Types.Result.GetResult<Prisma.$CableAttachmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Create many CableAttachments.
|
|
791
|
+
* @param {CableAttachmentCreateManyArgs} args - Arguments to create many CableAttachments.
|
|
792
|
+
* @example
|
|
793
|
+
* // Create many CableAttachments
|
|
794
|
+
* const cableAttachment = await prisma.cableAttachment.createMany({
|
|
795
|
+
* data: [
|
|
796
|
+
* // ... provide data here
|
|
797
|
+
* ]
|
|
798
|
+
* })
|
|
799
|
+
*
|
|
800
|
+
*/
|
|
801
|
+
createMany<T extends CableAttachmentCreateManyArgs>(args?: Prisma.SelectSubset<T, CableAttachmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* Create many CableAttachments and returns the data saved in the database.
|
|
805
|
+
* @param {CableAttachmentCreateManyAndReturnArgs} args - Arguments to create many CableAttachments.
|
|
806
|
+
* @example
|
|
807
|
+
* // Create many CableAttachments
|
|
808
|
+
* const cableAttachment = await prisma.cableAttachment.createManyAndReturn({
|
|
809
|
+
* data: [
|
|
810
|
+
* // ... provide data here
|
|
811
|
+
* ]
|
|
812
|
+
* })
|
|
813
|
+
*
|
|
814
|
+
* // Create many CableAttachments and only return the `id`
|
|
815
|
+
* const cableAttachmentWithIdOnly = await prisma.cableAttachment.createManyAndReturn({
|
|
816
|
+
* select: { id: true },
|
|
817
|
+
* data: [
|
|
818
|
+
* // ... provide data here
|
|
819
|
+
* ]
|
|
820
|
+
* })
|
|
821
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
822
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
823
|
+
*
|
|
824
|
+
*/
|
|
825
|
+
createManyAndReturn<T extends CableAttachmentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CableAttachmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CableAttachmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Delete a CableAttachment.
|
|
829
|
+
* @param {CableAttachmentDeleteArgs} args - Arguments to delete one CableAttachment.
|
|
830
|
+
* @example
|
|
831
|
+
* // Delete one CableAttachment
|
|
832
|
+
* const CableAttachment = await prisma.cableAttachment.delete({
|
|
833
|
+
* where: {
|
|
834
|
+
* // ... filter to delete one CableAttachment
|
|
835
|
+
* }
|
|
836
|
+
* })
|
|
837
|
+
*
|
|
838
|
+
*/
|
|
839
|
+
delete<T extends CableAttachmentDeleteArgs>(args: Prisma.SelectSubset<T, CableAttachmentDeleteArgs<ExtArgs>>): Prisma.Prisma__CableAttachmentClient<runtime.Types.Result.GetResult<Prisma.$CableAttachmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Update one CableAttachment.
|
|
843
|
+
* @param {CableAttachmentUpdateArgs} args - Arguments to update one CableAttachment.
|
|
844
|
+
* @example
|
|
845
|
+
* // Update one CableAttachment
|
|
846
|
+
* const cableAttachment = await prisma.cableAttachment.update({
|
|
847
|
+
* where: {
|
|
848
|
+
* // ... provide filter here
|
|
849
|
+
* },
|
|
850
|
+
* data: {
|
|
851
|
+
* // ... provide data here
|
|
852
|
+
* }
|
|
853
|
+
* })
|
|
854
|
+
*
|
|
855
|
+
*/
|
|
856
|
+
update<T extends CableAttachmentUpdateArgs>(args: Prisma.SelectSubset<T, CableAttachmentUpdateArgs<ExtArgs>>): Prisma.Prisma__CableAttachmentClient<runtime.Types.Result.GetResult<Prisma.$CableAttachmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* Delete zero or more CableAttachments.
|
|
860
|
+
* @param {CableAttachmentDeleteManyArgs} args - Arguments to filter CableAttachments to delete.
|
|
861
|
+
* @example
|
|
862
|
+
* // Delete a few CableAttachments
|
|
863
|
+
* const { count } = await prisma.cableAttachment.deleteMany({
|
|
864
|
+
* where: {
|
|
865
|
+
* // ... provide filter here
|
|
866
|
+
* }
|
|
867
|
+
* })
|
|
868
|
+
*
|
|
869
|
+
*/
|
|
870
|
+
deleteMany<T extends CableAttachmentDeleteManyArgs>(args?: Prisma.SelectSubset<T, CableAttachmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* Update zero or more CableAttachments.
|
|
874
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
875
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
876
|
+
* @param {CableAttachmentUpdateManyArgs} args - Arguments to update one or more rows.
|
|
877
|
+
* @example
|
|
878
|
+
* // Update many CableAttachments
|
|
879
|
+
* const cableAttachment = await prisma.cableAttachment.updateMany({
|
|
880
|
+
* where: {
|
|
881
|
+
* // ... provide filter here
|
|
882
|
+
* },
|
|
883
|
+
* data: {
|
|
884
|
+
* // ... provide data here
|
|
885
|
+
* }
|
|
886
|
+
* })
|
|
887
|
+
*
|
|
888
|
+
*/
|
|
889
|
+
updateMany<T extends CableAttachmentUpdateManyArgs>(args: Prisma.SelectSubset<T, CableAttachmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Update zero or more CableAttachments and returns the data updated in the database.
|
|
893
|
+
* @param {CableAttachmentUpdateManyAndReturnArgs} args - Arguments to update many CableAttachments.
|
|
894
|
+
* @example
|
|
895
|
+
* // Update many CableAttachments
|
|
896
|
+
* const cableAttachment = await prisma.cableAttachment.updateManyAndReturn({
|
|
897
|
+
* where: {
|
|
898
|
+
* // ... provide filter here
|
|
899
|
+
* },
|
|
900
|
+
* data: [
|
|
901
|
+
* // ... provide data here
|
|
902
|
+
* ]
|
|
903
|
+
* })
|
|
904
|
+
*
|
|
905
|
+
* // Update zero or more CableAttachments and only return the `id`
|
|
906
|
+
* const cableAttachmentWithIdOnly = await prisma.cableAttachment.updateManyAndReturn({
|
|
907
|
+
* select: { id: true },
|
|
908
|
+
* where: {
|
|
909
|
+
* // ... provide filter here
|
|
910
|
+
* },
|
|
911
|
+
* data: [
|
|
912
|
+
* // ... provide data here
|
|
913
|
+
* ]
|
|
914
|
+
* })
|
|
915
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
916
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
917
|
+
*
|
|
918
|
+
*/
|
|
919
|
+
updateManyAndReturn<T extends CableAttachmentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CableAttachmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CableAttachmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Create or update one CableAttachment.
|
|
923
|
+
* @param {CableAttachmentUpsertArgs} args - Arguments to update or create a CableAttachment.
|
|
924
|
+
* @example
|
|
925
|
+
* // Update or create a CableAttachment
|
|
926
|
+
* const cableAttachment = await prisma.cableAttachment.upsert({
|
|
927
|
+
* create: {
|
|
928
|
+
* // ... data to create a CableAttachment
|
|
929
|
+
* },
|
|
930
|
+
* update: {
|
|
931
|
+
* // ... in case it already exists, update
|
|
932
|
+
* },
|
|
933
|
+
* where: {
|
|
934
|
+
* // ... the filter for the CableAttachment we want to update
|
|
935
|
+
* }
|
|
936
|
+
* })
|
|
937
|
+
*/
|
|
938
|
+
upsert<T extends CableAttachmentUpsertArgs>(args: Prisma.SelectSubset<T, CableAttachmentUpsertArgs<ExtArgs>>): Prisma.Prisma__CableAttachmentClient<runtime.Types.Result.GetResult<Prisma.$CableAttachmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* Count the number of CableAttachments.
|
|
943
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
944
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
945
|
+
* @param {CableAttachmentCountArgs} args - Arguments to filter CableAttachments to count.
|
|
946
|
+
* @example
|
|
947
|
+
* // Count the number of CableAttachments
|
|
948
|
+
* const count = await prisma.cableAttachment.count({
|
|
949
|
+
* where: {
|
|
950
|
+
* // ... the filter for the CableAttachments we want to count
|
|
951
|
+
* }
|
|
952
|
+
* })
|
|
953
|
+
**/
|
|
954
|
+
count<T extends CableAttachmentCountArgs>(
|
|
955
|
+
args?: Prisma.Subset<T, CableAttachmentCountArgs>,
|
|
956
|
+
): Prisma.PrismaPromise<
|
|
957
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
958
|
+
? T['select'] extends true
|
|
959
|
+
? number
|
|
960
|
+
: Prisma.GetScalarType<T['select'], CableAttachmentCountAggregateOutputType>
|
|
961
|
+
: number
|
|
962
|
+
>
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Allows you to perform aggregations operations on a CableAttachment.
|
|
966
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
967
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
968
|
+
* @param {CableAttachmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
969
|
+
* @example
|
|
970
|
+
* // Ordered by age ascending
|
|
971
|
+
* // Where email contains prisma.io
|
|
972
|
+
* // Limited to the 10 users
|
|
973
|
+
* const aggregations = await prisma.user.aggregate({
|
|
974
|
+
* _avg: {
|
|
975
|
+
* age: true,
|
|
976
|
+
* },
|
|
977
|
+
* where: {
|
|
978
|
+
* email: {
|
|
979
|
+
* contains: "prisma.io",
|
|
980
|
+
* },
|
|
981
|
+
* },
|
|
982
|
+
* orderBy: {
|
|
983
|
+
* age: "asc",
|
|
984
|
+
* },
|
|
985
|
+
* take: 10,
|
|
986
|
+
* })
|
|
987
|
+
**/
|
|
988
|
+
aggregate<T extends CableAttachmentAggregateArgs>(args: Prisma.Subset<T, CableAttachmentAggregateArgs>): Prisma.PrismaPromise<GetCableAttachmentAggregateType<T>>
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* Group by CableAttachment.
|
|
992
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
993
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
994
|
+
* @param {CableAttachmentGroupByArgs} args - Group by arguments.
|
|
995
|
+
* @example
|
|
996
|
+
* // Group by city, order by createdAt, get count
|
|
997
|
+
* const result = await prisma.user.groupBy({
|
|
998
|
+
* by: ['city', 'createdAt'],
|
|
999
|
+
* orderBy: {
|
|
1000
|
+
* createdAt: true
|
|
1001
|
+
* },
|
|
1002
|
+
* _count: {
|
|
1003
|
+
* _all: true
|
|
1004
|
+
* },
|
|
1005
|
+
* })
|
|
1006
|
+
*
|
|
1007
|
+
**/
|
|
1008
|
+
groupBy<
|
|
1009
|
+
T extends CableAttachmentGroupByArgs,
|
|
1010
|
+
HasSelectOrTake extends Prisma.Or<
|
|
1011
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
1012
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
1013
|
+
>,
|
|
1014
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
1015
|
+
? { orderBy: CableAttachmentGroupByArgs['orderBy'] }
|
|
1016
|
+
: { orderBy?: CableAttachmentGroupByArgs['orderBy'] },
|
|
1017
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
1018
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
1019
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
1020
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
1021
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
1022
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
1023
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
1024
|
+
? `Error: "by" must not be empty.`
|
|
1025
|
+
: HavingValid extends Prisma.False
|
|
1026
|
+
? {
|
|
1027
|
+
[P in HavingFields]: P extends ByFields
|
|
1028
|
+
? never
|
|
1029
|
+
: P extends string
|
|
1030
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
1031
|
+
: [
|
|
1032
|
+
Error,
|
|
1033
|
+
'Field ',
|
|
1034
|
+
P,
|
|
1035
|
+
` in "having" needs to be provided in "by"`,
|
|
1036
|
+
]
|
|
1037
|
+
}[HavingFields]
|
|
1038
|
+
: 'take' extends Prisma.Keys<T>
|
|
1039
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1040
|
+
? ByValid extends Prisma.True
|
|
1041
|
+
? {}
|
|
1042
|
+
: {
|
|
1043
|
+
[P in OrderFields]: P extends ByFields
|
|
1044
|
+
? never
|
|
1045
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1046
|
+
}[OrderFields]
|
|
1047
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
1048
|
+
: 'skip' extends Prisma.Keys<T>
|
|
1049
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1050
|
+
? ByValid extends Prisma.True
|
|
1051
|
+
? {}
|
|
1052
|
+
: {
|
|
1053
|
+
[P in OrderFields]: P extends ByFields
|
|
1054
|
+
? never
|
|
1055
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1056
|
+
}[OrderFields]
|
|
1057
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
1058
|
+
: ByValid extends Prisma.True
|
|
1059
|
+
? {}
|
|
1060
|
+
: {
|
|
1061
|
+
[P in OrderFields]: P extends ByFields
|
|
1062
|
+
? never
|
|
1063
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1064
|
+
}[OrderFields]
|
|
1065
|
+
>(args: Prisma.SubsetIntersection<T, CableAttachmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCableAttachmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
1066
|
+
/**
|
|
1067
|
+
* Fields of the CableAttachment model
|
|
1068
|
+
*/
|
|
1069
|
+
readonly fields: CableAttachmentFieldRefs;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* The delegate class that acts as a "Promise-like" for CableAttachment.
|
|
1074
|
+
* Why is this prefixed with `Prisma__`?
|
|
1075
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1076
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1077
|
+
*/
|
|
1078
|
+
export interface Prisma__CableAttachmentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1079
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1080
|
+
cable<T extends Prisma.CableDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CableDefaultArgs<ExtArgs>>): Prisma.Prisma__CableClient<runtime.Types.Result.GetResult<Prisma.$CablePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1081
|
+
/**
|
|
1082
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1083
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1084
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1085
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1086
|
+
*/
|
|
1087
|
+
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>
|
|
1088
|
+
/**
|
|
1089
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1090
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1091
|
+
* @returns A Promise for the completion of the callback.
|
|
1092
|
+
*/
|
|
1093
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1094
|
+
/**
|
|
1095
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1096
|
+
* resolved value cannot be modified from the callback.
|
|
1097
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1098
|
+
* @returns A Promise for the completion of the callback.
|
|
1099
|
+
*/
|
|
1100
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* Fields of the CableAttachment model
|
|
1108
|
+
*/
|
|
1109
|
+
export interface CableAttachmentFieldRefs {
|
|
1110
|
+
readonly id: Prisma.FieldRef<"CableAttachment", 'String'>
|
|
1111
|
+
readonly no: Prisma.FieldRef<"CableAttachment", 'Int'>
|
|
1112
|
+
readonly cableId: Prisma.FieldRef<"CableAttachment", 'String'>
|
|
1113
|
+
readonly targetType: Prisma.FieldRef<"CableAttachment", 'String'>
|
|
1114
|
+
readonly targetId: Prisma.FieldRef<"CableAttachment", 'String'>
|
|
1115
|
+
readonly role: Prisma.FieldRef<"CableAttachment", 'CableAttachmentRole'>
|
|
1116
|
+
readonly metadata: Prisma.FieldRef<"CableAttachment", 'Json'>
|
|
1117
|
+
readonly createdAt: Prisma.FieldRef<"CableAttachment", 'DateTime'>
|
|
1118
|
+
readonly updatedAt: Prisma.FieldRef<"CableAttachment", 'DateTime'>
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
// Custom InputTypes
|
|
1123
|
+
/**
|
|
1124
|
+
* CableAttachment findUnique
|
|
1125
|
+
*/
|
|
1126
|
+
export type CableAttachmentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1127
|
+
/**
|
|
1128
|
+
* Select specific fields to fetch from the CableAttachment
|
|
1129
|
+
*/
|
|
1130
|
+
select?: Prisma.CableAttachmentSelect<ExtArgs> | null
|
|
1131
|
+
/**
|
|
1132
|
+
* Omit specific fields from the CableAttachment
|
|
1133
|
+
*/
|
|
1134
|
+
omit?: Prisma.CableAttachmentOmit<ExtArgs> | null
|
|
1135
|
+
/**
|
|
1136
|
+
* Choose, which related nodes to fetch as well
|
|
1137
|
+
*/
|
|
1138
|
+
include?: Prisma.CableAttachmentInclude<ExtArgs> | null
|
|
1139
|
+
/**
|
|
1140
|
+
* Filter, which CableAttachment to fetch.
|
|
1141
|
+
*/
|
|
1142
|
+
where: Prisma.CableAttachmentWhereUniqueInput
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* CableAttachment findUniqueOrThrow
|
|
1147
|
+
*/
|
|
1148
|
+
export type CableAttachmentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1149
|
+
/**
|
|
1150
|
+
* Select specific fields to fetch from the CableAttachment
|
|
1151
|
+
*/
|
|
1152
|
+
select?: Prisma.CableAttachmentSelect<ExtArgs> | null
|
|
1153
|
+
/**
|
|
1154
|
+
* Omit specific fields from the CableAttachment
|
|
1155
|
+
*/
|
|
1156
|
+
omit?: Prisma.CableAttachmentOmit<ExtArgs> | null
|
|
1157
|
+
/**
|
|
1158
|
+
* Choose, which related nodes to fetch as well
|
|
1159
|
+
*/
|
|
1160
|
+
include?: Prisma.CableAttachmentInclude<ExtArgs> | null
|
|
1161
|
+
/**
|
|
1162
|
+
* Filter, which CableAttachment to fetch.
|
|
1163
|
+
*/
|
|
1164
|
+
where: Prisma.CableAttachmentWhereUniqueInput
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* CableAttachment findFirst
|
|
1169
|
+
*/
|
|
1170
|
+
export type CableAttachmentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1171
|
+
/**
|
|
1172
|
+
* Select specific fields to fetch from the CableAttachment
|
|
1173
|
+
*/
|
|
1174
|
+
select?: Prisma.CableAttachmentSelect<ExtArgs> | null
|
|
1175
|
+
/**
|
|
1176
|
+
* Omit specific fields from the CableAttachment
|
|
1177
|
+
*/
|
|
1178
|
+
omit?: Prisma.CableAttachmentOmit<ExtArgs> | null
|
|
1179
|
+
/**
|
|
1180
|
+
* Choose, which related nodes to fetch as well
|
|
1181
|
+
*/
|
|
1182
|
+
include?: Prisma.CableAttachmentInclude<ExtArgs> | null
|
|
1183
|
+
/**
|
|
1184
|
+
* Filter, which CableAttachment to fetch.
|
|
1185
|
+
*/
|
|
1186
|
+
where?: Prisma.CableAttachmentWhereInput
|
|
1187
|
+
/**
|
|
1188
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1189
|
+
*
|
|
1190
|
+
* Determine the order of CableAttachments to fetch.
|
|
1191
|
+
*/
|
|
1192
|
+
orderBy?: Prisma.CableAttachmentOrderByWithRelationInput | Prisma.CableAttachmentOrderByWithRelationInput[]
|
|
1193
|
+
/**
|
|
1194
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1195
|
+
*
|
|
1196
|
+
* Sets the position for searching for CableAttachments.
|
|
1197
|
+
*/
|
|
1198
|
+
cursor?: Prisma.CableAttachmentWhereUniqueInput
|
|
1199
|
+
/**
|
|
1200
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1201
|
+
*
|
|
1202
|
+
* Take `±n` CableAttachments from the position of the cursor.
|
|
1203
|
+
*/
|
|
1204
|
+
take?: number
|
|
1205
|
+
/**
|
|
1206
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1207
|
+
*
|
|
1208
|
+
* Skip the first `n` CableAttachments.
|
|
1209
|
+
*/
|
|
1210
|
+
skip?: number
|
|
1211
|
+
/**
|
|
1212
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1213
|
+
*
|
|
1214
|
+
* Filter by unique combinations of CableAttachments.
|
|
1215
|
+
*/
|
|
1216
|
+
distinct?: Prisma.CableAttachmentScalarFieldEnum | Prisma.CableAttachmentScalarFieldEnum[]
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* CableAttachment findFirstOrThrow
|
|
1221
|
+
*/
|
|
1222
|
+
export type CableAttachmentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1223
|
+
/**
|
|
1224
|
+
* Select specific fields to fetch from the CableAttachment
|
|
1225
|
+
*/
|
|
1226
|
+
select?: Prisma.CableAttachmentSelect<ExtArgs> | null
|
|
1227
|
+
/**
|
|
1228
|
+
* Omit specific fields from the CableAttachment
|
|
1229
|
+
*/
|
|
1230
|
+
omit?: Prisma.CableAttachmentOmit<ExtArgs> | null
|
|
1231
|
+
/**
|
|
1232
|
+
* Choose, which related nodes to fetch as well
|
|
1233
|
+
*/
|
|
1234
|
+
include?: Prisma.CableAttachmentInclude<ExtArgs> | null
|
|
1235
|
+
/**
|
|
1236
|
+
* Filter, which CableAttachment to fetch.
|
|
1237
|
+
*/
|
|
1238
|
+
where?: Prisma.CableAttachmentWhereInput
|
|
1239
|
+
/**
|
|
1240
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1241
|
+
*
|
|
1242
|
+
* Determine the order of CableAttachments to fetch.
|
|
1243
|
+
*/
|
|
1244
|
+
orderBy?: Prisma.CableAttachmentOrderByWithRelationInput | Prisma.CableAttachmentOrderByWithRelationInput[]
|
|
1245
|
+
/**
|
|
1246
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1247
|
+
*
|
|
1248
|
+
* Sets the position for searching for CableAttachments.
|
|
1249
|
+
*/
|
|
1250
|
+
cursor?: Prisma.CableAttachmentWhereUniqueInput
|
|
1251
|
+
/**
|
|
1252
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1253
|
+
*
|
|
1254
|
+
* Take `±n` CableAttachments from the position of the cursor.
|
|
1255
|
+
*/
|
|
1256
|
+
take?: number
|
|
1257
|
+
/**
|
|
1258
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1259
|
+
*
|
|
1260
|
+
* Skip the first `n` CableAttachments.
|
|
1261
|
+
*/
|
|
1262
|
+
skip?: number
|
|
1263
|
+
/**
|
|
1264
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1265
|
+
*
|
|
1266
|
+
* Filter by unique combinations of CableAttachments.
|
|
1267
|
+
*/
|
|
1268
|
+
distinct?: Prisma.CableAttachmentScalarFieldEnum | Prisma.CableAttachmentScalarFieldEnum[]
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* CableAttachment findMany
|
|
1273
|
+
*/
|
|
1274
|
+
export type CableAttachmentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1275
|
+
/**
|
|
1276
|
+
* Select specific fields to fetch from the CableAttachment
|
|
1277
|
+
*/
|
|
1278
|
+
select?: Prisma.CableAttachmentSelect<ExtArgs> | null
|
|
1279
|
+
/**
|
|
1280
|
+
* Omit specific fields from the CableAttachment
|
|
1281
|
+
*/
|
|
1282
|
+
omit?: Prisma.CableAttachmentOmit<ExtArgs> | null
|
|
1283
|
+
/**
|
|
1284
|
+
* Choose, which related nodes to fetch as well
|
|
1285
|
+
*/
|
|
1286
|
+
include?: Prisma.CableAttachmentInclude<ExtArgs> | null
|
|
1287
|
+
/**
|
|
1288
|
+
* Filter, which CableAttachments to fetch.
|
|
1289
|
+
*/
|
|
1290
|
+
where?: Prisma.CableAttachmentWhereInput
|
|
1291
|
+
/**
|
|
1292
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1293
|
+
*
|
|
1294
|
+
* Determine the order of CableAttachments to fetch.
|
|
1295
|
+
*/
|
|
1296
|
+
orderBy?: Prisma.CableAttachmentOrderByWithRelationInput | Prisma.CableAttachmentOrderByWithRelationInput[]
|
|
1297
|
+
/**
|
|
1298
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1299
|
+
*
|
|
1300
|
+
* Sets the position for listing CableAttachments.
|
|
1301
|
+
*/
|
|
1302
|
+
cursor?: Prisma.CableAttachmentWhereUniqueInput
|
|
1303
|
+
/**
|
|
1304
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1305
|
+
*
|
|
1306
|
+
* Take `±n` CableAttachments from the position of the cursor.
|
|
1307
|
+
*/
|
|
1308
|
+
take?: number
|
|
1309
|
+
/**
|
|
1310
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1311
|
+
*
|
|
1312
|
+
* Skip the first `n` CableAttachments.
|
|
1313
|
+
*/
|
|
1314
|
+
skip?: number
|
|
1315
|
+
distinct?: Prisma.CableAttachmentScalarFieldEnum | Prisma.CableAttachmentScalarFieldEnum[]
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* CableAttachment create
|
|
1320
|
+
*/
|
|
1321
|
+
export type CableAttachmentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1322
|
+
/**
|
|
1323
|
+
* Select specific fields to fetch from the CableAttachment
|
|
1324
|
+
*/
|
|
1325
|
+
select?: Prisma.CableAttachmentSelect<ExtArgs> | null
|
|
1326
|
+
/**
|
|
1327
|
+
* Omit specific fields from the CableAttachment
|
|
1328
|
+
*/
|
|
1329
|
+
omit?: Prisma.CableAttachmentOmit<ExtArgs> | null
|
|
1330
|
+
/**
|
|
1331
|
+
* Choose, which related nodes to fetch as well
|
|
1332
|
+
*/
|
|
1333
|
+
include?: Prisma.CableAttachmentInclude<ExtArgs> | null
|
|
1334
|
+
/**
|
|
1335
|
+
* The data needed to create a CableAttachment.
|
|
1336
|
+
*/
|
|
1337
|
+
data: Prisma.XOR<Prisma.CableAttachmentCreateInput, Prisma.CableAttachmentUncheckedCreateInput>
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* CableAttachment createMany
|
|
1342
|
+
*/
|
|
1343
|
+
export type CableAttachmentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1344
|
+
/**
|
|
1345
|
+
* The data used to create many CableAttachments.
|
|
1346
|
+
*/
|
|
1347
|
+
data: Prisma.CableAttachmentCreateManyInput | Prisma.CableAttachmentCreateManyInput[]
|
|
1348
|
+
skipDuplicates?: boolean
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* CableAttachment createManyAndReturn
|
|
1353
|
+
*/
|
|
1354
|
+
export type CableAttachmentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1355
|
+
/**
|
|
1356
|
+
* Select specific fields to fetch from the CableAttachment
|
|
1357
|
+
*/
|
|
1358
|
+
select?: Prisma.CableAttachmentSelectCreateManyAndReturn<ExtArgs> | null
|
|
1359
|
+
/**
|
|
1360
|
+
* Omit specific fields from the CableAttachment
|
|
1361
|
+
*/
|
|
1362
|
+
omit?: Prisma.CableAttachmentOmit<ExtArgs> | null
|
|
1363
|
+
/**
|
|
1364
|
+
* The data used to create many CableAttachments.
|
|
1365
|
+
*/
|
|
1366
|
+
data: Prisma.CableAttachmentCreateManyInput | Prisma.CableAttachmentCreateManyInput[]
|
|
1367
|
+
skipDuplicates?: boolean
|
|
1368
|
+
/**
|
|
1369
|
+
* Choose, which related nodes to fetch as well
|
|
1370
|
+
*/
|
|
1371
|
+
include?: Prisma.CableAttachmentIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* CableAttachment update
|
|
1376
|
+
*/
|
|
1377
|
+
export type CableAttachmentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1378
|
+
/**
|
|
1379
|
+
* Select specific fields to fetch from the CableAttachment
|
|
1380
|
+
*/
|
|
1381
|
+
select?: Prisma.CableAttachmentSelect<ExtArgs> | null
|
|
1382
|
+
/**
|
|
1383
|
+
* Omit specific fields from the CableAttachment
|
|
1384
|
+
*/
|
|
1385
|
+
omit?: Prisma.CableAttachmentOmit<ExtArgs> | null
|
|
1386
|
+
/**
|
|
1387
|
+
* Choose, which related nodes to fetch as well
|
|
1388
|
+
*/
|
|
1389
|
+
include?: Prisma.CableAttachmentInclude<ExtArgs> | null
|
|
1390
|
+
/**
|
|
1391
|
+
* The data needed to update a CableAttachment.
|
|
1392
|
+
*/
|
|
1393
|
+
data: Prisma.XOR<Prisma.CableAttachmentUpdateInput, Prisma.CableAttachmentUncheckedUpdateInput>
|
|
1394
|
+
/**
|
|
1395
|
+
* Choose, which CableAttachment to update.
|
|
1396
|
+
*/
|
|
1397
|
+
where: Prisma.CableAttachmentWhereUniqueInput
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* CableAttachment updateMany
|
|
1402
|
+
*/
|
|
1403
|
+
export type CableAttachmentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1404
|
+
/**
|
|
1405
|
+
* The data used to update CableAttachments.
|
|
1406
|
+
*/
|
|
1407
|
+
data: Prisma.XOR<Prisma.CableAttachmentUpdateManyMutationInput, Prisma.CableAttachmentUncheckedUpdateManyInput>
|
|
1408
|
+
/**
|
|
1409
|
+
* Filter which CableAttachments to update
|
|
1410
|
+
*/
|
|
1411
|
+
where?: Prisma.CableAttachmentWhereInput
|
|
1412
|
+
/**
|
|
1413
|
+
* Limit how many CableAttachments to update.
|
|
1414
|
+
*/
|
|
1415
|
+
limit?: number
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
* CableAttachment updateManyAndReturn
|
|
1420
|
+
*/
|
|
1421
|
+
export type CableAttachmentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1422
|
+
/**
|
|
1423
|
+
* Select specific fields to fetch from the CableAttachment
|
|
1424
|
+
*/
|
|
1425
|
+
select?: Prisma.CableAttachmentSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1426
|
+
/**
|
|
1427
|
+
* Omit specific fields from the CableAttachment
|
|
1428
|
+
*/
|
|
1429
|
+
omit?: Prisma.CableAttachmentOmit<ExtArgs> | null
|
|
1430
|
+
/**
|
|
1431
|
+
* The data used to update CableAttachments.
|
|
1432
|
+
*/
|
|
1433
|
+
data: Prisma.XOR<Prisma.CableAttachmentUpdateManyMutationInput, Prisma.CableAttachmentUncheckedUpdateManyInput>
|
|
1434
|
+
/**
|
|
1435
|
+
* Filter which CableAttachments to update
|
|
1436
|
+
*/
|
|
1437
|
+
where?: Prisma.CableAttachmentWhereInput
|
|
1438
|
+
/**
|
|
1439
|
+
* Limit how many CableAttachments to update.
|
|
1440
|
+
*/
|
|
1441
|
+
limit?: number
|
|
1442
|
+
/**
|
|
1443
|
+
* Choose, which related nodes to fetch as well
|
|
1444
|
+
*/
|
|
1445
|
+
include?: Prisma.CableAttachmentIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* CableAttachment upsert
|
|
1450
|
+
*/
|
|
1451
|
+
export type CableAttachmentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1452
|
+
/**
|
|
1453
|
+
* Select specific fields to fetch from the CableAttachment
|
|
1454
|
+
*/
|
|
1455
|
+
select?: Prisma.CableAttachmentSelect<ExtArgs> | null
|
|
1456
|
+
/**
|
|
1457
|
+
* Omit specific fields from the CableAttachment
|
|
1458
|
+
*/
|
|
1459
|
+
omit?: Prisma.CableAttachmentOmit<ExtArgs> | null
|
|
1460
|
+
/**
|
|
1461
|
+
* Choose, which related nodes to fetch as well
|
|
1462
|
+
*/
|
|
1463
|
+
include?: Prisma.CableAttachmentInclude<ExtArgs> | null
|
|
1464
|
+
/**
|
|
1465
|
+
* The filter to search for the CableAttachment to update in case it exists.
|
|
1466
|
+
*/
|
|
1467
|
+
where: Prisma.CableAttachmentWhereUniqueInput
|
|
1468
|
+
/**
|
|
1469
|
+
* In case the CableAttachment found by the `where` argument doesn't exist, create a new CableAttachment with this data.
|
|
1470
|
+
*/
|
|
1471
|
+
create: Prisma.XOR<Prisma.CableAttachmentCreateInput, Prisma.CableAttachmentUncheckedCreateInput>
|
|
1472
|
+
/**
|
|
1473
|
+
* In case the CableAttachment was found with the provided `where` argument, update it with this data.
|
|
1474
|
+
*/
|
|
1475
|
+
update: Prisma.XOR<Prisma.CableAttachmentUpdateInput, Prisma.CableAttachmentUncheckedUpdateInput>
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* CableAttachment delete
|
|
1480
|
+
*/
|
|
1481
|
+
export type CableAttachmentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1482
|
+
/**
|
|
1483
|
+
* Select specific fields to fetch from the CableAttachment
|
|
1484
|
+
*/
|
|
1485
|
+
select?: Prisma.CableAttachmentSelect<ExtArgs> | null
|
|
1486
|
+
/**
|
|
1487
|
+
* Omit specific fields from the CableAttachment
|
|
1488
|
+
*/
|
|
1489
|
+
omit?: Prisma.CableAttachmentOmit<ExtArgs> | null
|
|
1490
|
+
/**
|
|
1491
|
+
* Choose, which related nodes to fetch as well
|
|
1492
|
+
*/
|
|
1493
|
+
include?: Prisma.CableAttachmentInclude<ExtArgs> | null
|
|
1494
|
+
/**
|
|
1495
|
+
* Filter which CableAttachment to delete.
|
|
1496
|
+
*/
|
|
1497
|
+
where: Prisma.CableAttachmentWhereUniqueInput
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
/**
|
|
1501
|
+
* CableAttachment deleteMany
|
|
1502
|
+
*/
|
|
1503
|
+
export type CableAttachmentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1504
|
+
/**
|
|
1505
|
+
* Filter which CableAttachments to delete
|
|
1506
|
+
*/
|
|
1507
|
+
where?: Prisma.CableAttachmentWhereInput
|
|
1508
|
+
/**
|
|
1509
|
+
* Limit how many CableAttachments to delete.
|
|
1510
|
+
*/
|
|
1511
|
+
limit?: number
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* CableAttachment without action
|
|
1516
|
+
*/
|
|
1517
|
+
export type CableAttachmentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1518
|
+
/**
|
|
1519
|
+
* Select specific fields to fetch from the CableAttachment
|
|
1520
|
+
*/
|
|
1521
|
+
select?: Prisma.CableAttachmentSelect<ExtArgs> | null
|
|
1522
|
+
/**
|
|
1523
|
+
* Omit specific fields from the CableAttachment
|
|
1524
|
+
*/
|
|
1525
|
+
omit?: Prisma.CableAttachmentOmit<ExtArgs> | null
|
|
1526
|
+
/**
|
|
1527
|
+
* Choose, which related nodes to fetch as well
|
|
1528
|
+
*/
|
|
1529
|
+
include?: Prisma.CableAttachmentInclude<ExtArgs> | null
|
|
1530
|
+
}
|