lang-database 1.1.1 → 1.2.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.
@@ -41,7 +41,7 @@ export type UserCard = {
41
41
  */
42
42
  export type Pack = {
43
43
  id: number
44
- adminId: number
44
+ teacherId: number
45
45
  name: string
46
46
  currentPrice: Prisma.Decimal
47
47
  }
@@ -57,10 +57,10 @@ export type User = {
57
57
  }
58
58
 
59
59
  /**
60
- * Model Admin
60
+ * Model Teacher
61
61
  *
62
62
  */
63
- export type Admin = {
63
+ export type Teacher = {
64
64
  id: number
65
65
  email: string
66
66
  name: string
@@ -281,14 +281,14 @@ export class PrismaClient<
281
281
  get user(): Prisma.UserDelegate<GlobalReject>;
282
282
 
283
283
  /**
284
- * `prisma.admin`: Exposes CRUD operations for the **Admin** model.
284
+ * `prisma.teacher`: Exposes CRUD operations for the **Teacher** model.
285
285
  * Example usage:
286
286
  * ```ts
287
- * // Fetch zero or more Admins
288
- * const admins = await prisma.admin.findMany()
287
+ * // Fetch zero or more Teachers
288
+ * const teachers = await prisma.teacher.findMany()
289
289
  * ```
290
290
  */
291
- get admin(): Prisma.AdminDelegate<GlobalReject>;
291
+ get teacher(): Prisma.TeacherDelegate<GlobalReject>;
292
292
 
293
293
  /**
294
294
  * `prisma.googleUser`: Exposes CRUD operations for the **GoogleUser** model.
@@ -796,7 +796,7 @@ export namespace Prisma {
796
796
  UserCard: 'UserCard',
797
797
  Pack: 'Pack',
798
798
  User: 'User',
799
- Admin: 'Admin',
799
+ Teacher: 'Teacher',
800
800
  GoogleUser: 'GoogleUser',
801
801
  Answer: 'Answer',
802
802
  Purchase: 'Purchase'
@@ -1116,35 +1116,35 @@ export namespace Prisma {
1116
1116
 
1117
1117
 
1118
1118
  /**
1119
- * Count Type AdminCountOutputType
1119
+ * Count Type TeacherCountOutputType
1120
1120
  */
1121
1121
 
1122
1122
 
1123
- export type AdminCountOutputType = {
1123
+ export type TeacherCountOutputType = {
1124
1124
  packs: number
1125
1125
  }
1126
1126
 
1127
- export type AdminCountOutputTypeSelect = {
1127
+ export type TeacherCountOutputTypeSelect = {
1128
1128
  packs?: boolean
1129
1129
  }
1130
1130
 
1131
- export type AdminCountOutputTypeGetPayload<
1132
- S extends boolean | null | undefined | AdminCountOutputTypeArgs,
1131
+ export type TeacherCountOutputTypeGetPayload<
1132
+ S extends boolean | null | undefined | TeacherCountOutputTypeArgs,
1133
1133
  U = keyof S
1134
1134
  > = S extends true
1135
- ? AdminCountOutputType
1135
+ ? TeacherCountOutputType
1136
1136
  : S extends undefined
1137
1137
  ? never
1138
- : S extends AdminCountOutputTypeArgs
1138
+ : S extends TeacherCountOutputTypeArgs
1139
1139
  ?'include' extends U
1140
- ? AdminCountOutputType
1140
+ ? TeacherCountOutputType
1141
1141
  : 'select' extends U
1142
1142
  ? {
1143
1143
  [P in TrueKeys<S['select']>]:
1144
- P extends keyof AdminCountOutputType ? AdminCountOutputType[P] : never
1144
+ P extends keyof TeacherCountOutputType ? TeacherCountOutputType[P] : never
1145
1145
  }
1146
- : AdminCountOutputType
1147
- : AdminCountOutputType
1146
+ : TeacherCountOutputType
1147
+ : TeacherCountOutputType
1148
1148
 
1149
1149
 
1150
1150
 
@@ -1152,14 +1152,14 @@ export namespace Prisma {
1152
1152
  // Custom InputTypes
1153
1153
 
1154
1154
  /**
1155
- * AdminCountOutputType without action
1155
+ * TeacherCountOutputType without action
1156
1156
  */
1157
- export type AdminCountOutputTypeArgs = {
1157
+ export type TeacherCountOutputTypeArgs = {
1158
1158
  /**
1159
- * Select specific fields to fetch from the AdminCountOutputType
1159
+ * Select specific fields to fetch from the TeacherCountOutputType
1160
1160
  *
1161
1161
  **/
1162
- select?: AdminCountOutputTypeSelect | null
1162
+ select?: TeacherCountOutputTypeSelect | null
1163
1163
  }
1164
1164
 
1165
1165
 
@@ -3063,33 +3063,33 @@ export namespace Prisma {
3063
3063
 
3064
3064
  export type PackAvgAggregateOutputType = {
3065
3065
  id: number | null
3066
- adminId: number | null
3066
+ teacherId: number | null
3067
3067
  currentPrice: Decimal | null
3068
3068
  }
3069
3069
 
3070
3070
  export type PackSumAggregateOutputType = {
3071
3071
  id: number | null
3072
- adminId: number | null
3072
+ teacherId: number | null
3073
3073
  currentPrice: Decimal | null
3074
3074
  }
3075
3075
 
3076
3076
  export type PackMinAggregateOutputType = {
3077
3077
  id: number | null
3078
- adminId: number | null
3078
+ teacherId: number | null
3079
3079
  name: string | null
3080
3080
  currentPrice: Decimal | null
3081
3081
  }
3082
3082
 
3083
3083
  export type PackMaxAggregateOutputType = {
3084
3084
  id: number | null
3085
- adminId: number | null
3085
+ teacherId: number | null
3086
3086
  name: string | null
3087
3087
  currentPrice: Decimal | null
3088
3088
  }
3089
3089
 
3090
3090
  export type PackCountAggregateOutputType = {
3091
3091
  id: number
3092
- adminId: number
3092
+ teacherId: number
3093
3093
  name: number
3094
3094
  currentPrice: number
3095
3095
  _all: number
@@ -3098,33 +3098,33 @@ export namespace Prisma {
3098
3098
 
3099
3099
  export type PackAvgAggregateInputType = {
3100
3100
  id?: true
3101
- adminId?: true
3101
+ teacherId?: true
3102
3102
  currentPrice?: true
3103
3103
  }
3104
3104
 
3105
3105
  export type PackSumAggregateInputType = {
3106
3106
  id?: true
3107
- adminId?: true
3107
+ teacherId?: true
3108
3108
  currentPrice?: true
3109
3109
  }
3110
3110
 
3111
3111
  export type PackMinAggregateInputType = {
3112
3112
  id?: true
3113
- adminId?: true
3113
+ teacherId?: true
3114
3114
  name?: true
3115
3115
  currentPrice?: true
3116
3116
  }
3117
3117
 
3118
3118
  export type PackMaxAggregateInputType = {
3119
3119
  id?: true
3120
- adminId?: true
3120
+ teacherId?: true
3121
3121
  name?: true
3122
3122
  currentPrice?: true
3123
3123
  }
3124
3124
 
3125
3125
  export type PackCountAggregateInputType = {
3126
3126
  id?: true
3127
- adminId?: true
3127
+ teacherId?: true
3128
3128
  name?: true
3129
3129
  currentPrice?: true
3130
3130
  _all?: true
@@ -3224,7 +3224,7 @@ export namespace Prisma {
3224
3224
 
3225
3225
  export type PackGroupByOutputType = {
3226
3226
  id: number
3227
- adminId: number
3227
+ teacherId: number
3228
3228
  name: string
3229
3229
  currentPrice: Decimal
3230
3230
  _count: PackCountAggregateOutputType | null
@@ -3250,8 +3250,8 @@ export namespace Prisma {
3250
3250
 
3251
3251
  export type PackSelect = {
3252
3252
  id?: boolean
3253
- admin?: boolean | AdminArgs
3254
- adminId?: boolean
3253
+ teacher?: boolean | TeacherArgs
3254
+ teacherId?: boolean
3255
3255
  name?: boolean
3256
3256
  cards?: boolean | CardFindManyArgs
3257
3257
  users?: boolean | UserFindManyArgs
@@ -3261,7 +3261,7 @@ export namespace Prisma {
3261
3261
  }
3262
3262
 
3263
3263
  export type PackInclude = {
3264
- admin?: boolean | AdminArgs
3264
+ teacher?: boolean | TeacherArgs
3265
3265
  cards?: boolean | CardFindManyArgs
3266
3266
  users?: boolean | UserFindManyArgs
3267
3267
  purchase?: boolean | PurchaseFindManyArgs
@@ -3279,7 +3279,7 @@ export namespace Prisma {
3279
3279
  ?'include' extends U
3280
3280
  ? Pack & {
3281
3281
  [P in TrueKeys<S['include']>]:
3282
- P extends 'admin' ? AdminGetPayload<Exclude<S['include'], undefined | null>[P]> :
3282
+ P extends 'teacher' ? TeacherGetPayload<Exclude<S['include'], undefined | null>[P]> :
3283
3283
  P extends 'cards' ? Array < CardGetPayload<Exclude<S['include'], undefined | null>[P]>> :
3284
3284
  P extends 'users' ? Array < UserGetPayload<Exclude<S['include'], undefined | null>[P]>> :
3285
3285
  P extends 'purchase' ? Array < PurchaseGetPayload<Exclude<S['include'], undefined | null>[P]>> :
@@ -3288,7 +3288,7 @@ export namespace Prisma {
3288
3288
  : 'select' extends U
3289
3289
  ? {
3290
3290
  [P in TrueKeys<S['select']>]:
3291
- P extends 'admin' ? AdminGetPayload<Exclude<S['select'], undefined | null>[P]> :
3291
+ P extends 'teacher' ? TeacherGetPayload<Exclude<S['select'], undefined | null>[P]> :
3292
3292
  P extends 'cards' ? Array < CardGetPayload<Exclude<S['select'], undefined | null>[P]>> :
3293
3293
  P extends 'users' ? Array < UserGetPayload<Exclude<S['select'], undefined | null>[P]>> :
3294
3294
  P extends 'purchase' ? Array < PurchaseGetPayload<Exclude<S['select'], undefined | null>[P]>> :
@@ -3651,7 +3651,7 @@ export namespace Prisma {
3651
3651
  constructor(_dmmf: runtime.DMMFClass, _fetcher: PrismaClientFetcher, _queryType: 'query' | 'mutation', _rootField: string, _clientMethod: string, _args: any, _dataPath: string[], _errorFormat: ErrorFormat, _measurePerformance?: boolean | undefined, _isList?: boolean);
3652
3652
  readonly [Symbol.toStringTag]: 'PrismaClientPromise';
3653
3653
 
3654
- admin<T extends AdminArgs = {}>(args?: Subset<T, AdminArgs>): CheckSelect<T, Prisma__AdminClient<Admin | null >, Prisma__AdminClient<AdminGetPayload<T> | null >>;
3654
+ teacher<T extends TeacherArgs = {}>(args?: Subset<T, TeacherArgs>): CheckSelect<T, Prisma__TeacherClient<Teacher | null >, Prisma__TeacherClient<TeacherGetPayload<T> | null >>;
3655
3655
 
3656
3656
  cards<T extends CardFindManyArgs = {}>(args?: Subset<T, CardFindManyArgs>): CheckSelect<T, PrismaPromise<Array<Card>>, PrismaPromise<Array<CardGetPayload<T>>>>;
3657
3657
 
@@ -4943,41 +4943,41 @@ export namespace Prisma {
4943
4943
 
4944
4944
 
4945
4945
  /**
4946
- * Model Admin
4946
+ * Model Teacher
4947
4947
  */
4948
4948
 
4949
4949
 
4950
- export type AggregateAdmin = {
4951
- _count: AdminCountAggregateOutputType | null
4952
- _avg: AdminAvgAggregateOutputType | null
4953
- _sum: AdminSumAggregateOutputType | null
4954
- _min: AdminMinAggregateOutputType | null
4955
- _max: AdminMaxAggregateOutputType | null
4950
+ export type AggregateTeacher = {
4951
+ _count: TeacherCountAggregateOutputType | null
4952
+ _avg: TeacherAvgAggregateOutputType | null
4953
+ _sum: TeacherSumAggregateOutputType | null
4954
+ _min: TeacherMinAggregateOutputType | null
4955
+ _max: TeacherMaxAggregateOutputType | null
4956
4956
  }
4957
4957
 
4958
- export type AdminAvgAggregateOutputType = {
4958
+ export type TeacherAvgAggregateOutputType = {
4959
4959
  id: number | null
4960
4960
  }
4961
4961
 
4962
- export type AdminSumAggregateOutputType = {
4962
+ export type TeacherSumAggregateOutputType = {
4963
4963
  id: number | null
4964
4964
  }
4965
4965
 
4966
- export type AdminMinAggregateOutputType = {
4966
+ export type TeacherMinAggregateOutputType = {
4967
4967
  id: number | null
4968
4968
  email: string | null
4969
4969
  name: string | null
4970
4970
  password: string | null
4971
4971
  }
4972
4972
 
4973
- export type AdminMaxAggregateOutputType = {
4973
+ export type TeacherMaxAggregateOutputType = {
4974
4974
  id: number | null
4975
4975
  email: string | null
4976
4976
  name: string | null
4977
4977
  password: string | null
4978
4978
  }
4979
4979
 
4980
- export type AdminCountAggregateOutputType = {
4980
+ export type TeacherCountAggregateOutputType = {
4981
4981
  id: number
4982
4982
  email: number
4983
4983
  name: number
@@ -4986,29 +4986,29 @@ export namespace Prisma {
4986
4986
  }
4987
4987
 
4988
4988
 
4989
- export type AdminAvgAggregateInputType = {
4989
+ export type TeacherAvgAggregateInputType = {
4990
4990
  id?: true
4991
4991
  }
4992
4992
 
4993
- export type AdminSumAggregateInputType = {
4993
+ export type TeacherSumAggregateInputType = {
4994
4994
  id?: true
4995
4995
  }
4996
4996
 
4997
- export type AdminMinAggregateInputType = {
4997
+ export type TeacherMinAggregateInputType = {
4998
4998
  id?: true
4999
4999
  email?: true
5000
5000
  name?: true
5001
5001
  password?: true
5002
5002
  }
5003
5003
 
5004
- export type AdminMaxAggregateInputType = {
5004
+ export type TeacherMaxAggregateInputType = {
5005
5005
  id?: true
5006
5006
  email?: true
5007
5007
  name?: true
5008
5008
  password?: true
5009
5009
  }
5010
5010
 
5011
- export type AdminCountAggregateInputType = {
5011
+ export type TeacherCountAggregateInputType = {
5012
5012
  id?: true
5013
5013
  email?: true
5014
5014
  name?: true
@@ -5016,259 +5016,259 @@ export namespace Prisma {
5016
5016
  _all?: true
5017
5017
  }
5018
5018
 
5019
- export type AdminAggregateArgs = {
5019
+ export type TeacherAggregateArgs = {
5020
5020
  /**
5021
- * Filter which Admin to aggregate.
5021
+ * Filter which Teacher to aggregate.
5022
5022
  *
5023
5023
  **/
5024
- where?: AdminWhereInput
5024
+ where?: TeacherWhereInput
5025
5025
  /**
5026
5026
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
5027
5027
  *
5028
- * Determine the order of Admins to fetch.
5028
+ * Determine the order of Teachers to fetch.
5029
5029
  *
5030
5030
  **/
5031
- orderBy?: Enumerable<AdminOrderByWithRelationInput>
5031
+ orderBy?: Enumerable<TeacherOrderByWithRelationInput>
5032
5032
  /**
5033
5033
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
5034
5034
  *
5035
5035
  * Sets the start position
5036
5036
  *
5037
5037
  **/
5038
- cursor?: AdminWhereUniqueInput
5038
+ cursor?: TeacherWhereUniqueInput
5039
5039
  /**
5040
5040
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
5041
5041
  *
5042
- * Take `±n` Admins from the position of the cursor.
5042
+ * Take `±n` Teachers from the position of the cursor.
5043
5043
  *
5044
5044
  **/
5045
5045
  take?: number
5046
5046
  /**
5047
5047
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
5048
5048
  *
5049
- * Skip the first `n` Admins.
5049
+ * Skip the first `n` Teachers.
5050
5050
  *
5051
5051
  **/
5052
5052
  skip?: number
5053
5053
  /**
5054
5054
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
5055
5055
  *
5056
- * Count returned Admins
5056
+ * Count returned Teachers
5057
5057
  **/
5058
- _count?: true | AdminCountAggregateInputType
5058
+ _count?: true | TeacherCountAggregateInputType
5059
5059
  /**
5060
5060
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
5061
5061
  *
5062
5062
  * Select which fields to average
5063
5063
  **/
5064
- _avg?: AdminAvgAggregateInputType
5064
+ _avg?: TeacherAvgAggregateInputType
5065
5065
  /**
5066
5066
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
5067
5067
  *
5068
5068
  * Select which fields to sum
5069
5069
  **/
5070
- _sum?: AdminSumAggregateInputType
5070
+ _sum?: TeacherSumAggregateInputType
5071
5071
  /**
5072
5072
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
5073
5073
  *
5074
5074
  * Select which fields to find the minimum value
5075
5075
  **/
5076
- _min?: AdminMinAggregateInputType
5076
+ _min?: TeacherMinAggregateInputType
5077
5077
  /**
5078
5078
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
5079
5079
  *
5080
5080
  * Select which fields to find the maximum value
5081
5081
  **/
5082
- _max?: AdminMaxAggregateInputType
5082
+ _max?: TeacherMaxAggregateInputType
5083
5083
  }
5084
5084
 
5085
- export type GetAdminAggregateType<T extends AdminAggregateArgs> = {
5086
- [P in keyof T & keyof AggregateAdmin]: P extends '_count' | 'count'
5085
+ export type GetTeacherAggregateType<T extends TeacherAggregateArgs> = {
5086
+ [P in keyof T & keyof AggregateTeacher]: P extends '_count' | 'count'
5087
5087
  ? T[P] extends true
5088
5088
  ? number
5089
- : GetScalarType<T[P], AggregateAdmin[P]>
5090
- : GetScalarType<T[P], AggregateAdmin[P]>
5089
+ : GetScalarType<T[P], AggregateTeacher[P]>
5090
+ : GetScalarType<T[P], AggregateTeacher[P]>
5091
5091
  }
5092
5092
 
5093
5093
 
5094
5094
 
5095
5095
 
5096
- export type AdminGroupByArgs = {
5097
- where?: AdminWhereInput
5098
- orderBy?: Enumerable<AdminOrderByWithAggregationInput>
5099
- by: Array<AdminScalarFieldEnum>
5100
- having?: AdminScalarWhereWithAggregatesInput
5096
+ export type TeacherGroupByArgs = {
5097
+ where?: TeacherWhereInput
5098
+ orderBy?: Enumerable<TeacherOrderByWithAggregationInput>
5099
+ by: Array<TeacherScalarFieldEnum>
5100
+ having?: TeacherScalarWhereWithAggregatesInput
5101
5101
  take?: number
5102
5102
  skip?: number
5103
- _count?: AdminCountAggregateInputType | true
5104
- _avg?: AdminAvgAggregateInputType
5105
- _sum?: AdminSumAggregateInputType
5106
- _min?: AdminMinAggregateInputType
5107
- _max?: AdminMaxAggregateInputType
5103
+ _count?: TeacherCountAggregateInputType | true
5104
+ _avg?: TeacherAvgAggregateInputType
5105
+ _sum?: TeacherSumAggregateInputType
5106
+ _min?: TeacherMinAggregateInputType
5107
+ _max?: TeacherMaxAggregateInputType
5108
5108
  }
5109
5109
 
5110
5110
 
5111
- export type AdminGroupByOutputType = {
5111
+ export type TeacherGroupByOutputType = {
5112
5112
  id: number
5113
5113
  email: string
5114
5114
  name: string
5115
5115
  password: string
5116
- _count: AdminCountAggregateOutputType | null
5117
- _avg: AdminAvgAggregateOutputType | null
5118
- _sum: AdminSumAggregateOutputType | null
5119
- _min: AdminMinAggregateOutputType | null
5120
- _max: AdminMaxAggregateOutputType | null
5116
+ _count: TeacherCountAggregateOutputType | null
5117
+ _avg: TeacherAvgAggregateOutputType | null
5118
+ _sum: TeacherSumAggregateOutputType | null
5119
+ _min: TeacherMinAggregateOutputType | null
5120
+ _max: TeacherMaxAggregateOutputType | null
5121
5121
  }
5122
5122
 
5123
- type GetAdminGroupByPayload<T extends AdminGroupByArgs> = PrismaPromise<
5123
+ type GetTeacherGroupByPayload<T extends TeacherGroupByArgs> = PrismaPromise<
5124
5124
  Array<
5125
- PickArray<AdminGroupByOutputType, T['by']> &
5125
+ PickArray<TeacherGroupByOutputType, T['by']> &
5126
5126
  {
5127
- [P in ((keyof T) & (keyof AdminGroupByOutputType))]: P extends '_count'
5127
+ [P in ((keyof T) & (keyof TeacherGroupByOutputType))]: P extends '_count'
5128
5128
  ? T[P] extends boolean
5129
5129
  ? number
5130
- : GetScalarType<T[P], AdminGroupByOutputType[P]>
5131
- : GetScalarType<T[P], AdminGroupByOutputType[P]>
5130
+ : GetScalarType<T[P], TeacherGroupByOutputType[P]>
5131
+ : GetScalarType<T[P], TeacherGroupByOutputType[P]>
5132
5132
  }
5133
5133
  >
5134
5134
  >
5135
5135
 
5136
5136
 
5137
- export type AdminSelect = {
5137
+ export type TeacherSelect = {
5138
5138
  id?: boolean
5139
5139
  email?: boolean
5140
5140
  name?: boolean
5141
5141
  password?: boolean
5142
5142
  packs?: boolean | PackFindManyArgs
5143
- _count?: boolean | AdminCountOutputTypeArgs
5143
+ _count?: boolean | TeacherCountOutputTypeArgs
5144
5144
  }
5145
5145
 
5146
- export type AdminInclude = {
5146
+ export type TeacherInclude = {
5147
5147
  packs?: boolean | PackFindManyArgs
5148
- _count?: boolean | AdminCountOutputTypeArgs
5148
+ _count?: boolean | TeacherCountOutputTypeArgs
5149
5149
  }
5150
5150
 
5151
- export type AdminGetPayload<
5152
- S extends boolean | null | undefined | AdminArgs,
5151
+ export type TeacherGetPayload<
5152
+ S extends boolean | null | undefined | TeacherArgs,
5153
5153
  U = keyof S
5154
5154
  > = S extends true
5155
- ? Admin
5155
+ ? Teacher
5156
5156
  : S extends undefined
5157
5157
  ? never
5158
- : S extends AdminArgs | AdminFindManyArgs
5158
+ : S extends TeacherArgs | TeacherFindManyArgs
5159
5159
  ?'include' extends U
5160
- ? Admin & {
5160
+ ? Teacher & {
5161
5161
  [P in TrueKeys<S['include']>]:
5162
5162
  P extends 'packs' ? Array < PackGetPayload<Exclude<S['include'], undefined | null>[P]>> :
5163
- P extends '_count' ? AdminCountOutputTypeGetPayload<Exclude<S['include'], undefined | null>[P]> : never
5163
+ P extends '_count' ? TeacherCountOutputTypeGetPayload<Exclude<S['include'], undefined | null>[P]> : never
5164
5164
  }
5165
5165
  : 'select' extends U
5166
5166
  ? {
5167
5167
  [P in TrueKeys<S['select']>]:
5168
5168
  P extends 'packs' ? Array < PackGetPayload<Exclude<S['select'], undefined | null>[P]>> :
5169
- P extends '_count' ? AdminCountOutputTypeGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof Admin ? Admin[P] : never
5169
+ P extends '_count' ? TeacherCountOutputTypeGetPayload<Exclude<S['select'], undefined | null>[P]> : P extends keyof Teacher ? Teacher[P] : never
5170
5170
  }
5171
- : Admin
5172
- : Admin
5171
+ : Teacher
5172
+ : Teacher
5173
5173
 
5174
5174
 
5175
- type AdminCountArgs = Merge<
5176
- Omit<AdminFindManyArgs, 'select' | 'include'> & {
5177
- select?: AdminCountAggregateInputType | true
5175
+ type TeacherCountArgs = Merge<
5176
+ Omit<TeacherFindManyArgs, 'select' | 'include'> & {
5177
+ select?: TeacherCountAggregateInputType | true
5178
5178
  }
5179
5179
  >
5180
5180
 
5181
- export interface AdminDelegate<GlobalRejectSettings extends Prisma.RejectOnNotFound | Prisma.RejectPerOperation | false | undefined> {
5181
+ export interface TeacherDelegate<GlobalRejectSettings extends Prisma.RejectOnNotFound | Prisma.RejectPerOperation | false | undefined> {
5182
5182
  /**
5183
- * Find zero or one Admin that matches the filter.
5184
- * @param {AdminFindUniqueArgs} args - Arguments to find a Admin
5183
+ * Find zero or one Teacher that matches the filter.
5184
+ * @param {TeacherFindUniqueArgs} args - Arguments to find a Teacher
5185
5185
  * @example
5186
- * // Get one Admin
5187
- * const admin = await prisma.admin.findUnique({
5186
+ * // Get one Teacher
5187
+ * const teacher = await prisma.teacher.findUnique({
5188
5188
  * where: {
5189
5189
  * // ... provide filter here
5190
5190
  * }
5191
5191
  * })
5192
5192
  **/
5193
- findUnique<T extends AdminFindUniqueArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
5194
- args: SelectSubset<T, AdminFindUniqueArgs>
5195
- ): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findUnique', 'Admin'> extends True ? CheckSelect<T, Prisma__AdminClient<Admin>, Prisma__AdminClient<AdminGetPayload<T>>> : CheckSelect<T, Prisma__AdminClient<Admin | null >, Prisma__AdminClient<AdminGetPayload<T> | null >>
5193
+ findUnique<T extends TeacherFindUniqueArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
5194
+ args: SelectSubset<T, TeacherFindUniqueArgs>
5195
+ ): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findUnique', 'Teacher'> extends True ? CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>> : CheckSelect<T, Prisma__TeacherClient<Teacher | null >, Prisma__TeacherClient<TeacherGetPayload<T> | null >>
5196
5196
 
5197
5197
  /**
5198
- * Find the first Admin that matches the filter.
5198
+ * Find the first Teacher that matches the filter.
5199
5199
  * Note, that providing `undefined` is treated as the value not being there.
5200
5200
  * Read more here: https://pris.ly/d/null-undefined
5201
- * @param {AdminFindFirstArgs} args - Arguments to find a Admin
5201
+ * @param {TeacherFindFirstArgs} args - Arguments to find a Teacher
5202
5202
  * @example
5203
- * // Get one Admin
5204
- * const admin = await prisma.admin.findFirst({
5203
+ * // Get one Teacher
5204
+ * const teacher = await prisma.teacher.findFirst({
5205
5205
  * where: {
5206
5206
  * // ... provide filter here
5207
5207
  * }
5208
5208
  * })
5209
5209
  **/
5210
- findFirst<T extends AdminFindFirstArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
5211
- args?: SelectSubset<T, AdminFindFirstArgs>
5212
- ): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findFirst', 'Admin'> extends True ? CheckSelect<T, Prisma__AdminClient<Admin>, Prisma__AdminClient<AdminGetPayload<T>>> : CheckSelect<T, Prisma__AdminClient<Admin | null >, Prisma__AdminClient<AdminGetPayload<T> | null >>
5210
+ findFirst<T extends TeacherFindFirstArgs, LocalRejectSettings = T["rejectOnNotFound"] extends RejectOnNotFound ? T['rejectOnNotFound'] : undefined>(
5211
+ args?: SelectSubset<T, TeacherFindFirstArgs>
5212
+ ): HasReject<GlobalRejectSettings, LocalRejectSettings, 'findFirst', 'Teacher'> extends True ? CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>> : CheckSelect<T, Prisma__TeacherClient<Teacher | null >, Prisma__TeacherClient<TeacherGetPayload<T> | null >>
5213
5213
 
5214
5214
  /**
5215
- * Find zero or more Admins that matches the filter.
5215
+ * Find zero or more Teachers that matches the filter.
5216
5216
  * Note, that providing `undefined` is treated as the value not being there.
5217
5217
  * Read more here: https://pris.ly/d/null-undefined
5218
- * @param {AdminFindManyArgs=} args - Arguments to filter and select certain fields only.
5218
+ * @param {TeacherFindManyArgs=} args - Arguments to filter and select certain fields only.
5219
5219
  * @example
5220
- * // Get all Admins
5221
- * const admins = await prisma.admin.findMany()
5220
+ * // Get all Teachers
5221
+ * const teachers = await prisma.teacher.findMany()
5222
5222
  *
5223
- * // Get first 10 Admins
5224
- * const admins = await prisma.admin.findMany({ take: 10 })
5223
+ * // Get first 10 Teachers
5224
+ * const teachers = await prisma.teacher.findMany({ take: 10 })
5225
5225
  *
5226
5226
  * // Only select the `id`
5227
- * const adminWithIdOnly = await prisma.admin.findMany({ select: { id: true } })
5227
+ * const teacherWithIdOnly = await prisma.teacher.findMany({ select: { id: true } })
5228
5228
  *
5229
5229
  **/
5230
- findMany<T extends AdminFindManyArgs>(
5231
- args?: SelectSubset<T, AdminFindManyArgs>
5232
- ): CheckSelect<T, PrismaPromise<Array<Admin>>, PrismaPromise<Array<AdminGetPayload<T>>>>
5230
+ findMany<T extends TeacherFindManyArgs>(
5231
+ args?: SelectSubset<T, TeacherFindManyArgs>
5232
+ ): CheckSelect<T, PrismaPromise<Array<Teacher>>, PrismaPromise<Array<TeacherGetPayload<T>>>>
5233
5233
 
5234
5234
  /**
5235
- * Create a Admin.
5236
- * @param {AdminCreateArgs} args - Arguments to create a Admin.
5235
+ * Create a Teacher.
5236
+ * @param {TeacherCreateArgs} args - Arguments to create a Teacher.
5237
5237
  * @example
5238
- * // Create one Admin
5239
- * const Admin = await prisma.admin.create({
5238
+ * // Create one Teacher
5239
+ * const Teacher = await prisma.teacher.create({
5240
5240
  * data: {
5241
- * // ... data to create a Admin
5241
+ * // ... data to create a Teacher
5242
5242
  * }
5243
5243
  * })
5244
5244
  *
5245
5245
  **/
5246
- create<T extends AdminCreateArgs>(
5247
- args: SelectSubset<T, AdminCreateArgs>
5248
- ): CheckSelect<T, Prisma__AdminClient<Admin>, Prisma__AdminClient<AdminGetPayload<T>>>
5246
+ create<T extends TeacherCreateArgs>(
5247
+ args: SelectSubset<T, TeacherCreateArgs>
5248
+ ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
5249
5249
 
5250
5250
  /**
5251
- * Delete a Admin.
5252
- * @param {AdminDeleteArgs} args - Arguments to delete one Admin.
5251
+ * Delete a Teacher.
5252
+ * @param {TeacherDeleteArgs} args - Arguments to delete one Teacher.
5253
5253
  * @example
5254
- * // Delete one Admin
5255
- * const Admin = await prisma.admin.delete({
5254
+ * // Delete one Teacher
5255
+ * const Teacher = await prisma.teacher.delete({
5256
5256
  * where: {
5257
- * // ... filter to delete one Admin
5257
+ * // ... filter to delete one Teacher
5258
5258
  * }
5259
5259
  * })
5260
5260
  *
5261
5261
  **/
5262
- delete<T extends AdminDeleteArgs>(
5263
- args: SelectSubset<T, AdminDeleteArgs>
5264
- ): CheckSelect<T, Prisma__AdminClient<Admin>, Prisma__AdminClient<AdminGetPayload<T>>>
5262
+ delete<T extends TeacherDeleteArgs>(
5263
+ args: SelectSubset<T, TeacherDeleteArgs>
5264
+ ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
5265
5265
 
5266
5266
  /**
5267
- * Update one Admin.
5268
- * @param {AdminUpdateArgs} args - Arguments to update one Admin.
5267
+ * Update one Teacher.
5268
+ * @param {TeacherUpdateArgs} args - Arguments to update one Teacher.
5269
5269
  * @example
5270
- * // Update one Admin
5271
- * const admin = await prisma.admin.update({
5270
+ * // Update one Teacher
5271
+ * const teacher = await prisma.teacher.update({
5272
5272
  * where: {
5273
5273
  * // ... provide filter here
5274
5274
  * },
@@ -5278,34 +5278,34 @@ export namespace Prisma {
5278
5278
  * })
5279
5279
  *
5280
5280
  **/
5281
- update<T extends AdminUpdateArgs>(
5282
- args: SelectSubset<T, AdminUpdateArgs>
5283
- ): CheckSelect<T, Prisma__AdminClient<Admin>, Prisma__AdminClient<AdminGetPayload<T>>>
5281
+ update<T extends TeacherUpdateArgs>(
5282
+ args: SelectSubset<T, TeacherUpdateArgs>
5283
+ ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
5284
5284
 
5285
5285
  /**
5286
- * Delete zero or more Admins.
5287
- * @param {AdminDeleteManyArgs} args - Arguments to filter Admins to delete.
5286
+ * Delete zero or more Teachers.
5287
+ * @param {TeacherDeleteManyArgs} args - Arguments to filter Teachers to delete.
5288
5288
  * @example
5289
- * // Delete a few Admins
5290
- * const { count } = await prisma.admin.deleteMany({
5289
+ * // Delete a few Teachers
5290
+ * const { count } = await prisma.teacher.deleteMany({
5291
5291
  * where: {
5292
5292
  * // ... provide filter here
5293
5293
  * }
5294
5294
  * })
5295
5295
  *
5296
5296
  **/
5297
- deleteMany<T extends AdminDeleteManyArgs>(
5298
- args?: SelectSubset<T, AdminDeleteManyArgs>
5297
+ deleteMany<T extends TeacherDeleteManyArgs>(
5298
+ args?: SelectSubset<T, TeacherDeleteManyArgs>
5299
5299
  ): PrismaPromise<BatchPayload>
5300
5300
 
5301
5301
  /**
5302
- * Update zero or more Admins.
5302
+ * Update zero or more Teachers.
5303
5303
  * Note, that providing `undefined` is treated as the value not being there.
5304
5304
  * Read more here: https://pris.ly/d/null-undefined
5305
- * @param {AdminUpdateManyArgs} args - Arguments to update one or more rows.
5305
+ * @param {TeacherUpdateManyArgs} args - Arguments to update one or more rows.
5306
5306
  * @example
5307
- * // Update many Admins
5308
- * const admin = await prisma.admin.updateMany({
5307
+ * // Update many Teachers
5308
+ * const teacher = await prisma.teacher.updateMany({
5309
5309
  * where: {
5310
5310
  * // ... provide filter here
5311
5311
  * },
@@ -5315,93 +5315,93 @@ export namespace Prisma {
5315
5315
  * })
5316
5316
  *
5317
5317
  **/
5318
- updateMany<T extends AdminUpdateManyArgs>(
5319
- args: SelectSubset<T, AdminUpdateManyArgs>
5318
+ updateMany<T extends TeacherUpdateManyArgs>(
5319
+ args: SelectSubset<T, TeacherUpdateManyArgs>
5320
5320
  ): PrismaPromise<BatchPayload>
5321
5321
 
5322
5322
  /**
5323
- * Create or update one Admin.
5324
- * @param {AdminUpsertArgs} args - Arguments to update or create a Admin.
5323
+ * Create or update one Teacher.
5324
+ * @param {TeacherUpsertArgs} args - Arguments to update or create a Teacher.
5325
5325
  * @example
5326
- * // Update or create a Admin
5327
- * const admin = await prisma.admin.upsert({
5326
+ * // Update or create a Teacher
5327
+ * const teacher = await prisma.teacher.upsert({
5328
5328
  * create: {
5329
- * // ... data to create a Admin
5329
+ * // ... data to create a Teacher
5330
5330
  * },
5331
5331
  * update: {
5332
5332
  * // ... in case it already exists, update
5333
5333
  * },
5334
5334
  * where: {
5335
- * // ... the filter for the Admin we want to update
5335
+ * // ... the filter for the Teacher we want to update
5336
5336
  * }
5337
5337
  * })
5338
5338
  **/
5339
- upsert<T extends AdminUpsertArgs>(
5340
- args: SelectSubset<T, AdminUpsertArgs>
5341
- ): CheckSelect<T, Prisma__AdminClient<Admin>, Prisma__AdminClient<AdminGetPayload<T>>>
5339
+ upsert<T extends TeacherUpsertArgs>(
5340
+ args: SelectSubset<T, TeacherUpsertArgs>
5341
+ ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
5342
5342
 
5343
5343
  /**
5344
- * Find one Admin that matches the filter or throw
5344
+ * Find one Teacher that matches the filter or throw
5345
5345
  * `NotFoundError` if no matches were found.
5346
- * @param {AdminFindUniqueOrThrowArgs} args - Arguments to find a Admin
5346
+ * @param {TeacherFindUniqueOrThrowArgs} args - Arguments to find a Teacher
5347
5347
  * @example
5348
- * // Get one Admin
5349
- * const admin = await prisma.admin.findUniqueOrThrow({
5348
+ * // Get one Teacher
5349
+ * const teacher = await prisma.teacher.findUniqueOrThrow({
5350
5350
  * where: {
5351
5351
  * // ... provide filter here
5352
5352
  * }
5353
5353
  * })
5354
5354
  **/
5355
- findUniqueOrThrow<T extends AdminFindUniqueOrThrowArgs>(
5356
- args?: SelectSubset<T, AdminFindUniqueOrThrowArgs>
5357
- ): CheckSelect<T, Prisma__AdminClient<Admin>, Prisma__AdminClient<AdminGetPayload<T>>>
5355
+ findUniqueOrThrow<T extends TeacherFindUniqueOrThrowArgs>(
5356
+ args?: SelectSubset<T, TeacherFindUniqueOrThrowArgs>
5357
+ ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
5358
5358
 
5359
5359
  /**
5360
- * Find the first Admin that matches the filter or
5360
+ * Find the first Teacher that matches the filter or
5361
5361
  * throw `NotFoundError` if no matches were found.
5362
5362
  * Note, that providing `undefined` is treated as the value not being there.
5363
5363
  * Read more here: https://pris.ly/d/null-undefined
5364
- * @param {AdminFindFirstOrThrowArgs} args - Arguments to find a Admin
5364
+ * @param {TeacherFindFirstOrThrowArgs} args - Arguments to find a Teacher
5365
5365
  * @example
5366
- * // Get one Admin
5367
- * const admin = await prisma.admin.findFirstOrThrow({
5366
+ * // Get one Teacher
5367
+ * const teacher = await prisma.teacher.findFirstOrThrow({
5368
5368
  * where: {
5369
5369
  * // ... provide filter here
5370
5370
  * }
5371
5371
  * })
5372
5372
  **/
5373
- findFirstOrThrow<T extends AdminFindFirstOrThrowArgs>(
5374
- args?: SelectSubset<T, AdminFindFirstOrThrowArgs>
5375
- ): CheckSelect<T, Prisma__AdminClient<Admin>, Prisma__AdminClient<AdminGetPayload<T>>>
5373
+ findFirstOrThrow<T extends TeacherFindFirstOrThrowArgs>(
5374
+ args?: SelectSubset<T, TeacherFindFirstOrThrowArgs>
5375
+ ): CheckSelect<T, Prisma__TeacherClient<Teacher>, Prisma__TeacherClient<TeacherGetPayload<T>>>
5376
5376
 
5377
5377
  /**
5378
- * Count the number of Admins.
5378
+ * Count the number of Teachers.
5379
5379
  * Note, that providing `undefined` is treated as the value not being there.
5380
5380
  * Read more here: https://pris.ly/d/null-undefined
5381
- * @param {AdminCountArgs} args - Arguments to filter Admins to count.
5381
+ * @param {TeacherCountArgs} args - Arguments to filter Teachers to count.
5382
5382
  * @example
5383
- * // Count the number of Admins
5384
- * const count = await prisma.admin.count({
5383
+ * // Count the number of Teachers
5384
+ * const count = await prisma.teacher.count({
5385
5385
  * where: {
5386
- * // ... the filter for the Admins we want to count
5386
+ * // ... the filter for the Teachers we want to count
5387
5387
  * }
5388
5388
  * })
5389
5389
  **/
5390
- count<T extends AdminCountArgs>(
5391
- args?: Subset<T, AdminCountArgs>,
5390
+ count<T extends TeacherCountArgs>(
5391
+ args?: Subset<T, TeacherCountArgs>,
5392
5392
  ): PrismaPromise<
5393
5393
  T extends _Record<'select', any>
5394
5394
  ? T['select'] extends true
5395
5395
  ? number
5396
- : GetScalarType<T['select'], AdminCountAggregateOutputType>
5396
+ : GetScalarType<T['select'], TeacherCountAggregateOutputType>
5397
5397
  : number
5398
5398
  >
5399
5399
 
5400
5400
  /**
5401
- * Allows you to perform aggregations operations on a Admin.
5401
+ * Allows you to perform aggregations operations on a Teacher.
5402
5402
  * Note, that providing `undefined` is treated as the value not being there.
5403
5403
  * Read more here: https://pris.ly/d/null-undefined
5404
- * @param {AdminAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
5404
+ * @param {TeacherAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
5405
5405
  * @example
5406
5406
  * // Ordered by age ascending
5407
5407
  * // Where email contains prisma.io
@@ -5421,13 +5421,13 @@ export namespace Prisma {
5421
5421
  * take: 10,
5422
5422
  * })
5423
5423
  **/
5424
- aggregate<T extends AdminAggregateArgs>(args: Subset<T, AdminAggregateArgs>): PrismaPromise<GetAdminAggregateType<T>>
5424
+ aggregate<T extends TeacherAggregateArgs>(args: Subset<T, TeacherAggregateArgs>): PrismaPromise<GetTeacherAggregateType<T>>
5425
5425
 
5426
5426
  /**
5427
- * Group by Admin.
5427
+ * Group by Teacher.
5428
5428
  * Note, that providing `undefined` is treated as the value not being there.
5429
5429
  * Read more here: https://pris.ly/d/null-undefined
5430
- * @param {AdminGroupByArgs} args - Group by arguments.
5430
+ * @param {TeacherGroupByArgs} args - Group by arguments.
5431
5431
  * @example
5432
5432
  * // Group by city, order by createdAt, get count
5433
5433
  * const result = await prisma.user.groupBy({
@@ -5442,14 +5442,14 @@ export namespace Prisma {
5442
5442
  *
5443
5443
  **/
5444
5444
  groupBy<
5445
- T extends AdminGroupByArgs,
5445
+ T extends TeacherGroupByArgs,
5446
5446
  HasSelectOrTake extends Or<
5447
5447
  Extends<'skip', Keys<T>>,
5448
5448
  Extends<'take', Keys<T>>
5449
5449
  >,
5450
5450
  OrderByArg extends True extends HasSelectOrTake
5451
- ? { orderBy: AdminGroupByArgs['orderBy'] }
5452
- : { orderBy?: AdminGroupByArgs['orderBy'] },
5451
+ ? { orderBy: TeacherGroupByArgs['orderBy'] }
5452
+ : { orderBy?: TeacherGroupByArgs['orderBy'] },
5453
5453
  OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
5454
5454
  ByFields extends TupleToUnion<T['by']>,
5455
5455
  ByValid extends Has<ByFields, OrderFields>,
@@ -5498,17 +5498,17 @@ export namespace Prisma {
5498
5498
  ? never
5499
5499
  : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
5500
5500
  }[OrderFields]
5501
- >(args: SubsetIntersection<T, AdminGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminGroupByPayload<T> : PrismaPromise<InputErrors>
5501
+ >(args: SubsetIntersection<T, TeacherGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTeacherGroupByPayload<T> : PrismaPromise<InputErrors>
5502
5502
 
5503
5503
  }
5504
5504
 
5505
5505
  /**
5506
- * The delegate class that acts as a "Promise-like" for Admin.
5506
+ * The delegate class that acts as a "Promise-like" for Teacher.
5507
5507
  * Why is this prefixed with `Prisma__`?
5508
5508
  * Because we want to prevent naming conflicts as mentioned in
5509
5509
  * https://github.com/prisma/prisma-client-js/issues/707
5510
5510
  */
5511
- export class Prisma__AdminClient<T> implements PrismaPromise<T> {
5511
+ export class Prisma__TeacherClient<T> implements PrismaPromise<T> {
5512
5512
  [prisma]: true;
5513
5513
  private readonly _dmmf;
5514
5514
  private readonly _fetcher;
@@ -5555,30 +5555,30 @@ export namespace Prisma {
5555
5555
  // Custom InputTypes
5556
5556
 
5557
5557
  /**
5558
- * Admin base type for findUnique actions
5558
+ * Teacher base type for findUnique actions
5559
5559
  */
5560
- export type AdminFindUniqueArgsBase = {
5560
+ export type TeacherFindUniqueArgsBase = {
5561
5561
  /**
5562
- * Select specific fields to fetch from the Admin
5562
+ * Select specific fields to fetch from the Teacher
5563
5563
  *
5564
5564
  **/
5565
- select?: AdminSelect | null
5565
+ select?: TeacherSelect | null
5566
5566
  /**
5567
5567
  * Choose, which related nodes to fetch as well.
5568
5568
  *
5569
5569
  **/
5570
- include?: AdminInclude | null
5570
+ include?: TeacherInclude | null
5571
5571
  /**
5572
- * Filter, which Admin to fetch.
5572
+ * Filter, which Teacher to fetch.
5573
5573
  *
5574
5574
  **/
5575
- where: AdminWhereUniqueInput
5575
+ where: TeacherWhereUniqueInput
5576
5576
  }
5577
5577
 
5578
5578
  /**
5579
- * Admin: findUnique
5579
+ * Teacher: findUnique
5580
5580
  */
5581
- export interface AdminFindUniqueArgs extends AdminFindUniqueArgsBase {
5581
+ export interface TeacherFindUniqueArgs extends TeacherFindUniqueArgsBase {
5582
5582
  /**
5583
5583
  * Throw an Error if query returns no results
5584
5584
  * @deprecated since 4.0.0: use `findUniqueOrThrow` method instead
@@ -5588,65 +5588,65 @@ export namespace Prisma {
5588
5588
 
5589
5589
 
5590
5590
  /**
5591
- * Admin base type for findFirst actions
5591
+ * Teacher base type for findFirst actions
5592
5592
  */
5593
- export type AdminFindFirstArgsBase = {
5593
+ export type TeacherFindFirstArgsBase = {
5594
5594
  /**
5595
- * Select specific fields to fetch from the Admin
5595
+ * Select specific fields to fetch from the Teacher
5596
5596
  *
5597
5597
  **/
5598
- select?: AdminSelect | null
5598
+ select?: TeacherSelect | null
5599
5599
  /**
5600
5600
  * Choose, which related nodes to fetch as well.
5601
5601
  *
5602
5602
  **/
5603
- include?: AdminInclude | null
5603
+ include?: TeacherInclude | null
5604
5604
  /**
5605
- * Filter, which Admin to fetch.
5605
+ * Filter, which Teacher to fetch.
5606
5606
  *
5607
5607
  **/
5608
- where?: AdminWhereInput
5608
+ where?: TeacherWhereInput
5609
5609
  /**
5610
5610
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
5611
5611
  *
5612
- * Determine the order of Admins to fetch.
5612
+ * Determine the order of Teachers to fetch.
5613
5613
  *
5614
5614
  **/
5615
- orderBy?: Enumerable<AdminOrderByWithRelationInput>
5615
+ orderBy?: Enumerable<TeacherOrderByWithRelationInput>
5616
5616
  /**
5617
5617
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
5618
5618
  *
5619
- * Sets the position for searching for Admins.
5619
+ * Sets the position for searching for Teachers.
5620
5620
  *
5621
5621
  **/
5622
- cursor?: AdminWhereUniqueInput
5622
+ cursor?: TeacherWhereUniqueInput
5623
5623
  /**
5624
5624
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
5625
5625
  *
5626
- * Take `±n` Admins from the position of the cursor.
5626
+ * Take `±n` Teachers from the position of the cursor.
5627
5627
  *
5628
5628
  **/
5629
5629
  take?: number
5630
5630
  /**
5631
5631
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
5632
5632
  *
5633
- * Skip the first `n` Admins.
5633
+ * Skip the first `n` Teachers.
5634
5634
  *
5635
5635
  **/
5636
5636
  skip?: number
5637
5637
  /**
5638
5638
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
5639
5639
  *
5640
- * Filter by unique combinations of Admins.
5640
+ * Filter by unique combinations of Teachers.
5641
5641
  *
5642
5642
  **/
5643
- distinct?: Enumerable<AdminScalarFieldEnum>
5643
+ distinct?: Enumerable<TeacherScalarFieldEnum>
5644
5644
  }
5645
5645
 
5646
5646
  /**
5647
- * Admin: findFirst
5647
+ * Teacher: findFirst
5648
5648
  */
5649
- export interface AdminFindFirstArgs extends AdminFindFirstArgsBase {
5649
+ export interface TeacherFindFirstArgs extends TeacherFindFirstArgsBase {
5650
5650
  /**
5651
5651
  * Throw an Error if query returns no results
5652
5652
  * @deprecated since 4.0.0: use `findFirstOrThrow` method instead
@@ -5656,214 +5656,214 @@ export namespace Prisma {
5656
5656
 
5657
5657
 
5658
5658
  /**
5659
- * Admin findMany
5659
+ * Teacher findMany
5660
5660
  */
5661
- export type AdminFindManyArgs = {
5661
+ export type TeacherFindManyArgs = {
5662
5662
  /**
5663
- * Select specific fields to fetch from the Admin
5663
+ * Select specific fields to fetch from the Teacher
5664
5664
  *
5665
5665
  **/
5666
- select?: AdminSelect | null
5666
+ select?: TeacherSelect | null
5667
5667
  /**
5668
5668
  * Choose, which related nodes to fetch as well.
5669
5669
  *
5670
5670
  **/
5671
- include?: AdminInclude | null
5671
+ include?: TeacherInclude | null
5672
5672
  /**
5673
- * Filter, which Admins to fetch.
5673
+ * Filter, which Teachers to fetch.
5674
5674
  *
5675
5675
  **/
5676
- where?: AdminWhereInput
5676
+ where?: TeacherWhereInput
5677
5677
  /**
5678
5678
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
5679
5679
  *
5680
- * Determine the order of Admins to fetch.
5680
+ * Determine the order of Teachers to fetch.
5681
5681
  *
5682
5682
  **/
5683
- orderBy?: Enumerable<AdminOrderByWithRelationInput>
5683
+ orderBy?: Enumerable<TeacherOrderByWithRelationInput>
5684
5684
  /**
5685
5685
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
5686
5686
  *
5687
- * Sets the position for listing Admins.
5687
+ * Sets the position for listing Teachers.
5688
5688
  *
5689
5689
  **/
5690
- cursor?: AdminWhereUniqueInput
5690
+ cursor?: TeacherWhereUniqueInput
5691
5691
  /**
5692
5692
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
5693
5693
  *
5694
- * Take `±n` Admins from the position of the cursor.
5694
+ * Take `±n` Teachers from the position of the cursor.
5695
5695
  *
5696
5696
  **/
5697
5697
  take?: number
5698
5698
  /**
5699
5699
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
5700
5700
  *
5701
- * Skip the first `n` Admins.
5701
+ * Skip the first `n` Teachers.
5702
5702
  *
5703
5703
  **/
5704
5704
  skip?: number
5705
- distinct?: Enumerable<AdminScalarFieldEnum>
5705
+ distinct?: Enumerable<TeacherScalarFieldEnum>
5706
5706
  }
5707
5707
 
5708
5708
 
5709
5709
  /**
5710
- * Admin create
5710
+ * Teacher create
5711
5711
  */
5712
- export type AdminCreateArgs = {
5712
+ export type TeacherCreateArgs = {
5713
5713
  /**
5714
- * Select specific fields to fetch from the Admin
5714
+ * Select specific fields to fetch from the Teacher
5715
5715
  *
5716
5716
  **/
5717
- select?: AdminSelect | null
5717
+ select?: TeacherSelect | null
5718
5718
  /**
5719
5719
  * Choose, which related nodes to fetch as well.
5720
5720
  *
5721
5721
  **/
5722
- include?: AdminInclude | null
5722
+ include?: TeacherInclude | null
5723
5723
  /**
5724
- * The data needed to create a Admin.
5724
+ * The data needed to create a Teacher.
5725
5725
  *
5726
5726
  **/
5727
- data: XOR<AdminCreateInput, AdminUncheckedCreateInput>
5727
+ data: XOR<TeacherCreateInput, TeacherUncheckedCreateInput>
5728
5728
  }
5729
5729
 
5730
5730
 
5731
5731
  /**
5732
- * Admin update
5732
+ * Teacher update
5733
5733
  */
5734
- export type AdminUpdateArgs = {
5734
+ export type TeacherUpdateArgs = {
5735
5735
  /**
5736
- * Select specific fields to fetch from the Admin
5736
+ * Select specific fields to fetch from the Teacher
5737
5737
  *
5738
5738
  **/
5739
- select?: AdminSelect | null
5739
+ select?: TeacherSelect | null
5740
5740
  /**
5741
5741
  * Choose, which related nodes to fetch as well.
5742
5742
  *
5743
5743
  **/
5744
- include?: AdminInclude | null
5744
+ include?: TeacherInclude | null
5745
5745
  /**
5746
- * The data needed to update a Admin.
5746
+ * The data needed to update a Teacher.
5747
5747
  *
5748
5748
  **/
5749
- data: XOR<AdminUpdateInput, AdminUncheckedUpdateInput>
5749
+ data: XOR<TeacherUpdateInput, TeacherUncheckedUpdateInput>
5750
5750
  /**
5751
- * Choose, which Admin to update.
5751
+ * Choose, which Teacher to update.
5752
5752
  *
5753
5753
  **/
5754
- where: AdminWhereUniqueInput
5754
+ where: TeacherWhereUniqueInput
5755
5755
  }
5756
5756
 
5757
5757
 
5758
5758
  /**
5759
- * Admin updateMany
5759
+ * Teacher updateMany
5760
5760
  */
5761
- export type AdminUpdateManyArgs = {
5761
+ export type TeacherUpdateManyArgs = {
5762
5762
  /**
5763
- * The data used to update Admins.
5763
+ * The data used to update Teachers.
5764
5764
  *
5765
5765
  **/
5766
- data: XOR<AdminUpdateManyMutationInput, AdminUncheckedUpdateManyInput>
5766
+ data: XOR<TeacherUpdateManyMutationInput, TeacherUncheckedUpdateManyInput>
5767
5767
  /**
5768
- * Filter which Admins to update
5768
+ * Filter which Teachers to update
5769
5769
  *
5770
5770
  **/
5771
- where?: AdminWhereInput
5771
+ where?: TeacherWhereInput
5772
5772
  }
5773
5773
 
5774
5774
 
5775
5775
  /**
5776
- * Admin upsert
5776
+ * Teacher upsert
5777
5777
  */
5778
- export type AdminUpsertArgs = {
5778
+ export type TeacherUpsertArgs = {
5779
5779
  /**
5780
- * Select specific fields to fetch from the Admin
5780
+ * Select specific fields to fetch from the Teacher
5781
5781
  *
5782
5782
  **/
5783
- select?: AdminSelect | null
5783
+ select?: TeacherSelect | null
5784
5784
  /**
5785
5785
  * Choose, which related nodes to fetch as well.
5786
5786
  *
5787
5787
  **/
5788
- include?: AdminInclude | null
5788
+ include?: TeacherInclude | null
5789
5789
  /**
5790
- * The filter to search for the Admin to update in case it exists.
5790
+ * The filter to search for the Teacher to update in case it exists.
5791
5791
  *
5792
5792
  **/
5793
- where: AdminWhereUniqueInput
5793
+ where: TeacherWhereUniqueInput
5794
5794
  /**
5795
- * In case the Admin found by the `where` argument doesn't exist, create a new Admin with this data.
5795
+ * In case the Teacher found by the `where` argument doesn't exist, create a new Teacher with this data.
5796
5796
  *
5797
5797
  **/
5798
- create: XOR<AdminCreateInput, AdminUncheckedCreateInput>
5798
+ create: XOR<TeacherCreateInput, TeacherUncheckedCreateInput>
5799
5799
  /**
5800
- * In case the Admin was found with the provided `where` argument, update it with this data.
5800
+ * In case the Teacher was found with the provided `where` argument, update it with this data.
5801
5801
  *
5802
5802
  **/
5803
- update: XOR<AdminUpdateInput, AdminUncheckedUpdateInput>
5803
+ update: XOR<TeacherUpdateInput, TeacherUncheckedUpdateInput>
5804
5804
  }
5805
5805
 
5806
5806
 
5807
5807
  /**
5808
- * Admin delete
5808
+ * Teacher delete
5809
5809
  */
5810
- export type AdminDeleteArgs = {
5810
+ export type TeacherDeleteArgs = {
5811
5811
  /**
5812
- * Select specific fields to fetch from the Admin
5812
+ * Select specific fields to fetch from the Teacher
5813
5813
  *
5814
5814
  **/
5815
- select?: AdminSelect | null
5815
+ select?: TeacherSelect | null
5816
5816
  /**
5817
5817
  * Choose, which related nodes to fetch as well.
5818
5818
  *
5819
5819
  **/
5820
- include?: AdminInclude | null
5820
+ include?: TeacherInclude | null
5821
5821
  /**
5822
- * Filter which Admin to delete.
5822
+ * Filter which Teacher to delete.
5823
5823
  *
5824
5824
  **/
5825
- where: AdminWhereUniqueInput
5825
+ where: TeacherWhereUniqueInput
5826
5826
  }
5827
5827
 
5828
5828
 
5829
5829
  /**
5830
- * Admin deleteMany
5830
+ * Teacher deleteMany
5831
5831
  */
5832
- export type AdminDeleteManyArgs = {
5832
+ export type TeacherDeleteManyArgs = {
5833
5833
  /**
5834
- * Filter which Admins to delete
5834
+ * Filter which Teachers to delete
5835
5835
  *
5836
5836
  **/
5837
- where?: AdminWhereInput
5837
+ where?: TeacherWhereInput
5838
5838
  }
5839
5839
 
5840
5840
 
5841
5841
  /**
5842
- * Admin: findUniqueOrThrow
5842
+ * Teacher: findUniqueOrThrow
5843
5843
  */
5844
- export type AdminFindUniqueOrThrowArgs = AdminFindUniqueArgsBase
5844
+ export type TeacherFindUniqueOrThrowArgs = TeacherFindUniqueArgsBase
5845
5845
 
5846
5846
 
5847
5847
  /**
5848
- * Admin: findFirstOrThrow
5848
+ * Teacher: findFirstOrThrow
5849
5849
  */
5850
- export type AdminFindFirstOrThrowArgs = AdminFindFirstArgsBase
5850
+ export type TeacherFindFirstOrThrowArgs = TeacherFindFirstArgsBase
5851
5851
 
5852
5852
 
5853
5853
  /**
5854
- * Admin without action
5854
+ * Teacher without action
5855
5855
  */
5856
- export type AdminArgs = {
5856
+ export type TeacherArgs = {
5857
5857
  /**
5858
- * Select specific fields to fetch from the Admin
5858
+ * Select specific fields to fetch from the Teacher
5859
5859
  *
5860
5860
  **/
5861
- select?: AdminSelect | null
5861
+ select?: TeacherSelect | null
5862
5862
  /**
5863
5863
  * Choose, which related nodes to fetch as well.
5864
5864
  *
5865
5865
  **/
5866
- include?: AdminInclude | null
5866
+ include?: TeacherInclude | null
5867
5867
  }
5868
5868
 
5869
5869
 
@@ -8655,16 +8655,6 @@ export namespace Prisma {
8655
8655
  // Based on
8656
8656
  // https://github.com/microsoft/TypeScript/issues/3192#issuecomment-261720275
8657
8657
 
8658
- export const AdminScalarFieldEnum: {
8659
- id: 'id',
8660
- email: 'email',
8661
- name: 'name',
8662
- password: 'password'
8663
- };
8664
-
8665
- export type AdminScalarFieldEnum = (typeof AdminScalarFieldEnum)[keyof typeof AdminScalarFieldEnum]
8666
-
8667
-
8668
8658
  export const AnswerScalarFieldEnum: {
8669
8659
  id: 'id',
8670
8660
  userId: 'userId',
@@ -8696,7 +8686,7 @@ export namespace Prisma {
8696
8686
 
8697
8687
  export const PackScalarFieldEnum: {
8698
8688
  id: 'id',
8699
- adminId: 'adminId',
8689
+ teacherId: 'teacherId',
8700
8690
  name: 'name',
8701
8691
  currentPrice: 'currentPrice'
8702
8692
  };
@@ -8722,6 +8712,16 @@ export namespace Prisma {
8722
8712
  export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
8723
8713
 
8724
8714
 
8715
+ export const TeacherScalarFieldEnum: {
8716
+ id: 'id',
8717
+ email: 'email',
8718
+ name: 'name',
8719
+ password: 'password'
8720
+ };
8721
+
8722
+ export type TeacherScalarFieldEnum = (typeof TeacherScalarFieldEnum)[keyof typeof TeacherScalarFieldEnum]
8723
+
8724
+
8725
8725
  export const TransactionIsolationLevel: {
8726
8726
  Serializable: 'Serializable'
8727
8727
  };
@@ -8857,8 +8857,8 @@ export namespace Prisma {
8857
8857
  OR?: Enumerable<PackWhereInput>
8858
8858
  NOT?: Enumerable<PackWhereInput>
8859
8859
  id?: IntFilter | number
8860
- admin?: XOR<AdminRelationFilter, AdminWhereInput>
8861
- adminId?: IntFilter | number
8860
+ teacher?: XOR<TeacherRelationFilter, TeacherWhereInput>
8861
+ teacherId?: IntFilter | number
8862
8862
  name?: StringFilter | string
8863
8863
  cards?: CardListRelationFilter
8864
8864
  users?: UserListRelationFilter
@@ -8868,8 +8868,8 @@ export namespace Prisma {
8868
8868
 
8869
8869
  export type PackOrderByWithRelationInput = {
8870
8870
  id?: SortOrder
8871
- admin?: AdminOrderByWithRelationInput
8872
- adminId?: SortOrder
8871
+ teacher?: TeacherOrderByWithRelationInput
8872
+ teacherId?: SortOrder
8873
8873
  name?: SortOrder
8874
8874
  cards?: CardOrderByRelationAggregateInput
8875
8875
  users?: UserOrderByRelationAggregateInput
@@ -8883,7 +8883,7 @@ export namespace Prisma {
8883
8883
 
8884
8884
  export type PackOrderByWithAggregationInput = {
8885
8885
  id?: SortOrder
8886
- adminId?: SortOrder
8886
+ teacherId?: SortOrder
8887
8887
  name?: SortOrder
8888
8888
  currentPrice?: SortOrder
8889
8889
  _count?: PackCountOrderByAggregateInput
@@ -8898,7 +8898,7 @@ export namespace Prisma {
8898
8898
  OR?: Enumerable<PackScalarWhereWithAggregatesInput>
8899
8899
  NOT?: Enumerable<PackScalarWhereWithAggregatesInput>
8900
8900
  id?: IntWithAggregatesFilter | number
8901
- adminId?: IntWithAggregatesFilter | number
8901
+ teacherId?: IntWithAggregatesFilter | number
8902
8902
  name?: StringWithAggregatesFilter | string
8903
8903
  currentPrice?: DecimalWithAggregatesFilter | Decimal | DecimalJsLike | number | string
8904
8904
  }
@@ -8953,10 +8953,10 @@ export namespace Prisma {
8953
8953
  name?: StringWithAggregatesFilter | string
8954
8954
  }
8955
8955
 
8956
- export type AdminWhereInput = {
8957
- AND?: Enumerable<AdminWhereInput>
8958
- OR?: Enumerable<AdminWhereInput>
8959
- NOT?: Enumerable<AdminWhereInput>
8956
+ export type TeacherWhereInput = {
8957
+ AND?: Enumerable<TeacherWhereInput>
8958
+ OR?: Enumerable<TeacherWhereInput>
8959
+ NOT?: Enumerable<TeacherWhereInput>
8960
8960
  id?: IntFilter | number
8961
8961
  email?: StringFilter | string
8962
8962
  name?: StringFilter | string
@@ -8964,7 +8964,7 @@ export namespace Prisma {
8964
8964
  packs?: PackListRelationFilter
8965
8965
  }
8966
8966
 
8967
- export type AdminOrderByWithRelationInput = {
8967
+ export type TeacherOrderByWithRelationInput = {
8968
8968
  id?: SortOrder
8969
8969
  email?: SortOrder
8970
8970
  name?: SortOrder
@@ -8972,27 +8972,27 @@ export namespace Prisma {
8972
8972
  packs?: PackOrderByRelationAggregateInput
8973
8973
  }
8974
8974
 
8975
- export type AdminWhereUniqueInput = {
8975
+ export type TeacherWhereUniqueInput = {
8976
8976
  id?: number
8977
8977
  email?: string
8978
8978
  }
8979
8979
 
8980
- export type AdminOrderByWithAggregationInput = {
8980
+ export type TeacherOrderByWithAggregationInput = {
8981
8981
  id?: SortOrder
8982
8982
  email?: SortOrder
8983
8983
  name?: SortOrder
8984
8984
  password?: SortOrder
8985
- _count?: AdminCountOrderByAggregateInput
8986
- _avg?: AdminAvgOrderByAggregateInput
8987
- _max?: AdminMaxOrderByAggregateInput
8988
- _min?: AdminMinOrderByAggregateInput
8989
- _sum?: AdminSumOrderByAggregateInput
8985
+ _count?: TeacherCountOrderByAggregateInput
8986
+ _avg?: TeacherAvgOrderByAggregateInput
8987
+ _max?: TeacherMaxOrderByAggregateInput
8988
+ _min?: TeacherMinOrderByAggregateInput
8989
+ _sum?: TeacherSumOrderByAggregateInput
8990
8990
  }
8991
8991
 
8992
- export type AdminScalarWhereWithAggregatesInput = {
8993
- AND?: Enumerable<AdminScalarWhereWithAggregatesInput>
8994
- OR?: Enumerable<AdminScalarWhereWithAggregatesInput>
8995
- NOT?: Enumerable<AdminScalarWhereWithAggregatesInput>
8992
+ export type TeacherScalarWhereWithAggregatesInput = {
8993
+ AND?: Enumerable<TeacherScalarWhereWithAggregatesInput>
8994
+ OR?: Enumerable<TeacherScalarWhereWithAggregatesInput>
8995
+ NOT?: Enumerable<TeacherScalarWhereWithAggregatesInput>
8996
8996
  id?: IntWithAggregatesFilter | number
8997
8997
  email?: StringWithAggregatesFilter | string
8998
8998
  name?: StringWithAggregatesFilter | string
@@ -9222,7 +9222,7 @@ export namespace Prisma {
9222
9222
  }
9223
9223
 
9224
9224
  export type PackCreateInput = {
9225
- admin: AdminCreateNestedOneWithoutPacksInput
9225
+ teacher: TeacherCreateNestedOneWithoutPacksInput
9226
9226
  name: string
9227
9227
  cards?: CardCreateNestedManyWithoutPackInput
9228
9228
  users?: UserCreateNestedManyWithoutPacksInput
@@ -9232,7 +9232,7 @@ export namespace Prisma {
9232
9232
 
9233
9233
  export type PackUncheckedCreateInput = {
9234
9234
  id?: number
9235
- adminId: number
9235
+ teacherId: number
9236
9236
  name: string
9237
9237
  cards?: CardUncheckedCreateNestedManyWithoutPackInput
9238
9238
  users?: UserUncheckedCreateNestedManyWithoutPacksInput
@@ -9241,7 +9241,7 @@ export namespace Prisma {
9241
9241
  }
9242
9242
 
9243
9243
  export type PackUpdateInput = {
9244
- admin?: AdminUpdateOneRequiredWithoutPacksNestedInput
9244
+ teacher?: TeacherUpdateOneRequiredWithoutPacksNestedInput
9245
9245
  name?: StringFieldUpdateOperationsInput | string
9246
9246
  cards?: CardUpdateManyWithoutPackNestedInput
9247
9247
  users?: UserUpdateManyWithoutPacksNestedInput
@@ -9251,7 +9251,7 @@ export namespace Prisma {
9251
9251
 
9252
9252
  export type PackUncheckedUpdateInput = {
9253
9253
  id?: IntFieldUpdateOperationsInput | number
9254
- adminId?: IntFieldUpdateOperationsInput | number
9254
+ teacherId?: IntFieldUpdateOperationsInput | number
9255
9255
  name?: StringFieldUpdateOperationsInput | string
9256
9256
  cards?: CardUncheckedUpdateManyWithoutPackNestedInput
9257
9257
  users?: UserUncheckedUpdateManyWithoutPacksNestedInput
@@ -9266,7 +9266,7 @@ export namespace Prisma {
9266
9266
 
9267
9267
  export type PackUncheckedUpdateManyInput = {
9268
9268
  id?: IntFieldUpdateOperationsInput | number
9269
- adminId?: IntFieldUpdateOperationsInput | number
9269
+ teacherId?: IntFieldUpdateOperationsInput | number
9270
9270
  name?: StringFieldUpdateOperationsInput | string
9271
9271
  currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
9272
9272
  }
@@ -9324,43 +9324,43 @@ export namespace Prisma {
9324
9324
  name?: StringFieldUpdateOperationsInput | string
9325
9325
  }
9326
9326
 
9327
- export type AdminCreateInput = {
9327
+ export type TeacherCreateInput = {
9328
9328
  email: string
9329
9329
  name: string
9330
9330
  password: string
9331
- packs?: PackCreateNestedManyWithoutAdminInput
9331
+ packs?: PackCreateNestedManyWithoutTeacherInput
9332
9332
  }
9333
9333
 
9334
- export type AdminUncheckedCreateInput = {
9334
+ export type TeacherUncheckedCreateInput = {
9335
9335
  id?: number
9336
9336
  email: string
9337
9337
  name: string
9338
9338
  password: string
9339
- packs?: PackUncheckedCreateNestedManyWithoutAdminInput
9339
+ packs?: PackUncheckedCreateNestedManyWithoutTeacherInput
9340
9340
  }
9341
9341
 
9342
- export type AdminUpdateInput = {
9342
+ export type TeacherUpdateInput = {
9343
9343
  email?: StringFieldUpdateOperationsInput | string
9344
9344
  name?: StringFieldUpdateOperationsInput | string
9345
9345
  password?: StringFieldUpdateOperationsInput | string
9346
- packs?: PackUpdateManyWithoutAdminNestedInput
9346
+ packs?: PackUpdateManyWithoutTeacherNestedInput
9347
9347
  }
9348
9348
 
9349
- export type AdminUncheckedUpdateInput = {
9349
+ export type TeacherUncheckedUpdateInput = {
9350
9350
  id?: IntFieldUpdateOperationsInput | number
9351
9351
  email?: StringFieldUpdateOperationsInput | string
9352
9352
  name?: StringFieldUpdateOperationsInput | string
9353
9353
  password?: StringFieldUpdateOperationsInput | string
9354
- packs?: PackUncheckedUpdateManyWithoutAdminNestedInput
9354
+ packs?: PackUncheckedUpdateManyWithoutTeacherNestedInput
9355
9355
  }
9356
9356
 
9357
- export type AdminUpdateManyMutationInput = {
9357
+ export type TeacherUpdateManyMutationInput = {
9358
9358
  email?: StringFieldUpdateOperationsInput | string
9359
9359
  name?: StringFieldUpdateOperationsInput | string
9360
9360
  password?: StringFieldUpdateOperationsInput | string
9361
9361
  }
9362
9362
 
9363
- export type AdminUncheckedUpdateManyInput = {
9363
+ export type TeacherUncheckedUpdateManyInput = {
9364
9364
  id?: IntFieldUpdateOperationsInput | number
9365
9365
  email?: StringFieldUpdateOperationsInput | string
9366
9366
  name?: StringFieldUpdateOperationsInput | string
@@ -9697,9 +9697,9 @@ export namespace Prisma {
9697
9697
  _max?: NestedBoolFilter
9698
9698
  }
9699
9699
 
9700
- export type AdminRelationFilter = {
9701
- is?: AdminWhereInput
9702
- isNot?: AdminWhereInput
9700
+ export type TeacherRelationFilter = {
9701
+ is?: TeacherWhereInput
9702
+ isNot?: TeacherWhereInput
9703
9703
  }
9704
9704
 
9705
9705
  export type CardListRelationFilter = {
@@ -9745,34 +9745,34 @@ export namespace Prisma {
9745
9745
 
9746
9746
  export type PackCountOrderByAggregateInput = {
9747
9747
  id?: SortOrder
9748
- adminId?: SortOrder
9748
+ teacherId?: SortOrder
9749
9749
  name?: SortOrder
9750
9750
  currentPrice?: SortOrder
9751
9751
  }
9752
9752
 
9753
9753
  export type PackAvgOrderByAggregateInput = {
9754
9754
  id?: SortOrder
9755
- adminId?: SortOrder
9755
+ teacherId?: SortOrder
9756
9756
  currentPrice?: SortOrder
9757
9757
  }
9758
9758
 
9759
9759
  export type PackMaxOrderByAggregateInput = {
9760
9760
  id?: SortOrder
9761
- adminId?: SortOrder
9761
+ teacherId?: SortOrder
9762
9762
  name?: SortOrder
9763
9763
  currentPrice?: SortOrder
9764
9764
  }
9765
9765
 
9766
9766
  export type PackMinOrderByAggregateInput = {
9767
9767
  id?: SortOrder
9768
- adminId?: SortOrder
9768
+ teacherId?: SortOrder
9769
9769
  name?: SortOrder
9770
9770
  currentPrice?: SortOrder
9771
9771
  }
9772
9772
 
9773
9773
  export type PackSumOrderByAggregateInput = {
9774
9774
  id?: SortOrder
9775
- adminId?: SortOrder
9775
+ teacherId?: SortOrder
9776
9776
  currentPrice?: SortOrder
9777
9777
  }
9778
9778
 
@@ -9843,32 +9843,32 @@ export namespace Prisma {
9843
9843
  id?: SortOrder
9844
9844
  }
9845
9845
 
9846
- export type AdminCountOrderByAggregateInput = {
9846
+ export type TeacherCountOrderByAggregateInput = {
9847
9847
  id?: SortOrder
9848
9848
  email?: SortOrder
9849
9849
  name?: SortOrder
9850
9850
  password?: SortOrder
9851
9851
  }
9852
9852
 
9853
- export type AdminAvgOrderByAggregateInput = {
9853
+ export type TeacherAvgOrderByAggregateInput = {
9854
9854
  id?: SortOrder
9855
9855
  }
9856
9856
 
9857
- export type AdminMaxOrderByAggregateInput = {
9857
+ export type TeacherMaxOrderByAggregateInput = {
9858
9858
  id?: SortOrder
9859
9859
  email?: SortOrder
9860
9860
  name?: SortOrder
9861
9861
  password?: SortOrder
9862
9862
  }
9863
9863
 
9864
- export type AdminMinOrderByAggregateInput = {
9864
+ export type TeacherMinOrderByAggregateInput = {
9865
9865
  id?: SortOrder
9866
9866
  email?: SortOrder
9867
9867
  name?: SortOrder
9868
9868
  password?: SortOrder
9869
9869
  }
9870
9870
 
9871
- export type AdminSumOrderByAggregateInput = {
9871
+ export type TeacherSumOrderByAggregateInput = {
9872
9872
  id?: SortOrder
9873
9873
  }
9874
9874
 
@@ -10072,10 +10072,10 @@ export namespace Prisma {
10072
10072
  set?: boolean
10073
10073
  }
10074
10074
 
10075
- export type AdminCreateNestedOneWithoutPacksInput = {
10076
- create?: XOR<AdminCreateWithoutPacksInput, AdminUncheckedCreateWithoutPacksInput>
10077
- connectOrCreate?: AdminCreateOrConnectWithoutPacksInput
10078
- connect?: AdminWhereUniqueInput
10075
+ export type TeacherCreateNestedOneWithoutPacksInput = {
10076
+ create?: XOR<TeacherCreateWithoutPacksInput, TeacherUncheckedCreateWithoutPacksInput>
10077
+ connectOrCreate?: TeacherCreateOrConnectWithoutPacksInput
10078
+ connect?: TeacherWhereUniqueInput
10079
10079
  }
10080
10080
 
10081
10081
  export type CardCreateNestedManyWithoutPackInput = {
@@ -10114,12 +10114,12 @@ export namespace Prisma {
10114
10114
  connect?: Enumerable<PurchaseWhereUniqueInput>
10115
10115
  }
10116
10116
 
10117
- export type AdminUpdateOneRequiredWithoutPacksNestedInput = {
10118
- create?: XOR<AdminCreateWithoutPacksInput, AdminUncheckedCreateWithoutPacksInput>
10119
- connectOrCreate?: AdminCreateOrConnectWithoutPacksInput
10120
- upsert?: AdminUpsertWithoutPacksInput
10121
- connect?: AdminWhereUniqueInput
10122
- update?: XOR<AdminUpdateWithoutPacksInput, AdminUncheckedUpdateWithoutPacksInput>
10117
+ export type TeacherUpdateOneRequiredWithoutPacksNestedInput = {
10118
+ create?: XOR<TeacherCreateWithoutPacksInput, TeacherUncheckedCreateWithoutPacksInput>
10119
+ connectOrCreate?: TeacherCreateOrConnectWithoutPacksInput
10120
+ upsert?: TeacherUpsertWithoutPacksInput
10121
+ connect?: TeacherWhereUniqueInput
10122
+ update?: XOR<TeacherUpdateWithoutPacksInput, TeacherUncheckedUpdateWithoutPacksInput>
10123
10123
  }
10124
10124
 
10125
10125
  export type CardUpdateManyWithoutPackNestedInput = {
@@ -10392,41 +10392,41 @@ export namespace Prisma {
10392
10392
  deleteMany?: Enumerable<AnswerScalarWhereInput>
10393
10393
  }
10394
10394
 
10395
- export type PackCreateNestedManyWithoutAdminInput = {
10396
- create?: XOR<Enumerable<PackCreateWithoutAdminInput>, Enumerable<PackUncheckedCreateWithoutAdminInput>>
10397
- connectOrCreate?: Enumerable<PackCreateOrConnectWithoutAdminInput>
10395
+ export type PackCreateNestedManyWithoutTeacherInput = {
10396
+ create?: XOR<Enumerable<PackCreateWithoutTeacherInput>, Enumerable<PackUncheckedCreateWithoutTeacherInput>>
10397
+ connectOrCreate?: Enumerable<PackCreateOrConnectWithoutTeacherInput>
10398
10398
  connect?: Enumerable<PackWhereUniqueInput>
10399
10399
  }
10400
10400
 
10401
- export type PackUncheckedCreateNestedManyWithoutAdminInput = {
10402
- create?: XOR<Enumerable<PackCreateWithoutAdminInput>, Enumerable<PackUncheckedCreateWithoutAdminInput>>
10403
- connectOrCreate?: Enumerable<PackCreateOrConnectWithoutAdminInput>
10401
+ export type PackUncheckedCreateNestedManyWithoutTeacherInput = {
10402
+ create?: XOR<Enumerable<PackCreateWithoutTeacherInput>, Enumerable<PackUncheckedCreateWithoutTeacherInput>>
10403
+ connectOrCreate?: Enumerable<PackCreateOrConnectWithoutTeacherInput>
10404
10404
  connect?: Enumerable<PackWhereUniqueInput>
10405
10405
  }
10406
10406
 
10407
- export type PackUpdateManyWithoutAdminNestedInput = {
10408
- create?: XOR<Enumerable<PackCreateWithoutAdminInput>, Enumerable<PackUncheckedCreateWithoutAdminInput>>
10409
- connectOrCreate?: Enumerable<PackCreateOrConnectWithoutAdminInput>
10410
- upsert?: Enumerable<PackUpsertWithWhereUniqueWithoutAdminInput>
10407
+ export type PackUpdateManyWithoutTeacherNestedInput = {
10408
+ create?: XOR<Enumerable<PackCreateWithoutTeacherInput>, Enumerable<PackUncheckedCreateWithoutTeacherInput>>
10409
+ connectOrCreate?: Enumerable<PackCreateOrConnectWithoutTeacherInput>
10410
+ upsert?: Enumerable<PackUpsertWithWhereUniqueWithoutTeacherInput>
10411
10411
  set?: Enumerable<PackWhereUniqueInput>
10412
10412
  disconnect?: Enumerable<PackWhereUniqueInput>
10413
10413
  delete?: Enumerable<PackWhereUniqueInput>
10414
10414
  connect?: Enumerable<PackWhereUniqueInput>
10415
- update?: Enumerable<PackUpdateWithWhereUniqueWithoutAdminInput>
10416
- updateMany?: Enumerable<PackUpdateManyWithWhereWithoutAdminInput>
10415
+ update?: Enumerable<PackUpdateWithWhereUniqueWithoutTeacherInput>
10416
+ updateMany?: Enumerable<PackUpdateManyWithWhereWithoutTeacherInput>
10417
10417
  deleteMany?: Enumerable<PackScalarWhereInput>
10418
10418
  }
10419
10419
 
10420
- export type PackUncheckedUpdateManyWithoutAdminNestedInput = {
10421
- create?: XOR<Enumerable<PackCreateWithoutAdminInput>, Enumerable<PackUncheckedCreateWithoutAdminInput>>
10422
- connectOrCreate?: Enumerable<PackCreateOrConnectWithoutAdminInput>
10423
- upsert?: Enumerable<PackUpsertWithWhereUniqueWithoutAdminInput>
10420
+ export type PackUncheckedUpdateManyWithoutTeacherNestedInput = {
10421
+ create?: XOR<Enumerable<PackCreateWithoutTeacherInput>, Enumerable<PackUncheckedCreateWithoutTeacherInput>>
10422
+ connectOrCreate?: Enumerable<PackCreateOrConnectWithoutTeacherInput>
10423
+ upsert?: Enumerable<PackUpsertWithWhereUniqueWithoutTeacherInput>
10424
10424
  set?: Enumerable<PackWhereUniqueInput>
10425
10425
  disconnect?: Enumerable<PackWhereUniqueInput>
10426
10426
  delete?: Enumerable<PackWhereUniqueInput>
10427
10427
  connect?: Enumerable<PackWhereUniqueInput>
10428
- update?: Enumerable<PackUpdateWithWhereUniqueWithoutAdminInput>
10429
- updateMany?: Enumerable<PackUpdateManyWithWhereWithoutAdminInput>
10428
+ update?: Enumerable<PackUpdateWithWhereUniqueWithoutTeacherInput>
10429
+ updateMany?: Enumerable<PackUpdateManyWithWhereWithoutTeacherInput>
10430
10430
  deleteMany?: Enumerable<PackScalarWhereInput>
10431
10431
  }
10432
10432
 
@@ -10659,7 +10659,7 @@ export namespace Prisma {
10659
10659
  }
10660
10660
 
10661
10661
  export type PackCreateWithoutCardsInput = {
10662
- admin: AdminCreateNestedOneWithoutPacksInput
10662
+ teacher: TeacherCreateNestedOneWithoutPacksInput
10663
10663
  name: string
10664
10664
  users?: UserCreateNestedManyWithoutPacksInput
10665
10665
  purchase?: PurchaseCreateNestedManyWithoutPackInput
@@ -10668,7 +10668,7 @@ export namespace Prisma {
10668
10668
 
10669
10669
  export type PackUncheckedCreateWithoutCardsInput = {
10670
10670
  id?: number
10671
- adminId: number
10671
+ teacherId: number
10672
10672
  name: string
10673
10673
  users?: UserUncheckedCreateNestedManyWithoutPacksInput
10674
10674
  purchase?: PurchaseUncheckedCreateNestedManyWithoutPackInput
@@ -10705,7 +10705,7 @@ export namespace Prisma {
10705
10705
  }
10706
10706
 
10707
10707
  export type PackUpdateWithoutCardsInput = {
10708
- admin?: AdminUpdateOneRequiredWithoutPacksNestedInput
10708
+ teacher?: TeacherUpdateOneRequiredWithoutPacksNestedInput
10709
10709
  name?: StringFieldUpdateOperationsInput | string
10710
10710
  users?: UserUpdateManyWithoutPacksNestedInput
10711
10711
  purchase?: PurchaseUpdateManyWithoutPackNestedInput
@@ -10714,7 +10714,7 @@ export namespace Prisma {
10714
10714
 
10715
10715
  export type PackUncheckedUpdateWithoutCardsInput = {
10716
10716
  id?: IntFieldUpdateOperationsInput | number
10717
- adminId?: IntFieldUpdateOperationsInput | number
10717
+ teacherId?: IntFieldUpdateOperationsInput | number
10718
10718
  name?: StringFieldUpdateOperationsInput | string
10719
10719
  users?: UserUncheckedUpdateManyWithoutPacksNestedInput
10720
10720
  purchase?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
@@ -10832,22 +10832,22 @@ export namespace Prisma {
10832
10832
  back?: StringFieldUpdateOperationsInput | string
10833
10833
  }
10834
10834
 
10835
- export type AdminCreateWithoutPacksInput = {
10835
+ export type TeacherCreateWithoutPacksInput = {
10836
10836
  email: string
10837
10837
  name: string
10838
10838
  password: string
10839
10839
  }
10840
10840
 
10841
- export type AdminUncheckedCreateWithoutPacksInput = {
10841
+ export type TeacherUncheckedCreateWithoutPacksInput = {
10842
10842
  id?: number
10843
10843
  email: string
10844
10844
  name: string
10845
10845
  password: string
10846
10846
  }
10847
10847
 
10848
- export type AdminCreateOrConnectWithoutPacksInput = {
10849
- where: AdminWhereUniqueInput
10850
- create: XOR<AdminCreateWithoutPacksInput, AdminUncheckedCreateWithoutPacksInput>
10848
+ export type TeacherCreateOrConnectWithoutPacksInput = {
10849
+ where: TeacherWhereUniqueInput
10850
+ create: XOR<TeacherCreateWithoutPacksInput, TeacherUncheckedCreateWithoutPacksInput>
10851
10851
  }
10852
10852
 
10853
10853
  export type CardCreateWithoutPackInput = {
@@ -10908,18 +10908,18 @@ export namespace Prisma {
10908
10908
  create: XOR<PurchaseCreateWithoutPackInput, PurchaseUncheckedCreateWithoutPackInput>
10909
10909
  }
10910
10910
 
10911
- export type AdminUpsertWithoutPacksInput = {
10912
- update: XOR<AdminUpdateWithoutPacksInput, AdminUncheckedUpdateWithoutPacksInput>
10913
- create: XOR<AdminCreateWithoutPacksInput, AdminUncheckedCreateWithoutPacksInput>
10911
+ export type TeacherUpsertWithoutPacksInput = {
10912
+ update: XOR<TeacherUpdateWithoutPacksInput, TeacherUncheckedUpdateWithoutPacksInput>
10913
+ create: XOR<TeacherCreateWithoutPacksInput, TeacherUncheckedCreateWithoutPacksInput>
10914
10914
  }
10915
10915
 
10916
- export type AdminUpdateWithoutPacksInput = {
10916
+ export type TeacherUpdateWithoutPacksInput = {
10917
10917
  email?: StringFieldUpdateOperationsInput | string
10918
10918
  name?: StringFieldUpdateOperationsInput | string
10919
10919
  password?: StringFieldUpdateOperationsInput | string
10920
10920
  }
10921
10921
 
10922
- export type AdminUncheckedUpdateWithoutPacksInput = {
10922
+ export type TeacherUncheckedUpdateWithoutPacksInput = {
10923
10923
  id?: IntFieldUpdateOperationsInput | number
10924
10924
  email?: StringFieldUpdateOperationsInput | string
10925
10925
  name?: StringFieldUpdateOperationsInput | string
@@ -11033,7 +11033,7 @@ export namespace Prisma {
11033
11033
  }
11034
11034
 
11035
11035
  export type PackCreateWithoutUsersInput = {
11036
- admin: AdminCreateNestedOneWithoutPacksInput
11036
+ teacher: TeacherCreateNestedOneWithoutPacksInput
11037
11037
  name: string
11038
11038
  cards?: CardCreateNestedManyWithoutPackInput
11039
11039
  purchase?: PurchaseCreateNestedManyWithoutPackInput
@@ -11042,7 +11042,7 @@ export namespace Prisma {
11042
11042
 
11043
11043
  export type PackUncheckedCreateWithoutUsersInput = {
11044
11044
  id?: number
11045
- adminId: number
11045
+ teacherId: number
11046
11046
  name: string
11047
11047
  cards?: CardUncheckedCreateNestedManyWithoutPackInput
11048
11048
  purchase?: PurchaseUncheckedCreateNestedManyWithoutPackInput
@@ -11141,7 +11141,7 @@ export namespace Prisma {
11141
11141
  OR?: Enumerable<PackScalarWhereInput>
11142
11142
  NOT?: Enumerable<PackScalarWhereInput>
11143
11143
  id?: IntFilter | number
11144
- adminId?: IntFilter | number
11144
+ teacherId?: IntFilter | number
11145
11145
  name?: StringFilter | string
11146
11146
  currentPrice?: DecimalFilter | Decimal | DecimalJsLike | number | string
11147
11147
  }
@@ -11189,7 +11189,7 @@ export namespace Prisma {
11189
11189
  timestamp?: StringFilter | string
11190
11190
  }
11191
11191
 
11192
- export type PackCreateWithoutAdminInput = {
11192
+ export type PackCreateWithoutTeacherInput = {
11193
11193
  name: string
11194
11194
  cards?: CardCreateNestedManyWithoutPackInput
11195
11195
  users?: UserCreateNestedManyWithoutPacksInput
@@ -11197,7 +11197,7 @@ export namespace Prisma {
11197
11197
  currentPrice: Decimal | DecimalJsLike | number | string
11198
11198
  }
11199
11199
 
11200
- export type PackUncheckedCreateWithoutAdminInput = {
11200
+ export type PackUncheckedCreateWithoutTeacherInput = {
11201
11201
  id?: number
11202
11202
  name: string
11203
11203
  cards?: CardUncheckedCreateNestedManyWithoutPackInput
@@ -11206,23 +11206,23 @@ export namespace Prisma {
11206
11206
  currentPrice: Decimal | DecimalJsLike | number | string
11207
11207
  }
11208
11208
 
11209
- export type PackCreateOrConnectWithoutAdminInput = {
11209
+ export type PackCreateOrConnectWithoutTeacherInput = {
11210
11210
  where: PackWhereUniqueInput
11211
- create: XOR<PackCreateWithoutAdminInput, PackUncheckedCreateWithoutAdminInput>
11211
+ create: XOR<PackCreateWithoutTeacherInput, PackUncheckedCreateWithoutTeacherInput>
11212
11212
  }
11213
11213
 
11214
- export type PackUpsertWithWhereUniqueWithoutAdminInput = {
11214
+ export type PackUpsertWithWhereUniqueWithoutTeacherInput = {
11215
11215
  where: PackWhereUniqueInput
11216
- update: XOR<PackUpdateWithoutAdminInput, PackUncheckedUpdateWithoutAdminInput>
11217
- create: XOR<PackCreateWithoutAdminInput, PackUncheckedCreateWithoutAdminInput>
11216
+ update: XOR<PackUpdateWithoutTeacherInput, PackUncheckedUpdateWithoutTeacherInput>
11217
+ create: XOR<PackCreateWithoutTeacherInput, PackUncheckedCreateWithoutTeacherInput>
11218
11218
  }
11219
11219
 
11220
- export type PackUpdateWithWhereUniqueWithoutAdminInput = {
11220
+ export type PackUpdateWithWhereUniqueWithoutTeacherInput = {
11221
11221
  where: PackWhereUniqueInput
11222
- data: XOR<PackUpdateWithoutAdminInput, PackUncheckedUpdateWithoutAdminInput>
11222
+ data: XOR<PackUpdateWithoutTeacherInput, PackUncheckedUpdateWithoutTeacherInput>
11223
11223
  }
11224
11224
 
11225
- export type PackUpdateManyWithWhereWithoutAdminInput = {
11225
+ export type PackUpdateManyWithWhereWithoutTeacherInput = {
11226
11226
  where: PackScalarWhereInput
11227
11227
  data: XOR<PackUpdateManyMutationInput, PackUncheckedUpdateManyWithoutPacksInput>
11228
11228
  }
@@ -11348,7 +11348,7 @@ export namespace Prisma {
11348
11348
  }
11349
11349
 
11350
11350
  export type PackCreateWithoutPurchaseInput = {
11351
- admin: AdminCreateNestedOneWithoutPacksInput
11351
+ teacher: TeacherCreateNestedOneWithoutPacksInput
11352
11352
  name: string
11353
11353
  cards?: CardCreateNestedManyWithoutPackInput
11354
11354
  users?: UserCreateNestedManyWithoutPacksInput
@@ -11357,7 +11357,7 @@ export namespace Prisma {
11357
11357
 
11358
11358
  export type PackUncheckedCreateWithoutPurchaseInput = {
11359
11359
  id?: number
11360
- adminId: number
11360
+ teacherId: number
11361
11361
  name: string
11362
11362
  cards?: CardUncheckedCreateNestedManyWithoutPackInput
11363
11363
  users?: UserUncheckedCreateNestedManyWithoutPacksInput
@@ -11399,7 +11399,7 @@ export namespace Prisma {
11399
11399
  }
11400
11400
 
11401
11401
  export type PackUpdateWithoutPurchaseInput = {
11402
- admin?: AdminUpdateOneRequiredWithoutPacksNestedInput
11402
+ teacher?: TeacherUpdateOneRequiredWithoutPacksNestedInput
11403
11403
  name?: StringFieldUpdateOperationsInput | string
11404
11404
  cards?: CardUpdateManyWithoutPackNestedInput
11405
11405
  users?: UserUpdateManyWithoutPacksNestedInput
@@ -11408,7 +11408,7 @@ export namespace Prisma {
11408
11408
 
11409
11409
  export type PackUncheckedUpdateWithoutPurchaseInput = {
11410
11410
  id?: IntFieldUpdateOperationsInput | number
11411
- adminId?: IntFieldUpdateOperationsInput | number
11411
+ teacherId?: IntFieldUpdateOperationsInput | number
11412
11412
  name?: StringFieldUpdateOperationsInput | string
11413
11413
  cards?: CardUncheckedUpdateManyWithoutPackNestedInput
11414
11414
  users?: UserUncheckedUpdateManyWithoutPacksNestedInput
@@ -11515,7 +11515,7 @@ export namespace Prisma {
11515
11515
  }
11516
11516
 
11517
11517
  export type PackUpdateWithoutUsersInput = {
11518
- admin?: AdminUpdateOneRequiredWithoutPacksNestedInput
11518
+ teacher?: TeacherUpdateOneRequiredWithoutPacksNestedInput
11519
11519
  name?: StringFieldUpdateOperationsInput | string
11520
11520
  cards?: CardUpdateManyWithoutPackNestedInput
11521
11521
  purchase?: PurchaseUpdateManyWithoutPackNestedInput
@@ -11524,7 +11524,7 @@ export namespace Prisma {
11524
11524
 
11525
11525
  export type PackUncheckedUpdateWithoutUsersInput = {
11526
11526
  id?: IntFieldUpdateOperationsInput | number
11527
- adminId?: IntFieldUpdateOperationsInput | number
11527
+ teacherId?: IntFieldUpdateOperationsInput | number
11528
11528
  name?: StringFieldUpdateOperationsInput | string
11529
11529
  cards?: CardUncheckedUpdateManyWithoutPackNestedInput
11530
11530
  purchase?: PurchaseUncheckedUpdateManyWithoutPackNestedInput
@@ -11533,7 +11533,7 @@ export namespace Prisma {
11533
11533
 
11534
11534
  export type PackUncheckedUpdateManyWithoutPacksInput = {
11535
11535
  id?: IntFieldUpdateOperationsInput | number
11536
- adminId?: IntFieldUpdateOperationsInput | number
11536
+ teacherId?: IntFieldUpdateOperationsInput | number
11537
11537
  name?: StringFieldUpdateOperationsInput | string
11538
11538
  currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
11539
11539
  }
@@ -11572,7 +11572,7 @@ export namespace Prisma {
11572
11572
  timestamp?: StringFieldUpdateOperationsInput | string
11573
11573
  }
11574
11574
 
11575
- export type PackUpdateWithoutAdminInput = {
11575
+ export type PackUpdateWithoutTeacherInput = {
11576
11576
  name?: StringFieldUpdateOperationsInput | string
11577
11577
  cards?: CardUpdateManyWithoutPackNestedInput
11578
11578
  users?: UserUpdateManyWithoutPacksNestedInput
@@ -11580,7 +11580,7 @@ export namespace Prisma {
11580
11580
  currentPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
11581
11581
  }
11582
11582
 
11583
- export type PackUncheckedUpdateWithoutAdminInput = {
11583
+ export type PackUncheckedUpdateWithoutTeacherInput = {
11584
11584
  id?: IntFieldUpdateOperationsInput | number
11585
11585
  name?: StringFieldUpdateOperationsInput | string
11586
11586
  cards?: CardUncheckedUpdateManyWithoutPackNestedInput