@effectify/prisma 0.1.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/src/cli.d.ts +1 -1
  2. package/dist/src/cli.js +9 -9
  3. package/dist/src/commands/init.d.ts +1 -1
  4. package/dist/src/commands/init.js +0 -2
  5. package/dist/src/commands/prisma.d.ts +5 -0
  6. package/dist/src/commands/prisma.js +35 -0
  7. package/dist/src/generators/sql-schema-generator.d.ts +9 -0
  8. package/dist/src/generators/sql-schema-generator.js +50 -58
  9. package/dist/src/services/generator-context.d.ts +6 -0
  10. package/dist/src/services/generator-context.js +3 -0
  11. package/dist/src/services/generator-service.d.ts +14 -0
  12. package/dist/src/services/generator-service.js +121 -0
  13. package/dist/src/services/render-service.d.ts +10 -0
  14. package/dist/src/services/render-service.js +23 -0
  15. package/dist/src/templates/index-custom-error.eta +190 -0
  16. package/{prisma/generated/effect/index.ts → dist/src/templates/index-default.eta} +4 -38
  17. package/dist/src/templates/model.eta +8 -0
  18. package/dist/src/templates/prisma-raw-sql.eta +31 -0
  19. package/{prisma/generated/effect/prisma-repository.ts → dist/src/templates/prisma-repository.eta} +19 -19
  20. package/package.json +25 -18
  21. package/dist/src/commands/generate-effect.d.ts +0 -2
  22. package/dist/src/commands/generate-effect.js +0 -73
  23. package/dist/src/commands/generate-sql-schema.d.ts +0 -2
  24. package/dist/src/commands/generate-sql-schema.js +0 -72
  25. package/dist/src/effect-prisma.d.ts +0 -2
  26. package/dist/src/effect-prisma.js +0 -1771
  27. package/dist/src/generators/prisma-effect-generator.d.ts +0 -1
  28. package/dist/src/generators/prisma-effect-generator.js +0 -446
  29. package/prisma/dev.db +0 -0
  30. package/prisma/generated/client.d.ts +0 -1
  31. package/prisma/generated/client.js +0 -5
  32. package/prisma/generated/default.d.ts +0 -1
  33. package/prisma/generated/default.js +0 -5
  34. package/prisma/generated/edge.d.ts +0 -1
  35. package/prisma/generated/edge.js +0 -141
  36. package/prisma/generated/effect/schemas/enums.ts +0 -6
  37. package/prisma/generated/effect/schemas/index.ts +0 -2
  38. package/prisma/generated/effect/schemas/types.ts +0 -40
  39. package/prisma/generated/index-browser.js +0 -172
  40. package/prisma/generated/index.d.ts +0 -2360
  41. package/prisma/generated/index.js +0 -141
  42. package/prisma/generated/package.json +0 -144
  43. package/prisma/generated/query_compiler_bg.js +0 -2
  44. package/prisma/generated/query_compiler_bg.wasm +0 -0
  45. package/prisma/generated/query_compiler_bg.wasm-base64.js +0 -2
  46. package/prisma/generated/runtime/client.d.ts +0 -3180
  47. package/prisma/generated/runtime/client.js +0 -86
  48. package/prisma/generated/runtime/index-browser.d.ts +0 -87
  49. package/prisma/generated/runtime/index-browser.js +0 -6
  50. package/prisma/generated/runtime/wasm-compiler-edge.js +0 -76
  51. package/prisma/generated/schema.prisma +0 -31
  52. package/prisma/generated/wasm-edge-light-loader.mjs +0 -5
  53. package/prisma/generated/wasm-worker-loader.mjs +0 -5
  54. package/prisma/migrations/20250721164420_init/migration.sql +0 -9
  55. package/prisma/migrations/20250721191716_dumb/migration.sql +0 -49
  56. package/prisma/migrations/migration_lock.toml +0 -3
  57. package/prisma/schema.prisma +0 -31
  58. package/prisma.config.ts +0 -8
  59. package/project.json +0 -48
  60. package/scripts/cleanup-tests.ts +0 -26
  61. package/scripts/generate-test-files.ts +0 -93
  62. package/setup-tests.ts +0 -10
  63. package/src/cli.tsx +0 -23
  64. package/src/commands/generate-effect.ts +0 -109
  65. package/src/commands/generate-sql-schema.ts +0 -109
  66. package/src/commands/init.ts +0 -155
  67. package/src/effect-prisma.ts +0 -1826
  68. package/src/generators/prisma-effect-generator.ts +0 -496
  69. package/src/generators/sql-schema-generator.ts +0 -75
  70. package/test/prisma-model.test.ts +0 -340
  71. package/test/utils.ts +0 -10
  72. package/tsconfig.json +0 -20
  73. package/tsconfig.lib.json +0 -24
  74. package/tsconfig.spec.json +0 -15
  75. package/vitest.config.ts +0 -23
  76. /package/{prisma/generated/effect/prisma-schema.ts → dist/src/templates/prisma-schema.eta} +0 -0
