@igstack/app-catalog-backend-core 0.1.1-alpha-20260304050203 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +11282 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5507 -117
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/prisma/schema.prisma +2 -2
- package/src/db/client.ts +20 -2
- package/src/db/prisma.ts +3 -0
- package/src/db/syncAppCatalog.ts +1 -1
- package/src/db/tableSyncMagazine.ts +1 -1
- package/src/db/tableSyncPrismaAdapter.ts +2 -3
- package/src/generated/prisma/browser.ts +59 -0
- package/src/generated/prisma/client.ts +83 -0
- package/src/generated/prisma/commonInputTypes.ts +658 -0
- package/src/generated/prisma/enums.ts +26 -0
- package/src/generated/prisma/internal/class.ts +274 -0
- package/src/generated/prisma/internal/prismaNamespace.ts +1506 -0
- package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +250 -0
- package/src/generated/prisma/models/DbAppForCatalog.ts +1490 -0
- package/src/generated/prisma/models/DbAppTagDefinition.ts +1199 -0
- package/src/generated/prisma/models/DbApprovalMethod.ts +1181 -0
- package/src/generated/prisma/models/DbAsset.ts +1394 -0
- package/src/generated/prisma/models/account.ts +1632 -0
- package/src/generated/prisma/models/session.ts +1447 -0
- package/src/generated/prisma/models/user.ts +1562 -0
- package/src/generated/prisma/models/verification.ts +1180 -0
- package/src/generated/prisma/models.ts +19 -0
- package/src/generated/prisma/pjtg.ts +183 -0
- package/src/index.ts +3 -0
- package/src/middleware/database.ts +13 -2
- package/src/modules/approvalMethod/approvalMethodRouter.ts +1 -1
- package/src/modules/approvalMethod/syncApprovalMethods.ts +1 -1
- package/src/modules/assets/upsertAsset.ts +1 -1
|
@@ -0,0 +1,1394 @@
|
|
|
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 `DbAsset` model and its related types.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type * as PJTG from '../pjtg';
|
|
13
|
+
import type * as runtime from "@prisma/client/runtime/client"
|
|
14
|
+
import type * as $Enums from "../enums"
|
|
15
|
+
import type * as Prisma from "../internal/prismaNamespace"
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Model DbAsset
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export type DbAssetModel = runtime.Types.Result.DefaultSelection<Prisma.$DbAssetPayload>
|
|
22
|
+
|
|
23
|
+
export type AggregateDbAsset = {
|
|
24
|
+
_count: DbAssetCountAggregateOutputType | null
|
|
25
|
+
_avg: DbAssetAvgAggregateOutputType | null
|
|
26
|
+
_sum: DbAssetSumAggregateOutputType | null
|
|
27
|
+
_min: DbAssetMinAggregateOutputType | null
|
|
28
|
+
_max: DbAssetMaxAggregateOutputType | null
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type DbAssetAvgAggregateOutputType = {
|
|
32
|
+
fileSize: number | null
|
|
33
|
+
width: number | null
|
|
34
|
+
height: number | null
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type DbAssetSumAggregateOutputType = {
|
|
38
|
+
fileSize: number | null
|
|
39
|
+
width: number | null
|
|
40
|
+
height: number | null
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type DbAssetMinAggregateOutputType = {
|
|
44
|
+
id: string | null
|
|
45
|
+
name: string | null
|
|
46
|
+
assetType: $Enums.AssetType | null
|
|
47
|
+
content: runtime.Bytes | null
|
|
48
|
+
checksum: string | null
|
|
49
|
+
mimeType: string | null
|
|
50
|
+
fileSize: number | null
|
|
51
|
+
width: number | null
|
|
52
|
+
height: number | null
|
|
53
|
+
createdAt: Date | null
|
|
54
|
+
updatedAt: Date | null
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type DbAssetMaxAggregateOutputType = {
|
|
58
|
+
id: string | null
|
|
59
|
+
name: string | null
|
|
60
|
+
assetType: $Enums.AssetType | null
|
|
61
|
+
content: runtime.Bytes | null
|
|
62
|
+
checksum: string | null
|
|
63
|
+
mimeType: string | null
|
|
64
|
+
fileSize: number | null
|
|
65
|
+
width: number | null
|
|
66
|
+
height: number | null
|
|
67
|
+
createdAt: Date | null
|
|
68
|
+
updatedAt: Date | null
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type DbAssetCountAggregateOutputType = {
|
|
72
|
+
id: number
|
|
73
|
+
name: number
|
|
74
|
+
assetType: number
|
|
75
|
+
content: number
|
|
76
|
+
checksum: number
|
|
77
|
+
mimeType: number
|
|
78
|
+
fileSize: number
|
|
79
|
+
width: number
|
|
80
|
+
height: number
|
|
81
|
+
createdAt: number
|
|
82
|
+
updatedAt: number
|
|
83
|
+
_all: number
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
export type DbAssetAvgAggregateInputType = {
|
|
88
|
+
fileSize?: true
|
|
89
|
+
width?: true
|
|
90
|
+
height?: true
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type DbAssetSumAggregateInputType = {
|
|
94
|
+
fileSize?: true
|
|
95
|
+
width?: true
|
|
96
|
+
height?: true
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export type DbAssetMinAggregateInputType = {
|
|
100
|
+
id?: true
|
|
101
|
+
name?: true
|
|
102
|
+
assetType?: true
|
|
103
|
+
content?: true
|
|
104
|
+
checksum?: true
|
|
105
|
+
mimeType?: true
|
|
106
|
+
fileSize?: true
|
|
107
|
+
width?: true
|
|
108
|
+
height?: true
|
|
109
|
+
createdAt?: true
|
|
110
|
+
updatedAt?: true
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type DbAssetMaxAggregateInputType = {
|
|
114
|
+
id?: true
|
|
115
|
+
name?: true
|
|
116
|
+
assetType?: true
|
|
117
|
+
content?: true
|
|
118
|
+
checksum?: true
|
|
119
|
+
mimeType?: true
|
|
120
|
+
fileSize?: true
|
|
121
|
+
width?: true
|
|
122
|
+
height?: true
|
|
123
|
+
createdAt?: true
|
|
124
|
+
updatedAt?: true
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type DbAssetCountAggregateInputType = {
|
|
128
|
+
id?: true
|
|
129
|
+
name?: true
|
|
130
|
+
assetType?: true
|
|
131
|
+
content?: true
|
|
132
|
+
checksum?: true
|
|
133
|
+
mimeType?: true
|
|
134
|
+
fileSize?: true
|
|
135
|
+
width?: true
|
|
136
|
+
height?: true
|
|
137
|
+
createdAt?: true
|
|
138
|
+
updatedAt?: true
|
|
139
|
+
_all?: true
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type DbAssetAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
143
|
+
/**
|
|
144
|
+
* Filter which DbAsset to aggregate.
|
|
145
|
+
*/
|
|
146
|
+
where?: Prisma.DbAssetWhereInput
|
|
147
|
+
/**
|
|
148
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
149
|
+
*
|
|
150
|
+
* Determine the order of DbAssets to fetch.
|
|
151
|
+
*/
|
|
152
|
+
orderBy?: Prisma.DbAssetOrderByWithRelationInput | Prisma.DbAssetOrderByWithRelationInput[]
|
|
153
|
+
/**
|
|
154
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
155
|
+
*
|
|
156
|
+
* Sets the start position
|
|
157
|
+
*/
|
|
158
|
+
cursor?: Prisma.DbAssetWhereUniqueInput
|
|
159
|
+
/**
|
|
160
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
161
|
+
*
|
|
162
|
+
* Take `±n` DbAssets from the position of the cursor.
|
|
163
|
+
*/
|
|
164
|
+
take?: number
|
|
165
|
+
/**
|
|
166
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
167
|
+
*
|
|
168
|
+
* Skip the first `n` DbAssets.
|
|
169
|
+
*/
|
|
170
|
+
skip?: number
|
|
171
|
+
/**
|
|
172
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
173
|
+
*
|
|
174
|
+
* Count returned DbAssets
|
|
175
|
+
**/
|
|
176
|
+
_count?: true | DbAssetCountAggregateInputType
|
|
177
|
+
/**
|
|
178
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
179
|
+
*
|
|
180
|
+
* Select which fields to average
|
|
181
|
+
**/
|
|
182
|
+
_avg?: DbAssetAvgAggregateInputType
|
|
183
|
+
/**
|
|
184
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
185
|
+
*
|
|
186
|
+
* Select which fields to sum
|
|
187
|
+
**/
|
|
188
|
+
_sum?: DbAssetSumAggregateInputType
|
|
189
|
+
/**
|
|
190
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
191
|
+
*
|
|
192
|
+
* Select which fields to find the minimum value
|
|
193
|
+
**/
|
|
194
|
+
_min?: DbAssetMinAggregateInputType
|
|
195
|
+
/**
|
|
196
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
197
|
+
*
|
|
198
|
+
* Select which fields to find the maximum value
|
|
199
|
+
**/
|
|
200
|
+
_max?: DbAssetMaxAggregateInputType
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export type GetDbAssetAggregateType<T extends DbAssetAggregateArgs> = {
|
|
204
|
+
[P in keyof T & keyof AggregateDbAsset]: P extends '_count' | 'count'
|
|
205
|
+
? T[P] extends true
|
|
206
|
+
? number
|
|
207
|
+
: Prisma.GetScalarType<T[P], AggregateDbAsset[P]>
|
|
208
|
+
: Prisma.GetScalarType<T[P], AggregateDbAsset[P]>
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
export type DbAssetGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
215
|
+
where?: Prisma.DbAssetWhereInput
|
|
216
|
+
orderBy?: Prisma.DbAssetOrderByWithAggregationInput | Prisma.DbAssetOrderByWithAggregationInput[]
|
|
217
|
+
by: Prisma.DbAssetScalarFieldEnum[] | Prisma.DbAssetScalarFieldEnum
|
|
218
|
+
having?: Prisma.DbAssetScalarWhereWithAggregatesInput
|
|
219
|
+
take?: number
|
|
220
|
+
skip?: number
|
|
221
|
+
_count?: DbAssetCountAggregateInputType | true
|
|
222
|
+
_avg?: DbAssetAvgAggregateInputType
|
|
223
|
+
_sum?: DbAssetSumAggregateInputType
|
|
224
|
+
_min?: DbAssetMinAggregateInputType
|
|
225
|
+
_max?: DbAssetMaxAggregateInputType
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export type DbAssetGroupByOutputType = {
|
|
229
|
+
id: string
|
|
230
|
+
name: string
|
|
231
|
+
assetType: $Enums.AssetType
|
|
232
|
+
content: runtime.Bytes
|
|
233
|
+
checksum: string
|
|
234
|
+
mimeType: string
|
|
235
|
+
fileSize: number
|
|
236
|
+
width: number | null
|
|
237
|
+
height: number | null
|
|
238
|
+
createdAt: Date
|
|
239
|
+
updatedAt: Date
|
|
240
|
+
_count: DbAssetCountAggregateOutputType | null
|
|
241
|
+
_avg: DbAssetAvgAggregateOutputType | null
|
|
242
|
+
_sum: DbAssetSumAggregateOutputType | null
|
|
243
|
+
_min: DbAssetMinAggregateOutputType | null
|
|
244
|
+
_max: DbAssetMaxAggregateOutputType | null
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
type GetDbAssetGroupByPayload<T extends DbAssetGroupByArgs> = Prisma.PrismaPromise<
|
|
248
|
+
Array<
|
|
249
|
+
Prisma.PickEnumerable<DbAssetGroupByOutputType, T['by']> &
|
|
250
|
+
{
|
|
251
|
+
[P in ((keyof T) & (keyof DbAssetGroupByOutputType))]: P extends '_count'
|
|
252
|
+
? T[P] extends boolean
|
|
253
|
+
? number
|
|
254
|
+
: Prisma.GetScalarType<T[P], DbAssetGroupByOutputType[P]>
|
|
255
|
+
: Prisma.GetScalarType<T[P], DbAssetGroupByOutputType[P]>
|
|
256
|
+
}
|
|
257
|
+
>
|
|
258
|
+
>
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
export type DbAssetWhereInput = {
|
|
263
|
+
AND?: Prisma.DbAssetWhereInput | Prisma.DbAssetWhereInput[]
|
|
264
|
+
OR?: Prisma.DbAssetWhereInput[]
|
|
265
|
+
NOT?: Prisma.DbAssetWhereInput | Prisma.DbAssetWhereInput[]
|
|
266
|
+
id?: Prisma.StringFilter<"DbAsset"> | string
|
|
267
|
+
name?: Prisma.StringFilter<"DbAsset"> | string
|
|
268
|
+
assetType?: Prisma.EnumAssetTypeFilter<"DbAsset"> | $Enums.AssetType
|
|
269
|
+
content?: Prisma.BytesFilter<"DbAsset"> | runtime.Bytes
|
|
270
|
+
checksum?: Prisma.StringFilter<"DbAsset"> | string
|
|
271
|
+
mimeType?: Prisma.StringFilter<"DbAsset"> | string
|
|
272
|
+
fileSize?: Prisma.IntFilter<"DbAsset"> | number
|
|
273
|
+
width?: Prisma.IntNullableFilter<"DbAsset"> | number | null
|
|
274
|
+
height?: Prisma.IntNullableFilter<"DbAsset"> | number | null
|
|
275
|
+
createdAt?: Prisma.DateTimeFilter<"DbAsset"> | Date | string
|
|
276
|
+
updatedAt?: Prisma.DateTimeFilter<"DbAsset"> | Date | string
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export type DbAssetOrderByWithRelationInput = {
|
|
280
|
+
id?: Prisma.SortOrder
|
|
281
|
+
name?: Prisma.SortOrder
|
|
282
|
+
assetType?: Prisma.SortOrder
|
|
283
|
+
content?: Prisma.SortOrder
|
|
284
|
+
checksum?: Prisma.SortOrder
|
|
285
|
+
mimeType?: Prisma.SortOrder
|
|
286
|
+
fileSize?: Prisma.SortOrder
|
|
287
|
+
width?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
288
|
+
height?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
289
|
+
createdAt?: Prisma.SortOrder
|
|
290
|
+
updatedAt?: Prisma.SortOrder
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export type DbAssetWhereUniqueInput = Prisma.AtLeast<{
|
|
294
|
+
id?: string
|
|
295
|
+
name?: string
|
|
296
|
+
AND?: Prisma.DbAssetWhereInput | Prisma.DbAssetWhereInput[]
|
|
297
|
+
OR?: Prisma.DbAssetWhereInput[]
|
|
298
|
+
NOT?: Prisma.DbAssetWhereInput | Prisma.DbAssetWhereInput[]
|
|
299
|
+
assetType?: Prisma.EnumAssetTypeFilter<"DbAsset"> | $Enums.AssetType
|
|
300
|
+
content?: Prisma.BytesFilter<"DbAsset"> | runtime.Bytes
|
|
301
|
+
checksum?: Prisma.StringFilter<"DbAsset"> | string
|
|
302
|
+
mimeType?: Prisma.StringFilter<"DbAsset"> | string
|
|
303
|
+
fileSize?: Prisma.IntFilter<"DbAsset"> | number
|
|
304
|
+
width?: Prisma.IntNullableFilter<"DbAsset"> | number | null
|
|
305
|
+
height?: Prisma.IntNullableFilter<"DbAsset"> | number | null
|
|
306
|
+
createdAt?: Prisma.DateTimeFilter<"DbAsset"> | Date | string
|
|
307
|
+
updatedAt?: Prisma.DateTimeFilter<"DbAsset"> | Date | string
|
|
308
|
+
}, "id" | "name">
|
|
309
|
+
|
|
310
|
+
export type DbAssetOrderByWithAggregationInput = {
|
|
311
|
+
id?: Prisma.SortOrder
|
|
312
|
+
name?: Prisma.SortOrder
|
|
313
|
+
assetType?: Prisma.SortOrder
|
|
314
|
+
content?: Prisma.SortOrder
|
|
315
|
+
checksum?: Prisma.SortOrder
|
|
316
|
+
mimeType?: Prisma.SortOrder
|
|
317
|
+
fileSize?: Prisma.SortOrder
|
|
318
|
+
width?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
319
|
+
height?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
320
|
+
createdAt?: Prisma.SortOrder
|
|
321
|
+
updatedAt?: Prisma.SortOrder
|
|
322
|
+
_count?: Prisma.DbAssetCountOrderByAggregateInput
|
|
323
|
+
_avg?: Prisma.DbAssetAvgOrderByAggregateInput
|
|
324
|
+
_max?: Prisma.DbAssetMaxOrderByAggregateInput
|
|
325
|
+
_min?: Prisma.DbAssetMinOrderByAggregateInput
|
|
326
|
+
_sum?: Prisma.DbAssetSumOrderByAggregateInput
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export type DbAssetScalarWhereWithAggregatesInput = {
|
|
330
|
+
AND?: Prisma.DbAssetScalarWhereWithAggregatesInput | Prisma.DbAssetScalarWhereWithAggregatesInput[]
|
|
331
|
+
OR?: Prisma.DbAssetScalarWhereWithAggregatesInput[]
|
|
332
|
+
NOT?: Prisma.DbAssetScalarWhereWithAggregatesInput | Prisma.DbAssetScalarWhereWithAggregatesInput[]
|
|
333
|
+
id?: Prisma.StringWithAggregatesFilter<"DbAsset"> | string
|
|
334
|
+
name?: Prisma.StringWithAggregatesFilter<"DbAsset"> | string
|
|
335
|
+
assetType?: Prisma.EnumAssetTypeWithAggregatesFilter<"DbAsset"> | $Enums.AssetType
|
|
336
|
+
content?: Prisma.BytesWithAggregatesFilter<"DbAsset"> | runtime.Bytes
|
|
337
|
+
checksum?: Prisma.StringWithAggregatesFilter<"DbAsset"> | string
|
|
338
|
+
mimeType?: Prisma.StringWithAggregatesFilter<"DbAsset"> | string
|
|
339
|
+
fileSize?: Prisma.IntWithAggregatesFilter<"DbAsset"> | number
|
|
340
|
+
width?: Prisma.IntNullableWithAggregatesFilter<"DbAsset"> | number | null
|
|
341
|
+
height?: Prisma.IntNullableWithAggregatesFilter<"DbAsset"> | number | null
|
|
342
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"DbAsset"> | Date | string
|
|
343
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"DbAsset"> | Date | string
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export type DbAssetCreateInput = {
|
|
347
|
+
id?: string
|
|
348
|
+
name: string
|
|
349
|
+
assetType?: $Enums.AssetType
|
|
350
|
+
content: runtime.Bytes
|
|
351
|
+
checksum: string
|
|
352
|
+
mimeType: string
|
|
353
|
+
fileSize: number
|
|
354
|
+
width?: number | null
|
|
355
|
+
height?: number | null
|
|
356
|
+
createdAt?: Date | string
|
|
357
|
+
updatedAt?: Date | string
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export type DbAssetUncheckedCreateInput = {
|
|
361
|
+
id?: string
|
|
362
|
+
name: string
|
|
363
|
+
assetType?: $Enums.AssetType
|
|
364
|
+
content: runtime.Bytes
|
|
365
|
+
checksum: string
|
|
366
|
+
mimeType: string
|
|
367
|
+
fileSize: number
|
|
368
|
+
width?: number | null
|
|
369
|
+
height?: number | null
|
|
370
|
+
createdAt?: Date | string
|
|
371
|
+
updatedAt?: Date | string
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export type DbAssetUpdateInput = {
|
|
375
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
376
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
377
|
+
assetType?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
|
378
|
+
content?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
|
|
379
|
+
checksum?: Prisma.StringFieldUpdateOperationsInput | string
|
|
380
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
381
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
382
|
+
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
383
|
+
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
384
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
385
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export type DbAssetUncheckedUpdateInput = {
|
|
389
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
390
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
391
|
+
assetType?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
|
392
|
+
content?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
|
|
393
|
+
checksum?: Prisma.StringFieldUpdateOperationsInput | string
|
|
394
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
395
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
396
|
+
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
397
|
+
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
398
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
399
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
export type DbAssetCreateManyInput = {
|
|
403
|
+
id?: string
|
|
404
|
+
name: string
|
|
405
|
+
assetType?: $Enums.AssetType
|
|
406
|
+
content: runtime.Bytes
|
|
407
|
+
checksum: string
|
|
408
|
+
mimeType: string
|
|
409
|
+
fileSize: number
|
|
410
|
+
width?: number | null
|
|
411
|
+
height?: number | null
|
|
412
|
+
createdAt?: Date | string
|
|
413
|
+
updatedAt?: Date | string
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export type DbAssetUpdateManyMutationInput = {
|
|
417
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
418
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
419
|
+
assetType?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
|
420
|
+
content?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
|
|
421
|
+
checksum?: Prisma.StringFieldUpdateOperationsInput | string
|
|
422
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
423
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
424
|
+
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
425
|
+
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
426
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
427
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export type DbAssetUncheckedUpdateManyInput = {
|
|
431
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
432
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
433
|
+
assetType?: Prisma.EnumAssetTypeFieldUpdateOperationsInput | $Enums.AssetType
|
|
434
|
+
content?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
|
|
435
|
+
checksum?: Prisma.StringFieldUpdateOperationsInput | string
|
|
436
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
437
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
438
|
+
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
439
|
+
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
440
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
441
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
export type DbAssetCountOrderByAggregateInput = {
|
|
445
|
+
id?: Prisma.SortOrder
|
|
446
|
+
name?: Prisma.SortOrder
|
|
447
|
+
assetType?: Prisma.SortOrder
|
|
448
|
+
content?: Prisma.SortOrder
|
|
449
|
+
checksum?: Prisma.SortOrder
|
|
450
|
+
mimeType?: Prisma.SortOrder
|
|
451
|
+
fileSize?: Prisma.SortOrder
|
|
452
|
+
width?: Prisma.SortOrder
|
|
453
|
+
height?: Prisma.SortOrder
|
|
454
|
+
createdAt?: Prisma.SortOrder
|
|
455
|
+
updatedAt?: Prisma.SortOrder
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export type DbAssetAvgOrderByAggregateInput = {
|
|
459
|
+
fileSize?: Prisma.SortOrder
|
|
460
|
+
width?: Prisma.SortOrder
|
|
461
|
+
height?: Prisma.SortOrder
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export type DbAssetMaxOrderByAggregateInput = {
|
|
465
|
+
id?: Prisma.SortOrder
|
|
466
|
+
name?: Prisma.SortOrder
|
|
467
|
+
assetType?: Prisma.SortOrder
|
|
468
|
+
content?: Prisma.SortOrder
|
|
469
|
+
checksum?: Prisma.SortOrder
|
|
470
|
+
mimeType?: Prisma.SortOrder
|
|
471
|
+
fileSize?: Prisma.SortOrder
|
|
472
|
+
width?: Prisma.SortOrder
|
|
473
|
+
height?: Prisma.SortOrder
|
|
474
|
+
createdAt?: Prisma.SortOrder
|
|
475
|
+
updatedAt?: Prisma.SortOrder
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
export type DbAssetMinOrderByAggregateInput = {
|
|
479
|
+
id?: Prisma.SortOrder
|
|
480
|
+
name?: Prisma.SortOrder
|
|
481
|
+
assetType?: Prisma.SortOrder
|
|
482
|
+
content?: Prisma.SortOrder
|
|
483
|
+
checksum?: Prisma.SortOrder
|
|
484
|
+
mimeType?: Prisma.SortOrder
|
|
485
|
+
fileSize?: Prisma.SortOrder
|
|
486
|
+
width?: Prisma.SortOrder
|
|
487
|
+
height?: Prisma.SortOrder
|
|
488
|
+
createdAt?: Prisma.SortOrder
|
|
489
|
+
updatedAt?: Prisma.SortOrder
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export type DbAssetSumOrderByAggregateInput = {
|
|
493
|
+
fileSize?: Prisma.SortOrder
|
|
494
|
+
width?: Prisma.SortOrder
|
|
495
|
+
height?: Prisma.SortOrder
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
export type EnumAssetTypeFieldUpdateOperationsInput = {
|
|
499
|
+
set?: $Enums.AssetType
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
export type BytesFieldUpdateOperationsInput = {
|
|
503
|
+
set?: runtime.Bytes
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
export type IntFieldUpdateOperationsInput = {
|
|
507
|
+
set?: number
|
|
508
|
+
increment?: number
|
|
509
|
+
decrement?: number
|
|
510
|
+
multiply?: number
|
|
511
|
+
divide?: number
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export type NullableIntFieldUpdateOperationsInput = {
|
|
515
|
+
set?: number | null
|
|
516
|
+
increment?: number
|
|
517
|
+
decrement?: number
|
|
518
|
+
multiply?: number
|
|
519
|
+
divide?: number
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
export type DbAssetSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
525
|
+
id?: boolean
|
|
526
|
+
name?: boolean
|
|
527
|
+
assetType?: boolean
|
|
528
|
+
content?: boolean
|
|
529
|
+
checksum?: boolean
|
|
530
|
+
mimeType?: boolean
|
|
531
|
+
fileSize?: boolean
|
|
532
|
+
width?: boolean
|
|
533
|
+
height?: boolean
|
|
534
|
+
createdAt?: boolean
|
|
535
|
+
updatedAt?: boolean
|
|
536
|
+
}, ExtArgs["result"]["dbAsset"]>
|
|
537
|
+
|
|
538
|
+
export type DbAssetSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
539
|
+
id?: boolean
|
|
540
|
+
name?: boolean
|
|
541
|
+
assetType?: boolean
|
|
542
|
+
content?: boolean
|
|
543
|
+
checksum?: boolean
|
|
544
|
+
mimeType?: boolean
|
|
545
|
+
fileSize?: boolean
|
|
546
|
+
width?: boolean
|
|
547
|
+
height?: boolean
|
|
548
|
+
createdAt?: boolean
|
|
549
|
+
updatedAt?: boolean
|
|
550
|
+
}, ExtArgs["result"]["dbAsset"]>
|
|
551
|
+
|
|
552
|
+
export type DbAssetSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
553
|
+
id?: boolean
|
|
554
|
+
name?: boolean
|
|
555
|
+
assetType?: boolean
|
|
556
|
+
content?: boolean
|
|
557
|
+
checksum?: boolean
|
|
558
|
+
mimeType?: boolean
|
|
559
|
+
fileSize?: boolean
|
|
560
|
+
width?: boolean
|
|
561
|
+
height?: boolean
|
|
562
|
+
createdAt?: boolean
|
|
563
|
+
updatedAt?: boolean
|
|
564
|
+
}, ExtArgs["result"]["dbAsset"]>
|
|
565
|
+
|
|
566
|
+
export type DbAssetSelectScalar = {
|
|
567
|
+
id?: boolean
|
|
568
|
+
name?: boolean
|
|
569
|
+
assetType?: boolean
|
|
570
|
+
content?: boolean
|
|
571
|
+
checksum?: boolean
|
|
572
|
+
mimeType?: boolean
|
|
573
|
+
fileSize?: boolean
|
|
574
|
+
width?: boolean
|
|
575
|
+
height?: boolean
|
|
576
|
+
createdAt?: boolean
|
|
577
|
+
updatedAt?: boolean
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
export type DbAssetOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "assetType" | "content" | "checksum" | "mimeType" | "fileSize" | "width" | "height" | "createdAt" | "updatedAt", ExtArgs["result"]["dbAsset"]>
|
|
581
|
+
|
|
582
|
+
export type $DbAssetPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
583
|
+
name: "DbAsset"
|
|
584
|
+
objects: {}
|
|
585
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
586
|
+
id: string
|
|
587
|
+
name: string
|
|
588
|
+
assetType: $Enums.AssetType
|
|
589
|
+
content: runtime.Bytes
|
|
590
|
+
checksum: string
|
|
591
|
+
mimeType: string
|
|
592
|
+
fileSize: number
|
|
593
|
+
width: number | null
|
|
594
|
+
height: number | null
|
|
595
|
+
createdAt: Date
|
|
596
|
+
updatedAt: Date
|
|
597
|
+
}, ExtArgs["result"]["dbAsset"]>
|
|
598
|
+
composites: {}
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
export type DbAssetGetPayload<S extends boolean | null | undefined | DbAssetDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DbAssetPayload, S>
|
|
602
|
+
|
|
603
|
+
export type DbAssetCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
604
|
+
Omit<DbAssetFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
605
|
+
select?: DbAssetCountAggregateInputType | true
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
export interface DbAssetDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
609
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['DbAsset'], meta: { name: 'DbAsset' } }
|
|
610
|
+
/**
|
|
611
|
+
* Find zero or one DbAsset that matches the filter.
|
|
612
|
+
* @param {DbAssetFindUniqueArgs} args - Arguments to find a DbAsset
|
|
613
|
+
* @example
|
|
614
|
+
* // Get one DbAsset
|
|
615
|
+
* const dbAsset = await prisma.dbAsset.findUnique({
|
|
616
|
+
* where: {
|
|
617
|
+
* // ... provide filter here
|
|
618
|
+
* }
|
|
619
|
+
* })
|
|
620
|
+
*/
|
|
621
|
+
findUnique<T extends DbAssetFindUniqueArgs>(args: Prisma.SelectSubset<T, DbAssetFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DbAssetClient<runtime.Types.Result.GetResult<Prisma.$DbAssetPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Find one DbAsset that matches the filter or throw an error with `error.code='P2025'`
|
|
625
|
+
* if no matches were found.
|
|
626
|
+
* @param {DbAssetFindUniqueOrThrowArgs} args - Arguments to find a DbAsset
|
|
627
|
+
* @example
|
|
628
|
+
* // Get one DbAsset
|
|
629
|
+
* const dbAsset = await prisma.dbAsset.findUniqueOrThrow({
|
|
630
|
+
* where: {
|
|
631
|
+
* // ... provide filter here
|
|
632
|
+
* }
|
|
633
|
+
* })
|
|
634
|
+
*/
|
|
635
|
+
findUniqueOrThrow<T extends DbAssetFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DbAssetFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DbAssetClient<runtime.Types.Result.GetResult<Prisma.$DbAssetPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Find the first DbAsset that matches the filter.
|
|
639
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
640
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
641
|
+
* @param {DbAssetFindFirstArgs} args - Arguments to find a DbAsset
|
|
642
|
+
* @example
|
|
643
|
+
* // Get one DbAsset
|
|
644
|
+
* const dbAsset = await prisma.dbAsset.findFirst({
|
|
645
|
+
* where: {
|
|
646
|
+
* // ... provide filter here
|
|
647
|
+
* }
|
|
648
|
+
* })
|
|
649
|
+
*/
|
|
650
|
+
findFirst<T extends DbAssetFindFirstArgs>(args?: Prisma.SelectSubset<T, DbAssetFindFirstArgs<ExtArgs>>): Prisma.Prisma__DbAssetClient<runtime.Types.Result.GetResult<Prisma.$DbAssetPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Find the first DbAsset that matches the filter or
|
|
654
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
655
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
656
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
657
|
+
* @param {DbAssetFindFirstOrThrowArgs} args - Arguments to find a DbAsset
|
|
658
|
+
* @example
|
|
659
|
+
* // Get one DbAsset
|
|
660
|
+
* const dbAsset = await prisma.dbAsset.findFirstOrThrow({
|
|
661
|
+
* where: {
|
|
662
|
+
* // ... provide filter here
|
|
663
|
+
* }
|
|
664
|
+
* })
|
|
665
|
+
*/
|
|
666
|
+
findFirstOrThrow<T extends DbAssetFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DbAssetFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DbAssetClient<runtime.Types.Result.GetResult<Prisma.$DbAssetPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Find zero or more DbAssets that matches the filter.
|
|
670
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
671
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
672
|
+
* @param {DbAssetFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
673
|
+
* @example
|
|
674
|
+
* // Get all DbAssets
|
|
675
|
+
* const dbAssets = await prisma.dbAsset.findMany()
|
|
676
|
+
*
|
|
677
|
+
* // Get first 10 DbAssets
|
|
678
|
+
* const dbAssets = await prisma.dbAsset.findMany({ take: 10 })
|
|
679
|
+
*
|
|
680
|
+
* // Only select the `id`
|
|
681
|
+
* const dbAssetWithIdOnly = await prisma.dbAsset.findMany({ select: { id: true } })
|
|
682
|
+
*
|
|
683
|
+
*/
|
|
684
|
+
findMany<T extends DbAssetFindManyArgs>(args?: Prisma.SelectSubset<T, DbAssetFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DbAssetPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Create a DbAsset.
|
|
688
|
+
* @param {DbAssetCreateArgs} args - Arguments to create a DbAsset.
|
|
689
|
+
* @example
|
|
690
|
+
* // Create one DbAsset
|
|
691
|
+
* const DbAsset = await prisma.dbAsset.create({
|
|
692
|
+
* data: {
|
|
693
|
+
* // ... data to create a DbAsset
|
|
694
|
+
* }
|
|
695
|
+
* })
|
|
696
|
+
*
|
|
697
|
+
*/
|
|
698
|
+
create<T extends DbAssetCreateArgs>(args: Prisma.SelectSubset<T, DbAssetCreateArgs<ExtArgs>>): Prisma.Prisma__DbAssetClient<runtime.Types.Result.GetResult<Prisma.$DbAssetPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Create many DbAssets.
|
|
702
|
+
* @param {DbAssetCreateManyArgs} args - Arguments to create many DbAssets.
|
|
703
|
+
* @example
|
|
704
|
+
* // Create many DbAssets
|
|
705
|
+
* const dbAsset = await prisma.dbAsset.createMany({
|
|
706
|
+
* data: [
|
|
707
|
+
* // ... provide data here
|
|
708
|
+
* ]
|
|
709
|
+
* })
|
|
710
|
+
*
|
|
711
|
+
*/
|
|
712
|
+
createMany<T extends DbAssetCreateManyArgs>(args?: Prisma.SelectSubset<T, DbAssetCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Create many DbAssets and returns the data saved in the database.
|
|
716
|
+
* @param {DbAssetCreateManyAndReturnArgs} args - Arguments to create many DbAssets.
|
|
717
|
+
* @example
|
|
718
|
+
* // Create many DbAssets
|
|
719
|
+
* const dbAsset = await prisma.dbAsset.createManyAndReturn({
|
|
720
|
+
* data: [
|
|
721
|
+
* // ... provide data here
|
|
722
|
+
* ]
|
|
723
|
+
* })
|
|
724
|
+
*
|
|
725
|
+
* // Create many DbAssets and only return the `id`
|
|
726
|
+
* const dbAssetWithIdOnly = await prisma.dbAsset.createManyAndReturn({
|
|
727
|
+
* select: { id: true },
|
|
728
|
+
* data: [
|
|
729
|
+
* // ... provide data here
|
|
730
|
+
* ]
|
|
731
|
+
* })
|
|
732
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
733
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
734
|
+
*
|
|
735
|
+
*/
|
|
736
|
+
createManyAndReturn<T extends DbAssetCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DbAssetCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DbAssetPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Delete a DbAsset.
|
|
740
|
+
* @param {DbAssetDeleteArgs} args - Arguments to delete one DbAsset.
|
|
741
|
+
* @example
|
|
742
|
+
* // Delete one DbAsset
|
|
743
|
+
* const DbAsset = await prisma.dbAsset.delete({
|
|
744
|
+
* where: {
|
|
745
|
+
* // ... filter to delete one DbAsset
|
|
746
|
+
* }
|
|
747
|
+
* })
|
|
748
|
+
*
|
|
749
|
+
*/
|
|
750
|
+
delete<T extends DbAssetDeleteArgs>(args: Prisma.SelectSubset<T, DbAssetDeleteArgs<ExtArgs>>): Prisma.Prisma__DbAssetClient<runtime.Types.Result.GetResult<Prisma.$DbAssetPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Update one DbAsset.
|
|
754
|
+
* @param {DbAssetUpdateArgs} args - Arguments to update one DbAsset.
|
|
755
|
+
* @example
|
|
756
|
+
* // Update one DbAsset
|
|
757
|
+
* const dbAsset = await prisma.dbAsset.update({
|
|
758
|
+
* where: {
|
|
759
|
+
* // ... provide filter here
|
|
760
|
+
* },
|
|
761
|
+
* data: {
|
|
762
|
+
* // ... provide data here
|
|
763
|
+
* }
|
|
764
|
+
* })
|
|
765
|
+
*
|
|
766
|
+
*/
|
|
767
|
+
update<T extends DbAssetUpdateArgs>(args: Prisma.SelectSubset<T, DbAssetUpdateArgs<ExtArgs>>): Prisma.Prisma__DbAssetClient<runtime.Types.Result.GetResult<Prisma.$DbAssetPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Delete zero or more DbAssets.
|
|
771
|
+
* @param {DbAssetDeleteManyArgs} args - Arguments to filter DbAssets to delete.
|
|
772
|
+
* @example
|
|
773
|
+
* // Delete a few DbAssets
|
|
774
|
+
* const { count } = await prisma.dbAsset.deleteMany({
|
|
775
|
+
* where: {
|
|
776
|
+
* // ... provide filter here
|
|
777
|
+
* }
|
|
778
|
+
* })
|
|
779
|
+
*
|
|
780
|
+
*/
|
|
781
|
+
deleteMany<T extends DbAssetDeleteManyArgs>(args?: Prisma.SelectSubset<T, DbAssetDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Update zero or more DbAssets.
|
|
785
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
786
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
787
|
+
* @param {DbAssetUpdateManyArgs} args - Arguments to update one or more rows.
|
|
788
|
+
* @example
|
|
789
|
+
* // Update many DbAssets
|
|
790
|
+
* const dbAsset = await prisma.dbAsset.updateMany({
|
|
791
|
+
* where: {
|
|
792
|
+
* // ... provide filter here
|
|
793
|
+
* },
|
|
794
|
+
* data: {
|
|
795
|
+
* // ... provide data here
|
|
796
|
+
* }
|
|
797
|
+
* })
|
|
798
|
+
*
|
|
799
|
+
*/
|
|
800
|
+
updateMany<T extends DbAssetUpdateManyArgs>(args: Prisma.SelectSubset<T, DbAssetUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Update zero or more DbAssets and returns the data updated in the database.
|
|
804
|
+
* @param {DbAssetUpdateManyAndReturnArgs} args - Arguments to update many DbAssets.
|
|
805
|
+
* @example
|
|
806
|
+
* // Update many DbAssets
|
|
807
|
+
* const dbAsset = await prisma.dbAsset.updateManyAndReturn({
|
|
808
|
+
* where: {
|
|
809
|
+
* // ... provide filter here
|
|
810
|
+
* },
|
|
811
|
+
* data: [
|
|
812
|
+
* // ... provide data here
|
|
813
|
+
* ]
|
|
814
|
+
* })
|
|
815
|
+
*
|
|
816
|
+
* // Update zero or more DbAssets and only return the `id`
|
|
817
|
+
* const dbAssetWithIdOnly = await prisma.dbAsset.updateManyAndReturn({
|
|
818
|
+
* select: { id: true },
|
|
819
|
+
* where: {
|
|
820
|
+
* // ... provide filter here
|
|
821
|
+
* },
|
|
822
|
+
* data: [
|
|
823
|
+
* // ... provide data here
|
|
824
|
+
* ]
|
|
825
|
+
* })
|
|
826
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
827
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
828
|
+
*
|
|
829
|
+
*/
|
|
830
|
+
updateManyAndReturn<T extends DbAssetUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DbAssetUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DbAssetPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* Create or update one DbAsset.
|
|
834
|
+
* @param {DbAssetUpsertArgs} args - Arguments to update or create a DbAsset.
|
|
835
|
+
* @example
|
|
836
|
+
* // Update or create a DbAsset
|
|
837
|
+
* const dbAsset = await prisma.dbAsset.upsert({
|
|
838
|
+
* create: {
|
|
839
|
+
* // ... data to create a DbAsset
|
|
840
|
+
* },
|
|
841
|
+
* update: {
|
|
842
|
+
* // ... in case it already exists, update
|
|
843
|
+
* },
|
|
844
|
+
* where: {
|
|
845
|
+
* // ... the filter for the DbAsset we want to update
|
|
846
|
+
* }
|
|
847
|
+
* })
|
|
848
|
+
*/
|
|
849
|
+
upsert<T extends DbAssetUpsertArgs>(args: Prisma.SelectSubset<T, DbAssetUpsertArgs<ExtArgs>>): Prisma.Prisma__DbAssetClient<runtime.Types.Result.GetResult<Prisma.$DbAssetPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* Count the number of DbAssets.
|
|
854
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
855
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
856
|
+
* @param {DbAssetCountArgs} args - Arguments to filter DbAssets to count.
|
|
857
|
+
* @example
|
|
858
|
+
* // Count the number of DbAssets
|
|
859
|
+
* const count = await prisma.dbAsset.count({
|
|
860
|
+
* where: {
|
|
861
|
+
* // ... the filter for the DbAssets we want to count
|
|
862
|
+
* }
|
|
863
|
+
* })
|
|
864
|
+
**/
|
|
865
|
+
count<T extends DbAssetCountArgs>(
|
|
866
|
+
args?: Prisma.Subset<T, DbAssetCountArgs>,
|
|
867
|
+
): Prisma.PrismaPromise<
|
|
868
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
869
|
+
? T['select'] extends true
|
|
870
|
+
? number
|
|
871
|
+
: Prisma.GetScalarType<T['select'], DbAssetCountAggregateOutputType>
|
|
872
|
+
: number
|
|
873
|
+
>
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Allows you to perform aggregations operations on a DbAsset.
|
|
877
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
878
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
879
|
+
* @param {DbAssetAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
880
|
+
* @example
|
|
881
|
+
* // Ordered by age ascending
|
|
882
|
+
* // Where email contains prisma.io
|
|
883
|
+
* // Limited to the 10 users
|
|
884
|
+
* const aggregations = await prisma.user.aggregate({
|
|
885
|
+
* _avg: {
|
|
886
|
+
* age: true,
|
|
887
|
+
* },
|
|
888
|
+
* where: {
|
|
889
|
+
* email: {
|
|
890
|
+
* contains: "prisma.io",
|
|
891
|
+
* },
|
|
892
|
+
* },
|
|
893
|
+
* orderBy: {
|
|
894
|
+
* age: "asc",
|
|
895
|
+
* },
|
|
896
|
+
* take: 10,
|
|
897
|
+
* })
|
|
898
|
+
**/
|
|
899
|
+
aggregate<T extends DbAssetAggregateArgs>(args: Prisma.Subset<T, DbAssetAggregateArgs>): Prisma.PrismaPromise<GetDbAssetAggregateType<T>>
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Group by DbAsset.
|
|
903
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
904
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
905
|
+
* @param {DbAssetGroupByArgs} args - Group by arguments.
|
|
906
|
+
* @example
|
|
907
|
+
* // Group by city, order by createdAt, get count
|
|
908
|
+
* const result = await prisma.user.groupBy({
|
|
909
|
+
* by: ['city', 'createdAt'],
|
|
910
|
+
* orderBy: {
|
|
911
|
+
* createdAt: true
|
|
912
|
+
* },
|
|
913
|
+
* _count: {
|
|
914
|
+
* _all: true
|
|
915
|
+
* },
|
|
916
|
+
* })
|
|
917
|
+
*
|
|
918
|
+
**/
|
|
919
|
+
groupBy<
|
|
920
|
+
T extends DbAssetGroupByArgs,
|
|
921
|
+
HasSelectOrTake extends Prisma.Or<
|
|
922
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
923
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
924
|
+
>,
|
|
925
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
926
|
+
? { orderBy: DbAssetGroupByArgs['orderBy'] }
|
|
927
|
+
: { orderBy?: DbAssetGroupByArgs['orderBy'] },
|
|
928
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
929
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
930
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
931
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
932
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
933
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
934
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
935
|
+
? `Error: "by" must not be empty.`
|
|
936
|
+
: HavingValid extends Prisma.False
|
|
937
|
+
? {
|
|
938
|
+
[P in HavingFields]: P extends ByFields
|
|
939
|
+
? never
|
|
940
|
+
: P extends string
|
|
941
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
942
|
+
: [
|
|
943
|
+
Error,
|
|
944
|
+
'Field ',
|
|
945
|
+
P,
|
|
946
|
+
` in "having" needs to be provided in "by"`,
|
|
947
|
+
]
|
|
948
|
+
}[HavingFields]
|
|
949
|
+
: 'take' extends Prisma.Keys<T>
|
|
950
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
951
|
+
? ByValid extends Prisma.True
|
|
952
|
+
? {}
|
|
953
|
+
: {
|
|
954
|
+
[P in OrderFields]: P extends ByFields
|
|
955
|
+
? never
|
|
956
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
957
|
+
}[OrderFields]
|
|
958
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
959
|
+
: 'skip' extends Prisma.Keys<T>
|
|
960
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
961
|
+
? ByValid extends Prisma.True
|
|
962
|
+
? {}
|
|
963
|
+
: {
|
|
964
|
+
[P in OrderFields]: P extends ByFields
|
|
965
|
+
? never
|
|
966
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
967
|
+
}[OrderFields]
|
|
968
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
969
|
+
: ByValid extends Prisma.True
|
|
970
|
+
? {}
|
|
971
|
+
: {
|
|
972
|
+
[P in OrderFields]: P extends ByFields
|
|
973
|
+
? never
|
|
974
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
975
|
+
}[OrderFields]
|
|
976
|
+
>(args: Prisma.SubsetIntersection<T, DbAssetGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDbAssetGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
977
|
+
/**
|
|
978
|
+
* Fields of the DbAsset model
|
|
979
|
+
*/
|
|
980
|
+
readonly fields: DbAssetFieldRefs;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* The delegate class that acts as a "Promise-like" for DbAsset.
|
|
985
|
+
* Why is this prefixed with `Prisma__`?
|
|
986
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
987
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
988
|
+
*/
|
|
989
|
+
export interface Prisma__DbAssetClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
990
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
991
|
+
/**
|
|
992
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
993
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
994
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
995
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
996
|
+
*/
|
|
997
|
+
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>
|
|
998
|
+
/**
|
|
999
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1000
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1001
|
+
* @returns A Promise for the completion of the callback.
|
|
1002
|
+
*/
|
|
1003
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1004
|
+
/**
|
|
1005
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1006
|
+
* resolved value cannot be modified from the callback.
|
|
1007
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1008
|
+
* @returns A Promise for the completion of the callback.
|
|
1009
|
+
*/
|
|
1010
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* Fields of the DbAsset model
|
|
1018
|
+
*/
|
|
1019
|
+
export interface DbAssetFieldRefs {
|
|
1020
|
+
readonly id: Prisma.FieldRef<"DbAsset", 'String'>
|
|
1021
|
+
readonly name: Prisma.FieldRef<"DbAsset", 'String'>
|
|
1022
|
+
readonly assetType: Prisma.FieldRef<"DbAsset", 'AssetType'>
|
|
1023
|
+
readonly content: Prisma.FieldRef<"DbAsset", 'Bytes'>
|
|
1024
|
+
readonly checksum: Prisma.FieldRef<"DbAsset", 'String'>
|
|
1025
|
+
readonly mimeType: Prisma.FieldRef<"DbAsset", 'String'>
|
|
1026
|
+
readonly fileSize: Prisma.FieldRef<"DbAsset", 'Int'>
|
|
1027
|
+
readonly width: Prisma.FieldRef<"DbAsset", 'Int'>
|
|
1028
|
+
readonly height: Prisma.FieldRef<"DbAsset", 'Int'>
|
|
1029
|
+
readonly createdAt: Prisma.FieldRef<"DbAsset", 'DateTime'>
|
|
1030
|
+
readonly updatedAt: Prisma.FieldRef<"DbAsset", 'DateTime'>
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
// Custom InputTypes
|
|
1035
|
+
/**
|
|
1036
|
+
* DbAsset findUnique
|
|
1037
|
+
*/
|
|
1038
|
+
export type DbAssetFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1039
|
+
/**
|
|
1040
|
+
* Select specific fields to fetch from the DbAsset
|
|
1041
|
+
*/
|
|
1042
|
+
select?: Prisma.DbAssetSelect<ExtArgs> | null
|
|
1043
|
+
/**
|
|
1044
|
+
* Omit specific fields from the DbAsset
|
|
1045
|
+
*/
|
|
1046
|
+
omit?: Prisma.DbAssetOmit<ExtArgs> | null
|
|
1047
|
+
/**
|
|
1048
|
+
* Filter, which DbAsset to fetch.
|
|
1049
|
+
*/
|
|
1050
|
+
where: Prisma.DbAssetWhereUniqueInput
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* DbAsset findUniqueOrThrow
|
|
1055
|
+
*/
|
|
1056
|
+
export type DbAssetFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1057
|
+
/**
|
|
1058
|
+
* Select specific fields to fetch from the DbAsset
|
|
1059
|
+
*/
|
|
1060
|
+
select?: Prisma.DbAssetSelect<ExtArgs> | null
|
|
1061
|
+
/**
|
|
1062
|
+
* Omit specific fields from the DbAsset
|
|
1063
|
+
*/
|
|
1064
|
+
omit?: Prisma.DbAssetOmit<ExtArgs> | null
|
|
1065
|
+
/**
|
|
1066
|
+
* Filter, which DbAsset to fetch.
|
|
1067
|
+
*/
|
|
1068
|
+
where: Prisma.DbAssetWhereUniqueInput
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* DbAsset findFirst
|
|
1073
|
+
*/
|
|
1074
|
+
export type DbAssetFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1075
|
+
/**
|
|
1076
|
+
* Select specific fields to fetch from the DbAsset
|
|
1077
|
+
*/
|
|
1078
|
+
select?: Prisma.DbAssetSelect<ExtArgs> | null
|
|
1079
|
+
/**
|
|
1080
|
+
* Omit specific fields from the DbAsset
|
|
1081
|
+
*/
|
|
1082
|
+
omit?: Prisma.DbAssetOmit<ExtArgs> | null
|
|
1083
|
+
/**
|
|
1084
|
+
* Filter, which DbAsset to fetch.
|
|
1085
|
+
*/
|
|
1086
|
+
where?: Prisma.DbAssetWhereInput
|
|
1087
|
+
/**
|
|
1088
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1089
|
+
*
|
|
1090
|
+
* Determine the order of DbAssets to fetch.
|
|
1091
|
+
*/
|
|
1092
|
+
orderBy?: Prisma.DbAssetOrderByWithRelationInput | Prisma.DbAssetOrderByWithRelationInput[]
|
|
1093
|
+
/**
|
|
1094
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1095
|
+
*
|
|
1096
|
+
* Sets the position for searching for DbAssets.
|
|
1097
|
+
*/
|
|
1098
|
+
cursor?: Prisma.DbAssetWhereUniqueInput
|
|
1099
|
+
/**
|
|
1100
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1101
|
+
*
|
|
1102
|
+
* Take `±n` DbAssets from the position of the cursor.
|
|
1103
|
+
*/
|
|
1104
|
+
take?: number
|
|
1105
|
+
/**
|
|
1106
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1107
|
+
*
|
|
1108
|
+
* Skip the first `n` DbAssets.
|
|
1109
|
+
*/
|
|
1110
|
+
skip?: number
|
|
1111
|
+
/**
|
|
1112
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1113
|
+
*
|
|
1114
|
+
* Filter by unique combinations of DbAssets.
|
|
1115
|
+
*/
|
|
1116
|
+
distinct?: Prisma.DbAssetScalarFieldEnum | Prisma.DbAssetScalarFieldEnum[]
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* DbAsset findFirstOrThrow
|
|
1121
|
+
*/
|
|
1122
|
+
export type DbAssetFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1123
|
+
/**
|
|
1124
|
+
* Select specific fields to fetch from the DbAsset
|
|
1125
|
+
*/
|
|
1126
|
+
select?: Prisma.DbAssetSelect<ExtArgs> | null
|
|
1127
|
+
/**
|
|
1128
|
+
* Omit specific fields from the DbAsset
|
|
1129
|
+
*/
|
|
1130
|
+
omit?: Prisma.DbAssetOmit<ExtArgs> | null
|
|
1131
|
+
/**
|
|
1132
|
+
* Filter, which DbAsset to fetch.
|
|
1133
|
+
*/
|
|
1134
|
+
where?: Prisma.DbAssetWhereInput
|
|
1135
|
+
/**
|
|
1136
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1137
|
+
*
|
|
1138
|
+
* Determine the order of DbAssets to fetch.
|
|
1139
|
+
*/
|
|
1140
|
+
orderBy?: Prisma.DbAssetOrderByWithRelationInput | Prisma.DbAssetOrderByWithRelationInput[]
|
|
1141
|
+
/**
|
|
1142
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1143
|
+
*
|
|
1144
|
+
* Sets the position for searching for DbAssets.
|
|
1145
|
+
*/
|
|
1146
|
+
cursor?: Prisma.DbAssetWhereUniqueInput
|
|
1147
|
+
/**
|
|
1148
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1149
|
+
*
|
|
1150
|
+
* Take `±n` DbAssets from the position of the cursor.
|
|
1151
|
+
*/
|
|
1152
|
+
take?: number
|
|
1153
|
+
/**
|
|
1154
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1155
|
+
*
|
|
1156
|
+
* Skip the first `n` DbAssets.
|
|
1157
|
+
*/
|
|
1158
|
+
skip?: number
|
|
1159
|
+
/**
|
|
1160
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1161
|
+
*
|
|
1162
|
+
* Filter by unique combinations of DbAssets.
|
|
1163
|
+
*/
|
|
1164
|
+
distinct?: Prisma.DbAssetScalarFieldEnum | Prisma.DbAssetScalarFieldEnum[]
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* DbAsset findMany
|
|
1169
|
+
*/
|
|
1170
|
+
export type DbAssetFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1171
|
+
/**
|
|
1172
|
+
* Select specific fields to fetch from the DbAsset
|
|
1173
|
+
*/
|
|
1174
|
+
select?: Prisma.DbAssetSelect<ExtArgs> | null
|
|
1175
|
+
/**
|
|
1176
|
+
* Omit specific fields from the DbAsset
|
|
1177
|
+
*/
|
|
1178
|
+
omit?: Prisma.DbAssetOmit<ExtArgs> | null
|
|
1179
|
+
/**
|
|
1180
|
+
* Filter, which DbAssets to fetch.
|
|
1181
|
+
*/
|
|
1182
|
+
where?: Prisma.DbAssetWhereInput
|
|
1183
|
+
/**
|
|
1184
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1185
|
+
*
|
|
1186
|
+
* Determine the order of DbAssets to fetch.
|
|
1187
|
+
*/
|
|
1188
|
+
orderBy?: Prisma.DbAssetOrderByWithRelationInput | Prisma.DbAssetOrderByWithRelationInput[]
|
|
1189
|
+
/**
|
|
1190
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1191
|
+
*
|
|
1192
|
+
* Sets the position for listing DbAssets.
|
|
1193
|
+
*/
|
|
1194
|
+
cursor?: Prisma.DbAssetWhereUniqueInput
|
|
1195
|
+
/**
|
|
1196
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1197
|
+
*
|
|
1198
|
+
* Take `±n` DbAssets from the position of the cursor.
|
|
1199
|
+
*/
|
|
1200
|
+
take?: number
|
|
1201
|
+
/**
|
|
1202
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1203
|
+
*
|
|
1204
|
+
* Skip the first `n` DbAssets.
|
|
1205
|
+
*/
|
|
1206
|
+
skip?: number
|
|
1207
|
+
distinct?: Prisma.DbAssetScalarFieldEnum | Prisma.DbAssetScalarFieldEnum[]
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* DbAsset create
|
|
1212
|
+
*/
|
|
1213
|
+
export type DbAssetCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1214
|
+
/**
|
|
1215
|
+
* Select specific fields to fetch from the DbAsset
|
|
1216
|
+
*/
|
|
1217
|
+
select?: Prisma.DbAssetSelect<ExtArgs> | null
|
|
1218
|
+
/**
|
|
1219
|
+
* Omit specific fields from the DbAsset
|
|
1220
|
+
*/
|
|
1221
|
+
omit?: Prisma.DbAssetOmit<ExtArgs> | null
|
|
1222
|
+
/**
|
|
1223
|
+
* The data needed to create a DbAsset.
|
|
1224
|
+
*/
|
|
1225
|
+
data: Prisma.XOR<Prisma.DbAssetCreateInput, Prisma.DbAssetUncheckedCreateInput>
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* DbAsset createMany
|
|
1230
|
+
*/
|
|
1231
|
+
export type DbAssetCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1232
|
+
/**
|
|
1233
|
+
* The data used to create many DbAssets.
|
|
1234
|
+
*/
|
|
1235
|
+
data: Prisma.DbAssetCreateManyInput | Prisma.DbAssetCreateManyInput[]
|
|
1236
|
+
skipDuplicates?: boolean
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* DbAsset createManyAndReturn
|
|
1241
|
+
*/
|
|
1242
|
+
export type DbAssetCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1243
|
+
/**
|
|
1244
|
+
* Select specific fields to fetch from the DbAsset
|
|
1245
|
+
*/
|
|
1246
|
+
select?: Prisma.DbAssetSelectCreateManyAndReturn<ExtArgs> | null
|
|
1247
|
+
/**
|
|
1248
|
+
* Omit specific fields from the DbAsset
|
|
1249
|
+
*/
|
|
1250
|
+
omit?: Prisma.DbAssetOmit<ExtArgs> | null
|
|
1251
|
+
/**
|
|
1252
|
+
* The data used to create many DbAssets.
|
|
1253
|
+
*/
|
|
1254
|
+
data: Prisma.DbAssetCreateManyInput | Prisma.DbAssetCreateManyInput[]
|
|
1255
|
+
skipDuplicates?: boolean
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* DbAsset update
|
|
1260
|
+
*/
|
|
1261
|
+
export type DbAssetUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1262
|
+
/**
|
|
1263
|
+
* Select specific fields to fetch from the DbAsset
|
|
1264
|
+
*/
|
|
1265
|
+
select?: Prisma.DbAssetSelect<ExtArgs> | null
|
|
1266
|
+
/**
|
|
1267
|
+
* Omit specific fields from the DbAsset
|
|
1268
|
+
*/
|
|
1269
|
+
omit?: Prisma.DbAssetOmit<ExtArgs> | null
|
|
1270
|
+
/**
|
|
1271
|
+
* The data needed to update a DbAsset.
|
|
1272
|
+
*/
|
|
1273
|
+
data: Prisma.XOR<Prisma.DbAssetUpdateInput, Prisma.DbAssetUncheckedUpdateInput>
|
|
1274
|
+
/**
|
|
1275
|
+
* Choose, which DbAsset to update.
|
|
1276
|
+
*/
|
|
1277
|
+
where: Prisma.DbAssetWhereUniqueInput
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* DbAsset updateMany
|
|
1282
|
+
*/
|
|
1283
|
+
export type DbAssetUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1284
|
+
/**
|
|
1285
|
+
* The data used to update DbAssets.
|
|
1286
|
+
*/
|
|
1287
|
+
data: Prisma.XOR<Prisma.DbAssetUpdateManyMutationInput, Prisma.DbAssetUncheckedUpdateManyInput>
|
|
1288
|
+
/**
|
|
1289
|
+
* Filter which DbAssets to update
|
|
1290
|
+
*/
|
|
1291
|
+
where?: Prisma.DbAssetWhereInput
|
|
1292
|
+
/**
|
|
1293
|
+
* Limit how many DbAssets to update.
|
|
1294
|
+
*/
|
|
1295
|
+
limit?: number
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
/**
|
|
1299
|
+
* DbAsset updateManyAndReturn
|
|
1300
|
+
*/
|
|
1301
|
+
export type DbAssetUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1302
|
+
/**
|
|
1303
|
+
* Select specific fields to fetch from the DbAsset
|
|
1304
|
+
*/
|
|
1305
|
+
select?: Prisma.DbAssetSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1306
|
+
/**
|
|
1307
|
+
* Omit specific fields from the DbAsset
|
|
1308
|
+
*/
|
|
1309
|
+
omit?: Prisma.DbAssetOmit<ExtArgs> | null
|
|
1310
|
+
/**
|
|
1311
|
+
* The data used to update DbAssets.
|
|
1312
|
+
*/
|
|
1313
|
+
data: Prisma.XOR<Prisma.DbAssetUpdateManyMutationInput, Prisma.DbAssetUncheckedUpdateManyInput>
|
|
1314
|
+
/**
|
|
1315
|
+
* Filter which DbAssets to update
|
|
1316
|
+
*/
|
|
1317
|
+
where?: Prisma.DbAssetWhereInput
|
|
1318
|
+
/**
|
|
1319
|
+
* Limit how many DbAssets to update.
|
|
1320
|
+
*/
|
|
1321
|
+
limit?: number
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* DbAsset upsert
|
|
1326
|
+
*/
|
|
1327
|
+
export type DbAssetUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1328
|
+
/**
|
|
1329
|
+
* Select specific fields to fetch from the DbAsset
|
|
1330
|
+
*/
|
|
1331
|
+
select?: Prisma.DbAssetSelect<ExtArgs> | null
|
|
1332
|
+
/**
|
|
1333
|
+
* Omit specific fields from the DbAsset
|
|
1334
|
+
*/
|
|
1335
|
+
omit?: Prisma.DbAssetOmit<ExtArgs> | null
|
|
1336
|
+
/**
|
|
1337
|
+
* The filter to search for the DbAsset to update in case it exists.
|
|
1338
|
+
*/
|
|
1339
|
+
where: Prisma.DbAssetWhereUniqueInput
|
|
1340
|
+
/**
|
|
1341
|
+
* In case the DbAsset found by the `where` argument doesn't exist, create a new DbAsset with this data.
|
|
1342
|
+
*/
|
|
1343
|
+
create: Prisma.XOR<Prisma.DbAssetCreateInput, Prisma.DbAssetUncheckedCreateInput>
|
|
1344
|
+
/**
|
|
1345
|
+
* In case the DbAsset was found with the provided `where` argument, update it with this data.
|
|
1346
|
+
*/
|
|
1347
|
+
update: Prisma.XOR<Prisma.DbAssetUpdateInput, Prisma.DbAssetUncheckedUpdateInput>
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* DbAsset delete
|
|
1352
|
+
*/
|
|
1353
|
+
export type DbAssetDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1354
|
+
/**
|
|
1355
|
+
* Select specific fields to fetch from the DbAsset
|
|
1356
|
+
*/
|
|
1357
|
+
select?: Prisma.DbAssetSelect<ExtArgs> | null
|
|
1358
|
+
/**
|
|
1359
|
+
* Omit specific fields from the DbAsset
|
|
1360
|
+
*/
|
|
1361
|
+
omit?: Prisma.DbAssetOmit<ExtArgs> | null
|
|
1362
|
+
/**
|
|
1363
|
+
* Filter which DbAsset to delete.
|
|
1364
|
+
*/
|
|
1365
|
+
where: Prisma.DbAssetWhereUniqueInput
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* DbAsset deleteMany
|
|
1370
|
+
*/
|
|
1371
|
+
export type DbAssetDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1372
|
+
/**
|
|
1373
|
+
* Filter which DbAssets to delete
|
|
1374
|
+
*/
|
|
1375
|
+
where?: Prisma.DbAssetWhereInput
|
|
1376
|
+
/**
|
|
1377
|
+
* Limit how many DbAssets to delete.
|
|
1378
|
+
*/
|
|
1379
|
+
limit?: number
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* DbAsset without action
|
|
1384
|
+
*/
|
|
1385
|
+
export type DbAssetDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1386
|
+
/**
|
|
1387
|
+
* Select specific fields to fetch from the DbAsset
|
|
1388
|
+
*/
|
|
1389
|
+
select?: Prisma.DbAssetSelect<ExtArgs> | null
|
|
1390
|
+
/**
|
|
1391
|
+
* Omit specific fields from the DbAsset
|
|
1392
|
+
*/
|
|
1393
|
+
omit?: Prisma.DbAssetOmit<ExtArgs> | null
|
|
1394
|
+
}
|