@roundtreasury/prisma-extension-soft-delete 1.1.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +1 -1
  2. package/dist/esm/generated/nested-ops-meta/index.d.ts +13 -0
  3. package/dist/esm/generated/nested-ops-meta/index.js +107 -0
  4. package/dist/esm/generated/prisma/browser.d.ts +24 -0
  5. package/dist/esm/generated/prisma/browser.js +17 -0
  6. package/dist/esm/generated/prisma/client.d.ts +43 -0
  7. package/dist/esm/generated/prisma/client.js +31 -0
  8. package/dist/esm/generated/prisma/commonInputTypes.d.ts +359 -0
  9. package/dist/esm/generated/prisma/commonInputTypes.js +10 -0
  10. package/dist/esm/generated/prisma/enums.js +10 -0
  11. package/dist/esm/generated/prisma/internal/class.d.ts +165 -0
  12. package/dist/esm/generated/prisma/internal/class.js +49 -0
  13. package/dist/esm/generated/prisma/internal/prismaNamespace.d.ts +815 -0
  14. package/dist/esm/generated/prisma/internal/prismaNamespace.js +131 -0
  15. package/dist/esm/generated/prisma/internal/prismaNamespaceBrowser.d.ts +95 -0
  16. package/dist/esm/generated/prisma/internal/prismaNamespaceBrowser.js +102 -0
  17. package/dist/esm/generated/prisma/models/Comment.d.ts +1768 -0
  18. package/dist/esm/generated/prisma/models/Comment.js +1 -0
  19. package/dist/esm/generated/prisma/models/Post.d.ts +1543 -0
  20. package/dist/esm/generated/prisma/models/Post.js +1 -0
  21. package/dist/esm/generated/prisma/models/Profile.d.ts +1130 -0
  22. package/dist/esm/generated/prisma/models/Profile.js +1 -0
  23. package/dist/esm/generated/prisma/models/User.d.ts +1531 -0
  24. package/dist/esm/generated/prisma/models/User.js +1 -0
  25. package/dist/esm/generated/prisma/models.d.ts +5 -0
  26. package/dist/esm/generated/prisma/models.js +1 -0
  27. package/dist/esm/prisma.config.d.ts +3 -0
  28. package/dist/esm/prisma.config.js +11 -0
  29. package/dist/esm/src/lib/createSoftDeleteExtension.d.ts +2 -0
  30. package/dist/esm/{lib → src/lib}/createSoftDeleteExtension.js +11 -17
  31. package/dist/esm/{lib → src/lib}/helpers/createParams.d.ts +4 -4
  32. package/dist/esm/{lib → src/lib}/helpers/createParams.js +4 -16
  33. package/dist/esm/{lib → src/lib}/types.d.ts +14 -4
  34. package/dist/esm/src/lib/types.js +1 -0
  35. package/dist/generated/nested-ops-meta/index.d.ts +13 -0
  36. package/dist/generated/nested-ops-meta/index.js +110 -0
  37. package/dist/generated/prisma/browser.d.ts +24 -0
  38. package/dist/generated/prisma/browser.js +56 -0
  39. package/dist/generated/prisma/client.d.ts +43 -0
  40. package/dist/generated/prisma/client.js +70 -0
  41. package/dist/generated/prisma/commonInputTypes.d.ts +359 -0
  42. package/dist/generated/prisma/commonInputTypes.js +11 -0
  43. package/dist/generated/prisma/enums.d.ts +1 -0
  44. package/dist/generated/prisma/enums.js +11 -0
  45. package/dist/generated/prisma/internal/class.d.ts +165 -0
  46. package/dist/generated/prisma/internal/class.js +85 -0
  47. package/dist/generated/prisma/internal/prismaNamespace.d.ts +815 -0
  48. package/dist/generated/prisma/internal/prismaNamespace.js +167 -0
  49. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +95 -0
  50. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +138 -0
  51. package/dist/generated/prisma/models/Comment.d.ts +1768 -0
  52. package/dist/generated/prisma/models/Comment.js +2 -0
  53. package/dist/generated/prisma/models/Post.d.ts +1543 -0
  54. package/dist/generated/prisma/models/Post.js +2 -0
  55. package/dist/generated/prisma/models/Profile.d.ts +1130 -0
  56. package/dist/generated/prisma/models/Profile.js +2 -0
  57. package/dist/generated/prisma/models/User.d.ts +1531 -0
  58. package/dist/generated/prisma/models/User.js +2 -0
  59. package/dist/generated/prisma/models.d.ts +5 -0
  60. package/dist/prisma.config.d.ts +3 -0
  61. package/dist/prisma.config.js +13 -0
  62. package/dist/src/lib/createSoftDeleteExtension.d.ts +2 -0
  63. package/dist/{lib → src/lib}/createSoftDeleteExtension.js +12 -19
  64. package/dist/{lib → src/lib}/helpers/createParams.d.ts +4 -4
  65. package/dist/{lib → src/lib}/helpers/createParams.js +4 -16
  66. package/dist/{lib → src/lib}/helpers/modifyResult.js +1 -2
  67. package/dist/{lib → src/lib}/types.d.ts +14 -4
  68. package/dist/src/lib/types.js +2 -0
  69. package/dist/{lib → src/lib}/utils/nestedReads.js +2 -3
  70. package/dist/{lib → src/lib}/utils/resultFiltering.js +2 -3
  71. package/package.json +11 -9
  72. package/dist/esm/lib/createSoftDeleteExtension.d.ts +0 -2
  73. package/dist/lib/createSoftDeleteExtension.d.ts +0 -2
  74. /package/dist/esm/{lib/types.js → generated/prisma/enums.d.ts} +0 -0
  75. /package/dist/esm/{index.d.ts → src/index.d.ts} +0 -0
  76. /package/dist/esm/{index.js → src/index.js} +0 -0
  77. /package/dist/esm/{lib → src/lib}/helpers/modifyResult.d.ts +0 -0
  78. /package/dist/esm/{lib → src/lib}/helpers/modifyResult.js +0 -0
  79. /package/dist/esm/{lib → src/lib}/utils/nestedReads.d.ts +0 -0
  80. /package/dist/esm/{lib → src/lib}/utils/nestedReads.js +0 -0
  81. /package/dist/esm/{lib → src/lib}/utils/resultFiltering.d.ts +0 -0
  82. /package/dist/esm/{lib → src/lib}/utils/resultFiltering.js +0 -0
  83. /package/dist/{lib/types.js → generated/prisma/models.js} +0 -0
  84. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  85. /package/dist/{index.js → src/index.js} +0 -0
  86. /package/dist/{lib → src/lib}/helpers/modifyResult.d.ts +0 -0
  87. /package/dist/{lib → src/lib}/utils/nestedReads.d.ts +0 -0
  88. /package/dist/{lib → src/lib}/utils/resultFiltering.d.ts +0 -0
