forked from Northgate-Systems/RemitX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTransaction.ts
More file actions
1633 lines (1529 loc) · 61.9 KB
/
Copy pathTransaction.ts
File metadata and controls
1633 lines (1529 loc) · 61.9 KB
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
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `Transaction` model and its related types.
*
* 🟢 You can import this file directly.
*/
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums"
import type * as Prisma from "../internal/prismaNamespace"
/**
* Model Transaction
*
*/
export type TransactionModel = runtime.Types.Result.DefaultSelection<Prisma.$TransactionPayload>
export type AggregateTransaction = {
_count: TransactionCountAggregateOutputType | null
_min: TransactionMinAggregateOutputType | null
_max: TransactionMaxAggregateOutputType | null
}
export type TransactionMinAggregateOutputType = {
id: string | null
userId: string | null
fromAsset: string | null
toAsset: string | null
fromAmount: string | null
toAmount: string | null
recipientAddress: string | null
stellarTxHash: string | null
escrowId: string | null
status: $Enums.TransactionStatus | null
createdAt: Date | null
confirmedAt: Date | null
updatedAt: Date | null
}
export type TransactionMaxAggregateOutputType = {
id: string | null
userId: string | null
fromAsset: string | null
toAsset: string | null
fromAmount: string | null
toAmount: string | null
recipientAddress: string | null
stellarTxHash: string | null
escrowId: string | null
status: $Enums.TransactionStatus | null
createdAt: Date | null
confirmedAt: Date | null
updatedAt: Date | null
}
export type TransactionCountAggregateOutputType = {
id: number
userId: number
fromAsset: number
toAsset: number
fromAmount: number
toAmount: number
recipientAddress: number
stellarTxHash: number
escrowId: number
status: number
createdAt: number
confirmedAt: number
updatedAt: number
_all: number
}
export type TransactionMinAggregateInputType = {
id?: true
userId?: true
fromAsset?: true
toAsset?: true
fromAmount?: true
toAmount?: true
recipientAddress?: true
stellarTxHash?: true
escrowId?: true
status?: true
createdAt?: true
confirmedAt?: true
updatedAt?: true
}
export type TransactionMaxAggregateInputType = {
id?: true
userId?: true
fromAsset?: true
toAsset?: true
fromAmount?: true
toAmount?: true
recipientAddress?: true
stellarTxHash?: true
escrowId?: true
status?: true
createdAt?: true
confirmedAt?: true
updatedAt?: true
}
export type TransactionCountAggregateInputType = {
id?: true
userId?: true
fromAsset?: true
toAsset?: true
fromAmount?: true
toAmount?: true
recipientAddress?: true
stellarTxHash?: true
escrowId?: true
status?: true
createdAt?: true
confirmedAt?: true
updatedAt?: true
_all?: true
}
export type TransactionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Transaction to aggregate.
*/
where?: Prisma.TransactionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Transactions to fetch.
*/
orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.TransactionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Transactions from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Transactions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Transactions
**/
_count?: true | TransactionCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: TransactionMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: TransactionMaxAggregateInputType
}
export type GetTransactionAggregateType<T extends TransactionAggregateArgs> = {
[P in keyof T & keyof AggregateTransaction]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateTransaction[P]>
: Prisma.GetScalarType<T[P], AggregateTransaction[P]>
}
export type TransactionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.TransactionWhereInput
orderBy?: Prisma.TransactionOrderByWithAggregationInput | Prisma.TransactionOrderByWithAggregationInput[]
by: Prisma.TransactionScalarFieldEnum[] | Prisma.TransactionScalarFieldEnum
having?: Prisma.TransactionScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: TransactionCountAggregateInputType | true
_min?: TransactionMinAggregateInputType
_max?: TransactionMaxAggregateInputType
}
export type TransactionGroupByOutputType = {
id: string
userId: string
fromAsset: string
toAsset: string
fromAmount: string
toAmount: string | null
recipientAddress: string
stellarTxHash: string | null
escrowId: string | null
status: $Enums.TransactionStatus
createdAt: Date
confirmedAt: Date | null
updatedAt: Date
_count: TransactionCountAggregateOutputType | null
_min: TransactionMinAggregateOutputType | null
_max: TransactionMaxAggregateOutputType | null
}
export type GetTransactionGroupByPayload<T extends TransactionGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<TransactionGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof TransactionGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], TransactionGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], TransactionGroupByOutputType[P]>
}
>
>
export type TransactionWhereInput = {
AND?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[]
OR?: Prisma.TransactionWhereInput[]
NOT?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[]
id?: Prisma.StringFilter<"Transaction"> | string
userId?: Prisma.StringFilter<"Transaction"> | string
fromAsset?: Prisma.StringFilter<"Transaction"> | string
toAsset?: Prisma.StringFilter<"Transaction"> | string
fromAmount?: Prisma.StringFilter<"Transaction"> | string
toAmount?: Prisma.StringNullableFilter<"Transaction"> | string | null
recipientAddress?: Prisma.StringFilter<"Transaction"> | string
stellarTxHash?: Prisma.StringNullableFilter<"Transaction"> | string | null
escrowId?: Prisma.StringNullableFilter<"Transaction"> | string | null
status?: Prisma.EnumTransactionStatusFilter<"Transaction"> | $Enums.TransactionStatus
createdAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string
confirmedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
updatedAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}
export type TransactionOrderByWithRelationInput = {
id?: Prisma.SortOrder
userId?: Prisma.SortOrder
fromAsset?: Prisma.SortOrder
toAsset?: Prisma.SortOrder
fromAmount?: Prisma.SortOrder
toAmount?: Prisma.SortOrderInput | Prisma.SortOrder
recipientAddress?: Prisma.SortOrder
stellarTxHash?: Prisma.SortOrderInput | Prisma.SortOrder
escrowId?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
confirmedAt?: Prisma.SortOrderInput | Prisma.SortOrder
updatedAt?: Prisma.SortOrder
user?: Prisma.UserOrderByWithRelationInput
}
export type TransactionWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[]
OR?: Prisma.TransactionWhereInput[]
NOT?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[]
userId?: Prisma.StringFilter<"Transaction"> | string
fromAsset?: Prisma.StringFilter<"Transaction"> | string
toAsset?: Prisma.StringFilter<"Transaction"> | string
fromAmount?: Prisma.StringFilter<"Transaction"> | string
toAmount?: Prisma.StringNullableFilter<"Transaction"> | string | null
recipientAddress?: Prisma.StringFilter<"Transaction"> | string
stellarTxHash?: Prisma.StringNullableFilter<"Transaction"> | string | null
escrowId?: Prisma.StringNullableFilter<"Transaction"> | string | null
status?: Prisma.EnumTransactionStatusFilter<"Transaction"> | $Enums.TransactionStatus
createdAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string
confirmedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
updatedAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}, "id">
export type TransactionOrderByWithAggregationInput = {
id?: Prisma.SortOrder
userId?: Prisma.SortOrder
fromAsset?: Prisma.SortOrder
toAsset?: Prisma.SortOrder
fromAmount?: Prisma.SortOrder
toAmount?: Prisma.SortOrderInput | Prisma.SortOrder
recipientAddress?: Prisma.SortOrder
stellarTxHash?: Prisma.SortOrderInput | Prisma.SortOrder
escrowId?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
confirmedAt?: Prisma.SortOrderInput | Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_count?: Prisma.TransactionCountOrderByAggregateInput
_max?: Prisma.TransactionMaxOrderByAggregateInput
_min?: Prisma.TransactionMinOrderByAggregateInput
}
export type TransactionScalarWhereWithAggregatesInput = {
AND?: Prisma.TransactionScalarWhereWithAggregatesInput | Prisma.TransactionScalarWhereWithAggregatesInput[]
OR?: Prisma.TransactionScalarWhereWithAggregatesInput[]
NOT?: Prisma.TransactionScalarWhereWithAggregatesInput | Prisma.TransactionScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"Transaction"> | string
userId?: Prisma.StringWithAggregatesFilter<"Transaction"> | string
fromAsset?: Prisma.StringWithAggregatesFilter<"Transaction"> | string
toAsset?: Prisma.StringWithAggregatesFilter<"Transaction"> | string
fromAmount?: Prisma.StringWithAggregatesFilter<"Transaction"> | string
toAmount?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
recipientAddress?: Prisma.StringWithAggregatesFilter<"Transaction"> | string
stellarTxHash?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
escrowId?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
status?: Prisma.EnumTransactionStatusWithAggregatesFilter<"Transaction"> | $Enums.TransactionStatus
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Transaction"> | Date | string
confirmedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Transaction"> | Date | string
}
export type TransactionCreateInput = {
id?: string
fromAsset: string
toAsset: string
fromAmount: string
toAmount?: string | null
recipientAddress: string
stellarTxHash?: string | null
escrowId?: string | null
status?: $Enums.TransactionStatus
createdAt?: Date | string
confirmedAt?: Date | string | null
updatedAt?: Date | string
user: Prisma.UserCreateNestedOneWithoutTransactionsInput
}
export type TransactionUncheckedCreateInput = {
id?: string
userId: string
fromAsset: string
toAsset: string
fromAmount: string
toAmount?: string | null
recipientAddress: string
stellarTxHash?: string | null
escrowId?: string | null
status?: $Enums.TransactionStatus
createdAt?: Date | string
confirmedAt?: Date | string | null
updatedAt?: Date | string
}
export type TransactionUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
fromAsset?: Prisma.StringFieldUpdateOperationsInput | string
toAsset?: Prisma.StringFieldUpdateOperationsInput | string
fromAmount?: Prisma.StringFieldUpdateOperationsInput | string
toAmount?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
recipientAddress?: Prisma.StringFieldUpdateOperationsInput | string
stellarTxHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
escrowId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
confirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
user?: Prisma.UserUpdateOneRequiredWithoutTransactionsNestedInput
}
export type TransactionUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
fromAsset?: Prisma.StringFieldUpdateOperationsInput | string
toAsset?: Prisma.StringFieldUpdateOperationsInput | string
fromAmount?: Prisma.StringFieldUpdateOperationsInput | string
toAmount?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
recipientAddress?: Prisma.StringFieldUpdateOperationsInput | string
stellarTxHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
escrowId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
confirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type TransactionCreateManyInput = {
id?: string
userId: string
fromAsset: string
toAsset: string
fromAmount: string
toAmount?: string | null
recipientAddress: string
stellarTxHash?: string | null
escrowId?: string | null
status?: $Enums.TransactionStatus
createdAt?: Date | string
confirmedAt?: Date | string | null
updatedAt?: Date | string
}
export type TransactionUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
fromAsset?: Prisma.StringFieldUpdateOperationsInput | string
toAsset?: Prisma.StringFieldUpdateOperationsInput | string
fromAmount?: Prisma.StringFieldUpdateOperationsInput | string
toAmount?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
recipientAddress?: Prisma.StringFieldUpdateOperationsInput | string
stellarTxHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
escrowId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
confirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type TransactionUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
fromAsset?: Prisma.StringFieldUpdateOperationsInput | string
toAsset?: Prisma.StringFieldUpdateOperationsInput | string
fromAmount?: Prisma.StringFieldUpdateOperationsInput | string
toAmount?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
recipientAddress?: Prisma.StringFieldUpdateOperationsInput | string
stellarTxHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
escrowId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
confirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type TransactionListRelationFilter = {
every?: Prisma.TransactionWhereInput
some?: Prisma.TransactionWhereInput
none?: Prisma.TransactionWhereInput
}
export type TransactionOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type TransactionCountOrderByAggregateInput = {
id?: Prisma.SortOrder
userId?: Prisma.SortOrder
fromAsset?: Prisma.SortOrder
toAsset?: Prisma.SortOrder
fromAmount?: Prisma.SortOrder
toAmount?: Prisma.SortOrder
recipientAddress?: Prisma.SortOrder
stellarTxHash?: Prisma.SortOrder
escrowId?: Prisma.SortOrder
status?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
confirmedAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type TransactionMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
userId?: Prisma.SortOrder
fromAsset?: Prisma.SortOrder
toAsset?: Prisma.SortOrder
fromAmount?: Prisma.SortOrder
toAmount?: Prisma.SortOrder
recipientAddress?: Prisma.SortOrder
stellarTxHash?: Prisma.SortOrder
escrowId?: Prisma.SortOrder
status?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
confirmedAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type TransactionMinOrderByAggregateInput = {
id?: Prisma.SortOrder
userId?: Prisma.SortOrder
fromAsset?: Prisma.SortOrder
toAsset?: Prisma.SortOrder
fromAmount?: Prisma.SortOrder
toAmount?: Prisma.SortOrder
recipientAddress?: Prisma.SortOrder
stellarTxHash?: Prisma.SortOrder
escrowId?: Prisma.SortOrder
status?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
confirmedAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type TransactionCreateNestedManyWithoutUserInput = {
create?: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput> | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[]
createMany?: Prisma.TransactionCreateManyUserInputEnvelope
connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
}
export type TransactionUncheckedCreateNestedManyWithoutUserInput = {
create?: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput> | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[]
createMany?: Prisma.TransactionCreateManyUserInputEnvelope
connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
}
export type TransactionUpdateManyWithoutUserNestedInput = {
create?: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput> | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[]
upsert?: Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput | Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput[]
createMany?: Prisma.TransactionCreateManyUserInputEnvelope
set?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
disconnect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
delete?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
update?: Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput | Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutUserInput | Prisma.TransactionUpdateManyWithWhereWithoutUserInput[]
deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[]
}
export type TransactionUncheckedUpdateManyWithoutUserNestedInput = {
create?: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput> | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[]
upsert?: Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput | Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput[]
createMany?: Prisma.TransactionCreateManyUserInputEnvelope
set?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
disconnect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
delete?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
update?: Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput | Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutUserInput | Prisma.TransactionUpdateManyWithWhereWithoutUserInput[]
deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[]
}
export type EnumTransactionStatusFieldUpdateOperationsInput = {
set?: $Enums.TransactionStatus
}
export type NullableDateTimeFieldUpdateOperationsInput = {
set?: Date | string | null
}
export type TransactionCreateWithoutUserInput = {
id?: string
fromAsset: string
toAsset: string
fromAmount: string
toAmount?: string | null
recipientAddress: string
stellarTxHash?: string | null
escrowId?: string | null
status?: $Enums.TransactionStatus
createdAt?: Date | string
confirmedAt?: Date | string | null
updatedAt?: Date | string
}
export type TransactionUncheckedCreateWithoutUserInput = {
id?: string
fromAsset: string
toAsset: string
fromAmount: string
toAmount?: string | null
recipientAddress: string
stellarTxHash?: string | null
escrowId?: string | null
status?: $Enums.TransactionStatus
createdAt?: Date | string
confirmedAt?: Date | string | null
updatedAt?: Date | string
}
export type TransactionCreateOrConnectWithoutUserInput = {
where: Prisma.TransactionWhereUniqueInput
create: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput>
}
export type TransactionCreateManyUserInputEnvelope = {
data: Prisma.TransactionCreateManyUserInput | Prisma.TransactionCreateManyUserInput[]
skipDuplicates?: boolean
}
export type TransactionUpsertWithWhereUniqueWithoutUserInput = {
where: Prisma.TransactionWhereUniqueInput
update: Prisma.XOR<Prisma.TransactionUpdateWithoutUserInput, Prisma.TransactionUncheckedUpdateWithoutUserInput>
create: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput>
}
export type TransactionUpdateWithWhereUniqueWithoutUserInput = {
where: Prisma.TransactionWhereUniqueInput
data: Prisma.XOR<Prisma.TransactionUpdateWithoutUserInput, Prisma.TransactionUncheckedUpdateWithoutUserInput>
}
export type TransactionUpdateManyWithWhereWithoutUserInput = {
where: Prisma.TransactionScalarWhereInput
data: Prisma.XOR<Prisma.TransactionUpdateManyMutationInput, Prisma.TransactionUncheckedUpdateManyWithoutUserInput>
}
export type TransactionScalarWhereInput = {
AND?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[]
OR?: Prisma.TransactionScalarWhereInput[]
NOT?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[]
id?: Prisma.StringFilter<"Transaction"> | string
userId?: Prisma.StringFilter<"Transaction"> | string
fromAsset?: Prisma.StringFilter<"Transaction"> | string
toAsset?: Prisma.StringFilter<"Transaction"> | string
fromAmount?: Prisma.StringFilter<"Transaction"> | string
toAmount?: Prisma.StringNullableFilter<"Transaction"> | string | null
recipientAddress?: Prisma.StringFilter<"Transaction"> | string
stellarTxHash?: Prisma.StringNullableFilter<"Transaction"> | string | null
escrowId?: Prisma.StringNullableFilter<"Transaction"> | string | null
status?: Prisma.EnumTransactionStatusFilter<"Transaction"> | $Enums.TransactionStatus
createdAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string
confirmedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
updatedAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string
}
export type TransactionCreateManyUserInput = {
id?: string
fromAsset: string
toAsset: string
fromAmount: string
toAmount?: string | null
recipientAddress: string
stellarTxHash?: string | null
escrowId?: string | null
status?: $Enums.TransactionStatus
createdAt?: Date | string
confirmedAt?: Date | string | null
updatedAt?: Date | string
}
export type TransactionUpdateWithoutUserInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
fromAsset?: Prisma.StringFieldUpdateOperationsInput | string
toAsset?: Prisma.StringFieldUpdateOperationsInput | string
fromAmount?: Prisma.StringFieldUpdateOperationsInput | string
toAmount?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
recipientAddress?: Prisma.StringFieldUpdateOperationsInput | string
stellarTxHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
escrowId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
confirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type TransactionUncheckedUpdateWithoutUserInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
fromAsset?: Prisma.StringFieldUpdateOperationsInput | string
toAsset?: Prisma.StringFieldUpdateOperationsInput | string
fromAmount?: Prisma.StringFieldUpdateOperationsInput | string
toAmount?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
recipientAddress?: Prisma.StringFieldUpdateOperationsInput | string
stellarTxHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
escrowId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
confirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type TransactionUncheckedUpdateManyWithoutUserInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
fromAsset?: Prisma.StringFieldUpdateOperationsInput | string
toAsset?: Prisma.StringFieldUpdateOperationsInput | string
fromAmount?: Prisma.StringFieldUpdateOperationsInput | string
toAmount?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
recipientAddress?: Prisma.StringFieldUpdateOperationsInput | string
stellarTxHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
escrowId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumTransactionStatusFieldUpdateOperationsInput | $Enums.TransactionStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
confirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type TransactionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
userId?: boolean
fromAsset?: boolean
toAsset?: boolean
fromAmount?: boolean
toAmount?: boolean
recipientAddress?: boolean
stellarTxHash?: boolean
escrowId?: boolean
status?: boolean
createdAt?: boolean
confirmedAt?: boolean
updatedAt?: boolean
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["transaction"]>
export type TransactionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
userId?: boolean
fromAsset?: boolean
toAsset?: boolean
fromAmount?: boolean
toAmount?: boolean
recipientAddress?: boolean
stellarTxHash?: boolean
escrowId?: boolean
status?: boolean
createdAt?: boolean
confirmedAt?: boolean
updatedAt?: boolean
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["transaction"]>
export type TransactionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
userId?: boolean
fromAsset?: boolean
toAsset?: boolean
fromAmount?: boolean
toAmount?: boolean
recipientAddress?: boolean
stellarTxHash?: boolean
escrowId?: boolean
status?: boolean
createdAt?: boolean
confirmedAt?: boolean
updatedAt?: boolean
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["transaction"]>
export type TransactionSelectScalar = {
id?: boolean
userId?: boolean
fromAsset?: boolean
toAsset?: boolean
fromAmount?: boolean
toAmount?: boolean
recipientAddress?: boolean
stellarTxHash?: boolean
escrowId?: boolean
status?: boolean
createdAt?: boolean
confirmedAt?: boolean
updatedAt?: boolean
}
export type TransactionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "fromAsset" | "toAsset" | "fromAmount" | "toAmount" | "recipientAddress" | "stellarTxHash" | "escrowId" | "status" | "createdAt" | "confirmedAt" | "updatedAt", ExtArgs["result"]["transaction"]>
export type TransactionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type TransactionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type TransactionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type $TransactionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Transaction"
objects: {
user: Prisma.$UserPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
userId: string
fromAsset: string
toAsset: string
fromAmount: string
toAmount: string | null
recipientAddress: string
stellarTxHash: string | null
escrowId: string | null
status: $Enums.TransactionStatus
createdAt: Date
confirmedAt: Date | null
updatedAt: Date
}, ExtArgs["result"]["transaction"]>
composites: {}
}
export type TransactionGetPayload<S extends boolean | null | undefined | TransactionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TransactionPayload, S>
export type TransactionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<TransactionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: TransactionCountAggregateInputType | true
}
export interface TransactionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Transaction'], meta: { name: 'Transaction' } }
/**
* Find zero or one Transaction that matches the filter.
* @param {TransactionFindUniqueArgs} args - Arguments to find a Transaction
* @example
* // Get one Transaction
* const transaction = await prisma.transaction.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends TransactionFindUniqueArgs>(args: Prisma.SelectSubset<T, TransactionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Transaction that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {TransactionFindUniqueOrThrowArgs} args - Arguments to find a Transaction
* @example
* // Get one Transaction
* const transaction = await prisma.transaction.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends TransactionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TransactionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Transaction that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TransactionFindFirstArgs} args - Arguments to find a Transaction
* @example
* // Get one Transaction
* const transaction = await prisma.transaction.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends TransactionFindFirstArgs>(args?: Prisma.SelectSubset<T, TransactionFindFirstArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Transaction that matches the filter or
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TransactionFindFirstOrThrowArgs} args - Arguments to find a Transaction
* @example
* // Get one Transaction
* const transaction = await prisma.transaction.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends TransactionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TransactionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Transactions that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TransactionFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Transactions
* const transactions = await prisma.transaction.findMany()
*
* // Get first 10 Transactions
* const transactions = await prisma.transaction.findMany({ take: 10 })
*
* // Only select the `id`
* const transactionWithIdOnly = await prisma.transaction.findMany({ select: { id: true } })
*
*/
findMany<T extends TransactionFindManyArgs>(args?: Prisma.SelectSubset<T, TransactionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Transaction.
* @param {TransactionCreateArgs} args - Arguments to create a Transaction.
* @example
* // Create one Transaction
* const Transaction = await prisma.transaction.create({
* data: {
* // ... data to create a Transaction
* }
* })
*
*/
create<T extends TransactionCreateArgs>(args: Prisma.SelectSubset<T, TransactionCreateArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Transactions.
* @param {TransactionCreateManyArgs} args - Arguments to create many Transactions.
* @example
* // Create many Transactions
* const transaction = await prisma.transaction.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends TransactionCreateManyArgs>(args?: Prisma.SelectSubset<T, TransactionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Transactions and returns the data saved in the database.
* @param {TransactionCreateManyAndReturnArgs} args - Arguments to create many Transactions.
* @example
* // Create many Transactions
* const transaction = await prisma.transaction.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Transactions and only return the `id`
* const transactionWithIdOnly = await prisma.transaction.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends TransactionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TransactionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Transaction.
* @param {TransactionDeleteArgs} args - Arguments to delete one Transaction.
* @example
* // Delete one Transaction
* const Transaction = await prisma.transaction.delete({
* where: {
* // ... filter to delete one Transaction
* }
* })
*
*/
delete<T extends TransactionDeleteArgs>(args: Prisma.SelectSubset<T, TransactionDeleteArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Transaction.
* @param {TransactionUpdateArgs} args - Arguments to update one Transaction.
* @example
* // Update one Transaction
* const transaction = await prisma.transaction.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends TransactionUpdateArgs>(args: Prisma.SelectSubset<T, TransactionUpdateArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Transactions.
* @param {TransactionDeleteManyArgs} args - Arguments to filter Transactions to delete.
* @example
* // Delete a few Transactions
* const { count } = await prisma.transaction.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends TransactionDeleteManyArgs>(args?: Prisma.SelectSubset<T, TransactionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Transactions.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TransactionUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Transactions
* const transaction = await prisma.transaction.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends TransactionUpdateManyArgs>(args: Prisma.SelectSubset<T, TransactionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Transactions and returns the data updated in the database.
* @param {TransactionUpdateManyAndReturnArgs} args - Arguments to update many Transactions.
* @example
* // Update many Transactions
* const transaction = await prisma.transaction.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Transactions and only return the `id`
* const transactionWithIdOnly = await prisma.transaction.updateManyAndReturn({