@s-hirano-ist/s-database 1.0.0 → 1.1.1

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