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