lang-database 1.10.0 → 3.0.0

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.
@@ -57,6 +57,7 @@ export type Pack = {
57
57
  categoryId: string | null
58
58
  published: boolean
59
59
  currentPrice: Prisma.Decimal
60
+ public: boolean
60
61
  }
61
62
 
62
63
  /**
@@ -67,6 +68,19 @@ export type User = {
67
68
  id: string
68
69
  email: string
69
70
  name: string
71
+ teamId: string
72
+ }
73
+
74
+ /**
75
+ * Model Team
76
+ *
77
+ */
78
+ export type Team = {
79
+ id: string
80
+ name: string
81
+ emailPattern: string
82
+ userCount: number
83
+ subscriptionExpire: Date | null
70
84
  }
71
85
 
72
86
  /**
@@ -322,6 +336,16 @@ export class PrismaClient<
322
336
  */
323
337
  get user(): Prisma.UserDelegate<GlobalReject>;
324
338
 
339
+ /**
340
+ * `prisma.team`: Exposes CRUD operations for the **Team** model.
341
+ * Example usage:
342
+ * ```ts
343
+ * // Fetch zero or more Teams
344
+ * const teams = await prisma.team.findMany()
345
+ * ```
346
+ */
347
+ get team(): Prisma.TeamDelegate<GlobalReject>;
348
+
325
349
  /**
326
350
  * `prisma.teacher`: Exposes CRUD operations for the **Teacher** model.
327
351
  * Example usage:
@@ -839,6 +863,7 @@ export namespace Prisma {
839
863
  Category: 'Category',
840
864
  Pack: 'Pack',
841
865
  User: 'User',
866
+ Team: 'Team',
842
867
  Teacher: 'Teacher',
843
868
  GoogleUser: 'GoogleUser',
844
869
  Answer: 'Answer',
@@ -1107,13 +1132,15 @@ export namespace Prisma {
1107
1132
  export type PackCountOutputType = {
1108
1133
  cards: number
1109
1134
  users: number
1110
- purchase: number
1135
+ purchases: number
1136
+ teams: number
1111
1137
  }
1112
1138
 
1113
1139
  export type PackCountOutputTypeSelect = {
1114
1140
  cards?: boolean
1115
1141
  users?: boolean
1116
- purchase?: boolean
1142
+ purchases?: boolean
1143
+ teams?: boolean
1117
1144
  }
1118
1145
 
1119
1146
  export type PackCountOutputTypeGetPayload<
@@ -1207,6 +1234,57 @@ export namespace Prisma {
1207
1234
 
1208
1235
 
1209
1236
 
1237
+ /**
1238
+ * Count Type TeamCountOutputType
1239
+ */
1240
+
1241
+
1242
+ export type TeamCountOutputType = {
1243
+ additionalDecks: number
1244
+ members: number
1245
+ }
1246
+
1247
+ export type TeamCountOutputTypeSelect = {
1248
+ additionalDecks?: boolean
1249
+ members?: boolean
1250
+ }
1251
+
1252
+ export type TeamCountOutputTypeGetPayload<
1253
+ S extends boolean | null | undefined | TeamCountOutputTypeArgs,
1254
+ U = keyof S
1255
+ > = S extends true
1256
+ ? TeamCountOutputType
1257
+ : S extends undefined
1258
+ ? never
1259
+ : S extends TeamCountOutputTypeArgs
1260
+ ?'include' extends U
1261
+ ? TeamCountOutputType
1262
+ : 'select' extends U
1263
+ ? {
1264
+ [P in TrueKeys<S['select']>]:
1265
+ P extends keyof TeamCountOutputType ? TeamCountOutputType[P] : never
1266
+ }
1267
+ : TeamCountOutputType
1268
+ : TeamCountOutputType
1269
+
1270
+
1271
+
1272
+
1273
+ // Custom InputTypes
1274
+
1275
+ /**
1276
+ * TeamCountOutputType without action
1277
+ */
1278
+ export type TeamCountOutputTypeArgs = {
1279
+ /**
1280
+ * Select specific fields to fetch from the TeamCountOutputType
1281
+ *
1282
+ **/
1283
+ select?: TeamCountOutputTypeSelect | null
1284
+ }
1285
+
1286
+
1287
+
1210
1288
  /**
1211
1289
  * Count Type TeacherCountOutputType
1212
1290
  */
@@ -4087,6 +4165,7 @@ export namespace Prisma {
4087
4165
  categoryId: string | null
4088
4166
  published: boolean | null
4089
4167
  currentPrice: Decimal | null
4168
+ public: boolean | null
4090
4169
  }
4091
4170
 
