lang-database 1.9.0 → 1.10.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.
|
@@ -35,6 +35,15 @@ export type UserCard = {
|
|
|
35
35
|
done: boolean
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Model Category
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
export type Category = {
|
|
43
|
+
id: string
|
|
44
|
+
name: string
|
|
45
|
+
}
|
|
46
|
+
|
|
38
47
|
/**
|
|
39
48
|
* Model Pack
|
|
40
49
|
*
|
|
@@ -43,6 +52,10 @@ export type Pack = {
|
|
|
43
52
|
id: string
|
|
44
53
|
teacherId: string
|
|
45
54
|
name: string
|
|
55
|
+
shortDescription: string
|
|
56
|
+
longDescription: string
|
|
57
|
+
categoryId: string | null
|
|
58
|
+
published: boolean
|
|
46
59
|
currentPrice: Prisma.Decimal
|
|
47
60
|
}
|
|
48
61
|
|
|
@@ -279,6 +292,16 @@ export class PrismaClient<
|
|
|
279
292
|
*/
|
|
280
293
|
get userCard(): Prisma.UserCardDelegate<GlobalReject>;
|
|
281
294
|
|
|
295
|
+
/**
|
|
296
|
+
* `prisma.category`: Exposes CRUD operations for the **Category** model.
|
|
297
|
+
* Example usage:
|
|
298
|
+
* ```ts
|
|
299
|
+
* // Fetch zero or more Categories
|
|
300
|
+
* const categories = await prisma.category.findMany()
|
|
301
|
+
* ```
|
|
302
|
+
*/
|
|
303
|
+
get category(): Prisma.CategoryDelegate<GlobalReject>;
|
|
304
|
+
|
|
282
305
|
/**
|
|
283
306
|
* `prisma.pack`: Exposes CRUD operations for the **Pack** model.
|
|
284
307
|
* Example usage:
|
|
@@ -813,6 +836,7 @@ export namespace Prisma {
|
|
|
813
836
|
export const ModelName: {
|
|
814
837
|
Card: 'Card',
|
|
815
838
|
UserCard: 'UserCard',
|
|
839
|
+
Category: 'Category',
|
|
816
840
|
Pack: 'Pack',
|
|
817
841
|
User: 'User',
|
|
818
842
|
Teacher: 'Teacher',
|
|
@@ -1026,6 +1050,55 @@ export namespace Prisma {
|
|
|
1026
1050
|
|
|
1027
1051
|
|
|
1028
1052
|
|
|
1053
|
+
/**
|
|
1054
|
+
* Count Type CategoryCountOutputType
|
|
1055
|
+
*/
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
export type CategoryCountOutputType = {
|
|
1059
|
+
packs: number
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
export type CategoryCountOutputTypeSelect = {
|
|
1063
|
+
packs?: boolean
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
export type CategoryCountOutputTypeGetPayload<
|
|
1067
|
+
S extends boolean | null | undefined | CategoryCountOutputTypeArgs,
|
|
1068
|
+
U = keyof S
|
|
1069
|
+
> = S extends true
|
|
1070
|
+
? CategoryCountOutputType
|
|
1071
|
+
: S extends undefined
|
|
1072
|
+
? never
|
|
1073
|
+
: S extends CategoryCountOutputTypeArgs
|
|
1074
|
+
?'include' extends U
|
|
1075
|
+
? CategoryCountOutputType
|
|
1076
|
+
: 'select' extends U
|
|
1077
|
+
? {
|
|
1078
|
+
[P in TrueKeys<S['select']>]:
|
|
1079
|
+
P extends keyof CategoryCountOutputType ? CategoryCountOutputType[P] : never
|
|
1080
|
+
}
|
|
1081
|
+
: CategoryCountOutputType
|
|
1082
|
+
: CategoryCountOutputType
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
// Custom InputTypes
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* CategoryCountOutputType without action
|
|
1091
|
+
*/
|
|
1092
|
+
export type CategoryCountOutputTypeArgs = {
|
|
1093
|
+
/**
|
|
1094
|
+
* Select specific fields to fetch from the CategoryCountOutputType
|
|
1095
|
+
*
|
|
1096
|
+
**/
|
|
1097
|
+
select?: CategoryCountOutputTypeSelect | null
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
|
|
1029
1102
|
/**
|
|
1030
1103
|
* Count Type PackCountOutputType
|
|
1031
1104
|
*/
|
|
@@ -3080,360 +3153,298 @@ export namespace Prisma {
|
|
|
3080
3153
|
|
|
3081
3154
|
|
|
3082
3155
|
/**
|
|
3083
|
-
* Model
|
|
3156
|
+
* Model Category
|
|
3084
3157
|
*/
|
|
3085
3158
|
|
|
3086
3159
|
|
|
3087
|
-
export type
|
|
3088
|
-
_count:
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
_min: PackMinAggregateOutputType | null
|
|
3092
|
-
_max: PackMaxAggregateOutputType | null
|
|
3093
|
-
}
|
|
3094
|
-
|
|
3095
|
-
export type PackAvgAggregateOutputType = {
|
|
3096
|
-
currentPrice: Decimal | null
|
|
3097
|
-
}
|
|
3098
|
-
|
|
3099
|
-
export type PackSumAggregateOutputType = {
|
|
3100
|
-
currentPrice: Decimal | null
|
|
3160
|
+
export type AggregateCategory = {
|
|
3161
|
+
_count: CategoryCountAggregateOutputType | null
|
|
3162
|
+
_min: CategoryMinAggregateOutputType | null
|
|
3163
|
+
_max: CategoryMaxAggregateOutputType | null
|
|
3101
3164
|
}
|
|
3102
3165
|
|
|
3103
|
-
export type
|
|
3166
|
+
export type CategoryMinAggregateOutputType = {
|
|
3104
3167
|
id: string | null
|
|
3105
|
-
teacherId: string | null
|
|
3106
3168
|
name: string | null
|
|
3107
|
-
currentPrice: Decimal | null
|
|
3108
3169
|
}
|
|
3109
3170
|
|
|
3110
|
-
export type
|
|
3171
|
+
export type CategoryMaxAggregateOutputType = {
|
|
3111
3172
|
id: string | null
|
|
3112
|
-
teacherId: string | null
|
|
3113
3173
|
name: string | null
|
|
3114
|
-
currentPrice: Decimal | null
|
|
3115
3174
|
}
|
|
3116
3175
|
|
|
3117
|
-
export type
|
|
3176
|
+
export type CategoryCountAggregateOutputType = {
|
|
3118
3177
|
id: number
|
|
3119
|
-
teacherId: number
|
|
3120
3178
|
name: number
|
|
3121
|
-
currentPrice: number
|
|
3122
3179
|
_all: number
|
|
3123
3180
|
}
|
|
3124
3181
|
|
|
3125
3182
|
|
|
3126
|
-
export type
|
|
3127
|
-
currentPrice?: true
|
|
3128
|
-
}
|
|
3129
|
-
|
|
3130
|
-
export type PackSumAggregateInputType = {
|
|
3131
|
-
currentPrice?: true
|
|
3132
|
-
}
|
|
3133
|
-
|
|
3134
|
-
export type PackMinAggregateInputType = {
|
|
3183
|
+
export type CategoryMinAggregateInputType = {
|
|
3135
3184
|
id?: true
|
|
3136
|
-
teacherId?: true
|
|
3137
3185
|
name?: true
|
|
3138
|
-
currentPrice?: true
|
|
3139
3186
|
}
|
|
3140
3187
|
|
|
3141
|
-
export type
|
|
3188
|
+
export type CategoryMaxAggregateInputType = {
|
|
3142
3189
|
id?: true
|
|
3143
|
-
teacherId?: true
|
|
3144
3190
|
name?: true
|
|
3145
|
-
currentPrice?: true
|
|
3146
3191
|
}
|
|
3147
3192
|
|
|
3148
|
-
export type
|
|
3193
|
+
export type CategoryCountAggregateInputType = {
|
|
3149
3194
|
id?: true
|
|
3150
|
-
teacherId?: true
|
|
3151
3195
|
name?: true
|
|
3152
|
-
currentPrice?: true
|
|
3153
3196
|
_all?: true
|
|
3154
3197
|
}
|
|
3155
3198
|
|
|
3156
|
-
export type
|
|
3199
|
+
export type CategoryAggregateArgs = {
|
|
3157
3200
|
/**
|
|
3158
|
-
* Filter which
|
|
3201
|
+
* Filter which Category to aggregate.
|
|
3159
3202
|
*
|
|
3160
3203
|
**/
|
|
3161
|
-
where?:
|
|
3204
|
+
where?: CategoryWhereInput
|
|
3162
3205
|
/**
|
|
3163
3206
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
3164
3207
|
*
|
|
3165
|
-
* Determine the order of
|
|
3208
|
+
* Determine the order of Categories to fetch.
|
|
3166
3209
|
*
|
|
3167
3210
|
**/
|
|
3168
|
-
orderBy?: Enumerable<
|
|
3211
|
+
orderBy?: Enumerable<CategoryOrderByWithRelationInput>
|
|
3169
3212
|
/**
|
|
3170
3213
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
3171
3214
|
*
|
|
3172
3215
|
* Sets the start position
|
|
3173
3216
|
*
|
|
3174
3217
|
**/
|
|
3175
|
-
cursor?:
|
|
3218
|
+
cursor?: CategoryWhereUniqueInput
|
|
3176
3219
|
/**
|
|
3177
3220
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
3178
3221
|
*
|
|
3179
|
-
* Take `±n`
|
|
3222
|
+
* Take `±n` Categories from the position of the cursor.
|
|
3180
3223
|
*
|
|
3181
3224
|
**/
|
|
3182
3225
|
take?: number
|
|
3183
3226
|
/**
|
|
3184
3227
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
3185
3228
|
*
|
|
3186
|
-
* Skip the first `n`
|
|
3229
|
+
* Skip the first `n` Categories.
|
|
3187
3230
|
*
|
|
3188
3231
|
**/
|
|
3189
3232
|
skip?: number
|
|
3190
3233
|
/**
|
|
3191
3234
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
3192
3235
|
*
|
|
3193
|
-
* Count returned
|
|
3194
|
-
**/
|
|
3195
|
-
_count?: true | PackCountAggregateInputType
|
|
3196
|
-
/**
|
|
3197
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
3198
|
-
*
|
|
3199
|
-
* Select which fields to average
|
|
3200
|
-
**/
|
|
3201
|
-
_avg?: PackAvgAggregateInputType
|
|
3202
|
-
/**
|
|
3203
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
3204
|
-
*
|
|
3205
|
-
* Select which fields to sum
|
|
3236
|
+
* Count returned Categories
|
|
3206
3237
|
**/
|
|
3207
|
-
|
|
3238
|
+
_count?: true | CategoryCountAggregateInputType
|
|
3208
3239
|
/**
|
|
3209
3240
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
3210
3241
|
*
|
|
3211
3242
|
* Select which fields to find the minimum value
|
|
3212
3243
|
**/
|
|
3213
|
-
_min?:
|
|
3244
|
+
_min?: CategoryMinAggregateInputType
|
|
3214
3245
|
/**
|
|
3215
3246
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
3216
3247
|
*
|
|
3217
3248
|
* Select which fields to find the maximum value
|
|
3218
3249
|
**/
|
|
3219
|
-
_max?:
|
|
3250
|
+
_max?: CategoryMaxAggregateInputType
|
|
3220
3251
|
}
|
|
3221
3252
|
|
|
3222
|
-
export type
|
|
3223
|
-
[P in keyof T & keyof
|
|
3253
|
+
export type GetCategoryAggregateType<T extends CategoryAggregateArgs> = {
|
|
3254
|
+
[P in keyof T & keyof AggregateCategory]: P extends '_count' | 'count'
|
|
3224
3255
|
? T[P] extends true
|
|
3225
3256
|
? number
|
|
3226
|
-
: GetScalarType<T[P],
|
|
3227
|
-
: GetScalarType<T[P],
|
|
3257
|
+
: GetScalarType<T[P], AggregateCategory[P]>
|
|
3258
|
+
: GetScalarType<T[P], AggregateCategory[P]>
|
|
3228
3259
|
}
|
|
3229
3260
|
|
|
3230
3261
|
|
|
3231
3262
|
|
|
3232
3263
|
|
|
3233
|
-
export type
|
|
3234
|
-
where?:
|
|
3235
|
-
orderBy?: Enumerable<
|
|
3236
|
-
by: Array<
|
|
3237
|
-
having?:
|
|
3264
|
+
export type CategoryGroupByArgs = {
|
|
3265
|
+
where?: CategoryWhereInput
|
|
3266
|
+
orderBy?: Enumerable<CategoryOrderByWithAggregationInput>
|
|
3267
|
+
by: Array<CategoryScalarFieldEnum>
|
|
3268
|
+
having?: CategoryScalarWhereWithAggregatesInput
|
|
3238
3269
|
take?: number
|
|
3239
3270
|
skip?: number
|
|
3240
|
-
_count?:
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
_min?: PackMinAggregateInputType
|
|
3244
|
-
_max?: PackMaxAggregateInputType
|
|
3271
|
+
_count?: CategoryCountAggregateInputType | true
|
|
3272
|
+
_min?: CategoryMinAggregateInputType
|
|
3273
|
+
_max?: CategoryMaxAggregateInputType
|
|
3245
3274
|
}
|
|
3246
3275
|
|
|
3247
3276
|
|
|
3248
|
-
export type
|
|
3277
|
+
export type CategoryGroupByOutputType = {
|
|
3249
3278
|
id: string
|
|
3250
|
-
teacherId: string
|
|
3251
3279
|
name: string
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
_sum: PackSumAggregateOutputType | null
|
|
3256
|
-
_min: PackMinAggregateOutputType | null
|
|
3257
|
-
_max: PackMaxAggregateOutputType | null
|
|
3280
|
+
_count: CategoryCountAggregateOutputType | null
|
|
3281
|
+
_min: CategoryMinAggregateOutputType | null
|
|
3282
|
+
_max: CategoryMaxAggregateOutputType | null
|
|
3258
3283
|
}
|
|
3259
3284
|
|
|
3260
|
-
type
|
|
3285
|
+
type GetCategoryGroupByPayload<T extends CategoryGroupByArgs> = PrismaPromise<
|
|
3261
3286
|
Array<
|
|
3262
|
-
PickArray<
|
|
3287
|
+
PickArray<CategoryGroupByOutputType, T['by']> &
|
|
3263
3288
|
{
|
|
3264
|
-
[P in ((keyof T) & (keyof
|
|
3289
|
+
[P in ((keyof T) & (keyof CategoryGroupByOutputType))]: P extends '_count'
|
|
3265
3290
|
? T[P] extends boolean
|
|
3266
3291
|
? number
|
|
3267
|
-
: GetScalarType<T[P],
|
|
3268
|
-
: GetScalarType<T[P],
|
|
3292
|
+
: GetScalarType<T[P], CategoryGroupByOutputType[P]>
|
|
3293
|
+
: GetScalarType<T[P], CategoryGroupByOutputType[P]>
|
|
3269
3294
|
}
|
|
3270
3295
|
>
|
|
3271
3296
|
>
|
|
3272
3297
|
|
|
3273
3298
|
|
|
3274
|
-
export type
|
|
3299
|
+
export type CategorySelect = {
|
|
3275
3300
|
id?: boolean
|
|
3276
|
-
teacher?: boolean | TeacherArgs
|
|
3277
|
-
teacherId?: boolean
|
|
3278
3301
|
name?: boolean
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
purchase?: boolean | PurchaseFindManyArgs
|
|
3282
|
-
currentPrice?: boolean
|
|
3283
|
-
_count?: boolean | PackCountOutputTypeArgs
|
|
3302
|
+
packs?: boolean | PackFindManyArgs
|
|
3303
|
+
_count?: boolean | CategoryCountOutputTypeArgs
|
|
3284
3304
|
}
|
|
3285
3305
|
|
|
3286
|
-
export type
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
users?: boolean | UserFindManyArgs
|
|
3290
|
-
purchase?: boolean | PurchaseFindManyArgs
|
|
3291
|
-
_count?: boolean | PackCountOutputTypeArgs
|
|
3306
|
+
export type CategoryInclude = {
|
|
3307
|
+
packs?: boolean | PackFindManyArgs
|
|
3308
|
+
_count?: boolean | CategoryCountOutputTypeArgs
|
|
3292
3309
|
}
|
|
3293
3310
|
|
|
3294
|
-
export type
|
|
3295
|
-
S extends boolean | null | undefined |
|
|
3311
|
+
export type CategoryGetPayload<
|
|
3312
|
+
S extends boolean | null | undefined | CategoryArgs,
|
|
3296
3313
|
U = keyof S
|
|
3297
3314
|
> = S extends true
|
|
3298
|
-
?
|
|
3315
|
+
? Category
|
|
3299
3316
|
: S extends undefined
|
|
3300
3317
|
? never
|
|
3301
|
-
: S extends
|
|
3318
|
+
: S extends CategoryArgs | CategoryFindManyArgs
|
|
3302
3319
|
?'include' extends U
|
|
3303
|
-
?
|
|
3320
|
+
? Category & {
|
|
3304
3321
|
[P in TrueKeys<S['include']>]:
|
|
3305
|
-
P extends '
|
|
3306
|
-
P extends '
|
|
3307
|
-
P extends 'users' ? Array < UserGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
3308
|
-
P extends 'purchase' ? Array < PurchaseGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
3309
|
-
P extends '_count' ? PackCountOutputTypeGetPayload<Exclude<S['include'], undefined | null>[P]> : never
|
|
3322
|
+
P extends 'packs' ? Array < PackGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
3323
|
+
P extends '_count' ? CategoryCountOutputTypeGetPayload<Exclude<S['include'], undefined | null>[P]> : never
|
|
3310
3324
|
}
|
|
3311
3325
|
: 'select' extends U
|
|
3312
3326
|
? {
|
|
3313
3327
|
[P in TrueKeys<S['select']>]:
|
|
3314
|
-
P extends '
|
|
3315
|
-
P extends '
|
|
3316
|
-
P extends 'users' ? Array < UserGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
3317
|
-
P extends 'purchase' ? Array < PurchaseGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
3318
|
-
P extends '_count' ? PackCountOutputTypeGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof Pack ? Pack[P] : never
|
|
3328
|
+
P extends 'packs' ? Array < PackGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
3329
|
+
P extends '_count' ? CategoryCountOutputTypeGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof Category ? Category[P] : never
|
|
3319
3330
|
}
|
|
3320
|
-
:
|
|
3321
|
-
:
|
|
3331
|
+
: Category
|
|
3332
|
+
: Category
|
|
3322
3333
|
|
|
3323
3334
|
|
|
3324
|
-
type
|
|
3325
|
-
Omit<
|
|
3326
|
-
select?:
|
|
3335
|
+
type CategoryCountArgs = Merge<
|
|
3336
|
+
Omit<CategoryFindManyArgs, 'select' | 'include'> & {
|
|
3337
|
+
select?: CategoryCountAggregateInputType | true
|
|
3327
3338
|
}
|
|
3328
3339
|
>
|
|
3329
3340
|
|
|
3330
|
-
export interface
|
|
3341
|
+
export interface CategoryDelegate<GlobalRejectSettings extends Prisma.RejectOnNotFound | Prisma.RejectPerOperation | false | undefined> {
|
|
3331
3342
|
/**
|
|
3332
|
-
* Find zero or one
|
|
3333
|
-
* @param {
|
|
3343
|
+
* Find zero or one Category that matches the filter.
|
|
3344
|
+
* @param {CategoryFindUniqueArgs} args - Arguments to find a Category
|
|
3334
3345
|
* @example
|
|
3335
|
-
* // Get one
|
|
3336
|
-
* const
|
|
3346
|
+
* // Get one Category
|
|
3347
|
+
* const category = await prisma.category.findUnique({
|
|
3337
3348
|
* where: {
|
|
3338
3349
|
* // ... provide filter here
|
|
3339
3350
|
* }
|
|
3340
3351
|
* })
|
|
3341
3352
|
**/
|
|
3342
|
-
findUnique<T extends
|
|
3343
|
-
args: SelectSubset<T,
|
|
3344
|
-
): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findUnique', '
|
|
3353
|
+
findUnique<T extends CategoryFindUniqueArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
|
|
3354
|
+
args: SelectSubset<T, CategoryFindUniqueArgs>
|
|
3355
|
+
): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findUnique', 'Category'> extends True ? CheckSelect<T, Prisma__CategoryClient<Category>, Prisma__CategoryClient<CategoryGetPayload<T>>> : CheckSelect<T, Prisma__CategoryClient<Category | null >, Prisma__CategoryClient<CategoryGetPayload<T> | null >>
|
|
3345
3356
|
|
|
3346
3357
|
/**
|
|
3347
|
-
* Find the first
|
|
3358
|
+
* Find the first Category that matches the filter.
|
|
3348
3359
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
3349
3360
|
* Read more here: https://pris.ly/d/null-undefined
|
|
3350
|
-
* @param {
|
|
3361
|
+
* @param {CategoryFindFirstArgs} args - Arguments to find a Category
|
|
3351
3362
|
* @example
|
|
3352
|
-
* // Get one
|
|
3353
|
-
* const
|
|
3363
|
+
* // Get one Category
|
|
3364
|
+
* const category = await prisma.category.findFirst({
|
|
3354
3365
|
* where: {
|
|
3355
3366
|
* // ... provide filter here
|
|
3356
3367
|
* }
|
|
3357
3368
|
* })
|
|
3358
3369
|
**/
|
|
3359
|
-
findFirst<T extends
|
|
3360
|
-
args?: SelectSubset<T,
|
|
3361
|
-
): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findFirst', '
|
|
3370
|
+
findFirst<T extends CategoryFindFirstArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
|
|
3371
|
+
args?: SelectSubset<T, CategoryFindFirstArgs>
|
|
3372
|
+
): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findFirst', 'Category'> extends True ? CheckSelect<T, Prisma__CategoryClient<Category>, Prisma__CategoryClient<CategoryGetPayload<T>>> : CheckSelect<T, Prisma__CategoryClient<Category | null >, Prisma__CategoryClient<CategoryGetPayload<T> | null >>
|
|
3362
3373
|
|
|
3363
3374
|
/**
|
|
3364
|
-
* Find zero or more
|
|
3375
|
+
* Find zero or more Categories that matches the filter.
|
|
3365
3376
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
3366
3377
|
* Read more here: https://pris.ly/d/null-undefined
|
|
3367
|
-
* @param {
|
|
3378
|
+
* @param {CategoryFindManyArgs=} args - Arguments to filter and select certain fields only.
|
|
3368
3379
|
* @example
|
|
3369
|
-
* // Get all
|
|
3370
|
-
* const
|
|
3380
|
+
* // Get all Categories
|
|
3381
|
+
* const categories = await prisma.category.findMany()
|
|
3371
3382
|
*
|
|
3372
|
-
* // Get first 10
|
|
3373
|
-
* const
|
|
3383
|
+
* // Get first 10 Categories
|
|
3384
|
+
* const categories = await prisma.category.findMany({ take: 10 })
|
|
3374
3385
|
*
|
|
3375
3386
|
* // Only select the `id`
|
|
3376
|
-
* const
|
|
3387
|
+
* const categoryWithIdOnly = await prisma.category.findMany({ select: { id: true } })
|
|
3377
3388
|
*
|
|
3378
3389
|
**/
|
|
3379
|
-
findMany<T extends
|
|
3380
|
-
args?: SelectSubset<T,
|
|
3381
|
-
): CheckSelect<T, PrismaPromise<Array<
|
|
3390
|
+
findMany<T extends CategoryFindManyArgs>(
|
|
3391
|
+
args?: SelectSubset<T, CategoryFindManyArgs>
|
|
3392
|
+
): CheckSelect<T, PrismaPromise<Array<Category>>, PrismaPromise<Array<CategoryGetPayload<T>>>>
|
|
3382
3393
|
|
|
3383
3394
|
/**
|
|
3384
|
-
* Create a
|
|
3385
|
-
* @param {
|
|
3395
|
+
* Create a Category.
|
|
3396
|
+
* @param {CategoryCreateArgs} args - Arguments to create a Category.
|
|
3386
3397
|
* @example
|
|
3387
|
-
* // Create one
|
|
3388
|
-
* const
|
|
3398
|
+
* // Create one Category
|
|
3399
|
+
* const Category = await prisma.category.create({
|
|
3389
3400
|
* data: {
|
|
3390
|
-
* // ... data to create a
|
|
3401
|
+
* // ... data to create a Category
|
|
3391
3402
|
* }
|
|
3392
3403
|
* })
|
|
3393
3404
|
*
|
|
3394
3405
|
**/
|
|
3395
|
-
create<T extends
|
|
3396
|
-
args: SelectSubset<T,
|
|
3397
|
-
): CheckSelect<T,
|
|
3406
|
+
create<T extends CategoryCreateArgs>(
|
|
3407
|
+
args: SelectSubset<T, CategoryCreateArgs>
|
|
3408
|
+
): CheckSelect<T, Prisma__CategoryClient<Category>, Prisma__CategoryClient<CategoryGetPayload<T>>>
|
|
3398
3409
|
|
|
3399
3410
|
/**
|
|
3400
|
-
* Create many
|
|
3401
|
-
* @param {
|
|
3411
|
+
* Create many Categories.
|
|
3412
|
+
* @param {CategoryCreateManyArgs} args - Arguments to create many Categories.
|
|
3402
3413
|
* @example
|
|
3403
|
-
* // Create many
|
|
3404
|
-
* const
|
|
3414
|
+
* // Create many Categories
|
|
3415
|
+
* const category = await prisma.category.createMany({
|
|
3405
3416
|
* data: {
|
|
3406
3417
|
* // ... provide data here
|
|
3407
3418
|
* }
|
|
3408
3419
|
* })
|
|
3409
3420
|
*
|
|
3410
3421
|
**/
|
|
3411
|
-
createMany<T extends
|
|
3412
|
-
args?: SelectSubset<T,
|
|
3422
|
+
createMany<T extends CategoryCreateManyArgs>(
|
|
3423
|
+
args?: SelectSubset<T, CategoryCreateManyArgs>
|
|
3413
3424
|
): PrismaPromise<BatchPayload>
|
|
3414
3425
|
|
|
3415
3426
|
/**
|
|
3416
|
-
* Delete a
|
|
3417
|
-
* @param {
|
|
3427
|
+
* Delete a Category.
|
|
3428
|
+
* @param {CategoryDeleteArgs} args - Arguments to delete one Category.
|
|
3418
3429
|
* @example
|
|
3419
|
-
* // Delete one
|
|
3420
|
-
* const
|
|
3430
|
+
* // Delete one Category
|
|
3431
|
+
* const Category = await prisma.category.delete({
|
|
3421
3432
|
* where: {
|
|
3422
|
-
* // ... filter to delete one
|
|
3433
|
+
* // ... filter to delete one Category
|
|
3423
3434
|
* }
|
|
3424
3435
|
* })
|
|
3425
3436
|
*
|
|
3426
3437
|
**/
|
|
3427
|
-
delete<T extends
|
|
3428
|
-
args: SelectSubset<T,
|
|
3429
|
-
): CheckSelect<T,
|
|
3438
|
+
delete<T extends CategoryDeleteArgs>(
|
|
3439
|
+
args: SelectSubset<T, CategoryDeleteArgs>
|
|
3440
|
+
): CheckSelect<T, Prisma__CategoryClient<Category>, Prisma__CategoryClient<CategoryGetPayload<T>>>
|
|
3430
3441
|
|
|
3431
3442
|
/**
|
|
3432
|
-
* Update one
|
|
3433
|
-
* @param {
|
|
3443
|
+
* Update one Category.
|
|
3444
|
+
* @param {CategoryUpdateArgs} args - Arguments to update one Category.
|
|
3434
3445
|
* @example
|
|
3435
|
-
* // Update one
|
|
3436
|
-
* const
|
|
3446
|
+
* // Update one Category
|
|
3447
|
+
* const category = await prisma.category.update({
|
|
3437
3448
|
* where: {
|
|
3438
3449
|
* // ... provide filter here
|
|
3439
3450
|
* },
|
|
@@ -3443,34 +3454,34 @@ export namespace Prisma {
|
|
|
3443
3454
|
* })
|
|
3444
3455
|
*
|
|
3445
3456
|
**/
|
|
3446
|
-
update<T extends
|
|
3447
|
-
args: SelectSubset<T,
|
|
3448
|
-
): CheckSelect<T,
|
|
3457
|
+
update<T extends CategoryUpdateArgs>(
|
|
3458
|
+
args: SelectSubset<T, CategoryUpdateArgs>
|
|
3459
|
+
): CheckSelect<T, Prisma__CategoryClient<Category>, Prisma__CategoryClient<CategoryGetPayload<T>>>
|
|
3449
3460
|
|
|
3450
3461
|
/**
|
|
3451
|
-
* Delete zero or more
|
|
3452
|
-
* @param {
|
|
3462
|
+
* Delete zero or more Categories.
|
|
3463
|
+
* @param {CategoryDeleteManyArgs} args - Arguments to filter Categories to delete.
|
|
3453
3464
|
* @example
|
|
3454
|
-
* // Delete a few
|
|
3455
|
-
* const { count } = await prisma.
|
|
3465
|
+
* // Delete a few Categories
|
|
3466
|
+
* const { count } = await prisma.category.deleteMany({
|
|
3456
3467
|
* where: {
|
|
3457
3468
|
* // ... provide filter here
|
|
3458
3469
|
* }
|
|
3459
3470
|
* })
|
|
3460
3471
|
*
|
|
3461
3472
|
**/
|
|
3462
|
-
deleteMany<T extends
|
|
3463
|
-
args?: SelectSubset<T,
|
|
3473
|
+
deleteMany<T extends CategoryDeleteManyArgs>(
|
|
3474
|
+
args?: SelectSubset<T, CategoryDeleteManyArgs>
|
|
3464
3475
|
): PrismaPromise<BatchPayload>
|
|
3465
3476
|
|
|
3466
3477
|
/**
|
|
3467
|
-
* Update zero or more
|
|
3478
|
+
* Update zero or more Categories.
|
|
3468
3479
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
3469
3480
|
* Read more here: https://pris.ly/d/null-undefined
|
|
3470
|
-
* @param {
|
|
3481
|
+
* @param {CategoryUpdateManyArgs} args - Arguments to update one or more rows.
|
|
3471
3482
|
* @example
|
|
3472
|
-
* // Update many
|
|
3473
|
-
* const
|
|
3483
|
+
* // Update many Categories
|
|
3484
|
+
* const category = await prisma.category.updateMany({
|
|
3474
3485
|
* where: {
|
|
3475
3486
|
* // ... provide filter here
|
|
3476
3487
|
* },
|
|
@@ -3480,38 +3491,1041 @@ export namespace Prisma {
|
|
|
3480
3491
|
* })
|
|
3481
3492
|
*
|
|
3482
3493
|
**/
|
|
3483
|
-
updateMany<T extends
|
|
3484
|
-
args: SelectSubset<T,
|
|
3494
|
+
updateMany<T extends CategoryUpdateManyArgs>(
|
|
3495
|
+
args: SelectSubset<T, CategoryUpdateManyArgs>
|
|
3485
3496
|
): PrismaPromise<BatchPayload>
|
|
3486
3497
|
|
|
3487
3498
|
/**
|
|
3488
|
-
* Create or update one
|
|
3489
|
-
* @param {
|
|
3499
|
+
* Create or update one Category.
|
|
3500
|
+
* @param {CategoryUpsertArgs} args - Arguments to update or create a Category.
|
|
3490
3501
|
* @example
|
|
3491
|
-
* // Update or create a
|
|
3492
|
-
* const
|
|
3502
|
+
* // Update or create a Category
|
|
3503
|
+
* const category = await prisma.category.upsert({
|
|
3493
3504
|
* create: {
|
|
3494
|
-
* // ... data to create a
|
|
3505
|
+
* // ... data to create a Category
|
|
3495
3506
|
* },
|
|
3496
3507
|
* update: {
|
|
3497
3508
|
* // ... in case it already exists, update
|
|
3498
3509
|
* },
|
|
3499
3510
|
* where: {
|
|
3500
|
-
* // ... the filter for the
|
|
3511
|
+
* // ... the filter for the Category we want to update
|
|
3501
3512
|
* }
|
|
3502
3513
|
* })
|
|
3503
3514
|
**/
|
|
3504
|
-
upsert<T extends
|
|
3505
|
-
args: SelectSubset<T,
|
|
3506
|
-
): CheckSelect<T,
|
|
3515
|
+
upsert<T extends CategoryUpsertArgs>(
|
|
3516
|
+
args: SelectSubset<T, CategoryUpsertArgs>
|
|
3517
|
+
): CheckSelect<T, Prisma__CategoryClient<Category>, Prisma__CategoryClient<CategoryGetPayload<T>>>
|
|
3507
3518
|
|
|
3508
3519
|
/**
|
|
3509
|
-
* Find one
|
|
3520
|
+
* Find one Category that matches the filter or throw
|
|
3510
3521
|
* `NotFoundError` if no matches were found.
|
|
3511
|
-
* @param {
|
|
3522
|
+
* @param {CategoryFindUniqueOrThrowArgs} args - Arguments to find a Category
|
|
3512
3523
|
* @example
|
|
3513
|
-
* // Get one
|
|
3514
|
-
* const
|
|
3524
|
+
* // Get one Category
|
|
3525
|
+
* const category = await prisma.category.findUniqueOrThrow({
|
|
3526
|
+
* where: {
|
|
3527
|
+
* // ... provide filter here
|
|
3528
|
+
* }
|
|
3529
|
+
* })
|
|
3530
|
+
**/
|
|
3531
|
+
findUniqueOrThrow<T extends CategoryFindUniqueOrThrowArgs>(
|
|
3532
|
+
args?: SelectSubset<T, CategoryFindUniqueOrThrowArgs>
|
|
3533
|
+
): CheckSelect<T, Prisma__CategoryClient<Category>, Prisma__CategoryClient<CategoryGetPayload<T>>>
|
|
3534
|
+
|
|
3535
|
+
/**
|
|
3536
|
+
* Find the first Category that matches the filter or
|
|
3537
|
+
* throw `NotFoundError` if no matches were found.
|
|
3538
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
3539
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
3540
|
+
* @param {CategoryFindFirstOrThrowArgs} args - Arguments to find a Category
|
|
3541
|
+
* @example
|
|
3542
|
+
* // Get one Category
|
|
3543
|
+
* const category = await prisma.category.findFirstOrThrow({
|
|
3544
|
+
* where: {
|
|
3545
|
+
* // ... provide filter here
|
|
3546
|
+
* }
|
|
3547
|
+
* })
|
|
3548
|
+
**/
|
|
3549
|
+
findFirstOrThrow<T extends CategoryFindFirstOrThrowArgs>(
|
|
3550
|
+
args?: SelectSubset<T, CategoryFindFirstOrThrowArgs>
|
|
3551
|
+
): CheckSelect<T, Prisma__CategoryClient<Category>, Prisma__CategoryClient<CategoryGetPayload<T>>>
|
|
3552
|
+
|
|
3553
|
+
/**
|
|
3554
|
+
* Count the number of Categories.
|
|
3555
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
3556
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
3557
|
+
* @param {CategoryCountArgs} args - Arguments to filter Categories to count.
|
|
3558
|
+
* @example
|
|
3559
|
+
* // Count the number of Categories
|
|
3560
|
+
* const count = await prisma.category.count({
|
|
3561
|
+
* where: {
|
|
3562
|
+
* // ... the filter for the Categories we want to count
|
|
3563
|
+
* }
|
|
3564
|
+
* })
|
|
3565
|
+
**/
|
|
3566
|
+
count<T extends CategoryCountArgs>(
|
|
3567
|
+
args?: Subset<T, CategoryCountArgs>,
|
|
3568
|
+
): PrismaPromise<
|
|
3569
|
+
T extends _Record<'select', any>
|
|
3570
|
+
? T['select'] extends true
|
|
3571
|
+
? number
|
|
3572
|
+
: GetScalarType<T['select'], CategoryCountAggregateOutputType>
|
|
3573
|
+
: number
|
|
3574
|
+
>
|
|
3575
|
+
|
|
3576
|
+
/**
|
|
3577
|
+
* Allows you to perform aggregations operations on a Category.
|
|
3578
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
3579
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
3580
|
+
* @param {CategoryAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
3581
|
+
* @example
|
|
3582
|
+
* // Ordered by age ascending
|
|
3583
|
+
* // Where email contains prisma.io
|
|
3584
|
+
* // Limited to the 10 users
|
|
3585
|
+
* const aggregations = await prisma.user.aggregate({
|
|
3586
|
+
* _avg: {
|
|
3587
|
+
* age: true,
|
|
3588
|
+
* },
|
|
3589
|
+
* where: {
|
|
3590
|
+
* email: {
|
|
3591
|
+
* contains: "prisma.io",
|
|
3592
|
+
* },
|
|
3593
|
+
* },
|
|
3594
|
+
* orderBy: {
|
|
3595
|
+
* age: "asc",
|
|
3596
|
+
* },
|
|
3597
|
+
* take: 10,
|
|
3598
|
+
* })
|
|
3599
|
+
**/
|
|
3600
|
+
aggregate<T extends CategoryAggregateArgs>(args: Subset<T, CategoryAggregateArgs>): PrismaPromise<GetCategoryAggregateType<T>>
|
|
3601
|
+
|
|
3602
|
+
/**
|
|
3603
|
+
* Group by Category.
|
|
3604
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
3605
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
3606
|
+
* @param {CategoryGroupByArgs} args - Group by arguments.
|
|
3607
|
+
* @example
|
|
3608
|
+
* // Group by city, order by createdAt, get count
|
|
3609
|
+
* const result = await prisma.user.groupBy({
|
|
3610
|
+
* by: ['city', 'createdAt'],
|
|
3611
|
+
* orderBy: {
|
|
3612
|
+
* createdAt: true
|
|
3613
|
+
* },
|
|
3614
|
+
* _count: {
|
|
3615
|
+
* _all: true
|
|
3616
|
+
* },
|
|
3617
|
+
* })
|
|
3618
|
+
*
|
|
3619
|
+
**/
|
|
3620
|
+
groupBy<
|
|
3621
|
+
T extends CategoryGroupByArgs,
|
|
3622
|
+
HasSelectOrTake extends Or<
|
|
3623
|
+
Extends<'skip', Keys<T>>,
|
|
3624
|
+
Extends<'take', Keys<T>>
|
|
3625
|
+
>,
|
|
3626
|
+
OrderByArg extends True extends HasSelectOrTake
|
|
3627
|
+
? { orderBy: CategoryGroupByArgs['orderBy'] }
|
|
3628
|
+
: { orderBy?: CategoryGroupByArgs['orderBy'] },
|
|
3629
|
+
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
3630
|
+
ByFields extends TupleToUnion<T['by']>,
|
|
3631
|
+
ByValid extends Has<ByFields, OrderFields>,
|
|
3632
|
+
HavingFields extends GetHavingFields<T['having']>,
|
|
3633
|
+
HavingValid extends Has<ByFields, HavingFields>,
|
|
3634
|
+
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
3635
|
+
InputErrors extends ByEmpty extends True
|
|
3636
|
+
? `Error: "by" must not be empty.`
|
|
3637
|
+
: HavingValid extends False
|
|
3638
|
+
? {
|
|
3639
|
+
[P in HavingFields]: P extends ByFields
|
|
3640
|
+
? never
|
|
3641
|
+
: P extends string
|
|
3642
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
3643
|
+
: [
|
|
3644
|
+
Error,
|
|
3645
|
+
'Field ',
|
|
3646
|
+
P,
|
|
3647
|
+
` in "having" needs to be provided in "by"`,
|
|
3648
|
+
]
|
|
3649
|
+
}[HavingFields]
|
|
3650
|
+
: 'take' extends Keys<T>
|
|
3651
|
+
? 'orderBy' extends Keys<T>
|
|
3652
|
+
? ByValid extends True
|
|
3653
|
+
? {}
|
|
3654
|
+
: {
|
|
3655
|
+
[P in OrderFields]: P extends ByFields
|
|
3656
|
+
? never
|
|
3657
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
3658
|
+
}[OrderFields]
|
|
3659
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
3660
|
+
: 'skip' extends Keys<T>
|
|
3661
|
+
? 'orderBy' extends Keys<T>
|
|
3662
|
+
? ByValid extends True
|
|
3663
|
+
? {}
|
|
3664
|
+
: {
|
|
3665
|
+
[P in OrderFields]: P extends ByFields
|
|
3666
|
+
? never
|
|
3667
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
3668
|
+
}[OrderFields]
|
|
3669
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
3670
|
+
: ByValid extends True
|
|
3671
|
+
? {}
|
|
3672
|
+
: {
|
|
3673
|
+
[P in OrderFields]: P extends ByFields
|
|
3674
|
+
? never
|
|
3675
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
3676
|
+
}[OrderFields]
|
|
3677
|
+
>(args: SubsetIntersection<T, CategoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCategoryGroupByPayload<T> : PrismaPromise<InputErrors>
|
|
3678
|
+
|
|
3679
|
+
}
|
|
3680
|
+
|
|
3681
|
+
/**
|
|
3682
|
+
* The delegate class that acts as a "Promise-like" for Category.
|
|
3683
|
+
* Why is this prefixed with `Prisma__`?
|
|
3684
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
3685
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
3686
|
+
*/
|
|
3687
|
+
export class Prisma__CategoryClient<T> implements PrismaPromise<T> {
|
|
3688
|
+
[prisma]: true;
|
|
3689
|
+
private readonly _dmmf;
|
|
3690
|
+
private readonly _fetcher;
|
|
3691
|
+
private readonly _queryType;
|
|
3692
|
+
private readonly _rootField;
|
|
3693
|
+
private readonly _clientMethod;
|
|
3694
|
+
private readonly _args;
|
|
3695
|
+
private readonly _dataPath;
|
|
3696
|
+
private readonly _errorFormat;
|
|
3697
|
+
private readonly _measurePerformance?;
|
|
3698
|
+
private _isList;
|
|
3699
|
+
private _callsite;
|
|
3700
|
+
private _requestPromise?;
|
|
3701
|
+
constructor(_dmmf: runtime.DMMFClass, _fetcher: PrismaClientFetcher, _queryType: 'query' | 'mutation', _rootField: string, _clientMethod: string, _args: any, _dataPath: string[], _errorFormat: ErrorFormat, _measurePerformance?: boolean | undefined, _isList?: boolean);
|
|
3702
|
+
readonly [Symbol.toStringTag]: 'PrismaClientPromise';
|
|
3703
|
+
|
|
3704
|
+
packs<T extends PackFindManyArgs = {}>(args?: Subset<T, PackFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Pack>>, PrismaPromise<Array<PackGetPayload<T>>>>;
|
|
3705
|
+
|
|
3706
|
+
private get _document();
|
|
3707
|
+
/**
|
|
3708
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
3709
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
3710
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
3711
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
3712
|
+
*/
|
|
3713
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
|
3714
|
+
/**
|
|
3715
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
3716
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
3717
|
+
* @returns A Promise for the completion of the callback.
|
|
3718
|
+
*/
|
|
3719
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
|
|
3720
|
+
/**
|
|
3721
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
3722
|
+
* resolved value cannot be modified from the callback.
|
|
3723
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
3724
|
+
* @returns A Promise for the completion of the callback.
|
|
3725
|
+
*/
|
|
3726
|
+
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
3727
|
+
}
|
|
3728
|
+
|
|
3729
|
+
|
|
3730
|
+
|
|
3731
|
+
// Custom InputTypes
|
|
3732
|
+
|
|
3733
|
+
/**
|
|
3734
|
+
* Category base type for findUnique actions
|
|
3735
|
+
*/
|
|
3736
|
+
export type CategoryFindUniqueArgsBase = {
|
|
3737
|
+
/**
|
|
3738
|
+
* Select specific fields to fetch from the Category
|
|
3739
|
+
*
|
|
3740
|
+
**/
|
|
3741
|
+
select?: CategorySelect | null
|
|
3742
|
+
/**
|
|
3743
|
+
* Choose, which related nodes to fetch as well.
|
|
3744
|
+
*
|
|
3745
|
+
**/
|
|
3746
|
+
include?: CategoryInclude | null
|
|
3747
|
+
/**
|
|
3748
|
+
* Filter, which Category to fetch.
|
|
3749
|
+
*
|
|
3750
|
+
**/
|
|
3751
|
+
where: CategoryWhereUniqueInput
|
|
3752
|
+
}
|
|
3753
|
+
|
|
3754
|
+
/**
|
|
3755
|
+
* Category: findUnique
|
|
3756
|
+
*/
|
|
3757
|
+
export interface CategoryFindUniqueArgs extends CategoryFindUniqueArgsBase {
|
|
3758
|
+
/**
|
|
3759
|
+
* Throw an Error if query returns no results
|
|
3760
|
+
* @deprecated since 4.0.0: use `findUniqueOrThrow` method instead
|
|
3761
|
+
*/
|
|
3762
|
+
rejectOnNotFound?: RejectOnNotFound
|
|
3763
|
+
}
|
|
3764
|
+
|
|
3765
|
+
|
|
3766
|
+
/**
|
|
3767
|
+
* Category base type for findFirst actions
|
|
3768
|
+
*/
|
|
3769
|
+
export type CategoryFindFirstArgsBase = {
|
|
3770
|
+
/**
|
|
3771
|
+
* Select specific fields to fetch from the Category
|
|
3772
|
+
*
|
|
3773
|
+
**/
|
|
3774
|
+
select?: CategorySelect | null
|
|
3775
|
+
/**
|
|
3776
|
+
* Choose, which related nodes to fetch as well.
|
|
3777
|
+
*
|
|
3778
|
+
**/
|
|
3779
|
+
include?: CategoryInclude | null
|
|
3780
|
+
/**
|
|
3781
|
+
* Filter, which Category to fetch.
|
|
3782
|
+
*
|
|
3783
|
+
**/
|
|
3784
|
+
where?: CategoryWhereInput
|
|
3785
|
+
/**
|
|
3786
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
3787
|
+
*
|
|
3788
|
+
* Determine the order of Categories to fetch.
|
|
3789
|
+
*
|
|
3790
|
+
**/
|
|
3791
|
+
orderBy?: Enumerable<CategoryOrderByWithRelationInput>
|
|
3792
|
+
/**
|
|
3793
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
3794
|
+
*
|
|
3795
|
+
* Sets the position for searching for Categories.
|
|
3796
|
+
*
|
|
3797
|
+
**/
|
|
3798
|
+
cursor?: CategoryWhereUniqueInput
|
|
3799
|
+
/**
|
|
3800
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
3801
|
+
*
|
|
3802
|
+
* Take `±n` Categories from the position of the cursor.
|
|
3803
|
+
*
|
|
3804
|
+
**/
|
|
3805
|
+
take?: number
|
|
3806
|
+
/**
|
|
3807
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
3808
|
+
*
|
|
3809
|
+
* Skip the first `n` Categories.
|
|
3810
|
+
*
|
|
3811
|
+
**/
|
|
3812
|
+
skip?: number
|
|
3813
|
+
/**
|
|
3814
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
3815
|
+
*
|
|
3816
|
+
* Filter by unique combinations of Categories.
|
|
3817
|
+
*
|
|
3818
|
+
**/
|
|
3819
|
+
distinct?: Enumerable<CategoryScalarFieldEnum>
|
|
3820
|
+
}
|
|
3821
|
+
|
|
3822
|
+
/**
|
|
3823
|
+
* Category: findFirst
|
|
3824
|
+
*/
|
|
3825
|
+
export interface CategoryFindFirstArgs extends CategoryFindFirstArgsBase {
|
|
3826
|
+
/**
|
|
3827
|
+
* Throw an Error if query returns no results
|
|
3828
|
+
* @deprecated since 4.0.0: use `findFirstOrThrow` method instead
|
|
3829
|
+
*/
|
|
3830
|
+
rejectOnNotFound?: RejectOnNotFound
|
|
3831
|
+
}
|
|
3832
|
+
|
|
3833
|
+
|
|
3834
|
+
/**
|
|
3835
|
+
* Category findMany
|
|
3836
|
+
*/
|
|
3837
|
+
export type CategoryFindManyArgs = {
|
|
3838
|
+
/**
|
|
3839
|
+
* Select specific fields to fetch from the Category
|
|
3840
|
+
*
|
|
3841
|
+
**/
|
|
3842
|
+
select?: CategorySelect | null
|
|
3843
|
+
/**
|
|
3844
|
+
* Choose, which related nodes to fetch as well.
|
|
3845
|
+
*
|
|
3846
|
+
**/
|
|
3847
|
+
include?: CategoryInclude | null
|
|
3848
|
+
/**
|
|
3849
|
+
* Filter, which Categories to fetch.
|
|
3850
|
+
*
|
|
3851
|
+
**/
|
|
3852
|
+
where?: CategoryWhereInput
|
|
3853
|
+
/**
|
|
3854
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
3855
|
+
*
|
|
3856
|
+
* Determine the order of Categories to fetch.
|
|
3857
|
+
*
|
|
3858
|
+
**/
|
|
3859
|
+
orderBy?: Enumerable<CategoryOrderByWithRelationInput>
|
|
3860
|
+
/**
|
|
3861
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
3862
|
+
*
|
|
3863
|
+
* Sets the position for listing Categories.
|
|
3864
|
+
*
|
|
3865
|
+
**/
|
|
3866
|
+
cursor?: CategoryWhereUniqueInput
|
|
3867
|
+
/**
|
|
3868
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
3869
|
+
*
|
|
3870
|
+
* Take `±n` Categories from the position of the cursor.
|
|
3871
|
+
*
|
|
3872
|
+
**/
|
|
3873
|
+
take?: number
|
|
3874
|
+
/**
|
|
3875
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
3876
|
+
*
|
|
3877
|
+
* Skip the first `n` Categories.
|
|
3878
|
+
*
|
|
3879
|
+
**/
|
|
3880
|
+
skip?: number
|
|
3881
|
+
distinct?: Enumerable<CategoryScalarFieldEnum>
|
|
3882
|
+
}
|
|
3883
|
+
|
|
3884
|
+
|
|
3885
|
+
/**
|
|
3886
|
+
* Category create
|
|
3887
|
+
*/
|
|
3888
|
+
export type CategoryCreateArgs = {
|
|
3889
|
+
/**
|
|
3890
|
+
* Select specific fields to fetch from the Category
|
|
3891
|
+
*
|
|
3892
|
+
**/
|
|
3893
|
+
select?: CategorySelect | null
|
|
3894
|
+
/**
|
|
3895
|
+
* Choose, which related nodes to fetch as well.
|
|
3896
|
+
*
|
|
3897
|
+
**/
|
|
3898
|
+
include?: CategoryInclude | null
|
|
3899
|
+
/**
|
|
3900
|
+
* The data needed to create a Category.
|
|
3901
|
+
*
|
|
3902
|
+
**/
|
|
3903
|
+
data: XOR<CategoryCreateInput, CategoryUncheckedCreateInput>
|
|
3904
|
+
}
|
|
3905
|
+
|
|
3906
|
+
|
|
3907
|
+
/**
|
|
3908
|
+
* Category createMany
|
|
3909
|
+
*/
|
|
3910
|
+
export type CategoryCreateManyArgs = {
|
|
3911
|
+
/**
|
|
3912
|
+
* The data used to create many Categories.
|
|
3913
|
+
*
|
|
3914
|
+
**/
|
|
3915
|
+
data: Enumerable<CategoryCreateManyInput>
|
|
3916
|
+
skipDuplicates?: boolean
|
|
3917
|
+
}
|
|
3918
|
+
|
|
3919
|
+
|
|
3920
|
+
/**
|
|
3921
|
+
* Category update
|
|
3922
|
+
*/
|
|
3923
|
+
export type CategoryUpdateArgs = {
|
|
3924
|
+
/**
|
|
3925
|
+
* Select specific fields to fetch from the Category
|
|
3926
|
+
*
|
|
3927
|
+
**/
|
|
3928
|
+
select?: CategorySelect | null
|
|
3929
|
+
/**
|
|
3930
|
+
* Choose, which related nodes to fetch as well.
|
|
3931
|
+
*
|
|
3932
|
+
**/
|
|
3933
|
+
include?: CategoryInclude | null
|
|
3934
|
+
/**
|
|
3935
|
+
* The data needed to update a Category.
|
|
3936
|
+
*
|
|
3937
|
+
**/
|
|
3938
|
+
data: XOR<CategoryUpdateInput, CategoryUncheckedUpdateInput>
|
|
3939
|
+
/**
|
|
3940
|
+
* Choose, which Category to update.
|
|
3941
|
+
*
|
|
3942
|
+
**/
|
|
3943
|
+
where: CategoryWhereUniqueInput
|
|
3944
|
+
}
|
|
3945
|
+
|
|
3946
|
+
|
|
3947
|
+
/**
|
|
3948
|
+
* Category updateMany
|
|
3949
|
+
*/
|
|
3950
|
+
export type CategoryUpdateManyArgs = {
|
|
3951
|
+
/**
|
|
3952
|
+
* The data used to update Categories.
|
|
3953
|
+
*
|
|
3954
|
+
**/
|
|
3955
|
+
data: XOR<CategoryUpdateManyMutationInput, CategoryUncheckedUpdateManyInput>
|
|
3956
|
+
/**
|
|
3957
|
+
* Filter which Categories to update
|
|
3958
|
+
*
|
|
3959
|
+
**/
|
|
3960
|
+
where?: CategoryWhereInput
|
|
3961
|
+
}
|
|
3962
|
+
|
|
3963
|
+
|
|
3964
|
+
/**
|
|
3965
|
+
* Category upsert
|
|
3966
|
+
*/
|
|
3967
|
+
export type CategoryUpsertArgs = {
|
|
3968
|
+
/**
|
|
3969
|
+
* Select specific fields to fetch from the Category
|
|
3970
|
+
*
|
|
3971
|
+
**/
|
|
3972
|
+
select?: CategorySelect | null
|
|
3973
|
+
/**
|
|
3974
|
+
* Choose, which related nodes to fetch as well.
|
|
3975
|
+
*
|
|
3976
|
+
**/
|
|
3977
|
+
include?: CategoryInclude | null
|
|
3978
|
+
/**
|
|
3979
|
+
* The filter to search for the Category to update in case it exists.
|
|
3980
|
+
*
|
|
3981
|
+
**/
|
|
3982
|
+
where: CategoryWhereUniqueInput
|
|
3983
|
+
/**
|
|
3984
|
+
* In case the Category found by the `where` argument doesn't exist, create a new Category with this data.
|
|
3985
|
+
*
|
|
3986
|
+
**/
|
|
3987
|
+
create: XOR<CategoryCreateInput, CategoryUncheckedCreateInput>
|
|
3988
|
+
/**
|
|
3989
|
+
* In case the Category was found with the provided `where` argument, update it with this data.
|
|
3990
|
+
*
|
|
3991
|
+
**/
|
|
3992
|
+
update: XOR<CategoryUpdateInput, CategoryUncheckedUpdateInput>
|
|
3993
|
+
}
|
|
3994
|
+
|
|
3995
|
+
|
|
3996
|
+
/**
|
|
3997
|
+
* Category delete
|
|
3998
|
+
*/
|
|
3999
|
+
export type CategoryDeleteArgs = {
|
|
4000
|
+
/**
|
|
4001
|
+
* Select specific fields to fetch from the Category
|
|
4002
|
+
*
|
|
4003
|
+
**/
|
|
4004
|
+
select?: CategorySelect | null
|
|
4005
|
+
/**
|
|
4006
|
+
* Choose, which related nodes to fetch as well.
|
|
4007
|
+
*
|
|
4008
|
+
**/
|
|
4009
|
+
include?: CategoryInclude | null
|
|
4010
|
+
/**
|
|
4011
|
+
* Filter which Category to delete.
|
|
4012
|
+
*
|
|
4013
|
+
**/
|
|
4014
|
+
where: CategoryWhereUniqueInput
|
|
4015
|
+
}
|
|
4016
|
+
|
|
4017
|
+
|
|
4018
|
+
/**
|
|
4019
|
+
* Category deleteMany
|
|
4020
|
+
*/
|
|
4021
|
+
export type CategoryDeleteManyArgs = {
|
|
4022
|
+
/**
|
|
4023
|
+
* Filter which Categories to delete
|
|
4024
|
+
*
|
|
4025
|
+
**/
|
|
4026
|
+
where?: CategoryWhereInput
|
|
4027
|
+
}
|
|
4028
|
+
|
|
4029
|
+
|
|
4030
|
+
/**
|
|
4031
|
+
* Category: findUniqueOrThrow
|
|
4032
|
+
*/
|
|
4033
|
+
export type CategoryFindUniqueOrThrowArgs = CategoryFindUniqueArgsBase
|
|
4034
|
+
|
|
4035
|
+
|
|
4036
|
+
/**
|
|
4037
|
+
* Category: findFirstOrThrow
|
|
4038
|
+
*/
|
|
4039
|
+
export type CategoryFindFirstOrThrowArgs = CategoryFindFirstArgsBase
|
|
4040
|
+
|
|
4041
|
+
|
|
4042
|
+
/**
|
|
4043
|
+
* Category without action
|
|
4044
|
+
*/
|
|
4045
|
+
export type CategoryArgs = {
|
|
4046
|
+
/**
|
|
4047
|
+
* Select specific fields to fetch from the Category
|
|
4048
|
+
*
|
|
4049
|
+
**/
|
|
4050
|
+
select?: CategorySelect | null
|
|
4051
|
+
/**
|
|
4052
|
+
* Choose, which related nodes to fetch as well.
|
|
4053
|
+
*
|
|
4054
|
+
**/
|
|
4055
|
+
include?: CategoryInclude | null
|
|
4056
|
+
}
|
|
4057
|
+
|
|
4058
|
+
|
|
4059
|
+
|
|
4060
|
+
/**
|
|
4061
|
+
* Model Pack
|
|
4062
|
+
*/
|
|
4063
|
+
|
|
4064
|
+
|
|
4065
|
+
export type AggregatePack = {
|
|
4066
|
+
_count: PackCountAggregateOutputType | null
|
|
4067
|
+
_avg: PackAvgAggregateOutputType | null
|
|
4068
|
+
_sum: PackSumAggregateOutputType | null
|
|
4069
|
+
_min: PackMinAggregateOutputType | null
|
|
4070
|
+
_max: PackMaxAggregateOutputType | null
|
|
4071
|
+
}
|
|
4072
|
+
|
|
4073
|
+
export type PackAvgAggregateOutputType = {
|
|
4074
|
+
currentPrice: Decimal | null
|
|
4075
|
+
}
|
|
4076
|
+
|
|
4077
|
+
export type PackSumAggregateOutputType = {
|
|
4078
|
+
currentPrice: Decimal | null
|
|
4079
|
+
}
|
|
4080
|
+
|
|
4081
|
+
export type PackMinAggregateOutputType = {
|
|
4082
|
+
id: string | null
|
|
4083
|
+
teacherId: string | null
|
|
4084
|
+
name: string | null
|
|
4085
|
+
shortDescription: string | null
|
|
4086
|
+
longDescription: string | null
|
|
4087
|
+
categoryId: string | null
|
|
4088
|
+
published: boolean | null
|
|
4089
|
+
currentPrice: Decimal | null
|
|
4090
|
+
}
|
|
4091
|
+
|
|
4092
|
+
export type PackMaxAggregateOutputType = {
|
|
4093
|
+
id: string | null
|
|
4094
|
+
teacherId: string | null
|
|
4095
|
+
name: string | null
|
|
4096
|
+
shortDescription: string | null
|
|
4097
|
+
longDescription: string | null
|
|
4098
|
+
categoryId: string | null
|
|
4099
|
+
published: boolean | null
|
|
4100
|
+
currentPrice: Decimal | null
|
|
4101
|
+
}
|
|
4102
|
+
|
|
4103
|
+
export type PackCountAggregateOutputType = {
|
|
4104
|
+
id: number
|
|
4105
|
+
teacherId: number
|
|
4106
|
+
name: number
|
|
4107
|
+
shortDescription: number
|
|
4108
|
+
longDescription: number
|
|
4109
|
+
categoryId: number
|
|
4110
|
+
published: number
|
|
4111
|
+
currentPrice: number
|
|
4112
|
+
_all: number
|
|
4113
|
+
}
|
|
4114
|
+
|
|
4115
|
+
|
|
4116
|
+
export type PackAvgAggregateInputType = {
|
|
4117
|
+
currentPrice?: true
|
|
4118
|
+
}
|
|
4119
|
+
|
|
4120
|
+
export type PackSumAggregateInputType = {
|
|
4121
|
+
currentPrice?: true
|
|
4122
|
+
}
|
|
4123
|
+
|
|
4124
|
+
export type PackMinAggregateInputType = {
|
|
4125
|
+
id?: true
|
|
4126
|
+
teacherId?: true
|
|
4127
|
+
name?: true
|
|
4128
|
+
shortDescription?: true
|
|
4129
|
+
longDescription?: true
|
|
4130
|
+
categoryId?: true
|
|
4131
|
+
published?: true
|
|
4132
|
+
currentPrice?: true
|
|
4133
|
+
}
|
|
4134
|
+
|
|
4135
|
+
export type PackMaxAggregateInputType = {
|
|
4136
|
+
id?: true
|
|
4137
|
+
teacherId?: true
|
|
4138
|
+
name?: true
|
|
4139
|
+
shortDescription?: true
|
|
4140
|
+
longDescription?: true
|
|
4141
|
+
categoryId?: true
|
|
4142
|
+
published?: true
|
|
4143
|
+
currentPrice?: true
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4146
|
+
export type PackCountAggregateInputType = {
|
|
4147
|
+
id?: true
|
|
4148
|
+
teacherId?: true
|
|
4149
|
+
name?: true
|
|
4150
|
+
shortDescription?: true
|
|
4151
|
+
longDescription?: true
|
|
4152
|
+
categoryId?: true
|
|
4153
|
+
published?: true
|
|
4154
|
+
currentPrice?: true
|
|
4155
|
+
_all?: true
|
|
4156
|
+
}
|
|
4157
|
+
|
|
4158
|
+
export type PackAggregateArgs = {
|
|
4159
|
+
/**
|
|
4160
|
+
* Filter which Pack to aggregate.
|
|
4161
|
+
*
|
|
4162
|
+
**/
|
|
4163
|
+
where?: PackWhereInput
|
|
4164
|
+
/**
|
|
4165
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
4166
|
+
*
|
|
4167
|
+
* Determine the order of Packs to fetch.
|
|
4168
|
+
*
|
|
4169
|
+
**/
|
|
4170
|
+
orderBy?: Enumerable<PackOrderByWithRelationInput>
|
|
4171
|
+
/**
|
|
4172
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
4173
|
+
*
|
|
4174
|
+
* Sets the start position
|
|
4175
|
+
*
|
|
4176
|
+
**/
|
|
4177
|
+
cursor?: PackWhereUniqueInput
|
|
4178
|
+
/**
|
|
4179
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
4180
|
+
*
|
|
4181
|
+
* Take `±n` Packs from the position of the cursor.
|
|
4182
|
+
*
|
|
4183
|
+
**/
|
|
4184
|
+
take?: number
|
|
4185
|
+
/**
|
|
4186
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
4187
|
+
*
|
|
4188
|
+
* Skip the first `n` Packs.
|
|
4189
|
+
*
|
|
4190
|
+
**/
|
|
4191
|
+
skip?: number
|
|
4192
|
+
/**
|
|
4193
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
4194
|
+
*
|
|
4195
|
+
* Count returned Packs
|
|
4196
|
+
**/
|
|
4197
|
+
_count?: true | PackCountAggregateInputType
|
|
4198
|
+
/**
|
|
4199
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
4200
|
+
*
|
|
4201
|
+
* Select which fields to average
|
|
4202
|
+
**/
|
|
4203
|
+
_avg?: PackAvgAggregateInputType
|
|
4204
|
+
/**
|
|
4205
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
4206
|
+
*
|
|
4207
|
+
* Select which fields to sum
|
|
4208
|
+
**/
|
|
4209
|
+
_sum?: PackSumAggregateInputType
|
|
4210
|
+
/**
|
|
4211
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
4212
|
+
*
|
|
4213
|
+
* Select which fields to find the minimum value
|
|
4214
|
+
**/
|
|
4215
|
+
_min?: PackMinAggregateInputType
|
|
4216
|
+
/**
|
|
4217
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
4218
|
+
*
|
|
4219
|
+
* Select which fields to find the maximum value
|
|
4220
|
+
**/
|
|
4221
|
+
_max?: PackMaxAggregateInputType
|
|
4222
|
+
}
|
|
4223
|
+
|
|
4224
|
+
export type GetPackAggregateType<T extends PackAggregateArgs> = {
|
|
4225
|
+
[P in keyof T & keyof AggregatePack]: P extends '_count' | 'count'
|
|
4226
|
+
? T[P] extends true
|
|
4227
|
+
? number
|
|
4228
|
+
: GetScalarType<T[P], AggregatePack[P]>
|
|
4229
|
+
: GetScalarType<T[P], AggregatePack[P]>
|
|
4230
|
+
}
|
|
4231
|
+
|
|
4232
|
+
|
|
4233
|
+
|
|
4234
|
+
|
|
4235
|
+
export type PackGroupByArgs = {
|
|
4236
|
+
where?: PackWhereInput
|
|
4237
|
+
orderBy?: Enumerable<PackOrderByWithAggregationInput>
|
|
4238
|
+
by: Array<PackScalarFieldEnum>
|
|
4239
|
+
having?: PackScalarWhereWithAggregatesInput
|
|
4240
|
+
take?: number
|
|
4241
|
+
skip?: number
|
|
4242
|
+
_count?: PackCountAggregateInputType | true
|
|
4243
|
+
_avg?: PackAvgAggregateInputType
|
|
4244
|
+
_sum?: PackSumAggregateInputType
|
|
4245
|
+
_min?: PackMinAggregateInputType
|
|
4246
|
+
_max?: PackMaxAggregateInputType
|
|
4247
|
+
}
|
|
4248
|
+
|
|
4249
|
+
|
|
4250
|
+
export type PackGroupByOutputType = {
|
|
4251
|
+
id: string
|
|
4252
|
+
teacherId: string
|
|
4253
|
+
name: string
|
|
4254
|
+
shortDescription: string
|
|
4255
|
+
longDescription: string
|
|
4256
|
+
categoryId: string | null
|
|
4257
|
+
published: boolean
|
|
4258
|
+
currentPrice: Decimal
|
|
4259
|
+
_count: PackCountAggregateOutputType | null
|
|
4260
|
+
_avg: PackAvgAggregateOutputType | null
|
|
4261
|
+
_sum: PackSumAggregateOutputType | null
|
|
4262
|
+
_min: PackMinAggregateOutputType | null
|
|
4263
|
+
_max: PackMaxAggregateOutputType | null
|
|
4264
|
+
}
|
|
4265
|
+
|
|
4266
|
+
type GetPackGroupByPayload<T extends PackGroupByArgs> = PrismaPromise<
|
|
4267
|
+
Array<
|
|
4268
|
+
PickArray<PackGroupByOutputType, T['by']> &
|
|
4269
|
+
{
|
|
4270
|
+
[P in ((keyof T) & (keyof PackGroupByOutputType))]: P extends '_count'
|
|
4271
|
+
? T[P] extends boolean
|
|
4272
|
+
? number
|
|
4273
|
+
: GetScalarType<T[P], PackGroupByOutputType[P]>
|
|
4274
|
+
: GetScalarType<T[P], PackGroupByOutputType[P]>
|
|
4275
|
+
}
|
|
4276
|
+
>
|
|
4277
|
+
>
|
|
4278
|
+
|
|
4279
|
+
|
|
4280
|
+
export type PackSelect = {
|
|
4281
|
+
id?: boolean
|
|
4282
|
+
teacher?: boolean | TeacherArgs
|
|
4283
|
+
teacherId?: boolean
|
|
4284
|
+
name?: boolean
|
|
4285
|
+
shortDescription?: boolean
|
|
4286
|
+
longDescription?: boolean
|
|
4287
|
+
category?: boolean | CategoryArgs
|
|
4288
|
+
categoryId?: boolean
|
|
4289
|
+
published?: boolean
|
|
4290
|
+
cards?: boolean | CardFindManyArgs
|
|
4291
|
+
users?: boolean | UserFindManyArgs
|
|
4292
|
+
purchase?: boolean | PurchaseFindManyArgs
|
|
4293
|
+
currentPrice?: boolean
|
|
4294
|
+
_count?: boolean | PackCountOutputTypeArgs
|
|
4295
|
+
}
|
|
4296
|
+
|
|
4297
|
+
export type PackInclude = {
|
|
4298
|
+
teacher?: boolean | TeacherArgs
|
|
4299
|
+
category?: boolean | CategoryArgs
|
|
4300
|
+
cards?: boolean | CardFindManyArgs
|
|
4301
|
+
users?: boolean | UserFindManyArgs
|
|
4302
|
+
purchase?: boolean | PurchaseFindManyArgs
|
|
4303
|
+
_count?: boolean | PackCountOutputTypeArgs
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
export type PackGetPayload<
|
|
4307
|
+
S extends boolean | null | undefined | PackArgs,
|
|
4308
|
+
U = keyof S
|
|
4309
|
+
> = S extends true
|
|
4310
|
+
? Pack
|
|
4311
|
+
: S extends undefined
|
|
4312
|
+
? never
|
|
4313
|
+
: S extends PackArgs | PackFindManyArgs
|
|
4314
|
+
?'include' extends U
|
|
4315
|
+
? Pack & {
|
|
4316
|
+
[P in TrueKeys<S['include']>]:
|
|
4317
|
+
P extends 'teacher' ? TeacherGetPayload<Exclude<S['include'], undefined | null>[P]> :
|
|
4318
|
+
P extends 'category' ? CategoryGetPayload<Exclude<S['include'], undefined | null>[P]> | null :
|
|
4319
|
+
P extends 'cards' ? Array < CardGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
4320
|
+
P extends 'users' ? Array < UserGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
4321
|
+
P extends 'purchase' ? Array < PurchaseGetPayload<Exclude<S['include'], undefined | null>[P]>> :
|
|
4322
|
+
P extends '_count' ? PackCountOutputTypeGetPayload<Exclude<S['include'], undefined | null>[P]> : never
|
|
4323
|
+
}
|
|
4324
|
+
: 'select' extends U
|
|
4325
|
+
? {
|
|
4326
|
+
[P in TrueKeys<S['select']>]:
|
|
4327
|
+
P extends 'teacher' ? TeacherGetPayload<Exclude<S['select'], undefined | null>[P]> :
|
|
4328
|
+
P extends 'category' ? CategoryGetPayload<Exclude<S['select'], undefined | null>[P]> | null :
|
|
4329
|
+
P extends 'cards' ? Array < CardGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
4330
|
+
P extends 'users' ? Array < UserGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
4331
|
+
P extends 'purchase' ? Array < PurchaseGetPayload<Exclude<S['select'], undefined | null>[P]>> :
|
|
4332
|
+
P extends '_count' ? PackCountOutputTypeGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof Pack ? Pack[P] : never
|
|
4333
|
+
}
|
|
4334
|
+
: Pack
|
|
4335
|
+
: Pack
|
|
4336
|
+
|
|
4337
|
+
|
|
4338
|
+
type PackCountArgs = Merge<
|
|
4339
|
+
Omit<PackFindManyArgs, 'select' | 'include'> & {
|
|
4340
|
+
select?: PackCountAggregateInputType | true
|
|
4341
|
+
}
|
|
4342
|
+
>
|
|
4343
|
+
|
|
4344
|
+
export interface PackDelegate<GlobalRejectSettings extends Prisma.RejectOnNotFound | Prisma.RejectPerOperation | false | undefined> {
|
|
4345
|
+
/**
|
|
4346
|
+
* Find zero or one Pack that matches the filter.
|
|
4347
|
+
* @param {PackFindUniqueArgs} args - Arguments to find a Pack
|
|
4348
|
+
* @example
|
|
4349
|
+
* // Get one Pack
|
|
4350
|
+
* const pack = await prisma.pack.findUnique({
|
|
4351
|
+
* where: {
|
|
4352
|
+
* // ... provide filter here
|
|
4353
|
+
* }
|
|
4354
|
+
* })
|
|
4355
|
+
**/
|
|
4356
|
+
findUnique<T extends PackFindUniqueArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
|
|
4357
|
+
args: SelectSubset<T, PackFindUniqueArgs>
|
|
4358
|
+
): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findUnique', 'Pack'> extends True ? CheckSelect<T, Prisma__PackClient<Pack>, Prisma__PackClient<PackGetPayload<T>>> : CheckSelect<T, Prisma__PackClient<Pack | null >, Prisma__PackClient<PackGetPayload<T> | null >>
|
|
4359
|
+
|
|
4360
|
+
/**
|
|
4361
|
+
* Find the first Pack that matches the filter.
|
|
4362
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
4363
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
4364
|
+
* @param {PackFindFirstArgs} args - Arguments to find a Pack
|
|
4365
|
+
* @example
|
|
4366
|
+
* // Get one Pack
|
|
4367
|
+
* const pack = await prisma.pack.findFirst({
|
|
4368
|
+
* where: {
|
|
4369
|
+
* // ... provide filter here
|
|
4370
|
+
* }
|
|
4371
|
+
* })
|
|
4372
|
+
**/
|
|
4373
|
+
findFirst<T extends PackFindFirstArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
|
|
4374
|
+
args?: SelectSubset<T, PackFindFirstArgs>
|
|
4375
|
+
): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findFirst', 'Pack'> extends True ? CheckSelect<T, Prisma__PackClient<Pack>, Prisma__PackClient<PackGetPayload<T>>> : CheckSelect<T, Prisma__PackClient<Pack | null >, Prisma__PackClient<PackGetPayload<T> | null >>
|
|
4376
|
+
|
|
4377
|
+
/**
|
|
4378
|
+
* Find zero or more Packs that matches the filter.
|
|
4379
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
4380
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
4381
|
+
* @param {PackFindManyArgs=} args - Arguments to filter and select certain fields only.
|
|
4382
|
+
* @example
|
|
4383
|
+
* // Get all Packs
|
|
4384
|
+
* const packs = await prisma.pack.findMany()
|
|
4385
|
+
*
|
|
4386
|
+
* // Get first 10 Packs
|
|
4387
|
+
* const packs = await prisma.pack.findMany({ take: 10 })
|
|
4388
|
+
*
|
|
4389
|
+
* // Only select the `id`
|
|
4390
|
+
* const packWithIdOnly = await prisma.pack.findMany({ select: { id: true } })
|
|
4391
|
+
*
|
|
4392
|
+
**/
|
|
4393
|
+
findMany<T extends PackFindManyArgs>(
|
|
4394
|
+
args?: SelectSubset<T, PackFindManyArgs>
|
|
4395
|
+
): CheckSelect<T, PrismaPromise<Array<Pack>>, PrismaPromise<Array<PackGetPayload<T>>>>
|
|
4396
|
+
|
|
4397
|
+
/**
|
|
4398
|
+
* Create a Pack.
|
|
4399
|
+
* @param {PackCreateArgs} args - Arguments to create a Pack.
|
|
4400
|
+
* @example
|
|
4401
|
+
* // Create one Pack
|
|
4402
|
+
* const Pack = await prisma.pack.create({
|
|
4403
|
+
* data: {
|
|
4404
|
+
* // ... data to create a Pack
|
|
4405
|
+
* }
|
|
4406
|
+
* })
|
|
4407
|
+
*
|
|
4408
|
+
**/
|
|
4409
|
+
create<T extends PackCreateArgs>(
|
|
4410
|
+
args: SelectSubset<T, PackCreateArgs>
|
|
4411
|
+
): CheckSelect<T, Prisma__PackClient<Pack>, Prisma__PackClient<PackGetPayload<T>>>
|
|
4412
|
+
|
|
4413
|
+
/**
|
|
4414
|
+
* Create many Packs.
|
|
4415
|
+
* @param {PackCreateManyArgs} args - Arguments to create many Packs.
|
|
4416
|
+
* @example
|
|
4417
|
+
* // Create many Packs
|
|
4418
|
+
* const pack = await prisma.pack.createMany({
|
|
4419
|
+
* data: {
|
|
4420
|
+
* // ... provide data here
|
|
4421
|
+
* }
|
|
4422
|
+
* })
|
|
4423
|
+
*
|
|
4424
|
+
**/
|
|
4425
|
+
createMany<T extends PackCreateManyArgs>(
|
|
4426
|
+
args?: SelectSubset<T, PackCreateManyArgs>
|
|
4427
|
+
): PrismaPromise<BatchPayload>
|
|
4428
|
+
|
|
4429
|
+
/**
|
|
4430
|
+
* Delete a Pack.
|
|
4431
|
+
* @param {PackDeleteArgs} args - Arguments to delete one Pack.
|
|
4432
|
+
* @example
|
|
4433
|
+
* // Delete one Pack
|
|
4434
|
+
* const Pack = await prisma.pack.delete({
|
|
4435
|
+
* where: {
|
|
4436
|
+
* // ... filter to delete one Pack
|
|
4437
|
+
* }
|
|
4438
|
+
* })
|
|
4439
|
+
*
|
|
4440
|
+
**/
|
|
4441
|
+
delete<T extends PackDeleteArgs>(
|
|
4442
|
+
args: SelectSubset<T, PackDeleteArgs>
|
|
4443
|
+
): CheckSelect<T, Prisma__PackClient<Pack>, Prisma__PackClient<PackGetPayload<T>>>
|
|
4444
|
+
|
|
4445
|
+
/**
|
|
4446
|
+
* Update one Pack.
|
|
4447
|
+
* @param {PackUpdateArgs} args - Arguments to update one Pack.
|
|
4448
|
+
* @example
|
|
4449
|
+
* // Update one Pack
|
|
4450
|
+
* const pack = await prisma.pack.update({
|
|
4451
|
+
* where: {
|
|
4452
|
+
* // ... provide filter here
|
|
4453
|
+
* },
|
|
4454
|
+
* data: {
|
|
4455
|
+
* // ... provide data here
|
|
4456
|
+
* }
|
|
4457
|
+
* })
|
|
4458
|
+
*
|
|
4459
|
+
**/
|
|
4460
|
+
update<T extends PackUpdateArgs>(
|
|
4461
|
+
args: SelectSubset<T, PackUpdateArgs>
|
|
4462
|
+
): CheckSelect<T, Prisma__PackClient<Pack>, Prisma__PackClient<PackGetPayload<T>>>
|
|
4463
|
+
|
|
4464
|
+
/**
|
|
4465
|
+
* Delete zero or more Packs.
|
|
4466
|
+
* @param {PackDeleteManyArgs} args - Arguments to filter Packs to delete.
|
|
4467
|
+
* @example
|
|
4468
|
+
* // Delete a few Packs
|
|
4469
|
+
* const { count } = await prisma.pack.deleteMany({
|
|
4470
|
+
* where: {
|
|
4471
|
+
* // ... provide filter here
|
|
4472
|
+
* }
|
|
4473
|
+
* })
|
|
4474
|
+
*
|
|
4475
|
+
**/
|
|
4476
|
+
deleteMany<T extends PackDeleteManyArgs>(
|
|
4477
|
+
args?: SelectSubset<T, PackDeleteManyArgs>
|
|
4478
|
+
): PrismaPromise<BatchPayload>
|
|
4479
|
+
|
|
4480
|
+
/**
|
|
4481
|
+
* Update zero or more Packs.
|
|
4482
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
4483
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
4484
|
+
* @param {PackUpdateManyArgs} args - Arguments to update one or more rows.
|
|
4485
|
+
* @example
|
|
4486
|
+
* // Update many Packs
|
|
4487
|
+
* const pack = await prisma.pack.updateMany({
|
|
4488
|
+
* where: {
|
|
4489
|
+
* // ... provide filter here
|
|
4490
|
+
* },
|
|
4491
|
+
* data: {
|
|
4492
|
+
* // ... provide data here
|
|
4493
|
+
* }
|
|
4494
|
+
* })
|
|
4495
|
+
*
|
|
4496
|
+
**/
|
|
4497
|
+
updateMany<T extends PackUpdateManyArgs>(
|
|
4498
|
+
args: SelectSubset<T, PackUpdateManyArgs>
|
|
4499
|
+
): PrismaPromise<BatchPayload>
|
|
4500
|
+
|
|
4501
|
+
/**
|
|
4502
|
+
* Create or update one Pack.
|
|
4503
|
+
* @param {PackUpsertArgs} args - Arguments to update or create a Pack.
|
|
4504
|
+
* @example
|
|
4505
|
+
* // Update or create a Pack
|
|
4506
|
+
* const pack = await prisma.pack.upsert({
|
|
4507
|
+
* create: {
|
|
4508
|
+
* // ... data to create a Pack
|
|
4509
|
+
* },
|
|
4510
|
+
* update: {
|
|
4511
|
+
* // ... in case it already exists, update
|
|
4512
|
+
* },
|
|
4513
|
+
* where: {
|
|
4514
|
+
* // ... the filter for the Pack we want to update
|
|
4515
|
+
* }
|
|
4516
|
+
* })
|
|
4517
|
+
**/
|
|
4518
|
+
upsert<T extends PackUpsertArgs>(
|
|
4519
|
+
args: SelectSubset<T, PackUpsertArgs>
|
|
4520
|
+
): CheckSelect<T, Prisma__PackClient<Pack>, Prisma__PackClient<PackGetPayload<T>>>
|
|
4521
|
+
|
|
4522
|
+
/**
|
|
4523
|
+
* Find one Pack that matches the filter or throw
|
|
4524
|
+
* `NotFoundError` if no matches were found.
|
|
4525
|
+
* @param {PackFindUniqueOrThrowArgs} args - Arguments to find a Pack
|
|
4526
|
+
* @example
|
|
4527
|
+
* // Get one Pack
|
|
4528
|
+
* const pack = await prisma.pack.findUniqueOrThrow({
|
|
3515
4529
|
* where: {
|
|
3516
4530
|
* // ... provide filter here
|
|
3517
4531
|
* }
|
|
@@ -3692,6 +4706,8 @@ export namespace Prisma {
|
|
|
3692
4706
|
|
|
3693
4707
|
teacher<T extends TeacherArgs = {}>(args?: Subset<T, TeacherArgs>): CheckSelect<T, Prisma__TeacherClient<Teacher | null >, Prisma__TeacherClient<TeacherGetPayload<T> | null >>;
|
|
3694
4708
|
|
|
4709
|
+
category<T extends CategoryArgs = {}>(args?: Subset<T, CategoryArgs>): CheckSelect<T, Prisma__CategoryClient<Category | null >, Prisma__CategoryClient<CategoryGetPayload<T> | null >>;
|
|
4710
|
+
|
|
3695
4711
|
cards<T extends CardFindManyArgs = {}>(args?: Subset<T, CardFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Card>>, PrismaPromise<Array<CardGetPayload<T>>>>;
|
|
3696
4712
|
|
|
3697
4713
|
users<T extends UserFindManyArgs = {}>(args?: Subset<T, UserFindManyArgs>): CheckSelect<T, PrismaPromise<Array<User>>, PrismaPromise<Array<UserGetPayload<T>>>>;
|
|
@@ -8753,6 +9769,14 @@ export namespace Prisma {
|
|
|
8753
9769
|
export type CardScalarFieldEnum = (typeof CardScalarFieldEnum)[keyof typeof CardScalarFieldEnum]
|
|
8754
9770
|
|
|
8755
9771
|
|
|
9772
|
+
export const CategoryScalarFieldEnum: {
|
|
9773
|
+
id: 'id',
|
|
9774
|
+
name: 'name'
|
|
9775
|
+
};
|
|
9776
|
+
|
|
9777
|
+
export type CategoryScalarFieldEnum = (typeof CategoryScalarFieldEnum)[keyof typeof CategoryScalarFieldEnum]
|
|
9778
|
+
|
|
9779
|
+
|
|
8756
9780
|
export const GoogleUserScalarFieldEnum: {
|
|
8757
9781
|
id: 'id',
|
|
8758
9782
|
userId: 'userId'
|
|
@@ -8765,6 +9789,10 @@ export namespace Prisma {
|
|
|
8765
9789
|
id: 'id',
|
|
8766
9790
|
teacherId: 'teacherId',
|
|
8767
9791
|
name: 'name',
|
|
9792
|
+
shortDescription: 'shortDescription',
|
|
9793
|
+
longDescription: 'longDescription',
|
|
9794
|
+
categoryId: 'categoryId',
|
|
9795
|
+
published: 'published',
|
|
8768
9796
|
currentPrice: 'currentPrice'
|
|
8769
9797
|
};
|
|
8770
9798
|
|
|
@@ -8944,6 +9972,41 @@ export namespace Prisma {
|
|
|
8944
9972
|
done?: BoolWithAggregatesFilter | boolean
|
|
8945
9973
|
}
|
|
8946
9974
|
|
|
9975
|
+
export type CategoryWhereInput = {
|
|
9976
|
+
AND?: Enumerable<CategoryWhereInput>
|
|
9977
|
+
OR?: Enumerable<CategoryWhereInput>
|
|
9978
|
+
NOT?: Enumerable<CategoryWhereInput>
|
|
9979
|
+
id?: StringFilter | string
|
|
9980
|
+
name?: StringFilter | string
|
|
9981
|
+
packs?: PackListRelationFilter
|
|
9982
|
+
}
|
|
9983
|
+
|
|
9984
|
+
export type CategoryOrderByWithRelationInput = {
|
|
9985
|
+
id?: SortOrder
|
|
9986
|
+
name?: SortOrder
|
|
9987
|
+
packs?: PackOrderByRelationAggregateInput
|
|
9988
|
+
}
|
|
9989
|
+
|
|
9990
|
+
export type CategoryWhereUniqueInput = {
|
|
9991
|
+
id?: string
|
|
9992
|
+
}
|
|
9993
|
+
|
|
9994
|
+
export type CategoryOrderByWithAggregationInput = {
|
|
9995
|
+
id?: SortOrder
|
|
9996
|
+
name?: SortOrder
|
|
9997
|
+
_count?: CategoryCountOrderByAggregateInput
|
|
9998
|
+
_max?: CategoryMaxOrderByAggregateInput
|
|
9999
|
+
_min?: CategoryMinOrderByAggregateInput
|
|
10000
|
+
}
|
|
10001
|
+
|
|
10002
|
+
export type CategoryScalarWhereWithAggregatesInput = {
|
|
10003
|
+
AND?: Enumerable<CategoryScalarWhereWithAggregatesInput>
|
|
10004
|
+
OR?: Enumerable<CategoryScalarWhereWithAggregatesInput>
|
|
10005
|
+
NOT?: Enumerable<CategoryScalarWhereWithAggregatesInput>
|
|
10006
|
+
id?: StringWithAggregatesFilter | string
|
|
10007
|
+
name?: StringWithAggregatesFilter | string
|
|
10008
|
+
}
|
|
10009
|
+
|
|
8947
10010
|
export type PackWhereInput = {
|
|
8948
10011
|
AND?: Enumerable<PackWhereInput>
|
|
8949
10012
|
OR?: Enumerable<PackWhereInput>
|
|
@@ -8952,6 +10015,11 @@ export namespace Prisma {
|
|
|
8952
10015
|
teacher?: XOR<TeacherRelationFilter, TeacherWhereInput>
|
|
8953
10016
|
teacherId?: StringFilter | string
|
|
8954
10017
|
name?: StringFilter | string
|
|
10018
|
+
shortDescription?: StringFilter | string
|
|
10019
|
+
longDescription?: StringFilter | string
|
|
10020
|
+
category?: XOR<CategoryRelationFilter, CategoryWhereInput> | null
|
|
10021
|
+
categoryId?: StringNullableFilter | string | null
|
|
10022
|
+
published?: BoolFilter | boolean
|
|
8955
10023
|
cards?: CardListRelationFilter
|
|
8956
10024
|
users?: UserListRelationFilter
|
|
8957
10025
|
purchase?: PurchaseListRelationFilter
|
|
@@ -8963,6 +10031,11 @@ export namespace Prisma {
|
|
|
8963
10031
|
teacher?: TeacherOrderByWithRelationInput
|
|
8964
10032
|
teacherId?: SortOrder
|
|
8965
10033
|
name?: SortOrder
|
|
10034
|
+
shortDescription?: SortOrder
|
|
10035
|
+
longDescription?: SortOrder
|
|
10036
|
+
category?: CategoryOrderByWithRelationInput
|
|
10037
|
+
categoryId?: SortOrder
|
|
10038
|
+
published?: SortOrder
|
|
8966
10039
|
cards?: CardOrderByRelationAggregateInput
|
|
8967
10040
|
users?: UserOrderByRelationAggregateInput
|
|
8968
10041
|
purchase?: PurchaseOrderByRelationAggregateInput
|
|
@@ -8977,6 +10050,10 @@ export namespace Prisma {
|
|
|
8977
10050
|
id?: SortOrder
|
|
8978
10051
|
teacherId?: SortOrder
|
|
8979
10052
|
name?: SortOrder
|
|
10053
|
+
shortDescription?: SortOrder
|
|
10054
|
+
longDescription?: SortOrder
|
|
10055
|
+
categoryId?: SortOrder
|
|
10056
|
+
published?: SortOrder
|
|
8980
10057
|
currentPrice?: SortOrder
|
|
8981
10058
|
_count?: PackCountOrderByAggregateInput
|
|
8982
10059
|
_avg?: PackAvgOrderByAggregateInput
|
|
@@ -8992,6 +10069,10 @@ export namespace Prisma {
|
|
|
8992
10069
|
id?: StringWithAggregatesFilter | string
|
|
8993
10070
|
teacherId?: StringWithAggregatesFilter | string
|
|
8994
10071
|
name?: StringWithAggregatesFilter | string
|
|
10072
|
+
shortDescription?: StringWithAggregatesFilter | string
|
|
10073
|
+
longDescription?: StringWithAggregatesFilter | string
|
|
10074
|
+
categoryId?: StringNullableWithAggregatesFilter | string | null
|
|
10075
|
+
published?: BoolWithAggregatesFilter | boolean
|
|
8995
10076
|
currentPrice?: DecimalWithAggregatesFilter | Decimal | DecimalJsLike | number | string
|
|
8996
10077
|
}
|
|
8997
10078
|
|
|
@@ -9339,10 +10420,53 @@ export namespace Prisma {
|
|
|
9339
10420
|
done?: BoolFieldUpdateOperationsInput | boolean
|
|
9340
10421
|
}
|
|
9341
10422
|
|
|
10423
|
+
export type CategoryCreateInput = {
|
|
10424
|
+
id?: string
|
|
10425
|
+
name: string
|
|
10426
|
+
packs?: PackCreateNestedManyWithoutCategoryInput
|
|
10427
|
+
}
|
|
10428
|
+
|
|
10429
|
+
export type CategoryUncheckedCreateInput = {
|
|
10430
|
+
id?: string
|
|
10431
|
+
name: string
|
|
10432
|
+
packs?: PackUncheckedCreateNestedManyWithoutCategoryInput
|
|
10433
|
+
}
|
|
10434
|
+
|
|
10435
|
+
export type CategoryUpdateInput = {
|
|
10436
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
10437
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
10438
|
+
packs?: PackUpdateManyWithoutCategoryNestedInput
|
|
10439
|
+
}
|
|
10440
|
+
|
|
10441
|
+
export type CategoryUncheckedUpdateInput = {
|
|
10442
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
10443
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
10444
|
+
packs?: PackUncheckedUpdateManyWithoutCategoryNestedInput
|
|
10445
|
+
}
|
|
10446
|
+
|
|
10447
|
+
export type CategoryCreateManyInput = {
|
|
10448
|
+
id?: string
|
|
10449
|
+
name: string
|
|
10450
|
+
}
|
|
10451
|
+
|
|
10452
|
+
export type CategoryUpdateManyMutationInput = {
|
|
10453
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
10454
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
10455
|
+
}
|
|
10456
|
+
|
|
10457
|
+
export type CategoryUncheckedUpdateManyInput = {
|
|
10458
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
10459
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
10460
|
+
}
|
|
10461
|
+
|
|
9342
10462
|
export type PackCreateInput = {
|
|
9343
10463
|
id?: string
|
|
9344
10464
|
teacher: TeacherCreateNestedOneWithoutPacksInput
|
|
9345
|
-
name
|
|
10465
|
+
name?: string
|
|
10466
|
+
shortDescription?: string
|
|
10467
|
+
longDescription?: string
|
|
10468
|
+
category?: CategoryCreateNestedOneWithoutPacksInput
|
|
10469
|
+
published?: boolean
|
|
9346
10470
|
cards?: CardCreateNestedManyWithoutPackInput
|
|
9347
10471
|
users?: UserCreateNestedManyWithoutPacksInput
|
|
9348
10472
|
purchase?: PurchaseCreateNestedManyWithoutPackInput
|
|
@@ -9352,7 +10476,11 @@ export namespace Prisma {
|
|
|
9352
10476
|
export type PackUncheckedCreateInput = {
|
|
9353
10477
|
id?: string
|
|
9354
10478
|
teacherId: string
|
|
9355
|
-
name
|
|
10479
|
+
name?: string
|
|
10480
|
+
shortDescription?: string
|
|
10481
|
+
longDescription?: string
|
|
10482
|
+
categoryId?: string | null
|
|
10483
|
+
published?: boolean
|
|
9356
10484
|
cards?: CardUncheckedCreateNestedManyWithoutPackInput
|
|
9357
10485
|
users?: UserUncheckedCreateNestedManyWithoutPacksInput
|
|
9358
10486
|
purchase?: PurchaseUncheckedCreateNestedManyWithoutPackInput
|
|
@@ -9363,6 +10491,10 @@ export namespace Prisma {
|
|
|
9363
10491
|
id?: StringFieldUpdateOperationsInput | string
|
|
9364
10492
|
teacher?: TeacherUpdateOneRequiredWithoutPacksNestedInput
|
|
9365
10493
|
name?: StringFieldUpdateOperationsInput | string
|
|
10494
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
10495
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
10496
|
+
category?: CategoryUpdateOneWithoutPacksNestedInput
|
|
10497
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
9366
10498
|
cards?: CardUpdateManyWithoutPackNestedInput
|
|
9367
10499
|
users?: UserUpdateManyWithoutPacksNestedInput
|
|
9368
10500
|
purchase?: PurchaseUpdateManyWithoutPackNestedInput
|
|
@@ -9373,6 +10505,10 @@ export namespace Prisma {
|
|
|
9373
10505
|
id?: StringFieldUpdateOperationsInput | string
|
|
9374
10506
|
teacherId?: StringFieldUpdateOperationsInput | string
|
|
9375
10507
|
name?: StringFieldUpdateOperationsInput | string
|
|
10508
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
10509
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
10510
|
+
categoryId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
10511
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
9376
10512
|
cards?: CardUncheckedUpdateManyWithoutPackNestedInput
|
|
9377
10513
|
users?: UserUncheckedUpdateManyWithoutPacksNestedInput
|
|
9378
10514
|
purchase?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
|
|
@@ -9382,13 +10518,20 @@ export namespace Prisma {
|
|
|
9382
10518
|
export type PackCreateManyInput = {
|
|
9383
10519
|
id?: string
|
|
9384
10520
|
teacherId: string
|
|
9385
|
-
name
|
|
10521
|
+
name?: string
|
|
10522
|
+
shortDescription?: string
|
|
10523
|
+
longDescription?: string
|
|
10524
|
+
categoryId?: string | null
|
|
10525
|
+
published?: boolean
|
|
9386
10526
|
currentPrice: Decimal | DecimalJsLike | number | string
|
|
9387
10527
|
}
|
|
9388
10528
|
|
|
9389
10529
|
export type PackUpdateManyMutationInput = {
|
|
9390
10530
|
id?: StringFieldUpdateOperationsInput | string
|
|
9391
10531
|
name?: StringFieldUpdateOperationsInput | string
|
|
10532
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
10533
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
10534
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
9392
10535
|
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
9393
10536
|
}
|
|
9394
10537
|
|
|
@@ -9396,6 +10539,10 @@ export namespace Prisma {
|
|
|
9396
10539
|
id?: StringFieldUpdateOperationsInput | string
|
|
9397
10540
|
teacherId?: StringFieldUpdateOperationsInput | string
|
|
9398
10541
|
name?: StringFieldUpdateOperationsInput | string
|
|
10542
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
10543
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
10544
|
+
categoryId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
10545
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
9399
10546
|
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
9400
10547
|
}
|
|
9401
10548
|
|
|
@@ -9869,11 +11016,56 @@ export namespace Prisma {
|
|
|
9869
11016
|
_max?: NestedBoolFilter
|
|
9870
11017
|
}
|
|
9871
11018
|
|
|
11019
|
+
export type PackListRelationFilter = {
|
|
11020
|
+
every?: PackWhereInput
|
|
11021
|
+
some?: PackWhereInput
|
|
11022
|
+
none?: PackWhereInput
|
|
11023
|
+
}
|
|
11024
|
+
|
|
11025
|
+
export type PackOrderByRelationAggregateInput = {
|
|
11026
|
+
_count?: SortOrder
|
|
11027
|
+
}
|
|
11028
|
+
|
|
11029
|
+
export type CategoryCountOrderByAggregateInput = {
|
|
11030
|
+
id?: SortOrder
|
|
11031
|
+
name?: SortOrder
|
|
11032
|
+
}
|
|
11033
|
+
|
|
11034
|
+
export type CategoryMaxOrderByAggregateInput = {
|
|
11035
|
+
id?: SortOrder
|
|
11036
|
+
name?: SortOrder
|
|
11037
|
+
}
|
|
11038
|
+
|
|
11039
|
+
export type CategoryMinOrderByAggregateInput = {
|
|
11040
|
+
id?: SortOrder
|
|
11041
|
+
name?: SortOrder
|
|
11042
|
+
}
|
|
11043
|
+
|
|
9872
11044
|
export type TeacherRelationFilter = {
|
|
9873
11045
|
is?: TeacherWhereInput
|
|
9874
11046
|
isNot?: TeacherWhereInput
|
|
9875
11047
|
}
|
|
9876
11048
|
|
|
11049
|
+
export type CategoryRelationFilter = {
|
|
11050
|
+
is?: CategoryWhereInput | null
|
|
11051
|
+
isNot?: CategoryWhereInput | null
|
|
11052
|
+
}
|
|
11053
|
+
|
|
11054
|
+
export type StringNullableFilter = {
|
|
11055
|
+
equals?: string | null
|
|
11056
|
+
in?: Enumerable<string> | null
|
|
11057
|
+
notIn?: Enumerable<string> | null
|
|
11058
|
+
lt?: string
|
|
11059
|
+
lte?: string
|
|
11060
|
+
gt?: string
|
|
11061
|
+
gte?: string
|
|
11062
|
+
contains?: string
|
|
11063
|
+
startsWith?: string
|
|
11064
|
+
endsWith?: string
|
|
11065
|
+
mode?: QueryMode
|
|
11066
|
+
not?: NestedStringNullableFilter | string | null
|
|
11067
|
+
}
|
|
11068
|
+
|
|
9877
11069
|
export type CardListRelationFilter = {
|
|
9878
11070
|
every?: CardWhereInput
|
|
9879
11071
|
some?: CardWhereInput
|
|
@@ -9919,6 +11111,10 @@ export namespace Prisma {
|
|
|
9919
11111
|
id?: SortOrder
|
|
9920
11112
|
teacherId?: SortOrder
|
|
9921
11113
|
name?: SortOrder
|
|
11114
|
+
shortDescription?: SortOrder
|
|
11115
|
+
longDescription?: SortOrder
|
|
11116
|
+
categoryId?: SortOrder
|
|
11117
|
+
published?: SortOrder
|
|
9922
11118
|
currentPrice?: SortOrder
|
|
9923
11119
|
}
|
|
9924
11120
|
|
|
@@ -9930,6 +11126,10 @@ export namespace Prisma {
|
|
|
9930
11126
|
id?: SortOrder
|
|
9931
11127
|
teacherId?: SortOrder
|
|
9932
11128
|
name?: SortOrder
|
|
11129
|
+
shortDescription?: SortOrder
|
|
11130
|
+
longDescription?: SortOrder
|
|
11131
|
+
categoryId?: SortOrder
|
|
11132
|
+
published?: SortOrder
|
|
9933
11133
|
currentPrice?: SortOrder
|
|
9934
11134
|
}
|
|
9935
11135
|
|
|
@@ -9937,6 +11137,10 @@ export namespace Prisma {
|
|
|
9937
11137
|
id?: SortOrder
|
|
9938
11138
|
teacherId?: SortOrder
|
|
9939
11139
|
name?: SortOrder
|
|
11140
|
+
shortDescription?: SortOrder
|
|
11141
|
+
longDescription?: SortOrder
|
|
11142
|
+
categoryId?: SortOrder
|
|
11143
|
+
published?: SortOrder
|
|
9940
11144
|
currentPrice?: SortOrder
|
|
9941
11145
|
}
|
|
9942
11146
|
|
|
@@ -9944,6 +11148,24 @@ export namespace Prisma {
|
|
|
9944
11148
|
currentPrice?: SortOrder
|
|
9945
11149
|
}
|
|
9946
11150
|
|
|
11151
|
+
export type StringNullableWithAggregatesFilter = {
|
|
11152
|
+
equals?: string | null
|
|
11153
|
+
in?: Enumerable<string> | null
|
|
11154
|
+
notIn?: Enumerable<string> | null
|
|
11155
|
+
lt?: string
|
|
11156
|
+
lte?: string
|
|
11157
|
+
gt?: string
|
|
11158
|
+
gte?: string
|
|
11159
|
+
contains?: string
|
|
11160
|
+
startsWith?: string
|
|
11161
|
+
endsWith?: string
|
|
11162
|
+
mode?: QueryMode
|
|
11163
|
+
not?: NestedStringNullableWithAggregatesFilter | string | null
|
|
11164
|
+
_count?: NestedIntNullableFilter
|
|
11165
|
+
_min?: NestedStringNullableFilter
|
|
11166
|
+
_max?: NestedStringNullableFilter
|
|
11167
|
+
}
|
|
11168
|
+
|
|
9947
11169
|
export type DecimalWithAggregatesFilter = {
|
|
9948
11170
|
equals?: Decimal | DecimalJsLike | number | string
|
|
9949
11171
|
in?: Enumerable<Decimal> | Enumerable<DecimalJsLike> | Enumerable<number> | Enumerable<string>
|
|
@@ -9965,22 +11187,12 @@ export namespace Prisma {
|
|
|
9965
11187
|
isNot?: GoogleUserWhereInput | null
|
|
9966
11188
|
}
|
|
9967
11189
|
|
|
9968
|
-
export type PackListRelationFilter = {
|
|
9969
|
-
every?: PackWhereInput
|
|
9970
|
-
some?: PackWhereInput
|
|
9971
|
-
none?: PackWhereInput
|
|
9972
|
-
}
|
|
9973
|
-
|
|
9974
11190
|
export type AnswerListRelationFilter = {
|
|
9975
11191
|
every?: AnswerWhereInput
|
|
9976
11192
|
some?: AnswerWhereInput
|
|
9977
11193
|
none?: AnswerWhereInput
|
|
9978
11194
|
}
|
|
9979
11195
|
|
|
9980
|
-
export type PackOrderByRelationAggregateInput = {
|
|
9981
|
-
_count?: SortOrder
|
|
9982
|
-
}
|
|
9983
|
-
|
|
9984
11196
|
export type AnswerOrderByRelationAggregateInput = {
|
|
9985
11197
|
_count?: SortOrder
|
|
9986
11198
|
}
|
|
@@ -10250,12 +11462,60 @@ export namespace Prisma {
|
|
|
10250
11462
|
set?: boolean
|
|
10251
11463
|
}
|
|
10252
11464
|
|
|
11465
|
+
export type PackCreateNestedManyWithoutCategoryInput = {
|
|
11466
|
+
create?: XOR<Enumerable<PackCreateWithoutCategoryInput>, Enumerable<PackUncheckedCreateWithoutCategoryInput>>
|
|
11467
|
+
connectOrCreate?: Enumerable<PackCreateOrConnectWithoutCategoryInput>
|
|
11468
|
+
createMany?: PackCreateManyCategoryInputEnvelope
|
|
11469
|
+
connect?: Enumerable<PackWhereUniqueInput>
|
|
11470
|
+
}
|
|
11471
|
+
|
|
11472
|
+
export type PackUncheckedCreateNestedManyWithoutCategoryInput = {
|
|
11473
|
+
create?: XOR<Enumerable<PackCreateWithoutCategoryInput>, Enumerable<PackUncheckedCreateWithoutCategoryInput>>
|
|
11474
|
+
connectOrCreate?: Enumerable<PackCreateOrConnectWithoutCategoryInput>
|
|
11475
|
+
createMany?: PackCreateManyCategoryInputEnvelope
|
|
11476
|
+
connect?: Enumerable<PackWhereUniqueInput>
|
|
11477
|
+
}
|
|
11478
|
+
|
|
11479
|
+
export type PackUpdateManyWithoutCategoryNestedInput = {
|
|
11480
|
+
create?: XOR<Enumerable<PackCreateWithoutCategoryInput>, Enumerable<PackUncheckedCreateWithoutCategoryInput>>
|
|
11481
|
+
connectOrCreate?: Enumerable<PackCreateOrConnectWithoutCategoryInput>
|
|
11482
|
+
upsert?: Enumerable<PackUpsertWithWhereUniqueWithoutCategoryInput>
|
|
11483
|
+
createMany?: PackCreateManyCategoryInputEnvelope
|
|
11484
|
+
set?: Enumerable<PackWhereUniqueInput>
|
|
11485
|
+
disconnect?: Enumerable<PackWhereUniqueInput>
|
|
11486
|
+
delete?: Enumerable<PackWhereUniqueInput>
|
|
11487
|
+
connect?: Enumerable<PackWhereUniqueInput>
|
|
11488
|
+
update?: Enumerable<PackUpdateWithWhereUniqueWithoutCategoryInput>
|
|
11489
|
+
updateMany?: Enumerable<PackUpdateManyWithWhereWithoutCategoryInput>
|
|
11490
|
+
deleteMany?: Enumerable<PackScalarWhereInput>
|
|
11491
|
+
}
|
|
11492
|
+
|
|
11493
|
+
export type PackUncheckedUpdateManyWithoutCategoryNestedInput = {
|
|
11494
|
+
create?: XOR<Enumerable<PackCreateWithoutCategoryInput>, Enumerable<PackUncheckedCreateWithoutCategoryInput>>
|
|
11495
|
+
connectOrCreate?: Enumerable<PackCreateOrConnectWithoutCategoryInput>
|
|
11496
|
+
upsert?: Enumerable<PackUpsertWithWhereUniqueWithoutCategoryInput>
|
|
11497
|
+
createMany?: PackCreateManyCategoryInputEnvelope
|
|
11498
|
+
set?: Enumerable<PackWhereUniqueInput>
|
|
11499
|
+
disconnect?: Enumerable<PackWhereUniqueInput>
|
|
11500
|
+
delete?: Enumerable<PackWhereUniqueInput>
|
|
11501
|
+
connect?: Enumerable<PackWhereUniqueInput>
|
|
11502
|
+
update?: Enumerable<PackUpdateWithWhereUniqueWithoutCategoryInput>
|
|
11503
|
+
updateMany?: Enumerable<PackUpdateManyWithWhereWithoutCategoryInput>
|
|
11504
|
+
deleteMany?: Enumerable<PackScalarWhereInput>
|
|
11505
|
+
}
|
|
11506
|
+
|
|
10253
11507
|
export type TeacherCreateNestedOneWithoutPacksInput = {
|
|
10254
11508
|
create?: XOR<TeacherCreateWithoutPacksInput, TeacherUncheckedCreateWithoutPacksInput>
|
|
10255
11509
|
connectOrCreate?: TeacherCreateOrConnectWithoutPacksInput
|
|
10256
11510
|
connect?: TeacherWhereUniqueInput
|
|
10257
11511
|
}
|
|
10258
11512
|
|
|
11513
|
+
export type CategoryCreateNestedOneWithoutPacksInput = {
|
|
11514
|
+
create?: XOR<CategoryCreateWithoutPacksInput, CategoryUncheckedCreateWithoutPacksInput>
|
|
11515
|
+
connectOrCreate?: CategoryCreateOrConnectWithoutPacksInput
|
|
11516
|
+
connect?: CategoryWhereUniqueInput
|
|
11517
|
+
}
|
|
11518
|
+
|
|
10259
11519
|
export type CardCreateNestedManyWithoutPackInput = {
|
|
10260
11520
|
create?: XOR<Enumerable<CardCreateWithoutPackInput>, Enumerable<CardUncheckedCreateWithoutPackInput>>
|
|
10261
11521
|
connectOrCreate?: Enumerable<CardCreateOrConnectWithoutPackInput>
|
|
@@ -10304,6 +11564,16 @@ export namespace Prisma {
|
|
|
10304
11564
|
update?: XOR<TeacherUpdateWithoutPacksInput, TeacherUncheckedUpdateWithoutPacksInput>
|
|
10305
11565
|
}
|
|
10306
11566
|
|
|
11567
|
+
export type CategoryUpdateOneWithoutPacksNestedInput = {
|
|
11568
|
+
create?: XOR<CategoryCreateWithoutPacksInput, CategoryUncheckedCreateWithoutPacksInput>
|
|
11569
|
+
connectOrCreate?: CategoryCreateOrConnectWithoutPacksInput
|
|
11570
|
+
upsert?: CategoryUpsertWithoutPacksInput
|
|
11571
|
+
disconnect?: boolean
|
|
11572
|
+
delete?: boolean
|
|
11573
|
+
connect?: CategoryWhereUniqueInput
|
|
11574
|
+
update?: XOR<CategoryUpdateWithoutPacksInput, CategoryUncheckedUpdateWithoutPacksInput>
|
|
11575
|
+
}
|
|
11576
|
+
|
|
10307
11577
|
export type CardUpdateManyWithoutPackNestedInput = {
|
|
10308
11578
|
create?: XOR<Enumerable<CardCreateWithoutPackInput>, Enumerable<CardUncheckedCreateWithoutPackInput>>
|
|
10309
11579
|
connectOrCreate?: Enumerable<CardCreateOrConnectWithoutPackInput>
|
|
@@ -10353,6 +11623,10 @@ export namespace Prisma {
|
|
|
10353
11623
|
divide?: Decimal | DecimalJsLike | number | string
|
|
10354
11624
|
}
|
|
10355
11625
|
|
|
11626
|
+
export type NullableStringFieldUpdateOperationsInput = {
|
|
11627
|
+
set?: string | null
|
|
11628
|
+
}
|
|
11629
|
+
|
|
10356
11630
|
export type CardUncheckedUpdateManyWithoutPackNestedInput = {
|
|
10357
11631
|
create?: XOR<Enumerable<CardCreateWithoutPackInput>, Enumerable<CardUncheckedCreateWithoutPackInput>>
|
|
10358
11632
|
connectOrCreate?: Enumerable<CardCreateOrConnectWithoutPackInput>
|
|
@@ -10814,6 +12088,20 @@ export namespace Prisma {
|
|
|
10814
12088
|
_max?: NestedBoolFilter
|
|
10815
12089
|
}
|
|
10816
12090
|
|
|
12091
|
+
export type NestedStringNullableFilter = {
|
|
12092
|
+
equals?: string | null
|
|
12093
|
+
in?: Enumerable<string> | null
|
|
12094
|
+
notIn?: Enumerable<string> | null
|
|
12095
|
+
lt?: string
|
|
12096
|
+
lte?: string
|
|
12097
|
+
gt?: string
|
|
12098
|
+
gte?: string
|
|
12099
|
+
contains?: string
|
|
12100
|
+
startsWith?: string
|
|
12101
|
+
endsWith?: string
|
|
12102
|
+
not?: NestedStringNullableFilter | string | null
|
|
12103
|
+
}
|
|
12104
|
+
|
|
10817
12105
|
export type NestedDecimalFilter = {
|
|
10818
12106
|
equals?: Decimal | DecimalJsLike | number | string
|
|
10819
12107
|
in?: Enumerable<Decimal> | Enumerable<DecimalJsLike> | Enumerable<number> | Enumerable<string>
|
|
@@ -10825,6 +12113,23 @@ export namespace Prisma {
|
|
|
10825
12113
|
not?: NestedDecimalFilter | Decimal | DecimalJsLike | number | string
|
|
10826
12114
|
}
|
|
10827
12115
|
|
|
12116
|
+
export type NestedStringNullableWithAggregatesFilter = {
|
|
12117
|
+
equals?: string | null
|
|
12118
|
+
in?: Enumerable<string> | null
|
|
12119
|
+
notIn?: Enumerable<string> | null
|
|
12120
|
+
lt?: string
|
|
12121
|
+
lte?: string
|
|
12122
|
+
gt?: string
|
|
12123
|
+
gte?: string
|
|
12124
|
+
contains?: string
|
|
12125
|
+
startsWith?: string
|
|
12126
|
+
endsWith?: string
|
|
12127
|
+
not?: NestedStringNullableWithAggregatesFilter | string | null
|
|
12128
|
+
_count?: NestedIntNullableFilter
|
|
12129
|
+
_min?: NestedStringNullableFilter
|
|
12130
|
+
_max?: NestedStringNullableFilter
|
|
12131
|
+
}
|
|
12132
|
+
|
|
10828
12133
|
export type NestedDecimalWithAggregatesFilter = {
|
|
10829
12134
|
equals?: Decimal | DecimalJsLike | number | string
|
|
10830
12135
|
in?: Enumerable<Decimal> | Enumerable<DecimalJsLike> | Enumerable<number> | Enumerable<string>
|
|
@@ -10886,7 +12191,11 @@ export namespace Prisma {
|
|
|
10886
12191
|
export type PackCreateWithoutCardsInput = {
|
|
10887
12192
|
id?: string
|
|
10888
12193
|
teacher: TeacherCreateNestedOneWithoutPacksInput
|
|
10889
|
-
name
|
|
12194
|
+
name?: string
|
|
12195
|
+
shortDescription?: string
|
|
12196
|
+
longDescription?: string
|
|
12197
|
+
category?: CategoryCreateNestedOneWithoutPacksInput
|
|
12198
|
+
published?: boolean
|
|
10890
12199
|
users?: UserCreateNestedManyWithoutPacksInput
|
|
10891
12200
|
purchase?: PurchaseCreateNestedManyWithoutPackInput
|
|
10892
12201
|
currentPrice: Decimal | DecimalJsLike | number | string
|
|
@@ -10895,7 +12204,11 @@ export namespace Prisma {
|
|
|
10895
12204
|
export type PackUncheckedCreateWithoutCardsInput = {
|
|
10896
12205
|
id?: string
|
|
10897
12206
|
teacherId: string
|
|
10898
|
-
name
|
|
12207
|
+
name?: string
|
|
12208
|
+
shortDescription?: string
|
|
12209
|
+
longDescription?: string
|
|
12210
|
+
categoryId?: string | null
|
|
12211
|
+
published?: boolean
|
|
10899
12212
|
users?: UserUncheckedCreateNestedManyWithoutPacksInput
|
|
10900
12213
|
purchase?: PurchaseUncheckedCreateNestedManyWithoutPackInput
|
|
10901
12214
|
currentPrice: Decimal | DecimalJsLike | number | string
|
|
@@ -10939,6 +12252,10 @@ export namespace Prisma {
|
|
|
10939
12252
|
id?: StringFieldUpdateOperationsInput | string
|
|
10940
12253
|
teacher?: TeacherUpdateOneRequiredWithoutPacksNestedInput
|
|
10941
12254
|
name?: StringFieldUpdateOperationsInput | string
|
|
12255
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
12256
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
12257
|
+
category?: CategoryUpdateOneWithoutPacksNestedInput
|
|
12258
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
10942
12259
|
users?: UserUpdateManyWithoutPacksNestedInput
|
|
10943
12260
|
purchase?: PurchaseUpdateManyWithoutPackNestedInput
|
|
10944
12261
|
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
@@ -10948,6 +12265,10 @@ export namespace Prisma {
|
|
|
10948
12265
|
id?: StringFieldUpdateOperationsInput | string
|
|
10949
12266
|
teacherId?: StringFieldUpdateOperationsInput | string
|
|
10950
12267
|
name?: StringFieldUpdateOperationsInput | string
|
|
12268
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
12269
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
12270
|
+
categoryId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
12271
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
10951
12272
|
users?: UserUncheckedUpdateManyWithoutPacksNestedInput
|
|
10952
12273
|
purchase?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
|
|
10953
12274
|
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
@@ -11068,6 +12389,72 @@ export namespace Prisma {
|
|
|
11068
12389
|
back?: StringFieldUpdateOperationsInput | string
|
|
11069
12390
|
}
|
|
11070
12391
|
|
|
12392
|
+
export type PackCreateWithoutCategoryInput = {
|
|
12393
|
+
id?: string
|
|
12394
|
+
teacher: TeacherCreateNestedOneWithoutPacksInput
|
|
12395
|
+
name?: string
|
|
12396
|
+
shortDescription?: string
|
|
12397
|
+
longDescription?: string
|
|
12398
|
+
published?: boolean
|
|
12399
|
+
cards?: CardCreateNestedManyWithoutPackInput
|
|
12400
|
+
users?: UserCreateNestedManyWithoutPacksInput
|
|
12401
|
+
purchase?: PurchaseCreateNestedManyWithoutPackInput
|
|
12402
|
+
currentPrice: Decimal | DecimalJsLike | number | string
|
|
12403
|
+
}
|
|
12404
|
+
|
|
12405
|
+
export type PackUncheckedCreateWithoutCategoryInput = {
|
|
12406
|
+
id?: string
|
|
12407
|
+
teacherId: string
|
|
12408
|
+
name?: string
|
|
12409
|
+
shortDescription?: string
|
|
12410
|
+
longDescription?: string
|
|
12411
|
+
published?: boolean
|
|
12412
|
+
cards?: CardUncheckedCreateNestedManyWithoutPackInput
|
|
12413
|
+
users?: UserUncheckedCreateNestedManyWithoutPacksInput
|
|
12414
|
+
purchase?: PurchaseUncheckedCreateNestedManyWithoutPackInput
|
|
12415
|
+
currentPrice: Decimal | DecimalJsLike | number | string
|
|
12416
|
+
}
|
|
12417
|
+
|
|
12418
|
+
export type PackCreateOrConnectWithoutCategoryInput = {
|
|
12419
|
+
where: PackWhereUniqueInput
|
|
12420
|
+
create: XOR<PackCreateWithoutCategoryInput, PackUncheckedCreateWithoutCategoryInput>
|
|
12421
|
+
}
|
|
12422
|
+
|
|
12423
|
+
export type PackCreateManyCategoryInputEnvelope = {
|
|
12424
|
+
data: Enumerable<PackCreateManyCategoryInput>
|
|
12425
|
+
skipDuplicates?: boolean
|
|
12426
|
+
}
|
|
12427
|
+
|
|
12428
|
+
export type PackUpsertWithWhereUniqueWithoutCategoryInput = {
|
|
12429
|
+
where: PackWhereUniqueInput
|
|
12430
|
+
update: XOR<PackUpdateWithoutCategoryInput, PackUncheckedUpdateWithoutCategoryInput>
|
|
12431
|
+
create: XOR<PackCreateWithoutCategoryInput, PackUncheckedCreateWithoutCategoryInput>
|
|
12432
|
+
}
|
|
12433
|
+
|
|
12434
|
+
export type PackUpdateWithWhereUniqueWithoutCategoryInput = {
|
|
12435
|
+
where: PackWhereUniqueInput
|
|
12436
|
+
data: XOR<PackUpdateWithoutCategoryInput, PackUncheckedUpdateWithoutCategoryInput>
|
|
12437
|
+
}
|
|
12438
|
+
|
|
12439
|
+
export type PackUpdateManyWithWhereWithoutCategoryInput = {
|
|
12440
|
+
where: PackScalarWhereInput
|
|
12441
|
+
data: XOR<PackUpdateManyMutationInput, PackUncheckedUpdateManyWithoutPacksInput>
|
|
12442
|
+
}
|
|
12443
|
+
|
|
12444
|
+
export type PackScalarWhereInput = {
|
|
12445
|
+
AND?: Enumerable<PackScalarWhereInput>
|
|
12446
|
+
OR?: Enumerable<PackScalarWhereInput>
|
|
12447
|
+
NOT?: Enumerable<PackScalarWhereInput>
|
|
12448
|
+
id?: StringFilter | string
|
|
12449
|
+
teacherId?: StringFilter | string
|
|
12450
|
+
name?: StringFilter | string
|
|
12451
|
+
shortDescription?: StringFilter | string
|
|
12452
|
+
longDescription?: StringFilter | string
|
|
12453
|
+
categoryId?: StringNullableFilter | string | null
|
|
12454
|
+
published?: BoolFilter | boolean
|
|
12455
|
+
currentPrice?: DecimalFilter | Decimal | DecimalJsLike | number | string
|
|
12456
|
+
}
|
|
12457
|
+
|
|
11071
12458
|
export type TeacherCreateWithoutPacksInput = {
|
|
11072
12459
|
id?: string
|
|
11073
12460
|
email: string
|
|
@@ -11087,6 +12474,21 @@ export namespace Prisma {
|
|
|
11087
12474
|
create: XOR<TeacherCreateWithoutPacksInput, TeacherUncheckedCreateWithoutPacksInput>
|
|
11088
12475
|
}
|
|
11089
12476
|
|
|
12477
|
+
export type CategoryCreateWithoutPacksInput = {
|
|
12478
|
+
id?: string
|
|
12479
|
+
name: string
|
|
12480
|
+
}
|
|
12481
|
+
|
|
12482
|
+
export type CategoryUncheckedCreateWithoutPacksInput = {
|
|
12483
|
+
id?: string
|
|
12484
|
+
name: string
|
|
12485
|
+
}
|
|
12486
|
+
|
|
12487
|
+
export type CategoryCreateOrConnectWithoutPacksInput = {
|
|
12488
|
+
where: CategoryWhereUniqueInput
|
|
12489
|
+
create: XOR<CategoryCreateWithoutPacksInput, CategoryUncheckedCreateWithoutPacksInput>
|
|
12490
|
+
}
|
|
12491
|
+
|
|
11090
12492
|
export type CardCreateWithoutPackInput = {
|
|
11091
12493
|
id?: string
|
|
11092
12494
|
front: string
|
|
@@ -11185,6 +12587,21 @@ export namespace Prisma {
|
|
|
11185
12587
|
password?: StringFieldUpdateOperationsInput | string
|
|
11186
12588
|
}
|
|
11187
12589
|
|
|
12590
|
+
export type CategoryUpsertWithoutPacksInput = {
|
|
12591
|
+
update: XOR<CategoryUpdateWithoutPacksInput, CategoryUncheckedUpdateWithoutPacksInput>
|
|
12592
|
+
create: XOR<CategoryCreateWithoutPacksInput, CategoryUncheckedCreateWithoutPacksInput>
|
|
12593
|
+
}
|
|
12594
|
+
|
|
12595
|
+
export type CategoryUpdateWithoutPacksInput = {
|
|
12596
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
12597
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
12598
|
+
}
|
|
12599
|
+
|
|
12600
|
+
export type CategoryUncheckedUpdateWithoutPacksInput = {
|
|
12601
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
12602
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
12603
|
+
}
|
|
12604
|
+
|
|
11188
12605
|
export type CardUpsertWithWhereUniqueWithoutPackInput = {
|
|
11189
12606
|
where: CardWhereUniqueInput
|
|
11190
12607
|
update: XOR<CardUpdateWithoutPackInput, CardUncheckedUpdateWithoutPackInput>
|
|
@@ -11312,7 +12729,11 @@ export namespace Prisma {
|
|
|
11312
12729
|
export type PackCreateWithoutUsersInput = {
|
|
11313
12730
|
id?: string
|
|
11314
12731
|
teacher: TeacherCreateNestedOneWithoutPacksInput
|
|
11315
|
-
name
|
|
12732
|
+
name?: string
|
|
12733
|
+
shortDescription?: string
|
|
12734
|
+
longDescription?: string
|
|
12735
|
+
category?: CategoryCreateNestedOneWithoutPacksInput
|
|
12736
|
+
published?: boolean
|
|
11316
12737
|
cards?: CardCreateNestedManyWithoutPackInput
|
|
11317
12738
|
purchase?: PurchaseCreateNestedManyWithoutPackInput
|
|
11318
12739
|
currentPrice: Decimal | DecimalJsLike | number | string
|
|
@@ -11321,7 +12742,11 @@ export namespace Prisma {
|
|
|
11321
12742
|
export type PackUncheckedCreateWithoutUsersInput = {
|
|
11322
12743
|
id?: string
|
|
11323
12744
|
teacherId: string
|
|
11324
|
-
name
|
|
12745
|
+
name?: string
|
|
12746
|
+
shortDescription?: string
|
|
12747
|
+
longDescription?: string
|
|
12748
|
+
categoryId?: string | null
|
|
12749
|
+
published?: boolean
|
|
11325
12750
|
cards?: CardUncheckedCreateNestedManyWithoutPackInput
|
|
11326
12751
|
purchase?: PurchaseUncheckedCreateNestedManyWithoutPackInput
|
|
11327
12752
|
currentPrice: Decimal | DecimalJsLike | number | string
|
|
@@ -11425,16 +12850,6 @@ export namespace Prisma {
|
|
|
11425
12850
|
data: XOR<PackUpdateManyMutationInput, PackUncheckedUpdateManyWithoutPacksInput>
|
|
11426
12851
|
}
|
|
11427
12852
|
|
|
11428
|
-
export type PackScalarWhereInput = {
|
|
11429
|
-
AND?: Enumerable<PackScalarWhereInput>
|
|
11430
|
-
OR?: Enumerable<PackScalarWhereInput>
|
|
11431
|
-
NOT?: Enumerable<PackScalarWhereInput>
|
|
11432
|
-
id?: StringFilter | string
|
|
11433
|
-
teacherId?: StringFilter | string
|
|
11434
|
-
name?: StringFilter | string
|
|
11435
|
-
currentPrice?: DecimalFilter | Decimal | DecimalJsLike | number | string
|
|
11436
|
-
}
|
|
11437
|
-
|
|
11438
12853
|
export type UserCardUpsertWithWhereUniqueWithoutUserInput = {
|
|
11439
12854
|
where: UserCardWhereUniqueInput
|
|
11440
12855
|
update: XOR<UserCardUpdateWithoutUserInput, UserCardUncheckedUpdateWithoutUserInput>
|
|
@@ -11480,7 +12895,11 @@ export namespace Prisma {
|
|
|
11480
12895
|
|
|
11481
12896
|
export type PackCreateWithoutTeacherInput = {
|
|
11482
12897
|
id?: string
|
|
11483
|
-
name
|
|
12898
|
+
name?: string
|
|
12899
|
+
shortDescription?: string
|
|
12900
|
+
longDescription?: string
|
|
12901
|
+
category?: CategoryCreateNestedOneWithoutPacksInput
|
|
12902
|
+
published?: boolean
|
|
11484
12903
|
cards?: CardCreateNestedManyWithoutPackInput
|
|
11485
12904
|
users?: UserCreateNestedManyWithoutPacksInput
|
|
11486
12905
|
purchase?: PurchaseCreateNestedManyWithoutPackInput
|
|
@@ -11489,7 +12908,11 @@ export namespace Prisma {
|
|
|
11489
12908
|
|
|
11490
12909
|
export type PackUncheckedCreateWithoutTeacherInput = {
|
|
11491
12910
|
id?: string
|
|
11492
|
-
name
|
|
12911
|
+
name?: string
|
|
12912
|
+
shortDescription?: string
|
|
12913
|
+
longDescription?: string
|
|
12914
|
+
categoryId?: string | null
|
|
12915
|
+
published?: boolean
|
|
11493
12916
|
cards?: CardUncheckedCreateNestedManyWithoutPackInput
|
|
11494
12917
|
users?: UserUncheckedCreateNestedManyWithoutPacksInput
|
|
11495
12918
|
purchase?: PurchaseUncheckedCreateNestedManyWithoutPackInput
|
|
@@ -11650,7 +13073,11 @@ export namespace Prisma {
|
|
|
11650
13073
|
export type PackCreateWithoutPurchaseInput = {
|
|
11651
13074
|
id?: string
|
|
11652
13075
|
teacher: TeacherCreateNestedOneWithoutPacksInput
|
|
11653
|
-
name
|
|
13076
|
+
name?: string
|
|
13077
|
+
shortDescription?: string
|
|
13078
|
+
longDescription?: string
|
|
13079
|
+
category?: CategoryCreateNestedOneWithoutPacksInput
|
|
13080
|
+
published?: boolean
|
|
11654
13081
|
cards?: CardCreateNestedManyWithoutPackInput
|
|
11655
13082
|
users?: UserCreateNestedManyWithoutPacksInput
|
|
11656
13083
|
currentPrice: Decimal | DecimalJsLike | number | string
|
|
@@ -11659,7 +13086,11 @@ export namespace Prisma {
|
|
|
11659
13086
|
export type PackUncheckedCreateWithoutPurchaseInput = {
|
|
11660
13087
|
id?: string
|
|
11661
13088
|
teacherId: string
|
|
11662
|
-
name
|
|
13089
|
+
name?: string
|
|
13090
|
+
shortDescription?: string
|
|
13091
|
+
longDescription?: string
|
|
13092
|
+
categoryId?: string | null
|
|
13093
|
+
published?: boolean
|
|
11663
13094
|
cards?: CardUncheckedCreateNestedManyWithoutPackInput
|
|
11664
13095
|
users?: UserUncheckedCreateNestedManyWithoutPacksInput
|
|
11665
13096
|
currentPrice: Decimal | DecimalJsLike | number | string
|
|
@@ -11704,6 +13135,10 @@ export namespace Prisma {
|
|
|
11704
13135
|
id?: StringFieldUpdateOperationsInput | string
|
|
11705
13136
|
teacher?: TeacherUpdateOneRequiredWithoutPacksNestedInput
|
|
11706
13137
|
name?: StringFieldUpdateOperationsInput | string
|
|
13138
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
13139
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13140
|
+
category?: CategoryUpdateOneWithoutPacksNestedInput
|
|
13141
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
11707
13142
|
cards?: CardUpdateManyWithoutPackNestedInput
|
|
11708
13143
|
users?: UserUpdateManyWithoutPacksNestedInput
|
|
11709
13144
|
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
@@ -11713,6 +13148,10 @@ export namespace Prisma {
|
|
|
11713
13148
|
id?: StringFieldUpdateOperationsInput | string
|
|
11714
13149
|
teacherId?: StringFieldUpdateOperationsInput | string
|
|
11715
13150
|
name?: StringFieldUpdateOperationsInput | string
|
|
13151
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
13152
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13153
|
+
categoryId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13154
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
11716
13155
|
cards?: CardUncheckedUpdateManyWithoutPackNestedInput
|
|
11717
13156
|
users?: UserUncheckedUpdateManyWithoutPacksNestedInput
|
|
11718
13157
|
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
@@ -11746,6 +13185,52 @@ export namespace Prisma {
|
|
|
11746
13185
|
done?: BoolFieldUpdateOperationsInput | boolean
|
|
11747
13186
|
}
|
|
11748
13187
|
|
|
13188
|
+
export type PackCreateManyCategoryInput = {
|
|
13189
|
+
id?: string
|
|
13190
|
+
teacherId: string
|
|
13191
|
+
name?: string
|
|
13192
|
+
shortDescription?: string
|
|
13193
|
+
longDescription?: string
|
|
13194
|
+
published?: boolean
|
|
13195
|
+
currentPrice: Decimal | DecimalJsLike | number | string
|
|
13196
|
+
}
|
|
13197
|
+
|
|
13198
|
+
export type PackUpdateWithoutCategoryInput = {
|
|
13199
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
13200
|
+
teacher?: TeacherUpdateOneRequiredWithoutPacksNestedInput
|
|
13201
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
13202
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
13203
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13204
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
13205
|
+
cards?: CardUpdateManyWithoutPackNestedInput
|
|
13206
|
+
users?: UserUpdateManyWithoutPacksNestedInput
|
|
13207
|
+
purchase?: PurchaseUpdateManyWithoutPackNestedInput
|
|
13208
|
+
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
13209
|
+
}
|
|
13210
|
+
|
|
13211
|
+
export type PackUncheckedUpdateWithoutCategoryInput = {
|
|
13212
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
13213
|
+
teacherId?: StringFieldUpdateOperationsInput | string
|
|
13214
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
13215
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
13216
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13217
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
13218
|
+
cards?: CardUncheckedUpdateManyWithoutPackNestedInput
|
|
13219
|
+
users?: UserUncheckedUpdateManyWithoutPacksNestedInput
|
|
13220
|
+
purchase?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
|
|
13221
|
+
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
13222
|
+
}
|
|
13223
|
+
|
|
13224
|
+
export type PackUncheckedUpdateManyWithoutPacksInput = {
|
|
13225
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
13226
|
+
teacherId?: StringFieldUpdateOperationsInput | string
|
|
13227
|
+
name?: StringFieldUpdateOperationsInput | string
|
|
13228
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
13229
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13230
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
13231
|
+
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
13232
|
+
}
|
|
13233
|
+
|
|
11749
13234
|
export type CardCreateManyPackInput = {
|
|
11750
13235
|
id?: string
|
|
11751
13236
|
front: string
|
|
@@ -11896,6 +13381,10 @@ export namespace Prisma {
|
|
|
11896
13381
|
id?: StringFieldUpdateOperationsInput | string
|
|
11897
13382
|
teacher?: TeacherUpdateOneRequiredWithoutPacksNestedInput
|
|
11898
13383
|
name?: StringFieldUpdateOperationsInput | string
|
|
13384
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
13385
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13386
|
+
category?: CategoryUpdateOneWithoutPacksNestedInput
|
|
13387
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
11899
13388
|
cards?: CardUpdateManyWithoutPackNestedInput
|
|
11900
13389
|
purchase?: PurchaseUpdateManyWithoutPackNestedInput
|
|
11901
13390
|
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
@@ -11905,18 +13394,15 @@ export namespace Prisma {
|
|
|
11905
13394
|
id?: StringFieldUpdateOperationsInput | string
|
|
11906
13395
|
teacherId?: StringFieldUpdateOperationsInput | string
|
|
11907
13396
|
name?: StringFieldUpdateOperationsInput | string
|
|
13397
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
13398
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13399
|
+
categoryId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13400
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
11908
13401
|
cards?: CardUncheckedUpdateManyWithoutPackNestedInput
|
|
11909
13402
|
purchase?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
|
|
11910
13403
|
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
11911
13404
|
}
|
|
11912
13405
|
|
|
11913
|
-
export type PackUncheckedUpdateManyWithoutPacksInput = {
|
|
11914
|
-
id?: StringFieldUpdateOperationsInput | string
|
|
11915
|
-
teacherId?: StringFieldUpdateOperationsInput | string
|
|
11916
|
-
name?: StringFieldUpdateOperationsInput | string
|
|
11917
|
-
currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
11918
|
-
}
|
|
11919
|
-
|
|
11920
13406
|
export type UserCardUpdateWithoutUserInput = {
|
|
11921
13407
|
card?: CardUpdateOneRequiredWithoutUserCardsNestedInput
|
|
11922
13408
|
currentInterval?: NullableIntFieldUpdateOperationsInput | number | null
|
|
@@ -11954,13 +13440,21 @@ export namespace Prisma {
|
|
|
11954
13440
|
|
|
11955
13441
|
export type PackCreateManyTeacherInput = {
|
|
11956
13442
|
id?: string
|
|
11957
|
-
name
|
|
13443
|
+
name?: string
|
|
13444
|
+
shortDescription?: string
|
|
13445
|
+
longDescription?: string
|
|
13446
|
+
categoryId?: string | null
|
|
13447
|
+
published?: boolean
|
|
11958
13448
|
currentPrice: Decimal | DecimalJsLike | number | string
|
|
11959
13449
|
}
|
|
11960
13450
|
|
|
11961
13451
|
export type PackUpdateWithoutTeacherInput = {
|
|
11962
13452
|
id?: StringFieldUpdateOperationsInput | string
|
|
11963
13453
|
name?: StringFieldUpdateOperationsInput | string
|
|
13454
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
13455
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13456
|
+
category?: CategoryUpdateOneWithoutPacksNestedInput
|
|
13457
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
11964
13458
|
cards?: CardUpdateManyWithoutPackNestedInput
|
|
11965
13459
|
users?: UserUpdateManyWithoutPacksNestedInput
|
|
11966
13460
|
purchase?: PurchaseUpdateManyWithoutPackNestedInput
|
|
@@ -11970,6 +13464,10 @@ export namespace Prisma {
|
|
|
11970
13464
|
export type PackUncheckedUpdateWithoutTeacherInput = {
|
|
11971
13465
|
id?: StringFieldUpdateOperationsInput | string
|
|
11972
13466
|
name?: StringFieldUpdateOperationsInput | string
|
|
13467
|
+
shortDescription?: StringFieldUpdateOperationsInput | string
|
|
13468
|
+
longDescription?: StringFieldUpdateOperationsInput | string
|
|
13469
|
+
categoryId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13470
|
+
published?: BoolFieldUpdateOperationsInput | boolean
|
|
11973
13471
|
cards?: CardUncheckedUpdateManyWithoutPackNestedInput
|
|
11974
13472
|
users?: UserUncheckedUpdateManyWithoutPacksNestedInput
|
|
11975
13473
|
purchase?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
|