@igstack/app-catalog-backend-core 0.3.1-alpha-20260403020019 → 0.3.1-alpha-20260405015231

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