@effectify/prisma 0.1.2 → 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.
- package/dist/src/cli.d.ts +1 -1
- package/dist/src/cli.js +9 -9
- package/dist/src/commands/init.d.ts +1 -1
- package/dist/src/commands/init.js +0 -2
- package/dist/src/commands/prisma.d.ts +5 -0
- package/dist/src/commands/prisma.js +35 -0
- package/dist/src/generators/sql-schema-generator.d.ts +9 -0
- package/dist/src/generators/sql-schema-generator.js +50 -58
- package/dist/src/services/generator-context.d.ts +6 -0
- package/dist/src/services/generator-context.js +3 -0
- package/dist/src/services/generator-service.d.ts +14 -0
- package/dist/src/services/generator-service.js +121 -0
- package/dist/src/services/render-service.d.ts +10 -0
- package/dist/src/services/render-service.js +23 -0
- package/dist/src/templates/model.eta +8 -0
- package/package.json +15 -11
- package/dist/src/commands/generate-effect.d.ts +0 -2
- package/dist/src/commands/generate-effect.js +0 -73
- package/dist/src/commands/generate-sql-schema.d.ts +0 -2
- package/dist/src/commands/generate-sql-schema.js +0 -72
- package/dist/src/effect-prisma.d.ts +0 -2
- package/dist/src/effect-prisma.js +0 -1771
- package/dist/src/generators/prisma-effect-generator.d.ts +0 -1
- package/dist/src/generators/prisma-effect-generator.js +0 -446
- package/prisma/dev.db +0 -0
- package/prisma/generated/client.d.ts +0 -1
- package/prisma/generated/client.js +0 -5
- package/prisma/generated/default.d.ts +0 -1
- package/prisma/generated/default.js +0 -5
- package/prisma/generated/edge.d.ts +0 -1
- package/prisma/generated/edge.js +0 -141
- package/prisma/generated/effect/index.ts +0 -392
- package/prisma/generated/effect/models/Todo.ts +0 -6
- package/prisma/generated/effect/prisma-repository.ts +0 -954
- package/prisma/generated/effect/prisma-schema.ts +0 -94
- package/prisma/generated/effect/schemas/enums.ts +0 -6
- package/prisma/generated/effect/schemas/index.ts +0 -2
- package/prisma/generated/effect/schemas/types.ts +0 -40
- package/prisma/generated/index-browser.js +0 -172
- package/prisma/generated/index.d.ts +0 -2376
- package/prisma/generated/index.js +0 -141
- package/prisma/generated/package.json +0 -144
- package/prisma/generated/query_compiler_bg.js +0 -2
- package/prisma/generated/query_compiler_bg.wasm +0 -0
- package/prisma/generated/query_compiler_bg.wasm-base64.js +0 -2
- package/prisma/generated/runtime/client.d.ts +0 -3180
- package/prisma/generated/runtime/client.js +0 -86
- package/prisma/generated/runtime/index-browser.d.ts +0 -87
- package/prisma/generated/runtime/index-browser.js +0 -6
- package/prisma/generated/runtime/wasm-compiler-edge.js +0 -76
- package/prisma/generated/schema.prisma +0 -31
- package/prisma/generated/wasm-edge-light-loader.mjs +0 -5
- package/prisma/generated/wasm-worker-loader.mjs +0 -5
- package/prisma/migrations/20250721164420_init/migration.sql +0 -9
- package/prisma/migrations/20250721191716_dumb/migration.sql +0 -49
- package/prisma/migrations/migration_lock.toml +0 -3
- package/prisma/schema.prisma +0 -31
- package/prisma.config.ts +0 -8
- package/project.json +0 -48
- package/scripts/cleanup-tests.ts +0 -26
- package/scripts/generate-test-files.ts +0 -93
- package/setup-tests.ts +0 -10
- package/src/cli.ts +0 -22
- package/src/commands/init.ts +0 -153
- package/src/commands/prisma.ts +0 -50
- package/src/generators/sql-schema-generator.ts +0 -66
- package/src/services/generator-context.ts +0 -4
- package/src/services/generator-service.ts +0 -178
- package/src/services/render-service.ts +0 -32
- package/src/templates/model.eta +0 -6
- package/test/prisma-model.test.ts +0 -340
- package/test/utils.ts +0 -10
- package/tsconfig.json +0 -20
- package/tsconfig.lib.json +0 -24
- package/tsconfig.spec.json +0 -15
- package/vitest.config.ts +0 -24
- /package/{src → dist/src}/templates/index-custom-error.eta +0 -0
- /package/{src → dist/src}/templates/index-default.eta +0 -0
- /package/{src → dist/src}/templates/prisma-raw-sql.eta +0 -0
- /package/{src → dist/src}/templates/prisma-repository.eta +0 -0
- /package/{src → dist/src}/templates/prisma-schema.eta +0 -0
|
@@ -1,2376 +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://pris.ly/d/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://pris.ly/d/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://pris.ly/d/raw-queries).
|
|
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://pris.ly/d/raw-queries).
|
|
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://pris.ly/d/raw-queries).
|
|
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://pris.ly/d/raw-queries).
|
|
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.2.0
|
|
199
|
-
* Query Engine version: 0c8ef2ce45c83248ab3df073180d5eda9e8be7a3
|
|
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://pris.ly/d/logging).
|
|
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
|
-
* SQL commenter plugins that add metadata to SQL queries as comments.
|
|
768
|
-
* Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/
|
|
769
|
-
*
|
|
770
|
-
* @example
|
|
771
|
-
* ```
|
|
772
|
-
* const prisma = new PrismaClient({
|
|
773
|
-
* adapter,
|
|
774
|
-
* comments: [
|
|
775
|
-
* traceContext(),
|
|
776
|
-
* queryInsights(),
|
|
777
|
-
* ],
|
|
778
|
-
* })
|
|
779
|
-
* ```
|
|
780
|
-
*/
|
|
781
|
-
comments?: runtime.SqlCommenterPlugin[]
|
|
782
|
-
}
|
|
783
|
-
export type GlobalOmitConfig = {
|
|
784
|
-
todo?: TodoOmit
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
/* Types for Logging */
|
|
788
|
-
export type LogLevel = 'info' | 'query' | 'warn' | 'error'
|
|
789
|
-
export type LogDefinition = {
|
|
790
|
-
level: LogLevel
|
|
791
|
-
emit: 'stdout' | 'event'
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
|
|
795
|
-
|
|
796
|
-
export type GetLogType<T> = CheckIsLogLevel<
|
|
797
|
-
T extends LogDefinition ? T['level'] : T
|
|
798
|
-
>;
|
|
799
|
-
|
|
800
|
-
export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
|
|
801
|
-
? GetLogType<T[number]>
|
|
802
|
-
: never;
|
|
803
|
-
|
|
804
|
-
export type QueryEvent = {
|
|
805
|
-
timestamp: Date
|
|
806
|
-
query: string
|
|
807
|
-
params: string
|
|
808
|
-
duration: number
|
|
809
|
-
target: string
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
export type LogEvent = {
|
|
813
|
-
timestamp: Date
|
|
814
|
-
message: string
|
|
815
|
-
target: string
|
|
816
|
-
}
|
|
817
|
-
/* End Types for Logging */
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
export type PrismaAction =
|
|
821
|
-
| 'findUnique'
|
|
822
|
-
| 'findUniqueOrThrow'
|
|
823
|
-
| 'findMany'
|
|
824
|
-
| 'findFirst'
|
|
825
|
-
| 'findFirstOrThrow'
|
|
826
|
-
| 'create'
|
|
827
|
-
| 'createMany'
|
|
828
|
-
| 'createManyAndReturn'
|
|
829
|
-
| 'update'
|
|
830
|
-
| 'updateMany'
|
|
831
|
-
| 'updateManyAndReturn'
|
|
832
|
-
| 'upsert'
|
|
833
|
-
| 'delete'
|
|
834
|
-
| 'deleteMany'
|
|
835
|
-
| 'executeRaw'
|
|
836
|
-
| 'queryRaw'
|
|
837
|
-
| 'aggregate'
|
|
838
|
-
| 'count'
|
|
839
|
-
| 'runCommandRaw'
|
|
840
|
-
| 'findRaw'
|
|
841
|
-
| 'groupBy'
|
|
842
|
-
|
|
843
|
-
// tested in getLogLevel.test.ts
|
|
844
|
-
export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
|
|
845
|
-
|
|
846
|
-
/**
|
|
847
|
-
* `PrismaClient` proxy available in interactive transactions.
|
|
848
|
-
*/
|
|
849
|
-
export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
|
|
850
|
-
|
|
851
|
-
export type Datasource = {
|
|
852
|
-
url?: string
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
/**
|
|
856
|
-
* Count Types
|
|
857
|
-
*/
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
/**
|
|
862
|
-
* Models
|
|
863
|
-
*/
|
|
864
|
-
|
|
865
|
-
/**
|
|
866
|
-
* Model Todo
|
|
867
|
-
*/
|
|
868
|
-
|
|
869
|
-
export type AggregateTodo = {
|
|
870
|
-
_count: TodoCountAggregateOutputType | null
|
|
871
|
-
_avg: TodoAvgAggregateOutputType | null
|
|
872
|
-
_sum: TodoSumAggregateOutputType | null
|
|
873
|
-
_min: TodoMinAggregateOutputType | null
|
|
874
|
-
_max: TodoMaxAggregateOutputType | null
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
export type TodoAvgAggregateOutputType = {
|
|
878
|
-
id: number | null
|
|
879
|
-
authorId: number | null
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
export type TodoSumAggregateOutputType = {
|
|
883
|
-
id: number | null
|
|
884
|
-
authorId: number | null
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
export type TodoMinAggregateOutputType = {
|
|
888
|
-
id: number | null
|
|
889
|
-
title: string | null
|
|
890
|
-
content: string | null
|
|
891
|
-
published: boolean | null
|
|
892
|
-
authorId: number | null
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
export type TodoMaxAggregateOutputType = {
|
|
896
|
-
id: number | null
|
|
897
|
-
title: string | null
|
|
898
|
-
content: string | null
|
|
899
|
-
published: boolean | null
|
|
900
|
-
authorId: number | null
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
export type TodoCountAggregateOutputType = {
|
|
904
|
-
id: number
|
|
905
|
-
title: number
|
|
906
|
-
content: number
|
|
907
|
-
published: number
|
|
908
|
-
authorId: number
|
|
909
|
-
_all: number
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
export type TodoAvgAggregateInputType = {
|
|
914
|
-
id?: true
|
|
915
|
-
authorId?: true
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
export type TodoSumAggregateInputType = {
|
|
919
|
-
id?: true
|
|
920
|
-
authorId?: true
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
export type TodoMinAggregateInputType = {
|
|
924
|
-
id?: true
|
|
925
|
-
title?: true
|
|
926
|
-
content?: true
|
|
927
|
-
published?: true
|
|
928
|
-
authorId?: true
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
export type TodoMaxAggregateInputType = {
|
|
932
|
-
id?: true
|
|
933
|
-
title?: true
|
|
934
|
-
content?: true
|
|
935
|
-
published?: true
|
|
936
|
-
authorId?: true
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
export type TodoCountAggregateInputType = {
|
|
940
|
-
id?: true
|
|
941
|
-
title?: true
|
|
942
|
-
content?: true
|
|
943
|
-
published?: true
|
|
944
|
-
authorId?: true
|
|
945
|
-
_all?: true
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
export type TodoAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
949
|
-
/**
|
|
950
|
-
* Filter which Todo to aggregate.
|
|
951
|
-
*/
|
|
952
|
-
where?: TodoWhereInput
|
|
953
|
-
/**
|
|
954
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
955
|
-
*
|
|
956
|
-
* Determine the order of Todos to fetch.
|
|
957
|
-
*/
|
|
958
|
-
orderBy?: TodoOrderByWithRelationInput | TodoOrderByWithRelationInput[]
|
|
959
|
-
/**
|
|
960
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
961
|
-
*
|
|
962
|
-
* Sets the start position
|
|
963
|
-
*/
|
|
964
|
-
cursor?: TodoWhereUniqueInput
|
|
965
|
-
/**
|
|
966
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
967
|
-
*
|
|
968
|
-
* Take `±n` Todos from the position of the cursor.
|
|
969
|
-
*/
|
|
970
|
-
take?: number
|
|
971
|
-
/**
|
|
972
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
973
|
-
*
|
|
974
|
-
* Skip the first `n` Todos.
|
|
975
|
-
*/
|
|
976
|
-
skip?: number
|
|
977
|
-
/**
|
|
978
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
979
|
-
*
|
|
980
|
-
* Count returned Todos
|
|
981
|
-
**/
|
|
982
|
-
_count?: true | TodoCountAggregateInputType
|
|
983
|
-
/**
|
|
984
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
985
|
-
*
|
|
986
|
-
* Select which fields to average
|
|
987
|
-
**/
|
|
988
|
-
_avg?: TodoAvgAggregateInputType
|
|
989
|
-
/**
|
|
990
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
991
|
-
*
|
|
992
|
-
* Select which fields to sum
|
|
993
|
-
**/
|
|
994
|
-
_sum?: TodoSumAggregateInputType
|
|
995
|
-
/**
|
|
996
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
997
|
-
*
|
|
998
|
-
* Select which fields to find the minimum value
|
|
999
|
-
**/
|
|
1000
|
-
_min?: TodoMinAggregateInputType
|
|
1001
|
-
/**
|
|
1002
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
1003
|
-
*
|
|
1004
|
-
* Select which fields to find the maximum value
|
|
1005
|
-
**/
|
|
1006
|
-
_max?: TodoMaxAggregateInputType
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
export type GetTodoAggregateType<T extends TodoAggregateArgs> = {
|
|
1010
|
-
[P in keyof T & keyof AggregateTodo]: P extends '_count' | 'count'
|
|
1011
|
-
? T[P] extends true
|
|
1012
|
-
? number
|
|
1013
|
-
: GetScalarType<T[P], AggregateTodo[P]>
|
|
1014
|
-
: GetScalarType<T[P], AggregateTodo[P]>
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
export type TodoGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1021
|
-
where?: TodoWhereInput
|
|
1022
|
-
orderBy?: TodoOrderByWithAggregationInput | TodoOrderByWithAggregationInput[]
|
|
1023
|
-
by: TodoScalarFieldEnum[] | TodoScalarFieldEnum
|
|
1024
|
-
having?: TodoScalarWhereWithAggregatesInput
|
|
1025
|
-
take?: number
|
|
1026
|
-
skip?: number
|
|
1027
|
-
_count?: TodoCountAggregateInputType | true
|
|
1028
|
-
_avg?: TodoAvgAggregateInputType
|
|
1029
|
-
_sum?: TodoSumAggregateInputType
|
|
1030
|
-
_min?: TodoMinAggregateInputType
|
|
1031
|
-
_max?: TodoMaxAggregateInputType
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
export type TodoGroupByOutputType = {
|
|
1035
|
-
id: number
|
|
1036
|
-
title: string
|
|
1037
|
-
content: string | null
|
|
1038
|
-
published: boolean
|
|
1039
|
-
authorId: number
|
|
1040
|
-
_count: TodoCountAggregateOutputType | null
|
|
1041
|
-
_avg: TodoAvgAggregateOutputType | null
|
|
1042
|
-
_sum: TodoSumAggregateOutputType | null
|
|
1043
|
-
_min: TodoMinAggregateOutputType | null
|
|
1044
|
-
_max: TodoMaxAggregateOutputType | null
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
type GetTodoGroupByPayload<T extends TodoGroupByArgs> = Prisma.PrismaPromise<
|
|
1048
|
-
Array<
|
|
1049
|
-
PickEnumerable<TodoGroupByOutputType, T['by']> &
|
|
1050
|
-
{
|
|
1051
|
-
[P in ((keyof T) & (keyof TodoGroupByOutputType))]: P extends '_count'
|
|
1052
|
-
? T[P] extends boolean
|
|
1053
|
-
? number
|
|
1054
|
-
: GetScalarType<T[P], TodoGroupByOutputType[P]>
|
|
1055
|
-
: GetScalarType<T[P], TodoGroupByOutputType[P]>
|
|
1056
|
-
}
|
|
1057
|
-
>
|
|
1058
|
-
>
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
export type TodoSelect<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 TodoSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
1070
|
-
id?: boolean
|
|
1071
|
-
title?: boolean
|
|
1072
|
-
content?: boolean
|
|
1073
|
-
published?: boolean
|
|
1074
|
-
authorId?: boolean
|
|
1075
|
-
}, ExtArgs["result"]["todo"]>
|
|
1076
|
-
|
|
1077
|
-
export type TodoSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
1078
|
-
id?: boolean
|
|
1079
|
-
title?: boolean
|
|
1080
|
-
content?: boolean
|
|
1081
|
-
published?: boolean
|
|
1082
|
-
authorId?: boolean
|
|
1083
|
-
}, ExtArgs["result"]["todo"]>
|
|
1084
|
-
|
|
1085
|
-
export type TodoSelectScalar = {
|
|
1086
|
-
id?: boolean
|
|
1087
|
-
title?: boolean
|
|
1088
|
-
content?: boolean
|
|
1089
|
-
published?: boolean
|
|
1090
|
-
authorId?: boolean
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
export type TodoOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "title" | "content" | "published" | "authorId", ExtArgs["result"]["todo"]>
|
|
1094
|
-
|
|
1095
|
-
export type $TodoPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1096
|
-
name: "Todo"
|
|
1097
|
-
objects: {}
|
|
1098
|
-
scalars: $Extensions.GetPayloadResult<{
|
|
1099
|
-
id: number
|
|
1100
|
-
title: string
|
|
1101
|
-
content: string | null
|
|
1102
|
-
published: boolean
|
|
1103
|
-
authorId: number
|
|
1104
|
-
}, ExtArgs["result"]["todo"]>
|
|
1105
|
-
composites: {}
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
type TodoGetPayload<S extends boolean | null | undefined | TodoDefaultArgs> = $Result.GetResult<Prisma.$TodoPayload, S>
|
|
1109
|
-
|
|
1110
|
-
type TodoCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
1111
|
-
Omit<TodoFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
1112
|
-
select?: TodoCountAggregateInputType | true
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
export interface TodoDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
1116
|
-
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Todo'], meta: { name: 'Todo' } }
|
|
1117
|
-
/**
|
|
1118
|
-
* Find zero or one Todo that matches the filter.
|
|
1119
|
-
* @param {TodoFindUniqueArgs} args - Arguments to find a Todo
|
|
1120
|
-
* @example
|
|
1121
|
-
* // Get one Todo
|
|
1122
|
-
* const todo = await prisma.todo.findUnique({
|
|
1123
|
-
* where: {
|
|
1124
|
-
* // ... provide filter here
|
|
1125
|
-
* }
|
|
1126
|
-
* })
|
|
1127
|
-
*/
|
|
1128
|
-
findUnique<T extends TodoFindUniqueArgs>(args: SelectSubset<T, TodoFindUniqueArgs<ExtArgs>>): Prisma__TodoClient<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1129
|
-
|
|
1130
|
-
/**
|
|
1131
|
-
* Find one Todo that matches the filter or throw an error with `error.code='P2025'`
|
|
1132
|
-
* if no matches were found.
|
|
1133
|
-
* @param {TodoFindUniqueOrThrowArgs} args - Arguments to find a Todo
|
|
1134
|
-
* @example
|
|
1135
|
-
* // Get one Todo
|
|
1136
|
-
* const todo = await prisma.todo.findUniqueOrThrow({
|
|
1137
|
-
* where: {
|
|
1138
|
-
* // ... provide filter here
|
|
1139
|
-
* }
|
|
1140
|
-
* })
|
|
1141
|
-
*/
|
|
1142
|
-
findUniqueOrThrow<T extends TodoFindUniqueOrThrowArgs>(args: SelectSubset<T, TodoFindUniqueOrThrowArgs<ExtArgs>>): Prisma__TodoClient<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1143
|
-
|
|
1144
|
-
/**
|
|
1145
|
-
* Find the first Todo that matches the filter.
|
|
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 {TodoFindFirstArgs} args - Arguments to find a Todo
|
|
1149
|
-
* @example
|
|
1150
|
-
* // Get one Todo
|
|
1151
|
-
* const todo = await prisma.todo.findFirst({
|
|
1152
|
-
* where: {
|
|
1153
|
-
* // ... provide filter here
|
|
1154
|
-
* }
|
|
1155
|
-
* })
|
|
1156
|
-
*/
|
|
1157
|
-
findFirst<T extends TodoFindFirstArgs>(args?: SelectSubset<T, TodoFindFirstArgs<ExtArgs>>): Prisma__TodoClient<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1158
|
-
|
|
1159
|
-
/**
|
|
1160
|
-
* Find the first Todo that matches the filter or
|
|
1161
|
-
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
1162
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1163
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1164
|
-
* @param {TodoFindFirstOrThrowArgs} args - Arguments to find a Todo
|
|
1165
|
-
* @example
|
|
1166
|
-
* // Get one Todo
|
|
1167
|
-
* const todo = await prisma.todo.findFirstOrThrow({
|
|
1168
|
-
* where: {
|
|
1169
|
-
* // ... provide filter here
|
|
1170
|
-
* }
|
|
1171
|
-
* })
|
|
1172
|
-
*/
|
|
1173
|
-
findFirstOrThrow<T extends TodoFindFirstOrThrowArgs>(args?: SelectSubset<T, TodoFindFirstOrThrowArgs<ExtArgs>>): Prisma__TodoClient<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1174
|
-
|
|
1175
|
-
/**
|
|
1176
|
-
* Find zero or more Todos that matches the filter.
|
|
1177
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1178
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1179
|
-
* @param {TodoFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1180
|
-
* @example
|
|
1181
|
-
* // Get all Todos
|
|
1182
|
-
* const todos = await prisma.todo.findMany()
|
|
1183
|
-
*
|
|
1184
|
-
* // Get first 10 Todos
|
|
1185
|
-
* const todos = await prisma.todo.findMany({ take: 10 })
|
|
1186
|
-
*
|
|
1187
|
-
* // Only select the `id`
|
|
1188
|
-
* const todoWithIdOnly = await prisma.todo.findMany({ select: { id: true } })
|
|
1189
|
-
*
|
|
1190
|
-
*/
|
|
1191
|
-
findMany<T extends TodoFindManyArgs>(args?: SelectSubset<T, TodoFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
1192
|
-
|
|
1193
|
-
/**
|
|
1194
|
-
* Create a Todo.
|
|
1195
|
-
* @param {TodoCreateArgs} args - Arguments to create a Todo.
|
|
1196
|
-
* @example
|
|
1197
|
-
* // Create one Todo
|
|
1198
|
-
* const Todo = await prisma.todo.create({
|
|
1199
|
-
* data: {
|
|
1200
|
-
* // ... data to create a Todo
|
|
1201
|
-
* }
|
|
1202
|
-
* })
|
|
1203
|
-
*
|
|
1204
|
-
*/
|
|
1205
|
-
create<T extends TodoCreateArgs>(args: SelectSubset<T, TodoCreateArgs<ExtArgs>>): Prisma__TodoClient<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1206
|
-
|
|
1207
|
-
/**
|
|
1208
|
-
* Create many Todos.
|
|
1209
|
-
* @param {TodoCreateManyArgs} args - Arguments to create many Todos.
|
|
1210
|
-
* @example
|
|
1211
|
-
* // Create many Todos
|
|
1212
|
-
* const todo = await prisma.todo.createMany({
|
|
1213
|
-
* data: [
|
|
1214
|
-
* // ... provide data here
|
|
1215
|
-
* ]
|
|
1216
|
-
* })
|
|
1217
|
-
*
|
|
1218
|
-
*/
|
|
1219
|
-
createMany<T extends TodoCreateManyArgs>(args?: SelectSubset<T, TodoCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
1220
|
-
|
|
1221
|
-
/**
|
|
1222
|
-
* Create many Todos and returns the data saved in the database.
|
|
1223
|
-
* @param {TodoCreateManyAndReturnArgs} args - Arguments to create many Todos.
|
|
1224
|
-
* @example
|
|
1225
|
-
* // Create many Todos
|
|
1226
|
-
* const todo = await prisma.todo.createManyAndReturn({
|
|
1227
|
-
* data: [
|
|
1228
|
-
* // ... provide data here
|
|
1229
|
-
* ]
|
|
1230
|
-
* })
|
|
1231
|
-
*
|
|
1232
|
-
* // Create many Todos and only return the `id`
|
|
1233
|
-
* const todoWithIdOnly = await prisma.todo.createManyAndReturn({
|
|
1234
|
-
* select: { id: true },
|
|
1235
|
-
* data: [
|
|
1236
|
-
* // ... provide data here
|
|
1237
|
-
* ]
|
|
1238
|
-
* })
|
|
1239
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1240
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1241
|
-
*
|
|
1242
|
-
*/
|
|
1243
|
-
createManyAndReturn<T extends TodoCreateManyAndReturnArgs>(args?: SelectSubset<T, TodoCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
1244
|
-
|
|
1245
|
-
/**
|
|
1246
|
-
* Delete a Todo.
|
|
1247
|
-
* @param {TodoDeleteArgs} args - Arguments to delete one Todo.
|
|
1248
|
-
* @example
|
|
1249
|
-
* // Delete one Todo
|
|
1250
|
-
* const Todo = await prisma.todo.delete({
|
|
1251
|
-
* where: {
|
|
1252
|
-
* // ... filter to delete one Todo
|
|
1253
|
-
* }
|
|
1254
|
-
* })
|
|
1255
|
-
*
|
|
1256
|
-
*/
|
|
1257
|
-
delete<T extends TodoDeleteArgs>(args: SelectSubset<T, TodoDeleteArgs<ExtArgs>>): Prisma__TodoClient<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1258
|
-
|
|
1259
|
-
/**
|
|
1260
|
-
* Update one Todo.
|
|
1261
|
-
* @param {TodoUpdateArgs} args - Arguments to update one Todo.
|
|
1262
|
-
* @example
|
|
1263
|
-
* // Update one Todo
|
|
1264
|
-
* const todo = await prisma.todo.update({
|
|
1265
|
-
* where: {
|
|
1266
|
-
* // ... provide filter here
|
|
1267
|
-
* },
|
|
1268
|
-
* data: {
|
|
1269
|
-
* // ... provide data here
|
|
1270
|
-
* }
|
|
1271
|
-
* })
|
|
1272
|
-
*
|
|
1273
|
-
*/
|
|
1274
|
-
update<T extends TodoUpdateArgs>(args: SelectSubset<T, TodoUpdateArgs<ExtArgs>>): Prisma__TodoClient<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1275
|
-
|
|
1276
|
-
/**
|
|
1277
|
-
* Delete zero or more Todos.
|
|
1278
|
-
* @param {TodoDeleteManyArgs} args - Arguments to filter Todos to delete.
|
|
1279
|
-
* @example
|
|
1280
|
-
* // Delete a few Todos
|
|
1281
|
-
* const { count } = await prisma.todo.deleteMany({
|
|
1282
|
-
* where: {
|
|
1283
|
-
* // ... provide filter here
|
|
1284
|
-
* }
|
|
1285
|
-
* })
|
|
1286
|
-
*
|
|
1287
|
-
*/
|
|
1288
|
-
deleteMany<T extends TodoDeleteManyArgs>(args?: SelectSubset<T, TodoDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
1289
|
-
|
|
1290
|
-
/**
|
|
1291
|
-
* Update zero or more Todos.
|
|
1292
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1293
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1294
|
-
* @param {TodoUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1295
|
-
* @example
|
|
1296
|
-
* // Update many Todos
|
|
1297
|
-
* const todo = await prisma.todo.updateMany({
|
|
1298
|
-
* where: {
|
|
1299
|
-
* // ... provide filter here
|
|
1300
|
-
* },
|
|
1301
|
-
* data: {
|
|
1302
|
-
* // ... provide data here
|
|
1303
|
-
* }
|
|
1304
|
-
* })
|
|
1305
|
-
*
|
|
1306
|
-
*/
|
|
1307
|
-
updateMany<T extends TodoUpdateManyArgs>(args: SelectSubset<T, TodoUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
1308
|
-
|
|
1309
|
-
/**
|
|
1310
|
-
* Update zero or more Todos and returns the data updated in the database.
|
|
1311
|
-
* @param {TodoUpdateManyAndReturnArgs} args - Arguments to update many Todos.
|
|
1312
|
-
* @example
|
|
1313
|
-
* // Update many Todos
|
|
1314
|
-
* const todo = await prisma.todo.updateManyAndReturn({
|
|
1315
|
-
* where: {
|
|
1316
|
-
* // ... provide filter here
|
|
1317
|
-
* },
|
|
1318
|
-
* data: [
|
|
1319
|
-
* // ... provide data here
|
|
1320
|
-
* ]
|
|
1321
|
-
* })
|
|
1322
|
-
*
|
|
1323
|
-
* // Update zero or more Todos and only return the `id`
|
|
1324
|
-
* const todoWithIdOnly = await prisma.todo.updateManyAndReturn({
|
|
1325
|
-
* select: { id: true },
|
|
1326
|
-
* where: {
|
|
1327
|
-
* // ... provide filter here
|
|
1328
|
-
* },
|
|
1329
|
-
* data: [
|
|
1330
|
-
* // ... provide data here
|
|
1331
|
-
* ]
|
|
1332
|
-
* })
|
|
1333
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1334
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1335
|
-
*
|
|
1336
|
-
*/
|
|
1337
|
-
updateManyAndReturn<T extends TodoUpdateManyAndReturnArgs>(args: SelectSubset<T, TodoUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
1338
|
-
|
|
1339
|
-
/**
|
|
1340
|
-
* Create or update one Todo.
|
|
1341
|
-
* @param {TodoUpsertArgs} args - Arguments to update or create a Todo.
|
|
1342
|
-
* @example
|
|
1343
|
-
* // Update or create a Todo
|
|
1344
|
-
* const todo = await prisma.todo.upsert({
|
|
1345
|
-
* create: {
|
|
1346
|
-
* // ... data to create a Todo
|
|
1347
|
-
* },
|
|
1348
|
-
* update: {
|
|
1349
|
-
* // ... in case it already exists, update
|
|
1350
|
-
* },
|
|
1351
|
-
* where: {
|
|
1352
|
-
* // ... the filter for the Todo we want to update
|
|
1353
|
-
* }
|
|
1354
|
-
* })
|
|
1355
|
-
*/
|
|
1356
|
-
upsert<T extends TodoUpsertArgs>(args: SelectSubset<T, TodoUpsertArgs<ExtArgs>>): Prisma__TodoClient<$Result.GetResult<Prisma.$TodoPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
/**
|
|
1360
|
-
* Count the number of Todos.
|
|
1361
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1362
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1363
|
-
* @param {TodoCountArgs} args - Arguments to filter Todos to count.
|
|
1364
|
-
* @example
|
|
1365
|
-
* // Count the number of Todos
|
|
1366
|
-
* const count = await prisma.todo.count({
|
|
1367
|
-
* where: {
|
|
1368
|
-
* // ... the filter for the Todos we want to count
|
|
1369
|
-
* }
|
|
1370
|
-
* })
|
|
1371
|
-
**/
|
|
1372
|
-
count<T extends TodoCountArgs>(
|
|
1373
|
-
args?: Subset<T, TodoCountArgs>,
|
|
1374
|
-
): Prisma.PrismaPromise<
|
|
1375
|
-
T extends $Utils.Record<'select', any>
|
|
1376
|
-
? T['select'] extends true
|
|
1377
|
-
? number
|
|
1378
|
-
: GetScalarType<T['select'], TodoCountAggregateOutputType>
|
|
1379
|
-
: number
|
|
1380
|
-
>
|
|
1381
|
-
|
|
1382
|
-
/**
|
|
1383
|
-
* Allows you to perform aggregations operations on a Todo.
|
|
1384
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1385
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1386
|
-
* @param {TodoAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1387
|
-
* @example
|
|
1388
|
-
* // Ordered by age ascending
|
|
1389
|
-
* // Where email contains prisma.io
|
|
1390
|
-
* // Limited to the 10 users
|
|
1391
|
-
* const aggregations = await prisma.user.aggregate({
|
|
1392
|
-
* _avg: {
|
|
1393
|
-
* age: true,
|
|
1394
|
-
* },
|
|
1395
|
-
* where: {
|
|
1396
|
-
* email: {
|
|
1397
|
-
* contains: "prisma.io",
|
|
1398
|
-
* },
|
|
1399
|
-
* },
|
|
1400
|
-
* orderBy: {
|
|
1401
|
-
* age: "asc",
|
|
1402
|
-
* },
|
|
1403
|
-
* take: 10,
|
|
1404
|
-
* })
|
|
1405
|
-
**/
|
|
1406
|
-
aggregate<T extends TodoAggregateArgs>(args: Subset<T, TodoAggregateArgs>): Prisma.PrismaPromise<GetTodoAggregateType<T>>
|
|
1407
|
-
|
|
1408
|
-
/**
|
|
1409
|
-
* Group by Todo.
|
|
1410
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1411
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1412
|
-
* @param {TodoGroupByArgs} args - Group by arguments.
|
|
1413
|
-
* @example
|
|
1414
|
-
* // Group by city, order by createdAt, get count
|
|
1415
|
-
* const result = await prisma.user.groupBy({
|
|
1416
|
-
* by: ['city', 'createdAt'],
|
|
1417
|
-
* orderBy: {
|
|
1418
|
-
* createdAt: true
|
|
1419
|
-
* },
|
|
1420
|
-
* _count: {
|
|
1421
|
-
* _all: true
|
|
1422
|
-
* },
|
|
1423
|
-
* })
|
|
1424
|
-
*
|
|
1425
|
-
**/
|
|
1426
|
-
groupBy<
|
|
1427
|
-
T extends TodoGroupByArgs,
|
|
1428
|
-
HasSelectOrTake extends Or<
|
|
1429
|
-
Extends<'skip', Keys<T>>,
|
|
1430
|
-
Extends<'take', Keys<T>>
|
|
1431
|
-
>,
|
|
1432
|
-
OrderByArg extends True extends HasSelectOrTake
|
|
1433
|
-
? { orderBy: TodoGroupByArgs['orderBy'] }
|
|
1434
|
-
: { orderBy?: TodoGroupByArgs['orderBy'] },
|
|
1435
|
-
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
1436
|
-
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
1437
|
-
ByValid extends Has<ByFields, OrderFields>,
|
|
1438
|
-
HavingFields extends GetHavingFields<T['having']>,
|
|
1439
|
-
HavingValid extends Has<ByFields, HavingFields>,
|
|
1440
|
-
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
1441
|
-
InputErrors extends ByEmpty extends True
|
|
1442
|
-
? `Error: "by" must not be empty.`
|
|
1443
|
-
: HavingValid extends False
|
|
1444
|
-
? {
|
|
1445
|
-
[P in HavingFields]: P extends ByFields
|
|
1446
|
-
? never
|
|
1447
|
-
: P extends string
|
|
1448
|
-
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
1449
|
-
: [
|
|
1450
|
-
Error,
|
|
1451
|
-
'Field ',
|
|
1452
|
-
P,
|
|
1453
|
-
` in "having" needs to be provided in "by"`,
|
|
1454
|
-
]
|
|
1455
|
-
}[HavingFields]
|
|
1456
|
-
: 'take' extends Keys<T>
|
|
1457
|
-
? 'orderBy' extends Keys<T>
|
|
1458
|
-
? ByValid extends True
|
|
1459
|
-
? {}
|
|
1460
|
-
: {
|
|
1461
|
-
[P in OrderFields]: P extends ByFields
|
|
1462
|
-
? never
|
|
1463
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1464
|
-
}[OrderFields]
|
|
1465
|
-
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
1466
|
-
: 'skip' extends Keys<T>
|
|
1467
|
-
? 'orderBy' extends Keys<T>
|
|
1468
|
-
? ByValid extends True
|
|
1469
|
-
? {}
|
|
1470
|
-
: {
|
|
1471
|
-
[P in OrderFields]: P extends ByFields
|
|
1472
|
-
? never
|
|
1473
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1474
|
-
}[OrderFields]
|
|
1475
|
-
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
1476
|
-
: ByValid extends True
|
|
1477
|
-
? {}
|
|
1478
|
-
: {
|
|
1479
|
-
[P in OrderFields]: P extends ByFields
|
|
1480
|
-
? never
|
|
1481
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1482
|
-
}[OrderFields]
|
|
1483
|
-
>(args: SubsetIntersection<T, TodoGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTodoGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
1484
|
-
/**
|
|
1485
|
-
* Fields of the Todo model
|
|
1486
|
-
*/
|
|
1487
|
-
readonly fields: TodoFieldRefs;
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
/**
|
|
1491
|
-
* The delegate class that acts as a "Promise-like" for Todo.
|
|
1492
|
-
* Why is this prefixed with `Prisma__`?
|
|
1493
|
-
* Because we want to prevent naming conflicts as mentioned in
|
|
1494
|
-
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1495
|
-
*/
|
|
1496
|
-
export interface Prisma__TodoClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1497
|
-
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1498
|
-
/**
|
|
1499
|
-
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1500
|
-
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1501
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1502
|
-
* @returns A Promise for the completion of which ever callback is executed.
|
|
1503
|
-
*/
|
|
1504
|
-
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>
|
|
1505
|
-
/**
|
|
1506
|
-
* Attaches a callback for only the rejection of the Promise.
|
|
1507
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1508
|
-
* @returns A Promise for the completion of the callback.
|
|
1509
|
-
*/
|
|
1510
|
-
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
1511
|
-
/**
|
|
1512
|
-
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1513
|
-
* resolved value cannot be modified from the callback.
|
|
1514
|
-
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1515
|
-
* @returns A Promise for the completion of the callback.
|
|
1516
|
-
*/
|
|
1517
|
-
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
/**
|
|
1524
|
-
* Fields of the Todo model
|
|
1525
|
-
*/
|
|
1526
|
-
interface TodoFieldRefs {
|
|
1527
|
-
readonly id: FieldRef<"Todo", 'Int'>
|
|
1528
|
-
readonly title: FieldRef<"Todo", 'String'>
|
|
1529
|
-
readonly content: FieldRef<"Todo", 'String'>
|
|
1530
|
-
readonly published: FieldRef<"Todo", 'Boolean'>
|
|
1531
|
-
readonly authorId: FieldRef<"Todo", 'Int'>
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
// Custom InputTypes
|
|
1536
|
-
/**
|
|
1537
|
-
* Todo findUnique
|
|
1538
|
-
*/
|
|
1539
|
-
export type TodoFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1540
|
-
/**
|
|
1541
|
-
* Select specific fields to fetch from the Todo
|
|
1542
|
-
*/
|
|
1543
|
-
select?: TodoSelect<ExtArgs> | null
|
|
1544
|
-
/**
|
|
1545
|
-
* Omit specific fields from the Todo
|
|
1546
|
-
*/
|
|
1547
|
-
omit?: TodoOmit<ExtArgs> | null
|
|
1548
|
-
/**
|
|
1549
|
-
* Filter, which Todo to fetch.
|
|
1550
|
-
*/
|
|
1551
|
-
where: TodoWhereUniqueInput
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
|
-
/**
|
|
1555
|
-
* Todo findUniqueOrThrow
|
|
1556
|
-
*/
|
|
1557
|
-
export type TodoFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1558
|
-
/**
|
|
1559
|
-
* Select specific fields to fetch from the Todo
|
|
1560
|
-
*/
|
|
1561
|
-
select?: TodoSelect<ExtArgs> | null
|
|
1562
|
-
/**
|
|
1563
|
-
* Omit specific fields from the Todo
|
|
1564
|
-
*/
|
|
1565
|
-
omit?: TodoOmit<ExtArgs> | null
|
|
1566
|
-
/**
|
|
1567
|
-
* Filter, which Todo to fetch.
|
|
1568
|
-
*/
|
|
1569
|
-
where: TodoWhereUniqueInput
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
/**
|
|
1573
|
-
* Todo findFirst
|
|
1574
|
-
*/
|
|
1575
|
-
export type TodoFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1576
|
-
/**
|
|
1577
|
-
* Select specific fields to fetch from the Todo
|
|
1578
|
-
*/
|
|
1579
|
-
select?: TodoSelect<ExtArgs> | null
|
|
1580
|
-
/**
|
|
1581
|
-
* Omit specific fields from the Todo
|
|
1582
|
-
*/
|
|
1583
|
-
omit?: TodoOmit<ExtArgs> | null
|
|
1584
|
-
/**
|
|
1585
|
-
* Filter, which Todo to fetch.
|
|
1586
|
-
*/
|
|
1587
|
-
where?: TodoWhereInput
|
|
1588
|
-
/**
|
|
1589
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1590
|
-
*
|
|
1591
|
-
* Determine the order of Todos to fetch.
|
|
1592
|
-
*/
|
|
1593
|
-
orderBy?: TodoOrderByWithRelationInput | TodoOrderByWithRelationInput[]
|
|
1594
|
-
/**
|
|
1595
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1596
|
-
*
|
|
1597
|
-
* Sets the position for searching for Todos.
|
|
1598
|
-
*/
|
|
1599
|
-
cursor?: TodoWhereUniqueInput
|
|
1600
|
-
/**
|
|
1601
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1602
|
-
*
|
|
1603
|
-
* Take `±n` Todos from the position of the cursor.
|
|
1604
|
-
*/
|
|
1605
|
-
take?: number
|
|
1606
|
-
/**
|
|
1607
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1608
|
-
*
|
|
1609
|
-
* Skip the first `n` Todos.
|
|
1610
|
-
*/
|
|
1611
|
-
skip?: number
|
|
1612
|
-
/**
|
|
1613
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1614
|
-
*
|
|
1615
|
-
* Filter by unique combinations of Todos.
|
|
1616
|
-
*/
|
|
1617
|
-
distinct?: TodoScalarFieldEnum | TodoScalarFieldEnum[]
|
|
1618
|
-
}
|
|
1619
|
-
|
|
1620
|
-
/**
|
|
1621
|
-
* Todo findFirstOrThrow
|
|
1622
|
-
*/
|
|
1623
|
-
export type TodoFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1624
|
-
/**
|
|
1625
|
-
* Select specific fields to fetch from the Todo
|
|
1626
|
-
*/
|
|
1627
|
-
select?: TodoSelect<ExtArgs> | null
|
|
1628
|
-
/**
|
|
1629
|
-
* Omit specific fields from the Todo
|
|
1630
|
-
*/
|
|
1631
|
-
omit?: TodoOmit<ExtArgs> | null
|
|
1632
|
-
/**
|
|
1633
|
-
* Filter, which Todo to fetch.
|
|
1634
|
-
*/
|
|
1635
|
-
where?: TodoWhereInput
|
|
1636
|
-
/**
|
|
1637
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1638
|
-
*
|
|
1639
|
-
* Determine the order of Todos to fetch.
|
|
1640
|
-
*/
|
|
1641
|
-
orderBy?: TodoOrderByWithRelationInput | TodoOrderByWithRelationInput[]
|
|
1642
|
-
/**
|
|
1643
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1644
|
-
*
|
|
1645
|
-
* Sets the position for searching for Todos.
|
|
1646
|
-
*/
|
|
1647
|
-
cursor?: TodoWhereUniqueInput
|
|
1648
|
-
/**
|
|
1649
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1650
|
-
*
|
|
1651
|
-
* Take `±n` Todos from the position of the cursor.
|
|
1652
|
-
*/
|
|
1653
|
-
take?: number
|
|
1654
|
-
/**
|
|
1655
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1656
|
-
*
|
|
1657
|
-
* Skip the first `n` Todos.
|
|
1658
|
-
*/
|
|
1659
|
-
skip?: number
|
|
1660
|
-
/**
|
|
1661
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1662
|
-
*
|
|
1663
|
-
* Filter by unique combinations of Todos.
|
|
1664
|
-
*/
|
|
1665
|
-
distinct?: TodoScalarFieldEnum | TodoScalarFieldEnum[]
|
|
1666
|
-
}
|
|
1667
|
-
|
|
1668
|
-
/**
|
|
1669
|
-
* Todo findMany
|
|
1670
|
-
*/
|
|
1671
|
-
export type TodoFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1672
|
-
/**
|
|
1673
|
-
* Select specific fields to fetch from the Todo
|
|
1674
|
-
*/
|
|
1675
|
-
select?: TodoSelect<ExtArgs> | null
|
|
1676
|
-
/**
|
|
1677
|
-
* Omit specific fields from the Todo
|
|
1678
|
-
*/
|
|
1679
|
-
omit?: TodoOmit<ExtArgs> | null
|
|
1680
|
-
/**
|
|
1681
|
-
* Filter, which Todos to fetch.
|
|
1682
|
-
*/
|
|
1683
|
-
where?: TodoWhereInput
|
|
1684
|
-
/**
|
|
1685
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1686
|
-
*
|
|
1687
|
-
* Determine the order of Todos to fetch.
|
|
1688
|
-
*/
|
|
1689
|
-
orderBy?: TodoOrderByWithRelationInput | TodoOrderByWithRelationInput[]
|
|
1690
|
-
/**
|
|
1691
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1692
|
-
*
|
|
1693
|
-
* Sets the position for listing Todos.
|
|
1694
|
-
*/
|
|
1695
|
-
cursor?: TodoWhereUniqueInput
|
|
1696
|
-
/**
|
|
1697
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1698
|
-
*
|
|
1699
|
-
* Take `±n` Todos from the position of the cursor.
|
|
1700
|
-
*/
|
|
1701
|
-
take?: number
|
|
1702
|
-
/**
|
|
1703
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1704
|
-
*
|
|
1705
|
-
* Skip the first `n` Todos.
|
|
1706
|
-
*/
|
|
1707
|
-
skip?: number
|
|
1708
|
-
distinct?: TodoScalarFieldEnum | TodoScalarFieldEnum[]
|
|
1709
|
-
}
|
|
1710
|
-
|
|
1711
|
-
/**
|
|
1712
|
-
* Todo create
|
|
1713
|
-
*/
|
|
1714
|
-
export type TodoCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1715
|
-
/**
|
|
1716
|
-
* Select specific fields to fetch from the Todo
|
|
1717
|
-
*/
|
|
1718
|
-
select?: TodoSelect<ExtArgs> | null
|
|
1719
|
-
/**
|
|
1720
|
-
* Omit specific fields from the Todo
|
|
1721
|
-
*/
|
|
1722
|
-
omit?: TodoOmit<ExtArgs> | null
|
|
1723
|
-
/**
|
|
1724
|
-
* The data needed to create a Todo.
|
|
1725
|
-
*/
|
|
1726
|
-
data: XOR<TodoCreateInput, TodoUncheckedCreateInput>
|
|
1727
|
-
}
|
|
1728
|
-
|
|
1729
|
-
/**
|
|
1730
|
-
* Todo createMany
|
|
1731
|
-
*/
|
|
1732
|
-
export type TodoCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1733
|
-
/**
|
|
1734
|
-
* The data used to create many Todos.
|
|
1735
|
-
*/
|
|
1736
|
-
data: TodoCreateManyInput | TodoCreateManyInput[]
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1739
|
-
/**
|
|
1740
|
-
* Todo createManyAndReturn
|
|
1741
|
-
*/
|
|
1742
|
-
export type TodoCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1743
|
-
/**
|
|
1744
|
-
* Select specific fields to fetch from the Todo
|
|
1745
|
-
*/
|
|
1746
|
-
select?: TodoSelectCreateManyAndReturn<ExtArgs> | null
|
|
1747
|
-
/**
|
|
1748
|
-
* Omit specific fields from the Todo
|
|
1749
|
-
*/
|
|
1750
|
-
omit?: TodoOmit<ExtArgs> | null
|
|
1751
|
-
/**
|
|
1752
|
-
* The data used to create many Todos.
|
|
1753
|
-
*/
|
|
1754
|
-
data: TodoCreateManyInput | TodoCreateManyInput[]
|
|
1755
|
-
}
|
|
1756
|
-
|
|
1757
|
-
/**
|
|
1758
|
-
* Todo update
|
|
1759
|
-
*/
|
|
1760
|
-
export type TodoUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1761
|
-
/**
|
|
1762
|
-
* Select specific fields to fetch from the Todo
|
|
1763
|
-
*/
|
|
1764
|
-
select?: TodoSelect<ExtArgs> | null
|
|
1765
|
-
/**
|
|
1766
|
-
* Omit specific fields from the Todo
|
|
1767
|
-
*/
|
|
1768
|
-
omit?: TodoOmit<ExtArgs> | null
|
|
1769
|
-
/**
|
|
1770
|
-
* The data needed to update a Todo.
|
|
1771
|
-
*/
|
|
1772
|
-
data: XOR<TodoUpdateInput, TodoUncheckedUpdateInput>
|
|
1773
|
-
/**
|
|
1774
|
-
* Choose, which Todo to update.
|
|
1775
|
-
*/
|
|
1776
|
-
where: TodoWhereUniqueInput
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
/**
|
|
1780
|
-
* Todo updateMany
|
|
1781
|
-
*/
|
|
1782
|
-
export type TodoUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1783
|
-
/**
|
|
1784
|
-
* The data used to update Todos.
|
|
1785
|
-
*/
|
|
1786
|
-
data: XOR<TodoUpdateManyMutationInput, TodoUncheckedUpdateManyInput>
|
|
1787
|
-
/**
|
|
1788
|
-
* Filter which Todos to update
|
|
1789
|
-
*/
|
|
1790
|
-
where?: TodoWhereInput
|
|
1791
|
-
/**
|
|
1792
|
-
* Limit how many Todos to update.
|
|
1793
|
-
*/
|
|
1794
|
-
limit?: number
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
/**
|
|
1798
|
-
* Todo updateManyAndReturn
|
|
1799
|
-
*/
|
|
1800
|
-
export type TodoUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1801
|
-
/**
|
|
1802
|
-
* Select specific fields to fetch from the Todo
|
|
1803
|
-
*/
|
|
1804
|
-
select?: TodoSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1805
|
-
/**
|
|
1806
|
-
* Omit specific fields from the Todo
|
|
1807
|
-
*/
|
|
1808
|
-
omit?: TodoOmit<ExtArgs> | null
|
|
1809
|
-
/**
|
|
1810
|
-
* The data used to update Todos.
|
|
1811
|
-
*/
|
|
1812
|
-
data: XOR<TodoUpdateManyMutationInput, TodoUncheckedUpdateManyInput>
|
|
1813
|
-
/**
|
|
1814
|
-
* Filter which Todos to update
|
|
1815
|
-
*/
|
|
1816
|
-
where?: TodoWhereInput
|
|
1817
|
-
/**
|
|
1818
|
-
* Limit how many Todos to update.
|
|
1819
|
-
*/
|
|
1820
|
-
limit?: number
|
|
1821
|
-
}
|
|
1822
|
-
|
|
1823
|
-
/**
|
|
1824
|
-
* Todo upsert
|
|
1825
|
-
*/
|
|
1826
|
-
export type TodoUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1827
|
-
/**
|
|
1828
|
-
* Select specific fields to fetch from the Todo
|
|
1829
|
-
*/
|
|
1830
|
-
select?: TodoSelect<ExtArgs> | null
|
|
1831
|
-
/**
|
|
1832
|
-
* Omit specific fields from the Todo
|
|
1833
|
-
*/
|
|
1834
|
-
omit?: TodoOmit<ExtArgs> | null
|
|
1835
|
-
/**
|
|
1836
|
-
* The filter to search for the Todo to update in case it exists.
|
|
1837
|
-
*/
|
|
1838
|
-
where: TodoWhereUniqueInput
|
|
1839
|
-
/**
|
|
1840
|
-
* In case the Todo found by the `where` argument doesn't exist, create a new Todo with this data.
|
|
1841
|
-
*/
|
|
1842
|
-
create: XOR<TodoCreateInput, TodoUncheckedCreateInput>
|
|
1843
|
-
/**
|
|
1844
|
-
* In case the Todo was found with the provided `where` argument, update it with this data.
|
|
1845
|
-
*/
|
|
1846
|
-
update: XOR<TodoUpdateInput, TodoUncheckedUpdateInput>
|
|
1847
|
-
}
|
|
1848
|
-
|
|
1849
|
-
/**
|
|
1850
|
-
* Todo delete
|
|
1851
|
-
*/
|
|
1852
|
-
export type TodoDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1853
|
-
/**
|
|
1854
|
-
* Select specific fields to fetch from the Todo
|
|
1855
|
-
*/
|
|
1856
|
-
select?: TodoSelect<ExtArgs> | null
|
|
1857
|
-
/**
|
|
1858
|
-
* Omit specific fields from the Todo
|
|
1859
|
-
*/
|
|
1860
|
-
omit?: TodoOmit<ExtArgs> | null
|
|
1861
|
-
/**
|
|
1862
|
-
* Filter which Todo to delete.
|
|
1863
|
-
*/
|
|
1864
|
-
where: TodoWhereUniqueInput
|
|
1865
|
-
}
|
|
1866
|
-
|
|
1867
|
-
/**
|
|
1868
|
-
* Todo deleteMany
|
|
1869
|
-
*/
|
|
1870
|
-
export type TodoDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1871
|
-
/**
|
|
1872
|
-
* Filter which Todos to delete
|
|
1873
|
-
*/
|
|
1874
|
-
where?: TodoWhereInput
|
|
1875
|
-
/**
|
|
1876
|
-
* Limit how many Todos to delete.
|
|
1877
|
-
*/
|
|
1878
|
-
limit?: number
|
|
1879
|
-
}
|
|
1880
|
-
|
|
1881
|
-
/**
|
|
1882
|
-
* Todo without action
|
|
1883
|
-
*/
|
|
1884
|
-
export type TodoDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1885
|
-
/**
|
|
1886
|
-
* Select specific fields to fetch from the Todo
|
|
1887
|
-
*/
|
|
1888
|
-
select?: TodoSelect<ExtArgs> | null
|
|
1889
|
-
/**
|
|
1890
|
-
* Omit specific fields from the Todo
|
|
1891
|
-
*/
|
|
1892
|
-
omit?: TodoOmit<ExtArgs> | null
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
/**
|
|
1897
|
-
* Enums
|
|
1898
|
-
*/
|
|
1899
|
-
|
|
1900
|
-
export const TransactionIsolationLevel: {
|
|
1901
|
-
Serializable: 'Serializable'
|
|
1902
|
-
};
|
|
1903
|
-
|
|
1904
|
-
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
export const TodoScalarFieldEnum: {
|
|
1908
|
-
id: 'id',
|
|
1909
|
-
title: 'title',
|
|
1910
|
-
content: 'content',
|
|
1911
|
-
published: 'published',
|
|
1912
|
-
authorId: 'authorId'
|
|
1913
|
-
};
|
|
1914
|
-
|
|
1915
|
-
export type TodoScalarFieldEnum = (typeof TodoScalarFieldEnum)[keyof typeof TodoScalarFieldEnum]
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
export const SortOrder: {
|
|
1919
|
-
asc: 'asc',
|
|
1920
|
-
desc: 'desc'
|
|
1921
|
-
};
|
|
1922
|
-
|
|
1923
|
-
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
export const NullsOrder: {
|
|
1927
|
-
first: 'first',
|
|
1928
|
-
last: 'last'
|
|
1929
|
-
};
|
|
1930
|
-
|
|
1931
|
-
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
/**
|
|
1935
|
-
* Field references
|
|
1936
|
-
*/
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
/**
|
|
1940
|
-
* Reference to a field of type 'Int'
|
|
1941
|
-
*/
|
|
1942
|
-
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
/**
|
|
1947
|
-
* Reference to a field of type 'String'
|
|
1948
|
-
*/
|
|
1949
|
-
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
/**
|
|
1954
|
-
* Reference to a field of type 'Boolean'
|
|
1955
|
-
*/
|
|
1956
|
-
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
/**
|
|
1961
|
-
* Reference to a field of type 'Float'
|
|
1962
|
-
*/
|
|
1963
|
-
export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
|
|
1964
|
-
|
|
1965
|
-
/**
|
|
1966
|
-
* Deep Input Types
|
|
1967
|
-
*/
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
export type TodoWhereInput = {
|
|
1971
|
-
AND?: TodoWhereInput | TodoWhereInput[]
|
|
1972
|
-
OR?: TodoWhereInput[]
|
|
1973
|
-
NOT?: TodoWhereInput | TodoWhereInput[]
|
|
1974
|
-
id?: IntFilter<"Todo"> | number
|
|
1975
|
-
title?: StringFilter<"Todo"> | string
|
|
1976
|
-
content?: StringNullableFilter<"Todo"> | string | null
|
|
1977
|
-
published?: BoolFilter<"Todo"> | boolean
|
|
1978
|
-
authorId?: IntFilter<"Todo"> | number
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
|
-
export type TodoOrderByWithRelationInput = {
|
|
1982
|
-
id?: SortOrder
|
|
1983
|
-
title?: SortOrder
|
|
1984
|
-
content?: SortOrderInput | SortOrder
|
|
1985
|
-
published?: SortOrder
|
|
1986
|
-
authorId?: SortOrder
|
|
1987
|
-
}
|
|
1988
|
-
|
|
1989
|
-
export type TodoWhereUniqueInput = Prisma.AtLeast<{
|
|
1990
|
-
id?: number
|
|
1991
|
-
AND?: TodoWhereInput | TodoWhereInput[]
|
|
1992
|
-
OR?: TodoWhereInput[]
|
|
1993
|
-
NOT?: TodoWhereInput | TodoWhereInput[]
|
|
1994
|
-
title?: StringFilter<"Todo"> | string
|
|
1995
|
-
content?: StringNullableFilter<"Todo"> | string | null
|
|
1996
|
-
published?: BoolFilter<"Todo"> | boolean
|
|
1997
|
-
authorId?: IntFilter<"Todo"> | number
|
|
1998
|
-
}, "id">
|
|
1999
|
-
|
|
2000
|
-
export type TodoOrderByWithAggregationInput = {
|
|
2001
|
-
id?: SortOrder
|
|
2002
|
-
title?: SortOrder
|
|
2003
|
-
content?: SortOrderInput | SortOrder
|
|
2004
|
-
published?: SortOrder
|
|
2005
|
-
authorId?: SortOrder
|
|
2006
|
-
_count?: TodoCountOrderByAggregateInput
|
|
2007
|
-
_avg?: TodoAvgOrderByAggregateInput
|
|
2008
|
-
_max?: TodoMaxOrderByAggregateInput
|
|
2009
|
-
_min?: TodoMinOrderByAggregateInput
|
|
2010
|
-
_sum?: TodoSumOrderByAggregateInput
|
|
2011
|
-
}
|
|
2012
|
-
|
|
2013
|
-
export type TodoScalarWhereWithAggregatesInput = {
|
|
2014
|
-
AND?: TodoScalarWhereWithAggregatesInput | TodoScalarWhereWithAggregatesInput[]
|
|
2015
|
-
OR?: TodoScalarWhereWithAggregatesInput[]
|
|
2016
|
-
NOT?: TodoScalarWhereWithAggregatesInput | TodoScalarWhereWithAggregatesInput[]
|
|
2017
|
-
id?: IntWithAggregatesFilter<"Todo"> | number
|
|
2018
|
-
title?: StringWithAggregatesFilter<"Todo"> | string
|
|
2019
|
-
content?: StringNullableWithAggregatesFilter<"Todo"> | string | null
|
|
2020
|
-
published?: BoolWithAggregatesFilter<"Todo"> | boolean
|
|
2021
|
-
authorId?: IntWithAggregatesFilter<"Todo"> | number
|
|
2022
|
-
}
|
|
2023
|
-
|
|
2024
|
-
export type TodoCreateInput = {
|
|
2025
|
-
title: string
|
|
2026
|
-
content?: string | null
|
|
2027
|
-
published?: boolean
|
|
2028
|
-
authorId: number
|
|
2029
|
-
}
|
|
2030
|
-
|
|
2031
|
-
export type TodoUncheckedCreateInput = {
|
|
2032
|
-
id?: number
|
|
2033
|
-
title: string
|
|
2034
|
-
content?: string | null
|
|
2035
|
-
published?: boolean
|
|
2036
|
-
authorId: number
|
|
2037
|
-
}
|
|
2038
|
-
|
|
2039
|
-
export type TodoUpdateInput = {
|
|
2040
|
-
title?: StringFieldUpdateOperationsInput | string
|
|
2041
|
-
content?: NullableStringFieldUpdateOperationsInput | string | null
|
|
2042
|
-
published?: BoolFieldUpdateOperationsInput | boolean
|
|
2043
|
-
authorId?: IntFieldUpdateOperationsInput | number
|
|
2044
|
-
}
|
|
2045
|
-
|
|
2046
|
-
export type TodoUncheckedUpdateInput = {
|
|
2047
|
-
id?: IntFieldUpdateOperationsInput | number
|
|
2048
|
-
title?: StringFieldUpdateOperationsInput | string
|
|
2049
|
-
content?: NullableStringFieldUpdateOperationsInput | string | null
|
|
2050
|
-
published?: BoolFieldUpdateOperationsInput | boolean
|
|
2051
|
-
authorId?: IntFieldUpdateOperationsInput | number
|
|
2052
|
-
}
|
|
2053
|
-
|
|
2054
|
-
export type TodoCreateManyInput = {
|
|
2055
|
-
id?: number
|
|
2056
|
-
title: string
|
|
2057
|
-
content?: string | null
|
|
2058
|
-
published?: boolean
|
|
2059
|
-
authorId: number
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2062
|
-
export type TodoUpdateManyMutationInput = {
|
|
2063
|
-
title?: StringFieldUpdateOperationsInput | string
|
|
2064
|
-
content?: NullableStringFieldUpdateOperationsInput | string | null
|
|
2065
|
-
published?: BoolFieldUpdateOperationsInput | boolean
|
|
2066
|
-
authorId?: IntFieldUpdateOperationsInput | number
|
|
2067
|
-
}
|
|
2068
|
-
|
|
2069
|
-
export type TodoUncheckedUpdateManyInput = {
|
|
2070
|
-
id?: IntFieldUpdateOperationsInput | number
|
|
2071
|
-
title?: StringFieldUpdateOperationsInput | string
|
|
2072
|
-
content?: NullableStringFieldUpdateOperationsInput | string | null
|
|
2073
|
-
published?: BoolFieldUpdateOperationsInput | boolean
|
|
2074
|
-
authorId?: IntFieldUpdateOperationsInput | number
|
|
2075
|
-
}
|
|
2076
|
-
|
|
2077
|
-
export type IntFilter<$PrismaModel = never> = {
|
|
2078
|
-
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
2079
|
-
in?: number[]
|
|
2080
|
-
notIn?: number[]
|
|
2081
|
-
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
2082
|
-
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
2083
|
-
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
2084
|
-
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
2085
|
-
not?: NestedIntFilter<$PrismaModel> | number
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
|
-
export type StringFilter<$PrismaModel = never> = {
|
|
2089
|
-
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
2090
|
-
in?: string[]
|
|
2091
|
-
notIn?: string[]
|
|
2092
|
-
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
2093
|
-
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
2094
|
-
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
2095
|
-
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
2096
|
-
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
2097
|
-
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
2098
|
-
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
2099
|
-
not?: NestedStringFilter<$PrismaModel> | string
|
|
2100
|
-
}
|
|
2101
|
-
|
|
2102
|
-
export type StringNullableFilter<$PrismaModel = never> = {
|
|
2103
|
-
equals?: string | StringFieldRefInput<$PrismaModel> | null
|
|
2104
|
-
in?: string[] | null
|
|
2105
|
-
notIn?: string[] | null
|
|
2106
|
-
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
2107
|
-
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
2108
|
-
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
2109
|
-
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
2110
|
-
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
2111
|
-
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
2112
|
-
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
2113
|
-
not?: NestedStringNullableFilter<$PrismaModel> | string | null
|
|
2114
|
-
}
|
|
2115
|
-
|
|
2116
|
-
export type BoolFilter<$PrismaModel = never> = {
|
|
2117
|
-
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
2118
|
-
not?: NestedBoolFilter<$PrismaModel> | boolean
|
|
2119
|
-
}
|
|
2120
|
-
|
|
2121
|
-
export type SortOrderInput = {
|
|
2122
|
-
sort: SortOrder
|
|
2123
|
-
nulls?: NullsOrder
|
|
2124
|
-
}
|
|
2125
|
-
|
|
2126
|
-
export type TodoCountOrderByAggregateInput = {
|
|
2127
|
-
id?: SortOrder
|
|
2128
|
-
title?: SortOrder
|
|
2129
|
-
content?: SortOrder
|
|
2130
|
-
published?: SortOrder
|
|
2131
|
-
authorId?: SortOrder
|
|
2132
|
-
}
|
|
2133
|
-
|
|
2134
|
-
export type TodoAvgOrderByAggregateInput = {
|
|
2135
|
-
id?: SortOrder
|
|
2136
|
-
authorId?: SortOrder
|
|
2137
|
-
}
|
|
2138
|
-
|
|
2139
|
-
export type TodoMaxOrderByAggregateInput = {
|
|
2140
|
-
id?: SortOrder
|
|
2141
|
-
title?: SortOrder
|
|
2142
|
-
content?: SortOrder
|
|
2143
|
-
published?: SortOrder
|
|
2144
|
-
authorId?: SortOrder
|
|
2145
|
-
}
|
|
2146
|
-
|
|
2147
|
-
export type TodoMinOrderByAggregateInput = {
|
|
2148
|
-
id?: SortOrder
|
|
2149
|
-
title?: SortOrder
|
|
2150
|
-
content?: SortOrder
|
|
2151
|
-
published?: SortOrder
|
|
2152
|
-
authorId?: SortOrder
|
|
2153
|
-
}
|
|
2154
|
-
|
|
2155
|
-
export type TodoSumOrderByAggregateInput = {
|
|
2156
|
-
id?: SortOrder
|
|
2157
|
-
authorId?: SortOrder
|
|
2158
|
-
}
|
|
2159
|
-
|
|
2160
|
-
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
|
2161
|
-
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
2162
|
-
in?: number[]
|
|
2163
|
-
notIn?: number[]
|
|
2164
|
-
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
2165
|
-
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
2166
|
-
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
2167
|
-
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
2168
|
-
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
|
|
2169
|
-
_count?: NestedIntFilter<$PrismaModel>
|
|
2170
|
-
_avg?: NestedFloatFilter<$PrismaModel>
|
|
2171
|
-
_sum?: NestedIntFilter<$PrismaModel>
|
|
2172
|
-
_min?: NestedIntFilter<$PrismaModel>
|
|
2173
|
-
_max?: NestedIntFilter<$PrismaModel>
|
|
2174
|
-
}
|
|
2175
|
-
|
|
2176
|
-
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
|
2177
|
-
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
2178
|
-
in?: string[]
|
|
2179
|
-
notIn?: string[]
|
|
2180
|
-
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
2181
|
-
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
2182
|
-
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
2183
|
-
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
2184
|
-
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
2185
|
-
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
2186
|
-
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
2187
|
-
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
|
|
2188
|
-
_count?: NestedIntFilter<$PrismaModel>
|
|
2189
|
-
_min?: NestedStringFilter<$PrismaModel>
|
|
2190
|
-
_max?: NestedStringFilter<$PrismaModel>
|
|
2191
|
-
}
|
|
2192
|
-
|
|
2193
|
-
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
2194
|
-
equals?: string | StringFieldRefInput<$PrismaModel> | null
|
|
2195
|
-
in?: string[] | null
|
|
2196
|
-
notIn?: string[] | null
|
|
2197
|
-
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
2198
|
-
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
2199
|
-
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
2200
|
-
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
2201
|
-
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
2202
|
-
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
2203
|
-
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
2204
|
-
not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
|
2205
|
-
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
2206
|
-
_min?: NestedStringNullableFilter<$PrismaModel>
|
|
2207
|
-
_max?: NestedStringNullableFilter<$PrismaModel>
|
|
2208
|
-
}
|
|
2209
|
-
|
|
2210
|
-
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
2211
|
-
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
2212
|
-
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
|
2213
|
-
_count?: NestedIntFilter<$PrismaModel>
|
|
2214
|
-
_min?: NestedBoolFilter<$PrismaModel>
|
|
2215
|
-
_max?: NestedBoolFilter<$PrismaModel>
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
-
export type StringFieldUpdateOperationsInput = {
|
|
2219
|
-
set?: string
|
|
2220
|
-
}
|
|
2221
|
-
|
|
2222
|
-
export type NullableStringFieldUpdateOperationsInput = {
|
|
2223
|
-
set?: string | null
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
|
-
export type BoolFieldUpdateOperationsInput = {
|
|
2227
|
-
set?: boolean
|
|
2228
|
-
}
|
|
2229
|
-
|
|
2230
|
-
export type IntFieldUpdateOperationsInput = {
|
|
2231
|
-
set?: number
|
|
2232
|
-
increment?: number
|
|
2233
|
-
decrement?: number
|
|
2234
|
-
multiply?: number
|
|
2235
|
-
divide?: number
|
|
2236
|
-
}
|
|
2237
|
-
|
|
2238
|
-
export type NestedIntFilter<$PrismaModel = never> = {
|
|
2239
|
-
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
2240
|
-
in?: number[]
|
|
2241
|
-
notIn?: number[]
|
|
2242
|
-
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
2243
|
-
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
2244
|
-
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
2245
|
-
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
2246
|
-
not?: NestedIntFilter<$PrismaModel> | number
|
|
2247
|
-
}
|
|
2248
|
-
|
|
2249
|
-
export type NestedStringFilter<$PrismaModel = never> = {
|
|
2250
|
-
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
2251
|
-
in?: string[]
|
|
2252
|
-
notIn?: string[]
|
|
2253
|
-
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
2254
|
-
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
2255
|
-
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
2256
|
-
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
2257
|
-
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
2258
|
-
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
2259
|
-
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
2260
|
-
not?: NestedStringFilter<$PrismaModel> | string
|
|
2261
|
-
}
|
|
2262
|
-
|
|
2263
|
-
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
|
2264
|
-
equals?: string | StringFieldRefInput<$PrismaModel> | null
|
|
2265
|
-
in?: string[] | null
|
|
2266
|
-
notIn?: string[] | null
|
|
2267
|
-
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
2268
|
-
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
2269
|
-
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
2270
|
-
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
2271
|
-
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
2272
|
-
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
2273
|
-
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
2274
|
-
not?: NestedStringNullableFilter<$PrismaModel> | string | null
|
|
2275
|
-
}
|
|
2276
|
-
|
|
2277
|
-
export type NestedBoolFilter<$PrismaModel = never> = {
|
|
2278
|
-
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
2279
|
-
not?: NestedBoolFilter<$PrismaModel> | boolean
|
|
2280
|
-
}
|
|
2281
|
-
|
|
2282
|
-
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
2283
|
-
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
2284
|
-
in?: number[]
|
|
2285
|
-
notIn?: number[]
|
|
2286
|
-
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
2287
|
-
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
2288
|
-
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
2289
|
-
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
2290
|
-
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
|
|
2291
|
-
_count?: NestedIntFilter<$PrismaModel>
|
|
2292
|
-
_avg?: NestedFloatFilter<$PrismaModel>
|
|
2293
|
-
_sum?: NestedIntFilter<$PrismaModel>
|
|
2294
|
-
_min?: NestedIntFilter<$PrismaModel>
|
|
2295
|
-
_max?: NestedIntFilter<$PrismaModel>
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2298
|
-
export type NestedFloatFilter<$PrismaModel = never> = {
|
|
2299
|
-
equals?: number | FloatFieldRefInput<$PrismaModel>
|
|
2300
|
-
in?: number[]
|
|
2301
|
-
notIn?: number[]
|
|
2302
|
-
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
2303
|
-
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
2304
|
-
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
2305
|
-
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
2306
|
-
not?: NestedFloatFilter<$PrismaModel> | number
|
|
2307
|
-
}
|
|
2308
|
-
|
|
2309
|
-
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
|
2310
|
-
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
2311
|
-
in?: string[]
|
|
2312
|
-
notIn?: string[]
|
|
2313
|
-
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
2314
|
-
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
2315
|
-
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
2316
|
-
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
2317
|
-
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
2318
|
-
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
2319
|
-
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
2320
|
-
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
|
|
2321
|
-
_count?: NestedIntFilter<$PrismaModel>
|
|
2322
|
-
_min?: NestedStringFilter<$PrismaModel>
|
|
2323
|
-
_max?: NestedStringFilter<$PrismaModel>
|
|
2324
|
-
}
|
|
2325
|
-
|
|
2326
|
-
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
2327
|
-
equals?: string | StringFieldRefInput<$PrismaModel> | null
|
|
2328
|
-
in?: string[] | null
|
|
2329
|
-
notIn?: string[] | null
|
|
2330
|
-
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
2331
|
-
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
2332
|
-
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
2333
|
-
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
2334
|
-
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
2335
|
-
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
2336
|
-
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
2337
|
-
not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
|
2338
|
-
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
2339
|
-
_min?: NestedStringNullableFilter<$PrismaModel>
|
|
2340
|
-
_max?: NestedStringNullableFilter<$PrismaModel>
|
|
2341
|
-
}
|
|
2342
|
-
|
|
2343
|
-
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
|
2344
|
-
equals?: number | IntFieldRefInput<$PrismaModel> | null
|
|
2345
|
-
in?: number[] | null
|
|
2346
|
-
notIn?: number[] | null
|
|
2347
|
-
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
2348
|
-
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
2349
|
-
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
2350
|
-
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
2351
|
-
not?: NestedIntNullableFilter<$PrismaModel> | number | null
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
|
-
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
2355
|
-
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
2356
|
-
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
|
2357
|
-
_count?: NestedIntFilter<$PrismaModel>
|
|
2358
|
-
_min?: NestedBoolFilter<$PrismaModel>
|
|
2359
|
-
_max?: NestedBoolFilter<$PrismaModel>
|
|
2360
|
-
}
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
/**
|
|
2365
|
-
* Batch Payload for updateMany & deleteMany & createMany
|
|
2366
|
-
*/
|
|
2367
|
-
|
|
2368
|
-
export type BatchPayload = {
|
|
2369
|
-
count: number
|
|
2370
|
-
}
|
|
2371
|
-
|
|
2372
|
-
/**
|
|
2373
|
-
* DMMF
|
|
2374
|
-
*/
|
|
2375
|
-
export const dmmf: runtime.BaseDMMF
|
|
2376
|
-
}
|