@allbluecn/database 0.14.11 → 0.14.12
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/generated/browser.ts +5 -0
- package/generated/client.ts +5 -0
- package/generated/internal/class.ts +23 -6
- package/generated/internal/prismaNamespace.ts +72 -1
- package/generated/internal/prismaNamespaceBrowser.ts +12 -0
- package/generated/models/MemoryFact.ts +973 -0
- package/generated/models.ts +1 -0
- package/generated/prisma-query-compiler.postgresql.wasm +0 -0
- package/index.ts +9 -11
- package/migrations/20261129000000_add_hnsw_vector_indexes/migration.sql +15 -0
- package/package.json +2 -7
- package/schema.prisma +16 -0
- package/cf-env-stub.ts +0 -4
- package/cf-env.ts +0 -25
- package/cloudflare-workers.d.ts +0 -6
|
@@ -0,0 +1,973 @@
|
|
|
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 `MemoryFact` 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 MemoryFact
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type MemoryFactModel = runtime.Types.Result.DefaultSelection<Prisma.$MemoryFactPayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateMemoryFact = {
|
|
22
|
+
_count: MemoryFactCountAggregateOutputType | null
|
|
23
|
+
_min: MemoryFactMinAggregateOutputType | null
|
|
24
|
+
_max: MemoryFactMaxAggregateOutputType | null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type MemoryFactMinAggregateOutputType = {
|
|
28
|
+
id: string | null
|
|
29
|
+
userId: string | null
|
|
30
|
+
threadId: string | null
|
|
31
|
+
content: string | null
|
|
32
|
+
createdAt: Date | null
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type MemoryFactMaxAggregateOutputType = {
|
|
36
|
+
id: string | null
|
|
37
|
+
userId: string | null
|
|
38
|
+
threadId: string | null
|
|
39
|
+
content: string | null
|
|
40
|
+
createdAt: Date | null
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type MemoryFactCountAggregateOutputType = {
|
|
44
|
+
id: number
|
|
45
|
+
userId: number
|
|
46
|
+
threadId: number
|
|
47
|
+
content: number
|
|
48
|
+
createdAt: number
|
|
49
|
+
_all: number
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
export type MemoryFactMinAggregateInputType = {
|
|
54
|
+
id?: true
|
|
55
|
+
userId?: true
|
|
56
|
+
threadId?: true
|
|
57
|
+
content?: true
|
|
58
|
+
createdAt?: true
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type MemoryFactMaxAggregateInputType = {
|
|
62
|
+
id?: true
|
|
63
|
+
userId?: true
|
|
64
|
+
threadId?: true
|
|
65
|
+
content?: true
|
|
66
|
+
createdAt?: true
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type MemoryFactCountAggregateInputType = {
|
|
70
|
+
id?: true
|
|
71
|
+
userId?: true
|
|
72
|
+
threadId?: true
|
|
73
|
+
content?: true
|
|
74
|
+
createdAt?: true
|
|
75
|
+
_all?: true
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type MemoryFactAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
79
|
+
/**
|
|
80
|
+
* Filter which MemoryFact to aggregate.
|
|
81
|
+
*/
|
|
82
|
+
where?: Prisma.MemoryFactWhereInput
|
|
83
|
+
/**
|
|
84
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
85
|
+
*
|
|
86
|
+
* Determine the order of MemoryFacts to fetch.
|
|
87
|
+
*/
|
|
88
|
+
orderBy?: Prisma.MemoryFactOrderByWithRelationInput | Prisma.MemoryFactOrderByWithRelationInput[]
|
|
89
|
+
/**
|
|
90
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
91
|
+
*
|
|
92
|
+
* Sets the start position
|
|
93
|
+
*/
|
|
94
|
+
cursor?: Prisma.MemoryFactWhereUniqueInput
|
|
95
|
+
/**
|
|
96
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
97
|
+
*
|
|
98
|
+
* Take `±n` MemoryFacts from the position of the cursor.
|
|
99
|
+
*/
|
|
100
|
+
take?: number
|
|
101
|
+
/**
|
|
102
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
103
|
+
*
|
|
104
|
+
* Skip the first `n` MemoryFacts.
|
|
105
|
+
*/
|
|
106
|
+
skip?: number
|
|
107
|
+
/**
|
|
108
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
109
|
+
*
|
|
110
|
+
* Count returned MemoryFacts
|
|
111
|
+
**/
|
|
112
|
+
_count?: true | MemoryFactCountAggregateInputType
|
|
113
|
+
/**
|
|
114
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
115
|
+
*
|
|
116
|
+
* Select which fields to find the minimum value
|
|
117
|
+
**/
|
|
118
|
+
_min?: MemoryFactMinAggregateInputType
|
|
119
|
+
/**
|
|
120
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
121
|
+
*
|
|
122
|
+
* Select which fields to find the maximum value
|
|
123
|
+
**/
|
|
124
|
+
_max?: MemoryFactMaxAggregateInputType
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type GetMemoryFactAggregateType<T extends MemoryFactAggregateArgs> = {
|
|
128
|
+
[P in keyof T & keyof AggregateMemoryFact]: P extends '_count' | 'count'
|
|
129
|
+
? T[P] extends true
|
|
130
|
+
? number
|
|
131
|
+
: Prisma.GetScalarType<T[P], AggregateMemoryFact[P]>
|
|
132
|
+
: Prisma.GetScalarType<T[P], AggregateMemoryFact[P]>
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
export type MemoryFactGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
139
|
+
where?: Prisma.MemoryFactWhereInput
|
|
140
|
+
orderBy?: Prisma.MemoryFactOrderByWithAggregationInput | Prisma.MemoryFactOrderByWithAggregationInput[]
|
|
141
|
+
by: Prisma.MemoryFactScalarFieldEnum[] | Prisma.MemoryFactScalarFieldEnum
|
|
142
|
+
having?: Prisma.MemoryFactScalarWhereWithAggregatesInput
|
|
143
|
+
take?: number
|
|
144
|
+
skip?: number
|
|
145
|
+
_count?: MemoryFactCountAggregateInputType | true
|
|
146
|
+
_min?: MemoryFactMinAggregateInputType
|
|
147
|
+
_max?: MemoryFactMaxAggregateInputType
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export type MemoryFactGroupByOutputType = {
|
|
151
|
+
id: string
|
|
152
|
+
userId: string
|
|
153
|
+
threadId: string
|
|
154
|
+
content: string
|
|
155
|
+
createdAt: Date
|
|
156
|
+
_count: MemoryFactCountAggregateOutputType | null
|
|
157
|
+
_min: MemoryFactMinAggregateOutputType | null
|
|
158
|
+
_max: MemoryFactMaxAggregateOutputType | null
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export type GetMemoryFactGroupByPayload<T extends MemoryFactGroupByArgs> = Prisma.PrismaPromise<
|
|
162
|
+
Array<
|
|
163
|
+
Prisma.PickEnumerable<MemoryFactGroupByOutputType, T['by']> &
|
|
164
|
+
{
|
|
165
|
+
[P in ((keyof T) & (keyof MemoryFactGroupByOutputType))]: P extends '_count'
|
|
166
|
+
? T[P] extends boolean
|
|
167
|
+
? number
|
|
168
|
+
: Prisma.GetScalarType<T[P], MemoryFactGroupByOutputType[P]>
|
|
169
|
+
: Prisma.GetScalarType<T[P], MemoryFactGroupByOutputType[P]>
|
|
170
|
+
}
|
|
171
|
+
>
|
|
172
|
+
>
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
export type MemoryFactWhereInput = {
|
|
177
|
+
AND?: Prisma.MemoryFactWhereInput | Prisma.MemoryFactWhereInput[]
|
|
178
|
+
OR?: Prisma.MemoryFactWhereInput[]
|
|
179
|
+
NOT?: Prisma.MemoryFactWhereInput | Prisma.MemoryFactWhereInput[]
|
|
180
|
+
id?: Prisma.StringFilter<"MemoryFact"> | string
|
|
181
|
+
userId?: Prisma.StringFilter<"MemoryFact"> | string
|
|
182
|
+
threadId?: Prisma.StringFilter<"MemoryFact"> | string
|
|
183
|
+
content?: Prisma.StringFilter<"MemoryFact"> | string
|
|
184
|
+
createdAt?: Prisma.DateTimeFilter<"MemoryFact"> | Date | string
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export type MemoryFactOrderByWithRelationInput = {
|
|
188
|
+
id?: Prisma.SortOrder
|
|
189
|
+
userId?: Prisma.SortOrder
|
|
190
|
+
threadId?: Prisma.SortOrder
|
|
191
|
+
content?: Prisma.SortOrder
|
|
192
|
+
createdAt?: Prisma.SortOrder
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export type MemoryFactWhereUniqueInput = Prisma.AtLeast<{
|
|
196
|
+
id?: string
|
|
197
|
+
AND?: Prisma.MemoryFactWhereInput | Prisma.MemoryFactWhereInput[]
|
|
198
|
+
OR?: Prisma.MemoryFactWhereInput[]
|
|
199
|
+
NOT?: Prisma.MemoryFactWhereInput | Prisma.MemoryFactWhereInput[]
|
|
200
|
+
userId?: Prisma.StringFilter<"MemoryFact"> | string
|
|
201
|
+
threadId?: Prisma.StringFilter<"MemoryFact"> | string
|
|
202
|
+
content?: Prisma.StringFilter<"MemoryFact"> | string
|
|
203
|
+
createdAt?: Prisma.DateTimeFilter<"MemoryFact"> | Date | string
|
|
204
|
+
}, "id">
|
|
205
|
+
|
|
206
|
+
export type MemoryFactOrderByWithAggregationInput = {
|
|
207
|
+
id?: Prisma.SortOrder
|
|
208
|
+
userId?: Prisma.SortOrder
|
|
209
|
+
threadId?: Prisma.SortOrder
|
|
210
|
+
content?: Prisma.SortOrder
|
|
211
|
+
createdAt?: Prisma.SortOrder
|
|
212
|
+
_count?: Prisma.MemoryFactCountOrderByAggregateInput
|
|
213
|
+
_max?: Prisma.MemoryFactMaxOrderByAggregateInput
|
|
214
|
+
_min?: Prisma.MemoryFactMinOrderByAggregateInput
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export type MemoryFactScalarWhereWithAggregatesInput = {
|
|
218
|
+
AND?: Prisma.MemoryFactScalarWhereWithAggregatesInput | Prisma.MemoryFactScalarWhereWithAggregatesInput[]
|
|
219
|
+
OR?: Prisma.MemoryFactScalarWhereWithAggregatesInput[]
|
|
220
|
+
NOT?: Prisma.MemoryFactScalarWhereWithAggregatesInput | Prisma.MemoryFactScalarWhereWithAggregatesInput[]
|
|
221
|
+
id?: Prisma.StringWithAggregatesFilter<"MemoryFact"> | string
|
|
222
|
+
userId?: Prisma.StringWithAggregatesFilter<"MemoryFact"> | string
|
|
223
|
+
threadId?: Prisma.StringWithAggregatesFilter<"MemoryFact"> | string
|
|
224
|
+
content?: Prisma.StringWithAggregatesFilter<"MemoryFact"> | string
|
|
225
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"MemoryFact"> | Date | string
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export type MemoryFactUpdateInput = {
|
|
229
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
230
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
231
|
+
threadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
232
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string
|
|
233
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export type MemoryFactUncheckedUpdateInput = {
|
|
237
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
238
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
239
|
+
threadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
240
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string
|
|
241
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export type MemoryFactUpdateManyMutationInput = {
|
|
245
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
246
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
247
|
+
threadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
248
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string
|
|
249
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export type MemoryFactUncheckedUpdateManyInput = {
|
|
253
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
254
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
255
|
+
threadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
256
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string
|
|
257
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export type MemoryFactCountOrderByAggregateInput = {
|
|
261
|
+
id?: Prisma.SortOrder
|
|
262
|
+
userId?: Prisma.SortOrder
|
|
263
|
+
threadId?: Prisma.SortOrder
|
|
264
|
+
content?: Prisma.SortOrder
|
|
265
|
+
createdAt?: Prisma.SortOrder
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export type MemoryFactMaxOrderByAggregateInput = {
|
|
269
|
+
id?: Prisma.SortOrder
|
|
270
|
+
userId?: Prisma.SortOrder
|
|
271
|
+
threadId?: Prisma.SortOrder
|
|
272
|
+
content?: Prisma.SortOrder
|
|
273
|
+
createdAt?: Prisma.SortOrder
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export type MemoryFactMinOrderByAggregateInput = {
|
|
277
|
+
id?: Prisma.SortOrder
|
|
278
|
+
userId?: Prisma.SortOrder
|
|
279
|
+
threadId?: Prisma.SortOrder
|
|
280
|
+
content?: Prisma.SortOrder
|
|
281
|
+
createdAt?: Prisma.SortOrder
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
export type MemoryFactSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
287
|
+
id?: boolean
|
|
288
|
+
userId?: boolean
|
|
289
|
+
threadId?: boolean
|
|
290
|
+
content?: boolean
|
|
291
|
+
createdAt?: boolean
|
|
292
|
+
}, ExtArgs["result"]["memoryFact"]>
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
export type MemoryFactSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
296
|
+
id?: boolean
|
|
297
|
+
userId?: boolean
|
|
298
|
+
threadId?: boolean
|
|
299
|
+
content?: boolean
|
|
300
|
+
createdAt?: boolean
|
|
301
|
+
}, ExtArgs["result"]["memoryFact"]>
|
|
302
|
+
|
|
303
|
+
export type MemoryFactSelectScalar = {
|
|
304
|
+
id?: boolean
|
|
305
|
+
userId?: boolean
|
|
306
|
+
threadId?: boolean
|
|
307
|
+
content?: boolean
|
|
308
|
+
createdAt?: boolean
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export type MemoryFactOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "threadId" | "content" | "createdAt", ExtArgs["result"]["memoryFact"]>
|
|
312
|
+
|
|
313
|
+
export type $MemoryFactPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
314
|
+
name: "MemoryFact"
|
|
315
|
+
objects: {}
|
|
316
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
317
|
+
id: string
|
|
318
|
+
userId: string
|
|
319
|
+
threadId: string
|
|
320
|
+
content: string
|
|
321
|
+
createdAt: Date
|
|
322
|
+
}, ExtArgs["result"]["memoryFact"]>
|
|
323
|
+
composites: {}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export type MemoryFactGetPayload<S extends boolean | null | undefined | MemoryFactDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MemoryFactPayload, S>
|
|
327
|
+
|
|
328
|
+
export type MemoryFactCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
329
|
+
Omit<MemoryFactFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
330
|
+
select?: MemoryFactCountAggregateInputType | true
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export interface MemoryFactDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
334
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MemoryFact'], meta: { name: 'MemoryFact' } }
|
|
335
|
+
/**
|
|
336
|
+
* Find zero or one MemoryFact that matches the filter.
|
|
337
|
+
* @param {MemoryFactFindUniqueArgs} args - Arguments to find a MemoryFact
|
|
338
|
+
* @example
|
|
339
|
+
* // Get one MemoryFact
|
|
340
|
+
* const memoryFact = await prisma.memoryFact.findUnique({
|
|
341
|
+
* where: {
|
|
342
|
+
* // ... provide filter here
|
|
343
|
+
* }
|
|
344
|
+
* })
|
|
345
|
+
*/
|
|
346
|
+
findUnique<T extends MemoryFactFindUniqueArgs>(args: Prisma.SelectSubset<T, MemoryFactFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MemoryFactClient<runtime.Types.Result.GetResult<Prisma.$MemoryFactPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Find one MemoryFact that matches the filter or throw an error with `error.code='P2025'`
|
|
350
|
+
* if no matches were found.
|
|
351
|
+
* @param {MemoryFactFindUniqueOrThrowArgs} args - Arguments to find a MemoryFact
|
|
352
|
+
* @example
|
|
353
|
+
* // Get one MemoryFact
|
|
354
|
+
* const memoryFact = await prisma.memoryFact.findUniqueOrThrow({
|
|
355
|
+
* where: {
|
|
356
|
+
* // ... provide filter here
|
|
357
|
+
* }
|
|
358
|
+
* })
|
|
359
|
+
*/
|
|
360
|
+
findUniqueOrThrow<T extends MemoryFactFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MemoryFactFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MemoryFactClient<runtime.Types.Result.GetResult<Prisma.$MemoryFactPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Find the first MemoryFact that matches the filter.
|
|
364
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
365
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
366
|
+
* @param {MemoryFactFindFirstArgs} args - Arguments to find a MemoryFact
|
|
367
|
+
* @example
|
|
368
|
+
* // Get one MemoryFact
|
|
369
|
+
* const memoryFact = await prisma.memoryFact.findFirst({
|
|
370
|
+
* where: {
|
|
371
|
+
* // ... provide filter here
|
|
372
|
+
* }
|
|
373
|
+
* })
|
|
374
|
+
*/
|
|
375
|
+
findFirst<T extends MemoryFactFindFirstArgs>(args?: Prisma.SelectSubset<T, MemoryFactFindFirstArgs<ExtArgs>>): Prisma.Prisma__MemoryFactClient<runtime.Types.Result.GetResult<Prisma.$MemoryFactPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Find the first MemoryFact that matches the filter or
|
|
379
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
380
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
381
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
382
|
+
* @param {MemoryFactFindFirstOrThrowArgs} args - Arguments to find a MemoryFact
|
|
383
|
+
* @example
|
|
384
|
+
* // Get one MemoryFact
|
|
385
|
+
* const memoryFact = await prisma.memoryFact.findFirstOrThrow({
|
|
386
|
+
* where: {
|
|
387
|
+
* // ... provide filter here
|
|
388
|
+
* }
|
|
389
|
+
* })
|
|
390
|
+
*/
|
|
391
|
+
findFirstOrThrow<T extends MemoryFactFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MemoryFactFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MemoryFactClient<runtime.Types.Result.GetResult<Prisma.$MemoryFactPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Find zero or more MemoryFacts that matches the filter.
|
|
395
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
396
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
397
|
+
* @param {MemoryFactFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
398
|
+
* @example
|
|
399
|
+
* // Get all MemoryFacts
|
|
400
|
+
* const memoryFacts = await prisma.memoryFact.findMany()
|
|
401
|
+
*
|
|
402
|
+
* // Get first 10 MemoryFacts
|
|
403
|
+
* const memoryFacts = await prisma.memoryFact.findMany({ take: 10 })
|
|
404
|
+
*
|
|
405
|
+
* // Only select the `id`
|
|
406
|
+
* const memoryFactWithIdOnly = await prisma.memoryFact.findMany({ select: { id: true } })
|
|
407
|
+
*
|
|
408
|
+
*/
|
|
409
|
+
findMany<T extends MemoryFactFindManyArgs>(args?: Prisma.SelectSubset<T, MemoryFactFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MemoryFactPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Delete a MemoryFact.
|
|
413
|
+
* @param {MemoryFactDeleteArgs} args - Arguments to delete one MemoryFact.
|
|
414
|
+
* @example
|
|
415
|
+
* // Delete one MemoryFact
|
|
416
|
+
* const MemoryFact = await prisma.memoryFact.delete({
|
|
417
|
+
* where: {
|
|
418
|
+
* // ... filter to delete one MemoryFact
|
|
419
|
+
* }
|
|
420
|
+
* })
|
|
421
|
+
*
|
|
422
|
+
*/
|
|
423
|
+
delete<T extends MemoryFactDeleteArgs>(args: Prisma.SelectSubset<T, MemoryFactDeleteArgs<ExtArgs>>): Prisma.Prisma__MemoryFactClient<runtime.Types.Result.GetResult<Prisma.$MemoryFactPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Update one MemoryFact.
|
|
427
|
+
* @param {MemoryFactUpdateArgs} args - Arguments to update one MemoryFact.
|
|
428
|
+
* @example
|
|
429
|
+
* // Update one MemoryFact
|
|
430
|
+
* const memoryFact = await prisma.memoryFact.update({
|
|
431
|
+
* where: {
|
|
432
|
+
* // ... provide filter here
|
|
433
|
+
* },
|
|
434
|
+
* data: {
|
|
435
|
+
* // ... provide data here
|
|
436
|
+
* }
|
|
437
|
+
* })
|
|
438
|
+
*
|
|
439
|
+
*/
|
|
440
|
+
update<T extends MemoryFactUpdateArgs>(args: Prisma.SelectSubset<T, MemoryFactUpdateArgs<ExtArgs>>): Prisma.Prisma__MemoryFactClient<runtime.Types.Result.GetResult<Prisma.$MemoryFactPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Delete zero or more MemoryFacts.
|
|
444
|
+
* @param {MemoryFactDeleteManyArgs} args - Arguments to filter MemoryFacts to delete.
|
|
445
|
+
* @example
|
|
446
|
+
* // Delete a few MemoryFacts
|
|
447
|
+
* const { count } = await prisma.memoryFact.deleteMany({
|
|
448
|
+
* where: {
|
|
449
|
+
* // ... provide filter here
|
|
450
|
+
* }
|
|
451
|
+
* })
|
|
452
|
+
*
|
|
453
|
+
*/
|
|
454
|
+
deleteMany<T extends MemoryFactDeleteManyArgs>(args?: Prisma.SelectSubset<T, MemoryFactDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Update zero or more MemoryFacts.
|
|
458
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
459
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
460
|
+
* @param {MemoryFactUpdateManyArgs} args - Arguments to update one or more rows.
|
|
461
|
+
* @example
|
|
462
|
+
* // Update many MemoryFacts
|
|
463
|
+
* const memoryFact = await prisma.memoryFact.updateMany({
|
|
464
|
+
* where: {
|
|
465
|
+
* // ... provide filter here
|
|
466
|
+
* },
|
|
467
|
+
* data: {
|
|
468
|
+
* // ... provide data here
|
|
469
|
+
* }
|
|
470
|
+
* })
|
|
471
|
+
*
|
|
472
|
+
*/
|
|
473
|
+
updateMany<T extends MemoryFactUpdateManyArgs>(args: Prisma.SelectSubset<T, MemoryFactUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Update zero or more MemoryFacts and returns the data updated in the database.
|
|
477
|
+
* @param {MemoryFactUpdateManyAndReturnArgs} args - Arguments to update many MemoryFacts.
|
|
478
|
+
* @example
|
|
479
|
+
* // Update many MemoryFacts
|
|
480
|
+
* const memoryFact = await prisma.memoryFact.updateManyAndReturn({
|
|
481
|
+
* where: {
|
|
482
|
+
* // ... provide filter here
|
|
483
|
+
* },
|
|
484
|
+
* data: [
|
|
485
|
+
* // ... provide data here
|
|
486
|
+
* ]
|
|
487
|
+
* })
|
|
488
|
+
*
|
|
489
|
+
* // Update zero or more MemoryFacts and only return the `id`
|
|
490
|
+
* const memoryFactWithIdOnly = await prisma.memoryFact.updateManyAndReturn({
|
|
491
|
+
* select: { id: true },
|
|
492
|
+
* where: {
|
|
493
|
+
* // ... provide filter here
|
|
494
|
+
* },
|
|
495
|
+
* data: [
|
|
496
|
+
* // ... provide data here
|
|
497
|
+
* ]
|
|
498
|
+
* })
|
|
499
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
500
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
501
|
+
*
|
|
502
|
+
*/
|
|
503
|
+
updateManyAndReturn<T extends MemoryFactUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MemoryFactUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MemoryFactPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Count the number of MemoryFacts.
|
|
508
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
509
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
510
|
+
* @param {MemoryFactCountArgs} args - Arguments to filter MemoryFacts to count.
|
|
511
|
+
* @example
|
|
512
|
+
* // Count the number of MemoryFacts
|
|
513
|
+
* const count = await prisma.memoryFact.count({
|
|
514
|
+
* where: {
|
|
515
|
+
* // ... the filter for the MemoryFacts we want to count
|
|
516
|
+
* }
|
|
517
|
+
* })
|
|
518
|
+
**/
|
|
519
|
+
count<T extends MemoryFactCountArgs>(
|
|
520
|
+
args?: Prisma.Subset<T, MemoryFactCountArgs>,
|
|
521
|
+
): Prisma.PrismaPromise<
|
|
522
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
523
|
+
? T['select'] extends true
|
|
524
|
+
? number
|
|
525
|
+
: Prisma.GetScalarType<T['select'], MemoryFactCountAggregateOutputType>
|
|
526
|
+
: number
|
|
527
|
+
>
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Allows you to perform aggregations operations on a MemoryFact.
|
|
531
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
532
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
533
|
+
* @param {MemoryFactAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
534
|
+
* @example
|
|
535
|
+
* // Ordered by age ascending
|
|
536
|
+
* // Where email contains prisma.io
|
|
537
|
+
* // Limited to the 10 users
|
|
538
|
+
* const aggregations = await prisma.user.aggregate({
|
|
539
|
+
* _avg: {
|
|
540
|
+
* age: true,
|
|
541
|
+
* },
|
|
542
|
+
* where: {
|
|
543
|
+
* email: {
|
|
544
|
+
* contains: "prisma.io",
|
|
545
|
+
* },
|
|
546
|
+
* },
|
|
547
|
+
* orderBy: {
|
|
548
|
+
* age: "asc",
|
|
549
|
+
* },
|
|
550
|
+
* take: 10,
|
|
551
|
+
* })
|
|
552
|
+
**/
|
|
553
|
+
aggregate<T extends MemoryFactAggregateArgs>(args: Prisma.Subset<T, MemoryFactAggregateArgs>): Prisma.PrismaPromise<GetMemoryFactAggregateType<T>>
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Group by MemoryFact.
|
|
557
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
558
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
559
|
+
* @param {MemoryFactGroupByArgs} args - Group by arguments.
|
|
560
|
+
* @example
|
|
561
|
+
* // Group by city, order by createdAt, get count
|
|
562
|
+
* const result = await prisma.user.groupBy({
|
|
563
|
+
* by: ['city', 'createdAt'],
|
|
564
|
+
* orderBy: {
|
|
565
|
+
* createdAt: true
|
|
566
|
+
* },
|
|
567
|
+
* _count: {
|
|
568
|
+
* _all: true
|
|
569
|
+
* },
|
|
570
|
+
* })
|
|
571
|
+
*
|
|
572
|
+
**/
|
|
573
|
+
groupBy<
|
|
574
|
+
T extends MemoryFactGroupByArgs,
|
|
575
|
+
HasSelectOrTake extends Prisma.Or<
|
|
576
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
577
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
578
|
+
>,
|
|
579
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
580
|
+
? { orderBy: MemoryFactGroupByArgs['orderBy'] }
|
|
581
|
+
: { orderBy?: MemoryFactGroupByArgs['orderBy'] },
|
|
582
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
583
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
584
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
585
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
586
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
587
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
588
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
589
|
+
? `Error: "by" must not be empty.`
|
|
590
|
+
: HavingValid extends Prisma.False
|
|
591
|
+
? {
|
|
592
|
+
[P in HavingFields]: P extends ByFields
|
|
593
|
+
? never
|
|
594
|
+
: P extends string
|
|
595
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
596
|
+
: [
|
|
597
|
+
Error,
|
|
598
|
+
'Field ',
|
|
599
|
+
P,
|
|
600
|
+
` in "having" needs to be provided in "by"`,
|
|
601
|
+
]
|
|
602
|
+
}[HavingFields]
|
|
603
|
+
: 'take' extends Prisma.Keys<T>
|
|
604
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
605
|
+
? ByValid extends Prisma.True
|
|
606
|
+
? {}
|
|
607
|
+
: {
|
|
608
|
+
[P in OrderFields]: P extends ByFields
|
|
609
|
+
? never
|
|
610
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
611
|
+
}[OrderFields]
|
|
612
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
613
|
+
: 'skip' extends Prisma.Keys<T>
|
|
614
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
615
|
+
? ByValid extends Prisma.True
|
|
616
|
+
? {}
|
|
617
|
+
: {
|
|
618
|
+
[P in OrderFields]: P extends ByFields
|
|
619
|
+
? never
|
|
620
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
621
|
+
}[OrderFields]
|
|
622
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
623
|
+
: ByValid extends Prisma.True
|
|
624
|
+
? {}
|
|
625
|
+
: {
|
|
626
|
+
[P in OrderFields]: P extends ByFields
|
|
627
|
+
? never
|
|
628
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
629
|
+
}[OrderFields]
|
|
630
|
+
>(args: Prisma.SubsetIntersection<T, MemoryFactGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMemoryFactGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
631
|
+
/**
|
|
632
|
+
* Fields of the MemoryFact model
|
|
633
|
+
*/
|
|
634
|
+
readonly fields: MemoryFactFieldRefs;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* The delegate class that acts as a "Promise-like" for MemoryFact.
|
|
639
|
+
* Why is this prefixed with `Prisma__`?
|
|
640
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
641
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
642
|
+
*/
|
|
643
|
+
export interface Prisma__MemoryFactClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
644
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
645
|
+
/**
|
|
646
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
647
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
648
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
649
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
650
|
+
*/
|
|
651
|
+
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>
|
|
652
|
+
/**
|
|
653
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
654
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
655
|
+
* @returns A Promise for the completion of the callback.
|
|
656
|
+
*/
|
|
657
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
658
|
+
/**
|
|
659
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
660
|
+
* resolved value cannot be modified from the callback.
|
|
661
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
662
|
+
* @returns A Promise for the completion of the callback.
|
|
663
|
+
*/
|
|
664
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* Fields of the MemoryFact model
|
|
672
|
+
*/
|
|
673
|
+
export interface MemoryFactFieldRefs {
|
|
674
|
+
readonly id: Prisma.FieldRef<"MemoryFact", 'String'>
|
|
675
|
+
readonly userId: Prisma.FieldRef<"MemoryFact", 'String'>
|
|
676
|
+
readonly threadId: Prisma.FieldRef<"MemoryFact", 'String'>
|
|
677
|
+
readonly content: Prisma.FieldRef<"MemoryFact", 'String'>
|
|
678
|
+
readonly createdAt: Prisma.FieldRef<"MemoryFact", 'DateTime'>
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
// Custom InputTypes
|
|
683
|
+
/**
|
|
684
|
+
* MemoryFact findUnique
|
|
685
|
+
*/
|
|
686
|
+
export type MemoryFactFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
687
|
+
/**
|
|
688
|
+
* Select specific fields to fetch from the MemoryFact
|
|
689
|
+
*/
|
|
690
|
+
select?: Prisma.MemoryFactSelect<ExtArgs> | null
|
|
691
|
+
/**
|
|
692
|
+
* Omit specific fields from the MemoryFact
|
|
693
|
+
*/
|
|
694
|
+
omit?: Prisma.MemoryFactOmit<ExtArgs> | null
|
|
695
|
+
/**
|
|
696
|
+
* Filter, which MemoryFact to fetch.
|
|
697
|
+
*/
|
|
698
|
+
where: Prisma.MemoryFactWhereUniqueInput
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* MemoryFact findUniqueOrThrow
|
|
703
|
+
*/
|
|
704
|
+
export type MemoryFactFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
705
|
+
/**
|
|
706
|
+
* Select specific fields to fetch from the MemoryFact
|
|
707
|
+
*/
|
|
708
|
+
select?: Prisma.MemoryFactSelect<ExtArgs> | null
|
|
709
|
+
/**
|
|
710
|
+
* Omit specific fields from the MemoryFact
|
|
711
|
+
*/
|
|
712
|
+
omit?: Prisma.MemoryFactOmit<ExtArgs> | null
|
|
713
|
+
/**
|
|
714
|
+
* Filter, which MemoryFact to fetch.
|
|
715
|
+
*/
|
|
716
|
+
where: Prisma.MemoryFactWhereUniqueInput
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* MemoryFact findFirst
|
|
721
|
+
*/
|
|
722
|
+
export type MemoryFactFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
723
|
+
/**
|
|
724
|
+
* Select specific fields to fetch from the MemoryFact
|
|
725
|
+
*/
|
|
726
|
+
select?: Prisma.MemoryFactSelect<ExtArgs> | null
|
|
727
|
+
/**
|
|
728
|
+
* Omit specific fields from the MemoryFact
|
|
729
|
+
*/
|
|
730
|
+
omit?: Prisma.MemoryFactOmit<ExtArgs> | null
|
|
731
|
+
/**
|
|
732
|
+
* Filter, which MemoryFact to fetch.
|
|
733
|
+
*/
|
|
734
|
+
where?: Prisma.MemoryFactWhereInput
|
|
735
|
+
/**
|
|
736
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
737
|
+
*
|
|
738
|
+
* Determine the order of MemoryFacts to fetch.
|
|
739
|
+
*/
|
|
740
|
+
orderBy?: Prisma.MemoryFactOrderByWithRelationInput | Prisma.MemoryFactOrderByWithRelationInput[]
|
|
741
|
+
/**
|
|
742
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
743
|
+
*
|
|
744
|
+
* Sets the position for searching for MemoryFacts.
|
|
745
|
+
*/
|
|
746
|
+
cursor?: Prisma.MemoryFactWhereUniqueInput
|
|
747
|
+
/**
|
|
748
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
749
|
+
*
|
|
750
|
+
* Take `±n` MemoryFacts from the position of the cursor.
|
|
751
|
+
*/
|
|
752
|
+
take?: number
|
|
753
|
+
/**
|
|
754
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
755
|
+
*
|
|
756
|
+
* Skip the first `n` MemoryFacts.
|
|
757
|
+
*/
|
|
758
|
+
skip?: number
|
|
759
|
+
/**
|
|
760
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
761
|
+
*
|
|
762
|
+
* Filter by unique combinations of MemoryFacts.
|
|
763
|
+
*/
|
|
764
|
+
distinct?: Prisma.MemoryFactScalarFieldEnum | Prisma.MemoryFactScalarFieldEnum[]
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* MemoryFact findFirstOrThrow
|
|
769
|
+
*/
|
|
770
|
+
export type MemoryFactFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
771
|
+
/**
|
|
772
|
+
* Select specific fields to fetch from the MemoryFact
|
|
773
|
+
*/
|
|
774
|
+
select?: Prisma.MemoryFactSelect<ExtArgs> | null
|
|
775
|
+
/**
|
|
776
|
+
* Omit specific fields from the MemoryFact
|
|
777
|
+
*/
|
|
778
|
+
omit?: Prisma.MemoryFactOmit<ExtArgs> | null
|
|
779
|
+
/**
|
|
780
|
+
* Filter, which MemoryFact to fetch.
|
|
781
|
+
*/
|
|
782
|
+
where?: Prisma.MemoryFactWhereInput
|
|
783
|
+
/**
|
|
784
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
785
|
+
*
|
|
786
|
+
* Determine the order of MemoryFacts to fetch.
|
|
787
|
+
*/
|
|
788
|
+
orderBy?: Prisma.MemoryFactOrderByWithRelationInput | Prisma.MemoryFactOrderByWithRelationInput[]
|
|
789
|
+
/**
|
|
790
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
791
|
+
*
|
|
792
|
+
* Sets the position for searching for MemoryFacts.
|
|
793
|
+
*/
|
|
794
|
+
cursor?: Prisma.MemoryFactWhereUniqueInput
|
|
795
|
+
/**
|
|
796
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
797
|
+
*
|
|
798
|
+
* Take `±n` MemoryFacts from the position of the cursor.
|
|
799
|
+
*/
|
|
800
|
+
take?: number
|
|
801
|
+
/**
|
|
802
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
803
|
+
*
|
|
804
|
+
* Skip the first `n` MemoryFacts.
|
|
805
|
+
*/
|
|
806
|
+
skip?: number
|
|
807
|
+
/**
|
|
808
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
809
|
+
*
|
|
810
|
+
* Filter by unique combinations of MemoryFacts.
|
|
811
|
+
*/
|
|
812
|
+
distinct?: Prisma.MemoryFactScalarFieldEnum | Prisma.MemoryFactScalarFieldEnum[]
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* MemoryFact findMany
|
|
817
|
+
*/
|
|
818
|
+
export type MemoryFactFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
819
|
+
/**
|
|
820
|
+
* Select specific fields to fetch from the MemoryFact
|
|
821
|
+
*/
|
|
822
|
+
select?: Prisma.MemoryFactSelect<ExtArgs> | null
|
|
823
|
+
/**
|
|
824
|
+
* Omit specific fields from the MemoryFact
|
|
825
|
+
*/
|
|
826
|
+
omit?: Prisma.MemoryFactOmit<ExtArgs> | null
|
|
827
|
+
/**
|
|
828
|
+
* Filter, which MemoryFacts to fetch.
|
|
829
|
+
*/
|
|
830
|
+
where?: Prisma.MemoryFactWhereInput
|
|
831
|
+
/**
|
|
832
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
833
|
+
*
|
|
834
|
+
* Determine the order of MemoryFacts to fetch.
|
|
835
|
+
*/
|
|
836
|
+
orderBy?: Prisma.MemoryFactOrderByWithRelationInput | Prisma.MemoryFactOrderByWithRelationInput[]
|
|
837
|
+
/**
|
|
838
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
839
|
+
*
|
|
840
|
+
* Sets the position for listing MemoryFacts.
|
|
841
|
+
*/
|
|
842
|
+
cursor?: Prisma.MemoryFactWhereUniqueInput
|
|
843
|
+
/**
|
|
844
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
845
|
+
*
|
|
846
|
+
* Take `±n` MemoryFacts from the position of the cursor.
|
|
847
|
+
*/
|
|
848
|
+
take?: number
|
|
849
|
+
/**
|
|
850
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
851
|
+
*
|
|
852
|
+
* Skip the first `n` MemoryFacts.
|
|
853
|
+
*/
|
|
854
|
+
skip?: number
|
|
855
|
+
/**
|
|
856
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
857
|
+
*
|
|
858
|
+
* Filter by unique combinations of MemoryFacts.
|
|
859
|
+
*/
|
|
860
|
+
distinct?: Prisma.MemoryFactScalarFieldEnum | Prisma.MemoryFactScalarFieldEnum[]
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* MemoryFact update
|
|
865
|
+
*/
|
|
866
|
+
export type MemoryFactUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
867
|
+
/**
|
|
868
|
+
* Select specific fields to fetch from the MemoryFact
|
|
869
|
+
*/
|
|
870
|
+
select?: Prisma.MemoryFactSelect<ExtArgs> | null
|
|
871
|
+
/**
|
|
872
|
+
* Omit specific fields from the MemoryFact
|
|
873
|
+
*/
|
|
874
|
+
omit?: Prisma.MemoryFactOmit<ExtArgs> | null
|
|
875
|
+
/**
|
|
876
|
+
* The data needed to update a MemoryFact.
|
|
877
|
+
*/
|
|
878
|
+
data: Prisma.XOR<Prisma.MemoryFactUpdateInput, Prisma.MemoryFactUncheckedUpdateInput>
|
|
879
|
+
/**
|
|
880
|
+
* Choose, which MemoryFact to update.
|
|
881
|
+
*/
|
|
882
|
+
where: Prisma.MemoryFactWhereUniqueInput
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* MemoryFact updateMany
|
|
887
|
+
*/
|
|
888
|
+
export type MemoryFactUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
889
|
+
/**
|
|
890
|
+
* The data used to update MemoryFacts.
|
|
891
|
+
*/
|
|
892
|
+
data: Prisma.XOR<Prisma.MemoryFactUpdateManyMutationInput, Prisma.MemoryFactUncheckedUpdateManyInput>
|
|
893
|
+
/**
|
|
894
|
+
* Filter which MemoryFacts to update
|
|
895
|
+
*/
|
|
896
|
+
where?: Prisma.MemoryFactWhereInput
|
|
897
|
+
/**
|
|
898
|
+
* Limit how many MemoryFacts to update.
|
|
899
|
+
*/
|
|
900
|
+
limit?: number
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* MemoryFact updateManyAndReturn
|
|
905
|
+
*/
|
|
906
|
+
export type MemoryFactUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
907
|
+
/**
|
|
908
|
+
* Select specific fields to fetch from the MemoryFact
|
|
909
|
+
*/
|
|
910
|
+
select?: Prisma.MemoryFactSelectUpdateManyAndReturn<ExtArgs> | null
|
|
911
|
+
/**
|
|
912
|
+
* Omit specific fields from the MemoryFact
|
|
913
|
+
*/
|
|
914
|
+
omit?: Prisma.MemoryFactOmit<ExtArgs> | null
|
|
915
|
+
/**
|
|
916
|
+
* The data used to update MemoryFacts.
|
|
917
|
+
*/
|
|
918
|
+
data: Prisma.XOR<Prisma.MemoryFactUpdateManyMutationInput, Prisma.MemoryFactUncheckedUpdateManyInput>
|
|
919
|
+
/**
|
|
920
|
+
* Filter which MemoryFacts to update
|
|
921
|
+
*/
|
|
922
|
+
where?: Prisma.MemoryFactWhereInput
|
|
923
|
+
/**
|
|
924
|
+
* Limit how many MemoryFacts to update.
|
|
925
|
+
*/
|
|
926
|
+
limit?: number
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* MemoryFact delete
|
|
931
|
+
*/
|
|
932
|
+
export type MemoryFactDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
933
|
+
/**
|
|
934
|
+
* Select specific fields to fetch from the MemoryFact
|
|
935
|
+
*/
|
|
936
|
+
select?: Prisma.MemoryFactSelect<ExtArgs> | null
|
|
937
|
+
/**
|
|
938
|
+
* Omit specific fields from the MemoryFact
|
|
939
|
+
*/
|
|
940
|
+
omit?: Prisma.MemoryFactOmit<ExtArgs> | null
|
|
941
|
+
/**
|
|
942
|
+
* Filter which MemoryFact to delete.
|
|
943
|
+
*/
|
|
944
|
+
where: Prisma.MemoryFactWhereUniqueInput
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* MemoryFact deleteMany
|
|
949
|
+
*/
|
|
950
|
+
export type MemoryFactDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
951
|
+
/**
|
|
952
|
+
* Filter which MemoryFacts to delete
|
|
953
|
+
*/
|
|
954
|
+
where?: Prisma.MemoryFactWhereInput
|
|
955
|
+
/**
|
|
956
|
+
* Limit how many MemoryFacts to delete.
|
|
957
|
+
*/
|
|
958
|
+
limit?: number
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* MemoryFact without action
|
|
963
|
+
*/
|
|
964
|
+
export type MemoryFactDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
965
|
+
/**
|
|
966
|
+
* Select specific fields to fetch from the MemoryFact
|
|
967
|
+
*/
|
|
968
|
+
select?: Prisma.MemoryFactSelect<ExtArgs> | null
|
|
969
|
+
/**
|
|
970
|
+
* Omit specific fields from the MemoryFact
|
|
971
|
+
*/
|
|
972
|
+
omit?: Prisma.MemoryFactOmit<ExtArgs> | null
|
|
973
|
+
}
|