@allbluecn/database 0.4.12 → 0.4.13

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