@techstream/quark-create-app 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/package.json +34 -33
  2. package/src/index.js +193 -56
  3. package/templates/base-project/apps/web/src/app/api/auth/register/route.js +17 -1
  4. package/templates/base-project/apps/web/src/app/api/error-handler.js +4 -2
  5. package/templates/base-project/apps/web/src/app/api/health/route.js +8 -3
  6. package/templates/base-project/apps/web/src/app/api/posts/[id]/route.js +9 -5
  7. package/templates/base-project/apps/web/src/app/api/posts/route.js +13 -5
  8. package/templates/base-project/apps/web/src/app/api/users/[id]/route.js +9 -9
  9. package/templates/base-project/apps/web/src/app/api/users/route.js +6 -6
  10. package/templates/base-project/apps/web/src/lib/auth-middleware.js +18 -1
  11. package/templates/base-project/apps/web/src/{middleware.js → proxy.js} +3 -3
  12. package/templates/base-project/apps/worker/package.json +1 -2
  13. package/templates/base-project/apps/worker/src/index.js +71 -19
  14. package/templates/base-project/docker-compose.yml +3 -6
  15. package/templates/base-project/package.json +16 -1
  16. package/templates/base-project/packages/db/package.json +10 -4
  17. package/templates/base-project/packages/db/prisma.config.ts +2 -2
  18. package/templates/base-project/packages/db/scripts/seed.js +1 -1
  19. package/templates/base-project/packages/db/src/client.js +41 -25
  20. package/templates/base-project/packages/db/src/queries.js +22 -9
  21. package/templates/base-project/packages/db/src/schemas.js +6 -1
  22. package/templates/base-project/turbo.json +17 -1
  23. package/templates/config/package.json +3 -1
  24. package/templates/config/src/app-url.js +71 -0
  25. package/templates/config/src/validate-env.js +104 -0
  26. package/templates/base-project/packages/db/src/generated/prisma/browser.ts +0 -53
  27. package/templates/base-project/packages/db/src/generated/prisma/client.ts +0 -82
  28. package/templates/base-project/packages/db/src/generated/prisma/commonInputTypes.ts +0 -649
  29. package/templates/base-project/packages/db/src/generated/prisma/enums.ts +0 -19
  30. package/templates/base-project/packages/db/src/generated/prisma/internal/class.ts +0 -305
  31. package/templates/base-project/packages/db/src/generated/prisma/internal/prismaNamespace.ts +0 -1428
  32. package/templates/base-project/packages/db/src/generated/prisma/internal/prismaNamespaceBrowser.ts +0 -217
  33. package/templates/base-project/packages/db/src/generated/prisma/models/Account.ts +0 -2098
  34. package/templates/base-project/packages/db/src/generated/prisma/models/AuditLog.ts +0 -1805
  35. package/templates/base-project/packages/db/src/generated/prisma/models/Job.ts +0 -1737
  36. package/templates/base-project/packages/db/src/generated/prisma/models/Post.ts +0 -1762
  37. package/templates/base-project/packages/db/src/generated/prisma/models/Session.ts +0 -1738
  38. package/templates/base-project/packages/db/src/generated/prisma/models/User.ts +0 -2298
  39. package/templates/base-project/packages/db/src/generated/prisma/models/VerificationToken.ts +0 -1450
  40. package/templates/base-project/packages/db/src/generated/prisma/models.ts +0 -18
