@valentine-efagene/qshelter-common 2.0.141 → 2.0.142

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.
@@ -0,0 +1,1476 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model QuestionnairePhaseReview
6
+ *
7
+ */
8
+ export type QuestionnairePhaseReviewModel = runtime.Types.Result.DefaultSelection<Prisma.$QuestionnairePhaseReviewPayload>;
9
+ export type AggregateQuestionnairePhaseReview = {
10
+ _count: QuestionnairePhaseReviewCountAggregateOutputType | null;
11
+ _avg: QuestionnairePhaseReviewAvgAggregateOutputType | null;
12
+ _sum: QuestionnairePhaseReviewSumAggregateOutputType | null;
13
+ _min: QuestionnairePhaseReviewMinAggregateOutputType | null;
14
+ _max: QuestionnairePhaseReviewMaxAggregateOutputType | null;
15
+ };
16
+ export type QuestionnairePhaseReviewAvgAggregateOutputType = {
17
+ scoreAtReview: number | null;
18
+ };
19
+ export type QuestionnairePhaseReviewSumAggregateOutputType = {
20
+ scoreAtReview: number | null;
21
+ };
22
+ export type QuestionnairePhaseReviewMinAggregateOutputType = {
23
+ id: string | null;
24
+ tenantId: string | null;
25
+ questionnairePhaseId: string | null;
26
+ reviewerId: string | null;
27
+ decision: $Enums.ReviewDecision | null;
28
+ notes: string | null;
29
+ scoreAtReview: number | null;
30
+ passedAtReview: boolean | null;
31
+ createdAt: Date | null;
32
+ };
33
+ export type QuestionnairePhaseReviewMaxAggregateOutputType = {
34
+ id: string | null;
35
+ tenantId: string | null;
36
+ questionnairePhaseId: string | null;
37
+ reviewerId: string | null;
38
+ decision: $Enums.ReviewDecision | null;
39
+ notes: string | null;
40
+ scoreAtReview: number | null;
41
+ passedAtReview: boolean | null;
42
+ createdAt: Date | null;
43
+ };
44
+ export type QuestionnairePhaseReviewCountAggregateOutputType = {
45
+ id: number;
46
+ tenantId: number;
47
+ questionnairePhaseId: number;
48
+ reviewerId: number;
49
+ decision: number;
50
+ notes: number;
51
+ scoreAtReview: number;
52
+ passedAtReview: number;
53
+ createdAt: number;
54
+ _all: number;
55
+ };
56
+ export type QuestionnairePhaseReviewAvgAggregateInputType = {
57
+ scoreAtReview?: true;
58
+ };
59
+ export type QuestionnairePhaseReviewSumAggregateInputType = {
60
+ scoreAtReview?: true;
61
+ };
62
+ export type QuestionnairePhaseReviewMinAggregateInputType = {
63
+ id?: true;
64
+ tenantId?: true;
65
+ questionnairePhaseId?: true;
66
+ reviewerId?: true;
67
+ decision?: true;
68
+ notes?: true;
69
+ scoreAtReview?: true;
70
+ passedAtReview?: true;
71
+ createdAt?: true;
72
+ };
73
+ export type QuestionnairePhaseReviewMaxAggregateInputType = {
74
+ id?: true;
75
+ tenantId?: true;
76
+ questionnairePhaseId?: true;
77
+ reviewerId?: true;
78
+ decision?: true;
79
+ notes?: true;
80
+ scoreAtReview?: true;
81
+ passedAtReview?: true;
82
+ createdAt?: true;
83
+ };
84
+ export type QuestionnairePhaseReviewCountAggregateInputType = {
85
+ id?: true;
86
+ tenantId?: true;
87
+ questionnairePhaseId?: true;
88
+ reviewerId?: true;
89
+ decision?: true;
90
+ notes?: true;
91
+ scoreAtReview?: true;
92
+ passedAtReview?: true;
93
+ createdAt?: true;
94
+ _all?: true;
95
+ };
96
+ export type QuestionnairePhaseReviewAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
97
+ /**
98
+ * Filter which QuestionnairePhaseReview to aggregate.
99
+ */
100
+ where?: Prisma.QuestionnairePhaseReviewWhereInput;
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
103
+ *
104
+ * Determine the order of QuestionnairePhaseReviews to fetch.
105
+ */
106
+ orderBy?: Prisma.QuestionnairePhaseReviewOrderByWithRelationInput | Prisma.QuestionnairePhaseReviewOrderByWithRelationInput[];
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
109
+ *
110
+ * Sets the start position
111
+ */
112
+ cursor?: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
115
+ *
116
+ * Take `±n` QuestionnairePhaseReviews from the position of the cursor.
117
+ */
118
+ take?: number;
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
121
+ *
122
+ * Skip the first `n` QuestionnairePhaseReviews.
123
+ */
124
+ skip?: number;
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
127
+ *
128
+ * Count returned QuestionnairePhaseReviews
129
+ **/
130
+ _count?: true | QuestionnairePhaseReviewCountAggregateInputType;
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
133
+ *
134
+ * Select which fields to average
135
+ **/
136
+ _avg?: QuestionnairePhaseReviewAvgAggregateInputType;
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
+ *
140
+ * Select which fields to sum
141
+ **/
142
+ _sum?: QuestionnairePhaseReviewSumAggregateInputType;
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
145
+ *
146
+ * Select which fields to find the minimum value
147
+ **/
148
+ _min?: QuestionnairePhaseReviewMinAggregateInputType;
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
151
+ *
152
+ * Select which fields to find the maximum value
153
+ **/
154
+ _max?: QuestionnairePhaseReviewMaxAggregateInputType;
155
+ };
156
+ export type GetQuestionnairePhaseReviewAggregateType<T extends QuestionnairePhaseReviewAggregateArgs> = {
157
+ [P in keyof T & keyof AggregateQuestionnairePhaseReview]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateQuestionnairePhaseReview[P]> : Prisma.GetScalarType<T[P], AggregateQuestionnairePhaseReview[P]>;
158
+ };
159
+ export type QuestionnairePhaseReviewGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
160
+ where?: Prisma.QuestionnairePhaseReviewWhereInput;
161
+ orderBy?: Prisma.QuestionnairePhaseReviewOrderByWithAggregationInput | Prisma.QuestionnairePhaseReviewOrderByWithAggregationInput[];
162
+ by: Prisma.QuestionnairePhaseReviewScalarFieldEnum[] | Prisma.QuestionnairePhaseReviewScalarFieldEnum;
163
+ having?: Prisma.QuestionnairePhaseReviewScalarWhereWithAggregatesInput;
164
+ take?: number;
165
+ skip?: number;
166
+ _count?: QuestionnairePhaseReviewCountAggregateInputType | true;
167
+ _avg?: QuestionnairePhaseReviewAvgAggregateInputType;
168
+ _sum?: QuestionnairePhaseReviewSumAggregateInputType;
169
+ _min?: QuestionnairePhaseReviewMinAggregateInputType;
170
+ _max?: QuestionnairePhaseReviewMaxAggregateInputType;
171
+ };
172
+ export type QuestionnairePhaseReviewGroupByOutputType = {
173
+ id: string;
174
+ tenantId: string;
175
+ questionnairePhaseId: string;
176
+ reviewerId: string;
177
+ decision: $Enums.ReviewDecision;
178
+ notes: string | null;
179
+ scoreAtReview: number | null;
180
+ passedAtReview: boolean | null;
181
+ createdAt: Date;
182
+ _count: QuestionnairePhaseReviewCountAggregateOutputType | null;
183
+ _avg: QuestionnairePhaseReviewAvgAggregateOutputType | null;
184
+ _sum: QuestionnairePhaseReviewSumAggregateOutputType | null;
185
+ _min: QuestionnairePhaseReviewMinAggregateOutputType | null;
186
+ _max: QuestionnairePhaseReviewMaxAggregateOutputType | null;
187
+ };
188
+ type GetQuestionnairePhaseReviewGroupByPayload<T extends QuestionnairePhaseReviewGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<QuestionnairePhaseReviewGroupByOutputType, T['by']> & {
189
+ [P in ((keyof T) & (keyof QuestionnairePhaseReviewGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], QuestionnairePhaseReviewGroupByOutputType[P]> : Prisma.GetScalarType<T[P], QuestionnairePhaseReviewGroupByOutputType[P]>;
190
+ }>>;
191
+ export type QuestionnairePhaseReviewWhereInput = {
192
+ AND?: Prisma.QuestionnairePhaseReviewWhereInput | Prisma.QuestionnairePhaseReviewWhereInput[];
193
+ OR?: Prisma.QuestionnairePhaseReviewWhereInput[];
194
+ NOT?: Prisma.QuestionnairePhaseReviewWhereInput | Prisma.QuestionnairePhaseReviewWhereInput[];
195
+ id?: Prisma.StringFilter<"QuestionnairePhaseReview"> | string;
196
+ tenantId?: Prisma.StringFilter<"QuestionnairePhaseReview"> | string;
197
+ questionnairePhaseId?: Prisma.StringFilter<"QuestionnairePhaseReview"> | string;
198
+ reviewerId?: Prisma.StringFilter<"QuestionnairePhaseReview"> | string;
199
+ decision?: Prisma.EnumReviewDecisionFilter<"QuestionnairePhaseReview"> | $Enums.ReviewDecision;
200
+ notes?: Prisma.StringNullableFilter<"QuestionnairePhaseReview"> | string | null;
201
+ scoreAtReview?: Prisma.IntNullableFilter<"QuestionnairePhaseReview"> | number | null;
202
+ passedAtReview?: Prisma.BoolNullableFilter<"QuestionnairePhaseReview"> | boolean | null;
203
+ createdAt?: Prisma.DateTimeFilter<"QuestionnairePhaseReview"> | Date | string;
204
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
205
+ questionnairePhase?: Prisma.XOR<Prisma.QuestionnairePhaseScalarRelationFilter, Prisma.QuestionnairePhaseWhereInput>;
206
+ reviewer?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
207
+ };
208
+ export type QuestionnairePhaseReviewOrderByWithRelationInput = {
209
+ id?: Prisma.SortOrder;
210
+ tenantId?: Prisma.SortOrder;
211
+ questionnairePhaseId?: Prisma.SortOrder;
212
+ reviewerId?: Prisma.SortOrder;
213
+ decision?: Prisma.SortOrder;
214
+ notes?: Prisma.SortOrderInput | Prisma.SortOrder;
215
+ scoreAtReview?: Prisma.SortOrderInput | Prisma.SortOrder;
216
+ passedAtReview?: Prisma.SortOrderInput | Prisma.SortOrder;
217
+ createdAt?: Prisma.SortOrder;
218
+ tenant?: Prisma.TenantOrderByWithRelationInput;
219
+ questionnairePhase?: Prisma.QuestionnairePhaseOrderByWithRelationInput;
220
+ reviewer?: Prisma.UserOrderByWithRelationInput;
221
+ _relevance?: Prisma.QuestionnairePhaseReviewOrderByRelevanceInput;
222
+ };
223
+ export type QuestionnairePhaseReviewWhereUniqueInput = Prisma.AtLeast<{
224
+ id?: string;
225
+ AND?: Prisma.QuestionnairePhaseReviewWhereInput | Prisma.QuestionnairePhaseReviewWhereInput[];
226
+ OR?: Prisma.QuestionnairePhaseReviewWhereInput[];
227
+ NOT?: Prisma.QuestionnairePhaseReviewWhereInput | Prisma.QuestionnairePhaseReviewWhereInput[];
228
+ tenantId?: Prisma.StringFilter<"QuestionnairePhaseReview"> | string;
229
+ questionnairePhaseId?: Prisma.StringFilter<"QuestionnairePhaseReview"> | string;
230
+ reviewerId?: Prisma.StringFilter<"QuestionnairePhaseReview"> | string;
231
+ decision?: Prisma.EnumReviewDecisionFilter<"QuestionnairePhaseReview"> | $Enums.ReviewDecision;
232
+ notes?: Prisma.StringNullableFilter<"QuestionnairePhaseReview"> | string | null;
233
+ scoreAtReview?: Prisma.IntNullableFilter<"QuestionnairePhaseReview"> | number | null;
234
+ passedAtReview?: Prisma.BoolNullableFilter<"QuestionnairePhaseReview"> | boolean | null;
235
+ createdAt?: Prisma.DateTimeFilter<"QuestionnairePhaseReview"> | Date | string;
236
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
237
+ questionnairePhase?: Prisma.XOR<Prisma.QuestionnairePhaseScalarRelationFilter, Prisma.QuestionnairePhaseWhereInput>;
238
+ reviewer?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
239
+ }, "id">;
240
+ export type QuestionnairePhaseReviewOrderByWithAggregationInput = {
241
+ id?: Prisma.SortOrder;
242
+ tenantId?: Prisma.SortOrder;
243
+ questionnairePhaseId?: Prisma.SortOrder;
244
+ reviewerId?: Prisma.SortOrder;
245
+ decision?: Prisma.SortOrder;
246
+ notes?: Prisma.SortOrderInput | Prisma.SortOrder;
247
+ scoreAtReview?: Prisma.SortOrderInput | Prisma.SortOrder;
248
+ passedAtReview?: Prisma.SortOrderInput | Prisma.SortOrder;
249
+ createdAt?: Prisma.SortOrder;
250
+ _count?: Prisma.QuestionnairePhaseReviewCountOrderByAggregateInput;
251
+ _avg?: Prisma.QuestionnairePhaseReviewAvgOrderByAggregateInput;
252
+ _max?: Prisma.QuestionnairePhaseReviewMaxOrderByAggregateInput;
253
+ _min?: Prisma.QuestionnairePhaseReviewMinOrderByAggregateInput;
254
+ _sum?: Prisma.QuestionnairePhaseReviewSumOrderByAggregateInput;
255
+ };
256
+ export type QuestionnairePhaseReviewScalarWhereWithAggregatesInput = {
257
+ AND?: Prisma.QuestionnairePhaseReviewScalarWhereWithAggregatesInput | Prisma.QuestionnairePhaseReviewScalarWhereWithAggregatesInput[];
258
+ OR?: Prisma.QuestionnairePhaseReviewScalarWhereWithAggregatesInput[];
259
+ NOT?: Prisma.QuestionnairePhaseReviewScalarWhereWithAggregatesInput | Prisma.QuestionnairePhaseReviewScalarWhereWithAggregatesInput[];
260
+ id?: Prisma.StringWithAggregatesFilter<"QuestionnairePhaseReview"> | string;
261
+ tenantId?: Prisma.StringWithAggregatesFilter<"QuestionnairePhaseReview"> | string;
262
+ questionnairePhaseId?: Prisma.StringWithAggregatesFilter<"QuestionnairePhaseReview"> | string;
263
+ reviewerId?: Prisma.StringWithAggregatesFilter<"QuestionnairePhaseReview"> | string;
264
+ decision?: Prisma.EnumReviewDecisionWithAggregatesFilter<"QuestionnairePhaseReview"> | $Enums.ReviewDecision;
265
+ notes?: Prisma.StringNullableWithAggregatesFilter<"QuestionnairePhaseReview"> | string | null;
266
+ scoreAtReview?: Prisma.IntNullableWithAggregatesFilter<"QuestionnairePhaseReview"> | number | null;
267
+ passedAtReview?: Prisma.BoolNullableWithAggregatesFilter<"QuestionnairePhaseReview"> | boolean | null;
268
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"QuestionnairePhaseReview"> | Date | string;
269
+ };
270
+ export type QuestionnairePhaseReviewCreateInput = {
271
+ id?: string;
272
+ decision: $Enums.ReviewDecision;
273
+ notes?: string | null;
274
+ scoreAtReview?: number | null;
275
+ passedAtReview?: boolean | null;
276
+ createdAt?: Date | string;
277
+ tenant: Prisma.TenantCreateNestedOneWithoutQuestionnairePhaseReviewsInput;
278
+ questionnairePhase: Prisma.QuestionnairePhaseCreateNestedOneWithoutReviewsInput;
279
+ reviewer: Prisma.UserCreateNestedOneWithoutQuestionnaireReviewsInput;
280
+ };
281
+ export type QuestionnairePhaseReviewUncheckedCreateInput = {
282
+ id?: string;
283
+ tenantId: string;
284
+ questionnairePhaseId: string;
285
+ reviewerId: string;
286
+ decision: $Enums.ReviewDecision;
287
+ notes?: string | null;
288
+ scoreAtReview?: number | null;
289
+ passedAtReview?: boolean | null;
290
+ createdAt?: Date | string;
291
+ };
292
+ export type QuestionnairePhaseReviewUpdateInput = {
293
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
294
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
295
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
296
+ scoreAtReview?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
297
+ passedAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
298
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
299
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutQuestionnairePhaseReviewsNestedInput;
300
+ questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneRequiredWithoutReviewsNestedInput;
301
+ reviewer?: Prisma.UserUpdateOneRequiredWithoutQuestionnaireReviewsNestedInput;
302
+ };
303
+ export type QuestionnairePhaseReviewUncheckedUpdateInput = {
304
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
305
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
306
+ questionnairePhaseId?: Prisma.StringFieldUpdateOperationsInput | string;
307
+ reviewerId?: Prisma.StringFieldUpdateOperationsInput | string;
308
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
309
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
310
+ scoreAtReview?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
311
+ passedAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
312
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
313
+ };
314
+ export type QuestionnairePhaseReviewCreateManyInput = {
315
+ id?: string;
316
+ tenantId: string;
317
+ questionnairePhaseId: string;
318
+ reviewerId: string;
319
+ decision: $Enums.ReviewDecision;
320
+ notes?: string | null;
321
+ scoreAtReview?: number | null;
322
+ passedAtReview?: boolean | null;
323
+ createdAt?: Date | string;
324
+ };
325
+ export type QuestionnairePhaseReviewUpdateManyMutationInput = {
326
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
327
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
328
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
329
+ scoreAtReview?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
330
+ passedAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
331
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
332
+ };
333
+ export type QuestionnairePhaseReviewUncheckedUpdateManyInput = {
334
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
335
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
336
+ questionnairePhaseId?: Prisma.StringFieldUpdateOperationsInput | string;
337
+ reviewerId?: Prisma.StringFieldUpdateOperationsInput | string;
338
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
339
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
340
+ scoreAtReview?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
341
+ passedAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
342
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
343
+ };
344
+ export type QuestionnairePhaseReviewListRelationFilter = {
345
+ every?: Prisma.QuestionnairePhaseReviewWhereInput;
346
+ some?: Prisma.QuestionnairePhaseReviewWhereInput;
347
+ none?: Prisma.QuestionnairePhaseReviewWhereInput;
348
+ };
349
+ export type QuestionnairePhaseReviewOrderByRelationAggregateInput = {
350
+ _count?: Prisma.SortOrder;
351
+ };
352
+ export type QuestionnairePhaseReviewOrderByRelevanceInput = {
353
+ fields: Prisma.QuestionnairePhaseReviewOrderByRelevanceFieldEnum | Prisma.QuestionnairePhaseReviewOrderByRelevanceFieldEnum[];
354
+ sort: Prisma.SortOrder;
355
+ search: string;
356
+ };
357
+ export type QuestionnairePhaseReviewCountOrderByAggregateInput = {
358
+ id?: Prisma.SortOrder;
359
+ tenantId?: Prisma.SortOrder;
360
+ questionnairePhaseId?: Prisma.SortOrder;
361
+ reviewerId?: Prisma.SortOrder;
362
+ decision?: Prisma.SortOrder;
363
+ notes?: Prisma.SortOrder;
364
+ scoreAtReview?: Prisma.SortOrder;
365
+ passedAtReview?: Prisma.SortOrder;
366
+ createdAt?: Prisma.SortOrder;
367
+ };
368
+ export type QuestionnairePhaseReviewAvgOrderByAggregateInput = {
369
+ scoreAtReview?: Prisma.SortOrder;
370
+ };
371
+ export type QuestionnairePhaseReviewMaxOrderByAggregateInput = {
372
+ id?: Prisma.SortOrder;
373
+ tenantId?: Prisma.SortOrder;
374
+ questionnairePhaseId?: Prisma.SortOrder;
375
+ reviewerId?: Prisma.SortOrder;
376
+ decision?: Prisma.SortOrder;
377
+ notes?: Prisma.SortOrder;
378
+ scoreAtReview?: Prisma.SortOrder;
379
+ passedAtReview?: Prisma.SortOrder;
380
+ createdAt?: Prisma.SortOrder;
381
+ };
382
+ export type QuestionnairePhaseReviewMinOrderByAggregateInput = {
383
+ id?: Prisma.SortOrder;
384
+ tenantId?: Prisma.SortOrder;
385
+ questionnairePhaseId?: Prisma.SortOrder;
386
+ reviewerId?: Prisma.SortOrder;
387
+ decision?: Prisma.SortOrder;
388
+ notes?: Prisma.SortOrder;
389
+ scoreAtReview?: Prisma.SortOrder;
390
+ passedAtReview?: Prisma.SortOrder;
391
+ createdAt?: Prisma.SortOrder;
392
+ };
393
+ export type QuestionnairePhaseReviewSumOrderByAggregateInput = {
394
+ scoreAtReview?: Prisma.SortOrder;
395
+ };
396
+ export type QuestionnairePhaseReviewCreateNestedManyWithoutReviewerInput = {
397
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutReviewerInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutReviewerInput> | Prisma.QuestionnairePhaseReviewCreateWithoutReviewerInput[] | Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutReviewerInput[];
398
+ connectOrCreate?: Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutReviewerInput | Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutReviewerInput[];
399
+ createMany?: Prisma.QuestionnairePhaseReviewCreateManyReviewerInputEnvelope;
400
+ connect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
401
+ };
402
+ export type QuestionnairePhaseReviewUncheckedCreateNestedManyWithoutReviewerInput = {
403
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutReviewerInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutReviewerInput> | Prisma.QuestionnairePhaseReviewCreateWithoutReviewerInput[] | Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutReviewerInput[];
404
+ connectOrCreate?: Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutReviewerInput | Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutReviewerInput[];
405
+ createMany?: Prisma.QuestionnairePhaseReviewCreateManyReviewerInputEnvelope;
406
+ connect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
407
+ };
408
+ export type QuestionnairePhaseReviewUpdateManyWithoutReviewerNestedInput = {
409
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutReviewerInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutReviewerInput> | Prisma.QuestionnairePhaseReviewCreateWithoutReviewerInput[] | Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutReviewerInput[];
410
+ connectOrCreate?: Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutReviewerInput | Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutReviewerInput[];
411
+ upsert?: Prisma.QuestionnairePhaseReviewUpsertWithWhereUniqueWithoutReviewerInput | Prisma.QuestionnairePhaseReviewUpsertWithWhereUniqueWithoutReviewerInput[];
412
+ createMany?: Prisma.QuestionnairePhaseReviewCreateManyReviewerInputEnvelope;
413
+ set?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
414
+ disconnect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
415
+ delete?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
416
+ connect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
417
+ update?: Prisma.QuestionnairePhaseReviewUpdateWithWhereUniqueWithoutReviewerInput | Prisma.QuestionnairePhaseReviewUpdateWithWhereUniqueWithoutReviewerInput[];
418
+ updateMany?: Prisma.QuestionnairePhaseReviewUpdateManyWithWhereWithoutReviewerInput | Prisma.QuestionnairePhaseReviewUpdateManyWithWhereWithoutReviewerInput[];
419
+ deleteMany?: Prisma.QuestionnairePhaseReviewScalarWhereInput | Prisma.QuestionnairePhaseReviewScalarWhereInput[];
420
+ };
421
+ export type QuestionnairePhaseReviewUncheckedUpdateManyWithoutReviewerNestedInput = {
422
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutReviewerInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutReviewerInput> | Prisma.QuestionnairePhaseReviewCreateWithoutReviewerInput[] | Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutReviewerInput[];
423
+ connectOrCreate?: Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutReviewerInput | Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutReviewerInput[];
424
+ upsert?: Prisma.QuestionnairePhaseReviewUpsertWithWhereUniqueWithoutReviewerInput | Prisma.QuestionnairePhaseReviewUpsertWithWhereUniqueWithoutReviewerInput[];
425
+ createMany?: Prisma.QuestionnairePhaseReviewCreateManyReviewerInputEnvelope;
426
+ set?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
427
+ disconnect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
428
+ delete?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
429
+ connect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
430
+ update?: Prisma.QuestionnairePhaseReviewUpdateWithWhereUniqueWithoutReviewerInput | Prisma.QuestionnairePhaseReviewUpdateWithWhereUniqueWithoutReviewerInput[];
431
+ updateMany?: Prisma.QuestionnairePhaseReviewUpdateManyWithWhereWithoutReviewerInput | Prisma.QuestionnairePhaseReviewUpdateManyWithWhereWithoutReviewerInput[];
432
+ deleteMany?: Prisma.QuestionnairePhaseReviewScalarWhereInput | Prisma.QuestionnairePhaseReviewScalarWhereInput[];
433
+ };
434
+ export type QuestionnairePhaseReviewCreateNestedManyWithoutTenantInput = {
435
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutTenantInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutTenantInput> | Prisma.QuestionnairePhaseReviewCreateWithoutTenantInput[] | Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutTenantInput[];
436
+ connectOrCreate?: Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutTenantInput | Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutTenantInput[];
437
+ createMany?: Prisma.QuestionnairePhaseReviewCreateManyTenantInputEnvelope;
438
+ connect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
439
+ };
440
+ export type QuestionnairePhaseReviewUncheckedCreateNestedManyWithoutTenantInput = {
441
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutTenantInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutTenantInput> | Prisma.QuestionnairePhaseReviewCreateWithoutTenantInput[] | Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutTenantInput[];
442
+ connectOrCreate?: Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutTenantInput | Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutTenantInput[];
443
+ createMany?: Prisma.QuestionnairePhaseReviewCreateManyTenantInputEnvelope;
444
+ connect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
445
+ };
446
+ export type QuestionnairePhaseReviewUpdateManyWithoutTenantNestedInput = {
447
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutTenantInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutTenantInput> | Prisma.QuestionnairePhaseReviewCreateWithoutTenantInput[] | Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutTenantInput[];
448
+ connectOrCreate?: Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutTenantInput | Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutTenantInput[];
449
+ upsert?: Prisma.QuestionnairePhaseReviewUpsertWithWhereUniqueWithoutTenantInput | Prisma.QuestionnairePhaseReviewUpsertWithWhereUniqueWithoutTenantInput[];
450
+ createMany?: Prisma.QuestionnairePhaseReviewCreateManyTenantInputEnvelope;
451
+ set?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
452
+ disconnect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
453
+ delete?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
454
+ connect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
455
+ update?: Prisma.QuestionnairePhaseReviewUpdateWithWhereUniqueWithoutTenantInput | Prisma.QuestionnairePhaseReviewUpdateWithWhereUniqueWithoutTenantInput[];
456
+ updateMany?: Prisma.QuestionnairePhaseReviewUpdateManyWithWhereWithoutTenantInput | Prisma.QuestionnairePhaseReviewUpdateManyWithWhereWithoutTenantInput[];
457
+ deleteMany?: Prisma.QuestionnairePhaseReviewScalarWhereInput | Prisma.QuestionnairePhaseReviewScalarWhereInput[];
458
+ };
459
+ export type QuestionnairePhaseReviewUncheckedUpdateManyWithoutTenantNestedInput = {
460
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutTenantInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutTenantInput> | Prisma.QuestionnairePhaseReviewCreateWithoutTenantInput[] | Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutTenantInput[];
461
+ connectOrCreate?: Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutTenantInput | Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutTenantInput[];
462
+ upsert?: Prisma.QuestionnairePhaseReviewUpsertWithWhereUniqueWithoutTenantInput | Prisma.QuestionnairePhaseReviewUpsertWithWhereUniqueWithoutTenantInput[];
463
+ createMany?: Prisma.QuestionnairePhaseReviewCreateManyTenantInputEnvelope;
464
+ set?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
465
+ disconnect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
466
+ delete?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
467
+ connect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
468
+ update?: Prisma.QuestionnairePhaseReviewUpdateWithWhereUniqueWithoutTenantInput | Prisma.QuestionnairePhaseReviewUpdateWithWhereUniqueWithoutTenantInput[];
469
+ updateMany?: Prisma.QuestionnairePhaseReviewUpdateManyWithWhereWithoutTenantInput | Prisma.QuestionnairePhaseReviewUpdateManyWithWhereWithoutTenantInput[];
470
+ deleteMany?: Prisma.QuestionnairePhaseReviewScalarWhereInput | Prisma.QuestionnairePhaseReviewScalarWhereInput[];
471
+ };
472
+ export type QuestionnairePhaseReviewCreateNestedManyWithoutQuestionnairePhaseInput = {
473
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutQuestionnairePhaseInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutQuestionnairePhaseInput> | Prisma.QuestionnairePhaseReviewCreateWithoutQuestionnairePhaseInput[] | Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutQuestionnairePhaseInput[];
474
+ connectOrCreate?: Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutQuestionnairePhaseInput | Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutQuestionnairePhaseInput[];
475
+ createMany?: Prisma.QuestionnairePhaseReviewCreateManyQuestionnairePhaseInputEnvelope;
476
+ connect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
477
+ };
478
+ export type QuestionnairePhaseReviewUncheckedCreateNestedManyWithoutQuestionnairePhaseInput = {
479
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutQuestionnairePhaseInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutQuestionnairePhaseInput> | Prisma.QuestionnairePhaseReviewCreateWithoutQuestionnairePhaseInput[] | Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutQuestionnairePhaseInput[];
480
+ connectOrCreate?: Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutQuestionnairePhaseInput | Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutQuestionnairePhaseInput[];
481
+ createMany?: Prisma.QuestionnairePhaseReviewCreateManyQuestionnairePhaseInputEnvelope;
482
+ connect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
483
+ };
484
+ export type QuestionnairePhaseReviewUpdateManyWithoutQuestionnairePhaseNestedInput = {
485
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutQuestionnairePhaseInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutQuestionnairePhaseInput> | Prisma.QuestionnairePhaseReviewCreateWithoutQuestionnairePhaseInput[] | Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutQuestionnairePhaseInput[];
486
+ connectOrCreate?: Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutQuestionnairePhaseInput | Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutQuestionnairePhaseInput[];
487
+ upsert?: Prisma.QuestionnairePhaseReviewUpsertWithWhereUniqueWithoutQuestionnairePhaseInput | Prisma.QuestionnairePhaseReviewUpsertWithWhereUniqueWithoutQuestionnairePhaseInput[];
488
+ createMany?: Prisma.QuestionnairePhaseReviewCreateManyQuestionnairePhaseInputEnvelope;
489
+ set?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
490
+ disconnect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
491
+ delete?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
492
+ connect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
493
+ update?: Prisma.QuestionnairePhaseReviewUpdateWithWhereUniqueWithoutQuestionnairePhaseInput | Prisma.QuestionnairePhaseReviewUpdateWithWhereUniqueWithoutQuestionnairePhaseInput[];
494
+ updateMany?: Prisma.QuestionnairePhaseReviewUpdateManyWithWhereWithoutQuestionnairePhaseInput | Prisma.QuestionnairePhaseReviewUpdateManyWithWhereWithoutQuestionnairePhaseInput[];
495
+ deleteMany?: Prisma.QuestionnairePhaseReviewScalarWhereInput | Prisma.QuestionnairePhaseReviewScalarWhereInput[];
496
+ };
497
+ export type QuestionnairePhaseReviewUncheckedUpdateManyWithoutQuestionnairePhaseNestedInput = {
498
+ create?: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutQuestionnairePhaseInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutQuestionnairePhaseInput> | Prisma.QuestionnairePhaseReviewCreateWithoutQuestionnairePhaseInput[] | Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutQuestionnairePhaseInput[];
499
+ connectOrCreate?: Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutQuestionnairePhaseInput | Prisma.QuestionnairePhaseReviewCreateOrConnectWithoutQuestionnairePhaseInput[];
500
+ upsert?: Prisma.QuestionnairePhaseReviewUpsertWithWhereUniqueWithoutQuestionnairePhaseInput | Prisma.QuestionnairePhaseReviewUpsertWithWhereUniqueWithoutQuestionnairePhaseInput[];
501
+ createMany?: Prisma.QuestionnairePhaseReviewCreateManyQuestionnairePhaseInputEnvelope;
502
+ set?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
503
+ disconnect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
504
+ delete?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
505
+ connect?: Prisma.QuestionnairePhaseReviewWhereUniqueInput | Prisma.QuestionnairePhaseReviewWhereUniqueInput[];
506
+ update?: Prisma.QuestionnairePhaseReviewUpdateWithWhereUniqueWithoutQuestionnairePhaseInput | Prisma.QuestionnairePhaseReviewUpdateWithWhereUniqueWithoutQuestionnairePhaseInput[];
507
+ updateMany?: Prisma.QuestionnairePhaseReviewUpdateManyWithWhereWithoutQuestionnairePhaseInput | Prisma.QuestionnairePhaseReviewUpdateManyWithWhereWithoutQuestionnairePhaseInput[];
508
+ deleteMany?: Prisma.QuestionnairePhaseReviewScalarWhereInput | Prisma.QuestionnairePhaseReviewScalarWhereInput[];
509
+ };
510
+ export type EnumReviewDecisionFieldUpdateOperationsInput = {
511
+ set?: $Enums.ReviewDecision;
512
+ };
513
+ export type QuestionnairePhaseReviewCreateWithoutReviewerInput = {
514
+ id?: string;
515
+ decision: $Enums.ReviewDecision;
516
+ notes?: string | null;
517
+ scoreAtReview?: number | null;
518
+ passedAtReview?: boolean | null;
519
+ createdAt?: Date | string;
520
+ tenant: Prisma.TenantCreateNestedOneWithoutQuestionnairePhaseReviewsInput;
521
+ questionnairePhase: Prisma.QuestionnairePhaseCreateNestedOneWithoutReviewsInput;
522
+ };
523
+ export type QuestionnairePhaseReviewUncheckedCreateWithoutReviewerInput = {
524
+ id?: string;
525
+ tenantId: string;
526
+ questionnairePhaseId: string;
527
+ decision: $Enums.ReviewDecision;
528
+ notes?: string | null;
529
+ scoreAtReview?: number | null;
530
+ passedAtReview?: boolean | null;
531
+ createdAt?: Date | string;
532
+ };
533
+ export type QuestionnairePhaseReviewCreateOrConnectWithoutReviewerInput = {
534
+ where: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
535
+ create: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutReviewerInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutReviewerInput>;
536
+ };
537
+ export type QuestionnairePhaseReviewCreateManyReviewerInputEnvelope = {
538
+ data: Prisma.QuestionnairePhaseReviewCreateManyReviewerInput | Prisma.QuestionnairePhaseReviewCreateManyReviewerInput[];
539
+ skipDuplicates?: boolean;
540
+ };
541
+ export type QuestionnairePhaseReviewUpsertWithWhereUniqueWithoutReviewerInput = {
542
+ where: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
543
+ update: Prisma.XOR<Prisma.QuestionnairePhaseReviewUpdateWithoutReviewerInput, Prisma.QuestionnairePhaseReviewUncheckedUpdateWithoutReviewerInput>;
544
+ create: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutReviewerInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutReviewerInput>;
545
+ };
546
+ export type QuestionnairePhaseReviewUpdateWithWhereUniqueWithoutReviewerInput = {
547
+ where: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
548
+ data: Prisma.XOR<Prisma.QuestionnairePhaseReviewUpdateWithoutReviewerInput, Prisma.QuestionnairePhaseReviewUncheckedUpdateWithoutReviewerInput>;
549
+ };
550
+ export type QuestionnairePhaseReviewUpdateManyWithWhereWithoutReviewerInput = {
551
+ where: Prisma.QuestionnairePhaseReviewScalarWhereInput;
552
+ data: Prisma.XOR<Prisma.QuestionnairePhaseReviewUpdateManyMutationInput, Prisma.QuestionnairePhaseReviewUncheckedUpdateManyWithoutReviewerInput>;
553
+ };
554
+ export type QuestionnairePhaseReviewScalarWhereInput = {
555
+ AND?: Prisma.QuestionnairePhaseReviewScalarWhereInput | Prisma.QuestionnairePhaseReviewScalarWhereInput[];
556
+ OR?: Prisma.QuestionnairePhaseReviewScalarWhereInput[];
557
+ NOT?: Prisma.QuestionnairePhaseReviewScalarWhereInput | Prisma.QuestionnairePhaseReviewScalarWhereInput[];
558
+ id?: Prisma.StringFilter<"QuestionnairePhaseReview"> | string;
559
+ tenantId?: Prisma.StringFilter<"QuestionnairePhaseReview"> | string;
560
+ questionnairePhaseId?: Prisma.StringFilter<"QuestionnairePhaseReview"> | string;
561
+ reviewerId?: Prisma.StringFilter<"QuestionnairePhaseReview"> | string;
562
+ decision?: Prisma.EnumReviewDecisionFilter<"QuestionnairePhaseReview"> | $Enums.ReviewDecision;
563
+ notes?: Prisma.StringNullableFilter<"QuestionnairePhaseReview"> | string | null;
564
+ scoreAtReview?: Prisma.IntNullableFilter<"QuestionnairePhaseReview"> | number | null;
565
+ passedAtReview?: Prisma.BoolNullableFilter<"QuestionnairePhaseReview"> | boolean | null;
566
+ createdAt?: Prisma.DateTimeFilter<"QuestionnairePhaseReview"> | Date | string;
567
+ };
568
+ export type QuestionnairePhaseReviewCreateWithoutTenantInput = {
569
+ id?: string;
570
+ decision: $Enums.ReviewDecision;
571
+ notes?: string | null;
572
+ scoreAtReview?: number | null;
573
+ passedAtReview?: boolean | null;
574
+ createdAt?: Date | string;
575
+ questionnairePhase: Prisma.QuestionnairePhaseCreateNestedOneWithoutReviewsInput;
576
+ reviewer: Prisma.UserCreateNestedOneWithoutQuestionnaireReviewsInput;
577
+ };
578
+ export type QuestionnairePhaseReviewUncheckedCreateWithoutTenantInput = {
579
+ id?: string;
580
+ questionnairePhaseId: string;
581
+ reviewerId: string;
582
+ decision: $Enums.ReviewDecision;
583
+ notes?: string | null;
584
+ scoreAtReview?: number | null;
585
+ passedAtReview?: boolean | null;
586
+ createdAt?: Date | string;
587
+ };
588
+ export type QuestionnairePhaseReviewCreateOrConnectWithoutTenantInput = {
589
+ where: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
590
+ create: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutTenantInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutTenantInput>;
591
+ };
592
+ export type QuestionnairePhaseReviewCreateManyTenantInputEnvelope = {
593
+ data: Prisma.QuestionnairePhaseReviewCreateManyTenantInput | Prisma.QuestionnairePhaseReviewCreateManyTenantInput[];
594
+ skipDuplicates?: boolean;
595
+ };
596
+ export type QuestionnairePhaseReviewUpsertWithWhereUniqueWithoutTenantInput = {
597
+ where: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
598
+ update: Prisma.XOR<Prisma.QuestionnairePhaseReviewUpdateWithoutTenantInput, Prisma.QuestionnairePhaseReviewUncheckedUpdateWithoutTenantInput>;
599
+ create: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutTenantInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutTenantInput>;
600
+ };
601
+ export type QuestionnairePhaseReviewUpdateWithWhereUniqueWithoutTenantInput = {
602
+ where: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
603
+ data: Prisma.XOR<Prisma.QuestionnairePhaseReviewUpdateWithoutTenantInput, Prisma.QuestionnairePhaseReviewUncheckedUpdateWithoutTenantInput>;
604
+ };
605
+ export type QuestionnairePhaseReviewUpdateManyWithWhereWithoutTenantInput = {
606
+ where: Prisma.QuestionnairePhaseReviewScalarWhereInput;
607
+ data: Prisma.XOR<Prisma.QuestionnairePhaseReviewUpdateManyMutationInput, Prisma.QuestionnairePhaseReviewUncheckedUpdateManyWithoutTenantInput>;
608
+ };
609
+ export type QuestionnairePhaseReviewCreateWithoutQuestionnairePhaseInput = {
610
+ id?: string;
611
+ decision: $Enums.ReviewDecision;
612
+ notes?: string | null;
613
+ scoreAtReview?: number | null;
614
+ passedAtReview?: boolean | null;
615
+ createdAt?: Date | string;
616
+ tenant: Prisma.TenantCreateNestedOneWithoutQuestionnairePhaseReviewsInput;
617
+ reviewer: Prisma.UserCreateNestedOneWithoutQuestionnaireReviewsInput;
618
+ };
619
+ export type QuestionnairePhaseReviewUncheckedCreateWithoutQuestionnairePhaseInput = {
620
+ id?: string;
621
+ tenantId: string;
622
+ reviewerId: string;
623
+ decision: $Enums.ReviewDecision;
624
+ notes?: string | null;
625
+ scoreAtReview?: number | null;
626
+ passedAtReview?: boolean | null;
627
+ createdAt?: Date | string;
628
+ };
629
+ export type QuestionnairePhaseReviewCreateOrConnectWithoutQuestionnairePhaseInput = {
630
+ where: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
631
+ create: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutQuestionnairePhaseInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutQuestionnairePhaseInput>;
632
+ };
633
+ export type QuestionnairePhaseReviewCreateManyQuestionnairePhaseInputEnvelope = {
634
+ data: Prisma.QuestionnairePhaseReviewCreateManyQuestionnairePhaseInput | Prisma.QuestionnairePhaseReviewCreateManyQuestionnairePhaseInput[];
635
+ skipDuplicates?: boolean;
636
+ };
637
+ export type QuestionnairePhaseReviewUpsertWithWhereUniqueWithoutQuestionnairePhaseInput = {
638
+ where: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
639
+ update: Prisma.XOR<Prisma.QuestionnairePhaseReviewUpdateWithoutQuestionnairePhaseInput, Prisma.QuestionnairePhaseReviewUncheckedUpdateWithoutQuestionnairePhaseInput>;
640
+ create: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateWithoutQuestionnairePhaseInput, Prisma.QuestionnairePhaseReviewUncheckedCreateWithoutQuestionnairePhaseInput>;
641
+ };
642
+ export type QuestionnairePhaseReviewUpdateWithWhereUniqueWithoutQuestionnairePhaseInput = {
643
+ where: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
644
+ data: Prisma.XOR<Prisma.QuestionnairePhaseReviewUpdateWithoutQuestionnairePhaseInput, Prisma.QuestionnairePhaseReviewUncheckedUpdateWithoutQuestionnairePhaseInput>;
645
+ };
646
+ export type QuestionnairePhaseReviewUpdateManyWithWhereWithoutQuestionnairePhaseInput = {
647
+ where: Prisma.QuestionnairePhaseReviewScalarWhereInput;
648
+ data: Prisma.XOR<Prisma.QuestionnairePhaseReviewUpdateManyMutationInput, Prisma.QuestionnairePhaseReviewUncheckedUpdateManyWithoutQuestionnairePhaseInput>;
649
+ };
650
+ export type QuestionnairePhaseReviewCreateManyReviewerInput = {
651
+ id?: string;
652
+ tenantId: string;
653
+ questionnairePhaseId: string;
654
+ decision: $Enums.ReviewDecision;
655
+ notes?: string | null;
656
+ scoreAtReview?: number | null;
657
+ passedAtReview?: boolean | null;
658
+ createdAt?: Date | string;
659
+ };
660
+ export type QuestionnairePhaseReviewUpdateWithoutReviewerInput = {
661
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
662
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
663
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
664
+ scoreAtReview?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
665
+ passedAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
666
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
667
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutQuestionnairePhaseReviewsNestedInput;
668
+ questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneRequiredWithoutReviewsNestedInput;
669
+ };
670
+ export type QuestionnairePhaseReviewUncheckedUpdateWithoutReviewerInput = {
671
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
672
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
673
+ questionnairePhaseId?: Prisma.StringFieldUpdateOperationsInput | string;
674
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
675
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
676
+ scoreAtReview?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
677
+ passedAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
678
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
679
+ };
680
+ export type QuestionnairePhaseReviewUncheckedUpdateManyWithoutReviewerInput = {
681
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
682
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
683
+ questionnairePhaseId?: Prisma.StringFieldUpdateOperationsInput | string;
684
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
685
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
686
+ scoreAtReview?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
687
+ passedAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
688
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
689
+ };
690
+ export type QuestionnairePhaseReviewCreateManyTenantInput = {
691
+ id?: string;
692
+ questionnairePhaseId: string;
693
+ reviewerId: string;
694
+ decision: $Enums.ReviewDecision;
695
+ notes?: string | null;
696
+ scoreAtReview?: number | null;
697
+ passedAtReview?: boolean | null;
698
+ createdAt?: Date | string;
699
+ };
700
+ export type QuestionnairePhaseReviewUpdateWithoutTenantInput = {
701
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
702
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
703
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
704
+ scoreAtReview?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
705
+ passedAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
706
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
707
+ questionnairePhase?: Prisma.QuestionnairePhaseUpdateOneRequiredWithoutReviewsNestedInput;
708
+ reviewer?: Prisma.UserUpdateOneRequiredWithoutQuestionnaireReviewsNestedInput;
709
+ };
710
+ export type QuestionnairePhaseReviewUncheckedUpdateWithoutTenantInput = {
711
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
712
+ questionnairePhaseId?: Prisma.StringFieldUpdateOperationsInput | string;
713
+ reviewerId?: Prisma.StringFieldUpdateOperationsInput | string;
714
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
715
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
716
+ scoreAtReview?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
717
+ passedAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
718
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
719
+ };
720
+ export type QuestionnairePhaseReviewUncheckedUpdateManyWithoutTenantInput = {
721
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
722
+ questionnairePhaseId?: Prisma.StringFieldUpdateOperationsInput | string;
723
+ reviewerId?: Prisma.StringFieldUpdateOperationsInput | string;
724
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
725
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
726
+ scoreAtReview?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
727
+ passedAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
728
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
729
+ };
730
+ export type QuestionnairePhaseReviewCreateManyQuestionnairePhaseInput = {
731
+ id?: string;
732
+ tenantId: string;
733
+ reviewerId: string;
734
+ decision: $Enums.ReviewDecision;
735
+ notes?: string | null;
736
+ scoreAtReview?: number | null;
737
+ passedAtReview?: boolean | null;
738
+ createdAt?: Date | string;
739
+ };
740
+ export type QuestionnairePhaseReviewUpdateWithoutQuestionnairePhaseInput = {
741
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
742
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
743
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
744
+ scoreAtReview?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
745
+ passedAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
746
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
747
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutQuestionnairePhaseReviewsNestedInput;
748
+ reviewer?: Prisma.UserUpdateOneRequiredWithoutQuestionnaireReviewsNestedInput;
749
+ };
750
+ export type QuestionnairePhaseReviewUncheckedUpdateWithoutQuestionnairePhaseInput = {
751
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
752
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
753
+ reviewerId?: Prisma.StringFieldUpdateOperationsInput | string;
754
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
755
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
756
+ scoreAtReview?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
757
+ passedAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
758
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
759
+ };
760
+ export type QuestionnairePhaseReviewUncheckedUpdateManyWithoutQuestionnairePhaseInput = {
761
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
762
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
763
+ reviewerId?: Prisma.StringFieldUpdateOperationsInput | string;
764
+ decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
765
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
766
+ scoreAtReview?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
767
+ passedAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
768
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
769
+ };
770
+ export type QuestionnairePhaseReviewSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
771
+ id?: boolean;
772
+ tenantId?: boolean;
773
+ questionnairePhaseId?: boolean;
774
+ reviewerId?: boolean;
775
+ decision?: boolean;
776
+ notes?: boolean;
777
+ scoreAtReview?: boolean;
778
+ passedAtReview?: boolean;
779
+ createdAt?: boolean;
780
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
781
+ questionnairePhase?: boolean | Prisma.QuestionnairePhaseDefaultArgs<ExtArgs>;
782
+ reviewer?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
783
+ }, ExtArgs["result"]["questionnairePhaseReview"]>;
784
+ export type QuestionnairePhaseReviewSelectScalar = {
785
+ id?: boolean;
786
+ tenantId?: boolean;
787
+ questionnairePhaseId?: boolean;
788
+ reviewerId?: boolean;
789
+ decision?: boolean;
790
+ notes?: boolean;
791
+ scoreAtReview?: boolean;
792
+ passedAtReview?: boolean;
793
+ createdAt?: boolean;
794
+ };
795
+ export type QuestionnairePhaseReviewOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "questionnairePhaseId" | "reviewerId" | "decision" | "notes" | "scoreAtReview" | "passedAtReview" | "createdAt", ExtArgs["result"]["questionnairePhaseReview"]>;
796
+ export type QuestionnairePhaseReviewInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
797
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
798
+ questionnairePhase?: boolean | Prisma.QuestionnairePhaseDefaultArgs<ExtArgs>;
799
+ reviewer?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
800
+ };
801
+ export type $QuestionnairePhaseReviewPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
802
+ name: "QuestionnairePhaseReview";
803
+ objects: {
804
+ tenant: Prisma.$TenantPayload<ExtArgs>;
805
+ questionnairePhase: Prisma.$QuestionnairePhasePayload<ExtArgs>;
806
+ reviewer: Prisma.$UserPayload<ExtArgs>;
807
+ };
808
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
809
+ id: string;
810
+ tenantId: string;
811
+ questionnairePhaseId: string;
812
+ reviewerId: string;
813
+ decision: $Enums.ReviewDecision;
814
+ notes: string | null;
815
+ scoreAtReview: number | null;
816
+ passedAtReview: boolean | null;
817
+ createdAt: Date;
818
+ }, ExtArgs["result"]["questionnairePhaseReview"]>;
819
+ composites: {};
820
+ };
821
+ export type QuestionnairePhaseReviewGetPayload<S extends boolean | null | undefined | QuestionnairePhaseReviewDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$QuestionnairePhaseReviewPayload, S>;
822
+ export type QuestionnairePhaseReviewCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<QuestionnairePhaseReviewFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
823
+ select?: QuestionnairePhaseReviewCountAggregateInputType | true;
824
+ };
825
+ export interface QuestionnairePhaseReviewDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
826
+ [K: symbol]: {
827
+ types: Prisma.TypeMap<ExtArgs>['model']['QuestionnairePhaseReview'];
828
+ meta: {
829
+ name: 'QuestionnairePhaseReview';
830
+ };
831
+ };
832
+ /**
833
+ * Find zero or one QuestionnairePhaseReview that matches the filter.
834
+ * @param {QuestionnairePhaseReviewFindUniqueArgs} args - Arguments to find a QuestionnairePhaseReview
835
+ * @example
836
+ * // Get one QuestionnairePhaseReview
837
+ * const questionnairePhaseReview = await prisma.questionnairePhaseReview.findUnique({
838
+ * where: {
839
+ * // ... provide filter here
840
+ * }
841
+ * })
842
+ */
843
+ findUnique<T extends QuestionnairePhaseReviewFindUniqueArgs>(args: Prisma.SelectSubset<T, QuestionnairePhaseReviewFindUniqueArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseReviewClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhaseReviewPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
844
+ /**
845
+ * Find one QuestionnairePhaseReview that matches the filter or throw an error with `error.code='P2025'`
846
+ * if no matches were found.
847
+ * @param {QuestionnairePhaseReviewFindUniqueOrThrowArgs} args - Arguments to find a QuestionnairePhaseReview
848
+ * @example
849
+ * // Get one QuestionnairePhaseReview
850
+ * const questionnairePhaseReview = await prisma.questionnairePhaseReview.findUniqueOrThrow({
851
+ * where: {
852
+ * // ... provide filter here
853
+ * }
854
+ * })
855
+ */
856
+ findUniqueOrThrow<T extends QuestionnairePhaseReviewFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, QuestionnairePhaseReviewFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseReviewClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhaseReviewPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
857
+ /**
858
+ * Find the first QuestionnairePhaseReview that matches the filter.
859
+ * Note, that providing `undefined` is treated as the value not being there.
860
+ * Read more here: https://pris.ly/d/null-undefined
861
+ * @param {QuestionnairePhaseReviewFindFirstArgs} args - Arguments to find a QuestionnairePhaseReview
862
+ * @example
863
+ * // Get one QuestionnairePhaseReview
864
+ * const questionnairePhaseReview = await prisma.questionnairePhaseReview.findFirst({
865
+ * where: {
866
+ * // ... provide filter here
867
+ * }
868
+ * })
869
+ */
870
+ findFirst<T extends QuestionnairePhaseReviewFindFirstArgs>(args?: Prisma.SelectSubset<T, QuestionnairePhaseReviewFindFirstArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseReviewClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhaseReviewPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
871
+ /**
872
+ * Find the first QuestionnairePhaseReview that matches the filter or
873
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
874
+ * Note, that providing `undefined` is treated as the value not being there.
875
+ * Read more here: https://pris.ly/d/null-undefined
876
+ * @param {QuestionnairePhaseReviewFindFirstOrThrowArgs} args - Arguments to find a QuestionnairePhaseReview
877
+ * @example
878
+ * // Get one QuestionnairePhaseReview
879
+ * const questionnairePhaseReview = await prisma.questionnairePhaseReview.findFirstOrThrow({
880
+ * where: {
881
+ * // ... provide filter here
882
+ * }
883
+ * })
884
+ */
885
+ findFirstOrThrow<T extends QuestionnairePhaseReviewFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, QuestionnairePhaseReviewFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseReviewClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhaseReviewPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
886
+ /**
887
+ * Find zero or more QuestionnairePhaseReviews that matches the filter.
888
+ * Note, that providing `undefined` is treated as the value not being there.
889
+ * Read more here: https://pris.ly/d/null-undefined
890
+ * @param {QuestionnairePhaseReviewFindManyArgs} args - Arguments to filter and select certain fields only.
891
+ * @example
892
+ * // Get all QuestionnairePhaseReviews
893
+ * const questionnairePhaseReviews = await prisma.questionnairePhaseReview.findMany()
894
+ *
895
+ * // Get first 10 QuestionnairePhaseReviews
896
+ * const questionnairePhaseReviews = await prisma.questionnairePhaseReview.findMany({ take: 10 })
897
+ *
898
+ * // Only select the `id`
899
+ * const questionnairePhaseReviewWithIdOnly = await prisma.questionnairePhaseReview.findMany({ select: { id: true } })
900
+ *
901
+ */
902
+ findMany<T extends QuestionnairePhaseReviewFindManyArgs>(args?: Prisma.SelectSubset<T, QuestionnairePhaseReviewFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhaseReviewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
903
+ /**
904
+ * Create a QuestionnairePhaseReview.
905
+ * @param {QuestionnairePhaseReviewCreateArgs} args - Arguments to create a QuestionnairePhaseReview.
906
+ * @example
907
+ * // Create one QuestionnairePhaseReview
908
+ * const QuestionnairePhaseReview = await prisma.questionnairePhaseReview.create({
909
+ * data: {
910
+ * // ... data to create a QuestionnairePhaseReview
911
+ * }
912
+ * })
913
+ *
914
+ */
915
+ create<T extends QuestionnairePhaseReviewCreateArgs>(args: Prisma.SelectSubset<T, QuestionnairePhaseReviewCreateArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseReviewClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhaseReviewPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
916
+ /**
917
+ * Create many QuestionnairePhaseReviews.
918
+ * @param {QuestionnairePhaseReviewCreateManyArgs} args - Arguments to create many QuestionnairePhaseReviews.
919
+ * @example
920
+ * // Create many QuestionnairePhaseReviews
921
+ * const questionnairePhaseReview = await prisma.questionnairePhaseReview.createMany({
922
+ * data: [
923
+ * // ... provide data here
924
+ * ]
925
+ * })
926
+ *
927
+ */
928
+ createMany<T extends QuestionnairePhaseReviewCreateManyArgs>(args?: Prisma.SelectSubset<T, QuestionnairePhaseReviewCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
929
+ /**
930
+ * Delete a QuestionnairePhaseReview.
931
+ * @param {QuestionnairePhaseReviewDeleteArgs} args - Arguments to delete one QuestionnairePhaseReview.
932
+ * @example
933
+ * // Delete one QuestionnairePhaseReview
934
+ * const QuestionnairePhaseReview = await prisma.questionnairePhaseReview.delete({
935
+ * where: {
936
+ * // ... filter to delete one QuestionnairePhaseReview
937
+ * }
938
+ * })
939
+ *
940
+ */
941
+ delete<T extends QuestionnairePhaseReviewDeleteArgs>(args: Prisma.SelectSubset<T, QuestionnairePhaseReviewDeleteArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseReviewClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhaseReviewPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
942
+ /**
943
+ * Update one QuestionnairePhaseReview.
944
+ * @param {QuestionnairePhaseReviewUpdateArgs} args - Arguments to update one QuestionnairePhaseReview.
945
+ * @example
946
+ * // Update one QuestionnairePhaseReview
947
+ * const questionnairePhaseReview = await prisma.questionnairePhaseReview.update({
948
+ * where: {
949
+ * // ... provide filter here
950
+ * },
951
+ * data: {
952
+ * // ... provide data here
953
+ * }
954
+ * })
955
+ *
956
+ */
957
+ update<T extends QuestionnairePhaseReviewUpdateArgs>(args: Prisma.SelectSubset<T, QuestionnairePhaseReviewUpdateArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseReviewClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhaseReviewPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
958
+ /**
959
+ * Delete zero or more QuestionnairePhaseReviews.
960
+ * @param {QuestionnairePhaseReviewDeleteManyArgs} args - Arguments to filter QuestionnairePhaseReviews to delete.
961
+ * @example
962
+ * // Delete a few QuestionnairePhaseReviews
963
+ * const { count } = await prisma.questionnairePhaseReview.deleteMany({
964
+ * where: {
965
+ * // ... provide filter here
966
+ * }
967
+ * })
968
+ *
969
+ */
970
+ deleteMany<T extends QuestionnairePhaseReviewDeleteManyArgs>(args?: Prisma.SelectSubset<T, QuestionnairePhaseReviewDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
971
+ /**
972
+ * Update zero or more QuestionnairePhaseReviews.
973
+ * Note, that providing `undefined` is treated as the value not being there.
974
+ * Read more here: https://pris.ly/d/null-undefined
975
+ * @param {QuestionnairePhaseReviewUpdateManyArgs} args - Arguments to update one or more rows.
976
+ * @example
977
+ * // Update many QuestionnairePhaseReviews
978
+ * const questionnairePhaseReview = await prisma.questionnairePhaseReview.updateMany({
979
+ * where: {
980
+ * // ... provide filter here
981
+ * },
982
+ * data: {
983
+ * // ... provide data here
984
+ * }
985
+ * })
986
+ *
987
+ */
988
+ updateMany<T extends QuestionnairePhaseReviewUpdateManyArgs>(args: Prisma.SelectSubset<T, QuestionnairePhaseReviewUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
989
+ /**
990
+ * Create or update one QuestionnairePhaseReview.
991
+ * @param {QuestionnairePhaseReviewUpsertArgs} args - Arguments to update or create a QuestionnairePhaseReview.
992
+ * @example
993
+ * // Update or create a QuestionnairePhaseReview
994
+ * const questionnairePhaseReview = await prisma.questionnairePhaseReview.upsert({
995
+ * create: {
996
+ * // ... data to create a QuestionnairePhaseReview
997
+ * },
998
+ * update: {
999
+ * // ... in case it already exists, update
1000
+ * },
1001
+ * where: {
1002
+ * // ... the filter for the QuestionnairePhaseReview we want to update
1003
+ * }
1004
+ * })
1005
+ */
1006
+ upsert<T extends QuestionnairePhaseReviewUpsertArgs>(args: Prisma.SelectSubset<T, QuestionnairePhaseReviewUpsertArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseReviewClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhaseReviewPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1007
+ /**
1008
+ * Count the number of QuestionnairePhaseReviews.
1009
+ * Note, that providing `undefined` is treated as the value not being there.
1010
+ * Read more here: https://pris.ly/d/null-undefined
1011
+ * @param {QuestionnairePhaseReviewCountArgs} args - Arguments to filter QuestionnairePhaseReviews to count.
1012
+ * @example
1013
+ * // Count the number of QuestionnairePhaseReviews
1014
+ * const count = await prisma.questionnairePhaseReview.count({
1015
+ * where: {
1016
+ * // ... the filter for the QuestionnairePhaseReviews we want to count
1017
+ * }
1018
+ * })
1019
+ **/
1020
+ count<T extends QuestionnairePhaseReviewCountArgs>(args?: Prisma.Subset<T, QuestionnairePhaseReviewCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], QuestionnairePhaseReviewCountAggregateOutputType> : number>;
1021
+ /**
1022
+ * Allows you to perform aggregations operations on a QuestionnairePhaseReview.
1023
+ * Note, that providing `undefined` is treated as the value not being there.
1024
+ * Read more here: https://pris.ly/d/null-undefined
1025
+ * @param {QuestionnairePhaseReviewAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1026
+ * @example
1027
+ * // Ordered by age ascending
1028
+ * // Where email contains prisma.io
1029
+ * // Limited to the 10 users
1030
+ * const aggregations = await prisma.user.aggregate({
1031
+ * _avg: {
1032
+ * age: true,
1033
+ * },
1034
+ * where: {
1035
+ * email: {
1036
+ * contains: "prisma.io",
1037
+ * },
1038
+ * },
1039
+ * orderBy: {
1040
+ * age: "asc",
1041
+ * },
1042
+ * take: 10,
1043
+ * })
1044
+ **/
1045
+ aggregate<T extends QuestionnairePhaseReviewAggregateArgs>(args: Prisma.Subset<T, QuestionnairePhaseReviewAggregateArgs>): Prisma.PrismaPromise<GetQuestionnairePhaseReviewAggregateType<T>>;
1046
+ /**
1047
+ * Group by QuestionnairePhaseReview.
1048
+ * Note, that providing `undefined` is treated as the value not being there.
1049
+ * Read more here: https://pris.ly/d/null-undefined
1050
+ * @param {QuestionnairePhaseReviewGroupByArgs} args - Group by arguments.
1051
+ * @example
1052
+ * // Group by city, order by createdAt, get count
1053
+ * const result = await prisma.user.groupBy({
1054
+ * by: ['city', 'createdAt'],
1055
+ * orderBy: {
1056
+ * createdAt: true
1057
+ * },
1058
+ * _count: {
1059
+ * _all: true
1060
+ * },
1061
+ * })
1062
+ *
1063
+ **/
1064
+ groupBy<T extends QuestionnairePhaseReviewGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1065
+ orderBy: QuestionnairePhaseReviewGroupByArgs['orderBy'];
1066
+ } : {
1067
+ orderBy?: QuestionnairePhaseReviewGroupByArgs['orderBy'];
1068
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
1069
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1070
+ Error,
1071
+ 'Field ',
1072
+ P,
1073
+ ` in "having" needs to be provided in "by"`
1074
+ ];
1075
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1076
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1077
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1078
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1079
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1080
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1081
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, QuestionnairePhaseReviewGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetQuestionnairePhaseReviewGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1082
+ /**
1083
+ * Fields of the QuestionnairePhaseReview model
1084
+ */
1085
+ readonly fields: QuestionnairePhaseReviewFieldRefs;
1086
+ }
1087
+ /**
1088
+ * The delegate class that acts as a "Promise-like" for QuestionnairePhaseReview.
1089
+ * Why is this prefixed with `Prisma__`?
1090
+ * Because we want to prevent naming conflicts as mentioned in
1091
+ * https://github.com/prisma/prisma-client-js/issues/707
1092
+ */
1093
+ export interface Prisma__QuestionnairePhaseReviewClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1094
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1095
+ tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1096
+ questionnairePhase<T extends Prisma.QuestionnairePhaseDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.QuestionnairePhaseDefaultArgs<ExtArgs>>): Prisma.Prisma__QuestionnairePhaseClient<runtime.Types.Result.GetResult<Prisma.$QuestionnairePhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1097
+ reviewer<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>;
1098
+ /**
1099
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1100
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1101
+ * @param onrejected The callback to execute when the Promise is rejected.
1102
+ * @returns A Promise for the completion of which ever callback is executed.
1103
+ */
1104
+ 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>;
1105
+ /**
1106
+ * Attaches a callback for only the rejection of the Promise.
1107
+ * @param onrejected The callback to execute when the Promise is rejected.
1108
+ * @returns A Promise for the completion of the callback.
1109
+ */
1110
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1111
+ /**
1112
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1113
+ * resolved value cannot be modified from the callback.
1114
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1115
+ * @returns A Promise for the completion of the callback.
1116
+ */
1117
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1118
+ }
1119
+ /**
1120
+ * Fields of the QuestionnairePhaseReview model
1121
+ */
1122
+ export interface QuestionnairePhaseReviewFieldRefs {
1123
+ readonly id: Prisma.FieldRef<"QuestionnairePhaseReview", 'String'>;
1124
+ readonly tenantId: Prisma.FieldRef<"QuestionnairePhaseReview", 'String'>;
1125
+ readonly questionnairePhaseId: Prisma.FieldRef<"QuestionnairePhaseReview", 'String'>;
1126
+ readonly reviewerId: Prisma.FieldRef<"QuestionnairePhaseReview", 'String'>;
1127
+ readonly decision: Prisma.FieldRef<"QuestionnairePhaseReview", 'ReviewDecision'>;
1128
+ readonly notes: Prisma.FieldRef<"QuestionnairePhaseReview", 'String'>;
1129
+ readonly scoreAtReview: Prisma.FieldRef<"QuestionnairePhaseReview", 'Int'>;
1130
+ readonly passedAtReview: Prisma.FieldRef<"QuestionnairePhaseReview", 'Boolean'>;
1131
+ readonly createdAt: Prisma.FieldRef<"QuestionnairePhaseReview", 'DateTime'>;
1132
+ }
1133
+ /**
1134
+ * QuestionnairePhaseReview findUnique
1135
+ */
1136
+ export type QuestionnairePhaseReviewFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1137
+ /**
1138
+ * Select specific fields to fetch from the QuestionnairePhaseReview
1139
+ */
1140
+ select?: Prisma.QuestionnairePhaseReviewSelect<ExtArgs> | null;
1141
+ /**
1142
+ * Omit specific fields from the QuestionnairePhaseReview
1143
+ */
1144
+ omit?: Prisma.QuestionnairePhaseReviewOmit<ExtArgs> | null;
1145
+ /**
1146
+ * Choose, which related nodes to fetch as well
1147
+ */
1148
+ include?: Prisma.QuestionnairePhaseReviewInclude<ExtArgs> | null;
1149
+ /**
1150
+ * Filter, which QuestionnairePhaseReview to fetch.
1151
+ */
1152
+ where: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
1153
+ };
1154
+ /**
1155
+ * QuestionnairePhaseReview findUniqueOrThrow
1156
+ */
1157
+ export type QuestionnairePhaseReviewFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1158
+ /**
1159
+ * Select specific fields to fetch from the QuestionnairePhaseReview
1160
+ */
1161
+ select?: Prisma.QuestionnairePhaseReviewSelect<ExtArgs> | null;
1162
+ /**
1163
+ * Omit specific fields from the QuestionnairePhaseReview
1164
+ */
1165
+ omit?: Prisma.QuestionnairePhaseReviewOmit<ExtArgs> | null;
1166
+ /**
1167
+ * Choose, which related nodes to fetch as well
1168
+ */
1169
+ include?: Prisma.QuestionnairePhaseReviewInclude<ExtArgs> | null;
1170
+ /**
1171
+ * Filter, which QuestionnairePhaseReview to fetch.
1172
+ */
1173
+ where: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
1174
+ };
1175
+ /**
1176
+ * QuestionnairePhaseReview findFirst
1177
+ */
1178
+ export type QuestionnairePhaseReviewFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1179
+ /**
1180
+ * Select specific fields to fetch from the QuestionnairePhaseReview
1181
+ */
1182
+ select?: Prisma.QuestionnairePhaseReviewSelect<ExtArgs> | null;
1183
+ /**
1184
+ * Omit specific fields from the QuestionnairePhaseReview
1185
+ */
1186
+ omit?: Prisma.QuestionnairePhaseReviewOmit<ExtArgs> | null;
1187
+ /**
1188
+ * Choose, which related nodes to fetch as well
1189
+ */
1190
+ include?: Prisma.QuestionnairePhaseReviewInclude<ExtArgs> | null;
1191
+ /**
1192
+ * Filter, which QuestionnairePhaseReview to fetch.
1193
+ */
1194
+ where?: Prisma.QuestionnairePhaseReviewWhereInput;
1195
+ /**
1196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1197
+ *
1198
+ * Determine the order of QuestionnairePhaseReviews to fetch.
1199
+ */
1200
+ orderBy?: Prisma.QuestionnairePhaseReviewOrderByWithRelationInput | Prisma.QuestionnairePhaseReviewOrderByWithRelationInput[];
1201
+ /**
1202
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1203
+ *
1204
+ * Sets the position for searching for QuestionnairePhaseReviews.
1205
+ */
1206
+ cursor?: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
1207
+ /**
1208
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1209
+ *
1210
+ * Take `±n` QuestionnairePhaseReviews from the position of the cursor.
1211
+ */
1212
+ take?: number;
1213
+ /**
1214
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1215
+ *
1216
+ * Skip the first `n` QuestionnairePhaseReviews.
1217
+ */
1218
+ skip?: number;
1219
+ /**
1220
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1221
+ *
1222
+ * Filter by unique combinations of QuestionnairePhaseReviews.
1223
+ */
1224
+ distinct?: Prisma.QuestionnairePhaseReviewScalarFieldEnum | Prisma.QuestionnairePhaseReviewScalarFieldEnum[];
1225
+ };
1226
+ /**
1227
+ * QuestionnairePhaseReview findFirstOrThrow
1228
+ */
1229
+ export type QuestionnairePhaseReviewFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1230
+ /**
1231
+ * Select specific fields to fetch from the QuestionnairePhaseReview
1232
+ */
1233
+ select?: Prisma.QuestionnairePhaseReviewSelect<ExtArgs> | null;
1234
+ /**
1235
+ * Omit specific fields from the QuestionnairePhaseReview
1236
+ */
1237
+ omit?: Prisma.QuestionnairePhaseReviewOmit<ExtArgs> | null;
1238
+ /**
1239
+ * Choose, which related nodes to fetch as well
1240
+ */
1241
+ include?: Prisma.QuestionnairePhaseReviewInclude<ExtArgs> | null;
1242
+ /**
1243
+ * Filter, which QuestionnairePhaseReview to fetch.
1244
+ */
1245
+ where?: Prisma.QuestionnairePhaseReviewWhereInput;
1246
+ /**
1247
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1248
+ *
1249
+ * Determine the order of QuestionnairePhaseReviews to fetch.
1250
+ */
1251
+ orderBy?: Prisma.QuestionnairePhaseReviewOrderByWithRelationInput | Prisma.QuestionnairePhaseReviewOrderByWithRelationInput[];
1252
+ /**
1253
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1254
+ *
1255
+ * Sets the position for searching for QuestionnairePhaseReviews.
1256
+ */
1257
+ cursor?: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
1258
+ /**
1259
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1260
+ *
1261
+ * Take `±n` QuestionnairePhaseReviews from the position of the cursor.
1262
+ */
1263
+ take?: number;
1264
+ /**
1265
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1266
+ *
1267
+ * Skip the first `n` QuestionnairePhaseReviews.
1268
+ */
1269
+ skip?: number;
1270
+ /**
1271
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1272
+ *
1273
+ * Filter by unique combinations of QuestionnairePhaseReviews.
1274
+ */
1275
+ distinct?: Prisma.QuestionnairePhaseReviewScalarFieldEnum | Prisma.QuestionnairePhaseReviewScalarFieldEnum[];
1276
+ };
1277
+ /**
1278
+ * QuestionnairePhaseReview findMany
1279
+ */
1280
+ export type QuestionnairePhaseReviewFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1281
+ /**
1282
+ * Select specific fields to fetch from the QuestionnairePhaseReview
1283
+ */
1284
+ select?: Prisma.QuestionnairePhaseReviewSelect<ExtArgs> | null;
1285
+ /**
1286
+ * Omit specific fields from the QuestionnairePhaseReview
1287
+ */
1288
+ omit?: Prisma.QuestionnairePhaseReviewOmit<ExtArgs> | null;
1289
+ /**
1290
+ * Choose, which related nodes to fetch as well
1291
+ */
1292
+ include?: Prisma.QuestionnairePhaseReviewInclude<ExtArgs> | null;
1293
+ /**
1294
+ * Filter, which QuestionnairePhaseReviews to fetch.
1295
+ */
1296
+ where?: Prisma.QuestionnairePhaseReviewWhereInput;
1297
+ /**
1298
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1299
+ *
1300
+ * Determine the order of QuestionnairePhaseReviews to fetch.
1301
+ */
1302
+ orderBy?: Prisma.QuestionnairePhaseReviewOrderByWithRelationInput | Prisma.QuestionnairePhaseReviewOrderByWithRelationInput[];
1303
+ /**
1304
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1305
+ *
1306
+ * Sets the position for listing QuestionnairePhaseReviews.
1307
+ */
1308
+ cursor?: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
1309
+ /**
1310
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1311
+ *
1312
+ * Take `±n` QuestionnairePhaseReviews from the position of the cursor.
1313
+ */
1314
+ take?: number;
1315
+ /**
1316
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1317
+ *
1318
+ * Skip the first `n` QuestionnairePhaseReviews.
1319
+ */
1320
+ skip?: number;
1321
+ distinct?: Prisma.QuestionnairePhaseReviewScalarFieldEnum | Prisma.QuestionnairePhaseReviewScalarFieldEnum[];
1322
+ };
1323
+ /**
1324
+ * QuestionnairePhaseReview create
1325
+ */
1326
+ export type QuestionnairePhaseReviewCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1327
+ /**
1328
+ * Select specific fields to fetch from the QuestionnairePhaseReview
1329
+ */
1330
+ select?: Prisma.QuestionnairePhaseReviewSelect<ExtArgs> | null;
1331
+ /**
1332
+ * Omit specific fields from the QuestionnairePhaseReview
1333
+ */
1334
+ omit?: Prisma.QuestionnairePhaseReviewOmit<ExtArgs> | null;
1335
+ /**
1336
+ * Choose, which related nodes to fetch as well
1337
+ */
1338
+ include?: Prisma.QuestionnairePhaseReviewInclude<ExtArgs> | null;
1339
+ /**
1340
+ * The data needed to create a QuestionnairePhaseReview.
1341
+ */
1342
+ data: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateInput, Prisma.QuestionnairePhaseReviewUncheckedCreateInput>;
1343
+ };
1344
+ /**
1345
+ * QuestionnairePhaseReview createMany
1346
+ */
1347
+ export type QuestionnairePhaseReviewCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1348
+ /**
1349
+ * The data used to create many QuestionnairePhaseReviews.
1350
+ */
1351
+ data: Prisma.QuestionnairePhaseReviewCreateManyInput | Prisma.QuestionnairePhaseReviewCreateManyInput[];
1352
+ skipDuplicates?: boolean;
1353
+ };
1354
+ /**
1355
+ * QuestionnairePhaseReview update
1356
+ */
1357
+ export type QuestionnairePhaseReviewUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1358
+ /**
1359
+ * Select specific fields to fetch from the QuestionnairePhaseReview
1360
+ */
1361
+ select?: Prisma.QuestionnairePhaseReviewSelect<ExtArgs> | null;
1362
+ /**
1363
+ * Omit specific fields from the QuestionnairePhaseReview
1364
+ */
1365
+ omit?: Prisma.QuestionnairePhaseReviewOmit<ExtArgs> | null;
1366
+ /**
1367
+ * Choose, which related nodes to fetch as well
1368
+ */
1369
+ include?: Prisma.QuestionnairePhaseReviewInclude<ExtArgs> | null;
1370
+ /**
1371
+ * The data needed to update a QuestionnairePhaseReview.
1372
+ */
1373
+ data: Prisma.XOR<Prisma.QuestionnairePhaseReviewUpdateInput, Prisma.QuestionnairePhaseReviewUncheckedUpdateInput>;
1374
+ /**
1375
+ * Choose, which QuestionnairePhaseReview to update.
1376
+ */
1377
+ where: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
1378
+ };
1379
+ /**
1380
+ * QuestionnairePhaseReview updateMany
1381
+ */
1382
+ export type QuestionnairePhaseReviewUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1383
+ /**
1384
+ * The data used to update QuestionnairePhaseReviews.
1385
+ */
1386
+ data: Prisma.XOR<Prisma.QuestionnairePhaseReviewUpdateManyMutationInput, Prisma.QuestionnairePhaseReviewUncheckedUpdateManyInput>;
1387
+ /**
1388
+ * Filter which QuestionnairePhaseReviews to update
1389
+ */
1390
+ where?: Prisma.QuestionnairePhaseReviewWhereInput;
1391
+ /**
1392
+ * Limit how many QuestionnairePhaseReviews to update.
1393
+ */
1394
+ limit?: number;
1395
+ };
1396
+ /**
1397
+ * QuestionnairePhaseReview upsert
1398
+ */
1399
+ export type QuestionnairePhaseReviewUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1400
+ /**
1401
+ * Select specific fields to fetch from the QuestionnairePhaseReview
1402
+ */
1403
+ select?: Prisma.QuestionnairePhaseReviewSelect<ExtArgs> | null;
1404
+ /**
1405
+ * Omit specific fields from the QuestionnairePhaseReview
1406
+ */
1407
+ omit?: Prisma.QuestionnairePhaseReviewOmit<ExtArgs> | null;
1408
+ /**
1409
+ * Choose, which related nodes to fetch as well
1410
+ */
1411
+ include?: Prisma.QuestionnairePhaseReviewInclude<ExtArgs> | null;
1412
+ /**
1413
+ * The filter to search for the QuestionnairePhaseReview to update in case it exists.
1414
+ */
1415
+ where: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
1416
+ /**
1417
+ * In case the QuestionnairePhaseReview found by the `where` argument doesn't exist, create a new QuestionnairePhaseReview with this data.
1418
+ */
1419
+ create: Prisma.XOR<Prisma.QuestionnairePhaseReviewCreateInput, Prisma.QuestionnairePhaseReviewUncheckedCreateInput>;
1420
+ /**
1421
+ * In case the QuestionnairePhaseReview was found with the provided `where` argument, update it with this data.
1422
+ */
1423
+ update: Prisma.XOR<Prisma.QuestionnairePhaseReviewUpdateInput, Prisma.QuestionnairePhaseReviewUncheckedUpdateInput>;
1424
+ };
1425
+ /**
1426
+ * QuestionnairePhaseReview delete
1427
+ */
1428
+ export type QuestionnairePhaseReviewDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1429
+ /**
1430
+ * Select specific fields to fetch from the QuestionnairePhaseReview
1431
+ */
1432
+ select?: Prisma.QuestionnairePhaseReviewSelect<ExtArgs> | null;
1433
+ /**
1434
+ * Omit specific fields from the QuestionnairePhaseReview
1435
+ */
1436
+ omit?: Prisma.QuestionnairePhaseReviewOmit<ExtArgs> | null;
1437
+ /**
1438
+ * Choose, which related nodes to fetch as well
1439
+ */
1440
+ include?: Prisma.QuestionnairePhaseReviewInclude<ExtArgs> | null;
1441
+ /**
1442
+ * Filter which QuestionnairePhaseReview to delete.
1443
+ */
1444
+ where: Prisma.QuestionnairePhaseReviewWhereUniqueInput;
1445
+ };
1446
+ /**
1447
+ * QuestionnairePhaseReview deleteMany
1448
+ */
1449
+ export type QuestionnairePhaseReviewDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1450
+ /**
1451
+ * Filter which QuestionnairePhaseReviews to delete
1452
+ */
1453
+ where?: Prisma.QuestionnairePhaseReviewWhereInput;
1454
+ /**
1455
+ * Limit how many QuestionnairePhaseReviews to delete.
1456
+ */
1457
+ limit?: number;
1458
+ };
1459
+ /**
1460
+ * QuestionnairePhaseReview without action
1461
+ */
1462
+ export type QuestionnairePhaseReviewDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1463
+ /**
1464
+ * Select specific fields to fetch from the QuestionnairePhaseReview
1465
+ */
1466
+ select?: Prisma.QuestionnairePhaseReviewSelect<ExtArgs> | null;
1467
+ /**
1468
+ * Omit specific fields from the QuestionnairePhaseReview
1469
+ */
1470
+ omit?: Prisma.QuestionnairePhaseReviewOmit<ExtArgs> | null;
1471
+ /**
1472
+ * Choose, which related nodes to fetch as well
1473
+ */
1474
+ include?: Prisma.QuestionnairePhaseReviewInclude<ExtArgs> | null;
1475
+ };
1476
+ export {};