/
test.ts.snap
19398 lines (17716 loc) · 571 KB
/
test.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`exhaustive-schema: generatedBrowserJS 1`] = `
Object.defineProperty(exports, "__esModule", { value: true });
const {
Decimal,
objectEnumValues
} = require('@prisma/client/runtime/index-browser')
const Prisma = {}
exports.Prisma = Prisma
/**
* Prisma Client JS version: local
* Query Engine version: local
*/
Prisma.prismaVersion = {
client: "local",
engine: "local"
}
Prisma.PrismaClientKnownRequestError = () => {
throw new Error(\`PrismaClientKnownRequestError is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues\`,
)};
Prisma.PrismaClientUnknownRequestError = () => {
throw new Error(\`PrismaClientUnknownRequestError is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues\`,
)}
Prisma.PrismaClientRustPanicError = () => {
throw new Error(\`PrismaClientRustPanicError is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues\`,
)}
Prisma.PrismaClientInitializationError = () => {
throw new Error(\`PrismaClientInitializationError is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues\`,
)}
Prisma.PrismaClientValidationError = () => {
throw new Error(\`PrismaClientValidationError is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues\`,
)}
Prisma.NotFoundError = () => {
throw new Error(\`NotFoundError is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues\`,
)}
Prisma.Decimal = Decimal
/**
* Re-export of sql-template-tag
*/
Prisma.sql = () => {
throw new Error(\`sqltag is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues\`,
)}
Prisma.empty = () => {
throw new Error(\`empty is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues\`,
)}
Prisma.join = () => {
throw new Error(\`join is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues\`,
)}
Prisma.raw = () => {
throw new Error(\`raw is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues\`,
)}
Prisma.validator = () => (val) => val
/**
* Shorthand utilities for JSON filtering
*/
Prisma.DbNull = objectEnumValues.instances.DbNull
Prisma.JsonNull = objectEnumValues.instances.JsonNull
Prisma.AnyNull = objectEnumValues.instances.AnyNull
Prisma.NullTypes = {
DbNull: objectEnumValues.classes.DbNull,
JsonNull: objectEnumValues.classes.JsonNull,
AnyNull: objectEnumValues.classes.AnyNull
}
/**
* Enums
*/
// Based on
// https://github.com/microsoft/TypeScript/issues/3192#issuecomment-261720275
function makeEnum(x) { return x; }
exports.Prisma.PostScalarFieldEnum = makeEnum({
id: 'id',
createdAt: 'createdAt',
title: 'title',
content: 'content',
published: 'published',
authorId: 'authorId'
});
exports.Prisma.UserScalarFieldEnum = makeEnum({
id: 'id',
email: 'email',
int: 'int',
optionalInt: 'optionalInt',
float: 'float',
optionalFloat: 'optionalFloat',
string: 'string',
optionalString: 'optionalString',
json: 'json',
optionalJson: 'optionalJson',
enum: 'enum',
optionalEnum: 'optionalEnum',
boolean: 'boolean',
optionalBoolean: 'optionalBoolean'
});
exports.Prisma.MScalarFieldEnum = makeEnum({
id: 'id',
int: 'int',
optionalInt: 'optionalInt',
float: 'float',
optionalFloat: 'optionalFloat',
string: 'string',
optionalString: 'optionalString',
json: 'json',
optionalJson: 'optionalJson',
enum: 'enum',
optionalEnum: 'optionalEnum',
boolean: 'boolean',
optionalBoolean: 'optionalBoolean'
});
exports.Prisma.NScalarFieldEnum = makeEnum({
id: 'id',
int: 'int',
optionalInt: 'optionalInt',
float: 'float',
optionalFloat: 'optionalFloat',
string: 'string',
optionalString: 'optionalString',
json: 'json',
optionalJson: 'optionalJson',
enum: 'enum',
optionalEnum: 'optionalEnum',
boolean: 'boolean',
optionalBoolean: 'optionalBoolean'
});
exports.Prisma.OneOptionalScalarFieldEnum = makeEnum({
id: 'id',
int: 'int',
optionalInt: 'optionalInt',
float: 'float',
optionalFloat: 'optionalFloat',
string: 'string',
optionalString: 'optionalString',
json: 'json',
optionalJson: 'optionalJson',
enum: 'enum',
optionalEnum: 'optionalEnum',
boolean: 'boolean',
optionalBoolean: 'optionalBoolean'
});
exports.Prisma.ManyRequiredScalarFieldEnum = makeEnum({
id: 'id',
oneOptionalId: 'oneOptionalId',
int: 'int',
optionalInt: 'optionalInt',
float: 'float',
optionalFloat: 'optionalFloat',
string: 'string',
optionalString: 'optionalString',
json: 'json',
optionalJson: 'optionalJson',
enum: 'enum',
optionalEnum: 'optionalEnum',
boolean: 'boolean',
optionalBoolean: 'optionalBoolean'
});
exports.Prisma.OptionalSide1ScalarFieldEnum = makeEnum({
id: 'id',
optionalSide2Id: 'optionalSide2Id',
int: 'int',
optionalInt: 'optionalInt',
float: 'float',
optionalFloat: 'optionalFloat',
string: 'string',
optionalString: 'optionalString',
json: 'json',
optionalJson: 'optionalJson',
enum: 'enum',
optionalEnum: 'optionalEnum',
boolean: 'boolean',
optionalBoolean: 'optionalBoolean'
});
exports.Prisma.OptionalSide2ScalarFieldEnum = makeEnum({
id: 'id',
int: 'int',
optionalInt: 'optionalInt',
float: 'float',
optionalFloat: 'optionalFloat',
string: 'string',
optionalString: 'optionalString',
json: 'json',
optionalJson: 'optionalJson',
enum: 'enum',
optionalEnum: 'optionalEnum',
boolean: 'boolean',
optionalBoolean: 'optionalBoolean'
});
exports.Prisma.AScalarFieldEnum = makeEnum({
id: 'id',
email: 'email',
name: 'name',
int: 'int',
sInt: 'sInt',
bInt: 'bInt',
inc_int: 'inc_int',
inc_sInt: 'inc_sInt',
inc_bInt: 'inc_bInt'
});
exports.Prisma.BScalarFieldEnum = makeEnum({
id: 'id',
float: 'float',
dFloat: 'dFloat',
decFloat: 'decFloat',
numFloat: 'numFloat'
});
exports.Prisma.CScalarFieldEnum = makeEnum({
id: 'id',
char: 'char',
vChar: 'vChar',
text: 'text',
bit: 'bit',
vBit: 'vBit',
uuid: 'uuid'
});
exports.Prisma.DScalarFieldEnum = makeEnum({
id: 'id',
bool: 'bool',
byteA: 'byteA',
xml: 'xml',
json: 'json',
jsonb: 'jsonb',
list: 'list'
});
exports.Prisma.EScalarFieldEnum = makeEnum({
id: 'id',
date: 'date',
time: 'time',
ts: 'ts'
});
exports.Prisma.SortOrder = makeEnum({
asc: 'asc',
desc: 'desc'
});
exports.Prisma.JsonNullValueInput = makeEnum({
JsonNull: Prisma.JsonNull
});
exports.Prisma.NullableJsonNullValueInput = makeEnum({
DbNull: Prisma.DbNull,
JsonNull: Prisma.JsonNull
});
exports.Prisma.QueryMode = makeEnum({
default: 'default',
insensitive: 'insensitive'
});
exports.Prisma.JsonNullValueFilter = makeEnum({
DbNull: Prisma.DbNull,
JsonNull: Prisma.JsonNull,
AnyNull: Prisma.AnyNull
});
exports.ABeautifulEnum = makeEnum({
A: 'A',
B: 'B',
C: 'C'
});
exports.Prisma.ModelName = makeEnum({
Post: 'Post',
User: 'User',
M: 'M',
N: 'N',
OneOptional: 'OneOptional',
ManyRequired: 'ManyRequired',
OptionalSide1: 'OptionalSide1',
OptionalSide2: 'OptionalSide2',
A: 'A',
B: 'B',
C: 'C',
D: 'D',
E: 'E'
});
/**
* Create the Client
*/
class PrismaClient {
constructor() {
throw new Error(
\`PrismaClient is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues\`,
)
}
}
exports.PrismaClient = PrismaClient
Object.assign(exports, Prisma)
`;
exports[`exhaustive-schema: generatedTypeScript 1`] = `
/**
* Client
**/
import * as runtime from '@prisma/client/runtime/index';
declare const prisma: unique symbol
export type PrismaPromise<A> = Promise<A> & {[prisma]: true}
type UnwrapPromise<P extends any> = P extends Promise<infer R> ? R : P
type UnwrapTuple<Tuple extends readonly unknown[]> = {
[K in keyof Tuple]: K extends \`\${number}\` ? Tuple[K] extends PrismaPromise<infer X> ? X : UnwrapPromise<Tuple[K]> : UnwrapPromise<Tuple[K]>
};
/**
* Model Post
*
*/
export type Post = {
id: number
createdAt: Date
title: string
content: string | null
published: boolean
authorId: number
}
/**
* Model User
*
*/
export type User = {
id: number
email: string
int: number
optionalInt: number | null
float: number
optionalFloat: number | null
string: string
optionalString: string | null
json: Prisma.JsonValue
optionalJson: Prisma.JsonValue | null
enum: ABeautifulEnum
optionalEnum: ABeautifulEnum | null
boolean: boolean
optionalBoolean: boolean | null
}
/**
* Model M
*
*/
export type M = {
id: number
int: number
optionalInt: number | null
float: number
optionalFloat: number | null
string: string
optionalString: string | null
json: Prisma.JsonValue
optionalJson: Prisma.JsonValue | null
enum: ABeautifulEnum
optionalEnum: ABeautifulEnum | null
boolean: boolean
optionalBoolean: boolean | null
}
/**
* Model N
*
*/
export type N = {
id: number
int: number
optionalInt: number | null
float: number
optionalFloat: number | null
string: string
optionalString: string | null
json: Prisma.JsonValue
optionalJson: Prisma.JsonValue | null
enum: ABeautifulEnum
optionalEnum: ABeautifulEnum | null
boolean: boolean
optionalBoolean: boolean | null
}
/**
* Model OneOptional
*
*/
export type OneOptional = {
id: number
int: number
optionalInt: number | null
float: number
optionalFloat: number | null
string: string
optionalString: string | null
json: Prisma.JsonValue
optionalJson: Prisma.JsonValue | null
enum: ABeautifulEnum
optionalEnum: ABeautifulEnum | null
boolean: boolean
optionalBoolean: boolean | null
}
/**
* Model ManyRequired
*
*/
export type ManyRequired = {
id: number
oneOptionalId: number | null
int: number
optionalInt: number | null
float: number
optionalFloat: number | null
string: string
optionalString: string | null
json: Prisma.JsonValue
optionalJson: Prisma.JsonValue | null
enum: ABeautifulEnum
optionalEnum: ABeautifulEnum | null
boolean: boolean
optionalBoolean: boolean | null
}
/**
* Model OptionalSide1
*
*/
export type OptionalSide1 = {
id: number
optionalSide2Id: number | null
int: number
optionalInt: number | null
float: number
optionalFloat: number | null
string: string
optionalString: string | null
json: Prisma.JsonValue
optionalJson: Prisma.JsonValue | null
enum: ABeautifulEnum
optionalEnum: ABeautifulEnum | null
boolean: boolean
optionalBoolean: boolean | null
}
/**
* Model OptionalSide2
*
*/
export type OptionalSide2 = {
id: number
int: number
optionalInt: number | null
float: number
optionalFloat: number | null
string: string
optionalString: string | null
json: Prisma.JsonValue
optionalJson: Prisma.JsonValue | null
enum: ABeautifulEnum
optionalEnum: ABeautifulEnum | null
boolean: boolean
optionalBoolean: boolean | null
}
/**
* Model A
* model comment
*/
export type A = {
/**
* field comment 1
*/
id: string
email: string
name: string | null
/**
* field comment 2
*/
int: number
sInt: number
bInt: bigint
inc_int: number
inc_sInt: number
inc_bInt: bigint
}
/**
* Model B
*
*/
export type B = {
id: string
float: number
dFloat: number
decFloat: Prisma.Decimal
numFloat: Prisma.Decimal
}
/**
* Model C
*
*/
export type C = {
id: string
char: string
vChar: string
text: string
bit: string
vBit: string
uuid: string
}
/**
* Model D
*
*/
export type D = {
id: string
bool: boolean
byteA: Buffer
xml: string
json: Prisma.JsonValue
jsonb: Prisma.JsonValue
list: number[]
}
/**
* Model E
*
*/
export type E = {
id: string
date: Date
time: Date
ts: Date
}
/**
* Enums
*/
// Based on
// https://github.com/microsoft/TypeScript/issues/3192#issuecomment-261720275
export const ABeautifulEnum: {
A: 'A',
B: 'B',
C: 'C'
};
export type ABeautifulEnum = (typeof ABeautifulEnum)[keyof typeof ABeautifulEnum]
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* \`\`\`
* const prisma = new PrismaClient()
* // Fetch zero or more Posts
* const posts = await prisma.post.findMany()
* \`\`\`
*
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
*/
export class PrismaClient<
T extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
U = 'log' extends keyof T ? T['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<T['log']> : never : never,
GlobalReject = 'rejectOnNotFound' extends keyof T
? T['rejectOnNotFound']
: false
> {
/**
* @private
*/
private fetcher;
/**
* @private
*/
private readonly dmmf;
/**
* @private
*/
private connectionPromise?;
/**
* @private
*/
private disconnectionPromise?;
/**
* @private
*/
private readonly engineConfig;
/**
* @private
*/
private readonly measurePerformance;
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* \`\`\`
* const prisma = new PrismaClient()
* // Fetch zero or more Posts
* const posts = await prisma.post.findMany()
* \`\`\`
*
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
*/
constructor(optionsArg ?: Prisma.Subset<T, Prisma.PrismaClientOptions>);
$on<V extends (U | 'beforeExit')>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : V extends 'beforeExit' ? () => Promise<void> : Prisma.LogEvent) => void): void;
/**
* Connect with the database
*/
$connect(): Promise<void>;
/**
* Disconnect from the database
*/
$disconnect(): Promise<void>;
/**
* Add a middleware
*/
$use(cb: Prisma.Middleware): void
/**
* Executes a prepared raw query and returns the number of affected rows.
* @example
* \`\`\`
* const result = await prisma.$executeRaw\`UPDATE User SET cool = \${true} WHERE email = \${'user@email.com'};\`
* \`\`\`
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): PrismaPromise<number>;
/**
* Executes a raw query and returns the number of affected rows.
* Susceptible to SQL injections, see documentation.
* @example
* \`\`\`
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
* \`\`\`
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): PrismaPromise<number>;
/**
* Performs a prepared raw query and returns the \`SELECT\` data.
* @example
* \`\`\`
* const result = await prisma.$queryRaw\`SELECT * FROM User WHERE id = \${1} OR email = \${'user@email.com'};\`
* \`\`\`
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): PrismaPromise<T>;
/**
* Performs a raw query and returns the \`SELECT\` data.
* Susceptible to SQL injections, see documentation.
* @example
* \`\`\`
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
* \`\`\`
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): PrismaPromise<T>;
/**
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
* @example
* \`\`\`
* const [george, bob, alice] = await prisma.$transaction([
* prisma.user.create({ data: { name: 'George' } }),
* prisma.user.create({ data: { name: 'Bob' } }),
* prisma.user.create({ data: { name: 'Alice' } }),
* ])
* \`\`\`
*
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
*/
$transaction<P extends PrismaPromise<any>[]>(arg: [...P]): Promise<UnwrapTuple<P>>;
/**
* \`prisma.post\`: Exposes CRUD operations for the **Post** model.
* Example usage:
* \`\`\`ts
* // Fetch zero or more Posts
* const posts = await prisma.post.findMany()
* \`\`\`
*/
get post(): Prisma.PostDelegate<GlobalReject>;
/**
* \`prisma.user\`: Exposes CRUD operations for the **User** model.
* Example usage:
* \`\`\`ts
* // Fetch zero or more Users
* const users = await prisma.user.findMany()
* \`\`\`
*/
get user(): Prisma.UserDelegate<GlobalReject>;
/**
* \`prisma.m\`: Exposes CRUD operations for the **M** model.
* Example usage:
* \`\`\`ts
* // Fetch zero or more Ms
* const ms = await prisma.m.findMany()
* \`\`\`
*/
get m(): Prisma.MDelegate<GlobalReject>;
/**
* \`prisma.n\`: Exposes CRUD operations for the **N** model.
* Example usage:
* \`\`\`ts
* // Fetch zero or more Ns
* const ns = await prisma.n.findMany()
* \`\`\`
*/
get n(): Prisma.NDelegate<GlobalReject>;
/**
* \`prisma.oneOptional\`: Exposes CRUD operations for the **OneOptional** model.
* Example usage:
* \`\`\`ts
* // Fetch zero or more OneOptionals
* const oneOptionals = await prisma.oneOptional.findMany()
* \`\`\`
*/
get oneOptional(): Prisma.OneOptionalDelegate<GlobalReject>;
/**
* \`prisma.manyRequired\`: Exposes CRUD operations for the **ManyRequired** model.
* Example usage:
* \`\`\`ts
* // Fetch zero or more ManyRequireds
* const manyRequireds = await prisma.manyRequired.findMany()
* \`\`\`
*/
get manyRequired(): Prisma.ManyRequiredDelegate<GlobalReject>;
/**
* \`prisma.optionalSide1\`: Exposes CRUD operations for the **OptionalSide1** model.
* Example usage:
* \`\`\`ts
* // Fetch zero or more OptionalSide1s
* const optionalSide1s = await prisma.optionalSide1.findMany()
* \`\`\`
*/
get optionalSide1(): Prisma.OptionalSide1Delegate<GlobalReject>;
/**
* \`prisma.optionalSide2\`: Exposes CRUD operations for the **OptionalSide2** model.
* Example usage:
* \`\`\`ts
* // Fetch zero or more OptionalSide2s
* const optionalSide2s = await prisma.optionalSide2.findMany()
* \`\`\`
*/
get optionalSide2(): Prisma.OptionalSide2Delegate<GlobalReject>;
/**
* \`prisma.a\`: Exposes CRUD operations for the **A** model.
* Example usage:
* \`\`\`ts
* // Fetch zero or more As
* const as = await prisma.a.findMany()
* \`\`\`
*/
get a(): Prisma.ADelegate<GlobalReject>;
/**
* \`prisma.b\`: Exposes CRUD operations for the **B** model.
* Example usage:
* \`\`\`ts
* // Fetch zero or more Bs
* const bs = await prisma.b.findMany()
* \`\`\`
*/
get b(): Prisma.BDelegate<GlobalReject>;
/**
* \`prisma.c\`: Exposes CRUD operations for the **C** model.
* Example usage:
* \`\`\`ts
* // Fetch zero or more Cs
* const cs = await prisma.c.findMany()
* \`\`\`
*/
get c(): Prisma.CDelegate<GlobalReject>;
/**
* \`prisma.d\`: Exposes CRUD operations for the **D** model.
* Example usage:
* \`\`\`ts
* // Fetch zero or more Ds
* const ds = await prisma.d.findMany()
* \`\`\`
*/
get d(): Prisma.DDelegate<GlobalReject>;
/**
* \`prisma.e\`: Exposes CRUD operations for the **E** model.
* Example usage:
* \`\`\`ts
* // Fetch zero or more Es
* const es = await prisma.e.findMany()
* \`\`\`
*/
get e(): Prisma.EDelegate<GlobalReject>;
}
export namespace Prisma {
export import DMMF = runtime.DMMF
/**
* Prisma Errors
*/
export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
export import PrismaClientValidationError = runtime.PrismaClientValidationError
export import NotFoundError = runtime.NotFoundError
/**
* Re-export of sql-template-tag
*/
export import sql = runtime.sqltag
export import empty = runtime.empty
export import join = runtime.join
export import raw = runtime.raw
export import Sql = runtime.Sql
/**
* Decimal.js
*/
export import Decimal = runtime.Decimal
export type DecimalJsLike = runtime.DecimalJsLike
/**
* Metrics
*/
export import Metrics = runtime.Metrics
export import Metric = runtime.Metric
export import MetricHistogram = runtime.MetricHistogram
export import MetricHistogramBucket = runtime.MetricHistogramBucket
/**
* Prisma Client JS version: local
* Query Engine version: local
*/
export type PrismaVersion = {
client: string
}
export const prismaVersion: PrismaVersion
/**
* Utility Types
*/
/**
* From https://github.com/sindresorhus/type-fest/
* Matches a JSON object.
* This type can be useful to enforce some input to be JSON-compatible or as a super-type to be extended from.
*/
export type JsonObject = {[Key in string]?: JsonValue}
/**
* From https://github.com/sindresorhus/type-fest/
* Matches a JSON array.
*/
export interface JsonArray extends Array<JsonValue> {}
/**
* From https://github.com/sindresorhus/type-fest/
* Matches any valid JSON value.
*/
export type JsonValue = string | number | boolean | JsonObject | JsonArray | null
/**
* Matches a JSON object.
* Unlike \`JsonObject\`, this type allows undefined and read-only properties.
*/
export type InputJsonObject = {readonly [Key in string]?: InputJsonValue | null}
/**
* Matches a JSON array.
* Unlike \`JsonArray\`, readonly arrays are assignable to this type.
*/
export interface InputJsonArray extends ReadonlyArray<InputJsonValue | null> {}
/**
* Matches any valid value that can be used as an input for operations like
* create and update as the value of a JSON field. Unlike \`JsonValue\`, this
* type allows read-only arrays and read-only object properties and disallows
* \`null\` at the top level.
*
* \`null\` cannot be used as the value of a JSON field because its meaning
* would be ambiguous. Use \`Prisma.JsonNull\` to store the JSON null value or
* \`Prisma.DbNull\` to clear the JSON value and set the field to the database
* NULL value instead.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-by-null-values
*/
export type InputJsonValue = string | number | boolean | InputJsonObject | InputJsonArray
/**
* Types of the values used to represent different kinds of \`null\` values when working with JSON fields.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
namespace NullTypes {
/**
* Type of \`Prisma.DbNull\`.
*
* You cannot use other instances of this class. Please use the \`Prisma.DbNull\` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class DbNull {
private DbNull: never
private constructor()
}
/**
* Type of \`Prisma.JsonNull\`.
*
* You cannot use other instances of this class. Please use the \`Prisma.JsonNull\` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class JsonNull {
private JsonNull: never
private constructor()
}
/**
* Type of \`Prisma.AnyNull\`.
*
* You cannot use other instances of this class. Please use the \`Prisma.AnyNull\` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class AnyNull {
private AnyNull: never
private constructor()
}
}
/**
* Helper for filtering JSON entries that have \`null\` on the database (empty on the db)