@@ -1,1428 +0,0 @@
1
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
- /* eslint-disable */
3
- // biome-ignore-all lint: generated file
4
- // @ts-nocheck
5
- /*
6
- * WARNING: This is an internal file that is subject to change!
7
- *
8
- * 🛑 Under no circumstances should you import this file directly! 🛑
9
- *
10
- * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file.
11
- * While this enables partial backward compatibility, it is not part of the stable public API.
12
- *
13
- * If you are looking for your Models, Enums, and Input Types, please import them from the respective
14
- * model files in the `model` directory!
15
- */
16
-
17
- import * as runtime from "@prisma/client/runtime/client";
18
- import type * as Prisma from "../models.ts";
19
- import { type PrismaClient } from "./class.ts";
20
-
21
- export type * from "../models.ts";
22
-
23
- export type DMMF = typeof runtime.DMMF;
24
-
25
- export type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T>;
26
-
27
- /**
28
- * Prisma Errors
29
- */
30
-
31
- export const PrismaClientKnownRequestError =
32
- runtime.PrismaClientKnownRequestError;
33
- export type PrismaClientKnownRequestError =
34
- runtime.PrismaClientKnownRequestError;
35
-
36
- export const PrismaClientUnknownRequestError =
37
- runtime.PrismaClientUnknownRequestError;
38
- export type PrismaClientUnknownRequestError =
39
- runtime.PrismaClientUnknownRequestError;
40
-
41
- export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError;
42
- export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError;
43
-
44
- export const PrismaClientInitializationError =
45
- runtime.PrismaClientInitializationError;
46
- export type PrismaClientInitializationError =
47
- runtime.PrismaClientInitializationError;
48
-
49
- export const PrismaClientValidationError = runtime.PrismaClientValidationError;
50
- export type PrismaClientValidationError = runtime.PrismaClientValidationError;
51
-
52
- /**
53
- * Re-export of sql-template-tag
54
- */
55
- export const sql = runtime.sqltag;
56
- export const empty = runtime.empty;
57
- export const join = runtime.join;
58
- export const raw = runtime.raw;
59
- export const Sql = runtime.Sql;
60
- export type Sql = runtime.Sql;
61
-
62
- /**
63
- * Decimal.js
64
- */
65
- export const Decimal = runtime.Decimal;
66
- export type Decimal = runtime.Decimal;
67
-
68
- export type DecimalJsLike = runtime.DecimalJsLike;
69
-
70
- /**
71
- * Extensions
72
- */
73
- export type Extension = runtime.Types.Extensions.UserArgs;
74
- export const getExtensionContext = runtime.Extensions.getExtensionContext;
75
- export type Args<T, F extends runtime.Operation> = runtime.Types.Public.Args<
76
- T,
77
- F
78
- >;
79
- export type Payload<
80
- T,
81
- F extends runtime.Operation = never,
82
- > = runtime.Types.Public.Payload<T, F>;
83
- export type Result<
84
- T,
85
- A,
86
- F extends runtime.Operation,
87
- > = runtime.Types.Public.Result<T, A, F>;
88
- export type Exact<A, W> = runtime.Types.Public.Exact<A, W>;
89
-
90
- export type PrismaVersion = {
91
- client: string;
92
- engine: string;
93
- };
94
-
95
- /**
96
- * Prisma Client JS version: 7.0.0
97
- * Query Engine version: 0c19ccc313cf9911a90d99d2ac2eb0280c76c513
98
- */
99
- export const prismaVersion: PrismaVersion = {
100
- client: "7.0.0",
101
- engine: "0c19ccc313cf9911a90d99d2ac2eb0280c76c513",
102
- };
103
-
104
- /**
105
- * Utility Types
106
- */
107
-
108
- export type Bytes = runtime.Bytes;
109
- export type JsonObject = runtime.JsonObject;
110
- export type JsonArray = runtime.JsonArray;
111
- export type JsonValue = runtime.JsonValue;
112
- export type InputJsonObject = runtime.InputJsonObject;
113
- export type InputJsonArray = runtime.InputJsonArray;
114
- export type InputJsonValue = runtime.InputJsonValue;
115
-
116
- export const NullTypes = {
117
- DbNull: runtime.NullTypes.DbNull as new (
118
- secret: never,
119
- ) => typeof runtime.DbNull,
120
- JsonNull: runtime.NullTypes.JsonNull as new (
121
- secret: never,
122
- ) => typeof runtime.JsonNull,
123
- AnyNull: runtime.NullTypes.AnyNull as new (
124
- secret: never,
125
- ) => typeof runtime.AnyNull,
126
- };
127
- /**
128
- * Helper for filtering JSON entries that have `null` on the database (empty on the db)
129
- *
130
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
131
- */
132
- export const DbNull = runtime.DbNull;
133
-
134
- /**
135
- * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
136
- *
137
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
138
- */
139
- export const JsonNull = runtime.JsonNull;
140
-
141
- /**
142
- * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
143
- *
144
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
145
- */
146
- export const AnyNull = runtime.AnyNull;
147
-
148
- type SelectAndInclude = {
149
- select: any;
150
- include: any;
151
- };
152
-
153
- type SelectAndOmit = {
154
- select: any;
155
- omit: any;
156
- };
157
-
158
- /**
159
- * From T, pick a set of properties whose keys are in the union K
160
- */
161
- type Prisma__Pick<T, K extends keyof T> = {
162
- [P in K]: T[P];
163
- };
164
-
165
- export type Enumerable<T> = T | Array<T>;
166
-
167
- /**
168
- * Subset
169
- * @desc From `T` pick properties that exist in `U`. Simple version of Intersection
170
- */
171
- export type Subset<T, U> = {
172
- [key in keyof T]: key extends keyof U ? T[key] : never;
173
- };
174
-
175
- /**
176
- * SelectSubset
177
- * @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
178
- * Additionally, it validates, if both select and include are present. If the case, it errors.
179
- */
180
- export type SelectSubset<T, U> = {
181
- [key in keyof T]: key extends keyof U ? T[key] : never;
182
- } & (T extends SelectAndInclude
183
- ? "Please either choose `select` or `include`."
184
- : T extends SelectAndOmit
185
- ? "Please either choose `select` or `omit`."
186
- : {});
187
-
188
- /**
189
- * Subset + Intersection
190
- * @desc From `T` pick properties that exist in `U` and intersect `K`
191
- */
192
- export type SubsetIntersection<T, U, K> = {
193
- [key in keyof T]: key extends keyof U ? T[key] : never;
194
- } & K;
195
-
196
- type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
197
-
198
- /**
199
- * XOR is needed to have a real mutually exclusive union type
200
- * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
201
- */
202
- export type XOR<T, U> = T extends object
203
- ? U extends object
204
- ? (Without<T, U> & U) | (Without<U, T> & T)
205
- : U
206
- : T;
207
-
208
- /**
209
- * Is T a Record?
210
- */
211
- type IsObject<T extends any> =
212
- T extends Array<any>
213
- ? False
214
- : T extends Date
215
- ? False
216
- : T extends Uint8Array
217
- ? False
218
- : T extends BigInt
219
- ? False
220
- : T extends object
221
- ? True
222
- : False;
223
-
224
- /**
225
- * If it's T[], return T
226
- */
227
- export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T;
228
-
229
- /**
230
- * From ts-toolbelt
231
- */
232
-
233
- type __Either<O extends object, K extends Key> = Omit<O, K> &
234
- {
235
- // Merge all but K
236
- [P in K]: Prisma__Pick<O, P & keyof O>; // With K possibilities
237
- }[K];
238
-
239
- type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>;
240
-
241
- type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>;
242
-
243
- type _Either<O extends object, K extends Key, strict extends Boolean> = {
244
- 1: EitherStrict<O, K>;
245
- 0: EitherLoose<O, K>;
246
- }[strict];
247
-
248
- export type Either<
249
- O extends object,
250
- K extends Key,
251
- strict extends Boolean = 1,
252
- > = O extends unknown ? _Either<O, K, strict> : never;
253
-
254
- export type Union = any;
255
-
256
- export type PatchUndefined<O extends object, O1 extends object> = {
257
- [K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K];
258
- } & {};
259
-
260
- /** Helper Types for "Merge" **/
261
- export type IntersectOf<U extends Union> = (
262
- U extends unknown
263
- ? (k: U) => void
264
- : never
265
- ) extends (k: infer I) => void
266
- ? I
267
- : never;
268
-
269
- export type Overwrite<O extends object, O1 extends object> = {
270
- [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
271
- } & {};
272
-
273
- type _Merge<U extends object> = IntersectOf<
274
- Overwrite<
275
- U,
276
- {
277
- [K in keyof U]-?: At<U, K>;
278
- }
279
- >
280
- >;
281
-
282
- type Key = string | number | symbol;
283
- type AtStrict<O extends object, K extends Key> = O[K & keyof O];
284
- type AtLoose<O extends object, K extends Key> = O extends unknown
285
- ? AtStrict<O, K>
286
- : never;
287
- export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
288
- 1: AtStrict<O, K>;
289
- 0: AtLoose<O, K>;
290
- }[strict];
291
-
292
- export type ComputeRaw<A extends any> = A extends Function
293
- ? A
294
- : {
295
- [K in keyof A]: A[K];
296
- } & {};
297
-
298
- export type OptionalFlat<O> = {
299
- [K in keyof O]?: O[K];
300
- } & {};
301
-
302
- type _Record<K extends keyof any, T> = {
303
- [P in K]: T;
304
- };
305
-
306
- // cause typescript not to expand types and preserve names
307
- type NoExpand<T> = T extends unknown ? T : never;
308
-
309
- // this type assumes the passed object is entirely optional
310
- export type AtLeast<O extends object, K extends string> = NoExpand<
311
- O extends unknown
312
- ?
313
- | (K extends keyof O ? { [P in K]: O[P] } & O : O)
314
- | ({ [P in keyof O as P extends K ? P : never]-?: O[P] } & O)
315
- : never
316
- >;
317
-
318
- type _Strict<U, _U = U> = U extends unknown
319
- ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>>
320
- : never;
321
-
322
- export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
323
- /** End Helper Types for "Merge" **/
324
-
325
- export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
326
-
327
- export type Boolean = True | False;
328
-
329
- export type True = 1;
330
-
331
- export type False = 0;
332
-
333
- export type Not<B extends Boolean> = {
334
- 0: 1;
335
- 1: 0;
336
- }[B];
337
-
338
- export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
339
- ? 0 // anything `never` is false
340
- : A1 extends A2
341
- ? 1
342
- : 0;
343
-
344
- export type Has<U extends Union, U1 extends Union> = Not<
345
- Extends<Exclude<U1, U>, U1>
346
- >;
347
-
348
- export type Or<B1 extends Boolean, B2 extends Boolean> = {
349
- 0: {
350
- 0: 0;
351
- 1: 1;
352
- };
353
- 1: {
354
- 0: 1;
355
- 1: 1;
356
- };
357
- }[B1][B2];
358
-
359
- export type Keys<U extends Union> = U extends unknown ? keyof U : never;
360
-
361
- export type GetScalarType<T, O> = O extends object
362
- ? {
363
- [P in keyof T]: P extends keyof O ? O[P] : never;
364
- }
365
- : never;
366
-
367
- type FieldPaths<T, U = Omit<T, "_avg" | "_sum" | "_count" | "_min" | "_max">> =
368
- IsObject<T> extends True ? U : T;
369
-
370
- export type GetHavingFields<T> = {
371
- [K in keyof T]: Or<
372
- Or<Extends<"OR", K>, Extends<"AND", K>>,
373
- Extends<"NOT", K>
374
- > extends True
375
- ? // infer is only needed to not hit TS limit
376
- // based on the brilliant idea of Pierre-Antoine Mills
377
- // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
378
- T[K] extends infer TK
379
- ? GetHavingFields<
380
- UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never
381
- >
382
- : never
383
- : {} extends FieldPaths<T[K]>
384
- ? never
385
- : K;
386
- }[keyof T];
387
-
388
- /**
389
- * Convert tuple to union
390
- */
391
- type _TupleToUnion<T> = T extends (infer E)[] ? E : never;
392
- type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>;
393
- export type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T;
394
-
395
- /**
396
- * Like `Pick`, but additionally can also accept an array of keys
397
- */
398
- export type PickEnumerable<
399
- T,
400
- K extends Enumerable<keyof T> | keyof T,
401
- > = Prisma__Pick<T, MaybeTupleToUnion<K>>;
402
-
403
- /**
404
- * Exclude all keys with underscores
405
- */
406
- export type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}`
407
- ? never
408
- : T;
409
-
410
- export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>;
411
-
412
- type FieldRefInputType<Model, FieldType> = Model extends never
413
- ? never
414
- : FieldRef<Model, FieldType>;
415
-
416
- export const ModelName = {
417
- User: "User",
418
- Post: "Post",
419
- Account: "Account",
420
- Session: "Session",
421
- VerificationToken: "VerificationToken",
422
- Job: "Job",
423
- AuditLog: "AuditLog",
424
- } as const;
425
-
426
- export type ModelName = (typeof ModelName)[keyof typeof ModelName];
427
-
428
- export interface TypeMapCb<GlobalOmitOptions = {}>
429
- extends runtime.Types.Utils.Fn<
430
- { extArgs: runtime.Types.Extensions.InternalArgs },
431
- runtime.Types.Utils.Record<string, any>
432
- > {
433
- returns: TypeMap<this["params"]["extArgs"], GlobalOmitOptions>;
434
- }
435
-
436
- export type TypeMap<
437
- ExtArgs extends
438
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
439
- GlobalOmitOptions = {},
440
- > = {
441
- globalOmitOptions: {
442
- omit: GlobalOmitOptions;
443
- };
444
- meta: {
445
- modelProps:
446
- | "user"
447
- | "post"
448
- | "account"
449
- | "session"
450
- | "verificationToken"
451
- | "job"
452
- | "auditLog";
453
- txIsolationLevel: TransactionIsolationLevel;
454
- };
455
- model: {
456
- User: {
457
- payload: Prisma.$UserPayload<ExtArgs>;
458
- fields: Prisma.UserFieldRefs;
459
- operations: {
460
- findUnique: {
461
- args: Prisma.UserFindUniqueArgs<ExtArgs>;
462
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload> | null;
463
- };
464
- findUniqueOrThrow: {
465
- args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs>;
466
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
467
- };
468
- findFirst: {
469
- args: Prisma.UserFindFirstArgs<ExtArgs>;
470
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload> | null;
471
- };
472
- findFirstOrThrow: {
473
- args: Prisma.UserFindFirstOrThrowArgs<ExtArgs>;
474
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
475
- };
476
- findMany: {
477
- args: Prisma.UserFindManyArgs<ExtArgs>;
478
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[];
479
- };
480
- create: {
481
- args: Prisma.UserCreateArgs<ExtArgs>;
482
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
483
- };
484
- createMany: {
485
- args: Prisma.UserCreateManyArgs<ExtArgs>;
486
- result: BatchPayload;
487
- };
488
- createManyAndReturn: {
489
- args: Prisma.UserCreateManyAndReturnArgs<ExtArgs>;
490
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[];
491
- };
492
- delete: {
493
- args: Prisma.UserDeleteArgs<ExtArgs>;
494
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
495
- };
496
- update: {
497
- args: Prisma.UserUpdateArgs<ExtArgs>;
498
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
499
- };
500
- deleteMany: {
501
- args: Prisma.UserDeleteManyArgs<ExtArgs>;
502
- result: BatchPayload;
503
- };
504
- updateMany: {
505
- args: Prisma.UserUpdateManyArgs<ExtArgs>;
506
- result: BatchPayload;
507
- };
508
- updateManyAndReturn: {
509
- args: Prisma.UserUpdateManyAndReturnArgs<ExtArgs>;
510
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[];
511
- };
512
- upsert: {
513
- args: Prisma.UserUpsertArgs<ExtArgs>;
514
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
515
- };
516
- aggregate: {
517
- args: Prisma.UserAggregateArgs<ExtArgs>;
518
- result: runtime.Types.Utils.Optional<Prisma.AggregateUser>;
519
- };
520
- groupBy: {
521
- args: Prisma.UserGroupByArgs<ExtArgs>;
522
- result: runtime.Types.Utils.Optional<Prisma.UserGroupByOutputType>[];
523
- };
524
- count: {
525
- args: Prisma.UserCountArgs<ExtArgs>;
526
- result:
527
- | runtime.Types.Utils.Optional<Prisma.UserCountAggregateOutputType>
528
- | number;
529
- };
530
- };
531
- };
532
- Post: {
533
- payload: Prisma.$PostPayload<ExtArgs>;
534
- fields: Prisma.PostFieldRefs;
535
- operations: {
536
- findUnique: {
537
- args: Prisma.PostFindUniqueArgs<ExtArgs>;
538
- result: runtime.Types.Utils.PayloadToResult<Prisma.$PostPayload> | null;
539
- };
540
- findUniqueOrThrow: {
541
- args: Prisma.PostFindUniqueOrThrowArgs<ExtArgs>;
542
- result: runtime.Types.Utils.PayloadToResult<Prisma.$PostPayload>;
543
- };
544
- findFirst: {
545
- args: Prisma.PostFindFirstArgs<ExtArgs>;
546
- result: runtime.Types.Utils.PayloadToResult<Prisma.$PostPayload> | null;
547
- };
548
- findFirstOrThrow: {
549
- args: Prisma.PostFindFirstOrThrowArgs<ExtArgs>;
550
- result: runtime.Types.Utils.PayloadToResult<Prisma.$PostPayload>;
551
- };
552
- findMany: {
553
- args: Prisma.PostFindManyArgs<ExtArgs>;
554
- result: runtime.Types.Utils.PayloadToResult<Prisma.$PostPayload>[];
555
- };
556
- create: {
557
- args: Prisma.PostCreateArgs<ExtArgs>;
558
- result: runtime.Types.Utils.PayloadToResult<Prisma.$PostPayload>;
559
- };
560
- createMany: {
561
- args: Prisma.PostCreateManyArgs<ExtArgs>;
562
- result: BatchPayload;
563
- };
564
- createManyAndReturn: {
565
- args: Prisma.PostCreateManyAndReturnArgs<ExtArgs>;
566
- result: runtime.Types.Utils.PayloadToResult<Prisma.$PostPayload>[];
567
- };
568
- delete: {
569
- args: Prisma.PostDeleteArgs<ExtArgs>;
570
- result: runtime.Types.Utils.PayloadToResult<Prisma.$PostPayload>;
571
- };
572
- update: {
573
- args: Prisma.PostUpdateArgs<ExtArgs>;
574
- result: runtime.Types.Utils.PayloadToResult<Prisma.$PostPayload>;
575
- };
576
- deleteMany: {
577
- args: Prisma.PostDeleteManyArgs<ExtArgs>;
578
- result: BatchPayload;
579
- };
580
- updateMany: {
581
- args: Prisma.PostUpdateManyArgs<ExtArgs>;
582
- result: BatchPayload;
583
- };
584
- updateManyAndReturn: {
585
- args: Prisma.PostUpdateManyAndReturnArgs<ExtArgs>;
586
- result: runtime.Types.Utils.PayloadToResult<Prisma.$PostPayload>[];
587
- };
588
- upsert: {
589
- args: Prisma.PostUpsertArgs<ExtArgs>;
590
- result: runtime.Types.Utils.PayloadToResult<Prisma.$PostPayload>;
591
- };
592
- aggregate: {
593
- args: Prisma.PostAggregateArgs<ExtArgs>;
594
- result: runtime.Types.Utils.Optional<Prisma.AggregatePost>;
595
- };
596
- groupBy: {
597
- args: Prisma.PostGroupByArgs<ExtArgs>;
598
- result: runtime.Types.Utils.Optional<Prisma.PostGroupByOutputType>[];
599
- };
600
- count: {
601
- args: Prisma.PostCountArgs<ExtArgs>;
602
- result:
603
- | runtime.Types.Utils.Optional<Prisma.PostCountAggregateOutputType>
604
- | number;
605
- };
606
- };
607
- };
608
- Account: {
609
- payload: Prisma.$AccountPayload<ExtArgs>;
610
- fields: Prisma.AccountFieldRefs;
611
- operations: {
612
- findUnique: {
613
- args: Prisma.AccountFindUniqueArgs<ExtArgs>;
614
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AccountPayload> | null;
615
- };
616
- findUniqueOrThrow: {
617
- args: Prisma.AccountFindUniqueOrThrowArgs<ExtArgs>;
618
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AccountPayload>;
619
- };
620
- findFirst: {
621
- args: Prisma.AccountFindFirstArgs<ExtArgs>;
622
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AccountPayload> | null;
623
- };
624
- findFirstOrThrow: {
625
- args: Prisma.AccountFindFirstOrThrowArgs<ExtArgs>;
626
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AccountPayload>;
627
- };
628
- findMany: {
629
- args: Prisma.AccountFindManyArgs<ExtArgs>;
630
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AccountPayload>[];
631
- };
632
- create: {
633
- args: Prisma.AccountCreateArgs<ExtArgs>;
634
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AccountPayload>;
635
- };
636
- createMany: {
637
- args: Prisma.AccountCreateManyArgs<ExtArgs>;
638
- result: BatchPayload;
639
- };
640
- createManyAndReturn: {
641
- args: Prisma.AccountCreateManyAndReturnArgs<ExtArgs>;
642
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AccountPayload>[];
643
- };
644
- delete: {
645
- args: Prisma.AccountDeleteArgs<ExtArgs>;
646
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AccountPayload>;
647
- };
648
- update: {
649
- args: Prisma.AccountUpdateArgs<ExtArgs>;
650
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AccountPayload>;
651
- };
652
- deleteMany: {
653
- args: Prisma.AccountDeleteManyArgs<ExtArgs>;
654
- result: BatchPayload;
655
- };
656
- updateMany: {
657
- args: Prisma.AccountUpdateManyArgs<ExtArgs>;
658
- result: BatchPayload;
659
- };
660
- updateManyAndReturn: {
661
- args: Prisma.AccountUpdateManyAndReturnArgs<ExtArgs>;
662
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AccountPayload>[];
663
- };
664
- upsert: {
665
- args: Prisma.AccountUpsertArgs<ExtArgs>;
666
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AccountPayload>;
667
- };
668
- aggregate: {
669
- args: Prisma.AccountAggregateArgs<ExtArgs>;
670
- result: runtime.Types.Utils.Optional<Prisma.AggregateAccount>;
671
- };
672
- groupBy: {
673
- args: Prisma.AccountGroupByArgs<ExtArgs>;
674
- result: runtime.Types.Utils.Optional<Prisma.AccountGroupByOutputType>[];
675
- };
676
- count: {
677
- args: Prisma.AccountCountArgs<ExtArgs>;
678
- result:
679
- | runtime.Types.Utils.Optional<Prisma.AccountCountAggregateOutputType>
680
- | number;
681
- };
682
- };
683
- };
684
- Session: {
685
- payload: Prisma.$SessionPayload<ExtArgs>;
686
- fields: Prisma.SessionFieldRefs;
687
- operations: {
688
- findUnique: {
689
- args: Prisma.SessionFindUniqueArgs<ExtArgs>;
690
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload> | null;
691
- };
692
- findUniqueOrThrow: {
693
- args: Prisma.SessionFindUniqueOrThrowArgs<ExtArgs>;
694
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>;
695
- };
696
- findFirst: {
697
- args: Prisma.SessionFindFirstArgs<ExtArgs>;
698
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload> | null;
699
- };
700
- findFirstOrThrow: {
701
- args: Prisma.SessionFindFirstOrThrowArgs<ExtArgs>;
702
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>;
703
- };
704
- findMany: {
705
- args: Prisma.SessionFindManyArgs<ExtArgs>;
706
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>[];
707
- };
708
- create: {
709
- args: Prisma.SessionCreateArgs<ExtArgs>;
710
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>;
711
- };
712
- createMany: {
713
- args: Prisma.SessionCreateManyArgs<ExtArgs>;
714
- result: BatchPayload;
715
- };
716
- createManyAndReturn: {
717
- args: Prisma.SessionCreateManyAndReturnArgs<ExtArgs>;
718
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>[];
719
- };
720
- delete: {
721
- args: Prisma.SessionDeleteArgs<ExtArgs>;
722
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>;
723
- };
724
- update: {
725
- args: Prisma.SessionUpdateArgs<ExtArgs>;
726
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>;
727
- };
728
- deleteMany: {
729
- args: Prisma.SessionDeleteManyArgs<ExtArgs>;
730
- result: BatchPayload;
731
- };
732
- updateMany: {
733
- args: Prisma.SessionUpdateManyArgs<ExtArgs>;
734
- result: BatchPayload;
735
- };
736
- updateManyAndReturn: {
737
- args: Prisma.SessionUpdateManyAndReturnArgs<ExtArgs>;
738
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>[];
739
- };
740
- upsert: {
741
- args: Prisma.SessionUpsertArgs<ExtArgs>;
742
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>;
743
- };
744
- aggregate: {
745
- args: Prisma.SessionAggregateArgs<ExtArgs>;
746
- result: runtime.Types.Utils.Optional<Prisma.AggregateSession>;
747
- };
748
- groupBy: {
749
- args: Prisma.SessionGroupByArgs<ExtArgs>;
750
- result: runtime.Types.Utils.Optional<Prisma.SessionGroupByOutputType>[];
751
- };
752
- count: {
753
- args: Prisma.SessionCountArgs<ExtArgs>;
754
- result:
755
- | runtime.Types.Utils.Optional<Prisma.SessionCountAggregateOutputType>
756
- | number;
757
- };
758
- };
759
- };
760
- VerificationToken: {
761
- payload: Prisma.$VerificationTokenPayload<ExtArgs>;
762
- fields: Prisma.VerificationTokenFieldRefs;
763
- operations: {
764
- findUnique: {
765
- args: Prisma.VerificationTokenFindUniqueArgs<ExtArgs>;
766
- result: runtime.Types.Utils.PayloadToResult<Prisma.$VerificationTokenPayload> | null;
767
- };
768
- findUniqueOrThrow: {
769
- args: Prisma.VerificationTokenFindUniqueOrThrowArgs<ExtArgs>;
770
- result: runtime.Types.Utils.PayloadToResult<Prisma.$VerificationTokenPayload>;
771
- };
772
- findFirst: {
773
- args: Prisma.VerificationTokenFindFirstArgs<ExtArgs>;
774
- result: runtime.Types.Utils.PayloadToResult<Prisma.$VerificationTokenPayload> | null;
775
- };
776
- findFirstOrThrow: {
777
- args: Prisma.VerificationTokenFindFirstOrThrowArgs<ExtArgs>;
778
- result: runtime.Types.Utils.PayloadToResult<Prisma.$VerificationTokenPayload>;
779
- };
780
- findMany: {
781
- args: Prisma.VerificationTokenFindManyArgs<ExtArgs>;
782
- result: runtime.Types.Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[];
783
- };
784
- create: {
785
- args: Prisma.VerificationTokenCreateArgs<ExtArgs>;
786
- result: runtime.Types.Utils.PayloadToResult<Prisma.$VerificationTokenPayload>;
787
- };
788
- createMany: {
789
- args: Prisma.VerificationTokenCreateManyArgs<ExtArgs>;
790
- result: BatchPayload;
791
- };
792
- createManyAndReturn: {
793
- args: Prisma.VerificationTokenCreateManyAndReturnArgs<ExtArgs>;
794
- result: runtime.Types.Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[];
795
- };
796
- delete: {
797
- args: Prisma.VerificationTokenDeleteArgs<ExtArgs>;
798
- result: runtime.Types.Utils.PayloadToResult<Prisma.$VerificationTokenPayload>;
799
- };
800
- update: {
801
- args: Prisma.VerificationTokenUpdateArgs<ExtArgs>;
802
- result: runtime.Types.Utils.PayloadToResult<Prisma.$VerificationTokenPayload>;
803
- };
804
- deleteMany: {
805
- args: Prisma.VerificationTokenDeleteManyArgs<ExtArgs>;
806
- result: BatchPayload;
807
- };
808
- updateMany: {
809
- args: Prisma.VerificationTokenUpdateManyArgs<ExtArgs>;
810
- result: BatchPayload;
811
- };
812
- updateManyAndReturn: {
813
- args: Prisma.VerificationTokenUpdateManyAndReturnArgs<ExtArgs>;
814
- result: runtime.Types.Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[];
815
- };
816
- upsert: {
817
- args: Prisma.VerificationTokenUpsertArgs<ExtArgs>;
818
- result: runtime.Types.Utils.PayloadToResult<Prisma.$VerificationTokenPayload>;
819
- };
820
- aggregate: {
821
- args: Prisma.VerificationTokenAggregateArgs<ExtArgs>;
822
- result: runtime.Types.Utils.Optional<Prisma.AggregateVerificationToken>;
823
- };
824
- groupBy: {
825
- args: Prisma.VerificationTokenGroupByArgs<ExtArgs>;
826
- result: runtime.Types.Utils.Optional<Prisma.VerificationTokenGroupByOutputType>[];
827
- };
828
- count: {
829
- args: Prisma.VerificationTokenCountArgs<ExtArgs>;
830
- result:
831
- | runtime.Types.Utils.Optional<Prisma.VerificationTokenCountAggregateOutputType>
832
- | number;
833
- };
834
- };
835
- };
836
- Job: {
837
- payload: Prisma.$JobPayload<ExtArgs>;
838
- fields: Prisma.JobFieldRefs;
839
- operations: {
840
- findUnique: {
841
- args: Prisma.JobFindUniqueArgs<ExtArgs>;
842
- result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload> | null;
843
- };
844
- findUniqueOrThrow: {
845
- args: Prisma.JobFindUniqueOrThrowArgs<ExtArgs>;
846
- result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>;
847
- };
848
- findFirst: {
849
- args: Prisma.JobFindFirstArgs<ExtArgs>;
850
- result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload> | null;
851
- };
852
- findFirstOrThrow: {
853
- args: Prisma.JobFindFirstOrThrowArgs<ExtArgs>;
854
- result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>;
855
- };
856
- findMany: {
857
- args: Prisma.JobFindManyArgs<ExtArgs>;
858
- result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>[];
859
- };
860
- create: {
861
- args: Prisma.JobCreateArgs<ExtArgs>;
862
- result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>;
863
- };
864
- createMany: {
865
- args: Prisma.JobCreateManyArgs<ExtArgs>;
866
- result: BatchPayload;
867
- };
868
- createManyAndReturn: {
869
- args: Prisma.JobCreateManyAndReturnArgs<ExtArgs>;
870
- result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>[];
871
- };
872
- delete: {
873
- args: Prisma.JobDeleteArgs<ExtArgs>;
874
- result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>;
875
- };
876
- update: {
877
- args: Prisma.JobUpdateArgs<ExtArgs>;
878
- result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>;
879
- };
880
- deleteMany: {
881
- args: Prisma.JobDeleteManyArgs<ExtArgs>;
882
- result: BatchPayload;
883
- };
884
- updateMany: {
885
- args: Prisma.JobUpdateManyArgs<ExtArgs>;
886
- result: BatchPayload;
887
- };
888
- updateManyAndReturn: {
889
- args: Prisma.JobUpdateManyAndReturnArgs<ExtArgs>;
890
- result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>[];
891
- };
892
- upsert: {
893
- args: Prisma.JobUpsertArgs<ExtArgs>;
894
- result: runtime.Types.Utils.PayloadToResult<Prisma.$JobPayload>;
895
- };
896
- aggregate: {
897
- args: Prisma.JobAggregateArgs<ExtArgs>;
898
- result: runtime.Types.Utils.Optional<Prisma.AggregateJob>;
899
- };
900
- groupBy: {
901
- args: Prisma.JobGroupByArgs<ExtArgs>;
902
- result: runtime.Types.Utils.Optional<Prisma.JobGroupByOutputType>[];
903
- };
904
- count: {
905
- args: Prisma.JobCountArgs<ExtArgs>;
906
- result:
907
- | runtime.Types.Utils.Optional<Prisma.JobCountAggregateOutputType>
908
- | number;
909
- };
910
- };
911
- };
912
- AuditLog: {
913
- payload: Prisma.$AuditLogPayload<ExtArgs>;
914
- fields: Prisma.AuditLogFieldRefs;
915
- operations: {
916
- findUnique: {
917
- args: Prisma.AuditLogFindUniqueArgs<ExtArgs>;
918
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AuditLogPayload> | null;
919
- };
920
- findUniqueOrThrow: {
921
- args: Prisma.AuditLogFindUniqueOrThrowArgs<ExtArgs>;
922
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AuditLogPayload>;
923
- };
924
- findFirst: {
925
- args: Prisma.AuditLogFindFirstArgs<ExtArgs>;
926
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AuditLogPayload> | null;
927
- };
928
- findFirstOrThrow: {
929
- args: Prisma.AuditLogFindFirstOrThrowArgs<ExtArgs>;
930
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AuditLogPayload>;
931
- };
932
- findMany: {
933
- args: Prisma.AuditLogFindManyArgs<ExtArgs>;
934
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AuditLogPayload>[];
935
- };
936
- create: {
937
- args: Prisma.AuditLogCreateArgs<ExtArgs>;
938
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AuditLogPayload>;
939
- };
940
- createMany: {
941
- args: Prisma.AuditLogCreateManyArgs<ExtArgs>;
942
- result: BatchPayload;
943
- };
944
- createManyAndReturn: {
945
- args: Prisma.AuditLogCreateManyAndReturnArgs<ExtArgs>;
946
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AuditLogPayload>[];
947
- };
948
- delete: {
949
- args: Prisma.AuditLogDeleteArgs<ExtArgs>;
950
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AuditLogPayload>;
951
- };
952
- update: {
953
- args: Prisma.AuditLogUpdateArgs<ExtArgs>;
954
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AuditLogPayload>;
955
- };
956
- deleteMany: {
957
- args: Prisma.AuditLogDeleteManyArgs<ExtArgs>;
958
- result: BatchPayload;
959
- };
960
- updateMany: {
961
- args: Prisma.AuditLogUpdateManyArgs<ExtArgs>;
962
- result: BatchPayload;
963
- };
964
- updateManyAndReturn: {
965
- args: Prisma.AuditLogUpdateManyAndReturnArgs<ExtArgs>;
966
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AuditLogPayload>[];
967
- };
968
- upsert: {
969
- args: Prisma.AuditLogUpsertArgs<ExtArgs>;
970
- result: runtime.Types.Utils.PayloadToResult<Prisma.$AuditLogPayload>;
971
- };
972
- aggregate: {
973
- args: Prisma.AuditLogAggregateArgs<ExtArgs>;
974
- result: runtime.Types.Utils.Optional<Prisma.AggregateAuditLog>;
975
- };
976
- groupBy: {
977
- args: Prisma.AuditLogGroupByArgs<ExtArgs>;
978
- result: runtime.Types.Utils.Optional<Prisma.AuditLogGroupByOutputType>[];
979
- };
980
- count: {
981
- args: Prisma.AuditLogCountArgs<ExtArgs>;
982
- result:
983
- | runtime.Types.Utils.Optional<Prisma.AuditLogCountAggregateOutputType>
984
- | number;
985
- };
986
- };
987
- };
988
- };
989
- } & {
990
- other: {
991
- payload: any;
992
- operations: {
993
- $executeRaw: {
994
- args: [query: TemplateStringsArray | Sql, ...values: any[]];
995
- result: any;
996
- };
997
- $executeRawUnsafe: {
998
- args: [query: string, ...values: any[]];
999
- result: any;
1000
- };
1001
- $queryRaw: {
1002
- args: [query: TemplateStringsArray | Sql, ...values: any[]];
1003
- result: any;
1004
- };
1005
- $queryRawUnsafe: {
1006
- args: [query: string, ...values: any[]];
1007
- result: any;
1008
- };
1009
- };
1010
- };
1011
- };
1012
-
1013
- /**
1014
- * Enums
1015
- */
1016
-
1017
- export const TransactionIsolationLevel = runtime.makeStrictEnum({
1018
- ReadUncommitted: "ReadUncommitted",
1019
- ReadCommitted: "ReadCommitted",
1020
- RepeatableRead: "RepeatableRead",
1021
- Serializable: "Serializable",
1022
- } as const);
1023
-
1024
- export type TransactionIsolationLevel =
1025
- (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel];
1026
-
1027
- export const UserScalarFieldEnum = {
1028
- id: "id",
1029
- email: "email",
1030
- emailVerified: "emailVerified",
1031
- name: "name",
1032
- image: "image",
1033
- createdAt: "createdAt",
1034
- updatedAt: "updatedAt",
1035
- } as const;
1036
-
1037
- export type UserScalarFieldEnum =
1038
- (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum];
1039
-
1040
- export const PostScalarFieldEnum = {
1041
- id: "id",
1042
- title: "title",
1043
- content: "content",
1044
- published: "published",
1045
- authorId: "authorId",
1046
- createdAt: "createdAt",
1047
- updatedAt: "updatedAt",
1048
- } as const;
1049
-
1050
- export type PostScalarFieldEnum =
1051
- (typeof PostScalarFieldEnum)[keyof typeof PostScalarFieldEnum];
1052
-
1053
- export const AccountScalarFieldEnum = {
1054
- id: "id",
1055
- userId: "userId",
1056
- type: "type",
1057
- provider: "provider",
1058
- providerAccountId: "providerAccountId",
1059
- refresh_token: "refresh_token",
1060
- access_token: "access_token",
1061
- expires_at: "expires_at",
1062
- token_type: "token_type",
1063
- scope: "scope",
1064
- id_token: "id_token",
1065
- session_state: "session_state",
1066
- } as const;
1067
-
1068
- export type AccountScalarFieldEnum =
1069
- (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum];
1070
-
1071
- export const SessionScalarFieldEnum = {
1072
- id: "id",
1073
- sessionToken: "sessionToken",
1074
- userId: "userId",
1075
- expires: "expires",
1076
- createdAt: "createdAt",
1077
- updatedAt: "updatedAt",
1078
- } as const;
1079
-
1080
- export type SessionScalarFieldEnum =
1081
- (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum];
1082
-
1083
- export const VerificationTokenScalarFieldEnum = {
1084
- identifier: "identifier",
1085
- token: "token",
1086
- expires: "expires",
1087
- createdAt: "createdAt",
1088
- } as const;
1089
-
1090
- export type VerificationTokenScalarFieldEnum =
1091
- (typeof VerificationTokenScalarFieldEnum)[keyof typeof VerificationTokenScalarFieldEnum];
1092
-
1093
- export const JobScalarFieldEnum = {
1094
- id: "id",
1095
- queue: "queue",
1096
- name: "name",
1097
- data: "data",
1098
- status: "status",
1099
- error: "error",
1100
- attempts: "attempts",
1101
- maxRetries: "maxRetries",
1102
- runAt: "runAt",
1103
- startedAt: "startedAt",
1104
- completedAt: "completedAt",
1105
- createdAt: "createdAt",
1106
- updatedAt: "updatedAt",
1107
- } as const;
1108
-
1109
- export type JobScalarFieldEnum =
1110
- (typeof JobScalarFieldEnum)[keyof typeof JobScalarFieldEnum];
1111
-
1112
- export const AuditLogScalarFieldEnum = {
1113
- id: "id",
1114
- userId: "userId",
1115
- action: "action",
1116
- entity: "entity",
1117
- entityId: "entityId",
1118
- changes: "changes",
1119
- metadata: "metadata",
1120
- createdAt: "createdAt",
1121
- } as const;
1122
-
1123
- export type AuditLogScalarFieldEnum =
1124
- (typeof AuditLogScalarFieldEnum)[keyof typeof AuditLogScalarFieldEnum];
1125
-
1126
- export const SortOrder = {
1127
- asc: "asc",
1128
- desc: "desc",
1129
- } as const;
1130
-
1131
- export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
1132
-
1133
- export const NullableJsonNullValueInput = {
1134
- DbNull: DbNull,
1135
- JsonNull: JsonNull,
1136
- } as const;
1137
-
1138
- export type NullableJsonNullValueInput =
1139
- (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput];
1140
-
1141
- export const QueryMode = {
1142
- default: "default",
1143
- insensitive: "insensitive",
1144
- } as const;
1145
-
1146
- export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode];
1147
-
1148
- export const NullsOrder = {
1149
- first: "first",
1150
- last: "last",
1151
- } as const;
1152
-
1153
- export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder];
1154
-
1155
- export const JsonNullValueFilter = {
1156
- DbNull: DbNull,
1157
- JsonNull: JsonNull,
1158
- AnyNull: AnyNull,
1159
- } as const;
1160
-
1161
- export type JsonNullValueFilter =
1162
- (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter];
1163
-
1164
- /**
1165
- * Field references
1166
- */
1167
-
1168
- /**
1169
- * Reference to a field of type 'String'
1170
- */
1171
- export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<
1172
- $PrismaModel,
1173
- "String"
1174
- >;
1175
-
1176
- /**
1177
- * Reference to a field of type 'String[]'
1178
- */
1179
- export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<
1180
- $PrismaModel,
1181
- "String[]"
1182
- >;
1183
-
1184
- /**
1185
- * Reference to a field of type 'DateTime'
1186
- */
1187
- export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<
1188
- $PrismaModel,
1189
- "DateTime"
1190
- >;
1191
-
1192
- /**
1193
- * Reference to a field of type 'DateTime[]'
1194
- */
1195
- export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<
1196
- $PrismaModel,
1197
- "DateTime[]"
1198
- >;
1199
-
1200
- /**
1201
- * Reference to a field of type 'Boolean'
1202
- */
1203
- export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<
1204
- $PrismaModel,
1205
- "Boolean"
1206
- >;
1207
-
1208
- /**
1209
- * Reference to a field of type 'Int'
1210
- */
1211
- export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<
1212
- $PrismaModel,
1213
- "Int"
1214
- >;
1215
-
1216
- /**
1217
- * Reference to a field of type 'Int[]'
1218
- */
1219
- export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<
1220
- $PrismaModel,
1221
- "Int[]"
1222
- >;
1223
-
1224
- /**
1225
- * Reference to a field of type 'Json'
1226
- */
1227
- export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<
1228
- $PrismaModel,
1229
- "Json"
1230
- >;
1231
-
1232
- /**
1233
- * Reference to a field of type 'QueryMode'
1234
- */
1235
- export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<
1236
- $PrismaModel,
1237
- "QueryMode"
1238
- >;
1239
-
1240
- /**
1241
- * Reference to a field of type 'JobStatus'
1242
- */
1243
- export type EnumJobStatusFieldRefInput<$PrismaModel> = FieldRefInputType<
1244
- $PrismaModel,
1245
- "JobStatus"
1246
- >;
1247
-
1248
- /**
1249
- * Reference to a field of type 'JobStatus[]'
1250
- */
1251
- export type ListEnumJobStatusFieldRefInput<$PrismaModel> = FieldRefInputType<
1252
- $PrismaModel,
1253
- "JobStatus[]"
1254
- >;
1255
-
1256
- /**
1257
- * Reference to a field of type 'Float'
1258
- */
1259
- export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<
1260
- $PrismaModel,
1261
- "Float"
1262
- >;
1263
-
1264
- /**
1265
- * Reference to a field of type 'Float[]'
1266
- */
1267
- export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<
1268
- $PrismaModel,
1269
- "Float[]"
1270
- >;
1271
-
1272
- /**
1273
- * Batch Payload for updateMany & deleteMany & createMany
1274
- */
1275
- export type BatchPayload = {
1276
- count: number;
1277
- };
1278
-
1279
- export const defineExtension = runtime.Extensions
1280
- .defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<
1281
- "define",
1282
- TypeMapCb,
1283
- runtime.Types.Extensions.DefaultArgs
1284
- >;
1285
- export type DefaultPrismaClient = PrismaClient;
1286
- export type ErrorFormat = "pretty" | "colorless" | "minimal";
1287
- export type PrismaClientOptions = (
1288
- | {
1289
- /**
1290
- * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`.
1291
- */
1292
- adapter: runtime.SqlDriverAdapterFactory;
1293
- accelerateUrl?: never;
1294
- }
1295
- | {
1296
- /**
1297
- * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database.
1298
- */
1299
- accelerateUrl: string;
1300
- adapter?: never;
1301
- }
1302
- ) & {
1303
- /**
1304
- * @default "colorless"
1305
- */
1306
- errorFormat?: ErrorFormat;
1307
- /**
1308
- * @example
1309
- * ```
1310
- * // Shorthand for `emit: 'stdout'`
1311
- * log: ['query', 'info', 'warn', 'error']
1312
- *
1313
- * // Emit as events only
1314
- * log: [
1315
- * { emit: 'event', level: 'query' },
1316
- * { emit: 'event', level: 'info' },
1317
- * { emit: 'event', level: 'warn' }
1318
- * { emit: 'event', level: 'error' }
1319
- * ]
1320
- *
1321
- * / Emit as events and log to stdout
1322
- * og: [
1323
- * { emit: 'stdout', level: 'query' },
1324
- * { emit: 'stdout', level: 'info' },
1325
- * { emit: 'stdout', level: 'warn' }
1326
- * { emit: 'stdout', level: 'error' }
1327
- *
1328
- * ```
1329
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
1330
- */
1331
- log?: (LogLevel | LogDefinition)[];
1332
- /**
1333
- * The default values for transactionOptions
1334
- * maxWait ?= 2000
1335
- * timeout ?= 5000
1336
- */
1337
- transactionOptions?: {
1338
- maxWait?: number;
1339
- timeout?: number;
1340
- isolationLevel?: TransactionIsolationLevel;
1341
- };
1342
- /**
1343
- * Global configuration for omitting model fields by default.
1344
- *
1345
- * @example
1346
- * ```
1347
- * const prisma = new PrismaClient({
1348
- * omit: {
1349
- * user: {
1350
- * password: true
1351
- * }
1352
- * }
1353
- * })
1354
- * ```
1355
- */
1356
- omit?: GlobalOmitConfig;
1357
- };
1358
- export type GlobalOmitConfig = {
1359
- user?: Prisma.UserOmit;
1360
- post?: Prisma.PostOmit;
1361
- account?: Prisma.AccountOmit;
1362
- session?: Prisma.SessionOmit;
1363
- verificationToken?: Prisma.VerificationTokenOmit;
1364
- job?: Prisma.JobOmit;
1365
- auditLog?: Prisma.AuditLogOmit;
1366
- };
1367
-
1368
- /* Types for Logging */
1369
- export type LogLevel = "info" | "query" | "warn" | "error";
1370
- export type LogDefinition = {
1371
- level: LogLevel;
1372
- emit: "stdout" | "event";
1373
- };
1374
-
1375
- export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
1376
-
1377
- export type GetLogType<T> = CheckIsLogLevel<
1378
- T extends LogDefinition ? T["level"] : T
1379
- >;
1380
-
1381
- export type GetEvents<T extends any[]> =
1382
- T extends Array<LogLevel | LogDefinition> ? GetLogType<T[number]> : never;
1383
-
1384
- export type QueryEvent = {
1385
- timestamp: Date;
1386
- query: string;
1387
- params: string;
1388
- duration: number;
1389
- target: string;
1390
- };
1391
-
1392
- export type LogEvent = {
1393
- timestamp: Date;
1394
- message: string;
1395
- target: string;
1396
- };
1397
- /* End Types for Logging */
1398
-
1399
- export type PrismaAction =
1400
- | "findUnique"
1401
- | "findUniqueOrThrow"
1402
- | "findMany"
1403
- | "findFirst"
1404
- | "findFirstOrThrow"
1405
- | "create"
1406
- | "createMany"
1407
- | "createManyAndReturn"
1408
- | "update"
1409
- | "updateMany"
1410
- | "updateManyAndReturn"
1411
- | "upsert"
1412
- | "delete"
1413
- | "deleteMany"
1414
- | "executeRaw"
1415
- | "queryRaw"
1416
- | "aggregate"
1417
- | "count"
1418
- | "runCommandRaw"
1419
- | "findRaw"
1420
- | "groupBy";
1421
-
1422
- /**
1423
- * `PrismaClient` proxy available in interactive transactions.
1424
- */
1425
- export type TransactionClient = Omit<
1426
- DefaultPrismaClient,
1427
- runtime.ITXClientDenyList
1428
- >;