expo-backend-types 0.31.0-EXPO-315-Marcelo-Tinelli.1 → 0.31.0-EXPO-316-EB-Modificar-DB-Schema-Tickets.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.
@@ -63,6 +63,11 @@ export type Message = $Result.DefaultSelection<Prisma.$MessagePayload>
63
63
  *
64
64
  */
65
65
  export type CannedResponse = $Result.DefaultSelection<Prisma.$CannedResponsePayload>
66
+ /**
67
+ * Model Ticket
68
+ *
69
+ */
70
+ export type Ticket = $Result.DefaultSelection<Prisma.$TicketPayload>
66
71
  /**
67
72
  * Model Enums
68
73
  *
@@ -101,6 +106,23 @@ export const MessageState: {
101
106
  export type MessageState = (typeof MessageState)[keyof typeof MessageState]
102
107
 
103
108
 
109
+ export const TicketType: {
110
+ PARTICIPANT: 'PARTICIPANT',
111
+ SPECTATOR: 'SPECTATOR',
112
+ STAFF: 'STAFF'
113
+ };
114
+
115
+ export type TicketType = (typeof TicketType)[keyof typeof TicketType]
116
+
117
+
118
+ export const TicketStatus: {
119
+ BOOKED: 'BOOKED',
120
+ PAID: 'PAID'
121
+ };
122
+
123
+ export type TicketStatus = (typeof TicketStatus)[keyof typeof TicketStatus]
124
+
125
+
104
126
  export const TemplateStatus: {
105
127
  APPROVED: 'APPROVED',
106
128
  PENDING: 'PENDING',
@@ -132,6 +154,14 @@ export type MessageState = $Enums.MessageState
132
154
 
133
155
  export const MessageState: typeof $Enums.MessageState
134
156
 
157
+ export type TicketType = $Enums.TicketType
158
+
159
+ export const TicketType: typeof $Enums.TicketType
160
+
161
+ export type TicketStatus = $Enums.TicketStatus
162
+
163
+ export const TicketStatus: typeof $Enums.TicketStatus
164
+
135
165
  export type TemplateStatus = $Enums.TemplateStatus
136
166
 
137
167
  export const TemplateStatus: typeof $Enums.TemplateStatus
@@ -363,6 +393,16 @@ export class PrismaClient<
363
393
  */
364
394
  get cannedResponse(): Prisma.CannedResponseDelegate<ExtArgs>;
365
395
 
396
+ /**
397
+ * `prisma.ticket`: Exposes CRUD operations for the **Ticket** model.
398
+ * Example usage:
399
+ * ```ts
400
+ * // Fetch zero or more Tickets
401
+ * const tickets = await prisma.ticket.findMany()
402
+ * ```
403
+ */
404
+ get ticket(): Prisma.TicketDelegate<ExtArgs>;
405
+
366
406
  /**
367
407
  * `prisma.enums`: Exposes CRUD operations for the **Enums** model.
368
408
  * Example usage:
@@ -823,6 +863,7 @@ export namespace Prisma {
823
863
  EventFolder: 'EventFolder',
824
864
  Message: 'Message',
825
865
  CannedResponse: 'CannedResponse',
866
+ Ticket: 'Ticket',
826
867
  Enums: 'Enums'
827
868
  };
828
869
 
@@ -839,7 +880,7 @@ export namespace Prisma {
839
880
 
840
881
  export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> = {
841
882
  meta: {
842
- modelProps: "account" | "profile" | "location" | "comment" | "tag" | "tagGroup" | "event" | "eventFolder" | "message" | "cannedResponse" | "enums"
883
+ modelProps: "account" | "profile" | "location" | "comment" | "tag" | "tagGroup" | "event" | "eventFolder" | "message" | "cannedResponse" | "ticket" | "enums"
843
884
  txIsolationLevel: Prisma.TransactionIsolationLevel
844
885
  }
845
886
  model: {
@@ -1543,6 +1584,76 @@ export namespace Prisma {
1543
1584
  }
1544
1585
  }
1545
1586
  }
1587
+ Ticket: {
1588
+ payload: Prisma.$TicketPayload<ExtArgs>
1589
+ fields: Prisma.TicketFieldRefs
1590
+ operations: {
1591
+ findUnique: {
1592
+ args: Prisma.TicketFindUniqueArgs<ExtArgs>
1593
+ result: $Utils.PayloadToResult<Prisma.$TicketPayload> | null
1594
+ }
1595
+ findUniqueOrThrow: {
1596
+ args: Prisma.TicketFindUniqueOrThrowArgs<ExtArgs>
1597
+ result: $Utils.PayloadToResult<Prisma.$TicketPayload>
1598
+ }
1599
+ findFirst: {
1600
+ args: Prisma.TicketFindFirstArgs<ExtArgs>
1601
+ result: $Utils.PayloadToResult<Prisma.$TicketPayload> | null
1602
+ }
1603
+ findFirstOrThrow: {
1604
+ args: Prisma.TicketFindFirstOrThrowArgs<ExtArgs>
1605
+ result: $Utils.PayloadToResult<Prisma.$TicketPayload>
1606
+ }
1607
+ findMany: {
1608
+ args: Prisma.TicketFindManyArgs<ExtArgs>
1609
+ result: $Utils.PayloadToResult<Prisma.$TicketPayload>[]
1610
+ }
1611
+ create: {
1612
+ args: Prisma.TicketCreateArgs<ExtArgs>
1613
+ result: $Utils.PayloadToResult<Prisma.$TicketPayload>
1614
+ }
1615
+ createMany: {
1616
+ args: Prisma.TicketCreateManyArgs<ExtArgs>
1617
+ result: BatchPayload
1618
+ }
1619
+ createManyAndReturn: {
1620
+ args: Prisma.TicketCreateManyAndReturnArgs<ExtArgs>
1621
+ result: $Utils.PayloadToResult<Prisma.$TicketPayload>[]
1622
+ }
1623
+ delete: {
1624
+ args: Prisma.TicketDeleteArgs<ExtArgs>
1625
+ result: $Utils.PayloadToResult<Prisma.$TicketPayload>
1626
+ }
1627
+ update: {
1628
+ args: Prisma.TicketUpdateArgs<ExtArgs>
1629
+ result: $Utils.PayloadToResult<Prisma.$TicketPayload>
1630
+ }
1631
+ deleteMany: {
1632
+ args: Prisma.TicketDeleteManyArgs<ExtArgs>
1633
+ result: BatchPayload
1634
+ }
1635
+ updateMany: {
1636
+ args: Prisma.TicketUpdateManyArgs<ExtArgs>
1637
+ result: BatchPayload
1638
+ }
1639
+ upsert: {
1640
+ args: Prisma.TicketUpsertArgs<ExtArgs>
1641
+ result: $Utils.PayloadToResult<Prisma.$TicketPayload>
1642
+ }
1643
+ aggregate: {
1644
+ args: Prisma.TicketAggregateArgs<ExtArgs>
1645
+ result: $Utils.Optional<AggregateTicket>
1646
+ }
1647
+ groupBy: {
1648
+ args: Prisma.TicketGroupByArgs<ExtArgs>
1649
+ result: $Utils.Optional<TicketGroupByOutputType>[]
1650
+ }
1651
+ count: {
1652
+ args: Prisma.TicketCountArgs<ExtArgs>
1653
+ result: $Utils.Optional<TicketCountAggregateOutputType> | number
1654
+ }
1655
+ }
1656
+ }
1546
1657
  Enums: {
1547
1658
  payload: Prisma.$EnumsPayload<ExtArgs>
1548
1659
  fields: Prisma.EnumsFieldRefs
@@ -2002,10 +2113,12 @@ export namespace Prisma {
2002
2113
 
2003
2114
  export type EventCountOutputType = {
2004
2115
  subEvents: number
2116
+ tickets: number
2005
2117
  }
2006
2118
 
2007
2119
  export type EventCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2008
2120
  subEvents?: boolean | EventCountOutputTypeCountSubEventsArgs
2121
+ tickets?: boolean | EventCountOutputTypeCountTicketsArgs
2009
2122
  }
2010
2123
 
2011
2124
  // Custom InputTypes
@@ -2026,6 +2139,13 @@ export namespace Prisma {
2026
2139
  where?: EventWhereInput
2027
2140
  }
2028
2141
 
2142
+ /**
2143
+ * EventCountOutputType without action
2144
+ */
2145
+ export type EventCountOutputTypeCountTicketsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2146
+ where?: TicketWhereInput
2147
+ }
2148
+
2029
2149
 
2030
2150
  /**
2031
2151
  * Count Type EventFolderCountOutputType
@@ -8647,6 +8767,7 @@ export namespace Prisma {
8647
8767
  tagConfirmed?: boolean | TagDefaultArgs<ExtArgs>
8648
8768
  supraEvent?: boolean | Event$supraEventArgs<ExtArgs>
8649
8769
  subEvents?: boolean | Event$subEventsArgs<ExtArgs>
8770
+ tickets?: boolean | Event$ticketsArgs<ExtArgs>
8650
8771
  _count?: boolean | EventCountOutputTypeDefaultArgs<ExtArgs>
8651
8772
  }, ExtArgs["result"]["event"]>
8652
8773
 
@@ -8686,6 +8807,7 @@ export namespace Prisma {
8686
8807
  tagConfirmed?: boolean | TagDefaultArgs<ExtArgs>
8687
8808
  supraEvent?: boolean | Event$supraEventArgs<ExtArgs>
8688
8809
  subEvents?: boolean | Event$subEventsArgs<ExtArgs>
8810
+ tickets?: boolean | Event$ticketsArgs<ExtArgs>
8689
8811
  _count?: boolean | EventCountOutputTypeDefaultArgs<ExtArgs>
8690
8812
  }
8691
8813
  export type EventIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
@@ -8703,6 +8825,7 @@ export namespace Prisma {
8703
8825
  tagConfirmed: Prisma.$TagPayload<ExtArgs>
8704
8826
  supraEvent: Prisma.$EventPayload<ExtArgs> | null
8705
8827
  subEvents: Prisma.$EventPayload<ExtArgs>[]
8828
+ tickets: Prisma.$TicketPayload<ExtArgs>[]
8706
8829
  }
8707
8830
  scalars: $Extensions.GetPayloadResult<{
8708
8831
  id: string
@@ -9084,6 +9207,7 @@ export namespace Prisma {
9084
9207
  tagConfirmed<T extends TagDefaultArgs<ExtArgs> = {}>(args?: Subset<T, TagDefaultArgs<ExtArgs>>): Prisma__TagClient<$Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
9085
9208
  supraEvent<T extends Event$supraEventArgs<ExtArgs> = {}>(args?: Subset<T, Event$supraEventArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
9086
9209
  subEvents<T extends Event$subEventsArgs<ExtArgs> = {}>(args?: Subset<T, Event$subEventsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findMany"> | Null>
9210
+ tickets<T extends Event$ticketsArgs<ExtArgs> = {}>(args?: Subset<T, Event$ticketsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "findMany"> | Null>
9087
9211
  /**
9088
9212
  * Attaches callbacks for the resolution and/or rejection of the Promise.
9089
9213
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -9490,6 +9614,26 @@ export namespace Prisma {
9490
9614
  distinct?: EventScalarFieldEnum | EventScalarFieldEnum[]
9491
9615
  }
9492
9616
 
9617
+ /**
9618
+ * Event.tickets
9619
+ */
9620
+ export type Event$ticketsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9621
+ /**
9622
+ * Select specific fields to fetch from the Ticket
9623
+ */
9624
+ select?: TicketSelect<ExtArgs> | null
9625
+ /**
9626
+ * Choose, which related nodes to fetch as well
9627
+ */
9628
+ include?: TicketInclude<ExtArgs> | null
9629
+ where?: TicketWhereInput
9630
+ orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[]
9631
+ cursor?: TicketWhereUniqueInput
9632
+ take?: number
9633
+ skip?: number
9634
+ distinct?: TicketScalarFieldEnum | TicketScalarFieldEnum[]
9635
+ }
9636
+
9493
9637
  /**
9494
9638
  * Event without action
9495
9639
  */
