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

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