vsrepo 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VSRepository/index.d.ts +2 -0
- package/VSRepository/index.js +2 -0
- package/package.json +4 -8
- package/src/db.ts +0 -14
- package/src/generated/prisma/browser.ts +0 -44
- package/src/generated/prisma/client.ts +0 -66
- package/src/generated/prisma/commonInputTypes.ts +0 -370
- package/src/generated/prisma/enums.ts +0 -38
- package/src/generated/prisma/internal/class.ts +0 -246
- package/src/generated/prisma/internal/prismaNamespace.ts +0 -1195
- package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +0 -163
- package/src/generated/prisma/models/Admin.ts +0 -1342
- package/src/generated/prisma/models/CommonUser.ts +0 -1592
- package/src/generated/prisma/models/Post.ts +0 -1594
- package/src/generated/prisma/models/PostTag.ts +0 -1380
- package/src/generated/prisma/models/User.ts +0 -1519
- package/src/generated/prisma/models.ts +0 -16
- package/src/index.d.ts +0 -2
- package/src/index.js +0 -2
- package/src/repositories/base.ts +0 -38
- package/src/repositories/categoriaRepository.ts +0 -56
- package/src/repositories/commonUser.repository.ts +0 -45
- package/src/repositories/perfilRepository.ts +0 -29
- package/src/repositories/postagemRepository.ts +0 -71
- package/src/repositories/user.repository.ts +0 -57
- package/src/repositories/usuarioRepository.ts +0 -151
- package/src/tests/base-methods/user.bm.test.ts +0 -57
- package/src/tests/postagem.test.ts +0 -140
- package/src/tests/usuario.test.ts +0 -200
- /package/{src/VSRepository → VSRepository}/VSRepoError.d.ts +0 -0
- /package/{src/VSRepository → VSRepository}/VSRepoError.js +0 -0
- /package/{src/VSRepository → VSRepository}/VSRepository.d.ts +0 -0
- /package/{src/VSRepository → VSRepository}/VSRepository.js +0 -0
|
@@ -1,1342 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// biome-ignore-all lint: generated file
|
|
5
|
-
// @ts-nocheck
|
|
6
|
-
/*
|
|
7
|
-
* This file exports the `Admin` model and its related types.
|
|
8
|
-
*
|
|
9
|
-
* 🟢 You can import this file directly.
|
|
10
|
-
*/
|
|
11
|
-
import type * as runtime from "@prisma/client/runtime/client"
|
|
12
|
-
import type * as $Enums from "../enums.js"
|
|
13
|
-
import type * as Prisma from "../internal/prismaNamespace.js"
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Model Admin
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
export type AdminModel = runtime.Types.Result.DefaultSelection<Prisma.$AdminPayload>
|
|
20
|
-
|
|
21
|
-
export type AggregateAdmin = {
|
|
22
|
-
_count: AdminCountAggregateOutputType | null
|
|
23
|
-
_min: AdminMinAggregateOutputType | null
|
|
24
|
-
_max: AdminMaxAggregateOutputType | null
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type AdminMinAggregateOutputType = {
|
|
28
|
-
id: string | null
|
|
29
|
-
sector: $Enums.SECTORS | null
|
|
30
|
-
createdAt: Date | null
|
|
31
|
-
updatedAt: Date | null
|
|
32
|
-
userId: string | null
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export type AdminMaxAggregateOutputType = {
|
|
36
|
-
id: string | null
|
|
37
|
-
sector: $Enums.SECTORS | null
|
|
38
|
-
createdAt: Date | null
|
|
39
|
-
updatedAt: Date | null
|
|
40
|
-
userId: string | null
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export type AdminCountAggregateOutputType = {
|
|
44
|
-
id: number
|
|
45
|
-
role: number
|
|
46
|
-
sector: number
|
|
47
|
-
createdAt: number
|
|
48
|
-
updatedAt: number
|
|
49
|
-
userId: number
|
|
50
|
-
_all: number
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
export type AdminMinAggregateInputType = {
|
|
55
|
-
id?: true
|
|
56
|
-
sector?: true
|
|
57
|
-
createdAt?: true
|
|
58
|
-
updatedAt?: true
|
|
59
|
-
userId?: true
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export type AdminMaxAggregateInputType = {
|
|
63
|
-
id?: true
|
|
64
|
-
sector?: true
|
|
65
|
-
createdAt?: true
|
|
66
|
-
updatedAt?: true
|
|
67
|
-
userId?: true
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export type AdminCountAggregateInputType = {
|
|
71
|
-
id?: true
|
|
72
|
-
role?: true
|
|
73
|
-
sector?: true
|
|
74
|
-
createdAt?: true
|
|
75
|
-
updatedAt?: true
|
|
76
|
-
userId?: true
|
|
77
|
-
_all?: true
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export type AdminAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
81
|
-
/**
|
|
82
|
-
* Filter which Admin to aggregate.
|
|
83
|
-
*/
|
|
84
|
-
where?: Prisma.AdminWhereInput
|
|
85
|
-
/**
|
|
86
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
87
|
-
*
|
|
88
|
-
* Determine the order of Admins to fetch.
|
|
89
|
-
*/
|
|
90
|
-
orderBy?: Prisma.AdminOrderByWithRelationInput | Prisma.AdminOrderByWithRelationInput[]
|
|
91
|
-
/**
|
|
92
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
93
|
-
*
|
|
94
|
-
* Sets the start position
|
|
95
|
-
*/
|
|
96
|
-
cursor?: Prisma.AdminWhereUniqueInput
|
|
97
|
-
/**
|
|
98
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
99
|
-
*
|
|
100
|
-
* Take `±n` Admins from the position of the cursor.
|
|
101
|
-
*/
|
|
102
|
-
take?: number
|
|
103
|
-
/**
|
|
104
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
105
|
-
*
|
|
106
|
-
* Skip the first `n` Admins.
|
|
107
|
-
*/
|
|
108
|
-
skip?: number
|
|
109
|
-
/**
|
|
110
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
111
|
-
*
|
|
112
|
-
* Count returned Admins
|
|
113
|
-
**/
|
|
114
|
-
_count?: true | AdminCountAggregateInputType
|
|
115
|
-
/**
|
|
116
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
117
|
-
*
|
|
118
|
-
* Select which fields to find the minimum value
|
|
119
|
-
**/
|
|
120
|
-
_min?: AdminMinAggregateInputType
|
|
121
|
-
/**
|
|
122
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
123
|
-
*
|
|
124
|
-
* Select which fields to find the maximum value
|
|
125
|
-
**/
|
|
126
|
-
_max?: AdminMaxAggregateInputType
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export type GetAdminAggregateType<T extends AdminAggregateArgs> = {
|
|
130
|
-
[P in keyof T & keyof AggregateAdmin]: P extends '_count' | 'count'
|
|
131
|
-
? T[P] extends true
|
|
132
|
-
? number
|
|
133
|
-
: Prisma.GetScalarType<T[P], AggregateAdmin[P]>
|
|
134
|
-
: Prisma.GetScalarType<T[P], AggregateAdmin[P]>
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
export type AdminGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
141
|
-
where?: Prisma.AdminWhereInput
|
|
142
|
-
orderBy?: Prisma.AdminOrderByWithAggregationInput | Prisma.AdminOrderByWithAggregationInput[]
|
|
143
|
-
by: Prisma.AdminScalarFieldEnum[] | Prisma.AdminScalarFieldEnum
|
|
144
|
-
having?: Prisma.AdminScalarWhereWithAggregatesInput
|
|
145
|
-
take?: number
|
|
146
|
-
skip?: number
|
|
147
|
-
_count?: AdminCountAggregateInputType | true
|
|
148
|
-
_min?: AdminMinAggregateInputType
|
|
149
|
-
_max?: AdminMaxAggregateInputType
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export type AdminGroupByOutputType = {
|
|
153
|
-
id: string
|
|
154
|
-
role: $Enums.ROLES[]
|
|
155
|
-
sector: $Enums.SECTORS
|
|
156
|
-
createdAt: Date
|
|
157
|
-
updatedAt: Date
|
|
158
|
-
userId: string
|
|
159
|
-
_count: AdminCountAggregateOutputType | null
|
|
160
|
-
_min: AdminMinAggregateOutputType | null
|
|
161
|
-
_max: AdminMaxAggregateOutputType | null
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
export type GetAdminGroupByPayload<T extends AdminGroupByArgs> = Prisma.PrismaPromise<
|
|
165
|
-
Array<
|
|
166
|
-
Prisma.PickEnumerable<AdminGroupByOutputType, T['by']> &
|
|
167
|
-
{
|
|
168
|
-
[P in ((keyof T) & (keyof AdminGroupByOutputType))]: P extends '_count'
|
|
169
|
-
? T[P] extends boolean
|
|
170
|
-
? number
|
|
171
|
-
: Prisma.GetScalarType<T[P], AdminGroupByOutputType[P]>
|
|
172
|
-
: Prisma.GetScalarType<T[P], AdminGroupByOutputType[P]>
|
|
173
|
-
}
|
|
174
|
-
>
|
|
175
|
-
>
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
export type AdminWhereInput = {
|
|
180
|
-
AND?: Prisma.AdminWhereInput | Prisma.AdminWhereInput[]
|
|
181
|
-
OR?: Prisma.AdminWhereInput[]
|
|
182
|
-
NOT?: Prisma.AdminWhereInput | Prisma.AdminWhereInput[]
|
|
183
|
-
id?: Prisma.StringFilter<"Admin"> | string
|
|
184
|
-
role?: Prisma.EnumROLESNullableListFilter<"Admin">
|
|
185
|
-
sector?: Prisma.EnumSECTORSFilter<"Admin"> | $Enums.SECTORS
|
|
186
|
-
createdAt?: Prisma.DateTimeFilter<"Admin"> | Date | string
|
|
187
|
-
updatedAt?: Prisma.DateTimeFilter<"Admin"> | Date | string
|
|
188
|
-
userId?: Prisma.StringFilter<"Admin"> | string
|
|
189
|
-
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export type AdminOrderByWithRelationInput = {
|
|
193
|
-
id?: Prisma.SortOrder
|
|
194
|
-
role?: Prisma.SortOrder
|
|
195
|
-
sector?: Prisma.SortOrder
|
|
196
|
-
createdAt?: Prisma.SortOrder
|
|
197
|
-
updatedAt?: Prisma.SortOrder
|
|
198
|
-
userId?: Prisma.SortOrder
|
|
199
|
-
user?: Prisma.UserOrderByWithRelationInput
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
export type AdminWhereUniqueInput = Prisma.AtLeast<{
|
|
203
|
-
id?: string
|
|
204
|
-
userId?: string
|
|
205
|
-
AND?: Prisma.AdminWhereInput | Prisma.AdminWhereInput[]
|
|
206
|
-
OR?: Prisma.AdminWhereInput[]
|
|
207
|
-
NOT?: Prisma.AdminWhereInput | Prisma.AdminWhereInput[]
|
|
208
|
-
role?: Prisma.EnumROLESNullableListFilter<"Admin">
|
|
209
|
-
sector?: Prisma.EnumSECTORSFilter<"Admin"> | $Enums.SECTORS
|
|
210
|
-
createdAt?: Prisma.DateTimeFilter<"Admin"> | Date | string
|
|
211
|
-
updatedAt?: Prisma.DateTimeFilter<"Admin"> | Date | string
|
|
212
|
-
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
213
|
-
}, "id" | "userId">
|
|
214
|
-
|
|
215
|
-
export type AdminOrderByWithAggregationInput = {
|
|
216
|
-
id?: Prisma.SortOrder
|
|
217
|
-
role?: Prisma.SortOrder
|
|
218
|
-
sector?: Prisma.SortOrder
|
|
219
|
-
createdAt?: Prisma.SortOrder
|
|
220
|
-
updatedAt?: Prisma.SortOrder
|
|
221
|
-
userId?: Prisma.SortOrder
|
|
222
|
-
_count?: Prisma.AdminCountOrderByAggregateInput
|
|
223
|
-
_max?: Prisma.AdminMaxOrderByAggregateInput
|
|
224
|
-
_min?: Prisma.AdminMinOrderByAggregateInput
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export type AdminScalarWhereWithAggregatesInput = {
|
|
228
|
-
AND?: Prisma.AdminScalarWhereWithAggregatesInput | Prisma.AdminScalarWhereWithAggregatesInput[]
|
|
229
|
-
OR?: Prisma.AdminScalarWhereWithAggregatesInput[]
|
|
230
|
-
NOT?: Prisma.AdminScalarWhereWithAggregatesInput | Prisma.AdminScalarWhereWithAggregatesInput[]
|
|
231
|
-
id?: Prisma.StringWithAggregatesFilter<"Admin"> | string
|
|
232
|
-
role?: Prisma.EnumROLESNullableListFilter<"Admin">
|
|
233
|
-
sector?: Prisma.EnumSECTORSWithAggregatesFilter<"Admin"> | $Enums.SECTORS
|
|
234
|
-
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Admin"> | Date | string
|
|
235
|
-
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Admin"> | Date | string
|
|
236
|
-
userId?: Prisma.StringWithAggregatesFilter<"Admin"> | string
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
export type AdminCreateInput = {
|
|
240
|
-
id?: string
|
|
241
|
-
role?: Prisma.AdminCreateroleInput | $Enums.ROLES[]
|
|
242
|
-
sector: $Enums.SECTORS
|
|
243
|
-
createdAt?: Date | string
|
|
244
|
-
updatedAt?: Date | string
|
|
245
|
-
user: Prisma.UserCreateNestedOneWithoutAdminInput
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
export type AdminUncheckedCreateInput = {
|
|
249
|
-
id?: string
|
|
250
|
-
role?: Prisma.AdminCreateroleInput | $Enums.ROLES[]
|
|
251
|
-
sector: $Enums.SECTORS
|
|
252
|
-
createdAt?: Date | string
|
|
253
|
-
updatedAt?: Date | string
|
|
254
|
-
userId: string
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
export type AdminUpdateInput = {
|
|
258
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
259
|
-
role?: Prisma.AdminUpdateroleInput | $Enums.ROLES[]
|
|
260
|
-
sector?: Prisma.EnumSECTORSFieldUpdateOperationsInput | $Enums.SECTORS
|
|
261
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
262
|
-
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
263
|
-
user?: Prisma.UserUpdateOneRequiredWithoutAdminNestedInput
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export type AdminUncheckedUpdateInput = {
|
|
267
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
268
|
-
role?: Prisma.AdminUpdateroleInput | $Enums.ROLES[]
|
|
269
|
-
sector?: Prisma.EnumSECTORSFieldUpdateOperationsInput | $Enums.SECTORS
|
|
270
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
271
|
-
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
272
|
-
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
export type AdminCreateManyInput = {
|
|
276
|
-
id?: string
|
|
277
|
-
role?: Prisma.AdminCreateroleInput | $Enums.ROLES[]
|
|
278
|
-
sector: $Enums.SECTORS
|
|
279
|
-
createdAt?: Date | string
|
|
280
|
-
updatedAt?: Date | string
|
|
281
|
-
userId: string
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
export type AdminUpdateManyMutationInput = {
|
|
285
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
286
|
-
role?: Prisma.AdminUpdateroleInput | $Enums.ROLES[]
|
|
287
|
-
sector?: Prisma.EnumSECTORSFieldUpdateOperationsInput | $Enums.SECTORS
|
|
288
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
289
|
-
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
export type AdminUncheckedUpdateManyInput = {
|
|
293
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
294
|
-
role?: Prisma.AdminUpdateroleInput | $Enums.ROLES[]
|
|
295
|
-
sector?: Prisma.EnumSECTORSFieldUpdateOperationsInput | $Enums.SECTORS
|
|
296
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
297
|
-
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
298
|
-
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export type AdminNullableScalarRelationFilter = {
|
|
302
|
-
is?: Prisma.AdminWhereInput | null
|
|
303
|
-
isNot?: Prisma.AdminWhereInput | null
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
export type EnumROLESNullableListFilter<$PrismaModel = never> = {
|
|
307
|
-
equals?: $Enums.ROLES[] | Prisma.ListEnumROLESFieldRefInput<$PrismaModel> | null
|
|
308
|
-
has?: $Enums.ROLES | Prisma.EnumROLESFieldRefInput<$PrismaModel> | null
|
|
309
|
-
hasEvery?: $Enums.ROLES[] | Prisma.ListEnumROLESFieldRefInput<$PrismaModel>
|
|
310
|
-
hasSome?: $Enums.ROLES[] | Prisma.ListEnumROLESFieldRefInput<$PrismaModel>
|
|
311
|
-
isEmpty?: boolean
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
export type AdminCountOrderByAggregateInput = {
|
|
315
|
-
id?: Prisma.SortOrder
|
|
316
|
-
role?: Prisma.SortOrder
|
|
317
|
-
sector?: Prisma.SortOrder
|
|
318
|
-
createdAt?: Prisma.SortOrder
|
|
319
|
-
updatedAt?: Prisma.SortOrder
|
|
320
|
-
userId?: Prisma.SortOrder
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
export type AdminMaxOrderByAggregateInput = {
|
|
324
|
-
id?: Prisma.SortOrder
|
|
325
|
-
sector?: Prisma.SortOrder
|
|
326
|
-
createdAt?: Prisma.SortOrder
|
|
327
|
-
updatedAt?: Prisma.SortOrder
|
|
328
|
-
userId?: Prisma.SortOrder
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
export type AdminMinOrderByAggregateInput = {
|
|
332
|
-
id?: Prisma.SortOrder
|
|
333
|
-
sector?: Prisma.SortOrder
|
|
334
|
-
createdAt?: Prisma.SortOrder
|
|
335
|
-
updatedAt?: Prisma.SortOrder
|
|
336
|
-
userId?: Prisma.SortOrder
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
export type AdminCreateNestedOneWithoutUserInput = {
|
|
340
|
-
create?: Prisma.XOR<Prisma.AdminCreateWithoutUserInput, Prisma.AdminUncheckedCreateWithoutUserInput>
|
|
341
|
-
connectOrCreate?: Prisma.AdminCreateOrConnectWithoutUserInput
|
|
342
|
-
connect?: Prisma.AdminWhereUniqueInput
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
export type AdminUncheckedCreateNestedOneWithoutUserInput = {
|
|
346
|
-
create?: Prisma.XOR<Prisma.AdminCreateWithoutUserInput, Prisma.AdminUncheckedCreateWithoutUserInput>
|
|
347
|
-
connectOrCreate?: Prisma.AdminCreateOrConnectWithoutUserInput
|
|
348
|
-
connect?: Prisma.AdminWhereUniqueInput
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
export type AdminUpdateOneWithoutUserNestedInput = {
|
|
352
|
-
create?: Prisma.XOR<Prisma.AdminCreateWithoutUserInput, Prisma.AdminUncheckedCreateWithoutUserInput>
|
|
353
|
-
connectOrCreate?: Prisma.AdminCreateOrConnectWithoutUserInput
|
|
354
|
-
upsert?: Prisma.AdminUpsertWithoutUserInput
|
|
355
|
-
disconnect?: Prisma.AdminWhereInput | boolean
|
|
356
|
-
delete?: Prisma.AdminWhereInput | boolean
|
|
357
|
-
connect?: Prisma.AdminWhereUniqueInput
|
|
358
|
-
update?: Prisma.XOR<Prisma.XOR<Prisma.AdminUpdateToOneWithWhereWithoutUserInput, Prisma.AdminUpdateWithoutUserInput>, Prisma.AdminUncheckedUpdateWithoutUserInput>
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
export type AdminUncheckedUpdateOneWithoutUserNestedInput = {
|
|
362
|
-
create?: Prisma.XOR<Prisma.AdminCreateWithoutUserInput, Prisma.AdminUncheckedCreateWithoutUserInput>
|
|
363
|
-
connectOrCreate?: Prisma.AdminCreateOrConnectWithoutUserInput
|
|
364
|
-
upsert?: Prisma.AdminUpsertWithoutUserInput
|
|
365
|
-
disconnect?: Prisma.AdminWhereInput | boolean
|
|
366
|
-
delete?: Prisma.AdminWhereInput | boolean
|
|
367
|
-
connect?: Prisma.AdminWhereUniqueInput
|
|
368
|
-
update?: Prisma.XOR<Prisma.XOR<Prisma.AdminUpdateToOneWithWhereWithoutUserInput, Prisma.AdminUpdateWithoutUserInput>, Prisma.AdminUncheckedUpdateWithoutUserInput>
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
export type AdminCreateroleInput = {
|
|
372
|
-
set: $Enums.ROLES[]
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
export type AdminUpdateroleInput = {
|
|
376
|
-
set?: $Enums.ROLES[]
|
|
377
|
-
push?: $Enums.ROLES | $Enums.ROLES[]
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
export type EnumSECTORSFieldUpdateOperationsInput = {
|
|
381
|
-
set?: $Enums.SECTORS
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
export type AdminCreateWithoutUserInput = {
|
|
385
|
-
id?: string
|
|
386
|
-
role?: Prisma.AdminCreateroleInput | $Enums.ROLES[]
|
|
387
|
-
sector: $Enums.SECTORS
|
|
388
|
-
createdAt?: Date | string
|
|
389
|
-
updatedAt?: Date | string
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
export type AdminUncheckedCreateWithoutUserInput = {
|
|
393
|
-
id?: string
|
|
394
|
-
role?: Prisma.AdminCreateroleInput | $Enums.ROLES[]
|
|
395
|
-
sector: $Enums.SECTORS
|
|
396
|
-
createdAt?: Date | string
|
|
397
|
-
updatedAt?: Date | string
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
export type AdminCreateOrConnectWithoutUserInput = {
|
|
401
|
-
where: Prisma.AdminWhereUniqueInput
|
|
402
|
-
create: Prisma.XOR<Prisma.AdminCreateWithoutUserInput, Prisma.AdminUncheckedCreateWithoutUserInput>
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
export type AdminUpsertWithoutUserInput = {
|
|
406
|
-
update: Prisma.XOR<Prisma.AdminUpdateWithoutUserInput, Prisma.AdminUncheckedUpdateWithoutUserInput>
|
|
407
|
-
create: Prisma.XOR<Prisma.AdminCreateWithoutUserInput, Prisma.AdminUncheckedCreateWithoutUserInput>
|
|
408
|
-
where?: Prisma.AdminWhereInput
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
export type AdminUpdateToOneWithWhereWithoutUserInput = {
|
|
412
|
-
where?: Prisma.AdminWhereInput
|
|
413
|
-
data: Prisma.XOR<Prisma.AdminUpdateWithoutUserInput, Prisma.AdminUncheckedUpdateWithoutUserInput>
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
export type AdminUpdateWithoutUserInput = {
|
|
417
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
418
|
-
role?: Prisma.AdminUpdateroleInput | $Enums.ROLES[]
|
|
419
|
-
sector?: Prisma.EnumSECTORSFieldUpdateOperationsInput | $Enums.SECTORS
|
|
420
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
421
|
-
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
export type AdminUncheckedUpdateWithoutUserInput = {
|
|
425
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
426
|
-
role?: Prisma.AdminUpdateroleInput | $Enums.ROLES[]
|
|
427
|
-
sector?: Prisma.EnumSECTORSFieldUpdateOperationsInput | $Enums.SECTORS
|
|
428
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
429
|
-
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
export type AdminSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
435
|
-
id?: boolean
|
|
436
|
-
role?: boolean
|
|
437
|
-
sector?: boolean
|
|
438
|
-
createdAt?: boolean
|
|
439
|
-
updatedAt?: boolean
|
|
440
|
-
userId?: boolean
|
|
441
|
-
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
442
|
-
}, ExtArgs["result"]["admin"]>
|
|
443
|
-
|
|
444
|
-
export type AdminSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
445
|
-
id?: boolean
|
|
446
|
-
role?: boolean
|
|
447
|
-
sector?: boolean
|
|
448
|
-
createdAt?: boolean
|
|
449
|
-
updatedAt?: boolean
|
|
450
|
-
userId?: boolean
|
|
451
|
-
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
452
|
-
}, ExtArgs["result"]["admin"]>
|
|
453
|
-
|
|
454
|
-
export type AdminSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
455
|
-
id?: boolean
|
|
456
|
-
role?: boolean
|
|
457
|
-
sector?: boolean
|
|
458
|
-
createdAt?: boolean
|
|
459
|
-
updatedAt?: boolean
|
|
460
|
-
userId?: boolean
|
|
461
|
-
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
462
|
-
}, ExtArgs["result"]["admin"]>
|
|
463
|
-
|
|
464
|
-
export type AdminSelectScalar = {
|
|
465
|
-
id?: boolean
|
|
466
|
-
role?: boolean
|
|
467
|
-
sector?: boolean
|
|
468
|
-
createdAt?: boolean
|
|
469
|
-
updatedAt?: boolean
|
|
470
|
-
userId?: boolean
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
export type AdminOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "role" | "sector" | "createdAt" | "updatedAt" | "userId", ExtArgs["result"]["admin"]>
|
|
474
|
-
export type AdminInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
475
|
-
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
476
|
-
}
|
|
477
|
-
export type AdminIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
478
|
-
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
479
|
-
}
|
|
480
|
-
export type AdminIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
481
|
-
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
export type $AdminPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
485
|
-
name: "Admin"
|
|
486
|
-
objects: {
|
|
487
|
-
user: Prisma.$UserPayload<ExtArgs>
|
|
488
|
-
}
|
|
489
|
-
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
490
|
-
id: string
|
|
491
|
-
role: $Enums.ROLES[]
|
|
492
|
-
sector: $Enums.SECTORS
|
|
493
|
-
createdAt: Date
|
|
494
|
-
updatedAt: Date
|
|
495
|
-
userId: string
|
|
496
|
-
}, ExtArgs["result"]["admin"]>
|
|
497
|
-
composites: {}
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
export type AdminGetPayload<S extends boolean | null | undefined | AdminDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdminPayload, S>
|
|
501
|
-
|
|
502
|
-
export type AdminCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
503
|
-
Omit<AdminFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
504
|
-
select?: AdminCountAggregateInputType | true
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
export interface AdminDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
508
|
-
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Admin'], meta: { name: 'Admin' } }
|
|
509
|
-
/**
|
|
510
|
-
* Find zero or one Admin that matches the filter.
|
|
511
|
-
* @param {AdminFindUniqueArgs} args - Arguments to find a Admin
|
|
512
|
-
* @example
|
|
513
|
-
* // Get one Admin
|
|
514
|
-
* const admin = await prisma.admin.findUnique({
|
|
515
|
-
* where: {
|
|
516
|
-
* // ... provide filter here
|
|
517
|
-
* }
|
|
518
|
-
* })
|
|
519
|
-
*/
|
|
520
|
-
findUnique<T extends AdminFindUniqueArgs>(args: Prisma.SelectSubset<T, AdminFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
521
|
-
|
|
522
|
-
/**
|
|
523
|
-
* Find one Admin that matches the filter or throw an error with `error.code='P2025'`
|
|
524
|
-
* if no matches were found.
|
|
525
|
-
* @param {AdminFindUniqueOrThrowArgs} args - Arguments to find a Admin
|
|
526
|
-
* @example
|
|
527
|
-
* // Get one Admin
|
|
528
|
-
* const admin = await prisma.admin.findUniqueOrThrow({
|
|
529
|
-
* where: {
|
|
530
|
-
* // ... provide filter here
|
|
531
|
-
* }
|
|
532
|
-
* })
|
|
533
|
-
*/
|
|
534
|
-
findUniqueOrThrow<T extends AdminFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdminFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* Find the first Admin that matches the filter.
|
|
538
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
539
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
540
|
-
* @param {AdminFindFirstArgs} args - Arguments to find a Admin
|
|
541
|
-
* @example
|
|
542
|
-
* // Get one Admin
|
|
543
|
-
* const admin = await prisma.admin.findFirst({
|
|
544
|
-
* where: {
|
|
545
|
-
* // ... provide filter here
|
|
546
|
-
* }
|
|
547
|
-
* })
|
|
548
|
-
*/
|
|
549
|
-
findFirst<T extends AdminFindFirstArgs>(args?: Prisma.SelectSubset<T, AdminFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
* Find the first Admin that matches the filter or
|
|
553
|
-
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
554
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
555
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
556
|
-
* @param {AdminFindFirstOrThrowArgs} args - Arguments to find a Admin
|
|
557
|
-
* @example
|
|
558
|
-
* // Get one Admin
|
|
559
|
-
* const admin = await prisma.admin.findFirstOrThrow({
|
|
560
|
-
* where: {
|
|
561
|
-
* // ... provide filter here
|
|
562
|
-
* }
|
|
563
|
-
* })
|
|
564
|
-
*/
|
|
565
|
-
findFirstOrThrow<T extends AdminFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdminFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
* Find zero or more Admins that matches the filter.
|
|
569
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
570
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
571
|
-
* @param {AdminFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
572
|
-
* @example
|
|
573
|
-
* // Get all Admins
|
|
574
|
-
* const admins = await prisma.admin.findMany()
|
|
575
|
-
*
|
|
576
|
-
* // Get first 10 Admins
|
|
577
|
-
* const admins = await prisma.admin.findMany({ take: 10 })
|
|
578
|
-
*
|
|
579
|
-
* // Only select the `id`
|
|
580
|
-
* const adminWithIdOnly = await prisma.admin.findMany({ select: { id: true } })
|
|
581
|
-
*
|
|
582
|
-
*/
|
|
583
|
-
findMany<T extends AdminFindManyArgs>(args?: Prisma.SelectSubset<T, AdminFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
584
|
-
|
|
585
|
-
/**
|
|
586
|
-
* Create a Admin.
|
|
587
|
-
* @param {AdminCreateArgs} args - Arguments to create a Admin.
|
|
588
|
-
* @example
|
|
589
|
-
* // Create one Admin
|
|
590
|
-
* const Admin = await prisma.admin.create({
|
|
591
|
-
* data: {
|
|
592
|
-
* // ... data to create a Admin
|
|
593
|
-
* }
|
|
594
|
-
* })
|
|
595
|
-
*
|
|
596
|
-
*/
|
|
597
|
-
create<T extends AdminCreateArgs>(args: Prisma.SelectSubset<T, AdminCreateArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
598
|
-
|
|
599
|
-
/**
|
|
600
|
-
* Create many Admins.
|
|
601
|
-
* @param {AdminCreateManyArgs} args - Arguments to create many Admins.
|
|
602
|
-
* @example
|
|
603
|
-
* // Create many Admins
|
|
604
|
-
* const admin = await prisma.admin.createMany({
|
|
605
|
-
* data: [
|
|
606
|
-
* // ... provide data here
|
|
607
|
-
* ]
|
|
608
|
-
* })
|
|
609
|
-
*
|
|
610
|
-
*/
|
|
611
|
-
createMany<T extends AdminCreateManyArgs>(args?: Prisma.SelectSubset<T, AdminCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
612
|
-
|
|
613
|
-
/**
|
|
614
|
-
* Create many Admins and returns the data saved in the database.
|
|
615
|
-
* @param {AdminCreateManyAndReturnArgs} args - Arguments to create many Admins.
|
|
616
|
-
* @example
|
|
617
|
-
* // Create many Admins
|
|
618
|
-
* const admin = await prisma.admin.createManyAndReturn({
|
|
619
|
-
* data: [
|
|
620
|
-
* // ... provide data here
|
|
621
|
-
* ]
|
|
622
|
-
* })
|
|
623
|
-
*
|
|
624
|
-
* // Create many Admins and only return the `id`
|
|
625
|
-
* const adminWithIdOnly = await prisma.admin.createManyAndReturn({
|
|
626
|
-
* select: { id: true },
|
|
627
|
-
* data: [
|
|
628
|
-
* // ... provide data here
|
|
629
|
-
* ]
|
|
630
|
-
* })
|
|
631
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
632
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
633
|
-
*
|
|
634
|
-
*/
|
|
635
|
-
createManyAndReturn<T extends AdminCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdminCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
636
|
-
|
|
637
|
-
/**
|
|
638
|
-
* Delete a Admin.
|
|
639
|
-
* @param {AdminDeleteArgs} args - Arguments to delete one Admin.
|
|
640
|
-
* @example
|
|
641
|
-
* // Delete one Admin
|
|
642
|
-
* const Admin = await prisma.admin.delete({
|
|
643
|
-
* where: {
|
|
644
|
-
* // ... filter to delete one Admin
|
|
645
|
-
* }
|
|
646
|
-
* })
|
|
647
|
-
*
|
|
648
|
-
*/
|
|
649
|
-
delete<T extends AdminDeleteArgs>(args: Prisma.SelectSubset<T, AdminDeleteArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
* Update one Admin.
|
|
653
|
-
* @param {AdminUpdateArgs} args - Arguments to update one Admin.
|
|
654
|
-
* @example
|
|
655
|
-
* // Update one Admin
|
|
656
|
-
* const admin = await prisma.admin.update({
|
|
657
|
-
* where: {
|
|
658
|
-
* // ... provide filter here
|
|
659
|
-
* },
|
|
660
|
-
* data: {
|
|
661
|
-
* // ... provide data here
|
|
662
|
-
* }
|
|
663
|
-
* })
|
|
664
|
-
*
|
|
665
|
-
*/
|
|
666
|
-
update<T extends AdminUpdateArgs>(args: Prisma.SelectSubset<T, AdminUpdateArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
667
|
-
|
|
668
|
-
/**
|
|
669
|
-
* Delete zero or more Admins.
|
|
670
|
-
* @param {AdminDeleteManyArgs} args - Arguments to filter Admins to delete.
|
|
671
|
-
* @example
|
|
672
|
-
* // Delete a few Admins
|
|
673
|
-
* const { count } = await prisma.admin.deleteMany({
|
|
674
|
-
* where: {
|
|
675
|
-
* // ... provide filter here
|
|
676
|
-
* }
|
|
677
|
-
* })
|
|
678
|
-
*
|
|
679
|
-
*/
|
|
680
|
-
deleteMany<T extends AdminDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdminDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* Update zero or more Admins.
|
|
684
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
685
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
686
|
-
* @param {AdminUpdateManyArgs} args - Arguments to update one or more rows.
|
|
687
|
-
* @example
|
|
688
|
-
* // Update many Admins
|
|
689
|
-
* const admin = await prisma.admin.updateMany({
|
|
690
|
-
* where: {
|
|
691
|
-
* // ... provide filter here
|
|
692
|
-
* },
|
|
693
|
-
* data: {
|
|
694
|
-
* // ... provide data here
|
|
695
|
-
* }
|
|
696
|
-
* })
|
|
697
|
-
*
|
|
698
|
-
*/
|
|
699
|
-
updateMany<T extends AdminUpdateManyArgs>(args: Prisma.SelectSubset<T, AdminUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
700
|
-
|
|
701
|
-
/**
|
|
702
|
-
* Update zero or more Admins and returns the data updated in the database.
|
|
703
|
-
* @param {AdminUpdateManyAndReturnArgs} args - Arguments to update many Admins.
|
|
704
|
-
* @example
|
|
705
|
-
* // Update many Admins
|
|
706
|
-
* const admin = await prisma.admin.updateManyAndReturn({
|
|
707
|
-
* where: {
|
|
708
|
-
* // ... provide filter here
|
|
709
|
-
* },
|
|
710
|
-
* data: [
|
|
711
|
-
* // ... provide data here
|
|
712
|
-
* ]
|
|
713
|
-
* })
|
|
714
|
-
*
|
|
715
|
-
* // Update zero or more Admins and only return the `id`
|
|
716
|
-
* const adminWithIdOnly = await prisma.admin.updateManyAndReturn({
|
|
717
|
-
* select: { id: true },
|
|
718
|
-
* where: {
|
|
719
|
-
* // ... provide filter here
|
|
720
|
-
* },
|
|
721
|
-
* data: [
|
|
722
|
-
* // ... provide data here
|
|
723
|
-
* ]
|
|
724
|
-
* })
|
|
725
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
726
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
727
|
-
*
|
|
728
|
-
*/
|
|
729
|
-
updateManyAndReturn<T extends AdminUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdminUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
730
|
-
|
|
731
|
-
/**
|
|
732
|
-
* Create or update one Admin.
|
|
733
|
-
* @param {AdminUpsertArgs} args - Arguments to update or create a Admin.
|
|
734
|
-
* @example
|
|
735
|
-
* // Update or create a Admin
|
|
736
|
-
* const admin = await prisma.admin.upsert({
|
|
737
|
-
* create: {
|
|
738
|
-
* // ... data to create a Admin
|
|
739
|
-
* },
|
|
740
|
-
* update: {
|
|
741
|
-
* // ... in case it already exists, update
|
|
742
|
-
* },
|
|
743
|
-
* where: {
|
|
744
|
-
* // ... the filter for the Admin we want to update
|
|
745
|
-
* }
|
|
746
|
-
* })
|
|
747
|
-
*/
|
|
748
|
-
upsert<T extends AdminUpsertArgs>(args: Prisma.SelectSubset<T, AdminUpsertArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
/**
|
|
752
|
-
* Count the number of Admins.
|
|
753
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
754
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
755
|
-
* @param {AdminCountArgs} args - Arguments to filter Admins to count.
|
|
756
|
-
* @example
|
|
757
|
-
* // Count the number of Admins
|
|
758
|
-
* const count = await prisma.admin.count({
|
|
759
|
-
* where: {
|
|
760
|
-
* // ... the filter for the Admins we want to count
|
|
761
|
-
* }
|
|
762
|
-
* })
|
|
763
|
-
**/
|
|
764
|
-
count<T extends AdminCountArgs>(
|
|
765
|
-
args?: Prisma.Subset<T, AdminCountArgs>,
|
|
766
|
-
): Prisma.PrismaPromise<
|
|
767
|
-
T extends runtime.Types.Utils.Record<'select', any>
|
|
768
|
-
? T['select'] extends true
|
|
769
|
-
? number
|
|
770
|
-
: Prisma.GetScalarType<T['select'], AdminCountAggregateOutputType>
|
|
771
|
-
: number
|
|
772
|
-
>
|
|
773
|
-
|
|
774
|
-
/**
|
|
775
|
-
* Allows you to perform aggregations operations on a Admin.
|
|
776
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
777
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
778
|
-
* @param {AdminAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
779
|
-
* @example
|
|
780
|
-
* // Ordered by age ascending
|
|
781
|
-
* // Where email contains prisma.io
|
|
782
|
-
* // Limited to the 10 users
|
|
783
|
-
* const aggregations = await prisma.user.aggregate({
|
|
784
|
-
* _avg: {
|
|
785
|
-
* age: true,
|
|
786
|
-
* },
|
|
787
|
-
* where: {
|
|
788
|
-
* email: {
|
|
789
|
-
* contains: "prisma.io",
|
|
790
|
-
* },
|
|
791
|
-
* },
|
|
792
|
-
* orderBy: {
|
|
793
|
-
* age: "asc",
|
|
794
|
-
* },
|
|
795
|
-
* take: 10,
|
|
796
|
-
* })
|
|
797
|
-
**/
|
|
798
|
-
aggregate<T extends AdminAggregateArgs>(args: Prisma.Subset<T, AdminAggregateArgs>): Prisma.PrismaPromise<GetAdminAggregateType<T>>
|
|
799
|
-
|
|
800
|
-
/**
|
|
801
|
-
* Group by Admin.
|
|
802
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
803
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
804
|
-
* @param {AdminGroupByArgs} args - Group by arguments.
|
|
805
|
-
* @example
|
|
806
|
-
* // Group by city, order by createdAt, get count
|
|
807
|
-
* const result = await prisma.user.groupBy({
|
|
808
|
-
* by: ['city', 'createdAt'],
|
|
809
|
-
* orderBy: {
|
|
810
|
-
* createdAt: true
|
|
811
|
-
* },
|
|
812
|
-
* _count: {
|
|
813
|
-
* _all: true
|
|
814
|
-
* },
|
|
815
|
-
* })
|
|
816
|
-
*
|
|
817
|
-
**/
|
|
818
|
-
groupBy<
|
|
819
|
-
T extends AdminGroupByArgs,
|
|
820
|
-
HasSelectOrTake extends Prisma.Or<
|
|
821
|
-
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
822
|
-
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
823
|
-
>,
|
|
824
|
-
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
825
|
-
? { orderBy: AdminGroupByArgs['orderBy'] }
|
|
826
|
-
: { orderBy?: AdminGroupByArgs['orderBy'] },
|
|
827
|
-
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
828
|
-
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
829
|
-
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
830
|
-
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
831
|
-
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
832
|
-
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
833
|
-
InputErrors extends ByEmpty extends Prisma.True
|
|
834
|
-
? `Error: "by" must not be empty.`
|
|
835
|
-
: HavingValid extends Prisma.False
|
|
836
|
-
? {
|
|
837
|
-
[P in HavingFields]: P extends ByFields
|
|
838
|
-
? never
|
|
839
|
-
: P extends string
|
|
840
|
-
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
841
|
-
: [
|
|
842
|
-
Error,
|
|
843
|
-
'Field ',
|
|
844
|
-
P,
|
|
845
|
-
` in "having" needs to be provided in "by"`,
|
|
846
|
-
]
|
|
847
|
-
}[HavingFields]
|
|
848
|
-
: 'take' extends Prisma.Keys<T>
|
|
849
|
-
? 'orderBy' extends Prisma.Keys<T>
|
|
850
|
-
? ByValid extends Prisma.True
|
|
851
|
-
? {}
|
|
852
|
-
: {
|
|
853
|
-
[P in OrderFields]: P extends ByFields
|
|
854
|
-
? never
|
|
855
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
856
|
-
}[OrderFields]
|
|
857
|
-
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
858
|
-
: 'skip' extends Prisma.Keys<T>
|
|
859
|
-
? 'orderBy' extends Prisma.Keys<T>
|
|
860
|
-
? ByValid extends Prisma.True
|
|
861
|
-
? {}
|
|
862
|
-
: {
|
|
863
|
-
[P in OrderFields]: P extends ByFields
|
|
864
|
-
? never
|
|
865
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
866
|
-
}[OrderFields]
|
|
867
|
-
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
868
|
-
: ByValid extends Prisma.True
|
|
869
|
-
? {}
|
|
870
|
-
: {
|
|
871
|
-
[P in OrderFields]: P extends ByFields
|
|
872
|
-
? never
|
|
873
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
874
|
-
}[OrderFields]
|
|
875
|
-
>(args: Prisma.SubsetIntersection<T, AdminGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
876
|
-
/**
|
|
877
|
-
* Fields of the Admin model
|
|
878
|
-
*/
|
|
879
|
-
readonly fields: AdminFieldRefs;
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
/**
|
|
883
|
-
* The delegate class that acts as a "Promise-like" for Admin.
|
|
884
|
-
* Why is this prefixed with `Prisma__`?
|
|
885
|
-
* Because we want to prevent naming conflicts as mentioned in
|
|
886
|
-
* https://github.com/prisma/prisma-client-js/issues/707
|
|
887
|
-
*/
|
|
888
|
-
export interface Prisma__AdminClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
889
|
-
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
890
|
-
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
891
|
-
/**
|
|
892
|
-
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
893
|
-
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
894
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
895
|
-
* @returns A Promise for the completion of which ever callback is executed.
|
|
896
|
-
*/
|
|
897
|
-
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
898
|
-
/**
|
|
899
|
-
* Attaches a callback for only the rejection of the Promise.
|
|
900
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
901
|
-
* @returns A Promise for the completion of the callback.
|
|
902
|
-
*/
|
|
903
|
-
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
904
|
-
/**
|
|
905
|
-
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
906
|
-
* resolved value cannot be modified from the callback.
|
|
907
|
-
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
908
|
-
* @returns A Promise for the completion of the callback.
|
|
909
|
-
*/
|
|
910
|
-
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
/**
|
|
917
|
-
* Fields of the Admin model
|
|
918
|
-
*/
|
|
919
|
-
export interface AdminFieldRefs {
|
|
920
|
-
readonly id: Prisma.FieldRef<"Admin", 'String'>
|
|
921
|
-
readonly role: Prisma.FieldRef<"Admin", 'ROLES[]'>
|
|
922
|
-
readonly sector: Prisma.FieldRef<"Admin", 'SECTORS'>
|
|
923
|
-
readonly createdAt: Prisma.FieldRef<"Admin", 'DateTime'>
|
|
924
|
-
readonly updatedAt: Prisma.FieldRef<"Admin", 'DateTime'>
|
|
925
|
-
readonly userId: Prisma.FieldRef<"Admin", 'String'>
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
// Custom InputTypes
|
|
930
|
-
/**
|
|
931
|
-
* Admin findUnique
|
|
932
|
-
*/
|
|
933
|
-
export type AdminFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
934
|
-
/**
|
|
935
|
-
* Select specific fields to fetch from the Admin
|
|
936
|
-
*/
|
|
937
|
-
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
938
|
-
/**
|
|
939
|
-
* Omit specific fields from the Admin
|
|
940
|
-
*/
|
|
941
|
-
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
942
|
-
/**
|
|
943
|
-
* Choose, which related nodes to fetch as well
|
|
944
|
-
*/
|
|
945
|
-
include?: Prisma.AdminInclude<ExtArgs> | null
|
|
946
|
-
/**
|
|
947
|
-
* Filter, which Admin to fetch.
|
|
948
|
-
*/
|
|
949
|
-
where: Prisma.AdminWhereUniqueInput
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
/**
|
|
953
|
-
* Admin findUniqueOrThrow
|
|
954
|
-
*/
|
|
955
|
-
export type AdminFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
956
|
-
/**
|
|
957
|
-
* Select specific fields to fetch from the Admin
|
|
958
|
-
*/
|
|
959
|
-
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
960
|
-
/**
|
|
961
|
-
* Omit specific fields from the Admin
|
|
962
|
-
*/
|
|
963
|
-
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
964
|
-
/**
|
|
965
|
-
* Choose, which related nodes to fetch as well
|
|
966
|
-
*/
|
|
967
|
-
include?: Prisma.AdminInclude<ExtArgs> | null
|
|
968
|
-
/**
|
|
969
|
-
* Filter, which Admin to fetch.
|
|
970
|
-
*/
|
|
971
|
-
where: Prisma.AdminWhereUniqueInput
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
/**
|
|
975
|
-
* Admin findFirst
|
|
976
|
-
*/
|
|
977
|
-
export type AdminFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
978
|
-
/**
|
|
979
|
-
* Select specific fields to fetch from the Admin
|
|
980
|
-
*/
|
|
981
|
-
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
982
|
-
/**
|
|
983
|
-
* Omit specific fields from the Admin
|
|
984
|
-
*/
|
|
985
|
-
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
986
|
-
/**
|
|
987
|
-
* Choose, which related nodes to fetch as well
|
|
988
|
-
*/
|
|
989
|
-
include?: Prisma.AdminInclude<ExtArgs> | null
|
|
990
|
-
/**
|
|
991
|
-
* Filter, which Admin to fetch.
|
|
992
|
-
*/
|
|
993
|
-
where?: Prisma.AdminWhereInput
|
|
994
|
-
/**
|
|
995
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
996
|
-
*
|
|
997
|
-
* Determine the order of Admins to fetch.
|
|
998
|
-
*/
|
|
999
|
-
orderBy?: Prisma.AdminOrderByWithRelationInput | Prisma.AdminOrderByWithRelationInput[]
|
|
1000
|
-
/**
|
|
1001
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1002
|
-
*
|
|
1003
|
-
* Sets the position for searching for Admins.
|
|
1004
|
-
*/
|
|
1005
|
-
cursor?: Prisma.AdminWhereUniqueInput
|
|
1006
|
-
/**
|
|
1007
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1008
|
-
*
|
|
1009
|
-
* Take `±n` Admins from the position of the cursor.
|
|
1010
|
-
*/
|
|
1011
|
-
take?: number
|
|
1012
|
-
/**
|
|
1013
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1014
|
-
*
|
|
1015
|
-
* Skip the first `n` Admins.
|
|
1016
|
-
*/
|
|
1017
|
-
skip?: number
|
|
1018
|
-
/**
|
|
1019
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1020
|
-
*
|
|
1021
|
-
* Filter by unique combinations of Admins.
|
|
1022
|
-
*/
|
|
1023
|
-
distinct?: Prisma.AdminScalarFieldEnum | Prisma.AdminScalarFieldEnum[]
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
/**
|
|
1027
|
-
* Admin findFirstOrThrow
|
|
1028
|
-
*/
|
|
1029
|
-
export type AdminFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1030
|
-
/**
|
|
1031
|
-
* Select specific fields to fetch from the Admin
|
|
1032
|
-
*/
|
|
1033
|
-
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
1034
|
-
/**
|
|
1035
|
-
* Omit specific fields from the Admin
|
|
1036
|
-
*/
|
|
1037
|
-
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
1038
|
-
/**
|
|
1039
|
-
* Choose, which related nodes to fetch as well
|
|
1040
|
-
*/
|
|
1041
|
-
include?: Prisma.AdminInclude<ExtArgs> | null
|
|
1042
|
-
/**
|
|
1043
|
-
* Filter, which Admin to fetch.
|
|
1044
|
-
*/
|
|
1045
|
-
where?: Prisma.AdminWhereInput
|
|
1046
|
-
/**
|
|
1047
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1048
|
-
*
|
|
1049
|
-
* Determine the order of Admins to fetch.
|
|
1050
|
-
*/
|
|
1051
|
-
orderBy?: Prisma.AdminOrderByWithRelationInput | Prisma.AdminOrderByWithRelationInput[]
|
|
1052
|
-
/**
|
|
1053
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1054
|
-
*
|
|
1055
|
-
* Sets the position for searching for Admins.
|
|
1056
|
-
*/
|
|
1057
|
-
cursor?: Prisma.AdminWhereUniqueInput
|
|
1058
|
-
/**
|
|
1059
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1060
|
-
*
|
|
1061
|
-
* Take `±n` Admins from the position of the cursor.
|
|
1062
|
-
*/
|
|
1063
|
-
take?: number
|
|
1064
|
-
/**
|
|
1065
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1066
|
-
*
|
|
1067
|
-
* Skip the first `n` Admins.
|
|
1068
|
-
*/
|
|
1069
|
-
skip?: number
|
|
1070
|
-
/**
|
|
1071
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1072
|
-
*
|
|
1073
|
-
* Filter by unique combinations of Admins.
|
|
1074
|
-
*/
|
|
1075
|
-
distinct?: Prisma.AdminScalarFieldEnum | Prisma.AdminScalarFieldEnum[]
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
/**
|
|
1079
|
-
* Admin findMany
|
|
1080
|
-
*/
|
|
1081
|
-
export type AdminFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1082
|
-
/**
|
|
1083
|
-
* Select specific fields to fetch from the Admin
|
|
1084
|
-
*/
|
|
1085
|
-
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
1086
|
-
/**
|
|
1087
|
-
* Omit specific fields from the Admin
|
|
1088
|
-
*/
|
|
1089
|
-
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
1090
|
-
/**
|
|
1091
|
-
* Choose, which related nodes to fetch as well
|
|
1092
|
-
*/
|
|
1093
|
-
include?: Prisma.AdminInclude<ExtArgs> | null
|
|
1094
|
-
/**
|
|
1095
|
-
* Filter, which Admins to fetch.
|
|
1096
|
-
*/
|
|
1097
|
-
where?: Prisma.AdminWhereInput
|
|
1098
|
-
/**
|
|
1099
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1100
|
-
*
|
|
1101
|
-
* Determine the order of Admins to fetch.
|
|
1102
|
-
*/
|
|
1103
|
-
orderBy?: Prisma.AdminOrderByWithRelationInput | Prisma.AdminOrderByWithRelationInput[]
|
|
1104
|
-
/**
|
|
1105
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1106
|
-
*
|
|
1107
|
-
* Sets the position for listing Admins.
|
|
1108
|
-
*/
|
|
1109
|
-
cursor?: Prisma.AdminWhereUniqueInput
|
|
1110
|
-
/**
|
|
1111
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1112
|
-
*
|
|
1113
|
-
* Take `±n` Admins from the position of the cursor.
|
|
1114
|
-
*/
|
|
1115
|
-
take?: number
|
|
1116
|
-
/**
|
|
1117
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1118
|
-
*
|
|
1119
|
-
* Skip the first `n` Admins.
|
|
1120
|
-
*/
|
|
1121
|
-
skip?: number
|
|
1122
|
-
/**
|
|
1123
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1124
|
-
*
|
|
1125
|
-
* Filter by unique combinations of Admins.
|
|
1126
|
-
*/
|
|
1127
|
-
distinct?: Prisma.AdminScalarFieldEnum | Prisma.AdminScalarFieldEnum[]
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
/**
|
|
1131
|
-
* Admin create
|
|
1132
|
-
*/
|
|
1133
|
-
export type AdminCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1134
|
-
/**
|
|
1135
|
-
* Select specific fields to fetch from the Admin
|
|
1136
|
-
*/
|
|
1137
|
-
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
1138
|
-
/**
|
|
1139
|
-
* Omit specific fields from the Admin
|
|
1140
|
-
*/
|
|
1141
|
-
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
1142
|
-
/**
|
|
1143
|
-
* Choose, which related nodes to fetch as well
|
|
1144
|
-
*/
|
|
1145
|
-
include?: Prisma.AdminInclude<ExtArgs> | null
|
|
1146
|
-
/**
|
|
1147
|
-
* The data needed to create a Admin.
|
|
1148
|
-
*/
|
|
1149
|
-
data: Prisma.XOR<Prisma.AdminCreateInput, Prisma.AdminUncheckedCreateInput>
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
/**
|
|
1153
|
-
* Admin createMany
|
|
1154
|
-
*/
|
|
1155
|
-
export type AdminCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1156
|
-
/**
|
|
1157
|
-
* The data used to create many Admins.
|
|
1158
|
-
*/
|
|
1159
|
-
data: Prisma.AdminCreateManyInput | Prisma.AdminCreateManyInput[]
|
|
1160
|
-
skipDuplicates?: boolean
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
/**
|
|
1164
|
-
* Admin createManyAndReturn
|
|
1165
|
-
*/
|
|
1166
|
-
export type AdminCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1167
|
-
/**
|
|
1168
|
-
* Select specific fields to fetch from the Admin
|
|
1169
|
-
*/
|
|
1170
|
-
select?: Prisma.AdminSelectCreateManyAndReturn<ExtArgs> | null
|
|
1171
|
-
/**
|
|
1172
|
-
* Omit specific fields from the Admin
|
|
1173
|
-
*/
|
|
1174
|
-
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
1175
|
-
/**
|
|
1176
|
-
* The data used to create many Admins.
|
|
1177
|
-
*/
|
|
1178
|
-
data: Prisma.AdminCreateManyInput | Prisma.AdminCreateManyInput[]
|
|
1179
|
-
skipDuplicates?: boolean
|
|
1180
|
-
/**
|
|
1181
|
-
* Choose, which related nodes to fetch as well
|
|
1182
|
-
*/
|
|
1183
|
-
include?: Prisma.AdminIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
/**
|
|
1187
|
-
* Admin update
|
|
1188
|
-
*/
|
|
1189
|
-
export type AdminUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1190
|
-
/**
|
|
1191
|
-
* Select specific fields to fetch from the Admin
|
|
1192
|
-
*/
|
|
1193
|
-
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
1194
|
-
/**
|
|
1195
|
-
* Omit specific fields from the Admin
|
|
1196
|
-
*/
|
|
1197
|
-
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
1198
|
-
/**
|
|
1199
|
-
* Choose, which related nodes to fetch as well
|
|
1200
|
-
*/
|
|
1201
|
-
include?: Prisma.AdminInclude<ExtArgs> | null
|
|
1202
|
-
/**
|
|
1203
|
-
* The data needed to update a Admin.
|
|
1204
|
-
*/
|
|
1205
|
-
data: Prisma.XOR<Prisma.AdminUpdateInput, Prisma.AdminUncheckedUpdateInput>
|
|
1206
|
-
/**
|
|
1207
|
-
* Choose, which Admin to update.
|
|
1208
|
-
*/
|
|
1209
|
-
where: Prisma.AdminWhereUniqueInput
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
/**
|
|
1213
|
-
* Admin updateMany
|
|
1214
|
-
*/
|
|
1215
|
-
export type AdminUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1216
|
-
/**
|
|
1217
|
-
* The data used to update Admins.
|
|
1218
|
-
*/
|
|
1219
|
-
data: Prisma.XOR<Prisma.AdminUpdateManyMutationInput, Prisma.AdminUncheckedUpdateManyInput>
|
|
1220
|
-
/**
|
|
1221
|
-
* Filter which Admins to update
|
|
1222
|
-
*/
|
|
1223
|
-
where?: Prisma.AdminWhereInput
|
|
1224
|
-
/**
|
|
1225
|
-
* Limit how many Admins to update.
|
|
1226
|
-
*/
|
|
1227
|
-
limit?: number
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1230
|
-
/**
|
|
1231
|
-
* Admin updateManyAndReturn
|
|
1232
|
-
*/
|
|
1233
|
-
export type AdminUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1234
|
-
/**
|
|
1235
|
-
* Select specific fields to fetch from the Admin
|
|
1236
|
-
*/
|
|
1237
|
-
select?: Prisma.AdminSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1238
|
-
/**
|
|
1239
|
-
* Omit specific fields from the Admin
|
|
1240
|
-
*/
|
|
1241
|
-
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
1242
|
-
/**
|
|
1243
|
-
* The data used to update Admins.
|
|
1244
|
-
*/
|
|
1245
|
-
data: Prisma.XOR<Prisma.AdminUpdateManyMutationInput, Prisma.AdminUncheckedUpdateManyInput>
|
|
1246
|
-
/**
|
|
1247
|
-
* Filter which Admins to update
|
|
1248
|
-
*/
|
|
1249
|
-
where?: Prisma.AdminWhereInput
|
|
1250
|
-
/**
|
|
1251
|
-
* Limit how many Admins to update.
|
|
1252
|
-
*/
|
|
1253
|
-
limit?: number
|
|
1254
|
-
/**
|
|
1255
|
-
* Choose, which related nodes to fetch as well
|
|
1256
|
-
*/
|
|
1257
|
-
include?: Prisma.AdminIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
/**
|
|
1261
|
-
* Admin upsert
|
|
1262
|
-
*/
|
|
1263
|
-
export type AdminUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1264
|
-
/**
|
|
1265
|
-
* Select specific fields to fetch from the Admin
|
|
1266
|
-
*/
|
|
1267
|
-
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
1268
|
-
/**
|
|
1269
|
-
* Omit specific fields from the Admin
|
|
1270
|
-
*/
|
|
1271
|
-
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
1272
|
-
/**
|
|
1273
|
-
* Choose, which related nodes to fetch as well
|
|
1274
|
-
*/
|
|
1275
|
-
include?: Prisma.AdminInclude<ExtArgs> | null
|
|
1276
|
-
/**
|
|
1277
|
-
* The filter to search for the Admin to update in case it exists.
|
|
1278
|
-
*/
|
|
1279
|
-
where: Prisma.AdminWhereUniqueInput
|
|
1280
|
-
/**
|
|
1281
|
-
* In case the Admin found by the `where` argument doesn't exist, create a new Admin with this data.
|
|
1282
|
-
*/
|
|
1283
|
-
create: Prisma.XOR<Prisma.AdminCreateInput, Prisma.AdminUncheckedCreateInput>
|
|
1284
|
-
/**
|
|
1285
|
-
* In case the Admin was found with the provided `where` argument, update it with this data.
|
|
1286
|
-
*/
|
|
1287
|
-
update: Prisma.XOR<Prisma.AdminUpdateInput, Prisma.AdminUncheckedUpdateInput>
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
/**
|
|
1291
|
-
* Admin delete
|
|
1292
|
-
*/
|
|
1293
|
-
export type AdminDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1294
|
-
/**
|
|
1295
|
-
* Select specific fields to fetch from the Admin
|
|
1296
|
-
*/
|
|
1297
|
-
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
1298
|
-
/**
|
|
1299
|
-
* Omit specific fields from the Admin
|
|
1300
|
-
*/
|
|
1301
|
-
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
1302
|
-
/**
|
|
1303
|
-
* Choose, which related nodes to fetch as well
|
|
1304
|
-
*/
|
|
1305
|
-
include?: Prisma.AdminInclude<ExtArgs> | null
|
|
1306
|
-
/**
|
|
1307
|
-
* Filter which Admin to delete.
|
|
1308
|
-
*/
|
|
1309
|
-
where: Prisma.AdminWhereUniqueInput
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
/**
|
|
1313
|
-
* Admin deleteMany
|
|
1314
|
-
*/
|
|
1315
|
-
export type AdminDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1316
|
-
/**
|
|
1317
|
-
* Filter which Admins to delete
|
|
1318
|
-
*/
|
|
1319
|
-
where?: Prisma.AdminWhereInput
|
|
1320
|
-
/**
|
|
1321
|
-
* Limit how many Admins to delete.
|
|
1322
|
-
*/
|
|
1323
|
-
limit?: number
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
/**
|
|
1327
|
-
* Admin without action
|
|
1328
|
-
*/
|
|
1329
|
-
export type AdminDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1330
|
-
/**
|
|
1331
|
-
* Select specific fields to fetch from the Admin
|
|
1332
|
-
*/
|
|
1333
|
-
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
1334
|
-
/**
|
|
1335
|
-
* Omit specific fields from the Admin
|
|
1336
|
-
*/
|
|
1337
|
-
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
1338
|
-
/**
|
|
1339
|
-
* Choose, which related nodes to fetch as well
|
|
1340
|
-
*/
|
|
1341
|
-
include?: Prisma.AdminInclude<ExtArgs> | null
|
|
1342
|
-
}
|