@@ -12285,305 +12429,370 @@ export namespace Prisma {
12285
12429
 
12286
12430
 
12287
12431
  /**
12288
- * Model Enums
12432
+ * Model Ticket
12289
12433
  */
12290
12434
 
12291
- export type AggregateEnums = {
12292
- _count: EnumsCountAggregateOutputType | null
12293
- _min: EnumsMinAggregateOutputType | null
12294
- _max: EnumsMaxAggregateOutputType | null
12435
+ export type AggregateTicket = {
12436
+ _count: TicketCountAggregateOutputType | null
12437
+ _min: TicketMinAggregateOutputType | null
12438
+ _max: TicketMaxAggregateOutputType | null
12295
12439
  }
12296
12440
 
12297
- export type EnumsMinAggregateOutputType = {
12441
+ export type TicketMinAggregateOutputType = {
12298
12442
  id: string | null
12299
- templateStatus: $Enums.TemplateStatus | null
12300
- templateCategory: $Enums.TemplateCategory | null
12443
+ eventId: string | null
12444
+ type: $Enums.TicketType | null
12445
+ status: $Enums.TicketStatus | null
12446
+ fullName: string | null
12447
+ mail: string | null
12448
+ created_at: Date | null
12449
+ updated_at: Date | null
12301
12450
  }
12302
12451
 
12303
- export type EnumsMaxAggregateOutputType = {
12452
+ export type TicketMaxAggregateOutputType = {
12304
12453
  id: string | null
12305
- templateStatus: $Enums.TemplateStatus | null
12306
- templateCategory: $Enums.TemplateCategory | null
12454
+ eventId: string | null
12455
+ type: $Enums.TicketType | null
12456
+ status: $Enums.TicketStatus | null
12457
+ fullName: string | null
12458
+ mail: string | null
12459
+ created_at: Date | null
12460
+ updated_at: Date | null
12307
12461
  }
12308
12462
 
12309
- export type EnumsCountAggregateOutputType = {
12463
+ export type TicketCountAggregateOutputType = {
12310
12464
  id: number
12311
- templateStatus: number
12312
- templateCategory: number
12465
+ eventId: number
12466
+ type: number
12467
+ status: number
12468
+ fullName: number
12469
+ mail: number
12470
+ created_at: number
12471
+ updated_at: number
12313
12472
  _all: number
12314
12473
  }
12315
12474
 
12316
12475
 
12317
- export type EnumsMinAggregateInputType = {
12476
+ export type TicketMinAggregateInputType = {
12318
12477
  id?: true
12319
- templateStatus?: true
12320
- templateCategory?: true
12478
+ eventId?: true
12479
+ type?: true
12480
+ status?: true
12481
+ fullName?: true
12482
+ mail?: true
12483
+ created_at?: true
12484
+ updated_at?: true
12321
12485
  }
12322
12486
 
12323
- export type EnumsMaxAggregateInputType = {
12487
+ export type TicketMaxAggregateInputType = {
12324
12488
  id?: true
12325
- templateStatus?: true
12326
- templateCategory?: true
12489
+ eventId?: true
12490
+ type?: true
12491
+ status?: true
12492
+ fullName?: true
12493
+ mail?: true
12494
+ created_at?: true
12495
+ updated_at?: true
12327
12496
  }
12328
12497
 
12329
- export type EnumsCountAggregateInputType = {
12498
+ export type TicketCountAggregateInputType = {
12330
12499
  id?: true
12331
- templateStatus?: true
12332
- templateCategory?: true
12500
+ eventId?: true
12501
+ type?: true
12502
+ status?: true
12503
+ fullName?: true
12504
+ mail?: true
12505
+ created_at?: true
12506
+ updated_at?: true
12333
12507
  _all?: true
12334
12508
  }
12335
12509
 
12336
- export type EnumsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
12510
+ export type TicketAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
12337
12511
  /**
12338
- * Filter which Enums to aggregate.
12512
+ * Filter which Ticket to aggregate.
12339
12513
  */
12340
- where?: EnumsWhereInput
12514
+ where?: TicketWhereInput
12341
12515
  /**
12342
12516
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
12343
12517
  *
12344
- * Determine the order of Enums to fetch.
12518
+ * Determine the order of Tickets to fetch.
12345
12519
  */
12346
- orderBy?: EnumsOrderByWithRelationInput | EnumsOrderByWithRelationInput[]
12520
+ orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[]
12347
12521
  /**
12348
12522
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
12349
12523
  *
12350
12524
  * Sets the start position
12351
12525
  */
12352
- cursor?: EnumsWhereUniqueInput
12526
+ cursor?: TicketWhereUniqueInput
12353
12527
  /**
12354
12528
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
12355
12529
  *
12356
- * Take `±n` Enums from the position of the cursor.
12530
+ * Take `±n` Tickets from the position of the cursor.
12357
12531
  */
12358
12532
  take?: number
12359
12533
  /**
12360
12534
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
12361
12535
  *
12362
- * Skip the first `n` Enums.
12536
+ * Skip the first `n` Tickets.
12363
12537
  */
12364
12538
  skip?: number
12365
12539
  /**
12366
12540
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
12367
12541
  *
12368
- * Count returned Enums
12542
+ * Count returned Tickets
12369
12543
  **/
12370
- _count?: true | EnumsCountAggregateInputType
12544
+ _count?: true | TicketCountAggregateInputType
12371
12545
  /**
12372
12546
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
12373
12547
  *
12374
12548
  * Select which fields to find the minimum value
12375
12549
  **/
12376
- _min?: EnumsMinAggregateInputType
12550
+ _min?: TicketMinAggregateInputType
12377
12551
  /**
12378
12552
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
12379
12553
  *
12380
12554
  * Select which fields to find the maximum value
12381
12555
  **/
12382
- _max?: EnumsMaxAggregateInputType
12556
+ _max?: TicketMaxAggregateInputType
12383
12557
  }
12384
12558
 
12385
- export type GetEnumsAggregateType<T extends EnumsAggregateArgs> = {
12386
- [P in keyof T & keyof AggregateEnums]: P extends '_count' | 'count'
12559
+ export type GetTicketAggregateType<T extends TicketAggregateArgs> = {
12560
+ [P in keyof T & keyof AggregateTicket]: P extends '_count' | 'count'
12387
12561
  ? T[P] extends true
12388
12562
  ? number
12389
- : GetScalarType<T[P], AggregateEnums[P]>
12390
- : GetScalarType<T[P], AggregateEnums[P]>
12563
+ : GetScalarType<T[P], AggregateTicket[P]>
12564
+ : GetScalarType<T[P], AggregateTicket[P]>
12391
12565
  }
12392
12566
 
12393
12567
 
12394
12568
 
12395
12569
 
12396
- export type EnumsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
12397
- where?: EnumsWhereInput
12398
- orderBy?: EnumsOrderByWithAggregationInput | EnumsOrderByWithAggregationInput[]
12399
- by: EnumsScalarFieldEnum[] | EnumsScalarFieldEnum
12400
- having?: EnumsScalarWhereWithAggregatesInput
12570
+ export type TicketGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
12571
+ where?: TicketWhereInput
12572
+ orderBy?: TicketOrderByWithAggregationInput | TicketOrderByWithAggregationInput[]
12573
+ by: TicketScalarFieldEnum[] | TicketScalarFieldEnum
12574
+ having?: TicketScalarWhereWithAggregatesInput
12401
12575
  take?: number
12402
12576
  skip?: number
12403
- _count?: EnumsCountAggregateInputType | true
12404
- _min?: EnumsMinAggregateInputType
12405
- _max?: EnumsMaxAggregateInputType
12577
+ _count?: TicketCountAggregateInputType | true
12578
+ _min?: TicketMinAggregateInputType
12579
+ _max?: TicketMaxAggregateInputType
12406
12580
  }
12407
12581
 
12408
- export type EnumsGroupByOutputType = {
12582
+ export type TicketGroupByOutputType = {
12409
12583
  id: string
12410
- templateStatus: $Enums.TemplateStatus
12411
- templateCategory: $Enums.TemplateCategory
12412
- _count: EnumsCountAggregateOutputType | null
12413
- _min: EnumsMinAggregateOutputType | null
12414
- _max: EnumsMaxAggregateOutputType | null
12584
+ eventId: string
12585
+ type: $Enums.TicketType
12586
+ status: $Enums.TicketStatus
12587
+ fullName: string
12588
+ mail: string
12589
+ created_at: Date
12590
+ updated_at: Date
12591
+ _count: TicketCountAggregateOutputType | null
12592
+ _min: TicketMinAggregateOutputType | null
12593
+ _max: TicketMaxAggregateOutputType | null
12415
12594
  }
12416
12595
 
12417
- type GetEnumsGroupByPayload<T extends EnumsGroupByArgs> = Prisma.PrismaPromise<
12596
+ type GetTicketGroupByPayload<T extends TicketGroupByArgs> = Prisma.PrismaPromise<
12418
12597
  Array<
12419
- PickEnumerable<EnumsGroupByOutputType, T['by']> &
12598
+ PickEnumerable<TicketGroupByOutputType, T['by']> &
12420
12599
  {
12421
- [P in ((keyof T) & (keyof EnumsGroupByOutputType))]: P extends '_count'
12600
+ [P in ((keyof T) & (keyof TicketGroupByOutputType))]: P extends '_count'
12422
12601
  ? T[P] extends boolean
12423
12602
  ? number
12424
- : GetScalarType<T[P], EnumsGroupByOutputType[P]>
12425
- : GetScalarType<T[P], EnumsGroupByOutputType[P]>
12603
+ : GetScalarType<T[P], TicketGroupByOutputType[P]>
12604
+ : GetScalarType<T[P], TicketGroupByOutputType[P]>
12426
12605
  }
12427
12606
  >
12428
12607
  >
12429
12608
 
12430
12609
 
12431
- export type EnumsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
12610
+ export type TicketSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
12432
12611
  id?: boolean
12433
- templateStatus?: boolean
12434
- templateCategory?: boolean
12435
- }, ExtArgs["result"]["enums"]>
12612
+ eventId?: boolean
12613
+ type?: boolean
12614
+ status?: boolean
12615
+ fullName?: boolean
12616
+ mail?: boolean
12617
+ created_at?: boolean
12618
+ updated_at?: boolean
12619
+ event?: boolean | EventDefaultArgs<ExtArgs>
12620
+ }, ExtArgs["result"]["ticket"]>
12436
12621
 
12437
- export type EnumsSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
12622
+ export type TicketSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
12438
12623
  id?: boolean
12439
- templateStatus?: boolean
12440
- templateCategory?: boolean
12441
- }, ExtArgs["result"]["enums"]>
12624
+ eventId?: boolean
12625
+ type?: boolean
12626
+ status?: boolean
12627
+ fullName?: boolean
12628
+ mail?: boolean
12629
+ created_at?: boolean
12630
+ updated_at?: boolean
12631
+ event?: boolean | EventDefaultArgs<ExtArgs>
12632
+ }, ExtArgs["result"]["ticket"]>
12442
12633
 
12443
- export type EnumsSelectScalar = {
12634
+ export type TicketSelectScalar = {
12444
12635
  id?: boolean
12445
- templateStatus?: boolean
12446
- templateCategory?: boolean
12636
+ eventId?: boolean
12637
+ type?: boolean
12638
+ status?: boolean
12639
+ fullName?: boolean
12640
+ mail?: boolean
12641
+ created_at?: boolean
12642
+ updated_at?: boolean
12447
12643
  }
12448
12644
 
12645
+ export type TicketInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
12646
+ event?: boolean | EventDefaultArgs<ExtArgs>
12647
+ }
12648
+ export type TicketIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
12649
+ event?: boolean | EventDefaultArgs<ExtArgs>
12650
+ }
12449
12651
 
12450
- export type $EnumsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
12451
- name: "Enums"
12452
- objects: {}
12652
+ export type $TicketPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
12653
+ name: "Ticket"
12654
+ objects: {
12655
+ event: Prisma.$EventPayload<ExtArgs>
12656
+ }
12453
12657
  scalars: $Extensions.GetPayloadResult<{
12454
12658
  id: string
12455
- templateStatus: $Enums.TemplateStatus
12456
- templateCategory: $Enums.TemplateCategory
12457
- }, ExtArgs["result"]["enums"]>
12659
+ eventId: string
12660
+ type: $Enums.TicketType
12661
+ status: $Enums.TicketStatus
12662
+ fullName: string
12663
+ mail: string
12664
+ created_at: Date
12665
+ updated_at: Date
12666
+ }, ExtArgs["result"]["ticket"]>
12458
12667
  composites: {}
12459
12668
  }
12460
12669
 
12461
- type EnumsGetPayload<S extends boolean | null | undefined | EnumsDefaultArgs> = $Result.GetResult<Prisma.$EnumsPayload, S>
12670
+ type TicketGetPayload<S extends boolean | null | undefined | TicketDefaultArgs> = $Result.GetResult<Prisma.$TicketPayload, S>
12462
12671
 
12463
- type EnumsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
12464
- Omit<EnumsFindManyArgs, 'select' | 'include' | 'distinct'> & {
12465
- select?: EnumsCountAggregateInputType | true
12672
+ type TicketCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
12673
+ Omit<TicketFindManyArgs, 'select' | 'include' | 'distinct'> & {
12674
+ select?: TicketCountAggregateInputType | true
12466
12675
  }
12467
12676
 
12468
- export interface EnumsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
12469
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Enums'], meta: { name: 'Enums' } }
12677
+ export interface TicketDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
12678
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Ticket'], meta: { name: 'Ticket' } }
12470
12679
  /**
12471
- * Find zero or one Enums that matches the filter.
12472
- * @param {EnumsFindUniqueArgs} args - Arguments to find a Enums
12680
+ * Find zero or one Ticket that matches the filter.
12681
+ * @param {TicketFindUniqueArgs} args - Arguments to find a Ticket
12473
12682
  * @example
12474
- * // Get one Enums
12475
- * const enums = await prisma.enums.findUnique({
12683
+ * // Get one Ticket
12684
+ * const ticket = await prisma.ticket.findUnique({
12476
12685
  * where: {
12477
12686
  * // ... provide filter here
12478
12687
  * }
12479
12688
  * })
12480
12689
  */
12481
- findUnique<T extends EnumsFindUniqueArgs>(args: SelectSubset<T, EnumsFindUniqueArgs<ExtArgs>>): Prisma__EnumsClient<$Result.GetResult<Prisma.$EnumsPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
12690
+ findUnique<T extends TicketFindUniqueArgs>(args: SelectSubset<T, TicketFindUniqueArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
12482
12691
 
12483
12692
  /**
12484
- * Find one Enums that matches the filter or throw an error with `error.code='P2025'`
12693
+ * Find one Ticket that matches the filter or throw an error with `error.code='P2025'`
12485
12694
  * if no matches were found.
12486
- * @param {EnumsFindUniqueOrThrowArgs} args - Arguments to find a Enums
12695
+ * @param {TicketFindUniqueOrThrowArgs} args - Arguments to find a Ticket
12487
12696
  * @example
12488
- * // Get one Enums
12489
- * const enums = await prisma.enums.findUniqueOrThrow({
12697
+ * // Get one Ticket
12698
+ * const ticket = await prisma.ticket.findUniqueOrThrow({
12490
12699
  * where: {
12491
12700
  * // ... provide filter here
12492
12701
  * }
12493
12702
  * })
12494
12703
  */
12495
- findUniqueOrThrow<T extends EnumsFindUniqueOrThrowArgs>(args: SelectSubset<T, EnumsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EnumsClient<$Result.GetResult<Prisma.$EnumsPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
12704
+ findUniqueOrThrow<T extends TicketFindUniqueOrThrowArgs>(args: SelectSubset<T, TicketFindUniqueOrThrowArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
12496
12705
 
12497
12706
  /**
12498
- * Find the first Enums that matches the filter.
12707
+ * Find the first Ticket that matches the filter.
12499
12708
  * Note, that providing `undefined` is treated as the value not being there.
12500
12709
  * Read more here: https://pris.ly/d/null-undefined
12501
- * @param {EnumsFindFirstArgs} args - Arguments to find a Enums
12710
+ * @param {TicketFindFirstArgs} args - Arguments to find a Ticket
12502
12711
  * @example
12503
- * // Get one Enums
12504
- * const enums = await prisma.enums.findFirst({
12712
+ * // Get one Ticket
12713
+ * const ticket = await prisma.ticket.findFirst({
12505
12714
  * where: {
12506
12715
  * // ... provide filter here
12507
12716
  * }
12508
12717
  * })
12509
12718
  */
12510
- findFirst<T extends EnumsFindFirstArgs>(args?: SelectSubset<T, EnumsFindFirstArgs<ExtArgs>>): Prisma__EnumsClient<$Result.GetResult<Prisma.$EnumsPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
12719
+ findFirst<T extends TicketFindFirstArgs>(args?: SelectSubset<T, TicketFindFirstArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
12511
12720
 
12512
12721
  /**
12513
- * Find the first Enums that matches the filter or
12722
+ * Find the first Ticket that matches the filter or
12514
12723
  * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
12515
12724
  * Note, that providing `undefined` is treated as the value not being there.
12516
12725
  * Read more here: https://pris.ly/d/null-undefined
12517
- * @param {EnumsFindFirstOrThrowArgs} args - Arguments to find a Enums
12726
+ * @param {TicketFindFirstOrThrowArgs} args - Arguments to find a Ticket
12518
12727
  * @example
12519
- * // Get one Enums
12520
- * const enums = await prisma.enums.findFirstOrThrow({
12728
+ * // Get one Ticket
12729
+ * const ticket = await prisma.ticket.findFirstOrThrow({
12521
12730
  * where: {
12522
12731
  * // ... provide filter here
12523
12732
  * }
12524
12733
  * })
12525
12734
  */
12526
- findFirstOrThrow<T extends EnumsFindFirstOrThrowArgs>(args?: SelectSubset<T, EnumsFindFirstOrThrowArgs<ExtArgs>>): Prisma__EnumsClient<$Result.GetResult<Prisma.$EnumsPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
12735
+ findFirstOrThrow<T extends TicketFindFirstOrThrowArgs>(args?: SelectSubset<T, TicketFindFirstOrThrowArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
12527
12736
 
12528
12737
  /**
12529
- * Find zero or more Enums that matches the filter.
12738
+ * Find zero or more Tickets that matches the filter.
12530
12739
  * Note, that providing `undefined` is treated as the value not being there.
12531
12740
  * Read more here: https://pris.ly/d/null-undefined
12532
- * @param {EnumsFindManyArgs} args - Arguments to filter and select certain fields only.
12741
+ * @param {TicketFindManyArgs} args - Arguments to filter and select certain fields only.
12533
12742
  * @example
12534
- * // Get all Enums
12535
- * const enums = await prisma.enums.findMany()
12743
+ * // Get all Tickets
12744
+ * const tickets = await prisma.ticket.findMany()
12536
12745
  *
12537
- * // Get first 10 Enums
12538
- * const enums = await prisma.enums.findMany({ take: 10 })
12746
+ * // Get first 10 Tickets
12747
+ * const tickets = await prisma.ticket.findMany({ take: 10 })
12539
12748
  *
12540
12749
  * // Only select the `id`
12541
- * const enumsWithIdOnly = await prisma.enums.findMany({ select: { id: true } })
12750
+ * const ticketWithIdOnly = await prisma.ticket.findMany({ select: { id: true } })
12542
12751
  *
12543
12752
  */
12544
- findMany<T extends EnumsFindManyArgs>(args?: SelectSubset<T, EnumsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EnumsPayload<ExtArgs>, T, "findMany">>
12753
+ findMany<T extends TicketFindManyArgs>(args?: SelectSubset<T, TicketFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "findMany">>
12545
12754
 
12546
12755
  /**
12547
- * Create a Enums.
12548
- * @param {EnumsCreateArgs} args - Arguments to create a Enums.
12756
+ * Create a Ticket.
12757
+ * @param {TicketCreateArgs} args - Arguments to create a Ticket.
12549
12758
  * @example
12550
- * // Create one Enums
12551
- * const Enums = await prisma.enums.create({
12759
+ * // Create one Ticket
12760
+ * const Ticket = await prisma.ticket.create({
12552
12761
  * data: {
12553
- * // ... data to create a Enums
12762
+ * // ... data to create a Ticket
12554
12763
  * }
12555
12764
  * })
12556
12765
  *
12557
12766
  */
12558
- create<T extends EnumsCreateArgs>(args: SelectSubset<T, EnumsCreateArgs<ExtArgs>>): Prisma__EnumsClient<$Result.GetResult<Prisma.$EnumsPayload<ExtArgs>, T, "create">, never, ExtArgs>
12767
+ create<T extends TicketCreateArgs>(args: SelectSubset<T, TicketCreateArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "create">, never, ExtArgs>
12559
12768
 
12560
12769
  /**
12561
- * Create many Enums.
12562
- * @param {EnumsCreateManyArgs} args - Arguments to create many Enums.
12770
+ * Create many Tickets.
12771
+ * @param {TicketCreateManyArgs} args - Arguments to create many Tickets.
12563
12772
  * @example
12564
- * // Create many Enums
12565
- * const enums = await prisma.enums.createMany({
12773
+ * // Create many Tickets
12774
+ * const ticket = await prisma.ticket.createMany({
12566
12775
  * data: [
12567
12776
  * // ... provide data here
12568
12777
  * ]
12569
12778
  * })
12570
12779
  *
12571
12780
  */
12572
- createMany<T extends EnumsCreateManyArgs>(args?: SelectSubset<T, EnumsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
12781
+ createMany<T extends TicketCreateManyArgs>(args?: SelectSubset<T, TicketCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
12573
12782
 
12574
12783
  /**
12575
- * Create many Enums and returns the data saved in the database.
12576
- * @param {EnumsCreateManyAndReturnArgs} args - Arguments to create many Enums.
12784
+ * Create many Tickets and returns the data saved in the database.
12785
+ * @param {TicketCreateManyAndReturnArgs} args - Arguments to create many Tickets.
12577
12786
  * @example
12578
- * // Create many Enums
12579
- * const enums = await prisma.enums.createManyAndReturn({
12787
+ * // Create many Tickets
12788
+ * const ticket = await prisma.ticket.createManyAndReturn({
12580
12789
  * data: [
12581
12790
  * // ... provide data here
12582
12791
  * ]
12583
12792
  * })
12584
12793
  *
12585
- * // Create many Enums and only return the `id`
12586
- * const enumsWithIdOnly = await prisma.enums.createManyAndReturn({
12794
+ * // Create many Tickets and only return the `id`
12795
+ * const ticketWithIdOnly = await prisma.ticket.createManyAndReturn({
12587
12796
  * select: { id: true },
12588
12797
  * data: [
12589
12798
  * // ... provide data here
@@ -12593,7 +12802,911 @@ export namespace Prisma {
12593
12802
  * Read more here: https://pris.ly/d/null-undefined
12594
12803
  *
12595
12804
  */
12596
- createManyAndReturn<T extends EnumsCreateManyAndReturnArgs>(args?: SelectSubset<T, EnumsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EnumsPayload<ExtArgs>, T, "createManyAndReturn">>
12805
+ createManyAndReturn<T extends TicketCreateManyAndReturnArgs>(args?: SelectSubset<T, TicketCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "createManyAndReturn">>
12806
+
12807
+ /**
12808
+ * Delete a Ticket.
12809
+ * @param {TicketDeleteArgs} args - Arguments to delete one Ticket.
12810
+ * @example
12811
+ * // Delete one Ticket
12812
+ * const Ticket = await prisma.ticket.delete({
12813
+ * where: {
12814
+ * // ... filter to delete one Ticket
12815
+ * }
12816
+ * })
12817
+ *
12818
+ */
12819
+ delete<T extends TicketDeleteArgs>(args: SelectSubset<T, TicketDeleteArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "delete">, never, ExtArgs>
12820
+
12821
+ /**
12822
+ * Update one Ticket.
12823
+ * @param {TicketUpdateArgs} args - Arguments to update one Ticket.
12824
+ * @example
12825
+ * // Update one Ticket
12826
+ * const ticket = await prisma.ticket.update({
12827
+ * where: {
12828
+ * // ... provide filter here
12829
+ * },
12830
+ * data: {
12831
+ * // ... provide data here
12832
+ * }
12833
+ * })
12834
+ *
12835
+ */
12836
+ update<T extends TicketUpdateArgs>(args: SelectSubset<T, TicketUpdateArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "update">, never, ExtArgs>
12837
+
12838
+ /**
12839
+ * Delete zero or more Tickets.
12840
+ * @param {TicketDeleteManyArgs} args - Arguments to filter Tickets to delete.
12841
+ * @example
12842
+ * // Delete a few Tickets
12843
+ * const { count } = await prisma.ticket.deleteMany({
12844
+ * where: {
12845
+ * // ... provide filter here
12846
+ * }
12847
+ * })
12848
+ *
12849
+ */
12850
+ deleteMany<T extends TicketDeleteManyArgs>(args?: SelectSubset<T, TicketDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
12851
+
12852
+ /**
12853
+ * Update zero or more Tickets.
12854
+ * Note, that providing `undefined` is treated as the value not being there.
12855
+ * Read more here: https://pris.ly/d/null-undefined
12856
+ * @param {TicketUpdateManyArgs} args - Arguments to update one or more rows.
12857
+ * @example
12858
+ * // Update many Tickets
12859
+ * const ticket = await prisma.ticket.updateMany({
12860
+ * where: {
12861
+ * // ... provide filter here
12862
+ * },
12863
+ * data: {
12864
+ * // ... provide data here
12865
+ * }
12866
+ * })
12867
+ *
12868
+ */
12869
+ updateMany<T extends TicketUpdateManyArgs>(args: SelectSubset<T, TicketUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
12870
+
12871
+ /**
12872
+ * Create or update one Ticket.
12873
+ * @param {TicketUpsertArgs} args - Arguments to update or create a Ticket.
12874
+ * @example
12875
+ * // Update or create a Ticket
12876
+ * const ticket = await prisma.ticket.upsert({
12877
+ * create: {
12878
+ * // ... data to create a Ticket
12879
+ * },
12880
+ * update: {
12881
+ * // ... in case it already exists, update
12882
+ * },
12883
+ * where: {
12884
+ * // ... the filter for the Ticket we want to update
12885
+ * }
12886
+ * })
12887
+ */
12888
+ upsert<T extends TicketUpsertArgs>(args: SelectSubset<T, TicketUpsertArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
12889
+
12890
+
12891
+ /**
12892
+ * Count the number of Tickets.
12893
+ * Note, that providing `undefined` is treated as the value not being there.
12894
+ * Read more here: https://pris.ly/d/null-undefined
12895
+ * @param {TicketCountArgs} args - Arguments to filter Tickets to count.
12896
+ * @example
12897
+ * // Count the number of Tickets
12898
+ * const count = await prisma.ticket.count({
12899
+ * where: {
12900
+ * // ... the filter for the Tickets we want to count
12901
+ * }
12902
+ * })
12903
+ **/
12904
+ count<T extends TicketCountArgs>(
12905
+ args?: Subset<T, TicketCountArgs>,
12906
+ ): Prisma.PrismaPromise<
12907
+ T extends $Utils.Record<'select', any>
12908
+ ? T['select'] extends true
12909
+ ? number
12910
+ : GetScalarType<T['select'], TicketCountAggregateOutputType>
12911
+ : number
12912
+ >
12913
+
12914
+ /**
12915
+ * Allows you to perform aggregations operations on a Ticket.
12916
+ * Note, that providing `undefined` is treated as the value not being there.
12917
+ * Read more here: https://pris.ly/d/null-undefined
12918
+ * @param {TicketAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
12919
+ * @example
12920
+ * // Ordered by age ascending
12921
+ * // Where email contains prisma.io
12922
+ * // Limited to the 10 users
12923
+ * const aggregations = await prisma.user.aggregate({
12924
+ * _avg: {
12925
+ * age: true,
12926
+ * },
12927
+ * where: {
12928
+ * email: {
12929
+ * contains: "prisma.io",
12930
+ * },
12931
+ * },
12932
+ * orderBy: {
12933
+ * age: "asc",
12934
+ * },
12935
+ * take: 10,
12936
+ * })
12937
+ **/
12938
+ aggregate<T extends TicketAggregateArgs>(args: Subset<T, TicketAggregateArgs>): Prisma.PrismaPromise<GetTicketAggregateType<T>>
12939
+
12940
+ /**
12941
+ * Group by Ticket.
12942
+ * Note, that providing `undefined` is treated as the value not being there.
12943
+ * Read more here: https://pris.ly/d/null-undefined
12944
+ * @param {TicketGroupByArgs} args - Group by arguments.
12945
+ * @example
12946
+ * // Group by city, order by createdAt, get count
12947
+ * const result = await prisma.user.groupBy({
12948
+ * by: ['city', 'createdAt'],
12949
+ * orderBy: {
12950
+ * createdAt: true
12951
+ * },
12952
+ * _count: {
12953
+ * _all: true
12954
+ * },
12955
+ * })
12956
+ *
12957
+ **/
12958
+ groupBy<
12959
+ T extends TicketGroupByArgs,
12960
+ HasSelectOrTake extends Or<
12961
+ Extends<'skip', Keys<T>>,
12962
+ Extends<'take', Keys<T>>
12963
+ >,
12964
+ OrderByArg extends True extends HasSelectOrTake
12965
+ ? { orderBy: TicketGroupByArgs['orderBy'] }
12966
+ : { orderBy?: TicketGroupByArgs['orderBy'] },
12967
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
12968
+ ByFields extends MaybeTupleToUnion<T['by']>,
12969
+ ByValid extends Has<ByFields, OrderFields>,
12970
+ HavingFields extends GetHavingFields<T['having']>,
12971
+ HavingValid extends Has<ByFields, HavingFields>,
12972
+ ByEmpty extends T['by'] extends never[] ? True : False,
12973
+ InputErrors extends ByEmpty extends True
12974
+ ? `Error: "by" must not be empty.`
12975
+ : HavingValid extends False
12976
+ ? {
12977
+ [P in HavingFields]: P extends ByFields
12978
+ ? never
12979
+ : P extends string
12980
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
12981
+ : [
12982
+ Error,
12983
+ 'Field ',
12984
+ P,
12985
+ ` in "having" needs to be provided in "by"`,
12986
+ ]
12987
+ }[HavingFields]
12988
+ : 'take' extends Keys<T>
12989
+ ? 'orderBy' extends Keys<T>
12990
+ ? ByValid extends True
12991
+ ? {}
12992
+ : {
12993
+ [P in OrderFields]: P extends ByFields
12994
+ ? never
12995
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
12996
+ }[OrderFields]
12997
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
12998
+ : 'skip' extends Keys<T>
12999
+ ? 'orderBy' extends Keys<T>
13000
+ ? ByValid extends True
13001
+ ? {}
13002
+ : {
13003
+ [P in OrderFields]: P extends ByFields
13004
+ ? never
13005
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
13006
+ }[OrderFields]
13007
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
13008
+ : ByValid extends True
13009
+ ? {}
13010
+ : {
13011
+ [P in OrderFields]: P extends ByFields
13012
+ ? never
13013
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
13014
+ }[OrderFields]
13015
+ >(args: SubsetIntersection<T, TicketGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTicketGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
13016
+ /**
13017
+ * Fields of the Ticket model
13018
+ */
13019
+ readonly fields: TicketFieldRefs;
13020
+ }
13021
+
13022
+ /**
13023
+ * The delegate class that acts as a "Promise-like" for Ticket.
13024
+ * Why is this prefixed with `Prisma__`?
13025
+ * Because we want to prevent naming conflicts as mentioned in
13026
+ * https://github.com/prisma/prisma-client-js/issues/707
13027
+ */
13028
+ export interface Prisma__TicketClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
13029
+ readonly [Symbol.toStringTag]: "PrismaPromise"
13030
+ event<T extends EventDefaultArgs<ExtArgs> = {}>(args?: Subset<T, EventDefaultArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
13031
+ /**
13032
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
13033
+ * @param onfulfilled The callback to execute when the Promise is resolved.
13034
+ * @param onrejected The callback to execute when the Promise is rejected.
13035
+ * @returns A Promise for the completion of which ever callback is executed.
13036
+ */
13037
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
13038
+ /**
13039
+ * Attaches a callback for only the rejection of the Promise.
13040
+ * @param onrejected The callback to execute when the Promise is rejected.
13041
+ * @returns A Promise for the completion of the callback.
13042
+ */
13043
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
13044
+ /**
13045
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
13046
+ * resolved value cannot be modified from the callback.
13047
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
13048
+ * @returns A Promise for the completion of the callback.
13049
+ */
13050
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
13051
+ }
13052
+
13053
+
13054
+
13055
+
13056
+ /**
13057
+ * Fields of the Ticket model
13058
+ */
13059
+ interface TicketFieldRefs {
13060
+ readonly id: FieldRef<"Ticket", 'String'>
13061
+ readonly eventId: FieldRef<"Ticket", 'String'>
13062
+ readonly type: FieldRef<"Ticket", 'TicketType'>
13063
+ readonly status: FieldRef<"Ticket", 'TicketStatus'>
13064
+ readonly fullName: FieldRef<"Ticket", 'String'>
13065
+ readonly mail: FieldRef<"Ticket", 'String'>
13066
+ readonly created_at: FieldRef<"Ticket", 'DateTime'>
13067
+ readonly updated_at: FieldRef<"Ticket", 'DateTime'>
13068
+ }
13069
+
13070
+
13071
+ // Custom InputTypes
13072
+ /**
13073
+ * Ticket findUnique
13074
+ */
13075
+ export type TicketFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13076
+ /**
13077
+ * Select specific fields to fetch from the Ticket
13078
+ */
13079
+ select?: TicketSelect<ExtArgs> | null
13080
+ /**
13081
+ * Choose, which related nodes to fetch as well
13082
+ */
13083
+ include?: TicketInclude<ExtArgs> | null
13084
+ /**
13085
+ * Filter, which Ticket to fetch.
13086
+ */
13087
+ where: TicketWhereUniqueInput
13088
+ }
13089
+
13090
+ /**
13091
+ * Ticket findUniqueOrThrow
13092
+ */
13093
+ export type TicketFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13094
+ /**
13095
+ * Select specific fields to fetch from the Ticket
13096
+ */
13097
+ select?: TicketSelect<ExtArgs> | null
13098
+ /**
13099
+ * Choose, which related nodes to fetch as well
13100
+ */
13101
+ include?: TicketInclude<ExtArgs> | null
13102
+ /**
13103
+ * Filter, which Ticket to fetch.
13104
+ */
13105
+ where: TicketWhereUniqueInput
13106
+ }
13107
+
13108
+ /**
13109
+ * Ticket findFirst
13110
+ */
13111
+ export type TicketFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13112
+ /**
13113
+ * Select specific fields to fetch from the Ticket
13114
+ */
13115
+ select?: TicketSelect<ExtArgs> | null
13116
+ /**
13117
+ * Choose, which related nodes to fetch as well
13118
+ */
13119
+ include?: TicketInclude<ExtArgs> | null
13120
+ /**
13121
+ * Filter, which Ticket to fetch.
13122
+ */
13123
+ where?: TicketWhereInput
13124
+ /**
13125
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
13126
+ *
13127
+ * Determine the order of Tickets to fetch.
13128
+ */
13129
+ orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[]
13130
+ /**
13131
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
13132
+ *
13133
+ * Sets the position for searching for Tickets.
13134
+ */
13135
+ cursor?: TicketWhereUniqueInput
13136
+ /**
13137
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
13138
+ *
13139
+ * Take `±n` Tickets from the position of the cursor.
13140
+ */
13141
+ take?: number
13142
+ /**
13143
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
13144
+ *
13145
+ * Skip the first `n` Tickets.
13146
+ */
13147
+ skip?: number
13148
+ /**
13149
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
13150
+ *
13151
+ * Filter by unique combinations of Tickets.
13152
+ */
13153
+ distinct?: TicketScalarFieldEnum | TicketScalarFieldEnum[]
13154
+ }
13155
+
13156
+ /**
13157
+ * Ticket findFirstOrThrow
13158
+ */
13159
+ export type TicketFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13160
+ /**
13161
+ * Select specific fields to fetch from the Ticket
13162
+ */
13163
+ select?: TicketSelect<ExtArgs> | null
13164
+ /**
13165
+ * Choose, which related nodes to fetch as well
13166
+ */
13167
+ include?: TicketInclude<ExtArgs> | null
13168
+ /**
13169
+ * Filter, which Ticket to fetch.
13170
+ */
13171
+ where?: TicketWhereInput
13172
+ /**
13173
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
13174
+ *
13175
+ * Determine the order of Tickets to fetch.
13176
+ */
13177
+ orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[]
13178
+ /**
13179
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
13180
+ *
13181
+ * Sets the position for searching for Tickets.
13182
+ */
13183
+ cursor?: TicketWhereUniqueInput
13184
+ /**
13185
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
13186
+ *
13187
+ * Take `±n` Tickets from the position of the cursor.
13188
+ */
13189
+ take?: number
13190
+ /**
13191
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
13192
+ *
13193
+ * Skip the first `n` Tickets.
13194
+ */
13195
+ skip?: number
13196
+ /**
13197
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
13198
+ *
13199
+ * Filter by unique combinations of Tickets.
13200
+ */
13201
+ distinct?: TicketScalarFieldEnum | TicketScalarFieldEnum[]
13202
+ }
13203
+
13204
+ /**
13205
+ * Ticket findMany
13206
+ */
13207
+ export type TicketFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13208
+ /**
13209
+ * Select specific fields to fetch from the Ticket
13210
+ */
13211
+ select?: TicketSelect<ExtArgs> | null
13212
+ /**
13213
+ * Choose, which related nodes to fetch as well
13214
+ */
13215
+ include?: TicketInclude<ExtArgs> | null
13216
+ /**
13217
+ * Filter, which Tickets to fetch.
13218
+ */
13219
+ where?: TicketWhereInput
13220
+ /**
13221
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
13222
+ *
13223
+ * Determine the order of Tickets to fetch.
13224
+ */
13225
+ orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[]
13226
+ /**
13227
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
13228
+ *
13229
+ * Sets the position for listing Tickets.
13230
+ */
13231
+ cursor?: TicketWhereUniqueInput
13232
+ /**
13233
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
13234
+ *
13235
+ * Take `±n` Tickets from the position of the cursor.
13236
+ */
13237
+ take?: number
13238
+ /**
13239
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
13240
+ *
13241
+ * Skip the first `n` Tickets.
13242
+ */
13243
+ skip?: number
13244
+ distinct?: TicketScalarFieldEnum | TicketScalarFieldEnum[]
13245
+ }
13246
+
13247
+ /**
13248
+ * Ticket create
13249
+ */
13250
+ export type TicketCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13251
+ /**
13252
+ * Select specific fields to fetch from the Ticket
13253
+ */
13254
+ select?: TicketSelect<ExtArgs> | null
13255
+ /**
13256
+ * Choose, which related nodes to fetch as well
13257
+ */
13258
+ include?: TicketInclude<ExtArgs> | null
13259
+ /**
13260
+ * The data needed to create a Ticket.
13261
+ */
13262
+ data: XOR<TicketCreateInput, TicketUncheckedCreateInput>
13263
+ }
13264
+
13265
+ /**
13266
+ * Ticket createMany
13267
+ */
13268
+ export type TicketCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13269
+ /**
13270
+ * The data used to create many Tickets.
13271
+ */
13272
+ data: TicketCreateManyInput | TicketCreateManyInput[]
13273
+ skipDuplicates?: boolean
13274
+ }
13275
+
13276
+ /**
13277
+ * Ticket createManyAndReturn
13278
+ */
13279
+ export type TicketCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13280
+ /**
13281
+ * Select specific fields to fetch from the Ticket
13282
+ */
13283
+ select?: TicketSelectCreateManyAndReturn<ExtArgs> | null
13284
+ /**
13285
+ * The data used to create many Tickets.
13286
+ */
13287
+ data: TicketCreateManyInput | TicketCreateManyInput[]
13288
+ skipDuplicates?: boolean
13289
+ /**
13290
+ * Choose, which related nodes to fetch as well
13291
+ */
13292
+ include?: TicketIncludeCreateManyAndReturn<ExtArgs> | null
13293
+ }
13294
+
13295
+ /**
13296
+ * Ticket update
13297
+ */
13298
+ export type TicketUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13299
+ /**
13300
+ * Select specific fields to fetch from the Ticket
13301
+ */
13302
+ select?: TicketSelect<ExtArgs> | null
13303
+ /**
13304
+ * Choose, which related nodes to fetch as well
13305
+ */
13306
+ include?: TicketInclude<ExtArgs> | null
13307
+ /**
13308
+ * The data needed to update a Ticket.
13309
+ */
13310
+ data: XOR<TicketUpdateInput, TicketUncheckedUpdateInput>
13311
+ /**
13312
+ * Choose, which Ticket to update.
13313
+ */
13314
+ where: TicketWhereUniqueInput
13315
+ }
13316
+
13317
+ /**
13318
+ * Ticket updateMany
13319
+ */
13320
+ export type TicketUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13321
+ /**
13322
+ * The data used to update Tickets.
13323
+ */
13324
+ data: XOR<TicketUpdateManyMutationInput, TicketUncheckedUpdateManyInput>
13325
+ /**
13326
+ * Filter which Tickets to update
13327
+ */
13328
+ where?: TicketWhereInput
13329
+ }
13330
+
13331
+ /**
13332
+ * Ticket upsert
13333
+ */
13334
+ export type TicketUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13335
+ /**
13336
+ * Select specific fields to fetch from the Ticket
13337
+ */
13338
+ select?: TicketSelect<ExtArgs> | null
13339
+ /**
13340
+ * Choose, which related nodes to fetch as well
13341
+ */
13342
+ include?: TicketInclude<ExtArgs> | null
13343
+ /**
13344
+ * The filter to search for the Ticket to update in case it exists.
13345
+ */
13346
+ where: TicketWhereUniqueInput
13347
+ /**
13348
+ * In case the Ticket found by the `where` argument doesn't exist, create a new Ticket with this data.
13349
+ */
13350
+ create: XOR<TicketCreateInput, TicketUncheckedCreateInput>
13351
+ /**
13352
+ * In case the Ticket was found with the provided `where` argument, update it with this data.
13353
+ */
13354
+ update: XOR<TicketUpdateInput, TicketUncheckedUpdateInput>
13355
+ }
13356
+
13357
+ /**
13358
+ * Ticket delete
13359
+ */
13360
+ export type TicketDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13361
+ /**
13362
+ * Select specific fields to fetch from the Ticket
13363
+ */
13364
+ select?: TicketSelect<ExtArgs> | null
13365
+ /**
13366
+ * Choose, which related nodes to fetch as well
13367
+ */
13368
+ include?: TicketInclude<ExtArgs> | null
13369
+ /**
13370
+ * Filter which Ticket to delete.
13371
+ */
13372
+ where: TicketWhereUniqueInput
13373
+ }
13374
+
13375
+ /**
13376
+ * Ticket deleteMany
13377
+ */
13378
+ export type TicketDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13379
+ /**
13380
+ * Filter which Tickets to delete
13381
+ */
13382
+ where?: TicketWhereInput
13383
+ }
13384
+
13385
+ /**
13386
+ * Ticket without action
13387
+ */
13388
+ export type TicketDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13389
+ /**
13390
+ * Select specific fields to fetch from the Ticket
13391
+ */
13392
+ select?: TicketSelect<ExtArgs> | null
13393
+ /**
13394
+ * Choose, which related nodes to fetch as well
13395
+ */
13396
+ include?: TicketInclude<ExtArgs> | null
13397
+ }
13398
+
13399
+
13400
+ /**
13401
+ * Model Enums
13402
+ */
13403
+
13404
+ export type AggregateEnums = {
13405
+ _count: EnumsCountAggregateOutputType | null
13406
+ _min: EnumsMinAggregateOutputType | null
13407
+ _max: EnumsMaxAggregateOutputType | null
13408
+ }
13409
+
13410
+ export type EnumsMinAggregateOutputType = {
13411
+ id: string | null
13412
+ templateStatus: $Enums.TemplateStatus | null
13413
+ templateCategory: $Enums.TemplateCategory | null
13414
+ }
13415
+
13416
+ export type EnumsMaxAggregateOutputType = {
13417
+ id: string | null
13418
+ templateStatus: $Enums.TemplateStatus | null
13419
+ templateCategory: $Enums.TemplateCategory | null
13420
+ }
13421
+
13422
+ export type EnumsCountAggregateOutputType = {
13423
+ id: number
13424
+ templateStatus: number
13425
+ templateCategory: number
13426
+ _all: number
13427
+ }
13428
+
13429
+
13430
+ export type EnumsMinAggregateInputType = {
13431
+ id?: true
13432
+ templateStatus?: true
13433
+ templateCategory?: true
13434
+ }
13435
+
13436
+ export type EnumsMaxAggregateInputType = {
13437
+ id?: true
13438
+ templateStatus?: true
13439
+ templateCategory?: true
13440
+ }
13441
+
13442
+ export type EnumsCountAggregateInputType = {
13443
+ id?: true
13444
+ templateStatus?: true
13445
+ templateCategory?: true
13446
+ _all?: true
13447
+ }
13448
+
13449
+ export type EnumsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13450
+ /**
13451
+ * Filter which Enums to aggregate.
13452
+ */
13453
+ where?: EnumsWhereInput
13454
+ /**
13455
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
13456
+ *
13457
+ * Determine the order of Enums to fetch.
13458
+ */
13459
+ orderBy?: EnumsOrderByWithRelationInput | EnumsOrderByWithRelationInput[]
13460
+ /**
13461
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
13462
+ *
13463
+ * Sets the start position
13464
+ */
13465
+ cursor?: EnumsWhereUniqueInput
13466
+ /**
13467
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
13468
+ *
13469
+ * Take `±n` Enums from the position of the cursor.
13470
+ */
13471
+ take?: number
13472
+ /**
13473
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
13474
+ *
13475
+ * Skip the first `n` Enums.
13476
+ */
13477
+ skip?: number
13478
+ /**
13479
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
13480
+ *
13481
+ * Count returned Enums
13482
+ **/
13483
+ _count?: true | EnumsCountAggregateInputType
13484
+ /**
13485
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
13486
+ *
13487
+ * Select which fields to find the minimum value
13488
+ **/
13489
+ _min?: EnumsMinAggregateInputType
13490
+ /**
13491
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
13492
+ *
13493
+ * Select which fields to find the maximum value
13494
+ **/
13495
+ _max?: EnumsMaxAggregateInputType
13496
+ }
13497
+
13498
+ export type GetEnumsAggregateType<T extends EnumsAggregateArgs> = {
13499
+ [P in keyof T & keyof AggregateEnums]: P extends '_count' | 'count'
13500
+ ? T[P] extends true
13501
+ ? number
13502
+ : GetScalarType<T[P], AggregateEnums[P]>
13503
+ : GetScalarType<T[P], AggregateEnums[P]>
13504
+ }
13505
+
13506
+
13507
+
13508
+
13509
+ export type EnumsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13510
+ where?: EnumsWhereInput
13511
+ orderBy?: EnumsOrderByWithAggregationInput | EnumsOrderByWithAggregationInput[]
13512
+ by: EnumsScalarFieldEnum[] | EnumsScalarFieldEnum
13513
+ having?: EnumsScalarWhereWithAggregatesInput
13514
+ take?: number
13515
+ skip?: number
13516
+ _count?: EnumsCountAggregateInputType | true
13517
+ _min?: EnumsMinAggregateInputType
13518
+ _max?: EnumsMaxAggregateInputType
13519
+ }
13520
+
13521
+ export type EnumsGroupByOutputType = {
13522
+ id: string
13523
+ templateStatus: $Enums.TemplateStatus
13524
+ templateCategory: $Enums.TemplateCategory
13525
+ _count: EnumsCountAggregateOutputType | null
13526
+ _min: EnumsMinAggregateOutputType | null
13527
+ _max: EnumsMaxAggregateOutputType | null
13528
+ }
13529
+
13530
+ type GetEnumsGroupByPayload<T extends EnumsGroupByArgs> = Prisma.PrismaPromise<
13531
+ Array<
13532
+ PickEnumerable<EnumsGroupByOutputType, T['by']> &
13533
+ {
13534
+ [P in ((keyof T) & (keyof EnumsGroupByOutputType))]: P extends '_count'
13535
+ ? T[P] extends boolean
13536
+ ? number
13537
+ : GetScalarType<T[P], EnumsGroupByOutputType[P]>
13538
+ : GetScalarType<T[P], EnumsGroupByOutputType[P]>
13539
+ }
13540
+ >
13541
+ >
13542
+
13543
+
13544
+ export type EnumsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
13545
+ id?: boolean
13546
+ templateStatus?: boolean
13547
+ templateCategory?: boolean
13548
+ }, ExtArgs["result"]["enums"]>
13549
+
13550
+ export type EnumsSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
13551
+ id?: boolean
13552
+ templateStatus?: boolean
13553
+ templateCategory?: boolean
13554
+ }, ExtArgs["result"]["enums"]>
13555
+
13556
+ export type EnumsSelectScalar = {
13557
+ id?: boolean
13558
+ templateStatus?: boolean
13559
+ templateCategory?: boolean
13560
+ }
13561
+
13562
+
13563
+ export type $EnumsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
13564
+ name: "Enums"
13565
+ objects: {}
13566
+ scalars: $Extensions.GetPayloadResult<{
13567
+ id: string
13568
+ templateStatus: $Enums.TemplateStatus
13569
+ templateCategory: $Enums.TemplateCategory
13570
+ }, ExtArgs["result"]["enums"]>
13571
+ composites: {}
13572
+ }
13573
+
13574
+ type EnumsGetPayload<S extends boolean | null | undefined | EnumsDefaultArgs> = $Result.GetResult<Prisma.$EnumsPayload, S>
13575
+
13576
+ type EnumsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
13577
+ Omit<EnumsFindManyArgs, 'select' | 'include' | 'distinct'> & {
13578
+ select?: EnumsCountAggregateInputType | true
13579
+ }
13580
+
13581
+ export interface EnumsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
13582
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Enums'], meta: { name: 'Enums' } }
13583
+ /**
13584
+ * Find zero or one Enums that matches the filter.
13585
+ * @param {EnumsFindUniqueArgs} args - Arguments to find a Enums
13586
+ * @example
13587
+ * // Get one Enums
13588
+ * const enums = await prisma.enums.findUnique({
13589
+ * where: {
13590
+ * // ... provide filter here
13591
+ * }
13592
+ * })
13593
+ */
13594
+ findUnique<T extends EnumsFindUniqueArgs>(args: SelectSubset<T, EnumsFindUniqueArgs<ExtArgs>>): Prisma__EnumsClient<$Result.GetResult<Prisma.$EnumsPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
13595
+
13596
+ /**
13597
+ * Find one Enums that matches the filter or throw an error with `error.code='P2025'`
13598
+ * if no matches were found.
13599
+ * @param {EnumsFindUniqueOrThrowArgs} args - Arguments to find a Enums
13600
+ * @example
13601
+ * // Get one Enums
13602
+ * const enums = await prisma.enums.findUniqueOrThrow({
13603
+ * where: {
13604
+ * // ... provide filter here
13605
+ * }
13606
+ * })
13607
+ */
13608
+ findUniqueOrThrow<T extends EnumsFindUniqueOrThrowArgs>(args: SelectSubset<T, EnumsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EnumsClient<$Result.GetResult<Prisma.$EnumsPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
13609
+
13610
+ /**
13611
+ * Find the first Enums that matches the filter.
13612
+ * Note, that providing `undefined` is treated as the value not being there.
13613
+ * Read more here: https://pris.ly/d/null-undefined
13614
+ * @param {EnumsFindFirstArgs} args - Arguments to find a Enums
13615
+ * @example
13616
+ * // Get one Enums
13617
+ * const enums = await prisma.enums.findFirst({
13618
+ * where: {
13619
+ * // ... provide filter here
13620
+ * }
13621
+ * })
13622
+ */
13623
+ findFirst<T extends EnumsFindFirstArgs>(args?: SelectSubset<T, EnumsFindFirstArgs<ExtArgs>>): Prisma__EnumsClient<$Result.GetResult<Prisma.$EnumsPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
13624
+
13625
+ /**
13626
+ * Find the first Enums that matches the filter or
13627
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
13628
+ * Note, that providing `undefined` is treated as the value not being there.
13629
+ * Read more here: https://pris.ly/d/null-undefined
13630
+ * @param {EnumsFindFirstOrThrowArgs} args - Arguments to find a Enums
13631
+ * @example
13632
+ * // Get one Enums
13633
+ * const enums = await prisma.enums.findFirstOrThrow({
13634
+ * where: {
13635
+ * // ... provide filter here
13636
+ * }
13637
+ * })
13638
+ */
13639
+ findFirstOrThrow<T extends EnumsFindFirstOrThrowArgs>(args?: SelectSubset<T, EnumsFindFirstOrThrowArgs<ExtArgs>>): Prisma__EnumsClient<$Result.GetResult<Prisma.$EnumsPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
13640
+
13641
+ /**
13642
+ * Find zero or more Enums that matches the filter.
13643
+ * Note, that providing `undefined` is treated as the value not being there.
13644
+ * Read more here: https://pris.ly/d/null-undefined
13645
+ * @param {EnumsFindManyArgs} args - Arguments to filter and select certain fields only.
13646
+ * @example
13647
+ * // Get all Enums
13648
+ * const enums = await prisma.enums.findMany()
13649
+ *
13650
+ * // Get first 10 Enums
13651
+ * const enums = await prisma.enums.findMany({ take: 10 })
13652
+ *
13653
+ * // Only select the `id`
13654
+ * const enumsWithIdOnly = await prisma.enums.findMany({ select: { id: true } })
13655
+ *
13656
+ */
13657
+ findMany<T extends EnumsFindManyArgs>(args?: SelectSubset<T, EnumsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EnumsPayload<ExtArgs>, T, "findMany">>
13658
+
13659
+ /**
13660
+ * Create a Enums.
13661
+ * @param {EnumsCreateArgs} args - Arguments to create a Enums.
13662
+ * @example
13663
+ * // Create one Enums
13664
+ * const Enums = await prisma.enums.create({
13665
+ * data: {
13666
+ * // ... data to create a Enums
13667
+ * }
13668
+ * })
13669
+ *
13670
+ */
13671
+ create<T extends EnumsCreateArgs>(args: SelectSubset<T, EnumsCreateArgs<ExtArgs>>): Prisma__EnumsClient<$Result.GetResult<Prisma.$EnumsPayload<ExtArgs>, T, "create">, never, ExtArgs>
13672
+
13673
+ /**
13674
+ * Create many Enums.
13675
+ * @param {EnumsCreateManyArgs} args - Arguments to create many Enums.
13676
+ * @example
13677
+ * // Create many Enums
13678
+ * const enums = await prisma.enums.createMany({
13679
+ * data: [
13680
+ * // ... provide data here
13681
+ * ]
13682
+ * })
13683
+ *
13684
+ */
13685
+ createMany<T extends EnumsCreateManyArgs>(args?: SelectSubset<T, EnumsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
13686
+
13687
+ /**
13688
+ * Create many Enums and returns the data saved in the database.
13689
+ * @param {EnumsCreateManyAndReturnArgs} args - Arguments to create many Enums.
13690
+ * @example
13691
+ * // Create many Enums
13692
+ * const enums = await prisma.enums.createManyAndReturn({
13693
+ * data: [
13694
+ * // ... provide data here
13695
+ * ]
13696
+ * })
13697
+ *
13698
+ * // Create many Enums and only return the `id`
13699
+ * const enumsWithIdOnly = await prisma.enums.createManyAndReturn({
13700
+ * select: { id: true },
13701
+ * data: [
13702
+ * // ... provide data here
13703
+ * ]
13704
+ * })
13705
+ * Note, that providing `undefined` is treated as the value not being there.
13706
+ * Read more here: https://pris.ly/d/null-undefined
13707
+ *
13708
+ */
13709
+ createManyAndReturn<T extends EnumsCreateManyAndReturnArgs>(args?: SelectSubset<T, EnumsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EnumsPayload<ExtArgs>, T, "createManyAndReturn">>
12597
13710
 
12598
13711
  /**
12599
13712
  * Delete a Enums.
@@ -13296,6 +14409,20 @@ export namespace Prisma {
13296
14409
  export type CannedResponseScalarFieldEnum = (typeof CannedResponseScalarFieldEnum)[keyof typeof CannedResponseScalarFieldEnum]
13297
14410
 
13298
14411
 
14412
+ export const TicketScalarFieldEnum: {
14413
+ id: 'id',
14414
+ eventId: 'eventId',
14415
+ type: 'type',
14416
+ status: 'status',
14417
+ fullName: 'fullName',
14418
+ mail: 'mail',
14419
+ created_at: 'created_at',
14420
+ updated_at: 'updated_at'
14421
+ };
14422
+
14423
+ export type TicketScalarFieldEnum = (typeof TicketScalarFieldEnum)[keyof typeof TicketScalarFieldEnum]
14424
+
14425
+
13299
14426
  export const EnumsScalarFieldEnum: {
13300
14427
  id: 'id',
13301
14428
  templateStatus: 'templateStatus',
@@ -13430,35 +14557,63 @@ export namespace Prisma {
13430
14557
  /**
13431
14558
  * Reference to a field of type 'TagType'
13432
14559
  */
13433
- export type EnumTagTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TagType'>
14560
+ export type EnumTagTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TagType'>
14561
+
14562
+
14563
+
14564
+ /**
14565
+ * Reference to a field of type 'TagType[]'
14566
+ */
14567
+ export type ListEnumTagTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TagType[]'>
14568
+
14569
+
14570
+
14571
+ /**
14572
+ * Reference to a field of type 'Json'
14573
+ */
14574
+ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>
14575
+
14576
+
14577
+
14578
+ /**
14579
+ * Reference to a field of type 'MessageState'
14580
+ */
14581
+ export type EnumMessageStateFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MessageState'>
14582
+
14583
+
14584
+
14585
+ /**
14586
+ * Reference to a field of type 'MessageState[]'
14587
+ */
14588
+ export type ListEnumMessageStateFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MessageState[]'>
13434
14589
 
13435
14590
 
13436
14591
 
13437
14592
  /**
13438
- * Reference to a field of type 'TagType[]'
14593
+ * Reference to a field of type 'TicketType'
13439
14594
  */
13440
- export type ListEnumTagTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TagType[]'>
14595
+ export type EnumTicketTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TicketType'>
13441
14596
 
13442
14597
 
13443
14598
 
13444
14599
  /**
13445
- * Reference to a field of type 'Json'
14600
+ * Reference to a field of type 'TicketType[]'
13446
14601
  */
13447
- export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>
14602
+ export type ListEnumTicketTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TicketType[]'>
13448
14603
 
13449
14604
 
13450
14605
 
13451
14606
  /**
13452
- * Reference to a field of type 'MessageState'
14607
+ * Reference to a field of type 'TicketStatus'
13453
14608
  */
13454
- export type EnumMessageStateFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MessageState'>
14609
+ export type EnumTicketStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TicketStatus'>
13455
14610
 
13456
14611
 
13457
14612
 
13458
14613
  /**
13459
- * Reference to a field of type 'MessageState[]'
14614
+ * Reference to a field of type 'TicketStatus[]'
13460
14615
  */
13461
- export type ListEnumMessageStateFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MessageState[]'>
14616
+ export type ListEnumTicketStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TicketStatus[]'>
13462
14617
 
13463
14618
 
13464
14619
 
@@ -14027,6 +15182,7 @@ export namespace Prisma {
14027
15182
  tagConfirmed?: XOR<TagRelationFilter, TagWhereInput>
14028
15183
  supraEvent?: XOR<EventNullableRelationFilter, EventWhereInput> | null
14029
15184
  subEvents?: EventListRelationFilter
15185
+ tickets?: TicketListRelationFilter
14030
15186
  }
14031
15187
 
14032
15188
  export type EventOrderByWithRelationInput = {
@@ -14045,6 +15201,7 @@ export namespace Prisma {
14045
15201
  tagConfirmed?: TagOrderByWithRelationInput
14046
15202
  supraEvent?: EventOrderByWithRelationInput
14047
15203
  subEvents?: EventOrderByRelationAggregateInput
15204
+ tickets?: TicketOrderByRelationAggregateInput
14048
15205
  }
14049
15206
 
14050
15207
  export type EventWhereUniqueInput = Prisma.AtLeast<{
@@ -14066,6 +15223,7 @@ export namespace Prisma {
14066
15223
  tagConfirmed?: XOR<TagRelationFilter, TagWhereInput>
14067
15224
  supraEvent?: XOR<EventNullableRelationFilter, EventWhereInput> | null
14068
15225
  subEvents?: EventListRelationFilter
15226
+ tickets?: TicketListRelationFilter
14069
15227
  }, "id" | "tagAssistedId" | "tagConfirmedId">
14070
15228
 
14071
15229
  export type EventOrderByWithAggregationInput = {
@@ -14272,6 +15430,76 @@ export namespace Prisma {
14272
15430
  updated_at?: DateTimeWithAggregatesFilter<"CannedResponse"> | Date | string
14273
15431
  }
14274
15432
 
15433
+ export type TicketWhereInput = {
15434
+ AND?: TicketWhereInput | TicketWhereInput[]
15435
+ OR?: TicketWhereInput[]
15436
+ NOT?: TicketWhereInput | TicketWhereInput[]
15437
+ id?: StringFilter<"Ticket"> | string
15438
+ eventId?: StringFilter<"Ticket"> | string
15439
+ type?: EnumTicketTypeFilter<"Ticket"> | $Enums.TicketType
15440
+ status?: EnumTicketStatusFilter<"Ticket"> | $Enums.TicketStatus
15441
+ fullName?: StringFilter<"Ticket"> | string
15442
+ mail?: StringFilter<"Ticket"> | string
15443
+ created_at?: DateTimeFilter<"Ticket"> | Date | string
15444
+ updated_at?: DateTimeFilter<"Ticket"> | Date | string
15445
+ event?: XOR<EventRelationFilter, EventWhereInput>
15446
+ }
15447
+
15448
+ export type TicketOrderByWithRelationInput = {
15449
+ id?: SortOrder
15450
+ eventId?: SortOrder
15451
+ type?: SortOrder
15452
+ status?: SortOrder
15453
+ fullName?: SortOrder
15454
+ mail?: SortOrder
15455
+ created_at?: SortOrder
15456
+ updated_at?: SortOrder
15457
+ event?: EventOrderByWithRelationInput
15458
+ }
15459
+
15460
+ export type TicketWhereUniqueInput = Prisma.AtLeast<{
15461
+ id?: string
15462
+ AND?: TicketWhereInput | TicketWhereInput[]
15463
+ OR?: TicketWhereInput[]
15464
+ NOT?: TicketWhereInput | TicketWhereInput[]
15465
+ eventId?: StringFilter<"Ticket"> | string
15466
+ type?: EnumTicketTypeFilter<"Ticket"> | $Enums.TicketType
15467
+ status?: EnumTicketStatusFilter<"Ticket"> | $Enums.TicketStatus
15468
+ fullName?: StringFilter<"Ticket"> | string
15469
+ mail?: StringFilter<"Ticket"> | string
15470
+ created_at?: DateTimeFilter<"Ticket"> | Date | string
15471
+ updated_at?: DateTimeFilter<"Ticket"> | Date | string
15472
+ event?: XOR<EventRelationFilter, EventWhereInput>
15473
+ }, "id">
15474
+
15475
+ export type TicketOrderByWithAggregationInput = {
15476
+ id?: SortOrder
15477
+ eventId?: SortOrder
15478
+ type?: SortOrder
15479
+ status?: SortOrder
15480
+ fullName?: SortOrder
15481
+ mail?: SortOrder
15482
+ created_at?: SortOrder
15483
+ updated_at?: SortOrder
15484
+ _count?: TicketCountOrderByAggregateInput
15485
+ _max?: TicketMaxOrderByAggregateInput
15486
+ _min?: TicketMinOrderByAggregateInput
15487
+ }
15488
+
15489
+ export type TicketScalarWhereWithAggregatesInput = {
15490
+ AND?: TicketScalarWhereWithAggregatesInput | TicketScalarWhereWithAggregatesInput[]
15491
+ OR?: TicketScalarWhereWithAggregatesInput[]
15492
+ NOT?: TicketScalarWhereWithAggregatesInput | TicketScalarWhereWithAggregatesInput[]
15493
+ id?: StringWithAggregatesFilter<"Ticket"> | string
15494
+ eventId?: StringWithAggregatesFilter<"Ticket"> | string
15495
+ type?: EnumTicketTypeWithAggregatesFilter<"Ticket"> | $Enums.TicketType
15496
+ status?: EnumTicketStatusWithAggregatesFilter<"Ticket"> | $Enums.TicketStatus
15497
+ fullName?: StringWithAggregatesFilter<"Ticket"> | string
15498
+ mail?: StringWithAggregatesFilter<"Ticket"> | string
15499
+ created_at?: DateTimeWithAggregatesFilter<"Ticket"> | Date | string
15500
+ updated_at?: DateTimeWithAggregatesFilter<"Ticket"> | Date | string
15501
+ }
15502
+
14275
15503
  export type EnumsWhereInput = {
14276
15504
  AND?: EnumsWhereInput | EnumsWhereInput[]
14277
15505
  OR?: EnumsWhereInput[]
@@ -14905,6 +16133,7 @@ export namespace Prisma {
14905
16133
  tagConfirmed: TagCreateNestedOneWithoutConfirmedEventInput
14906
16134
  supraEvent?: EventCreateNestedOneWithoutSubEventsInput
14907
16135
  subEvents?: EventCreateNestedManyWithoutSupraEventInput
16136
+ tickets?: TicketCreateNestedManyWithoutEventInput
14908
16137
  }
14909
16138
 
14910
16139
  export type EventUncheckedCreateInput = {
@@ -14919,6 +16148,7 @@ export namespace Prisma {
14919
16148
  created_at?: Date | string
14920
16149
  updated_at?: Date | string
14921
16150
  subEvents?: EventUncheckedCreateNestedManyWithoutSupraEventInput
16151
+ tickets?: TicketUncheckedCreateNestedManyWithoutEventInput
14922
16152
  }
14923
16153
 
14924
16154
  export type EventUpdateInput = {
@@ -14933,6 +16163,7 @@ export namespace Prisma {
14933
16163
  tagConfirmed?: TagUpdateOneRequiredWithoutConfirmedEventNestedInput
14934
16164
  supraEvent?: EventUpdateOneWithoutSubEventsNestedInput
14935
16165
  subEvents?: EventUpdateManyWithoutSupraEventNestedInput
16166
+ tickets?: TicketUpdateManyWithoutEventNestedInput
14936
16167
  }
14937
16168
 
14938
16169
  export type EventUncheckedUpdateInput = {
@@ -14947,6 +16178,7 @@ export namespace Prisma {
14947
16178
  created_at?: DateTimeFieldUpdateOperationsInput | Date | string
14948
16179
  updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
14949
16180
  subEvents?: EventUncheckedUpdateManyWithoutSupraEventNestedInput
16181
+ tickets?: TicketUncheckedUpdateManyWithoutEventNestedInput
14950
16182
  }
14951
16183
 
14952
16184
  export type EventCreateManyInput = {
@@ -15169,6 +16401,82 @@ export namespace Prisma {
15169
16401
  updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
15170
16402
  }
15171
16403
 
16404
+ export type TicketCreateInput = {
16405
+ id?: string
16406
+ type: $Enums.TicketType
16407
+ status: $Enums.TicketStatus
16408
+ fullName: string
16409
+ mail: string
16410
+ created_at?: Date | string
16411
+ updated_at?: Date | string
16412
+ event: EventCreateNestedOneWithoutTicketsInput
16413
+ }
16414
+
16415
+ export type TicketUncheckedCreateInput = {
16416
+ id?: string
16417
+ eventId: string
16418
+ type: $Enums.TicketType
16419
+ status: $Enums.TicketStatus
16420
+ fullName: string
16421
+ mail: string
16422
+ created_at?: Date | string
16423
+ updated_at?: Date | string
16424
+ }
16425
+
16426
+ export type TicketUpdateInput = {
16427
+ id?: StringFieldUpdateOperationsInput | string
16428
+ type?: EnumTicketTypeFieldUpdateOperationsInput | $Enums.TicketType
16429
+ status?: EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus
16430
+ fullName?: StringFieldUpdateOperationsInput | string
16431
+ mail?: StringFieldUpdateOperationsInput | string
16432
+ created_at?: DateTimeFieldUpdateOperationsInput | Date | string
16433
+ updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
16434
+ event?: EventUpdateOneRequiredWithoutTicketsNestedInput
16435
+ }
16436
+
16437
+ export type TicketUncheckedUpdateInput = {
16438
+ id?: StringFieldUpdateOperationsInput | string
16439
+ eventId?: StringFieldUpdateOperationsInput | string
16440
+ type?: EnumTicketTypeFieldUpdateOperationsInput | $Enums.TicketType
16441
+ status?: EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus
16442
+ fullName?: StringFieldUpdateOperationsInput | string
16443
+ mail?: StringFieldUpdateOperationsInput | string
16444
+ created_at?: DateTimeFieldUpdateOperationsInput | Date | string
16445
+ updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
16446
+ }
16447
+
16448
+ export type TicketCreateManyInput = {
16449
+ id?: string
16450
+ eventId: string
16451
+ type: $Enums.TicketType
16452
+ status: $Enums.TicketStatus
16453
+ fullName: string
16454
+ mail: string
16455
+ created_at?: Date | string
16456
+ updated_at?: Date | string
16457
+ }
16458
+
16459
+ export type TicketUpdateManyMutationInput = {
16460
+ id?: StringFieldUpdateOperationsInput | string
16461
+ type?: EnumTicketTypeFieldUpdateOperationsInput | $Enums.TicketType
16462
+ status?: EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus
16463
+ fullName?: StringFieldUpdateOperationsInput | string
16464
+ mail?: StringFieldUpdateOperationsInput | string
16465
+ created_at?: DateTimeFieldUpdateOperationsInput | Date | string
16466
+ updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
16467
+ }
16468
+
16469
+ export type TicketUncheckedUpdateManyInput = {
16470
+ id?: StringFieldUpdateOperationsInput | string
16471
+ eventId?: StringFieldUpdateOperationsInput | string
16472
+ type?: EnumTicketTypeFieldUpdateOperationsInput | $Enums.TicketType
16473
+ status?: EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus
16474
+ fullName?: StringFieldUpdateOperationsInput | string
16475
+ mail?: StringFieldUpdateOperationsInput | string
16476
+ created_at?: DateTimeFieldUpdateOperationsInput | Date | string
16477
+ updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
16478
+ }
16479
+
15172
16480
  export type EnumsCreateInput = {
15173
16481
  id: string
15174
16482
  templateStatus: $Enums.TemplateStatus
@@ -15781,10 +17089,20 @@ export namespace Prisma {
15781
17089
  none?: EventWhereInput
15782
17090
  }
15783
17091
 
17092
+ export type TicketListRelationFilter = {
17093
+ every?: TicketWhereInput
17094
+ some?: TicketWhereInput
17095
+ none?: TicketWhereInput
17096
+ }
17097
+
15784
17098
  export type EventOrderByRelationAggregateInput = {
15785
17099
  _count?: SortOrder
15786
17100
  }
15787
17101
 
17102
+ export type TicketOrderByRelationAggregateInput = {
17103
+ _count?: SortOrder
17104
+ }
17105
+
15788
17106
  export type EventCountOrderByAggregateInput = {
15789
17107
  id?: SortOrder
15790
17108
  name?: SortOrder
@@ -15964,6 +17282,78 @@ export namespace Prisma {
15964
17282
  updated_at?: SortOrder
15965
17283
  }
15966
17284
 
17285
+ export type EnumTicketTypeFilter<$PrismaModel = never> = {
17286
+ equals?: $Enums.TicketType | EnumTicketTypeFieldRefInput<$PrismaModel>
17287
+ in?: $Enums.TicketType[] | ListEnumTicketTypeFieldRefInput<$PrismaModel>
17288
+ notIn?: $Enums.TicketType[] | ListEnumTicketTypeFieldRefInput<$PrismaModel>
17289
+ not?: NestedEnumTicketTypeFilter<$PrismaModel> | $Enums.TicketType
17290
+ }
17291
+
17292
+ export type EnumTicketStatusFilter<$PrismaModel = never> = {
17293
+ equals?: $Enums.TicketStatus | EnumTicketStatusFieldRefInput<$PrismaModel>
17294
+ in?: $Enums.TicketStatus[] | ListEnumTicketStatusFieldRefInput<$PrismaModel>
17295
+ notIn?: $Enums.TicketStatus[] | ListEnumTicketStatusFieldRefInput<$PrismaModel>
17296
+ not?: NestedEnumTicketStatusFilter<$PrismaModel> | $Enums.TicketStatus
17297
+ }
17298
+
17299
+ export type EventRelationFilter = {
17300
+ is?: EventWhereInput
17301
+ isNot?: EventWhereInput
17302
+ }
17303
+
17304
+ export type TicketCountOrderByAggregateInput = {
17305
+ id?: SortOrder
17306
+ eventId?: SortOrder
17307
+ type?: SortOrder
17308
+ status?: SortOrder
17309
+ fullName?: SortOrder
17310
+ mail?: SortOrder
17311
+ created_at?: SortOrder
17312
+ updated_at?: SortOrder
17313
+ }
17314
+
17315
+ export type TicketMaxOrderByAggregateInput = {
17316
+ id?: SortOrder
17317
+ eventId?: SortOrder
17318
+ type?: SortOrder
17319
+ status?: SortOrder
17320
+ fullName?: SortOrder
17321
+ mail?: SortOrder
17322
+ created_at?: SortOrder
17323
+ updated_at?: SortOrder
17324
+ }
17325
+
17326
+ export type TicketMinOrderByAggregateInput = {
17327
+ id?: SortOrder
17328
+ eventId?: SortOrder
17329
+ type?: SortOrder
17330
+ status?: SortOrder
17331
+ fullName?: SortOrder
17332
+ mail?: SortOrder
17333
+ created_at?: SortOrder
17334
+ updated_at?: SortOrder
17335
+ }
17336
+
17337
+ export type EnumTicketTypeWithAggregatesFilter<$PrismaModel = never> = {
17338
+ equals?: $Enums.TicketType | EnumTicketTypeFieldRefInput<$PrismaModel>
17339
+ in?: $Enums.TicketType[] | ListEnumTicketTypeFieldRefInput<$PrismaModel>
17340
+ notIn?: $Enums.TicketType[] | ListEnumTicketTypeFieldRefInput<$PrismaModel>
17341
+ not?: NestedEnumTicketTypeWithAggregatesFilter<$PrismaModel> | $Enums.TicketType
17342
+ _count?: NestedIntFilter<$PrismaModel>
17343
+ _min?: NestedEnumTicketTypeFilter<$PrismaModel>
17344
+ _max?: NestedEnumTicketTypeFilter<$PrismaModel>
17345
+ }
17346
+
17347
+ export type EnumTicketStatusWithAggregatesFilter<$PrismaModel = never> = {
17348
+ equals?: $Enums.TicketStatus | EnumTicketStatusFieldRefInput<$PrismaModel>
17349
+ in?: $Enums.TicketStatus[] | ListEnumTicketStatusFieldRefInput<$PrismaModel>
17350
+ notIn?: $Enums.TicketStatus[] | ListEnumTicketStatusFieldRefInput<$PrismaModel>
17351
+ not?: NestedEnumTicketStatusWithAggregatesFilter<$PrismaModel> | $Enums.TicketStatus
17352
+ _count?: NestedIntFilter<$PrismaModel>
17353
+ _min?: NestedEnumTicketStatusFilter<$PrismaModel>
17354
+ _max?: NestedEnumTicketStatusFilter<$PrismaModel>
17355
+ }
17356
+
15967
17357
  export type EnumTemplateStatusFilter<$PrismaModel = never> = {
15968
17358
  equals?: $Enums.TemplateStatus | EnumTemplateStatusFieldRefInput<$PrismaModel>
15969
17359
  in?: $Enums.TemplateStatus[] | ListEnumTemplateStatusFieldRefInput<$PrismaModel>
@@ -16785,6 +18175,13 @@ export namespace Prisma {
16785
18175
  connect?: EventWhereUniqueInput | EventWhereUniqueInput[]
16786
18176
  }
16787
18177
 
18178
+ export type TicketCreateNestedManyWithoutEventInput = {
18179
+ create?: XOR<TicketCreateWithoutEventInput, TicketUncheckedCreateWithoutEventInput> | TicketCreateWithoutEventInput[] | TicketUncheckedCreateWithoutEventInput[]
18180
+ connectOrCreate?: TicketCreateOrConnectWithoutEventInput | TicketCreateOrConnectWithoutEventInput[]
18181
+ createMany?: TicketCreateManyEventInputEnvelope
18182
+ connect?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
18183
+ }
18184
+
16788
18185
  export type EventUncheckedCreateNestedManyWithoutSupraEventInput = {
16789
18186
  create?: XOR<EventCreateWithoutSupraEventInput, EventUncheckedCreateWithoutSupraEventInput> | EventCreateWithoutSupraEventInput[] | EventUncheckedCreateWithoutSupraEventInput[]
16790
18187
  connectOrCreate?: EventCreateOrConnectWithoutSupraEventInput | EventCreateOrConnectWithoutSupraEventInput[]
@@ -16792,6 +18189,13 @@ export namespace Prisma {
16792
18189
  connect?: EventWhereUniqueInput | EventWhereUniqueInput[]
16793
18190
  }
16794
18191
 
18192
+ export type TicketUncheckedCreateNestedManyWithoutEventInput = {
18193
+ create?: XOR<TicketCreateWithoutEventInput, TicketUncheckedCreateWithoutEventInput> | TicketCreateWithoutEventInput[] | TicketUncheckedCreateWithoutEventInput[]
18194
+ connectOrCreate?: TicketCreateOrConnectWithoutEventInput | TicketCreateOrConnectWithoutEventInput[]
18195
+ createMany?: TicketCreateManyEventInputEnvelope
18196
+ connect?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
18197
+ }
18198
+
16795
18199
  export type EventFolderUpdateOneWithoutEventsNestedInput = {
16796
18200
  create?: XOR<EventFolderCreateWithoutEventsInput, EventFolderUncheckedCreateWithoutEventsInput>
16797
18201
  connectOrCreate?: EventFolderCreateOrConnectWithoutEventsInput
@@ -16842,6 +18246,20 @@ export namespace Prisma {
16842
18246
  deleteMany?: EventScalarWhereInput | EventScalarWhereInput[]
16843
18247
  }
16844
18248
 
18249
+ export type TicketUpdateManyWithoutEventNestedInput = {
18250
+ create?: XOR<TicketCreateWithoutEventInput, TicketUncheckedCreateWithoutEventInput> | TicketCreateWithoutEventInput[] | TicketUncheckedCreateWithoutEventInput[]
18251
+ connectOrCreate?: TicketCreateOrConnectWithoutEventInput | TicketCreateOrConnectWithoutEventInput[]
18252
+ upsert?: TicketUpsertWithWhereUniqueWithoutEventInput | TicketUpsertWithWhereUniqueWithoutEventInput[]
18253
+ createMany?: TicketCreateManyEventInputEnvelope
18254
+ set?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
18255
+ disconnect?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
18256
+ delete?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
18257
+ connect?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
18258
+ update?: TicketUpdateWithWhereUniqueWithoutEventInput | TicketUpdateWithWhereUniqueWithoutEventInput[]
18259
+ updateMany?: TicketUpdateManyWithWhereWithoutEventInput | TicketUpdateManyWithWhereWithoutEventInput[]
18260
+ deleteMany?: TicketScalarWhereInput | TicketScalarWhereInput[]
18261
+ }
18262
+
16845
18263
  export type EventUncheckedUpdateManyWithoutSupraEventNestedInput = {
16846
18264
  create?: XOR<EventCreateWithoutSupraEventInput, EventUncheckedCreateWithoutSupraEventInput> | EventCreateWithoutSupraEventInput[] | EventUncheckedCreateWithoutSupraEventInput[]
16847
18265
  connectOrCreate?: EventCreateOrConnectWithoutSupraEventInput | EventCreateOrConnectWithoutSupraEventInput[]
@@ -16856,6 +18274,20 @@ export namespace Prisma {
16856
18274
  deleteMany?: EventScalarWhereInput | EventScalarWhereInput[]
16857
18275
  }
16858
18276
 
18277
+ export type TicketUncheckedUpdateManyWithoutEventNestedInput = {
18278
+ create?: XOR<TicketCreateWithoutEventInput, TicketUncheckedCreateWithoutEventInput> | TicketCreateWithoutEventInput[] | TicketUncheckedCreateWithoutEventInput[]
18279
+ connectOrCreate?: TicketCreateOrConnectWithoutEventInput | TicketCreateOrConnectWithoutEventInput[]
18280
+ upsert?: TicketUpsertWithWhereUniqueWithoutEventInput | TicketUpsertWithWhereUniqueWithoutEventInput[]
18281
+ createMany?: TicketCreateManyEventInputEnvelope
18282
+ set?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
18283
+ disconnect?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
18284
+ delete?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
18285
+ connect?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
18286
+ update?: TicketUpdateWithWhereUniqueWithoutEventInput | TicketUpdateWithWhereUniqueWithoutEventInput[]
18287
+ updateMany?: TicketUpdateManyWithWhereWithoutEventInput | TicketUpdateManyWithWhereWithoutEventInput[]
18288
+ deleteMany?: TicketScalarWhereInput | TicketScalarWhereInput[]
18289
+ }
18290
+
16859
18291
  export type EventCreateNestedManyWithoutFolderInput = {
16860
18292
  create?: XOR<EventCreateWithoutFolderInput, EventUncheckedCreateWithoutFolderInput> | EventCreateWithoutFolderInput[] | EventUncheckedCreateWithoutFolderInput[]
16861
18293
  connectOrCreate?: EventCreateOrConnectWithoutFolderInput | EventCreateOrConnectWithoutFolderInput[]
@@ -16916,6 +18348,28 @@ export namespace Prisma {
16916
18348
  update?: XOR<XOR<ProfileUpdateToOneWithWhereWithoutMessagesInput, ProfileUpdateWithoutMessagesInput>, ProfileUncheckedUpdateWithoutMessagesInput>
16917
18349
  }
16918
18350
 
18351
+ export type EventCreateNestedOneWithoutTicketsInput = {
18352
+ create?: XOR<EventCreateWithoutTicketsInput, EventUncheckedCreateWithoutTicketsInput>
18353
+ connectOrCreate?: EventCreateOrConnectWithoutTicketsInput
18354
+ connect?: EventWhereUniqueInput
18355
+ }
18356
+
18357
+ export type EnumTicketTypeFieldUpdateOperationsInput = {
18358
+ set?: $Enums.TicketType
18359
+ }
18360
+
18361
+ export type EnumTicketStatusFieldUpdateOperationsInput = {
18362
+ set?: $Enums.TicketStatus
18363
+ }
18364
+
18365
+ export type EventUpdateOneRequiredWithoutTicketsNestedInput = {
18366
+ create?: XOR<EventCreateWithoutTicketsInput, EventUncheckedCreateWithoutTicketsInput>
18367
+ connectOrCreate?: EventCreateOrConnectWithoutTicketsInput
18368
+ upsert?: EventUpsertWithoutTicketsInput
18369
+ connect?: EventWhereUniqueInput
18370
+ update?: XOR<XOR<EventUpdateToOneWithWhereWithoutTicketsInput, EventUpdateWithoutTicketsInput>, EventUncheckedUpdateWithoutTicketsInput>
18371
+ }
18372
+
16919
18373
  export type EnumTemplateStatusFieldUpdateOperationsInput = {
16920
18374
  set?: $Enums.TemplateStatus
16921
18375
  }
@@ -17187,6 +18641,40 @@ export namespace Prisma {
17187
18641
  _max?: NestedEnumMessageStateFilter<$PrismaModel>
17188
18642
  }
17189
18643
 
18644
+ export type NestedEnumTicketTypeFilter<$PrismaModel = never> = {
18645
+ equals?: $Enums.TicketType | EnumTicketTypeFieldRefInput<$PrismaModel>
18646
+ in?: $Enums.TicketType[] | ListEnumTicketTypeFieldRefInput<$PrismaModel>
18647
+ notIn?: $Enums.TicketType[] | ListEnumTicketTypeFieldRefInput<$PrismaModel>
18648
+ not?: NestedEnumTicketTypeFilter<$PrismaModel> | $Enums.TicketType
18649
+ }
18650
+
18651
+ export type NestedEnumTicketStatusFilter<$PrismaModel = never> = {
18652
+ equals?: $Enums.TicketStatus | EnumTicketStatusFieldRefInput<$PrismaModel>
18653
+ in?: $Enums.TicketStatus[] | ListEnumTicketStatusFieldRefInput<$PrismaModel>
18654
+ notIn?: $Enums.TicketStatus[] | ListEnumTicketStatusFieldRefInput<$PrismaModel>
18655
+ not?: NestedEnumTicketStatusFilter<$PrismaModel> | $Enums.TicketStatus
18656
+ }
18657
+
18658
+ export type NestedEnumTicketTypeWithAggregatesFilter<$PrismaModel = never> = {
18659
+ equals?: $Enums.TicketType | EnumTicketTypeFieldRefInput<$PrismaModel>
18660
+ in?: $Enums.TicketType[] | ListEnumTicketTypeFieldRefInput<$PrismaModel>
18661
+ notIn?: $Enums.TicketType[] | ListEnumTicketTypeFieldRefInput<$PrismaModel>
18662
+ not?: NestedEnumTicketTypeWithAggregatesFilter<$PrismaModel> | $Enums.TicketType
18663
+ _count?: NestedIntFilter<$PrismaModel>
18664
+ _min?: NestedEnumTicketTypeFilter<$PrismaModel>
18665
+ _max?: NestedEnumTicketTypeFilter<$PrismaModel>
18666
+ }
18667
+
18668
+ export type NestedEnumTicketStatusWithAggregatesFilter<$PrismaModel = never> = {
18669
+ equals?: $Enums.TicketStatus | EnumTicketStatusFieldRefInput<$PrismaModel>
18670
+ in?: $Enums.TicketStatus[] | ListEnumTicketStatusFieldRefInput<$PrismaModel>
18671
+ notIn?: $Enums.TicketStatus[] | ListEnumTicketStatusFieldRefInput<$PrismaModel>
18672
+ not?: NestedEnumTicketStatusWithAggregatesFilter<$PrismaModel> | $Enums.TicketStatus
18673
+ _count?: NestedIntFilter<$PrismaModel>
18674
+ _min?: NestedEnumTicketStatusFilter<$PrismaModel>
18675
+ _max?: NestedEnumTicketStatusFilter<$PrismaModel>
18676
+ }
18677
+
17190
18678
  export type NestedEnumTemplateStatusFilter<$PrismaModel = never> = {
17191
18679
  equals?: $Enums.TemplateStatus | EnumTemplateStatusFieldRefInput<$PrismaModel>
17192
18680
  in?: $Enums.TemplateStatus[] | ListEnumTemplateStatusFieldRefInput<$PrismaModel>
@@ -18188,6 +19676,7 @@ export namespace Prisma {
18188
19676
  tagConfirmed: TagCreateNestedOneWithoutConfirmedEventInput
18189
19677
  supraEvent?: EventCreateNestedOneWithoutSubEventsInput
18190
19678
  subEvents?: EventCreateNestedManyWithoutSupraEventInput
19679
+ tickets?: TicketCreateNestedManyWithoutEventInput
18191
19680
  }
18192
19681
 
18193
19682
  export type EventUncheckedCreateWithoutTagAssistedInput = {
@@ -18201,6 +19690,7 @@ export namespace Prisma {
18201
19690
  created_at?: Date | string
18202
19691
  updated_at?: Date | string
18203
19692
  subEvents?: EventUncheckedCreateNestedManyWithoutSupraEventInput
19693
+ tickets?: TicketUncheckedCreateNestedManyWithoutEventInput
18204
19694
  }
18205
19695
 
18206
19696
  export type EventCreateOrConnectWithoutTagAssistedInput = {
@@ -18219,6 +19709,7 @@ export namespace Prisma {
18219
19709
  tagAssisted: TagCreateNestedOneWithoutAssistedEventInput
18220
19710
  supraEvent?: EventCreateNestedOneWithoutSubEventsInput
18221
19711
  subEvents?: EventCreateNestedManyWithoutSupraEventInput
19712
+ tickets?: TicketCreateNestedManyWithoutEventInput
18222
19713
  }
18223
19714
 
18224
19715
  export type EventUncheckedCreateWithoutTagConfirmedInput = {
@@ -18232,6 +19723,7 @@ export namespace Prisma {
18232
19723
  created_at?: Date | string
18233
19724
  updated_at?: Date | string
18234
19725
  subEvents?: EventUncheckedCreateNestedManyWithoutSupraEventInput
19726
+ tickets?: TicketUncheckedCreateNestedManyWithoutEventInput
18235
19727
  }
18236
19728
 
18237
19729
  export type EventCreateOrConnectWithoutTagConfirmedInput = {
@@ -18409,6 +19901,7 @@ export namespace Prisma {
18409
19901
  tagConfirmed?: TagUpdateOneRequiredWithoutConfirmedEventNestedInput
18410
19902
  supraEvent?: EventUpdateOneWithoutSubEventsNestedInput
18411
19903
  subEvents?: EventUpdateManyWithoutSupraEventNestedInput
19904
+ tickets?: TicketUpdateManyWithoutEventNestedInput
18412
19905
  }
18413
19906
 
18414
19907
  export type EventUncheckedUpdateWithoutTagAssistedInput = {
@@ -18422,6 +19915,7 @@ export namespace Prisma {
18422
19915
  created_at?: DateTimeFieldUpdateOperationsInput | Date | string
18423
19916
  updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
18424
19917
  subEvents?: EventUncheckedUpdateManyWithoutSupraEventNestedInput
19918
+ tickets?: TicketUncheckedUpdateManyWithoutEventNestedInput
18425
19919
  }
18426
19920
 
18427
19921
  export type EventUpsertWithoutTagConfirmedInput = {
@@ -18446,6 +19940,7 @@ export namespace Prisma {
18446
19940
  tagAssisted?: TagUpdateOneRequiredWithoutAssistedEventNestedInput
18447
19941
  supraEvent?: EventUpdateOneWithoutSubEventsNestedInput
18448
19942
  subEvents?: EventUpdateManyWithoutSupraEventNestedInput
19943
+ tickets?: TicketUpdateManyWithoutEventNestedInput
18449
19944
  }
18450
19945
 
18451
19946
  export type EventUncheckedUpdateWithoutTagConfirmedInput = {
@@ -18459,6 +19954,7 @@ export namespace Prisma {
18459
19954
  created_at?: DateTimeFieldUpdateOperationsInput | Date | string
18460
19955
  updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
18461
19956
  subEvents?: EventUncheckedUpdateManyWithoutSupraEventNestedInput
19957
+ tickets?: TicketUncheckedUpdateManyWithoutEventNestedInput
18462
19958
  }
18463
19959
 
18464
19960
  export type AccountUpsertWithWhereUniqueWithoutTagsInput = {
@@ -18669,6 +20165,7 @@ export namespace Prisma {
18669
20165
  tagAssisted: TagCreateNestedOneWithoutAssistedEventInput
18670
20166
  tagConfirmed: TagCreateNestedOneWithoutConfirmedEventInput
18671
20167
  supraEvent?: EventCreateNestedOneWithoutSubEventsInput
20168
+ tickets?: TicketCreateNestedManyWithoutEventInput
18672
20169
  }
18673
20170
 
18674
20171
  export type EventUncheckedCreateWithoutSubEventsInput = {
@@ -18682,6 +20179,7 @@ export namespace Prisma {
18682
20179
  supraEventId?: string | null
18683
20180
  created_at?: Date | string
18684
20181
  updated_at?: Date | string
20182
+ tickets?: TicketUncheckedCreateNestedManyWithoutEventInput
18685
20183
  }
18686
20184
 
18687
20185
  export type EventCreateOrConnectWithoutSubEventsInput = {
@@ -18700,6 +20198,7 @@ export namespace Prisma {
18700
20198
  tagAssisted: TagCreateNestedOneWithoutAssistedEventInput
18701
20199
  tagConfirmed: TagCreateNestedOneWithoutConfirmedEventInput
18702
20200
  subEvents?: EventCreateNestedManyWithoutSupraEventInput
20201
+ tickets?: TicketCreateNestedManyWithoutEventInput
18703
20202
  }
18704
20203
 
18705
20204
  export type EventUncheckedCreateWithoutSupraEventInput = {
@@ -18713,6 +20212,7 @@ export namespace Prisma {
18713
20212
  created_at?: Date | string
18714
20213
  updated_at?: Date | string
18715
20214
  subEvents?: EventUncheckedCreateNestedManyWithoutSupraEventInput
20215
+ tickets?: TicketUncheckedCreateNestedManyWithoutEventInput
18716
20216
  }
18717
20217
 
18718
20218
  export type EventCreateOrConnectWithoutSupraEventInput = {
@@ -18725,6 +20225,36 @@ export namespace Prisma {
18725
20225
  skipDuplicates?: boolean
18726
20226
  }
18727
20227
 
20228
+ export type TicketCreateWithoutEventInput = {
20229
+ id?: string
20230
+ type: $Enums.TicketType
20231
+ status: $Enums.TicketStatus
20232
+ fullName: string
20233
+ mail: string
20234
+ created_at?: Date | string
20235
+ updated_at?: Date | string
20236
+ }
20237
+
20238
+ export type TicketUncheckedCreateWithoutEventInput = {
20239
+ id?: string
20240
+ type: $Enums.TicketType
20241
+ status: $Enums.TicketStatus
20242
+ fullName: string
20243
+ mail: string
20244
+ created_at?: Date | string
20245
+ updated_at?: Date | string
20246
+ }
20247
+
20248
+ export type TicketCreateOrConnectWithoutEventInput = {
20249
+ where: TicketWhereUniqueInput
20250
+ create: XOR<TicketCreateWithoutEventInput, TicketUncheckedCreateWithoutEventInput>
20251
+ }
20252
+
20253
+ export type TicketCreateManyEventInputEnvelope = {
20254
+ data: TicketCreateManyEventInput | TicketCreateManyEventInput[]
20255
+ skipDuplicates?: boolean
20256
+ }
20257
+
18728
20258
  export type EventFolderUpsertWithoutEventsInput = {
18729
20259
  update: XOR<EventFolderUpdateWithoutEventsInput, EventFolderUncheckedUpdateWithoutEventsInput>
18730
20260
  create: XOR<EventFolderCreateWithoutEventsInput, EventFolderUncheckedCreateWithoutEventsInput>
@@ -18848,6 +20378,7 @@ export namespace Prisma {
18848
20378
  tagAssisted?: TagUpdateOneRequiredWithoutAssistedEventNestedInput
18849
20379
  tagConfirmed?: TagUpdateOneRequiredWithoutConfirmedEventNestedInput
18850
20380
  supraEvent?: EventUpdateOneWithoutSubEventsNestedInput
20381
+ tickets?: TicketUpdateManyWithoutEventNestedInput
18851
20382
  }
18852
20383
 
18853
20384
  export type EventUncheckedUpdateWithoutSubEventsInput = {
@@ -18861,6 +20392,7 @@ export namespace Prisma {
18861
20392
  supraEventId?: NullableStringFieldUpdateOperationsInput | string | null
18862
20393
  created_at?: DateTimeFieldUpdateOperationsInput | Date | string
18863
20394
  updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
20395
+ tickets?: TicketUncheckedUpdateManyWithoutEventNestedInput
18864
20396
  }
18865
20397
 
18866
20398
  export type EventUpsertWithWhereUniqueWithoutSupraEventInput = {
@@ -18895,6 +20427,36 @@ export namespace Prisma {
18895
20427
  updated_at?: DateTimeFilter<"Event"> | Date | string
18896
20428
  }
18897
20429
 
20430
+ export type TicketUpsertWithWhereUniqueWithoutEventInput = {
20431
+ where: TicketWhereUniqueInput
20432
+ update: XOR<TicketUpdateWithoutEventInput, TicketUncheckedUpdateWithoutEventInput>
20433
+ create: XOR<TicketCreateWithoutEventInput, TicketUncheckedCreateWithoutEventInput>
20434
+ }
20435
+
20436
+ export type TicketUpdateWithWhereUniqueWithoutEventInput = {
20437
+ where: TicketWhereUniqueInput
20438
+ data: XOR<TicketUpdateWithoutEventInput, TicketUncheckedUpdateWithoutEventInput>
20439
+ }
20440
+
20441
+ export type TicketUpdateManyWithWhereWithoutEventInput = {
20442
+ where: TicketScalarWhereInput
20443
+ data: XOR<TicketUpdateManyMutationInput, TicketUncheckedUpdateManyWithoutEventInput>
20444
+ }
20445
+
20446
+ export type TicketScalarWhereInput = {
20447
+ AND?: TicketScalarWhereInput | TicketScalarWhereInput[]
20448
+ OR?: TicketScalarWhereInput[]
20449
+ NOT?: TicketScalarWhereInput | TicketScalarWhereInput[]
20450
+ id?: StringFilter<"Ticket"> | string
20451
+ eventId?: StringFilter<"Ticket"> | string
20452
+ type?: EnumTicketTypeFilter<"Ticket"> | $Enums.TicketType
20453
+ status?: EnumTicketStatusFilter<"Ticket"> | $Enums.TicketStatus
20454
+ fullName?: StringFilter<"Ticket"> | string
20455
+ mail?: StringFilter<"Ticket"> | string
20456
+ created_at?: DateTimeFilter<"Ticket"> | Date | string
20457
+ updated_at?: DateTimeFilter<"Ticket"> | Date | string
20458
+ }
20459
+
18898
20460
  export type EventCreateWithoutFolderInput = {
18899
20461
  id?: string
18900
20462
  name: string
@@ -18906,6 +20468,7 @@ export namespace Prisma {
18906
20468
  tagConfirmed: TagCreateNestedOneWithoutConfirmedEventInput
18907
20469
  supraEvent?: EventCreateNestedOneWithoutSubEventsInput
18908
20470
  subEvents?: EventCreateNestedManyWithoutSupraEventInput
20471
+ tickets?: TicketCreateNestedManyWithoutEventInput
18909
20472
  }
18910
20473
 
18911
20474
  export type EventUncheckedCreateWithoutFolderInput = {
@@ -18919,6 +20482,7 @@ export namespace Prisma {
18919
20482
  created_at?: Date | string
18920
20483
  updated_at?: Date | string
18921
20484
  subEvents?: EventUncheckedCreateNestedManyWithoutSupraEventInput
20485
+ tickets?: TicketUncheckedCreateNestedManyWithoutEventInput
18922
20486
  }
18923
20487
 
18924
20488
  export type EventCreateOrConnectWithoutFolderInput = {
@@ -19059,6 +20623,78 @@ export namespace Prisma {
19059
20623
  tags?: TagUncheckedUpdateManyWithoutProfilesNestedInput
19060
20624
  }
19061
20625
 
20626
+ export type EventCreateWithoutTicketsInput = {
20627
+ id?: string
20628
+ name: string
20629
+ date: Date | string
20630
+ location: string
20631
+ created_at?: Date | string
20632
+ updated_at?: Date | string
20633
+ folder?: EventFolderCreateNestedOneWithoutEventsInput
20634
+ tagAssisted: TagCreateNestedOneWithoutAssistedEventInput
20635
+ tagConfirmed: TagCreateNestedOneWithoutConfirmedEventInput
20636
+ supraEvent?: EventCreateNestedOneWithoutSubEventsInput
20637
+ subEvents?: EventCreateNestedManyWithoutSupraEventInput
20638
+ }
20639
+
20640
+ export type EventUncheckedCreateWithoutTicketsInput = {
20641
+ id?: string
20642
+ name: string
20643
+ date: Date | string
20644
+ location: string
20645
+ folderId?: string | null
20646
+ tagAssistedId: string
20647
+ tagConfirmedId: string
20648
+ supraEventId?: string | null
20649
+ created_at?: Date | string
20650
+ updated_at?: Date | string
20651
+ subEvents?: EventUncheckedCreateNestedManyWithoutSupraEventInput
20652
+ }
20653
+
20654
+ export type EventCreateOrConnectWithoutTicketsInput = {
20655
+ where: EventWhereUniqueInput
20656
+ create: XOR<EventCreateWithoutTicketsInput, EventUncheckedCreateWithoutTicketsInput>
20657
+ }
20658
+
20659
+ export type EventUpsertWithoutTicketsInput = {
20660
+ update: XOR<EventUpdateWithoutTicketsInput, EventUncheckedUpdateWithoutTicketsInput>
20661
+ create: XOR<EventCreateWithoutTicketsInput, EventUncheckedCreateWithoutTicketsInput>
20662
+ where?: EventWhereInput
20663
+ }
20664
+
20665
+ export type EventUpdateToOneWithWhereWithoutTicketsInput = {
20666
+ where?: EventWhereInput
20667
+ data: XOR<EventUpdateWithoutTicketsInput, EventUncheckedUpdateWithoutTicketsInput>
20668
+ }
20669
+
20670
+ export type EventUpdateWithoutTicketsInput = {
20671
+ id?: StringFieldUpdateOperationsInput | string
20672
+ name?: StringFieldUpdateOperationsInput | string
20673
+ date?: DateTimeFieldUpdateOperationsInput | Date | string
20674
+ location?: StringFieldUpdateOperationsInput | string
20675
+ created_at?: DateTimeFieldUpdateOperationsInput | Date | string
20676
+ updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
20677
+ folder?: EventFolderUpdateOneWithoutEventsNestedInput
20678
+ tagAssisted?: TagUpdateOneRequiredWithoutAssistedEventNestedInput
20679
+ tagConfirmed?: TagUpdateOneRequiredWithoutConfirmedEventNestedInput
20680
+ supraEvent?: EventUpdateOneWithoutSubEventsNestedInput
20681
+ subEvents?: EventUpdateManyWithoutSupraEventNestedInput
20682
+ }
20683
+
20684
+ export type EventUncheckedUpdateWithoutTicketsInput = {
20685
+ id?: StringFieldUpdateOperationsInput | string
20686
+ name?: StringFieldUpdateOperationsInput | string
20687
+ date?: DateTimeFieldUpdateOperationsInput | Date | string
20688
+ location?: StringFieldUpdateOperationsInput | string
20689
+ folderId?: NullableStringFieldUpdateOperationsInput | string | null
20690
+ tagAssistedId?: StringFieldUpdateOperationsInput | string
20691
+ tagConfirmedId?: StringFieldUpdateOperationsInput | string
20692
+ supraEventId?: NullableStringFieldUpdateOperationsInput | string | null
20693
+ created_at?: DateTimeFieldUpdateOperationsInput | Date | string
20694
+ updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
20695
+ subEvents?: EventUncheckedUpdateManyWithoutSupraEventNestedInput
20696
+ }
20697
+
19062
20698
  export type CommentCreateManyAccountInput = {
19063
20699
  id?: string
19064
20700
  content: string
@@ -19726,6 +21362,16 @@ export namespace Prisma {
19726
21362
  updated_at?: Date | string
19727
21363
  }
19728
21364
 
21365
+ export type TicketCreateManyEventInput = {
21366
+ id?: string
21367
+ type: $Enums.TicketType
21368
+ status: $Enums.TicketStatus
21369
+ fullName: string
21370
+ mail: string
21371
+ created_at?: Date | string
21372
+ updated_at?: Date | string
21373
+ }
21374
+
19729
21375
  export type EventUpdateWithoutSupraEventInput = {
19730
21376
  id?: StringFieldUpdateOperationsInput | string
19731
21377
  name?: StringFieldUpdateOperationsInput | string
@@ -19737,6 +21383,7 @@ export namespace Prisma {
19737
21383
  tagAssisted?: TagUpdateOneRequiredWithoutAssistedEventNestedInput
19738
21384
  tagConfirmed?: TagUpdateOneRequiredWithoutConfirmedEventNestedInput
19739
21385
  subEvents?: EventUpdateManyWithoutSupraEventNestedInput
21386
+ tickets?: TicketUpdateManyWithoutEventNestedInput
19740
21387
  }
19741
21388
 
19742
21389
  export type EventUncheckedUpdateWithoutSupraEventInput = {
@@ -19750,6 +21397,7 @@ export namespace Prisma {
19750
21397
  created_at?: DateTimeFieldUpdateOperationsInput | Date | string
19751
21398
  updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
19752
21399
  subEvents?: EventUncheckedUpdateManyWithoutSupraEventNestedInput
21400
+ tickets?: TicketUncheckedUpdateManyWithoutEventNestedInput
19753
21401
  }
19754
21402
 
19755
21403
  export type EventUncheckedUpdateManyWithoutSupraEventInput = {
@@ -19764,6 +21412,36 @@ export namespace Prisma {
19764
21412
  updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
19765
21413
  }
19766
21414
 
21415
+ export type TicketUpdateWithoutEventInput = {
21416
+ id?: StringFieldUpdateOperationsInput | string
21417
+ type?: EnumTicketTypeFieldUpdateOperationsInput | $Enums.TicketType
21418
+ status?: EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus
21419
+ fullName?: StringFieldUpdateOperationsInput | string
21420
+ mail?: StringFieldUpdateOperationsInput | string
21421
+ created_at?: DateTimeFieldUpdateOperationsInput | Date | string
21422
+ updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
21423
+ }
21424
+
21425
+ export type TicketUncheckedUpdateWithoutEventInput = {
21426
+ id?: StringFieldUpdateOperationsInput | string
21427
+ type?: EnumTicketTypeFieldUpdateOperationsInput | $Enums.TicketType
21428
+ status?: EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus
21429
+ fullName?: StringFieldUpdateOperationsInput | string
21430
+ mail?: StringFieldUpdateOperationsInput | string
21431
+ created_at?: DateTimeFieldUpdateOperationsInput | Date | string
21432
+ updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
21433
+ }
21434
+
21435
+ export type TicketUncheckedUpdateManyWithoutEventInput = {
21436
+ id?: StringFieldUpdateOperationsInput | string
21437
+ type?: EnumTicketTypeFieldUpdateOperationsInput | $Enums.TicketType
21438
+ status?: EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus
21439
+ fullName?: StringFieldUpdateOperationsInput | string
21440
+ mail?: StringFieldUpdateOperationsInput | string
21441
+ created_at?: DateTimeFieldUpdateOperationsInput | Date | string
21442
+ updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
21443
+ }
21444
+
19767
21445
  export type EventCreateManyFolderInput = {
19768
21446
  id?: string
19769
21447
  name: string
@@ -19787,6 +21465,7 @@ export namespace Prisma {
19787
21465
  tagConfirmed?: TagUpdateOneRequiredWithoutConfirmedEventNestedInput
19788
21466
  supraEvent?: EventUpdateOneWithoutSubEventsNestedInput
19789
21467
  subEvents?: EventUpdateManyWithoutSupraEventNestedInput
21468
+ tickets?: TicketUpdateManyWithoutEventNestedInput
19790
21469
  }
19791
21470
 
19792
21471
  export type EventUncheckedUpdateWithoutFolderInput = {
@@ -19800,6 +21479,7 @@ export namespace Prisma {
19800
21479
  created_at?: DateTimeFieldUpdateOperationsInput | Date | string
19801
21480
  updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
19802
21481
  subEvents?: EventUncheckedUpdateManyWithoutSupraEventNestedInput
21482
+ tickets?: TicketUncheckedUpdateManyWithoutEventNestedInput
19803
21483
  }
19804
21484
 
19805
21485
  export type EventUncheckedUpdateManyWithoutFolderInput = {
@@ -19887,6 +21567,10 @@ export namespace Prisma {
19887
21567
  * @deprecated Use CannedResponseDefaultArgs instead
19888
21568
  */
19889
21569
  export type CannedResponseArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = CannedResponseDefaultArgs<ExtArgs>
21570
+ /**
21571
+ * @deprecated Use TicketDefaultArgs instead
21572
+ */
21573
+ export type TicketArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = TicketDefaultArgs<ExtArgs>
19890
21574
  /**
19891
21575
  * @deprecated Use EnumsDefaultArgs instead
19892
21576
  */