@sebbo2002/tgtg-ical 3.0.9 → 3.1.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2ETYXYMT.js +60 -0
- package/dist/chunk-2ETYXYMT.js.map +1 -0
- package/dist/cleanup.js +1 -1
- package/dist/inhale-mail.js +1 -1
- package/dist/start.js +2 -2
- package/dist/start.js.map +1 -1
- package/package.json +11 -10
- package/src/prisma/prisma/browser.ts +39 -0
- package/src/prisma/prisma/client.ts +61 -0
- package/src/prisma/prisma/commonInputTypes.ts +384 -0
- package/src/prisma/prisma/enums.ts +15 -0
- package/src/prisma/prisma/internal/class.ts +220 -0
- package/src/prisma/prisma/internal/prismaNamespace.ts +1016 -0
- package/src/prisma/prisma/internal/prismaNamespaceBrowser.ts +183 -0
- package/src/prisma/prisma/models/Event.ts +1669 -0
- package/src/prisma/prisma/models/Location.ts +1336 -0
- package/src/prisma/prisma/models/Mail.ts +1090 -0
- package/src/prisma/prisma/models/User.ts +1192 -0
- package/src/prisma/prisma/models.ts +15 -0
- package/src/prisma/schema.prisma +38 -37
- package/dist/chunk-5TQHQ2B4.js +0 -2
- package/dist/chunk-5TQHQ2B4.js.map +0 -1
|
@@ -0,0 +1,1669 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* This file exports the `Event` model and its related types.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
import type * as runtime from "@prisma/client/runtime/client"
|
|
12
|
+
import type * as $Enums from "../enums.js"
|
|
13
|
+
import type * as Prisma from "../internal/prismaNamespace.js"
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Model Event
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type EventModel = runtime.Types.Result.DefaultSelection<Prisma.$EventPayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateEvent = {
|
|
22
|
+
_count: EventCountAggregateOutputType | null
|
|
23
|
+
_avg: EventAvgAggregateOutputType | null
|
|
24
|
+
_sum: EventSumAggregateOutputType | null
|
|
25
|
+
_min: EventMinAggregateOutputType | null
|
|
26
|
+
_max: EventMaxAggregateOutputType | null
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type EventAvgAggregateOutputType = {
|
|
30
|
+
amount: number | null
|
|
31
|
+
price: number | null
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type EventSumAggregateOutputType = {
|
|
35
|
+
amount: number | null
|
|
36
|
+
price: number | null
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type EventMinAggregateOutputType = {
|
|
40
|
+
id: string | null
|
|
41
|
+
orderId: string | null
|
|
42
|
+
from: Date | null
|
|
43
|
+
to: Date | null
|
|
44
|
+
amount: number | null
|
|
45
|
+
price: number | null
|
|
46
|
+
userId: string | null
|
|
47
|
+
locationId: string | null
|
|
48
|
+
createdAt: Date | null
|
|
49
|
+
orderedAt: Date | null
|
|
50
|
+
invoicedAt: Date | null
|
|
51
|
+
canceledAt: Date | null
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type EventMaxAggregateOutputType = {
|
|
55
|
+
id: string | null
|
|
56
|
+
orderId: string | null
|
|
57
|
+
from: Date | null
|
|
58
|
+
to: Date | null
|
|
59
|
+
amount: number | null
|
|
60
|
+
price: number | null
|
|
61
|
+
userId: string | null
|
|
62
|
+
locationId: string | null
|
|
63
|
+
createdAt: Date | null
|
|
64
|
+
orderedAt: Date | null
|
|
65
|
+
invoicedAt: Date | null
|
|
66
|
+
canceledAt: Date | null
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type EventCountAggregateOutputType = {
|
|
70
|
+
id: number
|
|
71
|
+
orderId: number
|
|
72
|
+
from: number
|
|
73
|
+
to: number
|
|
74
|
+
amount: number
|
|
75
|
+
price: number
|
|
76
|
+
userId: number
|
|
77
|
+
locationId: number
|
|
78
|
+
createdAt: number
|
|
79
|
+
orderedAt: number
|
|
80
|
+
invoicedAt: number
|
|
81
|
+
canceledAt: number
|
|
82
|
+
_all: number
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
export type EventAvgAggregateInputType = {
|
|
87
|
+
amount?: true
|
|
88
|
+
price?: true
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type EventSumAggregateInputType = {
|
|
92
|
+
amount?: true
|
|
93
|
+
price?: true
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type EventMinAggregateInputType = {
|
|
97
|
+
id?: true
|
|
98
|
+
orderId?: true
|
|
99
|
+
from?: true
|
|
100
|
+
to?: true
|
|
101
|
+
amount?: true
|
|
102
|
+
price?: true
|
|
103
|
+
userId?: true
|
|
104
|
+
locationId?: true
|
|
105
|
+
createdAt?: true
|
|
106
|
+
orderedAt?: true
|
|
107
|
+
invoicedAt?: true
|
|
108
|
+
canceledAt?: true
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type EventMaxAggregateInputType = {
|
|
112
|
+
id?: true
|
|
113
|
+
orderId?: true
|
|
114
|
+
from?: true
|
|
115
|
+
to?: true
|
|
116
|
+
amount?: true
|
|
117
|
+
price?: true
|
|
118
|
+
userId?: true
|
|
119
|
+
locationId?: true
|
|
120
|
+
createdAt?: true
|
|
121
|
+
orderedAt?: true
|
|
122
|
+
invoicedAt?: true
|
|
123
|
+
canceledAt?: true
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export type EventCountAggregateInputType = {
|
|
127
|
+
id?: true
|
|
128
|
+
orderId?: true
|
|
129
|
+
from?: true
|
|
130
|
+
to?: true
|
|
131
|
+
amount?: true
|
|
132
|
+
price?: true
|
|
133
|
+
userId?: true
|
|
134
|
+
locationId?: true
|
|
135
|
+
createdAt?: true
|
|
136
|
+
orderedAt?: true
|
|
137
|
+
invoicedAt?: true
|
|
138
|
+
canceledAt?: true
|
|
139
|
+
_all?: true
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type EventAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
143
|
+
/**
|
|
144
|
+
* Filter which Event to aggregate.
|
|
145
|
+
*/
|
|
146
|
+
where?: Prisma.EventWhereInput
|
|
147
|
+
/**
|
|
148
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
149
|
+
*
|
|
150
|
+
* Determine the order of Events to fetch.
|
|
151
|
+
*/
|
|
152
|
+
orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[]
|
|
153
|
+
/**
|
|
154
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
155
|
+
*
|
|
156
|
+
* Sets the start position
|
|
157
|
+
*/
|
|
158
|
+
cursor?: Prisma.EventWhereUniqueInput
|
|
159
|
+
/**
|
|
160
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
161
|
+
*
|
|
162
|
+
* Take `±n` Events from the position of the cursor.
|
|
163
|
+
*/
|
|
164
|
+
take?: number
|
|
165
|
+
/**
|
|
166
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
167
|
+
*
|
|
168
|
+
* Skip the first `n` Events.
|
|
169
|
+
*/
|
|
170
|
+
skip?: number
|
|
171
|
+
/**
|
|
172
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
173
|
+
*
|
|
174
|
+
* Count returned Events
|
|
175
|
+
**/
|
|
176
|
+
_count?: true | EventCountAggregateInputType
|
|
177
|
+
/**
|
|
178
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
179
|
+
*
|
|
180
|
+
* Select which fields to average
|
|
181
|
+
**/
|
|
182
|
+
_avg?: EventAvgAggregateInputType
|
|
183
|
+
/**
|
|
184
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
185
|
+
*
|
|
186
|
+
* Select which fields to sum
|
|
187
|
+
**/
|
|
188
|
+
_sum?: EventSumAggregateInputType
|
|
189
|
+
/**
|
|
190
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
191
|
+
*
|
|
192
|
+
* Select which fields to find the minimum value
|
|
193
|
+
**/
|
|
194
|
+
_min?: EventMinAggregateInputType
|
|
195
|
+
/**
|
|
196
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
197
|
+
*
|
|
198
|
+
* Select which fields to find the maximum value
|
|
199
|
+
**/
|
|
200
|
+
_max?: EventMaxAggregateInputType
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export type GetEventAggregateType<T extends EventAggregateArgs> = {
|
|
204
|
+
[P in keyof T & keyof AggregateEvent]: P extends '_count' | 'count'
|
|
205
|
+
? T[P] extends true
|
|
206
|
+
? number
|
|
207
|
+
: Prisma.GetScalarType<T[P], AggregateEvent[P]>
|
|
208
|
+
: Prisma.GetScalarType<T[P], AggregateEvent[P]>
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
export type EventGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
215
|
+
where?: Prisma.EventWhereInput
|
|
216
|
+
orderBy?: Prisma.EventOrderByWithAggregationInput | Prisma.EventOrderByWithAggregationInput[]
|
|
217
|
+
by: Prisma.EventScalarFieldEnum[] | Prisma.EventScalarFieldEnum
|
|
218
|
+
having?: Prisma.EventScalarWhereWithAggregatesInput
|
|
219
|
+
take?: number
|
|
220
|
+
skip?: number
|
|
221
|
+
_count?: EventCountAggregateInputType | true
|
|
222
|
+
_avg?: EventAvgAggregateInputType
|
|
223
|
+
_sum?: EventSumAggregateInputType
|
|
224
|
+
_min?: EventMinAggregateInputType
|
|
225
|
+
_max?: EventMaxAggregateInputType
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export type EventGroupByOutputType = {
|
|
229
|
+
id: string
|
|
230
|
+
orderId: string
|
|
231
|
+
from: Date
|
|
232
|
+
to: Date
|
|
233
|
+
amount: number
|
|
234
|
+
price: number
|
|
235
|
+
userId: string
|
|
236
|
+
locationId: string
|
|
237
|
+
createdAt: Date
|
|
238
|
+
orderedAt: Date
|
|
239
|
+
invoicedAt: Date | null
|
|
240
|
+
canceledAt: Date | null
|
|
241
|
+
_count: EventCountAggregateOutputType | null
|
|
242
|
+
_avg: EventAvgAggregateOutputType | null
|
|
243
|
+
_sum: EventSumAggregateOutputType | null
|
|
244
|
+
_min: EventMinAggregateOutputType | null
|
|
245
|
+
_max: EventMaxAggregateOutputType | null
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
type GetEventGroupByPayload<T extends EventGroupByArgs> = Prisma.PrismaPromise<
|
|
249
|
+
Array<
|
|
250
|
+
Prisma.PickEnumerable<EventGroupByOutputType, T['by']> &
|
|
251
|
+
{
|
|
252
|
+
[P in ((keyof T) & (keyof EventGroupByOutputType))]: P extends '_count'
|
|
253
|
+
? T[P] extends boolean
|
|
254
|
+
? number
|
|
255
|
+
: Prisma.GetScalarType<T[P], EventGroupByOutputType[P]>
|
|
256
|
+
: Prisma.GetScalarType<T[P], EventGroupByOutputType[P]>
|
|
257
|
+
}
|
|
258
|
+
>
|
|
259
|
+
>
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
export type EventWhereInput = {
|
|
264
|
+
AND?: Prisma.EventWhereInput | Prisma.EventWhereInput[]
|
|
265
|
+
OR?: Prisma.EventWhereInput[]
|
|
266
|
+
NOT?: Prisma.EventWhereInput | Prisma.EventWhereInput[]
|
|
267
|
+
id?: Prisma.StringFilter<"Event"> | string
|
|
268
|
+
orderId?: Prisma.StringFilter<"Event"> | string
|
|
269
|
+
from?: Prisma.DateTimeFilter<"Event"> | Date | string
|
|
270
|
+
to?: Prisma.DateTimeFilter<"Event"> | Date | string
|
|
271
|
+
amount?: Prisma.IntFilter<"Event"> | number
|
|
272
|
+
price?: Prisma.IntFilter<"Event"> | number
|
|
273
|
+
userId?: Prisma.StringFilter<"Event"> | string
|
|
274
|
+
locationId?: Prisma.StringFilter<"Event"> | string
|
|
275
|
+
createdAt?: Prisma.DateTimeFilter<"Event"> | Date | string
|
|
276
|
+
orderedAt?: Prisma.DateTimeFilter<"Event"> | Date | string
|
|
277
|
+
invoicedAt?: Prisma.DateTimeNullableFilter<"Event"> | Date | string | null
|
|
278
|
+
canceledAt?: Prisma.DateTimeNullableFilter<"Event"> | Date | string | null
|
|
279
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
280
|
+
location?: Prisma.XOR<Prisma.LocationScalarRelationFilter, Prisma.LocationWhereInput>
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export type EventOrderByWithRelationInput = {
|
|
284
|
+
id?: Prisma.SortOrder
|
|
285
|
+
orderId?: Prisma.SortOrder
|
|
286
|
+
from?: Prisma.SortOrder
|
|
287
|
+
to?: Prisma.SortOrder
|
|
288
|
+
amount?: Prisma.SortOrder
|
|
289
|
+
price?: Prisma.SortOrder
|
|
290
|
+
userId?: Prisma.SortOrder
|
|
291
|
+
locationId?: Prisma.SortOrder
|
|
292
|
+
createdAt?: Prisma.SortOrder
|
|
293
|
+
orderedAt?: Prisma.SortOrder
|
|
294
|
+
invoicedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
295
|
+
canceledAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
296
|
+
user?: Prisma.UserOrderByWithRelationInput
|
|
297
|
+
location?: Prisma.LocationOrderByWithRelationInput
|
|
298
|
+
_relevance?: Prisma.EventOrderByRelevanceInput
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export type EventWhereUniqueInput = Prisma.AtLeast<{
|
|
302
|
+
id?: string
|
|
303
|
+
orderId?: string
|
|
304
|
+
AND?: Prisma.EventWhereInput | Prisma.EventWhereInput[]
|
|
305
|
+
OR?: Prisma.EventWhereInput[]
|
|
306
|
+
NOT?: Prisma.EventWhereInput | Prisma.EventWhereInput[]
|
|
307
|
+
from?: Prisma.DateTimeFilter<"Event"> | Date | string
|
|
308
|
+
to?: Prisma.DateTimeFilter<"Event"> | Date | string
|
|
309
|
+
amount?: Prisma.IntFilter<"Event"> | number
|
|
310
|
+
price?: Prisma.IntFilter<"Event"> | number
|
|
311
|
+
userId?: Prisma.StringFilter<"Event"> | string
|
|
312
|
+
locationId?: Prisma.StringFilter<"Event"> | string
|
|
313
|
+
createdAt?: Prisma.DateTimeFilter<"Event"> | Date | string
|
|
314
|
+
orderedAt?: Prisma.DateTimeFilter<"Event"> | Date | string
|
|
315
|
+
invoicedAt?: Prisma.DateTimeNullableFilter<"Event"> | Date | string | null
|
|
316
|
+
canceledAt?: Prisma.DateTimeNullableFilter<"Event"> | Date | string | null
|
|
317
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
318
|
+
location?: Prisma.XOR<Prisma.LocationScalarRelationFilter, Prisma.LocationWhereInput>
|
|
319
|
+
}, "id" | "orderId">
|
|
320
|
+
|
|
321
|
+
export type EventOrderByWithAggregationInput = {
|
|
322
|
+
id?: Prisma.SortOrder
|
|
323
|
+
orderId?: Prisma.SortOrder
|
|
324
|
+
from?: Prisma.SortOrder
|
|
325
|
+
to?: Prisma.SortOrder
|
|
326
|
+
amount?: Prisma.SortOrder
|
|
327
|
+
price?: Prisma.SortOrder
|
|
328
|
+
userId?: Prisma.SortOrder
|
|
329
|
+
locationId?: Prisma.SortOrder
|
|
330
|
+
createdAt?: Prisma.SortOrder
|
|
331
|
+
orderedAt?: Prisma.SortOrder
|
|
332
|
+
invoicedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
333
|
+
canceledAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
334
|
+
_count?: Prisma.EventCountOrderByAggregateInput
|
|
335
|
+
_avg?: Prisma.EventAvgOrderByAggregateInput
|
|
336
|
+
_max?: Prisma.EventMaxOrderByAggregateInput
|
|
337
|
+
_min?: Prisma.EventMinOrderByAggregateInput
|
|
338
|
+
_sum?: Prisma.EventSumOrderByAggregateInput
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export type EventScalarWhereWithAggregatesInput = {
|
|
342
|
+
AND?: Prisma.EventScalarWhereWithAggregatesInput | Prisma.EventScalarWhereWithAggregatesInput[]
|
|
343
|
+
OR?: Prisma.EventScalarWhereWithAggregatesInput[]
|
|
344
|
+
NOT?: Prisma.EventScalarWhereWithAggregatesInput | Prisma.EventScalarWhereWithAggregatesInput[]
|
|
345
|
+
id?: Prisma.StringWithAggregatesFilter<"Event"> | string
|
|
346
|
+
orderId?: Prisma.StringWithAggregatesFilter<"Event"> | string
|
|
347
|
+
from?: Prisma.DateTimeWithAggregatesFilter<"Event"> | Date | string
|
|
348
|
+
to?: Prisma.DateTimeWithAggregatesFilter<"Event"> | Date | string
|
|
349
|
+
amount?: Prisma.IntWithAggregatesFilter<"Event"> | number
|
|
350
|
+
price?: Prisma.IntWithAggregatesFilter<"Event"> | number
|
|
351
|
+
userId?: Prisma.StringWithAggregatesFilter<"Event"> | string
|
|
352
|
+
locationId?: Prisma.StringWithAggregatesFilter<"Event"> | string
|
|
353
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Event"> | Date | string
|
|
354
|
+
orderedAt?: Prisma.DateTimeWithAggregatesFilter<"Event"> | Date | string
|
|
355
|
+
invoicedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Event"> | Date | string | null
|
|
356
|
+
canceledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Event"> | Date | string | null
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export type EventCreateInput = {
|
|
360
|
+
id?: string
|
|
361
|
+
orderId: string
|
|
362
|
+
from: Date | string
|
|
363
|
+
to: Date | string
|
|
364
|
+
amount: number
|
|
365
|
+
price: number
|
|
366
|
+
createdAt?: Date | string
|
|
367
|
+
orderedAt: Date | string
|
|
368
|
+
invoicedAt?: Date | string | null
|
|
369
|
+
canceledAt?: Date | string | null
|
|
370
|
+
user: Prisma.UserCreateNestedOneWithoutEventInput
|
|
371
|
+
location: Prisma.LocationCreateNestedOneWithoutEventInput
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export type EventUncheckedCreateInput = {
|
|
375
|
+
id?: string
|
|
376
|
+
orderId: string
|
|
377
|
+
from: Date | string
|
|
378
|
+
to: Date | string
|
|
379
|
+
amount: number
|
|
380
|
+
price: number
|
|
381
|
+
userId: string
|
|
382
|
+
locationId: string
|
|
383
|
+
createdAt?: Date | string
|
|
384
|
+
orderedAt: Date | string
|
|
385
|
+
invoicedAt?: Date | string | null
|
|
386
|
+
canceledAt?: Date | string | null
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export type EventUpdateInput = {
|
|
390
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
391
|
+
orderId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
392
|
+
from?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
393
|
+
to?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
394
|
+
amount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
395
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number
|
|
396
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
397
|
+
orderedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
398
|
+
invoicedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
399
|
+
canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
400
|
+
user?: Prisma.UserUpdateOneRequiredWithoutEventNestedInput
|
|
401
|
+
location?: Prisma.LocationUpdateOneRequiredWithoutEventNestedInput
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export type EventUncheckedUpdateInput = {
|
|
405
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
406
|
+
orderId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
407
|
+
from?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
408
|
+
to?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
409
|
+
amount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
410
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number
|
|
411
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
412
|
+
locationId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
413
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
414
|
+
orderedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
415
|
+
invoicedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
416
|
+
canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export type EventCreateManyInput = {
|
|
420
|
+
id?: string
|
|
421
|
+
orderId: string
|
|
422
|
+
from: Date | string
|
|
423
|
+
to: Date | string
|
|
424
|
+
amount: number
|
|
425
|
+
price: number
|
|
426
|
+
userId: string
|
|
427
|
+
locationId: string
|
|
428
|
+
createdAt?: Date | string
|
|
429
|
+
orderedAt: Date | string
|
|
430
|
+
invoicedAt?: Date | string | null
|
|
431
|
+
canceledAt?: Date | string | null
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export type EventUpdateManyMutationInput = {
|
|
435
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
436
|
+
orderId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
437
|
+
from?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
438
|
+
to?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
439
|
+
amount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
440
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number
|
|
441
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
442
|
+
orderedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
443
|
+
invoicedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
444
|
+
canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
export type EventUncheckedUpdateManyInput = {
|
|
448
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
449
|
+
orderId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
450
|
+
from?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
451
|
+
to?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
452
|
+
amount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
453
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number
|
|
454
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
455
|
+
locationId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
456
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
457
|
+
orderedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
458
|
+
invoicedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
459
|
+
canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
export type EventListRelationFilter = {
|
|
463
|
+
every?: Prisma.EventWhereInput
|
|
464
|
+
some?: Prisma.EventWhereInput
|
|
465
|
+
none?: Prisma.EventWhereInput
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
export type EventOrderByRelationAggregateInput = {
|
|
469
|
+
_count?: Prisma.SortOrder
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export type EventOrderByRelevanceInput = {
|
|
473
|
+
fields: Prisma.EventOrderByRelevanceFieldEnum | Prisma.EventOrderByRelevanceFieldEnum[]
|
|
474
|
+
sort: Prisma.SortOrder
|
|
475
|
+
search: string
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
export type EventCountOrderByAggregateInput = {
|
|
479
|
+
id?: Prisma.SortOrder
|
|
480
|
+
orderId?: Prisma.SortOrder
|
|
481
|
+
from?: Prisma.SortOrder
|
|
482
|
+
to?: Prisma.SortOrder
|
|
483
|
+
amount?: Prisma.SortOrder
|
|
484
|
+
price?: Prisma.SortOrder
|
|
485
|
+
userId?: Prisma.SortOrder
|
|
486
|
+
locationId?: Prisma.SortOrder
|
|
487
|
+
createdAt?: Prisma.SortOrder
|
|
488
|
+
orderedAt?: Prisma.SortOrder
|
|
489
|
+
invoicedAt?: Prisma.SortOrder
|
|
490
|
+
canceledAt?: Prisma.SortOrder
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
export type EventAvgOrderByAggregateInput = {
|
|
494
|
+
amount?: Prisma.SortOrder
|
|
495
|
+
price?: Prisma.SortOrder
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
export type EventMaxOrderByAggregateInput = {
|
|
499
|
+
id?: Prisma.SortOrder
|
|
500
|
+
orderId?: Prisma.SortOrder
|
|
501
|
+
from?: Prisma.SortOrder
|
|
502
|
+
to?: Prisma.SortOrder
|
|
503
|
+
amount?: Prisma.SortOrder
|
|
504
|
+
price?: Prisma.SortOrder
|
|
505
|
+
userId?: Prisma.SortOrder
|
|
506
|
+
locationId?: Prisma.SortOrder
|
|
507
|
+
createdAt?: Prisma.SortOrder
|
|
508
|
+
orderedAt?: Prisma.SortOrder
|
|
509
|
+
invoicedAt?: Prisma.SortOrder
|
|
510
|
+
canceledAt?: Prisma.SortOrder
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
export type EventMinOrderByAggregateInput = {
|
|
514
|
+
id?: Prisma.SortOrder
|
|
515
|
+
orderId?: Prisma.SortOrder
|
|
516
|
+
from?: Prisma.SortOrder
|
|
517
|
+
to?: Prisma.SortOrder
|
|
518
|
+
amount?: Prisma.SortOrder
|
|
519
|
+
price?: Prisma.SortOrder
|
|
520
|
+
userId?: Prisma.SortOrder
|
|
521
|
+
locationId?: Prisma.SortOrder
|
|
522
|
+
createdAt?: Prisma.SortOrder
|
|
523
|
+
orderedAt?: Prisma.SortOrder
|
|
524
|
+
invoicedAt?: Prisma.SortOrder
|
|
525
|
+
canceledAt?: Prisma.SortOrder
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
export type EventSumOrderByAggregateInput = {
|
|
529
|
+
amount?: Prisma.SortOrder
|
|
530
|
+
price?: Prisma.SortOrder
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
export type EventCreateNestedManyWithoutUserInput = {
|
|
534
|
+
create?: Prisma.XOR<Prisma.EventCreateWithoutUserInput, Prisma.EventUncheckedCreateWithoutUserInput> | Prisma.EventCreateWithoutUserInput[] | Prisma.EventUncheckedCreateWithoutUserInput[]
|
|
535
|
+
connectOrCreate?: Prisma.EventCreateOrConnectWithoutUserInput | Prisma.EventCreateOrConnectWithoutUserInput[]
|
|
536
|
+
createMany?: Prisma.EventCreateManyUserInputEnvelope
|
|
537
|
+
connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
export type EventUncheckedCreateNestedManyWithoutUserInput = {
|
|
541
|
+
create?: Prisma.XOR<Prisma.EventCreateWithoutUserInput, Prisma.EventUncheckedCreateWithoutUserInput> | Prisma.EventCreateWithoutUserInput[] | Prisma.EventUncheckedCreateWithoutUserInput[]
|
|
542
|
+
connectOrCreate?: Prisma.EventCreateOrConnectWithoutUserInput | Prisma.EventCreateOrConnectWithoutUserInput[]
|
|
543
|
+
createMany?: Prisma.EventCreateManyUserInputEnvelope
|
|
544
|
+
connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
export type EventUpdateManyWithoutUserNestedInput = {
|
|
548
|
+
create?: Prisma.XOR<Prisma.EventCreateWithoutUserInput, Prisma.EventUncheckedCreateWithoutUserInput> | Prisma.EventCreateWithoutUserInput[] | Prisma.EventUncheckedCreateWithoutUserInput[]
|
|
549
|
+
connectOrCreate?: Prisma.EventCreateOrConnectWithoutUserInput | Prisma.EventCreateOrConnectWithoutUserInput[]
|
|
550
|
+
upsert?: Prisma.EventUpsertWithWhereUniqueWithoutUserInput | Prisma.EventUpsertWithWhereUniqueWithoutUserInput[]
|
|
551
|
+
createMany?: Prisma.EventCreateManyUserInputEnvelope
|
|
552
|
+
set?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
553
|
+
disconnect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
554
|
+
delete?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
555
|
+
connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
556
|
+
update?: Prisma.EventUpdateWithWhereUniqueWithoutUserInput | Prisma.EventUpdateWithWhereUniqueWithoutUserInput[]
|
|
557
|
+
updateMany?: Prisma.EventUpdateManyWithWhereWithoutUserInput | Prisma.EventUpdateManyWithWhereWithoutUserInput[]
|
|
558
|
+
deleteMany?: Prisma.EventScalarWhereInput | Prisma.EventScalarWhereInput[]
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
export type EventUncheckedUpdateManyWithoutUserNestedInput = {
|
|
562
|
+
create?: Prisma.XOR<Prisma.EventCreateWithoutUserInput, Prisma.EventUncheckedCreateWithoutUserInput> | Prisma.EventCreateWithoutUserInput[] | Prisma.EventUncheckedCreateWithoutUserInput[]
|
|
563
|
+
connectOrCreate?: Prisma.EventCreateOrConnectWithoutUserInput | Prisma.EventCreateOrConnectWithoutUserInput[]
|
|
564
|
+
upsert?: Prisma.EventUpsertWithWhereUniqueWithoutUserInput | Prisma.EventUpsertWithWhereUniqueWithoutUserInput[]
|
|
565
|
+
createMany?: Prisma.EventCreateManyUserInputEnvelope
|
|
566
|
+
set?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
567
|
+
disconnect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
568
|
+
delete?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
569
|
+
connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
570
|
+
update?: Prisma.EventUpdateWithWhereUniqueWithoutUserInput | Prisma.EventUpdateWithWhereUniqueWithoutUserInput[]
|
|
571
|
+
updateMany?: Prisma.EventUpdateManyWithWhereWithoutUserInput | Prisma.EventUpdateManyWithWhereWithoutUserInput[]
|
|
572
|
+
deleteMany?: Prisma.EventScalarWhereInput | Prisma.EventScalarWhereInput[]
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
export type IntFieldUpdateOperationsInput = {
|
|
576
|
+
set?: number
|
|
577
|
+
increment?: number
|
|
578
|
+
decrement?: number
|
|
579
|
+
multiply?: number
|
|
580
|
+
divide?: number
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
export type NullableDateTimeFieldUpdateOperationsInput = {
|
|
584
|
+
set?: Date | string | null
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
export type EventCreateNestedManyWithoutLocationInput = {
|
|
588
|
+
create?: Prisma.XOR<Prisma.EventCreateWithoutLocationInput, Prisma.EventUncheckedCreateWithoutLocationInput> | Prisma.EventCreateWithoutLocationInput[] | Prisma.EventUncheckedCreateWithoutLocationInput[]
|
|
589
|
+
connectOrCreate?: Prisma.EventCreateOrConnectWithoutLocationInput | Prisma.EventCreateOrConnectWithoutLocationInput[]
|
|
590
|
+
createMany?: Prisma.EventCreateManyLocationInputEnvelope
|
|
591
|
+
connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export type EventUncheckedCreateNestedManyWithoutLocationInput = {
|
|
595
|
+
create?: Prisma.XOR<Prisma.EventCreateWithoutLocationInput, Prisma.EventUncheckedCreateWithoutLocationInput> | Prisma.EventCreateWithoutLocationInput[] | Prisma.EventUncheckedCreateWithoutLocationInput[]
|
|
596
|
+
connectOrCreate?: Prisma.EventCreateOrConnectWithoutLocationInput | Prisma.EventCreateOrConnectWithoutLocationInput[]
|
|
597
|
+
createMany?: Prisma.EventCreateManyLocationInputEnvelope
|
|
598
|
+
connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
export type EventUpdateManyWithoutLocationNestedInput = {
|
|
602
|
+
create?: Prisma.XOR<Prisma.EventCreateWithoutLocationInput, Prisma.EventUncheckedCreateWithoutLocationInput> | Prisma.EventCreateWithoutLocationInput[] | Prisma.EventUncheckedCreateWithoutLocationInput[]
|
|
603
|
+
connectOrCreate?: Prisma.EventCreateOrConnectWithoutLocationInput | Prisma.EventCreateOrConnectWithoutLocationInput[]
|
|
604
|
+
upsert?: Prisma.EventUpsertWithWhereUniqueWithoutLocationInput | Prisma.EventUpsertWithWhereUniqueWithoutLocationInput[]
|
|
605
|
+
createMany?: Prisma.EventCreateManyLocationInputEnvelope
|
|
606
|
+
set?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
607
|
+
disconnect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
608
|
+
delete?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
609
|
+
connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
610
|
+
update?: Prisma.EventUpdateWithWhereUniqueWithoutLocationInput | Prisma.EventUpdateWithWhereUniqueWithoutLocationInput[]
|
|
611
|
+
updateMany?: Prisma.EventUpdateManyWithWhereWithoutLocationInput | Prisma.EventUpdateManyWithWhereWithoutLocationInput[]
|
|
612
|
+
deleteMany?: Prisma.EventScalarWhereInput | Prisma.EventScalarWhereInput[]
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
export type EventUncheckedUpdateManyWithoutLocationNestedInput = {
|
|
616
|
+
create?: Prisma.XOR<Prisma.EventCreateWithoutLocationInput, Prisma.EventUncheckedCreateWithoutLocationInput> | Prisma.EventCreateWithoutLocationInput[] | Prisma.EventUncheckedCreateWithoutLocationInput[]
|
|
617
|
+
connectOrCreate?: Prisma.EventCreateOrConnectWithoutLocationInput | Prisma.EventCreateOrConnectWithoutLocationInput[]
|
|
618
|
+
upsert?: Prisma.EventUpsertWithWhereUniqueWithoutLocationInput | Prisma.EventUpsertWithWhereUniqueWithoutLocationInput[]
|
|
619
|
+
createMany?: Prisma.EventCreateManyLocationInputEnvelope
|
|
620
|
+
set?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
621
|
+
disconnect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
622
|
+
delete?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
623
|
+
connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[]
|
|
624
|
+
update?: Prisma.EventUpdateWithWhereUniqueWithoutLocationInput | Prisma.EventUpdateWithWhereUniqueWithoutLocationInput[]
|
|
625
|
+
updateMany?: Prisma.EventUpdateManyWithWhereWithoutLocationInput | Prisma.EventUpdateManyWithWhereWithoutLocationInput[]
|
|
626
|
+
deleteMany?: Prisma.EventScalarWhereInput | Prisma.EventScalarWhereInput[]
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
export type EventCreateWithoutUserInput = {
|
|
630
|
+
id?: string
|
|
631
|
+
orderId: string
|
|
632
|
+
from: Date | string
|
|
633
|
+
to: Date | string
|
|
634
|
+
amount: number
|
|
635
|
+
price: number
|
|
636
|
+
createdAt?: Date | string
|
|
637
|
+
orderedAt: Date | string
|
|
638
|
+
invoicedAt?: Date | string | null
|
|
639
|
+
canceledAt?: Date | string | null
|
|
640
|
+
location: Prisma.LocationCreateNestedOneWithoutEventInput
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
export type EventUncheckedCreateWithoutUserInput = {
|
|
644
|
+
id?: string
|
|
645
|
+
orderId: string
|
|
646
|
+
from: Date | string
|
|
647
|
+
to: Date | string
|
|
648
|
+
amount: number
|
|
649
|
+
price: number
|
|
650
|
+
locationId: string
|
|
651
|
+
createdAt?: Date | string
|
|
652
|
+
orderedAt: Date | string
|
|
653
|
+
invoicedAt?: Date | string | null
|
|
654
|
+
canceledAt?: Date | string | null
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
export type EventCreateOrConnectWithoutUserInput = {
|
|
658
|
+
where: Prisma.EventWhereUniqueInput
|
|
659
|
+
create: Prisma.XOR<Prisma.EventCreateWithoutUserInput, Prisma.EventUncheckedCreateWithoutUserInput>
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
export type EventCreateManyUserInputEnvelope = {
|
|
663
|
+
data: Prisma.EventCreateManyUserInput | Prisma.EventCreateManyUserInput[]
|
|
664
|
+
skipDuplicates?: boolean
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
export type EventUpsertWithWhereUniqueWithoutUserInput = {
|
|
668
|
+
where: Prisma.EventWhereUniqueInput
|
|
669
|
+
update: Prisma.XOR<Prisma.EventUpdateWithoutUserInput, Prisma.EventUncheckedUpdateWithoutUserInput>
|
|
670
|
+
create: Prisma.XOR<Prisma.EventCreateWithoutUserInput, Prisma.EventUncheckedCreateWithoutUserInput>
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
export type EventUpdateWithWhereUniqueWithoutUserInput = {
|
|
674
|
+
where: Prisma.EventWhereUniqueInput
|
|
675
|
+
data: Prisma.XOR<Prisma.EventUpdateWithoutUserInput, Prisma.EventUncheckedUpdateWithoutUserInput>
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
export type EventUpdateManyWithWhereWithoutUserInput = {
|
|
679
|
+
where: Prisma.EventScalarWhereInput
|
|
680
|
+
data: Prisma.XOR<Prisma.EventUpdateManyMutationInput, Prisma.EventUncheckedUpdateManyWithoutUserInput>
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
export type EventScalarWhereInput = {
|
|
684
|
+
AND?: Prisma.EventScalarWhereInput | Prisma.EventScalarWhereInput[]
|
|
685
|
+
OR?: Prisma.EventScalarWhereInput[]
|
|
686
|
+
NOT?: Prisma.EventScalarWhereInput | Prisma.EventScalarWhereInput[]
|
|
687
|
+
id?: Prisma.StringFilter<"Event"> | string
|
|
688
|
+
orderId?: Prisma.StringFilter<"Event"> | string
|
|
689
|
+
from?: Prisma.DateTimeFilter<"Event"> | Date | string
|
|
690
|
+
to?: Prisma.DateTimeFilter<"Event"> | Date | string
|
|
691
|
+
amount?: Prisma.IntFilter<"Event"> | number
|
|
692
|
+
price?: Prisma.IntFilter<"Event"> | number
|
|
693
|
+
userId?: Prisma.StringFilter<"Event"> | string
|
|
694
|
+
locationId?: Prisma.StringFilter<"Event"> | string
|
|
695
|
+
createdAt?: Prisma.DateTimeFilter<"Event"> | Date | string
|
|
696
|
+
orderedAt?: Prisma.DateTimeFilter<"Event"> | Date | string
|
|
697
|
+
invoicedAt?: Prisma.DateTimeNullableFilter<"Event"> | Date | string | null
|
|
698
|
+
canceledAt?: Prisma.DateTimeNullableFilter<"Event"> | Date | string | null
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
export type EventCreateWithoutLocationInput = {
|
|
702
|
+
id?: string
|
|
703
|
+
orderId: string
|
|
704
|
+
from: Date | string
|
|
705
|
+
to: Date | string
|
|
706
|
+
amount: number
|
|
707
|
+
price: number
|
|
708
|
+
createdAt?: Date | string
|
|
709
|
+
orderedAt: Date | string
|
|
710
|
+
invoicedAt?: Date | string | null
|
|
711
|
+
canceledAt?: Date | string | null
|
|
712
|
+
user: Prisma.UserCreateNestedOneWithoutEventInput
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
export type EventUncheckedCreateWithoutLocationInput = {
|
|
716
|
+
id?: string
|
|
717
|
+
orderId: string
|
|
718
|
+
from: Date | string
|
|
719
|
+
to: Date | string
|
|
720
|
+
amount: number
|
|
721
|
+
price: number
|
|
722
|
+
userId: string
|
|
723
|
+
createdAt?: Date | string
|
|
724
|
+
orderedAt: Date | string
|
|
725
|
+
invoicedAt?: Date | string | null
|
|
726
|
+
canceledAt?: Date | string | null
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
export type EventCreateOrConnectWithoutLocationInput = {
|
|
730
|
+
where: Prisma.EventWhereUniqueInput
|
|
731
|
+
create: Prisma.XOR<Prisma.EventCreateWithoutLocationInput, Prisma.EventUncheckedCreateWithoutLocationInput>
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
export type EventCreateManyLocationInputEnvelope = {
|
|
735
|
+
data: Prisma.EventCreateManyLocationInput | Prisma.EventCreateManyLocationInput[]
|
|
736
|
+
skipDuplicates?: boolean
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
export type EventUpsertWithWhereUniqueWithoutLocationInput = {
|
|
740
|
+
where: Prisma.EventWhereUniqueInput
|
|
741
|
+
update: Prisma.XOR<Prisma.EventUpdateWithoutLocationInput, Prisma.EventUncheckedUpdateWithoutLocationInput>
|
|
742
|
+
create: Prisma.XOR<Prisma.EventCreateWithoutLocationInput, Prisma.EventUncheckedCreateWithoutLocationInput>
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
export type EventUpdateWithWhereUniqueWithoutLocationInput = {
|
|
746
|
+
where: Prisma.EventWhereUniqueInput
|
|
747
|
+
data: Prisma.XOR<Prisma.EventUpdateWithoutLocationInput, Prisma.EventUncheckedUpdateWithoutLocationInput>
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
export type EventUpdateManyWithWhereWithoutLocationInput = {
|
|
751
|
+
where: Prisma.EventScalarWhereInput
|
|
752
|
+
data: Prisma.XOR<Prisma.EventUpdateManyMutationInput, Prisma.EventUncheckedUpdateManyWithoutLocationInput>
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
export type EventCreateManyUserInput = {
|
|
756
|
+
id?: string
|
|
757
|
+
orderId: string
|
|
758
|
+
from: Date | string
|
|
759
|
+
to: Date | string
|
|
760
|
+
amount: number
|
|
761
|
+
price: number
|
|
762
|
+
locationId: string
|
|
763
|
+
createdAt?: Date | string
|
|
764
|
+
orderedAt: Date | string
|
|
765
|
+
invoicedAt?: Date | string | null
|
|
766
|
+
canceledAt?: Date | string | null
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
export type EventUpdateWithoutUserInput = {
|
|
770
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
771
|
+
orderId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
772
|
+
from?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
773
|
+
to?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
774
|
+
amount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
775
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number
|
|
776
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
777
|
+
orderedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
778
|
+
invoicedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
779
|
+
canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
780
|
+
location?: Prisma.LocationUpdateOneRequiredWithoutEventNestedInput
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
export type EventUncheckedUpdateWithoutUserInput = {
|
|
784
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
785
|
+
orderId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
786
|
+
from?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
787
|
+
to?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
788
|
+
amount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
789
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number
|
|
790
|
+
locationId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
791
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
792
|
+
orderedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
793
|
+
invoicedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
794
|
+
canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
export type EventUncheckedUpdateManyWithoutUserInput = {
|
|
798
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
799
|
+
orderId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
800
|
+
from?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
801
|
+
to?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
802
|
+
amount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
803
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number
|
|
804
|
+
locationId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
805
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
806
|
+
orderedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
807
|
+
invoicedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
808
|
+
canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
export type EventCreateManyLocationInput = {
|
|
812
|
+
id?: string
|
|
813
|
+
orderId: string
|
|
814
|
+
from: Date | string
|
|
815
|
+
to: Date | string
|
|
816
|
+
amount: number
|
|
817
|
+
price: number
|
|
818
|
+
userId: string
|
|
819
|
+
createdAt?: Date | string
|
|
820
|
+
orderedAt: Date | string
|
|
821
|
+
invoicedAt?: Date | string | null
|
|
822
|
+
canceledAt?: Date | string | null
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
export type EventUpdateWithoutLocationInput = {
|
|
826
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
827
|
+
orderId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
828
|
+
from?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
829
|
+
to?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
830
|
+
amount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
831
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number
|
|
832
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
833
|
+
orderedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
834
|
+
invoicedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
835
|
+
canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
836
|
+
user?: Prisma.UserUpdateOneRequiredWithoutEventNestedInput
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
export type EventUncheckedUpdateWithoutLocationInput = {
|
|
840
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
841
|
+
orderId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
842
|
+
from?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
843
|
+
to?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
844
|
+
amount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
845
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number
|
|
846
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
847
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
848
|
+
orderedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
849
|
+
invoicedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
850
|
+
canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
export type EventUncheckedUpdateManyWithoutLocationInput = {
|
|
854
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
855
|
+
orderId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
856
|
+
from?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
857
|
+
to?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
858
|
+
amount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
859
|
+
price?: Prisma.IntFieldUpdateOperationsInput | number
|
|
860
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
861
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
862
|
+
orderedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
863
|
+
invoicedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
864
|
+
canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
export type EventSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
870
|
+
id?: boolean
|
|
871
|
+
orderId?: boolean
|
|
872
|
+
from?: boolean
|
|
873
|
+
to?: boolean
|
|
874
|
+
amount?: boolean
|
|
875
|
+
price?: boolean
|
|
876
|
+
userId?: boolean
|
|
877
|
+
locationId?: boolean
|
|
878
|
+
createdAt?: boolean
|
|
879
|
+
orderedAt?: boolean
|
|
880
|
+
invoicedAt?: boolean
|
|
881
|
+
canceledAt?: boolean
|
|
882
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
883
|
+
location?: boolean | Prisma.LocationDefaultArgs<ExtArgs>
|
|
884
|
+
}, ExtArgs["result"]["event"]>
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
export type EventSelectScalar = {
|
|
889
|
+
id?: boolean
|
|
890
|
+
orderId?: boolean
|
|
891
|
+
from?: boolean
|
|
892
|
+
to?: boolean
|
|
893
|
+
amount?: boolean
|
|
894
|
+
price?: boolean
|
|
895
|
+
userId?: boolean
|
|
896
|
+
locationId?: boolean
|
|
897
|
+
createdAt?: boolean
|
|
898
|
+
orderedAt?: boolean
|
|
899
|
+
invoicedAt?: boolean
|
|
900
|
+
canceledAt?: boolean
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
export type EventOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "orderId" | "from" | "to" | "amount" | "price" | "userId" | "locationId" | "createdAt" | "orderedAt" | "invoicedAt" | "canceledAt", ExtArgs["result"]["event"]>
|
|
904
|
+
export type EventInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
905
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
906
|
+
location?: boolean | Prisma.LocationDefaultArgs<ExtArgs>
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
export type $EventPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
910
|
+
name: "Event"
|
|
911
|
+
objects: {
|
|
912
|
+
user: Prisma.$UserPayload<ExtArgs>
|
|
913
|
+
location: Prisma.$LocationPayload<ExtArgs>
|
|
914
|
+
}
|
|
915
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
916
|
+
id: string
|
|
917
|
+
orderId: string
|
|
918
|
+
from: Date
|
|
919
|
+
to: Date
|
|
920
|
+
amount: number
|
|
921
|
+
price: number
|
|
922
|
+
userId: string
|
|
923
|
+
locationId: string
|
|
924
|
+
createdAt: Date
|
|
925
|
+
orderedAt: Date
|
|
926
|
+
invoicedAt: Date | null
|
|
927
|
+
canceledAt: Date | null
|
|
928
|
+
}, ExtArgs["result"]["event"]>
|
|
929
|
+
composites: {}
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
export type EventGetPayload<S extends boolean | null | undefined | EventDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$EventPayload, S>
|
|
933
|
+
|
|
934
|
+
export type EventCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
935
|
+
Omit<EventFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
936
|
+
select?: EventCountAggregateInputType | true
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
export interface EventDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
940
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Event'], meta: { name: 'Event' } }
|
|
941
|
+
/**
|
|
942
|
+
* Find zero or one Event that matches the filter.
|
|
943
|
+
* @param {EventFindUniqueArgs} args - Arguments to find a Event
|
|
944
|
+
* @example
|
|
945
|
+
* // Get one Event
|
|
946
|
+
* const event = await prisma.event.findUnique({
|
|
947
|
+
* where: {
|
|
948
|
+
* // ... provide filter here
|
|
949
|
+
* }
|
|
950
|
+
* })
|
|
951
|
+
*/
|
|
952
|
+
findUnique<T extends EventFindUniqueArgs>(args: Prisma.SelectSubset<T, EventFindUniqueArgs<ExtArgs>>): Prisma.Prisma__EventClient<runtime.Types.Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* Find one Event that matches the filter or throw an error with `error.code='P2025'`
|
|
956
|
+
* if no matches were found.
|
|
957
|
+
* @param {EventFindUniqueOrThrowArgs} args - Arguments to find a Event
|
|
958
|
+
* @example
|
|
959
|
+
* // Get one Event
|
|
960
|
+
* const event = await prisma.event.findUniqueOrThrow({
|
|
961
|
+
* where: {
|
|
962
|
+
* // ... provide filter here
|
|
963
|
+
* }
|
|
964
|
+
* })
|
|
965
|
+
*/
|
|
966
|
+
findUniqueOrThrow<T extends EventFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, EventFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__EventClient<runtime.Types.Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* Find the first Event that matches the filter.
|
|
970
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
971
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
972
|
+
* @param {EventFindFirstArgs} args - Arguments to find a Event
|
|
973
|
+
* @example
|
|
974
|
+
* // Get one Event
|
|
975
|
+
* const event = await prisma.event.findFirst({
|
|
976
|
+
* where: {
|
|
977
|
+
* // ... provide filter here
|
|
978
|
+
* }
|
|
979
|
+
* })
|
|
980
|
+
*/
|
|
981
|
+
findFirst<T extends EventFindFirstArgs>(args?: Prisma.SelectSubset<T, EventFindFirstArgs<ExtArgs>>): Prisma.Prisma__EventClient<runtime.Types.Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* Find the first Event that matches the filter or
|
|
985
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
986
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
987
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
988
|
+
* @param {EventFindFirstOrThrowArgs} args - Arguments to find a Event
|
|
989
|
+
* @example
|
|
990
|
+
* // Get one Event
|
|
991
|
+
* const event = await prisma.event.findFirstOrThrow({
|
|
992
|
+
* where: {
|
|
993
|
+
* // ... provide filter here
|
|
994
|
+
* }
|
|
995
|
+
* })
|
|
996
|
+
*/
|
|
997
|
+
findFirstOrThrow<T extends EventFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, EventFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__EventClient<runtime.Types.Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
* Find zero or more Events that matches the filter.
|
|
1001
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1002
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1003
|
+
* @param {EventFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1004
|
+
* @example
|
|
1005
|
+
* // Get all Events
|
|
1006
|
+
* const events = await prisma.event.findMany()
|
|
1007
|
+
*
|
|
1008
|
+
* // Get first 10 Events
|
|
1009
|
+
* const events = await prisma.event.findMany({ take: 10 })
|
|
1010
|
+
*
|
|
1011
|
+
* // Only select the `id`
|
|
1012
|
+
* const eventWithIdOnly = await prisma.event.findMany({ select: { id: true } })
|
|
1013
|
+
*
|
|
1014
|
+
*/
|
|
1015
|
+
findMany<T extends EventFindManyArgs>(args?: Prisma.SelectSubset<T, EventFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* Create a Event.
|
|
1019
|
+
* @param {EventCreateArgs} args - Arguments to create a Event.
|
|
1020
|
+
* @example
|
|
1021
|
+
* // Create one Event
|
|
1022
|
+
* const Event = await prisma.event.create({
|
|
1023
|
+
* data: {
|
|
1024
|
+
* // ... data to create a Event
|
|
1025
|
+
* }
|
|
1026
|
+
* })
|
|
1027
|
+
*
|
|
1028
|
+
*/
|
|
1029
|
+
create<T extends EventCreateArgs>(args: Prisma.SelectSubset<T, EventCreateArgs<ExtArgs>>): Prisma.Prisma__EventClient<runtime.Types.Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1030
|
+
|
|
1031
|
+
/**
|
|
1032
|
+
* Create many Events.
|
|
1033
|
+
* @param {EventCreateManyArgs} args - Arguments to create many Events.
|
|
1034
|
+
* @example
|
|
1035
|
+
* // Create many Events
|
|
1036
|
+
* const event = await prisma.event.createMany({
|
|
1037
|
+
* data: [
|
|
1038
|
+
* // ... provide data here
|
|
1039
|
+
* ]
|
|
1040
|
+
* })
|
|
1041
|
+
*
|
|
1042
|
+
*/
|
|
1043
|
+
createMany<T extends EventCreateManyArgs>(args?: Prisma.SelectSubset<T, EventCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* Delete a Event.
|
|
1047
|
+
* @param {EventDeleteArgs} args - Arguments to delete one Event.
|
|
1048
|
+
* @example
|
|
1049
|
+
* // Delete one Event
|
|
1050
|
+
* const Event = await prisma.event.delete({
|
|
1051
|
+
* where: {
|
|
1052
|
+
* // ... filter to delete one Event
|
|
1053
|
+
* }
|
|
1054
|
+
* })
|
|
1055
|
+
*
|
|
1056
|
+
*/
|
|
1057
|
+
delete<T extends EventDeleteArgs>(args: Prisma.SelectSubset<T, EventDeleteArgs<ExtArgs>>): Prisma.Prisma__EventClient<runtime.Types.Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* Update one Event.
|
|
1061
|
+
* @param {EventUpdateArgs} args - Arguments to update one Event.
|
|
1062
|
+
* @example
|
|
1063
|
+
* // Update one Event
|
|
1064
|
+
* const event = await prisma.event.update({
|
|
1065
|
+
* where: {
|
|
1066
|
+
* // ... provide filter here
|
|
1067
|
+
* },
|
|
1068
|
+
* data: {
|
|
1069
|
+
* // ... provide data here
|
|
1070
|
+
* }
|
|
1071
|
+
* })
|
|
1072
|
+
*
|
|
1073
|
+
*/
|
|
1074
|
+
update<T extends EventUpdateArgs>(args: Prisma.SelectSubset<T, EventUpdateArgs<ExtArgs>>): Prisma.Prisma__EventClient<runtime.Types.Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* Delete zero or more Events.
|
|
1078
|
+
* @param {EventDeleteManyArgs} args - Arguments to filter Events to delete.
|
|
1079
|
+
* @example
|
|
1080
|
+
* // Delete a few Events
|
|
1081
|
+
* const { count } = await prisma.event.deleteMany({
|
|
1082
|
+
* where: {
|
|
1083
|
+
* // ... provide filter here
|
|
1084
|
+
* }
|
|
1085
|
+
* })
|
|
1086
|
+
*
|
|
1087
|
+
*/
|
|
1088
|
+
deleteMany<T extends EventDeleteManyArgs>(args?: Prisma.SelectSubset<T, EventDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Update zero or more Events.
|
|
1092
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1093
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1094
|
+
* @param {EventUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1095
|
+
* @example
|
|
1096
|
+
* // Update many Events
|
|
1097
|
+
* const event = await prisma.event.updateMany({
|
|
1098
|
+
* where: {
|
|
1099
|
+
* // ... provide filter here
|
|
1100
|
+
* },
|
|
1101
|
+
* data: {
|
|
1102
|
+
* // ... provide data here
|
|
1103
|
+
* }
|
|
1104
|
+
* })
|
|
1105
|
+
*
|
|
1106
|
+
*/
|
|
1107
|
+
updateMany<T extends EventUpdateManyArgs>(args: Prisma.SelectSubset<T, EventUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* Create or update one Event.
|
|
1111
|
+
* @param {EventUpsertArgs} args - Arguments to update or create a Event.
|
|
1112
|
+
* @example
|
|
1113
|
+
* // Update or create a Event
|
|
1114
|
+
* const event = await prisma.event.upsert({
|
|
1115
|
+
* create: {
|
|
1116
|
+
* // ... data to create a Event
|
|
1117
|
+
* },
|
|
1118
|
+
* update: {
|
|
1119
|
+
* // ... in case it already exists, update
|
|
1120
|
+
* },
|
|
1121
|
+
* where: {
|
|
1122
|
+
* // ... the filter for the Event we want to update
|
|
1123
|
+
* }
|
|
1124
|
+
* })
|
|
1125
|
+
*/
|
|
1126
|
+
upsert<T extends EventUpsertArgs>(args: Prisma.SelectSubset<T, EventUpsertArgs<ExtArgs>>): Prisma.Prisma__EventClient<runtime.Types.Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
/**
|
|
1130
|
+
* Count the number of Events.
|
|
1131
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1132
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1133
|
+
* @param {EventCountArgs} args - Arguments to filter Events to count.
|
|
1134
|
+
* @example
|
|
1135
|
+
* // Count the number of Events
|
|
1136
|
+
* const count = await prisma.event.count({
|
|
1137
|
+
* where: {
|
|
1138
|
+
* // ... the filter for the Events we want to count
|
|
1139
|
+
* }
|
|
1140
|
+
* })
|
|
1141
|
+
**/
|
|
1142
|
+
count<T extends EventCountArgs>(
|
|
1143
|
+
args?: Prisma.Subset<T, EventCountArgs>,
|
|
1144
|
+
): Prisma.PrismaPromise<
|
|
1145
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
1146
|
+
? T['select'] extends true
|
|
1147
|
+
? number
|
|
1148
|
+
: Prisma.GetScalarType<T['select'], EventCountAggregateOutputType>
|
|
1149
|
+
: number
|
|
1150
|
+
>
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* Allows you to perform aggregations operations on a Event.
|
|
1154
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1155
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1156
|
+
* @param {EventAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1157
|
+
* @example
|
|
1158
|
+
* // Ordered by age ascending
|
|
1159
|
+
* // Where email contains prisma.io
|
|
1160
|
+
* // Limited to the 10 users
|
|
1161
|
+
* const aggregations = await prisma.user.aggregate({
|
|
1162
|
+
* _avg: {
|
|
1163
|
+
* age: true,
|
|
1164
|
+
* },
|
|
1165
|
+
* where: {
|
|
1166
|
+
* email: {
|
|
1167
|
+
* contains: "prisma.io",
|
|
1168
|
+
* },
|
|
1169
|
+
* },
|
|
1170
|
+
* orderBy: {
|
|
1171
|
+
* age: "asc",
|
|
1172
|
+
* },
|
|
1173
|
+
* take: 10,
|
|
1174
|
+
* })
|
|
1175
|
+
**/
|
|
1176
|
+
aggregate<T extends EventAggregateArgs>(args: Prisma.Subset<T, EventAggregateArgs>): Prisma.PrismaPromise<GetEventAggregateType<T>>
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* Group by Event.
|
|
1180
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1181
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1182
|
+
* @param {EventGroupByArgs} args - Group by arguments.
|
|
1183
|
+
* @example
|
|
1184
|
+
* // Group by city, order by createdAt, get count
|
|
1185
|
+
* const result = await prisma.user.groupBy({
|
|
1186
|
+
* by: ['city', 'createdAt'],
|
|
1187
|
+
* orderBy: {
|
|
1188
|
+
* createdAt: true
|
|
1189
|
+
* },
|
|
1190
|
+
* _count: {
|
|
1191
|
+
* _all: true
|
|
1192
|
+
* },
|
|
1193
|
+
* })
|
|
1194
|
+
*
|
|
1195
|
+
**/
|
|
1196
|
+
groupBy<
|
|
1197
|
+
T extends EventGroupByArgs,
|
|
1198
|
+
HasSelectOrTake extends Prisma.Or<
|
|
1199
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
1200
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
1201
|
+
>,
|
|
1202
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
1203
|
+
? { orderBy: EventGroupByArgs['orderBy'] }
|
|
1204
|
+
: { orderBy?: EventGroupByArgs['orderBy'] },
|
|
1205
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
1206
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
1207
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
1208
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
1209
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
1210
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
1211
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
1212
|
+
? `Error: "by" must not be empty.`
|
|
1213
|
+
: HavingValid extends Prisma.False
|
|
1214
|
+
? {
|
|
1215
|
+
[P in HavingFields]: P extends ByFields
|
|
1216
|
+
? never
|
|
1217
|
+
: P extends string
|
|
1218
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
1219
|
+
: [
|
|
1220
|
+
Error,
|
|
1221
|
+
'Field ',
|
|
1222
|
+
P,
|
|
1223
|
+
` in "having" needs to be provided in "by"`,
|
|
1224
|
+
]
|
|
1225
|
+
}[HavingFields]
|
|
1226
|
+
: 'take' extends Prisma.Keys<T>
|
|
1227
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1228
|
+
? ByValid extends Prisma.True
|
|
1229
|
+
? {}
|
|
1230
|
+
: {
|
|
1231
|
+
[P in OrderFields]: P extends ByFields
|
|
1232
|
+
? never
|
|
1233
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1234
|
+
}[OrderFields]
|
|
1235
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
1236
|
+
: 'skip' extends Prisma.Keys<T>
|
|
1237
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1238
|
+
? ByValid extends Prisma.True
|
|
1239
|
+
? {}
|
|
1240
|
+
: {
|
|
1241
|
+
[P in OrderFields]: P extends ByFields
|
|
1242
|
+
? never
|
|
1243
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1244
|
+
}[OrderFields]
|
|
1245
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
1246
|
+
: ByValid extends Prisma.True
|
|
1247
|
+
? {}
|
|
1248
|
+
: {
|
|
1249
|
+
[P in OrderFields]: P extends ByFields
|
|
1250
|
+
? never
|
|
1251
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1252
|
+
}[OrderFields]
|
|
1253
|
+
>(args: Prisma.SubsetIntersection<T, EventGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEventGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
1254
|
+
/**
|
|
1255
|
+
* Fields of the Event model
|
|
1256
|
+
*/
|
|
1257
|
+
readonly fields: EventFieldRefs;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* The delegate class that acts as a "Promise-like" for Event.
|
|
1262
|
+
* Why is this prefixed with `Prisma__`?
|
|
1263
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1264
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1265
|
+
*/
|
|
1266
|
+
export interface Prisma__EventClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1267
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1268
|
+
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1269
|
+
location<T extends Prisma.LocationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LocationDefaultArgs<ExtArgs>>): Prisma.Prisma__LocationClient<runtime.Types.Result.GetResult<Prisma.$LocationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1270
|
+
/**
|
|
1271
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1272
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1273
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1274
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1275
|
+
*/
|
|
1276
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
1277
|
+
/**
|
|
1278
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1279
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1280
|
+
* @returns A Promise for the completion of the callback.
|
|
1281
|
+
*/
|
|
1282
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1283
|
+
/**
|
|
1284
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1285
|
+
* resolved value cannot be modified from the callback.
|
|
1286
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1287
|
+
* @returns A Promise for the completion of the callback.
|
|
1288
|
+
*/
|
|
1289
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* Fields of the Event model
|
|
1297
|
+
*/
|
|
1298
|
+
export interface EventFieldRefs {
|
|
1299
|
+
readonly id: Prisma.FieldRef<"Event", 'String'>
|
|
1300
|
+
readonly orderId: Prisma.FieldRef<"Event", 'String'>
|
|
1301
|
+
readonly from: Prisma.FieldRef<"Event", 'DateTime'>
|
|
1302
|
+
readonly to: Prisma.FieldRef<"Event", 'DateTime'>
|
|
1303
|
+
readonly amount: Prisma.FieldRef<"Event", 'Int'>
|
|
1304
|
+
readonly price: Prisma.FieldRef<"Event", 'Int'>
|
|
1305
|
+
readonly userId: Prisma.FieldRef<"Event", 'String'>
|
|
1306
|
+
readonly locationId: Prisma.FieldRef<"Event", 'String'>
|
|
1307
|
+
readonly createdAt: Prisma.FieldRef<"Event", 'DateTime'>
|
|
1308
|
+
readonly orderedAt: Prisma.FieldRef<"Event", 'DateTime'>
|
|
1309
|
+
readonly invoicedAt: Prisma.FieldRef<"Event", 'DateTime'>
|
|
1310
|
+
readonly canceledAt: Prisma.FieldRef<"Event", 'DateTime'>
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
// Custom InputTypes
|
|
1315
|
+
/**
|
|
1316
|
+
* Event findUnique
|
|
1317
|
+
*/
|
|
1318
|
+
export type EventFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1319
|
+
/**
|
|
1320
|
+
* Select specific fields to fetch from the Event
|
|
1321
|
+
*/
|
|
1322
|
+
select?: Prisma.EventSelect<ExtArgs> | null
|
|
1323
|
+
/**
|
|
1324
|
+
* Omit specific fields from the Event
|
|
1325
|
+
*/
|
|
1326
|
+
omit?: Prisma.EventOmit<ExtArgs> | null
|
|
1327
|
+
/**
|
|
1328
|
+
* Choose, which related nodes to fetch as well
|
|
1329
|
+
*/
|
|
1330
|
+
include?: Prisma.EventInclude<ExtArgs> | null
|
|
1331
|
+
/**
|
|
1332
|
+
* Filter, which Event to fetch.
|
|
1333
|
+
*/
|
|
1334
|
+
where: Prisma.EventWhereUniqueInput
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
/**
|
|
1338
|
+
* Event findUniqueOrThrow
|
|
1339
|
+
*/
|
|
1340
|
+
export type EventFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1341
|
+
/**
|
|
1342
|
+
* Select specific fields to fetch from the Event
|
|
1343
|
+
*/
|
|
1344
|
+
select?: Prisma.EventSelect<ExtArgs> | null
|
|
1345
|
+
/**
|
|
1346
|
+
* Omit specific fields from the Event
|
|
1347
|
+
*/
|
|
1348
|
+
omit?: Prisma.EventOmit<ExtArgs> | null
|
|
1349
|
+
/**
|
|
1350
|
+
* Choose, which related nodes to fetch as well
|
|
1351
|
+
*/
|
|
1352
|
+
include?: Prisma.EventInclude<ExtArgs> | null
|
|
1353
|
+
/**
|
|
1354
|
+
* Filter, which Event to fetch.
|
|
1355
|
+
*/
|
|
1356
|
+
where: Prisma.EventWhereUniqueInput
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* Event findFirst
|
|
1361
|
+
*/
|
|
1362
|
+
export type EventFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1363
|
+
/**
|
|
1364
|
+
* Select specific fields to fetch from the Event
|
|
1365
|
+
*/
|
|
1366
|
+
select?: Prisma.EventSelect<ExtArgs> | null
|
|
1367
|
+
/**
|
|
1368
|
+
* Omit specific fields from the Event
|
|
1369
|
+
*/
|
|
1370
|
+
omit?: Prisma.EventOmit<ExtArgs> | null
|
|
1371
|
+
/**
|
|
1372
|
+
* Choose, which related nodes to fetch as well
|
|
1373
|
+
*/
|
|
1374
|
+
include?: Prisma.EventInclude<ExtArgs> | null
|
|
1375
|
+
/**
|
|
1376
|
+
* Filter, which Event to fetch.
|
|
1377
|
+
*/
|
|
1378
|
+
where?: Prisma.EventWhereInput
|
|
1379
|
+
/**
|
|
1380
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1381
|
+
*
|
|
1382
|
+
* Determine the order of Events to fetch.
|
|
1383
|
+
*/
|
|
1384
|
+
orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[]
|
|
1385
|
+
/**
|
|
1386
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1387
|
+
*
|
|
1388
|
+
* Sets the position for searching for Events.
|
|
1389
|
+
*/
|
|
1390
|
+
cursor?: Prisma.EventWhereUniqueInput
|
|
1391
|
+
/**
|
|
1392
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1393
|
+
*
|
|
1394
|
+
* Take `±n` Events from the position of the cursor.
|
|
1395
|
+
*/
|
|
1396
|
+
take?: number
|
|
1397
|
+
/**
|
|
1398
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1399
|
+
*
|
|
1400
|
+
* Skip the first `n` Events.
|
|
1401
|
+
*/
|
|
1402
|
+
skip?: number
|
|
1403
|
+
/**
|
|
1404
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1405
|
+
*
|
|
1406
|
+
* Filter by unique combinations of Events.
|
|
1407
|
+
*/
|
|
1408
|
+
distinct?: Prisma.EventScalarFieldEnum | Prisma.EventScalarFieldEnum[]
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* Event findFirstOrThrow
|
|
1413
|
+
*/
|
|
1414
|
+
export type EventFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1415
|
+
/**
|
|
1416
|
+
* Select specific fields to fetch from the Event
|
|
1417
|
+
*/
|
|
1418
|
+
select?: Prisma.EventSelect<ExtArgs> | null
|
|
1419
|
+
/**
|
|
1420
|
+
* Omit specific fields from the Event
|
|
1421
|
+
*/
|
|
1422
|
+
omit?: Prisma.EventOmit<ExtArgs> | null
|
|
1423
|
+
/**
|
|
1424
|
+
* Choose, which related nodes to fetch as well
|
|
1425
|
+
*/
|
|
1426
|
+
include?: Prisma.EventInclude<ExtArgs> | null
|
|
1427
|
+
/**
|
|
1428
|
+
* Filter, which Event to fetch.
|
|
1429
|
+
*/
|
|
1430
|
+
where?: Prisma.EventWhereInput
|
|
1431
|
+
/**
|
|
1432
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1433
|
+
*
|
|
1434
|
+
* Determine the order of Events to fetch.
|
|
1435
|
+
*/
|
|
1436
|
+
orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[]
|
|
1437
|
+
/**
|
|
1438
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1439
|
+
*
|
|
1440
|
+
* Sets the position for searching for Events.
|
|
1441
|
+
*/
|
|
1442
|
+
cursor?: Prisma.EventWhereUniqueInput
|
|
1443
|
+
/**
|
|
1444
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1445
|
+
*
|
|
1446
|
+
* Take `±n` Events from the position of the cursor.
|
|
1447
|
+
*/
|
|
1448
|
+
take?: number
|
|
1449
|
+
/**
|
|
1450
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1451
|
+
*
|
|
1452
|
+
* Skip the first `n` Events.
|
|
1453
|
+
*/
|
|
1454
|
+
skip?: number
|
|
1455
|
+
/**
|
|
1456
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1457
|
+
*
|
|
1458
|
+
* Filter by unique combinations of Events.
|
|
1459
|
+
*/
|
|
1460
|
+
distinct?: Prisma.EventScalarFieldEnum | Prisma.EventScalarFieldEnum[]
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
/**
|
|
1464
|
+
* Event findMany
|
|
1465
|
+
*/
|
|
1466
|
+
export type EventFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1467
|
+
/**
|
|
1468
|
+
* Select specific fields to fetch from the Event
|
|
1469
|
+
*/
|
|
1470
|
+
select?: Prisma.EventSelect<ExtArgs> | null
|
|
1471
|
+
/**
|
|
1472
|
+
* Omit specific fields from the Event
|
|
1473
|
+
*/
|
|
1474
|
+
omit?: Prisma.EventOmit<ExtArgs> | null
|
|
1475
|
+
/**
|
|
1476
|
+
* Choose, which related nodes to fetch as well
|
|
1477
|
+
*/
|
|
1478
|
+
include?: Prisma.EventInclude<ExtArgs> | null
|
|
1479
|
+
/**
|
|
1480
|
+
* Filter, which Events to fetch.
|
|
1481
|
+
*/
|
|
1482
|
+
where?: Prisma.EventWhereInput
|
|
1483
|
+
/**
|
|
1484
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1485
|
+
*
|
|
1486
|
+
* Determine the order of Events to fetch.
|
|
1487
|
+
*/
|
|
1488
|
+
orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[]
|
|
1489
|
+
/**
|
|
1490
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1491
|
+
*
|
|
1492
|
+
* Sets the position for listing Events.
|
|
1493
|
+
*/
|
|
1494
|
+
cursor?: Prisma.EventWhereUniqueInput
|
|
1495
|
+
/**
|
|
1496
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1497
|
+
*
|
|
1498
|
+
* Take `±n` Events from the position of the cursor.
|
|
1499
|
+
*/
|
|
1500
|
+
take?: number
|
|
1501
|
+
/**
|
|
1502
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1503
|
+
*
|
|
1504
|
+
* Skip the first `n` Events.
|
|
1505
|
+
*/
|
|
1506
|
+
skip?: number
|
|
1507
|
+
distinct?: Prisma.EventScalarFieldEnum | Prisma.EventScalarFieldEnum[]
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* Event create
|
|
1512
|
+
*/
|
|
1513
|
+
export type EventCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1514
|
+
/**
|
|
1515
|
+
* Select specific fields to fetch from the Event
|
|
1516
|
+
*/
|
|
1517
|
+
select?: Prisma.EventSelect<ExtArgs> | null
|
|
1518
|
+
/**
|
|
1519
|
+
* Omit specific fields from the Event
|
|
1520
|
+
*/
|
|
1521
|
+
omit?: Prisma.EventOmit<ExtArgs> | null
|
|
1522
|
+
/**
|
|
1523
|
+
* Choose, which related nodes to fetch as well
|
|
1524
|
+
*/
|
|
1525
|
+
include?: Prisma.EventInclude<ExtArgs> | null
|
|
1526
|
+
/**
|
|
1527
|
+
* The data needed to create a Event.
|
|
1528
|
+
*/
|
|
1529
|
+
data: Prisma.XOR<Prisma.EventCreateInput, Prisma.EventUncheckedCreateInput>
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* Event createMany
|
|
1534
|
+
*/
|
|
1535
|
+
export type EventCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1536
|
+
/**
|
|
1537
|
+
* The data used to create many Events.
|
|
1538
|
+
*/
|
|
1539
|
+
data: Prisma.EventCreateManyInput | Prisma.EventCreateManyInput[]
|
|
1540
|
+
skipDuplicates?: boolean
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* Event update
|
|
1545
|
+
*/
|
|
1546
|
+
export type EventUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1547
|
+
/**
|
|
1548
|
+
* Select specific fields to fetch from the Event
|
|
1549
|
+
*/
|
|
1550
|
+
select?: Prisma.EventSelect<ExtArgs> | null
|
|
1551
|
+
/**
|
|
1552
|
+
* Omit specific fields from the Event
|
|
1553
|
+
*/
|
|
1554
|
+
omit?: Prisma.EventOmit<ExtArgs> | null
|
|
1555
|
+
/**
|
|
1556
|
+
* Choose, which related nodes to fetch as well
|
|
1557
|
+
*/
|
|
1558
|
+
include?: Prisma.EventInclude<ExtArgs> | null
|
|
1559
|
+
/**
|
|
1560
|
+
* The data needed to update a Event.
|
|
1561
|
+
*/
|
|
1562
|
+
data: Prisma.XOR<Prisma.EventUpdateInput, Prisma.EventUncheckedUpdateInput>
|
|
1563
|
+
/**
|
|
1564
|
+
* Choose, which Event to update.
|
|
1565
|
+
*/
|
|
1566
|
+
where: Prisma.EventWhereUniqueInput
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
/**
|
|
1570
|
+
* Event updateMany
|
|
1571
|
+
*/
|
|
1572
|
+
export type EventUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1573
|
+
/**
|
|
1574
|
+
* The data used to update Events.
|
|
1575
|
+
*/
|
|
1576
|
+
data: Prisma.XOR<Prisma.EventUpdateManyMutationInput, Prisma.EventUncheckedUpdateManyInput>
|
|
1577
|
+
/**
|
|
1578
|
+
* Filter which Events to update
|
|
1579
|
+
*/
|
|
1580
|
+
where?: Prisma.EventWhereInput
|
|
1581
|
+
/**
|
|
1582
|
+
* Limit how many Events to update.
|
|
1583
|
+
*/
|
|
1584
|
+
limit?: number
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
/**
|
|
1588
|
+
* Event upsert
|
|
1589
|
+
*/
|
|
1590
|
+
export type EventUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1591
|
+
/**
|
|
1592
|
+
* Select specific fields to fetch from the Event
|
|
1593
|
+
*/
|
|
1594
|
+
select?: Prisma.EventSelect<ExtArgs> | null
|
|
1595
|
+
/**
|
|
1596
|
+
* Omit specific fields from the Event
|
|
1597
|
+
*/
|
|
1598
|
+
omit?: Prisma.EventOmit<ExtArgs> | null
|
|
1599
|
+
/**
|
|
1600
|
+
* Choose, which related nodes to fetch as well
|
|
1601
|
+
*/
|
|
1602
|
+
include?: Prisma.EventInclude<ExtArgs> | null
|
|
1603
|
+
/**
|
|
1604
|
+
* The filter to search for the Event to update in case it exists.
|
|
1605
|
+
*/
|
|
1606
|
+
where: Prisma.EventWhereUniqueInput
|
|
1607
|
+
/**
|
|
1608
|
+
* In case the Event found by the `where` argument doesn't exist, create a new Event with this data.
|
|
1609
|
+
*/
|
|
1610
|
+
create: Prisma.XOR<Prisma.EventCreateInput, Prisma.EventUncheckedCreateInput>
|
|
1611
|
+
/**
|
|
1612
|
+
* In case the Event was found with the provided `where` argument, update it with this data.
|
|
1613
|
+
*/
|
|
1614
|
+
update: Prisma.XOR<Prisma.EventUpdateInput, Prisma.EventUncheckedUpdateInput>
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* Event delete
|
|
1619
|
+
*/
|
|
1620
|
+
export type EventDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1621
|
+
/**
|
|
1622
|
+
* Select specific fields to fetch from the Event
|
|
1623
|
+
*/
|
|
1624
|
+
select?: Prisma.EventSelect<ExtArgs> | null
|
|
1625
|
+
/**
|
|
1626
|
+
* Omit specific fields from the Event
|
|
1627
|
+
*/
|
|
1628
|
+
omit?: Prisma.EventOmit<ExtArgs> | null
|
|
1629
|
+
/**
|
|
1630
|
+
* Choose, which related nodes to fetch as well
|
|
1631
|
+
*/
|
|
1632
|
+
include?: Prisma.EventInclude<ExtArgs> | null
|
|
1633
|
+
/**
|
|
1634
|
+
* Filter which Event to delete.
|
|
1635
|
+
*/
|
|
1636
|
+
where: Prisma.EventWhereUniqueInput
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* Event deleteMany
|
|
1641
|
+
*/
|
|
1642
|
+
export type EventDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1643
|
+
/**
|
|
1644
|
+
* Filter which Events to delete
|
|
1645
|
+
*/
|
|
1646
|
+
where?: Prisma.EventWhereInput
|
|
1647
|
+
/**
|
|
1648
|
+
* Limit how many Events to delete.
|
|
1649
|
+
*/
|
|
1650
|
+
limit?: number
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
/**
|
|
1654
|
+
* Event without action
|
|
1655
|
+
*/
|
|
1656
|
+
export type EventDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1657
|
+
/**
|
|
1658
|
+
* Select specific fields to fetch from the Event
|
|
1659
|
+
*/
|
|
1660
|
+
select?: Prisma.EventSelect<ExtArgs> | null
|
|
1661
|
+
/**
|
|
1662
|
+
* Omit specific fields from the Event
|
|
1663
|
+
*/
|
|
1664
|
+
omit?: Prisma.EventOmit<ExtArgs> | null
|
|
1665
|
+
/**
|
|
1666
|
+
* Choose, which related nodes to fetch as well
|
|
1667
|
+
*/
|
|
1668
|
+
include?: Prisma.EventInclude<ExtArgs> | null
|
|
1669
|
+
}
|