lang-database 1.10.0 → 2.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.
- package/.env-dev.example +3 -0
- package/.env-local.example +3 -0
- package/.env-prod.example +3 -0
- package/.env-test.example +3 -0
- package/generated/prisma-client/index-browser.js +10 -1
- package/generated/prisma-client/index.d.ts +1831 -289
- package/generated/prisma-client/index.js +11 -2
- package/generated/prisma-client/schema.prisma +13 -2
- package/migrations/{20221112124401_init → 20230607212052_}/migration.sql +55 -33
- package/migrations/20230607212301_teams_restricted_deck_fixed_typo/migration.sql +36 -0
- package/package.json +1 -1
- package/schema.prisma +13 -2
- package/.env-dev +0 -2
- package/.env-local +0 -2
- package/.env-prod +0 -3
- package/.env-test +0 -4
- package/migrations/20221112132548_id_fields_fix_in_cockroachdb/migration.sql +0 -158
|
@@ -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
|
/**
|
|
@@ -69,6 +70,17 @@ export type User = {
|
|
|
69
70
|
name: string
|
|
70
71
|
}
|
|
71
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Model Team
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
export type Team = {
|
|
78
|
+
id: string
|
|
79
|
+
name: string
|
|
80
|
+
userCount: number
|
|
81
|
+
subscriptionExpire: Date | null
|
|
82
|
+
}
|
|
83
|
+
|
|
72
84
|
/**
|
|
73
85
|
* Model Teacher
|
|
74
86
|
*
|
|
@@ -322,6 +334,16 @@ export class PrismaClient<
|
|
|
322
334
|
*/
|
|
323
335
|
get user(): Prisma.UserDelegate<GlobalReject>;
|
|
324
336
|
|
|
337
|
+
/**
|
|
338
|
+
* `prisma.team`: Exposes CRUD operations for the **Team** model.
|
|
339
|
+
* Example usage:
|
|
340
|
+
* ```ts
|
|
341
|
+
* // Fetch zero or more Teams
|
|
342
|
+
* const teams = await prisma.team.findMany()
|
|
343
|
+
* ```
|
|
344
|
+
*/
|
|
345
|
+
get team(): Prisma.TeamDelegate<GlobalReject>;
|
|
346
|
+
|
|
325
347
|
/**
|
|
326
348
|
* `prisma.teacher`: Exposes CRUD operations for the **Teacher** model.
|
|
327
349
|
* Example usage:
|
|
@@ -839,6 +861,7 @@ export namespace Prisma {
|
|
|
839
861
|
Category: 'Category',
|
|
840
862
|
Pack: 'Pack',
|
|
841
863
|
User: 'User',
|
|
864
|
+
Team: 'Team',
|
|
842
865
|
Teacher: 'Teacher',
|
|
843
866
|
GoogleUser: 'GoogleUser',
|
|
844
867
|
Answer: 'Answer',
|
|
@@ -1107,13 +1130,15 @@ export namespace Prisma {
|
|
|
1107
1130
|
export type PackCountOutputType = {
|
|
1108
1131
|
cards: number
|
|
1109
1132
|
users: number
|
|
1110
|
-
|
|
1133
|
+
purchases: number
|
|
1134
|
+
teams: number
|
|
1111
1135
|
}
|
|
1112
1136
|
|
|
1113
1137
|
export type PackCountOutputTypeSelect = {
|
|
1114
1138
|
cards?: boolean
|
|
1115
1139
|
users?: boolean
|
|
1116
|
-
|
|
1140
|
+
purchases?: boolean
|
|
1141
|
+
teams?: boolean
|
|
1117
1142
|
}
|
|
1118
1143
|
|
|
1119
1144
|
export type PackCountOutputTypeGetPayload<
|
|
@@ -1207,6 +1232,55 @@ export namespace Prisma {
|
|
|
1207
1232
|
|
|
1208
1233
|
|
|
1209
1234
|
|
|
1235
|
+
/**
|
|
1236
|
+
* Count Type TeamCountOutputType
|
|
1237
|
+
*/
|
|
1238
|
+
|
|
1239
|
+
|
|
1240
|
+
export type TeamCountOutputType = {
|
|
1241
|
+
decks: number
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
export type TeamCountOutputTypeSelect = {
|
|
1245
|
+
decks?: boolean
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
export type TeamCountOutputTypeGetPayload<
|
|
1249
|
+
S extends boolean | null | undefined | TeamCountOutputTypeArgs,
|
|
1250
|
+
U = keyof S
|
|
1251
|
+
> = S extends true
|
|
1252
|
+
? TeamCountOutputType
|
|
1253
|
+
: S extends undefined
|
|
1254
|
+
? never
|
|
1255
|
+
: S extends TeamCountOutputTypeArgs
|
|
1256
|
+
?'include' extends U
|
|
1257
|
+
? TeamCountOutputType
|
|
1258
|
+
: 'select' extends U
|
|
1259
|
+
? {
|
|
1260
|
+
[P in TrueKeys<S['select']>]:
|
|
1261
|
+
P extends keyof TeamCountOutputType ? TeamCountOutputType[P] : never
|
|
1262
|
+
}
|
|
1263
|
+
: TeamCountOutputType
|
|
1264
|
+
: TeamCountOutputType
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
// Custom InputTypes
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* TeamCountOutputType without action
|
|
1273
|
+
*/
|
|
1274
|
+
export type TeamCountOutputTypeArgs = {
|
|
1275
|
+
/**
|
|
1276
|
+
* Select specific fields to fetch from the TeamCountOutputType
|
|
1277
|
+
*
|
|
1278
|
+
**/
|
|
1279
|
+
select?: TeamCountOutputTypeSelect | null
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
|
|
1210
1284
|
/**
|
|
1211
1285
|
* Count Type TeacherCountOutputType
|
|
1212
1286
|
*/
|
|
@@ -4087,6 +4161,7 @@ export namespace Prisma {
|
|
|
4087
4161
|
categoryId: string | null
|
|
4088
4162
|
published: boolean | null
|
|
4089
4163
|
currentPrice: Decimal | null
|
|
4164
|
+
public: boolean | null
|
|
4090
4165
|
}
|
|
4091
4166
|
|
|
4092
4167
|
export type PackMaxAggregateOutputType = {
|
|
@@ -4098,6 +4173,7 @@ export namespace Prisma {
|
|
|
4098
4173
|
categoryId: string | null
|
|
4099
4174
|
published: boolean | null
|
|
4100
4175
|
currentPrice: Decimal | null
|
|
4176
|
+
public: boolean | null
|
|
4101
4177
|
}
|
|
4102
4178
|
|
|
4103
4179
|
export type PackCountAggregateOutputType = {
|
|
@@ -4109,6 +4185,7 @@ export namespace Prisma {
|
|
|
4109
4185
|
categoryId: number
|
|
4110
4186
|
published: number
|
|
4111
4187
|
currentPrice: number
|
|
4188
|
+
public: number
|
|
4112
4189
|
_all: number
|
|
4113
4190
|
}
|
|
4114
4191
|
|
|
@@ -4130,6 +4207,7 @@ export namespace Prisma {
|
|
|
4130
4207
|
categoryId?: true
|
|
4131
4208
|
published?: true
|
|
4132
4209
|
currentPrice?: true
|
|
4210
|
+
public?: true
|
|
4133
4211
|
}
|
|
4134
4212
|
|
|
4135
4213
|
export type PackMaxAggregateInputType = {
|
|
@@ -4141,6 +4219,7 @@ export namespace Prisma {
|
|
|
4141
4219
|
categoryId?: true
|
|
4142
4220
|
published?: true
|
|
4143
4221
|
currentPrice?: true
|
|
4222
|
+
public?: true
|
|
4144
4223
|
}
|
|
4145
4224
|
|
|
4146
4225
|
export type PackCountAggregateInputType = {
|
|
@@ -4152,6 +4231,7 @@ export namespace Prisma {
|
|
|
4152
4231
|
categoryId?: true
|
|
4153
4232
|
published?: true
|
|
4154
4233
|
currentPrice?: true
|
|
4234
|
+
public?: true
|
|
4155
4235
|
_all?: true
|
|
4156
4236
|
}
|
|
4157
4237
|
|
|
@@ -4256,6 +4336,7 @@ export namespace Prisma {
|
|
|
4256
4336
|
categoryId: string | null
|
|
4257
4337
|
published: boolean
|
|
4258
4338
|
currentPrice: Decimal
|
|
4339
|
+
public: boolean
|
|
4259
4340
|
_count: PackCountAggregateOutputType | null
|
|
4260
4341
|
_avg: PackAvgAggregateOutputType | null
|
|
4261
4342
|
_sum: PackSumAggregateOutputType | null
|
|
@@ -4287,10 +4368,12 @@ export namespace Prisma {
|
|
|
4287
4368
|
category?: boolean | CategoryArgs
|
|
4288
4369
|
categoryId?: boolean
|
|
4289
4370
|
published?: boolean
|
|
4371
|
+
currentPrice?: boolean
|
|
4372
|
+
public?: boolean
|
|
4290
4373
|
cards?: boolean | CardFindManyArgs
|
|
4291
4374
|
users?: boolean | UserFindManyArgs
|
|
4292
|
-
|
|
4293
|
-
|
|
4375
|
+
purchases?: boolean | PurchaseFindManyArgs
|
|
4376
|
+
teams?: boolean | TeamFindManyArgs
|
|
4294
4377
|
_count?: boolean | PackCountOutputTypeArgs
|
|
4295
4378
|
}
|
|
4296
4379
|
|
|
@@ -4299,7 +4382,8 @@ export namespace Prisma {
|
|
|
4299
4382
|
category?: boolean | CategoryArgs
|
|
4300
4383
|
cards?: boolean | CardFindManyArgs
|
|
4301
4384
|
users?: boolean | UserFindManyArgs
|
|
4302
|
-
|
|
4385
|
+
purchases?: boolean | PurchaseFindManyArgs
|
|
4386
|
+
teams?: boolean | TeamFindManyArgs
|
|
4303
4387
|
_count?: boolean | PackCountOutputTypeArgs
|
|
4304
4388
|
}
|
|
4305
4389
|
|
|
@@ -4318,7 +4402,8 @@ export namespace Prisma {
|
|
|
4318
4402
|
P extends 'category' ? CategoryGetPayload<Exclude<S['include'], undefined | null>[P]> | null :
|
|
4319
4403
|
P extends 'cards' ? Array < CardGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
4320
4404
|
P extends 'users' ? Array < UserGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
4321
|
-
P extends '
|
|
4405
|
+
P extends 'purchases' ? Array < PurchaseGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
4406
|
+
P extends 'teams' ? Array < TeamGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
4322
4407
|
P extends '_count' ? PackCountOutputTypeGetPayload<Exclude<S['include'], undefined | null>[P]> : never
|
|
4323
4408
|
}
|
|
4324
4409
|
: 'select' extends U
|
|
@@ -4328,7 +4413,8 @@ export namespace Prisma {
|
|
|
4328
4413
|
P extends 'category' ? CategoryGetPayload<Exclude<S['select'], undefined | null>[P]> | null :
|
|
4329
4414
|
P extends 'cards' ? Array < CardGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
4330
4415
|
P extends 'users' ? Array < UserGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
4331
|
-
P extends '
|
|
4416
|
+
P extends 'purchases' ? Array < PurchaseGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
4417
|
+
P extends 'teams' ? Array < TeamGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
4332
4418
|
P extends '_count' ? PackCountOutputTypeGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof Pack ? Pack[P] : never
|
|
4333
4419
|
}
|
|
4334
4420
|
: Pack
|
|
@@ -4712,7 +4798,9 @@ export namespace Prisma {
|
|
|
4712
4798
|
|
|
4713
4799
|
users<T extends UserFindManyArgs = {}>(args?: Subset<T, UserFindManyArgs>): CheckSelect<T, PrismaPromise<Array<User>>, PrismaPromise<Array<UserGetPayload<T>>>>;
|
|
4714
4800
|
|
|
4715
|
-
|
|
4801
|
+
purchases<T extends PurchaseFindManyArgs = {}>(args?: Subset<T, PurchaseFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Purchase>>, PrismaPromise<Array<PurchaseGetPayload<T>>>>;
|
|
4802
|
+
|
|
4803
|
+
teams<T extends TeamFindManyArgs = {}>(args?: Subset<T, TeamFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Team>>, PrismaPromise<Array<TeamGetPayload<T>>>>;
|
|
4716
4804
|
|
|
4717
4805
|
private get _document();
|
|
4718
4806
|
/**
|
|
@@ -6006,314 +6094,348 @@ export namespace Prisma {
|
|
|
6006
6094
|
|
|
6007
6095
|
|
|
6008
6096
|
/**
|
|
6009
|
-
* Model
|
|
6097
|
+
* Model Team
|
|
6010
6098
|
*/
|
|
6011
6099
|
|
|
6012
6100
|
|
|
6013
|
-
export type
|
|
6014
|
-
_count:
|
|
6015
|
-
|
|
6016
|
-
|
|
6101
|
+
export type AggregateTeam = {
|
|
6102
|
+
_count: TeamCountAggregateOutputType | null
|
|
6103
|
+
_avg: TeamAvgAggregateOutputType | null
|
|
6104
|
+
_sum: TeamSumAggregateOutputType | null
|
|
6105
|
+
_min: TeamMinAggregateOutputType | null
|
|
6106
|
+
_max: TeamMaxAggregateOutputType | null
|
|
6017
6107
|
}
|
|
6018
6108
|
|
|
6019
|
-
export type
|
|
6109
|
+
export type TeamAvgAggregateOutputType = {
|
|
6110
|
+
userCount: number | null
|
|
6111
|
+
}
|
|
6112
|
+
|
|
6113
|
+
export type TeamSumAggregateOutputType = {
|
|
6114
|
+
userCount: number | null
|
|
6115
|
+
}
|
|
6116
|
+
|
|
6117
|
+
export type TeamMinAggregateOutputType = {
|
|
6020
6118
|
id: string | null
|
|
6021
|
-
email: string | null
|
|
6022
6119
|
name: string | null
|
|
6023
|
-
|
|
6120
|
+
userCount: number | null
|
|
6121
|
+
subscriptionExpire: Date | null
|
|
6024
6122
|
}
|
|
6025
6123
|
|
|
6026
|
-
export type
|
|
6124
|
+
export type TeamMaxAggregateOutputType = {
|
|
6027
6125
|
id: string | null
|
|
6028
|
-
email: string | null
|
|
6029
6126
|
name: string | null
|
|
6030
|
-
|
|
6127
|
+
userCount: number | null
|
|
6128
|
+
subscriptionExpire: Date | null
|
|
6031
6129
|
}
|
|
6032
6130
|
|
|
6033
|
-
export type
|
|
6131
|
+
export type TeamCountAggregateOutputType = {
|
|
6034
6132
|
id: number
|
|
6035
|
-
email: number
|
|
6036
6133
|
name: number
|
|
6037
|
-
|
|
6134
|
+
userCount: number
|
|
6135
|
+
subscriptionExpire: number
|
|
6038
6136
|
_all: number
|
|
6039
6137
|
}
|
|
6040
6138
|
|
|
6041
6139
|
|
|
6042
|
-
export type
|
|
6140
|
+
export type TeamAvgAggregateInputType = {
|
|
6141
|
+
userCount?: true
|
|
6142
|
+
}
|
|
6143
|
+
|
|
6144
|
+
export type TeamSumAggregateInputType = {
|
|
6145
|
+
userCount?: true
|
|
6146
|
+
}
|
|
6147
|
+
|
|
6148
|
+
export type TeamMinAggregateInputType = {
|
|
6043
6149
|
id?: true
|
|
6044
|
-
email?: true
|
|
6045
6150
|
name?: true
|
|
6046
|
-
|
|
6151
|
+
userCount?: true
|
|
6152
|
+
subscriptionExpire?: true
|
|
6047
6153
|
}
|
|
6048
6154
|
|
|
6049
|
-
export type
|
|
6155
|
+
export type TeamMaxAggregateInputType = {
|
|
6050
6156
|
id?: true
|
|
6051
|
-
email?: true
|
|
6052
6157
|
name?: true
|
|
6053
|
-
|
|
6158
|
+
userCount?: true
|
|
6159
|
+
subscriptionExpire?: true
|
|
6054
6160
|
}
|
|
6055
6161
|
|
|
6056
|
-
export type
|
|
6162
|
+
export type TeamCountAggregateInputType = {
|
|
6057
6163
|
id?: true
|
|
6058
|
-
email?: true
|
|
6059
6164
|
name?: true
|
|
6060
|
-
|
|
6165
|
+
userCount?: true
|
|
6166
|
+
subscriptionExpire?: true
|
|
6061
6167
|
_all?: true
|
|
6062
6168
|
}
|
|
6063
6169
|
|
|
6064
|
-
export type
|
|
6170
|
+
export type TeamAggregateArgs = {
|
|
6065
6171
|
/**
|
|
6066
|
-
* Filter which
|
|
6172
|
+
* Filter which Team to aggregate.
|
|
6067
6173
|
*
|
|
6068
6174
|
**/
|
|
6069
|
-
where?:
|
|
6175
|
+
where?: TeamWhereInput
|
|
6070
6176
|
/**
|
|
6071
6177
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
6072
6178
|
*
|
|
6073
|
-
* Determine the order of
|
|
6179
|
+
* Determine the order of Teams to fetch.
|
|
6074
6180
|
*
|
|
6075
6181
|
**/
|
|
6076
|
-
orderBy?: Enumerable<
|
|
6182
|
+
orderBy?: Enumerable<TeamOrderByWithRelationInput>
|
|
6077
6183
|
/**
|
|
6078
6184
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
6079
6185
|
*
|
|
6080
6186
|
* Sets the start position
|
|
6081
6187
|
*
|
|
6082
6188
|
**/
|
|
6083
|
-
cursor?:
|
|
6189
|
+
cursor?: TeamWhereUniqueInput
|
|
6084
6190
|
/**
|
|
6085
6191
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6086
6192
|
*
|
|
6087
|
-
* Take `±n`
|
|
6193
|
+
* Take `±n` Teams from the position of the cursor.
|
|
6088
6194
|
*
|
|
6089
6195
|
**/
|
|
6090
6196
|
take?: number
|
|
6091
6197
|
/**
|
|
6092
6198
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6093
6199
|
*
|
|
6094
|
-
* Skip the first `n`
|
|
6200
|
+
* Skip the first `n` Teams.
|
|
6095
6201
|
*
|
|
6096
6202
|
**/
|
|
6097
6203
|
skip?: number
|
|
6098
6204
|
/**
|
|
6099
6205
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6100
6206
|
*
|
|
6101
|
-
* Count returned
|
|
6207
|
+
* Count returned Teams
|
|
6102
6208
|
**/
|
|
6103
|
-
_count?: true |
|
|
6209
|
+
_count?: true | TeamCountAggregateInputType
|
|
6210
|
+
/**
|
|
6211
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6212
|
+
*
|
|
6213
|
+
* Select which fields to average
|
|
6214
|
+
**/
|
|
6215
|
+
_avg?: TeamAvgAggregateInputType
|
|
6216
|
+
/**
|
|
6217
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6218
|
+
*
|
|
6219
|
+
* Select which fields to sum
|
|
6220
|
+
**/
|
|
6221
|
+
_sum?: TeamSumAggregateInputType
|
|
6104
6222
|
/**
|
|
6105
6223
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6106
6224
|
*
|
|
6107
6225
|
* Select which fields to find the minimum value
|
|
6108
6226
|
**/
|
|
6109
|
-
_min?:
|
|
6227
|
+
_min?: TeamMinAggregateInputType
|
|
6110
6228
|
/**
|
|
6111
6229
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6112
6230
|
*
|
|
6113
6231
|
* Select which fields to find the maximum value
|
|
6114
6232
|
**/
|
|
6115
|
-
_max?:
|
|
6233
|
+
_max?: TeamMaxAggregateInputType
|
|
6116
6234
|
}
|
|
6117
6235
|
|
|
6118
|
-
export type
|
|
6119
|
-
[P in keyof T & keyof
|
|
6236
|
+
export type GetTeamAggregateType<T extends TeamAggregateArgs> = {
|
|
6237
|
+
[P in keyof T & keyof AggregateTeam]: P extends '_count' | 'count'
|
|
6120
6238
|
? T[P] extends true
|
|
6121
6239
|
? number
|
|
6122
|
-
: GetScalarType<T[P],
|
|
6123
|
-
: GetScalarType<T[P],
|
|
6240
|
+
: GetScalarType<T[P], AggregateTeam[P]>
|
|
6241
|
+
: GetScalarType<T[P], AggregateTeam[P]>
|
|
6124
6242
|
}
|
|
6125
6243
|
|
|
6126
6244
|
|
|
6127
6245
|
|
|
6128
6246
|
|
|
6129
|
-
export type
|
|
6130
|
-
where?:
|
|
6131
|
-
orderBy?: Enumerable<
|
|
6132
|
-
by: Array<
|
|
6133
|
-
having?:
|
|
6247
|
+
export type TeamGroupByArgs = {
|
|
6248
|
+
where?: TeamWhereInput
|
|
6249
|
+
orderBy?: Enumerable<TeamOrderByWithAggregationInput>
|
|
6250
|
+
by: Array<TeamScalarFieldEnum>
|
|
6251
|
+
having?: TeamScalarWhereWithAggregatesInput
|
|
6134
6252
|
take?: number
|
|
6135
6253
|
skip?: number
|
|
6136
|
-
_count?:
|
|
6137
|
-
|
|
6138
|
-
|
|
6254
|
+
_count?: TeamCountAggregateInputType | true
|
|
6255
|
+
_avg?: TeamAvgAggregateInputType
|
|
6256
|
+
_sum?: TeamSumAggregateInputType
|
|
6257
|
+
_min?: TeamMinAggregateInputType
|
|
6258
|
+
_max?: TeamMaxAggregateInputType
|
|
6139
6259
|
}
|
|
6140
6260
|
|
|
6141
6261
|
|
|
6142
|
-
export type
|
|
6262
|
+
export type TeamGroupByOutputType = {
|
|
6143
6263
|
id: string
|
|
6144
|
-
email: string
|
|
6145
6264
|
name: string
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6265
|
+
userCount: number
|
|
6266
|
+
subscriptionExpire: Date | null
|
|
6267
|
+
_count: TeamCountAggregateOutputType | null
|
|
6268
|
+
_avg: TeamAvgAggregateOutputType | null
|
|
6269
|
+
_sum: TeamSumAggregateOutputType | null
|
|
6270
|
+
_min: TeamMinAggregateOutputType | null
|
|
6271
|
+
_max: TeamMaxAggregateOutputType | null
|
|
6150
6272
|
}
|
|
6151
6273
|
|
|
6152
|
-
type
|
|
6274
|
+
type GetTeamGroupByPayload<T extends TeamGroupByArgs> = PrismaPromise<
|
|
6153
6275
|
Array<
|
|
6154
|
-
PickArray<
|
|
6276
|
+
PickArray<TeamGroupByOutputType, T['by']> &
|
|
6155
6277
|
{
|
|
6156
|
-
[P in ((keyof T) & (keyof
|
|
6278
|
+
[P in ((keyof T) & (keyof TeamGroupByOutputType))]: P extends '_count'
|
|
6157
6279
|
? T[P] extends boolean
|
|
6158
6280
|
? number
|
|
6159
|
-
: GetScalarType<T[P],
|
|
6160
|
-
: GetScalarType<T[P],
|
|
6281
|
+
: GetScalarType<T[P], TeamGroupByOutputType[P]>
|
|
6282
|
+
: GetScalarType<T[P], TeamGroupByOutputType[P]>
|
|
6161
6283
|
}
|
|
6162
6284
|
>
|
|
6163
6285
|
>
|
|
6164
6286
|
|
|
6165
6287
|
|
|
6166
|
-
export type
|
|
6288
|
+
export type TeamSelect = {
|
|
6167
6289
|
id?: boolean
|
|
6168
|
-
email?: boolean
|
|
6169
6290
|
name?: boolean
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6291
|
+
decks?: boolean | PackFindManyArgs
|
|
6292
|
+
userCount?: boolean
|
|
6293
|
+
subscriptionExpire?: boolean
|
|
6294
|
+
_count?: boolean | TeamCountOutputTypeArgs
|
|
6173
6295
|
}
|
|
6174
6296
|
|
|
6175
|
-
export type
|
|
6176
|
-
|
|
6177
|
-
_count?: boolean |
|
|
6297
|
+
export type TeamInclude = {
|
|
6298
|
+
decks?: boolean | PackFindManyArgs
|
|
6299
|
+
_count?: boolean | TeamCountOutputTypeArgs
|
|
6178
6300
|
}
|
|
6179
6301
|
|
|
6180
|
-
export type
|
|
6181
|
-
S extends boolean | null | undefined |
|
|
6302
|
+
export type TeamGetPayload<
|
|
6303
|
+
S extends boolean | null | undefined | TeamArgs,
|
|
6182
6304
|
U = keyof S
|
|
6183
6305
|
> = S extends true
|
|
6184
|
-
?
|
|
6306
|
+
? Team
|
|
6185
6307
|
: S extends undefined
|
|
6186
6308
|
? never
|
|
6187
|
-
: S extends
|
|
6309
|
+
: S extends TeamArgs | TeamFindManyArgs
|
|
6188
6310
|
?'include' extends U
|
|
6189
|
-
?
|
|
6311
|
+
? Team & {
|
|
6190
6312
|
[P in TrueKeys<S['include']>]:
|
|
6191
|
-
P extends '
|
|
6192
|
-
P extends '_count' ?
|
|
6313
|
+
P extends 'decks' ? Array < PackGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
6314
|
+
P extends '_count' ? TeamCountOutputTypeGetPayload<Exclude<S['include'], undefined | null>[P]> : never
|
|
6193
6315
|
}
|
|
6194
6316
|
: 'select' extends U
|
|
6195
6317
|
? {
|
|
6196
6318
|
[P in TrueKeys<S['select']>]:
|
|
6197
|
-
P extends '
|
|
6198
|
-
P extends '_count' ?
|
|
6319
|
+
P extends 'decks' ? Array < PackGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
6320
|
+
P extends '_count' ? TeamCountOutputTypeGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof Team ? Team[P] : never
|
|
6199
6321
|
}
|
|
6200
|
-
:
|
|
6201
|
-
:
|
|
6322
|
+
: Team
|
|
6323
|
+
: Team
|
|
6202
6324
|
|
|
6203
6325
|
|
|
6204
|
-
type
|
|
6205
|
-
Omit<
|
|
6206
|
-
select?:
|
|
6326
|
+
type TeamCountArgs = Merge<
|
|
6327
|
+
Omit<TeamFindManyArgs, 'select' | 'include'> & {
|
|
6328
|
+
select?: TeamCountAggregateInputType | true
|
|
6207
6329
|
}
|
|
6208
6330
|
>
|
|
6209
6331
|
|
|
6210
|
-
export interface
|
|
6332
|
+
export interface TeamDelegate<GlobalRejectSettings extends Prisma.RejectOnNotFound | Prisma.RejectPerOperation | false | undefined> {
|
|
6211
6333
|
/**
|
|
6212
|
-
* Find zero or one
|
|
6213
|
-
* @param {
|
|
6334
|
+
* Find zero or one Team that matches the filter.
|
|
6335
|
+
* @param {TeamFindUniqueArgs} args - Arguments to find a Team
|
|
6214
6336
|
* @example
|
|
6215
|
-
* // Get one
|
|
6216
|
-
* const
|
|
6337
|
+
* // Get one Team
|
|
6338
|
+
* const team = await prisma.team.findUnique({
|
|
6217
6339
|
* where: {
|
|
6218
6340
|
* // ... provide filter here
|
|
6219
6341
|
* }
|
|
6220
6342
|
* })
|
|
6221
6343
|
**/
|
|
6222
|
-
findUnique<T extends
|
|
6223
|
-
args: SelectSubset<T,
|
|
6224
|
-
): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findUnique', '
|
|
6344
|
+
findUnique<T extends TeamFindUniqueArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
|
|
6345
|
+
args: SelectSubset<T, TeamFindUniqueArgs>
|
|
6346
|
+
): 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
6347
|
|
|
6226
6348
|
/**
|
|
6227
|
-
* Find the first
|
|
6349
|
+
* Find the first Team that matches the filter.
|
|
6228
6350
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
6229
6351
|
* Read more here: https://pris.ly/d/null-undefined
|
|
6230
|
-
* @param {
|
|
6352
|
+
* @param {TeamFindFirstArgs} args - Arguments to find a Team
|
|
6231
6353
|
* @example
|
|
6232
|
-
* // Get one
|
|
6233
|
-
* const
|
|
6354
|
+
* // Get one Team
|
|
6355
|
+
* const team = await prisma.team.findFirst({
|
|
6234
6356
|
* where: {
|
|
6235
6357
|
* // ... provide filter here
|
|
6236
6358
|
* }
|
|
6237
6359
|
* })
|
|
6238
6360
|
**/
|
|
6239
|
-
findFirst<T extends
|
|
6240
|
-
args?: SelectSubset<T,
|
|
6241
|
-
): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findFirst', '
|
|
6361
|
+
findFirst<T extends TeamFindFirstArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
|
|
6362
|
+
args?: SelectSubset<T, TeamFindFirstArgs>
|
|
6363
|
+
): 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
6364
|
|
|
6243
6365
|
/**
|
|
6244
|
-
* Find zero or more
|
|
6366
|
+
* Find zero or more Teams that matches the filter.
|
|
6245
6367
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
6246
6368
|
* Read more here: https://pris.ly/d/null-undefined
|
|
6247
|
-
* @param {
|
|
6369
|
+
* @param {TeamFindManyArgs=} args - Arguments to filter and select certain fields only.
|
|
6248
6370
|
* @example
|
|
6249
|
-
* // Get all
|
|
6250
|
-
* const
|
|
6371
|
+
* // Get all Teams
|
|
6372
|
+
* const teams = await prisma.team.findMany()
|
|
6251
6373
|
*
|
|
6252
|
-
* // Get first 10
|
|
6253
|
-
* const
|
|
6374
|
+
* // Get first 10 Teams
|
|
6375
|
+
* const teams = await prisma.team.findMany({ take: 10 })
|
|
6254
6376
|
*
|
|
6255
6377
|
* // Only select the `id`
|
|
6256
|
-
* const
|
|
6378
|
+
* const teamWithIdOnly = await prisma.team.findMany({ select: { id: true } })
|
|
6257
6379
|
*
|
|
6258
6380
|
**/
|
|
6259
|
-
findMany<T extends
|
|
6260
|
-
args?: SelectSubset<T,
|
|
6261
|
-
): CheckSelect<T, PrismaPromise<Array<
|
|
6381
|
+
findMany<T extends TeamFindManyArgs>(
|
|
6382
|
+
args?: SelectSubset<T, TeamFindManyArgs>
|
|
6383
|
+
): CheckSelect<T, PrismaPromise<Array<Team>>, PrismaPromise<Array<TeamGetPayload<T>>>>
|
|
6262
6384
|
|
|
6263
6385
|
/**
|
|
6264
|
-
* Create a
|
|
6265
|
-
* @param {
|
|
6386
|
+
* Create a Team.
|
|
6387
|
+
* @param {TeamCreateArgs} args - Arguments to create a Team.
|
|
6266
6388
|
* @example
|
|
6267
|
-
* // Create one
|
|
6268
|
-
* const
|
|
6389
|
+
* // Create one Team
|
|
6390
|
+
* const Team = await prisma.team.create({
|
|
6269
6391
|
* data: {
|
|
6270
|
-
* // ... data to create a
|
|
6392
|
+
* // ... data to create a Team
|
|
6271
6393
|
* }
|
|
6272
6394
|
* })
|
|
6273
6395
|
*
|
|
6274
6396
|
**/
|
|
6275
|
-
create<T extends
|
|
6276
|
-
args: SelectSubset<T,
|
|
6277
|
-
): CheckSelect<T,
|
|
6397
|
+
create<T extends TeamCreateArgs>(
|
|
6398
|
+
args: SelectSubset<T, TeamCreateArgs>
|
|
6399
|
+
): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
|
|
6278
6400
|
|
|
6279
6401
|
/**
|
|
6280
|
-
* Create many
|
|
6281
|
-
* @param {
|
|
6402
|
+
* Create many Teams.
|
|
6403
|
+
* @param {TeamCreateManyArgs} args - Arguments to create many Teams.
|
|
6282
6404
|
* @example
|
|
6283
|
-
* // Create many
|
|
6284
|
-
* const
|
|
6405
|
+
* // Create many Teams
|
|
6406
|
+
* const team = await prisma.team.createMany({
|
|
6285
6407
|
* data: {
|
|
6286
6408
|
* // ... provide data here
|
|
6287
6409
|
* }
|
|
6288
6410
|
* })
|
|
6289
6411
|
*
|
|
6290
6412
|
**/
|
|
6291
|
-
createMany<T extends
|
|
6292
|
-
args?: SelectSubset<T,
|
|
6413
|
+
createMany<T extends TeamCreateManyArgs>(
|
|
6414
|
+
args?: SelectSubset<T, TeamCreateManyArgs>
|
|
6293
6415
|
): PrismaPromise<BatchPayload>
|
|
6294
6416
|
|
|
6295
6417
|
/**
|
|
6296
|
-
* Delete a
|
|
6297
|
-
* @param {
|
|
6418
|
+
* Delete a Team.
|
|
6419
|
+
* @param {TeamDeleteArgs} args - Arguments to delete one Team.
|
|
6298
6420
|
* @example
|
|
6299
|
-
* // Delete one
|
|
6300
|
-
* const
|
|
6421
|
+
* // Delete one Team
|
|
6422
|
+
* const Team = await prisma.team.delete({
|
|
6301
6423
|
* where: {
|
|
6302
|
-
* // ... filter to delete one
|
|
6424
|
+
* // ... filter to delete one Team
|
|
6303
6425
|
* }
|
|
6304
6426
|
* })
|
|
6305
6427
|
*
|
|
6306
6428
|
**/
|
|
6307
|
-
delete<T extends
|
|
6308
|
-
args: SelectSubset<T,
|
|
6309
|
-
): CheckSelect<T,
|
|
6429
|
+
delete<T extends TeamDeleteArgs>(
|
|
6430
|
+
args: SelectSubset<T, TeamDeleteArgs>
|
|
6431
|
+
): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
|
|
6310
6432
|
|
|
6311
6433
|
/**
|
|
6312
|
-
* Update one
|
|
6313
|
-
* @param {
|
|
6434
|
+
* Update one Team.
|
|
6435
|
+
* @param {TeamUpdateArgs} args - Arguments to update one Team.
|
|
6314
6436
|
* @example
|
|
6315
|
-
* // Update one
|
|
6316
|
-
* const
|
|
6437
|
+
* // Update one Team
|
|
6438
|
+
* const team = await prisma.team.update({
|
|
6317
6439
|
* where: {
|
|
6318
6440
|
* // ... provide filter here
|
|
6319
6441
|
* },
|
|
@@ -6323,34 +6445,34 @@ export namespace Prisma {
|
|
|
6323
6445
|
* })
|
|
6324
6446
|
*
|
|
6325
6447
|
**/
|
|
6326
|
-
update<T extends
|
|
6327
|
-
args: SelectSubset<T,
|
|
6328
|
-
): CheckSelect<T,
|
|
6448
|
+
update<T extends TeamUpdateArgs>(
|
|
6449
|
+
args: SelectSubset<T, TeamUpdateArgs>
|
|
6450
|
+
): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
|
|
6329
6451
|
|
|
6330
6452
|
/**
|
|
6331
|
-
* Delete zero or more
|
|
6332
|
-
* @param {
|
|
6453
|
+
* Delete zero or more Teams.
|
|
6454
|
+
* @param {TeamDeleteManyArgs} args - Arguments to filter Teams to delete.
|
|
6333
6455
|
* @example
|
|
6334
|
-
* // Delete a few
|
|
6335
|
-
* const { count } = await prisma.
|
|
6456
|
+
* // Delete a few Teams
|
|
6457
|
+
* const { count } = await prisma.team.deleteMany({
|
|
6336
6458
|
* where: {
|
|
6337
6459
|
* // ... provide filter here
|
|
6338
6460
|
* }
|
|
6339
6461
|
* })
|
|
6340
6462
|
*
|
|
6341
6463
|
**/
|
|
6342
|
-
deleteMany<T extends
|
|
6343
|
-
args?: SelectSubset<T,
|
|
6464
|
+
deleteMany<T extends TeamDeleteManyArgs>(
|
|
6465
|
+
args?: SelectSubset<T, TeamDeleteManyArgs>
|
|
6344
6466
|
): PrismaPromise<BatchPayload>
|
|
6345
6467
|
|
|
6346
6468
|
/**
|
|
6347
|
-
* Update zero or more
|
|
6469
|
+
* Update zero or more Teams.
|
|
6348
6470
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
6349
6471
|
* Read more here: https://pris.ly/d/null-undefined
|
|
6350
|
-
* @param {
|
|
6472
|
+
* @param {TeamUpdateManyArgs} args - Arguments to update one or more rows.
|
|
6351
6473
|
* @example
|
|
6352
|
-
* // Update many
|
|
6353
|
-
* const
|
|
6474
|
+
* // Update many Teams
|
|
6475
|
+
* const team = await prisma.team.updateMany({
|
|
6354
6476
|
* where: {
|
|
6355
6477
|
* // ... provide filter here
|
|
6356
6478
|
* },
|
|
@@ -6360,93 +6482,93 @@ export namespace Prisma {
|
|
|
6360
6482
|
* })
|
|
6361
6483
|
*
|
|
6362
6484
|
**/
|
|
6363
|
-
updateMany<T extends
|
|
6364
|
-
args: SelectSubset<T,
|
|
6485
|
+
updateMany<T extends TeamUpdateManyArgs>(
|
|
6486
|
+
args: SelectSubset<T, TeamUpdateManyArgs>
|
|
6365
6487
|
): PrismaPromise<BatchPayload>
|
|
6366
6488
|
|
|
6367
6489
|
/**
|
|
6368
|
-
* Create or update one
|
|
6369
|
-
* @param {
|
|
6490
|
+
* Create or update one Team.
|
|
6491
|
+
* @param {TeamUpsertArgs} args - Arguments to update or create a Team.
|
|
6370
6492
|
* @example
|
|
6371
|
-
* // Update or create a
|
|
6372
|
-
* const
|
|
6493
|
+
* // Update or create a Team
|
|
6494
|
+
* const team = await prisma.team.upsert({
|
|
6373
6495
|
* create: {
|
|
6374
|
-
* // ... data to create a
|
|
6496
|
+
* // ... data to create a Team
|
|
6375
6497
|
* },
|
|
6376
6498
|
* update: {
|
|
6377
6499
|
* // ... in case it already exists, update
|
|
6378
6500
|
* },
|
|
6379
6501
|
* where: {
|
|
6380
|
-
* // ... the filter for the
|
|
6502
|
+
* // ... the filter for the Team we want to update
|
|
6381
6503
|
* }
|
|
6382
6504
|
* })
|
|
6383
6505
|
**/
|
|
6384
|
-
upsert<T extends
|
|
6385
|
-
args: SelectSubset<T,
|
|
6386
|
-
): CheckSelect<T,
|
|
6506
|
+
upsert<T extends TeamUpsertArgs>(
|
|
6507
|
+
args: SelectSubset<T, TeamUpsertArgs>
|
|
6508
|
+
): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
|
|
6387
6509
|
|
|
6388
6510
|
/**
|
|
6389
|
-
* Find one
|
|
6511
|
+
* Find one Team that matches the filter or throw
|
|
6390
6512
|
* `NotFoundError` if no matches were found.
|
|
6391
|
-
* @param {
|
|
6513
|
+
* @param {TeamFindUniqueOrThrowArgs} args - Arguments to find a Team
|
|
6392
6514
|
* @example
|
|
6393
|
-
* // Get one
|
|
6394
|
-
* const
|
|
6515
|
+
* // Get one Team
|
|
6516
|
+
* const team = await prisma.team.findUniqueOrThrow({
|
|
6395
6517
|
* where: {
|
|
6396
6518
|
* // ... provide filter here
|
|
6397
6519
|
* }
|
|
6398
6520
|
* })
|
|
6399
6521
|
**/
|
|
6400
|
-
findUniqueOrThrow<T extends
|
|
6401
|
-
args?: SelectSubset<T,
|
|
6402
|
-
): CheckSelect<T,
|
|
6522
|
+
findUniqueOrThrow<T extends TeamFindUniqueOrThrowArgs>(
|
|
6523
|
+
args?: SelectSubset<T, TeamFindUniqueOrThrowArgs>
|
|
6524
|
+
): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
|
|
6403
6525
|
|
|
6404
6526
|
/**
|
|
6405
|
-
* Find the first
|
|
6527
|
+
* Find the first Team that matches the filter or
|
|
6406
6528
|
* throw `NotFoundError` if no matches were found.
|
|
6407
6529
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
6408
6530
|
* Read more here: https://pris.ly/d/null-undefined
|
|
6409
|
-
* @param {
|
|
6531
|
+
* @param {TeamFindFirstOrThrowArgs} args - Arguments to find a Team
|
|
6410
6532
|
* @example
|
|
6411
|
-
* // Get one
|
|
6412
|
-
* const
|
|
6533
|
+
* // Get one Team
|
|
6534
|
+
* const team = await prisma.team.findFirstOrThrow({
|
|
6413
6535
|
* where: {
|
|
6414
6536
|
* // ... provide filter here
|
|
6415
6537
|
* }
|
|
6416
6538
|
* })
|
|
6417
6539
|
**/
|
|
6418
|
-
findFirstOrThrow<T extends
|
|
6419
|
-
args?: SelectSubset<T,
|
|
6420
|
-
): CheckSelect<T,
|
|
6540
|
+
findFirstOrThrow<T extends TeamFindFirstOrThrowArgs>(
|
|
6541
|
+
args?: SelectSubset<T, TeamFindFirstOrThrowArgs>
|
|
6542
|
+
): CheckSelect<T, Prisma__TeamClient<Team>, Prisma__TeamClient<TeamGetPayload<T>>>
|
|
6421
6543
|
|
|
6422
6544
|
/**
|
|
6423
|
-
* Count the number of
|
|
6545
|
+
* Count the number of Teams.
|
|
6424
6546
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
6425
6547
|
* Read more here: https://pris.ly/d/null-undefined
|
|
6426
|
-
* @param {
|
|
6548
|
+
* @param {TeamCountArgs} args - Arguments to filter Teams to count.
|
|
6427
6549
|
* @example
|
|
6428
|
-
* // Count the number of
|
|
6429
|
-
* const count = await prisma.
|
|
6550
|
+
* // Count the number of Teams
|
|
6551
|
+
* const count = await prisma.team.count({
|
|
6430
6552
|
* where: {
|
|
6431
|
-
* // ... the filter for the
|
|
6553
|
+
* // ... the filter for the Teams we want to count
|
|
6432
6554
|
* }
|
|
6433
6555
|
* })
|
|
6434
6556
|
**/
|
|
6435
|
-
count<T extends
|
|
6436
|
-
args?: Subset<T,
|
|
6557
|
+
count<T extends TeamCountArgs>(
|
|
6558
|
+
args?: Subset<T, TeamCountArgs>,
|
|
6437
6559
|
): PrismaPromise<
|
|
6438
6560
|
T extends _Record<'select', any>
|
|
6439
6561
|
? T['select'] extends true
|
|
6440
6562
|
? number
|
|
6441
|
-
: GetScalarType<T['select'],
|
|
6563
|
+
: GetScalarType<T['select'], TeamCountAggregateOutputType>
|
|
6442
6564
|
: number
|
|
6443
6565
|
>
|
|
6444
6566
|
|
|
6445
6567
|
/**
|
|
6446
|
-
* Allows you to perform aggregations operations on a
|
|
6568
|
+
* Allows you to perform aggregations operations on a Team.
|
|
6447
6569
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
6448
6570
|
* Read more here: https://pris.ly/d/null-undefined
|
|
6449
|
-
* @param {
|
|
6571
|
+
* @param {TeamAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
6450
6572
|
* @example
|
|
6451
6573
|
* // Ordered by age ascending
|
|
6452
6574
|
* // Where email contains prisma.io
|
|
@@ -6466,13 +6588,13 @@ export namespace Prisma {
|
|
|
6466
6588
|
* take: 10,
|
|
6467
6589
|
* })
|
|
6468
6590
|
**/
|
|
6469
|
-
aggregate<T extends
|
|
6591
|
+
aggregate<T extends TeamAggregateArgs>(args: Subset<T, TeamAggregateArgs>): PrismaPromise<GetTeamAggregateType<T>>
|
|
6470
6592
|
|
|
6471
6593
|
/**
|
|
6472
|
-
* Group by
|
|
6594
|
+
* Group by Team.
|
|
6473
6595
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
6474
6596
|
* Read more here: https://pris.ly/d/null-undefined
|
|
6475
|
-
* @param {
|
|
6597
|
+
* @param {TeamGroupByArgs} args - Group by arguments.
|
|
6476
6598
|
* @example
|
|
6477
6599
|
* // Group by city, order by createdAt, get count
|
|
6478
6600
|
* const result = await prisma.user.groupBy({
|
|
@@ -6487,7 +6609,928 @@ export namespace Prisma {
|
|
|
6487
6609
|
*
|
|
6488
6610
|
**/
|
|
6489
6611
|
groupBy<
|
|
6490
|
-
T extends
|
|
6612
|
+
T extends TeamGroupByArgs,
|
|
6613
|
+
HasSelectOrTake extends Or<
|
|
6614
|
+
Extends<'skip', Keys<T>>,
|
|
6615
|
+
Extends<'take', Keys<T>>
|
|
6616
|
+
>,
|
|
6617
|
+
OrderByArg extends True extends HasSelectOrTake
|
|
6618
|
+
? { orderBy: TeamGroupByArgs['orderBy'] }
|
|
6619
|
+
: { orderBy?: TeamGroupByArgs['orderBy'] },
|
|
6620
|
+
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
6621
|
+
ByFields extends TupleToUnion<T['by']>,
|
|
6622
|
+
ByValid extends Has<ByFields, OrderFields>,
|
|
6623
|
+
HavingFields extends GetHavingFields<T['having']>,
|
|
6624
|
+
HavingValid extends Has<ByFields, HavingFields>,
|
|
6625
|
+
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
6626
|
+
InputErrors extends ByEmpty extends True
|
|
6627
|
+
? `Error: "by" must not be empty.`
|
|
6628
|
+
: HavingValid extends False
|
|
6629
|
+
? {
|
|
6630
|
+
[P in HavingFields]: P extends ByFields
|
|
6631
|
+
? never
|
|
6632
|
+
: P extends string
|
|
6633
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
6634
|
+
: [
|
|
6635
|
+
Error,
|
|
6636
|
+
'Field ',
|
|
6637
|
+
P,
|
|
6638
|
+
` in "having" needs to be provided in "by"`,
|
|
6639
|
+
]
|
|
6640
|
+
}[HavingFields]
|
|
6641
|
+
: 'take' extends Keys<T>
|
|
6642
|
+
? 'orderBy' extends Keys<T>
|
|
6643
|
+
? ByValid extends True
|
|
6644
|
+
? {}
|
|
6645
|
+
: {
|
|
6646
|
+
[P in OrderFields]: P extends ByFields
|
|
6647
|
+
? never
|
|
6648
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
6649
|
+
}[OrderFields]
|
|
6650
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
6651
|
+
: 'skip' extends Keys<T>
|
|
6652
|
+
? 'orderBy' extends Keys<T>
|
|
6653
|
+
? ByValid extends True
|
|
6654
|
+
? {}
|
|
6655
|
+
: {
|
|
6656
|
+
[P in OrderFields]: P extends ByFields
|
|
6657
|
+
? never
|
|
6658
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
6659
|
+
}[OrderFields]
|
|
6660
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
6661
|
+
: ByValid extends True
|
|
6662
|
+
? {}
|
|
6663
|
+
: {
|
|
6664
|
+
[P in OrderFields]: P extends ByFields
|
|
6665
|
+
? never
|
|
6666
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
6667
|
+
}[OrderFields]
|
|
6668
|
+
>(args: SubsetIntersection<T, TeamGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTeamGroupByPayload<T> : PrismaPromise<InputErrors>
|
|
6669
|
+
|
|
6670
|
+
}
|
|
6671
|
+
|
|
6672
|
+
/**
|
|
6673
|
+
* The delegate class that acts as a "Promise-like" for Team.
|
|
6674
|
+
* Why is this prefixed with `Prisma__`?
|
|
6675
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
6676
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
6677
|
+
*/
|
|
6678
|
+
export class Prisma__TeamClient<T> implements PrismaPromise<T> {
|
|
6679
|
+
[prisma]: true;
|
|
6680
|
+
private readonly _dmmf;
|
|
6681
|
+
private readonly _fetcher;
|
|
6682
|
+
private readonly _queryType;
|
|
6683
|
+
private readonly _rootField;
|
|
6684
|
+
private readonly _clientMethod;
|
|
6685
|
+
private readonly _args;
|
|
6686
|
+
private readonly _dataPath;
|
|
6687
|
+
private readonly _errorFormat;
|
|
6688
|
+
private readonly _measurePerformance?;
|
|
6689
|
+
private _isList;
|
|
6690
|
+
private _callsite;
|
|
6691
|
+
private _requestPromise?;
|
|
6692
|
+
constructor(_dmmf: runtime.DMMFClass, _fetcher: PrismaClientFetcher, _queryType: 'query' | 'mutation', _rootField: string, _clientMethod: string, _args: any, _dataPath: string[], _errorFormat: ErrorFormat, _measurePerformance?: boolean | undefined, _isList?: boolean);
|
|
6693
|
+
readonly [Symbol.toStringTag]: 'PrismaClientPromise';
|
|
6694
|
+
|
|
6695
|
+
decks<T extends PackFindManyArgs = {}>(args?: Subset<T, PackFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Pack>>, PrismaPromise<Array<PackGetPayload<T>>>>;
|
|
6696
|
+
|
|
6697
|
+
private get _document();
|
|
6698
|
+
/**
|
|
6699
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
6700
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
6701
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
6702
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
6703
|
+
*/
|
|
6704
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
|
6705
|
+
/**
|
|
6706
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
6707
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
6708
|
+
* @returns A Promise for the completion of the callback.
|
|
6709
|
+
*/
|
|
6710
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
|
|
6711
|
+
/**
|
|
6712
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
6713
|
+
* resolved value cannot be modified from the callback.
|
|
6714
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
6715
|
+
* @returns A Promise for the completion of the callback.
|
|
6716
|
+
*/
|
|
6717
|
+
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
6718
|
+
}
|
|
6719
|
+
|
|
6720
|
+
|
|
6721
|
+
|
|
6722
|
+
// Custom InputTypes
|
|
6723
|
+
|
|
6724
|
+
/**
|
|
6725
|
+
* Team base type for findUnique actions
|
|
6726
|
+
*/
|
|
6727
|
+
export type TeamFindUniqueArgsBase = {
|
|
6728
|
+
/**
|
|
6729
|
+
* Select specific fields to fetch from the Team
|
|
6730
|
+
*
|
|
6731
|
+
**/
|
|
6732
|
+
select?: TeamSelect | null
|
|
6733
|
+
/**
|
|
6734
|
+
* Choose, which related nodes to fetch as well.
|
|
6735
|
+
*
|
|
6736
|
+
**/
|
|
6737
|
+
include?: TeamInclude | null
|
|
6738
|
+
/**
|
|
6739
|
+
* Filter, which Team to fetch.
|
|
6740
|
+
*
|
|
6741
|
+
**/
|
|
6742
|
+
where: TeamWhereUniqueInput
|
|
6743
|
+
}
|
|
6744
|
+
|
|
6745
|
+
/**
|
|
6746
|
+
* Team: findUnique
|
|
6747
|
+
*/
|
|
6748
|
+
export interface TeamFindUniqueArgs extends TeamFindUniqueArgsBase {
|
|
6749
|
+
/**
|
|
6750
|
+
* Throw an Error if query returns no results
|
|
6751
|
+
* @deprecated since 4.0.0: use `findUniqueOrThrow` method instead
|
|
6752
|
+
*/
|
|
6753
|
+
rejectOnNotFound?: RejectOnNotFound
|
|
6754
|
+
}
|
|
6755
|
+
|
|
6756
|
+
|
|
6757
|
+
/**
|
|
6758
|
+
* Team base type for findFirst actions
|
|
6759
|
+
*/
|
|
6760
|
+
export type TeamFindFirstArgsBase = {
|
|
6761
|
+
/**
|
|
6762
|
+
* Select specific fields to fetch from the Team
|
|
6763
|
+
*
|
|
6764
|
+
**/
|
|
6765
|
+
select?: TeamSelect | null
|
|
6766
|
+
/**
|
|
6767
|
+
* Choose, which related nodes to fetch as well.
|
|
6768
|
+
*
|
|
6769
|
+
**/
|
|
6770
|
+
include?: TeamInclude | null
|
|
6771
|
+
/**
|
|
6772
|
+
* Filter, which Team to fetch.
|
|
6773
|
+
*
|
|
6774
|
+
**/
|
|
6775
|
+
where?: TeamWhereInput
|
|
6776
|
+
/**
|
|
6777
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
6778
|
+
*
|
|
6779
|
+
* Determine the order of Teams to fetch.
|
|
6780
|
+
*
|
|
6781
|
+
**/
|
|
6782
|
+
orderBy?: Enumerable<TeamOrderByWithRelationInput>
|
|
6783
|
+
/**
|
|
6784
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
6785
|
+
*
|
|
6786
|
+
* Sets the position for searching for Teams.
|
|
6787
|
+
*
|
|
6788
|
+
**/
|
|
6789
|
+
cursor?: TeamWhereUniqueInput
|
|
6790
|
+
/**
|
|
6791
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6792
|
+
*
|
|
6793
|
+
* Take `±n` Teams from the position of the cursor.
|
|
6794
|
+
*
|
|
6795
|
+
**/
|
|
6796
|
+
take?: number
|
|
6797
|
+
/**
|
|
6798
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6799
|
+
*
|
|
6800
|
+
* Skip the first `n` Teams.
|
|
6801
|
+
*
|
|
6802
|
+
**/
|
|
6803
|
+
skip?: number
|
|
6804
|
+
/**
|
|
6805
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
6806
|
+
*
|
|
6807
|
+
* Filter by unique combinations of Teams.
|
|
6808
|
+
*
|
|
6809
|
+
**/
|
|
6810
|
+
distinct?: Enumerable<TeamScalarFieldEnum>
|
|
6811
|
+
}
|
|
6812
|
+
|
|
6813
|
+
/**
|
|
6814
|
+
* Team: findFirst
|
|
6815
|
+
*/
|
|
6816
|
+
export interface TeamFindFirstArgs extends TeamFindFirstArgsBase {
|
|
6817
|
+
/**
|
|
6818
|
+
* Throw an Error if query returns no results
|
|
6819
|
+
* @deprecated since 4.0.0: use `findFirstOrThrow` method instead
|
|
6820
|
+
*/
|
|
6821
|
+
rejectOnNotFound?: RejectOnNotFound
|
|
6822
|
+
}
|
|
6823
|
+
|
|
6824
|
+
|
|
6825
|
+
/**
|
|
6826
|
+
* Team findMany
|
|
6827
|
+
*/
|
|
6828
|
+
export type TeamFindManyArgs = {
|
|
6829
|
+
/**
|
|
6830
|
+
* Select specific fields to fetch from the Team
|
|
6831
|
+
*
|
|
6832
|
+
**/
|
|
6833
|
+
select?: TeamSelect | null
|
|
6834
|
+
/**
|
|
6835
|
+
* Choose, which related nodes to fetch as well.
|
|
6836
|
+
*
|
|
6837
|
+
**/
|
|
6838
|
+
include?: TeamInclude | null
|
|
6839
|
+
/**
|
|
6840
|
+
* Filter, which Teams to fetch.
|
|
6841
|
+
*
|
|
6842
|
+
**/
|
|
6843
|
+
where?: TeamWhereInput
|
|
6844
|
+
/**
|
|
6845
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
6846
|
+
*
|
|
6847
|
+
* Determine the order of Teams to fetch.
|
|
6848
|
+
*
|
|
6849
|
+
**/
|
|
6850
|
+
orderBy?: Enumerable<TeamOrderByWithRelationInput>
|
|
6851
|
+
/**
|
|
6852
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
6853
|
+
*
|
|
6854
|
+
* Sets the position for listing Teams.
|
|
6855
|
+
*
|
|
6856
|
+
**/
|
|
6857
|
+
cursor?: TeamWhereUniqueInput
|
|
6858
|
+
/**
|
|
6859
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6860
|
+
*
|
|
6861
|
+
* Take `±n` Teams from the position of the cursor.
|
|
6862
|
+
*
|
|
6863
|
+
**/
|
|
6864
|
+
take?: number
|
|
6865
|
+
/**
|
|
6866
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6867
|
+
*
|
|
6868
|
+
* Skip the first `n` Teams.
|
|
6869
|
+
*
|
|
6870
|
+
**/
|
|
6871
|
+
skip?: number
|
|
6872
|
+
distinct?: Enumerable<TeamScalarFieldEnum>
|
|
6873
|
+
}
|
|
6874
|
+
|
|
6875
|
+
|
|
6876
|
+
/**
|
|
6877
|
+
* Team create
|
|
6878
|
+
*/
|
|
6879
|
+
export type TeamCreateArgs = {
|
|
6880
|
+
/**
|
|
6881
|
+
* Select specific fields to fetch from the Team
|
|
6882
|
+
*
|
|
6883
|
+
**/
|
|
6884
|
+
select?: TeamSelect | null
|
|
6885
|
+
/**
|
|
6886
|
+
* Choose, which related nodes to fetch as well.
|
|
6887
|
+
*
|
|
6888
|
+
**/
|
|
6889
|
+
include?: TeamInclude | null
|
|
6890
|
+
/**
|
|
6891
|
+
* The data needed to create a Team.
|
|
6892
|
+
*
|
|
6893
|
+
**/
|
|
6894
|
+
data: XOR<TeamCreateInput, TeamUncheckedCreateInput>
|
|
6895
|
+
}
|
|
6896
|
+
|
|
6897
|
+
|
|
6898
|
+
/**
|
|
6899
|
+
* Team createMany
|
|
6900
|
+
*/
|
|
6901
|
+
export type TeamCreateManyArgs = {
|
|
6902
|
+
/**
|
|
6903
|
+
* The data used to create many Teams.
|
|
6904
|
+
*
|
|
6905
|
+
**/
|
|
6906
|
+
data: Enumerable<TeamCreateManyInput>
|
|
6907
|
+
skipDuplicates?: boolean
|
|
6908
|
+
}
|
|
6909
|
+
|
|
6910
|
+
|
|
6911
|
+
/**
|
|
6912
|
+
* Team update
|
|
6913
|
+
*/
|
|
6914
|
+
export type TeamUpdateArgs = {
|
|
6915
|
+
/**
|
|
6916
|
+
* Select specific fields to fetch from the Team
|
|
6917
|
+
*
|
|
6918
|
+
**/
|
|
6919
|
+
select?: TeamSelect | null
|
|
6920
|
+
/**
|
|
6921
|
+
* Choose, which related nodes to fetch as well.
|
|
6922
|
+
*
|
|
6923
|
+
**/
|
|
6924
|
+
include?: TeamInclude | null
|
|
6925
|
+
/**
|
|
6926
|
+
* The data needed to update a Team.
|
|
6927
|
+
*
|
|
6928
|
+
**/
|
|
6929
|
+
data: XOR<TeamUpdateInput, TeamUncheckedUpdateInput>
|
|
6930
|
+
/**
|
|
6931
|
+
* Choose, which Team to update.
|
|
6932
|
+
*
|
|
6933
|
+
**/
|
|
6934
|
+
where: TeamWhereUniqueInput
|
|
6935
|
+
}
|
|
6936
|
+
|
|
6937
|
+
|
|
6938
|
+
/**
|
|
6939
|
+
* Team updateMany
|
|
6940
|
+
*/
|
|
6941
|
+
export type TeamUpdateManyArgs = {
|
|
6942
|
+
/**
|
|
6943
|
+
* The data used to update Teams.
|
|
6944
|
+
*
|
|
6945
|
+
**/
|
|
6946
|
+
data: XOR<TeamUpdateManyMutationInput, TeamUncheckedUpdateManyInput>
|
|
6947
|
+
/**
|
|
6948
|
+
* Filter which Teams to update
|
|
6949
|
+
*
|
|
6950
|
+
**/
|
|
6951
|
+
where?: TeamWhereInput
|
|
6952
|
+
}
|
|
6953
|
+
|
|
6954
|
+
|
|
6955
|
+
/**
|
|
6956
|
+
* Team upsert
|
|
6957
|
+
*/
|
|
6958
|
+
export type TeamUpsertArgs = {
|
|
6959
|
+
/**
|
|
6960
|
+
* Select specific fields to fetch from the Team
|
|
6961
|
+
*
|
|
6962
|
+
**/
|
|
6963
|
+
select?: TeamSelect | null
|
|
6964
|
+
/**
|
|
6965
|
+
* Choose, which related nodes to fetch as well.
|
|
6966
|
+
*
|
|
6967
|
+
**/
|
|
6968
|
+
include?: TeamInclude | null
|
|
6969
|
+
/**
|
|
6970
|
+
* The filter to search for the Team to update in case it exists.
|
|
6971
|
+
*
|
|
6972
|
+
**/
|
|
6973
|
+
where: TeamWhereUniqueInput
|
|
6974
|
+
/**
|
|
6975
|
+
* In case the Team found by the `where` argument doesn't exist, create a new Team with this data.
|
|
6976
|
+
*
|
|
6977
|
+
**/
|
|
6978
|
+
create: XOR<TeamCreateInput, TeamUncheckedCreateInput>
|
|
6979
|
+
/**
|
|
6980
|
+
* In case the Team was found with the provided `where` argument, update it with this data.
|
|
6981
|
+
*
|
|
6982
|
+
**/
|
|
6983
|
+
update: XOR<TeamUpdateInput, TeamUncheckedUpdateInput>
|
|
6984
|
+
}
|
|
6985
|
+
|
|
6986
|
+
|
|
6987
|
+
/**
|
|
6988
|
+
* Team delete
|
|
6989
|
+
*/
|
|
6990
|
+
export type TeamDeleteArgs = {
|
|
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
|
+
* Filter which Team to delete.
|
|
7003
|
+
*
|
|
7004
|
+
**/
|
|
7005
|
+
where: TeamWhereUniqueInput
|
|
7006
|
+
}
|
|
7007
|
+
|
|
7008
|
+
|
|
7009
|
+
/**
|
|
7010
|
+
* Team deleteMany
|
|
7011
|
+
*/
|
|
7012
|
+
export type TeamDeleteManyArgs = {
|
|
7013
|
+
/**
|
|
7014
|
+
* Filter which Teams to delete
|
|
7015
|
+
*
|
|
7016
|
+
**/
|
|
7017
|
+
where?: TeamWhereInput
|
|
7018
|
+
}
|
|
7019
|
+
|
|
7020
|
+
|
|
7021
|
+
/**
|
|
7022
|
+
* Team: findUniqueOrThrow
|
|
7023
|
+
*/
|
|
7024
|
+
export type TeamFindUniqueOrThrowArgs = TeamFindUniqueArgsBase
|
|
7025
|
+
|
|
7026
|
+
|
|
7027
|
+
/**
|
|
7028
|
+
* Team: findFirstOrThrow
|
|
7029
|
+
*/
|
|
7030
|
+
export type TeamFindFirstOrThrowArgs = TeamFindFirstArgsBase
|
|
7031
|
+
|
|
7032
|
+
|
|
7033
|
+
/**
|
|
7034
|
+
* Team without action
|
|
7035
|
+
*/
|
|
7036
|
+
export type TeamArgs = {
|
|
7037
|
+
/**
|
|
7038
|
+
* Select specific fields to fetch from the Team
|
|
7039
|
+
*
|
|
7040
|
+
**/
|
|
7041
|
+
select?: TeamSelect | null
|
|
7042
|
+
/**
|
|
7043
|
+
* Choose, which related nodes to fetch as well.
|
|
7044
|
+
*
|
|
7045
|
+
**/
|
|
7046
|
+
include?: TeamInclude | null
|
|
7047
|
+
}
|
|
7048
|
+
|
|
7049
|
+
|
|
7050
|
+
|
|
7051
|
+
/**
|
|
7052
|
+
* Model Teacher
|
|
7053
|
+
*/
|
|
7054
|
+
|
|
7055
|
+
|
|
7056
|
+
export type AggregateTeacher = {
|
|
7057
|
+
_count: TeacherCountAggregateOutputType | null
|
|
7058
|
+
_min: TeacherMinAggregateOutputType | null
|
|
7059
|
+
_max: TeacherMaxAggregateOutputType | null
|
|
7060
|
+
}
|
|
7061
|
+
|
|
7062
|
+
export type TeacherMinAggregateOutputType = {
|
|
7063
|
+
id: string | null
|
|
7064
|
+
email: string | null
|
|
7065
|
+
name: string | null
|
|
7066
|
+
password: string | null
|
|
7067
|
+
}
|
|
7068
|
+
|
|
7069
|
+
export type TeacherMaxAggregateOutputType = {
|
|
7070
|
+
id: string | null
|
|
7071
|
+
email: string | null
|
|
7072
|
+
name: string | null
|
|
7073
|
+
password: string | null
|
|
7074
|
+
}
|
|
7075
|
+
|
|
7076
|
+
export type TeacherCountAggregateOutputType = {
|
|
7077
|
+
id: number
|
|
7078
|
+
email: number
|
|
7079
|
+
name: number
|
|
7080
|
+
password: number
|
|
7081
|
+
_all: number
|
|
7082
|
+
}
|
|
7083
|
+
|
|
7084
|
+
|
|
7085
|
+
export type TeacherMinAggregateInputType = {
|
|
7086
|
+
id?: true
|
|
7087
|
+
email?: true
|
|
7088
|
+
name?: true
|
|
7089
|
+
password?: true
|
|
7090
|
+
}
|
|
7091
|
+
|
|
7092
|
+
export type TeacherMaxAggregateInputType = {
|
|
7093
|
+
id?: true
|
|
7094
|
+
email?: true
|
|
7095
|
+
name?: true
|
|
7096
|
+
password?: true
|
|
7097
|
+
}
|
|
7098
|
+
|
|
7099
|
+
export type TeacherCountAggregateInputType = {
|
|
7100
|
+
id?: true
|
|
7101
|
+
email?: true
|
|
7102
|
+
name?: true
|
|
7103
|
+
password?: true
|
|
7104
|
+
_all?: true
|
|
7105
|
+
}
|
|
7106
|
+
|
|
7107
|
+
export type TeacherAggregateArgs = {
|
|
7108
|
+
/**
|
|
7109
|
+
* Filter which Teacher to aggregate.
|
|
7110
|
+
*
|
|
7111
|
+
**/
|
|
7112
|
+
where?: TeacherWhereInput
|
|
7113
|
+
/**
|
|
7114
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
7115
|
+
*
|
|
7116
|
+
* Determine the order of Teachers to fetch.
|
|
7117
|
+
*
|
|
7118
|
+
**/
|
|
7119
|
+
orderBy?: Enumerable<TeacherOrderByWithRelationInput>
|
|
7120
|
+
/**
|
|
7121
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
7122
|
+
*
|
|
7123
|
+
* Sets the start position
|
|
7124
|
+
*
|
|
7125
|
+
**/
|
|
7126
|
+
cursor?: TeacherWhereUniqueInput
|
|
7127
|
+
/**
|
|
7128
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
7129
|
+
*
|
|
7130
|
+
* Take `±n` Teachers from the position of the cursor.
|
|
7131
|
+
*
|
|
7132
|
+
**/
|
|
7133
|
+
take?: number
|
|
7134
|
+
/**
|
|
7135
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
7136
|
+
*
|
|
7137
|
+
* Skip the first `n` Teachers.
|
|
7138
|
+
*
|
|
7139
|
+
**/
|
|
7140
|
+
skip?: number
|
|
7141
|
+
/**
|
|
7142
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
7143
|
+
*
|
|
7144
|
+
* Count returned Teachers
|
|
7145
|
+
**/
|
|
7146
|
+
_count?: true | TeacherCountAggregateInputType
|
|
7147
|
+
/**
|
|
7148
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
7149
|
+
*
|
|
7150
|
+
* Select which fields to find the minimum value
|
|
7151
|
+
**/
|
|
7152
|
+
_min?: TeacherMinAggregateInputType
|
|
7153
|
+
/**
|
|
7154
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
7155
|
+
*
|
|
7156
|
+
* Select which fields to find the maximum value
|
|
7157
|
+
**/
|
|
7158
|
+
_max?: TeacherMaxAggregateInputType
|
|
7159
|
+
}
|
|
7160
|
+
|
|
7161
|
+
export type GetTeacherAggregateType<T extends TeacherAggregateArgs> = {
|
|
7162
|
+
[P in keyof T & keyof AggregateTeacher]: P extends '_count' | 'count'
|
|
7163
|
+
? T[P] extends true
|
|
7164
|
+
? number
|
|
7165
|
+
: GetScalarType<T[P], AggregateTeacher[P]>
|
|
7166
|
+
: GetScalarType<T[P], AggregateTeacher[P]>
|
|
7167
|
+
}
|
|
7168
|
+
|
|
7169
|
+
|
|
7170
|
+
|
|
7171
|
+
|
|
7172
|
+
export type TeacherGroupByArgs = {
|
|
7173
|
+
where?: TeacherWhereInput
|
|
7174
|
+
orderBy?: Enumerable<TeacherOrderByWithAggregationInput>
|
|
7175
|
+
by: Array<TeacherScalarFieldEnum>
|
|
7176
|
+
having?: TeacherScalarWhereWithAggregatesInput
|
|
7177
|
+
take?: number
|
|
7178
|
+
skip?: number
|
|
7179
|
+
_count?: TeacherCountAggregateInputType | true
|
|
7180
|
+
_min?: TeacherMinAggregateInputType
|
|
7181
|
+
_max?: TeacherMaxAggregateInputType
|
|
7182
|
+
}
|
|
7183
|
+
|
|
7184
|
+
|
|
7185
|
+
export type TeacherGroupByOutputType = {
|
|
7186
|
+
id: string
|
|
7187
|
+
email: string
|
|
7188
|
+
name: string
|
|
7189
|
+
password: string
|
|
7190
|
+
_count: TeacherCountAggregateOutputType | null
|
|
7191
|
+
_min: TeacherMinAggregateOutputType | null
|
|
7192
|
+
_max: TeacherMaxAggregateOutputType | null
|
|
7193
|
+
}
|
|
7194
|
+
|
|
7195
|
+
type GetTeacherGroupByPayload<T extends TeacherGroupByArgs> = PrismaPromise<
|
|
7196
|
+
Array<
|
|
7197
|
+
PickArray<TeacherGroupByOutputType, T['by']> &
|
|
7198
|
+
{
|
|
7199
|
+
[P in ((keyof T) & (keyof TeacherGroupByOutputType))]: P extends '_count'
|
|
7200
|
+
? T[P] extends boolean
|
|
7201
|
+
? number
|
|
7202
|
+
: GetScalarType<T[P], TeacherGroupByOutputType[P]>
|
|
7203
|
+
: GetScalarType<T[P], TeacherGroupByOutputType[P]>
|
|
7204
|
+
}
|
|
7205
|
+
>
|
|
7206
|
+
>
|
|
7207
|
+
|
|
7208
|
+
|
|
7209
|
+
export type TeacherSelect = {
|
|
7210
|
+
id?: boolean
|
|
7211
|
+
email?: boolean
|
|
7212
|
+
name?: boolean
|
|
7213
|
+
password?: boolean
|
|
7214
|
+
packs?: boolean | PackFindManyArgs
|
|
7215
|
+
_count?: boolean | TeacherCountOutputTypeArgs
|
|
7216
|
+
}
|
|
7217
|
+
|
|
7218
|
+
export type TeacherInclude = {
|
|
7219
|
+
packs?: boolean | PackFindManyArgs
|
|
7220
|
+
_count?: boolean | TeacherCountOutputTypeArgs
|
|
7221
|
+
}
|
|
7222
|
+
|
|
7223
|
+
export type TeacherGetPayload<
|
|
7224
|
+
S extends boolean | null | undefined | TeacherArgs,
|
|
7225
|
+
U = keyof S
|
|
7226
|
+
> = S extends true
|
|
7227
|
+
? Teacher
|
|
7228
|
+
: S extends undefined
|
|
7229
|
+
? never
|
|
7230
|
+
: S extends TeacherArgs | TeacherFindManyArgs
|
|
7231
|
+
?'include' extends U
|
|
7232
|
+
? Teacher & {
|
|
7233
|
+
[P in TrueKeys<S['include']>]:
|
|
7234
|
+
P extends 'packs' ? Array < PackGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
7235
|
+
P extends '_count' ? TeacherCountOutputTypeGetPayload<Exclude<S['include'], undefined | null>[P]> : never
|
|
7236
|
+
}
|
|
7237
|
+
: 'select' extends U
|
|
7238
|
+
? {
|
|
7239
|
+
[P in TrueKeys<S['select']>]:
|
|
7240
|
+
P extends 'packs' ? Array < PackGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
7241
|
+
P extends '_count' ? TeacherCountOutputTypeGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof Teacher ? Teacher[P] : never
|
|
7242
|
+
}
|
|
7243
|
+
: Teacher
|
|
7244
|
+
: Teacher
|
|
7245
|
+
|
|
7246
|
+
|
|
7247
|
+
type TeacherCountArgs = Merge<
|
|
7248
|
+
Omit<TeacherFindManyArgs, 'select' | 'include'> & {
|
|
7249
|
+
select?: TeacherCountAggregateInputType | true
|
|
7250
|
+
}
|
|
7251
|
+
>
|
|
7252
|
+
|
|
7253
|
+
export interface TeacherDelegate<GlobalRejectSettings extends Prisma.RejectOnNotFound | Prisma.RejectPerOperation | false | undefined> {
|
|
7254
|
+
/**
|
|
7255
|
+
* Find zero or one Teacher that matches the filter.
|
|
7256
|
+
* @param {TeacherFindUniqueArgs} args - Arguments to find a Teacher
|
|
7257
|
+
* @example
|
|
7258
|
+
* // Get one Teacher
|
|
7259
|
+
* const teacher = await prisma.teacher.findUnique({
|
|
7260
|
+
* where: {
|
|
7261
|
+
* // ... provide filter here
|
|
7262
|
+
* }
|
|
7263
|
+
* })
|
|
7264
|
+
**/
|
|
7265
|
+
findUnique<T extends TeacherFindUniqueArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
|
|
7266
|
+
args: SelectSubset<T, TeacherFindUniqueArgs>
|
|
7267
|
+
): 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 >>
|
|
7268
|
+
|
|
7269
|
+
/**
|
|
7270
|
+
* Find the first Teacher that matches the filter.
|
|
7271
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
7272
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
7273
|
+
* @param {TeacherFindFirstArgs} args - Arguments to find a Teacher
|
|
7274
|
+
* @example
|
|
7275
|
+
* // Get one Teacher
|
|
7276
|
+
* const teacher = await prisma.teacher.findFirst({
|
|
7277
|
+
* where: {
|
|
7278
|
+
* // ... provide filter here
|
|
7279
|
+
* }
|
|
7280
|
+
* })
|
|
7281
|
+
**/
|
|
7282
|
+
findFirst<T extends TeacherFindFirstArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
|
|
7283
|
+
args?: SelectSubset<T, TeacherFindFirstArgs>
|
|
7284
|
+
): 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 >>
|
|
7285
|
+
|
|
7286
|
+
/**
|
|
7287
|
+
* Find zero or more Teachers that matches the filter.
|
|
7288
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
7289
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
7290
|
+
* @param {TeacherFindManyArgs=} args - Arguments to filter and select certain fields only.
|
|
7291
|
+
* @example
|
|
7292
|
+
* // Get all Teachers
|
|
7293
|
+
* const teachers = await prisma.teacher.findMany()
|
|
7294
|
+
*
|
|
7295
|
+
* // Get first 10 Teachers
|
|
7296
|
+
* const teachers = await prisma.teacher.findMany({ take: 10 })
|
|
7297
|
+
*
|
|
7298
|
+
* // Only select the `id`
|
|
7299
|
+
* const teacherWithIdOnly = await prisma.teacher.findMany({ select: { id: true } })
|
|
7300
|
+
*
|
|
7301
|
+
**/
|
|
7302
|
+
findMany<T extends TeacherFindManyArgs>(
|
|
7303
|
+
args?: SelectSubset<T, TeacherFindManyArgs>
|
|
7304
|
+
): CheckSelect<T, PrismaPromise<Array<Teacher>>, PrismaPromise<Array<TeacherGetPayload<T>>>>
|
|
7305
|
+
|
|
7306
|
+
/**
|
|
7307
|
+
* Create a Teacher.
|
|
7308
|
+
* @param {TeacherCreateArgs} args - Arguments to create a Teacher.
|
|
7309
|
+
* @example
|
|
7310
|
+
* // Create one Teacher
|
|
7311
|
+
* const Teacher = await prisma.teacher.create({
|
|
7312
|
+
* data: {
|
|
7313
|
+
* // ... data to create a Teacher
|
|
7314
|
+
* }
|
|
7315
|
+
* })
|
|
7316
|
+
*
|
|
7317
|
+
**/
|
|
7318
|
+
create<T extends TeacherCreateArgs>(
|
|
7319
|
+
args: SelectSubset<T, TeacherCreateArgs>
|
|
7320
|
+
): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
|
|
7321
|
+
|
|
7322
|
+
/**
|
|
7323
|
+
* Create many Teachers.
|
|
7324
|
+
* @param {TeacherCreateManyArgs} args - Arguments to create many Teachers.
|
|
7325
|
+
* @example
|
|
7326
|
+
* // Create many Teachers
|
|
7327
|
+
* const teacher = await prisma.teacher.createMany({
|
|
7328
|
+
* data: {
|
|
7329
|
+
* // ... provide data here
|
|
7330
|
+
* }
|
|
7331
|
+
* })
|
|
7332
|
+
*
|
|
7333
|
+
**/
|
|
7334
|
+
createMany<T extends TeacherCreateManyArgs>(
|
|
7335
|
+
args?: SelectSubset<T, TeacherCreateManyArgs>
|
|
7336
|
+
): PrismaPromise<BatchPayload>
|
|
7337
|
+
|
|
7338
|
+
/**
|
|
7339
|
+
* Delete a Teacher.
|
|
7340
|
+
* @param {TeacherDeleteArgs} args - Arguments to delete one Teacher.
|
|
7341
|
+
* @example
|
|
7342
|
+
* // Delete one Teacher
|
|
7343
|
+
* const Teacher = await prisma.teacher.delete({
|
|
7344
|
+
* where: {
|
|
7345
|
+
* // ... filter to delete one Teacher
|
|
7346
|
+
* }
|
|
7347
|
+
* })
|
|
7348
|
+
*
|
|
7349
|
+
**/
|
|
7350
|
+
delete<T extends TeacherDeleteArgs>(
|
|
7351
|
+
args: SelectSubset<T, TeacherDeleteArgs>
|
|
7352
|
+
): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
|
|
7353
|
+
|
|
7354
|
+
/**
|
|
7355
|
+
* Update one Teacher.
|
|
7356
|
+
* @param {TeacherUpdateArgs} args - Arguments to update one Teacher.
|
|
7357
|
+
* @example
|
|
7358
|
+
* // Update one Teacher
|
|
7359
|
+
* const teacher = await prisma.teacher.update({
|
|
7360
|
+
* where: {
|
|
7361
|
+
* // ... provide filter here
|
|
7362
|
+
* },
|
|
7363
|
+
* data: {
|
|
7364
|
+
* // ... provide data here
|
|
7365
|
+
* }
|
|
7366
|
+
* })
|
|
7367
|
+
*
|
|
7368
|
+
**/
|
|
7369
|
+
update<T extends TeacherUpdateArgs>(
|
|
7370
|
+
args: SelectSubset<T, TeacherUpdateArgs>
|
|
7371
|
+
): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
|
|
7372
|
+
|
|
7373
|
+
/**
|
|
7374
|
+
* Delete zero or more Teachers.
|
|
7375
|
+
* @param {TeacherDeleteManyArgs} args - Arguments to filter Teachers to delete.
|
|
7376
|
+
* @example
|
|
7377
|
+
* // Delete a few Teachers
|
|
7378
|
+
* const { count } = await prisma.teacher.deleteMany({
|
|
7379
|
+
* where: {
|
|
7380
|
+
* // ... provide filter here
|
|
7381
|
+
* }
|
|
7382
|
+
* })
|
|
7383
|
+
*
|
|
7384
|
+
**/
|
|
7385
|
+
deleteMany<T extends TeacherDeleteManyArgs>(
|
|
7386
|
+
args?: SelectSubset<T, TeacherDeleteManyArgs>
|
|
7387
|
+
): PrismaPromise<BatchPayload>
|
|
7388
|
+
|
|
7389
|
+
/**
|
|
7390
|
+
* Update zero or more Teachers.
|
|
7391
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
7392
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
7393
|
+
* @param {TeacherUpdateManyArgs} args - Arguments to update one or more rows.
|
|
7394
|
+
* @example
|
|
7395
|
+
* // Update many Teachers
|
|
7396
|
+
* const teacher = await prisma.teacher.updateMany({
|
|
7397
|
+
* where: {
|
|
7398
|
+
* // ... provide filter here
|
|
7399
|
+
* },
|
|
7400
|
+
* data: {
|
|
7401
|
+
* // ... provide data here
|
|
7402
|
+
* }
|
|
7403
|
+
* })
|
|
7404
|
+
*
|
|
7405
|
+
**/
|
|
7406
|
+
updateMany<T extends TeacherUpdateManyArgs>(
|
|
7407
|
+
args: SelectSubset<T, TeacherUpdateManyArgs>
|
|
7408
|
+
): PrismaPromise<BatchPayload>
|
|
7409
|
+
|
|
7410
|
+
/**
|
|
7411
|
+
* Create or update one Teacher.
|
|
7412
|
+
* @param {TeacherUpsertArgs} args - Arguments to update or create a Teacher.
|
|
7413
|
+
* @example
|
|
7414
|
+
* // Update or create a Teacher
|
|
7415
|
+
* const teacher = await prisma.teacher.upsert({
|
|
7416
|
+
* create: {
|
|
7417
|
+
* // ... data to create a Teacher
|
|
7418
|
+
* },
|
|
7419
|
+
* update: {
|
|
7420
|
+
* // ... in case it already exists, update
|
|
7421
|
+
* },
|
|
7422
|
+
* where: {
|
|
7423
|
+
* // ... the filter for the Teacher we want to update
|
|
7424
|
+
* }
|
|
7425
|
+
* })
|
|
7426
|
+
**/
|
|
7427
|
+
upsert<T extends TeacherUpsertArgs>(
|
|
7428
|
+
args: SelectSubset<T, TeacherUpsertArgs>
|
|
7429
|
+
): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
|
|
7430
|
+
|
|
7431
|
+
/**
|
|
7432
|
+
* Find one Teacher that matches the filter or throw
|
|
7433
|
+
* `NotFoundError` if no matches were found.
|
|
7434
|
+
* @param {TeacherFindUniqueOrThrowArgs} args - Arguments to find a Teacher
|
|
7435
|
+
* @example
|
|
7436
|
+
* // Get one Teacher
|
|
7437
|
+
* const teacher = await prisma.teacher.findUniqueOrThrow({
|
|
7438
|
+
* where: {
|
|
7439
|
+
* // ... provide filter here
|
|
7440
|
+
* }
|
|
7441
|
+
* })
|
|
7442
|
+
**/
|
|
7443
|
+
findUniqueOrThrow<T extends TeacherFindUniqueOrThrowArgs>(
|
|
7444
|
+
args?: SelectSubset<T, TeacherFindUniqueOrThrowArgs>
|
|
7445
|
+
): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
|
|
7446
|
+
|
|
7447
|
+
/**
|
|
7448
|
+
* Find the first Teacher that matches the filter or
|
|
7449
|
+
* throw `NotFoundError` if no matches were found.
|
|
7450
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
7451
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
7452
|
+
* @param {TeacherFindFirstOrThrowArgs} args - Arguments to find a Teacher
|
|
7453
|
+
* @example
|
|
7454
|
+
* // Get one Teacher
|
|
7455
|
+
* const teacher = await prisma.teacher.findFirstOrThrow({
|
|
7456
|
+
* where: {
|
|
7457
|
+
* // ... provide filter here
|
|
7458
|
+
* }
|
|
7459
|
+
* })
|
|
7460
|
+
**/
|
|
7461
|
+
findFirstOrThrow<T extends TeacherFindFirstOrThrowArgs>(
|
|
7462
|
+
args?: SelectSubset<T, TeacherFindFirstOrThrowArgs>
|
|
7463
|
+
): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
|
|
7464
|
+
|
|
7465
|
+
/**
|
|
7466
|
+
* Count the number of Teachers.
|
|
7467
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
7468
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
7469
|
+
* @param {TeacherCountArgs} args - Arguments to filter Teachers to count.
|
|
7470
|
+
* @example
|
|
7471
|
+
* // Count the number of Teachers
|
|
7472
|
+
* const count = await prisma.teacher.count({
|
|
7473
|
+
* where: {
|
|
7474
|
+
* // ... the filter for the Teachers we want to count
|
|
7475
|
+
* }
|
|
7476
|
+
* })
|
|
7477
|
+
**/
|
|
7478
|
+
count<T extends TeacherCountArgs>(
|
|
7479
|
+
args?: Subset<T, TeacherCountArgs>,
|
|
7480
|
+
): PrismaPromise<
|
|
7481
|
+
T extends _Record<'select', any>
|
|
7482
|
+
? T['select'] extends true
|
|
7483
|
+
? number
|
|
7484
|
+
: GetScalarType<T['select'], TeacherCountAggregateOutputType>
|
|
7485
|
+
: number
|
|
7486
|
+
>
|
|
7487
|
+
|
|
7488
|
+
/**
|
|
7489
|
+
* Allows you to perform aggregations operations on a Teacher.
|
|
7490
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
7491
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
7492
|
+
* @param {TeacherAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
7493
|
+
* @example
|
|
7494
|
+
* // Ordered by age ascending
|
|
7495
|
+
* // Where email contains prisma.io
|
|
7496
|
+
* // Limited to the 10 users
|
|
7497
|
+
* const aggregations = await prisma.user.aggregate({
|
|
7498
|
+
* _avg: {
|
|
7499
|
+
* age: true,
|
|
7500
|
+
* },
|
|
7501
|
+
* where: {
|
|
7502
|
+
* email: {
|
|
7503
|
+
* contains: "prisma.io",
|
|
7504
|
+
* },
|
|
7505
|
+
* },
|
|
7506
|
+
* orderBy: {
|
|
7507
|
+
* age: "asc",
|
|
7508
|
+
* },
|
|
7509
|
+
* take: 10,
|
|
7510
|
+
* })
|
|
7511
|
+
**/
|
|
7512
|
+
aggregate<T extends TeacherAggregateArgs>(args: Subset<T, TeacherAggregateArgs>): PrismaPromise<GetTeacherAggregateType<T>>
|
|
7513
|
+
|
|
7514
|
+
/**
|
|
7515
|
+
* Group by Teacher.
|
|
7516
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
7517
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
7518
|
+
* @param {TeacherGroupByArgs} args - Group by arguments.
|
|
7519
|
+
* @example
|
|
7520
|
+
* // Group by city, order by createdAt, get count
|
|
7521
|
+
* const result = await prisma.user.groupBy({
|
|
7522
|
+
* by: ['city', 'createdAt'],
|
|
7523
|
+
* orderBy: {
|
|
7524
|
+
* createdAt: true
|
|
7525
|
+
* },
|
|
7526
|
+
* _count: {
|
|
7527
|
+
* _all: true
|
|
7528
|
+
* },
|
|
7529
|
+
* })
|
|
7530
|
+
*
|
|
7531
|
+
**/
|
|
7532
|
+
groupBy<
|
|
7533
|
+
T extends TeacherGroupByArgs,
|
|
6491
7534
|
HasSelectOrTake extends Or<
|
|
6492
7535
|
Extends<'skip', Keys<T>>,
|
|
6493
7536
|
Extends<'take', Keys<T>>
|
|
@@ -9793,7 +10836,8 @@ export namespace Prisma {
|
|
|
9793
10836
|
longDescription: 'longDescription',
|
|
9794
10837
|
categoryId: 'categoryId',
|
|
9795
10838
|
published: 'published',
|
|
9796
|
-
currentPrice: 'currentPrice'
|
|
10839
|
+
currentPrice: 'currentPrice',
|
|
10840
|
+
public: 'public'
|
|
9797
10841
|
};
|
|
9798
10842
|
|
|
9799
10843
|
export type PackScalarFieldEnum = (typeof PackScalarFieldEnum)[keyof typeof PackScalarFieldEnum]
|
|
@@ -9839,6 +10883,16 @@ export namespace Prisma {
|
|
|
9839
10883
|
export type TeacherScalarFieldEnum = (typeof TeacherScalarFieldEnum)[keyof typeof TeacherScalarFieldEnum]
|
|
9840
10884
|
|
|
9841
10885
|
|
|
10886
|
+
export const TeamScalarFieldEnum: {
|
|
10887
|
+
id: 'id',
|
|
10888
|
+
name: 'name',
|
|
10889
|
+
userCount: 'userCount',
|
|
10890
|
+
subscriptionExpire: 'subscriptionExpire'
|
|
10891
|
+
};
|
|
10892
|
+
|
|
10893
|
+
export type TeamScalarFieldEnum = (typeof TeamScalarFieldEnum)[keyof typeof TeamScalarFieldEnum]
|
|
10894
|
+
|
|
10895
|
+
|
|
9842
10896
|
export const TransactionIsolationLevel: {
|
|
9843
10897
|
ReadUncommitted: 'ReadUncommitted',
|
|
9844
10898
|
ReadCommitted: 'ReadCommitted',
|
|
@@ -10020,10 +11074,12 @@ export namespace Prisma {
|
|
|
10020
11074
|
category?: XOR<CategoryRelationFilter, CategoryWhereInput> | null
|
|
10021
11075
|
categoryId?: StringNullableFilter | string | null
|
|
10022
11076
|
published?: BoolFilter | boolean
|
|
11077
|
+
currentPrice?: DecimalFilter | Decimal | DecimalJsLike | number | string
|
|
11078
|
+
public?: BoolFilter | boolean
|
|
10023
11079
|
cards?: CardListRelationFilter
|
|
10024
11080
|
users?: UserListRelationFilter
|
|
10025
|
-
|
|
10026
|
-
|
|
11081
|
+
purchases?: PurchaseListRelationFilter
|
|
11082
|
+
teams?: TeamListRelationFilter
|
|
10027
11083
|
}
|
|
10028
11084
|
|
|
10029
11085
|
export type PackOrderByWithRelationInput = {
|
|
@@ -10036,10 +11092,12 @@ export namespace Prisma {
|
|
|
10036
11092
|
category?: CategoryOrderByWithRelationInput
|
|
10037
11093
|
categoryId?: SortOrder
|
|
10038
11094
|
published?: SortOrder
|
|
11095
|
+
currentPrice?: SortOrder
|
|
11096
|
+
public?: SortOrder
|
|
10039
11097
|
cards?: CardOrderByRelationAggregateInput
|
|
10040
11098
|
users?: UserOrderByRelationAggregateInput
|
|
10041
|
-
|
|
10042
|
-
|
|
11099
|
+
purchases?: PurchaseOrderByRelationAggregateInput
|
|
11100
|
+
teams?: TeamOrderByRelationAggregateInput
|
|
10043
11101
|
}
|
|
10044
11102
|
|
|
10045
11103
|
export type PackWhereUniqueInput = {
|
|
@@ -10055,6 +11113,7 @@ export namespace Prisma {
|
|
|
10055
11113
|
categoryId?: SortOrder
|
|
10056
11114
|
published?: SortOrder
|
|
10057
11115
|
currentPrice?: SortOrder
|
|
11116
|
+
public?: SortOrder
|
|
10058
11117
|
_count?: PackCountOrderByAggregateInput
|
|
10059
11118
|
_avg?: PackAvgOrderByAggregateInput
|
|
10060
11119
|
_max?: PackMaxOrderByAggregateInput
|
|
@@ -10074,6 +11133,7 @@ export namespace Prisma {
|
|
|
10074
11133
|
categoryId?: StringNullableWithAggregatesFilter | string | null
|
|
10075
11134
|
published?: BoolWithAggregatesFilter | boolean
|
|
10076
11135
|
currentPrice?: DecimalWithAggregatesFilter | Decimal | DecimalJsLike | number | string
|
|
11136
|
+
public?: BoolWithAggregatesFilter | boolean
|
|
10077
11137
|
}
|
|
10078
11138
|
|
|
10079
11139
|
export type UserWhereInput = {
|
|
@@ -10124,6 +11184,51 @@ export namespace Prisma {
|
|
|
10124
11184
|
name?: StringWithAggregatesFilter | string
|
|
10125
11185
|
}
|
|
10126
11186
|
|
|
11187
|
+
export type TeamWhereInput = {
|
|
11188
|
+
AND?: Enumerable<TeamWhereInput>
|
|
11189
|
+
OR?: Enumerable<TeamWhereInput>
|
|
11190
|
+
NOT?: Enumerable<TeamWhereInput>
|
|
11191
|
+
id?: StringFilter | string
|
|
11192
|
+
name?: StringFilter | string
|
|
11193
|
+
decks?: PackListRelationFilter
|
|
11194
|
+
userCount?: IntFilter | number
|
|
11195
|
+
subscriptionExpire?: DateTimeNullableFilter | Date | string | null
|
|
11196
|
+
}
|
|
11197
|
+
|
|
11198
|
+
export type TeamOrderByWithRelationInput = {
|
|
11199
|
+
id?: SortOrder
|
|
11200
|
+
name?: SortOrder
|
|
11201
|
+
decks?: PackOrderByRelationAggregateInput
|
|
11202
|
+
userCount?: SortOrder
|
|
11203
|
+
subscriptionExpire?: SortOrder
|
|
11204
|
+
}
|
|
11205
|
+
|
|
11206
|
+
export type TeamWhereUniqueInput = {
|
|
11207
|
+
id?: string
|
|
11208
|
+
}
|
|
11209
|
+
|
|
11210
|
+
export type TeamOrderByWithAggregationInput = {
|
|
11211
|
+
id?: SortOrder
|
|
11212
|
+
name?: SortOrder
|
|
11213
|
+
userCount?: SortOrder
|
|
11214
|
+
subscriptionExpire?: SortOrder
|
|
11215
|
+
_count?: TeamCountOrderByAggregateInput
|
|
11216
|
+
_avg?: TeamAvgOrderByAggregateInput
|
|
11217
|
+
_max?: TeamMaxOrderByAggregateInput
|
|
11218
|
+
_min?: TeamMinOrderByAggregateInput
|
|
11219
|
+
_sum?: TeamSumOrderByAggregateInput
|
|
11220
|
+
}
|
|
11221
|
+
|
|
11222
|
+
export type TeamScalarWhereWithAggregatesInput = {
|
|
11223
|
+
AND?: Enumerable<TeamScalarWhereWithAggregatesInput>
|
|
11224
|
+
OR?: Enumerable<TeamScalarWhereWithAggregatesInput>
|
|
11225
|
+
NOT?: Enumerable<TeamScalarWhereWithAggregatesInput>
|
|
11226
|
+
id?: StringWithAggregatesFilter | string
|
|
11227
|
+
name?: StringWithAggregatesFilter | string
|
|
11228
|
+
userCount?: IntWithAggregatesFilter | number
|
|
11229
|
+
subscriptionExpire?: DateTimeNullableWithAggregatesFilter | Date | string | null
|
|
11230
|
+
}
|
|
11231
|
+
|
|
10127
11232
|
export type TeacherWhereInput = {
|
|
10128
11233
|
AND?: Enumerable<TeacherWhereInput>
|
|
10129
11234
|
OR?: Enumerable<TeacherWhereInput>
|
|
@@ -10467,10 +11572,12 @@ export namespace Prisma {
|
|
|
10467
11572
|
longDescription?: string
|
|
10468
11573
|
category?: CategoryCreateNestedOneWithoutPacksInput
|
|
10469
11574
|
published?: boolean
|
|
11575
|
+
currentPrice: Decimal | DecimalJsLike | number | string
|
|
11576
|
+
public: boolean
|
|
10470
11577
|
cards?: CardCreateNestedManyWithoutPackInput
|
|
10471
11578
|
users?: UserCreateNestedManyWithoutPacksInput
|
|
10472
|
-
|
|
10473
|
-
|
|
11579
|
+
purchases?: PurchaseCreateNestedManyWithoutPackInput
|
|
11580
|
+
teams?: TeamCreateNestedManyWithoutDecksInput
|
|
10474
11581
|
}
|
|
10475
11582
|
|
|
10476
11583
|
export type PackUncheckedCreateInput = {
|
|
@@ -10481,10 +11588,12 @@ export namespace Prisma {
|
|
|
10481
11588
|
longDescription?: string
|
|
10482
11589
|
categoryId?: string | null
|
|
10483
11590
|
published?: boolean
|
|
11591
|
+
currentPrice: Decimal | DecimalJsLike | number | string
|
|
11592
|
+
public: boolean
|
|
10484
11593
|
cards?: CardUncheckedCreateNestedManyWithoutPackInput
|
|
10485
11594
|
users?: UserUncheckedCreateNestedManyWithoutPacksInput
|
|
10486
|
-
|
|
10487
|
-
|
|
11595
|
+
purchases?: PurchaseUncheckedCreateNestedManyWithoutPackInput
|
|
11596
|
+
teams?: TeamUncheckedCreateNestedManyWithoutDecksInput
|
|
10488
11597
|
}
|
|
10489
11598
|
|
|
10490
11599
|
export type PackUpdateInput = {
|
|
@@ -10495,10 +11604,12 @@ export namespace Prisma {
|
|
|
10495
11604
|
longDescription?: StringFieldUpdateOperationsInput | string
|
|
10496
11605
|
category?: CategoryUpdateOneWithoutPacksNestedInput
|
|
10497
11606
|
published?: BoolFieldUpdateOperationsInput | boolean
|
|
11607
|
+
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
11608
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
10498
11609
|
cards?: CardUpdateManyWithoutPackNestedInput
|
|
10499
11610
|
users?: UserUpdateManyWithoutPacksNestedInput
|
|
10500
|
-
|
|
10501
|
-
|
|
11611
|
+
purchases?: PurchaseUpdateManyWithoutPackNestedInput
|
|
11612
|
+
teams?: TeamUpdateManyWithoutDecksNestedInput
|
|
10502
11613
|
}
|
|
10503
11614
|
|
|
10504
11615
|
export type PackUncheckedUpdateInput = {
|
|
@@ -10509,10 +11620,12 @@ export namespace Prisma {
|
|
|
10509
11620
|
longDescription?: StringFieldUpdateOperationsInput | string
|
|
10510
11621
|
categoryId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
10511
11622
|
published?: BoolFieldUpdateOperationsInput | boolean
|
|
11623
|
+
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
11624
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
10512
11625
|
cards?: CardUncheckedUpdateManyWithoutPackNestedInput
|
|
10513
11626
|
users?: UserUncheckedUpdateManyWithoutPacksNestedInput
|
|
10514
|
-
|
|
10515
|
-
|
|
11627
|
+
purchases?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
|
|
11628
|
+
teams?: TeamUncheckedUpdateManyWithoutDecksNestedInput
|
|
10516
11629
|
}
|
|
10517
11630
|
|
|
10518
11631
|
export type PackCreateManyInput = {
|
|
@@ -10524,6 +11637,7 @@ export namespace Prisma {
|
|
|
10524
11637
|
categoryId?: string | null
|
|
10525
11638
|
published?: boolean
|
|
10526
11639
|
currentPrice: Decimal | DecimalJsLike | number | string
|
|
11640
|
+
public: boolean
|
|
10527
11641
|
}
|
|
10528
11642
|
|
|
10529
11643
|
export type PackUpdateManyMutationInput = {
|
|
@@ -10533,6 +11647,7 @@ export namespace Prisma {
|
|
|
10533
11647
|
longDescription?: StringFieldUpdateOperationsInput | string
|
|
10534
11648
|
published?: BoolFieldUpdateOperationsInput | boolean
|
|
10535
11649
|
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
11650
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
10536
11651
|
}
|
|
10537
11652
|
|
|
10538
11653
|
export type PackUncheckedUpdateManyInput = {
|
|
@@ -10544,6 +11659,7 @@ export namespace Prisma {
|
|
|
10544
11659
|
categoryId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
10545
11660
|
published?: BoolFieldUpdateOperationsInput | boolean
|
|
10546
11661
|
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
11662
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
10547
11663
|
}
|
|
10548
11664
|
|
|
10549
11665
|
export type UserCreateInput = {
|
|
@@ -10608,6 +11724,59 @@ export namespace Prisma {
|
|
|
10608
11724
|
name?: StringFieldUpdateOperationsInput | string
|
|
10609
11725
|
}
|
|
10610
11726
|
|
|
11727
|
+
export type TeamCreateInput = {
|
|
11728
|
+
id?: string
|
|
11729
|
+
name: string
|
|
11730
|
+
decks?: PackCreateNestedManyWithoutTeamsInput
|
|
11731
|
+
userCount: number
|
|
11732
|
+
subscriptionExpire?: Date | string | null
|
|
11733
|
+
}
|
|
11734
|
+
|
|
11735
|
+
export type TeamUncheckedCreateInput = {
|
|
11736
|
+
id?: string
|
|
11737
|
+
name: string
|
|
11738
|
+
decks?: PackUncheckedCreateNestedManyWithoutTeamsInput
|
|
11739
|
+
userCount: number
|
|
11740
|
+
subscriptionExpire?: Date | string | null
|
|
11741
|
+
}
|
|
11742
|
+
|
|
11743
|
+
export type TeamUpdateInput = {
|
|
11744
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
11745
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
11746
|
+
decks?: PackUpdateManyWithoutTeamsNestedInput
|
|
11747
|
+
userCount?: IntFieldUpdateOperationsInput | number
|
|
11748
|
+
subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
11749
|
+
}
|
|
11750
|
+
|
|
11751
|
+
export type TeamUncheckedUpdateInput = {
|
|
11752
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
11753
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
11754
|
+
decks?: PackUncheckedUpdateManyWithoutTeamsNestedInput
|
|
11755
|
+
userCount?: IntFieldUpdateOperationsInput | number
|
|
11756
|
+
subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
11757
|
+
}
|
|
11758
|
+
|
|
11759
|
+
export type TeamCreateManyInput = {
|
|
11760
|
+
id?: string
|
|
11761
|
+
name: string
|
|
11762
|
+
userCount: number
|
|
11763
|
+
subscriptionExpire?: Date | string | null
|
|
11764
|
+
}
|
|
11765
|
+
|
|
11766
|
+
export type TeamUpdateManyMutationInput = {
|
|
11767
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
11768
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
11769
|
+
userCount?: IntFieldUpdateOperationsInput | number
|
|
11770
|
+
subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
11771
|
+
}
|
|
11772
|
+
|
|
11773
|
+
export type TeamUncheckedUpdateManyInput = {
|
|
11774
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
11775
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
11776
|
+
userCount?: IntFieldUpdateOperationsInput | number
|
|
11777
|
+
subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
11778
|
+
}
|
|
11779
|
+
|
|
10611
11780
|
export type TeacherCreateInput = {
|
|
10612
11781
|
id?: string
|
|
10613
11782
|
email: string
|
|
@@ -10753,7 +11922,7 @@ export namespace Prisma {
|
|
|
10753
11922
|
export type PurchaseCreateInput = {
|
|
10754
11923
|
id?: string
|
|
10755
11924
|
user: UserCreateNestedOneWithoutPurchasesInput
|
|
10756
|
-
pack:
|
|
11925
|
+
pack: PackCreateNestedOneWithoutPurchasesInput
|
|
10757
11926
|
currency: string
|
|
10758
11927
|
amount: Decimal | DecimalJsLike | number | string
|
|
10759
11928
|
orderDate: Date | string
|
|
@@ -10775,7 +11944,7 @@ export namespace Prisma {
|
|
|
10775
11944
|
export type PurchaseUpdateInput = {
|
|
10776
11945
|
id?: StringFieldUpdateOperationsInput | string
|
|
10777
11946
|
user?: UserUpdateOneRequiredWithoutPurchasesNestedInput
|
|
10778
|
-
pack?:
|
|
11947
|
+
pack?: PackUpdateOneRequiredWithoutPurchasesNestedInput
|
|
10779
11948
|
currency?: StringFieldUpdateOperationsInput | string
|
|
10780
11949
|
amount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
10781
11950
|
orderDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -11066,6 +12235,17 @@ export namespace Prisma {
|
|
|
11066
12235
|
not?: NestedStringNullableFilter | string | null
|
|
11067
12236
|
}
|
|
11068
12237
|
|
|
12238
|
+
export type DecimalFilter = {
|
|
12239
|
+
equals?: Decimal | DecimalJsLike | number | string
|
|
12240
|
+
in?: Enumerable<Decimal> | Enumerable<DecimalJsLike> | Enumerable<number> | Enumerable<string>
|
|
12241
|
+
notIn?: Enumerable<Decimal> | Enumerable<DecimalJsLike> | Enumerable<number> | Enumerable<string>
|
|
12242
|
+
lt?: Decimal | DecimalJsLike | number | string
|
|
12243
|
+
lte?: Decimal | DecimalJsLike | number | string
|
|
12244
|
+
gt?: Decimal | DecimalJsLike | number | string
|
|
12245
|
+
gte?: Decimal | DecimalJsLike | number | string
|
|
12246
|
+
not?: NestedDecimalFilter | Decimal | DecimalJsLike | number | string
|
|
12247
|
+
}
|
|
12248
|
+
|
|
11069
12249
|
export type CardListRelationFilter = {
|
|
11070
12250
|
every?: CardWhereInput
|
|
11071
12251
|
some?: CardWhereInput
|
|
@@ -11084,15 +12264,10 @@ export namespace Prisma {
|
|
|
11084
12264
|
none?: PurchaseWhereInput
|
|
11085
12265
|
}
|
|
11086
12266
|
|
|
11087
|
-
export type
|
|
11088
|
-
|
|
11089
|
-
|
|
11090
|
-
|
|
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
|
|
12267
|
+
export type TeamListRelationFilter = {
|
|
12268
|
+
every?: TeamWhereInput
|
|
12269
|
+
some?: TeamWhereInput
|
|
12270
|
+
none?: TeamWhereInput
|
|
11096
12271
|
}
|
|
11097
12272
|
|
|
11098
12273
|
export type CardOrderByRelationAggregateInput = {
|
|
@@ -11103,7 +12278,11 @@ export namespace Prisma {
|
|
|
11103
12278
|
_count?: SortOrder
|
|
11104
12279
|
}
|
|
11105
12280
|
|
|
11106
|
-
export type PurchaseOrderByRelationAggregateInput = {
|
|
12281
|
+
export type PurchaseOrderByRelationAggregateInput = {
|
|
12282
|
+
_count?: SortOrder
|
|
12283
|
+
}
|
|
12284
|
+
|
|
12285
|
+
export type TeamOrderByRelationAggregateInput = {
|
|
11107
12286
|
_count?: SortOrder
|
|
11108
12287
|
}
|
|
11109
12288
|
|
|
@@ -11116,6 +12295,7 @@ export namespace Prisma {
|
|
|
11116
12295
|
categoryId?: SortOrder
|
|
11117
12296
|
published?: SortOrder
|
|
11118
12297
|
currentPrice?: SortOrder
|
|
12298
|
+
public?: SortOrder
|
|
11119
12299
|
}
|
|
11120
12300
|
|
|
11121
12301
|
export type PackAvgOrderByAggregateInput = {
|
|
@@ -11131,6 +12311,7 @@ export namespace Prisma {
|
|
|
11131
12311
|
categoryId?: SortOrder
|
|
11132
12312
|
published?: SortOrder
|
|
11133
12313
|
currentPrice?: SortOrder
|
|
12314
|
+
public?: SortOrder
|
|
11134
12315
|
}
|
|
11135
12316
|
|
|
11136
12317
|
export type PackMinOrderByAggregateInput = {
|
|
@@ -11142,6 +12323,7 @@ export namespace Prisma {
|
|
|
11142
12323
|
categoryId?: SortOrder
|
|
11143
12324
|
published?: SortOrder
|
|
11144
12325
|
currentPrice?: SortOrder
|
|
12326
|
+
public?: SortOrder
|
|
11145
12327
|
}
|
|
11146
12328
|
|
|
11147
12329
|
export type PackSumOrderByAggregateInput = {
|
|
@@ -11215,6 +12397,62 @@ export namespace Prisma {
|
|
|
11215
12397
|
name?: SortOrder
|
|
11216
12398
|
}
|
|
11217
12399
|
|
|
12400
|
+
export type IntFilter = {
|
|
12401
|
+
equals?: number
|
|
12402
|
+
in?: Enumerable<number>
|
|
12403
|
+
notIn?: Enumerable<number>
|
|
12404
|
+
lt?: number
|
|
12405
|
+
lte?: number
|
|
12406
|
+
gt?: number
|
|
12407
|
+
gte?: number
|
|
12408
|
+
not?: NestedIntFilter | number
|
|
12409
|
+
}
|
|
12410
|
+
|
|
12411
|
+
export type TeamCountOrderByAggregateInput = {
|
|
12412
|
+
id?: SortOrder
|
|
12413
|
+
name?: SortOrder
|
|
12414
|
+
userCount?: SortOrder
|
|
12415
|
+
subscriptionExpire?: SortOrder
|
|
12416
|
+
}
|
|
12417
|
+
|
|
12418
|
+
export type TeamAvgOrderByAggregateInput = {
|
|
12419
|
+
userCount?: SortOrder
|
|
12420
|
+
}
|
|
12421
|
+
|
|
12422
|
+
export type TeamMaxOrderByAggregateInput = {
|
|
12423
|
+
id?: SortOrder
|
|
12424
|
+
name?: SortOrder
|
|
12425
|
+
userCount?: SortOrder
|
|
12426
|
+
subscriptionExpire?: SortOrder
|
|
12427
|
+
}
|
|
12428
|
+
|
|
12429
|
+
export type TeamMinOrderByAggregateInput = {
|
|
12430
|
+
id?: SortOrder
|
|
12431
|
+
name?: SortOrder
|
|
12432
|
+
userCount?: SortOrder
|
|
12433
|
+
subscriptionExpire?: SortOrder
|
|
12434
|
+
}
|
|
12435
|
+
|
|
12436
|
+
export type TeamSumOrderByAggregateInput = {
|
|
12437
|
+
userCount?: SortOrder
|
|
12438
|
+
}
|
|
12439
|
+
|
|
12440
|
+
export type IntWithAggregatesFilter = {
|
|
12441
|
+
equals?: number
|
|
12442
|
+
in?: Enumerable<number>
|
|
12443
|
+
notIn?: Enumerable<number>
|
|
12444
|
+
lt?: number
|
|
12445
|
+
lte?: number
|
|
12446
|
+
gt?: number
|
|
12447
|
+
gte?: number
|
|
12448
|
+
not?: NestedIntWithAggregatesFilter | number
|
|
12449
|
+
_count?: NestedIntFilter
|
|
12450
|
+
_avg?: NestedFloatFilter
|
|
12451
|
+
_sum?: NestedIntFilter
|
|
12452
|
+
_min?: NestedIntFilter
|
|
12453
|
+
_max?: NestedIntFilter
|
|
12454
|
+
}
|
|
12455
|
+
|
|
11218
12456
|
export type TeacherCountOrderByAggregateInput = {
|
|
11219
12457
|
id?: SortOrder
|
|
11220
12458
|
email?: SortOrder
|
|
@@ -11536,6 +12774,12 @@ export namespace Prisma {
|
|
|
11536
12774
|
connect?: Enumerable<PurchaseWhereUniqueInput>
|
|
11537
12775
|
}
|
|
11538
12776
|
|
|
12777
|
+
export type TeamCreateNestedManyWithoutDecksInput = {
|
|
12778
|
+
create?: XOR<Enumerable<TeamCreateWithoutDecksInput>, Enumerable<TeamUncheckedCreateWithoutDecksInput>>
|
|
12779
|
+
connectOrCreate?: Enumerable<TeamCreateOrConnectWithoutDecksInput>
|
|
12780
|
+
connect?: Enumerable<TeamWhereUniqueInput>
|
|
12781
|
+
}
|
|
12782
|
+
|
|
11539
12783
|
export type CardUncheckedCreateNestedManyWithoutPackInput = {
|
|
11540
12784
|
create?: XOR<Enumerable<CardCreateWithoutPackInput>, Enumerable<CardUncheckedCreateWithoutPackInput>>
|
|
11541
12785
|
connectOrCreate?: Enumerable<CardCreateOrConnectWithoutPackInput>
|
|
@@ -11556,6 +12800,12 @@ export namespace Prisma {
|
|
|
11556
12800
|
connect?: Enumerable<PurchaseWhereUniqueInput>
|
|
11557
12801
|
}
|
|
11558
12802
|
|
|
12803
|
+
export type TeamUncheckedCreateNestedManyWithoutDecksInput = {
|
|
12804
|
+
create?: XOR<Enumerable<TeamCreateWithoutDecksInput>, Enumerable<TeamUncheckedCreateWithoutDecksInput>>
|
|
12805
|
+
connectOrCreate?: Enumerable<TeamCreateOrConnectWithoutDecksInput>
|
|
12806
|
+
connect?: Enumerable<TeamWhereUniqueInput>
|
|
12807
|
+
}
|
|
12808
|
+
|
|
11559
12809
|
export type TeacherUpdateOneRequiredWithoutPacksNestedInput = {
|
|
11560
12810
|
create?: XOR<TeacherCreateWithoutPacksInput, TeacherUncheckedCreateWithoutPacksInput>
|
|
11561
12811
|
connectOrCreate?: TeacherCreateOrConnectWithoutPacksInput
|
|
@@ -11574,6 +12824,14 @@ export namespace Prisma {
|
|
|
11574
12824
|
update?: XOR<CategoryUpdateWithoutPacksInput, CategoryUncheckedUpdateWithoutPacksInput>
|
|
11575
12825
|
}
|
|
11576
12826
|
|
|
12827
|
+
export type DecimalFieldUpdateOperationsInput = {
|
|
12828
|
+
set?: Decimal | DecimalJsLike | number | string
|
|
12829
|
+
increment?: Decimal | DecimalJsLike | number | string
|
|
12830
|
+
decrement?: Decimal | DecimalJsLike | number | string
|
|
12831
|
+
multiply?: Decimal | DecimalJsLike | number | string
|
|
12832
|
+
divide?: Decimal | DecimalJsLike | number | string
|
|
12833
|
+
}
|
|
12834
|
+
|
|
11577
12835
|
export type CardUpdateManyWithoutPackNestedInput = {
|
|
11578
12836
|
create?: XOR<Enumerable<CardCreateWithoutPackInput>, Enumerable<CardUncheckedCreateWithoutPackInput>>
|
|
11579
12837
|
connectOrCreate?: Enumerable<CardCreateOrConnectWithoutPackInput>
|
|
@@ -11615,12 +12873,17 @@ export namespace Prisma {
|
|
|
11615
12873
|
deleteMany?: Enumerable<PurchaseScalarWhereInput>
|
|
11616
12874
|
}
|
|
11617
12875
|
|
|
11618
|
-
export type
|
|
11619
|
-
|
|
11620
|
-
|
|
11621
|
-
|
|
11622
|
-
|
|
11623
|
-
|
|
12876
|
+
export type TeamUpdateManyWithoutDecksNestedInput = {
|
|
12877
|
+
create?: XOR<Enumerable<TeamCreateWithoutDecksInput>, Enumerable<TeamUncheckedCreateWithoutDecksInput>>
|
|
12878
|
+
connectOrCreate?: Enumerable<TeamCreateOrConnectWithoutDecksInput>
|
|
12879
|
+
upsert?: Enumerable<TeamUpsertWithWhereUniqueWithoutDecksInput>
|
|
12880
|
+
set?: Enumerable<TeamWhereUniqueInput>
|
|
12881
|
+
disconnect?: Enumerable<TeamWhereUniqueInput>
|
|
12882
|
+
delete?: Enumerable<TeamWhereUniqueInput>
|
|
12883
|
+
connect?: Enumerable<TeamWhereUniqueInput>
|
|
12884
|
+
update?: Enumerable<TeamUpdateWithWhereUniqueWithoutDecksInput>
|
|
12885
|
+
updateMany?: Enumerable<TeamUpdateManyWithWhereWithoutDecksInput>
|
|
12886
|
+
deleteMany?: Enumerable<TeamScalarWhereInput>
|
|
11624
12887
|
}
|
|
11625
12888
|
|
|
11626
12889
|
export type NullableStringFieldUpdateOperationsInput = {
|
|
@@ -11668,6 +12931,19 @@ export namespace Prisma {
|
|
|
11668
12931
|
deleteMany?: Enumerable<PurchaseScalarWhereInput>
|
|
11669
12932
|
}
|
|
11670
12933
|
|
|
12934
|
+
export type TeamUncheckedUpdateManyWithoutDecksNestedInput = {
|
|
12935
|
+
create?: XOR<Enumerable<TeamCreateWithoutDecksInput>, Enumerable<TeamUncheckedCreateWithoutDecksInput>>
|
|
12936
|
+
connectOrCreate?: Enumerable<TeamCreateOrConnectWithoutDecksInput>
|
|
12937
|
+
upsert?: Enumerable<TeamUpsertWithWhereUniqueWithoutDecksInput>
|
|
12938
|
+
set?: Enumerable<TeamWhereUniqueInput>
|
|
12939
|
+
disconnect?: Enumerable<TeamWhereUniqueInput>
|
|
12940
|
+
delete?: Enumerable<TeamWhereUniqueInput>
|
|
12941
|
+
connect?: Enumerable<TeamWhereUniqueInput>
|
|
12942
|
+
update?: Enumerable<TeamUpdateWithWhereUniqueWithoutDecksInput>
|
|
12943
|
+
updateMany?: Enumerable<TeamUpdateManyWithWhereWithoutDecksInput>
|
|
12944
|
+
deleteMany?: Enumerable<TeamScalarWhereInput>
|
|
12945
|
+
}
|
|
12946
|
+
|
|
11671
12947
|
export type GoogleUserCreateNestedOneWithoutUserInput = {
|
|
11672
12948
|
create?: XOR<GoogleUserCreateWithoutUserInput, GoogleUserUncheckedCreateWithoutUserInput>
|
|
11673
12949
|
connectOrCreate?: GoogleUserCreateOrConnectWithoutUserInput
|
|
@@ -11864,6 +13140,52 @@ export namespace Prisma {
|
|
|
11864
13140
|
deleteMany?: Enumerable<AnswerScalarWhereInput>
|
|
11865
13141
|
}
|
|
11866
13142
|
|
|
13143
|
+
export type PackCreateNestedManyWithoutTeamsInput = {
|
|
13144
|
+
create?: XOR<Enumerable<PackCreateWithoutTeamsInput>, Enumerable<PackUncheckedCreateWithoutTeamsInput>>
|
|
13145
|
+
connectOrCreate?: Enumerable<PackCreateOrConnectWithoutTeamsInput>
|
|
13146
|
+
connect?: Enumerable<PackWhereUniqueInput>
|
|
13147
|
+
}
|
|
13148
|
+
|
|
13149
|
+
export type PackUncheckedCreateNestedManyWithoutTeamsInput = {
|
|
13150
|
+
create?: XOR<Enumerable<PackCreateWithoutTeamsInput>, Enumerable<PackUncheckedCreateWithoutTeamsInput>>
|
|
13151
|
+
connectOrCreate?: Enumerable<PackCreateOrConnectWithoutTeamsInput>
|
|
13152
|
+
connect?: Enumerable<PackWhereUniqueInput>
|
|
13153
|
+
}
|
|
13154
|
+
|
|
13155
|
+
export type PackUpdateManyWithoutTeamsNestedInput = {
|
|
13156
|
+
create?: XOR<Enumerable<PackCreateWithoutTeamsInput>, Enumerable<PackUncheckedCreateWithoutTeamsInput>>
|
|
13157
|
+
connectOrCreate?: Enumerable<PackCreateOrConnectWithoutTeamsInput>
|
|
13158
|
+
upsert?: Enumerable<PackUpsertWithWhereUniqueWithoutTeamsInput>
|
|
13159
|
+
set?: Enumerable<PackWhereUniqueInput>
|
|
13160
|
+
disconnect?: Enumerable<PackWhereUniqueInput>
|
|
13161
|
+
delete?: Enumerable<PackWhereUniqueInput>
|
|
13162
|
+
connect?: Enumerable<PackWhereUniqueInput>
|
|
13163
|
+
update?: Enumerable<PackUpdateWithWhereUniqueWithoutTeamsInput>
|
|
13164
|
+
updateMany?: Enumerable<PackUpdateManyWithWhereWithoutTeamsInput>
|
|
13165
|
+
deleteMany?: Enumerable<PackScalarWhereInput>
|
|
13166
|
+
}
|
|
13167
|
+
|
|
13168
|
+
export type IntFieldUpdateOperationsInput = {
|
|
13169
|
+
set?: number
|
|
13170
|
+
increment?: number
|
|
13171
|
+
decrement?: number
|
|
13172
|
+
multiply?: number
|
|
13173
|
+
divide?: number
|
|
13174
|
+
}
|
|
13175
|
+
|
|
13176
|
+
export type PackUncheckedUpdateManyWithoutTeamsNestedInput = {
|
|
13177
|
+
create?: XOR<Enumerable<PackCreateWithoutTeamsInput>, Enumerable<PackUncheckedCreateWithoutTeamsInput>>
|
|
13178
|
+
connectOrCreate?: Enumerable<PackCreateOrConnectWithoutTeamsInput>
|
|
13179
|
+
upsert?: Enumerable<PackUpsertWithWhereUniqueWithoutTeamsInput>
|
|
13180
|
+
set?: Enumerable<PackWhereUniqueInput>
|
|
13181
|
+
disconnect?: Enumerable<PackWhereUniqueInput>
|
|
13182
|
+
delete?: Enumerable<PackWhereUniqueInput>
|
|
13183
|
+
connect?: Enumerable<PackWhereUniqueInput>
|
|
13184
|
+
update?: Enumerable<PackUpdateWithWhereUniqueWithoutTeamsInput>
|
|
13185
|
+
updateMany?: Enumerable<PackUpdateManyWithWhereWithoutTeamsInput>
|
|
13186
|
+
deleteMany?: Enumerable<PackScalarWhereInput>
|
|
13187
|
+
}
|
|
13188
|
+
|
|
11867
13189
|
export type PackCreateNestedManyWithoutTeacherInput = {
|
|
11868
13190
|
create?: XOR<Enumerable<PackCreateWithoutTeacherInput>, Enumerable<PackUncheckedCreateWithoutTeacherInput>>
|
|
11869
13191
|
connectOrCreate?: Enumerable<PackCreateOrConnectWithoutTeacherInput>
|
|
@@ -11940,9 +13262,9 @@ export namespace Prisma {
|
|
|
11940
13262
|
connect?: UserWhereUniqueInput
|
|
11941
13263
|
}
|
|
11942
13264
|
|
|
11943
|
-
export type
|
|
11944
|
-
create?: XOR<
|
|
11945
|
-
connectOrCreate?:
|
|
13265
|
+
export type PackCreateNestedOneWithoutPurchasesInput = {
|
|
13266
|
+
create?: XOR<PackCreateWithoutPurchasesInput, PackUncheckedCreateWithoutPurchasesInput>
|
|
13267
|
+
connectOrCreate?: PackCreateOrConnectWithoutPurchasesInput
|
|
11946
13268
|
connect?: PackWhereUniqueInput
|
|
11947
13269
|
}
|
|
11948
13270
|
|
|
@@ -11954,12 +13276,12 @@ export namespace Prisma {
|
|
|
11954
13276
|
update?: XOR<UserUpdateWithoutPurchasesInput, UserUncheckedUpdateWithoutPurchasesInput>
|
|
11955
13277
|
}
|
|
11956
13278
|
|
|
11957
|
-
export type
|
|
11958
|
-
create?: XOR<
|
|
11959
|
-
connectOrCreate?:
|
|
11960
|
-
upsert?:
|
|
13279
|
+
export type PackUpdateOneRequiredWithoutPurchasesNestedInput = {
|
|
13280
|
+
create?: XOR<PackCreateWithoutPurchasesInput, PackUncheckedCreateWithoutPurchasesInput>
|
|
13281
|
+
connectOrCreate?: PackCreateOrConnectWithoutPurchasesInput
|
|
13282
|
+
upsert?: PackUpsertWithoutPurchasesInput
|
|
11961
13283
|
connect?: PackWhereUniqueInput
|
|
11962
|
-
update?: XOR<
|
|
13284
|
+
update?: XOR<PackUpdateWithoutPurchasesInput, PackUncheckedUpdateWithoutPurchasesInput>
|
|
11963
13285
|
}
|
|
11964
13286
|
|
|
11965
13287
|
export type DateTimeFieldUpdateOperationsInput = {
|
|
@@ -12146,6 +13468,33 @@ export namespace Prisma {
|
|
|
12146
13468
|
_max?: NestedDecimalFilter
|
|
12147
13469
|
}
|
|
12148
13470
|
|
|
13471
|
+
export type NestedIntWithAggregatesFilter = {
|
|
13472
|
+
equals?: number
|
|
13473
|
+
in?: Enumerable<number>
|
|
13474
|
+
notIn?: Enumerable<number>
|
|
13475
|
+
lt?: number
|
|
13476
|
+
lte?: number
|
|
13477
|
+
gt?: number
|
|
13478
|
+
gte?: number
|
|
13479
|
+
not?: NestedIntWithAggregatesFilter | number
|
|
13480
|
+
_count?: NestedIntFilter
|
|
13481
|
+
_avg?: NestedFloatFilter
|
|
13482
|
+
_sum?: NestedIntFilter
|
|
13483
|
+
_min?: NestedIntFilter
|
|
13484
|
+
_max?: NestedIntFilter
|
|
13485
|
+
}
|
|
13486
|
+
|
|
13487
|
+
export type NestedFloatFilter = {
|
|
13488
|
+
equals?: number
|
|
13489
|
+
in?: Enumerable<number>
|
|
13490
|
+
notIn?: Enumerable<number>
|
|
13491
|
+
lt?: number
|
|
13492
|
+
lte?: number
|
|
13493
|
+
gt?: number
|
|
13494
|
+
gte?: number
|
|
13495
|
+
not?: NestedFloatFilter | number
|
|
13496
|
+
}
|
|
13497
|
+
|
|
12149
13498
|
export type NestedDateTimeFilter = {
|
|
12150
13499
|
equals?: Date | string
|
|
12151
13500
|
in?: Enumerable<Date> | Enumerable<string>
|
|
@@ -12196,9 +13545,11 @@ export namespace Prisma {
|
|
|
12196
13545
|
longDescription?: string
|
|
12197
13546
|
category?: CategoryCreateNestedOneWithoutPacksInput
|
|
12198
13547
|
published?: boolean
|
|
12199
|
-
users?: UserCreateNestedManyWithoutPacksInput
|
|
12200
|
-
purchase?: PurchaseCreateNestedManyWithoutPackInput
|
|
12201
13548
|
currentPrice: Decimal | DecimalJsLike | number | string
|
|
13549
|
+
public: boolean
|
|
13550
|
+
users?: UserCreateNestedManyWithoutPacksInput
|
|
13551
|
+
purchases?: PurchaseCreateNestedManyWithoutPackInput
|
|
13552
|
+
teams?: TeamCreateNestedManyWithoutDecksInput
|
|
12202
13553
|
}
|
|
12203
13554
|
|
|
12204
13555
|
export type PackUncheckedCreateWithoutCardsInput = {
|
|
@@ -12209,9 +13560,11 @@ export namespace Prisma {
|
|
|
12209
13560
|
longDescription?: string
|
|
12210
13561
|
categoryId?: string | null
|
|
12211
13562
|
published?: boolean
|
|
12212
|
-
users?: UserUncheckedCreateNestedManyWithoutPacksInput
|
|
12213
|
-
purchase?: PurchaseUncheckedCreateNestedManyWithoutPackInput
|
|
12214
13563
|
currentPrice: Decimal | DecimalJsLike | number | string
|
|
13564
|
+
public: boolean
|
|
13565
|
+
users?: UserUncheckedCreateNestedManyWithoutPacksInput
|
|
13566
|
+
purchases?: PurchaseUncheckedCreateNestedManyWithoutPackInput
|
|
13567
|
+
teams?: TeamUncheckedCreateNestedManyWithoutDecksInput
|
|
12215
13568
|
}
|
|
12216
13569
|
|
|
12217
13570
|
export type PackCreateOrConnectWithoutCardsInput = {
|
|
@@ -12256,9 +13609,11 @@ export namespace Prisma {
|
|
|
12256
13609
|
longDescription?: StringFieldUpdateOperationsInput | string
|
|
12257
13610
|
category?: CategoryUpdateOneWithoutPacksNestedInput
|
|
12258
13611
|
published?: BoolFieldUpdateOperationsInput | boolean
|
|
12259
|
-
users?: UserUpdateManyWithoutPacksNestedInput
|
|
12260
|
-
purchase?: PurchaseUpdateManyWithoutPackNestedInput
|
|
12261
13612
|
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
13613
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
13614
|
+
users?: UserUpdateManyWithoutPacksNestedInput
|
|
13615
|
+
purchases?: PurchaseUpdateManyWithoutPackNestedInput
|
|
13616
|
+
teams?: TeamUpdateManyWithoutDecksNestedInput
|
|
12262
13617
|
}
|
|
12263
13618
|
|
|
12264
13619
|
export type PackUncheckedUpdateWithoutCardsInput = {
|
|
@@ -12269,9 +13624,11 @@ export namespace Prisma {
|
|
|
12269
13624
|
longDescription?: StringFieldUpdateOperationsInput | string
|
|
12270
13625
|
categoryId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
12271
13626
|
published?: BoolFieldUpdateOperationsInput | boolean
|
|
12272
|
-
users?: UserUncheckedUpdateManyWithoutPacksNestedInput
|
|
12273
|
-
purchase?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
|
|
12274
13627
|
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
13628
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
13629
|
+
users?: UserUncheckedUpdateManyWithoutPacksNestedInput
|
|
13630
|
+
purchases?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
|
|
13631
|
+
teams?: TeamUncheckedUpdateManyWithoutDecksNestedInput
|
|
12275
13632
|
}
|
|
12276
13633
|
|
|
12277
13634
|
export type UserCardUpsertWithWhereUniqueWithoutCardInput = {
|
|
@@ -12396,10 +13753,12 @@ export namespace Prisma {
|
|
|
12396
13753
|
shortDescription?: string
|
|
12397
13754
|
longDescription?: string
|
|
12398
13755
|
published?: boolean
|
|
13756
|
+
currentPrice: Decimal | DecimalJsLike | number | string
|
|
13757
|
+
public: boolean
|
|
12399
13758
|
cards?: CardCreateNestedManyWithoutPackInput
|
|
12400
13759
|
users?: UserCreateNestedManyWithoutPacksInput
|
|
12401
|
-
|
|
12402
|
-
|
|
13760
|
+
purchases?: PurchaseCreateNestedManyWithoutPackInput
|
|
13761
|
+
teams?: TeamCreateNestedManyWithoutDecksInput
|
|
12403
13762
|
}
|
|
12404
13763
|
|
|
12405
13764
|
export type PackUncheckedCreateWithoutCategoryInput = {
|
|
@@ -12409,10 +13768,12 @@ export namespace Prisma {
|
|
|
12409
13768
|
shortDescription?: string
|
|
12410
13769
|
longDescription?: string
|
|
12411
13770
|
published?: boolean
|
|
13771
|
+
currentPrice: Decimal | DecimalJsLike | number | string
|
|
13772
|
+
public: boolean
|
|
12412
13773
|
cards?: CardUncheckedCreateNestedManyWithoutPackInput
|
|
12413
13774
|
users?: UserUncheckedCreateNestedManyWithoutPacksInput
|
|
12414
|
-
|
|
12415
|
-
|
|
13775
|
+
purchases?: PurchaseUncheckedCreateNestedManyWithoutPackInput
|
|
13776
|
+
teams?: TeamUncheckedCreateNestedManyWithoutDecksInput
|
|
12416
13777
|
}
|
|
12417
13778
|
|
|
12418
13779
|
export type PackCreateOrConnectWithoutCategoryInput = {
|
|
@@ -12453,6 +13814,7 @@ export namespace Prisma {
|
|
|
12453
13814
|
categoryId?: StringNullableFilter | string | null
|
|
12454
13815
|
published?: BoolFilter | boolean
|
|
12455
13816
|
currentPrice?: DecimalFilter | Decimal | DecimalJsLike | number | string
|
|
13817
|
+
public?: BoolFilter | boolean
|
|
12456
13818
|
}
|
|
12457
13819
|
|
|
12458
13820
|
export type TeacherCreateWithoutPacksInput = {
|
|
@@ -12568,6 +13930,25 @@ export namespace Prisma {
|
|
|
12568
13930
|
skipDuplicates?: boolean
|
|
12569
13931
|
}
|
|
12570
13932
|
|
|
13933
|
+
export type TeamCreateWithoutDecksInput = {
|
|
13934
|
+
id?: string
|
|
13935
|
+
name: string
|
|
13936
|
+
userCount: number
|
|
13937
|
+
subscriptionExpire?: Date | string | null
|
|
13938
|
+
}
|
|
13939
|
+
|
|
13940
|
+
export type TeamUncheckedCreateWithoutDecksInput = {
|
|
13941
|
+
id?: string
|
|
13942
|
+
name: string
|
|
13943
|
+
userCount: number
|
|
13944
|
+
subscriptionExpire?: Date | string | null
|
|
13945
|
+
}
|
|
13946
|
+
|
|
13947
|
+
export type TeamCreateOrConnectWithoutDecksInput = {
|
|
13948
|
+
where: TeamWhereUniqueInput
|
|
13949
|
+
create: XOR<TeamCreateWithoutDecksInput, TeamUncheckedCreateWithoutDecksInput>
|
|
13950
|
+
}
|
|
13951
|
+
|
|
12571
13952
|
export type TeacherUpsertWithoutPacksInput = {
|
|
12572
13953
|
update: XOR<TeacherUpdateWithoutPacksInput, TeacherUncheckedUpdateWithoutPacksInput>
|
|
12573
13954
|
create: XOR<TeacherCreateWithoutPacksInput, TeacherUncheckedCreateWithoutPacksInput>
|
|
@@ -12666,7 +14047,7 @@ export namespace Prisma {
|
|
|
12666
14047
|
|
|
12667
14048
|
export type PurchaseUpdateManyWithWhereWithoutPackInput = {
|
|
12668
14049
|
where: PurchaseScalarWhereInput
|
|
12669
|
-
data: XOR<PurchaseUpdateManyMutationInput,
|
|
14050
|
+
data: XOR<PurchaseUpdateManyMutationInput, PurchaseUncheckedUpdateManyWithoutPurchasesInput>
|
|
12670
14051
|
}
|
|
12671
14052
|
|
|
12672
14053
|
export type PurchaseScalarWhereInput = {
|
|
@@ -12683,6 +14064,32 @@ export namespace Prisma {
|
|
|
12683
14064
|
status?: EnumPurchaseStatusFilter | PurchaseStatus
|
|
12684
14065
|
}
|
|
12685
14066
|
|
|
14067
|
+
export type TeamUpsertWithWhereUniqueWithoutDecksInput = {
|
|
14068
|
+
where: TeamWhereUniqueInput
|
|
14069
|
+
update: XOR<TeamUpdateWithoutDecksInput, TeamUncheckedUpdateWithoutDecksInput>
|
|
14070
|
+
create: XOR<TeamCreateWithoutDecksInput, TeamUncheckedCreateWithoutDecksInput>
|
|
14071
|
+
}
|
|
14072
|
+
|
|
14073
|
+
export type TeamUpdateWithWhereUniqueWithoutDecksInput = {
|
|
14074
|
+
where: TeamWhereUniqueInput
|
|
14075
|
+
data: XOR<TeamUpdateWithoutDecksInput, TeamUncheckedUpdateWithoutDecksInput>
|
|
14076
|
+
}
|
|
14077
|
+
|
|
14078
|
+
export type TeamUpdateManyWithWhereWithoutDecksInput = {
|
|
14079
|
+
where: TeamScalarWhereInput
|
|
14080
|
+
data: XOR<TeamUpdateManyMutationInput, TeamUncheckedUpdateManyWithoutTeamsInput>
|
|
14081
|
+
}
|
|
14082
|
+
|
|
14083
|
+
export type TeamScalarWhereInput = {
|
|
14084
|
+
AND?: Enumerable<TeamScalarWhereInput>
|
|
14085
|
+
OR?: Enumerable<TeamScalarWhereInput>
|
|
14086
|
+
NOT?: Enumerable<TeamScalarWhereInput>
|
|
14087
|
+
id?: StringFilter | string
|
|
14088
|
+
name?: StringFilter | string
|
|
14089
|
+
userCount?: IntFilter | number
|
|
14090
|
+
subscriptionExpire?: DateTimeNullableFilter | Date | string | null
|
|
14091
|
+
}
|
|
14092
|
+
|
|
12686
14093
|
export type GoogleUserCreateWithoutUserInput = {
|
|
12687
14094
|
id: string
|
|
12688
14095
|
}
|
|
@@ -12698,7 +14105,7 @@ export namespace Prisma {
|
|
|
12698
14105
|
|
|
12699
14106
|
export type PurchaseCreateWithoutUserInput = {
|
|
12700
14107
|
id?: string
|
|
12701
|
-
pack:
|
|
14108
|
+
pack: PackCreateNestedOneWithoutPurchasesInput
|
|
12702
14109
|
currency: string
|
|
12703
14110
|
amount: Decimal | DecimalJsLike | number | string
|
|
12704
14111
|
orderDate: Date | string
|
|
@@ -12734,9 +14141,11 @@ export namespace Prisma {
|
|
|
12734
14141
|
longDescription?: string
|
|
12735
14142
|
category?: CategoryCreateNestedOneWithoutPacksInput
|
|
12736
14143
|
published?: boolean
|
|
12737
|
-
cards?: CardCreateNestedManyWithoutPackInput
|
|
12738
|
-
purchase?: PurchaseCreateNestedManyWithoutPackInput
|
|
12739
14144
|
currentPrice: Decimal | DecimalJsLike | number | string
|
|
14145
|
+
public: boolean
|
|
14146
|
+
cards?: CardCreateNestedManyWithoutPackInput
|
|
14147
|
+
purchases?: PurchaseCreateNestedManyWithoutPackInput
|
|
14148
|
+
teams?: TeamCreateNestedManyWithoutDecksInput
|
|
12740
14149
|
}
|
|
12741
14150
|
|
|
12742
14151
|
export type PackUncheckedCreateWithoutUsersInput = {
|
|
@@ -12747,9 +14156,11 @@ export namespace Prisma {
|
|
|
12747
14156
|
longDescription?: string
|
|
12748
14157
|
categoryId?: string | null
|
|
12749
14158
|
published?: boolean
|
|
12750
|
-
cards?: CardUncheckedCreateNestedManyWithoutPackInput
|
|
12751
|
-
purchase?: PurchaseUncheckedCreateNestedManyWithoutPackInput
|
|
12752
14159
|
currentPrice: Decimal | DecimalJsLike | number | string
|
|
14160
|
+
public: boolean
|
|
14161
|
+
cards?: CardUncheckedCreateNestedManyWithoutPackInput
|
|
14162
|
+
purchases?: PurchaseUncheckedCreateNestedManyWithoutPackInput
|
|
14163
|
+
teams?: TeamUncheckedCreateNestedManyWithoutDecksInput
|
|
12753
14164
|
}
|
|
12754
14165
|
|
|
12755
14166
|
export type PackCreateOrConnectWithoutUsersInput = {
|
|
@@ -12893,17 +14304,70 @@ export namespace Prisma {
|
|
|
12893
14304
|
timestamp?: StringFilter | string
|
|
12894
14305
|
}
|
|
12895
14306
|
|
|
12896
|
-
export type
|
|
14307
|
+
export type PackCreateWithoutTeamsInput = {
|
|
12897
14308
|
id?: string
|
|
14309
|
+
teacher: TeacherCreateNestedOneWithoutPacksInput
|
|
12898
14310
|
name?: string
|
|
12899
14311
|
shortDescription?: string
|
|
12900
14312
|
longDescription?: string
|
|
12901
14313
|
category?: CategoryCreateNestedOneWithoutPacksInput
|
|
12902
14314
|
published?: boolean
|
|
14315
|
+
currentPrice: Decimal | DecimalJsLike | number | string
|
|
14316
|
+
public: boolean
|
|
12903
14317
|
cards?: CardCreateNestedManyWithoutPackInput
|
|
12904
14318
|
users?: UserCreateNestedManyWithoutPacksInput
|
|
12905
|
-
|
|
14319
|
+
purchases?: PurchaseCreateNestedManyWithoutPackInput
|
|
14320
|
+
}
|
|
14321
|
+
|
|
14322
|
+
export type PackUncheckedCreateWithoutTeamsInput = {
|
|
14323
|
+
id?: string
|
|
14324
|
+
teacherId: string
|
|
14325
|
+
name?: string
|
|
14326
|
+
shortDescription?: string
|
|
14327
|
+
longDescription?: string
|
|
14328
|
+
categoryId?: string | null
|
|
14329
|
+
published?: boolean
|
|
14330
|
+
currentPrice: Decimal | DecimalJsLike | number | string
|
|
14331
|
+
public: boolean
|
|
14332
|
+
cards?: CardUncheckedCreateNestedManyWithoutPackInput
|
|
14333
|
+
users?: UserUncheckedCreateNestedManyWithoutPacksInput
|
|
14334
|
+
purchases?: PurchaseUncheckedCreateNestedManyWithoutPackInput
|
|
14335
|
+
}
|
|
14336
|
+
|
|
14337
|
+
export type PackCreateOrConnectWithoutTeamsInput = {
|
|
14338
|
+
where: PackWhereUniqueInput
|
|
14339
|
+
create: XOR<PackCreateWithoutTeamsInput, PackUncheckedCreateWithoutTeamsInput>
|
|
14340
|
+
}
|
|
14341
|
+
|
|
14342
|
+
export type PackUpsertWithWhereUniqueWithoutTeamsInput = {
|
|
14343
|
+
where: PackWhereUniqueInput
|
|
14344
|
+
update: XOR<PackUpdateWithoutTeamsInput, PackUncheckedUpdateWithoutTeamsInput>
|
|
14345
|
+
create: XOR<PackCreateWithoutTeamsInput, PackUncheckedCreateWithoutTeamsInput>
|
|
14346
|
+
}
|
|
14347
|
+
|
|
14348
|
+
export type PackUpdateWithWhereUniqueWithoutTeamsInput = {
|
|
14349
|
+
where: PackWhereUniqueInput
|
|
14350
|
+
data: XOR<PackUpdateWithoutTeamsInput, PackUncheckedUpdateWithoutTeamsInput>
|
|
14351
|
+
}
|
|
14352
|
+
|
|
14353
|
+
export type PackUpdateManyWithWhereWithoutTeamsInput = {
|
|
14354
|
+
where: PackScalarWhereInput
|
|
14355
|
+
data: XOR<PackUpdateManyMutationInput, PackUncheckedUpdateManyWithoutDecksInput>
|
|
14356
|
+
}
|
|
14357
|
+
|
|
14358
|
+
export type PackCreateWithoutTeacherInput = {
|
|
14359
|
+
id?: string
|
|
14360
|
+
name?: string
|
|
14361
|
+
shortDescription?: string
|
|
14362
|
+
longDescription?: string
|
|
14363
|
+
category?: CategoryCreateNestedOneWithoutPacksInput
|
|
14364
|
+
published?: boolean
|
|
12906
14365
|
currentPrice: Decimal | DecimalJsLike | number | string
|
|
14366
|
+
public: boolean
|
|
14367
|
+
cards?: CardCreateNestedManyWithoutPackInput
|
|
14368
|
+
users?: UserCreateNestedManyWithoutPacksInput
|
|
14369
|
+
purchases?: PurchaseCreateNestedManyWithoutPackInput
|
|
14370
|
+
teams?: TeamCreateNestedManyWithoutDecksInput
|
|
12907
14371
|
}
|
|
12908
14372
|
|
|
12909
14373
|
export type PackUncheckedCreateWithoutTeacherInput = {
|
|
@@ -12913,10 +14377,12 @@ export namespace Prisma {
|
|
|
12913
14377
|
longDescription?: string
|
|
12914
14378
|
categoryId?: string | null
|
|
12915
14379
|
published?: boolean
|
|
14380
|
+
currentPrice: Decimal | DecimalJsLike | number | string
|
|
14381
|
+
public: boolean
|
|
12916
14382
|
cards?: CardUncheckedCreateNestedManyWithoutPackInput
|
|
12917
14383
|
users?: UserUncheckedCreateNestedManyWithoutPacksInput
|
|
12918
|
-
|
|
12919
|
-
|
|
14384
|
+
purchases?: PurchaseUncheckedCreateNestedManyWithoutPackInput
|
|
14385
|
+
teams?: TeamUncheckedCreateNestedManyWithoutDecksInput
|
|
12920
14386
|
}
|
|
12921
14387
|
|
|
12922
14388
|
export type PackCreateOrConnectWithoutTeacherInput = {
|
|
@@ -13070,7 +14536,7 @@ export namespace Prisma {
|
|
|
13070
14536
|
create: XOR<UserCreateWithoutPurchasesInput, UserUncheckedCreateWithoutPurchasesInput>
|
|
13071
14537
|
}
|
|
13072
14538
|
|
|
13073
|
-
export type
|
|
14539
|
+
export type PackCreateWithoutPurchasesInput = {
|
|
13074
14540
|
id?: string
|
|
13075
14541
|
teacher: TeacherCreateNestedOneWithoutPacksInput
|
|
13076
14542
|
name?: string
|
|
@@ -13078,12 +14544,14 @@ export namespace Prisma {
|
|
|
13078
14544
|
longDescription?: string
|
|
13079
14545
|
category?: CategoryCreateNestedOneWithoutPacksInput
|
|
13080
14546
|
published?: boolean
|
|
14547
|
+
currentPrice: Decimal | DecimalJsLike | number | string
|
|
14548
|
+
public: boolean
|
|
13081
14549
|
cards?: CardCreateNestedManyWithoutPackInput
|
|
13082
14550
|
users?: UserCreateNestedManyWithoutPacksInput
|
|
13083
|
-
|
|
14551
|
+
teams?: TeamCreateNestedManyWithoutDecksInput
|
|
13084
14552
|
}
|
|
13085
14553
|
|
|
13086
|
-
export type
|
|
14554
|
+
export type PackUncheckedCreateWithoutPurchasesInput = {
|
|
13087
14555
|
id?: string
|
|
13088
14556
|
teacherId: string
|
|
13089
14557
|
name?: string
|
|
@@ -13091,14 +14559,16 @@ export namespace Prisma {
|
|
|
13091
14559
|
longDescription?: string
|
|
13092
14560
|
categoryId?: string | null
|
|
13093
14561
|
published?: boolean
|
|
14562
|
+
currentPrice: Decimal | DecimalJsLike | number | string
|
|
14563
|
+
public: boolean
|
|
13094
14564
|
cards?: CardUncheckedCreateNestedManyWithoutPackInput
|
|
13095
14565
|
users?: UserUncheckedCreateNestedManyWithoutPacksInput
|
|
13096
|
-
|
|
14566
|
+
teams?: TeamUncheckedCreateNestedManyWithoutDecksInput
|
|
13097
14567
|
}
|
|
13098
14568
|
|
|
13099
|
-
export type
|
|
14569
|
+
export type PackCreateOrConnectWithoutPurchasesInput = {
|
|
13100
14570
|
where: PackWhereUniqueInput
|
|
13101
|
-
create: XOR<
|
|
14571
|
+
create: XOR<PackCreateWithoutPurchasesInput, PackUncheckedCreateWithoutPurchasesInput>
|
|
13102
14572
|
}
|
|
13103
14573
|
|
|
13104
14574
|
export type UserUpsertWithoutPurchasesInput = {
|
|
@@ -13126,12 +14596,12 @@ export namespace Prisma {
|
|
|
13126
14596
|
answers?: AnswerUncheckedUpdateManyWithoutUserNestedInput
|
|
13127
14597
|
}
|
|
13128
14598
|
|
|
13129
|
-
export type
|
|
13130
|
-
update: XOR<
|
|
13131
|
-
create: XOR<
|
|
14599
|
+
export type PackUpsertWithoutPurchasesInput = {
|
|
14600
|
+
update: XOR<PackUpdateWithoutPurchasesInput, PackUncheckedUpdateWithoutPurchasesInput>
|
|
14601
|
+
create: XOR<PackCreateWithoutPurchasesInput, PackUncheckedCreateWithoutPurchasesInput>
|
|
13132
14602
|
}
|
|
13133
14603
|
|
|
13134
|
-
export type
|
|
14604
|
+
export type PackUpdateWithoutPurchasesInput = {
|
|
13135
14605
|
id?: StringFieldUpdateOperationsInput | string
|
|
13136
14606
|
teacher?: TeacherUpdateOneRequiredWithoutPacksNestedInput
|
|
13137
14607
|
name?: StringFieldUpdateOperationsInput | string
|
|
@@ -13139,12 +14609,14 @@ export namespace Prisma {
|
|
|
13139
14609
|
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13140
14610
|
category?: CategoryUpdateOneWithoutPacksNestedInput
|
|
13141
14611
|
published?: BoolFieldUpdateOperationsInput | boolean
|
|
14612
|
+
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
14613
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
13142
14614
|
cards?: CardUpdateManyWithoutPackNestedInput
|
|
13143
14615
|
users?: UserUpdateManyWithoutPacksNestedInput
|
|
13144
|
-
|
|
14616
|
+
teams?: TeamUpdateManyWithoutDecksNestedInput
|
|
13145
14617
|
}
|
|
13146
14618
|
|
|
13147
|
-
export type
|
|
14619
|
+
export type PackUncheckedUpdateWithoutPurchasesInput = {
|
|
13148
14620
|
id?: StringFieldUpdateOperationsInput | string
|
|
13149
14621
|
teacherId?: StringFieldUpdateOperationsInput | string
|
|
13150
14622
|
name?: StringFieldUpdateOperationsInput | string
|
|
@@ -13152,9 +14624,11 @@ export namespace Prisma {
|
|
|
13152
14624
|
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13153
14625
|
categoryId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13154
14626
|
published?: BoolFieldUpdateOperationsInput | boolean
|
|
14627
|
+
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
14628
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
13155
14629
|
cards?: CardUncheckedUpdateManyWithoutPackNestedInput
|
|
13156
14630
|
users?: UserUncheckedUpdateManyWithoutPacksNestedInput
|
|
13157
|
-
|
|
14631
|
+
teams?: TeamUncheckedUpdateManyWithoutDecksNestedInput
|
|
13158
14632
|
}
|
|
13159
14633
|
|
|
13160
14634
|
export type UserCardCreateManyCardInput = {
|
|
@@ -13193,6 +14667,7 @@ export namespace Prisma {
|
|
|
13193
14667
|
longDescription?: string
|
|
13194
14668
|
published?: boolean
|
|
13195
14669
|
currentPrice: Decimal | DecimalJsLike | number | string
|
|
14670
|
+
public: boolean
|
|
13196
14671
|
}
|
|
13197
14672
|
|
|
13198
14673
|
export type PackUpdateWithoutCategoryInput = {
|
|
@@ -13202,10 +14677,12 @@ export namespace Prisma {
|
|
|
13202
14677
|
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
13203
14678
|
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13204
14679
|
published?: BoolFieldUpdateOperationsInput | boolean
|
|
14680
|
+
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
14681
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
13205
14682
|
cards?: CardUpdateManyWithoutPackNestedInput
|
|
13206
14683
|
users?: UserUpdateManyWithoutPacksNestedInput
|
|
13207
|
-
|
|
13208
|
-
|
|
14684
|
+
purchases?: PurchaseUpdateManyWithoutPackNestedInput
|
|
14685
|
+
teams?: TeamUpdateManyWithoutDecksNestedInput
|
|
13209
14686
|
}
|
|
13210
14687
|
|
|
13211
14688
|
export type PackUncheckedUpdateWithoutCategoryInput = {
|
|
@@ -13215,10 +14692,12 @@ export namespace Prisma {
|
|
|
13215
14692
|
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
13216
14693
|
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13217
14694
|
published?: BoolFieldUpdateOperationsInput | boolean
|
|
14695
|
+
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
14696
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
13218
14697
|
cards?: CardUncheckedUpdateManyWithoutPackNestedInput
|
|
13219
14698
|
users?: UserUncheckedUpdateManyWithoutPacksNestedInput
|
|
13220
|
-
|
|
13221
|
-
|
|
14699
|
+
purchases?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
|
|
14700
|
+
teams?: TeamUncheckedUpdateManyWithoutDecksNestedInput
|
|
13222
14701
|
}
|
|
13223
14702
|
|
|
13224
14703
|
export type PackUncheckedUpdateManyWithoutPacksInput = {
|
|
@@ -13229,6 +14708,7 @@ export namespace Prisma {
|
|
|
13229
14708
|
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13230
14709
|
published?: BoolFieldUpdateOperationsInput | boolean
|
|
13231
14710
|
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
14711
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
13232
14712
|
}
|
|
13233
14713
|
|
|
13234
14714
|
export type CardCreateManyPackInput = {
|
|
@@ -13313,7 +14793,7 @@ export namespace Prisma {
|
|
|
13313
14793
|
status?: EnumPurchaseStatusFieldUpdateOperationsInput | PurchaseStatus
|
|
13314
14794
|
}
|
|
13315
14795
|
|
|
13316
|
-
export type
|
|
14796
|
+
export type PurchaseUncheckedUpdateManyWithoutPurchasesInput = {
|
|
13317
14797
|
id?: StringFieldUpdateOperationsInput | string
|
|
13318
14798
|
userId?: StringFieldUpdateOperationsInput | string
|
|
13319
14799
|
currency?: StringFieldUpdateOperationsInput | string
|
|
@@ -13323,6 +14803,27 @@ export namespace Prisma {
|
|
|
13323
14803
|
status?: EnumPurchaseStatusFieldUpdateOperationsInput | PurchaseStatus
|
|
13324
14804
|
}
|
|
13325
14805
|
|
|
14806
|
+
export type TeamUpdateWithoutDecksInput = {
|
|
14807
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
14808
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
14809
|
+
userCount?: IntFieldUpdateOperationsInput | number
|
|
14810
|
+
subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
14811
|
+
}
|
|
14812
|
+
|
|
14813
|
+
export type TeamUncheckedUpdateWithoutDecksInput = {
|
|
14814
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
14815
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
14816
|
+
userCount?: IntFieldUpdateOperationsInput | number
|
|
14817
|
+
subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
14818
|
+
}
|
|
14819
|
+
|
|
14820
|
+
export type TeamUncheckedUpdateManyWithoutTeamsInput = {
|
|
14821
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
14822
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
14823
|
+
userCount?: IntFieldUpdateOperationsInput | number
|
|
14824
|
+
subscriptionExpire?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
14825
|
+
}
|
|
14826
|
+
|
|
13326
14827
|
export type PurchaseCreateManyUserInput = {
|
|
13327
14828
|
id?: string
|
|
13328
14829
|
packId: string
|
|
@@ -13349,7 +14850,7 @@ export namespace Prisma {
|
|
|
13349
14850
|
|
|
13350
14851
|
export type PurchaseUpdateWithoutUserInput = {
|
|
13351
14852
|
id?: StringFieldUpdateOperationsInput | string
|
|
13352
|
-
pack?:
|
|
14853
|
+
pack?: PackUpdateOneRequiredWithoutPurchasesNestedInput
|
|
13353
14854
|
currency?: StringFieldUpdateOperationsInput | string
|
|
13354
14855
|
amount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
13355
14856
|
orderDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -13367,16 +14868,6 @@ export namespace Prisma {
|
|
|
13367
14868
|
status?: EnumPurchaseStatusFieldUpdateOperationsInput | PurchaseStatus
|
|
13368
14869
|
}
|
|
13369
14870
|
|
|
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
14871
|
export type PackUpdateWithoutUsersInput = {
|
|
13381
14872
|
id?: StringFieldUpdateOperationsInput | string
|
|
13382
14873
|
teacher?: TeacherUpdateOneRequiredWithoutPacksNestedInput
|
|
@@ -13385,9 +14876,11 @@ export namespace Prisma {
|
|
|
13385
14876
|
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13386
14877
|
category?: CategoryUpdateOneWithoutPacksNestedInput
|
|
13387
14878
|
published?: BoolFieldUpdateOperationsInput | boolean
|
|
13388
|
-
cards?: CardUpdateManyWithoutPackNestedInput
|
|
13389
|
-
purchase?: PurchaseUpdateManyWithoutPackNestedInput
|
|
13390
14879
|
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
14880
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
14881
|
+
cards?: CardUpdateManyWithoutPackNestedInput
|
|
14882
|
+
purchases?: PurchaseUpdateManyWithoutPackNestedInput
|
|
14883
|
+
teams?: TeamUpdateManyWithoutDecksNestedInput
|
|
13391
14884
|
}
|
|
13392
14885
|
|
|
13393
14886
|
export type PackUncheckedUpdateWithoutUsersInput = {
|
|
@@ -13398,9 +14891,11 @@ export namespace Prisma {
|
|
|
13398
14891
|
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13399
14892
|
categoryId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13400
14893
|
published?: BoolFieldUpdateOperationsInput | boolean
|
|
13401
|
-
cards?: CardUncheckedUpdateManyWithoutPackNestedInput
|
|
13402
|
-
purchase?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
|
|
13403
14894
|
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
14895
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
14896
|
+
cards?: CardUncheckedUpdateManyWithoutPackNestedInput
|
|
14897
|
+
purchases?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
|
|
14898
|
+
teams?: TeamUncheckedUpdateManyWithoutDecksNestedInput
|
|
13404
14899
|
}
|
|
13405
14900
|
|
|
13406
14901
|
export type UserCardUpdateWithoutUserInput = {
|
|
@@ -13438,6 +14933,48 @@ export namespace Prisma {
|
|
|
13438
14933
|
timestamp?: StringFieldUpdateOperationsInput | string
|
|
13439
14934
|
}
|
|
13440
14935
|
|
|
14936
|
+
export type PackUpdateWithoutTeamsInput = {
|
|
14937
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
14938
|
+
teacher?: TeacherUpdateOneRequiredWithoutPacksNestedInput
|
|
14939
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
14940
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
14941
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
14942
|
+
category?: CategoryUpdateOneWithoutPacksNestedInput
|
|
14943
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
14944
|
+
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
14945
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
14946
|
+
cards?: CardUpdateManyWithoutPackNestedInput
|
|
14947
|
+
users?: UserUpdateManyWithoutPacksNestedInput
|
|
14948
|
+
purchases?: PurchaseUpdateManyWithoutPackNestedInput
|
|
14949
|
+
}
|
|
14950
|
+
|
|
14951
|
+
export type PackUncheckedUpdateWithoutTeamsInput = {
|
|
14952
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
14953
|
+
teacherId?: StringFieldUpdateOperationsInput | string
|
|
14954
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
14955
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
14956
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
14957
|
+
categoryId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
14958
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
14959
|
+
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
14960
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
14961
|
+
cards?: CardUncheckedUpdateManyWithoutPackNestedInput
|
|
14962
|
+
users?: UserUncheckedUpdateManyWithoutPacksNestedInput
|
|
14963
|
+
purchases?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
|
|
14964
|
+
}
|
|
14965
|
+
|
|
14966
|
+
export type PackUncheckedUpdateManyWithoutDecksInput = {
|
|
14967
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
14968
|
+
teacherId?: StringFieldUpdateOperationsInput | string
|
|
14969
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
14970
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
14971
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
14972
|
+
categoryId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
14973
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
14974
|
+
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
14975
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
14976
|
+
}
|
|
14977
|
+
|
|
13441
14978
|
export type PackCreateManyTeacherInput = {
|
|
13442
14979
|
id?: string
|
|
13443
14980
|
name?: string
|
|
@@ -13446,6 +14983,7 @@ export namespace Prisma {
|
|
|
13446
14983
|
categoryId?: string | null
|
|
13447
14984
|
published?: boolean
|
|
13448
14985
|
currentPrice: Decimal | DecimalJsLike | number | string
|
|
14986
|
+
public: boolean
|
|
13449
14987
|
}
|
|
13450
14988
|
|
|
13451
14989
|
export type PackUpdateWithoutTeacherInput = {
|
|
@@ -13455,10 +14993,12 @@ export namespace Prisma {
|
|
|
13455
14993
|
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13456
14994
|
category?: CategoryUpdateOneWithoutPacksNestedInput
|
|
13457
14995
|
published?: BoolFieldUpdateOperationsInput | boolean
|
|
14996
|
+
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
14997
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
13458
14998
|
cards?: CardUpdateManyWithoutPackNestedInput
|
|
13459
14999
|
users?: UserUpdateManyWithoutPacksNestedInput
|
|
13460
|
-
|
|
13461
|
-
|
|
15000
|
+
purchases?: PurchaseUpdateManyWithoutPackNestedInput
|
|
15001
|
+
teams?: TeamUpdateManyWithoutDecksNestedInput
|
|
13462
15002
|
}
|
|
13463
15003
|
|
|
13464
15004
|
export type PackUncheckedUpdateWithoutTeacherInput = {
|
|
@@ -13468,10 +15008,12 @@ export namespace Prisma {
|
|
|
13468
15008
|
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13469
15009
|
categoryId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13470
15010
|
published?: BoolFieldUpdateOperationsInput | boolean
|
|
15011
|
+
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
15012
|
+
public?: BoolFieldUpdateOperationsInput | boolean
|
|
13471
15013
|
cards?: CardUncheckedUpdateManyWithoutPackNestedInput
|
|
13472
15014
|
users?: UserUncheckedUpdateManyWithoutPacksNestedInput
|
|
13473
|
-
|
|
13474
|
-
|
|
15015
|
+
purchases?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
|
|
15016
|
+
teams?: TeamUncheckedUpdateManyWithoutDecksNestedInput
|
|
13475
15017
|
}
|
|
13476
15018
|
|
|
13477
15019
|
|