@naisys/hub-database 3.0.0-beta.4 → 3.0.0-beta.6

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 (29) hide show
  1. package/package.json +6 -4
  2. package/dist/dbConfig.d.ts +0 -2
  3. package/dist/generated/prisma/browser.d.ts +0 -80
  4. package/dist/generated/prisma/client.d.ts +0 -99
  5. package/dist/generated/prisma/commonInputTypes.d.ts +0 -758
  6. package/dist/generated/prisma/enums.d.ts +0 -57
  7. package/dist/generated/prisma/internal/class.d.ts +0 -285
  8. package/dist/generated/prisma/internal/prismaNamespace.d.ts +0 -1777
  9. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +0 -223
  10. package/dist/generated/prisma/models/attachments.d.ts +0 -1624
  11. package/dist/generated/prisma/models/config_revisions.d.ts +0 -1320
  12. package/dist/generated/prisma/models/context_log.d.ts +0 -1889
  13. package/dist/generated/prisma/models/costs.d.ts +0 -1834
  14. package/dist/generated/prisma/models/hosts.d.ts +0 -1892
  15. package/dist/generated/prisma/models/mail_attachments.d.ts +0 -1244
  16. package/dist/generated/prisma/models/mail_messages.d.ts +0 -1721
  17. package/dist/generated/prisma/models/mail_recipients.d.ts +0 -1409
  18. package/dist/generated/prisma/models/models.d.ts +0 -1175
  19. package/dist/generated/prisma/models/run_session.d.ts +0 -1894
  20. package/dist/generated/prisma/models/schema_version.d.ts +0 -984
  21. package/dist/generated/prisma/models/user_hosts.d.ts +0 -1244
  22. package/dist/generated/prisma/models/user_notifications.d.ts +0 -1543
  23. package/dist/generated/prisma/models/users.d.ts +0 -3229
  24. package/dist/generated/prisma/models/variables.d.ts +0 -1052
  25. package/dist/generated/prisma/models.d.ts +0 -17
  26. package/dist/hubDatabaseService.d.ts +0 -7
  27. package/dist/hubSessionService.d.ts +0 -41
  28. package/dist/index.d.ts +0 -8
  29. package/dist/prismaClient.d.ts +0 -7