@@ -1,2360 +0,0 @@
1
-
2
- /**
3
- * Client
4
- **/
5
-
6
- import * as runtime from './runtime/client.js';
7
- import $Types = runtime.Types // general types
8
- import $Public = runtime.Types.Public
9
- import $Utils = runtime.Types.Utils
10
- import $Extensions = runtime.Types.Extensions
11
- import $Result = runtime.Types.Result
12
-
13
- export type PrismaPromise<T> = $Public.PrismaPromise<T>
14
-
15
-
16
- /**
17
- * Model Todo
18
- *
19
- */
20
- export type Todo = $Result.DefaultSelection<Prisma.$TodoPayload>
21
-
22
- /**
23
- * ## Prisma Client ʲˢ
24
- *
25
- * Type-safe database client for TypeScript & Node.js
26
- * @example
27
- * ```
28
- * const prisma = new PrismaClient()
29
- * // Fetch zero or more Todos
30
- * const todos = await prisma.todo.findMany()
31
- * ```
32
- *
33
- *
34
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
35
- */
36
- export class PrismaClient<
37
- ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
38
- const U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never,
39
- ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
40
- > {
41
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
42
-
43
- /**
44
- * ## Prisma Client ʲˢ
45
- *
46
- * Type-safe database client for TypeScript & Node.js
47
- * @example
48
- * ```
49
- * const prisma = new PrismaClient()
50
- * // Fetch zero or more Todos
51
- * const todos = await prisma.todo.findMany()
52
- * ```
53
- *
54
- *
55
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
56
- */
57
-
58
- constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
59
- $on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
60
-
61
- /**
62
- * Connect with the database
63
- */
64
- $connect(): $Utils.JsPromise<void>;
65
-
66
- /**
67
- * Disconnect from the database
68
- */
69
- $disconnect(): $Utils.JsPromise<void>;
70
-
71
- /**
72
- * Executes a prepared raw query and returns the number of affected rows.
73
- * @example
74
- * ```
75
- * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
76
- * ```
77
- *
78
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
79
- */
80
- $executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
81
-
82
- /**
83
- * Executes a raw query and returns the number of affected rows.
84
- * Susceptible to SQL injections, see documentation.
85
- * @example
86
- * ```
87
- * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
88
- * ```
89
- *
90
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
91
- */
92
- $executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
93
-
94
- /**
95
- * Performs a prepared raw query and returns the `SELECT` data.
96
- * @example
97
- * ```
98
- * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
99
- * ```
100
- *
101
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
102
- */
103
- $queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
104
-
105
- /**
106
- * Performs a raw query and returns the `SELECT` data.
107
- * Susceptible to SQL injections, see documentation.
108
- * @example
109
- * ```
110
- * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
111
- * ```
112
- *
113
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
114
- */
115
- $queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
116
-
117
-
118
- /**
119
- * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
120
- * @example
121
- * ```
122
- * const [george, bob, alice] = await prisma.$transaction([
123
- * prisma.user.create({ data: { name: 'George' } }),
124
- * prisma.user.create({ data: { name: 'Bob' } }),
125
- * prisma.user.create({ data: { name: 'Alice' } }),
126
- * ])
127
- * ```
128
- *
129
- * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
130
- */
131
- $transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
132
-
133
- $transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>
134
-
135
- $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<ClientOptions>, ExtArgs, $Utils.Call<Prisma.TypeMapCb<ClientOptions>, {
136
- extArgs: ExtArgs
137
- }>>
138
-
139
- /**
140
- * `prisma.todo`: Exposes CRUD operations for the **Todo** model.
141
- * Example usage:
142
- * ```ts
143
- * // Fetch zero or more Todos
144
- * const todos = await prisma.todo.findMany()
145
- * ```
146
- */
147
- get todo(): Prisma.TodoDelegate<ExtArgs, ClientOptions>;
148
- }
149
-
150
- export namespace Prisma {
151
- export import DMMF = runtime.DMMF
152
-
153
- export type PrismaPromise<T> = $Public.PrismaPromise<T>
154
-
155
- /**
156
- * Validator
157
- */
158
- export import validator = runtime.Public.validator
159
-
160
- /**
161
- * Prisma Errors
162
- */
163
- export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
164
- export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
165
- export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
166
- export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
167
- export import PrismaClientValidationError = runtime.PrismaClientValidationError
168
-
169
- /**
170
- * Re-export of sql-template-tag
171
- */
172
- export import sql = runtime.sqltag
173
- export import empty = runtime.empty
174
- export import join = runtime.join
175
- export import raw = runtime.raw
176
- export import Sql = runtime.Sql
177
-
178
-
179
-
180
- /**
181
- * Decimal.js
182
- */
183
- export import Decimal = runtime.Decimal
184
-
185
- export type DecimalJsLike = runtime.DecimalJsLike
186
-
187
- /**
188
- * Extensions
189
- */
190
- export import Extension = $Extensions.UserArgs
191
- export import getExtensionContext = runtime.Extensions.getExtensionContext
192
- export import Args = $Public.Args
193
- export import Payload = $Public.Payload
194
- export import Result = $Public.Result
195
- export import Exact = $Public.Exact
196
-
197
- /**
198
- * Prisma Client JS version: 7.0.0
199
- * Query Engine version: 0c19ccc313cf9911a90d99d2ac2eb0280c76c513
200
- */
201
- export type PrismaVersion = {
202
- client: string
203
- engine: string
204
- }
205
-
206
- export const prismaVersion: PrismaVersion
207
-
208
- /**
209
- * Utility Types
210
- */
211
-
212
-
213
- export import Bytes = runtime.Bytes
214
- export import JsonObject = runtime.JsonObject
215
- export import JsonArray = runtime.JsonArray
216
- export import JsonValue = runtime.JsonValue
217
- export import InputJsonObject = runtime.InputJsonObject
218
- export import InputJsonArray = runtime.InputJsonArray
219
- export import InputJsonValue = runtime.InputJsonValue
220
-
221
- /**
222
- * Types of the values used to represent different kinds of `null` values when working with JSON fields.
223
- *
224
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
225
- */
226
- namespace NullTypes {
227
- /**
228
- * Type of `Prisma.DbNull`.
229
- *
230
- * You cannot use other instances of this class. Please use the `Prisma.DbNull` value.
231
- *
232
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
233
- */
234
- class DbNull {
235
- private DbNull: never
236
- private constructor()
237
- }
238
-
239
- /**
240
- * Type of `Prisma.JsonNull`.
241
- *
242
- * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value.
243
- *
244
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
245
- */
246
- class JsonNull {
247
- private JsonNull: never
248
- private constructor()
249
- }
250
-
251
- /**
252
- * Type of `Prisma.AnyNull`.
253
- *
254
- * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value.
255
- *
256
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
257
- */
258
- class AnyNull {
259
- private AnyNull: never
260
- private constructor()
261
- }
262
- }
263
-
264
- /**
265
- * Helper for filtering JSON entries that have `null` on the database (empty on the db)
266
- *
267
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
268
- */
269
- export const DbNull: NullTypes.DbNull
270
-
271
- /**
272
- * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
273
- *
274
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
275
- */
276
- export const JsonNull: NullTypes.JsonNull
277
-
278
- /**
279
- * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
280
- *
281
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
282
- */
283
- export const AnyNull: NullTypes.AnyNull
284
-
285
- type SelectAndInclude = {
286
- select: any
287
- include: any
288
- }
289
-
290
- type SelectAndOmit = {
291
- select: any
292
- omit: any
293
- }
294
-
295
- /**
296
- * Get the type of the value, that the Promise holds.
297
- */
298
- export type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T;
299
-
300
- /**
301
- * Get the return type of a function which returns a Promise.
302
- */
303
- export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
304
-
305
- /**
306
- * From T, pick a set of properties whose keys are in the union K
307
- */
308
- type Prisma__Pick<T, K extends keyof T> = {
309
- [P in K]: T[P];
310
- };
311
-
312
-
313
- export type Enumerable<T> = T | Array<T>;
314
-
315
- export type RequiredKeys<T> = {
316
- [K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
317
- }[keyof T]
318
-
319
- export type TruthyKeys<T> = keyof {
320
- [K in keyof T as T[K] extends false | undefined | null ? never : K]: K
321
- }
322
-
323
- export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>
324
-
325
- /**
326
- * Subset
327
- * @desc From `T` pick properties that exist in `U`. Simple version of Intersection
328
- */
329
- export type Subset<T, U> = {
330
- [key in keyof T]: key extends keyof U ? T[key] : never;
331
- };
332
-
333
- /**
334
- * SelectSubset
335
- * @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
336
- * Additionally, it validates, if both select and include are present. If the case, it errors.
337
- */
338
- export type SelectSubset<T, U> = {
339
- [key in keyof T]: key extends keyof U ? T[key] : never
340
- } &
341
- (T extends SelectAndInclude
342
- ? 'Please either choose `select` or `include`.'
343
- : T extends SelectAndOmit
344
- ? 'Please either choose `select` or `omit`.'
345
- : {})
346
-
347
- /**
348
- * Subset + Intersection
349
- * @desc From `T` pick properties that exist in `U` and intersect `K`
350
- */
351
- export type SubsetIntersection<T, U, K> = {
352
- [key in keyof T]: key extends keyof U ? T[key] : never
353
- } &
354
- K
355
-
356
- type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
357
-
358
- /**
359
- * XOR is needed to have a real mutually exclusive union type
360
- * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
361
- */
362
- type XOR<T, U> =
363
- T extends object ?
364
- U extends object ?
365
- (Without<T, U> & U) | (Without<U, T> & T)
366
- : U : T
367
-
368
-
369
- /**
370
- * Is T a Record?
371
- */
372
- type IsObject<T extends any> = T extends Array<any>
373
- ? False
374
- : T extends Date
375
- ? False
376
- : T extends Uint8Array
377
- ? False
378
- : T extends BigInt
379
- ? False
380
- : T extends object
381
- ? True
382
- : False
383
-
384
-
385
- /**
386
- * If it's T[], return T
387
- */
388
- export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
389
-
390
- /**
391
- * From ts-toolbelt
392
- */
393
-
394
- type __Either<O extends object, K extends Key> = Omit<O, K> &
395
- {
396
- // Merge all but K
397
- [P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
398
- }[K]
399
-
400
- type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
401
-
402
- type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
403
-
404
- type _Either<
405
- O extends object,
406
- K extends Key,
407
- strict extends Boolean
408
- > = {
409
- 1: EitherStrict<O, K>
410
- 0: EitherLoose<O, K>
411
- }[strict]
412
-
413
- type Either<
414
- O extends object,
415
- K extends Key,
416
- strict extends Boolean = 1
417
- > = O extends unknown ? _Either<O, K, strict> : never
418
-
419
- export type Union = any
420
-
421
- type PatchUndefined<O extends object, O1 extends object> = {
422
- [K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
423
- } & {}
424
-
425
- /** Helper Types for "Merge" **/
426
- export type IntersectOf<U extends Union> = (
427
- U extends unknown ? (k: U) => void : never
428
- ) extends (k: infer I) => void
429
- ? I
430
- : never
431
-
432
- export type Overwrite<O extends object, O1 extends object> = {
433
- [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
434
- } & {};
435
-
436
- type _Merge<U extends object> = IntersectOf<Overwrite<U, {
437
- [K in keyof U]-?: At<U, K>;
438
- }>>;
439
-
440
- type Key = string | number | symbol;
441
- type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
442
- type AtStrict<O extends object, K extends Key> = O[K & keyof O];
443
- type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
444
- export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
445
- 1: AtStrict<O, K>;
446
- 0: AtLoose<O, K>;
447
- }[strict];
448
-
449
- export type ComputeRaw<A extends any> = A extends Function ? A : {
450
- [K in keyof A]: A[K];
451
- } & {};
452
-
453
- export type OptionalFlat<O> = {
454
- [K in keyof O]?: O[K];
455
- } & {};
456
-
457
- type _Record<K extends keyof any, T> = {
458
- [P in K]: T;
459
- };
460
-
461
- // cause typescript not to expand types and preserve names
462
- type NoExpand<T> = T extends unknown ? T : never;
463
-
464
- // this type assumes the passed object is entirely optional
465
- type AtLeast<O extends object, K extends string> = NoExpand<
466
- O extends unknown
467
- ? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
468
- | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
469
- : never>;
470
-
471
- type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
472
-
473
- export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
474
- /** End Helper Types for "Merge" **/
475
-
476
- export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
477
-
478
- /**
479
- A [[Boolean]]
480
- */
481
- export type Boolean = True | False
482
-
483
- // /**
484
- // 1
485
- // */
486
- export type True = 1
487
-
488
- /**
489
- 0
490
- */
491
- export type False = 0
492
-
493
- export type Not<B extends Boolean> = {
494
- 0: 1
495
- 1: 0
496
- }[B]
497
-
498
- export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
499
- ? 0 // anything `never` is false
500
- : A1 extends A2
501
- ? 1
502
- : 0
503
-
504
- export type Has<U extends Union, U1 extends Union> = Not<
505
- Extends<Exclude<U1, U>, U1>
506
- >
507
-
508
- export type Or<B1 extends Boolean, B2 extends Boolean> = {
509
- 0: {
510
- 0: 0
511
- 1: 1
512
- }
513
- 1: {
514
- 0: 1
515
- 1: 1
516
- }
517
- }[B1][B2]
518
-
519
- export type Keys<U extends Union> = U extends unknown ? keyof U : never
520
-
521
- type Cast<A, B> = A extends B ? A : B;
522
-
523
- export const type: unique symbol;
524
-
525
-
526
-
527
- /**
528
- * Used by group by
529
- */
530
-
531
- export type GetScalarType<T, O> = O extends object ? {
532
- [P in keyof T]: P extends keyof O
533
- ? O[P]
534
- : never
535
- } : never
536
-
537
- type FieldPaths<
538
- T,
539
- U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
540
- > = IsObject<T> extends True ? U : T
541
-
542
- type GetHavingFields<T> = {
543
- [K in keyof T]: Or<
544
- Or<Extends<'OR', K>, Extends<'AND', K>>,
545
- Extends<'NOT', K>
546
- > extends True
547
- ? // infer is only needed to not hit TS limit
548
- // based on the brilliant idea of Pierre-Antoine Mills
549
- // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
550
- T[K] extends infer TK
551
- ? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
552
- : never
553
- : {} extends FieldPaths<T[K]>
554
- ? never
555
- : K
556
- }[keyof T]
557
-
558
- /**
559
- * Convert tuple to union
560
- */
561
- type _TupleToUnion<T> = T extends (infer E)[] ? E : never
562
- type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
563
- type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
564
-
565
- /**
566
- * Like `Pick`, but additionally can also accept an array of keys
567
- */
568
- type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
569
-
570
- /**
571
- * Exclude all keys with underscores
572
- */
573
- type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
574
-
575
-
576
- export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
577
-
578
- type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
579
-
580
-
581
- export const ModelName: {
582
- Todo: 'Todo'
583
- };
584
-
585
- export type ModelName = (typeof ModelName)[keyof typeof ModelName]
586
-
587
-
588
-
589
- interface TypeMapCb<ClientOptions = {}> extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record<string, any>> {
590
- returns: Prisma.TypeMap<this['params']['extArgs'], ClientOptions extends { omit: infer OmitOptions } ? OmitOptions : {}>
591
- }
592
-
593
- export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
594
- globalOmitOptions: {
595
- omit: GlobalOmitOptions
596
- }
597
- meta: {
598
- modelProps: "todo"
599
- txIsolationLevel: Prisma.TransactionIsolationLevel
600
- }
601
- model: {
602
- Todo: {
603
- payload: Prisma.$TodoPayload<ExtArgs>
604
- fields: Prisma.TodoFieldRefs
605
- operations: {
606
- findUnique: {
607
- args: Prisma.TodoFindUniqueArgs<ExtArgs>
608
- result: $Utils.PayloadToResult<Prisma.$TodoPayload> | null
609
- }
610
- findUniqueOrThrow: {
611
- args: Prisma.TodoFindUniqueOrThrowArgs<ExtArgs>
612
- result: $Utils.PayloadToResult<Prisma.$TodoPayload>
613
- }
614
- findFirst: {
615
- args: Prisma.TodoFindFirstArgs<ExtArgs>
616
- result: $Utils.PayloadToResult<Prisma.$TodoPayload> | null
617
- }
618
- findFirstOrThrow: {
619
- args: Prisma.TodoFindFirstOrThrowArgs<ExtArgs>
620
- result: $Utils.PayloadToResult<Prisma.$TodoPayload>
621
- }
622
- findMany: {
623
- args: Prisma.TodoFindManyArgs<ExtArgs>
624
- result: $Utils.PayloadToResult<Prisma.$TodoPayload>[]
625
- }
626
- create: {
627
- args: Prisma.TodoCreateArgs<ExtArgs>
628
- result: $Utils.PayloadToResult<Prisma.$TodoPayload>
629
- }
630
- createMany: {
631
- args: Prisma.TodoCreateManyArgs<ExtArgs>
632
- result: BatchPayload
633
- }
634
- createManyAndReturn: {
635
- args: Prisma.TodoCreateManyAndReturnArgs<ExtArgs>
636
- result: $Utils.PayloadToResult<Prisma.$TodoPayload>[]
637
- }
638
- delete: {
639
- args: Prisma.TodoDeleteArgs<ExtArgs>
640
- result: $Utils.PayloadToResult<Prisma.$TodoPayload>
641
- }
642
- update: {
643
- args: Prisma.TodoUpdateArgs<ExtArgs>
644
- result: $Utils.PayloadToResult<Prisma.$TodoPayload>
645
- }
646
- deleteMany: {
647
- args: Prisma.TodoDeleteManyArgs<ExtArgs>
648
- result: BatchPayload
649
- }
650
- updateMany: {
651
- args: Prisma.TodoUpdateManyArgs<ExtArgs>
652
- result: BatchPayload
653
- }
654
- updateManyAndReturn: {
655
- args: Prisma.TodoUpdateManyAndReturnArgs<ExtArgs>
656
- result: $Utils.PayloadToResult<Prisma.$TodoPayload>[]
657
- }
658
- upsert: {
659
- args: Prisma.TodoUpsertArgs<ExtArgs>
660
- result: $Utils.PayloadToResult<Prisma.$TodoPayload>
661
- }
662
- aggregate: {
663
- args: Prisma.TodoAggregateArgs<ExtArgs>
664
- result: $Utils.Optional<AggregateTodo>
665
- }
666
- groupBy: {
667
- args: Prisma.TodoGroupByArgs<ExtArgs>
668
- result: $Utils.Optional<TodoGroupByOutputType>[]
669
- }
670
- count: {
671
- args: Prisma.TodoCountArgs<ExtArgs>
672
- result: $Utils.Optional<TodoCountAggregateOutputType> | number
673
- }
674
- }
675
- }
676
- }
677
- } & {
678
- other: {
679
- payload: any
680
- operations: {
681
- $executeRaw: {
682
- args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
683
- result: any
684
- }
685
- $executeRawUnsafe: {
686
- args: [query: string, ...values: any[]],
687
- result: any
688
- }
689
- $queryRaw: {
690
- args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
691
- result: any
692
- }
693
- $queryRawUnsafe: {
694
- args: [query: string, ...values: any[]],
695
- result: any
696
- }
697
- }
698
- }
699
- }
700
- export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs>
701
- export type DefaultPrismaClient = PrismaClient
702
- export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
703
- export interface PrismaClientOptions {
704
- /**
705
- * @default "colorless"
706
- */
707
- errorFormat?: ErrorFormat
708
- /**
709
- * @example
710
- * ```
711
- * // Shorthand for `emit: 'stdout'`
712
- * log: ['query', 'info', 'warn', 'error']
713
- *
714
- * // Emit as events only
715
- * log: [
716
- * { emit: 'event', level: 'query' },
717
- * { emit: 'event', level: 'info' },
718
- * { emit: 'event', level: 'warn' }
719
- * { emit: 'event', level: 'error' }
720
- * ]
721
- *
722
- * / Emit as events and log to stdout
723
- * og: [
724
- * { emit: 'stdout', level: 'query' },
725
- * { emit: 'stdout', level: 'info' },
726
- * { emit: 'stdout', level: 'warn' }
727
- * { emit: 'stdout', level: 'error' }
728
- *
729
- * ```
730
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
731
- */
732
- log?: (LogLevel | LogDefinition)[]
733
- /**
734
- * The default values for transactionOptions
735
- * maxWait ?= 2000
736
- * timeout ?= 5000
737
- */
738
- transactionOptions?: {
739
- maxWait?: number
740
- timeout?: number
741
- isolationLevel?: Prisma.TransactionIsolationLevel
742
- }
743
- /**
744
- * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`
745
- */
746
- adapter?: runtime.SqlDriverAdapterFactory
747
- /**
748
- * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database.
749
- */
750
- accelerateUrl?: string
751
- /**
752
- * Global configuration for omitting model fields by default.
753
- *
754
- * @example
755
- * ```
756
- * const prisma = new PrismaClient({
757
- * omit: {
758
- * user: {
759
- * password: true
760
- * }
761
- * }
762
- * })
763
- * ```
764
- */
765
- omit?: Prisma.GlobalOmitConfig
766
- }
767
- export type GlobalOmitConfig = {
768
- todo?: TodoOmit
769
- }
770
-
771
- /* Types for Logging */
772
- export type LogLevel = 'info' | 'query' | 'warn' | 'error'
773
- export type LogDefinition = {
774
- level: LogLevel
775
- emit: 'stdout' | 'event'
776
- }
777
-
778
- export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
779
-
780
- export type GetLogType<T> = CheckIsLogLevel<
781
- T extends LogDefinition ? T['level'] : T
782
- >;
783
-
784
- export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
785
- ? GetLogType<T[number]>
786
- : never;
787
-
788
- export type QueryEvent = {
789
- timestamp: Date
790
- query: string
791
- params: string
792
- duration: number
793
- target: string
794
- }
795
-
796
- export type LogEvent = {
797
- timestamp: Date
798
- message: string
799
- target: string
800
- }
801
- /* End Types for Logging */
802
-
803
-
804
- export type PrismaAction =
805
- | 'findUnique'
806
- | 'findUniqueOrThrow'
807
- | 'findMany'
808
- | 'findFirst'
809
- | 'findFirstOrThrow'
810
- | 'create'
811
- | 'createMany'
812
- | 'createManyAndReturn'
813
- | 'update'
814
- | 'updateMany'
815
- | 'updateManyAndReturn'
816
- | 'upsert'
817
- | 'delete'
818
- | 'deleteMany'
819
- | 'executeRaw'
820
- | 'queryRaw'
821
- | 'aggregate'
822
- | 'count'
823
- | 'runCommandRaw'
824
- | 'findRaw'
825
- | 'groupBy'
826
-
827
- // tested in getLogLevel.test.ts
828
- export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
829
-
830
- /**
831
- * `PrismaClient` proxy available in interactive transactions.
832
- */
833
- export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
834
-
835
- export type Datasource = {
836
- url?: string
837
- }
838
-
839
- /**
840
- * Count Types
841
- */
842
-
843
-
844
-
845
- /**
846
- * Models
847
- */
848
-
849
- /**
850
- * Model Todo
851
- */
852
-
853
- export type AggregateTodo = {
854
- _count: TodoCountAggregateOutputType | null
855
- _avg: TodoAvgAggregateOutputType | null
856
- _sum: TodoSumAggregateOutputType | null
857
- _min: TodoMinAggregateOutputType | null
858
- _max: TodoMaxAggregateOutputType | null
859
- }
860
-
861
- export type TodoAvgAggregateOutputType = {
862
- id: number | null
863
- authorId: number | null
864
- }
865
-
866
- export type TodoSumAggregateOutputType = {
867
- id: number | null
868
- authorId: number | null
869
- }
870
-
871
- export type TodoMinAggregateOutputType = {
872
- id: number | null
873
- title: string | null
874
- content: string | null
875
- published: boolean | null
876
- authorId: number | null
877
- }
878
-
879
- export type TodoMaxAggregateOutputType = {
880
- id: number | null
881
- title: string | null
882
- content: string | null
883
- published: boolean | null
884
- authorId: number | null
885
- }
886
-
887
- export type TodoCountAggregateOutputType = {
888
- id: number
889
- title: number
890
- content: number
891
- published: number
892
- authorId: number
893
- _all: number
894
- }
895
-
896
-
897
- export type TodoAvgAggregateInputType = {
898
- id?: true
899
- authorId?: true
900
- }
901
-
902
- export type TodoSumAggregateInputType = {
903
- id?: true
904
- authorId?: true
905
- }
906
-
907
- export type TodoMinAggregateInputType = {
908
- id?: true
909
- title?: true
910
- content?: true
911
- published?: true
912
- authorId?: true
913
- }
914
-
915
- export type TodoMaxAggregateInputType = {
916
- id?: true
917
- title?: true
918
- content?: true
919
- published?: true
920
- authorId?: true
921
- }
922
-
923
- export type TodoCountAggregateInputType = {
924
- id?: true
925
- title?: true
926
- content?: true
927
- published?: true
928
- authorId?: true
929
- _all?: true
930
- }
931
-
932
- export type TodoAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
933
- /**
934
- * Filter which Todo to aggregate.
935
- */
936
- where?: TodoWhereInput
937
- /**
938
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
939
- *
940
- * Determine the order of Todos to fetch.
941
- */
942
- orderBy?: TodoOrderByWithRelationInput | TodoOrderByWithRelationInput[]
943
- /**
944
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
945
- *
946
- * Sets the start position
947
- */
948
- cursor?: TodoWhereUniqueInput
949
- /**
950
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
951
- *
952
- * Take `±n` Todos from the position of the cursor.
953
- */
954
- take?: number
955
- /**
956
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
957
- *
958
- * Skip the first `n` Todos.
959
- */
960
- skip?: number
961
- /**
962
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
963
- *
964
- * Count returned Todos
965
- **/
966
- _count?: true | TodoCountAggregateInputType
967
- /**
968
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
969
- *
970
- * Select which fields to average
971
- **/
972
- _avg?: TodoAvgAggregateInputType
973
- /**
974
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
975
- *
976
- * Select which fields to sum
977
- **/
978
- _sum?: TodoSumAggregateInputType
979
- /**
980
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
981
- *
982
- * Select which fields to find the minimum value
983
- **/
984
- _min?: TodoMinAggregateInputType
985
- /**
986
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
987
- *
988
- * Select which fields to find the maximum value
989
- **/
990
- _max?: TodoMaxAggregateInputType
991
- }
992
-
993
- export type GetTodoAggregateType<T extends TodoAggregateArgs> = {
994
- [P in keyof T & keyof AggregateTodo]: P extends '_count' | 'count'
995
- ? T[P] extends true
996
- ? number
997
- : GetScalarType<T[P], AggregateTodo[P]>
998
- : GetScalarType<T[P], AggregateTodo[P]>
999
- }
1000
-
1001
-
1002
-
1003
-
1004
- export type TodoGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1005
- where?: TodoWhereInput
1006
- orderBy?: TodoOrderByWithAggregationInput | TodoOrderByWithAggregationInput[]
1007
- by: TodoScalarFieldEnum[] | TodoScalarFieldEnum
1008
- having?: TodoScalarWhereWithAggregatesInput
1009
- take?: number
1010
- skip?: number
1011
- _count?: TodoCountAggregateInputType | true
1012
- _avg?: TodoAvgAggregateInputType
1013
- _sum?: TodoSumAggregateInputType
1014
- _min?: TodoMinAggregateInputType
1015
- _max?: TodoMaxAggregateInputType
1016
- }
1017
-
1018
- export type TodoGroupByOutputType = {
1019
- id: number
1020
- title: string
1021
- content: string | null
1022
- published: boolean
1023
- authorId: number
1024
- _count: TodoCountAggregateOutputType | null
1025
- _avg: TodoAvgAggregateOutputType | null
1026
- _sum: TodoSumAggregateOutputType | null
1027
- _min: TodoMinAggregateOutputType | null
1028
- _max: TodoMaxAggregateOutputType | null
1029
- }
1030
-
1031
- type GetTodoGroupByPayload<T extends TodoGroupByArgs> = Prisma.PrismaPromise<
1032
- Array<
1033
- PickEnumerable<TodoGroupByOutputType, T['by']> &
1034
- {
1035
- [P in ((keyof T) & (keyof TodoGroupByOutputType))]: P extends '_count'
1036
- ? T[P] extends boolean
1037
- ? number
1038
- : GetScalarType<T[P], TodoGroupByOutputType[P]>
1039
- : GetScalarType<T[P], TodoGroupByOutputType[P]>
1040
- }
1041
- >
1042
- >
1043
-
1044
-
1045
- export type TodoSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
1046
- id?: boolean
1047
- title?: boolean
1048
- content?: boolean
1049
- published?: boolean
1050
- authorId?: boolean
1051
- }, ExtArgs["result"]["todo"]>
1052
-
1053
- export type TodoSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
1054
- id?: boolean
1055
- title?: boolean
1056
- content?: boolean
1057
- published?: boolean
1058
- authorId?: boolean
1059
- }, ExtArgs["result"]["todo"]>
1060
-
1061
- export type TodoSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
1062
- id?: boolean
1063
- title?: boolean
1064
- content?: boolean
1065
- published?: boolean
1066
- authorId?: boolean
1067
- }, ExtArgs["result"]["todo"]>
1068
-
1069
- export type TodoSelectScalar = {
1070
- id?: boolean
1071
- title?: boolean
1072
- content?: boolean
1073
- published?: boolean
1074
- authorId?: boolean
1075
- }
1076
-
1077
- export type TodoOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "title" | "content" | "published" | "authorId", ExtArgs["result"]["todo"]>
1078
-
1079
- export type $TodoPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1080
- name: "Todo"
1081
- objects: {}
1082
- scalars: $Extensions.GetPayloadResult<{
1083
- id: number
1084
- title: string
1085
- content: string | null
1086
- published: boolean
1087
- authorId: number
1088
- }, ExtArgs["result"]["todo"]>
1089
- composites: {}
1090
- }
1091
-
1092
- type TodoGetPayload<S extends boolean | null | undefined | TodoDefaultArgs> = $Result.GetResult<Prisma.$TodoPayload, S>
1093
-
1094
- type TodoCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
1095
- Omit<TodoFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1096
- select?: TodoCountAggregateInputType | true
1097
- }
1098
-
1099
- export interface TodoDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1100
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Todo'], meta: { name: 'Todo' } }
1101
- /**
1102
- * Find zero or one Todo that matches the filter.
1103
- * @param {TodoFindUniqueArgs} args - Arguments to find a Todo
1104
- * @example
1105
- * // Get one Todo
1106
- * const todo = await prisma.todo.findUnique({
1107
- * where: {
1108
- * // ... provide filter here
1109
- * }
1110
- * })
1111
- */
1112
- findUnique<T extends TodoFindUniqueArgs>(args: SelectSubset<T, TodoFindUniqueArgs<ExtArgs>>): Prisma__TodoClient<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1113
-
1114
- /**
1115
- * Find one Todo that matches the filter or throw an error with `error.code='P2025'`
1116
- * if no matches were found.
1117
- * @param {TodoFindUniqueOrThrowArgs} args - Arguments to find a Todo
1118
- * @example
1119
- * // Get one Todo
1120
- * const todo = await prisma.todo.findUniqueOrThrow({
1121
- * where: {
1122
- * // ... provide filter here
1123
- * }
1124
- * })
1125
- */
1126
- findUniqueOrThrow<T extends TodoFindUniqueOrThrowArgs>(args: SelectSubset<T, TodoFindUniqueOrThrowArgs<ExtArgs>>): Prisma__TodoClient<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1127
-
1128
- /**
1129
- * Find the first Todo that matches the filter.
1130
- * Note, that providing `undefined` is treated as the value not being there.
1131
- * Read more here: https://pris.ly/d/null-undefined
1132
- * @param {TodoFindFirstArgs} args - Arguments to find a Todo
1133
- * @example
1134
- * // Get one Todo
1135
- * const todo = await prisma.todo.findFirst({
1136
- * where: {
1137
- * // ... provide filter here
1138
- * }
1139
- * })
1140
- */
1141
- findFirst<T extends TodoFindFirstArgs>(args?: SelectSubset<T, TodoFindFirstArgs<ExtArgs>>): Prisma__TodoClient<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1142
-
1143
- /**
1144
- * Find the first Todo that matches the filter or
1145
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1146
- * Note, that providing `undefined` is treated as the value not being there.
1147
- * Read more here: https://pris.ly/d/null-undefined
1148
- * @param {TodoFindFirstOrThrowArgs} args - Arguments to find a Todo
1149
- * @example
1150
- * // Get one Todo
1151
- * const todo = await prisma.todo.findFirstOrThrow({
1152
- * where: {
1153
- * // ... provide filter here
1154
- * }
1155
- * })
1156
- */
1157
- findFirstOrThrow<T extends TodoFindFirstOrThrowArgs>(args?: SelectSubset<T, TodoFindFirstOrThrowArgs<ExtArgs>>): Prisma__TodoClient<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1158
-
1159
- /**
1160
- * Find zero or more Todos that matches the filter.
1161
- * Note, that providing `undefined` is treated as the value not being there.
1162
- * Read more here: https://pris.ly/d/null-undefined
1163
- * @param {TodoFindManyArgs} args - Arguments to filter and select certain fields only.
1164
- * @example
1165
- * // Get all Todos
1166
- * const todos = await prisma.todo.findMany()
1167
- *
1168
- * // Get first 10 Todos
1169
- * const todos = await prisma.todo.findMany({ take: 10 })
1170
- *
1171
- * // Only select the `id`
1172
- * const todoWithIdOnly = await prisma.todo.findMany({ select: { id: true } })
1173
- *
1174
- */
1175
- findMany<T extends TodoFindManyArgs>(args?: SelectSubset<T, TodoFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1176
-
1177
- /**
1178
- * Create a Todo.
1179
- * @param {TodoCreateArgs} args - Arguments to create a Todo.
1180
- * @example
1181
- * // Create one Todo
1182
- * const Todo = await prisma.todo.create({
1183
- * data: {
1184
- * // ... data to create a Todo
1185
- * }
1186
- * })
1187
- *
1188
- */
1189
- create<T extends TodoCreateArgs>(args: SelectSubset<T, TodoCreateArgs<ExtArgs>>): Prisma__TodoClient<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1190
-
1191
- /**
1192
- * Create many Todos.
1193
- * @param {TodoCreateManyArgs} args - Arguments to create many Todos.
1194
- * @example
1195
- * // Create many Todos
1196
- * const todo = await prisma.todo.createMany({
1197
- * data: [
1198
- * // ... provide data here
1199
- * ]
1200
- * })
1201
- *
1202
- */
1203
- createMany<T extends TodoCreateManyArgs>(args?: SelectSubset<T, TodoCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
1204
-
1205
- /**
1206
- * Create many Todos and returns the data saved in the database.
1207
- * @param {TodoCreateManyAndReturnArgs} args - Arguments to create many Todos.
1208
- * @example
1209
- * // Create many Todos
1210
- * const todo = await prisma.todo.createManyAndReturn({
1211
- * data: [
1212
- * // ... provide data here
1213
- * ]
1214
- * })
1215
- *
1216
- * // Create many Todos and only return the `id`
1217
- * const todoWithIdOnly = await prisma.todo.createManyAndReturn({
1218
- * select: { id: true },
1219
- * data: [
1220
- * // ... provide data here
1221
- * ]
1222
- * })
1223
- * Note, that providing `undefined` is treated as the value not being there.
1224
- * Read more here: https://pris.ly/d/null-undefined
1225
- *
1226
- */
1227
- createManyAndReturn<T extends TodoCreateManyAndReturnArgs>(args?: SelectSubset<T, TodoCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1228
-
1229
- /**
1230
- * Delete a Todo.
1231
- * @param {TodoDeleteArgs} args - Arguments to delete one Todo.
1232
- * @example
1233
- * // Delete one Todo
1234
- * const Todo = await prisma.todo.delete({
1235
- * where: {
1236
- * // ... filter to delete one Todo
1237
- * }
1238
- * })
1239
- *
1240
- */
1241
- delete<T extends TodoDeleteArgs>(args: SelectSubset<T, TodoDeleteArgs<ExtArgs>>): Prisma__TodoClient<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1242
-
1243
- /**
1244
- * Update one Todo.
1245
- * @param {TodoUpdateArgs} args - Arguments to update one Todo.
1246
- * @example
1247
- * // Update one Todo
1248
- * const todo = await prisma.todo.update({
1249
- * where: {
1250
- * // ... provide filter here
1251
- * },
1252
- * data: {
1253
- * // ... provide data here
1254
- * }
1255
- * })
1256
- *
1257
- */
1258
- update<T extends TodoUpdateArgs>(args: SelectSubset<T, TodoUpdateArgs<ExtArgs>>): Prisma__TodoClient<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1259
-
1260
- /**
1261
- * Delete zero or more Todos.
1262
- * @param {TodoDeleteManyArgs} args - Arguments to filter Todos to delete.
1263
- * @example
1264
- * // Delete a few Todos
1265
- * const { count } = await prisma.todo.deleteMany({
1266
- * where: {
1267
- * // ... provide filter here
1268
- * }
1269
- * })
1270
- *
1271
- */
1272
- deleteMany<T extends TodoDeleteManyArgs>(args?: SelectSubset<T, TodoDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
1273
-
1274
- /**
1275
- * Update zero or more Todos.
1276
- * Note, that providing `undefined` is treated as the value not being there.
1277
- * Read more here: https://pris.ly/d/null-undefined
1278
- * @param {TodoUpdateManyArgs} args - Arguments to update one or more rows.
1279
- * @example
1280
- * // Update many Todos
1281
- * const todo = await prisma.todo.updateMany({
1282
- * where: {
1283
- * // ... provide filter here
1284
- * },
1285
- * data: {
1286
- * // ... provide data here
1287
- * }
1288
- * })
1289
- *
1290
- */
1291
- updateMany<T extends TodoUpdateManyArgs>(args: SelectSubset<T, TodoUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
1292
-
1293
- /**
1294
- * Update zero or more Todos and returns the data updated in the database.
1295
- * @param {TodoUpdateManyAndReturnArgs} args - Arguments to update many Todos.
1296
- * @example
1297
- * // Update many Todos
1298
- * const todo = await prisma.todo.updateManyAndReturn({
1299
- * where: {
1300
- * // ... provide filter here
1301
- * },
1302
- * data: [
1303
- * // ... provide data here
1304
- * ]
1305
- * })
1306
- *
1307
- * // Update zero or more Todos and only return the `id`
1308
- * const todoWithIdOnly = await prisma.todo.updateManyAndReturn({
1309
- * select: { id: true },
1310
- * where: {
1311
- * // ... provide filter here
1312
- * },
1313
- * data: [
1314
- * // ... provide data here
1315
- * ]
1316
- * })
1317
- * Note, that providing `undefined` is treated as the value not being there.
1318
- * Read more here: https://pris.ly/d/null-undefined
1319
- *
1320
- */
1321
- updateManyAndReturn<T extends TodoUpdateManyAndReturnArgs>(args: SelectSubset<T, TodoUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1322
-
1323
- /**
1324
- * Create or update one Todo.
1325
- * @param {TodoUpsertArgs} args - Arguments to update or create a Todo.
1326
- * @example
1327
- * // Update or create a Todo
1328
- * const todo = await prisma.todo.upsert({
1329
- * create: {
1330
- * // ... data to create a Todo
1331
- * },
1332
- * update: {
1333
- * // ... in case it already exists, update
1334
- * },
1335
- * where: {
1336
- * // ... the filter for the Todo we want to update
1337
- * }
1338
- * })
1339
- */
1340
- upsert<T extends TodoUpsertArgs>(args: SelectSubset<T, TodoUpsertArgs<ExtArgs>>): Prisma__TodoClient<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1341
-
1342
-
1343
- /**
1344
- * Count the number of Todos.
1345
- * Note, that providing `undefined` is treated as the value not being there.
1346
- * Read more here: https://pris.ly/d/null-undefined
1347
- * @param {TodoCountArgs} args - Arguments to filter Todos to count.
1348
- * @example
1349
- * // Count the number of Todos
1350
- * const count = await prisma.todo.count({
1351
- * where: {
1352
- * // ... the filter for the Todos we want to count
1353
- * }
1354
- * })
1355
- **/
1356
- count<T extends TodoCountArgs>(
1357
- args?: Subset<T, TodoCountArgs>,
1358
- ): Prisma.PrismaPromise<
1359
- T extends $Utils.Record<'select', any>
1360
- ? T['select'] extends true
1361
- ? number
1362
- : GetScalarType<T['select'], TodoCountAggregateOutputType>
1363
- : number
1364
- >
1365
-
1366
- /**
1367
- * Allows you to perform aggregations operations on a Todo.
1368
- * Note, that providing `undefined` is treated as the value not being there.
1369
- * Read more here: https://pris.ly/d/null-undefined
1370
- * @param {TodoAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1371
- * @example
1372
- * // Ordered by age ascending
1373
- * // Where email contains prisma.io
1374
- * // Limited to the 10 users
1375
- * const aggregations = await prisma.user.aggregate({
1376
- * _avg: {
1377
- * age: true,
1378
- * },
1379
- * where: {
1380
- * email: {
1381
- * contains: "prisma.io",
1382
- * },
1383
- * },
1384
- * orderBy: {
1385
- * age: "asc",
1386
- * },
1387
- * take: 10,
1388
- * })
1389
- **/
1390
- aggregate<T extends TodoAggregateArgs>(args: Subset<T, TodoAggregateArgs>): Prisma.PrismaPromise<GetTodoAggregateType<T>>
1391
-
1392
- /**
1393
- * Group by Todo.
1394
- * Note, that providing `undefined` is treated as the value not being there.
1395
- * Read more here: https://pris.ly/d/null-undefined
1396
- * @param {TodoGroupByArgs} args - Group by arguments.
1397
- * @example
1398
- * // Group by city, order by createdAt, get count
1399
- * const result = await prisma.user.groupBy({
1400
- * by: ['city', 'createdAt'],
1401
- * orderBy: {
1402
- * createdAt: true
1403
- * },
1404
- * _count: {
1405
- * _all: true
1406
- * },
1407
- * })
1408
- *
1409
- **/
1410
- groupBy<
1411
- T extends TodoGroupByArgs,
1412
- HasSelectOrTake extends Or<
1413
- Extends<'skip', Keys<T>>,
1414
- Extends<'take', Keys<T>>
1415
- >,
1416
- OrderByArg extends True extends HasSelectOrTake
1417
- ? { orderBy: TodoGroupByArgs['orderBy'] }
1418
- : { orderBy?: TodoGroupByArgs['orderBy'] },
1419
- OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
1420
- ByFields extends MaybeTupleToUnion<T['by']>,
1421
- ByValid extends Has<ByFields, OrderFields>,
1422
- HavingFields extends GetHavingFields<T['having']>,
1423
- HavingValid extends Has<ByFields, HavingFields>,
1424
- ByEmpty extends T['by'] extends never[] ? True : False,
1425
- InputErrors extends ByEmpty extends True
1426
- ? `Error: "by" must not be empty.`
1427
- : HavingValid extends False
1428
- ? {
1429
- [P in HavingFields]: P extends ByFields
1430
- ? never
1431
- : P extends string
1432
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1433
- : [
1434
- Error,
1435
- 'Field ',
1436
- P,
1437
- ` in "having" needs to be provided in "by"`,
1438
- ]
1439
- }[HavingFields]
1440
- : 'take' extends Keys<T>
1441
- ? 'orderBy' extends Keys<T>
1442
- ? ByValid extends True
1443
- ? {}
1444
- : {
1445
- [P in OrderFields]: P extends ByFields
1446
- ? never
1447
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1448
- }[OrderFields]
1449
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1450
- : 'skip' extends Keys<T>
1451
- ? 'orderBy' extends Keys<T>
1452
- ? ByValid extends True
1453
- ? {}
1454
- : {
1455
- [P in OrderFields]: P extends ByFields
1456
- ? never
1457
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1458
- }[OrderFields]
1459
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1460
- : ByValid extends True
1461
- ? {}
1462
- : {
1463
- [P in OrderFields]: P extends ByFields
1464
- ? never
1465
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1466
- }[OrderFields]
1467
- >(args: SubsetIntersection<T, TodoGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTodoGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1468
- /**
1469
- * Fields of the Todo model
1470
- */
1471
- readonly fields: TodoFieldRefs;
1472
- }
1473
-
1474
- /**
1475
- * The delegate class that acts as a "Promise-like" for Todo.
1476
- * Why is this prefixed with `Prisma__`?
1477
- * Because we want to prevent naming conflicts as mentioned in
1478
- * https://github.com/prisma/prisma-client-js/issues/707
1479
- */
1480
- export interface Prisma__TodoClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1481
- readonly [Symbol.toStringTag]: "PrismaPromise"
1482
- /**
1483
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1484
- * @param onfulfilled The callback to execute when the Promise is resolved.
1485
- * @param onrejected The callback to execute when the Promise is rejected.
1486
- * @returns A Promise for the completion of which ever callback is executed.
1487
- */
1488
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
1489
- /**
1490
- * Attaches a callback for only the rejection of the Promise.
1491
- * @param onrejected The callback to execute when the Promise is rejected.
1492
- * @returns A Promise for the completion of the callback.
1493
- */
1494
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
1495
- /**
1496
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1497
- * resolved value cannot be modified from the callback.
1498
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1499
- * @returns A Promise for the completion of the callback.
1500
- */
1501
- finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
1502
- }
1503
-
1504
-
1505
-
1506
-
1507
- /**
1508
- * Fields of the Todo model
1509
- */
1510
- interface TodoFieldRefs {
1511
- readonly id: FieldRef<"Todo", 'Int'>
1512
- readonly title: FieldRef<"Todo", 'String'>
1513
- readonly content: FieldRef<"Todo", 'String'>
1514
- readonly published: FieldRef<"Todo", 'Boolean'>
1515
- readonly authorId: FieldRef<"Todo", 'Int'>
1516
- }
1517
-
1518
-
1519
- // Custom InputTypes
1520
- /**
1521
- * Todo findUnique
1522
- */
1523
- export type TodoFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1524
- /**
1525
- * Select specific fields to fetch from the Todo
1526
- */
1527
- select?: TodoSelect<ExtArgs> | null
1528
- /**
1529
- * Omit specific fields from the Todo
1530
- */
1531
- omit?: TodoOmit<ExtArgs> | null
1532
- /**
1533
- * Filter, which Todo to fetch.
1534
- */
1535
- where: TodoWhereUniqueInput
1536
- }
1537
-
1538
- /**
1539
- * Todo findUniqueOrThrow
1540
- */
1541
- export type TodoFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1542
- /**
1543
- * Select specific fields to fetch from the Todo
1544
- */
1545
- select?: TodoSelect<ExtArgs> | null
1546
- /**
1547
- * Omit specific fields from the Todo
1548
- */
1549
- omit?: TodoOmit<ExtArgs> | null
1550
- /**
1551
- * Filter, which Todo to fetch.
1552
- */
1553
- where: TodoWhereUniqueInput
1554
- }
1555
-
1556
- /**
1557
- * Todo findFirst
1558
- */
1559
- export type TodoFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1560
- /**
1561
- * Select specific fields to fetch from the Todo
1562
- */
1563
- select?: TodoSelect<ExtArgs> | null
1564
- /**
1565
- * Omit specific fields from the Todo
1566
- */
1567
- omit?: TodoOmit<ExtArgs> | null
1568
- /**
1569
- * Filter, which Todo to fetch.
1570
- */
1571
- where?: TodoWhereInput
1572
- /**
1573
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1574
- *
1575
- * Determine the order of Todos to fetch.
1576
- */
1577
- orderBy?: TodoOrderByWithRelationInput | TodoOrderByWithRelationInput[]
1578
- /**
1579
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1580
- *
1581
- * Sets the position for searching for Todos.
1582
- */
1583
- cursor?: TodoWhereUniqueInput
1584
- /**
1585
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1586
- *
1587
- * Take `±n` Todos from the position of the cursor.
1588
- */
1589
- take?: number
1590
- /**
1591
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1592
- *
1593
- * Skip the first `n` Todos.
1594
- */
1595
- skip?: number
1596
- /**
1597
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1598
- *
1599
- * Filter by unique combinations of Todos.
1600
- */
1601
- distinct?: TodoScalarFieldEnum | TodoScalarFieldEnum[]
1602
- }
1603
-
1604
- /**
1605
- * Todo findFirstOrThrow
1606
- */
1607
- export type TodoFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1608
- /**
1609
- * Select specific fields to fetch from the Todo
1610
- */
1611
- select?: TodoSelect<ExtArgs> | null
1612
- /**
1613
- * Omit specific fields from the Todo
1614
- */
1615
- omit?: TodoOmit<ExtArgs> | null
1616
- /**
1617
- * Filter, which Todo to fetch.
1618
- */
1619
- where?: TodoWhereInput
1620
- /**
1621
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1622
- *
1623
- * Determine the order of Todos to fetch.
1624
- */
1625
- orderBy?: TodoOrderByWithRelationInput | TodoOrderByWithRelationInput[]
1626
- /**
1627
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1628
- *
1629
- * Sets the position for searching for Todos.
1630
- */
1631
- cursor?: TodoWhereUniqueInput
1632
- /**
1633
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1634
- *
1635
- * Take `±n` Todos from the position of the cursor.
1636
- */
1637
- take?: number
1638
- /**
1639
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1640
- *
1641
- * Skip the first `n` Todos.
1642
- */
1643
- skip?: number
1644
- /**
1645
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1646
- *
1647
- * Filter by unique combinations of Todos.
1648
- */
1649
- distinct?: TodoScalarFieldEnum | TodoScalarFieldEnum[]
1650
- }
1651
-
1652
- /**
1653
- * Todo findMany
1654
- */
1655
- export type TodoFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1656
- /**
1657
- * Select specific fields to fetch from the Todo
1658
- */
1659
- select?: TodoSelect<ExtArgs> | null
1660
- /**
1661
- * Omit specific fields from the Todo
1662
- */
1663
- omit?: TodoOmit<ExtArgs> | null
1664
- /**
1665
- * Filter, which Todos to fetch.
1666
- */
1667
- where?: TodoWhereInput
1668
- /**
1669
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1670
- *
1671
- * Determine the order of Todos to fetch.
1672
- */
1673
- orderBy?: TodoOrderByWithRelationInput | TodoOrderByWithRelationInput[]
1674
- /**
1675
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1676
- *
1677
- * Sets the position for listing Todos.
1678
- */
1679
- cursor?: TodoWhereUniqueInput
1680
- /**
1681
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1682
- *
1683
- * Take `±n` Todos from the position of the cursor.
1684
- */
1685
- take?: number
1686
- /**
1687
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1688
- *
1689
- * Skip the first `n` Todos.
1690
- */
1691
- skip?: number
1692
- distinct?: TodoScalarFieldEnum | TodoScalarFieldEnum[]
1693
- }
1694
-
1695
- /**
1696
- * Todo create
1697
- */
1698
- export type TodoCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1699
- /**
1700
- * Select specific fields to fetch from the Todo
1701
- */
1702
- select?: TodoSelect<ExtArgs> | null
1703
- /**
1704
- * Omit specific fields from the Todo
1705
- */
1706
- omit?: TodoOmit<ExtArgs> | null
1707
- /**
1708
- * The data needed to create a Todo.
1709
- */
1710
- data: XOR<TodoCreateInput, TodoUncheckedCreateInput>
1711
- }
1712
-
1713
- /**
1714
- * Todo createMany
1715
- */
1716
- export type TodoCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1717
- /**
1718
- * The data used to create many Todos.
1719
- */
1720
- data: TodoCreateManyInput | TodoCreateManyInput[]
1721
- }
1722
-
1723
- /**
1724
- * Todo createManyAndReturn
1725
- */
1726
- export type TodoCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1727
- /**
1728
- * Select specific fields to fetch from the Todo
1729
- */
1730
- select?: TodoSelectCreateManyAndReturn<ExtArgs> | null
1731
- /**
1732
- * Omit specific fields from the Todo
1733
- */
1734
- omit?: TodoOmit<ExtArgs> | null
1735
- /**
1736
- * The data used to create many Todos.
1737
- */
1738
- data: TodoCreateManyInput | TodoCreateManyInput[]
1739
- }
1740
-
1741
- /**
1742
- * Todo update
1743
- */
1744
- export type TodoUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1745
- /**
1746
- * Select specific fields to fetch from the Todo
1747
- */
1748
- select?: TodoSelect<ExtArgs> | null
1749
- /**
1750
- * Omit specific fields from the Todo
1751
- */
1752
- omit?: TodoOmit<ExtArgs> | null
1753
- /**
1754
- * The data needed to update a Todo.
1755
- */
1756
- data: XOR<TodoUpdateInput, TodoUncheckedUpdateInput>
1757
- /**
1758
- * Choose, which Todo to update.
1759
- */
1760
- where: TodoWhereUniqueInput
1761
- }
1762
-
1763
- /**
1764
- * Todo updateMany
1765
- */
1766
- export type TodoUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1767
- /**
1768
- * The data used to update Todos.
1769
- */
1770
- data: XOR<TodoUpdateManyMutationInput, TodoUncheckedUpdateManyInput>
1771
- /**
1772
- * Filter which Todos to update
1773
- */
1774
- where?: TodoWhereInput
1775
- /**
1776
- * Limit how many Todos to update.
1777
- */
1778
- limit?: number
1779
- }
1780
-
1781
- /**
1782
- * Todo updateManyAndReturn
1783
- */
1784
- export type TodoUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1785
- /**
1786
- * Select specific fields to fetch from the Todo
1787
- */
1788
- select?: TodoSelectUpdateManyAndReturn<ExtArgs> | null
1789
- /**
1790
- * Omit specific fields from the Todo
1791
- */
1792
- omit?: TodoOmit<ExtArgs> | null
1793
- /**
1794
- * The data used to update Todos.
1795
- */
1796
- data: XOR<TodoUpdateManyMutationInput, TodoUncheckedUpdateManyInput>
1797
- /**
1798
- * Filter which Todos to update
1799
- */
1800
- where?: TodoWhereInput
1801
- /**
1802
- * Limit how many Todos to update.
1803
- */
1804
- limit?: number
1805
- }
1806
-
1807
- /**
1808
- * Todo upsert
1809
- */
1810
- export type TodoUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1811
- /**
1812
- * Select specific fields to fetch from the Todo
1813
- */
1814
- select?: TodoSelect<ExtArgs> | null
1815
- /**
1816
- * Omit specific fields from the Todo
1817
- */
1818
- omit?: TodoOmit<ExtArgs> | null
1819
- /**
1820
- * The filter to search for the Todo to update in case it exists.
1821
- */
1822
- where: TodoWhereUniqueInput
1823
- /**
1824
- * In case the Todo found by the `where` argument doesn't exist, create a new Todo with this data.
1825
- */
1826
- create: XOR<TodoCreateInput, TodoUncheckedCreateInput>
1827
- /**
1828
- * In case the Todo was found with the provided `where` argument, update it with this data.
1829
- */
1830
- update: XOR<TodoUpdateInput, TodoUncheckedUpdateInput>
1831
- }
1832
-
1833
- /**
1834
- * Todo delete
1835
- */
1836
- export type TodoDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1837
- /**
1838
- * Select specific fields to fetch from the Todo
1839
- */
1840
- select?: TodoSelect<ExtArgs> | null
1841
- /**
1842
- * Omit specific fields from the Todo
1843
- */
1844
- omit?: TodoOmit<ExtArgs> | null
1845
- /**
1846
- * Filter which Todo to delete.
1847
- */
1848
- where: TodoWhereUniqueInput
1849
- }
1850
-
1851
- /**
1852
- * Todo deleteMany
1853
- */
1854
- export type TodoDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1855
- /**
1856
- * Filter which Todos to delete
1857
- */
1858
- where?: TodoWhereInput
1859
- /**
1860
- * Limit how many Todos to delete.
1861
- */
1862
- limit?: number
1863
- }
1864
-
1865
- /**
1866
- * Todo without action
1867
- */
1868
- export type TodoDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1869
- /**
1870
- * Select specific fields to fetch from the Todo
1871
- */
1872
- select?: TodoSelect<ExtArgs> | null
1873
- /**
1874
- * Omit specific fields from the Todo
1875
- */
1876
- omit?: TodoOmit<ExtArgs> | null
1877
- }
1878
-
1879
-
1880
- /**
1881
- * Enums
1882
- */
1883
-
1884
- export const TransactionIsolationLevel: {
1885
- Serializable: 'Serializable'
1886
- };
1887
-
1888
- export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
1889
-
1890
-
1891
- export const TodoScalarFieldEnum: {
1892
- id: 'id',
1893
- title: 'title',
1894
- content: 'content',
1895
- published: 'published',
1896
- authorId: 'authorId'
1897
- };
1898
-
1899
- export type TodoScalarFieldEnum = (typeof TodoScalarFieldEnum)[keyof typeof TodoScalarFieldEnum]
1900
-
1901
-
1902
- export const SortOrder: {
1903
- asc: 'asc',
1904
- desc: 'desc'
1905
- };
1906
-
1907
- export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
1908
-
1909
-
1910
- export const NullsOrder: {
1911
- first: 'first',
1912
- last: 'last'
1913
- };
1914
-
1915
- export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
1916
-
1917
-
1918
- /**
1919
- * Field references
1920
- */
1921
-
1922
-
1923
- /**
1924
- * Reference to a field of type 'Int'
1925
- */
1926
- export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
1927
-
1928
-
1929
-
1930
- /**
1931
- * Reference to a field of type 'String'
1932
- */
1933
- export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
1934
-
1935
-
1936
-
1937
- /**
1938
- * Reference to a field of type 'Boolean'
1939
- */
1940
- export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
1941
-
1942
-
1943
-
1944
- /**
1945
- * Reference to a field of type 'Float'
1946
- */
1947
- export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
1948
-
1949
- /**
1950
- * Deep Input Types
1951
- */
1952
-
1953
-
1954
- export type TodoWhereInput = {
1955
- AND?: TodoWhereInput | TodoWhereInput[]
1956
- OR?: TodoWhereInput[]
1957
- NOT?: TodoWhereInput | TodoWhereInput[]
1958
- id?: IntFilter<"Todo"> | number
1959
- title?: StringFilter<"Todo"> | string
1960
- content?: StringNullableFilter<"Todo"> | string | null
1961
- published?: BoolFilter<"Todo"> | boolean
1962
- authorId?: IntFilter<"Todo"> | number
1963
- }
1964
-
1965
- export type TodoOrderByWithRelationInput = {
1966
- id?: SortOrder
1967
- title?: SortOrder
1968
- content?: SortOrderInput | SortOrder
1969
- published?: SortOrder
1970
- authorId?: SortOrder
1971
- }
1972
-
1973
- export type TodoWhereUniqueInput = Prisma.AtLeast<{
1974
- id?: number
1975
- AND?: TodoWhereInput | TodoWhereInput[]
1976
- OR?: TodoWhereInput[]
1977
- NOT?: TodoWhereInput | TodoWhereInput[]
1978
- title?: StringFilter<"Todo"> | string
1979
- content?: StringNullableFilter<"Todo"> | string | null
1980
- published?: BoolFilter<"Todo"> | boolean
1981
- authorId?: IntFilter<"Todo"> | number
1982
- }, "id">
1983
-
1984
- export type TodoOrderByWithAggregationInput = {
1985
- id?: SortOrder
1986
- title?: SortOrder
1987
- content?: SortOrderInput | SortOrder
1988
- published?: SortOrder
1989
- authorId?: SortOrder
1990
- _count?: TodoCountOrderByAggregateInput
1991
- _avg?: TodoAvgOrderByAggregateInput
1992
- _max?: TodoMaxOrderByAggregateInput
1993
- _min?: TodoMinOrderByAggregateInput
1994
- _sum?: TodoSumOrderByAggregateInput
1995
- }
1996
-
1997
- export type TodoScalarWhereWithAggregatesInput = {
1998
- AND?: TodoScalarWhereWithAggregatesInput | TodoScalarWhereWithAggregatesInput[]
1999
- OR?: TodoScalarWhereWithAggregatesInput[]
2000
- NOT?: TodoScalarWhereWithAggregatesInput | TodoScalarWhereWithAggregatesInput[]
2001
- id?: IntWithAggregatesFilter<"Todo"> | number
2002
- title?: StringWithAggregatesFilter<"Todo"> | string
2003
- content?: StringNullableWithAggregatesFilter<"Todo"> | string | null
2004
- published?: BoolWithAggregatesFilter<"Todo"> | boolean
2005
- authorId?: IntWithAggregatesFilter<"Todo"> | number
2006
- }
2007
-
2008
- export type TodoCreateInput = {
2009
- title: string
2010
- content?: string | null
2011
- published?: boolean
2012
- authorId: number
2013
- }
2014
-
2015
- export type TodoUncheckedCreateInput = {
2016
- id?: number
2017
- title: string
2018
- content?: string | null
2019
- published?: boolean
2020
- authorId: number
2021
- }
2022
-
2023
- export type TodoUpdateInput = {
2024
- title?: StringFieldUpdateOperationsInput | string
2025
- content?: NullableStringFieldUpdateOperationsInput | string | null
2026
- published?: BoolFieldUpdateOperationsInput | boolean
2027
- authorId?: IntFieldUpdateOperationsInput | number
2028
- }
2029
-
2030
- export type TodoUncheckedUpdateInput = {
2031
- id?: IntFieldUpdateOperationsInput | number
2032
- title?: StringFieldUpdateOperationsInput | string
2033
- content?: NullableStringFieldUpdateOperationsInput | string | null
2034
- published?: BoolFieldUpdateOperationsInput | boolean
2035
- authorId?: IntFieldUpdateOperationsInput | number
2036
- }
2037
-
2038
- export type TodoCreateManyInput = {
2039
- id?: number
2040
- title: string
2041
- content?: string | null
2042
- published?: boolean
2043
- authorId: number
2044
- }
2045
-
2046
- export type TodoUpdateManyMutationInput = {
2047
- title?: StringFieldUpdateOperationsInput | string
2048
- content?: NullableStringFieldUpdateOperationsInput | string | null
2049
- published?: BoolFieldUpdateOperationsInput | boolean
2050
- authorId?: IntFieldUpdateOperationsInput | number
2051
- }
2052
-
2053
- export type TodoUncheckedUpdateManyInput = {
2054
- id?: IntFieldUpdateOperationsInput | number
2055
- title?: StringFieldUpdateOperationsInput | string
2056
- content?: NullableStringFieldUpdateOperationsInput | string | null
2057
- published?: BoolFieldUpdateOperationsInput | boolean
2058
- authorId?: IntFieldUpdateOperationsInput | number
2059
- }
2060
-
2061
- export type IntFilter<$PrismaModel = never> = {
2062
- equals?: number | IntFieldRefInput<$PrismaModel>
2063
- in?: number[]
2064
- notIn?: number[]
2065
- lt?: number | IntFieldRefInput<$PrismaModel>
2066
- lte?: number | IntFieldRefInput<$PrismaModel>
2067
- gt?: number | IntFieldRefInput<$PrismaModel>
2068
- gte?: number | IntFieldRefInput<$PrismaModel>
2069
- not?: NestedIntFilter<$PrismaModel> | number
2070
- }
2071
-
2072
- export type StringFilter<$PrismaModel = never> = {
2073
- equals?: string | StringFieldRefInput<$PrismaModel>
2074
- in?: string[]
2075
- notIn?: string[]
2076
- lt?: string | StringFieldRefInput<$PrismaModel>
2077
- lte?: string | StringFieldRefInput<$PrismaModel>
2078
- gt?: string | StringFieldRefInput<$PrismaModel>
2079
- gte?: string | StringFieldRefInput<$PrismaModel>
2080
- contains?: string | StringFieldRefInput<$PrismaModel>
2081
- startsWith?: string | StringFieldRefInput<$PrismaModel>
2082
- endsWith?: string | StringFieldRefInput<$PrismaModel>
2083
- not?: NestedStringFilter<$PrismaModel> | string
2084
- }
2085
-
2086
- export type StringNullableFilter<$PrismaModel = never> = {
2087
- equals?: string | StringFieldRefInput<$PrismaModel> | null
2088
- in?: string[] | null
2089
- notIn?: string[] | null
2090
- lt?: string | StringFieldRefInput<$PrismaModel>
2091
- lte?: string | StringFieldRefInput<$PrismaModel>
2092
- gt?: string | StringFieldRefInput<$PrismaModel>
2093
- gte?: string | StringFieldRefInput<$PrismaModel>
2094
- contains?: string | StringFieldRefInput<$PrismaModel>
2095
- startsWith?: string | StringFieldRefInput<$PrismaModel>
2096
- endsWith?: string | StringFieldRefInput<$PrismaModel>
2097
- not?: NestedStringNullableFilter<$PrismaModel> | string | null
2098
- }
2099
-
2100
- export type BoolFilter<$PrismaModel = never> = {
2101
- equals?: boolean | BooleanFieldRefInput<$PrismaModel>
2102
- not?: NestedBoolFilter<$PrismaModel> | boolean
2103
- }
2104
-
2105
- export type SortOrderInput = {
2106
- sort: SortOrder
2107
- nulls?: NullsOrder
2108
- }
2109
-
2110
- export type TodoCountOrderByAggregateInput = {
2111
- id?: SortOrder
2112
- title?: SortOrder
2113
- content?: SortOrder
2114
- published?: SortOrder
2115
- authorId?: SortOrder
2116
- }
2117
-
2118
- export type TodoAvgOrderByAggregateInput = {
2119
- id?: SortOrder
2120
- authorId?: SortOrder
2121
- }
2122
-
2123
- export type TodoMaxOrderByAggregateInput = {
2124
- id?: SortOrder
2125
- title?: SortOrder
2126
- content?: SortOrder
2127
- published?: SortOrder
2128
- authorId?: SortOrder
2129
- }
2130
-
2131
- export type TodoMinOrderByAggregateInput = {
2132
- id?: SortOrder
2133
- title?: SortOrder
2134
- content?: SortOrder
2135
- published?: SortOrder
2136
- authorId?: SortOrder
2137
- }
2138
-
2139
- export type TodoSumOrderByAggregateInput = {
2140
- id?: SortOrder
2141
- authorId?: SortOrder
2142
- }
2143
-
2144
- export type IntWithAggregatesFilter<$PrismaModel = never> = {
2145
- equals?: number | IntFieldRefInput<$PrismaModel>
2146
- in?: number[]
2147
- notIn?: number[]
2148
- lt?: number | IntFieldRefInput<$PrismaModel>
2149
- lte?: number | IntFieldRefInput<$PrismaModel>
2150
- gt?: number | IntFieldRefInput<$PrismaModel>
2151
- gte?: number | IntFieldRefInput<$PrismaModel>
2152
- not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
2153
- _count?: NestedIntFilter<$PrismaModel>
2154
- _avg?: NestedFloatFilter<$PrismaModel>
2155
- _sum?: NestedIntFilter<$PrismaModel>
2156
- _min?: NestedIntFilter<$PrismaModel>
2157
- _max?: NestedIntFilter<$PrismaModel>
2158
- }
2159
-
2160
- export type StringWithAggregatesFilter<$PrismaModel = never> = {
2161
- equals?: string | StringFieldRefInput<$PrismaModel>
2162
- in?: string[]
2163
- notIn?: string[]
2164
- lt?: string | StringFieldRefInput<$PrismaModel>
2165
- lte?: string | StringFieldRefInput<$PrismaModel>
2166
- gt?: string | StringFieldRefInput<$PrismaModel>
2167
- gte?: string | StringFieldRefInput<$PrismaModel>
2168
- contains?: string | StringFieldRefInput<$PrismaModel>
2169
- startsWith?: string | StringFieldRefInput<$PrismaModel>
2170
- endsWith?: string | StringFieldRefInput<$PrismaModel>
2171
- not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
2172
- _count?: NestedIntFilter<$PrismaModel>
2173
- _min?: NestedStringFilter<$PrismaModel>
2174
- _max?: NestedStringFilter<$PrismaModel>
2175
- }
2176
-
2177
- export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
2178
- equals?: string | StringFieldRefInput<$PrismaModel> | null
2179
- in?: string[] | null
2180
- notIn?: string[] | null
2181
- lt?: string | StringFieldRefInput<$PrismaModel>
2182
- lte?: string | StringFieldRefInput<$PrismaModel>
2183
- gt?: string | StringFieldRefInput<$PrismaModel>
2184
- gte?: string | StringFieldRefInput<$PrismaModel>
2185
- contains?: string | StringFieldRefInput<$PrismaModel>
2186
- startsWith?: string | StringFieldRefInput<$PrismaModel>
2187
- endsWith?: string | StringFieldRefInput<$PrismaModel>
2188
- not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
2189
- _count?: NestedIntNullableFilter<$PrismaModel>
2190
- _min?: NestedStringNullableFilter<$PrismaModel>
2191
- _max?: NestedStringNullableFilter<$PrismaModel>
2192
- }
2193
-
2194
- export type BoolWithAggregatesFilter<$PrismaModel = never> = {
2195
- equals?: boolean | BooleanFieldRefInput<$PrismaModel>
2196
- not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
2197
- _count?: NestedIntFilter<$PrismaModel>
2198
- _min?: NestedBoolFilter<$PrismaModel>
2199
- _max?: NestedBoolFilter<$PrismaModel>
2200
- }
2201
-
2202
- export type StringFieldUpdateOperationsInput = {
2203
- set?: string
2204
- }
2205
-
2206
- export type NullableStringFieldUpdateOperationsInput = {
2207
- set?: string | null
2208
- }
2209
-
2210
- export type BoolFieldUpdateOperationsInput = {
2211
- set?: boolean
2212
- }
2213
-
2214
- export type IntFieldUpdateOperationsInput = {
2215
- set?: number
2216
- increment?: number
2217
- decrement?: number
2218
- multiply?: number
2219
- divide?: number
2220
- }
2221
-
2222
- export type NestedIntFilter<$PrismaModel = never> = {
2223
- equals?: number | IntFieldRefInput<$PrismaModel>
2224
- in?: number[]
2225
- notIn?: number[]
2226
- lt?: number | IntFieldRefInput<$PrismaModel>
2227
- lte?: number | IntFieldRefInput<$PrismaModel>
2228
- gt?: number | IntFieldRefInput<$PrismaModel>
2229
- gte?: number | IntFieldRefInput<$PrismaModel>
2230
- not?: NestedIntFilter<$PrismaModel> | number
2231
- }
2232
-
2233
- export type NestedStringFilter<$PrismaModel = never> = {
2234
- equals?: string | StringFieldRefInput<$PrismaModel>
2235
- in?: string[]
2236
- notIn?: string[]
2237
- lt?: string | StringFieldRefInput<$PrismaModel>
2238
- lte?: string | StringFieldRefInput<$PrismaModel>
2239
- gt?: string | StringFieldRefInput<$PrismaModel>
2240
- gte?: string | StringFieldRefInput<$PrismaModel>
2241
- contains?: string | StringFieldRefInput<$PrismaModel>
2242
- startsWith?: string | StringFieldRefInput<$PrismaModel>
2243
- endsWith?: string | StringFieldRefInput<$PrismaModel>
2244
- not?: NestedStringFilter<$PrismaModel> | string
2245
- }
2246
-
2247
- export type NestedStringNullableFilter<$PrismaModel = never> = {
2248
- equals?: string | StringFieldRefInput<$PrismaModel> | null
2249
- in?: string[] | null
2250
- notIn?: string[] | null
2251
- lt?: string | StringFieldRefInput<$PrismaModel>
2252
- lte?: string | StringFieldRefInput<$PrismaModel>
2253
- gt?: string | StringFieldRefInput<$PrismaModel>
2254
- gte?: string | StringFieldRefInput<$PrismaModel>
2255
- contains?: string | StringFieldRefInput<$PrismaModel>
2256
- startsWith?: string | StringFieldRefInput<$PrismaModel>
2257
- endsWith?: string | StringFieldRefInput<$PrismaModel>
2258
- not?: NestedStringNullableFilter<$PrismaModel> | string | null
2259
- }
2260
-
2261
- export type NestedBoolFilter<$PrismaModel = never> = {
2262
- equals?: boolean | BooleanFieldRefInput<$PrismaModel>
2263
- not?: NestedBoolFilter<$PrismaModel> | boolean
2264
- }
2265
-
2266
- export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
2267
- equals?: number | IntFieldRefInput<$PrismaModel>
2268
- in?: number[]
2269
- notIn?: number[]
2270
- lt?: number | IntFieldRefInput<$PrismaModel>
2271
- lte?: number | IntFieldRefInput<$PrismaModel>
2272
- gt?: number | IntFieldRefInput<$PrismaModel>
2273
- gte?: number | IntFieldRefInput<$PrismaModel>
2274
- not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
2275
- _count?: NestedIntFilter<$PrismaModel>
2276
- _avg?: NestedFloatFilter<$PrismaModel>
2277
- _sum?: NestedIntFilter<$PrismaModel>
2278
- _min?: NestedIntFilter<$PrismaModel>
2279
- _max?: NestedIntFilter<$PrismaModel>
2280
- }
2281
-
2282
- export type NestedFloatFilter<$PrismaModel = never> = {
2283
- equals?: number | FloatFieldRefInput<$PrismaModel>
2284
- in?: number[]
2285
- notIn?: number[]
2286
- lt?: number | FloatFieldRefInput<$PrismaModel>
2287
- lte?: number | FloatFieldRefInput<$PrismaModel>
2288
- gt?: number | FloatFieldRefInput<$PrismaModel>
2289
- gte?: number | FloatFieldRefInput<$PrismaModel>
2290
- not?: NestedFloatFilter<$PrismaModel> | number
2291
- }
2292
-
2293
- export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
2294
- equals?: string | StringFieldRefInput<$PrismaModel>
2295
- in?: string[]
2296
- notIn?: string[]
2297
- lt?: string | StringFieldRefInput<$PrismaModel>
2298
- lte?: string | StringFieldRefInput<$PrismaModel>
2299
- gt?: string | StringFieldRefInput<$PrismaModel>
2300
- gte?: string | StringFieldRefInput<$PrismaModel>
2301
- contains?: string | StringFieldRefInput<$PrismaModel>
2302
- startsWith?: string | StringFieldRefInput<$PrismaModel>
2303
- endsWith?: string | StringFieldRefInput<$PrismaModel>
2304
- not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
2305
- _count?: NestedIntFilter<$PrismaModel>
2306
- _min?: NestedStringFilter<$PrismaModel>
2307
- _max?: NestedStringFilter<$PrismaModel>
2308
- }
2309
-
2310
- export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
2311
- equals?: string | StringFieldRefInput<$PrismaModel> | null
2312
- in?: string[] | null
2313
- notIn?: string[] | null
2314
- lt?: string | StringFieldRefInput<$PrismaModel>
2315
- lte?: string | StringFieldRefInput<$PrismaModel>
2316
- gt?: string | StringFieldRefInput<$PrismaModel>
2317
- gte?: string | StringFieldRefInput<$PrismaModel>
2318
- contains?: string | StringFieldRefInput<$PrismaModel>
2319
- startsWith?: string | StringFieldRefInput<$PrismaModel>
2320
- endsWith?: string | StringFieldRefInput<$PrismaModel>
2321
- not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
2322
- _count?: NestedIntNullableFilter<$PrismaModel>
2323
- _min?: NestedStringNullableFilter<$PrismaModel>
2324
- _max?: NestedStringNullableFilter<$PrismaModel>
2325
- }
2326
-
2327
- export type NestedIntNullableFilter<$PrismaModel = never> = {
2328
- equals?: number | IntFieldRefInput<$PrismaModel> | null
2329
- in?: number[] | null
2330
- notIn?: number[] | null
2331
- lt?: number | IntFieldRefInput<$PrismaModel>
2332
- lte?: number | IntFieldRefInput<$PrismaModel>
2333
- gt?: number | IntFieldRefInput<$PrismaModel>
2334
- gte?: number | IntFieldRefInput<$PrismaModel>
2335
- not?: NestedIntNullableFilter<$PrismaModel> | number | null
2336
- }
2337
-
2338
- export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
2339
- equals?: boolean | BooleanFieldRefInput<$PrismaModel>
2340
- not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
2341
- _count?: NestedIntFilter<$PrismaModel>
2342
- _min?: NestedBoolFilter<$PrismaModel>
2343
- _max?: NestedBoolFilter<$PrismaModel>
2344
- }
2345
-
2346
-
2347
-
2348
- /**
2349
- * Batch Payload for updateMany & deleteMany & createMany
2350
- */
2351
-
2352
- export type BatchPayload = {
2353
- count: number
2354
- }
2355
-
2356
- /**
2357
- * DMMF
2358
- */
2359
- export const dmmf: runtime.BaseDMMF
2360
- }