4092
4171
  export type PackMaxAggregateOutputType = {
@@ -4098,6 +4177,7 @@ export namespace Prisma {
4098
4177
  categoryId: string | null
4099
4178
  published: boolean | null
4100
4179
  currentPrice: Decimal | null
4180
+ public: boolean | null
4101
4181
  }
4102
4182
 
4103
4183
  export type PackCountAggregateOutputType = {
@@ -4109,6 +4189,7 @@ export namespace Prisma {
4109
4189
  categoryId: number
4110
4190
  published: number
4111
4191
  currentPrice: number
4192
+ public: number
4112
4193
  _all: number
4113
4194
  }
4114
4195
 
@@ -4130,6 +4211,7 @@ export namespace Prisma {
4130
4211
  categoryId?: true
4131
4212
  published?: true
4132
4213
  currentPrice?: true
4214
+ public?: true
4133
4215
  }
4134
4216
 
4135
4217
  export type PackMaxAggregateInputType = {
@@ -4141,6 +4223,7 @@ export namespace Prisma {
4141
4223
  categoryId?: true
4142
4224
  published?: true
4143
4225
  currentPrice?: true
4226
+ public?: true
4144
4227
  }
4145
4228
 
4146
4229
  export type PackCountAggregateInputType = {
@@ -4152,6 +4235,7 @@ export namespace Prisma {
4152
4235
  categoryId?: true
4153
4236
  published?: true
4154
4237
  currentPrice?: true
4238
+ public?: true
4155
4239
  _all?: true
4156
4240
  }
4157
4241
 
@@ -4256,6 +4340,7 @@ export namespace Prisma {
4256
4340
  categoryId: string | null
4257
4341
  published: boolean
4258
4342
  currentPrice: Decimal
4343
+ public: boolean
4259
4344
  _count: PackCountAggregateOutputType | null
4260
4345
  _avg: PackAvgAggregateOutputType | null
4261
4346
  _sum: PackSumAggregateOutputType | null
@@ -4287,10 +4372,12 @@ export namespace Prisma {
4287
4372
  category?: boolean | CategoryArgs
4288
4373
  categoryId?: boolean
4289
4374
  published?: boolean
4375
+ currentPrice?: boolean
4376
+ public?: boolean
4290
4377
  cards?: boolean | CardFindManyArgs
4291
4378
  users?: boolean | UserFindManyArgs
4292
- purchase?: boolean | PurchaseFindManyArgs
4293
- currentPrice?: boolean
4379
+ purchases?: boolean | PurchaseFindManyArgs
4380
+ teams?: boolean | TeamFindManyArgs
4294
4381
  _count?: boolean | PackCountOutputTypeArgs
4295
4382
  }
4296
4383
 
@@ -4299,7 +4386,8 @@ export namespace Prisma {
4299
4386
  category?: boolean | CategoryArgs
4300
4387
  cards?: boolean | CardFindManyArgs
4301
4388
  users?: boolean | UserFindManyArgs
4302
- purchase?: boolean | PurchaseFindManyArgs
4389
+ purchases?: boolean | PurchaseFindManyArgs
4390
+ teams?: boolean | TeamFindManyArgs
4303
4391
  _count?: boolean | PackCountOutputTypeArgs
4304
4392
  }
4305
4393
 
@@ -4318,7 +4406,8 @@ export namespace Prisma {
4318
4406
  P extends 'category' ? CategoryGetPayload<Exclude<S['include'], undefined | null>[P]> | null :
4319
4407
  P extends 'cards' ? Array < CardGetPayload<Exclude<S['include'], undefined | null>[P]>> :
4320
4408
  P extends 'users' ? Array < UserGetPayload<Exclude<S['include'], undefined | null>[P]>> :
4321
- P extends 'purchase' ? Array < PurchaseGetPayload<Exclude<S['include'], undefined | null>[P]>> :
4409
+ P extends 'purchases' ? Array < PurchaseGetPayload<Exclude<S['include'], undefined | null>[P]>> :
4410
+ P extends 'teams' ? Array < TeamGetPayload<Exclude<S['include'], undefined | null>[P]>> :
4322
4411
  P extends '_count' ? PackCountOutputTypeGetPayload<Exclude<S['include'], undefined | null>[P]> : never
4323
4412
  }
4324
4413
  : 'select' extends U
@@ -4328,7 +4417,8 @@ export namespace Prisma {
4328
4417
  P extends 'category' ? CategoryGetPayload<Exclude<S['select'], undefined | null>[P]> | null :
4329
4418
  P extends 'cards' ? Array < CardGetPayload<Exclude<S['select'], undefined | null>[P]>> :
4330
4419
  P extends 'users' ? Array < UserGetPayload<Exclude<S['select'], undefined | null>[P]>> :
4331
- P extends 'purchase' ? Array < PurchaseGetPayload<Exclude<S['select'], undefined | null>[P]>> :
4420
+ P extends 'purchases' ? Array < PurchaseGetPayload<Exclude<S['select'], undefined | null>[P]>> :
4421
+ P extends 'teams' ? Array < TeamGetPayload<Exclude<S['select'], undefined | null>[P]>> :
4332
4422
  P extends '_count' ? PackCountOutputTypeGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof Pack ? Pack[P] : never
4333
4423
  }
4334
4424
  : Pack
@@ -4712,7 +4802,9 @@ export namespace Prisma {
4712
4802
 
4713
4803
  users<T extends UserFindManyArgs = {}>(args?: Subset<T, UserFindManyArgs>): CheckSelect<T, PrismaPromise<Array<User>>, PrismaPromise<Array<UserGetPayload<T>>>>;
4714
4804
 
4715
- purchase<T extends PurchaseFindManyArgs = {}>(args?: Subset<T, PurchaseFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Purchase>>, PrismaPromise<Array<PurchaseGetPayload<T>>>>;
4805
+ purchases<T extends PurchaseFindManyArgs = {}>(args?: Subset<T, PurchaseFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Purchase>>, PrismaPromise<Array<PurchaseGetPayload<T>>>>;
4806
+
4807
+ teams<T extends TeamFindManyArgs = {}>(args?: Subset<T, TeamFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Team>>, PrismaPromise<Array<TeamGetPayload<T>>>>;
4716
4808
 
4717
4809
  private get _document();
4718
4810
  /**
@@ -5083,18 +5175,21 @@ export namespace Prisma {
5083
5175
  id: string | null
5084
5176
  email: string | null
5085
5177
  name: string | null
5178
+ teamId: string | null
5086
5179
  }
5087
5180
 
5088
5181
  export type UserMaxAggregateOutputType = {
5089
5182
  id: string | null
5090
5183
  email: string | null
5091
5184
  name: string | null
5185
+ teamId: string | null
5092
5186
  }
5093
5187
 
5094
5188
  export type UserCountAggregateOutputType = {
5095
5189
  id: number
5096
5190
  email: number
5097
5191
  name: number
5192
+ teamId: number
5098
5193
  _all: number
5099
5194
  }
5100
5195
 
@@ -5103,18 +5198,21 @@ export namespace Prisma {
5103
5198
  id?: true
5104
5199
  email?: true
5105
5200
  name?: true
5201
+ teamId?: true
5106
5202
  }
5107
5203
 
5108
5204
  export type UserMaxAggregateInputType = {
5109
5205
  id?: true
5110
5206
  email?: true
5111
5207
  name?: true
5208
+ teamId?: true
5112
5209
  }
5113
5210
 
5114
5211
  export type UserCountAggregateInputType = {
5115
5212
  id?: true
5116
5213
  email?: true
5117
5214
  name?: true
5215
+ teamId?: true
5118
5216
  _all?: true
5119
5217
  }
5120
5218
 
@@ -5200,6 +5298,7 @@ export namespace Prisma {
5200
5298
  id: string
5201
5299
  email: string
5202
5300
  name: string
5301
+ teamId: string
5203
5302
  _count: UserCountAggregateOutputType | null
5204
5303
  _min: UserMinAggregateOutputType | null
5205
5304
  _max: UserMaxAggregateOutputType | null
@@ -5228,6 +5327,8 @@ export namespace Prisma {
5228
5327
  packs?: boolean | PackFindManyArgs
5229
5328
  userCards?: boolean | UserCardFindManyArgs
5230
5329
  answers?: boolean | AnswerFindManyArgs
5330
+ team?: boolean | TeamArgs
5331
+ teamId?: boolean
5231
5332
  _count?: boolean | UserCountOutputTypeArgs
5232
5333
  }
5233
5334
 
@@ -5237,6 +5338,7 @@ export namespace Prisma {
5237
5338
  packs?: boolean | PackFindManyArgs
5238
5339
  userCards?: boolean | UserCardFindManyArgs
5239
5340
  answers?: boolean | AnswerFindManyArgs
5341
+ team?: boolean | TeamArgs
5240
5342
  _count?: boolean | UserCountOutputTypeArgs
5241
5343
  }
5242
5344
 
@@ -5256,6 +5358,7 @@ export namespace Prisma {
5256
5358
  P extends 'packs' ? Array < PackGetPayload<Exclude<S['include'], undefined | null>[P]>> :
5257
5359
  P extends 'userCards' ? Array < UserCardGetPayload<Exclude<S['include'], undefined | null>[P]>> :
5258
5360
  P extends 'answers' ? Array < AnswerGetPayload<Exclude<S['include'], undefined | null>[P]>> :
5361
+ P extends 'team' ? TeamGetPayload<Exclude<S['include'], undefined | null>[P]> | null :
5259
5362
  P extends '_count' ? UserCountOutputTypeGetPayload<Exclude<S['include'], undefined | null>[P]> : never
5260
5363
  }
5261
5364
  : 'select' extends U
@@ -5266,6 +5369,7 @@ export namespace Prisma {
5266
5369
  P extends 'packs' ? Array < PackGetPayload<Exclude<S['select'], undefined | null>[P]>> :
5267
5370
  P extends 'userCards' ? Array < UserCardGetPayload<Exclude<S['select'], undefined | null>[P]>> :
5268
5371
  P extends 'answers' ? Array < AnswerGetPayload<Exclude<S['select'], undefined | null>[P]>> :
5372
+ P extends 'team' ? TeamGetPayload<Exclude<S['select'], undefined | null>[P]> | null :
5269
5373
  P extends '_count' ? UserCountOutputTypeGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof User ? User[P] : never
5270
5374
  }
5271
5375
  : User
@@ -5651,6 +5755,8 @@ export namespace Prisma {
5651
5755
 
5652
5756
  answers<T extends AnswerFindManyArgs = {}>(args?: Subset<T, AnswerFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Answer>>, PrismaPromise<Array<AnswerGetPayload<T>>>>;
5653
5757
 
5758
+ team<T extends TeamArgs = {}>(args?: Subset<T, TeamArgs>): CheckSelect<T, Prisma__TeamClient<Team | null >, Prisma__TeamClient<TeamGetPayload<T> | null >>;
5759
+
5654
5760
  private get _document();
5655
5761
  /**
5656
5762
  * Attaches callbacks for the resolution and/or rejection of the Promise.
@@ -6006,314 +6112,360 @@ export namespace Prisma {
6006
6112
 
6007
6113
 
6008
6114
  /**
6009
- * Model Teacher
6115
+ * Model Team
6010
6116
  */
6011
6117
 
6012
6118
 
6013
- export type AggregateTeacher = {
6014
- _count: TeacherCountAggregateOutputType | null
6015
- _min: TeacherMinAggregateOutputType | null
6016
- _max: TeacherMaxAggregateOutputType | null
6119
+ export type AggregateTeam = {
6120
+ _count: TeamCountAggregateOutputType | null
6121
+ _avg: TeamAvgAggregateOutputType | null
6122
+ _sum: TeamSumAggregateOutputType | null
6123
+ _min: TeamMinAggregateOutputType | null
6124
+ _max: TeamMaxAggregateOutputType | null
6017
6125
  }
6018
6126
 
6019
- export type TeacherMinAggregateOutputType = {
6127
+ export type TeamAvgAggregateOutputType = {
6128
+ userCount: number | null
6129
+ }
6130
+
6131
+ export type TeamSumAggregateOutputType = {
6132
+ userCount: number | null
6133
+ }
6134
+
6135
+ export type TeamMinAggregateOutputType = {
6020
6136
  id: string | null
6021
- email: string | null
6022
6137
  name: string | null
6023
- password: string | null
6138
+ emailPattern: string | null
6139
+ userCount: number | null
6140
+ subscriptionExpire: Date | null
6024
6141
  }
6025
6142
 
6026
- export type TeacherMaxAggregateOutputType = {
6143
+ export type TeamMaxAggregateOutputType = {
6027
6144
  id: string | null
6028
- email: string | null
6029
6145
  name: string | null
6030
- password: string | null
6146
+ emailPattern: string | null
6147
+ userCount: number | null
6148
+ subscriptionExpire: Date | null
6031
6149
  }
6032
6150
 
6033
- export type TeacherCountAggregateOutputType = {
6151
+ export type TeamCountAggregateOutputType = {
6034
6152
  id: number
6035
- email: number
6036
6153
  name: number
6037
- password: number
6154
+ emailPattern: number
6155
+ userCount: number
6156
+ subscriptionExpire: number
6038
6157
  _all: number
6039
6158
  }
6040
6159
 
6041
6160
 
6042
- export type TeacherMinAggregateInputType = {
6161
+ export type TeamAvgAggregateInputType = {
6162
+ userCount?: true
6163
+ }
6164
+
6165
+ export type TeamSumAggregateInputType = {
6166
+ userCount?: true
6167
+ }
6168
+
6169
+ export type TeamMinAggregateInputType = {
6043
6170
  id?: true
6044
- email?: true
6045
6171
  name?: true
6046
- password?: true
6172
+ emailPattern?: true
6173
+ userCount?: true
6174
+ subscriptionExpire?: true
6047
6175
  }
6048
6176
 
6049
- export type TeacherMaxAggregateInputType = {
6177
+ export type TeamMaxAggregateInputType = {
6050
6178
  id?: true
6051
- email?: true
6052
6179
  name?: true
6053
- password?: true
6180
+ emailPattern?: true
6181
+ userCount?: true
6182
+ subscriptionExpire?: true
6054
6183
  }
6055
6184
 
6056
- export type TeacherCountAggregateInputType = {
6185
+ export type TeamCountAggregateInputType = {
6057
6186
  id?: true
6058
- email?: true
6059
6187
  name?: true
6060
- password?: true
6188
+ emailPattern?: true
6189
+ userCount?: true
6190
+ subscriptionExpire?: true
6061
6191
  _all?: true
6062
6192
  }
6063
6193
 
6064
- export type TeacherAggregateArgs = {
6194
+ export type TeamAggregateArgs = {
6065
6195
  /**
6066
- * Filter which Teacher to aggregate.
6196
+ * Filter which Team to aggregate.
6067
6197
  *
6068
6198
  **/
6069
- where?: TeacherWhereInput
6199
+ where?: TeamWhereInput
6070
6200
  /**
6071
6201
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
6072
6202
  *
6073
- * Determine the order of Teachers to fetch.
6203
+ * Determine the order of Teams to fetch.
6074
6204
  *
6075
6205
  **/
6076
- orderBy?: Enumerable<TeacherOrderByWithRelationInput>
6206
+ orderBy?: Enumerable<TeamOrderByWithRelationInput>
6077
6207
  /**
6078
6208
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
6079
6209
  *
6080
6210
  * Sets the start position
6081
6211
  *
6082
6212
  **/
6083
- cursor?: TeacherWhereUniqueInput
6213
+ cursor?: TeamWhereUniqueInput
6084
6214
  /**
6085
6215
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6086
6216
  *
6087
- * Take `±n` Teachers from the position of the cursor.
6217
+ * Take `±n` Teams from the position of the cursor.
6088
6218
  *
6089
6219
  **/
6090
6220
  take?: number
6091
6221
  /**
6092
6222
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6093
6223
  *
6094
- * Skip the first `n` Teachers.
6224
+ * Skip the first `n` Teams.
6095
6225
  *
6096
6226
  **/
6097
6227
  skip?: number
6098
6228
  /**
6099
6229
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
6100
6230
  *
6101
- * Count returned Teachers
6231
+ * Count returned Teams
6102
6232
  **/
6103
- _count?: true | TeacherCountAggregateInputType
6233
+ _count?: true | TeamCountAggregateInputType
6234
+ /**
6235
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
6236
+ *
6237
+ * Select which fields to average
6238
+ **/
6239
+ _avg?: TeamAvgAggregateInputType
6240
+ /**
6241
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
6242
+ *
6243
+ * Select which fields to sum
6244
+ **/
6245
+ _sum?: TeamSumAggregateInputType
6104
6246
  /**
6105
6247
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
6106
6248
  *
6107
6249
  * Select which fields to find the minimum value
6108
6250
  **/
6109
- _min?: TeacherMinAggregateInputType
6251
+ _min?: TeamMinAggregateInputType
6110
6252
  /**
6111
6253
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
6112
6254
  *
6113
6255
  * Select which fields to find the maximum value
6114
6256
  **/
6115
- _max?: TeacherMaxAggregateInputType
6257
+ _max?: TeamMaxAggregateInputType
6116
6258
  }
6117
6259
 
6118
- export type GetTeacherAggregateType<T extends TeacherAggregateArgs> = {
6119
- [P in keyof T & keyof AggregateTeacher]: P extends '_count' | 'count'
6260
+ export type GetTeamAggregateType<T extends TeamAggregateArgs> = {
6261
+ [P in keyof T & keyof AggregateTeam]: P extends '_count' | 'count'
6120
6262
  ? T[P] extends true
6121
6263
  ? number
6122
- : GetScalarType<T[P], AggregateTeacher[P]>
6123
- : GetScalarType<T[P], AggregateTeacher[P]>
6264
+ : GetScalarType<T[P], AggregateTeam[P]>
6265
+ : GetScalarType<T[P], AggregateTeam[P]>
6124
6266
  }
6125
6267
 
6126
6268
 
6127
6269
 
6128
6270
 
6129
- export type TeacherGroupByArgs = {
6130
- where?: TeacherWhereInput
6131
- orderBy?: Enumerable<TeacherOrderByWithAggregationInput>
6132
- by: Array<TeacherScalarFieldEnum>
6133
- having?: TeacherScalarWhereWithAggregatesInput
6271
+ export type TeamGroupByArgs = {
6272
+ where?: TeamWhereInput
6273
+ orderBy?: Enumerable<TeamOrderByWithAggregationInput>
6274
+ by: Array<TeamScalarFieldEnum>
6275
+ having?: TeamScalarWhereWithAggregatesInput
6134
6276
  take?: number
6135
6277
  skip?: number
6136
- _count?: TeacherCountAggregateInputType | true
6137
- _min?: TeacherMinAggregateInputType
6138
- _max?: TeacherMaxAggregateInputType
6278
+ _count?: TeamCountAggregateInputType | true
6279
+ _avg?: TeamAvgAggregateInputType
6280
+ _sum?: TeamSumAggregateInputType
6281
+ _min?: TeamMinAggregateInputType
6282
+ _max?: TeamMaxAggregateInputType
6139
6283
  }
6140
6284
 
6141
6285
 
6142
- export type TeacherGroupByOutputType = {
6286
+ export type TeamGroupByOutputType = {
6143
6287
  id: string
6144
- email: string
6145
6288
  name: string
6146
- password: string
6147
- _count: TeacherCountAggregateOutputType | null
6148
- _min: TeacherMinAggregateOutputType | null
6149
- _max: TeacherMaxAggregateOutputType | null
6289
+ emailPattern: string
6290
+ userCount: number
6291
+ subscriptionExpire: Date | null
6292
+ _count: TeamCountAggregateOutputType | null
6293
+ _avg: TeamAvgAggregateOutputType | null
6294
+ _sum: TeamSumAggregateOutputType | null
6295
+ _min: TeamMinAggregateOutputType | null
6296
+ _max: TeamMaxAggregateOutputType | null
6150
6297
  }
6151
6298
 
6152
- type GetTeacherGroupByPayload<T extends TeacherGroupByArgs> = PrismaPromise<
6299
+ type GetTeamGroupByPayload<T extends TeamGroupByArgs> = PrismaPromise<
6153
6300
  Array<
6154
- PickArray<TeacherGroupByOutputType, T['by']> &
6301
+ PickArray<TeamGroupByOutputType, T['by']> &
6155
6302
  {
6156
- [P in ((keyof T) & (keyof TeacherGroupByOutputType))]: P extends '_count'
6303
+ [P in ((keyof T) & (keyof TeamGroupByOutputType))]: P extends '_count'
6157
6304
  ? T[P] extends boolean
6158
6305
  ? number
6159
- : GetScalarType<T[P], TeacherGroupByOutputType[P]>
6160
- : GetScalarType<T[P], TeacherGroupByOutputType[P]>
6306
+ : GetScalarType<T[P], TeamGroupByOutputType[P]>
6307
+ : GetScalarType<T[P], TeamGroupByOutputType[P]>
6161
6308
  }
6162
6309
  >
6163
6310
  >
6164
6311
 
6165
6312
 
6166
- export type TeacherSelect = {
6313
+ export type TeamSelect = {
6167
6314
  id?: boolean
6168
- email?: boolean
6169
6315
  name?: boolean
6170
- password?: boolean
6171
- packs?: boolean | PackFindManyArgs
6172
- _count?: boolean | TeacherCountOutputTypeArgs
6316
+ emailPattern?: boolean
6317
+ additionalDecks?: boolean | PackFindManyArgs
6318
+ members?: boolean | UserFindManyArgs
6319
+ userCount?: boolean
6320
+ subscriptionExpire?: boolean
6321
+ _count?: boolean | TeamCountOutputTypeArgs
6173
6322
  }
6174
6323
 
6175
- export type TeacherInclude = {
6176
- packs?: boolean | PackFindManyArgs
6177
- _count?: boolean | TeacherCountOutputTypeArgs
6324
+ export type TeamInclude = {
6325
+ additionalDecks?: boolean | PackFindManyArgs
6326
+ members?: boolean | UserFindManyArgs
6327
+ _count?: boolean | TeamCountOutputTypeArgs
6178
6328
  }
6179
6329
 
6180
- export type TeacherGetPayload<
6181
- S extends boolean | null | undefined | TeacherArgs,
6330
+ export type TeamGetPayload<
6331
+ S extends boolean | null | undefined | TeamArgs,
6182
6332
  U = keyof S
6183
6333
  > = S extends true
6184
- ? Teacher
6334
+ ? Team
6185
6335
  : S extends undefined
6186
6336
  ? never
6187
- : S extends TeacherArgs | TeacherFindManyArgs
6337
+ : S extends TeamArgs | TeamFindManyArgs
6188
6338
  ?'include' extends U
6189
- ? Teacher & {
6339
+ ? Team & {
6190
6340
  [P in TrueKeys<S['include']>]:
6191
- P extends 'packs' ? Array < PackGetPayload<Exclude<S['include'], undefined | null>[P]>> :
6192
- P extends '_count' ? TeacherCountOutputTypeGetPayload<Exclude<S['include'], undefined | null>[P]> : never
6341
+ P extends 'additionalDecks' ? Array < PackGetPayload<Exclude<S['include'], undefined | null>[P]>> :
6342
+ P extends 'members' ? Array < UserGetPayload<Exclude<S['include'], undefined | null>[P]>> :
6343
+ P extends '_count' ? TeamCountOutputTypeGetPayload<Exclude<S['include'], undefined | null>[P]> : never
6193
6344
  }
6194
6345
  : 'select' extends U
6195
6346
  ? {
6196
6347
  [P in TrueKeys<S['select']>]:
6197
- P extends 'packs' ? Array < PackGetPayload<Exclude<S['select'], undefined | null>[P]>> :
6198
- P extends '_count' ? TeacherCountOutputTypeGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof Teacher ? Teacher[P] : never
6348
+ P extends 'additionalDecks' ? Array < PackGetPayload<Exclude<S['select'], undefined | null>[P]>> :
6349
+ P extends 'members' ? Array < UserGetPayload<Exclude<S['select'], undefined | null>[P]>> :
6350
+ P extends '_count' ? TeamCountOutputTypeGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof Team ? Team[P] : never
6199
6351
  }
6200
- : Teacher
6201
- : Teacher
6352
+ : Team
6353
+ : Team
6202
6354
 
6203
6355
 
6204
- type TeacherCountArgs = Merge<
6205
- Omit<TeacherFindManyArgs, 'select' | 'include'> & {
6206
- select?: TeacherCountAggregateInputType | true
6356
+ type TeamCountArgs = Merge<
6357
+ Omit<TeamFindManyArgs, 'select' | 'include'> & {
6358
+ select?: TeamCountAggregateInputType | true
6207
6359
  }
6208
6360
  >
6209
6361
 
6210
- export interface TeacherDelegate<GlobalRejectSettings extends Prisma.RejectOnNotFound | Prisma.RejectPerOperation | false | undefined> {
6362
+ export interface TeamDelegate<GlobalRejectSettings extends Prisma.RejectOnNotFound | Prisma.RejectPerOperation | false | undefined> {
6211
6363
  /**
6212
- * Find zero or one Teacher that matches the filter.
6213
- * @param {TeacherFindUniqueArgs} args - Arguments to find a Teacher
6364
+ * Find zero or one Team that matches the filter.
6365
+ * @param {TeamFindUniqueArgs} args - Arguments to find a Team
6214
6366
  * @example
6215
- * // Get one Teacher
6216
- * const teacher = await prisma.teacher.findUnique({
6367
+ * // Get one Team
6368
+ * const team = await prisma.team.findUnique({
6217
6369
  * where: {
6218
6370
  * // ... provide filter here
6219
6371
  * }
6220
6372
  * })
6221
6373
  **/
6222
- findUnique<T extends TeacherFindUniqueArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
6223
- args: SelectSubset<T, TeacherFindUniqueArgs>
6224
- ): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findUnique', 'Teacher'> extends True ? CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>> : CheckSelect<T, Prisma__TeacherClient<Teacher | null >, Prisma__TeacherClient<TeacherGetPayload<T> | null >>
6374
+ findUnique<T extends TeamFindUniqueArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
6375
+ args: SelectSubset<T, TeamFindUniqueArgs>
6376
+ ): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findUnique', 'Team'> extends True ? CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>> : CheckSelect<T, Prisma__TeamClient<Team | null >, Prisma__TeamClient<TeamGetPayload<T> | null >>
6225
6377
 
6226
6378
  /**
6227
- * Find the first Teacher that matches the filter.
6379
+ * Find the first Team that matches the filter.
6228
6380
  * Note, that providing `undefined` is treated as the value not being there.
6229
6381
  * Read more here: https://pris.ly/d/null-undefined
6230
- * @param {TeacherFindFirstArgs} args - Arguments to find a Teacher
6382
+ * @param {TeamFindFirstArgs} args - Arguments to find a Team
6231
6383
  * @example
6232
- * // Get one Teacher
6233
- * const teacher = await prisma.teacher.findFirst({
6384
+ * // Get one Team
6385
+ * const team = await prisma.team.findFirst({
6234
6386
  * where: {
6235
6387
  * // ... provide filter here
6236
6388
  * }
6237
6389
  * })
6238
6390
  **/
6239
- findFirst<T extends TeacherFindFirstArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
6240
- args?: SelectSubset<T, TeacherFindFirstArgs>
6241
- ): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findFirst', 'Teacher'> extends True ? CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>> : CheckSelect<T, Prisma__TeacherClient<Teacher | null >, Prisma__TeacherClient<TeacherGetPayload<T> | null >>
6391
+ findFirst<T extends TeamFindFirstArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
6392
+ args?: SelectSubset<T, TeamFindFirstArgs>
6393
+ ): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findFirst', 'Team'> extends True ? CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>> : CheckSelect<T, Prisma__TeamClient<Team | null >, Prisma__TeamClient<TeamGetPayload<T> | null >>
6242
6394
 
6243
6395
  /**
6244
- * Find zero or more Teachers that matches the filter.
6396
+ * Find zero or more Teams that matches the filter.
6245
6397
  * Note, that providing `undefined` is treated as the value not being there.
6246
6398
  * Read more here: https://pris.ly/d/null-undefined
6247
- * @param {TeacherFindManyArgs=} args - Arguments to filter and select certain fields only.
6399
+ * @param {TeamFindManyArgs=} args - Arguments to filter and select certain fields only.
6248
6400
  * @example
6249
- * // Get all Teachers
6250
- * const teachers = await prisma.teacher.findMany()
6401
+ * // Get all Teams
6402
+ * const teams = await prisma.team.findMany()
6251
6403
  *
6252
- * // Get first 10 Teachers
6253
- * const teachers = await prisma.teacher.findMany({ take: 10 })
6404
+ * // Get first 10 Teams
6405
+ * const teams = await prisma.team.findMany({ take: 10 })
6254
6406
  *
6255
6407
  * // Only select the `id`
6256
- * const teacherWithIdOnly = await prisma.teacher.findMany({ select: { id: true } })
6408
+ * const teamWithIdOnly = await prisma.team.findMany({ select: { id: true } })
6257
6409
  *
6258
6410
  **/
6259
- findMany<T extends TeacherFindManyArgs>(
6260
- args?: SelectSubset<T, TeacherFindManyArgs>
6261
- ): CheckSelect<T, PrismaPromise<Array<Teacher>>, PrismaPromise<Array<TeacherGetPayload<T>>>>
6411
+ findMany<T extends TeamFindManyArgs>(
6412
+ args?: SelectSubset<T, TeamFindManyArgs>
6413
+ ): CheckSelect<T, PrismaPromise<Array<Team>>, PrismaPromise<Array<TeamGetPayload<T>>>>
6262
6414
 
6263
6415
  /**
6264
- * Create a Teacher.
6265
- * @param {TeacherCreateArgs} args - Arguments to create a Teacher.
6416
+ * Create a Team.
6417
+ * @param {TeamCreateArgs} args - Arguments to create a Team.
6266
6418
  * @example
6267
- * // Create one Teacher
6268
- * const Teacher = await prisma.teacher.create({
6419
+ * // Create one Team
6420
+ * const Team = await prisma.team.create({
6269
6421
  * data: {
6270
- * // ... data to create a Teacher
6422
+ * // ... data to create a Team
6271
6423
  * }
6272
6424
  * })
6273
6425
  *
6274
6426
  **/
6275
- create<T extends TeacherCreateArgs>(
6276
- args: SelectSubset<T, TeacherCreateArgs>
6277
- ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
6427
+ create<T extends TeamCreateArgs>(
6428
+ args: SelectSubset<T, TeamCreateArgs>
6429
+ ): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
6278
6430
 
6279
6431
  /**
6280
- * Create many Teachers.
6281
- * @param {TeacherCreateManyArgs} args - Arguments to create many Teachers.
6432
+ * Create many Teams.
6433
+ * @param {TeamCreateManyArgs} args - Arguments to create many Teams.
6282
6434
  * @example
6283
- * // Create many Teachers
6284
- * const teacher = await prisma.teacher.createMany({
6435
+ * // Create many Teams
6436
+ * const team = await prisma.team.createMany({
6285
6437
  * data: {
6286
6438
  * // ... provide data here
6287
6439
  * }
6288
6440
  * })
6289
6441
  *
6290
6442
  **/
6291
- createMany<T extends TeacherCreateManyArgs>(
6292
- args?: SelectSubset<T, TeacherCreateManyArgs>
6443
+ createMany<T extends TeamCreateManyArgs>(
6444
+ args?: SelectSubset<T, TeamCreateManyArgs>
6293
6445
  ): PrismaPromise<BatchPayload>
6294
6446
 
6295
6447
  /**
6296
- * Delete a Teacher.
6297
- * @param {TeacherDeleteArgs} args - Arguments to delete one Teacher.
6448
+ * Delete a Team.
6449
+ * @param {TeamDeleteArgs} args - Arguments to delete one Team.
6298
6450
  * @example
6299
- * // Delete one Teacher
6300
- * const Teacher = await prisma.teacher.delete({
6451
+ * // Delete one Team
6452
+ * const Team = await prisma.team.delete({
6301
6453
  * where: {
6302
- * // ... filter to delete one Teacher
6454
+ * // ... filter to delete one Team
6303
6455
  * }
6304
6456
  * })
6305
6457
  *
6306
6458
  **/
6307
- delete<T extends TeacherDeleteArgs>(
6308
- args: SelectSubset<T, TeacherDeleteArgs>
6309
- ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
6459
+ delete<T extends TeamDeleteArgs>(
6460
+ args: SelectSubset<T, TeamDeleteArgs>
6461
+ ): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
6310
6462
 
6311
6463
  /**
6312
- * Update one Teacher.
6313
- * @param {TeacherUpdateArgs} args - Arguments to update one Teacher.
6464
+ * Update one Team.
6465
+ * @param {TeamUpdateArgs} args - Arguments to update one Team.
6314
6466
  * @example
6315
- * // Update one Teacher
6316
- * const teacher = await prisma.teacher.update({
6467
+ * // Update one Team
6468
+ * const team = await prisma.team.update({
6317
6469
  * where: {
6318
6470
  * // ... provide filter here
6319
6471
  * },
@@ -6323,34 +6475,34 @@ export namespace Prisma {
6323
6475
  * })
6324
6476
  *
6325
6477
  **/
6326
- update<T extends TeacherUpdateArgs>(
6327
- args: SelectSubset<T, TeacherUpdateArgs>
6328
- ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
6478
+ update<T extends TeamUpdateArgs>(
6479
+ args: SelectSubset<T, TeamUpdateArgs>
6480
+ ): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
6329
6481
 
6330
6482
  /**
6331
- * Delete zero or more Teachers.
6332
- * @param {TeacherDeleteManyArgs} args - Arguments to filter Teachers to delete.
6483
+ * Delete zero or more Teams.
6484
+ * @param {TeamDeleteManyArgs} args - Arguments to filter Teams to delete.
6333
6485
  * @example
6334
- * // Delete a few Teachers
6335
- * const { count } = await prisma.teacher.deleteMany({
6486
+ * // Delete a few Teams
6487
+ * const { count } = await prisma.team.deleteMany({
6336
6488
  * where: {
6337
6489
  * // ... provide filter here
6338
6490
  * }
6339
6491
  * })
6340
6492
  *
6341
6493
  **/
6342
- deleteMany<T extends TeacherDeleteManyArgs>(
6343
- args?: SelectSubset<T, TeacherDeleteManyArgs>
6494
+ deleteMany<T extends TeamDeleteManyArgs>(
6495
+ args?: SelectSubset<T, TeamDeleteManyArgs>
6344
6496
  ): PrismaPromise<BatchPayload>
6345
6497
 
6346
6498
  /**
6347
- * Update zero or more Teachers.
6499
+ * Update zero or more Teams.
6348
6500
  * Note, that providing `undefined` is treated as the value not being there.
6349
6501
  * Read more here: https://pris.ly/d/null-undefined
6350
- * @param {TeacherUpdateManyArgs} args - Arguments to update one or more rows.
6502
+ * @param {TeamUpdateManyArgs} args - Arguments to update one or more rows.
6351
6503
  * @example
6352
- * // Update many Teachers
6353
- * const teacher = await prisma.teacher.updateMany({
6504
+ * // Update many Teams
6505
+ * const team = await prisma.team.updateMany({
6354
6506
  * where: {
6355
6507
  * // ... provide filter here
6356
6508
  * },
@@ -6360,93 +6512,93 @@ export namespace Prisma {
6360
6512
  * })
6361
6513
  *
6362
6514
  **/
6363
- updateMany<T extends TeacherUpdateManyArgs>(
6364
- args: SelectSubset<T, TeacherUpdateManyArgs>
6515
+ updateMany<T extends TeamUpdateManyArgs>(
6516
+ args: SelectSubset<T, TeamUpdateManyArgs>
6365
6517
  ): PrismaPromise<BatchPayload>
6366
6518
 
6367
6519
  /**
6368
- * Create or update one Teacher.
6369
- * @param {TeacherUpsertArgs} args - Arguments to update or create a Teacher.
6520
+ * Create or update one Team.
6521
+ * @param {TeamUpsertArgs} args - Arguments to update or create a Team.
6370
6522
  * @example
6371
- * // Update or create a Teacher
6372
- * const teacher = await prisma.teacher.upsert({
6523
+ * // Update or create a Team
6524
+ * const team = await prisma.team.upsert({
6373
6525
  * create: {
6374
- * // ... data to create a Teacher
6526
+ * // ... data to create a Team
6375
6527
  * },
6376
6528
  * update: {
6377
6529
  * // ... in case it already exists, update
6378
6530
  * },
6379
6531
  * where: {
6380
- * // ... the filter for the Teacher we want to update
6532
+ * // ... the filter for the Team we want to update
6381
6533
  * }
6382
6534
  * })
6383
6535
  **/
6384
- upsert<T extends TeacherUpsertArgs>(
6385
- args: SelectSubset<T, TeacherUpsertArgs>
6386
- ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
6536
+ upsert<T extends TeamUpsertArgs>(
6537
+ args: SelectSubset<T, TeamUpsertArgs>
6538
+ ): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
6387
6539
 
6388
6540
  /**
6389
- * Find one Teacher that matches the filter or throw
6541
+ * Find one Team that matches the filter or throw
6390
6542
  * `NotFoundError` if no matches were found.
6391
- * @param {TeacherFindUniqueOrThrowArgs} args - Arguments to find a Teacher
6543
+ * @param {TeamFindUniqueOrThrowArgs} args - Arguments to find a Team
6392
6544
  * @example
6393
- * // Get one Teacher
6394
- * const teacher = await prisma.teacher.findUniqueOrThrow({
6545
+ * // Get one Team
6546
+ * const team = await prisma.team.findUniqueOrThrow({
6395
6547
  * where: {
6396
6548
  * // ... provide filter here
6397
6549
  * }
6398
6550
  * })
6399
6551
  **/
6400
- findUniqueOrThrow<T extends TeacherFindUniqueOrThrowArgs>(
6401
- args?: SelectSubset<T, TeacherFindUniqueOrThrowArgs>
6402
- ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
6552
+ findUniqueOrThrow<T extends TeamFindUniqueOrThrowArgs>(
6553
+ args?: SelectSubset<T, TeamFindUniqueOrThrowArgs>
6554
+ ): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
6403
6555
 
6404
6556
  /**
6405
- * Find the first Teacher that matches the filter or
6557
+ * Find the first Team that matches the filter or
6406
6558
  * throw `NotFoundError` if no matches were found.
6407
6559
  * Note, that providing `undefined` is treated as the value not being there.
6408
6560
  * Read more here: https://pris.ly/d/null-undefined
6409
- * @param {TeacherFindFirstOrThrowArgs} args - Arguments to find a Teacher
6561
+ * @param {TeamFindFirstOrThrowArgs} args - Arguments to find a Team
6410
6562
  * @example
6411
- * // Get one Teacher
6412
- * const teacher = await prisma.teacher.findFirstOrThrow({
6563
+ * // Get one Team
6564
+ * const team = await prisma.team.findFirstOrThrow({
6413
6565
  * where: {
6414
6566
  * // ... provide filter here
6415
6567
  * }
6416
6568
  * })
6417
6569
  **/
6418
- findFirstOrThrow<T extends TeacherFindFirstOrThrowArgs>(
6419
- args?: SelectSubset<T, TeacherFindFirstOrThrowArgs>
6420
- ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
6570
+ findFirstOrThrow<T extends TeamFindFirstOrThrowArgs>(
6571
+ args?: SelectSubset<T, TeamFindFirstOrThrowArgs>
6572
+ ): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
6421
6573
 
6422
6574
  /**
6423
- * Count the number of Teachers.
6575
+ * Count the number of Teams.
6424
6576
  * Note, that providing `undefined` is treated as the value not being there.
6425
6577
  * Read more here: https://pris.ly/d/null-undefined
6426
- * @param {TeacherCountArgs} args - Arguments to filter Teachers to count.
6578
+ * @param {TeamCountArgs} args - Arguments to filter Teams to count.
6427
6579
  * @example
6428
- * // Count the number of Teachers
6429
- * const count = await prisma.teacher.count({
6580
+ * // Count the number of Teams
6581
+ * const count = await prisma.team.count({
6430
6582
  * where: {
6431
- * // ... the filter for the Teachers we want to count
6583
+ * // ... the filter for the Teams we want to count
6432
6584
  * }
6433
6585
  * })
6434
6586
  **/
6435
- count<T extends TeacherCountArgs>(
6436
- args?: Subset<T, TeacherCountArgs>,
6587
+ count<T extends TeamCountArgs>(
6588
+ args?: Subset<T, TeamCountArgs>,
6437
6589
  ): PrismaPromise<
6438
6590
  T extends _Record<'select', any>
6439
6591
  ? T['select'] extends true
6440
6592
  ? number
6441
- : GetScalarType<T['select'], TeacherCountAggregateOutputType>
6593
+ : GetScalarType<T['select'], TeamCountAggregateOutputType>
6442
6594
  : number
6443
6595
  >
6444
6596
 
6445
6597
  /**
6446
- * Allows you to perform aggregations operations on a Teacher.
6598
+ * Allows you to perform aggregations operations on a Team.
6447
6599
  * Note, that providing `undefined` is treated as the value not being there.
6448
6600
  * Read more here: https://pris.ly/d/null-undefined
6449
- * @param {TeacherAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
6601
+ * @param {TeamAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
6450
6602
  * @example
6451
6603
  * // Ordered by age ascending
6452
6604
  * // Where email contains prisma.io
@@ -6466,13 +6618,936 @@ export namespace Prisma {
6466
6618
  * take: 10,
6467
6619
  * })
6468
6620
  **/
6469
- aggregate<T extends TeacherAggregateArgs>(args: Subset<T, TeacherAggregateArgs>): PrismaPromise<GetTeacherAggregateType<T>>
6621
+ aggregate<T extends TeamAggregateArgs>(args: Subset<T, TeamAggregateArgs>): PrismaPromise<GetTeamAggregateType<T>>
6470
6622
 
6471
6623
  /**
6472
- * Group by Teacher.
6624
+ * Group by Team.
6473
6625
  * Note, that providing `undefined` is treated as the value not being there.
6474
6626
  * Read more here: https://pris.ly/d/null-undefined
6475
- * @param {TeacherGroupByArgs} args - Group by arguments.
6627
+ * @param {TeamGroupByArgs} args - Group by arguments.
6628
+ * @example
6629
+ * // Group by city, order by createdAt, get count
6630
+ * const result = await prisma.user.groupBy({
6631
+ * by: ['city', 'createdAt'],
6632
+ * orderBy: {
6633
+ * createdAt: true
6634
+ * },
6635
+ * _count: {
6636
+ * _all: true
6637
+ * },
6638
+ * })
6639
+ *
6640
+ **/
6641
+ groupBy<
6642
+ T extends TeamGroupByArgs,
6643
+ HasSelectOrTake extends Or<
6644
+ Extends<'skip', Keys<T>>,
6645
+ Extends<'take', Keys<T>>
6646
+ >,
6647
+ OrderByArg extends True extends HasSelectOrTake
6648
+ ? { orderBy: TeamGroupByArgs['orderBy'] }
6649
+ : { orderBy?: TeamGroupByArgs['orderBy'] },
6650
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
6651
+ ByFields extends TupleToUnion<T['by']>,
6652
+ ByValid extends Has<ByFields, OrderFields>,
6653
+ HavingFields extends GetHavingFields<T['having']>,
6654
+ HavingValid extends Has<ByFields, HavingFields>,
6655
+ ByEmpty extends T['by'] extends never[] ? True : False,
6656
+ InputErrors extends ByEmpty extends True
6657
+ ? `Error: "by" must not be empty.`
6658
+ : HavingValid extends False
6659
+ ? {
6660
+ [P in HavingFields]: P extends ByFields
6661
+ ? never
6662
+ : P extends string
6663
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
6664
+ : [
6665
+ Error,
6666
+ 'Field ',
6667
+ P,
6668
+ ` in "having" needs to be provided in "by"`,
6669
+ ]
6670
+ }[HavingFields]
6671
+ : 'take' extends Keys<T>
6672
+ ? 'orderBy' extends Keys<T>
6673
+ ? ByValid extends True
6674
+ ? {}
6675
+ : {
6676
+ [P in OrderFields]: P extends ByFields
6677
+ ? never
6678
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
6679
+ }[OrderFields]
6680
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
6681
+ : 'skip' extends Keys<T>
6682
+ ? 'orderBy' extends Keys<T>
6683
+ ? ByValid extends True
6684
+ ? {}
6685
+ : {
6686
+ [P in OrderFields]: P extends ByFields
6687
+ ? never
6688
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
6689
+ }[OrderFields]
6690
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
6691
+ : ByValid extends True
6692
+ ? {}
6693
+ : {
6694
+ [P in OrderFields]: P extends ByFields
6695
+ ? never
6696
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
6697
+ }[OrderFields]
6698
+ >(args: SubsetIntersection<T, TeamGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTeamGroupByPayload<T> : PrismaPromise<InputErrors>
6699
+
6700
+ }
6701
+
6702
+ /**
6703
+ * The delegate class that acts as a "Promise-like" for Team.
6704
+ * Why is this prefixed with `Prisma__`?
6705
+ * Because we want to prevent naming conflicts as mentioned in
6706
+ * https://github.com/prisma/prisma-client-js/issues/707
6707
+ */
6708
+ export class Prisma__TeamClient<T> implements PrismaPromise<T> {
6709
+ [prisma]: true;
6710
+ private readonly _dmmf;
6711
+ private readonly _fetcher;
6712
+ private readonly _queryType;
6713
+ private readonly _rootField;
6714
+ private readonly _clientMethod;
6715
+ private readonly _args;
6716
+ private readonly _dataPath;
6717
+ private readonly _errorFormat;
6718
+ private readonly _measurePerformance?;
6719
+ private _isList;
6720
+ private _callsite;
6721
+ private _requestPromise?;
6722
+ constructor(_dmmf: runtime.DMMFClass, _fetcher: PrismaClientFetcher, _queryType: 'query' | 'mutation', _rootField: string, _clientMethod: string, _args: any, _dataPath: string[], _errorFormat: ErrorFormat, _measurePerformance?: boolean | undefined, _isList?: boolean);
6723
+ readonly [Symbol.toStringTag]: 'PrismaClientPromise';
6724
+
6725
+ additionalDecks<T extends PackFindManyArgs = {}>(args?: Subset<T, PackFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Pack>>, PrismaPromise<Array<PackGetPayload<T>>>>;
6726
+
6727
+ members<T extends UserFindManyArgs = {}>(args?: Subset<T, UserFindManyArgs>): CheckSelect<T, PrismaPromise<Array<User>>, PrismaPromise<Array<UserGetPayload<T>>>>;
6728
+
6729
+ private get _document();
6730
+ /**
6731
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
6732
+ * @param onfulfilled The callback to execute when the Promise is resolved.
6733
+ * @param onrejected The callback to execute when the Promise is rejected.
6734
+ * @returns A Promise for the completion of which ever callback is executed.
6735
+ */
6736
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
6737
+ /**
6738
+ * Attaches a callback for only the rejection of the Promise.
6739
+ * @param onrejected The callback to execute when the Promise is rejected.
6740
+ * @returns A Promise for the completion of the callback.
6741
+ */
6742
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
6743
+ /**
6744
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
6745
+ * resolved value cannot be modified from the callback.
6746
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
6747
+ * @returns A Promise for the completion of the callback.
6748
+ */
6749
+ finally(onfinally?: (() => void) | undefined | null): Promise<T>;
6750
+ }
6751
+
6752
+
6753
+
6754
+ // Custom InputTypes
6755
+
6756
+ /**
6757
+ * Team base type for findUnique actions
6758
+ */
6759
+ export type TeamFindUniqueArgsBase = {
6760
+ /**
6761
+ * Select specific fields to fetch from the Team
6762
+ *
6763
+ **/
6764
+ select?: TeamSelect | null
6765
+ /**
6766
+ * Choose, which related nodes to fetch as well.
6767
+ *
6768
+ **/
6769
+ include?: TeamInclude | null
6770
+ /**
6771
+ * Filter, which Team to fetch.
6772
+ *
6773
+ **/
6774
+ where: TeamWhereUniqueInput
6775
+ }
6776
+
6777
+ /**
6778
+ * Team: findUnique
6779
+ */
6780
+ export interface TeamFindUniqueArgs extends TeamFindUniqueArgsBase {
6781
+ /**
6782
+ * Throw an Error if query returns no results
6783
+ * @deprecated since 4.0.0: use `findUniqueOrThrow` method instead
6784
+ */
6785
+ rejectOnNotFound?: RejectOnNotFound
6786
+ }
6787
+
6788
+
6789
+ /**
6790
+ * Team base type for findFirst actions
6791
+ */
6792
+ export type TeamFindFirstArgsBase = {
6793
+ /**
6794
+ * Select specific fields to fetch from the Team
6795
+ *
6796
+ **/
6797
+ select?: TeamSelect | null
6798
+ /**
6799
+ * Choose, which related nodes to fetch as well.
6800
+ *
6801
+ **/
6802
+ include?: TeamInclude | null
6803
+ /**
6804
+ * Filter, which Team to fetch.
6805
+ *
6806
+ **/
6807
+ where?: TeamWhereInput
6808
+ /**
6809
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
6810
+ *
6811
+ * Determine the order of Teams to fetch.
6812
+ *
6813
+ **/
6814
+ orderBy?: Enumerable<TeamOrderByWithRelationInput>
6815
+ /**
6816
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
6817
+ *
6818
+ * Sets the position for searching for Teams.
6819
+ *
6820
+ **/
6821
+ cursor?: TeamWhereUniqueInput
6822
+ /**
6823
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6824
+ *
6825
+ * Take `±n` Teams from the position of the cursor.
6826
+ *
6827
+ **/
6828
+ take?: number
6829
+ /**
6830
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6831
+ *
6832
+ * Skip the first `n` Teams.
6833
+ *
6834
+ **/
6835
+ skip?: number
6836
+ /**
6837
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
6838
+ *
6839
+ * Filter by unique combinations of Teams.
6840
+ *
6841
+ **/
6842
+ distinct?: Enumerable<TeamScalarFieldEnum>
6843
+ }
6844
+
6845
+ /**
6846
+ * Team: findFirst
6847
+ */
6848
+ export interface TeamFindFirstArgs extends TeamFindFirstArgsBase {
6849
+ /**
6850
+ * Throw an Error if query returns no results
6851
+ * @deprecated since 4.0.0: use `findFirstOrThrow` method instead
6852
+ */
6853
+ rejectOnNotFound?: RejectOnNotFound
6854
+ }
6855
+
6856
+
6857
+ /**
6858
+ * Team findMany
6859
+ */
6860
+ export type TeamFindManyArgs = {
6861
+ /**
6862
+ * Select specific fields to fetch from the Team
6863
+ *
6864
+ **/
6865
+ select?: TeamSelect | null
6866
+ /**
6867
+ * Choose, which related nodes to fetch as well.
6868
+ *
6869
+ **/
6870
+ include?: TeamInclude | null
6871
+ /**
6872
+ * Filter, which Teams to fetch.
6873
+ *
6874
+ **/
6875
+ where?: TeamWhereInput
6876
+ /**
6877
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
6878
+ *
6879
+ * Determine the order of Teams to fetch.
6880
+ *
6881
+ **/
6882
+ orderBy?: Enumerable<TeamOrderByWithRelationInput>
6883
+ /**
6884
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
6885
+ *
6886
+ * Sets the position for listing Teams.
6887
+ *
6888
+ **/
6889
+ cursor?: TeamWhereUniqueInput
6890
+ /**
6891
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6892
+ *
6893
+ * Take `±n` Teams from the position of the cursor.
6894
+ *
6895
+ **/
6896
+ take?: number
6897
+ /**
6898
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6899
+ *
6900
+ * Skip the first `n` Teams.
6901
+ *
6902
+ **/
6903
+ skip?: number
6904
+ distinct?: Enumerable<TeamScalarFieldEnum>
6905
+ }
6906
+
6907
+
6908
+ /**
6909
+ * Team create
6910
+ */
6911
+ export type TeamCreateArgs = {
6912
+ /**
6913
+ * Select specific fields to fetch from the Team
6914
+ *
6915
+ **/
6916
+ select?: TeamSelect | null
6917
+ /**
6918
+ * Choose, which related nodes to fetch as well.
6919
+ *
6920
+ **/
6921
+ include?: TeamInclude | null
6922
+ /**
6923
+ * The data needed to create a Team.
6924
+ *
6925
+ **/
6926
+ data: XOR<TeamCreateInput, TeamUncheckedCreateInput>
6927
+ }
6928
+
6929
+
6930
+ /**
6931
+ * Team createMany
6932
+ */
6933
+ export type TeamCreateManyArgs = {
6934
+ /**
6935
+ * The data used to create many Teams.
6936
+ *
6937
+ **/
6938
+ data: Enumerable<TeamCreateManyInput>
6939
+ skipDuplicates?: boolean
6940
+ }
6941
+
6942
+
6943
+ /**
6944
+ * Team update
6945
+ */
6946
+ export type TeamUpdateArgs = {
6947
+ /**
6948
+ * Select specific fields to fetch from the Team
6949
+ *
6950
+ **/
6951
+ select?: TeamSelect | null
6952
+ /**
6953
+ * Choose, which related nodes to fetch as well.
6954
+ *
6955
+ **/
6956
+ include?: TeamInclude | null
6957
+ /**
6958
+ * The data needed to update a Team.
6959
+ *
6960
+ **/
6961
+ data: XOR<TeamUpdateInput, TeamUncheckedUpdateInput>
6962
+ /**
6963
+ * Choose, which Team to update.
6964
+ *
6965
+ **/
6966
+ where: TeamWhereUniqueInput
6967
+ }
6968
+
6969
+
6970
+ /**
6971
+ * Team updateMany
6972
+ */
6973
+ export type TeamUpdateManyArgs = {
6974
+ /**
6975
+ * The data used to update Teams.
6976
+ *
6977
+ **/
6978
+ data: XOR<TeamUpdateManyMutationInput, TeamUncheckedUpdateManyInput>
6979
+ /**
6980
+ * Filter which Teams to update
6981
+ *
6982
+ **/
6983
+ where?: TeamWhereInput
6984
+ }
6985
+
6986
+
6987
+ /**
6988
+ * Team upsert
6989
+ */
6990
+ export type TeamUpsertArgs = {
6991
+ /**
6992
+ * Select specific fields to fetch from the Team
6993
+ *
6994
+ **/
6995
+ select?: TeamSelect | null
6996
+ /**
6997
+ * Choose, which related nodes to fetch as well.
6998
+ *
6999
+ **/
7000
+ include?: TeamInclude | null
7001
+ /**
7002
+ * The filter to search for the Team to update in case it exists.
7003
+ *
7004
+ **/
7005
+ where: TeamWhereUniqueInput
7006
+ /**
7007
+ * In case the Team found by the `where` argument doesn't exist, create a new Team with this data.
7008
+ *
7009
+ **/
7010
+ create: XOR<TeamCreateInput, TeamUncheckedCreateInput>
7011
+ /**
7012
+ * In case the Team was found with the provided `where` argument, update it with this data.
7013
+ *
7014
+ **/
7015
+ update: XOR<TeamUpdateInput, TeamUncheckedUpdateInput>
7016
+ }
7017
+
7018
+
7019
+ /**
7020
+ * Team delete
7021
+ */
7022
+ export type TeamDeleteArgs = {
7023
+ /**
7024
+ * Select specific fields to fetch from the Team
7025
+ *
7026
+ **/
7027
+ select?: TeamSelect | null
7028
+ /**
7029
+ * Choose, which related nodes to fetch as well.
7030
+ *
7031
+ **/
7032
+ include?: TeamInclude | null
7033
+ /**
7034
+ * Filter which Team to delete.
7035
+ *
7036
+ **/
7037
+ where: TeamWhereUniqueInput
7038
+ }
7039
+
7040
+
7041
+ /**
7042
+ * Team deleteMany
7043
+ */
7044
+ export type TeamDeleteManyArgs = {
7045
+ /**
7046
+ * Filter which Teams to delete
7047
+ *
7048
+ **/
7049
+ where?: TeamWhereInput
7050
+ }
7051
+
7052
+
7053
+ /**
7054
+ * Team: findUniqueOrThrow
7055
+ */
7056
+ export type TeamFindUniqueOrThrowArgs = TeamFindUniqueArgsBase
7057
+
7058
+
7059
+ /**
7060
+ * Team: findFirstOrThrow
7061
+ */
7062
+ export type TeamFindFirstOrThrowArgs = TeamFindFirstArgsBase
7063
+
7064
+
7065
+ /**
7066
+ * Team without action
7067
+ */
7068
+ export type TeamArgs = {
7069
+ /**
7070
+ * Select specific fields to fetch from the Team
7071
+ *
7072
+ **/
7073
+ select?: TeamSelect | null
7074
+ /**
7075
+ * Choose, which related nodes to fetch as well.
7076
+ *
7077
+ **/
7078
+ include?: TeamInclude | null
7079
+ }
7080
+
7081
+
7082
+
7083
+ /**
7084
+ * Model Teacher
7085
+ */
7086
+
7087
+
7088
+ export type AggregateTeacher = {
7089
+ _count: TeacherCountAggregateOutputType | null
7090
+ _min: TeacherMinAggregateOutputType | null
7091
+ _max: TeacherMaxAggregateOutputType | null
7092
+ }
7093
+
7094
+ export type TeacherMinAggregateOutputType = {
7095
+ id: string | null
7096
+ email: string | null
7097
+ name: string | null
7098
+ password: string | null
7099
+ }
7100
+
7101
+ export type TeacherMaxAggregateOutputType = {
7102
+ id: string | null
7103
+ email: string | null
7104
+ name: string | null
7105
+ password: string | null
7106
+ }
7107
+
7108
+ export type TeacherCountAggregateOutputType = {
7109
+ id: number
7110
+ email: number
7111
+ name: number
7112
+ password: number
7113
+ _all: number
7114
+ }
7115
+
7116
+
7117
+ export type TeacherMinAggregateInputType = {
7118
+ id?: true
7119
+ email?: true
7120
+ name?: true
7121
+ password?: true
7122
+ }
7123
+
7124
+ export type TeacherMaxAggregateInputType = {
7125
+ id?: true
7126
+ email?: true
7127
+ name?: true
7128
+ password?: true
7129
+ }
7130
+
7131
+ export type TeacherCountAggregateInputType = {
7132
+ id?: true
7133
+ email?: true
7134
+ name?: true
7135
+ password?: true
7136
+ _all?: true
7137
+ }
7138
+
7139
+ export type TeacherAggregateArgs = {
7140
+ /**
7141
+ * Filter which Teacher to aggregate.
7142
+ *
7143
+ **/
7144
+ where?: TeacherWhereInput
7145
+ /**
7146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
7147
+ *
7148
+ * Determine the order of Teachers to fetch.
7149
+ *
7150
+ **/
7151
+ orderBy?: Enumerable<TeacherOrderByWithRelationInput>
7152
+ /**
7153
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
7154
+ *
7155
+ * Sets the start position
7156
+ *
7157
+ **/
7158
+ cursor?: TeacherWhereUniqueInput
7159
+ /**
7160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
7161
+ *
7162
+ * Take `±n` Teachers from the position of the cursor.
7163
+ *
7164
+ **/
7165
+ take?: number
7166
+ /**
7167
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
7168
+ *
7169
+ * Skip the first `n` Teachers.
7170
+ *
7171
+ **/
7172
+ skip?: number
7173
+ /**
7174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
7175
+ *
7176
+ * Count returned Teachers
7177
+ **/
7178
+ _count?: true | TeacherCountAggregateInputType
7179
+ /**
7180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
7181
+ *
7182
+ * Select which fields to find the minimum value
7183
+ **/
7184
+ _min?: TeacherMinAggregateInputType
7185
+ /**
7186
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
7187
+ *
7188
+ * Select which fields to find the maximum value
7189
+ **/
7190
+ _max?: TeacherMaxAggregateInputType
7191
+ }
7192
+
7193
+ export type GetTeacherAggregateType<T extends TeacherAggregateArgs> = {
7194
+ [P in keyof T & keyof AggregateTeacher]: P extends '_count' | 'count'
7195
+ ? T[P] extends true
7196
+ ? number
7197
+ : GetScalarType<T[P], AggregateTeacher[P]>
7198
+ : GetScalarType<T[P], AggregateTeacher[P]>
7199
+ }
7200
+
7201
+
7202
+
7203
+
7204
+ export type TeacherGroupByArgs = {
7205
+ where?: TeacherWhereInput
7206
+ orderBy?: Enumerable<TeacherOrderByWithAggregationInput>
7207
+ by: Array<TeacherScalarFieldEnum>
7208
+ having?: TeacherScalarWhereWithAggregatesInput
7209
+ take?: number
7210
+ skip?: number
7211
+ _count?: TeacherCountAggregateInputType | true
7212
+ _min?: TeacherMinAggregateInputType
7213
+ _max?: TeacherMaxAggregateInputType
7214
+ }
7215
+
7216
+
7217
+ export type TeacherGroupByOutputType = {
7218
+ id: string
7219
+ email: string
7220
+ name: string
7221
+ password: string
7222
+ _count: TeacherCountAggregateOutputType | null
7223
+ _min: TeacherMinAggregateOutputType | null
7224
+ _max: TeacherMaxAggregateOutputType | null
7225
+ }
7226
+
7227
+ type GetTeacherGroupByPayload<T extends TeacherGroupByArgs> = PrismaPromise<
7228
+ Array<
7229
+ PickArray<TeacherGroupByOutputType, T['by']> &
7230
+ {
7231
+ [P in ((keyof T) & (keyof TeacherGroupByOutputType))]: P extends '_count'
7232
+ ? T[P] extends boolean
7233
+ ? number
7234
+ : GetScalarType<T[P], TeacherGroupByOutputType[P]>
7235
+ : GetScalarType<T[P], TeacherGroupByOutputType[P]>
7236
+ }
7237
+ >
7238
+ >
7239
+
7240
+
7241
+ export type TeacherSelect = {
7242
+ id?: boolean
7243
+ email?: boolean
7244
+ name?: boolean
7245
+ password?: boolean
7246
+ packs?: boolean | PackFindManyArgs
7247
+ _count?: boolean | TeacherCountOutputTypeArgs
7248
+ }
7249
+
7250
+ export type TeacherInclude = {
7251
+ packs?: boolean | PackFindManyArgs
7252
+ _count?: boolean | TeacherCountOutputTypeArgs
7253
+ }
7254
+
7255
+ export type TeacherGetPayload<
7256
+ S extends boolean | null | undefined | TeacherArgs,
7257
+ U = keyof S
7258
+ > = S extends true
7259
+ ? Teacher
7260
+ : S extends undefined
7261
+ ? never
7262
+ : S extends TeacherArgs | TeacherFindManyArgs
7263
+ ?'include' extends U
7264
+ ? Teacher & {
7265
+ [P in TrueKeys<S['include']>]:
7266
+ P extends 'packs' ? Array < PackGetPayload<Exclude<S['include'], undefined | null>[P]>> :
7267
+ P extends '_count' ? TeacherCountOutputTypeGetPayload<Exclude<S['include'], undefined | null>[P]> : never
7268
+ }
7269
+ : 'select' extends U
7270
+ ? {
7271
+ [P in TrueKeys<S['select']>]:
7272
+ P extends 'packs' ? Array < PackGetPayload<Exclude<S['select'], undefined | null>[P]>> :
7273
+ P extends '_count' ? TeacherCountOutputTypeGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof Teacher ? Teacher[P] : never
7274
+ }
7275
+ : Teacher
7276
+ : Teacher
7277
+
7278
+
7279
+ type TeacherCountArgs = Merge<
7280
+ Omit<TeacherFindManyArgs, 'select' | 'include'> & {
7281
+ select?: TeacherCountAggregateInputType | true
7282
+ }
7283
+ >
7284
+
7285
+ export interface TeacherDelegate<GlobalRejectSettings extends Prisma.RejectOnNotFound | Prisma.RejectPerOperation | false | undefined> {
7286
+ /**
7287
+ * Find zero or one Teacher that matches the filter.
7288
+ * @param {TeacherFindUniqueArgs} args - Arguments to find a Teacher
7289
+ * @example
7290
+ * // Get one Teacher
7291
+ * const teacher = await prisma.teacher.findUnique({
7292
+ * where: {
7293
+ * // ... provide filter here
7294
+ * }
7295
+ * })
7296
+ **/
7297
+ findUnique<T extends TeacherFindUniqueArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
7298
+ args: SelectSubset<T, TeacherFindUniqueArgs>
7299
+ ): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findUnique', 'Teacher'> extends True ? CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>> : CheckSelect<T, Prisma__TeacherClient<Teacher | null >, Prisma__TeacherClient<TeacherGetPayload<T> | null >>
7300
+
7301
+ /**
7302
+ * Find the first Teacher that matches the filter.
7303
+ * Note, that providing `undefined` is treated as the value not being there.
7304
+ * Read more here: https://pris.ly/d/null-undefined
7305
+ * @param {TeacherFindFirstArgs} args - Arguments to find a Teacher
7306
+ * @example
7307
+ * // Get one Teacher
7308
+ * const teacher = await prisma.teacher.findFirst({
7309
+ * where: {
7310
+ * // ... provide filter here
7311
+ * }
7312
+ * })
7313
+ **/
7314
+ findFirst<T extends TeacherFindFirstArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
7315
+ args?: SelectSubset<T, TeacherFindFirstArgs>
7316
+ ): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findFirst', 'Teacher'> extends True ? CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>> : CheckSelect<T, Prisma__TeacherClient<Teacher | null >, Prisma__TeacherClient<TeacherGetPayload<T> | null >>
7317
+
7318
+ /**
7319
+ * Find zero or more Teachers that matches the filter.
7320
+ * Note, that providing `undefined` is treated as the value not being there.
7321
+ * Read more here: https://pris.ly/d/null-undefined
7322
+ * @param {TeacherFindManyArgs=} args - Arguments to filter and select certain fields only.
7323
+ * @example
7324
+ * // Get all Teachers
7325
+ * const teachers = await prisma.teacher.findMany()
7326
+ *
7327
+ * // Get first 10 Teachers
7328
+ * const teachers = await prisma.teacher.findMany({ take: 10 })
7329
+ *
7330
+ * // Only select the `id`
7331
+ * const teacherWithIdOnly = await prisma.teacher.findMany({ select: { id: true } })
7332
+ *
7333
+ **/
7334
+ findMany<T extends TeacherFindManyArgs>(
7335
+ args?: SelectSubset<T, TeacherFindManyArgs>
7336
+ ): CheckSelect<T, PrismaPromise<Array<Teacher>>, PrismaPromise<Array<TeacherGetPayload<T>>>>
7337
+
7338
+ /**
7339
+ * Create a Teacher.
7340
+ * @param {TeacherCreateArgs} args - Arguments to create a Teacher.
7341
+ * @example
7342
+ * // Create one Teacher
7343
+ * const Teacher = await prisma.teacher.create({
7344
+ * data: {
7345
+ * // ... data to create a Teacher
7346
+ * }
7347
+ * })
7348
+ *
7349
+ **/
7350
+ create<T extends TeacherCreateArgs>(
7351
+ args: SelectSubset<T, TeacherCreateArgs>
7352
+ ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
7353
+
7354
+ /**
7355
+ * Create many Teachers.
7356
+ * @param {TeacherCreateManyArgs} args - Arguments to create many Teachers.
7357
+ * @example
7358
+ * // Create many Teachers
7359
+ * const teacher = await prisma.teacher.createMany({
7360
+ * data: {
7361
+ * // ... provide data here
7362
+ * }
7363
+ * })
7364
+ *
7365
+ **/
7366
+ createMany<T extends TeacherCreateManyArgs>(
7367
+ args?: SelectSubset<T, TeacherCreateManyArgs>
7368
+ ): PrismaPromise<BatchPayload>
7369
+
7370
+ /**
7371
+ * Delete a Teacher.
7372
+ * @param {TeacherDeleteArgs} args - Arguments to delete one Teacher.
7373
+ * @example
7374
+ * // Delete one Teacher
7375
+ * const Teacher = await prisma.teacher.delete({
7376
+ * where: {
7377
+ * // ... filter to delete one Teacher
7378
+ * }
7379
+ * })
7380
+ *
7381
+ **/
7382
+ delete<T extends TeacherDeleteArgs>(
7383
+ args: SelectSubset<T, TeacherDeleteArgs>
7384
+ ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
7385
+
7386
+ /**
7387
+ * Update one Teacher.
7388
+ * @param {TeacherUpdateArgs} args - Arguments to update one Teacher.
7389
+ * @example
7390
+ * // Update one Teacher
7391
+ * const teacher = await prisma.teacher.update({
7392
+ * where: {
7393
+ * // ... provide filter here
7394
+ * },
7395
+ * data: {
7396
+ * // ... provide data here
7397
+ * }
7398
+ * })
7399
+ *
7400
+ **/
7401
+ update<T extends TeacherUpdateArgs>(
7402
+ args: SelectSubset<T, TeacherUpdateArgs>
7403
+ ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
7404
+
7405
+ /**
7406
+ * Delete zero or more Teachers.
7407
+ * @param {TeacherDeleteManyArgs} args - Arguments to filter Teachers to delete.
7408
+ * @example
7409
+ * // Delete a few Teachers
7410
+ * const { count } = await prisma.teacher.deleteMany({
7411
+ * where: {
7412
+ * // ... provide filter here
7413
+ * }
7414
+ * })
7415
+ *
7416
+ **/
7417
+ deleteMany<T extends TeacherDeleteManyArgs>(
7418
+ args?: SelectSubset<T, TeacherDeleteManyArgs>
7419
+ ): PrismaPromise<BatchPayload>
7420
+
7421
+ /**
7422
+ * Update zero or more Teachers.
7423
+ * Note, that providing `undefined` is treated as the value not being there.
7424
+ * Read more here: https://pris.ly/d/null-undefined
7425
+ * @param {TeacherUpdateManyArgs} args - Arguments to update one or more rows.
7426
+ * @example
7427
+ * // Update many Teachers
7428
+ * const teacher = await prisma.teacher.updateMany({
7429
+ * where: {
7430
+ * // ... provide filter here
7431
+ * },
7432
+ * data: {
7433
+ * // ... provide data here
7434
+ * }
7435
+ * })
7436
+ *
7437
+ **/
7438
+ updateMany<T extends TeacherUpdateManyArgs>(
7439
+ args: SelectSubset<T, TeacherUpdateManyArgs>
7440
+ ): PrismaPromise<BatchPayload>
7441
+
7442
+ /**
7443
+ * Create or update one Teacher.
7444
+ * @param {TeacherUpsertArgs} args - Arguments to update or create a Teacher.
7445
+ * @example
7446
+ * // Update or create a Teacher
7447
+ * const teacher = await prisma.teacher.upsert({
7448
+ * create: {
7449
+ * // ... data to create a Teacher
7450
+ * },
7451
+ * update: {
7452
+ * // ... in case it already exists, update
7453
+ * },
7454
+ * where: {
7455
+ * // ... the filter for the Teacher we want to update
7456
+ * }
7457
+ * })
7458
+ **/
7459
+ upsert<T extends TeacherUpsertArgs>(
7460
+ args: SelectSubset<T, TeacherUpsertArgs>
7461
+ ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
7462
+
7463
+ /**
7464
+ * Find one Teacher that matches the filter or throw
7465
+ * `NotFoundError` if no matches were found.
7466
+ * @param {TeacherFindUniqueOrThrowArgs} args - Arguments to find a Teacher
7467
+ * @example
7468
+ * // Get one Teacher
7469
+ * const teacher = await prisma.teacher.findUniqueOrThrow({
7470
+ * where: {
7471
+ * // ... provide filter here
7472
+ * }
7473
+ * })
7474
+ **/
7475
+ findUniqueOrThrow<T extends TeacherFindUniqueOrThrowArgs>(
7476
+ args?: SelectSubset<T, TeacherFindUniqueOrThrowArgs>
7477
+ ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
7478
+
7479
+ /**
7480
+ * Find the first Teacher that matches the filter or
7481
+ * throw `NotFoundError` if no matches were found.
7482
+ * Note, that providing `undefined` is treated as the value not being there.
7483
+ * Read more here: https://pris.ly/d/null-undefined
7484
+ * @param {TeacherFindFirstOrThrowArgs} args - Arguments to find a Teacher
7485
+ * @example
7486
+ * // Get one Teacher
7487
+ * const teacher = await prisma.teacher.findFirstOrThrow({
7488
+ * where: {
7489
+ * // ... provide filter here
7490
+ * }
7491
+ * })
7492
+ **/
7493
+ findFirstOrThrow<T extends TeacherFindFirstOrThrowArgs>(
7494
+ args?: SelectSubset<T, TeacherFindFirstOrThrowArgs>
7495
+ ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
7496
+
7497
+ /**
7498
+ * Count the number of Teachers.
7499
+ * Note, that providing `undefined` is treated as the value not being there.
7500
+ * Read more here: https://pris.ly/d/null-undefined
7501
+ * @param {TeacherCountArgs} args - Arguments to filter Teachers to count.
7502
+ * @example
7503
+ * // Count the number of Teachers
7504
+ * const count = await prisma.teacher.count({
7505
+ * where: {
7506
+ * // ... the filter for the Teachers we want to count
7507
+ * }
7508
+ * })
7509
+ **/
7510
+ count<T extends TeacherCountArgs>(
7511
+ args?: Subset<T, TeacherCountArgs>,
7512
+ ): PrismaPromise<
7513
+ T extends _Record<'select', any>
7514
+ ? T['select'] extends true
7515
+ ? number
7516
+ : GetScalarType<T['select'], TeacherCountAggregateOutputType>
7517
+ : number
7518
+ >
7519
+
7520
+ /**
7521
+ * Allows you to perform aggregations operations on a Teacher.
7522
+ * Note, that providing `undefined` is treated as the value not being there.
7523
+ * Read more here: https://pris.ly/d/null-undefined
7524
+ * @param {TeacherAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
7525
+ * @example
7526
+ * // Ordered by age ascending
7527
+ * // Where email contains prisma.io
7528
+ * // Limited to the 10 users
7529
+ * const aggregations = await prisma.user.aggregate({
7530
+ * _avg: {
7531
+ * age: true,
7532
+ * },
7533
+ * where: {
7534
+ * email: {
7535
+ * contains: "prisma.io",
7536
+ * },
7537
+ * },
7538
+ * orderBy: {
7539
+ * age: "asc",
7540
+ * },
7541
+ * take: 10,
7542
+ * })
7543
+ **/
7544
+ aggregate<T extends TeacherAggregateArgs>(args: Subset<T, TeacherAggregateArgs>): PrismaPromise<GetTeacherAggregateType<T>>
7545
+
7546
+ /**
7547
+ * Group by Teacher.
7548
+ * Note, that providing `undefined` is treated as the value not being there.
7549
+ * Read more here: https://pris.ly/d/null-undefined
7550
+ * @param {TeacherGroupByArgs} args - Group by arguments.
6476
7551
  * @example
6477
7552
  * // Group by city, order by createdAt, get count
6478
7553
  * const result = await prisma.user.groupBy({
@@ -9793,7 +10868,8 @@ export namespace Prisma {
9793
10868
  longDescription: 'longDescription',
9794
10869
  categoryId: 'categoryId',
9795
10870
  published: 'published',
9796
- currentPrice: 'currentPrice'
10871
+ currentPrice: 'currentPrice',
10872
+ public: 'public'
9797
10873
  };
9798
10874
 
9799
10875
  export type PackScalarFieldEnum = (typeof PackScalarFieldEnum)[keyof typeof PackScalarFieldEnum]
@@ -9839,6 +10915,17 @@ export namespace Prisma {
9839
10915
  export type TeacherScalarFieldEnum = (typeof TeacherScalarFieldEnum)[keyof typeof TeacherScalarFieldEnum]
9840
10916
 
9841
10917
 
10918
+ export const TeamScalarFieldEnum: {
10919
+ id: 'id',
10920
+ name: 'name',
10921
+ emailPattern: 'emailPattern',
10922
+ userCount: 'userCount',
10923
+ subscriptionExpire: 'subscriptionExpire'
10924
+ };
10925
+
10926
+ export type TeamScalarFieldEnum = (typeof TeamScalarFieldEnum)[keyof typeof TeamScalarFieldEnum]
10927
+
10928
+
9842
10929
  export const TransactionIsolationLevel: {
9843
10930
  ReadUncommitted: 'ReadUncommitted',
9844
10931
  ReadCommitted: 'ReadCommitted',
@@ -9863,7 +10950,8 @@ export namespace Prisma {
9863
10950
  export const UserScalarFieldEnum: {
9864
10951
  id: 'id',
9865
10952
  email: 'email',
9866
- name: 'name'
10953
+ name: 'name',
10954
+ teamId: 'teamId'
9867
10955
  };
9868
10956
 
9869
10957
  export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
@@ -10020,10 +11108,12 @@ export namespace Prisma {
10020
11108
  category?: XOR<CategoryRelationFilter, CategoryWhereInput> | null
10021
11109
  categoryId?: StringNullableFilter | string | null
10022
11110
  published?: BoolFilter | boolean
11111
+ currentPrice?: DecimalFilter | Decimal | DecimalJsLike | number | string
11112
+ public?: BoolFilter | boolean
10023
11113
  cards?: CardListRelationFilter
10024
11114
  users?: UserListRelationFilter
10025
- purchase?: PurchaseListRelationFilter
10026
- currentPrice?: DecimalFilter | Decimal | DecimalJsLike | number | string
11115
+ purchases?: PurchaseListRelationFilter
11116
+ teams?: TeamListRelationFilter
10027
11117
  }
10028
11118
 
10029
11119
  export type PackOrderByWithRelationInput = {
@@ -10036,10 +11126,12 @@ export namespace Prisma {
10036
11126
  category?: CategoryOrderByWithRelationInput
10037
11127
  categoryId?: SortOrder
10038
11128
  published?: SortOrder
11129
+ currentPrice?: SortOrder
11130
+ public?: SortOrder
10039
11131
  cards?: CardOrderByRelationAggregateInput
10040
11132
  users?: UserOrderByRelationAggregateInput
10041
- purchase?: PurchaseOrderByRelationAggregateInput
10042
- currentPrice?: SortOrder
11133
+ purchases?: PurchaseOrderByRelationAggregateInput
11134
+ teams?: TeamOrderByRelationAggregateInput
10043
11135
  }
10044
11136
 
10045
11137
  export type PackWhereUniqueInput = {
@@ -10055,6 +11147,7 @@ export namespace Prisma {
10055
11147
  categoryId?: SortOrder
10056
11148
  published?: SortOrder
10057
11149
  currentPrice?: SortOrder
11150
+ public?: SortOrder
10058
11151
  _count?: PackCountOrderByAggregateInput
10059
11152
  _avg?: PackAvgOrderByAggregateInput
10060
11153
  _max?: PackMaxOrderByAggregateInput
@@ -10074,6 +11167,7 @@ export namespace Prisma {
10074
11167
  categoryId?: StringNullableWithAggregatesFilter | string | null
10075
11168
  published?: BoolWithAggregatesFilter | boolean
10076
11169
  currentPrice?: DecimalWithAggregatesFilter | Decimal | DecimalJsLike | number | string
11170
+ public?: BoolWithAggregatesFilter | boolean
10077
11171
  }
10078
11172
 
10079
11173
  export type UserWhereInput = {
@@ -10088,6 +11182,8 @@ export namespace Prisma {
10088
11182
  packs?: PackListRelationFilter
10089
11183
  userCards?: UserCardListRelationFilter
10090
11184
  answers?: AnswerListRelationFilter
11185
+ team?: XOR<TeamRelationFilter, TeamWhereInput> | null
11186
+ teamId?: StringFilter | string
10091
11187
  }
10092
11188
 
10093
11189
  export type UserOrderByWithRelationInput = {
@@ -10099,6 +11195,8 @@ export namespace Prisma {
10099
11195
  packs?: PackOrderByRelationAggregateInput
10100
11196
  userCards?: UserCardOrderByRelationAggregateInput
10101
11197
  answers?: AnswerOrderByRelationAggregateInput
11198
+ team?: TeamOrderByWithRelationInput
11199
+ teamId?: SortOrder
10102
11200
  }
10103
11201
 
10104
11202
  export type UserWhereUniqueInput = {
@@ -10110,6 +11208,7 @@ export namespace Prisma {
10110
11208
  id?: SortOrder
10111
11209
  email?: SortOrder
10112
11210
  name?: SortOrder
11211
+ teamId?: SortOrder
10113
11212
  _count?: UserCountOrderByAggregateInput
10114
11213
  _max?: UserMaxOrderByAggregateInput
10115
11214
  _min?: UserMinOrderByAggregateInput
@@ -10122,6 +11221,58 @@ export namespace Prisma {
10122
11221
  id?: StringWithAggregatesFilter | string
10123
11222
  email?: StringWithAggregatesFilter | string
10124
11223
  name?: StringWithAggregatesFilter | string
11224
+ teamId?: StringWithAggregatesFilter | string
11225
+ }
11226
+
11227
+ export type TeamWhereInput = {
11228
+ AND?: Enumerable<TeamWhereInput>
11229
+ OR?: Enumerable<TeamWhereInput>
11230
+ NOT?: Enumerable<TeamWhereInput>
11231
+ id?: StringFilter | string
11232
+ name?: StringFilter | string
11233
+ emailPattern?: StringFilter | string
11234
+ additionalDecks?: PackListRelationFilter
11235
+ members?: UserListRelationFilter
11236
+ userCount?: IntFilter | number
11237
+ subscriptionExpire?: DateTimeNullableFilter | Date | string | null
11238
+ }
11239
+
11240
+ export type TeamOrderByWithRelationInput = {
11241
+ id?: SortOrder
11242
+ name?: SortOrder
11243
+ emailPattern?: SortOrder
11244
+ additionalDecks?: PackOrderByRelationAggregateInput
11245
+ members?: UserOrderByRelationAggregateInput
11246
+ userCount?: SortOrder
11247
+ subscriptionExpire?: SortOrder
11248
+ }
11249
+
11250
+ export type TeamWhereUniqueInput = {
11251
+ id?: string
11252
+ }
11253
+
11254
+ export type TeamOrderByWithAggregationInput = {
11255
+ id?: SortOrder
11256
+ name?: SortOrder
11257
+ emailPattern?: SortOrder
11258
+ userCount?: SortOrder
11259
+ subscriptionExpire?: SortOrder
11260
+ _count?: TeamCountOrderByAggregateInput
11261
+ _avg?: TeamAvgOrderByAggregateInput
11262
+ _max?: TeamMaxOrderByAggregateInput
11263
+ _min?: TeamMinOrderByAggregateInput
11264
+ _sum?: TeamSumOrderByAggregateInput
11265
+ }
11266
+
11267
+ export type TeamScalarWhereWithAggregatesInput = {
11268
+ AND?: Enumerable<TeamScalarWhereWithAggregatesInput>
11269
+ OR?: Enumerable<TeamScalarWhereWithAggregatesInput>
11270
+ NOT?: Enumerable<TeamScalarWhereWithAggregatesInput>
11271
+ id?: StringWithAggregatesFilter | string
11272
+ name?: StringWithAggregatesFilter | string
11273
+ emailPattern?: StringWithAggregatesFilter | string
11274
+ userCount?: IntWithAggregatesFilter | number
11275
+ subscriptionExpire?: DateTimeNullableWithAggregatesFilter | Date | string | null
10125
11276
  }
10126
11277
 
10127
11278
  export type TeacherWhereInput = {
@@ -10467,10 +11618,12 @@ export namespace Prisma {
10467
11618
  longDescription?: string
10468
11619
  category?: CategoryCreateNestedOneWithoutPacksInput
10469
11620
  published?: boolean
11621
+ currentPrice: Decimal | DecimalJsLike | number | string
11622
+ public?: boolean
10470
11623
  cards?: CardCreateNestedManyWithoutPackInput
10471
11624
  users?: UserCreateNestedManyWithoutPacksInput
10472
- purchase?: PurchaseCreateNestedManyWithoutPackInput
10473
- currentPrice: Decimal | DecimalJsLike | number | string
11625
+ purchases?: PurchaseCreateNestedManyWithoutPackInput
11626
+ teams?: TeamCreateNestedManyWithoutAdditionalDecksInput
10474
11627
  }
10475
11628
 
10476
11629
  export type PackUncheckedCreateInput = {
@@ -10481,10 +11634,12 @@ export namespace Prisma {
10481
11634
  longDescription?: string
10482
11635
  categoryId?: string | null
10483
11636
  published?: boolean
11637
+ currentPrice: Decimal | DecimalJsLike | number | string
11638
+ public?: boolean
10484
11639
  cards?: CardUncheckedCreateNestedManyWithoutPackInput
10485
11640
  users?: UserUncheckedCreateNestedManyWithoutPacksInput
10486
- purchase?: PurchaseUncheckedCreateNestedManyWithoutPackInput
10487
- currentPrice: Decimal | DecimalJsLike | number | string
11641
+ purchases?: PurchaseUncheckedCreateNestedManyWithoutPackInput
11642
+ teams?: TeamUncheckedCreateNestedManyWithoutAdditionalDecksInput
10488
11643
  }
10489
11644
 
10490
11645
  export type PackUpdateInput = {
@@ -10495,10 +11650,12 @@ export namespace Prisma {
10495
11650
  longDescription?: StringFieldUpdateOperationsInput | string
10496
11651
  category?: CategoryUpdateOneWithoutPacksNestedInput
10497
11652
  published?: BoolFieldUpdateOperationsInput | boolean
11653
+ currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
11654
+ public?: BoolFieldUpdateOperationsInput | boolean
10498
11655
  cards?: CardUpdateManyWithoutPackNestedInput
10499
11656
  users?: UserUpdateManyWithoutPacksNestedInput
10500
- purchase?: PurchaseUpdateManyWithoutPackNestedInput
10501
- currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
11657
+ purchases?: PurchaseUpdateManyWithoutPackNestedInput
11658
+ teams?: TeamUpdateManyWithoutAdditionalDecksNestedInput
10502
11659
  }
10503
11660
 
10504
11661
  export type PackUncheckedUpdateInput = {
@@ -10509,10 +11666,12 @@ export namespace Prisma {
10509
11666
  longDescription?: StringFieldUpdateOperationsInput | string
10510
11667
  categoryId?: NullableStringFieldUpdateOperationsInput | string | null
10511
11668
  published?: BoolFieldUpdateOperationsInput | boolean
11669
+ currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
11670
+ public?: BoolFieldUpdateOperationsInput | boolean
10512
11671
  cards?: CardUncheckedUpdateManyWithoutPackNestedInput
10513
11672
  users?: UserUncheckedUpdateManyWithoutPacksNestedInput
10514
- purchase?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
10515
- currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
11673
+ purchases?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
11674
+ teams?: TeamUncheckedUpdateManyWithoutAdditionalDecksNestedInput
10516
11675
  }
10517
11676
 
10518
11677
  export type PackCreateManyInput = {
@@ -10524,6 +11683,7 @@ export namespace Prisma {
10524
11683
  categoryId?: string | null
10525
11684
  published?: boolean
10526
11685
  currentPrice: Decimal | DecimalJsLike | number | string
11686
+ public?: boolean
10527
11687
  }
10528
11688
 
10529
11689
  export type PackUpdateManyMutationInput = {
@@ -10533,6 +11693,7 @@ export namespace Prisma {
10533
11693
  longDescription?: StringFieldUpdateOperationsInput | string
10534
11694
  published?: BoolFieldUpdateOperationsInput | boolean
10535
11695
  currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
11696
+ public?: BoolFieldUpdateOperationsInput | boolean
10536
11697
  }
10537
11698
 
10538
11699
  export type PackUncheckedUpdateManyInput = {
@@ -10544,6 +11705,7 @@ export namespace Prisma {
10544
11705
  categoryId?: NullableStringFieldUpdateOperationsInput | string | null
10545
11706
  published?: BoolFieldUpdateOperationsInput | boolean
10546
11707
  currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
11708
+ public?: BoolFieldUpdateOperationsInput | boolean
10547
11709
  }
10548
11710
 
10549
11711
  export type UserCreateInput = {
@@ -10555,6 +11717,7 @@ export namespace Prisma {
10555
11717
  packs?: PackCreateNestedManyWithoutUsersInput
10556
11718
  userCards?: UserCardCreateNestedManyWithoutUserInput
10557
11719
  answers?: AnswerCreateNestedManyWithoutUserInput
11720
+ team?: TeamCreateNestedOneWithoutMembersInput
10558
11721
  }
10559
11722
 
10560
11723
  export type UserUncheckedCreateInput = {
@@ -10566,6 +11729,7 @@ export namespace Prisma {
10566
11729
  packs?: PackUncheckedCreateNestedManyWithoutUsersInput
10567
11730
  userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
10568
11731
  answers?: AnswerUncheckedCreateNestedManyWithoutUserInput
11732
+ teamId: string
10569
11733
  }
10570
11734
 
10571
11735
  export type UserUpdateInput = {
@@ -10577,6 +11741,7 @@ export namespace Prisma {
10577
11741
  packs?: PackUpdateManyWithoutUsersNestedInput
10578
11742
  userCards?: UserCardUpdateManyWithoutUserNestedInput
10579
11743
  answers?: AnswerUpdateManyWithoutUserNestedInput
11744
+ team?: TeamUpdateOneWithoutMembersNestedInput
10580
11745
  }
10581
11746
 
10582
11747
  export type UserUncheckedUpdateInput = {
@@ -10588,12 +11753,14 @@ export namespace Prisma {
10588
11753
  packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
10589
11754
  userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
10590
11755
  answers?: AnswerUncheckedUpdateManyWithoutUserNestedInput
11756
+ teamId?: StringFieldUpdateOperationsInput | string
10591
11757
  }
10592
11758
 
10593
11759
  export type UserCreateManyInput = {
10594
11760
  id?: string
10595
11761
  email: string
10596
11762
  name: string
11763
+ teamId: string
10597
11764
  }
10598
11765
 
10599
11766
  export type UserUpdateManyMutationInput = {
@@ -10606,6 +11773,71 @@ export namespace Prisma {
10606
11773
  id?: StringFieldUpdateOperationsInput | string
10607
11774
  email?: StringFieldUpdateOperationsInput | string
10608
11775
  name?: StringFieldUpdateOperationsInput | string
11776
+ teamId?: StringFieldUpdateOperationsInput | string
11777
+ }
11778
+
11779
+ export type TeamCreateInput = {
11780
+ id?: string
11781
+ name: string
11782
+ emailPattern?: string
11783
+ additionalDecks?: PackCreateNestedManyWithoutTeamsInput
11784
+ members?: UserCreateNestedManyWithoutTeamInput
11785
+ userCount: number
11786
+ subscriptionExpire?: Date | string | null
11787
+ }
11788
+
11789
+ export type TeamUncheckedCreateInput = {
11790
+ id?: string
11791
+ name: string
11792
+ emailPattern?: string
11793
+ additionalDecks?: PackUncheckedCreateNestedManyWithoutTeamsInput
11794
+ members?: UserUncheckedCreateNestedManyWithoutTeamInput
11795
+ userCount: number
11796
+ subscriptionExpire?: Date | string | null
11797
+ }
11798
+
11799
+ export type TeamUpdateInput = {
11800
+ id?: StringFieldUpdateOperationsInput | string
11801
+ name?: StringFieldUpdateOperationsInput | string
11802
+ emailPattern?: StringFieldUpdateOperationsInput | string
11803
+ additionalDecks?: PackUpdateManyWithoutTeamsNestedInput
11804
+ members?: UserUpdateManyWithoutTeamNestedInput
11805
+ userCount?: IntFieldUpdateOperationsInput | number
11806
+ subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
11807
+ }
11808
+
11809
+ export type TeamUncheckedUpdateInput = {
11810
+ id?: StringFieldUpdateOperationsInput | string
11811
+ name?: StringFieldUpdateOperationsInput | string
11812
+ emailPattern?: StringFieldUpdateOperationsInput | string
11813
+ additionalDecks?: PackUncheckedUpdateManyWithoutTeamsNestedInput
11814
+ members?: UserUncheckedUpdateManyWithoutTeamNestedInput
11815
+ userCount?: IntFieldUpdateOperationsInput | number
11816
+ subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
11817
+ }
11818
+
11819
+ export type TeamCreateManyInput = {
11820
+ id?: string
11821
+ name: string
11822
+ emailPattern?: string
11823
+ userCount: number
11824
+ subscriptionExpire?: Date | string | null
11825
+ }
11826
+
11827
+ export type TeamUpdateManyMutationInput = {
11828
+ id?: StringFieldUpdateOperationsInput | string
11829
+ name?: StringFieldUpdateOperationsInput | string
11830
+ emailPattern?: StringFieldUpdateOperationsInput | string
11831
+ userCount?: IntFieldUpdateOperationsInput | number
11832
+ subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
11833
+ }
11834
+
11835
+ export type TeamUncheckedUpdateManyInput = {
11836
+ id?: StringFieldUpdateOperationsInput | string
11837
+ name?: StringFieldUpdateOperationsInput | string
11838
+ emailPattern?: StringFieldUpdateOperationsInput | string
11839
+ userCount?: IntFieldUpdateOperationsInput | number
11840
+ subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
10609
11841
  }
10610
11842
 
10611
11843
  export type TeacherCreateInput = {
@@ -10753,7 +11985,7 @@ export namespace Prisma {
10753
11985
  export type PurchaseCreateInput = {
10754
11986
  id?: string
10755
11987
  user: UserCreateNestedOneWithoutPurchasesInput
10756
- pack: PackCreateNestedOneWithoutPurchaseInput
11988
+ pack: PackCreateNestedOneWithoutPurchasesInput
10757
11989
  currency: string
10758
11990
  amount: Decimal | DecimalJsLike | number | string
10759
11991
  orderDate: Date | string
@@ -10775,7 +12007,7 @@ export namespace Prisma {
10775
12007
  export type PurchaseUpdateInput = {
10776
12008
  id?: StringFieldUpdateOperationsInput | string
10777
12009
  user?: UserUpdateOneRequiredWithoutPurchasesNestedInput
10778
- pack?: PackUpdateOneRequiredWithoutPurchaseNestedInput
12010
+ pack?: PackUpdateOneRequiredWithoutPurchasesNestedInput
10779
12011
  currency?: StringFieldUpdateOperationsInput | string
10780
12012
  amount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
10781
12013
  orderDate?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -11066,6 +12298,17 @@ export namespace Prisma {
11066
12298
  not?: NestedStringNullableFilter | string | null
11067
12299
  }
11068
12300
 
12301
+ export type DecimalFilter = {
12302
+ equals?: Decimal | DecimalJsLike | number | string
12303
+ in?: Enumerable<Decimal> | Enumerable<DecimalJsLike> | Enumerable<number> | Enumerable<string>
12304
+ notIn?: Enumerable<Decimal> | Enumerable<DecimalJsLike> | Enumerable<number> | Enumerable<string>
12305
+ lt?: Decimal | DecimalJsLike | number | string
12306
+ lte?: Decimal | DecimalJsLike | number | string
12307
+ gt?: Decimal | DecimalJsLike | number | string
12308
+ gte?: Decimal | DecimalJsLike | number | string
12309
+ not?: NestedDecimalFilter | Decimal | DecimalJsLike | number | string
12310
+ }
12311
+
11069
12312
  export type CardListRelationFilter = {
11070
12313
  every?: CardWhereInput
11071
12314
  some?: CardWhereInput
@@ -11084,15 +12327,10 @@ export namespace Prisma {
11084
12327
  none?: PurchaseWhereInput
11085
12328
  }
11086
12329
 
11087
- export type DecimalFilter = {
11088
- equals?: Decimal | DecimalJsLike | number | string
11089
- in?: Enumerable<Decimal> | Enumerable<DecimalJsLike> | Enumerable<number> | Enumerable<string>
11090
- notIn?: Enumerable<Decimal> | Enumerable<DecimalJsLike> | Enumerable<number> | Enumerable<string>
11091
- lt?: Decimal | DecimalJsLike | number | string
11092
- lte?: Decimal | DecimalJsLike | number | string
11093
- gt?: Decimal | DecimalJsLike | number | string
11094
- gte?: Decimal | DecimalJsLike | number | string
11095
- not?: NestedDecimalFilter | Decimal | DecimalJsLike | number | string
12330
+ export type TeamListRelationFilter = {
12331
+ every?: TeamWhereInput
12332
+ some?: TeamWhereInput
12333
+ none?: TeamWhereInput
11096
12334
  }
11097
12335
 
11098
12336
  export type CardOrderByRelationAggregateInput = {
@@ -11107,6 +12345,10 @@ export namespace Prisma {
11107
12345
  _count?: SortOrder
11108
12346
  }
11109
12347
 
12348
+ export type TeamOrderByRelationAggregateInput = {
12349
+ _count?: SortOrder
12350
+ }
12351
+
11110
12352
  export type PackCountOrderByAggregateInput = {
11111
12353
  id?: SortOrder
11112
12354
  teacherId?: SortOrder
@@ -11116,6 +12358,7 @@ export namespace Prisma {
11116
12358
  categoryId?: SortOrder
11117
12359
  published?: SortOrder
11118
12360
  currentPrice?: SortOrder
12361
+ public?: SortOrder
11119
12362
  }
11120
12363
 
11121
12364
  export type PackAvgOrderByAggregateInput = {
@@ -11131,6 +12374,7 @@ export namespace Prisma {
11131
12374
  categoryId?: SortOrder
11132
12375
  published?: SortOrder
11133
12376
  currentPrice?: SortOrder
12377
+ public?: SortOrder
11134
12378
  }
11135
12379
 
11136
12380
  export type PackMinOrderByAggregateInput = {
@@ -11142,6 +12386,7 @@ export namespace Prisma {
11142
12386
  categoryId?: SortOrder
11143
12387
  published?: SortOrder
11144
12388
  currentPrice?: SortOrder
12389
+ public?: SortOrder
11145
12390
  }
11146
12391
 
11147
12392
  export type PackSumOrderByAggregateInput = {
@@ -11193,6 +12438,11 @@ export namespace Prisma {
11193
12438
  none?: AnswerWhereInput
11194
12439
  }
11195
12440
 
12441
+ export type TeamRelationFilter = {
12442
+ is?: TeamWhereInput | null
12443
+ isNot?: TeamWhereInput | null
12444
+ }
12445
+
11196
12446
  export type AnswerOrderByRelationAggregateInput = {
11197
12447
  _count?: SortOrder
11198
12448
  }
@@ -11201,18 +12451,80 @@ export namespace Prisma {
11201
12451
  id?: SortOrder
11202
12452
  email?: SortOrder
11203
12453
  name?: SortOrder
12454
+ teamId?: SortOrder
11204
12455
  }
11205
12456
 
11206
12457
  export type UserMaxOrderByAggregateInput = {
11207
12458
  id?: SortOrder
11208
12459
  email?: SortOrder
11209
12460
  name?: SortOrder
12461
+ teamId?: SortOrder
11210
12462
  }
11211
12463
 
11212
12464
  export type UserMinOrderByAggregateInput = {
11213
12465
  id?: SortOrder
11214
12466
  email?: SortOrder
11215
12467
  name?: SortOrder
12468
+ teamId?: SortOrder
12469
+ }
12470
+
12471
+ export type IntFilter = {
12472
+ equals?: number
12473
+ in?: Enumerable<number>
12474
+ notIn?: Enumerable<number>
12475
+ lt?: number
12476
+ lte?: number
12477
+ gt?: number
12478
+ gte?: number
12479
+ not?: NestedIntFilter | number
12480
+ }
12481
+
12482
+ export type TeamCountOrderByAggregateInput = {
12483
+ id?: SortOrder
12484
+ name?: SortOrder
12485
+ emailPattern?: SortOrder
12486
+ userCount?: SortOrder
12487
+ subscriptionExpire?: SortOrder
12488
+ }
12489
+
12490
+ export type TeamAvgOrderByAggregateInput = {
12491
+ userCount?: SortOrder
12492
+ }
12493
+
12494
+ export type TeamMaxOrderByAggregateInput = {
12495
+ id?: SortOrder
12496
+ name?: SortOrder
12497
+ emailPattern?: SortOrder
12498
+ userCount?: SortOrder
12499
+ subscriptionExpire?: SortOrder
12500
+ }
12501
+
12502
+ export type TeamMinOrderByAggregateInput = {
12503
+ id?: SortOrder
12504
+ name?: SortOrder
12505
+ emailPattern?: SortOrder
12506
+ userCount?: SortOrder
12507
+ subscriptionExpire?: SortOrder
12508
+ }
12509
+
12510
+ export type TeamSumOrderByAggregateInput = {
12511
+ userCount?: SortOrder
12512
+ }
12513
+
12514
+ export type IntWithAggregatesFilter = {
12515
+ equals?: number
12516
+ in?: Enumerable<number>
12517
+ notIn?: Enumerable<number>
12518
+ lt?: number
12519
+ lte?: number
12520
+ gt?: number
12521
+ gte?: number
12522
+ not?: NestedIntWithAggregatesFilter | number
12523
+ _count?: NestedIntFilter
12524
+ _avg?: NestedFloatFilter
12525
+ _sum?: NestedIntFilter
12526
+ _min?: NestedIntFilter
12527
+ _max?: NestedIntFilter
11216
12528
  }
11217
12529
 
11218
12530
  export type TeacherCountOrderByAggregateInput = {
@@ -11536,6 +12848,12 @@ export namespace Prisma {
11536
12848
  connect?: Enumerable<PurchaseWhereUniqueInput>
11537
12849
  }
11538
12850
 
12851
+ export type TeamCreateNestedManyWithoutAdditionalDecksInput = {
12852
+ create?: XOR<Enumerable<TeamCreateWithoutAdditionalDecksInput>, Enumerable<TeamUncheckedCreateWithoutAdditionalDecksInput>>
12853
+ connectOrCreate?: Enumerable<TeamCreateOrConnectWithoutAdditionalDecksInput>
12854
+ connect?: Enumerable<TeamWhereUniqueInput>
12855
+ }
12856
+
11539
12857
  export type CardUncheckedCreateNestedManyWithoutPackInput = {
11540
12858
  create?: XOR<Enumerable<CardCreateWithoutPackInput>, Enumerable<CardUncheckedCreateWithoutPackInput>>
11541
12859
  connectOrCreate?: Enumerable<CardCreateOrConnectWithoutPackInput>
@@ -11556,6 +12874,12 @@ export namespace Prisma {
11556
12874
  connect?: Enumerable<PurchaseWhereUniqueInput>
11557
12875
  }
11558
12876
 
12877
+ export type TeamUncheckedCreateNestedManyWithoutAdditionalDecksInput = {
12878
+ create?: XOR<Enumerable<TeamCreateWithoutAdditionalDecksInput>, Enumerable<TeamUncheckedCreateWithoutAdditionalDecksInput>>
12879
+ connectOrCreate?: Enumerable<TeamCreateOrConnectWithoutAdditionalDecksInput>
12880
+ connect?: Enumerable<TeamWhereUniqueInput>
12881
+ }
12882
+
11559
12883
  export type TeacherUpdateOneRequiredWithoutPacksNestedInput = {
11560
12884
  create?: XOR<TeacherCreateWithoutPacksInput, TeacherUncheckedCreateWithoutPacksInput>
11561
12885
  connectOrCreate?: TeacherCreateOrConnectWithoutPacksInput
@@ -11574,6 +12898,14 @@ export namespace Prisma {
11574
12898
  update?: XOR<CategoryUpdateWithoutPacksInput, CategoryUncheckedUpdateWithoutPacksInput>
11575
12899
  }
11576
12900
 
12901
+ export type DecimalFieldUpdateOperationsInput = {
12902
+ set?: Decimal | DecimalJsLike | number | string
12903
+ increment?: Decimal | DecimalJsLike | number | string
12904
+ decrement?: Decimal | DecimalJsLike | number | string
12905
+ multiply?: Decimal | DecimalJsLike | number | string
12906
+ divide?: Decimal | DecimalJsLike | number | string
12907
+ }
12908
+
11577
12909
  export type CardUpdateManyWithoutPackNestedInput = {
11578
12910
  create?: XOR<Enumerable<CardCreateWithoutPackInput>, Enumerable<CardUncheckedCreateWithoutPackInput>>
11579
12911
  connectOrCreate?: Enumerable<CardCreateOrConnectWithoutPackInput>
@@ -11615,12 +12947,17 @@ export namespace Prisma {
11615
12947
  deleteMany?: Enumerable<PurchaseScalarWhereInput>
11616
12948
  }
11617
12949
 
11618
- export type DecimalFieldUpdateOperationsInput = {
11619
- set?: Decimal | DecimalJsLike | number | string
11620
- increment?: Decimal | DecimalJsLike | number | string
11621
- decrement?: Decimal | DecimalJsLike | number | string
11622
- multiply?: Decimal | DecimalJsLike | number | string
11623
- divide?: Decimal | DecimalJsLike | number | string
12950
+ export type TeamUpdateManyWithoutAdditionalDecksNestedInput = {
12951
+ create?: XOR<Enumerable<TeamCreateWithoutAdditionalDecksInput>, Enumerable<TeamUncheckedCreateWithoutAdditionalDecksInput>>
12952
+ connectOrCreate?: Enumerable<TeamCreateOrConnectWithoutAdditionalDecksInput>
12953
+ upsert?: Enumerable<TeamUpsertWithWhereUniqueWithoutAdditionalDecksInput>
12954
+ set?: Enumerable<TeamWhereUniqueInput>
12955
+ disconnect?: Enumerable<TeamWhereUniqueInput>
12956
+ delete?: Enumerable<TeamWhereUniqueInput>
12957
+ connect?: Enumerable<TeamWhereUniqueInput>
12958
+ update?: Enumerable<TeamUpdateWithWhereUniqueWithoutAdditionalDecksInput>
12959
+ updateMany?: Enumerable<TeamUpdateManyWithWhereWithoutAdditionalDecksInput>
12960
+ deleteMany?: Enumerable<TeamScalarWhereInput>
11624
12961
  }
11625
12962
 
11626
12963
  export type NullableStringFieldUpdateOperationsInput = {
@@ -11668,6 +13005,19 @@ export namespace Prisma {
11668
13005
  deleteMany?: Enumerable<PurchaseScalarWhereInput>
11669
13006
  }
11670
13007
 
13008
+ export type TeamUncheckedUpdateManyWithoutAdditionalDecksNestedInput = {
13009
+ create?: XOR<Enumerable<TeamCreateWithoutAdditionalDecksInput>, Enumerable<TeamUncheckedCreateWithoutAdditionalDecksInput>>
13010
+ connectOrCreate?: Enumerable<TeamCreateOrConnectWithoutAdditionalDecksInput>
13011
+ upsert?: Enumerable<TeamUpsertWithWhereUniqueWithoutAdditionalDecksInput>
13012
+ set?: Enumerable<TeamWhereUniqueInput>
13013
+ disconnect?: Enumerable<TeamWhereUniqueInput>
13014
+ delete?: Enumerable<TeamWhereUniqueInput>
13015
+ connect?: Enumerable<TeamWhereUniqueInput>
13016
+ update?: Enumerable<TeamUpdateWithWhereUniqueWithoutAdditionalDecksInput>
13017
+ updateMany?: Enumerable<TeamUpdateManyWithWhereWithoutAdditionalDecksInput>
13018
+ deleteMany?: Enumerable<TeamScalarWhereInput>
13019
+ }
13020
+
11671
13021
  export type GoogleUserCreateNestedOneWithoutUserInput = {
11672
13022
  create?: XOR<GoogleUserCreateWithoutUserInput, GoogleUserUncheckedCreateWithoutUserInput>
11673
13023
  connectOrCreate?: GoogleUserCreateOrConnectWithoutUserInput
@@ -11701,6 +13051,12 @@ export namespace Prisma {
11701
13051
  connect?: Enumerable<AnswerWhereUniqueInput>
11702
13052
  }
11703
13053
 
13054
+ export type TeamCreateNestedOneWithoutMembersInput = {
13055
+ create?: XOR<TeamCreateWithoutMembersInput, TeamUncheckedCreateWithoutMembersInput>
13056
+ connectOrCreate?: TeamCreateOrConnectWithoutMembersInput
13057
+ connect?: TeamWhereUniqueInput
13058
+ }
13059
+
11704
13060
  export type GoogleUserUncheckedCreateNestedOneWithoutUserInput = {
11705
13061
  create?: XOR<GoogleUserCreateWithoutUserInput, GoogleUserUncheckedCreateWithoutUserInput>
11706
13062
  connectOrCreate?: GoogleUserCreateOrConnectWithoutUserInput
@@ -11799,6 +13155,16 @@ export namespace Prisma {
11799
13155
  deleteMany?: Enumerable<AnswerScalarWhereInput>
11800
13156
  }
11801
13157
 
13158
+ export type TeamUpdateOneWithoutMembersNestedInput = {
13159
+ create?: XOR<TeamCreateWithoutMembersInput, TeamUncheckedCreateWithoutMembersInput>
13160
+ connectOrCreate?: TeamCreateOrConnectWithoutMembersInput
13161
+ upsert?: TeamUpsertWithoutMembersInput
13162
+ disconnect?: boolean
13163
+ delete?: boolean
13164
+ connect?: TeamWhereUniqueInput
13165
+ update?: XOR<TeamUpdateWithoutMembersInput, TeamUncheckedUpdateWithoutMembersInput>
13166
+ }
13167
+
11802
13168
  export type GoogleUserUncheckedUpdateOneWithoutUserNestedInput = {
11803
13169
  create?: XOR<GoogleUserCreateWithoutUserInput, GoogleUserUncheckedCreateWithoutUserInput>
11804
13170
  connectOrCreate?: GoogleUserCreateOrConnectWithoutUserInput
@@ -11864,6 +13230,94 @@ export namespace Prisma {
11864
13230
  deleteMany?: Enumerable<AnswerScalarWhereInput>
11865
13231
  }
11866
13232
 
13233
+ export type PackCreateNestedManyWithoutTeamsInput = {
13234
+ create?: XOR<Enumerable<PackCreateWithoutTeamsInput>, Enumerable<PackUncheckedCreateWithoutTeamsInput>>
13235
+ connectOrCreate?: Enumerable<PackCreateOrConnectWithoutTeamsInput>
13236
+ connect?: Enumerable<PackWhereUniqueInput>
13237
+ }
13238
+
13239
+ export type UserCreateNestedManyWithoutTeamInput = {
13240
+ create?: XOR<Enumerable<UserCreateWithoutTeamInput>, Enumerable<UserUncheckedCreateWithoutTeamInput>>
13241
+ connectOrCreate?: Enumerable<UserCreateOrConnectWithoutTeamInput>
13242
+ createMany?: UserCreateManyTeamInputEnvelope
13243
+ connect?: Enumerable<UserWhereUniqueInput>
13244
+ }
13245
+
13246
+ export type PackUncheckedCreateNestedManyWithoutTeamsInput = {
13247
+ create?: XOR<Enumerable<PackCreateWithoutTeamsInput>, Enumerable<PackUncheckedCreateWithoutTeamsInput>>
13248
+ connectOrCreate?: Enumerable<PackCreateOrConnectWithoutTeamsInput>
13249
+ connect?: Enumerable<PackWhereUniqueInput>
13250
+ }
13251
+
13252
+ export type UserUncheckedCreateNestedManyWithoutTeamInput = {
13253
+ create?: XOR<Enumerable<UserCreateWithoutTeamInput>, Enumerable<UserUncheckedCreateWithoutTeamInput>>
13254
+ connectOrCreate?: Enumerable<UserCreateOrConnectWithoutTeamInput>
13255
+ createMany?: UserCreateManyTeamInputEnvelope
13256
+ connect?: Enumerable<UserWhereUniqueInput>
13257
+ }
13258
+
13259
+ export type PackUpdateManyWithoutTeamsNestedInput = {
13260
+ create?: XOR<Enumerable<PackCreateWithoutTeamsInput>, Enumerable<PackUncheckedCreateWithoutTeamsInput>>
13261
+ connectOrCreate?: Enumerable<PackCreateOrConnectWithoutTeamsInput>
13262
+ upsert?: Enumerable<PackUpsertWithWhereUniqueWithoutTeamsInput>
13263
+ set?: Enumerable<PackWhereUniqueInput>
13264
+ disconnect?: Enumerable<PackWhereUniqueInput>
13265
+ delete?: Enumerable<PackWhereUniqueInput>
13266
+ connect?: Enumerable<PackWhereUniqueInput>
13267
+ update?: Enumerable<PackUpdateWithWhereUniqueWithoutTeamsInput>
13268
+ updateMany?: Enumerable<PackUpdateManyWithWhereWithoutTeamsInput>
13269
+ deleteMany?: Enumerable<PackScalarWhereInput>
13270
+ }
13271
+
13272
+ export type UserUpdateManyWithoutTeamNestedInput = {
13273
+ create?: XOR<Enumerable<UserCreateWithoutTeamInput>, Enumerable<UserUncheckedCreateWithoutTeamInput>>
13274
+ connectOrCreate?: Enumerable<UserCreateOrConnectWithoutTeamInput>
13275
+ upsert?: Enumerable<UserUpsertWithWhereUniqueWithoutTeamInput>
13276
+ createMany?: UserCreateManyTeamInputEnvelope
13277
+ set?: Enumerable<UserWhereUniqueInput>
13278
+ disconnect?: Enumerable<UserWhereUniqueInput>
13279
+ delete?: Enumerable<UserWhereUniqueInput>
13280
+ connect?: Enumerable<UserWhereUniqueInput>
13281
+ update?: Enumerable<UserUpdateWithWhereUniqueWithoutTeamInput>
13282
+ updateMany?: Enumerable<UserUpdateManyWithWhereWithoutTeamInput>
13283
+ deleteMany?: Enumerable<UserScalarWhereInput>
13284
+ }
13285
+
13286
+ export type IntFieldUpdateOperationsInput = {
13287
+ set?: number
13288
+ increment?: number
13289
+ decrement?: number
13290
+ multiply?: number
13291
+ divide?: number
13292
+ }
13293
+
13294
+ export type PackUncheckedUpdateManyWithoutTeamsNestedInput = {
13295
+ create?: XOR<Enumerable<PackCreateWithoutTeamsInput>, Enumerable<PackUncheckedCreateWithoutTeamsInput>>
13296
+ connectOrCreate?: Enumerable<PackCreateOrConnectWithoutTeamsInput>
13297
+ upsert?: Enumerable<PackUpsertWithWhereUniqueWithoutTeamsInput>
13298
+ set?: Enumerable<PackWhereUniqueInput>
13299
+ disconnect?: Enumerable<PackWhereUniqueInput>
13300
+ delete?: Enumerable<PackWhereUniqueInput>
13301
+ connect?: Enumerable<PackWhereUniqueInput>
13302
+ update?: Enumerable<PackUpdateWithWhereUniqueWithoutTeamsInput>
13303
+ updateMany?: Enumerable<PackUpdateManyWithWhereWithoutTeamsInput>
13304
+ deleteMany?: Enumerable<PackScalarWhereInput>
13305
+ }
13306
+
13307
+ export type UserUncheckedUpdateManyWithoutTeamNestedInput = {
13308
+ create?: XOR<Enumerable<UserCreateWithoutTeamInput>, Enumerable<UserUncheckedCreateWithoutTeamInput>>
13309
+ connectOrCreate?: Enumerable<UserCreateOrConnectWithoutTeamInput>
13310
+ upsert?: Enumerable<UserUpsertWithWhereUniqueWithoutTeamInput>
13311
+ createMany?: UserCreateManyTeamInputEnvelope
13312
+ set?: Enumerable<UserWhereUniqueInput>
13313
+ disconnect?: Enumerable<UserWhereUniqueInput>
13314
+ delete?: Enumerable<UserWhereUniqueInput>
13315
+ connect?: Enumerable<UserWhereUniqueInput>
13316
+ update?: Enumerable<UserUpdateWithWhereUniqueWithoutTeamInput>
13317
+ updateMany?: Enumerable<UserUpdateManyWithWhereWithoutTeamInput>
13318
+ deleteMany?: Enumerable<UserScalarWhereInput>
13319
+ }
13320
+
11867
13321
  export type PackCreateNestedManyWithoutTeacherInput = {
11868
13322
  create?: XOR<Enumerable<PackCreateWithoutTeacherInput>, Enumerable<PackUncheckedCreateWithoutTeacherInput>>
11869
13323
  connectOrCreate?: Enumerable<PackCreateOrConnectWithoutTeacherInput>
@@ -11940,9 +13394,9 @@ export namespace Prisma {
11940
13394
  connect?: UserWhereUniqueInput
11941
13395
  }
11942
13396
 
11943
- export type PackCreateNestedOneWithoutPurchaseInput = {
11944
- create?: XOR<PackCreateWithoutPurchaseInput, PackUncheckedCreateWithoutPurchaseInput>
11945
- connectOrCreate?: PackCreateOrConnectWithoutPurchaseInput
13397
+ export type PackCreateNestedOneWithoutPurchasesInput = {
13398
+ create?: XOR<PackCreateWithoutPurchasesInput, PackUncheckedCreateWithoutPurchasesInput>
13399
+ connectOrCreate?: PackCreateOrConnectWithoutPurchasesInput
11946
13400
  connect?: PackWhereUniqueInput
11947
13401
  }
11948
13402
 
@@ -11954,12 +13408,12 @@ export namespace Prisma {
11954
13408
  update?: XOR<UserUpdateWithoutPurchasesInput, UserUncheckedUpdateWithoutPurchasesInput>
11955
13409
  }
11956
13410
 
11957
- export type PackUpdateOneRequiredWithoutPurchaseNestedInput = {
11958
- create?: XOR<PackCreateWithoutPurchaseInput, PackUncheckedCreateWithoutPurchaseInput>
11959
- connectOrCreate?: PackCreateOrConnectWithoutPurchaseInput
11960
- upsert?: PackUpsertWithoutPurchaseInput
13411
+ export type PackUpdateOneRequiredWithoutPurchasesNestedInput = {
13412
+ create?: XOR<PackCreateWithoutPurchasesInput, PackUncheckedCreateWithoutPurchasesInput>
13413
+ connectOrCreate?: PackCreateOrConnectWithoutPurchasesInput
13414
+ upsert?: PackUpsertWithoutPurchasesInput
11961
13415
  connect?: PackWhereUniqueInput
11962
- update?: XOR<PackUpdateWithoutPurchaseInput, PackUncheckedUpdateWithoutPurchaseInput>
13416
+ update?: XOR<PackUpdateWithoutPurchasesInput, PackUncheckedUpdateWithoutPurchasesInput>
11963
13417
  }
11964
13418
 
11965
13419
  export type DateTimeFieldUpdateOperationsInput = {
@@ -12140,10 +13594,37 @@ export namespace Prisma {
12140
13594
  gte?: Decimal | DecimalJsLike | number | string
12141
13595
  not?: NestedDecimalWithAggregatesFilter | Decimal | DecimalJsLike | number | string
12142
13596
  _count?: NestedIntFilter
12143
- _avg?: NestedDecimalFilter
12144
- _sum?: NestedDecimalFilter
12145
- _min?: NestedDecimalFilter
12146
- _max?: NestedDecimalFilter
13597
+ _avg?: NestedDecimalFilter
13598
+ _sum?: NestedDecimalFilter
13599
+ _min?: NestedDecimalFilter
13600
+ _max?: NestedDecimalFilter
13601
+ }
13602
+
13603
+ export type NestedIntWithAggregatesFilter = {
13604
+ equals?: number
13605
+ in?: Enumerable<number>
13606
+ notIn?: Enumerable<number>
13607
+ lt?: number
13608
+ lte?: number
13609
+ gt?: number
13610
+ gte?: number
13611
+ not?: NestedIntWithAggregatesFilter | number
13612
+ _count?: NestedIntFilter
13613
+ _avg?: NestedFloatFilter
13614
+ _sum?: NestedIntFilter
13615
+ _min?: NestedIntFilter
13616
+ _max?: NestedIntFilter
13617
+ }
13618
+
13619
+ export type NestedFloatFilter = {
13620
+ equals?: number
13621
+ in?: Enumerable<number>
13622
+ notIn?: Enumerable<number>
13623
+ lt?: number
13624
+ lte?: number
13625
+ gt?: number
13626
+ gte?: number
13627
+ not?: NestedFloatFilter | number
12147
13628
  }
12148
13629
 
12149
13630
  export type NestedDateTimeFilter = {
@@ -12196,9 +13677,11 @@ export namespace Prisma {
12196
13677
  longDescription?: string
12197
13678
  category?: CategoryCreateNestedOneWithoutPacksInput
12198
13679
  published?: boolean
12199
- users?: UserCreateNestedManyWithoutPacksInput
12200
- purchase?: PurchaseCreateNestedManyWithoutPackInput
12201
13680
  currentPrice: Decimal | DecimalJsLike | number | string
13681
+ public?: boolean
13682
+ users?: UserCreateNestedManyWithoutPacksInput
13683
+ purchases?: PurchaseCreateNestedManyWithoutPackInput
13684
+ teams?: TeamCreateNestedManyWithoutAdditionalDecksInput
12202
13685
  }
12203
13686
 
12204
13687
  export type PackUncheckedCreateWithoutCardsInput = {
@@ -12209,9 +13692,11 @@ export namespace Prisma {
12209
13692
  longDescription?: string
12210
13693
  categoryId?: string | null
12211
13694
  published?: boolean
12212
- users?: UserUncheckedCreateNestedManyWithoutPacksInput
12213
- purchase?: PurchaseUncheckedCreateNestedManyWithoutPackInput
12214
13695
  currentPrice: Decimal | DecimalJsLike | number | string
13696
+ public?: boolean
13697
+ users?: UserUncheckedCreateNestedManyWithoutPacksInput
13698
+ purchases?: PurchaseUncheckedCreateNestedManyWithoutPackInput
13699
+ teams?: TeamUncheckedCreateNestedManyWithoutAdditionalDecksInput
12215
13700
  }
12216
13701
 
12217
13702
  export type PackCreateOrConnectWithoutCardsInput = {
@@ -12256,9 +13741,11 @@ export namespace Prisma {
12256
13741
  longDescription?: StringFieldUpdateOperationsInput | string
12257
13742
  category?: CategoryUpdateOneWithoutPacksNestedInput
12258
13743
  published?: BoolFieldUpdateOperationsInput | boolean
12259
- users?: UserUpdateManyWithoutPacksNestedInput
12260
- purchase?: PurchaseUpdateManyWithoutPackNestedInput
12261
13744
  currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
13745
+ public?: BoolFieldUpdateOperationsInput | boolean
13746
+ users?: UserUpdateManyWithoutPacksNestedInput
13747
+ purchases?: PurchaseUpdateManyWithoutPackNestedInput
13748
+ teams?: TeamUpdateManyWithoutAdditionalDecksNestedInput
12262
13749
  }
12263
13750
 
12264
13751
  export type PackUncheckedUpdateWithoutCardsInput = {
@@ -12269,9 +13756,11 @@ export namespace Prisma {
12269
13756
  longDescription?: StringFieldUpdateOperationsInput | string
12270
13757
  categoryId?: NullableStringFieldUpdateOperationsInput | string | null
12271
13758
  published?: BoolFieldUpdateOperationsInput | boolean
12272
- users?: UserUncheckedUpdateManyWithoutPacksNestedInput
12273
- purchase?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
12274
13759
  currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
13760
+ public?: BoolFieldUpdateOperationsInput | boolean
13761
+ users?: UserUncheckedUpdateManyWithoutPacksNestedInput
13762
+ purchases?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
13763
+ teams?: TeamUncheckedUpdateManyWithoutAdditionalDecksNestedInput
12275
13764
  }
12276
13765
 
12277
13766
  export type UserCardUpsertWithWhereUniqueWithoutCardInput = {
@@ -12309,6 +13798,7 @@ export namespace Prisma {
12309
13798
  purchases?: PurchaseCreateNestedManyWithoutUserInput
12310
13799
  packs?: PackCreateNestedManyWithoutUsersInput
12311
13800
  answers?: AnswerCreateNestedManyWithoutUserInput
13801
+ team?: TeamCreateNestedOneWithoutMembersInput
12312
13802
  }
12313
13803
 
12314
13804
  export type UserUncheckedCreateWithoutUserCardsInput = {
@@ -12319,6 +13809,7 @@ export namespace Prisma {
12319
13809
  purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
12320
13810
  packs?: PackUncheckedCreateNestedManyWithoutUsersInput
12321
13811
  answers?: AnswerUncheckedCreateNestedManyWithoutUserInput
13812
+ teamId: string
12322
13813
  }
12323
13814
 
12324
13815
  export type UserCreateOrConnectWithoutUserCardsInput = {
@@ -12358,6 +13849,7 @@ export namespace Prisma {
12358
13849
  purchases?: PurchaseUpdateManyWithoutUserNestedInput
12359
13850
  packs?: PackUpdateManyWithoutUsersNestedInput
12360
13851
  answers?: AnswerUpdateManyWithoutUserNestedInput
13852
+ team?: TeamUpdateOneWithoutMembersNestedInput
12361
13853
  }
12362
13854
 
12363
13855
  export type UserUncheckedUpdateWithoutUserCardsInput = {
@@ -12368,6 +13860,7 @@ export namespace Prisma {
12368
13860
  purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
12369
13861
  packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
12370
13862
  answers?: AnswerUncheckedUpdateManyWithoutUserNestedInput
13863
+ teamId?: StringFieldUpdateOperationsInput | string
12371
13864
  }
12372
13865
 
12373
13866
  export type CardUpsertWithoutUserCardsInput = {
@@ -12396,10 +13889,12 @@ export namespace Prisma {
12396
13889
  shortDescription?: string
12397
13890
  longDescription?: string
12398
13891
  published?: boolean
13892
+ currentPrice: Decimal | DecimalJsLike | number | string
13893
+ public?: boolean
12399
13894
  cards?: CardCreateNestedManyWithoutPackInput
12400
13895
  users?: UserCreateNestedManyWithoutPacksInput
12401
- purchase?: PurchaseCreateNestedManyWithoutPackInput
12402
- currentPrice: Decimal | DecimalJsLike | number | string
13896
+ purchases?: PurchaseCreateNestedManyWithoutPackInput
13897
+ teams?: TeamCreateNestedManyWithoutAdditionalDecksInput
12403
13898
  }
12404
13899
 
12405
13900
  export type PackUncheckedCreateWithoutCategoryInput = {
@@ -12409,10 +13904,12 @@ export namespace Prisma {
12409
13904
  shortDescription?: string
12410
13905
  longDescription?: string
12411
13906
  published?: boolean
13907
+ currentPrice: Decimal | DecimalJsLike | number | string
13908
+ public?: boolean
12412
13909
  cards?: CardUncheckedCreateNestedManyWithoutPackInput
12413
13910
  users?: UserUncheckedCreateNestedManyWithoutPacksInput
12414
- purchase?: PurchaseUncheckedCreateNestedManyWithoutPackInput
12415
- currentPrice: Decimal | DecimalJsLike | number | string
13911
+ purchases?: PurchaseUncheckedCreateNestedManyWithoutPackInput
13912
+ teams?: TeamUncheckedCreateNestedManyWithoutAdditionalDecksInput
12416
13913
  }
12417
13914
 
12418
13915
  export type PackCreateOrConnectWithoutCategoryInput = {
@@ -12453,6 +13950,7 @@ export namespace Prisma {
12453
13950
  categoryId?: StringNullableFilter | string | null
12454
13951
  published?: BoolFilter | boolean
12455
13952
  currentPrice?: DecimalFilter | Decimal | DecimalJsLike | number | string
13953
+ public?: BoolFilter | boolean
12456
13954
  }
12457
13955
 
12458
13956
  export type TeacherCreateWithoutPacksInput = {
@@ -12521,6 +14019,7 @@ export namespace Prisma {
12521
14019
  purchases?: PurchaseCreateNestedManyWithoutUserInput
12522
14020
  userCards?: UserCardCreateNestedManyWithoutUserInput
12523
14021
  answers?: AnswerCreateNestedManyWithoutUserInput
14022
+ team?: TeamCreateNestedOneWithoutMembersInput
12524
14023
  }
12525
14024
 
12526
14025
  export type UserUncheckedCreateWithoutPacksInput = {
@@ -12531,6 +14030,7 @@ export namespace Prisma {
12531
14030
  purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
12532
14031
  userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
12533
14032
  answers?: AnswerUncheckedCreateNestedManyWithoutUserInput
14033
+ teamId: string
12534
14034
  }
12535
14035
 
12536
14036
  export type UserCreateOrConnectWithoutPacksInput = {
@@ -12568,6 +14068,29 @@ export namespace Prisma {
12568
14068
  skipDuplicates?: boolean
12569
14069
  }
12570
14070
 
14071
+ export type TeamCreateWithoutAdditionalDecksInput = {
14072
+ id?: string
14073
+ name: string
14074
+ emailPattern?: string
14075
+ members?: UserCreateNestedManyWithoutTeamInput
14076
+ userCount: number
14077
+ subscriptionExpire?: Date | string | null
14078
+ }
14079
+
14080
+ export type TeamUncheckedCreateWithoutAdditionalDecksInput = {
14081
+ id?: string
14082
+ name: string
14083
+ emailPattern?: string
14084
+ members?: UserUncheckedCreateNestedManyWithoutTeamInput
14085
+ userCount: number
14086
+ subscriptionExpire?: Date | string | null
14087
+ }
14088
+
14089
+ export type TeamCreateOrConnectWithoutAdditionalDecksInput = {
14090
+ where: TeamWhereUniqueInput
14091
+ create: XOR<TeamCreateWithoutAdditionalDecksInput, TeamUncheckedCreateWithoutAdditionalDecksInput>
14092
+ }
14093
+
12571
14094
  export type TeacherUpsertWithoutPacksInput = {
12572
14095
  update: XOR<TeacherUpdateWithoutPacksInput, TeacherUncheckedUpdateWithoutPacksInput>
12573
14096
  create: XOR<TeacherCreateWithoutPacksInput, TeacherUncheckedCreateWithoutPacksInput>
@@ -12651,6 +14174,7 @@ export namespace Prisma {
12651
14174
  id?: StringFilter | string
12652
14175
  email?: StringFilter | string
12653
14176
  name?: StringFilter | string
14177
+ teamId?: StringFilter | string
12654
14178
  }
12655
14179
 
12656
14180
  export type PurchaseUpsertWithWhereUniqueWithoutPackInput = {
@@ -12666,7 +14190,7 @@ export namespace Prisma {
12666
14190
 
12667
14191
  export type PurchaseUpdateManyWithWhereWithoutPackInput = {
12668
14192
  where: PurchaseScalarWhereInput
12669
- data: XOR<PurchaseUpdateManyMutationInput, PurchaseUncheckedUpdateManyWithoutPurchaseInput>
14193
+ data: XOR<PurchaseUpdateManyMutationInput, PurchaseUncheckedUpdateManyWithoutPurchasesInput>
12670
14194
  }
12671
14195
 
12672
14196
  export type PurchaseScalarWhereInput = {
@@ -12683,6 +14207,33 @@ export namespace Prisma {
12683
14207
  status?: EnumPurchaseStatusFilter | PurchaseStatus
12684
14208
  }
12685
14209
 
14210
+ export type TeamUpsertWithWhereUniqueWithoutAdditionalDecksInput = {
14211
+ where: TeamWhereUniqueInput
14212
+ update: XOR<TeamUpdateWithoutAdditionalDecksInput, TeamUncheckedUpdateWithoutAdditionalDecksInput>
14213
+ create: XOR<TeamCreateWithoutAdditionalDecksInput, TeamUncheckedCreateWithoutAdditionalDecksInput>
14214
+ }
14215
+
14216
+ export type TeamUpdateWithWhereUniqueWithoutAdditionalDecksInput = {
14217
+ where: TeamWhereUniqueInput
14218
+ data: XOR<TeamUpdateWithoutAdditionalDecksInput, TeamUncheckedUpdateWithoutAdditionalDecksInput>
14219
+ }
14220
+
14221
+ export type TeamUpdateManyWithWhereWithoutAdditionalDecksInput = {
14222
+ where: TeamScalarWhereInput
14223
+ data: XOR<TeamUpdateManyMutationInput, TeamUncheckedUpdateManyWithoutTeamsInput>
14224
+ }
14225
+
14226
+ export type TeamScalarWhereInput = {
14227
+ AND?: Enumerable<TeamScalarWhereInput>
14228
+ OR?: Enumerable<TeamScalarWhereInput>
14229
+ NOT?: Enumerable<TeamScalarWhereInput>
14230
+ id?: StringFilter | string
14231
+ name?: StringFilter | string
14232
+ emailPattern?: StringFilter | string
14233
+ userCount?: IntFilter | number
14234
+ subscriptionExpire?: DateTimeNullableFilter | Date | string | null
14235
+ }
14236
+
12686
14237
  export type GoogleUserCreateWithoutUserInput = {
12687
14238
  id: string
12688
14239
  }
@@ -12698,7 +14249,7 @@ export namespace Prisma {
12698
14249
 
12699
14250
  export type PurchaseCreateWithoutUserInput = {
12700
14251
  id?: string
12701
- pack: PackCreateNestedOneWithoutPurchaseInput
14252
+ pack: PackCreateNestedOneWithoutPurchasesInput
12702
14253
  currency: string
12703
14254
  amount: Decimal | DecimalJsLike | number | string
12704
14255
  orderDate: Date | string
@@ -12734,9 +14285,11 @@ export namespace Prisma {
12734
14285
  longDescription?: string
12735
14286
  category?: CategoryCreateNestedOneWithoutPacksInput
12736
14287
  published?: boolean
12737
- cards?: CardCreateNestedManyWithoutPackInput
12738
- purchase?: PurchaseCreateNestedManyWithoutPackInput
12739
14288
  currentPrice: Decimal | DecimalJsLike | number | string
14289
+ public?: boolean
14290
+ cards?: CardCreateNestedManyWithoutPackInput
14291
+ purchases?: PurchaseCreateNestedManyWithoutPackInput
14292
+ teams?: TeamCreateNestedManyWithoutAdditionalDecksInput
12740
14293
  }
12741
14294
 
12742
14295
  export type PackUncheckedCreateWithoutUsersInput = {
@@ -12747,9 +14300,11 @@ export namespace Prisma {
12747
14300
  longDescription?: string
12748
14301
  categoryId?: string | null
12749
14302
  published?: boolean
12750
- cards?: CardUncheckedCreateNestedManyWithoutPackInput
12751
- purchase?: PurchaseUncheckedCreateNestedManyWithoutPackInput
12752
14303
  currentPrice: Decimal | DecimalJsLike | number | string
14304
+ public?: boolean
14305
+ cards?: CardUncheckedCreateNestedManyWithoutPackInput
14306
+ purchases?: PurchaseUncheckedCreateNestedManyWithoutPackInput
14307
+ teams?: TeamUncheckedCreateNestedManyWithoutAdditionalDecksInput
12753
14308
  }
12754
14309
 
12755
14310
  export type PackCreateOrConnectWithoutUsersInput = {
@@ -12805,6 +14360,29 @@ export namespace Prisma {
12805
14360
  skipDuplicates?: boolean
12806
14361
  }
12807
14362
 
14363
+ export type TeamCreateWithoutMembersInput = {
14364
+ id?: string
14365
+ name: string
14366
+ emailPattern?: string
14367
+ additionalDecks?: PackCreateNestedManyWithoutTeamsInput
14368
+ userCount: number
14369
+ subscriptionExpire?: Date | string | null
14370
+ }
14371
+
14372
+ export type TeamUncheckedCreateWithoutMembersInput = {
14373
+ id?: string
14374
+ name: string
14375
+ emailPattern?: string
14376
+ additionalDecks?: PackUncheckedCreateNestedManyWithoutTeamsInput
14377
+ userCount: number
14378
+ subscriptionExpire?: Date | string | null
14379
+ }
14380
+
14381
+ export type TeamCreateOrConnectWithoutMembersInput = {
14382
+ where: TeamWhereUniqueInput
14383
+ create: XOR<TeamCreateWithoutMembersInput, TeamUncheckedCreateWithoutMembersInput>
14384
+ }
14385
+
12808
14386
  export type GoogleUserUpsertWithoutUserInput = {
12809
14387
  update: XOR<GoogleUserUpdateWithoutUserInput, GoogleUserUncheckedUpdateWithoutUserInput>
12810
14388
  create: XOR<GoogleUserCreateWithoutUserInput, GoogleUserUncheckedCreateWithoutUserInput>
@@ -12893,17 +14471,141 @@ export namespace Prisma {
12893
14471
  timestamp?: StringFilter | string
12894
14472
  }
12895
14473
 
12896
- export type PackCreateWithoutTeacherInput = {
14474
+ export type TeamUpsertWithoutMembersInput = {
14475
+ update: XOR<TeamUpdateWithoutMembersInput, TeamUncheckedUpdateWithoutMembersInput>
14476
+ create: XOR<TeamCreateWithoutMembersInput, TeamUncheckedCreateWithoutMembersInput>
14477
+ }
14478
+
14479
+ export type TeamUpdateWithoutMembersInput = {
14480
+ id?: StringFieldUpdateOperationsInput | string
14481
+ name?: StringFieldUpdateOperationsInput | string
14482
+ emailPattern?: StringFieldUpdateOperationsInput | string
14483
+ additionalDecks?: PackUpdateManyWithoutTeamsNestedInput
14484
+ userCount?: IntFieldUpdateOperationsInput | number
14485
+ subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
14486
+ }
14487
+
14488
+ export type TeamUncheckedUpdateWithoutMembersInput = {
14489
+ id?: StringFieldUpdateOperationsInput | string
14490
+ name?: StringFieldUpdateOperationsInput | string
14491
+ emailPattern?: StringFieldUpdateOperationsInput | string
14492
+ additionalDecks?: PackUncheckedUpdateManyWithoutTeamsNestedInput
14493
+ userCount?: IntFieldUpdateOperationsInput | number
14494
+ subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
14495
+ }
14496
+
14497
+ export type PackCreateWithoutTeamsInput = {
12897
14498
  id?: string
14499
+ teacher: TeacherCreateNestedOneWithoutPacksInput
12898
14500
  name?: string
12899
14501
  shortDescription?: string
12900
14502
  longDescription?: string
12901
14503
  category?: CategoryCreateNestedOneWithoutPacksInput
12902
14504
  published?: boolean
14505
+ currentPrice: Decimal | DecimalJsLike | number | string
14506
+ public?: boolean
12903
14507
  cards?: CardCreateNestedManyWithoutPackInput
12904
14508
  users?: UserCreateNestedManyWithoutPacksInput
12905
- purchase?: PurchaseCreateNestedManyWithoutPackInput
14509
+ purchases?: PurchaseCreateNestedManyWithoutPackInput
14510
+ }
14511
+
14512
+ export type PackUncheckedCreateWithoutTeamsInput = {
14513
+ id?: string
14514
+ teacherId: string
14515
+ name?: string
14516
+ shortDescription?: string
14517
+ longDescription?: string
14518
+ categoryId?: string | null
14519
+ published?: boolean
14520
+ currentPrice: Decimal | DecimalJsLike | number | string
14521
+ public?: boolean
14522
+ cards?: CardUncheckedCreateNestedManyWithoutPackInput
14523
+ users?: UserUncheckedCreateNestedManyWithoutPacksInput
14524
+ purchases?: PurchaseUncheckedCreateNestedManyWithoutPackInput
14525
+ }
14526
+
14527
+ export type PackCreateOrConnectWithoutTeamsInput = {
14528
+ where: PackWhereUniqueInput
14529
+ create: XOR<PackCreateWithoutTeamsInput, PackUncheckedCreateWithoutTeamsInput>
14530
+ }
14531
+
14532
+ export type UserCreateWithoutTeamInput = {
14533
+ id?: string
14534
+ email: string
14535
+ name: string
14536
+ googleUser?: GoogleUserCreateNestedOneWithoutUserInput
14537
+ purchases?: PurchaseCreateNestedManyWithoutUserInput
14538
+ packs?: PackCreateNestedManyWithoutUsersInput
14539
+ userCards?: UserCardCreateNestedManyWithoutUserInput
14540
+ answers?: AnswerCreateNestedManyWithoutUserInput
14541
+ }
14542
+
14543
+ export type UserUncheckedCreateWithoutTeamInput = {
14544
+ id?: string
14545
+ email: string
14546
+ name: string
14547
+ googleUser?: GoogleUserUncheckedCreateNestedOneWithoutUserInput
14548
+ purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
14549
+ packs?: PackUncheckedCreateNestedManyWithoutUsersInput
14550
+ userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
14551
+ answers?: AnswerUncheckedCreateNestedManyWithoutUserInput
14552
+ }
14553
+
14554
+ export type UserCreateOrConnectWithoutTeamInput = {
14555
+ where: UserWhereUniqueInput
14556
+ create: XOR<UserCreateWithoutTeamInput, UserUncheckedCreateWithoutTeamInput>
14557
+ }
14558
+
14559
+ export type UserCreateManyTeamInputEnvelope = {
14560
+ data: Enumerable<UserCreateManyTeamInput>
14561
+ skipDuplicates?: boolean
14562
+ }
14563
+
14564
+ export type PackUpsertWithWhereUniqueWithoutTeamsInput = {
14565
+ where: PackWhereUniqueInput
14566
+ update: XOR<PackUpdateWithoutTeamsInput, PackUncheckedUpdateWithoutTeamsInput>
14567
+ create: XOR<PackCreateWithoutTeamsInput, PackUncheckedCreateWithoutTeamsInput>
14568
+ }
14569
+
14570
+ export type PackUpdateWithWhereUniqueWithoutTeamsInput = {
14571
+ where: PackWhereUniqueInput
14572
+ data: XOR<PackUpdateWithoutTeamsInput, PackUncheckedUpdateWithoutTeamsInput>
14573
+ }
14574
+
14575
+ export type PackUpdateManyWithWhereWithoutTeamsInput = {
14576
+ where: PackScalarWhereInput
14577
+ data: XOR<PackUpdateManyMutationInput, PackUncheckedUpdateManyWithoutAdditionalDecksInput>
14578
+ }
14579
+
14580
+ export type UserUpsertWithWhereUniqueWithoutTeamInput = {
14581
+ where: UserWhereUniqueInput
14582
+ update: XOR<UserUpdateWithoutTeamInput, UserUncheckedUpdateWithoutTeamInput>
14583
+ create: XOR<UserCreateWithoutTeamInput, UserUncheckedCreateWithoutTeamInput>
14584
+ }
14585
+
14586
+ export type UserUpdateWithWhereUniqueWithoutTeamInput = {
14587
+ where: UserWhereUniqueInput
14588
+ data: XOR<UserUpdateWithoutTeamInput, UserUncheckedUpdateWithoutTeamInput>
14589
+ }
14590
+
14591
+ export type UserUpdateManyWithWhereWithoutTeamInput = {
14592
+ where: UserScalarWhereInput
14593
+ data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyWithoutMembersInput>
14594
+ }
14595
+
14596
+ export type PackCreateWithoutTeacherInput = {
14597
+ id?: string
14598
+ name?: string
14599
+ shortDescription?: string
14600
+ longDescription?: string
14601
+ category?: CategoryCreateNestedOneWithoutPacksInput
14602
+ published?: boolean
12906
14603
  currentPrice: Decimal | DecimalJsLike | number | string
14604
+ public?: boolean
14605
+ cards?: CardCreateNestedManyWithoutPackInput
14606
+ users?: UserCreateNestedManyWithoutPacksInput
14607
+ purchases?: PurchaseCreateNestedManyWithoutPackInput
14608
+ teams?: TeamCreateNestedManyWithoutAdditionalDecksInput
12907
14609
  }
12908
14610
 
12909
14611
  export type PackUncheckedCreateWithoutTeacherInput = {
@@ -12913,10 +14615,12 @@ export namespace Prisma {
12913
14615
  longDescription?: string
12914
14616
  categoryId?: string | null
12915
14617
  published?: boolean
14618
+ currentPrice: Decimal | DecimalJsLike | number | string
14619
+ public?: boolean
12916
14620
  cards?: CardUncheckedCreateNestedManyWithoutPackInput
12917
14621
  users?: UserUncheckedCreateNestedManyWithoutPacksInput
12918
- purchase?: PurchaseUncheckedCreateNestedManyWithoutPackInput
12919
- currentPrice: Decimal | DecimalJsLike | number | string
14622
+ purchases?: PurchaseUncheckedCreateNestedManyWithoutPackInput
14623
+ teams?: TeamUncheckedCreateNestedManyWithoutAdditionalDecksInput
12920
14624
  }
12921
14625
 
12922
14626
  export type PackCreateOrConnectWithoutTeacherInput = {
@@ -12953,6 +14657,7 @@ export namespace Prisma {
12953
14657
  packs?: PackCreateNestedManyWithoutUsersInput
12954
14658
  userCards?: UserCardCreateNestedManyWithoutUserInput
12955
14659
  answers?: AnswerCreateNestedManyWithoutUserInput
14660
+ team?: TeamCreateNestedOneWithoutMembersInput
12956
14661
  }
12957
14662
 
12958
14663
  export type UserUncheckedCreateWithoutGoogleUserInput = {
@@ -12963,6 +14668,7 @@ export namespace Prisma {
12963
14668
  packs?: PackUncheckedCreateNestedManyWithoutUsersInput
12964
14669
  userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
12965
14670
  answers?: AnswerUncheckedCreateNestedManyWithoutUserInput
14671
+ teamId: string
12966
14672
  }
12967
14673
 
12968
14674
  export type UserCreateOrConnectWithoutGoogleUserInput = {
@@ -12983,6 +14689,7 @@ export namespace Prisma {
12983
14689
  packs?: PackUpdateManyWithoutUsersNestedInput
12984
14690
  userCards?: UserCardUpdateManyWithoutUserNestedInput
12985
14691
  answers?: AnswerUpdateManyWithoutUserNestedInput
14692
+ team?: TeamUpdateOneWithoutMembersNestedInput
12986
14693
  }
12987
14694
 
12988
14695
  export type UserUncheckedUpdateWithoutGoogleUserInput = {
@@ -12993,6 +14700,7 @@ export namespace Prisma {
12993
14700
  packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
12994
14701
  userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
12995
14702
  answers?: AnswerUncheckedUpdateManyWithoutUserNestedInput
14703
+ teamId?: StringFieldUpdateOperationsInput | string
12996
14704
  }
12997
14705
 
12998
14706
  export type UserCreateWithoutAnswersInput = {
@@ -13003,6 +14711,7 @@ export namespace Prisma {
13003
14711
  purchases?: PurchaseCreateNestedManyWithoutUserInput
13004
14712
  packs?: PackCreateNestedManyWithoutUsersInput
13005
14713
  userCards?: UserCardCreateNestedManyWithoutUserInput
14714
+ team?: TeamCreateNestedOneWithoutMembersInput
13006
14715
  }
13007
14716
 
13008
14717
  export type UserUncheckedCreateWithoutAnswersInput = {
@@ -13013,6 +14722,7 @@ export namespace Prisma {
13013
14722
  purchases?: PurchaseUncheckedCreateNestedManyWithoutUserInput
13014
14723
  packs?: PackUncheckedCreateNestedManyWithoutUsersInput
13015
14724
  userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
14725
+ teamId: string
13016
14726
  }
13017
14727
 
13018
14728
  export type UserCreateOrConnectWithoutAnswersInput = {
@@ -13033,6 +14743,7 @@ export namespace Prisma {
13033
14743
  purchases?: PurchaseUpdateManyWithoutUserNestedInput
13034
14744
  packs?: PackUpdateManyWithoutUsersNestedInput
13035
14745
  userCards?: UserCardUpdateManyWithoutUserNestedInput
14746
+ team?: TeamUpdateOneWithoutMembersNestedInput
13036
14747
  }
13037
14748
 
13038
14749
  export type UserUncheckedUpdateWithoutAnswersInput = {
@@ -13043,6 +14754,7 @@ export namespace Prisma {
13043
14754
  purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
13044
14755
  packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
13045
14756
  userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
14757
+ teamId?: StringFieldUpdateOperationsInput | string
13046
14758
  }
13047
14759
 
13048
14760
  export type UserCreateWithoutPurchasesInput = {
@@ -13053,6 +14765,7 @@ export namespace Prisma {
13053
14765
  packs?: PackCreateNestedManyWithoutUsersInput
13054
14766
  userCards?: UserCardCreateNestedManyWithoutUserInput
13055
14767
  answers?: AnswerCreateNestedManyWithoutUserInput
14768
+ team?: TeamCreateNestedOneWithoutMembersInput
13056
14769
  }
13057
14770
 
13058
14771
  export type UserUncheckedCreateWithoutPurchasesInput = {
@@ -13063,6 +14776,7 @@ export namespace Prisma {
13063
14776
  packs?: PackUncheckedCreateNestedManyWithoutUsersInput
13064
14777
  userCards?: UserCardUncheckedCreateNestedManyWithoutUserInput
13065
14778
  answers?: AnswerUncheckedCreateNestedManyWithoutUserInput
14779
+ teamId: string
13066
14780
  }
13067
14781
 
13068
14782
  export type UserCreateOrConnectWithoutPurchasesInput = {
@@ -13070,7 +14784,7 @@ export namespace Prisma {
13070
14784
  create: XOR<UserCreateWithoutPurchasesInput, UserUncheckedCreateWithoutPurchasesInput>
13071
14785
  }
13072
14786
 
13073
- export type PackCreateWithoutPurchaseInput = {
14787
+ export type PackCreateWithoutPurchasesInput = {
13074
14788
  id?: string
13075
14789
  teacher: TeacherCreateNestedOneWithoutPacksInput
13076
14790
  name?: string
@@ -13078,12 +14792,14 @@ export namespace Prisma {
13078
14792
  longDescription?: string
13079
14793
  category?: CategoryCreateNestedOneWithoutPacksInput
13080
14794
  published?: boolean
14795
+ currentPrice: Decimal | DecimalJsLike | number | string
14796
+ public?: boolean
13081
14797
  cards?: CardCreateNestedManyWithoutPackInput
13082
14798
  users?: UserCreateNestedManyWithoutPacksInput
13083
- currentPrice: Decimal | DecimalJsLike | number | string
14799
+ teams?: TeamCreateNestedManyWithoutAdditionalDecksInput
13084
14800
  }
13085
14801
 
13086
- export type PackUncheckedCreateWithoutPurchaseInput = {
14802
+ export type PackUncheckedCreateWithoutPurchasesInput = {
13087
14803
  id?: string
13088
14804
  teacherId: string
13089
14805
  name?: string
@@ -13091,14 +14807,16 @@ export namespace Prisma {
13091
14807
  longDescription?: string
13092
14808
  categoryId?: string | null
13093
14809
  published?: boolean
14810
+ currentPrice: Decimal | DecimalJsLike | number | string
14811
+ public?: boolean
13094
14812
  cards?: CardUncheckedCreateNestedManyWithoutPackInput
13095
14813
  users?: UserUncheckedCreateNestedManyWithoutPacksInput
13096
- currentPrice: Decimal | DecimalJsLike | number | string
14814
+ teams?: TeamUncheckedCreateNestedManyWithoutAdditionalDecksInput
13097
14815
  }
13098
14816
 
13099
- export type PackCreateOrConnectWithoutPurchaseInput = {
14817
+ export type PackCreateOrConnectWithoutPurchasesInput = {
13100
14818
  where: PackWhereUniqueInput
13101
- create: XOR<PackCreateWithoutPurchaseInput, PackUncheckedCreateWithoutPurchaseInput>
14819
+ create: XOR<PackCreateWithoutPurchasesInput, PackUncheckedCreateWithoutPurchasesInput>
13102
14820
  }
13103
14821
 
13104
14822
  export type UserUpsertWithoutPurchasesInput = {
@@ -13114,6 +14832,7 @@ export namespace Prisma {
13114
14832
  packs?: PackUpdateManyWithoutUsersNestedInput
13115
14833
  userCards?: UserCardUpdateManyWithoutUserNestedInput
13116
14834
  answers?: AnswerUpdateManyWithoutUserNestedInput
14835
+ team?: TeamUpdateOneWithoutMembersNestedInput
13117
14836
  }
13118
14837
 
13119
14838
  export type UserUncheckedUpdateWithoutPurchasesInput = {
@@ -13124,14 +14843,15 @@ export namespace Prisma {
13124
14843
  packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
13125
14844
  userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
13126
14845
  answers?: AnswerUncheckedUpdateManyWithoutUserNestedInput
14846
+ teamId?: StringFieldUpdateOperationsInput | string
13127
14847
  }
13128
14848
 
13129
- export type PackUpsertWithoutPurchaseInput = {
13130
- update: XOR<PackUpdateWithoutPurchaseInput, PackUncheckedUpdateWithoutPurchaseInput>
13131
- create: XOR<PackCreateWithoutPurchaseInput, PackUncheckedCreateWithoutPurchaseInput>
14849
+ export type PackUpsertWithoutPurchasesInput = {
14850
+ update: XOR<PackUpdateWithoutPurchasesInput, PackUncheckedUpdateWithoutPurchasesInput>
14851
+ create: XOR<PackCreateWithoutPurchasesInput, PackUncheckedCreateWithoutPurchasesInput>
13132
14852
  }
13133
14853
 
13134
- export type PackUpdateWithoutPurchaseInput = {
14854
+ export type PackUpdateWithoutPurchasesInput = {
13135
14855
  id?: StringFieldUpdateOperationsInput | string
13136
14856
  teacher?: TeacherUpdateOneRequiredWithoutPacksNestedInput
13137
14857
  name?: StringFieldUpdateOperationsInput | string
@@ -13139,12 +14859,14 @@ export namespace Prisma {
13139
14859
  longDescription?: StringFieldUpdateOperationsInput | string
13140
14860
  category?: CategoryUpdateOneWithoutPacksNestedInput
13141
14861
  published?: BoolFieldUpdateOperationsInput | boolean
14862
+ currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
14863
+ public?: BoolFieldUpdateOperationsInput | boolean
13142
14864
  cards?: CardUpdateManyWithoutPackNestedInput
13143
14865
  users?: UserUpdateManyWithoutPacksNestedInput
13144
- currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
14866
+ teams?: TeamUpdateManyWithoutAdditionalDecksNestedInput
13145
14867
  }
13146
14868
 
13147
- export type PackUncheckedUpdateWithoutPurchaseInput = {
14869
+ export type PackUncheckedUpdateWithoutPurchasesInput = {
13148
14870
  id?: StringFieldUpdateOperationsInput | string
13149
14871
  teacherId?: StringFieldUpdateOperationsInput | string
13150
14872
  name?: StringFieldUpdateOperationsInput | string
@@ -13152,9 +14874,11 @@ export namespace Prisma {
13152
14874
  longDescription?: StringFieldUpdateOperationsInput | string
13153
14875
  categoryId?: NullableStringFieldUpdateOperationsInput | string | null
13154
14876
  published?: BoolFieldUpdateOperationsInput | boolean
14877
+ currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
14878
+ public?: BoolFieldUpdateOperationsInput | boolean
13155
14879
  cards?: CardUncheckedUpdateManyWithoutPackNestedInput
13156
14880
  users?: UserUncheckedUpdateManyWithoutPacksNestedInput
13157
- currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
14881
+ teams?: TeamUncheckedUpdateManyWithoutAdditionalDecksNestedInput
13158
14882
  }
13159
14883
 
13160
14884
  export type UserCardCreateManyCardInput = {
@@ -13193,6 +14917,7 @@ export namespace Prisma {
13193
14917
  longDescription?: string
13194
14918
  published?: boolean
13195
14919
  currentPrice: Decimal | DecimalJsLike | number | string
14920
+ public?: boolean
13196
14921
  }
13197
14922
 
13198
14923
  export type PackUpdateWithoutCategoryInput = {
@@ -13202,10 +14927,12 @@ export namespace Prisma {
13202
14927
  shortDescription?: StringFieldUpdateOperationsInput | string
13203
14928
  longDescription?: StringFieldUpdateOperationsInput | string
13204
14929
  published?: BoolFieldUpdateOperationsInput | boolean
14930
+ currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
14931
+ public?: BoolFieldUpdateOperationsInput | boolean
13205
14932
  cards?: CardUpdateManyWithoutPackNestedInput
13206
14933
  users?: UserUpdateManyWithoutPacksNestedInput
13207
- purchase?: PurchaseUpdateManyWithoutPackNestedInput
13208
- currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
14934
+ purchases?: PurchaseUpdateManyWithoutPackNestedInput
14935
+ teams?: TeamUpdateManyWithoutAdditionalDecksNestedInput
13209
14936
  }
13210
14937
 
13211
14938
  export type PackUncheckedUpdateWithoutCategoryInput = {
@@ -13215,10 +14942,12 @@ export namespace Prisma {
13215
14942
  shortDescription?: StringFieldUpdateOperationsInput | string
13216
14943
  longDescription?: StringFieldUpdateOperationsInput | string
13217
14944
  published?: BoolFieldUpdateOperationsInput | boolean
14945
+ currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
14946
+ public?: BoolFieldUpdateOperationsInput | boolean
13218
14947
  cards?: CardUncheckedUpdateManyWithoutPackNestedInput
13219
14948
  users?: UserUncheckedUpdateManyWithoutPacksNestedInput
13220
- purchase?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
13221
- currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
14949
+ purchases?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
14950
+ teams?: TeamUncheckedUpdateManyWithoutAdditionalDecksNestedInput
13222
14951
  }
13223
14952
 
13224
14953
  export type PackUncheckedUpdateManyWithoutPacksInput = {
@@ -13229,6 +14958,7 @@ export namespace Prisma {
13229
14958
  longDescription?: StringFieldUpdateOperationsInput | string
13230
14959
  published?: BoolFieldUpdateOperationsInput | boolean
13231
14960
  currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
14961
+ public?: BoolFieldUpdateOperationsInput | boolean
13232
14962
  }
13233
14963
 
13234
14964
  export type CardCreateManyPackInput = {
@@ -13275,6 +15005,7 @@ export namespace Prisma {
13275
15005
  purchases?: PurchaseUpdateManyWithoutUserNestedInput
13276
15006
  userCards?: UserCardUpdateManyWithoutUserNestedInput
13277
15007
  answers?: AnswerUpdateManyWithoutUserNestedInput
15008
+ team?: TeamUpdateOneWithoutMembersNestedInput
13278
15009
  }
13279
15010
 
13280
15011
  export type UserUncheckedUpdateWithoutPacksInput = {
@@ -13285,12 +15016,14 @@ export namespace Prisma {
13285
15016
  purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
13286
15017
  userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
13287
15018
  answers?: AnswerUncheckedUpdateManyWithoutUserNestedInput
15019
+ teamId?: StringFieldUpdateOperationsInput | string
13288
15020
  }
13289
15021
 
13290
15022
  export type UserUncheckedUpdateManyWithoutUsersInput = {
13291
15023
  id?: StringFieldUpdateOperationsInput | string
13292
15024
  email?: StringFieldUpdateOperationsInput | string
13293
15025
  name?: StringFieldUpdateOperationsInput | string
15026
+ teamId?: StringFieldUpdateOperationsInput | string
13294
15027
  }
13295
15028
 
13296
15029
  export type PurchaseUpdateWithoutPackInput = {
@@ -13313,7 +15046,7 @@ export namespace Prisma {
13313
15046
  status?: EnumPurchaseStatusFieldUpdateOperationsInput | PurchaseStatus
13314
15047
  }
13315
15048
 
13316
- export type PurchaseUncheckedUpdateManyWithoutPurchaseInput = {
15049
+ export type PurchaseUncheckedUpdateManyWithoutPurchasesInput = {
13317
15050
  id?: StringFieldUpdateOperationsInput | string
13318
15051
  userId?: StringFieldUpdateOperationsInput | string
13319
15052
  currency?: StringFieldUpdateOperationsInput | string
@@ -13323,6 +15056,32 @@ export namespace Prisma {
13323
15056
  status?: EnumPurchaseStatusFieldUpdateOperationsInput | PurchaseStatus
13324
15057
  }
13325
15058
 
15059
+ export type TeamUpdateWithoutAdditionalDecksInput = {
15060
+ id?: StringFieldUpdateOperationsInput | string
15061
+ name?: StringFieldUpdateOperationsInput | string
15062
+ emailPattern?: StringFieldUpdateOperationsInput | string
15063
+ members?: UserUpdateManyWithoutTeamNestedInput
15064
+ userCount?: IntFieldUpdateOperationsInput | number
15065
+ subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
15066
+ }
15067
+
15068
+ export type TeamUncheckedUpdateWithoutAdditionalDecksInput = {
15069
+ id?: StringFieldUpdateOperationsInput | string
15070
+ name?: StringFieldUpdateOperationsInput | string
15071
+ emailPattern?: StringFieldUpdateOperationsInput | string
15072
+ members?: UserUncheckedUpdateManyWithoutTeamNestedInput
15073
+ userCount?: IntFieldUpdateOperationsInput | number
15074
+ subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
15075
+ }
15076
+
15077
+ export type TeamUncheckedUpdateManyWithoutTeamsInput = {
15078
+ id?: StringFieldUpdateOperationsInput | string
15079
+ name?: StringFieldUpdateOperationsInput | string
15080
+ emailPattern?: StringFieldUpdateOperationsInput | string
15081
+ userCount?: IntFieldUpdateOperationsInput | number
15082
+ subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
15083
+ }
15084
+
13326
15085
  export type PurchaseCreateManyUserInput = {
13327
15086
  id?: string
13328
15087
  packId: string
@@ -13349,7 +15108,7 @@ export namespace Prisma {
13349
15108
 
13350
15109
  export type PurchaseUpdateWithoutUserInput = {
13351
15110
  id?: StringFieldUpdateOperationsInput | string
13352
- pack?: PackUpdateOneRequiredWithoutPurchaseNestedInput
15111
+ pack?: PackUpdateOneRequiredWithoutPurchasesNestedInput
13353
15112
  currency?: StringFieldUpdateOperationsInput | string
13354
15113
  amount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
13355
15114
  orderDate?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -13367,16 +15126,6 @@ export namespace Prisma {
13367
15126
  status?: EnumPurchaseStatusFieldUpdateOperationsInput | PurchaseStatus
13368
15127
  }
13369
15128
 
13370
- export type PurchaseUncheckedUpdateManyWithoutPurchasesInput = {
13371
- id?: StringFieldUpdateOperationsInput | string
13372
- packId?: StringFieldUpdateOperationsInput | string
13373
- currency?: StringFieldUpdateOperationsInput | string
13374
- amount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
13375
- orderDate?: DateTimeFieldUpdateOperationsInput | Date | string
13376
- paymentDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
13377
- status?: EnumPurchaseStatusFieldUpdateOperationsInput | PurchaseStatus
13378
- }
13379
-
13380
15129
  export type PackUpdateWithoutUsersInput = {
13381
15130
  id?: StringFieldUpdateOperationsInput | string
13382
15131
  teacher?: TeacherUpdateOneRequiredWithoutPacksNestedInput
@@ -13385,9 +15134,11 @@ export namespace Prisma {
13385
15134
  longDescription?: StringFieldUpdateOperationsInput | string
13386
15135
  category?: CategoryUpdateOneWithoutPacksNestedInput
13387
15136
  published?: BoolFieldUpdateOperationsInput | boolean
13388
- cards?: CardUpdateManyWithoutPackNestedInput
13389
- purchase?: PurchaseUpdateManyWithoutPackNestedInput
13390
15137
  currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
15138
+ public?: BoolFieldUpdateOperationsInput | boolean
15139
+ cards?: CardUpdateManyWithoutPackNestedInput
15140
+ purchases?: PurchaseUpdateManyWithoutPackNestedInput
15141
+ teams?: TeamUpdateManyWithoutAdditionalDecksNestedInput
13391
15142
  }
13392
15143
 
13393
15144
  export type PackUncheckedUpdateWithoutUsersInput = {
@@ -13398,9 +15149,11 @@ export namespace Prisma {
13398
15149
  longDescription?: StringFieldUpdateOperationsInput | string
13399
15150
  categoryId?: NullableStringFieldUpdateOperationsInput | string | null
13400
15151
  published?: BoolFieldUpdateOperationsInput | boolean
13401
- cards?: CardUncheckedUpdateManyWithoutPackNestedInput
13402
- purchase?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
13403
15152
  currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
15153
+ public?: BoolFieldUpdateOperationsInput | boolean
15154
+ cards?: CardUncheckedUpdateManyWithoutPackNestedInput
15155
+ purchases?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
15156
+ teams?: TeamUncheckedUpdateManyWithoutAdditionalDecksNestedInput
13404
15157
  }
13405
15158
 
13406
15159
  export type UserCardUpdateWithoutUserInput = {
@@ -13438,6 +15191,82 @@ export namespace Prisma {
13438
15191
  timestamp?: StringFieldUpdateOperationsInput | string
13439
15192
  }
13440
15193
 
15194
+ export type UserCreateManyTeamInput = {
15195
+ id?: string
15196
+ email: string
15197
+ name: string
15198
+ }
15199
+
15200
+ export type PackUpdateWithoutTeamsInput = {
15201
+ id?: StringFieldUpdateOperationsInput | string
15202
+ teacher?: TeacherUpdateOneRequiredWithoutPacksNestedInput
15203
+ name?: StringFieldUpdateOperationsInput | string
15204
+ shortDescription?: StringFieldUpdateOperationsInput | string
15205
+ longDescription?: StringFieldUpdateOperationsInput | string
15206
+ category?: CategoryUpdateOneWithoutPacksNestedInput
15207
+ published?: BoolFieldUpdateOperationsInput | boolean
15208
+ currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
15209
+ public?: BoolFieldUpdateOperationsInput | boolean
15210
+ cards?: CardUpdateManyWithoutPackNestedInput
15211
+ users?: UserUpdateManyWithoutPacksNestedInput
15212
+ purchases?: PurchaseUpdateManyWithoutPackNestedInput
15213
+ }
15214
+
15215
+ export type PackUncheckedUpdateWithoutTeamsInput = {
15216
+ id?: StringFieldUpdateOperationsInput | string
15217
+ teacherId?: StringFieldUpdateOperationsInput | string
15218
+ name?: StringFieldUpdateOperationsInput | string
15219
+ shortDescription?: StringFieldUpdateOperationsInput | string
15220
+ longDescription?: StringFieldUpdateOperationsInput | string
15221
+ categoryId?: NullableStringFieldUpdateOperationsInput | string | null
15222
+ published?: BoolFieldUpdateOperationsInput | boolean
15223
+ currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
15224
+ public?: BoolFieldUpdateOperationsInput | boolean
15225
+ cards?: CardUncheckedUpdateManyWithoutPackNestedInput
15226
+ users?: UserUncheckedUpdateManyWithoutPacksNestedInput
15227
+ purchases?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
15228
+ }
15229
+
15230
+ export type PackUncheckedUpdateManyWithoutAdditionalDecksInput = {
15231
+ id?: StringFieldUpdateOperationsInput | string
15232
+ teacherId?: StringFieldUpdateOperationsInput | string
15233
+ name?: StringFieldUpdateOperationsInput | string
15234
+ shortDescription?: StringFieldUpdateOperationsInput | string
15235
+ longDescription?: StringFieldUpdateOperationsInput | string
15236
+ categoryId?: NullableStringFieldUpdateOperationsInput | string | null
15237
+ published?: BoolFieldUpdateOperationsInput | boolean
15238
+ currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
15239
+ public?: BoolFieldUpdateOperationsInput | boolean
15240
+ }
15241
+
15242
+ export type UserUpdateWithoutTeamInput = {
15243
+ id?: StringFieldUpdateOperationsInput | string
15244
+ email?: StringFieldUpdateOperationsInput | string
15245
+ name?: StringFieldUpdateOperationsInput | string
15246
+ googleUser?: GoogleUserUpdateOneWithoutUserNestedInput
15247
+ purchases?: PurchaseUpdateManyWithoutUserNestedInput
15248
+ packs?: PackUpdateManyWithoutUsersNestedInput
15249
+ userCards?: UserCardUpdateManyWithoutUserNestedInput
15250
+ answers?: AnswerUpdateManyWithoutUserNestedInput
15251
+ }
15252
+
15253
+ export type UserUncheckedUpdateWithoutTeamInput = {
15254
+ id?: StringFieldUpdateOperationsInput | string
15255
+ email?: StringFieldUpdateOperationsInput | string
15256
+ name?: StringFieldUpdateOperationsInput | string
15257
+ googleUser?: GoogleUserUncheckedUpdateOneWithoutUserNestedInput
15258
+ purchases?: PurchaseUncheckedUpdateManyWithoutUserNestedInput
15259
+ packs?: PackUncheckedUpdateManyWithoutUsersNestedInput
15260
+ userCards?: UserCardUncheckedUpdateManyWithoutUserNestedInput
15261
+ answers?: AnswerUncheckedUpdateManyWithoutUserNestedInput
15262
+ }
15263
+
15264
+ export type UserUncheckedUpdateManyWithoutMembersInput = {
15265
+ id?: StringFieldUpdateOperationsInput | string
15266
+ email?: StringFieldUpdateOperationsInput | string
15267
+ name?: StringFieldUpdateOperationsInput | string
15268
+ }
15269
+
13441
15270
  export type PackCreateManyTeacherInput = {
13442
15271
  id?: string
13443
15272
  name?: string
@@ -13446,6 +15275,7 @@ export namespace Prisma {
13446
15275
  categoryId?: string | null
13447
15276
  published?: boolean
13448
15277
  currentPrice: Decimal | DecimalJsLike | number | string
15278
+ public?: boolean
13449
15279
  }
13450
15280
 
13451
15281
  export type PackUpdateWithoutTeacherInput = {
@@ -13455,10 +15285,12 @@ export namespace Prisma {
13455
15285
  longDescription?: StringFieldUpdateOperationsInput | string
13456
15286
  category?: CategoryUpdateOneWithoutPacksNestedInput
13457
15287
  published?: BoolFieldUpdateOperationsInput | boolean
15288
+ currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
15289
+ public?: BoolFieldUpdateOperationsInput | boolean
13458
15290
  cards?: CardUpdateManyWithoutPackNestedInput
13459
15291
  users?: UserUpdateManyWithoutPacksNestedInput
13460
- purchase?: PurchaseUpdateManyWithoutPackNestedInput
13461
- currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
15292
+ purchases?: PurchaseUpdateManyWithoutPackNestedInput
15293
+ teams?: TeamUpdateManyWithoutAdditionalDecksNestedInput
13462
15294
  }
13463
15295
 
13464
15296
  export type PackUncheckedUpdateWithoutTeacherInput = {
@@ -13468,10 +15300,12 @@ export namespace Prisma {
13468
15300
  longDescription?: StringFieldUpdateOperationsInput | string
13469
15301
  categoryId?: NullableStringFieldUpdateOperationsInput | string | null
13470
15302
  published?: BoolFieldUpdateOperationsInput | boolean
15303
+ currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
15304
+ public?: BoolFieldUpdateOperationsInput | boolean
13471
15305
  cards?: CardUncheckedUpdateManyWithoutPackNestedInput
13472
15306
  users?: UserUncheckedUpdateManyWithoutPacksNestedInput
13473
- purchase?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
13474
- currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
15307
+ purchases?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
15308
+ teams?: TeamUncheckedUpdateManyWithoutAdditionalDecksNestedInput
13475
15309
  }
13476
15310
 
13477
15311