@@ -1,1624 +0,0 @@
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 attachments
6
- *
7
- */
8
- export type attachmentsModel = runtime.Types.Result.DefaultSelection<Prisma.$attachmentsPayload>;
9
- export type AggregateAttachments = {
10
- _count: AttachmentsCountAggregateOutputType | null;
11
- _avg: AttachmentsAvgAggregateOutputType | null;
12
- _sum: AttachmentsSumAggregateOutputType | null;
13
- _min: AttachmentsMinAggregateOutputType | null;
14
- _max: AttachmentsMaxAggregateOutputType | null;
15
- };
16
- export type AttachmentsAvgAggregateOutputType = {
17
- id: number | null;
18
- file_size: number | null;
19
- uploaded_by: number | null;
20
- };
21
- export type AttachmentsSumAggregateOutputType = {
22
- id: number | null;
23
- file_size: number | null;
24
- uploaded_by: number | null;
25
- };
26
- export type AttachmentsMinAggregateOutputType = {
27
- id: number | null;
28
- public_id: string | null;
29
- filepath: string | null;
30
- filename: string | null;
31
- file_size: number | null;
32
- file_hash: string | null;
33
- purpose: $Enums.AttachmentPurpose | null;
34
- uploaded_by: number | null;
35
- created_at: Date | null;
36
- };
37
- export type AttachmentsMaxAggregateOutputType = {
38
- id: number | null;
39
- public_id: string | null;
40
- filepath: string | null;
41
- filename: string | null;
42
- file_size: number | null;
43
- file_hash: string | null;
44
- purpose: $Enums.AttachmentPurpose | null;
45
- uploaded_by: number | null;
46
- created_at: Date | null;
47
- };
48
- export type AttachmentsCountAggregateOutputType = {
49
- id: number;
50
- public_id: number;
51
- filepath: number;
52
- filename: number;
53
- file_size: number;
54
- file_hash: number;
55
- purpose: number;
56
- uploaded_by: number;
57
- created_at: number;
58
- _all: number;
59
- };
60
- export type AttachmentsAvgAggregateInputType = {
61
- id?: true;
62
- file_size?: true;
63
- uploaded_by?: true;
64
- };
65
- export type AttachmentsSumAggregateInputType = {
66
- id?: true;
67
- file_size?: true;
68
- uploaded_by?: true;
69
- };
70
- export type AttachmentsMinAggregateInputType = {
71
- id?: true;
72
- public_id?: true;
73
- filepath?: true;
74
- filename?: true;
75
- file_size?: true;
76
- file_hash?: true;
77
- purpose?: true;
78
- uploaded_by?: true;
79
- created_at?: true;
80
- };
81
- export type AttachmentsMaxAggregateInputType = {
82
- id?: true;
83
- public_id?: true;
84
- filepath?: true;
85
- filename?: true;
86
- file_size?: true;
87
- file_hash?: true;
88
- purpose?: true;
89
- uploaded_by?: true;
90
- created_at?: true;
91
- };
92
- export type AttachmentsCountAggregateInputType = {
93
- id?: true;
94
- public_id?: true;
95
- filepath?: true;
96
- filename?: true;
97
- file_size?: true;
98
- file_hash?: true;
99
- purpose?: true;
100
- uploaded_by?: true;
101
- created_at?: true;
102
- _all?: true;
103
- };
104
- export type AttachmentsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
105
- /**
106
- * Filter which attachments to aggregate.
107
- */
108
- where?: Prisma.attachmentsWhereInput;
109
- /**
110
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
111
- *
112
- * Determine the order of attachments to fetch.
113
- */
114
- orderBy?: Prisma.attachmentsOrderByWithRelationInput | Prisma.attachmentsOrderByWithRelationInput[];
115
- /**
116
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
117
- *
118
- * Sets the start position
119
- */
120
- cursor?: Prisma.attachmentsWhereUniqueInput;
121
- /**
122
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
123
- *
124
- * Take `±n` attachments from the position of the cursor.
125
- */
126
- take?: number;
127
- /**
128
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
129
- *
130
- * Skip the first `n` attachments.
131
- */
132
- skip?: number;
133
- /**
134
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
135
- *
136
- * Count returned attachments
137
- **/
138
- _count?: true | AttachmentsCountAggregateInputType;
139
- /**
140
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
141
- *
142
- * Select which fields to average
143
- **/
144
- _avg?: AttachmentsAvgAggregateInputType;
145
- /**
146
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
- *
148
- * Select which fields to sum
149
- **/
150
- _sum?: AttachmentsSumAggregateInputType;
151
- /**
152
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
153
- *
154
- * Select which fields to find the minimum value
155
- **/
156
- _min?: AttachmentsMinAggregateInputType;
157
- /**
158
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
159
- *
160
- * Select which fields to find the maximum value
161
- **/
162
- _max?: AttachmentsMaxAggregateInputType;
163
- };
164
- export type GetAttachmentsAggregateType<T extends AttachmentsAggregateArgs> = {
165
- [P in keyof T & keyof AggregateAttachments]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAttachments[P]> : Prisma.GetScalarType<T[P], AggregateAttachments[P]>;
166
- };
167
- export type attachmentsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
168
- where?: Prisma.attachmentsWhereInput;
169
- orderBy?: Prisma.attachmentsOrderByWithAggregationInput | Prisma.attachmentsOrderByWithAggregationInput[];
170
- by: Prisma.AttachmentsScalarFieldEnum[] | Prisma.AttachmentsScalarFieldEnum;
171
- having?: Prisma.attachmentsScalarWhereWithAggregatesInput;
172
- take?: number;
173
- skip?: number;
174
- _count?: AttachmentsCountAggregateInputType | true;
175
- _avg?: AttachmentsAvgAggregateInputType;
176
- _sum?: AttachmentsSumAggregateInputType;
177
- _min?: AttachmentsMinAggregateInputType;
178
- _max?: AttachmentsMaxAggregateInputType;
179
- };
180
- export type AttachmentsGroupByOutputType = {
181
- id: number;
182
- public_id: string;
183
- filepath: string;
184
- filename: string;
185
- file_size: number;
186
- file_hash: string;
187
- purpose: $Enums.AttachmentPurpose;
188
- uploaded_by: number;
189
- created_at: Date;
190
- _count: AttachmentsCountAggregateOutputType | null;
191
- _avg: AttachmentsAvgAggregateOutputType | null;
192
- _sum: AttachmentsSumAggregateOutputType | null;
193
- _min: AttachmentsMinAggregateOutputType | null;
194
- _max: AttachmentsMaxAggregateOutputType | null;
195
- };
196
- export type GetAttachmentsGroupByPayload<T extends attachmentsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AttachmentsGroupByOutputType, T['by']> & {
197
- [P in ((keyof T) & (keyof AttachmentsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AttachmentsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AttachmentsGroupByOutputType[P]>;
198
- }>>;
199
- export type attachmentsWhereInput = {
200
- AND?: Prisma.attachmentsWhereInput | Prisma.attachmentsWhereInput[];
201
- OR?: Prisma.attachmentsWhereInput[];
202
- NOT?: Prisma.attachmentsWhereInput | Prisma.attachmentsWhereInput[];
203
- id?: Prisma.IntFilter<"attachments"> | number;
204
- public_id?: Prisma.StringFilter<"attachments"> | string;
205
- filepath?: Prisma.StringFilter<"attachments"> | string;
206
- filename?: Prisma.StringFilter<"attachments"> | string;
207
- file_size?: Prisma.IntFilter<"attachments"> | number;
208
- file_hash?: Prisma.StringFilter<"attachments"> | string;
209
- purpose?: Prisma.EnumAttachmentPurposeFilter<"attachments"> | $Enums.AttachmentPurpose;
210
- uploaded_by?: Prisma.IntFilter<"attachments"> | number;
211
- created_at?: Prisma.DateTimeFilter<"attachments"> | Date | string;
212
- uploader?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.usersWhereInput>;
213
- mail_attachments?: Prisma.Mail_attachmentsListRelationFilter;
214
- context_logs?: Prisma.Context_logListRelationFilter;
215
- };
216
- export type attachmentsOrderByWithRelationInput = {
217
- id?: Prisma.SortOrder;
218
- public_id?: Prisma.SortOrder;
219
- filepath?: Prisma.SortOrder;
220
- filename?: Prisma.SortOrder;
221
- file_size?: Prisma.SortOrder;
222
- file_hash?: Prisma.SortOrder;
223
- purpose?: Prisma.SortOrder;
224
- uploaded_by?: Prisma.SortOrder;
225
- created_at?: Prisma.SortOrder;
226
- uploader?: Prisma.usersOrderByWithRelationInput;
227
- mail_attachments?: Prisma.mail_attachmentsOrderByRelationAggregateInput;
228
- context_logs?: Prisma.context_logOrderByRelationAggregateInput;
229
- };
230
- export type attachmentsWhereUniqueInput = Prisma.AtLeast<{
231
- id?: number;
232
- public_id?: string;
233
- AND?: Prisma.attachmentsWhereInput | Prisma.attachmentsWhereInput[];
234
- OR?: Prisma.attachmentsWhereInput[];
235
- NOT?: Prisma.attachmentsWhereInput | Prisma.attachmentsWhereInput[];
236
- filepath?: Prisma.StringFilter<"attachments"> | string;
237
- filename?: Prisma.StringFilter<"attachments"> | string;
238
- file_size?: Prisma.IntFilter<"attachments"> | number;
239
- file_hash?: Prisma.StringFilter<"attachments"> | string;
240
- purpose?: Prisma.EnumAttachmentPurposeFilter<"attachments"> | $Enums.AttachmentPurpose;
241
- uploaded_by?: Prisma.IntFilter<"attachments"> | number;
242
- created_at?: Prisma.DateTimeFilter<"attachments"> | Date | string;
243
- uploader?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.usersWhereInput>;
244
- mail_attachments?: Prisma.Mail_attachmentsListRelationFilter;
245
- context_logs?: Prisma.Context_logListRelationFilter;
246
- }, "id" | "public_id">;
247
- export type attachmentsOrderByWithAggregationInput = {
248
- id?: Prisma.SortOrder;
249
- public_id?: Prisma.SortOrder;
250
- filepath?: Prisma.SortOrder;
251
- filename?: Prisma.SortOrder;
252
- file_size?: Prisma.SortOrder;
253
- file_hash?: Prisma.SortOrder;
254
- purpose?: Prisma.SortOrder;
255
- uploaded_by?: Prisma.SortOrder;
256
- created_at?: Prisma.SortOrder;
257
- _count?: Prisma.attachmentsCountOrderByAggregateInput;
258
- _avg?: Prisma.attachmentsAvgOrderByAggregateInput;
259
- _max?: Prisma.attachmentsMaxOrderByAggregateInput;
260
- _min?: Prisma.attachmentsMinOrderByAggregateInput;
261
- _sum?: Prisma.attachmentsSumOrderByAggregateInput;
262
- };
263
- export type attachmentsScalarWhereWithAggregatesInput = {
264
- AND?: Prisma.attachmentsScalarWhereWithAggregatesInput | Prisma.attachmentsScalarWhereWithAggregatesInput[];
265
- OR?: Prisma.attachmentsScalarWhereWithAggregatesInput[];
266
- NOT?: Prisma.attachmentsScalarWhereWithAggregatesInput | Prisma.attachmentsScalarWhereWithAggregatesInput[];
267
- id?: Prisma.IntWithAggregatesFilter<"attachments"> | number;
268
- public_id?: Prisma.StringWithAggregatesFilter<"attachments"> | string;
269
- filepath?: Prisma.StringWithAggregatesFilter<"attachments"> | string;
270
- filename?: Prisma.StringWithAggregatesFilter<"attachments"> | string;
271
- file_size?: Prisma.IntWithAggregatesFilter<"attachments"> | number;
272
- file_hash?: Prisma.StringWithAggregatesFilter<"attachments"> | string;
273
- purpose?: Prisma.EnumAttachmentPurposeWithAggregatesFilter<"attachments"> | $Enums.AttachmentPurpose;
274
- uploaded_by?: Prisma.IntWithAggregatesFilter<"attachments"> | number;
275
- created_at?: Prisma.DateTimeWithAggregatesFilter<"attachments"> | Date | string;
276
- };
277
- export type attachmentsCreateInput = {
278
- public_id: string;
279
- filepath: string;
280
- filename: string;
281
- file_size: number;
282
- file_hash: string;
283
- purpose: $Enums.AttachmentPurpose;
284
- created_at?: Date | string;
285
- uploader: Prisma.usersCreateNestedOneWithoutUploaded_attachmentsInput;
286
- mail_attachments?: Prisma.mail_attachmentsCreateNestedManyWithoutAttachmentInput;
287
- context_logs?: Prisma.context_logCreateNestedManyWithoutAttachmentInput;
288
- };
289
- export type attachmentsUncheckedCreateInput = {
290
- id?: number;
291
- public_id: string;
292
- filepath: string;
293
- filename: string;
294
- file_size: number;
295
- file_hash: string;
296
- purpose: $Enums.AttachmentPurpose;
297
- uploaded_by: number;
298
- created_at?: Date | string;
299
- mail_attachments?: Prisma.mail_attachmentsUncheckedCreateNestedManyWithoutAttachmentInput;
300
- context_logs?: Prisma.context_logUncheckedCreateNestedManyWithoutAttachmentInput;
301
- };
302
- export type attachmentsUpdateInput = {
303
- public_id?: Prisma.StringFieldUpdateOperationsInput | string;
304
- filepath?: Prisma.StringFieldUpdateOperationsInput | string;
305
- filename?: Prisma.StringFieldUpdateOperationsInput | string;
306
- file_size?: Prisma.IntFieldUpdateOperationsInput | number;
307
- file_hash?: Prisma.StringFieldUpdateOperationsInput | string;
308
- purpose?: Prisma.EnumAttachmentPurposeFieldUpdateOperationsInput | $Enums.AttachmentPurpose;
309
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
310
- uploader?: Prisma.usersUpdateOneRequiredWithoutUploaded_attachmentsNestedInput;
311
- mail_attachments?: Prisma.mail_attachmentsUpdateManyWithoutAttachmentNestedInput;
312
- context_logs?: Prisma.context_logUpdateManyWithoutAttachmentNestedInput;
313
- };
314
- export type attachmentsUncheckedUpdateInput = {
315
- id?: Prisma.IntFieldUpdateOperationsInput | number;
316
- public_id?: Prisma.StringFieldUpdateOperationsInput | string;
317
- filepath?: Prisma.StringFieldUpdateOperationsInput | string;
318
- filename?: Prisma.StringFieldUpdateOperationsInput | string;
319
- file_size?: Prisma.IntFieldUpdateOperationsInput | number;
320
- file_hash?: Prisma.StringFieldUpdateOperationsInput | string;
321
- purpose?: Prisma.EnumAttachmentPurposeFieldUpdateOperationsInput | $Enums.AttachmentPurpose;
322
- uploaded_by?: Prisma.IntFieldUpdateOperationsInput | number;
323
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
324
- mail_attachments?: Prisma.mail_attachmentsUncheckedUpdateManyWithoutAttachmentNestedInput;
325
- context_logs?: Prisma.context_logUncheckedUpdateManyWithoutAttachmentNestedInput;
326
- };
327
- export type attachmentsCreateManyInput = {
328
- id?: number;
329
- public_id: string;
330
- filepath: string;
331
- filename: string;
332
- file_size: number;
333
- file_hash: string;
334
- purpose: $Enums.AttachmentPurpose;
335
- uploaded_by: number;
336
- created_at?: Date | string;
337
- };
338
- export type attachmentsUpdateManyMutationInput = {
339
- public_id?: Prisma.StringFieldUpdateOperationsInput | string;
340
- filepath?: Prisma.StringFieldUpdateOperationsInput | string;
341
- filename?: Prisma.StringFieldUpdateOperationsInput | string;
342
- file_size?: Prisma.IntFieldUpdateOperationsInput | number;
343
- file_hash?: Prisma.StringFieldUpdateOperationsInput | string;
344
- purpose?: Prisma.EnumAttachmentPurposeFieldUpdateOperationsInput | $Enums.AttachmentPurpose;
345
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
346
- };
347
- export type attachmentsUncheckedUpdateManyInput = {
348
- id?: Prisma.IntFieldUpdateOperationsInput | number;
349
- public_id?: Prisma.StringFieldUpdateOperationsInput | string;
350
- filepath?: Prisma.StringFieldUpdateOperationsInput | string;
351
- filename?: Prisma.StringFieldUpdateOperationsInput | string;
352
- file_size?: Prisma.IntFieldUpdateOperationsInput | number;
353
- file_hash?: Prisma.StringFieldUpdateOperationsInput | string;
354
- purpose?: Prisma.EnumAttachmentPurposeFieldUpdateOperationsInput | $Enums.AttachmentPurpose;
355
- uploaded_by?: Prisma.IntFieldUpdateOperationsInput | number;
356
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
357
- };
358
- export type AttachmentsNullableScalarRelationFilter = {
359
- is?: Prisma.attachmentsWhereInput | null;
360
- isNot?: Prisma.attachmentsWhereInput | null;
361
- };
362
- export type attachmentsCountOrderByAggregateInput = {
363
- id?: Prisma.SortOrder;
364
- public_id?: Prisma.SortOrder;
365
- filepath?: Prisma.SortOrder;
366
- filename?: Prisma.SortOrder;
367
- file_size?: Prisma.SortOrder;
368
- file_hash?: Prisma.SortOrder;
369
- purpose?: Prisma.SortOrder;
370
- uploaded_by?: Prisma.SortOrder;
371
- created_at?: Prisma.SortOrder;
372
- };
373
- export type attachmentsAvgOrderByAggregateInput = {
374
- id?: Prisma.SortOrder;
375
- file_size?: Prisma.SortOrder;
376
- uploaded_by?: Prisma.SortOrder;
377
- };
378
- export type attachmentsMaxOrderByAggregateInput = {
379
- id?: Prisma.SortOrder;
380
- public_id?: Prisma.SortOrder;
381
- filepath?: Prisma.SortOrder;
382
- filename?: Prisma.SortOrder;
383
- file_size?: Prisma.SortOrder;
384
- file_hash?: Prisma.SortOrder;
385
- purpose?: Prisma.SortOrder;
386
- uploaded_by?: Prisma.SortOrder;
387
- created_at?: Prisma.SortOrder;
388
- };
389
- export type attachmentsMinOrderByAggregateInput = {
390
- id?: Prisma.SortOrder;
391
- public_id?: Prisma.SortOrder;
392
- filepath?: Prisma.SortOrder;
393
- filename?: Prisma.SortOrder;
394
- file_size?: Prisma.SortOrder;
395
- file_hash?: Prisma.SortOrder;
396
- purpose?: Prisma.SortOrder;
397
- uploaded_by?: Prisma.SortOrder;
398
- created_at?: Prisma.SortOrder;
399
- };
400
- export type attachmentsSumOrderByAggregateInput = {
401
- id?: Prisma.SortOrder;
402
- file_size?: Prisma.SortOrder;
403
- uploaded_by?: Prisma.SortOrder;
404
- };
405
- export type AttachmentsScalarRelationFilter = {
406
- is?: Prisma.attachmentsWhereInput;
407
- isNot?: Prisma.attachmentsWhereInput;
408
- };
409
- export type AttachmentsListRelationFilter = {
410
- every?: Prisma.attachmentsWhereInput;
411
- some?: Prisma.attachmentsWhereInput;
412
- none?: Prisma.attachmentsWhereInput;
413
- };
414
- export type attachmentsOrderByRelationAggregateInput = {
415
- _count?: Prisma.SortOrder;
416
- };
417
- export type attachmentsCreateNestedOneWithoutContext_logsInput = {
418
- create?: Prisma.XOR<Prisma.attachmentsCreateWithoutContext_logsInput, Prisma.attachmentsUncheckedCreateWithoutContext_logsInput>;
419
- connectOrCreate?: Prisma.attachmentsCreateOrConnectWithoutContext_logsInput;
420
- connect?: Prisma.attachmentsWhereUniqueInput;
421
- };
422
- export type attachmentsUpdateOneWithoutContext_logsNestedInput = {
423
- create?: Prisma.XOR<Prisma.attachmentsCreateWithoutContext_logsInput, Prisma.attachmentsUncheckedCreateWithoutContext_logsInput>;
424
- connectOrCreate?: Prisma.attachmentsCreateOrConnectWithoutContext_logsInput;
425
- upsert?: Prisma.attachmentsUpsertWithoutContext_logsInput;
426
- disconnect?: Prisma.attachmentsWhereInput | boolean;
427
- delete?: Prisma.attachmentsWhereInput | boolean;
428
- connect?: Prisma.attachmentsWhereUniqueInput;
429
- update?: Prisma.XOR<Prisma.XOR<Prisma.attachmentsUpdateToOneWithWhereWithoutContext_logsInput, Prisma.attachmentsUpdateWithoutContext_logsInput>, Prisma.attachmentsUncheckedUpdateWithoutContext_logsInput>;
430
- };
431
- export type EnumAttachmentPurposeFieldUpdateOperationsInput = {
432
- set?: $Enums.AttachmentPurpose;
433
- };
434
- export type attachmentsCreateNestedOneWithoutMail_attachmentsInput = {
435
- create?: Prisma.XOR<Prisma.attachmentsCreateWithoutMail_attachmentsInput, Prisma.attachmentsUncheckedCreateWithoutMail_attachmentsInput>;
436
- connectOrCreate?: Prisma.attachmentsCreateOrConnectWithoutMail_attachmentsInput;
437
- connect?: Prisma.attachmentsWhereUniqueInput;
438
- };
439
- export type attachmentsUpdateOneRequiredWithoutMail_attachmentsNestedInput = {
440
- create?: Prisma.XOR<Prisma.attachmentsCreateWithoutMail_attachmentsInput, Prisma.attachmentsUncheckedCreateWithoutMail_attachmentsInput>;
441
- connectOrCreate?: Prisma.attachmentsCreateOrConnectWithoutMail_attachmentsInput;
442
- upsert?: Prisma.attachmentsUpsertWithoutMail_attachmentsInput;
443
- connect?: Prisma.attachmentsWhereUniqueInput;
444
- update?: Prisma.XOR<Prisma.XOR<Prisma.attachmentsUpdateToOneWithWhereWithoutMail_attachmentsInput, Prisma.attachmentsUpdateWithoutMail_attachmentsInput>, Prisma.attachmentsUncheckedUpdateWithoutMail_attachmentsInput>;
445
- };
446
- export type attachmentsCreateNestedManyWithoutUploaderInput = {
447
- create?: Prisma.XOR<Prisma.attachmentsCreateWithoutUploaderInput, Prisma.attachmentsUncheckedCreateWithoutUploaderInput> | Prisma.attachmentsCreateWithoutUploaderInput[] | Prisma.attachmentsUncheckedCreateWithoutUploaderInput[];
448
- connectOrCreate?: Prisma.attachmentsCreateOrConnectWithoutUploaderInput | Prisma.attachmentsCreateOrConnectWithoutUploaderInput[];
449
- createMany?: Prisma.attachmentsCreateManyUploaderInputEnvelope;
450
- connect?: Prisma.attachmentsWhereUniqueInput | Prisma.attachmentsWhereUniqueInput[];
451
- };
452
- export type attachmentsUncheckedCreateNestedManyWithoutUploaderInput = {
453
- create?: Prisma.XOR<Prisma.attachmentsCreateWithoutUploaderInput, Prisma.attachmentsUncheckedCreateWithoutUploaderInput> | Prisma.attachmentsCreateWithoutUploaderInput[] | Prisma.attachmentsUncheckedCreateWithoutUploaderInput[];
454
- connectOrCreate?: Prisma.attachmentsCreateOrConnectWithoutUploaderInput | Prisma.attachmentsCreateOrConnectWithoutUploaderInput[];
455
- createMany?: Prisma.attachmentsCreateManyUploaderInputEnvelope;
456
- connect?: Prisma.attachmentsWhereUniqueInput | Prisma.attachmentsWhereUniqueInput[];
457
- };
458
- export type attachmentsUpdateManyWithoutUploaderNestedInput = {
459
- create?: Prisma.XOR<Prisma.attachmentsCreateWithoutUploaderInput, Prisma.attachmentsUncheckedCreateWithoutUploaderInput> | Prisma.attachmentsCreateWithoutUploaderInput[] | Prisma.attachmentsUncheckedCreateWithoutUploaderInput[];
460
- connectOrCreate?: Prisma.attachmentsCreateOrConnectWithoutUploaderInput | Prisma.attachmentsCreateOrConnectWithoutUploaderInput[];
461
- upsert?: Prisma.attachmentsUpsertWithWhereUniqueWithoutUploaderInput | Prisma.attachmentsUpsertWithWhereUniqueWithoutUploaderInput[];
462
- createMany?: Prisma.attachmentsCreateManyUploaderInputEnvelope;
463
- set?: Prisma.attachmentsWhereUniqueInput | Prisma.attachmentsWhereUniqueInput[];
464
- disconnect?: Prisma.attachmentsWhereUniqueInput | Prisma.attachmentsWhereUniqueInput[];
465
- delete?: Prisma.attachmentsWhereUniqueInput | Prisma.attachmentsWhereUniqueInput[];
466
- connect?: Prisma.attachmentsWhereUniqueInput | Prisma.attachmentsWhereUniqueInput[];
467
- update?: Prisma.attachmentsUpdateWithWhereUniqueWithoutUploaderInput | Prisma.attachmentsUpdateWithWhereUniqueWithoutUploaderInput[];
468
- updateMany?: Prisma.attachmentsUpdateManyWithWhereWithoutUploaderInput | Prisma.attachmentsUpdateManyWithWhereWithoutUploaderInput[];
469
- deleteMany?: Prisma.attachmentsScalarWhereInput | Prisma.attachmentsScalarWhereInput[];
470
- };
471
- export type attachmentsUncheckedUpdateManyWithoutUploaderNestedInput = {
472
- create?: Prisma.XOR<Prisma.attachmentsCreateWithoutUploaderInput, Prisma.attachmentsUncheckedCreateWithoutUploaderInput> | Prisma.attachmentsCreateWithoutUploaderInput[] | Prisma.attachmentsUncheckedCreateWithoutUploaderInput[];
473
- connectOrCreate?: Prisma.attachmentsCreateOrConnectWithoutUploaderInput | Prisma.attachmentsCreateOrConnectWithoutUploaderInput[];
474
- upsert?: Prisma.attachmentsUpsertWithWhereUniqueWithoutUploaderInput | Prisma.attachmentsUpsertWithWhereUniqueWithoutUploaderInput[];
475
- createMany?: Prisma.attachmentsCreateManyUploaderInputEnvelope;
476
- set?: Prisma.attachmentsWhereUniqueInput | Prisma.attachmentsWhereUniqueInput[];
477
- disconnect?: Prisma.attachmentsWhereUniqueInput | Prisma.attachmentsWhereUniqueInput[];
478
- delete?: Prisma.attachmentsWhereUniqueInput | Prisma.attachmentsWhereUniqueInput[];
479
- connect?: Prisma.attachmentsWhereUniqueInput | Prisma.attachmentsWhereUniqueInput[];
480
- update?: Prisma.attachmentsUpdateWithWhereUniqueWithoutUploaderInput | Prisma.attachmentsUpdateWithWhereUniqueWithoutUploaderInput[];
481
- updateMany?: Prisma.attachmentsUpdateManyWithWhereWithoutUploaderInput | Prisma.attachmentsUpdateManyWithWhereWithoutUploaderInput[];
482
- deleteMany?: Prisma.attachmentsScalarWhereInput | Prisma.attachmentsScalarWhereInput[];
483
- };
484
- export type attachmentsCreateWithoutContext_logsInput = {
485
- public_id: string;
486
- filepath: string;
487
- filename: string;
488
- file_size: number;
489
- file_hash: string;
490
- purpose: $Enums.AttachmentPurpose;
491
- created_at?: Date | string;
492
- uploader: Prisma.usersCreateNestedOneWithoutUploaded_attachmentsInput;
493
- mail_attachments?: Prisma.mail_attachmentsCreateNestedManyWithoutAttachmentInput;
494
- };
495
- export type attachmentsUncheckedCreateWithoutContext_logsInput = {
496
- id?: number;
497
- public_id: string;
498
- filepath: string;
499
- filename: string;
500
- file_size: number;
501
- file_hash: string;
502
- purpose: $Enums.AttachmentPurpose;
503
- uploaded_by: number;
504
- created_at?: Date | string;
505
- mail_attachments?: Prisma.mail_attachmentsUncheckedCreateNestedManyWithoutAttachmentInput;
506
- };
507
- export type attachmentsCreateOrConnectWithoutContext_logsInput = {
508
- where: Prisma.attachmentsWhereUniqueInput;
509
- create: Prisma.XOR<Prisma.attachmentsCreateWithoutContext_logsInput, Prisma.attachmentsUncheckedCreateWithoutContext_logsInput>;
510
- };
511
- export type attachmentsUpsertWithoutContext_logsInput = {
512
- update: Prisma.XOR<Prisma.attachmentsUpdateWithoutContext_logsInput, Prisma.attachmentsUncheckedUpdateWithoutContext_logsInput>;
513
- create: Prisma.XOR<Prisma.attachmentsCreateWithoutContext_logsInput, Prisma.attachmentsUncheckedCreateWithoutContext_logsInput>;
514
- where?: Prisma.attachmentsWhereInput;
515
- };
516
- export type attachmentsUpdateToOneWithWhereWithoutContext_logsInput = {
517
- where?: Prisma.attachmentsWhereInput;
518
- data: Prisma.XOR<Prisma.attachmentsUpdateWithoutContext_logsInput, Prisma.attachmentsUncheckedUpdateWithoutContext_logsInput>;
519
- };
520
- export type attachmentsUpdateWithoutContext_logsInput = {
521
- public_id?: Prisma.StringFieldUpdateOperationsInput | string;
522
- filepath?: Prisma.StringFieldUpdateOperationsInput | string;
523
- filename?: Prisma.StringFieldUpdateOperationsInput | string;
524
- file_size?: Prisma.IntFieldUpdateOperationsInput | number;
525
- file_hash?: Prisma.StringFieldUpdateOperationsInput | string;
526
- purpose?: Prisma.EnumAttachmentPurposeFieldUpdateOperationsInput | $Enums.AttachmentPurpose;
527
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
528
- uploader?: Prisma.usersUpdateOneRequiredWithoutUploaded_attachmentsNestedInput;
529
- mail_attachments?: Prisma.mail_attachmentsUpdateManyWithoutAttachmentNestedInput;
530
- };
531
- export type attachmentsUncheckedUpdateWithoutContext_logsInput = {
532
- id?: Prisma.IntFieldUpdateOperationsInput | number;
533
- public_id?: Prisma.StringFieldUpdateOperationsInput | string;
534
- filepath?: Prisma.StringFieldUpdateOperationsInput | string;
535
- filename?: Prisma.StringFieldUpdateOperationsInput | string;
536
- file_size?: Prisma.IntFieldUpdateOperationsInput | number;
537
- file_hash?: Prisma.StringFieldUpdateOperationsInput | string;
538
- purpose?: Prisma.EnumAttachmentPurposeFieldUpdateOperationsInput | $Enums.AttachmentPurpose;
539
- uploaded_by?: Prisma.IntFieldUpdateOperationsInput | number;
540
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
541
- mail_attachments?: Prisma.mail_attachmentsUncheckedUpdateManyWithoutAttachmentNestedInput;
542
- };
543
- export type attachmentsCreateWithoutMail_attachmentsInput = {
544
- public_id: string;
545
- filepath: string;
546
- filename: string;
547
- file_size: number;
548
- file_hash: string;
549
- purpose: $Enums.AttachmentPurpose;
550
- created_at?: Date | string;
551
- uploader: Prisma.usersCreateNestedOneWithoutUploaded_attachmentsInput;
552
- context_logs?: Prisma.context_logCreateNestedManyWithoutAttachmentInput;
553
- };
554
- export type attachmentsUncheckedCreateWithoutMail_attachmentsInput = {
555
- id?: number;
556
- public_id: string;
557
- filepath: string;
558
- filename: string;
559
- file_size: number;
560
- file_hash: string;
561
- purpose: $Enums.AttachmentPurpose;
562
- uploaded_by: number;
563
- created_at?: Date | string;
564
- context_logs?: Prisma.context_logUncheckedCreateNestedManyWithoutAttachmentInput;
565
- };
566
- export type attachmentsCreateOrConnectWithoutMail_attachmentsInput = {
567
- where: Prisma.attachmentsWhereUniqueInput;
568
- create: Prisma.XOR<Prisma.attachmentsCreateWithoutMail_attachmentsInput, Prisma.attachmentsUncheckedCreateWithoutMail_attachmentsInput>;
569
- };
570
- export type attachmentsUpsertWithoutMail_attachmentsInput = {
571
- update: Prisma.XOR<Prisma.attachmentsUpdateWithoutMail_attachmentsInput, Prisma.attachmentsUncheckedUpdateWithoutMail_attachmentsInput>;
572
- create: Prisma.XOR<Prisma.attachmentsCreateWithoutMail_attachmentsInput, Prisma.attachmentsUncheckedCreateWithoutMail_attachmentsInput>;
573
- where?: Prisma.attachmentsWhereInput;
574
- };
575
- export type attachmentsUpdateToOneWithWhereWithoutMail_attachmentsInput = {
576
- where?: Prisma.attachmentsWhereInput;
577
- data: Prisma.XOR<Prisma.attachmentsUpdateWithoutMail_attachmentsInput, Prisma.attachmentsUncheckedUpdateWithoutMail_attachmentsInput>;
578
- };
579
- export type attachmentsUpdateWithoutMail_attachmentsInput = {
580
- public_id?: Prisma.StringFieldUpdateOperationsInput | string;
581
- filepath?: Prisma.StringFieldUpdateOperationsInput | string;
582
- filename?: Prisma.StringFieldUpdateOperationsInput | string;
583
- file_size?: Prisma.IntFieldUpdateOperationsInput | number;
584
- file_hash?: Prisma.StringFieldUpdateOperationsInput | string;
585
- purpose?: Prisma.EnumAttachmentPurposeFieldUpdateOperationsInput | $Enums.AttachmentPurpose;
586
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
587
- uploader?: Prisma.usersUpdateOneRequiredWithoutUploaded_attachmentsNestedInput;
588
- context_logs?: Prisma.context_logUpdateManyWithoutAttachmentNestedInput;
589
- };
590
- export type attachmentsUncheckedUpdateWithoutMail_attachmentsInput = {
591
- id?: Prisma.IntFieldUpdateOperationsInput | number;
592
- public_id?: Prisma.StringFieldUpdateOperationsInput | string;
593
- filepath?: Prisma.StringFieldUpdateOperationsInput | string;
594
- filename?: Prisma.StringFieldUpdateOperationsInput | string;
595
- file_size?: Prisma.IntFieldUpdateOperationsInput | number;
596
- file_hash?: Prisma.StringFieldUpdateOperationsInput | string;
597
- purpose?: Prisma.EnumAttachmentPurposeFieldUpdateOperationsInput | $Enums.AttachmentPurpose;
598
- uploaded_by?: Prisma.IntFieldUpdateOperationsInput | number;
599
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
600
- context_logs?: Prisma.context_logUncheckedUpdateManyWithoutAttachmentNestedInput;
601
- };
602
- export type attachmentsCreateWithoutUploaderInput = {
603
- public_id: string;
604
- filepath: string;
605
- filename: string;
606
- file_size: number;
607
- file_hash: string;
608
- purpose: $Enums.AttachmentPurpose;
609
- created_at?: Date | string;
610
- mail_attachments?: Prisma.mail_attachmentsCreateNestedManyWithoutAttachmentInput;
611
- context_logs?: Prisma.context_logCreateNestedManyWithoutAttachmentInput;
612
- };
613
- export type attachmentsUncheckedCreateWithoutUploaderInput = {
614
- id?: number;
615
- public_id: string;
616
- filepath: string;
617
- filename: string;
618
- file_size: number;
619
- file_hash: string;
620
- purpose: $Enums.AttachmentPurpose;
621
- created_at?: Date | string;
622
- mail_attachments?: Prisma.mail_attachmentsUncheckedCreateNestedManyWithoutAttachmentInput;
623
- context_logs?: Prisma.context_logUncheckedCreateNestedManyWithoutAttachmentInput;
624
- };
625
- export type attachmentsCreateOrConnectWithoutUploaderInput = {
626
- where: Prisma.attachmentsWhereUniqueInput;
627
- create: Prisma.XOR<Prisma.attachmentsCreateWithoutUploaderInput, Prisma.attachmentsUncheckedCreateWithoutUploaderInput>;
628
- };
629
- export type attachmentsCreateManyUploaderInputEnvelope = {
630
- data: Prisma.attachmentsCreateManyUploaderInput | Prisma.attachmentsCreateManyUploaderInput[];
631
- };
632
- export type attachmentsUpsertWithWhereUniqueWithoutUploaderInput = {
633
- where: Prisma.attachmentsWhereUniqueInput;
634
- update: Prisma.XOR<Prisma.attachmentsUpdateWithoutUploaderInput, Prisma.attachmentsUncheckedUpdateWithoutUploaderInput>;
635
- create: Prisma.XOR<Prisma.attachmentsCreateWithoutUploaderInput, Prisma.attachmentsUncheckedCreateWithoutUploaderInput>;
636
- };
637
- export type attachmentsUpdateWithWhereUniqueWithoutUploaderInput = {
638
- where: Prisma.attachmentsWhereUniqueInput;
639
- data: Prisma.XOR<Prisma.attachmentsUpdateWithoutUploaderInput, Prisma.attachmentsUncheckedUpdateWithoutUploaderInput>;
640
- };
641
- export type attachmentsUpdateManyWithWhereWithoutUploaderInput = {
642
- where: Prisma.attachmentsScalarWhereInput;
643
- data: Prisma.XOR<Prisma.attachmentsUpdateManyMutationInput, Prisma.attachmentsUncheckedUpdateManyWithoutUploaderInput>;
644
- };
645
- export type attachmentsScalarWhereInput = {
646
- AND?: Prisma.attachmentsScalarWhereInput | Prisma.attachmentsScalarWhereInput[];
647
- OR?: Prisma.attachmentsScalarWhereInput[];
648
- NOT?: Prisma.attachmentsScalarWhereInput | Prisma.attachmentsScalarWhereInput[];
649
- id?: Prisma.IntFilter<"attachments"> | number;
650
- public_id?: Prisma.StringFilter<"attachments"> | string;
651
- filepath?: Prisma.StringFilter<"attachments"> | string;
652
- filename?: Prisma.StringFilter<"attachments"> | string;
653
- file_size?: Prisma.IntFilter<"attachments"> | number;
654
- file_hash?: Prisma.StringFilter<"attachments"> | string;
655
- purpose?: Prisma.EnumAttachmentPurposeFilter<"attachments"> | $Enums.AttachmentPurpose;
656
- uploaded_by?: Prisma.IntFilter<"attachments"> | number;
657
- created_at?: Prisma.DateTimeFilter<"attachments"> | Date | string;
658
- };
659
- export type attachmentsCreateManyUploaderInput = {
660
- id?: number;
661
- public_id: string;
662
- filepath: string;
663
- filename: string;
664
- file_size: number;
665
- file_hash: string;
666
- purpose: $Enums.AttachmentPurpose;
667
- created_at?: Date | string;
668
- };
669
- export type attachmentsUpdateWithoutUploaderInput = {
670
- public_id?: Prisma.StringFieldUpdateOperationsInput | string;
671
- filepath?: Prisma.StringFieldUpdateOperationsInput | string;
672
- filename?: Prisma.StringFieldUpdateOperationsInput | string;
673
- file_size?: Prisma.IntFieldUpdateOperationsInput | number;
674
- file_hash?: Prisma.StringFieldUpdateOperationsInput | string;
675
- purpose?: Prisma.EnumAttachmentPurposeFieldUpdateOperationsInput | $Enums.AttachmentPurpose;
676
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
677
- mail_attachments?: Prisma.mail_attachmentsUpdateManyWithoutAttachmentNestedInput;
678
- context_logs?: Prisma.context_logUpdateManyWithoutAttachmentNestedInput;
679
- };
680
- export type attachmentsUncheckedUpdateWithoutUploaderInput = {
681
- id?: Prisma.IntFieldUpdateOperationsInput | number;
682
- public_id?: Prisma.StringFieldUpdateOperationsInput | string;
683
- filepath?: Prisma.StringFieldUpdateOperationsInput | string;
684
- filename?: Prisma.StringFieldUpdateOperationsInput | string;
685
- file_size?: Prisma.IntFieldUpdateOperationsInput | number;
686
- file_hash?: Prisma.StringFieldUpdateOperationsInput | string;
687
- purpose?: Prisma.EnumAttachmentPurposeFieldUpdateOperationsInput | $Enums.AttachmentPurpose;
688
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
689
- mail_attachments?: Prisma.mail_attachmentsUncheckedUpdateManyWithoutAttachmentNestedInput;
690
- context_logs?: Prisma.context_logUncheckedUpdateManyWithoutAttachmentNestedInput;
691
- };
692
- export type attachmentsUncheckedUpdateManyWithoutUploaderInput = {
693
- id?: Prisma.IntFieldUpdateOperationsInput | number;
694
- public_id?: Prisma.StringFieldUpdateOperationsInput | string;
695
- filepath?: Prisma.StringFieldUpdateOperationsInput | string;
696
- filename?: Prisma.StringFieldUpdateOperationsInput | string;
697
- file_size?: Prisma.IntFieldUpdateOperationsInput | number;
698
- file_hash?: Prisma.StringFieldUpdateOperationsInput | string;
699
- purpose?: Prisma.EnumAttachmentPurposeFieldUpdateOperationsInput | $Enums.AttachmentPurpose;
700
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
701
- };
702
- /**
703
- * Count Type AttachmentsCountOutputType
704
- */
705
- export type AttachmentsCountOutputType = {
706
- mail_attachments: number;
707
- context_logs: number;
708
- };
709
- export type AttachmentsCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
710
- mail_attachments?: boolean | AttachmentsCountOutputTypeCountMail_attachmentsArgs;
711
- context_logs?: boolean | AttachmentsCountOutputTypeCountContext_logsArgs;
712
- };
713
- /**
714
- * AttachmentsCountOutputType without action
715
- */
716
- export type AttachmentsCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
717
- /**
718
- * Select specific fields to fetch from the AttachmentsCountOutputType
719
- */
720
- select?: Prisma.AttachmentsCountOutputTypeSelect<ExtArgs> | null;
721
- };
722
- /**
723
- * AttachmentsCountOutputType without action
724
- */
725
- export type AttachmentsCountOutputTypeCountMail_attachmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
726
- where?: Prisma.mail_attachmentsWhereInput;
727
- };
728
- /**
729
- * AttachmentsCountOutputType without action
730
- */
731
- export type AttachmentsCountOutputTypeCountContext_logsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
732
- where?: Prisma.context_logWhereInput;
733
- };
734
- export type attachmentsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
735
- id?: boolean;
736
- public_id?: boolean;
737
- filepath?: boolean;
738
- filename?: boolean;
739
- file_size?: boolean;
740
- file_hash?: boolean;
741
- purpose?: boolean;
742
- uploaded_by?: boolean;
743
- created_at?: boolean;
744
- uploader?: boolean | Prisma.usersDefaultArgs<ExtArgs>;
745
- mail_attachments?: boolean | Prisma.attachments$mail_attachmentsArgs<ExtArgs>;
746
- context_logs?: boolean | Prisma.attachments$context_logsArgs<ExtArgs>;
747
- _count?: boolean | Prisma.AttachmentsCountOutputTypeDefaultArgs<ExtArgs>;
748
- }, ExtArgs["result"]["attachments"]>;
749
- export type attachmentsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
750
- id?: boolean;
751
- public_id?: boolean;
752
- filepath?: boolean;
753
- filename?: boolean;
754
- file_size?: boolean;
755
- file_hash?: boolean;
756
- purpose?: boolean;
757
- uploaded_by?: boolean;
758
- created_at?: boolean;
759
- uploader?: boolean | Prisma.usersDefaultArgs<ExtArgs>;
760
- }, ExtArgs["result"]["attachments"]>;
761
- export type attachmentsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
762
- id?: boolean;
763
- public_id?: boolean;
764
- filepath?: boolean;
765
- filename?: boolean;
766
- file_size?: boolean;
767
- file_hash?: boolean;
768
- purpose?: boolean;
769
- uploaded_by?: boolean;
770
- created_at?: boolean;
771
- uploader?: boolean | Prisma.usersDefaultArgs<ExtArgs>;
772
- }, ExtArgs["result"]["attachments"]>;
773
- export type attachmentsSelectScalar = {
774
- id?: boolean;
775
- public_id?: boolean;
776
- filepath?: boolean;
777
- filename?: boolean;
778
- file_size?: boolean;
779
- file_hash?: boolean;
780
- purpose?: boolean;
781
- uploaded_by?: boolean;
782
- created_at?: boolean;
783
- };
784
- export type attachmentsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "public_id" | "filepath" | "filename" | "file_size" | "file_hash" | "purpose" | "uploaded_by" | "created_at", ExtArgs["result"]["attachments"]>;
785
- export type attachmentsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
786
- uploader?: boolean | Prisma.usersDefaultArgs<ExtArgs>;
787
- mail_attachments?: boolean | Prisma.attachments$mail_attachmentsArgs<ExtArgs>;
788
- context_logs?: boolean | Prisma.attachments$context_logsArgs<ExtArgs>;
789
- _count?: boolean | Prisma.AttachmentsCountOutputTypeDefaultArgs<ExtArgs>;
790
- };
791
- export type attachmentsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
792
- uploader?: boolean | Prisma.usersDefaultArgs<ExtArgs>;
793
- };
794
- export type attachmentsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
795
- uploader?: boolean | Prisma.usersDefaultArgs<ExtArgs>;
796
- };
797
- export type $attachmentsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
798
- name: "attachments";
799
- objects: {
800
- uploader: Prisma.$usersPayload<ExtArgs>;
801
- mail_attachments: Prisma.$mail_attachmentsPayload<ExtArgs>[];
802
- context_logs: Prisma.$context_logPayload<ExtArgs>[];
803
- };
804
- scalars: runtime.Types.Extensions.GetPayloadResult<{
805
- id: number;
806
- public_id: string;
807
- filepath: string;
808
- filename: string;
809
- file_size: number;
810
- file_hash: string;
811
- purpose: $Enums.AttachmentPurpose;
812
- uploaded_by: number;
813
- created_at: Date;
814
- }, ExtArgs["result"]["attachments"]>;
815
- composites: {};
816
- };
817
- export type attachmentsGetPayload<S extends boolean | null | undefined | attachmentsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$attachmentsPayload, S>;
818
- export type attachmentsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<attachmentsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
819
- select?: AttachmentsCountAggregateInputType | true;
820
- };
821
- export interface attachmentsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
822
- [K: symbol]: {
823
- types: Prisma.TypeMap<ExtArgs>['model']['attachments'];
824
- meta: {
825
- name: 'attachments';
826
- };
827
- };
828
- /**
829
- * Find zero or one Attachments that matches the filter.
830
- * @param {attachmentsFindUniqueArgs} args - Arguments to find a Attachments
831
- * @example
832
- * // Get one Attachments
833
- * const attachments = await prisma.attachments.findUnique({
834
- * where: {
835
- * // ... provide filter here
836
- * }
837
- * })
838
- */
839
- findUnique<T extends attachmentsFindUniqueArgs>(args: Prisma.SelectSubset<T, attachmentsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__attachmentsClient<runtime.Types.Result.GetResult<Prisma.$attachmentsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
840
- /**
841
- * Find one Attachments that matches the filter or throw an error with `error.code='P2025'`
842
- * if no matches were found.
843
- * @param {attachmentsFindUniqueOrThrowArgs} args - Arguments to find a Attachments
844
- * @example
845
- * // Get one Attachments
846
- * const attachments = await prisma.attachments.findUniqueOrThrow({
847
- * where: {
848
- * // ... provide filter here
849
- * }
850
- * })
851
- */
852
- findUniqueOrThrow<T extends attachmentsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, attachmentsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__attachmentsClient<runtime.Types.Result.GetResult<Prisma.$attachmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
853
- /**
854
- * Find the first Attachments that matches the filter.
855
- * Note, that providing `undefined` is treated as the value not being there.
856
- * Read more here: https://pris.ly/d/null-undefined
857
- * @param {attachmentsFindFirstArgs} args - Arguments to find a Attachments
858
- * @example
859
- * // Get one Attachments
860
- * const attachments = await prisma.attachments.findFirst({
861
- * where: {
862
- * // ... provide filter here
863
- * }
864
- * })
865
- */
866
- findFirst<T extends attachmentsFindFirstArgs>(args?: Prisma.SelectSubset<T, attachmentsFindFirstArgs<ExtArgs>>): Prisma.Prisma__attachmentsClient<runtime.Types.Result.GetResult<Prisma.$attachmentsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
867
- /**
868
- * Find the first Attachments that matches the filter or
869
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
870
- * Note, that providing `undefined` is treated as the value not being there.
871
- * Read more here: https://pris.ly/d/null-undefined
872
- * @param {attachmentsFindFirstOrThrowArgs} args - Arguments to find a Attachments
873
- * @example
874
- * // Get one Attachments
875
- * const attachments = await prisma.attachments.findFirstOrThrow({
876
- * where: {
877
- * // ... provide filter here
878
- * }
879
- * })
880
- */
881
- findFirstOrThrow<T extends attachmentsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, attachmentsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__attachmentsClient<runtime.Types.Result.GetResult<Prisma.$attachmentsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
882
- /**
883
- * Find zero or more Attachments that matches the filter.
884
- * Note, that providing `undefined` is treated as the value not being there.
885
- * Read more here: https://pris.ly/d/null-undefined
886
- * @param {attachmentsFindManyArgs} args - Arguments to filter and select certain fields only.
887
- * @example
888
- * // Get all Attachments
889
- * const attachments = await prisma.attachments.findMany()
890
- *
891
- * // Get first 10 Attachments
892
- * const attachments = await prisma.attachments.findMany({ take: 10 })
893
- *
894
- * // Only select the `id`
895
- * const attachmentsWithIdOnly = await prisma.attachments.findMany({ select: { id: true } })
896
- *
897
- */
898
- findMany<T extends attachmentsFindManyArgs>(args?: Prisma.SelectSubset<T, attachmentsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$attachmentsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
899
- /**
900
- * Create a Attachments.
901
- * @param {attachmentsCreateArgs} args - Arguments to create a Attachments.
902
- * @example
903
- * // Create one Attachments
904
- * const Attachments = await prisma.attachments.create({
905
- * data: {
906
- * // ... data to create a Attachments
907
- * }
908
- * })
909
- *
910
- */
911
- create<T extends attachmentsCreateArgs>(args: Prisma.SelectSubset<T, attachmentsCreateArgs<ExtArgs>>): Prisma.Prisma__attachmentsClient<runtime.Types.Result.GetResult<Prisma.$attachmentsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
912
- /**
913
- * Create many Attachments.
914
- * @param {attachmentsCreateManyArgs} args - Arguments to create many Attachments.
915
- * @example
916
- * // Create many Attachments
917
- * const attachments = await prisma.attachments.createMany({
918
- * data: [
919
- * // ... provide data here
920
- * ]
921
- * })
922
- *
923
- */
924
- createMany<T extends attachmentsCreateManyArgs>(args?: Prisma.SelectSubset<T, attachmentsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
925
- /**
926
- * Create many Attachments and returns the data saved in the database.
927
- * @param {attachmentsCreateManyAndReturnArgs} args - Arguments to create many Attachments.
928
- * @example
929
- * // Create many Attachments
930
- * const attachments = await prisma.attachments.createManyAndReturn({
931
- * data: [
932
- * // ... provide data here
933
- * ]
934
- * })
935
- *
936
- * // Create many Attachments and only return the `id`
937
- * const attachmentsWithIdOnly = await prisma.attachments.createManyAndReturn({
938
- * select: { id: true },
939
- * data: [
940
- * // ... provide data here
941
- * ]
942
- * })
943
- * Note, that providing `undefined` is treated as the value not being there.
944
- * Read more here: https://pris.ly/d/null-undefined
945
- *
946
- */
947
- createManyAndReturn<T extends attachmentsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, attachmentsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$attachmentsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
948
- /**
949
- * Delete a Attachments.
950
- * @param {attachmentsDeleteArgs} args - Arguments to delete one Attachments.
951
- * @example
952
- * // Delete one Attachments
953
- * const Attachments = await prisma.attachments.delete({
954
- * where: {
955
- * // ... filter to delete one Attachments
956
- * }
957
- * })
958
- *
959
- */
960
- delete<T extends attachmentsDeleteArgs>(args: Prisma.SelectSubset<T, attachmentsDeleteArgs<ExtArgs>>): Prisma.Prisma__attachmentsClient<runtime.Types.Result.GetResult<Prisma.$attachmentsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
961
- /**
962
- * Update one Attachments.
963
- * @param {attachmentsUpdateArgs} args - Arguments to update one Attachments.
964
- * @example
965
- * // Update one Attachments
966
- * const attachments = await prisma.attachments.update({
967
- * where: {
968
- * // ... provide filter here
969
- * },
970
- * data: {
971
- * // ... provide data here
972
- * }
973
- * })
974
- *
975
- */
976
- update<T extends attachmentsUpdateArgs>(args: Prisma.SelectSubset<T, attachmentsUpdateArgs<ExtArgs>>): Prisma.Prisma__attachmentsClient<runtime.Types.Result.GetResult<Prisma.$attachmentsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
977
- /**
978
- * Delete zero or more Attachments.
979
- * @param {attachmentsDeleteManyArgs} args - Arguments to filter Attachments to delete.
980
- * @example
981
- * // Delete a few Attachments
982
- * const { count } = await prisma.attachments.deleteMany({
983
- * where: {
984
- * // ... provide filter here
985
- * }
986
- * })
987
- *
988
- */
989
- deleteMany<T extends attachmentsDeleteManyArgs>(args?: Prisma.SelectSubset<T, attachmentsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
990
- /**
991
- * Update zero or more Attachments.
992
- * Note, that providing `undefined` is treated as the value not being there.
993
- * Read more here: https://pris.ly/d/null-undefined
994
- * @param {attachmentsUpdateManyArgs} args - Arguments to update one or more rows.
995
- * @example
996
- * // Update many Attachments
997
- * const attachments = await prisma.attachments.updateMany({
998
- * where: {
999
- * // ... provide filter here
1000
- * },
1001
- * data: {
1002
- * // ... provide data here
1003
- * }
1004
- * })
1005
- *
1006
- */
1007
- updateMany<T extends attachmentsUpdateManyArgs>(args: Prisma.SelectSubset<T, attachmentsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1008
- /**
1009
- * Update zero or more Attachments and returns the data updated in the database.
1010
- * @param {attachmentsUpdateManyAndReturnArgs} args - Arguments to update many Attachments.
1011
- * @example
1012
- * // Update many Attachments
1013
- * const attachments = await prisma.attachments.updateManyAndReturn({
1014
- * where: {
1015
- * // ... provide filter here
1016
- * },
1017
- * data: [
1018
- * // ... provide data here
1019
- * ]
1020
- * })
1021
- *
1022
- * // Update zero or more Attachments and only return the `id`
1023
- * const attachmentsWithIdOnly = await prisma.attachments.updateManyAndReturn({
1024
- * select: { id: true },
1025
- * where: {
1026
- * // ... provide filter here
1027
- * },
1028
- * data: [
1029
- * // ... provide data here
1030
- * ]
1031
- * })
1032
- * Note, that providing `undefined` is treated as the value not being there.
1033
- * Read more here: https://pris.ly/d/null-undefined
1034
- *
1035
- */
1036
- updateManyAndReturn<T extends attachmentsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, attachmentsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$attachmentsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1037
- /**
1038
- * Create or update one Attachments.
1039
- * @param {attachmentsUpsertArgs} args - Arguments to update or create a Attachments.
1040
- * @example
1041
- * // Update or create a Attachments
1042
- * const attachments = await prisma.attachments.upsert({
1043
- * create: {
1044
- * // ... data to create a Attachments
1045
- * },
1046
- * update: {
1047
- * // ... in case it already exists, update
1048
- * },
1049
- * where: {
1050
- * // ... the filter for the Attachments we want to update
1051
- * }
1052
- * })
1053
- */
1054
- upsert<T extends attachmentsUpsertArgs>(args: Prisma.SelectSubset<T, attachmentsUpsertArgs<ExtArgs>>): Prisma.Prisma__attachmentsClient<runtime.Types.Result.GetResult<Prisma.$attachmentsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1055
- /**
1056
- * Count the number of Attachments.
1057
- * Note, that providing `undefined` is treated as the value not being there.
1058
- * Read more here: https://pris.ly/d/null-undefined
1059
- * @param {attachmentsCountArgs} args - Arguments to filter Attachments to count.
1060
- * @example
1061
- * // Count the number of Attachments
1062
- * const count = await prisma.attachments.count({
1063
- * where: {
1064
- * // ... the filter for the Attachments we want to count
1065
- * }
1066
- * })
1067
- **/
1068
- count<T extends attachmentsCountArgs>(args?: Prisma.Subset<T, attachmentsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AttachmentsCountAggregateOutputType> : number>;
1069
- /**
1070
- * Allows you to perform aggregations operations on a Attachments.
1071
- * Note, that providing `undefined` is treated as the value not being there.
1072
- * Read more here: https://pris.ly/d/null-undefined
1073
- * @param {AttachmentsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1074
- * @example
1075
- * // Ordered by age ascending
1076
- * // Where email contains prisma.io
1077
- * // Limited to the 10 users
1078
- * const aggregations = await prisma.user.aggregate({
1079
- * _avg: {
1080
- * age: true,
1081
- * },
1082
- * where: {
1083
- * email: {
1084
- * contains: "prisma.io",
1085
- * },
1086
- * },
1087
- * orderBy: {
1088
- * age: "asc",
1089
- * },
1090
- * take: 10,
1091
- * })
1092
- **/
1093
- aggregate<T extends AttachmentsAggregateArgs>(args: Prisma.Subset<T, AttachmentsAggregateArgs>): Prisma.PrismaPromise<GetAttachmentsAggregateType<T>>;
1094
- /**
1095
- * Group by Attachments.
1096
- * Note, that providing `undefined` is treated as the value not being there.
1097
- * Read more here: https://pris.ly/d/null-undefined
1098
- * @param {attachmentsGroupByArgs} args - Group by arguments.
1099
- * @example
1100
- * // Group by city, order by createdAt, get count
1101
- * const result = await prisma.user.groupBy({
1102
- * by: ['city', 'createdAt'],
1103
- * orderBy: {
1104
- * createdAt: true
1105
- * },
1106
- * _count: {
1107
- * _all: true
1108
- * },
1109
- * })
1110
- *
1111
- **/
1112
- groupBy<T extends attachmentsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1113
- orderBy: attachmentsGroupByArgs['orderBy'];
1114
- } : {
1115
- orderBy?: attachmentsGroupByArgs['orderBy'];
1116
- }, 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 ? {
1117
- [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1118
- Error,
1119
- 'Field ',
1120
- P,
1121
- ` in "having" needs to be provided in "by"`
1122
- ];
1123
- }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1124
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1125
- }[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 ? {} : {
1126
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1127
- }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1128
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1129
- }[OrderFields]>(args: Prisma.SubsetIntersection<T, attachmentsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAttachmentsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1130
- /**
1131
- * Fields of the attachments model
1132
- */
1133
- readonly fields: attachmentsFieldRefs;
1134
- }
1135
- /**
1136
- * The delegate class that acts as a "Promise-like" for attachments.
1137
- * Why is this prefixed with `Prisma__`?
1138
- * Because we want to prevent naming conflicts as mentioned in
1139
- * https://github.com/prisma/prisma-client-js/issues/707
1140
- */
1141
- export interface Prisma__attachmentsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1142
- readonly [Symbol.toStringTag]: "PrismaPromise";
1143
- uploader<T extends Prisma.usersDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.usersDefaultArgs<ExtArgs>>): Prisma.Prisma__usersClient<runtime.Types.Result.GetResult<Prisma.$usersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1144
- mail_attachments<T extends Prisma.attachments$mail_attachmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.attachments$mail_attachmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$mail_attachmentsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1145
- context_logs<T extends Prisma.attachments$context_logsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.attachments$context_logsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$context_logPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1146
- /**
1147
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1148
- * @param onfulfilled The callback to execute when the Promise is resolved.
1149
- * @param onrejected The callback to execute when the Promise is rejected.
1150
- * @returns A Promise for the completion of which ever callback is executed.
1151
- */
1152
- 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>;
1153
- /**
1154
- * Attaches a callback for only the rejection of the Promise.
1155
- * @param onrejected The callback to execute when the Promise is rejected.
1156
- * @returns A Promise for the completion of the callback.
1157
- */
1158
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1159
- /**
1160
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1161
- * resolved value cannot be modified from the callback.
1162
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1163
- * @returns A Promise for the completion of the callback.
1164
- */
1165
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1166
- }
1167
- /**
1168
- * Fields of the attachments model
1169
- */
1170
- export interface attachmentsFieldRefs {
1171
- readonly id: Prisma.FieldRef<"attachments", 'Int'>;
1172
- readonly public_id: Prisma.FieldRef<"attachments", 'String'>;
1173
- readonly filepath: Prisma.FieldRef<"attachments", 'String'>;
1174
- readonly filename: Prisma.FieldRef<"attachments", 'String'>;
1175
- readonly file_size: Prisma.FieldRef<"attachments", 'Int'>;
1176
- readonly file_hash: Prisma.FieldRef<"attachments", 'String'>;
1177
- readonly purpose: Prisma.FieldRef<"attachments", 'AttachmentPurpose'>;
1178
- readonly uploaded_by: Prisma.FieldRef<"attachments", 'Int'>;
1179
- readonly created_at: Prisma.FieldRef<"attachments", 'DateTime'>;
1180
- }
1181
- /**
1182
- * attachments findUnique
1183
- */
1184
- export type attachmentsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1185
- /**
1186
- * Select specific fields to fetch from the attachments
1187
- */
1188
- select?: Prisma.attachmentsSelect<ExtArgs> | null;
1189
- /**
1190
- * Omit specific fields from the attachments
1191
- */
1192
- omit?: Prisma.attachmentsOmit<ExtArgs> | null;
1193
- /**
1194
- * Choose, which related nodes to fetch as well
1195
- */
1196
- include?: Prisma.attachmentsInclude<ExtArgs> | null;
1197
- /**
1198
- * Filter, which attachments to fetch.
1199
- */
1200
- where: Prisma.attachmentsWhereUniqueInput;
1201
- };
1202
- /**
1203
- * attachments findUniqueOrThrow
1204
- */
1205
- export type attachmentsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1206
- /**
1207
- * Select specific fields to fetch from the attachments
1208
- */
1209
- select?: Prisma.attachmentsSelect<ExtArgs> | null;
1210
- /**
1211
- * Omit specific fields from the attachments
1212
- */
1213
- omit?: Prisma.attachmentsOmit<ExtArgs> | null;
1214
- /**
1215
- * Choose, which related nodes to fetch as well
1216
- */
1217
- include?: Prisma.attachmentsInclude<ExtArgs> | null;
1218
- /**
1219
- * Filter, which attachments to fetch.
1220
- */
1221
- where: Prisma.attachmentsWhereUniqueInput;
1222
- };
1223
- /**
1224
- * attachments findFirst
1225
- */
1226
- export type attachmentsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1227
- /**
1228
- * Select specific fields to fetch from the attachments
1229
- */
1230
- select?: Prisma.attachmentsSelect<ExtArgs> | null;
1231
- /**
1232
- * Omit specific fields from the attachments
1233
- */
1234
- omit?: Prisma.attachmentsOmit<ExtArgs> | null;
1235
- /**
1236
- * Choose, which related nodes to fetch as well
1237
- */
1238
- include?: Prisma.attachmentsInclude<ExtArgs> | null;
1239
- /**
1240
- * Filter, which attachments to fetch.
1241
- */
1242
- where?: Prisma.attachmentsWhereInput;
1243
- /**
1244
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1245
- *
1246
- * Determine the order of attachments to fetch.
1247
- */
1248
- orderBy?: Prisma.attachmentsOrderByWithRelationInput | Prisma.attachmentsOrderByWithRelationInput[];
1249
- /**
1250
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1251
- *
1252
- * Sets the position for searching for attachments.
1253
- */
1254
- cursor?: Prisma.attachmentsWhereUniqueInput;
1255
- /**
1256
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1257
- *
1258
- * Take `±n` attachments from the position of the cursor.
1259
- */
1260
- take?: number;
1261
- /**
1262
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1263
- *
1264
- * Skip the first `n` attachments.
1265
- */
1266
- skip?: number;
1267
- /**
1268
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1269
- *
1270
- * Filter by unique combinations of attachments.
1271
- */
1272
- distinct?: Prisma.AttachmentsScalarFieldEnum | Prisma.AttachmentsScalarFieldEnum[];
1273
- };
1274
- /**
1275
- * attachments findFirstOrThrow
1276
- */
1277
- export type attachmentsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1278
- /**
1279
- * Select specific fields to fetch from the attachments
1280
- */
1281
- select?: Prisma.attachmentsSelect<ExtArgs> | null;
1282
- /**
1283
- * Omit specific fields from the attachments
1284
- */
1285
- omit?: Prisma.attachmentsOmit<ExtArgs> | null;
1286
- /**
1287
- * Choose, which related nodes to fetch as well
1288
- */
1289
- include?: Prisma.attachmentsInclude<ExtArgs> | null;
1290
- /**
1291
- * Filter, which attachments to fetch.
1292
- */
1293
- where?: Prisma.attachmentsWhereInput;
1294
- /**
1295
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1296
- *
1297
- * Determine the order of attachments to fetch.
1298
- */
1299
- orderBy?: Prisma.attachmentsOrderByWithRelationInput | Prisma.attachmentsOrderByWithRelationInput[];
1300
- /**
1301
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1302
- *
1303
- * Sets the position for searching for attachments.
1304
- */
1305
- cursor?: Prisma.attachmentsWhereUniqueInput;
1306
- /**
1307
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1308
- *
1309
- * Take `±n` attachments from the position of the cursor.
1310
- */
1311
- take?: number;
1312
- /**
1313
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1314
- *
1315
- * Skip the first `n` attachments.
1316
- */
1317
- skip?: number;
1318
- /**
1319
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1320
- *
1321
- * Filter by unique combinations of attachments.
1322
- */
1323
- distinct?: Prisma.AttachmentsScalarFieldEnum | Prisma.AttachmentsScalarFieldEnum[];
1324
- };
1325
- /**
1326
- * attachments findMany
1327
- */
1328
- export type attachmentsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1329
- /**
1330
- * Select specific fields to fetch from the attachments
1331
- */
1332
- select?: Prisma.attachmentsSelect<ExtArgs> | null;
1333
- /**
1334
- * Omit specific fields from the attachments
1335
- */
1336
- omit?: Prisma.attachmentsOmit<ExtArgs> | null;
1337
- /**
1338
- * Choose, which related nodes to fetch as well
1339
- */
1340
- include?: Prisma.attachmentsInclude<ExtArgs> | null;
1341
- /**
1342
- * Filter, which attachments to fetch.
1343
- */
1344
- where?: Prisma.attachmentsWhereInput;
1345
- /**
1346
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1347
- *
1348
- * Determine the order of attachments to fetch.
1349
- */
1350
- orderBy?: Prisma.attachmentsOrderByWithRelationInput | Prisma.attachmentsOrderByWithRelationInput[];
1351
- /**
1352
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1353
- *
1354
- * Sets the position for listing attachments.
1355
- */
1356
- cursor?: Prisma.attachmentsWhereUniqueInput;
1357
- /**
1358
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1359
- *
1360
- * Take `±n` attachments from the position of the cursor.
1361
- */
1362
- take?: number;
1363
- /**
1364
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1365
- *
1366
- * Skip the first `n` attachments.
1367
- */
1368
- skip?: number;
1369
- /**
1370
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1371
- *
1372
- * Filter by unique combinations of attachments.
1373
- */
1374
- distinct?: Prisma.AttachmentsScalarFieldEnum | Prisma.AttachmentsScalarFieldEnum[];
1375
- };
1376
- /**
1377
- * attachments create
1378
- */
1379
- export type attachmentsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1380
- /**
1381
- * Select specific fields to fetch from the attachments
1382
- */
1383
- select?: Prisma.attachmentsSelect<ExtArgs> | null;
1384
- /**
1385
- * Omit specific fields from the attachments
1386
- */
1387
- omit?: Prisma.attachmentsOmit<ExtArgs> | null;
1388
- /**
1389
- * Choose, which related nodes to fetch as well
1390
- */
1391
- include?: Prisma.attachmentsInclude<ExtArgs> | null;
1392
- /**
1393
- * The data needed to create a attachments.
1394
- */
1395
- data: Prisma.XOR<Prisma.attachmentsCreateInput, Prisma.attachmentsUncheckedCreateInput>;
1396
- };
1397
- /**
1398
- * attachments createMany
1399
- */
1400
- export type attachmentsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1401
- /**
1402
- * The data used to create many attachments.
1403
- */
1404
- data: Prisma.attachmentsCreateManyInput | Prisma.attachmentsCreateManyInput[];
1405
- };
1406
- /**
1407
- * attachments createManyAndReturn
1408
- */
1409
- export type attachmentsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1410
- /**
1411
- * Select specific fields to fetch from the attachments
1412
- */
1413
- select?: Prisma.attachmentsSelectCreateManyAndReturn<ExtArgs> | null;
1414
- /**
1415
- * Omit specific fields from the attachments
1416
- */
1417
- omit?: Prisma.attachmentsOmit<ExtArgs> | null;
1418
- /**
1419
- * The data used to create many attachments.
1420
- */
1421
- data: Prisma.attachmentsCreateManyInput | Prisma.attachmentsCreateManyInput[];
1422
- /**
1423
- * Choose, which related nodes to fetch as well
1424
- */
1425
- include?: Prisma.attachmentsIncludeCreateManyAndReturn<ExtArgs> | null;
1426
- };
1427
- /**
1428
- * attachments update
1429
- */
1430
- export type attachmentsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1431
- /**
1432
- * Select specific fields to fetch from the attachments
1433
- */
1434
- select?: Prisma.attachmentsSelect<ExtArgs> | null;
1435
- /**
1436
- * Omit specific fields from the attachments
1437
- */
1438
- omit?: Prisma.attachmentsOmit<ExtArgs> | null;
1439
- /**
1440
- * Choose, which related nodes to fetch as well
1441
- */
1442
- include?: Prisma.attachmentsInclude<ExtArgs> | null;
1443
- /**
1444
- * The data needed to update a attachments.
1445
- */
1446
- data: Prisma.XOR<Prisma.attachmentsUpdateInput, Prisma.attachmentsUncheckedUpdateInput>;
1447
- /**
1448
- * Choose, which attachments to update.
1449
- */
1450
- where: Prisma.attachmentsWhereUniqueInput;
1451
- };
1452
- /**
1453
- * attachments updateMany
1454
- */
1455
- export type attachmentsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1456
- /**
1457
- * The data used to update attachments.
1458
- */
1459
- data: Prisma.XOR<Prisma.attachmentsUpdateManyMutationInput, Prisma.attachmentsUncheckedUpdateManyInput>;
1460
- /**
1461
- * Filter which attachments to update
1462
- */
1463
- where?: Prisma.attachmentsWhereInput;
1464
- /**
1465
- * Limit how many attachments to update.
1466
- */
1467
- limit?: number;
1468
- };
1469
- /**
1470
- * attachments updateManyAndReturn
1471
- */
1472
- export type attachmentsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1473
- /**
1474
- * Select specific fields to fetch from the attachments
1475
- */
1476
- select?: Prisma.attachmentsSelectUpdateManyAndReturn<ExtArgs> | null;
1477
- /**
1478
- * Omit specific fields from the attachments
1479
- */
1480
- omit?: Prisma.attachmentsOmit<ExtArgs> | null;
1481
- /**
1482
- * The data used to update attachments.
1483
- */
1484
- data: Prisma.XOR<Prisma.attachmentsUpdateManyMutationInput, Prisma.attachmentsUncheckedUpdateManyInput>;
1485
- /**
1486
- * Filter which attachments to update
1487
- */
1488
- where?: Prisma.attachmentsWhereInput;
1489
- /**
1490
- * Limit how many attachments to update.
1491
- */
1492
- limit?: number;
1493
- /**
1494
- * Choose, which related nodes to fetch as well
1495
- */
1496
- include?: Prisma.attachmentsIncludeUpdateManyAndReturn<ExtArgs> | null;
1497
- };
1498
- /**
1499
- * attachments upsert
1500
- */
1501
- export type attachmentsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1502
- /**
1503
- * Select specific fields to fetch from the attachments
1504
- */
1505
- select?: Prisma.attachmentsSelect<ExtArgs> | null;
1506
- /**
1507
- * Omit specific fields from the attachments
1508
- */
1509
- omit?: Prisma.attachmentsOmit<ExtArgs> | null;
1510
- /**
1511
- * Choose, which related nodes to fetch as well
1512
- */
1513
- include?: Prisma.attachmentsInclude<ExtArgs> | null;
1514
- /**
1515
- * The filter to search for the attachments to update in case it exists.
1516
- */
1517
- where: Prisma.attachmentsWhereUniqueInput;
1518
- /**
1519
- * In case the attachments found by the `where` argument doesn't exist, create a new attachments with this data.
1520
- */
1521
- create: Prisma.XOR<Prisma.attachmentsCreateInput, Prisma.attachmentsUncheckedCreateInput>;
1522
- /**
1523
- * In case the attachments was found with the provided `where` argument, update it with this data.
1524
- */
1525
- update: Prisma.XOR<Prisma.attachmentsUpdateInput, Prisma.attachmentsUncheckedUpdateInput>;
1526
- };
1527
- /**
1528
- * attachments delete
1529
- */
1530
- export type attachmentsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1531
- /**
1532
- * Select specific fields to fetch from the attachments
1533
- */
1534
- select?: Prisma.attachmentsSelect<ExtArgs> | null;
1535
- /**
1536
- * Omit specific fields from the attachments
1537
- */
1538
- omit?: Prisma.attachmentsOmit<ExtArgs> | null;
1539
- /**
1540
- * Choose, which related nodes to fetch as well
1541
- */
1542
- include?: Prisma.attachmentsInclude<ExtArgs> | null;
1543
- /**
1544
- * Filter which attachments to delete.
1545
- */
1546
- where: Prisma.attachmentsWhereUniqueInput;
1547
- };
1548
- /**
1549
- * attachments deleteMany
1550
- */
1551
- export type attachmentsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1552
- /**
1553
- * Filter which attachments to delete
1554
- */
1555
- where?: Prisma.attachmentsWhereInput;
1556
- /**
1557
- * Limit how many attachments to delete.
1558
- */
1559
- limit?: number;
1560
- };
1561
- /**
1562
- * attachments.mail_attachments
1563
- */
1564
- export type attachments$mail_attachmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1565
- /**
1566
- * Select specific fields to fetch from the mail_attachments
1567
- */
1568
- select?: Prisma.mail_attachmentsSelect<ExtArgs> | null;
1569
- /**
1570
- * Omit specific fields from the mail_attachments
1571
- */
1572
- omit?: Prisma.mail_attachmentsOmit<ExtArgs> | null;
1573
- /**
1574
- * Choose, which related nodes to fetch as well
1575
- */
1576
- include?: Prisma.mail_attachmentsInclude<ExtArgs> | null;
1577
- where?: Prisma.mail_attachmentsWhereInput;
1578
- orderBy?: Prisma.mail_attachmentsOrderByWithRelationInput | Prisma.mail_attachmentsOrderByWithRelationInput[];
1579
- cursor?: Prisma.mail_attachmentsWhereUniqueInput;
1580
- take?: number;
1581
- skip?: number;
1582
- distinct?: Prisma.Mail_attachmentsScalarFieldEnum | Prisma.Mail_attachmentsScalarFieldEnum[];
1583
- };
1584
- /**
1585
- * attachments.context_logs
1586
- */
1587
- export type attachments$context_logsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1588
- /**
1589
- * Select specific fields to fetch from the context_log
1590
- */
1591
- select?: Prisma.context_logSelect<ExtArgs> | null;
1592
- /**
1593
- * Omit specific fields from the context_log
1594
- */
1595
- omit?: Prisma.context_logOmit<ExtArgs> | null;
1596
- /**
1597
- * Choose, which related nodes to fetch as well
1598
- */
1599
- include?: Prisma.context_logInclude<ExtArgs> | null;
1600
- where?: Prisma.context_logWhereInput;
1601
- orderBy?: Prisma.context_logOrderByWithRelationInput | Prisma.context_logOrderByWithRelationInput[];
1602
- cursor?: Prisma.context_logWhereUniqueInput;
1603
- take?: number;
1604
- skip?: number;
1605
- distinct?: Prisma.Context_logScalarFieldEnum | Prisma.Context_logScalarFieldEnum[];
1606
- };
1607
- /**
1608
- * attachments without action
1609
- */
1610
- export type attachmentsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1611
- /**
1612
- * Select specific fields to fetch from the attachments
1613
- */
1614
- select?: Prisma.attachmentsSelect<ExtArgs> | null;
1615
- /**
1616
- * Omit specific fields from the attachments
1617
- */
1618
- omit?: Prisma.attachmentsOmit<ExtArgs> | null;
1619
- /**
1620
- * Choose, which related nodes to fetch as well
1621
- */
1622
- include?: Prisma.attachmentsInclude<ExtArgs> | null;
1623
- };
1624
- //# sourceMappingURL=attachments.d.ts.map