@@ -0,0 +1,1130 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model Profile
5
+ *
6
+ */
7
+ export type ProfileModel = runtime.Types.Result.DefaultSelection<Prisma.$ProfilePayload>;
8
+ export type AggregateProfile = {
9
+ _count: ProfileCountAggregateOutputType | null;
10
+ _avg: ProfileAvgAggregateOutputType | null;
11
+ _sum: ProfileSumAggregateOutputType | null;
12
+ _min: ProfileMinAggregateOutputType | null;
13
+ _max: ProfileMaxAggregateOutputType | null;
14
+ };
15
+ export type ProfileAvgAggregateOutputType = {
16
+ id: number | null;
17
+ };
18
+ export type ProfileSumAggregateOutputType = {
19
+ id: number | null;
20
+ };
21
+ export type ProfileMinAggregateOutputType = {
22
+ id: number | null;
23
+ bio: string | null;
24
+ deleted: boolean | null;
25
+ };
26
+ export type ProfileMaxAggregateOutputType = {
27
+ id: number | null;
28
+ bio: string | null;
29
+ deleted: boolean | null;
30
+ };
31
+ export type ProfileCountAggregateOutputType = {
32
+ id: number;
33
+ bio: number;
34
+ deleted: number;
35
+ _all: number;
36
+ };
37
+ export type ProfileAvgAggregateInputType = {
38
+ id?: true;
39
+ };
40
+ export type ProfileSumAggregateInputType = {
41
+ id?: true;
42
+ };
43
+ export type ProfileMinAggregateInputType = {
44
+ id?: true;
45
+ bio?: true;
46
+ deleted?: true;
47
+ };
48
+ export type ProfileMaxAggregateInputType = {
49
+ id?: true;
50
+ bio?: true;
51
+ deleted?: true;
52
+ };
53
+ export type ProfileCountAggregateInputType = {
54
+ id?: true;
55
+ bio?: true;
56
+ deleted?: true;
57
+ _all?: true;
58
+ };
59
+ export type ProfileAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
60
+ /**
61
+ * Filter which Profile to aggregate.
62
+ */
63
+ where?: Prisma.ProfileWhereInput;
64
+ /**
65
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
66
+ *
67
+ * Determine the order of Profiles to fetch.
68
+ */
69
+ orderBy?: Prisma.ProfileOrderByWithRelationInput | Prisma.ProfileOrderByWithRelationInput[];
70
+ /**
71
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
72
+ *
73
+ * Sets the start position
74
+ */
75
+ cursor?: Prisma.ProfileWhereUniqueInput;
76
+ /**
77
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
78
+ *
79
+ * Take `±n` Profiles from the position of the cursor.
80
+ */
81
+ take?: number;
82
+ /**
83
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
84
+ *
85
+ * Skip the first `n` Profiles.
86
+ */
87
+ skip?: number;
88
+ /**
89
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
90
+ *
91
+ * Count returned Profiles
92
+ **/
93
+ _count?: true | ProfileCountAggregateInputType;
94
+ /**
95
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
96
+ *
97
+ * Select which fields to average
98
+ **/
99
+ _avg?: ProfileAvgAggregateInputType;
100
+ /**
101
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
102
+ *
103
+ * Select which fields to sum
104
+ **/
105
+ _sum?: ProfileSumAggregateInputType;
106
+ /**
107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
108
+ *
109
+ * Select which fields to find the minimum value
110
+ **/
111
+ _min?: ProfileMinAggregateInputType;
112
+ /**
113
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
114
+ *
115
+ * Select which fields to find the maximum value
116
+ **/
117
+ _max?: ProfileMaxAggregateInputType;
118
+ };
119
+ export type GetProfileAggregateType<T extends ProfileAggregateArgs> = {
120
+ [P in keyof T & keyof AggregateProfile]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateProfile[P]> : Prisma.GetScalarType<T[P], AggregateProfile[P]>;
121
+ };
122
+ export type ProfileGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
123
+ where?: Prisma.ProfileWhereInput;
124
+ orderBy?: Prisma.ProfileOrderByWithAggregationInput | Prisma.ProfileOrderByWithAggregationInput[];
125
+ by: Prisma.ProfileScalarFieldEnum[] | Prisma.ProfileScalarFieldEnum;
126
+ having?: Prisma.ProfileScalarWhereWithAggregatesInput;
127
+ take?: number;
128
+ skip?: number;
129
+ _count?: ProfileCountAggregateInputType | true;
130
+ _avg?: ProfileAvgAggregateInputType;
131
+ _sum?: ProfileSumAggregateInputType;
132
+ _min?: ProfileMinAggregateInputType;
133
+ _max?: ProfileMaxAggregateInputType;
134
+ };
135
+ export type ProfileGroupByOutputType = {
136
+ id: number;
137
+ bio: string | null;
138
+ deleted: boolean;
139
+ _count: ProfileCountAggregateOutputType | null;
140
+ _avg: ProfileAvgAggregateOutputType | null;
141
+ _sum: ProfileSumAggregateOutputType | null;
142
+ _min: ProfileMinAggregateOutputType | null;
143
+ _max: ProfileMaxAggregateOutputType | null;
144
+ };
145
+ export type GetProfileGroupByPayload<T extends ProfileGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ProfileGroupByOutputType, T['by']> & {
146
+ [P in ((keyof T) & (keyof ProfileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ProfileGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ProfileGroupByOutputType[P]>;
147
+ }>>;
148
+ export type ProfileWhereInput = {
149
+ AND?: Prisma.ProfileWhereInput | Prisma.ProfileWhereInput[];
150
+ OR?: Prisma.ProfileWhereInput[];
151
+ NOT?: Prisma.ProfileWhereInput | Prisma.ProfileWhereInput[];
152
+ id?: Prisma.IntFilter<"Profile"> | number;
153
+ bio?: Prisma.StringNullableFilter<"Profile"> | string | null;
154
+ deleted?: Prisma.BoolFilter<"Profile"> | boolean;
155
+ users?: Prisma.UserListRelationFilter;
156
+ };
157
+ export type ProfileOrderByWithRelationInput = {
158
+ id?: Prisma.SortOrder;
159
+ bio?: Prisma.SortOrderInput | Prisma.SortOrder;
160
+ deleted?: Prisma.SortOrder;
161
+ users?: Prisma.UserOrderByRelationAggregateInput;
162
+ };
163
+ export type ProfileWhereUniqueInput = Prisma.AtLeast<{
164
+ id?: number;
165
+ AND?: Prisma.ProfileWhereInput | Prisma.ProfileWhereInput[];
166
+ OR?: Prisma.ProfileWhereInput[];
167
+ NOT?: Prisma.ProfileWhereInput | Prisma.ProfileWhereInput[];
168
+ bio?: Prisma.StringNullableFilter<"Profile"> | string | null;
169
+ deleted?: Prisma.BoolFilter<"Profile"> | boolean;
170
+ users?: Prisma.UserListRelationFilter;
171
+ }, "id">;
172
+ export type ProfileOrderByWithAggregationInput = {
173
+ id?: Prisma.SortOrder;
174
+ bio?: Prisma.SortOrderInput | Prisma.SortOrder;
175
+ deleted?: Prisma.SortOrder;
176
+ _count?: Prisma.ProfileCountOrderByAggregateInput;
177
+ _avg?: Prisma.ProfileAvgOrderByAggregateInput;
178
+ _max?: Prisma.ProfileMaxOrderByAggregateInput;
179
+ _min?: Prisma.ProfileMinOrderByAggregateInput;
180
+ _sum?: Prisma.ProfileSumOrderByAggregateInput;
181
+ };
182
+ export type ProfileScalarWhereWithAggregatesInput = {
183
+ AND?: Prisma.ProfileScalarWhereWithAggregatesInput | Prisma.ProfileScalarWhereWithAggregatesInput[];
184
+ OR?: Prisma.ProfileScalarWhereWithAggregatesInput[];
185
+ NOT?: Prisma.ProfileScalarWhereWithAggregatesInput | Prisma.ProfileScalarWhereWithAggregatesInput[];
186
+ id?: Prisma.IntWithAggregatesFilter<"Profile"> | number;
187
+ bio?: Prisma.StringNullableWithAggregatesFilter<"Profile"> | string | null;
188
+ deleted?: Prisma.BoolWithAggregatesFilter<"Profile"> | boolean;
189
+ };
190
+ export type ProfileCreateInput = {
191
+ bio?: string | null;
192
+ deleted?: boolean;
193
+ users?: Prisma.UserCreateNestedManyWithoutProfileInput;
194
+ };
195
+ export type ProfileUncheckedCreateInput = {
196
+ id?: number;
197
+ bio?: string | null;
198
+ deleted?: boolean;
199
+ users?: Prisma.UserUncheckedCreateNestedManyWithoutProfileInput;
200
+ };
201
+ export type ProfileUpdateInput = {
202
+ bio?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
203
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
204
+ users?: Prisma.UserUpdateManyWithoutProfileNestedInput;
205
+ };
206
+ export type ProfileUncheckedUpdateInput = {
207
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
208
+ bio?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
209
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
210
+ users?: Prisma.UserUncheckedUpdateManyWithoutProfileNestedInput;
211
+ };
212
+ export type ProfileCreateManyInput = {
213
+ id?: number;
214
+ bio?: string | null;
215
+ deleted?: boolean;
216
+ };
217
+ export type ProfileUpdateManyMutationInput = {
218
+ bio?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
219
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
220
+ };
221
+ export type ProfileUncheckedUpdateManyInput = {
222
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
223
+ bio?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
224
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
225
+ };
226
+ export type ProfileNullableScalarRelationFilter = {
227
+ is?: Prisma.ProfileWhereInput | null;
228
+ isNot?: Prisma.ProfileWhereInput | null;
229
+ };
230
+ export type ProfileCountOrderByAggregateInput = {
231
+ id?: Prisma.SortOrder;
232
+ bio?: Prisma.SortOrder;
233
+ deleted?: Prisma.SortOrder;
234
+ };
235
+ export type ProfileAvgOrderByAggregateInput = {
236
+ id?: Prisma.SortOrder;
237
+ };
238
+ export type ProfileMaxOrderByAggregateInput = {
239
+ id?: Prisma.SortOrder;
240
+ bio?: Prisma.SortOrder;
241
+ deleted?: Prisma.SortOrder;
242
+ };
243
+ export type ProfileMinOrderByAggregateInput = {
244
+ id?: Prisma.SortOrder;
245
+ bio?: Prisma.SortOrder;
246
+ deleted?: Prisma.SortOrder;
247
+ };
248
+ export type ProfileSumOrderByAggregateInput = {
249
+ id?: Prisma.SortOrder;
250
+ };
251
+ export type ProfileCreateNestedOneWithoutUsersInput = {
252
+ create?: Prisma.XOR<Prisma.ProfileCreateWithoutUsersInput, Prisma.ProfileUncheckedCreateWithoutUsersInput>;
253
+ connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutUsersInput;
254
+ connect?: Prisma.ProfileWhereUniqueInput;
255
+ };
256
+ export type ProfileUpdateOneWithoutUsersNestedInput = {
257
+ create?: Prisma.XOR<Prisma.ProfileCreateWithoutUsersInput, Prisma.ProfileUncheckedCreateWithoutUsersInput>;
258
+ connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutUsersInput;
259
+ upsert?: Prisma.ProfileUpsertWithoutUsersInput;
260
+ disconnect?: Prisma.ProfileWhereInput | boolean;
261
+ delete?: Prisma.ProfileWhereInput | boolean;
262
+ connect?: Prisma.ProfileWhereUniqueInput;
263
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ProfileUpdateToOneWithWhereWithoutUsersInput, Prisma.ProfileUpdateWithoutUsersInput>, Prisma.ProfileUncheckedUpdateWithoutUsersInput>;
264
+ };
265
+ export type ProfileCreateWithoutUsersInput = {
266
+ bio?: string | null;
267
+ deleted?: boolean;
268
+ };
269
+ export type ProfileUncheckedCreateWithoutUsersInput = {
270
+ id?: number;
271
+ bio?: string | null;
272
+ deleted?: boolean;
273
+ };
274
+ export type ProfileCreateOrConnectWithoutUsersInput = {
275
+ where: Prisma.ProfileWhereUniqueInput;
276
+ create: Prisma.XOR<Prisma.ProfileCreateWithoutUsersInput, Prisma.ProfileUncheckedCreateWithoutUsersInput>;
277
+ };
278
+ export type ProfileUpsertWithoutUsersInput = {
279
+ update: Prisma.XOR<Prisma.ProfileUpdateWithoutUsersInput, Prisma.ProfileUncheckedUpdateWithoutUsersInput>;
280
+ create: Prisma.XOR<Prisma.ProfileCreateWithoutUsersInput, Prisma.ProfileUncheckedCreateWithoutUsersInput>;
281
+ where?: Prisma.ProfileWhereInput;
282
+ };
283
+ export type ProfileUpdateToOneWithWhereWithoutUsersInput = {
284
+ where?: Prisma.ProfileWhereInput;
285
+ data: Prisma.XOR<Prisma.ProfileUpdateWithoutUsersInput, Prisma.ProfileUncheckedUpdateWithoutUsersInput>;
286
+ };
287
+ export type ProfileUpdateWithoutUsersInput = {
288
+ bio?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
289
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
290
+ };
291
+ export type ProfileUncheckedUpdateWithoutUsersInput = {
292
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
293
+ bio?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
294
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
295
+ };
296
+ /**
297
+ * Count Type ProfileCountOutputType
298
+ */
299
+ export type ProfileCountOutputType = {
300
+ users: number;
301
+ };
302
+ export type ProfileCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
303
+ users?: boolean | ProfileCountOutputTypeCountUsersArgs;
304
+ };
305
+ /**
306
+ * ProfileCountOutputType without action
307
+ */
308
+ export type ProfileCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
309
+ /**
310
+ * Select specific fields to fetch from the ProfileCountOutputType
311
+ */
312
+ select?: Prisma.ProfileCountOutputTypeSelect<ExtArgs> | null;
313
+ };
314
+ /**
315
+ * ProfileCountOutputType without action
316
+ */
317
+ export type ProfileCountOutputTypeCountUsersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
318
+ where?: Prisma.UserWhereInput;
319
+ };
320
+ export type ProfileSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
321
+ id?: boolean;
322
+ bio?: boolean;
323
+ deleted?: boolean;
324
+ users?: boolean | Prisma.Profile$usersArgs<ExtArgs>;
325
+ _count?: boolean | Prisma.ProfileCountOutputTypeDefaultArgs<ExtArgs>;
326
+ }, ExtArgs["result"]["profile"]>;
327
+ export type ProfileSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
328
+ id?: boolean;
329
+ bio?: boolean;
330
+ deleted?: boolean;
331
+ }, ExtArgs["result"]["profile"]>;
332
+ export type ProfileSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
333
+ id?: boolean;
334
+ bio?: boolean;
335
+ deleted?: boolean;
336
+ }, ExtArgs["result"]["profile"]>;
337
+ export type ProfileSelectScalar = {
338
+ id?: boolean;
339
+ bio?: boolean;
340
+ deleted?: boolean;
341
+ };
342
+ export type ProfileOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "bio" | "deleted", ExtArgs["result"]["profile"]>;
343
+ export type ProfileInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
344
+ users?: boolean | Prisma.Profile$usersArgs<ExtArgs>;
345
+ _count?: boolean | Prisma.ProfileCountOutputTypeDefaultArgs<ExtArgs>;
346
+ };
347
+ export type ProfileIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
348
+ export type ProfileIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
349
+ export type $ProfilePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
350
+ name: "Profile";
351
+ objects: {
352
+ users: Prisma.$UserPayload<ExtArgs>[];
353
+ };
354
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
355
+ id: number;
356
+ bio: string | null;
357
+ deleted: boolean;
358
+ }, ExtArgs["result"]["profile"]>;
359
+ composites: {};
360
+ };
361
+ export type ProfileGetPayload<S extends boolean | null | undefined | ProfileDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ProfilePayload, S>;
362
+ export type ProfileCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ProfileFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
363
+ select?: ProfileCountAggregateInputType | true;
364
+ };
365
+ export interface ProfileDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
366
+ [K: symbol]: {
367
+ types: Prisma.TypeMap<ExtArgs>['model']['Profile'];
368
+ meta: {
369
+ name: 'Profile';
370
+ };
371
+ };
372
+ /**
373
+ * Find zero or one Profile that matches the filter.
374
+ * @param {ProfileFindUniqueArgs} args - Arguments to find a Profile
375
+ * @example
376
+ * // Get one Profile
377
+ * const profile = await prisma.profile.findUnique({
378
+ * where: {
379
+ * // ... provide filter here
380
+ * }
381
+ * })
382
+ */
383
+ findUnique<T extends ProfileFindUniqueArgs>(args: Prisma.SelectSubset<T, ProfileFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
384
+ /**
385
+ * Find one Profile that matches the filter or throw an error with `error.code='P2025'`
386
+ * if no matches were found.
387
+ * @param {ProfileFindUniqueOrThrowArgs} args - Arguments to find a Profile
388
+ * @example
389
+ * // Get one Profile
390
+ * const profile = await prisma.profile.findUniqueOrThrow({
391
+ * where: {
392
+ * // ... provide filter here
393
+ * }
394
+ * })
395
+ */
396
+ findUniqueOrThrow<T extends ProfileFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProfileFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
397
+ /**
398
+ * Find the first Profile that matches the filter.
399
+ * Note, that providing `undefined` is treated as the value not being there.
400
+ * Read more here: https://pris.ly/d/null-undefined
401
+ * @param {ProfileFindFirstArgs} args - Arguments to find a Profile
402
+ * @example
403
+ * // Get one Profile
404
+ * const profile = await prisma.profile.findFirst({
405
+ * where: {
406
+ * // ... provide filter here
407
+ * }
408
+ * })
409
+ */
410
+ findFirst<T extends ProfileFindFirstArgs>(args?: Prisma.SelectSubset<T, ProfileFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
411
+ /**
412
+ * Find the first Profile that matches the filter or
413
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
414
+ * Note, that providing `undefined` is treated as the value not being there.
415
+ * Read more here: https://pris.ly/d/null-undefined
416
+ * @param {ProfileFindFirstOrThrowArgs} args - Arguments to find a Profile
417
+ * @example
418
+ * // Get one Profile
419
+ * const profile = await prisma.profile.findFirstOrThrow({
420
+ * where: {
421
+ * // ... provide filter here
422
+ * }
423
+ * })
424
+ */
425
+ findFirstOrThrow<T extends ProfileFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProfileFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
426
+ /**
427
+ * Find zero or more Profiles that matches the filter.
428
+ * Note, that providing `undefined` is treated as the value not being there.
429
+ * Read more here: https://pris.ly/d/null-undefined
430
+ * @param {ProfileFindManyArgs} args - Arguments to filter and select certain fields only.
431
+ * @example
432
+ * // Get all Profiles
433
+ * const profiles = await prisma.profile.findMany()
434
+ *
435
+ * // Get first 10 Profiles
436
+ * const profiles = await prisma.profile.findMany({ take: 10 })
437
+ *
438
+ * // Only select the `id`
439
+ * const profileWithIdOnly = await prisma.profile.findMany({ select: { id: true } })
440
+ *
441
+ */
442
+ findMany<T extends ProfileFindManyArgs>(args?: Prisma.SelectSubset<T, ProfileFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
443
+ /**
444
+ * Create a Profile.
445
+ * @param {ProfileCreateArgs} args - Arguments to create a Profile.
446
+ * @example
447
+ * // Create one Profile
448
+ * const Profile = await prisma.profile.create({
449
+ * data: {
450
+ * // ... data to create a Profile
451
+ * }
452
+ * })
453
+ *
454
+ */
455
+ create<T extends ProfileCreateArgs>(args: Prisma.SelectSubset<T, ProfileCreateArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
456
+ /**
457
+ * Create many Profiles.
458
+ * @param {ProfileCreateManyArgs} args - Arguments to create many Profiles.
459
+ * @example
460
+ * // Create many Profiles
461
+ * const profile = await prisma.profile.createMany({
462
+ * data: [
463
+ * // ... provide data here
464
+ * ]
465
+ * })
466
+ *
467
+ */
468
+ createMany<T extends ProfileCreateManyArgs>(args?: Prisma.SelectSubset<T, ProfileCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
469
+ /**
470
+ * Create many Profiles and returns the data saved in the database.
471
+ * @param {ProfileCreateManyAndReturnArgs} args - Arguments to create many Profiles.
472
+ * @example
473
+ * // Create many Profiles
474
+ * const profile = await prisma.profile.createManyAndReturn({
475
+ * data: [
476
+ * // ... provide data here
477
+ * ]
478
+ * })
479
+ *
480
+ * // Create many Profiles and only return the `id`
481
+ * const profileWithIdOnly = await prisma.profile.createManyAndReturn({
482
+ * select: { id: true },
483
+ * data: [
484
+ * // ... provide data here
485
+ * ]
486
+ * })
487
+ * Note, that providing `undefined` is treated as the value not being there.
488
+ * Read more here: https://pris.ly/d/null-undefined
489
+ *
490
+ */
491
+ createManyAndReturn<T extends ProfileCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProfileCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
492
+ /**
493
+ * Delete a Profile.
494
+ * @param {ProfileDeleteArgs} args - Arguments to delete one Profile.
495
+ * @example
496
+ * // Delete one Profile
497
+ * const Profile = await prisma.profile.delete({
498
+ * where: {
499
+ * // ... filter to delete one Profile
500
+ * }
501
+ * })
502
+ *
503
+ */
504
+ delete<T extends ProfileDeleteArgs>(args: Prisma.SelectSubset<T, ProfileDeleteArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
505
+ /**
506
+ * Update one Profile.
507
+ * @param {ProfileUpdateArgs} args - Arguments to update one Profile.
508
+ * @example
509
+ * // Update one Profile
510
+ * const profile = await prisma.profile.update({
511
+ * where: {
512
+ * // ... provide filter here
513
+ * },
514
+ * data: {
515
+ * // ... provide data here
516
+ * }
517
+ * })
518
+ *
519
+ */
520
+ update<T extends ProfileUpdateArgs>(args: Prisma.SelectSubset<T, ProfileUpdateArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
521
+ /**
522
+ * Delete zero or more Profiles.
523
+ * @param {ProfileDeleteManyArgs} args - Arguments to filter Profiles to delete.
524
+ * @example
525
+ * // Delete a few Profiles
526
+ * const { count } = await prisma.profile.deleteMany({
527
+ * where: {
528
+ * // ... provide filter here
529
+ * }
530
+ * })
531
+ *
532
+ */
533
+ deleteMany<T extends ProfileDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProfileDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
534
+ /**
535
+ * Update zero or more Profiles.
536
+ * Note, that providing `undefined` is treated as the value not being there.
537
+ * Read more here: https://pris.ly/d/null-undefined
538
+ * @param {ProfileUpdateManyArgs} args - Arguments to update one or more rows.
539
+ * @example
540
+ * // Update many Profiles
541
+ * const profile = await prisma.profile.updateMany({
542
+ * where: {
543
+ * // ... provide filter here
544
+ * },
545
+ * data: {
546
+ * // ... provide data here
547
+ * }
548
+ * })
549
+ *
550
+ */
551
+ updateMany<T extends ProfileUpdateManyArgs>(args: Prisma.SelectSubset<T, ProfileUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
552
+ /**
553
+ * Update zero or more Profiles and returns the data updated in the database.
554
+ * @param {ProfileUpdateManyAndReturnArgs} args - Arguments to update many Profiles.
555
+ * @example
556
+ * // Update many Profiles
557
+ * const profile = await prisma.profile.updateManyAndReturn({
558
+ * where: {
559
+ * // ... provide filter here
560
+ * },
561
+ * data: [
562
+ * // ... provide data here
563
+ * ]
564
+ * })
565
+ *
566
+ * // Update zero or more Profiles and only return the `id`
567
+ * const profileWithIdOnly = await prisma.profile.updateManyAndReturn({
568
+ * select: { id: true },
569
+ * where: {
570
+ * // ... provide filter here
571
+ * },
572
+ * data: [
573
+ * // ... provide data here
574
+ * ]
575
+ * })
576
+ * Note, that providing `undefined` is treated as the value not being there.
577
+ * Read more here: https://pris.ly/d/null-undefined
578
+ *
579
+ */
580
+ updateManyAndReturn<T extends ProfileUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProfileUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
581
+ /**
582
+ * Create or update one Profile.
583
+ * @param {ProfileUpsertArgs} args - Arguments to update or create a Profile.
584
+ * @example
585
+ * // Update or create a Profile
586
+ * const profile = await prisma.profile.upsert({
587
+ * create: {
588
+ * // ... data to create a Profile
589
+ * },
590
+ * update: {
591
+ * // ... in case it already exists, update
592
+ * },
593
+ * where: {
594
+ * // ... the filter for the Profile we want to update
595
+ * }
596
+ * })
597
+ */
598
+ upsert<T extends ProfileUpsertArgs>(args: Prisma.SelectSubset<T, ProfileUpsertArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
599
+ /**
600
+ * Count the number of Profiles.
601
+ * Note, that providing `undefined` is treated as the value not being there.
602
+ * Read more here: https://pris.ly/d/null-undefined
603
+ * @param {ProfileCountArgs} args - Arguments to filter Profiles to count.
604
+ * @example
605
+ * // Count the number of Profiles
606
+ * const count = await prisma.profile.count({
607
+ * where: {
608
+ * // ... the filter for the Profiles we want to count
609
+ * }
610
+ * })
611
+ **/
612
+ count<T extends ProfileCountArgs>(args?: Prisma.Subset<T, ProfileCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ProfileCountAggregateOutputType> : number>;
613
+ /**
614
+ * Allows you to perform aggregations operations on a Profile.
615
+ * Note, that providing `undefined` is treated as the value not being there.
616
+ * Read more here: https://pris.ly/d/null-undefined
617
+ * @param {ProfileAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
618
+ * @example
619
+ * // Ordered by age ascending
620
+ * // Where email contains prisma.io
621
+ * // Limited to the 10 users
622
+ * const aggregations = await prisma.user.aggregate({
623
+ * _avg: {
624
+ * age: true,
625
+ * },
626
+ * where: {
627
+ * email: {
628
+ * contains: "prisma.io",
629
+ * },
630
+ * },
631
+ * orderBy: {
632
+ * age: "asc",
633
+ * },
634
+ * take: 10,
635
+ * })
636
+ **/
637
+ aggregate<T extends ProfileAggregateArgs>(args: Prisma.Subset<T, ProfileAggregateArgs>): Prisma.PrismaPromise<GetProfileAggregateType<T>>;
638
+ /**
639
+ * Group by Profile.
640
+ * Note, that providing `undefined` is treated as the value not being there.
641
+ * Read more here: https://pris.ly/d/null-undefined
642
+ * @param {ProfileGroupByArgs} args - Group by arguments.
643
+ * @example
644
+ * // Group by city, order by createdAt, get count
645
+ * const result = await prisma.user.groupBy({
646
+ * by: ['city', 'createdAt'],
647
+ * orderBy: {
648
+ * createdAt: true
649
+ * },
650
+ * _count: {
651
+ * _all: true
652
+ * },
653
+ * })
654
+ *
655
+ **/
656
+ groupBy<T extends ProfileGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
657
+ orderBy: ProfileGroupByArgs['orderBy'];
658
+ } : {
659
+ orderBy?: ProfileGroupByArgs['orderBy'];
660
+ }, 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 ? {
661
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
662
+ Error,
663
+ 'Field ',
664
+ P,
665
+ ` in "having" needs to be provided in "by"`
666
+ ];
667
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
668
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
669
+ }[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 ? {} : {
670
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
671
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
672
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
673
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ProfileGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProfileGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
674
+ /**
675
+ * Fields of the Profile model
676
+ */
677
+ readonly fields: ProfileFieldRefs;
678
+ }
679
+ /**
680
+ * The delegate class that acts as a "Promise-like" for Profile.
681
+ * Why is this prefixed with `Prisma__`?
682
+ * Because we want to prevent naming conflicts as mentioned in
683
+ * https://github.com/prisma/prisma-client-js/issues/707
684
+ */
685
+ export interface Prisma__ProfileClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
686
+ readonly [Symbol.toStringTag]: "PrismaPromise";
687
+ users<T extends Prisma.Profile$usersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Profile$usersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
688
+ /**
689
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
690
+ * @param onfulfilled The callback to execute when the Promise is resolved.
691
+ * @param onrejected The callback to execute when the Promise is rejected.
692
+ * @returns A Promise for the completion of which ever callback is executed.
693
+ */
694
+ 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>;
695
+ /**
696
+ * Attaches a callback for only the rejection of the Promise.
697
+ * @param onrejected The callback to execute when the Promise is rejected.
698
+ * @returns A Promise for the completion of the callback.
699
+ */
700
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
701
+ /**
702
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
703
+ * resolved value cannot be modified from the callback.
704
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
705
+ * @returns A Promise for the completion of the callback.
706
+ */
707
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
708
+ }
709
+ /**
710
+ * Fields of the Profile model
711
+ */
712
+ export interface ProfileFieldRefs {
713
+ readonly id: Prisma.FieldRef<"Profile", 'Int'>;
714
+ readonly bio: Prisma.FieldRef<"Profile", 'String'>;
715
+ readonly deleted: Prisma.FieldRef<"Profile", 'Boolean'>;
716
+ }
717
+ /**
718
+ * Profile findUnique
719
+ */
720
+ export type ProfileFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
721
+ /**
722
+ * Select specific fields to fetch from the Profile
723
+ */
724
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
725
+ /**
726
+ * Omit specific fields from the Profile
727
+ */
728
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
729
+ /**
730
+ * Choose, which related nodes to fetch as well
731
+ */
732
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
733
+ /**
734
+ * Filter, which Profile to fetch.
735
+ */
736
+ where: Prisma.ProfileWhereUniqueInput;
737
+ };
738
+ /**
739
+ * Profile findUniqueOrThrow
740
+ */
741
+ export type ProfileFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
742
+ /**
743
+ * Select specific fields to fetch from the Profile
744
+ */
745
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
746
+ /**
747
+ * Omit specific fields from the Profile
748
+ */
749
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
750
+ /**
751
+ * Choose, which related nodes to fetch as well
752
+ */
753
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
754
+ /**
755
+ * Filter, which Profile to fetch.
756
+ */
757
+ where: Prisma.ProfileWhereUniqueInput;
758
+ };
759
+ /**
760
+ * Profile findFirst
761
+ */
762
+ export type ProfileFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
763
+ /**
764
+ * Select specific fields to fetch from the Profile
765
+ */
766
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
767
+ /**
768
+ * Omit specific fields from the Profile
769
+ */
770
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
771
+ /**
772
+ * Choose, which related nodes to fetch as well
773
+ */
774
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
775
+ /**
776
+ * Filter, which Profile to fetch.
777
+ */
778
+ where?: Prisma.ProfileWhereInput;
779
+ /**
780
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
781
+ *
782
+ * Determine the order of Profiles to fetch.
783
+ */
784
+ orderBy?: Prisma.ProfileOrderByWithRelationInput | Prisma.ProfileOrderByWithRelationInput[];
785
+ /**
786
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
787
+ *
788
+ * Sets the position for searching for Profiles.
789
+ */
790
+ cursor?: Prisma.ProfileWhereUniqueInput;
791
+ /**
792
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
793
+ *
794
+ * Take `±n` Profiles from the position of the cursor.
795
+ */
796
+ take?: number;
797
+ /**
798
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
799
+ *
800
+ * Skip the first `n` Profiles.
801
+ */
802
+ skip?: number;
803
+ /**
804
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
805
+ *
806
+ * Filter by unique combinations of Profiles.
807
+ */
808
+ distinct?: Prisma.ProfileScalarFieldEnum | Prisma.ProfileScalarFieldEnum[];
809
+ };
810
+ /**
811
+ * Profile findFirstOrThrow
812
+ */
813
+ export type ProfileFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
814
+ /**
815
+ * Select specific fields to fetch from the Profile
816
+ */
817
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
818
+ /**
819
+ * Omit specific fields from the Profile
820
+ */
821
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
822
+ /**
823
+ * Choose, which related nodes to fetch as well
824
+ */
825
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
826
+ /**
827
+ * Filter, which Profile to fetch.
828
+ */
829
+ where?: Prisma.ProfileWhereInput;
830
+ /**
831
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
832
+ *
833
+ * Determine the order of Profiles to fetch.
834
+ */
835
+ orderBy?: Prisma.ProfileOrderByWithRelationInput | Prisma.ProfileOrderByWithRelationInput[];
836
+ /**
837
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
838
+ *
839
+ * Sets the position for searching for Profiles.
840
+ */
841
+ cursor?: Prisma.ProfileWhereUniqueInput;
842
+ /**
843
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
844
+ *
845
+ * Take `±n` Profiles from the position of the cursor.
846
+ */
847
+ take?: number;
848
+ /**
849
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
850
+ *
851
+ * Skip the first `n` Profiles.
852
+ */
853
+ skip?: number;
854
+ /**
855
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
856
+ *
857
+ * Filter by unique combinations of Profiles.
858
+ */
859
+ distinct?: Prisma.ProfileScalarFieldEnum | Prisma.ProfileScalarFieldEnum[];
860
+ };
861
+ /**
862
+ * Profile findMany
863
+ */
864
+ export type ProfileFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
865
+ /**
866
+ * Select specific fields to fetch from the Profile
867
+ */
868
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
869
+ /**
870
+ * Omit specific fields from the Profile
871
+ */
872
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
873
+ /**
874
+ * Choose, which related nodes to fetch as well
875
+ */
876
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
877
+ /**
878
+ * Filter, which Profiles to fetch.
879
+ */
880
+ where?: Prisma.ProfileWhereInput;
881
+ /**
882
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
883
+ *
884
+ * Determine the order of Profiles to fetch.
885
+ */
886
+ orderBy?: Prisma.ProfileOrderByWithRelationInput | Prisma.ProfileOrderByWithRelationInput[];
887
+ /**
888
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
889
+ *
890
+ * Sets the position for listing Profiles.
891
+ */
892
+ cursor?: Prisma.ProfileWhereUniqueInput;
893
+ /**
894
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
895
+ *
896
+ * Take `±n` Profiles from the position of the cursor.
897
+ */
898
+ take?: number;
899
+ /**
900
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
901
+ *
902
+ * Skip the first `n` Profiles.
903
+ */
904
+ skip?: number;
905
+ /**
906
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
907
+ *
908
+ * Filter by unique combinations of Profiles.
909
+ */
910
+ distinct?: Prisma.ProfileScalarFieldEnum | Prisma.ProfileScalarFieldEnum[];
911
+ };
912
+ /**
913
+ * Profile create
914
+ */
915
+ export type ProfileCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
916
+ /**
917
+ * Select specific fields to fetch from the Profile
918
+ */
919
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
920
+ /**
921
+ * Omit specific fields from the Profile
922
+ */
923
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
924
+ /**
925
+ * Choose, which related nodes to fetch as well
926
+ */
927
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
928
+ /**
929
+ * The data needed to create a Profile.
930
+ */
931
+ data?: Prisma.XOR<Prisma.ProfileCreateInput, Prisma.ProfileUncheckedCreateInput>;
932
+ };
933
+ /**
934
+ * Profile createMany
935
+ */
936
+ export type ProfileCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
937
+ /**
938
+ * The data used to create many Profiles.
939
+ */
940
+ data: Prisma.ProfileCreateManyInput | Prisma.ProfileCreateManyInput[];
941
+ skipDuplicates?: boolean;
942
+ };
943
+ /**
944
+ * Profile createManyAndReturn
945
+ */
946
+ export type ProfileCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
947
+ /**
948
+ * Select specific fields to fetch from the Profile
949
+ */
950
+ select?: Prisma.ProfileSelectCreateManyAndReturn<ExtArgs> | null;
951
+ /**
952
+ * Omit specific fields from the Profile
953
+ */
954
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
955
+ /**
956
+ * The data used to create many Profiles.
957
+ */
958
+ data: Prisma.ProfileCreateManyInput | Prisma.ProfileCreateManyInput[];
959
+ skipDuplicates?: boolean;
960
+ };
961
+ /**
962
+ * Profile update
963
+ */
964
+ export type ProfileUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
965
+ /**
966
+ * Select specific fields to fetch from the Profile
967
+ */
968
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
969
+ /**
970
+ * Omit specific fields from the Profile
971
+ */
972
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
973
+ /**
974
+ * Choose, which related nodes to fetch as well
975
+ */
976
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
977
+ /**
978
+ * The data needed to update a Profile.
979
+ */
980
+ data: Prisma.XOR<Prisma.ProfileUpdateInput, Prisma.ProfileUncheckedUpdateInput>;
981
+ /**
982
+ * Choose, which Profile to update.
983
+ */
984
+ where: Prisma.ProfileWhereUniqueInput;
985
+ };
986
+ /**
987
+ * Profile updateMany
988
+ */
989
+ export type ProfileUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
990
+ /**
991
+ * The data used to update Profiles.
992
+ */
993
+ data: Prisma.XOR<Prisma.ProfileUpdateManyMutationInput, Prisma.ProfileUncheckedUpdateManyInput>;
994
+ /**
995
+ * Filter which Profiles to update
996
+ */
997
+ where?: Prisma.ProfileWhereInput;
998
+ /**
999
+ * Limit how many Profiles to update.
1000
+ */
1001
+ limit?: number;
1002
+ };
1003
+ /**
1004
+ * Profile updateManyAndReturn
1005
+ */
1006
+ export type ProfileUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1007
+ /**
1008
+ * Select specific fields to fetch from the Profile
1009
+ */
1010
+ select?: Prisma.ProfileSelectUpdateManyAndReturn<ExtArgs> | null;
1011
+ /**
1012
+ * Omit specific fields from the Profile
1013
+ */
1014
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
1015
+ /**
1016
+ * The data used to update Profiles.
1017
+ */
1018
+ data: Prisma.XOR<Prisma.ProfileUpdateManyMutationInput, Prisma.ProfileUncheckedUpdateManyInput>;
1019
+ /**
1020
+ * Filter which Profiles to update
1021
+ */
1022
+ where?: Prisma.ProfileWhereInput;
1023
+ /**
1024
+ * Limit how many Profiles to update.
1025
+ */
1026
+ limit?: number;
1027
+ };
1028
+ /**
1029
+ * Profile upsert
1030
+ */
1031
+ export type ProfileUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1032
+ /**
1033
+ * Select specific fields to fetch from the Profile
1034
+ */
1035
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
1036
+ /**
1037
+ * Omit specific fields from the Profile
1038
+ */
1039
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
1040
+ /**
1041
+ * Choose, which related nodes to fetch as well
1042
+ */
1043
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
1044
+ /**
1045
+ * The filter to search for the Profile to update in case it exists.
1046
+ */
1047
+ where: Prisma.ProfileWhereUniqueInput;
1048
+ /**
1049
+ * In case the Profile found by the `where` argument doesn't exist, create a new Profile with this data.
1050
+ */
1051
+ create: Prisma.XOR<Prisma.ProfileCreateInput, Prisma.ProfileUncheckedCreateInput>;
1052
+ /**
1053
+ * In case the Profile was found with the provided `where` argument, update it with this data.
1054
+ */
1055
+ update: Prisma.XOR<Prisma.ProfileUpdateInput, Prisma.ProfileUncheckedUpdateInput>;
1056
+ };
1057
+ /**
1058
+ * Profile delete
1059
+ */
1060
+ export type ProfileDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1061
+ /**
1062
+ * Select specific fields to fetch from the Profile
1063
+ */
1064
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
1065
+ /**
1066
+ * Omit specific fields from the Profile
1067
+ */
1068
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
1069
+ /**
1070
+ * Choose, which related nodes to fetch as well
1071
+ */
1072
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
1073
+ /**
1074
+ * Filter which Profile to delete.
1075
+ */
1076
+ where: Prisma.ProfileWhereUniqueInput;
1077
+ };
1078
+ /**
1079
+ * Profile deleteMany
1080
+ */
1081
+ export type ProfileDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1082
+ /**
1083
+ * Filter which Profiles to delete
1084
+ */
1085
+ where?: Prisma.ProfileWhereInput;
1086
+ /**
1087
+ * Limit how many Profiles to delete.
1088
+ */
1089
+ limit?: number;
1090
+ };
1091
+ /**
1092
+ * Profile.users
1093
+ */
1094
+ export type Profile$usersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1095
+ /**
1096
+ * Select specific fields to fetch from the User
1097
+ */
1098
+ select?: Prisma.UserSelect<ExtArgs> | null;
1099
+ /**
1100
+ * Omit specific fields from the User
1101
+ */
1102
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1103
+ /**
1104
+ * Choose, which related nodes to fetch as well
1105
+ */
1106
+ include?: Prisma.UserInclude<ExtArgs> | null;
1107
+ where?: Prisma.UserWhereInput;
1108
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
1109
+ cursor?: Prisma.UserWhereUniqueInput;
1110
+ take?: number;
1111
+ skip?: number;
1112
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[];
1113
+ };
1114
+ /**
1115
+ * Profile without action
1116
+ */
1117
+ export type ProfileDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1118
+ /**
1119
+ * Select specific fields to fetch from the Profile
1120
+ */
1121
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
1122
+ /**
1123
+ * Omit specific fields from the Profile
1124
+ */
1125
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
1126
+ /**
1127
+ * Choose, which related nodes to fetch as well
1128
+ */
1129
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
1130
+ };